// ==UserScript== // @name Shadowban Scanner (中文(中国)) // @namespace https://github.com/Robot-Inventor/shadowban-scanner/ // @version 4.0.3 // @description 这是一个用于检查 X(原 Twitter)的 Shadowban 的浏览器扩展。 // @author Robot-Inventor (ろぼいん / @keita_roboin) // @match https://*.twitter.com/* // @match https://*.x.com/* // @icon https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/src/image/icon128.png // @downloadURL https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js // @updateURL https://raw.githubusercontent.com/Robot-Inventor/shadowban-scanner/main/userScript/zh_CN.user.js // @grant none // ==/UserScript== /*! For license information please see zh_CN.user.js.LICENSE.txt */ (()=>{var e={16(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(601),s=r.n(n),i=r(314),o=r.n(i)()(s());o.push([e.id,`body[data-color-scheme="light"] { --sb-background-green: #a4dda8; --sb-background-red: #f6afaf; } body[data-color-scheme="dark"] { --sb-background-green: #14351d; --sb-background-red: #481e1e; } body[data-color-accessibility-mode][data-color-scheme="light"] { --sb-background-green: #c3d2ee; --sb-background-red: #f4b892; } body[data-color-accessibility-mode][data-color-scheme="dark"] { --sb-background-green: #22487d; --sb-background-red: #772929; } .shadowban-scanner-tombstone-necromancer { display: inline-block; margin: 0 2rem; text-decoration: none; } .shadowban-scanner-tombstone-necromancer:hover { text-decoration: underline; } sbs-message { --message-background-color-red: var(--sb-background-red); --message-background-color-green: var(--sb-background-green); margin-top: 1em; } /* * If the bio is empty, the bio element does not exist, and sbs-message is inserted directly after the username, * so apply a different style */ [data-testid="UserName"] + sbs-message { margin-top: 0; margin-bottom: 1rem; } [data-sb-compact-mode] { /* * \`!important\` is required to work with Kiwi Browser. * In Kiwi Browser and, likely, in Chrome's mobile layout, it is necessary to override the borders set by X on posts. */ border-left: solid 0.3rem !important; } [data-sb-compact-mode="green"] { /* * \`!important\` is required to work with Kiwi Browser. * In Kiwi Browser and, likely, in Chrome's mobile layout, it is necessary to override the borders set by X on posts. */ border-left-color: var(--sb-background-green) !important; } [data-sb-compact-mode="red"] { /* * \`!important\` is required to work with Kiwi Browser. * In Kiwi Browser and, likely, in Chrome's mobile layout, it is necessary to override the borders set by X on posts. */ border-left-color: var(--sb-background-red) !important; } [data-sb-translation] { display: inline-block; min-width: 15em; min-height: 1em; border-radius: 0.25em; background-image: linear-gradient(90deg, transparent 40%, rgb(175 175 175 / 0.7) 80%, transparent 100%); background-size: 200% 100%; animation: loading-animation 1.5s linear infinite; } @keyframes loading-animation { 0% { background-position: 200% 0%; opacity: 1; } 100% { background-position: 0% 0%; opacity: 1; } } `,""]);let a=o},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,s,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),r&&(d[2]&&(d[1]="@media ".concat(d[2]," {").concat(d[1],"}")),d[2]=r),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},601(e){"use strict";e.exports=function(e){return e[1]}},72(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}"),(i=r.sourceMap)&&"u">typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(n,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},815(e,t,r){var n;e=r.nmd(e),"u">typeof globalThis||"u">typeof self&&self,n=function(e){"use strict";if(!(globalThis.chrome&&globalThis.chrome.runtime&&globalThis.chrome.runtime.id))throw Error("This script should only be loaded in a browser extension.");globalThis.browser&&globalThis.browser.runtime&&globalThis.browser.runtime.id?e.exports=globalThis.browser:e.exports=(e=>{let t={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(0===Object.keys(t).length)throw Error("api-metadata.json has not been included in browser-polyfill");class r extends WeakMap{constructor(e,t){super(t),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}let n=(t,r)=>(...n)=>{e.runtime.lastError?t.reject(Error(e.runtime.lastError.message)):r.singleCallbackArg||n.length<=1&&!1!==r.singleCallbackArg?t.resolve(n[0]):t.resolve(n)},s=e=>1==e?"argument":"arguments",i=(e,t,r)=>new Proxy(t,{apply:(t,n,s)=>r.call(n,e,...s)}),o=Function.call.bind(Object.prototype.hasOwnProperty),a=(e,t={},r={})=>{let l=Object.create(null);return new Proxy(Object.create(e),{has:(t,r)=>r in e||r in l,get(c,d,h){if(d in l)return l[d];if(!(d in e))return;let u=e[d];if("function"==typeof u)if("function"==typeof t[d])u=i(e,e[d],t[d]);else if(o(r,d)){let t,o=(t=r[d],function(e,...r){if(r.lengtht.maxArgs)throw Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${d}(), got ${r.length}`);return new Promise((s,i)=>{if(t.fallbackToNoCallback)try{e[d](...r,n({resolve:s,reject:i},t))}catch(n){console.warn(`${d} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,n),e[d](...r),t.fallbackToNoCallback=!1,t.noCallback=!0,s()}else t.noCallback?(e[d](...r),s()):e[d](...r,n({resolve:s,reject:i},t))})});u=i(e,e[d],o)}else u=u.bind(e);else if("object"==typeof u&&null!==u&&(o(t,d)||o(r,d)))u=a(u,t[d],r[d]);else{if(!o(r,"*"))return Object.defineProperty(l,d,{configurable:!0,enumerable:!0,get:()=>e[d],set(t){e[d]=t}}),u;u=a(u,t[d],r["*"])}return l[d]=u,u},set:(t,r,n,s)=>(r in l?l[r]=n:e[r]=n,!0),defineProperty:(e,t,r)=>Reflect.defineProperty(l,t,r),deleteProperty:(e,t)=>Reflect.deleteProperty(l,t)})},l=e=>({addListener(t,r,...n){t.addListener(e.get(r),...n)},hasListener:(t,r)=>t.hasListener(e.get(r)),removeListener(t,r){t.removeListener(e.get(r))}}),c=new r(e=>"function"!=typeof e?e:function(t){e(a(t,{},{getContent:{minArgs:0,maxArgs:0}}))}),d=new r(e=>"function"!=typeof e?e:function(t,r,n){let s,i,o,a=!1,l=new Promise(e=>{i=function(t){a=!0,e(t)}});try{o=e(t,r,i)}catch(e){o=Promise.reject(e)}let c=!0!==o&&(s=o)&&"object"==typeof s&&"function"==typeof s.then;if(!0!==o&&!c&&!a)return!1;return(c?o:l).then(e=>{n(e)},e=>{n({__mozWebExtensionPolyfillReject__:!0,message:e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred"})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)}),!0}),h=({reject:t,resolve:r},n)=>{e.runtime.lastError?"The message port closed before a response was received."===e.runtime.lastError.message?r():t(Error(e.runtime.lastError.message)):n&&n.__mozWebExtensionPolyfillReject__?t(Error(n.message)):r(n)},u=(e,t,r,...n)=>{if(n.lengtht.maxArgs)throw Error(`Expected at most ${t.maxArgs} ${s(t.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((e,t)=>{let s=h.bind(null,{resolve:e,reject:t});n.push(s),r.sendMessage(...n)})},m={devtools:{network:{onRequestFinished:l(c)}},runtime:{onMessage:l(d),onMessageExternal:l(d),sendMessage:u.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:u.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},p={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return t.privacy={network:{"*":p},services:{"*":p},websites:{"*":p}},a(e,m,t)})(chrome)},"function"==typeof define&&define.amd?define("webextension-polyfill",["module"],n):n(e)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0,r.rv=()=>"1.7.5",r.ruid="bundler=rspack@1.7.5",(()=>{"use strict";let e,t,n,s,i,o,a,l,c,d,h,u,m,p,g;var f,b,v,y,w,A,x,_,S,C,E,$,k=r(72),P=r.n(k),T=r(825),O=r.n(T),I=r(659),N=r.n(I),M=r(56),j=r.n(M),R=r(540),F=r.n(R),B=r(113),U=r.n(B),L=r(16),D={};D.styleTagTransform=U(),D.setAttributes=j(),D.insert=N().bind(null,"head"),D.domAPI=O(),D.insertStyleElement=F(),P()(L.A,D),L.A&&L.A.locals&&L.A.locals;var z="data-shadowban-checked",q="data-sb-translation",H="data-sb-shadow-translation",W=["✅","\uD83D\uDEAB","⚠️"];let V=["pro.twitter.com","pro.x.com"],K=(e,t)=>new Promise(r=>{let n=e();if(n instanceof Element||n instanceof NodeList&&n.length)return void r(n);let s=null,i=new MutationObserver(()=>{let t=e();(t instanceof Element||t instanceof NodeList&&t.length)&&(i.disconnect(),s&&clearTimeout(s),r(t))});s=setTimeout(()=>{i.disconnect(),r(null)},t),i.observe(document.body,{attributes:!0,childList:!0,subtree:!0})}),G=async(e,t=document,r=500)=>await K(()=>t.querySelector(e),r),X=async(e,t=document,r=500)=>await K(()=>t.querySelectorAll(e),r)??document.createDocumentFragment().childNodes,Z=()=>{switch(document.body.style.backgroundColor){case"rgb(255, 255, 255)":return"light";case"rgb(21, 32, 43)":return"darkblue";case"rgb(0, 0, 0)":return"black";default:return"unknown"}},J=e=>"TEXTAREA"===e.tagName?e:e.parentElement,Y=async(e,t)=>{let r=V.includes(location.hostname),n=[...await X(r?"[role='dialog'] [data-text='true'], [role='dialog'] textarea[data-testid='tweetTextarea_0']":"[role='dialog'] [data-text='true'], textarea[data-testid='tweetTextarea_0']",document,t)];if(!(Array.isArray(n)&&n.length>0))throw Error("[twi-ext] Failed to get text box marker of tweet");for(let e=0;e{open(`https://x.com/intent/tweet?text=${encodeURIComponent(e)}`,"_blank")},ee=async(e,t=1e3,r=!1)=>{if(r)return void Q(e);let n=new KeyboardEvent("keypress",{bubbles:!0,keyCode:78,which:78});document.dispatchEvent(n);try{await Y(e,t)}catch{Q(e)}},et=(t=e=>"object"==typeof e.props&&null!==e.props&&n(e.props),n=e=>"object"==typeof e.retweetWithCommentLink&&null!==e.retweetWithCommentLink&&s(e.retweetWithCommentLink),s=e=>"object"==typeof e.state&&null!==e.state&&i(e.state),i=e=>"object"==typeof e.quotedStatus&&null!==e.quotedStatus&&o(e.quotedStatus),o=e=>(null===e.possibly_sensitive||void 0===e.possibly_sensitive||"boolean"==typeof e.possibly_sensitive)&&(null===e.possibly_sensitive_editable||void 0===e.possibly_sensitive_editable||"boolean"==typeof e.possibly_sensitive_editable)&&"string"==typeof e.permalink&&"object"==typeof e.user&&null!==e.user&&a(e.user),a=e=>(null===e.possibly_sensitive||void 0===e.possibly_sensitive||"boolean"==typeof e.possibly_sensitive)&&"string"==typeof e.screen_name&&(""===e.profile_interstitial_type||"sensitive_media"===e.profile_interstitial_type||"fake_account"===e.profile_interstitial_type||"offensive_profile_content"===e.profile_interstitial_type||"timeout"===e.profile_interstitial_type)&&Array.isArray(e.withheld_in_countries)&&e.withheld_in_countries.every(e=>"string"==typeof e),e=>"object"==typeof e&&null!==e&&Array.isArray(e.children)&&"object"==typeof e.children[1]&&null!==e.children[1]&&t(e.children[1])&&Array.isArray(e.children.slice(2))),er=(l=e=>"object"==typeof e.props&&null!==e.props&&c(e.props),c=e=>"boolean"==typeof e.isFocalTweet,e=>"object"==typeof e&&null!==e&&Array.isArray(e.children)&&2===e.children.length&&"object"==typeof e.children[0]&&null!==e.children[0]&&l(e.children[0])&&!0),en=(d=e=>"object"==typeof e.props&&null!==e.props&&h(e.props),h=e=>Array.isArray(e.children)&&2===e.children.length&&"object"==typeof e.children[1]&&null!==e.children[1]&&u(e.children[1]),u=e=>"object"==typeof e.props&&null!==e.props&&m(e.props),m=e=>"object"==typeof e.user&&null!==e.user&&p(e.user),p=e=>(null===e.possibly_sensitive||void 0===e.possibly_sensitive||"boolean"==typeof e.possibly_sensitive)&&"string"==typeof e.screen_name&&(""===e.profile_interstitial_type||"sensitive_media"===e.profile_interstitial_type||"fake_account"===e.profile_interstitial_type||"offensive_profile_content"===e.profile_interstitial_type||"timeout"===e.profile_interstitial_type)&&Array.isArray(e.withheld_in_countries)&&e.withheld_in_countries.every(e=>"string"==typeof e),e=>"object"==typeof e&&null!==e&&Array.isArray(e.children)&&2===e.children.length&&"object"==typeof e.children[0]&&null!==e.children[0]&&d(e.children[0])&&!0),es=e=>{let t=Object.getOwnPropertyNames(e).find(e=>e.startsWith("__reactProps$"));return t?e[t]:null};class ei{profileElement;constructor(e){this.profileElement=e}get props(){let e=(e=>{let t,r=(t=Object.getOwnPropertyNames(e).find(e=>e.startsWith("__reactFiber$")))?e[t]:null;if(!r)return null;let n=r.pendingProps??r.memoizedProps;return en(n)?n.children[0].props.children[1].props.user:null})(this.profileElement);if(e)return e;let t=es(this.profileElement);if(!en(t))throw Error("Failed to get React props of profile");return t.children[0].props.children[1].props.user}}class eo{tweetElement;constructor(e){this.tweetElement=e}getMenuBar(){let e=this.tweetElement.querySelector("div[role='group'][id]");if(!e)throw Error("[twi-ext] Failed to get menu bar of tweet");return e}get element(){return this.tweetElement}get props(){let e=es(this.getMenuBar());if(!et(e))throw Error("[twi-ext] Failed to get React props of tweet");return e.children[1].props.retweetWithCommentLink.state.quotedStatus}get metadata(){let e=this.props.user.screen_name,t=this.getMenuBar().parentElement?.parentElement;if(!t)throw Error("[twi-ext] Failed to get grandparent of menu bar of tweet");let r=es(t);if(!er(r))throw Error("[twi-ext] Failed to determine whether it is in focal mode. There may have been a change in X's specifications.");let n=(()=>{let e,t,r,n=[...document.querySelectorAll("body > script:not([src])")].find(e=>e.textContent.trim().startsWith("window.__INITIAL_STATE__"));if(!n)throw Error("[twi-ext] Failed to find initial state.");let[s]=n.textContent.trim().replace(/^window\.__INITIAL_STATE__=/u,"").split(";window.__META_DATA__");if(!s)throw Error("[twi-ext] Failed to extract initial state.");let i=(e=e=>"object"==typeof e.remote&&null!==e.remote&&t(e.remote),t=e=>"object"==typeof e.settings&&null!==e.settings&&r(e.settings),r=e=>"string"==typeof e.screen_name,t=>{var r;return"object"==typeof(r=t=JSON.parse(t))&&null!==r&&"object"==typeof r.settings&&null!==r.settings&&e(r.settings)?t:null})(s);if(!i)throw Error("[twi-ext] Failed to parse initial state.");return i})().settings.remote.settings.screen_name;return{isFocalMode:r.children[0].props.isFocalTweet,isPostedByCurrentUser:e===n}}async clickRetweetButton(e){let t=await G("[data-testid='unretweet'], [data-testid='retweet']",this.tweetElement,e);if(!t)throw Error("[twi-ext] Failed to get retweet button of tweet");t.click()}static async clickQuoteButton(e){let t=await G("[data-testid='Dropdown'] [href='/compose/post'],[data-testid='sheetDialog'] [href='/compose/post']",document,e);if(!t)throw Error("[twi-ext] Failed to get quote button of tweet");t.click()}async quoteTweet(e,t=1e3,r=!1){let n=this.props.permalink,s=`${e} https://x.com${n}`;if(r)return void Q(s);try{await this.clickRetweetButton(t),await eo.clickQuoteButton(t),await Y(e,t)}catch{Q(s)}}}class ea{OBSERVER_OPTIONS={childList:!0,subtree:!0};static PROFILE_PROPS_MAX_ATTEMPTS=30;static PROFILE_SELECTOR=':not([data-testid="tweet"]) [data-testid="UserName"]';checkedDataAttribute;profileNameObservers=new WeakMap;onNewTweetCallback=null;onNewProfileCallback=null;constructor(e){this.checkedDataAttribute=`data-twi-ext-checked-${crypto.randomUUID()}`;const t={timeoutMs:1e4,...e},r=new MutationObserver(()=>{if(this.onNewTweetCallback)for(let e of document.querySelectorAll(`[data-testid="tweet"]:not([${this.checkedDataAttribute}])`))e.setAttribute(this.checkedDataAttribute,""),this.onNewTweetCallback(new eo(e));if(this.onNewProfileCallback){let e=document.querySelector(`${ea.PROFILE_SELECTOR}:not([${this.checkedDataAttribute}])`);e&&this.handleProfile(e)}});G("main",document,t.timeoutMs).then(e=>{if(!e)throw Error("[twi-ext] Failed to get main element");r.observe(e,this.OBSERVER_OPTIONS)}),G("#layers",document,t.timeoutMs).then(e=>{if(!e)throw Error("[twi-ext] Failed to get #layers element");r.observe(e,this.OBSERVER_OPTIONS)}),window.addEventListener("pageshow",()=>{if(!this.onNewProfileCallback)return;let e=document.querySelector(ea.PROFILE_SELECTOR);e&&this.handleProfile(e,{forceRefresh:!0})})}onNewTweet(e){this.onNewTweetCallback=e}onNewProfile(e){this.onNewProfileCallback=e}observeProfileName(e){let t=ea.getNameContainerFromProfile(e);if(!t||!this.onNewProfileCallback||this.profileNameObservers.has(t))return;let r=t.innerText.trim(),n=new MutationObserver(()=>{let e=t.innerText.trim(),r=this.profileNameObservers.get(t);if(r&&e!==r.lastName&&this.onNewProfileCallback){r.lastName=e;let n=ea.normalizeScreenName(e);requestAnimationFrame(()=>{this.emitProfileWithFreshProps(t,n)})}});this.profileNameObservers.set(t,{lastName:r,observer:n}),n.observe(t,{characterData:!0,childList:!0,subtree:!0})}static normalizeScreenName(e){return e.trim().replace(/^@/u,"").toLowerCase()}static getNameContainerFromProfile(e){return e.querySelector(`${ea.PROFILE_SELECTOR} [tabindex] [dir]`)??null}handleProfile(e,t){if(!this.onNewProfileCallback||!t?.forceRefresh&&e.hasAttribute(this.checkedDataAttribute))return;e.setAttribute(this.checkedDataAttribute,""),this.observeProfileName(e);let r=ea.getNameContainerFromProfile(e);if(r){let e=this.profileNameObservers.get(r);e&&(e.lastName=r.innerText.trim())}let n=r?ea.normalizeScreenName(r.innerText):null;this.emitProfileWithFreshProps(e,n)}emitProfileWithFreshProps(e,t,r=0){if(!this.onNewProfileCallback)return;let n=e.closest('[data-testid="UserName"]');if(!n)return;let s=new ei(n),i=ea.normalizeScreenName(s.props.screen_name),o=t??i;i!==o&&r{this.emitProfileWithFreshProps(e,o,r+1)}):this.onNewProfileCallback(s)}}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0,isLoggedInUser:!!document.querySelector('[data-testid="editProfileButton"'),screenName:e.screen_name,sensitiveMediaInProfile:r,shadowbanned:s,withheldInCountries:n}}},ed=function(e){var t,r,n=e.parse(),s=ec(n.user),i=!!n.possibly_sensitive,o=!1!==n.possibly_sensitive_editable,a=i&&!o,l="searchable";return a||s.user.shadowbanned?l="unsearchable":i&&(l="possiblyUnsearchable"),t=function(e){for(var t=1;ttypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var i=[],o=!0,a=!1;try{for(s=s.call(e);!(o=(r=s.next()).done)&&(i.push(r.value),2!==i.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return el(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return el(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],n=t[1];if(r.children._owner&&!n.children[0].props.entry.conversationPosition.showReplyContext)return r.children._owner.key.split("-")[3]},eu={en:{accountFlaggedAsSensitiveOrShadowbanned:"\uD83D\uDEABAccount flagged as sensitive or shadowbanned",accountNotFlaggedAsSensitive:"✅Account not flagged as sensitive",sensitiveFlagOnProfileMedia:"\uD83D\uDEABSensitive flag on profile media",noSensitiveFlagOnProfileMedia:"✅No sensitive flag on profile media",accountBlockedInSomeCountries:"\uD83D\uDEABAccount blocked in some countries",accountNotBlockedInAnyCountries:"✅Account not blocked in any countries",sensitiveFlagOnTweet:"\uD83D\uDEABSensitive flag on post",noSensitiveFlagOnTweet:"✅No sensitive flag on post",ageLimitOnTweet:"\uD83D\uDEABAge limit on post",noAgeLimitOnTweet:"✅No age limit on post",tweetSearchable:"✅Post searchable",tweetMayNotBeSearchable:"\uD83D\uDEABPost may not be searchable",shadowbanScannerByRoboin:"Shadowban Scanner by roboin",siteURL:"https://shadowban-scanner.roboin.io/en/",accountStatusFor:"Account status for $1"},ja:{accountFlaggedAsSensitiveOrShadowbanned:"\uD83D\uDEABアカウントにセンシティブ判定またはシャドウバンあり",accountNotFlaggedAsSensitive:"✅アカウントにセンシティブ判定なし",sensitiveFlagOnProfileMedia:"\uD83D\uDEABプロフィールのメディアにセンシティブ判定あり",noSensitiveFlagOnProfileMedia:"✅プロフィールのメディアにセンシティブ判定なし",accountBlockedInSomeCountries:"\uD83D\uDEABアカウントをブロックしている国あり",accountNotBlockedInAnyCountries:"✅アカウントをブロックしている国なし",sensitiveFlagOnTweet:"\uD83D\uDEABポストにセンシティブ判定あり",noSensitiveFlagOnTweet:"✅ポストにセンシティブ判定なし",ageLimitOnTweet:"\uD83D\uDEABポストに年齢制限あり",noAgeLimitOnTweet:"✅ポストに年齢制限なし",tweetSearchable:"✅ポストは検索可能",tweetMayNotBeSearchable:"\uD83D\uDEABポストは検索不能",shadowbanScannerByRoboin:"Shadowban Scanner by ろぼいん",siteURL:"https://shadowban-scanner.roboin.io/ja/",accountStatusFor:"$1 のアカウントの状態"}},em=navigator.language.toLowerCase().startsWith("ja"),ep=function(e){var t="searchable"===e.tweet.searchability,r=eu[em?"ja":"en"],n=e.user.shadowbanned?r.accountFlaggedAsSensitiveOrShadowbanned:r.accountNotFlaggedAsSensitive,s=e.user.sensitiveMediaInProfile?r.sensitiveFlagOnProfileMedia:r.noSensitiveFlagOnProfileMedia,i=e.user.withheldInCountries.length?r.accountBlockedInSomeCountries:r.accountNotBlockedInAnyCountries,o=e.tweet.possiblySensitive?r.sensitiveFlagOnTweet:r.noSensitiveFlagOnTweet,a=e.tweet.ageRestriction?r.ageLimitOnTweet:r.noAgeLimitOnTweet,l=t?r.tweetSearchable:r.tweetMayNotBeSearchable;return"\n".concat(n,"\n").concat(s,"\n").concat(i,"\n").concat(o,"\n").concat(a,"\n").concat(l,"\n\n").concat(r.shadowbanScannerByRoboin,"\n").concat(r.siteURL,"\n ").trim()},eg=function(e){var t=eu[em?"ja":"en"],r=e.user.shadowbanned?t.accountFlaggedAsSensitiveOrShadowbanned:t.accountNotFlaggedAsSensitive,n=e.user.sensitiveMediaInProfile?t.sensitiveFlagOnProfileMedia:t.noSensitiveFlagOnProfileMedia,s=e.user.withheldInCountries.length?t.accountBlockedInSomeCountries:t.accountNotBlockedInAnyCountries,i=t.accountStatusFor.replace("$1",e.user.isLoggedInUser?"@".concat(e.user.screenName):"@ ".concat(e.user.screenName));return"\n".concat(i,"\n\n").concat(r,"\n").concat(n,"\n").concat(s,"\n\n").concat(t.shadowbanScannerByRoboin,"\n").concat(t.siteURL,"\n ").trim()};function ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ef(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ev=function(e){var t=navigator.language,r=new Intl.ListFormat(t,{style:"narrow",type:"conjunction"}),n=new Intl.DisplayNames([t],{type:"region"}),s=e.map(function(e){var t;return null!=(t=n.of(e))?t:""});return r.format(s)},ey=function(e){return[e.user.shadowbanned?"accountIsShadowbannedOrFlaggedAsSensitive":"accountIsNotFlaggedAsSensitive",e.user.sensitiveMediaInProfile?"profileContainsSensitiveMedia":"profileDoesNotContainSensitiveMedia",e.user.withheldInCountries.length?{messageName:"accountIsWithheldInCountries",substitutions:ev(e.user.withheldInCountries)}:"accountIsNotWithheldInCountries"]},ew=function(e){var t=ey(e);return{details:t,summary:e.user.shadowbanned?"thisUserIsShadowbanned":e.user.withheldInCountries.length?"accountIsBlockedInSomeCountries":"thisUserIsNotShadowbanned"}},eA=function(e){var t,r,n=(t=e).user.shadowbanned||t.user.sensitiveMediaInProfile||t.user.withheldInCountries.length||t.tweet.possiblySensitive?t.user.withheldInCountries.length?"accountIsBlockedInSomeCountries":t.user.shadowbanned||t.user.sensitiveMediaInProfile?t.tweet.possiblySensitive?t.tweet.ageRestriction?"accountAndTweetShadowbanned":"accountShadowbannedAndTweetFlaggedAsSensitive":"accountShadowbanned":t.tweet.ageRestriction?"tweetShadowbanned":"tweetFlaggedAsSensitive":"tweetNoProblem",s=ey(e),i=[(r=e).tweet.possiblySensitive?"tweetIsFlaggedAsSensitive":"tweetIsNotFlaggedAsSensitive",r.tweet.ageRestriction?"tweetIsAgeRestricted":"tweetIsNotAgeRestricted",{possiblyUnsearchable:"tweetMayNotBeSearchable",searchable:"tweetIsSearchable",unsearchable:"tweetIsNotSearchable"}[r.tweet.searchability]];return{details:eb(s).concat(eb(i)),summary:n}};function ex(e){for(var t=1;t=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}let e$=e=>(t,r)=>{void 0!==r?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ek=globalThis,eP=ek.ShadowRoot&&(void 0===ek.ShadyCSS||ek.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,eT=Symbol(),eO=new WeakMap;class eI{constructor(e,t,r){if(this._$cssResult$=!0,r!==eT)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(eP&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=eO.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&eO.set(t,e))}return e}toString(){return this.cssText}}let eN=(e,...t)=>new eI(1===e.length?e[0]:t.reduce((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]),e,eT),eM=eP?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t,r="";for(let t of e.cssRules)r+=t.cssText;return new eI("string"==typeof(t=r)?t:t+"",void 0,eT)})(e):e,{is:ej,defineProperty:eR,getOwnPropertyDescriptor:eF,getOwnPropertyNames:eB,getOwnPropertySymbols:eU,getPrototypeOf:eL}=Object,eD=globalThis,ez=eD.trustedTypes,eq=ez?ez.emptyScript:"",eH=eD.reactiveElementPolyfillSupport,eW={toAttribute(e,t){switch(t){case Boolean:e=e?eq:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},eV=(e,t)=>!ej(e,t),eK={attribute:!0,type:String,converter:eW,reflect:!1,useDefault:!1,hasChanged:eV};Symbol.metadata??=Symbol("metadata"),eD.litPropertyMetadata??=new WeakMap;class eG extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=eK){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&eR(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:s}=eF(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:n,set(t){let i=n?.call(this);s?.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??eK}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=eL(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...eB(e),...eU(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(eM(r));else void 0!==e&&t.push(eM(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(eP)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),n=ek.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){let s=(void 0!==r.converter?.toAttribute?r.converter:eW).toAttribute(t,r.type);this._$Em=e,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=r.getPropertyOptions(n),s="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:eW;this._$Em=n,this[n]=s.fromAttribute(t,e.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){let n=this.constructor,s=this[e];if(!(((r??=n.getPropertyOptions(e)).hasChanged??eV)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),!0!==s||void 0!==i)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e){let{wrapped:e}=r,n=this[t];!0!==e||this._$AL.has(t)||void 0===n||this.C(t,void 0,r,n)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}eG.elementStyles=[],eG.shadowRootOptions={mode:"open"},eG.elementProperties=new Map,eG.finalized=new Map,eH?.({ReactiveElement:eG}),(eD.reactiveElementVersions??=[]).push("2.1.0");let eX={attribute:!0,type:String,converter:eW,reflect:!1,hasChanged:eV};function eZ(e){return(t,r)=>{let n;return"object"==typeof r?((e=eX,t,r)=>{let{kind:n,metadata:s}=r,i=globalThis.litPropertyMetadata.get(s);if(void 0===i&&globalThis.litPropertyMetadata.set(s,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),"accessor"===n){let{name:n}=r;return{set(r){let s=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,s,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=r;return function(r){let s=this[n];t.call(this,r),this.requestUpdate(n,s,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function eJ(e){return eZ({...e,state:!0,attribute:!1})}let eY=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,r),r);function eQ(e,t){return(r,n,s)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:o}="object"==typeof n?r:s??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return eY(r,n,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&o.call(this,e),e}})}return eY(r,n,{get(){return i(this)}})}}let e0=globalThis,e1=e0.trustedTypes,e2=e1?e1.createPolicy("lit-html",{createHTML:e=>e}):void 0,e5="$lit$",e3=`lit$${Math.random().toFixed(9).slice(2)}$`,e9="?"+e3,e8=`<${e9}>`,e4=document,e6=()=>e4.createComment(""),e7=e=>null===e||"object"!=typeof e&&"function"!=typeof e,te=Array.isArray,tt="[ \n\f\r]",tr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tn=/-->/g,ts=/>/g,ti=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),to=/'/g,ta=/"/g,tl=/^(?:script|style|textarea|title)$/i,tc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),td=tc(1),th=(tc(2),tc(3),Symbol.for("lit-noChange")),tu=Symbol.for("lit-nothing"),tm=new WeakMap,tp=e4.createTreeWalker(e4,129);function tg(e,t){if(!te(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e2?e2.createHTML(t):t}class tf{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0;const o=e.length-1,a=this.parts,[l,c]=((e,t)=>{let r=e.length-1,n=[],s,i=2===t?"":3===t?"":"",o=tr;for(let t=0;t"===l[0]?(o=s??tr,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?ti:'"'===l[3]?ta:to):o===ta||o===to?o=ti:o===tn||o===ts?o=tr:(o=ti,s=void 0);let h=o===ti&&e[t+1].startsWith("/>")?" ":"";i+=o===tr?r+e8:c>=0?(n.push(a),r.slice(0,c)+e5+r.slice(c)+e3+h):r+e3+(-2===c?t:h)}return[tg(e,i+(e[r]||"")+(2===t?"":3===t?"":"")),n]})(e,t);if(this.el=tf.createElement(l,r),tp.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=tp.nextNode())&&a.length0){n.textContent=e1?e1.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=tu}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(void 0===s)(i=!e7(e=tb(this,e,t,0))||e!==this._$AH&&e!==th)&&(this._$AH=e);else{let n,o,a=e;for(e=s[0],n=0;n{let n=r?.renderBefore??t,s=n._$litPart$;if(void 0===s){let e=r?.renderBefore??null;n._$litPart$=s=new ty(t.insertBefore(e6(),e),e,void 0,r??{})}return s._$AI(e),s})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return th}}t$._$litElement$=!0,t$.finalized=!0,tE.litElementHydrateSupport?.({LitElement:t$});let tk=tE.litElementPolyfillSupport;tk?.({LitElement:t$}),(tE.litElementVersions??=[]).push("4.2.0");class tP extends t${connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return td``}}let tT=eN`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} `,tO=class extends tP{};tO.styles=[tT],tO=eE([e$("md-elevation")],tO);let tI=Symbol("attachableController");e=new MutationObserver(e=>{for(let t of e)t.target[tI]?.hostConnected()});class tN{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){null===e?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(t,r){this.host=t,this.onControlChange=r,this.currentControl=null,t.addController(this),t[tI]=this,e?.observe(t,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}let tM=["focusin","focusout","pointerdown"];class tj extends t${constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new tN(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){if(!e[tR]){switch(e.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}e[tR]=!0}}onControlChange(e,t){for(let r of tM)e?.removeEventListener(r,this),t?.addEventListener(r,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}eE([eZ({type:Boolean,reflect:!0})],tj.prototype,"visible",void 0),eE([eZ({type:Boolean,reflect:!0})],tj.prototype,"inward",void 0);let tR=Symbol("handledByFocusRing"),tF=eN`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}} `,tB=class extends tj{};tB.styles=[tF],tB=eE([e$("md-focus-ring")],tB);class tU{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let tL=(g=class extends tU{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let r in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(t)}let r=e.element.classList;for(let e of this.st)e in t||(r.remove(e),this.st.delete(e));for(let e in t){let n=!!t[e];n===this.st.has(e)||this.nt?.has(e)||(n?(r.add(e),this.st.add(e)):(r.remove(e),this.st.delete(e)))}return th}},(...e)=>({_$litDirective$:g,values:e}));(f=$||($={}))[f.INACTIVE=0]="INACTIVE",f[f.TOUCH_DELAY=1]="TOUCH_DELAY",f[f.HOLDING=2]="HOLDING",f[f.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK";let tD=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],tz=window.matchMedia("(forced-colors: active)");class tq extends t${constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=$.INACTIVE,this.attachableController=new tN(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){let e={hovered:this.hovered,pressed:this.pressed};return td`
`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==$.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===$.HOLDING){this.state=$.WAITING_FOR_CLICK;return}if(this.state===$.TOUCH_DELAY){this.state=$.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=$.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.state=$.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,150)}),this.state===$.TOUCH_DELAY&&(this.state=$.HOLDING,this.startPressAnimation(e))}}handleClick(){if(!this.disabled){if(this.state===$.WAITING_FOR_CLICK)return void this.endPressAnimation();this.state===$.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||this.endPressAnimation()}determineRippleSize(){let{height:e,width:t}=this.getBoundingClientRect(),r=Math.max(e,t),n=Math.max(.35*r,75),s=this.currentCSSZoom??1,i=Math.floor(.2*r/s),o=Math.sqrt(t**2+e**2);this.initialSize=i,this.rippleScale=`${(o+10+n)/i/s}`,this.rippleSize=`${i}px`}getNormalizedPointerEventCoords(e){let{scrollX:t,scrollY:r}=window,{left:n,top:s}=this.getBoundingClientRect(),{pageX:i,pageY:o}=e,a=this.currentCSSZoom??1;return{x:(i-(t+n))/a,y:(o-(r+s))/a}}getTranslationCoordinates(e){let t,{height:r,width:n}=this.getBoundingClientRect(),s=this.currentCSSZoom??1,i={x:(n/s-this.initialSize)/2,y:(r/s-this.initialSize)/2};return{startPoint:t={x:(t=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:n/s/2,y:r/s/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:i}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();let{startPoint:t,endPoint:r}=this.getTranslationCoordinates(e),n=`${t.x}px, ${t.y}px`,s=`${r.x}px, ${r.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${n}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:"cubic-bezier(0.2, 0, 0, 1)",fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=$.INACTIVE;let e=this.growAnimation,t=1/0;if("number"==typeof e?.currentTime?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to("ms").value),t>=225){this.pressed=!1;return}await new Promise(e=>{setTimeout(e,225-t)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);let t=1===e.buttons;return this.isTouch(e)||t}isTouch({pointerType:e}){return"touch"===e}async handleEvent(e){if(!tz?.matches)switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e)}}onControlChange(e,t){for(let r of tD)e?.removeEventListener(r,this),t?.addEventListener(r,this)}}eE([eZ({type:Boolean,reflect:!0})],tq.prototype,"disabled",void 0),eE([eJ()],tq.prototype,"hovered",void 0),eE([eJ()],tq.prototype,"pressed",void 0),eE([eQ(".surface")],tq.prototype,"mdRoot",void 0);let tH=eN`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms} `,tW=class extends tq{};tW.styles=[tH],tW=eE([e$("md-ripple")],tW);let tV=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],tK=tV.map(tX);function tG(e){return tK.includes(e)}function tX(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}let tZ=Symbol("privateIgnoreAttributeChangesFor");function tJ(e){return`data-${e}`}function tY(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}let tQ=Symbol("internals"),t0=Symbol("privateInternals"),t1=!1;async function t2(){t1=!0,await null,t1=!1}let t5=function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,r){if(!tG(e))return void super.attributeChangedCallback(e,t,r);if(this[tZ].has(e))return;this[tZ].add(e),this.removeAttribute(e),this[tZ].delete(e);let n=tY(e);null===r?delete this.dataset[n]:this.dataset[n]=r,this.requestUpdate(tY(e),t)}getAttribute(e){return tG(e)?super.getAttribute(tJ(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),tG(e)&&(super.removeAttribute(tJ(e)),this.requestUpdate())}}return t=tZ,function(e){for(let t of tV){let r=tX(t),n=tJ(r),s=tY(r);e.createProperty(t,{attribute:r,noAccessor:!0}),e.createProperty(Symbol(n),{attribute:n,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){return this.dataset[s]??null},set(e){let r=this.dataset[s]??null;e!==r&&(null===e?delete this.dataset[s]:this.dataset[s]=e,this.requestUpdate(t,r))}})}}(r),r}((b=t$,class extends b{get[tQ](){return this[t0]||(this[t0]=this.attachInternals()),this[t0]}}));class t3 extends t5{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[tQ].form}constructor(){super(),this.disabled=!1,this.softDisabled=!1,this.href="",this.download="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.addEventListener("click",this.handleClick.bind(this))}focus(){this.buttonElement?.focus()}blur(){this.buttonElement?.blur()}render(){let e=this.disabled||this.softDisabled,t=this.href?this.renderLink():this.renderButton(),r=this.href?"link":"button";return td` ${this.renderElevationOrOutline?.()}
${t} `}renderButton(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:r}=this;return td``}renderLink(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:r}=this;return td`${this.renderContent()} `}renderContent(){let e=td``;return td` ${this.trailingIcon?tu:e} ${this.trailingIcon?e:tu} `}handleClick(e){var t,r;let n;if(this.softDisabled||this.disabled&&this.href){e.stopImmediatePropagation(),e.preventDefault();return}if(e.currentTarget===e.target&&e.composedPath()[0]===e.target&&!e.target.disabled&&(r=e,(n=t1)&&(r.preventDefault(),r.stopImmediatePropagation()),t2(),!n)&&this.buttonElement){let e;this.focus(),t=this.buttonElement,e=new MouseEvent("click",{bubbles:!0}),t.dispatchEvent(e)}}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}t3.addInitializer(e=>{e.addEventListener("click",async t=>{let{type:r,[tQ]:n}=e,{form:s}=n;if(s&&"button"!==r&&(await new Promise(e=>{setTimeout(e)}),!t.defaultPrevented)){if("reset"===r)return void s.reset();s.addEventListener("submit",t=>{Object.defineProperty(t,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),n.setFormValue(e.value),s.requestSubmit()}})}),t3.formAssociated=!0,t3.shadowRootOptions={mode:"open",delegatesFocus:!0},eE([eZ({type:Boolean,reflect:!0})],t3.prototype,"disabled",void 0),eE([eZ({type:Boolean,attribute:"soft-disabled",reflect:!0})],t3.prototype,"softDisabled",void 0),eE([eZ()],t3.prototype,"href",void 0),eE([eZ()],t3.prototype,"download",void 0),eE([eZ()],t3.prototype,"target",void 0),eE([eZ({type:Boolean,attribute:"trailing-icon",reflect:!0})],t3.prototype,"trailingIcon",void 0),eE([eZ({type:Boolean,attribute:"has-icon",reflect:!0})],t3.prototype,"hasIcon",void 0),eE([eZ()],t3.prototype,"type",void 0),eE([eZ({reflect:!0})],t3.prototype,"value",void 0),eE([eQ(".button")],t3.prototype,"buttonElement",void 0),eE([(v={slot:"icon",flatten:!0},(e,t)=>{let{slot:r,selector:n}=v??{},s="slot"+(r?`[name=${r}]`:":not([name])");return eY(e,t,{get(){let e=this.renderRoot?.querySelector(s),t=e?.assignedElements(v)??[];return void 0===n?t:t.filter(e=>e.matches(n))}})})],t3.prototype,"assignedIcons",void 0);class t9 extends t3{renderElevationOrOutline(){return td``}}let t8=eN`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)} `,t4=eN`md-elevation{transition-duration:280ms}:host(:is([disabled],[soft-disabled])) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host(:is([disabled],[soft-disabled])) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)} `,t6=eN`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none} `,t7=class extends t9{};function re(e,t,r){return(re="u">typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rt(e)););return e}(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(r||e):s.value}})(e,t,r||e)}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rr(e,t){return(rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function rs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rs=function(){return!!e})()}function ri(e,t,r,n){var s,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function ro(){var e=rn(["']);return ro=function(){return e},e}function ra(){var e=rn(["
  • "]);return ra=function(){return e},e}function rl(){var e=rn(["\n \n "]);return rl=function(){return e},e}function rc(){var e=rn(['
      \n ',"\n
    "]);return rc=function(){return e},e}function rd(){var e=rn(["
    "]);return rd=function(){return e},e}function rh(){var e=rn(["']);return rh=function(){return e},e}function ru(){var e=rn(["\n typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var rb=(y=function(e){return void 0===e._owner||"object"===rf(e._owner)&&null!==e._owner&&w(e._owner)},w=function(e){return"string"==typeof e.key},function(e){var t;return"object"===(void 0===e?"undefined":rf(e))&&null!==e&&"object"===rf((t=e).children)&&null!==t.children&&!1===Array.isArray(t.children)&&y(t.children)}),rv=(A=function(e){return"object"===rf(e.props)&&null!==e.props&&x(e.props)},x=function(e){return"object"===rf(e.entry)&&null!==e.entry&&_(e.entry)},_=function(e){return"tombstone"===e.type&&"object"===rf(e.conversationPosition)&&null!==e.conversationPosition&&S(e.conversationPosition)},S=function(e){return"boolean"==typeof e.showReplyContext},function(e){var t;return"object"===(void 0===e?"undefined":rf(e))&&null!==e&&Array.isArray((t=e).children)&&1===t.children.length&&"object"===rf(t.children[0])&&null!==t.children[0]&&A(t.children[0])}),ry=function(e){var t=Object.getOwnPropertyNames(e).filter(function(e){return e.startsWith("__reactProps$")});return e[t]},rw=function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.element=t}return e.prototype.parse=function(){var e=ry(this.element);if(!rb(e))throw Error("Type of props is invalid.");var t=this.element.querySelector("div > div");if(!t)throw Error("Failed to get the tombstone's grandchild element.");var r=ry(t);if(!rv(r))throw Error("Type of grandchild props is invalid.");return[e,r]},e}(),rA=function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.tweet=t}return e.prototype.parse=function(){return this.tweet.props},e}(),rx=function(){function e(t,r){let n;var s,i=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.previousMessageWrapper=null,this.settings=t,this.onMessageCallback=r;var o=new ea;o.onNewTweet(function(e){i.checkTweet(e),i.timelineObserverCallback()}),o.onNewProfile(function(e){i.checkProfile(e)});var a=Z();e.updateColorScheme(a),s=e.updateColorScheme.bind(this),n=Z(),new MutationObserver(()=>{let e=Z();e!==n&&(n=e,s(e))}).observe(document.body,{attributeFilter:["style"],attributes:!0})}var t=e.prototype;return t.checkProfile=function(e){if(document.querySelector("[data-testid='editProfileButton']")||this.settings.enableForOtherUsersProfiles){var t,r,n=ec(e.props);if(n.user.hasAnyProblem||this.settings.showMessagesInUnproblematicProfiles){var s=new rg(eS(n,this.onMessageCallback,this.settings)),i=null!=(t=document.querySelector("[data-testid='UserDescription']"))?t:document.querySelector("[data-testid='UserName']");if(!i)throw Error("Failed to get user description of profile");null==(r=this.previousMessageWrapper)||r.remove(),this.previousMessageWrapper=s,s.insertAdjacentElement(i,"afterend")}}},t.checkTweet=function(e){var t,r,n,s=ed(new rA(e));if((e.metadata.isPostedByCurrentUser||this.settings.enableForOtherUsersTweets)&&(s.tweet.hasAnyProblem||this.settings.showMessagesInUnproblematicTweets)){if(!e.metadata.isFocalMode&&this.settings.enableCompactMode){e.element.dataset.sbCompactMode=s.tweet.hasAnyProblem?"red":"green";return}var i=new rg(eC(e,s,this.onMessageCallback,this.settings)),o=e.metadata.isFocalMode?null==(n=e.element.querySelector("div[dir]:has(a[href^='/']):has(time)"))||null==(r=n.parentElement)||null==(t=r.parentElement)?void 0:t.parentElement:e.element.querySelector("div[role='group'][id]");if(!o)throw Error("Failed to get landmark element of tweet");var a=e.metadata.isFocalMode?"afterend":"beforebegin";i.insertAdjacentElement(o,a)}},t.necromancer=function(e){e.setAttribute(z,"true");var t=eh(new rw(e).parse());if(t){var r=document.createElement("a");r.href="https://x.com/i/status/".concat(t),r.target="_blank",r.setAttribute(q,"viewTweet"),r.classList.add("shadowban-scanner-tombstone-necromancer");var n=e.querySelector("a");if(!n)throw Error("Failed to get help link");r.style.color=getComputedStyle(n).color,n.insertAdjacentElement("afterend",r),this.onMessageCallback()}},t.timelineObserverCallback=function(){var e=document.querySelectorAll("[data-testid='cellInnerDiv']:not([".concat(z,"])")),t=!0,r=!1,n=void 0;try{for(var s,i=e[Symbol.iterator]();!(t=(s=i.next()).done);t=!0){var o=s.value;o.setAttribute(z,"true"),o.querySelector("a[href='https://help.twitter.com/rules-and-policies/notices-on-twitter']")&&this.necromancer(o)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}},e.updateColorScheme=function(e){document.body.setAttribute("data-color-scheme","light"===e?"light":"dark")},e}();r(815);function r_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r_(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r_(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rC=function(){function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.translationFunction=t,this.twemojiEndpoint=r}var t=e.prototype;return t.convertEmojiToTwemoji=function(e){var t=e,r=!0,n=!1,s=void 0;try{for(var i,o=W[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var a=i.value,l=rS(a).map(function(e){var t;return null==(t=e.codePointAt(0))?void 0:t.toString(16)}).join("-"),c=new URL("".concat(l,".svg"),this.twemojiEndpoint).href,d='').concat(a,'');t=t.replaceAll(a,d)}}catch(e){n=!0,s=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw s}}return t},t.translateElements=function(){var e=this,t=rS(document.querySelectorAll("[".concat(q,"]"))),r=document.querySelectorAll("sbs-message[".concat(H,"]")),n=!0,s=!1,i=void 0;try{for(var o,a=r[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value,c=l.shadowRoot;if(!c)return;var d=c.querySelectorAll("[".concat(q,"]"));t.push.apply(t,rS(d)),d.length&&l.removeAttribute(H)}}catch(e){s=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw i}}t.forEach(function(t){var r=t.getAttribute(q),n=t.getAttribute("data-sb-translation-substitutions"),s=n?JSON.parse(n):null,i=null!==s&&(void 0===s||"string"==typeof s||Array.isArray(s)&&s.every(function(e){return"string"==typeof e}))?e.translationFunction(r,s):e.translationFunction(r);t.hasAttribute("data-sb-enable-twemoji")?t.innerHTML=e.convertEmojiToTwemoji(i):t.innerHTML=i,t.removeAttribute(q)})},e}();function rE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r详细说明)。"},"accountIsWithheldInCountries":{"message":"\uD83D\uDEAB此账户被以下国家/地区屏蔽(详细说明):$1"},"tweetIsNotFlaggedAsSensitive":{"message":"✅此帖子没有标记为敏感内容。"},"tweetIsFlaggedAsSensitive":{"message":"\uD83D\uDEAB此帖子已被标记为敏感内容。"},"tweetIsNotAgeRestricted":{"message":"✅此帖子没有年龄限制。"},"tweetIsAgeRestricted":{"message":"\uD83D\uDEAB此帖子有年龄限制。"},"tweetIsSearchable":{"message":"✅此帖子会显示在搜索结果中。"},"tweetMayNotBeSearchable":{"message":"⚠️根据查看者的设置,此帖子可能不会显示在搜索结果中。"},"tweetIsNotSearchable":{"message":"\uD83D\uDEAB此帖子可能不会显示在搜索结果中。"},"falsePositivesAndFalseNegativesOccur":{"message":"Shadowban Scanner 和其他类似功能的工具一样,可能会产生误判的情况。有关扩展运作方式的详细信息,请参考这里。"},"translatedByAI":{"message":"","description":"This field is used if the translation was done by AI. Otherwise, set this field to an empty string. Example sentence: \\"Translated from Japanese to by AI. Please notify @keita_roboin\'s DM or GitHub repository if there are any unnatural points.\\""},"showMore":{"message":"▶显示更多"},"tweetTheResults":{"message":"分享结果"},"viewTweet":{"message":"查看帖子"},"settingsWhereToDisplayCheckResults":{"message":"显示检查结果的位置"},"settingsAlwaysShowMessagesIfYourAccountShadowbanned":{"message":"如果你的账号被 shadowban,消息会一直显示。"},"settingsShowMessagesInUnproblematicTweets":{"message":"在没有问题的帖子中显示"},"settingsShowMessagesInUnproblematicProfiles":{"message":"在没有问题的账户的个人资料中显示"},"settingsEnableForOtherUsersTweets":{"message":"在其他账户的帖子中显示"},"settingsEnableForOtherUsersProfiles":{"message":"在其他账户的个人资料中显示"},"settingsOtherSettings":{"message":"其他设置"},"settingsEnableCompactMode":{"message":"启用精简模式"},"settingsAlwaysDetailedView":{"message":"始终显示详细信息"},"settingsShowNotesInMessages":{"message":"在消息底部显示注释"},"settingsShowTweetButton":{"message":"显示分享按钮"},"settingsEnableOnXPro":{"message":"在 X Pro 上执行"},"settingsShowReleaseNotes":{"message":"更新后显示发行说明"},"settingsEnableColorAccessibilityMode":{"message":"启用色盲模式"},"settingsPleaseReload":{"message":"如果更改过扩展设置,请重新加载 X 页面"},"settingsPrivacyPolicy":{"message":"隐私政策"},"settingsOpenSourceLicenses":{"message":"开放源代码许可"},"settingsSupportDevelopment":{"message":"支持开发"},"settingsFollowTheDeveloper":{"message":"关注开发者"},"privacyPolicyPageTitle":{"message":"隐私政策 - Shadowban Scanner"},"privacyPolicy":{"message":"隐私政策"},"privacyPolicyText":{"message":"此扩展原则上会在用户的电脑上处理所有数据,不会将数据发送到外部服务器,此扩展亦不会在未经用户许可的情况下使用登录凭证访问 X 的内部 API。对于此扩展没有对应处理的网页,将适用各自的使用条款和隐私政策。"},"initialSetup":{"message":"初始设置 - Shadowban Scanner"},"letsStartWithASimpleInitialSetup":{"message":"先从简单的初始设置开始吧"},"pleaseSelectOneOfThem":{"message":"请选择其中一个,这个设置之后可以再更改。"},"displayForAllTweetsAndAccounts":{"message":"显示所有帖子和账户的检查结果"},"displayOnlyForProblematicTweets":{"message":"仅显示问题帖子和问题账户的检查结果"},"displayOnlyInYourOwnTweets":{"message":"仅显示我自己的帖子的检查结果"},"displayInAllUsersTweets":{"message":"显示所有账户发布的帖子的检查结果"},"back":{"message":"返回"},"next":{"message":"下一步"},"initialSetupCompleted":{"message":"已完成初始设置!是否要打开使用说明?"},"open":{"message":"打开"},"exitWithoutOpening":{"message":"不需要并关闭"}}'),E=new rC(function(e,t){if(t){var r=C[e].message,n=!0,s=!1,i=void 0;try{for(var o,a=("string"==typeof t?[t]:t).entries()[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l,c=(l=o.value,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var r,n,s=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var i=[],o=!0,a=!1;try{for(s=s.call(e);!(o=(r=s.next()).done)&&(i.push(r.value),2!==i.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw n}}return i}}(l,2)||function(e,t){if(e){if("string"==typeof e)return rE(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rE(e,2)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=c[0],h=c[1];r=r.replace("$".concat(String(d+1)),h)}}catch(e){s=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw i}}return r}return C[e].message},"https://abs-0.twimg.com/emoji/v2/svg/"),new rx({alwaysDetailedView:!1,enableColorAccessibilityMode:!1,enableCompactMode:!1,enableForOtherUsersProfiles:!0,enableForOtherUsersTweets:!0,enableOnXPro:!0,showMessagesInUnproblematicProfiles:!0,showMessagesInUnproblematicTweets:!1,showNotesInMessages:!0,showReleaseNotes:!0,showTweetButton:!0},function(){E.translateElements()})})()})();