deepsky 1.99.2 → 1.99.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/76cd5fa280842fa5efc2.woff2 +0 -0
- package/dist/fonts/iconfont-857fa2e70a4d27f08f5d.woff +0 -0
- package/dist/fonts/{iconfont-3c5ac7a6aaa1dbc3f302.ttf → iconfont-9a1cb31eb39e482499e1.ttf} +0 -0
- package/dist/index.css +8 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/904239bb7445584562d2.woff2 +0 -0
- package/dist/fonts/iconfont-882738cf5d7b0f0f7290.woff +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.css
CHANGED
|
@@ -5036,9 +5036,9 @@ to {
|
|
|
5036
5036
|
|
|
5037
5037
|
@font-face {
|
|
5038
5038
|
font-family: "iconfont"; /* Project id 4747285 */
|
|
5039
|
-
src: url(
|
|
5040
|
-
url(fonts/iconfont-
|
|
5041
|
-
url(fonts/iconfont-
|
|
5039
|
+
src: url(76cd5fa280842fa5efc2.woff2?t=1761361834920) format('woff2'),
|
|
5040
|
+
url(fonts/iconfont-857fa2e70a4d27f08f5d.woff) format('woff'),
|
|
5041
|
+
url(fonts/iconfont-9a1cb31eb39e482499e1.ttf) format('truetype');
|
|
5042
5042
|
}
|
|
5043
5043
|
|
|
5044
5044
|
.iconfont {
|
|
@@ -5049,12 +5049,16 @@ to {
|
|
|
5049
5049
|
-moz-osx-font-smoothing: grayscale;
|
|
5050
5050
|
}
|
|
5051
5051
|
|
|
5052
|
+
.icon-fan-circle:before {
|
|
5053
|
+
content: "\e893";
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5052
5056
|
.icon-pinyin:before {
|
|
5053
5057
|
content: "\e72e";
|
|
5054
5058
|
}
|
|
5055
5059
|
|
|
5056
5060
|
.icon-biaozhu:before {
|
|
5057
|
-
content: "\
|
|
5061
|
+
content: "\e666";
|
|
5058
5062
|
}
|
|
5059
5063
|
|
|
5060
5064
|
.icon-circle:before {
|
package/dist/index.js
CHANGED
|
@@ -61,4 +61,4 @@ a & b & S \\
|
|
|
61
61
|
1&2&3\\
|
|
62
62
|
4&5&6
|
|
63
63
|
\end{array}
|
|
64
|
-
\right]`]}),AP={[r.UF.preset]:"预设",[r.UF.symbol]:"符号",[r.UF.bracket]:"括号",[r.UF.relation]:"关系",[r.UF.sup]:"上下标",[r.UF.arrow]:"箭头",[r.UF.operator]:"运算符",[r.UF.matrix]:"矩阵",[r.UF.expression]:"函数式"};var NP=n(6905);const WP={class:"fomula-toolbar"},BP={class:"fomula-editor"},$P={class:"fomula-input-area"},PP=["innerHTML"],FP={class:"fomula-candidate"},zP={class:"fomula-candidate-nav"},DP=["onClick"],VP={class:"fomula-candidate-values"},KP={key:0,class:"fomula-type"},jP=["onClick","innerHTML"],XP=(0,l.pM)({__name:"float-fomula",props:{editor:{}},setup(e){const{tips:t}=e.editor,n=NP.$,s=(0,i.KR)(),c=(0,i.KR)(),u=(0,i.Kh)({tab:r.UF.preset,block:!1,latex:"",size:o._FomulaSize.h4});(0,l.sV)(()=>{FW.wF.dom=s.value});const d=(0,l.EW)(()=>o.CubeFomula.render(u.size+u.latex,{displayMode:u.block}));function p(){if(!u.latex.trim())return t.tip_warning("输入公式为空,已放弃");const{anchor:e,cube:n}=FW.wF;if(e){const{courier:t,history:n,pcube:r,index:i,pid:a,id:s}=e,l=FW.wF.pos,c=t.get_recorder();l>0&&l<e.len&&c.tell(e,o.CommandCube.partition(s,s,s,l,l));const d=o.CubeFomula.get_default(u.latex,{},{block:u.block,size:u.size});c.tell(r,o.CommandCube.insert_child(a,[d],i+1)),n.record(c)}else if(n){const{courier:e,history:t,pcube:r,index:i,pid:a,id:s}=n,l=e.get_recorder();l.tell(n,o.CommandFomula.update(s,u.latex,u.size,u.block)),t.record(l)}FW.wF.show=!1}function h(e){e.stopPropagation(),e.ctrlKey&&"Enter"===e.key&&p()}function f(e){c.value&&(u.size=e)}function v(e){e.stopPropagation(),e.preventDefault();const t=e.currentTarget;e.deltaY>0?fW.DomAnimation.scroll_element(t,20,"horizental"):fW.DomAnimation.scroll_element(t,-20,"horizental")}function g(){u.latex=""}function b(){const e=u.latex;OP[r.UF.preset].push(e),FW.QI.saved=!1}return(0,l.nT)(()=>{if(FW.wF.show){const e=c.value;u.latex=FW.wF.latex,u.size=FW.wF.scale,e&&e.focus()}}),(e,t)=>(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",{class:"float-fomula",style:(0,m.Tr)((0,i.R1)(FW.wF).css),ref_key:"box",ref:s},[(0,l.Lk)("div",WP,[(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.success]),title:"确认",onClick:p},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.cube]),title:"添加预设",onClick:b},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-twoblocks",u.block?"active":""]),title:"作为独立块显示",onClick:t[0]||(t[0]=()=>u.block=!u.block)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-eraser"]),title:"清空",onClick:g}),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.close]),title:"关闭",onClick:t[1]||(t[1]=()=>(0,i.R1)(FW.wF).show=!1)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h1?"active":"","icon-formatheader1"]),title:"超大",onClick:t[2]||(t[2]=()=>f((0,i.R1)(o._FomulaSize).h1))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h2?"active":"","icon-formatheader2"]),title:"很大",onClick:t[3]||(t[3]=()=>f((0,i.R1)(o._FomulaSize).h2))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h3?"active":"","icon-formatheader3"]),title:"大",onClick:t[4]||(t[4]=()=>f((0,i.R1)(o._FomulaSize).h3))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h4?"active":"","icon-formatheader4"]),title:"中",onClick:t[5]||(t[5]=()=>f((0,i.R1)(o._FomulaSize).h4))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h5?"active":"","icon-format-header-"]),title:"小",onClick:t[6]||(t[6]=()=>f((0,i.R1)(o._FomulaSize).h5))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h6?"active":"","icon-formatheader6"]),title:"很小",onClick:t[7]||(t[7]=()=>f((0,i.R1)(o._FomulaSize).h6))},null,2)]),(0,l.Lk)("div",BP,[(0,l.Lk)("div",$P,[(0,l.bo)((0,l.Lk)("textarea",{spellcheck:"false",class:"fomula-latex-input",ref_key:"textarea",ref:c,"onUpdate:modelValue":t[8]||(t[8]=e=>u.latex=e),onKeydown:h,placeholder:"latex 输入区 . . .\n快速提交Ctrl + Enter\n快速关闭ESC"},null,544),[[a.Jo,u.latex]]),(0,l.Lk)("div",{class:"fomula-mathml-input",innerHTML:d.value},null,8,PP)]),(0,l.Lk)("div",FP,[(0,l.Lk)("div",zP,[(0,l.Lk)("div",{class:"fomula-nav-type",onWheel:v},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(Object.keys((0,i.R1)(OP)),e=>((0,l.uX)(),(0,l.CE)("span",{key:e,onClick:()=>u.tab=e,class:(0,m.C4)({active:u.tab===e})},(0,m.v_)((0,i.R1)(AP)[e]),11,DP))),128))],32)]),(0,l.Lk)("div",VP,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(OP),(e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,{key:t},[u.tab===t?((0,l.uX)(),(0,l.CE)("div",KP,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e,t)=>((0,l.uX)(),(0,l.CE)("span",{key:t,onClick:()=>function(e){const t=c.value;if(!t)return;const n=t.value,o=n.slice(0,t.selectionStart),r=n.slice(t.selectionEnd);u.latex=o+e+r}(e),innerHTML:(0,i.R1)(o.CubeFomula).render(e)},null,8,jP))),128))])):(0,l.Q3)("v-if",!0)],64))),128))])])])],4)),[[a.aG,(0,i.R1)(FW.wF).show]])}}),HP=(0,pW.A)(XP,[["__scopeId","data-v-613f025b"]]),GP=(0,l.pM)({__name:"float-link-ask",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,r=(0,l.EW)(()=>({top:FW.yg.top,left:FW.yg.left}));function a(){FW.yg.show=!1}function s(){const{cursor:e}=t,{cube:r,offset_end:i,offset_start:a}=FW.yg;if(!r)return;if(!FW.yg.url)return n.tip_warning("链接不能为空");FW.yg.show=!1;const s=t.courier.get_recorder();i!==a&&s.tell(r,o.CommandCube.partition(r.id,r.id,r.id,a,i));const l={url:FW.yg.url,title:FW.yg.title},c=o.CubeTextLink.get_default(l.url,l.title);let u=null;const d=r.next_cube;i===a||0===a?u=r:a>0&&d&&(u=d),u&&(s.tell(u,o.CommandCube.postil_add(u.id,[c])),n.tip_success("已添加超链接")),t.history.record(s)}return(e,t)=>(0,i.R1)(FW.yg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(r.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:a})]),(0,l.bF)(TW,{tabindex:"1",modelValue:(0,i.R1)(FW.yg).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(FW.yg).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(TW,{tabindex:"2",modelValue:(0,i.R1)(FW.yg).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(FW.yg).url=e),name:"超链接",onSubmit:s},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:s},"确认")],4)):(0,l.Q3)("v-if",!0)}}),qP=(0,pW.A)(GP,[["__scopeId","data-v-7353d96b"]]),UP=(0,l.pM)({__name:"float-link-edit",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,l.EW)(()=>({top:FW.$q.top,left:FW.$q.left}));function r(){FW.$q.show=!1}function a(){const{cursor:e,courier:n,history:r}=t,{cube:i}=FW.$q;if(!i)return;FW.$q.show=!1;const a=n.get_recorder();a.tell(i,o.CommandTextLink.update(i.id,FW.$q.title,FW.$q.url)),r.record(a)}return(e,t)=>(0,i.R1)(FW.$q).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(n.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:r})]),(0,l.bF)(TW,{modelValue:(0,i.R1)(FW.$q).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(FW.$q).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(TW,{modelValue:(0,i.R1)(FW.$q).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(FW.$q).url=e),name:"超链接",onSubmit:a},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:a},"确认")],4)):(0,l.Q3)("v-if",!0)}}),QP=(0,pW.A)(UP,[["__scopeId","data-v-3e87c757"]]),YP={class:"float-table-grid"},ZP=["onMouseover"],JP={class:"float-table-footer"},eF=(0,l.pM)({__name:"float-table",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,i.Kh)({row:0,col:0});function r(e,t){return{active:e<=n.row&&t<=n.col}}function a(e){const{cursor:r,courier:i,history:a}=t,s=o.CubeTable.get_default(n.row,n.col);o.NoteTools.insert_cubes(t,[s]),FW.ud.show=!1}return(e,t)=>(0,i.R1)(FW.ud).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-table",style:(0,m.Tr)((0,i.R1)(FW.ud).css)},[(0,l.Lk)("div",YP,[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,e=>((0,l.uX)(),(0,l.CE)(l.FK,{key:e},[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,t=>(0,l.Lk)("div",{key:t,class:(0,m.C4)(r(e,t)),onMouseover:o=>function(e,t,o){n.row=t,n.col=o}(0,e,t),onPointerdown:a},null,42,ZP)),64))],64))),64))]),(0,l.Lk)("div",JP,[(0,l.Lk)("div",null,(0,m.v_)(n.row),1),t[0]||(t[0]=(0,l.eW)(" × ",-1)),(0,l.Lk)("div",null,(0,m.v_)(n.col),1)])],4)):(0,l.Q3)("v-if",!0)}}),tF=(0,l.pM)({__name:"float-rt",props:{editor:{}},setup(e){const t=(0,i.Kh)({exp:""});function n(){const{root:n,tips:i}=e.editor,{cursor:a,courier:s,history:l}=n,c=FW.Sg.scope;if(!c)return;const{cube_selection:u,cube_start:d,offset_start:p,offset_end:h,cube_end:f,selection_text:m}=c,v=s.get_recorder(),g=FW.Sg.cube;if(g){const e=o.CommandRt.reset(g.id,t.exp);v.tell(g,e)}else if(m){const e=d.id,n=f.id,r=o.CommandCube.delete(u.id,"backward",e,n,p,h,!0);v.tell(u,r);const i=o.CubeRt.get_default();i.info.text=m,i.info.explanation=t.exp,v.tell(d,o.CommandCube.insert(e,[i],e,n,p,p))}l.record(v),r()}function r(){FW.Sg.cube=void 0,FW.Sg.show=!1}return(e,o)=>(0,i.R1)(FW.Sg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-rt",style:(0,m.Tr)((0,i.R1)(FW.Sg).css)},[o[1]||(o[1]=(0,l.Lk)("div",{class:"iconfont icon-biaozhu"},null,-1)),(0,l.bo)((0,l.Lk)("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>t.exp=e),onChange:n},null,544),[[a.Jo,t.exp]]),(0,l.Lk)("div",{class:"submit",onClick:n},"标注"),(0,l.Lk)("div",{class:"close-corner",onClick:r})],4)):(0,l.Q3)("v-if",!0)}}),nF=(0,pW.A)(tF,[["__scopeId","data-v-7afa5d19"]]),oF={class:"note-tips"},rF={class:"msgs"},iF=["onClick"],aF=(0,l.pM)({__name:"ui-tips",props:{editor:{}},setup(e){const{tips:t}=e.editor;return(e,n)=>((0,l.uX)(),(0,l.CE)("div",oF,[(0,l.Lk)("div",rF,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t).msgs,e=>((0,l.uX)(),(0,l.CE)("div",{key:e.id,class:(0,m.C4)(["msg-item iconfont",e.icon]),style:(0,m.Tr)(e.css),onClick:t=>e.click&&e.click(t)},(0,m.v_)(e.msg),15,iF))),128))])]))}}),sF=(0,pW.A)(aF,[["__scopeId","data-v-5b66db9c"]]),lF=(0,l.pM)({__name:"float-node-layout",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,{courier:r,history:a}=t;function s(e){const{node:t}=FW.p;if(!t)return n.tip_error("未发现目标节点");const i=r.get_recorder(),s=o.CommandNode.layout_change(t.id,{layout:e});i.tell(t,s),a.record(i),FW.p.show=!1}return(e,t)=>(0,i.R1)(FW.p).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-node-layout",style:(0,m.Tr)((0,i.R1)(FW.p).css)},[(0,l.Lk)("div",{class:"iconfont icon-clear",onClick:t[0]||(t[0]=e=>s(null))}),(0,l.Lk)("div",{class:"iconfont icon-right",onClick:t[1]||(t[1]=e=>s("right"))}),(0,l.Lk)("div",{class:"iconfont icon-left",onClick:t[2]||(t[2]=e=>s("left"))}),(0,l.Lk)("div",{class:"iconfont icon-up",onClick:t[3]||(t[3]=e=>s("up"))}),(0,l.Lk)("div",{class:"iconfont icon-down",onClick:t[4]||(t[4]=e=>s("down"))}),(0,l.Lk)("div",{class:"iconfont icon-time-right",onClick:t[5]||(t[5]=e=>s("time-right"))}),(0,l.Lk)("div",{class:"iconfont icon-time-down",onClick:t[6]||(t[6]=e=>s("time-down"))})],4)):(0,l.Q3)("v-if",!0)}}),cF=(0,pW.A)(lF,[["__scopeId","data-v-3b673ff8"]]),uF={class:"deepsky-note"},dF={class:"deepsky-editor-box"},pF=(0,l.pM)({__name:"ui-editor",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fW.DomAnimation.scroll_element(t,o,"horizental"):fW.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",uF,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hW,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",dF,[(0,l.bF)(S$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(P$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)],32)]),(0,l.bF)(I$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(sF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(kP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(LP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(IP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(HP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(qP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(QP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(eF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(nF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(V$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(nP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cP,{editor:e.editor},null,8,["editor"])]))}}),hF=(0,pW.A)(pF,[["__scopeId","data-v-31c12108"]]),fF={class:"doc-title-box"},mF={class:"doc-title"},vF={class:"doc-date"},gF=(0,l.pM)({__name:"ui-export-title",props:{editor:{}},setup(e){let t;const n=zW.z.api_get_noteinfo;return n&&(t=n()),(e,n)=>((0,l.uX)(),(0,l.CE)("div",fF,[(0,l.Lk)("div",mF,(0,m.v_)((0,i.R1)(t)?.name),1),(0,l.Lk)("div",vF,(0,m.v_)((0,i.R1)(fW.DateTime).get_date_string(new Date)),1)]))}}),bF=(0,pW.A)(gF,[["__scopeId","data-v-5388594b"]]),_F={class:"box-catalogue"},yF={class:"box-groups"},xF={class:"group-title-box"},wF=["href"],kF=["data-id"],RF=["href"],CF=(0,l.pM)({__name:"ui-exporrt-catalogue",props:{editor:{}},setup(e){const t=e.editor.catalogue.group;return(e,n)=>((0,l.uX)(),(0,l.CE)("div",_F,[n[1]||(n[1]=(0,l.Lk)("div",{class:"catalogue-title"},"catalogue",-1)),(0,l.Lk)("div",yF,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t),e=>((0,l.uX)(),(0,l.CE)("div",{key:e.uid,class:"group"},[(0,l.Lk)("div",xF,[(0,l.Lk)("a",{class:"group-title",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,wF),n[0]||(n[0]=(0,l.Lk)("div",{class:"group-tool iconfont icon-10Colors"},null,-1))]),(0,l.Lk)("div",{ref_for:!0,ref:"links","data-id":e.uid},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.items,e=>((0,l.uX)(),(0,l.CE)("a",{key:e.uid,class:"group-item",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,RF))),128))],8,kF)]))),128))])]))}}),SF=(0,pW.A)(CF,[["__scopeId","data-v-bb8cab2c"]]),EF={class:"deepsky-note"},MF={class:"deepsky-editor-box"},LF=(0,l.pM)({__name:"ui-export-pdf",props:{editor:{}},setup(e){const t=(0,i.KR)();return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",EF,[(0,l.bF)(bF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(SF,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",MF,[(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)])]))}}),TF=(0,pW.A)(LF,[["__scopeId","data-v-5bcba3ac"]]);var IF=n(356),OF=n(5672),AF=n(6808),NF=n(5324),WF=n(676),BF=n(1691),$F=n(2217),PF=n(6641),FF=n(1525),zF=n(1711),DF=n(5127),VF=n(5222),KF=n(5171),jF=n(5711),XF=n(8461),HF=n(1529),GF=n(4597),qF=n(9754),UF=n(2185),QF=n(6512);const YF=new o.Waiter,ZF={class:"deepsky-note"},JF={class:"deepsky-editor-box"},ez=(0,l.pM)({__name:"ui-editor-map",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fW.DomAnimation.scroll_element(t,o,"horizental"):fW.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(async()=>{const n=t.value;n&&(await e.editor.root.render(n),YF.resolve(),console.log("渲染完成"))}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",ZF,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hW,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",JF,[(0,l.bF)(S$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(P$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note",ref_key:"note",ref:t},null,512),(0,l.Q3)(' <MapStatus :editor="editor"></MapStatus> ')],32)]),(0,l.bF)(I$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(sF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(kP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(LP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(IP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(HP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(qP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(QP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(eF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(V$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(nP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cP,{editor:e.editor},null,8,["editor"])]))}}),tz=(0,pW.A)(ez,[["__scopeId","data-v-0be5dfc2"]]);class nz{_root;_menubar;_sidebar;_toolbar;_statusbar;_presets;_hotkeys;_config;_dict;_fomula;_ai;_catalogue;_theme;_search;_convertors;_float;_event;_tips;_listener;_memory;_uidata;_editor_dom;get uidata(){return this._uidata}get tips(){return this._tips}get memory(){return this._memory}get listener(){return this._listener}get root(){return this._root}get float(){return this._float}get event(){return this._event}get convertors(){return this._convertors}get search(){return this._search}get ai(){return this._ai}get catalogue(){return this._catalogue}get theme(){return this._theme}get config(){return this._config}get dict(){return this._dict}get fomula(){return this._fomula}get hotkeys(){return this._hotkeys}get presets(){return this._presets}get menubar(){return this._menubar}get sidebar(){return this._sidebar}get toolbar(){return this._toolbar}get statusbar(){return this._statusbar}get editor_dom(){return this._editor_dom}constructor(e,t=GF.U.uidata){this._root=e,this._uidata=this.update_data(structuredClone((0,i.ux)(t))),this._tips=new qF.L(this),this._config=new WF.X(this),this._event=new HF.D(this),this._memory=new QF.U(this),this._statusbar=new zF.m(this),this._presets=new AF.n(this),this._hotkeys=new NF.w(this),this._dict=new BF.J(this),this._fomula=new DF.t(this),this._ai=new $F.b(this),this._theme=new VF._(this),this._catalogue=new PF.a(this),this._search=new KF.F(this),this._convertors=new jF.i(this),this._float=new XF.z(this),this._sidebar=new OF.H(this),this._toolbar=new FF.q(this),this._menubar=new IF.Z(this),this._listener=new UF.d(this),o.NoteManager.init(),window.editor=this}init(e){o.NoteApi.register_asset_url(e.api_asset_url),o.NoteApi.register_tip(this.tips)}export(){return{versions:GF.U.versions,config:this.config.export(),catalogue:this.catalogue.export(),dict:this.dict.export(),fomula:this.fomula.export(),hotkeys:this.hotkeys.export(),presets:this.presets.export(),theme:this.theme.export(),memory:this.memory.export()}}update_data(e){return e.versions.editor||(e.catalogue=e.sidebar?.catalogue,e.theme=e.sidebar?.theme),e}async render(e){if(this._editor_dom=e,this.root instanceof o.CubeDoc){const t=(0,a.Ef)(hF,{editor:this});t.use(lW),t.mount(e)}else{const t=(0,a.Ef)(tz,{editor:this});t.use(lW),t.mount(e),await YF.ps}Promise.resolve().then(()=>{this.event.emit_render_end()})}render_pdf(e){const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,a.Ef)(TF,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return nz.get_editor_version()}static get_editor_version(){return{version:"1.99.2",time_publish:1761302601202}}static get meta(){return{type:r.d2.editor,version:1}}}},8162:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return o.bind(this)(i)}}}()},8461:(e,t,n)=>{"use strict";n.d(t,{z:()=>u});var o=n(8571),r=n(3321),i=n(993),a=n(785),s=n(7444),l=n(4089),c=n(7633);class u extends r.e{get meta(){return u.meta}constructor(e){super(e)}get has_float(){return i.yg.show||i.$q.show||i.p.show||i.wF.show||i.bK.show||i.ks.show||i.ud.show}update_float_pos(e,t){if(!e.show)return;if(e.type===o.I7.cubelist&&i.bK.dom?.contains(document.activeElement))return;const n=t.client_rect,r={x:0,y:0,width:window.innerWidth,height:window.innerHeight};Promise.resolve().then(()=>{const t=e.dom?.getBoundingClientRect()||e.size;let o;if(o=t&&t.width>0?t:e.size,n){const t=s.MathRect.move_rect_to_other(r,o,n);e.css={left:t.x+"px",top:t.y+"px"}}})}convert_latex_text(){const{cursor:e,courier:t,history:n}=this.root,{tips:o}=this.editor,{cube_selection:r,cube_start:i,cube_end:s,offset_start:l,offset_end:c}=e;if(!r||!i||!s)return;const u=e.get_selection_text(!1);if(!u)return o.tip_orange("选区为空已跳过");const d=t.get_recorder(),p=r.id,h=a.CubeFomula.get_default(u),f=i.id;d.tell(r,a.CommandCube.delete(p,"backward",i.id,s.id,l,c,!0)),d.tell(i,a.CommandCube.insert(f,[h],f,f,l,l)),n.record(d)}update_float_dict_candidate(e){const t=this.dict.get_candidate(e);i.ks.words=t,i.ks.page=1,i.ks.active=1,t.length>0?i.ks.show=!0:i.ks.show=!1}add_text_link(e){const{tips:t}=this.editor;if(e){const t=e,n=t.dom;if(!n)return;const o=n.getBoundingClientRect();i.yg.offset_end=e.len,i.yg.offset_start=e.len,i.yg.title="",i.yg.url="",i.yg.cube=t,i.yg.show=!0,i.yg.left=o.left+"px",i.yg.top=o.bottom+5+"px"}else{const{cube_end:e,cube_start:n,offset_end:o,offset_start:r}=this.root.cursor;if(!e)return t.tip_warning("未发现光标所在的文本块");if(e!==n)return t.tip_warning("只能在一个文本块上创建超链接");if(!(e instanceof a.CubeText))return t.tip_warning("光标不在文本块中");const s=e,l=s.dom;if(!l)return;const c=l.getBoundingClientRect();i.yg.offset_end=o,i.yg.offset_start=r,i.yg.title="",i.yg.url="",i.yg.cube=s,i.yg.show=!0,i.yg.left=c.left+"px",i.yg.top=c.bottom+5+"px"}}edit_text_link(e){const t=e.dom;if(!t)return;const n=t.getBoundingClientRect();i.$q.show=!0,i.$q.cube=e,i.$q.left=n.left+"px",i.$q.top=n.bottom+5+"px",i.$q.url=e.url,i.$q.title=e.title}show_rt(){const{tips:e,root:t}=this.editor,{cursor:n}=t;if(!n.has_selection)return e.tip_warning("需要文本选区");const{cube_end:o,cube_selection:r,cube_start:a,offset_start:s,offset_end:c}=n;if(!o||!a||!r)return e.tip_error("光标未聚焦到文本块");i.Sg.cube=void 0,i.Sg.show=!0,i.Sg.scope={cube_selection:r,cube_end:o,cube_start:a,offset_end:c,offset_start:s,selection_text:n.get_selection_text(!1)},(0,l.dY)(()=>{this.update_float_pos(i.Sg,n)})}edit_rt(e){const{cursor:t}=this.root;i.Sg.show=!0,i.Sg.cube=e,(0,l.dY)(()=>{this.update_float_pos(i.Sg,t)})}close_rt(){i.Sg.show=!1}show_fomula(){const{cursor:e}=this.root,{tips:t}=this.editor,{cube_end:n,offset_end:o}=e;if(!(n&&n instanceof a.CubeText))return t.tip_error("光标未聚焦到文本块");i.wF.anchor=(0,c.IG)(n),i.wF.show=!0,i.wF.pos=o,i.wF.cube=void 0,(0,l.dY)(()=>{this.update_float_pos(i.wF,e)})}edit_fomula(e){i.wF.anchor=void 0,i.wF.cube=(0,c.IG)(e),i.wF.show=!0,i.wF.latex=e.info,(0,l.dY)(()=>{this.update_float_pos(i.wF,this.root.cursor)})}close_fomula(){i.wF.show=!1}show_dict(){i.ks.show=!0,(0,l.dY)(()=>{this.update_float_pos(i.ks,this.root.cursor)})}close_dict(){i.ks.show=!1}show_table(){i.ud.show=!0,(0,l.dY)(()=>{const{cursor:e}=this.root,{cube_end:t,offset_end:n}=e;t&&this.update_float_pos(i.ud,e)})}close_table(){i.ud.show=!1}show_cubelist(){i.bK.show=!0,(0,l.dY)(()=>{this.update_float_pos(i.bK,this.root.cursor)})}show_node_layout(e,t){i.p.show=!0,i.p.node=t,i.p.css={left:e.x+"px",top:e.y+"px"}}close_float_node_layout(){i.p.show=!1}close_cubelist(){i.bK.show=!1}export(){return{}}update_data(e){return e}static get meta(){return{type:o.d2.float,version:1}}}},8571:(e,t,n)=>{"use strict";n.d(t,{oE:()=>s,I7:()=>u,UF:()=>a,zX:()=>r,lb:()=>c,U_:()=>l,GC:()=>d,l1:()=>i,d2:()=>o});var o=function(e){return e.ai="ai",e.api="api",e.catalogue="catalogue",e.convertors="convertors",e.dict="dict",e.dialog="dialog",e.event="event",e.editor="editor",e.fomula="fomula",e.float="float",e.listener="listener",e.sidebar="sidebar",e.menubar="menubar",e.memory="memory",e.toolbar="toolbar",e.statusbar="statusbar",e.presets="presets",e.hotkeys="hotkeys",e.config="config",e.search="search",e.theme="theme",e.tips="tips",e}({}),r=function(e){return e["fold-sidebar"]="fold-sidebar",e["fold-toolbar"]="fold-toolbar",e["import-md"]="import-md",e["mode-reading"]="mode-reading",e.record="record",e["dict-candidator"]="dict-candidator",e}({}),i=function(e){return e["bookmark-add"]="添加书签",e["fontsize-up"]="增加字号",e["fontsize-down"]="减小字号",e["search-doc"]="搜索",e["float-fomula"]="公式面板",e["float-cubelist"]="元素面板",e["text-add-link"]="添加超链接",e}({}),a=function(e){return e.preset="preset",e.symbol="symbol",e.bracket="bracket",e.relation="relation",e.sup="sup",e.arrow="arrow",e.operator="operator",e.matrix="matrix",e.expression="expression",e}({}),s=function(e){return e.keyword="keyword",e.associate="associate",e}({}),l=function(e){return e.std="标准模式",e.edit="编辑模式",e.delete="删除模式",e}({}),c=function(e){return e.align="align",e.annotation="annotation",e.border="border",e.bookmark="bookmark",e.bold_italic="bold_italic",e.color="color",e.compose="compose",e.emphasis="emphasis",e.fomula="fomula",e.font="font",e.format_brush="format_brush",e.history="history",e.indent="indent",e.node_layout="node_layout",e.node_style="node_style",e.paste="paste",e.speak="speak",e.scope="scope",e.spacing="spacing",e.underline="underline",e.write_mode="write_mode",e.rt="rt",e}({}),u=function(e){return e.cubelist="cubelist",e.fomula="fomula",e.dict="dict",e.line_edit="line_edit",e.link_ask="link_ask",e.add_dict="add_dict",e.table="table",e.node_layout="node_layout",e.rt="rt",e}({}),d=function(e){return e["status-update"]="status-update",e["export-show"]="export-show",e["render-end"]="render-end",e}({})},8736:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},9166:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,o=a.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[o,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[r,l("week")],ww:[o,l("week")],M:[r,l("month")],MM:[o,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(n){var o,r;o=n,r=a&&a.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=p[c],d=u&&u[0],h=u&&u[1];i[l]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<s;n+=1){var r=i[n];if("string"==typeof r)o+=r.length;else{var a=r.regex,l=r.parser,c=e.slice(o),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,i=e.args;this.$u=o;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,a=r.month,s=r.day,l=r.hours,c=r.minutes,u=r.seconds,d=r.milliseconds,p=r.zone,f=r.week,m=new Date,v=s||(i||a?1:m.getDate()),g=i||m.getFullYear(),b=0;i&&!a||(b=a>0?a-1:m.getMonth());var _,y=l||0,x=c||0,w=u||0,k=d||0;return p?new Date(Date.UTC(g,b,v,y,x,w,k+60*p.offset*1e3)):n?new Date(Date.UTC(g,b,v,y,x,w,k)):(_=new Date(g,b,v,y,x,w,k),f&&(_=o(_).week(f).toDate()),_)}catch(e){return new Date("")}}(t,s,o,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===p&&(this.$d=new Date(""))}else r.call(this,e)}}}()},9282:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var o=n(8571),r=n(3321);class i extends r.e{get meta(){return i.meta}constructor(e){super(e)}export(){}update_data(e){return e}static get meta(){return{type:o.d2.dialog,version:1}}}},9311:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var o=n(7633),r=n(8571);const i=(0,o.Kh)({cube:null,group:null,type:"bookmark",tagname:"",group_bg:"transparent",tip:"",mode:r.U_.std})},9394:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,y:()=>o});const o=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}],r=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}]},9678:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});const o=(0,n(7633).Kh)({open:!1,active:void 0})},9754:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var o=n(7633),r=n(8571),i=n(3321),a=n(6905);const s=n.p+"audio/info1.mp3",l=n.p+"audio/info2.mp3",c=n.p+"audio/info3.mp3",u=n.p+"audio/warn.mp3";class d extends i.e{msgs=(0,o.Kh)(new Set);get meta(){return d.meta}constructor(e){super(e)}export(){}update_data(e){return e}add_tip(e){return this.msgs.add(e)}remove_tip(e){return this.msgs.delete(e)}tip(e){const t={msg:e.msg,id:e.id||Date.now()+this.msgs.size+"",duration:e.duration,icon:e.icon||a.$.icons.aloud,click:e.click,css:e.css||{background:"var(--statusbar-tip-default-bg)",color:"black"}};return this.add_tip(t),t.duration!==Number.POSITIVE_INFINITY&&setTimeout(()=>{this.remove_tip(t)},t.duration),()=>this.remove_tip(t)}tip_error(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.close,css:{background:"var(--statusbar-tip-error-bg)",color:"snow"},click:n})}tip_warning(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.warn,css:{background:"var(--statusbar-tip-warning-bg)",color:"black"},click:n})}tip_success(e,t=9e3,n){try{new Audio(l).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.success,css:{background:"var(--statusbar-tip-success-bg)",color:"black"},click:n})}tip_info(e,t=9e3,n){try{new Audio(s).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.info,click:n})}tip_bug(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.bug,css:{background:"var(--statusbar-tip-bug-bg)",color:"snow"},click:n})}tip_aloud(e,t=9e3,n){try{new Audio(c).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.aloud,css:{background:"var(--statusbar-tip-aloud-bg)",color:"black"},click:n})}tip_red(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.cherry,css:{background:"var(--statusbar-tip-red-bg)",color:"snow"},click:o})}tip_orange(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.orange,css:{background:"var(--statusbar-tip-orange-bg)",color:"black"},click:o})}tip_yellow(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.banana,css:{background:"var(--statusbar-tip-yellow-bg)",color:"black"},click:o})}tip_green(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.melon,css:{background:"var(--statusbar-tip-green-bg)",color:"black"},click:o})}tip_blue(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.berry,css:{background:"var(--statusbar-tip-blue-bg)",color:"black"},click:o})}tip_indigo(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.eggplant,css:{background:"var(--statusbar-tip-indigo-bg)",color:"snow"},click:o})}tip_violet(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.grape,css:{background:"var(--statusbar-tip-violet-bg)",color:"snow"},click:o})}static get meta(){return{type:r.d2.tips,version:1}}}},9826:(e,t,n)=>{"use strict";n.d(t,{L:()=>o.L});var o=n(9754)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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 e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var o={};return(()=>{"use strict";n.r(o),n.d(o,{StatusCatalogue:()=>T.c1,StatusDialog:()=>T.jm,StatusEditor:()=>T.QI,StatusHotkeys:()=>T.I_,StatusPresets:()=>T.bl,StatusSidebar:()=>T.pw,StatusStatusbar:()=>T.A0,StatusToolbar:()=>T.SH,ToolBase:()=>M.Y,UIAi:()=>s.b,UIApi:()=>l.z,UIBase:()=>a.e,UICatalogue:()=>c.a,UIConfig:()=>u.X,UIConvertors:()=>d.i,UIDefault:()=>i.U,UIDialog:()=>p.b,UIDict:()=>h.J,UIEditor:()=>R.O,UIEvent:()=>f.D,UIFloat:()=>m.z,UIFomula:()=>v.t,UIHotkeys:()=>g.w,UIIcons:()=>b.$,UIListener:()=>I.d,UIMenubar:()=>C.Z,UIMod:()=>k.J,UIPresets:()=>_.n,UISearch:()=>y.F,UISidebar:()=>S.H,UIStatusbar:()=>E.m,UITheme:()=>x._,UITips:()=>w.L,UIToolbar:()=>M.q,UITools:()=>L.E,_DictWordType:()=>r.oE,_FloatType:()=>r.I7,_FomulaType:()=>r.UF,_MenubarItemType:()=>r.zX,_ToolName:()=>r.lb,_UICatalogueMode:()=>r.U_,_UIEventType:()=>r.GC,_UIHotkeyTypes:()=>r.l1,_UIPart:()=>r.d2,float_cubelist:()=>T.bK,float_dict:()=>T.ks,float_dict_adder:()=>T.$3,float_fomula:()=>T.wF,float_link_ask:()=>T.yg,float_link_edit:()=>T.$q,float_node_layout:()=>T.p,float_rt:()=>T.Sg,float_table:()=>T.ud});var e=n(785),t={};for(const n in e)"default"!==n&&(t[n]=()=>e[n]);n.d(o,t);var r=n(8571),i=n(4597),a=n(3461),s=n(2217),l=n(2714),c=n(6641),u=n(676),d=n(5711),p=n(9282),h=n(1691),f=n(1529),m=n(8461),v=n(5127),g=n(5324),b=n(598),_=n(6808),y=n(5171),x=n(5222),w=n(9826),k=n(7922),R=n(8010),C=n(356),S=n(5672),E=n(1711),M=n(1525),L=n(1625),T=n(993),I=n(2185)})(),o})());
|
|
64
|
+
\right]`]}),AP={[r.UF.preset]:"预设",[r.UF.symbol]:"符号",[r.UF.bracket]:"括号",[r.UF.relation]:"关系",[r.UF.sup]:"上下标",[r.UF.arrow]:"箭头",[r.UF.operator]:"运算符",[r.UF.matrix]:"矩阵",[r.UF.expression]:"函数式"};var NP=n(6905);const WP={class:"fomula-toolbar"},BP={class:"fomula-editor"},$P={class:"fomula-input-area"},PP=["innerHTML"],FP={class:"fomula-candidate"},zP={class:"fomula-candidate-nav"},DP=["onClick"],VP={class:"fomula-candidate-values"},KP={key:0,class:"fomula-type"},jP=["onClick","innerHTML"],XP=(0,l.pM)({__name:"float-fomula",props:{editor:{}},setup(e){const{tips:t}=e.editor,n=NP.$,s=(0,i.KR)(),c=(0,i.KR)(),u=(0,i.Kh)({tab:r.UF.preset,block:!1,latex:"",size:o._FomulaSize.h4});(0,l.sV)(()=>{FW.wF.dom=s.value});const d=(0,l.EW)(()=>o.CubeFomula.render(u.size+u.latex,{displayMode:u.block}));function p(){if(!u.latex.trim())return t.tip_warning("输入公式为空,已放弃");const{anchor:e,cube:n}=FW.wF;if(e){const{courier:t,history:n,pcube:r,index:i,pid:a,id:s}=e,l=FW.wF.pos,c=t.get_recorder();l>0&&l<e.len&&c.tell(e,o.CommandCube.partition(s,s,s,l,l));const d=o.CubeFomula.get_default(u.latex,{},{block:u.block,size:u.size});c.tell(r,o.CommandCube.insert_child(a,[d],i+1)),n.record(c)}else if(n){const{courier:e,history:t,pcube:r,index:i,pid:a,id:s}=n,l=e.get_recorder();l.tell(n,o.CommandFomula.update(s,u.latex,u.size,u.block)),t.record(l)}FW.wF.show=!1}function h(e){e.stopPropagation(),e.ctrlKey&&"Enter"===e.key&&p()}function f(e){c.value&&(u.size=e)}function v(e){e.stopPropagation(),e.preventDefault();const t=e.currentTarget;e.deltaY>0?fW.DomAnimation.scroll_element(t,20,"horizental"):fW.DomAnimation.scroll_element(t,-20,"horizental")}function g(){u.latex=""}function b(){const e=u.latex;OP[r.UF.preset].push(e),FW.QI.saved=!1}return(0,l.nT)(()=>{if(FW.wF.show){const e=c.value;u.latex=FW.wF.latex,u.size=FW.wF.scale,e&&e.focus()}}),(e,t)=>(0,l.bo)(((0,l.uX)(),(0,l.CE)("div",{class:"float-fomula",style:(0,m.Tr)((0,i.R1)(FW.wF).css),ref_key:"box",ref:s},[(0,l.Lk)("div",WP,[(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.success]),title:"确认",onClick:p},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.cube]),title:"添加预设",onClick:b},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-twoblocks",u.block?"active":""]),title:"作为独立块显示",onClick:t[0]||(t[0]=()=>u.block=!u.block)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont","icon-eraser"]),title:"清空",onClick:g}),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",(0,i.R1)(n).icons.close]),title:"关闭",onClick:t[1]||(t[1]=()=>(0,i.R1)(FW.wF).show=!1)},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h1?"active":"","icon-formatheader1"]),title:"超大",onClick:t[2]||(t[2]=()=>f((0,i.R1)(o._FomulaSize).h1))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h2?"active":"","icon-formatheader2"]),title:"很大",onClick:t[3]||(t[3]=()=>f((0,i.R1)(o._FomulaSize).h2))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h3?"active":"","icon-formatheader3"]),title:"大",onClick:t[4]||(t[4]=()=>f((0,i.R1)(o._FomulaSize).h3))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h4?"active":"","icon-formatheader4"]),title:"中",onClick:t[5]||(t[5]=()=>f((0,i.R1)(o._FomulaSize).h4))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h5?"active":"","icon-format-header-"]),title:"小",onClick:t[6]||(t[6]=()=>f((0,i.R1)(o._FomulaSize).h5))},null,2),(0,l.Lk)("span",{class:(0,m.C4)(["iconfont",u.size===(0,i.R1)(o._FomulaSize).h6?"active":"","icon-formatheader6"]),title:"很小",onClick:t[7]||(t[7]=()=>f((0,i.R1)(o._FomulaSize).h6))},null,2)]),(0,l.Lk)("div",BP,[(0,l.Lk)("div",$P,[(0,l.bo)((0,l.Lk)("textarea",{spellcheck:"false",class:"fomula-latex-input",ref_key:"textarea",ref:c,"onUpdate:modelValue":t[8]||(t[8]=e=>u.latex=e),onKeydown:h,placeholder:"latex 输入区 . . .\n快速提交Ctrl + Enter\n快速关闭ESC"},null,544),[[a.Jo,u.latex]]),(0,l.Lk)("div",{class:"fomula-mathml-input",innerHTML:d.value},null,8,PP)]),(0,l.Lk)("div",FP,[(0,l.Lk)("div",zP,[(0,l.Lk)("div",{class:"fomula-nav-type",onWheel:v},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(Object.keys((0,i.R1)(OP)),e=>((0,l.uX)(),(0,l.CE)("span",{key:e,onClick:()=>u.tab=e,class:(0,m.C4)({active:u.tab===e})},(0,m.v_)((0,i.R1)(AP)[e]),11,DP))),128))],32)]),(0,l.Lk)("div",VP,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(OP),(e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,{key:t},[u.tab===t?((0,l.uX)(),(0,l.CE)("div",KP,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e,(e,t)=>((0,l.uX)(),(0,l.CE)("span",{key:t,onClick:()=>function(e){const t=c.value;if(!t)return;const n=t.value,o=n.slice(0,t.selectionStart),r=n.slice(t.selectionEnd);u.latex=o+e+r}(e),innerHTML:(0,i.R1)(o.CubeFomula).render(e)},null,8,jP))),128))])):(0,l.Q3)("v-if",!0)],64))),128))])])])],4)),[[a.aG,(0,i.R1)(FW.wF).show]])}}),HP=(0,pW.A)(XP,[["__scopeId","data-v-613f025b"]]),GP=(0,l.pM)({__name:"float-link-ask",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,r=(0,l.EW)(()=>({top:FW.yg.top,left:FW.yg.left}));function a(){FW.yg.show=!1}function s(){const{cursor:e}=t,{cube:r,offset_end:i,offset_start:a}=FW.yg;if(!r)return;if(!FW.yg.url)return n.tip_warning("链接不能为空");FW.yg.show=!1;const s=t.courier.get_recorder();i!==a&&s.tell(r,o.CommandCube.partition(r.id,r.id,r.id,a,i));const l={url:FW.yg.url,title:FW.yg.title},c=o.CubeTextLink.get_default(l.url,l.title);let u=null;const d=r.next_cube;i===a||0===a?u=r:a>0&&d&&(u=d),u&&(s.tell(u,o.CommandCube.postil_add(u.id,[c])),n.tip_success("已添加超链接")),t.history.record(s)}return(e,t)=>(0,i.R1)(FW.yg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(r.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:a})]),(0,l.bF)(TW,{tabindex:"1",modelValue:(0,i.R1)(FW.yg).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(FW.yg).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(TW,{tabindex:"2",modelValue:(0,i.R1)(FW.yg).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(FW.yg).url=e),name:"超链接",onSubmit:s},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:s},"确认")],4)):(0,l.Q3)("v-if",!0)}}),qP=(0,pW.A)(GP,[["__scopeId","data-v-7353d96b"]]),UP=(0,l.pM)({__name:"float-link-edit",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,l.EW)(()=>({top:FW.$q.top,left:FW.$q.left}));function r(){FW.$q.show=!1}function a(){const{cursor:e,courier:n,history:r}=t,{cube:i}=FW.$q;if(!i)return;FW.$q.show=!1;const a=n.get_recorder();a.tell(i,o.CommandTextLink.update(i.id,FW.$q.title,FW.$q.url)),r.record(a)}return(e,t)=>(0,i.R1)(FW.$q).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"text-link-ask",style:(0,m.Tr)(n.value)},[(0,l.Lk)("div",{class:"iconbox"},[(0,l.Q3)(' <div class="iconfont icon-icon_window_close_new-copy" @click="close"></div> '),(0,l.Lk)("div",{class:"close-corner",onClick:r})]),(0,l.bF)(TW,{modelValue:(0,i.R1)(FW.$q).title,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,i.R1)(FW.$q).title=e),name:"链接标题"},null,8,["modelValue"]),(0,l.bF)(TW,{modelValue:(0,i.R1)(FW.$q).url,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,i.R1)(FW.$q).url=e),name:"超链接",onSubmit:a},null,8,["modelValue"]),(0,l.Lk)("div",{class:"confirm",onClick:a},"确认")],4)):(0,l.Q3)("v-if",!0)}}),QP=(0,pW.A)(UP,[["__scopeId","data-v-3e87c757"]]),YP={class:"float-table-grid"},ZP=["onMouseover"],JP={class:"float-table-footer"},eF=(0,l.pM)({__name:"float-table",props:{editor:{}},setup(e){const{root:t}=e.editor,n=(0,i.Kh)({row:0,col:0});function r(e,t){return{active:e<=n.row&&t<=n.col}}function a(e){const{cursor:r,courier:i,history:a}=t,s=o.CubeTable.get_default(n.row,n.col);o.NoteTools.insert_cubes(t,[s]),FW.ud.show=!1}return(e,t)=>(0,i.R1)(FW.ud).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-table",style:(0,m.Tr)((0,i.R1)(FW.ud).css)},[(0,l.Lk)("div",YP,[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,e=>((0,l.uX)(),(0,l.CE)(l.FK,{key:e},[((0,l.uX)(),(0,l.CE)(l.FK,null,(0,l.pI)(9,t=>(0,l.Lk)("div",{key:t,class:(0,m.C4)(r(e,t)),onMouseover:o=>function(e,t,o){n.row=t,n.col=o}(0,e,t),onPointerdown:a},null,42,ZP)),64))],64))),64))]),(0,l.Lk)("div",JP,[(0,l.Lk)("div",null,(0,m.v_)(n.row),1),t[0]||(t[0]=(0,l.eW)(" × ",-1)),(0,l.Lk)("div",null,(0,m.v_)(n.col),1)])],4)):(0,l.Q3)("v-if",!0)}}),tF=(0,l.pM)({__name:"float-rt",props:{editor:{}},setup(e){const t=(0,i.Kh)({exp:""});function n(){const{root:n,tips:i}=e.editor,{cursor:a,courier:s,history:l}=n,c=FW.Sg.scope;if(!c)return;const{cube_selection:u,cube_start:d,offset_start:p,offset_end:h,cube_end:f,selection_text:m}=c,v=s.get_recorder(),g=FW.Sg.cube;if(g){const e=o.CommandRt.reset(g.id,t.exp);v.tell(g,e)}else if(m){const e=d.id,n=f.id,r=o.CommandCube.delete(u.id,"backward",e,n,p,h,!0);v.tell(u,r);const i=o.CubeRt.get_default();i.info.text=m,i.info.explanation=t.exp,v.tell(d,o.CommandCube.insert(e,[i],e,n,p,p))}l.record(v),r()}function r(){FW.Sg.cube=void 0,FW.Sg.show=!1}return(e,o)=>(0,i.R1)(FW.Sg).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-rt",style:(0,m.Tr)((0,i.R1)(FW.Sg).css)},[o[1]||(o[1]=(0,l.Lk)("div",{class:"iconfont icon-biaozhu"},null,-1)),(0,l.bo)((0,l.Lk)("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>t.exp=e),onChange:n},null,544),[[a.Jo,t.exp]]),(0,l.Lk)("div",{class:"submit",onClick:n},"标注"),(0,l.Lk)("div",{class:"close-corner",onClick:r})],4)):(0,l.Q3)("v-if",!0)}}),nF=(0,pW.A)(tF,[["__scopeId","data-v-7afa5d19"]]),oF={class:"note-tips"},rF={class:"msgs"},iF=["onClick"],aF=(0,l.pM)({__name:"ui-tips",props:{editor:{}},setup(e){const{tips:t}=e.editor;return(e,n)=>((0,l.uX)(),(0,l.CE)("div",oF,[(0,l.Lk)("div",rF,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t).msgs,e=>((0,l.uX)(),(0,l.CE)("div",{key:e.id,class:(0,m.C4)(["msg-item iconfont",e.icon]),style:(0,m.Tr)(e.css),onClick:t=>e.click&&e.click(t)},(0,m.v_)(e.msg),15,iF))),128))])]))}}),sF=(0,pW.A)(aF,[["__scopeId","data-v-5b66db9c"]]),lF=(0,l.pM)({__name:"float-node-layout",props:{editor:{}},setup(e){const{root:t,tips:n}=e.editor,{courier:r,history:a}=t;function s(e){const{node:t}=FW.p;if(!t)return n.tip_error("未发现目标节点");const i=r.get_recorder(),s=o.CommandNode.layout_change(t.id,{layout:e});i.tell(t,s),a.record(i),FW.p.show=!1}return(e,t)=>(0,i.R1)(FW.p).show?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"float-node-layout",style:(0,m.Tr)((0,i.R1)(FW.p).css)},[(0,l.Lk)("div",{class:"iconfont icon-clear",onClick:t[0]||(t[0]=e=>s(null))}),(0,l.Lk)("div",{class:"iconfont icon-right",onClick:t[1]||(t[1]=e=>s("right"))}),(0,l.Lk)("div",{class:"iconfont icon-left",onClick:t[2]||(t[2]=e=>s("left"))}),(0,l.Lk)("div",{class:"iconfont icon-up",onClick:t[3]||(t[3]=e=>s("up"))}),(0,l.Lk)("div",{class:"iconfont icon-down",onClick:t[4]||(t[4]=e=>s("down"))}),(0,l.Lk)("div",{class:"iconfont icon-time-right",onClick:t[5]||(t[5]=e=>s("time-right"))}),(0,l.Lk)("div",{class:"iconfont icon-time-down",onClick:t[6]||(t[6]=e=>s("time-down"))})],4)):(0,l.Q3)("v-if",!0)}}),cF=(0,pW.A)(lF,[["__scopeId","data-v-3b673ff8"]]),uF={class:"deepsky-note"},dF={class:"deepsky-editor-box"},pF=(0,l.pM)({__name:"ui-editor",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fW.DomAnimation.scroll_element(t,o,"horizental"):fW.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",uF,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hW,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",dF,[(0,l.bF)(S$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(P$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)],32)]),(0,l.bF)(I$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(sF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(kP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(LP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(IP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(HP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(qP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(QP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(eF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(nF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(V$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(nP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cP,{editor:e.editor},null,8,["editor"])]))}}),hF=(0,pW.A)(pF,[["__scopeId","data-v-31c12108"]]),fF={class:"doc-title-box"},mF={class:"doc-title"},vF={class:"doc-date"},gF=(0,l.pM)({__name:"ui-export-title",props:{editor:{}},setup(e){let t;const n=zW.z.api_get_noteinfo;return n&&(t=n()),(e,n)=>((0,l.uX)(),(0,l.CE)("div",fF,[(0,l.Lk)("div",mF,(0,m.v_)((0,i.R1)(t)?.name),1),(0,l.Lk)("div",vF,(0,m.v_)((0,i.R1)(fW.DateTime).get_date_string(new Date)),1)]))}}),bF=(0,pW.A)(gF,[["__scopeId","data-v-5388594b"]]),_F={class:"box-catalogue"},yF={class:"box-groups"},xF={class:"group-title-box"},wF=["href"],kF=["data-id"],RF=["href"],CF=(0,l.pM)({__name:"ui-exporrt-catalogue",props:{editor:{}},setup(e){const t=e.editor.catalogue.group;return(e,n)=>((0,l.uX)(),(0,l.CE)("div",_F,[n[1]||(n[1]=(0,l.Lk)("div",{class:"catalogue-title"},"catalogue",-1)),(0,l.Lk)("div",yF,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,i.R1)(t),e=>((0,l.uX)(),(0,l.CE)("div",{key:e.uid,class:"group"},[(0,l.Lk)("div",xF,[(0,l.Lk)("a",{class:"group-title",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,wF),n[0]||(n[0]=(0,l.Lk)("div",{class:"group-tool iconfont icon-10Colors"},null,-1))]),(0,l.Lk)("div",{ref_for:!0,ref:"links","data-id":e.uid},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.items,e=>((0,l.uX)(),(0,l.CE)("a",{key:e.uid,class:"group-item",href:`#${e.cubeid}`},(0,m.v_)(e.name),9,RF))),128))],8,kF)]))),128))])]))}}),SF=(0,pW.A)(CF,[["__scopeId","data-v-bb8cab2c"]]),EF={class:"deepsky-note"},MF={class:"deepsky-editor-box"},LF=(0,l.pM)({__name:"ui-export-pdf",props:{editor:{}},setup(e){const t=(0,i.KR)();return(0,l.sV)(()=>{const n=t.value;n&&e.editor.root.render(n)}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",EF,[(0,l.bF)(bF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(SF,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",MF,[(0,l.Lk)("div",{ref_key:"note",ref:t},null,512)])]))}}),TF=(0,pW.A)(LF,[["__scopeId","data-v-5bcba3ac"]]);var IF=n(356),OF=n(5672),AF=n(6808),NF=n(5324),WF=n(676),BF=n(1691),$F=n(2217),PF=n(6641),FF=n(1525),zF=n(1711),DF=n(5127),VF=n(5222),KF=n(5171),jF=n(5711),XF=n(8461),HF=n(1529),GF=n(4597),qF=n(9754),UF=n(2185),QF=n(6512);const YF=new o.Waiter,ZF={class:"deepsky-note"},JF={class:"deepsky-editor-box"},ez=(0,l.pM)({__name:"ui-editor-map",props:{editor:{}},setup(e){const t=(0,i.KR)(),{config:n}=e.editor;function o(e){e.preventDefault();const t=e.currentTarget,o=Math.sign(e.deltaY)*n.data.scroll_distance;e.shiftKey?fW.DomAnimation.scroll_element(t,o,"horizental"):fW.DomAnimation.scroll_element(t,o,"vertical")}return(0,l.sV)(async()=>{const n=t.value;n&&(await e.editor.root.render(n),YF.resolve(),console.log("渲染完成"))}),(e,n)=>((0,l.uX)(),(0,l.CE)("div",ZF,[(0,l.Lk)("div",{class:"deepsky-note-bg",style:(0,m.Tr)(e.editor.theme.background_css)},null,4),(0,l.bF)(hW,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",JF,[(0,l.bF)(S$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note-box",onWheel:o},[(0,l.bF)(P$,{editor:e.editor},null,8,["editor"]),(0,l.Lk)("div",{class:"note",ref_key:"note",ref:t},null,512),(0,l.Q3)(' <MapStatus :editor="editor"></MapStatus> ')],32)]),(0,l.bF)(I$,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 提示 "),(0,l.bF)(sF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 浮动面板 "),(0,l.bF)(kP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(LP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(IP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(HP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(qP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(QP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(eF,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cF,{editor:e.editor},null,8,["editor"]),(0,l.Q3)(" 弹窗 "),(0,l.bF)(V$,{editor:e.editor},null,8,["editor"]),(0,l.bF)(nP,{editor:e.editor},null,8,["editor"]),(0,l.bF)(cP,{editor:e.editor},null,8,["editor"])]))}}),tz=(0,pW.A)(ez,[["__scopeId","data-v-0be5dfc2"]]);class nz{_root;_menubar;_sidebar;_toolbar;_statusbar;_presets;_hotkeys;_config;_dict;_fomula;_ai;_catalogue;_theme;_search;_convertors;_float;_event;_tips;_listener;_memory;_uidata;_editor_dom;get uidata(){return this._uidata}get tips(){return this._tips}get memory(){return this._memory}get listener(){return this._listener}get root(){return this._root}get float(){return this._float}get event(){return this._event}get convertors(){return this._convertors}get search(){return this._search}get ai(){return this._ai}get catalogue(){return this._catalogue}get theme(){return this._theme}get config(){return this._config}get dict(){return this._dict}get fomula(){return this._fomula}get hotkeys(){return this._hotkeys}get presets(){return this._presets}get menubar(){return this._menubar}get sidebar(){return this._sidebar}get toolbar(){return this._toolbar}get statusbar(){return this._statusbar}get editor_dom(){return this._editor_dom}constructor(e,t=GF.U.uidata){this._root=e,this._uidata=this.update_data(structuredClone((0,i.ux)(t))),this._tips=new qF.L(this),this._config=new WF.X(this),this._event=new HF.D(this),this._memory=new QF.U(this),this._statusbar=new zF.m(this),this._presets=new AF.n(this),this._hotkeys=new NF.w(this),this._dict=new BF.J(this),this._fomula=new DF.t(this),this._ai=new $F.b(this),this._theme=new VF._(this),this._catalogue=new PF.a(this),this._search=new KF.F(this),this._convertors=new jF.i(this),this._float=new XF.z(this),this._sidebar=new OF.H(this),this._toolbar=new FF.q(this),this._menubar=new IF.Z(this),this._listener=new UF.d(this),o.NoteManager.init(),window.editor=this}init(e){o.NoteApi.register_asset_url(e.api_asset_url),o.NoteApi.register_tip(this.tips)}export(){return{versions:GF.U.versions,config:this.config.export(),catalogue:this.catalogue.export(),dict:this.dict.export(),fomula:this.fomula.export(),hotkeys:this.hotkeys.export(),presets:this.presets.export(),theme:this.theme.export(),memory:this.memory.export()}}update_data(e){return e.versions.editor||(e.catalogue=e.sidebar?.catalogue,e.theme=e.sidebar?.theme),e}async render(e){if(this._editor_dom=e,this.root instanceof o.CubeDoc){const t=(0,a.Ef)(hF,{editor:this});t.use(lW),t.mount(e)}else{const t=(0,a.Ef)(tz,{editor:this});t.use(lW),t.mount(e),await YF.ps}Promise.resolve().then(()=>{this.event.emit_render_end()})}render_pdf(e){const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,a.Ef)(TF,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return nz.get_editor_version()}static get_editor_version(){return{version:"1.99.3",time_publish:1761361994215}}static get meta(){return{type:r.d2.editor,version:1}}}},8162:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return o.bind(this)(i)}}}()},8461:(e,t,n)=>{"use strict";n.d(t,{z:()=>u});var o=n(8571),r=n(3321),i=n(993),a=n(785),s=n(7444),l=n(4089),c=n(7633);class u extends r.e{get meta(){return u.meta}constructor(e){super(e)}get has_float(){return i.yg.show||i.$q.show||i.p.show||i.wF.show||i.bK.show||i.ks.show||i.ud.show}update_float_pos(e,t){if(!e.show)return;if(e.type===o.I7.cubelist&&i.bK.dom?.contains(document.activeElement))return;const n=t.client_rect,r={x:0,y:0,width:window.innerWidth,height:window.innerHeight};Promise.resolve().then(()=>{const t=e.dom?.getBoundingClientRect()||e.size;let o;if(o=t&&t.width>0?t:e.size,n){const t=s.MathRect.move_rect_to_other(r,o,n);e.css={left:t.x+"px",top:t.y+"px"}}})}convert_latex_text(){const{cursor:e,courier:t,history:n}=this.root,{tips:o}=this.editor,{cube_selection:r,cube_start:i,cube_end:s,offset_start:l,offset_end:c}=e;if(!r||!i||!s)return;const u=e.get_selection_text(!1);if(!u)return o.tip_orange("选区为空已跳过");const d=t.get_recorder(),p=r.id,h=a.CubeFomula.get_default(u),f=i.id;d.tell(r,a.CommandCube.delete(p,"backward",i.id,s.id,l,c,!0)),d.tell(i,a.CommandCube.insert(f,[h],f,f,l,l)),n.record(d)}update_float_dict_candidate(e){const t=this.dict.get_candidate(e);i.ks.words=t,i.ks.page=1,i.ks.active=1,t.length>0?i.ks.show=!0:i.ks.show=!1}add_text_link(e){const{tips:t}=this.editor;if(e){const t=e,n=t.dom;if(!n)return;const o=n.getBoundingClientRect();i.yg.offset_end=e.len,i.yg.offset_start=e.len,i.yg.title="",i.yg.url="",i.yg.cube=t,i.yg.show=!0,i.yg.left=o.left+"px",i.yg.top=o.bottom+5+"px"}else{const{cube_end:e,cube_start:n,offset_end:o,offset_start:r}=this.root.cursor;if(!e)return t.tip_warning("未发现光标所在的文本块");if(e!==n)return t.tip_warning("只能在一个文本块上创建超链接");if(!(e instanceof a.CubeText))return t.tip_warning("光标不在文本块中");const s=e,l=s.dom;if(!l)return;const c=l.getBoundingClientRect();i.yg.offset_end=o,i.yg.offset_start=r,i.yg.title="",i.yg.url="",i.yg.cube=s,i.yg.show=!0,i.yg.left=c.left+"px",i.yg.top=c.bottom+5+"px"}}edit_text_link(e){const t=e.dom;if(!t)return;const n=t.getBoundingClientRect();i.$q.show=!0,i.$q.cube=e,i.$q.left=n.left+"px",i.$q.top=n.bottom+5+"px",i.$q.url=e.url,i.$q.title=e.title}show_rt(){const{tips:e,root:t}=this.editor,{cursor:n}=t;if(!n.has_selection)return e.tip_warning("需要文本选区");const{cube_end:o,cube_selection:r,cube_start:a,offset_start:s,offset_end:c}=n;if(!o||!a||!r)return e.tip_error("光标未聚焦到文本块");i.Sg.cube=void 0,i.Sg.show=!0,i.Sg.scope={cube_selection:r,cube_end:o,cube_start:a,offset_end:c,offset_start:s,selection_text:n.get_selection_text(!1)},(0,l.dY)(()=>{this.update_float_pos(i.Sg,n)})}edit_rt(e){const{cursor:t}=this.root;i.Sg.show=!0,i.Sg.cube=e,(0,l.dY)(()=>{this.update_float_pos(i.Sg,t)})}close_rt(){i.Sg.show=!1}show_fomula(){const{cursor:e}=this.root,{tips:t}=this.editor,{cube_end:n,offset_end:o}=e;if(!(n&&n instanceof a.CubeText))return t.tip_error("光标未聚焦到文本块");i.wF.anchor=(0,c.IG)(n),i.wF.show=!0,i.wF.pos=o,i.wF.cube=void 0,(0,l.dY)(()=>{this.update_float_pos(i.wF,e)})}edit_fomula(e){i.wF.anchor=void 0,i.wF.cube=(0,c.IG)(e),i.wF.show=!0,i.wF.latex=e.info,(0,l.dY)(()=>{this.update_float_pos(i.wF,this.root.cursor)})}close_fomula(){i.wF.show=!1}show_dict(){i.ks.show=!0,(0,l.dY)(()=>{this.update_float_pos(i.ks,this.root.cursor)})}close_dict(){i.ks.show=!1}show_table(){i.ud.show=!0,(0,l.dY)(()=>{const{cursor:e}=this.root,{cube_end:t,offset_end:n}=e;t&&this.update_float_pos(i.ud,e)})}close_table(){i.ud.show=!1}show_cubelist(){i.bK.show=!0,(0,l.dY)(()=>{this.update_float_pos(i.bK,this.root.cursor)})}show_node_layout(e,t){i.p.show=!0,i.p.node=t,i.p.css={left:e.x+"px",top:e.y+"px"}}close_float_node_layout(){i.p.show=!1}close_cubelist(){i.bK.show=!1}export(){return{}}update_data(e){return e}static get meta(){return{type:o.d2.float,version:1}}}},8571:(e,t,n)=>{"use strict";n.d(t,{oE:()=>s,I7:()=>u,UF:()=>a,zX:()=>r,lb:()=>c,U_:()=>l,GC:()=>d,l1:()=>i,d2:()=>o});var o=function(e){return e.ai="ai",e.api="api",e.catalogue="catalogue",e.convertors="convertors",e.dict="dict",e.dialog="dialog",e.event="event",e.editor="editor",e.fomula="fomula",e.float="float",e.listener="listener",e.sidebar="sidebar",e.menubar="menubar",e.memory="memory",e.toolbar="toolbar",e.statusbar="statusbar",e.presets="presets",e.hotkeys="hotkeys",e.config="config",e.search="search",e.theme="theme",e.tips="tips",e}({}),r=function(e){return e["fold-sidebar"]="fold-sidebar",e["fold-toolbar"]="fold-toolbar",e["import-md"]="import-md",e["mode-reading"]="mode-reading",e.record="record",e["dict-candidator"]="dict-candidator",e}({}),i=function(e){return e["bookmark-add"]="添加书签",e["fontsize-up"]="增加字号",e["fontsize-down"]="减小字号",e["search-doc"]="搜索",e["float-fomula"]="公式面板",e["float-cubelist"]="元素面板",e["text-add-link"]="添加超链接",e}({}),a=function(e){return e.preset="preset",e.symbol="symbol",e.bracket="bracket",e.relation="relation",e.sup="sup",e.arrow="arrow",e.operator="operator",e.matrix="matrix",e.expression="expression",e}({}),s=function(e){return e.keyword="keyword",e.associate="associate",e}({}),l=function(e){return e.std="标准模式",e.edit="编辑模式",e.delete="删除模式",e}({}),c=function(e){return e.align="align",e.annotation="annotation",e.border="border",e.bookmark="bookmark",e.bold_italic="bold_italic",e.color="color",e.compose="compose",e.emphasis="emphasis",e.fomula="fomula",e.font="font",e.format_brush="format_brush",e.history="history",e.indent="indent",e.node_layout="node_layout",e.node_style="node_style",e.paste="paste",e.speak="speak",e.scope="scope",e.spacing="spacing",e.underline="underline",e.write_mode="write_mode",e.rt="rt",e}({}),u=function(e){return e.cubelist="cubelist",e.fomula="fomula",e.dict="dict",e.line_edit="line_edit",e.link_ask="link_ask",e.add_dict="add_dict",e.table="table",e.node_layout="node_layout",e.rt="rt",e}({}),d=function(e){return e["status-update"]="status-update",e["export-show"]="export-show",e["render-end"]="render-end",e}({})},8736:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},9166:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,o=a.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[o,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[r,l("week")],ww:[o,l("week")],M:[r,l("month")],MM:[o,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function h(n){var o,r;o=n,r=a&&a.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=p[c],d=u&&u[0],h=u&&u[1];i[l]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<s;n+=1){var r=i[n];if("string"==typeof r)o+=r.length;else{var a=r.regex,l=r.parser,c=e.slice(o),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,i=e.args;this.$u=o;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,a=r.month,s=r.day,l=r.hours,c=r.minutes,u=r.seconds,d=r.milliseconds,p=r.zone,f=r.week,m=new Date,v=s||(i||a?1:m.getDate()),g=i||m.getFullYear(),b=0;i&&!a||(b=a>0?a-1:m.getMonth());var _,y=l||0,x=c||0,w=u||0,k=d||0;return p?new Date(Date.UTC(g,b,v,y,x,w,k+60*p.offset*1e3)):n?new Date(Date.UTC(g,b,v,y,x,w,k)):(_=new Date(g,b,v,y,x,w,k),f&&(_=o(_).week(f).toDate()),_)}catch(e){return new Date("")}}(t,s,o,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===p&&(this.$d=new Date(""))}else r.call(this,e)}}}()},9282:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var o=n(8571),r=n(3321);class i extends r.e{get meta(){return i.meta}constructor(e){super(e)}export(){}update_data(e){return e}static get meta(){return{type:o.d2.dialog,version:1}}}},9311:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var o=n(7633),r=n(8571);const i=(0,o.Kh)({cube:null,group:null,type:"bookmark",tagname:"",group_bg:"transparent",tip:"",mode:r.U_.std})},9394:(e,t,n)=>{"use strict";n.d(t,{T:()=>r,y:()=>o});const o=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}],r=[{name:"墨黑",value:"#062726"},{name:"深灰",value:"#696969"},{name:"中灰",value:"#A9A9A9"},{name:"浅灰",value:"#D3D3D3"},{name:"纯白",value:"#ffffff"},{name:"正红",value:"#ff0054"},{name:"橘红",value:"#fe6d73"},{name:"粉红",value:"#fb6f92"},{name:"砖红",value:"#ef8354"},{name:"桃红",value:"#ffc2d1"},{name:"正黄",value:"#f8f362"},{name:"橙黄",value:"#FFA500"},{name:"橘黄",value:"#ffca3a"},{name:"米黄",value:"#f4e285"},{name:"淡黄",value:"#ffef9f"},{name:"正绿",value:"#00FF00"},{name:"蓝绿",value:"#00B8B8"},{name:"草绿",value:"#5dd39e"},{name:"棕绿",value:"#bce784"},{name:"浅绿",value:"#caffbf"},{name:"正蓝",value:"#2176ff"},{name:"蔚蓝",value:"#33a1fd"},{name:"碧蓝",value:"#008E97"},{name:"水蓝",value:"#06bee1"},{name:"浅蓝",value:"#bee9e8"},{name:"正紫",value:"#6a00f4"},{name:"绛紫",value:"#a100f2"},{name:"绯紫",value:"#d100d1"},{name:"青紫",value:"#9370DB"},{name:"淡紫",value:"#e0c3fc"}]},9678:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});const o=(0,n(7633).Kh)({open:!1,active:void 0})},9754:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var o=n(7633),r=n(8571),i=n(3321),a=n(6905);const s=n.p+"audio/info1.mp3",l=n.p+"audio/info2.mp3",c=n.p+"audio/info3.mp3",u=n.p+"audio/warn.mp3";class d extends i.e{msgs=(0,o.Kh)(new Set);get meta(){return d.meta}constructor(e){super(e)}export(){}update_data(e){return e}add_tip(e){return this.msgs.add(e)}remove_tip(e){return this.msgs.delete(e)}tip(e){const t={msg:e.msg,id:e.id||Date.now()+this.msgs.size+"",duration:e.duration,icon:e.icon||a.$.icons.aloud,click:e.click,css:e.css||{background:"var(--statusbar-tip-default-bg)",color:"black"}};return this.add_tip(t),t.duration!==Number.POSITIVE_INFINITY&&setTimeout(()=>{this.remove_tip(t)},t.duration),()=>this.remove_tip(t)}tip_error(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.close,css:{background:"var(--statusbar-tip-error-bg)",color:"snow"},click:n})}tip_warning(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.warn,css:{background:"var(--statusbar-tip-warning-bg)",color:"black"},click:n})}tip_success(e,t=9e3,n){try{new Audio(l).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.success,css:{background:"var(--statusbar-tip-success-bg)",color:"black"},click:n})}tip_info(e,t=9e3,n){try{new Audio(s).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.info,click:n})}tip_bug(e,t=9e3,n){try{new Audio(u).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.bug,css:{background:"var(--statusbar-tip-bug-bg)",color:"snow"},click:n})}tip_aloud(e,t=9e3,n){try{new Audio(c).play()}catch{}return this.tip({msg:e,duration:t,icon:a.$.icons.aloud,css:{background:"var(--statusbar-tip-aloud-bg)",color:"black"},click:n})}tip_red(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.cherry,css:{background:"var(--statusbar-tip-red-bg)",color:"snow"},click:o})}tip_orange(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.orange,css:{background:"var(--statusbar-tip-orange-bg)",color:"black"},click:o})}tip_yellow(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.banana,css:{background:"var(--statusbar-tip-yellow-bg)",color:"black"},click:o})}tip_green(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.melon,css:{background:"var(--statusbar-tip-green-bg)",color:"black"},click:o})}tip_blue(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.berry,css:{background:"var(--statusbar-tip-blue-bg)",color:"black"},click:o})}tip_indigo(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.eggplant,css:{background:"var(--statusbar-tip-indigo-bg)",color:"snow"},click:o})}tip_violet(e,t=9e3,n,o){return this.tip({msg:e,duration:t,icon:n||a.$.icons.grape,css:{background:"var(--statusbar-tip-violet-bg)",color:"snow"},click:o})}static get meta(){return{type:r.d2.tips,version:1}}}},9826:(e,t,n)=>{"use strict";n.d(t,{L:()=>o.L});var o=n(9754)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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 e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var o={};return(()=>{"use strict";n.r(o),n.d(o,{StatusCatalogue:()=>T.c1,StatusDialog:()=>T.jm,StatusEditor:()=>T.QI,StatusHotkeys:()=>T.I_,StatusPresets:()=>T.bl,StatusSidebar:()=>T.pw,StatusStatusbar:()=>T.A0,StatusToolbar:()=>T.SH,ToolBase:()=>M.Y,UIAi:()=>s.b,UIApi:()=>l.z,UIBase:()=>a.e,UICatalogue:()=>c.a,UIConfig:()=>u.X,UIConvertors:()=>d.i,UIDefault:()=>i.U,UIDialog:()=>p.b,UIDict:()=>h.J,UIEditor:()=>R.O,UIEvent:()=>f.D,UIFloat:()=>m.z,UIFomula:()=>v.t,UIHotkeys:()=>g.w,UIIcons:()=>b.$,UIListener:()=>I.d,UIMenubar:()=>C.Z,UIMod:()=>k.J,UIPresets:()=>_.n,UISearch:()=>y.F,UISidebar:()=>S.H,UIStatusbar:()=>E.m,UITheme:()=>x._,UITips:()=>w.L,UIToolbar:()=>M.q,UITools:()=>L.E,_DictWordType:()=>r.oE,_FloatType:()=>r.I7,_FomulaType:()=>r.UF,_MenubarItemType:()=>r.zX,_ToolName:()=>r.lb,_UICatalogueMode:()=>r.U_,_UIEventType:()=>r.GC,_UIHotkeyTypes:()=>r.l1,_UIPart:()=>r.d2,float_cubelist:()=>T.bK,float_dict:()=>T.ks,float_dict_adder:()=>T.$3,float_fomula:()=>T.wF,float_link_ask:()=>T.yg,float_link_edit:()=>T.$q,float_node_layout:()=>T.p,float_rt:()=>T.Sg,float_table:()=>T.ud});var e=n(785),t={};for(const n in e)"default"!==n&&(t[n]=()=>e[n]);n.d(o,t);var r=n(8571),i=n(4597),a=n(3461),s=n(2217),l=n(2714),c=n(6641),u=n(676),d=n(5711),p=n(9282),h=n(1691),f=n(1529),m=n(8461),v=n(5127),g=n(5324),b=n(598),_=n(6808),y=n(5171),x=n(5222),w=n(9826),k=n(7922),R=n(8010),C=n(356),S=n(5672),E=n(1711),M=n(1525),L=n(1625),T=n(993),I=n(2185)})(),o})());
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|