diff --git a/.obsidian/plugins/easy-copy/main.js b/.obsidian/plugins/easy-copy/main.js index 937b1d9..c507160 100644 --- a/.obsidian/plugins/easy-copy/main.js +++ b/.obsidian/plugins/easy-copy/main.js @@ -3,13 +3,13 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ -var J=Object.create;var S=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var ne=(t,d)=>{for(var e in d)S(t,e,{get:d[e],enumerable:!0})},O=(t,d,e,s)=>{if(d&&typeof d=="object"||typeof d=="function")for(let l of ee(d))!ie.call(t,l)&&l!==e&&S(t,l,{get:()=>d[l],enumerable:!(s=Q(d,l))||s.enumerable});return t};var ae=(t,d,e)=>(e=t!=null?J(te(t)):{},O(d||!t||!t.__esModule?S(e,"default",{value:t,enumerable:!0}):e,t)),se=t=>O(S({},"__esModule",{value:!0}),t);var ue={};ne(ue,{default:()=>F});module.exports=se(ue);var u=require("obsidian");var W={["en"]:{"auto-add-block-id":"Auto generate block ID","auto-add-block-id-desc":"When enabled, if there is no copyable content, a random block ID (^xxxx) will be automatically added to the end of the current line.","manual-block-id":"Manually enter Block ID","manual-block-id-desc":"If enabled, you will be prompted to enter a block ID manually.","block-id-insert-position":"Block ID insert position","block-id-insert-position-desc":"Choose where to insert the block ID - For special blocks like code blocks and quote blocks, at least one line break will be inserted.","block-id-end-of-block":"End of current block","block-id-next-line":"Next line below current block","block-id-next-line-with-gap":"Two lines below current block (with empty line)","modal-block-id":"Enter block ID","modal-block-id-desc":"Allowed: letters, numbers, hyphens (-), underscores (_). Spaces will be converted to hyphens.","error-block-id-empty":"Block ID cannot be empty","error-block-id-invalid":"Only letters, numbers, hyphens and underscores are allowed","no-file":"Cannot get current file","no-content":"No content to copy at current cursor position","inline-code-copied":"Inline code copied!","block-id-copied":"Block ID link copied!","note-link-copied":"Note link copied!","heading-copied":"Heading link copied!","bold-copied":"Bold text copied!","highlight-copied":"Highlighted text copied!","italic-copied":"Italic text copied!","inline-latex-copied":"Inline LaTeX copied!","strikethrough-copied":"Strikethrough text copied!","link-text-copied":"Link text copied!","link-url-copied":"Link URL copied!","wiki-link-copied":"Wiki link copied!","callout-copied":"Callout copied!","code-block-copied":"Code block copied!","note-link-simplified":"Link simplified (filename matches heading)",format:"Format","use-frontmatter-as-display":"Note Link: Use specific property as display text","use-frontmatter-as-display-desc":"If enabled, use the value of the specified note property as the display text for note links","frontmatter-key":"Note property name","frontmatter-key-desc":"The property name used as display text (default: title)","block-id":"Block ID",target:"Target","add-to-menu":"Add to menu","add-to-menu-desc":"Add the command to the context menu","add-extra-commands":"Add extra commands","add-extra-commands-desc":'Enable to add "Copy current note link" and "Generate & copy current block link" commands to the command palette',"show-notice":"Show notice","show-notice-desc":"Show notification when content is copied","use-heading-as-display":"Heading Link: Only use heading as display text","use-heading-as-display-desc":"Use the heading text as display text in copied heading links","simplified-heading-to-note-link":"Simplify link when filename matches heading","simplified-heading-to-note-link-desc":"When the filename matches the heading text (ignoring spaces), create a note link instead of a heading link","strict-heading-match":"Strict heading match","strict-heading-match-desc":'When enabled, filename must exactly match the heading (case-insensitive). When disabled, the link is also simplified if the filename contains the heading as a substring (e.g. "260422_note" matches heading "note").',"heading-link-separator":"Heading Link: Separator between filename and heading","heading-link-separator-desc":'Customize the separator symbol between filename and heading (only shown when "Use heading as display text" is disabled)',"link-format":"Link format","link-format-desc":"The format used when copying various types of links","link-format-obsidian":"Follow Obsidian settings","markdown-link":"Markdown link","wiki-link":"Wiki link","resolve-link-path-on-paste":"Resolve link path on paste","resolve-link-path-on-paste-desc":`Regenerate the link path at paste time based on the destination file. Under "Follow Obsidian settings", uses your vault's path style (shortest/relative/absolute); otherwise uses shortest-unique paths only.`,"resolve-link-path-on-paste-tooltip":"Plugins loaded earlier take priority for paste handling. If another plugin (e.g. Linter) intercepts paste first, this feature will be bypassed. You can adjust plugin load order in the community-plugins.json file.","customize-targets":"Customize targets","customize-targets-desc":"Enable to customize which elements can be copied (disable to copy all elements)","enable-inline-code":"Enable inline code","enable-inline-code-desc":"Enable copying inline code like `code example`","enable-bold":"Enable bold text","enable-bold-desc":"Enable copying bold text like **bold example**","enable-highlight":"Enable highlighted text","enable-highlight-desc":"Enable copying highlighted text like ==highlight example==","enable-italic":"Enable italic text","enable-italic-desc":"Enable copying italic text like *italic example*","enable-strikethrough":"Enable strikethrough text","enable-strikethrough-desc":"Enable copying strikethrough text like ~~strikethrough example~~","enable-inline-latex":"Enable inline LaTeX","enable-inline-latex-desc":"Enable copying inline LaTeX like $latex example$","enable-link":"Enable link title/url","enable-link-desc":"Enable copying link like [linktitle](linkurl) - the plugin will copy the title or the URL of the link based on the current cursor position.","auto-block-display-text":"Generate display text for block links","auto-block-display-text-desc":"If enabled, display text will be automatically added to generated block ID links","block-display-word-limit":"Block Display Text: Word limit for English-like languages","block-display-word-limit-desc":'Maximum number of words to show in block display text for space-separated languages (e.g., English "this is a sentence")',"block-display-char-limit":"Block Display Text: Character limit for CJK-like languages","block-display-char-limit-desc":'Maximum number of characters to show in block display text for non-space-separated languages (e.g., Chinese "\u8FD9\u662F\u4E00\u53E5\u8BDD") - This setting will be used when the first line contains non-ASCII characters.',"enable-wikilink":"Enable Wiki Link","enable-wikilink-desc":"Enable copying of [[Wiki]] links","special-format":"Special copy format options","auto-embed-block-link":"Block link: Add ! for embed","auto-embed-block-link-desc":"When copying block links, automatically add ! to embed the block","enable-callout-copy":"Copy callout text","enable-callout-copy-desc":'When the cursor is inside a callout (">" block), copy the callout content as plain text',"callout-copy-priority":"Prioritize callout copy","callout-copy-priority-desc":"When the cursor is inside a callout, prioritize copying the callout content instead of generating a block ID link","code-block-behavior":"Code block copy behavior","code-block-behavior-desc":"Choose the behavior when the cursor is inside a fenced code block (``` ... ```)","code-block":"Code Block","code-block-copy-content":"Copy plain text","code-block-copy-with-fences":"Copy code block (with fences)","code-block-generate-block-link":"Generate block link","code-block-disabled":"Disabled","keep-wiki-brackets":"Wikilink: Keep [[ ]] brackets","keep-wiki-brackets-desc":"When copying wiki links, keep the surrounding [[ ]] brackets","contextual-copy":"Contextual copy","copy-current-file-link":"Copy current file link","generate-current-block-link-auto":"Copy current block link (auto-generate ID)","generate-current-block-link-manual":"Copy current block link (manual ID input)","file-link-copied":"File link copied!"},["zh"]:{"auto-add-block-id":"\u81EA\u52A8\u751F\u6210\u5757ID","auto-add-block-id-desc":"\u542F\u7528\u540E\uFF0C\u5982\u679C\u6CA1\u6709\u53EF\u590D\u5236\u5185\u5BB9\u65F6\u4F1A\u81EA\u52A8\u5728\u5F53\u524D\u6587\u672C\u672B\u5C3E\u6DFB\u52A0\u4E00\u4E2A\u968F\u673A\u751F\u6210\u7684\u5757ID\uFF08^xxxx\uFF09","manual-block-id":"\u624B\u52A8\u8F93\u5165\u5757ID","manual-block-id-desc":"\u542F\u7528\u540E\uFF0C\u53EF\u4EE5\u5728\u5F39\u7A97\u4E2D\u624B\u52A8\u8F93\u5165\u5757ID","block-id-insert-position":"\u5757ID\u63D2\u5165\u4F4D\u7F6E","block-id-insert-position-desc":"\u9009\u62E9\u751F\u6210\u5757ID\u65F6\u7684\u63D2\u5165\u4F4D\u7F6E\u3002\u5BF9\u4E8E\u4EE3\u7801\u5757\u548C\u5F15\u7528\u5757\u7B49\u7279\u6B8A\u6BB5\u843D\uFF0C\u81F3\u5C11\u4F1A\u63D2\u5165\u4E00\u4E2A\u6362\u884C\u3002","block-id-end-of-block":"\u5F53\u524D\u5757\u7684\u672B\u5C3E","block-id-next-line":"\u5F53\u524D\u5757\u7684\u4E0B\u65B9\u4E00\u884C","block-id-next-line-with-gap":"\u5F53\u524D\u5757\u7684\u4E0B\u65B9\u4E24\u884C\uFF08\u4E2D\u95F4\u9694\u4E00\u4E2A\u7A7A\u884C\uFF09","modal-block-id":"\u8F93\u5165\u5757ID","modal-block-id-desc":"\u4EC5\u5141\u8BB8\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u77ED\u6A2A\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\uFF0C\u7A7A\u683C\u4F1A\u81EA\u52A8\u8F6C\u4E3A\u77ED\u6A2A\u7EBF\u3002","error-block-id-empty":"\u5757ID\u4E0D\u80FD\u4E3A\u7A7A","error-block-id-invalid":"\u53EA\u5141\u8BB8\u5B57\u6BCD\u3001\u6570\u5B57\u3001-\u3001_","no-file":"\u65E0\u6CD5\u83B7\u53D6\u5F53\u524D\u6587\u4EF6","no-content":"\u5F53\u524D\u5149\u6807\u5904\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9","inline-code-copied":"\u884C\u5185\u4EE3\u7801\u5DF2\u590D\u5236\uFF01","block-id-copied":"\u5757ID\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","note-link-copied":"\u7B14\u8BB0\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","heading-copied":"\u6807\u9898\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","bold-copied":"\u52A0\u7C97\u6587\u672C\u5DF2\u590D\u5236\uFF01","highlight-copied":"\u9AD8\u4EAE\u6587\u672C\u5DF2\u590D\u5236\uFF01","italic-copied":"\u659C\u4F53\u6587\u672C\u5DF2\u590D\u5236\uFF01","inline-latex-copied":"\u884C\u5185LaTeX\u5DF2\u590D\u5236\uFF01","strikethrough-copied":"\u5220\u9664\u7EBF\u6587\u672C\u5DF2\u590D\u5236\uFF01","link-text-copied":"\u94FE\u63A5\u6587\u672C\u5DF2\u590D\u5236\uFF01","link-url-copied":"\u94FE\u63A5\u5730\u5740\u5DF2\u590D\u5236\uFF01","wiki-link-copied":"Wiki\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","callout-copied":"\u6807\u6CE8\u5185\u5BB9\u5DF2\u590D\u5236\uFF01","code-block-copied":"\u4EE3\u7801\u5757\u5DF2\u590D\u5236\uFF01","note-link-simplified":"\u94FE\u63A5\u5DF2\u7B80\u5316\uFF08\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u76F8\u5339\u914D\uFF09",format:"\u683C\u5F0F","block-id":"\u5757ID",target:"\u590D\u5236\u5BF9\u8C61","add-to-menu":"\u6DFB\u52A0\u5230\u83DC\u5355","add-to-menu-desc":"\u5C06\u547D\u4EE4\u6DFB\u52A0\u5230\u53F3\u952E\u83DC\u5355","add-extra-commands":"\u6DFB\u52A0\u62D3\u5C55\u547D\u4EE4","add-extra-commands-desc":"\u542F\u7528\u540E\uFF0C\u5C06\u5728\u547D\u4EE4\u9762\u677F\u4E2D\u6DFB\u52A0\u201C\u590D\u5236\u5F53\u524D\u7B14\u8BB0\u7684\u94FE\u63A5\u201D\u548C\u201C\u751F\u6210\u5E76\u590D\u5236\u5F53\u524D\u5757\u7684\u94FE\u63A5\u201D\u547D\u4EE4","show-notice":"\u663E\u793A\u901A\u77E5","show-notice-desc":"\u590D\u5236\u5185\u5BB9\u65F6\u663E\u793A\u901A\u77E5\u63D0\u793A","use-heading-as-display":"\u6807\u9898\u94FE\u63A5\uFF1A\u4EC5\u4F7F\u7528\u6807\u9898\u4F5C\u4E3A\u663E\u793A\u6587\u672C","use-heading-as-display-desc":"\u5728\u590D\u5236\u7684\u6807\u9898\u94FE\u63A5\u4E2D\uFF0C\u4F7F\u7528\u6807\u9898\u6587\u672C\u4F5C\u4E3A\u663E\u793A\u6587\u672C","simplified-heading-to-note-link":"\u6587\u4EF6\u540D\u5339\u914D\u6807\u9898\u65F6\u7B80\u5316\u94FE\u63A5","simplified-heading-to-note-link-desc":"\u5F53\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u6587\u672C\u5339\u914D\u65F6\uFF08\u76F8\u540C\u6216\u5305\u542B\uFF09\uFF0C\u76F4\u63A5\u521B\u5EFA\u7B14\u8BB0\u94FE\u63A5\u800C\u4E0D\u662F\u6807\u9898\u94FE\u63A5","strict-heading-match":"\u4E25\u683C\u5339\u914D","strict-heading-match-desc":'\u542F\u7528\u540E\uFF0C\u6587\u4EF6\u540D\u5FC5\u987B\u4E0E\u6807\u9898\u5B8C\u5168\u76F8\u540C\uFF08\u5FFD\u7565\u5927\u5C0F\u5199\uFF09\u624D\u4F1A\u7B80\u5316\u3002\u5173\u95ED\u65F6\uFF0C\u6587\u4EF6\u540D\u5305\u542B\u6807\u9898\u4E5F\u4F1A\u7B80\u5316\uFF08\u5982\u6587\u4EF6\u540D "260422_note" \u5339\u914D\u6807\u9898 "note"\uFF09\u3002',"heading-link-separator":"\u6807\u9898\u94FE\u63A5\uFF1A\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u95F4\u7684\u8FDE\u63A5\u7B26","heading-link-separator-desc":'\u81EA\u5B9A\u4E49\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u4E4B\u95F4\u7684\u8FDE\u63A5\u7B26\u53F7\uFF08\u4EC5\u5728\u7981\u7528"\u4F7F\u7528\u6807\u9898\u4F5C\u4E3A\u663E\u793A\u6587\u672C"\u65F6\u663E\u793A\uFF09',"link-format":"\u94FE\u63A5\u683C\u5F0F","link-format-desc":"\u590D\u5236\u5404\u79CD\u94FE\u63A5\u65F6\u4F7F\u7528\u7684\u683C\u5F0F","link-format-obsidian":"\u8DDF\u968F Obsidian \u8BBE\u7F6E","markdown-link":"Markdown\u94FE\u63A5","wiki-link":"Wiki\u94FE\u63A5","resolve-link-path-on-paste":"\u7C98\u8D34\u65F6\u89E3\u6790\u94FE\u63A5\u8DEF\u5F84","resolve-link-path-on-paste-desc":'\u7C98\u8D34\u65F6\u6839\u636E\u76EE\u6807\u6587\u4EF6\u91CD\u65B0\u751F\u6210\u94FE\u63A5\u8DEF\u5F84\u3002\u4F7F\u7528"\u8DDF\u968F Obsidian \u8BBE\u7F6E"\u65F6\uFF0C\u4F1A\u6CBF\u7528\u8F6F\u4EF6\u8BBE\u7F6E\u4E2D\u7684\u8DEF\u5F84\u98CE\u683C\uFF08\u6700\u77ED/\u76F8\u5BF9/\u7EDD\u5BF9\uFF09\uFF1B\u5426\u5219\uFF0C\u4EC5\u4F7F\u7528\u6700\u77ED\u552F\u4E00\u8DEF\u5F84\u3002',"resolve-link-path-on-paste-tooltip":"\u8D8A\u65E9\u52A0\u8F7D\u7684\u63D2\u4EF6\u8D8A\u5148\u5904\u7406\u7C98\u8D34\u4E8B\u4EF6\u3002\u82E5\u5176\u4ED6\u63D2\u4EF6\uFF08\u5982 Linter\uFF09\u62A2\u5148\u5904\u7406\uFF0C\u672C\u529F\u80FD\u4F1A\u88AB\u8DF3\u8FC7\u3002\u53EF\u5728 community-plugins.json \u6587\u4EF6\u4E2D\u8C03\u6574\u63D2\u4EF6\u52A0\u8F7D\u987A\u5E8F\u3002","customize-targets":"\u81EA\u5B9A\u4E49\u590D\u5236\u5BF9\u8C61","customize-targets-desc":"\u542F\u7528\u540E\u53EF\u4EE5\u81EA\u5B9A\u4E49\u54EA\u4E9B\u5143\u7D20\u53EF\u4EE5\u88AB\u590D\u5236\uFF08\u4E0D\u542F\u7528\u5219\u9ED8\u8BA4\u53EF\u590D\u5236\u6240\u6709\u5143\u7D20\uFF09","enable-inline-code":"\u542F\u7528\u884C\u5185\u4EE3\u7801","enable-inline-code-desc":"\u542F\u7528\u590D\u5236\u884C\u5185\u4EE3\u7801\uFF0C\u5982 `\u4EE3\u7801\u793A\u4F8B`","enable-bold":"\u542F\u7528\u52A0\u7C97\u6587\u672C","enable-bold-desc":"\u542F\u7528\u590D\u5236\u52A0\u7C97\u6587\u672C\uFF0C\u5982 **\u52A0\u7C97\u793A\u4F8B**","enable-highlight":"\u542F\u7528\u9AD8\u4EAE\u6587\u672C","enable-highlight-desc":"\u542F\u7528\u590D\u5236\u9AD8\u4EAE\u6587\u672C\uFF0C\u5982 ==\u9AD8\u4EAE\u793A\u4F8B==","enable-italic":"\u542F\u7528\u659C\u4F53\u6587\u672C","enable-italic-desc":"\u542F\u7528\u590D\u5236\u659C\u4F53\u6587\u672C\uFF0C\u5982 *\u659C\u4F53\u793A\u4F8B*","enable-strikethrough":"\u542F\u7528\u5220\u9664\u7EBF\u6587\u672C","enable-strikethrough-desc":"\u542F\u7528\u590D\u5236\u5220\u9664\u7EBF\u6587\u672C\uFF0C\u5982 ~~\u5220\u9664\u7EBF\u793A\u4F8B~~","enable-inline-latex":"\u542F\u7528\u884C\u5185LaTeX","enable-inline-latex-desc":"\u542F\u7528\u590D\u5236\u884C\u5185LaTeX\uFF0C\u5982 $latex \u793A\u4F8B$","enable-link":"\u542F\u7528\u94FE\u63A5\u6587\u672C","enable-link-desc":"\u542F\u7528\u590D\u5236 Markdown \u94FE\u63A5","enable-wikilink":"\u542F\u7528 Wiki \u94FE\u63A5","enable-wikilink-desc":"\u542F\u7528\u590D\u5236 [[Wiki]] \u94FE\u63A5","special-format":"\u7279\u6B8A\u590D\u5236\u683C\u5F0F\u9009\u9879","auto-embed-block-link":"\u5757\u94FE\u63A5\uFF1A\u81EA\u52A8\u6DFB\u52A0 ! \u7B26\u53F7\uFF08\u5D4C\u5165\u5757\uFF09","auto-embed-block-link-desc":"\u590D\u5236\u5757\u94FE\u63A5\u65F6\u81EA\u52A8\u5728\u524D\u9762\u6DFB\u52A0 !\uFF0C\u7528\u4E8E\u5D4C\u5165\u5757","enable-callout-copy":"\u590D\u5236\u6807\u6CE8\u5185\u6587\u672C","enable-callout-copy-desc":'\u5F53\u5149\u6807\u5728 ">" \u6807\u6CE8\u5757\u5185\u65F6\uFF0C\u590D\u5236\u8BE5\u6807\u6CE8\u7684\u7EAF\u6587\u672C\u5185\u5BB9',"callout-copy-priority":"\u4F18\u5148\u590D\u5236\u6807\u6CE8\u5185\u5185\u5BB9","callout-copy-priority-desc":"\u5F53\u5149\u6807\u4F4D\u4E8E\u6807\u6CE8\u5185\u65F6\uFF0C\u4F18\u5148\u590D\u5236\u6807\u6CE8\u5185\u5185\u5BB9\u800C\u4E0D\u662F\u751F\u6210\u8BE5\u6807\u6CE8\u7684\u5757ID\u94FE\u63A5","code-block-behavior":"\u4EE3\u7801\u5757\u590D\u5236\u884C\u4E3A","code-block-behavior-desc":"\u5F53\u5149\u6807\u4F4D\u4E8E\u4EE3\u7801\u5757\uFF08``` ... ```\uFF09\u5185\u65F6\u7684\u590D\u5236\u884C\u4E3A","code-block":"\u4EE3\u7801\u5757","code-block-copy-content":"\u590D\u5236\u7EAF\u6587\u672C","code-block-copy-with-fences":"\u590D\u5236\u4EE3\u7801\u5757\uFF08\u542B ```\uFF09","code-block-generate-block-link":"\u751F\u6210\u5757\u94FE\u63A5","code-block-disabled":"\u7981\u7528","keep-wiki-brackets":"Wiki \u94FE\u63A5\uFF1A\u4FDD\u7559 [[ ]] \u62EC\u53F7","keep-wiki-brackets-desc":"\u590D\u5236 wiki \u94FE\u63A5\u65F6\u4FDD\u7559\u4E24\u4FA7 [[ ]] \u62EC\u53F7","contextual-copy":"\u667A\u80FD\u590D\u5236","copy-current-file-link":"\u590D\u5236\u5F53\u524D\u6587\u4EF6\u94FE\u63A5","generate-current-block-link-auto":"\u590D\u5236\u5F53\u524D\u5757\u94FE\u63A5\uFF08\u81EA\u52A8\u751F\u6210ID\uFF09","generate-current-block-link-manual":"\u590D\u5236\u5F53\u524D\u5757\u94FE\u63A5\uFF08\u624B\u52A8\u8F93\u5165ID\uFF09","file-link-copied":"\u5F53\u524D\u6587\u4EF6\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","use-frontmatter-as-display":"\u7B14\u8BB0\u94FE\u63A5\uFF1A\u4F7F\u7528\u7279\u5B9A\u5C5E\u6027\u4F5C\u4E3A\u663E\u793A\u6587\u672C","use-frontmatter-as-display-desc":"\u542F\u7528\u540E\uFF0C\u4F7F\u7528\u6307\u5B9A\u7684\u7B14\u8BB0\u5C5E\u6027\u7684\u503C\u4F5C\u4E3A\u7B14\u8BB0\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C","frontmatter-key":"\u7B14\u8BB0\u5C5E\u6027\u540D","frontmatter-key-desc":"\u7528\u4E8E\u663E\u793A\u6587\u672C\u7684\u7B14\u8BB0\u5C5E\u6027\u540D\uFF08\u9ED8\u8BA4\uFF1Atitle\uFF09","auto-block-display-text":"\u751F\u6210\u5757\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C","auto-block-display-text-desc":"\u542F\u7528\u540E\uFF0C\u4F1A\u81EA\u52A8\u4E3A\u751F\u6210\u7684\u5757ID\u94FE\u63A5\u6DFB\u52A0\u663E\u793A\u6587\u672C","block-display-word-limit":"\u5757\u663E\u793A\u6587\u672C\uFF1A\u82F1\u8BED\u7C7B\u8BED\u8A00\u7684\u5355\u8BCD\u6570\u9650\u5236","block-display-word-limit-desc":'\u4F7F\u7528\u7A7A\u683C\u5206\u9694\u7684\u8BED\u8A00\uFF08\u5982\u82F1\u8BED "this is a sentence"\uFF09\u5728\u5757\u663E\u793A\u6587\u672C\u4E2D\u663E\u793A\u7684\u6700\u5927\u5355\u8BCD\u6570',"block-display-char-limit":"\u5757\u663E\u793A\u6587\u672C\uFF1ACJK \u7C7B\u8BED\u8A00\u7684\u5B57\u7B26\u6570\u9650\u5236","block-display-char-limit-desc":'\u975E\u82F1\u8BED\u7C7B\u8BED\u8A00\uFF08\u5982\u4E2D\u6587 "\u8FD9\u662F\u4E00\u53E5\u8BDD"\uFF09\u5728\u5757\u663E\u793A\u6587\u672C\u4E2D\u663E\u793A\u7684\u6700\u5927\u5B57\u7B26\u6570\u2014\u2014\u5F53\u7B2C\u4E00\u884C\u5305\u542B\u975EASCII\u5B57\u7B26\u65F6\uFF0C\u4F1A\u91C7\u7528\u6B64\u8BBE\u7F6E\u3002'},["zh-tw"]:{"auto-add-block-id":"\u81EA\u52D5\u65B0\u589E\u584AID","auto-add-block-id-desc":"\u555F\u7528\u5F8C\uFF0C\u82E5\u6C92\u6709\u53EF\u8907\u88FD\u5167\u5BB9\u6642\uFF0C\u6703\u81EA\u52D5\u5728\u7576\u524D\u6587\u672C\u672B\u5C3E\u65B0\u589E\u4E00\u500B\u96A8\u6A5F\u7684\u584AID\uFF08^xxxx\uFF09","add-extra-commands":"\u6DFB\u52A0\u64F4\u5C55\u547D\u4EE4","add-extra-commands-desc":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u547D\u4EE4\u9762\u677F\u4E2D\u65B0\u589E\u300C\u8907\u88FD\u7576\u524D\u7B46\u8A18\u93C8\u63A5\u300D\u548C\u300C\u751F\u6210\u4E26\u8907\u88FD\u7576\u524D\u584A\u93C8\u63A5\u300D\u547D\u4EE4","auto-block-display-text":"\u751F\u6210\u584A\u9023\u7D50\u7684\u986F\u793A\u6587\u672C","auto-block-display-text-desc":"\u555F\u7528\u5F8C\uFF0C\u6703\u81EA\u52D5\u70BA\u751F\u6210\u7684\u584AID\u9023\u7D50\u6DFB\u52A0\u986F\u793A\u6587\u672C","block-display-word-limit":"\u584A\u986F\u793A\u6587\u672C\uFF1A\u82F1\u8A9E\u985E\u8A9E\u8A00\u7684\u55AE\u8A5E\u6578\u9650\u5236","block-display-word-limit-desc":'\u7A7A\u683C\u5206\u9694\u8A9E\u8A00\uFF08\u5982 "this is a sentence"\uFF09\u5728\u584A\u986F\u793A\u6587\u672C\u4E2D\u986F\u793A\u7684\u6700\u5927\u55AE\u8A5E\u6578',"block-display-char-limit":"\u584A\u986F\u793A\u6587\u672C\uFF1ACJK \u985E\u8A9E\u8A00\u7684\u5B57\u7B26\u6578\u9650\u5236","block-display-char-limit-desc":'\u975E\u7A7A\u683C\u5206\u9694\u8A9E\u8A00\uFF08\u5982\u4E2D\u6587 "\u9019\u662F\u4E00\u53E5\u8A71"\uFF09\u5728\u584A\u986F\u793A\u6587\u672C\u4E2D\u986F\u793A\u7684\u6700\u5927\u5B57\u7B26\u6578\u2014\u2014\u7576\u7B2C\u4E00\u884C\u5305\u542B\u975EASCII\u5B57\u7B26\u6642\uFF0C\u6703\u63A1\u7528\u6B64\u8A2D\u7F6E\u3002',"manual-block-id":"\u624B\u52D5\u8F38\u5165\u584AID","manual-block-id-desc":"\u555F\u7528\u5F8C\uFF0C\u53EF\u4EE5\u5728\u5F48\u7A97\u4E2D\u624B\u52D5\u8F38\u5165\u584AID","block-id-insert-position":"\u584AID\u63D2\u5165\u4F4D\u7F6E","block-id-insert-position-desc":"\u9078\u64C7\u751F\u6210\u584AID\u6642\u7684\u63D2\u5165\u4F4D\u7F6E\u3002\u5C0D\u65BC\u4EE3\u78BC\u584A\u548C\u5F15\u7528\u584A\u7B49\u7279\u6B8A\u6BB5\u843D\uFF0C\u81F3\u5C11\u6703\u63D2\u5165\u4E00\u500B\u63DB\u884C\u3002","block-id-end-of-block":"\u7576\u524D\u584A\u7684\u672B\u5C3E","block-id-next-line":"\u7576\u524D\u584A\u7684\u4E0B\u65B9\u4E00\u884C","block-id-next-line-with-gap":"\u7576\u524D\u584A\u7684\u4E0B\u65B9\u5169\u884C\uFF08\u4E2D\u9593\u9694\u4E00\u500B\u7A7A\u884C\uFF09","modal-block-id":"\u8F38\u5165\u584AID","modal-block-id-desc":"\u50C5\u5141\u8A31\u5B57\u6BCD\u3001\u6578\u5B57\u3001\u9023\u5B57\u865F\uFF08-\uFF09\u3001\u5E95\u7DDA\uFF08_\uFF09\uFF0C\u7A7A\u683C\u6703\u81EA\u52D5\u8F49\u70BA\u9023\u5B57\u865F\u3002","error-block-id-empty":"\u584AID \u4E0D\u80FD\u70BA\u7A7A","error-block-id-invalid":"\u53EA\u5141\u8A31\u5B57\u6BCD\u3001\u6578\u5B57\u3001-\u3001_","no-file":"\u7121\u6CD5\u7372\u53D6\u7576\u524D\u6587\u4EF6","no-content":"\u7576\u524D\u5149\u6A19\u8655\u6C92\u6709\u53EF\u8907\u88FD\u7684\u5167\u5BB9","inline-code-copied":"\u884C\u5167\u4EE3\u78BC\u5DF2\u8907\u88FD\uFF01","block-id-copied":"\u584AID\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","note-link-copied":"\u7B46\u8A18\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","heading-copied":"\u6A19\u984C\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","bold-copied":"\u52A0\u7C97\u6587\u672C\u5DF2\u8907\u88FD\uFF01","highlight-copied":"\u9AD8\u4EAE\u6587\u672C\u5DF2\u8907\u88FD\uFF01","italic-copied":"\u659C\u9AD4\u6587\u672C\u5DF2\u8907\u88FD\uFF01","inline-latex-copied":"\u884C\u5167LaTeX\u5DF2\u8907\u88FD\uFF01","strikethrough-copied":"\u522A\u9664\u7DDA\u6587\u672C\u5DF2\u8907\u88FD\uFF01","link-text-copied":"\u9023\u7D50\u6587\u672C\u5DF2\u8907\u88FD\uFF01","link-url-copied":"\u9023\u7D50\u5730\u5740\u5DF2\u8907\u88FD\uFF01","wiki-link-copied":"Wiki\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","callout-copied":"\u6807\u6CE8\u5185\u5BB9\u5DF2\u8907\u88FD\uFF01","note-link-simplified":"\u9023\u7D50\u5DF2\u7C21\u5316\uFF08\u6A94\u6848\u540D\u8207\u6A19\u984C\u76F8\u5339\u914D\uFF09",format:"\u683C\u5F0F","block-id":"\u584AID",target:"\u8907\u88FD\u5C0D\u8C61","add-to-menu":"\u6DFB\u52A0\u5230\u83DC\u55AE","add-to-menu-desc":"\u5C07\u547D\u4EE4\u6DFB\u52A0\u5230\u53F3\u9375\u83DC\u55AE","show-notice":"\u986F\u793A\u901A\u77E5","show-notice-desc":"\u8907\u88FD\u5167\u5BB9\u6642\u986F\u793A\u901A\u77E5\u63D0\u793A","use-heading-as-display":"\u6A19\u984C\u9023\u7D50\uFF1A\u50C5\u4F7F\u7528\u6A19\u984C\u4F5C\u70BA\u986F\u793A\u6587\u672C","use-heading-as-display-desc":"\u5728\u8907\u88FD\u7684\u6A19\u984C\u9023\u7D50\u4E2D\uFF0C\u4F7F\u7528\u6A19\u984C\u6587\u672C\u4F5C\u70BA\u986F\u793A\u6587\u672C","simplified-heading-to-note-link":"\u6A94\u6848\u540D\u5339\u914D\u6A19\u984C\u6642\u7C21\u5316\u9023\u7D50","simplified-heading-to-note-link-desc":"\u7576\u6A94\u6848\u540D\u8207\u6A19\u984C\u6587\u672C\u5339\u914D\u6642\uFF08\u76F8\u540C\u6216\u5305\u542B\uFF09\uFF0C\u76F4\u63A5\u5EFA\u7ACB\u7B46\u8A18\u9023\u7D50\u800C\u4E0D\u662F\u6A19\u984C\u9023\u7D50","strict-heading-match":"\u56B4\u683C\u5339\u914D","strict-heading-match-desc":'\u555F\u7528\u5F8C\uFF0C\u6A94\u6848\u540D\u5FC5\u9808\u8207\u6A19\u984C\u5B8C\u5168\u76F8\u540C\uFF08\u5FFD\u7565\u5927\u5C0F\u5BEB\uFF09\u624D\u6703\u7C21\u5316\u3002\u95DC\u9589\u6642\uFF0C\u6A94\u6848\u540D\u5305\u542B\u6A19\u984C\u4E5F\u6703\u7C21\u5316\uFF08\u5982\u6A94\u6848\u540D "260422_note" \u5339\u914D\u6A19\u984C "note"\uFF09\u3002',"heading-link-separator":"\u6A19\u984C\u9023\u7D50\uFF1A\u6A94\u6848\u540D\u8207\u6A19\u984C\u9593\u7684\u9023\u63A5\u7B26","heading-link-separator-desc":"\u81EA\u5B9A\u7FA9\u6A94\u6848\u540D\u8207\u6A19\u984C\u4E4B\u9593\u7684\u9023\u63A5\u7B26\u865F\uFF08\u50C5\u5728\u7981\u7528\u300C\u4F7F\u7528\u6A19\u984C\u4F5C\u70BA\u986F\u793A\u6587\u672C\u300D\u6642\u986F\u793A\uFF09","link-format":"\u9023\u7D50\u683C\u5F0F","link-format-desc":"\u8907\u88FD\u5404\u7A2E\u9023\u7D50\u6642\u4F7F\u7528\u7684\u683C\u5F0F","link-format-obsidian":"\u8DDF\u96A8 Obsidian \u8A2D\u5B9A","markdown-link":"Markdown\u9023\u7D50","wiki-link":"Wiki\u9023\u7D50","resolve-link-path-on-paste":"\u8CBC\u4E0A\u6642\u89E3\u6790\u9023\u7D50\u8DEF\u5F91","resolve-link-path-on-paste-desc":"\u8CBC\u4E0A\u6642\u6839\u64DA\u76EE\u6A19\u6A94\u6848\u91CD\u65B0\u751F\u6210\u9023\u7D50\u8DEF\u5F91\u3002\u4F7F\u7528\u300C\u8DDF\u96A8 Obsidian \u8A2D\u5B9A\u300D\u6642\uFF0C\u6703\u6CBF\u7528\u8EDF\u9AD4\u8A2D\u5B9A\u4E2D\u7684\u8DEF\u5F91\u98A8\u683C\uFF08\u6700\u77ED/\u76F8\u5C0D/\u7D55\u5C0D\uFF09\uFF1B\u5426\u5247\uFF0C\u50C5\u4F7F\u7528\u6700\u77ED\u552F\u4E00\u8DEF\u5F91\u3002","resolve-link-path-on-paste-tooltip":"\u8D8A\u65E9\u8F09\u5165\u7684\u5916\u639B\u8D8A\u5148\u8655\u7406\u8CBC\u4E0A\u4E8B\u4EF6\u3002\u82E5\u5176\u4ED6\u5916\u639B\uFF08\u5982 Linter\uFF09\u6436\u5148\u8655\u7406\uFF0C\u672C\u529F\u80FD\u6703\u88AB\u7565\u904E\u3002\u53EF\u5728 community-plugins.json \u6A94\u6848\u4E2D\u8ABF\u6574\u5916\u639B\u8F09\u5165\u9806\u5E8F\u3002","customize-targets":"\u81EA\u5B9A\u7FA9\u8907\u88FD\u5C0D\u8C61","customize-targets-desc":"\u555F\u7528\u5F8C\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u54EA\u4E9B\u5143\u7D20\u53EF\u4EE5\u88AB\u8907\u88FD\uFF08\u4E0D\u555F\u7528\u5247\u9ED8\u8BA4\u53EF\u8907\u88FD\u6240\u6709\u5143\u7D20\uFF09","enable-inline-code":"\u555F\u7528\u884C\u5167\u4EE3\u78BC","enable-inline-code-desc":"\u555F\u7528\u8907\u88FD\u884C\u5167\u4EE3\u78BC\uFF0C\u5982 `\u4EE3\u78BC\u793A\u4F8B`","enable-bold":"\u555F\u7528\u52A0\u7C97\u6587\u672C","enable-bold-desc":"\u555F\u7528\u8907\u88FD\u52A0\u7C97\u6587\u672C\uFF0C\u5982 **\u52A0\u7C97\u793A\u4F8B**","enable-highlight":"\u555F\u7528\u9AD8\u4EAE\u6587\u672C","enable-highlight-desc":"\u555F\u7528\u8907\u88FD\u9AD8\u4EAE\u6587\u672C\uFF0C\u5982 ==\u9AD8\u4EAE\u793A\u4F8B==","enable-italic":"\u555F\u7528\u659C\u9AD4\u6587\u672C","enable-italic-desc":"\u555F\u7528\u8907\u88FD\u659C\u9AD4\u6587\u672C\uFF0C\u5982 *\u659C\u9AD4\u793A\u4F8B*","enable-strikethrough":"\u555F\u7528\u522A\u9664\u7DDA\u6587\u672C","enable-strikethrough-desc":"\u555F\u7528\u8907\u88FD\u522A\u9664\u7DDA\u6587\u672C\uFF0C\u5982 ~~\u522A\u9664\u7DDA\u793A\u4F8B~~","enable-inline-latex":"\u555F\u7528\u884C\u5167LaTeX","enable-inline-latex-desc":"\u555F\u7528\u8907\u88FD\u884C\u5167LaTeX\uFF0C\u5982 $latex \u793A\u4F8B$","enable-link":"\u555F\u7528\u9023\u7D50\u6587\u672C","enable-link-desc":"\u555F\u7528\u8907\u88FD Markdown \u9023\u7D50","enable-wikilink":"\u555F\u7528 Wiki \u9023\u7D50","enable-wikilink-desc":"\u555F\u7528\u8907\u88FD [[Wiki]] \u9023\u7D50","special-format":"\u7279\u6B8A\u8907\u88FD\u683C\u5F0F\u9078\u9805","auto-embed-block-link":"\u584A\u9023\u7D50\uFF1A\u81EA\u52D5\u6DFB\u52A0 ! \u7B26\u865F\uFF08\u5D4C\u5165\u584A\uFF09","auto-embed-block-link-desc":"\u8907\u88FD\u584A\u9023\u7D50\u6642\u81EA\u52D5\u5728\u524D\u9762\u6DFB\u52A0 !\uFF0C\u7528\u65BC\u5D4C\u5165\u584A","enable-callout-copy":"\u8907\u88FD\u6A19\u8A3B\u5167\u6587\u672C","enable-callout-copy-desc":'\u7576\u6E38\u6A19\u5728 ">" \u6A19\u8A3B\u584A\u5167\u6642\uFF0C\u8907\u88FD\u8A72\u6A19\u8A3B\u7684\u7D14\u6587\u672C\u5167\u5BB9',"callout-copy-priority":"\u512A\u5148\u8907\u88FD\u6A19\u8A3B\u5167\u5BB9","callout-copy-priority-desc":"\u7576\u6E38\u6A19\u4F4D\u65BC\u6A19\u8A3B\u5167\u6642\uFF0C\u512A\u5148\u8907\u88FD\u6A19\u8A3B\u5167\u5BB9\u800C\u4E0D\u662F\u751F\u6210\u8A72\u6A19\u8A3B\u7684\u584AID\u9023\u7D50","code-block-behavior":"\u4EE3\u78BC\u584A\u8907\u88FD\u884C\u70BA","code-block-behavior-desc":"\u7576\u6E38\u6A19\u4F4D\u65BC\u4EE3\u78BC\u584A\uFF08``` ... ```\uFF09\u5167\u6642\u7684\u8907\u88FD\u884C\u70BA","code-block":"\u4EE3\u78BC\u584A","code-block-copy-content":"\u8907\u88FD\u7D14\u6587\u672C","code-block-copy-with-fences":"\u8907\u88FD\u4EE3\u78BC\u584A\uFF08\u542B ```\uFF09","code-block-generate-block-link":"\u751F\u6210\u584A\u9023\u7D50","code-block-disabled":"\u7981\u7528","code-block-copied":"\u4EE3\u78BC\u584A\u5DF2\u8907\u88FD\uFF01","keep-wiki-brackets":"Wiki\u9023\u7D50\uFF1A\u4FDD\u7559 [[ ]] \u62EC\u865F","keep-wiki-brackets-desc":"\u8907\u88FD wiki \u9023\u7D50\u6642\u4FDD\u7559\u5169\u5074 [[ ]] \u62EC\u865F","contextual-copy":"\u667A\u80FD\u8907\u88FD","copy-current-file-link":"\u8907\u88FD\u7576\u524D\u6587\u4EF6\u9023\u7D50","generate-current-block-link-auto":"\u8907\u88FD\u7576\u524D\u584A\u9023\u7D50\uFF08\u81EA\u52D5\u751F\u6210ID\uFF09","generate-current-block-link-manual":"\u8907\u88FD\u7576\u524D\u584A\u9023\u7D50\uFF08\u624B\u52D5\u8F38\u5165ID\uFF09","file-link-copied":"\u7576\u524D\u6587\u4EF6\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","use-frontmatter-as-display":"\u7B46\u8A18\u9023\u7D50\uFF1A\u4F7F\u7528\u7279\u5B9A\u5C6C\u6027\u4F5C\u70BA\u986F\u793A\u6587\u672C","use-frontmatter-as-display-desc":"\u555F\u7528\u5F8C\uFF0C\u4F7F\u7528\u6307\u5B9A\u7684\u7B46\u8A18\u5C6C\u6027\u7684\u503C\u4F5C\u70BA\u7B46\u8A18\u9023\u7D50\u7684\u986F\u793A\u6587\u672C","frontmatter-key":"\u7B46\u8A18\u5C6C\u6027\u540D","frontmatter-key-desc":"\u7528\u65BC\u986F\u793A\u6587\u672C\u7684\u7B46\u8A18\u5C6C\u6027\u540D\uFF08\u9ED8\u8A8D\uFF1Atitle\uFF09"}},N=class{constructor(d="en"){this.language=d}setLanguage(d){this.language=d}t(d){return W[this.language][d]||W["en"][d]||d}};var K={useFrontmatterAsDisplay:!1,frontmatterKey:"title",addToMenu:!0,addExtraCommands:!0,showNotice:!0,useHeadingAsDisplayText:!0,headingLinkSeparator:"#",simplifiedHeadingToNoteLink:!0,strictHeadingMatch:!1,linkFormat:"obsidian",resolveLinkPathOnPaste:!1,customizeTargets:!1,enableInlineCode:!0,enableBold:!0,enableHighlight:!0,enableItalic:!0,enableStrikethrough:!0,enableInlineLatex:!0,enableLink:!0,enableWikiLink:!0,keepWikiBrackets:!0,autoEmbedBlockLink:!1,enableCalloutCopy:!0,calloutCopyPriority:!0,codeBlockBehavior:"copy-content",autoAddBlockId:!1,allowManualBlockId:!1,blockIdInsertPosition:"end-of-block",autoBlockDisplayText:!0,blockDisplayWordLimit:3,blockDisplayCharLimit:5};var x=require("obsidian"),_=ae(require("obsidian"));function C(t,d){if((0,x.requireApiVersion)("1.11.0")){let e=_.SettingGroup;if(e){let s=d?new e(t).setHeading(d):new e(t);return{addSetting(l){s.addSetting(l)}}}}return d&&t.createDiv("setting-group-heading").createEl("h3",{text:d}),{addSetting(e){let s=new x.Setting(t);e(s)}}}var B=class extends x.PluginSettingTab{constructor(e,s){super(e,s);this.icon="copy-plus";this.plugin=s}display(){let{containerEl:e}=this;e.empty();let s=C(e);s.addSetting(n=>n.setName(this.plugin.t("add-to-menu")).setDesc(this.plugin.t("add-to-menu-desc")).addToggle(a=>a.setValue(this.plugin.settings.addToMenu).onChange(async i=>{this.plugin.settings.addToMenu=i,await this.plugin.saveSettings()}))),s.addSetting(n=>n.setName(this.plugin.t("add-extra-commands")).setDesc(this.plugin.t("add-extra-commands-desc")).addToggle(a=>a.setValue(this.plugin.settings.addExtraCommands).onChange(async i=>{this.plugin.settings.addExtraCommands=i,await this.plugin.saveSettings()}))),s.addSetting(n=>n.setName(this.plugin.t("show-notice")).setDesc(this.plugin.t("show-notice-desc")).addToggle(a=>a.setValue(this.plugin.settings.showNotice).onChange(async i=>{this.plugin.settings.showNotice=i,await this.plugin.saveSettings()})));let l=C(e,this.plugin.t("format"));l.addSetting(n=>n.setName(this.plugin.t("link-format")).setDesc(this.plugin.t("link-format-desc")).addDropdown(a=>a.addOption("obsidian",this.plugin.t("link-format-obsidian")).addOption("markdown-link",this.plugin.t("markdown-link")).addOption("wiki-link",this.plugin.t("wiki-link")).setValue(this.plugin.settings.linkFormat).onChange(async i=>{this.plugin.settings.linkFormat=i,await this.plugin.saveSettings(),this.plugin.syncPasteHandlerRegistration(),this.display()}))),l.addSetting(n=>{let a=activeDocument.createDocumentFragment();a.append(this.plugin.t("resolve-link-path-on-paste-desc")+" ");let i=a.createEl("span",{attr:{"aria-label":this.plugin.t("resolve-link-path-on-paste-tooltip"),class:"clickable-icon setting-editor-extra-setting-button",style:"display:inline; vertical-align:middle; cursor:help;"}});(0,x.setIcon)(i,"info"),n.setName(this.plugin.t("resolve-link-path-on-paste")).setDesc(a).addToggle(p=>p.setValue(this.plugin.settings.resolveLinkPathOnPaste).onChange(async h=>{this.plugin.settings.resolveLinkPathOnPaste=h,await this.plugin.saveSettings(),this.plugin.syncPasteHandlerRegistration()}))}),l.addSetting(n=>n.setName(this.plugin.t("use-heading-as-display")).setDesc(this.plugin.t("use-heading-as-display-desc")).addToggle(a=>a.setValue(this.plugin.settings.useHeadingAsDisplayText).onChange(async i=>{this.plugin.settings.useHeadingAsDisplayText=i,await this.plugin.saveSettings(),this.display()}))),this.plugin.settings.useHeadingAsDisplayText||l.addSetting(n=>n.setName(this.plugin.t("heading-link-separator")).setDesc(this.plugin.t("heading-link-separator-desc")).addText(a=>a.setPlaceholder("#").setValue(this.plugin.settings.headingLinkSeparator).onChange(async i=>{this.plugin.settings.headingLinkSeparator=i||"#",await this.plugin.saveSettings()}))),l.addSetting(n=>n.setName(this.plugin.t("simplified-heading-to-note-link")).setDesc(this.plugin.t("simplified-heading-to-note-link-desc")).addToggle(a=>a.setValue(this.plugin.settings.simplifiedHeadingToNoteLink).onChange(async i=>{this.plugin.settings.simplifiedHeadingToNoteLink=i,await this.plugin.saveSettings(),this.display()}))),this.plugin.settings.simplifiedHeadingToNoteLink&&l.addSetting(n=>n.setName(this.plugin.t("strict-heading-match")).setDesc(this.plugin.t("strict-heading-match-desc")).addToggle(a=>a.setValue(this.plugin.settings.strictHeadingMatch).onChange(async i=>{this.plugin.settings.strictHeadingMatch=i,await this.plugin.saveSettings()}))),l.addSetting(n=>n.setName(this.plugin.t("use-frontmatter-as-display")).setDesc(this.plugin.t("use-frontmatter-as-display-desc")).addToggle(a=>a.setValue(this.plugin.settings.useFrontmatterAsDisplay).onChange(async i=>{this.plugin.settings.useFrontmatterAsDisplay=i,await this.plugin.saveSettings(),this.display()}))),this.plugin.settings.useFrontmatterAsDisplay&&l.addSetting(n=>n.setName(this.plugin.t("frontmatter-key")).setDesc(this.plugin.t("frontmatter-key-desc")).addText(a=>a.setPlaceholder("title").setValue(this.plugin.settings.frontmatterKey).onChange(async i=>{this.plugin.settings.frontmatterKey=i||"title",await this.plugin.saveSettings()}))),C(e,this.plugin.t("code-block")).addSetting(n=>n.setName(this.plugin.t("code-block-behavior")).setDesc(this.plugin.t("code-block-behavior-desc")).addDropdown(a=>a.addOption("copy-content",this.plugin.t("code-block-copy-content")).addOption("copy-with-fences",this.plugin.t("code-block-copy-with-fences")).addOption("generate-block-link",this.plugin.t("code-block-generate-block-link")).addOption("disabled",this.plugin.t("code-block-disabled")).setValue(this.plugin.settings.codeBlockBehavior).onChange(async i=>{this.plugin.settings.codeBlockBehavior=i,await this.plugin.saveSettings()})));let r=C(e,this.plugin.t("block-id"));r.addSetting(n=>n.setName(this.plugin.t("auto-add-block-id")).setDesc(this.plugin.t("auto-add-block-id-desc")).addToggle(a=>a.setValue(this.plugin.settings.autoAddBlockId).onChange(async i=>{this.plugin.settings.autoAddBlockId=i,await this.plugin.saveSettings(),this.display()}))),this.plugin.settings.autoAddBlockId&&r.addSetting(n=>n.setName(this.plugin.t("block-id-insert-position")).setDesc(this.plugin.t("block-id-insert-position-desc")).addDropdown(a=>a.addOption("end-of-block",this.plugin.t("block-id-end-of-block")).addOption("next-line",this.plugin.t("block-id-next-line")).setValue(this.plugin.settings.blockIdInsertPosition).onChange(async i=>{this.plugin.settings.blockIdInsertPosition=i,await this.plugin.saveSettings()}))),this.plugin.settings.autoAddBlockId&&r.addSetting(n=>n.setName(this.plugin.t("manual-block-id")).setDesc(this.plugin.t("manual-block-id-desc")).addToggle(a=>a.setValue(this.plugin.settings.allowManualBlockId).onChange(async i=>{this.plugin.settings.allowManualBlockId=i,await this.plugin.saveSettings()}))),r.addSetting(n=>n.setName(this.plugin.t("auto-block-display-text")).setDesc(this.plugin.t("auto-block-display-text-desc")).addToggle(a=>a.setValue(this.plugin.settings.autoBlockDisplayText).onChange(async i=>{this.plugin.settings.autoBlockDisplayText=i,await this.plugin.saveSettings(),this.display()}))),this.plugin.settings.autoBlockDisplayText&&(r.addSetting(n=>n.setName(this.plugin.t("block-display-word-limit")).setDesc(this.plugin.t("block-display-word-limit-desc")).addText(a=>a.setPlaceholder("3").setValue(String(this.plugin.settings.blockDisplayWordLimit)).onChange(async i=>{let p=parseInt(i)||3;this.plugin.settings.blockDisplayWordLimit=Math.max(1,p),await this.plugin.saveSettings()}))),r.addSetting(n=>n.setName(this.plugin.t("block-display-char-limit")).setDesc(this.plugin.t("block-display-char-limit-desc")).addText(a=>a.setPlaceholder("5").setValue(String(this.plugin.settings.blockDisplayCharLimit)).onChange(async i=>{let p=parseInt(i)||5;this.plugin.settings.blockDisplayCharLimit=Math.max(1,p),await this.plugin.saveSettings()}))));let o=C(e,this.plugin.t("target"));o.addSetting(n=>n.setName(this.plugin.t("customize-targets")).setDesc(this.plugin.t("customize-targets-desc")).addToggle(a=>a.setValue(this.plugin.settings.customizeTargets).onChange(async i=>{this.plugin.settings.customizeTargets=i,await this.plugin.saveSettings(),this.display()}))),this.plugin.settings.customizeTargets&&(o.addSetting(n=>n.setName(this.plugin.t("enable-inline-code")).setDesc(this.plugin.t("enable-inline-code-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableInlineCode).onChange(async i=>{this.plugin.settings.enableInlineCode=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-bold")).setDesc(this.plugin.t("enable-bold-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableBold).onChange(async i=>{this.plugin.settings.enableBold=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-highlight")).setDesc(this.plugin.t("enable-highlight-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableHighlight).onChange(async i=>{this.plugin.settings.enableHighlight=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-italic")).setDesc(this.plugin.t("enable-italic-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableItalic).onChange(async i=>{this.plugin.settings.enableItalic=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-strikethrough")).setDesc(this.plugin.t("enable-strikethrough-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableStrikethrough).onChange(async i=>{this.plugin.settings.enableStrikethrough=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-inline-latex")).setDesc(this.plugin.t("enable-inline-latex-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableInlineLatex).onChange(async i=>{this.plugin.settings.enableInlineLatex=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-link")).setDesc(this.plugin.t("enable-link-desc")).addToggle(a=>a.setValue(this.plugin.settings.enableLink).onChange(async i=>{this.plugin.settings.enableLink=i,await this.plugin.saveSettings()}))),o.addSetting(n=>n.setName(this.plugin.t("enable-wikilink")).setDesc(this.plugin.t("enable-wikilink-desc")).addToggle(a=>{var i;return a.setValue((i=this.plugin.settings.enableWikiLink)!=null?i:!0).onChange(async p=>{this.plugin.settings.enableWikiLink=p,await this.plugin.saveSettings(),this.display()})}))),o.addSetting(n=>n.setName(this.plugin.t("enable-callout-copy")).setDesc(this.plugin.t("enable-callout-copy-desc")).addToggle(a=>{var i;return a.setValue((i=this.plugin.settings.enableCalloutCopy)!=null?i:!0).onChange(async p=>{this.plugin.settings.enableCalloutCopy=p,await this.plugin.saveSettings(),this.display()})})),this.plugin.settings.enableCalloutCopy&&o.addSetting(n=>n.setName(this.plugin.t("callout-copy-priority")).setDesc(this.plugin.t("callout-copy-priority-desc")).addToggle(a=>{var i;return a.setValue((i=this.plugin.settings.calloutCopyPriority)!=null?i:!0).onChange(async p=>{this.plugin.settings.calloutCopyPriority=p,await this.plugin.saveSettings()})}));let g=C(e,this.plugin.t("special-format"));g.addSetting(n=>n.setName(this.plugin.t("auto-embed-block-link")).setDesc(this.plugin.t("auto-embed-block-link-desc")).addToggle(a=>{var i;return a.setValue((i=this.plugin.settings.autoEmbedBlockLink)!=null?i:!1).onChange(async p=>{this.plugin.settings.autoEmbedBlockLink=p,await this.plugin.saveSettings()})})),this.plugin.settings.enableWikiLink&&g.addSetting(n=>n.setName(this.plugin.t("keep-wiki-brackets")).setDesc(this.plugin.t("keep-wiki-brackets-desc")).addToggle(a=>{var i;return a.setValue((i=this.plugin.settings.keepWikiBrackets)!=null?i:!0).onChange(async p=>{this.plugin.settings.keepWikiBrackets=p,await this.plugin.saveSettings()})}))}};var $=require("obsidian"),H=class extends $.Modal{constructor(e,s,l,c,r){super(e);this.onSubmit=r,this.title=s,this.desc=l,this.t=c}onOpen(){let{contentEl:e}=this;e.empty(),this.setTitle(this.title),this.inputEl=e.createEl("input",{type:"text",placeholder:"Block ID...",cls:"blockid-modal-input"}),this.inputEl.focus(),e.createEl("div",{text:this.desc,cls:"blockid-modal-desc"}),this.errorEl=e.createEl("div",{text:"",cls:"blockid-modal-error"}),this.inputEl.addEventListener("keydown",s=>{s.key==="Enter"?(s.preventDefault(),s.stopPropagation(),this.submit()):s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),this.close(),this.onSubmit(null))})}submit(){let e=this.inputEl.value.trim();if(!e){this.errorEl.textContent=this.t("error-block-id-empty");return}if(!/^[-_a-zA-Z0-9\s]+$/.test(e)){this.errorEl.textContent=this.t("error-block-id-invalid");return}e=e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\-_]/g,""),this.close(),this.onSubmit(e)}};function D(t){return t.replace(/ /g,"%20")}function M(t){return t.startsWith("[[")&&t.endsWith("]]")?t.slice(2,-2):t}function E(t){return t.replace(/\s*(?:%%|\[\[|]]|[#|^:])\s*/g," ").replace(/ {2,}/g," ").trim()}function re(t){if(t.useHeadingAsDisplayText)return t.heading;let d=t.headingLinkSeparator||"#";return`${t.frontmatterTitle||t.filename}${d}${t.heading}`}function ce(t){if(!t.simplifiedHeadingToNoteLink||!t.useHeadingAsDisplayText||!t.selectedHeading)return!1;let d=(e,s)=>t.strictHeadingMatch?e.toLowerCase()===s.toLowerCase():e.toLowerCase()===s.toLowerCase()||e.toLowerCase().includes(s.toLowerCase());return t.filename===t.selectedHeading||d(t.filename,t.selectedHeading)||d(t.filename,t.selectedHeading.replace(/\s+/g,""))}function de(t){return t.wikiExactMatch||t.displayText===t.linkContent?`[[${t.linkContent}]]`:`[[${t.linkContent}|${t.displayText}]]`}function ge(t){return`[${t.displayText}](${D(t.linkContent)})`}function R(t){let d=M(t.heading),e=re({heading:d,filename:t.filename,frontmatterTitle:t.frontmatterTitle,useHeadingAsDisplayText:t.useHeadingAsDisplayText,headingLinkSeparator:t.headingLinkSeparator}),s=ce({simplifiedHeadingToNoteLink:t.simplifiedHeadingToNoteLink,useHeadingAsDisplayText:t.useHeadingAsDisplayText,selectedHeading:d,filename:t.filename,strictHeadingMatch:t.strictHeadingMatch}),l=t.linkFormat==="wiki-link"&&t.simplifiedHeadingToNoteLink&&t.filename===d,c=s||l,r=c?t.filename:`${t.filename}#${E(d)}`;return{link:t.linkFormat==="wiki-link"?de({linkContent:r,displayText:e,wikiExactMatch:l}):ge({linkContent:r,displayText:e}),isNoteLink:c}}function P(t,d,e,s){let l=t;if(l=l.replace(/\^.*\s*$/,""),l=l.trim().replace(/- \[.\]\s+/,"").replace("- ","").replace(/=|\*|\[|\]|\(|\)|`|>\s+/g,""),!l)return d;if(/^[a-zA-Z\s,.!?"()[\]_^-~:;0-9]*$/.test(l)){let o=e||3;return l.trim().split(" ").slice(0,o).join(" ")}let r=s||5;if(l.length>r){let o=l.trim().match(/(\S+?)[~,.\-=[,。?!…:\n\s]/),g=o?o[1]:l;return g.length>r?g.slice(0,r)+"...":g.length<3?l.slice(0,r):g}return l}function z(t){let{blockId:d,filename:e,useBrief:s,firstLine:l,linkFormat:c,autoBlockDisplayText:r,autoEmbedBlockLink:o,blockDisplayWordLimit:g,blockDisplayCharLimit:n}=t,a=d;s&&l&&(a=P(l,d,g,n));let i;return r?i=c==="wiki-link"?`[[${e}#^${d}|${a}]]`:`[${a}](${D(e)}#^${d})`:i=c==="wiki-link"?`[[${e}#^${d}]]`:`[](${D(e)}#^${d})`,o&&(i="!"+i),i}function V(t){let d=t.sameFile?t.subpath:`${t.path}${t.subpath}`,e=t.omitAlias?"":t.alias;return t.format==="wiki-link"?e?`[[${d}|${e}]]`:`[[${d}]]`:`[${e||t.alias||""}](${D(d)})`}function G(t){let{filename:d,linkFormat:e}=t,s=t.displayText||d;if(e==="wiki-link")return`[[${d}|${s}]]`;let l=t.filePath.replace(/\\/g,"/");return l.endsWith(".md")&&(l=l.slice(0,-3)),`[${s}](${D(l)})`}function U(t){let{clipboardText:d,sourceFilePath:e,blockId:s,useBrief:l,firstLine:c,autoBlockDisplayText:r,autoEmbedBlockLink:o,blockDisplayWordLimit:g,blockDisplayCharLimit:n}=t,a=s;return l&&c&&(a=P(c,s,g,n)),r||(a=""),{clipboardText:d,sourceFilePath:e,subpath:`#^${s}`,alias:a,isEmbed:o,timestamp:Date.now()}}function X(t){let{clipboardText:d,sourceFilePath:e,heading:s,filename:l,frontmatterTitle:c,useHeadingAsDisplayText:r,headingLinkSeparator:o,isNoteLink:g}=t,n=M(s),a=n;return r||(a=`${c||l}${o||"#"}${n}`),g&&l===n&&(a=""),{clipboardText:d,sourceFilePath:e,subpath:g?"":`#${E(n)}`,alias:a,isEmbed:!1,timestamp:Date.now()}}function Z(t){return{clipboardText:t.clipboardText,sourceFilePath:t.sourceFilePath,subpath:"",alias:t.displayText||"",isEmbed:!1,timestamp:Date.now()}}function j(t){return t.resolveLinkPathOnPaste}function Y(t){return t.defaultPrevented||!t.resolveLinkPathOnPaste||!t.lastCopyMeta?"skip":t.now-t.lastCopyMeta.timestamp>t.ttlMs||t.clipboardText!==t.lastCopyMeta.clipboardText?"reset-and-skip":"rewrite"}function q(t){return t.effectiveLinkFormat!=="wiki-link"||t.sourceFilePath!==t.destFilePath||!t.subpath||!t.alias||!t.useHeadingAsDisplayText||t.subpath.startsWith("#^")?!1:t.subpath===`#${E(t.alias)}`}var pe=5*60*1e3,F=class extends u.Plugin{constructor(){super(...arguments);this.lastCopyMeta=null;this.pasteEventRef=null}async onload(){await this.loadSettings(),this.initializeI18n(),this.addCommand({id:"contextual-copy",name:this.t("contextual-copy"),icon:"copy-plus",editorCallback:(e,s)=>{this.contextualCopy(e,s)}}),this.settings.addExtraCommands&&(this.addCommand({id:"copy-current-file-link",name:this.t("copy-current-file-link"),icon:"clipboard-copy",callback:()=>{this.copyCurrentFileLink()}}),this.addCommand({id:"generate-current-block-link-auto",name:this.t("generate-current-block-link-auto"),icon:"clipboard-pen",editorCallback:(e,s)=>{let l=s.file;if(!l){new u.Notice(this.t("no-file"));return}let c=l.basename;this.insertBlockIdAndCopyLink(e,c,!1)}}),this.addCommand({id:"generate-current-block-link-manual",name:this.t("generate-current-block-link-manual"),icon:"clipboard-pen-line",editorCallback:(e,s)=>{let l=s.file;if(!l){new u.Notice(this.t("no-file"));return}let c=l.basename;this.insertBlockIdAndCopyLink(e,c,!0)}})),this.addSettingTab(new B(this.app,this)),this.registerEvent(this.app.workspace.on("editor-menu",(e,s,l)=>{this.settings.addToMenu&&e.addItem(c=>{c.setTitle(this.t("contextual-copy")).setIcon("copy-slash").onClick(async()=>{this.contextualCopy(s,l)})})})),this.registerDomEvent(activeDocument,"copy",()=>{this.lastCopyMeta=null}),this.syncPasteHandlerRegistration()}syncPasteHandlerRegistration(){j(this.settings)?this.registerPasteHandler():this.unregisterPasteHandler()}registerPasteHandler(){this.pasteEventRef||(this.pasteEventRef=this.app.workspace.on("editor-paste",(e,s,l)=>{if(e.defaultPrevented)return;this.handlePaste(e,s,l)&&e.preventDefault()}),this.registerEvent(this.pasteEventRef))}unregisterPasteHandler(){this.pasteEventRef&&(this.app.workspace.offref(this.pasteEventRef),this.pasteEventRef=null,this.lastCopyMeta=null)}onunload(){}async loadSettings(){this.settings=Object.assign({},K,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}handlePaste(e,s,l){var a;let c=(a=e.clipboardData)==null?void 0:a.getData("text/plain");if(e.defaultPrevented&&this.lastCopyMeta&&c===this.lastCopyMeta.clipboardText)return console.log("[Easy Copy] Paste event was already handled by another plugin. Link path resolution skipped. You can adjust plugin load order in the community-plugins.json file inside your vault's config folder ("+this.app.vault.configDir+")."),!1;let r=Y({defaultPrevented:e.defaultPrevented,resolveLinkPathOnPaste:this.settings.resolveLinkPathOnPaste,lastCopyMeta:this.lastCopyMeta,clipboardText:c,now:Date.now(),ttlMs:pe});if(r==="reset-and-skip")return this.lastCopyMeta=null,!1;if(r==="skip")return!1;let o=this.lastCopyMeta,g=l.file;if(!g||o.subpath===""&&o.sourceFilePath===g.path)return!1;let n=this.app.vault.getAbstractFileByPath(o.sourceFilePath);if(!(n instanceof u.TFile))return!1;try{let i=this.getEffectiveLinkFormat(),p=q({effectiveLinkFormat:i,sourceFilePath:o.sourceFilePath,destFilePath:g.path,subpath:o.subpath,alias:o.alias,useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText}),h;if(this.settings.linkFormat==="obsidian"){let b=p?void 0:o.alias||void 0;h=this.app.fileManager.generateMarkdownLink(n,g.path,o.subpath||void 0,b)}else{let b=this.app.metadataCache.fileToLinktext(n,g.path,!0);h=V({format:i,path:b,subpath:o.subpath,alias:o.alias,sameFile:o.sourceFilePath===g.path,omitAlias:p})}return o.isEmbed&&(h="!"+h),h!==c?(s.replaceSelection(h),!0):!1}catch(i){return!1}}t(e){return this.i18n.t(e)}isContinuousText(e){return e.trim()!==""&&!e.trim().startsWith("#")&&!e.trim().startsWith("- ")}detectCodeBlock(e){let s=this.settings.codeBlockBehavior;if(s==="disabled")return null;let c=e.getCursor().line,r=e.lineCount(),o=-1;for(let i=c;i>=0;i--){let p=e.getLine(i);if(/^```/.test(p.trimStart())){o=i;break}}if(o===-1||o===c)return null;let g=-1;for(let i=o+1;i=g||s==="generate-block-link")return null;let n=[];for(let i=o+1;i0&&this.isContinuousText(e.getLine(c-1));)c--;let r=s;for(;r{if(!this.settings.enableCalloutCopy)return null;let k=e.getCursor(),m=e.lineCount(),w=k.line,L=k.line;if(!e.getLine(k.line).trim().startsWith(">"))return null;for(;w>0&&e.getLine(w-1).trim().startsWith(">");)w--;for(;L+1");)L++;let I=[];for(let v=w;v<=L;v++)I.push(e.getLine(v));let T=I.map(v=>v.replace(/^>\s?/,"").replace(/^\[!.*?\]\s?/,"").trim()).join(` -`);return{type:"callout",curLine:e.getLine(k.line),match:T,range:[0,T.length]}};if(!s.file)return new u.Notice(this.t("no-file")),{type:"null",curLine:"",match:null,range:null};let r=e.getCursor(),o=e.getLine(r.line),g=r.ch,n=o.slice(0,g),a=o.slice(g),i=u.Platform.isIosApp?/(?:\*([^*]+)\*(?!\*)|_([^_]+)_(?!_))/g:/(?:(?=r&&e.length<=o){let g="";for(let n=1;n=o&&n<=g){let a=o+1,i=o+r[1].length+1,p=i+2,h=p+r[2].length;if(n>=a&&n<=i)return{type:"link-title",content:r[1],range:[a,i]};if(n>=p&&n<=h)return{type:"line-url",content:r[2],range:[p,h]}}}return null}async contextualCopy(e,s){var o,g;let l=s.file;if(!l){new u.Notice(this.t("no-file"));return}let c=l.basename,r=this.determineContextType(e,s);if(r.type=="null"){if(this.settings.autoAddBlockId){let n=this.settings.allowManualBlockId;await this.insertBlockIdAndCopyLink(e,c,n);return}new u.Notice(this.t("no-content"));return}switch(r.type){case"block-id":this.copyBlockLink(r.match,c,!0,r.curLine);return;case"bold":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("bold-copied"));return;case"italic":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("italic-copied"));return;case"highlight":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("highlight-copied"));return;case"strikethrough":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("strikethrough-copied"));return;case"inline-code":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("inline-code-copied"));return;case"inline-latex":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("inline-latex-copied"));return;case"link-title":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("link-text-copied"));return;case"line-url":navigator.clipboard.writeText(r.match),this.settings.showNotice&&new u.Notice(this.t("link-url-copied"));return;case"heading":this.copyHeadingLink(r.match,c);return;case"wiki-link":{if(!r.match)return;let n=r.match;this.settings.keepWikiBrackets?n=`[[${n}]]`:n=n.split("|")[0],navigator.clipboard.writeText(n),this.settings.showNotice&&new u.Notice(this.t("wiki-link-copied"));return}case"code-block":{navigator.clipboard.writeText((o=r.match)!=null?o:""),this.settings.showNotice&&new u.Notice(this.t("code-block-copied"));return}case"callout":{let n=(g=r.match)==null?void 0:g.replace(/\n+/g,` -`).replace(/\s+$/g,"");navigator.clipboard.writeText(n!=null?n:""),this.settings.showNotice&&new u.Notice(this.t("callout-copied"));return}default:break}}copyBlockLink(e,s,l,c=""){let r=z({blockId:e,filename:s,useBrief:l,firstLine:c,linkFormat:this.getEffectiveLinkFormat(),autoBlockDisplayText:this.settings.autoBlockDisplayText,autoEmbedBlockLink:this.settings.autoEmbedBlockLink,blockDisplayWordLimit:this.settings.blockDisplayWordLimit,blockDisplayCharLimit:this.settings.blockDisplayCharLimit});navigator.clipboard.writeText(r);let o=this.app.workspace.getActiveFile();o&&(this.lastCopyMeta=U({clipboardText:r,sourceFilePath:o.path,blockId:e,useBrief:l,firstLine:c,autoBlockDisplayText:this.settings.autoBlockDisplayText,autoEmbedBlockLink:this.settings.autoEmbedBlockLink,blockDisplayWordLimit:this.settings.blockDisplayWordLimit,blockDisplayCharLimit:this.settings.blockDisplayCharLimit})),this.settings.showNotice&&new u.Notice(this.t("block-id-copied"))}copyHeadingLink(e,s){var g,n,a,i,p,h,b;let l;if(this.settings.useFrontmatterAsDisplay){let f=(b=(n=(g=this.app.workspace).getActiveFile)==null?void 0:n.call(g))!=null?b:(h=(p=(i=(a=this.app.workspace).getActiveViewOfType)==null?void 0:i.call(a,u.MarkdownView))==null?void 0:p.file)!=null?h:null;if(f){let y=this.app.metadataCache.getFileCache(f),k=y==null?void 0:y.frontmatter,m=this.settings.frontmatterKey||"title";k&&typeof k[m]=="string"&&k[m].trim()&&(l=k[m].trim())}}let{link:c,isNoteLink:r}=R({heading:e,filename:s,frontmatterTitle:l,linkFormat:this.getEffectiveLinkFormat(),useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText,headingLinkSeparator:this.settings.headingLinkSeparator,strictHeadingMatch:this.settings.strictHeadingMatch,simplifiedHeadingToNoteLink:this.settings.simplifiedHeadingToNoteLink});navigator.clipboard.writeText(c);let o=this.app.workspace.getActiveFile();o&&(this.lastCopyMeta=X({clipboardText:c,sourceFilePath:o.path,heading:e,filename:s,frontmatterTitle:l,useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText,headingLinkSeparator:this.settings.headingLinkSeparator,isNoteLink:r})),r&&new u.Notice(this.t("note-link-simplified")),this.settings.showNotice&&new u.Notice(this.t(r?"note-link-copied":"heading-copied"))}copyCurrentFileLink(){var c,r,o,g,n,a,i,p,h,b,f,y,k,m;let e;if(this.settings.useFrontmatterAsDisplay){let w=(i=(r=(c=this.app.workspace).getActiveFile)==null?void 0:r.call(c))!=null?i:(a=(n=(g=(o=this.app.workspace).getActiveViewOfType)==null?void 0:g.call(o,u.MarkdownView))==null?void 0:n.file)!=null?a:null;if(w){let L=this.app.metadataCache.getFileCache(w),I=L==null?void 0:L.frontmatter,T=this.settings.frontmatterKey||"title";I&&typeof I[T]=="string"&&I[T].trim()&&(e=I[T].trim())}}let s=(m=(h=(p=this.app.workspace).getActiveFile)==null?void 0:h.call(p))!=null?m:(k=(y=(f=(b=this.app.workspace).getActiveViewOfType)==null?void 0:f.call(b,u.MarkdownView))==null?void 0:y.file)!=null?k:null;if(!s){new u.Notice(this.t("no-file"));return}let l=G({filename:s.basename,filePath:s.path,displayText:e,linkFormat:this.getEffectiveLinkFormat()});navigator.clipboard.writeText(l),this.lastCopyMeta=Z({clipboardText:l,sourceFilePath:s.path,displayText:e}),this.settings.showNotice&&new u.Notice(this.t("file-link-copied"))}async insertBlockIdAndCopyLink(e,s,l=!1){let c="";if(l){let i=await new Promise(p=>{new H(this.app,this.t("modal-block-id"),this.t("modal-block-id-desc"),this.t.bind(this),h=>{p(h!=null?h:null)}).open()});if(!i)return;c=i}else c=`${Math.random().toString(36).substring(2,8)}`;let r=e.getCursor(),{start:o,end:g}=this.detectBlockRange(e,r.line),n=e.getLine(o),a=e.getLine(g);if(!/\^[a-zA-Z0-9_-]+$/.test(a.trim())){let i="^"+c,p=a.startsWith("> ")||a.startsWith("```")||a.startsWith("$$"),h=a.trim().length>0&&!a.endsWith(" "),b=this.settings.blockIdInsertPosition;if(p)i=` -`+i;else switch(b){case"end-of-block":h&&(i=" "+i);break;case"next-line":i=` -`+i;break;default:i=` -`+i;break}e.replaceRange(i,{line:g,ch:a.length});let f=!l;this.copyBlockLink(c,s,f,n)}}initializeI18n(){let e=this.getObsidianLanguage(),s="en";e.startsWith("zh")&&(e==="zh-tw"?s="zh-tw":s="zh"),this.i18n=new N(s)}getObsidianLanguage(){return(0,u.getLanguage)()}getEffectiveLinkFormat(){return this.settings.linkFormat!=="obsidian"?this.settings.linkFormat:this.app.vault.getConfig("useMarkdownLinks")?"markdown-link":"wiki-link"}}; +var ee=Object.create;var N=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var ne=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var se=(t,c)=>{for(var e in c)N(t,e,{get:c[e],enumerable:!0})},W=(t,c,e,l)=>{if(c&&typeof c=="object"||typeof c=="function")for(let s of ie(c))!ae.call(t,s)&&s!==e&&N(t,s,{get:()=>c[s],enumerable:!(l=te(c,s))||l.enumerable});return t};var le=(t,c,e)=>(e=t!=null?ee(ne(t)):{},W(c||!t||!t.__esModule?N(e,"default",{value:t,enumerable:!0}):e,t)),oe=t=>W(N({},"__esModule",{value:!0}),t);var be={};se(be,{default:()=>H});module.exports=oe(be);var h=require("obsidian");var R={["en"]:{"auto-add-block-id":"Auto generate block ID","auto-add-block-id-desc":"When enabled, if there is no copyable content, a random block ID (^xxxx) will be automatically added to the end of the current line.","manual-block-id":"Manually enter Block ID","manual-block-id-desc":"If enabled, you will be prompted to enter a block ID manually.","block-id-insert-position":"Block ID insert position","block-id-insert-position-desc":"Choose where to insert the block ID - For special blocks like code blocks and quote blocks, at least one line break will be inserted.","block-id-end-of-block":"End of current block","block-id-next-line":"Next line below current block","block-id-next-line-with-gap":"Two lines below current block (with empty line)","modal-block-id":"Enter block ID","modal-block-id-desc":"Allowed: letters, numbers, hyphens (-), underscores (_). Spaces will be converted to hyphens.","error-block-id-empty":"Block ID cannot be empty","error-block-id-invalid":"Only letters, numbers, hyphens and underscores are allowed","no-file":"Cannot get current file","no-content":"No content to copy at current cursor position","inline-code-copied":"Inline code copied!","block-id-copied":"Block ID link copied!","note-link-copied":"Note link copied!","heading-copied":"Heading link copied!","bold-copied":"Bold text copied!","highlight-copied":"Highlighted text copied!","italic-copied":"Italic text copied!","inline-latex-copied":"Inline LaTeX copied!","strikethrough-copied":"Strikethrough text copied!","link-text-copied":"Link text copied!","link-url-copied":"Link URL copied!","wiki-link-copied":"Wiki link copied!","callout-copied":"Callout copied!","code-block-copied":"Code block copied!","note-link-simplified":"Link simplified (filename matches heading)",format:"Format","use-frontmatter-as-display":"Note Link: Use specific property as display text","use-frontmatter-as-display-desc":"If enabled, use the value of the specified note property as the display text for note links","frontmatter-key":"Note property name","frontmatter-key-desc":"The property name used as display text (default: title)","block-id":"Block ID",target:"Target","add-to-menu":"Add to menu","add-to-menu-desc":"Add the command to the context menu","add-extra-commands":"Add extra commands","add-extra-commands-desc":'Enable to add "Copy current note link" and "Generate & copy current block link" commands to the command palette',"show-notice":"Show notice","show-notice-desc":"Show notification when content is copied","use-heading-as-display":"Heading Link: Only use heading as display text","use-heading-as-display-desc":"Use the heading text as display text in copied heading links","simplified-heading-to-note-link":"Simplify link when filename matches heading","simplified-heading-to-note-link-desc":"When the filename matches the heading text (ignoring spaces), create a note link instead of a heading link","strict-heading-match":"Strict heading match","strict-heading-match-desc":'When enabled, filename must exactly match the heading (case-insensitive). When disabled, the link is also simplified if the filename contains the heading as a substring (e.g. "260422_note" matches heading "note").',"heading-link-separator":"Heading Link: Separator between filename and heading","heading-link-separator-desc":'Customize the separator symbol between filename and heading (only shown when "Use heading as display text" is disabled)',"link-format":"Link format","link-format-desc":"The format used when copying various types of links","link-format-obsidian":"Follow Obsidian settings","markdown-link":"Markdown link","wiki-link":"Wiki link","resolve-link-path-on-paste":"Resolve link path on paste","resolve-link-path-on-paste-desc":`Regenerate the link path at paste time based on the destination file. Under "Follow Obsidian settings", uses your vault's path style (shortest/relative/absolute); otherwise uses shortest-unique paths only.`,"resolve-link-path-on-paste-tooltip":"Plugins loaded earlier take priority for paste handling. If another plugin (e.g. Linter) intercepts paste first, this feature will be bypassed. You can adjust plugin load order in the community-plugins.json file.","customize-targets":"Customize targets","customize-targets-desc":"Enable to customize which elements can be copied (disable to copy all elements)","enable-inline-code":"Enable inline code","enable-inline-code-desc":"Enable copying inline code like `code example`","enable-bold":"Enable bold text","enable-bold-desc":"Enable copying bold text like **bold example**","enable-highlight":"Enable highlighted text","enable-highlight-desc":"Enable copying highlighted text like ==highlight example==","enable-italic":"Enable italic text","enable-italic-desc":"Enable copying italic text like *italic example*","enable-strikethrough":"Enable strikethrough text","enable-strikethrough-desc":"Enable copying strikethrough text like ~~strikethrough example~~","enable-inline-latex":"Enable inline LaTeX","enable-inline-latex-desc":"Enable copying inline LaTeX like $latex example$","enable-link":"Enable link title/url","enable-link-desc":"Enable copying link like [linktitle](linkurl) - the plugin will copy the title or the URL of the link based on the current cursor position.","auto-block-display-text":"Generate display text for block links","auto-block-display-text-desc":"If enabled, display text will be automatically added to generated block ID links","block-display-word-limit":"Block Display Text: Word limit for English-like languages","block-display-word-limit-desc":'Maximum number of words to show in block display text for space-separated languages (e.g., English "this is a sentence")',"block-display-char-limit":"Block Display Text: Character limit for CJK-like languages","block-display-char-limit-desc":'Maximum number of characters to show in block display text for non-space-separated languages (e.g., Chinese "\u8FD9\u662F\u4E00\u53E5\u8BDD") - This setting will be used when the first line contains non-ASCII characters.',"enable-wikilink":"Enable Wiki Link","enable-wikilink-desc":"Enable copying of [[Wiki]] links","special-format":"Special copy format options","auto-embed-block-link":"Block link: Add ! for embed","auto-embed-block-link-desc":"When copying block links, automatically add ! to embed the block","enable-callout-copy":"Copy callout text","enable-callout-copy-desc":'When the cursor is inside a callout (">" block), copy the callout content as plain text',"callout-copy-priority":"Prioritize callout copy","callout-copy-priority-desc":"When the cursor is inside a callout, prioritize copying the callout content instead of generating a block ID link","code-block-behavior":"Code block copy behavior","code-block-behavior-desc":"Choose the behavior when the cursor is inside a fenced code block (``` ... ```)","code-block":"Code Block","code-block-copy-content":"Copy plain text","code-block-copy-with-fences":"Copy code block (with fences)","code-block-generate-block-link":"Generate block link","code-block-disabled":"Disabled","keep-wiki-brackets":"Wikilink: Keep [[ ]] brackets","keep-wiki-brackets-desc":"When copying wiki links, keep the surrounding [[ ]] brackets","contextual-copy":"Contextual copy","copy-current-file-link":"Copy current file link","generate-current-block-link-auto":"Copy current block link (auto-generate ID)","generate-current-block-link-manual":"Copy current block link (manual ID input)","file-link-copied":"File link copied!","enable-display-name-regex":"Display name: Regex replacement","enable-display-name-regex-desc":"When enabled, apply a regex find-and-replace to the display text of copied heading/note links","display-name-regex-from":"Find (regex)","display-name-regex-from-desc":"Regular expression pattern to match in the display text (e.g. ^\\d+\\.\\s* to remove leading numbers)","display-name-regex-to":"Replace with","display-name-regex-to-desc":"Replacement string, supports capture groups like $1, $2 (e.g. $1 to keep only the first captured group)"},["zh"]:{"auto-add-block-id":"\u81EA\u52A8\u751F\u6210\u5757ID","auto-add-block-id-desc":"\u542F\u7528\u540E\uFF0C\u5982\u679C\u6CA1\u6709\u53EF\u590D\u5236\u5185\u5BB9\u65F6\u4F1A\u81EA\u52A8\u5728\u5F53\u524D\u6587\u672C\u672B\u5C3E\u6DFB\u52A0\u4E00\u4E2A\u968F\u673A\u751F\u6210\u7684\u5757ID\uFF08^xxxx\uFF09","manual-block-id":"\u624B\u52A8\u8F93\u5165\u5757ID","manual-block-id-desc":"\u542F\u7528\u540E\uFF0C\u53EF\u4EE5\u5728\u5F39\u7A97\u4E2D\u624B\u52A8\u8F93\u5165\u5757ID","block-id-insert-position":"\u5757ID\u63D2\u5165\u4F4D\u7F6E","block-id-insert-position-desc":"\u9009\u62E9\u751F\u6210\u5757ID\u65F6\u7684\u63D2\u5165\u4F4D\u7F6E\u3002\u5BF9\u4E8E\u4EE3\u7801\u5757\u548C\u5F15\u7528\u5757\u7B49\u7279\u6B8A\u6BB5\u843D\uFF0C\u81F3\u5C11\u4F1A\u63D2\u5165\u4E00\u4E2A\u6362\u884C\u3002","block-id-end-of-block":"\u5F53\u524D\u5757\u7684\u672B\u5C3E","block-id-next-line":"\u5F53\u524D\u5757\u7684\u4E0B\u65B9\u4E00\u884C","block-id-next-line-with-gap":"\u5F53\u524D\u5757\u7684\u4E0B\u65B9\u4E24\u884C\uFF08\u4E2D\u95F4\u9694\u4E00\u4E2A\u7A7A\u884C\uFF09","modal-block-id":"\u8F93\u5165\u5757ID","modal-block-id-desc":"\u4EC5\u5141\u8BB8\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u77ED\u6A2A\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\uFF0C\u7A7A\u683C\u4F1A\u81EA\u52A8\u8F6C\u4E3A\u77ED\u6A2A\u7EBF\u3002","error-block-id-empty":"\u5757ID\u4E0D\u80FD\u4E3A\u7A7A","error-block-id-invalid":"\u53EA\u5141\u8BB8\u5B57\u6BCD\u3001\u6570\u5B57\u3001-\u3001_","no-file":"\u65E0\u6CD5\u83B7\u53D6\u5F53\u524D\u6587\u4EF6","no-content":"\u5F53\u524D\u5149\u6807\u5904\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9","inline-code-copied":"\u884C\u5185\u4EE3\u7801\u5DF2\u590D\u5236\uFF01","block-id-copied":"\u5757ID\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","note-link-copied":"\u7B14\u8BB0\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","heading-copied":"\u6807\u9898\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","bold-copied":"\u52A0\u7C97\u6587\u672C\u5DF2\u590D\u5236\uFF01","highlight-copied":"\u9AD8\u4EAE\u6587\u672C\u5DF2\u590D\u5236\uFF01","italic-copied":"\u659C\u4F53\u6587\u672C\u5DF2\u590D\u5236\uFF01","inline-latex-copied":"\u884C\u5185LaTeX\u5DF2\u590D\u5236\uFF01","strikethrough-copied":"\u5220\u9664\u7EBF\u6587\u672C\u5DF2\u590D\u5236\uFF01","link-text-copied":"\u94FE\u63A5\u6587\u672C\u5DF2\u590D\u5236\uFF01","link-url-copied":"\u94FE\u63A5\u5730\u5740\u5DF2\u590D\u5236\uFF01","wiki-link-copied":"Wiki\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","callout-copied":"\u6807\u6CE8\u5185\u5BB9\u5DF2\u590D\u5236\uFF01","code-block-copied":"\u4EE3\u7801\u5757\u5DF2\u590D\u5236\uFF01","note-link-simplified":"\u94FE\u63A5\u5DF2\u7B80\u5316\uFF08\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u76F8\u5339\u914D\uFF09",format:"\u683C\u5F0F","block-id":"\u5757ID",target:"\u590D\u5236\u5BF9\u8C61","add-to-menu":"\u6DFB\u52A0\u5230\u83DC\u5355","add-to-menu-desc":"\u5C06\u547D\u4EE4\u6DFB\u52A0\u5230\u53F3\u952E\u83DC\u5355","add-extra-commands":"\u6DFB\u52A0\u62D3\u5C55\u547D\u4EE4","add-extra-commands-desc":"\u542F\u7528\u540E\uFF0C\u5C06\u5728\u547D\u4EE4\u9762\u677F\u4E2D\u6DFB\u52A0\u201C\u590D\u5236\u5F53\u524D\u7B14\u8BB0\u7684\u94FE\u63A5\u201D\u548C\u201C\u751F\u6210\u5E76\u590D\u5236\u5F53\u524D\u5757\u7684\u94FE\u63A5\u201D\u547D\u4EE4","show-notice":"\u663E\u793A\u901A\u77E5","show-notice-desc":"\u590D\u5236\u5185\u5BB9\u65F6\u663E\u793A\u901A\u77E5\u63D0\u793A","use-heading-as-display":"\u6807\u9898\u94FE\u63A5\uFF1A\u4EC5\u4F7F\u7528\u6807\u9898\u4F5C\u4E3A\u663E\u793A\u6587\u672C","use-heading-as-display-desc":"\u5728\u590D\u5236\u7684\u6807\u9898\u94FE\u63A5\u4E2D\uFF0C\u4F7F\u7528\u6807\u9898\u6587\u672C\u4F5C\u4E3A\u663E\u793A\u6587\u672C","simplified-heading-to-note-link":"\u6587\u4EF6\u540D\u5339\u914D\u6807\u9898\u65F6\u7B80\u5316\u94FE\u63A5","simplified-heading-to-note-link-desc":"\u5F53\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u6587\u672C\u5339\u914D\u65F6\uFF08\u76F8\u540C\u6216\u5305\u542B\uFF09\uFF0C\u76F4\u63A5\u521B\u5EFA\u7B14\u8BB0\u94FE\u63A5\u800C\u4E0D\u662F\u6807\u9898\u94FE\u63A5","strict-heading-match":"\u4E25\u683C\u5339\u914D","strict-heading-match-desc":'\u542F\u7528\u540E\uFF0C\u6587\u4EF6\u540D\u5FC5\u987B\u4E0E\u6807\u9898\u5B8C\u5168\u76F8\u540C\uFF08\u5FFD\u7565\u5927\u5C0F\u5199\uFF09\u624D\u4F1A\u7B80\u5316\u3002\u5173\u95ED\u65F6\uFF0C\u6587\u4EF6\u540D\u5305\u542B\u6807\u9898\u4E5F\u4F1A\u7B80\u5316\uFF08\u5982\u6587\u4EF6\u540D "260422_note" \u5339\u914D\u6807\u9898 "note"\uFF09\u3002',"heading-link-separator":"\u6807\u9898\u94FE\u63A5\uFF1A\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u95F4\u7684\u8FDE\u63A5\u7B26","heading-link-separator-desc":'\u81EA\u5B9A\u4E49\u6587\u4EF6\u540D\u4E0E\u6807\u9898\u4E4B\u95F4\u7684\u8FDE\u63A5\u7B26\u53F7\uFF08\u4EC5\u5728\u7981\u7528"\u4F7F\u7528\u6807\u9898\u4F5C\u4E3A\u663E\u793A\u6587\u672C"\u65F6\u663E\u793A\uFF09',"link-format":"\u94FE\u63A5\u683C\u5F0F","link-format-desc":"\u590D\u5236\u5404\u79CD\u94FE\u63A5\u65F6\u4F7F\u7528\u7684\u683C\u5F0F","link-format-obsidian":"\u8DDF\u968F Obsidian \u8BBE\u7F6E","markdown-link":"Markdown\u94FE\u63A5","wiki-link":"Wiki\u94FE\u63A5","resolve-link-path-on-paste":"\u7C98\u8D34\u65F6\u89E3\u6790\u94FE\u63A5\u8DEF\u5F84","resolve-link-path-on-paste-desc":'\u7C98\u8D34\u65F6\u6839\u636E\u76EE\u6807\u6587\u4EF6\u91CD\u65B0\u751F\u6210\u94FE\u63A5\u8DEF\u5F84\u3002\u4F7F\u7528"\u8DDF\u968F Obsidian \u8BBE\u7F6E"\u65F6\uFF0C\u4F1A\u6CBF\u7528\u8F6F\u4EF6\u8BBE\u7F6E\u4E2D\u7684\u8DEF\u5F84\u98CE\u683C\uFF08\u6700\u77ED/\u76F8\u5BF9/\u7EDD\u5BF9\uFF09\uFF1B\u5426\u5219\uFF0C\u4EC5\u4F7F\u7528\u6700\u77ED\u552F\u4E00\u8DEF\u5F84\u3002',"resolve-link-path-on-paste-tooltip":"\u8D8A\u65E9\u52A0\u8F7D\u7684\u63D2\u4EF6\u8D8A\u5148\u5904\u7406\u7C98\u8D34\u4E8B\u4EF6\u3002\u82E5\u5176\u4ED6\u63D2\u4EF6\uFF08\u5982 Linter\uFF09\u62A2\u5148\u5904\u7406\uFF0C\u672C\u529F\u80FD\u4F1A\u88AB\u8DF3\u8FC7\u3002\u53EF\u5728 community-plugins.json \u6587\u4EF6\u4E2D\u8C03\u6574\u63D2\u4EF6\u52A0\u8F7D\u987A\u5E8F\u3002","customize-targets":"\u81EA\u5B9A\u4E49\u590D\u5236\u5BF9\u8C61","customize-targets-desc":"\u542F\u7528\u540E\u53EF\u4EE5\u81EA\u5B9A\u4E49\u54EA\u4E9B\u5143\u7D20\u53EF\u4EE5\u88AB\u590D\u5236\uFF08\u4E0D\u542F\u7528\u5219\u9ED8\u8BA4\u53EF\u590D\u5236\u6240\u6709\u5143\u7D20\uFF09","enable-inline-code":"\u542F\u7528\u884C\u5185\u4EE3\u7801","enable-inline-code-desc":"\u542F\u7528\u590D\u5236\u884C\u5185\u4EE3\u7801\uFF0C\u5982 `\u4EE3\u7801\u793A\u4F8B`","enable-bold":"\u542F\u7528\u52A0\u7C97\u6587\u672C","enable-bold-desc":"\u542F\u7528\u590D\u5236\u52A0\u7C97\u6587\u672C\uFF0C\u5982 **\u52A0\u7C97\u793A\u4F8B**","enable-highlight":"\u542F\u7528\u9AD8\u4EAE\u6587\u672C","enable-highlight-desc":"\u542F\u7528\u590D\u5236\u9AD8\u4EAE\u6587\u672C\uFF0C\u5982 ==\u9AD8\u4EAE\u793A\u4F8B==","enable-italic":"\u542F\u7528\u659C\u4F53\u6587\u672C","enable-italic-desc":"\u542F\u7528\u590D\u5236\u659C\u4F53\u6587\u672C\uFF0C\u5982 *\u659C\u4F53\u793A\u4F8B*","enable-strikethrough":"\u542F\u7528\u5220\u9664\u7EBF\u6587\u672C","enable-strikethrough-desc":"\u542F\u7528\u590D\u5236\u5220\u9664\u7EBF\u6587\u672C\uFF0C\u5982 ~~\u5220\u9664\u7EBF\u793A\u4F8B~~","enable-inline-latex":"\u542F\u7528\u884C\u5185LaTeX","enable-inline-latex-desc":"\u542F\u7528\u590D\u5236\u884C\u5185LaTeX\uFF0C\u5982 $latex \u793A\u4F8B$","enable-link":"\u542F\u7528\u94FE\u63A5\u6587\u672C","enable-link-desc":"\u542F\u7528\u590D\u5236 Markdown \u94FE\u63A5","enable-wikilink":"\u542F\u7528 Wiki \u94FE\u63A5","enable-wikilink-desc":"\u542F\u7528\u590D\u5236 [[Wiki]] \u94FE\u63A5","special-format":"\u7279\u6B8A\u590D\u5236\u683C\u5F0F\u9009\u9879","auto-embed-block-link":"\u5757\u94FE\u63A5\uFF1A\u81EA\u52A8\u6DFB\u52A0 ! \u7B26\u53F7\uFF08\u5D4C\u5165\u5757\uFF09","auto-embed-block-link-desc":"\u590D\u5236\u5757\u94FE\u63A5\u65F6\u81EA\u52A8\u5728\u524D\u9762\u6DFB\u52A0 !\uFF0C\u7528\u4E8E\u5D4C\u5165\u5757","enable-callout-copy":"\u590D\u5236\u6807\u6CE8\u5185\u6587\u672C","enable-callout-copy-desc":'\u5F53\u5149\u6807\u5728 ">" \u6807\u6CE8\u5757\u5185\u65F6\uFF0C\u590D\u5236\u8BE5\u6807\u6CE8\u7684\u7EAF\u6587\u672C\u5185\u5BB9',"callout-copy-priority":"\u4F18\u5148\u590D\u5236\u6807\u6CE8\u5185\u5185\u5BB9","callout-copy-priority-desc":"\u5F53\u5149\u6807\u4F4D\u4E8E\u6807\u6CE8\u5185\u65F6\uFF0C\u4F18\u5148\u590D\u5236\u6807\u6CE8\u5185\u5185\u5BB9\u800C\u4E0D\u662F\u751F\u6210\u8BE5\u6807\u6CE8\u7684\u5757ID\u94FE\u63A5","code-block-behavior":"\u4EE3\u7801\u5757\u590D\u5236\u884C\u4E3A","code-block-behavior-desc":"\u5F53\u5149\u6807\u4F4D\u4E8E\u4EE3\u7801\u5757\uFF08``` ... ```\uFF09\u5185\u65F6\u7684\u590D\u5236\u884C\u4E3A","code-block":"\u4EE3\u7801\u5757","code-block-copy-content":"\u590D\u5236\u7EAF\u6587\u672C","code-block-copy-with-fences":"\u590D\u5236\u4EE3\u7801\u5757\uFF08\u542B ```\uFF09","code-block-generate-block-link":"\u751F\u6210\u5757\u94FE\u63A5","code-block-disabled":"\u7981\u7528","keep-wiki-brackets":"Wiki \u94FE\u63A5\uFF1A\u4FDD\u7559 [[ ]] \u62EC\u53F7","keep-wiki-brackets-desc":"\u590D\u5236 wiki \u94FE\u63A5\u65F6\u4FDD\u7559\u4E24\u4FA7 [[ ]] \u62EC\u53F7","contextual-copy":"\u667A\u80FD\u590D\u5236","copy-current-file-link":"\u590D\u5236\u5F53\u524D\u6587\u4EF6\u94FE\u63A5","generate-current-block-link-auto":"\u590D\u5236\u5F53\u524D\u5757\u94FE\u63A5\uFF08\u81EA\u52A8\u751F\u6210ID\uFF09","generate-current-block-link-manual":"\u590D\u5236\u5F53\u524D\u5757\u94FE\u63A5\uFF08\u624B\u52A8\u8F93\u5165ID\uFF09","file-link-copied":"\u5F53\u524D\u6587\u4EF6\u94FE\u63A5\u5DF2\u590D\u5236\uFF01","use-frontmatter-as-display":"\u7B14\u8BB0\u94FE\u63A5\uFF1A\u4F7F\u7528\u7279\u5B9A\u5C5E\u6027\u4F5C\u4E3A\u663E\u793A\u6587\u672C","use-frontmatter-as-display-desc":"\u542F\u7528\u540E\uFF0C\u4F7F\u7528\u6307\u5B9A\u7684\u7B14\u8BB0\u5C5E\u6027\u7684\u503C\u4F5C\u4E3A\u7B14\u8BB0\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C","frontmatter-key":"\u7B14\u8BB0\u5C5E\u6027\u540D","frontmatter-key-desc":"\u7528\u4E8E\u663E\u793A\u6587\u672C\u7684\u7B14\u8BB0\u5C5E\u6027\u540D\uFF08\u9ED8\u8BA4\uFF1Atitle\uFF09","auto-block-display-text":"\u751F\u6210\u5757\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C","auto-block-display-text-desc":"\u542F\u7528\u540E\uFF0C\u4F1A\u81EA\u52A8\u4E3A\u751F\u6210\u7684\u5757ID\u94FE\u63A5\u6DFB\u52A0\u663E\u793A\u6587\u672C","block-display-word-limit":"\u5757\u663E\u793A\u6587\u672C\uFF1A\u82F1\u8BED\u7C7B\u8BED\u8A00\u7684\u5355\u8BCD\u6570\u9650\u5236","block-display-word-limit-desc":'\u4F7F\u7528\u7A7A\u683C\u5206\u9694\u7684\u8BED\u8A00\uFF08\u5982\u82F1\u8BED "this is a sentence"\uFF09\u5728\u5757\u663E\u793A\u6587\u672C\u4E2D\u663E\u793A\u7684\u6700\u5927\u5355\u8BCD\u6570',"block-display-char-limit":"\u5757\u663E\u793A\u6587\u672C\uFF1ACJK \u7C7B\u8BED\u8A00\u7684\u5B57\u7B26\u6570\u9650\u5236","block-display-char-limit-desc":'\u975E\u82F1\u8BED\u7C7B\u8BED\u8A00\uFF08\u5982\u4E2D\u6587 "\u8FD9\u662F\u4E00\u53E5\u8BDD"\uFF09\u5728\u5757\u663E\u793A\u6587\u672C\u4E2D\u663E\u793A\u7684\u6700\u5927\u5B57\u7B26\u6570\u2014\u2014\u5F53\u7B2C\u4E00\u884C\u5305\u542B\u975EASCII\u5B57\u7B26\u65F6\uFF0C\u4F1A\u91C7\u7528\u6B64\u8BBE\u7F6E\u3002',"enable-display-name-regex":"\u663E\u793A\u540D\u79F0\uFF1A\u6B63\u5219\u66FF\u6362","enable-display-name-regex-desc":"\u542F\u7528\u540E\uFF0C\u5BF9\u590D\u5236\u7684\u6807\u9898/\u7B14\u8BB0\u94FE\u63A5\u7684\u663E\u793A\u6587\u672C\u8FDB\u884C\u6B63\u5219\u67E5\u627E\u66FF\u6362","display-name-regex-from":"\u67E5\u627E\uFF08\u6B63\u5219\uFF09","display-name-regex-from-desc":"\u7528\u4E8E\u5339\u914D\u663E\u793A\u6587\u672C\u7684\u6B63\u5219\u8868\u8FBE\u5F0F\uFF08\u5982 ^\\d+\\.\\s* \u53EF\u53BB\u9664\u5F00\u5934\u7684\u5E8F\u53F7\uFF09","display-name-regex-to":"\u66FF\u6362\u4E3A","display-name-regex-to-desc":"\u66FF\u6362\u5B57\u7B26\u4E32\uFF0C\u652F\u6301\u6355\u83B7\u7EC4\u5F15\u7528\u5982 $1\u3001$2\uFF08\u5982 $1 \u53EA\u4FDD\u7559\u7B2C\u4E00\u4E2A\u6355\u83B7\u7EC4\u7684\u5185\u5BB9\uFF09"},["zh-tw"]:{"auto-add-block-id":"\u81EA\u52D5\u65B0\u589E\u584AID","auto-add-block-id-desc":"\u555F\u7528\u5F8C\uFF0C\u82E5\u6C92\u6709\u53EF\u8907\u88FD\u5167\u5BB9\u6642\uFF0C\u6703\u81EA\u52D5\u5728\u7576\u524D\u6587\u672C\u672B\u5C3E\u65B0\u589E\u4E00\u500B\u96A8\u6A5F\u7684\u584AID\uFF08^xxxx\uFF09","add-extra-commands":"\u6DFB\u52A0\u64F4\u5C55\u547D\u4EE4","add-extra-commands-desc":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u547D\u4EE4\u9762\u677F\u4E2D\u65B0\u589E\u300C\u8907\u88FD\u7576\u524D\u7B46\u8A18\u93C8\u63A5\u300D\u548C\u300C\u751F\u6210\u4E26\u8907\u88FD\u7576\u524D\u584A\u93C8\u63A5\u300D\u547D\u4EE4","auto-block-display-text":"\u751F\u6210\u584A\u9023\u7D50\u7684\u986F\u793A\u6587\u672C","auto-block-display-text-desc":"\u555F\u7528\u5F8C\uFF0C\u6703\u81EA\u52D5\u70BA\u751F\u6210\u7684\u584AID\u9023\u7D50\u6DFB\u52A0\u986F\u793A\u6587\u672C","block-display-word-limit":"\u584A\u986F\u793A\u6587\u672C\uFF1A\u82F1\u8A9E\u985E\u8A9E\u8A00\u7684\u55AE\u8A5E\u6578\u9650\u5236","block-display-word-limit-desc":'\u7A7A\u683C\u5206\u9694\u8A9E\u8A00\uFF08\u5982 "this is a sentence"\uFF09\u5728\u584A\u986F\u793A\u6587\u672C\u4E2D\u986F\u793A\u7684\u6700\u5927\u55AE\u8A5E\u6578',"block-display-char-limit":"\u584A\u986F\u793A\u6587\u672C\uFF1ACJK \u985E\u8A9E\u8A00\u7684\u5B57\u7B26\u6578\u9650\u5236","block-display-char-limit-desc":'\u975E\u7A7A\u683C\u5206\u9694\u8A9E\u8A00\uFF08\u5982\u4E2D\u6587 "\u9019\u662F\u4E00\u53E5\u8A71"\uFF09\u5728\u584A\u986F\u793A\u6587\u672C\u4E2D\u986F\u793A\u7684\u6700\u5927\u5B57\u7B26\u6578\u2014\u2014\u7576\u7B2C\u4E00\u884C\u5305\u542B\u975EASCII\u5B57\u7B26\u6642\uFF0C\u6703\u63A1\u7528\u6B64\u8A2D\u7F6E\u3002',"manual-block-id":"\u624B\u52D5\u8F38\u5165\u584AID","manual-block-id-desc":"\u555F\u7528\u5F8C\uFF0C\u53EF\u4EE5\u5728\u5F48\u7A97\u4E2D\u624B\u52D5\u8F38\u5165\u584AID","block-id-insert-position":"\u584AID\u63D2\u5165\u4F4D\u7F6E","block-id-insert-position-desc":"\u9078\u64C7\u751F\u6210\u584AID\u6642\u7684\u63D2\u5165\u4F4D\u7F6E\u3002\u5C0D\u65BC\u4EE3\u78BC\u584A\u548C\u5F15\u7528\u584A\u7B49\u7279\u6B8A\u6BB5\u843D\uFF0C\u81F3\u5C11\u6703\u63D2\u5165\u4E00\u500B\u63DB\u884C\u3002","block-id-end-of-block":"\u7576\u524D\u584A\u7684\u672B\u5C3E","block-id-next-line":"\u7576\u524D\u584A\u7684\u4E0B\u65B9\u4E00\u884C","block-id-next-line-with-gap":"\u7576\u524D\u584A\u7684\u4E0B\u65B9\u5169\u884C\uFF08\u4E2D\u9593\u9694\u4E00\u500B\u7A7A\u884C\uFF09","modal-block-id":"\u8F38\u5165\u584AID","modal-block-id-desc":"\u50C5\u5141\u8A31\u5B57\u6BCD\u3001\u6578\u5B57\u3001\u9023\u5B57\u865F\uFF08-\uFF09\u3001\u5E95\u7DDA\uFF08_\uFF09\uFF0C\u7A7A\u683C\u6703\u81EA\u52D5\u8F49\u70BA\u9023\u5B57\u865F\u3002","error-block-id-empty":"\u584AID \u4E0D\u80FD\u70BA\u7A7A","error-block-id-invalid":"\u53EA\u5141\u8A31\u5B57\u6BCD\u3001\u6578\u5B57\u3001-\u3001_","no-file":"\u7121\u6CD5\u7372\u53D6\u7576\u524D\u6587\u4EF6","no-content":"\u7576\u524D\u5149\u6A19\u8655\u6C92\u6709\u53EF\u8907\u88FD\u7684\u5167\u5BB9","inline-code-copied":"\u884C\u5167\u4EE3\u78BC\u5DF2\u8907\u88FD\uFF01","block-id-copied":"\u584AID\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","note-link-copied":"\u7B46\u8A18\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","heading-copied":"\u6A19\u984C\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","bold-copied":"\u52A0\u7C97\u6587\u672C\u5DF2\u8907\u88FD\uFF01","highlight-copied":"\u9AD8\u4EAE\u6587\u672C\u5DF2\u8907\u88FD\uFF01","italic-copied":"\u659C\u9AD4\u6587\u672C\u5DF2\u8907\u88FD\uFF01","inline-latex-copied":"\u884C\u5167LaTeX\u5DF2\u8907\u88FD\uFF01","strikethrough-copied":"\u522A\u9664\u7DDA\u6587\u672C\u5DF2\u8907\u88FD\uFF01","link-text-copied":"\u9023\u7D50\u6587\u672C\u5DF2\u8907\u88FD\uFF01","link-url-copied":"\u9023\u7D50\u5730\u5740\u5DF2\u8907\u88FD\uFF01","wiki-link-copied":"Wiki\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","callout-copied":"\u6807\u6CE8\u5185\u5BB9\u5DF2\u8907\u88FD\uFF01","note-link-simplified":"\u9023\u7D50\u5DF2\u7C21\u5316\uFF08\u6A94\u6848\u540D\u8207\u6A19\u984C\u76F8\u5339\u914D\uFF09",format:"\u683C\u5F0F","block-id":"\u584AID",target:"\u8907\u88FD\u5C0D\u8C61","add-to-menu":"\u6DFB\u52A0\u5230\u83DC\u55AE","add-to-menu-desc":"\u5C07\u547D\u4EE4\u6DFB\u52A0\u5230\u53F3\u9375\u83DC\u55AE","show-notice":"\u986F\u793A\u901A\u77E5","show-notice-desc":"\u8907\u88FD\u5167\u5BB9\u6642\u986F\u793A\u901A\u77E5\u63D0\u793A","use-heading-as-display":"\u6A19\u984C\u9023\u7D50\uFF1A\u50C5\u4F7F\u7528\u6A19\u984C\u4F5C\u70BA\u986F\u793A\u6587\u672C","use-heading-as-display-desc":"\u5728\u8907\u88FD\u7684\u6A19\u984C\u9023\u7D50\u4E2D\uFF0C\u4F7F\u7528\u6A19\u984C\u6587\u672C\u4F5C\u70BA\u986F\u793A\u6587\u672C","simplified-heading-to-note-link":"\u6A94\u6848\u540D\u5339\u914D\u6A19\u984C\u6642\u7C21\u5316\u9023\u7D50","simplified-heading-to-note-link-desc":"\u7576\u6A94\u6848\u540D\u8207\u6A19\u984C\u6587\u672C\u5339\u914D\u6642\uFF08\u76F8\u540C\u6216\u5305\u542B\uFF09\uFF0C\u76F4\u63A5\u5EFA\u7ACB\u7B46\u8A18\u9023\u7D50\u800C\u4E0D\u662F\u6A19\u984C\u9023\u7D50","strict-heading-match":"\u56B4\u683C\u5339\u914D","strict-heading-match-desc":'\u555F\u7528\u5F8C\uFF0C\u6A94\u6848\u540D\u5FC5\u9808\u8207\u6A19\u984C\u5B8C\u5168\u76F8\u540C\uFF08\u5FFD\u7565\u5927\u5C0F\u5BEB\uFF09\u624D\u6703\u7C21\u5316\u3002\u95DC\u9589\u6642\uFF0C\u6A94\u6848\u540D\u5305\u542B\u6A19\u984C\u4E5F\u6703\u7C21\u5316\uFF08\u5982\u6A94\u6848\u540D "260422_note" \u5339\u914D\u6A19\u984C "note"\uFF09\u3002',"heading-link-separator":"\u6A19\u984C\u9023\u7D50\uFF1A\u6A94\u6848\u540D\u8207\u6A19\u984C\u9593\u7684\u9023\u63A5\u7B26","heading-link-separator-desc":"\u81EA\u5B9A\u7FA9\u6A94\u6848\u540D\u8207\u6A19\u984C\u4E4B\u9593\u7684\u9023\u63A5\u7B26\u865F\uFF08\u50C5\u5728\u7981\u7528\u300C\u4F7F\u7528\u6A19\u984C\u4F5C\u70BA\u986F\u793A\u6587\u672C\u300D\u6642\u986F\u793A\uFF09","link-format":"\u9023\u7D50\u683C\u5F0F","link-format-desc":"\u8907\u88FD\u5404\u7A2E\u9023\u7D50\u6642\u4F7F\u7528\u7684\u683C\u5F0F","link-format-obsidian":"\u8DDF\u96A8 Obsidian \u8A2D\u5B9A","markdown-link":"Markdown\u9023\u7D50","wiki-link":"Wiki\u9023\u7D50","resolve-link-path-on-paste":"\u8CBC\u4E0A\u6642\u89E3\u6790\u9023\u7D50\u8DEF\u5F91","resolve-link-path-on-paste-desc":"\u8CBC\u4E0A\u6642\u6839\u64DA\u76EE\u6A19\u6A94\u6848\u91CD\u65B0\u751F\u6210\u9023\u7D50\u8DEF\u5F91\u3002\u4F7F\u7528\u300C\u8DDF\u96A8 Obsidian \u8A2D\u5B9A\u300D\u6642\uFF0C\u6703\u6CBF\u7528\u8EDF\u9AD4\u8A2D\u5B9A\u4E2D\u7684\u8DEF\u5F91\u98A8\u683C\uFF08\u6700\u77ED/\u76F8\u5C0D/\u7D55\u5C0D\uFF09\uFF1B\u5426\u5247\uFF0C\u50C5\u4F7F\u7528\u6700\u77ED\u552F\u4E00\u8DEF\u5F91\u3002","resolve-link-path-on-paste-tooltip":"\u8D8A\u65E9\u8F09\u5165\u7684\u5916\u639B\u8D8A\u5148\u8655\u7406\u8CBC\u4E0A\u4E8B\u4EF6\u3002\u82E5\u5176\u4ED6\u5916\u639B\uFF08\u5982 Linter\uFF09\u6436\u5148\u8655\u7406\uFF0C\u672C\u529F\u80FD\u6703\u88AB\u7565\u904E\u3002\u53EF\u5728 community-plugins.json \u6A94\u6848\u4E2D\u8ABF\u6574\u5916\u639B\u8F09\u5165\u9806\u5E8F\u3002","customize-targets":"\u81EA\u5B9A\u7FA9\u8907\u88FD\u5C0D\u8C61","customize-targets-desc":"\u555F\u7528\u5F8C\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u54EA\u4E9B\u5143\u7D20\u53EF\u4EE5\u88AB\u8907\u88FD\uFF08\u4E0D\u555F\u7528\u5247\u9ED8\u8BA4\u53EF\u8907\u88FD\u6240\u6709\u5143\u7D20\uFF09","enable-inline-code":"\u555F\u7528\u884C\u5167\u4EE3\u78BC","enable-inline-code-desc":"\u555F\u7528\u8907\u88FD\u884C\u5167\u4EE3\u78BC\uFF0C\u5982 `\u4EE3\u78BC\u793A\u4F8B`","enable-bold":"\u555F\u7528\u52A0\u7C97\u6587\u672C","enable-bold-desc":"\u555F\u7528\u8907\u88FD\u52A0\u7C97\u6587\u672C\uFF0C\u5982 **\u52A0\u7C97\u793A\u4F8B**","enable-highlight":"\u555F\u7528\u9AD8\u4EAE\u6587\u672C","enable-highlight-desc":"\u555F\u7528\u8907\u88FD\u9AD8\u4EAE\u6587\u672C\uFF0C\u5982 ==\u9AD8\u4EAE\u793A\u4F8B==","enable-italic":"\u555F\u7528\u659C\u9AD4\u6587\u672C","enable-italic-desc":"\u555F\u7528\u8907\u88FD\u659C\u9AD4\u6587\u672C\uFF0C\u5982 *\u659C\u9AD4\u793A\u4F8B*","enable-strikethrough":"\u555F\u7528\u522A\u9664\u7DDA\u6587\u672C","enable-strikethrough-desc":"\u555F\u7528\u8907\u88FD\u522A\u9664\u7DDA\u6587\u672C\uFF0C\u5982 ~~\u522A\u9664\u7DDA\u793A\u4F8B~~","enable-inline-latex":"\u555F\u7528\u884C\u5167LaTeX","enable-inline-latex-desc":"\u555F\u7528\u8907\u88FD\u884C\u5167LaTeX\uFF0C\u5982 $latex \u793A\u4F8B$","enable-link":"\u555F\u7528\u9023\u7D50\u6587\u672C","enable-link-desc":"\u555F\u7528\u8907\u88FD Markdown \u9023\u7D50","enable-wikilink":"\u555F\u7528 Wiki \u9023\u7D50","enable-wikilink-desc":"\u555F\u7528\u8907\u88FD [[Wiki]] \u9023\u7D50","special-format":"\u7279\u6B8A\u8907\u88FD\u683C\u5F0F\u9078\u9805","auto-embed-block-link":"\u584A\u9023\u7D50\uFF1A\u81EA\u52D5\u6DFB\u52A0 ! \u7B26\u865F\uFF08\u5D4C\u5165\u584A\uFF09","auto-embed-block-link-desc":"\u8907\u88FD\u584A\u9023\u7D50\u6642\u81EA\u52D5\u5728\u524D\u9762\u6DFB\u52A0 !\uFF0C\u7528\u65BC\u5D4C\u5165\u584A","enable-callout-copy":"\u8907\u88FD\u6A19\u8A3B\u5167\u6587\u672C","enable-callout-copy-desc":'\u7576\u6E38\u6A19\u5728 ">" \u6A19\u8A3B\u584A\u5167\u6642\uFF0C\u8907\u88FD\u8A72\u6A19\u8A3B\u7684\u7D14\u6587\u672C\u5167\u5BB9',"callout-copy-priority":"\u512A\u5148\u8907\u88FD\u6A19\u8A3B\u5167\u5BB9","callout-copy-priority-desc":"\u7576\u6E38\u6A19\u4F4D\u65BC\u6A19\u8A3B\u5167\u6642\uFF0C\u512A\u5148\u8907\u88FD\u6A19\u8A3B\u5167\u5BB9\u800C\u4E0D\u662F\u751F\u6210\u8A72\u6A19\u8A3B\u7684\u584AID\u9023\u7D50","code-block-behavior":"\u4EE3\u78BC\u584A\u8907\u88FD\u884C\u70BA","code-block-behavior-desc":"\u7576\u6E38\u6A19\u4F4D\u65BC\u4EE3\u78BC\u584A\uFF08``` ... ```\uFF09\u5167\u6642\u7684\u8907\u88FD\u884C\u70BA","code-block":"\u4EE3\u78BC\u584A","code-block-copy-content":"\u8907\u88FD\u7D14\u6587\u672C","code-block-copy-with-fences":"\u8907\u88FD\u4EE3\u78BC\u584A\uFF08\u542B ```\uFF09","code-block-generate-block-link":"\u751F\u6210\u584A\u9023\u7D50","code-block-disabled":"\u7981\u7528","code-block-copied":"\u4EE3\u78BC\u584A\u5DF2\u8907\u88FD\uFF01","keep-wiki-brackets":"Wiki\u9023\u7D50\uFF1A\u4FDD\u7559 [[ ]] \u62EC\u865F","keep-wiki-brackets-desc":"\u8907\u88FD wiki \u9023\u7D50\u6642\u4FDD\u7559\u5169\u5074 [[ ]] \u62EC\u865F","contextual-copy":"\u667A\u80FD\u8907\u88FD","copy-current-file-link":"\u8907\u88FD\u7576\u524D\u6587\u4EF6\u9023\u7D50","generate-current-block-link-auto":"\u8907\u88FD\u7576\u524D\u584A\u9023\u7D50\uFF08\u81EA\u52D5\u751F\u6210ID\uFF09","generate-current-block-link-manual":"\u8907\u88FD\u7576\u524D\u584A\u9023\u7D50\uFF08\u624B\u52D5\u8F38\u5165ID\uFF09","file-link-copied":"\u7576\u524D\u6587\u4EF6\u9023\u7D50\u5DF2\u8907\u88FD\uFF01","use-frontmatter-as-display":"\u7B46\u8A18\u9023\u7D50\uFF1A\u4F7F\u7528\u7279\u5B9A\u5C6C\u6027\u4F5C\u70BA\u986F\u793A\u6587\u672C","use-frontmatter-as-display-desc":"\u555F\u7528\u5F8C\uFF0C\u4F7F\u7528\u6307\u5B9A\u7684\u7B46\u8A18\u5C6C\u6027\u7684\u503C\u4F5C\u70BA\u7B46\u8A18\u9023\u7D50\u7684\u986F\u793A\u6587\u672C","frontmatter-key":"\u7B46\u8A18\u5C6C\u6027\u540D","frontmatter-key-desc":"\u7528\u65BC\u986F\u793A\u6587\u672C\u7684\u7B46\u8A18\u5C6C\u6027\u540D\uFF08\u9ED8\u8A8D\uFF1Atitle\uFF09","enable-display-name-regex":"\u986F\u793A\u540D\u7A31\uFF1A\u6B63\u898F\u8868\u793A\u5F0F\u66FF\u63DB","enable-display-name-regex-desc":"\u555F\u7528\u5F8C\uFF0C\u5C0D\u8907\u88FD\u7684\u6A19\u984C/\u7B46\u8A18\u9023\u7D50\u7684\u986F\u793A\u6587\u672C\u9032\u884C\u6B63\u898F\u8868\u793A\u5F0F\u67E5\u627E\u66FF\u63DB","display-name-regex-from":"\u67E5\u627E\uFF08\u6B63\u5247\uFF09","display-name-regex-from-desc":"\u7528\u65BC\u5339\u914D\u986F\u793A\u6587\u672C\u7684\u6B63\u898F\u8868\u793A\u5F0F\uFF08\u5982 ^\\d+\\.\\s* \u53EF\u53BB\u9664\u958B\u982D\u7684\u5E8F\u865F\uFF09","display-name-regex-to":"\u66FF\u63DB\u70BA","display-name-regex-to-desc":"\u66FF\u63DB\u5B57\u7B26\u4E32\uFF0C\u652F\u6301\u6355\u7372\u7D44\u5F15\u7528\u5982 $1\u3001$2"}},S=class{constructor(c="en"){this.language=c}setLanguage(c){this.language=c}t(c){return R[this.language][c]||R["en"][c]||c}};var K={useFrontmatterAsDisplay:!1,frontmatterKey:"title",addToMenu:!0,addExtraCommands:!0,showNotice:!0,useHeadingAsDisplayText:!0,headingLinkSeparator:"#",simplifiedHeadingToNoteLink:!0,strictHeadingMatch:!1,linkFormat:"obsidian",resolveLinkPathOnPaste:!1,customizeTargets:!1,enableInlineCode:!0,enableBold:!0,enableHighlight:!0,enableItalic:!0,enableStrikethrough:!0,enableInlineLatex:!0,enableLink:!0,enableWikiLink:!0,keepWikiBrackets:!0,autoEmbedBlockLink:!1,enableCalloutCopy:!0,calloutCopyPriority:!0,codeBlockBehavior:"copy-content",autoAddBlockId:!1,allowManualBlockId:!1,blockIdInsertPosition:"end-of-block",autoBlockDisplayText:!0,blockDisplayWordLimit:3,blockDisplayCharLimit:5,enableDisplayNameRegex:!1,displayNameRegexFrom:"",displayNameRegexTo:""};var L=require("obsidian"),$=le(require("obsidian"));function C(t,c){if((0,L.requireApiVersion)("1.11.0")){let e=$.SettingGroup;if(e){let l=c?new e(t).setHeading(c):new e(t);return{addSetting(s){l.addSetting(s)}}}}return c&&t.createDiv("setting-group-heading").createEl("h3",{text:c}),{addSetting(e){let l=new L.Setting(t);e(l)}}}var B=class extends L.PluginSettingTab{constructor(e,l){super(e,l);this.icon="copy-plus";this.plugin=l}display(){let{containerEl:e}=this;e.empty();let l=C(e);l.addSetting(i=>i.setName(this.plugin.t("add-to-menu")).setDesc(this.plugin.t("add-to-menu-desc")).addToggle(n=>n.setValue(this.plugin.settings.addToMenu).onChange(a=>{this.plugin.settings.addToMenu=a,this.plugin.saveSettings()}))),l.addSetting(i=>i.setName(this.plugin.t("add-extra-commands")).setDesc(this.plugin.t("add-extra-commands-desc")).addToggle(n=>n.setValue(this.plugin.settings.addExtraCommands).onChange(a=>{this.plugin.settings.addExtraCommands=a,this.plugin.saveSettings()}))),l.addSetting(i=>i.setName(this.plugin.t("show-notice")).setDesc(this.plugin.t("show-notice-desc")).addToggle(n=>n.setValue(this.plugin.settings.showNotice).onChange(a=>{this.plugin.settings.showNotice=a,this.plugin.saveSettings()})));let s=C(e,this.plugin.t("format"));s.addSetting(i=>i.setName(this.plugin.t("link-format")).setDesc(this.plugin.t("link-format-desc")).addDropdown(n=>n.addOption("obsidian",this.plugin.t("link-format-obsidian")).addOption("markdown-link",this.plugin.t("markdown-link")).addOption("wiki-link",this.plugin.t("wiki-link")).setValue(this.plugin.settings.linkFormat).onChange(a=>{this.plugin.settings.linkFormat=a,this.plugin.saveSettings(),this.plugin.syncPasteHandlerRegistration(),this.display()}))),s.addSetting(i=>{let n=activeDocument.createDocumentFragment();n.append(this.plugin.t("resolve-link-path-on-paste-desc")+" ");let a=n.createEl("span",{attr:{"aria-label":this.plugin.t("resolve-link-path-on-paste-tooltip"),class:"clickable-icon setting-editor-extra-setting-button",style:"display:inline; vertical-align:middle; cursor:help;"}});(0,L.setIcon)(a,"info"),i.setName(this.plugin.t("resolve-link-path-on-paste")).setDesc(n).addToggle(p=>p.setValue(this.plugin.settings.resolveLinkPathOnPaste).onChange(k=>{this.plugin.settings.resolveLinkPathOnPaste=k,this.plugin.saveSettings(),this.plugin.syncPasteHandlerRegistration()}))}),s.addSetting(i=>i.setName(this.plugin.t("use-heading-as-display")).setDesc(this.plugin.t("use-heading-as-display-desc")).addToggle(n=>n.setValue(this.plugin.settings.useHeadingAsDisplayText).onChange(a=>{this.plugin.settings.useHeadingAsDisplayText=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.useHeadingAsDisplayText||s.addSetting(i=>i.setName(this.plugin.t("heading-link-separator")).setDesc(this.plugin.t("heading-link-separator-desc")).addText(n=>n.setPlaceholder("#").setValue(this.plugin.settings.headingLinkSeparator).onChange(a=>{this.plugin.settings.headingLinkSeparator=a||"#",this.plugin.saveSettings()}))),s.addSetting(i=>i.setName(this.plugin.t("simplified-heading-to-note-link")).setDesc(this.plugin.t("simplified-heading-to-note-link-desc")).addToggle(n=>n.setValue(this.plugin.settings.simplifiedHeadingToNoteLink).onChange(a=>{this.plugin.settings.simplifiedHeadingToNoteLink=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.simplifiedHeadingToNoteLink&&s.addSetting(i=>i.setName(this.plugin.t("strict-heading-match")).setDesc(this.plugin.t("strict-heading-match-desc")).addToggle(n=>n.setValue(this.plugin.settings.strictHeadingMatch).onChange(a=>{this.plugin.settings.strictHeadingMatch=a,this.plugin.saveSettings()}))),s.addSetting(i=>i.setName(this.plugin.t("use-frontmatter-as-display")).setDesc(this.plugin.t("use-frontmatter-as-display-desc")).addToggle(n=>n.setValue(this.plugin.settings.useFrontmatterAsDisplay).onChange(a=>{this.plugin.settings.useFrontmatterAsDisplay=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.useFrontmatterAsDisplay&&s.addSetting(i=>i.setName(this.plugin.t("frontmatter-key")).setDesc(this.plugin.t("frontmatter-key-desc")).addText(n=>n.setPlaceholder("title").setValue(this.plugin.settings.frontmatterKey).onChange(a=>{this.plugin.settings.frontmatterKey=a||"title",this.plugin.saveSettings()}))),C(e,this.plugin.t("code-block")).addSetting(i=>i.setName(this.plugin.t("code-block-behavior")).setDesc(this.plugin.t("code-block-behavior-desc")).addDropdown(n=>n.addOption("copy-content",this.plugin.t("code-block-copy-content")).addOption("copy-with-fences",this.plugin.t("code-block-copy-with-fences")).addOption("generate-block-link",this.plugin.t("code-block-generate-block-link")).addOption("disabled",this.plugin.t("code-block-disabled")).setValue(this.plugin.settings.codeBlockBehavior).onChange(a=>{this.plugin.settings.codeBlockBehavior=a,this.plugin.saveSettings()})));let o=C(e,this.plugin.t("block-id"));o.addSetting(i=>i.setName(this.plugin.t("auto-add-block-id")).setDesc(this.plugin.t("auto-add-block-id-desc")).addToggle(n=>n.setValue(this.plugin.settings.autoAddBlockId).onChange(a=>{this.plugin.settings.autoAddBlockId=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.autoAddBlockId&&o.addSetting(i=>i.setName(this.plugin.t("block-id-insert-position")).setDesc(this.plugin.t("block-id-insert-position-desc")).addDropdown(n=>n.addOption("end-of-block",this.plugin.t("block-id-end-of-block")).addOption("next-line",this.plugin.t("block-id-next-line")).setValue(this.plugin.settings.blockIdInsertPosition).onChange(a=>{this.plugin.settings.blockIdInsertPosition=a,this.plugin.saveSettings()}))),this.plugin.settings.autoAddBlockId&&o.addSetting(i=>i.setName(this.plugin.t("manual-block-id")).setDesc(this.plugin.t("manual-block-id-desc")).addToggle(n=>n.setValue(this.plugin.settings.allowManualBlockId).onChange(a=>{this.plugin.settings.allowManualBlockId=a,this.plugin.saveSettings()}))),o.addSetting(i=>i.setName(this.plugin.t("auto-block-display-text")).setDesc(this.plugin.t("auto-block-display-text-desc")).addToggle(n=>n.setValue(this.plugin.settings.autoBlockDisplayText).onChange(a=>{this.plugin.settings.autoBlockDisplayText=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.autoBlockDisplayText&&(o.addSetting(i=>i.setName(this.plugin.t("block-display-word-limit")).setDesc(this.plugin.t("block-display-word-limit-desc")).addText(n=>n.setPlaceholder("3").setValue(String(this.plugin.settings.blockDisplayWordLimit)).onChange(a=>{let p=parseInt(a)||3;this.plugin.settings.blockDisplayWordLimit=Math.max(1,p),this.plugin.saveSettings()}))),o.addSetting(i=>i.setName(this.plugin.t("block-display-char-limit")).setDesc(this.plugin.t("block-display-char-limit-desc")).addText(n=>n.setPlaceholder("5").setValue(String(this.plugin.settings.blockDisplayCharLimit)).onChange(a=>{let p=parseInt(a)||5;this.plugin.settings.blockDisplayCharLimit=Math.max(1,p),this.plugin.saveSettings()}))));let r=C(e,this.plugin.t("target"));r.addSetting(i=>i.setName(this.plugin.t("customize-targets")).setDesc(this.plugin.t("customize-targets-desc")).addToggle(n=>n.setValue(this.plugin.settings.customizeTargets).onChange(a=>{this.plugin.settings.customizeTargets=a,this.plugin.saveSettings(),this.display()}))),this.plugin.settings.customizeTargets&&(r.addSetting(i=>i.setName(this.plugin.t("enable-inline-code")).setDesc(this.plugin.t("enable-inline-code-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableInlineCode).onChange(a=>{this.plugin.settings.enableInlineCode=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-bold")).setDesc(this.plugin.t("enable-bold-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableBold).onChange(a=>{this.plugin.settings.enableBold=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-highlight")).setDesc(this.plugin.t("enable-highlight-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableHighlight).onChange(a=>{this.plugin.settings.enableHighlight=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-italic")).setDesc(this.plugin.t("enable-italic-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableItalic).onChange(a=>{this.plugin.settings.enableItalic=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-strikethrough")).setDesc(this.plugin.t("enable-strikethrough-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableStrikethrough).onChange(a=>{this.plugin.settings.enableStrikethrough=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-inline-latex")).setDesc(this.plugin.t("enable-inline-latex-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableInlineLatex).onChange(a=>{this.plugin.settings.enableInlineLatex=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-link")).setDesc(this.plugin.t("enable-link-desc")).addToggle(n=>n.setValue(this.plugin.settings.enableLink).onChange(a=>{this.plugin.settings.enableLink=a,this.plugin.saveSettings()}))),r.addSetting(i=>i.setName(this.plugin.t("enable-wikilink")).setDesc(this.plugin.t("enable-wikilink-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.enableWikiLink)!=null?a:!0).onChange(p=>{this.plugin.settings.enableWikiLink=p,this.plugin.saveSettings(),this.display()})}))),r.addSetting(i=>i.setName(this.plugin.t("enable-callout-copy")).setDesc(this.plugin.t("enable-callout-copy-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.enableCalloutCopy)!=null?a:!0).onChange(p=>{this.plugin.settings.enableCalloutCopy=p,this.plugin.saveSettings(),this.display()})})),this.plugin.settings.enableCalloutCopy&&r.addSetting(i=>i.setName(this.plugin.t("callout-copy-priority")).setDesc(this.plugin.t("callout-copy-priority-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.calloutCopyPriority)!=null?a:!0).onChange(p=>{this.plugin.settings.calloutCopyPriority=p,this.plugin.saveSettings()})}));let g=C(e,this.plugin.t("special-format"));g.addSetting(i=>i.setName(this.plugin.t("auto-embed-block-link")).setDesc(this.plugin.t("auto-embed-block-link-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.autoEmbedBlockLink)!=null?a:!1).onChange(p=>{this.plugin.settings.autoEmbedBlockLink=p,this.plugin.saveSettings()})})),this.plugin.settings.enableWikiLink&&g.addSetting(i=>i.setName(this.plugin.t("keep-wiki-brackets")).setDesc(this.plugin.t("keep-wiki-brackets-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.keepWikiBrackets)!=null?a:!0).onChange(p=>{this.plugin.settings.keepWikiBrackets=p,this.plugin.saveSettings()})})),g.addSetting(i=>i.setName(this.plugin.t("enable-display-name-regex")).setDesc(this.plugin.t("enable-display-name-regex-desc")).addToggle(n=>{var a;return n.setValue((a=this.plugin.settings.enableDisplayNameRegex)!=null?a:!1).onChange(p=>{this.plugin.settings.enableDisplayNameRegex=p,this.plugin.saveSettings(),this.display()})})),this.plugin.settings.enableDisplayNameRegex&&(g.addSetting(i=>i.setName(this.plugin.t("display-name-regex-from")).setDesc(this.plugin.t("display-name-regex-from-desc")).addText(n=>{var a;return n.setPlaceholder("e.g. ^\\d+\\.\\s*").setValue((a=this.plugin.settings.displayNameRegexFrom)!=null?a:"").onChange(p=>{this.plugin.settings.displayNameRegexFrom=p,this.plugin.saveSettings()})})),g.addSetting(i=>i.setName(this.plugin.t("display-name-regex-to")).setDesc(this.plugin.t("display-name-regex-to-desc")).addText(n=>{var a;return n.setPlaceholder("e.g. $1").setValue((a=this.plugin.settings.displayNameRegexTo)!=null?a:"").onChange(p=>{this.plugin.settings.displayNameRegexTo=p,this.plugin.saveSettings()})})))}};var _=require("obsidian"),F=class extends _.Modal{constructor(e,l,s,d,o){super(e);this.onSubmit=o,this.title=l,this.desc=s,this.t=d}onOpen(){let{contentEl:e}=this;e.empty(),this.setTitle(this.title),this.inputEl=e.createEl("input",{type:"text",placeholder:"Block ID...",cls:"blockid-modal-input"}),this.inputEl.focus(),e.createEl("div",{text:this.desc,cls:"blockid-modal-desc"}),this.errorEl=e.createEl("div",{text:"",cls:"blockid-modal-error"}),this.inputEl.addEventListener("keydown",l=>{l.key==="Enter"?(l.preventDefault(),l.stopPropagation(),this.submit()):l.key==="Escape"&&(l.preventDefault(),l.stopPropagation(),this.close(),this.onSubmit(null))})}submit(){let e=this.inputEl.value.trim();if(!e){this.errorEl.textContent=this.t("error-block-id-empty");return}if(!/^[-_a-zA-Z0-9\s]+$/.test(e)){this.errorEl.textContent=this.t("error-block-id-invalid");return}e=e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\-_]/g,""),this.close(),this.onSubmit(e)}};function ge(t){let e=t.trimStart().match(/^(`{3,})/);return e?e[1].length:0}function P(t,c){let l=t.trimStart().match(/^(`+)\s*$/);return l?l[1].length>=c:!1}function V(t,c,e){if(e==="disabled")return null;let l=t.length,s=[];for(let n=0;n<=c;n++){let a=ge(t[n]);if(a!==0)if(s.length===0)s.push({fenceStart:n,openLen:a});else{let{openLen:p}=s[s.length-1];P(t[n],p)?s.pop():P(t[n],a)||s.push({fenceStart:n,openLen:a})}}if(s.length===0)return null;let{fenceStart:d,openLen:o}=s[s.length-1];if(d===c)return null;let r=-1;for(let n=d+1;n=r||e==="generate-block-link")return null;let g=[];for(let n=d+1;nt.strictHeadingMatch?e.toLowerCase()===l.toLowerCase():e.toLowerCase()===l.toLowerCase()||e.toLowerCase().includes(l.toLowerCase());return t.filename===t.selectedHeading||c(t.filename,t.selectedHeading)||c(t.filename,t.selectedHeading.replace(/\s+/g,""))}function ue(t){return t.wikiExactMatch||t.displayText===t.linkContent?`[[${t.linkContent}]]`:`[[${t.linkContent}|${t.displayText}]]`}function ke(t){return`[${t.displayText}](${D(t.linkContent)})`}function z(t){var g;let c=M(t.heading),e=pe({heading:c,filename:t.filename,frontmatterTitle:t.frontmatterTitle,useHeadingAsDisplayText:t.useHeadingAsDisplayText,headingLinkSeparator:t.headingLinkSeparator});if(t.enableDisplayNameRegex&&t.displayNameRegexFrom)try{let i=new RegExp(t.displayNameRegexFrom,"gm"),n=(g=t.displayNameRegexTo)!=null?g:"";e=e.replace(i,n)}catch(i){console.warn("[Easy Copy] Invalid display name regex:",i)}let l=he({simplifiedHeadingToNoteLink:t.simplifiedHeadingToNoteLink,useHeadingAsDisplayText:t.useHeadingAsDisplayText,selectedHeading:c,filename:t.filename,strictHeadingMatch:t.strictHeadingMatch}),s=t.linkFormat==="wiki-link"&&t.simplifiedHeadingToNoteLink&&t.filename===c,d=l||s,o=d?t.filename:`${t.filename}#${E(c)}`;return{link:t.linkFormat==="wiki-link"?ue({linkContent:o,displayText:e,wikiExactMatch:s}):ke({linkContent:o,displayText:e}),isNoteLink:d}}function O(t,c,e,l){let s=t;if(s=s.replace(/\^.*\s*$/,""),s=s.trim().replace(/- \[.\]\s+/,"").replace("- ","").replace(/=|\*|\[|\]|\(|\)|`|>\s+/g,""),!s)return c;if(/^[a-zA-Z\s,.!?"()[\]_^-~:;0-9]*$/.test(s)){let r=e||3;return s.trim().split(" ").slice(0,r).join(" ")}let o=l||5;if(s.length>o){let r=s.trim().match(/(\S+?)[~,.\-=[,。?!…:\n\s]/),g=r?r[1]:s;return g.length>o?g.slice(0,o)+"...":g.length<3?s.slice(0,o):g}return s}function G(t){let{blockId:c,filename:e,useBrief:l,firstLine:s,linkFormat:d,autoBlockDisplayText:o,autoEmbedBlockLink:r,blockDisplayWordLimit:g,blockDisplayCharLimit:i}=t,n=c;l&&s&&(n=O(s,c,g,i));let a;return o?a=d==="wiki-link"?`[[${e}#^${c}|${n}]]`:`[${n}](${D(e)}#^${c})`:a=d==="wiki-link"?`[[${e}#^${c}]]`:`[](${D(e)}#^${c})`,r&&(a="!"+a),a}function U(t){let c=t.sameFile?t.subpath:`${t.path}${t.subpath}`,e=t.omitAlias?"":t.alias;return t.format==="wiki-link"?e?`[[${c}|${e}]]`:`[[${c}]]`:`[${e||t.alias||""}](${D(c)})`}function X(t){let{filename:c,linkFormat:e}=t,l=t.displayText||c;if(e==="wiki-link")return`[[${c}|${l}]]`;let s=t.filePath.replace(/\\/g,"/");return s.endsWith(".md")&&(s=s.slice(0,-3)),`[${l}](${D(s)})`}function Z(t){let{clipboardText:c,sourceFilePath:e,blockId:l,useBrief:s,firstLine:d,autoBlockDisplayText:o,autoEmbedBlockLink:r,blockDisplayWordLimit:g,blockDisplayCharLimit:i}=t,n=l;return s&&d&&(n=O(d,l,g,i)),o||(n=""),{clipboardText:c,sourceFilePath:e,subpath:`#^${l}`,alias:n,isEmbed:r,timestamp:Date.now()}}function j(t){let{clipboardText:c,sourceFilePath:e,heading:l,filename:s,frontmatterTitle:d,useHeadingAsDisplayText:o,headingLinkSeparator:r,isNoteLink:g}=t,i=M(l),n=i;return o||(n=`${d||s}${r||"#"}${i}`),g&&s===i&&(n=""),{clipboardText:c,sourceFilePath:e,subpath:g?"":`#${E(i)}`,alias:n,isEmbed:!1,timestamp:Date.now()}}function Y(t){return{clipboardText:t.clipboardText,sourceFilePath:t.sourceFilePath,subpath:"",alias:t.displayText||"",isEmbed:!1,timestamp:Date.now()}}function q(t){return t.resolveLinkPathOnPaste}function J(t){return t.defaultPrevented||!t.resolveLinkPathOnPaste||!t.lastCopyMeta?"skip":t.now-t.lastCopyMeta.timestamp>t.ttlMs||t.clipboardText!==t.lastCopyMeta.clipboardText?"reset-and-skip":"rewrite"}function Q(t){return t.effectiveLinkFormat!=="wiki-link"||t.sourceFilePath!==t.destFilePath||!t.subpath||!t.alias||!t.useHeadingAsDisplayText||t.subpath.startsWith("#^")?!1:t.subpath===`#${E(t.alias)}`}var me=5*60*1e3,H=class extends h.Plugin{constructor(){super(...arguments);this.lastCopyMeta=null;this.pasteEventRef=null}async onload(){await this.loadSettings(),this.initializeI18n(),this.addCommand({id:"contextual-copy",name:this.t("contextual-copy"),icon:"copy-plus",editorCallback:(e,l)=>{this.contextualCopy(e,l)}}),this.settings.addExtraCommands&&(this.addCommand({id:"copy-current-file-link",name:this.t("copy-current-file-link"),icon:"clipboard-copy",callback:()=>{this.copyCurrentFileLink()}}),this.addCommand({id:"generate-current-block-link-auto",name:this.t("generate-current-block-link-auto"),icon:"clipboard-pen",editorCallback:(e,l)=>{let s=l.file;if(!s){new h.Notice(this.t("no-file"));return}let d=s.basename;this.insertBlockIdAndCopyLink(e,d,!1)}}),this.addCommand({id:"generate-current-block-link-manual",name:this.t("generate-current-block-link-manual"),icon:"clipboard-pen-line",editorCallback:(e,l)=>{let s=l.file;if(!s){new h.Notice(this.t("no-file"));return}let d=s.basename;this.insertBlockIdAndCopyLink(e,d,!0)}})),this.addSettingTab(new B(this.app,this)),this.registerEvent(this.app.workspace.on("editor-menu",(e,l,s)=>{this.settings.addToMenu&&e.addItem(d=>{d.setTitle(this.t("contextual-copy")).setIcon("copy-slash").onClick(async()=>{this.contextualCopy(l,s)})})})),this.registerDomEvent(activeDocument,"copy",()=>{this.lastCopyMeta=null}),this.syncPasteHandlerRegistration()}syncPasteHandlerRegistration(){q(this.settings)?this.registerPasteHandler():this.unregisterPasteHandler()}registerPasteHandler(){this.pasteEventRef||(this.pasteEventRef=this.app.workspace.on("editor-paste",(e,l,s)=>{if(e.defaultPrevented)return;this.handlePaste(e,l,s)&&e.preventDefault()}),this.registerEvent(this.pasteEventRef))}unregisterPasteHandler(){this.pasteEventRef&&(this.app.workspace.offref(this.pasteEventRef),this.pasteEventRef=null,this.lastCopyMeta=null)}onunload(){}async loadSettings(){this.settings=Object.assign({},K,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}handlePaste(e,l,s){var n;let d=(n=e.clipboardData)==null?void 0:n.getData("text/plain");if(e.defaultPrevented&&this.lastCopyMeta&&d===this.lastCopyMeta.clipboardText)return console.log("[Easy Copy] Paste event was already handled by another plugin. Link path resolution skipped. You can adjust plugin load order in the community-plugins.json file inside your vault's config folder ("+this.app.vault.configDir+")."),!1;let o=J({defaultPrevented:e.defaultPrevented,resolveLinkPathOnPaste:this.settings.resolveLinkPathOnPaste,lastCopyMeta:this.lastCopyMeta,clipboardText:d,now:Date.now(),ttlMs:me});if(o==="reset-and-skip")return this.lastCopyMeta=null,!1;if(o==="skip")return!1;let r=this.lastCopyMeta,g=s.file;if(!g||r.subpath===""&&r.sourceFilePath===g.path)return!1;let i=this.app.vault.getAbstractFileByPath(r.sourceFilePath);if(!(i instanceof h.TFile))return!1;try{let a=this.getEffectiveLinkFormat(),p=Q({effectiveLinkFormat:a,sourceFilePath:r.sourceFilePath,destFilePath:g.path,subpath:r.subpath,alias:r.alias,useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText}),k;if(this.settings.linkFormat==="obsidian"){let m=p?void 0:r.alias||void 0;k=this.app.fileManager.generateMarkdownLink(i,g.path,r.subpath||void 0,m)}else{let m=this.app.metadataCache.fileToLinktext(i,g.path,!0);k=U({format:a,path:m,subpath:r.subpath,alias:r.alias,sameFile:r.sourceFilePath===g.path,omitAlias:p})}return r.isEmbed&&(k="!"+k),k!==d?(l.replaceSelection(k),!0):!1}catch(a){return!1}}t(e){return this.i18n.t(e)}isContinuousText(e){return e.trim()!==""&&!e.trim().startsWith("#")&&!e.trim().startsWith("- ")}detectCodeBlock(e){let l=e.getCursor().line,s=e.lineCount(),d=[];for(let o=0;o0&&this.isContinuousText(e.getLine(d-1));)d--;let o=l;for(;o{if(!this.settings.enableCalloutCopy)return null;let u=e.getCursor(),b=e.lineCount(),I=u.line,x=u.line;if(!e.getLine(u.line).trim().startsWith(">"))return null;for(;I>0&&e.getLine(I-1).trim().startsWith(">");)I--;for(;x+1");)x++;let T=[];for(let v=I;v<=x;v++)T.push(e.getLine(v));let w=T.map(v=>v.replace(/^>\s?/,"").replace(/^\[!.*?\]\s?/,"").trim()).join(` +`);return{type:"callout",curLine:e.getLine(u.line),match:w,range:[0,w.length]}};if(!l.file)return new h.Notice(this.t("no-file")),{type:"null",curLine:"",match:null,range:null};let o=e.getCursor(),r=e.getLine(o.line),g=o.ch,i=r.slice(0,g),n=r.slice(g),a=h.Platform.isIosApp?/(?:\*([^*]+)\*(?!\*)|_([^_]+)_(?!_))/g:/(?:(?=o&&e.length<=r){let g="";for(let i=1;i=r&&i<=g){let n=r+1,a=r+o[1].length+1,p=a+2,k=p+o[2].length;if(i>=n&&i<=a)return{type:"link-title",content:o[1],range:[n,a]};if(i>=p&&i<=k)return{type:"line-url",content:o[2],range:[p,k]}}}return null}async contextualCopy(e,l){var r,g;let s=l.file;if(!s){new h.Notice(this.t("no-file"));return}let d=s.basename,o=this.determineContextType(e,l);if(o.type=="null"){if(this.settings.autoAddBlockId){let i=this.settings.allowManualBlockId;await this.insertBlockIdAndCopyLink(e,d,i);return}new h.Notice(this.t("no-content"));return}switch(o.type){case"block-id":this.copyBlockLink(o.match,d,!0,o.curLine);return;case"bold":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("bold-copied"));return;case"italic":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("italic-copied"));return;case"highlight":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("highlight-copied"));return;case"strikethrough":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("strikethrough-copied"));return;case"inline-code":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("inline-code-copied"));return;case"inline-latex":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("inline-latex-copied"));return;case"link-title":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("link-text-copied"));return;case"line-url":navigator.clipboard.writeText(o.match),this.settings.showNotice&&new h.Notice(this.t("link-url-copied"));return;case"heading":this.copyHeadingLink(o.match,d);return;case"wiki-link":{if(!o.match)return;let i=o.match;this.settings.keepWikiBrackets?i=`[[${i}]]`:i=i.split("|")[0],navigator.clipboard.writeText(i),this.settings.showNotice&&new h.Notice(this.t("wiki-link-copied"));return}case"code-block":{navigator.clipboard.writeText((r=o.match)!=null?r:""),this.settings.showNotice&&new h.Notice(this.t("code-block-copied"));return}case"callout":{let i=(g=o.match)==null?void 0:g.replace(/\n+/g,` +`).replace(/\s+$/g,"");navigator.clipboard.writeText(i!=null?i:""),this.settings.showNotice&&new h.Notice(this.t("callout-copied"));return}default:break}}copyBlockLink(e,l,s,d=""){let o=G({blockId:e,filename:l,useBrief:s,firstLine:d,linkFormat:this.getEffectiveLinkFormat(),autoBlockDisplayText:this.settings.autoBlockDisplayText,autoEmbedBlockLink:this.settings.autoEmbedBlockLink,blockDisplayWordLimit:this.settings.blockDisplayWordLimit,blockDisplayCharLimit:this.settings.blockDisplayCharLimit});navigator.clipboard.writeText(o);let r=this.app.workspace.getActiveFile();r&&(this.lastCopyMeta=Z({clipboardText:o,sourceFilePath:r.path,blockId:e,useBrief:s,firstLine:d,autoBlockDisplayText:this.settings.autoBlockDisplayText,autoEmbedBlockLink:this.settings.autoEmbedBlockLink,blockDisplayWordLimit:this.settings.blockDisplayWordLimit,blockDisplayCharLimit:this.settings.blockDisplayCharLimit})),this.settings.showNotice&&new h.Notice(this.t("block-id-copied"))}copyHeadingLink(e,l){var g,i,n,a,p,k,m;let s;if(this.settings.useFrontmatterAsDisplay){let f=(m=(i=(g=this.app.workspace).getActiveFile)==null?void 0:i.call(g))!=null?m:(k=(p=(a=(n=this.app.workspace).getActiveViewOfType)==null?void 0:a.call(n,h.MarkdownView))==null?void 0:p.file)!=null?k:null;if(f){let y=this.app.metadataCache.getFileCache(f),u=y==null?void 0:y.frontmatter,b=this.settings.frontmatterKey||"title";u&&typeof u[b]=="string"&&u[b].trim()&&(s=u[b].trim())}}let{link:d,isNoteLink:o}=z({heading:e,filename:l,frontmatterTitle:s,linkFormat:this.getEffectiveLinkFormat(),useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText,headingLinkSeparator:this.settings.headingLinkSeparator,strictHeadingMatch:this.settings.strictHeadingMatch,simplifiedHeadingToNoteLink:this.settings.simplifiedHeadingToNoteLink,enableDisplayNameRegex:this.settings.enableDisplayNameRegex,displayNameRegexFrom:this.settings.displayNameRegexFrom,displayNameRegexTo:this.settings.displayNameRegexTo});navigator.clipboard.writeText(d);let r=this.app.workspace.getActiveFile();r&&(this.lastCopyMeta=j({clipboardText:d,sourceFilePath:r.path,heading:e,filename:l,frontmatterTitle:s,useHeadingAsDisplayText:this.settings.useHeadingAsDisplayText,headingLinkSeparator:this.settings.headingLinkSeparator,isNoteLink:o})),o&&new h.Notice(this.t("note-link-simplified")),this.settings.showNotice&&new h.Notice(this.t(o?"note-link-copied":"heading-copied"))}copyCurrentFileLink(){var d,o,r,g,i,n,a,p,k,m,f,y,u,b;let e;if(this.settings.useFrontmatterAsDisplay){let I=(a=(o=(d=this.app.workspace).getActiveFile)==null?void 0:o.call(d))!=null?a:(n=(i=(g=(r=this.app.workspace).getActiveViewOfType)==null?void 0:g.call(r,h.MarkdownView))==null?void 0:i.file)!=null?n:null;if(I){let x=this.app.metadataCache.getFileCache(I),T=x==null?void 0:x.frontmatter,w=this.settings.frontmatterKey||"title";T&&typeof T[w]=="string"&&T[w].trim()&&(e=T[w].trim())}}let l=(b=(k=(p=this.app.workspace).getActiveFile)==null?void 0:k.call(p))!=null?b:(u=(y=(f=(m=this.app.workspace).getActiveViewOfType)==null?void 0:f.call(m,h.MarkdownView))==null?void 0:y.file)!=null?u:null;if(!l){new h.Notice(this.t("no-file"));return}let s=X({filename:l.basename,filePath:l.path,displayText:e,linkFormat:this.getEffectiveLinkFormat()});navigator.clipboard.writeText(s),this.lastCopyMeta=Y({clipboardText:s,sourceFilePath:l.path,displayText:e}),this.settings.showNotice&&new h.Notice(this.t("file-link-copied"))}async insertBlockIdAndCopyLink(e,l,s=!1){let d="";if(s){let a=await new Promise(p=>{new F(this.app,this.t("modal-block-id"),this.t("modal-block-id-desc"),this.t.bind(this),k=>{p(k!=null?k:null)}).open()});if(!a)return;d=a}else d=`${Math.random().toString(36).substring(2,8)}`;let o=e.getCursor(),{start:r,end:g}=this.detectBlockRange(e,o.line),i=e.getLine(r),n=e.getLine(g);if(!/\^[a-zA-Z0-9_-]+$/.test(n.trim())){let a="^"+d,p=n.startsWith("> ")||n.startsWith("```")||n.startsWith("$$"),k=n.trim().length>0&&!n.endsWith(" "),m=this.settings.blockIdInsertPosition;if(p)a=` +`+a;else switch(m){case"end-of-block":k&&(a=" "+a);break;case"next-line":a=` +`+a;break;default:a=` +`+a;break}e.replaceRange(a,{line:g,ch:n.length});let f=!s;this.copyBlockLink(d,l,f,i)}}initializeI18n(){let e=this.getObsidianLanguage(),l="en";e.startsWith("zh")&&(e==="zh-tw"?l="zh-tw":l="zh"),this.i18n=new S(l)}getObsidianLanguage(){return(0,h.getLanguage)()}getEffectiveLinkFormat(){return this.settings.linkFormat!=="obsidian"?this.settings.linkFormat:this.app.vault.getConfig("useMarkdownLinks")?"markdown-link":"wiki-link"}}; /* nosourcemap */ \ No newline at end of file diff --git a/.obsidian/plugins/easy-copy/manifest.json b/.obsidian/plugins/easy-copy/manifest.json index aae936d..844395a 100644 --- a/.obsidian/plugins/easy-copy/manifest.json +++ b/.obsidian/plugins/easy-copy/manifest.json @@ -1,7 +1,7 @@ { "id": "easy-copy", "name": "Easy Copy", - "version": "1.6.4", + "version": "1.7.1", "minAppVersion": "1.8.7", "description": "Easily copy the text within inline code, bold text (and many other formats), or quickly generate an elegant link to a heading.", "author": "Moy", diff --git a/.obsidian/plugins/inline-spoilers/main.js b/.obsidian/plugins/inline-spoilers/main.js new file mode 100644 index 0000000..66f5dca --- /dev/null +++ b/.obsidian/plugins/inline-spoilers/main.js @@ -0,0 +1,8 @@ +/*! + * Inline Spoilers for Obsidian + * https://github.com/logonoff/obsidian-inline-spoilers + * SPDX-License-Identifier: GPL-3.0-or-later + */ +"use strict";var u=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var C=(t,e)=>{for(var i in e)u(t,i,{get:e[i],enumerable:!0})},_=(t,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of N(e))!A.call(t,o)&&o!==i&&u(t,o,{get:()=>e[o],enumerable:!(s=y(e,o))||s.enumerable});return t};var v=t=>_(u({},"__esModule",{value:!0}),t);var H={};C(H,{default:()=>g});module.exports=v(H);var D=require("@codemirror/language"),x=require("@codemirror/state"),c=require("@codemirror/view"),n=require("obsidian"),P=/\|\|(.+?)\|\|/g,M="p, li, h1, h2, h3, h4, h5, h6, blockquote, em, strong, b, i, a, th, td",T=t=>{if(t.nodeType===Node.TEXT_NODE){if(!t.textContent||!t.parentNode)return;let e=t.textContent.split(/(\|\|[^|]+\|\|)/g),i=document.createDocumentFragment();for(let s of e)if(P.test(s)){let o=s.slice(2,-2),l=createSpan({cls:"inline_spoilers-spoiler",text:o});i.appendChild(l)}else{let o=document.createTextNode(s);i.appendChild(o)}t.parentNode.replaceChild(i,t)}else t.nodeType===Node.ELEMENT_NODE&&Array.from(t.childNodes).forEach(T)},w=(t,e)=>{let i=t.findAll(M);for(let o of i)Array.from(o.childNodes).forEach(T);let s=t.findAll(".inline_spoilers-spoiler");for(let o of s)e.registerDomEvent(o,"click",()=>{o.classList.toggle("inline_spoilers-revealed")})},V=t=>{let e=Array.from(t.containerEl.querySelectorAll(".inline_spoilers-spoiler"));for(let i of e){let s=i.parentNode,o=document.createTextNode(`||${i.innerText}||`);s&&s.replaceChild(o,i)}},L=c.Decoration.mark({class:"inline_spoilers-editor-spoiler",tagName:"span"}),R=c.Decoration.mark({class:"inline_spoilers-editor-spoiler-delimiter",tagName:"span"}),m=class{constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}destroy(){}buildDecorations(e){let i=new x.RangeSetBuilder,s=[];for(let{from:o,to:l}of e.visibleRanges)(0,D.syntaxTree)(e.state).iterate({from:o,to:l,enter(E){let k=e.state.sliceDoc(E.from,E.to),h;for(;(h=P.exec(k))!==null;){let a=h.index,p=a+h[0].length,S=e.state.sliceDoc(a,p);!S.startsWith("||")&&!S.endsWith("||")||(s.push({from:a,to:a+2,isDelimiter:!0}),s.push({from:a+2,to:p-2,isDelimiter:!1}),s.push({from:p-2,to:p,isDelimiter:!0}))}}});s.sort((o,l)=>o.from-l.from);for(let o of s)i.add(o.from,o.to,o.isDelimiter?R:L);return i.finish()}},I={decorations:t=>t.decorations},d=c.ViewPlugin.fromClass(m,I),r=[],O=t=>{r.includes(d)||r.push(d),t.updateOptions()},b=t=>{let e=r.indexOf(d);e!==-1&&r.splice(e,1),t.updateOptions()},W={showAllSpoilers:!1,enableEditorMode:!1},f=class extends n.PluginSettingTab{constructor(e,i){super(e,i),this.plugin=i}display(){let{containerEl:e}=this;e.empty(),new n.Setting(e).setName("Reveal all spoilers").setDesc("Always show all inline spoilers, regardless of whether they are clicked or not.").addToggle(i=>i.setValue(this.plugin.settings.showAllSpoilers).onChange(async s=>{this.plugin.settings.showAllSpoilers=s,this.app.workspace.containerEl.toggleClass("inline_spoilers-revealed",s),await this.plugin.saveSettings()})),new n.Setting(e).setName("Hide spoilers in editor view (experimental)").setDesc("Hide spoilers in the editor until your cursor is on the same line as the spoiler.").addToggle(i=>i.setValue(this.plugin.settings.enableEditorMode).onChange(async s=>{this.plugin.settings.enableEditorMode=s,s?O(this.app.workspace):b(this.app.workspace),await this.plugin.saveSettings()}))}},g=class extends n.Plugin{async onload(){await this.loadSettings();let e=this.app.workspace.containerEl.querySelector(".markdown-reading-view");e&&w(e,this),this.registerMarkdownPostProcessor(i=>{w(i,this)}),this.addCommand({id:"create-spoiler",name:"Create spoiler",editorCallback:i=>{let s=i.getSelection();i.replaceSelection(`||${s}||`)}}),this.registerEditorExtension(r),this.addSettingTab(new f(this.app,this))}onunload(){this.app.workspace.containerEl.classList.remove("inline_spoilers-revealed"),V(this.app.workspace),b(this.app.workspace)}async loadSettings(){this.settings=Object.assign({},W,await this.loadData()),this.app.workspace.containerEl.toggleClass("inline_spoilers-revealed",this.settings.showAllSpoilers),this.settings.enableEditorMode&&r.push(d)}async saveSettings(){await this.saveData(this.settings)}}; + +/* nosourcemap */ \ No newline at end of file diff --git a/.obsidian/plugins/inline-spoilers/manifest.json b/.obsidian/plugins/inline-spoilers/manifest.json new file mode 100644 index 0000000..c87396e --- /dev/null +++ b/.obsidian/plugins/inline-spoilers/manifest.json @@ -0,0 +1,10 @@ +{ + "id": "inline-spoilers", + "name": "Inline spoilers", + "version": "1.2.5", + "minAppVersion": "1.6.5", + "description": "Adds Discord-like syntax for inline spoilers.", + "author": "logonoff", + "authorUrl": "https://logonoff.co", + "isDesktopOnly": false +} diff --git a/.obsidian/plugins/inline-spoilers/styles.css b/.obsidian/plugins/inline-spoilers/styles.css new file mode 100644 index 0000000..ec996b3 --- /dev/null +++ b/.obsidian/plugins/inline-spoilers/styles.css @@ -0,0 +1,72 @@ +/*! + * Inline Spoilers for Obsidian + * https://github.com/logonoff/obsidian-inline-spoilers + * SPDX-License-Identifier: GPL-3.0-or-later + */ +body { + --inline-spoilers-hidden-foreground: transparent; + --inline-spoilers-hidden-background: var(--interactive-accent); + + --inline-spoilers-revealed-foreground: var(--text-accent); + --inline-spoilers-revealed-background: hsla(var(--color-accent-hsl), 0.075); + + --inline-spoilers-spoiler-radius: var(--radius-s); +} + +/* spoiler bar */ +.inline_spoilers-spoiler, +.inline_spoilers-editor-spoiler, +.inline_spoilers-editor-spoiler-delimiter { + /* obscured */ + background-color: var(--inline-spoilers-hidden-background) !important; + color: var(--inline-spoilers-hidden-foreground) !important; +} + +/** used when a hidden spoiler is revealed by clicking in reader mode */ +.inline_spoilers-spoiler.inline_spoilers-revealed, + +/** used when a hidden spoiler is revealed in editor mode */ +.cm-active .inline_spoilers-editor-spoiler, +.cm-active .inline_spoilers-editor-spoiler-delimiter, + +/** used when a hidden spoiler is revealed using "Reveal all spoilers" */ +.inline_spoilers-revealed .inline_spoilers-spoiler, +.inline_spoilers-revealed .inline_spoilers-editor-spoiler, +.inline_spoilers-revealed .inline_spoilers-editor-spoiler-delimiter { + /* revealed */ + background-color: var(--inline-spoilers-revealed-background) !important; + color: var(--inline-spoilers-revealed-foreground) !important; +} + +/* reader */ +.inline_spoilers-spoiler { + border-radius: var(--inline-spoilers-spoiler-radius); +} + +/* editor */ +.is-live-preview .inline_spoilers-editor-spoiler { + border-radius: var(--inline-spoilers-spoiler-radius); +} + +.is-live-preview .cm-active .inline_spoilers-editor-spoiler { + /* contiguous border radius with the delimiter */ + border-radius: 0em; +} + +/* delimiter */ +.cm-line .inline_spoilers-editor-spoiler-delimiter { + &:has(+ .inline_spoilers-editor-spoiler) { + border-radius: var(--inline-spoilers-spoiler-radius) 0 0 var(--inline-spoilers-spoiler-radius); + } + &:is(.inline_spoilers-editor-spoiler + .inline_spoilers-editor-spoiler-delimiter) { + border-radius: 0 var(--inline-spoilers-spoiler-radius) var(--inline-spoilers-spoiler-radius) 0; + } +} + +.is-live-preview .inline_spoilers-editor-spoiler-delimiter { + display: none; +} + +.is-live-preview .cm-active .inline_spoilers-editor-spoiler-delimiter { + display: unset; +} diff --git a/.obsidian/plugins/obsidian-excalidraw-plugin/data.json b/.obsidian/plugins/obsidian-excalidraw-plugin/data.json index 6159651..68c2f1a 100644 --- a/.obsidian/plugins/obsidian-excalidraw-plugin/data.json +++ b/.obsidian/plugins/obsidian-excalidraw-plugin/data.json @@ -85,7 +85,7 @@ "pageTransclusionCharLimit": 200, "wordWrappingDefault": 0, "removeTransclusionQuoteSigns": true, - "iframelyAllowed": true, + "oEmbedAllowed": false, "pngExportScale": 1, "exportWithTheme": true, "exportWithBackground": true, @@ -99,6 +99,7 @@ "embedType": "excalidraw", "embedMarkdownCommentLinks": true, "embedWikiLink": true, + "embedPlaceholderImage": true, "syncExcalidraw": false, "experimentalFileType": false, "experimentalFileTag": "✏️", @@ -111,6 +112,7 @@ "zoteroCompatibility": false, "fieldSuggester": true, "enableOnloadScripts": false, + "enableCommandLinks": false, "compatibilityMode": false, "drawingOpenCount": 0, "library": "deprecated", diff --git a/.obsidian/plugins/obsidian-excalidraw-plugin/main.js b/.obsidian/plugins/obsidian-excalidraw-plugin/main.js index 554047d..c5453e8 100644 --- a/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +++ b/.obsidian/plugins/obsidian-excalidraw-plugin/main.js @@ -1,10 +1,10 @@ "use strict";var obsidian_module=require("obsidian"),view=require("@codemirror/view"),commands=require("@codemirror/commands"),lr=require("@lezer/lr"),language=require("@codemirror/language"),state=require("@codemirror/state");;const INITIAL_TIMESTAMP=Date.now();var LZString=function(){var r=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e={};function t(r,o){if(!e[r]){e[r]={};for(var n=0;n>>8,n[2*e+1]=s%256}return n},decompressFromUint8Array:function(o){if(null==o)return i.decompress(o);for(var n=new Array(o.length/2),e=0,t=n.length;e>=1}else{for(t=1,e=0;e>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[c]}else for(t=s[c],e=0;e>=1;0==--l&&(l=Math.pow(2,h),h++),s[p]=f++,c=String(a)}if(""!==c){if(Object.prototype.hasOwnProperty.call(u,c)){if(c.charCodeAt(0)<256){for(e=0;e>=1}else{for(t=1,e=0;e>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[c]}else for(t=s[c],e=0;e>=1;0==--l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;e>=1;for(;;){if(m<<=1,v==o-1){d.push(n(m));break}v++}return d.join("")},decompress:function(r){return null==r?"":""==r?null:i._decompress(r.length,32768,function(o){return r.charCodeAt(o)})},_decompress:function(o,n,e){var t,i,s,u,a,p,c,l=[],f=4,h=4,d=3,m="",v=[],g={val:e(0),position:n,index:1};for(t=0;t<3;t+=1)l[t]=t;for(s=0,a=Math.pow(2,2),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;c=r(s);break;case 1:for(s=0,a=Math.pow(2,16),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;c=r(s);break;case 2:return""}for(l[3]=c,i=c,v.push(c);;){if(g.index>o)return"";for(s=0,a=Math.pow(2,d),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;switch(c=s){case 0:for(s=0,a=Math.pow(2,8),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;l[h++]=r(s),c=h-1,f--;break;case 1:for(s=0,a=Math.pow(2,16),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;l[h++]=r(s),c=h-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,d),d++),l[c])m=l[c];else{if(c!==h)return null;m=i+i.charAt(0)}v.push(m),l[h++]=i+m.charAt(0),i=m,0==--f&&(f=Math.pow(2,d),d++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module?module.exports=LZString:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return LZString}); let REACT_PACKAGES = `!function(){var e,t;e=this,t=function(e){function M(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=te&&e[te]||e["@@iterator"])?e:null}function t(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ne}function n(){}function r(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ne}function o(e,t,n){var r,o={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)ae.call(t,r)&&!ie.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1>>1,o=e[r];if(!(0>>1;rt)||e&&!q());){var r,o=R.callback;"function"==typeof o?(R.callback=null,P=R.priorityLevel,r=o(R.expirationTime<=t),t=v(),"function"==typeof r?R.callback=r:R===i(C)&&l(C),y(t)):l(C),R=i(C)}var u,a=null!==R||(null!==(u=i(E))&&_(d,u.startTime-t),!1);return a}finally{R=null,P=n,$=!1}}function q(){return!(v()-de")?l.replace("",n.displayName):l}while(1<=u&&0<=i);break}}}finally{xo=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?Q(n):""}function $(e){switch(e.tag){case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function q(e){if(null!=e){if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case co:return"Fragment";case so:return"Portal";case po:return"Profiler";case fo:return"StrictMode";case yo:return"Suspense";case vo:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ho:return(e.displayName||"Context")+".Consumer";case mo:return(e._context.displayName||"Context")+".Provider";case go:var n=e.render;return e=(e=e.displayName)?e:""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef";case bo:return null!==(n=e.displayName||null)?n:q(e.type)||"Memo";case ko:n=e._payload,e=e._init;try{return q(e(n))}catch(e){}}}return null}function K(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(n);case 8:return n===fo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function X(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function G(e){var n,t,r=X(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),a=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==l&&"function"==typeof l.get&&"function"==typeof l.set)return n=l.get,t=l.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return n.call(this)},set:function(e){a=""+e,t.call(this,e)}}),Object.defineProperty(e,r,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}function Z(e){e._valueTracker||(e._valueTracker=G(e))}function J(e){var n,t,r;return!(!e||(n=e._valueTracker)&&(t=n.getValue(),r="",(e=r=e?X(e)?e.checked?"true":"false":e.value:r)===t||(n.setValue(e),0)))}function ee(n){if(void 0===(n=n||("undefined"!=typeof document?document:void 0)))return null;try{return n.activeElement||n.body}catch(e){return n.body}}function ne(e,n){var t=n.checked;return g({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function te(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked,t=Y(null!=n.value?n.value:t);e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function re(e,n){null!=(n=n.checked)&&B(e,"checked",n,!1)}function le(e,n){re(e,n);var t=Y(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?oe(e,n.type,t):n.hasOwnProperty("defaultValue")&&oe(e,n.type,Y(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function ae(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(("submit"===r||"reset"===r)&&null==n.value)return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function oe(e,n,t){"number"===n&&ee(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function ue(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l>>=0)?32:31-(iu(e)/su|0)|0}function Re(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function De(e,n){var t=e.pendingLanes;if(0===t)return 0;var r,l=0,a=e.suspendedLanes,o=e.pingedLanes,u=268435455&t;if(0!==u?0!==(r=u&~a)?l=Re(r):0!==(o&=u)&&(l=Re(o)):0!==(u=t&~a)?l=Re(u):0!==o&&(l=Re(o)),0===l)return 0;if(0!==n&&n!==l&&0==(n&a)&&((o=n&-n)<=(a=l&-l)||16===a&&0!=(4194240&o)))return n;if(0!=(4&l)&&(l|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=l;0>=r,a-=r,Xi=1<<32-uu(n)+a|t<u?(i=o,o=null):i=o.sibling;var s=y(n,o,t[u],r);if(null===s){null===o&&(o=i);break}f&&o&&null===s.alternate&&d(n,o),e=h(s,e,u),null===a?l=s:a.sibling=s,a=s,o=i}if(u===t.length)p(n,o);else if(null===o)for(;uu?(i=o,o=null):i=o.sibling;var c=y(n,o,s.value,r);if(null===c){null===o&&(o=i);break}f&&o&&null===c.alternate&&d(n,o),e=h(c,e,u),null===a?l=c:a.sibling=c,a=c,o=i}if(s.done)p(n,o);else if(null===o)for(;!s.done;u++,s=t.next())null!==(s=g(n,s.value,r))&&(e=h(s,e,u),null===a?l=s:a.sibling=s,a=s);else{for(o=m(n,o);!s.done;u++,s=t.next())null!==(s=v(o,n,u,s.value,r))&&(f&&null!==s.alternate&&o.delete(null===s.key?u:s.key),e=h(s,e,u),null===a?l=s:a.sibling=s,a=s);f&&o.forEach(function(e){return d(n,e)})}return E&&vt(n,u),l}function w(e,n,t,r){if("object"==typeof(t="object"==typeof t&&null!==t&&t.type===co&&null===t.key?t.props.children:t)&&null!==t){switch(t.$$typeof){case io:e:{for(var l=t.key,a=n;null!==a;){if(a.key===l){if((l=t.type)===co){if(7===a.tag){p(e,a.sibling),(n=o(a,t.props.children)).return=e,e=n;break e}}else if(a.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===ko&&Mt(l)===a.type){p(e,a.sibling),(n=o(a,t.props)).ref=Lt(e,a,t),n.return=e,e=n;break e}p(e,a);break}d(e,a),a=a.sibling}e=t.type===co?((n=za(t.props.children,e.mode,r,t.key)).return=e,n):((r=Na(t.type,t.key,t.props,null,e.mode,r)).ref=Lt(e,n,t),r.return=e,r)}return u(e);case so:e:{for(a=t.key;null!==n;){if(n.key===a){if(4===n.tag&&n.stateNode.containerInfo===t.containerInfo&&n.stateNode.implementation===t.implementation){p(e,n.sibling),(n=o(n,t.children||[])).return=e,e=n;break e}p(e,n);break}d(e,n),n=n.sibling}(n=La(t,e.mode,r)).return=e,e=n}return u(e);case ko:return w(e,n,(a=t._init)(t._payload),r)}if(Eo(t))return b(e,n,t,r);if(H(t))return k(e,n,t,r);Tt(e,t)}return"string"==typeof t&&""!==t||"number"==typeof t?(t=""+t,(n=null!==n&&6===n.tag?(p(e,n.sibling),o(n,t)):(p(e,n),_a(t,e.mode,r))).return=e,u(e=n)):p(e,n)}return w}function Rt(){os=as=ls=null}function Dt(e,n){n=rs.current,s(rs),e._currentValue=n}function Ot(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function It(e,n){(os=as=null)!==(e=(ls=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(_=!0),e.firstContext=null)}function Ut(e){var n=e._currentValue;if(os!==e)if(e={context:e,memoizedValue:n,next:null},null===as){if(null===ls)throw Error(S(308));as=e,ls.dependencies={lanes:0,firstContext:e}}else as=as.next=e;return n}function Vt(e){null===us?us=[e]:us.push(e)}function At(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,Vt(n)):(t.next=l.next,l.next=t),n.interleaved=t,Wt(e,r)}function Wt(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),e=(t=e).return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),e=(t=e).return;return 3===t.tag?t.stateNode:null}function Bt(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ht(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qt(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function jt(e,n,t){var r,l=e.updateQueue;return null===l?null:(l=l.shared,(0!=(2&F)?(null===(r=l.pending)?n.next=n:(n.next=r.next,r.next=n),l.pending=n,is):(null===(r=l.interleaved)?(n.next=n,Vt(l)):(n.next=r.next,r.next=n),l.interleaved=n,Wt))(e,t))}function $t(e,n,t){var r;null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))&&(r=n.lanes,r&=e.pendingLanes,He(e,n.lanes=t|=r))}function qt(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null}}while(null===a?l=a=o:a=a.next=o,null!==(t=t.next));null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=t}else null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Kt(e,n,t,r){var l,a,o=e.updateQueue,u=(ss=!1,o.firstBaseUpdate),i=o.lastBaseUpdate;if(null!==(f=o.shared.pending)&&(o.shared.pending=null,a=(l=f).next,(l.next=null)===i?u=a:i.next=a,i=l,null!==(c=e.alternate))&&(f=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===f?c.firstBaseUpdate=a:f.next=a,c.lastBaseUpdate=l),null!==u){for(var s=o.baseState,i=0,c=a=l=null,f=u;;){var d=f.lane,p=f.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var m=e,h=f,d=n,p=t;switch(h.tag){case 1:if("function"==typeof(m=h.payload)){s=m.call(p,s,d);break e}s=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,s,d):m))break e;s=g({},s,d);break e;case 2:ss=!0}}null!==f.callback&&0!==f.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[f]:d.push(f))}else p={eventTime:p,lane:d,tag:f.tag,payload:f.payload,callback:f.callback,next:null},null===c?(a=c=p,l=s):c=c.next=p,i|=d;if(null===(f=f.next)){if(null===(f=o.shared.pending))break;f=(d=f).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=s),o.baseState=l,o.firstBaseUpdate=a,o.lastBaseUpdate=c,null!==(n=o.shared.interleaved))for(o=n;i|=o.lane,(o=o.next)!==n;);else null===u&&(o.shared.lanes=0);Qs|=i,e.lanes=i,e.memoizedState=s}}function Yt(e,n,t){if(e=n.effects,(n.effects=null)!==e)for(n=0;n<\\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),"select"===t&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[Li]=n,e[Ti]=r,Ls(e,n,!1,!1),n.stateNode=e;e:{switch(o=ye(t,r),t){case"dialog":c("cancel",e),c("close",e),a=r;break;case"iframe":case"object":case"embed":c("load",e),a=r;break;case"video":case"audio":for(a=0;aYs&&(n.flags|=128,wl(i,!(r=!0)),n.lanes=4194304)}else{if(!r)if(null!==(e=nr(o))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),wl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!E)return p(n),null}else 2*y()-i.renderingStartTime>Ys&&1073741824!==t&&(n.flags|=128,wl(i,!(r=!0)),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(null!==(t=i.last)?t.sibling=o:n.child=o,i.last=o)}if(null!==i.tail)return n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=y(),n.sibling=null,t=C.current,f(C,r?1&t|2:1&t),n}return p(n),null;case 22:case 23:return O=Bs.current,s(Bs),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&O)&&(p(n),6&n.subtreeFlags)&&(n.flags|=8192):p(n),null;case 24:case 25:return null}throw Error(S(156,n.tag))}function xl(e,n,t){switch(wt(n),n.tag){case 1:return h(n.type)&&(s(b),s(v)),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Zt(),s(b),s(v),tr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return er(n),null;case 13:if(s(C),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(S(340));Pt()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return s(C),null;case 4:return Zt(),null;case 10:return Dt(n.type._context),null;case 22:case 23:return O=Bs.current,s(Bs),null;default:return null}}function El(n,t){var e=n.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){w(n,t,e)}else e.current=null}function Cl(n,t,e){try{e()}catch(e){w(n,t,e)}}function Nl(e,n){if(Ei=Su,Dn(e=Rn())){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:if((a=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection())&&0!==a.rangeCount){var t=a.anchorNode,r=a.anchorOffset,l=a.focusNode,a=a.focusOffset;try{t.nodeType,l.nodeType}catch(e){t=null;break e}var o,u=0,i=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(;d!==t||0!==r&&3!==d.nodeType||(i=u+r),d!==l||0!==a&&3!==d.nodeType||(s=u+a),3===d.nodeType&&(u+=d.nodeValue.length),null!==(o=d.firstChild);)p=d,d=o;for(;;){if(d===e)break n;if(p===t&&++c===r&&(i=u),p===l&&++f===a&&(s=u),null!==(o=d.nextSibling))break;p=(d=p).parentNode}d=o}t=-1===i||-1===s?null:{start:i,end:s}}else t=null;t=t||{start:0,end:0}}else t=null;for(Su=!(Ci={focusedElem:e,selectionRange:t}),T=n;null!==T;)if(e=(n=T).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,T=e;else for(;null!==T;){n=T;try{var m,h,g,y,v=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:break;case 1:null!==v&&(m=v.memoizedProps,h=v.memoizedState,y=(g=n.stateNode).getSnapshotBeforeUpdate(n.elementType===n.type?m:Ar(n.type,m),h),g.__reactInternalSnapshotBeforeUpdate=y);break;case 3:var b=n.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(e){w(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,T=e;break}T=n.return}return v=Os,Os=!1,v}function zl(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l,a=r=r.next;do{}while((a.tag&e)===e&&(l=a.destroy,(a.destroy=void 0)!==l)&&Cl(n,t,l),(a=a.next)!==r)}}function Pl(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t,r=n=n.next;do{}while((r.tag&e)===e&&(t=r.create,r.destroy=t()),(r=r.next)!==n)}}function _l(e){var n,t=e.ref;null!==t&&(n=e.stateNode,e.tag,e=n,"function"==typeof t?t(e):t.current=e)}function Ll(e){var n=e.alternate;null!==n&&(e.alternate=null,Ll(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&(delete n[Li],delete n[Ti],delete n[Fi],delete n[Ri],delete n[Di]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tl(e){return 5===e.tag||3===e.tag||4===e.tag}function Ml(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Tl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}function Fl(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(8===t.nodeType?t.parentNode:t).insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null==(t=t._reactRootContainer)&&null===n.onclick&&(n.onclick=Jn));else if(4!==r&&null!==(e=e.child))for(Fl(e,n,t),e=e.sibling;null!==e;)Fl(e,n,t),e=e.sibling}function Rl(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Rl(e,n,t),e=e.sibling;null!==e;)Rl(e,n,t),e=e.sibling}function Dl(e,n,t){for(t=t.child;null!==t;)Ol(e,n,t),t=t.sibling}function Ol(e,n,t){if(ou&&"function"==typeof ou.onCommitFiberUnmount)try{ou.onCommitFiberUnmount(au,t)}catch(e){}switch(t.tag){case 5:L||El(t,n);case 6:var r=M,l=Is;M=null,Dl(e,n,t),Is=l,null!==(M=r)&&(Is?(e=M,t=t.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(t)):M.removeChild(t.stateNode));break;case 18:null!==M&&(Is?(e=M,t=t.stateNode,8===e.nodeType?tt(e.parentNode,t):1===e.nodeType&&tt(e,t),Je(e)):tt(M,t.stateNode));break;case 4:r=M,l=Is,M=t.stateNode.containerInfo,Is=!0,Dl(e,n,t),M=r,Is=l;break;case 0:case 11:case 14:case 15:if(!L&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=(o=l).destroy,o=o.tag}while(void 0===a||0==(2&o)&&0==(4&o)||Cl(t,n,a),(l=l.next)!==r)}Dl(e,n,t);break;case 1:if(!L&&(El(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){w(t,n,e)}Dl(e,n,t);break;case 21:Dl(e,n,t);break;case 22:1&t.mode?(L=(r=L)||null!==t.memoizedState,Dl(e,n,t),L=r):Dl(e,n,t);break;default:Dl(e,n,t)}}function Il(t){var r,e=t.updateQueue;null!==e&&((t.updateQueue=null)===(r=t.stateNode)&&(r=t.stateNode=new Ds),e.forEach(function(e){var n=ka.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}function Ul(e,n,t){if(null!==(t=n.deletions))for(var r=0;r