@feedlog-ai/webcomponents 0.0.36 → 0.0.37

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.
Files changed (73) hide show
  1. package/README.md +9 -17
  2. package/dist/cjs/feedlog-badge.cjs.entry.js +3 -3
  3. package/dist/cjs/feedlog-button_3.cjs.entry.js +16 -1385
  4. package/dist/cjs/feedlog-card.cjs.entry.js +3 -3
  5. package/dist/cjs/feedlog-issues-client.cjs.entry.js +102 -74
  6. package/dist/cjs/feedlog-issues.cjs.entry.js +4 -11
  7. package/dist/cjs/feedlog-toolkit.cjs.js +2 -2
  8. package/dist/cjs/{index-CXKBwRlh.js → index-prPyjPBk.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/purify.es-ppGw41aq.js +1384 -0
  11. package/dist/collection/components/feedlog-badge/feedlog-badge.css +35 -45
  12. package/dist/collection/components/feedlog-badge/feedlog-badge.js +1 -1
  13. package/dist/collection/components/feedlog-button/feedlog-button.css +16 -66
  14. package/dist/collection/components/feedlog-button/feedlog-button.js +1 -1
  15. package/dist/collection/components/feedlog-card/feedlog-card.css +22 -24
  16. package/dist/collection/components/feedlog-card/feedlog-card.js +1 -1
  17. package/dist/collection/components/feedlog-card/feedlog-card.stories.js +1 -1
  18. package/dist/collection/components/feedlog-issue/feedlog-issue.css +99 -187
  19. package/dist/collection/components/feedlog-issue/feedlog-issue.js +1 -1
  20. package/dist/collection/components/feedlog-issue/feedlog-issue.stories.js +19 -19
  21. package/dist/collection/components/feedlog-issues/feedlog-issues.css +34 -63
  22. package/dist/collection/components/feedlog-issues/feedlog-issues.js +2 -14
  23. package/dist/collection/components/feedlog-issues/feedlog-issues.stories.js +72 -52
  24. package/dist/collection/components/feedlog-issues-client/feedlog-issues-client.js +22 -28
  25. package/dist/collection/components/feedlog-issues-list/feedlog-issues-list.js +3 -3
  26. package/dist/collection/utils/markdown.js +6 -1
  27. package/dist/components/feedlog-badge.js +1 -1
  28. package/dist/components/feedlog-button.js +1 -1
  29. package/dist/components/feedlog-card.js +1 -1
  30. package/dist/components/feedlog-issue.js +1 -1
  31. package/dist/components/feedlog-issues-client.js +1 -1
  32. package/dist/components/feedlog-issues-list.js +1 -1
  33. package/dist/components/feedlog-issues.js +1 -1
  34. package/dist/components/index.js +1 -1
  35. package/dist/components/p-BoxVrJId.js +1 -0
  36. package/dist/components/{p-BRjVS8bz.js → p-CvIMO_S7.js} +2 -2
  37. package/dist/components/p-DFD585IK.js +1 -0
  38. package/dist/components/p-I6NOP29P.js +1 -0
  39. package/dist/components/p-fDVosM5p.js +1 -0
  40. package/dist/esm/feedlog-badge.entry.js +3 -3
  41. package/dist/esm/feedlog-button_3.entry.js +15 -1384
  42. package/dist/esm/feedlog-card.entry.js +3 -3
  43. package/dist/esm/feedlog-issues-client.entry.js +102 -74
  44. package/dist/esm/feedlog-issues.entry.js +4 -11
  45. package/dist/esm/feedlog-toolkit.js +3 -3
  46. package/dist/esm/{index-CgNWSmzU.js → index-Cu1eYdKa.js} +1 -1
  47. package/dist/esm/loader.js +3 -3
  48. package/dist/esm/purify.es-Bow7VsVH.js +1381 -0
  49. package/dist/feedlog-toolkit/feedlog-toolkit.css +1 -1
  50. package/dist/feedlog-toolkit/feedlog-toolkit.esm.js +1 -1
  51. package/dist/feedlog-toolkit/p-001d7353.entry.js +1 -0
  52. package/dist/feedlog-toolkit/p-556062d0.entry.js +1 -0
  53. package/dist/feedlog-toolkit/p-62554649.entry.js +1 -0
  54. package/dist/feedlog-toolkit/p-Bow7VsVH.js +2 -0
  55. package/dist/feedlog-toolkit/p-Cu1eYdKa.js +2 -0
  56. package/dist/feedlog-toolkit/p-b558fc9f.entry.js +1 -0
  57. package/dist/feedlog-toolkit/p-ca90ade9.entry.js +1 -0
  58. package/dist/types/components/feedlog-issues/feedlog-issues.d.ts +0 -5
  59. package/dist/types/components/feedlog-issues-client/feedlog-issues-client.d.ts +1 -0
  60. package/dist/types/index.d.ts +1 -1
  61. package/hydrate/index.js +130 -101
  62. package/hydrate/index.mjs +130 -101
  63. package/package.json +4 -7
  64. package/dist/components/p-BBbiSGNf.js +0 -1
  65. package/dist/components/p-CuFKEckF.js +0 -1
  66. package/dist/components/p-DMdb-G26.js +0 -1
  67. package/dist/components/p-DzATWlAC.js +0 -1
  68. package/dist/feedlog-toolkit/p-32663f65.entry.js +0 -1
  69. package/dist/feedlog-toolkit/p-891c349f.entry.js +0 -3
  70. package/dist/feedlog-toolkit/p-CgNWSmzU.js +0 -2
  71. package/dist/feedlog-toolkit/p-b51c95a6.entry.js +0 -1
  72. package/dist/feedlog-toolkit/p-da0268a8.entry.js +0 -1
  73. package/dist/feedlog-toolkit/p-f22117ae.entry.js +0 -1
@@ -1 +1 @@
1
- :root{--feedlog-font-size:16px;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-popover:oklch(1 0 0);--feedlog-popover-foreground:oklch(0.145 0 0);--feedlog-primary:#030213;--feedlog-primary-foreground:oklch(1 0 0);--feedlog-secondary:oklch(0.95 0.0058 264.53);--feedlog-secondary-foreground:#030213;--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-accent:#e9ebef;--feedlog-accent-foreground:#030213;--feedlog-destructive:#d4183d;--feedlog-destructive-foreground:#ffffff;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-input:transparent;--feedlog-input-background:#f3f3f5;--feedlog-switch-background:#cbced4;--feedlog-ring:oklch(0.708 0 0);--feedlog-radius:0.625rem;--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-500:oklch(0.623 0.214 259.815);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-700:oklch(0.488 0.243 264.376);--feedlog-blue-900:oklch(0.379 0.146 265.522);--feedlog-font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace}.dark{--feedlog-background:oklch(0.145 0 0);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.145 0 0);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-popover:oklch(0.145 0 0);--feedlog-popover-foreground:oklch(0.985 0 0);--feedlog-primary:oklch(0.985 0 0);--feedlog-primary-foreground:oklch(0.205 0 0);--feedlog-secondary:oklch(0.269 0 0);--feedlog-secondary-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.269 0 0);--feedlog-muted-foreground:oklch(0.708 0 0);--feedlog-accent:oklch(0.269 0 0);--feedlog-accent-foreground:oklch(0.985 0 0);--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-destructive-foreground:oklch(0.637 0.237 25.331);--feedlog-border:oklch(0.269 0 0);--feedlog-input:oklch(0.269 0 0);--feedlog-ring:oklch(0.439 0 0)}
1
+ :root{--feedlog-background:#ffffff;--feedlog-foreground:#09090b;--feedlog-card:#ffffff;--feedlog-card-foreground:#09090b;--feedlog-popover:#ffffff;--feedlog-popover-foreground:#09090b;--feedlog-primary:#18181b;--feedlog-primary-foreground:#fafafa;--feedlog-secondary:#f4f4f5;--feedlog-secondary-foreground:#18181b;--feedlog-muted:#f4f4f5;--feedlog-muted-foreground:#71717a;--feedlog-accent:#f4f4f5;--feedlog-accent-foreground:#18181b;--feedlog-destructive:#ef4444;--feedlog-destructive-foreground:#fafafa;--feedlog-success:#22c55e;--feedlog-success-foreground:#ffffff;--feedlog-warning:#f59e0b;--feedlog-warning-foreground:#ffffff;--feedlog-border:#f0f0f2;--feedlog-input:#e4e4e7;--feedlog-ring:#18181b;--feedlog-badge-enhancement-bg:#eef2ff;--feedlog-badge-enhancement-text:#4338ca;--feedlog-badge-secondary-bg:#f1f5f9;--feedlog-badge-secondary-text:#475569;--feedlog-badge-destructive-bg:#fef2f2;--feedlog-badge-destructive-text:#b91c1c;--feedlog-space-1:0.25rem;--feedlog-space-2:0.5rem;--feedlog-space-3:0.75rem;--feedlog-space-4:1rem;--feedlog-space-5:1.25rem;--feedlog-space-6:1.5rem;--feedlog-space-8:2rem;--feedlog-space-10:2.5rem;--feedlog-font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--feedlog-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--feedlog-text-xs:0.75rem;--feedlog-text-sm:0.875rem;--feedlog-text-base:1rem;--feedlog-text-lg:1.125rem;--feedlog-text-xl:1.25rem;--feedlog-font-normal:400;--feedlog-font-medium:500;--feedlog-font-semibold:600;--feedlog-font-bold:700;--feedlog-radius-sm:0.25rem;--feedlog-radius:0.5rem;--feedlog-radius-lg:0.75rem;--feedlog-radius-full:9999px;--feedlog-shadow-sm:0 2px 8px -2px rgba(0, 0, 0, 0.05);--feedlog-shadow:0 4px 20px -2px rgba(0, 0, 0, 0.05);--feedlog-shadow-md:0 8px 30px -4px rgba(0, 0, 0, 0.06)}.dark{--feedlog-background:#09090b;--feedlog-foreground:#fafafa;--feedlog-card:#09090b;--feedlog-card-foreground:#fafafa;--feedlog-popover:#09090b;--feedlog-popover-foreground:#fafafa;--feedlog-primary:#fafafa;--feedlog-primary-foreground:#18181b;--feedlog-secondary:#27272a;--feedlog-secondary-foreground:#fafafa;--feedlog-muted:#27272a;--feedlog-muted-foreground:#a1a1aa;--feedlog-accent:#27272a;--feedlog-accent-foreground:#fafafa;--feedlog-destructive:#7f1d1d;--feedlog-destructive-foreground:#fafafa;--feedlog-success:#14532d;--feedlog-success-foreground:#fafafa;--feedlog-warning:#78350f;--feedlog-warning-foreground:#fafafa;--feedlog-border:#27272a;--feedlog-input:#27272a;--feedlog-ring:#d4d4d8;--feedlog-badge-enhancement-bg:rgba(67, 56, 202, 0.2);--feedlog-badge-enhancement-text:#c7d2fe;--feedlog-badge-secondary-bg:rgba(71, 85, 105, 0.2);--feedlog-badge-secondary-text:#cbd5e1;--feedlog-badge-destructive-bg:rgba(185, 28, 28, 0.2);--feedlog-badge-destructive-text:#fecaca}
@@ -1 +1 @@
1
- import{p as e,g as t,b as a}from"./p-CgNWSmzU.js";export{s as setNonce}from"./p-CgNWSmzU.js";(()=>{const t=import.meta.url,s={};return""!==t&&(s.resourcesUrl=new URL(".",t).href),e(s)})().then((async e=>(await t(),a([["p-32663f65",[[257,"feedlog-card"]]],["p-da0268a8",[[257,"feedlog-badge",{variant:[1]}]]],["p-891c349f",[[1,"feedlog-issues-list",{issues:[16],limit:[2],theme:[1],getIssueUrl:[16],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],currentPage:[32]},null,{issues:[{resetPage:0}],limit:[{resetPage:0}]}],[257,"feedlog-button",{variant:[1],size:[1],disabled:[4],type:[1]}],[257,"feedlog-issue",{issue:[16],issueUrl:[1,"issue-url"],theme:[1]}]]],["p-f22117ae",[[1,"feedlog-issues",{issues:[16],maxWidth:[1,"max-width"],limit:[2],theme:[1025],heading:[1],subtitle:[1],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],loading:[4],error:[1],hasMore:[4,"has-more"],isLoadingMore:[4,"is-loading-more"],getIssueUrl:[16],currentTheme:[32]}]]],["p-b51c95a6",[[1,"feedlog-issues-client",{apiKey:[1,"api-key"],type:[1],limit:[2],sortBy:[1,"sort-by"],endpoint:[1],maxWidth:[1,"max-width"],theme:[1],heading:[1],subtitle:[1],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],getIssueUrl:[16],issues:[32],loading:[32],error:[32],cursor:[32],hasMore:[32],isLoadingMore:[32]}]]]],e))));
1
+ import{p as e,g as t,b as a}from"./p-Cu1eYdKa.js";export{s as setNonce}from"./p-Cu1eYdKa.js";(()=>{const t=import.meta.url,s={};return""!==t&&(s.resourcesUrl=new URL(".",t).href),e(s)})().then((async e=>(await t(),a([["p-001d7353",[[257,"feedlog-card"]]],["p-62554649",[[257,"feedlog-badge",{variant:[1]}]]],["p-556062d0",[[257,"feedlog-issues-list",{issues:[16],limit:[2],theme:[1],getIssueUrl:[16],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],currentPage:[32]},null,{issues:[{resetPage:0}],limit:[{resetPage:0}]}],[257,"feedlog-button",{variant:[1],size:[1],disabled:[4],type:[1]}],[257,"feedlog-issue",{issue:[16],issueUrl:[1,"issue-url"],theme:[1]}]]],["p-b558fc9f",[[257,"feedlog-issues",{issues:[16],maxWidth:[1,"max-width"],limit:[2],theme:[1025],heading:[1],subtitle:[1],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],loading:[4],error:[1],hasMore:[4,"has-more"],isLoadingMore:[4,"is-loading-more"],getIssueUrl:[16]}]]],["p-ca90ade9",[[257,"feedlog-issues-client",{apiKey:[1,"api-key"],type:[1],limit:[2],sortBy:[1,"sort-by"],endpoint:[1],maxWidth:[1,"max-width"],theme:[1],heading:[1],subtitle:[1],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],getIssueUrl:[16],issues:[32],loading:[32],error:[32],cursor:[32],hasMore:[32],isLoadingMore:[32]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as e,h as d}from"./p-Cu1eYdKa.js";const a=class{constructor(d){e(this,d)}render(){return d("div",{key:"c95d00e338fcf8d985407cda878f50d173c86c71",class:"feedlog-card",part:"base"},d("div",{key:"5001f2e08495d54abb59ddcada568c9ff4c6fb87",class:"feedlog-card-header",part:"header"},d("slot",{key:"b6c6f18a458249aedfb4a95679d4592cfcac4187",name:"header"})),d("div",{key:"99faa1bd9af52fb23cb304e0a87d35b8e14a6358",class:"feedlog-card-content",part:"content"},d("slot",{key:"44370b05b0c2335d6c7271f2807189a7a208be71",name:"content"})),d("div",{key:"e3876d4f589f9ecf917b5a9b5919363c19d08c93",class:"feedlog-card-footer",part:"footer"},d("slot",{key:"be69074d341c8e88f9227d2f035f22838469b035",name:"footer"})))}};a.style=':host{display:block;font-family:var(--feedlog-font-family)}.feedlog-card{background-color:var(--feedlog-card);color:var(--feedlog-card-foreground);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-radius);box-shadow:var(--feedlog-shadow-sm);transition:box-shadow 0.15s ease;position:relative;display:flex;flex-direction:column}.feedlog-card:hover{box-shadow:var(--feedlog-shadow)}.feedlog-card-header{padding:var(--feedlog-space-6);display:flex;flex-direction:column;gap:var(--feedlog-space-1)}.feedlog-card-content{padding:var(--feedlog-space-6);padding-top:0}.feedlog-card-footer{padding:var(--feedlog-space-6);padding-top:0;display:flex;align-items:center}::slotted([slot="header"]),::slotted([slot="content"]),::slotted([slot="footer"]){display:block}';export{a as feedlog_card}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as r,H as n,a as i}from"./p-Cu1eYdKa.js";import{a as o}from"./p-Bow7VsVH.js";const s=class{constructor(r){e(this,r),this.feedlogClick=t(this,"feedlogClick"),this.variant="default",this.size="default",this.disabled=!1,this.type="button",this.handleClick=e=>{this.disabled||this.feedlogClick.emit(e)}}render(){return r("button",{key:"f8f507c061284f630e36111ee671b29b6d3b20dd",type:this.type,class:`button button-${this.variant} ${"default"===this.size?"button-size-default":`button-size-${this.size}`}`,disabled:this.disabled,onClick:this.handleClick,part:"base"},r("slot",{key:"48403bd46271b21a4eb54c94c9193dadcd32fdcf"}))}};s.style=":host{display:inline-block}button{display:inline-flex;align-items:center;justify-content:center;gap:var(--feedlog-space-2);white-space:nowrap;font-size:var(--feedlog-text-sm);font-weight:var(--feedlog-font-medium);border-radius:var(--feedlog-radius);border:1px solid transparent;cursor:pointer;transition:all 0.15s ease;outline:none;font-family:var(--feedlog-font-family)}button:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}button:focus-visible{outline:2px solid var(--feedlog-ring);outline-offset:2px}.button-default{background-color:var(--feedlog-primary);color:var(--feedlog-primary-foreground)}.button-default:hover:not(:disabled){opacity:0.9}.button-outline{background-color:var(--feedlog-background);color:var(--feedlog-foreground);border-color:var(--feedlog-input)}.button-outline:hover:not(:disabled){background-color:var(--feedlog-accent);color:var(--feedlog-accent-foreground)}.button-ghost{background-color:transparent;color:var(--feedlog-foreground)}.button-ghost:hover:not(:disabled){background-color:var(--feedlog-accent);color:var(--feedlog-accent-foreground)}.button-destructive{background-color:var(--feedlog-destructive);color:var(--feedlog-destructive-foreground)}.button-destructive:hover:not(:disabled){opacity:0.9}.button-size-sm{height:2rem;padding:0 0.75rem;font-size:var(--feedlog-text-xs)}.button-size-sm:has(svg:only-child){width:2rem;padding:0}.button-size-default{height:2.5rem;padding:0.5rem 1rem}.button-size-lg{height:2.75rem;padding:0.5rem 1.5rem;font-size:var(--feedlog-text-base)}button svg{pointer-events:none;flex-shrink:0;width:1rem;height:1rem}";var a={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function l(e){a=e}var d={exec:()=>null};function c(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(h.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var u=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),h={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},p=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,g=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,f=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b=c(f).replace(/bull/g,g).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),m=c(f).replace(/bull/g,g).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w=c(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=c(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,g).getRegex(),y="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,S=c("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",$).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z=c(k).replace("hr",p).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),_={blockquote:c(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",z).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:p,html:S,lheading:b,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:z,table:d,text:/^[^\n]+/},A=c("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",p).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),P={..._,lheading:m,table:A,paragraph:c(k).replace("hr",p).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},R={..._,html:c("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:c(k).replace("hr",p).replace("heading"," *#{1,6} *[^\n]").replace("lheading",b).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T=/^( {2,}|\\)\n(?!\s*$)/,M=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,E=/[^\s\p{P}\p{S}]/u,q=c(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),L=/(?!~)[\p{P}\p{S}]/u,Z=/(?![*_])[\p{P}\p{S}]/u,B=c(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",u?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),D=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,I=c(D,"u").replace(/punct/g,M).getRegex(),j=c(D,"u").replace(/punct/g,L).getRegex(),H="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",U=c(H,"gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,C).replace(/punct/g,M).getRegex(),V=c(H,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,L).getRegex(),N=c("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,C).replace(/punct/g,M).getRegex(),Y=c(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Z).getRegex(),G=c("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,Z).getRegex(),O=c(/\\(punct)/,"gu").replace(/punct/g,M).getRegex(),F=c(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),X=c($).replace("(?:--\x3e|$)","--\x3e").getRegex(),W=c("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",X).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Q=c(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J=c(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",v).getRegex(),ee=c(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,re={_backpedal:d,anyPunctuation:O,autolink:F,blockSkip:B,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,delLDelim:d,delRDelim:d,emStrongLDelim:I,emStrongRDelimAst:U,emStrongRDelimUnd:N,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Q,nolink:ee,punctuation:q,reflink:J,reflinkSearch:c("reflink|nolink(?!\\()","g").replace("reflink",J).replace("nolink",ee).getRegex(),tag:W,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},ne={...re,link:c(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},ie={...re,emStrongRDelimAst:V,emStrongLDelim:j,delLDelim:Y,delRDelim:G,url:c(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",te).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:c(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",te).getRegex()},oe={...ie,br:c(T).replace("{2,}","*").getRegex(),text:c(ie.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},se={normal:_,gfm:P,pedantic:R},ae={normal:re,gfm:ie,breaks:oe,pedantic:ne},le={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},de=e=>le[e];function ce(e,t){if(t){if(h.escapeTest.test(e))return e.replace(h.escapeReplace,de)}else if(h.escapeTestNoEncode.test(e))return e.replace(h.escapeReplaceNoEncode,de);return e}function ue(e){try{e=encodeURI(e).replace(h.percentDecode,"%")}catch{return null}return e}function he(e,t){let r=e.replace(h.findPipe,((e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(h.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(h.slashPipe,"|");return r}function pe(e,t){let r=e.length;if(0===r)return"";let n=0;for(;n<r&&e.charAt(r-n-1)===t;)n++;return e.slice(0,r-n)}function ge(e,t=0){let r=t,n="";for(let t of e)if("\t"===t){let e=4-r%4;n+=" ".repeat(e),r+=e}else n+=t,r++;return n}function fe(e,t,r,n,i){let o=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:o,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}var be=class{options;rules;lexer;constructor(e){this.options=e||a}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:pe(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map((e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=pe(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:pe(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=pe(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,o=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),o=!0;else{if(o)break;s.push(e[t])}e=e.slice(t);let a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${a}`:a,n=n?`${n}\n${l}`:l;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=d,0===e.length)break;let c=i.at(-1);if("code"===c?.type)break;if("blockquote"===c?.type){let t=c,o=t.raw+"\n"+e.join("\n"),s=this.blockquote(o);i[i.length-1]=s,r=r.substring(0,r.length-t.raw.length)+s.raw,n=n.substring(0,n.length-t.text.length)+s.text;break}if("list"!==c?.type);else{let t=c,o=t.raw+"\n"+e.join("\n"),s=this.list(o);i[i.length-1]=s,r=r.substring(0,r.length-c.raw.length)+s.raw,n=n.substring(0,n.length-t.raw.length)+s.raw,e=o.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let o=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",a="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=ge(t[2].split("\n",1)[0],t[1].length),d=e.split("\n",1)[0],c=!l.trim(),u=0;if(this.options.pedantic?(u=2,a=l.trimStart()):c?u=t[1].length+1:(u=l.search(this.rules.other.nonSpaceChar),u=u>4?1:u,a=l.slice(u),u+=t[1].length),c&&this.rules.other.blankLine.test(d)&&(n+=d+"\n",e=e.substring(d.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(u),r=this.rules.other.hrRegex(u),i=this.rules.other.fencesBeginRegex(u),o=this.rules.other.headingBeginRegex(u),s=this.rules.other.htmlBeginRegex(u),h=this.rules.other.blockquoteBeginRegex(u);for(;e;){let p,g=e.split("\n",1)[0];if(d=g,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),p=d):p=d.replace(this.rules.other.tabCharGlobal," "),i.test(d)||o.test(d)||s.test(d)||h.test(d)||t.test(d)||r.test(d))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!d.trim())a+="\n"+p.slice(u);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||r.test(l))break;a+="\n"+d}c=!d.trim(),n+=g+"\n",e=e.substring(g.length+1),l=p.slice(u)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0)),i.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),i.raw+=n}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let r={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=r.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=r.raw+e.tokens[0].raw,e.tokens[0].text=r.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(r)):e.tokens.unshift({type:"paragraph",raw:r.raw,text:r.raw,tokens:[r]}):e.tokens.unshift(r)}}if(!i.loose){let t=e.tokens.filter((e=>"space"===e.type)),r=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));i.loose=r}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=he(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(he(e,o.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]}))));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=pe(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),fe(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return fe(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,o=[...n[0]].length-1,s=o,a=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&o%3&&!((o+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);let t=[...n[0]][0].length,l=e.slice(0,o+n.index+t+i);if(Math.min(o,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let d=l.slice(2,-2);return{type:"strong",raw:l,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let r,i,o=[...n[0]].length-1,s=o,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+o);null!=(n=a.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r||(i=[...r].length,i!==o))continue;if(n[3]||n[4]){s+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s);let t=[...n[0]][0].length,a=e.slice(0,o+n.index+t+i),l=a.slice(o,-o);return{type:"del",raw:a,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])e=t[0],r="mailto:"+e;else{let n;do{n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(n!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],escaped:this.lexer.state.inRawBlock}}},me=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||a,this.options.tokenizer=this.options.tokenizer||new be,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:h,block:se.normal,inline:ae.normal};this.options.pedantic?(t.block=se.pedantic,t.inline=ae.pedantic):this.options.gfm&&(t.block=se.gfm,t.inline=this.options.breaks?ae.breaks:ae.gfm),this.tokenizer.rules=t}static get rules(){return{block:se,inline:ae}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(h.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){for(this.options.pedantic&&(e=e.replace(h.tabCharGlobal," ").replace(h.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let r=t.at(-1);1===n.raw.length&&void 0!==r?r.raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.text,this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},t.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach((e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))})),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let o=t.at(-1);r&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(n),r=i.length!==e.length,e=e.substring(n.raw.length)}else if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(n));)r=i[2]?i[2].length:0,n=n.slice(0,i.index+r)+"["+"a".repeat(i[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,s="";for(;e;){let r;if(o||(s=""),o=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,s)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,s)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach((e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))})),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0;let n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ke=class{options;parser;constructor(e){this.options=e||a}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(h.notSpaceStart)?.[0],i=e.replace(h.endingNewline,"")+"\n";return n?'<pre><code class="language-'+ce(n)+'">'+(r?i:ce(i,!0))+"</code></pre>\n":"<pre><code>"+(r?i:ce(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++)n+=this.listitem(e.items[t]);let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];r="";for(let e=0;e<i.length;e++)r+=this.tablecell(i[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ce(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=ue(e);if(null===i)return n;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+ce(t)+'"'),o+=">"+n+"</a>",o}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=ue(e);if(null===i)return ce(r);let o=`<img src="${e=i}" alt="${r}"`;return t&&(o+=` title="${ce(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ce(e.text)}},ve=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},we=class e{options;renderer;textRenderer;constructor(e){this.options=e||a,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ve}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let e=n,r=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==r||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=r||"";continue}}let i=n;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=e||"";continue}}let o=i;switch(o.type){case"escape":case"text":r+=t.text(o);break;case"html":r+=t.html(o);break;case"link":r+=t.link(o);break;case"image":r+=t.image(o);break;case"checkbox":r+=t.checkbox(o);break;case"strong":r+=t.strong(o);break;case"em":r+=t.em(o);break;case"codespan":r+=t.codespan(o);break;case"br":r+=t.br(o);break;case"del":r+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}},xe=class{options;block;constructor(e){this.options=e||a}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?me.lex:me.lexInline}provideParser(){return this.block?we.parse:we.parseInline}},ye=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=we;Renderer=ke;TextRenderer=ve;Lexer=me;Tokenizer=be;Hooks=xe;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let e=n;for(let n of e.header)r=r.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)r=r.concat(this.walkTokens(e.tokens,t));break}case"list":r=r.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((n=>{let i=e[n].flat(1/0);r=r.concat(this.walkTokens(i,t))})):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){let t=this.defaults.renderer||new ke(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=e.renderer[r],i=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new be(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new xe;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=e.hooks[r],i=t[r];t[r]=xe.passThroughHooks.has(r)?e=>{if(this.defaults.async&&xe.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(t,e);return i.call(t,r)})();let o=n.call(t,e);return i.call(t,o)}:(...e)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(t,e);return!1===r&&(r=await i.apply(t,e)),r})();let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return me.lex(e,t??this.defaults)}parser(e,t){return we.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(t):t,n=await(i.hooks?await i.hooks.provideLexer():e?me.lex:me.lexInline)(r,i),o=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await(i.hooks?await i.hooks.provideParser():e?we.parse:we.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let r=(i.hooks?i.hooks.provideLexer():e?me.lex:me.lexInline)(t,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser():e?we.parse:we.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return o(e)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ce(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function $e(e,t){return ye.parse(e,t)}function Se(e){if(null==e||""===e)return"";const t=$e.parse(e,{gfm:!0,breaks:!0,async:!1});if("string"!=typeof t)throw new Error("marked.parse returned a Promise; async markdown is not supported");return o.sanitize(t,{ALLOWED_TAGS:["p","br","strong","em","b","i","u","s","code","pre","a","ul","ol","li","h1","h2","h3","h4","h5","h6","blockquote","hr","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","target","rel"]})}$e.options=$e.setOptions=function(e){return ye.setOptions(e),l($e.defaults=ye.defaults),$e},$e.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},$e.defaults=a,$e.use=function(...e){return ye.use(...e),l($e.defaults=ye.defaults),$e},$e.walkTokens=function(e,t){return ye.walkTokens(e,t)},$e.parseInline=ye.parseInline,$e.Parser=we,$e.parser=we.parse,$e.Renderer=ke,$e.TextRenderer=ve,$e.Lexer=me,$e.lexer=me.lex,$e.Tokenizer=be,$e.Hooks=xe,$e.parse=$e;const ze=class{constructor(r){e(this,r),this.feedlogUpvote=t(this,"feedlogUpvote"),this.theme="light",this.handleMediaSlotChange=()=>{this.updateMediaVisibility()},this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit({issueId:this.issue.id,currentUpvoted:this.issue.hasUpvoted,currentCount:this.issue.upvoteCount})}}componentDidLoad(){var e;const t=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector('slot[name="media"]');t&&(t.addEventListener("slotchange",this.handleMediaSlotChange),this.updateMediaVisibility())}disconnectedCallback(){var e;const t=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector('slot[name="media"]');t&&t.removeEventListener("slotchange",this.handleMediaSlotChange)}updateMediaVisibility(){var e;const t=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".issue-media");if(!t)return;const r=this.host.querySelector('[slot="media"]');t.classList.toggle("has-media",!!r)}renderPinIcon(){return r("svg",{class:"pin-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{d:"M12 17v5"}),r("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16h1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2h1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}))}renderUpvoteIcon(e){return r("svg",e?{class:"upvote-icon filled",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"}:{class:"upvote-icon outline",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{d:"M12 7l7 10H5l7-10z"}))}formatDate(e){try{const t=new Date(e),r=new Date,n=Math.floor((r.getTime()-t.getTime())/1e3);return n<60?"just now":n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:n<604800?`${Math.floor(n/86400)}d ago`:n<2592e3?`${Math.floor(n/604800)}w ago`:t.toLocaleDateString()}catch(e){return"unknown date"}}getStatusBadgeLabel(){const{issue:e}=this;return"in_progress"===e.status?"In progress":"closed"===e.status&&"bug"===e.type?"Resolved":"closed"===e.status&&"enhancement"===e.type?"Implemented":null}renderExternalLinkIcon(){return r("svg",{class:"github-link-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),r("polyline",{points:"15 3 21 3 21 9"}),r("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))}render(){var e,t;const{issue:i,issueUrl:o}=this;if(!i)return null;const s=new Date(i.updatedAt).getTime()>new Date(i.createdAt).getTime(),a=s?"Updated":"Created",l=s?i.updatedAt:i.createdAt,d=s?`Updated: ${i.updatedAt}`:`Created: ${i.createdAt}`,c=null!==(e=i.title)&&void 0!==e?e:"Untitled",u=i.repository.name,h=null!=u&&""!==u&&"unnamed repository"!==u.toLowerCase()?u:null,p=null!=i.repository.description&&""!==i.repository.description?i.repository.description:void 0,g=this.getStatusBadgeLabel(),f=null!==(t=i.githubIssueLink)&&void 0!==t?t:o,b=null!=f&&""!==f;return r(n,{class:"dark"===this.theme?"dark":"","data-upvoted":i.hasUpvoted?"true":"false"},r("div",{class:`issue-card issue-type-${i.type}`,part:"base"},r("div",{class:"issue-media",part:"media"},r("slot",{name:"media"})),r("div",{class:"issue-content",part:"content"},r("div",{class:"issue-main",part:"main"},r("div",{class:"issue-header-top",part:"header-top"},r("div",{class:"issue-badges",part:"badges"},"bug"===i.type?r("feedlog-badge",{variant:"destructive",part:"badge badge-bug"},"Bug"):r("feedlog-badge",{variant:"enhancement",part:"badge badge-enhancement"},"Enhancement"),g&&r("feedlog-badge",{variant:"secondary",part:"badge badge-status"},g)),r("div",{class:"issue-meta-right",part:"meta-right"},i.pinnedAt&&r("div",{class:"pinned-indicator",title:"Pinned issue",part:"pinned-indicator"},this.renderPinIcon()),r("span",{class:"issue-timestamp",title:d,part:"timestamp"},a," ",this.formatDate(l)))),r("h3",{class:"issue-title",part:"title"},c),null!=i.body&&""!==i.body&&r("div",{class:"issue-body",innerHTML:Se(i.body),part:"body"}),(null!=h||b||"bug"!==i.type)&&r("div",{class:"issue-footer",part:"footer"},(null!=h||b)&&r("div",{class:"issue-footer-meta",part:"footer-meta"},null!=h&&r("span",{class:"repo-name",title:p,part:"repo-name"},h),b&&r("a",{part:"github-link",class:"github-link",href:f,target:"_blank",rel:"noopener noreferrer",title:"View on GitHub"},this.renderExternalLinkIcon(),r("span",{class:"github-link-text",part:"github-link-text"},"View on GitHub"))),"bug"!==i.type&&r("button",{part:"upvote-button "+(i.hasUpvoted?"upvoted":""),class:"upvote-button "+(i.hasUpvoted?"upvoted":""),onClick:e=>this.handleUpvote(e),title:i.hasUpvoted?"Remove upvote":"Upvote this issue"},r("div",{class:"upvote-action",part:"upvote-action"},r("slot",{name:"upvote-icon"},this.renderUpvoteIcon(i.hasUpvoted)),r("span",{class:"upvote-label",part:"upvote-label"},"Upvote")),r("div",{class:"reel-container",part:"upvote-reel-container"},r("span",{class:"upvote-count reel-number",key:i.upvoteCount,part:"upvote-count"},i.upvoteCount))))))))}get host(){return i(this)}};ze.style=":host{display:block;font-family:var(--feedlog-font-family);--feedlog-card-padding:var(--feedlog-space-6);--feedlog-title-font-size:var(--feedlog-text-xl);--feedlog-title-font-weight:var(--feedlog-font-semibold);--feedlog-body-font-size:var(--feedlog-text-sm);--feedlog-body-line-height:1.6;--feedlog-timestamp-font-size:var(--feedlog-text-xs);--feedlog-timestamp-color:var(--feedlog-muted-foreground);--feedlog-card-radius:16px;--feedlog-icon-color:var(--feedlog-muted-foreground);--feedlog-icon-color-muted:var(--feedlog-muted-foreground);--feedlog-pin-color:var(--feedlog-primary);--feedlog-upvote-icon-color:var(--feedlog-primary);--feedlog-upvote-icon-filled-color:var(--feedlog-primary)}:host(.dark){}.issue-card{background-color:var(--feedlog-card);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-card-radius, var(--feedlog-radius));box-shadow:var(--feedlog-shadow-sm);transition:box-shadow 0.2s ease,\\n transform 0.2s ease;position:relative;overflow:hidden}.issue-card:hover{box-shadow:var(--feedlog-shadow);transform:translateY(-2px)}.issue-media{display:none;aspect-ratio:16 / 9;overflow:hidden;border-radius:var(--feedlog-card-radius, var(--feedlog-radius)) var(--feedlog-card-radius, var(--feedlog-radius)) 0 0;background-color:var(--feedlog-muted);border-bottom:1px solid var(--feedlog-border)}.issue-media.has-media{display:block}.issue-media ::slotted(img),.issue-media ::slotted(video){width:100%;height:100%;object-fit:cover;display:block}.issue-content{padding:var(--feedlog-card-padding);display:flex;flex-direction:column;gap:var(--feedlog-space-3)}.issue-header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--feedlog-space-4);margin-bottom:var(--feedlog-space-3)}.issue-badges{display:flex;align-items:center;gap:var(--feedlog-space-1);flex-wrap:wrap;margin-left:-0.25rem}.issue-meta-right{display:flex;align-items:center;gap:var(--feedlog-space-2)}.pinned-indicator{display:flex;align-items:center;color:var(--feedlog-pin-color, var(--feedlog-primary));opacity:0.9}.pin-icon{width:0.875rem;height:0.875rem;color:inherit}.issue-timestamp{font-size:var(--feedlog-timestamp-font-size);color:var(--feedlog-timestamp-color);white-space:nowrap;flex-shrink:0;cursor:help}.issue-main{display:flex;flex-direction:column;gap:0}.issue-footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--feedlog-space-3);margin-top:var(--feedlog-space-3);padding-top:var(--feedlog-space-4);border-top:1px solid var(--feedlog-border);flex-wrap:wrap}.issue-footer-meta{display:flex;align-items:center;gap:var(--feedlog-space-2);font-size:var(--feedlog-text-xs);color:var(--feedlog-muted-foreground);flex-wrap:wrap}.issue-footer .upvote-button{margin-left:auto}.issue-title{color:var(--feedlog-card-foreground);font-size:var(--feedlog-title-font-size);font-weight:var(--feedlog-title-font-weight);margin:0 0 var(--feedlog-space-3) 0;line-height:1.3;letter-spacing:-0.02em;word-break:break-word}.issue-body{color:var(--feedlog-muted-foreground);font-size:var(--feedlog-body-font-size);line-height:var(--feedlog-body-line-height);margin:0 0 var(--feedlog-space-3) 0;word-break:break-word}.issue-body h1,.issue-body h2,.issue-body h3,.issue-body h4,.issue-body h5,.issue-body h6{color:var(--feedlog-card-foreground);margin-top:1.5em;margin-bottom:0.5em;font-weight:var(--feedlog-font-semibold);letter-spacing:-0.01em}.issue-body h1{font-size:1.5em}.issue-body h2{font-size:1.25em}.issue-body h3{font-size:1.125em}.issue-body :first-child{margin-top:0}.issue-body :last-child{margin-bottom:0}.issue-body p{margin:0 0 0.75em 0}.issue-body p:last-child{margin-bottom:0}.issue-body a{color:var(--feedlog-primary);text-decoration:none}.issue-body a:hover{text-decoration:underline}.issue-body code{background-color:var(--feedlog-muted);padding:0.125em 0.375em;border-radius:var(--feedlog-radius-sm);font-size:0.9em}.issue-body pre{margin:0.5em 0;padding:var(--feedlog-space-3);background-color:var(--feedlog-muted);border-radius:var(--feedlog-radius-sm);overflow-x:auto;font-size:0.85em}.issue-body pre code{background:none;padding:0}.issue-body strong{font-weight:var(--feedlog-font-semibold)}.issue-body ul,.issue-body ol{margin:0.5em 0;padding-left:1.25em}.issue-body li{margin:0.25em 0}.issue-body blockquote{margin:0.5em 0;padding-left:1em;border-left:3px solid var(--feedlog-muted);color:var(--feedlog-muted-foreground)}.repo-name{font-weight:var(--feedlog-font-medium)}.github-link{display:inline-flex;align-items:center;gap:var(--feedlog-space-1);color:var(--feedlog-muted-foreground);text-decoration:none;font-weight:var(--feedlog-font-medium);font-size:var(--feedlog-text-xs);padding:var(--feedlog-space-1) var(--feedlog-space-2);border-radius:var(--feedlog-radius-sm);transition:background-color 0.2s ease,\\n color 0.2s ease}.github-link:hover{color:var(--feedlog-card-foreground);background-color:var(--feedlog-muted)}.github-link-icon{flex-shrink:0;color:inherit}.github-link-text{white-space:nowrap}.github-number{color:var(--feedlog-primary);font-weight:var(--feedlog-font-semibold)}:host(.dark) .github-number{color:var(--feedlog-primary)}.upvote-button{display:inline-flex;flex-direction:row;align-items:center;border-radius:9999px;background-color:var(--feedlog-muted);border:1px solid transparent;cursor:pointer;transition:all 0.2s ease;flex-shrink:0;overflow:hidden;padding:var(--feedlog-space-1) var(--feedlog-space-3);gap:var(--feedlog-space-2);font-family:inherit;line-height:1}.upvote-button:hover{background-color:color-mix(in oklab, var(--feedlog-muted) 90%, var(--feedlog-foreground))}.upvote-button:active{transform:translateY(1px)}.upvote-button.upvoted{background-color:var(--feedlog-badge-enhancement-bg, #eef2ff);border-color:color-mix(in oklab, var(--feedlog-badge-enhancement-text, #4338ca) 15%, transparent)}.upvote-button.upvoted:hover{opacity:0.9}.upvote-action{display:flex;flex-direction:row;align-items:center;gap:var(--feedlog-space-1);color:var(--feedlog-muted-foreground);font-size:var(--feedlog-text-sm);font-weight:var(--feedlog-font-medium);transition:color 0.2s ease}.upvote-button:hover .upvote-action{color:var(--feedlog-foreground)}.upvote-button.upvoted .upvote-action{color:var(--feedlog-badge-enhancement-text, #4338ca)}.upvote-button.upvoted:hover .upvote-action{color:var(--feedlog-badge-enhancement-text, #4338ca)}.upvote-icon{width:1.125rem;height:1.125rem;min-width:1.125rem;min-height:1.125rem;color:inherit;flex-shrink:0;display:block;vertical-align:middle;transition:transform 0.2s ease}.upvote-button:hover .upvote-icon{transform:translateY(-1px)}.upvote-button:active .upvote-icon{transform:translateY(0) scale(0.95)}.upvote-icon.filled{color:inherit}.upvote-icon.outline{color:inherit}.reel-container{position:relative;display:inline-flex;align-items:center;height:1.25rem;overflow:hidden;border-left:1px solid var(--feedlog-border);padding-left:var(--feedlog-space-2);transition:border-color 0.2s ease}.upvote-button.upvoted .reel-container{border-color:color-mix(in oklab, var(--feedlog-badge-enhancement-text, #4338ca) 20%, transparent)}.upvote-count{font-size:var(--feedlog-text-sm);font-weight:var(--feedlog-font-medium);color:var(--feedlog-muted-foreground);transition:color 0.2s ease;line-height:1.25rem}.upvote-button:hover .upvote-count{color:var(--feedlog-foreground)}.upvote-button.upvoted .upvote-count{color:var(--feedlog-badge-enhancement-text, #4338ca)}.upvote-button.upvoted:hover .upvote-count{color:var(--feedlog-badge-enhancement-text, #4338ca)}.reel-number{display:inline-block;animation:reelIn 0.3s ease forwards}@keyframes reelIn{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:1}}:host(.dark) .upvote-button{background-color:var(--feedlog-muted);border-color:transparent}:host(.dark) .upvote-button:hover{background-color:color-mix(in oklab, var(--feedlog-muted) 80%, var(--feedlog-foreground))}:host(.dark) .upvote-button.upvoted{background-color:var(--feedlog-badge-enhancement-bg);border-color:color-mix(in oklab, var(--feedlog-badge-enhancement-text) 15%, transparent)}";const _e=class{constructor(r){e(this,r),this.feedlogUpvote=t(this,"feedlogUpvote"),this.issues=[],this.theme="light",this.currentPage=1,this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit(e.detail)}}resetPage(){this.currentPage=1}renderEmptyStateIllustration(){return r("svg",{class:"empty-state-illustration",xmlns:"http://www.w3.org/2000/svg",width:"120",height:"96",viewBox:"0 0 120 96",fill:"none","aria-hidden":"true"},r("path",{d:"M20 36h80v44c0 4.4-3.6 8-8 8H28c-4.4 0-8-3.6-8-8V36z",fill:"var(--feedlog-empty-illustration-bg)",stroke:"var(--feedlog-empty-illustration-stroke)","stroke-width":"1.5","stroke-linejoin":"round"}),r("path",{d:"M20 36l20-24h40l20 24",fill:"none",stroke:"var(--feedlog-empty-illustration-stroke)","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M44 52h32M44 60h24M44 68h28",stroke:"var(--feedlog-empty-illustration-muted)","stroke-width":"1.25","stroke-linecap":"round"}))}getVisibleIssues(){if(0===this.issues.length)return[];if(null==this.limit||this.issues.length<=this.limit)return this.issues;const e=(this.currentPage-1)*this.limit;return this.issues.slice(e,e+this.limit)}getPageNumbers(){if(null==this.limit)return[];const e=Math.ceil(this.issues.length/this.limit);if(e<=1)return[];const t=new Set([1,e]),r=Math.max(1,this.currentPage-1),n=Math.min(e,this.currentPage+1);for(let e=r;e<=n;e++)t.add(e);const i=Array.from(t).sort(((e,t)=>e-t)),o=[];for(let e=0;e<i.length;e++)e>0&&i[e]-i[e-1]>1&&o.push("ellipsis"),o.push(i[e]);return o}goToPage(e){const t=null!=this.limit?Math.ceil(this.issues.length/this.limit):1;this.currentPage=Math.max(1,Math.min(e,t))}renderPagination(){if(null==this.limit||this.issues.length<=this.limit)return null;const e=Math.ceil(this.issues.length/this.limit),t=this.getPageNumbers();return r("nav",{class:"pagination","aria-label":"Issues pagination",part:"pagination"},r("button",{type:"button",class:"pagination-btn pagination-arrow","aria-label":"Previous page",disabled:this.currentPage<=1,onClick:()=>this.goToPage(this.currentPage-1),part:"pagination-btn pagination-arrow"},"‹"),t.map(((e,t)=>"ellipsis"===e?r("span",{key:`ellipsis-${t}`,class:"pagination-ellipsis","aria-hidden":"true",part:"pagination-ellipsis"},"…"):r("button",{key:`page-${e}`,type:"button",class:"pagination-btn","aria-current":e===this.currentPage?"page":void 0,onClick:()=>this.goToPage(e),part:"pagination-btn "+(e===this.currentPage?"pagination-btn-active":"")},e))),r("button",{type:"button",class:"pagination-btn pagination-arrow","aria-label":"Next page",disabled:this.currentPage>=e,onClick:()=>this.goToPage(this.currentPage+1),part:"pagination-btn pagination-arrow"},"›"))}render(){const e=this.getVisibleIssues();return r(n,{key:"cfbc683e096ad29327539323e1db97aba4bba373",class:"dark"===this.theme?"dark":""},r("div",{key:"fb342265514ab879e37136955cb0dc444f381646",class:"issues-list",part:"base"},0===e.length?r("div",{class:"empty-state",part:"empty-state"},this.emptyStateTitle&&this.emptyStateMessage?r("div",{class:"empty-state-content",part:"empty-state-content"},this.renderEmptyStateIllustration(),r("h2",{class:"empty-state-title",part:"empty-state-title"},this.emptyStateTitle),r("p",{class:"empty-state-message",part:"empty-state-message"},this.emptyStateMessage)):r("slot",{name:"empty-state"},r("p",null,"No issues found"))):e.map((e=>{var t,n;return r("feedlog-issue",{key:e.id,issue:e,issueUrl:null!==(n=null===(t=this.getIssueUrl)||void 0===t?void 0:t.call(this,e))&&void 0!==n?n:void 0,theme:this.theme,onFeedlogUpvote:e=>this.handleUpvote(e),part:"issue"})}))),this.renderPagination())}static get watchers(){return{issues:[{resetPage:0}],limit:[{resetPage:0}]}}};_e.style=":host{display:block;--feedlog-muted-foreground:#64748b;--feedlog-foreground:oklch(0.145 0 0);--feedlog-empty-illustration-bg:oklch(0.96 0.01 260);--feedlog-empty-illustration-stroke:oklch(0.75 0.02 260);--feedlog-empty-illustration-muted:oklch(0.82 0.01 260)}:host(.dark){--feedlog-muted-foreground:oklch(0.72 0.02 260);--feedlog-foreground:oklch(0.985 0 0);--feedlog-empty-illustration-bg:oklch(0.28 0.02 260);--feedlog-empty-illustration-stroke:oklch(0.45 0.02 260);--feedlog-empty-illustration-muted:oklch(0.38 0.01 260)}.issues-list{display:flex;flex-direction:column;gap:0.5rem}.empty-state{text-align:center;padding:3rem 1.5rem;color:var(--feedlog-muted-foreground);font-size:0.875rem}.empty-state-content{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:20rem;margin-inline:auto}.empty-state-illustration{margin-bottom:1.5rem;opacity:0.9}.empty-state-title{margin:0 0 0.5rem 0;font-size:1.125rem;font-weight:600;color:var(--feedlog-foreground);line-height:1.4}.empty-state-message{margin:0;font-size:0.875rem;color:var(--feedlog-muted-foreground);line-height:1.5}.pagination{display:flex;align-items:center;justify-content:center;gap:0.25rem;margin-top:1.5rem;flex-wrap:wrap}.pagination-btn{min-width:2rem;height:2rem;padding:0 0.5rem;color:var(--feedlog-foreground);background:transparent;border:1px solid var(--feedlog-border, oklch(0.9 0 0));border-radius:var(--feedlog-radius, 0.375rem);font-size:0.875rem;font-weight:500;cursor:pointer;transition:background-color 0.15s, border-color 0.15s}.pagination-btn:hover:not(:disabled){background:var(--feedlog-muted, oklch(0.96 0 0))}.pagination-btn[aria-current='page']{background:var(--feedlog-accent-color, oklch(0.55 0.2 250));color:white;border-color:var(--feedlog-accent-color, oklch(0.55 0.2 250))}.pagination-btn:disabled{opacity:0.5;cursor:not-allowed}.pagination-arrow{font-size:1.25rem;line-height:1}.pagination-ellipsis{padding:0 0.25rem;color:var(--feedlog-muted-foreground);font-size:0.875rem}:host(.dark) .pagination-btn{border-color:oklch(0.4 0.02 260)}:host(.dark) .pagination-btn:hover:not(:disabled){background:oklch(0.35 0.02 260)}";export{s as feedlog_button,ze as feedlog_issue,_e as feedlog_issues_list}
@@ -0,0 +1 @@
1
+ import{r as e,h as d}from"./p-Cu1eYdKa.js";const o=class{constructor(d){e(this,d),this.variant="default"}render(){return d("span",{key:"6ea83e77cecfa5589ba64b86d96053668407be8f",class:`badge badge-${this.variant}`,part:"base"},d("slot",{key:"292fba2dd5ca3ec6455c9114f883e21c74846695"}))}};o.style=":host{display:inline-block;--feedlog-badge-font-size:var(--feedlog-text-xs);--feedlog-badge-font-weight:var(--feedlog-font-medium);--feedlog-badge-padding-x:var(--feedlog-space-3);--feedlog-badge-padding-y:0.25rem;--feedlog-badge-border-radius:9999px;--feedlog-blue-bg:var(--feedlog-badge-enhancement-bg, #eef2ff);--feedlog-blue-text:var(--feedlog-badge-enhancement-text, #4338ca);--feedlog-blue-border:color-mix(in oklab, var(--feedlog-blue-text) 15%, transparent);--feedlog-red-bg:var(--feedlog-badge-destructive-bg, #fef2f2);--feedlog-red-text:var(--feedlog-badge-destructive-text, #b91c1c);--feedlog-red-border:color-mix(in oklab, var(--feedlog-red-text) 15%, transparent);--feedlog-muted-bg:var(--feedlog-badge-secondary-bg, #f1f5f9);--feedlog-muted-text:var(--feedlog-badge-secondary-text, #475569);--feedlog-muted-border:color-mix(in oklab, var(--feedlog-muted-text) 15%, transparent)}:host(.dark){}.badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--feedlog-space-1);font-size:var(--feedlog-badge-font-size);font-weight:var(--feedlog-badge-font-weight);padding:var(--feedlog-badge-padding-y) var(--feedlog-badge-padding-x);border-radius:var(--feedlog-badge-border-radius);white-space:nowrap;transition:background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;font-family:var(--feedlog-font-family);border:1px solid transparent}.badge-default{background-color:var(--feedlog-blue-bg);color:var(--feedlog-blue-text);border:1px solid var(--feedlog-blue-border)}.badge-default:hover{opacity:0.9}.badge-enhancement{background-color:var(--feedlog-blue-bg);color:var(--feedlog-blue-text);border:1px solid var(--feedlog-blue-border)}.badge-enhancement:hover{opacity:0.9}.badge-destructive{background-color:var(--feedlog-red-bg);color:var(--feedlog-red-text);border:1px solid var(--feedlog-red-border)}.badge-destructive:hover{opacity:0.9}.badge-secondary{background-color:var(--feedlog-muted-bg);color:var(--feedlog-muted-text);border:1px solid var(--feedlog-muted-border)}.badge-secondary:hover{opacity:0.9}";export{o as feedlog_badge}
@@ -0,0 +1,2 @@
1
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
2
+ const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object;let{freeze:r,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;r||(r=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return e.apply(t,i)}),c||(c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const u=A(Array.prototype.forEach),f=A(Array.prototype.lastIndexOf),p=A(Array.prototype.pop),m=A(Array.prototype.push),d=A(Array.prototype.splice),g=A(String.prototype.toLowerCase),h=A(String.prototype.toString),y=A(String.prototype.match),b=A(String.prototype.replace),w=A(String.prototype.indexOf),x=A(String.prototype.trim),v=A(Object.prototype.hasOwnProperty),T=A(RegExp.prototype.test),k=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(S,t)});var S;function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return s(e,t,i)}}function E(e,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;t&&t(e,null);let r=i.length;for(;r--;){let t=i[r];if("string"==typeof t){const e=o(t);e!==t&&(n(i)||(i[r]=e),t=e)}e[t]=!0}return e}function _(e){for(let t=0;t<e.length;t++)v(e,t)||(e[t]=null);return e}function R(t){const n=l(null);for(const[i,o]of e(t))v(t,i)&&(n[i]=Array.isArray(o)?_(o):o&&"object"==typeof o&&o.constructor===Object?R(o):o);return n}function z(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=i(e)}return function(){return null}}const O=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=r(["#text"]),N=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),C=r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),H=a(/\$\{[\w\W]*/gm),q=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=a(/^(?:\w+script|data):/i),G=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:V,DATA_ATTR:q,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:B,TMPLIT_EXPR:H});const Q=function(){return"undefined"==typeof window?null:window};var Z=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const i=e=>t(e);if(i.version="3.3.1",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let{document:o}=n;const a=o,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:S,Node:A,Element:_,NodeFilter:B,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:q,trustedTypes:Y}=n,$=_.prototype,G=z($,"cloneNode"),V=z($,"remove"),Z=z($,"nextSibling"),ee=z($,"childNodes"),te=z($,"parentNode");if("function"==typeof S){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ne,ie="";const{implementation:oe,createNodeIterator:re,createDocumentFragment:ae,getElementsByTagName:le}=o,{importNode:se}=a;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof e&&"function"==typeof te&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:fe,TMPLIT_EXPR:pe,DATA_ATTR:me,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:ye}=J;let{IS_ALLOWED_URI:be}=J,we=null;const xe=E({},[...O,...D,...L,...F,...P]);let ve=null;const Te=E({},[...N,...C,...j,...U]);let ke=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Ae=null;const Ee=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _e=!0,Re=!0,ze=!1,Oe=!0,De=!1,Le=!0,Me=!1,Fe=!1,Ie=!1,Pe=!1,Ne=!1,Ce=!1,je=!0,Ue=!1,Be=!0,We=!1,He={},qe=null;const Ye=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const $e=E({},["audio","video","img","source","image","track"]);let Ge=null;const Ke=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Ze=Qe,et=!1,tt=null;const nt=E({},[Ve,Je,Qe],h);let it=E({},["mi","mo","mn","ms","mtext"]),ot=E({},["annotation-xml"]);const rt=E({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let st=null,ct=null;const ut=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=R(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?h:g,we=v(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,st):xe,ve=v(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,st):Te,tt=v(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,h):nt,Ge=v(e,"ADD_URI_SAFE_ATTR")?E(R(Ke),e.ADD_URI_SAFE_ATTR,st):Ke,Xe=v(e,"ADD_DATA_URI_TAGS")?E(R($e),e.ADD_DATA_URI_TAGS,st):$e,qe=v(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,st):Ye,Se=v(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,st):R({}),Ae=v(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,st):R({}),He=!!v(e,"USE_PROFILES")&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Ce=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||X,Ze=e.NAMESPACE||Qe,it=e.MATHML_TEXT_INTEGRATION_POINTS||it,ot=e.HTML_INTEGRATION_POINTS||ot,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Re=!1),Ne&&(Pe=!0),He&&(we=E({},P),ve=[],!0===He.html&&(E(we,O),E(ve,N)),!0===He.svg&&(E(we,D),E(ve,C),E(ve,U)),!0===He.svgFilters&&(E(we,L),E(ve,C),E(ve,U)),!0===He.mathMl&&(E(we,F),E(ve,j),E(ve,U))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ee.tagCheck=e.ADD_TAGS:(we===xe&&(we=R(we)),E(we,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ee.attributeCheck=e.ADD_ATTR:(ve===Te&&(ve=R(ve)),E(ve,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&E(Ge,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(qe===Ye&&(qe=R(qe)),E(qe,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(qe===Ye&&(qe=R(qe)),E(qe,e.ADD_FORBID_CONTENTS,st)),Be&&(we["#text"]=!0),Me&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,ie=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(Y,s)),null!==ne&&"string"==typeof ie&&(ie=ne.createHTML(""));r&&r(e),ct=e}},mt=E({},[...D,...L,...M]),dt=E({},[...F,...I]),gt=function(e){m(i.removed,{element:e});try{te(e).removeChild(e)}catch(t){V(e)}},ht=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||Ne)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Ie)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Ze===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ne?ne.createHTML(e):e;if(Ze===Qe)try{t=(new q).parseFromString(i,at)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?ie:i}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(o.createTextNode(n),r.childNodes[0]||null),Ze===Qe?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:r},bt=function(e){return re.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof H&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof A&&e instanceof A};function vt(e,t,n){u(e,(e=>{e.call(i,t,n,ct)}))}const Tt=function(e){let t=null;if(vt(ce.beforeSanitizeElements,e,null),wt(e))return gt(e),!0;const n=st(e.nodeName);if(vt(ce.uponSanitizeElement,e,{tagName:n,allowedTags:we}),Le&&e.hasChildNodes()&&!xt(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Le&&8===e.nodeType&&T(/<[/\w]/g,e.data))return gt(e),!0;if(!(Ee.tagCheck instanceof Function&&Ee.tagCheck(n))&&(!we[n]||Se[n])){if(!Se[n]&&St(n)){if(ke.tagNameCheck instanceof RegExp&&T(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(Be&&!qe[n]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const o=G(n[i],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,Z(e))}}return gt(e),!0}return e instanceof _&&!function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=g(e.tagName),i=g(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===i||it[i]):Boolean(mt[n]):e.namespaceURI===Ve?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Je?"math"===n&&ot[i]:Boolean(dt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Je&&!ot[i])&&!(t.namespaceURI===Ve&&!it[i])&&!dt[n]&&(rt[n]||!mt[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,u([ue,fe,pe],(e=>{t=b(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),vt(ce.afterSanitizeElements,e,null),!1):(gt(e),!0)},kt=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in o||n in ut))return!1;if(Re&&!Ae[t]&&T(me,t));else if(_e&&T(de,t));else if(Ee.attributeCheck instanceof Function&&Ee.attributeCheck(t,e));else if(!ve[t]||Ae[t]){if(!(St(e)&&(ke.tagNameCheck instanceof RegExp&&T(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&T(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t,e))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&T(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ge[t]);else if(T(be,b(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!Xe[e])if(ze&&!T(ge,b(n,he,"")));else if(n)return!1;return!0},St=function(e){return"annotation-xml"!==e&&y(e,ye)},At=function(e){vt(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||wt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:l,value:s}=r,c=st(a),f=s;let m="value"===a?f:x(f);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,vt(ce.uponSanitizeAttribute,e,n),m=n.attrValue,!Ue||"id"!==c&&"name"!==c||(ht(a,e),m="user-content-"+m),Le&&T(/((--!?|])>)|<\/(style|title|textarea)/i,m)){ht(a,e);continue}if("attributename"===c&&y(m,"href")){ht(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){ht(a,e);continue}if(!Oe&&T(/\/>/i,m)){ht(a,e);continue}De&&u([ue,fe,pe],(e=>{m=b(m,e," ")}));const d=st(e.nodeName);if(kt(d,c,m)){if(ne&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(l);else switch(Y.getAttributeType(d,c)){case"TrustedHTML":m=ne.createHTML(m);break;case"TrustedScriptURL":m=ne.createScriptURL(m)}if(m!==f)try{l?e.setAttributeNS(l,a,m):e.setAttribute(a,m),wt(e)?gt(e):p(i.removed)}catch(t){ht(a,e)}}else ht(a,e)}vt(ce.afterSanitizeAttributes,e,null)},Et=function e(t){let n=null;const i=bt(t);for(vt(ce.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)vt(ce.uponSanitizeShadowNode,n,null),Tt(n),At(n),n.content instanceof c&&e(n.content);vt(ce.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,r=null,l=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Fe||pt(t),i.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||Se[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=yt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Pe&&!De&&!Me&&-1===e.indexOf("<"))return ne&&Ce?ne.createHTML(e):e;if(n=yt(e),!n)return Pe?null:Ce?ie:""}n&&Ie&&gt(n.firstChild);const s=bt(We?e:n);for(;r=s.nextNode();)Tt(r),At(r),r.content instanceof c&&Et(r.content);if(We)return e;if(Pe){if(Ne)for(l=ae.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(ve.shadowroot||ve.shadowrootmode)&&(l=se.call(a,l,!0)),l}let f=Me?n.outerHTML:n.innerHTML;return Me&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&T(K,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),De&&u([ue,fe,pe],(e=>{f=b(f,e," ")})),ne&&Ce?ne.createHTML(f):f},i.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},i.clearConfig=function(){ct=null,Fe=!1},i.isValidAttribute=function(e,t,n){ct||pt({});const i=st(e),o=st(t);return kt(i,o,n)},i.addHook=function(e,t){"function"==typeof t&&m(ce[e],t)},i.removeHook=function(e,t){if(void 0!==t){const n=f(ce[e],t);return-1===n?void 0:d(ce[e],n,1)[0]}return p(ce[e])},i.removeHooks=function(e){ce[e]=[]},i.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}(),ee=Object.freeze({__proto__:null,default:Z});export{Z as a,ee as p}
@@ -0,0 +1,2 @@
1
+ const t=()=>{},e=':root{--feedlog-background:#ffffff;--feedlog-foreground:#09090b;--feedlog-card:#ffffff;--feedlog-card-foreground:#09090b;--feedlog-popover:#ffffff;--feedlog-popover-foreground:#09090b;--feedlog-primary:#18181b;--feedlog-primary-foreground:#fafafa;--feedlog-secondary:#f4f4f5;--feedlog-secondary-foreground:#18181b;--feedlog-muted:#f4f4f5;--feedlog-muted-foreground:#71717a;--feedlog-accent:#f4f4f5;--feedlog-accent-foreground:#18181b;--feedlog-destructive:#ef4444;--feedlog-destructive-foreground:#fafafa;--feedlog-success:#22c55e;--feedlog-success-foreground:#ffffff;--feedlog-warning:#f59e0b;--feedlog-warning-foreground:#ffffff;--feedlog-border:#f0f0f2;--feedlog-input:#e4e4e7;--feedlog-ring:#18181b;--feedlog-badge-enhancement-bg:#eef2ff;--feedlog-badge-enhancement-text:#4338ca;--feedlog-badge-secondary-bg:#f1f5f9;--feedlog-badge-secondary-text:#475569;--feedlog-badge-destructive-bg:#fef2f2;--feedlog-badge-destructive-text:#b91c1c;--feedlog-space-1:0.25rem;--feedlog-space-2:0.5rem;--feedlog-space-3:0.75rem;--feedlog-space-4:1rem;--feedlog-space-5:1.25rem;--feedlog-space-6:1.5rem;--feedlog-space-8:2rem;--feedlog-space-10:2.5rem;--feedlog-font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--feedlog-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--feedlog-text-xs:0.75rem;--feedlog-text-sm:0.875rem;--feedlog-text-base:1rem;--feedlog-text-lg:1.125rem;--feedlog-text-xl:1.25rem;--feedlog-font-normal:400;--feedlog-font-medium:500;--feedlog-font-semibold:600;--feedlog-font-bold:700;--feedlog-radius-sm:0.25rem;--feedlog-radius:0.5rem;--feedlog-radius-lg:0.75rem;--feedlog-radius-full:9999px;--feedlog-shadow-sm:0 2px 8px -2px rgba(0, 0, 0, 0.05);--feedlog-shadow:0 4px 20px -2px rgba(0, 0, 0, 0.05);--feedlog-shadow-md:0 8px 30px -4px rgba(0, 0, 0, 0.06)}.dark{--feedlog-background:#09090b;--feedlog-foreground:#fafafa;--feedlog-card:#09090b;--feedlog-card-foreground:#fafafa;--feedlog-popover:#09090b;--feedlog-popover-foreground:#fafafa;--feedlog-primary:#fafafa;--feedlog-primary-foreground:#18181b;--feedlog-secondary:#27272a;--feedlog-secondary-foreground:#fafafa;--feedlog-muted:#27272a;--feedlog-muted-foreground:#a1a1aa;--feedlog-accent:#27272a;--feedlog-accent-foreground:#fafafa;--feedlog-destructive:#7f1d1d;--feedlog-destructive-foreground:#fafafa;--feedlog-success:#14532d;--feedlog-success-foreground:#fafafa;--feedlog-warning:#78350f;--feedlog-warning-foreground:#fafafa;--feedlog-border:#27272a;--feedlog-input:#27272a;--feedlog-ring:#d4d4d8;--feedlog-badge-enhancement-bg:rgba(67, 56, 202, 0.2);--feedlog-badge-enhancement-text:#c7d2fe;--feedlog-badge-secondary-bg:rgba(71, 85, 105, 0.2);--feedlog-badge-secondary-text:#cbd5e1;--feedlog-badge-destructive-bg:rgba(185, 28, 28, 0.2);--feedlog-badge-destructive-text:#fecaca}';var n,s,o,r,i,l,f,a,c,u,h,d,p,g,m,b,v,$=Object.create,y=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,x=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,O=t=>{throw TypeError(t)},M=(t,e)=>function(){return e||(0,t[S(t)[0]])((e={exports:{}}).exports,e),e.exports},k=(t,e,n)=>e.has(t)||O("Cannot "+n),E=(t,e,n)=>(k(t,e,"read from private field"),n?n.call(t):e.get(t)),N=(t,e,n)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),C=(t,e,n)=>(k(t,e,"write to private field"),e.set(t,n),n),P=(t,e,n)=>(k(t,e,"access private method"),n),R=M({"node_modules/balanced-match/index.js"(t,e){function n(t,e,n){t instanceof RegExp&&(t=s(t,n)),e instanceof RegExp&&(e=s(e,n));var r=o(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function s(t,e){var n=e.match(t);return n?n[0]:null}function o(t,e,n){var s,o,r,i,l,f=n.indexOf(t),a=n.indexOf(e,f+1),c=f;if(f>=0&&a>0){if(t===e)return[f,a];for(s=[],r=n.length;c>=0&&!l;)c==f?(s.push(c),f=n.indexOf(t,c+1)):1==s.length?l=[s.pop(),a]:((o=s.pop())<r&&(r=o,i=a),a=n.indexOf(e,c+1)),c=f<a&&f>=0?f:a;s.length&&(l=[r,i])}return l}e.exports=n,n.range=o}}),W=M({"node_modules/brace-expansion/index.js"(t,e){var n=R();e.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(r).split("\\,").join(i).split("\\.").join(l)}(t),!0).map(a)):[]};var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function f(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function a(t){return t.split(s).join("\\").split(o).join("{").split(r).join("}").split(i).join(",").split(l).join(".")}function c(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var o=s.body,r=s.post,i=s.pre.split(",");i[i.length-1]+="{"+o+"}";var l=c(r);return r.length&&(i[i.length-1]+=l.shift(),i.push.apply(i,l)),e.push.apply(e,i),e}function u(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function p(t,e){return t>=e}function g(t,e){var s=[],o=n("{","}",t);if(!o)return[t];var i=o.pre,l=o.post.length?g(o.post,!1):[""];if(/\$$/.test(o.pre))for(var a=0;a<l.length;a++)s.push(W=i+"{"+o.body+"}"+l[a]);else{var m,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),$=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),y=v||$,w=o.body.indexOf(",")>=0;if(!y&&!w)return o.post.match(/,(?!,).*\}/)?g(t=o.pre+"{"+o.body+r+o.post):[t];if(y)m=o.body.split(/\.\./);else if(1===(m=c(o.body)).length&&1===(m=g(m[0],!1).map(u)).length)return l.map((function(t){return o.pre+m[0]+t}));if(y){var S=f(m[0]),x=f(m[1]),j=Math.max(m[0].length,m[1].length),O=3==m.length?Math.abs(f(m[2])):1,M=d;x<S&&(O*=-1,M=p);var k=m.some(h);b=[];for(var E=S;M(E,x);E+=O){var N;if($)"\\"===(N=String.fromCharCode(E))&&(N="");else if(N=E+"",k){var C=j-N.length;if(C>0){var P=Array(C+1).join("0");N=E<0?"-"+P+N.slice(1):P+N}}b.push(N)}}else{b=[];for(var R=0;R<m.length;R++)b.push.apply(b,g(m[R],!1))}for(R=0;R<b.length;R++)for(a=0;a<l.length;a++){var W=i+b[R]+l[a];(!e||y||W)&&s.push(W)}}return s}}}),A=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(A||{}),L=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(L||{}),I="type",z="value",T="serialized:",_=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[s]])=>{if(31&s||32&s){const s=t[n],o=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(t,n,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.i.has(n)?e.i.get(n):s}}))},D=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},F=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.o.u&&_(t,e))},U=(t,e)=>e in t,B=(t,e)=>(0,console.error)(t,e),G=new Map,H=new Map,V="s-id",Z="sty-id",q="c-id",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",Y="undefined"!=typeof window?window:{},K={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},Q=t=>Promise.resolve(t),X=(()=>{try{return!!Y.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),tt=!!X&&(()=>!!Y.document&&Object.getOwnPropertyDescriptor(Y.document.adoptedStyleSheets,"length").writable)(),et=!1,nt=[],st=[],ot=(t,e)=>n=>{t.push(n),et||(et=!0,e&&4&K.u?lt(it):K.raf(it))},rt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){B(t)}t.length=0},it=()=>{rt(nt),rt(st),(et=nt.length>0)&&K.raf(it)},lt=t=>Q().then(t),ft=ot(st,!0),at=t=>"object"==(t=typeof t)||"function"===t,ct=((t,e,n)=>(n=null!=t?$(x(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of S(e))j.call(t,n)||undefined===n||y(t,n,{get:()=>e[n],enumerable:!(s=w(e,n))||s.enumerable});return t})(y(n,"default",{value:t,enumerable:!0}),t)))(W()),ut=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ht={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},dt=t=>t.replace(/[[\]\\-]/g,"\\$&"),pt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gt=t=>t.join(""),mt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],o=[];let r=n+1,i=!1,l=!1,f=!1,a=!1,c=n,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==n+1){if("]"===e&&i&&!f){c=r+1;break}if(i=!0,"\\"!==e||f){if("["===e&&!f)for(const[e,[i,f,a]]of Object.entries(ht))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-n,!0];r+=e.length,a?o.push(i):s.push(i),l=l||f;continue t}f=!1,u?(e>u?s.push(dt(u)+"-"+dt(e)):e===u&&s.push(dt(e)),u="",r++):t.startsWith("-]",r+1)?(s.push(dt(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(s.push(dt(e)),r++)}else f=!0,r++}else a=!0,r++}if(c<r)return["",!1,0,!1];if(!s.length&&!o.length)return["$.",!1,t.length-n,!0];if(0===o.length&&1===s.length&&/^\\?.$/.test(s[0])&&!a){const t=2===s[0].length?s[0].slice(-1):s[0];return[pt(t),!1,c-n,!1]}const h="["+(a?"^":"")+gt(s)+"]",d="["+(a?"":"^")+gt(o)+"]";return[s.length&&o.length?"("+h+"|"+d+")":s.length?h:d,l,c-n,!0]},bt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),vt=new Set(["!","?","+","*","@"]),$t=t=>vt.has(t),yt="(?!\\.)",wt=new Set(["[","."]),St=new Set(["..","."]),xt=new Set("().*{}+?[]^$\\!"),jt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ot="[^/]",Mt=Ot+"*?",kt=Ot+"+?",Et=class t{constructor(t,e,p={}){N(this,d),((t,e,n)=>{((t,e,n)=>{e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),N(this,n),N(this,s),N(this,o,!1),N(this,r,[]),N(this,i),N(this,l),N(this,f),N(this,a,!1),N(this,c),N(this,u),N(this,h,!1),this.type=t,t&&C(this,s,!0),C(this,i,e),C(this,n,E(this,i)?E(E(this,i),n):this),C(this,c,E(this,n)===this?p:E(E(this,n),c)),C(this,f,E(this,n)===this?[]:E(E(this,n),f)),"!"!==t||E(E(this,n),a)||E(this,f).push(this),C(this,l,E(this,i)?E(E(this,i),r).length:0)}get hasMagic(){if(void 0!==E(this,s))return E(this,s);for(const t of E(this,r))if("string"!=typeof t&&(t.type||t.hasMagic))return C(this,s,!0);return E(this,s)}toString(){return void 0!==E(this,u)?E(this,u):C(this,u,this.type?this.type+"("+E(this,r).map((t=>t+"")).join("|")+")":E(this,r).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&E(n,i)===this))throw Error("invalid part: "+n);E(this,r).push(n)}}toJSON(){var t;const e=null===this.type?E(this,r).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...E(this,r).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===E(this,n)||E(E(this,n),a)&&"!"===(null==(t=E(this,i))?void 0:t.type))&&e.push({}),e}isStart(){var e;if(E(this,n)===this)return!0;if(!(null==(e=E(this,i))?void 0:e.isStart()))return!1;if(0===E(this,l))return!0;const s=E(this,i);for(let e=0;e<E(this,l);e++){const n=E(s,r)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,e,s;if(E(this,n)===this)return!0;if("!"===(null==(t=E(this,i))?void 0:t.type))return!0;if(!(null==(e=E(this,i))?void 0:e.isEnd()))return!1;if(!this.type)return null==(s=E(this,i))?void 0:s.isEnd();const o=E(this,i)?E(E(this,i),r).length:0;return E(this,l)===o-1}copyIn(t){this.push("string"==typeof t?t:t.clone(this))}clone(e){const n=new t(this.type,e);for(const t of E(this,r))n.copyIn(t);return n}static fromGlob(e,n={}){var s;const o=new t(null,void 0,n);return P(s=t,g,m).call(s,e,o,0,n),o}toMMPattern(){if(this!==E(this,n))return E(this,n).toMMPattern();const t=""+this,[e,o,r,i]=this.toRegExpSource();if(!(r||E(this,s)||E(this,c).nocase&&!E(this,c).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return o;const l=(E(this,c).nocase?"i":"")+(i?"u":"");return Object.assign(RegExp(`^${e}$`,l),{_src:e,_glob:t})}get options(){return E(this,c)}toRegExpSource(e){var l;const f=null!=e?e:!!E(this,c).dot;if(E(this,n)===this&&P(this,d,p).call(this),!this.type){const c=this.isStart()&&this.isEnd(),u=E(this,r).map((n=>{var r;const[i,l,f,a]="string"==typeof n?P(r=t,g,v).call(r,n,E(this,s),c):n.toRegExpSource(e);return C(this,s,E(this,s)||f),C(this,o,E(this,o)||a),i})).join("");let h="";if(this.isStart()&&"string"==typeof E(this,r)[0]&&(1!==E(this,r).length||!St.has(E(this,r)[0]))){const t=wt,n=f&&t.has(u.charAt(0))||u.startsWith("\\.")&&t.has(u.charAt(2))||u.startsWith("\\.\\.")&&t.has(u.charAt(4)),s=!f&&!e&&t.has(u.charAt(0));h=n?"(?!(?:^|/)\\.\\.?(?:$|/))":s?yt:""}let d="";return this.isEnd()&&E(E(this,n),a)&&"!"===(null==(l=E(this,i))?void 0:l.type)&&(d="(?:$|\\/)"),[h+u+d,bt(u),C(this,s,!!E(this,s)),E(this,o)]}const u="*"===this.type||"+"===this.type,m="!"===this.type?"(?:(?!(?:":"(?:";let $=P(this,d,b).call(this,f);if(this.isStart()&&this.isEnd()&&!$&&"!"!==this.type){const t=""+this;return C(this,r,[t]),this.type=null,C(this,s,void 0),[t,bt(""+this),!1,!1]}let y=!u||e||f?"":P(this,d,b).call(this,!0);y===$&&(y=""),y&&($=`(?:${$})(?:${y})*?`);let w="";return w="!"===this.type&&E(this,h)?(this.isStart()&&!f?yt:"")+kt:m+$+("!"===this.type?"))"+(!this.isStart()||f||e?"":yt)+Mt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&y?")":"*"===this.type&&y?")?":")"+this.type),[w,bt($),C(this,s,!!E(this,s)),E(this,o)]}};n=new WeakMap,s=new WeakMap,o=new WeakMap,r=new WeakMap,i=new WeakMap,l=new WeakMap,f=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakSet,p=function(){if(this!==E(this,n))throw Error("should only call on root");if(E(this,a))return this;let t;for(C(this,a,!0);t=E(this,f).pop();){if("!"!==t.type)continue;let e=t,n=E(e,i);for(;n;){for(let s=E(e,l)+1;!n.type&&s<E(n,r).length;s++)for(const e of E(t,r)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(E(n,r)[s])}e=n,n=E(e,i)}}return this},g=new WeakSet,m=function(t,e,n,o){var i,l;let f=!1,a=!1,c=-1,u=!1;if(null===e.type){let s=n,r="";for(;s<t.length;){const n=t.charAt(s++);if(f||"\\"===n)f=!f,r+=n;else if(a)s===c+1?"^"!==n&&"!"!==n||(u=!0):"]"!==n||s===c+2&&u||(a=!1),r+=n;else if("["!==n)if(o.noext||!$t(n)||"("!==t.charAt(s))r+=n;else{e.push(r),r="";const l=new Et(n,e);s=P(i=Et,g,m).call(i,t,l,s,o),e.push(l)}else a=!0,c=s,u=!1,r+=n}return e.push(r),s}let d=n+1,p=new Et(null,e);const b=[];let v="";for(;d<t.length;){const n=t.charAt(d++);if(f||"\\"===n)f=!f,v+=n;else if(a)d===c+1?"^"!==n&&"!"!==n||(u=!0):"]"!==n||d===c+2&&u||(a=!1),v+=n;else if("["!==n)if($t(n)&&"("===t.charAt(d)){p.push(v),v="";const e=new Et(n,p);p.push(e),d=P(l=Et,g,m).call(l,t,e,d,o)}else if("|"!==n){if(")"===n)return""===v&&0===E(e,r).length&&C(e,h,!0),p.push(v),v="",e.push(...b,p),d;v+=n}else p.push(v),v="",b.push(p),p=new Et(null,e);else a=!0,c=d,u=!1,v+=n}return e.type=null,C(e,s,void 0),C(e,r,[t.substring(n-1)]),d},b=function(t){return E(this,r).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,s,r,i]=e.toRegExpSource(t);return C(this,o,E(this,o)||i),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},v=function(t,e,n=!1){let s=!1,o="",r=!1;for(let i=0;i<t.length;i++){const l=t.charAt(i);if(s)s=!1,o+=(xt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,f]=mt(t,i);if(l){o+=n,r=r||s,i+=l-1,e=e||f;continue}}"*"!==l?"?"!==l?o+=jt(l):(o+=Ot,e=!0):(o+=n&&"*"===t?kt:Mt,e=!0)}else i===t.length-1?o+="\\\\":s=!0}return[o,bt(t),!!e,r]},N(Et,g);var Nt=Et,Ct=(t,e,n={})=>(ut(e),!(!n.nocomment&&"#"===e.charAt(0))&&new ne(e,n).match(t)),Pt=/^\*+([^+@!?\*\[\(]*)$/,Rt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Wt=t=>e=>e.endsWith(t),At=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Lt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),It=/^\*+\.\*+$/,zt=t=>!t.startsWith(".")&&t.includes("."),Tt=t=>"."!==t&&".."!==t&&t.includes("."),_t=/^\.\*+$/,Dt=t=>"."!==t&&".."!==t&&t.startsWith("."),Ft=/^\*+$/,Ut=t=>0!==t.length&&!t.startsWith("."),Bt=t=>0!==t.length&&"."!==t&&".."!==t,Gt=/^\?+([^+@!?\*\[\(]*)?$/,Ht=([t,e=""])=>{const n=Jt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Vt=([t,e=""])=>{const n=Yt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Zt=([t,e=""])=>{const n=Yt([t]);return e?t=>n(t)&&t.endsWith(e):n},qt=([t,e=""])=>{const n=Jt([t]);return e?t=>n(t)&&t.endsWith(e):n},Jt=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},Yt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Kt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";Ct.sep="win32"===Kt?"\\":"/";var Qt=Symbol("globstar **");Ct.GLOBSTAR=Qt,Ct.filter=(t,e={})=>n=>Ct(n,t,e);var Xt=(t,e={})=>Object.assign({},t,e);Ct.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Ct;const e=Ct;return Object.assign(((n,s,o={})=>e(n,s,Xt(t,o))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Xt(t,n))}static defaults(n){return e.defaults(Xt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Xt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Xt(t,s))}},unescape:(n,s={})=>e.unescape(n,Xt(t,s)),escape:(n,s={})=>e.escape(n,Xt(t,s)),filter:(n,s={})=>e.filter(n,Xt(t,s)),defaults:n=>e.defaults(Xt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Xt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Xt(t,s)),match:(n,s,o={})=>e.match(n,s,Xt(t,o)),sep:e.sep,GLOBSTAR:Qt})};var te=(t,e={})=>(ut(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ct.default)(t));Ct.braceExpand=te,Ct.makeRe=(t,e={})=>new ne(t,e).makeRe(),Ct.match=(t,e,n={})=>{const s=new ne(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var ee=/[?*]|[+@!]\(.*?\)|\[|\]/,ne=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ut(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Kt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&ee.test(t[2])||ee.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,s),this.set=s.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const s=t[n];1===n&&""===s&&""===t[0]||"."!==s&&""!==s||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const s=t[n-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let s=-1;for(;-1!==(s=n.indexOf("**",s+1));){let o=s;for(;"**"===n[o+1];)o++;o>s&&n.splice(s+1,o-s);const r=n[s+2],i=n[s+3];if(".."!==n[s+1])continue;if(!r||"."===r||".."===r||!i||"."===i||".."===i)continue;e=!0,n.splice(s,1);const l=n.slice(0);l[s]="**",t.push(l),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const s=n[t];1===t&&""===s&&""===n[0]||"."!==s&&""!==s||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let o=0;for(;-1!==(o=n.indexOf("..",o+1));){const t=n[o-1];t&&"."!==t&&".."!==t&&"**"!==t&&(e=!0,n.splice(o-1,2,...1===o&&"**"===n[o+1]?["."]:[]),0===n.length&&n.push(""),o-=2)}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const s=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);s&&(t[e]=s,t[n]=[])}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let s=0,o=0,r=[],i="";for(;s<t.length&&o<e.length;)if(t[s]===e[o])r.push("b"===i?e[o]:t[s]),s++,o++;else if(n&&"**"===t[s]&&e[o]===t[s+1])r.push(t[s]),s++;else if(n&&"**"===e[o]&&t[s]===e[o+1])r.push(e[o]),o++;else if("*"!==t[s]||!e[o]||!this.options.dot&&e[o].startsWith(".")||"**"===e[o]){if("*"!==e[o]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s])return!1;if("a"===i)return!1;i="b",r.push(e[o]),s++,o++}else{if("b"===i)return!1;i="a",r.push(t[s]),s++,o++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const s=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),s=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),o="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=s?3:n?0:void 0,i=!o&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:o?0:void 0;if("number"==typeof r&&"number"==typeof i){const[n,s]=[t[r],e[i]];n.toLowerCase()===s.toLowerCase()&&(e[i]=n,i>r?e=e.slice(i):r>i&&(t=t.slice(r)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,i=0,l=t.length,f=e.length;r<l&&i<f;r++,i++){this.debug("matchOne loop");var a=e[i],c=t[r];if(this.debug(e,a,c),!1===a)return!1;if(a===Qt){this.debug("GLOBSTAR",[e,a,c]);var u=r,h=i+1;if(h===f){for(this.debug("** at the end");r<l;r++)if("."===t[r]||".."===t[r]||!s.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<l;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,h,d),this.matchOne(t.slice(u),e.slice(h),n))return this.debug("globstar found match!",u,l,d),!0;if("."===d||".."===d||!s.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,h);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!n||(this.debug("\n>>> no match, partial?",t,u,e,h),u!==l))}let o;if("string"==typeof a?(o=c===a,this.debug("string match",a,c,o)):(o=a.test(c),this.debug("pattern match",a,c,o)),!o)return!1}if(r===l&&i===f)return!0;if(r===l)return n;if(i===f)return r===l-1&&""===t[r];throw Error("wtf?")}braceExpand(){return te(this.pattern,this.options)}parse(t){ut(t);const e=this.options;if("**"===t)return Qt;if(""===t)return"";let n,s=null;(n=t.match(Ft))?s=e.dot?Bt:Ut:(n=t.match(Pt))?s=(e.nocase?e.dot?Lt:At:e.dot?Wt:Rt)(n[1]):(n=t.match(Gt))?s=(e.nocase?e.dot?Vt:Ht:e.dot?Zt:qt)(n):(n=t.match(It))?s=e.dot?Tt:zt:(n=t.match(_t))&&(s=Dt);const o=Nt.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof o&&Reflect.defineProperty(o,"test",{value:s}),o}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]);let o=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))s.add(e);return"string"==typeof t?(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(t):t===Qt?Qt:t._src}));return e.forEach(((t,s)=>{const o=e[s+1],r=e[s-1];t===Qt&&r!==Qt&&(void 0===r?void 0!==o&&o!==Qt?e[s+1]="(?:\\/|"+n+"\\/)?"+o:e[s]=n:void 0===o?e[s-1]=r+"(?:\\/|"+n+")?":o!==Qt&&(e[s-1]=r+"(?:\\/|\\/"+n+"\\/)"+o,e[s+1]=Qt))})),e.filter((t=>t!==Qt)).join("/")})).join("|");const[r,i]=t.length>1?["(?:",")"]:["",""];o="^"+r+o+i+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=RegExp(o,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const o=this.set;this.debug(this.pattern,"set",o);let r=s[s.length-1];if(!r)for(let t=s.length-2;!r&&t>=0;t--)r=s[t];for(let t=0;t<o.length;t++){const i=o[t];let l=s;if(n.matchBase&&1===i.length&&(l=[r]),this.matchOne(l,i,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return Ct.defaults(t).Minimatch}};function se(t){var e,n,s;return null!=(s=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}Ct.AST=Nt,Ct.Minimatch=ne,Ct.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),Ct.unescape=bt;var oe=class t{static fromLocalValue(e){const n=e[I],s=z in e?e[z]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((e=>t.fromLocalValue(e)));case"date":return new Date(s);case"map":const e=new Map;for(const[n,o]of s){const s="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(o);e.set(s,r)}return e;case"object":const o={};for(const[e,n]of s)o[e]=t.fromLocalValue(n);return o;case"regexp":const{pattern:r,flags:i}=s;return RegExp(r,i);case"set":const l=new Set;for(const e of s)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(I))return!1;const e=t[I];return!!Object.values({...A,...L}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(z))}};((t,e)=>{for(var n in e)y(t,n,{get:e[n],enumerable:!0})})({},{err:()=>ie,map:()=>le,ok:()=>re,unwrap:()=>ae,unwrapErr:()=>ce});var re=t=>({isOk:!0,isErr:!1,value:t}),ie=t=>({isOk:!1,isErr:!0,value:t});function le(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>re(t))):re(n)}if(t.isErr)return ie(t.value);throw"should never get here"}var fe,ae=t=>{if(t.isOk)return t.value;throw t.value},ce=t=>{if(t.isErr)return t.value;throw t.value};function ue(){var t;const n=this.attachShadow({mode:"open"});if(void 0===fe&&(fe=null!=(t=function(t){if(!X)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(e))?t:null),fe)tt?n.adoptedStyleSheets.push(fe):n.adoptedStyleSheets=[...n.adoptedStyleSheets,fe];else if(!X){const t=document.createElement("style");t.innerHTML=e,n.prepend(t)}}var he=(t,e,n,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const r=e["s-cr"].parentNode,i=de(r,"appendChild");if(void 0!==s){o["s-oo"]=s;const t=de(r,"childNodes"),e=[o];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>i.call(r,t)))}else i.call(r,o);t["s-ol"]=o,t["s-sh"]=e["s-hn"]};function de(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var pe=new WeakMap,ge=(t,e,n)=>{let s=H.get(t);X&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,H.set(t,s)},me=(t,e)=>{var n,s,o;const r=be(e),i=H.get(r);if(!Y.document)return r;if(t=11===t.nodeType?t:Y.document,i)if("string"==typeof i){let o,l=pe.get(t=t.head||t);l||pe.set(t,l=new Set);const f=t.querySelector(`[${Z}="${r}"]`);if(f)f.innerHTML=i;else if(!l.has(r)){o=Y.document.createElement("style"),o.innerHTML=i;const f=null!=(n=K.p)?n:se(Y.document);if(null!=f&&o.setAttribute("nonce",f),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(X){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(i),tt?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=i+e.innerHTML:t.prepend(o)}else t.append(o);1&e.u&&t.insertBefore(o,null),4&e.u&&(o.innerHTML+=J),l&&l.add(r)}}else{let e=pe.get(t);if(e||pe.set(t,e=new Set),!e.has(r)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let s;if(i.constructor===n.CSSStyleSheet)s=i;else{s=new n.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)s.insertRule(i.cssRules[t].cssText,t)}tt?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(r)}}return r},be=t=>"sc-"+t.m,ve=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),$e=(t,e,...n)=>{let s=null,o=null,r=!1,i=!1;const l=[],f=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?f(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof t&&!at(s))&&(s+=""),r&&i?l[l.length-1].v+=s:l.push(r?ye(null,s):s),i=r)};if(f(n),e){e.key&&(o=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const a=ye(t,null);return a.$=e,l.length>0&&(a.S=l),a.j=o,a},ye=(t,e)=>({u:0,O:t,v:e,M:null,S:null,$:null,j:null}),we={},Se=(t,e,n,s,o,r,i,l=[])=>{let f,a,c,u;if(1===r.nodeType){if(f=r.getAttribute(q),f&&(a=f.split("."),a[0]===i||"0"===a[0])){c=je({u:0,k:a[0],N:a[1],C:a[2],P:a[3],O:r.tagName.toLowerCase(),M:r,$:{class:r.className||""}}),e.push(c),r.removeAttribute(q),t.S||(t.S=[]);const o=c.M.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===c.O&&Oe(o,a[2],c,r,t,e,n,s,l),c.M["s-sn"]=o,c.M.removeAttribute("s-sn")),void 0!==c.P&&(t.S[c.P]=c),t=c,s&&"0"===c.C&&(s[c.P]=c.M)}if(r.shadowRoot)for(u=r.shadowRoot.childNodes.length-1;u>=0;u--)Se(t,e,n,s,o,r.shadowRoot.childNodes[u],i,l);const h=r.__childNodes||r.childNodes;for(u=h.length-1;u>=0;u--)Se(t,e,n,s,o,h[u],i,l)}else if(8===r.nodeType)a=r.nodeValue.split("."),(a[1]===i||"0"===a[1])&&(f=a[0],c=je({k:a[1],N:a[2],C:a[3],P:a[4]||"0",M:r,$:null,S:null,j:null,R:null,O:null,v:null}),"t"===f?(c.M=ke(r,3),c.M&&3===c.M.nodeType&&(c.v=c.M.textContent,e.push(c),r.remove(),i===c.k&&(t.S||(t.S=[]),t.S[c.P]=c),s&&"0"===c.C&&(s[c.P]=c.M))):"c"===f?(c.M=ke(r,8),c.M&&8===c.M.nodeType&&(e.push(c),r.remove())):c.k===i&&("s"===f?Oe(r["s-sn"]=a[5]||"",a[2],c,r,t,e,n,s,l):"r"===f&&s&&r.remove()));else if(t&&"style"===t.O){const e=ye(null,r.textContent);e.M=r,e.P="0",t.S=[e]}return t},xe=(t,e)=>{if(1===t.nodeType){const n=t[V]||t.getAttribute(V);n&&e.set(n,t);let s=0;if(t.shadowRoot)for(;s<t.shadowRoot.childNodes.length;s++)xe(t.shadowRoot.childNodes[s],e);const o=t.__childNodes||t.childNodes;for(s=0;s<o.length;s++)xe(o[s],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},je=t=>({u:0,k:null,N:null,C:null,P:"0",M:null,$:null,S:null,j:null,R:null,O:null,v:null,...t});function Oe(t,e,n,s,o,r,i,l,f){s["s-sr"]=!0,n.R=t||null,n.O="slot";const a=(null==o?void 0:o.M)?o.M["s-id"]||o.M.getAttribute("s-id"):"";if(l&&Y.document){const r=n.M=Y.document.createElement(n.O);n.R&&n.M.setAttribute("name",t),o.M.shadowRoot&&a&&a!==n.k?de(o.M,"insertBefore")(r,de(o.M,"children")[0]):de(de(s,"parentNode"),"insertBefore")(r,s),Me(f,e,t,s,n.k),s.remove(),"0"===n.C&&(l[n.P]=n.M)}else{const r=n.M,i=a&&a!==n.k&&o.M.shadowRoot;Me(f,e,t,s,i?a:n.k),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],s=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const s=t[n]["s-nr"]||void 0;s&&s.isConnected&&e.push(s)}return e})(o.childNodes)).forEach((t=>{s===(t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0)(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),i&&o.M.insertBefore(r,o.M.children[0])}r.push(n),i.push(n),o.S||(o.S=[]),o.S[n.P]=n}var Me=(t,e,n,s,o)=>{var r,i;let l=s.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:s,node:l,hostId:o})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))},ke=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Ee=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Ee("::slotted"),Ee(":host"),Ee(":host-context");var Ne,Ce=(t,e)=>"string"==typeof t&&t.startsWith(T)?t=function(t){return"string"==typeof t&&t.startsWith(T)?oe.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||at(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,Pe=t=>{var e;return null==(e=D(t))?void 0:e.$hostElement$},Re=(t,e)=>{const n=Pe(t);return{emit:t=>We(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},We=(t,e,n)=>{const s=K.ce(e,n);return t.dispatchEvent(s),s},Ae=(t,e,n,s,o,r,i)=>{if(n===s)return;let l=U(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,o=Ie(n);let r=Ie(s);if((t["s-si"]||t["s-sc"])&&i){const n=t["s-sc"]||t["s-si"];r.push(n),o.forEach((t=>{t.startsWith(n)&&r.push(t)})),r=[...new Set(r)].filter((t=>t)),e.add(...r)}else e.remove(...o.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)s&&null!=s[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in s)n&&s[e]===n[e]||(e.includes("-")?t.style.setProperty(e,s[e]):t.style[e]=s[e])}else if("key"===e);else if(l||"o"!==e[0]||"n"!==e[1]){const i=at(s);if((l||i&&null!==s)&&!o)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const o=null==s?"":s;"list"===e?l=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!l||4&r||o)&&!i&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}else if(e="-"===e[2]?e.slice(3):U(Y,f)?f.slice(2):f[2]+e.slice(3),n||s){const o=e.endsWith(ze);e=e.replace(Te,""),n&&K.rel(t,e,n,o),s&&K.ael(t,e,s,o)}},Le=/\s/,Ie=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Le):[]),ze="Capture",Te=RegExp(ze+"$"),_e=(t,e,n,s)=>{const o=11===e.M.nodeType&&e.M.host?e.M.host:e.M,r=t&&t.$||{},i=e.$||{};for(const t of De(Object.keys(r)))t in i||Ae(o,t,r[t],void 0,n,e.u,s);for(const t of De(Object.keys(i)))Ae(o,t,r[t],i[t],n,e.u,s)};function De(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Fe=!1,Ue=(t,e,n)=>{const s=e.S[n];let o,r,i=0;if(null!==s.v)o=s.M=Y.document.createTextNode(s.v);else{if(Fe||(Fe="svg"===s.O),!Y.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(o=s.M=Y.document.createElementNS(Fe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.O),Fe&&"foreignObject"===s.O&&(Fe=!1),_e(null,s,Fe),s.S){const e="template"===s.O?o.content:o;for(i=0;i<s.S.length;++i)r=Ue(t,s,i),r&&e.appendChild(r)}"svg"===s.O?Fe=!1:"foreignObject"===o.tagName&&(Fe=!0)}return o["s-hn"]=Ne,o},Be=(t,e,n,s,o,r)=>{let i,l=t;for(l.shadowRoot&&l.tagName===Ne&&(l=l.shadowRoot),"template"===n.O&&(l=l.content);o<=r;++o)s[o]&&(i=Ue(null,n,o),i&&(s[o].M=i,Ze(l,i,e)))},Ge=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.M;t&&t.remove()}}},He=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),Ve=(t,e,n=!1)=>{const s=e.M=t.M,o=t.S,r=e.S,i=e.O,l=e.v;null===l?(_e(t,e,Fe="svg"===i||"foreignObject"!==i&&Fe,n),null!==o&&null!==r?((t,e,n,s,o=!1)=>{let r,i,l=0,f=0,a=0,c=0,u=e.length-1,h=e[0],d=e[u],p=s.length-1,g=s[0],m=s[p];const b="template"===n.O?t.content:t;for(;l<=u&&f<=p;)if(null==h)h=e[++l];else if(null==d)d=e[--u];else if(null==g)g=s[++f];else if(null==m)m=s[--p];else if(He(h,g,o))Ve(h,g,o),h=e[++l],g=s[++f];else if(He(d,m,o))Ve(d,m,o),d=e[--u],m=s[--p];else if(He(h,m,o))Ve(h,m,o),Ze(b,h.M,d.M.nextSibling),h=e[++l],m=s[--p];else if(He(d,g,o))Ve(d,g,o),Ze(b,d.M,h.M),d=e[--u],g=s[++f];else{for(a=-1,c=l;c<=u;++c)if(e[c]&&null!==e[c].j&&e[c].j===g.j){a=c;break}a>=0?(i=e[a],i.O!==g.O?r=Ue(e&&e[f],n,a):(Ve(i,g,o),e[a]=void 0,r=i.M),g=s[++f]):(r=Ue(e&&e[f],n,f),g=s[++f]),r&&Ze(h.M.parentNode,r,h.M)}l>u?Be(t,null==s[p+1]?null:s[p+1].M,n,s,f,p):f>p&&Ge(e,l,u)})(s,o,e,r,n):null!==r?(null!==t.v&&(s.textContent=""),Be(s,null,e,r,0,r.length-1)):n||null===o?n&&null!==o&&null===r&&(e.S=o):Ge(o,0,o.length-1),Fe&&"svg"===i&&(Fe=!1)):t.v!==l&&(s.data=l)},Ze=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),qe=(t,e)=>{if(e&&!t.W&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.W=()=>{e["s-p"].splice(n-1,1),s()})))}},Je=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);qe(t,t.A);const n=()=>Ye(t,e);if(!e)return ft(n);queueMicrotask((()=>{n()}))},Ye=(t,e)=>{const n=t.$hostElement$,s=t.l;if(!s)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e?(t.L.length&&t.L.forEach((t=>t(n))),o=sn(s,"componentWillLoad",void 0,n)):o=sn(s,"componentWillUpdate",void 0,n),o=Ke(o,(()=>sn(s,"componentWillRender",void 0,n))),Ke(o,(()=>Xe(t,s,e)))},Ke=(t,e)=>Qe(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Qe=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Xe=async(t,e,n)=>{var s;const o=t.$hostElement$,r=o["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,s=e.u,o=me(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);tn(t,e,o,n),r&&(r.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(s=o["s-p"])?s:[],n=()=>en(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},tn=(t,e,n,s)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const s=t.$hostElement$,o=t.I||ye(null,null),r=(t=>t&&t.O===we)(e)?e:$e(null,null,e);if(Ne=s.tagName,n&&r.$)for(const t of Object.keys(r.$))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.$[t]=s[t]);r.O=null,r.u|=4,t.I=r,r.M=o.M=s.shadowRoot||s,Ve(o,r,n)})(t,e,s)}catch(e){B(e,t.$hostElement$)}return null},en=t=>{const e=t.$hostElement$,n=t.l,s=t.A;sn(n,"componentDidRender",void 0,e),64&t.u?sn(n,"componentDidUpdate",void 0,e):(t.u|=64,on(e),sn(n,"componentDidLoad",void 0,e),t.T(e),s||nn()),t.W&&(t.W(),t.W=void 0),512&t.u&&lt((()=>Je(t,!1))),t.u&=-517},nn=()=>{var t;lt((()=>We(Y,"appload",{detail:{namespace:"feedlog-toolkit"}}))),(null==(t=K._)?void 0:t.size)&&K._.clear()},sn=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){B(t,s)}},on=t=>t.classList.add("hydrated"),rn=(t,e,n,s)=>{const o=D(t);if(!o)return;if(!o)throw Error(`Couldn't find host element for "${s.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=o.$hostElement$,i=o.i.get(e),l=o.u,f=o.l;if(n=Ce(n,s.t[e][0]),!(8&l&&void 0!==i||n===i||Number.isNaN(i)&&Number.isNaN(n))){if(o.i.set(e,n),s.D){const t=s.D[e];t&&t.map((t=>{try{const[[s,r]]=Object.entries(t);(128&l||1&r)&&(f?f[s](n,i,e):o.L.push((()=>{o.l[s](n,i,e)})))}catch(t){B(t,r)}}))}if(2==(18&l)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,i,e))return;Je(o,!1)}}},ln=(t,e,n)=>{var s,o;const r=t.prototype;{t.watchers&&!e.D&&(e.D=t.watchers),t.deserializers&&!e.F&&(e.F=t.deserializers),t.serializers&&!e.U&&(e.U=t.serializers);const i=Object.entries(null!=(s=e.t)?s:{});if(i.map((([t,[s]])=>{if(31&s||2&n&&32&s){const{get:o,set:i}=Object.getOwnPropertyDescriptor(r,t)||{};o&&(e.t[t][0]|=2048),i&&(e.t[t][0]|=4096),(1&n||!o)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>D(this).i.get(e))(0,t);const n=D(this),s=n?n.l:r;if(!s)return;return s[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(o){const r=D(this);if(r){if(i)return void 0===(32&s?this[t]:r.$hostElement$[t])&&r.i.get(t)&&(o=r.i.get(t)),i.call(this,Ce(o,s)),void rn(this,t,o=32&s?this[t]:r.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return rn(this,t,o,e),void(1&n&&!r.l&&r.L.push((()=>{4096&e.t[t][0]&&r.l[t]!==r.i.get(t)&&(r.l[t]=o)})));const i=()=>{const n=r.l[t];!r.i.get(t)&&n&&r.i.set(t,n),r.l[t]=Ce(o,s),rn(this,t,r.l[t],e)};r.l?i():r.L.push((()=>{i()}))}}}})}})),1&n){const n=new Map;r.attributeChangedCallback=function(t,s,o){K.jmp((()=>{var l;const f=n.get(t),a=D(this);if(this.hasOwnProperty(f)&&(o=this[f],delete this[f]),r.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==o)return;if(null==f){const n=null==a?void 0:a.u;if(a&&n&&!(8&n)&&o!==s){const r=a.l,i=null==(l=e.D)?void 0:l[t];null==i||i.forEach((e=>{const[[i,l]]=Object.entries(e);null!=r[i]&&(128&n||1&l)&&r[i].call(r,o,s,t)}))}return}const c=i.find((([t])=>t===f));c&&4&c[1][0]&&(o=null!==o&&"false"!==o);const u=Object.getOwnPropertyDescriptor(r,f);o==this[f]||u.get&&!u.set||(this[f]=o)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=e.D)?o:{}),...i.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},fn=(t,e)=>{sn(t,"connectedCallback",void 0,e)},an=t=>{if(!(1&K.u)){const e=D(t);if(!e)return;const n=e.o,s=()=>{};if(1&e.u)(null==e?void 0:e.l)?fn(e.l,t):(null==e?void 0:e.B)&&e.B.then((()=>fn(e.l,t)));else{let s;if(e.u|=1,s=t.getAttribute(V),s){if(1&n.u){const e=me(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,s)=>{var o,r,i,l;const f=t.shadowRoot,a=[],c=[],u=f?[]:null,h=ye(e,null);h.M=t,!Y.document||K._&&K._.size||xe(Y.document.body,K._=new Map),t[V]=n,t.removeAttribute(V),s.I=Se(h,a,[],u,t,t,n,c);let d=0;const p=a.length;let g;for(;d<p;d++){g=a[d];const n=g.k+"."+g.N,s=K._.get(n),r=g.M;if(f){if((null==(o=g.O)?void 0:(""+o).includes("-"))&&"slot-fb"!==g.O&&!g.M.shadowRoot){const e=D(g.M);if(e){const n=be(e.o),s=Y.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else r["s-hn"]=e.toUpperCase(),"slot"===g.O&&(r["s-cr"]=t["s-cr"]);"slot"===g.O&&(g.R=g.M["s-sn"]||g.M.name||null,g.S?(g.u|=2,g.M.childNodes.length||g.S.forEach((t=>{g.M.appendChild(t.M)}))):g.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(r,s.nextSibling),s.parentNode.removeChild(s),f||(r["s-oo"]=parseInt(g.N))),s&&!s["s-id"]&&K._.delete(n)}const m=[],b=c.length;let v,$,y,w,S=0,x=0;for(;S<b;S++)if(v=c[S],v&&v.length)for(y=v.length,$=0;$<y;$++){if(w=v[$],m[w.hostId]||(m[w.hostId]=K._.get(w.hostId)),!m[w.hostId])continue;const t=m[w.hostId];t.shadowRoot&&w.node.parentElement!==t&&t.insertBefore(w.node,null==(i=null==(r=v[$-1])?void 0:r.node)?void 0:i.nextSibling),t.shadowRoot&&f||(w.slot["s-cr"]||(w.slot["s-cr"]=t["s-cr"],w.slot["s-cr"]=!w.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),he(w.node,w.slot,0,w.node["s-oo"]||x),(null==(l=w.node.parentElement)?void 0:l.shadowRoot)&&w.node.getAttribute&&w.node.getAttribute("slot")&&w.node.removeAttribute("slot")),x=(w.node["s-oo"]||x)+1}if(f){let e=0;const n=u.length;if(n){for(;e<n;e++){const t=u[e];t&&f.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}s.$hostElement$=t})(t,n.m,s,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){qe(e,e.A=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.u)){if(e.u|=32,n.G){const o=((t,e)=>{const n=t.m.replace(/-/g,"_"),s=t.G;if(!s)return;const o=G.get(s);return o?o[n]:import(`./${s}.entry.js`).then((t=>(G.set(s,t),t[n])),(t=>{B(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(o&&"then"in o){const t=()=>{};s=await o,t()}else s=o;if(!s)throw Error(`Constructor for "${n.m}#${e.H}" was not found`);s.isProxied||(n.D=s.watchers,n.U=s.serializers,n.F=s.deserializers,ln(s,n,2),s.isProxied=!0);const r=()=>{};e.u|=8;try{new s(e)}catch(e){B(e,t)}e.u&=-9,e.u|=128,r(),fn(e.l,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const e=be(n);if(!H.has(e)){const s=()=>{};ge(e,t,!!(1&n.u)),s()}}}const o=e.A,r=()=>Je(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(t,e,n)}s()}},cn=(t,e)=>{sn(t,"disconnectedCallback",void 0,e||t)},un=(t,e={})=>{var n;if(!Y.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=[],o=e.exclude||[],r=Y.customElements,i=Y.document.head,l=i.querySelector("meta[charset]"),f=Y.document.createElement("style"),a=[];let c,u=!0;Object.assign(K,e),K.h=new URL(e.resourcesUrl||"./",Y.document.baseURI).href,K.u|=2,(()=>{if(!Y.document)return;const t=Y.document.querySelectorAll(`[${Z}]`);let e=0;for(;e<t.length;e++)ge(t[e].getAttribute(Z),ve(t[e].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var n,i,l;const f={u:e[0],m:e[1],t:e[2],V:e[3]};4&f.u&&(h=!0),f.t=e[2],f.D=null!=(n=e[4])?n:{},f.U=null!=(i=e[5])?i:{},f.F=null!=(l=e[6])?l:{};const d=f.m,p=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={u:0,$hostElement$:t,o:e,i:new Map,Z:new Map};n.B=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.L=[];const s=n;t.__stencil__getHostRef=()=>s})(t=this,f),1&f.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${f.m}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ue.call(t,f)}connectedCallback(){D(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),c&&(clearTimeout(c),c=null),u?a.push(this):K.jmp((()=>an(this))))}disconnectedCallback(){K.jmp((()=>(async t=>{if(!(1&K.u)){const e=D(t);(null==e?void 0:e.l)?cn(e.l,t):(null==e?void 0:e.B)&&e.B.then((()=>cn(e.l,t)))}pe.has(t)&&pe.delete(t),t.shadowRoot&&pe.has(t.shadowRoot)&&pe.delete(t.shadowRoot)})(this))),K.raf((()=>{var t;const e=D(this);if(!e)return;const n=a.findIndex((t=>t===this));n>-1&&a.splice(n,1),(null==(t=null==e?void 0:e.I)?void 0:t.M)instanceof Node&&!e.I.M.isConnected&&delete e.I.M}))}componentOnReady(){var t;return null==(t=D(this))?void 0:t.B}};f.G=t[0],o.includes(d)||r.get(d)||(s.push(d),r.define(d,ln(p,f,1)))}))})),s.length>0&&(h&&(f.textContent+=J),f.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const t=null!=(n=K.p)?n:se(Y.document);null!=t&&f.setAttribute("nonce",t),i.insertBefore(f,l?l.nextSibling:i.firstChild)}u=!1,a.length?a.map((t=>t.connectedCallback())):K.jmp((()=>c=setTimeout(nn,30)))},hn=t=>K.p=t;export{we as H,Pe as a,un as b,Re as c,t as g,$e as h,Q as p,F as r,hn as s}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,H as s}from"./p-Cu1eYdKa.js";const o=class{constructor(a){e(this,a),this.feedlogUpvote=t(this,"feedlogUpvote"),this.feedlogLoadMore=t(this,"feedlogLoadMore"),this.issues=[],this.maxWidth="42rem",this.theme="light",this.loading=!1,this.error=null,this.hasMore=!1,this.isLoadingMore=!1,this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit(e.detail)},this.handleLoadMore=()=>{this.feedlogLoadMore.emit()}}renderErrorIcon(){return a("svg",{class:"error-icon",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"10"}),a("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),a("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"}))}renderIssuesList(){var e,t;return a("feedlog-issues-list",{issues:this.issues,limit:this.limit,theme:this.theme,getIssueUrl:this.getIssueUrl,emptyStateTitle:null!==(e=this.emptyStateTitle)&&void 0!==e?e:"No updates yet",emptyStateMessage:null!==(t=this.emptyStateMessage)&&void 0!==t?t:"Check back later for new updates.",onFeedlogUpvote:e=>this.handleUpvote(e),part:"issues-list"},a("slot",{name:"empty-state",slot:"empty-state"}))}render(){return a(s,{key:"79835dd61383b41124f48d204977951236a7f8ce",class:"dark"===this.theme?"dark":""},a("div",{key:"62228927cba9bd4cf58d8b4f3ec2751ba423dd67",class:"issues-container",style:{maxWidth:this.maxWidth},part:"base"},a("slot",{key:"c57d46adc472c2b03857db3e07cc5b549bd110f1",name:"header"},(this.heading||this.subtitle)&&a("header",{key:"080059a002a373d76bee863b368a12ffdba59384",class:"issues-header",part:"header"},a("div",{key:"db85f995fb6f1f9fe961ea6726cf82da17fc9c2d",class:"header-content",part:"header-content"},this.heading&&a("h1",{key:"e7b510ecd2039072b384d6dcb531ebf0b091010b",class:"issues-title",part:"title"},this.heading),this.subtitle&&a("p",{key:"323f9a635b6a1c2ca9d955d12dc1925c0be59cf8",class:"issues-subtitle",part:"subtitle"},this.subtitle)))),this.loading&&a("slot",{key:"ba63923aa7cac4b3ab050b423d5f65dcbbe81677",name:"loading"},a("div",{key:"4bf1fc0d367acb0285eb124875c42e541939d388",class:"loading-state",role:"status","aria-label":"Loading issues",part:"loading-state"},a("div",{key:"fa369824bd1cb8e3b5c393613952611658e6919a",class:"loading-skeletons",part:"loading-skeletons"},[1,2,3].map((e=>a("div",{key:e,class:"skeleton-card",part:"skeleton-card"},a("div",{class:"skeleton-content",part:"skeleton-content"},a("div",{class:"skeleton-header",part:"skeleton-header"},a("div",{class:"skeleton-badge",part:"skeleton-badge"}),a("div",{class:"skeleton-timestamp",part:"skeleton-timestamp"})),a("div",{class:"skeleton-main",part:"skeleton-main"},a("div",{class:"skeleton-title",part:"skeleton-title"}),a("div",{class:"skeleton-body",part:"skeleton-body"},a("div",{class:"skeleton-line",part:"skeleton-line"}),a("div",{class:"skeleton-line short",part:"skeleton-line short"})),a("div",{class:"skeleton-repo",part:"skeleton-repo"})),a("div",{class:"skeleton-footer",part:"skeleton-footer"},a("div",{class:"skeleton-upvote",part:"skeleton-upvote"}))))))))),this.error&&a("slot",{key:"5ad8c400e465213de6e9d1f2a4d5e70c86a7ca2d",name:"error"},a("div",{key:"0a1a62f25e9ccac249ea7426cc7839e95a24b60f",class:"error-state",role:"alert",part:"error-state"},a("div",{key:"3286f0ab99dbead8e7949317de510e643bfbc897",class:"error-state-content",part:"error-state-content"},this.renderErrorIcon(),a("h2",{key:"78319f0bbc6cc972bb2a4478134194b0592c13ba",class:"error-state-title",part:"error-title"},"Something went wrong"),a("p",{key:"ba262bf4d991326d36a04667b1109fed008d7cfd",class:"error-state-message",part:"error-message"},this.error)))),!this.loading&&!this.error&&a("div",{key:"adc09c9a78afb9c163d23813eebb23a4c031be52",part:"list-container"},this.renderIssuesList(),this.hasMore&&a("slot",{key:"26010e848f5fc2976f0ab0c1d7f134efb023f173",name:"load-more"},a("div",{key:"adbfb37d368383405dc9edd136ed7c0003b8cb67",class:"load-more-container",part:"load-more-container"},a("feedlog-button",{key:"8d00e17e29dd9148e71e86cb178b9e058f50ce32",onFeedlogClick:this.handleLoadMore,disabled:this.isLoadingMore,variant:"outline",part:"load-more-btn"},this.isLoadingMore?"Loading...":"Load More Issues"))))))}};o.style=":host{display:block;font-family:var(--feedlog-font-family);--feedlog-theme-bg:var(--feedlog-background);--feedlog-gap:var(--feedlog-space-2);--feedlog-padding:var(--feedlog-space-8);--feedlog-min-height:100%}:host(.dark){--feedlog-theme-bg:var(--feedlog-background)}.issues-container{min-height:var(--feedlog-min-height);background-color:var(--feedlog-background, var(--feedlog-theme-bg, #ffffff));padding:var(--feedlog-padding);margin:0 auto;border-radius:var(--feedlog-radius-lg)}.issues-header{margin-bottom:var(--feedlog-space-6);display:flex;align-items:flex-start;justify-content:space-between}.header-content{flex:1}.issues-title{color:var(--feedlog-foreground);margin:0 0 var(--feedlog-space-1) 0;font-size:var(--feedlog-text-xl);font-weight:var(--feedlog-font-semibold);line-height:1.5}.issues-subtitle{color:var(--feedlog-muted-foreground);font-size:var(--feedlog-text-sm);margin:0}.loading-state{padding:0}.loading-skeletons{display:flex;flex-direction:column;gap:var(--feedlog-gap)}.skeleton-card{background-color:var(--feedlog-card);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-radius);box-shadow:var(--feedlog-shadow-sm);position:relative;overflow:hidden}.skeleton-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--feedlog-muted)}.skeleton-content{padding:var(--feedlog-space-5);padding-left:calc(var(--feedlog-space-5) + 3px);display:flex;flex-direction:column;gap:var(--feedlog-space-3)}.skeleton-header{display:flex;align-items:center;justify-content:space-between;gap:var(--feedlog-space-3)}.skeleton-badge{width:4.5rem;height:1.25rem;border-radius:var(--feedlog-radius-sm);background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite}.skeleton-timestamp{width:3rem;height:0.75rem;border-radius:var(--feedlog-radius-sm);background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.2s}.skeleton-main{display:flex;flex-direction:column;gap:var(--feedlog-space-2)}.skeleton-title{height:0.9375rem;border-radius:var(--feedlog-radius-sm);background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.1s;width:85%}.skeleton-body{display:flex;flex-direction:column;gap:var(--feedlog-space-1)}.skeleton-line{height:0.8125rem;border-radius:var(--feedlog-radius-sm);background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.15s;width:100%}.skeleton-line.short{width:70%}.skeleton-repo{width:6rem;height:0.75rem;border-radius:var(--feedlog-radius-sm);background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.25s}.skeleton-footer{display:flex;justify-content:flex-end}.skeleton-upvote{width:2.5rem;height:2rem;border-radius:var(--feedlog-radius);background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.3s}@keyframes skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}.error-state{display:flex;align-items:center;justify-content:center;padding:var(--feedlog-space-10) var(--feedlog-space-8);min-height:12rem}.error-state-content{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:20rem;padding:var(--feedlog-space-8)}.error-icon{color:var(--feedlog-muted-foreground);opacity:0.8;margin-bottom:var(--feedlog-space-4)}.error-state-title{margin:0 0 var(--feedlog-space-2) 0;font-size:var(--feedlog-text-lg);font-weight:var(--feedlog-font-semibold);color:var(--feedlog-foreground);line-height:1.4}.error-state-message{margin:0 0 var(--feedlog-space-5) 0;font-size:var(--feedlog-text-sm);color:var(--feedlog-muted-foreground);line-height:1.5}.load-more-container{display:flex;justify-content:center;padding:var(--feedlog-space-8) 0;gap:var(--feedlog-space-4)}";export{o as feedlog_issues}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,a as i}from"./p-Cu1eYdKa.js";import{p as o}from"./p-Bow7VsVH.js";function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var s=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})})),s}var h,a,u=n(o),l=r(a?h:(a=1,h=self.DOMPurify||(self.DOMPurify=u.default||u)));function c(t){return"string"!=typeof t?"":l.sanitize(t,{USE_PROFILES:{html:!0}})}class d extends Error{constructor(t,e,s){super(t),this.statusCode=e,this.originalError=s,this.name="FeedlogError",Object.setPrototypeOf(this,d.prototype)}}class f extends d{constructor(t){super(t),this.name="FeedlogValidationError",Object.setPrototypeOf(this,f.prototype)}}class p extends d{constructor(t,e,s){super(t,e,s),this.name="FeedlogNetworkError",Object.setPrototypeOf(this,p.prototype)}}class b extends d{constructor(t="Request timed out"){super(t),this.name="FeedlogTimeoutError",Object.setPrototypeOf(this,b.prototype)}}class w{constructor(t){if(this.config={credentials:"include",...t},this.apiKey=this.config.apiKey,!this.apiKey)throw new f("apiKey is required in FeedlogSDKConfig");this.endpoint=this.config.endpoint||"https://api.feedlog.app",this.timeout=this.config.timeout||3e4,this.endpoint=this.endpoint.replace(/\/$/,"")}async fetchIssues(t={}){try{const e=this.buildIssuesUrl(t),s=await this.fetchWithTimeout(e,{method:"GET",headers:this.getAuthHeaders(),credentials:this.config.credentials||"include"});if(!s.ok)throw new p(`Failed to fetch issues: ${s.statusText}`,s.status);const i=await s.json();return this.validateIssuesResponse(i)}catch(t){this.wrapFetchError(t,"Failed to fetch issues")}}async toggleUpvote(t){if(!t||"string"!=typeof t)throw new f("Issue ID is required");try{const e=`${this.endpoint}/api/issues/${encodeURIComponent(t)}/upvote`,s=await this.fetchWithTimeout(e,{method:"POST",headers:this.getAuthHeaders(),credentials:this.config.credentials||"include",body:JSON.stringify({})});if(404===s.status)throw new p("Issue not found",404);if(401===s.status)throw new p("Unauthorized",401);if(403===s.status)throw new p("Forbidden: Domain not allowed for this repository",403);if(!s.ok)throw new p(`Failed to toggle upvote: ${s.statusText}`,s.status);const i=await s.json();return this.validateUpvoteResponse(i)}catch(t){this.wrapFetchError(t,"Failed to toggle upvote")}}buildIssuesUrl(t){const e=new URL(`${this.endpoint}/api/issues`);if(t.repositoryIds){const s=Array.isArray(t.repositoryIds)?t.repositoryIds:[t.repositoryIds];for(const t of s)e.searchParams.append("repositoryIds",t)}if(t.type&&e.searchParams.set("type",t.type),t.sortBy&&e.searchParams.set("sortBy",t.sortBy),t.cursor&&e.searchParams.set("cursor",t.cursor),void 0!==t.limit){const s=Number(t.limit),i=Number.isFinite(s)?Math.max(1,Math.min(100,Math.floor(s))):10;e.searchParams.set("limit",String(i))}return e.toString()}getAuthHeaders(){return{"Content-Type":"application/json","x-api-key":this.apiKey}}wrapFetchError(t,e){if(t instanceof d)throw t;if(t instanceof TypeError&&t.message.includes("fetch"))throw new p("Network error: Unable to reach API",void 0,t);throw new d(`${e}: ${t instanceof Error?t.message:"Unknown error"}`,void 0,t)}async fetchWithTimeout(t,e){const s=new AbortController,i=setTimeout((()=>s.abort()),this.timeout);try{const o=await fetch(t,{...e,signal:s.signal});return clearTimeout(i),o}catch(t){if(clearTimeout(i),t instanceof Error&&"AbortError"===t.name)throw new b(`Request timed out after ${this.timeout}ms`);throw t}}validateIssuesResponse(t){if(!t||"object"!=typeof t)throw new f("Invalid API response: expected object");const e=t;if(!Array.isArray(e.issues))throw new f("Invalid API response: issues must be an array");if(!e.pagination||"object"!=typeof e.pagination)throw new f("Invalid API response: pagination is required");return{issues:e.issues.map((t=>this.validateIssue(t))),pagination:{cursor:e.pagination.cursor,hasMore:Boolean(e.pagination.hasMore)}}}validateIssue(t){if(!t||"object"!=typeof t)throw new f("Invalid issue: expected object");const e=t;if("string"!=typeof e.id)throw new f("Invalid issue: id is required and must be a string");if(!["bug","enhancement"].includes(String(e.type)))throw new f('Invalid issue: type must be "bug" or "enhancement"');if(!["open","in_progress","closed"].includes(String(e.status)))throw new f('Invalid issue: status must be "open", "in_progress", or "closed"');if(!e.repository||"object"!=typeof e.repository)throw new f("Invalid issue: repository is required");const s=e.repository;if("string"!=typeof s.id)throw new f("Invalid issue: repository must have id");const i=null!==e.githubIssueLink&&"string"==typeof e.githubIssueLink?String(e.githubIssueLink):null,o=e.title,r=null!=o&&""!==o?c(String(o)):null,n=e.body,h=null!=n&&""!==n?c(String(n)):null,a=s.name,u=null!=a&&""!==a?String(a):null,l=s.description,d=null!=l&&""!==l?c(String(l)):null,p="number"==typeof e.revision&&Number.isFinite(e.revision)?e.revision:1,b="number"==typeof e.upvoteCount&&Number.isFinite(e.upvoteCount)?e.upvoteCount:0,w="string"==typeof e.updatedAt&&e.updatedAt.length>0?e.updatedAt:(new Date).toISOString(),g="string"==typeof e.createdAt&&e.createdAt.length>0?e.createdAt:(new Date).toISOString();return{id:String(e.id),githubIssueLink:i,type:e.type||"bug",status:e.status||"open",pinnedAt:e.pinnedAt?String(e.pinnedAt):null,revision:p,title:r,body:h,repository:{id:String(s.id),name:u,description:d},updatedAt:w,createdAt:g,upvoteCount:b,hasUpvoted:Boolean(e.hasUpvoted)}}validateUpvoteResponse(t){if(!t||"object"!=typeof t)throw new f("Invalid upvote response: expected object");const e=t;if("boolean"!=typeof e.upvoted)throw new f("Invalid upvote response: upvoted must be a boolean");if("number"!=typeof e.upvoteCount)throw new f("Invalid upvote response: upvoteCount must be a number");if("string"!=typeof e.anonymousUserId)throw new f("Invalid upvote response: anonymousUserId must be a string");return{upvoted:e.upvoted,upvoteCount:e.upvoteCount,anonymousUserId:e.anonymousUserId}}getEndpoint(){return this.endpoint}getTimeout(){return this.timeout}}const g=class{constructor(s){t(this,s),this.feedlogUpvote=e(this,"feedlogUpvote"),this.feedlogError=e(this,"feedlogError"),this.maxWidth="42rem",this.theme="light",this.issues=[],this.loading=!0,this.error=null,this.cursor=null,this.hasMore=!1,this.isLoadingMore=!1,this.sdk=null,this.fetchRequestId=0,this.isDisconnected=!1,this.upvoteRequestIds=new Map,this.handleUpvote=async t=>{if(!this.sdk||this.isDisconnected)return;const{issueId:e,currentUpvoted:s,currentCount:i}=t.detail,o=(this.upvoteRequestIds.get(e)||0)+1;this.upvoteRequestIds.set(e,o),this.issues=this.issues.map((t=>t.id===e?Object.assign(Object.assign({},t),{hasUpvoted:!s,upvoteCount:s?i-1:i+1}):t));try{const t=await this.sdk.toggleUpvote(e);if(this.isDisconnected||this.upvoteRequestIds.get(e)!==o)return;this.issues=this.issues.map((s=>s.id===e?Object.assign(Object.assign({},s),{hasUpvoted:t.upvoted,upvoteCount:t.upvoteCount}):s)),this.feedlogUpvote.emit({issueId:e,upvoted:t.upvoted,upvoteCount:t.upvoteCount})}catch(t){if(this.isDisconnected||this.upvoteRequestIds.get(e)!==o)return;this.issues=this.issues.map((t=>t.id===e?Object.assign(Object.assign({},t),{hasUpvoted:s,upvoteCount:i}):t));const r=t instanceof Error?t.message:"Failed to toggle upvote";this.feedlogError.emit({error:r})}}}componentWillLoad(){if(this.previousType=this.type,this.previousLimit=this.limit,this.previousSortBy=this.sortBy,this.initializeSDK(),!(this.issues.length>0)||this.loading)return this.fetchIssues()}disconnectedCallback(){this.isDisconnected=!0,this.fetchRequestId++}componentDidUpdate(){(this.previousType!==this.type||this.previousLimit!==this.limit||this.previousSortBy!==this.sortBy)&&(this.fetchRequestId++,this.cursor=null,this.hasMore=!1,this.issues=[],this.fetchIssues().catch((()=>{})),this.previousType=this.type,this.previousLimit=this.limit,this.previousSortBy=this.sortBy)}initializeSDK(){try{if(!this.apiKey)throw new Error("API key is required for the Feedlog SDK");this.sdk=new w(Object.assign({apiKey:this.apiKey},this.endpoint&&{endpoint:this.endpoint})),this.error=null}catch(t){const e=t instanceof Error?t.message:"Failed to initialize SDK";this.error=e,this.feedlogError.emit({error:e})}}buildFetchParams(){const t={};return this.type&&(t.type=this.type),this.sortBy&&(t.sortBy=this.sortBy),this.limit&&(t.limit=this.limit),this.cursor&&(t.cursor=this.cursor),t}async fetchIssues(){if(!this.sdk)return;const t=this.fetchRequestId;try{this.loading=!0,this.error=null;const e=this.buildFetchParams(),s=await this.sdk.fetchIssues(e);if(this.isDisconnected||t!==this.fetchRequestId)return;this.issues=s.issues,this.cursor=s.pagination.cursor,this.hasMore=s.pagination.hasMore}catch(e){if(this.isDisconnected||t!==this.fetchRequestId)return;const s=e instanceof Error?e.message:"Couldn't load updates";this.error=s,this.issues=[],this.feedlogError.emit({error:s,code:null==e?void 0:e.statusCode})}finally{this.isDisconnected||t!==this.fetchRequestId||(this.loading=!1,this.isLoadingMore=!1)}}async loadMore(){if(!this.sdk||!this.hasMore||this.isLoadingMore||this.loading)return;const t=this.fetchRequestId;this.isLoadingMore=!0;try{const e=this.buildFetchParams(),s=await this.sdk.fetchIssues(e);if(this.isDisconnected||t!==this.fetchRequestId)return;this.issues=[...this.issues,...s.issues],this.cursor=s.pagination.cursor,this.hasMore=s.pagination.hasMore}catch(e){if(this.isDisconnected||t!==this.fetchRequestId)return;const s=e instanceof Error?e.message:"Failed to load more issues";this.feedlogError.emit({error:s,code:null==e?void 0:e.statusCode})}finally{this.isDisconnected||t!==this.fetchRequestId||(this.isLoadingMore=!1)}}render(){var t,e;const i=null===(e=null===(t=this.el)||void 0===t?void 0:t.style)||void 0===e?void 0:e.getPropertyValue("--feedlog-background");return s("feedlog-issues",{key:"2d9528bb33630664824ab584e10208359d579eb6",style:i?{"--feedlog-background":i}:void 0,issues:this.issues,limit:this.limit,maxWidth:this.maxWidth,theme:this.theme,heading:this.heading,subtitle:this.subtitle,emptyStateTitle:this.emptyStateTitle,emptyStateMessage:this.emptyStateMessage,getIssueUrl:this.getIssueUrl,loading:this.loading,error:this.error,hasMore:this.hasMore,isLoadingMore:this.isLoadingMore,onFeedlogUpvote:this.handleUpvote,onFeedlogLoadMore:async()=>this.loadMore(),part:"base"},s("slot",{key:"efe89b9fd0f337af7930823762296487ebcb758e",name:"header",slot:"header"}),s("slot",{key:"ffebd688ebf25bb464ceefd6a161f7140e03933b",name:"loading",slot:"loading"}),s("slot",{key:"b59010966b6f7768814ba838c05ffd62cfd1c26a",name:"error",slot:"error"}),s("slot",{key:"99b1abfcbb62703b3642fb02d79d8d1488421ee3",name:"empty-state",slot:"empty-state"}),s("slot",{key:"c47c1dc83e8434b8f66d1b42b65e812aa5e1f8ee",name:"load-more",slot:"load-more"}))}get el(){return i(this)}};export{g as feedlog_issues_client}
@@ -60,10 +60,6 @@ export declare class FeedlogIssues {
60
60
  * Required because repository.owner was removed from the API for privacy.
61
61
  */
62
62
  getIssueUrl?: GetIssueUrlFn;
63
- /**
64
- * Internal state for theme
65
- */
66
- currentTheme: 'light' | 'dark';
67
63
  /**
68
64
  * Event emitted when an issue is upvoted
69
65
  */
@@ -76,7 +72,6 @@ export declare class FeedlogIssues {
76
72
  * Event emitted to load more issues
77
73
  */
78
74
  feedlogLoadMore: EventEmitter<void>;
79
- componentWillLoad(): void;
80
75
  private handleUpvote;
81
76
  private handleLoadMore;
82
77
  private renderErrorIcon;
@@ -93,6 +93,7 @@ export declare class FeedlogIssuesClient {
93
93
  disconnectedCallback(): void;
94
94
  componentDidUpdate(): void;
95
95
  private initializeSDK;
96
+ private buildFetchParams;
96
97
  private fetchIssues;
97
98
  private loadMore;
98
99
  private handleUpvote;
@@ -1 +1 @@
1
- export type { Components, JSX } from './components';
1
+ export type * from './components';