const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/Home-XT_W23CL.js","js/vue-vendor-o3p-Y_v4.js","js/timecountdown-BBCjJ0KY.js","js/element-plus-pFwXBqSo.js","js/icons-BvcXG-r-.js","js/note-B8FT25gi.js","js/contest-DTclkO4X.js","js/utils-44Y5lmkt.js","js/terminal-CLC_Uyhw.js","js/echarts-tmlBSIFE.js","js/markdown-DJCn8-_8.js","css/Home-BvoY9MeQ.css","css/el-carousel-item-JzNj8up6.css","css/el-card-fwQOLwdi.css","css/el-progress-CRUnX9rZ.css","js/First-DP4IbiF6.js","css/First-BFsGUY9-.css","js/index-DCvc-XTQ.js","js/github-CVCDkFbM.js","js/oauth-D1N18Fq3.js","js/gitee-DslvARdl.js","js/external-link-jB9pY9DH.js","css/external-link-zAJIoJjT.css","css/el-alert-G57rL0jl.css","js/index-C5nSdhYc.js","js/faq-D4J0xBkD.js","js/resource-Bl1zj5-e.js","js/about-Ccz9iy83.js","js/wip-K_kkJyZG.js","js/vip-DYEDaKd3.js","js/PaymentDialog-CMQjkzpc.js","js/InfoRound-ZrjoWu_E.js","css/vip-D3F0m3xz.css","js/member-DMnTaJcA.js","js/links-BE9C7Uaj.js","js/cdkey-TBlI7H5L.js","js/version-d_fPAVDv.js","css/el-timeline-item-D1lQQEKw.css","js/thanks-D5QAJZOJ.js","css/thanks-KG1bXwAu.css","css/el-link-B58a4a3I.css","js/license-D0H0_oa3.js","js/sponsor-CPfbItEX.js","js/data-CyftihKI.js","js/contest-CoH0Wqam.js","js/agreement-DICRJFnn.js","js/privacy-CIuC1wBL.js","js/index-DcANpzBi.js","js/store-0IXJgUG2.js","js/optbar-YTgqxE65.js","css/optbar-DfhehBsr.css","css/store-BnUUviTX.css","css/el-input-number-D6iOyBgb.css","css/el-pagination-DvY-LlDT.css","css/el-cascader-panel-CwwZmIdk.css","js/school-DFmIu3BR.js","js/index-C3A6QHTc.js","js/home-CQrKwhi_.js","js/emojitag-BuoEGFG8.js","js/editor.vue_vue_type_style_index_0_lang-Kxz1wqhA.js","js/codemirror-vsJHadTW.js","js/clike-UX4Jju20.js","css/clike-Ceh5EzwN.css","css/editor-CZSj2ZRU.css","css/home-CcIpvXWs.css","js/set-D_oN1i2F.js","js/TableOfContents-DpNGazgP.js","js/movescroll-BxTSLcPj.js","css/TableOfContents-F85hT4JQ.css","css/el-text-swWn-Tng.css","js/AD.vue_vue_type_style_index_0_lang-DvHL3qtW.js","css/AD-Dw-QXpIV.css","js/comment-D85D2cyT.js","css/comment-epCJ0K-i.css","css/set-Cp7b4p-I.css","js/my-ByJz_ivG.js","css/my-sloUdKIW.css","js/index-CKXGfD_T.js","js/setting-BprYwecA.js","js/Icon-Brr_aL5H.js","css/Icon-C-F5609c.css","js/config-ZgyRWyZB.js","css/setting-DleM7ipB.css","js/honor-LwSmxTlf.js","js/tree-COi5nsc2.js","css/tree-L7vPC9Tb.css","css/honor-DLA9Nwug.css","js/home-BU9tn-3r.js","css/home-1ipi6_Ay.css","css/el-upload-C18V_v4h.css","css/el-avatar-BmRr_O8d.css","js/statistics-DWU7ch1V.js","css/statistics-AtQMuZS9.css","css/el-rate-BMND9h15.css","js/range-B7-n2umz.js","css/range-CwQOIn2J.css","js/picturebed-BcwUVSn1.js","js/download-D8UNd_gp.js","js/base64-DKMy4_rM.js","css/picturebed-B8B5jAGi.css","js/files-DZRgmtyA.js","js/api-C8lCs4QY.js","js/hackground-DMT6hkXV.js","js/PowerSettingsNewRound-liADjO_p.js","css/hackground-CMz1ynJH.css","css/el-slider-DBAo9kAL.css","css/el-descriptions-item-o9ObloqJ.css","js/hackground-page-D8w-4jlu.js","css/el-autocomplete-FWy0bYvt.css","css/el-breadcrumb-item-DNDT2TZX.css","js/betterfile-5n9esO3V.js","js/el-dropdown-item-l0sNRNKZ.js","css/betterfile-DawMS4UD.css","css/el-dropdown-BwcXtQe9.css","js/warjax-iVOsaMrh.js","js/code-Cjzl4NKp.js","js/photo-DRjGqRNg.js","css/photo-C17p5Kb-.css","css/warjax-C7314Q43.css","js/libs-ZKky3ORE.js","js/share-DROohQz6.js","css/share-DRpil-Zh.css","js/share-item-MSEphxoy.js","js/render_file-D4aYXK-A.js","css/share-item-DeBAQoOg.css","js/login-q8Lo8DwA.js","css/login-DNjSj_-h.css","js/phone-HbY2BIZG.js","css/phone-BJP-F6eF.css","js/register-CeP7THRW.js","css/register-DUsBVP3h.css","js/forgotpass-HqWzm9yG.js","js/logout-WfDo3Mg8.js","js/index-DKBaTSPR.js","css/index-DgAEuVCa.css","js/index-Ck6nt413.js","css/index-C9ZbgmdO.css","js/set-C-pEq4VH.js","js/ProgressButtons.vue_vue_type_script_setup_true_lang-CKjLopRL.js","css/set-DzmyuW_0.css","css/el-calendar-CPqKY299.css","js/inter-m_lWOz21.js","js/cve-ChLZ5sg3.js","css/cve-DL4nk19V.css","js/llm-9iejZWI9.js","css/llm-BJakUQ5B.css","js/home-BHR3_2iH.js","css/home-tncqmZ1Q.css","css/el-checkbox-group-D_6SYB2i.css","js/home-CUS1PidF.js","css/home-139tnwJ8.css","js/home-CmrQMnzk.js","js/explore-Csh7esyt.js","css/home-BwTa579R.css","js/admin-D6gN3rId.js","js/Upload.vue_vue_type_script_setup_true_lang-bzPRItR6.js","js/chunkupload-Cd227RiR.js","js/admin-CHpAGOSH.js","css/admin-D0cgVxEf.css","js/container-DZzbp0_g.js","js/debounce-BiGAU9nN.js","css/container-CquQYk4w.css","js/info-B-TE1WUD.js","css/info-B9S_WhB2.css","css/el-collapse-item-D29OBs1N.css","css/el-skeleton-item-BLY1jEuR.css","js/info-bk7VLn0H.js","js/team-7ynVVHUx.js","css/info-BljifWTa.css","js/index-CEYFz7XE.js","js/set-BwRsbYIH.js","css/set-C8BaHqz5.css","js/create-n8PIjmzn.js","css/create-CpZHYJnz.css","js/factory-_Q5Ef2Qo.js","css/factory-DGuHXGE9.css","js/info-CSXBaM5g.js","css/info-Dc2kJ8t4.css","css/el-date-picker-panel-B-USwbZV.css","js/admin-Dn842pfI.js","css/admin-g8VPxGCc.css","js/info-Dhmyo8ev.js","css/info-B6IjO5rM.css","css/el-timeline-1_xTHAoF.css","js/index-9L_bJWfV.js","js/home-Cv5LyCeD.js","css/home-DEYplwgg.css","js/index-C-lGOVMp.js","js/home-B1Q8QRWY.js","css/home-OEgirNwy.css","js/index-DprTjYA3.js","js/home-sOthbn6g.js","js/el-sub-menu-l0sNRNKZ.js","js/home_noteam-BukAo6AS.js","css/home_noteam-CNShaQks.css","css/home-CG4SStCk.css","js/statistics-w2BRhSGQ.js","css/statistics-BZ27IzTN.css","js/home-tYCxeSoF.js","js/sheet-DrCAyGwR.js","js/info-B4Q4Vw3-.js","js/admin-CrW_-KI-.js","js/add-BS_kiQbo.js","js/setting-BdaR6XD8.js","css/setting-CWd8IiJy.css","js/notice-Dlxyl67I.js","js/rank-Dm6JkkxL.js","js/rank-4JWWsYZI.js","css/rank-BFK7OmZW.css","js/apply-D54fqIhj.js","js/admin-D9lOg0g1.js","js/home-CNX4q2AA.js","js/awd-qgLZo9UI.js","js/index-CTBK2gb5.js","css/index-iJTkaVR0.css","js/home-BSz4u43u.js","css/home-Cqv6wuWs.css","js/info-518_0Fz9.js","css/info-BYmQdwkR.css","js/index-j1PgaiCN.js","js/workshop-Bvs1QBxh.js","css/workshop-DfReiO8d.css","js/sheet-hxJ4H9yz.js","js/admin-BDlye3zk.js","js/info-BefwGxU1.js","js/add-BP8ymkfg.js","js/use-rHCIKKX1.js","css/use-DlJ56Ajf.css","js/log-C61JWGPu.js","js/data-CNPVOA-j.js","css/data-3jZ9ZDyP.css","js/info-DXJthBHD.js","css/info-CQIkvLCR.css","js/mall-q4gV3fRY.js","js/index-Bs7ahDeU.js","js/admin-Dm-h_-a6.js","css/admin-uCluzLv4.css","js/workshop-DcNQtGQ8.js","css/workshop-DZovgbmP.css","js/deeps-BYeSOHxO.js","js/index-CbTdyckc.js","js/home-B2h7RoHF.js","css/home-CIsZHdOP.css","js/skilltree-Dl0I4aKJ.js","js/index-eSMyp0L6.js","js/index-Bdhi43Zz.js","js/admin-BQwJYtuB.js","css/admin-CpwCxklh.css","js/table-CfNGNmhY.js","css/style-AqpmVMkT.css","js/codemirror-editor-n6I9ozj6.js","js/preview-DOv-llKH.js","js/index-BDIWSQBv.js","js/github-BnM3C7Kj.js","js/index-DLTAdhfY.js","js/interopRequireDefault-C1NHXBkA.js","js/index-DkaZyniy.js","js/index-D3a8f7AL.js","js/cdn-B0Bmq7OI.js","js/index-WE7Z8NM-.js","js/vmdpreview-ai-DB9biWGG.js","js/markdown-media-BDLs850F.js","css/markdown-media-Bbr5-4hp.css","css/codemirror-editor-BklC5WwX.css","css/base-editor-Bkqx2mai.css","css/github-TAxYPgbA.css","css/highlight-lines-BrWMmvgw.css","css/preview-qTHkbQw3.css","css/copy-code-Cl9ucsk-.css"])))=>i.map(i=>d[i]);
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,i=Math.pow,l=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,s=(e,t)=>{for(var n in t||(t={}))r.call(t,n)&&l(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&l(e,n,t[n]);return e},c=(e,o)=>t(e,n(o)),d=(e,t)=>{var n={};for(var i in e)r.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&o)for(var i of o(e))t.indexOf(i)<0&&a.call(e,i)&&(n[i]=e[i]);return n},u=(e,t,n)=>l(e,"symbol"!=typeof t?t+"":t,n),p=(e,t,n)=>new Promise((o,r)=>{var a=e=>{try{l(n.next(e))}catch(t){r(t)}},i=e=>{try{l(n.throw(e))}catch(t){r(t)}},l=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,i);l((n=n.apply(e,t)).next())});import{y as m,r as f,h,j as v,U as g,z as b,B as y,A as w,l as E,I as k,J as _,R as S,Q as x,a5 as L,O as C,n as A,E as M,ay as T,P as D,D as O,u as H,al as I,ah as P,L as j,H as N,e as R,m as z,f as V,o as B,g as q,c as U,s as F,w as $,az as W,W as G,K,Z as Y,C as J,ae as Z,i as Q,aA as X,a2 as ee,aa as te,aB as ne,S as oe,ar as re,M as ae,aC as ie,X as le,a3 as se,Y as ce,v as de,T as ue,aD as pe,aE as me,aF as fe,au as he}from"./vue-vendor-o3p-Y_v4.js";import{a as ve}from"./utils-44Y5lmkt.js";import{E as ge,c as be,a as ye,b as we,d as Ee,e as ke,f as _e,h as Se,i as xe,j as Le,k as Ce,l as Ae,m as Me,n as Te,o as De,p as Oe,q as He,v as Ie,r as Pe,s as je,t as Ne,u as Re,w as ze,x as Ve,y as Be,z as qe,A as Ue,B as Fe,C as $e,D as We,F as Ge,G as Ke,H as Ye,I as Je,J as Ze,K as Qe,L as Xe,M as et,N as tt,O as nt,P as ot,Q as rt,R as at,S as it}from"./element-plus-pFwXBqSo.js";import{x as lt}from"./terminal-CLC_Uyhw.js";import{e as st,r as ct}from"./echarts-tmlBSIFE.js";import{P as dt}from"./markdown-DJCn8-_8.js";import{l as ut,F as pt}from"./icons-BvcXG-r-.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const mt={},ft=function(e,t,n){let o=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));o=Promise.allSettled(t.map(e=>{if((e=function(e){return"/"+e}(e))in mt)return;mt[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${o}`))return;const r=document.createElement("link");return r.rel=t?"stylesheet":"modulepreload",t||(r.as="script"),r.crossOrigin="",r.href=e,n&&r.setAttribute("nonce",n),document.head.appendChild(r),t?new Promise((t,n)=>{r.addEventListener("load",t),r.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function r(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(t=>{for(const e of t||[])"rejected"===e.status&&r(e.reason);return e().catch(r)})},ht=e=>{var t;const n={title:e.title||"消息提醒",message:e.message,duration:null!=(t=e.duration)?t:4e3,position:e.position||"top-right",offset:e.offset||100,customClass:"nss-notify"};e.isHtml&&(n.dangerouslyUseHTMLString=!0),e.type&&(n.type=e.type),e.icon&&(n.iconClass=e.icon),e.onClose&&(n.onClose=e.onClose),e.onClick&&(n.onClick=e.onClick),ge(n)},vt={success:e=>{ht(c(s({},e),{type:"success"}))},warning:e=>{ht(c(s({},e),{type:"warning"}))},info:e=>{ht(c(s({},e),{type:"info"}))},error:e=>{ht(c(s({},e),{type:"error"}))},new:e=>{ht(e)},closeAll:()=>{ge.closeAll()}};var gt=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.REQUIRE_AUTH=301]="REQUIRE_AUTH",e[e.REQUIRE_LOGIN=402]="REQUIRE_LOGIN",e[e.UNAUTHORIZED=201]="UNAUTHORIZED",e[e.NOT_FOUND=202]="NOT_FOUND",e[e.VALIDATION_ERROR=203]="VALIDATION_ERROR",e[e.FORBIDDEN=204]="FORBIDDEN",e[e.LIMIT_EXCEEDED=205]="LIMIT_EXCEEDED",e))(gt||{});const bt="NSS_",yt=e=>e.startsWith(bt)?e:`${bt}${e}`,wt=(e,t)=>{try{const n=yt(e),o=JSON.stringify(t);localStorage.setItem(n,o)}catch(n){}},Et=(e,t)=>{try{const n=yt(e),o=localStorage.getItem(n);return null===o?t:JSON.parse(o)}catch(n){return t}},kt=e=>{try{const t=yt(e);localStorage.removeItem(t)}catch(t){}},_t=ve.create({baseURL:"/api/",timeout:3e4,withCredentials:!0}),St=()=>{var e;return"undefined"!=typeof window&&(null==(e=window.__PRERENDER__)?void 0:e.enabled)};let xt=!1;const Lt=["/user/login/","/user/login/rtoken/","/user/info/"],Ct=e=>Lt.some(t=>e===t);_t.interceptors.request.use(e=>(e.url&&Ct(e.url)&&(xt=!0),e),e=>Promise.reject(e)),_t.interceptors.response.use(e=>{const{data:t,config:n}=e;return t.code!==gt.REQUIRE_LOGIN||xt?t.code===gt.REQUIRE_AUTH?St()?t:(vt.info({message:"请先进行实名认证",duration:2e3}),window.location.href.includes("/user/phone")||(window.location.href=`/user/phone?redirect=${encodeURIComponent(window.location.pathname)}`),Promise.resolve({code:t.code,data:null})):(n.url&&Ct(n.url)&&(xt=!1),t):St()?t:(vt.info({message:"请先登录!",duration:2e3}),kt("user_state"),window.location.href.includes("/user/login")||(window.location.href=`/user/login?redirect=${encodeURIComponent(window.location.pathname)}`),Promise.resolve({code:t.code,data:null}))},e=>{if("ECONNABORTED"===e.code||"Network Error"===e.message)vt.error({message:"网络请求超时,请检查网络连接",duration:3e3});else if(e.response){const t=e.response.status;t>=500?vt.error({message:"服务器错误,请稍后重试",duration:3e3}):404===t&&vt.error({message:"请求的资源不存在",duration:3e3})}return Promise.reject(e)});const At={get:(e,t=null)=>_t.get(e,{params:t}),post:(e,t=null)=>_t.post(e,t),put:(e,t=null)=>_t.put(e,t),delete:(e,t=null)=>_t.delete(e,{params:t})},Mt=e=>At.post("/utils/upload/image/",e),Tt=e=>At.post("/utils/cdkey/add/",e),Dt=(e,t)=>At.post(`/utils/cdkey/list/${e}/`,t),Ot=e=>At.post("/utils/cdkey/active/",{cdkey:e}),Ht=()=>At.get("/utils/activation/week/top5/"),It=(e,t=!1)=>At.get(t?`/utils/trends/${e}/follow/`:`/utils/trends/${e}/`),Pt=()=>At.get("/utils/trends/my/recent/"),jt=()=>At.get("/utils/activation/week/my/"),Nt=e=>At.post("/utils/warjax/baser/",e),Rt=(e,t)=>At.post(`/utils/ai/session/${e}/update/`,t),zt=e=>At.get("/utils/admin/setting/",{type:e}),Vt=(e,t)=>At.post("/utils/admin/setting/update/",{type:e,data:t}),Bt=e=>At.get(`/utils/other/store/goods/list/${e}/`),qt=e=>At.get(`/utils/admin/other/store/goods/list/${e}/`),Ut=e=>At.post("/utils/admin/other/store/goods/add/",e),Ft=e=>At.get(`/utils/admin/other/store/goods/${e}/info/`),$t=(e,t)=>At.post(`/utils/admin/other/store/goods/${e}/edit/`,t),Wt=(e,t)=>At.post(`/utils/admin/other/store/goods/${e}/cover/upload/`,t),Gt=(e,t)=>At.post(`/utils/admin/other/store/goods/${e}/item/add/`,t),Kt=e=>At.get(`/utils/admin/other/store/goods/${e}/item/list/`),Yt=(e,t,n)=>At.post(`/utils/admin/other/store/goods/${e}/item/${t}/change/`,{state:n}),Jt=(e,t)=>At.post(`/utils/admin/other/store/goods/${e}/item/${t}/delete/`),Zt=(e,t,n)=>At.post(`/utils/admin/other/store/goods/${e}/item/${t}/edit/`,n),Qt=(e,t)=>At.post(`/utils/admin/other/store/goods/${e}/change/`,{state:t}),Xt=e=>At.get(`/utils/other/store/goods/${e}/info/`),en=()=>At.get("/utils/other/user/info/"),tn=e=>At.get(`/utils/other/store/order/list/${e}/`),nn=(e,t)=>At.post("/utils/other/store/order/add/",{orders:e,addr:t}),on=()=>At.get("/utils/other/user/address/list/"),rn=e=>At.post("/utils/other/user/address/add/",e),an=(e,t)=>At.post(`/utils/other/user/address/${e}/update/`,t),ln=e=>At.post(`/utils/other/user/address/${e}/delete/`),sn=e=>At.post(`/utils/other/user/address/${e}/change/`),cn=(e,t)=>At.post(`/utils/admin/other/store/order/list/${e}/`,t),dn=e=>At.post("/utils/admin/other/store/order/edit/",e);var un={exports:{}};
/*!
* Vditor v3.11.2 - A markdown editor written in TypeScript.
*
* MIT License
*
* Copyright (c) 2018-present B3log 开源, b3log.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*/const pn=ye(un.exports=function(){return(()=>{var e={173:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,o,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var a=r;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===o&&(o=!0);var i=o,l=this.diff_commonPrefix(e,n),s=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var c=e.substring(e.length-l);e=e.substring(0,e.length-l),n=n.substring(0,n.length-l);var d=this.diff_compute_(e,n,i,a);return s&&d.unshift(new t.Diff(0,s)),c&&d.push(new t.Diff(0,c)),this.diff_cleanupMerge(d),d},t.prototype.diff_compute_=function(e,o,r,a){var i;if(!e)return[new t.Diff(1,o)];if(!o)return[new t.Diff(n,e)];var l=e.length>o.length?e:o,s=e.length>o.length?o:e,c=l.indexOf(s);if(-1!=c)return i=[new t.Diff(1,l.substring(0,c)),new t.Diff(0,s),new t.Diff(1,l.substring(c+s.length))],e.length>o.length&&(i[0][0]=i[2][0]=n),i;if(1==s.length)return[new t.Diff(n,e),new t.Diff(1,o)];var d=this.diff_halfMatch_(e,o);if(d){var u=d[0],p=d[1],m=d[2],f=d[3],h=d[4],v=this.diff_main(u,m,r,a),g=this.diff_main(p,f,r,a);return v.concat([new t.Diff(0,h)],g)}return r&&e.length>100&&o.length>100?this.diff_lineMode_(e,o,a):this.diff_bisect_(e,o,a)},t.prototype.diff_lineMode_=function(e,o,r){var a=this.diff_linesToChars_(e,o);e=a.chars1,o=a.chars2;var i=a.lineArray,l=this.diff_main(e,o,!1,r);this.diff_charsToLines_(l,i),this.diff_cleanupSemantic(l),l.push(new t.Diff(0,""));for(var s=0,c=0,d=0,u="",p="";s<l.length;){switch(l[s][0]){case 1:d++,p+=l[s][1];break;case n:c++,u+=l[s][1];break;case 0:if(c>=1&&d>=1){l.splice(s-c-d,c+d),s=s-c-d;for(var m=this.diff_main(u,p,!1,r),f=m.length-1;f>=0;f--)l.splice(s,0,m[f]);s+=m.length}d=0,c=0,u="",p=""}s++}return l.pop(),l},t.prototype.diff_bisect_=function(e,o,r){for(var a=e.length,i=o.length,l=Math.ceil((a+i)/2),s=l,c=2*l,d=new Array(c),u=new Array(c),p=0;p<c;p++)d[p]=-1,u[p]=-1;d[s+1]=0,u[s+1]=0;for(var m=a-i,f=m%2!=0,h=0,v=0,g=0,b=0,y=0;y<l&&!((new Date).getTime()>r);y++){for(var w=-y+h;w<=y-v;w+=2){for(var E=s+w,k=(C=w==-y||w!=y&&d[E-1]<d[E+1]?d[E+1]:d[E-1]+1)-w;C<a&&k<i&&e.charAt(C)==o.charAt(k);)C++,k++;if(d[E]=C,C>a)v+=2;else if(k>i)h+=2;else if(f&&(x=s+m-w)>=0&&x<c&&-1!=u[x]&&C>=(S=a-u[x]))return this.diff_bisectSplit_(e,o,C,k,r)}for(var _=-y+g;_<=y-b;_+=2){for(var S,x=s+_,L=(S=_==-y||_!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-_;S<a&&L<i&&e.charAt(a-S-1)==o.charAt(i-L-1);)S++,L++;if(u[x]=S,S>a)b+=2;else if(L>i)g+=2;else if(!f){var C;if((E=s+m-_)>=0&&E<c&&-1!=d[E]&&(k=s+(C=d[E])-E,C>=(S=a-S)))return this.diff_bisectSplit_(e,o,C,k,r)}}}return[new t.Diff(n,e),new t.Diff(1,o)]},t.prototype.diff_bisectSplit_=function(e,t,n,o,r){var a=e.substring(0,n),i=t.substring(0,o),l=e.substring(n),s=t.substring(o),c=this.diff_main(a,i,!1,r),d=this.diff_main(l,s,!1,r);return c.concat(d)},t.prototype.diff_linesToChars_=function(e,t){var n=[],o={};function r(e){for(var t="",r=0,i=-1,l=n.length;i<e.length-1;){-1==(i=e.indexOf("\n",r))&&(i=e.length-1);var s=e.substring(r,i+1);(o.hasOwnProperty?o.hasOwnProperty(s):void 0!==o[s])?t+=String.fromCharCode(o[s]):(l==a&&(s=e.substring(r),i=e.length),t+=String.fromCharCode(l),o[s]=l,n[l++]=s),r=i+1}return t}n[0]="";var a=4e4,i=r(e);return a=65535,{chars1:i,chars2:r(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var o=e[n][1],r=[],a=0;a<o.length;a++)r[a]=t[o.charCodeAt(a)];e[n][1]=r.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,a=0;n<r;)e.substring(a,r)==t.substring(a,r)?a=n=r:o=r,r=Math.floor((o-n)/2+n);return r},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,a=0;n<r;)e.substring(e.length-r,e.length-a)==t.substring(t.length-r,t.length-a)?a=n=r:o=r,r=Math.floor((o-n)/2+n);return r},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,o=t.length;if(0==n||0==o)return 0;n>o?e=e.substring(n-o):n<o&&(t=t.substring(0,n));var r=Math.min(n,o);if(e==t)return r;for(var a=0,i=1;;){var l=e.substring(r-i),s=t.indexOf(l);if(-1==s)return a;i+=s,0!=s&&e.substring(r-i)!=t.substring(0,i)||(a=i,i++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;var r=this;function a(e,t,n){for(var o,a,i,l,s=e.substring(n,n+Math.floor(e.length/4)),c=-1,d="";-1!=(c=t.indexOf(s,c+1));){var u=r.diff_commonPrefix(e.substring(n),t.substring(c)),p=r.diff_commonSuffix(e.substring(0,n),t.substring(0,c));d.length<p+u&&(d=t.substring(c-p,c)+t.substring(c,c+u),o=e.substring(0,n-p),a=e.substring(n+u),i=t.substring(0,c-p),l=t.substring(c+u))}return 2*d.length>=e.length?[o,a,i,l,d]:null}var i,l,s,c,d,u=a(n,o,Math.ceil(n.length/4)),p=a(n,o,Math.ceil(n.length/2));return u||p?(i=p?u&&u[4].length>p[4].length?u:p:u,e.length>t.length?(l=i[0],s=i[1],c=i[2],d=i[3]):(c=i[0],d=i[1],l=i[2],s=i[3]),[l,s,c,d,i[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var o=!1,r=[],a=0,i=null,l=0,s=0,c=0,d=0,u=0;l<e.length;)0==e[l][0]?(r[a++]=l,s=d,c=u,d=0,u=0,i=e[l][1]):(1==e[l][0]?d+=e[l][1].length:u+=e[l][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(d,u)&&(e.splice(r[a-1],0,new t.Diff(n,i)),e[r[a-1]+1][0]=1,a--,l=--a>0?r[a-1]:-1,s=0,c=0,d=0,u=0,i=null,o=!0)),l++;for(o&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l<e.length;){if(e[l-1][0]==n&&1==e[l][0]){var p=e[l-1][1],m=e[l][1],f=this.diff_commonOverlap_(p,m),h=this.diff_commonOverlap_(m,p);f>=h?(f>=p.length/2||f>=m.length/2)&&(e.splice(l,0,new t.Diff(0,m.substring(0,f))),e[l-1][1]=p.substring(0,p.length-f),e[l+1][1]=m.substring(f),l++):(h>=p.length/2||h>=m.length/2)&&(e.splice(l,0,new t.Diff(0,p.substring(0,h))),e[l-1][0]=1,e[l-1][1]=m.substring(0,m.length-h),e[l+1][0]=n,e[l+1][1]=p.substring(h),l++),l++}l++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var o=e.charAt(e.length-1),r=n.charAt(0),a=o.match(t.nonAlphaNumericRegex_),i=r.match(t.nonAlphaNumericRegex_),l=a&&o.match(t.whitespaceRegex_),s=i&&r.match(t.whitespaceRegex_),c=l&&o.match(t.linebreakRegex_),d=s&&r.match(t.linebreakRegex_),u=c&&e.match(t.blanklineEndRegex_),p=d&&n.match(t.blanklineStartRegex_);return u||p?5:c||d?4:a&&!l&&s?3:l||s?2:a||i?1:0}for(var o=1;o<e.length-1;){if(0==e[o-1][0]&&0==e[o+1][0]){var r=e[o-1][1],a=e[o][1],i=e[o+1][1],l=this.diff_commonSuffix(r,a);if(l){var s=a.substring(a.length-l);r=r.substring(0,r.length-l),a=s+a.substring(0,a.length-l),i=s+i}for(var c=r,d=a,u=i,p=n(r,a)+n(a,i);a.charAt(0)===i.charAt(0);){r+=a.charAt(0),a=a.substring(1)+i.charAt(0),i=i.substring(1);var m=n(r,a)+n(a,i);m>=p&&(p=m,c=r,d=a,u=i)}e[o-1][1]!=c&&(c?e[o-1][1]=c:(e.splice(o-1,1),o--),e[o][1]=d,u?e[o+1][1]=u:(e.splice(o+1,1),o--))}o++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var o=!1,r=[],a=0,i=null,l=0,s=!1,c=!1,d=!1,u=!1;l<e.length;)0==e[l][0]?(e[l][1].length<this.Diff_EditCost&&(d||u)?(r[a++]=l,s=d,c=u,i=e[l][1]):(a=0,i=null),d=u=!1):(e[l][0]==n?u=!0:d=!0,i&&(s&&c&&d&&u||i.length<this.Diff_EditCost/2&&s+c+d+u==3)&&(e.splice(r[a-1],0,new t.Diff(n,i)),e[r[a-1]+1][0]=1,a--,i=null,s&&c?(d=u=!0,a=0):(l=--a>0?r[a-1]:-1,d=u=!1),o=!0)),l++;o&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var o,r=0,a=0,i=0,l="",s="";r<e.length;)switch(e[r][0]){case 1:i++,s+=e[r][1],r++;break;case n:a++,l+=e[r][1],r++;break;case 0:a+i>1?(0!==a&&0!==i&&(0!==(o=this.diff_commonPrefix(s,l))&&(r-a-i>0&&0==e[r-a-i-1][0]?e[r-a-i-1][1]+=s.substring(0,o):(e.splice(0,0,new t.Diff(0,s.substring(0,o))),r++),s=s.substring(o),l=l.substring(o)),0!==(o=this.diff_commonSuffix(s,l))&&(e[r][1]=s.substring(s.length-o)+e[r][1],s=s.substring(0,s.length-o),l=l.substring(0,l.length-o))),r-=a+i,e.splice(r,a+i),l.length&&(e.splice(r,0,new t.Diff(n,l)),r++),s.length&&(e.splice(r,0,new t.Diff(1,s)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,a=0,l="",s=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),c=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),c=!0)),r++;c&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var o,r=0,a=0,i=0,l=0;for(o=0;o<e.length&&(1!==e[o][0]&&(r+=e[o][1].length),e[o][0]!==n&&(a+=e[o][1].length),!(r>t));o++)i=r,l=a;return e.length!=o&&e[o][0]===n?l:l+(t-i)},t.prototype.diff_prettyHtml=function(e){for(var t=[],o=/&/g,r=/</g,a=/>/g,i=/\n/g,l=0;l<e.length;l++){var s=e[l][0],c=e[l][1].replace(o,"&").replace(r,"<").replace(a,">").replace(i,"¶<br>");switch(s){case 1:t[l]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case n:t[l]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[l]="<span>"+c+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],o=0;o<e.length;o++)e[o][0]!==n&&(t[o]=e[o][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,o=0,r=0,a=0;a<e.length;a++){var i=e[a][0],l=e[a][1];switch(i){case 1:o+=l.length;break;case n:r+=l.length;break;case 0:t+=Math.max(o,r),o=0,r=0}}return t+=Math.max(o,r)},t.prototype.diff_toDelta=function(e){for(var t=[],o=0;o<e.length;o++)switch(e[o][0]){case 1:t[o]="+"+encodeURI(e[o][1]);break;case n:t[o]="-"+e[o][1].length;break;case 0:t[o]="="+e[o][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,o){for(var r=[],a=0,i=0,l=o.split(/\t/g),s=0;s<l.length;s++){var c=l[s].substring(1);switch(l[s].charAt(0)){case"+":try{r[a++]=new t.Diff(1,decodeURI(c))}catch(p){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var d=parseInt(c,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+c);var u=e.substring(i,i+=d);"="==l[s].charAt(0)?r[a++]=new t.Diff(0,u):r[a++]=new t.Diff(n,u);break;default:if(l[s])throw new Error("Invalid diff operation in diff_fromDelta: "+l[s])}}if(i!=e.length)throw new Error("Delta length ("+i+") does not equal source text length ("+e.length+").");return r},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(t),r=this;function a(e,o){var a=e/t.length,i=Math.abs(n-o);return r.Match_Distance?a+i/r.Match_Distance:i?1:a}var i=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(i=Math.min(a(0,l),i),-1!=(l=e.lastIndexOf(t,n+t.length))&&(i=Math.min(a(0,l),i)));var s,c,d=1<<t.length-1;l=-1;for(var u,p=t.length+e.length,m=0;m<t.length;m++){for(s=0,c=p;s<c;)a(m,n+c)<=i?s=c:p=c,c=Math.floor((p-s)/2+s);p=c;var f=Math.max(1,n-c+1),h=Math.min(n+c,e.length)+t.length,v=Array(h+2);v[h+1]=(1<<m)-1;for(var g=h;g>=f;g--){var b=o[e.charAt(g-1)];if(v[g]=0===m?(v[g+1]<<1|1)&b:(v[g+1]<<1|1)&b|(u[g+1]|u[g])<<1|1|u[g+1],v[g]&d){var y=a(m,g-1);if(y<=i){if(i=y,!((l=g-1)>n))break;f=Math.max(1,2*n-l)}}}if(a(m+1,n)>i)break;u=v}return l},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var o=n.substring(e.start2,e.start2+e.length1),r=0;n.indexOf(o)!=n.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,o=n.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var a=n.substring(e.start2-r,e.start2);a&&e.diffs.unshift(new t.Diff(0,a));var i=n.substring(e.start2+e.length1,e.start2+e.length1+r);i&&e.diffs.push(new t.Diff(0,i)),e.start1-=a.length,e.start2-=a.length,e.length1+=a.length+i.length,e.length2+=a.length+i.length}},t.prototype.patch_make=function(e,o,r){var a,i;if("string"==typeof e&&"string"==typeof o&&void 0===r)a=e,(i=this.diff_main(a,o,!0)).length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===o&&void 0===r)i=e,a=this.diff_text1(i);else if("string"==typeof e&&o&&"object"==typeof o&&void 0===r)a=e,i=o;else{if("string"!=typeof e||"string"!=typeof o||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");a=e,i=r}if(0===i.length)return[];for(var l=[],s=new t.patch_obj,c=0,d=0,u=0,p=a,m=a,f=0;f<i.length;f++){var h=i[f][0],v=i[f][1];switch(c||0===h||(s.start1=d,s.start2=u),h){case 1:s.diffs[c++]=i[f],s.length2+=v.length,m=m.substring(0,u)+v+m.substring(u);break;case n:s.length1+=v.length,s.diffs[c++]=i[f],m=m.substring(0,u)+m.substring(u+v.length);break;case 0:v.length<=2*this.Patch_Margin&&c&&i.length!=f+1?(s.diffs[c++]=i[f],s.length1+=v.length,s.length2+=v.length):v.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(s,p),l.push(s),s=new t.patch_obj,c=0,p=m,d=u)}1!==h&&(d+=v.length),h!==n&&(u+=v.length)}return c&&(this.patch_addContext_(s,p),l.push(s)),l},t.prototype.patch_deepCopy=function(e){for(var n=[],o=0;o<e.length;o++){var r=e[o],a=new t.patch_obj;a.diffs=[];for(var i=0;i<r.diffs.length;i++)a.diffs[i]=new t.Diff(r.diffs[i][0],r.diffs[i][1]);a.start1=r.start1,a.start2=r.start2,a.length1=r.length1,a.length2=r.length2,n[o]=a}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var o=this.patch_addPadding(e);t=o+t+o,this.patch_splitMax(e);for(var r=0,a=[],i=0;i<e.length;i++){var l,s,c=e[i].start2+r,d=this.diff_text1(e[i].diffs),u=-1;if(d.length>this.Match_MaxBits?-1!=(l=this.match_main(t,d.substring(0,this.Match_MaxBits),c))&&(-1==(u=this.match_main(t,d.substring(d.length-this.Match_MaxBits),c+d.length-this.Match_MaxBits))||l>=u)&&(l=-1):l=this.match_main(t,d,c),-1==l)a[i]=!1,r-=e[i].length2-e[i].length1;else if(a[i]=!0,r=l-c,d==(s=-1==u?t.substring(l,l+d.length):t.substring(l,u+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[i].diffs)+t.substring(l+d.length);else{var p=this.diff_main(d,s,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(p)/d.length>this.Patch_DeleteThreshold)a[i]=!1;else{this.diff_cleanupSemanticLossless(p);for(var m,f=0,h=0;h<e[i].diffs.length;h++){var v=e[i].diffs[h];0!==v[0]&&(m=this.diff_xIndex(p,f)),1===v[0]?t=t.substring(0,l+m)+v[1]+t.substring(l+m):v[0]===n&&(t=t.substring(0,l+m)+t.substring(l+this.diff_xIndex(p,f+v[1].length))),v[0]!==n&&(f+=v[1].length)}}}}return[t=t.substring(o.length,t.length-o.length),a]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,o="",r=1;r<=n;r++)o+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=n,e[r].start2+=n;var a=e[0],i=a.diffs;if(0==i.length||0!=i[0][0])i.unshift(new t.Diff(0,o)),a.start1-=n,a.start2-=n,a.length1+=n,a.length2+=n;else if(n>i[0][1].length){var l=n-i[0][1].length;i[0][1]=o.substring(i[0][1].length)+i[0][1],a.start1-=l,a.start2-=l,a.length1+=l,a.length2+=l}return 0==(i=(a=e[e.length-1]).diffs).length||0!=i[i.length-1][0]?(i.push(new t.Diff(0,o)),a.length1+=n,a.length2+=n):n>i[i.length-1][1].length&&(l=n-i[i.length-1][1].length,i[i.length-1][1]+=o.substring(0,l),a.length1+=l,a.length2+=l),o},t.prototype.patch_splitMax=function(e){for(var o=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=o)){var a=e[r];e.splice(r--,1);for(var i=a.start1,l=a.start2,s="";0!==a.diffs.length;){var c=new t.patch_obj,d=!0;for(c.start1=i-s.length,c.start2=l-s.length,""!==s&&(c.length1=c.length2=s.length,c.diffs.push(new t.Diff(0,s)));0!==a.diffs.length&&c.length1<o-this.Patch_Margin;){var u=a.diffs[0][0],p=a.diffs[0][1];1===u?(c.length2+=p.length,l+=p.length,c.diffs.push(a.diffs.shift()),d=!1):u===n&&1==c.diffs.length&&0==c.diffs[0][0]&&p.length>2*o?(c.length1+=p.length,i+=p.length,d=!1,c.diffs.push(new t.Diff(u,p)),a.diffs.shift()):(p=p.substring(0,o-c.length1-this.Patch_Margin),c.length1+=p.length,i+=p.length,0===u?(c.length2+=p.length,l+=p.length):d=!1,c.diffs.push(new t.Diff(u,p)),p==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(p.length))}s=(s=this.diff_text2(c.diffs)).substring(s.length-this.Patch_Margin);var m=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);""!==m&&(c.length1+=m.length,c.length2+=m.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=m:c.diffs.push(new t.Diff(0,m))),d||e.splice(++r,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var o=[];if(!e)return o;for(var r=e.split("\n"),a=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<r.length;){var l=r[a].match(i);if(!l)throw new Error("Invalid patch string: "+r[a]);var s=new t.patch_obj;for(o.push(s),s.start1=parseInt(l[1],10),""===l[2]?(s.start1--,s.length1=1):"0"==l[2]?s.length1=0:(s.start1--,s.length1=parseInt(l[2],10)),s.start2=parseInt(l[3],10),""===l[4]?(s.start2--,s.length2=1):"0"==l[4]?s.length2=0:(s.start2--,s.length2=parseInt(l[4],10)),a++;a<r.length;){var c=r[a].charAt(0);try{var d=decodeURI(r[a].substring(1))}catch(u){throw new Error("Illegal escape in patch_fromText: "+d)}if("-"==c)s.diffs.push(new t.Diff(n,d));else if("+"==c)s.diffs.push(new t.Diff(1,d));else if(" "==c)s.diffs.push(new t.Diff(0,d));else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+d)}a++}}return o},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[o+1]=e+encodeURI(this.diffs[o][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},408:(e,t,n)=>{n.d(t,{default:()=>I});var o=n(135),r=n(840),a=n(775),i=n(428),l=n(325),s=n(483),c=n(999),d=function(e){void 0===e&&(e=document);var t=function(e){var t=document.createElement("img");t.src=e.getAttribute("data-src"),t.addEventListener("load",function(){e.getAttribute("style")||e.getAttribute("class")||e.getAttribute("width")||e.getAttribute("height")||t.naturalHeight>t.naturalWidth&&t.naturalWidth/t.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&t.naturalHeight>window.innerHeight-40&&(e.style.height=window.innerHeight-40+"px"),e.src=t.src}),e.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return e.querySelectorAll("img").forEach(function(e){e.getAttribute("data-src")&&t(e)}),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),e.querySelectorAll("img").forEach(function(e){window.vditorImageIntersectionObserver.observe(e)})):(window.vditorImageIntersectionObserver=new IntersectionObserver(function(e){e.forEach(function(e){(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)&&e.target.getAttribute("data-src")&&t(e.target)})}),e.querySelectorAll("img").forEach(function(e){window.vditorImageIntersectionObserver.observe(e)}))},u=n(472),p=n(280),m=n(637),f=n(825),h=n(11),v=n(194),g=n(436),b=n(229),y=n(145),w=n(538),E=n(413),k=n(106),_=n(673),S=n(214),x=n(810),L=function(e,t){if(void 0===t&&(t="zh_CN"),"undefined"!=typeof speechSynthesis&&"undefined"!=typeof SpeechSynthesisUtterance){var n=function(){var e,n;return speechSynthesis.getVoices().forEach(function(o){o.lang===t.replace("_","-")&&(e=o),o.default&&(n=o)}),e||(e=n),e},o='<svg><use xlink:href="#vditor-icon-play"></use></svg>',r='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(o='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',r='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var a=document.querySelector(".vditor-speech");a||((a=document.createElement("button")).className="vditor-speech",e.insertAdjacentElement("beforeend",a),void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=n));var i=n(),l=new SpeechSynthesisUtterance;l.voice=i,l.onend=l.onerror=function(){a.style.display="none",speechSynthesis.cancel(),a.classList.remove("vditor-speech--current"),a.innerHTML=o},e.addEventListener(void 0!==window.ontouchstart?"touchend":"click",function(t){var n=t.target;if(n.classList.contains("vditor-speech")||n.parentElement.classList.contains("vditor-speech"))return a.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),a.innerHTML=r):(speechSynthesis.pause(),a.innerHTML=o)):(l.text=a.getAttribute("data-text"),speechSynthesis.speak(l),a.classList.add("vditor-speech--current"),a.innerHTML=r),(0,x.Hc)(window.vditorSpeechRange),void e.focus();if(a.style.display="none",speechSynthesis.cancel(),a.classList.remove("vditor-speech--current"),a.innerHTML=o,0!==getSelection().rangeCount){var i=getSelection().getRangeAt(0),s=i.toString().trim();if(s){window.vditorSpeechRange=i.cloneRange();var c=i.getBoundingClientRect();a.innerHTML=o,a.style.display="block",a.style.top=c.top+c.height+document.querySelector("html").scrollTop-20+"px",void 0!==window.ontouchstart?a.style.left=t.changedTouches[t.changedTouches.length-1].pageX+2+"px":a.style.left=t.clientX+2+"px",a.setAttribute("data-text",s)}}})}},C=function(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{s(o.next(e))}catch(t){a(t)}}function l(e){try{s(o.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((o=o.apply(e,t||[])).next())})},A=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},M=function(e){var t,n={anchor:0,cdn:y.g.CDN,customEmoji:{},emojiPath:"".concat(y.g.CDN,"/dist/images/emoji"),hljs:y.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:y.g.MARKDOWN_OPTIONS,math:y.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:y.g.THEME_OPTIONS};return e.cdn&&((null===(t=e.theme)||void 0===t?void 0:t.path)||(n.theme.path="".concat(e.cdn,"/dist/css/content-theme")),e.emojiPath||(n.emojiPath="".concat(e.cdn,"/dist/images/emoji"))),(0,_.T)(n,e)},T=function(e,t){var n=M(t);return(0,E.G)("".concat(n.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){var o=(0,S.X)({autoSpace:n.markdown.autoSpace,gfmAutoLink:n.markdown.gfmAutoLink,codeBlockPreview:n.markdown.codeBlockPreview,emojiSite:n.emojiPath,emojis:n.customEmoji,fixTermTypo:n.markdown.fixTermTypo,footnotes:n.markdown.footnotes,headingAnchor:0!==n.anchor,inlineMathDigit:n.math.inlineDigit,lazyLoadImage:n.lazyLoadImage,linkBase:n.markdown.linkBase,linkPrefix:n.markdown.linkPrefix,listStyle:n.markdown.listStyle,mark:n.markdown.mark,mathBlockPreview:n.markdown.mathBlockPreview,paragraphBeginningSpace:n.markdown.paragraphBeginningSpace,sanitize:n.markdown.sanitize,toc:n.markdown.toc});return(null==t?void 0:t.renderers)&&o.SetJSRenderers({renderers:{Md2HTML:t.renderers}}),o.SetHeadingID(!0),o.Md2HTML(e)})},D=function(e,t,n){return C(void 0,void 0,void 0,function(){var r,g,y,_;return A(this,function(S){switch(S.label){case 0:return r=M(n),[4,T(t,r)];case 1:if(g=S.sent(),r.transform&&(g=r.transform(g)),e.innerHTML=g,e.classList.add("vditor-reset"),r.i18n)return[3,5];if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(r.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return _=(y="vditorI18nScript")+r.lang,document.querySelectorAll('head script[id^="'.concat(y,'"]')).forEach(function(e){e.id!==_&&document.head.removeChild(e)}),[4,(0,E.G)("".concat(r.cdn,"/dist/js/i18n/").concat(r.lang,".js"),_)];case 3:S.sent(),S.label=4;case 4:return[3,6];case 5:window.VditorI18n=r.i18n,S.label=6;case 6:return r.icon?[4,(0,E.G)("".concat(r.cdn,"/dist/js/icons/").concat(r.icon,".js"),"vditorIconScript")]:[3,8];case 7:S.sent(),S.label=8;case 8:return(0,w.Z)(r.theme.current,r.theme.path),1===r.anchor&&e.classList.add("vditor-reset--anchor"),(0,i.O)(e,r.hljs),(0,c.s)(r.hljs,e,r.cdn),(0,u.H)(e,{cdn:r.cdn,math:r.math}),(0,m.i)(e,r.cdn,r.mode),(0,f.J)(e,r.cdn,r.mode),(0,h.K)(e,r.cdn),(0,l.P)(e,r.cdn),(0,s.v)(e,r.cdn),(0,a.p)(e,r.cdn,r.mode),(0,v.P)(e,r.cdn,r.mode),(0,b.B)(e,r.cdn),(0,o.Q)(e,r.cdn),r.render.media.enable&&(0,p.Y)(e),r.speech.enable&&L(e),0!==r.anchor&&(x=r.anchor,document.querySelectorAll(".vditor-anchor").forEach(function(e){1===x&&e.classList.add("vditor-anchor--left"),e.onclick=function(){var t=e.getAttribute("href").substr(1),n=document.getElementById("vditorAnchor-"+t).offsetTop;document.querySelector("html").scrollTop=n}}),window.onhashchange=function(){var e=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));e&&(document.querySelector("html").scrollTop=e.offsetTop)}),r.after&&r.after(),r.lazyLoadImage&&d(e),e.addEventListener("click",function(t){var n=(0,k.lG)(t.target,"SPAN");if(n&&(0,k.fb)(n,"vditor-toc")){var o=e.querySelector("#"+n.getAttribute("data-target-id"));o&&window.scrollTo(window.scrollX,o.offsetTop)}}),[2]}var x})})},O=n(190),H=n(580);const I=function(){function e(){}return e.adapterRender=r,e.previewImage=O.E,e.codeRender=i.O,e.graphvizRender=s.v,e.highlightRender=c.s,e.mathRender=u.H,e.mermaidRender=m.i,e.SMILESRender=f.J,e.markmapRender=h.K,e.flowchartRender=l.P,e.chartRender=a.p,e.abcRender=o.Q,e.mindmapRender=v.P,e.plantumlRender=b.B,e.outlineRender=g.k,e.mediaRender=p.Y,e.speechRender=L,e.lazyLoadImageRender=d,e.md2html=T,e.preview=D,e.setCodeTheme=H.Y,e.setContentTheme=w.Z,e}()},145:(e,t,n)=>{n.d(t,{H:()=>o,g:()=>r});var o="3.11.2",r=function(){function e(){}return e.ZWSP="",e.DROP_EDITOR="application/editor",e.MOBILE_WIDTH=520,e.CLASS_MENU_DISABLED="vditor-menu--disabled",e.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],e.CODE_THEME=["a11y-dark","agate","an-old-hope","androidstudio","arta","atom-one-dark","atom-one-dark-reasonable","base16/3024","base16/apathy","base16/apprentice","base16/ashes","base16/atelier-cave","base16/atelier-dune","base16/atelier-estuary","base16/atelier-forest","base16/atelier-heath","base16/atelier-lakeside","base16/atelier-plateau","base16/atelier-savanna","base16/atelier-seaside","base16/atelier-sulphurpool","base16/atlas","base16/bespin","base16/black-metal","base16/black-metal-bathory","base16/black-metal-burzum","base16/black-metal-dark-funeral","base16/black-metal-gorgoroth","base16/black-metal-immortal","base16/black-metal-khold","base16/black-metal-marduk","base16/black-metal-mayhem","base16/black-metal-nile","base16/black-metal-venom","base16/brewer","base16/bright","base16/brogrammer","base16/brush-trees-dark","base16/chalk","base16/circus","base16/classic-dark","base16/codeschool","base16/colors","base16/danqing","base16/darcula","base16/dark-violet","base16/darkmoss","base16/darktooth","base16/decaf","base16/default-dark","base16/dracula","base16/edge-dark","base16/eighties","base16/embers","base16/equilibrium-dark","base16/equilibrium-gray-dark","base16/espresso","base16/eva","base16/eva-dim","base16/flat","base16/framer","base16/gigavolt","base16/google-dark","base16/grayscale-dark","base16/green-screen","base16/gruvbox-dark-hard","base16/gruvbox-dark-medium","base16/gruvbox-dark-pale","base16/gruvbox-dark-soft","base16/hardcore","base16/harmonic16-dark","base16/heetch-dark","base16/helios","base16/hopscotch","base16/horizon-dark","base16/humanoid-dark","base16/ia-dark","base16/icy-dark","base16/ir-black","base16/isotope","base16/kimber","base16/london-tube","base16/macintosh","base16/marrakesh","base16/materia","base16/material","base16/material-darker","base16/material-palenight","base16/material-vivid","base16/mellow-purple","base16/mocha","base16/monokai","base16/nebula","base16/nord","base16/nova","base16/ocean","base16/oceanicnext","base16/onedark","base16/outrun-dark","base16/papercolor-dark","base16/paraiso","base16/pasque","base16/phd","base16/pico","base16/pop","base16/porple","base16/qualia","base16/railscasts","base16/rebecca","base16/ros-pine","base16/ros-pine-moon","base16/sandcastle","base16/seti-ui","base16/silk-dark","base16/snazzy","base16/solar-flare","base16/solarized-dark","base16/spacemacs","base16/summercamp","base16/summerfruit-dark","base16/synth-midnight-terminal-dark","base16/tango","base16/tender","base16/tomorrow-night","base16/twilight","base16/unikitty-dark","base16/vulcan","base16/windows-10","base16/windows-95","base16/windows-high-contrast","base16/windows-nt","base16/woodland","base16/xcode-dusk","base16/zenburn","codepen-embed","dark","devibeans","far","felipec","github-dark","github-dark-dimmed","gml","gradient-dark","hybrid","ir-black","isbl-editor-dark","kimbie-dark","lioshi","monokai","monokai-sublime","night-owl","nnfx-dark","nord","obsidian","panda-syntax-dark","paraiso-dark","pojoaque","qtcreator-dark","rainbow","shades-of-purple","srcery","stackoverflow-dark","sunburst","tomorrow-night-blue","tomorrow-night-bright","tokyo-night-dark","vs2015","xt256","ant-design","a11y-light","arduino-light","ascetic","atom-one-light","base16/atelier-cave-light","base16/atelier-dune-light","base16/atelier-estuary-light","base16/atelier-forest-light","base16/atelier-heath-light","base16/atelier-lakeside-light","base16/atelier-plateau-light","base16/atelier-savanna-light","base16/atelier-seaside-light","base16/atelier-sulphurpool-light","base16/brush-trees","base16/classic-light","base16/cupcake","base16/cupertino","base16/default-light","base16/dirtysea","base16/edge-light","base16/equilibrium-gray-light","base16/equilibrium-light","base16/fruit-soda","base16/github","base16/google-light","base16/grayscale-light","base16/gruvbox-light-hard","base16/gruvbox-light-medium","base16/gruvbox-light-soft","base16/harmonic16-light","base16/heetch-light","base16/humanoid-light","base16/horizon-light","base16/ia-light","base16/material-lighter","base16/mexico-light","base16/one-light","base16/papercolor-light","base16/ros-pine-dawn","base16/sagelight","base16/shapeshifter","base16/silk-light","base16/solar-flare-light","base16/solarized-light","base16/summerfruit-light","base16/synth-midnight-terminal-light","base16/tomorrow","base16/unikitty-light","base16/windows-10-light","base16/windows-95-light","base16/windows-high-contrast-light","brown-paper","base16/windows-nt-light","color-brewer","docco","foundation","github","googlecode","gradient-light","grayscale","idea","intellij-light","isbl-editor-light","kimbie-light","lightfair","magula","mono-blue","nnfx-light","panda-syntax-light","paraiso-light","purebasic","qtcreator-light","routeros","school-book","stackoverflow-light","tokyo-night-light","vs","xcode","default"],e.ALIAS_CODE_LANGUAGES=["abc","plantuml","mermaid","flowchart","echarts","mindmap","graphviz","math","markmap","smiles","js","ts","html","toml","c#","bat"],e.CDN="https://unpkg.com/vditor@".concat("3.11.2"),e.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},e.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},e.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},e.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:"".concat(e.CDN,"/dist/css/content-theme")},e}()},825:(e,t,n)=>{n.d(t,{J:()=>l});var o=n(145),r=n(413),a=n(840),i=n(494),l=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var l=a.SMILESRenderAdapter.getElements(e);l.length>0&&(0,r.G)("".concat(t,"/dist/js/smiles-drawer/smiles-drawer.min.js?v=2.1.7"),"vditorAbcjsScript").then(function(){var e=new SmiDrawer({},{});l.forEach(function(t){var o=a.SMILESRenderAdapter.getCode(t).trim();if("true"!==t.getAttribute("data-processed")&&""!==o.trim()){var r="smiles"+(0,i.Wb)();t.innerHTML='<svg id="'.concat(r,'"></svg>'),e.draw(o,"#"+r,"dark"===n?"dark":void 0),t.setAttribute("data-processed","true")}})})}},135:(e,t,n)=>{n.d(t,{Q:()=>i});var o=n(145),r=n(413),a=n(840),i=function(e,t){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var n=a.abcRenderAdapter.getElements(e);n.length>0&&(0,r.G)("".concat(t,"/dist/js/abcjs/abcjs_basic.min.js"),"vditorAbcjsScript").then(function(){n.forEach(function(e){e.parentElement.classList.contains("vditor-wysiwyg__pre")||e.parentElement.classList.contains("vditor-ir__marker--pre")||"true"!==e.getAttribute("data-processed")&&(ABCJS.renderAbc(e,a.abcRenderAdapter.getCode(e).trim()),e.style.overflowX="auto",e.setAttribute("data-processed","true"))})})}},840:(e,t,n)=>{n.r(t),n.d(t,{mathRenderAdapter:()=>o,SMILESRenderAdapter:()=>r,mermaidRenderAdapter:()=>a,markmapRenderAdapter:()=>i,mindmapRenderAdapter:()=>l,chartRenderAdapter:()=>s,abcRenderAdapter:()=>c,graphvizRenderAdapter:()=>d,flowchartRenderAdapter:()=>u,plantumlRenderAdapter:()=>p});var o={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-math")}},r={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-smiles")}},a={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-mermaid")}},i={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-markmap")}},l={getCode:function(e){return e.getAttribute("data-code")},getElements:function(e){return e.querySelectorAll(".language-mindmap")}},s={getCode:function(e){return e.innerText},getElements:function(e){return e.querySelectorAll(".language-echarts")}},c={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-abc")}},d={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-graphviz")}},u={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-flowchart")}},p={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-plantuml")}}},775:(e,t,n)=>{n.d(t,{p:()=>c});var o=n(145),r=n(413),a=n(840),i=n(494),l=function(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{s(o.next(e))}catch(t){a(t)}}function l(e){try{s(o.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((o=o.apply(e,t||[])).next())})},s=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},c=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var c=a.chartRenderAdapter.getElements(e);c.length>0&&(0,r.G)("".concat(t,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){c.forEach(function(e){return l(void 0,void 0,void 0,function(){var t,o,r;return s(this,function(l){switch(l.label){case 0:if(e.parentElement.classList.contains("vditor-wysiwyg__pre")||e.parentElement.classList.contains("vditor-ir__marker--pre"))return[2];if(!(t=a.chartRenderAdapter.getCode(e).trim()))return[2];l.label=1;case 1:return l.trys.push([1,3,,4]),"true"===e.getAttribute("data-processed")?[2]:[4,(0,i.Qf)(t)];case 2:return o=l.sent(),echarts.init(e,"dark"===n?"dark":void 0).setOption(o),e.setAttribute("data-processed","true"),[3,4];case 3:return r=l.sent(),e.className="vditor-reset--error",e.innerHTML="echarts render error: <br>".concat(r),[3,4];case 4:return[2]}})})})})}},428:(e,t,n)=>{n.d(t,{O:()=>a});var o=n(105),r=n(145),a=function(e,t){Array.from(e.querySelectorAll("pre > code")).filter(function(t,n){return!(t.parentElement.classList.contains("vditor-wysiwyg__pre")||t.parentElement.classList.contains("vditor-ir__marker--pre")||t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-markmap")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math")||t.classList.contains("language-smiles")||t.style.maxHeight.indexOf("px")>-1||e.classList.contains("vditor-preview")&&n>5)}).forEach(function(e){var n,a,i,l=e.innerText;if(e.classList.contains("highlight-chroma")){var s=e.cloneNode(!0);s.querySelectorAll(".highlight-ln").forEach(function(e){e.remove()}),l=s.innerText}else l.endsWith("\n")&&(l=l.substr(0,l.length-1));var c='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(c='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var d=document.createElement("div");d.className="vditor-copy",d.innerHTML='<span aria-label="'.concat((null===(n=window.VditorI18n)||void 0===n?void 0:n.copy)||"复制","\"\nonmouseover=\"this.setAttribute('aria-label', '").concat((null===(a=window.VditorI18n)||void 0===a?void 0:a.copy)||"复制","')\"\nclass=\"vditor-tooltipped vditor-tooltipped__w\"\nonclick=\"event.stopPropagation();this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '").concat((null===(i=window.VditorI18n)||void 0===i?void 0:i.copied)||"已复制","');this.previousElementSibling.blur()\">").concat(c,"</span>");var u=document.createElement("textarea");u.value=(0,o.X)(l),d.insertAdjacentElement("afterbegin",u),t&&t.renderMenu&&t.renderMenu(e,d),e.before(d),e.style.maxHeight=window.outerHeight-40+"px",e.insertAdjacentHTML("afterend",'<span style="position: absolute">'.concat(r.g.ZWSP,"</span>"))})}},325:(e,t,n)=>{n.d(t,{P:()=>i});var o=n(145),r=n(413),a=n(840),i=function(e,t){void 0===t&&(t=o.g.CDN);var n=a.flowchartRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/flowchart.js/flowchart.min.js"),"vditorFlowchartScript").then(function(){n.forEach(function(e){if("true"!==e.getAttribute("data-processed")){var t=flowchart.parse(a.flowchartRenderAdapter.getCode(e));e.innerHTML="",t.drawSVG(e),e.setAttribute("data-processed","true")}})})}},483:(e,t,n)=>{n.d(t,{v:()=>i});var o=n(145),r=n(413),a=n(840),i=function(e,t){void 0===t&&(t=o.g.CDN);var n=a.graphvizRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/graphviz/viz.js"),"vditorGraphVizScript").then(function(){n.forEach(function(e){var t=a.graphvizRenderAdapter.getCode(e);if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&"true"!==e.getAttribute("data-processed")&&""!==t.trim()){try{var n=new Blob(["importScripts('".concat(document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js"),"');")],{type:"application/javascript"}),o=(window.URL||window.webkitURL).createObjectURL(n),r=new Worker(o);new Viz({worker:r}).renderSVGElement(t).then(function(t){e.innerHTML=t.outerHTML}).catch(function(t){e.innerHTML="graphviz render error: <br>".concat(t),e.className="vditor-reset--error"})}catch(i){}e.setAttribute("data-processed","true")}})})}},999:(e,t,n)=>{n.d(t,{s:()=>i});var o=n(145),r=n(413),a=n(290),i=function(e,t,n){void 0===t&&(t=document),void 0===n&&(n=o.g.CDN);var i=e.style;o.g.CODE_THEME.includes(i)||(i="github");var l=document.getElementById("vditorHljsStyle"),s="".concat(n,"/dist/js/highlight.js/styles/").concat(i,".min.css");l&&l.getAttribute("href")!==s&&l.remove(),(0,a.c)("".concat(n,"/dist/js/highlight.js/styles/").concat(i,".min.css"),"vditorHljsStyle"),!1!==e.enable&&0!==t.querySelectorAll("pre > code").length&&(0,r.G)("".concat(n,"/dist/js/highlight.js/highlight.min.js?v=11.7.0"),"vditorHljsScript").then(function(){(0,r.G)("".concat(n,"/dist/js/highlight.js/third-languages.js?v=1.0.1"),"vditorHljsThirdScript").then(function(){t.querySelectorAll("pre > code").forEach(function(t){if(!t.parentElement.classList.contains("vditor-ir__marker--pre")&&!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-smiles")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math"))){""!==e.defaultLang&&-1===t.className.indexOf("language-")&&t.classList.add("language-"+e.defaultLang);var n=t.className.replace("language-","");if(window.hljs.getLanguage(n)||(n="plaintext"),t.innerHTML=window.hljs.highlight(t.textContent,{language:n,ignoreIllegals:!0}).value,t.classList.add("hljs"),e.lineNumber){t.classList.add("vditor-linenumber");var o=t.querySelector(".vditor-linenumber__temp");o||((o=document.createElement("div")).className="vditor-linenumber__temp",t.insertAdjacentElement("beforeend",o));var r=getComputedStyle(t).whiteSpace,a=!1;"pre-wrap"!==r&&"pre-line"!==r||(a=!0);var i="",l=t.textContent.split(/\r\n|\r|\n/g);l.pop(),l.map(function(e){var t="";a&&(o.textContent=e||"\n",t=' style="height:'.concat(o.getBoundingClientRect().height,'px"')),i+="<span".concat(t,"></span>")}),o.style.display="none",i='<span class="vditor-linenumber__rows">'.concat(i,"</span>"),t.insertAdjacentHTML("beforeend",i)}}})})})}},11:(e,t,n)=>{n.d(t,{K:()=>s});var o=n(145),r=n(413),a=n(840),i={},l=function(e,t){var n=window.markmap,o=n.Transformer,r=n.Markmap,a=n.deriveOptions;n.globalCSS;var l=new o;e.innerHTML='<svg style="width:100%"></svg>';var s=e.firstChild,c=r.create(s,null),d=function(e,t){var n=e.transform(t),o=Object.keys(n.features).filter(function(e){return!i[e]});o.forEach(function(e){i[e]=!0});var r=e.getAssets(o),a=r.styles,l=r.scripts,s=window.markmap;return a&&s.loadCSS(a),l&&s.loadJS(l),n}(l,t),u=d.root,p=d.frontmatter,m=a(null==p?void 0:p.markmap);c.setData(u,m),c.fit()},s=function(e,t){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var n=a.markmapRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/markmap/markmap.min.js"),"vditorMarkerScript").then(function(){n.forEach(function(e){var t=a.markmapRenderAdapter.getCode(e);if("true"!==e.getAttribute("data-processed")&&""!==t.trim()){var n=document.createElement("div");n.className="language-markmap",e.parentNode.appendChild(n),l(n,t),"CODE"==e.parentNode.childNodes[0].nodeName&&e.parentNode.removeChild(e.parentNode.childNodes[0])}})})}},472:(e,t,n)=>{n.d(t,{H:()=>s});var o=n(145),r=n(413),a=n(290),i=n(105),l=n(840),s=function(e,t){void 0===e&&(e=document);var n=l.mathRenderAdapter.getElements(e);if(0!==n.length){var s={cdn:o.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(t&&t.math&&(t.math=Object.assign({},s.math,t.math)),"KaTeX"===(t=Object.assign({},s,t)).math.engine)(0,a.c)("".concat(t.cdn,"/dist/js/katex/katex.min.css?v=0.16.9"),"vditorKatexStyle"),(0,r.G)("".concat(t.cdn,"/dist/js/katex/katex.min.js?v=0.16.9"),"vditorKatexScript").then(function(){(0,r.G)("".concat(t.cdn,"/dist/js/katex/mhchem.min.js?v=0.16.9"),"vditorKatexChemScript").then(function(){n.forEach(function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&!e.getAttribute("data-math")){var n=(0,i.X)(l.mathRenderAdapter.getCode(e));e.setAttribute("data-math",n);try{e.innerHTML=katex.renderToString(n,{displayMode:"DIV"===e.tagName,output:"html",macros:t.math.macros})}catch(o){e.innerHTML=o.message,e.className="language-math vditor-reset--error"}e.addEventListener("copy",function(e){e.stopPropagation(),e.preventDefault();var t=e.currentTarget.closest(".language-math");e.clipboardData.setData("text/html",t.innerHTML),e.clipboardData.setData("text/plain",t.getAttribute("data-math"))})}})})});else if("MathJax"===t.math.engine){window.MathJax||(window.MathJax={loader:{paths:{mathjax:"".concat(t.cdn,"/dist/js/mathjax")}},startup:{typeset:!1},tex:{macros:t.math.macros}},Object.assign(window.MathJax,t.math.mathJaxOptions)),(0,r.J)("".concat(t.cdn,"/dist/js/mathjax/tex-svg-full.js"),"protyleMathJaxScript");var c=function(e,t){var n=(0,i.X)(e.textContent).trim(),o=window.MathJax.getMetricsFor(e);o.display="DIV"===e.tagName,window.MathJax.tex2svgPromise(n,o).then(function(o){e.innerHTML="",e.setAttribute("data-math",n),e.append(o),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var r=o.querySelector('[data-mml-node="merror"]');r&&""!==r.textContent.trim()&&(e.innerHTML=r.textContent.trim(),e.className="vditor-reset--error"),t&&t()})};window.MathJax.startup.promise.then(function(){for(var e=[],t=function(t){var o=n[t];o.parentElement.classList.contains("vditor-wysiwyg__pre")||o.parentElement.classList.contains("vditor-ir__marker--pre")||o.getAttribute("data-math")||!(0,i.X)(o.textContent).trim()||e.push(function(e){t===n.length-1?c(o):c(o,e)})},o=0;o<n.length;o++)t(o);!function(e){if(0!==e.length){var t=0,n=e[e.length-1],o=function(){var r=e[t++];r===n?r():r(o)};o()}}(e)})}}}},280:(e,t,n)=>{n.d(t,{Y:()=>r});var o=n(494),r=function(e){e&&e.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");t&&(t.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)?function(e,t){e.insertAdjacentHTML("afterend",'<video controls="controls" src="'.concat(t,'"></video>')),e.remove()}(e,t):t.match(/^.+.(mp3|wav|flac)$/)?function(e,t){e.insertAdjacentHTML("afterend",'<audio controls="controls" src="'.concat(t,'"></audio>')),e.remove()}(e,t):function(e,t){var n=t.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/),r=t.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),a=t.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/),i=t.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/),l=t.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/),s=t.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/),c=t.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/),d=t.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);if(n&&11===n[1].length)e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//www.youtube.com/embed/'.concat(n[1]+(n[2]?"?start="+n[2]:""),'"></iframe>')),e.remove();else if(r&&r[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//player.youku.com/embed/'.concat(r[1],'"></iframe>')),e.remove();else if(a&&a[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="https://v.qq.com/txp/iframe/player.html?vid='.concat(a[1],'"></iframe>')),e.remove();else if(i&&i[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="//coub.com/embed/'.concat(i[1],'?muted=false&autostart=false&originalSize=true&startWithHD=true"></iframe>')),e.remove();else if(l&&l[0])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="https://www.facebook.com/plugins/video.php?href='.concat(encodeURIComponent(l[0]),'"></iframe>')),e.remove();else if(s&&s[2])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="https://www.dailymotion.com/embed/video/'.concat(s[2],'"></iframe>')),e.remove();else if(t.indexOf("bilibili.com")>-1&&(t.indexOf("bvid=")>-1||c&&c[1])){var u={bvid:(0,o.on)("bvid",t)||c&&c[1],page:"1",high_quality:"1",as_wide:"1",allowfullscreen:"true",autoplay:"0"};new URL(t.startsWith("http")?t:"https:"+t).search.split("&").forEach(function(e,t){if(e){0===t&&(e=e.substr(1));var n=e.split("=");u[n[0]]=n[1]}});var p="https://player.bilibili.com/player.html?",m=Object.keys(u);m.forEach(function(e,t){p+="".concat(e,"=").concat(u[e]),t<m.length-1&&(p+="&")}),e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="'.concat(p,'"></iframe>')),e.remove()}else d&&d[1]&&(e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//embed.ted.com/talks/'.concat(d[1],'"></iframe>')),e.remove())}(e,t))})}},637:(e,t,n)=>{n.d(t,{i:()=>c});var o=n(145),r=n(413),a=n(840),i=n(494),l=function(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{s(o.next(e))}catch(t){a(t)}}function l(e){try{s(o.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((o=o.apply(e,t||[])).next())})},s=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},c=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var c=a.mermaidRenderAdapter.getElements(e);0!==c.length&&(0,r.G)("".concat(t,"/dist/js/mermaid/mermaid.min.js?v=11.6.0"),"vditorMermaidScript").then(function(){var e={securityLevel:"loose",altFontFamily:"sans-serif",fontFamily:"sans-serif",startOnLoad:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequence:{useMaxWidth:!0,diagramMarginX:8,diagramMarginY:8,boxMargin:8,showSequenceNumbers:!0},gantt:{leftPadding:75,rightPadding:20}};"dark"===n&&(e.theme="dark"),mermaid.initialize(e),c.forEach(function(e){return l(void 0,void 0,void 0,function(){var t,n,o,r,l;return s(this,function(s){switch(s.label){case 0:if(t=a.mermaidRenderAdapter.getCode(e),"true"===e.getAttribute("data-processed")||""===t.trim())return[2];n="mermaid"+(0,i.Wb)(),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,mermaid.render(n,e.textContent)];case 2:return o=s.sent(),e.innerHTML=o.svg,[3,4];case 3:return r=s.sent(),l=document.querySelector("#"+n),e.innerHTML="".concat(l.outerHTML,'<br>\n<div style="text-align: left"><small>').concat(r.message.replace(/\n/,"<br>"),"</small></div>"),l.parentElement.remove(),[3,4];case 4:return e.setAttribute("data-processed","true"),[2]}})})})})}},194:(e,t,n)=>{n.d(t,{P:()=>i});var o=n(145),r=n(413),a=n(840),i=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var i=a.mindmapRenderAdapter.getElements(e);i.length>0&&(0,r.G)("".concat(t,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){i.forEach(function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=a.mindmapRenderAdapter.getCode(e);if(t)try{if("true"===e.getAttribute("data-processed"))return;echarts.init(e,"dark"===n?"dark":void 0).setOption({series:[{data:[JSON.parse(decodeURIComponent(t))],initialTreeDepth:-1,itemStyle:{borderWidth:0,color:"#4285f4"},label:{backgroundColor:"#f6f8fa",borderColor:"#d1d5da",borderRadius:5,borderWidth:.5,color:"#586069",lineHeight:20,offset:[-5,0],padding:[0,5],position:"insideRight"},lineStyle:{color:"#d1d5da",width:1},roam:!0,symbol:function(e,t){var n;return(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.children)?"circle":"path://"},type:"tree"}],tooltip:{trigger:"item",triggerOn:"mousemove"}}),e.setAttribute("data-processed","true")}catch(o){e.className="vditor-reset--error",e.innerHTML="mindmap render error: <br>".concat(o)}}})})}},436:(e,t,n)=>{n.d(t,{k:()=>a});var o=n(771),r=n(472),a=function(e,t,n){var a="",i=[];if(Array.from(e.children).forEach(function(e,t){if((0,o.W)(e)){if(n){var r=e.id.lastIndexOf("_");e.id=e.id.substring(0,-1===r?void 0:r)+"_"+t}i.push(e.id),a+=e.outerHTML.replace("<wbr>","")}}),""===a)return t.innerHTML="","";var l=document.createElement("div");if(n)n.lute.SetToC(!0),"wysiwyg"!==n.currentMode||n.preview.element.contains(e)?"ir"!==n.currentMode||n.preview.element.contains(e)?l.innerHTML=n.lute.HTML2VditorDOM("<p>[ToC]</p>"+a):l.innerHTML=n.lute.SpinVditorIRDOM("<p>[ToC]</p>"+a):l.innerHTML=n.lute.SpinVditorDOM("<p>[ToC]</p>"+a),n.lute.SetToC(n.options.preview.markdown.toc);else{t.classList.add("vditor-outline");var s=Lute.New();s.SetToC(!0),l.innerHTML=s.HTML2VditorDOM("<p>[ToC]</p>"+a)}var c=l.firstElementChild.querySelectorAll("li > span[data-target-id]");return c.forEach(function(e,t){if(e.nextElementSibling&&"UL"===e.nextElementSibling.tagName){var n="<svg class='vditor-outline__action'><use xlink:href='#vditor-icon-down'></use></svg>";document.getElementById("vditorIconScript")||(n='<svg class="vditor-outline__action" viewBox="0 0 32 32"><path d="M3.76 6.12l12.24 12.213 12.24-12.213 3.76 3.76-16 16-16-16 3.76-3.76z"></path></svg>'),e.innerHTML="".concat(n,"<span>").concat(e.innerHTML,"</span>")}else e.innerHTML="<svg></svg><span>".concat(e.innerHTML,"</span>");e.setAttribute("data-target-id",i[t])}),a=l.firstElementChild.innerHTML,0===c.length?(t.innerHTML="",a):(t.innerHTML=a,n&&(0,r.H)(t,{cdn:n.options.cdn,math:n.options.preview.math}),t.firstElementChild.addEventListener("click",function(o){for(var r=o.target;r&&!r.isEqualNode(t);){if(r.classList.contains("vditor-outline__action")){r.classList.contains("vditor-outline__action--close")?(r.classList.remove("vditor-outline__action--close"),r.parentElement.nextElementSibling.setAttribute("style","display:block")):(r.classList.add("vditor-outline__action--close"),r.parentElement.nextElementSibling.setAttribute("style","display:none")),o.preventDefault(),o.stopPropagation();break}if(r.getAttribute("data-target-id")){o.preventDefault(),o.stopPropagation();var a=document.getElementById(r.getAttribute("data-target-id"));if(!a)return;if(n)if("auto"===n.options.height){var i=a.offsetTop+n.element.offsetTop;n.options.toolbarConfig.pin||(i+=n.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,i)}else n.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,n.element.offsetTop),n.preview.element.contains(e)?e.parentElement.scrollTop=a.offsetTop:e.scrollTop=a.offsetTop;else window.scrollTo(window.scrollX,a.offsetTop);break}r=r.parentElement}}),a)}},229:(e,t,n)=>{n.d(t,{B:()=>i});var o=n(145),r=n(413),a=n(840),i=function(e,t){void 0===e&&(e=document),void 0===t&&(t=o.g.CDN);var n=a.plantumlRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/plantuml/plantuml-encoder.min.js"),"vditorPlantumlScript").then(function(){n.forEach(function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=a.plantumlRenderAdapter.getCode(e).trim();if(t)try{e.innerHTML='<object type="image/svg+xml" data="https://www.plantuml.com/plantuml/svg/~1'.concat(plantumlEncoder.encode(t),'"/>')}catch(n){e.className="vditor-reset--error",e.innerHTML="plantuml render error: <br>".concat(n)}}})})}},214:(e,t,n)=>{n.d(t,{X:()=>o});var o=function(e){var t=Lute.New();return t.PutEmojis(e.emojis),t.SetEmojiSite(e.emojiSite),t.SetHeadingAnchor(e.headingAnchor),t.SetInlineMathAllowDigitAfterOpenMarker(e.inlineMathDigit),t.SetAutoSpace(e.autoSpace),t.SetToC(e.toc),t.SetFootnotes(e.footnotes),t.SetFixTermTypo(e.fixTermTypo),t.SetVditorCodeBlockPreview(e.codeBlockPreview),t.SetVditorMathBlockPreview(e.mathBlockPreview),t.SetSanitize(e.sanitize),t.SetChineseParagraphBeginningSpace(e.paragraphBeginningSpace),t.SetRenderListStyle(e.listStyle),t.SetLinkBase(e.linkBase),t.SetLinkPrefix(e.linkPrefix),t.SetMark(e.mark),t.SetGFMAutoLink(e.gfmAutoLink),e.lazyLoadImage&&t.SetImageLazyLoading(e.lazyLoadImage),t}},190:(e,t,n)=>{n.d(t,{E:()=>o});var o=function(e,t,n){void 0===n&&(n="classic");var o=e.getBoundingClientRect();document.body.insertAdjacentHTML("beforeend",'<div class="vditor vditor-img'.concat("dark"===n?" vditor--dark":"",'">\n <div class="vditor-img__bar">\n <span class="vditor-img__btn" data-deg="0">\n <svg><use xlink:href="#vditor-icon-redo"></use></svg>\n ').concat(window.VditorI18n.spin,"\n </span>\n <span class=\"vditor-img__btn\" onclick=\"this.parentElement.parentElement.outerHTML = '';document.body.style.overflow = ''\">\n X ").concat(window.VditorI18n.close,'\n </span>\n </div>\n <div class="vditor-img__img" onclick="this.parentElement.outerHTML = \'\';document.body.style.overflow = \'\'">\n <img style="width: ').concat(e.width,"px;height:").concat(e.height,"px;transform: translate3d(").concat(o.left,"px, ").concat(o.top-36,'px, 0)" src="').concat(e.getAttribute("src"),'">\n </div>\n</div>')),document.body.style.overflow="hidden";var r=document.querySelector(".vditor-img img"),a="translate3d(".concat(Math.max(0,window.innerWidth-e.naturalWidth)/2,"px, ").concat(Math.max(0,window.innerHeight-36-e.naturalHeight)/2,"px, 0)");setTimeout(function(){r.setAttribute("style","transition: transform .3s ease-in-out;transform: ".concat(a)),setTimeout(function(){r.parentElement.scrollTo((r.parentElement.scrollWidth-r.parentElement.clientWidth)/2,(r.parentElement.scrollHeight-r.parentElement.clientHeight)/2)},400)});var i=document.querySelector(".vditor-img__btn");i.addEventListener("click",function(){var t=parseInt(i.getAttribute("data-deg"),10)+90;t/90%2==1&&e.naturalWidth>r.parentElement.clientHeight?r.style.transform="translate3d(".concat(Math.max(0,window.innerWidth-e.naturalWidth)/2,"px, ").concat(e.naturalWidth/2-e.naturalHeight/2,"px, 0) rotateZ(").concat(t,"deg)"):r.style.transform="".concat(a," rotateZ(").concat(t,"deg)"),i.setAttribute("data-deg",t.toString()),setTimeout(function(){r.parentElement.scrollTo((r.parentElement.scrollWidth-r.parentElement.clientWidth)/2,(r.parentElement.scrollHeight-r.parentElement.clientHeight)/2)},400)})}},580:(e,t,n)=>{n.d(t,{Y:()=>a});var o=n(145),r=n(290),a=function(e,t){void 0===t&&(t=o.g.CDN),o.g.CODE_THEME.includes(e)||(e="github");var n=document.getElementById("vditorHljsStyle"),a="".concat(t,"/dist/js/highlight.js/styles/").concat(e,".min.css");n?n.getAttribute("href")!==a&&(n.remove(),(0,r.c)(a,"vditorHljsStyle")):(0,r.c)(a,"vditorHljsStyle")}},538:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(290),r=function(e,t){if(e&&t){var n=document.getElementById("vditorContentTheme"),r="".concat(t,"/").concat(e,".css");n?n.getAttribute("href")!==r&&(n.remove(),(0,o.c)(r,"vditorContentTheme")):(0,o.c)(r,"vditorContentTheme")}}},413:(e,t,n)=>{n.d(t,{J:()=>o,G:()=>r});var o=function(e,t){if(document.getElementById(t))return!1;var n=new XMLHttpRequest;n.open("GET",e,!1),n.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),n.send("");var o=document.createElement("script");o.type="text/javascript",o.text=n.responseText,o.id=t,document.head.appendChild(o)},r=function(e,t){return new Promise(function(n,o){if(document.getElementById(t))return n(!0),!1;var r=document.createElement("script");r.src=e,r.async=!0,document.head.appendChild(r),r.onerror=function(e){o(e)},r.onload=function(){if(document.getElementById(t))return r.remove(),n(!0),!1;r.id=t,n(!0)}})}},290:(e,t,n)=>{n.d(t,{c:()=>o});var o=function(e,t){if(!document.getElementById(t)){var n=document.createElement("link");n.id=t,n.rel="stylesheet",n.type="text/css",n.href=e,document.getElementsByTagName("head")[0].appendChild(n)}}},105:(e,t,n)=>{n.d(t,{X:()=>o});var o=function(e){return e.replace(/\u00a0/g," ")}},410:(e,t,n)=>{n.d(t,{G6:()=>o,vU:()=>r,pK:()=>a,Le:()=>i,yl:()=>l,ns:()=>s,i7:()=>c});var o=function(){return navigator.userAgent.indexOf("Safari")>-1&&-1===navigator.userAgent.indexOf("Chrome")},r=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},a=function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}},i=function(){return navigator.userAgent.indexOf("iPhone")>-1?"touchstart":"click"},l=function(e){return navigator.platform.toUpperCase().indexOf("MAC")>=0?!(!e.metaKey||e.ctrlKey):!(e.metaKey||!e.ctrlKey)},s=function(e){return/Mac/.test(navigator.platform)||"iPhone"===navigator.platform?e.indexOf("⇧")>-1&&r()&&(e=e.replace(";",":").replace("=","+").replace("-","_")):(e=(e=e.startsWith("⌘")?e.replace("⌘","⌘+"):e.startsWith("⌥")&&"⌘"!==e.substr(1,1)?e.replace("⌥","⌥+"):e.replace("⇧⌘","⌘+⇧+").replace("⌥⌘","⌥+⌘+")).replace("⌘","Ctrl").replace("⇧","Shift").replace("⌥","Alt")).indexOf("Shift")>-1&&(e=e.replace(";",":").replace("=","+").replace("-","_")),e},c=function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}},494:(e,t,n)=>{n.d(t,{Wb:()=>o,on:()=>r,Qf:()=>a});var o=function(){return([1e7].toString()+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(parseInt(e,10)^window.crypto.getRandomValues(new Uint32Array(1))[0]&15>>parseInt(e,10)/4).toString(16)})},r=function(e,t){void 0===t&&(t=window.location.search);var n=t.substring(t.indexOf("?")),o=n.indexOf("#");return new URLSearchParams(n.substring(0,o>=0?o:void 0)).get(e)},a=function(e){return Function('"use strict";return ('.concat(e,")"))()}},106:(e,t,n)=>{n.d(t,{JQ:()=>r,E2:()=>a,O9:()=>i,a1:()=>l,F9:()=>s,lG:()=>c,fb:()=>d,DX:()=>u});var o=n(771),r=function(e,t){for(var n=d(e,t),o=!1,r=!1;n&&!n.classList.contains("vditor-reset")&&!r;)(o=d(n.parentElement,t))?n=o:r=!0;return n||!1},a=function(e,t){for(var n=(0,o.S)(e,t),r=!1,a=!1;n&&!n.classList.contains("vditor-reset")&&!a;)(r=(0,o.S)(n.parentElement,t))?n=r:a=!0;return n||!1},i=function(e){var t=a(e,"UL"),n=a(e,"OL"),o=t;return n&&(!t||t&&n.contains(t))&&(o=n),o},l=function(e,t,n){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var o=e,r=!1;o&&!r&&!o.classList.contains("vditor-reset");)o.getAttribute(t)===n?r=!0:o=o.parentElement;return r&&o},s=function(e){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);var t=e,n=!1,o=l(e,"data-block","0");if(o)return o;for(;t&&!n&&!t.classList.contains("vditor-reset");)"H1"===t.tagName||"H2"===t.tagName||"H3"===t.tagName||"H4"===t.tagName||"H5"===t.tagName||"H6"===t.tagName||"P"===t.tagName||"BLOCKQUOTE"===t.tagName||"OL"===t.tagName||"UL"===t.tagName?n=!0:t=t.parentElement;return n&&t},c=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,o=!1;n&&!o&&!n.classList.contains("vditor-reset");)n.nodeName===t?o=!0:n=n.parentElement;return o&&n},d=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,o=!1;n&&!o&&!n.classList.contains("vditor-reset");)n.classList.contains(t)?o=!0:n=n.parentElement;return o&&n},u=function(e){for(;e&&e.lastChild;)e=e.lastChild;return e}},771:(e,t,n)=>{n.d(t,{S:()=>o,W:()=>r});var o=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,o=!1;n&&!o&&!n.classList.contains("vditor-reset");)0===n.nodeName.indexOf(t)?o=!0:n=n.parentElement;return o&&n},r=function(e){var t=o(e,"H");return!(!t||2!==t.tagName.length||"HR"===t.tagName)&&t}},673:(e,t,n)=>{n.d(t,{T:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=function(e){for(var t in e)e.hasOwnProperty(t)&&("[object Object]"===Object.prototype.toString.call(e[t])?n[t]=o(n[t],e[t]):n[t]=e[t])},a=0;a<e.length;a++)r(e[a]);return n}},810:(e,t,n)=>{n.d(t,{zh:()=>i,Ny:()=>l,Gb:()=>s,Hc:()=>c,im:()=>d,$j:()=>u,ib:()=>p,oC:()=>m});var o=n(145),r=n(410),a=n(106),i=function(e){var t,n=e[e.currentMode].element;return getSelection().rangeCount>0&&(t=getSelection().getRangeAt(0),n.isEqualNode(t.startContainer)||n.contains(t.startContainer))?t:e[e.currentMode].range?e[e.currentMode].range:(n.focus(),(t=n.ownerDocument.createRange()).setStart(n,0),t.collapse(!0),t)},l=function(e){var t=window.getSelection().getRangeAt(0);if(!e.contains(t.startContainer)&&!(0,a.fb)(t.startContainer,"vditor-panel--none"))return{left:0,top:0};var n,o=e.parentElement.getBoundingClientRect();if(0===t.getClientRects().length)if(3===t.startContainer.nodeType){var r=t.startContainer.parentElement;if(!(r&&r.getClientRects().length>0))return{left:0,top:0};n=r.getClientRects()[0]}else{var i=t.startContainer.children;if(i[t.startOffset]&&i[t.startOffset].getClientRects().length>0)n=i[t.startOffset].getClientRects()[0];else if(t.startContainer.childNodes.length>0){var l=t.cloneRange();t.selectNode(t.startContainer.childNodes[Math.max(0,t.startOffset-1)]),n=t.getClientRects()[0],t.setEnd(l.endContainer,l.endOffset),t.setStart(l.startContainer,l.startOffset)}else n=t.startContainer.getClientRects()[0];if(!n){for(var s=t.startContainer.childNodes[t.startOffset];!s.getClientRects||s.getClientRects&&0===s.getClientRects().length;)s=s.parentElement;n=s.getClientRects()[0]}}else n=t.getClientRects()[0];return{left:n.left-o.left,top:n.top-o.top}},s=function(e,t){if(!t){if(0===getSelection().rangeCount)return!1;t=getSelection().getRangeAt(0)}var n=t.commonAncestorContainer;return e.isEqualNode(n)||e.contains(n)},c=function(e){var t=window.getSelection();t.removeAllRanges(),t.addRange(e)},d=function(e,t,n){var o={end:0,start:0};if(!n){if(0===getSelection().rangeCount)return o;n=window.getSelection().getRangeAt(0)}if(s(t,n)){var r=n.cloneRange();e.childNodes[0]&&e.childNodes[0].childNodes[0]?r.setStart(e.childNodes[0].childNodes[0],0):r.selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset),o.start=r.toString().length,o.end=o.start+n.toString().length}return o},u=function(e,t,n){var o=0,r=0,a=n.childNodes[r],i=!1,l=!1;e=Math.max(0,e),t=Math.max(0,t);var s=n.ownerDocument.createRange();for(s.setStart(a||n,0),s.collapse(!0);!l&&a;){var d=o+a.textContent.length;if(!i&&e>=o&&e<=d&&(0===e?s.setStart(a,0):3===a.childNodes[0].nodeType?s.setStart(a.childNodes[0],e-o):a.nextSibling?s.setStartBefore(a.nextSibling):s.setStartAfter(a),i=!0,e===t)){l=!0;break}i&&t>=o&&t<=d&&(0===t?s.setEnd(a,0):3===a.childNodes[0].nodeType?s.setEnd(a.childNodes[0],t-o):a.nextSibling?s.setEndBefore(a.nextSibling):s.setEndAfter(a),l=!0),o=d,a=n.childNodes[++r]}return!l&&n.childNodes[r-1]&&s.setStartBefore(n.childNodes[r-1]),c(s),s},p=function(e,t){var n=e.querySelector("wbr");if(n){if(n.previousElementSibling)if(n.previousElementSibling.isSameNode(n.previousSibling)){if(n.previousElementSibling.lastChild)return t.setStartBefore(n),t.collapse(!0),c(t),!(0,r.i7)()||"EM"!==n.previousElementSibling.tagName&&"STRONG"!==n.previousElementSibling.tagName&&"S"!==n.previousElementSibling.tagName||(t.insertNode(document.createTextNode(o.g.ZWSP)),t.collapse(!1)),void n.remove();t.setStartAfter(n.previousElementSibling)}else t.setStart(n.previousSibling,n.previousSibling.textContent.length);else n.previousSibling?t.setStart(n.previousSibling,n.previousSibling.textContent.length):n.nextSibling?3===n.nextSibling.nodeType?t.setStart(n.nextSibling,0):t.setStartBefore(n.nextSibling):t.setStart(n.parentElement,0);t.collapse(!0),n.remove(),c(t)}},m=function(e,t){var n=document.createElement("div");n.innerHTML=e;var o=n.querySelectorAll("p");1===o.length&&!o[0].previousSibling&&!o[0].nextSibling&&t[t.currentMode].element.children.length>0&&"P"===n.firstElementChild.tagName&&(e=o[0].innerHTML.trim());var r=document.createElement("div");r.innerHTML=e;var l=i(t);if(""!==l.toString()&&(t[t.currentMode].preventInput=!0,document.execCommand("delete",!1,"")),r.firstElementChild&&"0"===r.firstElementChild.getAttribute("data-block")){r.lastElementChild.insertAdjacentHTML("beforeend","<wbr>");var s=(0,a.F9)(l.startContainer);if(s){var d=(0,a.lG)(l.startContainer,"LI");d&&"UL"===r.firstElementChild.tagName?d.insertAdjacentHTML("afterend",r.firstElementChild.innerHTML):s.insertAdjacentHTML("afterend",r.innerHTML)}else t[t.currentMode].element.insertAdjacentHTML("beforeend",r.innerHTML);p(t[t.currentMode].element,l)}else{var u=document.createElement("template");u.innerHTML=e,l.insertNode(u.content.cloneNode(!0)),l.collapse(!1),c(l)}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.d(o,{default:()=>Yn});var e,t=n(408),r=n(145),a=n(105),i=function(e){return"sv"===e.currentMode?(0,a.X)("".concat(e.sv.element.textContent,"\n").replace(/\n\n$/,"\n")):"wysiwyg"===e.currentMode?e.lute.VditorDOM2Md(e.wysiwyg.element.innerHTML):"ir"===e.currentMode?e.lute.VditorIRDOM2Md(e.ir.element.innerHTML):""},l=n(413),s=function(){function e(){this.element=document.createElement("div"),this.element.className="vditor-devtools",this.element.innerHTML='<div class="vditor-reset--error"></div><div style="height: 100%;"></div>'}return e.prototype.renderEchart=function(e){var t=this;"block"===e.devtools.element.style.display&&(0,l.G)("".concat(e.options.cdn,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){t.ASTChart||(t.ASTChart=echarts.init(e.devtools.element.lastElementChild));try{t.element.lastElementChild.style.display="block",t.element.firstElementChild.innerHTML="",t.ASTChart.setOption({series:[{data:JSON.parse(e.lute.RenderEChartsJSON(i(e))),initialTreeDepth:-1,label:{align:"left",backgroundColor:"rgba(68, 77, 86, .68)",borderRadius:3,color:"#d1d5da",fontSize:12,lineHeight:12,offset:[9,12],padding:[2,4,2,4],position:"top",verticalAlign:"middle"},lineStyle:{color:"#4285f4",type:"curve",width:1},orient:"vertical",roam:!0,type:"tree"}],toolbox:{bottom:25,emphasis:{iconStyle:{color:"#4285f4"}},feature:{restore:{show:!0},saveAsImage:{show:!0}},right:15,show:!0}}),t.ASTChart.resize()}catch(n){t.element.lastElementChild.style.display="none",t.element.firstElementChild.innerHTML=n}})},e}(),c=n(410),d=function(e,t){t.forEach(function(t){if(e[t]){var n=e[t].children[0];n&&n.classList.contains("vditor-menu--current")&&n.classList.remove("vditor-menu--current")}})},u=function(e,t){t.forEach(function(t){if(e[t]){var n=e[t].children[0];n&&!n.classList.contains("vditor-menu--current")&&n.classList.add("vditor-menu--current")}})},p=function(e,t){t.forEach(function(t){if(e[t]){var n=e[t].children[0];n&&n.classList.contains(r.g.CLASS_MENU_DISABLED)&&n.classList.remove(r.g.CLASS_MENU_DISABLED)}})},m=function(e,t){t.forEach(function(t){if(e[t]){var n=e[t].children[0];n&&!n.classList.contains(r.g.CLASS_MENU_DISABLED)&&n.classList.add(r.g.CLASS_MENU_DISABLED)}})},f=function(e,t){t.forEach(function(t){e[t]&&e[t]&&(e[t].style.display="none")})},h=function(e,t){t.forEach(function(t){e[t]&&e[t]&&(e[t].style.display="block")})},v=function(e,t,n){t.includes("subToolbar")&&(e.toolbar.element.querySelectorAll(".vditor-hint").forEach(function(e){n&&e.isEqualNode(n)||(e.style.display="none")}),e.toolbar.elements.emoji&&(e.toolbar.elements.emoji.lastElementChild.style.display="none")),t.includes("hint")&&(e.hint.element.style.display="none"),e.wysiwyg.popover&&t.includes("popover")&&(e.wysiwyg.popover.style.display="none")},g=function(e,t,n,o){n.addEventListener((0,c.Le)(),function(o){o.preventDefault(),o.stopPropagation(),n.classList.contains(r.g.CLASS_MENU_DISABLED)||(e.toolbar.element.querySelectorAll(".vditor-hint--current").forEach(function(e){e.classList.remove("vditor-hint--current")}),"block"===t.style.display?t.style.display="none":(v(e,["subToolbar","hint","popover"],n.parentElement.parentElement),n.classList.contains("vditor-tooltipped")||n.classList.add("vditor-hint--current"),t.style.display="block",e.toolbar.element.getBoundingClientRect().right-n.getBoundingClientRect().right<250?t.classList.add("vditor-panel--left"):t.classList.remove("vditor-panel--left")))})},b=n(106),y=n(771),w=n(135),E=n(775),k=n(428),_=n(325),S=n(483),x=n(999),L=n(472),C=n(637),A=n(11),M=n(194),T=n(229),D=n(825),O=function(e,t){if(e)if("html-block"!==e.parentElement.getAttribute("data-type")){var n=e.firstElementChild.className.replace("language-","");"abc"===n?(0,w.Q)(e,t.options.cdn):"mermaid"===n?(0,C.i)(e,t.options.cdn,t.options.theme):"smiles"===n?(0,D.J)(e,t.options.cdn,t.options.theme):"markmap"===n?(0,A.K)(e,t.options.cdn):"flowchart"===n?(0,_.P)(e,t.options.cdn):"echarts"===n?(0,E.p)(e,t.options.cdn,t.options.theme):"mindmap"===n?(0,M.P)(e,t.options.cdn,t.options.theme):"plantuml"===n?(0,T.B)(e,t.options.cdn):"graphviz"===n?(0,S.v)(e,t.options.cdn):"math"===n?(0,L.H)(e,{cdn:t.options.cdn,math:t.options.preview.math}):t.options.customRenders.find(function(o){if(o.language===n)return o.render(e,t),!0})||((0,x.s)(Object.assign({},t.options.preview.hljs),e,t.options.cdn),(0,k.O)(e,t.options.preview.hljs)),e.setAttribute("data-render","1")}else e.setAttribute("data-render","1")},H=n(810),I=function(e){if("sv"!==e.currentMode){var t=e[e.currentMode].element,n=e.outline.render(e);""===n&&(n="[ToC]"),t.querySelectorAll('[data-type="toc-block"]').forEach(function(t){t.innerHTML=n,(0,L.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})})}},P=function(e,t){var n=(0,b.lG)(e.target,"SPAN");if(n&&(0,b.fb)(n,"vditor-toc")){var o=t[t.currentMode].element.querySelector("#"+n.getAttribute("data-target-id"));if(o)if("auto"===t.options.height){var r=o.offsetTop+t.element.offsetTop;t.options.toolbarConfig.pin||(r+=t.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,r)}else t.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,t.element.offsetTop),t[t.currentMode].element.scrollTop=o.offsetTop}},j=function(e,t,n,o){if(e.previousElementSibling&&e.previousElementSibling.classList.contains("vditor-toc")){if("Backspace"===n.key&&0===(0,H.im)(e,t[t.currentMode].element,o).start)return e.previousElementSibling.remove(),ct(t),!0;if(nt(t,n,o,e,e.previousElementSibling))return!0}if(e.nextElementSibling&&e.nextElementSibling.classList.contains("vditor-toc")){if("Delete"===n.key&&(0,H.im)(e,t[t.currentMode].element,o).start>=e.textContent.trimRight().length)return e.nextElementSibling.remove(),ct(t),!0;if(tt(t,n,o,e,e.nextElementSibling))return!0}if("Backspace"===n.key||"Delete"===n.key){var r=(0,b.fb)(o.startContainer,"vditor-toc");if(r)return r.remove(),ct(t),!0}},N=function(e,t,n,o){void 0===n&&(n=!1);var a=(0,b.F9)(t.startContainer);if(a&&!n&&"code-block"!==a.getAttribute("data-type")){if(lt(a.innerHTML)&&a.previousElementSibling||st(a.innerHTML))return;for(var l=(0,H.im)(a,e.ir.element,t).start,s=!0,c=l-1;c>a.textContent.substr(0,l).lastIndexOf("\n");c--)if(" "!==a.textContent.charAt(c)&&"\t"!==a.textContent.charAt(c)){s=!1;break}0===l&&(s=!1);var d=!0;for(c=l-1;c<a.textContent.length;c++)if(" "!==a.textContent.charAt(c)&&"\n"!==a.textContent.charAt(c)){d=!1;break}if(s)return void("function"==typeof e.options.input&&e.options.input(i(e)));if(d&&/^#{1,6} $/.test(a.textContent)&&(d=!1),d&&!(0,b.fb)(t.startContainer,"vditor-ir__marker")){var u=t.startContainer.previousSibling;return u&&3!==u.nodeType&&u.classList.contains("vditor-ir__node--expand")&&u.classList.remove("vditor-ir__node--expand"),void("function"==typeof e.options.input&&e.options.input(i(e)))}}if(e.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(e){e.classList.remove("vditor-ir__node--expand")}),a||(a=e.ir.element),!a.querySelector("wbr")){var p=(0,b.fb)(t.startContainer,"vditor-ir__preview");p?p.previousElementSibling.insertAdjacentHTML("beforeend","<wbr>"):t.insertNode(document.createElement("wbr"))}a.querySelectorAll("[style]").forEach(function(e){e.removeAttribute("style")}),"link-ref-defs-block"===a.getAttribute("data-type")&&(a=e.ir.element);var m,f=a.isEqualNode(e.ir.element),h=(0,b.a1)(a,"data-type","footnotes-block"),v="";if(f)v=a.innerHTML;else{var g=(0,y.S)(t.startContainer,"BLOCKQUOTE"),w=(0,b.O9)(t.startContainer);if(w&&(a=w),g&&(!w||w&&!g.contains(w))&&(a=g),h&&(a=h),v=a.outerHTML,"UL"===a.tagName||"OL"===a.tagName){var E=a.previousElementSibling,k=a.nextElementSibling;!E||"UL"!==E.tagName&&"OL"!==E.tagName||(v=E.outerHTML+v,E.remove()),!k||"UL"!==k.tagName&&"OL"!==k.tagName||(v+=k.outerHTML,k.remove()),v=v.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}else a.previousElementSibling&&""!==a.previousElementSibling.textContent.replace(r.g.ZWSP,"")&&o&&"insertParagraph"===o.inputType&&(v=a.previousElementSibling.outerHTML+v,a.previousElementSibling.remove());a.innerText.startsWith("```")||(e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(e){e&&!a.isEqualNode(e)&&(v+=e.outerHTML,e.remove())}),e.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(e){e&&!a.isEqualNode(e)&&(v+=e.outerHTML,e.remove())}))}if(e.options.debugger,v=e.lute.SpinVditorIRDOM(v),e.options.debugger,f)a.innerHTML=v;else if(a.outerHTML=v,h){var _=(0,b.a1)(e.ir.element.querySelector("wbr"),"data-type","footnotes-def");if(_){var S=_.textContent,x=S.substring(1,S.indexOf("]:")),L=e.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(x,'"]'));L&&L.setAttribute("aria-label",S.substr(x.length+3).trim().substr(0,24))}}var C,A=e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");A.forEach(function(e,t){0===t?m=e:(m.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())}),A.length>0&&e.ir.element.insertAdjacentElement("beforeend",A[0]);var M=e.ir.element.querySelectorAll("[data-type='footnotes-block']");M.forEach(function(e,t){0===t?C=e:(C.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())}),M.length>0&&e.ir.element.insertAdjacentElement("beforeend",M[0]),(0,H.ib)(e.ir.element,t),e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(t){O(t,e)}),I(e),Mt(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},R=function(e,t){if(""===e)return!1;if(-1===e.indexOf("⇧")&&-1===e.indexOf("⌘")&&-1===e.indexOf("⌥"))return!((0,c.yl)(t)||t.altKey||t.shiftKey||t.code!==e);if("⇧Tab"===e)return!((0,c.yl)(t)||t.altKey||!t.shiftKey||"Tab"!==t.code);var n=e.split("");if(e.startsWith("⌥")){var o=3===n.length?n[2]:n[1];return!((3===n.length?!(0,c.yl)(t):(0,c.yl)(t))||!t.altKey||t.shiftKey||t.code!==(/^[0-9]$/.test(o)?"Digit":"Key")+o)}"⌘Enter"===e&&(n=["⌘","Enter"]);var r=n.length>2&&"⇧"===n[0],a=r?n[2]:n[1];return!r||!(0,c.vU)()&&/Mac/.test(navigator.platform)||("-"===a?a="_":"="===a&&(a="+")),!(!(0,c.yl)(t)||t.key.toLowerCase()!==a.toLowerCase()||t.altKey||!(!r&&!t.shiftKey||r&&t.shiftKey))},z=function(e,t){t.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(e){e.classList.remove("vditor-ir__node--expand")});var n=(0,b.JQ)(e.startContainer,"vditor-ir__node"),o=!e.collapsed&&(0,b.JQ)(e.endContainer,"vditor-ir__node");if(e.collapsed||n&&n===o){n&&(n.classList.add("vditor-ir__node--expand"),n.classList.remove("vditor-ir__node--hidden"),(0,H.Hc)(e));var r=function(e){var t=e.startContainer;if(3===t.nodeType&&t.nodeValue.length!==e.startOffset)return!1;for(var n=t.nextSibling;n&&""===n.textContent;)n=n.nextSibling;if(!n){var o=(0,b.fb)(t,"vditor-ir__marker");if(o&&!o.nextSibling){var r=t.parentElement.parentElement.nextSibling;if(r&&3!==r.nodeType&&r.classList.contains("vditor-ir__node"))return r}return!1}return!(!n||3===n.nodeType||!n.classList.contains("vditor-ir__node")||n.getAttribute("data-block"))&&n}(e);if(r)return r.classList.add("vditor-ir__node--expand"),void r.classList.remove("vditor-ir__node--hidden");var a=function(e){var t=e.startContainer,n=t.previousSibling;return!(3!==t.nodeType||0!==e.startOffset||!n||3===n.nodeType||!n.classList.contains("vditor-ir__node")||n.getAttribute("data-block"))&&n}(e);return a?(a.classList.add("vditor-ir__node--expand"),void a.classList.remove("vditor-ir__node--hidden")):void 0}},V=n(190),B=function(e,t){e.querySelectorAll("[data-type=footnotes-link]").forEach(function(e){for(var n=e.parentElement,o=n.nextSibling;o&&o.textContent.startsWith(" ");){var r=o;r.childNodes.forEach(function(e){n.append(e.cloneNode(!0))}),o=o.nextSibling,r.remove()}t&&t(n)})},q=function(e,t){var n,o=getSelection().getRangeAt(0).cloneRange(),r=o.startContainer;3!==o.startContainer.nodeType&&"DIV"===o.startContainer.tagName&&(r=o.startContainer.childNodes[o.startOffset-1]);var a=(0,b.a1)(r,"data-block","0");if(a&&t&&("deleteContentBackward"===t.inputType||" "===t.data)){for(var i=(0,H.im)(a,e.sv.element,o).start,l=!0,s=i-1;s>a.textContent.substr(0,i).lastIndexOf("\n");s--)if(" "!==a.textContent.charAt(s)&&"\t"!==a.textContent.charAt(s)){l=!1;break}if(0===i&&(l=!1),l)return void je(e);if("deleteContentBackward"===t.inputType){var c=(0,b.a1)(r,"data-type","code-block-open-marker")||(0,b.a1)(r,"data-type","code-block-close-marker");if(c){var d;if("code-block-close-marker"===c.getAttribute("data-type")&&(d=He(r,"code-block-open-marker")))return d.textContent=c.textContent,void je(e);if("code-block-open-marker"===c.getAttribute("data-type")&&(d=He(r,"code-block-close-marker",!1)))return d.textContent=c.textContent,void je(e)}var u=(0,b.a1)(r,"data-type","math-block-open-marker");if(u){var p=u.nextElementSibling.nextElementSibling;return void(p&&"math-block-close-marker"===p.getAttribute("data-type")&&(p.remove(),je(e)))}a.querySelectorAll('[data-type="code-block-open-marker"]').forEach(function(e){1===e.textContent.length&&e.remove()}),a.querySelectorAll('[data-type="code-block-close-marker"]').forEach(function(e){1===e.textContent.length&&e.remove()});var m=(0,b.a1)(r,"data-type","heading-marker");if(m&&-1===m.textContent.indexOf("#"))return void je(e)}if((" "===t.data||"deleteContentBackward"===t.inputType)&&((0,b.a1)(r,"data-type","padding")||(0,b.a1)(r,"data-type","li-marker")||(0,b.a1)(r,"data-type","task-marker")||(0,b.a1)(r,"data-type","blockquote-marker")))return void je(e)}if(a&&"$$"===a.textContent.trimRight())je(e);else{a||(a=e.sv.element),"link-ref-defs-block"===(null===(n=a.firstElementChild)||void 0===n?void 0:n.getAttribute("data-type"))&&(a=e.sv.element),(0,b.a1)(r,"data-type","footnotes-link")&&(a=e.sv.element),-1===a.textContent.indexOf(Lute.Caret)&&o.insertNode(document.createTextNode(Lute.Caret)),a.querySelectorAll("[style]").forEach(function(e){e.removeAttribute("style")}),a.querySelectorAll("font").forEach(function(e){e.outerHTML=e.innerHTML});var f=a.textContent,h=a.isEqualNode(e.sv.element);if(h)f=a.textContent;else{a.previousElementSibling&&(f=a.previousElementSibling.textContent+f,a.previousElementSibling.remove()),a.previousElementSibling&&0===f.indexOf("---\n")&&(f=a.previousElementSibling.textContent+f,a.previousElementSibling.remove());var v="";e.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(e,t){e&&!a.isEqualNode(e.parentElement)&&(v+=e.parentElement.textContent+"\n",e.parentElement.remove())}),e.sv.element.querySelectorAll("[data-type='footnotes-link']").forEach(function(e,t){e&&!a.isEqualNode(e.parentElement)&&(v+=e.parentElement.textContent+"\n",e.parentElement.remove())}),f=v+f}f=Ie(f,e),h?a.innerHTML=f:a.outerHTML=f,e.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(t){e.sv.element.insertAdjacentElement("beforeend",t.parentElement)}),B(e.sv.element,function(t){e.sv.element.insertAdjacentElement("beforeend",t)}),(0,H.ib)(e.sv.element,o),Me(e),je(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})}},U=n(538),F=function(e){"dark"===e.options.theme?e.element.classList.add("vditor--dark"):e.element.classList.remove("vditor--dark")},$=function(e){var t=window.innerWidth<=r.g.MOBILE_WIDTH?10:35;if("none"!==e.wysiwyg.element.parentElement.style.display){var n=(e.wysiwyg.element.parentElement.clientWidth-e.options.preview.maxWidth)/2;e.wysiwyg.element.style.padding="10px ".concat(Math.max(t,n),"px")}"none"!==e.ir.element.parentElement.style.display&&(n=(e.ir.element.parentElement.clientWidth-e.options.preview.maxWidth)/2,e.ir.element.style.padding="10px ".concat(Math.max(t,n),"px")),"block"!==e.preview.element.style.display?e.toolbar.element.style.paddingLeft=Math.max(5,parseInt(e[e.currentMode].element.style.paddingLeft||"0",10)+("left"===e.options.outline.position?e.outline.element.offsetWidth:0))+"px":e.toolbar.element.style.paddingLeft=5+("left"===e.options.outline.position?e.outline.element.offsetWidth:0)+"px"},W=function(e){if(e.options.typewriterMode){var t=window.innerHeight;"number"==typeof e.options.height?(t=e.options.height,"number"==typeof e.options.minHeight&&(t=Math.max(t,e.options.minHeight)),t=Math.min(window.innerHeight,t)):t=e.element.clientHeight,e.element.classList.contains("vditor--fullscreen")&&(t=window.innerHeight),e[e.currentMode].element.style.setProperty("--editor-bottom",(t-e.toolbar.element.offsetHeight)/2+"px")}};function G(){window.removeEventListener("resize",e)}var K,Y=function(t){W(t),G(),window.addEventListener("resize",e=function(){$(t),W(t)});var n=(0,c.pK)()&&localStorage.getItem(t.options.cache.id);return t.options.cache.enable&&n||(t.options.value?n=t.options.value:t.originalInnerHTML?n=t.lute.HTML2Md(t.originalInnerHTML):t.options.cache.enable||(n="")),n||""},J=function(e){clearTimeout(e[e.currentMode].hlToolbarTimeoutId),e[e.currentMode].hlToolbarTimeoutId=window.setTimeout(function(){if("false"!==e[e.currentMode].element.getAttribute("contenteditable")&&(0,H.Gb)(e[e.currentMode].element)){d(e.toolbar.elements,r.g.EDIT_TOOLBARS),p(e.toolbar.elements,r.g.EDIT_TOOLBARS);var t=(0,H.zh)(e),n=t.startContainer;3===t.startContainer.nodeType&&(n=t.startContainer.parentElement),n.classList.contains("vditor-reset")&&(n=n.childNodes[t.startOffset]),("sv"===e.currentMode?(0,b.a1)(n,"data-type","heading"):(0,y.W)(n))&&u(e.toolbar.elements,["headings"]),("sv"===e.currentMode?(0,b.a1)(n,"data-type","blockquote"):(0,b.lG)(n,"BLOCKQUOTE"))&&u(e.toolbar.elements,["quote"]),(0,b.a1)(n,"data-type","strong")&&u(e.toolbar.elements,["bold"]),(0,b.a1)(n,"data-type","em")&&u(e.toolbar.elements,["italic"]),(0,b.a1)(n,"data-type","s")&&u(e.toolbar.elements,["strike"]),(0,b.a1)(n,"data-type","a")&&u(e.toolbar.elements,["link"]);var o=(0,b.lG)(n,"LI");o?(o.classList.contains("vditor-task")?u(e.toolbar.elements,["check"]):"OL"===o.parentElement.tagName?u(e.toolbar.elements,["ordered-list"]):"UL"===o.parentElement.tagName&&u(e.toolbar.elements,["list"]),p(e.toolbar.elements,["outdent","indent"])):m(e.toolbar.elements,["outdent","indent"]),(0,b.a1)(n,"data-type","code-block")&&(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),u(e.toolbar.elements,["code"])),(0,b.a1)(n,"data-type","code")&&(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),u(e.toolbar.elements,["inline-code"])),(0,b.a1)(n,"data-type","table")&&m(e.toolbar.elements,["headings","list","ordered-list","check","line","quote","code","table"])}},200)},Z=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&e.hint.render(e),clearTimeout(e.wysiwyg.afterRenderTimeoutId),e.wysiwyg.afterRenderTimeoutId=window.setTimeout(function(){if(!e.wysiwyg.composingLock){var n=i(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&(0,c.pK)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),t.enableAddUndoStack&&e.undo.addToUndoStack(e)}},e.options.undoDelay)},Q=function(e){for(var t="",n=e.nextSibling;n;)3===n.nodeType?t+=n.textContent:t+=n.outerHTML,n=n.nextSibling;return t},X=function(e){for(var t="",n=e.previousSibling;n;)t=3===n.nodeType?n.textContent+t:n.outerHTML+t,n=n.previousSibling;return t},ee=function(e,t){Array.from(e.wysiwyg.element.childNodes).find(function(n){if(3===n.nodeType){var o=document.createElement("p");o.setAttribute("data-block","0"),o.textContent=n.textContent;var r=3===t.startContainer.nodeType?t.startOffset:n.textContent.length;return n.parentNode.insertBefore(o,n),n.remove(),t.setStart(o.firstChild,Math.min(o.firstChild.textContent.length,r)),t.collapse(!0),(0,H.Hc)(t),!0}if(!n.getAttribute("data-block"))return"P"===n.tagName?n.remove():("DIV"===n.tagName?(t.insertNode(document.createElement("wbr")),n.outerHTML='<p data-block="0">'.concat(n.innerHTML,"</p>")):"BR"===n.tagName?n.outerHTML='<p data-block="0">'.concat(n.outerHTML,"<wbr></p>"):(t.insertNode(document.createElement("wbr")),n.outerHTML='<p data-block="0">'.concat(n.outerHTML,"</p>")),(0,H.ib)(e.wysiwyg.element,t),t=getSelection().getRangeAt(0)),!0})},te=function(e,t){var n=(0,H.zh)(e),o=(0,b.F9)(n.startContainer);o||(o=n.startContainer.childNodes[n.startOffset]),o||0!==e.wysiwyg.element.children.length||(o=e.wysiwyg.element),o&&!o.classList.contains("vditor-wysiwyg__block")&&(n.insertNode(document.createElement("wbr")),"<wbr>"===o.innerHTML.trim()&&(o.innerHTML="<wbr><br>"),"BLOCKQUOTE"===o.tagName||o.classList.contains("vditor-reset")?o.innerHTML="<".concat(t,' data-block="0">').concat(o.innerHTML.trim(),"</").concat(t,">"):o.outerHTML="<".concat(t,' data-block="0">').concat(o.innerHTML.trim(),"</").concat(t,">"),(0,H.ib)(e.wysiwyg.element,n),I(e))},ne=function(e){var t=getSelection().getRangeAt(0),n=(0,b.F9)(t.startContainer);n||(n=t.startContainer.childNodes[t.startOffset]),n&&(t.insertNode(document.createElement("wbr")),n.outerHTML='<p data-block="0">'.concat(n.innerHTML,"</p>"),(0,H.ib)(e.wysiwyg.element,t)),e.wysiwyg.popover.style.display="none"},oe=function(e,t,n){void 0===n&&(n=!0);var o=e.previousElementSibling,r=o.ownerDocument.createRange();"CODE"===o.tagName?(o.style.display="inline-block",n?r.setStart(o.firstChild,1):r.selectNodeContents(o)):(o.style.display="block",o.firstChild.firstChild||o.firstChild.appendChild(document.createTextNode("")),r.selectNodeContents(o.firstChild)),n?r.collapse(!0):r.collapse(!1),(0,H.Hc)(r),e.firstElementChild.classList.contains("language-mindmap")||Me(t)},re=function(e,t){if(R("⇧⌘X",t)){var n=e.wysiwyg.popover.querySelector('[data-type="remove"]');return n&&n.click(),t.preventDefault(),!0}},ae=function(e){clearTimeout(e.wysiwyg.hlToolbarTimeoutId),e.wysiwyg.hlToolbarTimeoutId=window.setTimeout(function(){if("false"!==e.wysiwyg.element.getAttribute("contenteditable")&&(0,H.Gb)(e.wysiwyg.element)){d(e.toolbar.elements,r.g.EDIT_TOOLBARS),p(e.toolbar.elements,r.g.EDIT_TOOLBARS);var t=getSelection().getRangeAt(0),n=t.startContainer;n=3===t.startContainer.nodeType?t.startContainer.parentElement:n.childNodes[t.startOffset>=n.childNodes.length?n.childNodes.length-1:t.startOffset];var o=(0,b.a1)(n,"data-type","footnotes-block");if(o)return e.wysiwyg.popover.innerHTML="",de(o,e),fe(e,"footnotes-block"),void ie(e,o);var a=(0,b.lG)(n,"LI");a?(a.classList.contains("vditor-task")?u(e.toolbar.elements,["check"]):"OL"===a.parentElement.tagName?u(e.toolbar.elements,["ordered-list"]):"UL"===a.parentElement.tagName&&u(e.toolbar.elements,["list"]),p(e.toolbar.elements,["outdent","indent"])):m(e.toolbar.elements,["outdent","indent"]),(0,b.lG)(n,"BLOCKQUOTE")&&u(e.toolbar.elements,["quote"]),((0,b.lG)(n,"B")||(0,b.lG)(n,"STRONG"))&&u(e.toolbar.elements,["bold"]),((0,b.lG)(n,"I")||(0,b.lG)(n,"EM"))&&u(e.toolbar.elements,["italic"]),((0,b.lG)(n,"STRIKE")||(0,b.lG)(n,"S"))&&u(e.toolbar.elements,["strike"]),e.wysiwyg.element.querySelectorAll(".vditor-comment--focus").forEach(function(e){e.classList.remove("vditor-comment--focus")});var l=(0,b.fb)(n,"vditor-comment");if(l){var s=l.getAttribute("data-cmtids").split(" ");if(s.length>1&&l.nextSibling.isSameNode(l.nextElementSibling)){var f=l.nextElementSibling.getAttribute("data-cmtids").split(" ");s.find(function(e){if(f.includes(e))return s=[e],!0})}e.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(e){e.getAttribute("data-cmtids").indexOf(s[0])>-1&&e.classList.add("vditor-comment--focus")})}var h=(0,b.lG)(n,"A");h&&u(e.toolbar.elements,["link"]);var v=(0,b.lG)(n,"TABLE"),g=(0,y.W)(n);(0,b.lG)(n,"CODE")?(0,b.lG)(n,"PRE")?(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),u(e.toolbar.elements,["code"])):(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),u(e.toolbar.elements,["inline-code"])):g?(m(e.toolbar.elements,["bold"]),u(e.toolbar.elements,["headings"])):v&&m(e.toolbar.elements,["table"]);var w=(0,b.fb)(n,"vditor-toc");if(w)return e.wysiwyg.popover.innerHTML="",de(w,e),fe(e,"vditor-toc"),void ie(e,w);var E=(0,y.S)(n,"BLOCKQUOTE");if(E&&(e.wysiwyg.popover.innerHTML="",se(t,E,e),ce(t,E,e),de(E,e),fe(e,"blockquote"),ie(e,E)),a&&(e.wysiwyg.popover.innerHTML="",se(t,a,e),ce(t,a,e),de(a,e),fe(e,"li"),ie(e,a)),v){e.options.lang,e.options,e.wysiwyg.popover.innerHTML="";var k=function(){var t=v.rows.length,n=v.rows[0].cells.length,o=parseInt(R.value,10)||t,r=parseInt(V.value,10)||n;if(o!==t||n!==r){if(n!==r)for(var a=r-n,l=0;l<v.rows.length;l++)if(a>0)for(var s=0;s<a;s++)0===l?v.rows[l].lastElementChild.insertAdjacentHTML("afterend","<th> </th>"):v.rows[l].lastElementChild.insertAdjacentHTML("afterend","<td> </td>");else for(var c=n-1;c>=r;c--)v.rows[l].cells[c].remove();if(t!==o){var d=o-t;if(d>0){for(var u="<tr>",p=0;p<r;p++)u+="<td> </td>";for(var m=0;m<d;m++)v.querySelector("tbody")?v.querySelector("tbody").insertAdjacentHTML("beforeend",u):v.querySelector("thead").insertAdjacentHTML("afterend",u+"</tr>")}else for(p=t-1;p>=o;p--)v.rows[p].remove(),1===v.rows.length&&v.querySelector("tbody").remove()}"function"==typeof e.options.input&&e.options.input(i(e))}},_=function(n){it(v,n),"right"===n?(C.classList.remove("vditor-icon--current"),A.classList.remove("vditor-icon--current"),M.classList.add("vditor-icon--current")):"center"===n?(C.classList.remove("vditor-icon--current"),M.classList.remove("vditor-icon--current"),A.classList.add("vditor-icon--current")):(A.classList.remove("vditor-icon--current"),M.classList.remove("vditor-icon--current"),C.classList.add("vditor-icon--current")),(0,H.Hc)(t),Z(e)},S=(0,b.lG)(n,"TD"),x=(0,b.lG)(n,"TH"),L="left";S?L=S.getAttribute("align")||"left":x&&(L=x.getAttribute("align")||"center");var C=document.createElement("button");C.setAttribute("type","button"),C.setAttribute("aria-label",window.VditorI18n.alignLeft+"<"+(0,c.ns)("⇧⌘L")+">"),C.setAttribute("data-type","left"),C.innerHTML='<svg><use xlink:href="#vditor-icon-align-left"></use></svg>',C.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("left"===L?" vditor-icon--current":""),C.onclick=function(){_("left")};var A=document.createElement("button");A.setAttribute("type","button"),A.setAttribute("aria-label",window.VditorI18n.alignCenter+"<"+(0,c.ns)("⇧⌘C")+">"),A.setAttribute("data-type","center"),A.innerHTML='<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',A.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("center"===L?" vditor-icon--current":""),A.onclick=function(){_("center")};var M=document.createElement("button");M.setAttribute("type","button"),M.setAttribute("aria-label",window.VditorI18n.alignRight+"<"+(0,c.ns)("⇧⌘R")+">"),M.setAttribute("data-type","right"),M.innerHTML='<svg><use xlink:href="#vditor-icon-align-right"></use></svg>',M.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("right"===L?" vditor-icon--current":""),M.onclick=function(){_("right")};var T=document.createElement("button");T.setAttribute("type","button"),T.setAttribute("aria-label",window.VditorI18n.insertRowBelow+"<"+(0,c.ns)("⌘=")+">"),T.setAttribute("data-type","insertRow"),T.innerHTML='<svg><use xlink:href="#vditor-icon-insert-row"></use></svg>',T.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",T.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,o=(0,b.lG)(n,"TD")||(0,b.lG)(n,"TH");o&&mt(e,t,o)};var D=document.createElement("button");D.setAttribute("type","button"),D.setAttribute("aria-label",window.VditorI18n.insertRowAbove+"<"+(0,c.ns)("⇧⌘F")+">"),D.setAttribute("data-type","insertRow"),D.innerHTML='<svg><use xlink:href="#vditor-icon-insert-rowb"></use></svg>',D.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",D.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,o=(0,b.lG)(n,"TD")||(0,b.lG)(n,"TH");o&&ft(e,t,o)};var I=document.createElement("button");I.setAttribute("type","button"),I.setAttribute("aria-label",window.VditorI18n.insertColumnRight+"<"+(0,c.ns)("⇧⌘=")+">"),I.setAttribute("data-type","insertColumn"),I.innerHTML='<svg><use xlink:href="#vditor-icon-insert-column"></use></svg>',I.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",I.onclick=function(){var t=getSelection().getRangeAt(0).startContainer,n=(0,b.lG)(t,"TD")||(0,b.lG)(t,"TH");n&&ht(e,v,n)};var P=document.createElement("button");P.setAttribute("type","button"),P.setAttribute("aria-label",window.VditorI18n.insertColumnLeft+"<"+(0,c.ns)("⇧⌘G")+">"),P.setAttribute("data-type","insertColumn"),P.innerHTML='<svg><use xlink:href="#vditor-icon-insert-columnb"></use></svg>',P.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",P.onclick=function(){var t=getSelection().getRangeAt(0).startContainer,n=(0,b.lG)(t,"TD")||(0,b.lG)(t,"TH");n&&ht(e,v,n,"beforebegin")};var j=document.createElement("button");j.setAttribute("type","button"),j.setAttribute("aria-label",window.VditorI18n["delete-row"]+"<"+(0,c.ns)("⌘-")+">"),j.setAttribute("data-type","deleteRow"),j.innerHTML='<svg><use xlink:href="#vditor-icon-delete-row"></use></svg>',j.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",j.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,o=(0,b.lG)(n,"TD")||(0,b.lG)(n,"TH");o&&vt(e,t,o)};var N=document.createElement("button");N.setAttribute("type","button"),N.setAttribute("aria-label",window.VditorI18n["delete-column"]+"<"+(0,c.ns)("⇧⌘-")+">"),N.setAttribute("data-type","deleteColumn"),N.innerHTML='<svg><use xlink:href="#vditor-icon-delete-column"></use></svg>',N.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",N.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,o=(0,b.lG)(n,"TD")||(0,b.lG)(n,"TH");o&>(e,t,v,o)},(Y=document.createElement("span")).setAttribute("aria-label",window.VditorI18n.row),Y.className="vditor-tooltipped vditor-tooltipped__n";var R=document.createElement("input");Y.appendChild(R),R.type="number",R.min="1",R.className="vditor-input",R.style.width="42px",R.style.textAlign="center",R.setAttribute("placeholder",window.VditorI18n.row),R.value=v.rows.length.toString(),R.oninput=function(){k()},R.onkeydown=function(n){if(!n.isComposing)return"Tab"===n.key?(V.focus(),V.select(),void n.preventDefault()):void(re(e,n)||me(n,t))};var z=document.createElement("span");z.setAttribute("aria-label",window.VditorI18n.column),z.className="vditor-tooltipped vditor-tooltipped__n";var V=document.createElement("input");z.appendChild(V),V.type="number",V.min="1",V.className="vditor-input",V.style.width="42px",V.style.textAlign="center",V.setAttribute("placeholder",window.VditorI18n.column),V.value=v.rows[0].cells.length.toString(),V.oninput=function(){k()},V.onkeydown=function(n){if(!n.isComposing)return"Tab"===n.key?(R.focus(),R.select(),void n.preventDefault()):void(re(e,n)||me(n,t))},se(t,v,e),ce(t,v,e),de(v,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",C),e.wysiwyg.popover.insertAdjacentElement("beforeend",A),e.wysiwyg.popover.insertAdjacentElement("beforeend",M),e.wysiwyg.popover.insertAdjacentElement("beforeend",D),e.wysiwyg.popover.insertAdjacentElement("beforeend",T),e.wysiwyg.popover.insertAdjacentElement("beforeend",P),e.wysiwyg.popover.insertAdjacentElement("beforeend",I),e.wysiwyg.popover.insertAdjacentElement("beforeend",j),e.wysiwyg.popover.insertAdjacentElement("beforeend",N),e.wysiwyg.popover.insertAdjacentElement("beforeend",Y),e.wysiwyg.popover.insertAdjacentHTML("beforeend"," x "),e.wysiwyg.popover.insertAdjacentElement("beforeend",z),fe(e,"table"),ie(e,v)}var B=(0,b.a1)(n,"data-type","link-ref");B&&le(e,B,t);var q=(0,b.a1)(n,"data-type","footnotes-ref");if(q){e.options.lang,e.options,e.wysiwyg.popover.innerHTML="",(Y=document.createElement("span")).setAttribute("aria-label",window.VditorI18n.footnoteRef+"<"+(0,c.ns)("⌥Enter")+">"),Y.className="vditor-tooltipped vditor-tooltipped__n";var U=document.createElement("input");Y.appendChild(U),U.className="vditor-input",U.setAttribute("placeholder",window.VditorI18n.footnoteRef+"<"+(0,c.ns)("⌥Enter")+">"),U.style.width="120px",U.value=q.getAttribute("data-footnotes-label"),U.oninput=function(){""!==U.value.trim()&&q.setAttribute("data-footnotes-label",U.value),"function"==typeof e.options.input&&e.options.input(i(e))},U.onkeydown=function(n){n.isComposing||re(e,n)||me(n,t)},de(q,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",Y),fe(e,"footnotes-ref"),ie(e,q)}var F=(0,b.fb)(n,"vditor-wysiwyg__block"),$=!!F&&F.getAttribute("data-type").indexOf("block")>-1;if(e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(e){(!F||F&&$&&!F.contains(e))&&(e.previousElementSibling.style.display="none")}),F&&$){if(e.wysiwyg.popover.innerHTML="",se(t,F,e),ce(t,F,e),de(F,e),"code-block"===F.getAttribute("data-type")){var W=document.createElement("span");W.setAttribute("aria-label",window.VditorI18n.language+"<"+(0,c.ns)("⌥Enter")+">"),W.className="vditor-tooltipped vditor-tooltipped__n";var G=document.createElement("input");W.appendChild(G);var K=F.firstElementChild.firstElementChild;G.className="vditor-input",G.setAttribute("placeholder",window.VditorI18n.language+"<"+(0,c.ns)("⌥Enter")+">"),G.value=K.className.indexOf("language-")>-1?K.className.split("-")[1].split(" ")[0]:"",G.oninput=function(n){""!==G.value.trim()?K.className="language-".concat(G.value):(K.className="",e.hint.recentLanguage=""),F.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(F.lastElementChild.innerHTML=F.firstElementChild.innerHTML,O(F.lastElementChild,e)),Z(e),1===n.detail&&(t.setStart(K.firstChild,0),t.collapse(!0),(0,H.Hc)(t))},G.onkeydown=function(n){if(!n.isComposing&&!re(e,n)){if("Escape"===n.key&&"block"===e.hint.element.style.display)return e.hint.element.style.display="none",void n.preventDefault();e.hint.select(n,e),me(n,t)}},G.onkeyup=function(t){var n,o;if(!t.isComposing&&"Enter"!==t.key&&"ArrowUp"!==t.key&&"Escape"!==t.key&&"ArrowDown"!==t.key){var a=[],i=G.value.substring(0,G.selectionStart);(e.options.preview.hljs.langs||r.g.ALIAS_CODE_LANGUAGES.concat((null!==(o=null===(n=window.hljs)||void 0===n?void 0:n.listLanguages())&&void 0!==o?o:[]).sort())).forEach(function(e){e.indexOf(i.toLowerCase())>-1&&a.push({html:e,value:e})}),e.hint.genHTML(a,i,e),t.preventDefault()}},e.wysiwyg.popover.insertAdjacentElement("beforeend",W),fe(e,"code-block")}else fe(e,"block");ie(e,F)}else F=void 0;if(g){var Y;e.wysiwyg.popover.innerHTML="",(Y=document.createElement("span")).setAttribute("aria-label","ID<"+(0,c.ns)("⌥Enter")+">"),Y.className="vditor-tooltipped vditor-tooltipped__n";var J=document.createElement("input");Y.appendChild(J),J.className="vditor-input",J.setAttribute("placeholder","ID<"+(0,c.ns)("⌥Enter")+">"),J.style.width="120px",J.value=g.getAttribute("data-id")||"",J.oninput=function(){g.setAttribute("data-id",J.value),"function"==typeof e.options.input&&e.options.input(i(e))},J.onkeydown=function(n){n.isComposing||re(e,n)||me(n,t)},se(t,g,e),ce(t,g,e),de(g,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",Y),fe(e,"heading"),ie(e,g)}if(h&&pe(e,h,t),!(E||a||v||F||h||B||q||g||w)){var Q=(0,b.a1)(n,"data-block","0");Q&&Q.parentElement.isEqualNode(e.wysiwyg.element)?(e.wysiwyg.popover.innerHTML="",se(t,Q,e),ce(t,Q,e),de(Q,e),fe(e,"block"),ie(e,Q)):e.wysiwyg.popover.style.display="none"}e.wysiwyg.element.querySelectorAll('span[data-type="backslash"] > span').forEach(function(e){e.style.display="none"});var X=(0,b.a1)(t.startContainer,"data-type","backslash");X&&(X.querySelector("span").style.display="inline")}},200)},ie=function(e,t){var n=t,o=(0,b.lG)(t,"TABLE");o&&(n=o),e.wysiwyg.popover.style.left="0",e.wysiwyg.popover.style.display="block",e.wysiwyg.popover.style.top=Math.max(-8,n.offsetTop-21-e.wysiwyg.element.scrollTop)+"px",e.wysiwyg.popover.style.left=Math.min(n.offsetLeft,e.wysiwyg.element.clientWidth-e.wysiwyg.popover.clientWidth)+"px",e.wysiwyg.popover.setAttribute("data-top",(n.offsetTop-21).toString())},le=function(e,t,n){void 0===n&&(n=getSelection().getRangeAt(0)),e.wysiwyg.popover.innerHTML="";var o=function(){""!==a.value.trim()&&("IMG"===t.tagName?t.setAttribute("alt",a.value):t.textContent=a.value),""!==s.value.trim()&&t.setAttribute("data-link-label",s.value),"function"==typeof e.options.input&&e.options.input(i(e))},r=document.createElement("span");r.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),r.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");r.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),a.style.width="120px",a.value=t.getAttribute("alt")||t.textContent,a.oninput=function(){o()},a.onkeydown=function(o){re(e,o)||me(o,n)||ue(e,t,o,s)};var l=document.createElement("span");l.setAttribute("aria-label",window.VditorI18n.linkRef),l.className="vditor-tooltipped vditor-tooltipped__n";var s=document.createElement("input");l.appendChild(s),s.className="vditor-input",s.setAttribute("placeholder",window.VditorI18n.linkRef),s.value=t.getAttribute("data-link-label"),s.oninput=function(){o()},s.onkeydown=function(o){re(e,o)||me(o,n)||ue(e,t,o,a)},de(t,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",r),e.wysiwyg.popover.insertAdjacentElement("beforeend",l),fe(e,"link-ref"),ie(e,t)},se=function(e,t,n){var o=t.previousElementSibling;if(o&&(t.parentElement.isEqualNode(n.wysiwyg.element)||"LI"===t.tagName)){var r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("data-type","up"),r.setAttribute("aria-label",window.VditorI18n.up+"<"+(0,c.ns)("⇧⌘U")+">"),r.innerHTML='<svg><use xlink:href="#vditor-icon-up"></use></svg>',r.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",r.onclick=function(){e.insertNode(document.createElement("wbr")),o.insertAdjacentElement("beforebegin",t),(0,H.ib)(n.wysiwyg.element,e),Z(n),ae(n),Me(n)},n.wysiwyg.popover.insertAdjacentElement("beforeend",r)}},ce=function(e,t,n){var o=t.nextElementSibling;if(o&&(t.parentElement.isEqualNode(n.wysiwyg.element)||"LI"===t.tagName)){var r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("data-type","down"),r.setAttribute("aria-label",window.VditorI18n.down+"<"+(0,c.ns)("⇧⌘D")+">"),r.innerHTML='<svg><use xlink:href="#vditor-icon-down"></use></svg>',r.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",r.onclick=function(){e.insertNode(document.createElement("wbr")),o.insertAdjacentElement("afterend",t),(0,H.ib)(n.wysiwyg.element,e),Z(n),ae(n),Me(n)},n.wysiwyg.popover.insertAdjacentElement("beforeend",r)}},de=function(e,t){var n=document.createElement("button");n.setAttribute("type","button"),n.setAttribute("data-type","remove"),n.setAttribute("aria-label",window.VditorI18n.remove+"<"+(0,c.ns)("⇧⌘X")+">"),n.innerHTML='<svg><use xlink:href="#vditor-icon-trashcan"></use></svg>',n.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",n.onclick=function(){var n=(0,H.zh)(t);n.setStartAfter(e),(0,H.Hc)(n),e.remove(),Z(t),ae(t),["H1","H2","H3","H4","H5","H6"].includes(e.tagName)&&I(t)},t.wysiwyg.popover.insertAdjacentElement("beforeend",n)},ue=function(e,t,n,o){if(!n.isComposing){if("Tab"===n.key)return o.focus(),o.select(),void n.preventDefault();if(!(0,c.yl)(n)&&!n.shiftKey&&n.altKey&&"Enter"===n.key){var a=(0,H.zh)(e);t.insertAdjacentHTML("afterend",r.g.ZWSP),a.setStartAfter(t.nextSibling),a.collapse(!0),(0,H.Hc)(a),n.preventDefault()}}},pe=function(e,t,n){e.wysiwyg.popover.innerHTML="";var o=function(){""!==a.value.trim()&&(t.innerHTML=a.value),t.setAttribute("href",l.value),t.setAttribute("title",c.value),Z(e)};t.querySelectorAll("[data-marker]").forEach(function(e){e.removeAttribute("data-marker")});var r=document.createElement("span");r.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),r.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");r.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),a.style.width="120px",a.value=t.innerHTML||"",a.oninput=function(){o()},a.onkeydown=function(o){re(e,o)||me(o,n)||ue(e,t,o,l)};var i=document.createElement("span");i.setAttribute("aria-label",window.VditorI18n.link),i.className="vditor-tooltipped vditor-tooltipped__n";var l=document.createElement("input");i.appendChild(l),l.className="vditor-input",l.setAttribute("placeholder",window.VditorI18n.link),l.value=t.getAttribute("href")||"",l.oninput=function(){o()},l.onkeydown=function(o){re(e,o)||me(o,n)||ue(e,t,o,c)};var s=document.createElement("span");s.setAttribute("aria-label",window.VditorI18n.tooltipText),s.className="vditor-tooltipped vditor-tooltipped__n";var c=document.createElement("input");s.appendChild(c),c.className="vditor-input",c.setAttribute("placeholder",window.VditorI18n.tooltipText),c.style.width="60px",c.value=t.getAttribute("title")||"",c.oninput=function(){o()},c.onkeydown=function(o){re(e,o)||me(o,n)||ue(e,t,o,a)},de(t,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",r),e.wysiwyg.popover.insertAdjacentElement("beforeend",i),e.wysiwyg.popover.insertAdjacentElement("beforeend",s),fe(e,"a"),ie(e,t)},me=function(e,t){if(!(0,c.yl)(e)&&!e.shiftKey&&"Enter"===e.key||"Escape"===e.key)return t&&(0,H.Hc)(t),e.preventDefault(),e.stopPropagation(),!0},fe=function(e,t){e.options.customWysiwygToolbar(t,e.wysiwyg.popover)},he=function(e){"wysiwyg"===e.currentMode?ae(e):"ir"===e.currentMode&&J(e)},ve=function(e,t,n){void 0===n&&(n={enableAddUndoStack:!0,enableHint:!1,enableInput:!0});var o=e.wysiwyg.element;o.innerHTML=e.lute.Md2VditorDOM(t),o.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(t){O(t,e),t.previousElementSibling.setAttribute("style","display:none")}),Z(e,n)},ge=function(e,t,n){for(var o=e.startContainer.parentElement,a=!1,i="",l="",s=function(e){var t=X(e.startContainer),n=Q(e.startContainer),o=e.startContainer.textContent,a=e.startOffset,i="",l="";return(""!==o.substr(0,a)&&o.substr(0,a)!==r.g.ZWSP||t)&&(i="".concat(t).concat(o.substr(0,a))),(""!==o.substr(a)&&o.substr(a)!==r.g.ZWSP||n)&&(l="".concat(o.substr(a)).concat(n)),{afterHTML:l,beforeHTML:i}}(e),c=s.beforeHTML,d=s.afterHTML;o&&!a;){var u=o.tagName;if("STRIKE"===u&&(u="S"),"I"===u&&(u="EM"),"B"===u&&(u="STRONG"),"S"===u||"STRONG"===u||"EM"===u){var p="",m="",f="";"0"!==o.parentElement.getAttribute("data-block")&&(m=X(o),f=Q(o)),(c||m)&&(c=p="".concat(m,"<").concat(u,">").concat(c,"</").concat(u,">")),("bold"===n&&"STRONG"===u||"italic"===n&&"EM"===u||"strikeThrough"===n&&"S"===u)&&(p+="".concat(i).concat(r.g.ZWSP,"<wbr>").concat(l),a=!0),(d||f)&&(p+=d="<".concat(u,">").concat(d,"</").concat(u,">").concat(f)),"0"!==o.parentElement.getAttribute("data-block")?(o=o.parentElement).innerHTML=p:(o.outerHTML=p,o=o.parentElement),i="<".concat(u,">")+i,l="</".concat(u,">")+l}else a=!0}(0,H.ib)(t.wysiwyg.element,e)},be=function(){return function(e,t){var n,o=this;this.element=document.createElement("div"),t.className&&(n=this.element.classList).add.apply(n,t.className.split(" "));var a=t.hotkey?" <".concat((0,c.ns)(t.hotkey),">"):"";2===t.level&&(a=t.hotkey?" <".concat((0,c.ns)(t.hotkey),">"):"");var i=t.tip?t.tip+a:"".concat(window.VditorI18n[t.name]).concat(a),l="upload"===t.name?"div":"button";if(2===t.level)this.element.innerHTML="<".concat(l,' data-type="').concat(t.name,'">').concat(i,"</").concat(l,">");else{this.element.classList.add("vditor-toolbar__item");var s=document.createElement(l);s.setAttribute("data-type",t.name),s.className="vditor-tooltipped vditor-tooltipped__".concat(t.tipPosition),s.setAttribute("aria-label",i),s.innerHTML=t.icon,this.element.appendChild(s)}t.prefix&&this.element.children[0].addEventListener((0,c.Le)(),function(n){n.preventDefault(),o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||("wysiwyg"===e.currentMode?function(e,t,n){if(!(e.wysiwyg.composingLock&&n instanceof CustomEvent)){var o=!0,a=!0;e.wysiwyg.element.querySelector("wbr")&&e.wysiwyg.element.querySelector("wbr").remove();var i=(0,H.zh)(e),l=t.getAttribute("data-type");if(t.classList.contains("vditor-menu--current"))if("strike"===l&&(l="strikeThrough"),"quote"===l){var s=(0,b.lG)(i.startContainer,"BLOCKQUOTE");s||(s=i.startContainer.childNodes[i.startOffset]),s&&(o=!1,t.classList.remove("vditor-menu--current"),i.insertNode(document.createElement("wbr")),s.outerHTML=""===s.innerHTML.trim()?'<p data-block="0">'.concat(s.innerHTML,"</p>"):s.innerHTML,(0,H.ib)(e.wysiwyg.element,i))}else if("inline-code"===l){var c=(0,b.lG)(i.startContainer,"CODE");c||(c=i.startContainer.childNodes[i.startOffset]),c&&(c.outerHTML=c.innerHTML.replace(r.g.ZWSP,"")+"<wbr>",(0,H.ib)(e.wysiwyg.element,i))}else"link"===l?i.collapsed?(i.selectNode(i.startContainer.parentElement),document.execCommand("unlink",!1,"")):document.execCommand("unlink",!1,""):"check"===l||"list"===l||"ordered-list"===l?(ot(e,i,l),(0,H.ib)(e.wysiwyg.element,i),o=!1,t.classList.remove("vditor-menu--current")):(o=!1,t.classList.remove("vditor-menu--current"),""===i.toString()?ge(i,e,l):document.execCommand(l,!1,""));else{0===e.wysiwyg.element.childNodes.length&&(e.wysiwyg.element.innerHTML='<p data-block="0"><wbr></p>',(0,H.ib)(e.wysiwyg.element,i));var u=(0,b.F9)(i.startContainer);if("quote"===l){if(u||(u=i.startContainer.childNodes[i.startOffset]),u){o=!1,t.classList.add("vditor-menu--current"),i.insertNode(document.createElement("wbr"));var p=(0,b.lG)(i.startContainer,"LI");p&&u.contains(p)?p.innerHTML='<blockquote data-block="0">'.concat(p.innerHTML,"</blockquote>"):u.outerHTML='<blockquote data-block="0">'.concat(u.outerHTML,"</blockquote>"),(0,H.ib)(e.wysiwyg.element,i)}}else if("check"===l||"list"===l||"ordered-list"===l)ot(e,i,l,!1),(0,H.ib)(e.wysiwyg.element,i),o=!1,d(e.toolbar.elements,["check","list","ordered-list"]),t.classList.add("vditor-menu--current");else if("inline-code"===l){if(""===i.toString())(m=document.createElement("code")).textContent=r.g.ZWSP,i.insertNode(m),i.setStart(m.firstChild,1),i.collapse(!0),(0,H.Hc)(i);else if(3===i.startContainer.nodeType){var m=document.createElement("code");i.surroundContents(m),i.insertNode(m),(0,H.Hc)(i)}t.classList.add("vditor-menu--current")}else if("code"===l)(m=document.createElement("div")).className="vditor-wysiwyg__block",m.setAttribute("data-type","code-block"),m.setAttribute("data-block","0"),m.setAttribute("data-marker","```"),""===i.toString()?m.innerHTML="<pre><code><wbr>\n</code></pre>":(m.innerHTML="<pre><code>".concat(i.toString(),"<wbr></code></pre>"),i.deleteContents()),i.insertNode(m),u&&(u.outerHTML=e.lute.SpinVditorDOM(u.outerHTML)),(0,H.ib)(e.wysiwyg.element,i),e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(t){O(t,e)}),t.classList.add("vditor-menu--disabled");else if("link"===l){if(""===i.toString()){var f=document.createElement("a");f.innerText=r.g.ZWSP,i.insertNode(f),i.setStart(f.firstChild,1),i.collapse(!0),pe(e,f,i);var h=e.wysiwyg.popover.querySelector("input");h.value="",h.focus(),a=!1}else{(m=document.createElement("a")).setAttribute("href",""),m.innerHTML=i.toString(),i.surroundContents(m),i.insertNode(m),(0,H.Hc)(i),pe(e,m,i);var v=e.wysiwyg.popover.querySelectorAll("input");v[0].value=m.innerText,v[1].focus()}o=!1,t.classList.add("vditor-menu--current")}else if("table"===l){var g='<table data-block="0"><thead><tr><th>col1<wbr></th><th>col2</th><th>col3</th></tr></thead><tbody><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td></tr></tbody></table>';if(""===i.toString().trim())u&&""===u.innerHTML.trim().replace(r.g.ZWSP,"")?u.outerHTML=g:document.execCommand("insertHTML",!1,g),i.selectNode(e.wysiwyg.element.querySelector("wbr").previousSibling),e.wysiwyg.element.querySelector("wbr").remove(),(0,H.Hc)(i);else{g='<table data-block="0"><thead><tr>';var y=i.toString().split("\n"),w=y[0].split(",").length>y[0].split("\t").length?",":"\t";y.forEach(function(e,t){0===t?(e.split(w).forEach(function(e,t){g+="<th>".concat(e,0===t?"<wbr></th>":"</th>")}),g+="</tr></thead>"):(g+=1===t?"<tbody><tr>":"<tr>",e.split(w).forEach(function(e){g+="<td>".concat(e,"</td>")}),g+="</tr>")}),g+="</tbody></table>",document.execCommand("insertHTML",!1,g),(0,H.ib)(e.wysiwyg.element,i)}o=!1,t.classList.add("vditor-menu--disabled")}else if("line"===l){if(u){var E='<hr data-block="0"><p data-block="0"><wbr>\n</p>';""===u.innerHTML.trim()?u.outerHTML=E:u.insertAdjacentHTML("afterend",E),(0,H.ib)(e.wysiwyg.element,i)}}else if(o=!1,t.classList.add("vditor-menu--current"),"strike"===l&&(l="strikeThrough"),""!==i.toString()||"bold"!==l&&"italic"!==l&&"strikeThrough"!==l)document.execCommand(l,!1,"");else{var k="strong";"italic"===l?k="em":"strikeThrough"===l&&(k="s"),(m=document.createElement(k)).textContent=r.g.ZWSP,i.insertNode(m),m.previousSibling&&m.previousSibling.textContent===r.g.ZWSP&&(m.previousSibling.textContent=""),i.setStart(m.firstChild,1),i.collapse(!0),(0,H.Hc)(i)}}o&&ae(e),a&&Z(e)}}(e,o.element.children[0],n):"ir"===e.currentMode?Ot(e,o.element.children[0],t.prefix||"",t.suffix||""):Re(e,o.element.children[0],t.prefix||"",t.suffix||""))})}}(),ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),we=function(e,t,n){var o;if("string"!=typeof n?(v(e,["subToolbar","hint"]),n.preventDefault(),o=i(e)):o=n,e.currentMode!==t||"string"==typeof n){if(e.devtools&&e.devtools.renderEchart(e),"both"===e.options.preview.mode&&"sv"===t?e.preview.element.style.display="block":e.preview.element.style.display="none",p(e.toolbar.elements,r.g.EDIT_TOOLBARS),d(e.toolbar.elements,r.g.EDIT_TOOLBARS),m(e.toolbar.elements,["outdent","indent"]),"ir"===t)f(e.toolbar.elements,["both"]),h(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.sv.element.style.display="none",e.wysiwyg.element.parentElement.style.display="none",e.ir.element.parentElement.style.display="block",e.lute.SetVditorIR(!0),e.lute.SetVditorWYSIWYG(!1),e.lute.SetVditorSV(!1),e.currentMode="ir",e.ir.element.innerHTML=e.lute.Md2VditorIRDOM(o),Mt(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),$(e),e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(t){O(t,e)}),e.ir.element.querySelectorAll(".vditor-toc").forEach(function(t){(0,L.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})});else if("wysiwyg"===t)f(e.toolbar.elements,["both"]),h(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.sv.element.style.display="none",e.wysiwyg.element.parentElement.style.display="block",e.ir.element.parentElement.style.display="none",e.lute.SetVditorIR(!1),e.lute.SetVditorWYSIWYG(!0),e.lute.SetVditorSV(!1),e.currentMode="wysiwyg",$(e),ve(e,o,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),e.wysiwyg.element.querySelectorAll(".vditor-toc").forEach(function(t){(0,L.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})}),e.wysiwyg.popover.style.display="none";else if("sv"===t){h(e.toolbar.elements,["both"]),f(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.wysiwyg.element.parentElement.style.display="none",e.ir.element.parentElement.style.display="none",("both"===e.options.preview.mode||"editor"===e.options.preview.mode)&&(e.sv.element.style.display="block"),e.lute.SetVditorIR(!1),e.lute.SetVditorWYSIWYG(!1),e.lute.SetVditorSV(!0),e.currentMode="sv";var a=Ie(o,e);"<div data-block='0'></div>"===a&&(a=""),e.sv.element.innerHTML=a,B(e.sv.element),je(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),$(e)}e.undo.resetIcon(e),"string"!=typeof n&&(e[e.currentMode].element.focus(),he(e)),I(e),W(e),e.toolbar.elements["edit-mode"]&&(e.toolbar.elements["edit-mode"].querySelectorAll("button").forEach(function(e){e.classList.remove("vditor-menu--current")}),e.toolbar.elements["edit-mode"].querySelector('button[data-mode="'.concat(e.currentMode,'"]')).classList.add("vditor-menu--current")),e.outline.toggle(e,"sv"!==e.currentMode&&e.options.outline.enable,"string"!=typeof n)}},Ee=function(e){function t(t,n){var o=e.call(this,t,n)||this,r=document.createElement("div");return r.className="vditor-hint".concat(2===n.level?"":" vditor-panel--arrow"),r.innerHTML='<button data-mode="wysiwyg">'.concat(window.VditorI18n.wysiwyg," <").concat((0,c.ns)("⌥⌘7"),'></button>\n<button data-mode="ir">').concat(window.VditorI18n.instantRendering," <").concat((0,c.ns)("⌥⌘8"),'></button>\n<button data-mode="sv">').concat(window.VditorI18n.splitView," <").concat((0,c.ns)("⌥⌘9"),"></button>"),o.element.appendChild(r),o._bindEvent(t,r,n),o}return ye(t,e),t.prototype._bindEvent=function(e,t,n){var o=this.element.children[0];g(e,t,o,n.level),t.children.item(0).addEventListener((0,c.Le)(),function(t){we(e,"wysiwyg",t),t.preventDefault(),t.stopPropagation()}),t.children.item(1).addEventListener((0,c.Le)(),function(t){we(e,"ir",t),t.preventDefault(),t.stopPropagation()}),t.children.item(2).addEventListener((0,c.Le)(),function(t){we(e,"sv",t),t.preventDefault(),t.stopPropagation()})},t}(be),ke=function(e,t){return(0,H.Gb)(e,t)?getSelection().toString():""},_e=function(e,t){t.addEventListener("focus",function(){e.options.focus&&e.options.focus(i(e)),v(e,["subToolbar","hint"])})},Se=function(e,t){t.addEventListener("dblclick",function(t){"IMG"===t.target.tagName&&(e.options.image.preview?e.options.image.preview(t.target):e.options.image.isPreview&&(0,V.E)(t.target,e.options.lang,e.options.theme))})},xe=function(e,t){t.addEventListener("blur",function(t){if("ir"===e.currentMode){var n=e.ir.element.querySelector(".vditor-ir__node--expand");n&&n.classList.remove("vditor-ir__node--expand")}else"wysiwyg"!==e.currentMode||e.wysiwyg.selectPopover.contains(t.relatedTarget)||e.wysiwyg.hideComment();e[e.currentMode].range=(0,H.zh)(e),e.options.blur&&e.options.blur(i(e))})},Le=function(e,t){t.addEventListener("dragstart",function(e){e.dataTransfer.setData(r.g.DROP_EDITOR,r.g.DROP_EDITOR)}),t.addEventListener("drop",function(t){t.dataTransfer.getData(r.g.DROP_EDITOR)?ct(e):(t.dataTransfer.types.includes("Files")||t.dataTransfer.types.includes("text/html"))&&xt(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})})},Ce=function(e,t,n){t.addEventListener("copy",function(t){return n(t,e)})},Ae=function(e,t,n){t.addEventListener("cut",function(t){n(t,e),e.options.comment.enable&&"wysiwyg"===e.currentMode&&e.wysiwyg.getComments(e),document.execCommand("delete")})},Me=function(e){if("wysiwyg"===e.currentMode&&e.options.comment.enable&&e.options.comment.adjustTop(e.wysiwyg.getComments(e,!0)),e.options.typewriterMode){var t=e[e.currentMode].element,n=(0,H.Ny)(t).top;"auto"!==e.options.height||e.element.classList.contains("vditor--fullscreen")||window.scrollTo(window.scrollX,n+e.element.offsetTop+e.toolbar.element.offsetHeight-window.innerHeight/2+10),("auto"!==e.options.height||e.element.classList.contains("vditor--fullscreen"))&&(t.scrollTop=n+t.scrollTop-t.clientHeight/2+10)}},Te=function(e,t){t.addEventListener("keydown",function(t){if(!t.isComposing&&e.options.keydown&&e.options.keydown(t),!(e.options.hint.extend.length>1||e.toolbar.elements.emoji)||!e.hint.select(t,e)){if(e.options.comment.enable&&"wysiwyg"===e.currentMode&&("Backspace"===t.key||R("⌘X",t))&&e.wysiwyg.getComments(e),"sv"===e.currentMode){if(function(e,t){var n,o,r,a,i;if(e.sv.composingLock=t.isComposing,t.isComposing)return!1;if(-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!(0,c.yl)(t)&&"Escape"!==t.key)return!1;var l=(0,H.zh)(e),s=l.startContainer;3!==l.startContainer.nodeType&&"DIV"===l.startContainer.tagName&&(s=l.startContainer.childNodes[l.startOffset-1]);var d=(0,b.a1)(s,"data-type","text"),u=(0,b.a1)(s,"data-type","blockquote-marker");if(!u&&0===l.startOffset&&d&&d.previousElementSibling&&"blockquote-marker"===d.previousElementSibling.getAttribute("data-type")&&(u=d.previousElementSibling),u&&"Enter"===t.key&&!(0,c.yl)(t)&&!t.altKey&&""===u.nextElementSibling.textContent.trim()&&(0,H.im)(u,e.sv.element,l).start===u.textContent.length)return"padding"===(null===(n=u.previousElementSibling)||void 0===n?void 0:n.getAttribute("data-type"))&&u.previousElementSibling.setAttribute("data-action","enter-remove"),u.remove(),je(e),t.preventDefault(),!0;var p=(0,b.a1)(s,"data-type","li-marker"),m=(0,b.a1)(s,"data-type","task-marker"),f=p;if(f||m&&"task-marker"!==m.nextElementSibling.getAttribute("data-type")&&(f=m),f||0!==l.startOffset||!d||!d.previousElementSibling||"li-marker"!==d.previousElementSibling.getAttribute("data-type")&&"task-marker"!==d.previousElementSibling.getAttribute("data-type")||(f=d.previousElementSibling),f){var h=(0,H.im)(f,e.sv.element,l).start,v="task-marker"===f.getAttribute("data-type"),g=f;if(v&&(g=f.previousElementSibling.previousElementSibling.previousElementSibling),h===f.textContent.length){if("Enter"===t.key&&!(0,c.yl)(t)&&!t.altKey&&!t.shiftKey&&""===f.nextElementSibling.textContent.trim())return"padding"===(null===(o=g.previousElementSibling)||void 0===o?void 0:o.getAttribute("data-type"))?(g.previousElementSibling.remove(),q(e)):(v&&(g.remove(),f.previousElementSibling.previousElementSibling.remove(),f.previousElementSibling.remove()),f.nextElementSibling.remove(),f.remove(),je(e)),t.preventDefault(),!0;if("Tab"===t.key)return t.shiftKey?"padding"===g.previousElementSibling.getAttribute("data-type")&&g.previousElementSibling.remove():g.insertAdjacentHTML("beforebegin",'<span data-type="padding">'.concat(g.textContent.replace(/\S/g," "),"</span>")),/^\d/.test(g.textContent)&&(g.textContent=g.textContent.replace(/^\d{1,}/,"1"),l.selectNodeContents(f.firstChild),l.collapse(!1)),q(e),t.preventDefault(),!0}}if(ut(e,l,t))return!0;var w=(0,b.a1)(s,"data-block","0"),E=(0,y.S)(s,"SPAN");if("Enter"===t.key&&!(0,c.yl)(t)&&!t.altKey&&!t.shiftKey&&w){var k=!1,_=w.textContent.match(/^\n+/);(0,H.im)(w,e.sv.element).start<=(_?_[0].length:0)&&(k=!0);var S="\n";if(E){if("enter-remove"===(null===(r=E.previousElementSibling)||void 0===r?void 0:r.getAttribute("data-action")))return E.previousElementSibling.remove(),je(e),t.preventDefault(),!0;S+=Pe(E)}return l.insertNode(document.createTextNode(S)),l.collapse(!1),w&&""!==w.textContent.trim()&&!k?q(e):je(e),t.preventDefault(),!0}if("Backspace"===t.key&&!(0,c.yl)(t)&&!t.altKey&&!t.shiftKey){if(E&&"newline"===(null===(a=E.previousElementSibling)||void 0===a?void 0:a.getAttribute("data-type"))&&1===(0,H.im)(E,e.sv.element,l).start&&-1===E.getAttribute("data-type").indexOf("code-block-"))return l.setStart(E,0),l.extractContents(),""!==E.textContent.trim()?q(e):je(e),t.preventDefault(),!0;if(w&&0===(0,H.im)(w,e.sv.element,l).start&&w.previousElementSibling){l.extractContents();var x=w.previousElementSibling.lastElementChild;return"newline"===x.getAttribute("data-type")&&(x.remove(),x=w.previousElementSibling.lastElementChild),"newline"!==x.getAttribute("data-type")&&(x.insertAdjacentHTML("afterend",w.innerHTML),w.remove()),""===w.textContent.trim()||(null===(i=w.previousElementSibling)||void 0===i?void 0:i.querySelector('[data-type="code-block-open-marker"]'))?("newline"!==x.getAttribute("data-type")&&(l.selectNodeContents(x.lastChild),l.collapse(!1)),je(e)):q(e),t.preventDefault(),!0}}return!1}(e,t))return}else if("wysiwyg"===e.currentMode){if(function(e,t){if(e.wysiwyg.composingLock=t.isComposing,t.isComposing)return!1;-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t);var n=(0,H.zh)(e),o=n.startContainer;if(!Ke(t,e,o))return!1;if(Ye(n,e,t),_t(n),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!(0,c.yl)(t)&&"Escape"!==t.key&&"Delete"!==t.key)return!1;var a=(0,b.F9)(o),i=(0,b.lG)(o,"P");if(pt(t,e,i,n))return!0;if(dt(n,e,i,t))return!0;if(bt(e,t,n))return!0;var l=(0,b.fb)(o,"vditor-wysiwyg__block");if(l){if("Escape"===t.key&&2===l.children.length)return e.wysiwyg.popover.style.display="none",l.firstElementChild.style.display="none",e.wysiwyg.element.blur(),t.preventDefault(),!0;if(!(0,c.yl)(t)&&!t.shiftKey&&t.altKey&&"Enter"===t.key&&"code-block"===l.getAttribute("data-type")){var s=e.wysiwyg.popover.querySelector(".vditor-input");return s.focus(),s.select(),t.preventDefault(),!0}if("0"===l.getAttribute("data-block")){if(yt(e,t,l.firstElementChild,n))return!0;if(tt(e,t,n,l.firstElementChild,l))return!0;if("yaml-front-matter"!==l.getAttribute("data-type")&&nt(e,t,n,l.firstElementChild,l))return!0}}if(wt(e,n,t,i))return!0;var d=(0,b.E2)(o,"BLOCKQUOTE");if(d&&!t.shiftKey&&t.altKey&&"Enter"===t.key){(0,c.yl)(t)?n.setStartBefore(d):n.setStartAfter(d),(0,H.Hc)(n);var u=document.createElement("p");return u.setAttribute("data-block","0"),u.innerHTML="\n",n.insertNode(u),n.collapse(!0),(0,H.Hc)(n),Z(e),Me(e),t.preventDefault(),!0}var p,m=(0,y.W)(o);if(m){if("H6"===m.tagName&&o.textContent.length===n.startOffset&&!(0,c.yl)(t)&&!t.shiftKey&&!t.altKey&&"Enter"===t.key){var f=document.createElement("p");return f.textContent="\n",f.setAttribute("data-block","0"),o.parentElement.insertAdjacentElement("afterend",f),n.setStart(f,0),(0,H.Hc)(n),Z(e),Me(e),t.preventDefault(),!0}var h;if(R("⌘=",t))return(h=parseInt(m.tagName.substr(1),10)-1)>0&&(te(e,"h".concat(h)),Z(e)),t.preventDefault(),!0;if(R("⌘-",t))return(h=parseInt(m.tagName.substr(1),10)+1)<7&&(te(e,"h".concat(h)),Z(e)),t.preventDefault(),!0;"Backspace"!==t.key||(0,c.yl)(t)||t.shiftKey||t.altKey||1!==m.textContent.length||ne(e)}if(Et(e,n,t))return!0;if(t.altKey&&"Enter"===t.key&&!(0,c.yl)(t)&&!t.shiftKey){var v=(0,b.lG)(o,"A"),g=(0,b.a1)(o,"data-type","link-ref"),w=(0,b.a1)(o,"data-type","footnotes-ref");if(v||g||w||m&&2===m.tagName.length){var E=e.wysiwyg.popover.querySelector("input");E.focus(),E.select()}}if(re(e,t))return!0;if(R("⇧⌘U",t)&&(p=e.wysiwyg.popover.querySelector('[data-type="up"]')))return p.click(),t.preventDefault(),!0;if(R("⇧⌘D",t)&&(p=e.wysiwyg.popover.querySelector('[data-type="down"]')))return p.click(),t.preventDefault(),!0;if(ut(e,n,t))return!0;if(!(0,c.yl)(t)&&t.shiftKey&&!t.altKey&&"Enter"===t.key&&"LI"!==o.parentElement.tagName&&"P"!==o.parentElement.tagName)return["STRONG","STRIKE","S","I","EM","B"].includes(o.parentElement.tagName)?n.insertNode(document.createTextNode("\n"+r.g.ZWSP)):n.insertNode(document.createTextNode("\n")),n.collapse(!1),(0,H.Hc)(n),Z(e),Me(e),t.preventDefault(),!0;if("Backspace"===t.key&&!(0,c.yl)(t)&&!t.shiftKey&&!t.altKey&&""===n.toString()){if(kt(e,n,t,i))return!0;if(a){if(a.previousElementSibling&&a.previousElementSibling.classList.contains("vditor-wysiwyg__block")&&"0"===a.previousElementSibling.getAttribute("data-block")&&"UL"!==a.tagName&&"OL"!==a.tagName){var k=(0,H.im)(a,e.wysiwyg.element,n).start;if(0===k&&0===n.startOffset||1===k&&a.innerText.startsWith(r.g.ZWSP))return oe(a.previousElementSibling.lastElementChild,e,!1),""===a.innerHTML.trim().replace(r.g.ZWSP,"")&&(a.remove(),Z(e)),t.preventDefault(),!0}var _=n.startOffset;if(""===n.toString()&&3===o.nodeType&&"\n"===o.textContent.charAt(_-2)&&o.textContent.charAt(_-1)!==r.g.ZWSP&&["STRONG","STRIKE","S","I","EM","B"].includes(o.parentElement.tagName))return o.textContent=o.textContent.substring(0,_-1)+r.g.ZWSP,n.setStart(o,_),n.collapse(!0),Z(e),t.preventDefault(),!0;o.textContent===r.g.ZWSP&&1===n.startOffset&&!o.previousSibling&&function(e){for(var t=e.startContainer.nextSibling;t&&""===t.textContent;)t=t.nextSibling;return!(!t||3===t.nodeType||"CODE"!==t.tagName&&"math-inline"!==t.getAttribute("data-type")&&"html-entity"!==t.getAttribute("data-type")&&"html-inline"!==t.getAttribute("data-type"))}(n)&&(o.textContent=""),a.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach(function(e){e.firstElementChild.style.display="inline",e.lastElementChild.style.display="none"}),a.querySelectorAll("span.vditor-wysiwyg__block[data-type='html-entity']").forEach(function(e){e.firstElementChild.style.display="inline",e.lastElementChild.style.display="none"})}}if((0,c.vU)()&&1===n.startOffset&&o.textContent.indexOf(r.g.ZWSP)>-1&&o.previousSibling&&3!==o.previousSibling.nodeType&&"CODE"===o.previousSibling.tagName&&("Backspace"===t.key||"ArrowLeft"===t.key))return n.selectNodeContents(o.previousSibling),n.collapse(!1),t.preventDefault(),!0;if(St(t,a,n))return t.preventDefault(),!0;if(Je(n,t.key),"ArrowDown"===t.key){var S=o.nextSibling;S&&3!==S.nodeType&&"math-inline"===S.getAttribute("data-type")&&n.setStartAfter(S)}return!(!a||!j(a,e,t,n)||(t.preventDefault(),0))}(e,t))return}else if("ir"===e.currentMode&&function(e,t){if(e.ir.composingLock=t.isComposing,t.isComposing)return!1;-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t);var n=(0,H.zh)(e),o=n.startContainer;if(!Ke(t,e,o))return!1;if(Ye(n,e,t),_t(n),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!(0,c.yl)(t)&&"Escape"!==t.key&&"Delete"!==t.key)return!1;var a=(0,b.a1)(o,"data-newline","1");if(!(0,c.yl)(t)&&!t.altKey&&!t.shiftKey&&"Enter"===t.key&&a&&n.startOffset<a.textContent.length){var i=a.previousElementSibling;i&&(n.insertNode(document.createTextNode(i.textContent)),n.collapse(!1));var l=a.nextSibling;l&&(n.insertNode(document.createTextNode(l.textContent)),n.collapse(!0))}var s=(0,b.lG)(o,"P");if(pt(t,e,s,n))return!0;if(dt(n,e,s,t))return!0;if(wt(e,n,t,s))return!0;var d=(0,b.fb)(o,"vditor-ir__marker--pre");if(d&&"PRE"===d.tagName){var u=d.firstChild;if(yt(e,t,d,n))return!0;if(("math-block"===u.getAttribute("data-type")||"html-block"===u.getAttribute("data-type"))&&nt(e,t,n,u,d.parentElement))return!0;if(tt(e,t,n,u,d.parentElement))return!0}var p=(0,b.a1)(o,"data-type","code-block-info");if(p){if("Enter"===t.key||"Tab"===t.key)return n.selectNodeContents(p.nextElementSibling.firstChild),n.collapse(!0),t.preventDefault(),v(e,["hint"]),!0;if("Backspace"===t.key){var m=(0,H.im)(p,e.ir.element).start;1===m&&n.setStart(o,0),2===m&&(e.hint.recentLanguage="")}if(nt(e,t,n,p,p.parentElement))return v(e,["hint"]),!0}var f=(0,b.lG)(o,"TD")||(0,b.lG)(o,"TH");if(t.key.indexOf("Arrow")>-1&&f){var h=Qe(f);if(h&&nt(e,t,n,f,h))return!0;var g=Xe(f);if(g&&tt(e,t,n,f,g))return!0}if(bt(e,t,n))return!0;if(Et(e,n,t))return!0;if(ut(e,n,t))return!0;var w=(0,y.W)(o);if(w){var E;if(R("⌘=",t))return(E=w.querySelector(".vditor-ir__marker--heading"))&&E.textContent.trim().length>1&&Tt(e,E.textContent.substr(1)),t.preventDefault(),!0;if(R("⌘-",t))return(E=w.querySelector(".vditor-ir__marker--heading"))&&E.textContent.trim().length<6&&Tt(e,E.textContent.trim()+"# "),t.preventDefault(),!0}var k=(0,b.F9)(o);if("Backspace"===t.key&&!(0,c.yl)(t)&&!t.shiftKey&&!t.altKey&&""===n.toString()){if(kt(e,n,t,s))return!0;if(k&&k.previousElementSibling&&"UL"!==k.tagName&&"OL"!==k.tagName&&("code-block"===k.previousElementSibling.getAttribute("data-type")||"math-block"===k.previousElementSibling.getAttribute("data-type"))){var _=(0,H.im)(k,e.ir.element,n).start;if(0===_||1===_&&k.innerText.startsWith(r.g.ZWSP))return n.selectNodeContents(k.previousElementSibling.querySelector(".vditor-ir__marker--pre code")),n.collapse(!1),z(n,e),""===k.textContent.trim().replace(r.g.ZWSP,"")&&(k.remove(),Mt(e)),t.preventDefault(),!0}if(w){var S=w.firstElementChild.textContent.length;(0,H.im)(w,e.ir.element).start===S&&0!==S&&(n.setStart(w.firstElementChild.firstChild,S-1),n.collapse(!0),(0,H.Hc)(n))}}return!(("ArrowUp"!==t.key&&"ArrowDown"!==t.key||!k||(k.querySelectorAll(".vditor-ir__node").forEach(function(e){e.contains(o)||e.classList.add("vditor-ir__node--hidden")}),!St(t,k,n)))&&(Je(n,t.key),!k||!j(k,e,t,n)||(t.preventDefault(),0)))}(e,t))return;if(e.options.ctrlEnter&&R("⌘Enter",t))return e.options.ctrlEnter(i(e)),void t.preventDefault();if(R("⌘Z",t)&&!e.toolbar.elements.undo)return e.undo.undo(e),void t.preventDefault();if(R("⌘Y",t)&&!e.toolbar.elements.redo)return e.undo.redo(e),void t.preventDefault();if("Escape"===t.key)return"block"===e.hint.element.style.display?e.hint.element.style.display="none":e.options.esc&&!t.isComposing&&e.options.esc(i(e)),void t.preventDefault();if((0,c.yl)(t)&&t.altKey&&!t.shiftKey&&/^Digit[1-6]$/.test(t.code)){if("wysiwyg"===e.currentMode){var n=t.code.replace("Digit","H");(0,b.lG)(getSelection().getRangeAt(0).startContainer,n)?ne(e):te(e,n),Z(e)}else"sv"===e.currentMode?Ne(e,"#".repeat(parseInt(t.code.replace("Digit",""),10))+" "):"ir"===e.currentMode&&Tt(e,"#".repeat(parseInt(t.code.replace("Digit",""),10))+" ");return t.preventDefault(),!0}if((0,c.yl)(t)&&t.altKey&&!t.shiftKey&&/^Digit[7-9]$/.test(t.code))return"Digit7"===t.code?we(e,"wysiwyg",t):"Digit8"===t.code?we(e,"ir",t):"Digit9"===t.code&&we(e,"sv",t),!0;e.options.toolbar.find(function(n){return!n.hotkey||n.toolbar?!!n.toolbar&&!!n.toolbar.find(function(n){return!!n.hotkey&&(R(n.hotkey,t)?(e.toolbar.elements[n.name].children[0].dispatchEvent(new CustomEvent((0,c.Le)())),t.preventDefault(),!0):void 0)}):R(n.hotkey,t)?(e.toolbar.elements[n.name].children[0].dispatchEvent(new CustomEvent((0,c.Le)())),t.preventDefault(),!0):void 0})}})},De=function(e,t){t.addEventListener("selectstart",function(n){t.onmouseup=function(){setTimeout(function(){var t=ke(e[e.currentMode].element);t.trim()?("wysiwyg"===e.currentMode&&e.options.comment.enable&&((0,b.a1)(n.target,"data-type","footnotes-block")||(0,b.a1)(n.target,"data-type","link-ref-defs-block")?e.wysiwyg.hideComment():e.wysiwyg.showComment()),e.options.select&&e.options.select(t)):("wysiwyg"===e.currentMode&&e.options.comment.enable&&e.wysiwyg.hideComment(),"function"==typeof e.options.unSelect&&e.options.unSelect())})}})},Oe=function(e,t){var n=(0,H.zh)(e);n.extractContents(),n.insertNode(document.createTextNode(Lute.Caret)),n.insertNode(document.createTextNode(t));var o=(0,b.a1)(n.startContainer,"data-block","0");o||(o=e.sv.element);var r=e.lute.SpinVditorSVDOM(o.textContent);r="<div data-block='0'>"+r.replace(/<span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span><span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span></g,'<span data-type="newline"><br /><span style="display: none">\n</span></span><span data-type="newline"><br /><span style="display: none">\n</span></span></div><div data-block="0"><')+"</div>",o.isEqualNode(e.sv.element)?o.innerHTML=r:o.outerHTML=r,B(e.sv.element),(0,H.ib)(e.sv.element,n),Me(e)},He=function(e,t,n){void 0===n&&(n=!0);var o=e;for(3===o.nodeType&&(o=o.parentElement);o;){if(o.getAttribute("data-type")===t)return o;o=n?o.previousElementSibling:o.nextElementSibling}return!1},Ie=function(e,t){return t.options.debugger,e="<div data-block='0'>"+t.lute.SpinVditorSVDOM(e).replace(/<span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span><span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span></g,'<span data-type="newline"><br /><span style="display: none">\n</span></span><span data-type="newline"><br /><span style="display: none">\n</span></span></div><div data-block="0"><')+"</div>",t.options.debugger,e},Pe=function(e){var t=e.getAttribute("data-type"),n=e.previousElementSibling,o=t&&"text"!==t&&"table"!==t&&"heading-marker"!==t&&"newline"!==t&&"yaml-front-matter-open-marker"!==t&&"yaml-front-matter-close-marker"!==t&&"code-block-info"!==t&&"code-block-close-marker"!==t&&"code-block-open-marker"!==t?e.textContent:"",r=!1;for("newline"===t&&(r=!0);n&&!r;){var a=n.getAttribute("data-type");if("li-marker"===a||"blockquote-marker"===a||"task-marker"===a||"padding"===a){var i=n.textContent;if("li-marker"!==a||"code-block-open-marker"!==t&&"code-block-info"!==t)if("code-block-close-marker"===t&&n.nextElementSibling.isSameNode(e)){var l=He(e,"code-block-open-marker");l&&l.previousElementSibling&&(n=l.previousElementSibling,o=i+o)}else o=i+o;else o=i.replace(/\S/g," ")+o}else"newline"===a&&(r=!0);n=n.previousElementSibling}return o},je=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&e.hint.render(e),e.preview.render(e);var n=i(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&(0,c.pK)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),clearTimeout(e.sv.processTimeoutId),e.sv.processTimeoutId=window.setTimeout(function(){t.enableAddUndoStack&&!e.sv.composingLock&&e.undo.addToUndoStack(e)},e.options.undoDelay)},Ne=function(e,t){var n=(0,H.zh)(e),o=(0,y.S)(n.startContainer,"SPAN");o&&""!==o.textContent.trim()&&(t="\n"+t),n.collapse(!0),document.execCommand("insertHTML",!1,t)},Re=function(e,t,n,o){var r=(0,H.zh)(e),a=t.getAttribute("data-type");0===e.sv.element.childNodes.length&&(e.sv.element.innerHTML='<span data-type="p" data-block="0"><span data-type="text"><wbr></span></span><span data-type="newline"><br><span style="display: none">\n</span></span>',(0,H.ib)(e.sv.element,r));var i=(0,b.F9)(r.startContainer),l=(0,y.S)(r.startContainer,"SPAN");if(i){if("link"===a){var s=void 0;return s=""===r.toString()?"".concat(n).concat(Lute.Caret).concat(o):"".concat(n).concat(r.toString()).concat(o.replace(")",Lute.Caret+")")),void document.execCommand("insertHTML",!1,s)}if("italic"===a||"bold"===a||"strike"===a||"inline-code"===a||"code"===a||"table"===a||"line"===a)return s=void 0,s=""===r.toString()?"".concat(n).concat(Lute.Caret).concat("code"===a?"":o):"".concat(n).concat(r.toString()).concat(Lute.Caret).concat("code"===a?"":o),"table"===a||"code"===a&&l&&""!==l.textContent?s="\n\n"+s:"line"===a&&(s="\n\n".concat(n,"\n").concat(Lute.Caret)),void document.execCommand("insertHTML",!1,s);if(("check"===a||"list"===a||"ordered-list"===a||"quote"===a)&&l){var c="* ";"check"===a?c="* [ ] ":"ordered-list"===a?c="1. ":"quote"===a&&(c="> ");var d=He(l,"newline");return d?d.insertAdjacentText("afterend",c):i.insertAdjacentText("afterbegin",c),void q(e)}(0,H.ib)(e.sv.element,r),je(e)}},ze=function(e){switch(e.currentMode){case"ir":return e.ir.element;case"wysiwyg":return e.wysiwyg.element;case"sv":return e.sv.element}},Ve=function(e,t){e.options.upload.setHeaders&&(e.options.upload.headers=e.options.upload.setHeaders()),e.options.upload.headers&&Object.keys(e.options.upload.headers).forEach(function(n){t.setRequestHeader(n,e.options.upload.headers[n])})},Be=function(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{s(o.next(e))}catch(t){a(t)}}function l(e){try{s(o.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((o=o.apply(e,t||[])).next())})},qe=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},Ue=function(){return function(){this.isUploading=!1,this.element=document.createElement("div"),this.element.className="vditor-upload"}}(),Fe=function(e,t,n){return Be(void 0,void 0,void 0,function(){var o,r,a,i,l,s,c,d,u,p,m,f,h,v;return qe(this,function(g){switch(g.label){case 0:for(o=[],r=!0===e.options.upload.multiple?t.length:1,f=0;f<r;f++)(a=t[f])instanceof DataTransferItem&&(a=a.getAsFile()),o.push(a);return e.options.upload.handler?[4,e.options.upload.handler(o)]:[3,2];case 1:return i=g.sent(),n&&(n.value=""),"string"==typeof i?(e.tip.show(i),[2]):[2];case 2:return e.options.upload.url&&e.upload?e.options.upload.file?[4,e.options.upload.file(o)]:[3,4]:(n&&(n.value=""),e.tip.show("please config: options.upload.url"),[2]);case 3:o=g.sent(),g.label=4;case 4:if(e.options.upload.validate&&"string"==typeof(i=e.options.upload.validate(o)))return e.tip.show(i),[2];if(l=ze(e),e.upload.range=(0,H.zh)(e),s=function(e,t){e.tip.hide();var n=[],o="",r="";e.options.lang,e.options;for(var a=function(a,i){var l=t[i],s=!0;l.name||(o+="<li>".concat(window.VditorI18n.nameEmpty,"</li>"),s=!1),l.size>e.options.upload.max&&(o+="<li>".concat(l.name," ").concat(window.VditorI18n.over," ").concat(e.options.upload.max/1024/1024,"M</li>"),s=!1);var c=l.name.lastIndexOf("."),d=l.name.substr(c),u=e.options.upload.filename(l.name.substr(0,c))+d;e.options.upload.accept&&(e.options.upload.accept.split(",").some(function(e){var t=e.trim();if(0===t.indexOf(".")){if(d.toLowerCase()===t.toLowerCase())return!0}else if(l.type.split("/")[0]===t.split("/")[0])return!0;return!1})||(o+="<li>".concat(l.name," ").concat(window.VditorI18n.fileTypeError,"</li>"),s=!1)),s&&(n.push(l),r+="<li>".concat(u," ").concat(window.VditorI18n.uploading,' <a class="vditorCancelUpload" href="javascript:void(0)">').concat(window.VditorI18n.cancelUpload,"</a></li>"))},i=t.length,l=0;l<i;l++)a(0,l);if(e.tip.show("<ul>".concat(o).concat(r,"</ul>")),e.options.upload.cancel){var s=e.tip.element.querySelector(".vditorCancelUpload");s&&s.addEventListener("click",function(){e.options.upload.cancel(n),e.tip.hide(),e.upload.isUploading=!1})}return n}(e,o),0===s.length)return n&&(n.value=""),[2];for(c=new FormData,d=e.options.upload.extraData,u=0,p=Object.keys(d);u<p.length;u++)m=p[u],c.append(m,d[m]);for(f=0,h=s.length;f<h;f++)c.append(e.options.upload.fieldName,s[f]);return v=new XMLHttpRequest,e.upload.xhr=v,v.open("POST",e.options.upload.url),e.options.upload.token&&v.setRequestHeader("X-Upload-Token",e.options.upload.token),e.options.upload.withCredentials&&(v.withCredentials=!0),Ve(e,v),e.upload.isUploading=!0,l.setAttribute("contenteditable","false"),v.onreadystatechange=function(){if(v.readyState===XMLHttpRequest.DONE){if(e.upload.isUploading=!1,l.setAttribute("contenteditable","true"),v.status>=200&&v.status<300)if(e.options.upload.success)e.options.upload.success(l,v.responseText);else{var o=v.responseText;e.options.upload.format&&(o=e.options.upload.format(t,v.responseText)),function(e,t){ze(t).focus();var n=JSON.parse(e),o="";1===n.code&&(o="".concat(n.msg)),n.data.errFiles&&n.data.errFiles.length>0&&(o="<ul><li>".concat(o,"</li>"),n.data.errFiles.forEach(function(e){var n=e.lastIndexOf("."),r=t.options.upload.filename(e.substr(0,n))+e.substr(n);o+="<li>".concat(r," ").concat(window.VditorI18n.uploadError,"</li>")}),o+="</ul>"),o?t.tip.show(o):t.tip.hide();var r="";Object.keys(n.data.succMap).forEach(function(e){var o=n.data.succMap[e],a=e.lastIndexOf("."),i=e.substr(a),l=t.options.upload.filename(e.substr(0,a))+i;0===(i=i.toLowerCase()).indexOf(".wav")||0===i.indexOf(".mp3")||0===i.indexOf(".ogg")?"wysiwyg"===t.currentMode?r+='<div class="vditor-wysiwyg__block" data-type="html-block"\n data-block="0"><pre><code><audio controls="controls" src="'.concat(o,'"></audio></code></pre><pre class="vditor-wysiwyg__preview" data-render="1"><audio controls="controls" src="').concat(o,'"></audio></pre></div>\n'):"ir"===t.currentMode?r+='<audio controls="controls" src="'.concat(o,'"></audio>\n'):r+="[".concat(l,"](").concat(o,")\n"):0===i.indexOf(".apng")||0===i.indexOf(".bmp")||0===i.indexOf(".gif")||0===i.indexOf(".ico")||0===i.indexOf(".cur")||0===i.indexOf(".jpg")||0===i.indexOf(".jpeg")||0===i.indexOf(".jfif")||0===i.indexOf(".pjp")||0===i.indexOf(".pjpeg")||0===i.indexOf(".png")||0===i.indexOf(".svg")||0===i.indexOf(".webp")?"wysiwyg"===t.currentMode?r+='<img alt="'.concat(l,'" src="').concat(o,'">\n'):r+=".concat(o,")\n"):"wysiwyg"===t.currentMode?r+='<a href="'.concat(o,'">').concat(l,"</a>\n"):r+="[".concat(l,"](").concat(o,")\n")}),(0,H.Hc)(t.upload.range),document.execCommand("insertHTML",!1,r),t.upload.range=getSelection().getRangeAt(0).cloneRange()}(o,e)}else e.options.upload.error?e.options.upload.error(v.responseText):e.tip.show(v.responseText);n&&(n.value=""),e.upload.element.style.display="none",e.upload.xhr=void 0}},v.upload.onprogress=function(t){if(t.lengthComputable){var n=t.loaded/t.total*100;e.upload.element.style.display="block",e.upload.element.style.width=n+"%"}},v.send(c),[2]}})})},$e=function(e,t,n){var o,a=(0,b.F9)(t.startContainer);if(a||(a=e.wysiwyg.element),n&&"formatItalic"!==n.inputType&&"deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&"formatBold"!==n.inputType&&"formatRemove"!==n.inputType&&"formatStrikeThrough"!==n.inputType&&"insertUnorderedList"!==n.inputType&&"insertOrderedList"!==n.inputType&&"formatOutdent"!==n.inputType&&"formatIndent"!==n.inputType&&""!==n.inputType||!n){var i=function(e){for(var t=e.previousSibling;t;){if(3!==t.nodeType&&"A"===t.tagName&&!t.previousSibling&&""===t.innerHTML.replace(r.g.ZWSP,"")&&t.nextSibling)return t;t=t.previousSibling}return!1}(t.startContainer);i&&i.remove(),e.wysiwyg.element.querySelectorAll("wbr").forEach(function(e){e.remove()}),t.insertNode(document.createElement("wbr")),a.querySelectorAll("[style]").forEach(function(e){e.removeAttribute("style")}),a.querySelectorAll(".vditor-comment").forEach(function(e){""===e.textContent.trim()&&(e.classList.remove("vditor-comment","vditor-comment--focus"),e.removeAttribute("data-cmtids"))}),null===(o=a.previousElementSibling)||void 0===o||o.querySelectorAll(".vditor-comment").forEach(function(e){""===e.textContent.trim()&&(e.classList.remove("vditor-comment","vditor-comment--focus"),e.removeAttribute("data-cmtids"))});var l="";"link-ref-defs-block"===a.getAttribute("data-type")&&(a=e.wysiwyg.element);var s,c=a.isEqualNode(e.wysiwyg.element),d=(0,b.a1)(a,"data-type","footnotes-block");if(c)l=a.innerHTML;else{var u=(0,b.O9)(t.startContainer);if(u&&!d){var p=(0,y.S)(t.startContainer,"BLOCKQUOTE");a=p?(0,b.F9)(t.startContainer)||a:u}if(d&&(a=d),l=a.outerHTML,"UL"===a.tagName||"OL"===a.tagName){var m=a.previousElementSibling,f=a.nextElementSibling;!m||"UL"!==m.tagName&&"OL"!==m.tagName||(l=m.outerHTML+l,m.remove()),!f||"UL"!==f.tagName&&"OL"!==f.tagName||(l+=f.outerHTML,f.remove()),l=l.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}a.innerText.startsWith("```")||(e.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(e){e&&!a.isEqualNode(e)&&(l+=e.outerHTML,e.remove())}),e.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(e){e&&!a.isEqualNode(e)&&(l+=e.outerHTML,e.remove())}))}if('<p data-block="0">```<wbr></p>'===(l=l.replace(/<\/(strong|b)><strong data-marker="\W{2}">/g,"").replace(/<\/(em|i)><em data-marker="\W{1}">/g,"").replace(/<\/(s|strike)><s data-marker="~{1,2}">/g,""))&&e.hint.recentLanguage&&(l='<p data-block="0">```<wbr></p>'.replace("```","```"+e.hint.recentLanguage)),e.options.debugger,l=e.lute.SpinVditorDOM(l),e.options.debugger,c)a.innerHTML=l;else if(a.outerHTML=l,d){var h=(0,b.E2)(e.wysiwyg.element.querySelector("wbr"),"LI");if(h){var v=e.wysiwyg.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(h.getAttribute("data-marker"),'"]'));v&&v.setAttribute("aria-label",h.textContent.trim().substr(0,24))}}var g,w=e.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']");w.forEach(function(e,t){0===t?s=e:(s.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())}),w.length>0&&e.wysiwyg.element.insertAdjacentElement("beforeend",w[0]);var E=e.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']");E.forEach(function(e,t){0===t?g=e:(g.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())}),E.length>0&&e.wysiwyg.element.insertAdjacentElement("beforeend",E[0]),(0,H.ib)(e.wysiwyg.element,t),e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(t){O(t,e)}),n&&("deleteContentBackward"===n.inputType||"deleteContentForward"===n.inputType)&&e.options.comment.enable&&(e.wysiwyg.triggerRemoveComment(e),e.options.comment.adjustTop(e.wysiwyg.getComments(e,!0)))}I(e),Z(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},We=function(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{s(o.next(e))}catch(t){a(t)}}function l(e){try{s(o.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((o=o.apply(e,t||[])).next())})},Ge=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},Ke=function(e,t,n){if(229===e.keyCode&&""===e.code&&"Unidentified"===e.key&&"sv"!==t.currentMode){var o=(0,b.F9)(n);if(o&&""===o.textContent.trim())return t[t.currentMode].composingLock=!0,!1}return!0},Ye=function(e,t,n){if(!("Enter"===n.key||"Tab"===n.key||"Backspace"===n.key||n.key.indexOf("Arrow")>-1||(0,c.yl)(n)||"Escape"===n.key||n.shiftKey||n.altKey)){var o=(0,b.lG)(e.startContainer,"P")||(0,b.lG)(e.startContainer,"LI");if(o&&0===(0,H.im)(o,t[t.currentMode].element,e).start){o.nodeValue&&(o.nodeValue=o.nodeValue.replace(/\u2006/g,""));var a=document.createTextNode(r.g.ZWSP);e.insertNode(a),e.setStartAfter(a)}}},Je=function(e,t){if("ArrowDown"===t||"ArrowUp"===t){var n=(0,b.a1)(e.startContainer,"data-type","math-inline")||(0,b.a1)(e.startContainer,"data-type","html-entity")||(0,b.a1)(e.startContainer,"data-type","html-inline");n&&("ArrowDown"===t&&e.setStartAfter(n.parentElement),"ArrowUp"===t&&e.setStartBefore(n.parentElement))}},Ze=function(e,t){var n=(0,H.zh)(e),o=(0,b.F9)(n.startContainer);o&&(o.insertAdjacentHTML(t,'<p data-block="0">'.concat(r.g.ZWSP,"<wbr>\n</p>")),(0,H.ib)(e[e.currentMode].element,n),he(e),ct(e))},Qe=function(e){var t=(0,b.lG)(e,"TABLE");return!(!t||!t.rows[0].cells[0].isSameNode(e))&&t},Xe=function(e){var t=(0,b.lG)(e,"TABLE");return!(!t||!t.lastElementChild.lastElementChild.lastElementChild.isSameNode(e))&&t},et=function(e,t,n){void 0===n&&(n=!0);var o=e.previousElementSibling;return o||(o=e.parentElement.previousElementSibling?e.parentElement.previousElementSibling.lastElementChild:"TBODY"===e.parentElement.parentElement.tagName&&e.parentElement.parentElement.previousElementSibling?e.parentElement.parentElement.previousElementSibling.lastElementChild.lastElementChild:null),o&&(t.selectNodeContents(o),n||t.collapse(!1),(0,H.Hc)(t)),o},tt=function(e,t,n,o,a){var i=(0,H.im)(o,e[e.currentMode].element,n);if("ArrowDown"===t.key&&-1===o.textContent.trimRight().substr(i.start).indexOf("\n")||"ArrowRight"===t.key&&i.start>=o.textContent.trimRight().length){var l=a.nextElementSibling;return!l||l&&("TABLE"===l.tagName||l.getAttribute("data-type"))?(a.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(r.g.ZWSP,"<wbr></p>")),(0,H.ib)(e[e.currentMode].element,n)):(n.selectNodeContents(l),n.collapse(!0),(0,H.Hc)(n)),t.preventDefault(),!0}return!1},nt=function(e,t,n,o,a){var i=(0,H.im)(o,e[e.currentMode].element,n);if("ArrowUp"===t.key&&-1===o.textContent.substr(0,i.start).indexOf("\n")||("ArrowLeft"===t.key||"Backspace"===t.key&&""===n.toString())&&0===i.start){var l=a.previousElementSibling;return!l||l&&("TABLE"===l.tagName||l.getAttribute("data-type"))?(a.insertAdjacentHTML("beforebegin",'<p data-block="0">'.concat(r.g.ZWSP,"<wbr></p>")),(0,H.ib)(e[e.currentMode].element,n)):(n.selectNodeContents(l),n.collapse(!1),(0,H.Hc)(n)),t.preventDefault(),!0}return!1},ot=function(e,t,n,o){void 0===o&&(o=!0);var r=(0,b.lG)(t.startContainer,"LI");if(e[e.currentMode].element.querySelectorAll("wbr").forEach(function(e){e.remove()}),t.insertNode(document.createElement("wbr")),o&&r){for(var a="",i=0;i<r.parentElement.childElementCount;i++){var l=r.parentElement.children[i].querySelector("input");l&&l.remove(),a+='<p data-block="0">'.concat(r.parentElement.children[i].innerHTML.trimLeft(),"</p>")}r.parentElement.insertAdjacentHTML("beforebegin",a),r.parentElement.remove()}else if(r)if("check"===n)r.parentElement.querySelectorAll("li").forEach(function(e){e.insertAdjacentHTML("afterbegin",'<input type="checkbox" />'.concat(0===e.textContent.indexOf(" ")?"":" ")),e.classList.add("vditor-task")});else{r.querySelector("input")&&r.parentElement.querySelectorAll("li").forEach(function(e){e.querySelector("input").remove(),e.classList.remove("vditor-task")});var s=void 0;"list"===n?(s=document.createElement("ul")).setAttribute("data-marker","*"):(s=document.createElement("ol")).setAttribute("data-marker","1."),s.setAttribute("data-block","0"),s.setAttribute("data-tight",r.parentElement.getAttribute("data-tight")),s.innerHTML=r.parentElement.innerHTML,r.parentElement.parentNode.replaceChild(s,r.parentElement)}else{var c=(0,b.a1)(t.startContainer,"data-block","0");c||(e[e.currentMode].element.querySelector("wbr").remove(),(c=e[e.currentMode].element.querySelector("p")).innerHTML="<wbr>"),"check"===n?(c.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li class="vditor-task"><input type="checkbox" /> '.concat(c.innerHTML,"</li></ul>")),c.remove()):"list"===n?(c.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li>'.concat(c.innerHTML,"</li></ul>")),c.remove()):"ordered-list"===n&&(c.insertAdjacentHTML("beforebegin",'<ol data-block="0"><li>'.concat(c.innerHTML,"</li></ol>")),c.remove())}},rt=function(e,t,n){var o=t.previousElementSibling;if(t&&o){var r=[t];Array.from(n.cloneContents().children).forEach(function(e,n){3!==e.nodeType&&t&&""!==e.textContent.trim()&&t.getAttribute("data-node-id")===e.getAttribute("data-node-id")&&(0!==n&&r.push(t),t=t.nextElementSibling)}),e[e.currentMode].element.querySelectorAll("wbr").forEach(function(e){e.remove()}),n.insertNode(document.createElement("wbr"));var a=o.parentElement,i="";r.forEach(function(e){var t=e.getAttribute("data-marker");1!==t.length&&(t="1".concat(t.slice(-1))),i+='<li data-node-id="'.concat(e.getAttribute("data-node-id"),'" data-marker="').concat(t,'">').concat(e.innerHTML,"</li>"),e.remove()}),o.insertAdjacentHTML("beforeend","<".concat(a.tagName,' data-block="0">').concat(i,"</").concat(a.tagName,">")),"wysiwyg"===e.currentMode?a.outerHTML=e.lute.SpinVditorDOM(a.outerHTML):a.outerHTML=e.lute.SpinVditorIRDOM(a.outerHTML),(0,H.ib)(e[e.currentMode].element,n);var l=(0,b.O9)(n.startContainer);l&&l.querySelectorAll(".vditor-".concat(e.currentMode,"__preview[data-render='2']")).forEach(function(t){O(t,e),"wysiwyg"===e.currentMode&&t.previousElementSibling.setAttribute("style","display:none")}),ct(e),he(e)}else e[e.currentMode].element.focus()},at=function(e,t,n,o){var r=(0,b.lG)(t.parentElement,"LI");if(r){e[e.currentMode].element.querySelectorAll("wbr").forEach(function(e){e.remove()}),n.insertNode(document.createElement("wbr"));var a=t.parentElement,i=a.cloneNode(),l=[t];Array.from(n.cloneContents().children).forEach(function(e,n){3!==e.nodeType&&t&&""!==e.textContent.trim()&&t.getAttribute("data-node-id")===e.getAttribute("data-node-id")&&(0!==n&&l.push(t),t=t.nextElementSibling)});var s=!1,c="";a.querySelectorAll("li").forEach(function(e){s&&(c+=e.outerHTML,e.nextElementSibling||e.previousElementSibling?e.remove():e.parentElement.remove()),e.isSameNode(l[l.length-1])&&(s=!0)}),l.reverse().forEach(function(e){r.insertAdjacentElement("afterend",e)}),c&&(i.innerHTML=c,l[0].insertAdjacentElement("beforeend",i)),"wysiwyg"===e.currentMode?o.outerHTML=e.lute.SpinVditorDOM(o.outerHTML):o.outerHTML=e.lute.SpinVditorIRDOM(o.outerHTML),(0,H.ib)(e[e.currentMode].element,n);var d=(0,b.O9)(n.startContainer);d&&d.querySelectorAll(".vditor-".concat(e.currentMode,"__preview[data-render='2']")).forEach(function(t){O(t,e),"wysiwyg"===e.currentMode&&t.previousElementSibling.setAttribute("style","display:none")}),ct(e),he(e)}else e[e.currentMode].element.focus()},it=function(e,t){for(var n=getSelection().getRangeAt(0).startContainer.parentElement,o=e.rows[0].cells.length,r=e.rows.length,a=0,i=0;i<r;i++)for(var l=0;l<o;l++)if(e.rows[i].cells[l].isSameNode(n)){a=l;break}for(var s=0;s<r;s++)e.rows[s].cells[a].setAttribute("align",t)},lt=function(e){var t=e.trimRight().split("\n").pop();return""!==t&&(""===t.replace(/ |-/g,"")||""===t.replace(/ |_/g,"")||""===t.replace(/ |\*/g,""))&&t.replace(/ /g,"").length>2&&!(t.indexOf("-")>-1&&-1===t.trimLeft().indexOf(" ")&&e.trimRight().split("\n").length>1)&&0!==t.indexOf(" ")&&0!==t.indexOf("\t")},st=function(e){var t=e.trimRight().split("\n");return 0!==(e=t.pop()).indexOf(" ")&&0!==e.indexOf("\t")&&""!==(e=e.trimLeft())&&0!==t.length&&(""===e.replace(/-/g,"")||""===e.replace(/=/g,""))},ct=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),"wysiwyg"===e.currentMode?Z(e,t):"ir"===e.currentMode?Mt(e,t):"sv"===e.currentMode&&je(e,t)},dt=function(e,t,n,o){var a,i=e.startContainer,l=(0,b.lG)(i,"LI");if(l){if(!(0,c.yl)(o)&&!o.altKey&&"Enter"===o.key&&!o.shiftKey&&n&&l.contains(n)&&n.nextElementSibling)return l&&!l.textContent.endsWith("\n")&&l.insertAdjacentText("beforeend","\n"),e.insertNode(document.createTextNode("\n\n")),e.collapse(!1),ct(t),o.preventDefault(),!0;if(!((0,c.yl)(o)||o.shiftKey||o.altKey||"Backspace"!==o.key||l.previousElementSibling||""!==e.toString()||0!==(0,H.im)(l,t[t.currentMode].element,e).start))return l.nextElementSibling?(l.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat(l.innerHTML,"</p>")),l.remove()):l.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(l.innerHTML,"</p>"),(0,H.ib)(t[t.currentMode].element,e),ct(t),o.preventDefault(),!0;if(!(0,c.yl)(o)&&!o.shiftKey&&!o.altKey&&"Backspace"===o.key&&""===l.textContent.trim().replace(r.g.ZWSP,"")&&""===e.toString()&&"LI"===(null===(a=l.previousElementSibling)||void 0===a?void 0:a.tagName))return l.previousElementSibling.insertAdjacentText("beforeend","\n\n"),e.selectNodeContents(l.previousElementSibling),e.collapse(!1),l.remove(),(0,H.ib)(t[t.currentMode].element,e),ct(t),o.preventDefault(),!0;if(!(0,c.yl)(o)&&!o.altKey&&"Tab"===o.key){var s=!1;if((0===e.startOffset&&(3===i.nodeType&&!i.previousSibling||3!==i.nodeType&&"LI"===i.nodeName)||l.classList.contains("vditor-task")&&1===e.startOffset&&3!==i.previousSibling.nodeType&&"INPUT"===i.previousSibling.tagName)&&(s=!0),s||""!==e.toString())return o.shiftKey?at(t,l,e,l.parentElement):rt(t,l,e),o.preventDefault(),!0}}return!1},ut=function(e,t,n){if(e.options.tab&&"Tab"===n.key)return n.shiftKey||(""===t.toString()?(t.insertNode(document.createTextNode(e.options.tab)),t.collapse(!1)):(t.extractContents(),t.insertNode(document.createTextNode(e.options.tab)),t.collapse(!1))),(0,H.Hc)(t),ct(e),n.preventDefault(),!0},pt=function(e,t,n,o){if(n){if(!(0,c.yl)(e)&&!e.altKey&&"Enter"===e.key){var r=String.raw(K||(d=["",""],u=["",""],Object.defineProperty?Object.defineProperty(d,"raw",{value:u}):d.raw=u,K=d),n.textContent).replace(/\\\|/g,"").trim(),a=r.split("|");if(r.startsWith("|")&&r.endsWith("|")&&a.length>3){var i=a.map(function(){return"---"}).join("|");return i=n.textContent+"\n"+i.substring(3,i.length-3)+"\n|<wbr>",n.outerHTML=t.lute.SpinVditorDOM(i),(0,H.ib)(t[t.currentMode].element,o),ct(t),Me(t),e.preventDefault(),!0}if(lt(n.innerHTML)&&n.previousElementSibling){var l="",s=n.innerHTML.trimRight().split("\n");return s.length>1&&(s.pop(),l='<p data-block="0">'.concat(s.join("\n"),"</p>")),n.insertAdjacentHTML("afterend","".concat(l,'<hr data-block="0"><p data-block="0"><wbr>\n</p>')),n.remove(),(0,H.ib)(t[t.currentMode].element,o),ct(t),Me(t),e.preventDefault(),!0}if(st(n.innerHTML))return"wysiwyg"===t.currentMode?n.outerHTML=t.lute.SpinVditorDOM(n.innerHTML+'<p data-block="0"><wbr>\n</p>'):n.outerHTML=t.lute.SpinVditorIRDOM(n.innerHTML+'<p data-block="0"><wbr>\n</p>'),(0,H.ib)(t[t.currentMode].element,o),ct(t),Me(t),e.preventDefault(),!0}var d,u;if(o.collapsed&&n.previousElementSibling&&"Backspace"===e.key&&!(0,c.yl)(e)&&!e.altKey&&!e.shiftKey&&n.textContent.trimRight().split("\n").length>1&&0===(0,H.im)(n,t[t.currentMode].element,o).start){var p=(0,b.DX)(n.previousElementSibling);return p.textContent.endsWith("\n")||(p.textContent=p.textContent+"\n"),p.parentElement.insertAdjacentHTML("beforeend","<wbr>".concat(n.innerHTML)),n.remove(),(0,H.ib)(t[t.currentMode].element,o),!1}return!1}},mt=function(e,t,n){for(var o="",r=0;r<n.parentElement.childElementCount;r++)o+='<td align="'.concat(n.parentElement.children[r].getAttribute("align"),'"> </td>');"TH"===n.tagName?n.parentElement.parentElement.insertAdjacentHTML("afterend","<tbody><tr>".concat(o,"</tr></tbody>")):n.parentElement.insertAdjacentHTML("afterend","<tr>".concat(o,"</tr>")),ct(e)},ft=function(e,t,n){for(var o="",r=0;r<n.parentElement.childElementCount;r++)"TH"===n.tagName?o+='<th align="'.concat(n.parentElement.children[r].getAttribute("align"),'"> </th>'):o+='<td align="'.concat(n.parentElement.children[r].getAttribute("align"),'"> </td>');if("TH"===n.tagName){n.parentElement.parentElement.insertAdjacentHTML("beforebegin","<thead><tr>".concat(o,"</tr></thead>")),t.insertNode(document.createElement("wbr"));var a=n.parentElement.innerHTML.replace(/<th>/g,"<td>").replace(/<\/th>/g,"</td>");n.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin",a),n.parentElement.parentElement.remove(),(0,H.ib)(e.ir.element,t)}else n.parentElement.insertAdjacentHTML("beforebegin","<tr>".concat(o,"</tr>"));ct(e)},ht=function(e,t,n,o){void 0===o&&(o="afterend");for(var r=0,a=n.previousElementSibling;a;)r++,a=a.previousElementSibling;for(var i=0;i<t.rows.length;i++)0===i?t.rows[i].cells[r].insertAdjacentHTML(o,"<th> </th>"):t.rows[i].cells[r].insertAdjacentHTML(o,"<td> </td>");ct(e)},vt=function(e,t,n){if("TD"===n.tagName){var o=n.parentElement.parentElement;n.parentElement.previousElementSibling?t.selectNodeContents(n.parentElement.previousElementSibling.lastElementChild):t.selectNodeContents(o.previousElementSibling.lastElementChild.lastElementChild),1===o.childElementCount?o.remove():n.parentElement.remove(),t.collapse(!1),(0,H.Hc)(t),ct(e)}},gt=function(e,t,n,o){for(var r=0,a=o.previousElementSibling;a;)r++,a=a.previousElementSibling;(o.previousElementSibling||o.nextElementSibling)&&(t.selectNodeContents(o.previousElementSibling||o.nextElementSibling),t.collapse(!0));for(var i=0;i<n.rows.length;i++){var l=n.rows[i].cells;if(1===l.length){n.remove(),he(e);break}l[r].remove()}(0,H.Hc)(t),ct(e)},bt=function(e,t,n){var o=n.startContainer,r=(0,b.lG)(o,"TD")||(0,b.lG)(o,"TH");if(r){if(!(0,c.yl)(t)&&!t.altKey&&"Enter"===t.key){r.lastElementChild&&(!r.lastElementChild||r.lastElementChild.isSameNode(r.lastChild)&&"BR"===r.lastElementChild.tagName)||r.insertAdjacentHTML("beforeend","<br>");var a=document.createElement("br");return n.insertNode(a),n.setStartAfter(a),ct(e),Me(e),t.preventDefault(),!0}if("Tab"===t.key)return t.shiftKey?(et(r,n),t.preventDefault(),!0):((u=r.nextElementSibling)||(u=r.parentElement.nextElementSibling?r.parentElement.nextElementSibling.firstElementChild:"THEAD"===r.parentElement.parentElement.tagName&&r.parentElement.parentElement.nextElementSibling?r.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild:null),u&&(n.selectNodeContents(u),(0,H.Hc)(n)),t.preventDefault(),!0);var i=r.parentElement.parentElement.parentElement;if("ArrowUp"===t.key){if(t.preventDefault(),"TH"===r.tagName)return i.previousElementSibling?(n.selectNodeContents(i.previousElementSibling),n.collapse(!1),(0,H.Hc)(n)):Ze(e,"beforebegin"),!0;for(var l=0,s=r.parentElement;l<s.cells.length&&!s.cells[l].isSameNode(r);l++);var d=s.previousElementSibling;return d||(d=s.parentElement.previousElementSibling.firstChild),n.selectNodeContents(d.cells[l]),n.collapse(!1),(0,H.Hc)(n),!0}if("ArrowDown"===t.key){var u;if(t.preventDefault(),!(s=r.parentElement).nextElementSibling&&"TD"===r.tagName)return i.nextElementSibling?(n.selectNodeContents(i.nextElementSibling),n.collapse(!0),(0,H.Hc)(n)):Ze(e,"afterend"),!0;for(l=0;l<s.cells.length&&!s.cells[l].isSameNode(r);l++);return(u=s.nextElementSibling)||(u=s.parentElement.nextElementSibling.firstChild),n.selectNodeContents(u.cells[l]),n.collapse(!0),(0,H.Hc)(n),!0}if("wysiwyg"===e.currentMode&&!(0,c.yl)(t)&&"Enter"===t.key&&!t.shiftKey&&t.altKey){var p=e.wysiwyg.popover.querySelector(".vditor-input");return p.focus(),p.select(),t.preventDefault(),!0}if(!(0,c.yl)(t)&&!t.shiftKey&&!t.altKey&&"Backspace"===t.key&&0===n.startOffset&&""===n.toString())return!et(r,n,!1)&&i&&(""===i.textContent.trim()?(i.outerHTML='<p data-block="0"><wbr>\n</p>',(0,H.ib)(e[e.currentMode].element,n)):(n.setStartBefore(i),n.collapse(!0)),ct(e)),t.preventDefault(),!0;if(R("⇧⌘F",t))return ft(e,n,r),t.preventDefault(),!0;if(R("⌘=",t))return mt(e,n,r),t.preventDefault(),!0;if(R("⇧⌘G",t))return ht(e,i,r,"beforebegin"),t.preventDefault(),!0;if(R("⇧⌘=",t))return ht(e,i,r),t.preventDefault(),!0;if(R("⌘-",t))return vt(e,n,r),t.preventDefault(),!0;if(R("⇧⌘-",t))return gt(e,n,i,r),t.preventDefault(),!0;if(R("⇧⌘L",t)){if("ir"===e.currentMode)return it(i,"left"),ct(e),t.preventDefault(),!0;if(m=e.wysiwyg.popover.querySelector('[data-type="left"]'))return m.click(),t.preventDefault(),!0}if(R("⇧⌘C",t)){if("ir"===e.currentMode)return it(i,"center"),ct(e),t.preventDefault(),!0;if(m=e.wysiwyg.popover.querySelector('[data-type="center"]'))return m.click(),t.preventDefault(),!0}if(R("⇧⌘R",t)){if("ir"===e.currentMode)return it(i,"right"),ct(e),t.preventDefault(),!0;var m;if(m=e.wysiwyg.popover.querySelector('[data-type="right"]'))return m.click(),t.preventDefault(),!0}}return!1},yt=function(e,t,n,o){if("PRE"===n.tagName&&R("⌘A",t))return o.selectNodeContents(n.firstElementChild),t.preventDefault(),!0;if(e.options.tab&&"Tab"===t.key&&!t.shiftKey&&""===o.toString())return o.insertNode(document.createTextNode(e.options.tab)),o.collapse(!1),ct(e),t.preventDefault(),!0;if("Backspace"===t.key&&!(0,c.yl)(t)&&!t.shiftKey&&!t.altKey){var r=(0,H.im)(n,e[e.currentMode].element,o);if((0===r.start||1===r.start&&"\n"===n.innerText)&&""===o.toString())return n.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(n.firstElementChild.innerHTML,"</p>"),(0,H.ib)(e[e.currentMode].element,o),ct(e),t.preventDefault(),!0}return!(0,c.yl)(t)&&!t.altKey&&"Enter"===t.key&&(n.firstElementChild.textContent.endsWith("\n")||n.firstElementChild.insertAdjacentText("beforeend","\n"),o.extractContents(),o.insertNode(document.createTextNode("\n")),o.collapse(!1),(0,H.Hc)(o),(0,c.vU)()||("wysiwyg"===e.currentMode?$e(e,o):N(e,o)),Me(e),t.preventDefault(),!0)},wt=function(e,t,n,o){var a=t.startContainer,i=(0,b.lG)(a,"BLOCKQUOTE");if(i&&""===t.toString()){if("Backspace"===n.key&&!(0,c.yl)(n)&&!n.shiftKey&&!n.altKey&&0===(0,H.im)(i,e[e.currentMode].element,t).start)return t.insertNode(document.createElement("wbr")),i.outerHTML=i.innerHTML,(0,H.ib)(e[e.currentMode].element,t),ct(e),n.preventDefault(),!0;if(o&&"Enter"===n.key&&!(0,c.yl)(n)&&!n.shiftKey&&!n.altKey&&"BLOCKQUOTE"===o.parentElement.tagName){var l=!1;if("\n"===o.innerHTML.replace(r.g.ZWSP,"")||""===o.innerHTML.replace(r.g.ZWSP,"")?(l=!0,o.remove()):o.innerHTML.endsWith("\n\n")&&(0,H.im)(o,e[e.currentMode].element,t).start===o.textContent.length-1&&(o.innerHTML=o.innerHTML.substr(0,o.innerHTML.length-2),l=!0),l)return i.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(r.g.ZWSP,"<wbr>\n</p>")),(0,H.ib)(e[e.currentMode].element,t),ct(e),n.preventDefault(),!0}var s=(0,b.F9)(a);if("wysiwyg"===e.currentMode&&s&&R("⇧⌘;",n))return t.insertNode(document.createElement("wbr")),s.outerHTML='<blockquote data-block="0">'.concat(s.outerHTML,"</blockquote>"),(0,H.ib)(e.wysiwyg.element,t),Z(e),n.preventDefault(),!0;if(tt(e,n,t,i,i))return!0;if(nt(e,n,t,i,i))return!0}return!1},Et=function(e,t,n){var o=t.startContainer,r=(0,b.lG)(o,"LI");if(r&&r.classList.contains("vditor-task")){if(R("⇧⌘J",n)){var a=r.firstElementChild;return a.checked?a.removeAttribute("checked"):a.setAttribute("checked","checked"),ct(e),n.preventDefault(),!0}if("Backspace"===n.key&&!(0,c.yl)(n)&&!n.shiftKey&&!n.altKey&&""===t.toString()&&1===t.startOffset&&(3===o.nodeType&&o.previousSibling&&"INPUT"===o.previousSibling.tagName||3!==o.nodeType)){var i=r.previousElementSibling;return r.querySelector("input").remove(),i?((0,b.DX)(i).parentElement.insertAdjacentHTML("beforeend","<wbr>"+r.innerHTML.trim()),r.remove()):(r.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat(r.innerHTML.trim()||"\n","</p>")),r.nextElementSibling?r.remove():r.parentElement.remove()),(0,H.ib)(e[e.currentMode].element,t),ct(e),n.preventDefault(),!0}if("Enter"===n.key&&!(0,c.yl)(n)&&!n.shiftKey&&!n.altKey){if(""===r.textContent.trim())if((0,b.fb)(r.parentElement,"vditor-task")){var l=(0,b.O9)(o);l&&at(e,r,t,l)}else if(r.nextElementSibling){var s="",d="",u=!1;Array.from(r.parentElement.children).forEach(function(e){r.isSameNode(e)?u=!0:u?s+=e.outerHTML:d+=e.outerHTML});var p=r.parentElement.tagName,m="OL"===r.parentElement.tagName?"":' data-marker="'.concat(r.parentElement.getAttribute("data-marker"),'"'),f="";d&&(f="UL"===r.parentElement.tagName?"":' start="1"',d="<".concat(p,' data-tight="true"').concat(m,' data-block="0">').concat(d,"</").concat(p,">")),r.parentElement.outerHTML="".concat(d,'<p data-block="0"><wbr>\n</p><').concat(p,'\n data-tight="true"').concat(m,' data-block="0"').concat(f,">").concat(s,"</").concat(p,">")}else r.parentElement.insertAdjacentHTML("afterend",'<p data-block="0"><wbr>\n</p>'),1===r.parentElement.querySelectorAll("li").length?r.parentElement.remove():r.remove();else 3!==o.nodeType&&0===t.startOffset&&"INPUT"===o.firstChild.tagName?t.setStart(o.childNodes[1],1):(t.setEndAfter(r.lastChild),r.insertAdjacentHTML("afterend",'<li class="vditor-task" data-marker="'.concat(r.getAttribute("data-marker"),'"><input type="checkbox"> <wbr></li>')),document.querySelector("wbr").after(t.extractContents()));return(0,H.ib)(e[e.currentMode].element,t),ct(e),Me(e),n.preventDefault(),!0}}return!1},kt=function(e,t,n,o){if(3!==t.startContainer.nodeType){var r=t.startContainer.children[t.startOffset];if(r&&"HR"===r.tagName)return t.selectNodeContents(r.previousElementSibling),t.collapse(!1),n.preventDefault(),!0}if(o){var a=o.previousElementSibling;if(a&&0===(0,H.im)(o,e[e.currentMode].element,t).start&&((0,c.vU)()&&"HR"===a.tagName||"TABLE"===a.tagName)){if("TABLE"===a.tagName){var i=a.lastElementChild.lastElementChild.lastElementChild;i.innerHTML=i.innerHTML.trimLeft()+"<wbr>"+o.textContent.trim(),o.remove()}else a.remove();return(0,H.ib)(e[e.currentMode].element,t),ct(e),n.preventDefault(),!0}}return!1},_t=function(e){(0,c.vU)()&&3!==e.startContainer.nodeType&&"HR"===e.startContainer.tagName&&e.setStartBefore(e.startContainer)},St=function(e,t,n){var o,r;if(!(0,c.vU)())return!1;if("ArrowUp"===e.key&&t&&"TABLE"===(null===(o=t.previousElementSibling)||void 0===o?void 0:o.tagName)){var a=t.previousElementSibling;return n.selectNodeContents(a.rows[a.rows.length-1].lastElementChild),n.collapse(!1),e.preventDefault(),!0}return!("ArrowDown"!==e.key||!t||"TABLE"!==(null===(r=t.nextElementSibling)||void 0===r?void 0:r.tagName)||(n.selectNodeContents(t.nextElementSibling.rows[0].cells[0]),n.collapse(!0),e.preventDefault(),0))},xt=function(e,t,n){return We(void 0,void 0,void 0,function(){var o,a,i,l,s,c,d,u,p,m,f,h,v,g,y,w;return Ge(this,function(E){switch(E.label){case 0:return"true"!==e[e.currentMode].element.getAttribute("contenteditable")?[2]:(t.stopPropagation(),t.preventDefault(),"clipboardData"in t?(o=t.clipboardData.getData("text/html"),a=t.clipboardData.getData("text/plain"),i=t.clipboardData.files):(o=t.dataTransfer.getData("text/html"),a=t.dataTransfer.getData("text/plain"),t.dataTransfer.types.includes("Files")&&(i=t.dataTransfer.items)),l={},s=function(t,n){if(!n)return["",Lute.WalkContinue];if(e.options.upload.renderLinkDest)return e.options.upload.renderLinkDest(e,t,n);var o=t.TokensStr();if(34===t.__internal_object__.Parent.Type&&o&&-1===o.indexOf("file://")&&e.options.upload.linkToImgUrl){var r=new XMLHttpRequest;r.open("POST",e.options.upload.linkToImgUrl),e.options.upload.token&&r.setRequestHeader("X-Upload-Token",e.options.upload.token),e.options.upload.withCredentials&&(r.withCredentials=!0),Ve(e,r),r.setRequestHeader("Content-Type","application/json; charset=utf-8"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){if(200===r.status){var t=r.responseText;e.options.upload.linkToImgFormat&&(t=e.options.upload.linkToImgFormat(r.responseText));var n=JSON.parse(t);if(0!==n.code)return void e.tip.show(n.msg);var o=n.data.originalURL;if("sv"===e.currentMode)e.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach(function(e){e.textContent===o&&(e.textContent=n.data.url)});else{var a=e[e.currentMode].element.querySelector('img[src="'.concat(o,'"]'));a.src=n.data.url,"ir"===e.currentMode&&(a.previousElementSibling.previousElementSibling.innerHTML=n.data.url)}ct(e)}else e.tip.show(r.responseText);e.options.upload.linkToImgCallback&&e.options.upload.linkToImgCallback(r.responseText)}},r.send(JSON.stringify({url:o}))}return"ir"===e.currentMode?['<span class="vditor-ir__marker vditor-ir__marker--link">'.concat(Lute.EscapeHTMLStr(o),"</span>"),Lute.WalkContinue]:"wysiwyg"===e.currentMode?["",Lute.WalkContinue]:['<span class="vditor-sv__marker--link">'.concat(Lute.EscapeHTMLStr(o),"</span>"),Lute.WalkContinue]},o.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()!=='<a href="'.concat(a,'">').concat(a,"</a>")&&o.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()!=='\x3c!--StartFragment--\x3e<a href="'.concat(a,'">').concat(a,"</a>\x3c!--EndFragment--\x3e")||(o=""),(c=(new DOMParser).parseFromString(o,"text/html")).body&&(o=c.body.innerHTML),o=Lute.Sanitize(o),e.wysiwyg.getComments(e),d=e[e.currentMode].element.scrollHeight,u=function(e,t,n){void 0===n&&(n="sv");var o=document.createElement("div");o.innerHTML=e;var r=!1;1===o.childElementCount&&o.lastElementChild.style.fontFamily.indexOf("monospace")>-1&&(r=!0);var a=o.querySelectorAll("pre");if(1===o.childElementCount&&1===a.length&&"vditor-wysiwyg"!==a[0].className&&"vditor-sv"!==a[0].className&&(r=!0),0===e.indexOf('\n<p class="p1">')&&(r=!0),1===o.childElementCount&&"TABLE"===o.firstElementChild.tagName&&o.querySelector(".line-number")&&o.querySelector(".line-content")&&(r=!0),r){var i=t||e;return/\n/.test(i)||1===a.length?"wysiwyg"===n?'<div class="vditor-wysiwyg__block" data-block="0" data-type="code-block"><pre><code>'.concat(i.replace(/&/g,"&").replace(/</g,"<"),"<wbr></code></pre></div>"):"\n```\n"+i.replace(/&/g,"&").replace(/</g,"<")+"\n```":"wysiwyg"===n?"<code>".concat(i.replace(/&/g,"&").replace(/</g,"<"),"</code><wbr>"):"`".concat(i,"`")}return!1}(o,a,e.currentMode),(p="sv"===e.currentMode?(0,b.a1)(t.target,"data-type","code-block"):(0,b.lG)(t.target,"CODE"))?("sv"===e.currentMode?document.execCommand("insertHTML",!1,a.replace(/&/g,"&").replace(/</g,"<")):(m=(0,H.im)(t.target,e[e.currentMode].element),"PRE"!==p.parentElement.tagName&&(a+=r.g.ZWSP),p.textContent=p.textContent.substring(0,m.start)+a+p.textContent.substring(m.end),(0,H.$j)(m.start+a.length,m.start+a.length,p.parentElement),(null===(w=p.parentElement)||void 0===w?void 0:w.nextElementSibling.classList.contains("vditor-".concat(e.currentMode,"__preview")))&&(p.parentElement.nextElementSibling.innerHTML=p.outerHTML,O(p.parentElement.nextElementSibling,e))),[3,10]):[3,1]);case 1:return u?(n.pasteCode(u),[3,10]):[3,2];case 2:return""===o.trim()?[3,5]:((f=document.createElement("div")).innerHTML=o,e.options.upload.base64ToLink?[3,4]:[4,Lt(e,f,("clipboardData"in t?t.clipboardData:t.dataTransfer).getData("text/rtf"))]);case 3:E.sent(),E.label=4;case 4:return f.querySelectorAll("[style]").forEach(function(e){e.removeAttribute("style")}),f.querySelectorAll(".vditor-copy").forEach(function(e){e.remove()}),"ir"===e.currentMode?(l.HTML2VditorIRDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),(0,H.oC)(e.lute.HTML2VditorIRDOM(f.innerHTML),e)):"wysiwyg"===e.currentMode?(l.HTML2VditorDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),(0,H.oC)(e.lute.HTML2VditorDOM(f.innerHTML),e)):(l.Md2VditorSVDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),Oe(e,e.lute.HTML2Md(f.innerHTML).trimRight())),e.outline.render(e),[3,10];case 5:return i.length>0?e.options.upload.url||e.options.upload.handler?[4,Fe(e,i)]:[3,7]:[3,9];case 6:return E.sent(),[3,8];case 7:h=new FileReader,"clipboardData"in t?(i=t.clipboardData.files,v=i[0]):t.dataTransfer.types.includes("Files")&&(i=t.dataTransfer.items,v=i[0].getAsFile()),v&&v.type.startsWith("image")&&(h.readAsDataURL(v),h.onload=function(){var t="";"wysiwyg"===e.currentMode?t+='<img alt="'.concat(v.name,'" src="').concat(h.result.toString(),'">\n'):t+=".concat(h.result.toString(),")\n"),document.execCommand("insertHTML",!1,t)}),E.label=8;case 8:return[3,10];case 9:""!==a.trim()&&0===i.length&&(""!==(y=(0,H.zh)(e)).toString()&&e.lute.IsValidLinkDest(a)&&(a="[".concat(y.toString(),"](").concat(a,")")),"ir"===e.currentMode?(l.Md2VditorIRDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),(0,H.oC)(Lute.Sanitize(e.lute.Md2VditorIRDOM(a)),e)):"wysiwyg"===e.currentMode?(l.Md2VditorDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),(0,H.oC)(Lute.Sanitize(e.lute.Md2VditorDOM(a)),e)):(l.Md2VditorSVDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),Oe(e,a)),e.outline.render(e)),E.label=10;case 10:return"sv"!==e.currentMode&&((g=(0,b.F9)((0,H.zh)(e).startContainer))&&(y=(0,H.zh)(e),e[e.currentMode].element.querySelectorAll("wbr").forEach(function(e){e.remove()}),y.insertNode(document.createElement("wbr")),"wysiwyg"===e.currentMode?g.outerHTML=e.lute.SpinVditorDOM(g.outerHTML):g.outerHTML=e.lute.SpinVditorIRDOM(g.outerHTML),(0,H.ib)(e[e.currentMode].element,y)),e[e.currentMode].element.querySelectorAll(".vditor-".concat(e.currentMode,"__preview[data-render='2']")).forEach(function(t){O(t,e)})),e.wysiwyg.triggerRemoveComment(e),ct(e),e[e.currentMode].element.scrollHeight-d>Math.min(e[e.currentMode].element.clientHeight,window.innerHeight)/2&&Me(e),[2]}})})},Lt=function(e,t,n){return We(void 0,void 0,void 0,function(){var o,r,a,i,l,s,c,d,u,p,m,f,h,v,g;return Ge(this,function(b){switch(b.label){case 0:if(!n)return[2];if(o=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,r=new RegExp("(?:("+o.source+"))([\\da-fA-F\\s]+)\\}","g"),a=n.match(r),i=[],a)for(l=0,s=a;l<s.length;l++)c=s[l],d=void 0,c.includes("\\pngblip")?d="image/png":c.includes("\\jpegblip")&&(d="image/jpeg"),d&&i.push({hex:c.replace(o,"").replace(/[^\da-fA-F]/g,""),type:d});for(u=[],Ct(t,function(e){if("V:SHAPE"===e.tagName)return Ct(e,function(t){"V:IMAGEDATA"===t.tagName&&u.push({shape:e,img:t})}),!1}),h=0;h<u.length;h++)p=document.createElement("img"),m="data:"+i[h].type+";base64,"+btoa((i[h].hex.match(/\w{2}/g)||[]).map(function(e){return String.fromCharCode(parseInt(e,16))}).join("")),p.src=m,p.title=u[h].img.getAttribute("title"),u[h].shape.parentNode.replaceChild(p,u[h].shape);f=t.querySelectorAll("img"),h=0,b.label=1;case 1:return h<f.length?(v=f[h].src||"")?(g=f[h],[4,e.options.upload.base64ToLink(v)]):[3,3]:[3,4];case 2:g.src=b.sent(),b.label=3;case 3:return h++,[3,1];case 4:return[2]}})})},Ct=function(e,t){if(!1!==t(e))for(var n=0;n<e.children.length;n++)Ct(e.children[n],t)},At=function(e){var t,n;e.hint.render(e);var o=(0,H.zh)(e).startContainer,a=(0,b.a1)(o,"data-type","code-block-info");if(a)if(""===a.textContent.replace(r.g.ZWSP,"")&&e.hint.recentLanguage)a.textContent=r.g.ZWSP+e.hint.recentLanguage,(0,H.zh)(e).selectNodeContents(a);else{var i=[],l=a.textContent.substring(0,(0,H.im)(a,e.ir.element).start).replace(r.g.ZWSP,"");(e.options.preview.hljs.langs||r.g.ALIAS_CODE_LANGUAGES.concat((null!==(n=null===(t=window.hljs)||void 0===t?void 0:t.listLanguages())&&void 0!==n?n:[]).sort())).forEach(function(e){e.indexOf(l.toLowerCase())>-1&&i.push({html:e,value:e})}),e.hint.genHTML(i,l,e)}},Mt=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&At(e),clearTimeout(e.ir.processTimeoutId),e.ir.processTimeoutId=window.setTimeout(function(){if(!e.ir.composingLock){var n=i(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&(0,c.pK)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),t.enableAddUndoStack&&e.undo.addToUndoStack(e)}},e.options.undoDelay)},Tt=function(e,t){var n=(0,H.zh)(e),o=(0,b.F9)(n.startContainer)||n.startContainer;if(o){var r=o.querySelector(".vditor-ir__marker--heading");r?r.innerHTML=t:(o.insertAdjacentText("afterbegin",t),n.selectNodeContents(o),n.collapse(!1)),N(e,n.cloneRange()),J(e)}},Dt=function(e,t,n){var o=(0,b.a1)(e.startContainer,"data-type",n);if(o){o.firstElementChild.remove(),o.lastElementChild.remove(),e.insertNode(document.createElement("wbr"));var r=document.createElement("div");r.innerHTML=t.lute.SpinVditorIRDOM(o.outerHTML),o.outerHTML=r.firstElementChild.innerHTML.trim()}},Ot=function(e,t,n,o){var r=(0,H.zh)(e),a=t.getAttribute("data-type"),i=r.startContainer;3===i.nodeType&&(i=i.parentElement);var l=!0;if(t.classList.contains("vditor-menu--current"))if("quote"===a){var s=(0,b.lG)(i,"BLOCKQUOTE");s&&(r.insertNode(document.createElement("wbr")),s.outerHTML=""===s.innerHTML.trim()?'<p data-block="0">'.concat(s.innerHTML,"</p>"):s.innerHTML)}else if("link"===a){var c=(0,b.a1)(r.startContainer,"data-type","a");if(c){var u=(0,b.fb)(r.startContainer,"vditor-ir__link");u?(r.insertNode(document.createElement("wbr")),c.outerHTML=u.innerHTML):c.outerHTML=c.querySelector(".vditor-ir__link").innerHTML+"<wbr>"}}else"italic"===a?Dt(r,e,"em"):"bold"===a?Dt(r,e,"strong"):"strike"===a?Dt(r,e,"s"):"inline-code"===a?Dt(r,e,"code"):"check"!==a&&"list"!==a&&"ordered-list"!==a||(ot(e,r,a),l=!1,t.classList.remove("vditor-menu--current"));else{0===e.ir.element.childNodes.length&&(e.ir.element.innerHTML='<p data-block="0"><wbr></p>',(0,H.ib)(e.ir.element,r));var p=(0,b.F9)(r.startContainer);if("line"===a){if(p){var m='<hr data-block="0"><p data-block="0"><wbr>\n</p>';""===p.innerHTML.trim()?p.outerHTML=m:p.insertAdjacentHTML("afterend",m)}}else if("quote"===a)p&&(r.insertNode(document.createElement("wbr")),p.outerHTML='<blockquote data-block="0">'.concat(p.outerHTML,"</blockquote>"),l=!1,t.classList.add("vditor-menu--current"));else if("link"===a){var f=void 0;f=""===r.toString()?"".concat(n,"<wbr>").concat(o):"".concat(n).concat(r.toString()).concat(o.replace(")","<wbr>)")),document.execCommand("insertHTML",!1,f),l=!1,t.classList.add("vditor-menu--current")}else if("italic"===a||"bold"===a||"strike"===a||"inline-code"===a||"code"===a||"table"===a){f=void 0,""===r.toString()?f="".concat(n,"<wbr>").concat(o):(f="code"===a?"".concat(n,"\n").concat(r.toString(),"<wbr>").concat(o):"table"===a?"".concat(n).concat(r.toString(),"<wbr>").concat(o):"".concat(n).concat(r.toString()).concat(o,"<wbr>"),r.deleteContents()),"table"!==a&&"code"!==a||(f="\n"+f+"\n\n");var h=document.createElement("span");h.innerHTML=f,r.insertNode(h),N(e,r),"table"===a&&(r.selectNodeContents(getSelection().getRangeAt(0).startContainer.parentElement),(0,H.Hc)(r))}else"check"!==a&&"list"!==a&&"ordered-list"!==a||(ot(e,r,a,!1),l=!1,d(e.toolbar.elements,["check","list","ordered-list"]),t.classList.add("vditor-menu--current"))}(0,H.ib)(e.ir.element,r),Mt(e),l&&J(e)},Ht=function(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{s(o.next(e))}catch(t){a(t)}}function l(e){try{s(o.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,l)}s((o=o.apply(e,t||[])).next())})},It=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},Pt=function(){function e(e){var t=this;this.splitChar="",this.lastIndex=-1,this.fillEmoji=function(e,n){t.element.style.display="none";var o=decodeURIComponent(e.getAttribute("data-value")),a=window.getSelection().getRangeAt(0);if("ir"===n.currentMode){var i=(0,b.a1)(a.startContainer,"data-type","code-block-info");if(i)return i.textContent=r.g.ZWSP+o.trimRight(),a.selectNodeContents(i),a.collapse(!1),Mt(n),i.parentElement.querySelectorAll("code").forEach(function(e){e.className="language-"+o.trimRight()}),O(i.parentElement.querySelector(".vditor-ir__preview"),n),void(t.recentLanguage=o.trimRight())}if("wysiwyg"===n.currentMode&&3!==a.startContainer.nodeType){var l=a.startContainer,s=void 0;if((s=l.classList.contains("vditor-input")?l:l.firstElementChild)&&s.classList.contains("vditor-input"))return s.value=o.trimRight(),a.selectNodeContents(s),a.collapse(!1),s.dispatchEvent(new CustomEvent("input",{detail:1})),void(t.recentLanguage=o.trimRight())}if(a.setStart(a.startContainer,t.lastIndex),a.deleteContents(),n.options.hint.parse?"sv"===n.currentMode?(0,H.oC)(n.lute.SpinVditorSVDOM(o),n):"wysiwyg"===n.currentMode?(0,H.oC)(n.lute.SpinVditorDOM(o),n):(0,H.oC)(n.lute.SpinVditorIRDOM(o),n):(0,H.oC)(o,n),":"===t.splitChar&&o.indexOf(":")>-1&&"sv"!==n.currentMode&&a.insertNode(document.createTextNode(" ")),a.collapse(!1),(0,H.Hc)(a),"wysiwyg"===n.currentMode)(c=(0,b.fb)(a.startContainer,"vditor-wysiwyg__block"))&&c.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(c.lastElementChild.innerHTML=c.firstElementChild.innerHTML,O(c.lastElementChild,n));else if("ir"===n.currentMode){var c;(c=(0,b.fb)(a.startContainer,"vditor-ir__marker--pre"))&&c.nextElementSibling.classList.contains("vditor-ir__preview")&&(c.nextElementSibling.innerHTML=c.innerHTML,O(c.nextElementSibling,n))}ct(n)},this.timeId=-1,this.element=document.createElement("div"),this.element.className="vditor-hint",this.recentLanguage="",e.push({key:":"})}return e.prototype.render=function(e){var t=this;if(window.getSelection().focusNode){var n,o=getSelection().getRangeAt(0);n=o.startContainer.textContent.substring(0,o.startOffset)||"";var r=this.getKey(n,e.options.hint.extend);if(void 0===r)this.element.style.display="none",clearTimeout(this.timeId);else if(":"===this.splitChar){var a=""===r?e.options.hint.emoji:e.lute.GetEmojis(),i=[];Object.keys(a).forEach(function(e){0===e.indexOf(r.toLowerCase())&&(a[e].indexOf(".")>-1?i.push({html:'<img src="'.concat(a[e],'" title=":').concat(e,':"/> :').concat(e,":"),value:":".concat(e,":")}):i.push({html:'<span class="vditor-hint__emoji">'.concat(a[e],"</span>").concat(e),value:a[e]}))}),this.genHTML(i,r,e)}else e.options.hint.extend.forEach(function(n){n.key===t.splitChar&&(clearTimeout(t.timeId),t.timeId=window.setTimeout(function(){return Ht(t,void 0,void 0,function(){var t;return It(this,function(o){switch(o.label){case 0:return t=this.genHTML,[4,n.hint(r)];case 1:return t.apply(this,[o.sent(),r,e]),[2]}})})},e.options.hint.delay))})}},e.prototype.genHTML=function(e,t,n){var o=this;if(0!==e.length){var r=n[n.currentMode].element,a=(0,H.Ny)(r),i=a.left+("left"===n.options.outline.position?n.outline.element.offsetWidth:0),l=a.top,s="";e.forEach(function(e,n){if(!(n>7)){var o=e.html;if(""!==t){var r=o.lastIndexOf(">")+1,a=o.substr(r),i=a.toLowerCase().indexOf(t.toLowerCase());i>-1&&(a=a.substring(0,i)+"<b>"+a.substring(i,i+t.length)+"</b>"+a.substring(i+t.length),o=o.substr(0,r)+a)}s+='<button type="button" data-value="'.concat(encodeURIComponent(e.value),' "\n').concat(0===n?"class='vditor-hint--current'":"","> ").concat(o,"</button>")}}),this.element.innerHTML=s;var c=parseInt(document.defaultView.getComputedStyle(r,null).getPropertyValue("line-height"),10);this.element.style.top="".concat(l+(c||22),"px"),this.element.style.left="".concat(i,"px"),this.element.style.display="block",this.element.style.right="auto",this.element.querySelectorAll("button").forEach(function(e){e.addEventListener("click",function(t){o.fillEmoji(e,n),t.preventDefault()})}),this.element.getBoundingClientRect().bottom>window.innerHeight&&(this.element.style.top="".concat(l-this.element.offsetHeight,"px")),this.element.getBoundingClientRect().right>window.innerWidth&&(this.element.style.left="auto",this.element.style.right="0")}else this.element.style.display="none"},e.prototype.select=function(e,t){if(0===this.element.querySelectorAll("button").length||"none"===this.element.style.display)return!1;var n=this.element.querySelector(".vditor-hint--current");if("ArrowDown"===e.key)return e.preventDefault(),e.stopPropagation(),n.removeAttribute("class"),n.nextElementSibling?n.nextElementSibling.className="vditor-hint--current":this.element.children[0].className="vditor-hint--current",!0;if("ArrowUp"===e.key){if(e.preventDefault(),e.stopPropagation(),n.removeAttribute("class"),n.previousElementSibling)n.previousElementSibling.className="vditor-hint--current";else{var o=this.element.children.length;this.element.children[o-1].className="vditor-hint--current"}return!0}return!((0,c.yl)(e)||e.shiftKey||e.altKey||"Enter"!==e.key||e.isComposing||(e.preventDefault(),e.stopPropagation(),this.fillEmoji(n,t),0))},e.prototype.getKey=function(e,t){var n,o=this;if(this.lastIndex=-1,this.splitChar="",t.forEach(function(t){var n=e.lastIndexOf(t.key);o.lastIndex<n&&(o.splitChar=t.key,o.lastIndex=n)}),-1===this.lastIndex)return n;var r=e.split(this.splitChar),i=r[r.length-1];if(r.length>1&&i.trim()===i)if(2===r.length&&""===r[0]&&r[1].length<32)n=r[1];else{var l=r[r.length-2].slice(-1);" "===(0,a.X)(l)&&i.length<32&&(n=i)}return n},e}(),jt=function(){function e(e){this.composingLock=!1;var t=document.createElement("div");t.className="vditor-ir",t.innerHTML='<pre class="vditor-reset" placeholder="'.concat(e.options.placeholder,'"\n contenteditable="true" spellcheck="false"></pre>'),this.element=t.firstElementChild,this.bindEvent(e),_e(e,this.element),Se(e,this.element),xe(e,this.element),Te(e,this.element),De(e,this.element),Le(e,this.element),Ce(e,this.element,this.copy),Ae(e,this.element,this.copy)}return e.prototype.copy=function(e,t){var n=getSelection().getRangeAt(0);if(""!==n.toString()){e.stopPropagation(),e.preventDefault();var o=document.createElement("div");o.appendChild(n.cloneContents()),e.clipboardData.setData("text/plain",t.lute.VditorIRDOM2Md(o.innerHTML).trim()),e.clipboardData.setData("text/html","")}},e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("paste",function(t){xt(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})}),this.element.addEventListener("scroll",function(){v(e,["hint"])}),this.element.addEventListener("compositionstart",function(e){t.composingLock=!0}),this.element.addEventListener("compositionend",function(n){(0,c.vU)()||N(e,getSelection().getRangeAt(0).cloneRange()),t.composingLock=!1}),this.element.addEventListener("input",function(n){if("deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType)return t.preventInput?(t.preventInput=!1,void Mt(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})):void(t.composingLock||"‘"===n.data||"“"===n.data||"《"===n.data||N(e,getSelection().getRangeAt(0).cloneRange(),!1,n))}),this.element.addEventListener("click",function(n){if("INPUT"===n.target.tagName)return n.target.checked?n.target.setAttribute("checked","checked"):n.target.removeAttribute("checked"),t.preventInput=!0,void Mt(e);var o=(0,H.zh)(e),a=(0,b.fb)(n.target,"vditor-ir__preview");if(a||(a=(0,b.fb)(o.startContainer,"vditor-ir__preview")),a&&(a.previousElementSibling.firstElementChild?o.selectNodeContents(a.previousElementSibling.firstElementChild):o.selectNodeContents(a.previousElementSibling),o.collapse(!0),(0,H.Hc)(o),Me(e)),"IMG"===n.target.tagName){var i=n.target.parentElement.querySelector(".vditor-ir__marker--link");i&&(o.selectNode(i),(0,H.Hc)(o))}var l=(0,b.a1)(n.target,"data-type","a");if(!l||l.classList.contains("vditor-ir__node--expand")){if(n.target.isEqualNode(t.element)&&t.element.lastElementChild&&o.collapsed){var s=t.element.lastElementChild.getBoundingClientRect();n.y>s.top+s.height&&("P"===t.element.lastElementChild.tagName&&""===t.element.lastElementChild.textContent.trim().replace(r.g.ZWSP,"")?(o.selectNodeContents(t.element.lastElementChild),o.collapse(!1)):(t.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(r.g.ZWSP,"<wbr></p>")),(0,H.ib)(t.element,o)))}""===o.toString()?z(o,e):setTimeout(function(){z((0,H.zh)(e),e)}),P(n,e),J(e)}else e.options.link.click?e.options.link.click(l.querySelector(":scope > .vditor-ir__marker--link")):e.options.link.isOpen&&window.open(l.querySelector(":scope > .vditor-ir__marker--link").textContent)}),this.element.addEventListener("keyup",function(n){if(!n.isComposing&&!(0,c.yl)(n))if("Enter"===n.key&&Me(e),J(e),"Backspace"!==n.key&&"Delete"!==n.key||""===e.ir.element.innerHTML||1!==e.ir.element.childNodes.length||!e.ir.element.firstElementChild||"P"!==e.ir.element.firstElementChild.tagName||0!==e.ir.element.firstElementChild.childElementCount||""!==e.ir.element.textContent&&"\n"!==e.ir.element.textContent){var o=(0,H.zh)(e);"Backspace"===n.key?((0,c.vU)()&&"\n"===o.startContainer.textContent&&1===o.startOffset&&(o.startContainer.textContent="",z(o,e)),t.element.querySelectorAll(".language-math").forEach(function(e){var t=e.querySelector("br");t&&t.remove()})):n.key.indexOf("Arrow")>-1?("ArrowLeft"!==n.key&&"ArrowRight"!==n.key||At(e),z(o,e)):229===n.keyCode&&""===n.code&&"Unidentified"===n.key&&z(o,e);var a=(0,b.fb)(o.startContainer,"vditor-ir__preview");if(a){if("ArrowUp"===n.key||"ArrowLeft"===n.key)return a.previousElementSibling.firstElementChild?o.selectNodeContents(a.previousElementSibling.firstElementChild):o.selectNodeContents(a.previousElementSibling),o.collapse(!1),n.preventDefault(),!0;if("SPAN"===a.tagName&&("ArrowDown"===n.key||"ArrowRight"===n.key))return"html-entity"===a.parentElement.getAttribute("data-type")?(a.parentElement.insertAdjacentText("afterend",r.g.ZWSP),o.setStart(a.parentElement.nextSibling,1)):o.selectNodeContents(a.parentElement.lastElementChild),o.collapse(!1),n.preventDefault(),!0}}else e.ir.element.innerHTML=""})},e}(),Nt=function(e){return"sv"===e.currentMode?e.lute.Md2HTML(i(e)):"wysiwyg"===e.currentMode?e.lute.VditorDOM2HTML(e.wysiwyg.element.innerHTML):"ir"===e.currentMode?e.lute.VditorIRDOM2HTML(e.ir.element.innerHTML):void 0},Rt=n(214),zt=n(436),Vt=function(){function e(e){this.element=document.createElement("div"),this.element.className="vditor-outline",this.element.innerHTML='<div class="vditor-outline__title">'.concat(e,'</div>\n<div class="vditor-outline__content"></div>')}return e.prototype.render=function(e){return"block"===e.preview.element.style.display?(0,zt.k)(e.preview.previewElement,this.element.lastElementChild,e):(0,zt.k)(e[e.currentMode].element,this.element.lastElementChild,e)},e.prototype.toggle=function(e,t,n){var o;void 0===t&&(t=!0),void 0===n&&(n=!0);var a=null===(o=e.toolbar.elements.outline)||void 0===o?void 0:o.firstElementChild;if(t&&window.innerWidth>=r.g.MOBILE_WIDTH?(this.element.style.display="block",this.render(e),null==a||a.classList.add("vditor-menu--current")):(this.element.style.display="none",null==a||a.classList.remove("vditor-menu--current")),n&&getSelection().rangeCount>0){var i=getSelection().getRangeAt(0);e[e.currentMode].element.contains(i.startContainer)&&(0,H.Hc)(i)}$(e)},e}(),Bt=n(280),qt=function(){function e(e){var t=this;this.element=document.createElement("div"),this.element.className="vditor-preview",this.previewElement=document.createElement("div"),this.previewElement.className="vditor-reset",e.options.classes.preview&&this.previewElement.classList.add(e.options.classes.preview),this.previewElement.style.maxWidth=e.options.preview.maxWidth+"px",this.previewElement.addEventListener("copy",function(n){if("TEXTAREA"!==n.target.tagName){var o=document.createElement("div");o.className="vditor-reset",o.appendChild(getSelection().getRangeAt(0).cloneContents()),t.copyToX(e,o,"default"),n.preventDefault()}}),this.previewElement.addEventListener("click",function(n){var o=(0,b.lG)(n.target,"SPAN");if(o&&(0,b.fb)(o,"vditor-toc")){var r=t.previewElement.querySelector("#"+o.getAttribute("data-target-id"));r&&(t.element.scrollTop=r.offsetTop)}else{if("A"===n.target.tagName)return e.options.link.click?e.options.link.click(n.target):e.options.link.isOpen&&window.open(n.target.getAttribute("href")),void n.preventDefault();"IMG"===n.target.tagName&&(e.options.image.preview?e.options.image.preview(n.target):e.options.image.isPreview&&(0,V.E)(n.target,e.options.lang,e.options.theme))}}),this.element.appendChild(this.previewElement);var n=e.options.preview.actions;if(0!==n.length){var o=document.createElement("div");o.className="vditor-preview__action";for(var r=[],a=0;a<n.length;a++){var i=n[a];if("object"!=typeof i)switch(i){case"desktop":r.push('<button type="button" class="vditor-preview__action--current" data-type="desktop">Desktop</button>');break;case"tablet":r.push('<button type="button" data-type="tablet">Tablet</button>');break;case"mobile":r.push('<button type="button" data-type="mobile">Mobile/Wechat</button>');break;case"mp-wechat":r.push('<button type="button" data-type="mp-wechat" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到公众号"><svg><use xlink:href="#vditor-icon-mp-wechat"></use></svg></button>');break;case"zhihu":r.push('<button type="button" data-type="zhihu" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到知乎"><svg><use xlink:href="#vditor-icon-zhihu"></use></svg></button>')}else r.push('<button type="button" data-type="'.concat(i.key,'" class="').concat(i.className,'"').concat(i.tooltip?' aria-label="'.concat(i.tooltip,'"'):"",'">').concat(i.text,"</button>"))}o.innerHTML=r.join(""),o.addEventListener((0,c.Le)(),function(r){var a=(0,y.S)(r.target,"BUTTON");if(a){var i=a.getAttribute("data-type"),l=n.find(function(e){return(null==e?void 0:e.key)===i});l?l.click(i):"mp-wechat"!==i&&"zhihu"!==i?(t.previewElement.style.width="desktop"===i?"auto":"tablet"===i?"780px":"360px",t.previewElement.scrollWidth>t.previewElement.parentElement.clientWidth&&(t.previewElement.style.width="auto"),t.render(e),o.querySelectorAll("button").forEach(function(e){e.classList.remove("vditor-preview__action--current")}),a.classList.add("vditor-preview__action--current")):t.copyToX(e,t.previewElement.cloneNode(!0),i)}}),this.element.insertBefore(o,this.previewElement)}}return e.prototype.render=function(e,t){var n=this;if(clearTimeout(this.mdTimeoutId),"none"!==this.element.style.display)if(t)this.previewElement.innerHTML=t;else if(""!==i(e).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")){var o=(new Date).getTime(),r=i(e);this.mdTimeoutId=window.setTimeout(function(){if(e.options.preview.url){var t=new XMLHttpRequest;t.open("POST",e.options.preview.url),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.onreadystatechange=function(){if(t.readyState===XMLHttpRequest.DONE)if(200===t.status){var a=JSON.parse(t.responseText);if(0!==a.code)return void e.tip.show(a.msg);e.options.preview.transform&&(a.data=e.options.preview.transform(a.data)),n.previewElement.innerHTML=a.data,n.afterRender(e,o)}else{var i=e.lute.Md2HTML(r);e.options.preview.transform&&(i=e.options.preview.transform(i)),n.previewElement.innerHTML=i,n.afterRender(e,o)}},t.send(JSON.stringify({markdownText:r}))}else{var a=e.lute.Md2HTML(r);e.options.preview.transform&&(a=e.options.preview.transform(a)),n.previewElement.innerHTML=a,n.afterRender(e,o)}},e.options.preview.delay)}else this.previewElement.innerHTML="";else"renderPerformance"===this.element.getAttribute("data-type")&&e.tip.hide()},e.prototype.afterRender=function(e,t){e.options.preview.parse&&e.options.preview.parse(this.element);var n=(new Date).getTime()-t;(new Date).getTime()-t>2600?(e.tip.show(window.VditorI18n.performanceTip.replace("${x}",n.toString())),e.preview.element.setAttribute("data-type","renderPerformance")):"renderPerformance"===e.preview.element.getAttribute("data-type")&&(e.tip.hide(),e.preview.element.removeAttribute("data-type"));var o=e.preview.element.querySelector(".vditor-comment--focus");o&&o.classList.remove("vditor-comment--focus"),(0,k.O)(e.preview.previewElement,e.options.preview.hljs),(0,x.s)(e.options.preview.hljs,e.preview.previewElement,e.options.cdn),(0,C.i)(e.preview.previewElement,e.options.cdn,e.options.theme),(0,A.K)(e.preview.previewElement,e.options.cdn),(0,D.J)(e.preview.previewElement,e.options.cdn,e.options.theme),(0,_.P)(e.preview.previewElement,e.options.cdn),(0,S.v)(e.preview.previewElement,e.options.cdn),(0,E.p)(e.preview.previewElement,e.options.cdn,e.options.theme),(0,M.P)(e.preview.previewElement,e.options.cdn,e.options.theme),(0,T.B)(e.preview.previewElement,e.options.cdn),(0,w.Q)(e.preview.previewElement,e.options.cdn),e.options.preview.render.media.enable&&(0,Bt.Y)(e.preview.previewElement),e.options.customRenders.forEach(function(t){t.render(e.preview.previewElement,e)});var r=e.preview.element,a=e.outline.render(e);""===a&&(a="[ToC]"),r.querySelectorAll('[data-type="toc-block"]').forEach(function(t){t.innerHTML=a,(0,L.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})}),(0,L.H)(e.preview.previewElement,{cdn:e.options.cdn,math:e.options.preview.math})},e.prototype.copyToX=function(e,t,n){void 0===n&&(n="mp-wechat"),"zhihu"!==n?t.querySelectorAll(".katex-html .base").forEach(function(e){e.style.display="initial"}):t.querySelectorAll(".language-math").forEach(function(e){e.outerHTML='<img class="Formula-image" data-eeimg="true" src="//www.zhihu.com/equation?tex=" alt="'.concat(e.getAttribute("data-math"),'\\" style="display: block; margin: 0 auto; max-width: 100%;">')}),t.style.backgroundColor="#fff",t.querySelectorAll("code").forEach(function(e){e.style.backgroundImage="none"}),this.element.append(t);var o=t.ownerDocument.createRange();o.selectNode(t),(0,H.Hc)(o),document.execCommand("copy"),t.remove(),e.tip.show(["zhihu","mp-wechat"].includes(n)?"已复制,可到".concat("zhihu"===n?"知乎":"微信公众号平台","进行粘贴"):"已复制到剪切板")},e}(),Ut=function(){function e(e){this.element=document.createElement("div"),this.element.className="vditor-resize vditor-resize--".concat(e.options.resize.position),this.element.innerHTML='<div><svg><use xlink:href="#vditor-icon-resize"></use></svg></div>',this.bindEvent(e)}return e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("mousedown",function(n){var o=document,r=n.clientY,a=e.element.offsetHeight,i=63+e.element.querySelector(".vditor-toolbar").clientHeight;o.ondragstart=function(){return!1},window.captureEvents&&window.captureEvents(),t.element.classList.add("vditor-resize--selected"),o.onmousemove=function(t){"top"===e.options.resize.position?e.element.style.height=Math.max(i,a+(r-t.clientY))+"px":e.element.style.height=Math.max(i,a+(t.clientY-r))+"px",e.options.typewriterMode&&(e.sv.element.style.paddingBottom=e.sv.element.parentElement.offsetHeight/2+"px")},o.onmouseup=function(){e.options.resize.after&&e.options.resize.after(e.element.offsetHeight-a),window.captureEvents&&window.captureEvents(),o.onmousemove=null,o.onmouseup=null,o.ondragstart=null,o.onselectstart=null,o.onselect=null,t.element.classList.remove("vditor-resize--selected")}})},e}(),Ft=function(){function e(e){this.composingLock=!1,this.element=document.createElement("pre"),this.element.className="vditor-sv vditor-reset",this.element.setAttribute("placeholder",e.options.placeholder),this.element.setAttribute("contenteditable","true"),this.element.setAttribute("spellcheck","false"),this.bindEvent(e),_e(e,this.element),xe(e,this.element),Te(e,this.element),De(e,this.element),Le(e,this.element),Ce(e,this.element,this.copy),Ae(e,this.element,this.copy)}return e.prototype.copy=function(e,t){e.stopPropagation(),e.preventDefault(),e.clipboardData.setData("text/plain",ke(t[t.currentMode].element))},e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("paste",function(t){xt(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})}),this.element.addEventListener("scroll",function(){if("block"===e.preview.element.style.display){var n=t.element.scrollTop,o=t.element.clientHeight,r=t.element.scrollHeight-parseFloat(t.element.style.paddingBottom||"0"),a=e.preview.element;a.scrollTop=n/o>.5?(n+o)*a.scrollHeight/r-o:n*a.scrollHeight/r}}),this.element.addEventListener("compositionstart",function(e){t.composingLock=!0}),this.element.addEventListener("compositionend",function(n){(0,c.vU)()||q(e,n),t.composingLock=!1}),this.element.addEventListener("input",function(n){if("deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&!t.composingLock&&"‘"!==n.data&&"“"!==n.data&&"《"!==n.data)return t.preventInput?(t.preventInput=!1,void je(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})):void q(e,n)}),this.element.addEventListener("keyup",function(t){t.isComposing||(0,c.yl)(t)||("Backspace"!==t.key&&"Delete"!==t.key||""===e.sv.element.innerHTML||1!==e.sv.element.childNodes.length||!e.sv.element.firstElementChild||"DIV"!==e.sv.element.firstElementChild.tagName||2!==e.sv.element.firstElementChild.childElementCount||""!==e.sv.element.firstElementChild.textContent&&"\n"!==e.sv.element.textContent?"Enter"===t.key&&Me(e):e.sv.element.innerHTML="")})},e}(),$t=function(){function e(){this.element=document.createElement("div"),this.element.className="vditor-tip"}return e.prototype.show=function(e,t){var n=this;void 0===t&&(t=6e3),this.element.className="vditor-tip vditor-tip--show",0===t?(this.element.innerHTML='<div class="vditor-tip__content">'.concat(e,'\n<div class="vditor-tip__close">X</div></div>'),this.element.querySelector(".vditor-tip__close").addEventListener("click",function(){n.hide()})):(this.element.innerHTML='<div class="vditor-tip__content">'.concat(e,"</div>"),setTimeout(function(){n.hide()},t)),this.element.removeAttribute("style"),setTimeout(function(){n.element.getBoundingClientRect().top<46&&(n.element.style.position="fixed",n.element.style.top="46px")},150)},e.prototype.hide=function(){this.element.className="vditor-messageElementtip",this.element.innerHTML=""},e}(),Wt=function(e,t){if(t.options.preview.mode!==e){switch(t.options.preview.mode=e,e){case"both":t.sv.element.style.display="block",t.preview.element.style.display="block",t.preview.render(t),u(t.toolbar.elements,["both"]);break;case"editor":t.sv.element.style.display="block",t.preview.element.style.display="none",d(t.toolbar.elements,["both"])}t.devtools&&t.devtools.renderEchart(t)}},Gt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kt=function(e){function t(t,n){var o=e.call(this,t,n)||this;return"both"===t.options.preview.mode&&o.element.children[0].classList.add("vditor-menu--current"),o.element.children[0].addEventListener((0,c.Le)(),function(e){o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||(e.preventDefault(),"sv"===t.currentMode&&("both"===t.options.preview.mode?Wt("editor",t):Wt("both",t)))}),o}return Gt(t,e),t}(be),Yt=function(){return function(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__br"}}(),Jt=n(580),Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qt=function(e){function t(t,n){var o=e.call(this,t,n)||this,a=o.element.children[0],i=document.createElement("div");i.className="vditor-hint".concat(2===n.level?"":" vditor-panel--arrow");var l="";return r.g.CODE_THEME.forEach(function(e){l+="<button>".concat(e,"</button>")}),i.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(l,"</div>"),i.addEventListener((0,c.Le)(),function(e){"BUTTON"===e.target.tagName&&(v(t,["subToolbar"]),t.options.preview.hljs.style=e.target.textContent,(0,Jt.Y)(e.target.textContent,t.options.cdn),e.preventDefault(),e.stopPropagation())}),o.element.appendChild(i),g(t,i,a,n.level),o}return Zt(t,e),t}(be),Xt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),en=function(e){function t(t,n){var o=e.call(this,t,n)||this,r=o.element.children[0],a=document.createElement("div");a.className="vditor-hint".concat(2===n.level?"":" vditor-panel--arrow");var i="";return Object.keys(t.options.preview.theme.list).forEach(function(e){i+='<button data-type="'.concat(e,'">').concat(t.options.preview.theme.list[e],"</button>")}),a.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(i,"</div>"),a.addEventListener((0,c.Le)(),function(e){"BUTTON"===e.target.tagName&&(v(t,["subToolbar"]),t.options.preview.theme.current=e.target.getAttribute("data-type"),(0,U.Z)(t.options.preview.theme.current,t.options.preview.theme.path),e.preventDefault(),e.stopPropagation())}),o.element.appendChild(a),g(t,a,r,n.level),o}return Xt(t,e),t}(be),tn=function(){function e(e){this.element=document.createElement("span"),this.element.className="vditor-counter vditor-tooltipped vditor-tooltipped__nw",this.render(e,"")}return e.prototype.render=function(e,t){var n=t.endsWith("\n")?t.length-1:t.length;if("text"===e.options.counter.type&&e[e.currentMode]){var o=e[e.currentMode].element.cloneNode(!0);o.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(e){e.remove()}),n=o.textContent.length}"number"==typeof e.options.counter.max?(n>e.options.counter.max?this.element.className="vditor-counter vditor-counter--error":this.element.className="vditor-counter",this.element.innerHTML="".concat(n,"/").concat(e.options.counter.max)):this.element.innerHTML="".concat(n),this.element.setAttribute("aria-label",e.options.counter.type),e.options.counter.after&&e.options.counter.after(n,{enable:e.options.counter.enable,max:e.options.counter.max,type:e.options.counter.type})},e}(),nn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),on=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].innerHTML=n.icon,o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),e.currentTarget.classList.contains(r.g.CLASS_MENU_DISABLED)||n.click(e,t)}),o}return nn(t,e),t}(be),rn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),an=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.firstElementChild.addEventListener((0,c.Le)(),function(e){var n=o.element.firstElementChild;n.classList.contains(r.g.CLASS_MENU_DISABLED)||(e.preventDefault(),n.classList.contains("vditor-menu--current")?(n.classList.remove("vditor-menu--current"),t.devtools.element.style.display="none",$(t)):(n.classList.add("vditor-menu--current"),t.devtools.element.style.display="block",$(t),t.devtools.renderEchart(t)))}),o}return rn(t,e),t}(be),ln=function(){return function(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__divider"}}(),sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cn=function(e){function t(t,n){var o=e.call(this,t,n)||this,r=document.createElement("div");r.className="vditor-panel vditor-panel--arrow";var a="";return Object.keys(t.options.hint.emoji).forEach(function(e){var n=t.options.hint.emoji[e];n.indexOf(".")>-1?a+='<button data-value=":'.concat(e,': " data-key=":').concat(e,':"><img\ndata-value=":').concat(e,': " data-key=":').concat(e,':" class="vditor-emojis__icon" src="').concat(n,'"/></button>'):a+='<button data-value="'.concat(n,' "\n data-key="').concat(e,'"><span class="vditor-emojis__icon">').concat(n,"</span></button>")}),r.innerHTML='<div class="vditor-emojis" style="max-height: '.concat("auto"===t.options.height?"auto":t.options.height-80,'px">').concat(a,'</div><div class="vditor-emojis__tail">\n <span class="vditor-emojis__tip"></span><span>').concat(t.options.hint.emojiTail||"","</span>\n</div>"),o.element.appendChild(r),g(t,r,o.element.firstElementChild,n.level),o.bindEvent(t),o}return sn(t,e),t.prototype.bindEvent=function(e){var t=this;this.element.lastElementChild.addEventListener((0,c.Le)(),function(n){var o=(0,y.S)(n.target,"BUTTON");if(o){n.preventDefault();var r=o.getAttribute("data-value"),a=(0,H.zh)(e),i=r;if("wysiwyg"===e.currentMode?i=e.lute.SpinVditorDOM(r):"ir"===e.currentMode&&(i=e.lute.SpinVditorIRDOM(r)),r.indexOf(":")>-1&&"sv"!==e.currentMode){var l=document.createElement("div");l.innerHTML=i,i=l.firstElementChild.firstElementChild.outerHTML+" ",(0,H.oC)(i,e)}else a.extractContents(),a.insertNode(document.createTextNode(r)),(0,b.F9)(a.startContainer)||ee(e,a);a.collapse(!1),(0,H.Hc)(a),t.element.lastElementChild.style.display="none",ct(e)}}),this.element.lastElementChild.addEventListener("mouseover",function(e){var n=(0,y.S)(e.target,"BUTTON");n&&(t.element.querySelector(".vditor-emojis__tip").innerHTML=n.getAttribute("data-key"))})},t}(be),dn=function(e,t,n){var o=document.createElement("a");"download"in o?(o.download=n,o.style.display="none",o.href=URL.createObjectURL(new Blob([t])),document.body.appendChild(o),o.click(),o.remove()):e.tip.show(window.VditorI18n.downloadTip,0)},un=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pn=function(e){function t(t,n){var o=e.call(this,t,n)||this,r=o.element.children[0],a=document.createElement("div");return a.className="vditor-hint".concat(2===n.level?"":" vditor-panel--arrow"),a.innerHTML='<button data-type="markdown">Markdown</button>\n<button data-type="pdf">PDF</button>\n<button data-type="html">HTML</button>',a.addEventListener((0,c.Le)(),function(e){var n=e.target;if("BUTTON"===n.tagName){switch(n.getAttribute("data-type")){case"markdown":!function(e){var t=i(e);dn(e,t,t.substr(0,10)+".md")}(t);break;case"pdf":!function(e){e.tip.show(window.VditorI18n.generate,3800);var t=document.querySelector("#vditorExportIframe");t.contentDocument.open(),t.contentDocument.write('<link rel="stylesheet" href="'.concat(e.options.cdn,'/dist/index.css"/>\n<script src="').concat(e.options.cdn,'/dist/method.min.js"><\/script>\n<div id="preview" style="width: 800px"></div>\n<script>\nwindow.addEventListener("message", (e) => {\n if(!e.data) {\n return;\n }\n Vditor.preview(document.getElementById(\'preview\'), e.data, {\n cdn: "').concat(e.options.cdn,'",\n markdown: {\n theme: ').concat(JSON.stringify(e.options.preview.theme),'\n },\n hljs: {\n style: "').concat(e.options.preview.hljs.style,'"\n }\n });\n setTimeout(() => {\n window.print();\n }, 3600);\n}, false);\n<\/script>')),t.contentDocument.close(),setTimeout(function(){t.contentWindow.postMessage(i(e),"*")},200)}(t);break;case"html":!function(e){var t=Nt(e),n='<html><head><link rel="stylesheet" type="text/css" href="'.concat(e.options.cdn,'/dist/index.css"/>\n<script src="').concat(e.options.cdn,"/dist/js/i18n/").concat(e.options.lang,'.js"><\/script>\n<script src="').concat(e.options.cdn,'/dist/method.min.js"><\/script></head>\n<body><div class="vditor-reset" id="preview">').concat(t,"</div>\n<script>\n const previewElement = document.getElementById('preview')\n Vditor.setContentTheme('").concat(e.options.preview.theme.current,"', '").concat(e.options.preview.theme.path,"');\n Vditor.codeRender(previewElement);\n Vditor.highlightRender(").concat(JSON.stringify(e.options.preview.hljs),", previewElement, '").concat(e.options.cdn,"');\n Vditor.mathRender(previewElement, {\n cdn: '").concat(e.options.cdn,"',\n math: ").concat(JSON.stringify(e.options.preview.math),",\n });\n Vditor.mermaidRender(previewElement, '").concat(e.options.cdn,"', '").concat(e.options.theme,"');\n Vditor.SMILESRender(previewElement, '").concat(e.options.cdn,"', '").concat(e.options.theme,"');\n Vditor.markmapRender(previewElement, '").concat(e.options.cdn,"');\n Vditor.flowchartRender(previewElement, '").concat(e.options.cdn,"');\n Vditor.graphvizRender(previewElement, '").concat(e.options.cdn,"');\n Vditor.chartRender(previewElement, '").concat(e.options.cdn,"', '").concat(e.options.theme,"');\n Vditor.mindmapRender(previewElement, '").concat(e.options.cdn,"', '").concat(e.options.theme,"');\n Vditor.abcRender(previewElement, '").concat(e.options.cdn,"');\n ").concat(e.options.preview.render.media.enable?"Vditor.mediaRender(previewElement);":"",'\n Vditor.speechRender(previewElement);\n<\/script>\n<script src="').concat(e.options.cdn,"/dist/js/icons/").concat(e.options.icon,'.js"><\/script></body></html>');dn(e,n,t.substr(0,10)+".html")}(t)}v(t,["subToolbar"]),e.preventDefault(),e.stopPropagation()}}),o.element.appendChild(a),g(t,a,r,n.level),o}return un(t,e),t}(be),mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o._bindEvent(t,n),o}return mn(t,e),t.prototype._bindEvent=function(e,t){this.element.children[0].addEventListener((0,c.Le)(),function(n){n.preventDefault(),e.element.className.includes("vditor--fullscreen")?(t.level||(this.innerHTML=t.icon),e.element.style.zIndex="",document.body.style.overflow="",e.element.classList.remove("vditor--fullscreen"),Object.keys(e.toolbar.elements).forEach(function(t){var n=e.toolbar.elements[t].firstChild;n&&(n.className=n.className.replace("__s","__n"),e.options.toolbar.forEach(function(e){"string"!=typeof e&&e.tipPosition&&e.name===n.dataset.type&&(n.className="vditor-tooltipped vditor-tooltipped__".concat(e.tipPosition))}))}),e.counter&&(e.counter.element.className=e.counter.element.className.replace("__s","__n"))):(t.level||(this.innerHTML='<svg><use xlink:href="#vditor-icon-contract"></use></svg>'),e.element.style.zIndex=e.options.fullscreen.index.toString(),document.body.style.overflow="hidden",e.element.classList.add("vditor--fullscreen"),Object.keys(e.toolbar.elements).forEach(function(t){var n=e.toolbar.elements[t].firstChild;n&&(n.className=n.className.replace("__n","__s"))}),e.counter&&(e.counter.element.className=e.counter.element.className.replace("__n","__s"))),e.devtools&&e.devtools.renderEchart(e),t.click&&t.click(n,e),$(e),W(e)})},t}(be),hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vn=function(e){function t(t,n){var o=e.call(this,t,n)||this,r=document.createElement("div");return r.className="vditor-hint vditor-panel--arrow",r.innerHTML='<button data-tag="h1" data-value="# ">'.concat(window.VditorI18n.heading1," ").concat((0,c.ns)("<⌥⌘1>"),'</button>\n<button data-tag="h2" data-value="## ">').concat(window.VditorI18n.heading2," <").concat((0,c.ns)("⌥⌘2"),'></button>\n<button data-tag="h3" data-value="### ">').concat(window.VditorI18n.heading3," <").concat((0,c.ns)("⌥⌘3"),'></button>\n<button data-tag="h4" data-value="#### ">').concat(window.VditorI18n.heading4," <").concat((0,c.ns)("⌥⌘4"),'></button>\n<button data-tag="h5" data-value="##### ">').concat(window.VditorI18n.heading5," <").concat((0,c.ns)("⌥⌘5"),'></button>\n<button data-tag="h6" data-value="###### ">').concat(window.VditorI18n.heading6," <").concat((0,c.ns)("⌥⌘6"),"></button>"),o.element.appendChild(r),o._bindEvent(t,r),o}return hn(t,e),t.prototype._bindEvent=function(e,t){var n=this.element.children[0];n.addEventListener((0,c.Le)(),function(o){o.preventDefault(),clearTimeout(e.wysiwyg.afterRenderTimeoutId),clearTimeout(e.ir.processTimeoutId),clearTimeout(e.sv.processTimeoutId),n.classList.contains(r.g.CLASS_MENU_DISABLED)||(n.blur(),n.classList.contains("vditor-menu--current")?("wysiwyg"===e.currentMode?(ne(e),Z(e)):"ir"===e.currentMode&&Tt(e,""),n.classList.remove("vditor-menu--current")):(v(e,["subToolbar"]),t.style.display="block"))});for(var o=0;o<6;o++)t.children.item(o).addEventListener((0,c.Le)(),function(o){o.preventDefault(),"wysiwyg"===e.currentMode?(te(e,o.target.getAttribute("data-tag")),Z(e),n.classList.add("vditor-menu--current")):"ir"===e.currentMode?(Tt(e,o.target.getAttribute("data-value")),n.classList.add("vditor-menu--current")):Ne(e,o.target.getAttribute("data-value")),t.style.display="none"})},t}(be),gn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),t.tip.show('<div style="margin-bottom:14px;font-size: 14px;line-height: 22px;min-width:300px;max-width: 360px;display: flex;">\n<div style="margin-top: 14px;flex: 1">\n <div>Markdown 使用指南</div>\n <ul style="list-style: none">\n <li><a href="https://ld246.com/article/1583308420519" target="_blank">语法速查手册</a></li>\n <li><a href="https://ld246.com/article/1583129520165" target="_blank">基础语法</a></li>\n <li><a href="https://ld246.com/article/1583305480675" target="_blank">扩展语法</a></li>\n <li><a href="https://ld246.com/article/1582778815353" target="_blank">键盘快捷键</a></li>\n </ul>\n</div>\n<div style="margin-top: 14px;flex: 1">\n <div>Vditor 支持</div>\n <ul style="list-style: none">\n <li><a href="https://github.com/Vanessa219/vditor/issues" target="_blank">Issues</a></li>\n <li><a href="https://ld246.com/tag/vditor" target="_blank">官方讨论区</a></li>\n <li><a href="https://ld246.com/article/1549638745630" target="_blank">开发手册</a></li>\n <li><a href="https://ld246.com/guide/markdown" target="_blank">演示地址</a></li>\n </ul>\n</div></div>',0)}),o}return gn(t,e),t}(be),yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].addEventListener((0,c.Le)(),function(e){if(e.preventDefault(),!o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)&&"sv"!==t.currentMode){var n=(0,H.zh)(t),a=(0,b.lG)(n.startContainer,"LI");a&&rt(t,a,n)}}),o}return yn(t,e),t}(be),En=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),t.tip.show('<div style="max-width: 520px; font-size: 14px;line-height: 22px;margin-bottom: 14px;">\n<p style="text-align: center;margin: 14px 0">\n <em>下一代的 Markdown 编辑器,为未来而构建</em>\n</p>\n<div style="display: flex;margin-bottom: 14px;flex-wrap: wrap;align-items: center">\n <img src="https://unpkg.com/vditor/dist/images/logo.png" style="margin: 0 auto;height: 68px"/>\n <div> </div>\n <div style="flex: 1;min-width: 250px">\n Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。\n 它使用 TypeScript 实现,支持原生 JavaScript 以及 Vue、React、Angular 和 Svelte 等框架。\n </div>\n</div>\n<div style="display: flex;flex-wrap: wrap;">\n <ul style="list-style: none;flex: 1;min-width:148px">\n <li>\n 项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>\n </li>\n <li>\n 开源协议:MIT\n </li>\n </ul>\n <ul style="list-style: none;margin-right: 18px">\n <li>\n 组件版本:Vditor v'.concat(r.H," / Lute v").concat(Lute.Version,'\n </li>\n <li>\n 赞助捐赠:<a href="https://ld246.com/sponsor" target="_blank">https://ld246.com/sponsor</a>\n </li>\n </ul>\n</div>\n</div>'),0)}),o}return En(t,e),t}(be),_n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||"sv"===t.currentMode||Ze(t,"afterend")}),o}return _n(t,e),t}(be),xn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ln=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||"sv"===t.currentMode||Ze(t,"beforebegin")}),o}return xn(t,e),t}(be),Cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),An=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.element.children[0].addEventListener((0,c.Le)(),function(e){if(e.preventDefault(),!o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)&&"sv"!==t.currentMode){var n=(0,H.zh)(t),a=(0,b.lG)(n.startContainer,"LI");a&&at(t,a,n,a.parentElement)}}),o}return Cn(t,e),t}(be),Mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Tn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return t.options.outline&&o.element.firstElementChild.classList.add("vditor-menu--current"),o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),t.toolbar.elements.outline.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||(t.options.outline.enable=!o.element.firstElementChild.classList.contains("vditor-menu--current"),t.outline.toggle(t,t.options.outline.enable))}),o}return Mn(t,e),t}(be),Dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),On=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o._bindEvent(t),o}return Dn(t,e),t.prototype._bindEvent=function(e){var t=this;this.element.children[0].addEventListener((0,c.Le)(),function(n){n.preventDefault();var o=t.element.firstElementChild;if(!o.classList.contains(r.g.CLASS_MENU_DISABLED)){var a=r.g.EDIT_TOOLBARS.concat(["both","edit-mode","devtools"]);o.classList.contains("vditor-menu--current")?(o.classList.remove("vditor-menu--current"),"sv"===e.currentMode?(e.sv.element.style.display="block","both"===e.options.preview.mode?e.preview.element.style.display="block":e.preview.element.style.display="none"):(e[e.currentMode].element.parentElement.style.display="block",e.preview.element.style.display="none"),p(e.toolbar.elements,a),e.outline.render(e)):(m(e.toolbar.elements,a),e.preview.element.style.display="block","sv"===e.currentMode?e.sv.element.style.display="none":e[e.currentMode].element.parentElement.style.display="none",e.preview.render(e),o.classList.add("vditor-menu--current"),v(e,["subToolbar","hint","popover"]),setTimeout(function(){e.outline.render(e)},e.options.preview.delay+10)),$(e)}})},t}(be),Hn=function(){function e(e){var t;if(this.SAMPLE_RATE=5e3,this.isRecording=!1,this.readyFlag=!1,this.leftChannel=[],this.rightChannel=[],this.recordingLength=0,"undefined"!=typeof AudioContext)t=new AudioContext;else{if(!webkitAudioContext)return;t=new webkitAudioContext}this.DEFAULT_SAMPLE_RATE=t.sampleRate;var n=t.createGain();t.createMediaStreamSource(e).connect(n),this.recorder=t.createScriptProcessor(2048,2,1),this.recorder.onaudioprocess=null,n.connect(this.recorder),this.recorder.connect(t.destination),this.readyFlag=!0}return e.prototype.cloneChannelData=function(e,t){this.leftChannel.push(new Float32Array(e)),this.rightChannel.push(new Float32Array(t)),this.recordingLength+=2048},e.prototype.startRecordingNewWavFile=function(){this.readyFlag&&(this.isRecording=!0,this.leftChannel.length=this.rightChannel.length=0,this.recordingLength=0)},e.prototype.stopRecording=function(){this.isRecording=!1},e.prototype.buildWavFileBlob=function(){for(var e=this.mergeBuffers(this.leftChannel),t=this.mergeBuffers(this.rightChannel),n=new Float32Array(e.length),o=0;o<e.length;++o)n[o]=.5*(e[o]+t[o]);this.DEFAULT_SAMPLE_RATE>this.SAMPLE_RATE&&(n=this.downSampleBuffer(n,this.SAMPLE_RATE));var r=44+2*n.length,a=new ArrayBuffer(r),i=new DataView(a);this.writeUTFBytes(i,0,"RIFF"),i.setUint32(4,r,!0),this.writeUTFBytes(i,8,"WAVE"),this.writeUTFBytes(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,this.SAMPLE_RATE,!0),i.setUint32(28,2*this.SAMPLE_RATE,!0),i.setUint16(32,2,!0),i.setUint16(34,16,!0);var l=2*n.length;this.writeUTFBytes(i,36,"data"),i.setUint32(40,l,!0);for(var s=n.length,c=44,d=0;d<s;d++)i.setInt16(c,32767*n[d],!0),c+=2;return new Blob([i],{type:"audio/wav"})},e.prototype.downSampleBuffer=function(e,t){if(t===this.DEFAULT_SAMPLE_RATE)return e;if(t>this.DEFAULT_SAMPLE_RATE)return e;for(var n=this.DEFAULT_SAMPLE_RATE/t,o=Math.round(e.length/n),r=new Float32Array(o),a=0,i=0;a<r.length;){for(var l=Math.round((a+1)*n),s=0,c=0,d=i;d<l&&d<e.length;d++)s+=e[d],c++;r[a]=s/c,a++,i=l}return r},e.prototype.mergeBuffers=function(e){for(var t=new Float32Array(this.recordingLength),n=0,o=e.length,r=0;r<o;++r){var a=e[r];t.set(a,n),n+=a.length}return t},e.prototype.writeUTFBytes=function(e,t,n){for(var o=n.length,r=0;r<o;r++)e.setUint8(t+r,n.charCodeAt(r))},e}(),In=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o._bindEvent(t),o}return In(t,e),t.prototype._bindEvent=function(e){var t,n=this;this.element.children[0].addEventListener((0,c.Le)(),function(o){if(o.preventDefault(),!n.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)){var a=e[e.currentMode].element;if(t)if(t.isRecording){t.stopRecording(),e.tip.hide();var i=new File([t.buildWavFileBlob()],"record".concat((new Date).getTime(),".wav"),{type:"video/webm"});Fe(e,[i]),n.element.children[0].classList.remove("vditor-menu--current")}else e.tip.show(window.VditorI18n.recording),a.setAttribute("contenteditable","false"),t.startRecordingNewWavFile(),n.element.children[0].classList.add("vditor-menu--current");else navigator.mediaDevices.getUserMedia({audio:!0}).then(function(o){(t=new Hn(o)).recorder.onaudioprocess=function(e){if(t.isRecording){var n=e.inputBuffer.getChannelData(0),o=e.inputBuffer.getChannelData(1);t.cloneChannelData(n,o)}},t.startRecordingNewWavFile(),e.tip.show(window.VditorI18n.recording),a.setAttribute("contenteditable","false"),n.element.children[0].classList.add("vditor-menu--current")}).catch(function(){e.tip.show(window.VditorI18n["record-tip"])})}})},t}(be),jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return m({redo:o.element},["redo"]),o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||t.undo.redo(t)}),o}return jn(t,e),t}(be),Rn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zn=function(e){function t(t,n){var o=e.call(this,t,n)||this;return m({undo:o.element},["undo"]),o.element.children[0].addEventListener((0,c.Le)(),function(e){e.preventDefault(),o.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED)||t.undo.undo(t)}),o}return Rn(t,e),t}(be),Vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bn=function(e){function t(t,n){var o=e.call(this,t,n)||this,r='<input type="file"';return t.options.upload.multiple&&(r+=' multiple="multiple"'),t.options.upload.accept&&(r+=' accept="'.concat(t.options.upload.accept,'"')),o.element.children[0].innerHTML="".concat(n.icon||'<svg><use xlink:href="#vditor-icon-upload"></use></svg>').concat(r,">"),o._bindEvent(t),o}return Vn(t,e),t.prototype._bindEvent=function(e){var t=this;this.element.children[0].addEventListener((0,c.Le)(),function(e){if(t.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED))return e.stopPropagation(),void e.preventDefault()}),this.element.querySelector("input").addEventListener("change",function(n){if(t.element.firstElementChild.classList.contains(r.g.CLASS_MENU_DISABLED))return n.stopPropagation(),void n.preventDefault();0!==n.target.files.length&&Fe(e,n.target.files,n.target)})},t}(be),qn=function(){function e(e){var t=this,n=e.options;this.elements={},this.element=document.createElement("div"),this.element.className="vditor-toolbar",n.toolbar.forEach(function(n,o){var r=t.genItem(e,n,o);if(t.element.appendChild(r),n.toolbar){var a=document.createElement("div");a.className="vditor-hint vditor-panel--arrow",a.addEventListener((0,c.Le)(),function(e){a.style.display="none"}),n.toolbar.forEach(function(n,r){n.level=2,a.appendChild(t.genItem(e,n,o+r))}),r.appendChild(a),g(e,a,r.children[0])}}),e.options.toolbarConfig.hide&&this.element.classList.add("vditor-toolbar--hide"),e.options.toolbarConfig.pin&&this.element.classList.add("vditor-toolbar--pin"),e.options.counter.enable&&(e.counter=new tn(e),this.element.appendChild(e.counter.element))}return e.prototype.updateConfig=function(e,t){e.options.toolbarConfig=Object.assign({hide:!1,pin:!1},t),e.options.toolbarConfig.hide?this.element.classList.add("vditor-toolbar--hide"):this.element.classList.remove("vditor-toolbar--hide"),e.options.toolbarConfig.pin?this.element.classList.add("vditor-toolbar--pin"):this.element.classList.remove("vditor-toolbar--pin")},e.prototype.genItem=function(e,t,n){var o;switch(t.name){case"bold":case"italic":case"more":case"strike":case"line":case"quote":case"list":case"ordered-list":case"check":case"code":case"inline-code":case"link":case"table":o=new be(e,t);break;case"emoji":o=new cn(e,t);break;case"headings":o=new vn(e,t);break;case"|":o=new ln;break;case"br":o=new Yt;break;case"undo":o=new zn(e,t);break;case"redo":o=new Nn(e,t);break;case"help":o=new bn(e,t);break;case"both":o=new Kt(e,t);break;case"preview":o=new On(e,t);break;case"fullscreen":o=new fn(e,t);break;case"upload":o=new Bn(e,t);break;case"record":o=new Pn(e,t);break;case"info":o=new kn(e,t);break;case"edit-mode":o=new Ee(e,t);break;case"devtools":o=new an(e,t);break;case"outdent":o=new An(e,t);break;case"indent":o=new wn(e,t);break;case"outline":o=new Tn(e,t);break;case"insert-after":o=new Sn(e,t);break;case"insert-before":o=new Ln(e,t);break;case"code-theme":o=new Qt(e,t);break;case"content-theme":o=new en(e,t);break;case"export":o=new pn(e,t);break;default:o=new on(e,t)}if(o){var r=t.name;return"br"!==r&&"|"!==r||(r+=n),this.elements[r]=o.element,o.element}},e}(),Un=n(173),Fn=function(){function e(){this.stackSize=50,this.resetStack(),this.dmp=new Un}return e.prototype.clearStack=function(e){this.resetStack(),this.resetIcon(e)},e.prototype.resetIcon=function(e){e.toolbar&&(this[e.currentMode].undoStack.length>1?p(e.toolbar.elements,["undo"]):m(e.toolbar.elements,["undo"]),0!==this[e.currentMode].redoStack.length?p(e.toolbar.elements,["redo"]):m(e.toolbar.elements,["redo"]))},e.prototype.undo=function(e){if("false"!==e[e.currentMode].element.getAttribute("contenteditable")&&!(this[e.currentMode].undoStack.length<2)){var t=this[e.currentMode].undoStack.pop();t&&(this[e.currentMode].redoStack.push(t),this.renderDiff(t,e),this[e.currentMode].hasUndo=!0,v(e,["hint"]))}},e.prototype.redo=function(e){if("false"!==e[e.currentMode].element.getAttribute("contenteditable")){var t=this[e.currentMode].redoStack.pop();t&&(this[e.currentMode].undoStack.push(t),this.renderDiff(t,e,!0))}},e.prototype.recordFirstPosition=function(e,t){if(0!==getSelection().rangeCount&&!(1!==this[e.currentMode].undoStack.length||0===this[e.currentMode].undoStack[0].length||this[e.currentMode].redoStack.length>0||(0,c.vU)()&&"Backspace"===t.key||(0,c.G6)())){var n=this.addCaret(e);n.replace("<wbr>","").replace(" vditor-ir__node--expand","")===this[e.currentMode].undoStack[0][0].diffs[0][1].replace("<wbr>","")&&(this[e.currentMode].undoStack[0][0].diffs[0][1]=n,this[e.currentMode].lastText=n)}},e.prototype.addToUndoStack=function(e){var t=this.addCaret(e,!0),n=this.dmp.diff_main(t,this[e.currentMode].lastText,!0),o=this.dmp.patch_make(t,this[e.currentMode].lastText,n);0===o.length&&this[e.currentMode].undoStack.length>0||(this[e.currentMode].lastText=t,this[e.currentMode].undoStack.push(o),this[e.currentMode].undoStack.length>this.stackSize&&this[e.currentMode].undoStack.shift(),this[e.currentMode].hasUndo&&(this[e.currentMode].redoStack=[],this[e.currentMode].hasUndo=!1,m(e.toolbar.elements,["redo"])),this[e.currentMode].undoStack.length>1&&p(e.toolbar.elements,["undo"]))},e.prototype.renderDiff=function(e,t,n){var o;if(void 0===n&&(n=!1),n){var r=this.dmp.patch_deepCopy(e).reverse();r.forEach(function(e){e.diffs.forEach(function(e){e[0]=-e[0]})}),o=this.dmp.patch_apply(r,this[t.currentMode].lastText)[0]}else o=this.dmp.patch_apply(e,this[t.currentMode].lastText)[0];if(this[t.currentMode].lastText=o,t[t.currentMode].element.innerHTML=o,"sv"!==t.currentMode&&(t[t.currentMode].element.querySelectorAll(".vditor-".concat(t.currentMode,"__preview")).forEach(function(e){e.parentElement.querySelector(".language-echarts")&&("ir"===t.currentMode?e.parentElement.outerHTML=t.lute.SpinVditorIRDOM(e.parentElement.outerHTML):e.parentElement.outerHTML=t.lute.SpinVditorDOM(e.parentElement.outerHTML))}),t[t.currentMode].element.querySelectorAll(".vditor-".concat(t.currentMode,"__preview[data-render='2']")).forEach(function(e){O(e,t)})),t[t.currentMode].element.querySelector("wbr"))(0,H.ib)(t[t.currentMode].element,t[t.currentMode].element.ownerDocument.createRange()),Me(t);else{var a=getSelection().getRangeAt(0);a.setEndBefore(t[t.currentMode].element),a.collapse(!1)}I(t),ct(t,{enableAddUndoStack:!1,enableHint:!1,enableInput:!0}),he(t),t[t.currentMode].element.querySelectorAll(".vditor-".concat(t.currentMode,"__preview[data-render='2']")).forEach(function(e){O(e,t)}),this[t.currentMode].undoStack.length>1?p(t.toolbar.elements,["undo"]):m(t.toolbar.elements,["undo"]),0!==this[t.currentMode].redoStack.length?p(t.toolbar.elements,["redo"]):m(t.toolbar.elements,["redo"])},e.prototype.resetStack=function(){this.ir={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]},this.sv={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]},this.wysiwyg={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]}},e.prototype.addCaret=function(e,t){var n;if(void 0===t&&(t=!1),0!==getSelection().rangeCount&&!e[e.currentMode].element.querySelector("wbr")){var o=getSelection().getRangeAt(0);if(e[e.currentMode].element.contains(o.startContainer)){n=o.cloneRange();var r=document.createElement("span");r.className="vditor-wbr",o.insertNode(r)}}var a=e[e.currentMode].element.cloneNode(!0);a.querySelectorAll(".vditor-".concat(e.currentMode,"__preview[data-render='1']")).forEach(function(e){e.firstElementChild&&(e.firstElementChild.classList.contains("language-echarts")||e.firstElementChild.classList.contains("language-plantuml")||e.firstElementChild.classList.contains("language-mindmap")?(e.firstElementChild.removeAttribute("_echarts_instance_"),e.firstElementChild.removeAttribute("data-processed"),e.firstElementChild.innerHTML=e.previousElementSibling.firstElementChild.innerHTML,e.setAttribute("data-render","2")):e.firstElementChild.classList.contains("language-math")&&(e.setAttribute("data-render","2"),e.firstElementChild.textContent=e.firstElementChild.getAttribute("data-math"),e.firstElementChild.removeAttribute("data-math")))});var i=a.innerHTML;return e[e.currentMode].element.querySelectorAll(".vditor-wbr").forEach(function(e){e.remove()}),t&&n&&(0,H.Hc)(n),i.replace('<span class="vditor-wbr"></span>',"<wbr>")},e}(),$n=n(673),Wn=function(){function e(e){this.defaultOptions={rtl:!1,after:void 0,cache:{enable:!0},cdn:r.g.CDN,classes:{preview:""},comment:{enable:!1},counter:{enable:!1,type:"markdown"},customRenders:[],debugger:!1,fullscreen:{index:90},height:"auto",hint:{delay:200,emoji:{"+1":"👍","-1":"👎",confused:"😕",eyes:"👀️",heart:"❤️",rocket:"🚀️",smile:"😄",tada:"🎉️"},emojiPath:"".concat(r.g.CDN,"/dist/images/emoji"),extend:[],parse:!0},icon:"ant",lang:"zh_CN",mode:"ir",outline:{enable:!1,position:"left"},placeholder:"",preview:{actions:["desktop","tablet","mobile","mp-wechat","zhihu"],delay:1e3,hljs:r.g.HLJS_OPTIONS,markdown:r.g.MARKDOWN_OPTIONS,math:r.g.MATH_OPTIONS,maxWidth:800,mode:"both",theme:r.g.THEME_OPTIONS,render:{media:{enable:!0}}},link:{isOpen:!0},image:{isPreview:!0},resize:{enable:!1,position:"bottom"},theme:"classic",toolbar:["emoji","headings","bold","italic","strike","link","|","list","ordered-list","check","outdent","indent","|","quote","line","code","inline-code","insert-before","insert-after","|","upload","record","table","|","undo","redo","|","fullscreen","edit-mode",{name:"more",toolbar:["both","code-theme","content-theme","export","outline","preview","devtools","info","help"]}],toolbarConfig:{hide:!1,pin:!1},typewriterMode:!1,undoDelay:800,upload:{extraData:{},fieldName:"file[]",filename:function(e){return e.replace(/\W/g,"")},linkToImgUrl:"",max:10485760,multiple:!0,url:"",withCredentials:!1},value:"",width:"auto"},this.options=e}return e.prototype.merge=function(){var e,t,n,o,r,a,i,l,s;this.options&&(this.options.toolbar?this.options.toolbar=this.mergeToolbar(this.options.toolbar):this.options.toolbar=this.mergeToolbar(this.defaultOptions.toolbar),(null===(t=null===(e=this.options.preview)||void 0===e?void 0:e.theme)||void 0===t?void 0:t.list)&&(this.defaultOptions.preview.theme.list=this.options.preview.theme.list),(null===(r=null===(o=null===(n=this.options.preview)||void 0===n?void 0:n.render)||void 0===o?void 0:o.media)||void 0===r?void 0:r.enable)&&(this.defaultOptions.preview.render.media.enable=this.options.preview.render.media.enable),(null===(a=this.options.hint)||void 0===a?void 0:a.emoji)&&(this.defaultOptions.hint.emoji=this.options.hint.emoji),this.options.comment&&(this.defaultOptions.comment=this.options.comment),this.options.cdn&&((null===(l=null===(i=this.options.preview)||void 0===i?void 0:i.theme)||void 0===l?void 0:l.path)||(this.defaultOptions.preview.theme.path="".concat(this.options.cdn,"/dist/css/content-theme")),(null===(s=this.options.hint)||void 0===s?void 0:s.emojiPath)||(this.defaultOptions.hint.emojiPath="".concat(this.options.cdn,"/dist/images/emoji"))));var c=(0,$n.T)(this.defaultOptions,this.options);if(c.cache.enable&&!c.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");return c},e.prototype.mergeToolbar=function(e){var t=this,n=[{icon:'<svg><use xlink:href="#vditor-icon-export"></use></svg>',name:"export",tipPosition:"ne"},{hotkey:"⌘E",icon:'<svg><use xlink:href="#vditor-icon-emoji"></use></svg>',name:"emoji",tipPosition:"ne"},{hotkey:"⌘H",icon:'<svg><use xlink:href="#vditor-icon-headings"></use></svg>',name:"headings",tipPosition:"ne"},{hotkey:"⌘B",icon:'<svg><use xlink:href="#vditor-icon-bold"></use></svg>',name:"bold",prefix:"**",suffix:"**",tipPosition:"ne"},{hotkey:"⌘I",icon:'<svg><use xlink:href="#vditor-icon-italic"></use></svg>',name:"italic",prefix:"*",suffix:"*",tipPosition:"ne"},{hotkey:"⌘D",icon:'<svg><use xlink:href="#vditor-icon-strike"></use></svg>',name:"strike",prefix:"~~",suffix:"~~",tipPosition:"ne"},{hotkey:"⌘K",icon:'<svg><use xlink:href="#vditor-icon-link"></use></svg>',name:"link",prefix:"[",suffix:"](https://)",tipPosition:"n"},{name:"|"},{hotkey:"⌘L",icon:'<svg><use xlink:href="#vditor-icon-list"></use></svg>',name:"list",prefix:"* ",tipPosition:"n"},{hotkey:"⌘O",icon:'<svg><use xlink:href="#vditor-icon-ordered-list"></use></svg>',name:"ordered-list",prefix:"1. ",tipPosition:"n"},{hotkey:"⌘J",icon:'<svg><use xlink:href="#vditor-icon-check"></use></svg>',name:"check",prefix:"* [ ] ",tipPosition:"n"},{hotkey:"⇧⌘I",icon:'<svg><use xlink:href="#vditor-icon-outdent"></use></svg>',name:"outdent",tipPosition:"n"},{hotkey:"⇧⌘O",icon:'<svg><use xlink:href="#vditor-icon-indent"></use></svg>',name:"indent",tipPosition:"n"},{name:"|"},{hotkey:"⌘;",icon:'<svg><use xlink:href="#vditor-icon-quote"></use></svg>',name:"quote",prefix:"> ",tipPosition:"n"},{hotkey:"⇧⌘H",icon:'<svg><use xlink:href="#vditor-icon-line"></use></svg>',name:"line",prefix:"---",tipPosition:"n"},{hotkey:"⌘U",icon:'<svg><use xlink:href="#vditor-icon-code"></use></svg>',name:"code",prefix:"```",suffix:"\n```",tipPosition:"n"},{hotkey:"⌘G",icon:'<svg><use xlink:href="#vditor-icon-inline-code"></use></svg>',name:"inline-code",prefix:"`",suffix:"`",tipPosition:"n"},{hotkey:"⇧⌘B",icon:'<svg><use xlink:href="#vditor-icon-before"></use></svg>',name:"insert-before",tipPosition:"n"},{hotkey:"⇧⌘E",icon:'<svg><use xlink:href="#vditor-icon-after"></use></svg>',name:"insert-after",tipPosition:"n"},{name:"|"},{icon:'<svg><use xlink:href="#vditor-icon-upload"></use></svg>',name:"upload",tipPosition:"n"},{icon:'<svg><use xlink:href="#vditor-icon-record"></use></svg>',name:"record",tipPosition:"n"},{hotkey:"⌘M",icon:'<svg><use xlink:href="#vditor-icon-table"></use></svg>',name:"table",prefix:"| col1",suffix:" | col2 | col3 |\n| --- | --- | --- |\n| | | |\n| | | |",tipPosition:"n"},{name:"|"},{hotkey:"⌘Z",icon:'<svg><use xlink:href="#vditor-icon-undo"></use></svg>',name:"undo",tipPosition:"nw"},{hotkey:"⌘Y",icon:'<svg><use xlink:href="#vditor-icon-redo"></use></svg>',name:"redo",tipPosition:"nw"},{name:"|"},{icon:'<svg><use xlink:href="#vditor-icon-more"></use></svg>',name:"more",tipPosition:"e"},{hotkey:"⌘'",icon:'<svg><use xlink:href="#vditor-icon-fullscreen"></use></svg>',name:"fullscreen",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-edit"></use></svg>',name:"edit-mode",tipPosition:"nw"},{hotkey:"⌘P",icon:'<svg><use xlink:href="#vditor-icon-both"></use></svg>',name:"both",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-preview"></use></svg>',name:"preview",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',name:"outline",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-theme"></use></svg>',name:"content-theme",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-code-theme"></use></svg>',name:"code-theme",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-bug"></use></svg>',name:"devtools",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-info"></use></svg>',name:"info",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-help"></use></svg>',name:"help",tipPosition:"nw"},{name:"br"}],o=[];return e.forEach(function(e){var r=e;n.forEach(function(t){"string"==typeof e&&t.name===e&&(r=t),"object"==typeof e&&t.name===e.name&&(r=Object.assign({},t,e))}),e.toolbar&&(r.toolbar=t.mergeToolbar(e.toolbar)),o.push(r)}),o},e}(),Gn=function(){function e(e){var t=this;this.composingLock=!1,this.commentIds=[];var n=document.createElement("div");n.className="vditor-wysiwyg",n.innerHTML='<pre class="vditor-reset" placeholder="'.concat(e.options.placeholder,'"\n contenteditable="true" spellcheck="false"></pre>\n<div class="vditor-panel vditor-panel--none"></div>\n<div class="vditor-panel vditor-panel--none">\n <button type="button" aria-label="').concat(window.VditorI18n.comment,'" class="vditor-icon vditor-tooltipped vditor-tooltipped__n">\n <svg><use xlink:href="#vditor-icon-comment"></use></svg>\n </button>\n</div>'),this.element=n.firstElementChild,this.popover=n.firstElementChild.nextElementSibling,this.selectPopover=n.lastElementChild,this.bindEvent(e),_e(e,this.element),Se(e,this.element),xe(e,this.element),Te(e,this.element),De(e,this.element),Le(e,this.element),Ce(e,this.element,this.copy),Ae(e,this.element,this.copy),e.options.comment.enable&&(this.selectPopover.querySelector("button").onclick=function(){var n,o,a=Lute.NewNodeID(),i=getSelection().getRangeAt(0),l=i.cloneRange(),s=i.extractContents(),c=!1,d=!1;s.childNodes.forEach(function(e,t){var r=!1;if(3===e.nodeType?r=!0:e.classList.contains("vditor-comment")?e.classList.contains("vditor-comment")&&e.setAttribute("data-cmtids",e.getAttribute("data-cmtids")+" "+a):r=!0,r)if(3!==e.nodeType&&"0"===e.getAttribute("data-block")&&0===t&&l.startOffset>0)e.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(a,'">').concat(e.innerHTML,"</span>"),n=e;else if(3!==e.nodeType&&"0"===e.getAttribute("data-block")&&t===s.childNodes.length-1&&l.endOffset<l.endContainer.textContent.length)e.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(a,'">').concat(e.innerHTML,"</span>"),o=e;else if(3!==e.nodeType&&"0"===e.getAttribute("data-block"))0===t?c=!0:t===s.childNodes.length-1&&(d=!0),e.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(a,'">').concat(e.innerHTML,"</span>");else{var i=document.createElement("span");i.classList.add("vditor-comment"),i.setAttribute("data-cmtids",a),e.parentNode.insertBefore(i,e),i.appendChild(e)}});var u=(0,b.F9)(l.startContainer);u&&(n?(u.insertAdjacentHTML("beforeend",n.innerHTML),n.remove()):""===u.textContent.trim().replace(r.g.ZWSP,"")&&c&&u.remove());var p=(0,b.F9)(l.endContainer);p&&(o?(p.insertAdjacentHTML("afterbegin",o.innerHTML),o.remove()):""===p.textContent.trim().replace(r.g.ZWSP,"")&&d&&p.remove()),i.insertNode(s),e.options.comment.add(a,i.toString(),t.getComments(e,!0)),Z(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),t.hideComment()})}return e.prototype.getComments=function(e,t){var n=this;if(void 0===t&&(t=!1),"wysiwyg"!==e.currentMode||!e.options.comment.enable)return[];this.commentIds=[],this.element.querySelectorAll(".vditor-comment").forEach(function(e){n.commentIds=n.commentIds.concat(e.getAttribute("data-cmtids").split(" "))}),this.commentIds=Array.from(new Set(this.commentIds));var o=[];return t?(this.commentIds.forEach(function(e){o.push({id:e,top:n.element.querySelector('.vditor-comment[data-cmtids="'.concat(e,'"]')).offsetTop})}),o):void 0},e.prototype.triggerRemoveComment=function(e){var t,n,o;if("wysiwyg"===e.currentMode&&e.options.comment.enable&&e.wysiwyg.commentIds.length>0){var r=JSON.parse(JSON.stringify(this.commentIds));this.getComments(e);var a=(t=r,n=this.commentIds,o=new Set(n),t.filter(function(e){return!o.has(e)}));a.length>0&&e.options.comment.remove(a)}},e.prototype.showComment=function(){var e=(0,H.Ny)(this.element);this.selectPopover.setAttribute("style","left:".concat(e.left,"px;display:block;top:").concat(Math.max(-8,e.top-21),"px"))},e.prototype.hideComment=function(){this.selectPopover.setAttribute("style","display:none")},e.prototype.unbindListener=function(){window.removeEventListener("scroll",this.scrollListener)},e.prototype.copy=function(e,t){var n=getSelection().getRangeAt(0);if(""!==n.toString()){e.stopPropagation(),e.preventDefault();var o=(0,b.lG)(n.startContainer,"CODE"),r=(0,b.lG)(n.endContainer,"CODE");if(o&&r&&r.isSameNode(o)){var a="";return a="PRE"===o.parentElement.tagName?n.toString():"`"+n.toString()+"`",e.clipboardData.setData("text/plain",a),void e.clipboardData.setData("text/html","")}var i=(0,b.lG)(n.startContainer,"A"),l=(0,b.lG)(n.endContainer,"A");if(i&&l&&l.isSameNode(i)){var s=i.getAttribute("title")||"";return s&&(s=' "'.concat(s,'"')),e.clipboardData.setData("text/plain","[".concat(n.toString(),"](").concat(i.getAttribute("href")).concat(s,")")),void e.clipboardData.setData("text/html","")}var c=document.createElement("div");c.appendChild(n.cloneContents()),e.clipboardData.setData("text/plain",t.lute.VditorDOM2Md(c.innerHTML).trim()),e.clipboardData.setData("text/html","")}},e.prototype.bindEvent=function(e){var t=this;this.unbindListener(),window.addEventListener("scroll",this.scrollListener=function(){if(v(e,["hint"]),"block"===t.popover.style.display&&"block"===t.selectPopover.style.display){var n=parseInt(t.popover.getAttribute("data-top"),10);if("auto"===e.options.height){if(e.options.toolbarConfig.pin){var o=Math.max(n,window.scrollY-e.element.offsetTop-8)+"px";"block"===t.popover.style.display&&(t.popover.style.top=o),"block"===t.selectPopover.style.display&&(t.selectPopover.style.top=o)}}else if(e.options.toolbarConfig.pin&&0===e.toolbar.element.getBoundingClientRect().top){var r=Math.max(window.scrollY-e.element.offsetTop-8,Math.min(n-e.wysiwyg.element.scrollTop,t.element.clientHeight-21))+"px";"block"===t.popover.style.display&&(t.popover.style.top=r),"block"===t.selectPopover.style.display&&(t.selectPopover.style.top=r)}}}),this.element.addEventListener("scroll",function(){if(v(e,["hint"]),e.options.comment&&e.options.comment.enable&&e.options.comment.scroll&&e.options.comment.scroll(e.wysiwyg.element.scrollTop),"block"===t.popover.style.display){var n=parseInt(t.popover.getAttribute("data-top"),10)-e.wysiwyg.element.scrollTop,o=-8;e.options.toolbarConfig.pin&&0===e.toolbar.element.getBoundingClientRect().top&&(o=window.scrollY-e.element.offsetTop+o);var r=Math.max(o,Math.min(n,t.element.clientHeight-21))+"px";t.popover.style.top=r,t.selectPopover.style.top=r}}),this.element.addEventListener("paste",function(t){xt(e,t,{pasteCode:function(t){var n=(0,H.zh)(e),o=document.createElement("template");o.innerHTML=t,n.insertNode(o.content.cloneNode(!0));var r=(0,b.a1)(n.startContainer,"data-block","0");r?r.outerHTML=e.lute.SpinVditorDOM(r.outerHTML):e.wysiwyg.element.innerHTML=e.lute.SpinVditorDOM(e.wysiwyg.element.innerHTML),(0,H.ib)(e.wysiwyg.element,n)}})}),this.element.addEventListener("compositionstart",function(){t.composingLock=!0}),this.element.addEventListener("compositionend",function(n){var o=(0,y.W)(getSelection().getRangeAt(0).startContainer);o&&""===o.textContent?I(e):((0,c.vU)()||$e(e,getSelection().getRangeAt(0).cloneRange(),n),t.composingLock=!1)}),this.element.addEventListener("input",function(n){if("deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType){if(t.preventInput)return t.preventInput=!1,void Z(e);if(t.composingLock||"‘"===n.data||"“"===n.data||"《"===n.data)Z(e);else{var o=getSelection().getRangeAt(0),r=(0,b.F9)(o.startContainer);if(r||(ee(e,o),r=(0,b.F9)(o.startContainer)),r){for(var a=(0,H.im)(r,e.wysiwyg.element,o).start,l=!0,s=a-1;s>r.textContent.substr(0,a).lastIndexOf("\n");s--)if(" "!==r.textContent.charAt(s)&&"\t"!==r.textContent.charAt(s)){l=!1;break}0===a&&(l=!1);var c=!0;for(s=a-1;s<r.textContent.length;s++)if(" "!==r.textContent.charAt(s)&&"\n"!==r.textContent.charAt(s)){c=!1;break}c&&/^#{1,6} $/.test(r.textContent)&&(c=!1);var d=(0,y.W)(getSelection().getRangeAt(0).startContainer);d&&""===d.textContent&&(I(e),d.remove()),l&&"code-block"!==r.getAttribute("data-type")||c||st(r.innerHTML)||lt(r.innerHTML)&&r.previousElementSibling?"function"==typeof e.options.input&&e.options.input(i(e)):("insertParagraph"===n.inputType&&"<p><br></p><p><br></p>"===t.element.innerHTML&&r.previousElementSibling.remove(),$e(e,o,n))}}}}),this.element.addEventListener("click",function(n){if("INPUT"===n.target.tagName){var o=n.target;return o.checked?o.setAttribute("checked","checked"):o.removeAttribute("checked"),t.preventInput=!0,getSelection().rangeCount>0&&(0,H.Hc)(getSelection().getRangeAt(0)),void Z(e)}if("IMG"!==n.target.tagName||n.target.parentElement.classList.contains("vditor-wysiwyg__preview")){var a=(0,b.lG)(n.target,"A");if(a)return e.options.link.click?e.options.link.click(a):e.options.link.isOpen&&window.open(a.getAttribute("href")),void n.preventDefault();var l=(0,H.zh)(e);if(n.target.isEqualNode(t.element)&&t.element.lastElementChild&&l.collapsed){var s=t.element.lastElementChild.getBoundingClientRect();n.y>s.top+s.height&&("P"===t.element.lastElementChild.tagName&&""===t.element.lastElementChild.textContent.trim().replace(r.g.ZWSP,"")?(l.selectNodeContents(t.element.lastElementChild),l.collapse(!1)):(t.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(r.g.ZWSP,"<wbr></p>")),(0,H.ib)(t.element,l)))}ae(e);var c=(0,b.fb)(n.target,"vditor-wysiwyg__preview");c||(c=(0,b.fb)((0,H.zh)(e).startContainer,"vditor-wysiwyg__preview")),c&&oe(c,e),P(n,e)}else"link-ref"===n.target.getAttribute("data-type")?le(e,n.target):function(e,t){var n=e.target;t.wysiwyg.popover.innerHTML="";var o=function(){n.setAttribute("src",a.value),n.setAttribute("alt",s.value),n.setAttribute("title",d.value),"function"==typeof t.options.input&&t.options.input(i(t))},r=document.createElement("span");r.setAttribute("aria-label",window.VditorI18n.imageURL),r.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");r.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",window.VditorI18n.imageURL),a.value=n.getAttribute("src")||"",a.oninput=function(){o()},a.onkeydown=function(e){re(t,e)};var l=document.createElement("span");l.setAttribute("aria-label",window.VditorI18n.alternateText),l.className="vditor-tooltipped vditor-tooltipped__n";var s=document.createElement("input");l.appendChild(s),s.className="vditor-input",s.setAttribute("placeholder",window.VditorI18n.alternateText),s.style.width="52px",s.value=n.getAttribute("alt")||"",s.oninput=function(){o()},s.onkeydown=function(e){re(t,e)};var c=document.createElement("span");c.setAttribute("aria-label",window.VditorI18n.title),c.className="vditor-tooltipped vditor-tooltipped__n";var d=document.createElement("input");c.appendChild(d),d.className="vditor-input",d.setAttribute("placeholder",window.VditorI18n.title),d.value=n.getAttribute("title")||"",d.oninput=function(){o()},d.onkeydown=function(e){re(t,e)},de(n,t),t.wysiwyg.popover.insertAdjacentElement("beforeend",r),t.wysiwyg.popover.insertAdjacentElement("beforeend",l),t.wysiwyg.popover.insertAdjacentElement("beforeend",c),fe(t,"image"),ie(t,n)}(n,e)}),this.element.addEventListener("keyup",function(t){if(!t.isComposing&&!(0,c.yl)(t)){"Enter"===t.key&&Me(e),"Backspace"!==t.key&&"Delete"!==t.key||""===e.wysiwyg.element.innerHTML||1!==e.wysiwyg.element.childNodes.length||!e.wysiwyg.element.firstElementChild||"P"!==e.wysiwyg.element.firstElementChild.tagName||0!==e.wysiwyg.element.firstElementChild.childElementCount||""!==e.wysiwyg.element.textContent&&"\n"!==e.wysiwyg.element.textContent||(e.wysiwyg.element.innerHTML="");var n=(0,H.zh)(e);if("Backspace"===t.key&&(0,c.vU)()&&"\n"===n.startContainer.textContent&&1===n.startOffset&&(n.startContainer.textContent=""),ee(e,n),ae(e),"ArrowDown"===t.key||"ArrowRight"===t.key||"Backspace"===t.key||"ArrowLeft"===t.key||"ArrowUp"===t.key){"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||e.hint.render(e);var o=(0,b.fb)(n.startContainer,"vditor-wysiwyg__preview");if(!o&&3!==n.startContainer.nodeType&&n.startOffset>0&&(a=n.startContainer).classList.contains("vditor-wysiwyg__block")&&(o=a.lastElementChild),o)if("none"!==o.previousElementSibling.style.display){var r=o.previousElementSibling;if("PRE"===r.tagName&&(r=r.firstElementChild),"ArrowDown"===t.key||"ArrowRight"===t.key){var a,i=function(e){for(var t=e;t&&!t.nextSibling;)t=t.parentElement;return t.nextSibling}(a=o.parentElement);if(i&&3!==i.nodeType){var l=i.querySelector(".vditor-wysiwyg__preview");if(l)return void oe(l,e)}if(3===i.nodeType){for(;0===i.textContent.length&&i.nextSibling;)i=i.nextSibling;n.setStart(i,1)}else n.setStart(i.firstChild,0)}else n.selectNodeContents(r),n.collapse(!1)}else"ArrowDown"===t.key||"ArrowRight"===t.key?oe(o,e):oe(o,e,!1)}}})},e}(),Kn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const Yn=function(e){function t(t,n){var o=e.call(this)||this;if(o.isDestroyed=!1,o.version=r.H,"string"==typeof t){if(n?n.cache?n.cache.id||(n.cache.id="vditor".concat(t)):n.cache={id:"vditor".concat(t)}:n={cache:{id:"vditor".concat(t)}},!document.getElementById(t))return o.showErrorTip("Failed to get element by id: ".concat(t)),o;t=document.getElementById(t)}var a=new Wn(n).merge();if(a.i18n)window.VditorI18n=a.i18n,o.init(t,a);else{if(!["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(a.lang))throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");var i="vditorI18nScript",s=i+a.lang;document.querySelectorAll('head script[id^="'.concat(i,'"]')).forEach(function(e){e.id!==s&&document.head.removeChild(e)}),(0,l.G)("".concat(a.cdn,"/dist/js/i18n/").concat(a.lang,".js"),s).then(function(){o.init(t,a)}).catch(function(e){o.showErrorTip("GET ".concat(a.cdn,"/dist/js/i18n/").concat(a.lang,".js net::ERR_ABORTED 404 (Not Found)"))})}return o}return Kn(t,e),t.prototype.showErrorTip=function(e){var t=new $t;document.body.appendChild(t.element),t.show(e,0)},t.prototype.updateToolbarConfig=function(e){this.vditor.toolbar.updateConfig(this.vditor,e)},t.prototype.setTheme=function(e,t,n,o){this.vditor.options.theme=e,F(this.vditor),t&&(this.vditor.options.preview.theme.current=t,(0,U.Z)(t,o||this.vditor.options.preview.theme.path)),n&&(this.vditor.options.preview.hljs.style=n,(0,Jt.Y)(n,this.vditor.options.cdn))},t.prototype.getValue=function(){return i(this.vditor)},t.prototype.getCurrentMode=function(){return this.vditor.currentMode},t.prototype.focus=function(){"sv"===this.vditor.currentMode?this.vditor.sv.element.focus():"wysiwyg"===this.vditor.currentMode?this.vditor.wysiwyg.element.focus():"ir"===this.vditor.currentMode&&this.vditor.ir.element.focus()},t.prototype.blur=function(){"sv"===this.vditor.currentMode?this.vditor.sv.element.blur():"wysiwyg"===this.vditor.currentMode?this.vditor.wysiwyg.element.blur():"ir"===this.vditor.currentMode&&this.vditor.ir.element.blur()},t.prototype.disabled=function(){v(this.vditor,["subToolbar","hint","popover"]),m(this.vditor.toolbar.elements,r.g.EDIT_TOOLBARS.concat(["undo","redo","fullscreen","edit-mode"])),this.vditor[this.vditor.currentMode].element.setAttribute("contenteditable","false")},t.prototype.enable=function(){p(this.vditor.toolbar.elements,r.g.EDIT_TOOLBARS.concat(["undo","redo","fullscreen","edit-mode"])),this.vditor.undo.resetIcon(this.vditor),this.vditor[this.vditor.currentMode].element.setAttribute("contenteditable","true")},t.prototype.getSelection=function(){return"wysiwyg"===this.vditor.currentMode?ke(this.vditor.wysiwyg.element):"sv"===this.vditor.currentMode?ke(this.vditor.sv.element):"ir"===this.vditor.currentMode?ke(this.vditor.ir.element):void 0},t.prototype.renderPreview=function(e){this.vditor.preview.render(this.vditor,e)},t.prototype.getCursorPosition=function(){return(0,H.Ny)(this.vditor[this.vditor.currentMode].element)},t.prototype.isUploading=function(){return this.vditor.upload.isUploading},t.prototype.clearCache=function(){this.vditor.options.cache.enable&&(0,c.pK)()&&localStorage.removeItem(this.vditor.options.cache.id)},t.prototype.disabledCache=function(){this.vditor.options.cache.enable=!1},t.prototype.enableCache=function(){if(!this.vditor.options.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");this.vditor.options.cache.enable=!0},t.prototype.html2md=function(e){return this.vditor.lute.HTML2Md(e)},t.prototype.exportJSON=function(e){return this.vditor.lute.RenderJSON(e)},t.prototype.getHTML=function(){return Nt(this.vditor)},t.prototype.tip=function(e,t){this.vditor.tip.show(e,t)},t.prototype.setPreviewMode=function(e){Wt(e,this.vditor)},t.prototype.deleteValue=function(){window.getSelection().isCollapsed||document.execCommand("delete",!1)},t.prototype.updateValue=function(e){document.execCommand("insertHTML",!1,e)},t.prototype.insertValue=function(e,t){void 0===t&&(t=!0);var n=(0,H.zh)(this.vditor);n.collapse(!0);var o=document.createElement("template");o.innerHTML=e,n.insertNode(o.content.cloneNode(!0)),n.collapse(!1),"sv"===this.vditor.currentMode?(this.vditor.sv.preventInput=!0,t&&q(this.vditor)):"wysiwyg"===this.vditor.currentMode?t&&$e(this.vditor,getSelection().getRangeAt(0)):"ir"===this.vditor.currentMode&&(this.vditor.ir.preventInput=!0,t&&N(this.vditor,getSelection().getRangeAt(0),!0))},t.prototype.insertMD=function(e){"ir"===this.vditor.currentMode?(0,H.oC)(this.vditor.lute.Md2VditorIRDOM(e),this.vditor):"wysiwyg"===this.vditor.currentMode?(0,H.oC)(this.vditor.lute.Md2VditorDOM(e),this.vditor):Oe(this.vditor,e),this.vditor.outline.render(this.vditor),ct(this.vditor)},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t=!1),"sv"===this.vditor.currentMode?(this.vditor.sv.element.innerHTML="<div data-block='0'>".concat(this.vditor.lute.SpinVditorSVDOM(e),"</div>"),je(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})):"wysiwyg"===this.vditor.currentMode?ve(this.vditor,e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}):(this.vditor.ir.element.innerHTML=this.vditor.lute.Md2VditorIRDOM(e),this.vditor.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(e){O(e,n.vditor)}),Mt(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})),this.vditor.outline.render(this.vditor),e||(v(this.vditor,["emoji","headings","submenu","hint"]),this.vditor.wysiwyg.popover&&(this.vditor.wysiwyg.popover.style.display="none"),this.clearCache()),t&&this.clearStack()},t.prototype.insertEmptyBlock=function(e){Ze(this.vditor,e)},t.prototype.clearStack=function(){this.vditor.undo.clearStack(this.vditor),this.vditor.undo.addToUndoStack(this.vditor)},t.prototype.destroy=function(){this.vditor.element.innerHTML=this.vditor.originalInnerHTML,this.vditor.element.classList.remove("vditor"),this.vditor.element.removeAttribute("style");var e=document.getElementById("vditorIconScript");e&&e.remove(),this.clearCache(),G(),this.vditor.wysiwyg.unbindListener(),this.vditor.options.after=void 0,this.isDestroyed=!0},t.prototype.getCommentIds=function(){return"wysiwyg"!==this.vditor.currentMode?[]:this.vditor.wysiwyg.getComments(this.vditor,!0)},t.prototype.hlCommentIds=function(e){if("wysiwyg"===this.vditor.currentMode){var t=function(t){t.classList.remove("vditor-comment--hover"),e.forEach(function(e){t.getAttribute("data-cmtids").indexOf(e)>-1&&t.classList.add("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(e){t(e)}),"none"!==this.vditor.preview.element.style.display&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(e){t(e)})}},t.prototype.unHlCommentIds=function(e){if("wysiwyg"===this.vditor.currentMode){var t=function(t){e.forEach(function(e){t.getAttribute("data-cmtids").indexOf(e)>-1&&t.classList.remove("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(e){t(e)}),"none"!==this.vditor.preview.element.style.display&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(e){t(e)})}},t.prototype.removeCommentIds=function(e){var t=this;if("wysiwyg"===this.vditor.currentMode){var n=function(e,n){var o=e.getAttribute("data-cmtids").split(" ");o.find(function(e,t){if(e===n)return o.splice(t,1),!0}),0===o.length?(e.outerHTML=e.innerHTML,(0,H.zh)(t.vditor).collapse(!0)):e.setAttribute("data-cmtids",o.join(" "))};e.forEach(function(e){t.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(t){n(t,e)}),"none"!==t.vditor.preview.element.style.display&&t.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(t){n(t,e)})}),Z(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})}},t.prototype.init=function(e,t){var n=this;this.isDestroyed||(this.vditor={currentMode:t.mode,element:e,hint:new Pt(t.hint.extend),lute:void 0,options:t,originalInnerHTML:e.innerHTML,outline:new Vt(window.VditorI18n.outline),tip:new $t},this.vditor.sv=new Ft(this.vditor),this.vditor.undo=new Fn,this.vditor.wysiwyg=new Gn(this.vditor),this.vditor.ir=new jt(this.vditor),this.vditor.toolbar=new qn(this.vditor),t.resize.enable&&(this.vditor.resize=new Ut(this.vditor)),this.vditor.toolbar.elements.devtools&&(this.vditor.devtools=new s),(t.upload.url||t.upload.handler)&&(this.vditor.upload=new Ue),(0,l.G)(t._lutePath||"".concat(t.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){n.vditor.lute=(0,Rt.X)({autoSpace:n.vditor.options.preview.markdown.autoSpace,gfmAutoLink:n.vditor.options.preview.markdown.gfmAutoLink,codeBlockPreview:n.vditor.options.preview.markdown.codeBlockPreview,emojiSite:n.vditor.options.hint.emojiPath,emojis:n.vditor.options.hint.emoji,fixTermTypo:n.vditor.options.preview.markdown.fixTermTypo,footnotes:n.vditor.options.preview.markdown.footnotes,headingAnchor:!1,inlineMathDigit:n.vditor.options.preview.math.inlineDigit,linkBase:n.vditor.options.preview.markdown.linkBase,linkPrefix:n.vditor.options.preview.markdown.linkPrefix,listStyle:n.vditor.options.preview.markdown.listStyle,mark:n.vditor.options.preview.markdown.mark,mathBlockPreview:n.vditor.options.preview.markdown.mathBlockPreview,paragraphBeginningSpace:n.vditor.options.preview.markdown.paragraphBeginningSpace,sanitize:n.vditor.options.preview.markdown.sanitize,toc:n.vditor.options.preview.markdown.toc}),n.vditor.preview=new qt(n.vditor),function(e){e.element.innerHTML="",e.element.classList.add("vditor"),e.options.rtl&&e.element.setAttribute("dir","rtl"),F(e),(0,U.Z)(e.options.preview.theme.current,e.options.preview.theme.path),"number"==typeof e.options.height?e.element.style.height=e.options.height+"px":e.element.style.height=e.options.height,"number"==typeof e.options.minHeight&&(e.element.style.minHeight=e.options.minHeight+"px"),"number"==typeof e.options.width?e.element.style.width=e.options.width+"px":e.element.style.width=e.options.width,e.element.appendChild(e.toolbar.element);var t=document.createElement("div");if(t.className="vditor-content","left"===e.options.outline.position&&t.appendChild(e.outline.element),t.appendChild(e.wysiwyg.element.parentElement),t.appendChild(e.sv.element),t.appendChild(e.ir.element.parentElement),t.appendChild(e.preview.element),e.toolbar.elements.devtools&&t.appendChild(e.devtools.element),"right"===e.options.outline.position&&(e.outline.element.classList.add("vditor-outline--right"),t.appendChild(e.outline.element)),e.upload&&t.appendChild(e.upload.element),e.options.resize.enable&&t.appendChild(e.resize.element),t.appendChild(e.hint.element),t.appendChild(e.tip.element),e.element.appendChild(t),t.addEventListener("click",function(){v(e,["subToolbar"])}),e.toolbar.elements.export&&e.element.insertAdjacentHTML("beforeend",'<iframe id="vditorExportIframe" style="width: 100%;height: 0;border: 0"></iframe>'),we(e,e.options.mode,Y(e)),document.execCommand("DefaultParagraphSeparator",!1,"p"),navigator.userAgent.indexOf("iPhone")>-1&&void 0!==window.visualViewport){var n=!1,o=function(t){n||(n=!0,requestAnimationFrame(function(){n=!1;var t=e.toolbar.element;t.style.transform="none",t.getBoundingClientRect().top<0&&(t.style.transform="translate(0, ".concat(-t.getBoundingClientRect().top,"px)"))}))};window.visualViewport.addEventListener("scroll",o),window.visualViewport.addEventListener("resize",o)}}(n.vditor),t.after&&t.after(),t.icon&&(0,l.J)("".concat(t.cdn,"/dist/js/icons/").concat(t.icon,".js"),"vditorIconScript")}))},t}(t.default)})(),o=o.default})()}()),mn=[{key:"angry",value:"/emoji/angry.png"},{key:"flagcorrect",value:"/emoji/flagcorrect.png"},{key:"flagwrong",value:"/emoji/flagwrong.png"},{key:"getflag",value:"/emoji/getflag.png"},{key:"gg",value:"/emoji/gg.png"},{key:"heart",value:"/emoji/heart.png"},{key:"missflag",value:"/emoji/missflag.png"},{key:"ques",value:"/emoji/ques.png"},{key:"sleep",value:"/emoji/sleep.png"},{key:"wish",value:"/emoji/wish.png"},{key:"wow",value:"/emoji/wow.png"},{key:"wsnl",value:"/emoji/wsnl.png"}];!function(e,t="/emoji/"){Object.entries(e).map(([e,n])=>{const o=n.startsWith("/")?n:`${t}${n}`,r=e.replace(/:/g,"").replace(/^[a-z]/,e=>e.toUpperCase());return{key:`:${e.replace(/:/g,"")}:`,value:``,name:r}})}({angry:"angry.png",flagcorrect:"flagcorrect.png",flagwrong:"flagwrong.png",getflag:"getflag.png",gg:"gg.png",heart:"heart.png",missflag:"missflag.png",ques:"ques.png",sleep:"sleep.png",wish:"wish.png",wow:"wow.png",wsnl:"wsnl.png"},"/emoji/");const fn={class:"vditor-editor w-full"},hn=m({__name:"MdEditor",props:{modelValue:{default:""},height:{default:400},placeholder:{default:"请输入内容..."},mode:{default:"ir"},toolbar:{default:()=>["emoji","headings","bold","italic","strike","link","|","list","ordered-list","outdent","indent","|","quote","line","code","inline-code","insert-before","insert-after","|","table","|","undo","redo","edit-mode"]},upload:{default:void 0},emojiPath:{default:""}},emits:["update:modelValue","change","ready"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=f(),i=f(),l=()=>p(this,null,function*(){i.value=new pn(a.value,{height:o.height,placeholder:o.placeholder,mode:o.mode,width:"100%",toolbar:o.toolbar,upload:{accept:"image/*",fieldName:"image",url:"/api/utils/upload/image/",multiple:!1,format:(e,t)=>{const n=JSON.parse(t);return 200===n.code?JSON.stringify({msg:"上传成功",code:0,data:{errFiles:[],succMap:{[n.data.split("/").pop()]:n.data}}}):(13002===n.code?vt.warning({message:"上传失败"}):13003===n.code&&vt.warning({message:"图床剩余空间不足"}),JSON.stringify({msg:n.msg||"上传失败",code:1,data:{errFiles:["NSS图片"],succMap:{}}}))}},value:o.modelValue,customirToolbar:()=>{},after:()=>{if(r("ready",i.value),i.value&&a.value){const e=a.value.querySelector(".vditor");if(e){const t=new MutationObserver(()=>{if(e.classList.contains("vditor--fullscreen")){document.body.classList.add("vditor-fullscreen");let t=e;for(;t&&t!==document.body;)(t.classList.contains("el-row")||t.classList.contains("el-col"))&&t.classList.add("vditor-fullscreen-hide"),t=t.parentElement;document.querySelectorAll(".el-col").forEach(t=>{t.contains(e)||t.classList.add("vditor-fullscreen-hide")});document.querySelectorAll(".el-row").forEach(t=>{t.contains(e)||t.classList.add("vditor-fullscreen-hide")})}else document.body.classList.remove("vditor-fullscreen"),document.querySelectorAll(".vditor-fullscreen-hide").forEach(e=>{e.classList.remove("vditor-fullscreen-hide")})});t.observe(e,{attributes:!0,attributeFilter:["class"]}),i.value._fullscreenObserver||(i.value._fullscreenObserver=t)}}},input:e=>{r("update:modelValue",e),r("change",e)},focus:()=>{},blur:()=>{},esc:()=>{},ctrlEnter:()=>{},icon:"material",hint:{delay:200,emoji:mn.reduce((e,t)=>(e[t.key]=t.value,e),{}),emojiPath:"/emoji/"},counter:{enable:!0},cache:{enable:!1,id:"md-editor"},preview:{delay:0,maxWidth:800,mode:"both",actions:[],theme:{current:"light",path:"/vditor/dist/content-theme"},hljs:{lineNumber:!0,style:"github"}},tab:" ",cdn:"/vditor"})});h(()=>o.modelValue,e=>{i.value&&i.value.getValue()!==e&&i.value.setValue(e)});return t({getValue:()=>{var e;return(null==(e=i.value)?void 0:e.getValue())||""},setValue:e=>{var t;null==(t=i.value)||t.setValue(e)},insertValue:e=>{var t;null==(t=i.value)||t.insertValue(e)},focus:()=>{var e;null==(e=i.value)||e.focus()},blur:()=>{var e;null==(e=i.value)||e.blur()},getSelection:()=>{var e;return(null==(e=i.value)?void 0:e.getSelection())||""},setSelection:(e,t)=>{if(i.value){const n=i.value.getValue(),o=n.substring(0,e)+n.substring(t);i.value.setValue(o)}},getCursorPosition:()=>{var e;return(null==(e=i.value)?void 0:e.getCursorPosition())||{top:0,left:0}},setCursorPosition:(e,t)=>{i.value&&i.value.focus()},getHTML:()=>{var e;return(null==(e=i.value)?void 0:e.getHTML())||""},getMarkdown:()=>{var e;return(null==(e=i.value)?void 0:e.getValue())||""},getText:()=>{var e;return(null==(e=i.value)?void 0:e.getValue())||""},clear:()=>{var e;null==(e=i.value)||e.setValue("")},destroy:()=>{var e;null==(e=i.value)||e.destroy()},vditor:i.value}),v(()=>p(this,null,function*(){l()})),g(()=>{i.value&&(i.value._fullscreenObserver&&(i.value._fullscreenObserver.disconnect(),delete i.value._fullscreenObserver),document.body.classList.remove("vditor-fullscreen"),i.value.destroy())}),(e,t)=>(w(),b("div",fn,[y("div",{ref_key:"vditorRef",ref:a,class:"vditor-container"},null,512)]))}}),vn={class:"markdown-editor-container w-full"},gn={class:"flex justify-end space-x-2"},bn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},yn=bn(m({__name:"FeedbackDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=f(n.modelValue),a=f(!1),i=f(),l=E({type:0,content:""}),s=[{value:0,label:"功能BUG"},{value:1,label:"建议反馈"},{value:2,label:"性能问题"},{value:3,label:"安全问题"},{value:4,label:"兼容性反馈"},{value:5,label:"文档反馈"},{value:6,label:"其他"}],c={type:[{required:!0,message:"请选择问题类型",trigger:"change"}],content:[{required:!0,message:"请输入问题内容",trigger:"blur"},{validator:(e,t,n)=>{!t||t.trim().length<16?n(new Error("问题内容至少需要16个字符")):t.length>1023?n(new Error("问题内容不能超过1023个字符")):n()},trigger:"blur"}]};h(()=>n.modelValue,e=>{r.value=e}),h(r,e=>{o("update:modelValue",e)});const d=()=>p(this,null,function*(){var e;if(i.value)try{yield i.value.validate(),a.value=!0;200===(yield(e=l,At.post("/utils/issue/add/",e))).code?(vt.success({message:"反馈提交成功,感谢您的反馈!"}),u()):vt.error({message:"提交失败,请重试"})}catch(t){}finally{a.value=!1}}),u=()=>{var e;r.value=!1,l.type=0,l.content="",null==(e=i.value)||e.clearValidate()};return(e,t)=>{const n=_e,o=ke,p=Ee,m=we,f=Se,h=xe;return w(),k(h,{modelValue:r.value,"onUpdate:modelValue":t[2]||(t[2]=e=>r.value=e),title:"问题反馈",width:"50%","close-on-click-modal":!1,"append-to-body":"",onClose:u},{footer:_(()=>[y("div",gn,[S(f,{onClick:u},{default:_(()=>t[3]||(t[3]=[C(" 取消 ",-1)])),_:1,__:[3]}),S(f,{type:"primary",onClick:d,loading:a.value},{default:_(()=>t[4]||(t[4]=[C(" 提交反馈 ",-1)])),_:1,__:[4]},8,["loading"])])]),default:_(()=>[S(m,{ref_key:"formRef",ref:i,model:l,rules:c,"label-width":"100px"},{default:_(()=>[S(p,{label:"问题类型",prop:"type"},{default:_(()=>[S(o,{modelValue:l.type,"onUpdate:modelValue":t[0]||(t[0]=e=>l.type=e),placeholder:"请选择问题类型",class:"w-full"},{default:_(()=>[(w(),b(x,null,L(s,e=>S(n,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),S(p,{label:"问题内容",prop:"content"},{default:_(()=>[y("div",vn,[S(hn,{modelValue:l.content,"onUpdate:modelValue":t[1]||(t[1]=e=>l.content=e),height:700,placeholder:"请详细描述您遇到的问题或建议(支持Markdown格式)"},null,8,["modelValue"])])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-366fcb50"]]),wn=m({__name:"MdViewer",props:{content:{default:""},theme:{default:"classic"},lang:{default:"zh_CN"},maxWidth:{default:800},delay:{default:0},enableToc:{type:Boolean,default:!0},enableMark:{type:Boolean,default:!0},enableKatex:{type:Boolean,default:!0},enableMath:{type:Boolean,default:!0},enableAiExplain:{type:Boolean,default:!0}},emits:["ready","rendered","ai-explain"],setup(e,{expose:t,emit:n}){const o=e,r=n,a=f(),i=T();let l=!1,s=null;const c={mode:"light",theme:{current:"light",path:"/vditor/dist/content-theme"},customEmoji:mn.reduce((e,t)=>(e[t.key]=t.value,e),{}),emojiPath:"/emoji/",lang:o.lang,markdown:{toc:o.enableToc,mark:o.enableMark,listStyle:!0},math:{inlineDigit:!0},cdn:"/vditor",hljs:{lineNumber:!0,style:"github"}},d=()=>p(this,null,function*(){if(a.value&&o.content)try{a.value.innerHTML="";yield pn.preview(a.value,o.content,c);yield A(),u(),m(),o.enableAiExplain&&setTimeout(()=>{y()},200)}catch(e){}}),u=()=>{if(!a.value)return;a.value.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach((e,t)=>{const n=`heading-${t}-${(e.textContent||"").toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]/g,"-")}`;e.id=n})},m=()=>{if(!a.value)return;a.value.querySelectorAll("a").forEach(e=>{if(e.hasAttribute("data-external-processed"))return;const t=e.getAttribute("href");t&&(e=>{if(!e)return!1;try{if(e.startsWith("#")||e.startsWith("mailto:")||e.startsWith("tel:"))return!1;if(!e.startsWith("http://")&&!e.startsWith("https://")&&!e.startsWith("//"))return!1;const t=new URL(e.startsWith("//")?`https:${e}`:e,window.location.origin),n=new URL(window.location.href);return t.origin!==n.origin}catch(t){return!1}})(t)&&(e.setAttribute("data-external-processed","true"),e.setAttribute("data-original-href",t),e.removeAttribute("href"),e.classList.add("external-link"),e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const n=i.resolve({path:"/external-link",query:{url:encodeURIComponent(t)}});window.open(n.href,"_blank","noopener,noreferrer")}))})},y=()=>{if(!a.value)return;let e=a.value.querySelectorAll("pre code");if(0===e.length){const t=a.value.querySelector(".vditor-reset");t&&(e=t.querySelectorAll("pre code"))}e.forEach(e=>{const t=e.parentElement;if(!t||"PRE"!==t.tagName)return;if(t.querySelector(".v-md-ai-explain-btn"))return;const n=e.textContent||"",o=n.split("\n").length;if(-1!==n.indexOf("NSSCTF 智能助手"))return;if(o<10)return;const r=document.createElement("button");r.className="v-md-ai-explain-btn",r.type="button",r.innerHTML='\n <div class="tooltiptext">AI代码解释</div>\n <i>\n <svg width="1.2em" height="1.2em" viewBox="0 0 512 512" aria-hidden="true" focusable="false" data-icon="copy">\n <path d="M259.92 262.91L216.4 149.77a9 9 0 0 0-16.8 0l-43.52 113.14a9 9 0 0 1-5.17 5.17L37.77 311.6a9 9 0 0 0 0 16.8l113.14 43.52a9 9 0 0 1 5.17 5.17l43.52 113.14a9 9 0 0 0 16.8 0l43.52-113.14a9 9 0 0 1 5.17-5.17l113.14-43.52a9 9 0 0 0 0-16.8l-113.14-43.52a9 9 0 0 1-5.17-5.17z" fill="none" stroke="#29a4f1" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path>\n <path fill="none" stroke="#29a4f1" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M108 68L88 16L68 68L16 88l52 20l20 52l20-52l52-20l-52-20z"></path>\n <path fill="none" stroke="#29a4f1" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M426.67 117.33L400 48l-26.67 69.33L304 144l69.33 26.67L400 240l26.67-69.33L496 144l-69.33-26.67z"></path>\n </svg>\n </i>\n ',r.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation();const n=e.textContent||"";-1===n.indexOf("NSSCTF 智能助手")?E(n):vt.warning({message:"已经是解释后的代码了!"})});"static"===window.getComputedStyle(t).position&&(t.style.position="relative"),t.classList.add("ai-explain-mode"),t.appendChild(r)})},E=e=>{if(l)return void vt.warning({message:"正在解释中,请稍后再试。"});l=!0;const t=t=>{(e=>At.get("/utils/ai/code/explain/info/",{hid:e}))(t).then(t=>{if(200===t.code||202===t.code){let n;const o=200===t.code?"内容由 NSSCTF 智能助手 生成,请仔细甄别":"NSSCTF 智能助手正在解释中...";n="python"===t.data.type||"py"===t.data.type||"sql"===t.data.type?`\`\`\`${t.data.type}\n# ${o}\n${t.data.code}\n\`\`\``:"html"===t.data.type?`\`\`\`html\n\x3c!-- ${o} --\x3e\n${t.data.code}\n\`\`\``:`\`\`\`${t.data.type}\n// ${o}\n${t.data.code}\n\`\`\``,k(e,n),200===t.code&&(l=!1,s&&clearInterval(s),s=null)}})};(e=>At.post("/utils/ai/code/explain/",{code:e}))(e).then(e=>{200===e.code?(vt.success({title:"请求成功",message:"请等待代码解释完成。"}),s=setInterval(()=>{t(e.data.hid)},3e3)):201===e.code?(l=!1,vt.warning({title:"代码解释失败",message:"代码段内容过长"})):202===e.code?(l=!1,vt.warning({title:"代码解释失败",message:"已达每日使用上限"})):203===e.code&&(l=!1,vt.warning({title:"代码解释失败",message:"未知错误"}))})},k=(e,t)=>p(this,null,function*(){var n;if(!a.value)return;let r=a.value.querySelectorAll("pre code");if(0===r.length){const e=a.value.querySelector(".vditor-reset");e&&(r=e.querySelectorAll("pre code"))}for(const a of Array.from(r)){const r=a.textContent||"";if(-1!==r.trim().indexOf("NSSCTF 智能助手正在解释中...")||r.trim()===e.trim()){const e=a.parentElement;if(!e||"PRE"!==e.tagName)continue;try{const r=document.createElement("div");r.className="vditor-reset",r.style.position="absolute",r.style.left="-9999px",r.style.top="-9999px",r.style.width="1px",r.style.height="1px",r.style.overflow="hidden",document.body.appendChild(r),yield pn.preview(r,t,c),yield new Promise(e=>setTimeout(e,300));let a=r.querySelector(".vditor-reset pre");if(a||(a=r.querySelector("pre")),!a){document.body.contains(r)&&document.body.removeChild(r);continue}const i=e.querySelector(".v-md-ai-explain-btn"),l=a.cloneNode(!0);null==(n=e.parentNode)||n.replaceChild(l,e),o.enableAiExplain&&i&&(yield A(),setTimeout(()=>{y()},100)),document.body.contains(r)&&document.body.removeChild(r);break}catch(i){}}}});h(()=>o.content,()=>{A(()=>{d()})},{immediate:!1}),h(()=>o.theme,()=>{A(()=>{d()})}),v(()=>{A(()=>{d(),r("ready")})}),g(()=>{s&&(clearInterval(s),s=null)});return t({getHTML:()=>{var e;return(null==(e=a.value)?void 0:e.innerHTML)||""},getText:()=>{var e;return(null==(e=a.value)?void 0:e.textContent)||""},render:d}),(e,t)=>(w(),b("div",{ref_key:"containerRef",ref:a,class:M(["markdown-viewer",{"dark-theme":"dark"===e.theme}])},null,2))}}),En={props:{team:{type:Boolean,default:!1},link:{type:Boolean,default:!1}},setup(e,t){const n=T();return{handleClick:()=>{e.link&&n.push("/about/vip")}}}},kn={key:0,style:{display:"inline-flex",cursor:"pointer"},title:"VIP战队高级功能"},_n={key:1,style:{display:"inline-flex",cursor:"pointer"},title:"VIP高级功能"};const Sn=bn(En,[["render",function(e,t,n,o,r,a){return w(),b("div",{onClick:t[0]||(t[0]=(...e)=>o.handleClick&&o.handleClick(...e)),style:{"line-height":"32px"}},[n.team?(w(),b("div",kn,t[1]||(t[1]=[y("svg",{t:"1683436198043",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10598",width:"33",height:"32"},[y("path",{d:"M768 307.2H256a153.6 153.6 0 0 0-153.6 153.6v102.4a153.6 153.6 0 0 0 153.6 153.6h512a153.6 153.6 0 0 0 153.6-153.6v-102.4a153.6 153.6 0 0 0-153.6-153.6zM353.536 640h-2.816a25.6 25.6 0 0 1-22.016-19.712l-46.592-204.8a25.6 25.6 0 1 1 51.2-11.264L362.496 537.6l67.84-139.264a25.6 25.6 0 1 1 45.824 22.528l-99.584 204.8a25.6 25.6 0 0 1-23.04 14.336z m165.632-21.248a25.6 25.6 0 0 1-25.6 21.248 14.08 14.08 0 0 1-4.608 0 25.6 25.6 0 0 1-20.736-29.44l36.096-204.8a25.6 25.6 0 0 1 51.2 8.704z m231.936-153.6A89.344 89.344 0 0 1 665.6 537.6h-29.696l-14.336 81.152a25.6 25.6 0 0 1-25.6 21.248 14.08 14.08 0 0 1-4.608 0 25.6 25.6 0 0 1-20.736-29.44l18.176-102.4a25.6 25.6 0 0 1 25.6-21.76h51.2a38.4 38.4 0 0 0 35.072-29.952 18.432 18.432 0 0 0-3.328-15.616 17.152 17.152 0 0 0-13.568-5.632h-51.2a25.6 25.6 0 0 1 0-51.2h51.2a68.352 68.352 0 0 1 52.736 23.808 69.888 69.888 0 0 1 14.592 57.344z","p-id":"10599",fill:"#f2b45a"})],-1)]))):(w(),b("div",_n,t[2]||(t[2]=[y("svg",{t:"1683436198043",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10598",width:"33",height:"32"},[y("path",{d:"M768 307.2H256a153.6 153.6 0 0 0-153.6 153.6v102.4a153.6 153.6 0 0 0 153.6 153.6h512a153.6 153.6 0 0 0 153.6-153.6v-102.4a153.6 153.6 0 0 0-153.6-153.6zM353.536 640h-2.816a25.6 25.6 0 0 1-22.016-19.712l-46.592-204.8a25.6 25.6 0 1 1 51.2-11.264L362.496 537.6l67.84-139.264a25.6 25.6 0 1 1 45.824 22.528l-99.584 204.8a25.6 25.6 0 0 1-23.04 14.336z m165.632-21.248a25.6 25.6 0 0 1-25.6 21.248 14.08 14.08 0 0 1-4.608 0 25.6 25.6 0 0 1-20.736-29.44l36.096-204.8a25.6 25.6 0 0 1 51.2 8.704z m231.936-153.6A89.344 89.344 0 0 1 665.6 537.6h-29.696l-14.336 81.152a25.6 25.6 0 0 1-25.6 21.248 14.08 14.08 0 0 1-4.608 0 25.6 25.6 0 0 1-20.736-29.44l18.176-102.4a25.6 25.6 0 0 1 25.6-21.76h51.2a38.4 38.4 0 0 0 35.072-29.952 18.432 18.432 0 0 0-3.328-15.616 17.152 17.152 0 0 0-13.568-5.632h-51.2a25.6 25.6 0 0 1 0-51.2h51.2a68.352 68.352 0 0 1 52.736 23.808 69.888 69.888 0 0 1 14.592 57.344z","p-id":"10599",fill:"#f2b45a"})],-1)])))])}]]),xn={key:1},Ln=m({__name:"EditText",props:{modelValue:String,size:{type:String,default:"middle"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,o=["small","middle","large"].indexOf(n.size),r=t,a=f(n.modelValue),i=f(!1);h(()=>n.modelValue,e=>{a.value=e||""});const l=()=>{i.value=!1,r("update:modelValue",a.value),r("change",a.value)},s=()=>{i.value=!0,A(()=>{const e=document.querySelector(".el-input__inner");e&&(e.focus(),e.select())})};return(e,t)=>{const n=I("font-awesome-icon"),r=Le;return i.value?(w(),b("div",xn,[S(r,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),style:{"max-width":"200px"},size:"small",onKeydown:P(l,["enter"])},{suffix:_(()=>[S(n,{icon:["fas","check"],class:"cursor-pointer text-green-500 hover:text-green-600 transition-colors mr-1",onClick:l})]),_:1},8,["modelValue"])])):(w(),b("div",{key:0,class:M([["text-sm","text-base","text-lg"][H(o)],"flex items-center"])},[C(D(a.value)+" ",1),S(n,{icon:["fas","pencil"],class:"ml-1.5 cursor-pointer text-gray-500 hover:text-blue-500 transition-colors",style:O({fontSize:["12px","14px","16px"][H(o)]}),onClick:s},null,8,["style"])],2))}}}),Cn={class:"control-container"},An={class:"toggle-button-content"},Mn={key:0,class:"toggle-label"},Tn=bn(m({__name:"SideBar",props:["rightSize"],emits:["change","mousedown"],setup(e,{emit:t}){const n=f(!1),o=f(!1),r=t,a=()=>{n.value=!n.value,r("change",n.value)},i=e=>{r("mousedown",e)};return(t,r)=>{const l=I("font-awesome-icon");return w(),b("div",Cn,[y("div",{class:M(["toggle-button",{"is-open":n.value,"is-hovering":o.value}]),style:O({right:e.rightSize}),onMouseenter:r[0]||(r[0]=e=>o.value=!0),onMouseleave:r[1]||(r[1]=e=>o.value=!1),onClick:a,onMousedown:i},[y("div",An,[S(l,{icon:["fas",n.value?"angle-right":"angle-left"],class:"toggle-icon"},null,8,["icon"]),o.value&&!n.value?(w(),b("div",Mn,r[2]||(r[2]=[y("div",{class:"label-text"},"AI",-1),y("div",{class:"label-text"},"助手",-1)]))):j("",!0)])],38)])}}}),[["__scopeId","data-v-a08c6b11"]]),Dn="/images/favicon-CtL_xmU2.ico";function On(e,t=()=>{vt.warning({message:"操作频繁,请稍后再次提交。"})},n=3e3){if("function"!=typeof e)throw new TypeError("func must be a function");isNaN(n)&&(n=1e3);let o,r=0;return function(...a){let i=+new Date;return n-(i-r)<=0?(r=i,o=e.apply(null,a),o):(t.apply(null),o)}}function Hn(e){return!!V()&&(B(e),!0)}function In(e){return"function"==typeof e?e():H(e)}const Pn="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const jn=Object.prototype.toString,Nn=()=>{};const Rn=e=>e();function zn(e,t,n={}){const o=n,{eventFilter:r=Rn}=o,a=d(o,["eventFilter"]);return h(e,(i=r,l=t,function(...e){return new Promise((t,n)=>{Promise.resolve(i(()=>l.apply(this,e),{fn:l,thisArg:this,args:e})).then(t).catch(n)})}),a);var i,l}function Vn(e,t,n={}){const o=n,{eventFilter:r}=o,a=d(o,["eventFilter"]),{eventFilter:i,pause:l,resume:u,isActive:p}=function(e=Rn){const t=f(!0);return{isActive:R(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(r);return{stop:zn(e,t,c(s({},a),{eventFilter:i})),pause:l,resume:u,isActive:p}}function Bn(e,t=!0,n){q()?v(e,n):t?e():A(e)}function qn(e){var t;const n=In(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Un=Pn?window:void 0,Fn=Pn?window.navigator:void 0;function $n(...e){let t,n,o,r;if("string"==typeof e[0]||Array.isArray(e[0])?([n,o,r]=e,t=Un):[t,n,o,r]=e,!t)return Nn;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(e=>e()),a.length=0},l=h(()=>[qn(t),In(r)],([e,t])=>{if(i(),!e)return;const r=(l=t,"[object Object]"===jn.call(l)?s({},t):t);var l;a.push(...n.flatMap(t=>o.map(n=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,t,n,r))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Hn(c),c}function Wn(e){const t=function(){const e=f(!1),t=q();return t&&v(()=>{e.value=!0},t),e}();return U(()=>(t.value,Boolean(e())))}function Gn(e,t={}){const{controls:n=!1,navigator:o=Fn}=t,r=Wn(()=>o&&"permissions"in o);let a;const i="string"==typeof e?{name:e}:e,l=f(),s=()=>{a&&(l.value=a.state)},c=function(e){let t;function n(){return t||(t=e()),t}return n.reset=()=>p(this,null,function*(){const e=t;t=void 0,e&&(yield e)}),n}(()=>p(this,null,function*(){if(r.value){if(!a)try{a=yield o.permissions.query(i),$n(a,"change",s),s()}catch(e){l.value="prompt"}return a}}));return c(),n?{state:l,isSupported:r,query:c}:l}function Kn(e={}){const{navigator:t=Fn,read:n=!1,source:o,copiedDuring:r=1500,legacy:a=!1}=e,i=Wn(()=>t&&"clipboard"in t),l=Gn("clipboard-read"),s=Gn("clipboard-write"),c=U(()=>i.value||a),d=f(""),u=f(!1),m=function(e,t,n={}){const{immediate:o=!0}=n,r=f(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function l(){r.value=!1,i()}function s(...n){i(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...n)},In(t))}return o&&(r.value=!0,Pn&&s()),Hn(l),{isPending:R(r),start:s,stop:l}}(()=>u.value=!1,r);function h(e){return"granted"===e||"prompt"===e}return c.value&&n&&$n(["copy","cut"],function(){var e,n,o;i.value&&h(l.value)?t.clipboard.readText().then(e=>{d.value=e}):d.value=null!=(o=null==(n=null==(e=null==document?void 0:document.getSelection)?void 0:e.call(document))?void 0:n.toString())?o:""}),{isSupported:c,text:d,copied:u,copy:function(){return p(this,arguments,function*(e=In(o)){c.value&&null!=e&&(i.value&&h(s.value)?yield t.clipboard.writeText(e):function(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(e),d.value=e,u.value=!0,m.start())})}}}const Yn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Jn="__vueuse_ssr_handlers__",Zn=Qn();function Qn(){return Jn in Yn||(Yn[Jn]=Yn[Jn]||{}),Yn[Jn]}function Xn(e,t){return Zn[e]||t}const eo={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},to="vueuse-storage";function no(e,t,n,o={}){var r;const{flush:a="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:d=!1,shallow:u,window:p=Un,eventFilter:m,onError:h=e=>{},initOnMounted:v}=o,g=(u?F:f)("function"==typeof t?t():t);if(!n)try{n=Xn("getDefaultStorage",()=>{var e;return null==(e=Un)?void 0:e.localStorage})()}catch(L){h(L)}if(!n)return g;const b=In(t),y=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(b),w=null!=(r=o.serializer)?r:eo[y],{pause:E,resume:k}=Vn(g,()=>function(t){try{const o=n.getItem(e);if(null==t)_(o,null),n.removeItem(e);else{const r=w.write(t);o!==r&&(n.setItem(e,r),_(o,r))}}catch(L){h(L)}}(g.value),{flush:a,deep:i,eventFilter:m});function _(t,o){p&&p.dispatchEvent(new CustomEvent(to,{detail:{key:e,oldValue:t,newValue:o,storageArea:n}}))}function S(t){if(!t||t.storageArea===n)if(t&&null==t.key)g.value=b;else if(!t||t.key===e){E();try{(null==t?void 0:t.newValue)!==w.write(g.value)&&(g.value=function(t){const o=t?t.newValue:n.getItem(e);if(null==o)return c&&null!=b&&n.setItem(e,w.write(b)),b;if(!t&&d){const e=w.read(o);return"function"==typeof d?d(e,b):"object"!==y||Array.isArray(e)?e:s(s({},b),e)}return"string"!=typeof o?o:w.read(o)}(t))}catch(L){h(L)}finally{t?A(k):k()}}}function x(e){S(e.detail)}return p&&l&&Bn(()=>{$n(p,"storage",S),$n(p,to,x),v&&S()}),v||S(),g}function oo(e){return function(e,t={}){const{window:n=Un}=t,o=Wn(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia);let r;const a=f(!1),i=e=>{a.value=e.matches},l=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",i):r.removeListener(i))},s=$(()=>{o.value&&(l(),r=n.matchMedia(In(e)),"addEventListener"in r?r.addEventListener("change",i):r.addListener(i),a.value=r.matches)});return Hn(()=>{s(),l(),r=void 0}),a}("(prefers-color-scheme: dark)",e)}function ro(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Un,storage:a,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:d,disableTransition:u=!0}=e,p=s({auto:"",light:"light",dark:"dark"},e.modes||{}),m=oo({window:r}),v=U(()=>m.value?"dark":"light"),g=c||(null==i?function(...e){if(1!==e.length)return N(...e);const t=e[0];return"function"==typeof t?R(z(()=>({get:t,set:Nn}))):f(t)}(o):no(i,o,a,{window:r,listenToStorageChanges:l})),b=U(()=>"auto"===g.value?v.value:g.value),y=Xn("updateHTMLAttrs",(e,t,n)=>{const o="string"==typeof e?null==r?void 0:r.document.querySelector(e):qn(e);if(!o)return;let a;if(u){a=r.document.createElement("style");const e="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";a.appendChild(document.createTextNode(e)),r.document.head.appendChild(a)}if("class"===t){const e=n.split(/\s/g);Object.values(p).flatMap(e=>(e||"").split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?o.classList.add(t):o.classList.remove(t)})}else o.setAttribute(t,n);u&&(r.getComputedStyle(a).opacity,document.head.removeChild(a))});function w(e){var o;y(t,n,null!=(o=p[e])?o:e)}function E(t){e.onChanged?e.onChanged(t,w):w(t)}h(b,E,{flush:"post",immediate:!0}),Bn(()=>E(b.value));const k=U({get:()=>d?g.value:b.value,set(e){g.value=e}});try{return Object.assign(k,{store:g,system:v,state:b})}catch(_){return k}}function ao(e={}){const{valueDark:t="dark",valueLight:n="",window:o=Un}=e,r=ro(c(s({},e),{onChanged:(t,n)=>{var o;e.onChanged?null==(o=e.onChanged)||o.call(e,"dark"===t,n,t):n(t)},modes:{dark:t,light:n}})),a=U(()=>{if(r.system)return r.system.value;return oo({window:o}).value?"dark":"light"});return U({get:()=>"dark"===r.value,set(e){const t=e?"dark":"light";a.value===t?r.value="auto":r.value=t}})}const io={class:"ai_drawer"},lo={class:"drawer-header"},so={class:"header-left"},co={class:"session-list"},uo=["onClick"],po={class:"session-item-content"},mo={class:"session-item-left"},fo={class:"session-info"},ho={class:"session-title"},vo={class:"session-date"},go={key:0,class:"empty-sessions"},bo={class:"model-selector"},yo={class:"model-popover"},wo={class:"popover-title"},Eo={class:"flex items-center"},ko={class:"model-popover"},_o={class:"popover-title"},So={class:"messages-container"},xo={key:0,class:"load-more-wrapper"},Lo={class:"message-avatar"},Co={key:0,class:"avatar-img",src:Dn,alt:"AI"},Ao=["src"],Mo={class:"message-bubble"},To={class:"message-content px-2"},Do={class:"message-actions"},Oo={key:1,class:"empty-messages"},Ho={class:"chat-footer"},Io={class:"input-container"},Po={class:"empty-state-content"},jo=m({__name:"AIDrawer",setup(e){const t=W(),n=f(!1),o=f("4px"),r=f(null),a=U(()=>t.getters["user/getAvatar"]),i=f(),l=f();f({rags:[]});let s=!1;const c=()=>{n.value=!n.value,n.value?(s||Y(),r.value?o.value=r.value:o.value="70%"):o.value="4px"},d=f([]),u=f("0"),p=f(""),m=f([]),h=()=>{A(()=>{l.value.scrollTop=l.value.scrollHeight-l.value.offsetHeight})},v=e=>{((e,t)=>At.post(`/utils/ai/session/${e}/message/${t}/delete/`))(i.value,e.id).then(t=>{200===t.code&&(m.value=m.value.filter(t=>t.id!=e.id&&t.id!=e.id-1),vt.success({message:"删除完成。"}))})},g=()=>{t.getters["user/isVip"]||"1"!=u.value?Rt(i.value,{category:parseInt(u.value)}).then(e=>{200===e.code&&(d.value.find(e=>e.id==i.value).category=parseInt(u.value),vt.success({message:"模型切换完成。"}))}):(vt.warning({message:"该服务仅会员可用。"}),u.value="0")},E=()=>{At.post("/utils/ai/session/new/").then(e=>{200===e.code&&(i.value=e.data.sid,V.value=!1,q(),B())})},T=f(!1),O=On(()=>{if(i.value&&!T.value){T.value=!0;let e=null;const t=()=>{((e,t)=>At.get(`/utils/ai/session/${e}/message/${t}/content/`))(i.value,m.value.at(-1).id).then(t=>{m.value.at(-1).content=t.data.content,m.value.at(-1).loading=!1,1===t.data.finish&&(T.value=!1,clearInterval(e))})};m.value.push({role:0,content:p.value,loading:!1}),m.value.push({role:1,content:"内容生成中",loading:!0}),((e,t)=>At.post(`/utils/ai/session/${e}/chat/`,{question:t}))(i.value,p.value).then(n=>{200===n.code?(p.value="",m.value.at(-2).id=n.data.qid,m.value.at(-1).id=n.data.rid,e=setInterval(t,1e3)):202===n.code?vt.warning({message:"请等待上一次对话完成。"}):203===n.code&&vt.warning({message:"金币不足。"})}),h()}else i.value||vt.warning({message:"请先发起或选择会话。"})}),N=e=>{(e=>At.post(`/utils/ai/session/${e}/delete/`))(e).then(t=>{200===t.code&&(vt.success({message:"会话已删除。"}),i.value==e&&(i.value=null),q())})},R=e=>{e.shiftKey||13!=e.keyCode||(e.cancelBubble=!0,e.stopPropagation(),e.preventDefault(),O())},z=e=>{Rt(i.value,{title:e}).then(e=>{200===e.code&&vt.success({message:"更改完成。"})})},V=f(!1),B=(e=!1)=>{if(i.value){let t=0;0!=m.value.length&&(t=m.value[0].id),((e,t)=>At.get(`/utils/ai/session/${e}/history/`,{mid:t}))(i.value,t).then(t=>{200===t.code&&(m.value=t.data.concat(m.value),0==t.data.length&&(V.value=!0),e&&h())})}},q=()=>{At.get("/utils/ai/session/list/").then(e=>{200===e.code&&(d.value=e.data)})},{isSupported:F,copy:$}=Kn(),Y=()=>{s=!0,q()};return(e,t)=>{const r=Tn,s=I("font-awesome-icon"),f=je,h=Se,A=Ln,q=Me,U=He,W=Oe,Y=De,J=Sn,Z=Te,Q=wn,X=Pe,ee=Le,te=Ae,ne=Ce,oe=Ie;return w(),b("div",io,[S(r,{onChange:c,class:M(n.value?"hidden":"block"),rightSize:o.value,style:{"z-index":"9999"}},null,8,["class","rightSize"]),S(ne,{modelValue:n.value,"onUpdate:modelValue":t[4]||(t[4]=e=>n.value=e),direction:"rtl",size:"70%",onClose:c,resizable:"",class:"ai-drawer-wrapper"},{header:_(()=>[y("div",lo,[y("div",so,[S(s,{icon:["fas","robot"],class:"mr-2 text-blue-500"}),t[5]||(t[5]=y("span",{class:"text-lg font-bold"},"AI 助手",-1))]),d.value.length>0?(w(),k(f,{key:0,type:"info",size:"small"},{default:_(()=>[C(" 共 "+D(d.value.length)+" 个会话 ",1)]),_:1})):j("",!0)])]),default:_(()=>[y("div",null,[S(te,{class:"ai-drawer-content",gutter:20},{default:_(()=>[S(q,{span:6,class:"session-sidebar"},{default:_(()=>[S(h,{type:"primary",round:"",class:"w-full mb-3",onClick:E},{default:_(()=>[S(s,{icon:["fas","plus"],class:"mr-1"}),t[6]||(t[6]=C(" 新建会话 ",-1))]),_:1,__:[6]}),y("div",co,[(w(!0),b(x,null,L(d.value,e=>(w(),b("div",{key:e.id,class:M(["session-item",{"is-active":e.id==i.value}]),onClick:t=>(e=>{e.id!==i.value&&(i.value=e.id,u.value=["0","1"][e.category],V.value=!1,m.value=[],B(!0))})(e)},[y("div",po,[y("div",mo,[S(s,{icon:["fas","comments"],class:M(["session-icon",{"active-icon":e.id==i.value}])},null,8,["class"]),y("div",fo,[y("div",ho,[S(A,{modelValue:e.title,"onUpdate:modelValue":[t=>e.title=t,z]},null,8,["modelValue","onUpdate:modelValue"])]),y("div",vo,[S(s,{icon:["fas","clock"],class:"mr-1"}),C(" "+D(new Date(e.date).format("yyyy/MM/dd")),1)])])]),S(h,{circle:"",size:"small",type:"danger",plain:"",class:"session-delete-btn",onClick:G(t=>N(e.id),["stop"])},{default:_(()=>[S(s,{icon:["fas","trash"]})]),_:2},1032,["onClick"])])],10,uo))),128)),0===d.value.length?(w(),b("div",go,[S(s,{icon:["fas","inbox"],class:"empty-icon"}),t[7]||(t[7]=y("p",{class:"empty-text"},"暂无会话",-1)),t[8]||(t[8]=y("p",{class:"empty-hint"},"点击上方按钮创建新会话",-1))])):j("",!0)])]),_:1}),i.value?(w(),k(q,{key:0,span:18,class:"chat-main"},{default:_(()=>[y("div",bo,[S(Z,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=e=>u.value=e),onChange:g,size:"large"},{default:_(()=>[S(Y,{width:"300",placement:"bottom"},{reference:_(()=>[S(U,{label:"0"},{default:_(()=>[S(s,{icon:["fas","lightbulb"],class:"mr-1"}),t[9]||(t[9]=C(" ERNIE-3.5 ",-1))]),_:1,__:[9]})]),default:_(()=>[y("div",yo,[y("div",wo,[S(s,{icon:["fas","check-circle"],class:"mr-1 text-green-500"}),t[10]||(t[10]=C(" 所有人可用 ",-1))]),S(W,{class:"my-2"}),t[11]||(t[11]=y("div",{class:"popover-content"},[C(" 满足日常需求的模型"),y("br"),C(" 非会员用户每次对话4金币,会员免费。 ")],-1))])]),_:1}),S(Y,{width:"300",placement:"bottom"},{reference:_(()=>[y("div",Eo,[S(U,{label:"1"},{default:_(()=>[S(s,{icon:["fas","wand-magic-sparkles"],class:"mr-1"}),t[12]||(t[12]=C(" ERNIE-4 Turbo ",-1))]),_:1,__:[12]}),S(J,{class:"-ml-4 z-50"})])]),default:_(()=>[y("div",ko,[y("div",_o,[S(s,{icon:["fas","crown"],class:"mr-1 text-yellow-500"}),t[13]||(t[13]=C(" 会员专享 ",-1)),S(J,{class:"ml-1"})]),S(W,{class:"my-2"}),t[14]||(t[14]=y("div",{class:"popover-content"},[C(" 效果全面的模型"),y("br"),C(" 每3小时100次问答 ")],-1))])]),_:1})]),_:1},8,["modelValue"])]),y("main",{ref_key:"windowRef",ref:l,class:"chat-messages"},[y("div",So,[V.value?j("",!0):(w(),b("div",xo,[S(h,{type:"success",round:"",onClick:t[1]||(t[1]=e=>B(!1))},{default:_(()=>[S(s,{icon:["fas","arrow-up"],class:"mr-1"}),t[15]||(t[15]=C(" 加载更多 ",-1))]),_:1,__:[15]})])),(w(!0),b(x,null,L(m.value,(e,t)=>(w(),b("div",{key:t,class:"message-wrapper"},[y("div",{class:M(["message-item",{"is-user":0==e.role,"is-ai":1==e.role}])},[y("div",Lo,[1==e.role?(w(),b("img",Co)):(w(),b("img",{key:1,class:"avatar-img",src:a.value,alt:"User"},null,8,Ao))]),K((w(),b("div",Mo,[y("div",To,[S(Q,{content:e.content||""},null,8,["content"])]),y("div",Do,[1==e.role?(w(),k(X,{key:0,content:"复制原文(Markdown)"},{default:_(()=>[S(h,{circle:"",size:"small",plain:"",class:"action-btn",onClick:t=>(e=>{F?($(e.content+"\n\n- 由NSSCTF AI智能助手生成,无法确保真实准确,仅供参考。"),vt.success({message:"已复制至剪贴板。"})):vt.warning({message:"当前环境不支持写入剪贴板,请手动选取。"})})(e)},{default:_(()=>[S(s,{icon:["fas","copy"]})]),_:2},1032,["onClick"])]),_:2},1024)):j("",!0),1==e.role?(w(),k(X,{key:1,content:"删除该对话"},{default:_(()=>[S(h,{circle:"",size:"small",plain:"",type:"danger",class:"action-btn",onClick:t=>v(e)},{default:_(()=>[S(s,{icon:["fas","trash"]})]),_:2},1032,["onClick"])]),_:2},1024)):j("",!0)])])),[[oe,e.loading]])],2)]))),128)),0===m.value.length?(w(),b("div",Oo,[S(s,{icon:["fas","comments"],class:"empty-icon"}),t[16]||(t[16]=y("p",{class:"empty-text"},"开始你的对话吧",-1)),t[17]||(t[17]=y("p",{class:"empty-hint"},"在下方输入框中输入问题,AI 助手将为你解答",-1))])):j("",!0)])],512),y("footer",Ho,[y("div",Io,[S(h,{circle:"",size:"large",onClick:t[2]||(t[2]=e=>p.value=""),disabled:!p.value},{default:_(()=>[S(s,{icon:["fas","xmark"]})]),_:1},8,["disabled"]),S(ee,{onKeydown:P(R,["enter"]),type:"textarea",modelValue:p.value,"onUpdate:modelValue":t[3]||(t[3]=e=>p.value=e),placeholder:"在此输入任何问题 (Shift + Enter = 换行)",autosize:{minRows:2,maxRows:6},class:"message-input"},null,8,["modelValue"]),S(h,{disabled:0==p.value.length||T.value,type:"primary",size:"large",round:"",class:"send-button",onClick:H(O),loading:T.value},{default:_(()=>[S(s,{icon:["fas","arrow-right"],class:"mr-1"}),t[18]||(t[18]=C(" 发送 ",-1))]),_:1,__:[18]},8,["disabled","onClick","loading"])])])]),_:1})):(w(),k(q,{key:1,span:18,class:"chat-empty-state"},{default:_(()=>[y("div",Po,[S(s,{icon:["fas","robot"],class:"empty-state-icon"}),t[20]||(t[20]=y("h3",{class:"empty-state-title"},"选择一个会话开始对话",-1)),t[21]||(t[21]=y("p",{class:"empty-state-hint"},"或点击左侧按钮创建新会话",-1)),S(h,{type:"primary",round:"",onClick:E},{default:_(()=>[S(s,{icon:["fas","plus"],class:"mr-1"}),t[19]||(t[19]=C(" 创建新会话 ",-1))]),_:1,__:[19]})])]),_:1}))]),_:1})])]),_:1},8,["modelValue"])])}}}),No=m({__name:"shrinkView",props:{unFoldText:{type:String,default:"收起"},foldText:{type:String,default:"展开"}},emits:["change"],setup(e,{emit:t}){const n=t;let o=f({contentHeight:0,isOpen:!1}),r=f(null);const a=()=>{A(()=>{o.value.contentHeight=r?r.value.scrollHeight:100})};Y(()=>{a()}),v(()=>{a()});const i=()=>{o.value.isOpen=!o.value.isOpen,n("change",o.value.isOpen)};return(t,n)=>{const a=Ne;return w(),b("div",null,[y("div",{ref_key:"coRef",ref:r,class:"shrink-view",style:O({maxHeight:(H(o).isOpen?H(o).contentHeight:0)+"px"})},[J(t.$slots,"default")],4),y("div",{onClick:i,style:{"text-align":"center",padding:"5px 0 5px 0",cursor:"pointer"}},[H(o).isOpen?(w(),k(a,{key:0},{default:_(()=>[S(H(Re))]),_:1})):(w(),k(a,{key:1},{default:_(()=>[S(H(ze))]),_:1})),C(" "+D(H(o).isOpen?e.unFoldText:e.foldText),1)])])}}}),Ro="/images/2024cb-DzEWIUMp.png";Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};const zo={class:"achievement-badge"},Vo={class:"relative w-96 h-96 mx-auto"},Bo=["src"],qo={class:"text-white text-4xl mx-auto text-center mt-4"},Uo={class:"text-white mx-auto text-center text-xl mt-2"},Fo={class:"text-center text-white text-lg mt-2"},$o=m({__name:"AchievementBadge",props:["badge","title","desc","date","size","text"],setup(e){const t=e,n=f(!1),o=f(),r=f([{display:"none"},{top:"17.5px",fontSize:"1.5px",textAlign:"center",width:"16px",left:"10px"},{top:"16px",fontSize:"1.5px",textAlign:"center",width:"9.5px",left:"15.5px",transform:"rotate(-26deg)"}]),a=f([{display:"none"},{top:"245px",fontSize:"21px",textAlign:"center",width:"170px",left:"175px"},{top:"214px",fontSize:"21px",textAlign:"center",width:"119px",left:"227px",transform:"rotate(-26deg)"}]),i=f(0),l=f(Ro),s={2025:["/images/m1-C_sLMj-p.png","/images/m2-CJVX3Mur.png","/images/m3-C2TWhCd5.png","/images/m4-DMNOxtDP.png","/images/m5-owi-Ea7a.png","/images/m6-B7aXrVhm.png","/images/m7-Bjorsgqk.png","/images/m8-B0mLczRd.png","/images/m9-DlZBbQWk.png","/images/m10-BnZ2sfoj.png","/images/m11-DT4Uk9x6.png","/images/m12-COWLPe4C.png"],2026:["/images/m1-DbTY8VNV.png","/images/m2-D20j4ZWd.png","/images/m3-DFyNeMfx.png","/images/m4-CGBxB-0V.png","/images/m5-QhuCVztX.png","/images/m6-BV7s0JGL.png","/images/m7-CdN0WozQ.png","/images/m8-BtTKWoIx.png","/images/m9-CpAK672W.png","/images/m10-CEfyvwbI.png","/images/m11-BZ12v5oP.png","/images/m12-Bpti8xUi.png"]},c=U(()=>{let[e,n]=t.badge.split("/");return n.startsWith("m")&&(n=n.slice(1)),s[e][parseInt(n)-1]}),d=()=>{n.value=!n.value};return(()=>{switch(t.badge){case"JL2023":l.value="/images/2023jl-DJr3GWro.png",i.value=0;break;case"JL2024":l.value="/images/2024jl-DKPqeI9y.png",i.value=0;break;case"CB2024":l.value=Ro,i.value=1;break;case"CB2023":l.value="/images/2023cb-Bx_0Mulp.png",i.value=2;break;default:l.value=c.value,i.value=0}})(),(t,s)=>{const c=Ve,u=Pe;return w(),b("div",zo,[S(u,{content:e.title},{default:_(()=>[y("div",{class:M(["relative cursor-pointer",[`w-${e.size}`,`h-${e.size}`]]),onClick:d},[S(c,{class:M([`w-${e.size}`,`h-${e.size}`]),src:l.value},null,8,["class","src"]),y("div",{style:O(r.value[i.value]),class:"absolute text-gray-700"},D(e.text),5)],2)]),_:1},8,["content"]),n.value?(w(),b("div",{key:0,class:"modal",onClick:s[0]||(s[0]=e=>n.value=!1)},[y("div",Vo,[y("img",{class:"modal-image mt-64 mx-auto brightness-110 saturate-[1.1]",src:l.value},null,8,Bo),y("div",{ref_key:"modalText",ref:o,style:O(a.value[i.value]),class:"absolute text-gray-700 modal-text"},D(e.text),5),y("div",qo,D(e.title),1),y("div",Uo,D(e.desc),1),y("div",Fo,D(new Date(1e3*e.date).format("yyyy/MM/dd")),1)])])):j("",!0)])}}}),Wo=e=>At.post("/user/login/",e),Go=()=>At.post("/user/logout/"),Ko=()=>At.get("/user/info/"),Yo=e=>At.get(`/user/${e}/info/rating/`),Jo=e=>At.get(`/user/info/${e}/`),Zo=(e,t)=>At.get(`/user/${e}/info/active/${t}/`),Qo=(e,t=1,n=20,o=!1)=>At.post(o?`/user/team/ranklist/${t}/${n}/`:`/user/ranklist/${t}/${n}/`,e),Xo=()=>At.get("/user/ranklist/top10/"),er=()=>At.get("/user/info/opt/setting/"),tr=e=>At.get(`/user/statistics/rank/${e}/`),nr=e=>At.get(`/user/statistics/solve/${e}/`),or=(e,t)=>At.get(`/user/statistics/solves/${e}/`,t),rr=e=>At.get(`/user/follow/${e}/state/`),ar=e=>At.post("/user/register/check/",{code:e}),ir=e=>At.post("/user/register/active/",e),lr=e=>At.post("/user/register/verify/",e),sr=e=>At.post("/user/emailedit/send/",e),cr=e=>At.post("/user/emailedit/submit/",e),dr=e=>At.post("/user/phoneedit/send/",e),ur=e=>At.post("/user/phoneedit/submit/",e),pr=e=>At.post("/user/phonebind/send/",e),mr=e=>At.post("/user/phonebind/submit/",e),fr=e=>At.post("/user/avatar/update/",e),hr=e=>At.post("/user/cover/update/",e),vr=e=>At.put("/user/info/opt/update/",e),gr=e=>At.put(`/user/follow/${e}/`),br=e=>At.put(`/user/unfollow/${e}/`),yr=e=>At.post("/user/forgotpass/send/",e),wr=e=>At.post("/user/forgotpass/submit/",e),Er=()=>At.get("/user/team/rule/"),kr=()=>At.get("/user/team/setting/info/"),_r=e=>At.put("/user/team/setting/update/",e),Sr=e=>At.post("/user/team/admin/title/change/",{title:e}),xr=(e,t)=>At.get(`/user/team/apply/list/${e}/${t}/`),Lr=e=>At.post(`/user/team/apply/${e}/agree/`),Cr=e=>At.post(`/user/team/apply/${e}/deny/`),Ar=(e,t=20)=>At.get(`/user/team/admin/userlist/${e}/${t}/`),Mr=e=>At.post("/user/password/update/",e),Tr=e=>At.get(`/user/${e}/following/`),Dr=e=>At.get(`/user/${e}/follower/`),Or=()=>At.get("/user/about/thanks/"),Hr=(e,t)=>At.get(`/user/info/message/list/${e}/${t}/`),Ir=e=>At.get(`/user/info/message/${e}/content/`),Pr=(e,t)=>At.get(`/user/${e}/article/list/${t}/`),jr=e=>At.post(`/user/team/admin/${e}/role/up/`),Nr=e=>At.post(`/user/team/admin/${e}/role/down/`),Rr=e=>At.post(`/user/team/admin/${e}/role/transmit/`),zr=e=>At.post(`/user/team/admin/${e}/role/remove/`),Vr=(e,t)=>At.post(`/user/team/admin/${e}/set/alias/`,{alias:t}),Br=e=>At.post("/user/search/name/",{name:e}),qr=()=>At.get("/user/honor/"),Ur=(e="rating",t=!1)=>At.get(t?`/user/team/info/rank/${e}/`:`/user/info/rank/${e}/`),Fr=(e,t=10)=>At.get(`/user/picturebed/list/${e}/${t}/`),$r=e=>At.post("/user/picturebed/upload/",e),Wr=e=>require("axios")({method:"post",withCredentials:!0,url:`/api/user/picturebed/${e}/download/`,data:{},responseType:"blob"}),Gr=e=>At.post(`/user/picturebed/${e}/delete/`),Kr=()=>At.get("/user/picturebed/used/"),Yr=(e,t=10)=>At.get(`/user/fileshare/list/${e}/${t}/`),Jr=e=>At.post("/user/fileshare/upload/",e),Zr=e=>At.get(`/user/fileshare/${e}/info/`),Qr=(e,t)=>At.get(`/user/fileshare/${e}/item/${t}/info/`),Xr=(e,t)=>At.get(`/user/fileshare/${e}/item/${t}/comments/`),ea=(e,t=10)=>At.get(`/user/files/list/${e}/${t}/`),ta=()=>At.get("/user/api/info/"),na=()=>At.post("/user/api/apply/"),oa=()=>At.post("/user/api/refresh/"),ra=e=>At.post("/user/pay/create/v2/",e),aa=()=>At.get("/user/pay/discount/status/"),ia=e=>At.get(`/user/pay/${e}/status/`),la=e=>At.get(`/user/pay/list/${e}/`),sa=e=>At.post(`/user/pay/${e}/repay/`),ca=e=>At.get(`/user/pay/log/list/${e}/`),da=e=>At.post("/user/pay/coin/change/",{amount:e}),ua=()=>At.get("/user/info/self/activation/"),pa=e=>At.post("/user/admin/notice/send/",e),ma=(e,t,n)=>At.post("/user/pay/vip/create/v2/",{category:e,index:t,type:n}),fa=e=>At.post("/user/student/submit/",{vcode:e}),ha=()=>At.put("/user/info/refresh/"),va=()=>At.get("/user/student/state/"),ga=()=>At.get("/user/my/teams/"),ba=e=>At.post("/user/team/change/",{tid:e}),ya=()=>At.get("/user/info/today/"),wa=e=>({"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]||"object"),Ea=e=>"array"===wa(e);function ka(e){const t=wa(e);if("array"===t)return e.map(e=>ka(e));if("object"===t&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ka(e[n]));return t}return e}const _a=()=>null!==navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i),Sa=e=>e%4==0&&e%100!=0||e%400==0,xa=e=>{const t=document.createElement("input");t.setAttribute("value",e),document.body.appendChild(t),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n},La=()=>{const e=(new Date).getHours();return e>=0&&e<=5?"凌晨好":e>5&&e<=10?"早上好":e>10&&e<=14?"中午好":e>14&&e<=18?"下午好":"晚上好"},Ca=(e,t)=>{const n=Math.round((e-t)/1e3/60);return n<=0?"现在":n<60?`${n}分钟前`:n<1440?`${Math.round(n/60)}小时前`:n<43200?`${Math.round(n/60/24)}天前`:n<518400?`${Math.round(n/60/24/30)}月前`:`${Math.round(n/60/24/30/12)}年前`},Aa=e=>e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(2)}K`:`${(e/1048576).toFixed(2)}M`,Ma=(e,t="yyyy-MM-dd hh:mm:ss")=>new Date(e).format(t),Ta=e=>{const t=e.target;t&&(t.src=new URL("/images/default-BLXpmCH4.jpg",import.meta.url).href)},Da="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1652180328178'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2827'%20width='32'%20height='32'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M878.567%20781.167L737.734%20515.66c4.968-7.802%209.525-15.792%2013.731-23.726l1.464-3.229c5.228-10.707%209.525-21.33%2012.736-31.6l2.192-8.765h-0.027c7.771-26.296%2011.685-52.11%2011.685-76.858%200-150.17-119.327-272.332-266.033-272.332-146.706%200-266.006%20122.162-266.006%20272.332%200%2049.964%2013.353%2098.728%2038.686%20141.285l-143.405%20268.4c-5.054%209.452-4.12%2021.022%202.337%2029.498%206.427%208.414%2017.765%2012.328%2027.817%209.64l111.555-29.8%2041.432%20116.463c3.506%209.993%2012.564%2017.006%2023.141%2017.823l1.928%200.059c9.76%200%2018.758-5.433%2023.374-14.14l136.305-255.064L646.95%20910.71c4.734%208.764%2013.674%2014.14%2023.434%2014.14l2.045-0.059c10.43-0.817%2019.46-7.83%2022.963-17.823l41.404-116.463%20111.586%2029.8c2.221%200.586%204.47%200.878%206.719%200.878%208.327%200%2016.013-3.8%2021.095-10.518%206.491-8.476%207.396-20.103%202.371-29.498m-556.964-221.27c37.254%2039.679%2085.523%2067.085%20137.766%2078.189l-103.55%20193.791-29.512-83.083c-3.797-10.723-13.85-17.88-25.011-17.88-2.338%200-4.617%200.32-6.806%200.904l-75.472%2020.191%20102.585-192.111z%20m397.342-132.082c-1.842%206.91-4.06%2013.732-6.808%2021.153-2.542%206.823-5.405%2013.412-8.532%2019.869l-2.483%205.537c-15.077%2029.862-46.663%2078.423-101.797%20105.012l-2.484%201.315c-6.808%202.54-12.74%204.381-17.59%205.463-14.815%203.216-30.943%203.476-50.461%203.476l-15.31-0.028c-117.341%200-212.769-97.823-212.769-218.13%200-120.278%2095.428-218.145%20212.77-218.145%20117.31%200%20212.768%2097.867%20212.768%20218.145a220.613%20220.613%200%200%201-7.304%2056.333M662.29%20599.867c0.468-0.352%202.953-2.308%206.955-5.755l3.243-0.408%200.993-3.274c7.306-6.514%2017.357-16.07%2028.371-28.197L802.393%20752.01l-75.56-20.19c-13.118-3.566-27.26%204.09-31.816%2016.975l-29.54%2083.083-102.763-192.214c39.884-5.696%2077.429-20.599%2099.576-39.796'%20fill='%23f2b45a'%20p-id='2828'%3e%3c/path%3e%3cpath%20d='M616.858%20311.54h-64.49v151.424h36.291v-51.102h26.296c46.633-0.598%2056.86-28.24%2057.21-51.995-1.37-21.008-12.065-46.427-55.307-48.327m-28.199%2031.993h23.435c19.545%200.453%2022.702%209.336%2023.141%2017.328-0.205%209.175-3.1%2018.597-22.938%2018.991h-23.639v-36.319zM502.086%20311.54H464.54l-1.841%205.142c-18.759%2053.235-28.927%2082.396-34.537%2098.524-6.895-18.903-18.874-51.876-35.793-98.582l-1.811-5.084h-38.95l59.606%20151.454h33.34l57.53-146.195v146.195h35.647V311.54h-35.645z'%20fill='%23f2b45a'%20p-id='2829'%3e%3c/path%3e%3c/svg%3e",Oa={components:{vip:Sn,shrinkView:No},props:{name:String,uid:Number,rating:Number,avatar:{type:String,default:null},card:{type:Boolean,default:!0,required:!1},link:{type:Boolean,default:!0,required:!1},border:{type:Boolean,default:!1},vip:{type:Boolean,default:!1},size:{type:String,default:"middle"}},setup(e,t){T();const n=U(()=>_a()),o=E({uid:0,cover:"",tavatar:"",coverHeight:120,bio:"",team:"",intro:"",following:0,followers:0,school:"",solves:0,solveRank:0,rating:1001,badges:[],ratingRank:0,isLoading:!0});let r=Q("ec"),a=null;g(()=>{a&&r.dispose(a)});const i=()=>{var t;(t=o.uid,At.get(`/user/${t}/info/active/month/`)).then(t=>{if(200===t.code){let n=new Date(t.data.start_date),i=new Date(t.data.ends_date),l=t.data.count||[],s={title:{top:30,left:"center",textStyle:{color:"#000"}},tooltip:{trigger:"item",formatter:e=>new Date(e.data[0]).format("yyyy-MM-dd")+"<br>解题数:"+e.data[1]},calendar:[{top:100,left:"center",range:[n.format("yyyy-MM-dd"),i.format("yyyy-MM-dd")],splitLine:{show:!0,lineStyle:{color:"#D3D3D3",width:2,type:"solid"}},yearLabel:{show:!1},dayLabel:{nameMap:["周日","","周二","","周四","","周六"],textStyle:{color:"#000"}},monthLabel:{nameMap:"cn",textStyle:{color:"#000"}},itemStyle:{normal:{color:"#ffffff",borderWidth:1,borderColor:"#D3D3D3"}}}],series:[{name:"解题数",type:"scatter",coordinateSystem:"calendar",data:l,symbol:"rect",symbolSize:18,itemStyle:{normal:{color:e=>{let t=["#9be9a8","#40c463","#30a14e","#216e39"];return 0==e.data[1]?"":e.data[1]<12?t[Math.round(e.data[1]/3)]:"#216e39"}}}}]};A(()=>{const t=document.getElementById("activeInfo"+(e.uid?e.uid:e.name));t&&(a=r.init(t)),a.setOption(s,!0),A(()=>{o.isLoading=!1})})}})};let l=!1;return c(s({},Z(o)),{vipSvg:Da,isMobile:n,calcStyle:()=>e.rating?0<=e.rating&&e.rating<900?"username_cadet":900<=e.rating&&e.rating<1100?"username_seaman":1100<=e.rating&&e.rating<1500?"username_helmsman":1500<=e.rating&&e.rating<1800?"username_bosun":1800<=e.rating&&e.rating<2100?"username_3rd_officer":2100<=e.rating&&e.rating<2300?"username_2nd_officer":2300<=e.rating&&e.rating<2500?"username_2nd_officer_p":2500<=e.rating&&e.rating<2700||2700<=e.rating&&e.rating<3e3?"username_chief_officer":3e3<=e.rating?"username_captain":void 0:"username_onshore",handleFoldChange:e=>{l||void 0!==e&&!0!==e||(i(),l=!0)},setDefaultAvatar:e=>{e.target.src=new URL("/images/default-BLXpmCH4.jpg",import.meta.url).href},handlePopoverBeforeEnter:()=>{var t;o.isLoading&&(t=e.name||e.uid,At.get(`/user/info/${t}/b/`)).then(e=>{o.uid=e.data.uid,o.tavatar=e.data.avatar,o.cover=e.data.cover||"",o.bio=e.data.bio||"",o.school=e.data.school||"",o.badges=e.data.badges||[];let t=new Image;e.data.cover&&(t.src=o.cover,t.onload=()=>{const e=t.width,n=t.height;o.coverHeight=Math.min(200,Math.round(420/(e/n))),o.coverHeight=Math.max(o.coverHeight,90)}),o.followers=e.data.followers||0,o.following=e.data.following||0,o.solves=e.data.solves||0,o.rating=e.data.rating||1001,o.ratingRank=e.data.rating_rank||0,o.isLoading=!1})},handleStatClick:e=>{}})}},Ha=["src"],Ia={style:{"margin-left":"4px"}},Pa={key:1,title:"VIP用户",style:{"margin-left":"3px"}},ja={key:0,class:"user-card-skeleton"},Na={class:"skeleton-content"},Ra={class:"skeleton-stats"},za={key:1,class:"user-card-content"},Va={class:"user-info-header"},Ba={class:"user-avatar-wrapper"},qa=["src"],Ua=["src"],Fa={class:"user-name-section"},$a={key:0,class:"flex"},Wa={class:"school-badge"},Ga={key:0,class:"achievement-badges"},Ka={class:"user-content"},Ya={class:"user-stats"},Ja={class:"stat-icon"},Za={class:"stat-content"},Qa={class:"stat-value"},Xa={class:"stat-icon"},ei={class:"stat-content"},ti={class:"stat-value"},ni={class:"stat-icon"},oi={class:"stat-content"},ri={class:"stat-value"},ai={class:"stat-icon"},ii={class:"stat-content"},li={class:"stat-value"},si={class:"stat-rank"},ci={class:"user-bio"},di={class:"bio-header"},ui={class:"activity-chart-wrapper"},pi=["id"],mi=["src"],fi={style:{"margin-left":"4px"}},hi=["src"],vi={style:{"margin-left":"4px"}};const gi=bn(Oa,[["render",function(e,t,n,o,r,a){const i=I("font-awesome-icon"),l=I("router-link"),s=$o,c=No,d=De,u=Sn;return n.card?(w(),k(d,{key:0,trigger:"click",width:o.isMobile?"90vw":400,"popper-class":"user-poper-card",onBeforeEnter:o.handlePopoverBeforeEnter},{reference:_(()=>[y("span",{class:M([o.calcStyle(),n.border?"nss-username-border":""]),style:{display:"flex","align-items":"center",cursor:"pointer"}},[null!=n.avatar?(w(),b("img",{key:0,onError:t[0]||(t[0]=(...e)=>o.setDefaultAvatar&&o.setDefaultAvatar(...e)),class:M([`user-${n.size}`,"rounded-full"]),src:n.avatar},null,42,Ha)):j("",!0),y("div",Ia,D(n.name),1),n.vip?(w(),b("div",Pa,t[8]||(t[8]=[y("svg",{t:"1696321150297",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1296",width:"16",height:"16"},[y("path",{d:"M1023.653099 71.686692 656.984069 71.297836 293.587572 496.262574 293.587572 144.923694 293.587572 138.338718 293.587572 71.686692 0.346901 71.686692 0.346901 144.923694 73.731258 144.923694 73.731258 952.702164 293.587572 952.702164 293.587572 952.700117Z",fill:"#f2b45a","p-id":"1297"})],-1)]))):j("",!0)],2)]),default:_(()=>[e.isLoading?(w(),b("div",ja,[t[12]||(t[12]=y("div",{class:"skeleton-cover"},null,-1)),y("div",Na,[t[9]||(t[9]=y("div",{class:"skeleton-avatar"},null,-1)),t[10]||(t[10]=y("div",{class:"skeleton-info"},[y("div",{class:"skeleton-line skeleton-line-short"}),y("div",{class:"skeleton-line skeleton-line-medium"})],-1)),y("div",Ra,[(w(),b(x,null,L(4,e=>y("div",{class:"skeleton-stat-item",key:e})),64))]),t[11]||(t[11]=y("div",{class:"skeleton-bio"},[y("div",{class:"skeleton-line"}),y("div",{class:"skeleton-line skeleton-line-short"})],-1))])])):(w(),b("div",za,[y("div",{class:"user-cover-wrapper",style:O({height:`${e.coverHeight}px`})},[y("div",{class:"user-cover",style:O({backgroundImage:e.cover?`url('${e.cover}')`:"radial-gradient(circle at 5% 12%, #4286f4,#99CCCC, #61bbbb)",height:`${e.coverHeight}px`})},[t[13]||(t[13]=y("div",{class:"cover-overlay"},null,-1)),S(l,{to:`/user/${n.uid?n.uid:n.name}`,class:"user-info-link"},{default:_(()=>[y("div",Va,[y("div",Ba,[y("img",{class:"user-avatar",src:e.tavatar,onError:t[1]||(t[1]=(...e)=>o.setDefaultAvatar&&o.setDefaultAvatar(...e))},null,40,qa),n.vip?(w(),b("img",{key:0,src:o.vipSvg,class:"vip-badge-cover"},null,8,Ua)):j("",!0)]),y("div",Fa,[y("span",{class:M([o.calcStyle(),"user-name-text"])},D(n.name),3),e.school?(w(),b("div",$a,[y("div",Wa,[S(i,{icon:["fas","user-graduate"],class:"mr-1"}),C(" "+D(e.school),1)])])):j("",!0)])])]),_:1},8,["to"]),e.badges&&e.badges.length>0?(w(),b("div",Ga,[(w(!0),b(x,null,L(e.badges,e=>(w(),k(s,{key:e.cover,badge:e.cover,text:n.name,title:e.title,desc:e.desc,date:e.date,size:6},null,8,["badge","text","title","desc","date"]))),128))])):j("",!0)],4)],4),y("div",Ka,[y("div",Ya,[y("div",{class:"stat-item stat-hover",onClick:t[2]||(t[2]=e=>o.handleStatClick("following"))},[y("div",Ja,[S(i,{icon:["fas","user-plus"]})]),y("div",Za,[t[14]||(t[14]=y("span",{class:"stat-label"},"关注",-1)),y("span",Qa,D(e.following),1)])]),y("div",{class:"stat-item stat-hover",onClick:t[3]||(t[3]=e=>o.handleStatClick("followers"))},[y("div",Xa,[S(i,{icon:["fas","users"]})]),y("div",ei,[t[15]||(t[15]=y("span",{class:"stat-label"},"粉丝",-1)),y("span",ti,D(e.followers),1)])]),y("div",{class:"stat-item stat-hover",onClick:t[4]||(t[4]=e=>o.handleStatClick("solves"))},[y("div",ni,[S(i,{icon:["fas","check-circle"]})]),y("div",oi,[t[16]||(t[16]=y("span",{class:"stat-label"},"解题",-1)),y("span",ri,D(e.solves),1)])]),y("div",{class:"stat-item stat-hover",onClick:t[5]||(t[5]=e=>o.handleStatClick("rating"))},[y("div",ai,[S(i,{icon:["fas","trophy"]})]),y("div",ii,[t[17]||(t[17]=y("span",{class:"stat-label"},"等级分",-1)),y("span",li,[y("b",{class:M(o.calcStyle())},D(n.rating),3),y("span",si,"#"+D(e.ratingRank),1)])])])]),y("div",ci,[y("div",di,[S(i,{icon:["fas","user-circle"],class:"mr-2"}),t[18]||(t[18]=y("span",{class:"bio-title"},"个人简介",-1))]),y("div",{class:M(["bio-content",{"bio-empty":!e.bio}])},D(e.bio||"这个人很懒,什么都没有写..."),3),y("div",ui,[S(c,{onChange:o.handleFoldChange,"fold-text":"展开查看活跃度","un-fold-text":"收起"},{default:_(()=>[y("div",{id:"activeInfo"+(n.uid?n.uid:n.name),class:"activity-chart"},null,8,pi)]),_:1},8,["onChange"])])])])]))]),_:1},8,["width","onBeforeEnter"])):n.link?(w(),k(l,{key:1,to:`/user/${n.uid?n.uid:n.name}`},{default:_(()=>[y("span",{class:M([o.calcStyle(),n.border?"nss-username-border":""]),style:{display:"flex","align-items":"center"}},[null!=n.avatar?(w(),b("img",{key:0,class:M([`user-${n.size}`,"rounded-full"]),onError:t[6]||(t[6]=(...e)=>o.setDefaultAvatar&&o.setDefaultAvatar(...e)),src:n.avatar},null,42,mi)):j("",!0),y("div",fi,D(n.name),1),n.vip?(w(),k(u,{key:1})):j("",!0)],2)]),_:1},8,["to"])):(w(),b("span",{key:2,class:M([o.calcStyle(),n.border?"nss-username-border":""]),style:{display:"flex","align-items":"center"}},[null!=n.avatar?(w(),b("img",{key:0,class:M([`user-${n.size}`,"rounded-full"]),onError:t[7]||(t[7]=(...e)=>o.setDefaultAvatar&&o.setDefaultAvatar(...e)),src:n.avatar},null,42,hi)):j("",!0),y("div",vi,D(n.name),1),n.vip?(w(),k(u,{key:1})):j("",!0)],2))}],["__scopeId","data-v-ba40e985"]]),bi=bn(m({__name:"PlatformSwitch",props:{isArena:{type:Boolean,default:!1},showOnLeft:{type:Boolean,default:!0},arenaUrl:{default:void 0},ctfUrl:{default:void 0}},setup(e){const t=e,n=X(),o=U(()=>t.isArena),r=U(()=>t.showOnLeft?"platform-switch-left":""),a=e=>{var o;if(e&&!t.isArena){const e=t.arenaUrl||"https://arena.nssctf.cn";window.location.href=e}else if(!e&&t.isArena){const e=t.ctfUrl||"https://www.nssctf.cn",r=null==(o=document.cookie.match(/token=([^;]+)/))?void 0:o[1];if(r){const t="/arena"!==n.path?encodeURIComponent(n.path):"";window.location.href=`${e}?nss_token=${encodeURIComponent(r)}${t?`&redirect=${t}`:""}`}else window.location.href=e}};return(e,t)=>{const n=Pe;return w(),b("div",{class:M(["platform-switch-wrapper",r.value])},[y("div",{class:M(["platform-switch",{"switch-right":o.value}])},[S(n,{content:o.value?"点击切换到CTF平台":"正在使用CTF平台",placement:"bottom",effect:"dark"},{default:_(()=>[y("button",{class:M(["platform-switch-btn",{active:!o.value}]),onClick:t[0]||(t[0]=e=>a(!1))}," CTF ",2)]),_:1},8,["content"]),S(n,{content:o.value?"正在使用Arena竞技场":"点击切换到Arena竞技场",placement:"bottom",effect:"dark"},{default:_(()=>[y("button",{class:M(["platform-switch-btn",{active:o.value}]),onClick:t[1]||(t[1]=e=>a(!0))}," Arena ",2)]),_:1},8,["content"])],2)],2)}}}),[["__scopeId","data-v-997455b4"]]),yi=e=>0<=e&&e<900?"#a5a5a5":900<=e&&e<1100?"#388F47":1100<=e&&e<1500?"#008B8B":1500<=e&&e<1800?"#00BFFF":1800<=e&&e<2100?"#8B008B":2100<=e&&e<2300?"#DAA520":2300<=e&&e<2500?"#FF8C00":2500<=e&&e<2700||2700<=e&&e<3e3?"#ff0000":void 0,wi=e=>p(void 0,null,function*(){let t=e.replaceAll(/\(@problem:{(\d+)}\)/g,"(/problem/$1)").replaceAll(/\(@psheet:{(\d+)}\)/g,"(/problem/sheet/$1)").replaceAll(/\(@notebook:{(\d+)}\)/g,"(/note/set/$1)"),n=t.matchAll(/\[(.+?)\]\(@user:{(\d+)}\)/g);if(null===n)return t;let o=t.split(/\[.+?\]\(@user:{\d+?}\)/g);t=o[0];let r=1;for(let e of n){let n=yield Yo(e[2]);if(200===n.code){if(n.data.rating)if(n.data.rating<3e3){t+=`[$\\texttt{\\color{${yi(n.data.rating)}}{${e[1]}}}$](/user/${e[2]})`}else t+=`[$\\texttt{${e[1][0]}\\color{red}{${e[1].slice(1)}}}$](/user/${e[2]})`;else t+=`[${e[1]}](/user/${e[2]})`;t+=o[r++]}}return t});const Ei=/\s*,(?![^(]*\))\s*/g,ki=/\s+/g;function _i(e){let t=[""];return e.forEach(e=>{(e=e&&e.trim())&&(t=e.includes("&")?function(e,t){const n=[];return t.split(Ei).forEach(t=>{let o=function(e){let t=0;for(let n=0;n<e.length;++n)"&"===e[n]&&++t;return t}(t);if(!o)return void e.forEach(e=>{n.push((e&&e+" ")+t)});if(1===o)return void e.forEach(e=>{n.push(t.replace("&",e))});let r=[t];for(;o--;){const t=[];r.forEach(n=>{e.forEach(e=>{t.push(n.replace("&",e))})}),r=t}r.forEach(e=>n.push(e))}),n}(t,e):function(e,t){const n=[];return t.split(Ei).forEach(t=>{e.forEach(e=>{n.push((e&&e+" ")+t)})}),n}(t,e))}),t.join(", ").replace(ki," ")}const Si=/[A-Z]/g;function xi(e){return e.replace(Si,e=>"-"+e.toLowerCase())}function Li(e,t,n,o){if(!t)return"";const r=function(e,t,n){return"function"==typeof e?e({context:t.context,props:n}):e}(t,n,o);if(!r)return"";if("string"==typeof r)return`${e} {\n${r}\n}`;const a=Object.keys(r);if(0===a.length)return n.config.keepEmptyBlock?e+" {\n}":"";const i=e?[e+" {"]:[];return a.forEach(e=>{const t=r[e];"raw"!==e?(e=xi(e),null!=t&&i.push(` ${e}${function(e,t=" "){return"object"==typeof e&&null!==e?" {\n"+Object.entries(e).map(e=>t+` ${xi(e[0])}: ${e[1]};`).join("\n")+"\n"+t+"}":`: ${e};`}(t)}`)):i.push("\n"+t+"\n")}),e&&i.push("}"),i.join("\n")}function Ci(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))Ci(e,t,n);else if("function"==typeof e){const o=e(t);Array.isArray(o)?Ci(o,t,n):o&&n(o)}else e&&n(e)})}function Ai(e,t,n,o,r,a){const i=e.$;i&&"string"!=typeof i?"function"==typeof i?t.push(i({context:o.context,props:r})):(i.before&&i.before(o.context),i.$&&"string"!=typeof i.$?i.$&&t.push(i.$({context:o.context,props:r})):t.push(i.$)):t.push(i);const l=_i(t),s=Li(l,e.props,o,r);a&&s&&a.insertRule(s),!a&&s.length&&n.push(s),e.children&&Ci(e.children,{context:o.context,props:r},e=>{if("string"==typeof e){const t=Li(l,{raw:e},o,r);a?a.insertRule(t):n.push(t)}else Ai(e,t,n,o,r,a)}),t.pop(),i&&i.after&&i.after(o.context)}function Mi(e,t,n,o=!1){const r=[];return Ai(e,[],r,t,n,o?e.instance.__styleSheet:void 0),o?"":r.join("\n\n")}function Ti(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Di(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Oi(e){const t=e.getAttribute("mount-count");return null===t?null:Number(t)}function Hi(e,t){e.setAttribute("mount-count",String(t))}function Ii(e,t,n,o){const{els:r}=t;if(void 0===n)r.forEach(Ti),t.els=[];else{const e=Di(n);if(e&&r.includes(e)){const n=Oi(e);o?null===n||(n<=1?(Ti(e),t.els=r.filter(t=>t!==e)):Hi(e,n-1)):null!==n||(Ti(e),t.els=r.filter(t=>t!==e))}}}function Pi(e,t,n,o,r,a,i,l,s){if(i&&!s){if(void 0===n)return;const r=window.__cssrContext;return void(r[n]||(r[n]=!0,Mi(t,e,o,i)))}let c;const{els:d}=t;let u;if(void 0===n&&(u=t.render(o),n=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(u)),s)return void s(n,null!=u?u:t.render(o));const p=Di(n);if(l||null===p){if(c=null===p?function(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}(n):p,void 0===u&&(u=t.render(o)),c.textContent=u,null!==p)return;if(r){const e=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(c,e)}else document.head.appendChild(c);a&&Hi(c,1),function(e,t){e.push(t)}(d,c)}else{const e=Oi(p);a&&(null===e||Hi(p,e+1))}return null!=p?p:c}function ji(e){return Mi(this,this.instance,e)}function Ni(e={}){const{target:t,id:n,ssr:o,props:r,count:a=!1,head:i=!1,boost:l=!1,force:s=!1}=e;return Pi(this.instance,this,null!=n?n:t,r,i,a,l,s,o)}function Ri(e={}){const{id:t,target:n,delay:o=0,count:r=!1}=e;0===o?Ii(this.instance,this,null!=t?t:n,r):setTimeout(()=>Ii(this.instance,this,null!=t?t:n,r),o)}window&&(window.__cssrContext={});const zi=function(e,t,n,o){return{instance:e,$:t,props:n,children:o,els:[],render:ji,mount:Ni,unmount:Ri}};const{c:Vi}=function(e={}){let t=null;const n={c:(...e)=>function(e,t,n,o){return Array.isArray(t)?zi(e,{$:null},null,t):Array.isArray(n)?zi(e,t,null,n):Array.isArray(o)?zi(e,t,n,o):zi(e,t,n,null)}(n,...e),use:(e,...t)=>e.install(n,...t),find:Di,context:{},config:e,get __styleSheet(){if(!t){const e=document.createElement("style");return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}(),Bi=Vi(".xicon",{width:"1em",height:"1em",display:"inline-flex"},[Vi("svg",{width:"1em",height:"1em"}),Vi("svg:not([fill])",{fill:"currentColor"})]),qi={size:[String,Number],color:String,tag:String},Ui=Symbol("IconConfigInjection"),Fi=m({name:"Icon",props:qi,setup(e,{slots:t}){const n=Q(Ui,null),o=U(()=>{var t;const o=null!==(t=e.size)&&void 0!==t?t:null==n?void 0:n.size;if(void 0!==o)return"number"==typeof o||/^\d+$/.test(o)?`${o}px`:o}),r=U(()=>{const{color:t}=e;return void 0===t?n?n.color:void 0:t}),a=U(()=>{var t;const{tag:o}=e;return void 0===o?null!==(t=null==n?void 0:n.tag)&&void 0!==t?t:"span":o});return ee(()=>{Bi.mount({id:"xicons-icon"})}),()=>te(a.value,{class:"xicon",style:{color:r.value,fontSize:o.value}},[J(t,"default")])}}),$i={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Wi=[ne('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"></path><path d="M9 9h1"></path><path d="M9 13h6"></path><path d="M9 17h6"></path></g>',1)],Gi=m({name:"FileText",render:function(e,t){return w(),b("svg",$i,Wi)}}),Ki={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Yi=[y("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[y("path",{d:"M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2"}),y("path",{d:"M7 12h14l-3-3m0 6l3-3"})],-1)],Ji=m({name:"Logout",render:function(e,t){return w(),b("svg",Ki,Yi)}}),Zi={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Qi=[y("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[y("path",{d:"M12 3h.393a7.5 7.5 0 0 0 7.92 12.446A9 9 0 1 1 12 2.992z"}),y("path",{d:"M17 4a2 2 0 0 0 2 2a2 2 0 0 0-2 2a2 2 0 0 0-2-2a2 2 0 0 0 2-2"}),y("path",{d:"M19 11h2m-1-1v2"})],-1)],Xi=m({name:"MoonStars",render:function(e,t){return w(),b("svg",Zi,Qi)}}),el={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tl=[y("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],nl=m({name:"PlayerStop",render:function(e,t){return w(),b("svg",el,tl)}}),ol={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},rl=[y("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[y("circle",{cx:"12",cy:"12",r:"4"}),y("path",{d:"M3 12h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7l-.7.7m0 11.4l.7.7m-12.1-.7l-.7.7"})],-1)],al=m({name:"Sun",render:function(e,t){return w(),b("svg",ol,rl)}}),il={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ll=[y("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[y("path",{d:"M8 9l3 3l-3 3"}),y("path",{d:"M13 15h3"}),y("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"})],-1)],sl=m({name:"Terminal2",render:function(e,t){return w(),b("svg",il,ll)}}),cl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dl=[ne('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 5v2"></path><path d="M15 11v2"></path><path d="M15 17v2"></path><path d="M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4V7a2 2 0 0 1 2-2"></path></g>',1)],ul=m({name:"Ticket",render:function(e,t){return w(),b("svg",cl,dl)}}),pl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ml=[y("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 1.33.26 2.61.74 3.77l4.61-4.62a1 1 0 0 1 1.35-.06l2.6 2.19L14.58 10H14c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1s-1-.45-1-1v-.58l-3.94 3.93a.99.99 0 0 1-1.35.05l-2.59-2.19l-4.4 4.4A9.996 9.996 0 0 0 12 22h8c1.1 0 2-.9 2-2v-8zm-2.5 8.5c-.55 0-1-.45-1-1s.45-1 1-1s1 .45 1 1s-.45 1-1 1z",fill:"currentColor"},null,-1)],fl=m({name:"DataExplorationRound",render:function(e,t){return w(),b("svg",pl,ml)}}),hl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},vl=[y("path",{d:"M19.48 12.35c-1.57-4.08-7.16-4.3-5.81-10.23c.1-.44-.37-.78-.75-.55C9.29 3.71 6.68 8 8.87 13.62c.18.46-.36.89-.75.59c-1.81-1.37-2-3.34-1.84-4.75c.06-.52-.62-.77-.91-.34C4.69 10.16 4 11.84 4 14.37c.38 5.6 5.11 7.32 6.81 7.54c2.43.31 5.06-.14 6.95-1.87c2.08-1.93 2.84-5.01 1.72-7.69zm-9.28 5.03c1.44-.35 2.18-1.39 2.38-2.31c.33-1.43-.96-2.83-.09-5.09c.33 1.87 3.27 3.04 3.27 5.08c.08 2.53-2.66 4.7-5.56 2.32z",fill:"currentColor"},null,-1),y("path",{d:"M19.48 12.35c-1.57-4.08-7.16-4.3-5.81-10.23c.1-.44-.37-.78-.75-.55C9.29 3.71 6.68 8 8.87 13.62c.18.46-.36.89-.75.59c-1.81-1.37-2-3.34-1.84-4.75c.06-.52-.62-.77-.91-.34C4.69 10.16 4 11.84 4 14.37c.38 5.6 5.11 7.32 6.81 7.54c2.43.31 5.06-.14 6.95-1.87c2.08-1.93 2.84-5.01 1.72-7.69zm-9.28 5.03c1.44-.35 2.18-1.39 2.38-2.31c.33-1.43-.96-2.83-.09-5.09c.33 1.87 3.27 3.04 3.27 5.08c.08 2.53-2.66 4.7-5.56 2.32z",fill:"currentColor"},null,-1)],gl=m({name:"LocalFireDepartmentRound",render:function(e,t){return w(),b("svg",hl,vl)}}),bl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yl=[y("path",{d:"M10 8v6l4.7 2.9l.8-1.2l-4-2.4V8z",fill:"currentColor"},null,-1),y("path",{d:"M17.92 12A6.957 6.957 0 0 1 11 20c-3.9 0-7-3.1-7-7s3.1-7 7-7c.7 0 1.37.1 2 .29V4.23c-.64-.15-1.31-.23-2-.23c-5 0-9 4-9 9s4 9 9 9a8.963 8.963 0 0 0 8.94-10h-2.02z",fill:"currentColor"},null,-1),y("path",{d:"M20 5V2h-2v3h-3v2h3v3h2V7h3V5z",fill:"currentColor"},null,-1)],wl=m({name:"MoreTimeOutlined",render:function(e,t){return w(),b("svg",bl,yl)}}),El=e=>At.get(`/problem/v2/${e}/`),kl=e=>At.get(`/problem/${e}/note/info/`),_l=(e,t)=>At.post(`/problem/${e}/note/update/`,{content:t}),Sl=e=>At.get(`/problem/${e}/ai/summary/`),xl=e=>At.get(`/problem/${e}/llm/info/`),Ll=(e,t)=>At.get(`/problem/${e}/llm/message/${t}/content/`),Cl=(e,t)=>At.post(`/problem/${e}/llm/chat/`,{msg:t}),Al=()=>At.get("/problem/index/recent/"),Ml=()=>At.get("/problem/workshop/recommend/"),Tl=(e,t)=>At.get(`/problem/${e}/statistics/${t}/`),Dl=(e,t,n=0)=>At.get(0===n?`/problem/${e}/submit/log/${t}/`:`/problem/${e}/user/${n}/submit/log/${t}/`),Ol=(e,t,n=0)=>At.get(0===n?`/problem/${e}/llm/chat/log/${t}/`:`/problem/${e}/llm/user/${n}/chat/log/${t}/`),Hl=(e,t)=>At.get(`/problem/${e}/llm/session/${t}/history/`),Il=(e,t,n=0)=>At.get(n?`/problem/${e}/user/${n}/solve/log/${t}/`:`/problem/${e}/solve/log/${t}/`),Pl=e=>At.post(`/problem/${e}/llm/open/`),jl=e=>At.post(`/problem/${e}/llm/close/`),Nl=e=>At.get(`/problem/${e}/myrate/`),Rl=e=>At.post(`/problem/hint/buy/${e}/`),zl=(e,t)=>At.post(`/problem/cve/list/${e}/`,t),Vl=(e,t)=>At.get(`/problem/llm/list/${e}/`,t),Bl=(e,t)=>At.post(`/problem/submit/${e}/`,{flag:t}),ql=(e,t)=>At.post(`/problem/${e}/submit/code/`,t),Ul=(e,t)=>At.put(`/problem/${e}/myrate/edit/`,t),Fl=(e,t)=>At.post(`/problem/docker/${e}/open/`,{type:t}),$l=e=>At.post(`/problem/docker/${e}/close/`),Wl=e=>At.post(`/problem/docker/${e}/delay/`),Gl=e=>At.get(`/problem/docker/${e}/`),Kl=(e,t)=>At.put(`/problem/like/${e}/`,{state:t}),Yl=(e,t,n)=>At.get(`/problem/v2/${e}/comments/${t}/`,n),Jl=(e,t)=>At.post(`/problem/${e}/comment/`,t),Zl=()=>At.get("/problem/prize/info/"),Ql=()=>At.get("/problem/prize/solved/"),Xl=()=>At.get("/problem/prize/lastsolved/"),es=()=>At.post("/problem/prize/docker/open/"),ts=()=>At.post("/problem/prize/docker/close/"),ns=()=>At.post("/problem/prize/docker/delay/"),os=()=>At.get("/problem/prize/docker/info/"),rs=()=>At.get("/problem/v2/source/list/"),as=e=>At.post("/problem/prize/submit/",{flag:e}),is=(e,t)=>At.post(`/problem/${e}/upload/wp/`,t),ls=(e,t,n)=>At.get(`/problem/v2/${e}/wp/${t}/`,n),ss=e=>At.get(`/problem/${e}/version/`),cs=(e,t)=>At.post(`/problem/${e}/version/add/`,t),ds=(e,t)=>At.put(`/problem/${e}/version/${t}/agree/`),us=()=>At.get("/problem/filter/options/"),ps=(e,t,n)=>At.post(`/problem/sheet/list/${e}/${t}/`,n),ms=e=>At.get(`/problem/sheet/${e}/comments/`),fs=(e,t)=>At.post(`/problem/sheet/${e}/comment/`,t),hs=e=>At.get(`/problem/sheet/${e}/info/`),vs=e=>At.get(`/problem/sheet/${e}/setting/`),gs=e=>At.put(`/problem/sheet/${e}/star/`),bs=e=>At.put(`/problem/sheet/${e}/unstar/`),ys=(e,t,n=20)=>At.get(`/problem/sheet/${e}/problem/list/${t}/${n}/`),ws=e=>At.get(`/problem/sheet/${e}/problem/map/`),Es=e=>At.get(`/problem/sheet/${e}/problem/tree/`),ks=(e,t)=>At.post(`/problem/sheet/${e}/problem/position/update/`,{nodes:t}),_s=(e,t)=>At.post("/problem/sheet/problem/search/",{name:e,exts:t}),Ss=e=>At.post("/problem/sheet/problem/check/",{name:e}),xs=(e,t)=>At.post(`/problem/sheet/${e}/setting/problems/update/`,{problems:t}),Ls=(e,t)=>At.post(`/problem/sheet/${e}/setting/update/`,t),Cs=()=>At.get("/problem/sheet/my/info/"),As=e=>At.post("/problem/sheet/create/",e),Ms=(e,t)=>At.post(`/problem/sheet/${e}/password/check/`,{password:t}),Ts=(e=void 0,t=!1)=>At.get(t?"/problem/team/statistics/progress//"+(e?e+"/":""):"/problem/statistics/progress/"+(e?e+"/":"")),Ds=(e=null,t=!1)=>At.get(null==e?t?"/problem/team/statistics/radar/":"/problem/statistics/radar/":t?`/problem/team/statistics/radar/${e}/`:`/problem/statistics/radar/${e}/`),Os=(e,t,n,o)=>At.post(o?`/problem/team/list/${e}/${t}/`:`/problem/v3/list/${e}/${t}/`,n),Hs=e=>At.post("/problem/states/",{pids:e}),Is=()=>At.get("/problem/random/"),Ps=e=>At.get(`/problem/${e}/prev/`),js=e=>At.get(`/problem/${e}/next/`),Ns=e=>At.get(`/problem/${e}/mywp/`),Rs=(e,t,n)=>At.put(`/problem/${e}/wp/${t}/like/`,{state:n}),zs=(e,t,n)=>At.put(`/problem/${e}/comment/${t}/like/`,{state:n}),Vs=(e,t)=>At.get(`/problem/${e}/comment/${t}/reply/`),Bs=e=>At.get(`/problem/${e}/wp/official/`),qs=e=>At.get(`/problem/${e}/sheet/state/`),Us=(e,t,n)=>At.put(`/problem/${e}/sheet/${t}/move/`,{state:n}),Fs=()=>At.get("/problem/sheet/recent/"),$s=(e,t)=>At.get(`/problem/explore/mall/list/${e}/`,t),Ws=e=>At.get(`/problem/${e}/annex/download/`),Gs=e=>At.post(`/problem/sheet/${e}/buy/`),Ks=e=>At.get(`/problem/sheet/${e}/rate/`),Ys=(e,t)=>At.post(`/problem/sheet/${e}/rate/update/`,{score:t}),Js=(e,t)=>At.get(`/problem/sheet/${e}/resource/list/${t}/`),Zs=(e,t)=>At.post(`/problem/sheet/${e}/resource/upload/`,{file:t}),Qs=(e,t)=>At.post(`/problem/sheet/${e}/resource/${t}/download/`),Xs=(e,t)=>At.post(`/problem/sheet/${e}/resource/${t}/delete/`),ec=(e,t,n)=>At.post(`/problem/sheet/${e}/resource/${t}/comment/`,n),tc=(e,t)=>At.get(`/problem/sheet/${e}/resource/${t}/comments/`),nc=(e,t)=>At.get(`/problem/sheet/${e}/statistice/users/${t}/`),oc=()=>At.get("/problem/awd/available/"),rc=()=>At.get("/problem/statistics/info/"),ac=()=>At.get("/problem/admin/titles/"),ic=(e,t=[])=>At.post("/problem/search/title/",{title:e,expids:t}),lc=e=>At.get(`/problem/daily/${e}/problem/`),sc=e=>At.get(`/problem/daily/${e}/state/`),cc=()=>At.post("/problem/daily/clockin/"),dc=e=>At.post(`/problem/daily/${e}/additional/clockin/`),uc=e=>At.get(`/problem/admin/comment/list/${e}/`),pc=(e,t)=>At.post(`/problem/collection/list/${e}/`,t),mc=(e,t)=>At.get(`/problem/collection/${e}/details/${t}/`),fc=(e,t)=>At.post(`/problem/admin/collection/list/${e}/`,t),hc=(e,t)=>At.post(`/problem/admin/collection/${e}/update/`,t),vc=(e,t)=>At.post(`/problem/admin/collection/${e}/cover/update/`,t),gc=e=>At.post("/problem/admin/collection/add/",e),bc=e=>At.get(`/problem/admin/sheet/${e}/problems/`),yc=(e,t)=>At.post(`/problem/admin/sheet/${e}/problem/update/`,{problems:t}),wc=e=>At.get(`/problem/admin/collection/${e}/sheets/`),Ec=(e,t)=>At.post("/problem/admin/sheet/search/",{name:e,exts:t}),kc=(e,t)=>At.post(`/problem/admin/collection/${e}/sheet/update/`,{sheets:t}),_c=e=>At.post(`/problem/admin/collection/${e}/change/`),Sc=e=>At.post("/docker/build/",e),xc=e=>At.post("/docker/hackground/new/",e),Lc=()=>At.get("/docker/hackground/list/"),Cc=e=>At.post(`/docker/hackground/${e}/stop/`),Ac=e=>At.post(`/docker/hackground/${e}/start/`),Mc=e=>At.get(`/docker/hackground/${e}/info/`),Tc=e=>At.post(`/docker/hackground/${e}/delay/`),Dc=()=>At.get("/docker/image/name/list/"),Oc=(e,t)=>At.post(`/docker/hackground/${e}/commit/`,{image:t}),Hc=(e,t)=>At.post(`/docker/hackground/${e}/update/`,t),Ic=(e,t)=>At.post(`/docker/hackground/${e}/instance/folder/`,{path:t}),Pc=(e,t)=>At.post(`/docker/hackground/${e}/instance/file/upload/`,t),jc=(e,t)=>ve({method:"post",withCredentials:!0,url:`/api/docker/hackground/${e}/instance/file/download/`,data:{path:t},responseType:"blob"}),Nc=e=>At.post("/docker/warjax/target/info/",{type:e}),Rc=e=>At.post("/docker/warjax/target/start/",{type:e}),zc=e=>At.post("/docker/warjax/target/close/",{type:e}),Vc=e=>At.get(`/docker/service/image/list/${e}/`),Bc=e=>At.post("/docker/service/image/add/",{name:e}),qc=e=>At.post(`/docker/service/image/${e}/remove/`),Uc=(e,t)=>At.post(`/docker/service/image/${e}/folder/upload/`,t),Fc=(e,t)=>At.post(`/docker/service/image/${e}/folder/remove/`,{path:t}),$c=(e,t)=>ve({method:"post",withCredentials:!0,url:`/api/docker/service/image/${e}/folder/file/`,data:{path:t},responseType:"blob"}),Wc=(e,t,n)=>At.post(`/docker/service/image/${e}/folder/rename/`,{path:t,new_name:n}),Gc=(e,t)=>At.post(`/docker/service/image/${e}/folder/list/`,{path:t}),Kc=(e,t)=>At.post(`/docker/service/image/${e}/folder/mkdir/`,{path:t}),Yc=e=>At.post(`/docker/service/image/${e}/build/`,{}),Jc=e=>At.get(`/docker/service/image/${e}/build/logs/`),Zc=(e,t)=>At.get(`/docker/service/image/${e}/build/log/${t}/`),Qc=e=>At.get(`/docker/service/task/list/${e}/`),Xc=e=>At.post("/docker/service/task/add/",e),ed=e=>At.get(`/docker/service/task/${e}/topo/`),td=(e,t)=>At.post(`/docker/service/task/${e}/topo/update/`,t),nd=e=>At.post(`/docker/service/image/${e}/sync/`),od="DOCKER_INSTANCE_TOKEN_CACHE",rd="DOCKER_HACKGROUND_TOKEN_CACHE",ad=36e5;var id=Object.defineProperty,ld=(e,t,n)=>((e,t,n)=>t in e?id(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);
/**
* Copyright (c) 2014, 2019 The xterm.js authors. All rights reserved.
* @license MIT
*
* Implements the attach method, that attaches the terminal to a WebSocket stream.
*/
const sd=new TextDecoder("utf-8");class cd{constructor(e,t){ld(this,"_socket"),ld(this,"_bidirectional"),ld(this,"_disposables",[]),this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!(t&&!1===t.bidirectional)}activate(e){this._disposables.push(dd(this._socket,"message",t=>{if(t.data instanceof ArrayBuffer&&4===t.data.byteLength){const e=new Uint8Array(t.data);if(112===e[0]&&111===e[1]&&110===e[2]&&103===e[3])return}let n="string"==typeof t.data?t.data:sd.decode(new Uint8Array(t.data));n.includes("NSSCTF{")&&(n=n.replaceAll(/NSSCTF\{.+\}/g,"NSSCTF{********-****-****-****-************}")),e.write(n)})),this._bidirectional&&(this._disposables.push(e.onData(e=>this._sendData(e))),this._disposables.push(e.onBinary(e=>this._sendBinary(e)))),this._disposables.push(dd(this._socket,"close",()=>this.dispose())),this._disposables.push(dd(this._socket,"error",()=>this.dispose()))}dispose(){for(const e of this._disposables)e.dispose()}_sendData(e){if(!this._checkOpenSocket())return;const t=(new TextEncoder).encode(e);this._socket.send(t.buffer)}_sendBinary(e){if(!this._checkOpenSocket())return;const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);this._socket.send(t)}_checkOpenSocket(){switch(this._socket.readyState){case WebSocket.OPEN:return!0;case WebSocket.CONNECTING:throw new Error("Attach addon was loaded before socket was open");case WebSocket.CLOSING:return!1;case WebSocket.CLOSED:throw new Error("Attach addon socket is closed");default:throw new Error("Unexpected socket state")}}}function dd(e,t,n){return e.addEventListener(t,n),{dispose:()=>{n&&e.removeEventListener(t,n)}}}const ud={style:{width:"1000px",height:"610px",margin:"0 auto",position:"relative"}},pd={ref:"terminalRef"};const md=bn({props:{type:{type:String,required:!0,default:"terminal"}},setup(e,t){const n=E({term:null,socket:"",tid:0,token:"token",fhash:"",execId:"",isTerminalInitialized:!1,heartbeatTimer:null,heartbeatInterval:5e3}),o=f(null),r=t=>{n.socket&&n.socket.close(),n.term&&n.term.dispose();const r=new lt.Terminal({rows:27,cols:113,convertEol:!0,disableStdin:"log"===e.type,windowsMode:!0,cursorStyle:"underline",cursorBlink:!0,tabStopWidth:4,fontSize:16,lineHeight:1.2,fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{foreground:"#ECECEC",background:"#181d28",cursor:"help"}});n.socket=new WebSocket(t),n.socket.binaryType="arraybuffer";const a=new Uint8Array([112,105,110,103]).buffer,i=()=>{n.heartbeatTimer&&window.clearInterval(n.heartbeatTimer),n.heartbeatTimer=window.setInterval(()=>{if(n.socket&&n.socket.readyState===WebSocket.OPEN)try{n.socket.send(a)}catch(e){}else l()},n.heartbeatInterval)},l=()=>{null!==n.heartbeatTimer&&(window.clearInterval(n.heartbeatTimer),n.heartbeatTimer=null)};let s=null;if("terminal"===e.type){n.isTerminalInitialized=!1,n.socket.onopen=()=>{i();const e={command:["/bin/sh"],stream:!0,height:r.rows,width:r.cols};n.socket.send(JSON.stringify(e))};const e=t=>{if(!(e=>{if(e instanceof ArrayBuffer&&4===e.byteLength){const t=new Uint8Array(e);if(112===t[0]&&111===t[1]&&110===t[2]&&103===t[3])return!0}return!1})(t.data)&&!n.isTerminalInitialized)try{const o=JSON.parse(t.data);if(1e4===o.code&&o.exec_id)return n.execId=o.exec_id,n.isTerminalInitialized=!0,n.socket.removeEventListener("message",e),s=new cd(n.socket),void r.loadAddon(s)}catch(o){n.socket.removeEventListener("message",e),s=new cd(n.socket),r.loadAddon(s)}};n.socket.addEventListener("message",e)}else{s=new cd(n.socket),r.loadAddon(s);const e=n.socket.onopen;n.socket.onopen=()=>{i(),e&&e.call(n.socket,{})}}if(r.open(o.value),r.focus(),r.element.onkeydown=e=>{},n.socket.onclose=()=>{r.write("连接已断开..."),l()},n.term=r,"terminal"===e.type);else if("log"===e.type){const e=n.socket.onopen;n.socket.onopen=()=>{i(),e&&e.call(n.socket,{}),n.socket.send(JSON.stringify({follow:!0,stdout:!0,stderr:!0,tail:"all"}))}}else if("build"===e.type){const e=n.socket.onopen;n.socket.onopen=()=>{i(),e&&e.call(n.socket,{}),n.socket.send(JSON.stringify({hash:n.fhash}))}}},a=e=>{if(("local.nssctf.cn"===window.location.hostname||"localhost"===window.location.hostname||!1)&&e.startsWith("wss://anna2.nssctf.cn")){const t=e.replace("wss://anna2.nssctf.cn","");return`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.host}/ws/anna2${t}`}return e};return g(()=>{n.heartbeatTimer&&(clearInterval(n.heartbeatTimer),n.heartbeatTimer=null),n.socket&&n.socket.close(),n.term&&n.term.dispose()}),c(s({},Z(n)),{terminalRef:o,start:(t,o=0)=>p(this,null,function*(){if(1==o){const o=t,a=(e=>{try{const t=Et(rd,{}),n=t[e];return n?Date.now()>=n.expireTime?(delete t[e],wt(rd,t),null):{token:n.token,tid:n.tid}:null}catch(t){return null}})(o);if(a)n.tid=a.tid,n.token=a.token;else{const e=yield(e=>At.post(`/docker/hackground/${e}/instance/token/`))(o);if(200===e.code)n.tid=e.data.tid,n.token=e.data.token,((e,t,n)=>{try{const o=Et(rd,{}),r=Date.now();o[e]={token:t,tid:n,expireTime:r+ad},wt(rd,o)}catch(o){}})(o,e.data.token,e.data.tid);else{if(201===e.code)return void vt.error({message:"环境不存在。"});if(202===e.code)return void vt.info({message:"环境未在运行状态或启动中。"})}}"terminal"===e.type?r(`wss://anna2.nssctf.cn/api/task/ws/${n.tid}/service/service/exec/?token=${n.token}`):"log"===e.type&&r(`wss://anna2.nssctf.cn/api/task/ws/${n.tid}/service/service/log/?token=${n.token}`)}else if("build"==e.type)n.fhash=t.fhash,r(`wss://anna.nssctf.cn:8008/ws/image/${t.iid}/build/?token=${t.token}`);else{const o=t,i=(e=>{try{const t=Et(od,{}),n=t[e];return n?Date.now()>=n.expireTime?(delete t[e],wt(od,t),null):{token:n.token,tid:n.tid}:null}catch(t){return null}})(o);if(i)n.tid=i.tid,n.token=i.token;else{const e=yield(e=>At.post(`/problem/docker/instance/${e}/token/`))(o);if(200===e.code)n.tid=e.data.tid,n.token=e.data.token,((e,t,n)=>{try{const o=Et(od,{}),r=Date.now();o[e]={token:t,tid:n,expireTime:r+ad},wt(od,o)}catch(o){}})(o,e.data.token,e.data.tid);else{if(202===e.code)return void vt.error({message:"非Anna 2.0靶机,无法接入终端。"});if(204===e.code)return void vt.info({message:"您还不是VIP,无法使用此功能。",duration:0})}}"terminal"===e.type?r(a(`wss://anna2.nssctf.cn/api/task/ws/${n.tid}/service/service/exec/?token=${n.token}`)):"log"===e.type&&r(a(`wss://anna2.nssctf.cn/api/task/ws/${n.tid}/service/service/log/?token=${n.token}`))}})})}},[["render",function(e,t,n,o,r,a){return w(),b("div",ud,[y("div",pd,null,512)])}]]),fd="/images/nav-coin-DfFQuiTb.png",hd="/images/nav-explorer-ZUhnbhF7.png";let vd=e=>{const t=ao();let n="nss-background-watermark",o=document.getElementById(n);o&&document.body.removeChild(o);let r=document.createElement("canvas");r.width=170,r.height=100;let a=r.getContext("2d");a.rotate(-15*Math.PI/180),a.font="12px Vedana",t.value?a.fillStyle="rgba(30, 30, 30, 0.35)":a.fillStyle="rgba(220, 220, 220, 0.25)",a.textAlign="left",a.textBaseline="Middle",a.fillText(e,r.width/8,r.height/2);let i=document.createElement("div");return i.id=n,i.style.pointerEvents="none",i.style.top="30px",i.style.left="0px",i.style.position="fixed",i.style.zIndex="0",i.style.width=document.documentElement.clientWidth+"px",i.style.height=document.documentElement.clientHeight-230+"px",i.style.background="url("+r.toDataURL("image/png")+") left top repeat",document.body.appendChild(i),n};const gd={set:e=>{let t=vd(e);setTimeout(()=>{null===document.getElementById(t)&&(t=vd(e))},500),window.onresize=()=>{vd(e)}},clear:()=>{let e=document.getElementById("nss-background-watermark");null!==e&&document.body.removeChild(e)},update:e=>{let t=document.getElementById("nss-background-watermark");null!==t&&(document.body.removeChild(t),vd(e))}},bd={components:{VIcon:Fi,Logout:Ji,Ticket:ul,FileText:Gi,Terminal2:sl,PlayerStop:nl,Sun:al,MoonStars:Xi,ArrowDown:ze,MoreTimeOutlined:wl,DataExplorationRound:fl,LocalFireDepartmentRound:gl,username:gi,vip:Sn,PlatformSwitch:bi,terminall:md},setup(){const e=ao({initialValue:"light"}),t=E({activeIndex:"1",containers:[],teamContainers:[{id:1,pid:1,title:"[SWPUCTF 2021 新生赛]Do_you_know_http",url:["14.11.233.211:31234"],date:(new Date).getTime(),state:1,user:{uid:1,username:"admin",rating:2789},remain:40}],index:"0",ternimalTabsIndex:"0",ternimalTabs:[],tabIndex:0,ternimalRefs:[null],currentDockerPage:0,dockerTotal:0,isDockerDrawerVisible:!1,isDockerDrawerDataShow:!0,messageList:[],messageType:0,messagePage:0,messageLoading:!1,messageScrollDisabled:!1}),n=W(),o=X(),r=T(),a=f(null),i=U(()=>n.getters["user/isLogin"]),l=U(()=>n.getters["user/getUserInfo"]),d=["/","/","/problem","/note","/contest","/rank","/explore/workshop","/team","/explore","/admin"];h(()=>o.path,()=>{-1!=o.path.indexOf("team")?t.index="7":-1!=o.path.indexOf("problem")?t.index="2":-1!=o.path.indexOf("note")?t.index="3":-1!=o.path.indexOf("contest")?t.index="4":-1!=o.path.indexOf("rank")?t.index="5":-1!=o.path.indexOf("workshop")?t.index="6":-1!=o.path.indexOf("other")?t.index="8":-1!=o.path.indexOf("admin")?t.index="9":t.index="1"});const u=()=>{t.messagePage+=1,t.messageLoading=!0,0==t.messageType?m(t.messagePage):1==t.messageType?v(t.messagePage):2==t.messageType&&g(t.messagePage)},m=e=>p(this,null,function*(){const o=yield(e=>At.get(`/user/info/message/notice/${e}/`))(e);if(200==o.code){let e=(new Date).getTime();0==o.data.messages.length&&(t.messageScrollDisabled=!0);for(let t of o.data.messages)t.title=yield wi(t.title),t.date=Ca(e,t.date);n.dispatch("user/updateMessageState",{unread:o.data.unread}),t.messageList=t.messageList.concat(o.data.messages),t.messageLoading=!1}}),v=e=>p(this,null,function*(){const o=yield(e=>At.get(`/user/info/message/follow/${e}/`))(e);if(200==o.code){let e=(new Date).getTime();0==o.data.messages.length&&(t.messageScrollDisabled=!0);for(let t of o.data.messages)t.title=yield wi(t.title),t.date=Ca(e,t.date);n.dispatch("user/updateMessageState",{unread:o.data.unread}),t.messageList=t.messageList.concat(o.data.messages),t.messageLoading=!1}}),g=e=>p(this,null,function*(){const o=yield(e=>At.get(`/user/info/message/letter/${e}/`))(e);if(200==o.code){let e=(new Date).getTime();0==o.data.messages.length&&(t.messageScrollDisabled=!0);for(let t of o.data.messages)t.title=yield wi(t.title),t.date=Ca(e,t.date);n.dispatch("user/updateMessageState",{unread:o.data.unread}),t.messageList=t.messageList.concat(o.data.messages),t.messageLoading=!1}}),b=()=>{t.isDockerDrawerVisible=!0,At.get("/docker/instance/alive/").then(e=>{200===e.code&&(t.containers=e.data)})};return c(s({},Z(t)),{navStatas:"/images/nav-statas-ByeuSwqC.png",navUserInfo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAAB5CAYAAABRPEH0AAALo0lEQVR4nO2de2wU1xWHfzOzu8aLifHbvA3moYLDIxhwwUkrSHikCgTxUJOSpFRqJVSJSkUlav9ppfzTIqUqlVpLVVTaNKqU4iYiNIHQqBTV4PAKEEwljAkEF4MxNhhs48fu3OoMO8usseMZe8d3xns+aaTrtb2enfv53Mfce0YRQoDxDQoAs8KorALQYgfRDSDqt+oMJOl9SgGsAlAO4EkA+QCCSXpvxj9EADQCOA+gCsDHAE4NdPZDjYRrAewCMItFYfqhFsBPAHzQ3w8og7lyQogyABUA5vOVZ2xyFsA2AJ/2/nEnzXEmgOd37NjxPQDPWr9xp1vgw4Yojt3WcalNoKVLIMJdzaQwNqTgtSINL00JIF2z9466AD6/qxvl1453D9u5agqQk6ZgRoaCpbkqnh+vITsUj3MUsKoBbAJQaf09O5GQmtqdAF7asGFDemXlo9/viAJ7vojgnasRo8wkn9JsFb+cF0ROSIFqs90iAX9fFzHK1bd1abUS1oAtRQFsnRYwyhYSRPyqjxUG8AaA7RQxy8rKUF1dHf/mlXaB7ae7ca2DQ55bZIUUvDxFww+K7TdY1AK9ey2K3Rd7jK+75DkYZ3JYwW8XhjB1dIJuS2OR0Rji98UMAMcB/NhssisqKuI/drVdYOtxFtBtFmSpWFVosw2OcbpFxyc3o4Z8XhCQIE/IFwpcFuJC9SXhQgBHAZSYL6xbtw7z5z8cg1Czu/2zbqMfyLjH6ADwVJaCyaOdjR0/bdZx4Z5H7LNAvvzos260R+KvzQOwHn1IOB3AAQB51hd37doVL1Mf8Mt2FtBtynI043Ci4Lm7Ok406+jyaP+cvKmoi1hf+hV6SUh9wPd7C7ho0SLMnDnTKLd0C/zlasKbMEmGpBulAasKVcwYY19Banrfq4/icpv3oqCVv9VH0PyoFaVu32KrhG9Ym2CTlStXxss0DfOAR8GuEtKARdkqisf0111/nKgAvmjTjUjY6fH6oSj9UUPCSa40P+nM2Cj4McrLy+MvyRzupwohVcH6iRomhe1HQWqh/l4fxa0uAT90lI4lelRuSvjT/iaui4uL4+V6Hg27SpoKzM1UjEiYZj8Qou6+wCeNOjp80lOqa0vwqITEGwvg2/39woQJE+Jl+k9j3GNcuoIXJ2oYE7QfBW92Chy5FfXVbEVzokcF9P+2hvrC/f1COByOl73e3/AzdDdk1hMqlhfYnxcUsXnBfzb6q5sUTfx/CVAkXCHtbJg4E9IVlOWoCDiYk2ntEbjQqht9Qj+jxtb/MZIpz1XxTJ6DjiAt2GvS8Z8m3Viw4GcoEhb7+yP4n4JRCsrzNOSm2QuDJF1bROBwoz4ibp2ShGPceONluSpenRrAk5mqcQuKSR7Uf3wiqODNBUFPLGCnW3E1rTr+fCWCo4OYxiM9Qsk+qR/OCDha+cH4GwoyS3JULMkJ4Q+XI/jdJWdzRUk35ek81RCQRkD7bwInWsBrDUc4tFZwcTbwQiGMuqf1jNRXtYuznrANXil66PX+G8C/m1jAVIDqmOqa6hwWB+ySdAlLMh++5Yk7qV41qYdZ56YDdkm6hOYghCNg6mHWudOBaNIlZBinsISMdFhCRjosISMdlpCRDkvISIclZKTDEjLSYQkZ6SRdQnOHfdhZ9gpmBGDWebvDDVdJl5CWmxOLs0bCZWWcYNZ5TauzNYVJl/DtWIaGF8YB38zliJgKUB1TXVOdE06zdCR9PSGtI6OFjbSu7MXxMA4mdaC6d7KW0BUJCVpZSykpXi0KGMt6eHn/yMZc3k8R0KmAcEtCxHaCVTUNX6parzE9Q8HrXwtiYbZqpNG1A21aqrgUwYEbUV+k80gWHKNcIE0D5mepRqpfuyl+EUvze6Qp9RZisoQuMD2D9hBrjgS88UAYCS6dTm+MBHiy2gUoodHTDjeyH76l4+gg+lMjAY6ESWZahmLkmrYbBanvd69H4MwdPWVTMHMkTDLPFWqYN9Z+O0xbYw/e0I3+YKrmPONImCQo8uWnKfhGnmo8+sEOlM6j4YHA/oaokeItVRkWCTklSN+QuPSMj3fKQkNOpWFluK/3UM/d+ujSPrE+gHHewU7Hf4BTgjhnMKk0TGRfb7vnfm71o5SYrp4tpwSxz1BTaUDi9fZcGhArnBLEPkNNpQGJ19tzaUCscEoQ5ww2lQY8cL09kwbECqcEcc5gU2nAA9eb04AwvoUlZKTDEjLSYQkZ6bCEjHRYQkY6LCEjHZaQkQ5LyEiHJRxByE7B4pk0IIw8ZKdg8UwaEEYeslKweC4NCCMPL6Rg8UwaEEYeMlKweDYNCCMPv6Vg4T4hIx2WkJEOS8hIhyVkpMMSMtJhCRnpsISMdFhCRjosISMdlpCRDkvISIclZKTDEjLSYQkZ6bCEjHRYQkY6LCEjHZaQkQ5LyEjHVQllb8b2I4PdQO5nXJVQ9mZsPzLYDeR+xlUJZW3G9iND3UDuZ1zd8umFzdh+ZDAbyP2M6/uOZWzG9iND3UDuZ4ZFCa9sxqaHYf9sdhBFoxXbzyM+e0dHRV3EeCo74w4pM0UTVIG5Y1VMcSAg8XmrbkRyxj1SRsKFWSpWFKjQHAh48b7Asds6HvATqVxlxPfQyLmQBqwo0DDHwTPX6EmZHzVEUdOaug/DHi5GfCSkyEcDojmZ9kMgCXitQ+DsXR33e1hCtxn5EqrA+gkapmfY/6idUeCD61F82c4CDgcD1kxHR0e8PMpnk800GJnzhIrSHBVpDs69vkPH4cYoWjkKukKvfnlkQAmvX78eL+enOejVe4BxoxRsmKQhJ2T/vG93CXx8U0d9h4DODrpCdmJ93BpQwsuXL8fLk8L+kZD+22ZnqniuUEPIZkssjPvdAv9oiIInZdxjxpgEj84PWD1VVVXx8tdz/dOFnJCuoDRbtS0g0RUFLtzTjWjIUdA9liZ6VDVgFR06dChe/tZ4Dek+6ReSgMsLVDiJ3cduR3HoRpQFdJE0FVgzLkGiQwNKePLkSdTW1hplastfKfL+1GL+KAVlOaqjviBNSB9p0nGFR8SusnlyALmPxhZ1AE7Yaqx27twZL393asC49eVlVuSrjiemjzfrOM+351xlcljBtukJQex12J0n3LdvH86dO2eUaRXMbxaEkOUgygwn1F14Jl/DRAeDqLaIwPv/i3AUdBHyZfdTIesqKhLqPcQktLW8Zdu2bfHytAwFe5aEDLO9BC0MXV6gOYrUXTpw/q5A7X0ejLgFeUK+kDcW4kKRhPft/O3q6mps3rw5/vXU0QreXZaG7xcHPLNiemxIwfqJGvIczGc2dgpU1keMETGTXMgL8oM8mWoJDFu2bCHnqs2v6TvHaWuD3b++ceNG7N27N+G15m6BAw1RHL2to65NoLlLGP2s4YQ+8LOFGn5eEkTApoMUBWk0/IuaHkTYwSFDc7M5aQqmZyhYlqtizfjHbxRs2rQJlZWVJ4QQS6yvvxWbp7V9lJWViTNnzgiGsQv5Qt7EHHtLCAHzIF52KqF5rF27VtTW1nJFMP1CfpAnvdz5jlVCipVjAdyg9QmDDcelpaVYvXo1ysvLUVJSgoKCAgQCvJkk1YhEImhsbERNTY1xp+3gwYM4depU76vQBaBQCHHXfMFssPfQFKBfr1lmZqYhPV0E8zDDPKFpmnEEg0HjCIfD6O7uRktLCzo7O6WeewryJyHEVuvHNiWcRfutU+Wpn4ry8GNbRWWGBdpMXSKEuGj9Y+bkSjPNJ9IaBa4LxkV2CyH+2vvtrePnMN0qBjCba4Fxgf/SrltaJ22+tdkSWW/b0TfXAWjiGmCSTFPMrY6+3rb3vWNa1bCGRWSSSFPMqbr+3rKvBQynAZTHBioMMxTIoWUxpwYF9RHfBNAz2MlsPlL2IGd+HXOoX6x3TAaCpm/+GGvPWSw+vuroiLkyy45Y1jsmdsmkFf4AlgOYC6AodrclyA1WSkLRju56XKWUPQD+BeBDAK12L4YRBQH8H1GOmVzzCWuaAAAAAElFTkSuQmCC",navCoin:fd,navExplorer:hd,navDeeps:"/images/nav-deeps-Br9lPqu9.png",navWorkshop:"/images/nav-workshop-B_9gefpg.png",menuRef:a,isDark:e,setDefaultAvatar:e=>{e.target.src=new URL("/images/default-BLXpmCH4.jpg",import.meta.url).href},handleDarkModeChange:()=>{A(()=>{i.value&&gd.update(`NSS@${l.value.username}`)})},isLogin:i,userInfo:l,handleSelect:e=>{"8"!=e&&e in d&&(t.index=e,r.push({path:d[+e]}))},redirectToLogin:()=>{r.push({path:"/user/login",query:{redirect:o.path}})},redirectToRegister:()=>{r.push({path:"/user/register"})},handleActiveCheck:()=>{At.post("/user/clockin/").then(e=>{200===e.code&&(vt.success({message:`签到成功,已连续签到${e.data}天`}),n.dispatch("user/updateActiveCount",{count:e.data}))})},toTeamDockerPage:e=>{t.currentDockerPage=e},handleShowMessage:u,changeMessageType:e=>{e!=t.messageType&&(t.messageList=[],t.messagePage=0,t.messageType=e,t.messageScrollDisabled=!1,u())},handleHideMessage:()=>{t.messagePage=0,t.messageType=0,t.messageList=[]},handleDockerShow:b,handleTerminalStart:(e,o,r)=>{if(t.isDockerDrawerDataShow=!0,n.getters["user/getExpiry"]<0)vt.info({message:"您还不是VIP,无法使用此功能。",duration:0});else{const n=""+ ++t.tabIndex;t.ternimalTabs.push({title:`${o} - ${"terminal"===r?"终端":"日志"}`,name:n,component:"terminall",type:r}),t.ternimalRefs.push(null),t.ternimalTabsIndex=n,A(()=>{t.ternimalRefs[n].start(e)})}},handleTerminalDelay:e=>{(e=>At.post(`/docker/instance/${e}/delay/`,{id:e}))(e).then(e=>{200===e.code&&(vt.success({message:"靶机续费成功。"}),b())})},handleTerminalRemove:e=>{(e=>At.post(`/docker/instance/${e}/remove/`,{id:e}))(e).then(e=>{200===e.code&&(vt.info({message:"靶机关闭成功。"}),b())})},handleTabRemove:e=>{const n=t.ternimalTabs;let o=t.ternimalTabsIndex;t.ternimalTabsIndex===e&&n.forEach((t,r)=>{if(t.name===e){const e=n[r+1]||n[r-1];e&&(o=e.name)}}),t.ternimalTabsIndex=o,t.ternimalTabs=n.filter(t=>t.name!==e)}})}},yd={class:"navbar-wrapper"},wd={class:"flex justify-between min-w-[1200px] max-w-[1400px] nss-nav"},Ed={class:"flex items-center"},kd={class:"flex flex-col py-2"},_d={class:"leading-[50px]"},Sd={key:0,class:"ml-auto flex items-center"},xd={class:"flex justify-between items-center space-x-2"},Ld={class:"min-w-8 text-xs whitespace-nowrap"},Cd={class:"leading-[50px] ml-2.5"},Ad={class:"flex p-2.5"},Md=["src"],Td={class:"relative text-2xl ml-2"},Dd={class:"text-xs text-[#ffa116] dark:text-[#ffa116]"},Od={key:0},Hd={class:"font-bold"},Id={key:1,class:"flex items-center"},Pd={class:"p-2.5"},jd={class:"user-sub-menu-card"},Nd=["src"],Rd={class:"user-sub-menu-card"},zd=["src"],Vd={class:"user-sub-menu-card"},Bd=["src"],qd={class:"user-sub-menu-card"},Ud=["src"],Fd={class:"user-sub-menu-card"},$d=["src"],Wd={class:"user-sub-menu-card"},Gd=["src"],Kd={class:"popover-menu-item"},Yd={class:"flex w-full justify-between items-center"},Jd={class:"popover-menu-item flex items-center gap-2 text-gray-900 dark:!text-gray-200"},Zd={class:"flex"},Qd={class:"popover-menu-item flex items-center gap-2 text-gray-900 dark:!text-gray-200"},Xd={class:"popover-menu-item flex items-center gap-2 text-gray-900 dark:!text-gray-200"},eu={class:"popover-menu-item"},tu={class:"flex items-center justify-between gap-2 text-gray-900 dark:text-gray-200"},nu={class:"flex items-center gap-2"},ou={class:"popover-menu-item flex items-center gap-2 text-gray-900 dark:!text-gray-200"},ru={key:1,class:"ml-auto flex items-center"},au={class:"w-[1350px] mx-auto"},iu=["href"];const lu=bn(bd,[["render",function(e,t,n,o,r,a){const i=bi,l=Be,s=I("router-link"),c=De,d=qe,u=Se,p=Pe,m=Oe,f=I("font-awesome-icon"),h=We,v=wn,g=Ue,E=Fe,A=$e,T=gi,O=I("Ticket"),H=I("VIcon"),P=Me,j=Ae,N=je,R=Sn,z=I("Sun"),V=I("MoonStars"),B=Ge,q=I("Logout"),U=I("FileText"),F=I("Terminal2"),$=I("MoreTimeOutlined"),W=I("PlayerStop"),G=Ye,Y=Ke,J=Ce,Z=Ie,Q=re("el-table-infinite-scroll");return w(),b(x,null,[y("div",yd,[S(i,{isArena:!1,showOnLeft:!0}),y("div",wd,[y("div",Ed,[S(d,{class:"border-none !h-[50px] w-[800px]",mode:"horizontal",onSelect:o.handleSelect,"text-color":"#000000","background-color":"transparent"},{default:_(()=>[S(l,{index:"1",class:M("1"==e.index?"active":"")},{default:_(()=>t[7]||(t[7]=[y("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAfCAYAAABTRBvBAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAEKgAwAEAAAAAQAAAB8AAAAA2xTnbgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAACEhJREFUaAXdl33M1lUZxx9JRdOSNDVfsBcFcSaFNq14U9EVKzOstK1NU2uu5UtFbeZ6sYKWTdrUXlaKCaKMsrBhjVSIkSHaLNBK0ZmIqPiWhikaSn0+v/t8H87z874fldU/fLfPc65znXOuc851zu/c0Ne3Wa/ZbPbNx34Cdim+7aq2rd7MZsez0/XwH5hadr0NpWz1qm/DTex2IUyHp2BfUHWfjmfL/5rUIVs+/P83ctsS+lhKb8Khpf4i5YxiW3S7FY4d2qPNMW3VMV5NMpK8enw79svVB41RL+ZWIi2Aw2ECfAmeh+Gg6r7W24tqt9unVt1u8qJ2HP36vIU5JH1RL3/a67JX35f4s7gPM9rbMAauK/aelA/ApaCy4JT6JsN5sIMV1G3h+p0n476BvRGcU+lPm/WsSTt6LcYw2DGOUtbj6qYtjnEnUebBWHgOTMo5cHKx96dUTpyHdS9sE2Xf2RB1S8b2pXE3yjugPSYL96SiEzDmwApwnsdL+QvKJBFzQBKt1/MfT90Yf4a18BisgfkwBer5+k7C4cIOhuVwNXwCfCPeBnfDXFAOzERvx34KHCvfgSgbSz2J2B3HbWD/3DT72D+L8oFeBonbq/whfVQORjvz7IN9E/QaG//FDorux7gcjgQ7jAblzbgAPgT69weVz2AU9pNg2zOlPJVSZVOd2uYF7oHD03HMj9NImeR6/f8KtotvlIdzFfwKHJvkezNUxiYhu+Brx7gFnwd8LRjjETC+vkaf4u+/wU2uhJnwUZgGbsrOtt0Oi0DloTsQ+wmwzwul1B4HKgvTzkn57qwA+9WJ8JNTV0DiLcZ+L7TlO+Ytfn1p8DY5PrfwSmxjyI0wHtoyhvt8Qxr+hGFmp4ADR4ALdePqPvC2TISnwY1E9v0HOM7P59lir6P0aqoko07ESvyOqRNh37dA3qcl2BnrBj319i3D1b/53NKD8D0Kxl8KuS2YjV3X9akhTjAfJoHf2/dhb3gHrAZ1Dngz/gmjYT1kQZ6CN0H9AC5rrE6yTK7tG8H+Lkw5pyjfoFomL7fNJDnW9bjJjLE0qf6KuKlNUGs4lST9QmzX5wO9EzjWdXSNYdad0O/uALge7DwHMvka7GUQZaKROB4C+08tjX8sdX2zi89EZINuNt+via91KBXHyc8gNwKzXyYl8/c7MXIjxmFvAGNcXfkx+/WSGC7QjDrwMLDD4eDnYiZ/DSbJh8b6MnACT9pxZvo02Bluhd+BifwkGMub9SQsh9eB134YnAJvBP0LIVqHMQHeCiNgEphAYzn2GXAd3iT9rkVUbA/taDDGITARHN8rBk39MZpO9xXHWZRfBjetfBPcRK2c1EicD4OLcEz0QYwszEUfkQZKr+49YPv3IPJQlO2rIOMtva13wM/B9e0LUcZZ374496P8G9Qx/LT/AteAn7vzRE2MIaV2NqUTqm9BErEUe7HOSt0ScV5pz2LOp56F3I29e2kfRXlvaftu8Vl4y7IWk+9n8xAkRl360zcNooyz7ruh9oCLoFeMx2irYzQLwNfIBagfwTz4AGQBE7GVk9aJWEfdPkmE7W5K+WllvCehfNUfAP3TIcqY+oTfROOR4C24ElZD4ln+FFQ9p/U6hgmZCGfCLFgNdYzLqPfLicxedCHGdXAXXAq/Bd+AKIkYgSMZTyLsk/ZdsR+ETDwZ27fh8eL7GmWURFjWG0m75U4wBdZCYp6OrXwDosFi2O8EyK00zikZeCqGjncWx1dLfQOlD56JsN2NqB07RfMrk0U5JqoX8n6cjhUf4eMgb8S52JFjanLK8aWf5Wh4Fox5C0QmMP0tB4vhL1Tet5vtOB5uBB+SPF7/wlZ+ww4YC7ZfAGpjp2j+OmFb+jYV50LKvAUHFzuJfLH0sXBMEmapEjt1fb5Bt8O1VpCfs9df+T60Y7hHlRj20eeheMBqjM5L4H7wJV0EwyFXcy72DTATboNZsBeYybay6Pid2Dhu9itwNLwLRkIW9Ry2cqyJ2w8+Ar+BVaBcdNZjPQl27cr4op6H4eDVvx7uBFXHcFzmTVzH9f+H6gjsP8Av4QvwTfgMOPFBsAZmgsqJHoC9FtzY+RA5ceTEyltlP/HGWZ4GKguaja3/73As9NIhNPhvCvv+vnRKjMuL37fpmNLWrTgMZ9a+OB087QVwFBh8EqgXYDp8GvTvDWpop2j+M2aCbPt68VnUiajtGbTZ1990y4+DyiY+h61fPGU39THw83wz7AP+knnS6XcGttq5U/R9njJtxrgCToTE8EYfBysh/U7HbvQ+/uqcAEvgGvgseGXM/iNwMSgXnVM+EPthcOy3Iao3r2+70rAb5SrIAvwMVN3fX5+nIX0s18O9cE/LP496lDmsnwuOeSUx5tKvnr/5B5TflbdiQwlyNuUXYSOYSeX3nEQMw74LnPAMUAa1T1s+csrTyAJNsnJMvRjfkqvAA0jfujRRMyDzZD25WTQ1N2AOZa8Yflr+ODRjDeRgr9AxcANMAjc/GUbAcpgFU8HFbgLHuTDluDHwE/DKpw/mANX+42kxzoLSI/Fci7afpDLuu8GbtyvoXwMLwXUpb4IH1SuGP//vgVFgDPeaGDdjq+Y2ucBoCcZScOBY8Lr7sO0Jqu7b8Qz862IGU7f2ts/6DoMFKW32azbQpe8Wx2iuBwHHgSftW6G0pzVWJ+PdFu0pOv7lklTCNP3cgLTjpY+lcYeW0nrkGD+zVzJfYmR/PWNkIQ7wyqhFoH8FnAz+I8jvrO5DdYDsn09lQMP/oGLsYDjn8bN6Ncp4SzVojFwz/z2Rx/LMZtjAhRTX1lt44pE/n49CfpuTpLRvdeV/ARrsKNIKDD6EAAAAAElFTkSuQmCC",width:"70",height:"34"},null,-1)])),_:1,__:[7]},8,["class"]),S(l,{index:"2",class:M("2"==e.index?"active":"")},{default:_(()=>t[8]||(t[8]=[C("题库",-1)])),_:1,__:[8]},8,["class"]),S(l,{index:"3",class:M("3"==e.index?"active":"")},{default:_(()=>t[9]||(t[9]=[C("交流",-1)])),_:1,__:[9]},8,["class"]),S(l,{index:"4",class:M("4"==e.index?"active":"")},{default:_(()=>t[10]||(t[10]=[C("比赛",-1)])),_:1,__:[10]},8,["class"]),S(l,{index:"5",class:M("5"==e.index?"active":"")},{default:_(()=>t[11]||(t[11]=[C("排行",-1)])),_:1,__:[11]},8,["class"]),S(l,{index:"6",class:M("6"==e.index?"active":"")},{default:_(()=>t[12]||(t[12]=[C("工坊",-1)])),_:1,__:[12]},8,["class"]),S(l,{index:"7",class:M("7"==e.index?"active":"")},{default:_(()=>t[13]||(t[13]=[C("战队",-1)])),_:1,__:[13]},8,["class"]),S(c,{trigger:"click","popper-class":"!p-0"},{reference:_(()=>[S(l,{index:"8",class:M(["8"==e.index?"active":"","flex items-center justify-between hover:bg-gray-50 hover:text-primary transition-all duration-300"])},{default:_(()=>t[14]||(t[14]=[C("更多 ",-1)])),_:1,__:[14]},8,["class"])]),default:_(()=>[y("div",kd,[S(s,{to:"/other/store","active-class":"bg-blue-100 text-primary",class:"px-4 py-2 text-gray-700 hover:bg-slate-200 hover:text-primary transition-colors duration-200 flex items-center"},{default:_(()=>t[15]||(t[15]=[y("div",{class:"text-base"},"兑换",-1)])),_:1,__:[15]})])]),_:1}),K(S(l,{index:"9",class:M("9"==e.index?"active":"")},{default:_(()=>t[16]||(t[16]=[C("管理",-1)])),_:1,__:[16]},8,["class"]),[[oe,o.isLogin&&!(4&~o.userInfo.role)]])]),_:1},8,["onSelect"])]),y("div",_d,[o.isLogin?(w(),b("div",Sd,[y("div",null,[S(s,{to:"/about/vip"},{default:_(()=>[S(p,{content:2&o.userInfo.role?"正在享受VIP权益":"点击查看VIP权益"},{default:_(()=>[S(u,{size:"small",class:M([2&o.userInfo.role?"opacity-100 !bg-black dark:!bg-gray-800":"opacity-66 !bg-[#6d9d9d] dark:!bg-[#5a8a8a]","hidden-bth font-bold !border-0 !text-[rgb(255,183,76)] dark:!text-[rgb(255,183,76)]"]),round:""},{default:_(()=>t[17]||(t[17]=[C("VIP",-1)])),_:1,__:[17]},8,["class"])]),_:1},8,["content"])]),_:1}),S(m,{direction:"vertical",class:"my-0 mx-4"})]),S(c,{placement:"bottom",width:480,trigger:"click","popper-class":"unReadMessage",onShow:o.handleShowMessage,onHide:o.handleHideMessage},{reference:_(()=>[o.userInfo.unread?(w(),k(h,{key:0,"is-dot":"",class:"!h-[50px] float-right font-bold cursor-pointer"},{default:_(()=>[S(f,{icon:["far","bell"],class:"!h-[50px] block text-gray-900 dark:text-gray-200","fixed-width":""})]),_:1})):(w(),k(f,{key:1,icon:["far","bell"],class:"cursor-pointer float-right !h-[50px] block text-gray-900 dark:text-gray-200","fixed-width":""}))]),default:_(()=>[K((w(),k(E,{stripe:"",class:"border-t-2 rounded-t-lg",data:e.messageList,"show-header":!1,height:"400","infinite-scroll-disabled":e.messageScrollDisabled},{default:_(()=>[S(g,null,{default:_(e=>[y("div",xd,[S(v,{class:"user-message !text-sm",content:e.row.title},null,8,["content"]),y("div",Ld,D(e.row.date),1)])]),_:1})]),_:1},8,["data","infinite-scroll-disabled"])),[[Z,e.messageLoading],[Q,o.handleShowMessage]]),S(A,null,{default:_(()=>[S(u,{class:"!rounded-r-none !rounded-tl-none",type:["default","success"][0==e.messageType?1:0],onClick:t[0]||(t[0]=e=>o.changeMessageType(0))},{default:_(()=>[S(f,{icon:["far","bell"],"fixed-width":""})]),_:1},8,["type"]),S(u,{class:"!rounded-none",type:["","success"][1==e.messageType?1:0],onClick:t[1]||(t[1]=e=>o.changeMessageType(1))},{default:_(()=>[S(f,{icon:["far","lightbulb"],"fixed-width":""})]),_:1},8,["type"]),S(u,{class:"!rounded-l-none",type:["","success"][2==e.messageType?1:0],onClick:t[2]||(t[2]=e=>o.changeMessageType(2))},{default:_(()=>[S(f,{icon:["far","message"],"fixed-width":""})]),_:1},8,["type"])]),_:1})]),_:1},8,["onShow","onHide"]),S(f,{icon:["fab","docker"],onClick:o.handleDockerShow,class:"!h-[50px] block !w-[23px] ml-[15px] text-blue-500 dark:text-blue-700 cursor-pointer","fixed-width":""},null,8,["onClick"]),t[33]||(t[33]=y("svg",{class:"w-0 h-0 absolute","aria-hidden":"true",focusable:"false"},[y("linearGradient",{id:"my-cool-gradient",x2:"1",y2:"1"},[C("` "),y("stop",{offset:"0%","stop-color":"#447799"}),y("stop",{offset:"50%","stop-color":"#224488"}),y("stop",{offset:"100%","stop-color":"#112266"})])],-1)),S(c,{trigger:"click",width:300,placement:"bottom-end","popper-class":"user-sub-menu !bg-[rgb(143_202_202/0.4)] dark:!bg-[rgb(143_202_202/0.4)] !backdrop-blur-xl"},{reference:_(()=>[y("div",Cd,[S(u,{class:"!rounded-3xl !pl-1.5 !pt-1.5 !pb-1.5 !h-[38px] !bg-[#8acdcd85] dark:!bg-[#6a9d9d85]"},{default:_(()=>[S(T,{card:!1,uid:o.userInfo.uid,name:o.userInfo.username,avatar:o.userInfo.avatar,rating:o.userInfo.rating,link:!1},null,8,["uid","name","avatar","rating"])]),_:1})])]),default:_(()=>[y("div",Ad,[y("img",{width:"52",height:"52",src:o.userInfo.avatar,onError:t[3]||(t[3]=(...e)=>o.setDefaultAvatar&&o.setDefaultAvatar(...e)),class:"rounded-full"},null,40,Md),y("div",Td,[S(T,{card:!1,uid:o.userInfo.uid,name:o.userInfo.username,rating:o.userInfo.rating},null,8,["uid","name","rating"]),S(s,{to:"/about/vip"},{default:_(()=>[y("div",Dd,[2&o.userInfo.role?(w(),b("div",Od,[t[18]||(t[18]=C("VIP有效期:",-1)),y("span",Hd,D(o.userInfo.expiry),1),t[19]||(t[19]=C(" 天 ",-1))])):(w(),b("div",Id,[t[20]||(t[20]=C("升级VIP享受更多特权>",-1)),S(H,{color:"#ffa116",size:"16px"},{default:_(()=>[S(O)]),_:1})]))])]),_:1})])]),y("div",Pd,[S(j,{gutter:10},{default:_(()=>[S(P,{span:8},{default:_(()=>[S(s,{to:`/user/${o.userInfo.uid}`},{default:_(()=>[y("div",jd,[y("img",{height:"33",width:"45",src:o.navUserInfo},null,8,Nd),t[21]||(t[21]=y("div",{class:"title"},"个人主页",-1))])]),_:1},8,["to"])]),_:1}),S(P,{span:8},{default:_(()=>[S(s,{to:"/user/statistics"},{default:_(()=>[y("div",Rd,[y("img",{height:"33",width:"45",src:o.navStatas},null,8,zd),t[22]||(t[22]=y("div",{class:"title"},"数据分析",-1))])]),_:1})]),_:1}),S(P,{span:8},{default:_(()=>[S(s,{to:{path:"/user/setting",query:{action:"coin"}}},{default:_(()=>[y("div",Vd,[y("img",{height:"33",width:"45",src:o.navCoin},null,8,Bd),t[23]||(t[23]=y("div",{class:"title"},"我的金币",-1))])]),_:1})]),_:1})]),_:1}),S(j,{gutter:10,class:"mt-2.5"},{default:_(()=>[S(P,{span:8},{default:_(()=>[S(s,{to:"/explore"},{default:_(()=>[y("div",qd,[y("img",{height:"45",width:"45",src:o.navExplorer},null,8,Ud),t[24]||(t[24]=y("div",{class:"title"},"星辰大海",-1))])]),_:1})]),_:1}),S(P,{span:8},{default:_(()=>[S(s,{to:"/explore/deeps"},{default:_(()=>[y("div",Fd,[y("img",{height:"40",width:"45",src:o.navDeeps},null,8,$d),t[25]||(t[25]=y("div",{class:"title"},"智识通途",-1))])]),_:1})]),_:1}),S(P,{span:8},{default:_(()=>[S(s,{to:"/explore/workshop"},{default:_(()=>[y("div",Wd,[y("img",{height:"34",width:"50",src:o.navWorkshop},null,8,Gd),t[26]||(t[26]=y("div",{class:"title"},"探索工坊",-1))])]),_:1})]),_:1})]),_:1})]),S(s,{to:o.userInfo.team?"/team":"/team/list"},{default:_(()=>[y("div",Kd,[y("div",Yd,[t[27]||(t[27]=y("div",{class:"flex items-center gap-2 text-gray-900 dark:text-gray-200"},[y("svg",{t:"1682596399229",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3931",width:"16",height:"16"},[y("path",{d:"M629.956 486.519c44.718-34.903 73.61-88.978 73.61-149.734 0-105.01-85.99-190.453-191.72-190.453s-191.72 85.444-191.72 190.453c0 60.756 28.886 114.83 73.609 149.734-117.862 46.786-201.415 161.14-201.415 294.66v63.467c0 17.554 14.295 31.75 31.943 31.75h575.16c17.653 0 31.944-14.196 31.944-31.75V781.18c0.001-133.572-83.552-247.876-201.411-294.661zM373.152 336.534c0-75.995 62.198-137.774 138.694-137.774 76.492 0 138.693 61.78 138.693 137.774 0 75.976-62.2 137.774-138.693 137.774-76.496 0-138.694-61.773-138.694-137.774z m410.165 487.78h-542.97v-33.713c0-148.708 121.79-269.705 271.523-269.705 149.68 0 271.447 120.997 271.447 269.705v33.713zM264.212 515.95l6.24-1.489c13.4-4.453 22.945-16.136 22.945-29.858 0-13.253-8.924-24.586-21.575-29.36-34.212-15.44-56.284-49.323-56.284-86.663 0-42.311 36.768-77.958 75.251-90.315 6.737-20.659 16.928-39.777 29.904-56.681a214.079 214.079 0 0 1 7.137-10.963c-2.584-0.124-5.045-0.768-7.703-0.768-88.083 0-159.775 71.196-159.775 158.728 0 40.175 15.41 77.838 41.564 106.478C118.734 517.866 64.49 603.482 64.49 700.339v49.096c0 17.553 14.296 31.745 31.944 31.745h57.25c0-21.75 2.24-35.695 6.44-56.208h-40.446V700.34c0-87.736 59.365-163.034 144.535-184.39z m557.213-40.892c26.155-28.64 41.565-66.303 41.565-106.478 0-87.533-71.67-158.756-159.776-158.756-2.66 0-5.12 0.649-7.704 0.771a213.392 213.392 0 0 1 7.137 10.963c12.978 16.904 23.167 36.022 29.881 56.683 38.484 12.352 80.57 48.004 80.57 90.314 0 37.341-22.101 71.248-56.284 86.664-12.655 4.77-21.58 16.107-21.58 29.36 0 13.723 9.574 25.406 22.946 29.853l6.24 1.493c85.199 21.38 144.536 96.655 144.536 184.413v24.632h-45.79c4.225 20.514 6.44 34.458 6.44 56.209h57.25c17.677 0 31.945-14.192 31.945-31.745v-49.096c0.052-96.856-54.193-182.472-137.376-225.28z m0 0",fill:"currentColor","p-id":"3932"})]),C(" 我的战队 ")],-1)),S(N,{size:"small"},{default:_(()=>[C(D(o.userInfo.team?o.userInfo.team:"加入/创建"),1)]),_:1})])])]),_:1},8,["to"]),S(s,{to:"/user/range/hackground"},{default:_(()=>[y("div",Jd,[S(f,{icon:["fas","campground"]}),y("div",Zd,[t[28]||(t[28]=y("div",null,"Hackground(beta)",-1)),S(R,{link:""})])])]),_:1}),S(s,{to:"/user/setting"},{default:_(()=>[y("div",Qd,[S(f,{icon:["fas","gear"]}),t[29]||(t[29]=C("修改资料",-1))])]),_:1}),S(s,{to:"/user/range/picturebed"},{default:_(()=>[y("div",Xd,[S(f,{icon:["fas","toolbox"]}),t[30]||(t[30]=C("训练靶场",-1))])]),_:1}),y("div",eu,[y("div",tu,[y("div",nu,[S(H,{size:15},{default:_(()=>[o.isDark?(w(),k(z,{key:0})):(w(),k(V,{key:1}))]),_:1}),t[31]||(t[31]=C("夜间模式 ",-1))]),y("div",null,[S(B,{size:"small",modelValue:o.isDark,"onUpdate:modelValue":t[4]||(t[4]=e=>o.isDark=e),onChange:o.handleDarkModeChange},null,8,["modelValue","onChange"])])])]),S(m,{direction:"horizontal",class:"!my-0"}),S(s,{to:"/user/logout"},{default:_(()=>[y("div",ou,[S(H,{size:16},{default:_(()=>[S(q)]),_:1}),t[32]||(t[32]=C("退出登录 ",-1))])]),_:1})]),_:1})])):(w(),b("div",ru,[S(s,{to:"/about/vip"},{default:_(()=>[S(u,{size:"small",class:M([2&o.userInfo.role?"opacity-100 !bg-black dark:!bg-gray-800":"opacity-66 !bg-[#6d9d9d] dark:!bg-[#5a8a8a]","hidden-bth font-bold !border-0 !text-[rgb(255,183,76)] dark:!text-[rgb(255,183,76)]"]),round:""},{default:_(()=>t[34]||(t[34]=[C("VIP",-1)])),_:1,__:[34]},8,["class"])]),_:1}),S(m,{direction:"vertical",class:"my-0 mx-[15px]"}),S(u,{text:"",round:"",size:"small",onClick:o.redirectToLogin,class:"text-[13px]"},{default:_(()=>t[35]||(t[35]=[C("登录",-1)])),_:1,__:[35]},8,["onClick"]),S(u,{round:"",size:"small",class:"mx-[15px]",onClick:o.redirectToRegister,type:"primary"},{default:_(()=>t[36]||(t[36]=[C("注册",-1)])),_:1,__:[36]},8,["onClick"])]))])])]),S(J,{modelValue:e.isDockerDrawerVisible,"onUpdate:modelValue":t[6]||(t[6]=t=>e.isDockerDrawerVisible=t),direction:"btt",title:"容器管理",size:"95%"},{default:_(()=>[y("div",au,[S(Y,null,{default:_(()=>[S(G,{label:"个人"},{default:_(()=>[S(E,{data:e.containers,stripe:""},{default:_(()=>[S(g,{label:"ID",prop:"id",width:"90"}),S(g,{label:"题目",align:"center"},{default:_(e=>[S(s,{to:`/problem/${e.row.pid}/`},{default:_(()=>[C(D(e.row.title),1)]),_:2},1032,["to"])]),_:1}),S(g,{label:"URL",align:"center",width:"260"},{default:_(e=>[(w(!0),b(x,null,L(e.row.url,(e,t)=>(w(),b("p",{key:t,class:"m-0"},[y("a",{href:"http://"+e,target:"_blank"},D(e),9,iu)]))),128))]),_:1}),S(g,{width:"70",label:"状态",align:"center"},{default:_(e=>[S(N,{type:["","success","primary","danger"][e.row.state],size:"small"},{default:_(()=>[C(D(["等待中","运行中","已暂停","已关闭"][e.row.state]),1)]),_:2},1032,["type"])]),_:1}),S(g,{width:"100",label:"剩余时间",align:"center"},{default:_(e=>[C(D(e.row.remain)+" 分 ",1)]),_:1}),S(g,{label:"启动时间",align:"center",width:"120"},{default:_(e=>[C(D(new Date(e.row.create_date).format("MM/dd hh:mm")),1)]),_:1}),S(g,{label:"操作",width:"320",align:"center",fixed:"right"},{default:_(e=>[S(u,{size:"small",disabled:1!=e.row.state,onClick:t=>o.handleTerminalStart(e.row.id,e.row.title,"log")},{default:_(()=>[S(H,null,{default:_(()=>[S(U)]),_:1}),t[37]||(t[37]=C(" 日志 ",-1))]),_:2,__:[37]},1032,["disabled","onClick"]),S(u,{type:"primary",size:"small",disabled:1!=e.row.state,onClick:t=>o.handleTerminalStart(e.row.id,e.row.title,"terminal")},{default:_(()=>[S(H,null,{default:_(()=>[S(F)]),_:1}),t[38]||(t[38]=C(" 终端 ",-1))]),_:2,__:[38]},1032,["disabled","onClick"]),S(u,{size:"small",disabled:1!=e.row.state,onClick:t=>o.handleTerminalDelay(e.row.id)},{default:_(()=>[S(H,null,{default:_(()=>[S($)]),_:1}),t[39]||(t[39]=C(" 续费 ",-1))]),_:2,__:[39]},1032,["disabled","onClick"]),S(u,{type:"danger",size:"small",disabled:1!=e.row.state,onClick:t=>o.handleTerminalRemove(e.row.id)},{default:_(()=>[S(H,null,{default:_(()=>[S(W)]),_:1}),t[40]||(t[40]=C(" 停止 ",-1))]),_:2,__:[40]},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1}),K(y("div",null,[S(m),S(Y,{modelValue:e.ternimalTabsIndex,"onUpdate:modelValue":t[5]||(t[5]=t=>e.ternimalTabsIndex=t),type:"card",closable:"",onTabRemove:o.handleTabRemove},{default:_(()=>[(w(!0),b(x,null,L(e.ternimalTabs,t=>(w(),k(G,{key:t.name,label:t.title,name:t.name},{default:_(()=>[(w(),k(ae(t.component),{ref_for:!0,ref:n=>e.ternimalRefs[t.name]=n,type:t.type},null,8,["type"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabRemove"])],512),[[oe,e.isDockerDrawerDataShow]])])]),_:1},8,["modelValue"])],64)}]]),su=new Set(["title","titleTemplate","script","style","noscript"]),cu=new Set(["base","meta","link","style","script","noscript"]),du=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),uu=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),pu=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),mu="undefined"!=typeof window;function fu(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),i(9,9));return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}function hu(e){if(e._h)return e._h;if(e._d)return fu(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return fu(t)}function vu(e,t,n,o){const r=o||yu("object"!=typeof t||"function"==typeof t||t instanceof Promise?{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t}:s({},t),"templateParams"===e||"titleTemplate"===e);if(r instanceof Promise)return r.then(o=>vu(e,t,n,o));const a={tag:e,props:r};for(const i of pu){const e=void 0!==a.props[i]?a.props[i]:n[i];void 0!==e&&(("innerHTML"!==i&&"textContent"!==i&&"children"!==i||su.has(a.tag))&&(a["children"===i?"innerHTML":i]=e),delete a.props[i])}return a.props.body&&(a.tagPosition="bodyClose",delete a.props.body),"script"===a.tag&&"object"==typeof a.innerHTML&&(a.innerHTML=JSON.stringify(a.innerHTML),a.props.type=a.props.type||"application/json"),Array.isArray(a.props.content)?a.props.content.map(e=>c(s({},a),{props:c(s({},a.props),{content:e})})):a}function gu(e,t){var n;const o="class"===e?" ":";";return t&&"object"==typeof t&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,e])=>e).map(([t,n])=>"style"===e?`${t}:${n}`:t)),null==(n=String(Array.isArray(t)?t.join(o):t))?void 0:n.split(o).filter(e=>Boolean(e.trim())).join(o)}function bu(e,t,n,o){for(let r=o;r<n.length;r+=1){const o=n[r];if("class"!==o&&"style"!==o){if(e[o]instanceof Promise)return e[o].then(a=>(e[o]=a,bu(e,t,n,r)));if(!t&&!pu.has(o)){const t=String(e[o]),n=o.startsWith("data-");"true"===t||""===t?e[o]=!n||"true":e[o]||(n&&"false"===t?e[o]="false":delete e[o])}}else e[o]=gu(o,e[o])}}function yu(e,t=!1){const n=bu(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}function wu(e,t,n){for(let o=n;o<t.length;o+=1){const n=t[o];if(n instanceof Promise)return n.then(n=>(t[o]=n,wu(e,t,o)));Array.isArray(n)?e.push(...n):e.push(n)}}function Eu(e){const t=[],n=e.resolvedInput;for(const i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;const o=n[i];if(void 0!==o&&du.has(i))if(Array.isArray(o))for(const n of o)t.push(vu(i,n,e));else t.push(vu(i,o,e))}if(0===t.length)return[];const o=[];return r=wu(o,t,0),a=()=>o.map((t,n)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<10)+n,t)),r instanceof Promise?r.then(a):a(r);var r,a}const ku=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),_u={base:-10,title:10},Su={critical:-80,high:-10,low:20};function xu(e){const t=e.tagPriority;if("number"==typeof t)return t;let n=100;return"meta"===e.tag?"content-security-policy"===e.props["http-equiv"]?n=-30:e.props.charset?n=-20:"viewport"===e.props.name&&(n=-15):"link"===e.tag&&"preconnect"===e.props.rel?n=20:e.tag in _u&&(n=_u[e.tag]),t&&t in Su?n+Su[t]:n}const Lu=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Cu=["name","property","http-equiv"];function Au(e){const{props:t,tag:n}=e;if(uu.has(n))return n;if("link"===n&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const o of Cu)if(void 0!==t[o])return`${n}:${o}:${t[o]}`;return!1}const Mu="%separator";const Tu=new RegExp(`${Mu}(?:\\s*${Mu})*`,"g");function Du(e,t,n,o=!1){if("string"!=typeof e||!e.includes("%"))return e;let r=e;try{r=decodeURI(e)}catch(l){}const a=r.match(/%\w+(?:\.\w+)?/g);if(!a)return e;const i=e.includes(Mu);return e=e.replace(/%\w+(?:\.\w+)?/g,e=>{if(e===Mu||!a.includes(e))return e;const n=function(e,t,n=!1){var o;let r;if("s"===t||"pageTitle"===t)r=e.pageTitle;else if(t.includes(".")){const n=t.indexOf(".");r=null==(o=e[t.substring(0,n)])?void 0:o[t.substring(n+1)]}else r=e[t];if(void 0!==r)return n?(r||"").replace(/"/g,'\\"'):r||""}(t,e.slice(1),o);return void 0!==n?n:e}).trim(),i&&(e.endsWith(Mu)&&(e=e.slice(0,-10)),e.startsWith(Mu)&&(e=e.slice(10)),e=e.replace(Tu,n).trim()),e}function Ou(e,t){return null==e?t||null:"function"==typeof e?e(t):e}function Hu(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(o=>n(()=>function(e){return p(this,arguments,function*(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const o={shouldRender:!0,tags:[]};return yield e.hooks.callHook("dom:beforeRender",o),o.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise(t=>p(this,null,function*(){var o;const r=(yield e.resolveTags()).map(e=>({tag:e,id:cu.has(e.tag)?hu(e):e.tag,shouldRender:!0}));let a=e._dom;if(!a){a={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const e=new Set;for(const t of["body","head"]){const r=null==(o=n[t])?void 0:o.children;for(const t of r){const n=t.tagName.toLowerCase();if(!cu.has(n))continue;const o={tag:n,props:yield yu(t.getAttributeNames().reduce((e,n)=>c(s({},e),{[n]:t.getAttribute(n)}),{})),innerHTML:t.innerHTML},r=Au(o);let i=r,l=1;for(;i&&e.has(i);)i=`${r}:${l++}`;i&&(o._d=i,e.add(i)),a.elMap[t.getAttribute("data-hid")||hu(o)]=t}}}function i(e,t,n){const o=`${e}:${t}`;a.sideEffects[o]=n,delete a.pendingSideEffects[o]}function l({id:e,$el:t,tag:o}){const r=o.tag.endsWith("Attrs");if(a.elMap[e]=t,r||(o.textContent&&o.textContent!==t.textContent&&(t.textContent=o.textContent),o.innerHTML&&o.innerHTML!==t.innerHTML&&(t.innerHTML=o.innerHTML),i(e,"el",()=>{var t;null==(t=a.elMap[e])||t.remove(),delete a.elMap[e]})),o._eventHandlers)for(const a in o._eventHandlers)Object.prototype.hasOwnProperty.call(o._eventHandlers,a)&&""!==t.getAttribute(`data-${a}`)&&(("bodyAttrs"===o.tag?n.defaultView:t).addEventListener(a.substring(2),o._eventHandlers[a].bind(t)),t.setAttribute(`data-${a}`,""));for(const n in o.props){if(!Object.prototype.hasOwnProperty.call(o.props,n))continue;const a=o.props[n],l=`attr:${n}`;if("class"===n){if(!a)continue;for(const n of a.split(" "))r&&i(e,`${l}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if("style"===n){if(!a)continue;for(const n of a.split(";")){const o=n.indexOf(":"),r=n.substring(0,o).trim(),a=n.substring(o+1).trim();i(e,`${l}:${r}`,()=>{t.style.removeProperty(r)}),t.style.setProperty(r,a)}}else t.getAttribute(n)!==a&&t.setAttribute(n,!0===a?"":String(a)),r&&i(e,l,()=>t.removeAttribute(n))}}a.pendingSideEffects=s({},a.sideEffects),a.sideEffects={};const d=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const e of r){const{tag:t,shouldRender:o,id:r}=e;o&&("title"!==t.tag?(e.$el=e.$el||a.elMap[r],e.$el?l(e):cu.has(t.tag)&&d.push(e)):n.title=t.textContent)}for(const e of d){const t=e.tag.tagPosition||"head";e.$el=n.createElement(e.tag.tag),l(e),u[t]=u[t]||n.createDocumentFragment(),u[t].appendChild(e.$el)}for(const t of r)yield e.hooks.callHook("dom:renderTag",t,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const e in a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,yield e.hooks.callHook("dom:rendered",{renders:r}),t()})).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise):void 0})}(e,t).then(()=>{delete e._domDebouncedUpdatePromise,o()})))}function Iu(e){return t=>{var n,o;const r=(null==(o=null==(n=t.resolvedOptions.document)?void 0:n.head.querySelector('script[id="unhead:payload"]'))?void 0:o.innerHTML)||!1;return r&&t.push(JSON.parse(r)),{mode:"client",hooks:{"entries:updated":t=>{Hu(t,e)}}}}}function Pu(e,t={},n){for(const o in e){const r=e[o],a=n?`${n}:${o}`:o;"object"==typeof r&&null!==r?Pu(r,t,a):"function"==typeof r&&(t[a]=r)}return t}const ju={run:e=>e()},Nu=void 0!==console.createTask?console.createTask:()=>ju;function Ru(e,t){const n=t.shift(),o=Nu(n);return e.reduce((e,n)=>e.then(()=>o.run(()=>n(...t))),Promise.resolve())}function zu(e,t){const n=t.shift(),o=Nu(n);return Promise.all(e.map(e=>o.run(()=>e(...t))))}function Vu(e,t){for(const n of[...e])n(t)}class Bu{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||"function"!=typeof t)return()=>{};const o=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!n.allowDeprecated){let e=r.message;e||(e=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||this._deprecatedMessages.add(e)}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch(a){}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,o=(...e)=>("function"==typeof n&&n(),n=void 0,o=void 0,t(...e));return n=this.hook(e,o),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const o of n)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Pu(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=Pu(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Ru,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(zu,e,...t)}callHookWith(e,t,...n){const o=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Vu(this._before,o);const r=e(t in this._hooks?[...this._hooks[t]]:[],n);return r instanceof Promise?r.finally(()=>{this._after&&o&&Vu(this._after,o)}):(this._after&&o&&Vu(this._after,o),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}const qu=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Uu={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=Au(e);!t||t.startsWith("meta:og:")||t.startsWith("meta:twitter:")||delete e.key;const n=t||!!e.key&&`${e.tag}:${e.key}`;n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const o of e.tags){const e=(o.key?`${o.tag}:${o.key}`:o._d)||hu(o),n=t[e];if(n){let r=null==o?void 0:o.tagDuplicateStrategy;if(!r&&qu.has(o.tag)&&(r="merge"),"merge"===r){const r=n.props;r.style&&o.props.style&&(";"!==r.style[r.style.length-1]&&(r.style+=";"),o.props.style=`${r.style} ${o.props.style}`),r.class&&o.props.class?o.props.class=`${r.class} ${o.props.class}`:r.class&&(o.props.class=r.class),t[e].props=s(s({},r),o.props);continue}if(o._e===n._e){n._duped=n._duped||[],o._d=`${n._d}:${n._duped.length+1}`,n._duped.push(o);continue}if(xu(o)>xu(n))continue}o.innerHTML||o.textContent||0!==Object.keys(o.props).length||!cu.has(o.tag)?t[e]=o:delete t[e]}const n=[];for(const o in t){const e=t[o],r=e._duped;n.push(e),r&&(delete e._duped,n.push(...r))}e.tags=n,e.tags=e.tags.filter(e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content))}}},Fu=new Set(["script","link","bodyAttrs"]),$u=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!Fu.has(n.tag))continue;const t=n.props;for(const o in t){if("o"!==o[0]||"n"!==o[1])continue;if(!Object.prototype.hasOwnProperty.call(t,o))continue;const r=t[o];"function"==typeof r&&(e.ssr&&ku.has(o)?t[o]=`this.dataset.${o}fired = true`:delete t[o],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[o]=r)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||fu(n.props.src||n.props.href))}},"dom:renderTag":({$el:e,tag:t})=>{var n,o;const r=null==e?void 0:e.dataset;if(r)for(const a in r){if(!a.endsWith("fired"))continue;const r=a.slice(0,-5);ku.has(r)&&(null==(o=null==(n=t._eventHandlers)?void 0:n[r])||o.call(e,new Event(r.substring(2))))}}}}),Wu=new Set(["link","style","script","noscript"]),Gu={hooks:{"tag:normalise":({tag:e})=>{e.key&&Wu.has(e.tag)&&(e.props["data-hid"]=e._h=fu(e.key))}}},Ku={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const o of e.tags)"server"!==o._m||"titleTemplate"!==o.tag&&"templateParams"!==o.tag&&"title"!==o.tag||(t[o.tag]="title"===o.tag||"titleTemplate"===o.tag?o.textContent:o.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Yu={hooks:{"tags:resolve":e=>{var t;for(const n of e.tags)if("string"==typeof n.tagPriority)for(const{prefix:o,offset:r}of Lu){if(!n.tagPriority.startsWith(o))continue;const a=n.tagPriority.substring(o.length),i=null==(t=e.tags.find(e=>e._d===a))?void 0:t._p;if(void 0!==i){n._p=i+r;break}}e.tags.sort((e,t)=>{const n=xu(e),o=xu(t);return n<o?-1:n>o?1:e._p-t._p})}}},Ju={meta:"content",link:"href",htmlAttrs:"lang"},Zu=["innerHTML","textContent"],Qu=e=>({hooks:{"tags:resolve":t=>{var n;const{tags:o}=t;let r;for(let e=0;e<o.length;e+=1){"templateParams"===o[e].tag&&(r=t.tags.splice(e,1)[0].props,e-=1)}const a=r||{},i=a.separator||"|";delete a.separator,a.pageTitle=Du(a.pageTitle||(null==(n=o.find(e=>"title"===e.tag))?void 0:n.textContent)||"",a,i);for(const e of o){if(!1===e.processTemplateParams)continue;const t=Ju[e.tag];if(t&&"string"==typeof e.props[t])e.props[t]=Du(e.props[t],a,i);else if(e.processTemplateParams||"titleTemplate"===e.tag||"title"===e.tag)for(const n of Zu)"string"==typeof e[n]&&(e[n]=Du(e[n],a,i,"script"===e.tag&&e.props.type.endsWith("json")))}e._templateParams=a,e._separator=i},"tags:afterResolve":({tags:t})=>{let n;for(let e=0;e<t.length;e+=1){const o=t[e];"title"===o.tag&&!1!==o.processTemplateParams&&(n=o)}(null==n?void 0:n.textContent)&&(n.textContent=Du(n.textContent,e._templateParams,e._separator))}}}),Xu={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,o;for(let r=0;r<t.length;r+=1){const e=t[r];"title"===e.tag?n=e:"titleTemplate"===e.tag&&(o=e)}if(o&&n){const t=Ou(o.textContent,n.textContent);null!==t?n.textContent=t||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(o){const e=Ou(o.textContent);null!==e&&(o.textContent=e,o.tag="title",o=void 0)}o&&e.tags.splice(e.tags.indexOf(o),1)}}},ep={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)"string"==typeof t.innerHTML&&(!t.innerHTML||"application/ld+json"!==t.props.type&&"application/json"!==t.props.type?t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`):t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"))}}};let tp;function np(e={}){const t=function(e={}){const t=new Bu;t.addHooks(e.hooks||{}),e.document=e.document||(mu?document:void 0);const n=!e.document,o=()=>{l.dirty=!0,t.callHook("entries:updated",l)};let r=0,a=[];const i=[],l={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>a,use(e){const o="function"==typeof e?e(l):e;o.key&&i.some(e=>e.key===o.key)||(i.push(o),op(o.mode,n)&&t.addHooks(o.hooks||{}))},push(e,t){null==t||delete t.head;const i=s({_i:r++,input:e},t);return op(i.mode,n)&&(a.push(i),o()),{dispose(){a=a.filter(e=>e._i!==i._i),o()},patch(e){for(const t of a)t._i===i._i&&(t.input=i.input=e);o()}}},resolveTags(){return p(this,null,function*(){const e={tags:[],entries:[...a]};yield t.callHook("entries:resolve",e);for(const n of e.entries){const o=n.resolvedInput||n.input;if(n.resolvedInput=yield n.transform?n.transform(o):o,n.resolvedInput)for(const r of yield Eu(n)){const o={tag:r,entry:n,resolvedOptions:l.resolvedOptions};yield t.callHook("tag:normalise",o),e.tags.push(o.tag)}}return yield t.callHook("tags:beforeResolve",e),yield t.callHook("tags:resolve",e),yield t.callHook("tags:afterResolve",e),e.tags})},ssr:n};return[Uu,Ku,$u,Gu,Yu,Qu,Xu,ep,...(null==e?void 0:e.plugins)||[]].forEach(e=>l.use(e)),l.hooks.callHook("init",l),l}(e);return t.use(Iu()),tp=t}function op(e,t){return!e||"server"===e&&t||"client"===e&&!t}const rp="3"===ie[0];function ap(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t="function"==typeof(n=e)?n():H(n);var n;if(!e||!t)return t;if(Array.isArray(t))return t.map(e=>ap(e));if("object"==typeof t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&("titleTemplate"===n||"o"===n[0]&&"n"===n[1]?e[n]=H(t[n]):e[n]=ap(t[n]));return e}return t}const ip={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=ap(t.input)}}},lp="usehead";function sp(e={}){e.domDelayFn=e.domDelayFn||(e=>A(()=>setTimeout(()=>e(),0)));const t=np(e);return t.use(ip),t.install=function(e){return{install(t){rp&&(t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(lp,e))}}.install}(t),t}const cp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},dp="__unhead_injection_handler__";function up(){if(dp in cp)return cp[dp]();return Q(lp)||tp}function pp(e,t={}){const n=t.head||up();if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const o=f(!1),r=f({});$(()=>{r.value=o.value?{}:ap(t)});const a=e.push(r.value,n);h(r,e=>{a.patch(e)});q()&&(le(()=>{a.dispose()}),se(()=>{o.value=!0}),ce(()=>{o.value=!1}));return a}(n,e,t)}const mp="/images/qun1-Dqe52SBK.jpg",fp="/images/QQChannel-3Y7HiNKb.webp",hp={class:"footer"},vp={class:"max-w-[1350px] mx-auto"},gp={class:"footer-body"},bp={class:"flex w-1/2"},yp={class:"ml-[10%]"},wp={class:"ml-[10%]"},Ep={class:"!text-[#f0ac47] font-bold"},kp={class:"ml-[10%]"},_p={class:"logo"},Sp={class:"footer-icon"},xp={style:{"text-align":"center"}},Lp={style:{"text-align":"center"}},Cp={style:{"text-align":"center"}},Ap={href:"https://space.bilibili.com/3546602629237573",class:"!mb-0"},Mp={class:"footer-copyright"};const Tp={components:{navbar:lu,selfFooter:bn({setup(){const e=E({time:new Date,timer:void 0});return v(()=>{e.timer=setInterval(()=>{e.time=new Date},1e3)}),le(()=>{e.timer&&clearInterval(e.timer)}),c(s({},Z(e)),{wxPng:"/images/wx-JUJD_Ay5.webp",qrcode3:"/images/qrcode3-Cs1fl1NT.webp",qrcode1:mp,qrcodeCom:"/images/qrcode-com-DHVivkV_.webp",logo3Com:"/images/nsslogo3-com-rHuYVGYm.webp",QQChannel:fp})}},[["render",function(e,t,n,o,r,a){const i=I("router-link"),l=Ve,s=I("font-awesome-icon"),c=De,d=Je;return w(),b("div",hp,[y("div",vp,[y("div",gp,[y("div",bp,[y("div",null,[t[4]||(t[4]=y("h3",null,"NSSCTF",-1)),y("ul",null,[y("li",null,[S(i,{to:"/about/agreement"},{default:_(()=>t[0]||(t[0]=[C("使用条例",-1)])),_:1,__:[0]})]),y("li",null,[S(i,{to:"/about/privacy"},{default:_(()=>t[1]||(t[1]=[C("隐私政策",-1)])),_:1,__:[1]})]),y("li",null,[S(i,{to:"/user/range/warjax"},{default:_(()=>t[2]||(t[2]=[C("在线工具",-1)])),_:1,__:[2]})]),y("li",null,[S(i,{to:"/about/about"},{default:_(()=>t[3]||(t[3]=[C("关于我们",-1)])),_:1,__:[3]})])])]),y("div",yp,[t[9]||(t[9]=y("h3",null,"合作",-1)),y("ul",null,[y("li",null,[S(i,{to:"/about/sponsor"},{default:_(()=>t[5]||(t[5]=[C("商务合作",-1)])),_:1,__:[5]})]),y("li",null,[S(i,{to:"/about/contest"},{default:_(()=>t[6]||(t[6]=[C("比赛合作",-1)])),_:1,__:[6]})]),y("li",null,[S(i,{to:"/about/wip"},{default:_(()=>t[7]||(t[7]=[C("团队发展",-1)])),_:1,__:[7]})]),y("li",null,[S(i,{to:"/about/links"},{default:_(()=>t[8]||(t[8]=[C("友情链接",-1)])),_:1,__:[8]})])])]),y("div",wp,[t[13]||(t[13]=y("h3",null,"链接",-1)),y("ul",null,[y("li",null,[S(i,{to:"/about/thanks"},{default:_(()=>t[10]||(t[10]=[C("鸣谢名单",-1)])),_:1,__:[10]})]),y("li",null,[S(i,{to:"/about/cdkey"},{default:_(()=>t[11]||(t[11]=[C("CDKey",-1)])),_:1,__:[11]})]),y("li",Ep,[S(i,{to:"/about/vip"},{default:_(()=>t[12]||(t[12]=[C("VIP",-1)])),_:1,__:[12]})])])]),y("div",kp,[t[16]||(t[16]=y("h3",null,"其他",-1)),y("ul",null,[y("li",null,[S(i,{to:"/about/license"},{default:_(()=>t[14]||(t[14]=[C("开源协议",-1)])),_:1,__:[14]})]),y("li",null,[S(i,{to:"/about/faq"},{default:_(()=>t[15]||(t[15]=[C("常见问题",-1)])),_:1,__:[15]})])])])]),y("div",_p,[S(l,{src:o.logo3Com,class:"w-[270px] h-[133px]"},null,8,["src"])])]),y("div",Sp,[S(d,{class:"items-center"},{default:_(()=>[S(c,{width:"200",placement:"top",trigger:"hover"},{reference:_(()=>[S(s,{icon:["fas","hashtag"],size:"lg",class:"qq"})]),default:_(()=>[y("div",xp,[y("div",null,[S(l,{src:o.QQChannel},null,8,["src"])])])]),_:1}),S(c,{placement:"top",trigger:"hover"},{reference:_(()=>[S(s,{icon:["fab","qq"],size:"lg",class:"qq"})]),default:_(()=>[y("div",Lp,[y("div",null,[S(l,{src:o.qrcode1},null,8,["src"])]),y("div",null,[S(l,{src:o.qrcode3},null,8,["src"]),t[17]||(t[17]=y("b",null,"NSSCTF用户群 2",-1))])])]),_:1}),S(c,{width:"200",placement:"top",trigger:"hover"},{reference:_(()=>[S(s,{icon:["fab","weixin"],size:"lg",class:"qq"})]),default:_(()=>[y("div",Cp,[y("div",null,[S(l,{src:o.wxPng},null,8,["src"])])])]),_:1}),y("a",Ap,[S(s,{icon:["fab","bilibili"],size:"lg",class:"qq"})])]),_:1})]),y("div",Mp,[t[19]||(t[19]=y("a",{href:"https://beian.miit.gov.cn",target:"_blank"},"蜀ICP备2023004548号-1",-1)),t[20]||(t[20]=y("span",null,"2021-2026 © NSS All rights reserved. ",-1)),S(i,{to:"/about/version"},{default:_(()=>t[18]||(t[18]=[C("版本:V2.7.5",-1)])),_:1,__:[18]})])])])}],["__scopeId","data-v-8b3ee896"]]),Moon:Xe,Sunny:Qe,Headset:Ze},setup(){const e=T(),t=X(),n=W(),o=U(()=>{const e=t.path;if("/"===e||""===e)return"https://www.nssctf.cn/";return"https://www.nssctf.cn"+t.fullPath.replace(/#.*$/,"")});pp({link:[{rel:"canonical",href:o.value}],meta:[{property:"og:url",content:o.value}]}),e.afterEach(()=>{pp({link:[{rel:"canonical",href:o.value}],meta:[{property:"og:url",content:o.value}]})});const r=f(!0),a=n.getters["user/getState"],i=U(()=>n.getters["user/isLogin"]),l=f(!1),s=f(!1);de("ec",st);de("reload",()=>{r.value=!1,A(()=>{r.value=!0})});const c=f(!1);let d=null,u=null;const m=()=>{let e=document.documentElement.clientHeight||document.body.clientHeight,t=document.documentElement.scrollTop;c.value=t>=e};window.addEventListener("scroll",m);const h=f(n.getters["user/isLogin"]&&0===n.getters["user/getLevel"]);let b=!1;const y=()=>p(this,null,function*(){if(b)return!1;if(!localStorage.getItem("_nss_user_remember"))return!1;b=!0;try{const e=yield At.post("/user/login/rtoken/",{});return 200===e.code?(n.dispatch("user/userLogin",{userinfo:e.data}),w(!0),!0):(localStorage.removeItem("_nss_user_remember"),!1)}catch(e){return localStorage.removeItem("_nss_user_remember"),!1}finally{b=!1}});v(()=>p(this,null,function*(){if(!n.getters["user/isLogin"]){(yield y())&&"/user/login"==t.path&&(e.push(decodeURIComponent(t.query.redirect||"/")),vt.success({title:`${La()}`,message:`欢迎回来,${n.getters["user/getUsername"]}`,duration:2500}))}n.getters["user/isLogin"]&&(w(!0),At.post("/user/info/unread/").then(e=>{200===e.code&&n.dispatch("user/updateMessageState",{unread:e.data})}).catch(()=>{}))}));const w=e=>{e&&n.getters["user/isLogin"]?(u&&clearInterval(u),u=setInterval(()=>{At.post("/user/updateonline/"),n.dispatch("user/updateLogin"),(new Date).getTime()},6e5)):!e&&u&&clearInterval(u)};return de("updateOnline",w),g(()=>{u&&clearInterval(u)}),e.beforeEach((t,o,r)=>p(this,null,function*(){let i=!0;if(t.path&&void 0!==window._hmt&&window._hmt.push(["_trackPageview",t.fullPath]),t.meta.requireLogin)if("/user/login"===o.path);else if(!n.getters["user/isLogin"]){if(!(yield y())){const o=yield Ko();200===o.code?yield n.dispatch("user/updateUserInfo",{userinfo:o.data}):(kt("user_state"),localStorage.removeItem("_nss_user_remember"),vt.info({message:"请先登录!",duration:2e3}),i=!1,e.push({path:"/user/login",query:{redirect:t.fullPath}}))}}t.meta.requireLevel&&(a.userinfo.level&t.meta.requireLevel)!==t.meta.requireLevel&&(vt.error({message:"您没有权限访问!"}),i=!1),t.meta.requireRole&&(a.userinfo.role&t.meta.requireRole)!==t.meta.requireRole&&(vt.error({message:"您没有权限访问!"}),i=!1),i&&r()})),{feedbackDialogVisible:s,showFeedbackDialog:()=>{s.value=!0},qrcode1:mp,QQChannel:fp,isRouterAlive:r,isFirst:l,isLogin:i,top:top,Top:et,bindFlag:h,btnShow:c,timer:d,backTop:()=>{d=setInterval(()=>{let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,t=e/5;document.documentElement.scrollTop=e-t,0===e&&clearInterval(d)},30)},scrollToTop:m}}},Dp={key:0,id:"app"},Op={key:0,class:"fixed right-[50px] bottom-[150px] z-[2]"},Hp={class:"fixed right-[50px] bottom-[140px] z-[2]"},Ip={class:"text-center"},Pp={class:"sideButton fixed right-[50px] bottom-[90px] z-[2]"},jp={key:2,class:"sideButton fixed right-[50px] bottom-[40px] z-[2]"};const Np=bn(Tp,[["render",function(e,t,n,o,r,a){const i=lu,l=nt,s=Se,c=I("router-link"),d=jo,u=I("router-view"),p=I("font-awesome-icon"),m=Ve,f=De,h=I("Headset"),v=Ne,g=yn,E=ot,x=I("selfFooter"),L=rt,A=tt;return o.isFirst?(w(),k(u,{key:1})):(w(),b("div",Dp,[S(A,null,{default:_(()=>[S(l,{class:"nav-header"},{default:_(()=>[S(i)]),_:1}),S(E,{class:"min-w-[1300px] mt-[50px]"},{default:_(()=>[o.bindFlag?(w(),b("div",Op,[S(c,{to:"/user/phone"},{default:_(()=>[S(s,{type:"primary"},{default:_(()=>t[1]||(t[1]=[C("绑定手机",-1)])),_:1,__:[1]})]),_:1})])):j("",!0),o.isLogin?(w(),k(d,{key:1})):j("",!0),S(ue,{name:"nss-global-transition",mode:"out-in"},{default:_(()=>[o.isRouterAlive?(w(),k(u,{key:0})):j("",!0)]),_:1}),S(f,{placement:"left",trigger:"hover"},{reference:_(()=>[y("div",Hp,[S(s,{circle:""},{default:_(()=>[S(p,{icon:["fab","qq"]})]),_:1})])]),default:_(()=>[y("div",Ip,[y("div",null,[S(m,{src:o.QQChannel},null,8,["src"])]),y("div",null,[S(m,{src:o.qrcode1},null,8,["src"])])])]),_:1}),y("div",Pp,[o.isLogin?(w(),k(s,{key:0,circle:"",onClick:o.showFeedbackDialog,title:"反馈"},{default:_(()=>[S(v,null,{default:_(()=>[S(h)]),_:1})]),_:1},8,["onClick"])):j("",!0),S(g,{modelValue:o.feedbackDialogVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>o.feedbackDialogVisible=e)},null,8,["modelValue"])]),o.btnShow?(w(),b("div",jp,[S(s,{circle:"",onClick:o.backTop,icon:o.Top},null,8,["onClick","icon"])])):j("",!0)]),_:1}),S(L,{class:"block !p-0 min-h-[230px] min-w-[1300px]"},{default:_(()=>[S(x)]),_:1})]),_:1})]))}],["__scopeId","data-v-2da2651e"]]),Rp=2,zp=i(2,10),Vp=i(2,11),Bp=i(2,12),qp=i(2,13),Up=zp|Vp|Bp|qp|i(2,14),Fp=i(2,15)|i(2,16)|i(2,17)|i(2,18)|i(2,19),$p=i(2,30),Wp=["启动请求排队中","靶机端收到消息","正在创建容器","等待转发出网","完成"],Gp=["","WEB","PWN","REVERSE","CRYPTO","MISC","MOBILE","ETH","IOT","AI","实战","靶场"],Kp=["","会员","金币","工坊"],Yp=[{value:"WEB",label:"WEB",children:[{value:"SQL注入",label:"SQL注入",children:[{value:"POST注入",label:"POST注入"},{value:"布尔盲注",label:"布尔盲注"},{value:"时间盲注",label:"时间盲注"},{value:"报错注入",label:"报错注入"},{value:"宽字节注入",label:"宽字节注入"},{value:"堆叠注入",label:"堆叠注入"},{value:"Insert注入",label:"Insert注入"},{value:"Update注入",label:"Update注入"},{value:"Cookie注入",label:"Cookie注入"},{value:"关键字绕过",label:"关键字绕过"},{value:"字符绕过",label:"字符绕过"},{value:"空格绕过",label:"空格绕过"},{value:"逗号绕过",label:"逗号绕过"},{value:"二次注入",label:"二次注入"},{value:"无列名注入",label:"无列名注入"},{value:"Quine注入",label:"Quine注入"},{value:"Unique注入",label:"Unique注入"},{value:"NoSQL盲注",label:"NoSQL盲注"},{value:"UDF提权",label:"UDF提权"}]},{value:"文件上传",label:"文件上传",children:[{value:"双写后缀",label:"双写后缀"},{value:"%00截断",label:"%00截断"},{value:".htaccess",label:".htaccess"},{value:"MIME绕过",label:"MIME绕过"},{value:"文件头绕过",label:"文件头绕过"},{value:"二次渲染",label:"二次渲染"},{value:"条件竞争",label:"条件竞争"}]},{value:"RCE",label:"RCE",children:[{value:"RCE",label:"RCE"},{value:"空格绕过",label:"空格绕过"},{value:"WAF绕过",label:"WAF绕过"},{value:"绕过open_basedir",label:"绕过open_basedir"},{value:"无字母RCE",label:"无字母RCE"},{value:"无数RCE",label:"无数RCE"},{value:"无回显RCE",label:"无回显RCE"}]},{value:"PHP",label:"PHP",children:[{value:"变量覆盖",label:"变量覆盖"},{value:"弱比较",label:"弱比较"},{value:"PHP伪协议",label:"PHP伪协议"},{value:"Smarty",label:"Smarty"},{value:"Twig",label:"Twig"},{value:"数组绕过",label:"数组绕过"},{value:"短标签",label:"短标签"},{value:"反序列化",label:"反序列化"},{value:"diable_function绕过",label:"diable_function绕过"},{value:"无参RCE",label:"无参RCE"},{value:"文件包含",label:"文件包含"},{value:"正则绕过",label:"正则绕过"},{value:"临时文件",label:"临时文件"},{value:"Phar反序列化",label:"Phar反序列化"},{value:"随机数预测",label:"随机数预测"},{value:"Soap",label:"Soap"},{value:"字符串逃逸",label:"字符串逃逸"},{value:"PCRE",label:"PCRE"},{value:"create_function",label:"create_function"},{value:"FFI",label:"FFI"},{value:"thinkPHP",label:"thinkPHP"},{value:"Laravel",label:"Laravel"},{value:"pearcmd",label:"pearcmd"}]},{value:"Python",label:"Python",children:[{value:"Flask",label:"Flask"},{value:"SSTI",label:"SSTI"},{value:"Jinja2",label:"Jinja2"},{value:"Cookie伪造",label:"Cookie伪造"},{value:"反序列化",label:"反序列化"},{value:"Tornado",label:"Tornado"},{value:"Django",label:"Django"},{value:"DebugRCE",label:"DebugRCE"},{value:"沙盒逃逸",label:"沙盒逃逸"}]},{value:"NodeJS",label:"NodeJS",children:[{value:"原型链污染",label:"原型链污染"},{value:"字符绕过",label:"字符绕过"},{value:"沙盒逃逸",label:"沙盒逃逸"},{value:"Ejs",label:"Ejs"},{value:"SSTI",label:"SSTI"},{value:"IIFE",label:"IIFE"}]},{value:"Java",label:"Java",children:[{value:"JSP",label:"JSP"},{value:"Spring",label:"Spring"},{value:"shiro",label:"shiro"},{value:"Log4j",label:"Log4j"},{value:"FastJson",label:"FastJson"},{value:"WEB-INF",label:"WEB-INF"},{value:"Java反序列化",label:"Java反序列化"},{value:"JNDI",label:"JNDI"},{value:"Spel",label:"Spel"}]},{value:"XSS",label:"XSS",children:[{value:"XSS",label:"XSS"},{value:"CSP",label:"CSP"},{value:"CSRF",label:"CSRF"},{value:"存储型XSS",label:"存储型XSS"},{value:"反射型XSS",label:"反射型XSS"},{value:"DOMXSS",label:"DOMXSS"}]},{value:"中间件攻击",label:"中间件攻击",children:[{value:"JWT",label:"JWT"},{value:"SSRF",label:"SSRF"},{value:"Redis",label:"Redis"},{value:"主从复制",label:"主从复制"},{value:"XXE",label:"XXE"},{value:"XPATH注入",label:"XPATH注入"},{value:"GraphQL注入",label:"GraphQL注入"},{value:"SQLite",label:"SQLite"},{value:"URL污染",label:"URL污染"},{value:"DNS污染",label:"DNS污染"},{value:"DNS重绑定",label:"DNS重绑定"},{value:"HTTP走私",label:"HTTP走私"},{value:"Apache",label:"Apache"},{value:"Nginx",label:"Nginx"},{value:"CRLF",label:"CRLF"}]},{value:"Linux相关",label:"Linux相关",children:[{value:"SE权限",label:"SE权限"},{value:"SUID提权",label:"SUID提权"},{value:"权限提升",label:"权限提升"},{value:"/proc",label:"/proc"},{value:"定时任务",label:"定时任务"},{value:"Linux命令",label:"Linux命令"}]},{value:"其他",label:"其他",children:[{value:"HTTP协议",label:"HTTP协议"},{value:"JS分析",label:"JS分析"},{value:"弱口令",label:"弱口令"},{value:"目录扫描",label:"目录扫描"},{value:"信息收集",label:"信息收集"},{value:"目录穿越",label:"目录穿越"},{value:"源码泄漏",label:"源码泄漏"},{value:".git泄露",label:".git泄露"},{value:".svn泄露",label:".svn泄露"},{value:"CVS泄露",label:"CVS泄露"},{value:".ng泄露",label:".ng泄露"},{value:"前端绕过",label:"前端绕过"},{value:"vim泄漏",label:"vim泄漏"},{value:"代码审计",label:"代码审计"},{value:"DNSLOG",label:"DNSLOG"},{value:"HTTPLOG",label:"HTTPLOG"},{value:"未授权访问",label:"未授权访问"},{value:"GOB",label:"GOB"}]}]},{value:"PWN",label:"PWN",children:[{value:"栈",label:"栈",children:[{value:"PIE保护",label:"PIE保护"},{value:"shellcode",label:"shellcode"},{value:"栈溢出",label:"栈溢出"},{value:"整数溢出",label:"整数溢出"},{value:"栈迁移",label:"栈迁移"},{value:"栈保护",label:"栈保护"},{value:"栈对齐",label:"栈对齐"},{value:"OneGadget",label:"OneGadget"},{value:"StackSmash",label:"StackSmash"},{value:"ret2text",label:"ret2text"},{value:"ret2libc",label:"ret2libc"},{value:"ret2syscall",label:"ret2syscall"},{value:"ret2shellcode",label:"ret2shellcode"},{value:"ret2csu",label:"ret2csu"},{value:"ret2reg",label:"ret2reg"},{value:"BlindROP",label:"BlindROP"},{value:"ret2dlresolve",label:"ret2dlresolve"},{value:"ret2VDSO",label:"ret2VDSO"},{value:"SROP",label:"SROP"}]},{value:"IO",label:"IO",children:[{value:"格式化字符串",label:"格式化字符串"},{value:"Libc泄漏",label:"Libc泄漏"},{value:"ORW",label:"ORW"}]},{value:"堆",label:"堆",children:[{value:"DoubleFree",label:"DoubleFree"},{value:"堆风水",label:"堆风水"},{value:"OffByOne",label:"OffByOne"},{value:"OffByNull",label:"OffByNull"},{value:"malloc_hook",label:"malloc_hook"},{value:"unlink",label:"unlink"},{value:"UAF",label:"UAF"},{value:"UnsortedBin",label:"UnsortedBin"},{value:"Tacahe",label:"Tacahe"},{value:"FastBin",label:"FastBin"},{value:"largeBin",label:"largeBin"},{value:"HouseOfPig",label:"HouseOfPig"},{value:"HouseOfForce",label:"HouseOfForce"},{value:"HouseOfLore",label:"HouseOfLore"},{value:"HouseOfRabbit",label:"HouseOfRabbit"},{value:"HouseOfRoman",label:"HouseOfRoman"},{value:"HouseOfEinherjar",label:"HouseOfEinherjar"}]},{value:"IO_FILE",label:"IO_FILE",children:[{value:"IO_FILE",label:"IO_FILE"},{value:"伪装IO_FILE",label:"伪装IO_FILE"},{value:"FSOP",label:"FSOP"},{value:"HouseOfOrange",label:"HouseOfOrange"}]},{value:"其他",label:"其他",children:[{value:"ROPgadget",label:"ROPgadget"},{value:"数据结构",label:"数据结构"},{value:"gadget",label:"gadget"},{value:"PLT改写",label:"PLT改写"},{value:"GOT劫持",label:"GOT劫持"},{value:"LibcSearcher",label:"LibcSearcher"},{value:"自动化路径求解",label:"自动化路径求解"},{value:"Angr",label:"Angr"},{value:"kernel",label:"kernel"},{value:"free_hook劫持",label:"free_hook劫持"},{value:"FUZZ",label:"FUZZ"},{value:"TOCTOU",label:"TOCTOU"},{value:"__malloc_context",label:"__malloc_context"}]}]},{value:"REVERSE",label:"REVERSE",children:[{value:"语言逆向",label:"语言逆向",children:[{value:"Python",label:"Python"},{value:"C",label:"C"},{value:"C#",label:"C#"},{value:"C++",label:"C++"},{value:"Rust",label:"Rust"},{value:"Ruby",label:"Ruby"},{value:"JAVA",label:"JAVA"},{value:"PYC",label:"PYC"},{value:"Golang",label:"Golang"},{value:"WASM",label:"WASM"},{value:".NET",label:".NET"},{value:"ASM",label:"ASM"},{value:"bytecode",label:"bytecode"},{value:"Risc-V",label:"Risc-V"},{value:"ARM",label:"ARM"},{value:"MFC",label:"MFC"}]},{value:"算法分析",label:"算法分析",children:[{value:"Base64",label:"Base64"},{value:"RC4",label:"RC4"},{value:"DFS",label:"DFS"},{value:"BFS",label:"BFS"},{value:"TEA",label:"TEA"},{value:"XTEA",label:"XTEA"},{value:"ChaCha20",label:"ChaCha20"},{value:"Z3",label:"Z3"},{value:"3SAT",label:"3SAT"},{value:"XOR",label:"XOR"},{value:"迷宫",label:"迷宫"},{value:"斐波那契",label:"斐波那契"},{value:"自定义逻辑",label:"自定义逻辑"}]},{value:"逆向技术",label:"逆向技术",children:[{value:"SMC",label:"SMC"},{value:"脱壳",label:"脱壳"},{value:"花指令",label:"花指令"},{value:"反调试",label:"反调试"},{value:"VM",label:"VM"},{value:"VMP",label:"VMP"},{value:"VEH",label:"VEH"},{value:"动态调试",label:"动态调试"},{value:"HOOK",label:"HOOK"},{value:"UPX壳",label:"UPX壳"},{value:"平坦化",label:"平坦化"},{value:"插桩",label:"插桩"},{value:"堆栈修复",label:"堆栈修复"},{value:"进程保护",label:"进程保护"},{value:"控制流",label:"控制流"},{value:"ptrace",label:"ptrace"},{value:"符号表",label:"符号表"},{value:"patch",label:"patch"},{value:"中断",label:"中断"},{value:"AST",label:"AST"},{value:"TLS",label:"TLS"},{value:"安卓逆向",label:"安卓逆向"},{value:"重定向表",label:"重定向表"}]},{value:"其他",label:"其他",children:[{value:"Ollydbg",label:"Ollydbg"},{value:"虚函数表",label:"虚函数表"},{value:"大小端序",label:"大小端序"},{value:"IDC脚本",label:"IDC脚本"},{value:"CheatEngine",label:"CheatEngine"},{value:"LLVM",label:"LLVM"},{value:"keypatch",label:"keypatch"},{value:"GDB",label:"GDB"},{value:"固件逆向",label:"固件逆向"},{value:"模拟器",label:"模拟器"},{value:"PE结构",label:"PE结构"},{value:"Angr",label:"Angr"}]}]},{value:"CRYPTO",label:"CRYPTO",children:[{value:"流密码",label:"流密码",children:[{value:"伪随机",label:"伪随机"},{value:"随机数预测",label:"随机数预测"},{value:"MT19937",label:"MT19937"},{value:"LCG",label:"LCG"},{value:"LFSR",label:"LFSR"},{value:"B-M算法",label:"B-M算法"},{value:"RC4",label:"RC4"},{value:"RC6",label:"RC6"}]},{value:"RSA",label:"RSA",children:[{value:"素数分解",label:"素数分解"},{value:"Rabin",label:"Rabin"},{value:"p-q过小",label:"p-q过小"},{value:"dp泄露",label:"dp泄露"},{value:"p-1光滑",label:"p-1光滑"},{value:"共享素数",label:"共享素数"},{value:"p+1光滑",label:"p+1光滑"},{value:"低加密指数攻击",label:"低加密指数攻击"},{value:"小明文攻击",label:"小明文攻击"},{value:"CopperSmith",label:"CopperSmith"},{value:"不互素",label:"不互素"},{value:"AMM",label:"AMM"},{value:"共模攻击",label:"共模攻击"},{value:"维纳攻击",label:"维纳攻击"},{value:"d泄露攻击",label:"d泄露攻击"},{value:"广播攻击",label:"广播攻击"},{value:"扩展维纳攻击",label:"扩展维纳攻击"},{value:"已知p低位",label:"已知p低位"}]},{value:"古典密码",label:"古典密码",children:[{value:"ROT",label:"ROT"},{value:"栅栏密码",label:"栅栏密码"},{value:"仿射密码",label:"仿射密码"},{value:"凯撒密码",label:"凯撒密码"},{value:"乘法密码",label:"乘法密码"},{value:"Atbash",label:"Atbash"},{value:"维吉尼亚",label:"维吉尼亚"},{value:"词频分析",label:"词频分析"},{value:"字频统计",label:"字频统计"},{value:"Base家族",label:"Base家族"},{value:"HILL密码",label:"HILL密码"},{value:"摩斯代码",label:"摩斯代码"},{value:"ADFGX密码",label:"ADFGX密码"}]},{value:"分组密码",label:"分组密码",children:[{value:"CBC",label:"CBC"},{value:"ECB",label:"ECB"},{value:"OFB",label:"OFB"},{value:"CFB",label:"CFB"},{value:"GCM",label:"GCM"},{value:"CRT",label:"CRT"},{value:"尾字节爆破",label:"尾字节爆破"},{value:"字节反转攻击",label:"字节反转攻击"},{value:"预言填充攻击",label:"预言填充攻击"}]},{value:"块加密",label:"块加密",children:[{value:"Feistel",label:"Feistel"},{value:"DES",label:"DES"},{value:"3DES",label:"3DES"},{value:"AES",label:"AES"},{value:"子密钥泄漏",label:"子密钥泄漏"}]},{value:"非对称密码",label:"非对称密码",children:[{value:"格密码",label:"格密码"},{value:"DSA",label:"DSA"},{value:"已知K攻击",label:"已知K攻击"},{value:"K共享攻击",label:"K共享攻击"},{value:"线性K攻击",label:"线性K攻击"},{value:"证书格式",label:"证书格式"},{value:"PEM",label:"PEM"},{value:"DER",label:"DER"},{value:"PKCS",label:"PKCS"},{value:"ECC",label:"ECC"},{value:"ECDSA",label:"ECDSA"},{value:"ElGamal",label:"ElGamal"},{value:"LSB攻击",label:"LSB攻击"},{value:"SchmidtSamoa",label:"SchmidtSamoa"},{value:"背包密码",label:"背包密码"},{value:"选择明文攻击",label:"选择明文攻击"},{value:"PohligHellman",label:"PohligHellman"}]},{value:"格相关",label:"格相关",children:[{value:"LWE",label:"LWE"},{value:"HNP",label:"HNP"},{value:"RLWE",label:"RLWE"},{value:"NTRU",label:"NTRU"},{value:"SVP",label:"SVP"},{value:"CVP",label:"CVP"},{value:"格基规约",label:"格基规约"},{value:"高斯消元",label:"高斯消元"},{value:"CSIDH",label:"CSIDH"},{value:"SIDH",label:"SIDH"},{value:"Groebner Basis",label:"Groebner Basis"}]},{value:"HASH算法",label:"HASH算法",children:[{value:"HMAC",label:"HMAC"},{value:"MD5爆破",label:"MD5爆破"},{value:"Hash爆破",label:"Hash爆破"},{value:"哈希长度扩展攻击",label:"哈希长度扩展攻击"}]},{value:"国密算法",label:"国密算法",children:[{value:"SM2",label:"SM2"},{value:"SM3",label:"SM3"},{value:"SM4",label:"SM4"}]},{value:"其他",label:"其他",children:[{value:"费马小定理",label:"费马小定理"},{value:"连分数",label:"连分数"},{value:"CRT",label:"CRT"},{value:"OPT",label:"OPT"},{value:"BSGS",label:"BSGS"},{value:"离散对数",label:"离散对数"},{value:"二次剩余",label:"二次剩余"},{value:"线性代数",label:"线性代数"},{value:"威尔逊定理",label:"威尔逊定理"},{value:"矩阵",label:"矩阵"},{value:"逆元",label:"逆元"},{value:"群环域",label:"群环域"},{value:"公因数",label:"公因数"},{value:"欧拉定理",label:"欧拉定理"},{value:"欧拉函数",label:"欧拉函数"},{value:"欧拉准则",label:"欧拉准则"},{value:"扩展欧几里得",label:"扩展欧几里得"},{value:"矩阵快速幂",label:"矩阵快速幂"},{value:"二项式定理",label:"二项式定理"},{value:"MITM",label:"MITM"},{value:"侧信道",label:"侧信道"},{value:"二分",label:"二分"},{value:"HenselLifting",label:"HenselLifting"}]}]},{value:"MISC",label:"MISC",children:[{value:"图片隐写",label:"图片隐写",children:[{value:"宽高修改",label:"宽高修改"},{value:"结构隐写",label:"结构隐写"},{value:"LSB",label:"LSB"},{value:"EXIF",label:"EXIF"},{value:"FFT隐写",label:"FFT隐写"},{value:"JPG隐写",label:"JPG隐写"},{value:"GIF提取",label:"GIF提取"},{value:"盲水印",label:"盲水印"},{value:"数字水印",label:"数字水印"},{value:"汉信码",label:"汉信码"},{value:"像素处理",label:"像素处理"},{value:"图片分离",label:"图片分离"},{value:"光栅图片",label:"光栅图片"},{value:"IDAT隐写",label:"IDAT隐写"},{value:"图片修复",label:"图片修复"},{value:"Arnold",label:"Arnold"},{value:"Steghide",label:"Steghide"},{value:"Silenteye",label:"Silenteye"},{value:"Outguess",label:"Outguess"},{value:"APNG",label:"APNG"},{value:"EZStego",label:"EZStego"},{value:"二维码",label:"二维码"},{value:"马赛克",label:"马赛克"}]},{value:"音视频隐写",label:"音视频隐写",children:[{value:"波形图隐写",label:"波形图隐写"},{value:"频谱图隐写",label:"频谱图隐写"},{value:"高低频提取",label:"高低频提取"},{value:"音频差分",label:"音频差分"},{value:"曼切斯特编码",label:"曼切斯特编码"},{value:"音频倒放",label:"音频倒放"},{value:"帧提取",label:"帧提取"},{value:"DTMF",label:"DTMF"},{value:"SSTV",label:"SSTV"},{value:"MP3隐写",label:"MP3隐写"},{value:"DeepSound",label:"DeepSound"},{value:"电话音",label:"电话音"},{value:"StegoVideo",label:"StegoVideo"}]},{value:"编码分析",label:"编码分析",children:[{value:"Aaencode",label:"Aaencode"},{value:"Uuencode",label:"Uuencode"},{value:"阴阳怪气加密",label:"阴阳怪气加密"},{value:"社会核心价值观",label:"社会核心价值观"},{value:"IEEE754",label:"IEEE754"},{value:"JSFu*k",label:"JSFu*k"},{value:"ASCII",label:"ASCII"},{value:"Ook编码",label:"Ook编码"},{value:"Rabbit编码",label:"Rabbit编码"},{value:"BrainFu*k",label:"BrainFu*k"},{value:"Emoji编码",label:"Emoji编码"},{value:"字符编码",label:"字符编码"},{value:"whitespace编程",label:"whitespace编程"},{value:"Braille盲文",label:"Braille盲文"},{value:"跳舞的小人",label:"跳舞的小人"},{value:"与佛论禅",label:"与佛论禅"},{value:"猪圈密码",label:"猪圈密码"},{value:"当铺密码",label:"当铺密码"},{value:"键盘密码",label:"键盘密码"},{value:"云隐密码",label:"云隐密码"},{value:"代码混淆",label:"代码混淆"}]},{value:"压缩包分析",label:"压缩包分析",children:[{value:"伪加密",label:"伪加密"},{value:"压缩包结构",label:"压缩包结构"},{value:"密码爆破",label:"密码爆破"},{value:"掩码攻击",label:"掩码攻击"},{value:"CRC爆破",label:"CRC爆破"},{value:"明文攻击",label:"明文攻击"}]},{value:"文档隐写",label:"文档隐写",children:[{value:"word隐写",label:"word隐写"},{value:"word文件格式",label:"word文件格式"},{value:"PDF隐写",label:"PDF隐写"},{value:"零宽隐写",label:"零宽隐写"},{value:"文字隐藏",label:"文字隐藏"},{value:"TTF隐写",label:"TTF隐写"},{value:"office文档破解",label:"office文档破解"},{value:"wbStego",label:"wbStego"}]},{value:"流量分析",label:"流量分析",children:[{value:"日志审计",label:"日志审计"},{value:"USB协议",label:"USB协议"},{value:"网络协议",label:"网络协议"},{value:"鼠标流量",label:"鼠标流量"},{value:"键盘流量",label:"键盘流量"},{value:"打印机流量",label:"打印机流量"},{value:"手柄流量",label:"手柄流量"},{value:"协议分析",label:"协议分析"},{value:"无线破解",label:"无线破解"},{value:"ICMP",label:"ICMP"},{value:"TLS流量",label:"TLS流量"},{value:"Webshell流量",label:"Webshell流量"},{value:"混淆流量",label:"混淆流量"},{value:"Wifi流量",label:"Wifi流量"},{value:"蓝牙流量",label:"蓝牙流量"},{value:"Aircrack",label:"Aircrack"},{value:"数位板流量",label:"数位板流量"},{value:"IPMI协议",label:"IPMI协议"},{value:"VMESS",label:"VMESS"}]},{value:"电子取证",label:"电子取证",children:[{value:"内存取证",label:"内存取证"},{value:"磁盘取证",label:"磁盘取证"},{value:"数据恢复",label:"数据恢复"},{value:"注册表",label:"注册表"},{value:"firepwd",label:"firepwd"},{value:"LSA",label:"LSA"},{value:"VeraCrypt",label:"VeraCrypt"},{value:"NTFS",label:"NTFS"},{value:"EXT",label:"EXT"},{value:"GPG",label:"GPG"},{value:"微信取证",label:"微信取证"},{value:"虚拟磁盘",label:"虚拟磁盘"},{value:"行为分析",label:"行为分析"},{value:"数据库取证",label:"数据库取证"},{value:"浏览器取证",label:"浏览器取证"},{value:"mimakatz",label:"mimakatz"},{value:"手机取证",label:"手机取证"},{value:"手环取证",label:"手环取证"}]},{value:"工业控制",label:"工业控制",children:[{value:"PLC",label:"PLC"},{value:"仿真",label:"仿真"},{value:"Modbus",label:"Modbus"},{value:"S7comm",label:"S7comm"},{value:"MMS协议",label:"MMS协议"},{value:"工控流量",label:"工控流量"},{value:"RFCOMM协议",label:"RFCOMM协议"},{value:"UDS诊断协议",label:"UDS诊断协议"},{value:"智能车协议",label:"智能车协议"}]},{value:"JAIL",label:"JAIL",children:[{value:"沙盒逃逸",label:"沙盒逃逸"},{value:"SE权限",label:"SE权限"},{value:"SUID提权",label:"SUID提权"},{value:"权限提升",label:"权限提升"},{value:"/proc",label:"/proc"},{value:"定时任务",label:"定时任务"},{value:"Linux命令",label:"Linux命令"}]},{value:"其他",label:"其他",children:[{value:"OSINT",label:"OSINT"},{value:"文件结构",label:"文件结构"},{value:"PYC隐写",label:"PYC隐写"},{value:"NTFS隐写",label:"NTFS隐写"},{value:"脚本编写",label:"脚本编写"},{value:"PDU",label:"PDU"},{value:"坦纳图",label:"坦纳图"},{value:"数字电路",label:"数字电路"},{value:"LDPC",label:"LDPC"}]}]},{value:"ETH",label:"ETH",children:[{value:"智能合约",label:"智能合约",children:[{value:"EVM",label:"EVM"},{value:"Solidity",label:"Solidity"},{value:"合约地址预测",label:"合约地址预测"},{value:"Storage",label:"Storage"}]},{value:"区块链",label:"区块链",children:[{value:"区块链",label:"区块链"},{value:"Ed25519",label:"Ed25519"}]}]},{value:"AI",label:"AI",children:[{value:"AI",label:"AI",children:[{value:"KNN",label:"KNN"},{value:"PyTorch",label:"PyTorch"},{value:"TensorFlow",label:"TensorFlow"},{value:"Transform",label:"Transform"},{value:"神经网络",label:"神经网络"},{value:"病态矩阵",label:"病态矩阵"},{value:"梯度泄露攻击",label:"梯度泄露攻击"},{value:"AutoEncoder",label:"AutoEncoder"},{value:"搜索",label:"搜索"}]}]},{value:"其他",label:"其他",children:[{value:"CVE",label:"CVE",children:[{value:"CVE-2007-4559",label:"CVE-2007-4559"},{value:"CVE-2010-2967",label:"CVE-2010-2967"},{value:"CVE-2013-4786",label:"CVE-2013-4786"},{value:"CVE-2016-7124",label:"CVE-2016-7124"},{value:"CVE-2017-15715",label:"CVE-2017-15715"},{value:"CVE-2019-11834",label:"CVE-2019-11834"},{value:"CVE-2019-11835",label:"CVE-2019-11835"},{value:"CVE-2020-1938",label:"CVE-2020-1938"},{value:"CVE-2020-7066",label:"CVE-2020-7066"},{value:"CVE-2020-28483",label:"CVE-2020-28483"},{value:"CVE-2021-36794",label:"CVE-2021-36794"},{value:"CVE-2021-41773",label:"CVE-2021-41773"},{value:"CVE-2021-44228",label:"CVE-2021-44228"},{value:"CVE-2021-43798",label:"CVE-2021-43798"},{value:"CVE-2022-0760",label:"CVE-2022-0760"},{value:"CVE-2022-1292",label:"CVE-2022-1292"}]},{value:"CNVD",label:"CNVD",children:[{value:"CNVD-2022-06422",label:"CNVD-2022-06422"}]},{value:"靶场",label:"靶场",children:[{value:"综合靶场",label:"综合靶场"},{value:"域渗透",label:"域渗透"}]}]}],Jp=["WEB","SQL注入","POST注入","布尔盲注","时间盲注","报错注入","宽字节注入","堆叠注入","Insert注入","Update注入","Cookie注入","关键字绕过","空格绕过","字符绕过","二次注入","无列名注入","quine注入","unique注入","nosql盲注","文件上传","双写后缀","%00截断",".htaccess","MIME绕过","文件头绕过","二次渲染","条件竞争","RCE","RCE","空格绕过","WAF绕过","绕过open_basedir","无字母RCE","无数RCE","无回显RCE","PHP","变量覆盖","弱比较","PHP伪协议","Smarty","Twig","数组绕过","短标签","反序列化","diable_function绕过","无参RCE","文件包含","正则绕过","临时文件","Phar反序列化","随机数预测","Soap","字符串逃逸","PCRE","create_function","FFI","thinkPHP","Laravel","pearcmd","Python","Flask","SSTI","Jinja2","Cookie伪造","反序列化","Tornado","Django","DebugRCE","沙盒逃逸","NodeJS","原型链污染","字符绕过","沙盒逃逸","Ejs","SSTI","IIFE","Java","JSP","Spring","shiro","Log4j","FastJson","WEB-INF","Java反序列化","JNDI","Spel","XSS","XSS","CSP","CSRF","存储型XSS","反射型XSS","DOMXSS","中间件攻击","JWT","SSRF","Redis","主从复制","XXE","XPATH注入","GraphQL注入","SQLite","URL污染","DNS污染","DNS重绑定","HTTP走私","Apache","Nginx","CRLF","Linux相关","SE权限","SUID提权","权限提升","/proc","定时任务","Linux命令","HTTP协议","JS分析","弱口令","目录扫描","信息收集","目录穿越","源码泄漏",".git泄露",".svn泄露","CVS泄露",".ng泄露","前端绕过","vim泄漏","代码审计","DNSLOG","HTTPLOG","未授权访问","GOB","PWN","栈","PIE保护","shellcode","栈溢出","整数溢出","栈迁移","栈保护","栈对齐","OneGadget","StackSmash","ret2text","ret2libc","ret2syscall","ret2shellcode","ret2csu","ret2reg","BlindROP","ret2dlresolve","ret2VDSO","SROP","IO","格式化字符串","Libc泄漏","ORW","堆","DoubleFree","堆风水","OffByOne","OffByNull","malloc_hook","unlink","UAF","UnsortedBin","Tacahe","FastBin","largeBin","HouseOfPig","HouseOfForce","HouseOfLore","HouseOfRabbit","HouseOfRoman","HouseOfEinherjar","IO_FILE","IO_FILE","伪装IO_FILE","FSOP","HouseOfOrange","ROPgadget","数据结构","gadget","PLT改写","GOT劫持","LibcSearcher","自动化路径求解","Angr","kernel","free_hook劫持","FUZZ","TOCTOU","__malloc_context","REVERSE","语言逆向","Python","C","C#","C++","Rust","Ruby","JAVA","PYC","Golang","WASM",".NET","ASM","bytecode","Risc-V","ARM","MFC","算法分析","Base64","RC4","DFS","BFS","TEA","XTEA","ChaCha20","Z3","3SAT","XOR","迷宫","斐波那契","自定义逻辑","逆向技术","SMC","脱壳","花指令","反调试","VM","VMP","VEH","动态调试","HOOK","UPX壳","平坦化","插桩","堆栈修复","进程保护","控制流","ptrace","符号表","patch","中断","AST","TLS","安卓逆向","重定向表","Ollydbg","虚函数表","大小端序","IDC脚本","CheatEngine","LLVM","keypatch","GDB","固件逆向","模拟器","PE结构","Angr","CRYPTO","流密码","伪随机","随机数预测","MT19937","LCG","LFSR","B-M算法","RC4","RC6","RSA","素数分解","Rabin","p-q过小","dp泄露","p-1光滑","共享素数","p+1光滑","低加密指数攻击","小明文攻击","CopperSmith","不互素","AMM","共模攻击","维纳攻击","d泄露攻击","广播攻击","扩展维纳攻击","已知p低位","古典密码","ROT","栅栏密码","仿射密码","凯撒密码","乘法密码","Atbash","维吉尼亚","词频分析","字频统计","Base家族","HILL密码","摩斯代码","ADFGX密码","分组密码","CBC","ECB","OFB","GCM","尾字节爆破","字节反转攻击","预言填充攻击","块加密","Feistel","DES","3DES","AES","子密钥泄漏","非对称密码","格密码","DSA","已知K攻击","K共享攻击","线性K攻击","证书格式","PEM","DER","PKCS","ECC","ECDSA","ElGamal","LSB攻击","SchmidtSamoa","背包密码","选择明文攻击","PohligHellman","格相关","LWE","HNP","RLWE","NTRU","SVP","CVP","格基规约","高斯消元","CSIDH","SIDH","Groebner Basis","HASH算法","HMAC","MD5爆破","Hash爆破","哈希长度扩展攻击","国密算法","SM2","SM3","SM4","其他","费马小定理","连分数","CRT","OPT","BSGS","离散对数","二次剩余","线性代数","威尔逊定理","矩阵","逆元","群环域","公因数","欧拉定理","欧拉函数","欧拉准则","扩展欧几里得","矩阵快速幂","二项式定理","MITM","侧信道","二分","HenselLifting","MISC","图片隐写","宽高修改","图片隐写","LSB","EXIF","GIF提取","盲水印","汉信码","像素处理","图片分离","光栅图片","IDAT隐写","图片修复","Arnold","Steghide","Silenteye","Outguess","APNG","EZStego","二维码","SSTV","音视频隐写","波形图隐写","频谱图隐写","音频差分","DTMF","DeepSound","电话音","StegoVideo","编码分析","Aaencode","Uuencode","阴阳怪气加密","社会核心价值观","IEEE754","JSFu*k","ASCII","Ook","Rabbit","BrainFu*k","emoji","字符编码","whitespace编程","Braille盲文","跳舞的小人","与佛论禅","猪圈密码","当铺密码","键盘密码","云隐密码","代码混淆","压缩包分析","伪加密","密码爆破","掩码攻击","CRC爆破","明文攻击","文档隐写","word隐写","word文件格式","PDF隐写","零宽隐写","ttf隐写","office文档破解","wbStego","流量分析","日志审计","USB协议","鼠标流量","键盘流量","ICMP","TLS流量","Webshell流量","混淆流量","Wifi流量","Aircrack","数位板流量","IPMI协议","VMESS","电子取证","内存取证","磁盘取证","数据恢复","注册表","firepwd","LSA","VeraCrypt","NTFS","EXT","GPG","微信取证","虚拟磁盘","行为分析","数据库取证","mimakatz","手机取证","手环取证","工业控制","PLC","仿真","modbus","工控流量","RFCOMM协议","UDS诊断协议","智能车协议","JAIL","沙盒逃逸","SE权限","SUID提权","权限提升","/proc","定时任务","Linux命令","OSINT","文件结构","Pyc隐写","NTFS隐写","脚本编写","PDU","坦纳图","数字电路","LDPC","ETH","智能合约","EVM","Solidity","合约地址预测","Storage","区块链","区块链","Ed25519","AI","AI","KNN","PyTorch","TensorFlow","Transform","神经网络","病态矩阵","梯度泄露攻击","AutoEncoder","搜索","CVE","靶场","综合靶场","域渗透"],Zp=[{path:"/",redirect:"/index"},{path:"/index",name:"Index",component:()=>ft(()=>import("./Home-XT_W23CL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))},{path:"/first",name:"firstPage",component:()=>ft(()=>import("./First-DP4IbiF6.js"),__vite__mapDeps([15,1,7,3,8,9,10,4,16]))},{path:"/zjxh",redirect:"/problem/1433"},{path:"/oauth",name:"Oauth",component:()=>ft(()=>import("./index-DCvc-XTQ.js"),__vite__mapDeps([17,1,7,3,8,9,10,4])),children:[{path:"github/callback",name:"githubCallback",component:()=>ft(()=>import("./github-CVCDkFbM.js"),__vite__mapDeps([18,1,19,3,7,8,9,10,4,13]))},{path:"gitee/callback",name:"giteeCallback",component:()=>ft(()=>import("./gitee-DslvARdl.js"),__vite__mapDeps([20,1,19,3,7,8,9,10,4,13]))}]},{path:"/external-link",name:"externalLink",component:()=>ft(()=>import("./external-link-jB9pY9DH.js"),__vite__mapDeps([21,1,3,7,8,9,10,4,22,13,23]))},{path:"/about",name:"About",component:()=>ft(()=>import("./index-C5nSdhYc.js"),__vite__mapDeps([24,1,7,3,8,9,10,4])),children:[{path:"faq",name:"faq",component:()=>ft(()=>import("./faq-D4J0xBkD.js"),__vite__mapDeps([25,1,3,7,8,9,10,4,13]))},{path:"resource",name:"resource",component:()=>ft(()=>import("./resource-Bl1zj5-e.js"),__vite__mapDeps([26,1,3,7,8,9,10,4,13]))},{path:"about",name:"about",component:()=>ft(()=>import("./about-Ccz9iy83.js"),__vite__mapDeps([27,1,3,7,8,9,10,4,13]))},{path:"wip",name:"wip",component:()=>ft(()=>import("./wip-K_kkJyZG.js"),__vite__mapDeps([28,3,1,7,8,9,10,4,13]))},{path:"vip",name:"vip",component:()=>ft(()=>import("./vip-DYEDaKd3.js"),__vite__mapDeps([29,30,3,1,31,7,8,9,10,4,32,12,13]))},{path:"member",name:"member",component:()=>ft(()=>import("./member-DMnTaJcA.js"),__vite__mapDeps([33,1,7,3,8,9,10,4]))},{path:"links",name:"links",component:()=>ft(()=>import("./links-BE9C7Uaj.js"),__vite__mapDeps([34,3,1,7,8,9,10,4,13]))},{path:"cdkey",name:"cdkey",component:()=>ft(()=>import("./cdkey-TBlI7H5L.js"),__vite__mapDeps([35,1,3,7,8,9,10,4,13]))},{path:"version",name:"version",component:()=>ft(()=>import("./version-d_fPAVDv.js"),__vite__mapDeps([36,3,1,7,8,9,10,4,37,13]))},{path:"thanks",name:"thanks",component:()=>ft(()=>import("./thanks-D5QAJZOJ.js"),__vite__mapDeps([38,1,3,7,8,9,10,4,39,13,40]))},{path:"license",name:"license",component:()=>ft(()=>import("./license-D0H0_oa3.js"),__vite__mapDeps([41,3,1,7,8,9,10,4,13]))},{path:"sponsor",name:"sponsor",component:()=>ft(()=>import("./sponsor-CPfbItEX.js"),__vite__mapDeps([42,1,3,7,8,9,10,4,13]))},{path:"data",name:"data",component:()=>ft(()=>import("./data-CyftihKI.js"),__vite__mapDeps([43,1,3,7,8,9,10,4,13]))},{path:"contest",name:"contestWork",component:()=>ft(()=>import("./contest-CoH0Wqam.js"),__vite__mapDeps([44,1,3,7,8,9,10,4,13]))},{path:"agreement",name:"agreement",component:()=>ft(()=>import("./agreement-DICRJFnn.js"),__vite__mapDeps([45,1,3,7,8,9,10,4,13]))},{path:"privacy",name:"privacy",component:()=>ft(()=>import("./privacy-CIuC1wBL.js"),__vite__mapDeps([46,1,3,7,8,9,10,4,13]))}]},{name:"other",path:"/other",component:()=>ft(()=>import("./index-DcANpzBi.js"),__vite__mapDeps([47,1,7,3,8,9,10,4])),children:[{path:"store",name:"otherStore",component:()=>ft(()=>import("./store-0IXJgUG2.js"),__vite__mapDeps([48,3,1,49,50,7,8,9,10,4,51,13,12,52,53,54]))},{path:"school",name:"otherSchool",component:()=>ft(()=>import("./school-DFmIu3BR.js"),__vite__mapDeps([55,3,1,7,8,9,10,4,13]))}]},{name:"notebook",path:"/note",component:()=>ft(()=>import("./index-C3A6QHTc.js"),__vite__mapDeps([56,1,7,3,8,9,10,4])),children:[{path:"",name:"noteHome",component:()=>ft(()=>import("./home-CQrKwhi_.js"),__vite__mapDeps([57,58,5,1,3,49,50,59,60,61,62,63,7,8,9,10,4,64,53,13]))},{path:"set/:aid",name:"setArticle",component:()=>ft(()=>import("./set-D_oN1i2F.js"),__vite__mapDeps([65,66,67,3,1,68,13,69,70,71,58,5,72,59,60,61,62,63,73,7,8,9,10,4,74,52,14,23]))},{path:"my",name:"myArticle",component:()=>ft(()=>import("./my-ByJz_ivG.js"),__vite__mapDeps([75,1,5,3,59,60,61,62,63,7,8,9,10,4,76,13,53]))}]},{name:"user",path:"/user",component:()=>ft(()=>import("./index-CKXGfD_T.js"),__vite__mapDeps([77,1,7,3,8,9,10,4])),children:[{path:"setting",name:"editSetting",component:()=>ft(()=>import("./setting-BprYwecA.js"),__vite__mapDeps([78,30,3,1,79,80,81,7,8,9,10,4,82,13,52,53])),meta:{requireLogin:!0}},{path:"honor",name:"userHonor",component:()=>ft(()=>import("./honor-LwSmxTlf.js"),__vite__mapDeps([83,84,3,1,85,7,8,9,10,4,86,13,14])),meta:{requireLogin:!0}},{path:":data",name:"userPage",component:()=>ft(()=>import("./home-BU9tn-3r.js"),__vite__mapDeps([87,1,81,59,60,3,61,62,63,7,8,9,10,4,88,89,14,40,90,53,13]))},{path:"statistics",name:"userStatistic",component:()=>ft(()=>import("./statistics-DWU7ch1V.js"),__vite__mapDeps([91,1,3,7,8,9,10,4,92,53,93,13])),meta:{requireLogin:!0}},{path:"range",name:"userRange",component:()=>ft(()=>import("./range-B7-n2umz.js"),__vite__mapDeps([94,1,3,7,8,9,10,4,95])),meta:{requireLogin:!0},children:[{path:"picturebed",name:"pictureBed",component:()=>ft(()=>import("./picturebed-BcwUVSn1.js"),__vite__mapDeps([96,3,1,97,98,7,8,9,10,4,99,53,13,89,14]))},{path:"files",name:"files",component:()=>ft(()=>import("./files-DZRgmtyA.js"),__vite__mapDeps([100,1,3,7,8,9,10,4,13]))},{path:"api",name:"api",component:()=>ft(()=>import("./api-C8lCs4QY.js"),__vite__mapDeps([101,1,3,7,8,9,10,4,13,69]))},{path:"hackground",name:"hackground",component:()=>ft(()=>import("./hackground-DMT6hkXV.js"),__vite__mapDeps([102,3,1,103,7,8,9,10,4,104,105,52,106,13]))},{path:"hackground/:hid",name:"hackgroundPage",component:()=>ft(()=>import("./hackground-page-D8w-4jlu.js"),__vite__mapDeps([107,1,97,98,3,103,7,8,9,10,4,108,106,89,14,109]))},{path:"betterfile",name:"betterfile",component:()=>ft(()=>import("./betterfile-5n9esO3V.js"),__vite__mapDeps([110,111,3,1,7,8,9,10,4,112,13,89,14,113]))},{path:"warjax",name:"warjax",component:()=>ft(()=>import("./warjax-iVOsaMrh.js"),__vite__mapDeps([114,49,1,50,115,7,3,8,9,10,4,116,97,98,117,23,13,106,89,14,118])),children:[{path:"code",name:"warjaxCode",component:()=>ft(()=>import("./code-Cjzl4NKp.js"),__vite__mapDeps([115,7,3,1,8,9,10,4]))},{path:"photo",name:"warjaxPhoto",component:()=>ft(()=>import("./photo-DRjGqRNg.js"),__vite__mapDeps([116,3,1,7,97,98,8,9,10,4,117,23,13,106,89,14]))},{path:"libs",name:"warjaxLibs",component:()=>ft(()=>import("./libs-ZKky3ORE.js"),__vite__mapDeps([119,3,1,7,8,9,10,4,13]))}]},{path:"share",name:"fileShare",component:()=>ft(()=>import("./share-DROohQz6.js"),__vite__mapDeps([120,3,1,7,8,9,10,4,121,14]))},{path:"share/:token",name:"fileShareItem",component:()=>ft(()=>import("./share-item-MSEphxoy.js"),__vite__mapDeps([122,72,1,67,59,60,3,61,62,63,73,123,98,7,8,9,10,4,124,69,13]))}]},{path:"login",name:"userLogin",component:()=>ft(()=>import("./login-q8Lo8DwA.js"),__vite__mapDeps([125,3,1,81,7,8,9,10,4,126,13]))},{path:"phone",name:"userPhone",component:()=>ft(()=>import("./phone-HbY2BIZG.js"),__vite__mapDeps([127,1,3,7,8,9,10,4,128,13]))},{path:"register",name:"userRegister",component:()=>ft(()=>import("./register-CeP7THRW.js"),__vite__mapDeps([129,1,3,7,8,9,10,4,130,13]))},{path:"forgotpass",name:"userForgotpass",component:()=>ft(()=>import("./forgotpass-HqWzm9yG.js"),__vite__mapDeps([131,1,3,7,8,9,10,4,13]))},{path:"logout",name:"userLogout",component:()=>ft(()=>import("./logout-WfDo3Mg8.js"),__vite__mapDeps([132,1,7,3,8,9,10,4]))}]},{path:"/problem",name:"problem",component:()=>ft(()=>import("./index-DKBaTSPR.js"),__vite__mapDeps([133,1,7,3,8,9,10,4,134])),children:[{path:"",name:"problemIndex",component:()=>ft(()=>import("./index-Ck6nt413.js"),__vite__mapDeps([135,1,3,7,8,9,10,4,136])),children:[{path:"",name:"problemSet",component:()=>ft(()=>import("./set-C-pEq4VH.js"),__vite__mapDeps([137,3,1,138,79,80,49,50,7,8,9,10,4,139,93,140,13,53,105,52,54]))},{path:"inter",name:"problemInter",component:()=>ft(()=>import("./inter-m_lWOz21.js"),__vite__mapDeps([141,1,7,3,8,9,10,4]))},{path:"cve",name:"problemCve",component:()=>ft(()=>import("./cve-ChLZ5sg3.js"),__vite__mapDeps([142,1,3,7,8,9,10,4,143,53,93,13]))},{path:"llm",name:"problemLLM",component:()=>ft(()=>import("./llm-9iejZWI9.js"),__vite__mapDeps([144,1,3,7,8,9,10,4,145,53,93,13]))},{path:"sheet",name:"problemSheet",component:()=>ft(()=>import("./home-BHR3_2iH.js"),__vite__mapDeps([146,70,1,3,71,49,50,7,8,9,10,4,147,93,54,148,52,13,53]))},{path:"collection",name:"problemCollection",component:()=>ft(()=>import("./home-CUS1PidF.js"),__vite__mapDeps([149,1,3,7,8,9,10,4,150,14,53,13]))},{path:"statistics",name:"problemStatistics",component:()=>ft(()=>import("./statistics-DWU7ch1V.js"),__vite__mapDeps([91,1,3,7,8,9,10,4,92,53,93,13]))},{path:"explore",name:"problemExplore",component:()=>ft(()=>import("./home-CmrQMnzk.js"),__vite__mapDeps([151,84,3,1,85,152,7,8,9,10,4,153,14,13]))},{path:"admin",name:"problemAdmin",component:()=>ft(()=>import("./admin-D6gN3rId.js"),__vite__mapDeps([154,49,1,50,138,79,80,3,155,156,89,14,157,7,8,9,10,4,158,108,106,53,13,54,52]))},{path:"container",name:"problemContainer",component:()=>ft(()=>import("./container-DZzbp0_g.js"),__vite__mapDeps([159,1,3,49,50,79,80,60,61,62,111,160,7,8,9,10,4,161,89,14,109,13,106,53,113,54,108]))},{path:":id",name:"problemInfo",component:()=>ft(()=>import("./info-B-TE1WUD.js"),__vite__mapDeps([162,79,1,80,111,67,59,60,3,61,62,63,156,160,72,73,5,58,31,7,8,9,10,4,163,54,89,14,13,113,164,93,52,53,165]))}]},{path:"sheet/:id",name:"problemSheetInfo",component:()=>ft(()=>import("./info-bk7VLn0H.js"),__vite__mapDeps([166,72,1,67,59,60,3,61,62,63,73,84,85,155,156,89,14,123,98,167,7,8,9,10,4,168,108,69,13,53,93,52]))}]},{path:"/contest",name:"contest",component:()=>ft(()=>import("./index-CEYFz7XE.js"),__vite__mapDeps([169,1,3,7,8,9,10,4,136])),children:[{path:"",name:"contestSet",component:()=>ft(()=>import("./set-BwRsbYIH.js"),__vite__mapDeps([170,49,1,50,6,3,7,8,9,10,4,171,13,53,106]))},{path:"create",name:"contestCreate",component:()=>ft(()=>import("./create-n8PIjmzn.js"),__vite__mapDeps([172,1,6,3,7,8,9,10,4,173,148,52]))},{path:"factory",name:"contestFactory",component:()=>ft(()=>import("./factory-_Q5Ef2Qo.js"),__vite__mapDeps([174,6,3,1,7,8,9,10,4,175,53,13,14,165]))},{path:"factory/:cid",name:"contestFactoryInfo",component:()=>ft(()=>import("./info-CSXBaM5g.js"),__vite__mapDeps([176,155,156,3,1,89,14,79,80,138,157,7,6,8,9,10,4,177,54,13,108,53,106,178,52]))},{path:"admin",name:"contestAdmin",component:()=>ft(()=>import("./admin-Dn842pfI.js"),__vite__mapDeps([179,1,3,6,7,8,9,10,4,180,53,106,13,178,105,52]))},{path:":cid",name:"contestInfo",component:()=>ft(()=>import("./info-Dhmyo8ev.js"),__vite__mapDeps([181,2,1,6,3,79,80,138,157,7,8,9,10,4,182,13,14,23,53,183,37,89,106,52]))}]},{path:"/prize",name:"prize",component:()=>ft(()=>import("./index-9L_bJWfV.js"),__vite__mapDeps([184,1,7,3,8,9,10,4])),children:[{path:"",name:"home",component:()=>ft(()=>import("./home-Cv5LyCeD.js"),__vite__mapDeps([185,1,3,7,8,9,10,4,186,13,40,14]))}],meta:{requireLogin:!0}},{path:"/trends",name:"trends",component:()=>ft(()=>import("./index-C-lGOVMp.js"),__vite__mapDeps([187,1,7,3,8,9,10,4])),meta:{requireLogin:!0},children:[{path:"",name:"home",component:()=>ft(()=>import("./home-B1Q8QRWY.js"),__vite__mapDeps([188,1,3,7,8,9,10,4,189,13,183,37]))}]},{path:"/team",name:"team",component:()=>ft(()=>import("./index-DprTjYA3.js"),__vite__mapDeps([190,1,7,3,8,9,10,4])),children:[{path:"",name:"teamIndex",component:()=>ft(()=>import("./home-sOthbn6g.js"),__vite__mapDeps([191,1,192,3,193,167,7,8,9,10,4,194,13,53,23,195])),children:[{path:"",name:"teamHome",component:()=>ft(()=>import("./statistics-w2BRhSGQ.js"),__vite__mapDeps([196,3,1,167,49,50,59,60,61,62,63,7,8,9,10,4,197,178,148,53,90,140,52,113,13]))},{path:"problem",name:"teamProblem",component:()=>ft(()=>import("./home-tYCxeSoF.js"),__vite__mapDeps([198,137,3,1,138,79,80,49,50,7,8,9,10,4,139,93,140,13,53,105,52,54]))},{path:"problem/sheet/:id",name:"teamSheetInfo",component:()=>ft(()=>import("./sheet-DrCAyGwR.js"),__vite__mapDeps([199,166,72,1,67,59,60,3,61,62,63,73,84,85,155,156,89,14,123,98,167,7,8,9,10,4,168,108,69,13,53,93,52]))},{path:"problem/:id",name:"teamProblemInfo",component:()=>ft(()=>import("./info-B4Q4Vw3-.js"),__vite__mapDeps([200,162,79,1,80,111,67,59,60,3,61,62,63,156,160,72,73,5,58,31,7,8,9,10,4,163,54,89,14,13,113,164,93,52,53,165]))},{path:"problem/admin",name:"teamProblemAdmin",component:()=>ft(()=>import("./admin-CrW_-KI-.js"),__vite__mapDeps([201,155,156,3,1,89,14,167,7,8,9,10,4,52,54,108,13,53])),meta:{requireTeamRole:1}},{path:"problem/add",name:"teamProblemAdd",component:()=>ft(()=>import("./add-BS_kiQbo.js"),__vite__mapDeps([202,155,156,3,1,89,14,167,7,8,9,10,4,180,13,52,54,108])),meta:{requireTeamRole:1}},{path:"setting",name:"teamSetting",component:()=>ft(()=>import("./setting-BdaR6XD8.js"),__vite__mapDeps([203,1,3,59,60,61,62,63,7,8,9,10,4,204,13,89,14])),meta:{requireTeamRole:1}},{path:"user/notice",name:"teamNotice",component:()=>ft(()=>import("./notice-Dlxyl67I.js"),__vite__mapDeps([205,59,60,3,1,61,62,63,167,31,7,8,9,10,4,53])),meta:{requireTeamRole:1}},{path:"user/rank",name:"teamUserRank",component:()=>ft(()=>import("./rank-Dm6JkkxL.js"),__vite__mapDeps([206,207,1,3,7,8,9,10,4,208,13,53,40])),meta:{requireTeamRole:1}},{path:"user/apply",name:"teamUserApply",component:()=>ft(()=>import("./apply-D54fqIhj.js"),__vite__mapDeps([209,1,3,7,8,9,10,4,13,53])),meta:{requireTeamRole:1}},{path:"user/admin",name:"teamUserAdmin",component:()=>ft(()=>import("./admin-D9lOg0g1.js"),__vite__mapDeps([210,1,3,7,8,9,10,4,13,53])),meta:{requireTeamRole:1}},{path:"contest",name:"teamContest",component:()=>ft(()=>import("./home-CNX4q2AA.js"),__vite__mapDeps([211,170,49,1,50,6,3,7,8,9,10,4,171,13,53,106]))},{path:"awd",name:"teamAwd",component:()=>ft(()=>import("./awd-qgLZo9UI.js"),__vite__mapDeps([212,1,3,7,8,9,10,4,13]))},{path:"wiki",name:"teamWiki",component:()=>ft(()=>import("./index-CTBK2gb5.js"),__vite__mapDeps([213,167,3,1,7,8,9,10,4,214,13])),children:[{path:"",name:"teamWikiHome",component:()=>ft(()=>import("./home-BSz4u43u.js"),__vite__mapDeps([215,167,1,3,7,8,9,10,4,216,13]))}]},{path:"wiki/:path",name:"teamWikiInfo",component:()=>ft(()=>import("./info-518_0Fz9.js"),__vite__mapDeps([217,167,1,79,80,3,66,67,68,13,69,7,8,9,10,4,218])),children:[{path:":id",name:"teamWikiDocument",component:()=>ft(()=>import("./info-518_0Fz9.js"),__vite__mapDeps([217,167,1,79,80,3,66,67,68,13,69,7,8,9,10,4,218]))}]},{path:"study",name:"teamStudy",component:()=>ft(()=>import("./index-j1PgaiCN.js"),__vite__mapDeps([219,1,3,7,8,9,10,4])),children:[{path:"workshop",name:"teamStudyWorkshop",component:()=>ft(()=>import("./workshop-Bvs1QBxh.js"),__vite__mapDeps([220,167,3,1,7,8,9,10,4,221,13]))},{path:"sheet",name:"teamStudySheet",component:()=>ft(()=>import("./sheet-hxJ4H9yz.js"),__vite__mapDeps([222,1,167,3,7,8,9,10,4]))}]},{path:"contest/admin",name:"teamContestAdmin",component:()=>ft(()=>import("./admin-BDlye3zk.js"),__vite__mapDeps([223,1,167,6,3,7,8,9,10,4,177,178,52,89,14,108,13,53])),meta:{requireTeamRole:1}},{path:"contest/:cid",name:"testContestInfo",component:()=>ft(()=>import("./info-BefwGxU1.js"),__vite__mapDeps([224,181,2,1,6,3,79,80,138,157,7,8,9,10,4,182,13,14,23,53,183,37,89,106,52]))},{path:"contest/add",name:"teamContestAdd",component:()=>ft(()=>import("./add-BP8ymkfg.js"),__vite__mapDeps([225,1,6,167,3,7,8,9,10,4,177,13,178,52,89,14])),meta:{requireTeamRole:1}},{path:"analysis/use",name:"teamAnalysisUse",component:()=>ft(()=>import("./use-rHCIKKX1.js"),__vite__mapDeps([226,1,3,167,7,8,9,10,4,227,52,13,14])),meta:{requireTeamRole:1}},{path:"analysis/log",name:"teamAnalysisLog",component:()=>ft(()=>import("./log-C61JWGPu.js"),__vite__mapDeps([228,1,49,50,167,3,7,8,9,10,4,13,53])),meta:{requireTeamRole:1}},{path:"analysis/data",name:"teamAnalysisData",component:()=>ft(()=>import("./data-CNPVOA-j.js"),__vite__mapDeps([229,1,167,3,7,8,9,10,4,230,13])),meta:{requireTeamRole:1}}]},{path:":id/info",name:"teamInfo",component:()=>ft(()=>import("./info-DXJthBHD.js"),__vite__mapDeps([231,1,167,3,7,8,9,10,4,232,53,13]))},{path:"list",name:"teamList",component:()=>ft(()=>import("./home_noteam-BukAo6AS.js"),__vite__mapDeps([193,1,167,3,7,8,9,10,4,194,13,53,23]))},{path:"explore/mall",name:"teamMall",component:()=>ft(()=>import("./mall-q4gV3fRY.js"),__vite__mapDeps([233,49,1,50,3,7,8,9,10,4,13]))}]},{path:"/explore",name:"explore",component:()=>ft(()=>import("./index-Bs7ahDeU.js"),__vite__mapDeps([234,1,7,3,8,9,10,4])),children:[{path:"",name:"exploreHome",component:()=>ft(()=>import("./home-CmrQMnzk.js"),__vite__mapDeps([151,84,3,1,85,152,7,8,9,10,4,153,14,13]))},{path:"admin",name:"exploreAdmin",component:()=>ft(()=>import("./admin-Dm-h_-a6.js"),__vite__mapDeps([235,152,7,3,1,97,98,8,9,10,4,236,52]))},{path:"workshop",name:"exploreWorkshop",component:()=>ft(()=>import("./workshop-DcNQtGQ8.js"),__vite__mapDeps([237,49,1,50,3,7,8,9,10,4,238,52,13]))},{path:"deeps",name:"exploreDeeps",component:()=>ft(()=>import("./deeps-BYeSOHxO.js"),__vite__mapDeps([239,3,1,7,8,9,10,4,13]))}]},{path:"/teach",name:"teach",component:()=>ft(()=>import("./index-CbTdyckc.js"),__vite__mapDeps([240,1,7,3,8,9,10,4])),meta:{requireLogin:!0,requireLevel:i(2,1)},children:[{path:"",name:"teachHome",component:()=>ft(()=>import("./home-B2h7RoHF.js"),__vite__mapDeps([241,1,3,7,8,9,10,4,242])),children:[{path:"skilltree",name:"teachSkillTree",component:()=>ft(()=>import("./skilltree-Dl0I4aKJ.js"),__vite__mapDeps([243,84,3,1,85,7,8,9,10,4,13]))}]}]},{path:"/rank",name:"rank",component:()=>ft(()=>import("./index-eSMyp0L6.js"),__vite__mapDeps([244,1,7,3,8,9,10,4])),meta:{requireLogin:!0},children:[{path:"",name:"rankHome",component:()=>ft(()=>import("./rank-4JWWsYZI.js"),__vite__mapDeps([207,1,3,7,8,9,10,4,208,13,53,40]))}]},{path:"/admin",name:"admin",component:()=>ft(()=>import("./index-Bdhi43Zz.js"),__vite__mapDeps([245,1,7,3,8,9,10,4])),meta:{requireLogin:!0,requireRole:4},children:[{path:"",name:"adminHome",component:()=>ft(()=>import("./admin-BQwJYtuB.js"),__vite__mapDeps([246,192,1,59,60,3,61,62,63,157,7,49,50,97,98,6,5,155,156,89,14,8,9,10,4,247,40,164,13,52,53,106,148,178,108,54,69]))}]}],Qp=pe({history:me(),routes:Zp}),Xp="user_state",em="PROBLEM_ALL_PROBLEMS",tm="NSS_SETTINGS",nm="NSS_PCACHE",om="NSS_PSHEET",rm="NSS_STORE",am=fe({modules:{user:{namespaced:!0,state:()=>{const e=Et(Xp);return e&&e.isLogin&&e.userinfo.uid?e:{isLogin:!1,userinfo:{uid:0,username:void 0,avatar:void 0,level:void 0,team:void 0,config:void 0,count:void 0,teamRole:void 0,role:void 0,unread:void 0,rating:void 0,expiry:void 0},loginDate:void 0}},getters:{isLogin:e=>{if(!e.isLogin||!e.userinfo.uid||!e.loginDate)return!1;return((new Date).getTime()-e.loginDate)/1e3<3600},getState:e=>e,getUsername:e=>e.userinfo.username,getUid:e=>e.userinfo.uid,getAvatar:e=>e.userinfo.avatar,getLevel:e=>e.userinfo.level,getUserInfo:e=>e.userinfo,getRating:e=>e.userinfo.rating,getTeam:e=>e.userinfo.team,getTeamRole:e=>e.userinfo.teamRole,getCount:e=>e.userinfo.count,getConfig:e=>e.userinfo.config,getUnread:e=>e.userinfo.unread,getExpiry:e=>e.userinfo.expiry,isTeamMember:e=>null!=e.userinfo.team,isVip:e=>void 0!==e.userinfo.expiry&&e.userinfo.expiry>0},actions:{userLogin({commit:e},{userinfo:t}){e("userLogin",{userinfo:t})},updateLogin({commit:e}){e("updateLogin")},updateUserInfo({commit:e},{userinfo:t}){e("updateUserInfo",{userinfo:t})},updateMessageState({commit:e},{unread:t}){e("updateMessageState",{unread:t})},updateActiveCount({commit:e},{count:t}){e("updateActiveCount",{count:t})},changeTeam({commit:e},{name:t,role:n}){e("changeTeam",{name:t,role:n})},updateProblemTagVisible({commit:e},{visible:t}){e("updateProblemTagVisible",{visible:t})},userLogout({commit:e}){e("userLogout")},updateTeam({commit:e},{name:t}){e("updateTeam",{name:t})}},mutations:{updateTeam(e,{name:t}){e.userinfo.team=t,wt(Xp,e)},updateMessageState(e,{unread:t}){e.userinfo.unread=t,wt(Xp,e)},updateActiveCount(e,{count:t}){e.userinfo.count=t,wt(Xp,e)},changeTeam(e,{name:t,role:n}){e.userinfo.team=t,e.userinfo.teamRole=n,wt(Xp,e)},updateProblemTagVisible(e,{visible:t}){t?2&e.userinfo.config&&(e.userinfo.config^=2):e.userinfo.config|=2,wt(Xp,e)},userLogin(e,{userinfo:t}){e.isLogin=!0,e.userinfo.uid=t.uid,e.userinfo.role=t.role,e.userinfo.config=t.config,e.userinfo.count=t.count,e.userinfo.level=t.level,e.userinfo.username=t.username,e.userinfo.avatar=t.avatar,e.userinfo.rating=t.rating,e.userinfo.team=t.team,e.userinfo.unread=t.unread,e.userinfo.teamRole=t.teamRole,e.userinfo.expiry=t.expiry,e.loginDate=(new Date).getTime(),wt(Xp,e)},updateLogin(e){e.isLogin=!0,e.loginDate=(new Date).getTime(),wt(Xp,e)},userLogout(e){e.isLogin=!1,e.userinfo.uid=0,e.userinfo.username=void 0,e.userinfo.level=void 0,e.userinfo.count=void 0,e.userinfo.config=0,e.userinfo.avatar=void 0,e.userinfo.role=void 0,e.userinfo.teamRole=void 0,e.userinfo.rating=void 0,e.userinfo.unread=void 0,e.loginDate=void 0,e.userinfo.team=void 0,e.userinfo.expiry=void 0},updateUserInfo(e,{userinfo:t}){e.isLogin=!0,e.userinfo.uid=t.uid,e.userinfo.role=t.role,e.userinfo.level=t.level,e.userinfo.count=t.count,e.userinfo.config=t.config,e.userinfo.username=t.username,e.userinfo.avatar=t.avatar,e.userinfo.rating=t.rating,e.userinfo.team=t.team,e.userinfo.teamRole=t.teamRole,e.userinfo.unread=t.unread,e.userinfo.expiry=t.expiry,e.loginDate=(new Date).getTime(),wt(Xp,e)}}},admin:{namespaced:!0,state:()=>({info:{balderich:{total:{cpu:34,ram:47,rom:58,cpus:20,rams:34,roms:3072},serves:[{ip:"127.0.0.1",cpu:45,ram:36,rom:38,cpus:"i9-9900HQ 12core 3.2@GHZ",rams:"18G DDR4 2400mhz",roms:"2048GB SSD"},{ip:"127.0.0.2",cpu:59,ram:67,rom:28,cpus:"i7-7700HQ 8core 2.6@GHZ",rams:"16G DDR4 2400mhz",roms:"1024GB SSD"}]},anna:{total:{cpu:12,ram:23,rom:36,cpus:4,rams:8,roms:40,dockers:12},serves:[{cpu:36,ram:49,rom:76,cpus:"i7-7700HQ 8core 2.6@GHZ",rams:"16G DDR4 2400mhz",roms:"1024GB SSD",dockers:12}]}}}),getters:{getBalderichInfo:e=>e.info.balderich,getAnnaInfo:e=>e.info.anna},actions:{},mutations:{}},problem:{namespaced:!0,state:()=>Et(em)||{},getters:{getProblem:e=>t=>e[t],getState:e=>t=>{if(!e[t])return;return(new Date).getTime()-e[t].updateDate>6048e5?void 0:e[t].state}},actions:{updateProblem(e,t){return p(this,arguments,function*({commit:e,state:t},{pid:n}){const o=yield El(n);200===o.code&&o.data&&(e("updateProblem",o.data),wt(em,t))})},updateState(e,t){return p(this,arguments,function*({commit:e,state:t},n){t[n.pid]?n.state>t[n.pid].state&&e("updateProblemState",n):e("updateProblemState",n),wt(em,t)})},updateStates(e,t){return p(this,arguments,function*({commit:e,state:t},n){for(const o in n)e("updateProblemState",{pid:Number(o),state:n[o]});wt(em,t)})}},mutations:{updateProblem(e,t){e[t.id]=s({pid:t.id,title:t.title||"",updateDate:(new Date).getTime(),state:t.state||0},t)},updateProblemState(e,t){e[t.pid]||(e[t.pid]={pid:t.pid,title:"",updateDate:0,state:0}),e[t.pid].state=t.state,e[t.pid].updateDate=(new Date).getTime()}}},settings:{namespaced:!0,state:()=>Et(tm)||{problemSiderbarIsCollapse:!0,contestSiderbarIsCollapse:!0,teamSiderbarIsCollapse:!1},getters:{getProblemSiderbarIsCollapse:e=>e.problemSiderbarIsCollapse,getContestSiderbarIsCollapse:e=>e.contestSiderbarIsCollapse,getTeamSiderbarIsCollapse:e=>e.teamSiderbarIsCollapse},actions:{updateProblemSiderbarIsCollapse({commit:e,state:t},n){e("updateProblemSiderbarIsCollapse",n),wt(tm,t)},updateContestSiderbarIsCollapse({commit:e,state:t},n){e("updateContestSiderbarIsCollapse",n),wt(tm,t)},updateTeamSiderbarIsCollapse({commit:e,state:t},n){e("updateTeamSiderbarIsCollapse",n),wt(tm,t)}},mutations:{updateProblemSiderbarIsCollapse(e,t){e.problemSiderbarIsCollapse=t},updateContestSiderbarIsCollapse(e,t){e.contestSiderbarIsCollapse=t},updateTeamSiderbarIsCollapse(e,t){e.teamSiderbarIsCollapse=t}}},pcache:{namespaced:!0,state:()=>Et(nm)||{},getters:{getProblemDefaultProgressId:e=>{if(e.problemDefaultProgressId)return e.problemDefaultProgressId.data},getProblemDailyPids:e=>{if(!e.problemDailyPids)return;return(new Date).getDate()===new Date(e.problemDailyPids.updateDate).getDate()?e.problemDailyPids.data:void 0},getProblemStatisticsRadar:e=>{if(!e.problemStatisticsRadar)return;return(new Date).getTime()-e.problemStatisticsRadar.updateDate>864e5?void 0:e.problemStatisticsRadar.data}},actions:{updateProblemDefaultProgressId({commit:e,state:t},n){e("updateProblemDefaultProgressId",n),wt(nm,t)},updateProblemStatisticsRadar(e,t){return p(this,arguments,function*({commit:e,state:t},n){const o=yield Ds(null,n);o.data&&(e("updateProblemStatisticsRadar",o.data),wt(nm,t))})},updateProblemDailyPids(e){return p(this,arguments,function*({commit:e,state:t}){const n=yield lc((new Date).format("yyyy-MM-dd"));n.data&&(e("updateProblemDailyPids",n.data.map(e=>e.id)),wt(nm,t))})}},mutations:{updateProblemDefaultProgressId(e,t){e.problemDefaultProgressId={updateDate:(new Date).getTime(),data:t}},updateProblemStatisticsRadar(e,t){e.problemStatisticsRadar={updateDate:(new Date).getTime(),data:t}},updateProblemDailyPids(e,t){e.problemDailyPids={updateDate:(new Date).getTime(),data:t}}}},psheet:{namespaced:!0,state:()=>Et(om)||{ui:{}},getters:{getSheetUserInfo:e=>t=>{if(!e.ui[t])return{};return(new Date).getTime()-e.ui[t].updateDate>6048e5?{}:e.ui[t]}},actions:{updateSheetUserInfo(e,t){return p(this,arguments,function*({commit:e,state:t},n){e("updateSheetUserInfo",n),wt(om,t)})}},mutations:{updateSheetUserInfo(e,t){e.ui[t.psid]=c(s(s({},e.ui[t.psid]),t),{updateDate:(new Date).getTime()})}}},store:{namespaced:!0,state:()=>Et(rm)||{},getters:{getPendingPaymentOrder:e=>e.ppOrder||[]},actions:{clearPendingPaymentOrder({commit:e,state:t}){e("clearPendingPaymentOrder"),wt(rm,t)},addGoodsToPendingPaymentOrder(e,t){return p(this,arguments,function*({commit:e,state:t},n){e("addGoodsToPendingPaymentOrder",n),wt(rm,t)})},updateGoodsToPendingPaymentOrderItemNum(e,t){return p(this,arguments,function*({commit:e,state:t},n){e("updateGoodsToPendingPaymentOrderItemNum",n),wt(rm,t)})},deleteGoodsToPendingPaymentOrderItem(e,t){return p(this,arguments,function*({commit:e,state:t},n){e("deleteGoodsToPendingPaymentOrderItem",n),wt(rm,t)})}},mutations:{clearPendingPaymentOrder:e=>{e.ppOrder=[]},addGoodsToPendingPaymentOrder:(e,t)=>{e.ppOrder||(e.ppOrder=[]);const n=e.ppOrder.findIndex(e=>e.gid===t.gid&&e.iid===t.iid);-1!==n?e.ppOrder[n].num+=t.num:e.ppOrder.push(t)},updateGoodsToPendingPaymentOrderItemNum:(e,t)=>{if(!e.ppOrder)return;const n=e.ppOrder.findIndex(e=>e.gid===t.gid&&e.iid===t.iid);-1!==n&&(e.ppOrder[n].num=t.num)},deleteGoodsToPendingPaymentOrderItem:(e,t)=>{if(!e.ppOrder)return;const n=e.ppOrder.findIndex(e=>e.gid===t.gid&&e.iid===t.iid);-1!==n&&e.ppOrder.splice(n,1)}}}},strict:!1,plugins:[]});
/*! Element Plus v2.11.7 */
var im,lm={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}},sm={exports:{}};function cm(){return im||(im=1,sm.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",a="minute",i="hour",l="day",s="week",c="month",d="quarter",u="year",p="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(o,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(o,c),a=n-r<0,i=t.clone().add(o+(a?-1:1),c);return+(-(o+(n-r)/(a?r-i:i-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:s,d:l,D:p,h:i,m:a,s:r,ms:o,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=v;var E="$isDayjsObject",k=function(e){return e instanceof L||!(!e||!e[E])},_=function e(t,n,o){var r;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();w[a]&&(r=a),n&&(w[a]=n,r=a);var i=t.split("-");if(!r&&i.length>1)return e(i[0])}else{var l=t.name;w[l]=t,r=l}return!o&&r&&(y=r),r||!o&&y},S=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new L(n)},x=b;x.l=_,x.i=k,x.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var L=function(){function v(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(f);if(o){var r=o[2]-1||0,a=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,a)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return x},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,o=!!x.u(t)||t,d=x.p(e),m=function(e,t){var r=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return o?r:r.endOf(l)},f=function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return o?m(1,0):m(31,11);case c:return o?m(1,v):m(0,v+1);case s:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return m(o?g-w:g+(6-w),v);case l:case p:return f(b+"Hours",0);case i:return f(b+"Minutes",1);case a:return f(b+"Seconds",2);case r:return f(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,s=x.p(e),d="set"+(this.$u?"UTC":""),m=(n={},n[l]=d+"Date",n[p]=d+"Date",n[c]=d+"Month",n[u]=d+"FullYear",n[i]=d+"Hours",n[a]=d+"Minutes",n[r]=d+"Seconds",n[o]=d+"Milliseconds",n)[s],f=s===l?this.$D+(t-this.$W):t;if(s===c||s===u){var h=this.clone().set(p,1);h.$d[m](f),h.init(),this.$d=h.set(p,Math.min(this.$D,h.daysInMonth())).$d}else m&&this.$d[m](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[x.p(e)]()},g.add=function(o,d){var p,m=this;o=Number(o);var f=x.p(d),h=function(e){var t=S(m);return x.w(t.date(t.date()+Math.round(e*o)),m)};if(f===c)return this.set(c,this.$M+o);if(f===u)return this.set(u,this.$y+o);if(f===l)return h(1);if(f===s)return h(7);var v=(p={},p[a]=t,p[i]=n,p[r]=e,p)[f]||1,g=this.$d.getTime()+o*v;return x.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var o=e||"YYYY-MM-DDTHH:mm:ssZ",r=x.z(this),a=this.$H,i=this.$m,l=this.$M,s=n.weekdays,c=n.months,d=n.meridiem,u=function(e,n,r,a){return e&&(e[n]||e(t,o))||r[n].slice(0,a)},p=function(e){return x.s(a%12||12,e,"0")},f=d||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(h,function(e,o){return o||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return l+1;case"MM":return x.s(l+1,2,"0");case"MMM":return u(n.monthsShort,l,c,3);case"MMMM":return u(c,l);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(n.weekdaysMin,t.$W,s,2);case"ddd":return u(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(a,i,!0);case"A":return f(a,i,!1);case"m":return String(i);case"mm":return x.s(i,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(o,p,m){var f,h=this,v=x.p(p),g=S(o),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,w=function(){return x.m(h,g)};switch(v){case u:f=w()/12;break;case c:f=w();break;case d:f=w()/3;break;case s:f=(y-b)/6048e5;break;case l:f=(y-b)/864e5;break;case i:f=y/n;break;case a:f=y/t;break;case r:f=y/e;break;default:f=y}return m?f:x.a(f)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=_(e,t,!0);return o&&(n.$L=o),n},g.clone=function(){return x.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=L.prototype;return S.prototype=C,[["$ms",o],["$s",r],["$m",a],["$H",i],["$W",l],["$M",c],["$y",u],["$D",p]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,L,S),e.$i=!0),S},S.locale=_,S.isDayjs=k,S.unix=function(e){return S(1e3*e)},S.en=w[y],S.Ls=w,S.p={},S}()),sm.exports}if(function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};n.default.locale(o,null,!0)}(cm()),"undefined"!=typeof window){let e=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='<symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-ai"><path d="M512 85.333c235.648 0 426.667 191.019 426.667 426.667S747.648 938.667 512 938.667 85.333 747.648 85.333 512 276.352 85.333 512 85.333zm0 85.334a341.333 341.333 0 1 0 0 682.666 341.333 341.333 0 0 0 0-682.666zm-40.405 156.586L593.45 696.96h-83.968l-27.051-89.685H361.899L334.25 696.96H256l122.453-369.707h93.142zm256.213 0V696.96h-78.55V327.253h78.507zm-303.36 75.563h-3.755l-43.306 144.64h89.898l-42.837-144.683z" /></symbol><symbol viewBox="0 0 32 32" aria-hidden="true" id="nss-icon-avatar"><path d="M29.71 13.09a8.09 8.09 0 0 0-9.37-10.41 8.08 8.08 0 0 0-13.7 2.9A8.08 8.08 0 0 0 2.3 18.9a8 8 0 0 0 .7 6.55 8.08 8.08 0 0 0 8.69 3.87 8 8 0 0 0 6 2.68 8.09 8.09 0 0 0 7.7-5.61 8 8 0 0 0 5.33-3.86 8.09 8.09 0 0 0-1.01-9.44Zm-12 16.82a6 6 0 0 1-3.84-1.39l.19-.11 6.37-3.68a1 1 0 0 0 .53-.91v-9l2.69 1.56a.08.08 0 0 1 .05.07v7.44a6 6 0 0 1-6.02 6.02ZM4.8 24.41a6 6 0 0 1-.71-4l.19.11 6.37 3.68a1 1 0 0 0 1 0l7.79-4.49v3.09a.09.09 0 0 1 0 .08L13 26.6a6 6 0 0 1-8.2-2.19ZM3.12 10.53A6 6 0 0 1 6.28 7.9v7.57a1 1 0 0 0 .51.9l7.75 4.47-2.69 1.56a.14.14 0 0 1-.09 0l-6.44-3.72a6 6 0 0 1-2.2-8.18Zm22.13 5.14-7.78-4.52 2.69-1.55a.08.08 0 0 1 .09 0l6.44 3.72a6 6 0 0 1-.9 10.81v-7.57a1.06 1.06 0 0 0-.54-.89Zm2.68-4-.19-.12-6.36-3.7a1 1 0 0 0-1.05 0l-7.78 4.49V9.2a.09.09 0 0 1 0-.09L19 5.4a6 6 0 0 1 8.91 6.21Zm-16.85 5.48-2.7-1.55a.14.14 0 0 1-.05-.08V8.1a6 6 0 0 1 9.84-4.61L18 3.6l-6.39 3.68a1 1 0 0 0-.53.91ZM12.54 14 16 12l3.47 2v4L16 20l-3.47-2Z" fill="currentColor" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-bj"><path d="M746.667 64a170.667 170.667 0 0 1 170.666 170.667v554.666A170.667 170.667 0 0 1 746.667 960h-448A170.667 170.667 0 0 1 128 789.333V234.667A170.667 170.667 0 0 1 298.667 64h448zm0 74.667h-448a96 96 0 0 0-95.894 91.477l-.106 4.523v554.666a96 96 0 0 0 91.477 95.894l4.523.106h448a96 96 0 0 0 95.893-91.477l.107-4.523V234.667a96 96 0 0 0-91.478-95.894l-4.522-.106z" /><path d="M224 325.333a37.333 37.333 0 0 1 3.072 74.539L224 400H106.667a37.333 37.333 0 0 1-3.072-74.539l3.072-.128H224zM224 624a37.333 37.333 0 0 1 3.072 74.539l-3.072.128H106.667a37.333 37.333 0 0 1-3.072-74.539l3.072-.128H224zm469.333-277.333a37.333 37.333 0 0 1 37.206 34.261l.128 3.072v256a37.333 37.333 0 0 1-74.539 3.072L656 640V384c0-20.608 16.725-37.333 37.333-37.333z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-bug"><path d="M703.317 387.157H317.781a61.44 61.44 0 0 1-61.184-61.525v-27.819A238.933 238.933 0 0 1 493.653 58.027h34.134A238.933 238.933 0 0 1 764.5 297.813v27.819a61.44 61.44 0 0 1-61.184 61.525zm-378.453-68.266h371.37v-21.078a170.667 170.667 0 0 0-168.789-171.52h-34.133a170.667 170.667 0 0 0-168.448 171.52zm-81.579 131.498a34.133 34.133 0 0 1-24.32-10.154l-80.64-81.835a34.133 34.133 0 0 1 48.555-47.957l80.725 82.09a34.133 34.133 0 0 1-24.32 58.112zm-4.352 175.958H124.501a34.133 34.133 0 0 1 0-68.267h114.432a34.133 34.133 0 1 1 0 68.267zM162.56 884.053a34.133 34.133 0 0 1-23.893-9.813 34.133 34.133 0 0 1 0-48.299l80.64-81.749a34.133 34.133 0 1 1 48.64 47.957L187.22 873.9a34.133 34.133 0 0 1-24.661 10.154zM780.715 450.39a34.133 34.133 0 0 1-24.32-57.856L837.12 310.7a34.133 34.133 0 0 1 48.555 47.701l-80.64 81.835a34.133 34.133 0 0 1-24.32 10.154zm118.784 175.958H785.067a34.133 34.133 0 1 1 0-68.267h114.09a34.133 34.133 0 0 1 0 68.267zm-37.632 257.706a34.133 34.133 0 0 1-24.32-10.154l-80.726-81.75a34.133 34.133 0 0 1 48.64-47.957l80.64 81.75a34.133 34.133 0 0 1 0 48.298 34.133 34.133 0 0 1-24.234 9.813z" /><path d="M518.997 965.973h-13.141a298.667 298.667 0 0 1-298.667-298.666v-230.4a117.845 117.845 0 0 1 117.675-117.334h374.87a117.845 117.845 0 0 1 117.845 117.675v230.4a298.667 298.667 0 0 1-298.582 298.325zM324.864 387.84a49.493 49.493 0 0 0-49.408 49.408v230.4a230.4 230.4 0 0 0 230.4 230.4h13.141a230.4 230.4 0 0 0 230.4-230.4v-230.4a49.493 49.493 0 0 0-49.664-49.408z" /><path d="M512.427 965.973a34.133 34.133 0 0 1-34.134-34.133V353.707a34.133 34.133 0 0 1 68.267 0V931.84a34.133 34.133 0 0 1-34.133 34.133z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-chat"><path d="M512 117.76c218.065 0 395.636 135.68 395.636 302.545S730.066 722.851 512 722.851a144.058 144.058 0 0 0-50.502 10.473 791.273 791.273 0 0 0-162.909 99.374c-4.422-128.233-23.273-168.96-56.087-191.534-79.593-57.019-126.138-137.542-126.138-220.626 0-167.098 177.57-302.545 395.636-302.545m0-69.818c-256 0-465.455 166.632-465.455 372.363 0 110.313 59.811 209.455 155.23 277.644 23.272 16.756 27.694 116.363 27.694 192.233a41.193 41.193 0 0 0 40.495 41.89 40.03 40.03 0 0 0 23.272-8.61c58.415-45.15 141.731-105.426 192-124.51a74.007 74.007 0 0 1 26.764-6.05c256 0 465.455-166.866 465.455-372.364S768 48.407 512 48.407z" /><path d="M663.273 325.818H360.727a34.91 34.91 0 0 0 0 69.818h302.546a34.91 34.91 0 0 0 0-69.818zm-46.546 162.91H407.273a34.91 34.91 0 0 0 0 69.817h209.454a34.91 34.91 0 0 0 0-69.818z" /></symbol><symbol viewBox="0 0 24 24" id="nss-icon-check"><path fill="#00af9b" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.88-11.71L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-clean"><path d="M943.098 388.291c-3.055-5.038-7.49-9.338-13.134-12.194l-76.22-38.294-70.353-35.368 95.988-191.713c6.45-12.867-4.132-31.243-23.649-41.017-19.516-9.775-40.58-7.256-47.029 5.644l-95.926 191.588-63.57-31.957-98.86-49.683c-.438-.234-.909-.404-1.379-.605-.536-.235-1.008-.47-1.547-.672-.47-.2-.94-.37-1.476-.503-.537-.168-1.043-.37-1.58-.539-.503-.134-1.005-.201-1.512-.336-.538-.102-1.075-.27-1.613-.337-.504-.101-1.005-.134-1.546-.202l-1.612-.201c-.47-.034-1.005 0-1.512-.034-.535 0-1.075-.034-1.579 0-.535 0-1.043.034-1.546.101-.535.034-1.076.034-1.58.102-.502.066-1.005.168-1.512.268-.537.101-1.043.169-1.545.269a79.31 79.31 0 0 0-1.478.403c-.503.134-1.006.268-1.546.436-.47.169-.941.337-1.41.537-.47.17-.975.337-1.478.538-.437.235-.874.47-1.344.672l-1.411.706c-.47.268-.874.537-1.308.806-.439.268-.909.538-1.38.84-.404.301-.806.638-1.21.94-.405.3-.874.638-1.277.974-.403.335-.739.705-1.141 1.076a11.47 11.47 0 0 0-1.142 1.075c-.403.37-.74.806-1.074 1.21-.368.405-.741.772-1.043 1.174-.37.436-.671.908-.974 1.378-.336.404-.638.84-.908 1.277-.303.47-.572.974-.874 1.477-.234.436-.503.807-.704 1.243-23.515 45.719-53.145 88.885-88.55 128.994-.504.572-1.008 1.108-1.478 1.713-22.641 25.462-47.566 49.75-74.743 72.693C271.49 462.563 188.616 510.67 96.002 545.738c-13.639 5.176-21.767 18.612-20.76 32.517a32.289 32.289 0 0 0 15.385 29.762L646.546 947.77a32.45 32.45 0 0 0 12.765 4.468 32.288 32.288 0 0 0 18.544 5.877c8.164 0 16.358-3.09 22.64-9.237 78.17-76.725 139.542-162.821 182.44-255.939 43.401-94.124 65.571-190.435 65.907-286.138a32.15 32.15 0 0 0-5.744-18.51zm-118.843 277.61c-36.716 79.647-88.247 153.888-153.316 221.006l-122.813-75.048 77.128-75.447c12.766-12.463 13-32.922.503-45.685-12.498-12.768-32.92-13.002-45.686-.506l-88.819 86.87-144.447-88.279 87.206-61.138c14.647-10.212 18.175-30.37 7.929-45.015-10.212-14.578-30.368-18.14-45.013-7.892l-110.284 77.295-112.5-68.73c77.464-34.87 147.873-78.841 209.884-131.144 22.91-19.383 44.408-39.606 64.397-60.703L844.41 617.627a713.555 713.555 0 0 1-20.155 48.273zm40.209-111.257L491.656 341.736c21.433-27.077 40.648-55.327 57.58-84.653l334.579 168.164c-1.548 43.065-8.064 86.3-19.351 129.397z" fill="#252435" /></symbol><symbol class="icon" viewBox="0 0 1031 1024" id="nss-icon-container"><path d="M248.332 1023.996a21.84 21.84 0 0 1-11.374-3.094L11.375 890.684A22.75 22.75 0 0 1 0 871.03V610.594a22.931 22.931 0 0 1 11.375-19.747L236.594 460.63a23.022 23.022 0 0 1 22.75 0l225.855 130.217a22.931 22.931 0 0 1 11.375 19.747v260.435a22.75 22.75 0 0 1-11.375 19.655l-225.492 130.218a22.294 22.294 0 0 1-11.375 3.094zM45.5 857.926l202.833 117.022 202.743-117.023V623.697L248.332 506.674 45.5 623.697zm428.325 13.103zm308.755 152.967a22.294 22.294 0 0 1-11.375-3.094L545.985 890.684a22.75 22.75 0 0 1-11.374-19.655V610.594a22.931 22.931 0 0 1 11.374-19.747L771.477 460.63a23.022 23.022 0 0 1 22.75 0l225.583 130.217a22.931 22.931 0 0 1 11.374 19.747v260.435a22.75 22.75 0 0 1-11.374 19.655l-225.583 130.218a21.84 21.84 0 0 1-11.648 3.094zm-202.47-166.07 202.47 117.022 202.834-117.023V623.697L782.579 506.674 580.11 623.697zm428.326 13.103zm-495.573-304.66a21.84 21.84 0 0 1-11.374-3.094L275.905 433.057a22.75 22.75 0 0 1-11.375-19.655V152.967a22.931 22.931 0 0 1 11.375-19.747L501.488 3.003a23.022 23.022 0 0 1 22.749 0L749.729 133.22a22.931 22.931 0 0 1 11.375 19.747v260.435a22.75 22.75 0 0 1-11.375 19.655L524.237 563.275a22.294 22.294 0 0 1-11.375 3.094zM310.03 400.389l202.833 116.932L715.605 400.39V166.071L512.862 49.048 310.03 166.07zm428.325 13.104z" /><path d="M512.862 297.38a23.295 23.295 0 0 1-11.465-3.094l-142.594-82.444a22.75 22.75 0 0 1 0-39.402l142.594-82.443a23.204 23.204 0 0 1 22.84 0l142.593 82.898a22.75 22.75 0 0 1 0 39.402l-142.593 81.99a23.204 23.204 0 0 1-11.375 3.093zm-97.185-105.193 97.185 56.145 96.822-56.145-96.822-55.69zM248.332 763.56a22.385 22.385 0 0 1-11.738-3.094L94 678.569a22.931 22.931 0 0 1-11.374-19.747A22.75 22.75 0 0 1 94 639.167l142.594-82.899a22.75 22.75 0 0 1 22.84 0l142.593 82.444a22.75 22.75 0 0 1 11.375 19.655 22.931 22.931 0 0 1-11.375 19.747l-142.593 81.898a22.294 22.294 0 0 1-11.102 3.549zm-97.185-105.194 97.185 56.146 97.459-56.146-97.459-56.145zm631.432 105.194a22.294 22.294 0 0 1-11.375-3.094l-142.593-81.898a22.931 22.931 0 0 1-11.374-19.747 22.75 22.75 0 0 1 11.374-19.655l142.593-82.444a22.75 22.75 0 0 1 22.84 0l143.231 81.989a22.75 22.75 0 0 1 11.375 19.655 22.931 22.931 0 0 1-11.375 19.747l-142.593 81.898a22.385 22.385 0 0 1-12.103 3.549zm-96.821-105.194 96.821 56.146 97.185-56.146-97.185-56.145z" /></symbol><symbol class="icon" viewBox="0 0 1113 1024" id="nss-icon-contest"><path d="M971.663 144.876h-23.135V52.337a46.27 46.27 0 0 0-46.27-46.27H282.245A477.503 477.503 0 0 1 214.691.515a46.27 46.27 0 0 0-37.015 10.642 46.27 46.27 0 0 0-15.732 35.165v98.092h-23.135A138.809 138.809 0 0 0 0 283.223v92.539a138.809 138.809 0 0 0 138.809 138.809h59.688a394.68 394.68 0 0 0 311.395 225.796v190.631H278.543a46.27 46.27 0 0 0 0 92.54H833.78a46.27 46.27 0 0 0 0-92.54H602.431V745.919a24.523 24.523 0 0 0 0-5.552A393.755 393.755 0 0 0 913.826 514.57h60.15a138.809 138.809 0 0 0 138.81-138.809v-92.54a138.809 138.809 0 0 0-141.123-138.346zM138.809 422.494a46.27 46.27 0 0 1-46.27-46.27v-92.539a46.27 46.27 0 0 1 46.27-46.27h23.135v112.899a374.322 374.322 0 0 0 6.94 72.18zm717.18-72.18a300.753 300.753 0 0 1-601.506 0V98.144H855.99zm161.944 25.91a46.27 46.27 0 0 1-46.27 46.27h-30.075a416.427 416.427 0 0 0 6.94-72.18V237.416h23.135a46.27 46.27 0 0 1 46.27 46.27z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-continue"><path d="M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64zm265.87 713.87a374.62 374.62 0 1 1 80.61-119.54 374.59 374.59 0 0 1-80.61 119.54z" /><path d="m696.93 500-255-217a18.82 18.82 0 0 0-12.53-4.73c-9.47 0-18.41 6.58-18.41 16.66V729c0 10 8.94 16.66 18.41 16.66a18.43 18.43 0 0 0 12.48-4.66l255-217a15.62 15.62 0 0 0 .05-24z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-correct"><path d="M0 0h1024v1024H0V0z" fill="#202425" opacity=".01" /><path d="M955.733 512c0 245.077-198.656 443.733-443.733 443.733S68.267 757.077 68.267 512 266.923 68.267 512 68.267 955.733 266.923 955.733 512z" fill="#1A6" /><path d="M512 102.4c-226.202 0-409.6 183.398-409.6 409.6S285.798 921.6 512 921.6 921.6 738.202 921.6 512 738.202 102.4 512 102.4zM34.133 512C34.133 248.081 248.081 34.133 512 34.133S989.867 248.081 989.867 512 775.919 989.867 512 989.867 34.133 775.919 34.133 512z" fill="#1A6" /><path d="M787.115 339.285a51.2 51.2 0 0 1 0 72.363l-307.2 307.2a51.2 51.2 0 0 1-72.363 0L236.885 548.181a51.2 51.2 0 0 1 72.363-72.362l134.485 134.417 271.019-271.019a51.2 51.2 0 0 1 72.363 0z" fill="#FFF" /></symbol><symbol class="icon" viewBox="0 0 1037 1024" id="nss-icon-cs"><path d="M207.568 0C92.935 0 0 92.935 0 207.568v608.864C0 931.065 92.935 1024 207.568 1024H705.73c114.632 0 207.567-92.935 207.567-207.568v-80.397a41.514 41.514 0 1 0-83.027 0v80.397a124.54 124.54 0 0 1-124.54 124.541h-163.3a110.675 110.675 0 0 0 36.213-24.12L991.938 503.56a110.703 110.703 0 0 0 0-156.548l-33.488-33.487a110.703 110.703 0 0 0-156.561 0L387.473 727.939a110.703 110.703 0 0 0-32.408 76.58l-1.771 115.545c-.139 8.275 3.39 15.747 9.064 20.909h-154.79a124.54 124.54 0 0 1-124.541-124.54V207.567a124.54 124.54 0 0 1 124.54-124.541h500.03A122.672 122.672 0 0 1 830.27 205.699a41.514 41.514 0 0 0 83.027 0C913.297 92.091 821.207 0 707.597 0h-500.03zm0 207.568a41.514 41.514 0 1 0 0 83.027h332.108a41.514 41.514 0 1 0 0-83.027H207.568zm-41.514 249.08a41.514 41.514 0 0 1 41.514-41.513h332.108a41.514 41.514 0 1 1 0 83.027H207.568a41.514 41.514 0 0 1-41.514-41.513zm41.514 166.055a41.514 41.514 0 1 0 0 83.027h138.378a41.514 41.514 0 1 0 0-83.027H207.568zm725.656-216.978a27.676 27.676 0 0 1 0 39.134l-43.354 43.354-72.621-72.621 43.354-43.368a27.676 27.676 0 0 1 39.133 0l33.488 33.488zM831.599 546.484 519.943 858.14a27.676 27.676 0 0 1-19.83 8.109l-62.962-.595.927-59.863a27.676 27.676 0 0 1 8.11-19.138l312.79-312.79 72.62 72.62z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-custom"><path d="M512 981.333c259.2 0 469.333-210.133 469.333-469.333S771.2 42.667 512 42.667 42.667 252.8 42.667 512 252.8 981.333 512 981.333zM512 896a384 384 0 1 1 0-768 384 384 0 0 1 0 768z" /><path d="M529.408 684.373c-8.192-4.394-26.624-4.394-34.816 0l-57.216 30.72c-51.03 27.392-101.803-6.4-95.83-64.426l5.889-56.918c1.109-10.709-5.803-29.866-13.654-37.461l-41.216-39.808c-41.728-40.32-24.874-99.413 32.427-110.507l63.573-12.33c10.838-2.091 28.63-14.848 34.134-24.448l31.018-53.974c28.16-48.981 88.491-48.81 116.566 0l30.976 53.974c5.632 9.728 23.253 22.357 34.133 24.448l63.616 12.33c57.173 11.051 74.539 69.803 32.427 110.507l-41.174 39.808c-7.808 7.552-14.805 26.624-13.696 37.461l5.888 56.875c5.974 57.515-44.714 91.904-95.829 64.47l-57.216-30.72zm-99.115-62.336 23.894-12.842c33.45-17.92 82.218-17.92 115.626 0l23.894 12.8-2.048-19.456c-3.84-36.95 12.714-81.92 39.253-107.606l13.141-12.672-24.832-4.821c-35.285-6.827-73.984-34.56-91.946-65.707L512 385.11l-15.275 26.624c-17.877 31.062-56.746 58.88-91.946 65.707l-24.832 4.821 13.098 12.672C419.797 520.79 436.14 565.76 432.3 602.54l-2.006 19.498z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-delete"><path d="M214.605 298.667V897.28a41.43 41.43 0 0 0 41.386 41.387h513.28c22.87 0 41.387-18.56 41.387-41.387V298.667H214.605zM769.27 1024h-513.28c-69.845 0-126.72-56.832-126.72-126.72V213.333h766.72V897.28c0 69.888-56.832 126.72-126.72 126.72z" /><path d="M981.333 298.667H42.667C19.2 298.667 0 279.467 0 256s19.2-42.667 42.667-42.667h938.666c23.467 0 42.667 19.2 42.667 42.667s-19.2 42.667-42.667 42.667M768 213.333h-85.333V128c0-23.51-19.115-42.667-42.667-42.667H384c-23.51 0-42.667 19.158-42.667 42.667v85.333H256V128C256 57.43 313.43 0 384 0h256c70.57 0 128 57.43 128 128v85.333zM384 810.667c-23.467 0-42.667-19.2-42.667-42.667V469.333c0-23.466 19.2-42.666 42.667-42.666s42.667 19.2 42.667 42.666V768c0 23.467-19.2 42.667-42.667 42.667m256 0c-23.467 0-42.667-19.2-42.667-42.667V469.333c0-23.466 19.2-42.666 42.667-42.666s42.667 19.2 42.667 42.666V768c0 23.467-19.2 42.667-42.667 42.667" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-document"><path d="M815.7 370.9H668.6c-38.3 0-69.4-31.1-69.4-69.4V125.2l216.5 245.7z" fill="#03BD61" /><path d="M306.7 521.2c0 19.8 16.1 35.9 35.9 35.9H666c19.8 0 35.9-16.1 35.9-35.9s-16.1-35.9-35.9-35.9H342.6c-19.8-.1-35.9 16-35.9 35.9zm35.9-151.8h205.3c19.8 0 35.9-16.1 35.9-35.9 0-19.8-16.1-35.9-35.9-35.9H342.6c-19.8 0-35.9 16.1-35.9 35.9 0 19.8 16.1 35.9 35.9 35.9zM666 673.7H342.6c-19.8 0-35.9 16.1-35.9 35.9s16.1 35.9 35.9 35.9H666c19.8 0 35.9-16.1 35.9-35.9s-16.1-35.9-35.9-35.9z" fill="#23202D" /><path d="M644.7 83.4H270.4c-56.4 0-102.3 45.9-102.3 102.3v652.6c0 56.4 45.9 102.3 102.3 102.3h483.2c56.4 0 102.3-45.9 102.3-102.3V319.7L644.7 83.4zM784 838.3c0 16.8-13.6 30.4-30.4 30.4H270.4c-16.8 0-30.4-13.6-30.4-30.4V185.7c0-16.8 13.7-30.4 30.4-30.4h342.1L784 347.2v491.1z" fill="#23202D" /></symbol><symbol viewBox="0 0 24 24" id="nss-icon-downarrow"><path d="m8.71 11.71 2.59 2.59c.39.39 1.02.39 1.41 0l2.59-2.59c.63-.63.18-1.71-.71-1.71H9.41c-.89 0-1.33 1.08-.7 1.71z" fill="currentColor" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-edit"><path d="M939.445 124.541 897.004 82.1c-23.44-23.439-61.44-23.439-84.879 0l-41.115 41.114 127.324 127.324 41.111-41.112c23.444-23.44 23.444-61.446 0-84.885zM889.985 890.753H131.87V132.64h483.216V66.06h-481.07c-37.958 0-68.726 30.768-68.726 68.726v755.968c0 37.958 30.768 68.726 68.725 68.726h755.969c37.957 0 68.725-30.768 68.725-68.726V409.682h-68.725v481.071z" /><path d="M854.562 294.309 727.238 166.986 382.8 511.42l.215.215-20.913 121.426c-2.697 15.659 10.937 29.263 26.59 26.53l121.128-21.148.306.306 344.436-344.44z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-ellipsis"><path d="M277.333 448a64 64 0 1 1 0 128 64 64 0 0 1 0-128zm469.334 0a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM512 448a64 64 0 1 1 0 128 64 64 0 0 1 0-128z" fill="#575C63" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-find"><path d="M527.552 252.896a272 272 0 1 0 0 544 272 272 0 0 0 0-544zm-336 272c0-185.6 150.4-336 336-336 185.568 0 336 150.4 336 336 0 185.568-150.432 336-336 336-185.6 0-336-150.432-336-336z" fill="#404040" /><path d="M521.504 311.584a32 32 0 0 1 36.864-26.24c66.72 11.2 123.52 46.016 160.864 93.92a32 32 0 0 1-50.464 39.36c-27.328-35.04-69.792-61.6-120.96-70.176a32 32 0 0 1-26.304-36.864z" fill="#64abcc" data-spm-anchor-id="a313x.search_index.0.i0.5ab43a81nSTgIi" class="selected" /><path d="M231.584 523.232a32 32 0 0 1-1.088 45.248c-36.384 34.656-61.76 66.4-75.424 92.48-14.336 27.392-12.128 40.832-9.248 46.016 2.528 4.512 10.496 12.096 34.24 15.488 23.072 3.264 55.2 1.504 94.976-6.4 79.2-15.808 181.44-54.56 287.232-113.248a32 32 0 0 1 31.04 55.968c-109.92 60.992-218.464 102.624-305.76 120-43.456 8.672-83.456 11.712-116.48 7.04-32.416-4.608-64.544-17.792-81.184-47.808-18.88-33.952-9.056-73.248 8.48-106.72 18.176-34.752 48.96-72 88-109.152a32 32 0 0 1 45.216 1.088zM680.64 276.896a32 32 0 0 1 23.616-38.624c49.44-11.84 94.88-17.184 132.064-13.632 36.032 3.392 72.544 16.128 90.72 48.896 13.152 23.712 12.192 50.304 4.864 74.688-7.328 24.288-21.76 49.408-40.544 74.24-37.696 49.856-97.184 104.256-170.304 156.16a32 32 0 1 1-37.088-52.16c70.016-49.728 123.936-99.744 156.32-142.592 16.256-21.472 26.016-39.744 30.336-54.112 4.288-14.272 2.432-21.568.448-25.184-2.752-4.96-12.256-13.536-40.8-16.224-27.392-2.624-65.152 1.12-111.04 12.16a32 32 0 0 1-38.592-23.616z" fill="#404040" data-spm-anchor-id="a313x.search_index.0.i3.5ab43a81nSTgIi" class="selected" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-finish"><path d="M0 512A512 512 0 0 1 512 0a512 512 0 0 1 512 512 512 512 0 0 1-512 512A512 512 0 0 1 0 512zm73.143 0A439.37 439.37 0 0 0 512 950.857 439.37 439.37 0 0 0 950.857 512 439.37 439.37 0 0 0 512 73.143 439.37 439.37 0 0 0 73.143 512zm292.571 219.429a73.143 73.143 0 0 1-73.143-73.143V365.714a73.143 73.143 0 0 1 73.143-73.143h292.572a73.143 73.143 0 0 1 73.143 73.143v292.572a73.143 73.143 0 0 1-73.143 73.143zm0-73.143h292.572V365.714H365.714z" fill="#6A6A6A" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-fold"><path d="M406 449.25c-8.4 8.4-13.1 19.8-13.1 31.6s4.7 23.2 13.1 31.6l147.7 147.7c17.5 17.4 45.7 17.4 63.2 0 17.4-17.5 17.4-45.7 0-63.1l-116.1-116.1 116.1-116.1c17.4-17.5 17.4-45.7 0-63.1-8.7-8.7-20.1-13.1-31.6-13.1s-22.9 4.4-31.6 13.1L406 449.25z" /><path d="M934.9 364.2c-15.1-43.2-36.8-83.9-64.3-120.7-27.3-36.4-59.8-68.3-96.6-94.9C697.3 93.2 606.7 64 511.9 64c-60.4 0-119.2 11.8-174.4 35.2-53.3 22.6-101.3 54.8-142.4 96-41.1 41.1-73.4 89-96 142.4-23.2 54.8-35 113-35.2 172.9v3c.3 93.7 29.2 183.4 83.7 259.3 26.3 36.7 58 69.2 94 96.5 36.4 27.6 76.8 49.3 119.7 64.7 48.2 17.2 99 25.9 150.6 25.9 60.4 0 119.2-11.8 174.4-35.2 53.3-22.6 101.3-54.8 142.4-96 41.1-41.1 73.4-89.1 96-142.4 23.2-55.3 35.1-114 35.1-174.4.1-50.5-8.3-100.3-24.9-147.7zM511.8 870.8c-41.5 0-82-7-120.6-20.8-142.4-50.8-238.1-186.6-238.1-338 0-197.8 161-358.8 358.8-358.8 152.4 0 288.5 96.6 338.8 240.4 13.2 37.9 19.9 77.7 19.9 118.4 0 197.9-160.9 358.8-358.8 358.8z" /></symbol><symbol viewBox="0 0 1024 1024" id="nss-icon-fs"><path d="M819.183 955.716a34.15 34.15 0 0 1 0 68.284H204.8a34.15 34.15 0 0 1 0-68.284h614.4zM853.316 0C947.507 0 1024 71.407 1024 159.232v568.951c-.137 87.843-76.63 159.232-170.684 159.232h-682.65C76.647 887.433 0 816.043 0 728.201V159.249C0 71.407 76.63 0 170.684 0h682.65zm0 68.284h-682.65c-56.507 0-102.4 40.79-102.4 90.965v568.934c0 50.16 45.893 90.966 102.4 90.966h682.616c56.525 0 102.417-40.807 102.417-90.966V159.25c.034-50.159-45.875-90.982-102.366-90.982zm-288.443 529.05c17.92 0 32.443 15.274 32.443 34.133S582.793 665.6 564.873 665.6h-310.58c-17.903 0-32.426-15.275-32.426-34.133s14.523-34.134 32.443-34.134h310.597zm-100.83-347.649 3.31 2.15 3.636 2.85c8.328 6.896 15.394 15.497 20.855 25.328l2.236 4.266 2.697 5.854a156.144 156.144 0 0 1 9.676 30.891l1.178 6.451 1.519 9.575c1.365 9.608 2.219 19.302 2.611 29.013l.239 9.728-.102 8.192a260.096 260.096 0 0 1-2.902 32.427l-1.365 8.02-1.331 6.418a157.645 157.645 0 0 1-10.394 30.686l-2.799 5.785-2.27 4.216a90.556 90.556 0 0 1-20.855 24.917l-3.618 2.833-3.584 2.44a64.495 64.495 0 0 1-31.778 10.207l-4.199.05-4.181-.05a65.894 65.894 0 0 1-31.71-9.967l-3.584-2.39-3.618-2.781a88.883 88.883 0 0 1-20.856-24.696l-2.27-4.181-2.833-5.7a157.73 157.73 0 0 1-10.58-30.26l-1.366-6.314-1.4-8.056a259.072 259.072 0 0 1-2.97-32.597l-.102-8.192c0-13.056.854-26.095 2.612-38.98l1.484-9.66 1.195-6.451a164.01 164.01 0 0 1 9.71-31.028l2.646-5.888 2.219-4.369a87.603 87.603 0 0 1 20.855-25.702l3.67-2.901 3.294-2.134a70.827 70.827 0 0 1 75.025 0zm221.935 0 3.31 2.15 3.636 2.868a90.112 90.112 0 0 1 20.855 25.31l2.253 4.266 2.628 5.871a158.534 158.534 0 0 1 9.438 30.891l1.127 6.434 1.57 9.575a289.204 289.204 0 0 1 2.782 29.013l.29 9.728-.103 8.192a259.994 259.994 0 0 1-2.986 32.427l-1.366 8.02-1.33 6.418a157.577 157.577 0 0 1-10.412 30.686l-2.799 5.785-2.27 4.216a90.556 90.556 0 0 1-20.872 24.917l-3.601 2.833-3.584 2.44a64.546 64.546 0 0 1-31.812 10.207l-4.199.068-4.181-.051a65.963 65.963 0 0 1-31.727-9.967l-3.584-2.39-3.618-2.781a88.9 88.9 0 0 1-20.873-24.696l-2.27-4.181-2.798-5.717a157.798 157.798 0 0 1-10.462-30.243l-1.366-6.314-1.365-8.056a258.935 258.935 0 0 1-2.987-32.597l-.102-8.192c0-13.056.853-26.095 2.628-38.98l1.468-9.66 1.212-6.451c2.218-10.701 5.461-21.112 9.694-31.027l2.662-5.888 2.219-4.352a89.361 89.361 0 0 1 20.872-25.703l3.652-2.901 3.294-2.15a70.895 70.895 0 0 1 75.094 0zm-396.015 16.299.12 2.116v214.153c0 15.548-13.142 29.679-25.67 29.679s-25.24-11.23-25.24-26.385V293.649a29.833 29.833 0 0 1-10.958-3.243l-2.065-1.4c-5.717-4.675-9.216-12.202-9.557-20.308v-2.731c-.341-8.192 2.56-16.077 7.748-21.419l1.81-1.706c4.744-3.533 15.598-3.857 21.213-3.738h14.353c14.08-1.792 26.727 10.24 28.246 26.88zm358.963 24.183h-2.014c-3.209.205-6.315 1.349-9.045 3.311l-1.98 1.622-2.355 2.56a51.712 51.712 0 0 0-7.63 12.049l-1.416 3.413-2.048 5.632a123.506 123.506 0 0 0-4.488 17.545l-.939 6.041-1.143 8.687a239.469 239.469 0 0 0-1.297 17.51l-.171 8.79.17 8.67c.205 5.802.598 11.571 1.195 17.305l1.076 8.602.887 5.632a109.595 109.595 0 0 0 4.335 16.384l1.997 5.257 1.365 3.14c1.98 4.096 4.472 7.816 7.39 11.025l2.287 2.304 1.758 1.348c2.918 1.997 6.178 3.157 9.54 3.38h2.526v.409c3.857.17 7.68-.99 10.957-3.311l1.911-1.536 2.321-2.406c2.97-3.363 5.513-7.203 7.56-11.435l1.434-3.243 1.963-5.342a117.248 117.248 0 0 0 4.335-16.69l.904-5.735 1.024-8.482c.598-5.65.99-11.333 1.195-17.033l.137-8.567-.154-8.619a230.622 230.622 0 0 0-1.263-17.135l-1.11-8.533-.87-6.076a131.038 131.038 0 0 0-4.283-17.818l-1.98-5.734-1.417-3.413c-2.048-4.438-4.608-8.534-7.628-12.118l-2.339-2.577-1.604-1.348a17.135 17.135 0 0 0-8.755-3.447l-2.338-.035zm-222.208 0h-1.997c-3.157.222-6.212 1.366-8.909 3.311l-1.962 1.622-2.339 2.56a52.19 52.19 0 0 0-7.628 12.049l-1.417 3.413-2.048 5.632a125.747 125.747 0 0 0-4.437 17.545l-.939 6.041-1.092 8.687a260.013 260.013 0 0 0-1.246 17.51l-.17 8.773.136 8.704c.188 5.768.597 11.537 1.195 17.288l1.092 8.585.853 5.632c1.024 5.615 2.44 11.093 4.267 16.384l1.945 5.256 1.383 3.14c1.98 4.097 4.471 7.817 7.407 11.026l2.27 2.287 1.74 1.365c2.868 1.98 6.093 3.14 9.387 3.38h2.509v.409c4.062.273 8.072-.956 11.52-3.465l1.672-1.365 2.287-2.423c2.953-3.346 5.462-7.186 7.458-11.435l1.4-3.243 1.997-5.325a114.7 114.7 0 0 0 4.352-16.69l.887-5.752 1.075-8.465a258.833 258.833 0 0 0 1.246-17.033l.188-8.567-.17-8.602a244.497 244.497 0 0 0-1.264-17.152l-1.075-8.5-.973-6.109a131.209 131.209 0 0 0-4.556-17.818l-2.048-5.717-1.434-3.413a51.766 51.766 0 0 0-7.612-12.118l-2.355-2.56-1.587-1.365a16.35 16.35 0 0 0-11.008-3.482z" /></symbol><symbol viewBox="0 0 90 90" id="nss-icon-gitee"><image width="90" height="90" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAABfGlDQ1BpY2MAACiRfZE7SMNQFIb/ PqQiFQeDiDhkqE4WREUctQpFqBBqhVYdTG76giYNSYqLo+BacPCxWHVwcdbVwVUQBB8gjk5Oii5S 4rlJoUWMBy7347/n/7n3XCDYqDDNCo8Dmm6b6WRCzOZWxcgrwhhAAALCMrOMOUlKwbe+7qmT6i7O s/z7/qxeNW8xICASzzLDtIk3iKc3bYPzPrHASrJKfE48ZtIFiR+5rnj8xrnocpBnCmYmPU8sEIvF DlY6mJVMjXiKOKZqOuUHsx6rnLc4a5Uaa92TvzCa11eWuU5rGEksYgkSRCiooYwKbMRp10mxkKbz hI9/yPVL5FLIVQYjxwKq0CC7fvA/+D1bqzA54SVFE0DXi+N8jACRXaBZd5zvY8dpngChZ+BKb/ur DWDmk/R6W4sdAX3bwMV1W1P2gMsdYPDJkE3ZlUK0goUC8H5G35QD+m+BnjVvbq1znD4AGZpV6gY4 OARGi5S97vPu7s65/dvTmt8P7tVycvkYRvIAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADq YAAAOpgAABdwnLpRPAAAAu5QTFRFAAAAvwBAyB4jxx4ixx0jxx0jxx4j/wAA/wAAyB4ixhwjxx0j xx0jxxwkyBwixRcjyB4kxxwjxxwjyB0i1SsryiAgxx0jxx0jyB4izBoazBomyB0jxx0jxx0jxhwj qgAAxh4jxx0jyB4ixRskxR0jxx0jxx0jyCQkxxwlvxUrxx4kxx0jxSEhxx0jxhwjzDMzyB4kxxwj xBQnxx0jxx0jwhgkxx4jxx0jwx4eyh4kxx0kxx0i0RcuyBskxhwjxxwkxx0ixxwixxwjxx0jxBoh xx0jxxwjtiQkyB4jxx0jyB4jyx4myRsoxx0jyBwixx0kxx4jxx4ixx0jxh0jxhwhxx0ixh0iyBsj xx0kxh0jyB0jxhwkxx4kxx8kyB0iyB0jxx4jxx0jxhwixx0jxh0ixx0kxx0jxhwkyB0jxx0jyB0j xhwixxwjxx0jxx0jyB0jxx0ixx0kxhwjxx0jxx0jyB0jxx0jxx0jxx0jxh0jxhwjxhwjxx0jxh4k xhwmxx0jvyAgxh0jxR0ixx4jxh4iyB4jxx4jyBwhxh0kxx0ixx8lxx0jxx0jxx0kyB0ivyAgxx0j xx4kxxwixyAgxxwkyRsixx0jyR0ixx0jxBoixx0kxx4ixx0jyB0kxx0jxx4kyywyyigtyCAm1ltf 5pqd8szN++/v////9NLTzTc8yysx4oqN+unp6qqs3HJ2++3uyiku7bW3yy809NHSySYs8szO8svM 67Cy8snK4ouO//39+/Dw+ejp6qutyikvyCEm//7+7LS21VZa11xg/fX22GNn5pue/vz8yCEnyiow +uztySQqzjtA3XZ5/fn599/gzz1C666wzjo/zjg9xx8l+ebn0UdM772/9+Dh+OHi+OPj/vv8zTU6 9dfY2WVp0klO1FFW229y7LGz8MTF0EBG7LO19NTW5JGU0EBF1Vdc997f2mhs0kpP6qmr/vv7zz5D 55+i+OLjyy0z/PT10UVK/PP0+eXm56Cj89DR8MPEjIyeMAAAAJ50Uk5TAAQzd7v38gECPJnx4ogl FoHgxWEGGPXhbwoUmPnobANe6s85LMf9DjcMpPgf1qIFKrwN68oVO9MRK+3ICxy015VbZfMn9s4H xntmIhO3SsmSRL+CNt6UQZ5Qqj+AMsF0teVap1l61Yfv+q+rkdGDc5xOdfvZoa1g292QJP55G/wI 5jWaTNibLmv0KVe2cYYQw6xSILMm7DTaHpajhU85L0AdAAAAAWJLR0SnwLcrAwAAAAlwSFlzAAAN 1wAADdcBQiibeAAAAAd0SU1FB+YEFgEnJRw48KkAAAHBelRYdFJhdyBwcm9maWxlIHR5cGUgaWNj AAA4jaVTW44cIQz85xQ5gvGzOU4PNFLuf4EYDPPa2UibWDNClKFc2NXpd63p1wg1TDACT9CqpM0I mCakTS9jQ0E2RgQ5pMiJAHappxkgjzX7j8c+aVYyMuAsIMAV/iG6V03BGtEI213ZDyP98HxTVjHS KJRxwQzJHwaGxpHQlSA18w7BxssReGbXe3g7Fn6uVmBN3s7Zxki0x4UX/Kp33J7wLcjxQcQ+mZCK mVcF8Auf8W/OpyHVUFvsaSfYe+EGWE9wdS84b9z203z8PicTfZ/SnmRV0UtEaF9YaSfwFgIX/7sI GVMbD9XhNPHVE+qHRpOxrf0VZ4YlBBcBvgtIf1eQz4cCgVUMo9gsQlGE2Ym0jw/C//mhAB6fxFMM B8Obgd1TSkT4bMgMleOmtKuPIJS5tzIV9lZg4rczz7WtStTqJKqu4pMC7fEyOnoQUvmoFLn0UNSP OY2bVv5IiMVm3o655qM5oNltc3/mINqdR/WYvHhaNEHKvEhhMzjl9uK7CNpEcFKbF4XDYFzrPFhK OVeFIO5Sv/Pdbvbb2GF/c1+M9x9Er0ZMfwC7Vx/w8GGxjwAABCJJREFUWMO12XVcFTEAB/DxUEEE BUwUwUBC5J6CimKhgoBdKHYnz+7A7u52igqH3R3Y3d3d3fGfdzx4795tt7fbPX5/brfv5z677e62 AUCOnc4+S1aIJFsWe50D0BDH7E45oGKcXXKywrlc3aCVuOfOwwDndclnDRaTv4CHSrhgIU8aWExh L28VsEORorSwmGLFqWWfEmpgIb5OfnRyEapOtoybPwUcUFI9LCSwgFW5VBCTLITTk+XSzqwyhGWC SbJ/CLsMYdlyynJ5hgcoTWgFJblimDYZwkqV8XIVDf2ckap2ODm4mnYZwnAczdlChrA6KtewjQxr Rshln0jlq1etJifR4upaUZayYzReXbN2XVIyby0p66VtYizp2lh4w8ZNVtm0bJa2iqwjletiZ+GW rXQwzydZtKsnpQth4G3baWE5DetLJgvma7VjJ70spxuY6YaovGu3CpnfI2vdKEPOhXkr7VUjI3Tj DLoJ5gmqkvl98vZNjbJDLDrqqMeGMevkQDMj3Ry96f0WDQ8cJOfQ4SNyIMw4JeMQOVUyU44eO74G qk8LUY5C/xhPmOWTpxhcIS1FuhVaftp8z4wyDHMU6NZouXlMb2eUIWwj0G3RYvO77jgz3Q4AD3SS p5rkM2eZ6fYA6NDScyb6PLMMOwDQES1dbaI3sdPQD/cUbUPrQCda+sJFpaxfhaM7g2hK+tJl5VfI lasYugvoSkdfIMg8fw1DdwPOdPR14psvCUOHg+509EXVNAd6ZBbdEwRmFh0PQjKLjgOxdPQN1bQB 9KKjb95SS/cGjeloePvO3XsWuf+ATPcBfSlpNA8fEel+oD8zDR8T6QjQj51+QqIH6EEEO/2URA8U 1gMhzPQzEj1I+OwOZqafm657gVYOEWgvVvqlefS9QmtLictnAk367Ca+No/rN0jt0LQf1WHKNP9W +Z4lMv8OqR6e9jvpSqDff/iIy9NnzyVzkU9ORWhdGj1ipDJNl0+IHJS+KnDXSH/+gtAJ6XRujfRX RPYclU7r3TTR374jtJNpceelhf7xE5FHm7eIx4xlp3+dQAcmJ1lIezHTv5+gcqB0X9u7lrQqkX5s /EH7GcImFpsW43yldSl0cPKnLxgYusm2zcZLK29s/ptCzs5/r968S4XYTJBtEAVMhDbKJGRba3Kk dlVMKGaDf4pN5KnTACacDWTf6TgZ6Gdop2cCfDzctcqzgFIKhmqTxxPOrmbP0SIbiKdiUXOZ4ZH9 ATl24YxyzenAauZ1Z5GDfKzLAMyvpF7mKtPIQofHqDyOiJ1AB4upEq8C7mEIoJeF1KftlQGc+rPS 7AsoYE9uoWpYTNPwRVaGRcIoJlhMnhbxisdAQw2LmV1jHNu0a99B3r9LuCFLNboZCdZ1TnBZtrxn yzjDipkrI/TaRW35DzVifp/2W29tAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA0LTIyVDAxOjM5 OjM3KzAwOjAwa3G6FwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNC0yMlQwMTozOTozNyswMDow MBosAqsAAAAbdEVYdGljYzpjb3B5cmlnaHQAUHVibGljIERvbWFpbraRMVsAAAAidEVYdGljYzpk ZXNjcmlwdGlvbgBHSU1QIGJ1aWx0LWluIHNSR0JMZ0ETAAAAFXRFWHRpY2M6bWFudWZhY3R1cmVy AEdJTVBMnpDKAAAADnRFWHRpY2M6bW9kZWwAc1JHQltgSUMAAAAASUVORK5CYII="></image></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-jl"><path d="M518.965 847.499c-21.29 3.84-43.232 5.834-65.632 5.834a366.4 366.4 0 0 1-189.002-52.181 2118.4 2118.4 0 0 0-15.307-8.981l-86.944 23.712c-23.893 6.506-45.813-15.403-39.296-39.296l23.68-86.848c-8.821-15.008-14.656-25.152-17.632-30.71a366.485 366.485 0 0 1-43.499-173.696c0-203.242 164.758-368 368-368 185.515 0 338.966 137.27 364.32 315.776a255.85 255.85 0 0 1 121.014 217.558c0 42.709-10.496 83.978-30.262 120.842-1.792 3.339-4.992 8.928-9.696 16.96l14.614 53.558c6.506 23.893-15.403 45.813-39.296 39.296l-53.643-14.635-6.23 3.67a254.933 254.933 0 0 1-131.487 36.309 255.061 255.061 0 0 1-163.702-59.168zm79.862-24.043a191.36 191.36 0 0 0 83.84 19.21 190.933 190.933 0 0 0 98.57-27.2c2.208-1.322 8.288-4.874 18.518-10.837a32 32 0 0 1 24.522-3.21l12.566 3.424-3.424-12.566a32 32 0 0 1 3.338-24.725A996.672 996.672 0 0 0 852 741.259a190.997 190.997 0 0 0 22.667-90.592 191.68 191.68 0 0 0-54.635-134.187c-11.573 138.09-99.381 254.485-221.205 306.987zm-387.051-129.92-12.512 45.867 45.867-12.512a32 32 0 0 1 24.522 3.221c15.254 8.885 24.374 14.219 27.595 16.15a302.4 302.4 0 0 0 156.085 43.071c167.894 0 304-136.106 304-304s-136.106-304-304-304-304 136.107-304 304c0 50.795 12.448 99.712 35.904 143.456 3.104 5.792 10.934 19.307 23.2 40.022a32 32 0 0 1 3.339 24.725zm374.89-320.203a32 32 0 0 1 0 64H320a32 32 0 0 1 0-64h266.667zm-128 160a32 32 0 0 1 0 64H320a32 32 0 0 1 0-64h138.667z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-like"><path d="M773.6 912.7h-1.2c-37.2-.4-74.5-.4-111.8-.4h-56.9c-38 0-76 0-114.1-.5-21.1-.6-41.9-5-61.5-13-33.3-13-52.3-42-52.2-79.7l.1-141.4c0-78.3 0-156.7.7-235 .1-21.3 13.8-41.3 25.5-51.8 45.3-41.4 94.5-93 115.1-162.6 5.7-19.4 7.9-40.8 10.2-63.4 4.6-45 33.8-74.3 72.8-74.3 15.3 0 30.6 4.6 45.6 13.5 30.1 18.1 50.2 46.5 61.3 87 17.8 64.3 8.7 126.7-1.3 180.2v.2c-2.3 12.5 7.1 24.1 19.9 24.1h130c22.4 0 54.5 2.8 74.3 26.8 14.4 17.5 18.5 41.1 12.4 72.3-18.6 95.9-41.4 192.6-63.2 282.7-6.8 28.1-18.1 54.1-29 79.3l-4.7 10.8c-12.4 29.2-38 45.2-72 45.2zm-557.5-9.4h-11.9c-43 0-78.2-35.2-78.2-78.2V476.6c0-43 35.2-78.2 78.2-78.2h11.9c43 0 78.2 35.2 78.2 78.2V825c.1 43.1-35.1 78.3-78.2 78.3z" fill="#2db55d" data-spm-anchor-id="a313x.search_index.0.i17.47f33a81nHwWi7" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-loading"><path d="M533.713 101.852c13.248-7.184 30.638-1.149 38.658 13.42l73.096 132.862c8.06 14.559 3.738 32.352-9.51 39.535s-30.65 1.15-38.66-13.42l-73.106-132.862c-8.01-14.559-3.727-32.352 9.522-39.535z" fill="#333" /><path d="M700.347 10.389c-8.957-12.09-27.264-13.884-40.674-4.03L536.816 96.35c-13.41 9.823-17.048 27.727-8.06 39.787s27.273 13.883 40.683 4.03l122.828-89.992c13.41-9.824 17.047-27.727 8.08-39.787zm-214.542 911.76c-13.25 7.183-30.65 1.148-38.659-13.42L374.04 775.865c-8.01-14.559-3.728-32.352 9.521-39.535s30.649-1.15 38.659 13.42l73.106 132.862c8.01 14.559 3.728 32.352-9.521 39.535z" fill="#333" /><path d="M319.16 1013.611c8.967 12.09 27.274 13.884 40.684 4.03l122.858-89.981c13.41-9.824 17.047-27.728 8.06-39.788s-27.274-13.883-40.684-4.03L327.25 973.824c-13.41 9.824-17.017 27.727-8.09 39.787z" fill="#333" /><path d="M462.47 928.486a32.382 32.382 0 0 1-4.03-.252 424.168 424.168 0 0 1-263.377-138.122 418.879 418.879 0 0 1-39.404-507.52 423.745 423.745 0 0 1 174.826-152.49 32.24 32.24 0 0 1 27.495 58.326 359.334 359.334 0 0 0-148.247 129.306 354.367 354.367 0 0 0 33.39 429.387A359.757 359.757 0 0 0 466.4 864.256a32.24 32.24 0 0 1-3.97 64.23zm198.382-25.974a32.24 32.24 0 0 1-12.19-62.104 358.679 358.679 0 0 0 160.407-129.165 354.377 354.377 0 0 0-31.294-440.59 359.364 359.364 0 0 0-229.927-114.778 32.244 32.244 0 0 1 6.297-64.18A423.785 423.785 0 0 1 825.28 227.068a418.868 418.868 0 0 1 36.916 520.72 423.03 423.03 0 0 1-189.163 152.317 32.11 32.11 0 0 1-12.18 2.408z" fill="#333" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-minimize"><path d="M784 80H240c-88 0-160 72-160 160v544c0 88 72 160 160 160h544c88 0 160-72 160-160V240c0-88-72-160-160-160zm96 704c0 52.8-43.2 96-96 96h-96v-96c0-52.8 43.2-96 96-96h96v96zm0-160h-96c-88 0-160 72-160 160v96H240c-52.8 0-96-43.2-96-96V240c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v384z" fill="#4A576A" /><path d="M560 336c-17.6 0-32 14.4-32 32v115.2L302.4 257.6c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L483.2 528H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h192c9.6 0 17.6-3.2 22.4-9.6 6.4-6.4 9.6-14.4 9.6-22.4V368c0-17.6-14.4-32-32-32z" fill="#4A576A" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-pause"><path d="M887.74 353.5c-20.511-48.423-49.759-91.872-87.139-129.251s-80.828-66.628-129.251-87.139c-50.123-21.238-103.402-31.918-158.257-31.918s-108.134 10.801-158.257 31.918c-48.423 20.511-91.872 49.759-129.251 87.139-37.379 37.379-66.628 80.828-87.139 129.251-21.238 50.123-31.918 103.402-31.918 158.257s10.801 108.134 31.918 158.257c20.511 48.423 49.759 91.872 87.139 129.251 37.379 37.379 80.828 66.628 129.251 87.139 50.123 21.238 103.402 31.918 158.257 31.918s108.134-10.801 158.257-31.918c48.423-20.511 91.872-49.759 129.251-87.139 37.379-37.379 66.628-80.828 87.139-129.251 21.238-50.123 31.918-103.402 31.918-158.257S908.857 403.744 887.74 353.5zM513.092 860.069c-192.117 0-348.311-156.194-348.311-348.311s156.194-348.311 348.311-348.311 348.311 156.194 348.311 348.311-156.194 348.311-348.311 348.311z" /><path d="M618.678 324.13c-19.419 0-35.195 15.899-35.195 35.195v303.408c0 19.419 15.777 35.195 35.195 35.195 19.297 0 35.195-15.777 35.195-35.195V359.325c0-19.297-15.777-35.195-35.195-35.195zm-211.172 0c-19.419 0-35.195 15.899-35.195 35.195v303.408c0 19.419 15.777 35.195 35.195 35.195 19.297 0 35.195-15.777 35.195-35.195V359.325c0-19.297-15.777-35.195-35.195-35.195z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-pedia"><path d="M1003.392 205.44a256 256 0 0 0-251.52-152.96 364.16 364.16 0 0 0-248.96 85.12 365.44 365.44 0 0 0-246.4-85.12 256 256 0 0 0-256 152.96 26.24 26.24 0 0 0 0 10.24v591.36a30.72 30.72 0 0 0 8.96 21.76 32.64 32.64 0 0 0 21.12 8.32 30.08 30.08 0 0 0 20.48-7.68c7.04-7.04 183.68-165.12 433.28-15.36a30.08 30.08 0 0 0 36.48-4.48 359.68 359.68 0 0 1 432.64 19.84 31.36 31.36 0 0 0 20.48 7.68 30.784 30.784 0 0 0 12.8 0 29.44 29.44 0 0 0 17.92-27.52V215.04a25.728 25.728 0 0 0-1.28-9.6zm-58.88 16V748.8a420.032 420.032 0 0 0-94.72-42.24 401.856 401.856 0 0 0-119.68-17.92A458.24 458.24 0 0 0 531.072 736V192.64a293.76 293.76 0 0 1 218.88-79.36 197.76 197.76 0 0 1 194.56 108.16zM472.192 192v545.28a426.88 426.88 0 0 0-316.16-30.08 401.216 401.216 0 0 0-92.8 40.96V221.44a200.32 200.32 0 0 1 192-108.16A294.4 294.4 0 0 1 472.192 192z" fill="#454545" /><path d="M977.152 906.24A522.752 522.752 0 0 0 812.672 832a341.12 341.12 0 0 0-310.4 64 344.96 344.96 0 0 0-309.76-64 552.256 552.256 0 0 0-164.48 71.04 32.64 32.64 0 0 0-12.8 19.84 31.36 31.36 0 0 0 13.44 30.72 31.36 31.36 0 0 0 33.92 0c9.6-6.4 245.12-160.64 419.2 7.04a30.08 30.08 0 0 0 21.12 8.96 32 32 0 0 0 20.48-8.32 276.48 276.48 0 0 1 273.92-64 485.568 485.568 0 0 1 146.56 64 33.28 33.28 0 0 0 23.04 5.12 32.64 32.64 0 0 0 19.84-12.16 30.72 30.72 0 0 0-7.68-42.24l-1.92-5.76z" fill="#454545" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-pen"><path d="m597.333 273.664 60.331-60.33 195.84 195.669-60.245 60.33z" /><path d="M745.472 203.264 281.899 666.837l-39.254 157.227 157.184-39.296 463.574-463.573-117.931-117.931zm235.861 117.93-538.88 538.88L128 938.668l78.635-314.454 538.837-538.88 235.861 235.862z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-rank"><path d="M160 608c-19.2 0-32 12.8-32 32v128c0 19.2 12.8 32 32 32h64c19.2 0 32-12.8 32-32V640c0-19.2-12.8-32-32-32h-64zm0-64h64c54.4 0 96 41.6 96 96v128c0 54.4-41.6 96-96 96h-64c-54.4 0-96-41.6-96-96V640c0-54.4 41.6-96 96-96zm320-320c-19.2 0-32 12.8-32 32v512c0 19.2 12.8 32 32 32h64c19.2 0 32-12.8 32-32V256c0-19.2-12.8-32-32-32h-64zm0-64h64c54.4 0 96 41.6 96 96v512c0 54.4-41.6 96-96 96h-64c-54.4 0-96-41.6-96-96V256c0-54.4 41.6-96 96-96zm320 320c-19.2 0-32 12.8-32 32v256c0 19.2 12.8 32 32 32h64c19.2 0 32-12.8 32-32V512c0-19.2-12.8-32-32-32h-64zm0-64h64c54.4 0 96 41.6 96 96v256c0 54.4-41.6 96-96 96h-64c-54.4 0-96-41.6-96-96V512c0-54.4 41.6-96 96-96z" data-spm-anchor-id="a313x.search_index.0.i18.361a3a81yu3PiY" class="selected" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-regen"><path d="M874.144 262.56C735.232 79.104 471.264 41.6 285.76 178.912c-60.16 44.544-106.784 104.352-135.584 172.224l-21.696-73.92c-4.992-16.96-22.752-26.752-39.712-21.696-16.96 4.992-26.688 22.784-21.696 39.744l47.456 161.76C118.624 470.944 131.36 480 145.216 480c2.976 0 22.72-5.76 25.824-6.912l161.248-59.264c16.576-6.08 25.088-24.48 18.976-41.088-6.08-16.576-24.384-25.056-41.088-18.976l-107.968 39.68c23.424-64.576 65.568-121.632 121.6-163.104 157.376-116.576 381.376-84.768 499.296 70.848 56.832 75.008 80.8 167.456 67.488 260.256-13.376 93.28-62.784 175.712-139.072 232.192-157.536 116.512-381.568 84.736-499.392-70.72-10.688-14.112-30.72-16.864-44.832-6.176-14.08 10.656-16.832 30.752-6.176 44.8 82.464 108.832 208.992 166.24 337.024 166.24 87.68 0 176.032-26.912 251.456-82.72 90.144-66.72 148.512-164.224 164.352-274.528 15.84-109.824-12.512-219.2-79.808-307.968z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-right"><path d="M377.8 832.3c-12.5 0-25-4.8-34.5-14.3L76.5 551.2c-19.1-19.1-19.1-50 0-69.1 19.1-19.1 50-19.1 69.1 0L412.4 749c19.1 19.1 19.1 50 0 69.1-9.6 9.5-22.1 14.2-34.6 14.2z" /><path d="M377.8 832.3c-12.5 0-25-4.8-34.5-14.3-19.1-19.1-19.1-50 0-69.1L877 215.3c19.1-19.1 50-19.1 69.1 0s19.1 50 0 69.1L412.4 818c-9.6 9.6-22.1 14.3-34.6 14.3z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-search"><path d="M944.951 875.01 777.542 707.703c48.606-64.979 77.565-145.306 77.565-232.797 0-215.401-174.777-389.973-390.28-389.973C249.425 85.035 74.75 259.607 74.75 475.008s174.674 389.974 390.178 389.974c97.826 0 186.954-36.225 255.412-95.575l165.055 165.056c8.186 8.186 18.931 12.381 29.778 12.381 10.847 0 21.489-4.195 29.777-12.381 16.373-16.475 16.373-43.08 0-59.453zM464.93 780.97c-168.842 0-306.269-137.222-306.269-306.064S296.087 168.944 464.93 168.944 771.198 306.27 771.198 475.008 633.77 780.97 464.928 780.97z" /></symbol><symbol viewBox="0 0 32 32" id="nss-icon-send"><path fill="#fff" d="M27.71 4.29a1 1 0 0 0-1.05-.23l-22 8a1 1 0 0 0 0 1.87l8.59 3.43L19.59 11 21 12.41l-6.37 6.37 3.44 8.59A1 1 0 0 0 19 28a1 1 0 0 0 .92-.66l8-22a1 1 0 0 0-.21-1.05z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-share"><path d="M874.9 459.4c-18.8 0-34 15.2-34 34v355.7c0 18.6-15.5 33.7-34.5 33.7H181.5c-19 0-34.5-15.1-34.5-33.7V232.3c0-18.6 15.5-33.7 34.5-33.7H541c18.8 0 34-15.2 34-34s-15.2-34-34-34H181.5C125 130.6 79 176.2 79 232.3v616.8c0 56 46 101.7 102.5 101.7h624.9c56.5 0 102.5-45.6 102.5-101.7V493.4c0-18.8-15.2-34-34-34z" /><path d="M885.5 82.7H657.1c-18.8 0-34 15.2-34 34s15.2 34 34 34h169.7L358.5 619.1c-13.3 13.3-13.3 34.8 0 48.1 6.6 6.6 15.3 10 24 10s17.4-3.3 24-10l470-470v169.7c0 18.8 15.2 34 34 34s34-15.2 34-34V141.5c.1-32.4-26.4-58.8-59-58.8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-sqrt"><path d="M95 702c-2.7 0-7.17-2.7-13.5-8-5.8-5.3-9.5-10-9.5-14 0-2 .3-3.3 1-4 1.3-2.7 23.83-20.7 67.5-54 44.2-33.3 65.8-50.3 66.5-51 1.3-1.3 3-2 5-2 4.7 0 8.7 3.3 12 10s173 378 173 378c.7 0 35.3-71 104-213s137.5-285 206.5-429S812 97.3 814 94c5.3-9.3 12-14 20-14h399166v40H845.272L620 587l-235 486c-2.7 4.7-9 7-19 7-6 0-10-1-12-3S160 655 160 655l-65 47zM834 80h400000v40H834z" /></symbol><symbol viewBox="0 0 24 24" id="nss-icon-star"><path d="m12 17.27 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z" fill="#ffb800" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-statistics"><path d="M902 902H182c-49.688 0-90-40.313-90-90V153.875c0-16.594 13.406-30 30-30s30 13.406 30 30V812c0 16.594 13.406 30 30 30h720c16.594 0 30 13.406 30 30s-13.406 30-30 30Z" /><path d="M478.25 752c-16.594 0-30-13.406-30-30V153.875c0-16.594 13.406-30 30-30s30 13.406 30 30V722c0 16.594-13.406 30-30 30Zm344.625 0c-16.594 0-30-13.406-30-30V153.875c0-16.594 13.406-30 30-30s30 13.406 30 30V722c0 16.594-13.406 30-30 30Zm-516.188 0c-16.594 0-30-13.406-30-30V352.437c0-16.594 13.406-30 30-30s30 13.406 30 30V722c0 16.594-13.406 30-30 30Zm344.626 0c-16.594 0-30-13.406-30-30V352.437c0-16.594 13.406-30 30-30s30 13.406 30 30V722c0 16.594-13.406 30-30 30Z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-time"><path d="M796.792 487.402h99.053v55.481h-99.053v-55.481Zm-277.41 264.007h55.482v99.053h-55.481v-99.053ZM803.82 297.652l-70.04 70.04-39.23-39.231 70.04-70.04 39.23 39.231Zm-39.227 474.224-70.04-70.04 39.231-39.23 70.04 70.04-39.231 39.23ZM388.88 664.955l131.56-131.613V267.337h84.127V566.62c-5.85 5.85-156.154 157.846-156.154 157.846l-59.533-59.512zm181.166-610.33v79.814c206.26 0 374.085 167.825 374.085 374.118 0 206.28-167.825 374.107-374.085 374.107-189.281 0-346.092-141.384-370.63-324.073l56.933 56.158 56.446-56.445-155.95-155.95L.492 558.315l56.445 56.446 61.485-61.484C140.96 782.64 334.899 962.49 570.068 962.49c250.266 0 453.911-203.634 453.911-453.921-.022-250.299-203.646-453.944-453.932-453.944z" /></symbol><symbol viewBox="0 0 24 24" id="nss-icon-try"><path fill="#ffbe17" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24a.71.71 0 0 0-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-unfold"><path d="M616.85 512.6c8.4-8.4 13.1-19.8 13.1-31.6s-4.7-23.2-13.1-31.6l-147.7-147.7c-17.5-17.4-45.7-17.4-63.2 0-17.4 17.5-17.4 45.7 0 63.1l116.1 116.1L405.95 597c-17.4 17.5-17.4 45.7 0 63.1 8.7 8.7 20.1 13.1 31.6 13.1s22.9-4.4 31.6-13.1l147.7-147.5z" /><path d="M934.9 364.2c-15.1-43.2-36.8-83.9-64.3-120.7-27.3-36.4-59.8-68.3-96.6-94.9C697.3 93.2 606.7 64 511.9 64c-60.4 0-119.2 11.8-174.4 35.2-53.3 22.6-101.3 54.8-142.4 96-41.1 41.1-73.4 89-96 142.4-23.2 54.8-35 113-35.2 172.9v3c.3 93.7 29.2 183.4 83.7 259.3 26.3 36.7 58 69.2 94 96.5 36.4 27.6 76.8 49.3 119.7 64.7 48.2 17.2 99 25.9 150.6 25.9 60.4 0 119.2-11.8 174.4-35.2 53.3-22.6 101.3-54.8 142.4-96 41.1-41.1 73.4-89.1 96-142.4 23.2-55.3 35.1-114 35.1-174.4.1-50.5-8.3-100.3-24.9-147.7zM511.8 870.8c-41.5 0-82-7-120.6-20.8-142.4-50.8-238.1-186.6-238.1-338 0-197.8 161-358.8 358.8-358.8 152.4 0 288.5 96.6 338.8 240.4 13.2 37.9 19.9 77.7 19.9 118.4 0 197.9-160.9 358.8-358.8 358.8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-unlike"><path d="M725.6 854.8h-1.3c-33.7-.3-68.1-.4-97.6-.4H577c-31.8 0-65.8 0-100.1-.4h-.4c-20.9-.6-41.2-4.9-60.6-12.8-36.6-14.3-58.5-47.4-58.3-88.4l.2-123.7c0-69.5.1-137.6.6-205.8.2-25.1 15-47.4 28.9-60 37.6-34.4 78.3-77.1 95-133.2 4.5-15.3 6.3-33 8.2-51.8 2.4-23.8 11.4-44.3 26.2-59.3 15-15.3 35.4-23.8 57.4-23.8 17 0 33.9 5 50.2 14.6 31 18.6 51.5 47.4 62.6 88 16.4 59.4 8.6 115.8-.3 164.2h111c13.6 0 55.1 0 80.5 30.8 16.4 19.9 21.4 46.8 15 79.8-16.3 83.7-36.3 168.8-55.5 248.4-6.3 26.2-16.5 49.7-26.4 72.5l-.1.2-4.1 9.4c-13.9 32.9-43.6 51.7-81.4 51.7zm-.9-40h1c21.9 0 37-9.2 44.7-27.4l4.2-9.7c9.2-21.2 18.6-43.1 24.2-66 19.1-79.1 39-163.8 55.1-246.6 4.1-21 1.9-36.3-6.6-46.7-12-14.6-34-16.2-49.6-16.2H683.9c-11.2 0-21.8-5-28.9-13.5-7.2-8.6-10.2-20.1-8.2-31.2l.1-.2c8.3-44.6 15.9-96.4 1.5-148.6-8.2-30.2-22.9-51.3-44.6-64.3-9.9-5.9-19.9-9-29.6-9-24.1 0-40.9 18-43.8 47-2 19.8-4.1 40.3-9.7 59.2C501.2 307.1 456 354.8 414.3 393l-.1.1c-7.5 6.8-15.6 19.3-15.7 30.6-.6 68-.6 136-.6 205.4l-.2 123.8c-.1 24.6 11.6 42.8 33 51l.2.1c14.9 6.1 30.6 9.4 46.6 9.9 33.9.4 67.7.4 99.4.4h49.8c29.7.1 64.1.2 98 .5zm-486.8 31.7h-10.4c-48.8 0-88.5-39.7-88.5-88.5V453.2c0-48.8 39.7-88.5 88.5-88.5h10.4c48.8 0 88.5 39.7 88.5 88.5v304.9c0 48.7-39.7 88.4-88.5 88.4zm-10.4-441.7c-26.7 0-48.5 21.8-48.5 48.5v304.9c0 26.7 21.8 48.5 48.5 48.5h10.4c26.7 0 48.5-21.8 48.5-48.5v-305c0-26.7-21.8-48.5-48.5-48.5h-10.4zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-unstar"><path d="M454.613 96.683 344.491 319.829 98.219 355.627a64 64 0 0 0-35.456 109.141l178.176 173.696-42.07 245.29a64 64 0 0 0 6.443 40.577l3.115 5.333a64 64 0 0 0 83.328 21.547L512 835.413l220.245 115.798a64 64 0 0 0 92.886-67.456l-42.07-245.291 178.176-173.653a64 64 0 0 0-35.456-109.227L679.51 319.829 569.43 96.683a64 64 0 0 0-114.816 0zM512 173.227l91.008 184.362 3.328 6.144a85.333 85.333 0 0 0 60.928 40.534l203.435 29.525-147.2 143.573-4.822 5.078a85.333 85.333 0 0 0-19.712 70.442l34.731 202.624L531.883 749.44l-4.779-2.133a42.667 42.667 0 0 0-34.987 2.133L290.304 855.467l34.773-202.624.896-6.912a85.333 85.333 0 0 0-25.429-68.608L153.301 433.749l203.52-29.525a85.333 85.333 0 0 0 64.214-46.677L512 173.227z" /></symbol><symbol viewBox="0 0 24 24" id="nss-icon-uparrow"><path d="M8.71 12.29 11.3 9.7a.996.996 0 0 1 1.41 0l2.59 2.59c.63.63.18 1.71-.71 1.71H9.41c-.89 0-1.33-1.08-.7-1.71z" fill="currentColor" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-views"><path d="M928.842 512.091c0-5.006-.846-9.193-1.087-9.692-.182-2.48-1.028-7.001-1.815-9.374-.21-.59-.484-1.21-.724-1.8-.425-1.361-.877-2.691-1.391-3.75-76.872-168.137-242.376-281.144-411.783-281.144-169.375 0-334.865 112.903-411.388 280.13-.922 1.816-1.573 3.554-1.981 5.067-.181.498-.393.967-.559 1.406-1.512 4.43-1.542 7.514-1.421 6.713-.71 3.25-1.361 9.722-1.361 9.722-.181 1.95-.181 3.507.03 5.443 0 0 .65 5.655.968 6.803.09 1.602.483 3.932.952 6.049h-.03a27.825 27.825 0 0 0 1.738 5.291c.394 1.33.863 2.57 1.271 3.508 76.976 168.166 242.437 281.204 411.781 281.204 169.437 0 334.942-112.946 410.937-279.33a30.065 30.065 0 0 0 2.448-6.017c.242-.544.455-1.028.605-1.512 1.332-3.872 1.603-7.227 1.482-7.227l-.029.03c.543-2.69 1.357-6.711 1.357-11.52zm-56.124 2.056c-.03.122-.091.272-.151.394-.09.362-.24.786-.333 1.21-68.404 147.42-212.83 246.337-360.192 246.337-146.997 0-291.168-98.643-360.252-246.58-.167-.513-.288-.998-.47-1.48-.03-.485-.12-.878-.15-1.151-.06-.3-.12-.725-.166-1.089v-.377c.166-.62.286-1.24.348-1.92.12-.362.211-.71.348-1.103 68.432-147.498 212.98-246.46 360.341-246.46 147.421 0 291.94 99.052 360.162 246.323.06.287.122.53.213.726.06.242.12.484.24.741.152 1.104.273 2.193.424 2.736-.18.574-.27 1.119-.362 1.693zM512.041 373.06c-76.598 0-138.954 62.325-138.954 138.939 0 76.599 62.356 138.955 138.954 138.955 76.599 0 138.955-62.356 138.955-138.955 0-76.614-62.356-138.94-138.955-138.94zm0 222.312c-45.935 0-83.371-37.407-83.371-83.372 0-45.95 37.436-83.356 83.371-83.356 45.965 0 83.374 37.407 83.374 83.356 0 45.965-37.409 83.372-83.374 83.372z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-wikipedia"><path d="M515.84 559.744c-39.936 82.432-94.592 194.048-121.728 244.395-26.283 45.824-48.085 39.722-65.365 1.237-59.99-141.696-183.168-390.144-241.11-529.45-10.709-25.643-18.816-42.113-26.41-48.598-7.723-6.4-23.638-10.24-47.872-11.563C4.395 214.741 0 212.565 0 208.981v-19.413l2.219-1.92c39.424-.213 230.442 0 230.442 0l2.176 1.92v18.517c0 5.078-3.2 7.51-9.6 7.51l-24.064 1.322c-20.693 1.238-31.018 6.998-31.018 18.603 0 5.76 2.261 14.08 7.082 25.643 46.166 112.896 205.568 448.896 205.568 448.896l5.803 1.962 102.87-205.226-20.566-45.526-70.741-139.264s-13.568-27.904-18.262-37.205c-31.061-61.568-30.378-64.768-61.738-68.992-8.832-.981-13.355-2.133-13.355-6.357v-19.968l2.56-1.92h183.125l4.822 1.578v19.243c0 4.48-3.243 6.4-9.686 6.4l-13.141 2.005c-33.792 2.603-28.203 16.256-5.803 60.672l67.499 138.752L611.2 266.71c12.501-27.306 9.941-34.176 4.736-40.405-2.987-3.584-13.013-9.387-34.645-10.24l-8.576-.896a9.728 9.728 0 0 1-6.187-2.176 6.4 6.4 0 0 1-2.859-5.504v-18.219l2.603-1.92c53.205-.341 172.501 0 172.501 0l2.518 1.92v18.603c0 5.163-2.518 7.595-8.235 7.595-27.563 1.28-33.365 4.053-43.648 18.73-5.12 7.936-16 25.131-27.563 44.331L563.67 460.843l-2.773 5.76 119.125 243.712 7.254 2.048 187.562-445.355c6.571-18.005 5.504-30.805-2.73-38.187-8.406-7.338-14.763-11.648-36.566-12.586l-17.92-.683a10.88 10.88 0 0 1-6.485-1.92c-1.835-1.237-3.072-3.2-3.072-5.077v-18.603l2.517-1.92h211.67l1.749 1.92v18.645c0 5.078-3.157 7.68-8.917 7.68-27.648 1.28-48.086 7.68-61.568 17.963-13.398 10.88-23.766 26.283-31.403 45.525 0 0-172.501 395.008-231.51 526.464-22.4 42.966-44.927 39.126-64.127-1.322-24.363-49.963-75.648-161.536-112.896-243.627l2.261-1.536z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-workplace"><path d="M373.6 153.7v220h-220v-220h220m90-90h-400v400h400v-400zm408.3 90v220h-220v-220h220m90-90h-400v400h400v-400zM373.6 647.6v220h-220v-220h220m90-90h-400v400h400v-400zm268.5 310.6h-80.2v-220h220v83.9h90V558.2h-400v400h170.2v-90z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-wrong"><path d="M265.28 310.72a32 32 0 0 1 45.44-45.44l448 448a32 32 0 0 1-45.44 45.44z" fill="#d81e06" /><path d="M713.28 265.28a32 32 0 0 1 45.44 45.44l-448 448a32 32 0 0 1-45.44-45.44z" fill="#d81e06" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="nss-icon-zy"><path d="M947.2 416 576 102.4c-35.2-30.4-88-30.4-123.2 0L76.8 416c-8 6.4-12.8 14.4-12.8 25.6 0 17.6 14.4 32 32 32 8 0 16-3.2 20.8-8L128 456v356.8c0 72 54.4 131.2 123.2 131.2h521.6C840 944 896 884.8 896 812.8V456l9.6 8c6.4 4.8 12.8 8 22.4 8 17.6 0 32-14.4 32-32 0-8-4.8-17.6-12.8-24zM448 880V656c0-17.6 14.4-32 32-32h64c17.6 0 32 14.4 32 32v224H448zm384-67.2c0 36.8-27.2 67.2-60.8 67.2H640V656c0-52.8-43.2-96-96-96h-64c-52.8 0-96 43.2-96 96v224H252.8c-33.6 0-60.8-30.4-60.8-67.2V403.2L492.8 152c11.2-9.6 28.8-9.6 41.6 0L832 401.6v411.2z" fill="#333" /></symbol>',e.insertBefore(t,e.lastChild)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}ct("nss",{color:["#4e8ef5","#7ec3c3","#626c91","#a0a7e6","#c4ebad","#79afe4","#fac95d","#f18181","#ea7ccc","#fc8452"],backgroundColor:"transparent",textStyle:{},title:{textStyle:{color:"#666666"},subtextStyle:{color:"#999999"}},line:{itemStyle:{borderWidth:"1"},lineStyle:{width:"2"},symbolSize:"7",symbol:"circle",smooth:!0},radar:{itemStyle:{borderWidth:"1"},lineStyle:{width:"2"},symbolSize:"7",symbol:"circle",smooth:!0},bar:{itemStyle:{barBorderWidth:"1",barBorderColor:"#9ecdd5"}},pie:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},scatter:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},boxplot:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},parallel:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},sankey:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},funnel:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},gauge:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"}},candlestick:{itemStyle:{color:"#e6a0d2",color0:"transparent",borderColor:"#e6a0d2",borderColor0:"#3fb1e3",borderWidth:"2"}},graph:{itemStyle:{borderWidth:"1",borderColor:"#9ecdd5"},lineStyle:{width:"1",color:"#cccccc"},symbolSize:"7",symbol:"circle",smooth:!0,color:["#4e8ef5","#7ec3c3","#626c91","#a0a7e6","#c4ebad","#79afe4","#fac95d","#f18181","#ea7ccc","#fc8452"],label:{color:"#ffffff"}},map:{itemStyle:{areaColor:"#eeeeee",borderColor:"#aaaaaa",borderWidth:.5},label:{color:"#ffffff"},emphasis:{itemStyle:{areaColor:"rgba(63,177,227,0.25)",borderColor:"#3fb1e3",borderWidth:1},label:{color:"#3fb1e3"}}},geo:{itemStyle:{areaColor:"#eeeeee",borderColor:"#aaaaaa",borderWidth:.5},label:{color:"#ffffff"},emphasis:{itemStyle:{areaColor:"rgba(63,177,227,0.25)",borderColor:"#3fb1e3",borderWidth:1},label:{color:"#3fb1e3"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#000000"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#999999"},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#000000"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#999999"},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#000000"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#999999"},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#000000"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#999999"},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},legend:{textStyle:{color:"#999999"}},tooltip:{axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},timeline:{lineStyle:{color:"#626c91",width:1},itemStyle:{color:"#626c91",borderWidth:1},controlStyle:{color:"#626c91",borderColor:"#626c91",borderWidth:.5},checkpointStyle:{color:"#3fb1e3",borderColor:"#3fb1e3"},label:{color:"#626c91"},emphasis:{itemStyle:{color:"#626c91"},controlStyle:{color:"#626c91",borderColor:"#626c91",borderWidth:.5},label:{color:"#626c91"}}},visualMap:{color:["#4e8ef5","#79afe4","#7ec3c3"]},dataZoom:{backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(222,222,222,1)",fillerColor:"rgba(114,230,212,0.25)",handleColor:"#cccccc",handleSize:"100%",textStyle:{color:"#999999"}},markPoint:{label:{color:"#ffffff"},emphasis:{label:{color:"#ffffff"}}}});let dm={install:function(e){e.directive("highlight",function(e){let t=e.querySelectorAll("pre code");for(let n=0;n<t.length;n++)dt.highlightElement(t[n]);for(let n=0;n<t.length;n++)t[n].innerHTML="<ol><li>"+t[n].innerHTML.replace(/\n/g,"\n</li><li>")+"\n</li></ol>"})}},um={install:function(e){e.directive("nss-title",{mounted(e,t){document.title=t.value+" | NSSCTF"},updated(e,t){document.title=t.value+" | NSSCTF"}})}};var pm=function(e){return e&&e.Math===Math&&e},mm=pm("object"==typeof globalThis&&globalThis)||pm("object"==typeof window&&window)||pm("object"==typeof self&&self)||pm("object"==typeof be&&be)||pm("object"==typeof be&&be)||function(){return this}()||Function("return this")(),fm={},hm=function(e){try{return!!e()}catch(t){return!0}},vm=!hm(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),gm=!hm(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),bm=gm,ym=Function.prototype.call,wm=bm?ym.bind(ym):function(){return ym.apply(ym,arguments)},Em={},km={}.propertyIsEnumerable,_m=Object.getOwnPropertyDescriptor,Sm=_m&&!km.call({1:2},1);Em.f=Sm?function(e){var t=_m(this,e);return!!t&&t.enumerable}:km;var xm,Lm,Cm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Am=gm,Mm=Function.prototype,Tm=Mm.call,Dm=Am&&Mm.bind.bind(Tm,Tm),Om=Am?Dm:function(e){return function(){return Tm.apply(e,arguments)}},Hm=Om,Im=Hm({}.toString),Pm=Hm("".slice),jm=function(e){return Pm(Im(e),8,-1)},Nm=hm,Rm=jm,zm=Object,Vm=Om("".split),Bm=Nm(function(){return!zm("z").propertyIsEnumerable(0)})?function(e){return"String"===Rm(e)?Vm(e,""):zm(e)}:zm,qm=function(e){return null==e},Um=qm,Fm=TypeError,$m=function(e){if(Um(e))throw new Fm("Can't call method on "+e);return e},Wm=Bm,Gm=$m,Km=function(e){return Wm(Gm(e))},Ym="object"==typeof document&&document.all,Jm=void 0===Ym&&void 0!==Ym?function(e){return"function"==typeof e||e===Ym}:function(e){return"function"==typeof e},Zm=Jm,Qm=function(e){return"object"==typeof e?null!==e:Zm(e)},Xm=mm,ef=Jm,tf=function(e,t){return arguments.length<2?(n=Xm[e],ef(n)?n:void 0):Xm[e]&&Xm[e][t];var n},nf=Om({}.isPrototypeOf),of=mm.navigator,rf=of&&of.userAgent,af=mm,lf=rf?String(rf):"",sf=af.process,cf=af.Deno,df=sf&&sf.versions||cf&&cf.version,uf=df&&df.v8;uf&&(Lm=(xm=uf.split("."))[0]>0&&xm[0]<4?1:+(xm[0]+xm[1])),!Lm&&lf&&(!(xm=lf.match(/Edge\/(\d+)/))||xm[1]>=74)&&(xm=lf.match(/Chrome\/(\d+)/))&&(Lm=+xm[1]);var pf=Lm,mf=pf,ff=hm,hf=mm.String,vf=!!Object.getOwnPropertySymbols&&!ff(function(){var e=Symbol("symbol detection");return!hf(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&mf&&mf<41}),gf=vf&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bf=tf,yf=Jm,wf=nf,Ef=Object,kf=gf?function(e){return"symbol"==typeof e}:function(e){var t=bf("Symbol");return yf(t)&&wf(t.prototype,Ef(e))},_f=String,Sf=Jm,xf=function(e){try{return _f(e)}catch(t){return"Object"}},Lf=TypeError,Cf=function(e){if(Sf(e))return e;throw new Lf(xf(e)+" is not a function")},Af=Cf,Mf=qm,Tf=wm,Df=Jm,Of=Qm,Hf=TypeError,If={exports:{}},Pf=mm,jf=Object.defineProperty,Nf=function(e,t){try{jf(Pf,e,{value:t,configurable:!0,writable:!0})}catch(n){Pf[e]=t}return t},Rf=mm,zf=Nf,Vf="__core-js_shared__",Bf=If.exports=Rf[Vf]||zf(Vf,{});(Bf.versions||(Bf.versions=[])).push({version:"3.45.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"});var qf=If.exports,Uf=qf,Ff=function(e,t){return Uf[e]||(Uf[e]=t||{})},$f=$m,Wf=Object,Gf=function(e){return Wf($f(e))},Kf=Gf,Yf=Om({}.hasOwnProperty),Jf=Object.hasOwn||function(e,t){return Yf(Kf(e),t)},Zf=Om,Qf=0,Xf=Math.random(),eh=Zf(1.1.toString),th=function(e){return"Symbol("+(void 0===e?"":e)+")_"+eh(++Qf+Xf,36)},nh=Ff,oh=Jf,rh=th,ah=vf,ih=gf,lh=mm.Symbol,sh=nh("wks"),ch=ih?lh.for||lh:lh&&lh.withoutSetter||rh,dh=function(e){return oh(sh,e)||(sh[e]=ah&&oh(lh,e)?lh[e]:ch("Symbol."+e)),sh[e]},uh=wm,ph=Qm,mh=kf,fh=function(e,t){var n=e[t];return Mf(n)?void 0:Af(n)},hh=function(e,t){var n,o;if("string"===t&&Df(n=e.toString)&&!Of(o=Tf(n,e)))return o;if(Df(n=e.valueOf)&&!Of(o=Tf(n,e)))return o;if("string"!==t&&Df(n=e.toString)&&!Of(o=Tf(n,e)))return o;throw new Hf("Can't convert object to primitive value")},vh=TypeError,gh=dh("toPrimitive"),bh=function(e,t){if(!ph(e)||mh(e))return e;var n,o=fh(e,gh);if(o){if(void 0===t&&(t="default"),n=uh(o,e,t),!ph(n)||mh(n))return n;throw new vh("Can't convert object to primitive value")}return void 0===t&&(t="number"),hh(e,t)},yh=kf,wh=function(e){var t=bh(e,"string");return yh(t)?t:t+""},Eh=Qm,kh=mm.document,_h=Eh(kh)&&Eh(kh.createElement),Sh=function(e){return _h?kh.createElement(e):{}},xh=Sh,Lh=!vm&&!hm(function(){return 7!==Object.defineProperty(xh("div"),"a",{get:function(){return 7}}).a}),Ch=vm,Ah=wm,Mh=Em,Th=Cm,Dh=Km,Oh=wh,Hh=Jf,Ih=Lh,Ph=Object.getOwnPropertyDescriptor;fm.f=Ch?Ph:function(e,t){if(e=Dh(e),t=Oh(t),Ih)try{return Ph(e,t)}catch(n){}if(Hh(e,t))return Th(!Ah(Mh.f,e,t),e[t])};var jh={},Nh=vm&&hm(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Rh=Qm,zh=String,Vh=TypeError,Bh=function(e){if(Rh(e))return e;throw new Vh(zh(e)+" is not an object")},qh=vm,Uh=Lh,Fh=Nh,$h=Bh,Wh=wh,Gh=TypeError,Kh=Object.defineProperty,Yh=Object.getOwnPropertyDescriptor,Jh="enumerable",Zh="configurable",Qh="writable";jh.f=qh?Fh?function(e,t,n){if($h(e),t=Wh(t),$h(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Qh in n&&!n[Qh]){var o=Yh(e,t);o&&o[Qh]&&(e[t]=n.value,n={configurable:Zh in n?n[Zh]:o[Zh],enumerable:Jh in n?n[Jh]:o[Jh],writable:!1})}return Kh(e,t,n)}:Kh:function(e,t,n){if($h(e),t=Wh(t),$h(n),Uh)try{return Kh(e,t,n)}catch(o){}if("get"in n||"set"in n)throw new Gh("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Xh=jh,ev=Cm,tv=vm?function(e,t,n){return Xh.f(e,t,ev(1,n))}:function(e,t,n){return e[t]=n,e},nv={exports:{}},ov=vm,rv=Jf,av=Function.prototype,iv=ov&&Object.getOwnPropertyDescriptor,lv={CONFIGURABLE:rv(av,"name")&&(!ov||ov&&iv(av,"name").configurable)},sv=Jm,cv=qf,dv=Om(Function.toString);sv(cv.inspectSource)||(cv.inspectSource=function(e){return dv(e)});var uv,pv,mv,fv=cv.inspectSource,hv=Jm,vv=mm.WeakMap,gv=hv(vv)&&/native code/.test(String(vv)),bv=th,yv=Ff("keys"),wv={},Ev=gv,kv=mm,_v=tv,Sv=Jf,xv=qf,Lv=function(e){return yv[e]||(yv[e]=bv(e))},Cv=wv,Av="Object already initialized",Mv=kv.TypeError,Tv=kv.WeakMap;if(Ev||xv.state){var Dv=xv.state||(xv.state=new Tv);Dv.get=Dv.get,Dv.has=Dv.has,Dv.set=Dv.set,uv=function(e,t){if(Dv.has(e))throw new Mv(Av);return t.facade=e,Dv.set(e,t),t},pv=function(e){return Dv.get(e)||{}},mv=function(e){return Dv.has(e)}}else{var Ov=Lv("state");Cv[Ov]=!0,uv=function(e,t){if(Sv(e,Ov))throw new Mv(Av);return t.facade=e,_v(e,Ov,t),t},pv=function(e){return Sv(e,Ov)?e[Ov]:{}},mv=function(e){return Sv(e,Ov)}}var Hv={get:pv,enforce:function(e){return mv(e)?pv(e):uv(e,{})}},Iv=Om,Pv=hm,jv=Jm,Nv=Jf,Rv=vm,zv=lv.CONFIGURABLE,Vv=fv,Bv=Hv.enforce,qv=Hv.get,Uv=String,Fv=Object.defineProperty,$v=Iv("".slice),Wv=Iv("".replace),Gv=Iv([].join),Kv=Rv&&!Pv(function(){return 8!==Fv(function(){},"length",{value:8}).length}),Yv=String(String).split("String"),Jv=nv.exports=function(e,t,n){"Symbol("===$v(Uv(t),0,7)&&(t="["+Wv(Uv(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Nv(e,"name")||zv&&e.name!==t)&&(Rv?Fv(e,"name",{value:t,configurable:!0}):e.name=t),Kv&&n&&Nv(n,"arity")&&e.length!==n.arity&&Fv(e,"length",{value:n.arity});try{n&&Nv(n,"constructor")&&n.constructor?Rv&&Fv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var o=Bv(e);return Nv(o,"source")||(o.source=Gv(Yv,"string"==typeof t?t:"")),e};Function.prototype.toString=Jv(function(){return jv(this)&&qv(this).source||Vv(this)},"toString");var Zv,Qv=nv.exports,Xv=Jm,eg=jh,tg=Qv,ng=Nf,og=function(e,t,n,o){o||(o={});var r=o.enumerable,a=void 0!==o.name?o.name:t;if(Xv(n)&&tg(n,a,o),o.global)r?e[t]=n:ng(t,n);else{try{o.unsafe?e[t]&&(r=!0):delete e[t]}catch(i){}r?e[t]=n:eg.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},rg={},ag=Math.ceil,ig=Math.floor,lg=Math.trunc||function(e){var t=+e;return(t>0?ig:ag)(t)},sg=function(e){var t=+e;return t!=t||0===t?0:lg(t)},cg=sg,dg=Math.max,ug=Math.min,pg=sg,mg=Math.min,fg=function(e){var t=pg(e);return t>0?mg(t,9007199254740991):0},hg=function(e){return fg(e.length)},vg=Km,gg=function(e,t){var n=cg(e);return n<0?dg(n+t,0):ug(n,t)},bg=hg,yg={indexOf:(Zv=!1,function(e,t,n){var o=vg(e),r=bg(o);if(0===r)return!Zv&&-1;var a,i=gg(n,r);if(Zv&&t!=t){for(;r>i;)if((a=o[i++])!=a)return!0}else for(;r>i;i++)if((Zv||i in o)&&o[i]===t)return Zv||i||0;return!Zv&&-1})},wg=Jf,Eg=Km,kg=yg.indexOf,_g=wv,Sg=Om([].push),xg=function(e,t){var n,o=Eg(e),r=0,a=[];for(n in o)!wg(_g,n)&&wg(o,n)&&Sg(a,n);for(;t.length>r;)wg(o,n=t[r++])&&(~kg(a,n)||Sg(a,n));return a},Lg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");rg.f=Object.getOwnPropertyNames||function(e){return xg(e,Lg)};var Cg={};Cg.f=Object.getOwnPropertySymbols;var Ag=tf,Mg=rg,Tg=Cg,Dg=Bh,Og=Om([].concat),Hg=Ag("Reflect","ownKeys")||function(e){var t=Mg.f(Dg(e)),n=Tg.f;return n?Og(t,n(e)):t},Ig=Jf,Pg=Hg,jg=fm,Ng=jh,Rg=function(e,t,n){for(var o=Pg(t),r=Ng.f,a=jg.f,i=0;i<o.length;i++){var l=o[i];Ig(e,l)||n&&Ig(n,l)||r(e,l,a(t,l))}},zg=hm,Vg=Jm,Bg=/#|\.prototype\./,qg=function(e,t){var n=Fg[Ug(e)];return n===Wg||n!==$g&&(Vg(t)?zg(t):!!t)},Ug=qg.normalize=function(e){return String(e).replace(Bg,".").toLowerCase()},Fg=qg.data={},$g=qg.NATIVE="N",Wg=qg.POLYFILL="P",Gg=qg,Kg=mm,Yg=fm.f,Jg=tv,Zg=og,Qg=Nf,Xg=Rg,eb=Gg,tb=function(e,t){var n,o,r,a,i,l=e.target,s=e.global,c=e.stat;if(n=s?Kg:c?Kg[l]||Qg(l,{}):Kg[l]&&Kg[l].prototype)for(o in t){if(a=t[o],r=e.dontCallGetSet?(i=Yg(n,o))&&i.value:n[o],!eb(s?o:l+(c?".":"#")+o,e.forced)&&void 0!==r){if(typeof a==typeof r)continue;Xg(a,r)}(e.sham||r&&r.sham)&&Jg(a,"sham",!0),Zg(n,o,a,e)}},nb=gm,ob=Function.prototype,rb=ob.apply,ab=ob.call,ib="object"==typeof Reflect&&Reflect.apply||(nb?ab.bind(rb):function(){return ab.apply(rb,arguments)}),lb=Om,sb=Cf,cb=Qm,db=function(e){return cb(e)||null===e},ub=String,pb=TypeError,mb=function(e,t,n){try{return lb(sb(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}},fb=Qm,hb=$m,vb=function(e){if(db(e))return e;throw new pb("Can't set "+ub(e)+" as a prototype")},gb=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=mb(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return hb(n),vb(o),fb(n)?(t?e(n,o):n.__proto__=o,n):n}}():void 0),bb=jh.f,yb=Jm,wb=Qm,Eb=gb,kb={};kb[dh("toStringTag")]="z";var _b="[object z]"===String(kb),Sb=_b,xb=Jm,Lb=jm,Cb=dh("toStringTag"),Ab=Object,Mb="Arguments"===Lb(function(){return arguments}()),Tb=Sb?Lb:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Ab(e),Cb))?n:Mb?Lb(t):"Object"===(o=Lb(t))&&xb(t.callee)?"Arguments":o},Db=Tb,Ob=String,Hb=function(e){if("Symbol"===Db(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ob(e)},Ib=Qm,Pb=tv,jb=Error,Nb=Om("".replace),Rb=String(new jb("zxcasd").stack),zb=/\n\s*at [^:]*:[^\n]*/,Vb=zb.test(Rb),Bb=Cm,qb=!hm(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Bb(1,7)),7!==e.stack)}),Ub=tv,Fb=function(e,t){if(Vb&&"string"==typeof e&&!jb.prepareStackTrace)for(;t--;)e=Nb(e,zb,"");return e},$b=qb,Wb=Error.captureStackTrace,Gb=tf,Kb=Jf,Yb=tv,Jb=nf,Zb=gb,Qb=Rg,Xb=function(e,t,n){n in e||bb(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},ey=function(e,t,n){var o,r;return Eb&&yb(o=t.constructor)&&o!==n&&wb(r=o.prototype)&&r!==n.prototype&&Eb(e,r),e},ty=function(e,t){return void 0===e?arguments.length<2?"":t:Hb(e)},ny=function(e,t){Ib(t)&&"cause"in t&&Pb(e,"cause",t.cause)},oy=function(e,t,n,o){$b&&(Wb?Wb(e,t):Ub(e,"stack",Fb(n,o)))},ry=vm,ay=tb,iy=ib,ly=function(e,t,n,o){var r="stackTraceLimit",a=o?2:1,i=e.split("."),l=i[i.length-1],s=Gb.apply(null,i);if(s){var c=s.prototype;if(Kb(c,"cause")&&delete c.cause,!n)return s;var d=Gb("Error"),u=t(function(e,t){var n=ty(o?t:e,void 0),r=o?new s(e):new s;return void 0!==n&&Yb(r,"message",n),oy(r,u,r.stack,2),this&&Jb(c,this)&&ey(r,this,u),arguments.length>a&&ny(r,arguments[a]),r});u.prototype=c,"Error"!==l?Zb?Zb(u,d):Qb(u,d,{name:!0}):ry&&r in s&&(Xb(u,s,r),Xb(u,s,"prepareStackTrace")),Qb(u,s);try{c.name!==l&&Yb(c,"name",l),c.constructor=u}catch(p){}return u}},sy="WebAssembly",cy=mm[sy],dy=7!==new Error("e",{cause:7}).cause,uy=function(e,t){var n={};n[e]=ly(e,t,dy),ay({global:!0,constructor:!0,arity:1,forced:dy},n)},py=function(e,t){if(cy&&cy[e]){var n={};n[e]=ly(sy+"."+e,t,dy),ay({target:sy,stat:!0,constructor:!0,arity:1,forced:dy},n)}};uy("Error",function(e){return function(t){return iy(e,this,arguments)}}),uy("EvalError",function(e){return function(t){return iy(e,this,arguments)}}),uy("RangeError",function(e){return function(t){return iy(e,this,arguments)}}),uy("ReferenceError",function(e){return function(t){return iy(e,this,arguments)}}),uy("SyntaxError",function(e){return function(t){return iy(e,this,arguments)}}),uy("TypeError",function(e){return function(t){return iy(e,this,arguments)}}),uy("URIError",function(e){return function(t){return iy(e,this,arguments)}}),py("CompileError",function(e){return function(t){return iy(e,this,arguments)}}),py("LinkError",function(e){return function(t){return iy(e,this,arguments)}}),py("RuntimeError",function(e){return function(t){return iy(e,this,arguments)}});var my=jm,fy=Array.isArray||function(e){return"Array"===my(e)},hy=TypeError,vy=vm,gy=jh,by=Cm,yy=Om,wy=hm,Ey=Jm,ky=Tb,_y=fv,Sy=function(){},xy=tf("Reflect","construct"),Ly=/^\s*(?:class|function)\b/,Cy=yy(Ly.exec),Ay=!Ly.test(Sy),My=function(e){if(!Ey(e))return!1;try{return xy(Sy,[],e),!0}catch(t){return!1}},Ty=function(e){if(!Ey(e))return!1;switch(ky(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ay||!!Cy(Ly,_y(e))}catch(t){return!0}};Ty.sham=!0;var Dy=!xy||wy(function(){var e;return My(My.call)||!My(Object)||!My(function(){e=!0})||e})?Ty:My,Oy=fy,Hy=Dy,Iy=Qm,Py=dh("species"),jy=Array,Ny=function(e){var t;return Oy(e)&&(t=e.constructor,(Hy(t)&&(t===jy||Oy(t.prototype))||Iy(t)&&null===(t=t[Py]))&&(t=void 0)),void 0===t?jy:t},Ry=function(e,t){return new(Ny(e))(0===t?0:t)},zy=hm,Vy=pf,By=dh("species"),qy=tb,Uy=hm,Fy=fy,$y=Qm,Wy=Gf,Gy=hg,Ky=function(e){if(e>9007199254740991)throw hy("Maximum allowed index exceeded");return e},Yy=function(e,t,n){vy?gy.f(e,t,by(0,n)):e[t]=n},Jy=Ry,Zy=function(e){return Vy>=51||!zy(function(){var t=[];return(t.constructor={})[By]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Qy=pf,Xy=dh("isConcatSpreadable"),ew=Qy>=51||!Uy(function(){var e=[];return e[Xy]=!1,e.concat()[0]!==e}),tw=function(e){if(!$y(e))return!1;var t=e[Xy];return void 0!==t?!!t:Fy(e)};qy({target:"Array",proto:!0,arity:1,forced:!ew||!Zy("concat")},{concat:function(e){var t,n,o,r,a,i=Wy(this),l=Jy(i,0),s=0;for(t=-1,o=arguments.length;t<o;t++)if(tw(a=-1===t?i:arguments[t]))for(r=Gy(a),Ky(s+r),n=0;n<r;n++,s++)n in a&&Yy(l,s,a[n]);else Ky(s+1),Yy(l,s++,a);return l.length=s,l}});var nw=Tb,ow=_b?{}.toString:function(){return"[object "+nw(this)+"]"};_b||og(Object.prototype,"toString",ow,{unsafe:!0});var rw,aw,iw,lw,sw,cw,dw,uw,pw=Sh("span").classList,mw=pw&&pw.constructor&&pw.constructor.prototype,fw=mw===Object.prototype?void 0:mw,hw=jm,vw=Om,gw=function(e){if("Function"===hw(e))return vw(e)},bw=Cf,yw=gm,ww=gw(gw.bind),Ew=function(e,t){return bw(e),void 0===t?e:yw?ww(e,t):function(){return e.apply(t,arguments)}},kw=Bm,_w=Gf,Sw=hg,xw=Ry,Lw=Om([].push),Cw={forEach:(rw=0,aw=1===rw,iw=2===rw,lw=3===rw,sw=4===rw,cw=6===rw,dw=7===rw,uw=5===rw||cw,function(e,t,n,o){for(var r,a,i=_w(e),l=kw(i),s=Sw(l),c=Ew(t,n),d=0,u=o||xw,p=aw?u(e,s):iw||dw?u(e,0):void 0;s>d;d++)if((uw||d in l)&&(a=c(r=l[d],d,i),rw))if(aw)p[d]=a;else if(a)switch(rw){case 3:return!0;case 5:return r;case 6:return d;case 2:Lw(p,r)}else switch(rw){case 4:return!1;case 7:Lw(p,r)}return cw?-1:lw||sw?sw:p})},Aw=hm,Mw=Cw.forEach,Tw=mm,Dw={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ow=fw,Hw=function(e,t){var n=[][e];return!!n&&Aw(function(){n.call(null,t||function(){return 1},1)})}("forEach")?[].forEach:function(e){return Mw(this,e,arguments.length>1?arguments[1]:void 0)},Iw=tv,Pw=function(e){if(e&&e.forEach!==Hw)try{Iw(e,"forEach",Hw)}catch(t){e.forEach=Hw}};for(var jw in Dw)Dw[jw]&&Pw(Tw[jw]&&Tw[jw].prototype);Pw(Ow);
/*!
* el-table-infinite-scroll v3.0.6
* (c) 2019-2024 yujinpan
*/
var Nw=".el-scrollbar__wrap",Rw={mounted:function(e,t,n,o){var r=e.querySelector(Nw);if(!r)throw new Error("".concat("[el-table-infinite-scroll]: ").concat(Nw," element not found."));r.style.overflowY="auto",setTimeout(function(){e.style.height||(r.style.height="400px"),zw(e,r),at.mounted(r,t,n,o)},0)},updated:function(e){zw(e,e.querySelector(Nw))},unmounted:function(e){for(var t=e.querySelector(Nw),n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];at.unmounted.apply(at,[t].concat(o))}};function zw(e,t){!
/*!
* el-table-infinite-scroll v3.0.6
* (c) 2019-2024 yujinpan
*/
function(e,t,n){var o;n.forEach(function(n){null!==(o=e.getAttribute(n))?t.setAttribute(n,o):t.removeAttribute(n)})}(e,t,["infinite-scroll-disabled","infinite-scroll-delay","infinite-scroll-immediate","infinite-scroll-distance"]);var n="infinite-scroll-distance",o=+(e.getAttribute(n)||0);t.setAttribute(n,(o<1?1:o)+"")}
/*!
* el-table-infinite-scroll v3.0.6
* (c) 2019-2024 yujinpan
*/var Vw=Object.assign(Rw,{install:function(e){e.directive("el-table-infinite-scroll",Vw)}});
/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const Bw={prefix:"fas",iconName:"comments",icon:[640,512,[128490,61670],"f086","M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"]},qw={prefix:"fas",iconName:"reply",icon:[512,512,[61714,"mail-reply"],"f3e5","M205 34.8c11.5 5.1 19 16.6 19 29.2l0 64 112 0c97.2 0 176 78.8 176 176c0 113.3-81.5 163.9-100.2 174.1c-2.5 1.4-5.3 1.9-8.1 1.9c-10.9 0-19.7-8.9-19.7-19.7c0-7.5 4.3-14.4 9.8-19.5c9.4-8.8 22.2-26.4 22.2-56.7c0-53-43-96-96-96l-96 0 0 64c0 12.6-7.4 24.1-19 29.2s-25 3-34.4-5.4l-160-144C3.9 225.7 0 217.1 0 208s3.9-17.7 10.6-23.8l160-144c9.4-8.5 22.9-10.6 34.4-5.4z"]},Uw={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},Fw={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},$w={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]},Ww={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},Gw={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Kw={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},Yw={prefix:"fas",iconName:"wand-magic-sparkles",icon:[576,512,["magic-wand-sparkles"],"e2ca","M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"]},Jw={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},Zw={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75l-8.7 0-32 0-96 0c-35.3 0-64 28.7-64 64l0 96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-128 8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-147.6c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4L480 32zm-64 76.7L416 240l0 131.3C357.2 317.8 280.5 288 200.7 288l-8.7 0 0-96 8.7 0c79.8 0 156.5-29.8 215.3-83.3z"]},Qw={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},Xw={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"]},eE={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},tE={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},nE={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L80 480c-44.2 0-80-35.8-80-80L0 128c0-17.7 14.3-32 32-32s32 14.3 32 32l0 272c0 8.8 7.2 16 16 16s16-7.2 16-16L96 96zm64 24l0 80c0 13.3 10.7 24 24 24l112 0c13.3 0 24-10.7 24-24l0-80c0-13.3-10.7-24-24-24L184 96c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-48 0c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-48 0c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-256 0c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-256 0c-8.8 0-16 7.2-16 16z"]},oE={prefix:"fas",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"]},rE={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},aE={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm88 64l0 64-88 0 0-64 88 0zm56 0l88 0 0 64-88 0 0-64zm240 0l0 64-88 0 0-64 88 0zM64 224l88 0 0 64-88 0 0-64zm232 0l0 64-88 0 0-64 88 0zm64 0l88 0 0 64-88 0 0-64zM152 352l0 64-88 0 0-64 88 0zm56 0l88 0 0 64-88 0 0-64zm240 0l0 64-88 0 0-64 88 0z"]},iE={prefix:"fas",iconName:"table-cells-large",icon:[512,512,["th-large"],"f009","M448 96l0 128-160 0 0-128 160 0zm0 192l0 128-160 0 0-128 160 0zM224 224L64 224 64 96l160 0 0 128zM64 288l160 0 0 128L64 416l0-128zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]},lE={prefix:"fas",iconName:"comment",icon:[512,512,[128489,61669],"f075","M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c0 0 0 0 0 0s0 0 0 0s0 0 0 0c0 0 0 0 0 0l.3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z"]},sE={prefix:"fas",iconName:"coins",icon:[512,512,[],"f51e","M512 80c0 18-14.3 34.6-38.4 48c-29.1 16.1-72.5 27.5-122.3 30.9c-3.7-1.8-7.4-3.5-11.3-5C300.6 137.4 248.2 128 192 128c-8.3 0-16.4 .2-24.5 .6l-1.1-.6C142.3 114.6 128 98 128 80c0-44.2 86-80 192-80S512 35.8 512 80zM160.7 161.1c10.2-.7 20.7-1.1 31.3-1.1c62.2 0 117.4 12.3 152.5 31.4C369.3 204.9 384 221.7 384 240c0 4-.7 7.9-2.1 11.7c-4.6 13.2-17 25.3-35 35.5c0 0 0 0 0 0c-.1 .1-.3 .1-.4 .2c0 0 0 0 0 0s0 0 0 0c-.3 .2-.6 .3-.9 .5c-35 19.4-90.8 32-153.6 32c-59.6 0-112.9-11.3-148.2-29.1c-1.9-.9-3.7-1.9-5.5-2.9C14.3 274.6 0 258 0 240c0-34.8 53.4-64.5 128-75.4c10.5-1.5 21.4-2.7 32.7-3.5zM416 240c0-21.9-10.6-39.9-24.1-53.4c28.3-4.4 54.2-11.4 76.2-20.5c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 19.3-16.5 37.1-43.8 50.9c-14.6 7.4-32.4 13.7-52.4 18.5c.1-1.8 .2-3.5 .2-5.3zm-32 96c0 18-14.3 34.6-38.4 48c-1.8 1-3.6 1.9-5.5 2.9C304.9 404.7 251.6 416 192 416c-62.8 0-118.6-12.6-153.6-32C14.3 370.6 0 354 0 336l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 342.6 135.8 352 192 352s108.6-9.4 148.1-25.9c7.8-3.2 15.3-6.9 22.4-10.9c6.1-3.4 11.8-7.2 17.2-11.2c1.5-1.1 2.9-2.3 4.3-3.4l0 3.4 0 5.7 0 26.3zm32 0l0-32 0-25.9c19-4.2 36.5-9.5 52.1-16c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 10.5-5 21-14.9 30.9c-16.3 16.3-45 29.7-81.3 38.4c.1-1.7 .2-3.5 .2-5.3zM192 448c56.2 0 108.6-9.4 148.1-25.9c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 44.2-86 80-192 80S0 476.2 0 432l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 438.6 135.8 448 192 448z"]},cE={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},dE={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]},uE={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},pE={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2l0 82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9l0-107.2c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},mE={prefix:"fas",iconName:"trophy",icon:[576,512,[127942],"f091","M400 0L176 0c-26.5 0-48.1 21.8-47.1 48.2c.2 5.3 .4 10.6 .7 15.8L24 64C10.7 64 0 74.7 0 88c0 92.6 33.5 157 78.5 200.7c44.3 43.1 98.3 64.8 138.1 75.8c23.4 6.5 39.4 26 39.4 45.6c0 20.9-17 37.9-37.9 37.9L192 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-26.1 0C337 448 320 431 320 410.1c0-19.6 15.9-39.2 39.4-45.6c39.9-11 93.9-32.7 138.2-75.8C542.5 245 576 180.6 576 88c0-13.3-10.7-24-24-24L446.4 64c.3-5.2 .5-10.4 .7-15.8C448.1 21.8 426.5 0 400 0zM48.9 112l84.4 0c9.1 90.1 29.2 150.3 51.9 190.6c-24.9-11-50.8-26.5-73.2-48.3c-32-31.1-58-76-63-142.3zM464.1 254.3c-22.4 21.8-48.3 37.3-73.2 48.3c22.7-40.3 42.8-100.5 51.9-190.6l84.4 0c-5.1 66.3-31.1 111.2-63 142.3z"]},fE={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z"]},hE={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96L0 416c0 53 43 96 96 96l288 0 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64c17.7 0 32-14.3 32-32l0-320c0-17.7-14.3-32-32-32L384 0 96 0zm0 384l256 0 0 64L96 448c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16zm16 48l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},vE={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},gE={prefix:"fas",iconName:"briefcase",icon:[512,512,[128188],"f0b1","M184 48l144 0c4.4 0 8 3.6 8 8l0 40L176 96l0-40c0-4.4 3.6-8 8-8zm-56 8l0 40L64 96C28.7 96 0 124.7 0 160l0 96 192 0 128 0 192 0 0-96c0-35.3-28.7-64-64-64l-64 0 0-40c0-30.9-25.1-56-56-56L184 0c-30.9 0-56 25.1-56 56zM512 288l-192 0 0 32c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-32L0 288 0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-128z"]},bE={prefix:"fas",iconName:"book-open",icon:[576,512,[128214,128366],"f518","M249.6 471.5c10.8 3.8 22.4-4.1 22.4-15.5l0-377.4c0-4.2-1.6-8.4-5-11C247.4 52 202.4 32 144 32C93.5 32 46.3 45.3 18.1 56.1C6.8 60.5 0 71.7 0 83.8L0 454.1c0 11.9 12.8 20.2 24.1 16.5C55.6 460.1 105.5 448 144 448c33.9 0 79 14 105.6 23.5zm76.8 0C353 462 398.1 448 432 448c38.5 0 88.4 12.1 119.9 22.6c11.3 3.8 24.1-4.6 24.1-16.5l0-370.3c0-12.1-6.8-23.3-18.1-27.6C529.7 45.3 482.5 32 432 32c-58.4 0-103.4 20-123 35.6c-3.3 2.6-5 6.8-5 11L304 456c0 11.4 11.7 19.3 22.4 15.5z"]},yE={prefix:"fas",iconName:"share",icon:[512,512,["mail-forward"],"f064","M307 34.8c-11.5 5.1-19 16.6-19 29.2l0 64-112 0C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96l96 0 0 64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z"]},wE={prefix:"fas",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480l0-83.6c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"]},EE={prefix:"fas",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2l144 0c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48l-97.5 0c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3l0-38.3 0-48 0-24.9c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32L0 224c0-17.7 14.3-32 32-32z"]},kE={prefix:"fas",iconName:"graduation-cap",icon:[640,512,[127891,"mortar-board"],"f19d","M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9l0 28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5l0-24.6c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z"]};const _E=ye(cm()),SE={mounted(e,t){const n=()=>{const t=e.parentElement;if(!t)return;const n=1.6*t.clientWidth/(2*(e.innerText.match(/[\u00ff-\uffff]/g)||[]).length+(e.innerText.match(/[a-zA-Z0-9]/g)||[]).length);e.style.fontSize=`${n}px`};n();const o=new ResizeObserver(t=>{for(let o of t)o.target===e.parentElement&&n()});o.observe(e.parentElement),e._autofontsizeCleanup=()=>{o.unobserve(e.parentElement)}},unmounted(e){"function"==typeof e._autofontsizeCleanup&&(e._autofontsizeCleanup(),delete e._autofontsizeCleanup)}};class xE{static isUndefined(e){return void 0===e}static pick(e,t){let n={};return t.forEach(t=>{n[t]=e[t]}),n}static omit(e,t){let n={};return Object.keys(e).forEach(o=>{-1===t.indexOf(o)&&(n[o]=e[o])}),n}static omitBy(e,t){let n={};return Object.keys(e).forEach(o=>{t(e[o])||(n[o]=e[o])}),n}static defaults(e,...t){t.forEach(t=>{Object.keys(t).forEach(n=>{(this.isUndefined(e[n])||""===e[n])&&(e[n]=t[n])})})}}const LE=new class{constructor(){u(this,"installed",!1),u(this,"promise",Promise.resolve()),u(this,"loaded",{}),u(this,"props",["unload","src","type","async","integrity","text","crossorigin"])}install(e){e.config.globalProperties.$scriptx=this;let t=this;t.installed||(e.component("scriptx",{props:t.props,render(){return te("div",{style:"display:none"},this.$slots.default?this.$slots.default():void 0)},mounted(){let e=this.$el.parentElement;if(this.src){let n=xE.omitBy(xE.pick(this,t.props),xE.isUndefined);n.parent=e;let o=()=>{t.load(this.src,n).then(()=>this.$emit("loaded"),e=>this.$emit("error",e))};xE.isUndefined(this.async)||"false"===this.async?t.promise=t.promise.then(o):o()}else t.promise=t.promise.then(()=>{let t=document.createElement("script"),n=this.$el.innerHTML;n=n.replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&"),t.type="text/javascript",t.appendChild(document.createTextNode(n)),e.appendChild(t),this.$emit("loaded")});this.$nextTick(()=>{this.$el.parentElement.removeChild(this.$el)})},unmounted(){this.unload&&(new Function(this.unload)(),delete t.loaded[this.src])}}),t.installed=!0)}load(e,t={parent:document.head}){return this.loaded[e]||(this.loaded[e]=new Promise((n,o)=>{let r=document.createElement("script");xE.defaults(r,xE.omit(t,["unload","parent"]),{type:"text/javascript"}),r.async=!1,r.src=e,t.crossorigin&&(r.crossOrigin=t.crossorigin),r.onload=()=>n(e),r.onerror=()=>o(new Error(e)),t.parent.appendChild(r)})),this.loaded[e]}};var CE="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",AE={rootClass:{type:String,default:"adswrapper"},insClass:{type:String,default:""},insStyle:{type:String,default:"display:block;"},dataAdClient:{type:String,default:""},dataAdSlot:{type:String,default:""},dataAdLayoutKey:{type:String,default:"-fg+5n+6t-e7+r"},dataAdTest:{type:String,default:""},dataAdFormat:{type:String,default:"auto"},isNonPersonalizedAds:{type:String,default:"no"},dataFullWidthResponsive:{type:String,default:"no"},dataAdRegion:{type:String,default:""},isNewAdsCode:{type:String,default:"no"}},ME={name:"Adsense",props:AE,data:function(){return{ADS_SCRIPT:CE}}},TE=["data-ad-client","data-ad-slot","data-ad-test","data-ad-format","data-ad-region","data-full-width-responsive"],DE=C(" (adsbygoogle = window.adsbygoogle || []).requestNonPersonalizedAds = 1; (adsbygoogle = window.adsbygoogle || []).push({}); "),OE=C(" (adsbygoogle = window.adsbygoogle || []).push({}); ");ME.render=function(e,t,n,o,r,a){var i=I("scriptx");return w(),b("div",{class:M(e.rootClass)},["yes"===e.isNewAdsCode?(w(),k(i,{key:0,type:"text/javascript",async:"true",src:"".concat(r.ADS_SCRIPT,"?client=").concat(e.dataAdClient),crossorigin:"anonymous"},null,8,["src"])):j("v-if",!0),"no"===e.isNewAdsCode?(w(),k(i,{key:1,type:"text/javascript",async:"true",src:r.ADS_SCRIPT},null,8,["src"])):j("v-if",!0),y("ins",{class:M([e.insClass,"adsbygoogle"]),style:O(e.insStyle),"data-ad-client":e.dataAdClient,"data-ad-slot":e.dataAdSlot,"data-ad-test":e.dataAdTest,"data-ad-format":e.dataAdFormat,"data-ad-region":e.dataAdRegion,"data-full-width-responsive":"yes"===e.dataFullWidthResponsive},null,14,TE),"yes"===e.isNonPersonalizedAds?(w(),k(i,{key:2,type:"text/javascript"},{default:_(function(){return[DE]}),_:1})):j("v-if",!0),"no"===e.isNonPersonalizedAds?(w(),k(i,{key:3,type:"text/javascript"},{default:_(function(){return[OE]}),_:1})):j("v-if",!0)],2)};var HE={install:function(e,t){e.component("Adsense",ME)}},IE=function(e,t){var n=Object(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},PE={name:"InArticleAdsense",props:IE(AE,{dataAdFormat:{type:String,default:"fluid"}}),data:function(){return{ADS_SCRIPT:CE}}},jE=["data-ad-format","data-ad-client","data-ad-slot","data-ad-test","data-ad-region","data-full-width-responsive"],NE=C(" (adsbygoogle = window.adsbygoogle || []).requestNonPersonalizedAds = 1; (adsbygoogle = window.adsbygoogle || []).push({}); "),RE=C(" (adsbygoogle = window.adsbygoogle || []).push({}); ");PE.render=function(e,t,n,o,r,a){var i=I("scriptx");return w(),b("div",{class:M(e.rootClass)},["yes"===e.isNewAdsCode?(w(),k(i,{key:0,type:"text/javascript",async:"true",src:"".concat(r.ADS_SCRIPT,"?client=").concat(e.dataAdClient),crossorigin:"anonymous"},null,8,["src"])):j("v-if",!0),"no"===e.isNewAdsCode?(w(),k(i,{key:1,type:"text/javascript",async:"true",src:r.ADS_SCRIPT},null,8,["src"])):j("v-if",!0),y("ins",{class:M([e.insClass,"adsbygoogle"]),style:O(e.insStyle),"data-ad-layout":"in-article","data-ad-format":e.dataAdFormat,"data-ad-client":e.dataAdClient,"data-ad-slot":e.dataAdSlot,"data-ad-test":e.dataAdTest,"data-ad-region":e.dataAdRegion,"data-full-width-responsive":"yes"===e.dataFullWidthResponsive},null,14,jE),"yes"===e.isNonPersonalizedAds?(w(),k(i,{key:2,type:"text/javascript"},{default:_(function(){return[NE]}),_:1})):j("v-if",!0),"no"===e.isNonPersonalizedAds?(w(),k(i,{key:3,type:"text/javascript"},{default:_(function(){return[RE]}),_:1})):j("v-if",!0)],2)};var zE={install:function(e,t){e.component("InArticleAdsense",PE)}},VE={name:"InFeedAdsense",props:IE(AE,{dataAdFormat:{type:String,default:"fluid"}}),data:function(){return{ADS_SCRIPT:CE}}},BE=["data-ad-format","data-ad-layout-key","data-ad-client","data-ad-slot","data-ad-test","data-ad-region","data-full-width-responsive"],qE=C(" (adsbygoogle = window.adsbygoogle || []).requestNonPersonalizedAds = 1; (adsbygoogle = window.adsbygoogle || []).push({}); "),UE=C(" (adsbygoogle = window.adsbygoogle || []).push({}); ");VE.render=function(e,t,n,o,r,a){var i=I("scriptx");return w(),b("div",{class:M(e.rootClass)},["yes"===e.isNewAdsCode?(w(),k(i,{key:0,type:"text/javascript",async:"true",src:"".concat(r.ADS_SCRIPT,"?client=").concat(e.dataAdClient),crossorigin:"anonymous"},null,8,["src"])):j("v-if",!0),"no"===e.isNewAdsCode?(w(),k(i,{key:1,type:"text/javascript",async:"true",src:r.ADS_SCRIPT},null,8,["src"])):j("v-if",!0),y("ins",{class:M([e.insClass,"adsbygoogle"]),style:O(e.insStyle),"data-ad-format":e.dataAdFormat,"data-ad-layout-key":e.dataAdLayoutKey,"data-ad-client":e.dataAdClient,"data-ad-slot":e.dataAdSlot,"data-ad-test":e.dataAdTest,"data-ad-region":e.dataAdRegion,"data-full-width-responsive":"yes"===e.dataFullWidthResponsive},null,14,BE),"yes"===e.isNonPersonalizedAds?(w(),k(i,{key:2,type:"text/javascript"},{default:_(function(){return[qE]}),_:1})):j("v-if",!0),"no"===e.isNonPersonalizedAds?(w(),k(i,{key:3,type:"text/javascript"},{default:_(function(){return[UE]}),_:1})):j("v-if",!0)],2)};var FE={Adsense:HE,InArticleAdsense:zE,InFeedAdsense:{install:function(e,t){e.component("InFeedAdsense",VE)}}};ut.add(uE,{prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},Ww,{prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},oE,{prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]},tE,vE,{prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},{prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},{prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},Fw,{prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},mE,{prefix:"fas",iconName:"inbox",icon:[512,512,[],"f01c","M121 32C91.6 32 66 52 58.9 80.5L1.9 308.4C.6 313.5 0 318.7 0 323.9L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-92.1c0-5.2-.6-10.4-1.9-15.5l-57-227.9C446 52 420.4 32 391 32L121 32zm0 64l270 0 48 192-51.2 0c-12.1 0-23.2 6.8-28.6 17.7l-14.3 28.6c-5.4 10.8-16.5 17.7-28.6 17.7l-120.4 0c-12.1 0-23.2-6.8-28.6-17.7l-14.3-28.6c-5.4-10.8-16.5-17.7-28.6-17.7L73 288 121 96z"]},{prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]},Jw,{prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9C311.6 228.3 320 203.2 320 176c0-70.7-57.3-128-128-128S64 105.3 64 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7c0 0 0 0 0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5L109 384c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8c0 0 0 0 0 0s0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176C16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4c0 0 0 0 0 0s0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5l-48.6 0c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM192 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80l0-16 160 0 0 16c0 44.2-35.8 80-80 80z"]},{prefix:"far",iconName:"moon",icon:[384,512,[127769,9214],"f186","M144.7 98.7c-21 34.1-33.1 74.3-33.1 117.3c0 98 62.8 181.4 150.4 211.7c-12.4 2.8-25.3 4.3-38.6 4.3C126.6 432 48 353.3 48 256c0-68.9 39.4-128.4 96.8-157.3zm62.1-66C91.1 41.2 0 137.9 0 256C0 379.7 100 480 223.5 480c47.8 0 92-15 128.4-40.6c1.9-1.3 3.7-2.7 5.5-4c4.8-3.6 9.4-7.4 13.9-11.4c2.7-2.4 5.3-4.8 7.9-7.3c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-3.7 .6-7.4 1.2-11.1 1.6c-5 .5-10.1 .9-15.3 1c-1.2 0-2.5 0-3.7 0l-.3 0c-96.8-.2-175.2-78.9-175.2-176c0-54.8 24.9-103.7 64.1-136c1-.9 2.1-1.7 3.2-2.6c4-3.2 8.2-6.2 12.5-9c3.1-2 6.3-4 9.6-5.8c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-3.6-.3-7.1-.5-10.7-.6c-2.7-.1-5.5-.1-8.2-.1c-3.3 0-6.5 .1-9.8 .2c-2.3 .1-4.6 .2-6.9 .4z"]},{prefix:"far",iconName:"sun",icon:[512,512,[9728],"f185","M375.7 19.7c-1.5-8-6.9-14.7-14.4-17.8s-16.1-2.2-22.8 2.4L256 61.1 173.5 4.2c-6.7-4.6-15.3-5.5-22.8-2.4s-12.9 9.8-14.4 17.8l-18.1 98.5L19.7 136.3c-8 1.5-14.7 6.9-17.8 14.4s-2.2 16.1 2.4 22.8L61.1 256 4.2 338.5c-4.6 6.7-5.5 15.3-2.4 22.8s9.8 13 17.8 14.4l98.5 18.1 18.1 98.5c1.5 8 6.9 14.7 14.4 17.8s16.1 2.2 22.8-2.4L256 450.9l82.5 56.9c6.7 4.6 15.3 5.5 22.8 2.4s12.9-9.8 14.4-17.8l18.1-98.5 98.5-18.1c8-1.5 14.7-6.9 17.8-14.4s2.2-16.1-2.4-22.8L450.9 256l56.9-82.5c4.6-6.7 5.5-15.3 2.4-22.8s-9.8-12.9-17.8-14.4l-98.5-18.1L375.7 19.7zM269.6 110l65.6-45.2 14.4 78.3c1.8 9.8 9.5 17.5 19.3 19.3l78.3 14.4L402 242.4c-5.7 8.2-5.7 19 0 27.2l45.2 65.6-78.3 14.4c-9.8 1.8-17.5 9.5-19.3 19.3l-14.4 78.3L269.6 402c-8.2-5.7-19-5.7-27.2 0l-65.6 45.2-14.4-78.3c-1.8-9.8-9.5-17.5-19.3-19.3L64.8 335.2 110 269.6c5.7-8.2 5.7-19 0-27.2L64.8 176.8l78.3-14.4c9.8-1.8 17.5-9.5 19.3-19.3l14.4-78.3L242.4 110c8.2 5.7 19 5.7 27.2 0zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zM192 256a64 64 0 1 1 128 0 64 64 0 1 1 -128 0z"]},{prefix:"far",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"]},{prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},{prefix:"far",iconName:"circle-user",icon:[512,512,[62142,"user-circle"],"f2bd","M406.5 399.6C387.4 352.9 341.5 320 288 320l-64 0c-53.5 0-99.4 32.9-118.5 79.6C69.9 362.2 48 311.7 48 256C48 141.1 141.1 48 256 48s208 93.1 208 208c0 55.7-21.9 106.2-57.5 143.6zm-40.1 32.7C334.4 452.4 296.6 464 256 464s-78.4-11.6-110.5-31.7c7.3-36.7 39.7-64.3 78.5-64.3l64 0c38.8 0 71.2 27.6 78.5 64.3zM256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-272a40 40 0 1 1 0-80 40 40 0 1 1 0 80zm-88-40a88 88 0 1 0 176 0 88 88 0 1 0 -176 0z"]},{prefix:"far",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 48C0 21.5 21.5 0 48 0l0 48 0 393.4 130.1-92.9c8.3-6 19.6-6 27.9 0L336 441.4 336 48 48 48 48 0 336 0c26.5 0 48 21.5 48 48l0 440c0 9-5 17.2-13 21.3s-17.6 3.4-24.9-1.8L192 397.5 37.9 507.5c-7.3 5.2-16.9 5.9-24.9 1.8S0 497 0 488L0 48z"]},{prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},eE,{prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},{prefix:"fab",iconName:"qq",icon:[448,512,[],"f1d6","M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"]},{prefix:"fab",iconName:"alipay",icon:[448,512,[],"f642","M377.74 32H70.26C31.41 32 0 63.41 0 102.26v307.48C0 448.59 31.41 480 70.26 480h307.48c38.52 0 69.76-31.08 70.26-69.6-45.96-25.62-110.59-60.34-171.6-88.44-32.07 43.97-84.14 81-148.62 81-70.59 0-93.73-45.3-97.04-76.37-3.97-39.01 14.88-81.5 99.52-81.5 35.38 0 79.35 10.25 127.13 24.96 16.53-30.09 26.45-60.34 26.45-60.34h-178.2v-16.7h92.08v-31.24H88.28v-19.01h109.44V92.34h50.92v50.42h109.44v19.01H248.63v31.24h88.77s-15.21 46.62-38.35 90.92c48.93 16.7 100.01 36.04 148.62 52.74V102.26C447.83 63.57 416.43 32 377.74 32zM47.28 322.95c.99 20.17 10.25 53.73 69.93 53.73 52.07 0 92.58-39.68 117.87-72.9-44.63-18.68-84.48-31.41-109.44-31.41-67.45 0-79.35 33.06-78.36 50.58z"]},{prefix:"fab",iconName:"docker",icon:[640,512,[],"f395","M349.9 236.3h-66.1v-59.4h66.1v59.4zm0-204.3h-66.1v60.7h66.1V32zm78.2 144.8H362v59.4h66.1v-59.4zm-156.3-72.1h-66.1v60.1h66.1v-60.1zm78.1 0h-66.1v60.1h66.1v-60.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.8 5.8 116.8 44 162.1 37.1 43.9 92.7 66.2 165.4 66.2 157.4 0 273.9-72.5 328.4-204.2 21.4.4 67.6.1 91.3-45.2 1.5-2.5 6.6-13.2 8.5-17.1l-13.3-8.9zm-511.1-27.9h-66v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm-78.1-72.1h-66.1v60.1h66.1v-60.1z"]},{prefix:"fab",iconName:"weixin",icon:[576,512,[],"f1d7","M385.2 167.6c6.4 0 12.6.3 18.8 1.1C387.4 90.3 303.3 32 207.7 32 100.5 32 13 104.8 13 197.4c0 53.4 29.3 97.5 77.9 131.6l-19.3 58.6 68-34.1c24.4 4.8 43.8 9.7 68.2 9.7 6.2 0 12.1-.3 18.3-.8-4-12.9-6.2-26.6-6.2-40.8-.1-84.9 72.9-154 165.3-154zm-104.5-52.9c14.5 0 24.2 9.7 24.2 24.4 0 14.5-9.7 24.2-24.2 24.2-14.8 0-29.3-9.7-29.3-24.2.1-14.7 14.6-24.4 29.3-24.4zm-136.4 48.6c-14.5 0-29.3-9.7-29.3-24.2 0-14.8 14.8-24.4 29.3-24.4 14.8 0 24.4 9.7 24.4 24.4 0 14.6-9.6 24.2-24.4 24.2zM563 319.4c0-77.9-77.9-141.3-165.4-141.3-92.7 0-165.4 63.4-165.4 141.3S305 460.7 397.6 460.7c19.3 0 38.9-5.1 58.6-9.9l53.4 29.3-14.8-48.6C534 402.1 563 363.2 563 319.4zm-219.1-24.5c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.8 0 24.4 9.7 24.4 19.3 0 10-9.7 19.6-24.4 19.6zm107.1 0c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.5 0 24.4 9.7 24.4 19.3.1 10-9.9 19.6-24.4 19.6z"]},{prefix:"fab",iconName:"bilibili",icon:[512,512,[],"e3d9","M488.6 104.1C505.3 122.2 513 143.8 511.9 169.8V372.2C511.5 398.6 502.7 420.3 485.4 437.3C468.2 454.3 446.3 463.2 419.9 464H92.02C65.57 463.2 43.81 454.2 26.74 436.8C9.682 419.4 .7667 396.5 0 368.2V169.8C.7667 143.8 9.682 122.2 26.74 104.1C43.81 87.75 65.57 78.77 92.02 78H121.4L96.05 52.19C90.3 46.46 87.42 39.19 87.42 30.4C87.42 21.6 90.3 14.34 96.05 8.603C101.8 2.868 109.1 0 117.9 0C126.7 0 134 2.868 139.8 8.603L213.1 78H301.1L375.6 8.603C381.7 2.868 389.2 0 398 0C406.8 0 414.1 2.868 419.9 8.603C425.6 14.34 428.5 21.6 428.5 30.4C428.5 39.19 425.6 46.46 419.9 52.19L394.6 78L423.9 78C450.3 78.77 471.9 87.75 488.6 104.1H488.6zM449.8 173.8C449.4 164.2 446.1 156.4 439.1 150.3C433.9 144.2 425.1 140.9 416.4 140.5H96.05C86.46 140.9 78.6 144.2 72.47 150.3C66.33 156.4 63.07 164.2 62.69 173.8V368.2C62.69 377.4 65.95 385.2 72.47 391.7C78.99 398.2 86.85 401.5 96.05 401.5H416.4C425.6 401.5 433.4 398.2 439.7 391.7C446 385.2 449.4 377.4 449.8 368.2L449.8 173.8zM185.5 216.5C191.8 222.8 195.2 230.6 195.6 239.7V273C195.2 282.2 191.9 289.9 185.8 296.2C179.6 302.5 171.8 305.7 162.2 305.7C152.6 305.7 144.7 302.5 138.6 296.2C132.5 289.9 129.2 282.2 128.8 273V239.7C129.2 230.6 132.6 222.8 138.9 216.5C145.2 210.2 152.1 206.9 162.2 206.5C171.4 206.9 179.2 210.2 185.5 216.5H185.5zM377 216.5C383.3 222.8 386.7 230.6 387.1 239.7V273C386.7 282.2 383.4 289.9 377.3 296.2C371.2 302.5 363.3 305.7 353.7 305.7C344.1 305.7 336.3 302.5 330.1 296.2C323.1 289.9 320.7 282.2 320.4 273V239.7C320.7 230.6 324.1 222.8 330.4 216.5C336.7 210.2 344.5 206.9 353.7 206.5C362.9 206.9 370.7 210.2 377 216.5H377z"]},Xw,hE,{prefix:"fas",iconName:"shuffle",icon:[512,512,[128256,"random"],"f074","M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6zM164 282.7L204 336l-31.2 41.6C154.7 401.8 126.2 416 96 416l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c10.1 0 19.6-4.7 25.6-12.8L164 282.7zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z"]},{prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},{prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},{prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},{prefix:"fas",iconName:"hashtag",icon:[448,512,[62098],"23","M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8L197.8 128l95.1 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8L357.8 128l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0L325.8 320l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7-95.1 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8L90.2 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 21.3-128L64 192c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zM187.1 192L165.8 320l95.1 0 21.3-128-95.1 0z"]},Kw,{prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM504 312l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},$w,rE,lE,Bw,EE,sE,{prefix:"fas",iconName:"crown",icon:[576,512,[128081],"f521","M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6l277.2 0c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"]},fE,{prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},{prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"]},{prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},{prefix:"fas",iconName:"arrow-trend-up",icon:[576,512,[],"e098","M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"]},Zw,{prefix:"fas",iconName:"ranking-star",icon:[640,512,[],"e561","M353.8 54.1L330.2 6.3c-3.9-8.3-16.1-8.6-20.4 0L286.2 54.1l-52.3 7.5c-9.3 1.4-13.3 12.9-6.4 19.8l38 37-9 52.1c-1.4 9.3 8.2 16.5 16.8 12.2l46.9-24.8 46.6 24.4c8.6 4.3 18.3-2.9 16.8-12.2l-9-52.1 38-36.6c6.8-6.8 2.9-18.3-6.4-19.8l-52.3-7.5zM256 256c-17.7 0-32 14.3-32 32l0 192c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-192c0-17.7-14.3-32-32-32l-128 0zM32 320c-17.7 0-32 14.3-32 32L0 480c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32L32 320zm416 96l0 64c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-128 0c-17.7 0-32 14.3-32 32z"]},{prefix:"fas",iconName:"medal",icon:[512,512,[127941],"f5a2","M4.1 38.2C1.4 34.2 0 29.4 0 24.6C0 11 11 0 24.6 0L133.9 0c11.2 0 21.7 5.9 27.4 15.5l68.5 114.1c-48.2 6.1-91.3 28.6-123.4 61.9L4.1 38.2zm503.7 0L405.6 191.5c-32.1-33.3-75.2-55.8-123.4-61.9L350.7 15.5C356.5 5.9 366.9 0 378.1 0L487.4 0C501 0 512 11 512 24.6c0 4.8-1.4 9.6-4.1 13.6zM80 336a176 176 0 1 1 352 0A176 176 0 1 1 80 336zm184.4-94.9c-3.4-7-13.3-7-16.8 0l-22.4 45.4c-1.4 2.8-4 4.7-7 5.1L168 298.9c-7.7 1.1-10.7 10.5-5.2 16l36.3 35.4c2.2 2.2 3.2 5.2 2.7 8.3l-8.6 49.9c-1.3 7.6 6.7 13.5 13.6 9.9l44.8-23.6c2.7-1.4 6-1.4 8.7 0l44.8 23.6c6.9 3.6 14.9-2.2 13.6-9.9l-8.6-49.9c-.5-3 .5-6.1 2.7-8.3l36.3-35.4c5.6-5.4 2.5-14.8-5.2-16l-50.1-7.3c-3-.4-5.7-2.4-7-5.1l-22.4-45.4z"]},Uw,{prefix:"fas",iconName:"campground",icon:[576,512,[9978],"f6bb","M377 52c11-13.8 8.8-33.9-5-45s-33.9-8.8-45 5L288 60.8 249 12c-11-13.8-31.2-16-45-5s-16 31.2-5 45l48 60L12.3 405.4C4.3 415.4 0 427.7 0 440.4L0 464c0 26.5 21.5 48 48 48l240 0 240 0c26.5 0 48-21.5 48-48l0-23.6c0-12.7-4.3-25.1-12.3-35L329 112l48-60zM288 448l-119.5 0L288 291.7 407.5 448 288 448z"]},{prefix:"fas",iconName:"house-user",icon:[576,512,["home-user"],"e1b0","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c.2 35.5-28.5 64.3-64 64.3l-320.4 0c-35.3 0-64-28.7-64-64l0-160.4-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24zM352 224a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm-96 96c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"]},{prefix:"fas",iconName:"user-graduate",icon:[448,512,[],"f501","M219.3 .5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9l0 57.1c0 70.7-57.3 128-128 128s-128-57.3-128-128l0-57.1L48 93.3l0 65.1 15.7 78.4c.9 4.7-.3 9.6-3.3 13.3s-7.6 5.9-12.4 5.9l-32 0c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4l0-71.8C6.5 83.3 0 74.3 0 64C0 52.6 8.1 42.7 19.3 40.5l200-40zM111.9 327.7c10.5-3.4 21.8 .4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5C401 348.6 448 409.4 448 481.3c0 17-13.8 30.7-30.7 30.7L30.7 512C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z"]},bE,{prefix:"fas",iconName:"circle-nodes",icon:[512,512,[],"e4e2","M418.4 157.9c35.3-8.3 61.6-40 61.6-77.9c0-44.2-35.8-80-80-80c-43.4 0-78.7 34.5-80 77.5L136.2 151.1C121.7 136.8 101.9 128 80 128c-44.2 0-80 35.8-80 80s35.8 80 80 80c12.2 0 23.8-2.7 34.1-7.6L259.7 407.8c-2.4 7.6-3.7 15.8-3.7 24.2c0 44.2 35.8 80 80 80s80-35.8 80-80c0-27.7-14-52.1-35.4-66.4l37.8-207.7zM156.3 232.2c2.2-6.9 3.5-14.2 3.7-21.7l183.8-73.5c3.6 3.5 7.4 6.7 11.6 9.5L317.6 354.1c-5.5 1.3-10.8 3.1-15.8 5.5L156.3 232.2z"]},{prefix:"fas",iconName:"note-sticky",icon:[448,512,[62026,"sticky-note"],"f249","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"]},{prefix:"fas",iconName:"puzzle-piece",icon:[512,512,[129513],"f12e","M192 104.8c0-9.2-5.8-17.3-13.2-22.8C167.2 73.3 160 61.3 160 48c0-26.5 28.7-48 64-48s64 21.5 64 48c0 13.3-7.2 25.3-18.8 34c-7.4 5.5-13.2 13.6-13.2 22.8c0 12.8 10.4 23.2 23.2 23.2l56.8 0c26.5 0 48 21.5 48 48l0 56.8c0 12.8 10.4 23.2 23.2 23.2c9.2 0 17.3-5.8 22.8-13.2c8.7-11.6 20.7-18.8 34-18.8c26.5 0 48 28.7 48 64s-21.5 64-48 64c-13.3 0-25.3-7.2-34-18.8c-5.5-7.4-13.6-13.2-22.8-13.2c-12.8 0-23.2 10.4-23.2 23.2L384 464c0 26.5-21.5 48-48 48l-56.8 0c-12.8 0-23.2-10.4-23.2-23.2c0-9.2 5.8-17.3 13.2-22.8c11.6-8.7 18.8-20.7 18.8-34c0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34c7.4 5.5 13.2 13.6 13.2 22.8c0 12.8-10.4 23.2-23.2 23.2L48 512c-26.5 0-48-21.5-48-48L0 343.2C0 330.4 10.4 320 23.2 320c9.2 0 17.3 5.8 22.8 13.2C54.7 344.8 66.7 352 80 352c26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8C40.5 250.2 32.4 256 23.2 256C10.4 256 0 245.6 0 232.8L0 176c0-26.5 21.5-48 48-48l120.8 0c12.8 0 23.2-10.4 23.2-23.2z"]},{prefix:"fas",iconName:"toolbox",icon:[512,512,[129520],"f552","M176 88l0 40 160 0 0-40c0-4.4-3.6-8-8-8L184 80c-4.4 0-8 3.6-8 8zm-48 40l0-40c0-30.9 25.1-56 56-56l144 0c30.9 0 56 25.1 56 56l0 40 28.1 0c12.7 0 24.9 5.1 33.9 14.1l51.9 51.9c9 9 14.1 21.2 14.1 33.9l0 92.1-128 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32-128 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L0 320l0-92.1c0-12.7 5.1-24.9 14.1-33.9l51.9-51.9c9-9 21.2-14.1 33.9-14.1l28.1 0zM0 416l0-64 128 0c0 17.7 14.3 32 32 32s32-14.3 32-32l128 0c0 17.7 14.3 32 32 32s32-14.3 32-32l128 0 0 64c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64z"]},Qw,nE,aE,iE,{prefix:"fas",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"]},{prefix:"fas",iconName:"angles-right",icon:[512,512,[187,"angle-double-right"],"f101","M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"]},pE,{prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"]},{prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},Yw,{prefix:"fas",iconName:"store",icon:[576,512,[],"f54e","M547.6 103.8L490.3 13.1C485.2 5 476.1 0 466.4 0L109.6 0C99.9 0 90.8 5 85.7 13.1L28.3 103.8c-29.6 46.8-3.4 111.9 51.9 119.4c4 .5 8.1 .8 12.1 .8c26.1 0 49.3-11.4 65.2-29c15.9 17.6 39.1 29 65.2 29c26.1 0 49.3-11.4 65.2-29c15.9 17.6 39.1 29 65.2 29c26.2 0 49.3-11.4 65.2-29c16 17.6 39.1 29 65.2 29c4.1 0 8.1-.3 12.1-.8c55.5-7.4 81.8-72.5 52.1-119.4zM499.7 254.9c0 0 0 0-.1 0c-5.3 .7-10.7 1.1-16.2 1.1c-12.4 0-24.3-1.9-35.4-5.3L448 384l-320 0 0-133.4c-11.2 3.5-23.2 5.4-35.6 5.4c-5.5 0-11-.4-16.3-1.1l-.1 0c-4.1-.6-8.1-1.3-12-2.3L64 384l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64 0-131.4c-4 1-8 1.8-12.3 2.3z"]},{prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},{prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},{prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},wE,{prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},{prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},{prefix:"fas",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"]},{prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},{prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},{prefix:"fas",iconName:"angle-left",icon:[320,512,[8249],"f104","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},{prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},{prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},{prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},{prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},{prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},{prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-64L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64 320 0z"]},{prefix:"fas",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113C-2.3 103.6-2.3 88.4 7 79s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},{prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},{prefix:"fas",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM329 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L329 305z"]},{prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},{prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},{prefix:"fas",iconName:"school",icon:[640,512,[127979],"f549","M337.8 5.4C327-1.8 313-1.8 302.2 5.4L166.3 96 48 96C21.5 96 0 117.5 0 144L0 464c0 26.5 21.5 48 48 48l208 0 0-96c0-35.3 28.7-64 64-64s64 28.7 64 64l0 96 208 0c26.5 0 48-21.5 48-48l0-320c0-26.5-21.5-48-48-48L473.7 96 337.8 5.4zM96 192l32 0c8.8 0 16 7.2 16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-64c0-8.8 7.2-16 16-16zm400 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-64zM96 320l32 0c8.8 0 16 7.2 16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-64c0-8.8 7.2-16 16-16zm400 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-64zM232 176a88 88 0 1 1 176 0 88 88 0 1 1 -176 0zm88-48c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0 0-16c0-8.8-7.2-16-16-16z"]},{prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},{prefix:"fas",iconName:"shield",icon:[512,512,[128737,"shield-blank"],"f132","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0z"]},wE,{prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},{prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]}),_E.en.weekStart=1;const $E=function(e){const t=e;return t.headTags=e.resolveTags,t.addEntry=e.push,t.addHeadObjs=e.push,t.addReactiveEntry=(e,t)=>{const n=pp(e,t);return void 0!==n?n.dispose:()=>{}},t.removeHeadObjs=()=>{},t.updateDOM=()=>{e.hooks.callHook("entries:updated",e)},t.unhead=e,t}(sp({})),WE=he(Np);WE.use(it,{locale:lm}),WE.use($E),WE.use(LE),WE.use(FE.Adsense,{}),WE.use(FE.InArticleAdsense,{}),WE.use(FE.InFeedAdsense,{}),WE.use(dm),WE.use(um),ft(()=>import("./table-CfNGNmhY.js"),__vite__mapDeps([248,1,3])).then(e=>{WE.use(e.default),ft(()=>Promise.resolve({}),__vite__mapDeps([249]))}),WE.use(Vw),function(){return p(this,null,function*(){const[e,t,n,o,r,a,i,l,s,c,d,u]=yield Promise.all([ft(()=>import("./codemirror-editor-n6I9ozj6.js").then(e=>e.c),__vite__mapDeps([250,3,1,10])),ft(()=>import("./codemirror-vsJHadTW.js").then(e=>e.c),__vite__mapDeps([60,3,1])),ft(()=>import("./preview-DOv-llKH.js").then(e=>e.p),__vite__mapDeps([251,3,1,10])),ft(()=>import("./index-BDIWSQBv.js").then(e=>e.i),__vite__mapDeps([252,3,1])),ft(()=>import("./github-BnM3C7Kj.js").then(e=>e.g),__vite__mapDeps([253,3,1])),ft(()=>import("./index-DLTAdhfY.js").then(e=>e.i),__vite__mapDeps([254,255])),ft(()=>import("./index-DkaZyniy.js").then(e=>e.i),__vite__mapDeps([256,255])),ft(()=>import("./index-D3a8f7AL.js").then(e=>e.i),__vite__mapDeps([257,255])),ft(()=>import("./cdn-B0Bmq7OI.js").then(e=>e.c),__vite__mapDeps([258,255])),ft(()=>import("./index-WE7Z8NM-.js").then(e=>e.i),__vite__mapDeps([259,255])),ft(()=>import("./vmdpreview-ai-DB9biWGG.js"),__vite__mapDeps([260,1,7,3,8,9,10,4])).then(e=>e.createAiPlugin),ft(()=>import("./markdown-media-BDLs850F.js"),__vite__mapDeps([261,1,3,262])).then(e=>e.createMediaPlugin)]);yield Promise.all([ft(()=>Promise.resolve({}),__vite__mapDeps([263])),ft(()=>Promise.resolve({}),__vite__mapDeps([264])),ft(()=>Promise.resolve({}),__vite__mapDeps([265])),ft(()=>Promise.resolve({}),__vite__mapDeps([266])),ft(()=>Promise.resolve({}),__vite__mapDeps([267])),ft(()=>Promise.resolve({}),__vite__mapDeps([268]))]);const{default:p}=e,{default:m}=t,{default:f}=n,{default:h}=o,{default:v}=r;return p.Codemirror=m,p.vMdParser.theme(v),p.use(v,{Hljs:h,extend(e){e.options.html=!1,e.use(u)}}),p.use(l.default()).use(i.default()).use(s.default()).use(a.default()),f.vMdParser.theme(v),f.use(v,{Hljs:h,extend(e){e.options.html=!1,e.use(u)}}),f.use(l.default()).use(i.default()).use(s.default()).use(c.default()).use(a.default()).use(d()),{VueMarkdownEditor:p,VMdPreview:f}})}().then(({VueMarkdownEditor:e,VMdPreview:t})=>{WE.use(e),WE.use(t)}),WE.component("font-awesome-icon",pt),WE.use(am).use(Qp),WE.directive("autosize",SE),WE.mount("#app");export{sn as $,Ts as A,sc as B,ya as C,Sa as D,Wo as E,At as F,wn as G,ha as H,Fi as I,va as J,ma as K,ia as L,Ot as M,vt as N,Or as O,fd as P,Ea as Q,en as R,Bt as S,tn as T,on as U,nn as V,Xt as W,rn as X,an as Y,ln as Z,bn as _,Bw as a,na as a$,gd as a0,On as a1,Ta as a2,yE as a3,Zw as a4,bE as a5,gE as a6,xa as a7,hn as a8,Mt as a9,Jo as aA,rr as aB,Ds as aC,Pr as aD,Ir as aE,wi as aF,Hr as aG,br as aH,gr as aI,Tr as aJ,Dr as aK,hr as aL,fr as aM,Zo as aN,tr as aO,nr as aP,$o as aQ,or as aR,Kr as aS,Fr as aT,Wr as aU,Gr as aV,$r as aW,ea as aX,Kn as aY,ta as aZ,oa as a_,am as aa,sE as ab,EE as ac,Gw as ad,Fw as ae,cE as af,vE as ag,qw as ah,sr as ai,cr as aj,dr as ak,ur as al,er as am,la as an,aa as ao,vr as ap,sa as aq,ca as ar,da as as,ra as at,Mr as au,kt as av,fa as aw,No as ax,qr as ay,Da as az,mE as b,Wl as b$,Dc as b0,Lc as b1,Hc as b2,Ac as b3,Cc as b4,xc as b5,jc as b6,Pc as b7,Ic as b8,md as b9,wr as bA,Go as bB,cc as bC,dc as bD,gl as bE,Aa as bF,Hs as bG,Fs as bH,Os as bI,Yp as bJ,Rp as bK,rs as bL,us as bM,bs as bN,gs as bO,Is as bP,zl as bQ,Vl as bR,As as bS,Ms as bT,Qp as bU,Cs as bV,ps as bW,mc as bX,pc as bY,Fl as bZ,$l as b_,nl as ba,wl as bb,sl as bc,Gi as bd,Mc as be,Oc as bf,Tc as bg,Sc as bh,Nt as bi,Rc as bj,Nc as bk,zc as bl,Sn as bm,Jr as bn,Yr as bo,Zr as bp,Qr as bq,Xr as br,_a as bs,La as bt,pr as bu,mr as bv,ar as bw,ir as bx,lr as by,yr as bz,kE as c,ss as c$,hd as c0,Wp as c1,Gl as c2,Ws as c3,El as c4,Es as c5,Bl as c6,is as c7,$p as c8,Jp as c9,ls as cA,Rs as cB,Cl as cC,Ll as cD,Pl as cE,jl as cF,Dn as cG,Il as cH,Dl as cI,Ol as cJ,Hl as cK,ql as cL,Kl as cM,Jl as cN,Us as cO,kl as cP,xl as cQ,Rl as cR,Ul as cS,Yl as cT,cs as cU,Ps as cV,js as cW,_l as cX,qs as cY,Nl as cZ,Sl as c_,ac as ca,Ns as cb,Bs as cc,rc as cd,ao as ce,Vc as cf,Bc as cg,td as ch,Xc as ci,Uc as cj,Wc as ck,Yc as cl,Ma as cm,Qc as cn,nd as co,qc as cp,ed as cq,Gc as cr,Kc as cs,Jc as ct,Zc as cu,$c as cv,Fc as cw,zs as cx,Vs as cy,Tl as cz,Qw as d,pa as d$,ks as d0,ys as d1,ws as d2,ec as d3,tc as d4,Xs as d5,Qs as d6,Js as d7,Zs as d8,fs as d9,Ht as dA,jt as dB,ua as dC,Pt as dD,It as dE,Er as dF,lm as dG,Ln as dH,ba as dI,ga as dJ,ic as dK,kr as dL,Sr as dM,_r as dN,Ur as dO,Qo as dP,xr as dQ,Cr as dR,Lr as dS,Ar as dT,Vr as dU,zr as dV,Rr as dW,Nr as dX,jr as dY,Ko as dZ,$s as d_,hs as da,qp as db,ms as dc,Ys as dd,nc as de,Ss as df,_s as dg,Ks as dh,xs as di,Ls as dj,Gs as dk,vs as dl,Fp as dm,Br as dn,oc as dp,Gp as dq,ka as dr,Zl as ds,Ql as dt,Xl as du,as as dv,ns as dw,ts as dx,es as dy,os as dz,fE as e,zp as e0,Vp as e1,Bp as e2,Up as e3,Kp as e4,Dt as e5,Tt as e6,ds as e7,yc as e8,bc as e9,hc as ea,gc as eb,fc as ec,_c as ed,wc as ee,vc as ef,Ec as eg,kc as eh,zt as ei,Vt as ej,uc as ek,qt as el,Ft as em,$t as en,Qt as eo,Kt as ep,Gt as eq,Yt as er,Jt as es,Zt as et,Ut as eu,Wt as ev,cn as ew,dn as ex,Xw as f,Kw as g,$w as h,nE as i,gi as j,oE as k,rE as l,lE as m,Ca as n,Jw as o,dE as p,hE as q,Yw as r,pE as s,Ww as t,eE as u,Uw as v,Xo as w,Al as x,Ml as y,lc as z};