vault backup: 2025-07-17 16:06:16

This commit is contained in:
CrazyJasonwell committed 2025-07-17 16:06:16 +08:00
1 parent 21298fa9c4
commit 4f9db6f437
17 files changed
+42923 -98

No files matched your search

+4 -1
View File
@@ -39,5 +39,8 @@
"recent-files-obsidian",
"diary-ics",
"sync-contacts-macos",
"cubox-sync"
"cubox-sync",
"obsidian-annotator",
"oz-image-plugin",
"file-tree-alternative"
]
+29
View File
@@ -0,0 +1,29 @@
{
"openViewOnStart": true,
"ribbonIcon": true,
"showRootFolder": true,
"showFilesFromSubFolders": true,
"searchFunction": true,
"allSearchOnlyInFocusedFolder": false,
"showFilesFromSubFoldersButton": true,
"revealActiveFileButton": false,
"excludedExtensions": "",
"hideAttachments": false,
"attachmentsFolderName": "attachments",
"folderIcon": "default",
"folderCount": true,
"folderCountOption": "notes",
"evernoteView": "Vertical",
"filePreviewOnHover": false,
"iconBeforeFileName": true,
"sortFilesBy": "name",
"sortReverse": false,
"sortFoldersBy": "name",
"fixedHeaderInFileList": true,
"createdYaml": false,
"fileNameIsHeader": false,
"folderNote": false,
"deleteFileOption": "trash",
"showFileNameAsFullPath": false,
"bookmarksEvents": false
}
File diff suppressed because it is too large. Load diff
+11
View File
@@ -0,0 +1,11 @@
{
"id": "file-tree-alternative",
"name": "File Tree Alternative",
"version": "2.6.0",
"minAppVersion": "0.15.0",
"description": "This plugin allows you to have an alternative file tree view.",
"author": "Ozan Tellioglu",
"authorUrl": "https://www.ozan.pl",
"fundingUrl": "https://ko-fi.com/ozante",
"isDesktopOnly": false
}
+535
View File
@@ -0,0 +1,535 @@
/* @settings
name: File Tree Alternative Plugin
id: file-tree-alternative-plugin
settings:
# Folder Pane Styles
-
id: oz-fta-folder-pane-heading
title: Folder Pane Styles
description: Style settings dedicated for only folder pane
type: heading
level: 1
collapsed: true
-
id: oz-fta-folder-font-size
title: Folder Pane | Folder Name Font Size
description: Set folder pane font size in px
type: variable-number
default: 14
format: px
-
id: oz-fta-folder-icon-color
title: Folder Pane | Collapse/Expand Icon Color
description: Set the color of folder icons
type: variable-color
format: hex
default: '#2d8ff7'
-
id: oz-fta-folder-indendation-guide-color
title: Folder Pane | Indendation Guide Color
description: Set the color of indendation guide lines
type: variable-color
format: hex
default: '#ededeb'
-
id: oz-fta-folder-pane-file-name-color
title: Folder Pane | Folder Name Color
description: Set the color of names
type: variable-color
format: hex
default: '#'
# File Pane Styles
-
id: oz-fta-file-pane-heading
title: File Pane Styles
description: Style settings dedicated for only file pane
type: heading
level: 1
collapsed: true
-
id: oz-fta-file-font-size
title: File Pane | File Name Font Size
description: Set file pane font size in px
type: variable-number
default: 13
format: px
-
id: oz-fta-file-pane-file-name-color
title: File Pane | File Name Color
description: Set the color of names
type: variable-color
format: hex
default: '#'
-
id: oz-fta-file-pane-foldername-color
title: File Pane | Header Folder Name Color
description: Set the color of folder name in the file pane
type: variable-color
format: hex
default: '#'
# All Panes Styles
-
id: oz-fta-all-panes-heading
title: All Panes
description: Common style settings for both folder and file panes
type: heading
level: 1
collapsed: true
-
id: oz-fta-header-background-color
title: All Panes | Header Background Color
description: Set the background color of headers in both file and folder panes
type: variable-color
format: hex
default: '#'
-
id: oz-fta-header-icon-colors
title: All Panes | Header Action Icons Color
description: Set the color of icons in file and folder panes
type: variable-color
format: hex
alt-format:
-
id: oz-fta-header-icon-colors-accent-rgb
format: rgb
default: '#'
-
id: oz-fta-all-panes-active-text-color
title: All Panes | Active File/Folder Name Color
description: Set the color of active file and folder name
type: variable-color
format: hex
default: '#'
-
id: oz-fta-file-pane-active-file-background-color
title: File Pane | Active File Background Color
description: Set the color of active file background color
type: variable-color
format: hex
default: '#'
*/
.theme-light,
.theme-dark {
--oz-fta-folder-font-size: 13px;
--oz-fta-file-font-size: 12px;
--oz-fta-folder-icon-color: var(--interactive-accent);
--oz-fta-folder-indendation-guide-color: var(--text-muted);
--oz-fta-header-background-color: var(--background-secondary-alt);
--oz-fta-header-icon-colors: var(--text-muted);
--oz-fta-file-pane-foldername-color: var(--text-normal);
--oz-fta-folder-pane-file-name-color: var(--text-normal);
--oz-fta-header-icon-colors-accent-rgb: var(--interactive-accent-hover);
--oz-fta-all-panes-active-text-color: var(--text-normal);
--oz-fta-file-pane-active-file-background-color: var(--background-secondary-alt);
--oz-fta-file-pane-file-name-color: var(--text-muted);
}
.oz-file-tree-header {
color: var(--oz-fta-file-pane-foldername-color);
background: var(--oz-fta-header-background-color);
margin-top: 3px;
font-size: 15px;
font-weight: bold;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
align-items: center;
width: fit-content;
min-width: -webkit-fill-available;
min-width: fill-available;
height: fit-content;
padding: 5px 0px 5px;
border-radius: 8px;
}
.oz-nav-action-button {
color: var(--oz-fta-header-icon-colors);
display: inline-block;
padding: 0px 0px 0px 2px;
margin-left: 5px;
opacity: 0.5;
border-radius: 8px;
opacity: 1;
}
.oz-nav-action-button:hover {
opacity: 0.6;
}
.oz-nav-action-button svg {
vertical-align: middle !important;
}
.oz-input-container {
margin-bottom: 3px !important;
margin-top: 3px !important;
height: 30px;
}
.oz-input-container input {
width: 100%;
}
.oz-nav-buttons-right-block {
text-align: right;
display: flex;
width: fit-content;
height: min-content;
}
.oz-nav-file-title {
color: var(--oz-fta-file-pane-file-name-color);
font-size: var(--oz-fta-file-font-size);
width: calc(100% - 30px);
display: flex;
white-space: nowrap;
min-width: 100%;
cursor: pointer;
line-height: 19px;
border-radius: 3px;
padding: 1px 2px 0px 2px;
min-width: 100%;
border: 1px solid transparent;
}
.oz-nav-file-title .oz-nav-file-title-content {
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
display: inline-block;
}
.oz-nav-file {
border-bottom: 1px solid var(--divider-color);
}
div.oz-nav-file.is-active,
div.oz-nav-file.is-active div.oz-nav-file-title,
div.oz-nav-file.is-active div.oz-nav-file-title-content {
background-color: var(--oz-fta-file-pane-active-file-background-color);
color: var(--oz-fta-all-panes-active-text-color);
font-weight: bold;
}
.is-folder-active {
color: var(--oz-fta-all-panes-active-text-color) !important;
font-weight: bold;
}
.oz-nav-file-tag {
/* @Consider */
color: var(--text-muted);
background-color: var(--background-secondary-alt);
border-radius: 3px;
font-size: 9px;
font-weight: 600;
letter-spacing: 0.05em;
margin: 0px 2px 0px 4px;
text-transform: uppercase;
align-self: center;
padding: 0px 4px 0px 4px;
vertical-align: middle !important;
line-height: 13px;
}
div.workspace-leaf-content[data-type='file-tree-view'] > div.view-content {
padding: 10px 5px 5px 5px;
}
.oz-flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
height: min-content;
padding: 2px 2px 2px 2px;
}
.oz-folders-action-items {
text-align: center;
padding: 3px 2px 0px 2px;
}
.oz-folders-action-items,
.oz-flex-container {
background: var(--oz-fta-header-background-color);
border: 1px solid var(--oz-fta-header-background-color);
margin-bottom: 3px;
border-radius: 8px;
stroke-width: 2px;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
}
.oz-explorer-container {
padding-left: 3px !important;
padding-right: 3px !important;
}
.oz-file-tree-files {
padding-top: 3px !important;
}
.drag-entered,
.oz-folder-element:hover,
.oz-nav-file:hover {
background-color: var(--background-secondary-alt);
color: var(--text-normal);
}
.oz-nav-file {
margin-left: 3px;
padding-right: 3px;
}
.oz-folder-contents {
will-change: transform, opacity, height;
margin-left: 6;
padding-left: 14px;
border-left: 2px solid var(--oz-fta-folder-indendation-guide-color);
margin-left: 5px !important;
}
.oz-folder-toggle {
width: 1em;
height: 1em;
margin-right: 10px;
cursor: pointer;
vertical-align: middle;
}
.treeview {
position: relative;
padding: 0px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
vertical-align: middle;
}
.oz-folder-type {
text-transform: uppercase;
font-family: monospace;
font-size: 0.6em;
vertical-align: middle;
display: inline-block;
}
.oz-folder-name {
color: var(--oz-fta-folder-pane-file-name-color);
font-size: var(--oz-fta-folder-font-size);
vertical-align: middle;
display: inline-block;
}
div.oz-folder-name.is-root-folder {
font-size: calc(var(--oz-fta-folder-font-size) + 2px);
}
.oz-icon-div {
display: inline-block;
}
.oz-folder-line {
display: flex;
flex-flow: row;
white-space: nowrap;
min-width: 100%;
}
.oz-folder-block {
display: flex;
flex-grow: 1;
padding-top: 2px;
}
.oz-folder-count {
margin-left: auto;
height: 1.4em;
display: flex;
justify-content: center;
}
.oz-folder-element {
line-height: 1.4em;
padding: 0px 0px 0px 0px;
}
.oz-folders-tree-wrapper {
overflow: hidden;
overflow-y: auto;
padding-bottom: 5px;
padding-left: 8px;
height: 100%;
}
.oz-input-container > input {
padding-left: 8px;
padding-right: 4px;
}
.file-tree-container {
display: flex;
flex-direction: column;
height: 100%;
max-height: 100%;
}
.file-tree-plugin-view {
height: 100%;
}
.oz-folder-pane {
display: block;
width: 100%;
overflow-y: auto;
height: 50%;
resize: vertical;
}
.oz-file-list-pane {
display: block;
width: 100%;
overflow-y: auto;
flex: 1;
}
.oz-coffee-div {
text-align: center;
margin-top: 10px;
}
#file-tree-divider {
height: 3.8px;
opacity: 0.3;
cursor: row-resize;
margin-bottom: 5px;
border-bottom: 3px solid var(--text-muted);
}
div#file-tree-divider.active-divider {
background-color: var(--interactive-accent);
border-bottom: 0.5px solid var(--interactive-accent);
}
#file-tree-divider:hover {
background-color: var(--text-muted);
}
.file-tree-container-horizontal {
display: flex;
flex-direction: row;
height: 100%;
max-width: 100%;
}
.oz-folder-pane-horizontal {
display: block;
width: 50%;
overflow-y: auto;
height: 100%;
resize: horizontal;
}
.oz-file-list-pane-horizontal {
display: block;
height: 100%;
overflow-y: auto;
flex: 1;
}
#file-tree-divider-horizontal {
margin-left: 5px;
width: 3.8px;
opacity: 0.3;
cursor: col-resize;
margin-right: 3px;
border-right: 3px solid var(--text-muted);
}
div#file-tree-divider-horizontal.active-divider {
background-color: var(--interactive-accent);
border-bottom: 0.5px solid var(--interactive-accent);
}
#file-tree-divider-horizontal:hover {
background-color: var(--text-muted);
}
.file-tree-header-fixed {
position: sticky;
top: 0;
padding-left: 4px;
padding-right: 4px;
z-index: 100;
}
.file-tree-files-fixed {
display: flex;
flex-direction: column;
}
.file-tree-files-fixed-with-search {
display: flex;
flex-direction: column;
}
svg.oz-folder-toggle path {
fill: var(--oz-fta-folder-icon-color) !important;
}
/* Solution for React-Icon Center Issue */
.oz-folder-name svg {
vertical-align: middle !important;
}
.oz-nav-file-icon {
line-height: 1;
display: inline-block;
font-weight: normal;
font-style: normal;
font-variant: normal;
margin-right: 2px;
padding-bottom: 2.5px;
vertical-align: middle;
}
/* Mobile Adjustments */
.is-mobile .oz-nav-file-title {
line-height: 21px;
}
.is-mobile .oz-flex-container {
height: 31px;
}
.is-mobile .oz-folder-name.is-root-folder {
font-size: calc(var(--oz-fta-folder-font-size) + 2.5px);
}
.is-mobile .oz-folder-name {
font-size: var(--oz-fta-folder-font-size);
}
.is-mobile div.oz-nav-file-title .nav-file-title-content {
font-size: calc(var(--oz-fta-file-font-size) + 3px);
}
.is-mobile .oz-input-container > input {
height: 33px;
}
.is-mobile .oz-nav-action-button svg {
transform: scale(1.2);
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "obsidian-annotator",
"name": "Annotator",
"version": "0.2.11",
"minAppVersion": "1.0.3",
"description": "This is a sample plugin for Obsidian. It allows you to open and annotate PDF and EPUB files.",
"author": "Obsidian",
"authorUrl": "https://obsidian.md/about",
"isDesktopOnly": false
}
+170
View File
@@ -0,0 +1,170 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var sI=Object.create;var Du=Object.defineProperty;var oI=Object.getOwnPropertyDescriptor;var uI=Object.getOwnPropertyNames;var cI=Object.getPrototypeOf,lI=Object.prototype.hasOwnProperty;var fI=(e,t,r)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var Pi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nn=(e,t)=>{for(var r in t)Du(e,r,{get:t[r],enumerable:!0})},F_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uI(t))!lI.call(e,i)&&i!==r&&Du(e,i,{get:()=>t[i],enumerable:!(n=oI(t,i))||n.enumerable});return e};var ln=(e,t,r)=>(r=e!=null?sI(cI(e)):{},F_(t||!e||!e.__esModule?Du(r,"default",{value:e,enumerable:!0}):r,e)),B_=e=>F_(Du({},"__esModule",{value:!0}),e);var ql=(e,t,r)=>(fI(e,typeof t!="symbol"?t+"":t,r),r),dp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Mi=(e,t,r)=>(dp(e,t,"read from private field"),r?r.call(e):t.get(e)),ku=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},hp=(e,t,r,n)=>(dp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var $_=(e,t,r)=>(dp(e,t,"access private method"),r);var H_,U_=v(()=>{H_="5"});var Wn=v(()=>{U_();typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(H_)});var va,is,as,Fi,Pt,Ht,V_,q_,bt=v(()=>{va="[",is="[!",as="]",Fi={},Pt=Symbol(),Ht=Symbol("filename"),V_=Symbol("hmr"),q_="http://www.w3.org/1999/xhtml"});var zl,z_=v(()=>{zl=!0});var Y_,se,K_=v(()=>{Y_=globalThis.process?.env?.NODE_ENV,se=Y_&&!Y_.toLowerCase().startsWith("prod")});var j_=v(()=>{});var mt=v(()=>{z_();K_();j_()});var xr,ss,Ru,W_,Nt=v(()=>{xr=Symbol("$state"),ss=Symbol("$state metadata"),Ru=Symbol("legacy props"),W_=Symbol("")});function xa(e){return typeof e=="function"}function X_(e){return e()}function os(e){for(var t=0;t<e.length;t++)e[t]()}var fn,G_,Lu,pp,Kt,Kr,Yl,mp,Q_,Ta,Ut,it=v(()=>{fn=Array.isArray,G_=Array.prototype.indexOf,Lu=Array.from,pp=Object.keys,Kt=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Yl=Object.getOwnPropertyDescriptors,mp=Object.prototype,Q_=Array.prototype,Ta=Object.getPrototypeOf;Ut=()=>{}});function Z_(){var e=Pu;Pu=[],os(e)}function J_(){var e=Mu;Mu=[],os(e)}function dn(e){Pu.length===0&&queueMicrotask(Z_),Pu.push(e)}function eb(e){Mu.length===0&&dI(J_),Mu.push(e)}function gp(){Pu.length>0&&Z_(),Mu.length>0&&J_()}var dI,Pu,Mu,On=v(()=>{it();dI=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback,Pu=[],Mu=[]});function Kl(e){return e===this.v}function Js(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function eo(e){return!Js(e,this.v)}var us=v(()=>{});function _p(){if(se){let e=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function tb(){if(se){let e=new Error(`derived_references_self
A derived value cannot reference itself recursively
https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function rb(e){if(se){let t=new Error(`effect_in_teardown
\`${e}\` cannot be used inside an effect cleanup function
https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function nb(){if(se){let e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ib(e){if(se){let t=new Error(`effect_orphan
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function ab(){if(se){let e=new Error(`effect_update_depth_exceeded
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sb(){if(se){let e=new Error(`hydration_failed
Failed to hydrate the application
https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function ob(e){if(se){let t=new Error(`props_invalid_value
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function ub(e){if(se){let t=new Error(`rune_outside_svelte
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function cb(){if(se){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lb(){if(se){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fb(){if(se){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function db(){if(se){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var hn=v(()=>{mt()});function hb(){mi=!0}var mi,gi,Bi=v(()=>{mi=!1,gi=!1});var bp=v(()=>{mt()});var Fu=v(()=>{mt();bp();it()});function $i(e){let t=Error(),r=t.stack;if(r){let n=r.split(`
`),i=[`
`];for(let a=0;a<n.length;a++){let o=n[a];if(o!=="Error"){if(o.includes("validate_each_keys"))return null;o.includes("svelte/src/internal")||i.push(o)}}if(i.length===1)return null;Kt(t,"stack",{value:i.join(`
`)}),Kt(t,"name",{value:`${e}Error`})}return t}var Bu,to=v(()=>{bt();Fu();it();Nt();He();Ge();Bu=null});function xp(e){cs=e}function Mt(e,t){var r={f:0,v:e,reactions:null,equals:Kl,rv:0,wv:0};return se&&gi&&(r.created=t??$i("CreatedAt"),r.debug=null),r}function Xn(e){return mb(Mt(e))}function _i(e,t=!1){let r=Mt(e);return t||(r.equals=eo),mi&&Pe!==null&&Pe.l!==null&&(Pe.l.s??=[]).push(r),r}function ft(e,t=!1){return mb(_i(e,t))}function mb(e){return $e!==null&&!gn&&$e.f&2&&(Gn===null?_b([e]):Gn.push(e)),e}function oe(e,t){return $e!==null&&!gn&&bi()&&$e.f&18&&(Gn===null||!Gn.includes(e))&&db(),no(e,t)}function no(e,t){if(!e.equals(t)){var r=e.v;if(fs?ro.set(e,t):ro.set(e,r),e.v=t,e.wv=Hu(),se&&gi&&(e.updated=$i("UpdatedAt"),Oe!=null&&(e.trace_need_increase=!0,e.trace_v??=r)),gb(e,2048),bi()&&Oe!==null&&Oe.f&1024&&!(Oe.f&96)&&(pn===null?bb([e]):pn.push(e)),se&&cs.size>0){let n=Array.from(cs);for(let i of n)i.f&1024&&Ar(i,4096),Ui(i)&&ds(i);cs.clear()}}return t}function gb(e,t){var r=e.reactions;if(r!==null)for(var n=bi(),i=r.length,a=0;a<i;a++){var o=r[a],l=o.f;if(!(l&2048)&&!(!n&&o===Oe)){if(se&&l&262144){cs.add(o);continue}Ar(o,t),l&1280&&(l&2?gb(o,4096):io(o))}}}var cs,ro,yr=v(()=>{mt();Ge();us();Nt();hn();Bi();to();Ot();cs=new Set,ro=new Map});function kn(e){var t=2050,r=$e!==null&&$e.f&2?$e:null;Oe===null||r!==null&&r.f&256?t|=256:Oe.f|=1048576;let n={ctx:Pe,deps:null,effects:null,equals:Kl,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??Oe};return se&&gi&&(n.created=$i("CreatedAt")),n}function Br(e){let t=kn(e);return t.equals=eo,t}function jl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)lr(t[r])}}function hI(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t;t=t.parent}return null}function pI(e){var t,r=Oe;if(Wt(hI(e)),se){let n=cs;xp(new Set);try{yp.includes(e)&&tb(),yp.push(e),jl(e),t=Wl(e)}finally{Wt(r),xp(n),yp.pop()}}else try{jl(e),t=Wl(e)}finally{Wt(r)}return t}function wp(e){var t=pI(e),r=(Vi||e.f&256)&&e.deps!==null?4096:1024;Ar(e,r),e.equals(t)||(e.v=t,e.wv=Hu())}var yp,hs=v(()=>{mt();Nt();Ge();us();hn();He();yr();to();Bi();Ot();yp=[]});function Eb(e,t,r){se?console.warn(`%c[svelte] hydration_attribute_changed
%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
https://svelte.dev/e/hydration_attribute_changed`,ao,so):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function vb(e){se?console.warn(`%c[svelte] hydration_html_changed
%c${e?`The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
https://svelte.dev/e/hydration_html_changed`,ao,so):console.warn("https://svelte.dev/e/hydration_html_changed")}function ps(e){se?console.warn(`%c[svelte] hydration_mismatch
%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
https://svelte.dev/e/hydration_mismatch`,ao,so):console.warn("https://svelte.dev/e/hydration_mismatch")}function Tb(){se?console.warn(`%c[svelte] lifecycle_double_unmount
%cTried to unmount a component that was not mounted
https://svelte.dev/e/lifecycle_double_unmount`,ao,so):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Sp(e,t){se?console.warn(`%c[svelte] ownership_invalid_mutation
%c${e?`${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
https://svelte.dev/e/ownership_invalid_mutation`,ao,so):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Gl(e){se?console.warn(`%c[svelte] state_proxy_equality_mismatch
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
https://svelte.dev/e/state_proxy_equality_mismatch`,ao,so):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var ao,so,Wr=v(()=>{mt();ao="font-weight: bold",so="font-weight: normal"});function $r(e){ge=e}function wt(e){if(e===null)throw ps(),Fi;return De=e}function Vt(){return wt(fr(De))}function Te(e){if(ge){if(fr(De)!==null)throw ps(),Fi;De=e}}function wr(e=1){if(ge){for(var t=e,r=De;t--;)r=fr(r);De=r}}function oo(){for(var e=0,t=De;;){if(t.nodeType===8){var r=t.data;if(r===as){if(e===0)return t;e-=1}else(r===va||r===is)&&(e+=1)}var n=fr(t);t.remove(),t=n}}var ge,De,Et=v(()=>{bt();Wr();Gr();ge=!1});function er(e,t=null,r){var n=null;if(se&&gi&&(n=$i("CreatedAt")),typeof e!="object"||e===null||xr in e)return e;let i=Ta(e);if(i!==mp&&i!==Q_)return e;var a=new Map,o=fn(e),l=Mt(0);o&&a.set("length",Mt(e.length,n));var d;if(se)if(d={parent:t,owners:null},r){let p=r.v?.[ss]?.owners;d.owners=p?new Set(p):null}else d.owners=t===null?Pe!==null?new Set([Pe.function]):null:new Set;return new Proxy(e,{defineProperty(p,g,E){(!("value"in E)||E.configurable===!1||E.enumerable===!1||E.writable===!1)&&cb();var _=a.get(g);return _===void 0?(_=Mt(E.value,n),a.set(g,_)):oe(_,er(E.value,d)),!0},deleteProperty(p,g){var E=a.get(g);if(E===void 0)g in p&&a.set(g,Mt(Pt,n));else{if(o&&typeof g=="string"){var _=a.get("length"),y=Number(g);Number.isInteger(y)&&y<_.v&&oe(_,y)}oe(E,Pt),xb(l)}return!0},get(p,g,E){if(se&&g===ss)return d;if(g===xr)return e;var _=a.get(g),y=g in p;if(_===void 0&&(!y||Kr(p,g)?.writable)&&(_=Mt(er(y?p[g]:Pt,d),n),a.set(g,_)),_!==void 0){var C=q(_);if(se){var k=C?.[ss];k&&k?.parent!==d&&Cp(d,k)}return C===Pt?void 0:C}return Reflect.get(p,g,E)},getOwnPropertyDescriptor(p,g){var E=Reflect.getOwnPropertyDescriptor(p,g);if(E&&"value"in E){var _=a.get(g);_&&(E.value=q(_))}else if(E===void 0){var y=a.get(g),C=y?.v;if(y!==void 0&&C!==Pt)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return E},has(p,g){if(se&&g===ss||g===xr)return!0;var E=a.get(g),_=E!==void 0&&E.v!==Pt||Reflect.has(p,g);if(E!==void 0||Oe!==null&&(!_||Kr(p,g)?.writable)){E===void 0&&(E=Mt(_?er(p[g],d):Pt,n),a.set(g,E));var y=q(E);if(y===Pt)return!1}return _},set(p,g,E,_){var y=a.get(g),C=g in p;if(o&&g==="length")for(var k=E;k<y.v;k+=1){var P=a.get(k+"");P!==void 0?oe(P,Pt):k in p&&(P=Mt(Pt,n),a.set(k+"",P))}if(y===void 0?(!C||Kr(p,g)?.writable)&&(y=Mt(void 0,n),oe(y,er(E,d)),a.set(g,y)):(C=y.v!==Pt,oe(y,er(E,d))),se){var N=E?.[ss];N&&N?.parent!==d&&Cp(d,N),yb(d)}var L=Reflect.getOwnPropertyDescriptor(p,g);if(L?.set&&L.set.call(_,E),!C){if(o&&typeof g=="string"){var H=a.get("length"),R=Number(g);Number.isInteger(R)&&R>=H.v&&oe(H,R+1)}xb(l)}return!0},ownKeys(p){q(l);var g=Reflect.ownKeys(p).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Pt});for(var[E,_]of a)_.v!==Pt&&!(E in p)&&g.push(E);return g},setPrototypeOf(){lb()}})}function xb(e,t=1){oe(e,e.v+t)}function Ql(e){return e!==null&&typeof e=="object"&&xr in e?e[xr]:e}var uo=v(()=>{mt();Ge();Ot();it();Uu();yr();Nt();bt();hn();to();Bi()});function Ab(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:i}=e;e.indexOf=function(a,o){let l=r.call(this,a,o);if(l===-1){for(let d=o??0;d<this.length;d+=1)if(Ql(this[d])===a){Gl("array.indexOf(...)");break}}return l},e.lastIndexOf=function(a,o){let l=n.call(this,a,o??this.length-1);if(l===-1){for(let d=0;d<=(o??this.length-1);d+=1)if(Ql(this[d])===a){Gl("array.lastIndexOf(...)");break}}return l},e.includes=function(a,o){let l=i.call(this,a,o);if(!l){for(let d=0;d<this.length;d+=1)if(Ql(this[d])===a){Gl("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=i}}var Ip=v(()=>{Wr();uo()});function Xl(){if(Np===void 0){Np=window,wb=document,Vu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Sb=Kr(t,"firstChild").get,Cb=Kr(t,"nextSibling").get,e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0,Text.prototype.__t=void 0,se&&(e.__svelte_meta=null,Ab())}}function Qr(e=""){return document.createTextNode(e)}function qt(e){return Sb.call(e)}function fr(e){return Cb.call(e)}function xe(e,t){if(!ge)return qt(e);var r=qt(De);if(r===null)r=De.appendChild(Qr());else if(t&&r.nodeType!==3){var n=Qr();return r?.before(n),wt(n),n}return wt(r),r}function Sr(e,t){if(!ge){var r=qt(e);return r instanceof Comment&&r.data===""?fr(r):r}if(t&&De?.nodeType!==3){var n=Qr();return De?.before(n),wt(n),n}return De}function Ye(e,t=1,r=!1){let n=ge?De:e;for(var i;t--;)i=n,n=fr(n);if(!ge)return n;var a=n?.nodeType;if(r&&a!==3){var o=Qr();return n===null?i?.after(o):n.before(o),wt(o),o}return wt(n),n}function qu(e){e.textContent=""}var Np,wb,Vu,Sb,Cb,Gr=v(()=>{Et();mt();Ip();it()});function kp(e){fs=e}function tr(e){$e=e}function Wt(e){Oe=e}function _b(e){Gn=e}function bb(e){pn=e}function Hu(){return++Rb}function Ui(e){var t=e.f;if(t&2048)return!0;if(t&4096){var r=e.deps,n=(t&256)!==0;if(r!==null){var i,a,o=( Line truncated
${i.map(g=>`
${d}in ${g}`).join("")}
`}),Kt(e,"component_stack",{value:i});let p=e.stack;if(p){let g=p.split(`
`),E=[];for(let _=0;_<g.length;_++){let y=g[_];y.includes("svelte/src/internal")||E.push(y)}Kt(e,"stack",{value:E.join(`
`)})}if(Nb(e,t),Ob(t))throw e}function Lb(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];a.f&2?Lb(a,t,!1):t===a&&(r?Ar(a,2048):a.f&1024&&Ar(a,4096),io(a))}}function Wl(e){var t=Hr,r=bn,n=pn,i=$e,a=Vi,o=Gn,l=Pe,d=gn,p=e.f;Hr=null,bn=0,pn=null,Vi=(p&256)!==0&&(gn||!ms||$e===null),$e=p&96?null:e,Gn=null,Wu(e.ctx),gn=!1,tf++;try{var g=(0,e.fn)(),E=e.deps;if(Hr!==null){var _;if(ju(e,bn),E!==null&&bn>0)for(E.length=bn+Hr.length,_=0;_<Hr.length;_++)E[bn+_]=Hr[_];else e.deps=E=Hr;if(!Vi)for(_=bn;_<E.length;_++)(E[_].reactions??=[]).push(e)}else E!==null&&bn<E.length&&(ju(e,bn),E.length=bn);if(bi()&&pn!==null&&!gn&&E!==null&&!(e.f&6146))for(_=0;_<pn.length;_++)Lb(pn[_],e);return i!==null&&(tf++,pn!==null&&(n===null?n=pn:n.push(...pn))),g}finally{Hr=t,bn=r,pn=n,$e=i,Vi=a,Gn=o,Wu(l),gn=d}}function mI(e,t){let r=t.reactions;if(r!==null){var n=G_.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&2&&(Hr===null||!Hr.includes(t))&&(Ar(t,4096),t.f&768||(t.f^=512),jl(t),ju(t,0))}function ju(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)mI(e,r[n])}function ds(e){var t=e.f;if(!(t&16384)){Ar(e,1024);var r=Oe,n=Pe,i=ms;if(Oe=e,ms=!0,se){var a=Xr;Gu(e.component_function)}try{t&16?Pb(e):Lp(e),Rp(e);var o=Wl(e);e.teardown=typeof o=="function"?o:null,e.wv=Rb;var l=e.deps;if(se&&gi&&e.f&2048&&l!==null)for(let p=0;p<l.length;p++){var d=l[p];d.trace_need_increase&&(d.wv=Hu(),d.trace_need_increase=void 0,d.trace_v=void 0)}se&&ef.push(e)}catch(p){lo(p,e,r,n||e.ctx)}finally{ms=i,Oe=r,se&&Gu(a)}}}function Db(){console.error("Last ten effects were: ",ef.slice(-10).map(e=>e.fn)),ef=[]}function gI(){try{ab()}catch(e){if(se&&Kt(e,"stack",{value:""}),zu!==null)if(se)try{lo(e,zu,null,null)}catch(t){throw Db(),t}else lo(e,zu,null,null);else throw se&&Db(),e}}function Op(){var e=ms;try{var t=0;for(ms=!0;Yu.length>0;){t++>1e3&&gI();var r=Yu,n=r.length;Yu=[];for(var i=0;i<n;i++){var a=bI(r[i]);_I(a)}}}finally{Ku=!1,ms=e,zu=null,se&&(ef=[]),ro.clear()}}function _I(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&24576))try{Ui(n)&&(ds(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pp(n):n.fn=null))}catch(i){lo(i,n,null,n.ctx)}}}function io(e){Ku||(Ku=!0,queueMicrotask(Op));for(var t=zu=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024))return;t.f^=1024}}Yu.push(t)}function bI(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&96)!==0,a=i&&(n&1024)!==0;if(!a&&!(n&8192)){if(n&4)t.push(r);else if(i)r.f^=1024;else{var o=$e;try{$e=r,Ui(r)&&ds(r)}catch(p){lo(p,r,null,r.ctx)}finally{$e=o}}var l=r.first;if(l!==null){r=l;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)r=d.next,d=d.parent}return t}function fo(e){var t;for(e&&(Ku=!0,Op(),t=e()),gp();Yu.length>0;)Ku=!0,Op(),gp();return t}async function Ei(){await Promise.resolve(),fo()}function q(e){var t=e.f,r=(t&2)!==0;if($u!==null&&$u.add(e),$e!==null&&!gn){Gn!==null&&Gn.includes(e)&&fb();var n=$e.deps;e.rv<tf&&(e.rv=tf,Hr===null&&n!==null&&n[bn]===e?bn++:Hr===null?Hr=[e]:(!Vi||!Hr.includes(e))&&Hr.push(e))}else if(r&&e.deps===null&&e.effects===null){var i=e,a=i.parent;a!==null&&!(a.f&256)&&(i.f^=256)}if(r&&(i=e,Ui(i)&&wp(i)),se&&gi&&Bu!==null&&$e!==null&&Bu.reaction===$e){if(e.debug)e.debug();else if(e.created){var o=Bu.entries.get(e);o===void 0&&(o={read:[]},Bu.entries.set(e,o)),o.read.push($i("TracedAt"))}}return fs&&ro.has(e)?ro.get(e):e.v}function at(e){var t=gn;try{return gn=!0,e()}finally{gn=t}}function Ar(e,t){e.f=e.f&EI|t}function vt(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xr in e)rf(e);else if(!Array.isArray(e))for(let t in e){let r=e[t];typeof r=="object"&&r&&xr in r&&rf(r)}}}function rf(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{rf(e[n],t)}catch{}let r=Ta(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){let n=Yl(r);for(let i in n){let a=n[i].get;if(a)try{a.call(e)}catch{}}}}}var Ib,Zl,Ku,zu,ms,fs,Yu,ef,$e,gn,Oe,Gn,Hr,bn,pn,Rb,tf,Vi,$u,EI,Ge=v(()=>{mt();it();He();Nt();On();yr();hs();hn();bt();Bi();to();Ot();Gr();Ib=new WeakSet,Zl=!1,Ku=!1,zu=null,ms=!1,fs=!1;Yu=[],ef=[],$e=null,gn=!1;Oe=null;Gn=null;Hr=null,bn=0,pn=null;Rb=1,tf=0,Vi=!1,$u=null;EI=-7169});function Fp(e){Oe===null&&$e===null&&ib(e),$e!==null&&$e.f&256&&Oe===null&&nb(),fs&&rb(e)}function vI(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function gs(e,t,r,n=!0){var i=Oe;if(se)for(;i!==null&&i.f&262144;)i=i.parent;var a={ctx:Pe,deps:null,nodes_start:null,nodes_end:null,f:e|2048,first:null,fn:t,last:null,next:null,parent:i,prev:null,teardown:null,transitions:null,wv:0};if(se&&(a.component_function=Xr),r)try{ds(a),a.f|=32768}catch(d){throw lr(a),d}else t!==null&&io(a);var o=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!o&&n&&(i!==nu Line truncated
`)){let n=xI.exec(r)??yI.exec(r);n&&t.push({file:n[1],line:+n[2],column:+n[3]})}return t}function $b(){let e=AI()?.slice(4);if(!e)return null;for(let t=0;t<e.length;t++){let r=e[t],n=TI[r.file];if(!n){if(t===0)return null;continue}for(let i of n){if(i.end==null)return null;if(i.start.line<r.line&&i.end.line>r.line)return i.component}}return null}function Cp(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function Hb(e,t){return e.owners===null?!0:e.owners.has(t)||Ht in t&&[...e.owners].some(r=>r[Ht]===t[Ht])||e.parent!==null&&Hb(e.parent,t)}function Ub(e){return e?.owners?.values().next().value??Ub(e.parent)}function yb(e){if(SI)return;let t=$b();if(t&&!Hb(e,t)){let r=Ub(e);r[Ht]!==t[Ht]?Sp(t[Ht],r[Ht]):Sp()}}var TI,xI,yI,wI,SI,Uu=v(()=>{Nt();He();Ot();it();Wr();bt();TI={},xI=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,yI=/@(.+):(\d+):(\d+)$/;wI=Symbol("ADD_OWNER");SI=!1});function po(e){if(se){let t=new Error(`lifecycle_outside_component
\`${e}(...)\` can only be used during component initialisation
https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var mo=v(()=>{mt()});function Wu(e){Pe=e}function Gu(e){Xr=e}function dr(e,t=!1,r){var n=Pe={p:Pe,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};mi&&!t&&(Pe.l={s:null,u:null,r1:[],r2:Mt(!1)}),Cr(()=>{n.d=!0}),se&&(Pe.function=r,Xr=r)}function hr(e){let t=Pe;if(t!==null){e!==void 0&&(t.x=e);let o=t.e;if(o!==null){var r=Oe,n=$e;t.e=null;try{for(var i=0;i<o.length;i++){var a=o[i];Wt(a.effect),tr(a.reaction),Gt(a.fn)}}finally{Wt(r),tr(n)}}Pe=t.p,se&&(Xr=t.p?.function??null),t.m=!0}return e||{}}function bi(){return!mi||Pe!==null&&Pe.l===null}var Pe,Xr,Ot=v(()=>{mt();Uu();mo();yr();Ge();He();Bi();Pe=null;Xr=null});function Vb(e){e=e.replace(NI,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}function qb(e){return DI.includes(e)}function $p(e){return e?.replace(/\//g,"/\u200B")}var NI,OI,hB,DI,_s=v(()=>{NI=/\r/g;OI=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"],hB=[...OI,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"],DI=["touchstart","touchmove"]});var zb=v(()=>{_s();Ge();Wr()});var Hp=v(()=>{});var Yb=v(()=>{bt();Et()});function of(){Kb||(Kb=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}var Kb,uf=v(()=>{Et();Gr();On();Kb=!1});function go(e){var t=$e,r=Oe;tr(null),Wt(null);try{return e()}finally{tr(t),Wt(r)}}function Up(e,t,r,n=r){e.addEventListener(t,()=>go(r));let i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),of()}var Ti=v(()=>{He();Ge();uf()});function Wb(e,t,r,n={}){function i(a){if(n.capture||_o.call(t,a),!a.cancelBubble)return go(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?dn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function pr(e,t,r,n,i){var a={capture:n,passive:i},o=Wb(e,t,r,a);(t===document.body||t===window||t===document)&&Cr(()=>{t.removeEventListener(e,o,a)})}function _o(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target,o=0,l=e.__root;if(l){var d=i.indexOf(l);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var p=i.indexOf(t);if(p===-1)return;d<=p&&(o=d)}if(a=i[o]||e.target,a!==t){Kt(e,"currentTarget",{configurable:!0,get(){return a||r}});var g=$e,E=Oe;tr(null),Wt(null);try{for(var _,y=[];a!==null;){var C=a.assignedSlot||a.parentNode||a.host||null;try{var k=a["__"+n];if(k!=null&&(!a.disabled||e.target===a))if(fn(k)){var[P,...N]=k;P.apply(a,[e,...N])}else k.call(a,e)}catch(L){_?y.push(L):_=L}if(e.cancelBubble||C===t||C===null)break;a=C}if(_){for(let L of y)queueMicrotask(()=>{throw L});throw _}}finally{e.__root=t,delete e.currentTarget,tr(g),Wt(E)}}}var jb,Vp,Xu=v(()=>{He();it();Et();On();bt();Wr();Ge();Ti();jb=new Set,Vp=new Set});function Gb(){kI=void 0}var kI,qp=v(()=>{Et();Gr();He();Nt();bt()});function Zu(e){var t=document.createElement("template");return t.innerHTML=e,t.content}var cf=v(()=>{});function Zr(e,t){var r=Oe;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Le(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,a=!e.startsWith("<!>");return()=>{if(ge)return Zr(De,null),De;i===void 0&&(i=Zu(a?e:"<!>"+e),r||(i=qt(i)));var o=n||Vu?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=qt(o),d=o.lastChild;Zr(l,d)}else Zr(o,o);return o}}function Ju(e=""){if(!ge){var t=Qr(e+"");return Zr(t,t),t}var r=De;return r.nodeType!==3&&(r.before(r=Qr()),wt(r)),Zr(r,r),r}function qi(){if(ge)return Zr(De,null),De;var e=document.createDocumentFragment(),t=document.createComment(""),r=Qr();return e.append(t,r),Zr(t,r),e}function we(e,t){if(ge){Oe.nodes_end=De,Vt();return}e!==null&&e.before(t)}var bs=v(()=>{Et();Gr();cf();Ge();bt()});function ir(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Es(e,t){return Qb(e,t)}function Yp(e,t){Xl(),t.intro=t.intro??!1;let r=t.target,n=ge,i=De;try{for(var a=qt(r);a&&(a.nodeType!==8||a.data!==va);)a=fr(a);if(!a)throw Fi;$r(!0),wt(a),Vt();let o=Qb(e,{...t,anchor:a});if(De===null||De.nodeType!==8||De.data!==as)throw ps(),Fi;return $r(!1),o}catch(o){if(o===Fi)return t.recover===!1&&sb(),Xl(),qu(r),$r(!1),Es(e,t);throw o}finally{$r(n),wt(i),Gb()}}function Qb(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:o=!0}){Xl();var l=new Set,d=E=>{for(var _=0;_<E.length;_++){var y=E[_];if(!l.has(y)){l.add(y);var C=qb(y);t.addEventListener(y,_o,{passive:C});v Line truncated
\r\f\xA0\v\uFEFF`]});function Yi(e,t,r,n,i,a){var o=e.__className;if(ge||o!==r){var l=EE(r,n,a);(!ge||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(a&&i!==a)for(var d in a){var p=!!a[d];(i==null||p!==!!i[d])&&e.classList.toggle(d,p)}return a}var Xp=v(()=>{nc();Et()});function Zp(e,t={},r,n){for(var i in r){var a=r[i];t[i]!==a&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,n))}}function ic(e,t,r,n){var i=e.__style;if(ge||i!==t){var a=vE(t,n);(!ge||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}else n&&(Array.isArray(n)?(Zp(e,r?.[0],n[0]),Zp(e,r?.[1],n[1],"important")):Zp(e,r,n));return n}var Jp=v(()=>{nc();Et()});function tm(e){if(ge){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Ki(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;Ki(e,"checked",null),e.checked=i}}};e.__on_r=r,eb(r),of()}}function Ki(e,t,r,n){var i=GI(e);if(ge&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||XI(e,t,r??"");return}i[t]!==(i[t]=r)&&(t==="loading"&&(e[W_]=r),r==null?e.removeAttribute(t):typeof r!="string"&&QI(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function GI(e){return e.__attributes??={[jI]:e.nodeName.includes("-"),[WI]:e.namespaceURI===q_}}function QI(e){var t=TE.get(e.nodeName);if(t)return t;TE.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Yl(n);for(var a in r)r[a].set&&t.push(a);n=Ta(n)}return t}function XI(e,t,r){se&&(t==="srcset"&&ZI(e,r)||em(e.getAttribute(t)??"",r)||Eb(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function em(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function xE(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function ZI(e,t){var r=xE(e.srcset),n=xE(t);return n.length===r.length&&n.every(([i,a],o)=>a===r[o][1]&&(em(r[o][0],i)||em(i,r[o][0])))}var YI,KI,jI,WI,TE,yE=v(()=>{mt();Et();it();Xu();uf();Wr();Nt();On();_s();Ge();nc();Xp();Jp();bt();YI=Symbol("class"),KI=Symbol("style"),jI=Symbol("is custom element"),WI=Symbol("is html");TE=new Map});var JI,ei,rm=v(()=>{it();mt();JI=zl?()=>performance.now():()=>Date.now(),ei={tick:e=>(zl?requestAnimationFrame:Ut)(e),now:()=>JI(),tasks:new Set}});function AE(){let e=ei.now();ei.tasks.forEach(t=>{t.c(e)||(ei.tasks.delete(t),t.f())}),ei.tasks.size!==0&&ei.tick(AE)}function wE(e){let t;return ei.tasks.size===0&&ei.tick(AE),{promise:new Promise(r=>{ei.tasks.add(t={c:e,f:r})}),abort(){ei.tasks.delete(t)}}}var SE=v(()=>{rm()});function df(e,t){go(()=>{e.dispatchEvent(new CustomEvent(t))})}function n3(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;let t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function CE(e){let t={},r=e.split(";");for(let n of r){let[i,a]=n.split(":");if(!i||a===void 0)break;let o=n3(i.trim());t[o]=a.trim()}return t}function im(e,t,r,n){var i=(e&1)!==0,a=(e&2)!==0,o=i&&a,l=(e&4)!==0,d=o?"both":i?"in":"out",p,g=t.inert,E=t.style.overflow,_,y;function C(){var H=$e,R=Oe;tr(null),Wt(null);try{return p??=r()(t,n?.()??{},{direction:d})}finally{tr(H),Wt(R)}}var k={is_global:l,in(){if(t.inert=g,!i){y?.abort(),y?.reset?.();return}a||_?.abort(),df(t,"introstart"),_=nm(t,C(),y,1,()=>{df(t,"introend"),_?.abort(),_=p=void 0,t.style.overflow=E})},out(H){if(!a){H?.(),p=void 0;return}t.inert=!0,df(t,"outrostart"),y=nm(t,C(),_,0,()=>{df(t,"outroend"),H?.()})},stop:()=>{_?.abort(),y?.abort()}},P=Oe;if((P.transitions??=[]).push(k),i&&lf){var N=l;if(!N){for(var L=P.parent;L&&L.f&65536;)for(;(L=L.parent)&&!(L.f&16););N=!L||(L.f&32768)!==0}N&&Gt(()=>{at(()=>k.in())})}}function nm(e,t,r,n,i){var a=n===1;if(xa(t)){var o,l=!1;return dn(()=>{if(!l){var P=t({direction:a?"in":"out"});o=nm(e,P,r,n,i)}}),{abort:()=>{l=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(r?.deactivate(),!t?.duration)return i(),{abort:Ut,deactivate:Ut,reset:Ut,t:()=>n};let{delay:d=0,css:p,tick:g,easing:E=i3}=t;var _=[];if(a&&r===void 0&&(g&&g(0,1),p)){var y=CE(p(0,1));_.push(y,y)}var C=()=>1-n,k=e.animate(_,{duration:d});return k.onfinish=()=>{var P=r?.t()??1-n;r?.abort();var N=n-P,L=t.duration*Math.abs(N),H=[];if(L>0){var R=!1;if(p)for(var B=Math.ceil(L/16.666666666666668),V=0;V<=B;V+=1){var X=P+N*E(V/B),ce=CE(p(X,1-X));H.push(ce),R||=ce.overflow==="hidden"}R&&(e.style.overflow="hidden"),C=()=>{var ve=k.currentTime;return P+N*E(ve/L)},g&&wE(()=>{if(k.playState!=="running")return!1;var ve=C();return g(ve,1-ve),!0})}k=e.animate(H,{duration:L,fill:"forwards"}),k.onfinish=()=>{C=()=>n,g?.(n,1-n),i()}},{abort:()=>{k&&(k.cancel(),k.effect=null,k.onfinish=Ut)},deactivate:()=>{i=Ut},reset:()=>{n===0&&g?.(1,0)},t:()=>C()}}var i3,IE=v(()=>{it();He();Ge();SE();vs();ff();bt();Nt();On();Ti();i3=e=>e});var NE=v(()=>{Ti()});function om( Line truncated
${n?`\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
<br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:'\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}
${i?'<br/>\u{1F44D} You have installed <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a>, Omnisearch can use it to index images contents with ai.':'<br/>\u26A0\uFE0F Omnisearch requires <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a> to index images with ai.'}`)),new Ji.Setting(r).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(ar("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(p=>p.setValue(t.PDFIndexing).onChange(async g=>{await a.clearCache(),t.PDFIndexing=g,await ke(e)})).setDisabled(!n),new Ji.Setting(r).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(ar("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(p=>p.setValue(t.imagesIndexing).onChange(async g=>{await a.clearCache(),t.imagesIndexing=g,await ke(e)})).setDisabled(!n);let l=new DocumentFragment;l.createSpan({},p=>{p.innerHTML='Omnisearch will use Text Extractor to index the content of your office documents (currently <pre style="display:inline">.docx</pre> and <pre style="display:inline">.xlsx</pre>).'}),new Ji.Setting(r).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(l).addToggle(p=>p.setValue(t.officeIndexing).onChange(async g=>{await a.clearCache(),t.officeIndexing=g,await ke(e)})).setDisabled(!n);let d=new DocumentFragment;d.createSpan({},p=>{p.innerHTML="Omnisearch will use AI Image Analyzer to index the content of your images with ai."}),new Ji.Setting(r).setName(`Images AI indexing ${i?"":"\u26A0\uFE0F Disabled"}`).setDesc(d).addToggle(p=>p.setValue(t.aiImageIndexing).onChange(async g=>{await a.clearCache(),t.aiImageIndexing=g,await ke(e)})).setDisabled(!i),new Ji.Setting(r).setName("Index paths of unsupported files").setDesc(ar(`
Omnisearch can index file<strong>names</strong> of "unsupported" files, such as e.g. <pre style="display:inline">.mp4</pre>
or non-extracted PDFs & images.<br/>
"Obsidian setting" will respect the value of "Files & Links > Detect all file extensions".`)).addDropdown(p=>{p.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(t.unsupportedFilesIndexing).onChange(async g=>{await o(),t.unsupportedFilesIndexing=g,await ke(e)})}),new Ji.Setting(r).setName("Set frontmatter property key as title").setDesc(ar(`If you have a custom property in your notes that you want to use as the title in search results. If you set this to '#heading', then use the first heading from a file as the title.<br>
Leave empty to disable.`)).addText(p=>{p.setValue(t.displayTitle).onChange(async g=>{await o(),t.displayTitle=g,await ke(e)})}),new Ji.Setting(r).setName("Additional TEXT files to index").setDesc(ar(`In addition to standard <code>md</code> files, Omnisearch can also index other <strong style="color: var(--text-accent)">PLAINTEXT</strong> files.<br/>
Add extensions separated by a space, without the dot. Example: "<code>txt org csv</code>".<br />
\u26A0\uFE0F <span style="color: var(--text-accent)">Using extensions of non-plaintext files (like .pptx) WILL cause crashes,
because Omnisearch will try to index their content.</span>`)).addText(p=>{p.setValue(t.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async g=>{await a.clearCache(),t.indexedFileTypes=g.split(" "),await ke(e)})})}var Ji,Ey=v(()=>{Ji=require("obsidian");mr();mr();Oc()});function vy(e,t,r){let n=e.database;new rn.Setting(r).setName("Behavior").setHeading(),new rn.Setting(r).setName("Save index to cache").setDesc("Enable caching to speed up indexing time. In rare cases, the cache write may cause a crash in Obsidian. This option will disable itself if it happens.").addToggle(i=>i.setValue(t.useCache).onChange(async a=>{t.useCache=a,await ke(e)})),new rn.Setting(r).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(i=>i.setValue(t.showPreviousQueryResults).onChange(async a=>{t.showPreviousQueryResults=a,await ke(e)})),new rn.Setting(r).setName(`Respect Obsidian's "Excluded Files"`).setDesc(`By default, files that are in Obsidian's "Options > Files & Links > Excluded Files" list are downranked in results.
Enable this option to completely hide them.`).addToggle(i=>i.setValue(t.hideExcluded).onChange(async a=>{t.hideExcluded=a,await ke(e)})),new rn.Setting(r).setName("Folders to downrank in search results").setDesc("Folders to downrank in search results. Files in these folders will be downranked in results. They will still be indexed for tags, unlike excluded files. Folders should be comma delimited.").addText(i=>{i.setValue(t.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async a=>{let o=a.split(",");o=o.map(l=>l.trim()),t.downrankedFoldersFilters=o,await ke(e)})}),new rn.Setting(r).setName("Split CamelCaseWords").setDesc(ar(`Enable this if you want to be able to search for CamelCaseWords as separate words.<br/>
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
${yo}`)).addToggle(i=>i.setValue(t.splitCamelCase).onChange(async a=>{await n.clearCache(),t.splitCamelCase=a,await ke(e)})),new rn.Setting(r).setName("Simpler search").setDesc(`Enable this if Obsidian often freezes while making searches.
Words shorter than 3 characters won't be used as prefixes; this can reduce search delay but will return fewer results.`).addToggle(i=>i.setValue(t.simpleSearch).onChange(async a=>{t.simpleSearch=a,await ke(e)})),rn.Platform.isIosApp||new rn.Setting(r).setName("Tokenize URLs").setDesc(`Enable this if you want to be able to search for URLs as separate words.
This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`).addToggle(i=>i.setValue(t.tokenizeUrls).onChange(async a=>{t.tokenizeUrls=a,await ke(e)})),new rn.Setting(r).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(i=>i.setValue(t.openInNewPane).onChange(async a=>{t.openInNewPane=a,await ke(e)})),new rn.Setting(r).setName("Set Vim like navigation keys").setDesc(`Navigate down the results with ${vn()} + J/N, or navigate up with ${vn()} + K/P.`).addToggle(i=>i.setValue(t.vimLikeNavigationShortcut).onChange(async a=>{t.vimLikeNavigationShortcut=a,await ke(e)})),new rn.Setting(r).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(i=>i.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(t.fuzziness).onChange(async a=>{["0","1","2"].includes(a)||(a="2"),t.fuzziness=a,await ke(e)}))}var rn,Ty=v(()=>{rn=require("obsidian");mr();mr();Nr()});function xy(e,t,r){new Ma.Setting(r).setName("User Interface").setHeading(),new Ma.Setting(r).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(n=>n.setValue(t.ribbonIcon).onChange(async i=>{t.ribbonIcon=i,await ke(e),i?e.addRibbonButton():e.removeRibbonButton()})),new Ma.Setting(r).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(n=>n.setValue(t.showExcerpt).onChange(async i=>{Fa.set(i)})),new Ma.Setting(r).setName("Show embed references").setDesc(ar(`Some results are <a href="https://help.obsidian.md/Linking+notes+and+files/Embed+files">embedded</a> in other notes.<br>
This setting controls the maximum number of embeds to show in the search results. Set to 0 to disable.<br>
Also works with Text Extractor for embedded images and documents.`)).addSlider(n=>{n.setLimits(0,10,1).setValue(t.maxEmbeds).setDynamicTooltip().onChange(async i=>{t.maxEmbeds=i,await ke(e)})}),new Ma.Setting(r).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(n=>n.setValue(t.renderLineReturnInExcerpts).onChange(async i=>{t.renderLineReturnInExcerpts=i,await ke(e)})),new Ma.Setting(r).setName('Show "Create note" button').setDesc(ar(`Shows a button next to the search input, to create a note.
Acts the same as the <code>shift \u21B5</code> shortcut, can be useful for mobile device users.`)).addToggle(n=>n.setValue(t.showCreateButton).onChange(async i=>{t.showCreateButton=i,await ke(e)})),new Ma.Setting(r).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(n=>n.setValue(t.highlight).onChange(async i=>{t.highlight=i,await ke(e)}))}var Ma,yy=v(()=>{Ma=require("obsidian");Ao();mr();mr()});function wy(e,t,r,n){function i(o,l){o.setLimits(1,10,.5).setValue(t[l]).setDynamicTooltip().onChange(async d=>{t[l]=d,await ke(e)})}let a=Dc(e.app);new Fn.Setting(r).setName("Results weighting").setHeading(),new Fn.Setting(r).setName(`File name & declared aliases (default: ${a.weightBasename})`).addSlider(o=>i(o,"weightBasename")),new Fn.Setting(r).setName(`File directory (default: ${a.weightDirectory})`).addSlider(o=>i(o,"weightDirectory")),new Fn.Setting(r).setName(`Headings level 1 (default: ${a.weightH1})`).addSlider(o=>i(o,"weightH1")),new Fn.Setting(r).setName(`Headings level 2 (default: ${a.weightH2})`).addSlider(o=>i(o,"weightH2")),new Fn.Setting(r).setName(`Headings level 3 (default: ${a.weightH3})`).addSlider(o=>i(o,"weightH3")),new Fn.Setting(r).setName(`Tags (default: ${a.weightUnmarkedTags})`).addSlider(o=>i(o,"weightUnmarkedTags")),new Fn.Setting(r).setName("Header properties fields").setDesc('You can set custom weights for values of header properties (e.g. "keywords"). Weights under 1.0 will downrank the results.');for(let o=0;o<t.weightCustomProperties.length;o++){let l=t.weightCustomProperties[o],d=new Fn.Setting(r).setName((o+1).toString()+".");d.settingEl.style.paddingLeft="2em",d.addText(p=>{p.setPlaceholder("Property name").setValue(l.name).onChange(async g=>{l.name=g,await ke(e)})}).addSlider(p=>{p.setLimits(.1,5,.1).setValue(l.weight).setDynamicTooltip().onChange(async g=>{l.weight=g,await ke(e)})}).addButton(p=>{p.setButtonText("Remove"),p.onClick(async()=>{t.weightCustomProperties.splice(o,1),await ke(e),n()})})}new Fn.Setting(r).addButton(o=>{o.setButtonText("Add a new property"),o.onClick(l=>{t.weightCustomProperties.push({name:"",weight:1}),n()})}),new Fn.Setting(r).setName("Recency boost (experimental)").setDesc("Files that have been modified more recently than [selected cutoff] are given a higher rank.").addDropdown(o=>o.addOptions({["0"]:"Disabled",["1"]:"24 hours",["2"]:"7 days",["3"]:"30 days"}).setValue(t.recencyBoost).onChange(async l=>{t.recencyBoost=l,await ke(e)}))}var Fn,Sy=v(()=>{Fn=require("obsidian");Ao();mr();en()});function Cy(e,t,r){Ds.Platform.isMobile||(new Ds.Setting(r).setName("API Access Through HTTP").setHeading().setDesc(ar('Omnisearch can be used through a simple HTTP server (<a href="https://publish.obsidian.md/omnisearch/Public+API+%26+URL+Scheme#HTTP+Server">more information</a>).')),new Ds.Setting(r).setName("Enable the HTTP server").addToggle(n=>n.setValue(t.httpApiEnabled).onChange(async i=>{t.httpApiEnabled=i,i?e.apiHttpServer.listen(t.httpApiPort):e.apiHttpServer.close(),await ke(e)})),new Ds.Setting(r).setName("HTTP Port").addText(n=>{n.setValue(t.httpApiPort).setPlaceholder("51361").onChange(async i=>{parseInt(i)>65535&&(i=t.httpApiPort,n.setValue(t.httpApiPort)),t.httpApiPort=i,t.httpApiEnabled&&(e.apiHttpServer.close(),e.apiHttpServer.listen(t.httpApiPort)),await ke(e)})}),new Ds.Setting(r).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(n=>n.setValue(t.httpApiNotice).onChange(async i=>{t.httpApiNotice=i,await ke(e)})))}var Ds,Iy=v(()=>{Ds=require("obsidian");mr();mr()});function Ny(e,t,r){let n=e.database;new wi.Setting(r).setName("Danger Zone").setHeading(),new wi.Setting(r).setName("Ignore diacritics").setDesc(ar(`Normalize diacritics in search terms. Words like "br\xFBl\xE9e" or "\u017Elu\u0165ou\u010Dk\xFD" will be indexed as "brulee" and "zlutoucky".<br/>
\u26A0\uFE0F <span style="color: var(--text-accent)">You probably should <strong>NOT</strong> disable this.</span><br>
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
${yo}`)).addToggle(a=>a.setValue(t.ignoreDiacritics).onChange(async o=>{await n.clearCache(),t.ignoreDiacritics=o,await ke(e)})),new wi.Setting(r).setName("Ignore Arabic diacritics (beta)").addToggle(a=>a.setValue(t.ignoreArabicDiacritics).onChange(async o=>{await n.clearCache(),t.ignoreArabicDiacritics=o,await ke(e)}));let i=new DocumentFragment;i.createSpan({},a=>{a.innerHTML=`Disable Omnisearch on this device only.<br>
${yo}`}),new wi.Setting(r).setName("Disable on this device").setDesc(i).addToggle(a=>a.setValue(If(e.app)).onChange(async o=>{o?(e.app.saveLocalStorage(Ss,"1"),new wi.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(e.app.saveLocalStorage(Ss),new wi.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new wi.Setting(r).setName("Force save the cache").setDesc(ar(`Omnisearch has a security feature that automatically disables cache writing if it cannot fully perform the operation.<br>
Use this option to force the cache to be saved, even if it causes a crash.<br>
\u26A0\uFE0F <span style="color: var(--text-accent)">Enabling this setting could lead to crash loops</span>`)).addToggle(a=>a.setValue(t.DANGER_forceSaveCache).onChange(async o=>{t.DANGER_forceSaveCache=o,await ke(e)})),Qi()&&new wi.Setting(r).setName("Clear cache data").setDesc(ar(`Erase all Omnisearch cache data.
Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
${yo}`)).addButton(a=>{a.setButtonText("Clear cache"),a.onClick(async()=>{await n.clearCache()})})}var wi,Oy=v(()=>{wi=require("obsidian");mr();mr();mr();en()});function Dc(e){return{useCache:!0,hideExcluded:!1,recencyBoost:"0",downrankedFoldersFilters:[],ignoreDiacritics:!0,ignoreArabicDiacritics:!1,indexedFileTypes:[],displayTitle:"",PDFIndexing:!1,officeIndexing:!1,imagesIndexing:!1,aiImageIndexing:!1,unsupportedFilesIndexing:"default",splitCamelCase:!1,openInNewPane:!1,vimLikeNavigationShortcut:e.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,maxEmbeds:5,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:10,weightDirectory:7,weightH1:6,weightH2:5,weightH3:4,weightUnmarkedTags:2,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}async function Dy(e){return Or=Object.assign({},Dc(e.app),await e.loadData()),Fa.set(Or.showExcerpt),wm(Or.verboseLogging),Or}var kc,Fa,nd,Or,Ao=v(()=>{kc=require("obsidian");bm();en();Nr();Ey();mr();Ty();yy();Sy();Iy();Oy();Fa=xo(!1),nd=class extends kc.PluginSettingTab{constructor(r){super(r.app,r);this.plugin=r,Fa.subscribe(async n=>{Or.showExcerpt=n,await ke(this.plugin)})}display(){let{containerEl:r}=this,n=this.plugin.database;if(r.empty(),this.app.loadLocalStorage(Ss)=="1"){let a=r.createEl("span");a.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}r.createEl("h1",{text:"Omnisearch"});let i=r.createDiv();i.innerHTML=`
<iframe sandbox="allow-top-navigation-by-user-activation" src="https://github.com/sponsors/scambier/button" title="Sponsor scambier" height="35" width="116" style="border: 0;"></iframe>
<a href='https://ko-fi.com/B0B6LQ2C' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
`,by(this.plugin,Or,r),r.createEl("hr"),vy(this.plugin,Or,r),r.createEl("hr"),xy(this.plugin,Or,r),r.createEl("hr"),wy(this.plugin,Or,r,this.display),r.createEl("hr"),Cy(this.plugin,Or,r),r.createEl("hr"),Ny(this.plugin,Or,r),r.createEl("hr"),new kc.Setting(r).setName("Debugging").setHeading(),new kc.Setting(r).setName("Enable verbose logging").setDesc('Adds a LOT of logs for debugging purposes. You also need to enable "Verbose" logging in the console to see these logs.').addToggle(a=>a.setValue(Or.verboseLogging).onChange(async o=>{Or.verboseLogging=o,wm(o),await ke(this.plugin)}))}}});function i0(e){var t=g6();we(e,t)}var g6,ky=v(()=>{Wn();yi();Pn();g6=Le('<span class="suggestion-flair" aria-label="Not created yet, select to create"><svg viewBox="0 0 100 100" class="add-note-glyph" width="16" height="16"><path fill="currentColor" stroke="currentColor" d="M23.3,6.7c-3.7,0-6.7,3-6.7,6.7v73.3c0,3.7,3,6.7,6.7,6.7h28.4c-3.2-4.8-5.1-10.5-5.1-16.7c0-16.6,13.4-30,30-30 c2.3,0,4.5,0.3,6.7,0.8V31.7c0-0.9-0.3-1.7-1-2.4L60.7,7.6c-0.6-0.6-1.5-1-2.4-1L23.3,6.7z M56.7,13L77,33.3H60 c-1.8,0-3.3-1.5-3.3-3.3L56.7,13z M76.7,53.3c-12.9,0-23.3,10.4-23.3,23.3S63.8,100,76.7,100S100,89.6,100,76.7 S89.6,53.3,76.7,53.3z M76.7,63.3c1.8,0,3.3,1.5,3.3,3.3v6.7h6.7c1.8,0,3.3,1.5,3.3,3.3c0,1.8-1.5,3.3-3.3,3.3H80v6.7 c0,1.8-1.5,3.3-3.3,3.3c-1.8,0-3.3-1.5-3.3-3.3V80h-6.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h6.7v-6.7 C73.3,64.8,74.8,63.3,76.7,63.3L76.7,63.3z"></path></svg></span>')});function Rc(e,t){let r=ze(t,"id",8),n=ze(t,"selected",8,!1),i=ze(t,"glyph",8,!1),a=ze(t,"cssClass",8,"");var o=_6();let l;var d=xe(o);{var p=E=>{i0(E,{})};tt(d,E=>{i()&&E(p)})}var g=Ye(d,2);zi(g,t,"default",{},null),Te(o),rr(E=>{Ki(o,"data-result-id",r()),l=Yi(o,1,`suggestion-item omnisearch-result ${a()??""}`,null,l,E)},[()=>({"is-selected":n()})],Br),pr("mousemove",o,function(E){Jr.call(this,t,E)}),pr("click",o,function(E){Jr.call(this,t,E)}),pr("keypress",o,function(E){Jr.call(this,t,E)}),pr("auxclick",o,function(E){Jr.call(this,t,E)}),we(e,o)}var _6,a0=v(()=>{Wn();yi();Pn();ky();_6=Le("<div><!> <!></div>")});function ad(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Ry,id,s0=v(()=>{en();Nr();Ry=require("obsidian");Oc();id=class{constructor(t){this.plugin=t}highlightText(t,r){let n=`suggestion-highlight omnisearch-highlight ${this.plugin.settings.highlight?"omnisearch-default-highlight":""}`;if(!r.length)return t;try{return t.replace(new RegExp(`(${r.map(i=>Nc(i.match)).join("|")})`,"giu"),`<span class="${n}">$1</span>`)}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${Nc(n)}\\b|${Nc(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){r=r.map(ad);let i=this.stringsToRegex(r),a=t;this.plugin.settings.ignoreDiacritics&&(t=Wi(t,this.plugin.settings.ignoreArabicDiacritics));let o=new Date().getTime(),l=null,d=[],p=0;for(;(l=i.exec(t))!==null;){if(++p>=100||new Date().getTime()-o>50){Gi("Stopped getMatches at",p,"results");break}let g=l.index,E=g+l[0].length,_=a.substring(g,E).trim();_&&l.index>=0&&d.push({match:_,offset:l.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let g=t.indexOf(n.getBestStringForExcerpt());g>-1&&d.find(E=>E.offset===g)&&d.unshift({offset:g,match:n.getBestStringForExcerpt()})}return d}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,a=Math.max(0,i-iv),o=Math.min(t.length,i+uc);if(i>-1?t=(a>0?"\u2026":"")+t.slice(a,o).trim()+(o<t.length-1?"\u2026":""):t=t.slice(0,uc),n.renderLineReturnInExcerpts){let l=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(l).filter(p=>p).join(`
`);let d=t.lastIndexOf(`
`,i-a);d>0&&(t=t.slice(d))}return t=ad(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
`,"<br>")),t}catch(i){return new Ry.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}}});async function Ly(e){let t=e.app;if(!t.plugins.getPlugin("obsidian-icon-folder"))return{};let n=`${t.vault.configDir}/plugins/obsidian-icon-folder/data.json`;try{let i=await t.vault.adapter.read(n),a=JSON.parse(i),o={};for(let l in a){let d=(0,Vo.normalizePath)(l);o[d]=a[l]}return o}catch(i){return Gi("Failed to read data.json:",i),{}}}async function Py(e){let t={Li:"lucide-icons"},r="icons",n=e.app,i=n.plugins.getPlugin("obsidian-icon-folder");if(i){r=i.settings?.iconPacksPath||"icons";let o=`${n.vault.configDir}/${r}`;try{let l=await n.vault.adapter.list(o);if(l.folders&&l.folders.length>0)for(let d of l.folders){let p=d.split("/"),g=p[p.length-1],E=b6(g);t[E]=g}}catch(l){Gi("Failed to list icon packs:",l)}}return{prefixToIconPack:t,iconsPath:r}}function b6(e){if(e.includes("-")){let t=e.split("-"),r=t[0].charAt(0).toUpperCase();for(let n=1;n<t.length;n++)r+=t[n].charAt(0).toLowerCase();return r}return e.charAt(0).toUpperCase()+e.charAt(1).toLowerCase()}function o0(e,t){let r=(0,Vo.normalizePath)(e),n=t[r];if(n){if(typeof n=="string")return n;if(typeof n=="object"&&n.iconName)return n.iconName}return null}function E6(e){let t=e.match(/^[A-Z][a-z]*/);if(t){let r=t[0],n=e.substring(r.length);return{prefix:r,name:n}}else return{prefix:"",name:e}}async function u0(e,t,r,n){let i=E6(e),{prefix:a,name:o}=i;if(!a)return`<span class="omnisearch-result__icon--emoji">${ad(o)}</span>`;let l=n[a];if(!l)return Gi(`No icon pack found for prefix: ${a}`),null;if(l==="lucide-icons"){let d=o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p=(0,Vo.getIcon)(d);return p?p.outerHTML:(Gi(`Lucide icon not found: ${d}`),null)}else{if(!r)return Gi("Icons path is not set. Cannot load icon SVG."),null;let d=`${t.app.vault.configDir}/${r}/${l}/${o}.svg`;try{return await t.app.vault.adapter.read(d)}catch(p){return Gi(`Failed to load icon SVG for ${e} at ${d}:`,p),null}}}function c0(e,t){let r="file";Mn(e)?r="image":ti(e)?r="file-text":(Ai(e)||fc(e))&&(r="layout-dashboard");let n=(0,Vo.getIcon)(r);return n?n.outerHTML:""}var Vo,My=v(()=>{Vo=require("obsidian");Nr();s0()});function l0(e,t){dr(t,!1);let[r,n]=oc(),i=()=>sc(Fa,"$showExcerpt",r),a=ft(),o=ft(),l=ft(),d=ft(),p=ze(t,"selected",8,!1),g=ze(t,"note",8),E=ze(t,"plugin",8),_=ft(null),y=ft(""),C=ft(""),k={},P=ft(null),N=ft(null),L={},H,R=ft(!1);As(async()=>{k=await Ly(E());let qe=await Py(E());L=qe.prefixToIconPack,H=qe.iconsPath,oe(R,!0)});async function B(){let qe=o0(q(C),k);qe?oe(P,await u0(qe,E(),H,L)):oe(P,c0("folder",E()));let St=o0(g().path,k);St?oe(N,await u0(St,E(),H,L)):oe(N,c0(g().path,E()))}function V(qe,St){return qe.innerHTML=St,{update(Dt){qe.innerHTML=Dt},destroy(){qe.innerHTML=""}}}let X=null,ce=null,ve=ft(null);Qt(()=>(vt(g()),q(R),lc),()=>{g()&&g().path&&q(R)&&(async()=>(oe(y,g().displayTitle||g().basename),oe(C,lc(g().path)),await B()))()}),Qt(()=>(Mn,vt(g()),vt(E()),oi.TFile),()=>{if(oe(_,null),Mn(g().path)){let qe=E().app.vault.getAbstractFileByPath(g().path);qe instanceof oi.TFile&&oe(_,E().app.vault.getResourcePath(qe))}}),Qt(()=>(vt(g()),lc,oi.setIcon,Mn,ti,Ai,fc,q(ve)),()=>{oe(y,g().displayTitle||g().basename),oe(C,lc(g().path)),X&&(0,oi.setIcon)(X,"folder-open"),ce&&(Mn(g().path)?(0,oi.setIcon)(ce,"image"):ti(g().path)?(0,oi.setIcon)(ce,"file-text"):Ai(g().path)||fc(g().path)?(0,oi.setIcon)(ce,"layout-dashboard"):(0,oi.setIcon)(ce,"file")),q(ve)&&(0,oi.setIcon)(q(ve),"corner-down-right")}),Qt(()=>(vt(E()),q(y),vt(g())),()=>{oe(a,E().textProcessor.getMatches(q(y),g().foundWords))}),Qt(()=>(vt(E()),q(C),vt(g())),()=>{oe(o,E().textProcessor.getMatches(q(C),g().foundWords))}),Qt(()=>(vt(E()),vt(g())),()=>{oe(l,E().textProcessor.makeExcerpt(g().content,g().matches[0]?.offset??-1))}),Qt(()=>{},()=>{oe(d,!1)}),Jn(),En();let Re=Br(()=>g().isEmbed?"omnisearch-result__embed":"");Rc(e,{get glyph(){return q(d)},get id(){return g().path},get cssClass(){return` ${q(Re)??""}`},get selected(){return p()},$$events:{auxclick(qe){Jr.call(this,t,qe)},click(qe){Jr.call(this,t,qe)},mousemove(qe){Jr.call(this,t,qe)}},children:(qe,St)=>{var Dt=N6(),Se=xe(Dt),et=xe(Se),je=xe(et);{var lt=rt=>{var ct=v6();ys(ct,Xt=>oe(ve,Xt),()=>q(ve)),we(rt,ct)},F=rt=>{var ct=qi(),Xt=Sr(ct);{var Er=Pr=>{var zr=T6();wa(zr,(Ct,$t)=>V?.(Ct,$t),()=>q(N)),we(Pr,zr)};tt(Xt,Pr=>{q(N)&&Pr(Er)})}we(rt,ct)};tt(je,rt=>{g().isEmbed?rt(lt):rt(F,!1)})}var K=Ye(je,2),te=xe(K);Ts(te,()=>E().textProcessor.highlightText(q(y),q(a)),!1,!1),Te(K);var fe=Ye(K,2);{var Fe=rt=>{var ct=x6(),Xt=xe(ct);Te(ct),rr(Er=>ir(Xt,`.${Er??""}`),[()=>Cs(g().path)],Br),we(rt,ct)};tt(fe,rt=>{g().displayTitle||rt(Fe)})}var Je=Ye(fe,2);{var Ue=rt=>{var ct=y6(),Xt=xe(ct);Te(ct),rr(()=>ir(Xt,`${g().matches.length??""}\xA0${(g().matches.length>1?"matches":"match")??""}`)),we(rt,ct)};tt(Je,rt=>{g().matches.length>0&&rt(Ue)})}Te(et),Te(Se);var ot=Ye(SLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Je=!0,Ue=!1,ot;return{s:function(){te=te.call(F)},n:function(){var _t=te.next();return Je=_t.done,_t},e:function(_t){Ue=!0,ot=_t},f:function(){try{!Je&&te.return!=null&&te.return()}finally{if(Ue)throw ot}}}}function p(F,K){if(F){if(typeof F=="string")return g(F,K);var te=Object.prototype.toString.call(F).slice(8,-1);if(te==="Object"&&F.constructor&&(te=F.constructor.name),te==="Map"||te==="Set")return Array.from(F);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return g(F,K)}}function g(F,K){(K==null||K>F.length)&&(K=F.length);for(var te=0,fe=new Array(K);te<K;te++)fe[te]=F[te];return fe}function E(F,K){if(!(F instanceof K))throw new TypeError("Cannot call a class as a function")}function _(F,K){for(var te=0;te<K.length;te++){var fe=K[te];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(F,fe.key,fe)}}function y(F,K,te){return K&&_(F.prototype,K),te&&_(F,te),Object.defineProperty(F,"prototype",{writable:!1}),F}function C(F,K,te){return K in F?Object.defineProperty(F,K,{value:te,enumerable:!0,configurable:!0,writable:!0}):F[K]=te,F}function k(F,K,te){P(F,K),K.set(F,te)}function P(F,K){if(K.has(F))throw new TypeError("Cannot initialize the same private elements twice on an object")}function N(F,K){var te=R(F,K,"get");return L(F,te)}function L(F,K){return K.get?K.get.call(F):K.value}function H(F,K,te){var fe=R(F,K,"set");return B(F,fe,te),te}function R(F,K,te){if(!K.has(F))throw new TypeError("attempted to "+te+" private field on non-instance");return K.get(F)}function B(F,K,te){if(K.set)K.set.call(F,te);else{if(!K.writable)throw new TypeError("attempted to set read only private field");K.value=te}}var V=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",X=new WeakMap,ce=new WeakMap,ve=function(){function F(K){var te=K.executor,fe=te===void 0?function(){}:te,Fe=K.internals,Je=Fe===void 0?lt():Fe,Ue=K.promise,ot=Ue===void 0?new Promise(function(ut,_t){return fe(ut,_t,function(qr){Je.onCancelList.push(qr)})}):Ue;E(this,F),k(this,X,{writable:!0,value:void 0}),k(this,ce,{writable:!0,value:void 0}),C(this,V,"CancelablePromise"),this.cancel=this.cancel.bind(this),H(this,X,Je),H(this,ce,ot||new Promise(function(ut,_t){return fe(ut,_t,function(qr){Je.onCancelList.push(qr)})}))}return y(F,[{key:"then",value:function(te,fe){return et(N(this,ce).then(Se(te,N(this,X)),Se(fe,N(this,X))),N(this,X))}},{key:"catch",value:function(te){return et(N(this,ce).catch(Se(te,N(this,X))),N(this,X))}},{key:"finally",value:function(te,fe){var Fe=this;return fe&&N(this,X).onCancelList.push(te),et(N(this,ce).finally(Se(function(){if(te)return fe&&(N(Fe,X).onCancelList=N(Fe,X).onCancelList.filter(function(Je){return Je!==te})),te()},N(this,X))),N(this,X))}},{key:"cancel",value:function(){N(this,X).isCanceled=!0;var te=N(this,X).onCancelList;N(this,X).onCancelList=[];var fe=d(te),Fe;try{for(fe.s();!(Fe=fe.n()).done;){var Je=Fe.value;if(typeof Je=="function")try{Je()}catch(Ue){console.error(Ue)}}}catch(Ue){fe.e(Ue)}finally{fe.f()}}},{key:"isCanceled",value:function(){return N(this,X).isCanceled===!0}}]),F}(),Re=function(F){t(te,F);var K=n(te);function te(fe){return E(this,te),K.call(this,{executor:fe})}return y(te)}(ve);e.CancelablePromise=Re,C(Re,"all",function(K){return je(K,Promise.all(K))}),C(Re,"allSettled",function(K){return je(K,Promise.allSettled(K))}),C(Re,"any",function(K){return je(K,Promise.any(K))}),C(Re,"race",function(K){return je(K,Promise.race(K))}),C(Re,"resolve",function(K){return St(Promise.resolve(K))}),C(Re,"reject",function(K){return St(Promise.reject(K))}),C(Re,"isCancelable",Dt);var qe=Re;e.default=qe;function St(F){return et(F,lt())}function Dt(F){return F instanceof Re||F instanceof ve}function Se(F,K){if(F)return function(te){if(!K.isCanceled){var fe=F(te);return Dt(fe)&&K.onCancelList.push(fe.cancel),fe}return te}}function et(F,K){return new ve({internals:K,promise:F})}function je(F,K){var te=lt();return te.onCancelList.push(function(){var fe=d(F),Fe;try{for(fe.s();!(Fe=fe.n()).done;){var Je=Fe.value;Dt(Je)&&Je.cancel()}}catch(Ue){fe.e(Ue)}finally{fe.f()}}),new ve({internals:te,promise:K})}function lt(){return{isCanceled:!1,onCancelList:[]}}})});function qy(e,{delay:t=0,duration:r=400,easing:n=O6}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:a=>`opacity: ${a*i}`}}var O6,zy=v(()=>{mt();Wr();O6=e=>e});function cd(e,t){dr(t,!1);let r=ze(t,"placeholder",8,null),n=ze(t,"placeholderProps",8,null),i="svelte-lazy-placeholder";En();var a=qi(),o=Sr(a);{var l=d=>{var p=k6();Yi(p,1,xs(i));var g=xe(p);{var E=y=>{var C=D6(),k=xe(C,!0);Te(C),rr(()=>ir(k,r())),we(y,C)},_=(y,C)=>{{var k=P=>{var N=qi(),L=Sr(N);Gp(L,r,(H,R)=>{R(H,mm(n))}),we(P,N)};tt(y,P=>{["function","object"].includes(typeof r())&&P(k)},C)}};tt(g,y=>{typeof r()=="string"?y(E):y(_,!1)})}Te(p),we(d,p)};tt(o,d=>{r()&&d(l)})}we(e,a),hr()}var D6,k6,Yy=v(()=>{Wn();yi() Line truncated
characters.</span>`,1),U6=Le("We found 0 results for your search here. <!>",1),V6=Le('<!> <div style="text-align: center;"><!></div>',1),q6=Le('<!> <!> <!> <div class="prompt-instructions"><div class="prompt-instruction"><span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to cycle history</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Tab</span> <span>to switch to In-File Search</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"></span> <span>to open in a new split</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in the background</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to insert a link</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to toggle excerpts</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Esc</span><span>to close</span></div></div>',1)});function m0(e,t){dr(t,!1);let r=ft(),n=ze(t,"plugin",8),i=ze(t,"offset",8),a=ze(t,"note",8),o=ze(t,"index",8,0),l=ze(t,"selected",8,!1);Qt(()=>(vt(n()),vt(a()),vt(i())),()=>{oe(r,n().textProcessor.makeExcerpt(a()?.content??"",i()))}),Jn(),En();let d=Br(()=>o().toString());Rc(e,{get id(){return q(d)},get selected(){return l()},$$events:{auxclick(p){Jr.call(this,t,p)},click(p){Jr.call(this,t,p)},mousemove(p){Jr.call(this,t,p)}},children:(p,g)=>{var E=z6(),_=xe(E);Ts(_,()=>n().textProcessor.highlightText(q(r),a().matches),!1,!1),Te(E),we(p,E)},$$slots:{default:!0}}),hr()}var z6,Qy=v(()=>{Wn();yi();Pn();a0();z6=Le('<div class="omnisearch-result__body"><!></div>')});function g0(e,t){dr(t,!1);let r=ze(t,"plugin",8),n=ze(t,"modal",8),i=ze(t,"parent",8,null),a=ze(t,"singleFilePath",8,""),o=ze(t,"previousQuery",8),l=ft(),d=ft([]),p=ft(0),g=ft(),E=ft();As(()=>{Me.enable("infile"),Me.on("infile","enter",N),Me.on("infile","open-in-new-pane",P),Me.on("infile","arrow-up",()=>C(-1)),Me.on("infile","arrow-down",()=>C(1)),Me.on("infile","tab",L)}),mf(()=>{Me.disable("infile")});function _(Se){let et=[],je=-1,lt=0;for(;++lt<100;){let F=y(Se,je,uc);if(!F.length)break;je=F.last().offset,et.push(F)}return et}function y(Se,et,je){let lt=Se.find(F=>F.offset>et);return lt?Se.filter(F=>F.offset>et&&F.offset<=lt.offset+je):[]}function C(Se){oe(p,wf(q(p)+Se,q(d).length)),k()}async function k(){await Ei(),document.querySelector(`[data-result-id="${q(p)}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function P(){return N(!0)}async function N(Se=!1){if(q(g)){n().close(),i()&&i().close();let et=r().textProcessor.stringsToRegex(q(g).foundWords);et.exec(q(g).content),await Cf(r().app,q(g),et.lastIndex,Se);let je=r().app.workspace.getActiveViewOfType(ld.MarkdownView);if(!je)return;let lt=q(d)[q(p)]??0,F=je.editor.offsetToPos(lt);F.ch=0,je.editor.setCursor(F),je.editor.scrollIntoView({from:{line:F.line-10,ch:0},to:{line:F.line+10,ch:0}})}}function L(){new ta(r(),q(l)??o()).open(),n().close()}Qt(()=>vt(o()),()=>{oe(l,o()??"")}),Qt(()=>(q(l),q(E),ea,vt(r()),vt(a())),()=>{(async()=>(q(l)&&(oe(E,new ea(q(l),{ignoreDiacritics:r().settings.ignoreDiacritics,ignoreArabicDiacritics:r().settings.ignoreArabicDiacritics})),oe(g,(await r().searchEngine.getSuggestions(q(E),{singleFilePath:a()}))[0]??null)),oe(p,0),await k()))()}),Qt(()=>(q(g),q(E)),()=>{if(q(g)){let Se=_(q(g).matches),et=q(E).getExactTerms();et.length&&(Se=Se.filter(je=>et.every(lt=>je.some(F=>F.match.includes(lt))))),oe(d,Se.map(je=>Math.round(je.first().offset)))}}),Jn(),En();var H=Q6(),R=Sr(H);mc(R,{get plugin(){return r()},placeholder:"Omnisearch - File",get initialValue(){return o()},$$events:{input:Se=>oe(l,Se.detail)},children:(Se,et)=>{var je=K6(),lt=xe(je);{var F=K=>{var te=Y6();pr("click",te,L),we(K,te)};tt(lt,K=>{ld.Platform.isMobile&&K(F)})}Te(je),we(Se,je)},$$slots:{default:!0}});var B=Ye(R,2);gc(B,{children:(Se,et)=>{var je=qi(),lt=Sr(je);{var F=te=>{var fe=qi(),Fe=Sr(fe);rc(Fe,1,()=>q(d),tc,(Je,Ue,ot)=>{let ut=Br(()=>ot===q(p));m0(Je,{get plugin(){return r()},get offset(){return q(Ue)},get note(){return q(g)},index:ot,get selected(){return q(ut)},$$events:{mousemove:_t=>oe(p,ot),click:_t=>N(_t.ctrlKey),auxclick:_t=>{_t.button==1&&N(!0)}}})}),we(te,fe)},K=te=>{var fe=j6();we(te,fe)};tt(lt,te=>{q(d).length&&q(g)?te(F):te(K,!1)})}we(Se,je)},$$Line truncated
`)}function zr(s,u,f,h){this.failures=u,this.failedKeys=h,this.successCount=f,this.message=Pr(s,u)}C(zr).from(Er);function Ct(s,u){this.name="BulkError",this.failures=Object.keys(u).map(function(f){return u[f]}),this.failuresByPos=u,this.message=Pr(s,this.failures)}C(Ct).from(Er);var $t=ct.reduce(function(s,u){return s[u]=u+"Error",s},{}),Di=Er,me=ct.reduce(function(s,u){var f=u+"Error";function h(m,b){this.name=f,m?typeof m=="string"?(this.message="".concat(m).concat(b?`
`+b:""),this.inner=b||null):typeof m=="object"&&(this.message="".concat(m.name," ").concat(m.message),this.inner=m):(this.message=Xt[u]||f,this.inner=null)}return C(h).from(Di),s[u]=h,s},{});me.Syntax=SyntaxError,me.Type=TypeError,me.Range=RangeError;var gu=rt.reduce(function(s,u){return s[u+"Error"]=me[u],s},{});function Ih(s,u){if(!s||s instanceof Er||s instanceof TypeError||s instanceof SyntaxError||!s.name||!gu[s.name])return s;var f=new gu[s.name](u||s.message,s);return"stack"in s&&y(f,"stack",{get:function(){return this.inner.stack}}),f}var ca=ct.reduce(function(s,u){return["Syntax","Type","Range"].indexOf(u)===-1&&(s[u+"Error"]=me[u]),s},{});ca.ModifyError=zr,ca.DexieError=Er,ca.BulkError=Ct;function nt(){}function Qa(s){return s}function _u(s,u){return s==null||s===Qa?u:function(f){return u(s(f))}}function fi(s,u){return function(){s.apply(this,arguments),u.apply(this,arguments)}}function Nh(s,u){return s===nt?u:function(){var f=s.apply(this,arguments);f!==void 0&&(arguments[0]=f);var h=this.onsuccess,m=this.onerror;this.onsuccess=null,this.onerror=null;var b=u.apply(this,arguments);return h&&(this.onsuccess=this.onsuccess?fi(h,this.onsuccess):h),m&&(this.onerror=this.onerror?fi(m,this.onerror):m),b!==void 0?b:f}}function bu(s,u){return s===nt?u:function(){s.apply(this,arguments);var f=this.onsuccess,h=this.onerror;this.onsuccess=this.onerror=null,u.apply(this,arguments),f&&(this.onsuccess=this.onsuccess?fi(f,this.onsuccess):f),h&&(this.onerror=this.onerror?fi(h,this.onerror):h)}}function bl(s,u){return s===nt?u:function(f){var h=s.apply(this,arguments);l(f,h);var m=this.onsuccess,b=this.onerror;this.onsuccess=null,this.onerror=null;var T=u.apply(this,arguments);return m&&(this.onsuccess=this.onsuccess?fi(m,this.onsuccess):m),b&&(this.onerror=this.onerror?fi(b,this.onerror):b),h===void 0?T===void 0?void 0:T:l(h,T)}}function Oh(s,u){return s===nt?u:function(){return u.apply(this,arguments)===!1?!1:s.apply(this,arguments)}}function Ks(s,u){return s===nt?u:function(){var f=s.apply(this,arguments);if(f&&typeof f.then=="function"){for(var h=this,m=arguments.length,b=new Array(m);m--;)b[m]=arguments[m];return f.then(function(){return u.apply(h,b)})}return u.apply(this,arguments)}}var on=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function El(s,u){on=s}var Ne={},kt=100,Rt=typeof Promise>"u"?[]:function(){var s=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[s,d(s),s];var u=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[u,d(u),s]}(),ur=Rt[0],Sn=Rt[1],ki=Rt[2],Eu=Sn&&Sn.then,cr=ur&&ur.constructor,Zt=!!ki;function la(){queueMicrotask(jS)}var Cn=function(s,u){vu.push([s,u]),Kn&&(la(),Kn=!1)},Yn=!0,Kn=!0,un=[],Xa=[],Dh=Qa,fa={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:nt,pgp:!1,env:{},finalize:nt},be=fa,vu=[],Za=0,vl=[];function de(s){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var u=this._PSD=be;if(typeof s!="function"){if(s!==Ne)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Rh(this,this._value);return}this._state=null,this._value=null,++u.ref,s_(this,s)}var kh={get:function(){var s=be,u=Al;function f(h,m){var b=this,T=!s.global&&(s!==be||u!==Al),A=T&&!ha(),S=new de(function(O,$){Lh(b,new a_(c_(h,s,T,A),c_(m,s,T,A),O,$,s))});return this._consoleTask&&(S._consoleTask=this._consoleTask),S}return f.prototype=Ne,f},set:function(s){y(this,"then",s&&s.prototype===Ne?kh:{get:function(){return s},set:kh.set})}};E(de.prototype,{then:kh,_then:function(s,u){Lh(this,new a_(null,null,s,u,be))},catch:function(s){if(arguments.length===1)return this.then(null,s);var u=arguments[0],f=arguments[1];return typeof u=="function"?this.then(null,function(h){return h instanceof u?f(h):Tl(h)}):this.then(null,function(h){return h&&h.name===u?f(h):Tl(h)})},finally:function(s){return this.then(function(u){return de.resolve(s()).then(function(){return u})},function(u){return de.resolve(s()).then(function(){return Tl(u)})})},timeout:function(s,u){var f=this;return s<1/0?new de(function(h,m){var b=setTimeout(function(){return m(new me.Timeout(u))},s);f.then(h,m).finally(clearTimeout.bind(null,b))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&y(de.prototype,Symbol.toStringTag,"Dexie.Promise"),fa.env=u_();function a_(s,u,f,h,m){this.onFulfilled=typeof s=="function"?s:null,this.onRejected=typeof u=="function"?u:null,this.resolve=f,this.reject=h,this.psd=m}E(de,{all:function(){var s=ut.apply(null,arguments).map(wl);return new de(function(u,f){s.length===0&&u([]);var h=s.length;s.forEach(function(m,b){return de.resolve(m).then(function(T){s[b]=T,--h||u(s)},f)})})},resolve:function(s){if(s instanceof de)return s;if(s&&typeof s.then=="function")return new de(function(f,h){s.then(f,h)});var u=new de(Ne,!0,s);return u},reject:Tl,race:function(){var s=ut.apply(null,arguments).map(wl);return new de(function(u,f){s.map(function(h){return de Line truncated
`).map(i=>{let a=i.match(/^\s+/);if(a===null)return i;let[o]=a;return o.length>=n.length?i.slice(n.length):i}).join(`
`)}var Rs=class{options;rules;lexer;constructor(t){this.options=t||Tt.defaults}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:vd(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=gR(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=vd(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=r[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`);n=vd(n.replace(/^ *>[ \t]?/gm,""),`
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let a=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:a,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),l="",d="",p=!1;for(;t;){let g=!1;if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;l=r[0],t=t.substring(l.length);let E=r[2].split(`
`,1)[0].replace(/^\t+/,N=>" ".repeat(3*N.length)),_=t.split(`
`,1)[0],y=0;this.options.pedantic?(y=2,d=E.trimStart()):(y=r[2].search(/[^ ]/),y=y>4?1:y,d=E.slice(y),y+=r[1].length);let C=!1;if(!E&&/^ *$/.test(_)&&(l+=_+`
`,t=t.substring(_.length+1),g=!0),!g){let N=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),R=new RegExp(`^ {0,${Math.min(3,y-1)}}#`);for(;t;){let B=t.split(`
`,1)[0];if(_=B,this.options.pedantic&&(_=_.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),H.test(_)||R.test(_)||N.test(_)||L.test(t))break;if(_.search(/[^ ]/)>=y||!_.trim())d+=`
`+_.slice(y);else{if(C||E.search(/[^ ]/)>=4||H.test(E)||R.test(E)||L.test(E))break;d+=`
`+_}!C&&!_.trim()&&(C=!0),l+=B+`
`,t=t.substring(B.length+1),E=_.slice(y)}}a.loose||(p?a.loose=!0:/\n *\n *$/.test(l)&&(p=!0));let k=null,P;this.options.gfm&&(k=/^\[[ xX]\] /.exec(d),k&&(P=k[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:l,task:!!k,checked:P,loose:!1,text:d,tokens:[]}),a.raw+=l}a.items[a.items.length-1].raw=l.trimEnd(),a.items[a.items.length-1].text=d.trimEnd(),a.raw=a.raw.trimEnd();for(let g=0;g<a.items.length;g++)if(this.lexer.state.top=!1,a.items[g].tokens=this.lexer.blockTokens(a.items[g].text,[]),!a.loose){let E=a.items[g].tokens.filter(y=>y.type==="space"),_=E.length>0&&E.some(y=>/\n.*\n/.test(y.raw));a.loose=_}if(a.loose)for(let g=0;g<a.items.length;g++)a.items[g].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(/\s+/g," "),i=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=bA(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: *$/.test(l)?o.align.push("right"):/^ *:-+: *$/.test(l)?o.align.push("center"):/^ *:-+ *$/.test(l)?o.align.push("left"):o.align.push(null);for(let l of n)o.header.push({text:l,tokens:this.lexer.inline(l)});for(let l of a)o.rows.push(bA(l,o.header.length).map(d=>({text:d,tokens:this.lexer.inline(d)})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:xn(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let o=vd(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=mR(r[2],"()");if(o>-1){let d=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),EA(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(/\s+/g," "),a=r[i.toLowerCase()];if(!a){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return EA(n,a,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let o=[...i[0]].length-1,l,d,p=o,g=0,E=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,r=r.slice(-1*t.length+o);(i=E.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(d=[...l].length,i[3]||i[4]){p+=d;continue}else if((i[5]||i[6])&&o%3&&!((o+d)%3)){g+=d;continue}if(p-=d,p>0)continue;d=Math.min(d,d+p+g);let _=[...i[0]][0].length,y=t.slice(0,o+i.index+_+d);if(Math.min(o,d)%2){let k=y.slice(1,-1);return{type:"em",raw:y,text:k,tokens:this.lexer.inlineTokens(k)}}let C=y.slice(2,-2);return{type:"strong",raw:y,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=xn(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=xn(r[1]),i="mailto:"+n):(n=xn(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=xn(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=xn(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=xn(r[0]),{type:"text",raw:r[0],text:n}}}},_R=/^(?: *(?:\n|$))+/,bR=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,ER=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$c=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vR=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,AA=/(?:[*+-]|\d{1,9}[.)])/,wA=dt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,AA).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),k0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,TR=/^[^\n]+/,R0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,xR=dt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",R0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yR=dt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,AA).getRegex(),wd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|heaLine truncated
]`).replace("lheading",wA).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},CA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,IR=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,IA=/^( {2,}|\\)\n(?!\s*$)/,NR=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hc="\\p{P}\\p{S}",OR=dt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Hc).getRegex(),DR=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,kR=dt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Hc).getRegex(),RR=dt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Hc).getRegex(),LR=dt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Hc).getRegex(),PR=dt(/\\([punct])/,"gu").replace(/punct/g,Hc).getRegex(),MR=dt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),FR=dt(L0).replace("(?:-->|$)","-->").getRegex(),BR=dt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",FR).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xd=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$R=dt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",xd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),NA=dt(/^!?\[(label)\]\[(ref)\]/).replace("label",xd).replace("ref",R0).getRegex(),OA=dt(/^!?\[(ref)\](?:\[\])?/).replace("ref",R0).getRegex(),HR=dt("reflink|nolink(?!\\()","g").replace("reflink",NA).replace("nolink",OA).getRegex(),M0={_backpedal:Bc,anyPunctuation:PR,autolink:MR,blockSkip:DR,br:IA,code:IR,del:Bc,emStrongLDelim:kR,emStrongRDelimAst:RR,emStrongRDelimUnd:LR,escape:CA,link:$R,nolink:OA,punctuation:OR,reflink:NA,reflinkSearch:HR,tag:BR,text:NR,url:Bc},UR={...M0,link:dt(/^!?\[(label)\]\((.*?)\)/).replace("label",xd).getRegex(),reflink:dt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xd).getRegex()},D0={...M0,escape:dt(CA).replace("])","~|])").getRegex(),url:dt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},VR={...D0,br:dt(IA).replace("{2,}","*").getRegex(),text:dt(D0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Td={normal:P0,gfm:SR,pedantic:CR},Fc={normal:M0,gfm:D0,breaks:VR,pedantic:UR},yn=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Tt.defaults,this.options.tokenizer=this.options.tokenizer||new Rs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:Td.normal,inline:Fc.normal};this.options.pedantic?(r.block=Td.pedantic,r.inline=Fc.pedantic):this.options.gfm&&(r.block=Td.gfm,this.options.breaks?r.inline=Fc.breaks:r.inline=Fc.gfm),this.tokenizer.rules=r}static get rules(){return{block:Td,inline:Fc}}static lex(t,r){return new yn(r).lex(t)}static lexInline(t,r){return new yn(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(l,d,p)=>d+" ".repeat(p.length));let n,i,a,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(a=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,d=t.slice(1),p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},d),typeof p=="number"&&p>=0&&(l=Math.min(l,p))}),l<1/0&&l>=0&&(a=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){i=r[r.length-1],o&&i.type==="paragraph"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n),o=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&i.type==="text"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,a,o=t,l,d,p;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)g.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(d||(p=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(g=>(n=g.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,o,p)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(a=t,this.options.extensions&&this.options.extensions.startInline){let g=1/0,E=t.slice(1),_;this.options.extensions.startInline.forEach(y=>{_=y.call({lexer:this},E),typeof _=="number"&&_>=0&&(g=Math.min(g,_))}),g<1/0&&g>=0&&(a=t.substring(0,g+1))}if(n=this.tokenizer.inlineText(a)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(p=n.raw.slice(-1)),d=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},Ls=class{options;constructor(t){this.options=t||Tt.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
`,i?'<pre><code class="language-'+xn(i)+'">'+(n?t:xn(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:xn(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t,r){return t}heading(t,r,n){return`<h${r}>${t}</h${r}>
`}hr(){return`<hr>
`}list(t,r,n){let i=r?"ol":"ul",a=r&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
`+t+"</"+i+`>
`}listitem(t,r,n){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){let i=_A(t);if(i===null)return n;t=i;let a='<a href="'+t+'"';return r&&(a+=' title="'+r+'"'),a+=">"+n+"</a>",a}image(t,r,n){let i=_A(t);if(i===null)return n;t=i;let a=`<img src="${t}" alt="${n}"`;return r&&(a+=` title="${r}"`),a+=">",a}text(t){return t}},Yo=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}},An=class{options;renderer;textRenderer;constructor(t){this.options=t||Tt.defaults,this.options.renderer=this.options.renderer||new Ls,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Yo}static parse(t,r){return new An(r).parse(t)}static parseInline(t,r){return new An(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let o=a,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){n+=l||"";continue}}switch(a.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let o=a;n+=this.renderer.heading(this.parseInline(o.tokens),o.depth,hR(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{let o=a;n+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{let o=a,l="",d="";for(let g=0;g<o.header.length;g++)d+=this.renderer.tablecell(this.parseInline(o.header[g].tokens),{header:!0,align:o.align[g]});l+=this.renderer.tablerow(d);let p="";for(let g=0;g<o.rows.length;g++){let E=o.rows[g];d="";for(let _=0;_<E.length;_++)d+=this.renderer.tablecell(this.parseInline(E[_].tokens),{header:!1,align:o.align[_]});p+=this.renderer.tablerow(d)}n+=this.renderer.table(l,p);continue}case"blockquote":{let o=a,l=this.parse(o.tokens);n+=this.renderer.blockquote(l);continue}case"list":{let o=a,l=o.ordered,d=o.start,p=o.loose,g="";for(let E=0;E<o.items.length;E++){let _=o.items[E],y=_.checked,C=_.task,k="";if(_.task){let P=this.renderer.checkbox(!!y);p?_.tokens.length>0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=P+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=P+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:P+" "}):k+=P+" "}k+=this.parse(_.tokens,p),g+=this.renderer.listitem(k,C,!!y)}n+=this.renderer.list(g,l,d);continue}case"html":{let o=a;n+=this.renderer.html(o.text,o.block);continue}case"paragraph":{let o=a;n+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=a,l=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],l+=`
`+(o.tokens?this.parseInline(o.tokens):o.text);n+=r?this.renderer.paragraph(l):l;continue}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=o||"";continue}}switch(a.type){case"escape":{let o=a;n+=r.text(o.text);break}case"html":{let o=a;n+=r.html(o.text);break}case"link":{let o=a;n+=r.link(o.href,o.title,this.parseInline(o.tokens,r));break}case"image":{let o=a;n+=r.image(o.href,o.title,o.text);break}case"strong":{let o=a;n+=r.strong(this.parseInline(o.tokens,r));break}case"em":{let o=a;n+=r.em(this.parseInline(o.tokens,r));break}case"codespan":{let o=a;n+=r.codespan(o.text);break}case"br":{n+=r.br();break}case"del":{let o=a;n+=r.del(this.parseInline(o.tokens,r));break}case"text":{let o=a;n+=r.text(o.text);break}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},Ba=class{options;constructor(t){this.options=t||Tt.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};ql(Ba,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var yd=class{defaults=Ad();options=this.setOptions;parse=this.#e(yn.lex,An.parse);parseInline=this.#e(yn.lexInline,An.parseInline);Parser=An;Renderer=Ls;TextRenderer=Yo;Lexer=yn;Tokenizer=Rs;Hooks=Ba;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(let i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let a=i;for(let o of a.header)n=n.concat(this.walkTokens(o.tokens,r));for(let o of a.rows)for(let l of o)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let a=i;n=n.concat(this.walkTokens(a.items,r));break}default:{let a=i;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(o=>{let l=a[o].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...l){let d=a.renderer.apply(this,l);return d===!1&&(d=o.apply(this,l)),d}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new Ls(this.defaults);for(let o in n.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;let l=o,d=n.renderer[l],p=a[l];a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Rs(this.defaults);for(let o in n.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,d=n.tokenizer[l],p=a[l];a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Ba;for(let o in n.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;let l=o,d=n.hooks[l],p=a[l];Ba.passThroughHooks.has(o)?a[l]=g=>{if(this.defaults.async)return Promise.resolve(d.call(a,g)).then(_=>p.call(a,_));let E=d.call(a,g);return p.call(a,E)}:a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(l){let d=[];return d.push(o.call(this,l)),a&&(d=d.concat(a.call(this,l))),d}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return yn.lex(t,r??this.defaults)}parser(t,r){return An.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let a={...i},o={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);let l=this.#t(!!o.silent,!!o.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined o Line truncated
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+xn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Ps=new yd;function st(e,t){return Ps.parse(e,t)}st.options=st.setOptions=function(e){return Ps.setOptions(e),st.defaults=Ps.defaults,TA(st.defaults),st};st.getDefaults=Ad;st.defaults=Tt.defaults;st.use=function(...e){return Ps.use(...e),st.defaults=Ps.defaults,TA(st.defaults),st};st.walkTokens=function(e,t){return Ps.walkTokens(e,t)};st.parseInline=Ps.parseInline;st.Parser=An;st.parser=An.parse;st.Renderer=Ls;st.TextRenderer=Yo;st.Lexer=yn;st.lexer=yn.lex;st.Tokenizer=Rs;st.Hooks=Ba;st.parse=st;var qR=st.options,zR=st.setOptions,YR=st.use,KR=st.walkTokens,jR=st.parseInline,WR=st,GR=An.parse,QR=yn.lex;Tt.Hooks=Ba;Tt.Lexer=yn;Tt.Marked=yd;Tt.Parser=An;Tt.Renderer=Ls;Tt.TextRenderer=Yo;Tt.Tokenizer=Rs;Tt.getDefaults=Ad;Tt.lexer=QR;Tt.marked=st;Tt.options=qR;Tt.parse=WR;Tt.parseInline=jR;Tt.parser=GR;Tt.setOptions=zR;Tt.use=YR;Tt.walkTokens=KR});function kA(e){return e.type===Ze.Tag||e.type===Ze.Script||e.type===Ze.Style}var Ze,RA,LA,PA,MA,FA,BA,$A,HA,UA,Ko=v(()=>{(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Ze||(Ze={}));RA=Ze.Root,LA=Ze.Text,PA=Ze.Directive,MA=Ze.Comment,FA=Ze.Script,BA=Ze.Style,$A=Ze.Tag,HA=Ze.CDATA,UA=Ze.Doctype});function _e(e){return kA(e)}function jo(e){return e.type===Ze.CDATA}function nn(e){return e.type===Ze.Text}function $s(e){return e.type===Ze.Comment}function Cd(e){return e.type===Ze.Directive}function Bn(e){return e.type===Ze.Root}function ht(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Wo(e,t=!1){let r;if(nn(e))r=new Ni(e.data);else if($s(e))r=new Ms(e.data);else if(_e(e)){let n=t?F0(e.children):[],i=new Bs(e.name,{...e.attribs},n);n.forEach(a=>a.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(jo(e)){let n=t?F0(e.children):[],i=new qc(n);n.forEach(a=>a.parent=i),r=i}else if(Bn(e)){let n=t?F0(e.children):[],i=new wn(n);n.forEach(a=>a.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(Cd(e)){let n=new Fs(e.name,e.data);e["x-name"]!=null&&(n["x-name"]=e["x-name"],n["x-publicId"]=e["x-publicId"],n["x-systemId"]=e["x-systemId"]),r=n}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function F0(e){let t=e.map(r=>Wo(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var Sd,Uc,Ni,Ms,Fs,Vc,qc,wn,Bs,B0=v(()=>{Ko();Sd=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Wo(this,t)}},Uc=class extends Sd{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Ni=class extends Uc{constructor(){super(...arguments),this.type=Ze.Text}get nodeType(){return 3}},Ms=class extends Uc{constructor(){super(...arguments),this.type=Ze.Comment}get nodeType(){return 8}},Fs=class extends Uc{constructor(t,r){super(r),this.name=t,this.type=Ze.Directive}get nodeType(){return 1}},Vc=class extends Sd{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},qc=class extends Vc{constructor(){super(...arguments),this.type=Ze.CDATA}get nodeType(){return 4}},wn=class extends Vc{constructor(){super(...arguments),this.type=Ze.Root}get nodeType(){return 9}},Bs=class extends Vc{constructor(t,r,n=[],i=t==="script"?Ze.Script:t==="style"?Ze.Style:Ze.Tag){super(n),this.name=t,this.attribs=r,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,n;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[t]}})}}});var qA,Go,_r=v(()=>{Ko();B0();B0();qA={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Go=class{constructor(t,r,n){this.dom=[],this.root=new wn(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=qA),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??qA,this.elementCB=n??null}onparserinit(t){this.parser=t} Line truncated
`:Dd(e.children):jo(e)?Dd(e.children):nn(e)?e.data:""}function ra(e){return Array.isArray(e)?e.map(ra).join(""):ht(e)&&!$s(e)?ra(e.children):nn(e)?e.data:""}function Kc(e){return Array.isArray(e)?e.map(Kc).join(""):ht(e)&&(e.type===Ze.Tag||jo(e))?Kc(e.children):nn(e)?e.data:""}var Q0=v(()=>{_r();G0();Ko()});function tu(e){return ht(e)?e.children:[]}function o2(e){return e.parent||null}function X0(e){let t=o2(e);if(t!=null)return tu(t);let r=[e],{prev:n,next:i}=e;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;i!=null;)r.push(i),{next:i}=i;return r}function _L(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function bL(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function EL(e){return e.name}function kd(e){let{next:t}=e;for(;t!==null&&!_e(t);)({next:t}=t);return t}function Rd(e){let{prev:t}=e;for(;t!==null&&!_e(t);)({prev:t}=t);return t}var u2=v(()=>{_r()});function na(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function vL(e,t){let r=t.prev=e.prev;r&&(r.next=t);let n=t.next=e.next;n&&(n.prev=t);let i=t.parent=e.parent;if(i){let a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function TL(e,t){if(na(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function xL(e,t){na(t);let{parent:r}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){let i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function yL(e,t){if(na(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function AL(e,t){na(t);let{parent:r}=e;if(r){let n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}var c2=v(()=>{});function ru(e,t,r=!0,n=1/0){return Ld(e,Array.isArray(t)?t:[t],r,n)}function Ld(e,t,r,n){let i=[],a=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=a[0].length){if(o.length===1)return i;a.shift(),o.shift();continue}let l=a[0][o[0]++];if(e(l)&&(i.push(l),--n<=0))return i;r&&ht(l)&&l.children.length>0&&(o.unshift(0),a.unshift(l.children))}}function wL(e,t){return t.find(e)}function Pd(e,t,r=!0){let n=Array.isArray(t)?t:[t];for(let i=0;i<n.length;i++){let a=n[i];if(_e(a)&&e(a))return a;if(r&&ht(a)&&a.children.length>0){let o=Pd(e,a.children,!0);if(o)return o}}return null}function l2(e,t){return(Array.isArray(t)?t:[t]).some(r=>_e(r)&&e(r)||ht(r)&&l2(e,r.children))}function SL(e,t){let r=[],n=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}let a=n[0][i[0]++];_e(a)&&e(a)&&r.push(a),ht(a)&&a.children.length>0&&(i.unshift(0),n.unshift(a.children))}}var Z0=v(()=>{_r()});function J0(e,t){return typeof t=="function"?r=>_e(r)&&t(r.attribs[e]):r=>_e(r)&&r.attribs[e]===t}function CL(e,t){return r=>e(r)||t(r)}function f2(e){let t=Object.keys(e).map(r=>{let n=e[r];return Object.prototype.hasOwnProperty.call(Md,r)?Md[r](n):J0(r,n)});return t.length===0?null:t.reduce(CL)}function IL(e,t){let r=f2(e);return r?r(t):!0}function NL(e,t,r,n=1/0){let i=f2(e);return i?ru(i,t,r,n):[]}function OL(e,t,r=!0){return Array.isArray(t)||(t=[t]),Pd(J0("id",e),t,r)}function Hs(e,t,r=!0,n=1/0){return ru(Md.tag_name(e),t,r,n)}function DL(e,t,r=!0,n=1/0){return ru(J0("class",e),t,r,n)}function kL(e,t,r=!0,n=1/0){return ru(Md.tag_type(e),t,r,n)}var Md,eg=v(()=>{_r();Z0();Md={tag_name(e){return typeof e=="function"?t=>_e(t)&&e(t.name):e==="*"?_e:t=>_e(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>nn(t)&&e(t.data):t=>nn(t)&&t.data===e}}});function RL(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}function d2(e,t){let r=[],n=[];if(e===t)return 0;let i=ht(e)?e:e.parent;for(;i;)r.unshift(i),i=i.parent;for(i=ht(t)?t:t.parent;i;)n.unshift(i),i=i.parent;let a=Math.min(r.length,n.length),o=0;for(;o<a&&r[o]===n[o];)o++;if(o===0)return $n.DISCONNECTED;let l=r[o-1],d=l.children,p=r[o],g=n[o];return d.indexOf(p)>d.indexOf(g)?l===t?$n.FOLLOWING|$n.CONTAINED_BY:$n.FOLLOWING:l===e?$n.PRECEDING|$n.CONTAINS:$n.PRECEDING}function Ua(e){return e=e.filter((t,r,n)=>!n.includes(t,r+1)),e.sort((t,r)=>{let n=d2(t,r);return n&$n.PRECEDING?-1:n&$n.FOLLOWING?1:0}),e}var $n,h2=v(()=>{_r();(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})($n||($n={}))});function tg(e){let t=Fd(BL,e);return t?t.name==="feed"?LL(t):PL(t):null}function LL(e){var t;let r=e.children,n={type:"atom",items:Hs("entry",r).map(o=>{var l;let{children:d}=o,p={media:p2(d)};an(p,"id","id",d),an(p,"title","title",d);let g=(l=Fd Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}});function Eg(e,t){return e===Un.default.falseFunc?Un.default.falseFunc:r=>t.isTag(r)&&e(r)}function vg(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}function _g(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Un,bg,gg,Vd,qd=v(()=>{Un=ln(za(),1);dg();bg={};gg=(e,t,r,n,i)=>{let a=i(t,_g(r),n);return a===Un.default.trueFunc?e:a===Un.default.falseFunc?Un.default.falseFunc:o=>a(o)&&e(o)},Vd={is:gg,matches:gg,where:gg,not(e,t,r,n,i){let a=i(t,_g(r),n);return a===Un.default.falseFunc?e:a===Un.default.trueFunc?Un.default.falseFunc:o=>!a(o)&&e(o)},has(e,t,r,n,i){let{adapter:a}=r,o=_g(r);o.relativeSelector=!0;let l=t.some(g=>g.some(Jc))?[bg]:void 0,d=i(t,o,l);if(d===Un.default.falseFunc)return Un.default.falseFunc;let p=Eg(d,a);if(l&&d!==Un.default.trueFunc){let{shouldTestNextSiblings:g=!1}=d;return E=>{if(!e(E))return!1;l[0]=E;let _=a.getChildren(E),y=g?[..._,...vg(E,a)]:_;return a.existsOne(p,y)}}return g=>e(g)&&a.existsOne(p,a.getChildren(g))}}});function j2(e,t,r,n,i){var a;let{name:o,data:l}=t;if(Array.isArray(l)){if(!(o in Vd))throw new Error(`Unknown pseudo-class :${o}(${l})`);return Vd[o](e,l,r,n,i)}let d=(a=r.pseudos)===null||a===void 0?void 0:a[o],p=typeof d=="string"?d:Ud[o];if(typeof p=="string"){if(l!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let g=ia(p);return Vd.is(e,g,r,n,i)}if(typeof d=="function")return mg(d,o,l,1),g=>d(g,l)&&e(g);if(o in uu)return uu[o](e,l,r,n);if(o in tl){let g=tl[o];return mg(g,o,l,2),E=>g(E,r,l)&&e(E)}throw new Error(`Unknown pseudo-class :${o}`)}var Tg=v(()=>{su();z2();Y2();K2();qd()});function xg(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function W2(e,t,r,n,i){let{adapter:a,equals:o}=r;switch(t.type){case Ee.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ee.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ee.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),M2[t.action](e,t,r)}case Ee.Pseudo:return j2(e,t,r,n,i);case Ee.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return(!r.xmlMode||r.lowerCaseTags)&&(l=l.toLowerCase()),function(p){return a.getName(p)===l&&e(p)}}case Ee.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(p){let g=p;for(;g=xg(g,a);)if(e(g))return!0;return!1};let l=new WeakSet;return function(p){let g=p;for(;g=xg(g,a);)if(!l.has(g)){if(a.isTag(g)&&e(g))return!0;l.add(g)}return!1}}case"_flexibleDescendant":return function(d){let p=d;do if(e(p))return!0;while(p=xg(p,a));return!1};case Ee.Parent:return function(d){return a.getChildren(d).some(p=>a.isTag(p)&&e(p))};case Ee.Child:return function(d){let p=a.getParent(d);return p!=null&&a.isTag(p)&&e(p)};case Ee.Sibling:return function(d){let p=a.getSiblings(d);for(let g=0;g<p.length;g++){let E=p[g];if(o(d,E))break;if(a.isTag(E)&&e(E))return!0}return!1};case Ee.Adjacent:return a.prevElementSibling?function(d){let p=a.prevElementSibling(d);return p!=null&&e(p)}:function(d){let p=a.getSiblings(d),g;for(let E=0;E<p.length;E++){let _=p[E];if(o(d,_))break;a.isTag(_)&&(g=_)}return!!g&&e(g)};case Ee.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}var G2=v(()=>{F2();Tg();su()});function Q2(e,t,r){let n=zd(e,t,r);return Eg(n,t.adapter)}function zd(e,t,r){let n=typeof e=="string"?ia(e):e;return Yd(n,t,r)}function X2(e){return e.type===Ee.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(X2)))}function pP(e,{adapter:t},r){let n=!!r?.every(i=>{let a=t.isTag(i)&&t.getParent(i);return i===bg||a&&t.isTag(a)});for(let i of e){if(!(i.length>0&&Jc(i[0])&&i[0].type!==Ee.Descendant))if(n&&!i.some(X2))i.unshift(fP);else continue;i.unshift(hP)}}function Yd(e,t,r){var n;e.forEach(fg),r=(n=t.context)!==null&&n!==void 0?n:r;let i=Array.isArray(r),a=r&&(Arra Line truncated
`)})):{name:i,value:a.replace(Ew,`\r
`)}}).toArray()}var bw,w4,Ew,vw=v(()=>{_r();bw="input,select,textarea,keygen",w4=/%20/g,Ew=/\r?\n/g});var Ug={};Nn(Ug,{extract:()=>N4});function I4(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function N4(e){let t={};for(let r in e){let n=e[r],i=Array.isArray(n),{selector:a,value:o}=I4(i?n[0]:n),l=typeof o=="function"?o:typeof o=="string"?d=>this._make(d).prop(o):d=>this._make(d).extract(o);if(i)t[r]=this._findBySelector(a,Number.POSITIVE_INFINITY).map((d,p)=>l(p,r,t)).get();else{let d=this._findBySelector(a,1);t[r]=d.length>0?l(d[0],r,t):void 0}}return t}var Tw=v(()=>{});var ja,xw=v(()=>{C2();lw();pw();_w();vw();Tw();ja=class{constructor(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}};ja.prototype.cheerio="[cheerio object]";ja.prototype.splice=Array.prototype.splice;ja.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ja.prototype,ug,Mg,Bg,$g,Hg,Ug)});function yw(e,t){return function r(n,i,a=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=jc(i),l=e(n,o,a,null);class d extends ja{_make(E,_){let y=p(E,_);return y.prevObject=this,y}_parse(E,_,y,C){return e(E,_,y,C)}_render(E){return t(E,this.options)}}function p(g,E,_=l,y){if(g&&Hn(g))return g;let C=jc(y,o),k=typeof _=="string"?[e(_,C,!1,null)]:"length"in _?_:[_],P=Hn(k)?k:new d(k,null,C);if(P._root=P,!g)return new d(void 0,P,C);let N=typeof g=="string"&&Gc(g)?e(g,C,!1,null).children:O4(g)?[g]:Array.isArray(g)?g:void 0,L=new d(N,P,C);if(N)return L;if(typeof g!="string")throw new TypeError("Unexpected type of selector");let H=g,R=E?typeof E=="string"?Gc(E)?new d([e(E,C,!1,null)],P,C):(H=`${E} ${H}`,P):Hn(E)?E:new d(Array.isArray(E)?E:[E],P,C):P;return R?R.find(H):L}return Object.assign(p,ig,{load:r,_root:l,_options:o,fn:d.prototype,prototype:d.prototype}),p}}function O4(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Aw=v(()=>{rg();nu();xw();iu()});function Xd(e){return e>=55296&&e<=57343}function ww(e){return e>=56320&&e<=57343}function Sw(e,t){return(e-55296)*1024+9216+t}function Zd(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Jd(e){return e>=64976&&e<=65007||D4.has(e)}var D4,xt,x,Vr,eh=v(()=>{D4=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),xt="\uFFFD";(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(x||(x={}));Vr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"}});var Y,il=v(()=>{(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeVal Line truncated
`)}else if(dc(t))try{let g=JSON.parse(await r.vault.cachedRead(n)),E=[],_=y=>{for(let C in y)typeof y[C]=="object"?_(y[C]):C==="content"&&E.push(y[C])};_(g),i=E.join(`\r
`)}catch(g){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(g)}else Mn(t)&&(this.plugin.settings.imagesIndexing&&a?.canFileBeExtracted(t)||this.plugin.settings.aiImageIndexing&&o?.canBeAnalyzed(n))?(this.plugin.settings.imagesIndexing&&a?.canFileBeExtracted(t)&&(i=await a.extractText(n)),this.plugin.settings.aiImageIndexing&&o?.canBeAnalyzed(n)&&(i=await o.analyzeImage(n)+(i??""))):ti(t)&&this.plugin.settings.PDFIndexing&&a?.canFileBeExtracted(t)?i=await a.extractText(n):fv(t)&&this.plugin.settings.officeIndexing&&a?.canFileBeExtracted(t)?i=await a.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(console.warn(`Omnisearch: ${i} content for file`,n.path),i="");let l=r.metadataCache.getFileCache(n);if(l){let g=gv(this.plugin.app,n,l);for(let E of g.filter(_=>!this.documents.has(_))){let _=this.plugin.notesIndexer.generateIndexableNonexistingDocument(E,n.path)}if(l.frontmatter?.["excalidraw-plugin"]){let E=l.sections?.filter(_=>_.type==="comment")??[];for(let{start:_,end:y}of E.map(C=>C.position))i=i.substring(0,_.offset-1)+i.substring(y.offset)}}let d;this.plugin.settings.displayTitle==="#heading"?d=l?.headings?.find(g=>g.level===1)?.heading??"":d=l?.frontmatter?.[this.plugin.settings.displayTitle]??"";let p=lv(l);return{basename:n.basename,displayTitle:d,content:i,cleanedContent:uv(Wi(i)),path:n.path,mtime:n.stat.mtime,tags:p,unmarkedTags:p.map(g=>g.replace("#","")),aliases:cv(l).join(""),headings1:l?Af(l,1).join(" "):"",headings2:l?Af(l,2).join(" "):"",headings3:l?Af(l,3).join(" "):""}}};Nr();_c();Nr();var yh=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)Ke("Updating file",r.path),await this.plugin.documentsRepository.addDocument(r.path);let t=[...this.notesToReindex].map(r=>r.path);t.length&&(this.plugin.searchEngine.removeFromPaths(t),await this.plugin.searchEngine.addFromPaths(t),this.notesToReindex.clear())}isFileIndexable(t){return this.isFilenameIndexable(t)||this.isContentIndexable(t)}isContentIndexable(t){let r=this.plugin.settings,n=!!this.plugin.getTextExtractor(),i=!!this.plugin.getAIImageAnalyzer(),a=n&&r.PDFIndexing,o=n&&r.imagesIndexing,l=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||Ai(t)||dc(t)||a&&ti(t)||o&&Mn(t)||l&&Mn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||Ai(t)||dc(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=Nm(t),{path:t+(t.endsWith(".md")?"":".md"),basename:t,displayTitle:"",mtime:0,content:"",cleanedContent:"",tags:[],unmarkedTags:[],aliases:"",headings1:"",headings2:"",headings3:"",doesNotExist:!0,parent:r}}isFilePlaintext(t){return[...this.plugin.settings.indexedFileTypes,"md"].some(r=>t.endsWith(`.${r}`))}};s0();var wh=require("obsidian");Nr();var Ah=class{constructor(t){this.plugin=t;this.embeds=new Map}addEmbed(t,r){this.embeds.has(t)||this.embeds.set(t,new Set),this.embeds.get(t).add(r)}removeFile(t){this.embeds.delete(t),this.refreshEmbedsForNote(t)}renameFile(t,r){this.embeds.has(t)&&(this.embeds.set(r,this.embeds.get(t)),this.embeds.delete(t)),this.embeds.forEach((n,i)=>{n.has(t)&&(n.delete(t),n.add(r))})}refreshEmbedsForNote(t){this.embeds.forEach((r,n)=>{r.has(t)&&r.delete(t)}),this.addEmbedsForNote(t)}getEmbeds(t){return this.embeds.has(t)?[...this.embeds.get(t)]:[]}async writeToCache(){Ke("Writing embeds to cache");let t=this.plugin.database,r=[];for(let[n,i]of this.embeds)r.push({embedded:n,referencedBy:[...i]});await t.embeds.clear(),await t.embeds.bulkAdd(r)}async loadFromCache(){try{let t=this.plugin.database;if(!t.embeds){Ke("No embeds in cache");return}Ke("Loading embeds from cache");let r=await t.embeds.toArray();for(let{embedded:n,referencedBy:i}of r)for(let a of i)this.addEmbed(n,a)}catch{this.plugin.database.clearCache(),console.error("Omnisearch - Error while loading embeds cache"),new wh.Notice("Omnisearch - There was an error while loading the cache. Please restart Obsidian.")}}addEmbedsForNote(t){let r=(this.plugin.app.metadataCache.getCache(t)?.embeds??[]).map(n=>this.plugin.app.metadataCache.getFirstLinkpathDest((0,wh.getLinkpath)(n.link),t)).filter(n=>!!n);for(let n of r)this.addEmbed(n.path,t)}};var Sh=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1}async addToHistory(t){if(!t){this.nextQueryIsEmpty=!0;return}this.nextQueryIsEmpty=!1;let r=this.plugin.database,n=await r.searchHistory.toArray();n=n.filter(i=>i.query!==t).reverse(),n.unshift({query:t}),n=n.slice(0,10),await r.searchHistory.clear(),await r.searchHistory.bulkAdd(n)}async getHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}};var Ch=class Line truncated
/*! Bundled license information:
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
search-query-parser/lib/search-query-parser.js:
(*!
* search-query-parser.js
* Copyright(c) 2014-2019
* MIT Licensed
*)
dexie/dist/dexie.js:
(*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** *)
*/
/* nosourcemap */
+14
View File
@@ -0,0 +1,14 @@
{
"id": "omnisearch",
"name": "Omnisearch",
"version": "1.27.1",
"minAppVersion": "1.7.2",
"description": "A search engine that just works",
"author": "Simon Cambier",
"authorUrl": "https://github.com/scambier/obsidian-omnisearch",
"fundingUrl": {
"Github": "https://github.com/sponsors/scambier",
"Ko-fi": "https://ko-fi.com/scambier"
},
"isDesktopOnly": false
}
+135
View File
@@ -0,0 +1,135 @@
.omnisearch-modal {
}
.omnisearch-result {
white-space: normal;
display: flex;
flex-direction: row;
/* justify-content: space-between; */
flex-wrap: nowrap;
}
.omnisearch-result__title-container {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 5px;
flex-wrap: wrap;
}
.omnisearch-result__title {
white-space: pre-wrap;
align-items: center;
display: flex;
gap: 5px;
}
.omnisearch-result__title > span {
}
.omnisearch-result__folder-path {
font-size: 0.75rem;
align-items: center;
display: flex;
gap: 5px;
color: var(--text-muted);
}
.omnisearch-result__extension {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__counter {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__body {
white-space: normal;
font-size: small;
word-wrap: normal;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
color: var(--text-muted);
margin-inline-start: 0.5em;
}
.omnisearch-result__embed {
margin-left: 1em;
}
.omnisearch-result__image-container {
flex-basis: 20%;
text-align: end;
}
.omnisearch-highlight {
}
.omnisearch-default-highlight {
text-decoration: underline;
text-decoration-color: var(--text-highlight-bg);
text-decoration-thickness: 3px;
text-underline-offset: -1px;
text-decoration-skip-ink: none;
}
.omnisearch-input-container {
display: flex;
align-items: center;
flex-direction: row;
gap: 5px;
}
.omnisearch-result__icon {
display: inline-block;
vertical-align: middle;
width: 16px;
height: 16px;
margin-right: 4px;
}
.omnisearch-result__icon svg {
width: 100%;
height: 100%;
}
.omnisearch-result__icon--emoji {
font-size: 16px;
vertical-align: middle;
margin-right: 4px;
}
@media only screen and (max-width: 600px) {
.omnisearch-input-container {
flex-direction: column;
}
.omnisearch-input-container__buttons {
display: flex;
flex-direction: row;
width: 100%;
padding: 0 1em 0 1em;
gap: 1em;
}
.omnisearch-input-container__buttons > button {
flex-grow: 1;
}
}
@media only screen and (min-width: 600px) {
.omnisearch-input-container__buttons {
margin-inline-end: 1em;
}
}
.omnisearch-input-field {
position: relative;
flex-grow: 1;
}
+191
View File
@@ -0,0 +1,191 @@
/*
THIS IS A GENERATED/BUNDLED FILE
If you want to view the source, visit the plugins github repository
https://github.com/ozntel/oz-image-in-editor-obsidian
*/
var cu=Object.create;var Se=Object.defineProperty;var su=Object.getOwnPropertyDescriptor;var lu=Object.getOwnPropertyNames,Rr=Object.getOwnPropertySymbols,fu=Object.getPrototypeOf,Ir=Object.prototype.hasOwnProperty,pu=Object.prototype.propertyIsEnumerable;var Fr=(e,n,r)=>n in e?Se(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,cr=(e,n)=>{for(var r in n||(n={}))Ir.call(n,r)&&Fr(e,r,n[r]);if(Rr)for(var r of Rr(n))pu.call(n,r)&&Fr(e,r,n[r]);return e};var jr=e=>Se(e,"__esModule",{value:!0});var H=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),mu=(e,n)=>{jr(e);for(var r in n)Se(e,r,{get:n[r],enumerable:!0})},hu=(e,n,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of lu(n))!Ir.call(e,a)&&a!=="default"&&Se(e,a,{get:()=>n[a],enumerable:!(r=su(n,a))||r.enumerable});return e},Z=e=>hu(jr(Se(e!=null?cu(fu(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ne=(e,n,r)=>new Promise((a,d)=>{var o=_=>{try{m(r.next(_))}catch(x){d(x)}},c=_=>{try{m(r.throw(_))}catch(x){d(x)}},m=_=>_.done?a(_.value):Promise.resolve(_.value).then(o,c);m((r=r.apply(e,n)).next())});var Vr=H((Ur,Ue)=>{(function(){function e(i){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses iLine truncated
`),l=l.replace(/\r/g,`
`),l=l.replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(l=y(l)),l=`
`+l+`
`,l=r.subParser("detab")(l,t,k),l=l.replace(/^[ \t]+$/mg,""),r.helper.forEach(u,function(C){l=r.subParser("runExtension")(C,l,t,k)}),l=r.subParser("metadata")(l,t,k),l=r.subParser("hashPreCodeTags")(l,t,k),l=r.subParser("githubCodeBlocks")(l,t,k),l=r.subParser("hashHTMLBlocks")(l,t,k),l=r.subParser("hashCodeTags")(l,t,k),l=r.subParser("stripLinkDefinitions")(l,t,k),l=r.subParser("blockGamut")(l,t,k),l=r.subParser("unhashHTMLSpans")(l,t,k),l=r.subParser("unescapeSpecialChars")(l,t,k),l=l.replace(/¨D/g,"$$"),l=l.replace(/¨T/g,"\xA8"),l=r.subParser("completeHTMLDocument")(l,t,k),r.helper.forEach(s,function(C){l=r.subParser("runExtension")(C,l,t,k)}),f=k.metadata,l},this.makeMarkdown=this.makeMd=function(l,k){if(l=l.replace(/\r\n/g,`
`),l=l.replace(/\r/g,`
`),l=l.replace(/>[ \t]+</,">\xA8NBSP;<"),!k)if(window&&window.document)k=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var C=k.createElement("div");C.innerHTML=l;var L={preList:J(C)};Y(C);for(var j=C.childNodes,P="",q=0;q<j.length;q++)P+=r.subParser("makeMarkdown.node")(j[q],L);function Y(D){for(var U=0;U<D.childNodes.length;++U){var ee=D.childNodes[U];ee.nodeType===3?/\S/.test(ee.nodeValue)?(ee.nodeValue=ee.nodeValue.split(`
`).join(" "),ee.nodeValue=ee.nodeValue.replace(/(\s)+/g,"$1")):(D.removeChild(ee),--U):ee.nodeType===1&&Y(ee)}}function J(D){for(var U=D.querySelectorAll("pre"),ee=[],re=0;re<U.length;++re)if(U[re].childElementCount===1&&U[re].firstChild.tagName.toLowerCase()==="code"){var tr=U[re].firstChild.innerHTML.trim(),dr=U[re].firstChild.getAttribute("data-language")||"";if(dr==="")for(var Pr=U[re].firstChild.className.split(" "),or=0;or<Pr.length;++or){var Mr=Pr[or].match(/^language-(.+)$/);if(Mr!==null){dr=Mr[1];break}}tr=r.helper.unescapeHTMLEntities(tr),ee.push(tr),U[re].outerHTML='<precode language="'+dr+'" precodenum="'+re.toString()+'"></precode>'}else ee.push(U[re].innerHTML),U[re].innerHTML="",U[re].setAttribute("prenum",re.toString());return ee}return P},this.setOption=function(l,k){t[l]=k},this.getOption=function(l){return t[l]},this.getOptions=function(){return t},this.addExtension=function(l,k){k=k||null,T(l,k)},this.useExtension=function(l){T(l)},this.setFlavor=function(l){if(!m.hasOwnProperty(l))throw Error(l+" flavor was not found");var k=m[l];h=l;for(var C in k)k.hasOwnProperty(C)&&(t[C]=k[C])},this.getFlavor=function(){return h},this.removeExtension=function(l){r.helper.isArray(l)||(l=[l]);for(var k=0;k<l.length;++k){for(var C=l[k],L=0;L<u.length;++L)u[L]===C&&u[L].splice(L,1);for(var j=0;j<s.length;++L)s[j]===C&&s[j].splice(L,1)}},this.getAllExtensions=function(){return{language:u,output:s}},this.getMetadata=function(l){return l?f.raw:f.parsed},this.getMetadataFormat=function(){return f.format},this._setMetadataPair=function(l,k){f.parsed[l]=k},this._setMetadataFormat=function(l){f.format=l},this._setMetadataRaw=function(l){f.raw=l}},r.subParser("anchors",function(i,t,u){"use strict";i=u.converter._dispatch("anchors.before",i,t,u);var s=function(p,h,f,g,T,b,w){if(r.helper.isUndefined(w)&&(w=""),f=f.toLowerCase(),p.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)g="";else if(!g)if(f||(f=h.toLowerCase().replace(/ ?\n/g," ")),g="#"+f,!r.helper.isUndefined(u.gUrls[f]))g=u.gUrls[f],r.helper.isUndefined(u.gTitles[f])||(w=u.gTitles[f]);else return p;g=g.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var y='<a href="'+g+'"';return w!==""&&w!==null&&(w=w.replace(/"/g,"&quot;"),w=w.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),y+=' title="'+w+'"'),t.openLinksInNewWindow&&!/^#/.test(g)&&(y+=' rel="noopener noreferrer" target="\xA8E95Eblank"'),y+=">"+h+"</a>",y};return i=i.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,s),i=i.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,s),i=i.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,s),i=i.replace(/\[([^\[\]]+)]()()()()()/g,s),t.ghMentions&&(i=i.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(p,h,f,g,T){if(f==="\\")return h+g;if(!r.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var b=t.ghMentionsLink.replace(/\{u}/g,T),w="";return t.openLinksInNewWindow&&(w=' rel="noopener noreferrer" target="\xA8E95Eblank"'),h+'<a href="'+b+'"'+w+">"+g+"</a>"})),i=u.converter._dispatch("anchors.after",i,t,u),i});var A=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,E=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,v=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,M=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,F=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,I=function(i){"use strict";return function(t,u,s,p,h,f,g){s=s.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var T=s,b="",w="",y=u||"",l=g||"";return/^www\./i.test(s)&&(s=s.replace(/^www\./i,"http://www.")),i.excludeTrailingPunctuationFromURLs&&f&&(b=f),i.openLinksInNewWindow&&(w=' rel="noopener noreferrer" target="\xA8E95Eblank"'),y+'<a href="'+s+'"'+w+">"+T+"</a>"+b+l}},W=function(i,t){"use strict";return function(u,s,p){var h="mailto:";return s=s||"",p=r.subParser("unescapeSpecialChars")(p,i,t),i.encodeEmails?(h=r.helper.encodeEmailAddress(h+p),p=r.helper.encodeEmailAddress(p)):h=h+p,s+'<a href="'+h+'">'+p+"</a>"}};r.subParser("autoLinks",function(i,t,u){"use strict";return i=u.converter._dispatch("autoLinks.before",i,t,u),i=i.replace(v,I(t)),i=i.replace(F,W(t,u)),i=u.converter._dispatch("autoLinks.after",i,t,u),i}),r.subParser("simplifiedAutoLinks",function(i,t,u){"use strict";return t.simplifiedAutoLink&&(i=u.converter._dispatch("simplifiedAutoLinks.before",i,t,u),t.excludeTrailingPunctuationFromURLs?i=i.replace(E,I(t)):i=i.replace(A,I(t)),i=i.replace(M,W(t,u)),i=u.converter._dispatch("simplifiedAutoLinks.after",i,t,u)),i}),r.subParser("blockGamut",function(i,t,u){"use strict";return i=u.converter._dispatch("blockGamut.before",i,t,u),iLine truncated
`;var s=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(s=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),i=i.replace(s,function(p){return p=p.replace(/^[ \t]*>[ \t]?/gm,""),p=p.replace(/¨0/g,""),p=p.replace(/^[ \t]+$/gm,""),p=r.subParser("githubCodeBlocks")(p,t,u),p=r.subParser("blockGamut")(p,t,u),p=p.replace(/(^|\n)/g,"$1 "),p=p.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(h,f){var g=f;return g=g.replace(/^ /mg,"\xA80"),g=g.replace(/¨0/g,""),g}),r.subParser("hashBlock")(`<blockquote>
`+p+`
</blockquote>`,t,u)}),i=u.converter._dispatch("blockQuotes.after",i,t,u),i}),r.subParser("codeBlocks",function(i,t,u){"use strict";i=u.converter._dispatch("codeBlocks.before",i,t,u),i+="\xA80";var s=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return i=i.replace(s,function(p,h,f){var g=h,T=f,b=`
`;return g=r.subParser("outdent")(g,t,u),g=r.subParser("encodeCode")(g,t,u),g=r.subParser("detab")(g,t,u),g=g.replace(/^\n+/g,""),g=g.replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(b=""),g="<pre><code>"+g+b+"</code></pre>",r.subParser("hashBlock")(g,t,u)+T}),i=i.replace(/¨0/,""),i=u.converter._dispatch("codeBlocks.after",i,t,u),i}),r.subParser("codeSpans",function(i,t,u){"use strict";return i=u.converter._dispatch("codeSpans.before",i,t,u),typeof i=="undefined"&&(i=""),i=i.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(s,p,h,f){var g=f;return g=g.replace(/^([ \t]*)/g,""),g=g.replace(/[ \t]*$/g,""),g=r.subParser("encodeCode")(g,t,u),g=p+"<code>"+g+"</code>",g=r.subParser("hashHTMLSpans")(g,t,u),g}),i=u.converter._dispatch("codeSpans.after",i,t,u),i}),r.subParser("completeHTMLDocument",function(i,t,u){"use strict";if(!t.completeHTMLDocument)return i;i=u.converter._dispatch("completeHTMLDocument.before",i,t,u);var s="html",p=`<!DOCTYPE HTML>
`,h="",f=`<meta charset="utf-8">
`,g="",T="";typeof u.metadata.parsed.doctype!="undefined"&&(p="<!DOCTYPE "+u.metadata.parsed.doctype+`>
`,s=u.metadata.parsed.doctype.toString().toLowerCase(),(s==="html"||s==="html5")&&(f='<meta charset="utf-8">'));for(var b in u.metadata.parsed)if(u.metadata.parsed.hasOwnProperty(b))switch(b.toLowerCase()){case"doctype":break;case"title":h="<title>"+u.metadata.parsed.title+`</title>
`;break;case"charset":s==="html"||s==="html5"?f='<meta charset="'+u.metadata.parsed.charset+`">
`:f='<meta name="charset" content="'+u.metadata.parsed.charset+`">
`;break;case"language":case"lang":g=' lang="'+u.metadata.parsed[b]+'"',T+='<meta name="'+b+'" content="'+u.metadata.parsed[b]+`">
`;break;default:T+='<meta name="'+b+'" content="'+u.metadata.parsed[b]+`">
`}return i=p+"<html"+g+`>
<head>
`+h+f+T+`</head>
<body>
`+i.trim()+`
</body>
</html>`,i=u.converter._dispatch("completeHTMLDocument.after",i,t,u),i}),r.subParser("detab",function(i,t,u){"use strict";return i=u.converter._dispatch("detab.before",i,t,u),i=i.replace(/\t(?=\t)/g," "),i=i.replace(/\t/g,"\xA8A\xA8B"),i=i.replace(/¨B(.+?)¨A/g,function(s,p){for(var h=p,f=4-h.length%4,g=0;g<f;g++)h+=" ";return h}),i=i.replace(/¨A/g," "),i=i.replace(/¨B/g,""),i=u.converter._dispatch("detab.after",i,t,u),i}),r.subParser("ellipsis",function(i,t,u){"use strict";return i=u.converter._dispatch("ellipsis.before",i,t,u),i=i.replace(/\.\.\./g,"\u2026"),i=u.converter._dispatch("ellipsis.after",i,t,u),i}),r.subParser("emoji",function(i,t,u){"use strict";if(!t.emoji)return i;i=u.converter._dispatch("emoji.before",i,t,u);var s=/:([\S]+?):/g;return i=i.replace(s,function(p,h){return r.helper.emojis.hasOwnProperty(h)?r.helper.emojis[h]:p}),i=u.converter._dispatch("emoji.after",i,t,u),i}),r.subParser("encodeAmpsAndAngles",function(i,t,u){"use strict";return i=u.converter._dispatch("encodeAmpsAndAngles.before",i,t,u),i=i.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),i=i.replace(/<(?![a-z\/?$!])/gi,"&lt;"),i=i.replace(/</g,"&lt;"),i=i.replace(/>/g,"&gt;"),i=u.converter._dispatch("encodeAmpsAndAngles.after",i,t,u),i}),r.subParser("encodeBackslashEscapes",function(i,t,u){"use strict";return i=u.converter._dispatch("encodeBackslashEscapes.before",i,t,u),i=i.replace(/\\(\\)/g,r.helper.escapeCharactersCallback),i=i.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,r.helper.escapeCharactersCallback),i=u.converter._dispatch("encodeBackslashEscapes.after",i,t,u),i}),r.subParser("encodeCode",function(i,t,u){"use strict";return i=u.converter._dispatch("encodeCode.before",i,t,u),i=i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,r.helper.escapeCharactersCallback),i=u.converter._dispatch("encodeCode.after",i,t,u),i}),r.subParser("escapeSpecialCharsWithinTagAttributes",function(i,t,u){"use strict";i=u.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",i,t,u);var s=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,p=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return i=i.replace(s,function(h){return h.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),i=i.replace(p,function(h){return h.replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),i=u.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",i,t,u),i}),r.subParser("githubCodeBlocks",function(i,t,u){"use strict";return t.ghCodeBlocks?(i=u.converter._dispatch("githubCodeBlocks.before",i,t,u),i+="\xA80",i=i.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(s,p,h,f){var g=t.omitExtraWLInCodeBlocks?"":`
`;return f=r.subParser("encodeCode")(f,t,u),f=r.subParser("detab")(f,t,u),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,""),f="<pre><code"+(h?' class="'+h+" language-"+h+'"':"")+">"+f+g+"</code></pre>",f=r.subParser("hashBlock")(f,t,u),`
\xA8G`+(u.ghCodeBlocks.push({text:s,codeblock:f})-1)+`G
`}),i=i.replace(/¨0/,""),u.converter._dispatch("githubCodeBlocks.after",i,t,u)):i}),r.subParser("hashBlock",function(i,t,u){"use strict";return i=u.converter._dispatch("hashBlock.before",i,t,u),i=i.replace(/(^\n+|\n+$)/g,""),i=`
\xA8K`+(u.gHtmlBlocks.push(i)-1)+`K
`,i=u.converter._dispatch("hashBlock.after",i,t,u),i}),r.subParser("hashCodeTags",function(i,t,u){"use strict";i=u.converter._dispatch("hashCodeTags.before",i,t,u);var s=function(p,h,f,g){var T=f+r.subParser("encodeCode")(h,t,u)+g;return"\xA8C"+(u.gHtmlSpans.push(T)-1)+"C"};return i=r.helper.replaceRecursiveRegExp(i,s,"<code\\b[^>]*>","</code>","gim"),i=u.converter._dispatch("hashCodeTags.after",i,t,u),i}),r.subParser("hashElement",function(i,t,u){"use strict";return function(s,p){var h=p;return h=h.replace(/\n\n/g,`
`),h=h.replace(/^\n/,""),h=h.replace(/\n+$/g,""),h=`
\xA8K`+(u.gHtmlBlocks.push(h)-1)+`K
`,h}}),r.subParser("hashHTMLBlocks",function(i,t,u){"use strict";i=u.converter._dispatch("hashHTMLBlocks.before",i,t,u);var s=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],p=function(l,k,C,L){var j=l;return C.search(/\bmarkdown\b/)!==-1&&(j=C+u.converter.makeHtml(k)+L),`
\xA8K`+(u.gHtmlBlocks.push(j)-1)+`K
`};t.backslashEscapesHTMLTags&&(i=i.replace(/\\<(\/?[^>]+?)>/g,function(l,k){return"&lt;"+k+"&gt;"}));for(var h=0;h<s.length;++h)for(var f,g=new RegExp("^ {0,3}(<"+s[h]+"\\b[^>]*>)","im"),T="<"+s[h]+"\\b[^>]*>",b="</"+s[h]+">";(f=r.helper.regexIndexOf(i,g))!==-1;){var w=r.helper.splitAtIndex(i,f),y=r.helper.replaceRecursiveRegExp(w[1],p,T,b,"im");if(y===w[1])break;i=w[0].concat(y)}return i=i.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(i,t,u)),i=r.helper.replaceRecursiveRegExp(i,function(l){return`
\xA8K`+(u.gHtmlBlocks.push(l)-1)+`K
`},"^ {0,3}<!--","-->","gm"),i=i.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(i,t,u)),i=u.converter._dispatch("hashHTMLBlocks.after",i,t,u),i}),r.subParser("hashHTMLSpans",function(i,t,u){"use strict";i=u.converter._dispatch("hashHTMLSpans.before",i,t,u);function s(p){return"\xA8C"+(u.gHtmlSpans.push(p)-1)+"C"}return i=i.replace(/<[^>]+?\/>/gi,function(p){return s(p)}),i=i.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(p){return s(p)}),i=i.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(p){return s(p)}),i=i.replace(/<[^>]+?>/gi,function(p){return s(p)}),i=u.converter._dispatch("hashHTMLSpans.after",i,t,u),i}),r.subParser("unhashHTMLSpans",function(i,t,u){"use strict";i=u.converter._dispatch("unhashHTMLSpans.before",i,t,u);for(var s=0;s<u.gHtmlSpans.length;++s){for(var p=u.gHtmlSpans[s],h=0;/¨C(\d+)C/.test(p);){var f=RegExp.$1;if(p=p.replace("\xA8C"+f+"C",u.gHtmlSpans[f]),h===10){console.error("maximum nesting of 10 spans reached!!!");break}++h}i=i.replace("\xA8C"+s+"C",p)}return i=u.converter._dispatch("unhashHTMLSpans.after",i,t,u),i}),r.subParser("hashPreCodeTags",function(i,t,u){"use strict";i=u.converter._dispatch("hashPreCodeTags.before",i,t,u);var s=function(p,h,f,g){var T=f+r.subParser("encodeCode")(h,t,u)+g;return`
\xA8G`+(u.ghCodeBlocks.push({text:p,codeblock:T})-1)+`G
`};return i=r.helper.replaceRecursiveRegExp(i,s,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),i=u.converter._dispatch("hashPreCodeTags.after",i,t,u),i}),r.subParser("headers",function(i,t,u){"use strict";i=u.converter._dispatch("headers.before",i,t,u);var s=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),p=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,h=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;i=i.replace(p,function(T,b){var w=r.subParser("spanGamut")(b,t,u),y=t.noHeaderId?"":' id="'+g(b)+'"',l=s,k="<h"+l+y+">"+w+"</h"+l+">";return r.subParser("hashBlock")(k,t,u)}),i=i.replace(h,function(T,b){var w=r.subParser("spanGamut")(b,t,u),y=t.noHeaderId?"":' id="'+g(b)+'"',l=s+1,k="<h"+l+y+">"+w+"</h"+l+">";return r.subParser("hashBlock")(k,t,u)});var f=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;i=i.replace(f,function(T,b,w){var y=w;t.customizedHeaderId&&(y=w.replace(/\s?\{([^{]+?)}\s*$/,""));var l=r.subParser("spanGamut")(y,t,u),k=t.noHeaderId?"":' id="'+g(w)+'"',C=s-1+b.length,L="<h"+C+k+">"+l+"</h"+C+">";return r.subParser("hashBlock")(L,t,u)});function g(T){var b,w;if(t.customizedHeaderId){var y=T.match(/\{([^{]+?)}\s*$/);y&&y[1]&&(T=y[1])}return b=T,r.helper.isString(t.prefixHeaderId)?w=t.prefixHeaderId:t.prefixHeaderId===!0?w="section-":w="",t.rawPrefixHeaderId||(b=w+b),t.ghCompatibleHeaderId?b=b.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?b=b.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"\xA8").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():b=b.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(b=w+b),u.hashLinkCounts[b]?b=b+"-"+u.hashLinkCounts[b]++:u.hashLinkCounts[b]=1,b}return i=u.converter._dispatch("headers.after",i,t,u),i}),r.subParser("horizontalRule",function(i,t,u){"use strict";i=u.converter._dispatch("horizontalRule.before",i,t,u);var s=r.subParser("hashBlock")("<hr />",t,u);return i=i.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,s),i=i.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,s),i=i.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,s),i=u.converter._dispatch("horizontalRule.after",i,t,u),i}),r.subParser("images",function(i,t,u){"use strict";i=u.converter._dispatch("images.before",i,t,u);var s=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,p=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,h=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,f=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,g=/!\[([^\[\]]+)]()()()()()/g;function T(w,y,l,k,C,L,j,P){return k=k.replace(/\s/g,""),b(w,y,l,k,C,L,j,P)}function b(w,y,l,k,C,L,j,P){var q=u.gUrls,Y=u.gTitles,J=u.gDimensions;if(l=l.toLowerCase(),P||(P=""),w.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)k="";else if(k===""||k===null)if((l===""||l===null)&&(l=y.toLowerCase().replace(/ ?\n/g," ")),k="#"+l,!r.helper.isUndefined(q[l]))k=q[l],r.helper.isUndefined(Y[l])||(P=Y[l]),r.helper.isUndefined(J[l])||(C=J[l].width,L=J[l].height);else return w;y=y.replace(/"/g,"&quot;").replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),k=k.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var D='<img src="'+k+'" alt="'+y+'"';return P&&r.helper.isString(P)&&(P=P.replace(/"/g,"&quot;").replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),D+=' title="'+P+'"'),C&&L&&(C=C==="*"?"auto":C,L=L==="*"?"auto":L,D+=' width="'+C+'"',D+=' height="'+L+'"'),D+=" />",D}return i=i.replace(f,b),i=i.replace(h,T),i=i.replace(p,b),i=i.replace(s,b),i=i.replace(g,b),i=u.converter._dispatch("images.after",i,t,u),i}),r.subParser("italicsAndBold",function(i,t,u){"use strict";i=u.converter._dispatch("italicsAndBold.before",i,t,u);function s(p,h,f){return h+p+f}return t.literalMidWordUnderscores?(i=i.replace(/\b___(\S[\s\S]*?)___\b/g,function(p,h){return s(h,"<strong><em>","</em></strong>")}),i=i.replace(/\b__(\S[\s\S]*?)__\b/g,function(p,h){return s(h,"<strong>","</strong>")}),i=i.replace(/\b_(\S[\s\S]*?)_\b/g,function(p,h){return s(h,"<em>","</em>")})):(i=i.replace(/___(\S[\s\S]*?)___/g,function(p,h){return/\S$/.test(h)?s(h,"<strong><em>","</em></strong>"):p}),i=i.replace(/__(\S[\s\S]*?)__/g,function(p,h){return/\S$/.test(h)?s(h,"<strong>","</strong>"):p}),i=i.replace(/_([^\s_][\s\S]*?)_/g,function(p,h){return/\S$/.test(h)?s(h,"<em>","</em>"):p})),t.literalMidWordAsterisks?(i=i.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(p,h,f){return s(f,h+"<strong><em>","</em></strong>")}),i=i.replace(/([^*]|^)\B\*\*(\S[\s\Line truncated
`),f+="\xA80";var T=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,b=/\n[ \t]*\n(?!¨0)/.test(f);return t.disableForced4SpacesIndentedSublists&&(T=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),f=f.replace(T,function(w,y,l,k,C,L,j){j=j&&j.trim()!=="";var P=r.subParser("outdent")(C,t,u),q="";return L&&t.tasklists&&(q=' class="task-list-item" style="list-style-type: none;"',P=P.replace(/^[ \t]*\[(x|X| )?]/m,function(){var Y='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return j&&(Y+=" checked"),Y+=">",Y})),P=P.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(Y){return"\xA8A"+Y}),y||P.search(/\n{2,}/)>-1?(P=r.subParser("githubCodeBlocks")(P,t,u),P=r.subParser("blockGamut")(P,t,u)):(P=r.subParser("lists")(P,t,u),P=P.replace(/\n$/,""),P=r.subParser("hashHTMLBlocks")(P,t,u),P=P.replace(/\n\n+/g,`
`),b?P=r.subParser("paragraphs")(P,t,u):P=r.subParser("spanGamut")(P,t,u)),P=P.replace("\xA8A",""),P="<li"+q+">"+P+`</li>
`,P}),f=f.replace(/¨0/g,""),u.gListLevel--,g&&(f=f.replace(/\s+$/,"")),f}function p(f,g){if(g==="ol"){var T=f.match(/^ *(\d+)\./);if(T&&T[1]!=="1")return' start="'+T[1]+'"'}return""}function h(f,g,T){var b=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,w=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,y=g==="ul"?b:w,l="";if(f.search(y)!==-1)(function C(L){var j=L.search(y),P=p(f,g);j!==-1?(l+=`
<`+g+P+`>
`+s(L.slice(0,j),!!T)+"</"+g+`>
`,g=g==="ul"?"ol":"ul",y=g==="ul"?b:w,C(L.slice(j))):l+=`
<`+g+P+`>
`+s(L,!!T)+"</"+g+`>
`})(f);else{var k=p(f,g);l=`
<`+g+k+`>
`+s(f,!!T)+"</"+g+`>
`}return l}return i=u.converter._dispatch("lists.before",i,t,u),i+="\xA80",u.gListLevel?i=i.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(f,g,T){var b=T.search(/[*+-]/g)>-1?"ul":"ol";return h(g,b,!0)}):i=i.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(f,g,T,b){var w=b.search(/[*+-]/g)>-1?"ul":"ol";return h(T,w,!1)}),i=i.replace(/¨0/,""),i=u.converter._dispatch("lists.after",i,t,u),i}),r.subParser("metadata",function(i,t,u){"use strict";if(!t.metadata)return i;i=u.converter._dispatch("metadata.before",i,t,u);function s(p){u.metadata.raw=p,p=p.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),p=p.replace(/\n {4}/g," "),p.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(h,f,g){return u.metadata.parsed[f]=g,""})}return i=i.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(p,h,f){return s(f),"\xA8M"}),i=i.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(p,h,f){return h&&(u.metadata.format=h),s(f),"\xA8M"}),i=i.replace(/¨M/g,""),i=u.converter._dispatch("metadata.after",i,t,u),i}),r.subParser("outdent",function(i,t,u){"use strict";return i=u.converter._dispatch("outdent.before",i,t,u),i=i.replace(/^(\t|[ ]{1,4})/gm,"\xA80"),i=i.replace(/¨0/g,""),i=u.converter._dispatch("outdent.after",i,t,u),i}),r.subParser("paragraphs",function(i,t,u){"use strict";i=u.converter._dispatch("paragraphs.before",i,t,u),i=i.replace(/^\n+/g,""),i=i.replace(/\n+$/g,"");for(var s=i.split(/\n{2,}/g),p=[],h=s.length,f=0;f<h;f++){var g=s[f];g.search(/¨(K|G)(\d+)\1/g)>=0?p.push(g):g.search(/\S/)>=0&&(g=r.subParser("spanGamut")(g,t,u),g=g.replace(/^([ \t]*)/g,"<p>"),g+="</p>",p.push(g))}for(h=p.length,f=0;f<h;f++){for(var T="",b=p[f],w=!1;/¨(K|G)(\d+)\1/.test(b);){var y=RegExp.$1,l=RegExp.$2;y==="K"?T=u.gHtmlBlocks[l]:w?T=r.subParser("encodeCode")(u.ghCodeBlocks[l].text,t,u):T=u.ghCodeBlocks[l].codeblock,T=T.replace(/\$/g,"$$$$"),b=b.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,T),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(b)&&(w=!0)}p[f]=b}return i=p.join(`
`),i=i.replace(/^\n+/g,""),i=i.replace(/\n+$/g,""),u.converter._dispatch("paragraphs.after",i,t,u)}),r.subParser("runExtension",function(i,t,u,s){"use strict";if(i.filter)t=i.filter(t,s.converter,u);else if(i.regex){var p=i.regex;p instanceof RegExp||(p=new RegExp(p,"g")),t=t.replace(p,i.replace)}return t}),r.subParser("spanGamut",function(i,t,u){"use strict";return i=u.converter._dispatch("spanGamut.before",i,t,u),i=r.subParser("codeSpans")(i,t,u),i=r.subParser("escapeSpecialCharsWithinTagAttributes")(i,t,u),i=r.subParser("encodeBackslashEscapes")(i,t,u),i=r.subParser("images")(i,t,u),i=r.subParser("anchors")(i,t,u),i=r.subParser("autoLinks")(i,t,u),i=r.subParser("simplifiedAutoLinks")(i,t,u),i=r.subParser("emoji")(i,t,u),i=r.subParser("underline")(i,t,u),i=r.subParser("italicsAndBold")(i,t,u),i=r.subParser("strikethrough")(i,t,u),i=r.subParser("ellipsis")(i,t,u),i=r.subParser("hashHTMLSpans")(i,t,u),i=r.subParser("encodeAmpsAndAngles")(i,t,u),t.simpleLineBreaks?/\n\n¨K/.test(i)||(i=i.replace(/\n+/g,`<br />
`)):i=i.replace(/ +\n/g,`<br />
`),i=u.converter._dispatch("spanGamut.after",i,t,u),i}),r.subParser("strikethrough",function(i,t,u){"use strict";function s(p){return t.simplifiedAutoLink&&(p=r.subParser("simplifiedAutoLinks")(p,t,u)),"<del>"+p+"</del>"}return t.strikethrough&&(i=u.converter._dispatch("strikethrough.before",i,t,u),i=i.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(p,h){return s(h)}),i=u.converter._dispatch("strikethrough.after",i,t,u)),i}),r.subParser("stripLinkDefinitions",function(i,t,u){"use strict";var s=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,p=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;i+="\xA80";var h=function(f,g,T,b,w,y,l){return g=g.toLowerCase(),T.match(/^data:.+?\/.+?;base64,/)?u.gUrls[g]=T.replace(/\s/g,""):u.gUrls[g]=r.subParser("encodeAmpsAndAngles")(T,t,u),y?y+l:(l&&(u.gTitles[g]=l.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&b&&w&&(u.gDimensions[g]={width:b,height:w}),"")};return i=i.replace(p,h),i=i.replace(s,h),i=i.replace(/¨0/,""),i}),r.subParser("tables",function(i,t,u){"use strict";if(!t.tables)return i;var s=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,p=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function h(w){return/^:[ \t]*--*$/.test(w)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(w)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(w)?' style="text-align:center;"':""}function f(w,y){var l="";return w=w.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(l=' id="'+w.replace(/ /g,"_").toLowerCase()+'"'),w=r.subParser("spanGamut")(w,t,u),"<th"+l+y+">"+w+`</th>
`}function g(w,y){var l=r.subParser("spanGamut")(w,t,u);return"<td"+y+">"+l+`</td>
`}function T(w,y){for(var l=`<table>
<thead>
<tr>
`,k=w.length,C=0;C<k;++C)l+=w[C];for(l+=`</tr>
</thead>
<tbody>
`,C=0;C<y.length;++C){l+=`<tr>
`;for(var L=0;L<k;++L)l+=y[C][L];l+=`</tr>
`}return l+=`</tbody>
</table>
`,l}function b(w){var y,l=w.split(`
`);for(y=0;y<l.length;++y)/^ {0,3}\|/.test(l[y])&&(l[y]=l[y].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[y])&&(l[y]=l[y].replace(/\|[ \t]*$/,"")),l[y]=r.subParser("codeSpans")(l[y],t,u);var k=l[0].split("|").map(function(D){return D.trim()}),C=l[1].split("|").map(function(D){return D.trim()}),L=[],j=[],P=[],q=[];for(l.shift(),l.shift(),y=0;y<l.length;++y)l[y].trim()!==""&&L.push(l[y].split("|").map(function(D){return D.trim()}));if(k.length<C.length)return w;for(y=0;y<C.length;++y)P.push(h(C[y]));for(y=0;y<k.length;++y)r.helper.isUndefined(P[y])&&(P[y]=""),j.push(f(k[y],P[y]));for(y=0;y<L.length;++y){for(var Y=[],J=0;J<j.length;++J)r.helper.isUndefined(L[y][J]),Y.push(g(L[y][J],P[J]));q.push(Y)}return T(j,q)}return i=u.converter._dispatch("tables.before",i,t,u),i=i.replace(/\\(\|)/g,r.helper.escapeCharactersCallback),i=i.replace(s,b),i=i.replace(p,b),i=u.converter._dispatch("tables.after",i,t,u),i}),r.subParser("underline",function(i,t,u){"use strict";return t.underline&&(i=u.converter._dispatch("underline.before",i,t,u),t.literalMidWordUnderscores?(i=i.replace(/\b___(\S[\s\S]*?)___\b/g,function(s,p){return"<u>"+p+"</u>"}),i=i.replace(/\b__(\S[\s\S]*?)__\b/g,function(s,p){return"<u>"+p+"</u>"})):(i=i.replace(/___(\S[\s\S]*?)___/g,function(s,p){return/\S$/.test(p)?"<u>"+p+"</u>":s}),i=i.replace(/__(\S[\s\S]*?)__/g,function(s,p){return/\S$/.test(p)?"<u>"+p+"</u>":s})),i=i.replace(/(_)/g,r.helper.escapeCharactersCallback),i=u.converter._dispatch("underline.after",i,t,u)),i}),r.subParser("unescapeSpecialChars",function(i,t,u){"use strict";return i=u.converter._dispatch("unescapeSpecialChars.before",i,t,u),i=i.replace(/¨E(\d+)E/g,function(s,p){var h=parseInt(p);return String.fromCharCode(h)}),i=u.converter._dispatch("unescapeSpecialChars.after",i,t,u),i}),r.subParser("makeMarkdown.blockquote",function(i,t){"use strict";var u="";if(i.hasChildNodes())for(var s=i.childNodes,p=s.length,h=0;h<p;++h){var f=r.subParser("makeMarkdown.node")(s[h],t);f!==""&&(u+=f)}return u=u.trim(),u="> "+u.split(`
`).join(`
> `),u}),r.subParser("makeMarkdown.codeBlock",function(i,t){"use strict";var u=i.getAttribute("language"),s=i.getAttribute("precodenum");return"```"+u+`
`+t.preList[s]+"\n```"}),r.subParser("makeMarkdown.codeSpan",function(i){"use strict";return"`"+i.innerHTML+"`"}),r.subParser("makeMarkdown.emphasis",function(i,t){"use strict";var u="";if(i.hasChildNodes()){u+="*";for(var s=i.childNodes,p=s.length,h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t);u+="*"}return u}),r.subParser("makeMarkdown.header",function(i,t,u){"use strict";var s=new Array(u+1).join("#"),p="";if(i.hasChildNodes()){p=s+" ";for(var h=i.childNodes,f=h.length,g=0;g<f;++g)p+=r.subParser("makeMarkdown.node")(h[g],t)}return p}),r.subParser("makeMarkdown.hr",function(){"use strict";return"---"}),r.subParser("makeMarkdown.image",function(i){"use strict";var t="";return i.hasAttribute("src")&&(t+="!["+i.getAttribute("alt")+"](",t+="<"+i.getAttribute("src")+">",i.hasAttribute("width")&&i.hasAttribute("height")&&(t+=" ="+i.getAttribute("width")+"x"+i.getAttribute("height")),i.hasAttribute("title")&&(t+=' "'+i.getAttribute("title")+'"'),t+=")"),t}),r.subParser("makeMarkdown.links",function(i,t){"use strict";var u="";if(i.hasChildNodes()&&i.hasAttribute("href")){var s=i.childNodes,p=s.length;u="[";for(var h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t);u+="](",u+="<"+i.getAttribute("href")+">",i.hasAttribute("title")&&(u+=' "'+i.getAttribute("title")+'"'),u+=")"}return u}),r.subParser("makeMarkdown.list",function(i,t,u){"use strict";var s="";if(!i.hasChildNodes())return"";for(var p=i.childNodes,h=p.length,f=i.getAttribute("start")||1,g=0;g<h;++g)if(!(typeof p[g].tagName=="undefined"||p[g].tagName.toLowerCase()!=="li")){var T="";u==="ol"?T=f.toString()+". ":T="- ",s+=T+r.subParser("makeMarkdown.listItem")(p[g],t),++f}return s+=`
<!-- -->
`,s.trim()}),r.subParser("makeMarkdown.listItem",function(i,t){"use strict";for(var u="",s=i.childNodes,p=s.length,h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t);return/\n$/.test(u)?u=u.split(`
`).join(`
`).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
`):u+=`
`,u}),r.subParser("makeMarkdown.node",function(i,t,u){"use strict";u=u||!1;var s="";if(i.nodeType===3)return r.subParser("makeMarkdown.txt")(i,t);if(i.nodeType===8)return"<!--"+i.data+`-->
`;if(i.nodeType!==1)return"";var p=i.tagName.toLowerCase();switch(p){case"h1":u||(s=r.subParser("makeMarkdown.header")(i,t,1)+`
`);break;case"h2":u||(s=r.subParser("makeMarkdown.header")(i,t,2)+`
`);break;case"h3":u||(s=r.subParser("makeMarkdown.header")(i,t,3)+`
`);break;case"h4":u||(s=r.subParser("makeMarkdown.header")(i,t,4)+`
`);break;case"h5":u||(s=r.subParser("makeMarkdown.header")(i,t,5)+`
`);break;case"h6":u||(s=r.subParser("makeMarkdown.header")(i,t,6)+`
`);break;case"p":u||(s=r.subParser("makeMarkdown.paragraph")(i,t)+`
`);break;case"blockquote":u||(s=r.subParser("makeMarkdown.blockquote")(i,t)+`
`);break;case"hr":u||(s=r.subParser("makeMarkdown.hr")(i,t)+`
`);break;case"ol":u||(s=r.subParser("makeMarkdown.list")(i,t,"ol")+`
`);break;case"ul":u||(s=r.subParser("makeMarkdown.list")(i,t,"ul")+`
`);break;case"precode":u||(s=r.subParser("makeMarkdown.codeBlock")(i,t)+`
`);break;case"pre":u||(s=r.subParser("makeMarkdown.pre")(i,t)+`
`);break;case"table":u||(s=r.subParser("makeMarkdown.table")(i,t)+`
`);break;case"code":s=r.subParser("makeMarkdown.codeSpan")(i,t);break;case"em":case"i":s=r.subParser("makeMarkdown.emphasis")(i,t);break;case"strong":case"b":s=r.subParser("makeMarkdown.strong")(i,t);break;case"del":s=r.subParser("makeMarkdown.strikethrough")(i,t);break;case"a":s=r.subParser("makeMarkdown.links")(i,t);break;case"img":s=r.subParser("makeMarkdown.image")(i,t);break;default:s=i.outerHTML+`
`}return s}),r.subParser("makeMarkdown.paragraph",function(i,t){"use strict";var u="";if(i.hasChildNodes())for(var s=i.childNodes,p=s.length,h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t);return u=u.trim(),u}),r.subParser("makeMarkdown.pre",function(i,t){"use strict";var u=i.getAttribute("prenum");return"<pre>"+t.preList[u]+"</pre>"}),r.subParser("makeMarkdown.strikethrough",function(i,t){"use strict";var u="";if(i.hasChildNodes()){u+="~~";for(var s=i.childNodes,p=s.length,h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t);u+="~~"}return u}),r.subParser("makeMarkdown.strong",function(i,t){"use strict";var u="";if(i.hasChildNodes()){u+="**";for(var s=i.childNodes,p=s.length,h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t);u+="**"}return u}),r.subParser("makeMarkdown.table",function(i,t){"use strict";var u="",s=[[],[]],p=i.querySelectorAll("thead>tr>th"),h=i.querySelectorAll("tbody>tr"),f,g;for(f=0;f<p.length;++f){var T=r.subParser("makeMarkdown.tableCell")(p[f],t),b="---";if(p[f].hasAttribute("style")){var w=p[f].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(w){case"text-align:left;":b=":---";break;case"text-align:right;":b="---:";break;case"text-align:center;":b=":---:";break}}s[0][f]=T.trim(),s[1][f]=b}for(f=0;f<h.length;++f){var y=s.push([])-1,l=h[f].getElementsByTagName("td");for(g=0;g<p.length;++g){var k=" ";typeof l[g]!="undefined"&&(k=r.subParser("makeMarkdown.tableCell")(l[g],t)),s[y].push(k)}}var C=3;for(f=0;f<s.length;++f)for(g=0;g<s[f].length;++g){var L=s[f][g].length;L>C&&(C=L)}for(f=0;f<s.length;++f){for(g=0;g<s[f].length;++g)f===1?s[f][g].slice(-1)===":"?s[f][g]=r.helper.padEnd(s[f][g].slice(-1),C-1,"-")+":":s[f][g]=r.helper.padEnd(s[f][g],C,"-"):s[f][g]=r.helper.padEnd(s[f][g],C);u+="| "+s[f].join(" | ")+` |
`}return u.trim()}),r.subParser("makeMarkdown.tableCell",function(i,t){"use strict";var u="";if(!i.hasChildNodes())return"";for(var s=i.childNodes,p=s.length,h=0;h<p;++h)u+=r.subParser("makeMarkdown.node")(s[h],t,!0);return u.trim()}),r.subParser("makeMarkdown.txt",function(i){"use strict";var t=i.nodeValue;return t=t.replace(/ +/g," "),t=t.replace(/¨NBSP;/g," "),t=r.helper.unescapeHTMLEntities(t),t=t.replace(/([*_~|`])/g,"\\$1"),t=t.replace(/^(\s*)>/g,"\\$1>"),t=t.replace(/^#/gm,"\\#"),t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),t=t.replace(/^( {0,3}\d+)\./gm,"$1\\."),t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2"),t=t.replace(/]([\s]*)\(/g,"\\]$1\\("),t=t.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),t});var ue=this;typeof define=="function"&&define.amd?define(function(){"use strict";return r}):typeof Ue!="undefined"&&Ue.exports?Ue.exports=r:ue.showdown=r}).call(Ur)});var pe=H((hl,fe)=>{"use strict";function Gr(e){return typeof e=="undefined"||e===null}function Vu(e){return typeof e=="object"&&e!==null}function Wu(e){return Array.isArray(e)?e:Gr(e)?[]:[e]}function Gu(e,n){var r,a,d,o;if(n)for(o=Object.keys(n),r=0,a=o.length;r<a;r+=1)d=o[r],e[d]=n[d];return e}function Yu(e,n){var r="",a;for(a=0;a<n;a+=1)r+=e;return r}function Ku(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}fe.exports.isNothing=Gr;fe.exports.isObject=Vu;fe.exports.toArray=Wu;fe.exports.repeat=Yu;fe.exports.isNegativeZero=Ku;fe.exports.extend=Gu});var ve=H((gl,Yr)=>{"use strict";function Me(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Me.prototype=Object.create(Error.prototype);Me.prototype.constructor=Me;Me.prototype.toString=function(n){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!n&&this.mark&&(r+=" "+this.mark.toString()),r};Yr.exports=Me});var Zr=H((_l,Jr)=>{"use strict";var Kr=pe();function pr(e,n,r,a,d){this.name=e,this.buffer=n,this.position=r,this.line=a,this.column=d}pr.prototype.getSnippet=function(n,r){var a,d,o,c,m;if(!this.buffer)return null;for(n=n||4,r=r||75,a="",d=this.position;d>0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>r/2-1){a=" ... ",d+=5;break}for(o="",c=this.position;c<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(c))===-1;)if(c+=1,c-this.position>r/2-1){o=" ... ",c-=5;break}return m=this.buffer.slice(d,c),Kr.repeat(" ",n)+a+m+o+`
`+Kr.repeat(" ",n+this.position-d+a.length)+"^"};pr.prototype.toString=function(n){var r,a="";return this.name&&(a+='in "'+this.name+'" '),a+="at line "+(this.line+1)+", column "+(this.column+1),n||(r=this.getSnippet(),r&&(a+=`:
`+r)),a};Jr.exports=pr});var V=H((wl,Xr)=>{"use strict";var Qr=ve(),Ju=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Zu=["scalar","sequence","mapping"];function Qu(e){var n={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(a){n[String(a)]=r})}),n}function Xu(e,n){if(n=n||{},Object.keys(n).forEach(function(r){if(Ju.indexOf(r)===-1)throw new Qr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(r){return r},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.defaultStyle=n.defaultStyle||null,this.styleAliases=Qu(n.styleAliases||null),Zu.indexOf(this.kind)===-1)throw new Qr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}Xr.exports=Xu});var me=H((bl,rn)=>{"use strict";var en=pe(),Ge=ve(),ea=V();function mr(e,n,r){var a=[];return e.include.forEach(function(d){r=mr(d,n,r)}),e[n].forEach(function(d){r.forEach(function(o,c){o.tag===d.tag&&o.kind===d.kind&&a.push(c)}),r.push(d)}),r.filter(function(d,o){return a.indexOf(o)===-1})}function ra(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},n,r;function a(d){e[d.kind][d.tag]=e.fallback[d.tag]=d}for(n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(a);return e}function ye(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new Ge("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=mr(this,"implicit",[]),this.compiledExplicit=mr(this,"explicit",[]),this.compiledTypeMap=ra(this.compiledImplicit,this.compiledExplicit)}ye.DEFAULT=null;ye.create=function(){var n,r;switch(arguments.length){case 1:n=ye.DEFAULT,r=arguments[0];break;case 2:n=arguments[0],r=arguments[1];break;default:throw new Ge("Wrong number of arguments for Schema.create function")}if(n=en.toArray(n),r=en.toArray(r),!n.every(function(a){return a instanceof ye}))throw new Ge("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(a){return a instanceof ea}))throw new Ge("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ye({include:n,explicit:r})};rn.exports=ye});var un=H((vl,nn)=>{"use strict";var na=V();nn.exports=new na("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var tn=H((yl,an)=>{"use strict";var ia=V();an.exports=new ia("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var on=H((kl,dn)=>{"use strict";var ua=V();dn.exports=new ua("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Ye=H((Tl,cn)=>{"use strict";var aa=me();cn.exports=new aa({explicit:[un(),tn(),on()]})});var ln=H((xl,sn)=>{"use strict";var ta=V();function da(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function oa(){return null}function ca(e){return e===null}sn.exports=new ta("tag:yaml.org,2002:null",{kind:"scalar",resolve:da,construct:oa,predicate:ca,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var pn=H((Al,fn)=>{"use strict";var sa=V();function la(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function fa(e){return e==="true"||e==="True"||e==="TRUE"}function pa(e){return Object.prototype.toString.call(e)==="[object Boolean]"}fn.exports=new sa("tag:yaml.org,2002:bool",{kind:"scalar",resolve:la,construct:fa,predicate:pa,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var hn=H((El,mn)=>{"use strict";var ma=pe(),ha=V();function ga(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function _a(e){return 48<=e&&e<=55}function wa(e){return 48<=e&&e<=57}function ba(e){if(e===null)return!1;var n=e.length,r=0,a=!1,d;if(!n)return!1;if(d=e[r],(d==="-"||d==="+")&&(d=e[++r]),d==="0"){if(r+1===n)return!0;if(d=e[++r],d==="b"){for(r++;r<n;r++)if(d=e[r],d!=="_"){if(d!=="0"&&d!=="1")return!1;a=!0}return a&&d!=="_"}if(d==="x"){for(r++;r<n;r++)if(d=e[r],d!=="_"){if(!ga(e.charCodeAt(r)))return!1;a=!0}return a&&d!=="_"}for(;r<n;r++)if(d=e[r],d!=="_"){if(!_a(e.charCodeAt(r)))return!1;a=!0}return a&&d!=="_"}if(d==="_")return!1;for(;r<n;r++)if(d=e[r],d!=="_"){if(d===":")break;if(!wa(e.charCodeAt(r)))return!1;a=!0}return!a||d==="_"?!1:d!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function va(e){var n=e,r=1,a,d,o=[];return n.indexOf("_")!==- Line truncated
\r`;function Oa(e){if(e===null)return!1;var n,r,a=0,d=e.length,o=_r;for(r=0;r<d;r++)if(n=o.indexOf(e.charAt(r)),!(n>64)){if(n<0)return!1;a+=6}return a%8==0}function Da(e){var n,r,a=e.replace(/[\r\n=]/g,""),d=a.length,o=_r,c=0,m=[];for(n=0;n<d;n++)n%4==0&&n&&(m.push(c>>16&255),m.push(c>>8&255),m.push(c&255)),c=c<<6|o.indexOf(a.charAt(n));return r=d%4*6,r===0?(m.push(c>>16&255),m.push(c>>8&255),m.push(c&255)):r===18?(m.push(c>>10&255),m.push(c>>2&255)):r===12&&m.push(c>>4&255),he?he.from?he.from(m):new he(m):m}function Na(e){var n="",r=0,a,d,o=e.length,c=_r;for(a=0;a<o;a++)a%3==0&&a&&(n+=c[r>>18&63],n+=c[r>>12&63],n+=c[r>>6&63],n+=c[r&63]),r=(r<<8)+e[a];return d=o%3,d===0?(n+=c[r>>18&63],n+=c[r>>12&63],n+=c[r>>6&63],n+=c[r&63]):d===2?(n+=c[r>>10&63],n+=c[r>>4&63],n+=c[r<<2&63],n+=c[64]):d===1&&(n+=c[r>>2&63],n+=c[r<<4&63],n+=c[64],n+=c[64]),n}function Ba(e){return he&&he.isBuffer(e)}Sn.exports=new za("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Oa,construct:Da,predicate:Ba,represent:Na})});var Mn=H((Il,Pn)=>{"use strict";var qa=V(),$a=Object.prototype.hasOwnProperty,Ua=Object.prototype.toString;function Va(e){if(e===null)return!0;var n=[],r,a,d,o,c,m=e;for(r=0,a=m.length;r<a;r+=1){if(d=m[r],c=!1,Ua.call(d)!=="[object Object]")return!1;for(o in d)if($a.call(d,o))if(!c)c=!0;else return!1;if(!c)return!1;if(n.indexOf(o)===-1)n.push(o);else return!1}return!0}function Wa(e){return e!==null?e:[]}Pn.exports=new qa("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Va,construct:Wa})});var In=H((Fl,Rn)=>{"use strict";var Ga=V(),Ya=Object.prototype.toString;function Ka(e){if(e===null)return!0;var n,r,a,d,o,c=e;for(o=new Array(c.length),n=0,r=c.length;n<r;n+=1){if(a=c[n],Ya.call(a)!=="[object Object]"||(d=Object.keys(a),d.length!==1))return!1;o[n]=[d[0],a[d[0]]]}return!0}function Ja(e){if(e===null)return[];var n,r,a,d,o,c=e;for(o=new Array(c.length),n=0,r=c.length;n<r;n+=1)a=c[n],d=Object.keys(a),o[n]=[d[0],a[d[0]]];return o}Rn.exports=new Ga("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ka,construct:Ja})});var jn=H((jl,Fn)=>{"use strict";var Za=V(),Qa=Object.prototype.hasOwnProperty;function Xa(e){if(e===null)return!0;var n,r=e;for(n in r)if(Qa.call(r,n)&&r[n]!==null)return!1;return!0}function et(e){return e!==null?e:{}}Fn.exports=new Za("tag:yaml.org,2002:set",{kind:"mapping",resolve:Xa,construct:et})});var ke=H((Hl,Hn)=>{"use strict";var rt=me();Hn.exports=new rt({include:[gr()],implicit:[xn(),En()],explicit:[Ln(),Mn(),In(),jn()]})});var On=H((zl,zn)=>{"use strict";var nt=V();function it(){return!0}function ut(){}function at(){return""}function tt(e){return typeof e=="undefined"}zn.exports=new nt("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:it,construct:ut,predicate:tt,represent:at})});var Nn=H((Ol,Dn)=>{"use strict";var dt=V();function ot(e){if(e===null||e.length===0)return!1;var n=e,r=/\/([gim]*)$/.exec(e),a="";return!(n[0]==="/"&&(r&&(a=r[1]),a.length>3||n[n.length-a.length-1]!=="/"))}function ct(e){var n=e,r=/\/([gim]*)$/.exec(e),a="";return n[0]==="/"&&(r&&(a=r[1]),n=n.slice(1,n.length-a.length-1)),new RegExp(n,a)}function st(e){var n="/"+e.source+"/";return e.global&&(n+="g"),e.multiline&&(n+="m"),e.ignoreCase&&(n+="i"),n}function lt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Dn.exports=new dt("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:ot,construct:ct,predicate:lt,represent:st})});var $n=H((Dl,qn)=>{"use strict";var Ke;try{Bn=require,Ke=Bn("esprima")}catch(e){typeof window!="undefined"&&(Ke=window.esprima)}var Bn,ft=V();function pt(e){if(e===null)return!1;try{var n="("+e+")",r=Ke.parse(n,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch(a){return!1}}function mt(e){var n="("+e+")",r=Ke.parse(n,{range:!0}),a=[],d;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){a.push(o.name)}),d=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(a,n.slice(d[0]+1,d[1]-1)):new Function(a,"return "+n.slice(d[0],d[1]))}function ht(e){return e.toString()}function gt(e){return Object.prototype.toString.call(e)==="[object Function]"}qn.exports=new ft("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:pt,construct:mt,predicate:gt,represent:ht})});var Re=H((Nl,Vn)=>{"use strict";var Un=me();Vn.exports=Un.DEFAULT=new Un({include:[ke()],explicit:[On(),Nn(),$n()]})});var si=H((Bl,Ie)=>{"use strict";var oe=pe(),Wn=ve(),_t=Zr(),Gn=ke(),wt=Re(),ce=Object.prototype.hasOwnProperty,Je=1,Yn=2,Kn=3,Ze=4,wr=1,bt=2,Jn=3,vt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yt=/[\x8 Line truncated
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Et(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ri=new Array(256),ni=new Array(256);for(_e=0;_e<256;_e++)ri[_e]=ei(_e)?1:0,ni[_e]=ei(_e);var _e;function Ct(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||wt,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function ii(e,n){return new Wn(n,new _t(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function R(e,n){throw ii(e,n)}function Qe(e,n){e.onWarning&&e.onWarning.call(null,ii(e,n))}var ui={YAML:function(n,r,a){var d,o,c;n.version!==null&&R(n,"duplication of %YAML directive"),a.length!==1&&R(n,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),d===null&&R(n,"ill-formed argument of the YAML directive"),o=parseInt(d[1],10),c=parseInt(d[2],10),o!==1&&R(n,"unacceptable YAML version of the document"),n.version=a[0],n.checkLineBreaks=c<2,c!==1&&c!==2&&Qe(n,"unsupported YAML version of the document")},TAG:function(n,r,a){var d,o;a.length!==2&&R(n,"TAG directive accepts exactly two arguments"),d=a[0],o=a[1],Zn.test(d)||R(n,"ill-formed tag handle (first argument) of the TAG directive"),ce.call(n.tagMap,d)&&R(n,'there is a previously declared suffix for "'+d+'" tag handle'),Qn.test(o)||R(n,"ill-formed tag prefix (second argument) of the TAG directive"),n.tagMap[d]=o}};function se(e,n,r,a){var d,o,c,m;if(n<r){if(m=e.input.slice(n,r),a)for(d=0,o=m.length;d<o;d+=1)c=m.charCodeAt(d),c===9||32<=c&&c<=1114111||R(e,"expected valid JSON character");else vt.test(m)&&R(e,"the stream contains non-printable characters");e.result+=m}}function ai(e,n,r,a){var d,o,c,m;for(oe.isObject(r)||R(e,"cannot merge mappings; the provided source object is unacceptable"),d=Object.keys(r),c=0,m=d.length;c<m;c+=1)o=d[c],ce.call(n,o)||(n[o]=r[o],a[o]=!0)}function xe(e,n,r,a,d,o,c,m){var _,x;if(Array.isArray(d))for(d=Array.prototype.slice.call(d),_=0,x=d.length;_<x;_+=1)Array.isArray(d[_])&&R(e,"nested arrays are not supported inside keys"),typeof d=="object"&&Xn(d[_])==="[object Object]"&&(d[_]="[object Object]");if(typeof d=="object"&&Xn(d)==="[object Object]"&&(d="[object Object]"),d=String(d),n===null&&(n={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(_=0,x=o.length;_<x;_+=1)ai(e,n,o[_],r);else ai(e,n,o,r);else!e.json&&!ce.call(r,d)&&ce.call(n,d)&&(e.line=c||e.line,e.position=m||e.position,R(e,"duplicated mapping key")),n[d]=o,delete r[d];return n}function br(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):R(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function $(e,n,r){for(var a=0,d=e.input.charCodeAt(e.position);d!==0;){for(;ge(d);)d=e.input.charCodeAt(++e.position);if(n&&d===35)do d=e.input.charCodeAt(++e.position);while(d!==10&&d!==13&&d!==0);if(ae(d))for(br(e),d=e.input.charCodeAt(e.position),a++,e.lineIndent=0;d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);else break}return r!==-1&&a!==0&&e.lineIndent<r&&Qe(e,"deficient indentation"),a}function Xe(e){var n=e.position,r;return r=e.input.charCodeAt(n),!!((r===45||r===46)&&r===e.input.charCodeAt(n+1)&&r===e.input.charCodeAt(n+2)&&(n+=3,r=e.input.charCodeAt(n),r===0||X(r)))}function vr(e,n){n===1?e.result+=" ":n>1&&(e.result+=oe.repeat(`
`,n-1))}function St(e,n,r){var a,d,o,c,m,_,x,S,A=e.kind,E=e.result,v;if(v=e.input.charCodeAt(e.position),X(v)||Te(v)||v===35||v===38||v===42||v===33||v===124||v===62||v===39||v===34||v===37||v===64||v===96||(v===63||v===45)&&(d=e.input.charCodeAt(e.position+1),X(d)||r&&Te(d)))return!1;for(e.kind="scalar",e.result="",o=c=e.position,m=!1;v!==0;){if(v===58){if(d=e.input.charCodeAt(e.position+1),X(d)||r&&Te(d))break}else if(v===35){if(a=e.input.charCodeAt(e.position-1),X(a))break}else{if(e.position===e.lineStart&&Xe(e)||r&&Te(v))break;if(ae(v))if(_=e.line,x=e.lineStart,S=e.lineIndent,$(e,!1,-1),e.lineIndent>=n){m=!0,v=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=_,e.lineStart=x,e.lineIndent=S;break}}m&&(se(e,o,c,!1),vr(e,e.line-_),o=c=e.position,m=!1),ge(v)||(c=e.position+1),v=e.input.charCodeAt(++e.position)}return se(e,o,c,!1),e.result?!0:(e.kind=A,e.result=E,!1)}function Lt(e,n){var r,a,d;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=d=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(se(e,a,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)a=e.position,e.position++,d=e.position;else return!0;else ae(r)?(se(e,a,d,!0),vr(e,$(e,!1,n)),a=d=e.position):e.position===e.lineStart&&Xe(e)?R(e,"unexpected end of the document within a single quoted scalar"):(e.position++,d=e.position);R(e,"unexpected end of the stream within a single quoted scalar")}function Pt(e,n){var r,a,d,o,c,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return se(e,r,e.position,!0),e.position++,!0;if(m===92){if(se(e,r,e.position,!0),m=e.input.charCodeAt(++e.position),ae(m))$(e,!1,n);else if(m<256&&ri[m])e.result+=ni[m],e.position++;else if((c=xt(m))>0){for(d=c,o=0;d>0;d--)m=e.input.charCodeAt(++e.position),(c=Tt(m))>=0?o=(o<<4)+c:R(e,"expected hexadecimal character");e.result+=Et(o),e.position++}else R(e,"unknown escape sequence");r=a=e.position}else ae(m)?(se(e,r,a,!0),vr(e,$(e,!1,n)),r=a=e.position):e.position===e.lineStart&&Xe(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}function Mt(e,n){var r=!0,a,d=e.tag,o,c=e.anchor,m,_,x,S,A,E={},v,M,F,I;if(I=e.input.charCodeAt(e.position),I===91)_=93,A=!1,o=[];else if(I===123)_=125,A=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),I=e.input.charCodeAt(++e.position);I!==0;){if($(e,!0,n),I=e.input.charCodeAt(e.position),I===_)return e.position++,e.tag=d,e.anchor=c,e.kind=A?"mapping":"sequence",e.result=o,!0;r||R(e,"missed comma between flow collection entries"),M=v=F=null,x=S=!1,I===63&&(m=e.input.charCodeAt(e.position+1),X(m)&&(x=S=!0,e.position++,$(e,!0,n))),a=e.line,Ae(e,n,Je,!1,!0),M=e.tag,v=e.result,$(e,!0,n),I=e.input.charCodeAt(e.position),(S||e.line===a)&&I===58&&(x=!0,I=e.input.charCodeAt(++e.position),$(e,!0,n),Ae(e,n,Je,!1,!0),F=e.result),A?xe(e,o,E,M,v,F):x?o.push(xe(e,null,E,M,v,F)):o.push(v),$(e,!0,n),I=e.input.charCodeAt(e.position),I===44?(r=!0,I=e.input.charCodeAt(++e.position)):r=!1}R(e,"unexpected end of the stream within a flow collection")}function Rt(e,n){var r,a,d=wr,o=!1,c=!1,m=n,_=0,x=!1,S,A;if(A=e.input.charCodeAt(e.position),A===124)a=!1;else if(A===62)a=!0;else return!1;for(e.kind="scalar",e.result="";A!==0;)if(A=e.input.charCodeAt(++e.position),A===43||A===45)wr===d?d=A===43?Jn:bt:R(e,"repeat of a chomping mode identifier");else if((S=At(A))>=0)S===0?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?R(e,"repeat of an indentation width identifier"):(m=n+S-1,c=!0);else break;if(ge(A)){do A=e.input.charCodeAt(++e.position);while(ge(A));if(A===35)do A=e.input.charCodeAt(++e.position);while(!ae(A)&&A!==0)}for(;A!==0;){for(br(e),e.lineIndent=0,A=e.input.charCodeAt(e.position);(!c||e.lineIndent<m)&&A===32;)e.lineIndent++,A=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>m&&(m=e.lineIndent),ae(A)){_++;continue}if(e.lineIndent<m){d===Jn?e.result+=oe.repeat(`
`,o?1+_:_):d===wr&&o&&(e.result+=`
`);break}for(a?ge(A)?(x=!0,e.result+=oe.repeat(`
`,o?1+_:_)):x?(x=!1,e.result+=oe.repeat(`
`,_+1)):_===0?o&&(e.result+=" "):e.result+=oe.repeat(`
`,_):e.result+=oe.repeat(`
`,o?1+_:_),o=!0,c=!0,_=0,r=e.position;!ae(A)&&A!==0;)A=e.input.charCodeAt(++e.position);se(e,r,e.position,!1)}return!0}function ti(e,n){var r,a=e.tag,d=e.anchor,o=[],c,m=!1,_;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),_=e.input.charCodeAt(e.position);_!==0&&!(_!==45||(c=e.input.charCodeAt(e.position+1),!X(c)));){if(m=!0,e.position++,$(e,!0,-1)&&e.lineIndent<=n){o.push(null),_=e.input.charCodeAt(e.position);continue}if(r=e.line,Ae(e,n,Kn,!1,!0),o.push(e.result),$(e,!0,-1),_=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>n)&&_!==0)R(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return m?(e.tag=a,e.anchor=d,e.kind="sequence",e.result=o,!0):!1}function It(e,n,r){var a,d,o,c,m=e.tag,_=e.anchor,x={},S={},A=null,E=null,v=null,M=!1,F=!1,I;for(e.anchor!==null&&(e.anchorMap[e.anchor]=x),I=e.input.charCodeAt(e.position);I!==0;){if(a=e.input.charCodeAt(e.position+1),o=e.line,c=e.position,(I===63||I===58)&&X(a))I===63?(M&&(xe(e,x,S,A,E,null),A=E=v=null),F=!0,M=!0,d=!0):M?(M=!1,d=!0):R(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,I=a;else if(Ae(e,r,Yn,!1,!0))if(e.line===o){for(I=e.input.charCodeAt(e.position);ge(I);)I=e.input.charCodeAt(++e.position);if(I===58)I=e.input.charCodeAt(++e.position),X(I)||R(e,"a whitespace character is expected after the key-value separator within a block mapping"),M&&(xe(e,x,S,A,E,null),A=E=v=null),F=!0,M=!1,d=!1,A=e.tag,E=e.result;else if(F)R(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=m,e.anchor=_,!0}else if(F)R(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=m,e.anchor=_,!0;else break;if((e.line===o||e.lineIndent>n)&&(Ae(e,n,Ze,!0,d)&&(M?E=e.result:v=e.result),M||(xe(e,x,S,A,E,v,o,c),A=E=v=null),$(e,!0,-1),I=e.input.charCodeAt(e.position)),e.lineIndent>n&&I!==0)R(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return M&&xe(e,x,S,A,E,null),F&&(e.tag=m,e.anchor=_,e.kind="mapping",e.result=x),F}function Ft(e){var n,r=!1,a=!1,d,o,c;if(c=e.input.charCodeAt(e.position),c!==33)return!1;if(e.tag!==null&&R(e,"duplication of a tag property"),c=e.input.charCodeAt(++e.position),c===60?(r=!0,c=e.input.charCodeAt(++e.position)):c===33?(a=!0,d="!!",c=e.input.charCodeAt(++e.position)):d="!",n=e.position,r){do c=e.input.charCodeAt(++e.position);while(c!==0&&c!==62);e.position<e.length?(o=e.input.slice(n,e.position),c=e.input.charCodeAt(++e.position)):R(e,"unexpected end of the stream within a verbatim tag")}else{for(;c!==0&&!X(c);)c===33&&(a?R(e,"tag suffix cannot contain exclamation marks"):(d=e.input.slice(n-1,e.position+1),Zn.test(d)||R(e,"named tag handle cannot contain such characters"),a=!0,n=e.position+1)),c=e.input.charCodeAt(++e.position);o=e.input.slice(n,e.position),kt.test(o)&&R(e,"tag suffix cannot contain flow indicator characters")}return o&&!Qn.test(o)&&R(e,"tag name cannot contain such characters: "+o),r?e.tag=o:ce.call(e.tagMap,d)?e.tag=e.tagMap[d]+o:d==="!"?e.tag="!"+o:d==="!!"?e.tag="tag:yaml.org,2002:"+o:R(e,'undeclared tag handle "'+d+'"'),!0}function jt(e){var n,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&R(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!X(r)&&!Te(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&R(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Ht(e){var n,r,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!X(a)&&!Te(a);)a=e.input.charCodeAt(++e.position);return e.position===n&&R(e,"name of an alias node must contain at least one character"),r=e.input.slice(n,e.position),ce.call(e.anchorMap,r)||R(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],$(e,!0,-1),!0}function Ae(e,n,r,a,d){var o,c,m,_=1,x=!1,S=!1,A,E,v,M,F;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=c=m=Ze===r||Kn===r,a&&$(e,!0,-1)&&(x=!0,e.lineIndent>n?_=1:e.lineIndent===n?_=0:e.lineIndent<n&&(_=-1)),_===1)for(;Ft(e)||jt(e);)$(e,!0,-1)?(x=!0,m=o,e.lineIndent>n?_=1:e.lineIndent===n?_=0:e.lineIndent<n&&(_=-1)):m=!1;if(m&&(m=x||d),(_===1||Ze===r)&&(Je===r||Yn===r?M=n:M=n+1,F=e.position-e.lineStart,_===1?m&&(ti(e,F)||It(e,F,M))||Mt(e,M)?S=!0:(c&&Rt(e,M)||Lt(e,M)||Pt(e,M)?S=!0:Ht(e)?(S=!0,(e.tag!==null||e.anchor!==null)&&R(e,"alias node should not have any properties")):St(e,M,Je===r)&&(S=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):_===0&&(S=m&&ti(e,F))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&R(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),A=0,E=e.implicitTypes.length;A<E;A+=1)if(v=e.implicitTypes[A],v.resolve(e.result)){e.result=v.construct(e.result),e.tag=v.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.re Line truncated
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Ct(e,n),a=e.indexOf("\0");for(a!==-1&&(r.position=a,R(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)zt(r);return r.documents}function oi(e,n,r){n!==null&&typeof n=="object"&&typeof r=="undefined"&&(r=n,n=null);var a=di(e,r);if(typeof n!="function")return a;for(var d=0,o=a.length;d<o;d+=1)n(a[d])}function ci(e,n){var r=di(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new Wn("expected a single document in the stream, but found more")}}function Ot(e,n,r){return typeof n=="object"&&n!==null&&typeof r=="undefined"&&(r=n,n=null),oi(e,n,oe.extend({schema:Gn},r))}function Dt(e,n){return ci(e,oe.extend({schema:Gn},n))}Ie.exports.loadAll=oi;Ie.exports.load=ci;Ie.exports.safeLoadAll=Ot;Ie.exports.safeLoad=Dt});var Ii=H((ql,xr)=>{"use strict";var Fe=pe(),je=ve(),Nt=Re(),Bt=ke(),li=Object.prototype.toString,fi=Object.prototype.hasOwnProperty,qt=9,He=10,$t=13,Ut=32,Vt=33,Wt=34,pi=35,Gt=37,Yt=38,Kt=39,Jt=42,mi=44,Zt=45,hi=58,Qt=61,Xt=62,ed=63,rd=64,gi=91,_i=93,nd=96,wi=123,id=124,bi=125,K={};K[0]="\\0";K[7]="\\a";K[8]="\\b";K[9]="\\t";K[10]="\\n";K[11]="\\v";K[12]="\\f";K[13]="\\r";K[27]="\\e";K[34]='\\"';K[92]="\\\\";K[133]="\\N";K[160]="\\_";K[8232]="\\L";K[8233]="\\P";var ud=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function ad(e,n){var r,a,d,o,c,m,_;if(n===null)return{};for(r={},a=Object.keys(n),d=0,o=a.length;d<o;d+=1)c=a[d],m=String(n[c]),c.slice(0,2)==="!!"&&(c="tag:yaml.org,2002:"+c.slice(2)),_=e.compiledTypeMap.fallback[c],_&&fi.call(_.styleAliases,m)&&(m=_.styleAliases[m]),r[c]=m;return r}function vi(e){var n,r,a;if(n=e.toString(16).toUpperCase(),e<=255)r="x",a=2;else if(e<=65535)r="u",a=4;else if(e<=4294967295)r="U",a=8;else throw new je("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Fe.repeat("0",a-n.length)+n}function td(e){this.schema=e.schema||Nt,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ad(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function yi(e,n){for(var r=Fe.repeat(" ",n),a=0,d=-1,o="",c,m=e.length;a<m;)d=e.indexOf(`
`,a),d===-1?(c=e.slice(a),a=m):(c=e.slice(a,d+1),a=d+1),c.length&&c!==`
`&&(o+=r),o+=c;return o}function yr(e,n){return`
`+Fe.repeat(" ",e.indent*n)}function dd(e,n){var r,a,d;for(r=0,a=e.implicitTypes.length;r<a;r+=1)if(d=e.implicitTypes[r],d.resolve(n))return!0;return!1}function kr(e){return e===Ut||e===qt}function Ee(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function od(e){return Ee(e)&&!kr(e)&&e!==65279&&e!==$t&&e!==He}function ki(e,n){return Ee(e)&&e!==65279&&e!==mi&&e!==gi&&e!==_i&&e!==wi&&e!==bi&&e!==hi&&(e!==pi||n&&od(n))}function cd(e){return Ee(e)&&e!==65279&&!kr(e)&&e!==Zt&&e!==ed&&e!==hi&&e!==mi&&e!==gi&&e!==_i&&e!==wi&&e!==bi&&e!==pi&&e!==Yt&&e!==Jt&&e!==Vt&&e!==id&&e!==Qt&&e!==Xt&&e!==Kt&&e!==Wt&&e!==Gt&&e!==rd&&e!==nd}function Ti(e){var n=/^\n* /;return n.test(e)}var xi=1,Ai=2,Ei=3,Ci=4,er=5;function sd(e,n,r,a,d){var o,c,m,_=!1,x=!1,S=a!==-1,A=-1,E=cd(e.charCodeAt(0))&&!kr(e.charCodeAt(e.length-1));if(n)for(o=0;o<e.length;o++){if(c=e.charCodeAt(o),!Ee(c))return er;m=o>0?e.charCodeAt(o-1):null,E=E&&ki(c,m)}else{for(o=0;o<e.length;o++){if(c=e.charCodeAt(o),c===He)_=!0,S&&(x=x||o-A-1>a&&e[A+1]!==" ",A=o);else if(!Ee(c))return er;m=o>0?e.charCodeAt(o-1):null,E=E&&ki(c,m)}x=x||S&&o-A-1>a&&e[A+1]!==" "}return!_&&!x?E&&!d(e)?xi:Ai:r>9&&Ti(e)?er:x?Ci:Ei}function ld(e,n,r,a){e.dump=function(){if(n.length===0)return"''";if(!e.noCompatMode&&ud.indexOf(n)!==-1)return"'"+n+"'";var d=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-d),c=a||e.flowLevel>-1&&r>=e.flowLevel;function m(_){return dd(e,_)}switch(sd(n,c,e.indent,o,m)){case xi:return n;case Ai:return"'"+n.replace(/'/g,"''")+"'";case Ei:return"|"+Si(n,e.indent)+Li(yi(n,d));case Ci:return">"+Si(n,e.indent)+Li(yi(fd(n,o),d));case er:return'"'+pd(n,o)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function Si(e,n){var r=Ti(e)?String(n):"",a=e[e.length-1]===`
`,d=a&&(e[e.length-2]===`
`||e===`
`),o=d?"+":a?"":"-";return r+o+`
`}function Li(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function fd(e,n){for(var r=/(\n+)([^\n]*)/g,a=function(){var x=e.indexOf(`
`);return x=x!==-1?x:e.length,r.lastIndex=x,Pi(e.slice(0,x),n)}(),d=e[0]===`
`||e[0]===" ",o,c;c=r.exec(e);){var m=c[1],_=c[2];o=_[0]===" ",a+=m+(!d&&!o&&_!==""?`
`:"")+Pi(_,n),d=o}return a}function Pi(e,n){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,a,d=0,o,c=0,m=0,_="";a=r.exec(e);)m=a.index,m-d>n&&(o=c>d?c:m,_+=`
`+e.slice(d,o),d=o+1),c=m;return _+=`
`,e.length-d>n&&c>d?_+=e.slice(d,c)+`
`+e.slice(c+1):_+=e.slice(d),_.slice(1)}function pd(e){for(var n="",r,a,d,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(a=e.charCodeAt(o+1),a>=56320&&a<=57343)){n+=vi((r-55296)*1024+a-56320+65536),o++;continue}d=K[r],n+=!d&&Ee(r)?e[o]:d||vi(r)}return n}function md(e,n,r){var a="",d=e.tag,o,c;for(o=0,c=r.length;o<c;o+=1)we(e,n,r[o],!1,!1)&&(o!==0&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=d,e.dump="["+a+"]"}function hd(e,n,r,a){var d="",o=e.tag,c,m;for(c=0,m=r.length;c<m;c+=1)we(e,n+1,r[c],!0,!0)&&((!a||c!==0)&&(d+=yr(e,n)),e.dump&&He===e.dump.charCodeAt(0)?d+="-":d+="- ",d+=e.dump);e.tag=o,e.dump=d||"[]"}function gd(e,n,r){var a="",d=e.tag,o=Object.keys(r),c,m,_,x,S;for(c=0,m=o.length;c<m;c+=1)S="",c!==0&&(S+=", "),e.condenseFlow&&(S+='"'),_=o[c],x=r[_],!!we(e,n,_,!1,!1)&&(e.dump.length>1024&&(S+="? "),S+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!we(e,n,x,!1,!1)&&(S+=e.dump,a+=S));e.tag=d,e.dump="{"+a+"}"}function _d(e,n,r,a){var d="",o=e.tag,c=Object.keys(r),m,_,x,S,A,E;if(e.sortKeys===!0)c.sort();else if(typeof e.sortKeys=="function")c.sort(e.sortKeys);else if(e.sortKeys)throw new je("sortKeys must be a boolean or a function");for(m=0,_=c.length;m<_;m+=1)E="",(!a||m!==0)&&(E+=yr(e,n)),x=c[m],S=r[x],!!we(e,n+1,x,!0,!0,!0)&&(A=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,A&&(e.dump&&He===e.dump.charCodeAt(0)?E+="?":E+="? "),E+=e.dump,A&&(E+=yr(e,n)),!!we(e,n+1,S,!0,A)&&(e.dump&&He===e.dump.charCodeAt(0)?E+=":":E+=": ",E+=e.dump,d+=E));e.tag=o,e.dump=d||"{}"}function Mi(e,n,r){var a,d,o,c,m,_;for(d=r?e.explicitTypes:e.implicitTypes,o=0,c=d.length;o<c;o+=1)if(m=d[o],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof n=="object"&&n instanceof m.instanceOf)&&(!m.predicate||m.predicate(n))){if(e.tag=r?m.tag:"?",m.represent){if(_=e.styleMap[m.tag]||m.defaultStyle,li.call(m.represent)==="[object Function]")a=m.represent(n,_);else if(fi.call(m.represent,_))a=m.represent[_](n,_);else throw new je("!<"+m.tag+'> tag resolver accepts not "'+_+'" style');e.dump=a}return!0}return!1}function we(e,n,r,a,d,o){e.tag=null,e.dump=r,Mi(e,r,!1)||Mi(e,r,!0);var c=li.call(e.dump);a&&(a=e.flowLevel<0||e.flowLevel>n);var m=c==="[object Object]"||c==="[object Array]",_,x;if(m&&(_=e.duplicates.indexOf(r),x=_!==-1),(e.tag!==null&&e.tag!=="?"||x||e.indent!==2&&n>0)&&(d=!1),x&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(m&&x&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),c==="[object Object]")a&&Object.keys(e.dump).length!==0?(_d(e,n,e.dump,d),x&&(e.dump="&ref_"+_+e.dump)):(gd(e,n,e.dump),x&&(e.dump="&ref_"+_+" "+e.dump));else if(c==="[object Array]"){var S=e.noArrayIndent&&n>0?n-1:n;a&&e.dump.length!==0?(hd(e,S,e.dump,d),x&&(e.dump="&ref_"+_+e.dump)):(md(e,S,e.dump),x&&(e.dump="&ref_"+_+" "+e.dump))}else if(c==="[object String]")e.tag!=="?"&&ld(e,e.dump,n,o);else{if(e.skipInvalid)return!1;throw new je("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function wd(e,n){var r=[],a=[],d,o;for(Tr(e,r,a),d=0,o=a.length;d<o;d+=1)n.duplicates.push(r[a[d]]);n.usedDuplicates=new Array(o)}function Tr(e,n,r){var a,d,o;if(e!==null&&typeof e=="object")if(d=n.indexOf(e),d!==-1)r.indexOf(d)===-1&&r.push(d);else if(n.push(e),Array.isArray(e))for(d=0,o=e.length;d<o;d+=1)Tr(e[d],n,r);else for(a=Object.keys(e),d=0,o=a.length;d<o;d+=1)Tr(e[a[d]],n,r)}function Ri(e,n){n=n||{};var r=new td(n);return r.noRefs||wd(e,r),we(r,0,e,!0,!0)?r.dump+`
`:""}function bd(e,n){return Ri(e,Fe.extend({schema:Bt},n))}xr.exports.dump=Ri;xr.exports.safeDump=bd});var ji=H(($l,B)=>{"use strict";var rr=si(),Fi=Ii();function nr(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}B.exports.Type=V();B.exports.Schema=me();B.exports.FAILSAFE_SCHEMA=Ye();B.exports.JSON_SCHEMA=hr();B.exports.CORE_SCHEMA=gr();B.exports.DEFAULT_SAFE_SCHEMA=ke();B.exports.DEFAULT_FULL_SCHEMA=Re();B.exports.load=rr.load;B.exports.loadAll=rr.loadAll;B.exports.safeLoad=rr.safeLoad;B.exports.safeLoadAll=rr.safeLoadAll;B.exports.dump=Fi.dump;B.exports.safeDump=Fi.safeDump;B.exports.YAMLException=ve();B.exports.MINIMAL_SCHEMA=Ye();B.exports.SAFE_SCHEMA=ke();B.exports.DEFAULT_SCHEMA=Re();B.exports.scan=nr("scan");B.exports.parse=nr("parse");B.exports.compose=nr("compose");B.exports.addConstructor=nr("addConstructor")});var zi=H((Ul,Hi)=>{"use strict";var vd=ji();Hi.exports=vd});var Ni=H((Vl,Ar)=>{var Oi=zi(),yd="\\ufeff?",kd=typeof process!="undefined"?process.platform:"",Td="^("+yd+"(= yaml =|---)$([\\s\\S]*?)^(?:\\2|\\.\\.\\.)\\s*$"+(kd==="win32"?"\\r?":"")+"(?:\\n)?)",Di=new RegExp(Td,"m");Ar.exports=xd;Ar.exports.test=Cd;function xd(e,n){e=e||"";var r={allowUnsafe:!1};n=n instanceof Object?cr(cr({},r),n):r,n.allowUnsafe=Boolean(n.allowUnsafe);var a=e.split(/(\r?\n)/);return a[0]&&/= yaml =|---/.test(a[0])?Ed(e,n.allowUnsafe):{attributes:{},body:e,bodyBegin:1}}function Ad(e,n){for(var r=1,a=n.indexOf(`
`),d=e.index+e[0].length;a!==-1;){if(a>=d)return r;r++,a=n.indexOf(`
`,a+1)}return r}function Ed(e,n){var r=Di.exec(e);if(!r)return{attributes:{},body:e,bodyBegin:1};var a=n?Oi.load:Oi.safeLoad,d=r[r.length-1].replace(/^\s+|\s+$/g,""),o=a(d)||{},c=e.replace(r[0],""),m=Ad(r,e);return{attributes:o,body:c,bodyBegin:m,frontmatter:d}}function Cd(e){return e=e||"",Di.test(e)}});mu(exports,{default:()=>Lr});var le=Z(require("obsidian"));var ie=Z(require("obsidian")),Hr={cm6RenderAll:!0,renderImages:!0,renderPDF:!0,renderIframe:!1,renderExcalidraw:!1,renderMsgFile:!1,renderRichLink:!1,renderTransclusion:!1,previewOnHoverInternalLink:!1,refreshImagesAfterChange:!1,WYSIWYG:!1},sr=class extends ie.PluginSettingTab{constructor(n,r){super(n,r);this.plugin=r}display(){let{containerEl:n}=this;n.empty(),n.createEl("h1",{text:"Image in Editor Settings"}).addClass("image-in-editor-settings-main-header");let a=n.createDiv("tip");a.addClass("oz-tip-div");let o=a.createEl("a",{href:"https://revolut.me/ozante"}).createEl("img",{attr:{src:"https://raw.githubusercontent.com/ozntel/file-tree-alternative/main/images/tip%20the%20artist_v2.png"}});o.height=55;let c=n.createDiv("coffee");c.addClass("oz-coffee-div");let _=c.createEl("a",{href:"https://ko-fi.com/L3L356V6Q"}).createEl("img",{attr:{src:"https://cdn.ko-fi.com/cdn/kofi2.png?v=3"}});_.height=45;let x=n.createEl("div");x.innerHTML=`
<p>
The plugin will add image preview within the "Source Mode" of New Editor.
In case you have Live Preview enabled, the plugin will automatically detect this and won't render additionally to avoid duplication.
</p>
`,new ie.Setting(n).setName("Render All").setDesc("Turn off this option if you want to stop rendering images in the editor source mode. Disabling requires vault reload.").addToggle(S=>{S.setValue(this.plugin.settings.cm6RenderAll).onChange(A=>{this.plugin.settings.cm6RenderAll=A,A?this.plugin.loadCM6Extension():this.plugin.unloadCM6Extension(),this.plugin.saveSettings()})}),new ie.Setting(n).setName("Render Images in Editor").setDesc("Turn on this option if you want Image files (jpeg, jpg, png, gif, svg, bmp, webp) to be rendered in Editor").addToggle(S=>S.setValue(this.plugin.settings.renderImages).onChange(A=>{this.plugin.settings.renderImages=A,this.plugin.saveSettings()})),new ie.Setting(n).setName("Render Transclusion in Editor").setDesc("Turn on this option if you want transclusions to be rendered in Editor. Once this is enabled, you will have custom options for transclusions below.").addToggle(S=>S.setValue(this.plugin.settings.renderTransclusion).onChange(A=>{this.plugin.settings.renderTransclusion=A,this.plugin.saveSettings()})),new ie.Setting(n).setName("Render PDFs in Editor").setDesc("Turn on this option if you want also PDF files to be rendered in Editor").addToggle(S=>S.setValue(this.plugin.settings.renderPDF).onChange(A=>{this.plugin.settings.renderPDF=A,this.plugin.saveSettings()})),new ie.Setting(n).setName("Render Iframes in Editor").setDesc("Turn on this option if you want iframes to be rendered in Editor").addToggle(S=>S.setValue(this.plugin.settings.renderIframe).onChange(A=>{this.plugin.settings.renderIframe=A,this.plugin.saveSettings()})),new ie.Setting(n).setName("Render Excalidraw in Editor").setDesc(`
Turn on this option if you want drawings to be rendered in Editor.
You need to have "Excalidraw" plugin installed so that this
option works.
`).addToggle(S=>S.setValue(this.plugin.settings.renderExcalidraw).onChange(A=>{this.plugin.settings.renderExcalidraw=A,this.plugin.saveSettings()})),new ie.Setting(n).setName("Render Outlook MSG Files in Editor").setDesc(`
Turn on this option if you want outlook MSG Files to be rendered in Editor.
You need to have "MSG Handler" plugin installed so that
this option works
`).addToggle(S=>S.setValue(this.plugin.settings.renderMsgFile).onChange(A=>{this.plugin.settings.renderMsgFile=A,this.plugin.saveSettings()})),new ie.Setting(n).setName("Preview on Hover for File Links").setDesc("Turn on if you want to trigger preview when you hover on internal links within the rendered transclusion").addToggle(S=>S.setValue(this.plugin.settings.previewOnHoverInternalLink).onChange(A=>{this.plugin.settings.previewOnHoverInternalLink=A,this.plugin.saveSettings(),A?document.on("mouseover",".oz-obsidian-inner-link",this.plugin.filePreviewOnHover):document.off("mouseover",".oz-obsidian-inner-link",this.plugin.filePreviewOnHover)}))}};var Oe=Z(require("obsidian"));var De=(e,n)=>e.getResourcePath(n)+"?"+n.stat.mtime,zr=(e,n,r)=>{r.workspace.openLinkText(n,"/",Oe.Keymap.isModifier(e,"Mod")||e.button===1)},lr=e=>e.replace(/\s|\W|[#$%^&*()]/g,""),Ne=(e,n)=>e.plugins.getPlugin(n),fr=e=>{var n;return(n=e.vault.config)==null?void 0:n.livePreview},Or=()=>{var e;return((e=Oe.Platform)==null?void 0:e.resourcePathPrefix)||"app://local/"};var Dr=Z(require("obsidian"));var Be=e=>{let n=/[^(x|0-9)]/;if(e.match(n))return!1;let r=/[0-9]+x[0-9]+/,a=/[0-9]+/;var d=e.match(r);if(d){var o=d[0].indexOf("x");return{width:parseInt(d[0].substr(0,o)),height:parseInt(d[0].substr(o+1))}}else{var c=e.match(a);if(c)return{width:parseInt(c[0])}}return!1};var Nr=(e,n,r)=>{let a=new Dr.Menu(n.app);return a.addItem(d=>{d.setTitle("Copy Image to Clipboard"),d.setIcon("image-file"),d.onClick(o=>ne(void 0,null,function*(){var c=yield n.app.vault.adapter.readBinary(r.path),m=new Uint8Array(c),_=new Blob([m],{type:"image/png"});let x=new ClipboardItem({"image/png":_});window.navigator.clipboard.write([x])}))}),n.app.workspace.trigger("file-menu",a,r,"file-explorer"),a.showAtPosition({x:e.pageX,y:e.pageY}),!1};var qe=Z(require("@codemirror/state")),$e=Z(require("@codemirror/view"));function gu(){let e=qe.StateEffect.define(),n=qe.StateField.define({create(){return $e.Decoration.none},update(r,a){return a.effects.reduce((d,o)=>o.is(e)?o.value:d,r)},provide:r=>$e.EditorView.decorations.from(r)});return{update:e,field:n}}var Le=gu();var tu=Z(require("@codemirror/view"));var Ce=Z(require("obsidian")),uu=Z(require("@codemirror/state")),au=Z(require("@codemirror/view"));var Br=e=>Ne(e,"obsidian-excalidraw-plugin"),qr=e=>e.extension==="excalidraw"||ExcalidrawAutomate.isExcalidrawFile&&ExcalidrawAutomate.isExcalidrawFile(e),$r=e=>ne(void 0,null,function*(){ExcalidrawAutomate.reset();var n=yield ExcalidrawAutomate.createPNG(e.path);return n});var Bi=Z(Vr());var _u=function(){function e(n,r){for(var a=0;a<r.length;a++){var d=r[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(n,d.key,d)}}return function(n,r,a){return r&&e(n.prototype,r),a&&e(n,a),n}}(),wu=bu(["",""],["",""]);function bu(e,n){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function vu(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var yu=function(){function e(){for(var n=this,r=arguments.length,a=Array(r),d=0;d<r;d++)a[d]=arguments[d];return vu(this,e),this.tag=function(o){for(var c=arguments.length,m=Array(c>1?c-1:0),_=1;_<c;_++)m[_-1]=arguments[_];return typeof o=="function"?n.interimTag.bind(n,o):typeof o=="string"?n.transformEndResult(o):(o=o.map(n.transformString.bind(n)),n.transformEndResult(o.reduce(n.processSubstitutions.bind(n,m))))},a.length>0&&Array.isArray(a[0])&&(a=a[0]),this.transformers=a.map(function(o){return typeof o=="function"?o():o}),this.tag}return _u(e,[{key:"interimTag",value:function(r,a){for(var d=arguments.length,o=Array(d>2?d-2:0),c=2;c<d;c++)o[c-2]=arguments[c];return this.tag(wu,r.apply(void 0,[a].concat(o)))}},{key:"processSubstitutions",value:function(r,a,d){var o=this.transformSubstitution(r.shift(),a);return"".concat(a,o,d)}},{key:"transformString",value:function(r){var a=function(o,c){return c.onString?c.onString(o):o};return this.transformers.reduce(a,r)}},{key:"transformSubstitution",value:function(r,a){var d=function(c,m){return m.onSubstitution?m.onSubstitution(c,a):c};return this.transformers.reduce(d,r)}},{key:"transformEndResult",value:function(r){var a=function(o,c){return c.onEndResult?c.onEndResult(o):o};return this.transformers.reduce(a,r)}}]),e}(),z=yu;var ku=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{onEndResult:function(a){if(n==="")return a.trim();if(n=n.toLowerCase(),n==="start"||n==="left")return a.replace(/^\s*/,"");if(n==="end"||n==="right")return a.replace(/\s*$/,"");throw new Error("Side not supported: "+n)}}},O=ku;function Tu(e){if(Array.isArray(e)){for(var n=0,r=Array(e.length);n<e.length;n++)r[n]=e[n];return r}else return Array.from(e)}var xu=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";return{onEndResult:function(a){if(n==="initial"){var d=a.match(/^[^\S\n]*(?=\S)/gm),o=d&&Math.min.apply(Math,Tu(d.map(function Line truncated
`),Ve,N,G,O);var Ec=new z(be(`
`),N,G,O,de(/&/g,"&amp;"),de(/</g,"&lt;"),de(/>/g,"&gt;"),de(/"/g,"&quot;"),de(/'/g,"&#x27;"),de(/`/g,"&#x60;"));var Ic=new z(Q(/(?:\n(?:\s*))+/g," "),O);var Nc=new z(Q(/(?:\n\s*)/g,""),O);var Yc=new z(N({separator:","}),Q(/(?:\s+)/g," "),O);var ns=new z(N({separator:",",conjunction:"or"}),Q(/(?:\s+)/g," "),O);var ss=new z(N({separator:",",conjunction:"and"}),Q(/(?:\s+)/g," "),O);var ws=new z(N,G,O);var Es=new z(N,Q(/(?:\s+)/g," "),O);var Is=new z(G,O);var Uu=new z(G("all"),O),We=Uu;var qi=Z(Ni()),Sd=e=>{let n=e,r=/\[\[.*?\]\]/g,a=n.match(r);if(a){let d=/\[\[.*?(?=(\]|\|))/,o=/\|.*(?=]])/;for(let c of a){let m=c.match(d);if(m){let _=c.match(o),x=Ld(m[0].replace("[[",""),_?_[0].replace("|",""):"");n=n.replace(c,x)}}}return n},Ld=(e,n)=>`[${n}](${encodeURI(e)})`,Pd=/!\[\[(.*)#\^(.*)\]\]/,Md=/!\[\[(.*)#((?!\^).*)\]\]/;var Rd=e=>{let n=e,r=e.match(new RegExp(`(${Pd.source})|(${Md.source})`,"g"));return r==null||r.forEach(a=>n=n.replace(a,a.substring(1))),n},Id=e=>{let n=/( +)#[^\s#]+|^#[^\s#]+/gm,r=e.match(n);if(!r)return e;let a=e;for(let d of r)a=a.replace(d,`<span class="hashtag">${d}</span>`);return a};var Fd=e=>{let n=Id(e);return n=Rd(n),n=Sd(n),n=Od(n),Ki()&&(n=Ud(n)),n},ze=e=>{let n=Fd(e);return new Bi.default.Converter({tables:!0,simpleLineBreaks:!0,strikethrough:!0,tasklists:!0,smartIndentationFix:!0}).makeHtml(n)},$i=(e,n,r)=>{let a=document.createElement("div"),d=r.substr(e,n-e);return a.innerHTML=ze(d),a},Ui=(e,n)=>{let r=document.createElement("div"),a=e.position.start.offset,d=e.position.end.offset,o=n.substr(a,d-a),c=o.indexOf(`^${e.id}`);return c!==-1&&(o=o.slice(0,c)+o.slice(c+e.id.length+1)),r.innerHTML=ze(o),r},ir=(e,n)=>{jd(e),Hd(e,n.app),zd(e,n.app),Dd(e),qd()&&Bd(e),Ki()&&Vd(e)},jd=e=>{e.querySelectorAll("pre > code").forEach(r=>{r.addClass("line-numbers")})},Hd=(e,n)=>{e.querySelectorAll("img").forEach(a=>{if(a.getAttr("src")){let o=n.metadataCache.getFirstLinkpathDest(decodeURI(a.getAttr("src")),"");if(o){let c=De(n.vault,o);a.setAttr("src",c);let m=a.getAttr("alt");if(m){let _=Be(m);_&&(a.width=_.width,_.height&&(a.height=_.height))}}}})},zd=(e,n)=>{e.querySelectorAll("a").forEach(a=>{let d=a.getAttr("href");a.innerText===""&&(a.innerText=decodeURI(d)),d.match(new RegExp(".*#.*"))&&(d=d.match(new RegExp(".*(?=#)"))[0]),n.metadataCache.getFirstLinkpathDest(decodeURI(d),"")&&(a.setAttr("href",decodeURI(d)),a.addClass("oz-obsidian-inner-link")),a.innerText.startsWith("#")&&a.addClass("tag")})},Od=e=>{try{return(0,qi.default)(e).body}catch(n){return e}},Dd=e=>{let n=e.querySelectorAll('code[class*="language-ad-"]');n==null||n.forEach(r=>{let a=r.className,d=/language-ad-.*?(?=\s)/,o=a.match(d),c=o?o[0].replace("language-ad-",""):"Note",m=Nd(c,r.innerHTML);r.parentElement.replaceWith(m)})},Nd=(e,n)=>{let r=Vi[e]?Vi[e]:"68, 138, 255",a=document.createElement("div");a.addClass("oz-admonition"),a.style.cssText=`--oz-admonition-color: ${r};`;let d=a.createEl("div");d.addClass("oz-admonition-title");let o=d.createEl("div");o.addClass("oz-admonition-title-content");let c=o.createEl("div");c.addClass("oz-admonition-title-markdown"),c.innerText=e;let m=a.createEl("div");m.addClass("oz-admonition-content-holder");let _=m.createEl("div");return _.addClass("oz-admonition-content"),_.innerHTML=ze(n),a},Vi={abstract:"0, 176, 255",attention:"255, 145, 0",bug:"245, 0, 87",caution:"255, 145, 0",check:"0, 200, 83",cite:"158, 158, 158",danger:"255, 23, 68",done:"0, 200, 83",error:"255, 23, 68",example:"124, 77, 255",fail:"255, 82, 82",failure:"255, 82, 82",faq:"100, 221, 23",help:"100, 221, 23",hint:"0, 191, 165",important:"0, 191, 165",info:"0, 184, 212",missing:"255, 82, 82",note:"68, 138, 255",question:"100, 221, 23",quote:"158, 158, 158",seealso:"68, 138, 255",success:"0, 200, 83",summary:"0, 176, 255",tip:"0, 191, 165",todo:"0, 184, 212"},Bd=e=>{let n=e.querySelectorAll('code[class*="language-mermaid"]');n.length!==0&&(window.mermaid.initialize($d),n==null||n.forEach(r=>{let a=document.createElement("div"),d=Math.floor(Math.random()*999999);a.id=`mermaid-${d}`,a.innerHTML=r.innerHTML;try{window.mermaid.mermaidAPI.render(`mermaid-${d}`,Gi(r.innerHTML),o=>{a.innerHTML=o}),r.parentElement.replaceWith(a)}catch(o){let c=document.createElement("p");c.addClass("mermaid-error-information"),c.innerText="Syntax Error in Mermaid graph",r.parentElement.prepend(c)}}))},Wi={nbsp:" ",cent:"\xA2",pound:"\xA3",yen:"\xA5",euro:"\u20AC",copy:"\xA9",reg:"\xAE",lt:"<",gt:">",quot:'"',amp:"&",apos:"'"},Gi=e=>e.replace(/\&([^;]+);/g,function(n,r){var a;return r in Wi?Wi[r]:(a=r.match(/^#x([\da-fA-F]+)$/))?String.fromCharCode(parseInt(a[1],16)):(a=r.match(/^#(\d+)$/))?String.fromCharCode(~~a[1]):n}),qd=()=>window.mermaid,$d={startOnLoad:!0,flowchart:{useMaxWidth:!1,htmlLabels:!0,curve:"cardinal"},securityLevel:"loose",theme:"forest",logLevel:5},Ud=e=>{let n=e,r=/\$\$.*?\$\$/gs,a=/\$\$.*?(?=\$\$)/s,d=e.match(r);if(d&&d.length>0)for(let _ of d){let x=_.match(a);!x||(n=n.replace(_,Yi(x[0].replace("$$",""),"newline")))}let o=/\$[Line truncated
<pre class="language-mathjax">
<code class="language-mathjax ${n==="inline"?"inline":""}">
${e}
</code>
</pre>
`,Vd=e=>{let n=e.querySelectorAll("code.language-mathjax");for(let r=0;r<n.length;r++){let a=n[r],d=a.classList.contains("inline");if(d){let o=a.parentElement.previousElementSibling;o&&o.classList.add("inline-block")}Wd(a.innerHTML,d?"inline":"newline").then(o=>{a.parentElement.replaceWith(o)})}},Wd=(e,n)=>ne(void 0,null,function*(){let r;n==="inline"?(r=document.createElement("span"),r.classList.add("inline-mathjax-block")):n==="newline"&&(r=document.createElement("div"),r.classList.add("newline-mathjax-block"));let a=Gi(e),d=yield window.MathJax.tex2chtmlPromise(a,{display:n!=="inline"}),o=window.MathJax.startup.adaptor;r.innerHTML=o.outerHTML(d);let c=document.createElement("style");return c.innerHTML=o.textContent(window.MathJax.chtmlStylesheet()),r.appendChild(c),r}),Ki=()=>{var e;return(e=window.MathJax)==null?void 0:e.version};var te=Z(require("@codemirror/view"));var ur=e=>te.Decoration.replace({widget:new Ji(e),inclusive:!1}),Er=e=>te.Decoration.replace({widget:new Zi(e),inclusive:!1}),Cr=e=>te.Decoration.replace({widget:new Qi(e),inclusive:!1}),ar=e=>te.Decoration.replace({widget:new Xi(e),inclusive:!1}),Ji=class extends te.WidgetType{constructor({url:n,altText:r,filePath:a}){super();this.url=n,this.altText=r,this.filePath=a}eq(n){return n.altText===this.altText&&n.filePath===this.filePath}toDOM(){let n=document.createElement("div");n.addClass("oz-image-widget-cm6");let r=n.createEl("img");r.src=this.url,r.setAttr("data-path",this.filePath);let a=Be(this.altText);return a&&(r.width=a.width,a.height&&(r.height=a.height)),r.alt=this.altText,n}ignoreEvent(){return!0}},Zi=class extends te.WidgetType{constructor({url:n,filePath:r}){super();this.url=n,this.filePath=r}toDOM(){let n=document.createElement("div");n.addClass("oz-pdf-widget-cm6");let r=n.createEl("embed");return r.src=this.url,r.type="application/pdf",r.width="100%",r.height="800px",n}eq(n){return n.filePath===this.filePath||n.url===this.url}ignoreEvent(){return!0}},Qi=class extends te.WidgetType{constructor({htmlText:n,htmlEl:r}){super();this.htmlText=n,this.htmlEl=r}toDOM(){let n=document.createElement("div");return n.addClass("oz-custom-html-widget-cm6"),this.htmlText?n.innerHTML=this.htmlText.trim():n.appendChild(this.htmlEl),n}eq(n){return n.htmlText===this.htmlText}ignoreEvent(){return!0}},Xi=class extends te.WidgetType{constructor({type:n,htmlDivElement:r,filePath:a,blockRef:d}){super();this.type=n,this.htmlDivElement=r,this.filePath=a,this.blockRef=d}toDOM(){let n=document.createElement("div");return n.addClasses(["oz-transclusion-widget-cm6",this.type]),n.appendChild(this.htmlDivElement),n}eq(n){return n.filePath+n.blockRef===this.filePath+this.blockRef}ignoreEvent(){return!0}};var eu=["file-transclusion","header-transclusion","blockid-transclusion"],ru=e=>{let{lineText:n,plugin:r,sourceFile:a}=e,d=/!\[\[.*?(jpe?g|png|gif|svg|bmp|webp).*?\]\]/,o=n.match(d);if(o){let g=/\[\[.*(jpe?g|png|gif|svg|bmp|webp)/,T=o[0].match(g);if(T){let b=T[0].replace("[[",""),w=r.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(b),a.path);if(w){let y=/\|.*(?=]])/,l=o[0].match(y);return{type:"vault-image",match:o[0],linkText:b,altText:l?l[0].replace("|",""):"",blockRef:"",file:w}}}}let c=/!\[\[.*(pdf)(.*)?\]\]/,m=n.match(c);if(m){let g=/\[\[.*.pdf/,T=m[0].match(g);if(T){let b=T[0].replace("[[",""),w=r.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(b),a.path);if(w){let y=new RegExp("#page=[0-9]+"),l=m[0].match(y);return{type:"pdf-file",match:m[0],linkText:"",altText:"",blockRef:l?l[0]:"",file:w}}}}let _=/!\[(^$|.*)\]\(.*(pdf)(.*)?\)/,x=n.match(_);if(x){let g=/\(.*.pdf/,T=x[0].match(g);if(T){let b=T[0].replace("(",""),w=/(http[s]?:\/\/)([^\/\s]+\/)(.*)/,y=new RegExp("#page=[0-9]+"),l=x[0].match(y);if(w.test(b))return{type:"pdf-link",match:x[0],linkText:b,altText:"",blockRef:l?l[0]:""};{let k=r.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(b),a.path);if(k)return{type:"pdf-file",match:x[0],linkText:k.path,altText:"",blockRef:l?l[0]:"",file:k}}}}let S=/(http[s]?:\/\/)([^\/\s]+\/)(.*)/,A=/!\[[^)]*\]\([a-z][a-z0-9+\-.]+:\/[^)]*\)/,E=n.match(A);if(E){let g=/\(.*(?=\))/,T=E[0].match(g);if(T&&T[0].replace("(","").match(S)){let b=/\[(^$|.*)(?=\])/,w=E[0].match(b);return{type:"external-image",match:E[0],linkText:T[0].replace("(",""),altText:w?w[0].replace("[",""):"",blockRef:""}}}let v=/!\[(^$|.*?)\]\(.*?(jpe?g|png|gif|svg|bmp|webp)\)/,M=n.match(v);if(M){let g=/\(.*(jpe?g|png|gif|svg|bmp|webp)/,T=M[0].match(g);if(T){let b=T[0].replace("(",""),w=r.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(b),a.path);if(w){let y=/\[(^$|.*)(?=\])/,l=M[0].match(y);return{type:"vault-image",match:M[0],linkText:b,altText:l?l[0].replace("[",""):"",blockRef:"",file:w}}}}let F=/!\[\[.*(msg|eml)(.*)?\]\]/,I=n.match(F);if(I){let g=/\[\[.*.(msg|eml)/,T=I[0].match(g);if(T){let b=T[0].replace("[[",""),w=r.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(b),a.path);if(w)return{type:"msg-file",match:I[0],linkText:"",altText:"",blockRef:"", Line truncated
/*! showdown v 1.9.1 - 02-11-2019 */
/* nosourcemap */
+11
View File
@@ -0,0 +1,11 @@
{
"id": "oz-image-plugin",
"name": "Image in Editor",
"version": "2.2.6",
"minAppVersion": "0.15.0",
"description": "View Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.",
"author": "Ozan Tellioglu",
"authorUrl": "https://ozan.pl/aboutme/",
"fundingUrl": "https://ko-fi.com/ozante",
"isDesktopOnly": false
}
+349
View File
@@ -0,0 +1,349 @@
/* @settings
name: Ozan's Image in Editor Plugin
id: oz-image-in-editor-plugin
settings:
-
id: oz-img-in-editor-max-transclusion-height
title: Transclusion Embed Maximum Height
description: Set the max height of transclusion render in editor as px
type: variable-number
default: 600
format: px
-
id: oz-img-in-editor-max-msg-height
title: MSG Embed Maximum Height
description: Set the max height of msg render in editor as px
type: variable-number
default: 300
format: px
-
id: oz-img-in-editor-img-size-xx-small
title: Alt Text "#xx-small" Maximum Image Width
description: Set the max width of images with "#xx-small" alt text
type: variable-number
default: 25
format: "%"
-
id: oz-img-in-editor-img-size-x-small
title: Alt Text "#x-small" Maximum Image Width
description: Set the max width of images with "#x-small" alt text
type: variable-number
default: 50
format: "%"
-
id: oz-img-in-editor-img-size-small
title: Alt Text "#small" Maximum Image Width
description: Set the max width of images with "#small" alt text
type: variable-number
default: 75
format: "%"
*/
.theme-light,
.theme-dark {
--oz-img-in-editor-max-msg-height: 300px;
--oz-img-in-editor-max-transclusion-height: 600px;
--oz-img-in-editor-img-size-xx-small: 25%;
--oz-img-in-editor-img-size-x-small: 50%;
--oz-img-in-editor-img-size-small: 75%;
}
.CodeMirror-linewidget img {
margin-top: 5px;
margin-bottom: 5px;
}
.theme-dark img[alt$='#invert'],
.theme-dark div.oz-image-widget > img[alt$='#invert'],
.theme-dark div.oz-image-widget-cm6 > img[alt$='#invert'] {
filter: invert(1) hue-rotate(180deg);
}
.oz-transclusion-widget,
.oz-transclusion-widget-cm6 {
padding: 3px 3px 3px 19px;
border: 0.7px solid var(--text-muted);
max-height: var(oz-img-in-editor-max-transclusion-height);
overflow: auto;
border-radius: 7px;
margin-top: 5px;
}
.oz-coffee-div,
.oz-tip-div {
text-align: center;
margin-top: 10px;
}
.oz-tip-div img {
border-radius: 10px;
}
/* Line Numbers In Editor CodeBlock Renders */
pre[class*='language-'].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
pre[class*='language-'].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line-numbers-rows > span {
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
}
.mermaid-error-information {
color: red;
font-size: 14px;
margin-bottom: 3px;
}
.oz-modal-center {
text-align: center;
margin: 20px 10px 20px 10px;
}
.oz-modal-title {
text-align: center;
}
.inline-mathjax-block {
margin-left: 5px;
}
.oz-image-widget > img,
.oz-image-widget-cm6 > img {
-webkit-user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
div.oz-transclusion-widget pre,
div.oz-transclusion-widget-cm6 pre {
overflow-x: auto;
}
.oz-transclusion-widget > *,
.oz-transclusion-widget-cm6 > * {
user-select: text !important;
}
/* Rich Link Cards */
/* Credit: https://github.com/dhamaniasad/obsidian-rich-links */
.oz-rich-link-card {
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
width: 100%;
display: flex;
text-decoration: none;
background-color: var(--background-primary);
}
.oz-rich-link-card-container {
position: relative;
}
.oz-rich-link-image-container {
height: 100px;
width: 35%;
min-width: 120px;
overflow: hidden;
border-right: 1px solid var(--background-modifier-border);
}
.oz-rich-link-image {
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
padding-bottom: 100px;
background-color: var(--background-secondary);
}
.oz-rich-link-card-text {
padding: 4px;
width: 75%;
}
.oz-rich-link-card-title {
font-family: sans-serif;
font-size: 16px;
margin: 0 0 4px 0;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
color: var(--text-normal);
}
.oz-rich-link-card-description {
font-family: sans-serif;
font-size: 14px;
margin: 0;
color: var(--text-muted);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.oz-rich-link-href {
font-family: sans-serif;
font-size: 14px;
margin: 0;
color: var(--text-faint);
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.image-in-editor-settings-main-header {
text-align: center !important;
margin-bottom: 20px;
}
.image-in-editor-cm-header {
margin-top: 0px;
}
.image-in-editor-editor-header {
margin-bottom: 5px;
}
/* Sizing for CM5 and CM6 */
div.oz-image-widget > img[alt$='#small'],
div.oz-image-widget-cm6 > img[alt$='#small'] {
max-width: var(--oz-img-in-editor-img-size-small) !important;
}
div.oz-image-widget > img[alt$='#x-small'],
div.oz-image-widget-cm6 > img[alt$='#x-small'] {
max-width: var(--oz-img-in-editor-img-size-x-small) !important;
}
div.oz-image-widget > img[alt$='#xx-small'],
div.oz-image-widget-cm6 > img[alt$='#xx-small'] {
max-width: var(--oz-img-in-editor-img-size-xx-small) !important;
}
/* Style For CM6 */
div.oz-image-widget-cm6,
div.oz-custom-html-widget-cm6,
div.oz-pdf-widget-cm6 {
padding-top: 5px;
padding-bottom: 5px;
}
div.oz-image-widget-cm6 + br,
div.oz-custom-html-widget-cm6 + br,
div.oz-pdf-widget-cm6 + br {
display: none;
}
.cm-line div.oz-transclusion-widget-cm6 {
padding-top: 10px;
padding-bottom: 10px;
}
.cm-line div.oz-transclusion-widget-cm6 * {
margin-block-start: 0px !important;
margin-block-end: 0px !important;
}
/* Legacy Admonition */
.oz-admonition {
margin: 1.5em 0;
padding: 0;
overflow: hidden;
page-break-inside: avoid;
border-left: 0.3rem solid rgb(var(--oz-admonition-color));
border-radius: 0.1rem;
box-shadow: 0 0.2rem 0.5rem rgb(44, 43, 43);
}
.oz-admonition-title {
position: relative;
padding: 15px 5px 15px 15px;
font-weight: 700;
background-color: rgba(var(--oz-admonition-color), 0.1);
}
.oz-admonition-title-content {
display: flex;
justify-content: flex-start;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.oz-admonition-content-holder {
position: relative;
padding-top: 15px;
padding-bottom: 15px;
}
.oz-admonition-content {
margin: 10px 15px;
position: relative;
overflow-x: auto;
}
.oz-admonition-title-markdown {
text-transform: capitalize;
display: block;
}
.oz-transclusion-widget-cm6 span.hashtag {
background-color: var(--tag-background);
border: var(--tag-border-width) solid var(--tag-border-color);
border-radius: var(--tag-radius);
color: var(--tag-color);
font-size: var(--tag-size);
text-decoration: var(--tag-decoration);
padding: var(--tag-padding-y) var(--tag-padding-x);
line-height: 1;
}
.oz-custom-html-widget-cm6 .msg-handler-plugin-renderer {
max-height: var(--oz-img-in-editor-max-msg-height);
overflow-y: scroll;
border: 0.1px solid var(--text-muted);
padding: 10px;
}
.cm-line:has(div.is-collapsed) .oz-custom-html-widget-cm6,
.cm-line:has(div.is-collapsed) .oz-image-widget-cm6,
.cm-line:has(div.is-collapsed) .oz-pdf-widget-cm6,
.cm-line:has(div.is-collapsed) .oz-transclusion-widget-cm6 {
display: none;
}
+28 -4
View File
@@ -4,6 +4,34 @@
"basename": "2025-07-17",
"path": "01-工作日记/2025-07-17.md"
},
{
"basename": "微信机器人",
"path": "03-学习笔记/微信机器人.md"
},
{
"basename": "微信公众号RSS",
"path": "03-学习笔记/微信公众号RSS.md"
},
{
"basename": "OB插件",
"path": "03-学习笔记/OB插件.md"
},
{
"basename": "Memos",
"path": "03-学习笔记/Memos.md"
},
{
"basename": "Calibre电子书平台",
"path": "03-学习笔记/Calibre电子书平台.md"
},
{
"basename": "kyhNGvh5iFc9eYXy2YuYWx_FDF8C04E-22D3-4D4C-9ED0-F52A326B9801",
"path": "50-Memos/2025/07/resources/kyhNGvh5iFc9eYXy2YuYWx_FDF8C04E-22D3-4D4C-9ED0-F52A326B9801.jpg"
},
{
"basename": "6cb2VU3rkihszQLFDerqA2_2_20250712120414",
"path": "50-Memos/2025/07/resources/6cb2VU3rkihszQLFDerqA2_2_20250712120414.png"
},
{
"basename": "第28周总结",
"path": "50-Memos/2025/weekly/第28周总结.md"
@@ -11,10 +39,6 @@
{
"basename": "第29周总结",
"path": "50-Memos/2025/weekly/第29周总结.md"
},
{
"basename": "Calibre电子书平台",
"path": "03-学习笔记/Calibre电子书平台.md"
}
],
"omittedPaths": [],
+110 -66
View File
@@ -338,6 +338,28 @@
"image": null,
"description": "少数派致力于更好地运用数字产品或科学方法,帮助用户提升工作效率和生活品质",
"items": [
{
"title": "一日一技|曲线救国,让 Android 用上 DoH",
"description": "Matrix首页推荐Matrix是少数派的写作社区,我们主张分享真实的产品体验,有实用价值的经验与思考。我们会不定期挑选Matrix最优质的文章,展示来自用户的最真实的体验和观点。文章代表作者个人观点 ...<a href=\"https://sspai.com/post/100874\" target=\"_blank\">查看全文</a>",
"content": "Matrix首页推荐Matrix是少数派的写作社区,我们主张分享真实的产品体验,有实用价值的经验与思考。我们会不定期挑选Matrix最优质的文章,展示来自用户的最真实的体验和观点。文章代表作者个人观点 ...<a href=\"https://sspai.com/post/100874\" target=\"_blank\">查看全文</a>",
"category": "",
"link": "https://sspai.com/post/100874",
"creator": "so1ar",
"pubDate": "Thu, 17 Jul 2025 14:20:59 +0800",
"enclosure": "",
"enclosureType": "",
"image": "",
"id": "",
"language": "zh",
"folder": "资讯",
"feed": "少数派",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "15a54a9f812c64112fcc7064ca01f5b2",
"highlights": []
},
{
"title": "我们如何优化少数派办公室的无线网络",
"description": "本文分上下两篇,基于为少数派办公室优化无线网络的实际经历,介绍了如何分析复杂无线环境中出现的问题,企业级路由和普通家用路由的不同之处,以及优化无线网络的各个常用手段。<p>[......]</p><a href=\"https://sspai.com/prime/story/office-wireless-network-optimization-1\" target=\"_blank\">查看全文</a><p>本文为会员文章,出自<a href=\"https://sspai.com/prime/precog/single\" target=\"_blank\">《单篇文章》</a >,订阅后可阅读全文。</p >",
@@ -2304,6 +2326,94 @@
"image": null,
"description": "知乎日报全文RSS。获取更多全文RSS:https://feedx.net",
"items": [
{
"title": "瞎扯 · 如何正确地吐槽",
"description": "<div><img src=\"http://pic1.zhimg.com/v2-70a7f297d326635138803cc6b8263426_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/557166858/answer/1923350850706862305\" target=\"_blank\">有钱人的生活奢侈到什么程度?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/3bb61f10649c811bd393b9898a6f127d\" target=\"_blank\" rel=\"noopener noreferrer\">@知乎用户.</a> :有钱人的生活奢侈到什么程度,请看。</div>\n</blockquote>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-549ba0596bf59abc27b1b01d81247406_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>上流社会这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-00f4f7a9136f4fee6d603bc3d11ca339_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>奢侈这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-e470a460f45f0f4da4d505e5ebde94f0_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>吃香喝辣这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://pic1.zhimg.com/80/v2-69e3281c2aaefde8742e7343f8aa9411_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>买柠檬水不用代金券这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-f64b44b97616f3c5857fc148acb4e11d_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>日常这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-343026a8d5602274c9ed33a6abc2b811_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>存款这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-e3049b841286537146041204dd83a82a_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>收入这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-4e51ed599dd8a47689aa7bef8ed97b73_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>财力雄厚这一块/.</figcaption></figure>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/1920560938802706064/answer/1920869233362961664\" target=\"_blank\">高考查分是种什么样的体验?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/6fd11c00e07df7d2970d33071d0ebc0a\" target=\"_blank\" rel=\"noopener noreferrer\">@秋天2018</a> :一看到这个场景,我就想到当年查分数的时候,全家人都非常激动,尤其是我爸,激动的四处找皮带……</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/623595456/answer/3235838948\" target=\"_blank\">如果生物再增加一个器官,应当加什么,加哪里?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/0cc62d2647c7655628194963f814d00b\" target=\"_blank\" rel=\"noopener noreferrer\">@Ksyne0519</a> :困意储存器。 当你困的时候可以把睡意储存起来, 就变得精神了, 晚上睡不着觉、或者中午想要午休的时候拿出来, 就可以快速入睡了。</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/634781286/answer/3370360984\" target=\"_blank\">有哪些童言童行惊艳到你?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/0f568c1f98177d9ea670182f445c3012\" target=\"_blank\" rel=\"noopener noreferrer\">@九名</a> :躺在床上看手机的时候,四岁的女儿凑过来,别玩了,你有孩子要照顾。</div>\n</blockquote>\nLine truncated
"content": "<div><img src=\"http://pic1.zhimg.com/v2-70a7f297d326635138803cc6b8263426_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/557166858/answer/1923350850706862305\" target=\"_blank\">有钱人的生活奢侈到什么程度?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/3bb61f10649c811bd393b9898a6f127d\" target=\"_blank\" rel=\"noopener noreferrer\">@知乎用户.</a> :有钱人的生活奢侈到什么程度,请看。</div>\n</blockquote>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-549ba0596bf59abc27b1b01d81247406_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>上流社会这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-00f4f7a9136f4fee6d603bc3d11ca339_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>奢侈这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-e470a460f45f0f4da4d505e5ebde94f0_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>吃香喝辣这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://pic1.zhimg.com/80/v2-69e3281c2aaefde8742e7343f8aa9411_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>买柠檬水不用代金券这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-f64b44b97616f3c5857fc148acb4e11d_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>日常这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-343026a8d5602274c9ed33a6abc2b811_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>存款这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-e3049b841286537146041204dd83a82a_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>收入这一块/.</figcaption></figure>\n<figure contenteditable=\"false\">\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<div><img src=\"http://picx.zhimg.com/80/v2-4e51ed599dd8a47689aa7bef8ed97b73_1440w.png?source=d16d100b\" alt=\"\">\n<div> </div>\n<div> </div>\n</div>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div> </div>\n</div>\n</div>\n<figcaption>财力雄厚这一块/.</figcaption></figure>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/1920560938802706064/answer/1920869233362961664\" target=\"_blank\">高考查分是种什么样的体验?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/6fd11c00e07df7d2970d33071d0ebc0a\" target=\"_blank\" rel=\"noopener noreferrer\">@秋天2018</a> :一看到这个场景,我就想到当年查分数的时候,全家人都非常激动,尤其是我爸,激动的四处找皮带……</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/623595456/answer/3235838948\" target=\"_blank\">如果生物再增加一个器官,应当加什么,加哪里?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/0cc62d2647c7655628194963f814d00b\" target=\"_blank\" rel=\"noopener noreferrer\">@Ksyne0519</a> :困意储存器。 当你困的时候可以把睡意储存起来, 就变得精神了, 晚上睡不着觉、或者中午想要午休的时候拿出来, 就可以快速入睡了。</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/634781286/answer/3370360984\" target=\"_blank\">有哪些童言童行惊艳到你?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/0f568c1f98177d9ea670182f445c3012\" target=\"_blank\" rel=\"noopener noreferrer\">@九名</a> :躺在床上看手机的时候,四岁的女儿凑过来,别玩了,你有孩子要照顾。</div>\n</blockquote>\n<divLine truncated
"category": "",
"link": "https://daily.zhihu.com/story/9782633",
"creator": "",
"pubDate": "Thu, 17 Jul 2025 12:27:03 +0800",
"enclosure": "",
"enclosureType": "",
"image": "",
"id": "",
"language": "",
"folder": "资讯",
"feed": "知乎",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "4d5790b7bc2a74839b19fd787279c6b3",
"highlights": []
},
{
"title": "如何看待费米悖论认为的最可怕的事实是宇宙根本没有外星人?",
"description": "<div><img src=\"http://pic1.zhimg.com/v2-0062921c4a4d96762a7cac4b0f0fc540_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<p><a href=\"https://www.zhihu.com/question/1909327597109777310/answer/1909619310139254241?write\">你相信造物主创造物种还是进化论?</a></p>\n<p>费米悖论提出至今已经有七十年了。</p>\n<p>你可以说七十年前的基础物理已经发展到了很高的水平,但当时对宇宙、地球和地球生命的认识实在还处于很原始的水平。</p>\n<p>当时板块漂移说还没有成为主流。</p>\n<p>当时还没用同位素法测定地球年龄。</p>\n<p>当时不知道进化论的完整链条。</p>\n<p>当时连月球是地球大撞击形成的都不知道。</p>\n<p>当时连中子星都还没发现。</p>\n<p>更别提柯伊伯带和彗星成因,以及有机物在宇宙中广泛存在的事实。</p>\n<p>彼时 dna 发现没多久,连 dna 长啥样都不知道。</p>\n<p>由于 50 年代的费米对天文、地理、生物知识的匮乏,彼时对进化论的演化图谱一片模糊,所以费米悖论就是瞎猜。</p>\n<p>结合近十几年的发现,我认为费米悖论的解释已经越来越清晰了。</p>\n<p>那就是:</p>\n<p>一、宇宙中原始生命很有可能广泛存在。碳基单细胞生物大概率在十光年内就能发现。</p>\n<p>二、碳基高等生物的发现概率非常小。从单细胞到脊椎动物,大概隔了十个千分之一概率的过滤器,也就是几千个银河系那么多的恒星,才有可能演化出脊椎动物。</p>\n<p>三、从脊椎动物演化到人类的难度,远比二要难。整个宇宙也就几百亿光年,我们地球恐怕就是孤例。即使不是孤例,由于光锥隔离,我们也不可能发现别的智能生物星球,哪怕我们掌握了光速飞船也不行。</p>\n<p>——————</p>\n<p><strong>(提醒一下各位看官,以下内容绝大部分都是基于费米悖论提出之后的科学发现。我在后半部分会回答“我们在费米悖论下如何自处”的问题)</strong></p>\n<p>第一点好解释,</p>\n<p>我们发现最原始的细菌,是在形成月球的大撞击之后不久就存在了。也就是三十多亿年前差不多四十亿年前。</p>\n<p>要知道 38 亿年前能完整留下来的岩石证据都不多,在这些最早期的岩石上都能够发现生命痕迹,说明地球生命大概率还能往前追溯。</p>\n<p>当时地球的环境非常恶劣,有海洋,月球靠近地球形成上千米高的巨浪,地球转的比现在快很多,海底到处都是火山,大气层是剧毒的气体。</p>\n<p>要知道地球大撞击那是把地球整个液化了的,地球生命起源肯定是在大撞击之后,那么也就是在一个极度恶劣的环境下,差不多是在海洋形成的一瞬间就出现了原始细菌。</p>\n<p>而这种有大量火山爆发的海洋星球环境并不罕见,十光年内就有类似原始地球的行星。在太阳系内就有几个天体有冰下海洋。</p>\n<p>所以细菌是非常有可能在宇宙中普遍存在的。</p>\n<p>而且地球生命是有可能在银河系里广泛传播了的。</p>\n<p>因为地球在形成细菌后还经历过无数次大撞击,这个过程大概率有陨石携带着地球细菌逃出太阳系,在三十多亿年的时间里在银河系来回传播。</p>\n<p>目前火星已经干涸,但还有木卫二之类的太阳系天体存在地下海洋。只要地球陨石能带着细菌进到海洋下,大概率在那里也是会传播了的。不过砸开几公里深的冰壳很难,地球细菌还是前往其他恒星系的裸露海洋的概率更大。</p>\n<p>说到这里,得提到这么一种可能:</p>\n<p>地球的原始细菌有可能是外来的。因为原始细菌这些东西由于构造简单,生命力就特别顽强,很有可能附着在陨石上跨星际旅行。</p>\n<p>但就算证实了地球生命外来起源的意义也不大,因为我们发现,地球生物从零进化到人类,最难的不是从零到有,而是由简单到复杂。</p>\n<p>生命是随着海洋几乎同时形成,然而它演化到高级动物却花了差不多 40 亿年才形成了古猿。40 亿年这个时间长度即使和银河系寿命(最多 130 亿年)及宇宙寿命(135 亿年)比起来都算漫长了。</p>\n<p>这就是我们的第二点内容:<strong>高等动物是很难出现的。</strong></p>\n<p>和细菌、病毒相比,高等动物首先是不可能被动的跨星际旅行的。难以想象、至今也没发现哪种无脊椎动物可能会随着大撞击被炸到太空还能存活。高等动物必须是在不同行星上独立演化出来的,这和细菌、病毒相比那就难上很多倍了。</p>\n<p>所以,低等生物所在行星能否提供进化的环境选择压力就很重要了。</p>\n<p>你看,我之前的讲述基本上是集中在“环境Line truncated
"content": "<div><img src=\"http://pic1.zhimg.com/v2-0062921c4a4d96762a7cac4b0f0fc540_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<p><a href=\"https://www.zhihu.com/question/1909327597109777310/answer/1909619310139254241?write\">你相信造物主创造物种还是进化论?</a></p>\n<p>费米悖论提出至今已经有七十年了。</p>\n<p>你可以说七十年前的基础物理已经发展到了很高的水平,但当时对宇宙、地球和地球生命的认识实在还处于很原始的水平。</p>\n<p>当时板块漂移说还没有成为主流。</p>\n<p>当时还没用同位素法测定地球年龄。</p>\n<p>当时不知道进化论的完整链条。</p>\n<p>当时连月球是地球大撞击形成的都不知道。</p>\n<p>当时连中子星都还没发现。</p>\n<p>更别提柯伊伯带和彗星成因,以及有机物在宇宙中广泛存在的事实。</p>\n<p>彼时 dna 发现没多久,连 dna 长啥样都不知道。</p>\n<p>由于 50 年代的费米对天文、地理、生物知识的匮乏,彼时对进化论的演化图谱一片模糊,所以费米悖论就是瞎猜。</p>\n<p>结合近十几年的发现,我认为费米悖论的解释已经越来越清晰了。</p>\n<p>那就是:</p>\n<p>一、宇宙中原始生命很有可能广泛存在。碳基单细胞生物大概率在十光年内就能发现。</p>\n<p>二、碳基高等生物的发现概率非常小。从单细胞到脊椎动物,大概隔了十个千分之一概率的过滤器,也就是几千个银河系那么多的恒星,才有可能演化出脊椎动物。</p>\n<p>三、从脊椎动物演化到人类的难度,远比二要难。整个宇宙也就几百亿光年,我们地球恐怕就是孤例。即使不是孤例,由于光锥隔离,我们也不可能发现别的智能生物星球,哪怕我们掌握了光速飞船也不行。</p>\n<p>——————</p>\n<p><strong>(提醒一下各位看官,以下内容绝大部分都是基于费米悖论提出之后的科学发现。我在后半部分会回答“我们在费米悖论下如何自处”的问题)</strong></p>\n<p>第一点好解释,</p>\n<p>我们发现最原始的细菌,是在形成月球的大撞击之后不久就存在了。也就是三十多亿年前差不多四十亿年前。</p>\n<p>要知道 38 亿年前能完整留下来的岩石证据都不多,在这些最早期的岩石上都能够发现生命痕迹,说明地球生命大概率还能往前追溯。</p>\n<p>当时地球的环境非常恶劣,有海洋,月球靠近地球形成上千米高的巨浪,地球转的比现在快很多,海底到处都是火山,大气层是剧毒的气体。</p>\n<p>要知道地球大撞击那是把地球整个液化了的,地球生命起源肯定是在大撞击之后,那么也就是在一个极度恶劣的环境下,差不多是在海洋形成的一瞬间就出现了原始细菌。</p>\n<p>而这种有大量火山爆发的海洋星球环境并不罕见,十光年内就有类似原始地球的行星。在太阳系内就有几个天体有冰下海洋。</p>\n<p>所以细菌是非常有可能在宇宙中普遍存在的。</p>\n<p>而且地球生命是有可能在银河系里广泛传播了的。</p>\n<p>因为地球在形成细菌后还经历过无数次大撞击,这个过程大概率有陨石携带着地球细菌逃出太阳系,在三十多亿年的时间里在银河系来回传播。</p>\n<p>目前火星已经干涸,但还有木卫二之类的太阳系天体存在地下海洋。只要地球陨石能带着细菌进到海洋下,大概率在那里也是会传播了的。不过砸开几公里深的冰壳很难,地球细菌还是前往其他恒星系的裸露海洋的概率更大。</p>\n<p>说到这里,得提到这么一种可能:</p>\n<p>地球的原始细菌有可能是外来的。因为原始细菌这些东西由于构造简单,生命力就特别顽强,很有可能附着在陨石上跨星际旅行。</p>\n<p>但就算证实了地球生命外来起源的意义也不大,因为我们发现,地球生物从零进化到人类,最难的不是从零到有,而是由简单到复杂。</p>\n<p>生命是随着海洋几乎同时形成,然而它演化到高级动物却花了差不多 40 亿年才形成了古猿。40 亿年这个时间长度即使和银河系寿命(最多 130 亿年)及宇宙寿命(135 亿年)比起来都算漫长了。</p>\n<p>这就是我们的第二点内容:<strong>高等动物是很难出现的。</strong></p>\n<p>和细菌、病毒相比,高等动物首先是不可能被动的跨星际旅行的。难以想象、至今也没发现哪种无脊椎动物可能会随着大撞击被炸到太空还能存活。高等动物必须是在不同行星上独立演化出来的,这和细菌、病毒相比那就难上很多倍了。</p>\n<p>所以,低等生物所在行星能否提供进化的环境选择压力就很重要了。</p>\n<p>你看,我之前的讲述基本上是集中在“环境”Line truncated
"category": "",
"link": "https://daily.zhihu.com/story/9782611",
"creator": "",
"pubDate": "Thu, 17 Jul 2025 12:27:03 +0800",
"enclosure": "",
"enclosureType": "",
"image": "",
"id": "",
"language": "",
"folder": "资讯",
"feed": "知乎",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "2b6ed1913a5cd728400dd3d540ebddd9",
"highlights": []
},
{
"title": "联合国文件真的是中文版本的最薄吗?",
"description": "<div><img src=\"http://picx.zhimg.com/v2-cfe636c1da7c805ae8e3801cb69eaeca_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<p>问题只问了薄厚,那只需要统计一下文档的页数就好了。</p>\n<p>我统计了 2006 年以来的所有联合国安理会决议文件,共计 1099 份。先把结论写在前面:<strong>除去有并列最薄的文件后,绝大部分文件,中文是最薄的。</strong></p>\n<p><strong>中文</strong> 页数最少的决议有<strong> 391 份</strong>。</p>\n<p><strong>英语</strong> 页数最少的决议有 <strong>7 份</strong>。</p>\n<p><strong>西班牙语</strong> 页数最少的决议有 <strong>1 份</strong>。</p>\n<p>其余的,页数一样或者有并列最少的页码。</p>\n<figure><img src=\"http://picx.zhimg.com/v2-31470edf9b7f2f8001f6821ade9c9e6e_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p><strong>有哪些文件不是中文最薄呢?</strong></p>\n<p>决议 1803 中页数最少的语言是 英语,总页数为 7。(内容是伊朗核问题,内容大概是继续要求伊朗暂停铀浓缩等活动)</p>\n<figure><img src=\"http://picx.zhimg.com/v2-da6f15d41f6e409a3054454dd91dd493_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 1877 中页数最少的语言是 英语,总页数为 4。(不好概括,简单来说是有关卢旺达的问题)</p>\n<figure><img src=\"http://picx.zhimg.com/v2-f8aff9bd1f9b8aaac7a0762356af02bf_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 1932 中页数最少的语言是 西班牙语,总页数为 3。(这份西班牙语的文本,附件没有单起一页,成了唯一一个中英以外的选手)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-31cb2789fa80a9e6e9a62bec9504f9fb_720w.jpg?source=8673f162\" alt=\"\"><figcaption>其他语言的版本,即使上面的空白足够,附件都是新开一页</figcaption></figure>\n<figure><img src=\"http://pica.zhimg.com/v2-f228751294a9e2411b6375eb0dffd25a_720w.jpg?source=8673f162\" alt=\"\"><figcaption>但是西班牙语的却紧随其后了,不知道什么原因</figcaption></figure>\n<p>决议 1993 中页数最少的语言是 英语,总页数为 2。(关于国际法庭的)</p>\n<figure><img src=\"http://picx.zhimg.com/v2-641d2116d4fed940f1cd76f90e59b30d_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 2231 中页数最少的语言是 英语,总页数为 104。(这份是伊核问题最主要的决议之一,同时也是我统计的所有决议中最长的一篇。中文 108 页)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-0adf0f28b3ffdfd2a567f0c8992ef9cc_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 2260 中页数最少的语言是 英语,总页数为 1。(科特迪瓦问题)(中文超出四行,导致分页)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-6c73bc88964e664f98ab1e0302e1bc51_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 2268 中页数最少的语言是 英语,总页数为 2。(叙利亚问题)</p>\n<p>决议 2533 中页数最少的语言是 英语,总页数为 1。(叙利亚人道问题)</p>\n<p><strong>其余有意思的发现</strong><strong>各个语言在联合国安理会决议中的平均厚度</strong></p>\n<p>阿拉伯语:6.29 页</p>\n<p>中文:4.54 页</p>\n<p>英语:4.97 页</p>\n<p>法语:5.47 页</p>\n<p>俄语:5.99 页</p>\n<p>西班牙语:5.49 页</p>\n<p>如果页数能代表语言简略程度,那么第一名是中文,第二名是英文,之后分别是法语,西班牙语,俄语,阿拉伯语</p>\n<p><strong>领先最多的一篇决议</strong></p>\n<p>决议 2368,中文 28 页,英文 33 页,比英文少了 5 页(伊黎伊斯兰国(达伊沙)和基地组织制裁名单)</p>\n<p><strong>如何得出此结论的呢?</strong></p>\n<p>联合国的文件都在官网上放着,可以抓下来,统计一下的</p>\n<p>按理说这么久了应该有人做个爬虫把联合国各个决议爬取下来啊,居然没人做,那就我来试试吧</p>\n<p>前面有些答案提到联合国部分机构翻译的水平不一,所以就先选个大机构,安全理事会,选取近两年的各项决议看看。这些决议有些能直接调动维和部队,应该不会胡乱翻译。</p>\n<p>各项决议都在这里下载:</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-79fb68eb53bd5a4b8e86eb6b2bd99586_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>比如今年这个 2751 号决议,提供了六种语言的下载,分别为阿拉伯语,中文,英语,法语,俄语,西班牙语(阿拉伯语我不认识,不知道是不是这个)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-89361e1383a1def930610f25d9c8140d_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>下载的文件格式为 PDF,打开后大概是这样的:</p>\n<figure><img src=\"http://picx.zhimg.com/v2-095a6be065f634782afd33f1f68712ad_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<Line truncated
"content": "<div><img src=\"http://picx.zhimg.com/v2-cfe636c1da7c805ae8e3801cb69eaeca_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<p>问题只问了薄厚,那只需要统计一下文档的页数就好了。</p>\n<p>我统计了 2006 年以来的所有联合国安理会决议文件,共计 1099 份。先把结论写在前面:<strong>除去有并列最薄的文件后,绝大部分文件,中文是最薄的。</strong></p>\n<p><strong>中文</strong> 页数最少的决议有<strong> 391 份</strong>。</p>\n<p><strong>英语</strong> 页数最少的决议有 <strong>7 份</strong>。</p>\n<p><strong>西班牙语</strong> 页数最少的决议有 <strong>1 份</strong>。</p>\n<p>其余的,页数一样或者有并列最少的页码。</p>\n<figure><img src=\"http://picx.zhimg.com/v2-31470edf9b7f2f8001f6821ade9c9e6e_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p><strong>有哪些文件不是中文最薄呢?</strong></p>\n<p>决议 1803 中页数最少的语言是 英语,总页数为 7。(内容是伊朗核问题,内容大概是继续要求伊朗暂停铀浓缩等活动)</p>\n<figure><img src=\"http://picx.zhimg.com/v2-da6f15d41f6e409a3054454dd91dd493_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 1877 中页数最少的语言是 英语,总页数为 4。(不好概括,简单来说是有关卢旺达的问题)</p>\n<figure><img src=\"http://picx.zhimg.com/v2-f8aff9bd1f9b8aaac7a0762356af02bf_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 1932 中页数最少的语言是 西班牙语,总页数为 3。(这份西班牙语的文本,附件没有单起一页,成了唯一一个中英以外的选手)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-31cb2789fa80a9e6e9a62bec9504f9fb_720w.jpg?source=8673f162\" alt=\"\"><figcaption>其他语言的版本,即使上面的空白足够,附件都是新开一页</figcaption></figure>\n<figure><img src=\"http://pica.zhimg.com/v2-f228751294a9e2411b6375eb0dffd25a_720w.jpg?source=8673f162\" alt=\"\"><figcaption>但是西班牙语的却紧随其后了,不知道什么原因</figcaption></figure>\n<p>决议 1993 中页数最少的语言是 英语,总页数为 2。(关于国际法庭的)</p>\n<figure><img src=\"http://picx.zhimg.com/v2-641d2116d4fed940f1cd76f90e59b30d_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 2231 中页数最少的语言是 英语,总页数为 104。(这份是伊核问题最主要的决议之一,同时也是我统计的所有决议中最长的一篇。中文 108 页)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-0adf0f28b3ffdfd2a567f0c8992ef9cc_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 2260 中页数最少的语言是 英语,总页数为 1。(科特迪瓦问题)(中文超出四行,导致分页)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-6c73bc88964e664f98ab1e0302e1bc51_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>决议 2268 中页数最少的语言是 英语,总页数为 2。(叙利亚问题)</p>\n<p>决议 2533 中页数最少的语言是 英语,总页数为 1。(叙利亚人道问题)</p>\n<p><strong>其余有意思的发现</strong><strong>各个语言在联合国安理会决议中的平均厚度</strong></p>\n<p>阿拉伯语:6.29 页</p>\n<p>中文:4.54 页</p>\n<p>英语:4.97 页</p>\n<p>法语:5.47 页</p>\n<p>俄语:5.99 页</p>\n<p>西班牙语:5.49 页</p>\n<p>如果页数能代表语言简略程度,那么第一名是中文,第二名是英文,之后分别是法语,西班牙语,俄语,阿拉伯语</p>\n<p><strong>领先最多的一篇决议</strong></p>\n<p>决议 2368,中文 28 页,英文 33 页,比英文少了 5 页(伊黎伊斯兰国(达伊沙)和基地组织制裁名单)</p>\n<p><strong>如何得出此结论的呢?</strong></p>\n<p>联合国的文件都在官网上放着,可以抓下来,统计一下的</p>\n<p>按理说这么久了应该有人做个爬虫把联合国各个决议爬取下来啊,居然没人做,那就我来试试吧</p>\n<p>前面有些答案提到联合国部分机构翻译的水平不一,所以就先选个大机构,安全理事会,选取近两年的各项决议看看。这些决议有些能直接调动维和部队,应该不会胡乱翻译。</p>\n<p>各项决议都在这里下载:</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-79fb68eb53bd5a4b8e86eb6b2bd99586_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>比如今年这个 2751 号决议,提供了六种语言的下载,分别为阿拉伯语,中文,英语,法语,俄语,西班牙语(阿拉伯语我不认识,不知道是不是这个)</p>\n<figure><img src=\"http://pic1.zhimg.com/v2-89361e1383a1def930610f25d9c8140d_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>下载的文件格式为 PDF,打开后大概是这样的:</p>\n<figure><img src=\"http://picx.zhimg.com/v2-095a6be065f634782afd33f1f68712ad_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>Line truncated
"category": "",
"link": "https://daily.zhihu.com/story/9782621",
"creator": "",
"pubDate": "Thu, 17 Jul 2025 12:27:03 +0800",
"enclosure": "",
"enclosureType": "",
"image": "",
"id": "",
"language": "",
"folder": "资讯",
"feed": "知乎",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "192365ae8e45cd8faffe4ed124a8ed0f",
"highlights": []
},
{
"title": "哪个瞬间你突然觉得读书真有用?",
"description": "<div><img src=\"http://picx.zhimg.com/v2-acc2db7f808b9b4654fcdd0461bda0e1_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<p><strong>当我发现我看懂了《郑伯克段于鄢》,我才明白,读书是真有用啊。</strong></p>\n<p>《郑伯克段于鄢》这篇文章,有很高的历史地位和文学地位。</p>\n<figure><img src=\"http://pica.zhimg.com/v2-e7c5d918d1c5dd819aa14a87b138225a_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>中国人为什么重视历史,第一当然是因为我们历史长,历史中有足够多的故事,能给我们足够多的经验和教训,不像某些国家只有几百年的历史,历史太短,就不能全面地总结规律;第二是因为,中国的历史都是血的教训,意义重大,只不过,我们在语文课本里、历史课本里学的时候,因为没有社会阅历,看不懂。等我们步入社会,再回头来看历史,才发现<strong>中国的历史真是字字泣血,句句如山,早已经把一切都告诉我们了</strong>。</p>\n<p>扯远了,还是谈一谈《郑伯克段于鄢》中,作者到底给我们讲了一个怎样的故事吧。</p>\n<p><strong><strong>一、【原文第一段</strong>】</strong></p>\n<p><strong>初,郑武公娶于申,曰武姜,生庄公及共叔段。庄公寤生,惊姜氏,故名曰寤生,遂恶之。爱共叔段,欲立之。亟请于武公,公弗许</strong>。</p>\n<p>直译就是,姬姓国郑国的国君(名叫姬掘突,也就是)郑武公娶了(姜姓国)申国国君申侯的女儿,这个女人被称作“武姜”,生了两个儿子,一个就是后来的庄公,一个是共叔段。武姜在生庄公的时候,庄公难产,武姜受了很大的惊吓,所以给大儿子庄公起了个小名,叫寤生,而且,武姜对这个大儿子很反感。相反,武姜喜欢自己的小儿子共叔段,想立他为储君,也就是想让小儿子郑武公的接班人。多次向郑武公请示这个想法,郑武公不答应。</p>\n<p>这段话里面就有很有意思的故事。</p>\n<p><strong><strong>1. 要先讲讲郑国的来历</strong>。</strong></p>\n<p>郑武公的父亲郑桓公,是郑国的开国国君,名叫姬友(不要想歪了啊,人家真叫这个名字,姬姓,郑氏,名友,受封前称王子友),是周宣王同父异母的弟弟。郑桓公在公元前 806 年,被分封到荥阳这个地方,建立郑国。根据《史记·卷四十二·郑世家第十二》记载“宣王立二十二年,友初封于郑。封三十三岁,百姓皆便爱之。”这位姬友同志挺有政治手腕的,作为开国国君,治理国家能够得到人民的爱戴。于是呢,被自己的侄子周幽王(也就是烽火戏诸侯的主角)召回王室,担任司徒。</p>\n<p>这位司徒回到周王室,发现自己这个侄子不大行啊,宠爱褒姒,而且诸侯逐渐开始有反叛的苗头。所以,郑桓公开始给自己留后路了。具体做了两件事:第一件是把郑国向东迁到虢、郐这个地方,这两个地方的国君向这位朝中大佬、天子的亲叔叔献上了十座城池,于是郑国就在这个地方扎下根来。第二件事,郑桓公让自己的儿子姬掘突向当时的太子宜臼靠拢。后面我们就能看到郑桓公的英明之处,这位开国国君指导自己儿子玩儿政治投机是一把好手。</p>\n<p><strong><strong>2. 郑武公是一个什么样的人</strong>。</strong></p>\n<p>老国君郑桓公安排完后路,第二年,周幽王就惹出了乱子。为了赢得美人褒姒的一笑,烽火戏诸侯,并且还要废黜了申侯的女儿王后、外孙太子姬宜臼,而改立褒姒母子为王后和太子,所以申侯一气之下,起兵反叛,联合缯国、犬戎攻打周幽王。在这场叛乱中,周幽王和郑桓公一同被杀。郑桓公去世之后,儿子郑武公继位,正式登上政治舞台。这位郑武公上任干的第一件大事,就是联合秦襄公、晋文侯、卫武公拨乱反正,拥立原来的太子宜臼登基,史称“周平王”。郑武公号召郑国的国民,帮助周平王将王室向东搬迁到洛邑,从此,中国历史进入了东周时代。</p>\n<p>郑武公这么卖力给周平王干活,得到了什么好处呢?郑武公又被封为司徒,也就是继承了老父亲的官职。郑武公和自己的儿子郑庄公都被周王室封为卿士,可以说,这里郑国的权力有点“挟天子以令诸侯”的感觉了。这里就能看出提前下注的好处了吧。</p>\n<p><strong><strong>3. 郑武公为什么要娶武姜?</strong></strong></p>\n<p>申国国君也就是申侯,这个人把犬戎人引进镐京,干掉了自己的女婿周幽王和郑桓公,自己的外孙还当上了周王。因为犬戎人把周王室祸害的太厉害了,老百姓都对申侯这个人比较反感。郑武公呢,不用说Line truncated
"content": "<div><img src=\"http://picx.zhimg.com/v2-acc2db7f808b9b4654fcdd0461bda0e1_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<p><strong>当我发现我看懂了《郑伯克段于鄢》,我才明白,读书是真有用啊。</strong></p>\n<p>《郑伯克段于鄢》这篇文章,有很高的历史地位和文学地位。</p>\n<figure><img src=\"http://pica.zhimg.com/v2-e7c5d918d1c5dd819aa14a87b138225a_720w.jpg?source=8673f162\" alt=\"\"></figure>\n<p>中国人为什么重视历史,第一当然是因为我们历史长,历史中有足够多的故事,能给我们足够多的经验和教训,不像某些国家只有几百年的历史,历史太短,就不能全面地总结规律;第二是因为,中国的历史都是血的教训,意义重大,只不过,我们在语文课本里、历史课本里学的时候,因为没有社会阅历,看不懂。等我们步入社会,再回头来看历史,才发现<strong>中国的历史真是字字泣血,句句如山,早已经把一切都告诉我们了</strong>。</p>\n<p>扯远了,还是谈一谈《郑伯克段于鄢》中,作者到底给我们讲了一个怎样的故事吧。</p>\n<p><strong><strong>一、【原文第一段</strong>】</strong></p>\n<p><strong>初,郑武公娶于申,曰武姜,生庄公及共叔段。庄公寤生,惊姜氏,故名曰寤生,遂恶之。爱共叔段,欲立之。亟请于武公,公弗许</strong>。</p>\n<p>直译就是,姬姓国郑国的国君(名叫姬掘突,也就是)郑武公娶了(姜姓国)申国国君申侯的女儿,这个女人被称作“武姜”,生了两个儿子,一个就是后来的庄公,一个是共叔段。武姜在生庄公的时候,庄公难产,武姜受了很大的惊吓,所以给大儿子庄公起了个小名,叫寤生,而且,武姜对这个大儿子很反感。相反,武姜喜欢自己的小儿子共叔段,想立他为储君,也就是想让小儿子郑武公的接班人。多次向郑武公请示这个想法,郑武公不答应。</p>\n<p>这段话里面就有很有意思的故事。</p>\n<p><strong><strong>1. 要先讲讲郑国的来历</strong>。</strong></p>\n<p>郑武公的父亲郑桓公,是郑国的开国国君,名叫姬友(不要想歪了啊,人家真叫这个名字,姬姓,郑氏,名友,受封前称王子友),是周宣王同父异母的弟弟。郑桓公在公元前 806 年,被分封到荥阳这个地方,建立郑国。根据《史记·卷四十二·郑世家第十二》记载“宣王立二十二年,友初封于郑。封三十三岁,百姓皆便爱之。”这位姬友同志挺有政治手腕的,作为开国国君,治理国家能够得到人民的爱戴。于是呢,被自己的侄子周幽王(也就是烽火戏诸侯的主角)召回王室,担任司徒。</p>\n<p>这位司徒回到周王室,发现自己这个侄子不大行啊,宠爱褒姒,而且诸侯逐渐开始有反叛的苗头。所以,郑桓公开始给自己留后路了。具体做了两件事:第一件是把郑国向东迁到虢、郐这个地方,这两个地方的国君向这位朝中大佬、天子的亲叔叔献上了十座城池,于是郑国就在这个地方扎下根来。第二件事,郑桓公让自己的儿子姬掘突向当时的太子宜臼靠拢。后面我们就能看到郑桓公的英明之处,这位开国国君指导自己儿子玩儿政治投机是一把好手。</p>\n<p><strong><strong>2. 郑武公是一个什么样的人</strong>。</strong></p>\n<p>老国君郑桓公安排完后路,第二年,周幽王就惹出了乱子。为了赢得美人褒姒的一笑,烽火戏诸侯,并且还要废黜了申侯的女儿王后、外孙太子姬宜臼,而改立褒姒母子为王后和太子,所以申侯一气之下,起兵反叛,联合缯国、犬戎攻打周幽王。在这场叛乱中,周幽王和郑桓公一同被杀。郑桓公去世之后,儿子郑武公继位,正式登上政治舞台。这位郑武公上任干的第一件大事,就是联合秦襄公、晋文侯、卫武公拨乱反正,拥立原来的太子宜臼登基,史称“周平王”。郑武公号召郑国的国民,帮助周平王将王室向东搬迁到洛邑,从此,中国历史进入了东周时代。</p>\n<p>郑武公这么卖力给周平王干活,得到了什么好处呢?郑武公又被封为司徒,也就是继承了老父亲的官职。郑武公和自己的儿子郑庄公都被周王室封为卿士,可以说,这里郑国的权力有点“挟天子以令诸侯”的感觉了。这里就能看出提前下注的好处了吧。</p>\n<p><strong><strong>3. 郑武公为什么要娶武姜?</strong></strong></p>\n<p>申国国君也就是申侯,这个人把犬戎人引进镐京,干掉了自己的女婿周幽王和郑桓公,自己的外孙还当上了周王。因为犬戎人把周王室祸害的太厉害了,老百姓都对申侯这个人比较反感。郑武公呢,不用说了Line truncated
"category": "",
"link": "https://daily.zhihu.com/story/9782626",
"creator": "",
"pubDate": "Thu, 17 Jul 2025 12:27:03 +0800",
"enclosure": "",
"enclosureType": "",
"image": "",
"id": "",
"language": "",
"folder": "资讯",
"feed": "知乎",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "7abcb308697f7f873d2ea758d4a0aed0",
"highlights": []
},
{
"title": "瞎扯 · 如何正确地吐槽",
"description": "<div><img src=\"http://pic1.zhimg.com/v2-70a7f297d326635138803cc6b8263426_fhd.jpg?source=8673f162\" alt=\"头图\"/><div><div>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/1898725322091901505/answer/1900125387138271058\" target=\"_blank\">如果世界上其他国家全都将毒品合法化了,我们应该怎么办?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/ac5788b6ad84862e6438c942679cc97f\" target=\"_blank\" rel=\"noopener noreferrer\">@小队长</a> :你这话说的,就算全世界国家都提倡吃屎健康,老子也不会吃。</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/593837617/answer/46126364818\" target=\"_blank\">如何看待「广东人一年吃掉8亿只鸡」?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/75d1c582c97efd2c52953ddd28c724f3\" target=\"_blank\" rel=\"noopener noreferrer\">@定序王子</a> :很明显的造谣,编都不会编,非常低级的那种。 8 亿只是什么概念? 2023 年 ,广东常住人口达 1.27 亿人,算下来平均一人一年只吃 6 只鸡。 改成 300 亿就比较可信了。</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/630866429/answer/76838700112\" target=\"_blank\">因为哪句话,你买了现在的宠物?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/7b732c7797c5c7fc5544881c99be127e\" target=\"_blank\" rel=\"noopener noreferrer\">@宠物王大拿</a> :被公司辞退了!! 越想越气!! 然后跑到公司楼下把公司里的小流浪猫打劫走了!!!</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/634781286/answer/3472458100\" target=\"_blank\">有哪些童言童行惊艳到你?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/05b4404077324cf1ed57feb7257362ad\" target=\"_blank\" rel=\"noopener noreferrer\">@Anjicn</a> :儿子第一次喝可乐,说:就像蜘蛛在舌头上织网。</div>\n</blockquote>\n<div>\n<div>Q:<a href=\"https://www.zhihu.com/question/299894978/answer/1892498807763230785\" target=\"_blank\">听说月球在以每年四厘米的距离离开地球,这是不是真的?</a></div>\n</div>\n<blockquote>\n<div><a href=\"https://www.zhihu.com/people/2f85afc76571c5158263a286b9b44df5\" target=\"_blank\" rel=\"noopener noreferrer\">@摸摸狗头</a> :有个大胆的想法:每年把珠穆朗玛峰加高 4cm ,是不是就相当于月球就没离开?</div>\n</blockquote>\n</div>\n</div>\n\n\n</div>\n\n\n</div>\n</div><br><hr><div>获取更多RSS:<br><a href=\"https://feedx.net\" style=\"color:orange\" target=\"_blank\">https://feedx.net</a> <br><a href=\"https://feedx.site\" style=\"color:orange\" target=\"_blank\">https://feedx.site</a><br></div>",
@@ -3716,28 +3826,6 @@
"hash": "99b651d543cad1d20b6bf4c9c9210913",
"highlights": []
},
{
"title": "进攻性叫牌与防守性叫牌——波兹南的牌局",
"description": "桥牌其实也一样,只不过桥牌的“进攻”和“防守”,有多重的意义,除了简单的在桥牌打法中表现为做庄与防守外,还有在叫牌中也分为自己抢过来打的“进攻性叫牌”和放给对方打或者叫得较低的“防守性叫牌”。",
"content": "<div class=\"rich_media_content js_underline_content autoTypeSetting24psection\" id=\"js_content\">\n <p data-mpa-powered-by=\"yiban.io\" style=\"margin-bottom: 0px;\">\n <span leaf=\"\">\n <br/>\n </span>\n </p>\n <section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"margin-bottom: 0px;\">\n <section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n <section data-mid=\"\" data-mpa-category=\"模板\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding-top: 20px;\">\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding: 2px 13px 2px 15px;background: rgb(182, 38, 33);border-radius: 30px;\">\n <section>\n <span data-mid=\"\" style='margin: 0px 10px;font-family: PingFangSC-Semibold, \"PingFang SC\";font-weight: 600;color: rgb(255, 255, 255);line-height: 23px;font-size: 10px;'>\n <span leaf=\"\">\n 新朋友\n </span>\n </span>\n <span leaf=\"\">\n <img class=\"rich_pages wxw-img\" data-ratio=\"3.7058823529411766\" data-type=\"png\" data-w=\"34\" src=\"https://mmbiz.qpic.cn/sz_mmbiz_png/LkUAoUS349Nb6zal9ibQfjP9DggnB8UTTexBORPMIuN56emQJcMWZTh0oRf8WntPkLEMxzLDNXNtSibgPUhwgvJA/640?wx_fmt=png\" style=\"margin-right: 4px;width: 1080px;height: 32px;\"/>\n </span>\n </section>\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin: 0px 4px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 点击\n </span>\n <span style=\"color: rgb(255, 251, 0);\">\n <span leaf=\"\">\n 标兵桥牌\n </span>\n </span>\n </span>\n </p>\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 关注微信\n </span>\n </span>\n </p>\n </section>\n <section>\n <span style='margin: 0px 10px;font-family: PingFangSC-Semibold, \"PingFang SC\";font-weight: 600;color: rgb(255, 255, 255);line-height: 23px;font-size: 10px;'>\n <span leaf=\"\">\n 老朋友\n </span>\n </span>\n </section>\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin: 0px 4px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 点击\n </span>\n <span style=\"color: rgb(255, 251, 0);\">\n <span leaf=\"\">\n 右上角\n </span>\n </span>\n </span>\n </p>\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 分享本文\n </span>\n </span>\n </p>\n </section>\n <section>\n <span leaf=\"\">\n <img class=\"rich_pages wxw-img\" data-ratio=\"1.169811320754717\" data-type=\"png\" data-w=\"106\" src=\"https://mmbiz.qpic.cn/mmbiz_png/pFSBeRD8FmKMgML4Eg0sKuZEt92g3fibUT3icqCTLia0Ux0rKvC1rmiaqpg9icLqHcoFE86mwiayvicHPfRliav5ysFJAg/640?wx_fmt=png\" style=\"width: 1080px;height: 31px;\"/>\n </span>\n </section>\n </section>\n </section>\n <section data-mid=\"\" data-mpa-category=\"模板\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding-top: 20px;\">\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding: 2px 13px 2px 15px;background: rgb(182, 38, 33);border-radius: 30px;\">\n <span leaf=\"\">\n <br/>\n </span>\n </section>\n </section>\n </section>\n </section>\n <p style=\"text-align: center;\">\n <span leaf=\"\">\n <br/>\n </span>\n </p>\n <p data-first-child=\"\" data-pid=\"0spHDmD9\" data-pm-slice=\"0 0 []\" style='margin: 0px 0px 1.4em;color: rgb(25, 27, 31);font-family: -apple-system, \"system-ui\", \"Helvetica Neue\", \"PingFang SC\", \"Microsoft YaHei\", \"Source Han Sans SC\", \"Noto Sans CJK SC\", \"WenQuanYi Micro Hei\", sans-serif;font-size: medium;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;backgroundLine truncated
"category": "",
"link": "https://mp.weixin.qq.com/s/MlG5afey3PhW8jkCKRLwNA",
"creator": "标兵桥牌",
"pubDate": "Wed, 02 Jul 2025 00:00:00 ",
"enclosure": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/iauJ3TcMNYDQoJpic0ibsIxaF7GAQVwVTT6eGyFJ2u6u8uRPPuRgRemxz9bYpyyQ9DDobFOOPU8ndsqr7ibKoF7EOQ/0?wx_fmt=jpeg",
"enclosureType": "image/jpeg",
"image": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/iauJ3TcMNYDQoJpic0ibsIxaF7GAQVwVTT6eGyFJ2u6u8uRPPuRgRemxz9bYpyyQ9DDobFOOPU8ndsqr7ibKoF7EOQ/0?wx_fmt=jpeg",
"id": "2247512660_1",
"language": "",
"folder": "桥牌",
"feed": "标兵1桥牌",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "8cf9f3254a25c91aade7bc229bc8c13b",
"highlights": []
},
{
"title": "美国国家队名单出炉",
"description": "5月26日当地时间,美国国家队选拔赛老年团体赛2025年6月1日,美国桥牌协会(USBF)公布了参加2025年世界桥牌团体锦标赛的8支美国队参赛名单。由于美国选拔赛允许一名选手报名多项比赛,因此在选拔赛全部结束后,各个美国国家队进行了调整。",
@@ -3759,28 +3847,6 @@
"tags": [],
"hash": "904cfda1cd5a396451f15015355b3b1e",
"highlights": []
},
{
"title": "亚太赛每日一牌回顾:有趣的四红心",
"description": "亚太锦标赛结束了,中国男队夺得冠军,在比赛期间所写的“每日一牌”,比赛期间并没有发出,从今天开始,给桥友们提供迟到的每日一牌。",
"content": "<div class=\"rich_media_content js_underline_content autoTypeSetting24psection\" id=\"js_content\">\n <p data-mpa-powered-by=\"yiban.io\" style=\"margin-bottom: 0px;\">\n <span leaf=\"\">\n <br/>\n </span>\n </p>\n <section data-mpa-template=\"t\" mpa-from-tpl=\"t\" style=\"margin-bottom: 0px;\">\n <section data-mpa-template=\"t\" mpa-from-tpl=\"t\">\n <section data-mid=\"\" data-mpa-category=\"模板\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding-top: 20px;\">\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding: 2px 13px 2px 15px;background: rgb(182, 38, 33);border-radius: 30px;\">\n <span data-mid=\"\" style='margin: 0px 10px;font-family: PingFangSC-Semibold, \"PingFang SC\";font-weight: 600;color: rgb(255, 255, 255);line-height: 23px;font-size: 10px;'>\n <span leaf=\"\">\n 新朋友\n </span>\n </span>\n <span leaf=\"\">\n <img class=\"rich_pages wxw-img\" data-ratio=\"3.7058823529411766\" data-type=\"png\" data-w=\"34\" src=\"https://mmbiz.qpic.cn/sz_mmbiz_png/LkUAoUS349Nb6zal9ibQfjP9DggnB8UTTexBORPMIuN56emQJcMWZTh0oRf8WntPkLEMxzLDNXNtSibgPUhwgvJA/640?wx_fmt=png\" style=\"margin-right: 4px;width: 1080px;height: 32px;\"/>\n </span>\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin: 0px 4px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 点击\n </span>\n <span style=\"color: rgb(255, 251, 0);\">\n <span leaf=\"\">\n 标兵桥牌\n </span>\n </span>\n </span>\n </p>\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 关注微信\n </span>\n </span>\n </p>\n </section>\n <span style='margin: 0px 10px;font-family: PingFangSC-Semibold, \"PingFang SC\";font-weight: 600;color: rgb(255, 255, 255);line-height: 23px;font-size: 10px;'>\n <span leaf=\"\">\n 老朋友\n </span>\n </span>\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"margin: 0px 4px;display: flex;justify-content: flex-start;align-items: center;flex-direction: column;\">\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 点击\n </span>\n <span style=\"color: rgb(255, 251, 0);\">\n <span leaf=\"\">\n 右上角\n </span>\n </span>\n </span>\n </p>\n <p data-mid=\"\" style='font-size: 13px;font-family: PingFangSC-Regular, \"PingFang SC\";font-weight: 400;color: rgb(255, 255, 255);line-height: 19px;'>\n <span style=\"font-size: 10px;\">\n <span leaf=\"\">\n 分享本文\n </span>\n </span>\n </p>\n </section>\n <span leaf=\"\">\n <img class=\"rich_pages wxw-img\" data-ratio=\"1.169811320754717\" data-type=\"png\" data-w=\"106\" src=\"https://mmbiz.qpic.cn/mmbiz_png/pFSBeRD8FmKMgML4Eg0sKuZEt92g3fibUT3icqCTLia0Ux0rKvC1rmiaqpg9icLqHcoFE86mwiayvicHPfRliav5ysFJAg/640?wx_fmt=png\" style=\"width: 1080px;height: 31px;\"/>\n </span>\n </section>\n </section>\n <section data-mid=\"\" data-mpa-category=\"模板\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding-top: 20px;\">\n <section data-mid=\"\" mpa-from-tpl=\"t\" style=\"display: flex;justify-content: center;align-items: center;padding: 2px 13px 2px 15px;background: rgb(182, 38, 33);border-radius: 30px;\">\n <span leaf=\"\">\n <br/>\n </span>\n </section>\n </section>\n </section>\n </section>\n <p data-first-child=\"\" data-pid=\"-mmwb5c0\" style='margin-bottom: 1.4em;color: rgb(18, 18, 18);font-family: -apple-system, \"system-ui\", \"Helvetica Neue\", \"PingFang SC\", \"Microsoft YaHei\", \"Source Han Sans SC\", \"Noto Sans CJK SC\", \"WenQuanYi Micro Hei\", sans-serif;font-size: medium;letter-spacing: normal;text-align: start;text-wrap: wrap;background-color: rgb(255, 255, 255);'>\n <span leaf=\"\">\n <br/>\n </span>\n </p>\n <p data-first-child=\"\" data-pid=\"wXndivRE\" data-pm-slice=\"0 0 []\" style='margin: 0px 0px 1.4em;color: rgb(25, 27, 31);font-family: -apple-system, \"system-ui\", \"Helvetica Neue\", \"PingFang SC\", \"Microsoft YaHei\", \"Source Han Sans SC\", \"Noto Sans CJK SC\", \"WenQuanYi Micro Hei\", sans-serif;font-size: medium;font-style: normal;font-vLine truncated
"category": "",
"link": "https://mp.weixin.qq.com/s/fs-IXTIprP-cFsg1E2bafQ",
"creator": "标兵桥牌",
"pubDate": "Thu, 29 May 2025 00:00:00 ",
"enclosure": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/iauJ3TcMNYDTH0sTiajz6mMGDUjHnftbibdib7FEvMaiahjxG8C2mKODhpuRaUtBEnLTyDUl3T8iciaqCAYSUSymeB1ZA/0?wx_fmt=jpeg",
"enclosureType": "image/jpeg",
"image": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/iauJ3TcMNYDTH0sTiajz6mMGDUjHnftbibdib7FEvMaiahjxG8C2mKODhpuRaUtBEnLTyDUl3T8iciaqCAYSUSymeB1ZA/0?wx_fmt=jpeg",
"id": "2247512565_1",
"language": "",
"folder": "桥牌",
"feed": "标兵1桥牌",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "b2ba7615ea76a0fee1a3212e0c63f7bd",
"highlights": []
}
],
"folder": "双语",
@@ -4323,28 +4389,6 @@
"hash": "b2ba7615ea76a0fee1a3212e0c63f7bd",
"highlights": []
},
{
"title": "自学python必看的书籍《Python编程:从入门到实践》",
"description": "内容简介本书是一本针对所有层次的Python 读者而作的Python 入门书。",
"content": "<div class=\"rich_media_content js_underline_content autoTypeSetting24psection\" id=\"js_content\">\n <h1 data-pm-slice=\"0 0 []\" style=\"-webkit-tap-highlight-color: transparent;margin: 0px 0px 14px;padding: 0px;outline: 0px;font-weight: 500;font-size: 22px;line-height: 1.4;user-select: text;\">\n <span leaf=\"\">\n <br/>\n </span>\n </h1>\n <h1 data-pm-slice=\"0 0 []\" style='-webkit-tap-highlight-color: transparent;margin: 0px 0px 14px;padding: 0px;outline: 0px;font-weight: 500;font-size: 22px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;color: rgba(0, 0, 0, 0.9);font-family: \"PingFang SC\", system-ui, -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", \"Hiragino Sans GB\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", Arial, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: 0.544px;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;background-color: rgb(255, 255, 255);line-height: 1.4;user-select: text;visibility: visible;'>\n <span leaf=\"\" style=\"-webkit-tap-highlight-color: transparent;margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible;\">\n <img alt=\"图片\" class=\"rich_pages wxw-img\" data-imgfileid=\"100021727\" data-ratio=\"1.1509769094138544\" data-type=\"jpeg\" data-w=\"563\" src=\"https://mmbiz.qpic.cn/mmbiz_jpg/A7icgZ2Ooga33nVvIGpciafkyrKKNJtiboVMmuFou5Z88JP2cWIJP9ZibdRN9QhLW2lU7DOmndc7mpHQ9DAwYPF39g/640?wx_fmt=other&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1&amp;tp=webp\" style=\"-webkit-tap-highlight-color: transparent;margin: 0px auto;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;vertical-align: bottom;height: auto !important;display: block;cursor: zoom-in;background-color: transparent;animation: 0.5s ease-in 0s 1 normal none running fxRichTextFadeIn;visibility: visible !important;width: 1080px !important;\" width=\"563\"/>\n </span>\n </h1>\n <p style='-webkit-tap-highlight-color: transparent;margin: 1.4em 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;clear: both;min-height: 1em;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: 0.544px;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;background-color: rgb(255, 255, 255);color: rgb(18, 18, 18);font-family: -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Microsoft YaHei\", \"Source Han Sans SC\", \"Noto Sans CJK SC\", \"WenQuanYi Micro Hei\", sans-serif;font-size: medium;text-align: start;visibility: visible;'>\n <span style=\"-webkit-tap-highlight-color: transparent;margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;font-weight: 600;visibility: visible;\">\n <span leaf=\"\" style=\"-webkit-tap-highlight-color: transparent;margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible;\">\n 内容简介\n </span>\n </span>\n </p>\n <p style='-webkit-tap-highlight-color: transparent;margin: 1.4em 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;clear: both;min-height: 1em;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: 0.544px;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;background-color: rgb(255, 255, 255);color: rgb(18, 18, 18);font-family: -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", \"PingFang SC\", \"Microsoft YaHei\", \"Source Han Sans SC\", \"Noto Sans CJK SC\", \"WenQuanYi Micro Hei\", sans-serif;font-size: medium;text-align: start;visibility: visible;'>\n <span leaf=\"\" style=\"-webkit-tap-highlight-color: transparent;margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible;\">\n 本书是一本针对所有层次的Python 读者而作的Python 入门书。全书分两部分:\n </span>\n </p>\n <p style='-webkit-tap-highlight-color: transparent;margin: 1.4em 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word Line truncated
"category": "",
"link": "https://mp.weixin.qq.com/s/c_5LNvw3SAjwBdMs9TRztQ",
"creator": "python开发工程师",
"pubDate": "Sat, 05 Jul 2025 06:00:00 ",
"enclosure": "https://mmbiz.qpic.cn/mmbiz_jpg/Nc53lZXDjZxW21P2Wlme8ePMGec1BlUXOFYxYplAyK6CLl2x2bH4d2ZWosUWkQlGPFHSr7MpMNoggFfhVnvzag/0?wx_fmt=jpeg",
"enclosureType": "image/jpeg",
"image": "https://mmbiz.qpic.cn/mmbiz_jpg/Nc53lZXDjZxW21P2Wlme8ePMGec1BlUXOFYxYplAyK6CLl2x2bH4d2ZWosUWkQlGPFHSr7MpMNoggFfhVnvzag/0?wx_fmt=jpeg",
"id": "2247511294_2",
"language": "",
"folder": "IT技术",
"feed": "python开发工程师",
"read": false,
"favorite": false,
"created": false,
"tags": [],
"hash": "7dcfc8e3ce8ac73a506470cf4f75b40b",
"highlights": []
},
{
"title": "自学python必看的书籍《Python编程:从入门到实践》PDF版拿走不谢",
"description": "内容简介本书是一本针对所有层次的Python 读者而作的Python 入门书。",
+27 -25
View File
@@ -8,17 +8,7 @@
"type": "tabs",
"children": [
{
"id": "cc8df56bd1c94fa9",
"type": "leaf",
"state": {
"type": "calibre-view",
"state": {},
"icon": "lucide-file",
"title": "CALIBRE"
}
},
{
"id": "693c9255fec93d51",
"id": "29cac36b77315b74",
"type": "leaf",
"state": {
"type": "markdown",
@@ -31,8 +21,7 @@
"title": "2025-07-17"
}
}
],
"currentTab": 1
]
}
],
"direction": "vertical"
@@ -95,8 +84,19 @@
"icon": "clock",
"title": "Recent Files"
}
},
{
"id": "5b20dc67eb1dc6ae",
"type": "leaf",
"state": {
"type": "file-tree-view",
"state": {},
"icon": "sheets-in-box",
"title": "File Tree"
}
}
]
],
"currentTab": 4
},
{
"id": "94be401a6e7f4b2e",
@@ -310,25 +310,30 @@
"memos-ai-sync:Sync Memos": false,
"obsidian-wordpress:发布到 WordPress": false,
"ob-smm:create a smm mindmap": true,
"periodic-notes:Open today": false
"periodic-notes:Open today": false,
"diary-ics:日记日历订阅": false,
"cubox-sync:Cubox": false,
"file-tree-alternative:File Tree Alternative Plugin": false
}
},
"active": "693c9255fec93d51",
"active": "29cac36b77315b74",
"lastOpenFiles": [
"50-Memos/2025/weekly/第28周总结.md",
"50-Memos/2025/weekly/第29周总结.md",
"03-学习笔记/微信机器人.md",
"03-学习笔记/微信公众号RSS.md",
"03-学习笔记/OB插件.md",
"03-学习笔记/Memos.md",
"03-学习笔记/Calibre电子书平台.md",
"01-工作日记/2025-07-17.md",
"50-Memos/2025/07/resources/kyhNGvh5iFc9eYXy2YuYWx_FDF8C04E-22D3-4D4C-9ED0-F52A326B9801.jpg",
"50-Memos/2025/07/resources/6cb2VU3rkihszQLFDerqA2_2_20250712120414.png",
"50-Memos/2025/weekly/第28周总结.md",
"50-Memos/2025/weekly/第29周总结.md",
"00-待办计划/2025-07 待办事宜.md",
"02-技术评测/笔记软件评测.md",
"10-WebClipper/开源/AList的开源替代:OpenList.md",
"10-WebClipper/知识体系/(74 封私信) Obsidian知识管理体系搭建实战指南 - 知乎.md",
"10-WebClipper/知识体系/让笔记流动起来——Obsidian重塑知识体系 - 少数派.md",
"10-WebClipper/知识体系/Obsidian 知识体系搭建:入门篇 (一)_牛客网.md",
"03-学习笔记/Memos.md",
"03-学习笔记/OB插件.md",
"03-学习笔记/微信机器人.md",
"03-学习笔记/微信公众号RSS.md",
"04-博客发布/041-人文历史/使用Obsidian打造个人图书馆! -转自知乎.md",
"08-Inbox/2025-07-04.md",
"20-我的收藏夹/21-浏览器收藏/智能家居/【新提醒】『HomeAssistant』综合讨论区 - 『瀚思彼岸』» 智能家居技术论坛 - Powered by Discuz!.md",
@@ -340,7 +345,6 @@
"60-DevonThink/一个测试.md",
"02-技术评测/关于RSS.md",
"80-日记归档/README-归档.md",
"01-工作日记/2025-07-16.md",
"10-WebClipper/健康休闲",
"10-WebClipper/桥牌",
"10-WebClipper/人文历史",
@@ -356,8 +360,6 @@
"80-笔记归档/82-待办计划/2025",
"80-笔记归档/81-工作日记/202508",
"08-Inbox/assets/68691ee74ca1b.png",
"50-Memos/2025/07/resources/kyhNGvh5iFc9eYXy2YuYWx_FDF8C04E-22D3-4D4C-9ED0-F52A326B9801.jpg",
"50-Memos/2025/07/resources/6cb2VU3rkihszQLFDerqA2_2_20250712120414.png",
"04-博客发布/0743-Bridge/assets/640.jpeg",
"04-博客发布/0743-Bridge/assets/640 2.jpeg",
"04-博客发布/0743-Bridge/assets/642 1.jpeg",
+7 -2
View File
@@ -6,7 +6,9 @@ tags:
rating: ⭐️
excerpt:
createDate: <% tp.file.creation_date("YYYY-MM-DD HH:mm")%>: 星期四, 七月 17日 2025, 9:51:08 上午
date modified: 星期四, 七月 17日 2025, 3:29:05 下午
date modified: 星期四, 七月 17日 2025, 4:02:08 下午
createDate: <% tp.file.creation_date("YYYY-MM-DD HH:mm")%>: 星期四, 七月 17日 2025, 9:51:08 上午
createDate: <% tp.file.creation_date("YYYY-MM-DD HH:mm")%>: 星期四, 七月 17日 2025, 9:51:08 上午
createDate: <% tp.file.creation_date("YYYY-MM-DD HH:mm")%>: 星期四, 七月 17日 2025, 9:51:08 上午
createDate: <% tp.file.creation_date("YYYY-MM-DD HH:mm")%>: 星期四, 七月 17日 2025, 9:51:08 上午
---
@@ -18,7 +20,10 @@ createDate: <% tp.file.creation_date("YYYY-MM-DD HH:mm")%>: 星期四, 七月 17
## 2 Tracking
- 整理calibre书库,进行一个合理的分类
-
- podcast插件:Issues#119 没人搭理我
https://github.com/chhoumann/PodNotes/issues/119
- 学习下OB同步
https://help.obsidian.md/sync-notes
## 3 Tips
- 已确认Obsidian互动肯定存在问题,有可能是文件或者目录名是汉字