@quartz-community/search 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../node_modules/@quartz-community/utils/src/lang.ts","../src/i18n/locales/en-US.ts","../src/i18n/locales/ar-SA.ts","../src/i18n/locales/ca-ES.ts","../src/i18n/locales/cs-CZ.ts","../src/i18n/locales/de-DE.ts","../src/i18n/locales/en-GB.ts","../src/i18n/locales/es-ES.ts","../src/i18n/locales/fa-IR.ts","../src/i18n/locales/fi-FI.ts","../src/i18n/locales/fr-FR.ts","../src/i18n/locales/he-IL.ts","../src/i18n/locales/hu-HU.ts","../src/i18n/locales/id-ID.ts","../src/i18n/locales/it-IT.ts","../src/i18n/locales/ja-JP.ts","../src/i18n/locales/kk-KZ.ts","../src/i18n/locales/ko-KR.ts","../src/i18n/locales/lt-LT.ts","../src/i18n/locales/nb-NO.ts","../src/i18n/locales/nl-NL.ts","../src/i18n/locales/pl-PL.ts","../src/i18n/locales/pt-BR.ts","../src/i18n/locales/ro-RO.ts","../src/i18n/locales/ru-RU.ts","../src/i18n/locales/th-TH.ts","../src/i18n/locales/tr-TR.ts","../src/i18n/locales/uk-UA.ts","../src/i18n/locales/vi-VN.ts","../src/i18n/locales/zh-CN.ts","../src/i18n/locales/zh-TW.ts","../src/i18n/index.ts","../src/components/styles/search.scss","../src/components/scripts/search.inline.ts","../node_modules/preact/src/constants.js","../node_modules/preact/src/options.js","../node_modules/preact/src/diff/catch-error.js","../node_modules/preact/src/component.js","../node_modules/preact/src/diff/props.js","../node_modules/preact/src/create-context.js","../node_modules/preact/jsx-runtime/src/index.js","../src/components/Search.tsx"],"names":["options","__e","error","vnode","oldVNode","errorInfo","component","ctor","handled","__","__c","constructor","getDerivedStateFromError","setState","__d","componentDidCatch","__E","e","Promise","prototype","then","bind","resolve","setTimeout","Math","random","toString","vnodeId","createVNode","type","props","key","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WAAA,EAAa;AAAA;AAAA,SACf;AAAA,wBACAA,EAAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,KAAA,EAAM,eAAA;AAAA,YACN,gBAAc,IAAA,CAAK,aAAA;AAAA,YACnB,qBAAA,EAAqB,IAAA,CAAK,SAAA,CAAU,IAAA,CAAK,aAAa;AAAA;AAAA;AACvD,OAAA,EACH,CAAA,EACF;AAAA,KAAA,EACF,CAAA;AAAA,EAEJ,CAAA;AAEA,EAAA,MAAA,CAAO,cAAA,GAAiB,qBAAA;AACxB,EAAA,MAAA,CAAO,GAAA,GAAM,cAAA;AAEb,EAAA,OAAO,MAAA;AACT,CAAA","file":"index.js","sourcesContent":["export function capitalize(s: string): string {\n return s.substring(0, 1).toUpperCase() + s.substring(1);\n}\n\nexport function classNames(...classes: (string | undefined | null | false)[]): string {\n return classes.filter(Boolean).join(\" \");\n}\n","export default {\n components: {\n search: {\n title: \"Search\",\n searchBarPlaceholder: \"Search for something...\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"بحث\",\n searchBarPlaceholder: \"ابحث عن شيء ما\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Cercar\",\n searchBarPlaceholder: \"Cerca alguna cosa\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Hledat\",\n searchBarPlaceholder: \"Hledejte něco\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Suche\",\n searchBarPlaceholder: \"Suche nach etwas...\",\n noResults: \"Keine Ergebnisse.\",\n noResultsHint: \"Versuchen Sie einen anderen Suchbegriff?\",\n tagFilterHint: \"Nach Tag filtern\",\n noTagsFound: \"Keine passenden Tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Search\",\n searchBarPlaceholder: \"Search for something\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Buscar\",\n searchBarPlaceholder: \"Buscar algo...\",\n noResults: \"Sin resultados.\",\n noResultsHint: \"\\u00bfIntentar con otro t\\u00e9rmino de b\\u00fasqueda?\",\n tagFilterHint: \"Filtrar por etiqueta\",\n noTagsFound: \"No se encontraron etiquetas\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"جستجو\",\n searchBarPlaceholder: \"مطلبی را جستجو کنید\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Haku\",\n searchBarPlaceholder: \"Hae jotain\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Recherche\",\n searchBarPlaceholder: \"Rechercher quelque chose...\",\n noResults: \"Aucun r\\u00e9sultat.\",\n noResultsHint: \"Essayez un autre terme de recherche\\u00a0?\",\n tagFilterHint: \"Filtrer par tag\",\n noTagsFound: \"Aucun tag correspondant\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"חיפוש\",\n searchBarPlaceholder: \"חפשו משהו\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Keresés\",\n searchBarPlaceholder: \"Keress valamire\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Cari\",\n searchBarPlaceholder: \"Cari sesuatu\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Cerca\",\n searchBarPlaceholder: \"Cerca qualcosa\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"\\u691c\\u7d22\",\n searchBarPlaceholder: \"\\u4f55\\u304b\\u3092\\u691c\\u7d22...\",\n noResults: \"\\u7d50\\u679c\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\",\n noResultsHint:\n \"\\u5225\\u306e\\u691c\\u7d22\\u8a9e\\u3092\\u304a\\u8a66\\u3057\\u304f\\u3060\\u3055\\u3044\\u3002\",\n tagFilterHint: \"\\u30bf\\u30b0\\u3067\\u30d5\\u30a3\\u30eb\\u30bf\\u30fc\",\n noTagsFound: \"\\u4e00\\u81f4\\u3059\\u308b\\u30bf\\u30b0\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Іздеу\",\n searchBarPlaceholder: \"Бірдеңе іздеу\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"검색\",\n searchBarPlaceholder: \"검색어를 입력하세요\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Paieška\",\n searchBarPlaceholder: \"Ieškoti\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Søk\",\n searchBarPlaceholder: \"Søk etter noe\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Zoeken\",\n searchBarPlaceholder: \"Doorzoek de website\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Szukaj\",\n searchBarPlaceholder: \"Wpisz frazę wyszukiwania\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Pesquisar\",\n searchBarPlaceholder: \"Pesquisar por algo\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Căutare\",\n searchBarPlaceholder: \"Introduceți termenul de căutare...\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Поиск\",\n searchBarPlaceholder: \"Найти что-нибудь\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"ค้นหา\",\n searchBarPlaceholder: \"ค้นหาบางอย่าง\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Arama\",\n searchBarPlaceholder: \"Bir şey arayın\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Пошук\",\n searchBarPlaceholder: \"Шукати щось\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Tìm\",\n searchBarPlaceholder: \"Tìm kiếm thông tin\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"\\u641c\\u7d22\",\n searchBarPlaceholder: \"\\u641c\\u7d22\\u5185\\u5bb9...\",\n noResults: \"\\u6ca1\\u6709\\u7ed3\\u679c\\u3002\",\n noResultsHint: \"\\u8bf7\\u5c1d\\u8bd5\\u5176\\u4ed6\\u641c\\u7d22\\u8bcd\\u3002\",\n tagFilterHint: \"\\u6309\\u6807\\u7b7e\\u7b5b\\u9009\",\n noTagsFound: \"\\u6ca1\\u6709\\u5339\\u914d\\u7684\\u6807\\u7b7e\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"搜尋\",\n searchBarPlaceholder: \"搜尋些什麼\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","import enUS from \"./locales/en-US\";\nimport arSA from \"./locales/ar-SA\";\nimport caES from \"./locales/ca-ES\";\nimport csCZ from \"./locales/cs-CZ\";\nimport deDE from \"./locales/de-DE\";\nimport enGB from \"./locales/en-GB\";\nimport esES from \"./locales/es-ES\";\nimport faIR from \"./locales/fa-IR\";\nimport fiFI from \"./locales/fi-FI\";\nimport frFR from \"./locales/fr-FR\";\nimport heIL from \"./locales/he-IL\";\nimport huHU from \"./locales/hu-HU\";\nimport idID from \"./locales/id-ID\";\nimport itIT from \"./locales/it-IT\";\nimport jaJP from \"./locales/ja-JP\";\nimport kkKZ from \"./locales/kk-KZ\";\nimport koKR from \"./locales/ko-KR\";\nimport ltLT from \"./locales/lt-LT\";\nimport nbNO from \"./locales/nb-NO\";\nimport nlNL from \"./locales/nl-NL\";\nimport plPL from \"./locales/pl-PL\";\nimport ptBR from \"./locales/pt-BR\";\nimport roRO from \"./locales/ro-RO\";\nimport ruRU from \"./locales/ru-RU\";\nimport thTH from \"./locales/th-TH\";\nimport trTR from \"./locales/tr-TR\";\nimport ukUA from \"./locales/uk-UA\";\nimport viVN from \"./locales/vi-VN\";\nimport zhCN from \"./locales/zh-CN\";\nimport zhTW from \"./locales/zh-TW\";\n\nconst locales: Record<string, typeof enUS> = {\n \"en-US\": enUS,\n \"ar-SA\": arSA,\n \"ca-ES\": caES,\n \"cs-CZ\": csCZ,\n \"de-DE\": deDE,\n \"en-GB\": enGB,\n \"es-ES\": esES,\n \"fa-IR\": faIR,\n \"fi-FI\": fiFI,\n \"fr-FR\": frFR,\n \"he-IL\": heIL,\n \"hu-HU\": huHU,\n \"id-ID\": idID,\n \"it-IT\": itIT,\n \"ja-JP\": jaJP,\n \"kk-KZ\": kkKZ,\n \"ko-KR\": koKR,\n \"lt-LT\": ltLT,\n \"nb-NO\": nbNO,\n \"nl-NL\": nlNL,\n \"pl-PL\": plPL,\n \"pt-BR\": ptBR,\n \"ro-RO\": roRO,\n \"ru-RU\": ruRU,\n \"th-TH\": thTH,\n \"tr-TR\": trTR,\n \"uk-UA\": ukUA,\n \"vi-VN\": viVN,\n \"zh-CN\": zhCN,\n \"zh-TW\": zhTW,\n};\n\nexport function i18n(locale: string) {\n return locales[locale] || enUS;\n}\n",".search {\n min-width: fit-content;\n max-width: 14rem;\n}\n\n@media all and (max-width: 800px) {\n .search {\n flex-grow: 0.3;\n }\n}\n.search > .search-button {\n background-color: transparent;\n border: 1px var(--lightgray) solid;\n border-radius: 4px;\n font-family: inherit;\n font-size: inherit;\n height: 2rem;\n padding: 0 1rem 0 0;\n display: flex;\n align-items: center;\n text-align: inherit;\n cursor: pointer;\n white-space: nowrap;\n width: 100%;\n}\n\n.search > .search-button > p {\n display: inline;\n color: var(--gray);\n text-wrap: unset;\n}\n\n.search > .search-button svg {\n cursor: pointer;\n width: 18px;\n min-width: 18px;\n margin: 0 0.5rem;\n}\n\n.search > .search-button svg .search-path {\n stroke: var(--darkgray);\n stroke-width: 1.5px;\n transition: stroke 0.5s ease;\n}\n\n.search > .search-container {\n position: fixed;\n contain: layout;\n z-index: var(--search-z-index, 999);\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n overflow-y: auto;\n display: none;\n backdrop-filter: blur(4px);\n}\n\n.search > .search-container.active {\n display: inline-block;\n}\n\n.search > .search-container > .search-space {\n width: 65%;\n margin-top: 12vh;\n margin-left: auto;\n margin-right: auto;\n}\n\n@media all and not (min-width: 1200px) {\n .search > .search-container > .search-space {\n width: 90%;\n }\n}\n.search > .search-container > .search-space > *:not(.ghost-text):not(.tag-suggestions) {\n width: 100%;\n border-radius: 7px;\n background: var(--light);\n box-shadow: 0 14px 50px rgba(27, 33, 48, 0.12), 0 10px 30px rgba(27, 33, 48, 0.16);\n margin-bottom: 2em;\n}\n\n.search > .search-container > .search-space > input {\n box-sizing: border-box;\n padding: 0.5em 1em;\n font-family: var(--bodyFont);\n color: var(--dark);\n font-size: 1.1em;\n border: 1px solid var(--lightgray);\n}\n\n.search > .search-container > .search-space > input:focus {\n outline: none;\n}\n\n.search > .search-container > .search-space > .search-layout {\n display: none;\n flex-direction: row;\n border: 1px solid var(--lightgray);\n flex: 0 0 100%;\n box-sizing: border-box;\n}\n\n.search > .search-container > .search-space > .search-layout.display-results {\n display: flex;\n}\n\n.search > .search-container > .search-space > .search-layout[data-preview] > .results-container {\n flex: 0 0 min(30%, 450px);\n}\n\n@media all and not (max-width: 800px) {\n .search > .search-container > .search-space > .search-layout[data-preview] .result-card > p.card-description {\n display: none;\n }\n .search > .search-container > .search-space > .search-layout[data-preview] > div:first-child {\n border-right: 1px solid var(--lightgray);\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n }\n .search > .search-container > .search-space > .search-layout[data-preview] > div:last-child {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n}\n.search > .search-container > .search-space > .search-layout > div {\n height: 63vh;\n border-radius: 5px;\n}\n\n@media all and (max-width: 800px) {\n .search > .search-container > .search-space > .search-layout {\n flex-direction: column;\n }\n .search > .search-container > .search-space > .search-layout > .preview-container {\n display: none !important;\n }\n .search > .search-container > .search-space > .search-layout[data-preview] > .results-container {\n width: 100%;\n height: auto;\n max-height: 60vh;\n flex: 0 0 100%;\n }\n}\n.search > .search-container > .search-space > .search-layout .highlight {\n background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));\n border-radius: 5px;\n scroll-margin-top: 2rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .preview-container {\n flex-grow: 1;\n display: block;\n overflow: hidden;\n font-family: inherit;\n color: var(--dark);\n line-height: 1.5em;\n font-weight: 400;\n overflow-y: auto;\n padding: 0 2rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .preview-container .preview-inner {\n margin: 0 auto;\n width: 100%;\n}\n\n.search > .search-container > .search-space > .search-layout > .preview-container a[role=anchor] {\n background-color: transparent;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container {\n overflow-y: auto;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card {\n overflow: hidden;\n padding: 1em;\n cursor: pointer;\n transition: background 0.2s ease;\n border-bottom: 1px solid var(--lightgray);\n width: 100%;\n display: block;\n box-sizing: border-box;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n text-transform: none;\n text-align: left;\n outline: none;\n font-weight: inherit;\n text-decoration: none;\n color: var(--dark);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card:hover,\n.search > .search-container > .search-space > .search-layout > .results-container .result-card:focus,\n.search > .search-container > .search-space > .search-layout > .results-container .result-card.focus {\n background: var(--lightgray);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > h3 {\n margin: 0;\n color: var(--secondary);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul.tags {\n margin-top: 0.45rem;\n margin-bottom: 0;\n padding: 0;\n list-style: none;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul.tags > li {\n display: inline-block;\n margin-right: 0.3rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul > li > p {\n border-radius: 8px;\n background-color: var(--highlight);\n padding: 0.2rem 0.4rem;\n margin: 0;\n line-height: 1.4rem;\n font-weight: 700;\n color: var(--secondary);\n font-size: 0.85rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul > li > p.match-tag {\n color: var(--tertiary);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > p {\n margin-bottom: 0;\n margin-top: 0.5em;\n font-size: 0.9em;\n color: var(--gray);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card.no-match {\n cursor: default;\n}\n\n.search > .search-container > .search-space {\n position: relative;\n}\n\n.search > .search-container > .search-space > .ghost-text {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n pointer-events: none;\n box-sizing: border-box;\n padding: 0.5em 1em;\n font-family: var(--bodyFont);\n font-size: 1.1em;\n color: var(--gray);\n opacity: 0.6;\n white-space: pre;\n overflow: hidden;\n height: auto;\n line-height: normal;\n border: 1px solid transparent;\n}\n\n.search > .search-container > .search-space > .tag-suggestions {\n position: absolute;\n top: calc(3.1em + 2px);\n left: 0;\n right: 0;\n z-index: calc(var(--search-z-index, 999) + 1);\n background: var(--light);\n border: 1px solid var(--lightgray);\n border-radius: 5px;\n box-shadow: 0 4px 12px rgba(27, 33, 48, 0.1), 0 2px 6px rgba(27, 33, 48, 0.08);\n max-height: 240px;\n overflow-y: auto;\n}\n\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item {\n padding: 0.4em 1em;\n cursor: pointer;\n font-family: var(--bodyFont);\n font-size: 0.95em;\n color: var(--dark);\n transition: background 0.15s ease;\n}\n\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item:hover,\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item.active {\n background: var(--lightgray);\n}\n\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item.active {\n color: var(--secondary);\n font-weight: 600;\n}\n\n.search-scroll-target {\n background: color-mix(in srgb, var(--tertiary) 40%, rgba(255, 255, 255, 0));\n border-radius: 3px;\n padding: 0.1em 0;\n transition: background 1s ease;\n}\n\n.search-scroll-target.fade-out {\n background: transparent;\n}","var Rn=Object.create;var Ne=Object.defineProperty;var Wn=Object.getOwnPropertyDescriptor;var Nn=Object.getOwnPropertyNames;var zn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty;var $n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Kn=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of Nn(e))!On.call(t,i)&&i!==n&&Ne(t,i,{get:()=>e[i],enumerable:!(r=Wn(e,i))||r.enumerable});return t};var Un=(t,e,n)=>(n=t!=null?Rn(zn(t)):{},Kn(e||!t||!t.__esModule?Ne(n,\"default\",{value:t,enumerable:!0}):n,t));var fe=$n(()=>{});var C;function O(t,e,n){let r=typeof n,i=typeof t;if(r!==\"undefined\"){if(i!==\"undefined\"){if(n){if(i===\"function\"&&r===i)return function(o){return t(n(o))};if(e=t.constructor,e===n.constructor){if(e===Array)return n.concat(t);if(e===Map){var s=new Map(n);for(var u of t)s.set(u[0],u[1]);return s}if(e===Set){u=new Set(n);for(s of t.values())u.add(s);return u}}}return t}return n}return i===\"undefined\"?e:t}function Ct(t,e){return typeof t>\"u\"?e:t}function R(){return Object.create(null)}function U(t){return typeof t==\"string\"}function Lt(t){return typeof t==\"object\"}function Mt(t,e){if(U(e))t=t[e];else for(let n=0;t&&n<e.length;n++)t=t[e[n]];return t}var Vn=/[^\\p{L}\\p{N}]+/u,Jn=/(\\d{3})/g,Xn=/(\\D)(\\d{3})/g,Zn=/(\\d{3})(\\D)/g,ze=/[\\u0300-\\u036f]/g;function vt(t={}){if(!this||this.constructor!==vt)return new vt(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}C=vt.prototype;C.assign=function(t){this.normalize=O(t.normalize,!0,this.normalize);let e=t.include,n=e||t.exclude||t.split,r;if(n||n===\"\"){if(typeof n==\"object\"&&n.constructor!==RegExp){let i=\"\";r=!e,e||(i+=\"\\\\p{Z}\"),n.letter&&(i+=\"\\\\p{L}\"),n.number&&(i+=\"\\\\p{N}\",r=!!e),n.symbol&&(i+=\"\\\\p{S}\"),n.punctuation&&(i+=\"\\\\p{P}\"),n.control&&(i+=\"\\\\p{C}\"),(n=n.char)&&(i+=typeof n==\"object\"?n.join(\"\"):n);try{this.split=new RegExp(\"[\"+(e?\"^\":\"\")+i+\"]+\",\"u\")}catch{this.split=/\\s+/}}else this.split=n,r=n===!1||\"a1a\".split(n).length<2;this.numeric=O(t.numeric,r)}else{try{this.split=O(this.split,Vn)}catch{this.split=/\\s+/}this.numeric=O(t.numeric,O(this.numeric,!0))}if(this.prepare=O(t.prepare,null,this.prepare),this.finalize=O(t.finalize,null,this.finalize),n=t.filter,this.filter=typeof n==\"function\"?n:O(n&&new Set(n),null,this.filter),this.dedupe=O(t.dedupe,!0,this.dedupe),this.matcher=O((n=t.matcher)&&new Map(n),null,this.matcher),this.mapper=O((n=t.mapper)&&new Map(n),null,this.mapper),this.stemmer=O((n=t.stemmer)&&new Map(n),null,this.stemmer),this.replacer=O(t.replacer,null,this.replacer),this.minlength=O(t.minlength,1,this.minlength),this.maxlength=O(t.maxlength,1024,this.maxlength),this.rtl=O(t.rtl,!1,this.rtl),(this.cache=n=O(t.cache,!0,this.cache))&&(this.F=null,this.L=typeof n==\"number\"?n:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h=\"\",this.J=null,this.A=\"\",this.K=null,this.matcher)for(let i of this.matcher.keys())this.h+=(this.h?\"|\":\"\")+i;if(this.stemmer)for(let i of this.stemmer.keys())this.A+=(this.A?\"|\":\"\")+i;return this};C.addStemmer=function(t,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(t,e),this.A+=(this.A?\"|\":\"\")+t,this.K=null,this.cache&&gt(this),this};C.addFilter=function(t){return typeof t==\"function\"?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t)),this.cache&&gt(this),this};C.addMapper=function(t,e){return typeof t==\"object\"?this.addReplacer(t,e):t.length>1?this.addMatcher(t,e):(this.mapper||(this.mapper=new Map),this.mapper.set(t,e),this.cache&&gt(this),this)};C.addMatcher=function(t,e){return typeof t==\"object\"?this.addReplacer(t,e):t.length<2&&(this.dedupe||this.mapper)?this.addMapper(t,e):(this.matcher||(this.matcher=new Map),this.matcher.set(t,e),this.h+=(this.h?\"|\":\"\")+t,this.J=null,this.cache&&gt(this),this)};C.addReplacer=function(t,e){return typeof t==\"string\"?this.addMatcher(t,e):(this.replacer||(this.replacer=[]),this.replacer.push(t,e),this.cache&&gt(this),this)};C.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(gt,50,this);this.normalize&&(typeof this.normalize==\"function\"?t=this.normalize(t):t=ze?t.normalize(\"NFKD\").replace(ze,\"\").toLowerCase():t.toLowerCase()),this.prepare&&(t=this.prepare(t)),this.numeric&&t.length>3&&(t=t.replace(Xn,\"$1 $2\").replace(Zn,\"$1 $2\").replace(Jn,\"$1 \"));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=R(),s,u,o=this.split||this.split===\"\"?t.split(this.split):[t];for(let c=0,f,h;c<o.length;c++)if((f=h=o[c])&&!(f.length<this.minlength||f.length>this.maxlength)){if(e){if(i[f])continue;i[f]=1}else{if(s===f)continue;s=f}if(n)r.push(f);else if(!this.filter||(typeof this.filter==\"function\"?this.filter(f):!this.filter.has(f))){if(this.cache&&f.length<=this.I)if(this.F){var l=this.D.get(f);if(l||l===\"\"){l&&r.push(l);continue}}else this.F=setTimeout(gt,50,this);if(this.stemmer){this.K||(this.K=new RegExp(\"(?!^)(\"+this.A+\")$\"));let d;for(;d!==f&&f.length>2;)d=f,f=f.replace(this.K,a=>this.stemmer.get(a))}if(f&&(this.mapper||this.dedupe&&f.length>1)){l=\"\";for(let d=0,a=\"\",D,p;d<f.length;d++)D=f.charAt(d),D===a&&this.dedupe||((p=this.mapper&&this.mapper.get(D))||p===\"\"?p===a&&this.dedupe||!(a=p)||(l+=p):l+=a=D);f=l}if(this.matcher&&f.length>1&&(this.J||(this.J=new RegExp(\"(\"+this.h+\")\",\"g\")),f=f.replace(this.J,d=>this.matcher.get(d))),f&&this.replacer)for(l=0;f&&l<this.replacer.length;l+=2)f=f.replace(this.replacer[l],this.replacer[l+1]);if(this.cache&&h.length<=this.I&&(this.D.set(h,f),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),f){if(f!==h)if(e){if(i[f])continue;i[f]=1}else{if(u===f)continue;u=f}r.push(f)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&t.length<=this.H&&(this.B.set(t,r),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),r};function gt(t){t.F=null,t.B.clear(),t.D.clear()}function Fe(t,e,n){n||(e||typeof t!=\"object\"?typeof e==\"object\"&&(n=e,e=0):n=t),n&&(t=n.query||t,e=n.limit||e);let r=\"\"+(e||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(n.resolve!==!1)+(n.resolution||this.resolution)+(n.boost||0)),t=(\"\"+t).toLowerCase(),this.cache||(this.cache=new mt);let i=this.cache.get(t+r);if(!i){let s=n&&n.cache;s&&(n.cache=!1),i=this.search(t,e,n),s&&(n.cache=s),this.cache.set(t+r,i)}return i}function mt(t){this.limit=t&&t!==!0?t:1e3,this.cache=new Map,this.h=\"\"}mt.prototype.set=function(t,e){this.cache.set(this.h=t,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};mt.prototype.get=function(t){let e=this.cache.get(t);return e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e)),e};mt.prototype.remove=function(t){for(let e of this.cache){let n=e[0];e[1].includes(t)&&this.cache.delete(n)}};mt.prototype.clear=function(){this.cache.clear(),this.h=\"\"};var Oe={normalize:!1,numeric:!1,dedupe:!1},Ot={},ae=new Map([[\"b\",\"p\"],[\"v\",\"f\"],[\"w\",\"f\"],[\"z\",\"s\"],[\"x\",\"s\"],[\"d\",\"t\"],[\"n\",\"m\"],[\"c\",\"k\"],[\"g\",\"k\"],[\"j\",\"k\"],[\"q\",\"k\"],[\"i\",\"e\"],[\"y\",\"e\"],[\"u\",\"o\"]]),$e=new Map([[\"ae\",\"a\"],[\"oe\",\"o\"],[\"sh\",\"s\"],[\"kh\",\"k\"],[\"th\",\"t\"],[\"ph\",\"f\"],[\"pf\",\"f\"]]),Ke=[/([^aeo])h(.)/g,\"$1$2\",/([aeo])h([^aeo]|$)/g,\"$1$2\",/(.)\\1+/g,\"$1\"],Ue={a:\"\",e:\"\",i:\"\",o:\"\",u:\"\",y:\"\",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,\\u00DF:2,d:3,t:3,l:4,m:5,n:5,r:6},_e={Exact:Oe,Default:Ot,Normalize:Ot,LatinBalance:{mapper:ae},LatinAdvanced:{mapper:ae,matcher:$e,replacer:Ke},LatinExtra:{mapper:ae,replacer:Ke.concat([/(?!^)[aeo]/g,\"\"]),matcher:$e},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let n=0;n<t.length;n++){var e=t[n];let r=e.charAt(0),i=Ue[r];for(let s=1,u;s<e.length&&(u=e.charAt(s),u===\"h\"||u===\"w\"||!(u=Ue[u])||u===i||(r+=u,i=u,r.length!==4));s++);t[n]=r}}},CJK:{split:\"\"},LatinExact:Oe,LatinDefault:Ot,LatinSimple:Ot};function Ve(t,e,n,r){let i=[];for(let s=0,u;s<t.index.length;s++)if(u=t.index[s],e>=u.length)e-=u.length;else{e=u[r?\"splice\":\"slice\"](e,n);let o=e.length;if(o&&(i=i.length?i.concat(e):e,n-=o,r&&(t.length-=o),!n))break;e=0}return i}function xt(t){if(!this||this.constructor!==xt)return new xt(t);this.index=t?[t]:[],this.length=t?t.length:0;let e=this;return new Proxy([],{get(n,r){if(r===\"length\")return e.length;if(r===\"push\")return function(i){e.index[e.index.length-1].push(i),e.length++};if(r===\"pop\")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(r===\"indexOf\")return function(i){let s=0;for(let u=0,o,l;u<e.index.length;u++){if(o=e.index[u],l=o.indexOf(i),l>=0)return s+l;s+=o.length}return-1};if(r===\"includes\")return function(i){for(let s=0;s<e.index.length;s++)if(e.index[s].includes(i))return!0;return!1};if(r===\"slice\")return function(i,s){return Ve(e,i||0,s||e.length,!1)};if(r===\"splice\")return function(i,s){return Ve(e,i||0,s||e.length,!0)};if(r===\"constructor\")return Array;if(typeof r!=\"symbol\")return(n=e.index[r/2**31|0])&&n[r]},set(n,r,i){return n=r/2**31|0,(e.index[n]||(e.index[n]=[]))[r]=i,e.length++,!0}})}xt.prototype.clear=function(){this.index.length=0};xt.prototype.push=function(){};function V(t=8){if(!this||this.constructor!==V)return new V(t);this.index=R(),this.h=[],this.size=0,t>32?(this.B=tn,this.A=BigInt(t)):(this.B=qe,this.A=t)}V.prototype.get=function(t){let e=this.index[this.B(t)];return e&&e.get(t)};V.prototype.set=function(t,e){var n=this.B(t);let r=this.index[n];r?(n=r.size,r.set(t,e),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[t,e]]),this.h.push(r),this.size++)};function J(t=8){if(!this||this.constructor!==J)return new J(t);this.index=R(),this.h=[],this.size=0,t>32?(this.B=tn,this.A=BigInt(t)):(this.B=qe,this.A=t)}J.prototype.add=function(t){var e=this.B(t);let n=this.index[e];n?(e=n.size,n.add(t),(e-=n.size)&&this.size++):(this.index[e]=n=new Set([t]),this.h.push(n),this.size++)};C=V.prototype;C.has=J.prototype.has=function(t){let e=this.index[this.B(t)];return e&&e.has(t)};C.delete=J.prototype.delete=function(t){let e=this.index[this.B(t)];e&&e.delete(t)&&this.size--};C.clear=J.prototype.clear=function(){this.index=R(),this.h=[],this.size=0};C.values=J.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e};C.keys=J.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e};C.entries=J.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};function qe(t){let e=2**this.A-1;if(typeof t==\"number\")return t&e;let n=0,r=this.A+1;for(let i=0;i<t.length;i++)n=(n*r^t.charCodeAt(i))&e;return this.A===32?n+2**31:n}function tn(t){let e=BigInt(2)**this.A-BigInt(1);var n=typeof t;if(n===\"bigint\")return t&e;if(n===\"number\")return BigInt(t)&e;n=BigInt(0);let r=this.A+BigInt(1);for(let i=0;i<t.length;i++)n=(n*r^BigInt(t.charCodeAt(i)))&e;return n}var Et,St;async function Qn(t){t=t.data;var e=t.task;let n=t.id,r=t.args;if(e===\"init\")St=t.options||{},(e=t.factory)?(Function(\"return \"+e)()(self),Et=new self.FlexSearch.Index(St),delete self.FlexSearch):Et=new X(St),postMessage({id:n});else{let i;e===\"export\"&&(r[1]?(r[0]=St.export,r[2]=0,r[3]=1):r=null),e===\"import\"?r[0]&&(t=await St.import.call(Et,r[0]),Et.import(r[0],t)):((i=r&&Et[e].apply(Et,r))&&i.then&&(i=await i),i&&i.await&&(i=await i.await),e===\"search\"&&i.result&&(i=i.result)),postMessage(e===\"search\"?{id:n,msg:i}:{id:n})}}function ye(t){At.call(t,\"add\"),At.call(t,\"append\"),At.call(t,\"search\"),At.call(t,\"update\"),At.call(t,\"remove\"),At.call(t,\"searchCache\")}var ge,Je,Ut;function Yn(){ge=Ut=0}function At(t){this[t+\"Async\"]=function(){let e=arguments;var n=e[e.length-1];let r;if(typeof n==\"function\"&&(r=n,delete e[e.length-1]),ge?Ut||(Ut=Date.now()-Je>=this.priority*this.priority*3):(ge=setTimeout(Yn,0),Je=Date.now()),Ut){let s=this;return new Promise(u=>{setTimeout(function(){u(s[t+\"Async\"].apply(s,e))},0)})}let i=this[t].apply(this,e);return n=i.then?i:new Promise(s=>s(i)),r&&n.then(r),n}}var it=0;function dt(t={},e){function n(o){function l(c){c=c.data||c;let f=c.id,h=f&&s.h[f];h&&(h(c.msg),delete s.h[f])}if(this.worker=o,this.h=R(),this.worker)return i?this.worker.on(\"message\",l):this.worker.onmessage=l,t.config?new Promise(function(c){it>1e9&&(it=0),s.h[++it]=function(){c(s)},s.worker.postMessage({id:it,task:\"init\",factory:r,options:t})}):(this.priority=t.priority||4,this.encoder=e||null,this.worker.postMessage({task:\"init\",factory:r,options:t}),this)}if(!this||this.constructor!==dt)return new dt(t);let r=typeof self<\"u\"?self._factory:typeof window<\"u\"?window._factory:null;r&&(r=r.toString());let i=typeof window>\"u\",s=this,u=Gn(r,i,t.worker);return u.then?u.then(function(o){return n.call(s,o)}):n.call(this,u)}rt(\"add\");rt(\"append\");rt(\"search\");rt(\"update\");rt(\"remove\");rt(\"clear\");rt(\"export\");rt(\"import\");dt.prototype.searchCache=Fe;ye(dt.prototype);function rt(t){dt.prototype[t]=function(){let e=this,n=[].slice.call(arguments);var r=n[n.length-1];let i;return typeof r==\"function\"&&(i=r,n.pop()),r=new Promise(function(s){t===\"export\"&&typeof n[0]==\"function\"&&(n[0]=null),it>1e9&&(it=0),e.h[++it]=s,e.worker.postMessage({task:t,id:it,args:n})}),i?(r.then(i),this):r}}function Gn(t,e,n){return e?typeof module<\"u\"?new(fe()).Worker(__dirname+\"/worker/node.js\"):Promise.resolve().then(()=>Un(fe(),1)).then(function(r){return new r.Worker(import.meta.dirname+\"/node/node.mjs\")}):t?new window.Worker(URL.createObjectURL(new Blob([\"onmessage=\"+Qn.toString()],{type:\"text/javascript\"}))):new window.Worker(typeof n==\"string\"?n:import.meta.url.replace(\"/worker.js\",\"/worker/worker.js\").replace(\"flexsearch.bundle.module.min.js\",\"module/worker/worker.js\").replace(\"flexsearch.bundle.module.min.mjs\",\"module/worker/worker.js\"),{type:\"module\"})}Dt.prototype.add=function(t,e,n){if(Lt(t)&&(e=t,t=Mt(e,this.key)),e&&(t||t===0)){if(!n&&this.reg.has(t))return this.update(t,e);for(let o=0,l;o<this.field.length;o++){l=this.B[o];var r=this.index.get(this.field[o]);if(typeof l==\"function\"){var i=l(e);i&&r.add(t,i,n,!0)}else i=l.G,(!i||i(e))&&(l.constructor===String?l=[\"\"+l]:U(l)&&(l=[l]),De(e,l,this.D,0,r,t,l[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var s=this.A[r];i=this.tag.get(this.F[r]);let o=R();if(typeof s==\"function\"){if(s=s(e),!s)continue}else{var u=s.G;if(u&&!u(e))continue;s.constructor===String&&(s=\"\"+s),s=Mt(e,s)}if(i&&s){U(s)&&(s=[s]);for(let l=0,c,f;l<s.length;l++)if(c=s[l],!o[c]&&(o[c]=1,(u=i.get(c))?f=u:i.set(c,f=[]),!n||!f.includes(t))){if(f.length===2**31-1){if(u=new xt(f),this.fastupdate)for(let h of this.reg.values())h.includes(f)&&(h[h.indexOf(f)]=u);i.set(c,f=u)}f.push(t),this.fastupdate&&((u=this.reg.get(t))?u.push(f):this.reg.set(t,[f]))}}}if(this.store&&(!n||!this.store.has(t))){let o;if(this.h){o=R();for(let l=0,c;l<this.h.length;l++){if(c=this.h[l],(n=c.G)&&!n(e))continue;let f;if(typeof c==\"function\"){if(f=c(e),!f)continue;c=[c.O]}else if(U(c)||c.constructor===String){o[c]=e[c];continue}de(e,o,c,0,c[0],f)}}this.store.set(t,o||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this};function de(t,e,n,r,i,s){if(t=t[i],r===n.length-1)e[i]=s||t;else if(t)if(t.constructor===Array)for(e=e[i]=Array(t.length),i=0;i<t.length;i++)de(t,e,n,r,i);else e=e[i]||(e[i]=R()),i=n[++r],de(t,e,n,r,i)}function De(t,e,n,r,i,s,u,o){if(t=t[u])if(r===e.length-1){if(t.constructor===Array){if(n[r]){for(e=0;e<t.length;e++)i.add(s,t[e],!0,!0);return}t=t.join(\" \")}i.add(s,t,o,!0)}else if(t.constructor===Array)for(u=0;u<t.length;u++)De(t,e,n,r,i,s,u,o);else u=e[++r],De(t,e,n,r,i,s,u,o)}function Ce(t,e,n,r){if(!t.length)return t;if(t.length===1)return t=t[0],t=n||t.length>e?t.slice(n,n+e):t,r?wt.call(this,t):t;let i=[];for(let s=0,u,o;s<t.length;s++)if((u=t[s])&&(o=u.length)){if(n){if(n>=o){n-=o;continue}u=u.slice(n,n+e),o=u.length,n=0}if(o>e&&(u=u.slice(0,e),o=e),!i.length&&o>=e)return r?wt.call(this,u):u;if(i.push(u),e-=o,!e)break}return i=i.length>1?[].concat.apply([],i):i[0],r?wt.call(this,i):i}function Gt(t,e,n,r){var i=r[0];if(i[0]&&i[0].query)return t[e].apply(t,i);if(!(e!==\"and\"&&e!==\"not\"||t.result.length||t.await||i.suggest))return r.length>1&&(i=r[r.length-1]),(r=i.resolve)?t.await||t.result:t;let s=[],u=0,o=0,l,c,f,h,d;for(e=0;e<r.length;e++)if(i=r[e]){var a=void 0;if(i.constructor===j)a=i.await||i.result;else if(i.then||i.constructor===Array)a=i;else{u=i.limit||0,o=i.offset||0,f=i.suggest,c=i.resolve,l=((h=i.highlight||t.highlight)||i.enrich)&&c,a=i.queue;let D=i.async||a,p=i.index,g=i.query;if(p?t.index||(t.index=p):p=t.index,g||i.tag){let F=i.field||i.pluck;if(F&&(!g||t.query&&!h||(t.query=g,t.field=F,t.highlight=h),p=p.index.get(F)),a&&(d||t.await)){d=1;let m,A=t.C.length,x=new Promise(function(b){m=b});(function(b,k){x.h=function(){k.index=null,k.resolve=!1;let B=D?b.searchAsync(k):b.search(k);return B.then?B.then(function(y){return t.C[A]=y=y.result||y,m(y),y}):(B=B.result||B,m(B),B)}})(p,Object.assign({},i)),t.C.push(x),s[e]=x;continue}else i.resolve=!1,i.index=null,a=D?p.searchAsync(i):p.search(i),i.resolve=c,i.index=p}else if(i.and)a=$t(i,\"and\",p);else if(i.or)a=$t(i,\"or\",p);else if(i.not)a=$t(i,\"not\",p);else if(i.xor)a=$t(i,\"xor\",p);else continue}a.await?(d=1,a=a.await):a.then?(d=1,a=a.then(function(D){return D.result||D})):a=a.result||a,s[e]=a}if(d&&!t.await&&(t.await=new Promise(function(D){t.return=D})),d){let D=Promise.all(s).then(function(p){for(let g=0;g<t.C.length;g++)if(t.C[g]===D){t.C[g]=function(){return n.call(t,p,u,o,l,c,f,h)};break}Ee(t)});t.C.push(D)}else if(t.await)t.C.push(function(){return n.call(t,s,u,o,l,c,f,h)});else return n.call(t,s,u,o,l,c,f,h);return c?t.await||t.result:t}function $t(t,e,n){t=t[e];let r=t[0]||t;return r.index||(r.index=n),n=new j(r),t.length>1&&(n=n[e].apply(n,t.slice(1))),n}j.prototype.or=function(){return Gt(this,\"or\",qn,arguments)};function qn(t,e,n,r,i,s,u){return t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=en(t,e,n,!1,this.h),n=0)),i&&(this.await=null),i?this.resolve(e,n,r,u):this}j.prototype.and=function(){return Gt(this,\"and\",ti,arguments)};function ti(t,e,n,r,i,s,u){if(!s&&!this.result.length)return i?this.result:this;let o;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let l=0;for(let c=0,f,h;c<t.length;c++)if((f=t[c])&&(h=f.length))l<h&&(l=h);else if(!s){l=0;break}l?(this.result=Jt(t,l,e,n,s,this.h,i),o=!0):this.result=[]}else s||(this.result=t);return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}j.prototype.xor=function(){return Gt(this,\"xor\",ei,arguments)};function ei(t,e,n,r,i,s,u){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{s=n;var o=this.h;let l=[],c=R(),f=0;for(let h=0,d;h<t.length;h++)if(d=t[h]){f<d.length&&(f=d.length);for(let a=0,D;a<d.length;a++)if(D=d[a])for(let p=0,g;p<D.length;p++)g=D[p],c[g]=c[g]?2:1}for(let h=0,d,a=0;h<f;h++)for(let D=0,p;D<t.length;D++)if((p=t[D])&&(d=p[h])){for(let g=0,F;g<d.length;g++)if(F=d[g],c[F]===1)if(s)s--;else if(i){if(l.push(F),l.length===e){t=l;break t}}else{let m=h+(D?o:0);if(l[m]||(l[m]=[]),l[m].push(F),++a===e){t=l;break t}}}t=l}this.result=t,o=!0}else s||(this.result=t);return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}j.prototype.not=function(){return Gt(this,\"not\",ni,arguments)};function ni(t,e,n,r,i,s,u){if(!s&&!this.result.length)return i?this.result:this;if(t.length&&this.result.length){t:{s=n;var o=[];t=new Set(t.flat().flat());for(let l=0,c,f=0;l<this.result.length;l++)if(c=this.result[l]){for(let h=0,d;h<c.length;h++)if(d=c[h],!t.has(d)){if(s)s--;else if(i){if(o.push(d),o.length===e){t=o;break t}}else if(o[l]||(o[l]=[]),o[l].push(d),++f===e){t=o;break t}}}t=o}this.result=t,o=!0}return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}function Vt(t,e,n,r,i){let s,u,o;typeof i==\"string\"?(s=i,i=\"\"):s=i.template,u=s.indexOf(\"$1\"),o=s.substring(u+2),u=s.substring(0,u);let l=i&&i.boundary,c=!i||i.clip!==!1,f=i&&i.merge&&o&&u&&new RegExp(o+\" \"+u,\"g\");i=i&&i.ellipsis;var h=0;if(typeof i==\"object\"){var d=i.template;h=d.length-2,i=i.pattern}typeof i!=\"string\"&&(i=i===!1?\"\":\"...\"),h&&(i=d.replace(\"$1\",i)),d=i.length-h;let a,D;typeof l==\"object\"&&(a=l.before,a===0&&(a=-1),D=l.after,D===0&&(D=-1),l=l.total||9e5),h=new Map;for(let et=0,Q,Wt,ot;et<e.length;et++){let nt;if(r)nt=e,ot=r;else{var p=e[et];if(ot=p.field,!ot)continue;nt=p.result}Wt=n.get(ot),Q=Wt.encoder,p=h.get(Q),typeof p!=\"string\"&&(p=Q.encode(t),h.set(Q,p));for(let lt=0;lt<nt.length;lt++){var g=nt[lt].doc;if(!g||(g=Mt(g,ot),!g))continue;var F=g.trim().split(/\\s+/);if(!F.length)continue;g=\"\";var m=[];let ht=[];for(var A=-1,x=-1,b=0,k=0;k<F.length;k++){var B=F[k],y=Q.encode(B);y=y.length>1?y.join(\" \"):y[0];let w;if(y&&B){for(var v=B.length,M=(Q.split?B.replace(Q.split,\"\"):B).length-y.length,T=\"\",W=0,z=0;z<p.length;z++){var N=p[z];if(N){var P=N.length;P+=M<0?0:M,W&&P<=W||(N=y.indexOf(N),N>-1&&(T=(N?B.substring(0,N):\"\")+u+B.substring(N,N+P)+o+(N+P<v?B.substring(N+P):\"\"),W=P,w=!0))}}T&&(l&&(A<0&&(A=g.length+(g?1:0)),x=g.length+(g?1:0)+T.length,b+=v,ht.push(m.length),m.push({match:T})),g+=(g?\" \":\"\")+T)}if(!w)B=F[k],g+=(g?\" \":\"\")+B,l&&m.push({text:B});else if(l&&b>=l)break}if(b=ht.length*(s.length-2),a||D||l&&g.length-b>l)if(b=l+b-d*2,k=x-A,a>0&&(k+=a),D>0&&(k+=D),k<=b)F=a?A-(a>0?a:0):A-((b-k)/2|0),m=D?x+(D>0?D:0):F+b,c||(F>0&&g.charAt(F)!==\" \"&&g.charAt(F-1)!==\" \"&&(F=g.indexOf(\" \",F),F<0&&(F=0)),m<g.length&&g.charAt(m-1)!==\" \"&&g.charAt(m)!==\" \"&&(m=g.lastIndexOf(\" \",m),m<x?m=x:++m)),g=(F?i:\"\")+g.substring(F,m)+(m<g.length?i:\"\");else{for(x=[],A={},b={},k={},B={},y={},T=M=v=0,z=W=1;;){var $=void 0;for(let w=0,I;w<ht.length;w++){if(I=ht[w],T)if(M!==T){if(k[w+1])continue;if(I+=T,A[I]){v-=d,b[w+1]=1,k[w+1]=1;continue}if(I>=m.length-1){if(I>=m.length){k[w+1]=1,I>=F.length&&(b[w+1]=1);continue}v-=d}if(g=m[I].text,P=D&&y[w])if(P>0){if(g.length>P)if(k[w+1]=1,c)g=g.substring(0,P);else continue;(P-=g.length)||(P=-1),y[w]=P}else{k[w+1]=1;continue}if(v+g.length+1<=l)g=\" \"+g,x[w]+=g;else if(c)$=l-v-1,$>0&&(g=\" \"+g.substring(0,$),x[w]+=g),k[w+1]=1;else{k[w+1]=1;continue}}else{if(k[w])continue;if(I-=M,A[I]){v-=d,k[w]=1,b[w]=1;continue}if(I<=0){if(I<0){k[w]=1,b[w]=1;continue}v-=d}if(g=m[I].text,P=a&&B[w])if(P>0){if(g.length>P)if(k[w]=1,c)g=g.substring(g.length-P);else continue;(P-=g.length)||(P=-1),B[w]=P}else{k[w]=1;continue}if(v+g.length+1<=l)g+=\" \",x[w]=g+x[w];else if(c)$=g.length+1-(l-v),$>=0&&$<g.length&&(g=g.substring($)+\" \",x[w]=g+x[w]),k[w]=1;else{k[w]=1;continue}}else{g=m[I].match,a&&(B[w]=a),D&&(y[w]=D),w&&v++;let _t;if(I?!w&&d&&(v+=d):(b[w]=1,k[w]=1),I>=F.length-1||I<m.length-1&&m[I+1].match?_t=1:d&&(v+=d),v-=s.length-2,!w||v+g.length<=l)x[w]=g;else{$=W=z=b[w]=0;break}_t&&(b[w+1]=1,k[w+1]=1)}v+=g.length,$=A[I]=1}if($)M===T?T++:M++;else{if(M===T?W=0:z=0,!W&&!z)break;W?(M++,T=M):T++}}g=\"\";for(let w=0,I;w<x.length;w++)I=(b[w]?w?\" \":\"\":(w&&!i?\" \":\"\")+i)+x[w],g+=I;i&&!b[x.length]&&(g+=i)}f&&(g=g.replace(f,\" \")),nt[lt].highlight=g}if(r)break}return e}function j(t,e){if(!this||this.constructor!==j)return new j(t,e);let n=0,r,i,s,u,o,l;if(t&&t.index){let c=t;if(e=c.index,n=c.boost||0,i=c.query){s=c.field||c.pluck,u=c.highlight;let f=c.resolve;t=c.async||c.queue,c.resolve=!1,c.index=null,t=t?e.searchAsync(c):e.search(c),c.resolve=f,c.index=e,t=t.result||t}else t=[]}if(t&&t.then){let c=this;t=t.then(function(f){c.C[0]=c.result=f.result||f,Ee(c)}),r=[t],t=[],o=new Promise(function(f){l=f})}this.index=e||null,this.result=t||[],this.h=n,this.C=r||[],this.await=o||null,this.return=l||null,this.highlight=u||null,this.query=i||\"\",this.field=s||\"\"}C=j.prototype;C.limit=function(t){if(this.await){let e=this;this.C.push(function(){return e.limit(t).result})}else if(this.result.length){let e=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=t){if(e[n]=r,t-=r.length,!t)break}else{e[n]=r.slice(0,t);break}this.result=e}return this};C.offset=function(t){if(this.await){let e=this;this.C.push(function(){return e.offset(t).result})}else if(this.result.length){let e=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=t?t-=r.length:(e[n]=r.slice(t),t=0));this.result=e}return this};C.boost=function(t){if(this.await){let e=this;this.C.push(function(){return e.boost(t).result})}else this.h+=t;return this};function Ee(t,e){let n=t.result;var r=t.await;t.await=null;for(let i=0,s;i<t.C.length;i++)if(s=t.C[i]){if(typeof s==\"function\")n=s(),t.C[i]=n=n.result||n,i--;else if(s.h)n=s.h(),t.C[i]=n=n.result||n,i--;else if(s.then)return t.await=r}return r=t.return,t.C=[],t.return=null,e||r(n),n}C.resolve=function(t,e,n,r,i){let s=this.await?Ee(this,!0):this.result;if(s.then){let u=this;return s.then(function(){return u.resolve(t,e,n,r,i)})}return s.length&&(typeof t==\"object\"?(r=t.highlight||this.highlight,n=!!r||t.enrich,e=t.offset,t=t.limit):(r=r||this.highlight,n=!!r||n),s=i?n?wt.call(this.index,s):s:Ce.call(this.index,s,t||100,e,n)),this.finalize(s,r)};C.finalize=function(t,e){if(t.then){let r=this;return t.then(function(i){return r.finalize(i,e)})}e&&t.length&&this.query&&(t=Vt(this.query,t,this.index.index,this.field,e));let n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field=\"\",n&&n(t),t};function Jt(t,e,n,r,i,s,u){let o=t.length,l=[],c,f;c=R();for(let h=0,d,a,D,p;h<e;h++)for(let g=0;g<o;g++)if(D=t[g],h<D.length&&(d=D[h]))for(let F=0;F<d.length;F++){if(a=d[F],(f=c[a])?c[a]++:(f=0,c[a]=1),p=l[f]||(l[f]=[]),!u){let m=h+(g||!i?0:s||0);p=p[m]||(p[m]=[])}if(p.push(a),u&&n&&f===o-1&&p.length-r===n)return r?p.slice(r):p}if(t=l.length)if(i)l=l.length>1?en(l,n,r,u,s):(l=l[0])&&n&&l.length>n||r?l.slice(r,n+r):l;else{if(t<o)return[];if(l=l[t-1],n||r)if(u)(l.length>n||r)&&(l=l.slice(r,n+r));else{i=[];for(let h=0,d;h<l.length;h++)if(d=l[h]){if(r&&d.length>r)r-=d.length;else if((n&&d.length>n||r)&&(d=d.slice(r,n+r),n-=d.length,r&&(r-=d.length)),i.push(d),!n)break}l=i}}return l}function en(t,e,n,r,i){let s=[],u=R(),o;var l=t.length;let c;if(r){for(i=l-1;i>=0;i--)if(c=(r=t[i])&&r.length){for(l=0;l<c;l++)if(o=r[l],!u[o]){if(u[o]=1,n)n--;else if(s.push(o),s.length===e)return s}}}else for(let f=l-1,h,d=0;f>=0;f--){h=t[f];for(let a=0;a<h.length;a++)if(c=(r=h[a])&&r.length){for(let D=0;D<c;D++)if(o=r[D],!u[o])if(u[o]=1,n)n--;else{let p=(a+(f<l-1&&i||0))/(f+1)|0;if((s[p]||(s[p]=[])).push(o),++d===e)return s}}}return s}function ii(t,e,n,r,i){let s=R(),u=[];for(let o=0,l;o<e.length;o++){l=e[o];for(let c=0;c<l.length;c++)s[l[c]]=1}if(i){for(let o=0,l;o<t.length;o++)if(l=t[o],s[l]){if(r)r--;else if(u.push(l),s[l]=0,n&&--n===0)break}}else for(let o=0,l,c;o<t.result.length;o++)for(l=t.result[o],e=0;e<l.length;e++)c=l[e],s[c]&&((u[o]||(u[o]=[])).push(c),s[c]=0);return u}R();Dt.prototype.search=function(t,e,n,r){n||(!e&&Lt(t)?(n=t,t=\"\"):Lt(e)&&(n=e,e=0));let i=[];var s=[];let u,o,l,c,f,h,d=0,a=!0,D;if(n){n.constructor===Array&&(n={index:n}),t=n.query||t,u=n.pluck,o=n.merge,c=n.boost,h=u||n.field||(h=n.index)&&(h.index?null:h);var p=this.tag&&n.tag;l=n.suggest,a=n.resolve!==!1,f=n.cache,D=a&&this.store&&n.highlight;var g=!!D||a&&this.store&&n.enrich;e=n.limit||e;var F=n.offset||0;if(e||(e=a?100:0),p&&(!this.db||!r)){p.constructor!==Array&&(p=[p]);var m=[];for(let B=0,y;B<p.length;B++)if(y=p[B],y.field&&y.tag){var A=y.tag;if(A.constructor===Array)for(var x=0;x<A.length;x++)m.push(y.field,A[x]);else m.push(y.field,A)}else{A=Object.keys(y);for(let v=0,M,T;v<A.length;v++)if(M=A[v],T=y[M],T.constructor===Array)for(x=0;x<T.length;x++)m.push(M,T[x]);else m.push(M,T)}if(p=m,!t){if(s=[],m.length)for(p=0;p<m.length;p+=2){if(this.db){if(r=this.index.get(m[p]),!r)continue;s.push(r=r.db.tag(m[p+1],e,F,g))}else r=ri.call(this,m[p],m[p+1],e,F,g);i.push(a?{field:m[p],tag:m[p+1],result:r}:[r])}if(s.length){let B=this;return Promise.all(s).then(function(y){for(let v=0;v<y.length;v++)a?i[v].result=y[v]:i[v]=y[v];return a?i:new j(i.length>1?Jt(i,1,0,0,l,c):i[0],B)})}return a?i:new j(i.length>1?Jt(i,1,0,0,l,c):i[0],this)}}a||u||!(h=h||this.field)||(U(h)?u=h:(h.constructor===Array&&h.length===1&&(h=h[0]),u=h.field||h.index)),h&&h.constructor!==Array&&(h=[h])}h||(h=this.field);let b;m=(this.worker||this.db)&&!r&&[];for(let B=0,y,v,M;B<h.length;B++){if(v=h[B],this.db&&this.tag&&!this.B[B])continue;let T;if(U(v)||(T=v,v=T.field,t=T.query||t,e=Ct(T.limit,e),F=Ct(T.offset,F),l=Ct(T.suggest,l),D=a&&this.store&&Ct(T.highlight,D),g=!!D||a&&this.store&&Ct(T.enrich,g),f=Ct(T.cache,f)),r)y=r[B];else{A=T||n||{},x=A.enrich;var k=this.index.get(v);if(p&&(this.db&&(A.tag=p,A.field=h,b=k.db.support_tag_search),!b&&x&&(A.enrich=!1),b||(A.limit=0,A.offset=0)),y=f?k.searchCache(t,p&&!b?0:e,A):k.search(t,p&&!b?0:e,A),p&&!b&&(A.limit=e,A.offset=F),x&&(A.enrich=x),m){m[B]=y;continue}}if(M=(y=y.result||y)&&y.length,p&&M){if(A=[],x=0,this.db&&r){if(!b)for(k=h.length;k<r.length;k++){let W=r[k];if(W&&W.length)x++,A.push(W);else if(!l)return a?i:new j(i,this)}}else for(let W=0,z,N;W<p.length;W+=2){if(z=this.tag.get(p[W]),!z){if(l)continue;return a?i:new j(i,this)}if(N=(z=z&&z.get(p[W+1]))&&z.length)x++,A.push(z);else if(!l)return a?i:new j(i,this)}if(x){if(y=ii(y,A,e,F,a),M=y.length,!M&&!l)return a?y:new j(y,this);x--}}if(M)s[d]=v,i.push(y),d++;else if(h.length===1)return a?i:new j(i,this)}if(m){if(this.db&&p&&p.length&&!b)for(g=0;g<p.length;g+=2){if(s=this.index.get(p[g]),!s){if(l)continue;return a?i:new j(i,this)}m.push(s.db.tag(p[g+1],e,F,!1))}let B=this;return Promise.all(m).then(function(y){return n&&(n.resolve=a),y.length&&(y=B.search(t,e,n,y)),y})}if(!d)return a?i:new j(i,this);if(u&&(!g||!this.store))return i=i[0],a?i:new j(i,this);for(m=[],F=0;F<s.length;F++){if(p=i[F],g&&p.length&&typeof p[0].doc>\"u\"&&(this.db?m.push(p=this.index.get(this.field[0]).db.enrich(p)):p=wt.call(this,p)),u)return a?D?Vt(t,p,this.index,u,D):p:new j(p,this);i[F]={field:s[F],result:p}}if(g&&this.db&&m.length){let B=this;return Promise.all(m).then(function(y){for(let v=0;v<y.length;v++)i[v].result=y[v];return D&&(i=Vt(t,i,B.index,u,D)),o?Xe(i):i})}return D&&(i=Vt(t,i,this.index,u,D)),o?Xe(i):i};function Xe(t){let e=[],n=R(),r=R();for(let i=0,s,u,o,l,c,f,h;i<t.length;i++){s=t[i],u=s.field,o=s.result;for(let d=0;d<o.length;d++)c=o[d],typeof c!=\"object\"?c={id:l=c}:l=c.id,(f=n[l])?f.push(u):(c.field=n[l]=[u],e.push(c)),(h=c.highlight)&&(f=r[l],f||(r[l]=f={},c.highlight=f),f[u]=h)}return e}function ri(t,e,n,r,i){return t=this.tag.get(t),t?(t=t.get(e),t?(e=t.length-r,e>0&&((n&&e>n||r)&&(t=t.slice(r,r+n)),i&&(t=wt.call(this,t))),t):[]):[]}function wt(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);let e=Array(t.length);for(let n=0,r;n<t.length;n++)r=t[n],e[n]={id:r,doc:this.store.get(r)};return e}function Dt(t){if(!this||this.constructor!==Dt)return new Dt(t);let e=t.document||t.doc||t,n,r;if(this.B=[],this.field=[],this.D=[],this.key=(n=e.key||e.id)&&Xt(n,this.D)||\"id\",(r=t.keystore||0)&&(this.keystore=r),this.fastupdate=!!t.fastupdate,this.reg=!this.fastupdate||t.worker||t.db?r?new J(r):new Set:r?new V(r):new Map,this.h=(n=e.store||null)&&n&&n!==!0&&[],this.store=n?r?new V(r):new Map:null,this.cache=(n=t.cache||null)&&new mt(n),t.cache=!1,this.worker=t.worker||!1,this.priority=t.priority||4,this.index=si.call(this,t,e),this.tag=null,(n=e.tag)&&(typeof n==\"string\"&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.F=[];for(let i=0,s,u;i<n.length;i++){if(s=n[i],u=s.field||s,!u)throw Error(\"The tag field from the document descriptor is undefined.\");s.custom?this.A[i]=s.custom:(this.A[i]=Xt(u,this.D),s.filter&&(typeof this.A[i]==\"string\"&&(this.A[i]=new String(this.A[i])),this.A[i].G=s.filter)),this.F[i]=u,this.tag.set(u,new Map)}}if(this.worker){this.fastupdate=!1,t=[];for(let i of this.index.values())i.then&&t.push(i);if(t.length){let i=this;return Promise.all(t).then(function(s){let u=0;for(let o of i.index.entries()){let l=o[0],c=o[1];c.then&&(c=s[u],i.index.set(l,c),u++)}return i})}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}C=Dt.prototype;C.mount=function(t){let e=this.field;if(this.tag)for(let s=0,u;s<this.F.length;s++){u=this.F[s];var n=void 0;this.index.set(u,n=new X({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(u),n.tag=this.tag.get(u)}n=[];let r={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let s=0,u,o;s<e.length;s++){r.field=o=e[s],u=this.index.get(o);let l=new t.constructor(t.id,r);l.id=t.id,n[s]=l.mount(u),u.document=!0,s?u.bypass=!0:u.store=this.store}let i=this;return this.db=Promise.all(n).then(function(){i.db=!0})};C.commit=async function(){let t=[];for(let e of this.index.values())t.push(e.commit());await Promise.all(t),this.reg.clear()};C.destroy=function(){let t=[];for(let e of this.index.values())t.push(e.destroy());return Promise.all(t)};function si(t,e){let n=new Map,r=e.index||e.field||e;U(r)&&(r=[r]);for(let s=0,u,o;s<r.length;s++){if(u=r[s],U(u)||(o=u,u=u.field),o=Lt(o)?Object.assign({},t,o):t,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new vt(typeof i==\"string\"?_e[i]:i||{}),i=new dt(o,i),n.set(u,i)}this.worker||n.set(u,new X(o,this.reg)),o.custom?this.B[s]=o.custom:(this.B[s]=Xt(u,this.D),o.filter&&(typeof this.B[s]==\"string\"&&(this.B[s]=new String(this.B[s])),this.B[s].G=o.filter)),this.field[s]=u}if(this.h){t=e.store,U(t)&&(t=[t]);for(let s=0,u,o;s<t.length;s++)u=t[s],o=u.field||u,u.custom?(this.h[s]=u.custom,u.custom.O=o):(this.h[s]=Xt(o,this.D),u.filter&&(typeof this.h[s]==\"string\"&&(this.h[s]=new String(this.h[s])),this.h[s].G=u.filter))}return n}function Xt(t,e){let n=t.split(\":\"),r=0;for(let i=0;i<n.length;i++)t=n[i],t[t.length-1]===\"]\"&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(n[r++]=t);return r<n.length&&(n.length=r),r>1?n:n[0]}C.append=function(t,e){return this.add(t,e,!0)};C.update=function(t,e){return this.remove(t).add(t,e)};C.remove=function(t){Lt(t)&&(t=Mt(t,this.key));for(var e of this.index.values())e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){e=r[0];let i=r[1],s=i.indexOf(t);s>-1&&(i.length>1?i.splice(s,1):n.delete(e))}this.store&&this.store.delete(t),this.reg.delete(t)}return this.cache&&this.cache.remove(t),this};C.clear=function(){let t=[];for(let e of this.index.values()){let n=e.clear();n.then&&t.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),t.length?Promise.all(t):this};C.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)};C.cleanup=function(){for(let t of this.index.values())t.cleanup();return this};C.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(t)||null};C.set=function(t,e){return typeof t==\"object\"&&(e=t,t=Mt(e,this.key)),this.store.set(t,e),this};C.searchCache=Fe;C.export=ui;C.import=oi;ye(Dt.prototype);function Ae(t,e=0){let n=[],r=[];e&&(e=25e4/e*5e3|0);for(let i of t.entries())r.push(i),r.length===e&&(n.push(r),r=[]);return r.length&&n.push(r),n}function we(t,e){e||(e=new Map);for(let n=0,r;n<t.length;n++)r=t[n],e.set(r[0],r[1]);return e}function nn(t,e=0){let n=[],r=[];e&&(e=25e4/e*1e3|0);for(let i of t.entries())r.push([i[0],Ae(i[1])[0]||[]]),r.length===e&&(n.push(r),r=[]);return r.length&&n.push(r),n}function rn(t,e){e||(e=new Map);for(let n=0,r,i;n<t.length;n++)r=t[n],i=e.get(r[0]),e.set(r[0],we(r[1],i));return e}function sn(t){let e=[],n=[];for(let r of t.keys())n.push(r),n.length===25e4&&(e.push(n),n=[]);return n.length&&e.push(n),e}function un(t,e){e||(e=new Set);for(let n=0;n<t.length;n++)e.add(t[n]);return e}function Zt(t,e,n,r,i,s,u=0){let o=r&&r.constructor===Array;var l=o?r.shift():r;if(!l)return this.export(t,e,i,s+1);if((l=t((e?e+\".\":\"\")+(u+1)+\".\"+n,JSON.stringify(l)))&&l.then){let c=this;return l.then(function(){return Zt.call(c,t,e,n,o?r:null,i,s,u+1)})}return Zt.call(this,t,e,n,o?r:null,i,s,u+1)}function ui(t,e,n=0,r=0){if(n<this.field.length){let u=this.field[n];if((e=this.index.get(u).export(t,u,n,r=1))&&e.then){let o=this;return e.then(function(){return o.export(t,u,n+1)})}return this.export(t,u,n+1)}let i,s;switch(r){case 0:i=\"reg\",s=sn(this.reg),e=null;break;case 1:i=\"tag\",s=this.tag&&nn(this.tag,this.reg.size),e=null;break;case 2:i=\"doc\",s=this.store&&Ae(this.store),e=null;break;default:return}return Zt.call(this,t,e,i,s||null,n,r)}function oi(t,e){var n=t.split(\".\");n[n.length-1]===\"json\"&&n.pop();let r=n.length>2?n[0]:\"\";if(n=n.length>2?n[2]:n[1],this.worker&&r)return this.index.get(r).import(t);if(e){if(typeof e==\"string\"&&(e=JSON.parse(e)),r)return this.index.get(r).import(n,e);switch(n){case\"reg\":this.fastupdate=!1,this.reg=un(e,this.reg);for(let i=0,s;i<this.field.length;i++)s=this.index.get(this.field[i]),s.fastupdate=!1,s.reg=this.reg;if(this.worker){e=[];for(let i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case\"tag\":this.tag=rn(e,this.tag);break;case\"doc\":this.store=we(e,this.store)}}}function Ze(t,e){let n=\"\";for(let r of t.entries()){t=r[0];let i=r[1],s=\"\";for(let u=0,o;u<i.length;u++){o=i[u]||[\"\"];let l=\"\";for(let c=0;c<o.length;c++)l+=(l?\",\":\"\")+(e===\"string\"?'\"'+o[c]+'\"':o[c]);l=\"[\"+l+\"]\",s+=(s?\",\":\"\")+l}s='[\"'+t+'\",['+s+\"]]\",n+=(n?\",\":\"\")+s}return n}X.prototype.remove=function(t,e){let n=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(n){if(this.fastupdate){for(let r=0,i,s;r<n.length;r++)if((i=n[r])&&(s=i.length))if(i[s-1]===t)i.pop();else{let u=i.indexOf(t);u>=0&&i.splice(u,1)}}else jt(this.map,t),this.depth&&jt(this.ctx,t);e||this.reg.delete(t)}return this.db&&(this.commit_task.push({del:t}),this.M&&on(this)),this.cache&&this.cache.remove(t),this};function jt(t,e){let n=0;var r=typeof e>\"u\";if(t.constructor===Array){for(let i=0,s,u,o;i<t.length;i++)if((s=t[i])&&s.length){if(r)return 1;if(u=s.indexOf(e),u>=0){if(s.length>1)return s.splice(u,1),1;if(delete t[i],n)return 1;o=1}else{if(o)return 1;n++}}}else for(let i of t.entries())r=i[0],jt(i[1],e)?n++:t.delete(r);return n}var li={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:\"forward\"},score:{resolution:9,context:{depth:2,resolution:3}}};X.prototype.add=function(t,e,n,r){if(e&&(t||t===0)){if(!r&&!n&&this.reg.has(t))return this.update(t,e);r=this.depth,e=this.encoder.encode(e,!r);let c=e.length;if(c){let f=R(),h=R(),d=this.resolution;for(let a=0;a<c;a++){let D=e[this.rtl?c-1-a:a];var i=D.length;if(i&&(r||!h[D])){var s=this.score?this.score(e,D,a,null,0):Kt(d,c,a),u=\"\";switch(this.tokenize){case\"tolerant\":if(G(this,h,D,s,t,n),i>2){for(let p=1,g,F,m,A;p<i-1;p++)g=D.charAt(p),F=D.charAt(p+1),m=D.substring(0,p)+F,A=D.substring(p+2),u=m+g+A,G(this,h,u,s,t,n),u=m+A,G(this,h,u,s,t,n);G(this,h,D.substring(0,D.length-1),s,t,n)}break;case\"full\":if(i>2){for(let p=0,g;p<i;p++)for(s=i;s>p;s--){u=D.substring(p,s),g=this.rtl?i-1-p:p;var o=this.score?this.score(e,D,a,u,g):Kt(d,c,a,i,g);G(this,h,u,o,t,n)}break}case\"bidirectional\":case\"reverse\":if(i>1){for(o=i-1;o>0;o--){u=D[this.rtl?i-1-o:o]+u;var l=this.score?this.score(e,D,a,u,o):Kt(d,c,a,i,o);G(this,h,u,l,t,n)}u=\"\"}case\"forward\":if(i>1){for(o=0;o<i;o++)u+=D[this.rtl?i-1-o:o],G(this,h,u,s,t,n);break}default:if(G(this,h,D,s,t,n),r&&c>1&&a<c-1)for(i=this.N,u=D,s=Math.min(r+1,this.rtl?a+1:c-a),o=1;o<s;o++){D=e[this.rtl?c-1-a-o:a+o],l=this.bidirectional&&D>u;let p=this.score?this.score(e,u,a,D,o-1):Kt(i+(c/2>i?0:1),c,a,s-1,o-1);G(this,f,l?u:D,p,t,n,l?D:u)}}}}this.fastupdate||this.reg.add(t)}}return this.db&&(this.commit_task.push(n?{ins:t}:{del:t}),this.M&&on(this)),this};function G(t,e,n,r,i,s,u){let o,l;if(!(o=e[n])||u&&!o[u]){if(u?(e=o||(e[n]=R()),e[u]=1,l=t.ctx,(o=l.get(u))?l=o:l.set(u,l=t.keystore?new V(t.keystore):new Map)):(l=t.map,e[n]=1),(o=l.get(n))?l=o:l.set(n,l=o=[]),s){for(let c=0,f;c<o.length;c++)if((f=o[c])&&f.includes(i)){if(c<=r)return;f.splice(f.indexOf(i),1),t.fastupdate&&(e=t.reg.get(i))&&e.splice(e.indexOf(f),1);break}}if(l=l[r]||(l[r]=[]),l.push(i),l.length===2**31-1){if(e=new xt(l),t.fastupdate)for(let c of t.reg.values())c.includes(l)&&(c[c.indexOf(l)]=e);o[r]=l=e}t.fastupdate&&((r=t.reg.get(i))?r.push(l):t.reg.set(i,[l]))}}function Kt(t,e,n,r,i){return n&&t>1?e+(r||0)<=t?n+(i||0):(t-1)/(e+(r||0))*(n+(i||0))+1|0:0}X.prototype.search=function(t,e,n){if(n||(e||typeof t!=\"object\"?typeof e==\"object\"&&(n=e,e=0):(n=t,t=\"\")),n&&n.cache)return n.cache=!1,t=this.searchCache(t,e,n),n.cache=!0,t;let r=[],i,s,u,o=0,l,c,f,h,d;n&&(t=n.query||t,e=n.limit||e,o=n.offset||0,s=n.context,u=n.suggest,d=(l=n.resolve)&&n.enrich,f=n.boost,h=n.resolution,c=this.db&&n.tag),typeof l>\"u\"&&(l=this.resolve),s=this.depth&&s!==!1;let a=this.encoder.encode(t,!s);if(i=a.length,e=e||(l?100:0),i===1)return Ye.call(this,a[0],\"\",e,o,l,d,c);if(i===2&&s&&!u)return Ye.call(this,a[1],a[0],e,o,l,d,c);let D=R(),p=0,g;if(s&&(g=a[0],p=1),h||h===0||(h=g?this.N:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,a,e,o,u,l,d,c),n!==!1))return n;let F=this;return(async function(){for(let m,A;p<i;p++){if((A=a[p])&&!D[A]){if(D[A]=1,m=await me(F,A,g,0,0,!1,!1),m=Ge(m,r,u,h)){r=m;break}g&&(u&&m&&r.length||(g=A))}u&&g&&p===i-1&&!r.length&&(h=F.resolution,g=\"\",p=-1,D=R())}return Qe(r,h,e,o,u,f,l)})()}for(let F,m;p<i;p++){if((m=a[p])&&!D[m]){if(D[m]=1,F=me(this,m,g,0,0,!1,!1),F=Ge(F,r,u,h)){r=F;break}g&&(u&&F&&r.length||(g=m))}u&&g&&p===i-1&&!r.length&&(h=this.resolution,g=\"\",p=-1,D=R())}return Qe(r,h,e,o,u,f,l)};function Qe(t,e,n,r,i,s,u){let o=t.length,l=t;if(o>1)l=Jt(t,e,n,r,i,s,u);else if(o===1)return u?Ce.call(null,t[0],n,r):new j(t[0],this);return u?l:new j(l,this)}function Ye(t,e,n,r,i,s,u){return t=me(this,t,e,n,r,i,s,u),this.db?t.then(function(o){return i?o||[]:new j(o,this)}):t&&t.length?i?Ce.call(this,t,n,r):new j(t,this):i?[]:new j([],this)}function Ge(t,e,n,r){let i=[];if(t&&t.length){if(t.length<=r){e.push(t);return}for(let s=0,u;s<r;s++)(u=t[s])&&(i[s]=u);if(i.length){e.push(i);return}}if(!n)return i}function me(t,e,n,r,i,s,u,o){let l;return n&&(l=t.bidirectional&&e>n)&&(l=n,n=e,e=l),t.db?t.db.get(e,n,r,i,s,u,o):(t=n?(t=t.ctx.get(n))&&t.get(e):t.map.get(e),t)}function X(t,e){if(!this||this.constructor!==X)return new X(t);if(t){var n=U(t)?t:t.preset;n&&(t=Object.assign({},li[n],t))}else t={};n=t.context;let r=n===!0?{depth:1}:n||{},i=U(t.encoder)?_e[t.encoder]:t.encode||t.encoder||{};this.encoder=i.encode?i:typeof i==\"object\"?new vt(i):{encode:i},this.resolution=t.resolution||9,this.tokenize=n=(n=t.tokenize)&&n!==\"default\"&&n!==\"exact\"&&n||\"strict\",this.depth=n===\"strict\"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!t.fastupdate,this.score=t.score||null,(n=t.keystore||0)&&(this.keystore=n),this.map=n?new V(n):new Map,this.ctx=n?new V(n):new Map,this.reg=e||(this.fastupdate?n?new V(n):new Map:n?new J(n):new Set),this.N=r.resolution||3,this.rtl=i.rtl||t.rtl||!1,this.cache=(n=t.cache||null)&&new mt(n),this.resolve=t.resolve!==!1,(n=t.db)&&(this.db=this.mount(n)),this.M=t.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=t.priority||4}C=X.prototype;C.mount=function(t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),t.mount(this)};C.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)};C.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function on(t){t.commit_timer||(t.commit_timer=setTimeout(function(){t.commit_timer=null,t.db.commit(t)},1))}C.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this};C.append=function(t,e){return this.add(t,e,!0)};C.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)};C.update=function(t,e){let n=this,r=this.remove(t);return r&&r.then?r.then(()=>n.add(t,e)):this.add(t,e)};C.cleanup=function(){return this.fastupdate?(jt(this.map),this.depth&&jt(this.ctx),this):this};C.searchCache=Fe;C.export=function(t,e,n=0,r=0){let i,s;switch(r){case 0:i=\"reg\",s=sn(this.reg);break;case 1:i=\"cfg\",s=null;break;case 2:i=\"map\",s=Ae(this.map,this.reg.size);break;case 3:i=\"ctx\",s=nn(this.ctx,this.reg.size);break;default:return}return Zt.call(this,t,e,i,s,n,r)};C.import=function(t,e){if(e)switch(typeof e==\"string\"&&(e=JSON.parse(e)),t=t.split(\".\"),t[t.length-1]===\"json\"&&t.pop(),t.length===3&&t.shift(),t=t.length>1?t[1]:t[0],t){case\"reg\":this.fastupdate=!1,this.reg=un(e,this.reg);break;case\"map\":this.map=we(e,this.map);break;case\"ctx\":this.ctx=rn(e,this.ctx)}};C.serialize=function(t=!0){let e=\"\",n=\"\",r=\"\";if(this.reg.size){let s;for(var i of this.reg.keys())s||(s=typeof i),e+=(e?\",\":\"\")+(s===\"string\"?'\"'+i+'\"':i);e=\"index.reg=new Set([\"+e+\"]);\",n=Ze(this.map,s),n=\"index.map=new Map([\"+n+\"]);\";for(let u of this.ctx.entries()){i=u[0];let o=Ze(u[1],s);o=\"new Map([\"+o+\"])\",o='[\"'+i+'\",'+o+\"]\",r+=(r?\",\":\"\")+o}r=\"index.ctx=new Map([\"+r+\"]);\"}return t?\"function inject(index){\"+e+n+r+\"}\":e+n+r};ye(X.prototype);var ln=typeof window<\"u\"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Qt=[\"map\",\"ctx\",\"tag\",\"reg\",\"cfg\"],pt=R();function Yt(t,e={}){if(!this||this.constructor!==Yt)return new Yt(t,e);typeof t==\"object\"&&(e=t,t=t.name),t||console.info(\"Default storage space was used, because a name was not passed.\"),this.id=\"flexsearch\"+(t?\":\"+t.toLowerCase().replace(/[^a-z0-9_\\-]/g,\"\"):\"\"),this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\\-]/g,\"\"):\"\",this.type=e.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}C=Yt.prototype;C.mount=function(t){return t.index?t.mount(this):(t.db=this,this.open())};C.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),pt[t.id]||(pt[t.id]=[]),pt[t.id].push(t.field);let e=ln.open(t.id,1);return e.onupgradeneeded=function(){let n=t.db=this.result;for(let r=0,i;r<Qt.length;r++){i=Qt[r];for(let s=0,u;s<pt[t.id].length;s++)u=pt[t.id][s],n.objectStoreNames.contains(i+(i!==\"reg\"&&u?\":\"+u:\"\"))||n.createObjectStore(i+(i!==\"reg\"&&u?\":\"+u:\"\"))}},t.db=st(e,function(n){t.db=n,t.db.onversionchange=function(){t.close()}})};C.close=function(){this.db&&this.db.close(),this.db=null};C.destroy=function(){let t=ln.deleteDatabase(this.id);return st(t)};C.clear=function(){let t=[];for(let n=0,r;n<Qt.length;n++){r=Qt[n];for(let i=0,s;i<pt[this.id].length;i++)s=pt[this.id][i],t.push(r+(r!==\"reg\"&&s?\":\"+s:\"\"))}let e=this.db.transaction(t,\"readwrite\");for(let n=0;n<t.length;n++)e.objectStore(t[n]).clear();return st(e)};C.get=function(t,e,n=0,r=0,i=!0,s=!1){t=this.db.transaction((e?\"ctx\":\"map\")+(this.field?\":\"+this.field:\"\"),\"readonly\").objectStore((e?\"ctx\":\"map\")+(this.field?\":\"+this.field:\"\")).get(e?e+\":\"+t:t);let u=this;return st(t).then(function(o){let l=[];if(!o||!o.length)return l;if(i){if(!n&&!r&&o.length===1)return o[0];for(let c=0,f;c<o.length;c++)if((f=o[c])&&f.length){if(r>=f.length){r-=f.length;continue}let h=n?r+Math.min(f.length-r,n):f.length;for(let d=r;d<h;d++)l.push(f[d]);if(r=0,l.length===n)break}return s?u.enrich(l):l}return o})};C.tag=function(t,e=0,n=0,r=!1){t=this.db.transaction(\"tag\"+(this.field?\":\"+this.field:\"\"),\"readonly\").objectStore(\"tag\"+(this.field?\":\"+this.field:\"\")).get(t);let i=this;return st(t).then(function(s){return!s||!s.length||n>=s.length?[]:!e&&!n?s:(s=s.slice(n,n+e),r?i.enrich(s):s)})};C.enrich=function(t){typeof t!=\"object\"&&(t=[t]);let e=this.db.transaction(\"reg\",\"readonly\").objectStore(\"reg\"),n=[];for(let r=0;r<t.length;r++)n[r]=st(e.get(t[r]));return Promise.all(n).then(function(r){for(let i=0;i<r.length;i++)r[i]={id:t[i],doc:r[i]?JSON.parse(r[i]):null};return r})};C.has=function(t){return t=this.db.transaction(\"reg\",\"readonly\").objectStore(\"reg\").getKey(t),st(t).then(function(e){return!!e})};C.search=null;C.info=function(){};C.transaction=function(t,e,n){t+=t!==\"reg\"&&this.field?\":\"+this.field:\"\";let r=this.h[t+\":\"+e];if(r)return n.call(this,r);let i=this.db.transaction(t,e);this.h[t+\":\"+e]=r=i.objectStore(t);let s=n.call(this,r);return this.h[t+\":\"+e]=null,st(i).finally(function(){return s})};C.commit=async function(t){let e=t.commit_task,n=[];t.commit_task=[];for(let r=0,i;r<e.length;r++)i=e[r],i.del&&n.push(i.del);n.length&&await this.remove(n),t.reg.size&&(await this.transaction(\"map\",\"readwrite\",function(r){for(let i of t.map){let s=i[0],u=i[1];u.length&&(r.get(s).onsuccess=function(){let o=this.result;var l;if(o&&o.length){let c=Math.max(o.length,u.length);for(let f=0,h,d;f<c;f++)if((d=u[f])&&d.length){if((h=o[f])&&h.length)for(l=0;l<d.length;l++)h.push(d[l]);else o[f]=d;l=1}}else o=u,l=1;l&&r.put(o,s)})}}),await this.transaction(\"ctx\",\"readwrite\",function(r){for(let i of t.ctx){let s=i[0],u=i[1];for(let o of u){let l=o[0],c=o[1];c.length&&(r.get(s+\":\"+l).onsuccess=function(){let f=this.result;var h;if(f&&f.length){let d=Math.max(f.length,c.length);for(let a=0,D,p;a<d;a++)if((p=c[a])&&p.length){if((D=f[a])&&D.length)for(h=0;h<p.length;h++)D.push(p[h]);else f[a]=p;h=1}}else f=c,h=1;h&&r.put(f,s+\":\"+l)})}}}),t.store?await this.transaction(\"reg\",\"readwrite\",function(r){for(let i of t.store){let s=i[0],u=i[1];r.put(typeof u==\"object\"?JSON.stringify(u):1,s)}}):t.bypass||await this.transaction(\"reg\",\"readwrite\",function(r){for(let i of t.reg.keys())r.put(1,i)}),t.tag&&await this.transaction(\"tag\",\"readwrite\",function(r){for(let i of t.tag){let s=i[0],u=i[1];u.length&&(r.get(s).onsuccess=function(){let o=this.result;o=o&&o.length?o.concat(u):u,r.put(o,s)})}}),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())};function pe(t,e,n){let r=t.value,i,s=0;for(let u=0,o;u<r.length;u++){if(o=n?r:r[u]){for(let l=0,c,f;l<e.length;l++)if(f=e[l],c=o.indexOf(f),c>=0)if(i=1,o.length>1)o.splice(c,1);else{r[u]=[];break}s+=o.length}if(n)break}s?i&&t.update(r):t.delete(),t.continue()}C.remove=function(t){return typeof t!=\"object\"&&(t=[t]),Promise.all([this.transaction(\"map\",\"readwrite\",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t)}}),this.transaction(\"ctx\",\"readwrite\",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t)}}),this.transaction(\"tag\",\"readwrite\",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t,!0)}}),this.transaction(\"reg\",\"readwrite\",function(e){for(let n=0;n<t.length;n++)e.delete(t[n])})])};function st(t,e){return new Promise((n,r)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result),e=null,n(this.result)},t.onerror=t.onblocked=r,t=null})}var hn={Index:X,Charset:_e,Encoder:vt,Document:Dt,Worker:dt,Resolver:j,IndexedDB:Yt,Language:{}};var Ni=Object.hasOwnProperty;var gn,H,dn,hi,ut,cn,Dn,mn,ve,te,It,Fn,Te,Be,ke,ci,_n={},ne=[],fi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,re=Array.isArray;function q(t,e){for(var n in e)t[n]=e[n];return t}function Se(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function xe(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++dn,__i:-1,__u:0};return i==null&&H.vnode!=null&&H.vnode(s),s}function kt(t){return t.children}function ee(t,e){this.props=t,this.context=e}function Bt(t,e){if(e==null)return t.__?Bt(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type==\"function\"?Bt(t):null}function ai(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,r=[],i=[],s=q({},e);s.__v=e.__v+1,H.vnode&&H.vnode(s),An(t.__P,s,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,r,n??Bt(e),!!(32&e.__u),i),s.__v=e.__v,s.__.__k[s.__i]=s,di(r,s,i),e.__e=e.__=null,s.__e!=n&&yn(s)}}function yn(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),yn(t)}function fn(t){(!t.__d&&(t.__d=!0)&&ut.push(t)&&!ie.__r++||cn!=H.debounceRendering)&&((cn=H.debounceRendering)||Dn)(ie)}function ie(){try{for(var t,e=1;ut.length;)ut.length>e&&ut.sort(mn),t=ut.shift(),e=ut.length,ai(t)}finally{ut.length=ie.__r=0}}function Cn(t,e,n,r,i,s,u,o,l,c,f){var h,d,a,D,p,g,F,m=r&&r.__k||ne,A=e.length;for(l=pi(n,e,m,l,A),h=0;h<A;h++)(a=n.__k[h])!=null&&(d=a.__i!=-1&&m[a.__i]||_n,a.__i=h,g=An(t,a,d,i,s,u,o,l,c,f),D=a.__e,a.ref&&d.ref!=a.ref&&(d.ref&&Le(d.ref,null,a),f.push(a.ref,a.__c||D,a)),p==null&&D!=null&&(p=D),(F=!!(4&a.__u))||d.__k===a.__k?(l=En(a,l,t,F),F&&d.__e&&(d.__e=null)):typeof a.type==\"function\"&&g!==void 0?l=g:D&&(l=D.nextSibling),a.__u&=-7);return n.__e=p,l}function pi(t,e,n,r,i){var s,u,o,l,c,f=n.length,h=f,d=0;for(t.__k=new Array(i),s=0;s<i;s++)(u=e[s])!=null&&typeof u!=\"boolean\"&&typeof u!=\"function\"?(typeof u==\"string\"||typeof u==\"number\"||typeof u==\"bigint\"||u.constructor==String?u=t.__k[s]=xe(null,u,null,null,null):re(u)?u=t.__k[s]=xe(kt,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=t.__k[s]=xe(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):t.__k[s]=u,l=s+d,u.__=t,u.__b=t.__b+1,o=null,(c=u.__i=gi(u,n,l,h))!=-1&&(h--,(o=n[c])&&(o.__u|=2)),o==null||o.__v==null?(c==-1&&(i>f?d--:i<f&&d++),typeof u.type!=\"function\"&&(u.__u|=4)):c!=l&&(c==l-1?d--:c==l+1?d++:(c>l?d--:d++,u.__u|=4))):t.__k[s]=null;if(h)for(s=0;s<f;s++)(o=n[s])!=null&&(2&o.__u)==0&&(o.__e==r&&(r=Bt(o)),vn(o,o));return r}function En(t,e,n,r){var i,s;if(typeof t.type==\"function\"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=En(i[s],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=Bt(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function gi(t,e,n,r){var i,s,u,o=t.key,l=t.type,c=e[n],f=c!=null&&(2&c.__u)==0;if(c===null&&o==null||f&&o==c.key&&l==c.type)return n;if(r>(f?1:0)){for(i=n-1,s=n+1;i>=0||s<e.length;)if((c=e[u=i>=0?i--:s++])!=null&&(2&c.__u)==0&&o==c.key&&l==c.type)return u}return-1}function an(t,e,n){e[0]==\"-\"?t.setProperty(e,n??\"\"):t[e]=n==null?\"\":typeof n!=\"number\"||fi.test(e)?n:n+\"px\"}function qt(t,e,n,r,i){var s,u;t:if(e==\"style\")if(typeof n==\"string\")t.style.cssText=n;else{if(typeof r==\"string\"&&(t.style.cssText=r=\"\"),r)for(e in r)n&&e in n||an(t.style,e,\"\");if(n)for(e in n)r&&n[e]==r[e]||an(t.style,e,n[e])}else if(e[0]==\"o\"&&e[1]==\"n\")s=e!=(e=e.replace(Fn,\"$1\")),u=e.toLowerCase(),e=u in t||e==\"onFocusOut\"||e==\"onFocusIn\"?u.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n[It]=r[It]:(n[It]=Te,t.addEventListener(e,s?ke:Be,s)):t.removeEventListener(e,s?ke:Be,s);else{if(i==\"http://www.w3.org/2000/svg\")e=e.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(e!=\"width\"&&e!=\"height\"&&e!=\"href\"&&e!=\"list\"&&e!=\"form\"&&e!=\"tabIndex\"&&e!=\"download\"&&e!=\"rowSpan\"&&e!=\"colSpan\"&&e!=\"role\"&&e!=\"popover\"&&e in t)try{t[e]=n??\"\";break t}catch{}typeof n==\"function\"||(n==null||n===!1&&e[4]!=\"-\"?t.removeAttribute(e):t.setAttribute(e,e==\"popover\"&&n==1?\"\":n))}}function pn(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[te]==null)e[te]=Te++;else if(e[te]<n[It])return;return n(H.event?H.event(e):e)}}}function An(t,e,n,r,i,s,u,o,l,c){var f,h,d,a,D,p,g,F,m,A,x,b,k,B,y,v=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[o=e.__e=n.__e]),(f=H.__b)&&f(e);t:if(typeof v==\"function\")try{if(F=e.props,m=v.prototype&&v.prototype.render,A=(f=v.contextType)&&r[f.__c],x=f?A?A.props.value:f.__:r,n.__c?g=(h=e.__c=n.__c).__=h.__E:(m?e.__c=h=new v(F,x):(e.__c=h=new ee(F,x),h.constructor=v,h.render=mi),A&&A.sub(h),h.state||(h.state={}),h.__n=r,d=h.__d=!0,h.__h=[],h._sb=[]),m&&h.__s==null&&(h.__s=h.state),m&&v.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=q({},h.__s)),q(h.__s,v.getDerivedStateFromProps(F,h.__s))),a=h.props,D=h.state,h.__v=e,d)m&&v.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),m&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(m&&v.getDerivedStateFromProps==null&&F!==a&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(F,x),e.__v==n.__v||!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(F,h.__s,x)===!1){e.__v!=n.__v&&(h.props=F,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(M){M&&(M.__=e)}),ne.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&u.push(h);break t}h.componentWillUpdate!=null&&h.componentWillUpdate(F,h.__s,x),m&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(a,D,p)})}if(h.context=x,h.props=F,h.__P=t,h.__e=!1,b=H.__r,k=0,m)h.state=h.__s,h.__d=!1,b&&b(e),f=h.render(h.props,h.state,h.context),ne.push.apply(h.__h,h._sb),h._sb=[];else do h.__d=!1,b&&b(e),f=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++k<25);h.state=h.__s,h.getChildContext!=null&&(r=q(q({},r),h.getChildContext())),m&&!d&&h.getSnapshotBeforeUpdate!=null&&(p=h.getSnapshotBeforeUpdate(a,D)),B=f!=null&&f.type===kt&&f.key==null?wn(f.props.children):f,o=Cn(t,re(B)?B:[B],e,n,r,i,s,u,o,l,c),h.base=e.__e,e.__u&=-161,h.__h.length&&u.push(h),g&&(h.__E=h.__=null)}catch(M){if(e.__v=null,l||s!=null)if(M.then){for(e.__u|=l?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;s[s.indexOf(o)]=null,e.__e=o}else{for(y=s.length;y--;)Se(s[y]);be(e)}else e.__e=n.__e,e.__k=n.__k,M.then||be(e);H.__e(M,e,n)}else s==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):o=e.__e=Di(n.__e,e,n,r,i,s,u,l,c);return(f=H.diffed)&&f(e),128&e.__u?void 0:o}function be(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(be))}function di(t,e,n){for(var r=0;r<n.length;r++)Le(n[r],n[++r],n[++r]);H.__c&&H.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){H.__e(s,i.__v)}})}function wn(t){return typeof t!=\"object\"||t==null||t.__b>0?t:re(t)?t.map(wn):q({},t)}function Di(t,e,n,r,i,s,u,o,l){var c,f,h,d,a,D,p,g=n.props||_n,F=e.props,m=e.type;if(m==\"svg\"?i=\"http://www.w3.org/2000/svg\":m==\"math\"?i=\"http://www.w3.org/1998/Math/MathML\":i||(i=\"http://www.w3.org/1999/xhtml\"),s!=null){for(c=0;c<s.length;c++)if((a=s[c])&&\"setAttribute\"in a==!!m&&(m?a.localName==m:a.nodeType==3)){t=a,s[c]=null;break}}if(t==null){if(m==null)return document.createTextNode(F);t=document.createElementNS(i,m,F.is&&F),o&&(H.__m&&H.__m(e,s),o=!1),s=null}if(m==null)g===F||o&&t.data==F||(t.data=F);else{if(s=s&&gn.call(t.childNodes),!o&&s!=null)for(g={},c=0;c<t.attributes.length;c++)g[(a=t.attributes[c]).name]=a.value;for(c in g)a=g[c],c==\"dangerouslySetInnerHTML\"?h=a:c==\"children\"||c in F||c==\"value\"&&\"defaultValue\"in F||c==\"checked\"&&\"defaultChecked\"in F||qt(t,c,null,a,i);for(c in F)a=F[c],c==\"children\"?d=a:c==\"dangerouslySetInnerHTML\"?f=a:c==\"value\"?D=a:c==\"checked\"?p=a:o&&typeof a!=\"function\"||g[c]===a||qt(t,c,a,g[c],i);if(f)o||h&&(f.__html==h.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(h&&(t.innerHTML=\"\"),Cn(e.type==\"template\"?t.content:t,re(d)?d:[d],e,n,r,m==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":i,s,u,s?s[0]:n.__k&&Bt(n,0),o,l),s!=null)for(c=s.length;c--;)Se(s[c]);o||(c=\"value\",m==\"progress\"&&D==null?t.removeAttribute(\"value\"):D!=null&&(D!==t[c]||m==\"progress\"&&!D||m==\"option\"&&D!=g[c])&&qt(t,c,D,g[c],i),c=\"checked\",p!=null&&p!=t[c]&&qt(t,c,p,g[c],i))}return t}function Le(t,e,n){try{if(typeof t==\"function\"){var r=typeof t.__u==\"function\";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){H.__e(i,n)}}function vn(t,e,n){var r,i;if(H.unmount&&H.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Le(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){H.__e(s,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&vn(r[i],e,n||typeof t.type!=\"function\");n||Se(t.__e),t.__c=t.__=t.__e=void 0}function mi(t,e,n){return this.constructor(t,n)}gn=ne.slice,H={__e:function(t,e,n,r){for(var i,s,u;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),u=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),u=i.__d),u)return i.__E=i}catch(o){t=o}throw t}},dn=0,hi=function(t){return t!=null&&t.constructor===void 0},ee.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof t==\"function\"&&(t=t(q({},n),this.props)),t&&q(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),fn(this))},ee.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),fn(this))},ee.prototype.render=kt,ut=[],Dn=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mn=function(t,e){return t.__v.__b-e.__v.__b},ie.__r=0,ve=Math.random().toString(8),te=\"__d\"+ve,It=\"__a\"+ve,Fn=/(PointerCapture)$|Capture$/i,Te=0,Be=pn(!1),ke=pn(!0),ci=0;function _i(){return typeof document>\"u\"?\"\":document.body?.dataset?.basepath??\"\"}function Me(t,e){let n=e??_i(),r=t.startsWith(\"/\")?t:\"/\"+t;return n+r}function tt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function xn(t,e){if(!t)return()=>{};let n=i=>{t.classList.contains(\"active\")&&i.target===t&&(i.preventDefault(),i.stopPropagation(),e())},r=i=>{t.classList.contains(\"active\")&&i.key===\"Escape\"&&(i.preventDefault(),e())};return t.addEventListener(\"click\",n),document.addEventListener(\"keydown\",r),()=>{t.removeEventListener(\"click\",n),document.removeEventListener(\"keydown\",r)}}function Bn(t,e){let n=t.querySelectorAll(\"[src], [href]\");for(let r of Array.from(n)){let i=r.hasAttribute(\"href\")?\"href\":\"src\",s=r.getAttribute(i);if(s&&!(s.startsWith(\"http://\")||s.startsWith(\"https://\")||s.startsWith(\"mailto:\")||s.startsWith(\"tel:\")||s.startsWith(\"#\")||s.startsWith(\"/\")||s.startsWith(\"data:\")))try{let u=new URL(s,e).toString();r.setAttribute(i,u)}catch{continue}}}function se(t){return t.replaceAll(\"&\",\"&amp;\").replaceAll(\"<\",\"&lt;\").replaceAll(\">\",\"&gt;\").replaceAll('\"',\"&quot;\").replaceAll(\"'\",\"&#039;\")}var je=\"basic\",bt=\"\",kn=8,yi=5,ue=30,Ci=t=>{let e=[],n=-1,r=-1,i=t.toLowerCase(),s=0;for(let u of i){let o=u.codePointAt(0);o>=12352&&o<=12447||o>=12448&&o<=12543||o>=19968&&o<=40959||o>=44032&&o<=55215||o>=131072&&o<=173791?(n!==-1&&(e.push(i.slice(n,r)),n=-1),e.push(u)):o===32||o===9||o===10||o===13?n!==-1&&(e.push(i.slice(n,r)),n=-1):(n===-1&&(n=s),r=s+1),s+=u.length}return n!==-1&&e.push(i.slice(n)),e},le=new hn.Document({encode:Ci,document:{id:\"id\",tag:\"tags\",index:[{field:\"title\",tokenize:\"forward\"},{field:\"content\",tokenize:\"forward\"},{field:\"tags\",tokenize:\"forward\"}]}}),Z=null,Ht=[],Pt=[],Ie=new Map;function oe(t){let e=t.split(/\\s+/),n=[],r=[];for(let i of e)i.startsWith(\"#\")&&i.length>1?n.push(i.substring(1)):i!==\"#\"&&r.push(i);return{tags:n,query:r.join(\" \").trim()}}function bn(t){let e=t.split(/\\s+/),n=e[e.length-1];return n&&n.startsWith(\"#\")?n.substring(1):null}var Sn=new DOMParser;async function Ei(t){if(Ie.has(t))return Ie.get(t);let e=new URL(Me(t),window.location.origin).toString();try{let n=await fetch(e);if(!n.ok)return[];let r=await n.text(),i=Sn.parseFromString(r??\"\",\"text/html\");Bn(i,e);let s=Array.from(i.getElementsByClassName(\"popover-hint\"));return Ie.set(t,s),s}catch{return[]}}var He=[];function Ft(t){He.push(t)}function Ai(){He.forEach(t=>t()),He.length=0}async function wi(){let t=document.querySelectorAll(\".search\");for(let e of Array.from(t)){let n=e.querySelector(\".search-container\"),r=e.querySelector(\".search-button\"),i=e.querySelector(\".search-bar\"),s=e.querySelector(\".search-layout\");if(!n||!r||!i||!s)continue;let u=n.closest(\".sidebar\"),o=s.getAttribute(\"data-preview\")===\"true\",l=s.getAttribute(\"data-field-priority\"),c=l?JSON.parse(l):[\"title\",\"content\",\"tags\"],f=s.querySelector(\".results-container\");f||(f=document.createElement(\"div\"),f.className=\"results-container\",f.setAttribute(\"role\",\"listbox\"),f.setAttribute(\"aria-label\",\"Search results\"),s.appendChild(f));let h=s.querySelector(\".preview-container\");o&&!h&&(h=document.createElement(\"div\"),h.className=\"preview-container\",s.appendChild(h));let d=document.createElement(\"div\");d.className=\"tag-suggestions\",d.setAttribute(\"role\",\"listbox\"),d.setAttribute(\"aria-label\",\"Tag suggestions\"),d.style.display=\"none\";let a=i.parentElement;a.insertBefore(d,i.nextSibling);let D=document.createElement(\"span\");D.className=\"ghost-text\",D.setAttribute(\"aria-hidden\",\"true\"),a.insertBefore(D,i.nextSibling);let p=-1,g=[],F=!1,m=_=>{if(p<0||p>=g.length){D.textContent=\"\";return}let E=g[p];if(!E.toLowerCase().startsWith(_.toLowerCase())){D.textContent=\"\";return}let L=E.substring(_.length);D.innerHTML=\"\";let S=document.createElement(\"span\");S.style.visibility=\"hidden\",S.textContent=i.value,D.appendChild(S),D.appendChild(document.createTextNode(L))},A=()=>{d.querySelectorAll(\".tag-suggestion-item\").forEach((L,S)=>{L.classList.toggle(\"active\",S===p)});let E=bn(i.value)||\"\";m(E)},x=()=>{F=!1,p=-1,g=[],d.style.display=\"none\",D.textContent=\"\"},b=_=>{let E=i.value,L=E.lastIndexOf(\"#\");L!==-1&&(i.value=E.substring(0,L)+\"#\"+_+\" \"),x(),i.focus(),i.dispatchEvent(new Event(\"input\"))},k=_=>{if(Rt){if(g=_===\"\"?Pt.slice(0,10):Pt.filter(E=>E.toLowerCase().startsWith(_.toLowerCase())).slice(0,10),g.length===0){x();return}p=0,F=!0,tt(d);for(let E=0;E<g.length;E++){let L=g[E],S=document.createElement(\"div\");S.className=\"tag-suggestion-item\"+(E===0?\" active\":\"\"),S.setAttribute(\"role\",\"option\"),S.setAttribute(\"data-tag\",L),S.setAttribute(\"data-index\",String(E)),S.textContent=\"#\"+L,d.appendChild(S)}d.style.display=\"block\",m(_)}},B=_=>!F||g.length===0?!1:(_===\"down\"?p=Math.min(p+1,g.length-1):p=Math.max(p-1,0),A(),!0),y=null,v=0,M=null,T=()=>{n.classList.remove(\"active\"),u&&(u.style.zIndex=\"\"),r.setAttribute(\"aria-expanded\",\"false\"),i.value=\"\",tt(f),h&&tt(h),s.classList.remove(\"display-results\"),je=\"basic\",y=null,x(),r.focus()},W=_=>{je=_,u&&(u.style.zIndex=\"9999\"),n.classList.add(\"active\"),r.setAttribute(\"aria-expanded\",\"true\"),i.focus()},z=async _=>{if(tt(f),_.length===0){let E=document.createElement(\"a\");E.className=\"result-card no-match\";let L=document.createElement(\"h3\");L.textContent=\"No results.\";let S=document.createElement(\"p\");S.textContent=\"Try another search term?\",E.appendChild(L),E.appendChild(S),f.appendChild(E),y=null,h&&tt(h)}else for(let E of _){let L=document.createElement(\"a\");L.className=\"result-card\",L.id=E.slug,L.href=Me(E.slug);let S=document.createElement(\"h3\");if(S.className=\"card-title\",S.innerHTML=E.title.replace(/<(?!\\/?span\\b)[^>]*>/gi,\"\"),L.appendChild(S),E.tags.length>0){let K=document.createElement(\"ul\");K.className=\"tags\",K.innerHTML=E.tags.join(\"\"),L.appendChild(K)}let Y=document.createElement(\"p\");Y.className=\"card-description\",Y.innerHTML=E.content.replace(/<(?!\\/?span\\b)[^>]*>/gi,\"\"),L.appendChild(Y),f.appendChild(L)}},N=()=>Array.from(f.querySelectorAll(\".result-card:not(.no-match)\")),P=()=>{let _=oe(bt);return _.query||(_.tags.length>0?_.tags.join(\" \"):bt)},$=async _=>{if(!h||(tt(h),!_))return;let E=_.id,L=++v,S=await Ei(E);if(L!==v)return;let Y=P(),K=document.createElement(\"div\");K.className=\"preview-inner\";for(let ct of S){let yt=ct.cloneNode(!0);Y.trim()!==\"\"&&(yt.innerHTML=vi(Y,yt)),K.appendChild(yt)}h.appendChild(K),requestAnimationFrame(()=>{let ct=Array.from(h.getElementsByClassName(\"highlight\"));if(ct.length===0)return;ct.sort((he,ce)=>ce.innerHTML.length-he.innerHTML.length);let yt=ct[0],Nt=0,ft=yt;for(;ft&&ft!==h;)Nt+=ft.offsetTop,ft=ft.offsetParent;h.scrollTop=Math.max(0,Nt-50)})},et=_=>{y&&y.classList.remove(\"focus\"),y=_,y&&(y.classList.add(\"focus\"),y.scrollIntoView({block:\"nearest\"})),M&&clearTimeout(M),M=setTimeout(()=>$(y),150)},Q=_=>{let E=N();if(E.length===0){et(null);return}let L=Math.min(Math.max(_,0),E.length-1);et(E[L]??null)},Wt=()=>{let _=N();if(_.length===0)return;let E=y?_.indexOf(y):-1;Q(E+1)},ot=()=>{let _=N();if(_.length===0)return;let E=y?_.indexOf(y):_.length;Q(E-1)},nt=async _=>{let E=_.target.value;bt=E;let L=bn(E);L!==null?k(L):x();let S=oe(E),Y=S.query!==\"\"||S.tags.length>0;if(s.classList.toggle(\"display-results\",Y),je=S.tags.length>0&&!S.query?\"tags\":\"basic\",!Y){tt(f),h&&tt(h),y=null;return}let K;S.query?K=await le.searchAsync({query:S.query,limit:S.tags.length>0?1e4:kn,index:[\"title\",\"content\"]}):S.tags.length>0?K=await le.searchAsync({query:S.tags[0],limit:1e4,index:[\"tags\"]}):K=[];let ct=at=>{let Tt=K.filter(zt=>zt.field===at);return Tt.length===0?[]:[...Tt[0].result]},Nt=[...new Set(c.flatMap(at=>ct(at)))].filter(at=>{if(S.tags.length===0)return!0;let Tt=Ht[at];if(!Tt)return!1;let zt=Z?.[Tt];if(!zt)return!1;let In=zt.tags||[];return S.tags.every(Hn=>In.some(Pn=>Pn.toLowerCase()===Hn.toLowerCase()))}),ft=S.query||(S.tags.length>0?S.tags.join(\" \"):E),he=Nt.map(at=>Bi(ft,at));await z(he.slice(0,kn));let ce=N();et(ce[0]??null)},lt=_=>{_.stopPropagation(),W(\"basic\")};r.addEventListener(\"click\",lt),Ft(()=>r.removeEventListener(\"click\",lt)),i.addEventListener(\"input\",nt),Ft(()=>i.removeEventListener(\"input\",nt));let ht=_=>{if(F){if(_.key===\"ArrowDown\"){_.preventDefault(),B(\"down\");return}if(_.key===\"ArrowUp\"){_.preventDefault(),B(\"up\");return}if(_.key===\"Tab\"){_.preventDefault(),p>=0&&p<g.length&&b(g[p]);return}if(_.key===\"Enter\"&&!_.isComposing&&p>=0&&p<g.length){_.preventDefault(),b(g[p]);return}if(_.key===\"Escape\"){_.preventDefault(),x();return}}if(_.key===\"ArrowUp\"||_.shiftKey&&_.key===\"Tab\"){_.preventDefault(),ot();return}if(_.key===\"ArrowDown\"||_.key===\"Tab\"){_.preventDefault(),Wt();return}if(_.key===\"Enter\"&&!_.isComposing){let E=y;E instanceof HTMLAnchorElement&&(_.preventDefault(),I(),T(),E.click())}};i.addEventListener(\"keydown\",ht),Ft(()=>i.removeEventListener(\"keydown\",ht));let w=_=>{_.key===\"k\"&&(_.ctrlKey||_.metaKey)&&!_.shiftKey?(_.preventDefault(),n.classList.contains(\"active\")?T():W(\"basic\")):_.shiftKey&&(_.ctrlKey||_.metaKey)&&_.key.toLowerCase()===\"k\"&&(_.preventDefault(),W(\"tags\"),i.value=\"#\",i.dispatchEvent(new Event(\"input\")))};document.addEventListener(\"keydown\",w),Ft(()=>document.removeEventListener(\"keydown\",w));let I=()=>{let _=oe(bt),E=_.query||(_.tags.length>0?_.tags.join(\" \"):bt);E.trim()&&sessionStorage.setItem(\"search-term\",E.trim())},_t=_=>{let E=_.target.closest(\".result-card\");!E||E.classList.contains(\"no-match\")||_ instanceof MouseEvent&&(_.altKey||_.ctrlKey||_.metaKey||_.shiftKey)||(I(),T())},Pe=_=>{let E=_.target.closest(\".result-card\");!E||E.classList.contains(\"no-match\")||et(E)};f.addEventListener(\"click\",_t),f.addEventListener(\"mouseover\",Pe),Ft(()=>{f.removeEventListener(\"click\",_t),f.removeEventListener(\"mouseover\",Pe)});let Re=_=>{let E=_.target.closest(\".tag-suggestion-item\");if(!E)return;let L=E.getAttribute(\"data-tag\");L&&b(L)},We=_=>{let E=_.target.closest(\".tag-suggestion-item\");if(!E)return;let L=E.getAttribute(\"data-index\");L!==null&&(p=parseInt(L,10),A())};d.addEventListener(\"click\",Re),d.addEventListener(\"mouseover\",We),Ft(()=>{d.removeEventListener(\"click\",Re),d.removeEventListener(\"mouseover\",We)});let jn=xn(n,T);Ft(jn)}}function Ln(t){let e=t.split(/\\s+/).filter(r=>r.trim()!==\"\"),n=e.length;if(n>1)for(let r=1;r<n;r++)e.push(e.slice(0,r+1).join(\" \"));return e.sort((r,i)=>i.length-r.length)}function vi(t,e){let n=Ln(t).filter(c=>c.trim()!==\"\");if(n.length===0)return e.innerHTML;let r=Sn.parseFromString(e.innerHTML,\"text/html\"),i=n.map(c=>c.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")).join(\"|\");if(i===\"\")return e.innerHTML;let s=new RegExp(i,\"gi\"),u=r.createTreeWalker(r.body,NodeFilter.SHOW_TEXT),o=[],l=u.nextNode();for(;l;)o.push(l),l=u.nextNode();for(let c of o){let f=c.nodeValue??\"\";if(s.lastIndex=0,!s.test(f))continue;s.lastIndex=0;let h=r.createDocumentFragment(),d=0,a;for(;(a=s.exec(f))!==null;){a.index>d&&h.appendChild(r.createTextNode(f.slice(d,a.index)));let D=r.createElement(\"span\");D.className=\"highlight\",D.textContent=a[0],h.appendChild(D),d=a.index+a[0].length}d<f.length&&h.appendChild(r.createTextNode(f.slice(d))),c.parentNode?.replaceChild(h,c)}return r.body.innerHTML}function Tn(t,e,n){let r=Ln(t),i=se(e).split(/\\s+/).filter(l=>l!==\"\"),s=0,u=i.length-1;if(n){let l=d=>r.some(a=>d.toLowerCase().startsWith(a.toLowerCase())),c=i.map(l),f=0,h=0;for(let d=0;d<Math.max(i.length-ue,0);d++){let D=c.slice(d,d+ue).reduce((p,g)=>p+(g?1:0),0);D>=f&&(f=D,h=d)}s=Math.max(h-ue,0),u=Math.min(s+2*ue,i.length-1),i=i.slice(s,u)}let o=i.map(l=>{let c=l;for(let f of r)if(l.toLowerCase().includes(f.toLowerCase())){let h=new RegExp(f.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),\"gi\");c=l.replace(h,d=>`<span class=\"highlight\">${d}</span>`);break}return c}).join(\" \");return(s===0?\"\":\"...\")+o+(u===i.length-1?\"\":\"...\")}function xi(t,e){return!e||e.length===0||t.length===0?[]:e.map(n=>{let r=se(n);return t.some(i=>n.toLowerCase().includes(i.toLowerCase()))?`<li><p class=\"match-tag\">#${r}</p></li>`:`<li><p>#${r}</p></li>`}).slice(0,yi)}function Bi(t,e){let n=Ht[e];if(!n||!Z)return{id:e,slug:\"\",title:\"\",content:\"\",tags:[]};let r=Z[n];if(!r)return{id:e,slug:n,title:\"\",content:\"\",tags:[]};let i=oe(bt);return{id:e,slug:n,title:i.tags.length>0&&!i.query?se(r.title):Tn(t,r.title||\"\"),content:Tn(t,r.content||\"\",!0),tags:xi(i.tags,r.tags)}}async function ki(){if(!Z)return;let t=0,e=[],n=new Set;for(let r of Object.keys(Z)){let i=Z[r];if(i){Ht[t]=r;for(let s of i.tags||[])n.add(s);e.push(le.addAsync(t,{id:t,slug:r,title:i.title||\"\",content:i.content||\"\",tags:i.tags||[]})),t++}}await Promise.all(e),Pt=[...n].sort()}async function bi(){return await fetchData}var Rt=!1;async function Ti(){Rt||(Z=await bi(),await ki(),Rt=!0)}async function Si(t){if(!Rt||!Z)return 0;let e=new Set(Pt),n=0;for(let r of Object.keys(t)){if(Z[r])continue;let i=t[r];if(!i)continue;let s=Ht.length;Ht[s]=r,Z[r]=i;for(let u of i.tags||[])e.add(u);await le.addAsync(s,{id:s,slug:r,title:i.title||\"\",content:i.content||\"\",tags:i.tags||[]}),n++}return Pt=[...e].sort(),n}document.addEventListener(\"content-index-updated\",t=>{let e=t.detail;if(!Rt||!Z)return;let n=e?.slugs;!Array.isArray(n)||n.length===0||(async()=>{try{let r=await fetchData;if(!r||typeof r!=\"object\")return;let i=r.content&&typeof r.content==\"object\"?r.content:r,s={};for(let u of n){let o=i[u];o&&typeof o==\"object\"&&(s[u]=o)}await Si(s)}catch{}})()});function Li(){let t=sessionStorage.getItem(\"search-term\");t&&(sessionStorage.removeItem(\"search-term\"),requestAnimationFrame(()=>{let e=\".popover-hint h1, .popover-hint h2, .popover-hint h3, .popover-hint h4, .popover-hint h5, .popover-hint h6, article h1, article h2, article h3\",n=\".popover-hint p, .popover-hint li, .popover-hint td, .popover-hint th, .popover-hint blockquote, article p, article li\",r=document.querySelectorAll(e),i=document.querySelectorAll(n),s=[...Array.from(r),...Array.from(i)];for(let u of s){let l=(u.textContent??\"\").toLowerCase().indexOf(t.toLowerCase());if(l===-1)continue;let c=document.createTreeWalker(u,NodeFilter.SHOW_TEXT),f=0,h,d=null,a=0,D=null,p=0;for(;h=c.nextNode();){let g=h.nodeValue?.length??0;if(!d&&f+g>l&&(d=h,a=l-f),d&&f+g>=l+t.length){D=h,p=l+t.length-f;break}f+=g}if(!(!d||!D)){try{let g=document.createRange();g.setStart(d,a),g.setEnd(D,p);let F=document.createElement(\"span\");F.className=\"search-scroll-target\",g.surroundContents(F),F.scrollIntoView({block:\"center\",behavior:\"smooth\"}),setTimeout(()=>{F.classList.add(\"fade-out\"),setTimeout(()=>{let m=F.parentNode;m&&(m.replaceChild(document.createTextNode(F.textContent||\"\"),F),m.normalize())},1e3)},2e3)}catch{u.scrollIntoView({block:\"center\",behavior:\"smooth\"})}break}}}))}async function Mn(){Ai(),await Ti(),await wi(),Li()}document.addEventListener(\"nav\",Mn);document.addEventListener(\"render\",Mn);\n","/** Normal hydration that attaches to a DOM tree but does not diff it. */\nexport const MODE_HYDRATE = 1 << 5;\n/** Signifies this VNode suspended on the previous render */\nexport const MODE_SUSPENDED = 1 << 7;\n/** Indicates that this node needs to be inserted while patching children */\nexport const INSERT_VNODE = 1 << 2;\n/** Indicates a VNode has been matched with another VNode in the diff */\nexport const MATCHED = 1 << 1;\n\n/** Reset all mode flags */\nexport const RESET_MODE = ~(MODE_HYDRATE | MODE_SUSPENDED);\n\nexport const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\nexport const XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\nexport const MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n\nexport const NULL = null;\nexport const UNDEFINED = undefined;\nexport const EMPTY_OBJ = /** @type {any} */ ({});\nexport const EMPTY_ARR = [];\nexport const IS_NON_DIMENSIONAL =\n\t/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;\n","import { _catchError } from './diff/catch-error';\n\n/**\n * The `option` object can potentially contain callback functions\n * that are called during various stages of our renderer. This is the\n * foundation on which all our addons like `preact/debug`, `preact/compat`,\n * and `preact/hooks` are based on. See the `Options` type in `internal.d.ts`\n * for a full list of available option hooks (most editors/IDEs allow you to\n * ctrl+click or cmd+click on mac the type definition below).\n * @type {import('./internal').Options}\n */\nconst options = {\n\t_catchError\n};\n\nexport default options;\n","import { NULL } from '../constants';\n\n/**\n * Find the closest error boundary to a thrown error and call it\n * @param {object} error The thrown value\n * @param {import('../internal').VNode} vnode The vnode that threw the error that was caught (except\n * for unmounting when this parameter is the highest parent that was being\n * unmounted)\n * @param {import('../internal').VNode} [oldVNode]\n * @param {import('../internal').ErrorInfo} [errorInfo]\n */\nexport function _catchError(error, vnode, oldVNode, errorInfo) {\n\t/** @type {import('../internal').Component} */\n\tlet component,\n\t\t/** @type {import('../internal').ComponentType} */\n\t\tctor,\n\t\t/** @type {boolean} */\n\t\thandled;\n\n\tfor (; (vnode = vnode._parent); ) {\n\t\tif ((component = vnode._component) && !component._processingException) {\n\t\t\ttry {\n\t\t\t\tctor = component.constructor;\n\n\t\t\t\tif (ctor && ctor.getDerivedStateFromError != NULL) {\n\t\t\t\t\tcomponent.setState(ctor.getDerivedStateFromError(error));\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\tif (component.componentDidCatch != NULL) {\n\t\t\t\t\tcomponent.componentDidCatch(error, errorInfo || {});\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\t// This is an error boundary. Mark it as having bailed out, and whether it was mid-hydration.\n\t\t\t\tif (handled) {\n\t\t\t\t\treturn (component._pendingError = component);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\terror = e;\n\t\t\t}\n\t\t}\n\t}\n\n\tthrow error;\n}\n","import { assign } from './util';\nimport { diff, commitRoot } from './diff/index';\nimport options from './options';\nimport { Fragment } from './create-element';\nimport { MODE_HYDRATE, NULL } from './constants';\n\n/**\n * Base Component class. Provides `setState()` and `forceUpdate()`, which\n * trigger rendering\n * @param {object} props The initial component props\n * @param {object} context The initial context from parent components'\n * getChildContext\n */\nexport function BaseComponent(props, context) {\n\tthis.props = props;\n\tthis.context = context;\n}\n\n/**\n * Update component state and schedule a re-render.\n * @this {import('./internal').Component}\n * @param {object | ((s: object, p: object) => object)} update A hash of state\n * properties to update with new values or a function that given the current\n * state and props returns a new partial state\n * @param {() => void} [callback] A function to be called once component state is\n * updated\n */\nBaseComponent.prototype.setState = function (update, callback) {\n\t// only clone state when copying to nextState the first time.\n\tlet s;\n\tif (this._nextState != NULL && this._nextState != this.state) {\n\t\ts = this._nextState;\n\t} else {\n\t\ts = this._nextState = assign({}, this.state);\n\t}\n\n\tif (typeof update == 'function') {\n\t\t// Some libraries like `immer` mark the current state as readonly,\n\t\t// preventing us from mutating it, so we need to clone it. See #2716\n\t\tupdate = update(assign({}, s), this.props);\n\t}\n\n\tif (update) {\n\t\tassign(s, update);\n\t}\n\n\t// Skip update if updater function returned null\n\tif (update == NULL) return;\n\n\tif (this._vnode) {\n\t\tif (callback) {\n\t\t\tthis._stateCallbacks.push(callback);\n\t\t}\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Immediately perform a synchronous re-render of the component\n * @this {import('./internal').Component}\n * @param {() => void} [callback] A function to be called after component is\n * re-rendered\n */\nBaseComponent.prototype.forceUpdate = function (callback) {\n\tif (this._vnode) {\n\t\t// Set render mode so that we can differentiate where the render request\n\t\t// is coming from. We need this because forceUpdate should never call\n\t\t// shouldComponentUpdate\n\t\tthis._force = true;\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Accepts `props` and `state`, and returns a new Virtual DOM tree to build.\n * Virtual DOM is generally constructed via [JSX](https://jasonformat.com/wtf-is-jsx).\n * @param {object} props Props (eg: JSX attributes) received from parent\n * element/component\n * @param {object} state The component's current state\n * @param {object} context Context object, as returned by the nearest\n * ancestor's `getChildContext()`\n * @returns {ComponentChildren | void}\n */\nBaseComponent.prototype.render = Fragment;\n\n/**\n * @param {import('./internal').VNode} vnode\n * @param {number | null} [childIndex]\n */\nexport function getDomSibling(vnode, childIndex) {\n\tif (childIndex == NULL) {\n\t\t// Use childIndex==null as a signal to resume the search from the vnode's sibling\n\t\treturn vnode._parent\n\t\t\t? getDomSibling(vnode._parent, vnode._index + 1)\n\t\t\t: NULL;\n\t}\n\n\tlet sibling;\n\tfor (; childIndex < vnode._children.length; childIndex++) {\n\t\tsibling = vnode._children[childIndex];\n\n\t\tif (sibling != NULL && sibling._dom != NULL) {\n\t\t\t// Since updateParentDomPointers keeps _dom pointer correct,\n\t\t\t// we can rely on _dom to tell us if this subtree contains a\n\t\t\t// rendered DOM node, and what the first rendered DOM node is\n\t\t\treturn sibling._dom;\n\t\t}\n\t}\n\n\t// If we get here, we have not found a DOM node in this vnode's children.\n\t// We must resume from this vnode's sibling (in it's parent _children array)\n\t// Only climb up and search the parent if we aren't searching through a DOM\n\t// VNode (meaning we reached the DOM parent of the original vnode that began\n\t// the search)\n\treturn typeof vnode.type == 'function' ? getDomSibling(vnode) : NULL;\n}\n\n/**\n * Trigger in-place re-rendering of a component.\n * @param {import('./internal').Component} component The component to rerender\n */\nfunction renderComponent(component) {\n\tif (component._parentDom && component._dirty) {\n\t\tlet oldVNode = component._vnode,\n\t\t\toldDom = oldVNode._dom,\n\t\t\tcommitQueue = [],\n\t\t\trefQueue = [],\n\t\t\tnewVNode = assign({}, oldVNode);\n\t\tnewVNode._original = oldVNode._original + 1;\n\t\tif (options.vnode) options.vnode(newVNode);\n\n\t\tdiff(\n\t\t\tcomponent._parentDom,\n\t\t\tnewVNode,\n\t\t\toldVNode,\n\t\t\tcomponent._globalContext,\n\t\t\tcomponent._parentDom.namespaceURI,\n\t\t\toldVNode._flags & MODE_HYDRATE ? [oldDom] : NULL,\n\t\t\tcommitQueue,\n\t\t\toldDom == NULL ? getDomSibling(oldVNode) : oldDom,\n\t\t\t!!(oldVNode._flags & MODE_HYDRATE),\n\t\t\trefQueue\n\t\t);\n\n\t\tnewVNode._original = oldVNode._original;\n\t\tnewVNode._parent._children[newVNode._index] = newVNode;\n\t\tcommitRoot(commitQueue, newVNode, refQueue);\n\t\toldVNode._dom = oldVNode._parent = null;\n\n\t\tif (newVNode._dom != oldDom) {\n\t\t\tupdateParentDomPointers(newVNode);\n\t\t}\n\t}\n}\n\n/**\n * @param {import('./internal').VNode} vnode\n */\nfunction updateParentDomPointers(vnode) {\n\tif ((vnode = vnode._parent) != NULL && vnode._component != NULL) {\n\t\tvnode._dom = vnode._component.base = NULL;\n\t\tvnode._children.some(child => {\n\t\t\tif (child != NULL && child._dom != NULL) {\n\t\t\t\treturn (vnode._dom = vnode._component.base = child._dom);\n\t\t\t}\n\t\t});\n\n\t\treturn updateParentDomPointers(vnode);\n\t}\n}\n\n/**\n * The render queue\n * @type {Array<import('./internal').Component>}\n */\nlet rerenderQueue = [];\n\n/*\n * The value of `Component.debounce` must asynchronously invoke the passed in callback. It is\n * important that contributors to Preact can consistently reason about what calls to `setState`, etc.\n * do, and when their effects will be applied. See the links below for some further reading on designing\n * asynchronous APIs.\n * * [Designing APIs for Asynchrony](https://blog.izs.me/2013/08/designing-apis-for-asynchrony)\n * * [Callbacks synchronous and asynchronous](https://blog.ometer.com/2011/07/24/callbacks-synchronous-and-asynchronous/)\n */\n\nlet prevDebounce;\n\nconst defer =\n\ttypeof Promise == 'function'\n\t\t? Promise.prototype.then.bind(Promise.resolve())\n\t\t: setTimeout;\n\n/**\n * Enqueue a rerender of a component\n * @param {import('./internal').Component} c The component to rerender\n */\nexport function enqueueRender(c) {\n\tif (\n\t\t(!c._dirty &&\n\t\t\t(c._dirty = true) &&\n\t\t\trerenderQueue.push(c) &&\n\t\t\t!process._rerenderCount++) ||\n\t\tprevDebounce != options.debounceRendering\n\t) {\n\t\tprevDebounce = options.debounceRendering;\n\t\t(prevDebounce || defer)(process);\n\t}\n}\n\n/**\n * @param {import('./internal').Component} a\n * @param {import('./internal').Component} b\n */\nconst depthSort = (a, b) => a._vnode._depth - b._vnode._depth;\n\n/** Flush the render queue by rerendering all queued components */\nfunction process() {\n\ttry {\n\t\tlet c,\n\t\t\tl = 1;\n\n\t\t// Don't update `renderCount` yet. Keep its value non-zero to prevent unnecessary\n\t\t// process() calls from getting scheduled while `queue` is still being consumed.\n\t\twhile (rerenderQueue.length) {\n\t\t\t// Keep the rerender queue sorted by (depth, insertion order). The queue\n\t\t\t// will initially be sorted on the first iteration only if it has more than 1 item.\n\t\t\t//\n\t\t\t// New items can be added to the queue e.g. when rerendering a provider, so we want to\n\t\t\t// keep the order from top to bottom with those new items so we can handle them in a\n\t\t\t// single pass\n\t\t\tif (rerenderQueue.length > l) {\n\t\t\t\trerenderQueue.sort(depthSort);\n\t\t\t}\n\n\t\t\tc = rerenderQueue.shift();\n\t\t\tl = rerenderQueue.length;\n\n\t\t\trenderComponent(c);\n\t\t}\n\t} finally {\n\t\trerenderQueue.length = process._rerenderCount = 0;\n\t}\n}\n\nprocess._rerenderCount = 0;\n","import { IS_NON_DIMENSIONAL, NULL, SVG_NAMESPACE } from '../constants';\nimport options from '../options';\n\n// Per-instance unique key for event clock stamps. Each Preact copy on the page\n// gets its own random suffix so that `_dispatched` / `_attached` properties on\n// shared event objects and handler functions cannot collide across instances.\n// ~1 in 60M collision odds - if you have that many praect versions on the page,\n// you deserve some weird bugs.\n// In 11 we can replace this with a\n// Symbol\nlet _id = Math.random().toString(8),\n\tEVENT_DISPATCHED = '__d' + _id,\n\tEVENT_ATTACHED = '__a' + _id;\n\nfunction setStyle(style, key, value) {\n\tif (key[0] == '-') {\n\t\tstyle.setProperty(key, value == NULL ? '' : value);\n\t} else if (value == NULL) {\n\t\tstyle[key] = '';\n\t} else if (typeof value != 'number' || IS_NON_DIMENSIONAL.test(key)) {\n\t\tstyle[key] = value;\n\t} else {\n\t\tstyle[key] = value + 'px';\n\t}\n}\n\nconst CAPTURE_REGEX = /(PointerCapture)$|Capture$/i;\n\n// A logical clock to solve issues like https://github.com/preactjs/preact/issues/3927.\n// When the DOM performs an event it leaves micro-ticks in between bubbling up which means that\n// an event can trigger on a newly reated DOM-node while the event bubbles up.\n//\n// Originally inspired by Vue\n// (https://github.com/vuejs/core/blob/caeb8a68811a1b0f79/packages/runtime-dom/src/modules/events.ts#L90-L101),\n// but modified to use a logical clock instead of Date.now() in case event handlers get attached\n// and events get dispatched during the same millisecond.\n//\n// The clock is incremented after each new event dispatch. This allows 1 000 000 new events\n// per second for over 280 years before the value reaches Number.MAX_SAFE_INTEGER (2**53 - 1).\nlet eventClock = 0;\n\n/**\n * Set a property value on a DOM node\n * @param {import('../internal').PreactElement} dom The DOM node to modify\n * @param {string} name The name of the property to set\n * @param {*} value The value to set the property to\n * @param {*} oldValue The old value the property had\n * @param {string} namespace Whether or not this DOM node is an SVG node or not\n */\nexport function setProperty(dom, name, value, oldValue, namespace) {\n\tlet useCapture;\n\n\to: if (name == 'style') {\n\t\tif (typeof value == 'string') {\n\t\t\tdom.style.cssText = value;\n\t\t} else {\n\t\t\tif (typeof oldValue == 'string') {\n\t\t\t\tdom.style.cssText = oldValue = '';\n\t\t\t}\n\n\t\t\tif (oldValue) {\n\t\t\t\tfor (name in oldValue) {\n\t\t\t\t\tif (!(value && name in value)) {\n\t\t\t\t\t\tsetStyle(dom.style, name, '');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (value) {\n\t\t\t\tfor (name in value) {\n\t\t\t\t\tif (!oldValue || value[name] != oldValue[name]) {\n\t\t\t\t\t\tsetStyle(dom.style, name, value[name]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Benchmark for comparison: https://esbench.com/bench/574c954bdb965b9a00965ac6\n\telse if (name[0] == 'o' && name[1] == 'n') {\n\t\tuseCapture = name != (name = name.replace(CAPTURE_REGEX, '$1'));\n\t\tconst lowerCaseName = name.toLowerCase();\n\n\t\t// Infer correct casing for DOM built-in events:\n\t\tif (lowerCaseName in dom || name == 'onFocusOut' || name == 'onFocusIn')\n\t\t\tname = lowerCaseName.slice(2);\n\t\telse name = name.slice(2);\n\n\t\tif (!dom._listeners) dom._listeners = {};\n\t\tdom._listeners[name + useCapture] = value;\n\n\t\tif (value) {\n\t\t\tif (!oldValue) {\n\t\t\t\tvalue[EVENT_ATTACHED] = eventClock;\n\t\t\t\tdom.addEventListener(\n\t\t\t\t\tname,\n\t\t\t\t\tuseCapture ? eventProxyCapture : eventProxy,\n\t\t\t\t\tuseCapture\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tvalue[EVENT_ATTACHED] = oldValue[EVENT_ATTACHED];\n\t\t\t}\n\t\t} else {\n\t\t\tdom.removeEventListener(\n\t\t\t\tname,\n\t\t\t\tuseCapture ? eventProxyCapture : eventProxy,\n\t\t\t\tuseCapture\n\t\t\t);\n\t\t}\n\t} else {\n\t\tif (namespace == SVG_NAMESPACE) {\n\t\t\t// Normalize incorrect prop usage for SVG:\n\t\t\t// - xlink:href / xlinkHref --> href (xlink:href was removed from SVG and isn't needed)\n\t\t\t// - className --> class\n\t\t\tname = name.replace(/xlink(H|:h)/, 'h').replace(/sName$/, 's');\n\t\t} else if (\n\t\t\tname != 'width' &&\n\t\t\tname != 'height' &&\n\t\t\tname != 'href' &&\n\t\t\tname != 'list' &&\n\t\t\tname != 'form' &&\n\t\t\t// Default value in browsers is `-1` and an empty string is\n\t\t\t// cast to `0` instead\n\t\t\tname != 'tabIndex' &&\n\t\t\tname != 'download' &&\n\t\t\tname != 'rowSpan' &&\n\t\t\tname != 'colSpan' &&\n\t\t\tname != 'role' &&\n\t\t\tname != 'popover' &&\n\t\t\tname in dom\n\t\t) {\n\t\t\ttry {\n\t\t\t\tdom[name] = value == NULL ? '' : value;\n\t\t\t\t// labelled break is 1b smaller here than a return statement (sorry)\n\t\t\t\tbreak o;\n\t\t\t} catch (e) {}\n\t\t}\n\n\t\t// aria- and data- attributes have no boolean representation.\n\t\t// A `false` value is different from the attribute not being\n\t\t// present, so we can't remove it. For non-boolean aria\n\t\t// attributes we could treat false as a removal, but the\n\t\t// amount of exceptions would cost too many bytes. On top of\n\t\t// that other frameworks generally stringify `false`.\n\n\t\tif (typeof value == 'function') {\n\t\t\t// never serialize functions as attribute values\n\t\t} else if (value != NULL && (value !== false || name[4] == '-')) {\n\t\t\tdom.setAttribute(name, name == 'popover' && value == true ? '' : value);\n\t\t} else {\n\t\t\tdom.removeAttribute(name);\n\t\t}\n\t}\n}\n\n/**\n * Create an event proxy function.\n * @param {boolean} useCapture Is the event handler for the capture phase.\n * @private\n */\nfunction createEventProxy(useCapture) {\n\t/**\n\t * Proxy an event to hooked event handlers\n\t * @param {import('../internal').PreactEvent} e The event object from the browser\n\t * @private\n\t */\n\treturn function (e) {\n\t\tif (this._listeners) {\n\t\t\tconst eventHandler = this._listeners[e.type + useCapture];\n\t\t\tif (e[EVENT_DISPATCHED] == NULL) {\n\t\t\t\te[EVENT_DISPATCHED] = eventClock++;\n\n\t\t\t\t// When `e[EVENT_DISPATCHED]` is smaller than the time when the targeted event\n\t\t\t\t// handler was attached we know we have bubbled up to an element that was added\n\t\t\t\t// during patching the DOM.\n\t\t\t} else if (e[EVENT_DISPATCHED] < eventHandler[EVENT_ATTACHED]) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn eventHandler(options.event ? options.event(e) : e);\n\t\t}\n\t};\n}\n\nconst eventProxy = createEventProxy(false);\nconst eventProxyCapture = createEventProxy(true);\n","import { enqueueRender } from './component';\nimport { NULL } from './constants';\n\nexport let i = 0;\n\nexport function createContext(defaultValue) {\n\tfunction Context(props) {\n\t\tif (!this.getChildContext) {\n\t\t\t/** @type {Set<import('./internal').Component> | null} */\n\t\t\tlet subs = new Set();\n\t\t\tlet ctx = {};\n\t\t\tctx[Context._id] = this;\n\n\t\t\tthis.getChildContext = () => ctx;\n\n\t\t\tthis.componentWillUnmount = () => {\n\t\t\t\tsubs = NULL;\n\t\t\t};\n\n\t\t\tthis.shouldComponentUpdate = function (_props) {\n\t\t\t\t// @ts-expect-error even\n\t\t\t\tif (this.props.value != _props.value) {\n\t\t\t\t\tsubs.forEach(c => {\n\t\t\t\t\t\tc._force = true;\n\t\t\t\t\t\tenqueueRender(c);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tthis.sub = c => {\n\t\t\t\tsubs.add(c);\n\t\t\t\tlet old = c.componentWillUnmount;\n\t\t\t\tc.componentWillUnmount = () => {\n\t\t\t\t\tif (subs) {\n\t\t\t\t\t\tsubs.delete(c);\n\t\t\t\t\t}\n\t\t\t\t\tif (old) old.call(c);\n\t\t\t\t};\n\t\t\t};\n\t\t}\n\n\t\treturn props.children;\n\t}\n\n\tContext._id = '__cC' + i++;\n\tContext._defaultValue = defaultValue;\n\n\t/** @type {import('./internal').FunctionComponent} */\n\tContext.Consumer = (props, contextValue) => {\n\t\treturn props.children(contextValue);\n\t};\n\n\t// we could also get rid of _contextRef entirely\n\tContext.Provider =\n\t\tContext._contextRef =\n\t\tContext.Consumer.contextType =\n\t\t\tContext;\n\n\treturn Context;\n}\n","import { options, Fragment } from 'preact';\nimport { encodeEntities } from './utils';\nimport { IS_NON_DIMENSIONAL } from '../../src/constants';\n\nlet vnodeId = 0;\n\nconst isArray = Array.isArray;\n\n/**\n * @fileoverview\n * This file exports various methods that implement Babel's \"automatic\" JSX runtime API:\n * - jsx(type, props, key)\n * - jsxs(type, props, key)\n * - jsxDEV(type, props, key, __source, __self)\n *\n * The implementation of createVNode here is optimized for performance.\n * Benchmarks: https://esbench.com/bench/5f6b54a0b4632100a7dcd2b3\n */\n\n/**\n * JSX.Element factory used by Babel's {runtime:\"automatic\"} JSX transform\n * @param {VNode['type']} type\n * @param {VNode['props']} props\n * @param {VNode['key']} [key]\n * @param {unknown} [isStaticChildren]\n * @param {unknown} [__source]\n * @param {unknown} [__self]\n */\nfunction createVNode(type, props, key, isStaticChildren, __source, __self) {\n\tif (!props) props = {};\n\t// We'll want to preserve `ref` in props to get rid of the need for\n\t// forwardRef components in the future, but that should happen via\n\t// a separate PR.\n\tlet normalizedProps = props,\n\t\tref,\n\t\ti;\n\n\tif ('ref' in normalizedProps) {\n\t\tnormalizedProps = {};\n\t\tfor (i in props) {\n\t\t\tif (i == 'ref') {\n\t\t\t\tref = props[i];\n\t\t\t} else {\n\t\t\t\tnormalizedProps[i] = props[i];\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @type {VNode & { __source: any; __self: any }} */\n\tconst vnode = {\n\t\ttype,\n\t\tprops: normalizedProps,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t_component: null,\n\t\tconstructor: undefined,\n\t\t_original: --vnodeId,\n\t\t_index: -1,\n\t\t_flags: 0,\n\t\t__source,\n\t\t__self\n\t};\n\n\t// If a Component VNode, check for and apply defaultProps.\n\t// Note: `type` is often a String, and can be `undefined` in development.\n\tif (typeof type === 'function' && (ref = type.defaultProps)) {\n\t\tfor (i in ref)\n\t\t\tif (normalizedProps[i] === undefined) {\n\t\t\t\tnormalizedProps[i] = ref[i];\n\t\t\t}\n\t}\n\n\tif (options.vnode) options.vnode(vnode);\n\treturn vnode;\n}\n\n/**\n * Create a template vnode. This function is not expected to be\n * used directly, but rather through a precompile JSX transform\n * @param {string[]} templates\n * @param {Array<string | null | VNode>} exprs\n * @returns {VNode}\n */\nfunction jsxTemplate(templates, ...exprs) {\n\tconst vnode = createVNode(Fragment, { tpl: templates, exprs });\n\t// Bypass render to string top level Fragment optimization\n\tvnode.key = vnode._vnode;\n\treturn vnode;\n}\n\nconst JS_TO_CSS = {};\nconst CSS_REGEX = /[A-Z]/g;\n\n/**\n * Unwrap potential signals.\n * @param {*} value\n * @returns {*}\n */\nfunction normalizeAttrValue(value) {\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.valueOf === 'function'\n\t\t? value.valueOf()\n\t\t: value;\n}\n\n/**\n * Serialize an HTML attribute to a string. This function is not\n * expected to be used directly, but rather through a precompile\n * JSX transform\n * @param {string} name The attribute name\n * @param {*} value The attribute value\n * @returns {string}\n */\nfunction jsxAttr(name, value) {\n\tif (options.attr) {\n\t\tconst result = options.attr(name, value);\n\t\tif (typeof result === 'string') return result;\n\t}\n\n\tvalue = normalizeAttrValue(value);\n\n\tif (name === 'ref' || name === 'key') return '';\n\tif (name === 'style' && typeof value === 'object') {\n\t\tlet str = '';\n\t\tfor (let prop in value) {\n\t\t\tlet val = value[prop];\n\t\t\tif (val != null && val !== '') {\n\t\t\t\tconst name =\n\t\t\t\t\tprop[0] == '-'\n\t\t\t\t\t\t? prop\n\t\t\t\t\t\t: JS_TO_CSS[prop] ||\n\t\t\t\t\t\t\t(JS_TO_CSS[prop] = prop.replace(CSS_REGEX, '-$&').toLowerCase());\n\n\t\t\t\tlet suffix = ';';\n\t\t\t\tif (\n\t\t\t\t\ttypeof val === 'number' &&\n\t\t\t\t\t// Exclude custom-attributes\n\t\t\t\t\t!name.startsWith('--') &&\n\t\t\t\t\t!IS_NON_DIMENSIONAL.test(name)\n\t\t\t\t) {\n\t\t\t\t\tsuffix = 'px;';\n\t\t\t\t}\n\t\t\t\tstr = str + name + ':' + val + suffix;\n\t\t\t}\n\t\t}\n\t\treturn name + '=\"' + encodeEntities(str) + '\"';\n\t}\n\n\tif (\n\t\tvalue == null ||\n\t\tvalue === false ||\n\t\ttypeof value === 'function' ||\n\t\ttypeof value === 'object'\n\t) {\n\t\treturn '';\n\t} else if (value === true) return name;\n\n\treturn name + '=\"' + encodeEntities('' + value) + '\"';\n}\n\n/**\n * Escape a dynamic child passed to `jsxTemplate`. This function\n * is not expected to be used directly, but rather through a\n * precompile JSX transform\n * @param {*} value\n * @returns {string | null | VNode | Array<string | null | VNode>}\n */\nfunction jsxEscape(value) {\n\tif (\n\t\tvalue == null ||\n\t\ttypeof value === 'boolean' ||\n\t\ttypeof value === 'function'\n\t) {\n\t\treturn null;\n\t}\n\n\tif (typeof value === 'object') {\n\t\t// Check for VNode\n\t\tif (value.constructor === undefined) return value;\n\n\t\tif (isArray(value)) {\n\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\tvalue[i] = jsxEscape(value[i]);\n\t\t\t}\n\t\t\treturn value;\n\t\t}\n\t}\n\n\treturn encodeEntities('' + value);\n}\n\nexport {\n\tcreateVNode as jsx,\n\tcreateVNode as jsxs,\n\tcreateVNode as jsxDEV,\n\tFragment,\n\t// precompiled JSX transform\n\tjsxTemplate,\n\tjsxAttr,\n\tjsxEscape\n};\n","import type {\n QuartzComponent,\n QuartzComponentProps,\n QuartzComponentConstructor,\n} from \"@quartz-community/types\";\nimport { classNames } from \"../util/lang\";\nimport { i18n } from \"../i18n\";\nimport style from \"./styles/search.scss\";\n// @ts-expect-error - inline script imported as string by esbuild loader\nimport script from \"./scripts/search.inline.ts\";\n\nexport type SearchField = \"title\" | \"content\" | \"tags\";\n\nexport interface SearchOptions {\n enablePreview: boolean;\n fieldPriority: SearchField[];\n}\n\nconst defaultOptions: SearchOptions = {\n enablePreview: true,\n fieldPriority: [\"title\", \"content\", \"tags\"],\n};\n\nexport default ((userOpts?: Partial<SearchOptions>) => {\n const Search: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {\n const opts = { ...defaultOptions, ...userOpts };\n const locale = cfg.locale ?? \"en-US\";\n const searchPlaceholder = i18n(locale).components.search.searchBarPlaceholder;\n\n return (\n <div class={classNames(displayClass, \"search\")}>\n <button\n class=\"search-button\"\n aria-label={i18n(locale).components.search.title}\n aria-expanded=\"false\"\n >\n <svg role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 19.9 19.7\">\n <title>Search</title>\n <g class=\"search-path\" fill=\"none\">\n <path stroke-linecap=\"square\" d=\"M18.5 18.3l-5.4-5.4\" />\n <circle cx=\"8\" cy=\"8\" r=\"7\" />\n </g>\n </svg>\n <p>{i18n(locale).components.search.title}</p>\n </button>\n <div class=\"search-container\">\n <div class=\"search-space\">\n <input\n autocomplete=\"off\"\n class=\"search-bar\"\n name=\"search\"\n type=\"text\"\n aria-label={searchPlaceholder}\n placeholder={searchPlaceholder}\n />\n <div\n class=\"search-layout\"\n data-preview={opts.enablePreview}\n data-field-priority={JSON.stringify(opts.fieldPriority)}\n ></div>\n </div>\n </div>\n </div>\n );\n };\n\n Search.afterDOMLoaded = script;\n Search.css = style;\n\n return Search;\n}) satisfies QuartzComponentConstructor;\n"]}
1
+ {"version":3,"sources":["../node_modules/@quartz-community/utils/src/lang.ts","../src/i18n/locales/en-US.ts","../src/i18n/locales/ar-SA.ts","../src/i18n/locales/ca-ES.ts","../src/i18n/locales/cs-CZ.ts","../src/i18n/locales/de-DE.ts","../src/i18n/locales/en-GB.ts","../src/i18n/locales/es-ES.ts","../src/i18n/locales/fa-IR.ts","../src/i18n/locales/fi-FI.ts","../src/i18n/locales/fr-FR.ts","../src/i18n/locales/he-IL.ts","../src/i18n/locales/hu-HU.ts","../src/i18n/locales/id-ID.ts","../src/i18n/locales/it-IT.ts","../src/i18n/locales/ja-JP.ts","../src/i18n/locales/kk-KZ.ts","../src/i18n/locales/ko-KR.ts","../src/i18n/locales/lt-LT.ts","../src/i18n/locales/nb-NO.ts","../src/i18n/locales/nl-NL.ts","../src/i18n/locales/pl-PL.ts","../src/i18n/locales/pt-BR.ts","../src/i18n/locales/ro-RO.ts","../src/i18n/locales/ru-RU.ts","../src/i18n/locales/th-TH.ts","../src/i18n/locales/tr-TR.ts","../src/i18n/locales/uk-UA.ts","../src/i18n/locales/vi-VN.ts","../src/i18n/locales/zh-CN.ts","../src/i18n/locales/zh-TW.ts","../src/i18n/index.ts","../src/components/styles/search.scss","../src/components/scripts/search.inline.ts","../node_modules/preact/src/constants.js","../node_modules/preact/src/options.js","../node_modules/preact/src/diff/catch-error.js","../node_modules/preact/src/component.js","../node_modules/preact/src/diff/props.js","../node_modules/preact/src/create-context.js","../node_modules/preact/jsx-runtime/src/index.js","../src/components/Search.tsx"],"names":["options","__e","error","vnode","oldVNode","errorInfo","component","ctor","handled","__","__c","constructor","getDerivedStateFromError","setState","__d","componentDidCatch","__E","e","Promise","prototype","then","bind","resolve","setTimeout","Math","random","toString","vnodeId","createVNode","type","props","key","isStaticChildren","__source","__self","ref","i","normalizedProps","__k","__b","__v","__i","__u","defaultProps","u"],"mappings":";AAIO,SAAS,cAAc,OAAA,EAAwD;AACpF,EAAA,OAAO,OAAA,CAAQ,MAAA,CAAO,OAAO,CAAA,CAAE,KAAK,GAAG,CAAA;AACzC;;;ACNA,IAAO,aAAA,GAAQ;AAAA,EACb,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA,MACN,KAAA,EAAO,QAAA;AAAA,MACP,oBAAA,EAAsB,yBAAA;AAAA,MACtB,SAAA,EAAW,aAAA;AAAA,MACX,aAAA,EAAe,0BAAA;AAAA,MACf,aAAA,EAAe,eAAA;AAAA,MACf,WAAA,EAAa;AAAA;AACf;AAEJ,CAAA;;;ACXA,IAAO,aAAA,GAAQ;AAAA,EACb,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA,MACN,KAAA,EAAO,oBAAA;AAAA,MACP,oBAAA,EAAsB,uEAAA;AAAA,MACtB,SAAA,EAAW,aAAA;AAAA,MACX,aAAA,EAAe,0BAAA;AAAA,MACf,aAAA,EAAe,eAAA;AAAA,MACf,WAAA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GAAA,EAAI;AAAA,eAAA,EAC9B;AAAA,aAAA,EACF,CAAA;AAAA,4BACAA,GAAC,GAAA,EAAA,EAAG,QAAA,EAAA,IAAA,CAAK,MAAM,CAAA,CAAE,UAAA,CAAW,OAAO,KAAA,EAAM;AAAA;AAAA;AAAA,OAC3C;AAAA,sBACAA,GAAC,KAAA,EAAA,EAAI,KAAA,EAAM,oBACT,QAAA,kBAAAA,EAAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,cAAA,EACT,QAAA,EAAA;AAAA,wBAAAA,EAAAA;AAAA,UAAC,OAAA;AAAA,UAAA;AAAA,YACC,YAAA,EAAa,KAAA;AAAA,YACb,KAAA,EAAM,YAAA;AAAA,YACN,IAAA,EAAK,QAAA;AAAA,YACL,IAAA,EAAK,MAAA;AAAA,YACL,YAAA,EAAY,iBAAA;AAAA,YACZ,WAAA,EAAa;AAAA;AAAA,SACf;AAAA,wBACAA,EAAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,KAAA,EAAM,eAAA;AAAA,YACN,gBAAc,IAAA,CAAK,aAAA;AAAA,YACnB,qBAAA,EAAqB,IAAA,CAAK,SAAA,CAAU,IAAA,CAAK,aAAa;AAAA;AAAA;AACvD,OAAA,EACH,CAAA,EACF;AAAA,KAAA,EACF,CAAA;AAAA,EAEJ,CAAA;AAEA,EAAA,MAAA,CAAO,cAAA,GAAiB,qBAAA;AACxB,EAAA,MAAA,CAAO,GAAA,GAAM,cAAA;AAEb,EAAA,OAAO,MAAA;AACT,CAAA","file":"index.js","sourcesContent":["export function capitalize(s: string): string {\n return s.substring(0, 1).toUpperCase() + s.substring(1);\n}\n\nexport function classNames(...classes: (string | undefined | null | false)[]): string {\n return classes.filter(Boolean).join(\" \");\n}\n","export default {\n components: {\n search: {\n title: \"Search\",\n searchBarPlaceholder: \"Search for something...\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"بحث\",\n searchBarPlaceholder: \"ابحث عن شيء ما\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Cercar\",\n searchBarPlaceholder: \"Cerca alguna cosa\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Hledat\",\n searchBarPlaceholder: \"Hledejte něco\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Suche\",\n searchBarPlaceholder: \"Suche nach etwas...\",\n noResults: \"Keine Ergebnisse.\",\n noResultsHint: \"Versuchen Sie einen anderen Suchbegriff?\",\n tagFilterHint: \"Nach Tag filtern\",\n noTagsFound: \"Keine passenden Tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Search\",\n searchBarPlaceholder: \"Search for something\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Buscar\",\n searchBarPlaceholder: \"Buscar algo...\",\n noResults: \"Sin resultados.\",\n noResultsHint: \"\\u00bfIntentar con otro t\\u00e9rmino de b\\u00fasqueda?\",\n tagFilterHint: \"Filtrar por etiqueta\",\n noTagsFound: \"No se encontraron etiquetas\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"جستجو\",\n searchBarPlaceholder: \"مطلبی را جستجو کنید\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Haku\",\n searchBarPlaceholder: \"Hae jotain\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Recherche\",\n searchBarPlaceholder: \"Rechercher quelque chose...\",\n noResults: \"Aucun r\\u00e9sultat.\",\n noResultsHint: \"Essayez un autre terme de recherche\\u00a0?\",\n tagFilterHint: \"Filtrer par tag\",\n noTagsFound: \"Aucun tag correspondant\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"חיפוש\",\n searchBarPlaceholder: \"חפשו משהו\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Keresés\",\n searchBarPlaceholder: \"Keress valamire\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Cari\",\n searchBarPlaceholder: \"Cari sesuatu\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Cerca\",\n searchBarPlaceholder: \"Cerca qualcosa\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"\\u691c\\u7d22\",\n searchBarPlaceholder: \"\\u4f55\\u304b\\u3092\\u691c\\u7d22...\",\n noResults: \"\\u7d50\\u679c\\u304c\\u898b\\u3064\\u304b\\u308a\\u307e\\u305b\\u3093\\u3002\",\n noResultsHint:\n \"\\u5225\\u306e\\u691c\\u7d22\\u8a9e\\u3092\\u304a\\u8a66\\u3057\\u304f\\u3060\\u3055\\u3044\\u3002\",\n tagFilterHint: \"\\u30bf\\u30b0\\u3067\\u30d5\\u30a3\\u30eb\\u30bf\\u30fc\",\n noTagsFound: \"\\u4e00\\u81f4\\u3059\\u308b\\u30bf\\u30b0\\u304c\\u3042\\u308a\\u307e\\u305b\\u3093\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Іздеу\",\n searchBarPlaceholder: \"Бірдеңе іздеу\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"검색\",\n searchBarPlaceholder: \"검색어를 입력하세요\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Paieška\",\n searchBarPlaceholder: \"Ieškoti\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Søk\",\n searchBarPlaceholder: \"Søk etter noe\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Zoeken\",\n searchBarPlaceholder: \"Doorzoek de website\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Szukaj\",\n searchBarPlaceholder: \"Wpisz frazę wyszukiwania\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Pesquisar\",\n searchBarPlaceholder: \"Pesquisar por algo\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Căutare\",\n searchBarPlaceholder: \"Introduceți termenul de căutare...\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Поиск\",\n searchBarPlaceholder: \"Найти что-нибудь\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"ค้นหา\",\n searchBarPlaceholder: \"ค้นหาบางอย่าง\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Arama\",\n searchBarPlaceholder: \"Bir şey arayın\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Пошук\",\n searchBarPlaceholder: \"Шукати щось\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"Tìm\",\n searchBarPlaceholder: \"Tìm kiếm thông tin\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"\\u641c\\u7d22\",\n searchBarPlaceholder: \"\\u641c\\u7d22\\u5185\\u5bb9...\",\n noResults: \"\\u6ca1\\u6709\\u7ed3\\u679c\\u3002\",\n noResultsHint: \"\\u8bf7\\u5c1d\\u8bd5\\u5176\\u4ed6\\u641c\\u7d22\\u8bcd\\u3002\",\n tagFilterHint: \"\\u6309\\u6807\\u7b7e\\u7b5b\\u9009\",\n noTagsFound: \"\\u6ca1\\u6709\\u5339\\u914d\\u7684\\u6807\\u7b7e\",\n },\n },\n};\n","export default {\n components: {\n search: {\n title: \"搜尋\",\n searchBarPlaceholder: \"搜尋些什麼\",\n noResults: \"No results.\",\n noResultsHint: \"Try another search term?\",\n tagFilterHint: \"Filter by tag\",\n noTagsFound: \"No matching tags\",\n },\n },\n};\n","import enUS from \"./locales/en-US\";\nimport arSA from \"./locales/ar-SA\";\nimport caES from \"./locales/ca-ES\";\nimport csCZ from \"./locales/cs-CZ\";\nimport deDE from \"./locales/de-DE\";\nimport enGB from \"./locales/en-GB\";\nimport esES from \"./locales/es-ES\";\nimport faIR from \"./locales/fa-IR\";\nimport fiFI from \"./locales/fi-FI\";\nimport frFR from \"./locales/fr-FR\";\nimport heIL from \"./locales/he-IL\";\nimport huHU from \"./locales/hu-HU\";\nimport idID from \"./locales/id-ID\";\nimport itIT from \"./locales/it-IT\";\nimport jaJP from \"./locales/ja-JP\";\nimport kkKZ from \"./locales/kk-KZ\";\nimport koKR from \"./locales/ko-KR\";\nimport ltLT from \"./locales/lt-LT\";\nimport nbNO from \"./locales/nb-NO\";\nimport nlNL from \"./locales/nl-NL\";\nimport plPL from \"./locales/pl-PL\";\nimport ptBR from \"./locales/pt-BR\";\nimport roRO from \"./locales/ro-RO\";\nimport ruRU from \"./locales/ru-RU\";\nimport thTH from \"./locales/th-TH\";\nimport trTR from \"./locales/tr-TR\";\nimport ukUA from \"./locales/uk-UA\";\nimport viVN from \"./locales/vi-VN\";\nimport zhCN from \"./locales/zh-CN\";\nimport zhTW from \"./locales/zh-TW\";\n\nconst locales: Record<string, typeof enUS> = {\n \"en-US\": enUS,\n \"ar-SA\": arSA,\n \"ca-ES\": caES,\n \"cs-CZ\": csCZ,\n \"de-DE\": deDE,\n \"en-GB\": enGB,\n \"es-ES\": esES,\n \"fa-IR\": faIR,\n \"fi-FI\": fiFI,\n \"fr-FR\": frFR,\n \"he-IL\": heIL,\n \"hu-HU\": huHU,\n \"id-ID\": idID,\n \"it-IT\": itIT,\n \"ja-JP\": jaJP,\n \"kk-KZ\": kkKZ,\n \"ko-KR\": koKR,\n \"lt-LT\": ltLT,\n \"nb-NO\": nbNO,\n \"nl-NL\": nlNL,\n \"pl-PL\": plPL,\n \"pt-BR\": ptBR,\n \"ro-RO\": roRO,\n \"ru-RU\": ruRU,\n \"th-TH\": thTH,\n \"tr-TR\": trTR,\n \"uk-UA\": ukUA,\n \"vi-VN\": viVN,\n \"zh-CN\": zhCN,\n \"zh-TW\": zhTW,\n};\n\nexport function i18n(locale: string) {\n return locales[locale] || enUS;\n}\n",".search {\n min-width: fit-content;\n max-width: 14rem;\n}\n\n@media all and (max-width: 800px) {\n .search {\n flex-grow: 0.3;\n }\n}\n.search > .search-button {\n background-color: transparent;\n border: 1px var(--lightgray) solid;\n border-radius: 4px;\n font-family: inherit;\n font-size: inherit;\n height: 2rem;\n padding: 0 1rem 0 0;\n display: flex;\n align-items: center;\n text-align: inherit;\n cursor: pointer;\n white-space: nowrap;\n width: 100%;\n}\n\n.search > .search-button > p {\n display: inline;\n color: var(--gray);\n text-wrap: unset;\n}\n\n.search > .search-button svg {\n cursor: pointer;\n width: 18px;\n min-width: 18px;\n margin: 0 0.5rem;\n}\n\n.search > .search-button svg .search-path {\n stroke: var(--darkgray);\n stroke-width: 1.5px;\n transition: stroke 0.5s ease;\n}\n\n.search > .search-container {\n position: fixed;\n contain: layout;\n z-index: var(--search-z-index, 999);\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n overflow-y: auto;\n display: none;\n backdrop-filter: blur(4px);\n}\n\n.search > .search-container.active {\n display: inline-block;\n}\n\n.search > .search-container > .search-space {\n width: 65%;\n margin-top: 12vh;\n margin-left: auto;\n margin-right: auto;\n}\n\n@media all and not (min-width: 1200px) {\n .search > .search-container > .search-space {\n width: 90%;\n }\n}\n.search > .search-container > .search-space > *:not(.ghost-text):not(.tag-suggestions) {\n width: 100%;\n border-radius: 7px;\n background: var(--light);\n box-shadow: 0 14px 50px rgba(27, 33, 48, 0.12), 0 10px 30px rgba(27, 33, 48, 0.16);\n margin-bottom: 2em;\n}\n\n.search > .search-container > .search-space > input {\n box-sizing: border-box;\n padding: 0.5em 1em;\n font-family: var(--bodyFont);\n color: var(--dark);\n font-size: 1.1em;\n border: 1px solid var(--lightgray);\n}\n\n.search > .search-container > .search-space > input:focus {\n outline: none;\n}\n\n.search > .search-container > .search-space > .search-layout {\n display: none;\n flex-direction: row;\n border: 1px solid var(--lightgray);\n flex: 0 0 100%;\n box-sizing: border-box;\n}\n\n.search > .search-container > .search-space > .search-layout.display-results {\n display: flex;\n}\n\n.search > .search-container > .search-space > .search-layout[data-preview] > .results-container {\n flex: 0 0 min(30%, 450px);\n}\n\n@media all and not (max-width: 800px) {\n .search > .search-container > .search-space > .search-layout[data-preview] .result-card > p.card-description {\n display: none;\n }\n .search > .search-container > .search-space > .search-layout[data-preview] > div:first-child {\n border-right: 1px solid var(--lightgray);\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n }\n .search > .search-container > .search-space > .search-layout[data-preview] > div:last-child {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n}\n.search > .search-container > .search-space > .search-layout > div {\n height: 63vh;\n border-radius: 5px;\n}\n\n@media all and (max-width: 800px) {\n .search > .search-container > .search-space > .search-layout {\n flex-direction: column;\n }\n .search > .search-container > .search-space > .search-layout > .preview-container {\n display: none !important;\n }\n .search > .search-container > .search-space > .search-layout[data-preview] > .results-container {\n width: 100%;\n height: auto;\n max-height: 60vh;\n flex: 0 0 100%;\n }\n}\n.search > .search-container > .search-space > .search-layout .highlight {\n background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));\n border-radius: 5px;\n scroll-margin-top: 2rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .preview-container {\n flex-grow: 1;\n display: block;\n overflow: hidden;\n font-family: inherit;\n color: var(--dark);\n line-height: 1.5em;\n font-weight: 400;\n overflow-y: auto;\n padding: 0 2rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .preview-container .preview-inner {\n margin: 0 auto;\n width: 100%;\n}\n\n.search > .search-container > .search-space > .search-layout > .preview-container a[role=anchor] {\n background-color: transparent;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container {\n overflow-y: auto;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card {\n overflow: hidden;\n padding: 1em;\n cursor: pointer;\n transition: background 0.2s ease;\n border-bottom: 1px solid var(--lightgray);\n width: 100%;\n display: block;\n box-sizing: border-box;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n text-transform: none;\n text-align: left;\n outline: none;\n font-weight: inherit;\n text-decoration: none;\n color: var(--dark);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card:hover,\n.search > .search-container > .search-space > .search-layout > .results-container .result-card:focus,\n.search > .search-container > .search-space > .search-layout > .results-container .result-card.focus {\n background: var(--lightgray);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > h3 {\n margin: 0;\n color: var(--secondary);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul.tags {\n margin-top: 0.45rem;\n margin-bottom: 0;\n padding: 0;\n list-style: none;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul.tags > li {\n display: inline-block;\n margin-right: 0.3rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul > li > p {\n border-radius: 8px;\n background-color: var(--highlight);\n padding: 0.2rem 0.4rem;\n margin: 0;\n line-height: 1.4rem;\n font-weight: 700;\n color: var(--secondary);\n font-size: 0.85rem;\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > ul > li > p.match-tag {\n color: var(--tertiary);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card > p {\n margin-bottom: 0;\n margin-top: 0.5em;\n font-size: 0.9em;\n color: var(--gray);\n}\n\n.search > .search-container > .search-space > .search-layout > .results-container .result-card.no-match {\n cursor: default;\n}\n\n.search > .search-container > .search-space {\n position: relative;\n}\n\n.search > .search-container > .search-space > .ghost-text {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n pointer-events: none;\n box-sizing: border-box;\n padding: 0.5em 1em;\n font-family: var(--bodyFont);\n font-size: 1.1em;\n color: var(--gray);\n opacity: 0.6;\n white-space: pre;\n overflow: hidden;\n height: auto;\n line-height: normal;\n border: 1px solid transparent;\n}\n\n.search > .search-container > .search-space > .tag-suggestions {\n position: absolute;\n top: calc(3.1em + 2px);\n left: 0;\n right: 0;\n z-index: calc(var(--search-z-index, 999) + 1);\n background: var(--light);\n border: 1px solid var(--lightgray);\n border-radius: 5px;\n box-shadow: 0 4px 12px rgba(27, 33, 48, 0.1), 0 2px 6px rgba(27, 33, 48, 0.08);\n max-height: 240px;\n overflow-y: auto;\n}\n\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item {\n padding: 0.4em 1em;\n cursor: pointer;\n font-family: var(--bodyFont);\n font-size: 0.95em;\n color: var(--dark);\n transition: background 0.15s ease;\n}\n\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item:hover,\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item.active {\n background: var(--lightgray);\n}\n\n.search > .search-container > .search-space > .tag-suggestions > .tag-suggestion-item.active {\n color: var(--secondary);\n font-weight: 600;\n}\n\n.search-scroll-target {\n background: color-mix(in srgb, var(--tertiary) 40%, rgba(255, 255, 255, 0));\n border-radius: 3px;\n padding: 0.1em 0;\n transition: background 1s ease;\n}\n\n.search-scroll-target.fade-out {\n background: transparent;\n}","var Rn=Object.create;var We=Object.defineProperty;var Wn=Object.getOwnPropertyDescriptor;var Nn=Object.getOwnPropertyNames;var zn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty;var $n=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Kn=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of Nn(e))!On.call(t,i)&&i!==n&&We(t,i,{get:()=>e[i],enumerable:!(r=Wn(e,i))||r.enumerable});return t};var Un=(t,e,n)=>(n=t!=null?Rn(zn(t)):{},Kn(e||!t||!t.__esModule?We(n,\"default\",{value:t,enumerable:!0}):n,t));var fe=$n(()=>{});var C;function O(t,e,n){let r=typeof n,i=typeof t;if(r!==\"undefined\"){if(i!==\"undefined\"){if(n){if(i===\"function\"&&r===i)return function(o){return t(n(o))};if(e=t.constructor,e===n.constructor){if(e===Array)return n.concat(t);if(e===Map){var s=new Map(n);for(var u of t)s.set(u[0],u[1]);return s}if(e===Set){u=new Set(n);for(s of t.values())u.add(s);return u}}}return t}return n}return i===\"undefined\"?e:t}function Ct(t,e){return typeof t>\"u\"?e:t}function R(){return Object.create(null)}function U(t){return typeof t==\"string\"}function Lt(t){return typeof t==\"object\"}function Mt(t,e){if(U(e))t=t[e];else for(let n=0;t&&n<e.length;n++)t=t[e[n]];return t}var Vn=/[^\\p{L}\\p{N}]+/u,Jn=/(\\d{3})/g,Xn=/(\\D)(\\d{3})/g,Zn=/(\\d{3})(\\D)/g,Ne=/[\\u0300-\\u036f]/g;function vt(t={}){if(!this||this.constructor!==vt)return new vt(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}C=vt.prototype;C.assign=function(t){this.normalize=O(t.normalize,!0,this.normalize);let e=t.include,n=e||t.exclude||t.split,r;if(n||n===\"\"){if(typeof n==\"object\"&&n.constructor!==RegExp){let i=\"\";r=!e,e||(i+=\"\\\\p{Z}\"),n.letter&&(i+=\"\\\\p{L}\"),n.number&&(i+=\"\\\\p{N}\",r=!!e),n.symbol&&(i+=\"\\\\p{S}\"),n.punctuation&&(i+=\"\\\\p{P}\"),n.control&&(i+=\"\\\\p{C}\"),(n=n.char)&&(i+=typeof n==\"object\"?n.join(\"\"):n);try{this.split=new RegExp(\"[\"+(e?\"^\":\"\")+i+\"]+\",\"u\")}catch{this.split=/\\s+/}}else this.split=n,r=n===!1||\"a1a\".split(n).length<2;this.numeric=O(t.numeric,r)}else{try{this.split=O(this.split,Vn)}catch{this.split=/\\s+/}this.numeric=O(t.numeric,O(this.numeric,!0))}if(this.prepare=O(t.prepare,null,this.prepare),this.finalize=O(t.finalize,null,this.finalize),n=t.filter,this.filter=typeof n==\"function\"?n:O(n&&new Set(n),null,this.filter),this.dedupe=O(t.dedupe,!0,this.dedupe),this.matcher=O((n=t.matcher)&&new Map(n),null,this.matcher),this.mapper=O((n=t.mapper)&&new Map(n),null,this.mapper),this.stemmer=O((n=t.stemmer)&&new Map(n),null,this.stemmer),this.replacer=O(t.replacer,null,this.replacer),this.minlength=O(t.minlength,1,this.minlength),this.maxlength=O(t.maxlength,1024,this.maxlength),this.rtl=O(t.rtl,!1,this.rtl),(this.cache=n=O(t.cache,!0,this.cache))&&(this.F=null,this.L=typeof n==\"number\"?n:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h=\"\",this.J=null,this.A=\"\",this.K=null,this.matcher)for(let i of this.matcher.keys())this.h+=(this.h?\"|\":\"\")+i;if(this.stemmer)for(let i of this.stemmer.keys())this.A+=(this.A?\"|\":\"\")+i;return this};C.addStemmer=function(t,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(t,e),this.A+=(this.A?\"|\":\"\")+t,this.K=null,this.cache&&gt(this),this};C.addFilter=function(t){return typeof t==\"function\"?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t)),this.cache&&gt(this),this};C.addMapper=function(t,e){return typeof t==\"object\"?this.addReplacer(t,e):t.length>1?this.addMatcher(t,e):(this.mapper||(this.mapper=new Map),this.mapper.set(t,e),this.cache&&gt(this),this)};C.addMatcher=function(t,e){return typeof t==\"object\"?this.addReplacer(t,e):t.length<2&&(this.dedupe||this.mapper)?this.addMapper(t,e):(this.matcher||(this.matcher=new Map),this.matcher.set(t,e),this.h+=(this.h?\"|\":\"\")+t,this.J=null,this.cache&&gt(this),this)};C.addReplacer=function(t,e){return typeof t==\"string\"?this.addMatcher(t,e):(this.replacer||(this.replacer=[]),this.replacer.push(t,e),this.cache&&gt(this),this)};C.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(gt,50,this);this.normalize&&(typeof this.normalize==\"function\"?t=this.normalize(t):t=Ne?t.normalize(\"NFKD\").replace(Ne,\"\").toLowerCase():t.toLowerCase()),this.prepare&&(t=this.prepare(t)),this.numeric&&t.length>3&&(t=t.replace(Xn,\"$1 $2\").replace(Zn,\"$1 $2\").replace(Jn,\"$1 \"));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=R(),s,u,o=this.split||this.split===\"\"?t.split(this.split):[t];for(let h=0,f,a;h<o.length;h++)if((f=a=o[h])&&!(f.length<this.minlength||f.length>this.maxlength)){if(e){if(i[f])continue;i[f]=1}else{if(s===f)continue;s=f}if(n)r.push(f);else if(!this.filter||(typeof this.filter==\"function\"?this.filter(f):!this.filter.has(f))){if(this.cache&&f.length<=this.I)if(this.F){var l=this.D.get(f);if(l||l===\"\"){l&&r.push(l);continue}}else this.F=setTimeout(gt,50,this);if(this.stemmer){this.K||(this.K=new RegExp(\"(?!^)(\"+this.A+\")$\"));let c;for(;c!==f&&f.length>2;)c=f,f=f.replace(this.K,p=>this.stemmer.get(p))}if(f&&(this.mapper||this.dedupe&&f.length>1)){l=\"\";for(let c=0,p=\"\",D,g;c<f.length;c++)D=f.charAt(c),D===p&&this.dedupe||((g=this.mapper&&this.mapper.get(D))||g===\"\"?g===p&&this.dedupe||!(p=g)||(l+=g):l+=p=D);f=l}if(this.matcher&&f.length>1&&(this.J||(this.J=new RegExp(\"(\"+this.h+\")\",\"g\")),f=f.replace(this.J,c=>this.matcher.get(c))),f&&this.replacer)for(l=0;f&&l<this.replacer.length;l+=2)f=f.replace(this.replacer[l],this.replacer[l+1]);if(this.cache&&a.length<=this.I&&(this.D.set(a,f),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),f){if(f!==a)if(e){if(i[f])continue;i[f]=1}else{if(u===f)continue;u=f}r.push(f)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&t.length<=this.H&&(this.B.set(t,r),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),r};function gt(t){t.F=null,t.B.clear(),t.D.clear()}function Fe(t,e,n){n||(e||typeof t!=\"object\"?typeof e==\"object\"&&(n=e,e=0):n=t),n&&(t=n.query||t,e=n.limit||e);let r=\"\"+(e||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(n.resolve!==!1)+(n.resolution||this.resolution)+(n.boost||0)),t=(\"\"+t).toLowerCase(),this.cache||(this.cache=new mt);let i=this.cache.get(t+r);if(!i){let s=n&&n.cache;s&&(n.cache=!1),i=this.search(t,e,n),s&&(n.cache=s),this.cache.set(t+r,i)}return i}function mt(t){this.limit=t&&t!==!0?t:1e3,this.cache=new Map,this.h=\"\"}mt.prototype.set=function(t,e){this.cache.set(this.h=t,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};mt.prototype.get=function(t){let e=this.cache.get(t);return e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e)),e};mt.prototype.remove=function(t){for(let e of this.cache){let n=e[0];e[1].includes(t)&&this.cache.delete(n)}};mt.prototype.clear=function(){this.cache.clear(),this.h=\"\"};var ze={normalize:!1,numeric:!1,dedupe:!1},Ot={},ae=new Map([[\"b\",\"p\"],[\"v\",\"f\"],[\"w\",\"f\"],[\"z\",\"s\"],[\"x\",\"s\"],[\"d\",\"t\"],[\"n\",\"m\"],[\"c\",\"k\"],[\"g\",\"k\"],[\"j\",\"k\"],[\"q\",\"k\"],[\"i\",\"e\"],[\"y\",\"e\"],[\"u\",\"o\"]]),Oe=new Map([[\"ae\",\"a\"],[\"oe\",\"o\"],[\"sh\",\"s\"],[\"kh\",\"k\"],[\"th\",\"t\"],[\"ph\",\"f\"],[\"pf\",\"f\"]]),$e=[/([^aeo])h(.)/g,\"$1$2\",/([aeo])h([^aeo]|$)/g,\"$1$2\",/(.)\\1+/g,\"$1\"],Ke={a:\"\",e:\"\",i:\"\",o:\"\",u:\"\",y:\"\",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,\\u00DF:2,d:3,t:3,l:4,m:5,n:5,r:6},_e={Exact:ze,Default:Ot,Normalize:Ot,LatinBalance:{mapper:ae},LatinAdvanced:{mapper:ae,matcher:Oe,replacer:$e},LatinExtra:{mapper:ae,replacer:$e.concat([/(?!^)[aeo]/g,\"\"]),matcher:Oe},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let n=0;n<t.length;n++){var e=t[n];let r=e.charAt(0),i=Ke[r];for(let s=1,u;s<e.length&&(u=e.charAt(s),u===\"h\"||u===\"w\"||!(u=Ke[u])||u===i||(r+=u,i=u,r.length!==4));s++);t[n]=r}}},CJK:{split:\"\"},LatinExact:ze,LatinDefault:Ot,LatinSimple:Ot};function Ue(t,e,n,r){let i=[];for(let s=0,u;s<t.index.length;s++)if(u=t.index[s],e>=u.length)e-=u.length;else{e=u[r?\"splice\":\"slice\"](e,n);let o=e.length;if(o&&(i=i.length?i.concat(e):e,n-=o,r&&(t.length-=o),!n))break;e=0}return i}function xt(t){if(!this||this.constructor!==xt)return new xt(t);this.index=t?[t]:[],this.length=t?t.length:0;let e=this;return new Proxy([],{get(n,r){if(r===\"length\")return e.length;if(r===\"push\")return function(i){e.index[e.index.length-1].push(i),e.length++};if(r===\"pop\")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(r===\"indexOf\")return function(i){let s=0;for(let u=0,o,l;u<e.index.length;u++){if(o=e.index[u],l=o.indexOf(i),l>=0)return s+l;s+=o.length}return-1};if(r===\"includes\")return function(i){for(let s=0;s<e.index.length;s++)if(e.index[s].includes(i))return!0;return!1};if(r===\"slice\")return function(i,s){return Ue(e,i||0,s||e.length,!1)};if(r===\"splice\")return function(i,s){return Ue(e,i||0,s||e.length,!0)};if(r===\"constructor\")return Array;if(typeof r!=\"symbol\")return(n=e.index[r/2**31|0])&&n[r]},set(n,r,i){return n=r/2**31|0,(e.index[n]||(e.index[n]=[]))[r]=i,e.length++,!0}})}xt.prototype.clear=function(){this.index.length=0};xt.prototype.push=function(){};function V(t=8){if(!this||this.constructor!==V)return new V(t);this.index=R(),this.h=[],this.size=0,t>32?(this.B=qe,this.A=BigInt(t)):(this.B=Ge,this.A=t)}V.prototype.get=function(t){let e=this.index[this.B(t)];return e&&e.get(t)};V.prototype.set=function(t,e){var n=this.B(t);let r=this.index[n];r?(n=r.size,r.set(t,e),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[t,e]]),this.h.push(r),this.size++)};function J(t=8){if(!this||this.constructor!==J)return new J(t);this.index=R(),this.h=[],this.size=0,t>32?(this.B=qe,this.A=BigInt(t)):(this.B=Ge,this.A=t)}J.prototype.add=function(t){var e=this.B(t);let n=this.index[e];n?(e=n.size,n.add(t),(e-=n.size)&&this.size++):(this.index[e]=n=new Set([t]),this.h.push(n),this.size++)};C=V.prototype;C.has=J.prototype.has=function(t){let e=this.index[this.B(t)];return e&&e.has(t)};C.delete=J.prototype.delete=function(t){let e=this.index[this.B(t)];e&&e.delete(t)&&this.size--};C.clear=J.prototype.clear=function(){this.index=R(),this.h=[],this.size=0};C.values=J.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e};C.keys=J.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e};C.entries=J.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};function Ge(t){let e=2**this.A-1;if(typeof t==\"number\")return t&e;let n=0,r=this.A+1;for(let i=0;i<t.length;i++)n=(n*r^t.charCodeAt(i))&e;return this.A===32?n+2**31:n}function qe(t){let e=BigInt(2)**this.A-BigInt(1);var n=typeof t;if(n===\"bigint\")return t&e;if(n===\"number\")return BigInt(t)&e;n=BigInt(0);let r=this.A+BigInt(1);for(let i=0;i<t.length;i++)n=(n*r^BigInt(t.charCodeAt(i)))&e;return n}var Et,St;async function Qn(t){t=t.data;var e=t.task;let n=t.id,r=t.args;if(e===\"init\")St=t.options||{},(e=t.factory)?(Function(\"return \"+e)()(self),Et=new self.FlexSearch.Index(St),delete self.FlexSearch):Et=new X(St),postMessage({id:n});else{let i;e===\"export\"&&(r[1]?(r[0]=St.export,r[2]=0,r[3]=1):r=null),e===\"import\"?r[0]&&(t=await St.import.call(Et,r[0]),Et.import(r[0],t)):((i=r&&Et[e].apply(Et,r))&&i.then&&(i=await i),i&&i.await&&(i=await i.await),e===\"search\"&&i.result&&(i=i.result)),postMessage(e===\"search\"?{id:n,msg:i}:{id:n})}}function ye(t){At.call(t,\"add\"),At.call(t,\"append\"),At.call(t,\"search\"),At.call(t,\"update\"),At.call(t,\"remove\"),At.call(t,\"searchCache\")}var ge,Ve,Ut;function Yn(){ge=Ut=0}function At(t){this[t+\"Async\"]=function(){let e=arguments;var n=e[e.length-1];let r;if(typeof n==\"function\"&&(r=n,delete e[e.length-1]),ge?Ut||(Ut=Date.now()-Ve>=this.priority*this.priority*3):(ge=setTimeout(Yn,0),Ve=Date.now()),Ut){let s=this;return new Promise(u=>{setTimeout(function(){u(s[t+\"Async\"].apply(s,e))},0)})}let i=this[t].apply(this,e);return n=i.then?i:new Promise(s=>s(i)),r&&n.then(r),n}}var it=0;function dt(t={},e){function n(o){function l(h){h=h.data||h;let f=h.id,a=f&&s.h[f];a&&(a(h.msg),delete s.h[f])}if(this.worker=o,this.h=R(),this.worker)return i?this.worker.on(\"message\",l):this.worker.onmessage=l,t.config?new Promise(function(h){it>1e9&&(it=0),s.h[++it]=function(){h(s)},s.worker.postMessage({id:it,task:\"init\",factory:r,options:t})}):(this.priority=t.priority||4,this.encoder=e||null,this.worker.postMessage({task:\"init\",factory:r,options:t}),this)}if(!this||this.constructor!==dt)return new dt(t);let r=typeof self<\"u\"?self._factory:typeof window<\"u\"?window._factory:null;r&&(r=r.toString());let i=typeof window>\"u\",s=this,u=Gn(r,i,t.worker);return u.then?u.then(function(o){return n.call(s,o)}):n.call(this,u)}rt(\"add\");rt(\"append\");rt(\"search\");rt(\"update\");rt(\"remove\");rt(\"clear\");rt(\"export\");rt(\"import\");dt.prototype.searchCache=Fe;ye(dt.prototype);function rt(t){dt.prototype[t]=function(){let e=this,n=[].slice.call(arguments);var r=n[n.length-1];let i;return typeof r==\"function\"&&(i=r,n.pop()),r=new Promise(function(s){t===\"export\"&&typeof n[0]==\"function\"&&(n[0]=null),it>1e9&&(it=0),e.h[++it]=s,e.worker.postMessage({task:t,id:it,args:n})}),i?(r.then(i),this):r}}function Gn(t,e,n){return e?typeof module<\"u\"?new(fe()).Worker(__dirname+\"/worker/node.js\"):Promise.resolve().then(()=>Un(fe(),1)).then(function(r){return new r.Worker(import.meta.dirname+\"/node/node.mjs\")}):t?new window.Worker(URL.createObjectURL(new Blob([\"onmessage=\"+Qn.toString()],{type:\"text/javascript\"}))):new window.Worker(typeof n==\"string\"?n:import.meta.url.replace(\"/worker.js\",\"/worker/worker.js\").replace(\"flexsearch.bundle.module.min.js\",\"module/worker/worker.js\").replace(\"flexsearch.bundle.module.min.mjs\",\"module/worker/worker.js\"),{type:\"module\"})}Dt.prototype.add=function(t,e,n){if(Lt(t)&&(e=t,t=Mt(e,this.key)),e&&(t||t===0)){if(!n&&this.reg.has(t))return this.update(t,e);for(let o=0,l;o<this.field.length;o++){l=this.B[o];var r=this.index.get(this.field[o]);if(typeof l==\"function\"){var i=l(e);i&&r.add(t,i,n,!0)}else i=l.G,(!i||i(e))&&(l.constructor===String?l=[\"\"+l]:U(l)&&(l=[l]),De(e,l,this.D,0,r,t,l[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var s=this.A[r];i=this.tag.get(this.F[r]);let o=R();if(typeof s==\"function\"){if(s=s(e),!s)continue}else{var u=s.G;if(u&&!u(e))continue;s.constructor===String&&(s=\"\"+s),s=Mt(e,s)}if(i&&s){U(s)&&(s=[s]);for(let l=0,h,f;l<s.length;l++)if(h=s[l],!o[h]&&(o[h]=1,(u=i.get(h))?f=u:i.set(h,f=[]),!n||!f.includes(t))){if(f.length===2**31-1){if(u=new xt(f),this.fastupdate)for(let a of this.reg.values())a.includes(f)&&(a[a.indexOf(f)]=u);i.set(h,f=u)}f.push(t),this.fastupdate&&((u=this.reg.get(t))?u.push(f):this.reg.set(t,[f]))}}}if(this.store&&(!n||!this.store.has(t))){let o;if(this.h){o=R();for(let l=0,h;l<this.h.length;l++){if(h=this.h[l],(n=h.G)&&!n(e))continue;let f;if(typeof h==\"function\"){if(f=h(e),!f)continue;h=[h.O]}else if(U(h)||h.constructor===String){o[h]=e[h];continue}de(e,o,h,0,h[0],f)}}this.store.set(t,o||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this};function de(t,e,n,r,i,s){if(t=t[i],r===n.length-1)e[i]=s||t;else if(t)if(t.constructor===Array)for(e=e[i]=Array(t.length),i=0;i<t.length;i++)de(t,e,n,r,i);else e=e[i]||(e[i]=R()),i=n[++r],de(t,e,n,r,i)}function De(t,e,n,r,i,s,u,o){if(t=t[u])if(r===e.length-1){if(t.constructor===Array){if(n[r]){for(e=0;e<t.length;e++)i.add(s,t[e],!0,!0);return}t=t.join(\" \")}i.add(s,t,o,!0)}else if(t.constructor===Array)for(u=0;u<t.length;u++)De(t,e,n,r,i,s,u,o);else u=e[++r],De(t,e,n,r,i,s,u,o)}function Ce(t,e,n,r){if(!t.length)return t;if(t.length===1)return t=t[0],t=n||t.length>e?t.slice(n,n+e):t,r?wt.call(this,t):t;let i=[];for(let s=0,u,o;s<t.length;s++)if((u=t[s])&&(o=u.length)){if(n){if(n>=o){n-=o;continue}u=u.slice(n,n+e),o=u.length,n=0}if(o>e&&(u=u.slice(0,e),o=e),!i.length&&o>=e)return r?wt.call(this,u):u;if(i.push(u),e-=o,!e)break}return i=i.length>1?[].concat.apply([],i):i[0],r?wt.call(this,i):i}function Gt(t,e,n,r){var i=r[0];if(i[0]&&i[0].query)return t[e].apply(t,i);if(!(e!==\"and\"&&e!==\"not\"||t.result.length||t.await||i.suggest))return r.length>1&&(i=r[r.length-1]),(r=i.resolve)?t.await||t.result:t;let s=[],u=0,o=0,l,h,f,a,c;for(e=0;e<r.length;e++)if(i=r[e]){var p=void 0;if(i.constructor===j)p=i.await||i.result;else if(i.then||i.constructor===Array)p=i;else{u=i.limit||0,o=i.offset||0,f=i.suggest,h=i.resolve,l=((a=i.highlight||t.highlight)||i.enrich)&&h,p=i.queue;let D=i.async||p,g=i.index,d=i.query;if(g?t.index||(t.index=g):g=t.index,d||i.tag){let F=i.field||i.pluck;if(F&&(!d||t.query&&!a||(t.query=d,t.field=F,t.highlight=a),g=g.index.get(F)),p&&(c||t.await)){c=1;let m,E=t.C.length,v=new Promise(function(b){m=b});(function(b,x){v.h=function(){x.index=null,x.resolve=!1;let k=D?b.searchAsync(x):b.search(x);return k.then?k.then(function(y){return t.C[E]=y=y.result||y,m(y),y}):(k=k.result||k,m(k),k)}})(g,Object.assign({},i)),t.C.push(v),s[e]=v;continue}else i.resolve=!1,i.index=null,p=D?g.searchAsync(i):g.search(i),i.resolve=h,i.index=g}else if(i.and)p=$t(i,\"and\",g);else if(i.or)p=$t(i,\"or\",g);else if(i.not)p=$t(i,\"not\",g);else if(i.xor)p=$t(i,\"xor\",g);else continue}p.await?(c=1,p=p.await):p.then?(c=1,p=p.then(function(D){return D.result||D})):p=p.result||p,s[e]=p}if(c&&!t.await&&(t.await=new Promise(function(D){t.return=D})),c){let D=Promise.all(s).then(function(g){for(let d=0;d<t.C.length;d++)if(t.C[d]===D){t.C[d]=function(){return n.call(t,g,u,o,l,h,f,a)};break}Ee(t)});t.C.push(D)}else if(t.await)t.C.push(function(){return n.call(t,s,u,o,l,h,f,a)});else return n.call(t,s,u,o,l,h,f,a);return h?t.await||t.result:t}function $t(t,e,n){t=t[e];let r=t[0]||t;return r.index||(r.index=n),n=new j(r),t.length>1&&(n=n[e].apply(n,t.slice(1))),n}j.prototype.or=function(){return Gt(this,\"or\",qn,arguments)};function qn(t,e,n,r,i,s,u){return t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=tn(t,e,n,!1,this.h),n=0)),i&&(this.await=null),i?this.resolve(e,n,r,u):this}j.prototype.and=function(){return Gt(this,\"and\",ti,arguments)};function ti(t,e,n,r,i,s,u){if(!s&&!this.result.length)return i?this.result:this;let o;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let l=0;for(let h=0,f,a;h<t.length;h++)if((f=t[h])&&(a=f.length))l<a&&(l=a);else if(!s){l=0;break}l?(this.result=Jt(t,l,e,n,s,this.h,i),o=!0):this.result=[]}else s||(this.result=t);return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}j.prototype.xor=function(){return Gt(this,\"xor\",ei,arguments)};function ei(t,e,n,r,i,s,u){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{s=n;var o=this.h;let l=[],h=R(),f=0;for(let a=0,c;a<t.length;a++)if(c=t[a]){f<c.length&&(f=c.length);for(let p=0,D;p<c.length;p++)if(D=c[p])for(let g=0,d;g<D.length;g++)d=D[g],h[d]=h[d]?2:1}for(let a=0,c,p=0;a<f;a++)for(let D=0,g;D<t.length;D++)if((g=t[D])&&(c=g[a])){for(let d=0,F;d<c.length;d++)if(F=c[d],h[F]===1)if(s)s--;else if(i){if(l.push(F),l.length===e){t=l;break t}}else{let m=a+(D?o:0);if(l[m]||(l[m]=[]),l[m].push(F),++p===e){t=l;break t}}}t=l}this.result=t,o=!0}else s||(this.result=t);return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}j.prototype.not=function(){return Gt(this,\"not\",ni,arguments)};function ni(t,e,n,r,i,s,u){if(!s&&!this.result.length)return i?this.result:this;if(t.length&&this.result.length){t:{s=n;var o=[];t=new Set(t.flat().flat());for(let l=0,h,f=0;l<this.result.length;l++)if(h=this.result[l]){for(let a=0,c;a<h.length;a++)if(c=h[a],!t.has(c)){if(s)s--;else if(i){if(o.push(c),o.length===e){t=o;break t}}else if(o[l]||(o[l]=[]),o[l].push(c),++f===e){t=o;break t}}}t=o}this.result=t,o=!0}return i&&(this.await=null),i?this.resolve(e,n,r,u,o):this}function Vt(t,e,n,r,i){let s,u,o;typeof i==\"string\"?(s=i,i=\"\"):s=i.template,u=s.indexOf(\"$1\"),o=s.substring(u+2),u=s.substring(0,u);let l=i&&i.boundary,h=!i||i.clip!==!1,f=i&&i.merge&&o&&u&&new RegExp(o+\" \"+u,\"g\");i=i&&i.ellipsis;var a=0;if(typeof i==\"object\"){var c=i.template;a=c.length-2,i=i.pattern}typeof i!=\"string\"&&(i=i===!1?\"\":\"...\"),a&&(i=c.replace(\"$1\",i)),c=i.length-a;let p,D;typeof l==\"object\"&&(p=l.before,p===0&&(p=-1),D=l.after,D===0&&(D=-1),l=l.total||9e5),a=new Map;for(let et=0,Q,Wt,ot;et<e.length;et++){let nt;if(r)nt=e,ot=r;else{var g=e[et];if(ot=g.field,!ot)continue;nt=g.result}Wt=n.get(ot),Q=Wt.encoder,g=a.get(Q),typeof g!=\"string\"&&(g=Q.encode(t),a.set(Q,g));for(let lt=0;lt<nt.length;lt++){var d=nt[lt].doc;if(!d||(d=Mt(d,ot),!d))continue;var F=d.trim().split(/\\s+/);if(!F.length)continue;d=\"\";var m=[];let ht=[];for(var E=-1,v=-1,b=0,x=0;x<F.length;x++){var k=F[x],y=Q.encode(k);y=y.length>1?y.join(\" \"):y[0];let w;if(y&&k){for(var B=k.length,S=(Q.split?k.replace(Q.split,\"\"):k).length-y.length,T=\"\",W=0,z=0;z<g.length;z++){var N=g[z];if(N){var P=N.length;P+=S<0?0:S,W&&P<=W||(N=y.indexOf(N),N>-1&&(T=(N?k.substring(0,N):\"\")+u+k.substring(N,N+P)+o+(N+P<B?k.substring(N+P):\"\"),W=P,w=!0))}}T&&(l&&(E<0&&(E=d.length+(d?1:0)),v=d.length+(d?1:0)+T.length,b+=B,ht.push(m.length),m.push({match:T})),d+=(d?\" \":\"\")+T)}if(!w)k=F[x],d+=(d?\" \":\"\")+k,l&&m.push({text:k});else if(l&&b>=l)break}if(b=ht.length*(s.length-2),p||D||l&&d.length-b>l)if(b=l+b-c*2,x=v-E,p>0&&(x+=p),D>0&&(x+=D),x<=b)F=p?E-(p>0?p:0):E-((b-x)/2|0),m=D?v+(D>0?D:0):F+b,h||(F>0&&d.charAt(F)!==\" \"&&d.charAt(F-1)!==\" \"&&(F=d.indexOf(\" \",F),F<0&&(F=0)),m<d.length&&d.charAt(m-1)!==\" \"&&d.charAt(m)!==\" \"&&(m=d.lastIndexOf(\" \",m),m<v?m=v:++m)),d=(F?i:\"\")+d.substring(F,m)+(m<d.length?i:\"\");else{for(v=[],E={},b={},x={},k={},y={},T=S=B=0,z=W=1;;){var $=void 0;for(let w=0,I;w<ht.length;w++){if(I=ht[w],T)if(S!==T){if(x[w+1])continue;if(I+=T,E[I]){B-=c,b[w+1]=1,x[w+1]=1;continue}if(I>=m.length-1){if(I>=m.length){x[w+1]=1,I>=F.length&&(b[w+1]=1);continue}B-=c}if(d=m[I].text,P=D&&y[w])if(P>0){if(d.length>P)if(x[w+1]=1,h)d=d.substring(0,P);else continue;(P-=d.length)||(P=-1),y[w]=P}else{x[w+1]=1;continue}if(B+d.length+1<=l)d=\" \"+d,v[w]+=d;else if(h)$=l-B-1,$>0&&(d=\" \"+d.substring(0,$),v[w]+=d),x[w+1]=1;else{x[w+1]=1;continue}}else{if(x[w])continue;if(I-=S,E[I]){B-=c,x[w]=1,b[w]=1;continue}if(I<=0){if(I<0){x[w]=1,b[w]=1;continue}B-=c}if(d=m[I].text,P=p&&k[w])if(P>0){if(d.length>P)if(x[w]=1,h)d=d.substring(d.length-P);else continue;(P-=d.length)||(P=-1),k[w]=P}else{x[w]=1;continue}if(B+d.length+1<=l)d+=\" \",v[w]=d+v[w];else if(h)$=d.length+1-(l-B),$>=0&&$<d.length&&(d=d.substring($)+\" \",v[w]=d+v[w]),x[w]=1;else{x[w]=1;continue}}else{d=m[I].match,p&&(k[w]=p),D&&(y[w]=D),w&&B++;let _t;if(I?!w&&c&&(B+=c):(b[w]=1,x[w]=1),I>=F.length-1||I<m.length-1&&m[I+1].match?_t=1:c&&(B+=c),B-=s.length-2,!w||B+d.length<=l)v[w]=d;else{$=W=z=b[w]=0;break}_t&&(b[w+1]=1,x[w+1]=1)}B+=d.length,$=E[I]=1}if($)S===T?T++:S++;else{if(S===T?W=0:z=0,!W&&!z)break;W?(S++,T=S):T++}}d=\"\";for(let w=0,I;w<v.length;w++)I=(b[w]?w?\" \":\"\":(w&&!i?\" \":\"\")+i)+v[w],d+=I;i&&!b[v.length]&&(d+=i)}f&&(d=d.replace(f,\" \")),nt[lt].highlight=d}if(r)break}return e}function j(t,e){if(!this||this.constructor!==j)return new j(t,e);let n=0,r,i,s,u,o,l;if(t&&t.index){let h=t;if(e=h.index,n=h.boost||0,i=h.query){s=h.field||h.pluck,u=h.highlight;let f=h.resolve;t=h.async||h.queue,h.resolve=!1,h.index=null,t=t?e.searchAsync(h):e.search(h),h.resolve=f,h.index=e,t=t.result||t}else t=[]}if(t&&t.then){let h=this;t=t.then(function(f){h.C[0]=h.result=f.result||f,Ee(h)}),r=[t],t=[],o=new Promise(function(f){l=f})}this.index=e||null,this.result=t||[],this.h=n,this.C=r||[],this.await=o||null,this.return=l||null,this.highlight=u||null,this.query=i||\"\",this.field=s||\"\"}C=j.prototype;C.limit=function(t){if(this.await){let e=this;this.C.push(function(){return e.limit(t).result})}else if(this.result.length){let e=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=t){if(e[n]=r,t-=r.length,!t)break}else{e[n]=r.slice(0,t);break}this.result=e}return this};C.offset=function(t){if(this.await){let e=this;this.C.push(function(){return e.offset(t).result})}else if(this.result.length){let e=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=t?t-=r.length:(e[n]=r.slice(t),t=0));this.result=e}return this};C.boost=function(t){if(this.await){let e=this;this.C.push(function(){return e.boost(t).result})}else this.h+=t;return this};function Ee(t,e){let n=t.result;var r=t.await;t.await=null;for(let i=0,s;i<t.C.length;i++)if(s=t.C[i]){if(typeof s==\"function\")n=s(),t.C[i]=n=n.result||n,i--;else if(s.h)n=s.h(),t.C[i]=n=n.result||n,i--;else if(s.then)return t.await=r}return r=t.return,t.C=[],t.return=null,e||r(n),n}C.resolve=function(t,e,n,r,i){let s=this.await?Ee(this,!0):this.result;if(s.then){let u=this;return s.then(function(){return u.resolve(t,e,n,r,i)})}return s.length&&(typeof t==\"object\"?(r=t.highlight||this.highlight,n=!!r||t.enrich,e=t.offset,t=t.limit):(r=r||this.highlight,n=!!r||n),s=i?n?wt.call(this.index,s):s:Ce.call(this.index,s,t||100,e,n)),this.finalize(s,r)};C.finalize=function(t,e){if(t.then){let r=this;return t.then(function(i){return r.finalize(i,e)})}e&&t.length&&this.query&&(t=Vt(this.query,t,this.index.index,this.field,e));let n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field=\"\",n&&n(t),t};function Jt(t,e,n,r,i,s,u){let o=t.length,l=[],h,f;h=R();for(let a=0,c,p,D,g;a<e;a++)for(let d=0;d<o;d++)if(D=t[d],a<D.length&&(c=D[a]))for(let F=0;F<c.length;F++){if(p=c[F],(f=h[p])?h[p]++:(f=0,h[p]=1),g=l[f]||(l[f]=[]),!u){let m=a+(d||!i?0:s||0);g=g[m]||(g[m]=[])}if(g.push(p),u&&n&&f===o-1&&g.length-r===n)return r?g.slice(r):g}if(t=l.length)if(i)l=l.length>1?tn(l,n,r,u,s):(l=l[0])&&n&&l.length>n||r?l.slice(r,n+r):l;else{if(t<o)return[];if(l=l[t-1],n||r)if(u)(l.length>n||r)&&(l=l.slice(r,n+r));else{i=[];for(let a=0,c;a<l.length;a++)if(c=l[a]){if(r&&c.length>r)r-=c.length;else if((n&&c.length>n||r)&&(c=c.slice(r,n+r),n-=c.length,r&&(r-=c.length)),i.push(c),!n)break}l=i}}return l}function tn(t,e,n,r,i){let s=[],u=R(),o;var l=t.length;let h;if(r){for(i=l-1;i>=0;i--)if(h=(r=t[i])&&r.length){for(l=0;l<h;l++)if(o=r[l],!u[o]){if(u[o]=1,n)n--;else if(s.push(o),s.length===e)return s}}}else for(let f=l-1,a,c=0;f>=0;f--){a=t[f];for(let p=0;p<a.length;p++)if(h=(r=a[p])&&r.length){for(let D=0;D<h;D++)if(o=r[D],!u[o])if(u[o]=1,n)n--;else{let g=(p+(f<l-1&&i||0))/(f+1)|0;if((s[g]||(s[g]=[])).push(o),++c===e)return s}}}return s}function ii(t,e,n,r,i){let s=R(),u=[];for(let o=0,l;o<e.length;o++){l=e[o];for(let h=0;h<l.length;h++)s[l[h]]=1}if(i){for(let o=0,l;o<t.length;o++)if(l=t[o],s[l]){if(r)r--;else if(u.push(l),s[l]=0,n&&--n===0)break}}else for(let o=0,l,h;o<t.result.length;o++)for(l=t.result[o],e=0;e<l.length;e++)h=l[e],s[h]&&((u[o]||(u[o]=[])).push(h),s[h]=0);return u}R();Dt.prototype.search=function(t,e,n,r){n||(!e&&Lt(t)?(n=t,t=\"\"):Lt(e)&&(n=e,e=0));let i=[];var s=[];let u,o,l,h,f,a,c=0,p=!0,D;if(n){n.constructor===Array&&(n={index:n}),t=n.query||t,u=n.pluck,o=n.merge,h=n.boost,a=u||n.field||(a=n.index)&&(a.index?null:a);var g=this.tag&&n.tag;l=n.suggest,p=n.resolve!==!1,f=n.cache,D=p&&this.store&&n.highlight;var d=!!D||p&&this.store&&n.enrich;e=n.limit||e;var F=n.offset||0;if(e||(e=p?100:0),g&&(!this.db||!r)){g.constructor!==Array&&(g=[g]);var m=[];for(let k=0,y;k<g.length;k++)if(y=g[k],y.field&&y.tag){var E=y.tag;if(E.constructor===Array)for(var v=0;v<E.length;v++)m.push(y.field,E[v]);else m.push(y.field,E)}else{E=Object.keys(y);for(let B=0,S,T;B<E.length;B++)if(S=E[B],T=y[S],T.constructor===Array)for(v=0;v<T.length;v++)m.push(S,T[v]);else m.push(S,T)}if(g=m,!t){if(s=[],m.length)for(g=0;g<m.length;g+=2){if(this.db){if(r=this.index.get(m[g]),!r)continue;s.push(r=r.db.tag(m[g+1],e,F,d))}else r=ri.call(this,m[g],m[g+1],e,F,d);i.push(p?{field:m[g],tag:m[g+1],result:r}:[r])}if(s.length){let k=this;return Promise.all(s).then(function(y){for(let B=0;B<y.length;B++)p?i[B].result=y[B]:i[B]=y[B];return p?i:new j(i.length>1?Jt(i,1,0,0,l,h):i[0],k)})}return p?i:new j(i.length>1?Jt(i,1,0,0,l,h):i[0],this)}}p||u||!(a=a||this.field)||(U(a)?u=a:(a.constructor===Array&&a.length===1&&(a=a[0]),u=a.field||a.index)),a&&a.constructor!==Array&&(a=[a])}a||(a=this.field);let b;m=(this.worker||this.db)&&!r&&[];for(let k=0,y,B,S;k<a.length;k++){if(B=a[k],this.db&&this.tag&&!this.B[k])continue;let T;if(U(B)||(T=B,B=T.field,t=T.query||t,e=Ct(T.limit,e),F=Ct(T.offset,F),l=Ct(T.suggest,l),D=p&&this.store&&Ct(T.highlight,D),d=!!D||p&&this.store&&Ct(T.enrich,d),f=Ct(T.cache,f)),r)y=r[k];else{E=T||n||{},v=E.enrich;var x=this.index.get(B);if(g&&(this.db&&(E.tag=g,E.field=a,b=x.db.support_tag_search),!b&&v&&(E.enrich=!1),b||(E.limit=0,E.offset=0)),y=f?x.searchCache(t,g&&!b?0:e,E):x.search(t,g&&!b?0:e,E),g&&!b&&(E.limit=e,E.offset=F),v&&(E.enrich=v),m){m[k]=y;continue}}if(S=(y=y.result||y)&&y.length,g&&S){if(E=[],v=0,this.db&&r){if(!b)for(x=a.length;x<r.length;x++){let W=r[x];if(W&&W.length)v++,E.push(W);else if(!l)return p?i:new j(i,this)}}else for(let W=0,z,N;W<g.length;W+=2){if(z=this.tag.get(g[W]),!z){if(l)continue;return p?i:new j(i,this)}if(N=(z=z&&z.get(g[W+1]))&&z.length)v++,E.push(z);else if(!l)return p?i:new j(i,this)}if(v){if(y=ii(y,E,e,F,p),S=y.length,!S&&!l)return p?y:new j(y,this);v--}}if(S)s[c]=B,i.push(y),c++;else if(a.length===1)return p?i:new j(i,this)}if(m){if(this.db&&g&&g.length&&!b)for(d=0;d<g.length;d+=2){if(s=this.index.get(g[d]),!s){if(l)continue;return p?i:new j(i,this)}m.push(s.db.tag(g[d+1],e,F,!1))}let k=this;return Promise.all(m).then(function(y){return n&&(n.resolve=p),y.length&&(y=k.search(t,e,n,y)),y})}if(!c)return p?i:new j(i,this);if(u&&(!d||!this.store))return i=i[0],p?i:new j(i,this);for(m=[],F=0;F<s.length;F++){if(g=i[F],d&&g.length&&typeof g[0].doc>\"u\"&&(this.db?m.push(g=this.index.get(this.field[0]).db.enrich(g)):g=wt.call(this,g)),u)return p?D?Vt(t,g,this.index,u,D):g:new j(g,this);i[F]={field:s[F],result:g}}if(d&&this.db&&m.length){let k=this;return Promise.all(m).then(function(y){for(let B=0;B<y.length;B++)i[B].result=y[B];return D&&(i=Vt(t,i,k.index,u,D)),o?Je(i):i})}return D&&(i=Vt(t,i,this.index,u,D)),o?Je(i):i};function Je(t){let e=[],n=R(),r=R();for(let i=0,s,u,o,l,h,f,a;i<t.length;i++){s=t[i],u=s.field,o=s.result;for(let c=0;c<o.length;c++)h=o[c],typeof h!=\"object\"?h={id:l=h}:l=h.id,(f=n[l])?f.push(u):(h.field=n[l]=[u],e.push(h)),(a=h.highlight)&&(f=r[l],f||(r[l]=f={},h.highlight=f),f[u]=a)}return e}function ri(t,e,n,r,i){return t=this.tag.get(t),t?(t=t.get(e),t?(e=t.length-r,e>0&&((n&&e>n||r)&&(t=t.slice(r,r+n)),i&&(t=wt.call(this,t))),t):[]):[]}function wt(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);let e=Array(t.length);for(let n=0,r;n<t.length;n++)r=t[n],e[n]={id:r,doc:this.store.get(r)};return e}function Dt(t){if(!this||this.constructor!==Dt)return new Dt(t);let e=t.document||t.doc||t,n,r;if(this.B=[],this.field=[],this.D=[],this.key=(n=e.key||e.id)&&Xt(n,this.D)||\"id\",(r=t.keystore||0)&&(this.keystore=r),this.fastupdate=!!t.fastupdate,this.reg=!this.fastupdate||t.worker||t.db?r?new J(r):new Set:r?new V(r):new Map,this.h=(n=e.store||null)&&n&&n!==!0&&[],this.store=n?r?new V(r):new Map:null,this.cache=(n=t.cache||null)&&new mt(n),t.cache=!1,this.worker=t.worker||!1,this.priority=t.priority||4,this.index=si.call(this,t,e),this.tag=null,(n=e.tag)&&(typeof n==\"string\"&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.F=[];for(let i=0,s,u;i<n.length;i++){if(s=n[i],u=s.field||s,!u)throw Error(\"The tag field from the document descriptor is undefined.\");s.custom?this.A[i]=s.custom:(this.A[i]=Xt(u,this.D),s.filter&&(typeof this.A[i]==\"string\"&&(this.A[i]=new String(this.A[i])),this.A[i].G=s.filter)),this.F[i]=u,this.tag.set(u,new Map)}}if(this.worker){this.fastupdate=!1,t=[];for(let i of this.index.values())i.then&&t.push(i);if(t.length){let i=this;return Promise.all(t).then(function(s){let u=0;for(let o of i.index.entries()){let l=o[0],h=o[1];h.then&&(h=s[u],i.index.set(l,h),u++)}return i})}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}C=Dt.prototype;C.mount=function(t){let e=this.field;if(this.tag)for(let s=0,u;s<this.F.length;s++){u=this.F[s];var n=void 0;this.index.set(u,n=new X({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(u),n.tag=this.tag.get(u)}n=[];let r={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let s=0,u,o;s<e.length;s++){r.field=o=e[s],u=this.index.get(o);let l=new t.constructor(t.id,r);l.id=t.id,n[s]=l.mount(u),u.document=!0,s?u.bypass=!0:u.store=this.store}let i=this;return this.db=Promise.all(n).then(function(){i.db=!0})};C.commit=async function(){let t=[];for(let e of this.index.values())t.push(e.commit());await Promise.all(t),this.reg.clear()};C.destroy=function(){let t=[];for(let e of this.index.values())t.push(e.destroy());return Promise.all(t)};function si(t,e){let n=new Map,r=e.index||e.field||e;U(r)&&(r=[r]);for(let s=0,u,o;s<r.length;s++){if(u=r[s],U(u)||(o=u,u=u.field),o=Lt(o)?Object.assign({},t,o):t,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new vt(typeof i==\"string\"?_e[i]:i||{}),i=new dt(o,i),n.set(u,i)}this.worker||n.set(u,new X(o,this.reg)),o.custom?this.B[s]=o.custom:(this.B[s]=Xt(u,this.D),o.filter&&(typeof this.B[s]==\"string\"&&(this.B[s]=new String(this.B[s])),this.B[s].G=o.filter)),this.field[s]=u}if(this.h){t=e.store,U(t)&&(t=[t]);for(let s=0,u,o;s<t.length;s++)u=t[s],o=u.field||u,u.custom?(this.h[s]=u.custom,u.custom.O=o):(this.h[s]=Xt(o,this.D),u.filter&&(typeof this.h[s]==\"string\"&&(this.h[s]=new String(this.h[s])),this.h[s].G=u.filter))}return n}function Xt(t,e){let n=t.split(\":\"),r=0;for(let i=0;i<n.length;i++)t=n[i],t[t.length-1]===\"]\"&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(n[r++]=t);return r<n.length&&(n.length=r),r>1?n:n[0]}C.append=function(t,e){return this.add(t,e,!0)};C.update=function(t,e){return this.remove(t).add(t,e)};C.remove=function(t){Lt(t)&&(t=Mt(t,this.key));for(var e of this.index.values())e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){e=r[0];let i=r[1],s=i.indexOf(t);s>-1&&(i.length>1?i.splice(s,1):n.delete(e))}this.store&&this.store.delete(t),this.reg.delete(t)}return this.cache&&this.cache.remove(t),this};C.clear=function(){let t=[];for(let e of this.index.values()){let n=e.clear();n.then&&t.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),t.length?Promise.all(t):this};C.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)};C.cleanup=function(){for(let t of this.index.values())t.cleanup();return this};C.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(t)||null};C.set=function(t,e){return typeof t==\"object\"&&(e=t,t=Mt(e,this.key)),this.store.set(t,e),this};C.searchCache=Fe;C.export=ui;C.import=oi;ye(Dt.prototype);function Ae(t,e=0){let n=[],r=[];e&&(e=25e4/e*5e3|0);for(let i of t.entries())r.push(i),r.length===e&&(n.push(r),r=[]);return r.length&&n.push(r),n}function we(t,e){e||(e=new Map);for(let n=0,r;n<t.length;n++)r=t[n],e.set(r[0],r[1]);return e}function en(t,e=0){let n=[],r=[];e&&(e=25e4/e*1e3|0);for(let i of t.entries())r.push([i[0],Ae(i[1])[0]||[]]),r.length===e&&(n.push(r),r=[]);return r.length&&n.push(r),n}function nn(t,e){e||(e=new Map);for(let n=0,r,i;n<t.length;n++)r=t[n],i=e.get(r[0]),e.set(r[0],we(r[1],i));return e}function rn(t){let e=[],n=[];for(let r of t.keys())n.push(r),n.length===25e4&&(e.push(n),n=[]);return n.length&&e.push(n),e}function sn(t,e){e||(e=new Set);for(let n=0;n<t.length;n++)e.add(t[n]);return e}function Zt(t,e,n,r,i,s,u=0){let o=r&&r.constructor===Array;var l=o?r.shift():r;if(!l)return this.export(t,e,i,s+1);if((l=t((e?e+\".\":\"\")+(u+1)+\".\"+n,JSON.stringify(l)))&&l.then){let h=this;return l.then(function(){return Zt.call(h,t,e,n,o?r:null,i,s,u+1)})}return Zt.call(this,t,e,n,o?r:null,i,s,u+1)}function ui(t,e,n=0,r=0){if(n<this.field.length){let u=this.field[n];if((e=this.index.get(u).export(t,u,n,r=1))&&e.then){let o=this;return e.then(function(){return o.export(t,u,n+1)})}return this.export(t,u,n+1)}let i,s;switch(r){case 0:i=\"reg\",s=rn(this.reg),e=null;break;case 1:i=\"tag\",s=this.tag&&en(this.tag,this.reg.size),e=null;break;case 2:i=\"doc\",s=this.store&&Ae(this.store),e=null;break;default:return}return Zt.call(this,t,e,i,s||null,n,r)}function oi(t,e){var n=t.split(\".\");n[n.length-1]===\"json\"&&n.pop();let r=n.length>2?n[0]:\"\";if(n=n.length>2?n[2]:n[1],this.worker&&r)return this.index.get(r).import(t);if(e){if(typeof e==\"string\"&&(e=JSON.parse(e)),r)return this.index.get(r).import(n,e);switch(n){case\"reg\":this.fastupdate=!1,this.reg=sn(e,this.reg);for(let i=0,s;i<this.field.length;i++)s=this.index.get(this.field[i]),s.fastupdate=!1,s.reg=this.reg;if(this.worker){e=[];for(let i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case\"tag\":this.tag=nn(e,this.tag);break;case\"doc\":this.store=we(e,this.store)}}}function Xe(t,e){let n=\"\";for(let r of t.entries()){t=r[0];let i=r[1],s=\"\";for(let u=0,o;u<i.length;u++){o=i[u]||[\"\"];let l=\"\";for(let h=0;h<o.length;h++)l+=(l?\",\":\"\")+(e===\"string\"?'\"'+o[h]+'\"':o[h]);l=\"[\"+l+\"]\",s+=(s?\",\":\"\")+l}s='[\"'+t+'\",['+s+\"]]\",n+=(n?\",\":\"\")+s}return n}X.prototype.remove=function(t,e){let n=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(n){if(this.fastupdate){for(let r=0,i,s;r<n.length;r++)if((i=n[r])&&(s=i.length))if(i[s-1]===t)i.pop();else{let u=i.indexOf(t);u>=0&&i.splice(u,1)}}else jt(this.map,t),this.depth&&jt(this.ctx,t);e||this.reg.delete(t)}return this.db&&(this.commit_task.push({del:t}),this.M&&un(this)),this.cache&&this.cache.remove(t),this};function jt(t,e){let n=0;var r=typeof e>\"u\";if(t.constructor===Array){for(let i=0,s,u,o;i<t.length;i++)if((s=t[i])&&s.length){if(r)return 1;if(u=s.indexOf(e),u>=0){if(s.length>1)return s.splice(u,1),1;if(delete t[i],n)return 1;o=1}else{if(o)return 1;n++}}}else for(let i of t.entries())r=i[0],jt(i[1],e)?n++:t.delete(r);return n}var li={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:\"forward\"},score:{resolution:9,context:{depth:2,resolution:3}}};X.prototype.add=function(t,e,n,r){if(e&&(t||t===0)){if(!r&&!n&&this.reg.has(t))return this.update(t,e);r=this.depth,e=this.encoder.encode(e,!r);let h=e.length;if(h){let f=R(),a=R(),c=this.resolution;for(let p=0;p<h;p++){let D=e[this.rtl?h-1-p:p];var i=D.length;if(i&&(r||!a[D])){var s=this.score?this.score(e,D,p,null,0):Kt(c,h,p),u=\"\";switch(this.tokenize){case\"tolerant\":if(G(this,a,D,s,t,n),i>2){for(let g=1,d,F,m,E;g<i-1;g++)d=D.charAt(g),F=D.charAt(g+1),m=D.substring(0,g)+F,E=D.substring(g+2),u=m+d+E,G(this,a,u,s,t,n),u=m+E,G(this,a,u,s,t,n);G(this,a,D.substring(0,D.length-1),s,t,n)}break;case\"full\":if(i>2){for(let g=0,d;g<i;g++)for(s=i;s>g;s--){u=D.substring(g,s),d=this.rtl?i-1-g:g;var o=this.score?this.score(e,D,p,u,d):Kt(c,h,p,i,d);G(this,a,u,o,t,n)}break}case\"bidirectional\":case\"reverse\":if(i>1){for(o=i-1;o>0;o--){u=D[this.rtl?i-1-o:o]+u;var l=this.score?this.score(e,D,p,u,o):Kt(c,h,p,i,o);G(this,a,u,l,t,n)}u=\"\"}case\"forward\":if(i>1){for(o=0;o<i;o++)u+=D[this.rtl?i-1-o:o],G(this,a,u,s,t,n);break}default:if(G(this,a,D,s,t,n),r&&h>1&&p<h-1)for(i=this.N,u=D,s=Math.min(r+1,this.rtl?p+1:h-p),o=1;o<s;o++){D=e[this.rtl?h-1-p-o:p+o],l=this.bidirectional&&D>u;let g=this.score?this.score(e,u,p,D,o-1):Kt(i+(h/2>i?0:1),h,p,s-1,o-1);G(this,f,l?u:D,g,t,n,l?D:u)}}}}this.fastupdate||this.reg.add(t)}}return this.db&&(this.commit_task.push(n?{ins:t}:{del:t}),this.M&&un(this)),this};function G(t,e,n,r,i,s,u){let o,l;if(!(o=e[n])||u&&!o[u]){if(u?(e=o||(e[n]=R()),e[u]=1,l=t.ctx,(o=l.get(u))?l=o:l.set(u,l=t.keystore?new V(t.keystore):new Map)):(l=t.map,e[n]=1),(o=l.get(n))?l=o:l.set(n,l=o=[]),s){for(let h=0,f;h<o.length;h++)if((f=o[h])&&f.includes(i)){if(h<=r)return;f.splice(f.indexOf(i),1),t.fastupdate&&(e=t.reg.get(i))&&e.splice(e.indexOf(f),1);break}}if(l=l[r]||(l[r]=[]),l.push(i),l.length===2**31-1){if(e=new xt(l),t.fastupdate)for(let h of t.reg.values())h.includes(l)&&(h[h.indexOf(l)]=e);o[r]=l=e}t.fastupdate&&((r=t.reg.get(i))?r.push(l):t.reg.set(i,[l]))}}function Kt(t,e,n,r,i){return n&&t>1?e+(r||0)<=t?n+(i||0):(t-1)/(e+(r||0))*(n+(i||0))+1|0:0}X.prototype.search=function(t,e,n){if(n||(e||typeof t!=\"object\"?typeof e==\"object\"&&(n=e,e=0):(n=t,t=\"\")),n&&n.cache)return n.cache=!1,t=this.searchCache(t,e,n),n.cache=!0,t;let r=[],i,s,u,o=0,l,h,f,a,c;n&&(t=n.query||t,e=n.limit||e,o=n.offset||0,s=n.context,u=n.suggest,c=(l=n.resolve)&&n.enrich,f=n.boost,a=n.resolution,h=this.db&&n.tag),typeof l>\"u\"&&(l=this.resolve),s=this.depth&&s!==!1;let p=this.encoder.encode(t,!s);if(i=p.length,e=e||(l?100:0),i===1)return Qe.call(this,p[0],\"\",e,o,l,c,h);if(i===2&&s&&!u)return Qe.call(this,p[1],p[0],e,o,l,c,h);let D=R(),g=0,d;if(s&&(d=p[0],g=1),a||a===0||(a=d?this.N:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,p,e,o,u,l,c,h),n!==!1))return n;let F=this;return(async function(){for(let m,E;g<i;g++){if((E=p[g])&&!D[E]){if(D[E]=1,m=await me(F,E,d,0,0,!1,!1),m=Ye(m,r,u,a)){r=m;break}d&&(u&&m&&r.length||(d=E))}u&&d&&g===i-1&&!r.length&&(a=F.resolution,d=\"\",g=-1,D=R())}return Ze(r,a,e,o,u,f,l)})()}for(let F,m;g<i;g++){if((m=p[g])&&!D[m]){if(D[m]=1,F=me(this,m,d,0,0,!1,!1),F=Ye(F,r,u,a)){r=F;break}d&&(u&&F&&r.length||(d=m))}u&&d&&g===i-1&&!r.length&&(a=this.resolution,d=\"\",g=-1,D=R())}return Ze(r,a,e,o,u,f,l)};function Ze(t,e,n,r,i,s,u){let o=t.length,l=t;if(o>1)l=Jt(t,e,n,r,i,s,u);else if(o===1)return u?Ce.call(null,t[0],n,r):new j(t[0],this);return u?l:new j(l,this)}function Qe(t,e,n,r,i,s,u){return t=me(this,t,e,n,r,i,s,u),this.db?t.then(function(o){return i?o||[]:new j(o,this)}):t&&t.length?i?Ce.call(this,t,n,r):new j(t,this):i?[]:new j([],this)}function Ye(t,e,n,r){let i=[];if(t&&t.length){if(t.length<=r){e.push(t);return}for(let s=0,u;s<r;s++)(u=t[s])&&(i[s]=u);if(i.length){e.push(i);return}}if(!n)return i}function me(t,e,n,r,i,s,u,o){let l;return n&&(l=t.bidirectional&&e>n)&&(l=n,n=e,e=l),t.db?t.db.get(e,n,r,i,s,u,o):(t=n?(t=t.ctx.get(n))&&t.get(e):t.map.get(e),t)}function X(t,e){if(!this||this.constructor!==X)return new X(t);if(t){var n=U(t)?t:t.preset;n&&(t=Object.assign({},li[n],t))}else t={};n=t.context;let r=n===!0?{depth:1}:n||{},i=U(t.encoder)?_e[t.encoder]:t.encode||t.encoder||{};this.encoder=i.encode?i:typeof i==\"object\"?new vt(i):{encode:i},this.resolution=t.resolution||9,this.tokenize=n=(n=t.tokenize)&&n!==\"default\"&&n!==\"exact\"&&n||\"strict\",this.depth=n===\"strict\"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!t.fastupdate,this.score=t.score||null,(n=t.keystore||0)&&(this.keystore=n),this.map=n?new V(n):new Map,this.ctx=n?new V(n):new Map,this.reg=e||(this.fastupdate?n?new V(n):new Map:n?new J(n):new Set),this.N=r.resolution||3,this.rtl=i.rtl||t.rtl||!1,this.cache=(n=t.cache||null)&&new mt(n),this.resolve=t.resolve!==!1,(n=t.db)&&(this.db=this.mount(n)),this.M=t.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=t.priority||4}C=X.prototype;C.mount=function(t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),t.mount(this)};C.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)};C.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function un(t){t.commit_timer||(t.commit_timer=setTimeout(function(){t.commit_timer=null,t.db.commit(t)},1))}C.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this};C.append=function(t,e){return this.add(t,e,!0)};C.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)};C.update=function(t,e){let n=this,r=this.remove(t);return r&&r.then?r.then(()=>n.add(t,e)):this.add(t,e)};C.cleanup=function(){return this.fastupdate?(jt(this.map),this.depth&&jt(this.ctx),this):this};C.searchCache=Fe;C.export=function(t,e,n=0,r=0){let i,s;switch(r){case 0:i=\"reg\",s=rn(this.reg);break;case 1:i=\"cfg\",s=null;break;case 2:i=\"map\",s=Ae(this.map,this.reg.size);break;case 3:i=\"ctx\",s=en(this.ctx,this.reg.size);break;default:return}return Zt.call(this,t,e,i,s,n,r)};C.import=function(t,e){if(e)switch(typeof e==\"string\"&&(e=JSON.parse(e)),t=t.split(\".\"),t[t.length-1]===\"json\"&&t.pop(),t.length===3&&t.shift(),t=t.length>1?t[1]:t[0],t){case\"reg\":this.fastupdate=!1,this.reg=sn(e,this.reg);break;case\"map\":this.map=we(e,this.map);break;case\"ctx\":this.ctx=nn(e,this.ctx)}};C.serialize=function(t=!0){let e=\"\",n=\"\",r=\"\";if(this.reg.size){let s;for(var i of this.reg.keys())s||(s=typeof i),e+=(e?\",\":\"\")+(s===\"string\"?'\"'+i+'\"':i);e=\"index.reg=new Set([\"+e+\"]);\",n=Xe(this.map,s),n=\"index.map=new Map([\"+n+\"]);\";for(let u of this.ctx.entries()){i=u[0];let o=Xe(u[1],s);o=\"new Map([\"+o+\"])\",o='[\"'+i+'\",'+o+\"]\",r+=(r?\",\":\"\")+o}r=\"index.ctx=new Map([\"+r+\"]);\"}return t?\"function inject(index){\"+e+n+r+\"}\":e+n+r};ye(X.prototype);var on=typeof window<\"u\"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Qt=[\"map\",\"ctx\",\"tag\",\"reg\",\"cfg\"],pt=R();function Yt(t,e={}){if(!this||this.constructor!==Yt)return new Yt(t,e);typeof t==\"object\"&&(e=t,t=t.name),t||console.info(\"Default storage space was used, because a name was not passed.\"),this.id=\"flexsearch\"+(t?\":\"+t.toLowerCase().replace(/[^a-z0-9_\\-]/g,\"\"):\"\"),this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\\-]/g,\"\"):\"\",this.type=e.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}C=Yt.prototype;C.mount=function(t){return t.index?t.mount(this):(t.db=this,this.open())};C.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),pt[t.id]||(pt[t.id]=[]),pt[t.id].push(t.field);let e=on.open(t.id,1);return e.onupgradeneeded=function(){let n=t.db=this.result;for(let r=0,i;r<Qt.length;r++){i=Qt[r];for(let s=0,u;s<pt[t.id].length;s++)u=pt[t.id][s],n.objectStoreNames.contains(i+(i!==\"reg\"&&u?\":\"+u:\"\"))||n.createObjectStore(i+(i!==\"reg\"&&u?\":\"+u:\"\"))}},t.db=st(e,function(n){t.db=n,t.db.onversionchange=function(){t.close()}})};C.close=function(){this.db&&this.db.close(),this.db=null};C.destroy=function(){let t=on.deleteDatabase(this.id);return st(t)};C.clear=function(){let t=[];for(let n=0,r;n<Qt.length;n++){r=Qt[n];for(let i=0,s;i<pt[this.id].length;i++)s=pt[this.id][i],t.push(r+(r!==\"reg\"&&s?\":\"+s:\"\"))}let e=this.db.transaction(t,\"readwrite\");for(let n=0;n<t.length;n++)e.objectStore(t[n]).clear();return st(e)};C.get=function(t,e,n=0,r=0,i=!0,s=!1){t=this.db.transaction((e?\"ctx\":\"map\")+(this.field?\":\"+this.field:\"\"),\"readonly\").objectStore((e?\"ctx\":\"map\")+(this.field?\":\"+this.field:\"\")).get(e?e+\":\"+t:t);let u=this;return st(t).then(function(o){let l=[];if(!o||!o.length)return l;if(i){if(!n&&!r&&o.length===1)return o[0];for(let h=0,f;h<o.length;h++)if((f=o[h])&&f.length){if(r>=f.length){r-=f.length;continue}let a=n?r+Math.min(f.length-r,n):f.length;for(let c=r;c<a;c++)l.push(f[c]);if(r=0,l.length===n)break}return s?u.enrich(l):l}return o})};C.tag=function(t,e=0,n=0,r=!1){t=this.db.transaction(\"tag\"+(this.field?\":\"+this.field:\"\"),\"readonly\").objectStore(\"tag\"+(this.field?\":\"+this.field:\"\")).get(t);let i=this;return st(t).then(function(s){return!s||!s.length||n>=s.length?[]:!e&&!n?s:(s=s.slice(n,n+e),r?i.enrich(s):s)})};C.enrich=function(t){typeof t!=\"object\"&&(t=[t]);let e=this.db.transaction(\"reg\",\"readonly\").objectStore(\"reg\"),n=[];for(let r=0;r<t.length;r++)n[r]=st(e.get(t[r]));return Promise.all(n).then(function(r){for(let i=0;i<r.length;i++)r[i]={id:t[i],doc:r[i]?JSON.parse(r[i]):null};return r})};C.has=function(t){return t=this.db.transaction(\"reg\",\"readonly\").objectStore(\"reg\").getKey(t),st(t).then(function(e){return!!e})};C.search=null;C.info=function(){};C.transaction=function(t,e,n){t+=t!==\"reg\"&&this.field?\":\"+this.field:\"\";let r=this.h[t+\":\"+e];if(r)return n.call(this,r);let i=this.db.transaction(t,e);this.h[t+\":\"+e]=r=i.objectStore(t);let s=n.call(this,r);return this.h[t+\":\"+e]=null,st(i).finally(function(){return s})};C.commit=async function(t){let e=t.commit_task,n=[];t.commit_task=[];for(let r=0,i;r<e.length;r++)i=e[r],i.del&&n.push(i.del);n.length&&await this.remove(n),t.reg.size&&(await this.transaction(\"map\",\"readwrite\",function(r){for(let i of t.map){let s=i[0],u=i[1];u.length&&(r.get(s).onsuccess=function(){let o=this.result;var l;if(o&&o.length){let h=Math.max(o.length,u.length);for(let f=0,a,c;f<h;f++)if((c=u[f])&&c.length){if((a=o[f])&&a.length)for(l=0;l<c.length;l++)a.push(c[l]);else o[f]=c;l=1}}else o=u,l=1;l&&r.put(o,s)})}}),await this.transaction(\"ctx\",\"readwrite\",function(r){for(let i of t.ctx){let s=i[0],u=i[1];for(let o of u){let l=o[0],h=o[1];h.length&&(r.get(s+\":\"+l).onsuccess=function(){let f=this.result;var a;if(f&&f.length){let c=Math.max(f.length,h.length);for(let p=0,D,g;p<c;p++)if((g=h[p])&&g.length){if((D=f[p])&&D.length)for(a=0;a<g.length;a++)D.push(g[a]);else f[p]=g;a=1}}else f=h,a=1;a&&r.put(f,s+\":\"+l)})}}}),t.store?await this.transaction(\"reg\",\"readwrite\",function(r){for(let i of t.store){let s=i[0],u=i[1];r.put(typeof u==\"object\"?JSON.stringify(u):1,s)}}):t.bypass||await this.transaction(\"reg\",\"readwrite\",function(r){for(let i of t.reg.keys())r.put(1,i)}),t.tag&&await this.transaction(\"tag\",\"readwrite\",function(r){for(let i of t.tag){let s=i[0],u=i[1];u.length&&(r.get(s).onsuccess=function(){let o=this.result;o=o&&o.length?o.concat(u):u,r.put(o,s)})}}),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())};function pe(t,e,n){let r=t.value,i,s=0;for(let u=0,o;u<r.length;u++){if(o=n?r:r[u]){for(let l=0,h,f;l<e.length;l++)if(f=e[l],h=o.indexOf(f),h>=0)if(i=1,o.length>1)o.splice(h,1);else{r[u]=[];break}s+=o.length}if(n)break}s?i&&t.update(r):t.delete(),t.continue()}C.remove=function(t){return typeof t!=\"object\"&&(t=[t]),Promise.all([this.transaction(\"map\",\"readwrite\",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t)}}),this.transaction(\"ctx\",\"readwrite\",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t)}}),this.transaction(\"tag\",\"readwrite\",function(e){e.openCursor().onsuccess=function(){let n=this.result;n&&pe(n,t,!0)}}),this.transaction(\"reg\",\"readwrite\",function(e){for(let n=0;n<t.length;n++)e.delete(t[n])})])};function st(t,e){return new Promise((n,r)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result),e=null,n(this.result)},t.onerror=t.onblocked=r,t=null})}var ln={Index:X,Charset:_e,Encoder:vt,Document:Dt,Worker:dt,Resolver:j,IndexedDB:Yt,Language:{}};var Ni=Object.hasOwnProperty;var pn,H,gn,hi,ut,hn,dn,Dn,ve,te,It,mn,be,Be,ke,ci,Fn={},ne=[],fi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,re=Array.isArray;function q(t,e){for(var n in e)t[n]=e[n];return t}function Te(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function xe(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++gn,__i:-1,__u:0};return i==null&&H.vnode!=null&&H.vnode(s),s}function kt(t){return t.children}function ee(t,e){this.props=t,this.context=e}function Bt(t,e){if(e==null)return t.__?Bt(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type==\"function\"?Bt(t):null}function ai(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,r=[],i=[],s=q({},e);s.__v=e.__v+1,H.vnode&&H.vnode(s),En(t.__P,s,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,r,n??Bt(e),!!(32&e.__u),i),s.__v=e.__v,s.__.__k[s.__i]=s,di(r,s,i),e.__e=e.__=null,s.__e!=n&&_n(s)}}function _n(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),_n(t)}function cn(t){(!t.__d&&(t.__d=!0)&&ut.push(t)&&!ie.__r++||hn!=H.debounceRendering)&&((hn=H.debounceRendering)||dn)(ie)}function ie(){try{for(var t,e=1;ut.length;)ut.length>e&&ut.sort(Dn),t=ut.shift(),e=ut.length,ai(t)}finally{ut.length=ie.__r=0}}function yn(t,e,n,r,i,s,u,o,l,h,f){var a,c,p,D,g,d,F,m=r&&r.__k||ne,E=e.length;for(l=pi(n,e,m,l,E),a=0;a<E;a++)(p=n.__k[a])!=null&&(c=p.__i!=-1&&m[p.__i]||Fn,p.__i=a,d=En(t,p,c,i,s,u,o,l,h,f),D=p.__e,p.ref&&c.ref!=p.ref&&(c.ref&&Se(c.ref,null,p),f.push(p.ref,p.__c||D,p)),g==null&&D!=null&&(g=D),(F=!!(4&p.__u))||c.__k===p.__k?(l=Cn(p,l,t,F),F&&c.__e&&(c.__e=null)):typeof p.type==\"function\"&&d!==void 0?l=d:D&&(l=D.nextSibling),p.__u&=-7);return n.__e=g,l}function pi(t,e,n,r,i){var s,u,o,l,h,f=n.length,a=f,c=0;for(t.__k=new Array(i),s=0;s<i;s++)(u=e[s])!=null&&typeof u!=\"boolean\"&&typeof u!=\"function\"?(typeof u==\"string\"||typeof u==\"number\"||typeof u==\"bigint\"||u.constructor==String?u=t.__k[s]=xe(null,u,null,null,null):re(u)?u=t.__k[s]=xe(kt,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=t.__k[s]=xe(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):t.__k[s]=u,l=s+c,u.__=t,u.__b=t.__b+1,o=null,(h=u.__i=gi(u,n,l,a))!=-1&&(a--,(o=n[h])&&(o.__u|=2)),o==null||o.__v==null?(h==-1&&(i>f?c--:i<f&&c++),typeof u.type!=\"function\"&&(u.__u|=4)):h!=l&&(h==l-1?c--:h==l+1?c++:(h>l?c--:c++,u.__u|=4))):t.__k[s]=null;if(a)for(s=0;s<f;s++)(o=n[s])!=null&&(2&o.__u)==0&&(o.__e==r&&(r=Bt(o)),vn(o,o));return r}function Cn(t,e,n,r){var i,s;if(typeof t.type==\"function\"){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,e=Cn(i[s],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=Bt(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function gi(t,e,n,r){var i,s,u,o=t.key,l=t.type,h=e[n],f=h!=null&&(2&h.__u)==0;if(h===null&&o==null||f&&o==h.key&&l==h.type)return n;if(r>(f?1:0)){for(i=n-1,s=n+1;i>=0||s<e.length;)if((h=e[u=i>=0?i--:s++])!=null&&(2&h.__u)==0&&o==h.key&&l==h.type)return u}return-1}function fn(t,e,n){e[0]==\"-\"?t.setProperty(e,n??\"\"):t[e]=n==null?\"\":typeof n!=\"number\"||fi.test(e)?n:n+\"px\"}function qt(t,e,n,r,i){var s,u;t:if(e==\"style\")if(typeof n==\"string\")t.style.cssText=n;else{if(typeof r==\"string\"&&(t.style.cssText=r=\"\"),r)for(e in r)n&&e in n||fn(t.style,e,\"\");if(n)for(e in n)r&&n[e]==r[e]||fn(t.style,e,n[e])}else if(e[0]==\"o\"&&e[1]==\"n\")s=e!=(e=e.replace(mn,\"$1\")),u=e.toLowerCase(),e=u in t||e==\"onFocusOut\"||e==\"onFocusIn\"?u.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n[It]=r[It]:(n[It]=be,t.addEventListener(e,s?ke:Be,s)):t.removeEventListener(e,s?ke:Be,s);else{if(i==\"http://www.w3.org/2000/svg\")e=e.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(e!=\"width\"&&e!=\"height\"&&e!=\"href\"&&e!=\"list\"&&e!=\"form\"&&e!=\"tabIndex\"&&e!=\"download\"&&e!=\"rowSpan\"&&e!=\"colSpan\"&&e!=\"role\"&&e!=\"popover\"&&e in t)try{t[e]=n??\"\";break t}catch{}typeof n==\"function\"||(n==null||n===!1&&e[4]!=\"-\"?t.removeAttribute(e):t.setAttribute(e,e==\"popover\"&&n==1?\"\":n))}}function an(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[te]==null)e[te]=be++;else if(e[te]<n[It])return;return n(H.event?H.event(e):e)}}}function En(t,e,n,r,i,s,u,o,l,h){var f,a,c,p,D,g,d,F,m,E,v,b,x,k,y,B,S=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[o=e.__e=n.__e]),(f=H.__b)&&f(e);t:if(typeof S==\"function\"){a=u.length;try{if(m=e.props,E=S.prototype&&S.prototype.render,v=(f=S.contextType)&&r[f.__c],b=f?v?v.props.value:f.__:r,n.__c?F=(c=e.__c=n.__c).__=c.__E:(E?e.__c=c=new S(m,b):(e.__c=c=new ee(m,b),c.constructor=S,c.render=mi),v&&v.sub(c),c.state||(c.state={}),c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),E&&c.__s==null&&(c.__s=c.state),E&&S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=q({},c.__s)),q(c.__s,S.getDerivedStateFromProps(m,c.__s))),D=c.props,g=c.state,c.__v=e,p)E&&S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),E&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(E&&S.getDerivedStateFromProps==null&&m!==D&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,b),e.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,b)===!1){e.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(T){T&&(T.__=e)}),ne.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&u.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,b),E&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(D,g,d)})}if(c.context=b,c.props=m,c.__P=t,c.__e=!1,x=H.__r,k=0,E)c.state=c.__s,c.__d=!1,x&&x(e),f=c.render(c.props,c.state,c.context),ne.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,x&&x(e),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++k<25);c.state=c.__s,c.getChildContext!=null&&(r=q(q({},r),c.getChildContext())),E&&!p&&c.getSnapshotBeforeUpdate!=null&&(d=c.getSnapshotBeforeUpdate(D,g)),y=f!=null&&f.type===kt&&f.key==null?wn(f.props.children):f,o=yn(t,re(y)?y:[y],e,n,r,i,s,u,o,l,h),c.base=e.__e,e.__u&=-161,c.__h.length&&u.push(c),F&&(c.__E=c.__=null)}catch(T){if(u.length=a,e.__v=null,l||s!=null){if(T.then){for(e.__u|=l?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;s!=null&&(s[s.indexOf(o)]=null),e.__e=o}else if(s!=null)for(B=s.length;B--;)Te(s[B])}else e.__e=n.__e;e.__k==null&&(e.__k=n.__k||[]),T.then||An(e),H.__e(T,e,n)}}else s==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):o=e.__e=Di(n.__e,e,n,r,i,s,u,l,h);return(f=H.diffed)&&f(e),128&e.__u?void 0:o}function An(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(An))}function di(t,e,n){for(var r=0;r<n.length;r++)Se(n[r],n[++r],n[++r]);H.__c&&H.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){H.__e(s,i.__v)}})}function wn(t){return typeof t!=\"object\"||t==null||t.__b>0?t:re(t)?t.map(wn):t.constructor!==void 0?null:q({},t)}function Di(t,e,n,r,i,s,u,o,l){var h,f,a,c,p,D,g,d=n.props||Fn,F=e.props,m=e.type;if(m==\"svg\"?i=\"http://www.w3.org/2000/svg\":m==\"math\"?i=\"http://www.w3.org/1998/Math/MathML\":i||(i=\"http://www.w3.org/1999/xhtml\"),s!=null){for(h=0;h<s.length;h++)if((p=s[h])&&\"setAttribute\"in p==!!m&&(m?p.localName==m:p.nodeType==3)){t=p,s[h]=null;break}}if(t==null){if(m==null)return document.createTextNode(F);t=document.createElementNS(i,m,F.is&&F),o&&(H.__m&&H.__m(e,s),o=!1),s=null}if(m==null)d===F||o&&t.data==F||(t.data=F);else{if(s=m==\"textarea\"&&F.defaultValue!=null?null:s&&pn.call(t.childNodes),!o&&s!=null)for(d={},h=0;h<t.attributes.length;h++)d[(p=t.attributes[h]).name]=p.value;for(h in d)p=d[h],h==\"dangerouslySetInnerHTML\"?a=p:h==\"children\"||h in F||h==\"value\"&&\"defaultValue\"in F||h==\"checked\"&&\"defaultChecked\"in F||qt(t,h,null,p,i);for(h in F)p=F[h],h==\"children\"?c=p:h==\"dangerouslySetInnerHTML\"?f=p:h==\"value\"?D=p:h==\"checked\"?g=p:o&&typeof p!=\"function\"||d[h]===p||qt(t,h,p,d[h],i);if(f)o||a&&(f.__html==a.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(a&&(t.innerHTML=\"\"),yn(e.type==\"template\"?t.content:t,re(c)?c:[c],e,n,r,m==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":i,s,u,s?s[0]:n.__k&&Bt(n,0),o,l),s!=null)for(h=s.length;h--;)Te(s[h]);o&&m!=\"textarea\"||(h=\"value\",m==\"progress\"&&D==null?t.removeAttribute(\"value\"):D!=null&&(D!==t[h]||m==\"progress\"&&!D||m==\"option\"&&D!=d[h])&&qt(t,h,D,d[h],i),h=\"checked\",g!=null&&g!=t[h]&&qt(t,h,g,d[h],i))}return t}function Se(t,e,n){try{if(typeof t==\"function\"){var r=typeof t.__u==\"function\";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){H.__e(i,n)}}function vn(t,e,n){var r,i;if(H.unmount&&H.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Se(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){H.__e(s,e)}r.base=r.__P=r.__n=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&vn(r[i],e,n||typeof t.type!=\"function\");n||Te(t.__e),t.__c=t.__=t.__e=void 0}function mi(t,e,n){return this.constructor(t,n)}pn=ne.slice,H={__e:function(t,e,n,r){for(var i,s,u;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),u=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),u=i.__d),u)return i.__E=i}catch(o){t=o}throw t}},gn=0,hi=function(t){return t!=null&&t.constructor===void 0},ee.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof t==\"function\"&&(t=t(q({},n),this.props)),t&&q(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),cn(this))},ee.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),cn(this))},ee.prototype.render=kt,ut=[],dn=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Dn=function(t,e){return t.__v.__b-e.__v.__b},ie.__r=0,ve=Math.random().toString(8),te=\"__d\"+ve,It=\"__a\"+ve,mn=/(PointerCapture)$|Capture$/i,be=0,Be=an(!1),ke=an(!0),ci=0;function _i(){return typeof document>\"u\"?\"\":document.body?.dataset?.basepath??\"\"}function Le(t,e){let n=e??_i(),r=t.startsWith(\"/\")?t:\"/\"+t;return n+r}function tt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function xn(t,e){if(!t)return()=>{};let n=i=>{t.classList.contains(\"active\")&&i.target===t&&(i.preventDefault(),i.stopPropagation(),e())},r=i=>{t.classList.contains(\"active\")&&i.key===\"Escape\"&&(i.preventDefault(),e())};return t.addEventListener(\"click\",n),document.addEventListener(\"keydown\",r),()=>{t.removeEventListener(\"click\",n),document.removeEventListener(\"keydown\",r)}}function Bn(t,e){let n=t.querySelectorAll(\"[src], [href]\");for(let r of Array.from(n)){let i=r.hasAttribute(\"href\")?\"href\":\"src\",s=r.getAttribute(i);if(s&&!(s.startsWith(\"http://\")||s.startsWith(\"https://\")||s.startsWith(\"mailto:\")||s.startsWith(\"tel:\")||s.startsWith(\"#\")||s.startsWith(\"/\")||s.startsWith(\"data:\")))try{let u=new URL(s,e).toString();r.setAttribute(i,u)}catch{continue}}}function se(t){return t.replaceAll(\"&\",\"&amp;\").replaceAll(\"<\",\"&lt;\").replaceAll(\">\",\"&gt;\").replaceAll('\"',\"&quot;\").replaceAll(\"'\",\"&#039;\")}var Me=\"basic\",bt=\"\",kn=8,yi=5,ue=30,Ci=t=>{let e=[],n=-1,r=-1,i=t.toLowerCase(),s=0;for(let u of i){let o=u.codePointAt(0);o>=12352&&o<=12447||o>=12448&&o<=12543||o>=19968&&o<=40959||o>=44032&&o<=55215||o>=131072&&o<=173791?(n!==-1&&(e.push(i.slice(n,r)),n=-1),e.push(u)):o===32||o===9||o===10||o===13?n!==-1&&(e.push(i.slice(n,r)),n=-1):(n===-1&&(n=s),r=s+1),s+=u.length}return n!==-1&&e.push(i.slice(n)),e},le=new ln.Document({encode:Ci,document:{id:\"id\",tag:\"tags\",index:[{field:\"title\",tokenize:\"forward\"},{field:\"content\",tokenize:\"forward\"},{field:\"tags\",tokenize:\"forward\"}]}}),Z=null,Ht=[],Pt=[],je=new Map;function oe(t){let e=t.split(/\\s+/),n=[],r=[];for(let i of e)i.startsWith(\"#\")&&i.length>1?n.push(i.substring(1)):i!==\"#\"&&r.push(i);return{tags:n,query:r.join(\" \").trim()}}function bn(t){let e=t.split(/\\s+/),n=e[e.length-1];return n&&n.startsWith(\"#\")?n.substring(1):null}var Sn=new DOMParser;async function Ei(t){if(je.has(t))return je.get(t);let e=new URL(Le(t),window.location.origin).toString();try{let n=await fetch(e);if(!n.ok)return[];let r=await n.text(),i=Sn.parseFromString(r??\"\",\"text/html\");Bn(i,e);let s=Array.from(i.getElementsByClassName(\"popover-hint\"));return je.set(t,s),s}catch{return[]}}var Ie=[];function Ft(t){Ie.push(t)}function Ai(){Ie.forEach(t=>t()),Ie.length=0}async function wi(){let t=document.querySelectorAll(\".search\");for(let e of Array.from(t)){let n=e.querySelector(\".search-container\"),r=e.querySelector(\".search-button\"),i=e.querySelector(\".search-bar\"),s=e.querySelector(\".search-layout\");if(!n||!r||!i||!s)continue;let u=n.closest(\".sidebar\"),o=s.getAttribute(\"data-preview\")===\"true\",l=s.getAttribute(\"data-field-priority\"),h=l?JSON.parse(l):[\"title\",\"content\",\"tags\"],f=s.querySelector(\".results-container\");f||(f=document.createElement(\"div\"),f.className=\"results-container\",f.setAttribute(\"role\",\"listbox\"),f.setAttribute(\"aria-label\",\"Search results\"),s.appendChild(f));let a=s.querySelector(\".preview-container\");o&&!a&&(a=document.createElement(\"div\"),a.className=\"preview-container\",s.appendChild(a));let c=document.createElement(\"div\");c.className=\"tag-suggestions\",c.setAttribute(\"role\",\"listbox\"),c.setAttribute(\"aria-label\",\"Tag suggestions\"),c.style.display=\"none\";let p=i.parentElement;p.insertBefore(c,i.nextSibling);let D=document.createElement(\"span\");D.className=\"ghost-text\",D.setAttribute(\"aria-hidden\",\"true\"),p.insertBefore(D,i.nextSibling);let g=-1,d=[],F=!1,m=_=>{if(g<0||g>=d.length){D.textContent=\"\";return}let A=d[g];if(!A.toLowerCase().startsWith(_.toLowerCase())){D.textContent=\"\";return}let M=A.substring(_.length);D.innerHTML=\"\";let L=document.createElement(\"span\");L.style.visibility=\"hidden\",L.textContent=i.value,D.appendChild(L),D.appendChild(document.createTextNode(M))},E=()=>{c.querySelectorAll(\".tag-suggestion-item\").forEach((M,L)=>{M.classList.toggle(\"active\",L===g)});let A=bn(i.value)||\"\";m(A)},v=()=>{F=!1,g=-1,d=[],c.style.display=\"none\",D.textContent=\"\"},b=_=>{let A=i.value,M=A.lastIndexOf(\"#\");M!==-1&&(i.value=A.substring(0,M)+\"#\"+_+\" \"),v(),i.focus(),i.dispatchEvent(new Event(\"input\"))},x=_=>{if(Rt){if(d=_===\"\"?Pt.slice(0,10):Pt.filter(A=>A.toLowerCase().startsWith(_.toLowerCase())).slice(0,10),d.length===0){v();return}g=0,F=!0,tt(c);for(let A=0;A<d.length;A++){let M=d[A],L=document.createElement(\"div\");L.className=\"tag-suggestion-item\"+(A===0?\" active\":\"\"),L.setAttribute(\"role\",\"option\"),L.setAttribute(\"data-tag\",M),L.setAttribute(\"data-index\",String(A)),L.textContent=\"#\"+M,c.appendChild(L)}c.style.display=\"block\",m(_)}},k=_=>!F||d.length===0?!1:(_===\"down\"?g=Math.min(g+1,d.length-1):g=Math.max(g-1,0),E(),!0),y=null,B=0,S=null,T=()=>{n.classList.remove(\"active\"),u&&(u.style.zIndex=\"\"),r.setAttribute(\"aria-expanded\",\"false\"),i.value=\"\",tt(f),a&&tt(a),s.classList.remove(\"display-results\"),Me=\"basic\",y=null,v(),r.focus()},W=_=>{Me=_,u&&(u.style.zIndex=\"9999\"),n.classList.add(\"active\"),r.setAttribute(\"aria-expanded\",\"true\"),i.focus()},z=async _=>{if(tt(f),_.length===0){let A=document.createElement(\"a\");A.className=\"result-card no-match\";let M=document.createElement(\"h3\");M.textContent=\"No results.\";let L=document.createElement(\"p\");L.textContent=\"Try another search term?\",A.appendChild(M),A.appendChild(L),f.appendChild(A),y=null,a&&tt(a)}else for(let A of _){let M=document.createElement(\"a\");M.className=\"result-card\",M.id=A.slug,M.href=Le(A.slug);let L=document.createElement(\"h3\");if(L.className=\"card-title\",L.innerHTML=A.title.replace(/<(?!\\/?span\\b)[^>]*>/gi,\"\"),M.appendChild(L),A.tags.length>0){let K=document.createElement(\"ul\");K.className=\"tags\",K.innerHTML=A.tags.join(\"\"),M.appendChild(K)}let Y=document.createElement(\"p\");Y.className=\"card-description\",Y.innerHTML=A.content.replace(/<(?!\\/?span\\b)[^>]*>/gi,\"\"),M.appendChild(Y),f.appendChild(M)}},N=()=>Array.from(f.querySelectorAll(\".result-card:not(.no-match)\")),P=()=>{let _=oe(bt);return _.query||(_.tags.length>0?_.tags.join(\" \"):bt)},$=async _=>{if(!a||(tt(a),!_))return;let A=_.id,M=++B,L=await Ei(A);if(M!==B)return;let Y=P(),K=document.createElement(\"div\");K.className=\"preview-inner\";for(let ct of L){let yt=ct.cloneNode(!0);Y.trim()!==\"\"&&(yt.innerHTML=vi(Y,yt)),K.appendChild(yt)}a.appendChild(K),requestAnimationFrame(()=>{let ct=Array.from(a.getElementsByClassName(\"highlight\"));if(ct.length===0)return;ct.sort((he,ce)=>ce.innerHTML.length-he.innerHTML.length);let yt=ct[0],Nt=0,ft=yt;for(;ft&&ft!==a;)Nt+=ft.offsetTop,ft=ft.offsetParent;a.scrollTop=Math.max(0,Nt-50)})},et=_=>{y&&y.classList.remove(\"focus\"),y=_,y&&(y.classList.add(\"focus\"),y.scrollIntoView({block:\"nearest\"})),S&&clearTimeout(S),S=setTimeout(()=>$(y),150)},Q=_=>{let A=N();if(A.length===0){et(null);return}let M=Math.min(Math.max(_,0),A.length-1);et(A[M]??null)},Wt=()=>{let _=N();if(_.length===0)return;let A=y?_.indexOf(y):-1;Q(A+1)},ot=()=>{let _=N();if(_.length===0)return;let A=y?_.indexOf(y):_.length;Q(A-1)},nt=async _=>{let A=_.target.value;bt=A;let M=bn(A);M!==null?x(M):v();let L=oe(A),Y=L.query!==\"\"||L.tags.length>0;if(s.classList.toggle(\"display-results\",Y),Me=L.tags.length>0&&!L.query?\"tags\":\"basic\",!Y){tt(f),a&&tt(a),y=null;return}let K;L.query?K=await le.searchAsync({query:L.query,limit:L.tags.length>0?1e4:kn,index:[\"title\",\"content\"]}):L.tags.length>0?K=await le.searchAsync({query:L.tags[0],limit:1e4,index:[\"tags\"]}):K=[];let ct=at=>{let Tt=K.filter(zt=>zt.field===at);return Tt.length===0?[]:[...Tt[0].result]},Nt=[...new Set(h.flatMap(at=>ct(at)))].filter(at=>{if(L.tags.length===0)return!0;let Tt=Ht[at];if(!Tt)return!1;let zt=Z?.[Tt];if(!zt)return!1;let In=zt.tags||[];return L.tags.every(Hn=>In.some(Pn=>Pn.toLowerCase()===Hn.toLowerCase()))}),ft=L.query||(L.tags.length>0?L.tags.join(\" \"):A),he=Nt.map(at=>Bi(ft,at));await z(he.slice(0,kn));let ce=N();et(ce[0]??null)},lt=_=>{_.stopPropagation(),W(\"basic\")};r.addEventListener(\"click\",lt),Ft(()=>r.removeEventListener(\"click\",lt)),i.addEventListener(\"input\",nt),Ft(()=>i.removeEventListener(\"input\",nt));let ht=_=>{if(F){if(_.key===\"ArrowDown\"){_.preventDefault(),k(\"down\");return}if(_.key===\"ArrowUp\"){_.preventDefault(),k(\"up\");return}if(_.key===\"Tab\"){_.preventDefault(),g>=0&&g<d.length&&b(d[g]);return}if(_.key===\"Enter\"&&!_.isComposing&&g>=0&&g<d.length){_.preventDefault(),b(d[g]);return}if(_.key===\"Escape\"){_.preventDefault(),v();return}}if(_.key===\"ArrowUp\"||_.shiftKey&&_.key===\"Tab\"){_.preventDefault(),ot();return}if(_.key===\"ArrowDown\"||_.key===\"Tab\"){_.preventDefault(),Wt();return}if(_.key===\"Enter\"&&!_.isComposing){let A=y;A instanceof HTMLAnchorElement&&(_.preventDefault(),I(),T(),A.click())}};i.addEventListener(\"keydown\",ht),Ft(()=>i.removeEventListener(\"keydown\",ht));let w=_=>{_.key===\"k\"&&(_.ctrlKey||_.metaKey)&&!_.shiftKey?(_.preventDefault(),n.classList.contains(\"active\")?T():W(\"basic\")):_.shiftKey&&(_.ctrlKey||_.metaKey)&&_.key.toLowerCase()===\"k\"&&(_.preventDefault(),W(\"tags\"),i.value=\"#\",i.dispatchEvent(new Event(\"input\")))};document.addEventListener(\"keydown\",w),Ft(()=>document.removeEventListener(\"keydown\",w));let I=()=>{let _=oe(bt),A=_.query||(_.tags.length>0?_.tags.join(\" \"):bt);A.trim()&&sessionStorage.setItem(\"search-term\",A.trim())},_t=_=>{let A=_.target.closest(\".result-card\");!A||A.classList.contains(\"no-match\")||_ instanceof MouseEvent&&(_.altKey||_.ctrlKey||_.metaKey||_.shiftKey)||(I(),T())},He=_=>{let A=_.target.closest(\".result-card\");!A||A.classList.contains(\"no-match\")||et(A)};f.addEventListener(\"click\",_t),f.addEventListener(\"mouseover\",He),Ft(()=>{f.removeEventListener(\"click\",_t),f.removeEventListener(\"mouseover\",He)});let Pe=_=>{let A=_.target.closest(\".tag-suggestion-item\");if(!A)return;let M=A.getAttribute(\"data-tag\");M&&b(M)},Re=_=>{let A=_.target.closest(\".tag-suggestion-item\");if(!A)return;let M=A.getAttribute(\"data-index\");M!==null&&(g=parseInt(M,10),E())};c.addEventListener(\"click\",Pe),c.addEventListener(\"mouseover\",Re),Ft(()=>{c.removeEventListener(\"click\",Pe),c.removeEventListener(\"mouseover\",Re)});let jn=xn(n,T);Ft(jn)}}function Ln(t){let e=t.split(/\\s+/).filter(r=>r.trim()!==\"\"),n=e.length;if(n>1)for(let r=1;r<n;r++)e.push(e.slice(0,r+1).join(\" \"));return e.sort((r,i)=>i.length-r.length)}function vi(t,e){let n=Ln(t).filter(h=>h.trim()!==\"\");if(n.length===0)return e.innerHTML;let r=Sn.parseFromString(e.innerHTML,\"text/html\"),i=n.map(h=>h.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")).join(\"|\");if(i===\"\")return e.innerHTML;let s=new RegExp(i,\"gi\"),u=r.createTreeWalker(r.body,NodeFilter.SHOW_TEXT),o=[],l=u.nextNode();for(;l;)o.push(l),l=u.nextNode();for(let h of o){let f=h.nodeValue??\"\";if(s.lastIndex=0,!s.test(f))continue;s.lastIndex=0;let a=r.createDocumentFragment(),c=0,p;for(;(p=s.exec(f))!==null;){p.index>c&&a.appendChild(r.createTextNode(f.slice(c,p.index)));let D=r.createElement(\"span\");D.className=\"highlight\",D.textContent=p[0],a.appendChild(D),c=p.index+p[0].length}c<f.length&&a.appendChild(r.createTextNode(f.slice(c))),h.parentNode?.replaceChild(a,h)}return r.body.innerHTML}function Tn(t,e,n){let r=Ln(t),i=se(e).split(/\\s+/).filter(l=>l!==\"\"),s=0,u=i.length-1;if(n){let l=c=>r.some(p=>c.toLowerCase().startsWith(p.toLowerCase())),h=i.map(l),f=0,a=0;for(let c=0;c<Math.max(i.length-ue,0);c++){let D=h.slice(c,c+ue).reduce((g,d)=>g+(d?1:0),0);D>=f&&(f=D,a=c)}s=Math.max(a-ue,0),u=Math.min(s+2*ue,i.length-1),i=i.slice(s,u)}let o=i.map(l=>{let h=l;for(let f of r)if(l.toLowerCase().includes(f.toLowerCase())){let a=new RegExp(f.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),\"gi\");h=l.replace(a,c=>`<span class=\"highlight\">${c}</span>`);break}return h}).join(\" \");return(s===0?\"\":\"...\")+o+(u===i.length-1?\"\":\"...\")}function xi(t,e){return!e||e.length===0||t.length===0?[]:e.map(n=>{let r=se(n);return t.some(i=>n.toLowerCase().includes(i.toLowerCase()))?`<li><p class=\"match-tag\">#${r}</p></li>`:`<li><p>#${r}</p></li>`}).slice(0,yi)}function Bi(t,e){let n=Ht[e];if(!n||!Z)return{id:e,slug:\"\",title:\"\",content:\"\",tags:[]};let r=Z[n];if(!r)return{id:e,slug:n,title:\"\",content:\"\",tags:[]};let i=oe(bt);return{id:e,slug:n,title:i.tags.length>0&&!i.query?se(r.title):Tn(t,r.title||\"\"),content:Tn(t,r.content||\"\",!0),tags:xi(i.tags,r.tags)}}async function ki(){if(!Z)return;let t=0,e=[],n=new Set;for(let r of Object.keys(Z)){let i=Z[r];if(i){Ht[t]=r;for(let s of i.tags||[])n.add(s);e.push(le.addAsync(t,{id:t,slug:r,title:i.title||\"\",content:i.content||\"\",tags:i.tags||[]})),t++}}await Promise.all(e),Pt=[...n].sort()}async function bi(){return await fetchData}var Rt=!1;async function Ti(){Rt||(Z=await bi(),await ki(),Rt=!0)}async function Si(t){if(!Rt||!Z)return 0;let e=new Set(Pt),n=0;for(let r of Object.keys(t)){if(Z[r])continue;let i=t[r];if(!i)continue;let s=Ht.length;Ht[s]=r,Z[r]=i;for(let u of i.tags||[])e.add(u);await le.addAsync(s,{id:s,slug:r,title:i.title||\"\",content:i.content||\"\",tags:i.tags||[]}),n++}return Pt=[...e].sort(),n}document.addEventListener(\"content-index-updated\",t=>{let e=t.detail;if(!Rt||!Z)return;let n=e?.slugs;!Array.isArray(n)||n.length===0||(async()=>{try{let r=await fetchData;if(!r||typeof r!=\"object\")return;let i=r.content&&typeof r.content==\"object\"?r.content:r,s={};for(let u of n){let o=i[u];o&&typeof o==\"object\"&&(s[u]=o)}await Si(s)}catch{}})()});function Li(){let t=sessionStorage.getItem(\"search-term\");t&&(sessionStorage.removeItem(\"search-term\"),requestAnimationFrame(()=>{let e=\".popover-hint h1, .popover-hint h2, .popover-hint h3, .popover-hint h4, .popover-hint h5, .popover-hint h6, article h1, article h2, article h3\",n=\".popover-hint p, .popover-hint li, .popover-hint td, .popover-hint th, .popover-hint blockquote, article p, article li\",r=document.querySelectorAll(e),i=document.querySelectorAll(n),s=[...Array.from(r),...Array.from(i)];for(let u of s){let l=(u.textContent??\"\").toLowerCase().indexOf(t.toLowerCase());if(l===-1)continue;let h=document.createTreeWalker(u,NodeFilter.SHOW_TEXT),f=0,a,c=null,p=0,D=null,g=0;for(;a=h.nextNode();){let d=a.nodeValue?.length??0;if(!c&&f+d>l&&(c=a,p=l-f),c&&f+d>=l+t.length){D=a,g=l+t.length-f;break}f+=d}if(!(!c||!D)){try{let d=document.createRange();d.setStart(c,p),d.setEnd(D,g);let F=document.createElement(\"span\");F.className=\"search-scroll-target\",d.surroundContents(F),F.scrollIntoView({block:\"center\",behavior:\"smooth\"}),setTimeout(()=>{F.classList.add(\"fade-out\"),setTimeout(()=>{let m=F.parentNode;m&&(m.replaceChild(document.createTextNode(F.textContent||\"\"),F),m.normalize())},1e3)},2e3)}catch{u.scrollIntoView({block:\"center\",behavior:\"smooth\"})}break}}}))}async function Mn(){Ai(),await Ti(),await wi(),Li()}document.addEventListener(\"nav\",Mn);document.addEventListener(\"render\",Mn);\n","/** Normal hydration that attaches to a DOM tree but does not diff it. */\nexport const MODE_HYDRATE = 1 << 5;\n/** Signifies this VNode suspended on the previous render */\nexport const MODE_SUSPENDED = 1 << 7;\n/** Indicates that this node needs to be inserted while patching children */\nexport const INSERT_VNODE = 1 << 2;\n/** Indicates a VNode has been matched with another VNode in the diff */\nexport const MATCHED = 1 << 1;\n\n/** Reset all mode flags */\nexport const RESET_MODE = ~(MODE_HYDRATE | MODE_SUSPENDED);\n\nexport const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\nexport const XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\nexport const MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n\nexport const NULL = null;\nexport const UNDEFINED = undefined;\nexport const EMPTY_OBJ = /** @type {any} */ ({});\nexport const EMPTY_ARR = [];\nexport const IS_NON_DIMENSIONAL =\n\t/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;\n","import { _catchError } from './diff/catch-error';\n\n/**\n * The `option` object can potentially contain callback functions\n * that are called during various stages of our renderer. This is the\n * foundation on which all our addons like `preact/debug`, `preact/compat`,\n * and `preact/hooks` are based on. See the `Options` type in `internal.d.ts`\n * for a full list of available option hooks (most editors/IDEs allow you to\n * ctrl+click or cmd+click on mac the type definition below).\n * @type {import('./internal').Options}\n */\nconst options = {\n\t_catchError\n};\n\nexport default options;\n","import { NULL } from '../constants';\n\n/**\n * Find the closest error boundary to a thrown error and call it\n * @param {object} error The thrown value\n * @param {import('../internal').VNode} vnode The vnode that threw the error that was caught (except\n * for unmounting when this parameter is the highest parent that was being\n * unmounted)\n * @param {import('../internal').VNode} [oldVNode]\n * @param {import('../internal').ErrorInfo} [errorInfo]\n */\nexport function _catchError(error, vnode, oldVNode, errorInfo) {\n\t/** @type {import('../internal').Component} */\n\tlet component,\n\t\t/** @type {import('../internal').ComponentType} */\n\t\tctor,\n\t\t/** @type {boolean} */\n\t\thandled;\n\n\tfor (; (vnode = vnode._parent); ) {\n\t\tif ((component = vnode._component) && !component._processingException) {\n\t\t\ttry {\n\t\t\t\tctor = component.constructor;\n\n\t\t\t\tif (ctor && ctor.getDerivedStateFromError != NULL) {\n\t\t\t\t\tcomponent.setState(ctor.getDerivedStateFromError(error));\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\tif (component.componentDidCatch != NULL) {\n\t\t\t\t\tcomponent.componentDidCatch(error, errorInfo || {});\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\t// This is an error boundary. Mark it as having bailed out, and whether it was mid-hydration.\n\t\t\t\tif (handled) {\n\t\t\t\t\treturn (component._pendingError = component);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\terror = e;\n\t\t\t}\n\t\t}\n\t}\n\n\tthrow error;\n}\n","import { assign } from './util';\nimport { diff, commitRoot } from './diff/index';\nimport options from './options';\nimport { Fragment } from './create-element';\nimport { MODE_HYDRATE, NULL } from './constants';\n\n/**\n * Base Component class. Provides `setState()` and `forceUpdate()`, which\n * trigger rendering\n * @param {object} props The initial component props\n * @param {object} context The initial context from parent components'\n * getChildContext\n */\nexport function BaseComponent(props, context) {\n\tthis.props = props;\n\tthis.context = context;\n}\n\n/**\n * Update component state and schedule a re-render.\n * @this {import('./internal').Component}\n * @param {object | ((s: object, p: object) => object)} update A hash of state\n * properties to update with new values or a function that given the current\n * state and props returns a new partial state\n * @param {() => void} [callback] A function to be called once component state is\n * updated\n */\nBaseComponent.prototype.setState = function (update, callback) {\n\t// only clone state when copying to nextState the first time.\n\tlet s;\n\tif (this._nextState != NULL && this._nextState != this.state) {\n\t\ts = this._nextState;\n\t} else {\n\t\ts = this._nextState = assign({}, this.state);\n\t}\n\n\tif (typeof update == 'function') {\n\t\t// Some libraries like `immer` mark the current state as readonly,\n\t\t// preventing us from mutating it, so we need to clone it. See #2716\n\t\tupdate = update(assign({}, s), this.props);\n\t}\n\n\tif (update) {\n\t\tassign(s, update);\n\t}\n\n\t// Skip update if updater function returned null\n\tif (update == NULL) return;\n\n\tif (this._vnode) {\n\t\tif (callback) {\n\t\t\tthis._stateCallbacks.push(callback);\n\t\t}\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Immediately perform a synchronous re-render of the component\n * @this {import('./internal').Component}\n * @param {() => void} [callback] A function to be called after component is\n * re-rendered\n */\nBaseComponent.prototype.forceUpdate = function (callback) {\n\tif (this._vnode) {\n\t\t// Set render mode so that we can differentiate where the render request\n\t\t// is coming from. We need this because forceUpdate should never call\n\t\t// shouldComponentUpdate\n\t\tthis._force = true;\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Accepts `props` and `state`, and returns a new Virtual DOM tree to build.\n * Virtual DOM is generally constructed via [JSX](https://jasonformat.com/wtf-is-jsx).\n * @param {object} props Props (eg: JSX attributes) received from parent\n * element/component\n * @param {object} state The component's current state\n * @param {object} context Context object, as returned by the nearest\n * ancestor's `getChildContext()`\n * @returns {ComponentChildren | void}\n */\nBaseComponent.prototype.render = Fragment;\n\n/**\n * @param {import('./internal').VNode} vnode\n * @param {number | null} [childIndex]\n */\nexport function getDomSibling(vnode, childIndex) {\n\tif (childIndex == NULL) {\n\t\t// Use childIndex==null as a signal to resume the search from the vnode's sibling\n\t\treturn vnode._parent\n\t\t\t? getDomSibling(vnode._parent, vnode._index + 1)\n\t\t\t: NULL;\n\t}\n\n\tlet sibling;\n\tfor (; childIndex < vnode._children.length; childIndex++) {\n\t\tsibling = vnode._children[childIndex];\n\n\t\tif (sibling != NULL && sibling._dom != NULL) {\n\t\t\t// Since updateParentDomPointers keeps _dom pointer correct,\n\t\t\t// we can rely on _dom to tell us if this subtree contains a\n\t\t\t// rendered DOM node, and what the first rendered DOM node is\n\t\t\treturn sibling._dom;\n\t\t}\n\t}\n\n\t// If we get here, we have not found a DOM node in this vnode's children.\n\t// We must resume from this vnode's sibling (in it's parent _children array)\n\t// Only climb up and search the parent if we aren't searching through a DOM\n\t// VNode (meaning we reached the DOM parent of the original vnode that began\n\t// the search)\n\treturn typeof vnode.type == 'function' ? getDomSibling(vnode) : NULL;\n}\n\n/**\n * Trigger in-place re-rendering of a component.\n * @param {import('./internal').Component} component The component to rerender\n */\nfunction renderComponent(component) {\n\tif (component._parentDom && component._dirty) {\n\t\tlet oldVNode = component._vnode,\n\t\t\toldDom = oldVNode._dom,\n\t\t\tcommitQueue = [],\n\t\t\trefQueue = [],\n\t\t\tnewVNode = assign({}, oldVNode);\n\t\tnewVNode._original = oldVNode._original + 1;\n\t\tif (options.vnode) options.vnode(newVNode);\n\n\t\tdiff(\n\t\t\tcomponent._parentDom,\n\t\t\tnewVNode,\n\t\t\toldVNode,\n\t\t\tcomponent._globalContext,\n\t\t\tcomponent._parentDom.namespaceURI,\n\t\t\toldVNode._flags & MODE_HYDRATE ? [oldDom] : NULL,\n\t\t\tcommitQueue,\n\t\t\toldDom == NULL ? getDomSibling(oldVNode) : oldDom,\n\t\t\t!!(oldVNode._flags & MODE_HYDRATE),\n\t\t\trefQueue\n\t\t);\n\n\t\tnewVNode._original = oldVNode._original;\n\t\tnewVNode._parent._children[newVNode._index] = newVNode;\n\t\tcommitRoot(commitQueue, newVNode, refQueue);\n\t\toldVNode._dom = oldVNode._parent = null;\n\n\t\tif (newVNode._dom != oldDom) {\n\t\t\tupdateParentDomPointers(newVNode);\n\t\t}\n\t}\n}\n\n/**\n * @param {import('./internal').VNode} vnode\n */\nfunction updateParentDomPointers(vnode) {\n\tif ((vnode = vnode._parent) != NULL && vnode._component != NULL) {\n\t\tvnode._dom = vnode._component.base = NULL;\n\t\tvnode._children.some(child => {\n\t\t\tif (child != NULL && child._dom != NULL) {\n\t\t\t\treturn (vnode._dom = vnode._component.base = child._dom);\n\t\t\t}\n\t\t});\n\n\t\treturn updateParentDomPointers(vnode);\n\t}\n}\n\n/**\n * The render queue\n * @type {Array<import('./internal').Component>}\n */\nlet rerenderQueue = [];\n\n/*\n * The value of `Component.debounce` must asynchronously invoke the passed in callback. It is\n * important that contributors to Preact can consistently reason about what calls to `setState`, etc.\n * do, and when their effects will be applied. See the links below for some further reading on designing\n * asynchronous APIs.\n * * [Designing APIs for Asynchrony](https://blog.izs.me/2013/08/designing-apis-for-asynchrony)\n * * [Callbacks synchronous and asynchronous](https://blog.ometer.com/2011/07/24/callbacks-synchronous-and-asynchronous/)\n */\n\nlet prevDebounce;\n\nconst defer =\n\ttypeof Promise == 'function'\n\t\t? Promise.prototype.then.bind(Promise.resolve())\n\t\t: setTimeout;\n\n/**\n * Enqueue a rerender of a component\n * @param {import('./internal').Component} c The component to rerender\n */\nexport function enqueueRender(c) {\n\tif (\n\t\t(!c._dirty &&\n\t\t\t(c._dirty = true) &&\n\t\t\trerenderQueue.push(c) &&\n\t\t\t!process._rerenderCount++) ||\n\t\tprevDebounce != options.debounceRendering\n\t) {\n\t\tprevDebounce = options.debounceRendering;\n\t\t(prevDebounce || defer)(process);\n\t}\n}\n\n/**\n * @param {import('./internal').Component} a\n * @param {import('./internal').Component} b\n */\nconst depthSort = (a, b) => a._vnode._depth - b._vnode._depth;\n\n/** Flush the render queue by rerendering all queued components */\nfunction process() {\n\ttry {\n\t\tlet c,\n\t\t\tl = 1;\n\n\t\t// Don't update `renderCount` yet. Keep its value non-zero to prevent unnecessary\n\t\t// process() calls from getting scheduled while `queue` is still being consumed.\n\t\twhile (rerenderQueue.length) {\n\t\t\t// Keep the rerender queue sorted by (depth, insertion order). The queue\n\t\t\t// will initially be sorted on the first iteration only if it has more than 1 item.\n\t\t\t//\n\t\t\t// New items can be added to the queue e.g. when rerendering a provider, so we want to\n\t\t\t// keep the order from top to bottom with those new items so we can handle them in a\n\t\t\t// single pass\n\t\t\tif (rerenderQueue.length > l) {\n\t\t\t\trerenderQueue.sort(depthSort);\n\t\t\t}\n\n\t\t\tc = rerenderQueue.shift();\n\t\t\tl = rerenderQueue.length;\n\n\t\t\trenderComponent(c);\n\t\t}\n\t} finally {\n\t\trerenderQueue.length = process._rerenderCount = 0;\n\t}\n}\n\nprocess._rerenderCount = 0;\n","import { IS_NON_DIMENSIONAL, NULL, SVG_NAMESPACE } from '../constants';\nimport options from '../options';\n\n// Per-instance unique key for event clock stamps. Each Preact copy on the page\n// gets its own random suffix so that `_dispatched` / `_attached` properties on\n// shared event objects and handler functions cannot collide across instances.\n// ~1 in 60M collision odds - if you have that many praect versions on the page,\n// you deserve some weird bugs.\n// In 11 we can replace this with a\n// Symbol\nlet _id = Math.random().toString(8),\n\tEVENT_DISPATCHED = '__d' + _id,\n\tEVENT_ATTACHED = '__a' + _id;\n\nfunction setStyle(style, key, value) {\n\tif (key[0] == '-') {\n\t\tstyle.setProperty(key, value == NULL ? '' : value);\n\t} else if (value == NULL) {\n\t\tstyle[key] = '';\n\t} else if (typeof value != 'number' || IS_NON_DIMENSIONAL.test(key)) {\n\t\tstyle[key] = value;\n\t} else {\n\t\tstyle[key] = value + 'px';\n\t}\n}\n\nconst CAPTURE_REGEX = /(PointerCapture)$|Capture$/i;\n\n// A logical clock to solve issues like https://github.com/preactjs/preact/issues/3927.\n// When the DOM performs an event it leaves micro-ticks in between bubbling up which means that\n// an event can trigger on a newly reated DOM-node while the event bubbles up.\n//\n// Originally inspired by Vue\n// (https://github.com/vuejs/core/blob/caeb8a68811a1b0f79/packages/runtime-dom/src/modules/events.ts#L90-L101),\n// but modified to use a logical clock instead of Date.now() in case event handlers get attached\n// and events get dispatched during the same millisecond.\n//\n// The clock is incremented after each new event dispatch. This allows 1 000 000 new events\n// per second for over 280 years before the value reaches Number.MAX_SAFE_INTEGER (2**53 - 1).\nlet eventClock = 0;\n\n/**\n * Set a property value on a DOM node\n * @param {import('../internal').PreactElement} dom The DOM node to modify\n * @param {string} name The name of the property to set\n * @param {*} value The value to set the property to\n * @param {*} oldValue The old value the property had\n * @param {string} namespace Whether or not this DOM node is an SVG node or not\n */\nexport function setProperty(dom, name, value, oldValue, namespace) {\n\tlet useCapture;\n\n\to: if (name == 'style') {\n\t\tif (typeof value == 'string') {\n\t\t\tdom.style.cssText = value;\n\t\t} else {\n\t\t\tif (typeof oldValue == 'string') {\n\t\t\t\tdom.style.cssText = oldValue = '';\n\t\t\t}\n\n\t\t\tif (oldValue) {\n\t\t\t\tfor (name in oldValue) {\n\t\t\t\t\tif (!(value && name in value)) {\n\t\t\t\t\t\tsetStyle(dom.style, name, '');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (value) {\n\t\t\t\tfor (name in value) {\n\t\t\t\t\tif (!oldValue || value[name] != oldValue[name]) {\n\t\t\t\t\t\tsetStyle(dom.style, name, value[name]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Benchmark for comparison: https://esbench.com/bench/574c954bdb965b9a00965ac6\n\telse if (name[0] == 'o' && name[1] == 'n') {\n\t\tuseCapture = name != (name = name.replace(CAPTURE_REGEX, '$1'));\n\t\tconst lowerCaseName = name.toLowerCase();\n\n\t\t// Infer correct casing for DOM built-in events:\n\t\tif (lowerCaseName in dom || name == 'onFocusOut' || name == 'onFocusIn')\n\t\t\tname = lowerCaseName.slice(2);\n\t\telse name = name.slice(2);\n\n\t\tif (!dom._listeners) dom._listeners = {};\n\t\tdom._listeners[name + useCapture] = value;\n\n\t\tif (value) {\n\t\t\tif (!oldValue) {\n\t\t\t\tvalue[EVENT_ATTACHED] = eventClock;\n\t\t\t\tdom.addEventListener(\n\t\t\t\t\tname,\n\t\t\t\t\tuseCapture ? eventProxyCapture : eventProxy,\n\t\t\t\t\tuseCapture\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tvalue[EVENT_ATTACHED] = oldValue[EVENT_ATTACHED];\n\t\t\t}\n\t\t} else {\n\t\t\tdom.removeEventListener(\n\t\t\t\tname,\n\t\t\t\tuseCapture ? eventProxyCapture : eventProxy,\n\t\t\t\tuseCapture\n\t\t\t);\n\t\t}\n\t} else {\n\t\tif (namespace == SVG_NAMESPACE) {\n\t\t\t// Normalize incorrect prop usage for SVG:\n\t\t\t// - xlink:href / xlinkHref --> href (xlink:href was removed from SVG and isn't needed)\n\t\t\t// - className --> class\n\t\t\tname = name.replace(/xlink(H|:h)/, 'h').replace(/sName$/, 's');\n\t\t} else if (\n\t\t\tname != 'width' &&\n\t\t\tname != 'height' &&\n\t\t\tname != 'href' &&\n\t\t\tname != 'list' &&\n\t\t\tname != 'form' &&\n\t\t\t// Default value in browsers is `-1` and an empty string is\n\t\t\t// cast to `0` instead\n\t\t\tname != 'tabIndex' &&\n\t\t\tname != 'download' &&\n\t\t\tname != 'rowSpan' &&\n\t\t\tname != 'colSpan' &&\n\t\t\tname != 'role' &&\n\t\t\tname != 'popover' &&\n\t\t\tname in dom\n\t\t) {\n\t\t\ttry {\n\t\t\t\tdom[name] = value == NULL ? '' : value;\n\t\t\t\t// labelled break is 1b smaller here than a return statement (sorry)\n\t\t\t\tbreak o;\n\t\t\t} catch (e) {}\n\t\t}\n\n\t\t// aria- and data- attributes have no boolean representation.\n\t\t// A `false` value is different from the attribute not being\n\t\t// present, so we can't remove it. For non-boolean aria\n\t\t// attributes we could treat false as a removal, but the\n\t\t// amount of exceptions would cost too many bytes. On top of\n\t\t// that other frameworks generally stringify `false`.\n\n\t\tif (typeof value == 'function') {\n\t\t\t// never serialize functions as attribute values\n\t\t} else if (value != NULL && (value !== false || name[4] == '-')) {\n\t\t\tdom.setAttribute(name, name == 'popover' && value == true ? '' : value);\n\t\t} else {\n\t\t\tdom.removeAttribute(name);\n\t\t}\n\t}\n}\n\n/**\n * Create an event proxy function.\n * @param {boolean} useCapture Is the event handler for the capture phase.\n * @private\n */\nfunction createEventProxy(useCapture) {\n\t/**\n\t * Proxy an event to hooked event handlers\n\t * @param {import('../internal').PreactEvent} e The event object from the browser\n\t * @private\n\t */\n\treturn function (e) {\n\t\tif (this._listeners) {\n\t\t\tconst eventHandler = this._listeners[e.type + useCapture];\n\t\t\tif (e[EVENT_DISPATCHED] == NULL) {\n\t\t\t\te[EVENT_DISPATCHED] = eventClock++;\n\n\t\t\t\t// When `e[EVENT_DISPATCHED]` is smaller than the time when the targeted event\n\t\t\t\t// handler was attached we know we have bubbled up to an element that was added\n\t\t\t\t// during patching the DOM.\n\t\t\t} else if (e[EVENT_DISPATCHED] < eventHandler[EVENT_ATTACHED]) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn eventHandler(options.event ? options.event(e) : e);\n\t\t}\n\t};\n}\n\nconst eventProxy = createEventProxy(false);\nconst eventProxyCapture = createEventProxy(true);\n","import { enqueueRender } from './component';\nimport { NULL } from './constants';\n\nexport let i = 0;\n\nexport function createContext(defaultValue) {\n\tfunction Context(props) {\n\t\tif (!this.getChildContext) {\n\t\t\t/** @type {Set<import('./internal').Component> | null} */\n\t\t\tlet subs = new Set();\n\t\t\tlet ctx = {};\n\t\t\tctx[Context._id] = this;\n\n\t\t\tthis.getChildContext = () => ctx;\n\n\t\t\tthis.componentWillUnmount = () => {\n\t\t\t\tsubs = NULL;\n\t\t\t};\n\n\t\t\tthis.shouldComponentUpdate = function (_props) {\n\t\t\t\t// @ts-expect-error even\n\t\t\t\tif (this.props.value != _props.value) {\n\t\t\t\t\tsubs.forEach(c => {\n\t\t\t\t\t\tc._force = true;\n\t\t\t\t\t\tenqueueRender(c);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tthis.sub = c => {\n\t\t\t\tsubs.add(c);\n\t\t\t\tlet old = c.componentWillUnmount;\n\t\t\t\tc.componentWillUnmount = () => {\n\t\t\t\t\tif (subs) {\n\t\t\t\t\t\tsubs.delete(c);\n\t\t\t\t\t}\n\t\t\t\t\tif (old) old.call(c);\n\t\t\t\t};\n\t\t\t};\n\t\t}\n\n\t\treturn props.children;\n\t}\n\n\tContext._id = '__cC' + i++;\n\tContext._defaultValue = defaultValue;\n\n\t/** @type {import('./internal').FunctionComponent} */\n\tContext.Consumer = (props, contextValue) => {\n\t\treturn props.children(contextValue);\n\t};\n\n\t// we could also get rid of _contextRef entirely\n\tContext.Provider =\n\t\tContext._contextRef =\n\t\tContext.Consumer.contextType =\n\t\t\tContext;\n\n\treturn Context;\n}\n","import { options, Fragment } from 'preact';\nimport { encodeEntities } from './utils';\nimport { IS_NON_DIMENSIONAL } from '../../src/constants';\n\nlet vnodeId = 0;\n\nconst isArray = Array.isArray;\n\n/**\n * @fileoverview\n * This file exports various methods that implement Babel's \"automatic\" JSX runtime API:\n * - jsx(type, props, key)\n * - jsxs(type, props, key)\n * - jsxDEV(type, props, key, __source, __self)\n *\n * The implementation of createVNode here is optimized for performance.\n * Benchmarks: https://esbench.com/bench/5f6b54a0b4632100a7dcd2b3\n */\n\n/**\n * JSX.Element factory used by Babel's {runtime:\"automatic\"} JSX transform\n * @param {VNode['type']} type\n * @param {VNode['props']} props\n * @param {VNode['key']} [key]\n * @param {unknown} [isStaticChildren]\n * @param {unknown} [__source]\n * @param {unknown} [__self]\n */\nfunction createVNode(type, props, key, isStaticChildren, __source, __self) {\n\tif (!props) props = {};\n\t// We'll want to preserve `ref` in props to get rid of the need for\n\t// forwardRef components in the future, but that should happen via\n\t// a separate PR.\n\tlet normalizedProps = props,\n\t\tref,\n\t\ti;\n\n\tif ('ref' in normalizedProps) {\n\t\tnormalizedProps = {};\n\t\tfor (i in props) {\n\t\t\tif (i == 'ref') {\n\t\t\t\tref = props[i];\n\t\t\t} else {\n\t\t\t\tnormalizedProps[i] = props[i];\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @type {VNode & { __source: any; __self: any }} */\n\tconst vnode = {\n\t\ttype,\n\t\tprops: normalizedProps,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t_component: null,\n\t\tconstructor: undefined,\n\t\t_original: --vnodeId,\n\t\t_index: -1,\n\t\t_flags: 0,\n\t\t__source,\n\t\t__self\n\t};\n\n\t// If a Component VNode, check for and apply defaultProps.\n\t// Note: `type` is often a String, and can be `undefined` in development.\n\tif (typeof type === 'function' && (ref = type.defaultProps)) {\n\t\tfor (i in ref)\n\t\t\tif (normalizedProps[i] === undefined) {\n\t\t\t\tnormalizedProps[i] = ref[i];\n\t\t\t}\n\t}\n\n\tif (options.vnode) options.vnode(vnode);\n\treturn vnode;\n}\n\n/**\n * Create a template vnode. This function is not expected to be\n * used directly, but rather through a precompile JSX transform\n * @param {string[]} templates\n * @param {Array<string | null | VNode>} exprs\n * @returns {VNode}\n */\nfunction jsxTemplate(templates, ...exprs) {\n\tconst vnode = createVNode(Fragment, { tpl: templates, exprs });\n\t// Bypass render to string top level Fragment optimization\n\tvnode.key = vnode._vnode;\n\treturn vnode;\n}\n\nconst JS_TO_CSS = {};\nconst CSS_REGEX = /[A-Z]/g;\n\n/**\n * Unwrap potential signals.\n * @param {*} value\n * @returns {*}\n */\nfunction normalizeAttrValue(value) {\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.valueOf === 'function'\n\t\t? value.valueOf()\n\t\t: value;\n}\n\n/**\n * Serialize an HTML attribute to a string. This function is not\n * expected to be used directly, but rather through a precompile\n * JSX transform\n * @param {string} name The attribute name\n * @param {*} value The attribute value\n * @returns {string}\n */\nfunction jsxAttr(name, value) {\n\tif (options.attr) {\n\t\tconst result = options.attr(name, value);\n\t\tif (typeof result === 'string') return result;\n\t}\n\n\tvalue = normalizeAttrValue(value);\n\n\tif (name === 'ref' || name === 'key') return '';\n\tif (name === 'style' && typeof value === 'object') {\n\t\tlet str = '';\n\t\tfor (let prop in value) {\n\t\t\tlet val = value[prop];\n\t\t\tif (val != null && val !== '') {\n\t\t\t\tconst name =\n\t\t\t\t\tprop[0] == '-'\n\t\t\t\t\t\t? prop\n\t\t\t\t\t\t: JS_TO_CSS[prop] ||\n\t\t\t\t\t\t\t(JS_TO_CSS[prop] = prop.replace(CSS_REGEX, '-$&').toLowerCase());\n\n\t\t\t\tlet suffix = ';';\n\t\t\t\tif (\n\t\t\t\t\ttypeof val === 'number' &&\n\t\t\t\t\t// Exclude custom-attributes\n\t\t\t\t\t!name.startsWith('--') &&\n\t\t\t\t\t!IS_NON_DIMENSIONAL.test(name)\n\t\t\t\t) {\n\t\t\t\t\tsuffix = 'px;';\n\t\t\t\t}\n\t\t\t\tstr = str + name + ':' + val + suffix;\n\t\t\t}\n\t\t}\n\t\treturn name + '=\"' + encodeEntities(str) + '\"';\n\t}\n\n\tif (\n\t\tvalue == null ||\n\t\tvalue === false ||\n\t\ttypeof value === 'function' ||\n\t\ttypeof value === 'object'\n\t) {\n\t\treturn '';\n\t} else if (value === true) return name;\n\n\treturn name + '=\"' + encodeEntities('' + value) + '\"';\n}\n\n/**\n * Escape a dynamic child passed to `jsxTemplate`. This function\n * is not expected to be used directly, but rather through a\n * precompile JSX transform\n * @param {*} value\n * @returns {string | null | VNode | Array<string | null | VNode>}\n */\nfunction jsxEscape(value) {\n\tif (\n\t\tvalue == null ||\n\t\ttypeof value === 'boolean' ||\n\t\ttypeof value === 'function'\n\t) {\n\t\treturn null;\n\t}\n\n\tif (typeof value === 'object') {\n\t\t// Check for VNode\n\t\tif (value.constructor === undefined) return value;\n\n\t\tif (isArray(value)) {\n\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\tvalue[i] = jsxEscape(value[i]);\n\t\t\t}\n\t\t\treturn value;\n\t\t}\n\t}\n\n\treturn encodeEntities('' + value);\n}\n\nexport {\n\tcreateVNode as jsx,\n\tcreateVNode as jsxs,\n\tcreateVNode as jsxDEV,\n\tFragment,\n\t// precompiled JSX transform\n\tjsxTemplate,\n\tjsxAttr,\n\tjsxEscape\n};\n","import type {\n QuartzComponent,\n QuartzComponentProps,\n QuartzComponentConstructor,\n} from \"@quartz-community/types\";\nimport { classNames } from \"../util/lang\";\nimport { i18n } from \"../i18n\";\nimport style from \"./styles/search.scss\";\n// @ts-expect-error - inline script imported as string by esbuild loader\nimport script from \"./scripts/search.inline.ts\";\n\nexport type SearchField = \"title\" | \"content\" | \"tags\";\n\nexport interface SearchOptions {\n enablePreview: boolean;\n fieldPriority: SearchField[];\n}\n\nconst defaultOptions: SearchOptions = {\n enablePreview: true,\n fieldPriority: [\"title\", \"content\", \"tags\"],\n};\n\nexport default ((userOpts?: Partial<SearchOptions>) => {\n const Search: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {\n const opts = { ...defaultOptions, ...userOpts };\n const locale = cfg.locale ?? \"en-US\";\n const searchPlaceholder = i18n(locale).components.search.searchBarPlaceholder;\n\n return (\n <div class={classNames(displayClass, \"search\")}>\n <button\n class=\"search-button\"\n aria-label={i18n(locale).components.search.title}\n aria-expanded=\"false\"\n >\n <svg role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 19.9 19.7\">\n <title>Search</title>\n <g class=\"search-path\" fill=\"none\">\n <path stroke-linecap=\"square\" d=\"M18.5 18.3l-5.4-5.4\" />\n <circle cx=\"8\" cy=\"8\" r=\"7\" />\n </g>\n </svg>\n <p>{i18n(locale).components.search.title}</p>\n </button>\n <div class=\"search-container\">\n <div class=\"search-space\">\n <input\n autocomplete=\"off\"\n class=\"search-bar\"\n name=\"search\"\n type=\"text\"\n aria-label={searchPlaceholder}\n placeholder={searchPlaceholder}\n />\n <div\n class=\"search-layout\"\n data-preview={opts.enablePreview}\n data-field-priority={JSON.stringify(opts.fieldPriority)}\n ></div>\n </div>\n </div>\n </div>\n );\n };\n\n Search.afterDOMLoaded = script;\n Search.css = style;\n\n return Search;\n}) satisfies QuartzComponentConstructor;\n"]}