!function(i,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["style/special-danmaku"]=a():i["style/special-danmaku"]=a()}(globalThis,(()=>(()=>{var i,a,n={317:(i,a,n)=>{var t=n(955)((function(i){return i[1]}));t.push([i.id,'body.disable-highlight-danmaku-style .bili-danmaku-x-high,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top {\n  display: flex !important;\n}\nbody.disable-highlight-danmaku-style .bili-dm.bili-high,\nbody.disable-highlight-danmaku-style .b-danmaku-high {\n  display: block !important;\n}\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high,\nbody.disable-highlight-danmaku-style .b-danmaku-high {\n  padding: 0 !important;\n  line-height: 1.125 !important;\n}\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high .bili-danmaku-x-high-icon,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high .bili-high-icon,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high .b-danmaku-high-icon,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top .bili-danmaku-x-high-icon,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top .bili-high-icon,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top .b-danmaku-high-icon,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high .bili-danmaku-x-high-icon,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high .bili-high-icon,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high .b-danmaku-high-icon,\nbody.disable-highlight-danmaku-style .b-danmaku-high .bili-danmaku-x-high-icon,\nbody.disable-highlight-danmaku-style .b-danmaku-high .bili-high-icon,\nbody.disable-highlight-danmaku-style .b-danmaku-high .b-danmaku-high-icon {\n  display: none !important;\n}\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high .bili-danmaku-x-high-text,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high .bili-high-text,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high .b-danmaku-high-text,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top .bili-danmaku-x-high-text,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top .bili-high-text,\nbody.disable-highlight-danmaku-style .bili-danmaku-x-high-top .b-danmaku-high-text,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high .bili-danmaku-x-high-text,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high .bili-high-text,\nbody.disable-highlight-danmaku-style .bili-dm.bili-high .b-danmaku-high-text,\nbody.disable-highlight-danmaku-style .b-danmaku-high .bili-danmaku-x-high-text,\nbody.disable-highlight-danmaku-style .b-danmaku-high .bili-high-text,\nbody.disable-highlight-danmaku-style .b-danmaku-high .b-danmaku-high-text {\n  margin: 0 !important;\n  text-shadow: inherit;\n}\n\nbody.disable-vip-danmaku-style .bili-danmaku-x-dm-vip,\nbody.disable-vip-danmaku-style .bili-dm-vip {\n  display: contents !important;\n  text-shadow: inherit !important;\n}\nbody.disable-vip-danmaku-style :where(.bili-dm, .bili-danmaku-x-dm):not([style*="--textShadow"]) {\n  --textShadow: var(--danmaku-text-shadow);\n}\nbody.disable-vip-danmaku-style .bili-danmaku-x-colorful {\n  background-clip: unset !important;\n  background-image: none !important;\n  --textShadow: var(--danmaku-text-shadow);\n  text-shadow: var(--textShadow) !important;\n}\n\nbody.disable-up-danmaku-style .bili-danmaku-x-up,\nbody.disable-up-danmaku-style .bili-dm.bili-up,\nbody.disable-up-danmaku-style .b-danmaku-up {\n  padding: 0 !important;\n  line-height: 1.125 !important;\n  background-color: transparent !important;\n  border-radius: 0 !important;\n}\nbody.disable-up-danmaku-style .bili-danmaku-x-up .bili-up-tip,\nbody.disable-up-danmaku-style .bili-danmaku-x-up .b-danmaku-up-tip,\nbody.disable-up-danmaku-style .bili-dm.bili-up .bili-up-tip,\nbody.disable-up-danmaku-style .bili-dm.bili-up .b-danmaku-up-tip,\nbody.disable-up-danmaku-style .b-danmaku-up .bili-up-tip,\nbody.disable-up-danmaku-style .b-danmaku-up .b-danmaku-up-tip {\n  display: none !important;\n}\n\nbody.disable-upSlogan-danmaku-style .bili-danmaku-x-upslogan,\nbody.disable-upSlogan-danmaku-style .bili-upslogan {\n  padding: 0 !important;\n  opacity: var(--opacity) !important;\n  font-weight: var(--fontWeight) !important;\n  background-color: transparent !important;\n}\nbody.disable-upSlogan-danmaku-style .bili-danmaku-x-upslogan img,\nbody.disable-upSlogan-danmaku-style .bili-upslogan img {\n  display: none !important;\n}',""]),i.exports=t},955:i=>{"use strict";
// eslint-disable-next-line func-names
i.exports=function(i){var a=[];return a.toString=function(){return this.map((function(a){var n=i(a);return a[2]?"@media ".concat(a[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
a.i=function(i,n,t){"string"==typeof i&&(
// eslint-disable-next-line no-param-reassign
i=[[null,i,""]]);var e={};if(t)for(var d=0;d<this.length;d++){
// eslint-disable-next-line prefer-destructuring
var l=this[d][0];null!=l&&(e[l]=!0)}for(var o=0;o<i.length;o++){var h=[].concat(i[o]);t&&e[h[0]]||(n&&(h[2]?h[2]="".concat(n," and ").concat(h[2]):h[2]=n),a.push(h))}},a}},299:(i,a,n)=>{var t=n(317);t&&t.__esModule&&(t=t.default),i.exports="string"==typeof t?t:t.toString()},11:i=>{function a(i){var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}a.keys=()=>[],a.resolve=a,a.id=11,i.exports=a},840:i=>{"use strict";i.exports="移除高亮弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除."}},t={};function e(i){var a=t[i];if(void 0!==a)return a.exports;var d=t[i]={id:i,exports:{}};return n[i](d,d.exports,e),d.exports}a=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__,e.t=function(n,t){if(1&t&&(n=this(n)),8&t)return n;if("object"==typeof n&&n){if(4&t&&n.__esModule)return n;if(16&t&&"function"==typeof n.then)return n}var d=Object.create(null);e.r(d);var l={};i=i||[null,a({}),a([]),a(a)];for(var o=2&t&&n;"object"==typeof o&&!~i.indexOf(o);o=a(o))Object.getOwnPropertyNames(o).forEach((i=>l[i]=()=>n[i]));return l.default=()=>n,e.d(d,l),d},e.d=(i,a)=>{for(var n in a)e.o(a,n)&&!e.o(i,n)&&Object.defineProperty(i,n,{enumerable:!0,get:a[n]})},e.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),e.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var d={};return(()=>{"use strict";e.d(d,{component:()=>u});const i=coreApis.componentApis.define,a=coreApis.utils.urls,n=coreApis.settings,t=coreApis.localStorage;var l=function(i){return i[i.Heavy=0]="Heavy",i[i.Stroke=1]="Stroke",i[i.Shadow=2]="Shadow",i}(l||{});const o={[l.Heavy]:"1px 0 1px #000000,0 1px 1px #000000,0 -1px 1px #000000,-1px 0 1px #000000",[l.Stroke]:"0px 0px 1px #000000,0 0 1px #000000,0 0 1px #000000",[l.Shadow]:"1px 1px 2px #000000,0 0 1px #000000"},h=(0,i.defineOptionsMetadata)({highlight:{displayName:"禁用高赞弹幕",defaultValue:!0},up:{displayName:"禁用 UP 主弹幕",defaultValue:!0},upSlogan:{displayName:"禁用带货弹幕",defaultValue:!0},vip:{displayName:"禁用大会员弹幕",defaultValue:!0}}),b="disableSpecialDanmaku",u=(0,i.defineComponentMetadata)({name:b,entry:i=>{let{metadata:a,settings:e}=i;Object.keys(e.options).forEach((i=>{(0,n.addComponentListener)(`${a.name}.${i}`,(a=>{document.body.classList.toggle(`disable-${i}-danmaku-style`,a)}),!0)})),(()=>{const i="bpx_player_profile",a=i=>{const a=lodash.get(i,"dmSetting.fontborder");document.documentElement.style.setProperty("--danmaku-text-shadow",o[a])};a(JSON.parse(localStorage.getItem(i))),(0,t.watchLocalStorage)(((n,t)=>{n===i&&a(JSON.parse(t))}))})()},displayName:"禁用特殊弹幕样式",tags:[componentsTags.style],instantStyles:[{name:b,style:()=>Promise.resolve().then(e.t.bind(e,299,23))}],urlInclude:a.playerUrls,options:h,commitHash:"f8d9b5665fc198fe5b2eb39c57dab6d686e5ed74",coreVersion:"2.10.4",description:(()=>{const i=e(11);return{...Object.fromEntries(i.keys().map((a=>[a.match(/index\.(.+)\.md$/)[1],i(a)]))),"zh-CN":()=>Promise.resolve().then(e.t.bind(e,840,17)).then((i=>i.default))}})()})})(),d=d.component})()));