Greasy Fork is available in English.

linuxdo 增强插件

linux.do 增强插件,功能持续更新,欢迎提出新想法!

// ==UserScript==
// @name         linuxdo 增强插件
// @namespace    https://github.com/dlzmoe/linuxdo-scripts
// @version      0.4.8
// @author       dlzmoe
// @description  linux.do 增强插件,功能持续更新,欢迎提出新想法!
// @license      MIT
// @icon         https://linux.do/uploads/default/optimized/3X/9/d/9dd49731091ce8656e94433a26a3ef36062b3994_2_32x32.png
// @match        *://linux.do/*
// @require      https://unpkg.com/vue@3.4.38/dist/vue.global.prod.js
// @require      https://unpkg.com/jquery@3.7.1/dist/jquery.min.js
// @require      https://unpkg.com/pangu@4.0.7/dist/browser/pangu.js
// @require      https://unpkg.com/marked@14.1.1/marked.min.js
// @grant        GM_addStyle
// @grant        GM_xmlhttpRequest
// ==/UserScript==

(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const i=document.createElement("style");i.textContent=t,document.head.append(i)})(' input[type=text][data-v-2be3e9ac]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.emojiPicker{top:0;left:100%;position:absolute;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;height:100%;overflow:auto;background-color:#000c;padding:10px;border-radius:5px;z-index:9}.emojiPicker img{cursor:pointer;width:30px;height:30px}.sidebar-section-header-caret.right{transform:rotate(-90deg)}.item select[data-v-d780d688]{height:28px;border:1px solid #b6b6b6;border-radius:4px;width:180px;margin-left:10px;cursor:pointer}.item[data-v-e33f1de9]{border:none!important}.item a[data-v-e33f1de9]:hover{text-decoration:underline}.item[data-v-cb743585],.item[data-v-97d36adb],.item[data-v-7dffe7ad],.item[data-v-7877f446]{border:none!important}input[type=text][data-v-ac149a76]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.linxudoscripts-tag{background:#29a6a9;color:#fff;font-size:14px!important;padding:0 10px;height:26px;text-align:center;display:inline-flex!important;align-items:center;justify-content:center;border-radius:5px}.menu-table{width:100%}.menu-table td,.menu-table th{padding:10px;font-size:14px}.menu-table .span{cursor:pointer}.menu-table .span+.span{margin-left:10px}.item[data-v-d1d5d03b]{border:none}.item[data-v-b5335091]{display:block!important}p[data-v-b5335091]{margin:8px 0!important}ul[data-v-b5335091]{display:flex;flex-wrap:wrap;justify-content:space-between;list-style:none;padding:0}ul li[data-v-b5335091]{width:48%;margin-bottom:30px}input[type=radio][data-v-b5335091]{transform:scale(1.2)}.ls-flex[data-v-b5335091]{display:flex;align-content:center;margin-bottom:10px;cursor:pointer}.ls-flex input[data-v-b5335091]{margin-right:10px}.ls-flex label[data-v-b5335091]{cursor:pointer;font-weight:300}.item[data-v-11333de1]{border:none!important;padding:0!important;margin-top:15px;position:relative}.item .tit[data-v-11333de1]{white-space:nowrap;width:160px}.item input[data-v-11333de1]{margin:0;width:100%}.item em[data-v-11333de1]{position:absolute;right:10px;top:50%;transform:translateY(-50%);cursor:pointer;display:flex;align-items:center;justify-content:center}.item em svg[data-v-11333de1]{color:#999}.item .lxwebdavpassword[data-v-11333de1]{filter:blur(5px)}.item .lxwebdavpassword.act[data-v-11333de1]{filter:none}.btnwrapper[data-v-11333de1]{margin-top:20px}.post-stream.lookopwrapactive .topic-post{display:none!important}.post-stream.lookopwrapactive .topic-post.topic-owner{display:block!important}.el-button.act[data-v-6520db1a],.el-button.act[data-v-64839780]{background:linear-gradient(to right,var(--tertiary-low),var(--tertiary-high))!important}.el-button.act svg[data-v-64839780]{animation:spin-64839780 3s linear infinite}@keyframes spin-64839780{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.linuxdoscripts-aidialog{position:fixed;top:0;left:-100%;width:500px;height:100vh;background:#fff;box-shadow:1px 2px 5px #0000003d;z-index:999;padding-top:60px;transition:all .1s linear;opacity:0;visibility:hidden;overflow:hidden}.linuxdoscripts-aidialog.act{left:0;opacity:1;visibility:inherit;overflow:inherit}a[data-v-17d52b22]:hover{text-decoration:underline}.item-foot[data-v-17d52b22]{display:flex;flex-direction:column;align-items:flex-start;position:absolute;bottom:70px;left:22px;line-height:2}.item-foot span[data-v-17d52b22]{margin-bottom:2px}.UsageTip{position:static;margin:0;font-size:14px;line-height:1.6;background:var(--d-sidebar-background);color:var(--primary-medium)}.UsageTip>div{margin:10px 0}.UsageTip button{padding:8px 10px;margin-bottom:10px;border:none;outline:none;border-radius:4px}.menu-body[data-v-9114409e]{padding:0 15px}.inner[data-v-9114409e]{display:flex;align-items:center;margin-bottom:10px}.inner label[data-v-9114409e]{width:70px;font-weight:400}.inner input[data-v-9114409e]{flex:1;margin:0;max-width:300px}.timeline-container .topic-timeline .timeline-scrollarea{max-width:100px!important}#linuxdoscripts{font-size:14px}#linuxdoscripts input[type=text]{width:100%;background:var(--d-input-bg-color)}#linuxdoscripts input[type=checkbox]{transform:scale(1.2)}#linuxdoscripts #menu_suspendedball{display:none}#linuxdoscripts img{vertical-align:bottom;max-width:100%;height:auto}#linuxdoscripts .close{position:absolute;right:10px;top:45%;cursor:pointer;font-size:34px;color:#999;transform:translateY(-50%) rotate(45deg)}#linuxdoscripts .setting-btn{z-index:199;position:fixed;bottom:20px;right:20px}#linuxdoscripts .setting-btn .el-button{margin:15px 0 0;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tertiary-low);font-size:14px;cursor:pointer;border:none}#linuxdoscripts .setting-btn .el-button svg{margin:0}#linuxdoscripts .setting-btn .el-button:hover{opacity:.9}#linuxdoscripts .hint{margin-top:5px;color:#d94f4f;font-size:14px}#linuxdoscripts dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:700px;max-width:100vw;background:var(--header_background);color:var(--primary);box-shadow:0 8px 32px #0000001a;border-radius:16px;padding:15px;z-index:99999;overflow-x:hidden;box-sizing:border-box;margin:0;border:none;outline:none}#linuxdoscripts dialog .menu-about{padding:5px 0;line-height:2}#linuxdoscripts dialog .menu-about .initialization{color:#999;border-bottom:1px dashed #999;cursor:pointer}#linuxdoscripts dialog .menu-about .initialization:hover{color:#333;border-color:#333}#linuxdoscripts dialog p{margin:0;font-size:14px}#linuxdoscripts .menu-header{padding:.5rem .5rem 1rem;border-bottom:1px solid #eee;position:relative}#linuxdoscripts .title{font-size:18px;font-weight:600;display:flex;align-items:center}#linuxdoscripts .title img{margin-left:10px}#linuxdoscripts button{padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;border:none;display:inline-flex;align-items:center;justify-content:center;background-color:var(--primary-low)}#linuxdoscripts button+button{margin-left:8px}#linuxdoscripts button.saveload{background:#000;color:#fff}#linuxdoscripts button:hover{opacity:.9}#linuxdoscripts .menu-flex{display:flex;justify-content:space-between;align-items:flex-start}#linuxdoscripts .menu-nav{width:140px;display:flex;flex-direction:column;margin:0 20px 0 0;padding-top:15px}#linuxdoscripts .menu-nav li{border-radius:4px;height:32px;width:100%;margin-bottom:5px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;font-size:14px;cursor:pointer;line-height:1}#linuxdoscripts .menu-nav li svg{width:16px;margin-right:5px}#linuxdoscripts .menu-nav li.act{background:var(--d-selected)}#linuxdoscripts .menu-body{flex:1;height:480px;overflow-y:auto;padding-right:10px}#linuxdoscripts .menu-body::-webkit-scrollbar{height:8px;width:8px}#linuxdoscripts .menu-body::-webkit-scrollbar-corner{background:none}#linuxdoscripts .menu-body::-webkit-scrollbar-thumb{background:#dee0e1;border-radius:8px}#linuxdoscripts .menu-body .menu-body-item{display:none}#linuxdoscripts .menu-body .menu-body-item.act{display:block}#linuxdoscripts .menu-footer{display:flex;margin-top:10px;padding-top:6px}#linuxdoscripts .import{margin-left:auto!important}#linuxdoscripts .import,#linuxdoscripts .export{background:#d1f0ff;color:#559095}#linuxdoscripts .floorlottery{background:#ffb003}#linuxdoscripts .menu-body-item{padding-bottom:30px}#linuxdoscripts .menu-body-item .item{border-bottom:1px solid rgba(0,0,0,.05);padding:15px 0;display:flex;align-items:center;justify-content:space-between}#linuxdoscripts .menu-body-item .item .tit{height:100%;display:flex;align-items:center}#linuxdoscripts .menu-body-item .item input,#linuxdoscripts .menu-body-item .item select{margin-top:0;margin-bottom:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]{width:30px;height:16px;position:relative;background-color:#dcdfe6;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none;padding:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;background-color:#fff;border-radius:50%;left:2px;top:0;bottom:0;margin:auto;transition:.3s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked{background-color:var(--tertiary);transition:.6s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked:before{left:14px;transition:.3s}#linuxdoscripts textarea{font-family:inherit;width:100%;min-height:100px!important;border:1px solid #999;outline:0;padding:5px;font-size:14px;margin:5px 0 0;resize:none;border-radius:0;color:var(--d-input-text-color);background:var(--d-input-bg-color)}#linuxdoscripts textarea:focus{border-color:var(--tertiary);outline:2px solid var(--tertiary);outline-offset:-2px}#linuxdoscripts #floorlotterloading img{width:50px;height:50px}#linuxdoscripts .floorlotterywrap{display:none;width:400px;height:300px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:999}#linuxdoscripts .floorlotterywrap{width:400px;height:300px}#linuxdoscripts .el-checkbox__inner{border:1px solid #979797}#linuxdoscripts label{margin:0}.linuxdoscripts-opacity{display:none;position:fixed;left:0;top:0;width:100vw;height:100vh;background:#00000080;z-index:9999}.linuxlevel.four{background:linear-gradient(to right,red,#00f);-webkit-background-clip:text;color:transparent}.topic-post{position:relative}.linuxfloor{display:flex;color:var(--tertiary);width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;font-size:16px;margin-left:10px}.signature-p{color:#279a36;font-size:14px;word-break:break-word}.topic-list .views{font-weight:400!important;white-space:nowrap!important}.createreply{display:flex;flex-direction:column;max-width:300px}.createreply button{margin-bottom:10px;justify-content:flex-start;text-align:left}.topicpreview-btn,.donottopic-btn{padding:4px 12px!important;font-size:14px!important;opacity:0!important;margin-right:5px!important}.topic-list-item:hover .topicpreview-btn,.topic-list-item:hover .donottopic-btn{opacity:1!important}.topicpreview{position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;display:none}.topicpreview .topicpreview-container{padding:30px 0;border-radius:5px;width:100%;max-width:800px;overflow-y:auto;height:80vh;z-index:10;background:var(--header_background);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topicpreview .topicpreview-container .topicpreview-title{font-size:22px;font-weight:600;padding:0 30px}.topicpreview .topicpreview-container .topicpreview-date{padding:0 30px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item{display:flex;align-items:flex-start;padding:20px 30px}.topicpreview .topicpreview-container .topicpreview-content>.item .itemfloor{width:50px;text-align:left;font-size:16px;padding-top:15px;color:#25b4cf}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost{flex:1;background:var(--tertiary-low);padding:15px;border-radius:10px;font-size:15px;word-break:break-all}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost pre code{max-width:620px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost img{max-width:100%;max-height:100%;height:auto}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname{font-size:16px;color:#8f3a3a;display:flex;justify-content:space-between;align-items:center}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#9e9e9e;margin-left:20px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate{color:#b9b9b9;font-size:16px;margin-left:auto}.topicpreview-opacity{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;background:#0009;z-index:9}.body-preview .sidebar-wrapper{display:none!important}body.body-preview #main-outlet-wrapper{display:block!important;padding-left:50px!important}.body-preview .d-header-wrap,.body-preview .menu_suspendedball{display:none!important}.post-activity{white-space:nowrap;display:inline-block;width:100%;text-align:left}.d-header img{height:var(--d-logo-height);width:auto;max-width:100%;object-fit:contain}.aicreated-btn,.aireplay-btn{outline:none;border:none;background:var(--tertiary-low);display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:14px;padding:4px 10px;border-radius:3px;margin-bottom:10px;margin-right:10px}.aicreated-btn{display:none}.gpt-summary-wrap{background:var(--tertiary-low);border-radius:5px;padding:10px;font-size:14px;margin:0 0 10px;line-height:1.6}.gpt-summary-wrap .airegenerate{display:none;margin-top:6px;outline:none;border:1px solid #eee;background:#ffe27d;color:#626262;padding:4px 10px;cursor:pointer;border-radius:3px}.aicreatenewtopictitle{margin-left:20px}.aicreatenewtopictitle:hover{text-decoration:underline;cursor:pointer}.aireply-popup{z-index:999999;position:fixed;top:10%;left:50%;transform:translate(-50%);width:500px;padding:20px;background:var(--tertiary-low);color:#333;box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:10px;display:none}.aireply-popup .aireply-popup-text{width:100%;height:120px}.aireply-popup .aireply-popup-close{outline:0;min-width:80px;height:32px;border:none;background-color:var(--header_background);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear}#messageToast{z-index:9999999;position:fixed;left:50%;transform:translate(-50%);top:10%;width:100%;display:flex;flex-direction:column;align-items:center}#messageToast .messageToast-text{background:#4caf50;width:auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center;line-height:1;height:40px;min-width:240px;font-size:16px;box-sizing:border-box;margin-bottom:10px;opacity:0;animation:messageToast .2s forwards;padding:12px 24px;color:#fff;border-radius:4px;font-size:14px;z-index:9999;box-shadow:0 2px 5px #0003}@keyframes messageToast{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.pangutext{cursor:pointer;margin-left:20px}.pangutext:hover{color:#279a36}.navigation-container.is-active{position:fixed;top:65px;background:var(--header_background);z-index:9;box-shadow:1px 3px 7px #0003;margin-left:-30px;padding-left:30px;border-radius:5px;padding-top:10px;padding-right:20px;min-width:1000px;width:auto}.topic-body.clearfix.highlighted{background-color:var(--tertiary-low)!important}.hotranking-container{position:fixed;right:100px;bottom:20px;background:#fff;box-shadow:1px 10px 20px #0003;border-radius:10px;width:400px;min-height:380px;padding:20px;box-sizing:border-box;z-index:999}.hotranking-container .flex{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.hotranking-container ul li,.hotranking-container ol li{padding:2px 0}.hotranking-container ul li a:hover,.hotranking-container ol li a:hover{text-decoration:underline} ');

(function (vue, pangu, marked, $$1) {
  'use strict';

  if (document.getElementById('challenge-form')) {
      return;
   }

  const name = "linuxdo-scripts";
  const version = "0.4.8";
  const author = "dlzmoe";
  const description = "An enhanced script for the linux.do forum";
  const type = "module";
  const license = "MIT";
  const scripts = {
    dev: "vite --mode development",
    build: "vite build && py build.py",
    preview: "vite preview"
  };
  const dependencies = {
    jquery: "^3.7.1",
    marked: "^14.1.1",
    pangu: "^4.0.7",
    vue: "^3.4.27",
    webdav: "^5.7.1"
  };
  const devDependencies = {
    "@vitejs/plugin-vue": "^5.0.4",
    less: "^4.1.0",
    "less-loader": "^8.0.0",
    "style-loader": "^2.0.0",
    vite: "^5.2.12",
    "vite-plugin-monkey": "^4.0.0"
  };
  const packageJson = {
    name,
    version,
    author,
    description,
    type,
    license,
    scripts,
    dependencies,
    devDependencies
  };
  const _export_sfc = (sfc, props) => {
    const target = sfc.__vccOpts || sfc;
    for (const [key, val] of props) {
      target[key] = val;
    }
    return target;
  };
  const _sfc_main$15 = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    data() {
      return {
        eventListeners: []
      };
    },
    methods: {
      createSuperLabel(url, id) {
        let a = document.createElement("a");
        a.setAttribute("href", url);
        a.setAttribute("target", "_blank");
        a.setAttribute("id", id);
        if (!document.getElementById(id)) {
          document.body.appendChild(a);
        }
        a.click();
      },
      init() {
        this.removeEventListeners();
        $(".topic-list a.title,.topic .search-link").each((index, element) => {
          const listener = (event) => {
            event.preventDefault();
            var url = $(element).attr("href");
            this.createSuperLabel(url, url);
          };
          $(element).on("click", listener);
          this.eventListeners.push({ element, listener });
        });
      },
      removeEventListeners() {
        this.eventListeners.forEach(({ element, listener }) => {
          $(element).off("click", listener);
        });
        this.eventListeners = [];
      }
    },
    created() {
      if (this.modelValue) {
        let pollinglength1 = 0;
        let pollinglength2 = 0;
        setInterval(() => {
          if (pollinglength1 != $(".topic-list-body tr").length) {
            pollinglength1 = $(".topic-list-body tr").length;
            this.init();
          }
          if (pollinglength2 != $(".post-stream .topic-post").length) {
            pollinglength2 = $(".post-stream .topic-post").length;
            this.init();
          }
        }, 1e3);
      }
    },
    beforeDestroy() {
      this.removeEventListeners();
    }
  };
  const _hoisted_1$$ = { class: "item" };
  const _hoisted_2$_ = { class: "tit" };
  const _hoisted_3$R = ["checked"];
  function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
      vue.createElementVNode("div", _hoisted_2$_, vue.toDisplayString($props.sort) + ". 是否新标签页打开话题", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$R)
    ]);
  }
  const MenuOpenpostblank = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["render", _sfc_render$15]]);
  const _sfc_main$14 = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        if ($("#list-area .show-more").length > 0) {
          $("head title").html("【有新话题赶紧来水!!】");
        }
      }
    },
    created() {
      if (this.modelValue) {
        setInterval(() => {
          this.init();
        }, 1e3);
      }
    }
  };
  const _hoisted_1$_ = { class: "item" };
  const _hoisted_2$Z = { class: "tit" };
  const _hoisted_3$Q = ["checked"];
  function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
      vue.createElementVNode("div", _hoisted_2$Z, vue.toDisplayString($props.sort) + ". 是否开启新话题提醒", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$Q)
    ]);
  }
  const MenuNewtopicreminder = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_render$14]]);
  const _sfc_main$13 = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        $("nav.post-controls .show-replies").each(function() {
          $(this).click();
        });
      }
    },
    created() {
      if (this.modelValue) {
        let pollinglength2 = 0;
        setInterval(() => {
          if (pollinglength2 != $(".post-stream .topic-post").length) {
            pollinglength2 = $(".post-stream .topic-post").length;
            this.init();
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$Z = { class: "item" };
  const _hoisted_2$Y = { class: "tit" };
  const _hoisted_3$P = ["checked"];
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
      vue.createElementVNode("div", _hoisted_2$Y, vue.toDisplayString($props.sort) + ". 是否自动展开回复", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$P)
    ]);
  }
  const MenuAutoexpandreply = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$13]]);
  const _sfc_main$12 = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        const tabs = $(".reply-to-tab");
        let index = 0;
        const clickNext = () => {
          if (index >= tabs.length) return;
          const tab = $(tabs[index]);
          if (!tab.data("clicked")) {
            tab.click();
            tab.data("clicked", true);
          }
          index++;
          setTimeout(clickNext, 1e3);
        };
        clickNext();
      }
    },
    created() {
      if (this.modelValue) {
        setInterval(() => {
          if ($(".topic-body .reply-to-tab").length > 0) {
            this.init();
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$Y = { class: "item" };
  const _hoisted_2$X = { class: "tit" };
  const _hoisted_3$O = ["checked"];
  function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
      vue.createElementVNode("div", _hoisted_2$X, vue.toDisplayString($props.sort) + ". 是否自动展开回复父帖子", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$O)
    ]);
  }
  const MenuAutoexpandreply1 = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12]]);
  const _sfc_main$11 = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      formattedDate(time) {
        const timestamp = Number(time);
        const date = new Date(timestamp);
        const now = /* @__PURE__ */ new Date();
        const isToday = now.getFullYear() === date.getFullYear() && now.getMonth() === date.getMonth() && now.getDate() === date.getDate();
        date.getFullYear();
        const month = String(date.getMonth() + 1).padStart(2, "0");
        const day = String(date.getDate()).padStart(2, "0");
        const hours = String(date.getHours()).padStart(2, "0");
        const minutes = String(date.getMinutes()).padStart(2, "0");
        return isToday ? `${hours}:${minutes}` : `${month}/${day} ${hours}:${minutes}`;
      },
      convertToTimestamp(dateStr) {
        const cleanedDateStr = dateStr.replace(/\s+/g, "");
        const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/;
        const dateMatch = cleanedDateStr.match(datePattern);
        if (dateMatch) {
          const year = parseInt(dateMatch[1], 10);
          const month = parseInt(dateMatch[2], 10) - 1;
          const day = parseInt(dateMatch[3], 10);
          const hours = parseInt(dateMatch[4], 10);
          const minutes = parseInt(dateMatch[5], 10);
          const date = new Date(year, month, day, hours, minutes);
          return date.getTime();
        }
        return null;
      },
      setInitDate() {
        $(".topic-list .age").each((index, element) => {
          const str = $(element).attr("title");
          const match = str.match(/创建日期:([\s\S]*?)最新:/);
          if (match && match[1]) {
            const creationDate = match[1].trim();
            const timestamp = this.convertToTimestamp(creationDate);
            if ($(element).find(".linuxtime").length < 1) {
              const now = (/* @__PURE__ */ new Date()).getTime();
              const oneDay = 1e3 * 60 * 60 * 24;
              const oneWeek = oneDay * 7;
              const oneMonth = oneDay * 30;
              const threeMonths = oneMonth * 3;
              let color;
              const timeDiff = now - timestamp;
              if (timeDiff < oneDay) {
                color = "#45B5AA";
                $(element).find(".post-activity").append(
                  `<span class="linuxtime" style="color:${color}">(${this.formattedDate(
                  timestamp
                )})</span>`
                );
              } else if (timeDiff < oneWeek) {
                color = "#66A586";
                $(element).find(".post-activity").append(
                  `<span class="linuxtime" style="color:${color}">(${this.formattedDate(
                  timestamp
                )})</span>`
                );
              } else if (timeDiff < oneMonth) {
                color = "#CFA94A";
                $(element).find(".post-activity").append(
                  `<span class="linuxtime" style="color:${color}">(${this.formattedDate(
                  timestamp
                )})</span>`
                );
              } else if (timeDiff < threeMonths) {
                color = "#3e8ed2";
                $(element).find(".post-activity").append(
                  `<span class="linuxtime" style="color:${color}">(${this.formattedDate(
                  timestamp
                )})</span>`
                );
              } else {
                color = "#cccccc";
                $(element).find(".post-activity").append(
                  `<span class="linuxtime" style="color:${color}">
                  (<img style="width:20px;vertical-align:sub;" src="https://linux.do/uploads/default/original/4X/4/0/8/408c29a1d1dfaada3160fb2ae366cf3a7c7c1696.png">${this.formattedDate(
                  timestamp
                )})
                </span>`
                );
              }
            }
          }
        });
      },
      initDateAndStartPolling() {
        setInterval(() => {
          this.setInitDate();
          this.startPolling();
        }, 1e3);
      },
      startPolling() {
        setInterval(() => {
          this.setInitDate();
        }, 1e4);
      }
    },
    mounted() {
      if (this.modelValue) {
        this.startPolling();
        this.initDateAndStartPolling();
      }
    }
  };
  const _hoisted_1$X = { class: "item" };
  const _hoisted_2$W = { class: "tit" };
  const _hoisted_3$N = ["checked"];
  function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", null, [
      vue.createElementVNode("div", _hoisted_1$X, [
        vue.createElementVNode("div", _hoisted_2$W, vue.toDisplayString($props.sort) + ". 话题列表显示创建时间", 1),
        vue.createElementVNode("input", {
          type: "checkbox",
          checked: $props.modelValue,
          onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
        }, null, 40, _hoisted_3$N)
      ])
    ]);
  }
  const MenuShowcreatetime = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11]]);
  const _sfc_main$10 = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      formattedDate(time) {
        const timestamp = Number(time);
        const date = new Date(timestamp);
        const now = /* @__PURE__ */ new Date();
        const isToday = now.getFullYear() === date.getFullYear() && now.getMonth() === date.getMonth() && now.getDate() === date.getDate();
        date.getFullYear();
        const month = String(date.getMonth() + 1).padStart(2, "0");
        const day = String(date.getDate()).padStart(2, "0");
        const hours = String(date.getHours()).padStart(2, "0");
        const minutes = String(date.getMinutes()).padStart(2, "0");
        return isToday ? `${hours}:${minutes}` : `${month}/${day} ${hours}:${minutes}`;
      },
      convertToTimestamp(dateStr) {
        const cleanedDateStr = dateStr.replace(/\s+/g, "");
        const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/;
        const dateMatch = cleanedDateStr.match(datePattern);
        if (dateMatch) {
          const year = parseInt(dateMatch[1], 10);
          const month = parseInt(dateMatch[2], 10) - 1;
          const day = parseInt(dateMatch[3], 10);
          const hours = parseInt(dateMatch[4], 10);
          const minutes = parseInt(dateMatch[5], 10);
          const date = new Date(year, month, day, hours, minutes);
          return date.getTime();
        }
        return null;
      },
      setInitDate() {
        $(".topic-list-item .age").each((index, element) => {
          const str = $(element).attr("title");
          const match = str.match(/创建日期:([\s\S]*?)最新:/);
          if (match && match[1]) {
            const creationDate = match[1].trim();
            const timestamp = this.convertToTimestamp(creationDate);
            const now = (/* @__PURE__ */ new Date()).getTime();
            const oneDay = 1e3 * 60 * 60 * 24;
            const oneWeek = oneDay * 7;
            const oneMonth = oneDay * 30;
            const threeMonths = oneMonth * 3;
            let color;
            const timeDiff = now - timestamp;
            if (timeDiff < oneDay) {
              color = "#45B5AA";
              $(element).siblings(".views").html(
                `<span class="linuxtime" style="color:${color}">${this.formattedDate(
                timestamp
              )}</span>`
              );
            } else if (timeDiff < oneWeek) {
              color = "#66A586";
              $(element).siblings(".views").html(
                `<span class="linuxtime" style="color:${color}">${this.formattedDate(
                timestamp
              )}</span>`
              );
            } else if (timeDiff < oneMonth) {
              color = "#CFA94A";
              $(element).siblings(".views").html(
                `<span class="linuxtime" style="color:${color}">${this.formattedDate(
                timestamp
              )}</span>`
              );
            } else if (timeDiff < threeMonths) {
              color = "#3e8ed2";
              $(element).siblings(".views").html(
                `<span class="linuxtime" style="color:${color}">${this.formattedDate(
                timestamp
              )}</span>`
              );
            } else {
              color = "#cccccc";
              $(element).siblings(".views").html(
                `<span class="linuxtime" style="color:${color}">
               <img style="width:20px;vertical-align:sub;" src="https://linux.do/uploads/default/original/4X/4/0/8/408c29a1d1dfaada3160fb2ae366cf3a7c7c1696.png">${this.formattedDate(
                timestamp
              )}
                </span>`
              );
            }
          }
        });
      },
      initDateAndStartPolling() {
        setInterval(() => {
          this.setInitDate();
          this.startPolling();
        }, 1e3);
      },
      startPolling() {
        setInterval(() => {
          this.setInitDate();
        }, 1e4);
      }
    },
    mounted() {
      if (this.modelValue) {
        this.startPolling();
        this.initDateAndStartPolling();
      }
    }
  };
  const _hoisted_1$W = { class: "item" };
  const _hoisted_2$V = { class: "tit" };
  const _hoisted_3$M = ["checked"];
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
      vue.createElementVNode("div", _hoisted_2$V, vue.toDisplayString($props.sort) + ". 将浏览量替换为创建时间(与 4 互斥,只可选择一个)", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$M)
    ]);
  }
  const MenuShowcreatetime1 = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10]]);
  const _sfc_main$$ = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        $(".topic-post").each(function() {
          const num = $(this).find("article").attr("id").replace(/^post_/, "");
          if ($(this).find(".linuxfloor").length < 1) {
            $(this).find(".post-infos").append(`<span class="linuxfloor">#${num}</span>`);
          }
        });
      }
    },
    created() {
      if (this.modelValue) {
        let pollinglength2 = 0;
        setInterval(() => {
          if (pollinglength2 != $(".post-stream .topic-post").length) {
            pollinglength2 = $(".post-stream .topic-post").length;
            this.init();
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$V = { class: "item" };
  const _hoisted_2$U = { class: "tit" };
  const _hoisted_3$L = ["checked"];
  function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
      vue.createElementVNode("div", _hoisted_2$U, vue.toDisplayString($props.sort) + ". 是否显示楼层数", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$L)
    ]);
  }
  const MenuShowfloors = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$]]);
  const _sfc_main$_ = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>.header-title{display:none!important}</style>`);
      }
    }
  };
  const _hoisted_1$U = { class: "item" };
  const _hoisted_2$T = { class: "tit" };
  const _hoisted_3$K = ["checked"];
  function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
      vue.createElementVNode("div", _hoisted_2$T, vue.toDisplayString($props.sort) + ". 隐藏话题详情顶部大标题", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$K)
    ]);
  }
  const MenuHidetopicdetailtitle = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_]]);
  const _sfc_main$Z = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        if ($(".topicpreview").length < 1) {
          $("body").append(`<div class="topicpreview">
          <div class="topicpreview-opacity"></div>
          <div class="topicpreview-container">
            <p style="text-align: center">正在加载中...</p>  
          </div>
          </div>`);
        }
        $(".topic-list .main-link a.title").each(function() {
          const id = $(this).attr("data-topic-id");
          if ($(this).parents(".link-top-line").find(".topicpreview-btn").length < 1) {
            $(this).parents(".link-top-line").append(
              `<button class="btn btn-icon-text btn-default topicpreview-btn" data-id="${id}">预览</button>`
            );
          }
        });
      },
      setClick() {
        $(".topicpreview-btn").each(function() {
          $(this).click(function() {
            $(".topicpreview").show();
            let previewData = {};
            let previewurl = $(this).attr("data-id");
            fetch(`/t/${previewurl}.json`).then((response) => response.json()).then((data) => {
              previewData = data;
              function formatDate(isoString) {
                const date = new Date(isoString);
                const year = date.getFullYear();
                const month = String(date.getMonth() + 1).padStart(2, "0");
                const day = String(date.getDate()).padStart(2, "0");
                const hours = String(date.getHours()).padStart(2, "0");
                const minutes = String(date.getMinutes()).padStart(2, "0");
                const seconds = String(date.getSeconds()).padStart(2, "0");
                return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
              }
              $(".topicpreview-container").html(`
                <div class="topicpreview-title">${previewData.title}</div>
                <p class="topicpreview-date">发帖时间:${formatDate(
              previewData.created_at
            )}</p>
                <div class="topicpreview-content"></div>
                <p style="text-align: center;">仅显示前 20 条,<a href="/t/topic/${previewurl}/">查看更多</a></p>
              `);
              $.each(previewData.post_stream.posts, function(index, post) {
                $(".topicpreview .topicpreview-content").append(`
                  <div class="item">
                    <span class="itemfloor">${index + 1}楼</span>
                    <div class="itempost">
                      <div class="itemname">
                        ${post.display_username} 
                        <span>${post.username}</span>
                        <div class="itemdate">${formatDate(post.created_at)}</div>
                      </div>
                      ${post.cooked}
                    </div>
                  </div>
                `);
              });
              setInterval(() => {
                $(".lightbox").attr("href", "javascript:void(0)");
              }, 1e3);
            });
          });
        });
        $(".topicpreview-opacity").click(this.closePreview);
      },
      closePreview() {
        $(".topicpreview").hide();
        $(".topicpreview-container").html(
          `<p style="text-align: center">正在加载中...</p> `
        );
      },
      handleKeyDown(event) {
        if (event.key === "Escape") {
          this.closePreview();
        }
      }
    },
    created() {
      if (this.modelValue) {
        setInterval(() => {
          this.init();
        }, 1e3);
        let pollinglength1 = 0;
        let pollinglength2 = 0;
        setInterval(() => {
          if (pollinglength1 != $(".topic-list-body tr").length) {
            pollinglength1 = $(".topic-list-body tr").length;
            this.setClick();
          }
          if (pollinglength2 != $(".post-stream .topic-post").length) {
            pollinglength2 = $(".post-stream .topic-post").length;
            this.setClick();
          }
        }, 1e3);
        document.addEventListener("keydown", this.handleKeyDown);
      }
    },
    beforeUnmount() {
      document.removeEventListener("keydown", this.handleKeyDown);
    }
  };
  const _hoisted_1$T = { class: "item" };
  const _hoisted_2$S = { class: "tit" };
  const _hoisted_3$J = ["checked"];
  function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
      vue.createElementVNode("div", _hoisted_2$S, vue.toDisplayString($props.sort) + ". 是否开启话题预览功能", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$J)
    ]);
  }
  const MenuTopicpreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z]]);
  const _sfc_main$Y = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    computed: {
      value1: {
        get() {
          return this.modelValue.value1;
        },
        set(newValue) {
          this.$emit("update:modelValue", { ...this.modelValue, value1: newValue });
        }
      },
      value2: {
        get() {
          return this.modelValue.value2;
        },
        set(newValue) {
          this.$emit("update:modelValue", { ...this.modelValue, value2: newValue });
        }
      }
    },
    methods: {
      updateValue1(newValue) {
        this.value1 = newValue;
      }
    }
  };
  const _hoisted_1$S = { class: "item" };
  const _hoisted_2$R = { class: "tit" };
  const _hoisted_3$I = ["checked"];
  function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
      vue.createElementVNode("div", _hoisted_2$R, [
        vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否显示自动阅读按钮,可调节速度默认 10 ", 1),
        vue.withDirectives(vue.createElementVNode("input", {
          type: "text",
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value2 = $event),
          placeholder: "默认速度 10"
        }, null, 512), [
          [vue.vModelText, $options.value2]
        ])
      ]),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $options.value1,
        onChange: _cache[1] || (_cache[1] = ($event) => $options.updateValue1($event.target.checked))
      }, null, 40, _hoisted_3$I)
    ]);
  }
  const MenuAutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__scopeId", "data-v-2be3e9ac"]]);
  const _sfc_main$X = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"]
  };
  const _hoisted_1$R = { class: "item" };
  const _hoisted_2$Q = { class: "tit" };
  const _hoisted_3$H = ["checked"];
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
      vue.createElementVNode("div", _hoisted_2$Q, vue.toDisplayString($props.sort) + ". 是否开启只看楼主", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$H)
    ]);
  }
  const MenuLookOP = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X]]);
  const _sfc_main$W = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
      .topic-body .cooked{max-height:600px!important;overflow-y:auto!important;}
      </style>`);
      }
    }
  };
  const _hoisted_1$Q = { class: "item" };
  const _hoisted_2$P = { class: "tit" };
  const _hoisted_3$G = ["checked"];
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
      vue.createElementVNode("div", _hoisted_2$P, vue.toDisplayString($props.sort) + ". 智能限制楼层高度", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$G)
    ]);
  }
  const MenuFloorHeight = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W]]);
  const emojiSet = [
    {
      size: "30x30",
      name: "tieba_001",
      url: "/uploads/default/original/3X/9/a/9ac368cc8eafad165bbcf61b0263803d3b2dc2a7.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_002",
      url: "/uploads/default/original/3X/1/6/16baef70ba80d438e4bb1907ec0c354d680e09df.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_003",
      url: "/uploads/default/original/3X/2/7/27a55a1370c41f0736ba094bdc8866c6c2878c16.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_004",
      url: "/uploads/default/original/3X/9/e/9eac534efec605f5a1ac3b2f08d768cfbb4c63a9.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_005",
      url: "/uploads/default/original/3X/7/4/7493e87cae45656ac7997e8c79c852f9abc80454.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_006",
      url: "/uploads/default/original/3X/5/9/596da26825d2a806bd1952b5231f24d212866c1b.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_007",
      url: "/uploads/default/original/3X/c/0/c055b564a5b580ddfbf651df9a70feaec2b3b8e4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_008",
      url: "/uploads/default/original/3X/9/e/9e137b2c72b77ee75454d737b5ad9d043dd49954.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_009",
      url: "/uploads/default/original/3X/c/7/c756c0f079d25093ed6c7c2feaaa423ead63411c.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_125",
      url: "/uploads/default/original/3X/1/3/133688dda7ae38a3ddbc9eda0ca99fa8ddbb2704.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_010",
      url: "/uploads/default/original/3X/2/b/2b58793c54c273c2d3d40722c4def435543084b4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_011",
      url: "/uploads/default/original/3X/0/b/0b73771da5b3dc534ad05f1b5fff24325fc0eff7.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_012",
      url: "/uploads/default/original/3X/9/d/9d9e539ba33d272a5c6468cdb2fa7615695fa788.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_013",
      url: "/uploads/default/original/3X/e/1/e1aad11157b14d04bc8056573ecb23b5a219d260.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_014",
      url: "/uploads/default/original/3X/1/2/123defe5ac241618f3bb5246a727be77d996656d.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_015",
      url: "/uploads/default/original/3X/d/3/d3347ade2d4baf8092696b33c3523e634923b4fe.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_016",
      url: "/uploads/default/original/3X/2/1/21158038759f6a8630df8507f782a45a6caee004.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_017",
      url: "/uploads/default/original/3X/7/7/7732425deb158037a8692c45381de35ca83105e6.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_018",
      url: "/uploads/default/original/3X/7/1/7101ed3a9c047d318454b4eff91d74c06db5eaab.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_019",
      url: "/uploads/default/original/3X/e/e/eeccf0c1ccda4a4f3b33b4bb502c14e80c324443.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_020",
      url: "/uploads/default/original/3X/2/8/286824f9727de34e43b906346c0bdb0f854b1e2b.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_021",
      url: "/uploads/default/original/3X/0/9/09077d62fc78be7a9c19a8c084a35eac8373d241.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_022",
      url: "/uploads/default/original/3X/6/2/62e7b0ea68e56cc033f78527e62a825a6d9001f2.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_023",
      url: "/uploads/default/original/3X/d/4/d4e4c57ba70bd38264f0677cf338fa8af3228fbd.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_024",
      url: "/uploads/default/original/3X/9/c/9c2f3e1ce5982036af66b951a26231b7590e93d4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_025",
      url: "/uploads/default/original/3X/e/4/e415f72201d585ac7ccc869a334048006d2b6b9d.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_026",
      url: "/uploads/default/original/3X/a/d/ad2d245bbe71a05b0bd7a42f435d25524517c7ac.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_027",
      url: "/uploads/default/original/3X/7/9/7992e06b38f76d7d55a8bc496fa6dd046ba1f0ad.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_028",
      url: "/uploads/default/original/3X/4/4/448d0cb933ec8016797faef8c8dcfb8822e43326.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_029",
      url: "/uploads/default/original/3X/8/4/84cd00fd735f11a57b193d62880f55b4ab835c7e.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_030",
      url: "/uploads/default/original/3X/6/8/68b3471539dbbe40437b0881916feb2d9d4ad254.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_031",
      url: "/uploads/default/original/3X/8/9/89870339101e10993ef1e55dd9e96f275a6a99f9.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_032",
      url: "/uploads/default/original/3X/2/5/25936c19b7808540b4a46eb7aeddced05658ec77.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_033",
      url: "/uploads/default/original/3X/d/f/dff9a29b33ccc0eeffe6d457cee58307246e28ab.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_034",
      url: "/uploads/default/original/3X/8/b/8b42b74ab6f63dcd02b923cee5ab8f224f32954e.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_035",
      url: "/uploads/default/original/3X/a/2/a268ad46209a864548c0439854c562d5a1a852e4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_036",
      url: "/uploads/default/original/3X/4/9/49b2eba636dba687d98c4254bb00c682194f3556.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_037",
      url: "/uploads/default/original/3X/5/3/5359fdcfeb8a92794fdf7e0a9e1b7002ba635765.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_038",
      url: "/uploads/default/original/3X/5/3/535b871b10c649510280825c98e80ee1122613ec.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_039",
      url: "/uploads/default/original/3X/9/8/98939cb96a8df85af0efdaf02dcc144265e64703.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_040",
      url: "/uploads/default/original/3X/3/a/3a5fcb80663d73c1f116527c17de7cad37b72c49.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_041",
      url: "/uploads/default/original/3X/4/0/40cc7fe068c66b38c5e58ee8b59879f572dcd2ca.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_042",
      url: "/uploads/default/original/3X/e/6/e69395f0a9f391ca3c296aeddf510d0fb1d28fdf.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_043",
      url: "/uploads/default/original/3X/1/2/123e2d16a27491073fd90994fcd2820a48b2eb1d.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_044",
      url: "/uploads/default/original/3X/4/d/4d101bae8975480e4c81969242c6db771ccf29df.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_045",
      url: "/uploads/default/original/3X/6/8/687dca2210abafbcaaf211e27a013c1c0d7d480c.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_046",
      url: "/uploads/default/original/3X/1/4/14bca5d4cdaca743d0da8bc7f3b23146b53bc534.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_047",
      url: "/uploads/default/original/3X/c/d/cd555f2a5f605873e85b12ebf5e20affeb86817b.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_048",
      url: "/uploads/default/original/3X/7/d/7d5173acb48b6662934d93d15ccf03bc4eb4fe1e.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_049",
      url: "/uploads/default/original/3X/b/7/b774ed3e1792a0c345c3dc6b405398fc330476c4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_050",
      url: "/uploads/default/original/3X/6/3/63c1a091c6a7a3a4ba09f79d3df61b5258d1da14.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_062",
      url: "/uploads/default/original/3X/6/4/644937964bfb3b7ff9519a8c789fba156bc51493.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_063",
      url: "/uploads/default/original/3X/9/7/977e25c3bb0bb2ffffd7680ef75de860c9bc8eeb.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_064",
      url: "/uploads/default/original/3X/f/a/fa08552ff47b7347fe769ea71e251784fe46e9c4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_065",
      url: "/uploads/default/original/3X/8/d/8ddf6f88c399106b30f08bc6ae594dba19e8da36.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_066",
      url: "/uploads/default/original/3X/d/c/dccf34dbec6856992ab133e61a1f35417caf5f94.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_067",
      url: "/uploads/default/original/3X/1/6/16cd502b6c1d42d6d929788d47a96e50313b361f.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_068",
      url: "/uploads/default/original/3X/a/7/a79256841becf6fc218cf13ed7c9708d2846f472.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_069",
      url: "/uploads/default/original/3X/1/b/1b279f1106ef55973ae2df3a41edda04181163f6.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_070",
      url: "/uploads/default/original/3X/1/e/1e8646c269ac7a1cea631b1a2fe107a4b0137dd4.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_071",
      url: "/uploads/default/original/3X/4/f/4fcf98aa20e5148d8f0dd1e117d99ad52fe7787a.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_072",
      url: "/uploads/default/original/3X/f/b/fbdca3a08e2eb36d408a9f723251132a6e1a4a1d.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_073",
      url: "/uploads/default/original/3X/e/f/efcf23577412c17df6354df84eae836ad324d3fc.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_074",
      url: "/uploads/default/original/3X/4/0/40f2d01d50e90a29680636aa5b5b6808fe4e496b.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_075",
      url: "/uploads/default/original/3X/b/2/b29012e6751baac99a0b364978e2ba6c68696bb0.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_076",
      url: "/uploads/default/original/3X/8/e/8eb5b83342386cac1dcf7ee4de785540eb85b941.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_077",
      url: "/uploads/default/original/3X/0/d/0d84801a6c000b4724a4f998ae2cebbb75088672.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_078",
      url: "/uploads/default/original/3X/e/8/e8342efcc78faa5225bc94fdc50d595b35de226a.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_079",
      url: "/uploads/default/original/3X/0/3/03493b5fee0ad65939b223bcb99256c2ad3f92cf.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_080",
      url: "/uploads/default/original/3X/6/0/6010085f85bbd33ec476d908a3adedf43bf806d2.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_081",
      url: "/uploads/default/original/3X/4/7/472396c3c1fdc62031460f52fa57e70656559956.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_082",
      url: "/uploads/default/original/3X/e/8/e8ed47702a901d932ce0f2c926006c569777acae.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_083",
      url: "/uploads/default/original/3X/8/3/839487b3bbfe38ea8a6d69115c2b18e336c776aa.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_084",
      url: "/uploads/default/original/3X/d/a/da2b0f67a66746f0702044254460f5f210159dfe.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_085",
      url: "/uploads/default/original/3X/4/b/4bfbebdb5da3afb04e73813042a2645dea7895a3.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_086",
      url: "/uploads/default/original/3X/4/0/4035794fd9995594b024ca6695de918567c5b192.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_087",
      url: "/uploads/default/original/3X/2/e/2e09f3a3c7b27eacbabe9e9614b06b88d5b06343.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_088",
      url: "/uploads/default/original/3X/8/8/8842b4bbda39465fefb2a5cee47c8b203463e327.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_089",
      url: "/uploads/default/original/3X/c/2/c20aca50f9432ad01fdaf454e2013083be11909c.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_090",
      url: "/uploads/default/original/3X/0/e/0eb0e2df1d8287c00069e1bb906f65a7e6f8ac1f.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_091",
      url: "/uploads/default/original/3X/f/c/fcb760df48754f55cd9030370300880cddc30aeb.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_092",
      url: "/uploads/default/original/3X/6/d/6d1bcb4bdba18ec87caac87e5c944d81244c0925.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_093",
      url: "/uploads/default/original/3X/1/7/17e9f52f1b3f19e5fcf1e30b0bef7154b9cb25e9.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_094",
      url: "/uploads/default/original/3X/d/8/d84a7737da89e36a682519cc53dc36869dc8324a.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_095",
      url: "/uploads/default/original/3X/d/6/d687f7716a72d08b5ab44bf515b4b47ddf973a16.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_096",
      url: "/uploads/default/original/3X/9/1/91c4bdc5b31022de2047b0e326f85aac696a61d8.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_097",
      url: "/uploads/default/original/3X/9/9/992ffdfd94f164debe2ff1ffd686eb9b6d886c30.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_098",
      url: "/uploads/default/original/3X/a/b/ab4d09d173fe9d726a7df370527e3bb11b86ac37.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_099",
      url: "/uploads/default/original/3X/9/e/9e07307cddc9a8e1b17374d688dcd9cac0009b36.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_100",
      url: "/uploads/default/original/3X/0/8/083d87100f8608832766302d52e90c66bfa7b55e.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_101",
      url: "/uploads/default/original/3X/d/d/ddf9dab71979b328b8cc99a110961278b31af15f.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_102",
      url: "/uploads/default/original/3X/c/1/c1e30e625a80f2c4e38d15051adc0fbff0cdac85.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_103",
      url: "/uploads/default/original/3X/4/9/4932179ffb43027d3482ff0a8e79ad3c9f124675.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_104",
      url: "/uploads/default/original/3X/e/e/ee4698ca2806e680bf8710a138964433caeec7db.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_105",
      url: "/uploads/default/original/3X/0/4/04b9b300e3259e61fe2e9b6e1a291112fece7aa5.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_106",
      url: "/uploads/default/original/3X/4/5/45cf9833729d3f67e4b71327c07bda302ac3f792.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_107",
      url: "/uploads/default/original/3X/6/c/6c0346f696e90c6f804ade9f9d578c8c79c99aac.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_108",
      url: "/uploads/default/original/3X/a/1/a1ec5ef51c85ebabebe5102b00a1a4caeb08be63.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_109",
      url: "/uploads/default/original/3X/b/7/b75001317cf515737019777e8a6ed35b5b46ca6c.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_110",
      url: "/uploads/default/original/3X/0/1/0194cea00dae49fd82321825b52d96e1f8f47732.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_111",
      url: "/uploads/default/original/3X/b/5/b52e429fb2a84f8e72169c358f00b20e271d9f83.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_112",
      url: "/uploads/default/original/3X/c/9/c9aa6ca75dbffd21308721ce156da371e82b47f9.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_113",
      url: "/uploads/default/original/3X/1/c/1cadebeaf0cd36af11665ffa5802ba1c5b143be9.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_114",
      url: "/uploads/default/original/3X/d/d/dd93786f2a24352b65e23f81d2c24c1a41439cf0.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_115",
      url: "/uploads/default/original/3X/1/e/1e79d50d73b1afaeffe39574e92154d5d2878787.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_116",
      url: "/uploads/default/original/3X/d/a/daf75362acc5e46c813a77d8bd143e4e20dd89e5.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_117",
      url: "/uploads/default/original/3X/f/c/fcca64230d5d15b933b3b9db491f9d3516909b62.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_118",
      url: "/uploads/default/original/3X/1/8/189ed0fa3c3c01fdf1a99e836f1fa921f679b286.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_119",
      url: "/uploads/default/original/3X/1/2/1267794a9888419b4d72a2e92162dcb10c08d740.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_120",
      url: "/uploads/default/original/3X/2/b/2b20054bfb140ededbc4a5b94d529960ab49522a.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_121",
      url: "/uploads/default/original/3X/5/4/54c6102be172ff5b326edcff59e4ed6485495218.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_122",
      url: "/uploads/default/original/3X/f/b/fb9a3fe91bb52c30496dd41c739bd829511498fe.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_123",
      url: "/uploads/default/original/3X/0/6/069a4f21d927aac0db15bb2304ca29f5bdd0f733.png?v=12"
    },
    {
      size: "30x30",
      name: "tieba_124",
      url: "/uploads/default/original/3X/3/7/372798490ea3b5ca4dac38233413355c6c8175ce.png?v=12"
    }
  ];
  setInterval(() => {
    var editor = document.querySelector(".d-editor-button-bar");
    if (!document.querySelector(".emoji-picker-button") && editor) {
      var emojiButton = document.createElement("button");
      emojiButton.classList.add(
        "btn",
        "no-text",
        "btn-icon",
        "emoji",
        "emoji-picker-button"
      );
      emojiButton.title = "插入贴吧表情包";
      emojiButton.innerHTML = "<svg class='fa d-icon d-icon-far-face-smile svg-icon svg-string' xmlns='http://www.w3.org/2000/svg'><use href='#far-face-smile'></use></svg>";
      editor.appendChild(emojiButton);
      emojiButton.addEventListener("click", function() {
        var emojiPicker = document.createElement("div");
        emojiPicker.className = "emojiPicker";
        var emojiSetHtml = emojiSet.map(
          (emo) => `<img src="${emo.url}" name="${emo.name}" url="${emo.url}" alt="${emo.size}" onclick="insertEmoji(event)"/>`
        ).join("");
        emojiPicker.innerHTML = emojiSetHtml;
        emojiPicker.style.position = "absolute";
        emojiPicker.style.background = "#FFF";
        emojiPicker.style.border = "1px solid #ddd";
        emojiPicker.style.padding = "10px";
        if (document.body.contains(document.querySelector(".emojiPicker"))) {
          document.querySelector(".emojiPicker").remove();
        } else {
          emojiButton.after(emojiPicker);
        }
        emojiPicker.addEventListener("click", function(e) {
          if (e.target.tagName === "IMG") {
            var textArea = document.querySelector(".d-editor-input");
            if (!textArea) {
              alert("找不到输入框");
              return;
            }
            var emojiMarkdown = `![${e.target.name}|${e.target.alt}](${e.target.src})`;
            var startPos = textArea.selectionStart;
            var endPos = textArea.selectionEnd;
            textArea.value = textArea.value.substring(0, startPos) + emojiMarkdown + textArea.value.substring(endPos, textArea.value.length);
            var event = new Event("input", {
              bubbles: true,
              cancelable: true
            });
            textArea.dispatchEvent(event);
            emojiPicker.remove();
          }
        });
      });
    }
  }, 100);
  const _sfc_main$V = {};
  function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
    return null;
  }
  const ReplyTBEnjoy = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V]]);
  const _sfc_main$U = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        setInterval(() => {
          pangu.spacingElementByClassName("cooked");
          pangu.spacingElementByTagName("h1");
          document.addEventListener("DOMContentLoaded", () => {
            pangu.autoSpacingPage();
          });
          if ($(".pangutext").length < 1) {
            $(".save-or-cancel .cancel").before(`<span class="pangutext">混排优化</span>`);
            $(".pangutext").click(function() {
              const $textarea = $(".d-editor-input");
              let text = pangu.spacing($textarea.val());
              $textarea.focus();
              $textarea.val("");
              for (let i = 0; i < text.length; i++) {
                let char = text[i];
                $textarea.val($textarea.val() + char);
                let inputEvent = new Event("input", {
                  bubbles: true,
                  cancelable: true
                });
                $textarea[0].dispatchEvent(inputEvent);
                let keyEvent = new KeyboardEvent("keydown", {
                  key: char,
                  char,
                  keyCode: char.charCodeAt(0),
                  which: char.charCodeAt(0),
                  bubbles: true
                });
                $textarea[0].dispatchEvent(keyEvent);
              }
            });
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$P = { class: "item" };
  const _hoisted_2$O = { class: "tit" };
  const _hoisted_3$F = ["checked"];
  function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
      vue.createElementVNode("div", _hoisted_2$O, vue.toDisplayString($props.sort) + ". 是否开启中英文混排优化显示", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$F)
    ]);
  }
  const MenuPangu = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U]]);
  const _sfc_main$T = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"]
  };
  const _hoisted_1$O = { class: "item" };
  const _hoisted_2$N = { class: "tit" };
  const _hoisted_3$E = ["checked"];
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
      vue.createElementVNode("div", _hoisted_2$N, vue.toDisplayString($props.sort) + ". 是否显示等级查询按钮", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$E)
    ]);
  }
  const MenuLevelSearch = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T]]);
  const _sfc_main$S = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
     .user-menu-dropdown-wrapper .notification.read{display:none!important;}
     .user-menu-dropdown-wrapper .notification.unread{display:list-item!important;}
     </style>`);
      }
    }
  };
  const _hoisted_1$N = { class: "item" };
  const _hoisted_2$M = { class: "tit" };
  const _hoisted_3$D = ["checked"];
  function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
      vue.createElementVNode("div", _hoisted_2$M, vue.toDisplayString($props.sort) + ". 消息通知仅显示未读", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$D)
    ]);
  }
  const MenuShowUnread = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S]]);
  const _sfc_main$R = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>.spoiled,.spoiled *{filter:none!important;}</style>`);
      }
    }
  };
  const _hoisted_1$M = { class: "item" };
  const _hoisted_2$L = { class: "tit" };
  const _hoisted_3$C = ["checked"];
  function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
      vue.createElementVNode("div", _hoisted_2$L, vue.toDisplayString($props.sort) + ". 是否屏蔽模糊文字", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$C)
    ]);
  }
  const MenuFilterText = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R]]);
  const _sfc_main$Q = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
        .topic-post .cooked+hr,
        .topic-post .signature-img,
        .topic-post .signature-p{display:none}

        .topic-post.current-user-post .cooked+hr,
        .topic-post.current-user-post .signature-img,
        .topic-post.current-user-post .signature-p{display:block}
      </style>`);
      }
    }
  };
  const _hoisted_1$L = { class: "item" };
  const _hoisted_2$K = { class: "tit" };
  const _hoisted_3$B = ["checked"];
  function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
      vue.createElementVNode("div", _hoisted_2$K, vue.toDisplayString($props.sort) + ". 只看自己签名尾巴", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$B)
    ]);
  }
  const MenuLookmeSign = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q]]);
  const _sfc_main$P = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        $(".sidebar-custom-sections>div:nth-child(1)").after(`
        <div data-section-name="快速访问" class=" sidebar-section-wrapper sidebar-section--expanded">
          <div class="sidebar-section-header-wrapper sidebar-row" id="MenuQuickAccess">
            <button class="btn no-text sidebar-section-header sidebar-section-header-collapsable btn-transparent">
              <span class="sidebar-section-header-caret">
                <svg class="fa d-icon d-icon-angle-down svg-icon svg-string" xmlns="http://www.w3.org/2000/svg">
                  <use href="#angle-down"></use>
                </svg>
              </span>
              <span class="sidebar-section-header-text">快速访问</span>
            </button>
          </div>
          <ul class="sidebar-section-content">

            <li class="sidebar-section-link-wrapper">
              <a href="/bookmarks" class="sidebar-section-link sidebar-row">
                <span class="sidebar-section-link-prefix icon">
                  <svg class="fa d-icon d-icon-bookmark svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use href="#bookmark"></use></svg>
                </span>
                <span class="sidebar-section-link-content-text">我的书签</span>
              </a>
            </li>

          </ul>
        </div>
      `);
        $("#MenuQuickAccess").click(function() {
          $(this).find(".sidebar-section-header-caret").toggleClass("right");
          $(this).siblings(".sidebar-section-content").slideToggle();
        });
      }
    },
    created() {
      if (this.modelValue) {
        setInterval(() => {
          if ($("#MenuQuickAccess").length < 1) {
            this.init();
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$K = { class: "item" };
  const _hoisted_2$J = { class: "tit" };
  const _hoisted_3$A = ["checked"];
  function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
      vue.createElementVNode("div", _hoisted_2$J, vue.toDisplayString($props.sort) + ". 开启左侧快速访问", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$A)
    ]);
  }
  const MenuQuickAccess = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P]]);
  const _sfc_main$O = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    data() {
      return {
        options: [
          { value: "twitter", label: "twitter" },
          { value: "facebook_messenger", label: "facebook_messenger" },
          { value: "google", label: "google" },
          { value: "google_classic", label: "google_classic" },
          { value: "win10", label: "win10" }
        ]
      };
    },
    computed: {
      value1: {
        get() {
          return this.modelValue.value1;
        },
        set(newValue) {
          this.$emit("update:modelValue", { ...this.modelValue, value1: newValue });
        }
      },
      value2: {
        get() {
          return this.modelValue.value2;
        },
        set(newValue) {
          this.$emit("update:modelValue", { ...this.modelValue, value2: newValue });
        }
      }
    },
    methods: {
      handleChange() {
        this.toggleEmojiStyle();
      },
      toggleEmojiStyle() {
        if (this.value1) {
          this.replaceEmojiStyle();
          this.initObserver();
        } else {
          this.observer && this.observer.disconnect();
        }
      },
      replaceEmojiStyle() {
        const imgs = document.querySelectorAll("img");
        imgs.forEach(this.updateImageSrc);
      },
      updateImageSrc(img) {
        const applePath = "images/emoji/apple";
        if (img.src.includes(applePath)) {
          img.src = img.src.replace(applePath, `images/emoji/${this.value2}`);
        }
      },
      processMutations(mutations) {
        mutations.forEach((mutation) => {
          mutation.addedNodes.forEach((node) => {
            if (node.nodeType === 1) {
              if (node.tagName === "IMG") {
                this.updateImageSrc(node);
              } else if (node.querySelectorAll) {
                node.querySelectorAll("img").forEach(this.updateImageSrc);
              }
            }
          });
          if (mutation.type === "attributes" && mutation.target.tagName === "IMG") {
            this.updateImageSrc(mutation.target);
          }
        });
      },
      initObserver() {
        this.observer = new MutationObserver(this.processMutations);
        this.observer.observe(document.body, {
          childList: true,
          subtree: true,
          attributes: true,
          attributeFilter: ["src"]
        });
      }
    },
    mounted() {
      if (this.value1) {
        this.toggleEmojiStyle();
      }
    },
    beforeDestroy() {
      this.observer && this.observer.disconnect();
    }
  };
  const _hoisted_1$J = { class: "item" };
  const _hoisted_2$I = { class: "tit" };
  const _hoisted_3$z = ["value"];
  function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
      vue.createElementVNode("div", _hoisted_2$I, [
        vue.createTextVNode(vue.toDisplayString($props.sort) + ". 切换论坛表情风格 ", 1),
        vue.withDirectives(vue.createElementVNode("select", {
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value2 = $event)
        }, [
          (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.options, (item) => {
            return vue.openBlock(), vue.createElementBlock("option", {
              value: item.value,
              key: item.value
            }, vue.toDisplayString(item.label), 9, _hoisted_3$z);
          }), 128))
        ], 512), [
          [vue.vModelSelect, $options.value2]
        ])
      ]),
      vue.withDirectives(vue.createElementVNode("input", {
        type: "checkbox",
        "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $options.value1 = $event),
        onChange: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args))
      }, null, 544), [
        [vue.vModelCheckbox, $options.value1]
      ])
    ]);
  }
  const MenureplaceEmojiStyle = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O], ["__scopeId", "data-v-d780d688"]]);
  const _sfc_main$N = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"]
  };
  const _hoisted_1$I = { class: "item" };
  const _hoisted_2$H = { class: "tit" };
  const _hoisted_3$y = ["checked"];
  function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
      vue.createElementVNode("div", _hoisted_2$H, vue.toDisplayString($props.sort) + ". 快速打开 Shared(需提前解锁 Shared)", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$y)
    ]);
  }
  const MenuShowAI = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N]]);
  const _sfc_main$M = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        setInterval(() => {
          if ($(".replyja").length < 1) {
            $("#reply-control .save-or-cancel .create").after(
              `<button class="btn btn-default replyja" style="margin-left:15px;" type="button">ja 字体</button>`
            );
            $(".replyja").click(function() {
              let $textarea = $(".d-editor-textarea-wrapper textarea");
              let text = `<span lang="ja">

${$(".d-editor-input").val()}

</span>`;
              $(".d-editor-textarea-wrapper textarea").val("");
              $textarea.focus();
              for (let i = 0; i < text.length; i++) {
                let char = text[i];
                $textarea.val($textarea.val() + char);
                let inputEvent = new Event("input", {
                  bubbles: true,
                  cancelable: true
                });
                $textarea[0].dispatchEvent(inputEvent);
                let keyEvent = new KeyboardEvent("keydown", {
                  key: char,
                  char,
                  keyCode: char.charCodeAt(0),
                  which: char.charCodeAt(0),
                  bubbles: true
                });
                $textarea[0].dispatchEvent(keyEvent);
              }
            });
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$H = { class: "item" };
  const _hoisted_2$G = { class: "tit" };
  const _hoisted_3$x = ["checked"];
  function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
      vue.createElementVNode("div", _hoisted_2$G, vue.toDisplayString($props.sort) + ". 编辑器切换 ja 字体", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$x)
    ]);
  }
  const MenuEditorJa = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]]);
  const _sfc_main$L = {
    props: {
      value: {
        type: Boolean,
        default: false
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        localChecked: this.value
      };
    },
    watch: {
      value(newValue) {
        this.localChecked = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.localChecked);
      }
    },
    created() {
      if (this.localChecked) {
        setInterval(() => {
          if ($(".created_order").length < 1) {
            $("#navigation-bar").prepend(
              `<li title="最新创建" class="latest ember-view created_order"><a href="/latest?order=created">最新创建</a></li>`
            );
            $(".created_order").click(function() {
              setTimeout(() => {
                $("#navigation-bar>li").removeClass("active");
                $(this).addClass("active");
              }, 500);
            });
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$G = { class: "item" };
  const _hoisted_2$F = { class: "tit" };
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
      vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString($props.sort) + ". 首页新增按创建时间排序", 1),
      vue.withDirectives(vue.createElementVNode("input", {
        type: "checkbox",
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked = $event),
        onChange: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args))
      }, null, 544), [
        [vue.vModelCheckbox, $data.localChecked]
      ])
    ]);
  }
  const MenuCreatedOrder = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L]]);
  const _sfc_main$K = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $(window).on("scroll", function() {
          if ($(window).scrollTop() >= 250) {
            $(".navigation-container").addClass("is-active");
          } else {
            $(".navigation-container").removeClass("is-active");
          }
        });
      }
    }
  };
  const _hoisted_1$F = { class: "item" };
  const _hoisted_2$E = { class: "tit" };
  const _hoisted_3$w = ["checked"];
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
      vue.createElementVNode("div", _hoisted_2$E, vue.toDisplayString($props.sort) + ". 开启列表页导航栏浮动", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$w)
    ]);
  }
  const MenuStickyNav = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K]]);
  const _sfc_main$J = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      async init() {
        const id = $(".post-stream .topic-post:last-child").find("article").attr("data-topic-id");
        let currentId = parseInt(id) + 1;
        const maxAttempts = 10;
        const checkPageExists = async (idToCheck) => {
          const newUrl = `/t/topic/${idToCheck}`;
          try {
            const response = await fetch(newUrl);
            if (response.ok) {
              this.$messageToast("正在跳转下一个帖子!");
              window.location.href = newUrl;
              return true;
            } else {
              return false;
            }
          } catch (error) {
            console.error("请求出错:", error);
            this.$messageToast("请求出错,请稍后再试。");
            return false;
          }
        };
        for (let attempts = 0; attempts < maxAttempts; attempts++) {
          const exists = await checkPageExists(currentId);
          if (exists) {
            break;
          }
          currentId++;
        }
        if (currentId === parseInt(id) + 1 + maxAttempts) {
          this.$messageToast("已是最新帖子!");
        }
      }
    },
    created() {
      if (this.modelValue) {
        let lastKeyTime = 0;
        const doubleClickTime = 300;
        document.addEventListener("keydown", (event) => {
          const activeElement = document.activeElement;
          if (activeElement && activeElement.classList.contains("d-editor-input")) {
            return;
          }
          if (event.key === "ArrowRight") {
            const currentTime = Date.now();
            if (currentTime - lastKeyTime <= doubleClickTime) {
              this.$messageToast("正在检测中...");
              this.init();
            }
            lastKeyTime = currentTime;
          }
        });
      }
    }
  };
  const _hoisted_1$E = { class: "item" };
  const _hoisted_2$D = { class: "tit" };
  const _hoisted_3$v = /* @__PURE__ */ vue.createElementVNode("kbd", null, "→", -1);
  const _hoisted_4$d = ["checked"];
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
      vue.createElementVNode("div", _hoisted_2$D, [
        vue.createTextVNode(vue.toDisplayString($props.sort) + ". 开启快速打开下一个帖子(快捷键:双击 ", 1),
        _hoisted_3$v,
        vue.createTextVNode(")")
      ]),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_4$d)
    ]);
  }
  const MenuNextPosts = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J]]);
  const _sfc_main$I = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
       .quote-button .quote-sharing{display:none!important}
      </style>`);
      }
    }
  };
  const _hoisted_1$D = { class: "item" };
  const _hoisted_2$C = { class: "tit" };
  const _hoisted_3$u = ["checked"];
  function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
      vue.createElementVNode("div", _hoisted_2$C, vue.toDisplayString($props.sort) + ". 禁用选中文字分享功能", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$u)
    ]);
  }
  const MenuSelectedShare = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I]]);
  const _sfc_main$H = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        setInterval(() => {
          $(".cooked iframe, .cooked video").each(function() {
            const $element = $(this);
            let src = $element.attr("src");
            if (src) {
              if (!src.includes("autoplay=false")) {
                if (src.includes("autoplay=")) {
                  src = src.replace(/autoplay=[^&]*/, "autoplay=false");
                } else {
                  const separator = src.includes("?") ? "&" : "?";
                  src += `${separator}autoplay=false`;
                }
                $element.attr("src", src);
              }
            }
          });
        }, 1e3);
      }
    }
  };
  const _hoisted_1$C = { class: "item" };
  const _hoisted_2$B = { class: "tit" };
  const _hoisted_3$t = ["checked"];
  function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
      vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString($props.sort) + ". 禁用视频自动播放", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$t)
    ]);
  }
  const MenuDisableAutoplay = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H]]);
  const _sfc_main$G = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"]
  };
  const _hoisted_1$B = { class: "item" };
  const _hoisted_2$A = { class: "tit" };
  const _hoisted_3$s = ["checked"];
  function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
      vue.createElementVNode("div", _hoisted_2$A, vue.toDisplayString($props.sort) + ". 是否显示回复悬浮按钮", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$s)
    ]);
  }
  const MenuShowRepltBtn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G]]);
  const _sfc_main$F = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    methods: {
      init() {
        $(".topic-list .main-link a.title").each(function() {
          const id = $(this).attr("data-topic-id");
          if ($(this).parents(".link-top-line").find(".donottopic-btn").length < 1) {
            $(this).parents(".link-top-line").append(
              `<button class="btn btn-icon-text btn-default donottopic-btn donottopic-${id}" data-id="${id}">免打扰</button>`
            );
          }
        });
        function getCSRFToken() {
          return document.querySelector('meta[name="csrf-token"]').getAttribute("content");
        }
        $(document).off("click", ".donottopic-btn").on("click", ".donottopic-btn", function() {
          const formData = new FormData();
          formData.append("notification_level", 0);
          const topicId = $(this).attr("data-id");
          return new Promise((resolve, reject) => {
            fetch(`https://linux.do/t/${topicId}/notifications`, {
              method: "POST",
              body: formData,
              headers: {
                "X-CSRF-Token": getCSRFToken(),
                // CSRF 令牌
                "X-Requested-With": "XMLHttpRequest"
                // 表明这是 XMLHttpRequest 请求
              },
              credentials: "include"
              // 附带 cookie
            }).then((response) => {
              if (!response.ok) {
                reject(`HTTP error! status: ${response.status}`);
              }
              return response.json();
            }).then(() => {
              $(this).parents(".topic-list-item").remove();
              const messageElement = $(
                `<div class="messageToast-text">帖子已设为免打扰!</div>`
              );
              $("#messageToast").append(messageElement);
              setTimeout(() => {
                messageElement.remove();
              }, 3e3);
              resolve();
            }).catch((error) => {
              console.log(error);
            });
          });
        });
      }
    },
    created() {
      if (this.modelValue) {
        setInterval(() => {
          this.init();
        }, 1e3);
      }
    }
  };
  const _hoisted_1$A = { class: "item" };
  const _hoisted_2$z = { class: "tit" };
  const _hoisted_3$r = ["checked"];
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
      vue.createElementVNode("div", _hoisted_2$z, vue.toDisplayString($props.sort) + ". 列表快速免打扰帖子", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$r)
    ]);
  }
  const MenuDonotTopic = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]);
  const _sfc_main$E = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        setTimeout(() => {
          var svgElement = $('button[title="切换颜色主题"]').find("svg");
          var currentTime = /* @__PURE__ */ new Date();
          var currentHour = currentTime.getHours();
          if (currentHour >= 18 || currentHour < 6) {
            console.log("现在是夜里");
            if (svgElement.hasClass("d-icon-moon")) {
              $('button[title="切换颜色主题"]')[0].click();
            }
          } else {
            console.log("现在不是夜里");
            if (svgElement.hasClass("d-icon-sun")) {
              $('button[title="切换颜色主题"]')[0].click();
            }
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$z = { class: "item" };
  const _hoisted_2$y = { class: "tit" };
  const _hoisted_3$q = ["checked"];
  function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
      vue.createElementVNode("div", _hoisted_2$y, vue.toDisplayString($props.sort) + ". 是否自动切换黑夜模式", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$q)
    ]);
  }
  const MenuAutoDark = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]);
  const _sfc_main$D = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
      .d-editor-input::placeholder{opacity:0;}
      </style>`);
      }
    }
  };
  const _hoisted_1$y = { class: "item" };
  const _hoisted_2$x = { class: "tit" };
  const _hoisted_3$p = ["checked"];
  function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
      vue.createElementVNode("div", _hoisted_2$x, vue.toDisplayString($props.sort) + ". 是否隐藏输入框提示文字", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$p)
    ]);
  }
  const MenuHiddenPlaceholder = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D]]);
  const _sfc_main$C = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        try {
          require("discourse/routes/topic").default.disableReplaceState = true;
          console.log("disableReplaceState 已成功设置为 true");
        } catch (e) {
          console.error("设置 disableReplaceState 失败:", e);
        }
      }
    }
  };
  const _hoisted_1$x = { class: "item" };
  const _hoisted_2$w = { class: "tit" };
  const _hoisted_3$o = ["checked"];
  function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
      vue.createElementVNode("div", _hoisted_2$w, vue.toDisplayString($props.sort) + ". 是否禁用浏览帖子时 URL 更新楼层数", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$o)
    ]);
  }
  const MenuDisableReplaceState = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C]]);
  const _sfc_main$B = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue.enable) {
        $("head").append(`<style>
        .topic-list-data.posters { width: max-content !important; }
        .topic-list-content.right { margin-left:0 !important; }

        .topic-list-data.posters ${this.modelValue.showAuthor ? "> *:not(:first-child)" : ""},
        .topic-list-avatar.pull-left  { display:none !important }
      </style>`);
      }
    }
  };
  const _hoisted_1$w = { class: "item" };
  const _hoisted_2$v = { class: "tit" };
  const _hoisted_3$n = ["checked"];
  const _hoisted_4$c = ["checked"];
  function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
      vue.createElementVNode("div", _hoisted_2$v, [
        vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否移除话题列表上的头像(是否保留发帖人 ", 1),
        vue.createElementVNode("input", {
          type: "checkbox",
          checked: $props.modelValue.showAuthor,
          onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", {
            enable: $props.modelValue.enable,
            showAuthor: $event.target.checked
          }))
        }, null, 40, _hoisted_3$n),
        vue.createTextVNode(" ) ")
      ]),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue.enable,
        onChange: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", {
          enable: $event.target.checked,
          showAuthor: $props.modelValue.showAuthor
        }))
      }, null, 40, _hoisted_4$c)
    ]);
  }
  const MenuRemovePostAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B]]);
  const _sfc_main$A = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"]
  };
  const _hoisted_1$v = { class: "item" };
  const _hoisted_2$u = { class: "tit" };
  const _hoisted_3$m = ["checked"];
  function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
      vue.createElementVNode("div", _hoisted_2$u, vue.toDisplayString($props.sort) + ". 是否显示最热帖子排行榜", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$m)
    ]);
  }
  const MenuHotRankingList = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]);
  const _sfc_main$z = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"]
  };
  const _hoisted_1$u = { class: "item" };
  const _hoisted_2$t = { class: "tit" };
  const _hoisted_3$l = ["checked"];
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
      vue.createElementVNode("div", _hoisted_2$t, vue.toDisplayString($props.sort) + ". 显示返回顶部按钮", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$l)
    ]);
  }
  const MenuBackToTop = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]);
  const _sfc_main$y = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    data() {
      return {
        isFocusedOnInput: false
        // 标记当前是否聚焦在输入框上
      };
    },
    created() {
      if (this.modelValue) {
        window.addEventListener("keydown", this.handleKeyDown);
        window.addEventListener("focus", this.handleFocus, true);
        window.addEventListener("blur", this.handleBlur, true);
      }
    },
    beforeUnmount() {
      window.removeEventListener("keydown", this.handleKeyDown);
      window.removeEventListener("focus", this.handleFocus, true);
      window.removeEventListener("blur", this.handleBlur, true);
    },
    watch: {
      modelValue(newValue) {
        if (newValue) {
          window.addEventListener("keydown", this.handleKeyDown);
          window.addEventListener("focus", this.handleFocus, true);
          window.addEventListener("blur", this.handleBlur, true);
        } else {
          window.removeEventListener("keydown", this.handleKeyDown);
          window.removeEventListener("focus", this.handleFocus, true);
          window.removeEventListener("blur", this.handleBlur, true);
        }
      }
    },
    methods: {
      handleKeyDown(event) {
        if (this.isFocusedOnInput) return;
        if (event.key.toLowerCase() === "q") {
          const parentSelector = "#post_1";
          const button = document.querySelector(
            `${parentSelector} .btn-toggle-reaction-like[title="点赞此帖子"]`
          );
          if (button) {
            button.click();
            this.$messageToast("已点赞!");
          } else {
            console.log("按钮未找到");
          }
        }
      },
      handleFocus(event) {
        if (event.target.tagName.toLowerCase() === "input" || event.target.tagName.toLowerCase() === "textarea") {
          this.isFocusedOnInput = true;
        }
      },
      handleBlur(event) {
        if (event.target.tagName.toLowerCase() === "input" || event.target.tagName.toLowerCase() === "textarea") {
          this.isFocusedOnInput = false;
        }
      }
    }
  };
  const _hoisted_1$t = { class: "item" };
  const _hoisted_2$s = { class: "tit" };
  const _hoisted_3$k = /* @__PURE__ */ vue.createElementVNode("kbd", null, "Q", -1);
  const _hoisted_4$b = ["checked"];
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
      vue.createElementVNode("div", _hoisted_2$s, [
        vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否开启快捷给主题点赞 (快捷键:", 1),
        _hoisted_3$k,
        vue.createTextVNode(")")
      ]),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_4$b)
    ]);
  }
  const MenuQuickLikeTopic = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]);
  const _sfc_main$x = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    data() {
      return {
        isFocusedOnInput: false
        // 标记当前是否聚焦在输入框上
      };
    },
    created() {
      if (this.modelValue) {
        window.addEventListener("keydown", this.handleKeyDown);
        window.addEventListener("focus", this.handleFocus, true);
        window.addEventListener("blur", this.handleBlur, true);
      }
    },
    beforeUnmount() {
      window.removeEventListener("keydown", this.handleKeyDown);
      window.removeEventListener("focus", this.handleFocus, true);
      window.removeEventListener("blur", this.handleBlur, true);
    },
    watch: {
      modelValue(newValue) {
        if (newValue) {
          window.addEventListener("keydown", this.handleKeyDown);
          window.addEventListener("focus", this.handleFocus, true);
          window.addEventListener("blur", this.handleBlur, true);
        } else {
          window.removeEventListener("keydown", this.handleKeyDown);
          window.removeEventListener("focus", this.handleFocus, true);
          window.removeEventListener("blur", this.handleBlur, true);
        }
      }
    },
    methods: {
      handleKeyDown(event) {
        if (this.isFocusedOnInput) return;
        if (event.altKey && event.key.toLowerCase() === "i") {
          const selection = window.getSelection().toString().trim();
          if (!selection) {
            this.showNotification("请先选中文本!", "warning");
            return;
          }
          try {
            const context = document.createElement("canvas").getContext("2d");
            const lines = this.wrapText(context, selection, 800);
            const { canvas, context: finalContext, lineHeight } = this.setupCanvas(lines);
            this.drawImage(canvas, finalContext, lines, lineHeight);
            canvas.toBlob(async (blob) => {
              await navigator.clipboard.write([new ClipboardItem({ "image/png": blob })]);
              this.showNotification("图片已复制到剪贴板!", "success");
            }, "image/png");
          } catch (error) {
            console.error("转换失败:", error);
            this.showNotification("转换失败,请检查权限或浏览器兼容性。", "error");
          }
        }
      },
      handleFocus(event) {
        if (event.target.tagName.toLowerCase() === "input" || event.target.tagName.toLowerCase() === "textarea") {
          this.isFocusedOnInput = true;
        }
      },
      handleBlur(event) {
        if (event.target.tagName.toLowerCase() === "input" || event.target.tagName.toLowerCase() === "textarea") {
          this.isFocusedOnInput = false;
        }
      },
      wrapText(context, text, maxWidth) {
        const characters = Array.from(text);
        let lines = [];
        let currentLine = "";
        for (let char of characters) {
          const testLine = currentLine + char;
          const metrics = context.measureText(testLine);
          if (metrics.width > maxWidth - 40) {
            lines.push(currentLine);
            currentLine = char;
          } else {
            currentLine = testLine;
          }
        }
        if (currentLine) {
          lines.push(currentLine);
        }
        return lines;
      },
      setupCanvas(lines) {
        const canvas = document.createElement("canvas");
        const context = canvas.getContext("2d");
        context.font = `16px Arial, "Microsoft YaHei", sans-serif`;
        const lineHeight = 24;
        const width = 800;
        const height = lines.length * lineHeight + 40;
        const scale = window.devicePixelRatio || 1;
        canvas.width = width * scale;
        canvas.height = height * scale;
        canvas.style.width = width + "px";
        canvas.style.height = height + "px";
        context.scale(scale, scale);
        return { canvas, context, lineHeight };
      },
      drawImage(canvas, context, lines, lineHeight) {
        context.fillStyle = "#ffffff";
        context.fillRect(0, 0, canvas.width, canvas.height);
        context.fillStyle = "#333333";
        context.font = '16px Arial, "Microsoft YaHei", sans-serif';
        context.textBaseline = "middle";
        lines.forEach((line, i) => {
          const y = 20 + (i + 0.5) * lineHeight;
          context.fillText(line, 20, y);
        });
      },
      showNotification(message, type2 = "info") {
        const notification = document.createElement("div");
        notification.style.cssText = `
          position: fixed;
          top: 20px;
          right: 20px;
          padding: 12px 24px;
          background: ${type2 === "success" ? "#4caf50" : type2 === "warning" ? "#ff9800" : "#f44336"};
          color: white;
          border-radius: 4px;
          font-size: 14px;
          z-index: 9999;
          box-shadow: 0 2px 5px rgba(0,0,0,0.2);
          animation: fadeInOut 3s ease-in-out;
        `;
        notification.textContent = message;
        document.body.appendChild(notification);
        setTimeout(() => {
          notification.remove();
        }, 3e3);
      }
    }
  };
  const _hoisted_1$s = { class: "item" };
  const _hoisted_2$r = { class: "tit" };
  const _hoisted_3$j = /* @__PURE__ */ vue.createElementVNode("kbd", null, "Alt", -1);
  const _hoisted_4$a = /* @__PURE__ */ vue.createElementVNode("kbd", null, "I", -1);
  const _hoisted_5$8 = ["checked"];
  function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
      vue.createElementVNode("div", _hoisted_2$r, [
        vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否开启快捷将选中文本转为图片并复制 (快捷键: ", 1),
        _hoisted_3$j,
        vue.createTextVNode("+ "),
        _hoisted_4$a,
        vue.createTextVNode(") ")
      ]),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_5$8)
    ]);
  }
  const MenuCopyTextAsImage = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]);
  const _sfc_main$w = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
      .sidebar-section-link-suffix.icon.unread,
      .topic-post-badges{display:none !important}
      </style>`);
      }
    }
  };
  const _hoisted_1$r = { class: "item" };
  const _hoisted_2$q = { class: "tit" };
  const _hoisted_3$i = ["checked"];
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
      vue.createElementVNode("div", _hoisted_2$q, vue.toDisplayString($props.sort) + ". 是否隐藏新消息小蓝点(除帖子未读小蓝点)", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$i)
    ]);
  }
  const MenuHideNewBluedot = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w]]);
  const _sfc_main$v = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        setInterval(() => {
          $(".post-avatar .avatar").each(function() {
            const currentSrc = $(this).attr("src");
            if (currentSrc.endsWith(".gif")) {
              $(this).attr("src", currentSrc.replace(".gif", ".png"));
            }
          });
        }, 1e3);
      }
    }
  };
  const _hoisted_1$q = { class: "item" };
  const _hoisted_2$p = { class: "tit" };
  const _hoisted_3$h = ["checked"];
  function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
      vue.createElementVNode("div", _hoisted_2$p, vue.toDisplayString($props.sort) + ". gif 头像转静态图片(不喜花里胡哨的佬友可以开启)", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$h)
    ]);
  }
  const MenuGifToPng = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]);
  const _sfc_main$u = {
    props: ["modelValue", "sort"],
    emits: ["update:modelValue"],
    created() {
      if (this.modelValue) {
        $("head").append(`<style>
      .search-banner{display:none!important;}
      #main-outlet{padding-top:1.5em!important;}
      </style>`);
      }
    }
  };
  const _hoisted_1$p = { class: "item" };
  const _hoisted_2$o = { class: "tit" };
  const _hoisted_3$g = ["checked"];
  function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
      vue.createElementVNode("div", _hoisted_2$o, vue.toDisplayString($props.sort) + ". 是否隐藏首页 banner 区域", 1),
      vue.createElementVNode("input", {
        type: "checkbox",
        checked: $props.modelValue,
        onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
      }, null, 40, _hoisted_3$g)
    ]);
  }
  const MenuHideHomeBanner = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]);
  const _sfc_main$t = {
    props: {
      value: {
        type: String,
        default: ""
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        textarea: this.value
      };
    },
    watch: {
      value(newValue) {
        this.textarea = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.textarea);
      }
    },
    created() {
      if (this.textarea) {
        $("body").after(`<style>${this.textarea}</style>`);
      }
    }
  };
  const _hoisted_1$o = { class: "item" };
  const _hoisted_2$n = { class: "tit" };
  function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("div", _hoisted_1$o, [
        vue.createElementVNode("div", _hoisted_2$n, vue.toDisplayString($props.sort) + ". 自定义 CSS(支持 import 引入第三方样式文件) ", 1)
      ]),
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event),
        onInput: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args)),
        placeholder: "body{font-size:16px;}"
      }, "\r\n  ", 544), [
        [vue.vModelText, $data.textarea]
      ])
    ], 64);
  }
  const MenuOtherCss = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-e33f1de9"]]);
  const _sfc_main$s = {
    props: {
      value: {
        type: String,
        default: ""
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        textarea: this.value
      };
    },
    watch: {
      value(newValue) {
        this.textarea = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.textarea);
      },
      init() {
        $(".d-header .title a").html(`<img src="${this.textarea}">`);
      }
    },
    created() {
      if (this.textarea && this.textarea != "") {
        this.init();
      }
    }
  };
  const _hoisted_1$n = { class: "item" };
  const _hoisted_2$m = { class: "tit" };
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("div", _hoisted_1$n, [
        vue.createElementVNode("div", _hoisted_2$m, vue.toDisplayString($props.sort) + ". 自定义论坛 logo", 1)
      ]),
      vue.withDirectives(vue.createElementVNode("input", {
        type: "text",
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event),
        onInput: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args)),
        placeholder: "输入图片链接"
      }, null, 544), [
        [vue.vModelText, $data.textarea]
      ])
    ], 64);
  }
  const MenuLogoUrl = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-cb743585"]]);
  const _sfc_main$r = {
    props: {
      value: {
        type: String,
        default: ""
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        textarea: this.value
      };
    },
    watch: {
      value(newValue) {
        this.textarea = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.textarea);
      },
      init() {
        this.list = this.textarea.split(/\r?\n/) || [];
        if ($(".createreply").length < 1) {
          $(".timeline-container .topic-timeline").append(
            `<div class="createreply" style="margin-top:6.4rem;"></div>`
          );
          this.list.forEach(function(item) {
            var $li = $(
              '<button class="btn btn-default create reply-to-post no-text btn-icon" type="button"></button>'
            ).text(item);
            $(".createreply").append($li);
          });
          $(".createreply button").click(function() {
            if ($(".timeline-footer-controls button.create").length != 0) {
              $(".timeline-footer-controls button.create")[0].click();
            }
            if ($("#topic-footer-buttons .topic-footer-main-buttons button.create").length != 0) {
              $(
                "#topic-footer-buttons .topic-footer-main-buttons button.create"
              )[0].click();
            }
            setTimeout(() => {
              let $textarea = $(".d-editor-textarea-wrapper textarea");
              let text = $(this).html();
              $textarea.focus();
              for (let i = 0; i < text.length; i++) {
                let char = text[i];
                $textarea.val($textarea.val() + char);
                let inputEvent = new Event("input", {
                  bubbles: true,
                  cancelable: true
                });
                $textarea[0].dispatchEvent(inputEvent);
                let keyEvent = new KeyboardEvent("keydown", {
                  key: char,
                  char,
                  keyCode: char.charCodeAt(0),
                  which: char.charCodeAt(0),
                  bubbles: true
                });
                $textarea[0].dispatchEvent(keyEvent);
              }
            }, 1e3);
          });
        }
      }
    },
    created() {
      if (this.textarea) {
        setInterval(() => {
          this.init();
        }, 1e3);
      }
    }
  };
  const _hoisted_1$m = { class: "item" };
  const _hoisted_2$l = { class: "tit" };
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("div", _hoisted_1$m, [
        vue.createElementVNode("div", _hoisted_2$l, vue.toDisplayString($props.sort) + ". 自定义快捷回复(换行分隔)", 1)
      ]),
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event),
        onInput: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args)),
        placeholder: "前排围观支持一下\\n感谢分享大佬厉害啊\\n有点厉害支持~~"
      }, "\r\n  ", 544), [
        [vue.vModelText, $data.textarea]
      ])
    ], 64);
  }
  const MenuCreatereply = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r], ["__scopeId", "data-v-97d36adb"]]);
  const _sfc_main$q = {
    props: {
      value: {
        type: String,
        default: ""
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        textarea: this.value
      };
    },
    watch: {
      value(newValue) {
        this.textarea = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.textarea);
      },
      init() {
        this.list = this.textarea.split(",") || [];
        var self = this;
        $(".topic-list .topic-list-data.posters>a:nth-child(1)").filter((index, element) => {
          var user = $(element).attr("data-user-card");
          return self.list.indexOf(user) !== -1;
        }).parents("tr.topic-list-item").hide();
        $(".topic-post .full-name a").filter((index, element) => {
          var user = $(element).attr("data-user-card");
          return self.list.indexOf(user) !== -1;
        }).parents(".topic-post").hide();
      }
    },
    created() {
      if (this.textarea) {
        let pollinglength1 = 0;
        let pollinglength2 = 0;
        setInterval(() => {
          if (pollinglength1 != $(".topic-list-body tr").length) {
            pollinglength1 = $(".topic-list-body tr").length;
            this.init();
          }
          if (pollinglength2 != $(".post-stream .topic-post").length) {
            pollinglength2 = $(".post-stream .topic-post").length;
            this.init();
          }
        }, 1e3);
      }
    }
  };
  const _hoisted_1$l = { class: "item" };
  const _hoisted_2$k = { class: "tit" };
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("div", _hoisted_1$l, [
        vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString($props.sort) + ". 屏蔽指定用户(使用英文,分隔)", 1)
      ]),
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event),
        onInput: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args)),
        placeholder: "user1,user2,user3"
      }, "\r\n  ", 544), [
        [vue.vModelText, $data.textarea]
      ])
    ], 64);
  }
  const MenuBlockuserlist = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-7dffe7ad"]]);
  const _sfc_main$p = {
    props: {
      value: {
        type: String,
        default: ""
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        textarea: this.value
      };
    },
    watch: {
      value(newValue) {
        this.textarea = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.textarea);
      },
      init() {
        if (!this.textarea) return;
        const keywords = this.textarea.split(",").map((keyword) => keyword.trim()).filter(Boolean);
        if (keywords.length === 0) return;
        try {
          $(".topic-list .main-link .raw-topic-link>*").filter((index, element) => {
            const text = $(element).text();
            return keywords.some((keyword) => text.includes(keyword));
          }).parents("tr.topic-list-item").hide();
          $(".topic-list-item .discourse-tags a").filter((index, element) => {
            const text = $(element).text();
            return keywords.some((keyword) => text.includes(keyword));
          }).parents("tr.topic-list-item").hide();
          $(".topic-body .cooked").filter((index, element) => {
            const text = $(element).text();
            return keywords.some((keyword) => text.includes(keyword));
          }).parents(".topic-post").hide();
        } catch (error) {
          console.error("init 方法出错:", error);
        }
      }
    },
    created() {
      if (this.textarea) {
        let previousTopicListLength = 0;
        let previousPostStreamLength = 0;
        this.pollingInterval = setInterval(() => {
          try {
            const currentTopicListLength = $(".topic-list-body tr").length || 0;
            const currentPostStreamLength = $(".post-stream .topic-post").length || 0;
            if (previousTopicListLength !== currentTopicListLength) {
              previousTopicListLength = currentTopicListLength;
              this.init();
            }
            if (previousPostStreamLength !== currentPostStreamLength) {
              previousPostStreamLength = currentPostStreamLength;
              this.init();
            }
          } catch (error) {
            console.error("轮询逻辑出错:", error);
          }
        }, 1e3);
      }
    },
    beforeDestroy() {
      if (this.pollingInterval) {
        clearInterval(this.pollingInterval);
      }
    }
  };
  const _hoisted_1$k = { class: "item" };
  const _hoisted_2$j = { class: "tit" };
  function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("div", _hoisted_1$k, [
        vue.createElementVNode("div", _hoisted_2$j, vue.toDisplayString($props.sort) + ". 关键词屏蔽功能(使用英文,分隔)屏蔽包含关键字的话题标题、标签、回复 ", 1)
      ]),
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event),
        onInput: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args))
      }, " ", 544), [
        [vue.vModelText, $data.textarea]
      ])
    ], 64);
  }
  const MenuBlockKeyword = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-7877f446"]]);
  const _sfc_main$o = {
    props: {
      value: {
        type: Object,
        default: {
          value1: false,
          cate: "搞七捻三",
          days: "5"
        }
      },
      sort: {
        type: Number,
        required: true
      }
    },
    data() {
      return {
        localChecked: this.value
      };
    },
    watch: {
      value(newValue) {
        this.localChecked = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.localChecked);
      },
      // 过滤时间格式
      convertToTimestamp(dateStr) {
        const cleanedDateStr = dateStr.replace(/\s+/g, "");
        const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/;
        const dateMatch = cleanedDateStr.match(datePattern);
        if (dateMatch) {
          const year = parseInt(dateMatch[1], 10);
          const month = parseInt(dateMatch[2], 10) - 1;
          const day = parseInt(dateMatch[3], 10);
          const hours = parseInt(dateMatch[4], 10);
          const minutes = parseInt(dateMatch[5], 10);
          const date = new Date(year, month, day, hours, minutes);
          return date.getTime();
        }
        return null;
      },
      // 屏蔽指定分类、指定时间
      GetTimestamp() {
        if (!$(".nav-pills > li.nav-item_posted").hasClass("active") && !$(".nav-pills > li.nav-item_bookmarks").hasClass("active")) {
          if (this.localChecked.cate == "") {
            $(".topic-list .age").each((index, element) => {
              const str = $(element).attr("title");
              const match = str.match(/创建日期:([\s\S]*?)最新:/);
              if (match && match[1]) {
                const creationDate = match[1].trim();
                const timestamp = this.convertToTimestamp(creationDate);
                const days = Number(this.localChecked.days) * 864e5;
                if (Date.now() - timestamp > days) {
                  $(element).parents("tr.topic-list-item").remove();
                }
              }
            });
          } else {
            const cateArray = this.localChecked.cate.split(",").map((item) => item.trim());
            $(".badge-category__wrapper .badge-category__name").each((index, element) => {
              let htmlContent = $(element).html();
              htmlContent = htmlContent.replace(/,\s*Lv[1-3]/g, "");
              if (cateArray.includes(htmlContent.trim())) {
                $(element).parents("tr.topic-list-item").find(".age").each((index2, element2) => {
                  const str = $(element2).attr("title");
                  const match = str.match(/创建日期:([\s\S]*?)最新:/);
                  if (match && match[1]) {
                    const creationDate = match[1].trim();
                    const timestamp = this.convertToTimestamp(creationDate);
                    const days = Number(this.localChecked.days) * 864e5;
                    if (Date.now() - timestamp > days) {
                      $(element2).parents("tr.topic-list-item").remove();
                    }
                  }
                });
              }
            });
          }
        }
      }
    },
    created() {
      if (this.localChecked.value1) {
        let pollinglength1 = 0;
        setInterval(() => {
          if (pollinglength1 != $(".topic-list-body tr").length) {
            pollinglength1 = $(".topic-list-body tr").length;
            this.GetTimestamp();
          }
        }, 1e3);
      }
    }
  };
  const _withScopeId$6 = (n) => (vue.pushScopeId("data-v-ac149a76"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$j = {
    class: "item",
    style: { "border": "none" }
  };
  const _hoisted_2$i = { class: "tit" };
  const _hoisted_3$f = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.createElementVNode("p", null, "针对分类:留空对全部分类生效,多个分类用英文逗号【,】进行分隔", -1));
  function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("div", _hoisted_1$j, [
        vue.createElementVNode("div", _hoisted_2$i, [
          vue.createTextVNode(vue.toDisplayString($props.sort) + ". 屏蔽指定天数前的帖子 ", 1),
          vue.withDirectives(vue.createElementVNode("input", {
            type: "text",
            "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked.days = $event),
            placeholder: "默认天数 5"
          }, null, 512), [
            [vue.vModelText, $data.localChecked.days]
          ])
        ]),
        vue.withDirectives(vue.createElementVNode("input", {
          type: "checkbox",
          "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.localChecked.value1 = $event),
          onChange: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args))
        }, null, 544), [
          [vue.vModelCheckbox, $data.localChecked.value1]
        ])
      ]),
      vue.createElementVNode("div", null, [
        _hoisted_3$f,
        vue.withDirectives(vue.createElementVNode("textarea", {
          "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.localChecked.cate = $event),
          placeholder: "搞七捻三"
        }, null, 512), [
          [vue.vModelText, $data.localChecked.cate]
        ])
      ])
    ], 64);
  }
  const MenuShieldPosts = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-ac149a76"]]);
  const _sfc_main$n = {
    props: {
      value: {
        type: Array,
        default: []
      }
    },
    data() {
      return {
        tableData: this.value
      };
    },
    watch: {
      value(newValue) {
        this.tableData = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.tableData);
      },
      // 修改标签
      editTags(item) {
        var tags = prompt(`对 @${item.name} 修改标签`, item.tags);
        if (tags == null) {
          return item.tags;
        }
        if (tags != item.tags) {
          var existingPerson = this.tableData.find((items) => items.name === item.name);
          if (existingPerson) {
            existingPerson.tags = tags;
          } else {
            this.tableData.push({ name: person, tags });
          }
          let settingData1 = localStorage.getItem("linxudoscriptssetting");
          settingData1 = JSON.parse(settingData1);
          settingData1.usertags = this.tableData;
          localStorage.setItem("linxudoscriptssetting", JSON.stringify(settingData1));
          this.$emit("update:value", this.tableData);
        }
      },
      delTags(item) {
        var del = confirm("是否确认删除!");
        if (del == true) {
          this.tableData.splice(item, 1);
          let settingData1 = localStorage.getItem("linxudoscriptssetting");
          settingData1 = JSON.parse(settingData1);
          settingData1.usertags = this.tableData;
          localStorage.setItem("linxudoscriptssetting", JSON.stringify(settingData1));
          this.$emit("update:value", this.tableData);
        }
      }
    },
    created() {
      let settingData = localStorage.getItem("linxudoscriptssetting");
      settingData = JSON.parse(settingData);
      if (!settingData.usertags) {
        settingData.usertags = [];
      }
      settingData.usertags = settingData.usertags.filter((user) => user.tags);
      this.tableData = settingData.usertags;
      setInterval(() => {
        if ($(".addusertag").length < 1) {
          $(".usercard-controls").append(
            `<li><button class="btn addusertag" type="button">添加用户标签</button></li>`
          );
          $(".addusertag").click(function() {
            var person2 = $(".user-card .user-profile-link").attr("href").replace("/u/", "");
            var tags = prompt(`对 @${person2} 设置标签(保存后刷新页面)`, "");
            if (tags == null) {
              return false;
            }
            var lowerCasePerson = person2.toLowerCase();
            var existingPerson = settingData.usertags.find(
              (item) => item.name.toLowerCase() === lowerCasePerson
            );
            if (existingPerson) {
              existingPerson.tags = tags;
            } else {
              settingData.usertags.push({ name: person2, tags });
            }
            localStorage.setItem("linxudoscriptssetting", JSON.stringify(settingData));
          });
        }
        $(".topic-post").each(function() {
          const username = $(this).find(".first a").attr("data-user-card").toLowerCase();
          const userTag = settingData.usertags.find((user) => user.name === username);
          if (userTag) {
            if ($(this).find(".linxudoscripts-tag").length < 1) {
              $(this).find(".names").append(`<span class="linxudoscripts-tag"># ${userTag.tags}</span>`);
            }
          }
        });
      }, 1e3);
    }
  };
  const _hoisted_1$i = { class: "menu-table" };
  const _hoisted_2$h = /* @__PURE__ */ vue.createElementVNode("thead", null, [
    /* @__PURE__ */ vue.createElementVNode("tr", null, [
      /* @__PURE__ */ vue.createElementVNode("th", null, "用户名"),
      /* @__PURE__ */ vue.createElementVNode("th", null, "标签"),
      /* @__PURE__ */ vue.createElementVNode("th", null, "操作")
    ])
  ], -1);
  const _hoisted_3$e = ["onClick"];
  const _hoisted_4$9 = ["onClick"];
  function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", null, [
      vue.createElementVNode("table", _hoisted_1$i, [
        _hoisted_2$h,
        vue.createElementVNode("tbody", null, [
          (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.tableData, (item) => {
            return vue.openBlock(), vue.createElementBlock("tr", {
              key: item.name
            }, [
              vue.createElementVNode("td", null, vue.toDisplayString(item.name), 1),
              vue.createElementVNode("td", null, vue.toDisplayString(item.tags), 1),
              vue.createElementVNode("td", null, [
                vue.createElementVNode("span", {
                  class: "span",
                  onClick: ($event) => $options.editTags(item)
                }, "修改", 8, _hoisted_3$e),
                vue.createElementVNode("span", {
                  class: "span",
                  onClick: ($event) => $options.delTags(item),
                  style: { "color": "#e00" }
                }, "删除!", 8, _hoisted_4$9)
              ])
            ]);
          }), 128))
        ])
      ])
    ]);
  }
  const UserTags = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
  const _sfc_main$m = {
    props: {
      value: {
        type: Object,
        default: {
          value1: false,
          value2: false,
          title: false,
          btn: true,
          apikey: "",
          baseurl: "https://api.openai.com",
          full_url: "/v1/chat/completions",
          model: "gpt-4o-mini",
          prompt: "根据以下帖子内容进行总结,请使用 markdown 格式返回回答,没有字数限制,但要求文字精炼,简介准确,语言要求返回简体中文,并且进行中英文混排优化。可以通过编号列表(1,2,3)列出核心要点。注意不要输出标题,例如:核心要点总结,帖子总结等,直接输出文本段落。",
          prompt1: "根据以下帖子内容,帮我给作者写一条回复,简短,表明我的观点,用口语回复,不需要很正式。您可以通过讨论的方式进行回复,这将有助于引导其他用户或作者进行互动。",
          prompt2: "根据以下帖子内容,生成一个合适的标题用于社交论坛发布使用,格式要求:不要书名号或其他符号,只需要一句纯文本。尽量精简到 15 字以内,如果字数不够表达主题,可以适当多生成几个字。"
        }
      }
    },
    data() {
      return {
        localChecked: this.value
      };
    },
    watch: {
      value(newValue) {
        this.localChecked = newValue;
      }
    },
    methods: {
      handleChange() {
        this.$emit("update:value", this.localChecked);
      },
      getTopicUrl(url) {
        const regex = /^(https:\/\/linux\.do\/t\/topic\/\d+)(\/\d+)?$/;
        const match = url.match(regex);
        return match ? match[1] : url;
      },
      // 是否开启手动生成
      setCreatedBtn() {
        if (this.localChecked.btn) {
          $("head").append("<style>.aicreated-btn{display:inline-flex!important}</style>");
        }
      },
      // 获取帖子内容并生成总结
      async getPostContent() {
        $(".post-stream").before(
          `<div class="gpt-summary-wrap">
         <div class="gpt-summary">AI 总结:正在使用 AI 总结内容中,请稍后...</div>
          </div>`
        );
        const config = JSON.parse(localStorage.getItem("linxudoscriptssetting")).gptdata;
        return new Promise((resolve, reject) => {
          const str = $("#topic-title h1 a").text() + $("#post_1 .cooked").text();
          const prompt2 = `${config.prompt}
帖子内容如下:
${str}`;
          fetch(`${config.baseurl}${config.full_url}`, {
            method: "POST",
            headers: {
              "Content-Type": "application/json",
              Authorization: `Bearer ${config.apikey}`
            },
            body: JSON.stringify({
              model: config.model,
              messages: [
                {
                  role: "user",
                  content: prompt2
                }
              ],
              temperature: 0.7
            })
          }).then((response) => {
            if (!response.ok) {
              reject(`HTTP error! status: ${response.status}`);
            }
            return response.json();
          }).then((gptData) => {
            $(".gpt-summary").html(`${marked.marked.parse(gptData.choices[0].message.content)}`);
            let summaryCache = JSON.parse(localStorage.getItem("summaryCacheData")) || [];
            const regex = /^(https:\/\/linux\.do\/t\/topic\/\d+)(\/\d+)?$/;
            const match = window.location.href.match(regex)[1];
            let existingObject = summaryCache.find((item) => item.name == match);
            let newObject = {
              name: match,
              value: gptData.choices[0].message.content
            };
            if (existingObject) {
              existingObject.value = newObject.value;
            } else {
              summaryCache.push(newObject);
            }
            localStorage.setItem("summaryCacheData", JSON.stringify(summaryCache));
            resolve();
          }).catch((error) => {
            $(".gpt-summary").html(`生成失败,请检查配置是否正确并刷新重试!`);
            console.log(error);
          });
        });
      },
      // 生成 AI 回复
      async setAIRelpy() {
        $(".aireply-popup").show();
        $(".aireply-popup-text").html("AI 推荐回复正在生成中,请稍后。。。");
        const config = JSON.parse(localStorage.getItem("linxudoscriptssetting")).gptdata;
        return new Promise((resolve, reject) => {
          const str = $("#topic-title h1 a").text() + $("#post_1 .cooked").text();
          const prompt2 = `${config.prompt1}
帖子内容如下:
${str}`;
          fetch(`${config.baseurl}${config.full_url}`, {
            method: "POST",
            headers: {
              "Content-Type": "application/json",
              Authorization: `Bearer ${config.apikey}`
            },
            body: JSON.stringify({
              model: config.model,
              messages: [
                {
                  role: "user",
                  content: prompt2
                }
              ],
              temperature: 0.7
            })
          }).then((response) => {
            if (!response.ok) {
              reject(`HTTP error! status: ${response.status}`);
            }
            return response.json();
          }).then((gptData) => {
            this.AIReplyPopup(gptData.choices[0].message.content);
            resolve();
          }).catch((error) => {
            console.log(error);
          });
        });
      },
      // 推荐回复弹窗
      AIReplyPopup(text) {
        $(".aireply-popup-text").html(text);
      },
      // AI 根据新建话题内容生成标题
      async getCreateNewTopicTitle() {
        return new Promise((resolve, reject) => {
          const topic_contentdata = $(".d-editor-preview").html();
          const config = JSON.parse(localStorage.getItem("linxudoscriptssetting")).gptdata;
          const prompt2 = `${config.prompt2}
帖子内容如下:
${topic_contentdata}`;
          fetch(`${config.baseurl}${config.full_url}`, {
            method: "POST",
            headers: {
              "Content-Type": "application/json",
              Authorization: `Bearer ${config.apikey}`
            },
            body: JSON.stringify({
              model: config.model,
              messages: [
                {
                  role: "user",
                  content: prompt2
                }
              ],
              temperature: 0.7
            })
          }).then((response) => {
            if (!response.ok) {
              reject(`HTTP error! status: ${response.status}`);
            }
            return response.json();
          }).then((gptData) => {
            $("#reply-title").val(gptData.choices[0].message.content);
            resolve();
          }).catch((error) => {
            console.log(error);
            $("#reply-title").val(`抱歉生成失败,请检查配置或者反馈给开发者!`);
          });
        });
      }
    },
    async created() {
      if (this.localChecked.value2) {
        $("body").append(`
        <div class="aireply-popup">
          <textarea class="aireply-popup-text"></textarea>
          <button class="aireply-popup-close">关闭</button>
        </div>
      `);
        setInterval(() => {
          if ($(".gpt-summary-wrap").length < 1 && $(".aireplay-btn").length < 1) {
            $("#topic-title").after(
              `<button class="aireplay-btn" type="button">AI 回复</button>`
            );
            $(".aireplay-btn").click(() => {
              this.setAIRelpy();
            });
            $(".aireply-popup-close").click(() => {
              $(".aireply-popup").hide();
              $(".aireply-popup-text").html("AI 推荐回复正在生成中,请稍后。。。");
            });
          }
        }, 1e3);
      }
      if (this.localChecked.value1) {
        setInterval(() => {
          if ($(".gpt-summary-wrap").length < 1 && $(".aicreated-btn").length < 1) {
            $("#topic-title").after(
              `<button class="aicreated-btn" type="button">AI 总结</button>`
            );
            $(".aicreated-btn").click(() => {
              $(".gpt-summary-wrap").remove();
              this.getPostContent();
            });
          }
        }, 1e3);
        this.setCreatedBtn();
        setInterval(() => {
          if ($(".post-stream").length > 0) {
            if ($(".gpt-summary-wrap").length < 1) {
              let summaryCache = JSON.parse(localStorage.getItem("summaryCacheData")) || [];
              const regex = /^(https:\/\/linux\.do\/t\/topic\/\d+)(\/\d+)?$/;
              const match = window.location.href.match(regex)[1];
              let existingObject = summaryCache.find((item) => item.name === match);
              if (existingObject) {
                $(".post-stream").before(
                  `<div class="gpt-summary-wrap">
<div class="gpt-summary">${marked.marked.parse(existingObject.value)}</div>
</div>`
                );
              }
            }
            if (!this.localChecked.btn) {
              if ($(".gpt-summary-wrap").length < 1) {
                this.getPostContent();
              }
            }
            $(".topic-list .main-link a.title").click(() => {
              $(".gpt-summary-wrap").remove();
            });
          }
        }, 1e3);
      }
      if (this.localChecked.title) {
        setInterval(() => {
          if ($(".action-title").length > 0) {
            if ($(".action-title").html().includes("创建新话题")) {
              if ($(".aicreatenewtopictitle").length < 1) {
                $(".action-title").append(
                  '<span class="aicreatenewtopictitle">AI 生成标题</span>'
                );
                $(".aicreatenewtopictitle").click(() => {
                  $("#reply-title").val("正在生成中,请稍后...");
                  this.getCreateNewTopicTitle();
                });
              }
            }
          }
        }, 1e3);
        let summaryCacheData = JSON.parse(localStorage.getItem("summaryCacheData")) || [];
        if (summaryCacheData.length > 20) {
          summaryCacheData = summaryCacheData.slice(-20);
        }
        localStorage.setItem("summaryCacheData", JSON.stringify(summaryCacheData));
      }
    }
  };
  const _withScopeId$5 = (n) => (vue.pushScopeId("data-v-d1d5d03b"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$h = { class: "item" };
  const _hoisted_2$g = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "1. 是否开启 AI 生成话题总结", -1));
  const _hoisted_3$d = { class: "item" };
  const _hoisted_4$8 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "2. 是否显示手动总结按钮", -1));
  const _hoisted_5$7 = { class: "item" };
  const _hoisted_6$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "3. 是否开启 AI 生成回复推荐", -1));
  const _hoisted_7$4 = { class: "item" };
  const _hoisted_8$6 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "4. 新建话题使用 AI 生成标题", -1));
  const _hoisted_9$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "item" }, [
    /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "5. 配置信息")
  ], -1));
  const _hoisted_10$4 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", null, "6. AI 总结帖子 prompt:", -1));
  const _hoisted_11$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", null, "7. AI 生成回复 prompt:", -1));
  const _hoisted_12$1 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", null, "8. AI 生成标题 prompt:", -1));
  const _hoisted_13$1 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("div", { style: { "margin-top": "10px" } }, " 注意:请按照指定格式填写参数;不支持 http,请使用 https。 ", -1));
  function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", null, [
      vue.createElementVNode("div", _hoisted_1$h, [
        _hoisted_2$g,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "checkbox",
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked.value1 = $event),
          onChange: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args))
        }, null, 544), [
          [vue.vModelCheckbox, $data.localChecked.value1]
        ])
      ]),
      vue.createElementVNode("div", _hoisted_3$d, [
        _hoisted_4$8,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "checkbox",
          "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.localChecked.btn = $event),
          onChange: _cache[3] || (_cache[3] = (...args) => $options.handleChange && $options.handleChange(...args))
        }, null, 544), [
          [vue.vModelCheckbox, $data.localChecked.btn]
        ])
      ]),
      vue.createElementVNode("div", _hoisted_5$7, [
        _hoisted_6$5,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "checkbox",
          "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.localChecked.value2 = $event),
          onChange: _cache[5] || (_cache[5] = (...args) => $options.handleChange && $options.handleChange(...args))
        }, null, 544), [
          [vue.vModelCheckbox, $data.localChecked.value2]
        ])
      ]),
      vue.createElementVNode("div", _hoisted_7$4, [
        _hoisted_8$6,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "checkbox",
          "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.localChecked.title = $event),
          onChange: _cache[7] || (_cache[7] = (...args) => $options.handleChange && $options.handleChange(...args))
        }, null, 544), [
          [vue.vModelCheckbox, $data.localChecked.title]
        ])
      ]),
      _hoisted_9$5,
      vue.withDirectives(vue.createElementVNode("input", {
        type: "text",
        "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.localChecked.apikey = $event),
        placeholder: "sk-xxxxxxxx"
      }, null, 512), [
        [vue.vModelText, $data.localChecked.apikey]
      ]),
      vue.withDirectives(vue.createElementVNode("input", {
        style: { "width": "49%" },
        type: "text",
        "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.localChecked.baseurl = $event),
        placeholder: "https://api.openai.com"
      }, null, 512), [
        [vue.vModelText, $data.localChecked.baseurl]
      ]),
      vue.withDirectives(vue.createElementVNode("input", {
        style: { "width": "49%", "margin-left": "2%" },
        type: "text",
        "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.localChecked.full_url = $event),
        placeholder: "/v1/chat/completions"
      }, null, 512), [
        [vue.vModelText, $data.localChecked.full_url]
      ]),
      vue.withDirectives(vue.createElementVNode("input", {
        type: "text",
        "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.localChecked.model = $event),
        placeholder: "模型,如:gpt-4o-mini"
      }, null, 512), [
        [vue.vModelText, $data.localChecked.model]
      ]),
      _hoisted_10$4,
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.localChecked.prompt = $event)
      }, null, 512), [
        [vue.vModelText, $data.localChecked.prompt]
      ]),
      _hoisted_11$2,
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.localChecked.prompt1 = $event)
      }, null, 512), [
        [vue.vModelText, $data.localChecked.prompt1]
      ]),
      _hoisted_12$1,
      vue.withDirectives(vue.createElementVNode("textarea", {
        "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.localChecked.prompt2 = $event)
      }, null, 512), [
        [vue.vModelText, $data.localChecked.prompt2]
      ]),
      _hoisted_13$1
    ]);
  }
  const GPTconfig = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-d1d5d03b"]]);
  const _sfc_main$l = {
    props: ["modelValue"],
    emits: ["update:modelValue"],
    data() {
      return {
        radio: this.modelValue,
        // 初始化 radio
        list: [
          {
            id: 0,
            name: "ls-themes0",
            imgurl: ""
          },
          {
            id: 6,
            name: "ls-themes6",
            imgurl: "https://linux.do/uploads/default/original/3X/d/9/d935995d90221b7acdde23df142ba7bbe3c38bf0.png"
          },
          {
            id: 5,
            name: "ls-themes5",
            imgurl: "https://linux.do/uploads/default/optimized/3X/3/a/3a9cfbddfd2385ec4c638a10b15055220332e65c_2_1035x565.png"
          },
          {
            id: 4,
            name: "ls-themes4",
            imgurl: "https://linux.do/uploads/default/optimized/3X/8/f/8fb7fe2251b44a6ea1831055bf5ac3ef2c12b4ea_2_1035x544.jpeg"
          },
          {
            id: 3,
            name: "ls-themes3",
            imgurl: "https://linux.do/uploads/default/optimized/3X/2/5/25f83e28507a9ec9fe8ad41874ed578c2e007ff6_2_1035x544.jpeg"
          },
          {
            id: 2,
            name: "ls-themes2",
            imgurl: "https://linux.do/uploads/default/optimized/3X/b/b/bbaa57335e0eab7e4db7ddb5944b613ce0cb5b89_2_1035x544.jpeg"
          },
          {
            id: 1,
            name: "ls-themes1",
            imgurl: "https://linux.do/uploads/default/optimized/3X/2/f/2f1a0d87acb496eb544e17a72022c58ccfd72104_2_1035x544.jpeg"
          }
        ],
        jsonData: [
          {
            id: 1,
            content: "<link href='https://forum.godotengine.org/stylesheets/color_definitions_godot-light_14_5_bfb37f9ae1fb41e9775aafca6e20cddcf38a5ef5.css' media='all' rel='stylesheet' class='light-scheme'><link href='https://forum.godotengine.org/stylesheets/color_definitions_godot-dark_15_5_5ddd0db082f3ae82a3ba77b0ccd1e9a549731798.css' media='(prefers-color-scheme:dark)' rel='stylesheet' class='dark-scheme'><link href='https://forum.godotengine.org/stylesheets/desktop_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='desktop'><link href='https://forum.godotengine.org/stylesheets/checklist_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='checklist'><link href='https://forum.godotengine.org/stylesheets/discourse-details_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='discourse-details'><link href='https://forum.godotengine.org/stylesheets/discourse-lazy-videos_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='discourse-lazy-videos'><link href='https://forum.godotengine.org/stylesheets/discourse-local-dates_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='discourse-local-dates'><link href='https://forum.godotengine.org/stylesheets/discourse-narrative-bot_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='discourse-narrative-bot'><link href='https://forum.godotengine.org/stylesheets/discourse-presence_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='discourse-presence'><link href='https://forum.godotengine.org/stylesheets/discourse-solved_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='discourse-solved'><link href='https://forum.godotengine.org/stylesheets/docker_manager_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='docker_manager'><link href='https://forum.godotengine.org/stylesheets/footnote_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='footnote'><link href='https://forum.godotengine.org/stylesheets/poll_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='poll'><link href='https://forum.godotengine.org/stylesheets/spoiler-alert_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='spoiler-alert'><link href='https://forum.godotengine.org/stylesheets/poll_desktop_6551c8b35c64f23dde7a58f9883f833dcb41d6c2.css' media='all' rel='stylesheet' data-target='poll_desktop'><link href='https://forum.godotengine.org/stylesheets/desktop_theme_9_818c40f50955dc75b8ee82ebc6b63677c57bad1a.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='9' data-theme-name='custom header links'><link href='https://forum.godotengine.org/stylesheets/desktop_theme_3_da63025974d890f429338f0221ce160e14b07fc7.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='3' data-theme-name='godot tweaks'><link href='https://forum.godotengine.org/stylesheets/desktop_theme_12_279dc32ddce5227f4513713baa0e0caf3dc6f846.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='12' data-theme-name='post badges'><link href='https://forum.godotengine.org/stylesheets/desktop_theme_7_b736b09c69b69b5359282426c2559c196e5d619e.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='7' data-theme-name='search banner'><link href='https://forum.godotengine.org/stylesheets/desktop_theme_5_73982ca8b55af63e007c66d4bd9ddc7af40f0b7f.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='5' data-theme-name='godot theme'>"
          },
          {
            id: 2,
            content: "<link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/color_definitions_hf-light_3_4_e9f0e3d0b716595aad22a8443d01cdbaf9dff610.css' media='all' rel='stylesheet' class='light-scheme'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/color_definitions_hf-dark_4_4_a909a408a44c8e15765a6792c5aa2abab3fbfdfc.css' media='(prefers-color-scheme:dark)' rel='stylesheet' class='dark-scheme'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/desktop_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='desktop'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/checklist_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='checklist'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-adplugin_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-adplugin'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-ai_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-ai'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-akismet_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-akismet'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-cakeday_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-cakeday'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-details_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-details'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-lazy-videos_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-lazy-videos'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-local-dates_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-local-dates'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-math_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-math'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-narrative-bot_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-narrative-bot'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-policy_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-policy'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-presence_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-presence'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-reactions_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-reactions'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-solved_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-solved'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-templates_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-templates'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-topic-voting_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-topic-voting'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/footnote_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='footnote'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/hosted-site_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='hosted-site'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/poll_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='poll'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/spoiler-alert_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='spoiler-alert'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-ai_desktop_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-ai_desktop'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-reactions_desktop_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-reactions_desktop'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/discourse-topic-voting_desktop_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='discourse-topic-voting_desktop'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/poll_desktop_9690da8ac361c476ab1b25cc9aaade81b0eb2977.css' media='all' rel='stylesheet' data-target='poll_desktop'><link href='https://sea2.discourse-cdn.com/hellohellohello/stylesheets/desktop_theme_4_dc1402c93670f70f3de138ee4819934dae9704d0.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='4' data-theme-name='discourse-huggingface-theme'>"
          },
          {
            id: 3,
            content: "<link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='desktop'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/checklist_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='checklist'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-akismet_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-akismet'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-cakeday_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-cakeday'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-custom-topic-lists_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-custom-topic-lists'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-data-explorer_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-data-explorer'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-details_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-details'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-lazy-videos_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-lazy-videos'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-local-dates_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-local-dates'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-math_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-math'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-narrative-bot_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-narrative-bot'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-policy_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-policy'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-post-voting_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-post-voting'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-presence_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-presence'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-preset-topic-composer_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-preset-topic-composer'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-reactions_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-reactions'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-rss-polling_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-rss-polling'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-signatures_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-signatures'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-solved_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-solved'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-templates_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-templates'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-user-notes_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-user-notes'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/footnote_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='footnote'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/hosted-site_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='hosted-site'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/poll_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='poll'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/spoiler-alert_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='spoiler-alert'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-post-voting_desktop_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-post-voting_desktop'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/discourse-reactions_desktop_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='discourse-reactions_desktop'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/poll_desktop_cfd252fc4676c9752a6eddc24d305200f1bae9d3.css' media='all' rel='stylesheet' data-target='poll_desktop'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_21_7ad18baff84d86d2854bef0ea3531d2b132f80e7.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='21' data-theme-name='category badge styles'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_43_3f15e2f66fc3e5c3aebf2b816db682ffddd62aec.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='43' data-theme-name='category banners'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_44_76340a944941297c187ed34184cc60417a9431da.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='44' data-theme-name='category icons'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_41_5dae38cddbdae9477debd421890ea804b79ec6bb.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='41' data-theme-name='collapsible category groups'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_2_7e9be53a9033f4321fe3ff84ac7ac5916c6f7422.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='2' data-theme-name='dark-light toggle'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_14_11cc9920871247240c539d33b999ff8565c0528e.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='14' data-theme-name='discotoc'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_22_60ced06ad2f59e47b7897d05ee076d301232f5fd.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='22' data-theme-name='discourse-icon'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_13_56d83ffa5ca70edecf74b36d321e04576f4ef1b8.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='13' data-theme-name='discourse-mermaid-theme-component'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_6_953aa87e9ac9cc51e20305e98e782fbec1b0decd.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='6' data-theme-name='discourse-search-banner'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_45_726192e6534fe4d91047ee004c17310f78672e52.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='45' data-theme-name='experimental filter component'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_46_07c0c0f168d9030b56037a94a177640f8e52ed4a.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='46' data-theme-name='full width'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_15_f7eb451c3ff264d93f495b3d6fac50216f49e72d.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='15' data-theme-name='image comparison slider'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_16_5b0101e1835bb5a0e53726e669f272edb9d23bbd.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='16' data-theme-name='pdf previews'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_48_e048fdfd4a9755e059453bb30952ad45bf05e097.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='48' data-theme-name='tag icons'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_17_91ca32199f3209aafcae04ddf03498ed470c69f1.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='17' data-theme-name='tiles - gallery component'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_18_0559ffde96204857d0ebc8c686798e0873b0c584.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='18' data-theme-name='topic thumbnails'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_28_1fc38880197870acc63fb0a16acf5aced129415b.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='28' data-theme-name='unformatted code detector'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_49_b140cc9a50e4dd4d7f5154a7adfd1c85c59e3b63.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='49' data-theme-name='unity: brand identity'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_25_30313f97df8e6b00d3ee8693aa3671cce7c9919a.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='25' data-theme-name='unity: dsa'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_12_132a4fbaac41ffa5dd9101b35885f1a153acdbc5.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='12' data-theme-name='unity: onetrust'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_50_cb48ef097d7269de9b930e7a46b126ce5b9df9e4.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='50' data-theme-name='unity: theme extras'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_10_36ca6f6783651cde9551aca71e209742439766d4.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='10' data-theme-name='unity'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_51_285c9656e620803a07e356ce8cb738d955d8ad2d.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='51' data-theme-name='hotfix: restyle experimental topic summary'><link href='https://dub2.discourse-cdn.com/unity/stylesheets/desktop_theme_24_5c1029e2582d7c1b73ef31e86f4ea0f297bd8a06.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='24' data-theme-name='override-mermaid-styles'>"
          },
          {
            id: 4,
            content: "<link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/color_definitions_google-ai-for-developers_8_2_a146065001d103c6f508d0aecd9795e2b85e0231.css' media='all' rel='stylesheet' class='light-scheme'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='desktop'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/checklist_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='checklist'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-ai_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-ai'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-akismet_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-akismet'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-cakeday_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-cakeday'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-data-explorer_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-data-explorer'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-details_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-details'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-lazy-videos_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-lazy-videos'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-local-dates_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-local-dates'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-narrative-bot_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-narrative-bot'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-policy_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-policy'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-presence_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-presence'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-reactions_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-reactions'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-solved_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-solved'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-templates_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-templates'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-topic-voting_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-topic-voting'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/footnote_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='footnote'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/hosted-site_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='hosted-site'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/poll_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='poll'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/spoiler-alert_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='spoiler-alert'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-ai_desktop_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-ai_desktop'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-reactions_desktop_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-reactions_desktop'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/discourse-topic-voting_desktop_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='discourse-topic-voting_desktop'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/poll_desktop_512b34b3c789d4724f7cb6afc7f9dbb5bdcf63bc.css' media='all' rel='stylesheet' data-target='poll_desktop'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_4_89b44c1aa4a914829f5dab76be36f050017112fd.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='4' data-theme-name='discourse header search'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_3_a8a980bc06c18d3fc858c318921f96f6581459cf.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='3' data-theme-name='discourse-material-icons'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_9_ad782db09c6a21e86f43e7f9fbbaa30324037bf5.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='9' data-theme-name='global notice custom css'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_8_878e84961d78833adf9238d6eda91eb9292d7ed3.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='8' data-theme-name='temp nav fixes'><link href='https://yyz1.discourse-cdn.com/googleaitrial/stylesheets/desktop_theme_2_c35f48dbd27cfaac6e78670aa85b8a0bd9a462fa.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='2' data-theme-name='google ai'>"
          },
          {
            id: 5,
            content: "<link href='https://forum.ksec.co.uk/stylesheets/color_definitions_light_7_2_5186d2d3066aedb3bfcac1027d47b8b0b5350afb.css' media='all' rel='stylesheet' class='light-scheme'><link href='https://forum.ksec.co.uk/stylesheets/color_definitions_dark_1_2_a0603164c6b779ba925871d7963187c6a6dfa8d0.css' media='(prefers-color-scheme:dark)' rel='stylesheet' class='dark-scheme'><link href='https://forum.ksec.co.uk/stylesheets/desktop_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='desktop'><link href='https://forum.ksec.co.uk/stylesheets/checklist_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='checklist'><link href='https://forum.ksec.co.uk/stylesheets/discourse-ai_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-ai'><link href='https://forum.ksec.co.uk/stylesheets/discourse-akismet_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-akismet'><link href='https://forum.ksec.co.uk/stylesheets/discourse-cakeday_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-cakeday'><link href='https://forum.ksec.co.uk/stylesheets/discourse-details_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-details'><link href='https://forum.ksec.co.uk/stylesheets/discourse-gamification_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-gamification'><link href='https://forum.ksec.co.uk/stylesheets/discourse-lazy-videos_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-lazy-videos'><link href='https://forum.ksec.co.uk/stylesheets/discourse-local-dates_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-local-dates'><link href='https://forum.ksec.co.uk/stylesheets/discourse-narrative-bot_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-narrative-bot'><link href='https://forum.ksec.co.uk/stylesheets/discourse-presence_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-presence'><link href='https://forum.ksec.co.uk/stylesheets/discourse-reactions_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-reactions'><link href='https://forum.ksec.co.uk/stylesheets/discourse-rss-polling_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-rss-polling'><link href='https://forum.ksec.co.uk/stylesheets/docker_manager_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='docker_manager'><link href='https://forum.ksec.co.uk/stylesheets/footnote_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='footnote'><link href='https://forum.ksec.co.uk/stylesheets/poll_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='poll'><link href='https://forum.ksec.co.uk/stylesheets/spoiler-alert_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='spoiler-alert'><link href='https://forum.ksec.co.uk/stylesheets/discourse-ai_desktop_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-ai_desktop'><link href='https://forum.ksec.co.uk/stylesheets/discourse-gamification_desktop_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-gamification_desktop'><link href='https://forum.ksec.co.uk/stylesheets/discourse-reactions_desktop_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='discourse-reactions_desktop'><link href='https://forum.ksec.co.uk/stylesheets/poll_desktop_1f2801adf122e33ac71771f0a0d92bf223707572.css' media='all' rel='stylesheet' data-target='poll_desktop'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_4_51fe4f92f85e2ddf8cb2ac39b3f18429f14452c8.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='4' data-theme-name='discourse clickable topic'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_6_003073d7e039da7d37eb1e79b3772306ac8657f4.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='6' data-theme-name='discourse-gifs'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_5_ce3252be82b7db613c78ea4f283dcf17abe51741.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='5' data-theme-name='discourse-search-banner'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_9_12b3533905718e859faa16d62a11c119e4d64875.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='9' data-theme-name='icon header links'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_3_28ffee2ef9ff10c2ad27c49227f68bb1da72a779.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='3' data-theme-name='modern category + group boxes'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_2_dd1b36aa59bc2c658ff7a7825007d31f580dab8b.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='2' data-theme-name='air theme'><link href='https://forum.ksec.co.uk/stylesheets/desktop_theme_11_f4cc23465e9e5bf8d991504b6106825edc03c16a.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='11' data-theme-name='custom css &amp; html'>"
          },
          {
            id: 6,
            content: "<link href='https://thepros.get.it/stylesheets/color_definitions_get-it-light_11_2_ee762a2dd28c63827357489083590cecd6db9323.css' media='all' rel='stylesheet' class='light-scheme'><link href='https://thepros.get.it/stylesheets/color_definitions_dark_1_2_09865b07ec4b67b9401e67edb03a78a33aadf245.css' media='(prefers-color-scheme:dark)' rel='stylesheet' class='dark-scheme'><link href='https://thepros.get.it/stylesheets/desktop_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='desktop'><link href='https://thepros.get.it/stylesheets/chat_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='chat'><link href='https://thepros.get.it/stylesheets/checklist_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='checklist'><link href='https://thepros.get.it/stylesheets/discourse-details_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='discourse-details'><link href='https://thepros.get.it/stylesheets/discourse-lazy-videos_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='discourse-lazy-videos'><link href='https://thepros.get.it/stylesheets/discourse-local-dates_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='discourse-local-dates'><link href='https://thepros.get.it/stylesheets/discourse-narrative-bot_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='discourse-narrative-bot'><link href='https://thepros.get.it/stylesheets/discourse-presence_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='discourse-presence'><link href='https://thepros.get.it/stylesheets/docker_manager_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='docker_manager'><link href='https://thepros.get.it/stylesheets/footnote_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='footnote'><link href='https://thepros.get.it/stylesheets/poll_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='poll'><link href='https://thepros.get.it/stylesheets/spoiler-alert_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='spoiler-alert'><link href='https://thepros.get.it/stylesheets/chat_desktop_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='chat_desktop'><link href='https://thepros.get.it/stylesheets/poll_desktop_7c3d1efacb3c0d0d50e7279609b75879527a37ad.css' media='all' rel='stylesheet' data-target='poll_desktop'><link href='https://thepros.get.it/stylesheets/desktop_theme_4_b593f6a33945d84e8923041356dbae20f78de862.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='4' data-theme-name='clickable topic'><link href='https://thepros.get.it/stylesheets/desktop_theme_3_d0247eb7936be09a3ee02299f743974ceebc1031.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='3' data-theme-name='modern category + group boxes'><link href='https://thepros.get.it/stylesheets/desktop_theme_5_7bc2214caaf0db1a71f3fd05dc0fb629f55ac150.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='5' data-theme-name='search banner'><link href='https://thepros.get.it/stylesheets/desktop_theme_2_381e73ac5235cf49a7c855137e4af4cc4d4a80ef.css' media='all' rel='stylesheet' data-target='desktop_theme' data-theme-id='2' data-theme-name='air theme'>"
          }
        ]
      };
    },
    watch: {
      modelValue(newValue) {
        this.radio = newValue;
      }
    },
    created() {
      if (this.modelValue && this.modelValue !== 0) {
        let result = this.jsonData.find((item) => item.id === this.modelValue);
        if (result) {
          $("body").append(result.content);
        }
      }
    }
  };
  const _withScopeId$4 = (n) => (vue.pushScopeId("data-v-b5335091"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$g = { class: "item" };
  const _hoisted_2$f = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ vue.createElementVNode("p", null, "切换论坛主题:", -1));
  const _hoisted_3$c = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ vue.createElementVNode("p", null, "无法修改,如果有样式问题无法解决,因为是直接 copy 别的论坛样式文件。", -1));
  const _hoisted_4$7 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ vue.createElementVNode("p", null, [
    /* @__PURE__ */ vue.createElementVNode("a", {
      href: "https://github.com/dlzmoe/linuxdo-scripts/tree/main/themes",
      target: "_blank"
    }, " 如何单独使用,不依托于增强插件? ")
  ], -1));
  const _hoisted_5$6 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ vue.createElementVNode("hr", null, null, -1));
  const _hoisted_6$4 = { class: "ls-flex" };
  const _hoisted_7$3 = ["id", "value", "onChange"];
  const _hoisted_8$5 = ["for"];
  const _hoisted_9$4 = ["for"];
  const _hoisted_10$3 = ["for"];
  const _hoisted_11$1 = ["src", "alt"];
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
      _hoisted_2$f,
      _hoisted_3$c,
      _hoisted_4$7,
      _hoisted_5$6,
      vue.createElementVNode("ul", null, [
        (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.list, (item) => {
          return vue.openBlock(), vue.createElementBlock("li", {
            key: item.id
          }, [
            vue.createElementVNode("div", _hoisted_6$4, [
              vue.withDirectives(vue.createElementVNode("input", {
                type: "radio",
                id: item.name,
                name: "ls-themes",
                "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.radio = $event),
                value: item.id,
                onChange: ($event) => _ctx.$emit("update:modelValue", item.id)
              }, null, 40, _hoisted_7$3), [
                [vue.vModelRadio, $data.radio]
              ]),
              item.id !== 0 ? (vue.openBlock(), vue.createElementBlock("label", {
                key: 0,
                for: item.name
              }, "风格 " + vue.toDisplayString(item.id), 9, _hoisted_8$5)) : (vue.openBlock(), vue.createElementBlock("label", {
                key: 1,
                for: item.name
              }, "关闭", 8, _hoisted_9$4))
            ]),
            vue.createElementVNode("label", {
              for: item.name
            }, [
              item.id !== 0 ? (vue.openBlock(), vue.createElementBlock("img", {
                key: 0,
                src: item.imgurl,
                alt: item.name
              }, null, 8, _hoisted_11$1)) : vue.createCommentVNode("", true)
            ], 8, _hoisted_10$3)
          ]);
        }), 128))
      ])
    ]);
  }
  const Themes = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-b5335091"]]);
  const _sfc_main$k = {
    data() {
      return {};
    },
    methods: {
      // 导入数据
      triggerFileInput() {
        this.$refs.fileInput.click();
      },
      handleFileUpload(event) {
        const file = event.target.files[0];
        if (file && file.type === "application/json") {
          const reader = new FileReader();
          reader.onload = (e) => {
            try {
              const jsonData = JSON.parse(e.target.result);
              this.importData(jsonData);
            } catch (error) {
              console.error("Error parsing JSON:", error);
            }
          };
          reader.readAsText(file);
        } else {
          console.error("Please select a valid JSON file.");
        }
      },
      // 处理导入的数据
      importData(data) {
        localStorage.setItem("linxudoscriptssetting", data);
        this.$messageToast("导入成功,即将刷新页面!");
        setTimeout(() => {
          location.reload();
        }, 1500);
      },
      // 导出数据
      exportData() {
        const today = /* @__PURE__ */ new Date();
        const year = today.getFullYear();
        const month = String(today.getMonth() + 1).padStart(2, "0");
        const day = String(today.getDate()).padStart(2, "0");
        const formattedDate = year + month + day;
        const data = localStorage.getItem("linxudoscriptssetting");
        const dataStr = JSON.stringify(data, null, 2);
        const blob = new Blob([dataStr], { type: "application/json" });
        const url = URL.createObjectURL(blob);
        const link = document.createElement("a");
        link.href = url;
        link.download = `linuxdo-script-data-${formattedDate}.json`;
        document.body.appendChild(link);
        link.click();
        document.body.removeChild(link);
        URL.revokeObjectURL(url);
        this.$messageToast("导出成功!");
      }
    }
  };
  function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      vue.createElementVNode("input", {
        type: "file",
        id: "fileInput",
        ref: "fileInput",
        style: { "display": "none" },
        accept: ".json",
        onChange: _cache[0] || (_cache[0] = (...args) => $options.handleFileUpload && $options.handleFileUpload(...args))
      }, null, 544),
      vue.createElementVNode("button", {
        class: "btn import",
        onClick: _cache[1] || (_cache[1] = (...args) => $options.triggerFileInput && $options.triggerFileInput(...args))
      }, "导入"),
      vue.createElementVNode("button", {
        class: "btn export",
        onClick: _cache[2] || (_cache[2] = (...args) => $options.exportData && $options.exportData(...args))
      }, "导出")
    ], 64);
  }
  const ManualBackup = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k]]);
  const _sfc_main$j = {
    props: {
      value: {
        type: Object,
        default: {
          webdavUrl: "",
          webdavUsername: "",
          webdavPassword: ""
        }
      }
    },
    components: {
      ManualBackup
    },
    watch: {
      value(newValue) {
        this.tableData = newValue;
      }
    },
    data() {
      return {
        tableData: this.value
        // webdavUrl: "",
        // webdavUsername: "",
        // webdavPassword: "",
      };
    },
    methods: {
      handleChange() {
        $(".lxwebdavpassword").removeClass("act");
        this.$emit("update:value", this.tableData);
        let linxudoscriptssetting = JSON.parse(
          localStorage.getItem("linxudoscriptssetting")
        );
        let data = {
          webdavUrl: this.tableData.webdavUrl,
          webdavUsername: this.tableData.webdavUsername,
          webdavPassword: this.tableData.webdavPassword
        };
        linxudoscriptssetting.syncbackup = data;
        localStorage.setItem(
          "linxudoscriptssetting",
          JSON.stringify(linxudoscriptssetting)
        );
      },
      // 检查文件夹是否存在
      checkFolderExists(folderUrl) {
        return new Promise((resolve, reject) => {
          GM_xmlhttpRequest({
            method: "PROPFIND",
            url: folderUrl,
            headers: {
              Authorization: "Basic " + btoa(`${this.tableData.webdavUsername}:${this.tableData.webdavPassword}`),
              Depth: "1"
              // 只检查一层
            },
            onload: function(response) {
              if (response.status === 207) {
                resolve(true);
              } else if (response.status === 404) {
                resolve(false);
              } else {
                reject(new Error(`Error checking folder: ${response.statusText}`));
              }
            },
            onerror: function(error) {
              reject(error);
            }
          });
        });
      },
      // 创建文件夹
      createFolder(folderUrl) {
        return new Promise((resolve, reject) => {
          GM_xmlhttpRequest({
            method: "MKCOL",
            url: folderUrl,
            headers: {
              Authorization: "Basic " + btoa(`${this.tableData.webdavUsername}:${this.tableData.webdavPassword}`)
            },
            onload: function(response) {
              if (response.status === 201) {
                resolve(true);
              } else {
                reject(new Error(`Error creating folder: ${response.statusText}`));
              }
            },
            onerror: function(error) {
              reject(error);
            }
          });
        });
      },
      // 检查并创建文件夹
      async checkAndCreateFolder() {
        const folderUrl = `${this.tableData.webdavUrl}linuxdo-scripts-backup/`;
        try {
          const exists = await this.checkFolderExists(folderUrl);
          if (!exists) {
            await this.createFolder(folderUrl);
            console.log("Folder 'linuxdo-scripts-backup' created successfully.");
          } else {
            console.log("Folder 'linuxdo-scripts-backup' already exists.");
          }
          const data = localStorage.getItem("linxudoscriptssetting");
          let fileData;
          try {
            fileData = JSON.stringify(JSON.parse(data));
          } catch (error) {
            console.error("Error parsing localStorage data:", error);
            return;
          }
          const uploadUrl = `${this.tableData.webdavUrl}linuxdo-scripts-backup/data.json`;
          try {
            const uploadResponse = await this.uploadFile(uploadUrl, fileData);
            this.$messageToast("同步到云端成功!");
          } catch (error) {
            console.error("Upload failed:", error);
            this.$messageToast("同步失败!");
          }
        } catch (error) {
          console.error(error);
        }
      },
      uploadFile(url, fileData) {
        return new Promise((resolve, reject) => {
          GM_xmlhttpRequest({
            method: "PUT",
            url,
            data: fileData,
            headers: {
              "Content-Type": "text/plain",
              Authorization: "Basic " + btoa(`${this.tableData.webdavUsername}:${this.tableData.webdavPassword}`)
            },
            onload: function(response) {
              if (response.status >= 200 && response.status < 300) {
                resolve(response);
              } else {
                reject(new Error(`Upload failed: ${response.statusText}`));
              }
            },
            onerror: function(error) {
              reject(error);
            }
          });
        });
      },
      downloadFile(url) {
        return new Promise((resolve, reject) => {
          GM_xmlhttpRequest({
            method: "GET",
            url,
            headers: {
              Authorization: "Basic " + btoa(`${this.tableData.webdavUsername}:${this.tableData.webdavPassword}`)
            },
            onload: function(response) {
              if (response.status >= 200 && response.status < 300) {
                resolve(response.responseText);
              } else {
                reject(new Error(`Download failed: ${response.statusText}`));
              }
            },
            onerror: function(error) {
              reject(error);
            }
          });
        });
      },
      // 上传
      async uploadSampleFile() {
        this.checkAndCreateFolder();
      },
      // 下载
      async downloadSampleFile() {
        const downloadUrl = `${this.tableData.webdavUrl}linuxdo-scripts-backup/data.json`;
        try {
          const downloadResponse = await this.downloadFile(downloadUrl);
          localStorage.setItem("linxudoscriptssetting", downloadResponse);
          this.$messageToast("下载成功,即将刷新页面!");
          setTimeout(() => {
            location.reload();
          }, 1500);
        } catch (error) {
          console.error(error);
          this.$messageToast("下载失败,请检查是否存在备份!");
        }
      },
      // 显示/隐藏密码
      showpsw() {
        $(".lxwebdavpassword").addClass("act");
      }
    },
    created() {
      let linxudoscriptssetting = {};
      try {
        const storedData = localStorage.getItem("linxudoscriptssetting");
        if (storedData) {
          linxudoscriptssetting = JSON.parse(storedData);
        }
      } catch (error) {
        console.error("Error parsing localStorage data:", error);
      }
      const syncbackup = linxudoscriptssetting.syncbackup || {};
      this.tableData.webdavUrl = (syncbackup == null ? void 0 : syncbackup.webdavUrl) || "";
      this.tableData.webdavUsername = (syncbackup == null ? void 0 : syncbackup.webdavUsername) || "";
      this.tableData.webdavPassword = (syncbackup == null ? void 0 : syncbackup.webdavPassword) || "";
    }
  };
  const _withScopeId$3 = (n) => (vue.pushScopeId("data-v-11333de1"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$f = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "item" }, "用于在云端同步设置数据,无需手动导入导出。(同步前先保存设置)", -1));
  const _hoisted_2$e = { class: "item" };
  const _hoisted_3$b = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "WebDav 地址:", -1));
  const _hoisted_4$6 = { class: "item" };
  const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "WebDav 用户名:", -1));
  const _hoisted_6$3 = { class: "item" };
  const _hoisted_7$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tit" }, "WebDav 密码:", -1));
  const _hoisted_8$4 = { class: "btnwrapper" };
  const _hoisted_9$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("hr", null, null, -1));
  const _hoisted_10$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { style: { "margin": "10px 0" } }, "手动导入导出数据:", -1));
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
    const _component_ManualBackup = vue.resolveComponent("ManualBackup");
    return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
      _hoisted_1$f,
      vue.createElementVNode("div", _hoisted_2$e, [
        _hoisted_3$b,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "text",
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.tableData.webdavUrl = $event),
          onBlur: _cache[1] || (_cache[1] = (...args) => $options.handleChange && $options.handleChange(...args)),
          placeholder: "https://dav.xxxx.com/dav/"
        }, null, 544), [
          [vue.vModelText, $data.tableData.webdavUrl]
        ])
      ]),
      vue.createElementVNode("div", _hoisted_4$6, [
        _hoisted_5$5,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "text",
          "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.tableData.webdavUsername = $event),
          onBlur: _cache[3] || (_cache[3] = (...args) => $options.handleChange && $options.handleChange(...args))
        }, null, 544), [
          [vue.vModelText, $data.tableData.webdavUsername]
        ])
      ]),
      vue.createElementVNode("div", _hoisted_6$3, [
        _hoisted_7$2,
        vue.withDirectives(vue.createElementVNode("input", {
          type: "text",
          class: "lxwebdavpassword",
          "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.tableData.webdavPassword = $event),
          onBlur: _cache[5] || (_cache[5] = (...args) => $options.handleChange && $options.handleChange(...args)),
          onFocus: _cache[6] || (_cache[6] = (...args) => $options.showpsw && $options.showpsw(...args))
        }, null, 544), [
          [vue.vModelText, $data.tableData.webdavPassword]
        ])
      ]),
      vue.createElementVNode("div", _hoisted_8$4, [
        vue.createElementVNode("button", {
          onClick: _cache[7] || (_cache[7] = (...args) => $options.uploadSampleFile && $options.uploadSampleFile(...args))
        }, "同步到云端"),
        vue.createElementVNode("button", {
          onClick: _cache[8] || (_cache[8] = (...args) => $options.downloadSampleFile && $options.downloadSampleFile(...args))
        }, "下载到本地")
      ]),
      _hoisted_9$3,
      _hoisted_10$2,
      vue.createVNode(_component_ManualBackup)
    ], 64);
  }
  const SyncBackup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-11333de1"]]);
  const _sfc_main$i = {
    data() {
      return {
        status: false
      };
    },
    methods: {
      lookop() {
        this.status = !this.status;
        $(".post-stream").toggleClass("lookopwrapactive");
      }
    }
  };
  const _hoisted_1$e = { class: "lookopbtn" };
  function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
      vue.createElementVNode("div", {
        class: vue.normalizeClass(["el-button", { act: $data.status }]),
        onClick: _cache[0] || (_cache[0] = (...args) => $options.lookop && $options.lookop(...args)),
        title: "只看楼主"
      }, " 楼主 ", 2)
    ]);
  }
  const LookOP = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-6520db1a"]]);
  const _sfc_main$h = {};
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
    return null;
  }
  const LevelDiglog = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h]]);
  const _sfc_main$g = {
    data() {
      return {
        num: 10,
        // 滚动速度
        isScrolling: false,
        scrollInterval: null,
        status: false
      };
    },
    methods: {
      scrollToBottomSlowly(distancePerStep = this.num, delayPerStep = 50) {
        if (this.scrollInterval !== null) {
          clearInterval(this.scrollInterval);
        }
        this.scrollInterval = setInterval(() => {
          const documentHeight = document.body.scrollHeight;
          const windowHeight = window.innerHeight;
          const scrollPosition = window.scrollY;
          if (scrollPosition + windowHeight >= documentHeight - 1) {
            clearInterval(this.scrollInterval);
            this.scrollInterval = null;
            this.isScrolling = false;
            this.status = false;
          } else {
            window.scrollBy(0, distancePerStep);
          }
        }, delayPerStep);
      },
      autoread() {
        if (this.isScrolling) {
          clearInterval(this.scrollInterval);
          this.scrollInterval = null;
          this.isScrolling = false;
          this.status = false;
        } else {
          this.scrollToBottomSlowly();
          this.isScrolling = true;
          this.status = true;
        }
      }
    },
    created() {
      let linxudoscriptssetting = localStorage.getItem("linxudoscriptssetting");
      if (linxudoscriptssetting) {
        linxudoscriptssetting = JSON.parse(linxudoscriptssetting);
        this.num = Number(linxudoscriptssetting.checked8.value2);
      }
    }
  };
  const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-64839780"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$d = {
    key: 0,
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "currentColor"
  };
  const _hoisted_2$d = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("path", {
    stroke: "none",
    d: "M0 0h24v24H0z",
    fill: "none"
  }, null, -1));
  const _hoisted_3$a = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("path", { d: "M12.088 4.82a10 10 0 0 1 9.412 .314a1 1 0 0 1 .493 .748l.007 .118v13a1 1 0 0 1 -1.5 .866a8 8 0 0 0 -8 0a1 1 0 0 1 -1 0a8 8 0 0 0 -7.733 -.148l-.327 .18l-.103 .044l-.049 .016l-.11 .026l-.061 .01l-.117 .006h-.042l-.11 -.012l-.077 -.014l-.108 -.032l-.126 -.056l-.095 -.056l-.089 -.067l-.06 -.056l-.073 -.082l-.064 -.089l-.022 -.036l-.032 -.06l-.044 -.103l-.016 -.049l-.026 -.11l-.01 -.061l-.004 -.049l-.002 -.068v-13a1 1 0 0 1 .5 -.866a10 10 0 0 1 9.412 -.314l.088 .044l.088 -.044z" }, null, -1));
  const _hoisted_4$5 = [
    _hoisted_2$d,
    _hoisted_3$a
  ];
  const _hoisted_5$4 = {
    key: 1,
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round",
    class: "icon icon-tabler icons-tabler-outline icon-tabler-loader"
  };
  const _hoisted_6$2 = /* @__PURE__ */ vue.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-64839780></path><path d="M12 6l0 -3" data-v-64839780></path><path d="M16.25 7.75l2.15 -2.15" data-v-64839780></path><path d="M18 12l3 0" data-v-64839780></path><path d="M16.25 16.25l2.15 2.15" data-v-64839780></path><path d="M12 18l0 3" data-v-64839780></path><path d="M7.75 16.25l-2.15 2.15" data-v-64839780></path><path d="M6 12l-3 0" data-v-64839780></path><path d="M7.75 7.75l-2.15 -2.15" data-v-64839780></path>', 9);
  const _hoisted_15$1 = [
    _hoisted_6$2
  ];
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", {
      class: vue.normalizeClass(["el-button", { act: $data.status }]),
      onClick: _cache[0] || (_cache[0] = (...args) => $options.autoread && $options.autoread(...args)),
      title: "自动阅读"
    }, [
      $data.status == false ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$d, _hoisted_4$5)) : vue.createCommentVNode("", true),
      $data.status == true ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_5$4, _hoisted_15$1)) : vue.createCommentVNode("", true)
    ], 2);
  }
  const AutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-64839780"]]);
  const _sfc_main$f = {
    methods: {
      openai() {
        window.open("https://shared.oaifree.com/?temporary-chat=true", "_blank");
      }
    }
  };
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", {
      class: "el-button",
      style: { "font-size": "18px" },
      onClick: _cache[0] || (_cache[0] = (...args) => $options.openai && $options.openai(...args)),
      type: "primary",
      title: "AI对话"
    }, " AI ");
  }
  const AIDialog = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f]]);
  const _sfc_main$e = {
    methods: {
      replaybtn() {
        $('button[title="开始撰写此话题的回复"]')[0].click();
      }
    }
  };
  const _hoisted_1$c = { class: "replaybtn" };
  const _hoisted_2$c = /* @__PURE__ */ vue.createElementVNode("svg", {
    class: "fa d-icon d-icon-reply svg-icon svg-string",
    xmlns: "http://www.w3.org/2000/svg"
  }, [
    /* @__PURE__ */ vue.createElementVNode("use", { href: "#reply" })
  ], -1);
  const _hoisted_3$9 = [
    _hoisted_2$c
  ];
  function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
      vue.createElementVNode("div", {
        class: "el-button",
        style: { "font-size": "18px" },
        onClick: _cache[0] || (_cache[0] = (...args) => $options.replaybtn && $options.replaybtn(...args)),
        type: "primary",
        title: "回复"
      }, _hoisted_3$9)
    ]);
  }
  const ReplyBtn = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]);
  const _sfc_main$d = {
    data() {
      return {
        show: false,
        list: []
      };
    },
    methods: {
      hotranking() {
        this.show = !this.show;
      },
      query() {
        this.list = [];
        this.init();
        this.$messageToast("刷新成功!");
      },
      init() {
        fetch("/top.json").then((response) => response.json()).then((data) => {
          this.list = data.topic_list.topics.slice(0, 10);
        }).catch((error) => {
        });
      },
      handleClickOutside(event) {
        if (!event.target.closest(".hotranking") && !event.target.closest(".hotranking-container")) {
          this.show = false;
        }
      }
    },
    mounted() {
      document.addEventListener("click", this.handleClickOutside);
    },
    beforeDestroy() {
      document.removeEventListener("click", this.handleClickOutside);
    },
    created() {
      this.init();
    }
  };
  const _hoisted_1$b = { class: "hotranking" };
  const _hoisted_2$b = { class: "hotranking-container" };
  const _hoisted_3$8 = { class: "flex" };
  const _hoisted_4$4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, "今日最热帖子", -1);
  const _hoisted_5$3 = ["href"];
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", null, [
      vue.createElementVNode("div", _hoisted_1$b, [
        vue.createElementVNode("div", {
          class: "el-button",
          onClick: _cache[0] || (_cache[0] = (...args) => $options.hotranking && $options.hotranking(...args)),
          title: "只看楼主"
        }, "热门")
      ]),
      vue.withDirectives(vue.createElementVNode("div", _hoisted_2$b, [
        vue.createElementVNode("div", _hoisted_3$8, [
          _hoisted_4$4,
          vue.createElementVNode("button", {
            onClick: _cache[1] || (_cache[1] = (...args) => $options.query && $options.query(...args))
          }, "刷新")
        ]),
        vue.createElementVNode("ol", null, [
          (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($data.list, (item) => {
            return vue.openBlock(), vue.createElementBlock("li", {
              key: item.id
            }, [
              vue.createElementVNode("a", {
                href: "https://linux.do/t/topic/" + item.id,
                target: "_blank"
              }, vue.toDisplayString(item.title), 9, _hoisted_5$3)
            ]);
          }), 128))
        ])
      ], 512), [
        [vue.vShow, $data.show]
      ])
    ]);
  }
  const HotRankingList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
  const _sfc_main$c = {
    methods: {
      scrollToTop() {
        window.scrollTo({
          top: 0,
          behavior: "smooth"
        });
      }
    }
  };
  const _hoisted_1$a = { class: "backtotop" };
  const _hoisted_2$a = /* @__PURE__ */ vue.createElementVNode("svg", {
    class: "fa d-icon d-icon-arrow-up svg-icon svg-string",
    xmlns: "http://www.w3.org/2000/svg"
  }, [
    /* @__PURE__ */ vue.createElementVNode("use", { href: "#arrow-up" })
  ], -1);
  const _hoisted_3$7 = [
    _hoisted_2$a
  ];
  function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
      vue.createElementVNode("div", {
        class: "el-button",
        style: { "font-size": "18px" },
        onClick: _cache[0] || (_cache[0] = (...args) => $options.scrollToTop && $options.scrollToTop(...args)),
        type: "primary",
        title: "返回顶部"
      }, _hoisted_3$7)
    ]);
  }
  const BackToTop = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
  const _sfc_main$b = {
    data() {
      return {
        version: packageJson.version
      };
    }
  };
  const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-17d52b22"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$9 = { class: "item-foot" };
  const _hoisted_2$9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", null, [
    /* @__PURE__ */ vue.createElementVNode("a", {
      href: "https://github.com/dlzmoe/linuxdo-scripts",
      target: "_blank"
    }, [
      /* @__PURE__ */ vue.createElementVNode("img", {
        alt: "GitHub Repo stars",
        src: "https://img.shields.io/github/stars/dlzmoe/linuxdo-scripts?style=flat-square&label=Github%20Stars"
      })
    ])
  ], -1));
  const _hoisted_3$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", null, [
    /* @__PURE__ */ vue.createElementVNode("a", {
      href: "https://greasyfork.org/scripts/501827",
      target: "_blank"
    }, [
      /* @__PURE__ */ vue.createElementVNode("img", {
        alt: "Greasy Fork Downloads",
        src: "https://img.shields.io/greasyfork/dt/501827?style=flat-square&label=Greasy%20Fork"
      })
    ])
  ], -1));
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
      _hoisted_2$9,
      _hoisted_3$6,
      vue.createElementVNode("span", null, "当前版本:" + vue.toDisplayString($data.version), 1)
    ]);
  }
  const Updates = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-17d52b22"]]);
  const _sfc_main$a = {
    created() {
      setTimeout(() => {
        const isShowplugininstallationprompts = localStorage.getItem(
          "isShowplugininstallationprompts"
        );
        if (isShowplugininstallationprompts == "true") ;
        else {
          if ($(".UsageTip").length < 1) {
            $(".sidebar-footer-container").before(`
            <dialog open class="UsageTip">
              <div class="title">友情提示</div>
              <div>
                佬友你好,你已经成功安装 linuxdo 增强插件啦!<a
                  href="https://linuxdo-scripts-docs.netlify.app/"
                  target="_blank">
                  使用文档
                  </a>
              </div>
              <div style="color:#e00">
                设置按钮在下方切换主题的旁边哦~ 有个小齿轮,点击它开始配置插件!
              </div>
              <div>如果可以的话欢迎点个 star 支持一下~</div>
              <div>
                <a href="https://github.com/dlzmoe/linuxdo-scripts/" target="_blank">
                  <img
                    src="https://img.shields.io/github/stars/dlzmoe%2Flinuxdo-scripts?style=for-the-badge&labelColor=%235D5D5D&color=%23E97435"
                    alt="icon"
                  />
                </a>
              </div>
              <button class="clicktohide">点击我,该提示永远不会出现啦</button>
            </dialog>
           `);
            $(".clicktohide").click(function() {
              localStorage.setItem("isShowplugininstallationprompts", true);
              $(".UsageTip").remove();
            });
          }
        }
      }, 100);
    }
  };
  function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
    return null;
  }
  const UsageTip = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a]]);
  const _sfc_main$9 = {
    methods: {
      init() {
        $(".signature-img").each(function() {
          var self1 = $(this);
          var url1 = self1.attr("src");
          var img1 = new Image();
          img1.src = url1;
          img1.onerror = function() {
            if (self1.siblings(".signature-p").length < 1) {
              self1.after(
                `<p class="signature-p">${url1}(该用户签名不可访问,已自动转文字)</p>`
              );
              self1.hide();
            }
          };
        });
      }
    },
    created() {
      let pollinglength2 = 0;
      setInterval(() => {
        if (pollinglength2 != $(".post-stream .topic-post").length) {
          pollinglength2 = $(".post-stream .topic-post").length;
          this.init();
        }
      }, 1e3);
    }
  };
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
    return null;
  }
  const Signature = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
  const _sfc_main$8 = {
    data() {
      return {
        floorlotteryval1: "",
        floorlotteryval2: "",
        floorlotterloading: false,
        floorlotterresult: ""
      };
    },
    methods: {
      // 开始抽奖
      drawRandomNumbers() {
        if (this.floorlotteryval1 === "" || this.floorlotteryval2 === "") {
          this.$messageToast("请输入有效的数字");
          return false;
        }
        const total = parseInt(this.floorlotteryval1);
        const count = parseInt(this.floorlotteryval2);
        if (isNaN(total) || isNaN(count) || total <= 0 || count <= 0 || count > total) {
          this.$messageToast("请输入有效的数字");
          return false;
        }
        this.floorlotterloading = true;
        this.floorlotterresult = "";
        setTimeout(() => {
          const result = this.getRandomNumbers(total, count);
          this.floorlotterresult = result.join(", ");
          this.floorlotterloading = false;
        }, 1e3);
      },
      getRandomNumbers(total, count) {
        const numbers = Array.from({ length: total }, (_, i) => i + 1);
        const result = [];
        for (let i = 0; i < count; i++) {
          const randomIndex = Math.floor(Math.random() * numbers.length);
          result.push(numbers[randomIndex]);
          numbers.splice(randomIndex, 1);
        }
        return result;
      },
      closelotter() {
        $("#floorlotteryDialog").hide();
        $(".linuxdoscripts-opacity").hide();
      }
    }
  };
  const _withScopeId = (n) => (vue.pushScopeId("data-v-9114409e"), n = n(), vue.popScopeId(), n);
  const _hoisted_1$8 = { id: "floorlotteryDialog" };
  const _hoisted_2$8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "menu-header" }, [
    /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, "楼层抽奖")
  ], -1));
  const _hoisted_3$5 = {
    class: "menu-body",
    style: { "margin-top": "10px" }
  };
  const _hoisted_4$3 = { class: "inner" };
  const _hoisted_5$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("label", null, "总楼层数:", -1));
  const _hoisted_6$1 = { class: "inner" };
  const _hoisted_7$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("label", null, "抽奖数量:", -1));
  const _hoisted_8$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { style: { "height": "20px" } }, null, -1));
  const _hoisted_9$2 = { key: 0 };
  const _hoisted_10$1 = {
    key: 1,
    title: "抽奖结果",
    type: "success"
  };
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("dialog", _hoisted_1$8, [
      _hoisted_2$8,
      vue.createElementVNode("div", _hoisted_3$5, [
        vue.createElementVNode("div", _hoisted_4$3, [
          _hoisted_5$2,
          vue.withDirectives(vue.createElementVNode("input", {
            type: "text",
            "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.floorlotteryval1 = $event)
          }, null, 512), [
            [vue.vModelText, $data.floorlotteryval1]
          ])
        ]),
        vue.createElementVNode("div", _hoisted_6$1, [
          _hoisted_7$1,
          vue.withDirectives(vue.createElementVNode("input", {
            type: "text",
            "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.floorlotteryval2 = $event)
          }, null, 512), [
            [vue.vModelText, $data.floorlotteryval2]
          ])
        ]),
        vue.createElementVNode("button", {
          class: "btn save",
          onClick: _cache[2] || (_cache[2] = (...args) => $options.drawRandomNumbers && $options.drawRandomNumbers(...args))
        }, "开始抽奖"),
        vue.createElementVNode("button", {
          class: "btn",
          style: { "background": "#979797" },
          plain: "",
          onClick: _cache[3] || (_cache[3] = (...args) => $options.closelotter && $options.closelotter(...args))
        }, " 关闭弹窗 "),
        _hoisted_8$3,
        $data.floorlotterloading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$2, "正在抽奖...")) : vue.createCommentVNode("", true),
        $data.floorlotterresult ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, " 抽奖结果:恭喜 " + vue.toDisplayString($data.floorlotterresult) + " 楼中奖! ", 1)) : vue.createCommentVNode("", true)
      ])
    ]);
  }
  const FloorLottery = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-9114409e"]]);
  const _sfc_main$7 = {};
  const _hoisted_1$7 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    fill: "none",
    viewBox: "0 0 24 24",
    class: "icon-sm"
  };
  const _hoisted_2$7 = /* @__PURE__ */ vue.createElementVNode("path", {
    fill: "currentColor",
    "fill-rule": "evenodd",
    d: "M11.568 3.5a1 1 0 0 0-.863.494l-.811 1.381A3 3 0 0 1 7.33 6.856l-1.596.013a1 1 0 0 0-.858.501l-.44.761a1 1 0 0 0-.003.992l.792 1.4a3 3 0 0 1 0 2.954l-.792 1.4a1 1 0 0 0 .004.992l.439.76a1 1 0 0 0 .858.502l1.596.013a3 3 0 0 1 2.564 1.48l.811 1.382a1 1 0 0 0 .863.494h.87a1 1 0 0 0 .862-.494l.812-1.381a3 3 0 0 1 2.563-1.481l1.596-.013a1 1 0 0 0 .859-.501l.439-.761a1 1 0 0 0 .004-.992l-.793-1.4a3 3 0 0 1 0-2.953l.793-1.401a1 1 0 0 0-.004-.992l-.439-.76a1 1 0 0 0-.859-.502l-1.596-.013a3 3 0 0 1-2.563-1.48L13.3 3.993a1 1 0 0 0-.862-.494zM8.98 2.981A3 3 0 0 1 11.568 1.5h.87a3 3 0 0 1 2.588 1.481l.81 1.382a1 1 0 0 0 .855.494l1.597.013a3 3 0 0 1 2.575 1.502l.44.76a3 3 0 0 1 .011 2.975l-.792 1.4a1 1 0 0 0 0 .985l.792 1.401a3 3 0 0 1-.012 2.974l-.439.761a3 3 0 0 1-2.575 1.503l-1.597.012a1 1 0 0 0-.854.494l-.811 1.382a3 3 0 0 1-2.588 1.481h-.87a3 3 0 0 1-2.588-1.481l-.811-1.382a1 1 0 0 0-.855-.494l-1.596-.012a3 3 0 0 1-2.576-1.503l-.439-.76a3 3 0 0 1-.012-2.975l.793-1.4a1 1 0 0 0 0-.985l-.793-1.4a3 3 0 0 1 .012-2.975l.44-.761A3 3 0 0 1 5.717 4.87l1.596-.013a1 1 0 0 0 .855-.494z",
    "clip-rule": "evenodd"
  }, null, -1);
  const _hoisted_3$4 = /* @__PURE__ */ vue.createElementVNode("path", {
    fill: "currentColor",
    "fill-rule": "evenodd",
    d: "M12.003 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M8.502 12a3.5 3.5 0 1 1 7 .001 3.5 3.5 0 0 1-7-.001",
    "clip-rule": "evenodd"
  }, null, -1);
  const _hoisted_4$2 = [
    _hoisted_2$7,
    _hoisted_3$4
  ];
  function _sfc_render$7(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$7, _hoisted_4$2);
  }
  const Setting1 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
  const _sfc_main$6 = {};
  const _hoisted_1$6 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    fill: "none",
    viewBox: "0 0 24 24",
    class: "icon-sm"
  };
  const _hoisted_2$6 = /* @__PURE__ */ vue.createElementVNode("path", {
    fill: "currentColor",
    "fill-rule": "evenodd",
    d: "M12 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6M7 7a5 5 0 1 1 10 0A5 5 0 0 1 7 7m12.028 8.626c-.342-.061-.834.027-1.346.557a1 1 0 0 1-1.438 0c-.512-.53-1.003-.618-1.345-.557-.36.064-.681.312-.837.702-.257.643-.16 2.334 2.901 4.134 3.062-1.8 3.159-3.49 2.901-4.134a1.11 1.11 0 0 0-.836-.702m2.693-.041c.854 2.134-.456 4.844-4.284 6.904a1 1 0 0 1-.948 0c-3.828-2.06-5.137-4.77-4.284-6.904a3.11 3.11 0 0 1 2.343-1.929c.809-.144 1.655.035 2.415.536.76-.5 1.607-.68 2.415-.536a3.11 3.11 0 0 1 2.343 1.929m-11.795-1.38a1 1 0 0 1-.548 1.303C7.06 16.453 5.5 18.581 5.5 21a1 1 0 1 1-2 0c0-3.322 2.141-6.128 5.122-7.344a1 1 0 0 1 1.304.549",
    "clip-rule": "evenodd"
  }, null, -1);
  const _hoisted_3$3 = [
    _hoisted_2$6
  ];
  function _sfc_render$6(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$6, _hoisted_3$3);
  }
  const Setting2 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
  const _sfc_main$5 = {};
  const _hoisted_1$5 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    fill: "none",
    viewBox: "0 0 24 24",
    class: "icon-sm"
  };
  const _hoisted_2$5 = /* @__PURE__ */ vue.createElementVNode("path", {
    fill: "currentColor",
    "fill-rule": "evenodd",
    d: "M12.4 3.767a1 1 0 0 0-.8 0l-6 2.625a1 1 0 0 0-.6.916V13c0 1.714.616 3.283 1.638 4.5A6.99 6.99 0 0 1 12 15c2.153 0 4.078.972 5.362 2.5A6.97 6.97 0 0 0 19 13V7.308a1 1 0 0 0-.6-.916zm3.47 15.067A4.99 4.99 0 0 0 12 17a4.99 4.99 0 0 0-3.87 1.834A6.97 6.97 0 0 0 12 20c1.43 0 2.762-.43 3.87-1.166m-5.072-16.9a3 3 0 0 1 2.405 0l6 2.626A3 3 0 0 1 21 7.308V13a9 9 0 1 1-18 0V7.308A3 3 0 0 1 4.798 4.56zM12 8.5a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5m-3.75 1.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0",
    "clip-rule": "evenodd"
  }, null, -1);
  const _hoisted_3$2 = [
    _hoisted_2$5
  ];
  function _sfc_render$5(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$5, _hoisted_3$2);
  }
  const Setting3 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
  const _sfc_main$4 = {};
  const _hoisted_1$4 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round",
    class: "icon icon-tabler icons-tabler-outline icon-tabler-brand-openai"
  };
  const _hoisted_2$4 = /* @__PURE__ */ vue.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M11.217 19.384a3.501 3.501 0 0 0 6.783 -1.217v-5.167l-6 -3.35"></path><path d="M5.214 15.014a3.501 3.501 0 0 0 4.446 5.266l4.34 -2.534v-6.946"></path><path d="M6 7.63c-1.391 -.236 -2.787 .395 -3.534 1.689a3.474 3.474 0 0 0 1.271 4.745l4.263 2.514l6 -3.348"></path><path d="M12.783 4.616a3.501 3.501 0 0 0 -6.783 1.217v5.067l6 3.45"></path><path d="M18.786 8.986a3.501 3.501 0 0 0 -4.446 -5.266l-4.34 2.534v6.946"></path><path d="M18 16.302c1.391 .236 2.787 -.395 3.534 -1.689a3.474 3.474 0 0 0 -1.271 -4.745l-4.308 -2.514l-5.955 3.42"></path>', 7);
  const _hoisted_9$1 = [
    _hoisted_2$4
  ];
  function _sfc_render$4(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$4, _hoisted_9$1);
  }
  const Setting4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
  const _sfc_main$3 = {};
  const _hoisted_1$3 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round",
    class: "icon icon-tabler icons-tabler-outline icon-tabler-cheese"
  };
  const _hoisted_2$3 = /* @__PURE__ */ vue.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4.519 20.008l16.481 -.008v-3.5a2 2 0 1 1 0 -4v-3.5h-16.722"></path><path d="M21 9l-9.385 -4.992c-2.512 .12 -4.758 1.42 -6.327 3.425c-1.423 1.82 -2.288 4.221 -2.288 6.854c0 2.117 .56 4.085 1.519 5.721"></path><path d="M15 13v.01"></path><path d="M8 13v.01"></path><path d="M11 16v.01"></path>', 6);
  const _hoisted_8$2 = [
    _hoisted_2$3
  ];
  function _sfc_render$3(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$3, _hoisted_8$2);
  }
  const Setting5 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
  const _sfc_main$2 = {};
  const _hoisted_1$2 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round",
    class: "icon icon-tabler icons-tabler-outline icon-tabler-refresh"
  };
  const _hoisted_2$2 = /* @__PURE__ */ vue.createElementVNode("path", {
    stroke: "none",
    d: "M0 0h24v24H0z",
    fill: "none"
  }, null, -1);
  const _hoisted_3$1 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" }, null, -1);
  const _hoisted_4$1 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }, null, -1);
  const _hoisted_5$1 = [
    _hoisted_2$2,
    _hoisted_3$1,
    _hoisted_4$1
  ];
  function _sfc_render$2(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _hoisted_5$1);
  }
  const Setting6 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
  const _sfc_main$1 = {};
  const _hoisted_1$1 = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round",
    class: "icon icon-tabler icons-tabler-outline icon-tabler-language-hiragana"
  };
  const _hoisted_2$1 = /* @__PURE__ */ vue.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 5h7"></path><path d="M7 4c0 4.846 0 7 .5 8"></path><path d="M10 8.5c0 2.286 -2 4.5 -3.5 4.5s-2.5 -1.135 -2.5 -2c0 -2 1 -3 3 -3s5 .57 5 2.857c0 1.524 -.667 2.571 -2 3.143"></path><path d="M12 20l4 -9l4 9"></path><path d="M19.1 18h-6.2"></path>', 6);
  const _hoisted_8$1 = [
    _hoisted_2$1
  ];
  function _sfc_render$1(_ctx, _cache) {
    return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1, _hoisted_8$1);
  }
  const Setting7 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
  const _sfc_main = {
    components: {
      Setting1,
      Setting2,
      Setting3,
      Setting4,
      Setting5,
      Setting6,
      Setting7,
      MenuOpenpostblank,
      MenuNewtopicreminder,
      MenuAutoexpandreply,
      MenuAutoexpandreply1,
      MenuShowcreatetime,
      MenuShowcreatetime1,
      MenuShowfloors,
      MenuHidetopicdetailtitle,
      MenuTopicpreview,
      MenuCreatereply,
      MenuBlockuserlist,
      MenuAutoRead,
      AutoRead,
      Updates,
      MenuLookOP,
      LookOP,
      LevelDiglog,
      UsageTip,
      MenuFloorHeight,
      UserTags,
      MenuOtherCss,
      MenuLogoUrl,
      ReplyTBEnjoy,
      MenuPangu,
      MenuLevelSearch,
      MenuShowUnread,
      MenuFilterText,
      MenuLookmeSign,
      MenuQuickAccess,
      MenureplaceEmojiStyle,
      MenuShowAI,
      AIDialog,
      MenuEditorJa,
      MenuCreatedOrder,
      GPTconfig,
      MenuStickyNav,
      MenuBlockKeyword,
      SyncBackup,
      MenuShieldPosts,
      Themes,
      Signature,
      MenuNextPosts,
      MenuSelectedShare,
      MenuDisableAutoplay,
      MenuShowRepltBtn,
      ReplyBtn,
      FloorLottery,
      MenuDonotTopic,
      MenuAutoDark,
      MenuHiddenPlaceholder,
      MenuDisableReplaceState,
      MenuRemovePostAvatar,
      MenuHotRankingList,
      HotRankingList,
      MenuBackToTop,
      BackToTop,
      MenuQuickLikeTopic,
      MenuCopyTextAsImage,
      MenuHideNewBluedot,
      MenuGifToPng,
      MenuHideHomeBanner
    },
    data() {
      return {
        version: packageJson.version,
        opacity: false,
        open: false,
        // 设置数据
        settingData: {
          checked1: false,
          checked2: false,
          checked3: false,
          checked31: false,
          checked4: false,
          checked41: true,
          checked5: true,
          checked6: false,
          checked7: false,
          checked8: {
            value1: true,
            value2: 10
          },
          checked9: true,
          QuickReply: "",
          blockList: "",
          blockkeywrod: "",
          checked10: false,
          othercss: "",
          logourl: "",
          checked11: true,
          checked12: true,
          checked13: false,
          checked14: false,
          checked15: false,
          checked16: false,
          checked17: {
            value1: true,
            value2: "twitter"
          },
          checked18: false,
          checked19: false,
          checked20: true,
          checked21: {
            value1: false,
            cate: "搞七捻三",
            days: "5"
          },
          checked22: true,
          checked23: false,
          checked24: true,
          checked25: true,
          checked26: true,
          checked27: false,
          checked28: false,
          checked29: false,
          checked33: false,
          checked34: false,
          checked35: false,
          checked36: false,
          checked37: false,
          checked38: false,
          checked39: false,
          removePostavatarData: {
            enable: false,
            showAuthor: false
          },
          usertags: [],
          gptdata: {
            value1: false,
            value2: false,
            title: false,
            btn: true,
            apikey: "",
            baseurl: "https://api.openai.com",
            full_url: "/v1/chat/completions",
            model: "gpt-4o-mini",
            prompt: "根据以下帖子内容进行总结,请使用 markdown 格式返回回答,没有字数限制,但要求文字精炼,简介准确,语言要求返回简体中文,并且进行中英文混排优化。可以通过编号列表(1,2,3)列出核心要点。注意不要输出标题,例如:核心要点总结,帖子总结等,直接输出文本段落。",
            prompt1: "根据以下帖子内容,帮我给作者写一条回复,简短,表明我的观点,用口语回复,不需要很正式。您可以通过讨论的方式进行回复,这将有助于引导其他用户或作者进行互动。",
            prompt2: "根据以下帖子内容,生成一个合适的标题用于社交论坛发布使用,格式要求:不要书名号或其他符号,只需要一句纯文本。尽量精简到 15 字以内,如果字数不够表达主题,可以适当多生成几个字。"
          },
          syncbackup: {
            webdavUrl: "",
            webdavUsername: "",
            webdavPassword: ""
          },
          themes: 0
        },
        showautoread: false,
        showlookop: false,
        showlevelsearch: false,
        showaidialog: false,
        showreplybtn: false,
        showhotranking: false,
        showbacktotop: false
      };
    },
    methods: {
      // 检测新版本
      checkversion() {
        this.$messageToast("正在检测新版本...");
        fetch("https://api.github.com/repos/dlzmoe/linuxdo-scripts/releases/latest").then((response) => response.json()).then((data) => {
          if (this.version != data.tag_name) {
            this.$messageToast("有新版本可用,即将前往更新!");
            setTimeout(() => {
              window.open("https://greasyfork.org/scripts/501827", "_blank");
            }, 1e3);
          } else {
            this.$messageToast("当前已是最新版本!");
          }
        }).catch((error) => {
          this.$messageToast("检测出错,请刷新后重试!");
        });
      },
      // 关闭弹窗
      closedialog() {
        $(".linuxdoscripts-opacity").hide();
        $("#menu_suspendedball").hide();
      },
      // 保存设置
      save() {
        localStorage.setItem("linxudoscriptssetting", JSON.stringify(this.settingData));
        this.$messageToast("保存成功!");
        $(".linuxdoscripts-opacity").hide();
        $("#menu_suspendedball").hide();
      },
      // 保存并刷新
      saveload() {
        this.save();
        location.reload();
      },
      // 打开抽奖弹窗
      openFloorlottery() {
        $("#menu_suspendedball").hide();
        $("#floorlotteryDialog").show();
      },
      // 默认运行脚本
      runscripts() {
        $(".linuxdoscripts-setting").click(function() {
          $(".linuxdoscripts-opacity").show();
          $("#menu_suspendedball").show();
        });
        if ($(".menu-nav").length > 0) {
          $(".menu-nav li").each(function() {
            $(this).click(function() {
              const num = $(this).index();
              $(".menu-nav li").removeClass("act");
              $(this).addClass("act");
              $(".menu-body-item").removeClass("act");
              $(".menu-body-item").eq(num).addClass("act");
            });
          });
        }
      },
      // 初始化设置
      initialization() {
        localStorage.removeItem("linxudoscriptssetting");
        this.$messageToast("初始化设置成功,即将自动刷新!");
        setTimeout(() => {
          location.reload();
        }, 1e3);
      }
    },
    created() {
      console.log(
        `%c linuxdo 增强插件 %c 已开启 `,
        "padding: 2px 1px; color: #fff; background: #606060;",
        "padding: 2px 1px; color: #fff; background: #42c02e;"
      );
      setInterval(() => {
        if ($(".linuxdoscripts-setting").length < 1) {
          $(".sidebar-footer-actions").prepend(`
          <button class="btn no-text btn-icon color-scheme-toggler btn-flat linuxdoscripts-setting" title="设置" type="button">
          <svg class="fa d-icon d-icon-gear svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use href="#gear"></use></svg></button>`);
        }
      }, 1e3);
      const linxudoscriptssetting = localStorage.getItem("linxudoscriptssetting");
      if (linxudoscriptssetting) {
        let deepMerge = function(target, source) {
          for (const key in source) {
            if (source[key] instanceof Object && key in target) {
              target[key] = deepMerge(target[key], source[key]);
            } else {
              target[key] = source[key];
            }
          }
          return target;
        };
        let existingData = JSON.parse(localStorage.getItem("linxudoscriptssetting"));
        this.settingData = deepMerge(this.settingData, existingData);
        localStorage.setItem("linxudoscriptssetting", JSON.stringify(this.settingData));
        this.showautoread = this.settingData.checked8.value1;
        this.showlookop = this.settingData.checked9;
        this.showlevelsearch = this.settingData.checked12;
        this.showaidialog = this.settingData.checked18;
        this.showreplybtn = this.settingData.checked25;
        this.showhotranking = this.settingData.checked33;
        this.showbacktotop = this.settingData.checked34;
        if (this.showreplybtn) {
          setInterval(() => {
            if (window.location.href.includes("/topic/")) {
              $(".replaybtn").show();
              $(".lookopbtn").show();
            } else {
              $(".replaybtn").hide();
              $(".lookopbtn").hide();
            }
          }, 1e3);
        }
      } else {
        localStorage.setItem("linxudoscriptssetting", JSON.stringify(this.settingData));
      }
      setInterval(() => {
        this.runscripts();
      }, 1e3);
    }
  };
  const _hoisted_1 = { id: "linuxdoscripts" };
  const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "linuxdoscripts-opacity" }, null, -1);
  const _hoisted_3 = { class: "setting-btn" };
  const _hoisted_4 = {
    open: "",
    id: "menu_suspendedball"
  };
  const _hoisted_5 = { class: "menu-header" };
  const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, "linuxdo 增强插件设置", -1);
  const _hoisted_7 = { class: "menu-flex" };
  const _hoisted_8 = { class: "menu-nav" };
  const _hoisted_9 = { class: "act" };
  const _hoisted_10 = { class: "menu-body" };
  const _hoisted_11 = { class: "menu-body-item act" };
  const _hoisted_12 = { class: "menu-about" };
  const _hoisted_13 = /* @__PURE__ */ vue.createElementVNode("p", null, "请注意,该设置面板数据全部保存在本地浏览器缓存中,注意备份。", -1);
  const _hoisted_14 = { class: "hint" };
  const _hoisted_15 = { class: "menu-body-item" };
  const _hoisted_16 = { class: "menu-body-item" };
  const _hoisted_17 = { class: "menu-body-item" };
  const _hoisted_18 = { class: "menu-body-item" };
  const _hoisted_19 = { class: "menu-body-item" };
  const _hoisted_20 = { class: "menu-footer" };
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
    const _component_BackToTop = vue.resolveComponent("BackToTop");
    const _component_ReplyBtn = vue.resolveComponent("ReplyBtn");
    const _component_LookOP = vue.resolveComponent("LookOP");
    const _component_AIDialog = vue.resolveComponent("AIDialog");
    const _component_LevelDiglog = vue.resolveComponent("LevelDiglog");
    const _component_AutoRead = vue.resolveComponent("AutoRead");
    const _component_HotRankingList = vue.resolveComponent("HotRankingList");
    const _component_Setting1 = vue.resolveComponent("Setting1");
    const _component_Setting2 = vue.resolveComponent("Setting2");
    const _component_Setting3 = vue.resolveComponent("Setting3");
    const _component_Setting4 = vue.resolveComponent("Setting4");
    const _component_Setting5 = vue.resolveComponent("Setting5");
    const _component_Setting6 = vue.resolveComponent("Setting6");
    const _component_Updates = vue.resolveComponent("Updates");
    const _component_MenuOpenpostblank = vue.resolveComponent("MenuOpenpostblank");
    const _component_MenuNewtopicreminder = vue.resolveComponent("MenuNewtopicreminder");
    const _component_MenuAutoexpandreply = vue.resolveComponent("MenuAutoexpandreply");
    const _component_MenuShowcreatetime = vue.resolveComponent("MenuShowcreatetime");
    const _component_MenuShowcreatetime1 = vue.resolveComponent("MenuShowcreatetime1");
    const _component_MenuShowfloors = vue.resolveComponent("MenuShowfloors");
    const _component_MenuHidetopicdetailtitle = vue.resolveComponent("MenuHidetopicdetailtitle");
    const _component_MenuTopicpreview = vue.resolveComponent("MenuTopicpreview");
    const _component_MenuAutoRead = vue.resolveComponent("MenuAutoRead");
    const _component_MenuLookOP = vue.resolveComponent("MenuLookOP");
    const _component_MenuFloorHeight = vue.resolveComponent("MenuFloorHeight");
    const _component_MenuPangu = vue.resolveComponent("MenuPangu");
    const _component_MenuLevelSearch = vue.resolveComponent("MenuLevelSearch");
    const _component_MenuShowUnread = vue.resolveComponent("MenuShowUnread");
    const _component_MenuFilterText = vue.resolveComponent("MenuFilterText");
    const _component_MenuLookmeSign = vue.resolveComponent("MenuLookmeSign");
    const _component_MenuQuickAccess = vue.resolveComponent("MenuQuickAccess");
    const _component_MenureplaceEmojiStyle = vue.resolveComponent("MenureplaceEmojiStyle");
    const _component_MenuShowAI = vue.resolveComponent("MenuShowAI");
    const _component_MenuEditorJa = vue.resolveComponent("MenuEditorJa");
    const _component_MenuStickyNav = vue.resolveComponent("MenuStickyNav");
    const _component_MenuNextPosts = vue.resolveComponent("MenuNextPosts");
    const _component_MenuSelectedShare = vue.resolveComponent("MenuSelectedShare");
    const _component_MenuDisableAutoplay = vue.resolveComponent("MenuDisableAutoplay");
    const _component_MenuShowRepltBtn = vue.resolveComponent("MenuShowRepltBtn");
    const _component_MenuDonotTopic = vue.resolveComponent("MenuDonotTopic");
    const _component_MenuAutoDark = vue.resolveComponent("MenuAutoDark");
    const _component_MenuHiddenPlaceholder = vue.resolveComponent("MenuHiddenPlaceholder");
    const _component_MenuDisableReplaceState = vue.resolveComponent("MenuDisableReplaceState");
    const _component_MenuRemovePostAvatar = vue.resolveComponent("MenuRemovePostAvatar");
    const _component_MenuHotRankingList = vue.resolveComponent("MenuHotRankingList");
    const _component_MenuBackToTop = vue.resolveComponent("MenuBackToTop");
    const _component_MenuQuickLikeTopic = vue.resolveComponent("MenuQuickLikeTopic");
    const _component_MenuCopyTextAsImage = vue.resolveComponent("MenuCopyTextAsImage");
    const _component_MenuHideNewBluedot = vue.resolveComponent("MenuHideNewBluedot");
    const _component_MenuGifToPng = vue.resolveComponent("MenuGifToPng");
    const _component_MenuHideHomeBanner = vue.resolveComponent("MenuHideHomeBanner");
    const _component_MenuLogoUrl = vue.resolveComponent("MenuLogoUrl");
    const _component_MenuCreatereply = vue.resolveComponent("MenuCreatereply");
    const _component_MenuBlockKeyword = vue.resolveComponent("MenuBlockKeyword");
    const _component_MenuBlockuserlist = vue.resolveComponent("MenuBlockuserlist");
    const _component_MenuShieldPosts = vue.resolveComponent("MenuShieldPosts");
    const _component_MenuOtherCss = vue.resolveComponent("MenuOtherCss");
    const _component_UserTags = vue.resolveComponent("UserTags");
    const _component_GPTconfig = vue.resolveComponent("GPTconfig");
    const _component_Themes = vue.resolveComponent("Themes");
    const _component_SyncBackup = vue.resolveComponent("SyncBackup");
    const _component_FloorLottery = vue.resolveComponent("FloorLottery");
    const _component_UsageTip = vue.resolveComponent("UsageTip");
    const _component_ReplyTBEnjoy = vue.resolveComponent("ReplyTBEnjoy");
    const _component_Signature = vue.resolveComponent("Signature");
    return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
      _hoisted_2,
      vue.createElementVNode("div", _hoisted_3, [
        vue.withDirectives(vue.createVNode(_component_BackToTop, null, null, 512), [
          [vue.vShow, $data.showbacktotop]
        ]),
        vue.withDirectives(vue.createVNode(_component_ReplyBtn, null, null, 512), [
          [vue.vShow, $data.showreplybtn]
        ]),
        vue.withDirectives(vue.createVNode(_component_LookOP, null, null, 512), [
          [vue.vShow, $data.showlookop]
        ]),
        vue.withDirectives(vue.createVNode(_component_AIDialog, null, null, 512), [
          [vue.vShow, $data.showaidialog]
        ]),
        vue.withDirectives(vue.createVNode(_component_LevelDiglog, null, null, 512), [
          [vue.vShow, $data.showlevelsearch]
        ]),
        vue.withDirectives(vue.createVNode(_component_AutoRead, null, null, 512), [
          [vue.vShow, $data.showautoread]
        ]),
        vue.withDirectives(vue.createVNode(_component_HotRankingList, null, null, 512), [
          [vue.vShow, $data.showhotranking]
        ])
      ]),
      vue.createElementVNode("dialog", _hoisted_4, [
        vue.createElementVNode("div", _hoisted_5, [
          _hoisted_6,
          vue.createElementVNode("div", {
            class: "close",
            onClick: _cache[0] || (_cache[0] = (...args) => $options.closedialog && $options.closedialog(...args))
          }, "+")
        ]),
        vue.createElementVNode("div", _hoisted_7, [
          vue.createElementVNode("ul", _hoisted_8, [
            vue.createElementVNode("li", _hoisted_9, [
              vue.createVNode(_component_Setting1),
              vue.createTextVNode("通用设置")
            ]),
            vue.createElementVNode("li", null, [
              vue.createVNode(_component_Setting2),
              vue.createTextVNode("自定义")
            ]),
            vue.createElementVNode("li", null, [
              vue.createVNode(_component_Setting3),
              vue.createTextVNode("用户标签")
            ]),
            vue.createElementVNode("li", null, [
              vue.createVNode(_component_Setting4),
              vue.createTextVNode("AI 配置")
            ]),
            vue.createElementVNode("li", null, [
              vue.createVNode(_component_Setting5),
              vue.createTextVNode("主题风格")
            ]),
            vue.createElementVNode("li", null, [
              vue.createVNode(_component_Setting6),
              vue.createTextVNode("数据同步")
            ]),
            vue.createVNode(_component_Updates)
          ]),
          vue.createElementVNode("div", _hoisted_10, [
            vue.createElementVNode("div", _hoisted_11, [
              vue.createElementVNode("div", _hoisted_12, [
                _hoisted_13,
                vue.createElementVNode("p", _hoisted_14, [
                  vue.createTextVNode(" 如果感觉哪里不太对劲,点我 "),
                  vue.createElementVNode("span", {
                    class: "initialization",
                    onClick: _cache[1] || (_cache[1] = (...args) => $options.initialization && $options.initialization(...args))
                  }, "初始化设置"),
                  vue.createTextVNode(" ,会清除所有的设置数据并初始化!! ")
                ])
              ]),
              vue.createVNode(_component_MenuOpenpostblank, {
                sort: 1,
                modelValue: $data.settingData.checked1,
                "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.settingData.checked1 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuNewtopicreminder, {
                sort: 2,
                modelValue: $data.settingData.checked2,
                "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.settingData.checked2 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuAutoexpandreply, {
                sort: 3,
                modelValue: $data.settingData.checked3,
                "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.settingData.checked3 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuShowcreatetime, {
                sort: 4,
                modelValue: $data.settingData.checked4,
                "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.settingData.checked4 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuShowcreatetime1, {
                sort: 4.1,
                modelValue: $data.settingData.checked41,
                "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.settingData.checked41 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuShowfloors, {
                sort: 5,
                modelValue: $data.settingData.checked5,
                "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.settingData.checked5 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuHidetopicdetailtitle, {
                sort: 6,
                modelValue: $data.settingData.checked6,
                "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.settingData.checked6 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuTopicpreview, {
                sort: 7,
                modelValue: $data.settingData.checked7,
                "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.settingData.checked7 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuAutoRead, {
                sort: 8,
                modelValue: $data.settingData.checked8,
                "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.settingData.checked8 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuLookOP, {
                sort: 9,
                modelValue: $data.settingData.checked9,
                "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.settingData.checked9 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuFloorHeight, {
                sort: 10,
                modelValue: $data.settingData.checked10,
                "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.settingData.checked10 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuPangu, {
                sort: 11,
                modelValue: $data.settingData.checked11,
                "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.settingData.checked11 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuLevelSearch, {
                sort: 12,
                modelValue: $data.settingData.checked12,
                "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.settingData.checked12 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuShowUnread, {
                sort: 13,
                modelValue: $data.settingData.checked13,
                "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.settingData.checked13 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuFilterText, {
                sort: 14,
                modelValue: $data.settingData.checked14,
                "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $data.settingData.checked14 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuLookmeSign, {
                sort: 15,
                modelValue: $data.settingData.checked15,
                "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $data.settingData.checked15 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuQuickAccess, {
                sort: 16,
                modelValue: $data.settingData.checked16,
                "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => $data.settingData.checked16 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenureplaceEmojiStyle, {
                sort: 17,
                modelValue: $data.settingData.checked17,
                "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $data.settingData.checked17 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuShowAI, {
                sort: 18,
                modelValue: $data.settingData.checked18,
                "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => $data.settingData.checked18 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuEditorJa, {
                sort: 19,
                modelValue: $data.settingData.checked19,
                "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => $data.settingData.checked19 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuStickyNav, {
                sort: 20,
                modelValue: $data.settingData.checked20,
                "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $data.settingData.checked20 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuNextPosts, {
                sort: 21,
                modelValue: $data.settingData.checked22,
                "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => $data.settingData.checked22 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuSelectedShare, {
                sort: 22,
                modelValue: $data.settingData.checked23,
                "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.settingData.checked23 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuDisableAutoplay, {
                sort: 23,
                modelValue: $data.settingData.checked24,
                "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => $data.settingData.checked24 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuShowRepltBtn, {
                sort: 24,
                modelValue: $data.settingData.checked25,
                "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => $data.settingData.checked25 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuDonotTopic, {
                sort: 25,
                modelValue: $data.settingData.checked26,
                "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => $data.settingData.checked26 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuAutoDark, {
                sort: 26,
                modelValue: $data.settingData.checked27,
                "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => $data.settingData.checked27 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuHiddenPlaceholder, {
                sort: 27,
                modelValue: $data.settingData.checked28,
                "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => $data.settingData.checked28 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuDisableReplaceState, {
                sort: 28,
                modelValue: $data.settingData.checked29,
                "onUpdate:modelValue": _cache[30] || (_cache[30] = ($event) => $data.settingData.checked29 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuRemovePostAvatar, {
                sort: 29,
                modelValue: $data.settingData.removePostavatarData,
                "onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => $data.settingData.removePostavatarData = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuHotRankingList, {
                sort: 30,
                modelValue: $data.settingData.checked33,
                "onUpdate:modelValue": _cache[32] || (_cache[32] = ($event) => $data.settingData.checked33 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuBackToTop, {
                sort: 31,
                modelValue: $data.settingData.checked34,
                "onUpdate:modelValue": _cache[33] || (_cache[33] = ($event) => $data.settingData.checked34 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuQuickLikeTopic, {
                sort: 32,
                modelValue: $data.settingData.checked35,
                "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => $data.settingData.checked35 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuCopyTextAsImage, {
                sort: 33,
                modelValue: $data.settingData.checked36,
                "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => $data.settingData.checked36 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuHideNewBluedot, {
                sort: 34,
                modelValue: $data.settingData.checked37,
                "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.settingData.checked37 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuGifToPng, {
                sort: 35,
                modelValue: $data.settingData.checked38,
                "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => $data.settingData.checked38 = $event)
              }, null, 8, ["modelValue"]),
              vue.createVNode(_component_MenuHideHomeBanner, {
                sort: 36,
                modelValue: $data.settingData.checked39,
                "onUpdate:modelValue": _cache[38] || (_cache[38] = ($event) => $data.settingData.checked39 = $event)
              }, null, 8, ["modelValue"])
            ]),
            vue.createElementVNode("div", _hoisted_15, [
              vue.createVNode(_component_MenuLogoUrl, {
                sort: 1,
                value: $data.settingData.logourl,
                "onUpdate:value": _cache[39] || (_cache[39] = ($event) => $data.settingData.logourl = $event)
              }, null, 8, ["value"]),
              vue.createVNode(_component_MenuCreatereply, {
                sort: 2,
                value: $data.settingData.QuickReply,
                "onUpdate:value": _cache[40] || (_cache[40] = ($event) => $data.settingData.QuickReply = $event)
              }, null, 8, ["value"]),
              vue.createVNode(_component_MenuBlockKeyword, {
                sort: 3,
                value: $data.settingData.blockkeywrod,
                "onUpdate:value": _cache[41] || (_cache[41] = ($event) => $data.settingData.blockkeywrod = $event)
              }, null, 8, ["value"]),
              vue.createVNode(_component_MenuBlockuserlist, {
                sort: 4,
                value: $data.settingData.blockList,
                "onUpdate:value": _cache[42] || (_cache[42] = ($event) => $data.settingData.blockList = $event)
              }, null, 8, ["value"]),
              vue.createVNode(_component_MenuShieldPosts, {
                sort: 5,
                value: $data.settingData.checked21,
                "onUpdate:value": _cache[43] || (_cache[43] = ($event) => $data.settingData.checked21 = $event)
              }, null, 8, ["value"]),
              vue.createVNode(_component_MenuOtherCss, {
                sort: 6,
                value: $data.settingData.othercss,
                "onUpdate:value": _cache[44] || (_cache[44] = ($event) => $data.settingData.othercss = $event)
              }, null, 8, ["value"])
            ]),
            vue.createElementVNode("div", _hoisted_16, [
              vue.createVNode(_component_UserTags, {
                value: $data.settingData.usertags,
                "onUpdate:value": _cache[45] || (_cache[45] = ($event) => $data.settingData.usertags = $event)
              }, null, 8, ["value"])
            ]),
            vue.createElementVNode("div", _hoisted_17, [
              vue.createVNode(_component_GPTconfig, {
                value: $data.settingData.gptdata,
                "onUpdate:value": _cache[46] || (_cache[46] = ($event) => $data.settingData.gptdata = $event)
              }, null, 8, ["value"])
            ]),
            vue.createElementVNode("div", _hoisted_18, [
              vue.createVNode(_component_Themes, {
                modelValue: $data.settingData.themes,
                "onUpdate:modelValue": _cache[47] || (_cache[47] = ($event) => $data.settingData.themes = $event)
              }, null, 8, ["modelValue"])
            ]),
            vue.createElementVNode("div", _hoisted_19, [
              vue.createVNode(_component_SyncBackup, {
                value: $data.settingData.syncbackup,
                "onUpdate:value": _cache[48] || (_cache[48] = ($event) => $data.settingData.syncbackup = $event)
              }, null, 8, ["value"])
            ])
          ])
        ]),
        vue.createElementVNode("div", _hoisted_20, [
          vue.createElementVNode("button", {
            class: "save",
            onClick: _cache[49] || (_cache[49] = (...args) => $options.save && $options.save(...args))
          }, "保存"),
          vue.createElementVNode("button", {
            class: "saveload",
            onClick: _cache[50] || (_cache[50] = (...args) => $options.saveload && $options.saveload(...args))
          }, "保存并刷新"),
          vue.createElementVNode("button", {
            class: "floorlottery",
            onClick: _cache[51] || (_cache[51] = (...args) => $options.openFloorlottery && $options.openFloorlottery(...args))
          }, "楼层抽奖"),
          vue.createElementVNode("button", {
            style: { "margin-left": "8px" },
            class: "detection",
            onClick: _cache[52] || (_cache[52] = (...args) => $options.checkversion && $options.checkversion(...args))
          }, " 检测新版本 ")
        ])
      ]),
      vue.createVNode(_component_FloorLottery),
      vue.createVNode(_component_UsageTip),
      vue.createVNode(_component_ReplyTBEnjoy),
      vue.createVNode(_component_Signature)
    ]);
  }
  const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
  const app = vue.createApp(App);
  $$1("body").append('<div id="messageToast"></div>');
  app.config.globalProperties.$messageToast = function(message) {
    const messageElement = document.createElement("div");
    messageElement.className = "messageToast-text";
    messageElement.innerText = message;
    document.getElementById("messageToast").appendChild(messageElement);
    setTimeout(() => {
      messageElement.remove();
    }, 3e3);
  };
  app.mount(
    (() => {
      const appDiv = document.createElement("div");
      document.body.append(appDiv);
      return appDiv;
    })()
  );

})(Vue, pangu, marked, jQuery);