@feedlog-ai/webcomponents 0.0.39 → 0.0.42

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 (67) hide show
  1. package/dist/cjs/feedlog-badge.cjs.entry.js +3 -3
  2. package/dist/cjs/feedlog-button_3.cjs.entry.js +9 -9
  3. package/dist/cjs/feedlog-card.cjs.entry.js +3 -3
  4. package/dist/cjs/feedlog-issues-client.cjs.entry.js +3 -3
  5. package/dist/cjs/feedlog-issues.cjs.entry.js +4 -4
  6. package/dist/cjs/feedlog-toolkit.cjs.js +2 -2
  7. package/dist/cjs/{index-prPyjPBk.js → index-CXKBwRlh.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/cjs/{purify.es-ppGw41aq.js → purify.es-CfCgypMZ.js} +15 -4
  10. package/dist/collection/components/feedlog-badge/feedlog-badge.css +45 -35
  11. package/dist/collection/components/feedlog-badge/feedlog-badge.js +1 -1
  12. package/dist/collection/components/feedlog-button/feedlog-button.css +66 -16
  13. package/dist/collection/components/feedlog-button/feedlog-button.js +1 -1
  14. package/dist/collection/components/feedlog-card/feedlog-card.css +24 -22
  15. package/dist/collection/components/feedlog-card/feedlog-card.js +1 -1
  16. package/dist/collection/components/feedlog-issue/feedlog-issue.css +187 -99
  17. package/dist/collection/components/feedlog-issue/feedlog-issue.js +1 -1
  18. package/dist/collection/components/feedlog-issues/feedlog-issues.css +63 -34
  19. package/dist/collection/components/feedlog-issues/feedlog-issues.js +2 -2
  20. package/dist/collection/components/feedlog-issues-client/feedlog-issues-client.js +1 -1
  21. package/dist/collection/components/feedlog-issues-list/feedlog-issues-list.js +3 -3
  22. package/dist/components/feedlog-badge.js +1 -1
  23. package/dist/components/feedlog-button.js +1 -1
  24. package/dist/components/feedlog-card.js +1 -1
  25. package/dist/components/feedlog-issue.js +1 -1
  26. package/dist/components/feedlog-issues-client.js +1 -1
  27. package/dist/components/feedlog-issues-list.js +1 -1
  28. package/dist/components/feedlog-issues.js +1 -1
  29. package/dist/components/index.js +1 -1
  30. package/dist/components/p-DLNSSGDc.js +1 -0
  31. package/dist/components/p-DMdb-G26.js +1 -0
  32. package/dist/components/p-DzATWlAC.js +1 -0
  33. package/dist/components/p-RVHxnHRU.js +1 -0
  34. package/dist/components/p-TX_JzdfG.js +3 -0
  35. package/dist/esm/feedlog-badge.entry.js +3 -3
  36. package/dist/esm/feedlog-button_3.entry.js +9 -9
  37. package/dist/esm/feedlog-card.entry.js +3 -3
  38. package/dist/esm/feedlog-issues-client.entry.js +3 -3
  39. package/dist/esm/feedlog-issues.entry.js +4 -4
  40. package/dist/esm/feedlog-toolkit.js +3 -3
  41. package/dist/esm/{index-Cu1eYdKa.js → index-CgNWSmzU.js} +1 -1
  42. package/dist/esm/loader.js +3 -3
  43. package/dist/esm/{purify.es-Bow7VsVH.js → purify.es-B8AIqnOZ.js} +15 -4
  44. package/dist/feedlog-toolkit/feedlog-toolkit.css +1 -1
  45. package/dist/feedlog-toolkit/feedlog-toolkit.esm.js +1 -1
  46. package/dist/feedlog-toolkit/{p-ca90ade9.entry.js → p-0a9a5af2.entry.js} +1 -1
  47. package/dist/feedlog-toolkit/p-2901a753.entry.js +1 -0
  48. package/dist/feedlog-toolkit/p-32663f65.entry.js +1 -0
  49. package/dist/feedlog-toolkit/p-B8AIqnOZ.js +2 -0
  50. package/dist/feedlog-toolkit/p-CgNWSmzU.js +2 -0
  51. package/dist/feedlog-toolkit/p-a7dcf9b6.entry.js +1 -0
  52. package/dist/feedlog-toolkit/p-da0268a8.entry.js +1 -0
  53. package/dist/types/index.d.ts +1 -1
  54. package/hydrate/index.js +34 -23
  55. package/hydrate/index.mjs +34 -23
  56. package/package.json +7 -4
  57. package/dist/components/p-BoxVrJId.js +0 -1
  58. package/dist/components/p-CvIMO_S7.js +0 -3
  59. package/dist/components/p-DFD585IK.js +0 -1
  60. package/dist/components/p-I6NOP29P.js +0 -1
  61. package/dist/components/p-fDVosM5p.js +0 -1
  62. package/dist/feedlog-toolkit/p-001d7353.entry.js +0 -1
  63. package/dist/feedlog-toolkit/p-556062d0.entry.js +0 -1
  64. package/dist/feedlog-toolkit/p-62554649.entry.js +0 -1
  65. package/dist/feedlog-toolkit/p-Bow7VsVH.js +0 -2
  66. package/dist/feedlog-toolkit/p-Cu1eYdKa.js +0 -2
  67. package/dist/feedlog-toolkit/p-b558fc9f.entry.js +0 -1
@@ -1 +1 @@
1
- const t=':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 e,n,s,o,r,i,l,f,a,c,u,h,d,p,g,b,m,v=Object.create,$=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,x=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,S=t=>{throw TypeError(t)},j=(t,e)=>function(){return e||(0,t[y(t)[0]])((e={exports:{}}).exports,e),e.exports},M=(t,e,n)=>e.has(t)||S("Cannot "+n),k=(t,e,n)=>(M(t,e,"read from private field"),n?n.call(t):e.get(t)),E=(t,e,n)=>e.has(t)?S("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),N=(t,e,n)=>(M(t,e,"write to private field"),e.set(t,n),n),P=(t,e,n)=>(M(t,e,"access private method"),n),R=j({"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=j({"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(A=i+"{"+o.body+"}"+l[a]);else{var b,m,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),$=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),w=v||$,y=o.body.indexOf(",")>=0;if(!w&&!y)return o.post.match(/,(?!,).*\}/)?g(t=o.pre+"{"+o.body+r+o.post):[t];if(w)b=o.body.split(/\.\./);else if(1===(b=c(o.body)).length&&1===(b=g(b[0],!1).map(u)).length)return l.map((function(t){return o.pre+b[0]+t}));if(w){var x=f(b[0]),O=f(b[1]),S=Math.max(b[0].length,b[1].length),j=3==b.length?Math.abs(f(b[2])):1,M=d;O<x&&(j*=-1,M=p);var k=b.some(h);m=[];for(var E=x;M(E,O);E+=j){var N;if($)"\\"===(N=String.fromCharCode(E))&&(N="");else if(N=E+"",k){var P=S-N.length;if(P>0){var R=Array(P+1).join("0");N=E<0?"-"+R+N.slice(1):R+N}}m.push(N)}}else{m=[];for(var W=0;W<b.length;W++)m.push.apply(m,g(b[W],!1))}for(W=0;W<m.length;W++)for(a=0;a<l.length;a++){var A=i+m[W]+l[a];(!e||w||A)&&s.push(A)}}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||{}),C=(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))(C||{}),L="type",I="value",z="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}}))},F=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},T=(t,e)=>e in t,U=(t,e)=>(0,console.error)(t,e),D=new Map,B="s-id",V="sty-id",G="c-id",H="undefined"!=typeof window?window:{},Z=H.HTMLElement||class{},q={l:0,u:"",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)},J=(()=>{try{return!!H.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),Y=!!J&&(()=>!!H.document&&Object.getOwnPropertyDescriptor(H.document.adoptedStyleSheets,"length").writable)(),K=!1,Q=[],X=[],tt=(t,e)=>n=>{t.push(n),K||(K=!0,e&&4&q.l?st(nt):q.raf(nt))},et=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){U(t)}t.length=0},nt=()=>{et(Q),et(X),(K=Q.length>0)&&q.raf(nt)},st=t=>Promise.resolve(void 0).then(t),ot=tt(X,!0),rt=t=>{const e=new URL(t,q.u);return e.origin!==H.location.origin?e.href:e.pathname},it=t=>q.u=t,lt=t=>"object"==(t=typeof t)||"function"===t,ft=((t,e,n)=>(n=null!=t?v(x(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of y(e))O.call(t,n)||undefined===n||$(t,n,{get:()=>e[n],enumerable:!(s=w(e,n))||s.enumerable});return t})($(n,"default",{value:t,enumerable:!0}),t)))(W()),at=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ct={"[: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]},ut=t=>t.replace(/[[\]\\-]/g,"\\$&"),ht=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dt=t=>t.join(""),pt=(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(ct))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(ut(u)+"-"+ut(e)):e===u&&s.push(ut(e)),u="",r++):t.startsWith("-]",r+1)?(s.push(ut(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(s.push(ut(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[ht(t),!1,c-n,!1]}const h="["+(a?"^":"")+dt(s)+"]",d="["+(a?"":"^")+dt(o)+"]";return[s.length&&o.length?"("+h+"|"+d+")":s.length?h:d,l,c-n,!0]},gt=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),bt=new Set(["!","?","+","*","@"]),mt=t=>bt.has(t),vt="(?!\\.)",$t=new Set(["[","."]),wt=new Set(["..","."]),yt=new Set("().*{}+?[]^$\\!"),xt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ot="[^/]",St=Ot+"*?",jt=Ot+"+?",Mt=class t{constructor(t,d,p={}){E(this,h),((t,e,n)=>{((t,e,n)=>{e in t?$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),E(this,e),E(this,n),E(this,s,!1),E(this,o,[]),E(this,r),E(this,i),E(this,l),E(this,f,!1),E(this,a),E(this,c),E(this,u,!1),this.type=t,t&&N(this,n,!0),N(this,r,d),N(this,e,k(this,r)?k(k(this,r),e):this),N(this,a,k(this,e)===this?p:k(k(this,e),a)),N(this,l,k(this,e)===this?[]:k(k(this,e),l)),"!"!==t||k(k(this,e),f)||k(this,l).push(this),N(this,i,k(this,r)?k(k(this,r),o).length:0)}get hasMagic(){if(void 0!==k(this,n))return k(this,n);for(const t of k(this,o))if("string"!=typeof t&&(t.type||t.hasMagic))return N(this,n,!0);return k(this,n)}toString(){return void 0!==k(this,c)?k(this,c):N(this,c,this.type?this.type+"("+k(this,o).map((t=>t+"")).join("|")+")":k(this,o).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&k(n,r)===this))throw Error("invalid part: "+n);k(this,o).push(n)}}toJSON(){var t;const n=null===this.type?k(this,o).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...k(this,o).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===k(this,e)||k(k(this,e),f)&&"!"===(null==(t=k(this,r))?void 0:t.type))&&n.push({}),n}isStart(){var n;if(k(this,e)===this)return!0;if(!(null==(n=k(this,r))?void 0:n.isStart()))return!1;if(0===k(this,i))return!0;const s=k(this,r);for(let e=0;e<k(this,i);e++){const n=k(s,o)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,n,s;if(k(this,e)===this)return!0;if("!"===(null==(t=k(this,r))?void 0:t.type))return!0;if(!(null==(n=k(this,r))?void 0:n.isEnd()))return!1;if(!this.type)return null==(s=k(this,r))?void 0:s.isEnd();const l=k(this,r)?k(k(this,r),o).length:0;return k(this,i)===l-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 k(this,o))n.copyIn(t);return n}static fromGlob(e,n={}){var s;const o=new t(null,void 0,n);return P(s=t,p,g).call(s,e,o,0,n),o}toMMPattern(){if(this!==k(this,e))return k(this,e).toMMPattern();const t=""+this,[s,o,r,i]=this.toRegExpSource();if(!(r||k(this,n)||k(this,a).nocase&&!k(this,a).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return o;const l=(k(this,a).nocase?"i":"")+(i?"u":"");return Object.assign(RegExp(`^${s}$`,l),{_src:s,_glob:t})}get options(){return k(this,a)}toRegExpSource(i){var l;const c=null!=i?i:!!k(this,a).dot;if(k(this,e)===this&&P(this,h,d).call(this),!this.type){const a=this.isStart()&&this.isEnd(),u=k(this,o).map((e=>{var o;const[r,l,f,c]="string"==typeof e?P(o=t,p,m).call(o,e,k(this,n),a):e.toRegExpSource(i);return N(this,n,k(this,n)||f),N(this,s,k(this,s)||c),r})).join("");let h="";if(this.isStart()&&"string"==typeof k(this,o)[0]&&(1!==k(this,o).length||!wt.has(k(this,o)[0]))){const t=$t,e=c&&t.has(u.charAt(0))||u.startsWith("\\.")&&t.has(u.charAt(2))||u.startsWith("\\.\\.")&&t.has(u.charAt(4)),n=!c&&!i&&t.has(u.charAt(0));h=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?vt:""}let d="";return this.isEnd()&&k(k(this,e),f)&&"!"===(null==(l=k(this,r))?void 0:l.type)&&(d="(?:$|\\/)"),[h+u+d,gt(u),N(this,n,!!k(this,n)),k(this,s)]}const g="*"===this.type||"+"===this.type,v="!"===this.type?"(?:(?!(?:":"(?:";let $=P(this,h,b).call(this,c);if(this.isStart()&&this.isEnd()&&!$&&"!"!==this.type){const t=""+this;return N(this,o,[t]),this.type=null,N(this,n,void 0),[t,gt(""+this),!1,!1]}let w=!g||i||c?"":P(this,h,b).call(this,!0);w===$&&(w=""),w&&($=`(?:${$})(?:${w})*?`);let y="";return y="!"===this.type&&k(this,u)?(this.isStart()&&!c?vt:"")+jt:v+$+("!"===this.type?"))"+(!this.isStart()||c||i?"":vt)+St+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&w?")":"*"===this.type&&w?")?":")"+this.type),[y,gt($),N(this,n,!!k(this,n)),k(this,s)]}};e=new WeakMap,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 WeakSet,d=function(){if(this!==k(this,e))throw Error("should only call on root");if(k(this,f))return this;let t;for(N(this,f,!0);t=k(this,l).pop();){if("!"!==t.type)continue;let e=t,n=k(e,r);for(;n;){for(let s=k(e,i)+1;!n.type&&s<k(n,o).length;s++)for(const e of k(t,o)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(k(n,o)[s])}e=n,n=k(e,r)}}return this},p=new WeakSet,g=function(t,e,s,r){var i,l;let f=!1,a=!1,c=-1,h=!1;if(null===e.type){let n=s,o="";for(;n<t.length;){const s=t.charAt(n++);if(f||"\\"===s)f=!f,o+=s;else if(a)n===c+1?"^"!==s&&"!"!==s||(h=!0):"]"!==s||n===c+2&&h||(a=!1),o+=s;else if("["!==s)if(r.noext||!mt(s)||"("!==t.charAt(n))o+=s;else{e.push(o),o="";const l=new Mt(s,e);n=P(i=Mt,p,g).call(i,t,l,n,r),e.push(l)}else a=!0,c=n,h=!1,o+=s}return e.push(o),n}let d=s+1,b=new Mt(null,e);const m=[];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||(h=!0):"]"!==n||d===c+2&&h||(a=!1),v+=n;else if("["!==n)if(mt(n)&&"("===t.charAt(d)){b.push(v),v="";const e=new Mt(n,b);b.push(e),d=P(l=Mt,p,g).call(l,t,e,d,r)}else if("|"!==n){if(")"===n)return""===v&&0===k(e,o).length&&N(e,u,!0),b.push(v),v="",e.push(...m,b),d;v+=n}else b.push(v),v="",m.push(b),b=new Mt(null,e);else a=!0,c=d,h=!1,v+=n}return e.type=null,N(e,n,void 0),N(e,o,[t.substring(s-1)]),d},b=function(t){return k(this,o).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,o,r,i]=e.toRegExpSource(t);return N(this,s,k(this,s)||i),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},m=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+=(yt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,f]=pt(t,i);if(l){o+=n,r=r||s,i+=l-1,e=e||f;continue}}"*"!==l?"?"!==l?o+=xt(l):(o+=Ot,e=!0):(o+=n&&"*"===t?jt:St,e=!0)}else i===t.length-1?o+="\\\\":s=!0}return[o,gt(t),!!e,r]},E(Mt,p);var kt=Mt,Et=(t,e,n={})=>(at(e),!(!n.nocomment&&"#"===e.charAt(0))&&new te(e,n).match(t)),Nt=/^\*+([^+@!?\*\[\(]*)$/,Pt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Rt=t=>e=>e.endsWith(t),Wt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),At=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Ct=/^\*+\.\*+$/,Lt=t=>!t.startsWith(".")&&t.includes("."),It=t=>"."!==t&&".."!==t&&t.includes("."),zt=/^\.\*+$/,_t=t=>"."!==t&&".."!==t&&t.startsWith("."),Ft=/^\*+$/,Tt=t=>0!==t.length&&!t.startsWith("."),Ut=t=>0!==t.length&&"."!==t&&".."!==t,Dt=/^\?+([^+@!?\*\[\(]*)?$/,Bt=([t,e=""])=>{const n=Zt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Vt=([t,e=""])=>{const n=qt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Gt=([t,e=""])=>{const n=qt([t]);return e?t=>n(t)&&t.endsWith(e):n},Ht=([t,e=""])=>{const n=Zt([t]);return e?t=>n(t)&&t.endsWith(e):n},Zt=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},qt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Jt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";Et.sep="win32"===Jt?"\\":"/";var Yt=Symbol("globstar **");Et.GLOBSTAR=Yt,Et.filter=(t,e={})=>n=>Et(n,t,e);var Kt=(t,e={})=>Object.assign({},t,e);Et.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Et;const e=Et;return Object.assign(((n,s,o={})=>e(n,s,Kt(t,o))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Kt(t,n))}static defaults(n){return e.defaults(Kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Kt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Kt(t,s))}},unescape:(n,s={})=>e.unescape(n,Kt(t,s)),escape:(n,s={})=>e.escape(n,Kt(t,s)),filter:(n,s={})=>e.filter(n,Kt(t,s)),defaults:n=>e.defaults(Kt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Kt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Kt(t,s)),match:(n,s,o={})=>e.match(n,s,Kt(t,o)),sep:e.sep,GLOBSTAR:Yt})};var Qt=(t,e={})=>(at(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ft.default)(t));Et.braceExpand=Qt,Et.makeRe=(t,e={})=>new te(t,e).makeRe(),Et.match=(t,e,n={})=>{const s=new te(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var Xt=/[?*]|[+@!]\(.*?\)|\[|\]/,te=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){at(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Jt,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]&&Xt.test(t[2])||Xt.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===Yt){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 Qt(this.pattern,this.options)}parse(t){at(t);const e=this.options;if("**"===t)return Yt;if(""===t)return"";let n,s=null;(n=t.match(Ft))?s=e.dot?Ut:Tt:(n=t.match(Nt))?s=(e.nocase?e.dot?At:Wt:e.dot?Rt:Pt)(n[1]):(n=t.match(Dt))?s=(e.nocase?e.dot?Vt:Bt:e.dot?Gt:Ht)(n):(n=t.match(Ct))?s=e.dot?It:Lt:(n=t.match(zt))&&(s=_t);const o=kt.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===Yt?Yt:t._src}));return e.forEach(((t,s)=>{const o=e[s+1],r=e[s-1];t===Yt&&r!==Yt&&(void 0===r?void 0!==o&&o!==Yt?e[s+1]="(?:\\/|"+n+"\\/)?"+o:e[s]=n:void 0===o?e[s-1]=r+"(?:\\/|"+n+")?":o!==Yt&&(e[s-1]=r+"(?:\\/|\\/"+n+"\\/)"+o,e[s+1]=Yt))})),e.filter((t=>t!==Yt)).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 Et.defaults(t).Minimatch}};Et.AST=kt,Et.Minimatch=te,Et.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),Et.unescape=gt;var ee=class t{static fromLocalValue(e){const n=e[L],s=I in e?e[I]: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(L))return!1;const e=t[L];return!!Object.values({...A,...C}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(I))}};((t,e)=>{for(var n in e)$(t,n,{get:e[n],enumerable:!0})})({},{err:()=>se,map:()=>oe,ok:()=>ne,unwrap:()=>ie,unwrapErr:()=>le});var ne=t=>({isOk:!0,isErr:!1,value:t}),se=t=>({isOk:!1,isErr:!0,value:t});function oe(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>ne(t))):ne(n)}if(t.isErr)return se(t.value);throw"should never get here"}var re,ie=t=>{if(t.isOk)return t.value;throw t.value},le=t=>{if(t.isErr)return t.value;throw t.value};function fe(){var e;const n=this.attachShadow({mode:"open"});if(void 0===re&&(re=null!=(e=function(t){if(!J)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),re)Y?n.adoptedStyleSheets.push(re):n.adoptedStyleSheets=[...n.adoptedStyleSheets,re];else if(!J){const e=document.createElement("style");e.innerHTML=t,n.prepend(e)}}var ae=(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=ce(r,"appendChild");if(void 0!==s){o["s-oo"]=s;const t=ce(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 ce(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 ue=new WeakMap,he=(t,e,n)=>{let s=D.get(t);J&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,D.set(t,s)},de=(t,e)=>{var n,s,o;const r=pe(e),i=D.get(r);if(!H.document)return r;if(t=11===t.nodeType?t:H.document,i)if("string"==typeof i){let o,l=ue.get(t=t.head||t);l||ue.set(t,l=new Set);const f=t.querySelector(`[${V}="${r}"]`);if(f)f.innerHTML=i;else if(!l.has(r)){o=H.document.createElement("style"),o.innerHTML=i;const f=null!=(n=q.h)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=H.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=f&&o.setAttribute("nonce",f),!(1&e.l))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(J){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(i),Y?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.l&&t.insertBefore(o,null),4&e.l&&(o.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(r)}}else{let e=ue.get(t);if(e||ue.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)}Y?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(r)}}return r},pe=t=>"sc-"+t.p,ge=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),be=(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&&!lt(s))&&(s+=""),r&&i?l[l.length-1].m+=s:l.push(r?me(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=me(t,null);return a.v=e,l.length>0&&(a.$=l),a.O=o,a},me=(t,e)=>({l:0,S:t,m:e,j:null,$:null,v:null,O:null}),ve={},$e=(t,e,n,s,o,r,i,l=[])=>{let f,a,c,u;if(1===r.nodeType){if(f=r.getAttribute(G),f&&(a=f.split("."),a[0]===i||"0"===a[0])){c=ye({l:0,M:a[0],k:a[1],N:a[2],P:a[3],S:r.tagName.toLowerCase(),j:r,v:{class:r.className||""}}),e.push(c),r.removeAttribute(G),t.$||(t.$=[]);const o=c.j.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===c.S&&xe(o,a[2],c,r,t,e,n,s,l),c.j["s-sn"]=o,c.j.removeAttribute("s-sn")),void 0!==c.P&&(t.$[c.P]=c),t=c,s&&"0"===c.N&&(s[c.P]=c.j)}if(r.shadowRoot)for(u=r.shadowRoot.childNodes.length-1;u>=0;u--)$e(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--)$e(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=ye({M:a[1],k:a[2],N:a[3],P:a[4]||"0",j:r,v:null,$:null,O:null,R:null,S:null,m:null}),"t"===f?(c.j=Se(r,3),c.j&&3===c.j.nodeType&&(c.m=c.j.textContent,e.push(c),r.remove(),i===c.M&&(t.$||(t.$=[]),t.$[c.P]=c),s&&"0"===c.N&&(s[c.P]=c.j))):"c"===f?(c.j=Se(r,8),c.j&&8===c.j.nodeType&&(e.push(c),r.remove())):c.M===i&&("s"===f?xe(r["s-sn"]=a[5]||"",a[2],c,r,t,e,n,s,l):"r"===f&&s&&r.remove()));else if(t&&"style"===t.S){const e=me(null,r.textContent);e.j=r,e.P="0",t.$=[e]}return t},we=(t,e)=>{if(1===t.nodeType){const n=t[B]||t.getAttribute(B);n&&e.set(n,t);let s=0;if(t.shadowRoot)for(;s<t.shadowRoot.childNodes.length;s++)we(t.shadowRoot.childNodes[s],e);const o=t.__childNodes||t.childNodes;for(s=0;s<o.length;s++)we(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])}},ye=t=>({l:0,M:null,k:null,N:null,P:"0",j:null,v:null,$:null,O:null,R:null,S:null,m:null,...t});function xe(t,e,n,s,o,r,i,l,f){s["s-sr"]=!0,n.R=t||null,n.S="slot";const a=(null==o?void 0:o.j)?o.j["s-id"]||o.j.getAttribute("s-id"):"";if(l&&H.document){const r=n.j=H.document.createElement(n.S);n.R&&n.j.setAttribute("name",t),o.j.shadowRoot&&a&&a!==n.M?ce(o.j,"insertBefore")(r,ce(o.j,"children")[0]):ce(ce(s,"parentNode"),"insertBefore")(r,s),Oe(f,e,t,s,n.M),s.remove(),"0"===n.N&&(l[n.P]=n.j)}else{const r=n.j,i=a&&a!==n.M&&o.j.shadowRoot;Oe(f,e,t,s,i?a:n.M),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.j.insertBefore(r,o.j.children[0])}r.push(n),i.push(n),o.$||(o.$=[]),o.$[n.P]=n}var Oe=(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.")))},Se=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},je=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};je("::slotted"),je(":host"),je(":host-context");var Me,ke=(t,e)=>"string"==typeof t&&t.startsWith(z)?t=function(t){return"string"==typeof t&&t.startsWith(z)?ee.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||lt(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,Ee=(t,e)=>{const n=t;return{emit:t=>Ne(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Ne=(t,e,n)=>{const s=q.ce(e,n);return t.dispatchEvent(s),s},Pe=(t,e,n,s,o,r,i)=>{if(n===s)return;let l=T(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,o=We(n);let r=We(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(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const i=lt(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):T(H,f)?f.slice(2):f[2]+e.slice(3),n||s){const o=e.endsWith(Ae);e=e.replace(Ce,""),n&&q.rel(t,e,n,o),s&&q.ael(t,e,s,o)}},Re=/\s/,We=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Re):[]),Ae="Capture",Ce=RegExp(Ae+"$"),Le=(t,e,n,s)=>{const o=11===e.j.nodeType&&e.j.host?e.j.host:e.j,r=t&&t.v||{},i=e.v||{};for(const t of Ie(Object.keys(r)))t in i||Pe(o,t,r[t],void 0,n,e.l,s);for(const t of Ie(Object.keys(i)))Pe(o,t,r[t],i[t],n,e.l,s)};function Ie(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ze=!1,_e=(t,e,n)=>{const s=e.$[n];let o,r,i=0;if(null!==s.m)o=s.j=H.document.createTextNode(s.m);else{if(ze||(ze="svg"===s.S),!H.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.j=H.document.createElementNS(ze?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.S),ze&&"foreignObject"===s.S&&(ze=!1),Le(null,s,ze),s.$){const e="template"===s.S?o.content:o;for(i=0;i<s.$.length;++i)r=_e(t,s,i),r&&e.appendChild(r)}"svg"===s.S?ze=!1:"foreignObject"===o.tagName&&(ze=!0)}return o["s-hn"]=Me,o},Fe=(t,e,n,s,o,r)=>{let i,l=t;for(l.shadowRoot&&l.tagName===Me&&(l=l.shadowRoot),"template"===n.S&&(l=l.content);o<=r;++o)s[o]&&(i=_e(null,n,o),i&&(s[o].j=i,Be(l,i,e)))},Te=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.j;t&&t.remove()}}},Ue=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.O&&e.O&&(t.O=e.O),!0):t.O===e.O),De=(t,e,n=!1)=>{const s=e.j=t.j,o=t.$,r=e.$,i=e.S,l=e.m;null===l?(Le(t,e,ze="svg"===i||"foreignObject"!==i&&ze,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],b=s[p];const m="template"===n.S?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==b)b=s[--p];else if(Ue(h,g,o))De(h,g,o),h=e[++l],g=s[++f];else if(Ue(d,b,o))De(d,b,o),d=e[--u],b=s[--p];else if(Ue(h,b,o))De(h,b,o),Be(m,h.j,d.j.nextSibling),h=e[++l],b=s[--p];else if(Ue(d,g,o))De(d,g,o),Be(m,d.j,h.j),d=e[--u],g=s[++f];else{for(a=-1,c=l;c<=u;++c)if(e[c]&&null!==e[c].O&&e[c].O===g.O){a=c;break}a>=0?(i=e[a],i.S!==g.S?r=_e(e&&e[f],n,a):(De(i,g,o),e[a]=void 0,r=i.j),g=s[++f]):(r=_e(e&&e[f],n,f),g=s[++f]),r&&Be(h.j.parentNode,r,h.j)}l>u?Fe(t,null==s[p+1]?null:s[p+1].j,n,s,f,p):f>p&&Te(e,l,u)})(s,o,e,r,n):null!==r?(null!==t.m&&(s.textContent=""),Fe(s,null,e,r,0,r.length-1)):n||null===o?n&&null!==o&&null===r&&(e.$=o):Te(o,0,o.length-1),ze&&"svg"===i&&(ze=!1)):t.m!==l&&(s.data=l)},Be=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Ve=(t,e,n=!1)=>{const s=t.$hostElement$,o=t.W||me(null,null),r=(t=>t&&t.S===ve)(e)?e:be(null,null,e);if(Me=s.tagName,n&&r.v)for(const t of Object.keys(r.v))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.v[t]=s[t]);r.S=null,r.l|=4,t.W=r,r.j=o.j=s.shadowRoot||s,De(o,r,n)},Ge=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.A=()=>{e["s-p"].splice(n-1,1),s()})))}},He=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);Ge(t,t.C);const n=()=>Ze(t,e);if(!e)return ot(n);queueMicrotask((()=>{n()}))},Ze=(t,e)=>{const n=t.$hostElement$,s=n;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 o=tn(s,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=qe(o,(()=>tn(s,"componentWillRender",void 0,n))),qe(o,(()=>Ye(t,s,e)))},qe=(t,e)=>Je(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Je=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ye=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.l,o=de(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);Ke(t,e,o,n),r&&(r.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(s=o["s-p"])?s:[],n=()=>Qe(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},Ke=(t,e,n,s)=>{try{e=e.render(),t.l&=-17,t.l|=2,Ve(t,e,s)}catch(e){U(e,t.$hostElement$)}return null},Qe=t=>{const e=t.$hostElement$,n=e,s=t.C;tn(n,"componentDidRender",void 0,e),64&t.l?tn(n,"componentDidUpdate",void 0,e):(t.l|=64,en(e),tn(n,"componentDidLoad",void 0,e),t.L(e),s||Xe()),t.A&&(t.A(),t.A=void 0),512&t.l&&st((()=>He(t,!1))),t.l&=-517},Xe=()=>{var t;st((()=>Ne(H,"appload",{detail:{namespace:"feedlog-toolkit"}}))),(null==(t=q.I)?void 0:t.size)&&q.I.clear()},tn=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){U(t,s)}},en=t=>t.classList.add("hydrated"),nn=(t,e,n,s)=>{const o=F(t);if(!o)return;const r=t,i=o.i.get(e),l=o.l,f=r;if(!((n=ke(n,s.t[e][0]))===i||Number.isNaN(i)&&Number.isNaN(n))){if(o.i.set(e,n),s._){const t=s._[e];t&&t.map((t=>{try{const[[s,r]]=Object.entries(t);(128&l||1&r)&&(f?f[s](n,i,e):o.F.push((()=>{o.T[s](n,i,e)})))}catch(t){U(t,r)}}))}if(2==(18&l)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,i,e))return;He(o,!1)}}},sn=(t,e)=>{var n,s;const o=t.prototype;{t.watchers&&!e._&&(e._=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.D&&(e.D=t.serializers);const r=Object.entries(null!=(n=e.t)?n:{});r.map((([t,[n]])=>{if(31&n||32&n){const{get:s,set:r}=Object.getOwnPropertyDescriptor(o,t)||{};s&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return s?s.apply(this):((t,e)=>F(this).i.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(s){const o=F(this);if(o){if(r)return void 0===(32&n?this[t]:o.$hostElement$[t])&&o.i.get(t)&&(s=o.i.get(t)),r.call(this,ke(s,n)),void nn(this,t,s=32&n?this[t]:o.$hostElement$[t],e);nn(this,t,s,e)}}})}}));{const n=new Map;o.attributeChangedCallback=function(t,s,i){q.jmp((()=>{var l;const f=n.get(t),a=F(this);if(this.hasOwnProperty(f),o.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==i)return;if(null==f){const n=null==a?void 0:a.l;if(a&&n&&!(8&n)&&i!==s){const o=this,r=null==(l=e._)?void 0:l[t];null==r||r.forEach((e=>{const[[r,l]]=Object.entries(e);null!=o[r]&&(128&n||1&l)&&o[r].call(o,i,s,t)}))}return}const c=r.find((([t])=>t===f));c&&4&c[1][0]&&(i=null!==i&&"false"!==i);const u=Object.getOwnPropertyDescriptor(o,f);i==this[f]||u.get&&!u.set||(this[f]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e._)?s:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},on=(t,e)=>{const n={l:e[0],p:e[1]};n.t=e[2],n._=t._,n.U=t.U,n.D=t.D,(()=>{if(!H.document)return;const t=H.document.querySelectorAll(`[${V}]`);let e=0;for(;e<t.length;e++)he(t[e].getAttribute(V),ge(t[e].innerHTML),!0)})();const s=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,o:e,i:new Map,B:new Map};n.V=new Promise((t=>n.L=t)),t["s-p"]=[],t["s-rc"]=[];const s=n;t.__stencil__getHostRef=()=>s,512&e.l&&_(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!F(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&q.l)){const e=F(t);if(!e)return;const n=e.o,s=()=>{};if(1&e.l)(null==e?void 0:e.T)||(null==e?void 0:e.V)&&e.V.then((()=>{}));else{let s;if(e.l|=1,s=t.getAttribute(B),s){if(1&n.l){const e=de(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=me(e,null);h.j=t,!H.document||q.I&&q.I.size||we(H.document.body,q.I=new Map),t[B]=n,t.removeAttribute(B),s.W=$e(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.M+"."+g.k,s=q.I.get(n),r=g.j;if(f){if((null==(o=g.S)?void 0:(""+o).includes("-"))&&"slot-fb"!==g.S&&!g.j.shadowRoot){const e=F(g.j);if(e){const n=pe(e.o),s=H.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else r["s-hn"]=e.toUpperCase(),"slot"===g.S&&(r["s-cr"]=t["s-cr"]);"slot"===g.S&&(g.R=g.j["s-sn"]||g.j.name||null,g.$?(g.l|=2,g.j.childNodes.length||g.$.forEach((t=>{g.j.appendChild(t.j)}))):g.l|=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.k))),s&&!s["s-id"]&&q.I.delete(n)}const b=[],m=c.length;let v,$,w,y,x=0,O=0;for(;x<m;x++)if(v=c[x],v&&v.length)for(w=v.length,$=0;$<w;$++){if(y=v[$],b[y.hostId]||(b[y.hostId]=q.I.get(y.hostId)),!b[y.hostId])continue;const t=b[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(i=null==(r=v[$-1])?void 0:r.node)?void 0:i.nextSibling),t.shadowRoot&&f||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),ae(y.node,y.slot,0,y.node["s-oo"]||O),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),O=(y.node["s-oo"]||O)+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.p,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"]){Ge(e,e.C=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.l)&&(e.l|=32,s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),s&&s.style)){let t;"string"==typeof s.style&&(t=s.style);const e=pe(n);if(!D.has(e)){const s=()=>{};he(e,t,!!(1&n.l)),s()}}const o=e.C,r=()=>He(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(t,e,n)}s()}})(this),s&&s.call(this)},disconnectedCallback(){(async t=>{ue.has(t)&&ue.delete(t),t.shadowRoot&&ue.has(t.shadowRoot)&&ue.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else fe.call(this,n)}}),t.is=n.p,sn(t,n)},rn=t=>q.h=t,ln=t=>Object.assign(q,t);function fn(t,e){Ve({$hostElement$:e},t)}function an(t){return t}export{Z as H,ve as a,Ee as c,rt as getAssetPath,be as h,on as p,fn as render,it as setAssetPath,rn as setNonce,ln as setPlatformOptions,an as t}
1
+ const t=":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)}";var e,n,s,o,i,r,l,f,c,u,h,a,d,p,g,v,$,b=Object.create,m=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,k=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,j=t=>{throw TypeError(t)},S=(t,e)=>function(){return e||(0,t[y(t)[0]])((e={exports:{}}).exports,e),e.exports},M=(t,e,n)=>e.has(t)||j("Cannot "+n),x=(t,e,n)=>(M(t,e,"read from private field"),n?n.call(t):e.get(t)),E=(t,e,n)=>e.has(t)?j("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),N=(t,e,n)=>(M(t,e,"write to private field"),e.set(t,n),n),P=(t,e,n)=>(M(t,e,"access private method"),n),R=S({"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 i=o(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[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,i,r,l,f=n.indexOf(t),c=n.indexOf(e,f+1),u=f;if(f>=0&&c>0){if(t===e)return[f,c];for(s=[],i=n.length;u>=0&&!l;)u==f?(s.push(u),f=n.indexOf(t,u+1)):1==s.length?l=[s.pop(),c]:((o=s.pop())<i&&(i=o,r=c),c=n.indexOf(e,u+1)),u=f<c&&f>=0?f:c;s.length&&(l=[i,r])}return l}e.exports=n,n.range=o}}),W=S({"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(i).split("\\,").join(r).split("\\.").join(l)}(t),!0).map(c)):[]};var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",r="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function f(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(s).join("\\").split(o).join("{").split(i).join("}").split(r).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],s=n("{","}",t);if(!s)return t.split(",");var o=s.body,i=s.post,r=s.pre.split(",");r[r.length-1]+="{"+o+"}";var l=u(i);return i.length&&(r[r.length-1]+=l.shift(),r.push.apply(r,l)),e.push.apply(e,r),e}function h(t){return"{"+t+"}"}function a(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 r=o.pre,l=o.post.length?g(o.post,!1):[""];if(/\$$/.test(o.pre))for(var c=0;c<l.length;c++)s.push(A=r+"{"+o.body+"}"+l[c]);else{var v,$,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),m=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),w=b||m,y=o.body.indexOf(",")>=0;if(!w&&!y)return o.post.match(/,(?!,).*\}/)?g(t=o.pre+"{"+o.body+i+o.post):[t];if(w)v=o.body.split(/\.\./);else if(1===(v=u(o.body)).length&&1===(v=g(v[0],!1).map(h)).length)return l.map((function(t){return o.pre+v[0]+t}));if(w){var k=f(v[0]),O=f(v[1]),j=Math.max(v[0].length,v[1].length),S=3==v.length?Math.abs(f(v[2])):1,M=d;O<k&&(S*=-1,M=p);var x=v.some(a);$=[];for(var E=k;M(E,O);E+=S){var N;if(m)"\\"===(N=String.fromCharCode(E))&&(N="");else if(N=E+"",x){var P=j-N.length;if(P>0){var R=Array(P+1).join("0");N=E<0?"-"+R+N.slice(1):R+N}}$.push(N)}}else{$=[];for(var W=0;W<v.length;W++)$.push.apply($,g(v[W],!1))}for(W=0;W<$.length;W++)for(c=0;c<l.length;c++){var A=r+$[W]+l[c];(!e||w||A)&&s.push(A)}}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||{}),C="type",z="value",I="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}}))},F=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},T=(t,e)=>e in t,D=(t,e)=>(0,console.error)(t,e),U=new Map,V="s-id",B="sty-id",G="c-id",Z="undefined"!=typeof window?window:{},H=Z.HTMLElement||class{},q={l:0,u:"",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)},J=(()=>{try{return!!Z.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),Y=!!J&&(()=>!!Z.document&&Object.getOwnPropertyDescriptor(Z.document.adoptedStyleSheets,"length").writable)(),K=!1,Q=[],X=[],tt=(t,e)=>n=>{t.push(n),K||(K=!0,e&&4&q.l?st(nt):q.raf(nt))},et=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){D(t)}t.length=0},nt=()=>{et(Q),et(X),(K=Q.length>0)&&q.raf(nt)},st=t=>Promise.resolve(void 0).then(t),ot=tt(X,!0),it=t=>{const e=new URL(t,q.u);return e.origin!==Z.location.origin?e.href:e.pathname},rt=t=>q.u=t,lt=t=>"object"==(t=typeof t)||"function"===t,ft=((t,e,n)=>(n=null!=t?b(k(t)):{},((t,e,n,s)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of y(e))O.call(t,n)||undefined===n||m(t,n,{get:()=>e[n],enumerable:!(s=w(e,n))||s.enumerable});return t})(m(n,"default",{value:t,enumerable:!0}),t)))(W()),ct=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},ut={"[: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]},ht=t=>t.replace(/[[\]\\-]/g,"\\$&"),at=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dt=t=>t.join(""),pt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw Error("not in a brace expression");const s=[],o=[];let i=n+1,r=!1,l=!1,f=!1,c=!1,u=n,h="";t:for(;i<t.length;){const e=t.charAt(i);if("!"!==e&&"^"!==e||i!==n+1){if("]"===e&&r&&!f){u=i+1;break}if(r=!0,"\\"!==e||f){if("["===e&&!f)for(const[e,[r,f,c]]of Object.entries(ut))if(t.startsWith(e,i)){if(h)return["$.",!1,t.length-n,!0];i+=e.length,c?o.push(r):s.push(r),l=l||f;continue t}f=!1,h?(e>h?s.push(ht(h)+"-"+ht(e)):e===h&&s.push(ht(e)),h="",i++):t.startsWith("-]",i+1)?(s.push(ht(e+"-")),i+=2):t.startsWith("-",i+1)?(h=e,i+=2):(s.push(ht(e)),i++)}else f=!0,i++}else c=!0,i++}if(u<i)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])&&!c){const t=2===s[0].length?s[0].slice(-1):s[0];return[at(t),!1,u-n,!1]}const a="["+(c?"^":"")+dt(s)+"]",d="["+(c?"":"^")+dt(o)+"]";return[s.length&&o.length?"("+a+"|"+d+")":s.length?a:d,l,u-n,!0]},gt=(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),bt="(?!\\.)",mt=new Set(["[","."]),wt=new Set(["..","."]),yt=new Set("().*{}+?[]^$\\!"),kt=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ot="[^/]",jt=Ot+"*?",St=Ot+"+?",Mt=class t{constructor(t,d,p={}){E(this,a),((t,e,n)=>{((t,e,n)=>{e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,e+"",n)})(this,"type"),E(this,e),E(this,n),E(this,s,!1),E(this,o,[]),E(this,i),E(this,r),E(this,l),E(this,f,!1),E(this,c),E(this,u),E(this,h,!1),this.type=t,t&&N(this,n,!0),N(this,i,d),N(this,e,x(this,i)?x(x(this,i),e):this),N(this,c,x(this,e)===this?p:x(x(this,e),c)),N(this,l,x(this,e)===this?[]:x(x(this,e),l)),"!"!==t||x(x(this,e),f)||x(this,l).push(this),N(this,r,x(this,i)?x(x(this,i),o).length:0)}get hasMagic(){if(void 0!==x(this,n))return x(this,n);for(const t of x(this,o))if("string"!=typeof t&&(t.type||t.hasMagic))return N(this,n,!0);return x(this,n)}toString(){return void 0!==x(this,u)?x(this,u):N(this,u,this.type?this.type+"("+x(this,o).map((t=>t+"")).join("|")+")":x(this,o).map((t=>t+"")).join(""))}push(...e){for(const n of e)if(""!==n){if("string"!=typeof n&&!(n instanceof t&&x(n,i)===this))throw Error("invalid part: "+n);x(this,o).push(n)}}toJSON(){var t;const n=null===this.type?x(this,o).slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...x(this,o).map((t=>t.toJSON()))];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===x(this,e)||x(x(this,e),f)&&"!"===(null==(t=x(this,i))?void 0:t.type))&&n.push({}),n}isStart(){var n;if(x(this,e)===this)return!0;if(!(null==(n=x(this,i))?void 0:n.isStart()))return!1;if(0===x(this,r))return!0;const s=x(this,i);for(let e=0;e<x(this,r);e++){const n=x(s,o)[e];if(!(n instanceof t&&"!"===n.type))return!1}return!0}isEnd(){var t,n,s;if(x(this,e)===this)return!0;if("!"===(null==(t=x(this,i))?void 0:t.type))return!0;if(!(null==(n=x(this,i))?void 0:n.isEnd()))return!1;if(!this.type)return null==(s=x(this,i))?void 0:s.isEnd();const l=x(this,i)?x(x(this,i),o).length:0;return x(this,r)===l-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 x(this,o))n.copyIn(t);return n}static fromGlob(e,n={}){var s;const o=new t(null,void 0,n);return P(s=t,p,g).call(s,e,o,0,n),o}toMMPattern(){if(this!==x(this,e))return x(this,e).toMMPattern();const t=""+this,[s,o,i,r]=this.toRegExpSource();if(!(i||x(this,n)||x(this,c).nocase&&!x(this,c).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return o;const l=(x(this,c).nocase?"i":"")+(r?"u":"");return Object.assign(RegExp(`^${s}$`,l),{_src:s,_glob:t})}get options(){return x(this,c)}toRegExpSource(r){var l;const u=null!=r?r:!!x(this,c).dot;if(x(this,e)===this&&P(this,a,d).call(this),!this.type){const c=this.isStart()&&this.isEnd(),h=x(this,o).map((e=>{var o;const[i,l,f,u]="string"==typeof e?P(o=t,p,$).call(o,e,x(this,n),c):e.toRegExpSource(r);return N(this,n,x(this,n)||f),N(this,s,x(this,s)||u),i})).join("");let a="";if(this.isStart()&&"string"==typeof x(this,o)[0]&&(1!==x(this,o).length||!wt.has(x(this,o)[0]))){const t=mt,e=u&&t.has(h.charAt(0))||h.startsWith("\\.")&&t.has(h.charAt(2))||h.startsWith("\\.\\.")&&t.has(h.charAt(4)),n=!u&&!r&&t.has(h.charAt(0));a=e?"(?!(?:^|/)\\.\\.?(?:$|/))":n?bt:""}let d="";return this.isEnd()&&x(x(this,e),f)&&"!"===(null==(l=x(this,i))?void 0:l.type)&&(d="(?:$|\\/)"),[a+h+d,gt(h),N(this,n,!!x(this,n)),x(this,s)]}const g="*"===this.type||"+"===this.type,b="!"===this.type?"(?:(?!(?:":"(?:";let m=P(this,a,v).call(this,u);if(this.isStart()&&this.isEnd()&&!m&&"!"!==this.type){const t=""+this;return N(this,o,[t]),this.type=null,N(this,n,void 0),[t,gt(""+this),!1,!1]}let w=!g||r||u?"":P(this,a,v).call(this,!0);w===m&&(w=""),w&&(m=`(?:${m})(?:${w})*?`);let y="";return y="!"===this.type&&x(this,h)?(this.isStart()&&!u?bt:"")+St:b+m+("!"===this.type?"))"+(!this.isStart()||u||r?"":bt)+jt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&w?")":"*"===this.type&&w?")?":")"+this.type),[y,gt(m),N(this,n,!!x(this,n)),x(this,s)]}};e=new WeakMap,n=new WeakMap,s=new WeakMap,o=new WeakMap,i=new WeakMap,r=new WeakMap,l=new WeakMap,f=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,a=new WeakSet,d=function(){if(this!==x(this,e))throw Error("should only call on root");if(x(this,f))return this;let t;for(N(this,f,!0);t=x(this,l).pop();){if("!"!==t.type)continue;let e=t,n=x(e,i);for(;n;){for(let s=x(e,r)+1;!n.type&&s<x(n,o).length;s++)for(const e of x(t,o)){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(x(n,o)[s])}e=n,n=x(e,i)}}return this},p=new WeakSet,g=function(t,e,s,i){var r,l;let f=!1,c=!1,u=-1,a=!1;if(null===e.type){let n=s,o="";for(;n<t.length;){const s=t.charAt(n++);if(f||"\\"===s)f=!f,o+=s;else if(c)n===u+1?"^"!==s&&"!"!==s||(a=!0):"]"!==s||n===u+2&&a||(c=!1),o+=s;else if("["!==s)if(i.noext||!$t(s)||"("!==t.charAt(n))o+=s;else{e.push(o),o="";const l=new Mt(s,e);n=P(r=Mt,p,g).call(r,t,l,n,i),e.push(l)}else c=!0,u=n,a=!1,o+=s}return e.push(o),n}let d=s+1,v=new Mt(null,e);const $=[];let b="";for(;d<t.length;){const n=t.charAt(d++);if(f||"\\"===n)f=!f,b+=n;else if(c)d===u+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||d===u+2&&a||(c=!1),b+=n;else if("["!==n)if($t(n)&&"("===t.charAt(d)){v.push(b),b="";const e=new Mt(n,v);v.push(e),d=P(l=Mt,p,g).call(l,t,e,d,i)}else if("|"!==n){if(")"===n)return""===b&&0===x(e,o).length&&N(e,h,!0),v.push(b),b="",e.push(...$,v),d;b+=n}else v.push(b),b="",$.push(v),v=new Mt(null,e);else c=!0,u=d,a=!1,b+=n}return e.type=null,N(e,n,void 0),N(e,o,[t.substring(s-1)]),d},v=function(t){return x(this,o).map((e=>{if("string"==typeof e)throw Error("string type in extglob ast??");const[n,o,i,r]=e.toRegExpSource(t);return N(this,s,x(this,s)||r),n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")},$=function(t,e,n=!1){let s=!1,o="",i=!1;for(let r=0;r<t.length;r++){const l=t.charAt(r);if(s)s=!1,o+=(yt.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[n,s,l,f]=pt(t,r);if(l){o+=n,i=i||s,r+=l-1,e=e||f;continue}}"*"!==l?"?"!==l?o+=kt(l):(o+=Ot,e=!0):(o+=n&&"*"===t?St:jt,e=!0)}else r===t.length-1?o+="\\\\":s=!0}return[o,gt(t),!!e,i]},E(Mt,p);var xt=Mt,Et=(t,e,n={})=>(ct(e),!(!n.nocomment&&"#"===e.charAt(0))&&new te(e,n).match(t)),Nt=/^\*+([^+@!?\*\[\(]*)$/,Pt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Rt=t=>e=>e.endsWith(t),Wt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),At=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Lt=/^\*+\.\*+$/,Ct=t=>!t.startsWith(".")&&t.includes("."),zt=t=>"."!==t&&".."!==t&&t.includes("."),It=/^\.\*+$/,_t=t=>"."!==t&&".."!==t&&t.startsWith("."),Ft=/^\*+$/,Tt=t=>0!==t.length&&!t.startsWith("."),Dt=t=>0!==t.length&&"."!==t&&".."!==t,Ut=/^\?+([^+@!?\*\[\(]*)?$/,Vt=([t,e=""])=>{const n=Ht([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Bt=([t,e=""])=>{const n=qt([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},Gt=([t,e=""])=>{const n=qt([t]);return e?t=>n(t)&&t.endsWith(e):n},Zt=([t,e=""])=>{const n=Ht([t]);return e?t=>n(t)&&t.endsWith(e):n},Ht=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},qt=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Jt="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";Et.sep="win32"===Jt?"\\":"/";var Yt=Symbol("globstar **");Et.GLOBSTAR=Yt,Et.filter=(t,e={})=>n=>Et(n,t,e);var Kt=(t,e={})=>Object.assign({},t,e);Et.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Et;const e=Et;return Object.assign(((n,s,o={})=>e(n,s,Kt(t,o))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,Kt(t,n))}static defaults(n){return e.defaults(Kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,s={}){super(e,n,Kt(t,s))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Kt(t,s))}},unescape:(n,s={})=>e.unescape(n,Kt(t,s)),escape:(n,s={})=>e.escape(n,Kt(t,s)),filter:(n,s={})=>e.filter(n,Kt(t,s)),defaults:n=>e.defaults(Kt(t,n)),makeRe:(n,s={})=>e.makeRe(n,Kt(t,s)),braceExpand:(n,s={})=>e.braceExpand(n,Kt(t,s)),match:(n,s,o={})=>e.match(n,s,Kt(t,o)),sep:e.sep,GLOBSTAR:Yt})};var Qt=(t,e={})=>(ct(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,ft.default)(t));Et.braceExpand=Qt,Et.makeRe=(t,e={})=>new te(t,e).makeRe(),Et.match=(t,e,n={})=>{const s=new te(e,n);return t=t.filter((t=>s.match(t))),s.options.nonull&&!t.length&&t.push(e),t};var Xt=/[?*]|[+@!]\(.*?\)|\[|\]/,te=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){ct(t),this.options=e=e||{},this.pattern=t,this.platform=e.platform||Jt,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]&&Xt.test(t[2])||Xt.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 i=n[s+2],r=n[s+3];if(".."!==n[s+1])continue;if(!i||"."===i||".."===i||!r||"."===r||".."===r)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,i=[],r="";for(;s<t.length&&o<e.length;)if(t[s]===e[o])i.push("b"===r?e[o]:t[s]),s++,o++;else if(n&&"**"===t[s]&&e[o]===t[s+1])i.push(t[s]),s++;else if(n&&"**"===e[o]&&t[s]===e[o+1])i.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"===r)return!1;r="b",i.push(e[o]),s++,o++}else{if("b"===r)return!1;r="a",i.push(t[s]),s++,o++}return t.length===e.length&&i}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]),i=s?3:n?0:void 0,r=!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 i&&"number"==typeof r){const[n,s]=[t[i],e[r]];n.toLowerCase()===s.toLowerCase()&&(e[r]=n,r>i?e=e.slice(r):i>r&&(t=t.slice(i)))}}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 i=0,r=0,l=t.length,f=e.length;i<l&&r<f;i++,r++){this.debug("matchOne loop");var c=e[r],u=t[i];if(this.debug(e,c,u),!1===c)return!1;if(c===Yt){this.debug("GLOBSTAR",[e,c,u]);var h=i,a=r+1;if(a===f){for(this.debug("** at the end");i<l;i++)if("."===t[i]||".."===t[i]||!s.dot&&"."===t[i].charAt(0))return!1;return!0}for(;h<l;){var d=t[h];if(this.debug("\nglobstar while",t,h,e,a,d),this.matchOne(t.slice(h),e.slice(a),n))return this.debug("globstar found match!",h,l,d),!0;if("."===d||".."===d||!s.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,h,e,a);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",t,h,e,a),h!==l))}let o;if("string"==typeof c?(o=u===c,this.debug("string match",c,u,o)):(o=c.test(u),this.debug("pattern match",c,u,o)),!o)return!1}if(i===l&&r===f)return!0;if(i===l)return n;if(r===f)return i===l-1&&""===t[i];throw Error("wtf?")}braceExpand(){return Qt(this.pattern,this.options)}parse(t){ct(t);const e=this.options;if("**"===t)return Yt;if(""===t)return"";let n,s=null;(n=t.match(Ft))?s=e.dot?Dt:Tt:(n=t.match(Nt))?s=(e.nocase?e.dot?At:Wt:e.dot?Rt:Pt)(n[1]):(n=t.match(Ut))?s=(e.nocase?e.dot?Bt:Vt:e.dot?Gt:Zt)(n):(n=t.match(Lt))?s=e.dot?zt:Ct:(n=t.match(It))&&(s=_t);const o=xt.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===Yt?Yt:t._src}));return e.forEach(((t,s)=>{const o=e[s+1],i=e[s-1];t===Yt&&i!==Yt&&(void 0===i?void 0!==o&&o!==Yt?e[s+1]="(?:\\/|"+n+"\\/)?"+o:e[s]=n:void 0===o?e[s-1]=i+"(?:\\/|"+n+")?":o!==Yt&&(e[s-1]=i+"(?:\\/|\\/"+n+"\\/)"+o,e[s+1]=Yt))})),e.filter((t=>t!==Yt)).join("/")})).join("|");const[i,r]=t.length>1?["(?:",")"]:["",""];o="^"+i+o+r+"$",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 i=s[s.length-1];if(!i)for(let t=s.length-2;!i&&t>=0;t--)i=s[t];for(let t=0;t<o.length;t++){const r=o[t];let l=s;if(n.matchBase&&1===r.length&&(l=[i]),this.matchOne(l,r,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return Et.defaults(t).Minimatch}};Et.AST=xt,Et.Minimatch=te,Et.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),Et.unescape=gt;var ee=class t{static fromLocalValue(e){const n=e[C],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,i=t.fromLocalValue(o);e.set(s,i)}return e;case"object":const o={};for(const[e,n]of s)o[e]=t.fromLocalValue(n);return o;case"regexp":const{pattern:i,flags:r}=s;return RegExp(i,r);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(C))return!1;const e=t[C];return!!Object.values({...A,...L}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(z))}};((t,e)=>{for(var n in e)m(t,n,{get:e[n],enumerable:!0})})({},{err:()=>se,map:()=>oe,ok:()=>ne,unwrap:()=>re,unwrapErr:()=>le});var ne=t=>({isOk:!0,isErr:!1,value:t}),se=t=>({isOk:!1,isErr:!0,value:t});function oe(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>ne(t))):ne(n)}if(t.isErr)return se(t.value);throw"should never get here"}var ie,re=t=>{if(t.isOk)return t.value;throw t.value},le=t=>{if(t.isErr)return t.value;throw t.value};function fe(){var e;const n=this.attachShadow({mode:"open"});if(void 0===ie&&(ie=null!=(e=function(t){if(!J)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(t))?e:null),ie)Y?n.adoptedStyleSheets.push(ie):n.adoptedStyleSheets=[...n.adoptedStyleSheets,ie];else if(!J){const e=document.createElement("style");e.innerHTML=t,n.prepend(e)}}var ce=(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 i=e["s-cr"].parentNode,r=ue(i,"appendChild");if(void 0!==s){o["s-oo"]=s;const t=ue(i,"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=>r.call(i,t)))}else r.call(i,o);t["s-ol"]=o,t["s-sh"]=e["s-hn"]};function ue(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 he=new WeakMap,ae=(t,e,n)=>{let s=U.get(t);J&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,U.set(t,s)},de=(t,e)=>{var n,s,o;const i=pe(e),r=U.get(i);if(!Z.document)return i;if(t=11===t.nodeType?t:Z.document,r)if("string"==typeof r){let o,l=he.get(t=t.head||t);l||he.set(t,l=new Set);const f=t.querySelector(`[${B}="${i}"]`);if(f)f.innerHTML=r;else if(!l.has(i)){o=Z.document.createElement("style"),o.innerHTML=r;const f=null!=(n=q.h)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=Z.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=f&&o.setAttribute("nonce",f),!(1&e.l))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(J){const e=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(r),Y?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=r+e.innerHTML:t.prepend(o)}else t.append(o);1&e.l&&t.insertBefore(o,null),4&e.l&&(o.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(i)}}else{let e=he.get(t);if(e||he.set(t,e=new Set),!e.has(i)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let s;if(r.constructor===n.CSSStyleSheet)s=r;else{s=new n.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)s.insertRule(r.cssRules[t].cssText,t)}Y?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],e.add(i)}}return i},pe=t=>"sc-"+t.p,ge=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ve=(t,e,...n)=>{let s=null,o=null,i=!1,r=!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&&((i="function"!=typeof t&&!lt(s))&&(s+=""),i&&r?l[l.length-1].v+=s:l.push(i?$e(null,s):s),r=i)};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 c=$e(t,null);return c.$=e,l.length>0&&(c.m=l),c.k=o,c},$e=(t,e)=>({l:0,O:t,v:e,j:null,m:null,$:null,k:null}),be={},me=(t,e,n,s,o,i,r,l=[])=>{let f,c,u,h;if(1===i.nodeType){if(f=i.getAttribute(G),f&&(c=f.split("."),c[0]===r||"0"===c[0])){u=ye({l:0,S:c[0],M:c[1],N:c[2],P:c[3],O:i.tagName.toLowerCase(),j:i,$:{class:i.className||""}}),e.push(u),i.removeAttribute(G),t.m||(t.m=[]);const o=u.j.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===u.O&&ke(o,c[2],u,i,t,e,n,s,l),u.j["s-sn"]=o,u.j.removeAttribute("s-sn")),void 0!==u.P&&(t.m[u.P]=u),t=u,s&&"0"===u.N&&(s[u.P]=u.j)}if(i.shadowRoot)for(h=i.shadowRoot.childNodes.length-1;h>=0;h--)me(t,e,n,s,o,i.shadowRoot.childNodes[h],r,l);const a=i.__childNodes||i.childNodes;for(h=a.length-1;h>=0;h--)me(t,e,n,s,o,a[h],r,l)}else if(8===i.nodeType)c=i.nodeValue.split("."),(c[1]===r||"0"===c[1])&&(f=c[0],u=ye({S:c[1],M:c[2],N:c[3],P:c[4]||"0",j:i,$:null,m:null,k:null,R:null,O:null,v:null}),"t"===f?(u.j=je(i,3),u.j&&3===u.j.nodeType&&(u.v=u.j.textContent,e.push(u),i.remove(),r===u.S&&(t.m||(t.m=[]),t.m[u.P]=u),s&&"0"===u.N&&(s[u.P]=u.j))):"c"===f?(u.j=je(i,8),u.j&&8===u.j.nodeType&&(e.push(u),i.remove())):u.S===r&&("s"===f?ke(i["s-sn"]=c[5]||"",c[2],u,i,t,e,n,s,l):"r"===f&&s&&i.remove()));else if(t&&"style"===t.O){const e=$e(null,i.textContent);e.j=i,e.P="0",t.m=[e]}return t},we=(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++)we(t.shadowRoot.childNodes[s],e);const o=t.__childNodes||t.childNodes;for(s=0;s<o.length;s++)we(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])}},ye=t=>({l:0,S:null,M:null,N:null,P:"0",j:null,$:null,m:null,k:null,R:null,O:null,v:null,...t});function ke(t,e,n,s,o,i,r,l,f){s["s-sr"]=!0,n.R=t||null,n.O="slot";const c=(null==o?void 0:o.j)?o.j["s-id"]||o.j.getAttribute("s-id"):"";if(l&&Z.document){const i=n.j=Z.document.createElement(n.O);n.R&&n.j.setAttribute("name",t),o.j.shadowRoot&&c&&c!==n.S?ue(o.j,"insertBefore")(i,ue(o.j,"children")[0]):ue(ue(s,"parentNode"),"insertBefore")(i,s),Oe(f,e,t,s,n.S),s.remove(),"0"===n.N&&(l[n.P]=n.j)}else{const i=n.j,r=c&&c!==n.S&&o.j.shadowRoot;Oe(f,e,t,s,r?c:n.S),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),r&&o.j.insertBefore(i,o.j.children[0])}i.push(n),r.push(n),o.m||(o.m=[]),o.m[n.P]=n}var Oe=(t,e,n,s,o)=>{var i,r;let l=s.nextSibling;if(t[e]=t[e]||[],l&&!(null==(i=l.nodeValue)?void 0:i.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==(r=l.nodeValue)?void 0:r.startsWith("s.")))},je=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},Se=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Se("::slotted"),Se(":host"),Se(":host-context");var Me,xe=(t,e)=>"string"==typeof t&&t.startsWith(I)?t=function(t){return"string"==typeof t&&t.startsWith(I)?ee.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||lt(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,Ee=(t,e)=>{const n=t;return{emit:t=>Ne(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Ne=(t,e,n)=>{const s=q.ce(e,n);return t.dispatchEvent(s),s},Pe=(t,e,n,s,o,i,r)=>{if(n===s)return;let l=T(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,o=We(n);let i=We(s);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];i.push(n),o.forEach((t=>{t.startsWith(n)&&i.push(t)})),i=[...new Set(i)].filter((t=>t)),e.add(...i)}else e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.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(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const r=lt(s);if((l||r&&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&i||o)&&!r&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}else if(e="-"===e[2]?e.slice(3):T(Z,f)?f.slice(2):f[2]+e.slice(3),n||s){const o=e.endsWith(Ae);e=e.replace(Le,""),n&&q.rel(t,e,n,o),s&&q.ael(t,e,s,o)}},Re=/\s/,We=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Re):[]),Ae="Capture",Le=RegExp(Ae+"$"),Ce=(t,e,n,s)=>{const o=11===e.j.nodeType&&e.j.host?e.j.host:e.j,i=t&&t.$||{},r=e.$||{};for(const t of ze(Object.keys(i)))t in r||Pe(o,t,i[t],void 0,n,e.l,s);for(const t of ze(Object.keys(r)))Pe(o,t,i[t],r[t],n,e.l,s)};function ze(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Ie=!1,_e=(t,e,n)=>{const s=e.m[n];let o,i,r=0;if(null!==s.v)o=s.j=Z.document.createTextNode(s.v);else{if(Ie||(Ie="svg"===s.O),!Z.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.j=Z.document.createElementNS(Ie?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.O),Ie&&"foreignObject"===s.O&&(Ie=!1),Ce(null,s,Ie),s.m){const e="template"===s.O?o.content:o;for(r=0;r<s.m.length;++r)i=_e(t,s,r),i&&e.appendChild(i)}"svg"===s.O?Ie=!1:"foreignObject"===o.tagName&&(Ie=!0)}return o["s-hn"]=Me,o},Fe=(t,e,n,s,o,i)=>{let r,l=t;for(l.shadowRoot&&l.tagName===Me&&(l=l.shadowRoot),"template"===n.O&&(l=l.content);o<=i;++o)s[o]&&(r=_e(null,n,o),r&&(s[o].j=r,Ve(l,r,e)))},Te=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.j;t&&t.remove()}}},De=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.k&&e.k&&(t.k=e.k),!0):t.k===e.k),Ue=(t,e,n=!1)=>{const s=e.j=t.j,o=t.m,i=e.m,r=e.O,l=e.v;null===l?(Ce(t,e,Ie="svg"===r||"foreignObject"!==r&&Ie,n),null!==o&&null!==i?((t,e,n,s,o=!1)=>{let i,r,l=0,f=0,c=0,u=0,h=e.length-1,a=e[0],d=e[h],p=s.length-1,g=s[0],v=s[p];const $="template"===n.O?t.content:t;for(;l<=h&&f<=p;)if(null==a)a=e[++l];else if(null==d)d=e[--h];else if(null==g)g=s[++f];else if(null==v)v=s[--p];else if(De(a,g,o))Ue(a,g,o),a=e[++l],g=s[++f];else if(De(d,v,o))Ue(d,v,o),d=e[--h],v=s[--p];else if(De(a,v,o))Ue(a,v,o),Ve($,a.j,d.j.nextSibling),a=e[++l],v=s[--p];else if(De(d,g,o))Ue(d,g,o),Ve($,d.j,a.j),d=e[--h],g=s[++f];else{for(c=-1,u=l;u<=h;++u)if(e[u]&&null!==e[u].k&&e[u].k===g.k){c=u;break}c>=0?(r=e[c],r.O!==g.O?i=_e(e&&e[f],n,c):(Ue(r,g,o),e[c]=void 0,i=r.j),g=s[++f]):(i=_e(e&&e[f],n,f),g=s[++f]),i&&Ve(a.j.parentNode,i,a.j)}l>h?Fe(t,null==s[p+1]?null:s[p+1].j,n,s,f,p):f>p&&Te(e,l,h)})(s,o,e,i,n):null!==i?(null!==t.v&&(s.textContent=""),Fe(s,null,e,i,0,i.length-1)):n||null===o?n&&null!==o&&null===i&&(e.m=o):Te(o,0,o.length-1),Ie&&"svg"===r&&(Ie=!1)):t.v!==l&&(s.data=l)},Ve=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Be=(t,e,n=!1)=>{const s=t.$hostElement$,o=t.W||$e(null,null),i=(t=>t&&t.O===be)(e)?e:ve(null,null,e);if(Me=s.tagName,n&&i.$)for(const t of Object.keys(i.$))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.$[t]=s[t]);i.O=null,i.l|=4,t.W=i,i.j=o.j=s.shadowRoot||s,Ue(o,i,n)},Ge=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((s=>t.A=()=>{e["s-p"].splice(n-1,1),s()})))}},Ze=(t,e)=>{if(t.l|=16,4&t.l)return void(t.l|=512);Ge(t,t.L);const n=()=>He(t,e);if(!e)return ot(n);queueMicrotask((()=>{n()}))},He=(t,e)=>{const n=t.$hostElement$,s=n;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 o=tn(s,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=qe(o,(()=>tn(s,"componentWillRender",void 0,n))),qe(o,(()=>Ye(t,s,e)))},qe=(t,e)=>Je(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Je=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ye=async(t,e,n)=>{var s;const o=t.$hostElement$,i=o["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,s=e.l,o=de(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&s&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);Ke(t,e,o,n),i&&(i.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(s=o["s-p"])?s:[],n=()=>Qe(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},Ke=(t,e,n,s)=>{try{e=e.render(),t.l&=-17,t.l|=2,Be(t,e,s)}catch(e){D(e,t.$hostElement$)}return null},Qe=t=>{const e=t.$hostElement$,n=e,s=t.L;tn(n,"componentDidRender",void 0,e),64&t.l?tn(n,"componentDidUpdate",void 0,e):(t.l|=64,en(e),tn(n,"componentDidLoad",void 0,e),t.C(e),s||Xe()),t.A&&(t.A(),t.A=void 0),512&t.l&&st((()=>Ze(t,!1))),t.l&=-517},Xe=()=>{var t;st((()=>Ne(Z,"appload",{detail:{namespace:"feedlog-toolkit"}}))),(null==(t=q.I)?void 0:t.size)&&q.I.clear()},tn=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){D(t,s)}},en=t=>t.classList.add("hydrated"),nn=(t,e,n,s)=>{const o=F(t);if(!o)return;const i=t,r=o.i.get(e),l=o.l,f=i;if(!((n=xe(n,s.t[e][0]))===r||Number.isNaN(r)&&Number.isNaN(n))){if(o.i.set(e,n),s._){const t=s._[e];t&&t.map((t=>{try{const[[s,i]]=Object.entries(t);(128&l||1&i)&&(f?f[s](n,r,e):o.F.push((()=>{o.T[s](n,r,e)})))}catch(t){D(t,i)}}))}if(2==(18&l)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,r,e))return;Ze(o,!1)}}},sn=(t,e)=>{var n,s;const o=t.prototype;{t.watchers&&!e._&&(e._=t.watchers),t.deserializers&&!e.D&&(e.D=t.deserializers),t.serializers&&!e.U&&(e.U=t.serializers);const i=Object.entries(null!=(n=e.t)?n:{});i.map((([t,[n]])=>{if(31&n||32&n){const{get:s,set:i}=Object.getOwnPropertyDescriptor(o,t)||{};s&&(e.t[t][0]|=2048),i&&(e.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return s?s.apply(this):((t,e)=>F(this).i.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(s){const o=F(this);if(o){if(i)return void 0===(32&n?this[t]:o.$hostElement$[t])&&o.i.get(t)&&(s=o.i.get(t)),i.call(this,xe(s,n)),void nn(this,t,s=32&n?this[t]:o.$hostElement$[t],e);nn(this,t,s,e)}}})}}));{const n=new Map;o.attributeChangedCallback=function(t,s,r){q.jmp((()=>{var l;const f=n.get(t),c=F(this);if(this.hasOwnProperty(f),o.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==r)return;if(null==f){const n=null==c?void 0:c.l;if(c&&n&&!(8&n)&&r!==s){const o=this,i=null==(l=e._)?void 0:l[t];null==i||i.forEach((e=>{const[[i,l]]=Object.entries(e);null!=o[i]&&(128&n||1&l)&&o[i].call(o,r,s,t)}))}return}const u=i.find((([t])=>t===f));u&&4&u[1][0]&&(r=null!==r&&"false"!==r);const h=Object.getOwnPropertyDescriptor(o,f);r==this[f]||h.get&&!h.set||(this[f]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e._)?s:{}),...i.filter((([t,e])=>31&e[0])).map((([t,e])=>{const s=e[1]||t;return n.set(s,t),s}))]))}}return t},on=(t,e)=>{const n={l:e[0],p:e[1]};n.t=e[2],n._=t._,n.D=t.D,n.U=t.U,(()=>{if(!Z.document)return;const t=Z.document.querySelectorAll(`[${B}]`);let e=0;for(;e<t.length;e++)ae(t[e].getAttribute(B),ge(t[e].innerHTML),!0)})();const s=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={l:0,$hostElement$:t,o:e,i:new Map,V:new Map};n.B=new Promise((t=>n.C=t)),t["s-p"]=[],t["s-rc"]=[];const s=n;t.__stencil__getHostRef=()=>s,512&e.l&&_(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!F(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&q.l)){const e=F(t);if(!e)return;const n=e.o,s=()=>{};if(1&e.l)(null==e?void 0:e.T)||(null==e?void 0:e.B)&&e.B.then((()=>{}));else{let s;if(e.l|=1,s=t.getAttribute(V),s){if(1&n.l){const e=de(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,s)=>{var o,i,r,l;const f=t.shadowRoot,c=[],u=[],h=f?[]:null,a=$e(e,null);a.j=t,!Z.document||q.I&&q.I.size||we(Z.document.body,q.I=new Map),t[V]=n,t.removeAttribute(V),s.W=me(a,c,[],h,t,t,n,u);let d=0;const p=c.length;let g;for(;d<p;d++){g=c[d];const n=g.S+"."+g.M,s=q.I.get(n),i=g.j;if(f){if((null==(o=g.O)?void 0:(""+o).includes("-"))&&"slot-fb"!==g.O&&!g.j.shadowRoot){const e=F(g.j);if(e){const n=pe(e.o),s=Z.document.querySelector(`style[sty-id="${n}"]`);s&&t.shadowRoot.append(s.cloneNode(!0))}}}else i["s-hn"]=e.toUpperCase(),"slot"===g.O&&(i["s-cr"]=t["s-cr"]);"slot"===g.O&&(g.R=g.j["s-sn"]||g.j.name||null,g.m?(g.l|=2,g.j.childNodes.length||g.m.forEach((t=>{g.j.appendChild(t.j)}))):g.l|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(i,s.nextSibling),s.parentNode.removeChild(s),f||(i["s-oo"]=parseInt(g.M))),s&&!s["s-id"]&&q.I.delete(n)}const v=[],$=u.length;let b,m,w,y,k=0,O=0;for(;k<$;k++)if(b=u[k],b&&b.length)for(w=b.length,m=0;m<w;m++){if(y=b[m],v[y.hostId]||(v[y.hostId]=q.I.get(y.hostId)),!v[y.hostId])continue;const t=v[y.hostId];t.shadowRoot&&y.node.parentElement!==t&&t.insertBefore(y.node,null==(r=null==(i=b[m-1])?void 0:i.node)?void 0:r.nextSibling),t.shadowRoot&&f||(y.slot["s-cr"]||(y.slot["s-cr"]=t["s-cr"],y.slot["s-cr"]=!y.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),ce(y.node,y.slot,0,y.node["s-oo"]||O),(null==(l=y.node.parentElement)?void 0:l.shadowRoot)&&y.node.getAttribute&&y.node.getAttribute("slot")&&y.node.removeAttribute("slot")),O=(y.node["s-oo"]||O)+1}if(f){let e=0;const n=h.length;if(n){for(;e<n;e++){const t=h[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.p,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"]){Ge(e,e.L=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.l)&&(e.l|=32,s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128)),s&&s.style)){let t;"string"==typeof s.style&&(t=s.style);const e=pe(n);if(!U.has(e)){const s=()=>{};ae(e,t,!!(1&n.l)),s()}}const o=e.L,i=()=>Ze(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(t,e,n)}s()}})(this),s&&s.call(this)},disconnectedCallback(){(async t=>{he.has(t)&&he.delete(t),t.shadowRoot&&he.has(t.shadowRoot)&&he.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else fe.call(this,n)}}),t.is=n.p,sn(t,n)},rn=t=>q.h=t,ln=t=>Object.assign(q,t);function fn(t,e){Be({$hostElement$:e},t)}function cn(t){return t}export{H,be as a,Ee as c,it as getAssetPath,ve as h,on as p,fn as render,rt as setAssetPath,rn as setNonce,ln as setPlatformOptions,cn as t}
@@ -0,0 +1 @@
1
+ import{t as e,p as t,H as s,c as i,h as o,a as r}from"./index.js";import{d as a}from"./p-DzATWlAC.js";import{d as l}from"./p-TX_JzdfG.js";const n=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=i(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 o("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"},o("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"}),o("path",{d:"M20 36l20-24h40l20 24",fill:"none",stroke:"var(--feedlog-empty-illustration-stroke)","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),o("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]),s=Math.max(1,this.currentPage-1),i=Math.min(e,this.currentPage+1);for(let e=s;e<=i;e++)t.add(e);const o=Array.from(t).sort(((e,t)=>e-t)),r=[];for(let e=0;e<o.length;e++)e>0&&o[e]-o[e-1]>1&&r.push("ellipsis"),r.push(o[e]);return r}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 o("nav",{class:"pagination","aria-label":"Issues pagination"},o("button",{type:"button",class:"pagination-btn pagination-arrow","aria-label":"Previous page",disabled:this.currentPage<=1,onClick:()=>this.goToPage(this.currentPage-1)},"‹"),t.map(((e,t)=>"ellipsis"===e?o("span",{key:`ellipsis-${t}`,class:"pagination-ellipsis","aria-hidden":"true"},"…"):o("button",{key:`page-${e}`,type:"button",class:"pagination-btn","aria-current":e===this.currentPage?"page":void 0,onClick:()=>this.goToPage(e)},e))),o("button",{type:"button",class:"pagination-btn pagination-arrow","aria-label":"Next page",disabled:this.currentPage>=e,onClick:()=>this.goToPage(this.currentPage+1)},"›"))}render(){const e=this.getVisibleIssues();return o(r,{key:"7721ed64730cd8e6b508fc829767ea79b2531628",class:"dark"===this.theme?"dark":""},o("div",{key:"6a2d83f46ce2391294cef018ec243dd13d06a063",class:"issues-list"},0===e.length?o("div",{class:"empty-state"},this.emptyStateTitle&&this.emptyStateMessage?o("div",{class:"empty-state-content"},this.renderEmptyStateIllustration(),o("h2",{class:"empty-state-title"},this.emptyStateTitle),o("p",{class:"empty-state-message"},this.emptyStateMessage)):o("p",null,"No issues found")):e.map((e=>{var t,s;return o("feedlog-issue",{key:e.id,issue:e,issueUrl:null!==(s=null===(t=this.getIssueUrl)||void 0===t?void 0:t.call(this,e))&&void 0!==s?s:void 0,theme:this.theme,onFeedlogUpvote:e=>this.handleUpvote(e)})}))),this.renderPagination())}static get watchers(){return{issues:[{resetPage:0}],limit:[{resetPage:0}]}}static get style(){return":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)}"}},[1,"feedlog-issues-list",{issues:[16],limit:[2],theme:[1],getIssueUrl:[16],emptyStateTitle:[1,"empty-state-title"],emptyStateMessage:[1,"empty-state-message"],currentPage:[32]},void 0,{issues:[{resetPage:0}],limit:[{resetPage:0}]}]);function d(){"undefined"!=typeof customElements&&["feedlog-issues-list","feedlog-badge","feedlog-issue"].forEach((t=>{switch(t){case"feedlog-issues-list":customElements.get(e(t))||customElements.define(e(t),n);break;case"feedlog-badge":customElements.get(e(t))||a();break;case"feedlog-issue":customElements.get(e(t))||l()}}))}d();export{n as F,d}
@@ -0,0 +1 @@
1
+ import{t as e,p as o,H as r,c as t,h as n}from"./index.js";const d=o(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),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 n("button",{key:"6cdd8347def51592707b1fb9aab0dc565ca0f76f",type:this.type,class:`button button-${this.variant} ${"default"===this.size?"button-size-default":`button-size-${this.size}`}`,disabled:this.disabled,onClick:this.handleClick},n("slot",{key:"3f3845195fa4b8a551473ecf1d5702321a31763e"}))}static get style(){return":host{display:inline-block;font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;--feedlog-background:#ffffff;--feedlog-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-accent:#e9ebef;--feedlog-accent-foreground:#030213;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-input:transparent;--feedlog-ring:oklch(0.708 0 0);--feedlog-destructive:#d4183d;--feedlog-radius:0.625rem}:host(.dark){--feedlog-background:oklch(0.145 0 0);--feedlog-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-accent:oklch(0.269 0 0);--feedlog-accent-foreground:oklch(0.985 0 0);--feedlog-border:oklch(0.269 0 0);--feedlog-input:oklch(0.269 0 0);--feedlog-ring:oklch(0.439 0 0);--feedlog-destructive:oklch(0.396 0.141 25.723)}button{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;font-size:0.875rem;font-weight:500;border-radius:calc(var(--feedlog-radius) - 2px);border:1px solid transparent;cursor:pointer;transition:all 0.15s ease;outline:none;font-family:inherit}button:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}button:focus-visible{border-color:var(--feedlog-ring);box-shadow:0 0 0 3px color-mix(in oklab, var(--feedlog-ring) 50%, transparent)}.button-default{background-color:var(--feedlog-primary);color:var(--feedlog-primary-foreground);border-color:transparent}.button-default:hover:not(:disabled){background-color:color-mix(in oklab, var(--feedlog-primary) 90%, transparent)}.button-outline{background-color:var(--feedlog-background);color:var(--feedlog-foreground);border-color:var(--feedlog-border)}.button-outline:hover:not(:disabled){background-color:var(--feedlog-accent);color:var(--feedlog-accent-foreground)}:host(.dark) .button-outline{background-color:transparent;border-color:var(--feedlog-input)}:host(.dark) .button-outline:hover:not(:disabled){background-color:color-mix(in oklab, var(--feedlog-accent) 50%, transparent)}.button-ghost{background-color:transparent;color:var(--feedlog-foreground);border-color:transparent}.button-ghost:hover:not(:disabled){background-color:var(--feedlog-accent);color:var(--feedlog-accent-foreground)}.button-destructive{background-color:var(--feedlog-destructive);color:#ffffff;border-color:transparent}.button-destructive:hover:not(:disabled){background-color:color-mix(in oklab, var(--feedlog-destructive) 90%, transparent)}:host(.dark) .button-destructive{background-color:color-mix(in oklab, var(--feedlog-destructive) 60%, transparent)}.button-size-sm{height:2rem;padding:0 0.75rem;font-size:0.75rem}.button-size-sm:has(svg:only-child){width:2rem;padding:0}.button-size-default{height:2.25rem;padding:0.5rem 1rem}.button-size-lg{height:2.5rem;padding:0.625rem 1.5rem;font-size:1rem}button svg{pointer-events:none;flex-shrink:0;width:1rem;height:1rem}"}},[257,"feedlog-button",{variant:[1],size:[1],disabled:[4],type:[1]}]);function l(){"undefined"!=typeof customElements&&["feedlog-button"].forEach((o=>{"feedlog-button"===o&&(customElements.get(e(o))||customElements.define(e(o),d))}))}l();export{d as F,l as d}
@@ -0,0 +1 @@
1
+ import{t as e,p as d,H as o,h as g}from"./index.js";const r=d(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.variant="default"}render(){return g("span",{key:"22e5d49e033459b4e3e409ffa0e76641457ad740",class:`badge badge-${this.variant}`},g("slot",{key:"8f986c5150aa39034f090a258231e45363f9cac9"}))}static get style(){return":host{display:inline-block;--feedlog-badge-font-size:0.75rem;--feedlog-badge-font-weight:500;--feedlog-badge-padding-x:0.625rem;--feedlog-badge-padding-y:0.125rem;--feedlog-badge-border-radius:9999px;--feedlog-blue-bg:#eff6ff;--feedlog-blue-text:#1e40af;--feedlog-blue-bg-hover:#dbeafe;--feedlog-red-bg:#fef2f2;--feedlog-red-text:#991b1b;--feedlog-red-bg-hover:#fee2e2;--feedlog-muted-bg:#f1f5f9;--feedlog-muted-text:#475569;--feedlog-muted-bg-hover:#e2e8f0}:host(.dark){--feedlog-blue-bg:rgba(37, 99, 235, 0.15);--feedlog-blue-text:#93c5fd;--feedlog-blue-bg-hover:rgba(37, 99, 235, 0.25);--feedlog-red-bg:rgba(220, 38, 38, 0.15);--feedlog-red-text:#fca5a5;--feedlog-red-bg-hover:rgba(220, 38, 38, 0.25);--feedlog-muted-bg:oklch(0.32 0.01 260);--feedlog-muted-text:oklch(0.8 0.02 260);--feedlog-muted-bg-hover:oklch(0.38 0.01 260)}.badge{display:inline-flex;align-items:center;justify-content:center;gap:0.25rem;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;font-family:inherit;border:1px solid transparent}.badge-default{background-color:var(--feedlog-blue-bg);color:var(--feedlog-blue-text)}.badge-default:hover{background-color:var(--feedlog-blue-bg-hover)}.badge-enhancement{background-color:var(--feedlog-blue-bg);color:var(--feedlog-blue-text)}.badge-enhancement:hover{background-color:var(--feedlog-blue-bg-hover)}.badge-destructive{background-color:var(--feedlog-red-bg);color:var(--feedlog-red-text)}.badge-destructive:hover{background-color:var(--feedlog-red-bg-hover)}.badge-secondary{background-color:var(--feedlog-muted-bg);color:var(--feedlog-muted-text)}.badge-secondary:hover{background-color:var(--feedlog-muted-bg-hover)}"}},[257,"feedlog-badge",{variant:[1]}]);function a(){"undefined"!=typeof customElements&&["feedlog-badge"].forEach((d=>{"feedlog-badge"===d&&(customElements.get(e(d))||customElements.define(e(d),r))}))}a();export{r as F,a as d}
@@ -0,0 +1 @@
1
+ import{t as e,p as o,H as t,c as s,h as i,a as r}from"./index.js";import{d}from"./p-DzATWlAC.js";import{d as a}from"./p-DMdb-G26.js";import{d as l}from"./p-TX_JzdfG.js";import{d as n}from"./p-DLNSSGDc.js";const c=o(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=s(this,"feedlogUpvote"),this.feedlogLoadMore=s(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 i("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"},i("circle",{cx:"12",cy:"12",r:"10"}),i("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),i("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"}))}renderIssuesList(){var e,o;return i("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!==(o=this.emptyStateMessage)&&void 0!==o?o:"Check back later for new updates.",onFeedlogUpvote:e=>this.handleUpvote(e)})}render(){return i(r,{key:"15ca787d3e5b45331a6582ea908b35b94b3a528c",class:"dark"===this.theme?"dark":""},i("div",{key:"79d655ca18778660f0156fbdec54764491eaac49",class:"issues-container",style:{maxWidth:this.maxWidth}},(this.heading||this.subtitle)&&i("header",{key:"e9e1b05451f55db894a1b6248dde4d9d90a96068",class:"issues-header"},i("div",{key:"b2921e777986f9c6afc3ba1cbf8023311c868b34",class:"header-content"},this.heading&&i("h1",{key:"e484da412ff1a92b876f3075489e60be273076b3",class:"issues-title"},this.heading),this.subtitle&&i("p",{key:"5030cbb2fdf2deab3681c1177a14e2b540d2ea33",class:"issues-subtitle"},this.subtitle))),this.loading&&i("div",{key:"f3fb2c02af4637832c518714f670ca2ae2624d49",class:"loading-state",role:"status","aria-label":"Loading issues"},i("div",{key:"14e60e4174d22dd2474677a7ec6365d053fe40e7",class:"loading-skeletons"},[1,2,3].map((e=>i("div",{key:e,class:"skeleton-card"},i("div",{class:"skeleton-content"},i("div",{class:"skeleton-header"},i("div",{class:"skeleton-badge"}),i("div",{class:"skeleton-timestamp"})),i("div",{class:"skeleton-main"},i("div",{class:"skeleton-title"}),i("div",{class:"skeleton-body"},i("div",{class:"skeleton-line"}),i("div",{class:"skeleton-line short"})),i("div",{class:"skeleton-repo"})),i("div",{class:"skeleton-footer"},i("div",{class:"skeleton-upvote"})))))))),this.error&&i("div",{key:"0c301ece57faeee2c6bbf2a4e346a88b6bc535cc",class:"error-state",role:"alert"},i("div",{key:"bab84dcbca74730ba44162c57baf65454ffb78c0",class:"error-state-content"},this.renderErrorIcon(),i("h2",{key:"247b25d17323d08ec9c527ebec1352600614f3be",class:"error-state-title"},"Something went wrong"),i("p",{key:"45501981e34a2a163e20724881945a0b75ef57d1",class:"error-state-message"},this.error))),!this.loading&&!this.error&&i("div",{key:"ca5a2697c898b61121c16a9d1f4320ad35a0bf84"},this.renderIssuesList(),this.hasMore&&i("div",{key:"1896d074714f083c3e171d0516d1d71155cbcd6a",class:"load-more-container"},i("feedlog-button",{key:"b34a2081a91b14e13aa4ace4d67b4d812f4a1d77",onFeedlogClick:this.handleLoadMore,disabled:this.isLoadingMore,variant:"outline"},this.isLoadingMore?"Loading...":"Load More Issues")))))}static get style(){return":host{display:block;font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;--feedlog-theme-bg:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-accent-color:#2563eb;--feedlog-destructive:#d4183d;--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-red-100:#fce7f3;--feedlog-red-400:#f472b6;--feedlog-red-600:#db2777;--feedlog-radius:0.625rem;--feedlog-gap:0.5rem;--feedlog-padding:2rem;--feedlog-min-height:100%;--feedlog-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08)}:host(.dark){--feedlog-theme-bg:oklch(0.18 0.01 260);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.24 0.01 260);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.32 0.01 260);--feedlog-muted-foreground:oklch(0.72 0.02 260);--feedlog-border:oklch(0.34 0.01 260);--feedlog-accent-color:#3b82f6;--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.3)}.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)}.issues-header{margin-bottom:1.5rem;display:flex;align-items:flex-start;justify-content:space-between}.header-content{flex:1}.issues-title{color:var(--feedlog-foreground);margin:0 0 0.25rem 0;font-size:1.5rem;font-weight:500;line-height:1.5}.issues-subtitle{color:var(--feedlog-muted-foreground);font-size:0.875rem;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);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:1.25rem;padding-left:calc(1.25rem + 3px);display:flex;flex-direction:column;gap:0.875rem}.skeleton-header{display:flex;align-items:center;justify-content:space-between;gap:0.75rem}.skeleton-badge{width:4.5rem;height:1.25rem;border-radius:0.375rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite}.skeleton-timestamp{width:3rem;height:0.75rem;border-radius:0.25rem;background-color:var(--feedlog-muted);animation:skeleton-pulse 1.5s ease-in-out infinite 0.2s}.skeleton-main{display:flex;flex-direction:column;gap:0.5rem}.skeleton-title{height:0.9375rem;border-radius:0.25rem;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:0.375rem}.skeleton-line{height:0.8125rem;border-radius:0.25rem;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:0.25rem;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:0.5rem;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:3rem 2rem;min-height:12rem}.error-state-content{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:20rem;padding:2rem}.error-icon{color:var(--feedlog-muted-foreground);opacity:0.8;margin-bottom:1rem}.error-state-title{margin:0 0 0.5rem 0;font-size:1.125rem;font-weight:600;color:var(--feedlog-foreground);line-height:1.4}.error-state-message{margin:0 0 1.25rem 0;font-size:0.875rem;color:var(--feedlog-muted-foreground);line-height:1.5}.load-more-container{display:flex;justify-content:center;padding:2rem 0;gap:1rem}"}},[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]}]);function f(){"undefined"!=typeof customElements&&["feedlog-issues","feedlog-badge","feedlog-button","feedlog-issue","feedlog-issues-list"].forEach((o=>{switch(o){case"feedlog-issues":customElements.get(e(o))||customElements.define(e(o),c);break;case"feedlog-badge":customElements.get(e(o))||d();break;case"feedlog-button":customElements.get(e(o))||a();break;case"feedlog-issue":customElements.get(e(o))||l();break;case"feedlog-issues-list":customElements.get(e(o))||n()}}))}f();export{c as F,f as d}
@@ -0,0 +1,3 @@
1
+ import{t as e,p as t,H as n,c as r,h as o,a as i}from"./index.js";import{d as a}from"./p-DzATWlAC.js";var s={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function l(e){s=e}var c={exec:()=>null};function u(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(f.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var d=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),f={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)}}>`)},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,g=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,m=u(g).replace(/bull/g,p).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(),b=u(g).replace(/bull/g,p).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]|[^\[\]\\])+/,x=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=u(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).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]*?(?:-->|$))/,$=u("^ {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",S).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A=u(k).replace("hr",h).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:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:x,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:h,html:$,lheading:m,list:w,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:A,table:c,text:/^[^\n]+/},T=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",h).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(),R={..._,lheading:b,table:T,paragraph:u(k).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",T).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()},z={..._,html:u("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).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:c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(k).replace("hr",h).replace("heading"," *#{1,6} *[^\n]").replace("lheading",m).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E=/^( {2,}|\\)\n(?!\s*$)/,P=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,M=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),C=/(?!~)[\p{P}\p{S}]/u,I=/(?![*_])[\p{P}\p{S}]/u,O=u(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",d?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),q=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=u(q,"u").replace(/punct/g,P).getRegex(),F=u(q,"u").replace(/punct/g,C).getRegex(),j="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",N=u(j,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,D).replace(/punct/g,P).getRegex(),U=u(j,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,C).getRegex(),H=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,D).replace(/punct/g,P).getRegex(),Z=u(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,I).getRegex(),W=u("^[^~]+(?=[^~])|(?!~)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,I).getRegex(),Y=u(/\\(punct)/,"gu").replace(/punct/g,P).getRegex(),G=u(/^<(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=u(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=u("^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=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J=u(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",v).getRegex(),ee=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ne={_backpedal:c,anyPunctuation:Y,autolink:G,blockSkip:O,br:E,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:c,delLDelim:c,delRDelim:c,emStrongLDelim:B,emStrongRDelimAst:N,emStrongRDelimUnd:H,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Q,nolink:ee,punctuation:M,reflink:J,reflinkSearch:u("reflink|nolink(?!\\()","g").replace("reflink",J).replace("nolink",ee).getRegex(),tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:c},re={...ne,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},oe={...ne,emStrongRDelimAst:U,emStrongLDelim:F,delLDelim:Z,delRDelim:W,url:u(/^((?: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:u(/^([`~]+|[^`~])(?:(?= {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()},ie={...oe,br:u(E).replace("{2,}","*").getRegex(),text:u(oe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ae={normal:_,gfm:R,pedantic:z},se={normal:ne,gfm:oe,breaks:ie,pedantic:re},le={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce=e=>le[e];function ue(e,t){if(t){if(f.escapeTest.test(e))return e.replace(f.escapeReplace,ce)}else if(f.escapeTestNoEncode.test(e))return e.replace(f.escapeReplaceNoEncode,ce);return e}function de(e){try{e=encodeURI(e).replace(f.percentDecode,"%")}catch{return null}return e}function fe(e,t){let n=e.replace(f.findPipe,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(f.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(f.slashPipe,"|");return n}function he(e,t){let n=e.length;if(0===n)return"";let r=0;for(;r<n&&e.charAt(n-r-1)===t;)r++;return e.slice(0,n-r)}function pe(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function ge(e,t,n,r,o){let i=t.href,a=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var me=class{options;rules;lexer;constructor(e){this.options=e||s}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:he(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map((e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.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:n}}}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=he(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:he(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=he(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let s=a.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=c,0===e.length)break;let u=o.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"!==u?.type);else{let t=u,i=t.raw+"\n"+e.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(o.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",s="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=pe(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=l.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),a=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let h,p=e.split("\n",1)[0];if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||a.test(c)||f.test(c)||t.test(c)||n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+h.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(l)||i.test(l)||n.test(l))break;s+="\n"+c}u=!c.trim(),r+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),o.raw+=r}let s=o.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e of o.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 n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!o.loose){let t=e.tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));o.loose=n}}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return o}}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," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=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:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=fe(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(let e of o)i.rows.push(fe(e,i.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]}))));return i}}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=he(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 n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ge(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ge(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&i%3&&!((i+o)%3)){s+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+s);let t=[...r[0]][0].length,l=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(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,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!=(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(o=[...n].length,o!==i))continue;if(r[3]||r[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let t=[...r[0]][0].length,s=e.slice(0,i+r.index+t+o),l=s.slice(i,-i);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,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}}},be=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s,this.options.tokenizer=this.options.tokenizer||new me,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:f,block:ae.normal,inline:se.normal};this.options.pedantic?(t.block=ae.pedantic,t.inline=se.pedantic):this.options.gfm&&(t.block=ae.gfm,t.inline=this.options.breaks?se.breaks:se.gfm),this.tokenizer.rules=t}static get rules(){return{block:ae,inline:se}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(f.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=[],n=!1){for(this.options.pedantic&&(e=e.replace(f.tabCharGlobal," ").replace(f.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){let i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),n=o.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.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 this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(r));)n=o[2]?o[2].length:0,r=r.slice(0,o.index+n)+"["+"a".repeat(o[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;e;){let n;if(i||(a=""),i=!1,this.options.extensions?.inline?.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,a)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,r,a)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let o=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(o)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),i=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.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 t}},ke=class{options;parser;constructor(e){this.options=e||s}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(f.notSpaceStart)?.[0],o=e.replace(f.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ue(r)+'">'+(n?o:ue(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:ue(o,!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,n=e.start,r="";for(let t=0;t<e.items.length;t++)r+=this.listitem(e.items[t]);let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\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="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\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>${ue(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=de(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+ue(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=de(e);if(null===o)return ue(n);let i=`<img src="${e=o}" alt="${n}"`;return t&&(i+=` title="${ue(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ue(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}},xe=class e{options;renderer;textRenderer;constructor(e){this.options=e||s,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,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==n||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=n||"";continue}}let o=r;switch(o.type){case"space":t+=this.renderer.space(o);break;case"hr":t+=this.renderer.hr(o);break;case"heading":t+=this.renderer.heading(o);break;case"code":t+=this.renderer.code(o);break;case"table":t+=this.renderer.table(o);break;case"blockquote":t+=this.renderer.blockquote(o);break;case"list":t+=this.renderer.list(o);break;case"checkbox":t+=this.renderer.checkbox(o);break;case"html":t+=this.renderer.html(o);break;case"def":t+=this.renderer.def(o);break;case"paragraph":t+=this.renderer.paragraph(o);break;case"text":t+=this.renderer.text(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 t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}let i=o;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(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 n}},we=class{options;block;constructor(e){this.options=e||s}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?be.lex:be.lexInline}provideParser(){return this.block?xe.parse:xe.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=xe;Renderer=ke;TextRenderer=ve;Lexer=be;Tokenizer=me;Hooks=we;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{let o=e[r].flat(1/0);n=n.concat(this.walkTokens(o,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}: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 n=t[e.level];n?n.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)})),n.extensions=t),e.renderer){let t=this.defaults.renderer||new ke(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],o=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new me(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],o=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new we;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],o=t[n];t[n]=we.passThroughHooks.has(n)?e=>{if(this.defaults.async&&we.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return o.call(t,n)})();let i=r.call(t,e);return o.call(t,i)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await o.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return be.lex(e,t??this.defaults)}parser(e,t){return xe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(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 i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer():e?be.lex:be.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let a=await(o.hooks?await o.hooks.provideParser():e?xe.parse:xe.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(a):a})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer():e?be.lex:be.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser():e?xe.parse:xe.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ue(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Se(e,t){return ye.parse(e,t)}Se.options=Se.setOptions=function(e){return ye.setOptions(e),l(Se.defaults=ye.defaults),Se},Se.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Se.defaults=s,Se.use=function(...e){return ye.use(...e),l(Se.defaults=ye.defaults),Se},Se.walkTokens=function(e,t){return ye.walkTokens(e,t)},Se.parseInline=ye.parseInline,Se.Parser=xe,Se.parser=xe.parse,Se.Renderer=ke,Se.TextRenderer=ve,Se.Lexer=be,Se.lexer=be.lex,Se.Tokenizer=me,Se.Hooks=we,Se.parse=Se;
2
+ /*! @license DOMPurify 3.3.3 | (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.3/LICENSE */
3
+ const{entries:$e,setPrototypeOf:Ae,isFrozen:_e,getPrototypeOf:Te,getOwnPropertyDescriptor:Re}=Object;let{freeze:ze,seal:Ee,create:Pe}=Object,{apply:De,construct:Le}="undefined"!=typeof Reflect&&Reflect;ze||(ze=function(e){return e}),Ee||(Ee=function(e){return e}),De||(De=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),Le||(Le=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Me=Xe(Array.prototype.forEach),Ce=Xe(Array.prototype.lastIndexOf),Ie=Xe(Array.prototype.pop),Oe=Xe(Array.prototype.push),qe=Xe(Array.prototype.splice),Be=Xe(String.prototype.toLowerCase),Fe=Xe(String.prototype.toString),je=Xe(String.prototype.match),Ne=Xe(String.prototype.replace),Ue=Xe(String.prototype.indexOf),He=Xe(String.prototype.trim),Ze=Xe(Object.prototype.hasOwnProperty),We=Xe(RegExp.prototype.test),Ye=(Ge=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Le(Ge,t)});var Ge;function Xe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return De(e,t,r)}}function Ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Be;Ae&&Ae(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(_e(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Ke(e){for(let t=0;t<e.length;t++)Ze(e,t)||(e[t]=null);return e}function Qe(e){const t=Pe(null);for(const[n,r]of $e(e))Ze(e,n)&&(t[n]=Array.isArray(r)?Ke(r):r&&"object"==typeof r&&r.constructor===Object?Qe(r):r);return t}function Je(e,t){for(;null!==e;){const n=Re(e,t);if(n){if(n.get)return Xe(n.get);if("function"==typeof n.value)return Xe(n.value)}e=Te(e)}return function(){return null}}const et=ze(["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"]),tt=ze(["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"]),nt=ze(["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"]),rt=ze(["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"]),ot=ze(["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"]),it=ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),at=ze(["#text"]),st=ze(["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"]),lt=ze(["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"]),ct=ze(["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"]),ut=ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dt=Ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ft=Ee(/<%[\w\W]*|[\w\W]*%>/gm),ht=Ee(/\$\{[\w\W]*/gm),pt=Ee(/^data-[\-\w.\u00B7-\uFFFF]+$/),gt=Ee(/^aria-[\-\w]+$/),mt=Ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bt=Ee(/^(?:\w+script|data):/i),kt=Ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vt=Ee(/^html$/i),xt=Ee(/^[a-z][.\w]*(-[.\w]+)+$/i);var wt=Object.freeze({__proto__:null,ARIA_ATTR:gt,ATTR_WHITESPACE:kt,CUSTOM_ELEMENT:xt,DATA_ATTR:pt,DOCTYPE_NAME:vt,ERB_EXPR:ft,IS_ALLOWED_URI:mt,IS_SCRIPT_OR_DATA:bt,MUSTACHE_EXPR:dt,TMPLIT_EXPR:ht});const yt=function(){return"undefined"==typeof window?null:window};var St=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yt();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,g=c.prototype,m=Je(g,"cloneNode"),b=Je(g,"remove"),k=Je(g,"nextSibling"),v=Je(g,"childNodes"),x=Je(g,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,y="";const{implementation:S,createNodeIterator:$,createDocumentFragment:A,getElementsByTagName:_}=r,{importNode:T}=o;let R={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof $e&&"function"==typeof x&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:z,ERB_EXPR:E,TMPLIT_EXPR:P,DATA_ATTR:D,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:C,CUSTOM_ELEMENT:I}=wt;let{IS_ALLOWED_URI:O}=wt,q=null;const B=Ve({},[...et,...tt,...nt,...ot,...at]);let F=null;const j=Ve({},[...st,...lt,...ct,...ut]);let N=Object.seal(Pe(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}})),U=null,H=null;const Z=Object.seal(Pe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,Y=!0,G=!1,X=!0,V=!1,K=!0,Q=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ie=!1,ae=!0,se=!1,le={},ce=null;const ue=Ve({},["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 de=null;const fe=Ve({},["audio","video","img","source","image","track"]);let he=null;const pe=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ke=be,ve=!1,xe=null;const we=Ve({},[ge,me,be],Fe);let ye=Ve({},["mi","mo","mn","ms","mtext"]),Se=Ve({},["annotation-xml"]);const Ae=Ve({},["title","style","font","a","script"]);let _e=null;const Te=["application/xhtml+xml","text/html"];let Re=null,Ee=null;const De=r.createElement("form"),Le=function(e){return e instanceof RegExp||e instanceof Function},Ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=Qe(e),_e=-1===Te.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Re="application/xhtml+xml"===_e?Fe:Be,q=Ze(e,"ALLOWED_TAGS")?Ve({},e.ALLOWED_TAGS,Re):B,F=Ze(e,"ALLOWED_ATTR")?Ve({},e.ALLOWED_ATTR,Re):j,xe=Ze(e,"ALLOWED_NAMESPACES")?Ve({},e.ALLOWED_NAMESPACES,Fe):we,he=Ze(e,"ADD_URI_SAFE_ATTR")?Ve(Qe(pe),e.ADD_URI_SAFE_ATTR,Re):pe,de=Ze(e,"ADD_DATA_URI_TAGS")?Ve(Qe(fe),e.ADD_DATA_URI_TAGS,Re):fe,ce=Ze(e,"FORBID_CONTENTS")?Ve({},e.FORBID_CONTENTS,Re):ue,U=Ze(e,"FORBID_TAGS")?Ve({},e.FORBID_TAGS,Re):Qe({}),H=Ze(e,"FORBID_ATTR")?Ve({},e.FORBID_ATTR,Re):Qe({}),le=!!Ze(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,V=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,O=e.ALLOWED_URI_REGEXP||mt,ke=e.NAMESPACE||be,ye=e.MATHML_TEXT_INTEGRATION_POINTS||ye,Se=e.HTML_INTEGRATION_POINTS||Se,N=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Le(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Le(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(N.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(Y=!1),ne&&(te=!0),le&&(q=Ve({},at),F=Pe(null),!0===le.html&&(Ve(q,et),Ve(F,st)),!0===le.svg&&(Ve(q,tt),Ve(F,lt),Ve(F,ut)),!0===le.svgFilters&&(Ve(q,nt),Ve(F,lt),Ve(F,ut)),!0===le.mathMl&&(Ve(q,ot),Ve(F,ct),Ve(F,ut))),Ze(e,"ADD_TAGS")||(Z.tagCheck=null),Ze(e,"ADD_ATTR")||(Z.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Z.tagCheck=e.ADD_TAGS:(q===B&&(q=Qe(q)),Ve(q,e.ADD_TAGS,Re))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Z.attributeCheck=e.ADD_ATTR:(F===j&&(F=Qe(F)),Ve(F,e.ADD_ATTR,Re))),e.ADD_URI_SAFE_ATTR&&Ve(he,e.ADD_URI_SAFE_ATTR,Re),e.FORBID_CONTENTS&&(ce===ue&&(ce=Qe(ce)),Ve(ce,e.FORBID_CONTENTS,Re)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Qe(ce)),Ve(ce,e.ADD_FORBID_CONTENTS,Re)),ae&&(q["#text"]=!0),Q&&Ve(q,["html","head","body"]),q.table&&(Ve(q,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ye('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ye('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,y=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));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}}(p,i)),null!==w&&"string"==typeof y&&(y=w.createHTML(""));ze&&ze(e),Ee=e}},Xe=Ve({},[...tt,...nt,...rt]),Ke=Ve({},[...ot,...it]),dt=function(e){Oe(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){b(e)}},ft=function(e,t){try{Oe(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Oe(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=je(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===_e&&ke===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(ke===be)try{t=(new h).parseFromString(o,_e)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(ke,"template",null);try{t.documentElement.innerHTML=ve?y:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ke===be?_.call(t,Q?"html":"body")[0]:Q?t.documentElement:i},pt=function(e){return $.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},gt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof l&&e instanceof l};function kt(e,t,r){Me(e,(e=>{e.call(n,t,r,Ee)}))}const xt=function(e){let t=null;if(kt(R.beforeSanitizeElements,e,null),gt(e))return dt(e),!0;const r=Re(e.nodeName);if(kt(R.uponSanitizeElement,e,{tagName:r,allowedTags:q}),K&&e.hasChildNodes()&&!bt(e.firstElementChild)&&We(/<[/\w!]/g,e.innerHTML)&&We(/<[/\w!]/g,e.textContent))return dt(e),!0;if(7===e.nodeType)return dt(e),!0;if(K&&8===e.nodeType&&We(/<[/\w]/g,e.data))return dt(e),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(r))&&(!q[r]||U[r])){if(!U[r]&&$t(r)){if(N.tagNameCheck instanceof RegExp&&We(N.tagNameCheck,r))return!1;if(N.tagNameCheck instanceof Function&&N.tagNameCheck(r))return!1}if(ae&&!ce[r]){const t=x(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=m(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,k(e))}}return dt(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ke,tagName:"template"});const n=Be(e.tagName),r=Be(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===be?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||ye[r]):Boolean(Xe[n]):e.namespaceURI===ge?t.namespaceURI===be?"math"===n:t.namespaceURI===me?"math"===n&&Se[r]:Boolean(Ke[n]):e.namespaceURI===be?!(t.namespaceURI===me&&!Se[r])&&!(t.namespaceURI===ge&&!ye[r])&&!Ke[n]&&(Ae[n]||!Xe[n]):!("application/xhtml+xml"!==_e||!xe[e.namespaceURI]))}(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!We(/<\/no(script|embed|frames)/i,e.innerHTML)?(V&&3===e.nodeType&&(t=e.textContent,Me([z,E,P],(e=>{t=Ne(t,e," ")})),e.textContent!==t&&(Oe(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt(R.afterSanitizeElements,e,null),!1):(dt(e),!0)},St=function(e,t,n){if(H[t])return!1;if(oe&&("id"===t||"name"===t)&&(n in r||n in De))return!1;if(Y&&!H[t]&&We(D,t));else if(W&&We(L,t));else if(Z.attributeCheck instanceof Function&&Z.attributeCheck(t,e));else if(!F[t]||H[t]){if(!($t(e)&&(N.tagNameCheck instanceof RegExp&&We(N.tagNameCheck,e)||N.tagNameCheck instanceof Function&&N.tagNameCheck(e))&&(N.attributeNameCheck instanceof RegExp&&We(N.attributeNameCheck,t)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(t,e))||"is"===t&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&We(N.tagNameCheck,n)||N.tagNameCheck instanceof Function&&N.tagNameCheck(n))))return!1}else if(he[t]);else if(We(O,Ne(n,C,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ue(n,"data:")||!de[e])if(G&&!We(M,Ne(n,C,"")));else if(n)return!1;return!0},$t=function(e){return"annotation-xml"!==e&&je(e,I)},At=function(e){kt(R.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||gt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=Re(a),u=l;let d="value"===a?u:He(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,kt(R.uponSanitizeAttribute,e,r),d=r.attrValue,!ie||"id"!==c&&"name"!==c||(ft(a,e),d="user-content-"+d),K&&We(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(a,e);continue}if("attributename"===c&&je(d,"href")){ft(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ft(a,e);continue}if(!X&&We(/\/>/i,d)){ft(a,e);continue}V&&Me([z,E,P],(e=>{d=Ne(d,e," ")}));const f=Re(e.nodeName);if(St(f,c,d)){if(w&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(s);else switch(p.getAttributeType(f,c)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),gt(e)?dt(e):Ie(n.removed)}catch(t){ft(a,e)}}else ft(a,e)}kt(R.afterSanitizeAttributes,e,null)},_t=function e(t){let n=null;const r=pt(t);for(kt(R.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)kt(R.uponSanitizeShadowNode,n,null),xt(n),At(n),n.content instanceof a&&e(n.content);kt(R.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw Ye("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ye("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Ge(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Re(e.nodeName);if(!q[t]||U[t])throw Ye("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=ht("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!te&&!V&&!Q&&-1===e.indexOf("<"))return w&&re?w.createHTML(e):e;if(r=ht(e),!r)return te?null:re?y:""}r&&ee&&dt(r.firstChild);const u=pt(se?e:r);for(;s=u.nextNode();)xt(s),At(s),s.content instanceof a&&_t(s.content);if(se)return e;if(te){if(ne)for(c=A.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(F.shadowroot||F.shadowrootmode)&&(c=T.call(o,c,!0)),c}let d=Q?r.outerHTML:r.innerHTML;return Q&&q["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&We(vt,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),V&&Me([z,E,P],(e=>{d=Ne(d,e," ")})),w&&re?w.createHTML(d):d},n.setConfig=function(){Ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ee=null,J=!1},n.isValidAttribute=function(e,t,n){Ee||Ge({});const r=Re(e),o=Re(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&Oe(R[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Ce(R[e],t);return-1===n?void 0:qe(R[e],n,1)[0]}return Ie(R[e])},n.removeHooks=function(e){R[e]=[]},n.removeAllHooks=function(){R={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),$t=Object.freeze({__proto__:null,default:St});function At(e){if(null==e||""===e)return"";const t=Se.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 St.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"]})}const _t=t(class extends n{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=r(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 n=this.host.querySelector('[slot="media"]');t.classList.toggle("has-media",!!n)}renderPinIcon(){return o("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"},o("path",{d:"M12 17v5"}),o("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 o("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"},o("path",{d:"M12 7l7 10H5l7-10z"}))}formatDate(e){try{const t=new Date(e),n=new Date,r=Math.floor((n.getTime()-t.getTime())/1e3);return r<60?"just now":r<3600?`${Math.floor(r/60)}m ago`:r<86400?`${Math.floor(r/3600)}h ago`:r<604800?`${Math.floor(r/86400)}d ago`:r<2592e3?`${Math.floor(r/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 o("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"},o("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o("polyline",{points:"15 3 21 3 21 9"}),o("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))}render(){var e,t;const{issue:n,issueUrl:r}=this;if(!n)return null;const a=new Date(n.updatedAt).getTime()>new Date(n.createdAt).getTime(),s=a?"Updated":"Created",l=a?n.updatedAt:n.createdAt,c=a?`Updated: ${n.updatedAt}`:`Created: ${n.createdAt}`,u=null!==(e=n.title)&&void 0!==e?e:"Untitled",d=n.repository.name,f=null!=d&&""!==d&&"unnamed repository"!==d.toLowerCase()?d:null,h=null!=n.repository.description&&""!==n.repository.description?n.repository.description:void 0,p=this.getStatusBadgeLabel(),g=null!==(t=n.githubIssueLink)&&void 0!==t?t:r,m=null!=g&&""!==g;return o(i,{class:"dark"===this.theme?"dark":"","data-upvoted":n.hasUpvoted?"true":"false"},o("div",{class:`issue-card issue-type-${n.type}`},o("div",{class:"issue-media",part:"media"},o("slot",{name:"media"})),o("div",{class:"issue-content"},o("div",{class:"issue-main"},o("div",{class:"issue-header-top"},o("div",{class:"issue-badges"},"bug"===n.type?o("feedlog-badge",{variant:"destructive"},"Bug"):o("feedlog-badge",{variant:"enhancement"},"Enhancement"),p&&o("feedlog-badge",{variant:"secondary"},p)),o("div",{class:"issue-meta-right"},n.pinnedAt&&o("div",{class:"pinned-indicator",title:"Pinned issue"},this.renderPinIcon()),o("span",{class:"issue-timestamp",title:c},s," ",this.formatDate(l)))),o("h3",{class:"issue-title"},u),null!=n.body&&""!==n.body&&o("div",{class:"issue-body",innerHTML:At(n.body)}),(null!=f||m||"bug"!==n.type)&&o("div",{class:"issue-footer"},(null!=f||m)&&o("div",{class:"issue-footer-meta"},null!=f&&o("span",{class:"repo-name",title:h},f),m&&o("a",{part:"github-link",class:"github-link",href:g,target:"_blank",rel:"noopener noreferrer",title:"View on GitHub"},this.renderExternalLinkIcon(),o("span",{class:"github-link-text"},"View on GitHub"))),"bug"!==n.type&&o("button",{part:"upvote-button",class:"upvote-button "+(n.hasUpvoted?"upvoted":""),onClick:e=>this.handleUpvote(e),title:n.hasUpvoted?"Remove upvote":"Upvote this issue"},o("div",{class:"upvote-action"},o("slot",{name:"upvote-icon"},this.renderUpvoteIcon(n.hasUpvoted)),o("span",{class:"upvote-label"},"Upvote")),o("div",{class:"reel-container"},o("span",{class:"upvote-count reel-number",key:n.upvoteCount},n.upvoteCount))))))))}get host(){return this}static get style(){return":host{display:block;font-family:ui-sans-serif,\\n system-ui,\\n -apple-system,\\n BlinkMacSystemFont,\\n 'Segoe UI',\\n Roboto,\\n 'Helvetica Neue',\\n Arial,\\n sans-serif;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-muted:#f1f5f9;--feedlog-muted-foreground:#64748b;--feedlog-border:rgba(0, 0, 0, 0.08);--feedlog-accent-color:#2563eb;--feedlog-destructive:#d4183d;--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-red-600:#db2777;--feedlog-radius:0.625rem;--feedlog-gap:0.5rem;--feedlog-card-padding:1.25rem;--feedlog-title-font-size:1.125rem;--feedlog-title-font-weight:600;--feedlog-body-font-size:0.875rem;--feedlog-body-line-height:1.6;--feedlog-timestamp-font-size:0.6875rem;--feedlog-timestamp-color:var(--feedlog-muted-foreground);--feedlog-card-radius:0.75rem;--feedlog-icon-color:var(--feedlog-muted-foreground);--feedlog-icon-color-muted:var(--feedlog-muted-foreground);--feedlog-pin-color:var(--feedlog-accent-color);--feedlog-upvote-icon-color:var(--feedlog-blue-600);--feedlog-upvote-icon-filled-color:var(--feedlog-red-600);--feedlog-shadow:0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);--feedlog-shadow-hover-enhancement:0 8px 16px rgba(37, 99, 235, 0.08), 0 12px 24px rgba(37, 99, 235, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);--feedlog-shadow-hover-bug:0 8px 16px rgba(212, 24, 61, 0.08), 0 12px 24px rgba(212, 24, 61, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6)}:host(.dark){--feedlog-background:oklch(0.18 0.01 260);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.24 0.01 260);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.32 0.01 260);--feedlog-muted-foreground:oklch(0.72 0.02 260);--feedlog-border:oklch(0.34 0.01 260);--feedlog-accent-color:#3b82f6;--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-blue-300:oklch(0.78 0.12 255);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-upvote-icon-color:var(--feedlog-blue-400);--feedlog-upvote-icon-filled-color:var(--feedlog-red-600);--feedlog-shadow:0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);--feedlog-shadow-hover-enhancement:0 8px 16px rgba(59, 130, 246, 0.15), 0 12px 24px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);--feedlog-shadow-hover-bug:0 8px 16px rgba(220, 38, 38, 0.15), 0 12px 24px rgba(220, 38, 38, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08)}.issue-card{background:linear-gradient(180deg, var(--feedlog-card) 0%, color-mix(in oklab, var(--feedlog-card) 98%, var(--feedlog-muted) 2%) 100%);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-card-radius, var(--feedlog-radius));box-shadow:var(--feedlog-shadow);transition:box-shadow 0.2s ease,\\n transform 0.2s ease;position:relative;overflow:hidden}.issue-card.issue-type-enhancement:hover{box-shadow:var(--feedlog-shadow-hover-enhancement)}.issue-card.issue-type-bug:hover{box-shadow:var(--feedlog-shadow-hover-bug)}.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:0.875rem}.issue-header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:0.875rem}.issue-badges{display:flex;align-items:center;gap:0.375rem;flex-wrap:wrap;margin-left:-0.25rem}.issue-meta-right{display:flex;align-items:center;gap:0.5rem}.pinned-indicator{display:flex;align-items:center;color:var(--feedlog-pin-color, var(--feedlog-accent-color));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:0.75rem;margin-top:0.75rem;padding-top:1rem;border-top:1px solid var(--feedlog-border);flex-wrap:wrap}.issue-footer-meta{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;color:var(--feedlog-muted-foreground);flex-wrap:wrap}.issue-title{color:var(--feedlog-card-foreground);font-size:var(--feedlog-title-font-size);font-weight:var(--feedlog-title-font-weight);margin:0 0 0.5rem 0;line-height:1.3;letter-spacing:-0.015em;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 0.75rem 0;word-break:break-word}.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-accent-color);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:0.25rem;font-size:0.9em}.issue-body pre{margin:0.5em 0;padding:0.75rem;background-color:var(--feedlog-muted);border-radius:0.25rem;overflow-x:auto;font-size:0.85em}.issue-body pre code{background:none;padding:0}.issue-body strong{font-weight:600}.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:500}.github-link{display:inline-flex;align-items:center;gap:0.25rem;color:var(--feedlog-muted-foreground);text-decoration:none;font-weight:500;font-size:0.75rem;padding:0.25rem 0.5rem;border-radius:0.375rem;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-blue-600);font-weight:600}:host(.dark) .github-number{color:var(--feedlog-blue-400)}.upvote-button{display:inline-flex;flex-direction:row;align-items:center;border-radius:9999px;background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);border:1px solid #e2e8f0;cursor:pointer;transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);flex-shrink:0;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);overflow:hidden;padding:0.375rem 0.875rem;gap:0.5rem;font-family:inherit;line-height:1}.upvote-button:hover{background:linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.08),\\n 0 2px 4px -2px rgba(0, 0, 0, 0.04)}.upvote-button:active{transform:translateY(0);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.upvote-button.upvoted{background:linear-gradient(180deg, #eff6ff 0%, #e0e7ff 100%);border-color:#bfdbfe}.upvote-button.upvoted:hover{background:linear-gradient(180deg, #dbeafe 0%, #c7d2fe 100%);border-color:#93c5fd}.upvote-action{display:flex;flex-direction:row;align-items:center;gap:0.375rem;color:#475569;font-size:0.875rem;font-weight:600;transition:color 0.2s ease}.upvote-button:hover .upvote-action{color:#0f172a}.upvote-button.upvoted .upvote-action{color:#2563eb}.upvote-button.upvoted:hover .upvote-action{color:#1d4ed8}.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.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)}.upvote-button:hover .upvote-icon{transform:translateY(-2px)}.upvote-button:active .upvote-icon{transform:translateY(0) scale(0.9)}.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 #e2e8f0;padding-left:0.5rem;transition:border-color 0.2s ease}.upvote-button:hover .reel-container{border-color:#cbd5e1}.upvote-button.upvoted .reel-container{border-color:#bfdbfe}.upvote-button.upvoted:hover .reel-container{border-color:#93c5fd}.upvote-count{font-size:0.875rem;font-weight:600;color:#475569;transition:color 0.2s ease;line-height:1.25rem}.upvote-button:hover .upvote-count{color:#0f172a}.upvote-button.upvoted .upvote-count{color:#2563eb}.upvote-button.upvoted:hover .upvote-count{color:#1d4ed8}.reel-number{display:inline-block;animation:reelIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards}@keyframes reelIn{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0);opacity:1}}:host(.dark) .upvote-button{background:linear-gradient(180deg, var(--feedlog-card) 0%, color-mix(in oklab, var(--feedlog-card) 95%, var(--feedlog-muted) 5%) 100%);border-color:var(--feedlog-border)}:host(.dark) .upvote-button:hover{background:var(--feedlog-muted);border-color:var(--feedlog-muted-foreground)}:host(.dark) .upvote-button.upvoted{background:linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%);border-color:rgba(37, 99, 235, 0.3)}:host(.dark) .upvote-button.upvoted:hover{background:linear-gradient(180deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.3) 100%);border-color:rgba(37, 99, 235, 0.4)}:host(.dark) .upvote-action,:host(.dark) .upvote-count{color:var(--feedlog-muted-foreground)}:host(.dark) .upvote-button:hover .upvote-action,:host(.dark) .upvote-button:hover .upvote-count{color:var(--feedlog-card-foreground)}:host(.dark) .upvote-button.upvoted .upvote-action,:host(.dark) .upvote-button.upvoted .upvote-count{color:var(--feedlog-blue-400)}:host(.dark) .upvote-button.upvoted:hover .upvote-action,:host(.dark) .upvote-button.upvoted:hover .upvote-count{color:var(--feedlog-blue-300)}:host(.dark) .reel-container{border-color:var(--feedlog-border)}:host(.dark) .upvote-button:hover .reel-container{border-color:var(--feedlog-muted-foreground)}:host(.dark) .upvote-button.upvoted .reel-container{border-color:rgba(37, 99, 235, 0.3)}:host(.dark) .upvote-button.upvoted:hover .reel-container{border-color:rgba(37, 99, 235, 0.4)}"}},[257,"feedlog-issue",{issue:[16],issueUrl:[1,"issue-url"],theme:[1]}]);function Tt(){"undefined"!=typeof customElements&&["feedlog-issue","feedlog-badge"].forEach((t=>{switch(t){case"feedlog-issue":customElements.get(e(t))||customElements.define(e(t),_t);break;case"feedlog-badge":customElements.get(e(t))||a()}}))}Tt();export{_t as F,Tt as d,$t as p}