选择离线服务
拖拽图片到此处或点击按钮选择图片
也可以直接 Ctrl+V 粘贴图片或图片链接
| ${d} | ${u} | ||
| ${m} | ${g} | ||
| 项目 | 数量 | 项目 | 数量 |
| 屏蔽单番号 | ${i.currentPageFilterCount} | 收藏 | ${i.currentPageFavoriteCount} |
| 屏蔽演员 | ${i.currentPageActorFilterCount} | 已下载 | ${i.currentPageHasDownCount} |
| 屏蔽关键词 | ${i.currentPageKeywordFilterCount} | 已观看 | ${i.currentPageHasWatchCount} |
| 待鉴定 | ${i.currentPageWaitCheckCount} | ||
| 总数 | ${i.currentPageTotalCount} | ||
当前来源 ID:${a(e.starId)}(站方页面 404 时可检索合并后的新演员页,或直接粘贴目标链接 / ID,原新作品与备注将自动迁移或合并)。
支持普通和 FC2 详情。聚焦后按键录制,Escape 退出;部分组合键受系统或浏览器限制。
详情鉴定快捷键已停用,启用后刷新页面生效。
'+Object.entries(ls).map(([c,l])=>lt(`shortcut-${c}`,l.label,`备份后修复可恢复的数据问题
核心功能保持开启
保留最近 10 个,可恢复或下载
数字越小越优先
支持换行、空格或逗号分隔,预览后导入
填写番号并选择状态后,点击解析预览
')}function y0(i=void 0,e={}){let t=i?Jm(i,e):null;return`${s}
`:""}| 域名 | 状态 | 失败次数 | 操作 |
|---|---|---|---|
| ${V(m)} | ${v} ${y} | ${Number(g.failCount)||0} |
暂无熔断记录
');let f=Object.entries(l).sort(((p,m)=>m[1].count-p[1].count));if(f.length){let p='| 域名 | 请求数 | 错误数 | 最后使用 |
|---|---|---|---|
| ${V(m)} | ${g.count} | ${g.errors} | ${v} |
共 ${f.length} 个域名
`,r("#domain-stats-table").html(p)}else r("#domain-stats-table").html('暂无统计数据
');r(".reset-breaker").off("click").on("click",(p=>{let m=r(p.target).data("domain");i.resetCircuitBreaker(m),s.ok(`已重置 ${m} 的熔断状态`),pl(i,e)})),r("#resetAllBreakersBtn").off("click").on("click",(()=>{i.resetAllCircuitBreakers(),s.ok("已重置全部熔断状态"),pl(i,e)})),r("#clearDomainStatsBtn").off("click").on("click",(()=>{i.clearDomainStats(),s.ok("已清空域名统计"),pl(i,e)}))}async function Xj(i){let{backup:e,utilities:t,notifications:s,logger:r,domUi:a,window:n}=i,o=fl(i),c=()=>{let v=a.loading(),y=i.scope?.addCleanup(()=>v.close());return{close:()=>y?y():v.close()}},l=o("#snapshot-list")[0];if(!l||i.isActive?.()===!1)return;let d=bp.get(l);if(!d){d={generation:0,table:null},bp.set(l,d);let v=d;i.scope?.addCleanup(()=>{v.generation++,v.table?.destroy?.(),bp.delete(l)})}let h=++d.generation,u=d,f=()=>i.isActive?.()!==!1&&l.isConnected&&u.generation===h,p=await e.getSnapshotList(),m={manual:"手动创建","auto-import":"导入前自动","auto-repair":"修复前自动","auto-restore":"恢复前自动",migration:"升级前自动","sync-join":"同步接入前","sync-repair":"同步整理前"};if(i.isActive?.()===!1||!l.isConnected||d.generation!==h)return;if(d.table?.destroy?.(),d.table=null,p.length===0)return void o("#snapshot-list").html(`| 数据源 | 状态 | 当前 | 导入 | 新增 | 删除 | 修改 |
|---|---|---|---|---|---|---|
| ${V(u[w.store]||"其他数据")} | ${A[w.status]||w.status} | ${w.oldCount} | ${w.newCount} | ${w.added||"-"} | ${w.removed||"-"} | ${w.modified||"-"} |
| 功能 | 激活耗时(ms) | 状态 |
|---|---|---|
| ${V(R)} | ${A(U)} | ${_.has(R)?"已激活":"未激活"} |
激活耗时包含异步依赖等待,不代表主线程执行时间。
',a("#plugin-timing-table").html(N)}else a("#plugin-timing-table").html('暂无数据,刷新页面后自动采集。
');let w=n.errors;if(w.length){let _='| 时间 | 来源 | 阶段 | 错误信息 |
|---|---|---|---|
| ${V(String(I.timestamp||"").substring(11,19))} | ${V(String(I.plugin||I.featureId||I.source||""))} | ${V(String(I.phase||""))} | ${V(String(I.message||""))} |
暂无备份
暂无自定义来源
'),e.find("#screenshot-source-list").empty().append(i.resourceState.screenshot.providers.map((a=>r(a,!1,"screenshot")))),i.resourceState.screenshot.providers.forEach(((a,n)=>{a.implemented===!1&&e.find("#screenshot-source-list .jhs-resource-card").eq(n).find(".jhs-source-toggle").prop("disabled",!0).end().find("strong").after('未实现').end().find(".jhs-source-test").remove()})),e.find(`input[name="screenshotMode"][value="${i.resourceState.screenshot.mode}"]`).prop("checked",!0),i.renderRules("tag",e),i.renderRules("filter",e)}function BS(i,e,t=i.jquery(i.document)){let s=i.fullResources,r=e==="tag"?i.resourceState.tags:i.resourceState.filters,a=t.find("#magnet-"+e+"-rule-list").empty();r.length||a.append('暂无规则
'),r.forEach((n=>{let o=i.jquery('').append(i.jquery("").text(n.name),i.jquery("").text(`${n.type==="regex"?"正则":"包含"}:${n.pattern}${e==="tag"?` · 权重 ${Number(n.weight)>=0?"+":""}${n.weight||0}`:` · ${n.action==="hide"?"隐藏":`降权 ${n.penalty||-20}`}`}`),'');o.on("click",".jhs-rule-edit",(()=>i.openRuleDialog(e,n,t))).on("click",".jhs-rule-delete",(c=>i.utils.q(c,`删除规则“${V(n.name)}”?`,(async()=>{try{await s.updateArray(e==="tag"?"magnetTagRules":"magnetFilterRules",d=>d.filter((h=>h.id!==n.id)));let l=await s.getArray(e==="tag"?"magnetTagRules":"magnetFilterRules");if(t&&(!i.jquery(t)[0]?.isConnected||s!==i.fullResources))return;i.resourceState[e==="tag"?"tags":"filters"]=l,i.renderRules(e,t)}catch(l){i.logger?.error?.("资源设置操作失败",l),i.notifications.error("资源设置保存失败,请重试")}}),null,{confirmText:"删除",cancelText:"取消",tone:"danger"}))),a.append(o)}))}function $S(i,e){e.find("label").not(".jhs-setting-row").each((t,s)=>{let r=i.jquery(s),a=r.children("input,select,textarea").first();if(!a.length)return;let n=r.clone().children().remove().end().text().trim();a.detach().attr("aria-label",n),r.empty().addClass("jhs-setting-row jhs-setting-row--stacked").append(i.jquery('').find("span").text(n).end(),i.jquery('').append(a))}),ne.enhance(e)}function qS(i,e=null,t=null){let s=i.fullResources,r=i.getRuntimeService("dialog"),a=["rowSelector","titleSelector","magnetSelector","sizeSelector","dateSelector","seedersSelector","leechersSelector","resultsPath","titlePath","magnetPath","hashPath","sizePath","datePath","seedersPath"],n={rowSelector:"结果行选择器",titleSelector:"标题选择器",magnetSelector:"磁力选择器",sizeSelector:"大小选择器",dateSelector:"日期选择器",seedersSelector:"做种数选择器",leechersSelector:"下载数选择器",resultsPath:"结果列表路径",titlePath:"标题字段路径",magnetPath:"磁力字段路径",hashPath:"哈希字段路径",sizePath:"大小字段路径",datePath:"日期字段路径",seedersPath:"做种数字段路径"},o=i.jquery(``),c=()=>{let u=o.find('[name="parserType"]').val(),f=u==="torrent-table"?a.slice(0,7):u==="json"?a.slice(7):[];o.find(".jhs-parser-fields").html(f.map((p=>``)).join("")),f.forEach((p=>o.find(`[name="${p}"]`).val(e?.[p]||""))),i.normalizeEditorRows(o)};Object.entries(e||{enabled:!0,priority:100,parserType:"magnet-links"}).forEach(([u,f])=>{let p=o.find(`[name="${u}"]`);p.attr("type")==="checkbox"?p.prop("checked",f):p.val(f)}),o.on("change",'[name="parserType"]',c),c(),o.appendTo("body").hide();let l=!1,d,h=r.open({type:1,title:e?"编辑自定义磁力源":"添加自定义磁力源",content:o,skin:"jhs-confirm-actions",ui:{size:"md",body:"scroll"},btn:["取消","保存"],success:()=>o.show(),end:()=>{d?.(),o.remove()},btn2:async u=>{if(!(l||t&&!i.jquery(t)[0]?.isConnected)){l=!0;try{let f=Object.fromEntries(Array.from(o.find("input,select"),g=>[g.name,g.type==="checkbox"?g.checked:g.value])),p=zg(f,e);await s.updateArray("customMagnetSources",g=>{let v=e?g.findIndex((y=>y.id===e.id)):-1;return v>=0?g.splice(v,1,p):g.push(p),g});let m=s.getMagnetSources();if(t&&(!i.jquery(t)[0]?.isConnected||s!==i.fullResources))return;i.resourceState.custom=m,r.close(u),t&&i.renderResourceSettings(t)}catch(f){i.logger?.error?.("资源设置操作失败",f),i.notifications.error("资源设置保存失败,请重试")}finally{l=!1}}}});d=i._settingsDialog?.scope.addCleanup(()=>r.close(h))}function US(i,e,t=null,s=null){let r=i.fullResources,a=i.getRuntimeService("dialog"),n=e==="tag",o=i.jquery(``);Object.entries(t||{enabled:!0,type:"contains",weight:0,action:"hide",penalty:-20}).forEach(([h,u])=>{let f=o.find(`[name="${h}"]`);f.attr("type")==="checkbox"?f.prop("checked",u):f.val(u)}),i.normalizeEditorRows(o),o.appendTo("body").hide();let c=!1,l,d=a.open({type:1,title:`${t?"编辑":"新建"}${n?"标签":"过滤"}规则`,content:o,skin:"jhs-confirm-actions",ui:{size:"sm",body:"scroll"},btn:["取消","保存"],success:()=>o.show(),end:()=>{l?.(),o.remove()},btn2:async h=>{if(!(c||s&&!i.jquery(s)[0]?.isConnected)){c=!0;try{let u=Object.fromEntries(Array.from(o.find("input,select"),p=>[p.name,p.type==="checkbox"?p.checked:p.value]));u.id=t?.id||`rule-${Date.now()}`,n?u.weight=Number(u.weight):u.penalty=Number(u.penalty),Os(u),await r.updateArray(n?"magnetTagRules":"magnetFilterRules",p=>{let m=t?p.findIndex((g=>g.id===t.id)):-1;return m>=0?p.splice(m,1,u):p.push(u),p});let f=await r.getArray(n?"magnetTagRules":"magnetFilterRules");if(s&&(!i.jquery(s)[0]?.isConnected||r!==i.fullResources))return;i.resourceState[n?"tags":"filters"]=f,a.close(h),s&&i.renderRules(e,s)}catch(u){i.logger?.error?.("资源设置操作失败",u),i.notifications.error("资源设置保存失败,请重试")}finally{c=!1}}}});l=i._settingsDialog?.scope.addCleanup(()=>a.close(d))}async function FS(i,e=i.jquery(i.document)){await i.fullResources.saveCloudSettings({enable123Offline:e.find("#enable123Offline").is(":checked"),enable115Offline:e.find("#enable115Offline").is(":checked"),providerMode:e.find("#offlineProviderMode").val(),enable115Match:e.find("#enable115Match").is(":checked"),enable115LoginRedirect:e.find("#enable115LoginRedirect").is(":checked"),concurrency:Number(e.find("#oneOneFiveConcurrency").val()),cacheMinutes:Number(e.find("#oneOneFiveCacheMinutes").val())})}async function zS(i,e=i.jquery(i.document)){let t=e.find("#check-one-one-five-login");if(t.prop("disabled"))return;let s=i._settingsDialogGeneration,r=new B(`settings-cloud-login-${s}`),a;i._cloudLoginScope?.dispose(),i._cloudLoginScope=r,t.prop("disabled",!0);let n=()=>!r.disposed&&s===i._settingsDialogGeneration&&t[0]?.isConnected,o=e.find("#one-one-five-state").text("检测中");try{let c=await i.getRuntimeService("scope")?.();if(!n())return;a=c?.addCleanup?.(()=>r.dispose());let l=await i.getRuntimeService("offline").checkAccount("one115",{scope:r});n()&&o.text(l.authenticated?"已登录":"未登录")}catch{n()&&o.text("检测失败")}finally{n()&&t.prop("disabled",!1),r.dispose(),a?.(),i._cloudLoginScope===r&&(i._cloudLoginScope=null)}}function VS(i){for(let e of i._resourceTestScopes)e.dispose();i._resourceTestScopes.clear()}async function HS(i,e,t,s={}){if(!t)return i.notifications.info(s.source?.testMode==="host-page"?"此来源使用当前页面":"请设置来源检测地址");let r=i.jquery(e);if(r.prop("disabled"))return;let a=i._settingsDialogGeneration,n=s.renderGeneration??i._sourceRenderGeneration,o=r.siblings(".jhs-source-test-state").length?r.siblings(".jhs-source-test-state"):i.jquery('').insertAfter(r),c=await i.getRuntimeService("scope")?.(),l=new B(`settings-source-test-${s.source?.id||"unknown"}`),d=c?.addCleanup?.(()=>l.dispose());i._resourceTestScopes.add(l);let h=()=>r[0]?.isConnected&&a===i._settingsDialogGeneration&&n===i._sourceRenderGeneration&&!l.disposed;r.prop("disabled",!0),o.text("检测中");try{let u=new URL(t),f=await i.getRuntimeService("http").request({providerId:`settings-source-${s.source?.id||"unknown"}`,method:"GET",url:u.href,responseType:"text",cacheScope:"none",urlPolicy:s.custom?{trustClass:"custom-public"}:{trustClass:"builtin-public",hosts:[s.source?.domain||u.hostname]}},l);if(!h())return;let p=Number(f?.status)||0,m=f?.data??f?.responseText??"";o.text(p?`HTTP ${p} · ${m?"已响应(未验证解析)":"空响应"}`:m?"已响应(未验证解析)":"空响应")}catch(u){if(!h())return;let f=Number(u?.details?.status??u?.status)||0;o.text(f===404||u?.code==="NOT_FOUND"?"404":f===429||u?.code==="RATE_LIMITED"?"限流":[401,403].includes(f)||u?.code==="AUTH_REQUIRED"?"需要授权":u?.code==="TIMEOUT"?"超时":"请求失败")}finally{let u=h();i._resourceTestScopes.delete(l),d?.(),l.dispose(),u&&r.prop("disabled",!1).text("测试")}}var WS=P(()=>{ct();X();We();mi();ul();Cs();re()});var KS={};ae(KS,{SettingPlugin:()=>kp});var kp,JS=P(()=>{Gc();zc();X();he();mi();tp();Cs();re();sp();ip();Qj();uS();LS();WS();kp=class{constructor(e){ie(this,"_settingPanels");ie(this,"_settingTemplates");this.runtimeServices=e.runtimeServices,this.readTask=e.readTask,this.readBlacklist=e.readBlacklist,this.readListPage=e.readListPage,this.readNewVideo=e.readNewVideo,this.jquery=e.jquery,this.utils=e.utilities,this.notifications=e.notifications,this.logger=e.logger,this.events=e.events,this.domUi=e.domUi,this.document=e.document,this.window=e.window,this.site=e.site,this.route=e.route,this._resourceTestScopes=new Set,this._sourceRenderGeneration=0,this._carImportRevision=0,this._cloudLoginScope=null,this._desktopQuickSurfaces=new Map,this._quickSettingInstance=null,this._settingsDialog=null,this._settingsDialogOpenPromise=null,this.fullSettingsStyleLoader=null,this.readExternalSites=e.readExternalSites,this.readCoverButtons=e.readCoverButtons,this.folderName="JHS-数据备份",this.resourceSettings=this.getRuntimeService("resourceSettings"),this.pendingCarImport=null,this.taskStatusUnsubscribe=null,this._desktopSettingNavMounted=!1,this._settingScope=null,this._settingNavResizeCleanup=null,this._desktopNavGeneration=0,this._settingsDialogGeneration=0,this._fullSettingBinding=null,this._cloudSettingBinding=null,this._settingsFocusCleanup=null,this.resourceState={custom:[],tags:[],filters:[],builtIn:[],screenshot:{mode:"priority",providers:[]}},this.cacheItems=[{key:"jhs_dmm_video",text:"预览视频缓存",title:"预览视频缓存"},{key:"jhs_other_site",text:"第三方站点缓存",title:"第三方站点资源检测结果"},{key:"jhs_screenShot",text:"缩略图缓存",title:"缩略图缓存"},{key:"jhs_translate",text:"标题翻译",title:"标题翻译"},{key:"jhs_actress_info",text:"演员信息",title:"演员的年龄三围等数据信息"},{key:"jhs_score_info",text:"榜单评分缓存",title:"榜单与热播评分"},{key:wi,text:"第三方缓存",title:"评论、相关清单、磁力搜索、缩略图等请求缓存"},{key:"_circuitBreaker",text:"熔断状态",title:"各站点的熔断计数和状态"},{key:"_domainStats",text:"域名请求统计",title:"各域名的请求次数和错误统计"}]}get fullSettings(){return this._settingsDialog?.session||this.getRuntimeService("settings")}get fullResources(){return this._settingsDialog?.resources||this.resourceSettings}getName(){return"SettingPlugin"}getRuntimeService(e){return this.runtimeServices[e]}getSelector(){let e=this.getRuntimeService("host")?.getListSelectors?.();if(!e)throw new Error("类型错误: 无法确定选择器类型 (JavDb 或 JavBus)");return e}getFormDependencies(){let e=this._settingsDialog;return Object.freeze({otherSite:this.readExternalSites?.(),listPage:this.readListPage?.(),newVideo:this.readNewVideo?.(),blacklist:this.readBlacklist?.(),imageLayout:this.getRuntimeService("busImageLayout"),host:this.getRuntimeService("host"),movie:this.getRuntimeService("movie"),settings:this.getRuntimeService("settings"),settingsRegistry:this.getRuntimeService("settingsRegistry"),webdav:this.getRuntimeService("webdav"),webdavSync:this.getRuntimeService("webdavSync"),jquery:this.jquery,document:this.document,keywordRules:this.getRuntimeService("keywordRules"),backup:this.getRuntimeService("backup"),utilities:this.utils,events:this.events,notifications:this.notifications,logger:this.logger,domUi:this.domUi,window:this.window,root:e?.root,draftSettings:e?.session,scope:e?.scope,isActive:()=>!e||this._settingsDialog===e&&!e.scope.disposed,getScope:e?async()=>e.scope:this.getRuntimeService("scope")})}async initCss(e=!0){let t=this.getRuntimeService("settings").snapshot(),s=t?.containerWidth??"100";this.utils.isMobileMode()&&(s="100");let r=this.utils.isMobileMode()?1:t?.containerColumns??5;return vj(s,r,qe,ke,e).replace("",`${e?yj+Fc:""}`)}initEntryCss(){return this.initCss(!1)}activateFeatureSurface(...e){return Vj(this,...e)}disposeQuickSettings(){return Hj(this)}syncDesktopSettingNav(...e){return Wj(this,...e)}mountDesktopSettingNav(){return Kj(this)}mountDesktopQuickSettings(){return Jj(this)}unmountDesktopSettingNav(){return Gj(this)}openQuickSetting(){return Yj(this)}openSettingDialog(...e){return iS(this,...e)}loadSettingDialog(...e){return rS(this,...e)}requestSettingsClose(...e){return aS(this,...e)}hydrateLiveSettings(...e){return IS(this,...e)}syncFullConnection(...e){return nS(this,...e)}updateSettingsReady(...e){return oS(this,...e)}hydrateSettingForm(...e){return cS(this,...e)}renderTaskStatuses(...e){return lS(this,...e)}activateSettingPanel(...e){return dS(this,...e)}hasUnsavedConnection(...e){return hS(this,...e)}bindClick(...e){return NS(this,...e)}loadResourceSettings(...e){return DS(this,...e)}renderCloudSettings(...e){return OS(this,...e)}renderResourceSettings(...e){return MS(this,...e)}renderRules(...e){return BS(this,...e)}normalizeEditorRows(...e){return $S(this,...e)}openSourceDialog(...e){return qS(this,...e)}openRuleDialog(...e){return US(this,...e)}saveCloudSettings(...e){return FS(this,...e)}checkOneOneFiveLogin(...e){return zS(this,...e)}cancelResourceTests(){return VS(this)}testSource(...e){return HS(this,...e)}previewCarNumbers(...e){return RS(this,...e)}confirmCarNumbers(...e){return PS(this,...e)}}});var GS={};ae(GS,{ResponsiveShellController:()=>Cp});var bl,A0,Cp,YS=P(()=>{Ba();st();X();Te();Ee();re();bl={default:"默认",rateCount:"评价人数",date:"时间"},A0="#jhs-fab{position:fixed;bottom:calc(var(--jhs-fab-offset) + env(safe-area-inset-bottom,0px));right:var(--jhs-space-5);width:var(--jhs-fab-size);height:var(--jhs-fab-size);border:0;border-radius:50%;background:var(--jhs-accent);color:var(--jhs-accent-text-on);font-size:var(--jhs-font-size-xl);font-family:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:var(--jhs-z-fab);box-shadow:var(--jhs-shadow-md);transition:transform var(--jhs-motion-base) var(--jhs-ease),box-shadow var(--jhs-motion-base);-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}html.jhs-fab-mounted{scroll-padding-bottom:calc(104px + env(safe-area-inset-bottom,0px) + var(--jhs-batch-clearance, 0px))}#jhs-fab-safe-area{display:block;width:100%;height:calc(104px + env(safe-area-inset-bottom,0px) + var(--jhs-batch-clearance, 0px));clear:both;visibility:hidden;pointer-events:none}#jhs-fab:active{box-shadow:inset 0 0 0 1px currentColor}#jhs-fab .jhs-icon{width:var(--jhs-icon-lg);height:var(--jhs-icon-lg)}#jhs-fab.jhs-fab-open{transform:rotate(135deg);background:var(--jhs-accent-hover);color:var(--jhs-accent-text-on);box-shadow:var(--jhs-shadow-md)}.jhs-fab-backdrop{position:fixed;inset:0;background:var(--jhs-overlay);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:var(--jhs-z-fab-backdrop);opacity:0;pointer-events:none;transition:opacity var(--jhs-motion-base)}.jhs-fab-backdrop.jhs-fab-backdrop-visible{opacity:1;pointer-events:auto}.jhs-fab-menu{position:fixed;bottom:calc(92px + env(safe-area-inset-bottom,0px) + var(--jhs-batch-clearance, 0px));right:var(--jhs-space-4);max-height:calc(100vh - 108px - var(--jhs-batch-clearance, 0px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 108px - var(--jhs-batch-clearance, 0px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;z-index:var(--jhs-z-fab-menu);display:flex;flex-direction:column;gap:var(--jhs-space-3);align-items:flex-end;opacity:0;transform:translateY(16px) scale(0.92);pointer-events:none;transition:opacity var(--jhs-motion-base),transform var(--jhs-motion-base) var(--jhs-ease)}.jhs-fab-menu.jhs-fab-menu-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.jhs-fab-group{display:flex;flex-direction:column;gap:var(--jhs-space-3);align-items:flex-end;flex-shrink:0}.jhs-fab-divider{flex-shrink:0;width:32px;height:2px;background:var(--jhs-border);border-radius:1px;align-self:flex-end;margin:var(--jhs-space-1) 0}.jhs-fab-menu-item{display:flex;align-items:center;gap:var(--jhs-space-3);padding:var(--jhs-space-3) var(--jhs-space-4);background:var(--jhs-surface);border:1px solid var(--jhs-border);border-radius:var(--jhs-radius-pill);box-shadow:var(--jhs-shadow-md);cursor:pointer;white-space:nowrap;min-height:var(--jhs-touch-target);font-size:var(--jhs-font-size-md);font-family:inherit;font-weight:var(--jhs-font-weight-semibold);color:var(--jhs-text);opacity:0;transform:translateY(8px) scale(0.92);transition:opacity var(--jhs-motion-base),transform var(--jhs-motion-base) var(--jhs-ease),background var(--jhs-motion-base);-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}.jhs-fab-menu-item.jhs-fab-item-visible{opacity:1;transform:translateY(0) scale(1);transition:opacity var(--jhs-motion-base) ease,transform var(--jhs-motion-base) var(--jhs-ease),background var(--jhs-motion-base)}.jhs-fab-menu-item:active{box-shadow:inset 0 0 0 1px currentColor;background:var(--jhs-surface-2)}.jhs-fab-status-dot{width:var(--jhs-space-2);height:var(--jhs-space-2);border-radius:50%;flex-shrink:0;background:var(--jhs-border-strong)}.jhs-fab-status-dot--filter.is-active{background:var(--jhs-status-filter)}.jhs-fab-status-dot--fav.is-active{background:var(--jhs-status-fav)}.jhs-fab-status-dot--down.is-active{background:var(--jhs-status-down)}.jhs-fab-status-dot--watch.is-active{background:var(--jhs-status-watch)}.jhs-fab-menu-item.jhs-state-action[aria-pressed=true]{border-color:var(--jhs-btn-fg, var(--jhs-accent));box-shadow:var(--jhs-shadow-md),inset 0 0 0 1px var(--jhs-btn-fg, var(--jhs-accent))}.jhs-page-commandbar{display:flex;align-items:center;justify-content:space-between;overflow:visible;gap:var(--jhs-space-3);width:100%;margin:var(--jhs-space-3) 0}.jhs-commandbar__left,.jhs-commandbar__right,.jhs-commandbar__primary,.jhs-commandbar__filters,.jhs-commandbar__context,.jhs-commandbar__view{display:flex;align-items:center;gap:var(--jhs-space-1);min-width:0;white-space:nowrap}.jhs-commandbar__left{flex:1 1 auto;overflow:visible}.jhs-commandbar__right{flex:0 0 auto;overflow:visible}.jhs-page-commandbar:has(>.jhs-commandbar__utilities){flex-wrap:wrap}.jhs-commandbar__utilities{flex-basis:100%;justify-content:flex-end}.jhs-commandbar__filters{overflow:visible}.jhs-commandbar__batch,.jhs-commandbar__more,.jhs-sort-control{position:relative}.jhs-commandbar__menu{min-width:220px}.jhs-commandbar__menu .jhs-btn,.jhs-sort-menu .jhs-btn{width:100%;justify-content:flex-start}.jhs-commandbar__sort-label{color:var(--jhs-text-muted);font-size:var(--jhs-font-size-md)}.jhs-mobile-filter-menu,.jhs-mobile-sort-menu{display:none;min-width:220px;padding:var(--jhs-space-2);border:1px solid var(--jhs-border);border-radius:var(--jhs-radius-md);background:var(--jhs-surface);box-shadow:var(--jhs-shadow-md)}.jhs-fab-menu:is(.jhs-fab-filter-open,.jhs-fab-sort-open)>.jhs-fab-group,.jhs-fab-menu:is(.jhs-fab-filter-open,.jhs-fab-sort-open)>.jhs-fab-divider{display:none}.jhs-fab-menu.jhs-fab-filter-open>.jhs-mobile-filter-menu,.jhs-fab-menu.jhs-fab-sort-open>.jhs-mobile-sort-menu{display:grid;gap:var(--jhs-space-1)}.jhs-mobile-filter-menu .jhs-btn,.jhs-mobile-sort-menu .jhs-btn{width:100%;justify-content:flex-start}@media(max-width:1023px){.jhs-page-commandbar{flex-wrap:wrap;overflow:visible}.jhs-commandbar__left,.jhs-commandbar__right{flex-wrap:wrap;overflow:visible}.jhs-commandbar__left{flex-basis:100%}.jhs-commandbar__right{margin-left:auto}}html.jhs-fab-mounted .jhs-page-commandbar{display:none}@media(max-width:767px){html.jhs-fab-mounted .jhs-page-commandbar{display:none}.jhs-page-commandbar{flex-wrap:wrap;gap:var(--jhs-space-2)}.jhs-commandbar__left,.jhs-commandbar__right{flex-basis:100%;margin-left:0}}.jhs-fab-menu-item[hidden]{display:none}.jhs-mobile-batch-menu{display:none;min-width:220px;padding:var(--jhs-space-2);background:var(--jhs-surface);border:1px solid var(--jhs-border);border-radius:var(--jhs-radius-md);box-shadow:var(--jhs-shadow-md)}.jhs-mobile-batch-menu .jhs-btn{width:100%;justify-content:flex-start}.jhs-fab-menu.jhs-fab-batch-open>.jhs-fab-group,.jhs-fab-menu.jhs-fab-batch-open>.jhs-fab-divider{display:none}.jhs-fab-menu.jhs-fab-batch-open>.jhs-mobile-batch-menu{display:grid;gap:var(--jhs-space-1)}html.jhs-fab-mounted .console-logger-container{display:none!important}",Cp=class{constructor(e){if(typeof e.jquery!="function")throw new TypeError("Responsive shell requires the injected jQuery UI boundary");this.jquery=e.jquery,this.window=e.window,this.document=e.document,this.services=Object.freeze({profile:e.profile,settings:e.settings,host:e.host,state:e.state,logger:e.logger,notifications:e.notifications}),this.capabilities=e.capabilities??{},this.openNewVideo=e.openNewVideo??null,this.newVideoAvailable=e.newVideoAvailable??(()=>!!this.openNewVideo),this.history=e.history,this.blacklist=e.blacklist,this.magnetActions=e.magnetActions,this.privacyActions=e.privacyActions??null,this.mediaActions=e.mediaActions??null,this.utilityScope=null,this.getPageActions=e.getPageActions??null,this.executePageAction=e.executePageAction??null,this._fabGeneration=0,this._animationTimers=new Set,this._commandBarPopovers=new Set,this._commandBarOrigins=new Map,this._commandBarSources=[],this._started=!1,this._disposed=!1}async initCss(){return A0}start(e){this._started||this._disposed||(this._started=!0,e.listen(this.services.profile,"profile.changed",()=>this.syncSurfaces()),e.listen(this.document,"jhs-feature-availability-changed",()=>{this.unmountBottomBar(),this.syncSurfaces()}),e.listen(this.document,"jhs-selection-mode-changed",()=>this.mountUtilityTools(this.services.profile.current()==="compact")),this.syncSurfaces())}dispose(){if(!this._disposed){this.utilityScope?.dispose(),this.jquery("#jhs-private-tools").remove(),this._disposed=!0,this._fabGeneration++;for(let e of this._animationTimers)this.window.clearTimeout(e);this._animationTimers.clear(),this.unmountBottomBar(),this.unmountDesktopCommandBar();for(let{element:e,parent:t,next:s,attributes:r}of[...this._commandBarOrigins.values()].reverse())if(!(!t?.isConnected||!e.isConnected)){t.insertBefore(e,s?.parentNode===t?s:null);for(let[a,n]of Object.entries(r))n===null?e.removeAttribute(a):e.setAttribute(a,n)}this._commandBarOrigins.clear(),this.jquery("#jhs-commandbar-parking").remove(),this.jquery(this.document).off("click.jhsCommandbar")}}mountBottomBar(){if(this.jquery("#jhs-fab").length)return;this.document.documentElement.classList.add("jhs-fab-mounted");let e=this.jquery('').appendTo("body"),t=this.createMenu();this.jquery("body").append(t);let s=this.jquery('').append(se("plus")).appendTo("body");this.jquery('').appendTo("body"),this.bindEvents(s,e)}unmountBottomBar(){this._fabGeneration++,this.jquery("#jhs-fab, #jhs-fab-menu, #jhs-fab-safe-area, .jhs-fab-backdrop").remove(),this.document.documentElement.classList.remove("jhs-fab-mounted")}syncSurfaces(){let e=this.services.profile.current()==="compact",t=this.capabilities.settings;e?(this.unmountDesktopCommandBar(),t?.unmountDesktopSettingNav?.(),this.mountBottomBar()):(this.unmountBottomBar(),this.mountDesktopCommandBar(),t?.mountDesktopSettingNav?.()),this.mountUtilityTools(e)}mountUtilityTools(e){this.utilityScope?.dispose(),this.jquery("#jhs-private-tools").remove();let t=new B("shell:utility-tools");this.utilityScope=t;let s=h=>{Promise.resolve(this.privacyActions?.bindReveal(h,t)).catch(u=>{t.disposed||this.services.logger.error("临时查看入口初始化失败",u)})};if(e){let h=this.document.querySelector('[data-action="privacyReveal"]');h&&s(h);return}let r=["#jhs-page-commandbar .jhs-commandbar__right","#top-right-box","[data-jhs-detail-actions]","#navbar-menu-user .navbar-end"].map(h=>this.document.querySelector(h)).find(h=>h&&h.getClientRects().length),a=r?.closest("#jhs-page-commandbar"),n=a||r||this.services.host.locateDetailRoot?.()||this.document.body,o=this.document.createElement("div");o.id="jhs-private-tools",o.className="jhs-privacy-tools jhs-ui",a&&o.classList.add("jhs-commandbar__utilities");let c=(h,u,f=!1)=>{let p=this.document.createElement("button");return p.type="button",p.className="jhs-btn jhs-btn--secondary jhs-btn--sm",p.textContent=h,t.listen(p,"click",()=>{if(!f)for(let m of this._commandBarPopovers)m.menu.contains(p)&&m.close(!0);Promise.resolve(u()).catch(m=>this.services.logger.error("工具操作失败",m))}),o.append(p),p};if(this.privacyActions&&this.privacyActions.available?.()!==!1){let h=c(this.privacyActions.enabled()?"关闭隐私遮罩":"隐私遮罩",()=>this.privacyActions.toggle());h.setAttribute("data-jhs-privacy-toggle",""),h.setAttribute("aria-pressed",String(this.privacyActions.enabled()));let u=c("按住临时查看",()=>{},!0);s(u),c("遮罩偏好",()=>this.privacyActions.configure())}this.mediaActions&&this.mediaActions.available?.()!==!1&&c("媒体库",()=>this.mediaActions.configure()),o.className="jhs-ui jhs-enhancement-menu-group";let l=h=>{let u=this.document.querySelector(h);return[...this._commandBarPopovers].find(f=>u?.contains(f.anchor))?.menu||u?.querySelector(".jhs-commandbar__menu")},d=l(".jhs-commandbar__more");if(d&&o.children.length)o.querySelectorAll("button").forEach(h=>{h.setAttribute("role","menuitem"),h.tabIndex=-1}),d.append(o);else if(n&&o.children.length){let h=this.document.createElement("div");h.append(o),li(n,h,t)}this.document.querySelectorAll("[data-jhs-enhancement-action]").forEach(h=>h.remove()),this.getPageActions&&this.getPageActions().then(h=>{if(t.disposed)return;let u=l(".jhs-commandbar__batch");if(u)for(let f of h.filter(p=>p.id.startsWith("enhancement-"))){let p=this.document.createElement("button");p.type="button",p.className="jhs-btn jhs-btn--ghost",p.setAttribute("role","menuitem"),p.setAttribute("data-jhs-enhancement-action",""),p.textContent=f.label,p.disabled=!f.enabled,u.append(p),t.listen(p,"click",()=>{this.executePageAction?.(f.id).catch(m=>this.services.logger.error("增强操作失败",m))}),t.addCleanup(()=>p.remove())}}).catch(h=>this.services.logger.warn("增强菜单加载失败",h)),t.addCleanup(()=>o.remove())}mountDesktopCommandBar(){if(!this.window.isListPage)return;this._commandBarSources=this._commandBarSources.filter(t=>t.element.isConnected);for(let t of this._commandBarOrigins.keys())t.isConnected||this._commandBarOrigins.delete(t);let e=this.jquery("#jhs-page-commandbar");e.length?this.collectCommandControls(e):this.buildCommandBar()}collectCommandControls(e){let t=g=>{let v=this.jquery(g).first();return!v.length||!!v.closest("#jhs-page-commandbar").length||[...this._commandBarPopovers].some(y=>y.menu.contains(v[0]))},s=g=>{let v=this._commandBarOrigins.get(g);v||(v={element:g,parent:g.parentNode,next:g.nextSibling,attributes:Object.fromEntries(["class","role","tabindex"].map(y=>[y,g.getAttribute(y)]))},this._commandBarOrigins.set(g,v)),this._commandBarSources.some(y=>y.element===g)||this._commandBarSources.push(v)},r=e.find(".jhs-commandbar__left"),a=e.find(".jhs-commandbar__right");if(!r.length||!a.length)return;!e.find(".jhs-commandbar__primary").length&&!t("#waitCheckBtn")&&r.append('');let n=e.find(".jhs-commandbar__primary");["#waitCheckBtn","#newVideoBtn","#historyBtn"].forEach((g=>{if(t(g))return;let v=this.jquery(g).first();g==="#historyBtn"&&v.closest("#top-right-box").length||v.length&&(s(v[0]),v.attr("class","jhs-btn jhs-btn--secondary").removeAttr("role tabindex").detach().appendTo(n))}));let o=this.jquery("#top-right-box").first();o.length&&!o.closest("#jhs-page-commandbar").length&&(s(o[0]),o.detach().appendTo(n)),n.children().length&&r.append(n),!e.find(".jhs-commandbar__more").length&&!["#statsBtn","#blacklistBtn"].every(t)&&e.find(".jhs-commandbar__left").append('');let c=g=>this.jquery([...this._commandBarPopovers].find(v=>g[0]?.contains(v.anchor))?.menu??g.find(".jhs-commandbar__menu")[0]),l=e.find(".jhs-commandbar__more"),d=c(l);["#statsBtn","#blacklistBtn"].forEach((g=>{if(t(g))return;let v=this.jquery(g).first();v.length&&(s(v[0]),v.attr({class:"jhs-btn jhs-btn--ghost",role:"menuitem",tabindex:"-1"}).detach().appendTo(d))})),d.children().length&&l.appendTo(r);let h=this.jquery("#jhs-quick-filter").first();h.length&&!h.closest("#jhs-page-commandbar").length&&(s(h[0]),r.append(this.jquery('').append(h.detach())));let u=this.jquery("#addBlacklistBtn").first();u.length&&!u.closest("#jhs-page-commandbar").length&&(s(u[0]),u.attr("class","jhs-btn jhs-btn--secondary").removeAttr("role tabindex").detach().appendTo(this.jquery('').appendTo(a)));let f=this.jquery(".jhs-sort-control").first();if(f.length&&!f.closest("#jhs-page-commandbar").length){let g=this.jquery('');s(f[0]),f.detach().appendTo(g),a.append(g)}!e.find(".jhs-commandbar__batch").length&&!["#filterAllVideo","#favoriteAllVideo","#hasDownAllVideo"].every(t)&&a.append('');let p=e.find(".jhs-commandbar__batch"),m=c(p);["#filterAllVideo","#favoriteAllVideo","#hasDownAllVideo"].forEach((g=>{if(t(g))return;let v=this.jquery(g).first();v.length&&(s(v[0]),v.attr({class:"jhs-btn jhs-btn--ghost",role:"menuitem",tabindex:"-1"}).detach().appendTo(m))})),m.children().length&&p.appendTo(a),e.find(".jhs-commandbar__more, .jhs-commandbar__batch").each(((g,v)=>{let y=this.jquery(v);if(y.data("jhsCommandbarBound"))return;y.data("jhsCommandbarBound",!0);let j=y.find(".jhs-commandbar__menu-toggle"),S=y.find(".jhs-commandbar__menu"),x=new De(j[0],S[0]);this._commandBarPopovers.add(x),j.on("click.jhsCommandbarMenu",(A=>{A.preventDefault(),A.stopPropagation(),x.opened?x.close():x.open()})),S.on("click.jhsCommandbarMenu","[role='menuitem']",()=>x.close(!0))})),this.jquery(".historyBtnBox").each(((g,v)=>{v.children.length||(v.style.display="none")})),this.capabilities.listPage?.syncQuickFilterUi?.()}collectDesktopCommandSources(){let e=["#waitCheckBtn","#newVideoBtn","#historyBtn","#statsBtn","#blacklistBtn","#jhs-quick-filter","#addBlacklistBtn",".jhs-sort-control","#filterAllVideo","#favoriteAllVideo","#hasDownAllVideo"],t=[];for(let s of e){let r=this.jquery(s).first();if(!r.length||r.closest("#jhs-page-commandbar, #jhs-commandbar-parking").length)continue;let a=r[0],n=this._commandBarOrigins.get(a);n||(n={element:a,parent:a.parentNode,next:a.nextSibling,attributes:Object.fromEntries(["class","role","tabindex"].map(o=>[o,a.getAttribute(o)]))},this._commandBarOrigins.set(a,n)),t.push(n)}return t}unmountDesktopCommandBar(){qt(this.document);for(let r of this._commandBarPopovers)r.close(),this.jquery(r.anchor).off(".jhsCommandbarMenu"),this.jquery(r.menu).off(".jhsCommandbarMenu");this._commandBarPopovers.clear();let e=this.jquery("#jhs-commandbar-parking");e.length||(e=this.jquery('').appendTo("body"));let t=new Set((this._commandBarSources||[]).map(r=>r.element));for(let r of this.collectDesktopCommandSources())t.has(r.element)||this._commandBarSources.push(r);let s=[...this._commandBarSources||[]];for(let r of s){let a=r.element;a?.isConnected&&e.append(a)}this._commandBarSources=[],this.jquery("#jhs-page-commandbar").remove(),this.jquery(this.document).off("click.jhsCommandbar")}buildCommandBar(){if(!this.window.isListPage||this.jquery("#jhs-page-commandbar").length)return;this._commandBarSources=[];let e=this.jquery(` `),t=this.services.host.locateListRoot?.();if(!t)return void this.services.logger.warn("JHS 页面工具栏未创建:列表容器尚未就绪");this.jquery(t).before(e),this.collectCommandControls(e)}getCarNum(){try{return this.services.host.readMovieRef?.()?.carNum||null}catch(e){this.services.logger.debug("移动端详情番号解析失败,已回退",e)}return null}createMenu(){let e=(v,y,j="")=>``,t=v=>`