@vokril/ui-solid 0.20.2 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/StatusBarNotificationBell-B4v__j6s.cjs +50 -0
  3. package/dist/{StatusBarNotificationBell-CQkhUMHX.js → StatusBarNotificationBell-BRnCKU72.js} +1418 -1414
  4. package/dist/_internal/contract/browser/workspace.d.cts +2 -0
  5. package/dist/_internal/contract/browser/workspace.d.ts +2 -0
  6. package/dist/_internal/contract/notification.d.cts +10 -0
  7. package/dist/_internal/contract/notification.d.ts +10 -0
  8. package/dist/_internal/contract/notificationCatalog.d.cts +3 -1
  9. package/dist/_internal/contract/notificationCatalog.d.ts +3 -1
  10. package/dist/_internal/platform/settings/settingsTypes.d.cts +11 -7
  11. package/dist/_internal/platform/settings/settingsTypes.d.ts +11 -7
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/notifications/index.cjs +1 -1
  15. package/dist/notifications/index.js +1 -1
  16. package/dist/notifications/nativeEngine.d.cts +3 -1
  17. package/dist/notifications/nativeEngine.d.ts +3 -1
  18. package/dist/server/StatusBarNotificationBell-D9oc6WVf.cjs +49 -0
  19. package/dist/server/{StatusBarNotificationBell-C7zqUWP1.js → StatusBarNotificationBell-FFpOkyUk.js} +1467 -1463
  20. package/dist/server/index.cjs +1 -1
  21. package/dist/server/index.js +1 -1
  22. package/dist/server/notifications/index.cjs +1 -1
  23. package/dist/server/notifications/index.js +1 -1
  24. package/dist/solid/notifications/NotificationItem.jsx +4 -6
  25. package/dist/solid/notifications/catalogAdapter.js +1 -0
  26. package/dist/solid/notifications/createNotificationPreviewRuntime.js +3 -0
  27. package/dist/solid/notifications/fireNotification.js +1 -0
  28. package/dist/solid/notifications/notificationOverlaySnapshot.js +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/ui.css +1 -1
  31. package/package.json +1 -1
  32. package/dist/StatusBarNotificationBell-Dw9RRZK1.cjs +0 -50
  33. package/dist/server/StatusBarNotificationBell-SO16PL5V.cjs +0 -49
@@ -0,0 +1,49 @@
1
+ "use strict";var xs=Object.defineProperty;var Ds=(e,t,n)=>t in e?xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Oe=(e,t,n)=>Ds(e,typeof t!="symbol"?t+"":t,n);const dt=require("./electronBridge-cT0xww92.cjs"),uo=require("./bugIndicatingError-D2X5Hfgg.cjs"),q=require("./useSettingsSubscription-DKjCwmRd.cjs"),T=require("./i18n-DZ0JlZal.cjs"),Nt=require("./errorHandler-DoDAPpv2.cjs"),a=require("solid-js/web"),m=require("solid-js"),ui=require("solid-js/store"),Ur=require("./createDialogShellFocus-BiBAZOCI.cjs"),Hu=require("./OverlayScrollArea-D4e9D9Nd.cjs"),ri=require("./HostPortal-CgJwxt-f.cjs"),ro=require("./HostWindowContext-_VZCt7xE.cjs"),su=require("./kitHost-BfJExE1G.cjs"),io=require("./prefersReducedMotion-BQp-Q4UR.cjs"),Le=require("./Button-VKl-_GaO.cjs"),ut=require("./mainRealmDom-DwZVMPnO.cjs"),Fn=require("./DateRangePicker-Dq0HGz27.cjs"),Br=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),kn=require("./GuidedTour-BoPGRyX5.cjs"),rr=require("./iconScale.module-CzmKG1rf.cjs"),Te=require("./VpTrash-D49oUUJh.cjs"),oo=require("./VpAlertTriangle-BqDp6ZRi.cjs"),Rr=require("./VpClose-O8jHAcCB.cjs"),_n=require("./Popover-BsxIKBbl.cjs"),vt=require("./builtins-DM7FDxEt.cjs"),ks=require("./window-_BfSgFGO.cjs"),St=require("./keys-GMxY2wcl.cjs"),Hr=require("./Input-CjvD8w18.cjs"),Ls=require("./windowRegistry-CxXtP-iY.cjs"),vs=require("./VpDots-ZiJ27JK9.cjs"),ws=require("./VpCheck-CGTZXiSk.cjs"),Ms=require("./VpCopy-DsiWuj67.cjs"),Fs=require("./VpMinus-DUPk_dTT.cjs"),Ps=require("./isOneOf-9EXOSYJu.cjs"),Us=require("./EmptyState-BnAHklc5.cjs"),Bs="vk_bar_iSxMW",Hs="vk_barCompact_SCRfr",Gs="vk_search_P2Oii",zs="vk_dateBtn_v3RN1",Tu={bar:Bs,barCompact:Hs,search:Gs,dateBtn:zs};var $s=['<div class="','">',"","","</div>"];function so(e){return a.ssr($s,`${a.escape(Tu.bar,!0)} ${e.compact?a.escape(Tu.barCompact,!0):""} ${a.escape(e.class??"",!0)}`,a.escape(a.createComponent(Hr.Input,{type:"text",get class(){return Tu.search},get placeholder(){return e.searchPlaceholder??T.t("Search…")},get value(){return e.searchValue},onInput:t=>e.onSearchInput(t.currentTarget.value)})),a.escape(a.createComponent(m.Show,{get when(){return e.onDateRangeChange},get children(){return a.createComponent(Fn.DateRangePicker,a.mergeProps({get value(){return e.dateRange??null},onChange:t=>{var n;return(n=e.onDateRangeChange)==null?void 0:n.call(e,t)},get triggerClass(){return Tu.dateBtn}},()=>e.dateRangeAlign?{align:e.dateRangeAlign}:{}))}})),a.escape(e.children))}const Gr=["general","vendor-error","sql-execution","connection","ssh","schema","users","tablespaces","locking","monitoring","source-control","file-system","settings","rss","plugins","workspace","dev"];function co(e){return Ps.isOneOf(Gr,e)}function ao(e){return e.id===""}function cu(e,t){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return t.infoDurationMs;case"success":return t.successDurationMs;case"warning":return t.warningDurationMs;case"error":return t.errorDurationMs}}function au(e,t){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&t.errorsAlwaysSticky||e.severity==="warning"&&t.warningsAlwaysSticky)return!0;const n=e.durationMs;return n!==void 0&&(!Number.isFinite(n)||n<=0)}function zr(e){const{getSettings:t,warn:n}=e,u=e.now??(()=>Date.now()),r=e.setTimeout??((I,G)=>window.setTimeout(I,G)),i=e.clearTimeout??(I=>window.clearTimeout(I)),s=e.recordAutoFade,o=new Map,c=new Set,l=new Map;function p(){return[...o.values()].sort((I,G)=>I.createdAt-G.createdAt)}function d(I){const G=t();if(!G.pauseTimerWhileHidden)return!1;const Q=p(),de=Math.max(1,G.maxVisibleNotifications);if(Q.length<=de)return!1;const re=Q.length-de,he=Q.findIndex(je=>je.id===I);return he>=0&&he<re}function b(){for(const I of o.keys()){if(l.has(I)){d(I)&&O(I);continue}w(I)}}function E(){const I=p();for(const G of Array.from(c))try{G(I)}catch(Q){n("a notification engine listener threw:",Q)}b()}function g(I){return!!(au(I,t())||I.hovered||I.focused)}function x(I){return cu(I,t())}function O(I){const G=l.get(I);G!==void 0&&(i(G),l.delete(I))}function w(I){O(I);const G=o.get(I);if(!G||g(G)||d(I))return;const Q=x(G);if(!Number.isFinite(Q)||Q<=0)return;const de=r(()=>{l.delete(I);const re=o.get(I);re&&(g(re)||(s(re.source??"general"),o.delete(I),E()))},Q);l.set(I,de)}let C=0;function D(){return C+=1,`n-${u().toString(36)}-${C.toString(36)}`}const v=800,y=3,L=[];function U(){const I=u();for(;L.length>0&&(L[0]??0)<I-v;)L.shift();return L.length>=y}function Y(){L.push(u())}function j(I){return!I||I.length===0?"":I.filter(G=>G.primary).map(G=>`${G.id??""}::${G.label}`).sort().join("|")}function me(I){const G=I.source??"",Q=j(I.actions);for(const[de,re]of o)if((re.source??"")===G&&re.title===I.title&&j(re.actions)===Q)return de;return null}function se(I){const G=I.id,Q=G??me(I),de=Q===null;if(de&&!G&&U())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{}};const re=Q??D(),he=o.get(re),je={...I,id:re,createdAt:(he==null?void 0:he.createdAt)??u(),expanded:(he==null?void 0:he.expanded)??!1,hovered:(he==null?void 0:he.hovered)??!1,focused:(he==null?void 0:he.focused)??!1};return o.set(re,je),de&&Y(),E(),w(re),{id:re,update(It){const ce=o.get(re);ce&&(o.set(re,{...ce,...It}),E(),w(re))},setProgress(It){const ce=o.get(re);ce&&(o.set(re,{...ce,progress:It}),E(),w(re))},close(){O(re),o.delete(re)&&E()}}}function H(I){return c.add(I),I(p()),()=>{c.delete(I)}}function oe(I,G){const Q=o.get(I);!Q||Q.hovered===G||(o.set(I,{...Q,hovered:G}),E(),G?O(I):w(I))}function pe(I,G){const Q=o.get(I);!Q||Q.focused===G||(o.set(I,{...Q,focused:G}),E(),G?O(I):w(I))}function K(I){const G=o.get(I);G&&(o.set(I,{...G,expanded:!G.expanded}),E(),w(I))}function Se(I){O(I),o.delete(I)&&E()}function Ae(){for(const I of l.keys())O(I);o.clear(),c.clear()}return{notify:se,subscribe:H,setHover:oe,setFocus:pe,toggleExpanded:K,close:Se,dispose:Ae}}function wu(e,t){return t.vendorError===void 0?null:dt.resolveVendorError(e,t.vendorError)}function Qn(e){if(e)return[{label:e.label,onClick:e.onClick,primary:!0}]}const Vs=200;class lo{constructor(t){Oe(this,"entries",[]);Oe(this,"listeners",new Set);Oe(this,"unreadSeq",0);Oe(this,"seenSeq",0);Oe(this,"unreadListeners",new Set);Oe(this,"lastSyncedBadge",-1);this.deps=t}add(t,n,u="general",r="default",i,s){if(!t.trim())return;const o={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:Nt.scrubSecrets(t),tone:n,createdAt:Date.now(),source:u,priority:r,...i&&i.length>0?{actions:i}:{},...s?{vendorError:s}:{}};this.write([o,...this.entries]),this.unreadSeq+=1,this.notifyUnread()}subscribe(t){return this.listeners.add(t),t([...this.entries]),()=>{this.listeners.delete(t)}}subscribeUnread(t){return this.unreadListeners.add(t),t(this.unreadCount()),()=>{this.unreadListeners.delete(t)}}find(t){return this.entries.find(n=>n.id===t)}markSeen(){this.seenSeq!==this.unreadSeq&&(this.seenSeq=this.unreadSeq,this.notifyUnread())}clear(){this.write([])}dismiss(t){this.write(this.entries.filter(n=>n.id!==t))}dismissMany(t){if(t.length===0)return;const n=new Set(t);this.write(this.entries.filter(u=>!n.has(u.id)))}dismissBySource(t){this.write(this.entries.filter(n=>n.source!==t))}togglePin(t){this.write(this.entries.map(n=>{if(n.id!==t)return n;const{pinnedAt:u,...r}=n;return n.pinned?{...r,pinned:!1}:{...r,pinned:!0,pinnedAt:Date.now()}}))}refreshBadge(){this.lastSyncedBadge=-1,this.syncBadge(this.unreadCount())}unreadCount(){return Math.max(0,this.unreadSeq-this.seenSeq)}write(t){const n=[...t].sort((o,c)=>c.createdAt-o.createdAt),u=n.filter(o=>o.pinned===!0),i=n.filter(o=>o.pinned!==!0).slice(0,Math.max(0,Vs-u.length)),s=[...u].sort((o,c)=>(c.pinnedAt??c.createdAt)-(o.pinnedAt??o.createdAt));this.entries=[...s,...i];for(const o of Array.from(this.listeners))try{o(this.entries)}catch(c){this.deps.warn("a timeline listener threw:",c)}}notifyUnread(){const t=this.unreadCount();for(const n of Array.from(this.unreadListeners))try{n(t)}catch(u){this.deps.warn("an unread count listener threw:",u)}this.syncBadge(t)}syncBadge(t){const n=q.notificationSettings.get(),u=n.badgeCountEnabled?Math.min(t,n.badgeCountMax):0;u!==this.lastSyncedBadge&&(this.lastSyncedBadge=u,this.deps.setBadgeCount(u))}}class Ws{constructor(){Oe(this,"stats",new Map)}recordFire(t,n,u){const r=this.bucket(t);r.total+=1,n&&(r.shown+=1),u&&(r.muted+=1)}recordClick(t){this.bucket(t).clicked+=1}recordDismiss(t){this.bucket(t).dismissed+=1}recordAutoFade(t){this.bucket(t).autoFaded+=1}snapshot(){return[...this.stats.values()].map(t=>({...t})).sort((t,n)=>n.total-t.total)}reset(){this.stats.clear()}bucket(t){let n=this.stats.get(t);return n||(n={source:t,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},this.stats.set(t,n)),n}}class qs{constructor(t){Oe(this,"dataUrls",new Map);Oe(this,"inFlight",new Map);this.readAudioAsDataUrl=t}async load(t){const n=this.dataUrls.get(t);if(n)return n;let u=this.inFlight.get(t);return u||(u=this.readAudioAsDataUrl(t).then(r=>(this.inFlight.delete(t),r&&this.dataUrls.set(t,r),r)),this.inFlight.set(t,u)),await u??void 0}invalidate(){this.dataUrls.clear(),this.inFlight.clear()}}const fo={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},Ys={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},Xs={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function po(e,t,n){if(!t[Ys[e]]||t.quietHoursMutesSounds&&n)return null;const u=t[Xs[e]].trim();if(u)return{kind:"custom",path:u};const r=fo[e];return{kind:"builtin",freq:r.freq,ms:r.ms}}class Ks{constructor(t,n){Oe(this,"context",null);Oe(this,"contextFailed",!1);this.sounds=t,this.log=n}playQueryCompletedCue(){this.playTone(800,200)}playSeverityToneIfEnabled(t,n){const u=po(t,q.notificationSettings.get(),n);if(u){if(u.kind==="custom"){this.playCustomSound(u.path);return}this.playTone(u.freq,u.ms)}}dispose(){const t=this.context;this.context=null,t&&t.close().catch(n=>{this.log.warn("AudioContext could not be closed:",n)})}audioContext(){if(this.contextFailed)return null;if(this.context)return this.context;try{const t=window.AudioContext??window.webkitAudioContext;return t?(this.context=new t,this.context):(this.contextFailed=!0,null)}catch(t){return this.contextFailed=!0,this.log.warn("AudioContext could not be created; notification sounds are off:",t),null}}async playCustomSound(t){const n=await this.sounds.load(t);if(n)try{const u=new Audio(n);u.volume=.6,await u.play()}catch(u){this.log.warn("Custom notification sound could not be played:",u)}}playTone(t,n){const u=this.audioContext();if(u)try{const r=u.currentTime,i=u.createOscillator(),s=u.createGain();i.connect(s),s.connect(u.destination),i.frequency.value=t,s.gain.setValueAtTime(.3,r),s.gain.exponentialRampToValueAtTime(.01,r+n/1e3),i.start(r),i.stop(r+n/1e3)}catch(r){this.log.warn("Notification tone could not be played:",r)}}}const Ir="notification.emailDigestSmtpPass",Or="notification.webhook.url.";function eu(e){return`${Or}${e}`}function ho(e){return e.get(Ir)}async function Zs(e,t){t?await e.set(Ir,t):await e.delete(Ir)}function go(e,t){return e.get(eu(t))}async function js(e,t,n){n?await e.set(eu(t),n):await e.delete(eu(t))}function Qs(e,t){return e.delete(eu(t))}async function Js(e,t){const n=new Set(t),u=(await e.keys()).filter(r=>r.startsWith(Or)).map(r=>r.slice(Or.length)).filter(r=>!n.has(r));await Promise.all(u.map(r=>e.delete(eu(r))))}const ec={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},tc={info:1668818,success:3046706,warning:16088064,error:12986408};function nc(e,t){const{severities:n,priorities:u,sources:r}=e.filters;return!(n.length>0&&!n.includes(t.severity)||u.length>0&&!u.includes(t.priority)||r.length>0&&!r.includes(t.source))}function uc(e,t){switch(e.type){case"slack":return{text:t.title,attachments:[{color:ec[t.severity],fields:[{title:"Source",value:t.source,short:!0},{title:"Severity",value:t.severity,short:!0},{title:"Priority",value:t.priority,short:!0}],text:t.body??""}]};case"discord":return{embeds:[{title:t.title,description:t.body??"",color:tc[t.severity],fields:[{name:"Source",value:t.source,inline:!0},{name:"Severity",value:t.severity,inline:!0},{name:"Priority",value:t.priority,inline:!0}]}]};case"generic":default:return{title:t.title,body:t.body??"",severity:t.severity,priority:t.priority,source:t.source,timestamp:Date.now()}}}class rc{constructor(t,n){this.secrets=t,this.log=n}dispatch(t){const n=q.notificationSettings.get().webhooks.filter(u=>u.enabled&&nc(u,t));for(const u of n)this.deliver(u,t)}async deliver(t,n){try{const u=await go(this.secrets,t.id)??"";if(!u)return;await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(uc(t,n))})}catch(u){this.log.warn("Webhook delivery failed:",u)}}}const ii=500,oi={info:0,success:1,warning:2,error:3},Su=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function ic(e,t){const n=t.map(u=>`<tr>
2
+ <td style="padding:4px 8px">${new Date(u.at).toISOString().slice(11,19)}</td>
3
+ <td style="padding:4px 8px"><strong>${u.severity}</strong></td>
4
+ <td style="padding:4px 8px">${Su(u.source)}</td>
5
+ <td style="padding:4px 8px">${Su(u.title)}${u.body?`<br><small>${Su(u.body)}</small>`:""}</td>
6
+ </tr>`).join(`
7
+ `);return`<!doctype html>
8
+ <html><body>
9
+ <h2>${e?`${Su(e)} notification digest`:"Notification digest"}</h2>
10
+ <p>${t.length} notification(s) since the last digest.</p>
11
+ <table style="border-collapse:collapse">
12
+ <thead><tr style="background:#eee">
13
+ <th style="padding:4px 8px;text-align:left">Time (UTC)</th>
14
+ <th style="padding:4px 8px;text-align:left">Severity</th>
15
+ <th style="padding:4px 8px;text-align:left">Source</th>
16
+ <th style="padding:4px 8px;text-align:left">Message</th>
17
+ </tr></thead>
18
+ <tbody>
19
+ ${n}
20
+ </tbody></table>
21
+ </body></html>`}function oc(e){const t=e.map(n=>`[${new Date(n.at).toISOString()}] ${n.severity.toUpperCase()} (${n.source}): ${n.title}${n.body?` — ${n.body}`:""}`);return`${e.length} notification(s):
22
+
23
+ ${t.join(`
24
+ `)}`}function sc(e){const t=q.notificationSettings.get();if(!t.emailDigestEnabled)return!1;const n=e.getHours(),u=e.getMinutes(),r=e.getDay();switch(t.emailDigestSchedule){case"hourly":return u===0;case"daily-9am":return n===9&&u===0;case"daily-5pm":return n===17&&u===0;case"weekly-mon-9am":return r===1&&n===9&&u===0}}class cc{constructor(t){Oe(this,"queue",[]);Oe(this,"lastSentMinute",0);Oe(this,"scheduler");this.deps=t,this.scheduler=setInterval(()=>this.tick(),6e4)}enqueue(t){const n=q.notificationSettings.get();n.emailDigestEnabled&&(oi[t.severity]<oi[n.emailDigestMinSeverity]||(this.queue.push(t),this.queue.length>ii&&this.queue.splice(0,this.queue.length-ii)))}async flush(){const t=q.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(this.queue.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const n=this.queue.splice(0,this.queue.length),u=this.deps.appName;try{const r=await ho(this.deps.secrets)??"";return await this.deps.send({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:r},from:t.emailDigestFrom,to:t.emailDigestTo,subject:`${u?`[${u}] `:""}${n.length} notification(s)`,html:ic(u,n),text:oc(n)}),{kind:"sent",count:n.length}}catch(r){return this.queue.unshift(...n),{kind:"not-sent",reason:{kind:"send-failed",error:r}}}}notSentText(t){switch(t.kind){case"disabled":return T.t("Email digest is turned off.");case"smtp-incomplete":return T.t("SMTP host, sender and recipient are required.");case"send-failed":return this.deps.errorText(t.error,T.t("The digest could not be sent."))}}dispose(){clearInterval(this.scheduler)}tick(){const t=new Date;if(!sc(t))return;const n=Math.floor(t.getTime()/6e4);n!==this.lastSentMinute&&(this.lastSentMinute=n,this.flush().then(u=>{u.kind==="not-sent"&&u.reason.kind==="send-failed"&&this.deps.log.warn("scheduled email digest failed",u.reason.error)}))}}const xu=new Map;function Eo(){xu.clear()}function ac(e){if(xu.has(e))return xu.get(e)??null;let t;try{t=new RegExp(e,"i")}catch{t=null}return xu.set(e,t),t}function lc(e,t){const n=e.conditions;if(n.source&&n.source!==t.source||n.severities&&n.severities.length>0&&!n.severities.includes(t.severity))return!1;if(n.titleRegex){const u=ac(n.titleRegex);if(!u||!u.test(t.title))return!1}return!0}function $r(e,t){if(t.length===0)return e;let n={...e};for(const u of t)if(u.enabled&&lc(u,n)){if(u.actions.suppress===!0)return null;if(u.actions.setSeverity&&(n={...n,severity:u.actions.setSeverity}),u.actions.setPriority&&(n={...n,priority:u.actions.setPriority}),u.actions.addPrefix){const r=u.actions.addPrefix.trim();r&&(n={...n,title:`${r} ${n.title}`})}}return n}function si(e){const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),u=Number(t[2]);return n>23||u>59?null:n*60+u}function Vr(e,t){if(!e.quietHoursEnabled||!e.quietHoursWeekdays.includes(t.getDay()))return!1;const n=si(e.quietHoursStart),u=si(e.quietHoursEnd);if(n===null||u===null||n===u)return!1;const r=t.getHours()*60+t.getMinutes();return n<u?r>=n&&r<u:r>=n||r<u}function fc(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Wr(e,t){return`__remind:${e}:${t}`}function Mu(e,t,n){const{priority:u}=e,r=e.recordTimeline!==!1;if(!t.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(n.dismissed)return{showToast:!1,recordTimeline:!1};if(n.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(u==="silent")return{showToast:!1,recordTimeline:r};const i=u==="urgent"||u==="acknowledgment-required";return t.doNotDisturb&&(!i||u==="urgent"&&t.dndBlocksUrgent)?{showToast:!1,recordTimeline:r}:n.inQuietHours&&(!i||u==="urgent"&&t.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:r}:i?t.urgentRoutesToCenterOnly&&u==="urgent"?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}:n.sourceMuted?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}}const yr={info:0,success:1,warning:2,error:3};function bo(e,t){return t.osNativeEnabled?e.priority==="urgent"&&t.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:yr[e.severity]<yr[t.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:t.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const dc={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function pc(e,t){if(t)return t;if(e!==void 0)return dc[e]}function mn(e){return q.notificationSettings.get().mutedSources.includes(e)}function _o(e){return q.notificationSettings.get().dontShowAgainKeys.includes(e)}function xr(e){const t=Date.now();return q.notificationSettings.get().remindersUntil.some(u=>u.key===e&&u.remindAt>t)}async function mo(e,t){if(!e||t<=0)return;const n=q.notificationSettings.get(),u=Date.now()+t,i=[...n.remindersUntil.filter(s=>s.key!==e),{key:e,remindAt:u}];q.notificationSettings.applyFromBroadcast({...n,remindersUntil:i}),await q.notificationSettings.update({...n,remindersUntil:i})}async function Ao(e,t){const n=q.notificationSettings.get(),u=t?Array.from(new Set([...n.mutedSources,e])):n.mutedSources.filter(r=>r!==e);q.notificationSettings.applyFromBroadcast({...n,mutedSources:u}),await q.notificationSettings.update({...n,mutedSources:u})}async function To(e){const t=q.notificationSettings.get();if(t.dontShowAgainKeys.includes(e))return;const n=[...t.dontShowAgainKeys,e];q.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await q.notificationSettings.update({...t,dontShowAgainKeys:n})}async function hc(e){const t=q.notificationSettings.get();if(!t.dontShowAgainKeys.includes(e))return;const n=t.dontShowAgainKeys.filter(u=>u!==e);q.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await q.notificationSettings.update({...t,dontShowAgainKeys:n})}async function gc(){const e=q.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(q.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await q.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function Ec(){const e=q.notificationSettings.get();e.mutedSources.length!==0&&(q.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await q.notificationSettings.update({...e,mutedSources:[]}))}function So(){return Vr(q.notificationSettings.get(),new Date)}function jn(e,t,n,u,r){const i=q.notificationSettings.get(),s=Wr(e,t);return Mu({priority:n,recordTimeline:r},i,{dismissed:u!==void 0&&_o(u),remindSuppressed:u!==void 0&&xr(u)||xr(s),sourceMuted:mn(e),inQuietHours:So()})}function bc(e,t,n,u,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{e.analytics.recordClick(u);try{t.onClick()}finally{const i=n();t.expireOnAction!==!1&&i&&e.engine.close(i)}}}}function Du(e,t){var x,O;const n=t.options.source??"general";if(e.analytics.recordFire(n,t.decision.showToast,mn(n)),!t.decision.showToast)return null;e.audio.playSeverityToneIfEnabled(t.severity,So());const{options:u}=t,r=((x=u.subtitle)==null?void 0:x.trim())||((O=u.description)==null?void 0:O.trim()),i=u.id!==void 0?String(u.id):void 0,s=q.notificationSettings.get(),o=u.markdown??s.markdownEnabled,c=[...t.primaryAction?[t.primaryAction]:[],...u.actions??[]],l=pc(u.source,u.defaultRoute);let p=null;const d=e.engine.notify({severity:t.severity,title:t.title,...r?{body:r}:{},...o?{markdown:!0}:{},source:u.source??"general",priority:u.priority??"default",...u.duration!==void 0?{durationMs:u.duration}:{},...u.dontShowAgainKey?{neverShowAgainKey:u.dontShowAgainKey}:{},...i?{id:i}:{},...u.icon?{icon:u.icon}:{},...u.announce?{announce:u.announce}:{},...l?{defaultRoute:l}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c.map((w,C)=>bc(e,w,()=>p==null?void 0:p.id,n,C===0))}:{}});if(p=d,ao(d))return d;const b=Nt.scrubSecrets(t.title),E=r?Nt.scrubSecrets(r):void 0,g={title:b,...E?{body:E}:{},severity:t.severity,priority:u.priority??"default",source:u.source??"general"};return _c(e,g),e.webhooks.dispatch(g),e.digest.enqueue({...g,at:Date.now()}),d}function _c(e,t){const n=bo(t,q.notificationSettings.get());n.fire&&e.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:n.onlyWhenUnfocused})}function Dn(e){return typeof e=="string"?e:e instanceof Error?e.message:e==null?"":String(e)}function qr(e,t,n,u){var p,d,b;const r=Dn(e),i=(p=t.title)==null?void 0:p.trim(),s=((d=t.subtitle)==null?void 0:d.trim())||((b=t.description)==null?void 0:b.trim());let o=i??r,c=s;if(n&&!i){const E=n.helpers.formatCode(n.code),g=new RegExp(`^\\s*${fc(E)}\\s*[:-]\\s*(.+)$`,"i"),x=r.match(g);if(x!=null&&x[1]){o=E;const O=x[1].trim();c=c?`${O}
25
+
26
+ ${c}`:O}}let l=t.action;if(!l&&n){const E=n.helpers.docsUrl(n.code);E&&(l={label:`${n.helpers.formatCode(n.code)} ${n.helpers.docsLinkLabel}`,onClick:()=>u(E)})}return{text:r,displayText:o,bodyText:c,primaryAction:l}}function Dr(e){return $r(e,q.notificationSettings.get().notificationRules)}function mc(e){const{sinks:t,timeline:n}=e;return{success(u,r={}){const i=Dn(u),s=q.notificationSettings.get(),o=Dr({severity:"success",title:i,priority:r.priority??"default",source:r.source??"general"});if(!o)return"";const c=jn(o.source,o.title,o.priority,r.dontShowAgainKey,r.recordTimeline);if(c.recordTimeline&&n.add(o.title,o.severity,o.source,o.priority,Qn(r.action)),!s.showSuccessToasts&&o.priority!=="urgent")return"";const l=Du(t,{severity:o.severity,title:o.title,options:{...r,source:o.source,priority:o.priority},decision:c,...r.action?{primaryAction:r.action}:{}});return(l==null?void 0:l.id)??""},error(u,r={}){const i=Dn(u),s=r.vendorError===void 0?null:dt.resolveVendorError(e.vendorErrors,r.vendorError),o=qr(i,r,s,e.openExternal),c=s!==null,l=o.bodyText,p=l?`${o.displayText}
27
+ ${l}`:i,d=c&&q.notificationSettings.get().vendorCodesAreUrgent,b=Dr({severity:"error",title:o.displayText,priority:r.priority??(d?"urgent":"default"),source:r.source??(c?"vendor-error":"general")});if(!b)return"";const{source:E,priority:g}=b,x=jn(E,b.title,g,r.dontShowAgainKey,r.recordTimeline);x.recordTimeline&&n.add(p,b.severity,E,g,Qn(r.action),r.vendorError);const O=Du(t,{severity:b.severity,title:b.title,options:{...r,source:E,priority:g,...l?{description:l}:{}},decision:x,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(O==null?void 0:O.id)??""},info(u,r={}){return ci(e,"info",u,r)},warning(u,r={}){return ci(e,"warning",u,r)},queryCompleted(u,r={}){const i=Dn(u),s=q.notificationSettings.get(),o=r.source??"sql-execution",c=r.priority??"default",l=jn(o,i,c,r.dontShowAgainKey,r.recordTimeline);if(l.recordTimeline&&n.add(i,"success",o,c,Qn(r.action)),s.notificationsEnabled&&s.soundOnQueryCompletion&&!(s.quietHoursMutesSounds&&Vr(s,new Date))&&t.audio.playQueryCompletedCue(),!s.showSuccessToasts&&c!=="urgent")return"";const p=Du(t,{severity:"success",title:i,options:{...r,source:o,priority:c},decision:l,...r.action?{primaryAction:r.action}:{}});return(p==null?void 0:p.id)??""},progress(u,r={}){const i=Dn(u),s=r.onCancel,o=r.source??"general",c=r.priority??"default",l=jn(o,i,c,r.dontShowAgainKey,r.recordTimeline);if(l.recordTimeline&&n.add(i,"info",o,c),!l.showToast)return{update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{}};const p=r.id!==void 0?String(r.id):`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=t.engine.notify({id:p,severity:"info",title:i,source:o,priority:c,sticky:!0,progress:s?{onCancel:s}:{}});return{update:(b,E)=>{d.update({title:b}),E!==void 0&&d.setProgress({value:Math.max(0,Math.min(1,E)),...s?{onCancel:s}:{}})},success:b=>{const E=b??i;l.recordTimeline&&n.add(E,"success",o,c),d.update({title:E,severity:"success",sticky:!1,progress:{done:!0}})},fail:b=>{const E=b??i;l.recordTimeline&&n.add(E,"error",o,c),d.update({title:E,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>d.close()}}}}function ci(e,t,n,u){const r=Dr({severity:t,title:Dn(n),priority:u.priority??"default",source:u.source??"general"});if(!r)return"";const i=jn(r.source,r.title,r.priority,u.dontShowAgainKey,u.recordTimeline);i.recordTimeline&&e.timeline.add(r.title,r.severity,r.source,r.priority,Qn(u.action));const s=Du(e.sinks,{severity:r.severity,title:r.title,options:{...u,source:r.source,priority:r.priority},decision:i,...u.action?{primaryAction:u.action}:{}});return(s==null?void 0:s.id)??""}function Co(e,t,n){if(!("cause"in e))return e;const{cause:u,...r}=e,i=t(u).map(n);return i.length===0?r:{...r,actions:[...r.actions??[],...i]}}function Ac(e){return t=>({label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e)}})}function ai(e,t){return{...e.severity==="error"&&e.source==="general"?{}:{source:e.source},...e.severity==="error"&&e.priority==="default"?{}:{priority:e.priority},...t.subtitle?{subtitle:t.subtitle}:{},...t.description?{description:t.description}:{},...t.action?{action:t.action}:{},...t.actions?{actions:t.actions}:{},...t.duration!==void 0?{duration:t.duration}:{},...t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t.icon?{icon:t.icon}:{},...t.markdown!==void 0?{markdown:t.markdown}:{},...t.recordTimeline!==void 0?{recordTimeline:t.recordTimeline}:{},...t.id!==void 0?{id:t.id}:{},...t.announce!==void 0?{announce:t.announce}:{}}}function Tc(e){const t=Ac(e.onActionFailed),n=u=>Co(u,e.errorActions,t);return{notify(u,r){const i=n(r);if(u.delivery==="os-only"){const o=i.title??i.message,c=i.description??i.subtitle??(i.title?i.message:void 0);return e.osNotify({title:o,...c?{body:c}:{},severity:u.severity,urgent:u.priority==="urgent",onlyWhenUnfocused:!1}),""}const s=ai(u,i);if(u.kind==="query-completed")return e.toast.queryCompleted(i.message,s);switch(u.severity){case"success":return e.toast.success(i.message,s);case"error":{const o={...s,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return e.toast.error(i.message,o)}case"warning":return e.toast.warning(i.message,s);case"info":return e.toast.info(i.message,s)}},progress(u,r){const i=n(r);if(u.delivery!=="in-app")throw new uo.BugIndicatingError("Progress notifications require an in-app catalog definition.");return e.toast.progress(i.message,{...ai(u,i),...i.onCancel?{onCancel:i.onCancel}:{}})}}}function Yr(e,t,n,u){return e==="error"&&t==="default"&&n&&u?"urgent":t}function Sc(e,t,n){var p;const u=n.vendorError===void 0?null:dt.resolveVendorError(e.vendorErrors,n.vendorError),r=t.severity==="error"?qr(n.message,{...n.title?{title:n.title}:{},...n.subtitle?{subtitle:n.subtitle}:{},...n.description?{description:n.description}:{},...n.action?{action:n.action}:{}},u,e.openExternal):null,i=(r==null?void 0:r.displayText)??n.title??n.message,s=(r==null?void 0:r.bodyText)??n.subtitle??n.description,o=(r==null?void 0:r.primaryAction)??n.action,c=t.severity==="error"&&t.source==="general"&&u!==null?"vendor-error":t.source,l=Yr(t.severity,t.priority,u!==null,q.notificationSettings.get().vendorCodesAreUrgent);return e.engine.notify({severity:t.severity,title:Nt.scrubSecrets(i),...s?{body:Nt.scrubSecrets(s)}:{},source:c,priority:l,isolated:!0,...n.duration!==void 0?{durationMs:n.duration}:{},...n.id!==void 0?{id:`dev-preview:${n.id}`}:{},...n.icon?{icon:n.icon}:{},...n.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...o||(p=n.actions)!=null&&p.length?{actions:[o,...n.actions??[]].filter(d=>d!==void 0).map((d,b)=>({id:`dev-preview-action-${b}`,label:d.label,primary:b===0,onClick:()=>{d.onClick()}}))}:{}}).id}function Gu(e,t){return{message:e,...t!=null&&t.title?{title:t.title}:{},...t!=null&&t.subtitle?{subtitle:t.subtitle}:{},...t!=null&&t.description?{description:t.description}:{},...t!=null&&t.action?{action:t.action}:{},...(t==null?void 0:t.duration)!==void 0?{duration:t.duration}:{},...t!=null&&t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t!=null&&t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t!=null&&t.icon?{icon:t.icon}:{},...(t==null?void 0:t.markdown)!==void 0?{markdown:t.markdown}:{},...(t==null?void 0:t.recordTimeline)!==void 0?{recordTimeline:t.recordTimeline}:{},...(t==null?void 0:t.id)!==void 0?{id:t.id}:{},...t!=null&&t.onCancel?{onCancel:t.onCancel}:{}}}const Cc=ut.defineNotification({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Gu(e,t)),Nc=ut.defineNotification({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Gu(e,t)),Rc=ut.defineNotification({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Gu(e,t)),Ic=ut.defineNotification({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Gu(e,t)),Oc=ut.defineNotification({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:e})=>({message:T.t("Exported {count} notifications",{count:e})})),yc=ut.defineNotification({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:T.t("Export failed: {message}",{message:t(e,T.t("Operation failed."))}),cause:e})),xc=ut.defineNotification({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:T.t("The action could not be completed: {message}",{message:t(e,T.t("Operation failed."))}),cause:e})),No=ut.defineNotification({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:t(e,T.t("Operation failed.")),cause:e}));class Dc{constructor(t){Oe(this,"renderHost");Oe(this,"toast");Oe(this,"stack");Oe(this,"timeline");Oe(this,"onDidRequestNavigation");Oe(this,"engine");Oe(this,"analytics",new Ws);Oe(this,"sounds");Oe(this,"audio");Oe(this,"digest");Oe(this,"delivery");Oe(this,"navigation",new dt.Emitter);Oe(this,"log");Oe(this,"onSettingsChanged");this.deps=t;const n=t.log.withTag("Notifications");this.log=n,this.renderHost={errorText:t.errorPresenter.text},this.engine=zr({getSettings:()=>q.notificationSettings.get(),recordAutoFade:r=>this.analytics.recordAutoFade(r),warn:(r,i)=>n.warn(r,i)}),this.stack=this.engine,this.timeline=new lo({setBadgeCount:r=>this.unawaited("the OS badge could not be set",t.desktop.setBadgeCount(r)),warn:(r,i)=>n.warn(r,i)}),this.sounds=new qs(r=>t.desktop.readAudioAsDataUrl(r).catch(i=>(n.warn("custom sound could not be read",{filePath:r,error:i}),null))),this.audio=new Ks(this.sounds,n),this.digest=new cc({secrets:t.secrets,send:t.sendEmailDigest,appName:t.appName,errorText:t.errorPresenter.text,log:n});const u=r=>this.unawaited("the OS notification was not shown",t.desktop.osNotify(r));this.toast=mc({sinks:{engine:this.engine,analytics:this.analytics,audio:this.audio,webhooks:new rc(t.secrets,n),digest:this.digest,osNotify:u},timeline:this.timeline,vendorErrors:t.vendorErrors,openExternal:r=>dt.openExternalUrl(t.desktop,n,r)}),this.delivery=Tc({toast:this.toast,osNotify:u,errorActions:t.errorPresenter.actions,onActionFailed:r=>this.notify(xc,{cause:r})}),this.onDidRequestNavigation=this.navigation.event,this.onSettingsChanged=()=>{Eo(),this.sounds.invalidate(),this.timeline.refreshBadge()},window.addEventListener(q.notificationSettings.changeEvent,this.onSettingsChanged)}notify(t,n){return this.delivery.notify(t,t.build(n,this.renderHost))}progress(t,n){if(t.kind!=="progress")throw new uo.BugIndicatingError("notifications: a message definition cannot be delivered as progress.");return this.delivery.progress(t,t.build(n,this.renderHost))}showPreview(t,n){return Sc({engine:this.engine,vendorErrors:this.deps.vendorErrors,openExternal:u=>dt.openExternalUrl(this.deps.desktop,this.log,u)},t,n)}dismissEntry(t){const n=this.timeline.find(t);n!==void 0&&(this.analytics.recordDismiss(n.source),this.timeline.dismiss(t))}flushDigest(){return this.digest.flush()}digestNotSentText(t){return this.digest.notSentText(t)}getStatsSnapshot(){return this.analytics.snapshot()}resetStats(){this.analytics.reset()}requestNavigation(t){this.navigation.fire(t)}dispose(){window.removeEventListener(q.notificationSettings.changeEvent,this.onSettingsChanged),this.digest.dispose(),this.audio.dispose(),this.engine.dispose(),this.navigation.dispose()}unawaited(t,n){Promise.resolve(n).catch(u=>this.log.debug(t,u))}}function Ro(e,t){const n=e.trim();if(!n)return null;if(t)try{const u=new RegExp(n,"i");return{test:r=>u.test(r)}}catch{return li(n)}return li(n)}function li(e){const t=e.toLowerCase();return{test:n=>n.toLowerCase().includes(t)}}function Io(e,t){const{tones:n,sources:u,priorities:r,dateBounds:i,searchMatcher:s}=t;return e.filter(o=>!(n.size>0&&!n.has(o.tone)||u.size>0&&!u.has(o.source)||r.size>0&&!r.has(o.priority)||i&&(o.createdAt<i.start||o.createdAt>i.end)||s&&!s.test(`${o.message} ${o.source}`)))}const kc="acknowledgment-required";function Oo(e){return e.filter(t=>t.priority!==kc).map(t=>t.id)}const Lc={general:{label:"General",description:"Uncategorized notifications. Default for callers that do not pass a source."},"vendor-error":{label:"Database errors",description:"Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."},"sql-execution":{label:"SQL execution",description:"Query completion / cancellation / failure notifications."},connection:{label:"Connection",description:"Connect, disconnect, test, vault credential events."},ssh:{label:"SSH & terminal",description:"SSH dock, tunnels, terminal lifecycle."},schema:{label:"Schema browser",description:"DDL extraction, copy-name, refresh."},users:{label:"Users",description:"User management — create, unlock, alter."},tablespaces:{label:"Tablespaces",description:"Tablespace creation, quota warnings."},locking:{label:"Locking",description:"Blocking sessions and deadlock alerts."},monitoring:{label:"Monitoring",description:"Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."},"source-control":{label:"Source control",description:"Git commit / pull / push outcomes."},"file-system":{label:"File system",description:"Save, copy, paste, image clipboard."},settings:{label:"Settings",description:"Preference saves, layout reset, import/export."},rss:{label:"RSS feeds",description:"Feed refresh, post counts."},plugins:{label:"Plugins",description:"Plugin install, activation, marketplace and sandbox events."},workspace:{label:"Workspace",description:"Workspace tabs, session restore and layout events."},dev:{label:"Developer",description:"Dev test surface and internal diagnostics."}},zu=Gr.map(e=>({id:e,...Lc[e]})),fi=new Map(zu.map(e=>[e.id,e]));function bn(e){if(e){const t=fi.get(e);if(t)return t}return fi.get("general")??zu[0]}function vc(){return zu}function yo(e,t){const n=[];let u=0;for(;u<e.length;){const r=e[u];if(!r)break;if(r.pinned===!0){n.push({type:"entry",id:r.id,entry:r}),u+=1;continue}const i=t==="source"?r.source:`${r.source}|${r.tone}`;let s=u+1;for(;s<e.length;){const c=e[s];if(!c||c.pinned===!0||(t==="source"?c.source:`${c.source}|${c.tone}`)!==i)break;s+=1}const o=s-u;o===1?n.push({type:"entry",id:r.id,entry:r}):n.push({type:"group",id:`group:${i}:${r.id}`,groupKey:i,groupCount:o,groupSource:r.source,groupTone:r.tone,groupItems:e.slice(u,s)}),u=s}return n}function wc(e,t){return(e+t).indexOf(t)<e.length}const Mc=/^[=+\-@\t\r]/,Fc=/^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/,Pc=/^[ \t]|[ \t]$/;function xo(e){return Mc.test(e)}function Uc(e,t){return xo(e)?t==="quotePrefix"?`'${e}`:` ${e}`:e}function Bc(e,t,n={}){if(e==null)return"";const u=String(e),r=n.numeric===!0&&Fc.test(u),i=r?u:Uc(u,t.policy),s=n.forceQuote===!0,o=t.quoteChar,c=t.escape==="backslash";return t.alwaysQuote||s||Pc.test(u)||!r&&t.policy==="tabPrefix"&&xo(u)||wc(i,t.delimiter)||i.includes(o)||i.includes(`
28
+ `)||i.includes("\r")||c&&i.includes("\\")?Hc(i,o,t.escape):i}function Hc(e,t,n){const u=n==="backslash"?e.replace(/\\/g,"\\\\").split(t).join(`\\${t}`):e.split(t).join(t+t);return`${t}${u}${t}`}const Gc=e=>e==="crlf"?`\r
29
+ `:`
30
+ `,zc="\uFEFF",$c=Object.freeze({cell:Object.freeze({delimiter:",",quoteChar:'"',escape:"double",alwaysQuote:!1,policy:"quotePrefix"}),lineEnd:"crlf",byteOrderMark:!0});function Vc(e,t){const n=e instanceof Date?e.toISOString():e;return Bc(n,t,{numeric:typeof e=="number"})}function Wc(e,t,n){const u=Gc(n.lineEnd),r=i=>i.map(s=>Vc(s,n.cell)).join(n.cell.delimiter)+u;return r(t.map(i=>i.header))+e.map(i=>r(t.map(s=>s.value(i)))).join("")}function qc(e,t,n){return(n.byteOrderMark?zc:"")+Wc(e,t,n)}const Yc=[{header:"timestamp",value:e=>new Date(e.createdAt)},{header:"source",value:e=>e.source},{header:"tone",value:e=>e.tone},{header:"priority",value:e=>e.priority},{header:"pinned",value:e=>e.pinned===!0},{header:"message",value:e=>e.message}];function Do(e){return qc(e,Yc,$c)}function ko(e){return JSON.stringify(e,null,2)}function Xc(e,t){return{update:(n,u)=>{e.update({title:n}),u!==void 0&&e.setProgress({value:Math.max(0,Math.min(1,u)),...t.onCancel?{onCancel:t.onCancel}:{}})},success:n=>e.update({title:n??t.message,severity:"success",sticky:!1,progress:{done:!0}}),fail:n=>e.update({title:n??t.message,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0}),dismiss:()=>e.close()}}const Lo=()=>{};function ir(e){return{label:e.label,onClick:Lo,...e.expireOnAction!==void 0?{expireOnAction:e.expireOnAction}:{}}}function di(e,t){const n=Co(e,t,ir);return{...n,...n.action?{action:ir(n.action)}:{},...n.actions?{actions:n.actions.map(ir)}:{},...n.onCancel?{onCancel:Lo}:{}}}function Kc(e,t){return t.vendorError===void 0?null:dt.resolveVendorError(e,t.vendorError)}function Zc(e){let t={...q.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:!1,remindSuppressed:!1,sourceMuted:!1,inQuietHours:!1};const u=[],r=zr({getSettings:()=>t,recordAutoFade:()=>{},warn:(l,p)=>e.log.warn(l,p)});let i=[];const s=r.subscribe(l=>{i=l}),o={close:l=>r.close(l),setFocus:(l,p)=>r.setFocus(l,p),setHover:(l,p)=>r.setHover(l,p),toggleExpanded:l=>r.toggleExpanded(l),isSticky:l=>au(l,t),duration:l=>cu(l,t),resolveVendorError:l=>dt.resolveVendorError(e.vendorErrors,l),openExternal:e.openExternal,announcer:e.announcer};return{host:{notify(l,p){var U;const d=di(p,e.errorActions),b=Kc(e.vendorErrors,d),E=l.severity==="error"?qr(d.message,{...d.title?{title:d.title}:{},...d.subtitle?{subtitle:d.subtitle}:{},...d.description?{description:d.description}:{},...d.action?{action:d.action}:{}},b,e.openExternal):null,g=l.severity==="error"&&l.source==="general"&&b!==null?"vendor-error":l.source,x=Yr(l.severity,l.priority,b!==null,t.vendorCodesAreUrgent),O=$r({severity:l.severity,title:(E==null?void 0:E.displayText)??d.title??d.message,priority:x,source:g},t.notificationRules),w=O===null?{showToast:!1,recordTimeline:!1}:Mu({priority:O.priority,recordTimeline:d.recordTimeline},t,n),C=l.delivery==="os-only"?"mock-os":w.showToast?"shown":w.recordTimeline?"timeline-only":"suppressed",D={definition:l,payload:{...d,message:Nt.scrubSecrets(d.message),...d.title?{title:Nt.scrubSecrets(d.title)}:{},...d.description?{description:Nt.scrubSecrets(d.description)}:{}},channel:l.delivery,decision:w,outcome:C};if(l.delivery==="os-only"||O===null||!w.showToast)return u.push(D),"";const v=(E==null?void 0:E.bodyText)??d.subtitle??d.description,y=(E==null?void 0:E.primaryAction)??d.action,L=r.notify({severity:O.severity,title:Nt.scrubSecrets(O.title),...v?{body:Nt.scrubSecrets(v)}:{},source:O.source,priority:O.priority,...d.duration!==void 0?{durationMs:d.duration}:{},...d.id!==void 0?{id:String(d.id)}:{},...d.icon?{icon:d.icon}:{},...d.markdown?{markdown:!0}:{},...d.announce?{announce:d.announce}:{},...y||(U=d.actions)!=null&&U.length?{actions:[y,...d.actions??[]].filter(Y=>Y!==void 0).map((Y,j)=>({label:Y.label,primary:j===0,onClick:()=>{Y.onClick()}}))}:{}});return u.push(L.id?D:{...D,outcome:"spam-dropped"}),L.id},progress(l,p){const d=di(p,e.errorActions),b=Mu({priority:l.priority,recordTimeline:d.recordTimeline},t,n);if(u.push({definition:l,payload:d,channel:"in-app",decision:b,outcome:b.showToast?"shown":b.recordTimeline?"timeline-only":"suppressed"}),!b.showToast)return{update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{}};const E=r.notify({severity:l.severity,title:Nt.scrubSecrets(d.message),source:l.source,priority:l.priority,sticky:!0,progress:d.onCancel?{onCancel:d.onCancel}:{},...d.id!==void 0?{id:String(d.id)}:{}});return Xc(E,d)}},controller:o,deliveries:u,setBehavior:l=>{t={...q.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:l==="dismissed",remindSuppressed:l==="reminder",sourceMuted:l==="source-muted",inQuietHours:l==="quiet-hours"},l==="dnd"?t={...t,doNotDisturb:!0}:l==="rule-transform"?t={...t,notificationRules:[{id:"preview-transform",name:"Preview transform",enabled:!0,conditions:{source:"dev"},actions:{setSeverity:"warning",setPriority:"urgent",addPrefix:"[RULE]"}}]}:l==="rule-suppress"&&(t={...t,notificationRules:[{id:"preview-suppress",name:"Preview suppress",enabled:!0,conditions:{source:"dev"},actions:{suppress:!0}}]})},subscribe:l=>r.subscribe(l),clear:()=>{for(const l of i)r.close(l.id);u.splice(0,u.length)},dispose:()=>{s(),r.dispose()}}}function jc(e,t){const n=e.notifications.stack;return{close:u=>n.close(u),setFocus:(u,r)=>n.setFocus(u,r),setHover:(u,r)=>n.setHover(u,r),toggleExpanded:u=>n.toggleExpanded(u),isSticky:u=>au(u,t()),duration:u=>cu(u,t()),resolveVendorError:u=>dt.resolveVendorError(e.vendorErrors,u),openExternal:u=>dt.openExternalUrl(e.desktop,e.log,u),announcer:e.announcer}}function vo(e){const t=n=>{n.catch(u=>e.notifications.notify(No,{cause:u}))};return{remindLaterEnabled:()=>q.notificationSettings.get().remindLaterEnabled,isSourceMuted:mn,setSourceMuted:(n,u)=>t(Ao(n,u)),dismissKey:n=>t(To(n)),remindLater:(n,u)=>t(mo(n,u)),openSettings:()=>e.openNotificationSettings(),navigate:n=>e.notifications.requestNavigation(n)}}const Qc=3e4,[Jc,pi]=m.createSignal(Date.now());let ku=0,Jn;function ea(){ku+=1,Jn===void 0&&(typeof window>"u"||(pi(Date.now()),Jn=setInterval(()=>pi(Date.now()),Qc)))}function ta(){ku=Math.max(0,ku-1),!(ku>0||Jn===void 0)&&(clearInterval(Jn),Jn=void 0)}function na(){return ea(),m.onCleanup(ta),Jc}const ua=1e3,ra=6e4,ia=60,oa=60,hi=24,sa=30;function ca(e){const t=Math.max(0,e);if(Math.floor(t/ua)<sa)return{key:"now"};const u=Math.floor(t/ra);if(u<1)return{key:"now"};if(u<oa)return{key:"{n}m ago",values:{n:u}};const r=Math.floor(u/ia);return r<hi?{key:"{n}h ago",values:{n:r}}:{key:"{n}d ago",values:{n:Math.floor(r/hi)}}}const gi={};function aa(e){let t=gi[e];if(t)return t;t=gi[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function wn(e,t){typeof t!="string"&&(t=wn.defaultChars);const n=aa(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let i=0,s=u.length;i<s;i+=3){const o=parseInt(u.slice(i+1,i+3),16);if(o<128){r+=n[o];continue}if((o&224)===192&&i+3<s){const c=parseInt(u.slice(i+4,i+6),16);if((c&192)===128){const l=o<<6&1984|c&63;l<128?r+="��":r+=String.fromCharCode(l),i+=3;continue}}if((o&240)===224&&i+6<s){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16);if((c&192)===128&&(l&192)===128){const p=o<<12&61440|c<<6&4032|l&63;p<2048||p>=55296&&p<=57343?r+="���":r+=String.fromCharCode(p),i+=6;continue}}if((o&248)===240&&i+9<s){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16),p=parseInt(u.slice(i+10,i+12),16);if((c&192)===128&&(l&192)===128&&(p&192)===128){let d=o<<18&1835008|c<<12&258048|l<<6&4032|p&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}r+="�"}return r})}wn.defaultChars=";/?:@&=+$,#";wn.componentChars="";const Ei={};function la(e){let t=Ei[e];if(t)return t;t=Ei[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function lu(e,t,n){typeof t!="string"&&(n=t,t=lu.defaultChars),typeof n>"u"&&(n=!0);const u=la(t);let r="";for(let i=0,s=e.length;i<s;i++){const o=e.charCodeAt(i);if(n&&o===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(o<128){r+=u[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1<s){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}lu.defaultChars=";/?:@&=+$,-_.!~*'()#";lu.componentChars="-_.!~*'()";function Xr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Fu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const fa=/^([a-z0-9.+-]+:)/i,da=/:[0-9]*$/,pa=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ha=["<",">",'"',"`"," ","\r",`
31
+ `," "],ga=["{","}","|","\\","^","`"].concat(ha),Ea=["'"].concat(ga),bi=["%","/","?",";","#"].concat(Ea),_i=["/","?","#"],ba=255,mi=/^[+a-z0-9A-Z_-]{0,63}$/,_a=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ai={javascript:!0,"javascript:":!0},Ti={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Kr(e,t){if(e&&e instanceof Fu)return e;const n=new Fu;return n.parse(e,t),n}Fu.prototype.parse=function(e,t){let n,u,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=pa.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=fa.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&Ai[s])&&(i=i.substr(2),this.slashes=!0)),!Ai[s]&&(r||s&&!Ti[s])){let l=-1;for(let g=0;g<_i.length;g++)u=i.indexOf(_i[g]),u!==-1&&(l===-1||u<l)&&(l=u);let p,d;l===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",l),d!==-1&&(p=i.slice(0,d),i=i.slice(d+1),this.auth=p),l=-1;for(let g=0;g<bi.length;g++)u=i.indexOf(bi[g]),u!==-1&&(l===-1||u<l)&&(l=u);l===-1&&(l=i.length),i[l-1]===":"&&l--;const b=i.slice(0,l);i=i.slice(l),this.parseHost(b),this.hostname=this.hostname||"";const E=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!E){const g=this.hostname.split(/\./);for(let x=0,O=g.length;x<O;x++){const w=g[x];if(w&&!w.match(mi)){let C="";for(let D=0,v=w.length;D<v;D++)w.charCodeAt(D)>127?C+="x":C+=w[D];if(!C.match(mi)){const D=g.slice(0,x),v=g.slice(x+1),y=w.match(_a);y&&(D.push(y[1]),v.unshift(y[2])),v.length&&(i=v.join(".")+i),this.hostname=D.join(".");break}}}}this.hostname.length>ba&&(this.hostname=""),E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=i.indexOf("#");o!==-1&&(this.hash=i.substr(o),i=i.slice(0,o));const c=i.indexOf("?");return c!==-1&&(this.search=i.substr(c),i=i.slice(0,c)),i&&(this.pathname=i),Ti[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Fu.prototype.parseHost=function(e){let t=da.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const ma=Object.freeze(Object.defineProperty({__proto__:null,decode:wn,encode:lu,format:Xr,parse:Kr},Symbol.toStringTag,{value:"Module"})),wo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mo=/[\0-\x1F\x7F-\x9F]/,Aa=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Zr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Fo=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Po=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ta=Object.freeze(Object.defineProperty({__proto__:null,Any:wo,Cc:Mo,Cf:Aa,P:Zr,S:Fo,Z:Po},Symbol.toStringTag,{value:"Module"})),Sa=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Ca=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var or;const Na=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ra=(or=String.fromCodePoint)!==null&&or!==void 0?or:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ia(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Na.get(e))!==null&&t!==void 0?t:e}var Ke;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ke||(Ke={}));const Oa=32;var cn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(cn||(cn={}));function kr(e){return e>=Ke.ZERO&&e<=Ke.NINE}function ya(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_F||e>=Ke.LOWER_A&&e<=Ke.LOWER_F}function xa(e){return e>=Ke.UPPER_A&&e<=Ke.UPPER_Z||e>=Ke.LOWER_A&&e<=Ke.LOWER_Z||kr(e)}function Da(e){return e===Ke.EQUALS||xa(e)}var Xe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Xe||(Xe={}));var jt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(jt||(jt={}));class ka{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Xe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=jt.Strict}startEntity(t){this.decodeMode=t,this.state=Xe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Xe.EntityStart:return t.charCodeAt(n)===Ke.NUM?(this.state=Xe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Xe.NamedEntity,this.stateNamedEntity(t,n));case Xe.NumericStart:return this.stateNumericStart(t,n);case Xe.NumericDecimal:return this.stateNumericDecimal(t,n);case Xe.NumericHex:return this.stateNumericHex(t,n);case Xe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Oa)===Ke.LOWER_X?(this.state=Xe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Xe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const i=u-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(kr(r)||ya(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(kr(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ke.SEMI)this.consumed+=1;else if(this.decodeMode===jt.Strict)return 0;return this.emitCodePoint(Ia(this.result),this.consumed),this.errors&&(t!==Ke.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],i=(r&cn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=La(u,r,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===jt.Attribute&&(i===0||Da(s))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],i=(r&cn.VALUE_LENGTH)>>14,i!==0){if(s===Ke.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==jt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&cn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~cn.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case Xe.NamedEntity:return this.result!==0&&(this.decodeMode!==jt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Xe.NumericDecimal:return this.emitNumericEntity(0,2);case Xe.NumericHex:return this.emitNumericEntity(0,3);case Xe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Xe.EntityStart:return 0}}}function Uo(e){let t="";const n=new ka(e,u=>t+=Ra(u));return function(r,i){let s=0,o=0;for(;(o=r.indexOf("&",o))>=0;){t+=r.slice(s,o),n.startEntity(i);const l=n.write(r,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+r.slice(s);return t="",c}}function La(e,t,n,u){const r=(t&cn.BRANCH_LENGTH)>>7,i=t&cn.JUMP_TABLE;if(r===0)return i!==0&&u===i?n:-1;if(i){const c=u-i;return c<0||c>=r?-1:e[n+c]-1}let s=n,o=s+r-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<u)s=c+1;else if(l>u)o=c-1;else return e[c+r]}return-1}const Bo=Uo(Sa);Uo(Ca);function va(e,t=jt.Legacy){return Bo(e,t)}function wa(e){return Bo(e,jt.Strict)}function Ma(e){return Object.prototype.toString.call(e)}function jr(e){return Ma(e)==="[object String]"}const Fa=Object.prototype.hasOwnProperty;function Pa(e,t){return Fa.call(e,t)}function $u(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Ua(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Qr(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function tu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Ho=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ba=/&([a-z#][a-z0-9]{1,31});/gi,Ha=new RegExp(Ho.source+"|"+Ba.source,"gi"),Ga=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function za(e,t){if(t.charCodeAt(0)===35&&Ga.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Qr(u)?tu(u):e}const n=va(e);return n!==e?n:e}function $a(e){return e.indexOf("\\")<0?e:e.replace(Ho,"$1")}function Mn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ha,function(t,n,u){return n||za(t,u)})}const Va=/[&<>"]/,Wa=/[&<>"]/g,qa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Ya(e){return qa[e]}function an(e){return Va.test(e)?e.replace(Wa,Ya):e}const Xa=/[.?*+^$[\]\\(){}|-]/g;function Ka(e){return e.replace(Xa,"\\$&")}function ve(e){switch(e){case 9:case 32:return!0}return!1}function nu(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Go(e){return Zr.test(e)||Fo.test(e)}function uu(e){return Go(tu(e))}function ru(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Vu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Si(e){return e===32||e===9||e===10||e===13}function Wu(e){let t=0;for(;t<e.length&&Si(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Si(e.charCodeAt(n));n--);return e.slice(t,n+1)}const Za={mdurl:ma,ucmicro:Ta},ja=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ua,asciiTrim:Wu,assign:$u,escapeHtml:an,escapeRE:Ka,fromCodePoint:tu,has:Pa,isMdAsciiPunct:ru,isPunctChar:Go,isPunctCharCode:uu,isSpace:ve,isString:jr,isValidEntityCode:Qr,isWhiteSpace:nu,lib:Za,normalizeReference:Vu,unescapeAll:Mn,unescapeMd:$a},Symbol.toStringTag,{value:"Module"}));function Qa(e,t,n){let u,r,i,s;const o=e.posMax,c=e.pos;for(e.pos=t+1,u=1;e.pos<o;){if(i=e.src.charCodeAt(e.pos),i===93&&(u--,u===0)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)u++;else if(n)return e.pos=c,-1}}let l=-1;return r&&(l=e.pos),e.pos=c,l}function Ja(e,t,n){let u,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return i;if(u===62)return i.pos=r+1,i.str=Mn(e.slice(t+1,r)),i.ok=!0,i;if(u===92&&r+1<n){r+=2;continue}r++}return i}let s=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(u===40&&(s++,s>32))return i;if(u===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=Mn(e.slice(t,r)),i.pos=r,i.ok=!0),i}function el(e,t,n,u){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)s.str=u.str,s.marker=u.marker;else{if(i>=n)return s;let o=e.charCodeAt(i);if(o!==34&&o!==39&&o!==40)return s;t++,i++,o===40&&(o=41),s.marker=o}for(;i<n;){if(r=e.charCodeAt(i),r===s.marker)return s.pos=i+1,s.str+=Mn(e.slice(t,i)),s.ok=!0,s;if(r===40&&s.marker===41)return s;r===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=Mn(e.slice(t,i)),s}const tl=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Ja,parseLinkLabel:Qa,parseLinkTitle:el},Symbol.toStringTag,{value:"Module"})),Gt={};Gt.code_inline=function(e,t,n,u,r){const i=e[t];return"<code"+r.renderAttrs(i)+">"+an(i.content)+"</code>"};Gt.code_block=function(e,t,n,u,r){const i=e[t];return"<pre"+r.renderAttrs(i)+"><code>"+an(e[t].content)+`</code></pre>
32
+ `};Gt.fence=function(e,t,n,u,r){const i=e[t],s=i.info?Mn(i.info).trim():"";let o="",c="";if(s){const p=s.split(/(\s+)/g);o=p[0],c=p.slice(2).join("")}let l;if(n.highlight?l=n.highlight(i.content,o,c)||an(i.content):l=an(i.content),l.indexOf("<pre")===0)return l+`
33
+ `;if(s){const p=i.attrIndex("class"),d=i.attrs?i.attrs.slice():[];p<0?d.push(["class",n.langPrefix+o]):(d[p]=d[p].slice(),d[p][1]+=" "+n.langPrefix+o);const b={attrs:d};return`<pre><code${r.renderAttrs(b)}>${l}</code></pre>
34
+ `}return`<pre><code${r.renderAttrs(i)}>${l}</code></pre>
35
+ `};Gt.image=function(e,t,n,u,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,u),r.renderToken(e,t,n)};Gt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
36
+ `:`<br>
37
+ `};Gt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
38
+ `:`<br>
39
+ `:`
40
+ `};Gt.text=function(e,t){return an(e[t].content)};Gt.html_block=function(e,t){return e[t].content};Gt.html_inline=function(e,t){return e[t].content};function Pn(){this.rules=$u({},Gt)}Pn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+an(t.attrs[n][0])+'="'+an(t.attrs[n][1])+'"';return r};Pn.prototype.renderToken=function(t,n,u){const r=t[n];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
41
+ `),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(i+=" /");let s=!1;if(r.block&&(s=!0,r.nesting===1&&n+1<t.length)){const o=t[n+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===r.tag)&&(s=!1)}return i+=s?`>
42
+ `:">",i};Pn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;typeof r[o]<"u"?u+=r[o](e,i,t,n,this):u+=this.renderToken(e,i,t)}return u};Pn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,i=e.length;r<i;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
43
+ `;break}return u};Pn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;o==="inline"?u+=this.renderInline(e[i].children,t,n):typeof r[o]<"u"?u+=r[o](e,i,t,n,this):u+=this.renderToken(e,i,t,n)}return u};function pt(){this.__rules__=[],this.__cache__=null}pt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};pt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};pt.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};pt.prototype.before=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};pt.prototype.after=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};pt.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};pt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};pt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};pt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};pt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function wt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}wt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};wt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};wt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};wt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};wt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function zo(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}zo.prototype.Token=wt;const nl=/\r\n?|\n/g,ul=/\0/g;function rl(e){let t;t=e.src.replace(nl,`
44
+ `),t=t.replace(ul,"�"),e.src=t}function il(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function ol(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function sl(e){return/^<a[>\s]/i.test(e)}function cl(e){return/^<\/a\s*>/i.test(e)}function al(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;const r=t[n].children,i=[];let s=0;for(let o=r.length-1;o>=0;o--){const c=r[o];if(c.type==="link_close"){for(o--;r[o].level!==c.level&&r[o].type!=="link_open";)o--;continue}if(c.type==="html_inline"&&(sl(c.content)&&s>0&&s--,cl(c.content)&&s++),!(s>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const l=c.content;let p=e.md.linkify.match(l);const d=[];let b=c.level,E=0;p.length>0&&p[0].index===0&&o>0&&r[o-1].type==="text_special"&&(p=p.slice(1));for(let g=0;g<p.length;g++){const x=p[g].url,O=e.md.normalizeLink(x);if(!e.md.validateLink(O))continue;let w=p[g].text;p[g].schema?p[g].schema==="mailto:"&&!/^mailto:/i.test(w)?w=e.md.normalizeLinkText("mailto:"+w).replace(/^mailto:/,""):w=e.md.normalizeLinkText(w):w=e.md.normalizeLinkText("http://"+w).replace(/^http:\/\//,"");const C=p[g].index;if(C>E){const L=new e.Token("text","",0);L.content=l.slice(E,C),L.level=b,d.push(L)}const D=new e.Token("link_open","a",1);D.attrs=[["href",O]],D.level=b++,D.markup="linkify",D.info="auto",d.push(D);const v=new e.Token("text","",0);v.content=w,v.level=b,d.push(v);const y=new e.Token("link_close","a",-1);y.level=--b,y.markup="linkify",y.info="auto",d.push(y),E=p[g].lastIndex}if(E<l.length){const g=new e.Token("text","",0);g.content=l.slice(E),g.level=b,d.push(g)}i.push({index:o,nodes:d})}}if(i.length>0){let o=r.length;for(const d of i)o+=d.nodes.length-1;const c=new Array(o);let l=0,p=0;i.reverse();for(let d=0;d<r.length;d++){const b=i[l];if((b==null?void 0:b.index)===d){for(const E of b.nodes)c[p++]=E;l++}else c[p++]=r[d]}t[n].children=c}}}const $o=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ll=/\((c|tm|r)\)/i,fl=/\((c|tm|r)\)/ig,dl={c:"©",r:"®",tm:"™"};function pl(e,t){return dl[t.toLowerCase()]}function hl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(fl,pl)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function gl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&$o.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function El(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(ll.test(e.tokens[t].content)&&hl(e.tokens[t].children),$o.test(e.tokens[t].content)&&gl(e.tokens[t].children))}const bl=/['"]/,Ci=/['"]/g,Ni="’",_l=1e3;function Ri(e,t,n){for(;e.length>n;){const u=e.pop();u.isSingleQuote?t.single=u.prevSameQuoteIdx:t.double=u.prevSameQuoteIdx}}function Cu(e,t,n,u){e[t]||(e[t]=[]),e[t].push({pos:n,ch:u})}function ml(e,t){let n="",u=0;t.sort((r,i)=>r.pos-i.pos);for(let r=0;r<t.length;r++){const i=t[r];n+=e.slice(u,i.pos)+i.ch,u=i.pos+1}return n+e.slice(u)}function Al(e,t){let n;const u=[],r={single:-1,double:-1},i={};for(let s=0;s<e.length;s++){const o=e[s],c=e[s].level;for(n=u.length-1;n>=0&&!(u[n].level<=c);n--);if(Ri(u,r,n+1),o.type!=="text")continue;const l=o.content;let p=0;const d=l.length;e:for(;p<d;){Ci.lastIndex=p;const b=Ci.exec(l);if(!b)break;let E=!0,g=!0;p=b.index+1;const x=b[0]==="'";let O=32;if(b.index-1>=0)O=l.charCodeAt(b.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){O=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(p<d)w=l.charCodeAt(p);else for(n=s+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const C=ru(O)||uu(O),D=ru(w)||uu(w),v=nu(O),y=nu(w);if(y?E=!1:D&&(v||C||(E=!1)),v?g=!1:C&&(y||D||(g=!1)),w===34&&b[0]==='"'&&O>=48&&O<=57&&(g=E=!1),E&&g&&(E=C,g=D),!E&&!g){x&&Cu(i,s,b.index,Ni);continue}if(g&&(n=x?r.single:r.double,n>=0&&u[n].level===c)){const L=u[n];let U,Y;x?(U=t.md.options.quotes[2],Y=t.md.options.quotes[3]):(U=t.md.options.quotes[0],Y=t.md.options.quotes[1]),Cu(i,s,b.index,Y),Cu(i,L.tokenIdx,L.contentPos,U),Ri(u,r,n);continue e}if(E){if(u.length>=_l)return;u.push({tokenIdx:s,contentPos:b.index,isSingleQuote:x,level:c,prevSameQuoteIdx:x?r.single:r.double}),x?r.single=u.length-1:r.double=u.length-1}else g&&x&&Cu(i,s,b.index,Ni)}}Object.keys(i).forEach(function(s){e[s].content=ml(e[s].content,i[s])})}function Tl(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!bl.test(e.tokens[t].content)||Al(e.tokens[t].children,e)}function Sl(e){let t,n;const u=e.tokens,r=u.length;for(let i=0;i<r;i++){if(u[i].type!=="inline")continue;const s=u[i].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const sr=[["normalize",rl],["block",il],["inline",ol],["linkify",al],["replacements",El],["smartquotes",Tl],["text_join",Sl]];function Jr(){this.ruler=new pt;for(let e=0;e<sr.length;e++)this.ruler.push(sr[e][0],sr[e][1])}Jr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};Jr.prototype.State=zo;function zt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let i=0,s=0,o=0,c=0,l=r.length,p=!1;s<l;s++){const d=r.charCodeAt(s);if(!p)if(ve(d)){o++,d===9?c+=4-c%4:c++;continue}else p=!0;(d===10||s===l-1)&&(d!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(c),this.bsCount.push(0),p=!1,o=0,c=0,i=s+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}zt.prototype.push=function(e,t,n){const u=new wt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};zt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};zt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};zt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ve(u))break}return t};zt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ve(this.src.charCodeAt(--t)))return t+1;return t};zt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};zt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};zt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const i=new Array(n-t);for(let s=0,o=t;o<n;o++,s++){let c=0;const l=this.bMarks[o];let p=l,d;for(o+1<n||r?d=this.eMarks[o]+1:d=this.eMarks[o];p<d&&c<u;){const b=this.src.charCodeAt(p);if(ve(b))b===9?c+=4-(c+this.bsCount[o])%4:c++;else if(p-l<this.tShift[o])c++;else break;p++}c>u?i[s]=new Array(c-u+1).join(" ")+this.src.slice(p,d):i[s]=this.src.slice(p,d)}return i.join("")};zt.prototype.Token=wt;const Cl=65536;function cr(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Ii(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),i=!1,s=0,o="";for(;u<n;)r===124&&(i?(o+=e.substring(s,u-1),s=u):(t.push(o+e.substring(s,u)),o="",s=u+1)),i=r===92,u++,r=e.charCodeAt(u);return t.push(o+e.substring(s)),t}function Nl(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58&&!ve(o)||s===45&&ve(o))return!1;for(;i<e.eMarks[r];){const v=e.src.charCodeAt(i);if(v!==124&&v!==45&&v!==58&&!ve(v))return!1;i++}let c=cr(e,t+1),l=c.split("|");const p=[];for(let v=0;v<l.length;v++){const y=l[v].trim();if(!y){if(v===0||v===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?p.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?p.push("left"):p.push("")}if(c=cr(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Ii(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==p.length)return!1;if(u)return!0;const b=e.parentType;e.parentType="table";const E=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),x=[t,0];g.map=x;const O=e.push("thead_open","thead",1);O.map=[t,t+1];const w=e.push("tr_open","tr",1);w.map=[t,t+1];for(let v=0;v<l.length;v++){const y=e.push("th_open","th",1);p[v]&&(y.attrs=[["style","text-align:"+p[v]]]);const L=e.push("inline","",0);L.content=l[v].trim(),L.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let C,D=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let v=!1;for(let L=0,U=E.length;L<U;L++)if(E[L](e,r,n,!0)){v=!0;break}if(v||(c=cr(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(l=Ii(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),D+=d-l.length,D>Cl))break;if(r===t+2){const L=e.push("tbody_open","tbody",1);L.map=C=[t+2,0]}const y=e.push("tr_open","tr",1);y.map=[r,r+1];for(let L=0;L<d;L++){const U=e.push("td_open","td",1);p[L]&&(U.attrs=[["style","text-align:"+p[L]]]);const Y=e.push("inline","",0);Y.content=l[L]?l[L].trim():"",Y.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return C&&(e.push("tbody_close","tbody",-1),C[1]=r),e.push("table_close","table",-1),x[1]=r,e.parentType=b,e.line=r,!0}function Rl(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+`
45
+ `,i.map=[t,e.line],!0}function Il(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let o=r;r=e.skipChars(r,s);let c=r-o;if(c<3)return!1;const l=e.src.slice(o,r),p=e.src.slice(r,i);if(s===96&&p.indexOf(String.fromCharCode(s))>=0)return!1;if(u)return!0;let d=t,b=!1;for(;d++,!(d>=n||(r=o=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],r<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-o<c)&&(r=e.skipSpaces(r),!(r<i)))){b=!0;break}c=e.sCount[t],e.line=d+(b?1:0);const E=e.push("fence","code",0);return E.info=p,E.content=e.getLines(t+1,d,c,!0),E.markup=l,E.map=[t,e.line],!0}function Ol(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const o=[],c=[],l=[],p=[],d=e.md.block.ruler.getRules("blockquote"),b=e.parentType;e.parentType="blockquote";let E=!1,g;for(g=t;g<n;g++){const D=e.sCount[g]<e.blkIndent;if(r=e.bMarks[g]+e.tShift[g],i=e.eMarks[g],r>=i)break;if(e.src.charCodeAt(r++)===62&&!D){let y=e.sCount[g]+1,L,U;e.src.charCodeAt(r)===32?(r++,y++,U=!1,L=!0):e.src.charCodeAt(r)===9?(L=!0,(e.bsCount[g]+y)%4===3?(r++,y++,U=!1):U=!0):L=!1;let Y=y;for(o.push(e.bMarks[g]),e.bMarks[g]=r;r<i;){const j=e.src.charCodeAt(r);if(ve(j))j===9?Y+=4-(Y+e.bsCount[g]+(U?1:0))%4:Y++;else break;r++}E=r>=i,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(L?1:0),l.push(e.sCount[g]),e.sCount[g]=Y-y,p.push(e.tShift[g]),e.tShift[g]=r-e.bMarks[g];continue}if(E)break;let v=!1;for(let y=0,L=d.length;y<L;y++)if(d[y](e,g,n,!0)){v=!0;break}if(v){e.lineMax=g,e.blkIndent!==0&&(o.push(e.bMarks[g]),c.push(e.bsCount[g]),p.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}o.push(e.bMarks[g]),c.push(e.bsCount[g]),p.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]=-1}const x=e.blkIndent;e.blkIndent=0;const O=e.push("blockquote_open","blockquote",1);O.markup=">";const w=[t,0];O.map=w,e.md.block.tokenize(e,t,g);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=s,e.parentType=b,w[1]=e.line;for(let D=0;D<p.length;D++)e.bMarks[D+t]=o[D],e.tShift[D+t]=p[D],e.sCount[D+t]=l[D],e.bsCount[D+t]=c[D];return e.blkIndent=x,!0}function yl(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;i<r;){const l=e.src.charCodeAt(i++);if(l!==s&&!ve(l))return!1;l===s&&o++}if(o<3)return!1;if(u)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function Oi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const i=e.src.charCodeAt(u);if(!ve(i))return-1}return u}function yi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=u)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<u&&(i=e.src.charCodeAt(r),!ve(i))?-1:r}function xl(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function Dl(e,t,n,u){let r,i,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let p=!1;u&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(p=!0);let d,b,E;if((E=yi(e,c))>=0){if(d=!0,s=e.bMarks[c]+e.tShift[c],b=Number(e.src.slice(s,E-1)),p&&b!==1)return!1}else if((E=Oi(e,c))>=0)d=!1;else return!1;if(p&&e.skipSpaces(E)>=e.eMarks[c])return!1;if(u)return!0;const g=e.src.charCodeAt(E-1),x=e.tokens.length;d?(o=e.push("ordered_list_open","ol",1),b!==1&&(o.attrs=[["start",b]])):o=e.push("bullet_list_open","ul",1);const O=[c,0];o.map=O,o.markup=String.fromCharCode(g);let w=!1;const C=e.md.block.ruler.getRules("list"),D=e.parentType;for(e.parentType="list";c<n;){i=E,r=e.eMarks[c];const v=e.sCount[c]+E-(e.bMarks[c]+e.tShift[c]);let y=v;for(;i<r;){const K=e.src.charCodeAt(i);if(K===9)y+=4-(y+e.bsCount[c])%4;else if(K===32)y++;else break;i++}const L=i;let U;L>=r?U=1:U=y-v,U>4&&(U=1);const Y=v+U;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(g);const j=[c,0];o.map=j,d&&(o.info=e.src.slice(s,E-1));const me=e.tight,se=e.tShift[c],H=e.sCount[c],oe=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Y,e.tight=!0,e.tShift[c]=L-e.bMarks[c],e.sCount[c]=y,L>=r&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||w)&&(l=!1),w=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=oe,e.tShift[c]=se,e.sCount[c]=H,e.tight=me,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(g),c=e.line,j[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let pe=!1;for(let K=0,Se=C.length;K<Se;K++)if(C[K](e,c,n,!0)){pe=!0;break}if(pe)break;if(d){if(E=yi(e,c),E<0)break;s=e.bMarks[c]+e.tShift[c]}else if(E=Oi(e,c),E<0)break;if(g!==e.src.charCodeAt(E-1))break}return d?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(g),O[1]=c,e.line=c,e.parentType=D,l&&xl(e,x),!0}function kl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function o(C){const D=e.lineMax;if(C>=D||e.isEmpty(C))return null;let v=!1;if(e.sCount[C]-e.blkIndent>3&&(v=!0),e.sCount[C]<0&&(v=!0),!v){const U=e.md.block.ruler.getRules("reference"),Y=e.parentType;e.parentType="reference";let j=!1;for(let me=0,se=U.length;me<se;me++)if(U[me](e,C,D,!0)){j=!0;break}if(e.parentType=Y,j)return null}const y=e.bMarks[C]+e.tShift[C],L=e.eMarks[C];return e.src.slice(y,L+1)}let c=e.src.slice(r,i+1);i=c.length;let l=-1;for(r=1;r<i;r++){const C=c.charCodeAt(r);if(C===91)return!1;if(C===93){l=r;break}else if(C===10){const D=o(s);D!==null&&(c+=D,i=c.length,s++)}else if(C===92&&(r++,r<i&&c.charCodeAt(r)===10)){const D=o(s);D!==null&&(c+=D,i=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<i;r++){const C=c.charCodeAt(r);if(C===10){const D=o(s);D!==null&&(c+=D,i=c.length,s++)}else if(!ve(C))break}const p=e.md.helpers.parseLinkDestination(c,r,i);if(!p.ok)return!1;const d=e.md.normalizeLink(p.str);if(!e.md.validateLink(d))return!1;r=p.pos;const b=r,E=s,g=r;for(;r<i;r++){const C=c.charCodeAt(r);if(C===10){const D=o(s);D!==null&&(c+=D,i=c.length,s++)}else if(!ve(C))break}let x=e.md.helpers.parseLinkTitle(c,r,i);for(;x.can_continue;){const C=o(s);if(C===null)break;c+=C,r=i,i=c.length,s++,x=e.md.helpers.parseLinkTitle(c,r,i,x)}let O;for(r<i&&g!==r&&x.ok?(O=x.str,r=x.pos):(O="",r=b,s=E);r<i;){const C=c.charCodeAt(r);if(!ve(C))break;r++}if(r<i&&c.charCodeAt(r)!==10&&O)for(O="",r=b,s=E;r<i;){const C=c.charCodeAt(r);if(!ve(C))break;r++}if(r<i&&c.charCodeAt(r)!==10)return!1;const w=Vu(c.slice(1,l));return w?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[w]>"u"&&(e.env.references[w]={title:O,href:d}),e.line=s),!0):!1}const Ll=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vl="[a-zA-Z_:][a-zA-Z0-9:._-]*",wl="[^\"'=<>`\\x00-\\x20]+",Ml="'[^']*'",Fl='"[^"]*"',Pl="(?:"+wl+"|"+Ml+"|"+Fl+")",Ul="(?:\\s+"+vl+"(?:\\s*=\\s*"+Pl+")?)",Vo="<[A-Za-z][A-Za-z0-9\\-]*"+Ul+"*\\s*\\/?>",Wo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Bl="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Hl="<[?][\\s\\S]*?[?]>",Gl="<![A-Za-z][^>]*>",zl="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",$l=new RegExp("^(?:"+Vo+"|"+Wo+"|"+Bl+"|"+Hl+"|"+Gl+"|"+zl+")"),Vl=new RegExp("^(?:"+Vo+"|"+Wo+")"),gn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ll.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Vl.source+"\\s*$"),/^$/,!1]];function Wl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),o=0;for(;o<gn.length&&!gn[o][0].test(s);o++);if(o===gn.length)return!1;if(u)return gn[o][2];let c=t+1;const l=gn[o][1].test("");if(!gn[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],s=e.src.slice(r,i),gn[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const p=e.push("html_block","",0);return p.map=[t,c],p.content=e.getLines(t,c,e.blkIndent,!0),!0}function ql(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let o=1;for(s=e.src.charCodeAt(++r);s===35&&r<i&&o<=6;)o++,s=e.src.charCodeAt(++r);if(o>6||r<i&&!ve(s))return!1;if(u)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&ve(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const p=e.push("inline","",0);p.content=Wu(e.src.slice(r,i)),p.map=[t,e.line],p.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function Yl(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let E=e.bMarks[o]+e.tShift[o];const g=e.eMarks[o];if(E<g&&(s=e.src.charCodeAt(E),(s===45||s===61)&&(E=e.skipChars(E,s),E=e.skipSpaces(E),E>=g))){i=s===61?1:2;break}}if(e.sCount[o]<0)continue;let b=!1;for(let E=0,g=u.length;E<g;E++)if(u[E](e,o,n,!0)){b=!0;break}if(b)break}if(!i)return e.parentType=r,!1;const c=Wu(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const l=e.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const p=e.push("inline","",0);p.content=c,p.map=[t,e.line-1],p.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(s),e.parentType=r,!0}function Xl(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let l=!1;for(let p=0,d=u.length;p<d;p++)if(u[p](e,i,n,!0)){l=!0;break}if(l)break}const s=Wu(e.getLines(t,i,e.blkIndent,!1));e.line=i;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const Nu=[["table",Nl,["paragraph","reference"]],["code",Rl],["fence",Il,["paragraph","reference","blockquote","list"]],["blockquote",Ol,["paragraph","reference","blockquote","list"]],["hr",yl,["paragraph","reference","blockquote","list"]],["list",Dl,["paragraph","reference","blockquote"]],["reference",kl],["html_block",Wl,["paragraph","reference","blockquote"]],["heading",ql,["paragraph","reference","blockquote"]],["lheading",Yl],["paragraph",Xl]];function qu(){this.ruler=new pt;for(let e=0;e<Nu.length;e++)this.ruler.push(Nu[e][0],Nu[e][1],{alt:(Nu[e][2]||[]).slice()})}qu.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,i=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let l=!1;for(let p=0;p<r;p++)if(l=u[p](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};qu.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};qu.prototype.State=zt;function fu(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}fu.prototype.pushPending=function(){const e=new wt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};fu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new wt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};fu.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e);let r;if(e===0)r=32;else if(e===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(e-1),(r&64512)===56320){const O=this.src.charCodeAt(e-2);r=(O&64512)===55296?65536+(O-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===u;)i++;const s=i-e;let o=i<n?this.src.charCodeAt(i):32;if((o&64512)===55296){const O=this.src.charCodeAt(i+1);o=(O&64512)===56320?65536+(o-55296<<10)+(O-56320):65533}else(o&64512)===56320&&(o=65533);const c=ru(r)||uu(r),l=ru(o)||uu(o),p=nu(r),d=nu(o),b=!d&&(!l||p||c),E=!p&&(!c||d||l);return{can_open:b&&(t||!E||c),can_close:E&&(t||!b||l),length:s}};fu.prototype.Token=wt;function Kl(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Zl(e,t){let n=e.pos;for(;n<e.posMax&&!Kl(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function jl(e){return e>=65&&e<=90||e>=97&&e<=122}function Ql(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function Jl(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=n-Math.min(10,e.pending.length,n);let i=n;for(;i>r&&Ql(e.src.charCodeAt(i-1));)i--;if(i===n||!jl(e.src.charCodeAt(i)))return!1;const s=n-i,o=e.md.linkify.matchAtStart(e.src.slice(i));if(!o)return!1;let c=o.url;if(c.length<=s)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));const p=e.md.normalizeLink(c);if(!e.md.validateLink(p))return!1;if(!t){e.pending=e.pending.slice(0,-s);const d=e.push("link_open","a",1);d.attrs=[["href",p]],d.markup="linkify",d.info="auto";const b=e.push("text","",0);b.content=e.md.normalizeLinkText(c);const E=e.push("link_close","a",-1);E.markup="linkify",E.info="auto"}return e.pos+=c.length-s,!0}function e0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let i=u-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&ve(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ei=[];for(let e=0;e<256;e++)ei.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ei[e.charCodeAt(0)]=1});function t0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!ve(r));)n++;return e.pos=n,!0}if(r===32){if(!t){const o=e.push("text_special","",0);o.content="\\",o.markup="\\",o.info="escape"}return e.pos=n,!0}let i=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const o=e.push("text_special","",0);r<256&&ei[r]!==0?o.content=i:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function n0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(r,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;const p=c-l;if(p===o){if(!t){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[p]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function u0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let i=r.length;const s=String.fromCharCode(u);if(i<2)return!1;let o;i%2&&(o=e.push("text","",0),o.content=s,i--);for(let c=0;c<i;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function xi(e,t){let n;const u=[],r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&u.push(o.token-1)}for(;u.length;){const i=u.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function r0(e){const t=e.tokens_meta,n=e.tokens_meta.length;xi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&xi(e,t[u].delimiters)}const qo={tokenize:u0,postProcess:r0};function i0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let i=0;i<r.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Di(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function o0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Di(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Di(e,t[u].delimiters)}const Yo={tokenize:i0,postProcess:o0};function s0(e,t){let n,u,r,i,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const p=e.pos,d=e.posMax,b=e.pos+1,E=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(E<0)return!1;let g=E+1;if(g<d&&e.src.charCodeAt(g)===40){for(l=!1,g++;g<d&&(n=e.src.charCodeAt(g),!(!ve(n)&&n!==10));g++);if(g>=d)return!1;if(c=g,r=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?g=r.pos:s="",c=g;g<d&&(n=e.src.charCodeAt(g),!(!ve(n)&&n!==10));g++);if(r=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<d&&c!==g&&r.ok)for(o=r.str,g=r.pos;g<d&&(n=e.src.charCodeAt(g),!(!ve(n)&&n!==10));g++);}(g>=d||e.src.charCodeAt(g)!==41)&&(l=!0),g++}if(l){if(typeof e.env.references>"u")return!1;if(g<d&&e.src.charCodeAt(g)===91?(c=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(c,g++):g=E+1):g=E+1,u||(u=e.src.slice(b,E)),i=e.env.references[Vu(u)],!i)return e.pos=p,!1;s=i.href,o=i.title}if(!t){e.pos=b,e.posMax=E;const x=e.push("link_open","a",1),O=[["href",s]];x.attrs=O,o&&O.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=d,!0}function c0(e,t){let n,u,r,i,s,o,c,l,p="";const d=e.pos,b=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const E=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(i=g+1,i<b&&e.src.charCodeAt(i)===40){for(i++;i<b&&(n=e.src.charCodeAt(i),!(!ve(n)&&n!==10));i++);if(i>=b)return!1;for(l=i,o=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),o.ok&&(p=e.md.normalizeLink(o.str),e.md.validateLink(p)?i=o.pos:p=""),l=i;i<b&&(n=e.src.charCodeAt(i),!(!ve(n)&&n!==10));i++);if(o=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<b&&l!==i&&o.ok)for(c=o.str,i=o.pos;i<b&&(n=e.src.charCodeAt(i),!(!ve(n)&&n!==10));i++);else c="";if(i>=b||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<b&&e.src.charCodeAt(i)===91?(l=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?r=e.src.slice(l,i++):i=g+1):i=g+1,r||(r=e.src.slice(E,g)),s=e.env.references[Vu(r)],!s)return e.pos=d,!1;p=s.href,c=s.title}if(!t){u=e.src.slice(E,g);const x=[];e.md.inline.parse(u,e.md,e.env,x);const O=e.push("image","img",0),w=[["src",p],["alt",""]];O.attrs=w,O.children=x,O.content=u,c&&w.push(["title",c])}return e.pos=i,e.posMax=b,!0}const a0=/^([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])?)*)$/,l0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function f0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(u+1,n);if(l0.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if(a0.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function d0(e){return/^<a[>\s]/i.test(e)}function p0(e){return/^<\/a\s*>/i.test(e)}function h0(e){const t=e|32;return t>=97&&t<=122}function g0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!h0(r))return!1;const i=e.src.slice(u).match($l);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],d0(s.content)&&e.linkLevel++,p0(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const E0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,b0=/^&([a-z][a-z0-9]{1,31});/i;function _0(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(E0);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0);o.content=Qr(s)?tu(s):tu(65533),o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(b0);if(i){const s=wa(i[0]);if(s!==i[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function ki(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const i=[];for(let s=0;s<n;s++){const o=e[s];if(i.push(0),(e[u].marker!==o.marker||r!==o.token-1)&&(u=s),r=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=u-i[u]-1,p=l;for(;l>c;l-=i[l]+1){const d=e[l];if(d.marker===o.marker&&d.open&&d.end<0){let b=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(b=!0),!b){const E=l>0&&!e[l-1].open?i[l-1]+1:0;i[s]=s-l+E,i[l]=E,o.open=!1,d.end=s,d.close=!1,p=-1,r=-2;break}}}p!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=p)}}function m0(e){const t=e.tokens_meta,n=e.tokens_meta.length;ki(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&ki(t[u].delimiters)}function A0(e){let t,n,u=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const ar=[["text",Zl],["linkify",Jl],["newline",e0],["escape",t0],["backticks",n0],["strikethrough",qo.tokenize],["emphasis",Yo.tokenize],["link",s0],["image",c0],["autolink",f0],["html_inline",g0],["entity",_0]],lr=[["balance_pairs",m0],["strikethrough",qo.postProcess],["emphasis",Yo.postProcess],["fragments_join",A0]];function du(){this.ruler=new pt;for(let e=0;e<ar.length;e++)this.ruler.push(ar[e][0],ar[e][1]);this.ruler2=new pt;for(let e=0;e<lr.length;e++)this.ruler2.push(lr[e][0],lr[e][1])}du.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<r){for(let o=0;o<u;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};du.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const i=e.pos;let s=!1;if(e.level<r){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};du.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let o=0;o<s;o++)i[o](r)};du.prototype.State=fu;function T0(e){const t={};e=e||{},t.src_Any=wo.source,t.src_Cc=Mo.source,t.src_Z=Po.source,t.src_P=Zr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Lr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function Yu(e){return Object.prototype.toString.call(e)}function S0(e){return Yu(e)==="[object String]"}function C0(e){return Yu(e)==="[object Object]"}function N0(e){return Yu(e)==="[object RegExp]"}function Li(e){return Yu(e)==="[object Function]"}function R0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Xo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function I0(e){return Object.keys(e||{}).reduce(function(t,n){return t||Xo.hasOwnProperty(n)},!1)}const O0={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},y0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",x0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function D0(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function vi(){return function(e,t){t.normalize(e)}}function Pu(e){const t=e.re=T0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(y0),n.push(t.src_xn),t.src_tlds=n.join("|");function u(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(u(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(u(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(u(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(o,c){throw new Error(`(LinkifyIt) Invalid schema "${o}": ${c}`)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,C0(c)){N0(c.validate)?l.validate=D0(c.validate):Li(c.validate)?l.validate=c.validate:i(o,c),Li(c.normalize)?l.normalize=c.normalize:c.normalize?i(o,c):l.normalize=vi();return}if(S0(c)){r.push(o);return}i(o,c)}),r.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:vi()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(R0).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Ko(e,t,n,u){const r=e.slice(n,u);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=u,this.raw=r,this.text=r,this.url=r}function Et(e,t){if(!(this instanceof Et))return new Et(e,t);t||I0(e)&&(t=e,e={}),this.__opts__=Lr({},Xo,t),this.__schemas__=Lr({},O0,e),this.__compiled__={},this.__tlds__=x0,this.__tlds_replaced__=!1,this.re={},Pu(this)}Et.prototype.add=function(t,n){return this.__schemas__[t]=n,Pu(this),this};Et.prototype.set=function(t){return this.__opts__=Lr(this.__opts__,t),this};Et.prototype.test=function(t){if(!t.length)return!1;let n,u;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(this.testSchemaAt(t,n[2],u.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};Et.prototype.pretest=function(t){return this.re.pretest.test(t)};Et.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};Et.prototype.match=function(t){const n=[],u=[],r=[],i=[];let s,o,c;function l(b,E){return b?E?b.index!==E.index?b.index<E.index?b:E:b.lastIndex>=E.lastIndex?b:E:b:E}if(!t.length)return null;if(this.re.schema_test.test(t))for(c=this.re.schema_search,c.lastIndex=0;(s=c.exec(t))!==null;)o=this.testSchemaAt(t,s[2],c.lastIndex),o&&u.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(c=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,c.lastIndex=0;(s=c.exec(t))!==null;)r.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(c=this.re.email_fuzzy_global,c.lastIndex=0;(s=c.exec(t))!==null;)i.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const p=[0,0,0];let d=0;for(;;){const b=[u[p[0]],i[p[1]],r[p[2]]],E=l(l(b[0],b[1]),b[2]);if(!E)break;if(E===b[0]?p[0]++:E===b[1]?p[1]++:p[2]++,E.index<d)continue;const g=new Ko(t,E.schema,E.index,E.lastIndex);this.__compiled__[g.schema].normalize(g,this),n.push(g),d=E.lastIndex}return n.length?n:null};Et.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);if(!u)return null;const r=new Ko(t,n[2],n.index+n[1].length,n.index+n[0].length+u);return this.__compiled__[r.schema].normalize(r,this),r};Et.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,i){return u!==i[r-1]}).reverse(),Pu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Pu(this),this)};Et.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};Et.prototype.onCompile=function(){};const Ln=2147483647,Bt=36,ti=1,iu=26,k0=38,L0=700,Zo=72,jo=128,Qo="-",v0=/^xn--/,w0=/[^\0-\x7F]/,M0=/[\x2E\u3002\uFF0E\uFF61]/g,F0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fr=Bt-ti,Ht=Math.floor,dr=String.fromCharCode;function sn(e){throw new RangeError(F0[e])}function P0(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function Jo(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(M0,".");const r=e.split("."),i=P0(r,t).join(".");return u+i}function es(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const U0=e=>String.fromCodePoint(...e),B0=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Bt},wi=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ts=function(e,t,n){let u=0;for(e=n?Ht(e/L0):e>>1,e+=Ht(e/t);e>fr*iu>>1;u+=Bt)e=Ht(e/fr);return Ht(u+(fr+1)*e/(e+k0))},ns=function(e){const t=[],n=e.length;let u=0,r=jo,i=Zo,s=e.lastIndexOf(Qo);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&sn("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=u;for(let p=1,d=Bt;;d+=Bt){o>=n&&sn("invalid-input");const b=B0(e.charCodeAt(o++));b>=Bt&&sn("invalid-input"),b>Ht((Ln-u)/p)&&sn("overflow"),u+=b*p;const E=d<=i?ti:d>=i+iu?iu:d-i;if(b<E)break;const g=Bt-E;p>Ht(Ln/g)&&sn("overflow"),p*=g}const l=t.length+1;i=ts(u-c,l,c==0),Ht(u/l)>Ln-r&&sn("overflow"),r+=Ht(u/l),u%=l,t.splice(u++,0,r)}return String.fromCodePoint(...t)},us=function(e){const t=[];e=es(e);const n=e.length;let u=jo,r=0,i=Zo;for(const c of e)c<128&&t.push(dr(c));const s=t.length;let o=s;for(s&&t.push(Qo);o<n;){let c=Ln;for(const p of e)p>=u&&p<c&&(c=p);const l=o+1;c-u>Ht((Ln-r)/l)&&sn("overflow"),r+=(c-u)*l,u=c;for(const p of e)if(p<u&&++r>Ln&&sn("overflow"),p===u){let d=r;for(let b=Bt;;b+=Bt){const E=b<=i?ti:b>=i+iu?iu:b-i;if(d<E)break;const g=d-E,x=Bt-E;t.push(dr(wi(E+g%x,0))),d=Ht(g/x)}t.push(dr(wi(d,0))),i=ts(r,l,o===s),r=0,++o}++r,++u}return t.join("")},H0=function(e){return Jo(e,function(t){return v0.test(t)?ns(t.slice(4).toLowerCase()):t})},G0=function(e){return Jo(e,function(t){return w0.test(t)?"xn--"+us(t):t})},rs={version:"2.3.1",ucs2:{decode:es,encode:U0},decode:ns,encode:us,toASCII:G0,toUnicode:H0},z0={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},$0={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},V0={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},W0={default:z0,zero:$0,commonmark:V0},q0=/^(vbscript|javascript|file|data):/,Y0=/^data:image\/(gif|png|jpeg|webp);/;function X0(e){const t=e.trim().toLowerCase();return q0.test(t)?Y0.test(t):!0}const is=["http:","https:","mailto:"];function K0(e){const t=Kr(e,!0);if(t.hostname&&(!t.protocol||is.indexOf(t.protocol)>=0))try{t.hostname=rs.toASCII(t.hostname)}catch{}return lu(Xr(t))}function Z0(e){const t=Kr(e,!0);if(t.hostname&&(!t.protocol||is.indexOf(t.protocol)>=0))try{t.hostname=rs.toUnicode(t.hostname)}catch{}return wn(Xr(t),wn.defaultChars+"%")}function Rt(e,t){if(!(this instanceof Rt))return new Rt(e,t);t||jr(e)||(t=e||{},e="default"),this.inline=new du,this.block=new qu,this.core=new Jr,this.renderer=new Pn,this.linkify=new Et,this.validateLink=X0,this.normalizeLink=K0,this.normalizeLinkText=Z0,this.utils=ja,this.helpers=$u({},tl),this.options={},this.configure(e),t&&this.set(t)}Rt.prototype.set=function(e){return $u(this.options,e),this};Rt.prototype.configure=function(e){const t=this;if(jr(e)){const n=e;if(e=W0[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Rt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};Rt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};Rt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Rt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Rt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Rt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Rt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function j0(e){if(Array.isArray(e))return e}function Q0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,r,i,s,o=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(u=i.call(n)).done)&&(o.push(u.value),o.length!==t);c=!0);}catch(p){l=!0,r=p}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return o}}function J0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function ef(e,t){return j0(e)||Q0(e,t)||tf(e,t)||J0()}function tf(e,t){if(e){if(typeof e=="string")return Mi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(e,t):void 0}}const os=Object.entries,Fi=Object.setPrototypeOf,nf=Object.isFrozen,ss=Object.getPrototypeOf,cs=Object.getOwnPropertyDescriptor;let Ze=Object.freeze,nt=Object.seal,xn=Object.create,as=typeof Reflect<"u"&&Reflect,vr=as.apply,wr=as.construct;Ze||(Ze=function(t){return t});nt||(nt=function(t){return t});vr||(vr=function(t,n){for(var u=arguments.length,r=new Array(u>2?u-2:0),i=2;i<u;i++)r[i-2]=arguments[i];return t.apply(n,r)});wr||(wr=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return new t(...u)});const Kt=Pe(Array.prototype.forEach),uf=Pe(Array.prototype.lastIndexOf),Pi=Pe(Array.prototype.pop),Wn=Pe(Array.prototype.push),rf=Pe(Array.prototype.slice),of=Pe(Array.prototype.splice),vn=Array.isArray,pr=ls(Set),hr=Pe(Set.prototype.add),qn=Pe(Set.prototype.has),En=Pe(String.prototype.toLowerCase),gr=Pe(String.prototype.toString),Ui=Pe(String.prototype.match),Yn=Pe(String.prototype.replace),Bi=Pe(String.prototype.indexOf),sf=Pe(String.prototype.trim),cf=Pe(Number.prototype.toString),af=Pe(Boolean.prototype.toString),Hi=typeof BigInt>"u"?null:Pe(BigInt.prototype.toString),Gi=typeof Symbol>"u"?null:Pe(Symbol.prototype.toString),ft=Pe(Object.prototype.hasOwnProperty),Xn=Pe(Object.prototype.toString),tt=Pe(RegExp.prototype.test),Zt=ls(TypeError);function Pe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return vr(e,t,u)}}function ls(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return wr(e,n)}}function _e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:En;if(Fi&&Fi(e,null),!vn(t))return e;let u=t.length;for(;u--;){let r=t[u];if(typeof r=="string"){const i=n(r);i!==r&&(nf(t)||(t[u]=i),r=i)}e[r]=!0}return e}function lf(e){for(let t=0;t<e.length;t++)ft(e,t)||(e[t]=null);return e}function gt(e){const t=xn(null);for(const u of os(e)){var n=ef(u,2);const r=n[0],i=n[1];ft(e,r)&&(vn(i)?t[r]=lf(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=gt(i):t[r]=i)}return t}function ff(e){switch(typeof e){case"string":return e;case"number":return cf(e);case"boolean":return af(e);case"bigint":return Hi?Hi(e):"0";case"symbol":return Gi?Gi(e):"Symbol()";case"undefined":return Xn(e);case"function":case"object":{if(e===null)return Xn(e);const t=e,n=Ct(t,"toString");if(typeof n=="function"){const u=n(t);return typeof u=="string"?u:Xn(u)}return Xn(e)}default:return Xn(e)}}function Ct(e,t){for(;e!==null;){const u=cs(e,t);if(u){if(u.get)return Pe(u.get);if(typeof u.value=="function")return Pe(u.value)}e=ss(e)}function n(){return null}return n}function df(e,t){for(;e!==null;){const n=cs(e,t);if(n)return n.get?Pe(n.get):null;e=ss(e)}return null}function pf(e){try{return tt(e,""),!0}catch{return!1}}const zi=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"]),Er=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"]),br=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"]),hf=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"]),_r=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"]),gf=Ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$i=Ze(["#text"]),Vi=Ze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),mr=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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Wi=Ze(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Ru=Ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ef=nt(/{{[\w\W]*|^[\w\W]*}}/g),bf=nt(/<%[\w\W]*|^[\w\W]*%>/g),_f=nt(/\${[\w\W]*/g),mf=nt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Af=nt(/^aria-[\-\w]+$/),qi=nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tf=nt(/^(?:\w+script|data):/i),Sf=nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cf=nt(/^html$/i),Nf=nt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ar=nt(/<[/\w!]/g),Yi=nt(/<[/\w]/g),Rf=nt(/<\/no(script|embed|frames)/i),Xi=nt(/\/>/i),$e={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},If=Ze(_e({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Of=function(){return typeof window>"u"?null:window},yf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(u=n.getAttribute(r));const i="dompurify"+(u?"#"+u:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Ki=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rn=function(t,n,u,r){return ft(t,n)&&vn(t[n])?_e(r.base?gt(r.base):{},t[n],r.transform):u},Tr=function(t,n,u){const r=ft(t,n)?t[n]:void 0;return r&&typeof r=="object"?gt(r):u()};function fs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Of();const t=k=>fs(k);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==$e.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const u=n,r=u.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,o=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const l=e.DOMParser,p=e.trustedTypes,d=o.prototype,b=Ct(d,"cloneNode"),E=Ct(d,"remove"),g=Ct(d,"removeAttributeNode"),x=Ct(d,"nextSibling"),O=Ct(d,"childNodes"),w=Ct(d,"parentNode"),C=Ct(d,"shadowRoot"),D=Ct(d,"attributes"),v=s&&s.prototype?Ct(s.prototype,"nodeType"):null,y=s&&s.prototype?Ct(s.prototype,"nodeName"):null,L=s&&s.prototype?Ct(s.prototype,"ownerDocument"):null,U=function(f){return v?v(f):f.nodeType},Y=function(f){return y?y(f):f.nodeName},j=df(d,"namespaceURI"),me=function(f){return j?j(f):f.namespaceURI};if(typeof i=="function"){const k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}let se,H="",oe,pe=!1,K=0;const Se=function(){if(K>0)throw Zt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ae=function(f){Se(),K++;try{return se.createHTML(f)}finally{K--}},I=function(f){Se(),K++;try{return se.createScriptURL(f)}finally{K--}},G=function(){return pe||(oe=yf(p,r),pe=!0),oe},Q=n,de=Q.implementation,re=Q.createNodeIterator,he=Q.createDocumentFragment,je=Q.getElementsByTagName,It=u.importNode;let ce=Ki();t.isSupported=typeof os=="function"&&typeof w=="function"&&de&&de.createHTMLDocument!==void 0;const ln=Ef,Qt=bf,F=_f,be=mf,Ue=Af,qe=Tf,we=Sf,ht=Nf;let $t=qi,ge=null;const Ot=_e({},[...zi,...Er,...br,..._r,...$i]);let ye=null;const fn=_e({},[...Vi,...mr,...Wi,...Ru]);let rt=Object.seal(xn(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}})),Mt=null,An=null;const Qe=Object.seal(xn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let bt=!0,Jt=!0,_t=!1,yt=!0,st=!1,xt=!0,Dt=!1,Vt=!1,Wt=null,en=null,qt=!1,Ft=!1,Yt=!1,A=!1,te=!0,Ee=!1;const Re="user-content-";let Je=!0,Ye=!1,Ge=null,h={},S=null;const B=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ne=null;const Me=_e({},["audio","video","img","source","image","track"]);let Fe=null;const V=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),z="http://www.w3.org/1998/Math/MathML",Z="http://www.w3.org/2000/svg",Ie="http://www.w3.org/1999/xhtml";let xe=Ie,Xt=!1,dn=null;const Un=_e({},[z,Z,Ie],gr),pu=Ze(["mi","mo","mn","ms","mtext"]);let pn=_e({},pu);const hu=Ze(["annotation-xml"]);let Bn=_e({},hu);const Xu=_e({},["title","style","font","a","script"]);let tn=null;const Tn=["application/xhtml+xml","text/html"],Ku="text/html";let Be=null,nn=null;const Pt=n.createElement("form"),Hn=function(f){return f instanceof RegExp||f instanceof Function},Sn=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(nn&&nn===f)return;(!f||typeof f!="object")&&(f={}),f=gt(f),tn=Tn.indexOf(f.PARSER_MEDIA_TYPE)===-1?Ku:f.PARSER_MEDIA_TYPE,Be=tn==="application/xhtml+xml"?gr:En,ge=rn(f,"ALLOWED_TAGS",Ot,{transform:Be}),ye=rn(f,"ALLOWED_ATTR",fn,{transform:Be}),dn=rn(f,"ALLOWED_NAMESPACES",Un,{transform:gr}),Fe=rn(f,"ADD_URI_SAFE_ATTR",V,{transform:Be,base:V}),ne=rn(f,"ADD_DATA_URI_TAGS",Me,{transform:Be,base:Me}),S=rn(f,"FORBID_CONTENTS",B,{transform:Be}),Mt=rn(f,"FORBID_TAGS",gt({}),{transform:Be}),An=rn(f,"FORBID_ATTR",gt({}),{transform:Be}),h=ft(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?gt(f.USE_PROFILES):f.USE_PROFILES:!1,bt=f.ALLOW_ARIA_ATTR!==!1,Jt=f.ALLOW_DATA_ATTR!==!1,_t=f.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=f.SAFE_FOR_TEMPLATES||!1,xt=f.SAFE_FOR_XML!==!1,Dt=f.WHOLE_DOCUMENT||!1,Ft=f.RETURN_DOM||!1,Yt=f.RETURN_DOM_FRAGMENT||!1,A=f.RETURN_TRUSTED_TYPE||!1,qt=f.FORCE_BODY||!1,te=f.SANITIZE_DOM!==!1,Ee=f.SANITIZE_NAMED_PROPS||!1,Je=f.KEEP_CONTENT!==!1,Ye=f.IN_PLACE||!1,$t=pf(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:qi,xe=typeof f.NAMESPACE=="string"?f.NAMESPACE:Ie,pn=Tr(f,"MATHML_TEXT_INTEGRATION_POINTS",()=>_e({},pu)),Bn=Tr(f,"HTML_INTEGRATION_POINTS",()=>_e({},hu));const _=Tr(f,"CUSTOM_ELEMENT_HANDLING",()=>xn(null));if(rt=xn(null),ft(_,"tagNameCheck")&&Hn(_.tagNameCheck)&&(rt.tagNameCheck=_.tagNameCheck),ft(_,"attributeNameCheck")&&Hn(_.attributeNameCheck)&&(rt.attributeNameCheck=_.attributeNameCheck),ft(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&(rt.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),nt(rt),st&&(Jt=!1),Yt&&(Ft=!0),h&&(ge=_e({},$i),ye=xn(null),h.html===!0&&(_e(ge,zi),_e(ye,Vi)),h.svg===!0&&(_e(ge,Er),_e(ye,mr),_e(ye,Ru)),h.svgFilters===!0&&(_e(ge,br),_e(ye,mr),_e(ye,Ru)),h.mathMl===!0&&(_e(ge,_r),_e(ye,Wi),_e(ye,Ru))),Qe.tagCheck=null,Qe.attributeCheck=null,ft(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?Qe.tagCheck=f.ADD_TAGS:vn(f.ADD_TAGS)&&(ge===Ot&&(ge=gt(ge)),_e(ge,f.ADD_TAGS,Be))),ft(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?Qe.attributeCheck=f.ADD_ATTR:vn(f.ADD_ATTR)&&(ye===fn&&(ye=gt(ye)),_e(ye,f.ADD_ATTR,Be))),ft(f,"ADD_FORBID_CONTENTS")&&vn(f.ADD_FORBID_CONTENTS)&&(S===B&&(S=gt(S)),_e(S,f.ADD_FORBID_CONTENTS,Be)),Je&&(ge["#text"]=!0),Dt&&_e(ge,["html","head","body"]),ge.table&&(_e(ge,["tbody"]),delete Mt.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const N=se;se=f.TRUSTED_TYPES_POLICY;try{H=Ae("")}catch(R){throw se=N,R}}else f.TRUSTED_TYPES_POLICY===null?(se=void 0,H=""):(se===void 0&&(se=G()),se&&typeof H=="string"&&(H=Ae("")));Ze&&Ze(f),nn=f},gu=_e({},[...Er,...br,...hf]),Eu=_e({},[..._r,...gf]),Zu=function(f,_,N){return _.namespaceURI===Ie?f==="svg":_.namespaceURI===z?f==="svg"&&(N==="annotation-xml"||pn[N]):!!gu[f]},Cn=function(f,_,N){return _.namespaceURI===Ie?f==="math":_.namespaceURI===Z?f==="math"&&Bn[N]:!!Eu[f]},ju=function(f,_,N){return _.namespaceURI===Z&&!Bn[N]||_.namespaceURI===z&&!pn[N]?!1:!Eu[f]&&(Xu[f]||!gu[f])},M=function(f){const _=me(f),N=En(Y(f)),R=w(f);let X,ee;return R&&U(R)===$e.element?(X={namespaceURI:me(R)},ee=En(Y(R))):(X={namespaceURI:xe},ee="template"),dn[_]?_===Z?Zu(N,X,ee):_===z?Cn(N,X,ee):_===Ie?ju(N,X,ee):!!(tn==="application/xhtml+xml"&&dn[_]):!1},$=function(f){Wn(t.removed,{element:f});try{w(f).removeChild(f)}catch{if(E(f),!w(f))throw Zt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ae=function(f,_,N){try{g(f,_)}catch{try{f.removeAttribute(N)}catch{}}},Ne=function(f){un(f);const _=O(f);_&&Kt(rf(_),R=>{try{E(R)}catch{}});const N=U(f)===$e.element?D(f):null;if(N)for(let R=N.length-1;R>=0;--R){const X=N[R],ee=X&&X.name;typeof ee=="string"&&ae(f,X,ee)}},De=function(f,_,N){if(!N)try{N=_.getAttributeNode(f)}catch{N=null}Wn(t.removed,{attribute:N||null,from:_});try{N?g(_,N):_.removeAttribute(f)}catch{try{_.removeAttribute(f)}catch{}}if(f==="is")if(Ft||Yt)try{$(_)}catch{}else try{_.setAttribute(f,"")}catch{}},ct=function(f){const _=D(f);if(_)for(let N=_.length-1;N>=0;--N){const R=_[N],X=R&&R.name;typeof X!="string"||ye[Be(X)]||ae(f,R,X)}},mt=function(f,_){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const R=[f];for(;R.length>0;){const X=R.pop();if(_(X)===!1)continue;if(N&&U(X)===$e.element){const fe=C(X);kt(fe)&&R.push(fe)}const ee=O(X);if(ee)for(let fe=ee.length-1;fe>=0;--fe)R.push(ee[fe])}},un=function(f){mt(f,_=>{U(_)===$e.element&&ct(_)})},et=function(f){const _=[];return mt(f,N=>{_.push(N)},!0),_},At=function(f,_){const N=pr();Kt(et(f),R=>{U(R)===$e.element&&hr(N,R)}),Kt(_,R=>{U(R)===$e.element&&!qn(N,R)&&ct(R)})},Gn=function(f,_){let N=!1;return Kt(t.removed,R=>{R.element&&(N=N||R.element===f,un(R.element))}),At(f,_),N},bu=8,_u=function(f,_){const N=Ge;let R=null;const X=()=>(R||(R=pr(),Kt(_,ee=>{hr(R,ee)})),R);for(let ee=0;;ee++){const fe=et(f),We=[f];let Ut=!1;if(Kt(fe,ot=>{U(ot)===$e.documentFragment?Wn(We,ot):!Ut&&!qn(N,ot)&&(Ut=qn(X(),ot))}),!Ut)return;if(ee>=bu)throw Zt("the tree kept changing during in-place sanitization; refusing to return it");Kt(We,(ot,at)=>{Qu(ot,at>0,f,X())})}},Qu=function(f,_,N,R){const X=Nn(f);let ee;for(;ee=X.nextNode();)!qn(R,ee)||qn(Ge,ee)||(_&&le(ce.uponSanitizeShadowNode,ee,null),W(ee,N),nr(ee,N),kt(ee.content)&&Vn(ee.content))},Ju=function(f){Ge&&hr(Ge,f)},mu=function(f,_){return xt?f==="patchsrc"?!0:f==="for"&&_!=="label"&&_!=="output":!1},er=function(f){xt&&mt(f,_=>{const N=U(_);if(N===$e.processingInstruction||N===$e.comment&&tt(Yi,_.data)){try{E(_)}catch{}return!1}if(N===$e.element){const R=_,X=Be(Y(_));try{R.hasAttribute&&R.hasAttribute("patchsrc")&&R.removeAttribute("patchsrc"),R.hasAttribute&&R.hasAttribute("for")&&mu("for",X)&&R.removeAttribute("for")}catch{}}return!0})},hn=function(f){let _=null,N=null;if(qt)f="<remove></remove>"+f;else{const ee=Ui(f,/^[\r\n\t ]+/);N=ee&&ee[0]}tn==="application/xhtml+xml"&&xe===Ie&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const R=se?Ae(f):f;if(xe===Ie)try{_=new l().parseFromString(R,tn)}catch{}if(!_||!_.documentElement){_=de.createDocument(xe,"template",null);try{_.documentElement.innerHTML=Xt?H:R}catch{}}const X=_.body||_.documentElement;return f&&N&&X.insertBefore(n.createTextNode(N),X.childNodes[0]||null),xe===Ie?je.call(_,Dt?"html":"body")[0]:Dt?_.documentElement:X},Nn=function(f){const _=L?L(f):f.ownerDocument;return re.call(_||f,f,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},it=function(f){return f=Yn(f,ln," "),f=Yn(f,Qt," "),f=Yn(f,F," "),f},zn=function(f){var _;Rn(f);const N=(_=f.querySelectorAll)===null||_===void 0?void 0:_.call(f,"template");N&&Kt(N,R=>{kt(R.content)&&zn(R.content)})},Rn=function(f){f.normalize();const _=L?L(f):f.ownerDocument,N=re.call(_||f,f,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let R=N.nextNode();for(;R;)R.data=it(R.data),R=N.nextNode()},J=function(f){const _=y?y(f):null;return typeof _!="string"||Be(_)!=="form"?!1:typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||f.attributes!==D(f)||typeof f.removeAttribute!="function"||typeof f.removeAttributeNode!="function"||typeof f.getAttributeNode!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function"||f.nodeType!==v(f)||f.childNodes!==O(f)},kt=function(f){if(!v||typeof f!="object"||f===null)return!1;try{return v(f)===$e.documentFragment}catch{return!1}},He=function(f){if(!v||typeof f!="object"||f===null)return!1;try{return typeof v(f)=="number"}catch{return!1}};function le(k,f,_){k.length!==0&&Kt(k,N=>{N.call(t,f,_,nn)})}const In=function(f,_){return!!(xt&&f.hasChildNodes()&&!He(f.firstElementChild)&&tt(Ar,f.textContent)&&tt(Ar,f.innerHTML)||xt&&If[_]&&U(f)===$e.element&&me(f)===Ie&&(He(f.firstElementChild)||typeof f.textContent=="string"&&tt(Ar,f.textContent))||f.nodeType===$e.processingInstruction||xt&&f.nodeType===$e.comment&&tt(Yi,f.data))},Tt=function(f,_){if(f instanceof RegExp)return tt(f,_);if(f instanceof Function){for(var N=arguments.length,R=new Array(N>2?N-2:0),X=2;X<N;X++)R[X-2]=arguments[X];return!!f(_,...R)}return!1},$n=function(f,_,N){if(!Mt[_]&&Ve(_)&&Tt(rt.tagNameCheck,_))return!1;if(Je&&!S[_]&&!S[En(_)]){const R=w(f),X=O(f);if(X&&R){const ee=X.length;for(let fe=ee-1;fe>=0;--fe){const We=f===N?b(X[fe],!0):X[fe];R.insertBefore(We,x(f))}}}return $(f),!0},On=function(f,_,N,R){return f.length===0?_:_===N||_===R?gt(_):_},P=function(f,_){return f===_||w(f)!==null?!1:(Ye&&un(f),!0)},W=function(f,_){if(Ju(f),le(ce.beforeSanitizeElements,f,null),P(f,_))return!0;if(J(f))return $(f),!0;const N=Be(Y(f));if(ge=On(ce.uponSanitizeElement,ge,Ot,Wt),le(ce.uponSanitizeElement,f,{tagName:N,allowedTags:ge}),P(f,_))return!0;if(In(f,N))return $(f),!0;if(Mt[N]||!(Qe.tagCheck instanceof Function&&Qe.tagCheck(N))&&!ge[N]){const R=$n(f,N,_);return R===!1&&(le(ce.afterSanitizeElements,f,null),P(f,_))?!0:R}if(U(f)===$e.element&&!M(f)||(N==="noscript"||N==="noembed"||N==="noframes")&&tt(Rf,f.innerHTML))return $(f),!0;if(st&&f.nodeType===$e.text){const R=it(f.textContent);f.textContent!==R&&(Wn(t.removed,{element:f.cloneNode()}),f.textContent=R)}return le(ce.afterSanitizeElements,f,null),P(f,_)},ie=function(f,_,N){if(An[_]||mu(_,f)||te&&(_==="id"||_==="name")&&(N in n||N in Pt))return!1;const R=ye[_]||Qe.attributeCheck instanceof Function&&Qe.attributeCheck(_,f);return Jt&&tt(be,_)||bt&&tt(Ue,_)?!0:R?Fe[_]||tt($t,Yn(N,we,""))||(_==="src"||_==="xlink:href"||_==="href")&&f!=="script"&&Bi(N,"data:")===0&&ne[f]||_t&&!tt(qe,Yn(N,we,""))?!0:!N:Ve(f)&&Tt(rt.tagNameCheck,f)&&Tt(rt.attributeNameCheck,_,f)||_==="is"&&rt.allowCustomizedBuiltInElements&&Tt(rt.tagNameCheck,N)},Ce=_e({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ve=function(f){return!Ce[En(f)]&&tt(ht,f)},Lt=function(f,_,N,R){if(se&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!N)switch(p.getAttributeType(f,_)){case"TrustedHTML":return Ae(R);case"TrustedScriptURL":return I(R)}return R},tr=function(f,_,N,R){try{return N?f.setAttributeNS(N,_,R):f.setAttribute(_,R),J(f)?($(f),!1):!0}catch{return De(_,f),!1}},Au=function(f,_){return xt&&tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,_)?!0:En(f)==="attributename"&&Ui(_,"href")!==null},nr=function(f,_){if(le(ce.beforeSanitizeAttributes,f,null),P(f,_))return;const N=f.attributes;if(!N||J(f))return;ye=On(ce.uponSanitizeAttribute,ye,fn,en);const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye,forceKeepAttr:void 0};let X=N.length;const ee=Be(f.nodeName);for(;X--;){const fe=N[X],We=fe.name,Ut=fe.namespaceURI,ot=fe.value,at=Be(We),yn=ot;let lt=We==="value"?yn:sf(yn),ni=!1;if(R.attrName=at,R.attrValue=lt,R.keepAttr=!0,R.forceKeepAttr=void 0,le(ce.uponSanitizeAttribute,f,R),lt=R.attrValue,Ee&&(at==="id"||at==="name")&&Bi(lt,Re)!==0&&(De(We,f,fe),lt=Re+lt,ni=!0),Au(We,lt)){De(We,f,fe);continue}if(!R.forceKeepAttr){if(!R.keepAttr){De(We,f,fe);continue}if(!yt&&tt(Xi,lt)){De(We,f,fe);continue}if(st&&(lt=it(lt)),!ie(ee,at,lt)){De(We,f,fe);continue}lt=Lt(ee,at,Ut,lt),lt!==yn&&tr(f,We,Ut,lt)&&ni&&Pi(t.removed)}}le(ce.afterSanitizeAttributes,f,null),P(f,_)},Vn=function(f){let _=null;const N=Nn(f);for(le(ce.beforeSanitizeShadowDOM,f,null);_=N.nextNode();)if(le(ce.uponSanitizeShadowNode,_,null),W(_,f),nr(_,f),kt(_.content)&&Vn(_.content),U(_)===$e.element){const R=C(_);kt(R)&&(ur(R),Vn(R))}st&&Rn(f),le(ce.afterSanitizeShadowDOM,f,null)},ur=function(f){const _=[{node:f,shadow:null}];for(;_.length>0;){const N=_.pop();if(N.shadow){Vn(N.shadow);continue}const R=N.node,X=U(R)===$e.element,ee=O(R);if(ee)for(let fe=ee.length-1;fe>=0;--fe)_.push({node:ee[fe],shadow:null});if(X){const fe=y?y(R):null;if(typeof fe=="string"&&Be(fe)==="template"){const We=R.content;kt(We)&&_.push({node:We,shadow:null})}}if(X){const fe=C(R);kt(fe)&&_.push({node:null,shadow:fe},{node:fe,shadow:null})}}};return t.sanitize=function(k){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,N=null,R=null,X=null;if(Xt=!k,Xt&&(k="<!-->"),typeof k!="string"&&!He(k)&&(k=ff(k),typeof k!="string"))throw Zt("dirty is not a string, aborting");if(!t.isSupported)return k;Vt?(ge=Wt,ye=en):Sn(f),(ce.uponSanitizeElement.length>0||ce.uponSanitizeAttribute.length>0)&&(ge=gt(ge)),ce.uponSanitizeAttribute.length>0&&(ye=gt(ye)),t.removed=[];const ee=Ye&&typeof k!="string"&&He(k);let fe=[];const We=Ge;if(ee){er(k);const at=Y(k);if(typeof at=="string"){const yn=Be(at);if(!ge[yn]||Mt[yn])throw Ne(k),Zt("root node is forbidden and cannot be sanitized in-place")}if(J(k))throw Ne(k),Zt("root node is clobbered and cannot be sanitized in-place");fe=et(k),Ge=pr()}else if(He(k))_=hn("<!---->"),N=_.ownerDocument.importNode(k,!0),N.nodeType===$e.element&&N.nodeName==="BODY"||N.nodeName==="HTML"?_=N:_.appendChild(N),ur(_);else{if(!Ft&&!st&&!Dt&&k.indexOf("<")===-1)return se&&A?Ae(k):k;if(_=hn(k),!_)return Ft?null:A?H:""}_&&qt&&$(_.firstChild);const Ut=ee?k:_;try{ee&&ur(k);const at=Nn(Ut);for(;R=at.nextNode();)W(R,Ut),nr(R,Ut),kt(R.content)&&Vn(R.content);ee&&_u(k,fe)}catch(at){throw ee&&(Ne(k),Gn(k,fe)),at}finally{Ge=We}if(ee){if(Gn(k,fe))throw Zt("a node selected for removal could not be safely returned; refusing to sanitize in place");return st&&zn(k),k}if(Ft){if(st&&zn(_),Yt)for(X=he.call(_.ownerDocument);_.firstChild;)X.appendChild(_.firstChild);else X=_;return(ye.shadowroot||ye.shadowrootmode)&&(X=It.call(u,X,!0)),X}let ot=Dt?_.outerHTML:_.innerHTML;return Dt&&ge["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&tt(Cf,_.ownerDocument.doctype.name)&&(ot="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
47
+ `+ot),st&&(ot=it(ot)),se&&A?Ae(ot):ot},t.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sn(k),Vt=!0,Wt=ge,en=ye},t.clearConfig=function(){nn=null,Vt=!1,Wt=null,en=null,se=oe,H=""},t.isValidAttribute=function(k,f,_){nn||Sn({});const N=Be(k),R=Be(f);return typeof _=="string"&&(Au(f,_)||!yt&&tt(Xi,_))?!1:ie(N,R,_)},t.addHook=function(k,f){typeof f=="function"&&ft(ce,k)&&Wn(ce[k],f)},t.removeHook=function(k,f){if(ft(ce,k)){if(f!==void 0){const _=uf(ce[k],f);return _===-1?void 0:of(ce[k],_,1)[0]}return Pi(ce[k])}},t.removeHooks=function(k){ft(ce,k)&&(ce[k]=[])},t.removeAllHooks=function(){ce=Ki()},t}var xf=fs();function Df(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr,Zi;function kf(){if(Zi)return Sr;Zi=1;function e(h){return h instanceof Map?h.clear=h.delete=h.set=function(){throw new Error("map is read-only")}:h instanceof Set&&(h.add=h.clear=h.delete=function(){throw new Error("set is read-only")}),Object.freeze(h),Object.getOwnPropertyNames(h).forEach(S=>{const B=h[S],ne=typeof B;(ne==="object"||ne==="function")&&!Object.isFrozen(B)&&e(B)}),h}class t{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function u(h,...S){const B=Object.create(null);for(const ne in h)B[ne]=h[ne];return S.forEach(function(ne){for(const Me in ne)B[Me]=ne[Me]}),B}const r="</span>",i=h=>!!h.scope,s=(h,{prefix:S})=>{if(h.startsWith("language:"))return h.replace("language:","language-");if(h.includes(".")){const B=h.split(".");return[`${S}${B.shift()}`,...B.map((ne,Me)=>`${ne}${"_".repeat(Me+1)}`)].join(" ")}return`${S}${h}`};class o{constructor(S,B){this.buffer="",this.classPrefix=B.classPrefix,S.walk(this)}addText(S){this.buffer+=n(S)}openNode(S){if(!i(S))return;const B=s(S.scope,{prefix:this.classPrefix});this.span(B)}closeNode(S){i(S)&&(this.buffer+=r)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const c=(h={})=>{const S={children:[]};return Object.assign(S,h),S};class l{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const B=c({scope:S});this.add(B),this.stack.push(B)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,B){return typeof B=="string"?S.addText(B):B.children&&(S.openNode(B),B.children.forEach(ne=>this._walk(S,ne)),S.closeNode(B)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every(B=>typeof B=="string")?S.children=[S.children.join("")]:S.children.forEach(B=>{l._collapse(B)}))}}class p extends l{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,B){const ne=S.root;B&&(ne.scope=`language:${B}`),this.add(ne)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(h){return h?typeof h=="string"?h:h.source:null}function b(h){return x("(?=",h,")")}function E(h){return x("(?:",h,")*")}function g(h){return x("(?:",h,")?")}function x(...h){return h.map(B=>d(B)).join("")}function O(h){const S=h[h.length-1];return typeof S=="object"&&S.constructor===Object?(h.splice(h.length-1,1),S):{}}function w(...h){return"("+(O(h).capture?"":"?:")+h.map(ne=>d(ne)).join("|")+")"}function C(h){return new RegExp(h.toString()+"|").exec("").length-1}function D(h,S){const B=h&&h.exec(S);return B&&B.index===0}const v=new RegExp(w(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function y(h,{joinWith:S}){let B=0;return h.map(ne=>{B+=1;const Me=B;let Fe=d(ne),V="";for(;Fe.length>0;){const z=v.exec(Fe);if(!z){V+=Fe;break}V+=Fe.substring(0,z.index),Fe=Fe.substring(z.index+z[0].length),z[0][0]==="\\"&&z[1]?V+="\\"+String(Number(z[1])+Me):(V+=z[0],(z[0]==="("||/^\(\?[<']/.test(z[0]))&&B++)}return V}).map(ne=>`(${ne})`).join(S)}const L=/\b\B/,U="[a-zA-Z]\\w*",Y="[a-zA-Z_]\\w*",j="\\b\\d+(\\.\\d+)?",me="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",se="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",oe=(h={})=>{const S=/^#![ ]*\//;return h.binary&&(h.begin=x(S,/.*\b/,h.binary,/\b.*/)),u({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":(B,ne)=>{B.index!==0&&ne.ignoreMatch()}},h)},pe={begin:"\\\\[\\s\\S]",relevance:0},K={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pe]},Se={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pe]},Ae={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(h,S,B={}){const ne=u({scope:"comment",begin:h,end:S,contains:[]},B);ne.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Me=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ne.contains.push({begin:x(/[ ]+/,"(",Me,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ne},G=I("//","$"),Q=I("/\\*","\\*/"),de=I("#","$"),re={scope:"number",begin:j,relevance:0},he={scope:"number",begin:me,relevance:0},je={scope:"number",begin:se,relevance:0},It={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pe,{begin:/\[/,end:/\]/,relevance:0,contains:[pe]}]},ce={scope:"title",begin:U,relevance:0},ln={scope:"title",begin:Y,relevance:0},Qt={begin:"\\.\\s*"+Y,relevance:0};var be=Object.freeze({__proto__:null,APOS_STRING_MODE:K,BACKSLASH_ESCAPE:pe,BINARY_NUMBER_MODE:je,BINARY_NUMBER_RE:se,COMMENT:I,C_BLOCK_COMMENT_MODE:Q,C_LINE_COMMENT_MODE:G,C_NUMBER_MODE:he,C_NUMBER_RE:me,END_SAME_AS_BEGIN:function(h){return Object.assign(h,{"on:begin":(S,B)=>{B.data._beginMatch=S[1]},"on:end":(S,B)=>{B.data._beginMatch!==S[1]&&B.ignoreMatch()}})},HASH_COMMENT_MODE:de,IDENT_RE:U,MATCH_NOTHING_RE:L,METHOD_GUARD:Qt,NUMBER_MODE:re,NUMBER_RE:j,PHRASAL_WORDS_MODE:Ae,QUOTE_STRING_MODE:Se,REGEXP_MODE:It,RE_STARTERS_RE:H,SHEBANG:oe,TITLE_MODE:ce,UNDERSCORE_IDENT_RE:Y,UNDERSCORE_TITLE_MODE:ln});function Ue(h,S){h.input[h.index-1]==="."&&S.ignoreMatch()}function qe(h,S){h.className!==void 0&&(h.scope=h.className,delete h.className)}function we(h,S){S&&h.beginKeywords&&(h.begin="\\b("+h.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",h.__beforeBegin=Ue,h.keywords=h.keywords||h.beginKeywords,delete h.beginKeywords,h.relevance===void 0&&(h.relevance=0))}function ht(h,S){Array.isArray(h.illegal)&&(h.illegal=w(...h.illegal))}function $t(h,S){if(h.match){if(h.begin||h.end)throw new Error("begin & end are not supported with match");h.begin=h.match,delete h.match}}function ge(h,S){h.relevance===void 0&&(h.relevance=1)}const Ot=(h,S)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const B=Object.assign({},h);Object.keys(h).forEach(ne=>{delete h[ne]}),h.keywords=B.keywords,h.begin=x(B.beforeMatch,b(B.begin)),h.starts={relevance:0,contains:[Object.assign(B,{endsParent:!0})]},h.relevance=0,delete B.beforeMatch},ye=["of","and","for","in","not","or","if","then","parent","list","value"],fn="keyword";function rt(h,S,B=fn){const ne=Object.create(null);return typeof h=="string"?Me(B,h.split(" ")):Array.isArray(h)?Me(B,h):Object.keys(h).forEach(function(Fe){Object.assign(ne,rt(h[Fe],S,Fe))}),ne;function Me(Fe,V){S&&(V=V.map(z=>z.toLowerCase())),V.forEach(function(z){const Z=z.split("|");ne[Z[0]]=[Fe,Mt(Z[0],Z[1])]})}}function Mt(h,S){return S?Number(S):An(h)?0:1}function An(h){return ye.includes(h.toLowerCase())}const Qe={},bt=h=>{console.error(h)},Jt=(h,...S)=>{console.log(`WARN: ${h}`,...S)},_t=(h,S)=>{Qe[`${h}/${S}`]||(console.log(`Deprecated as of ${h}. ${S}`),Qe[`${h}/${S}`]=!0)},yt=new Error;function st(h,S,{key:B}){let ne=0;const Me=h[B],Fe={},V={};for(let z=1;z<=S.length;z++)V[z+ne]=Me[z],Fe[z+ne]=!0,ne+=C(S[z-1]);h[B]=V,h[B]._emit=Fe,h[B]._multi=!0}function xt(h){if(Array.isArray(h.begin)){if(h.skip||h.excludeBegin||h.returnBegin)throw bt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yt;if(typeof h.beginScope!="object"||h.beginScope===null)throw bt("beginScope must be object"),yt;st(h,h.begin,{key:"beginScope"}),h.begin=y(h.begin,{joinWith:""})}}function Dt(h){if(Array.isArray(h.end)){if(h.skip||h.excludeEnd||h.returnEnd)throw bt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yt;if(typeof h.endScope!="object"||h.endScope===null)throw bt("endScope must be object"),yt;st(h,h.end,{key:"endScope"}),h.end=y(h.end,{joinWith:""})}}function Vt(h){h.scope&&typeof h.scope=="object"&&h.scope!==null&&(h.beginScope=h.scope,delete h.scope)}function Wt(h){Vt(h),typeof h.beginScope=="string"&&(h.beginScope={_wrap:h.beginScope}),typeof h.endScope=="string"&&(h.endScope={_wrap:h.endScope}),xt(h),Dt(h)}function en(h){function S(V,z){return new RegExp(d(V),"m"+(h.case_insensitive?"i":"")+(h.unicodeRegex?"u":"")+(z?"g":""))}class B{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(z,Z){Z.position=this.position++,this.matchIndexes[this.matchAt]=Z,this.regexes.push([Z,z]),this.matchAt+=C(z)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const z=this.regexes.map(Z=>Z[1]);this.matcherRe=S(y(z,{joinWith:"|"}),!0),this.lastIndex=0}exec(z){this.matcherRe.lastIndex=this.lastIndex;const Z=this.matcherRe.exec(z);if(!Z)return null;const Ie=Z.findIndex((Xt,dn)=>dn>0&&Xt!==void 0),xe=this.matchIndexes[Ie];return Z.splice(0,Ie),Object.assign(Z,xe)}}class ne{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(z){if(this.multiRegexes[z])return this.multiRegexes[z];const Z=new B;return this.rules.slice(z).forEach(([Ie,xe])=>Z.addRule(Ie,xe)),Z.compile(),this.multiRegexes[z]=Z,Z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(z,Z){this.rules.push([z,Z]),Z.type==="begin"&&this.count++}exec(z){const Z=this.getMatcher(this.regexIndex);Z.lastIndex=this.lastIndex;let Ie=Z.exec(z);if(this.resumingScanAtSamePosition()&&!(Ie&&Ie.index===this.lastIndex)){const xe=this.getMatcher(0);xe.lastIndex=this.lastIndex+1,Ie=xe.exec(z)}return Ie&&(this.regexIndex+=Ie.position+1,this.regexIndex===this.count&&this.considerAll()),Ie}}function Me(V){const z=new ne;return V.contains.forEach(Z=>z.addRule(Z.begin,{rule:Z,type:"begin"})),V.terminatorEnd&&z.addRule(V.terminatorEnd,{type:"end"}),V.illegal&&z.addRule(V.illegal,{type:"illegal"}),z}function Fe(V,z){const Z=V;if(V.isCompiled)return Z;[qe,$t,Wt,Ot].forEach(xe=>xe(V,z)),h.compilerExtensions.forEach(xe=>xe(V,z)),V.__beforeBegin=null,[we,ht,ge].forEach(xe=>xe(V,z)),V.isCompiled=!0;let Ie=null;return typeof V.keywords=="object"&&V.keywords.$pattern&&(V.keywords=Object.assign({},V.keywords),Ie=V.keywords.$pattern,delete V.keywords.$pattern),Ie=Ie||/\w+/,V.keywords&&(V.keywords=rt(V.keywords,h.case_insensitive)),Z.keywordPatternRe=S(Ie,!0),z&&(V.begin||(V.begin=/\B|\b/),Z.beginRe=S(Z.begin),!V.end&&!V.endsWithParent&&(V.end=/\B|\b/),V.end&&(Z.endRe=S(Z.end)),Z.terminatorEnd=d(Z.end)||"",V.endsWithParent&&z.terminatorEnd&&(Z.terminatorEnd+=(V.end?"|":"")+z.terminatorEnd)),V.illegal&&(Z.illegalRe=S(V.illegal)),V.contains||(V.contains=[]),V.contains=[].concat(...V.contains.map(function(xe){return Ft(xe==="self"?V:xe)})),V.contains.forEach(function(xe){Fe(xe,Z)}),V.starts&&Fe(V.starts,z),Z.matcher=Me(Z),Z}if(h.compilerExtensions||(h.compilerExtensions=[]),h.contains&&h.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return h.classNameAliases=u(h.classNameAliases||{}),Fe(h)}function qt(h){return h?h.endsWithParent||qt(h.starts):!1}function Ft(h){return h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(function(S){return u(h,{variants:null},S)})),h.cachedVariants?h.cachedVariants:qt(h)?u(h,{starts:h.starts?u(h.starts):null}):Object.isFrozen(h)?u(h):h}var Yt="11.12.0";class A extends Error{constructor(S,B){super(S),this.name="HTMLInjectionError",this.html=B}}const te=n,Ee=u,Re=Symbol("nomatch"),Je=7,Ye=function(h){const S=Object.create(null),B=Object.create(null),ne=[];let Me=!0;const Fe="Could not find the language '{}', did you forget to load/include a language module?",V={disableAutodetect:!0,name:"Plain text",contains:[]};let z={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function Z(M){return z.noHighlightRe.test(M)}function Ie(M){let $=M.className+" ";$+=M.parentNode?M.parentNode.className:"";const ae=z.languageDetectRe.exec($);if(ae){const Ne=Pt(ae[1]);return Ne||(Jt(Fe.replace("{}",ae[1])),Jt("Falling back to no-highlight mode for this block.",M)),Ne?ae[1]:"no-highlight"}return $.split(/\s+/).find(Ne=>Z(Ne)||Pt(Ne))}function xe(M,$,ae){let Ne="",De="";typeof $=="object"?(Ne=M,ae=$.ignoreIllegals,De=$.language):(_t("10.7.0","highlight(lang, code, ...args) has been deprecated."),_t("10.7.0",`Please use highlight(code, options) instead.
48
+ https://github.com/highlightjs/highlight.js/issues/2277`),De=M,Ne=$),ae===void 0&&(ae=!0);const ct={code:Ne,language:De};Cn("before:highlight",ct);const mt=ct.result?ct.result:Xt(ct.language,ct.code,ae);return mt.code=ct.code,Cn("after:highlight",mt),mt}function Xt(M,$,ae,Ne){const De=Object.create(null);function ct(P,W){return P.keywords[W]}function mt(){if(!J.keywords){He.addText(le);return}let P=0;J.keywordPatternRe.lastIndex=0;let W=J.keywordPatternRe.exec(le),ie="";for(;W;){ie+=le.substring(P,W.index);const Ce=it.case_insensitive?W[0].toLowerCase():W[0],Ve=ct(J,Ce);if(Ve){const[Lt,tr]=Ve;if(He.addText(ie),ie="",De[Ce]=(De[Ce]||0)+1,De[Ce]<=Je&&(In+=tr),Lt.startsWith("_"))ie+=W[0];else{const Au=it.classNameAliases[Lt]||Lt;At(W[0],Au)}}else ie+=W[0];P=J.keywordPatternRe.lastIndex,W=J.keywordPatternRe.exec(le)}ie+=le.substring(P),He.addText(ie)}function un(){if(le==="")return;let P=null;if(typeof J.subLanguage=="string"){if(!S[J.subLanguage]){He.addText(le);return}P=Xt(J.subLanguage,le,!0,kt[J.subLanguage]),kt[J.subLanguage]=P._top}else P=Un(le,J.subLanguage.length?J.subLanguage:null);J.relevance>0&&(In+=P.relevance),He.__addSublanguage(P._emitter,P.language)}function et(){J.subLanguage!=null?un():mt(),le=""}function At(P,W){P!==""&&(He.startScope(W),He.addText(P),He.endScope())}function Gn(P,W){let ie=1;const Ce=W.length-1;for(;ie<=Ce;){if(!P._emit[ie]){ie++;continue}const Ve=it.classNameAliases[P[ie]]||P[ie],Lt=W[ie];Ve?At(Lt,Ve):(le=Lt,mt(),le=""),ie++}}function bu(P,W){return P.scope&&typeof P.scope=="string"&&He.openNode(it.classNameAliases[P.scope]||P.scope),P.beginScope&&(P.beginScope._wrap?(At(le,it.classNameAliases[P.beginScope._wrap]||P.beginScope._wrap),le=""):P.beginScope._multi&&(Gn(P.beginScope,W),le="")),J=Object.create(P,{parent:{value:J}}),J}function _u(P,W,ie){let Ce=D(P.endRe,ie);if(Ce){if(P["on:end"]){const Ve=new t(P);P["on:end"](W,Ve),Ve.isMatchIgnored&&(Ce=!1)}if(Ce){for(;P.endsParent&&P.parent;)P=P.parent;return P}}if(P.endsWithParent)return _u(P.parent,W,ie)}function Qu(P){return J.matcher.regexIndex===0?(le+=P[0],1):(On=!0,0)}function Ju(P){const W=P[0],ie=P.rule,Ce=new t(ie),Ve=[ie.__beforeBegin,ie["on:begin"]];for(const Lt of Ve)if(Lt&&(Lt(P,Ce),Ce.isMatchIgnored))return Qu(W);return ie.skip?le+=W:(ie.excludeBegin&&(le+=W),et(),!ie.returnBegin&&!ie.excludeBegin&&(le=W)),bu(ie,P),ie.returnBegin?0:W.length}function mu(P){const W=P[0],ie=$.substring(P.index),Ce=_u(J,P,ie);if(!Ce)return Re;const Ve=J;J.endScope&&J.endScope._wrap?(et(),At(W,J.endScope._wrap)):J.endScope&&J.endScope._multi?(et(),Gn(J.endScope,P)):Ve.skip?le+=W:(Ve.returnEnd||Ve.excludeEnd||(le+=W),et(),Ve.excludeEnd&&(le=W));do J.scope&&He.closeNode(),!J.skip&&!J.subLanguage&&(In+=J.relevance),J=J.parent;while(J!==Ce.parent);return Ce.starts&&bu(Ce.starts,P),Ve.returnEnd?0:W.length}function er(){const P=[];for(let W=J;W!==it;W=W.parent)W.scope&&P.unshift(W.scope);P.forEach(W=>He.openNode(W))}let hn={};function Nn(P,W){const ie=W&&W[0];if(le+=P,ie==null)return et(),0;if(hn.type==="begin"&&W.type==="end"&&hn.index===W.index&&ie===""){if(le+=$.slice(W.index,W.index+1),!Me){const Ce=new Error(`0 width match regex (${M})`);throw Ce.languageName=M,Ce.badRule=hn.rule,Ce}return 1}if(hn=W,W.type==="begin")return Ju(W);if(W.type==="illegal"&&!ae){const Ce=new Error('Illegal lexeme "'+ie+'" for mode "'+(J.scope||"<unnamed>")+'"');throw Ce.mode=J,Ce}else if(W.type==="end"){const Ce=mu(W);if(Ce!==Re)return Ce}if(W.type==="illegal"&&ie==="")return W.index===$.length||(le+=`
49
+ `),1;if($n>1e5&&$n>W.index*3)throw new Error("potential infinite loop, way more iterations than matches");return le+=ie,ie.length}const it=Pt(M);if(!it)throw bt(Fe.replace("{}",M)),new Error('Unknown language: "'+M+'"');const zn=en(it);let Rn="",J=Ne||zn;const kt={},He=new z.__emitter(z);er();let le="",In=0,Tt=0,$n=0,On=!1;try{if(it.__emitTokens)it.__emitTokens($,He);else{for(J.matcher.considerAll();;){$n++,On?On=!1:J.matcher.considerAll(),J.matcher.lastIndex=Tt;const P=J.matcher.exec($);if(!P)break;const W=$.substring(Tt,P.index),ie=Nn(W,P);Tt=P.index+ie}Nn($.substring(Tt))}return He.finalize(),Rn=He.toHTML(),{language:M,value:Rn,relevance:In,illegal:!1,_emitter:He,_top:J}}catch(P){if(P.message&&P.message.includes("Illegal"))return{language:M,value:te($),illegal:!0,relevance:0,_illegalBy:{message:P.message,index:Tt,context:$.slice(Tt-100,Tt+100),mode:P.mode,resultSoFar:Rn},_emitter:He};if(Me)return{language:M,value:te($),illegal:!1,relevance:0,errorRaised:P,_emitter:He,_top:J};throw P}}function dn(M){const $={value:te(M),illegal:!1,relevance:0,_top:V,_emitter:new z.__emitter(z)};return $._emitter.addText(M),$}function Un(M,$){$=$||z.languages||Object.keys(S);const ae=dn(M),Ne=$.filter(Pt).filter(Sn).map(et=>Xt(et,M,!1));Ne.unshift(ae);const De=Ne.sort((et,At)=>{if(et.relevance!==At.relevance)return At.relevance-et.relevance;if(et.language&&At.language){if(Pt(et.language).supersetOf===At.language)return 1;if(Pt(At.language).supersetOf===et.language)return-1}return 0}),[ct,mt]=De,un=ct;return un.secondBest=mt,un}function pu(M,$,ae){const Ne=$&&B[$]||ae;M.classList.add("hljs"),M.classList.add(`language-${Ne}`)}function pn(M){let $=null;const ae=Ie(M);if(Z(ae))return;if(Cn("before:highlightElement",{el:M,language:ae}),M.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",M);return}if(M.children.length>0&&(z.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),z.throwUnescapedHTML))throw new A("One of your code blocks includes unescaped HTML.",M.innerHTML);$=M;const Ne=$.textContent,De=ae?xe(Ne,{language:ae,ignoreIllegals:!0}):Un(Ne);M.innerHTML=De.value,M.dataset.highlighted="yes",pu(M,ae,De.language),M.result={language:De.language,re:De.relevance,relevance:De.relevance},De.secondBest&&(M.secondBest={language:De.secondBest.language,relevance:De.secondBest.relevance}),Cn("after:highlightElement",{el:M,result:De,text:Ne})}function hu(M){z=Ee(z,M)}const Bn=()=>{Tn(),_t("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Xu(){Tn(),_t("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let tn=!1;function Tn(){function M(){Tn()}if(document.readyState==="loading"){tn||window.addEventListener("DOMContentLoaded",M,!1),tn=!0;return}document.querySelectorAll(z.cssSelector).forEach(pn)}function Ku(M,$){let ae=null;try{ae=$(h)}catch(Ne){if(bt("Language definition for '{}' could not be registered.".replace("{}",M)),Me)bt(Ne);else throw Ne;ae=V}ae.name||(ae.name=M),S[M]=ae,ae.rawDefinition=$.bind(null,h),ae.aliases&&Hn(ae.aliases,{languageName:M})}function Be(M){delete S[M];for(const $ of Object.keys(B))B[$]===M&&delete B[$]}function nn(){return Object.keys(S)}function Pt(M){return M=(M||"").toLowerCase(),S[M]||S[B[M]]}function Hn(M,{languageName:$}){typeof M=="string"&&(M=[M]),M.forEach(ae=>{B[ae.toLowerCase()]=$})}function Sn(M){const $=Pt(M);return $&&!$.disableAutodetect}function gu(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=$=>{M["before:highlightBlock"](Object.assign({block:$.el},$))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=$=>{M["after:highlightBlock"](Object.assign({block:$.el},$))})}function Eu(M){gu(M),ne.push(M)}function Zu(M){const $=ne.indexOf(M);$!==-1&&ne.splice($,1)}function Cn(M,$){const ae=M;ne.forEach(function(Ne){Ne[ae]&&Ne[ae]($)})}function ju(M){return _t("10.7.0","highlightBlock will be removed entirely in v12.0"),_t("10.7.0","Please use highlightElement now."),pn(M)}Object.assign(h,{highlight:xe,highlightAuto:Un,highlightAll:Tn,highlightElement:pn,highlightBlock:ju,configure:hu,initHighlighting:Bn,initHighlightingOnLoad:Xu,registerLanguage:Ku,unregisterLanguage:Be,listLanguages:nn,getLanguage:Pt,registerAliases:Hn,autoDetection:Sn,inherit:Ee,addPlugin:Eu,removePlugin:Zu}),h.debugMode=function(){Me=!1},h.safeMode=function(){Me=!0},h.versionString=Yt,h.regex={concat:x,lookahead:b,either:w,optional:g,anyNumberOfTimes:E};for(const M in be)typeof be[M]=="object"&&e(be[M]);return Object.assign(h,be),h},Ge=Ye({});return Ge.newInstance=()=>Ye({}),Sr=Ge,Ge.HighlightJS=Ge,Ge.default=Ge,Sr}var Lf=kf();const ou=Df(Lf);function vf(e){const t=e.regex,n=e.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],E=p,g=[...l,...c].filter(y=>!p.includes(y)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},O={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:t.concat(/\b/,t.either(...E),/\s*\(/),relevance:0,keywords:{built_in:E}};function C(y){return t.concat(/\b/,t.either(...y.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const D={scope:"keyword",match:C(b),relevance:0};function v(y,{exceptions:L,when:U}={}){const Y=U;return L=L||[],y.map(j=>j.match(/\|\d+$/)||L.includes(j)?j:Y(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(g,{when:y=>y.length<3}),literal:i,type:o,built_in:d},contains:[{scope:"type",match:C(s)},D,w,x,u,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,O]}}function wf(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",u="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+n+"\\s*>>",i="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",s="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",o="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",c="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",l=c.trim().split(" ").map(function(x){return x.split("|")[0]}).join("|"),p="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",b="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(x){return x.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:i+o+s,built_in:p+d+b},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+l+")\\b"},{begin:"\\b("+l+")\\s+PATH\\b",keywords:{keyword:"PATH",type:c.replace("PATH ","")}},{className:"type",begin:"\\b("+l+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:u,end:u,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:r,relevance:10}]}}const ji="[A-Za-z$_][0-9A-Za-z$_]*",Mf=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ff=["true","false","null","undefined","NaN","Infinity"],ds=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ps=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],hs=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Pf=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Uf=[].concat(hs,ds,ps);function Bf(e){const t=e.regex,n=(I,{after:G})=>{const Q="</"+I[0].slice(1);return I.input.indexOf(Q,G)!==-1},u=ji,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(I,G)=>{const Q=I[0].length+I.index,de=I.input[Q];if(de==="<"||de===","){G.ignoreMatch();return}de===">"&&(n(I,{after:Q})||G.ignoreMatch());let re;const he=I.input.substring(Q);if(re=he.match(/^\s*=/)){G.ignoreMatch();return}if((re=he.match(/^\s+extends\s+/))&&re.index===0){G.ignoreMatch();return}}},o={$pattern:ji,keyword:Mf,literal:Ff,built_in:Uf,"variable.language":Pf},c="[0-9](_?[0-9])*",l=`\\.(${c})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${p})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${p})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,g,x,O,{match:/\$\d+/},d];b.contains=D.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(D)});const v=[].concat(C,b.contains),y=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(v)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:y},U={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ds,...ps]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},me={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(I){return t.concat("(?!",I.join("|"),")")}const oe={match:t.concat(/\b/,H([...hs,"super","import","await"].map(I=>`${I}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},pe={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Ae={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:Y},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,g,x,O,C,{match:/\$\d+/},d,Y,{scope:"attr",match:u+t.lookahead(":"),relevance:0},Ae,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},me,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},pe,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},oe,se,U,K,{match:/\$[(.]/}]}}const Uu="[A-Za-z$_][0-9A-Za-z$_]*",gs=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Es=["true","false","null","undefined","NaN","Infinity"],bs=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ms=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],As=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Ts=[].concat(ms,bs,_s);function Hf(e){const t=e.regex,n=(I,{after:G})=>{const Q="</"+I[0].slice(1);return I.input.indexOf(Q,G)!==-1},u=Uu,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(I,G)=>{const Q=I[0].length+I.index,de=I.input[Q];if(de==="<"||de===","){G.ignoreMatch();return}de===">"&&(n(I,{after:Q})||G.ignoreMatch());let re;const he=I.input.substring(Q);if(re=he.match(/^\s*=/)){G.ignoreMatch();return}if((re=he.match(/^\s+extends\s+/))&&re.index===0){G.ignoreMatch();return}}},o={$pattern:Uu,keyword:gs,literal:Es,built_in:Ts,"variable.language":As},c="[0-9](_?[0-9])*",l=`\\.(${c})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${p})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${p})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,g,x,O,{match:/\$\d+/},d];b.contains=D.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(D)});const v=[].concat(C,b.contains),y=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(v)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:y},U={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...bs,..._s]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},me={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(I){return t.concat("(?!",I.join("|"),")")}const oe={match:t.concat(/\b/,H([...ms,"super","import","await"].map(I=>`${I}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},pe={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Ae={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:Y},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,E,g,x,O,C,{match:/\$\d+/},d,Y,{scope:"attr",match:u+t.lookahead(":"),relevance:0},Ae,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},me,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},pe,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},oe,se,U,K,{match:/\$[(.]/}]}}function Gf(e){const t=e.regex,n=Hf(e),u=Uu,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Uu,keyword:gs.concat(c),literal:Es,built_in:Ts.concat(r),"variable.language":As},p={className:"meta",begin:"@"+u},d=(x,O,w)=>{const C=x.contains.findIndex(D=>D.label===O);if(C===-1)throw new Error("can not find mode to replace");x.contains.splice(C,1,w)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(p);const b=n.contains.find(x=>x.scope==="attr"),E=Object.assign({},b,{match:t.concat(u,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,b,E]),n.contains=n.contains.concat([p,i,s,E]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",o);const g=n.contains.find(x=>x.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const zf="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",$f={scope:"number",match:zf,relevance:0};function Vf(e){const t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},u=["true","false","null"],r={scope:"literal",beginKeywords:u.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:u},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,$f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Wf(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(i,{begin:/\(/,end:/\)/}),o=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,o,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,s,c,o]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function qf(e){const t=e.regex,n={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(o);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},p={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],E=e.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],O=["true","false"],w={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],D=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:x,literal:O,built_in:[...C,...D,"set","shopt",...v,...y]},contains:[E,e.SHEBANG(),g,d,i,s,w,o,c,l,p,n]}}function Yf(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},p={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,p,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,p,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,p,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",E=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,g=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${E}))[eE][+-]?(${b})[jJ]?(?=${g})`},{begin:`(${E})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${b})[jJ](?=${g})`}]},O={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",c,x,d,e.HASH_COMMENT_MODE]}]};return l.contains=[d,x,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[c,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,O,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[w]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,w,d]}]}}function Xf(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},o=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),b={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},E={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[E],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[E],illegal:"\\n",relevance:0},O=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},b,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,x,i,s],w=[...O];return w.pop(),w.push(o),E.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:O}}function Kf(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const Zf={sql:vf,pgsql:wf,javascript:Bf,typescript:Gf,json:Vf,xml:Wf,bash:qf,python:Yf,yaml:Xf,plaintext:Kf};for(const[e,t]of Object.entries(Zf))ou.registerLanguage(e,t);const Ss=[];function jf(e,t){Ss.push({aliases:e,languageName:t}),ou.registerAliases([...e],{languageName:t})}let Cr=null;function Qf(){for(const{aliases:e,languageName:t}of Ss)ou.registerAliases([...e],{languageName:t})}const Jf=/text-align:\s*(left|center|right)/;function ed(e){for(const t of["th_open","td_open"]){const n=e.renderer.rules[t]??((r,i,s,o,c)=>c.renderToken(r,i,s)),u=(r,i,s,o,c)=>{var d,b;const l=r[i],p=(l==null?void 0:l.attrIndex("style"))??-1;if(l&&l.attrs&&p>=0){const E=((d=l.attrs[p])==null?void 0:d[1])??"",g=(b=Jf.exec(E))==null?void 0:b[1];l.attrs.splice(p,1),g&&l.attrSet("data-align",g)}return n(r,i,s,o,c)};e.renderer.rules[t]=u}}function td(){if(Cr)return Cr;Qf();const e=new Rt({html:!1,linkify:!0,breaks:!0,typographer:!1,highlight:(n,u)=>{if(u&&ou.getLanguage(u))try{const r=ou.highlight(n,{language:u,ignoreIllegals:!0}).value;return`<pre class="hljs"><code class="hljs language-${u}">${r}</code></pre>`}catch(r){Nt.bestEffortFailed("fall through to markdown-it's escaped default",r)}return""}}),t=e.renderer.rules.link_open??((n,u,r,i,s)=>s.renderToken(n,u,r));return e.renderer.rules.link_open=(n,u,r,i,s)=>{const o=n[u];return o&&(o.attrSet("target","_blank"),o.attrSet("rel","noopener noreferrer")),t(n,u,r,i,s)},ed(e),Cr=e,e}const Qi=["a","p","br","strong","em","code","pre","kbd","s","del","ul","ol","li","blockquote","hr","h1","h2","h3","h4","h5","h6","span","table","thead","tbody","tr","th","td"],nd="img",ud=["href","target","rel","src","alt","title","width","height","class"],rd=/^(?:https?:|mailto:|tel:|data:image\/(?:png|jpe?g|gif|webp|svg\+xml);base64,)/i,id=["target","rel"];function od(e,t){if(!e)return"";const n=td().render(e);return xf.sanitize(n,{ALLOWED_TAGS:t!=null&&t.allowImages?[...Qi,nd]:Qi,ALLOWED_ATTR:ud,ALLOWED_URI_REGEXP:rd,ADD_URI_SAFE_ATTR:id})}function sd(e,t=!0){return od(e,{allowImages:t})}const Cs={info:"Info",success:"Success",warning:"Warning",error:"Error"};function cd(e){return e==="above"?_n.AnchorPosition.ABOVE:_n.AnchorPosition.BELOW}function ad(e){return e==="right"?_n.AnchorAlignment.RIGHT:_n.AnchorAlignment.LEFT}function Ns(e,t={}){const n=e.getBoundingClientRect();return{ownerWindow:Ls.getWindow(e),triggerEl:e,anchor:{top:n.top,left:n.left,width:n.width,height:n.height},anchorAlignment:ad(t.horizontal),anchorPosition:cd(t.vertical)}}const ld="vk_item_iu5b9",fd="vk_itemExiting_1AEmJ",dd="vk_closeFuse_uJM3j",pd="vk_subtitleCollapse_TrzAH",hd="vk_detailsCollapse_nY1gW",gd="vk_subtitle_XM9-h",Ed="vk_detailsRow_QOjtY",bd="vk_chevron_8399G",_d="vk_mainRow_Or-HS",md="vk_icon_tpHzZ",Ad="vk_body_M1AsL",Td="vk_titleRow_P14EL",Sd="vk_title_LULCY",Cd="vk_timestamp_oi-zj",Nd="vk_subtitleViewport_-M4DV",Rd="vk_toolbar_Pojzw",Id="vk_actions_c2fy8",Od="vk_source_0ZwCJ",yd="vk_progressRow_HGeTR vk_rowCenter_saaBE",xd="vk_progress_oqKTw",Dd="vk_progressCancel_d41du",kd="vk_closeWrapper_al-7O",Ld="vk_closeButton_PbZLT",vd="vk_fuseTrack_oN787",wd="vk_fusePath_vX094",ke={item:ld,itemExiting:fd,closeFuse:dd,subtitleCollapse:pd,detailsCollapse:hd,subtitle:gd,detailsRow:Ed,chevron:bd,mainRow:_d,icon:md,body:Ad,titleRow:Td,title:Sd,timestamp:Cd,subtitleViewport:Nd,toolbar:Rd,actions:Id,source:Od,progressRow:yd,progress:xd,progressCancel:Dd,closeWrapper:kd,closeButton:Ld,fuseTrack:vd,fusePath:wd};function Md(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var Ji=["<span",">","</span>"],Fd=["<div",' tabindex="-1">',"</div>"],eo=["<div",">","","</div>"],Pd=["<div","><span",' aria-hidden="true">','</span><div class="','"><div','><span class="','">',"</span>","</div>","</div>","</div>"],Ud=["<div",">","</div>"],Bd=["<div","><div",">","","</div></div>"],Hd=["<svg",' viewBox="0 0 100 100" aria-hidden="true"',' style="','"><path',' d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path><path',' pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="0" d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path></svg>'];const Nr=new WeakMap;function Gd(e,t){const n=ca(t-e);return T.t(n.key,n.values)}function zd(e){try{return Fn.formatDateTime(new Date(e))}catch{return new Date(e).toISOString()}}const $d={info:Te.VpInfoCircle,warning:oo.VpAlertTriangle,error:Te.VpCircleX,success:Te.VpCircleCheck},to={plug:Te.VpPlug,key:Te.VpKey,cloud:Te.VpCloud,database:Te.VpDatabase,"git-merge":Te.VpGitMerge,terminal:Te.VpTerminal,rocket:Te.VpRocket,bell:Te.VpBell,lock:Te.VpLock},Mr=e=>{const t=na(),n=m.useContext(Br.DesktopContextMenuContext),[u,r]=m.createSignal(!1);let i;m.onCleanup(()=>{i!==void 0&&clearTimeout(i)});const s=()=>{if(!u()){if(io.prefersReducedMotion(document)){e.controller.close(e.item.id);return}r(!0),i!==void 0&&clearTimeout(i),i=setTimeout(()=>e.controller.close(e.item.id),180)}},o=()=>e.controller.toggleExpanded(e.item.id),c=m.createMemo(()=>{const H=e.item.icon;return H&&to[H]?to[H]:$d[e.item.severity]}),l=m.createMemo(()=>Gd(e.item.createdAt,t())),p=m.createMemo(()=>zd(e.item.createdAt)),d=m.createMemo(()=>e.controller.isSticky(e.item)),b=m.createMemo(()=>e.controller.duration(e.item)),E=m.createMemo(()=>{if(d())return!1;const H=b();return Number.isFinite(H)&&H>0}),[g,x]=m.createSignal(!1),[O,w]=m.createSignal(!1),[C,D]=m.createSignal(0),v=m.createMemo(()=>g()||O()||!!(e.item.hovered||e.item.focused));let y=!1;m.createEffect(()=>{const H=v();y&&!H&&D(oe=>oe+1),y=H});let L=e.item.expanded;m.createEffect(()=>{const H=e.item.expanded;H!==L&&(L=H,D(oe=>oe+1))});const U=m.createMemo(()=>E()?`${e.item.id}-${b()}-${C()}`:null),Y=()=>e.item.announce??(e.item.severity==="error"?"assertive":"polite");m.createEffect(()=>{const H=e.item.title,oe=e.item.body,pe=oe?`${H}: ${oe}`:H;Y()==="assertive"?e.controller.announcer.assertive(pe):e.controller.announcer.polite(pe)});const j=m.createMemo(()=>{const H=e.item.body;return H?e.item.markdown?sd(H,e.shell!==null):Md(H).replace(/\n/g,"<br>"):""}),me=H=>{const oe=e.shell;if(oe===null||!n)return;if(H.preventDefault(),H.stopPropagation(),n.state()&&Nr.get(n)===e.item.id){n.close(),Nr.set(n,null);return}Nr.set(n,e.item.id);const pe=H.currentTarget,K=e.item.source,Se=e.item.neverShowAgainKey,Ae=Wr(K??"general",e.item.title),I=Se??Ae,G=[];if(Se&&G.push({label:T.t("Don't show again"),onSelect:()=>{oe.dismissKey(Se),s()}}),oe.remindLaterEnabled()){const he=()=>{const je=new Date;return je.setDate(je.getDate()+1),je.setHours(9,0,0,0),je.getTime()-Date.now()};G.push({label:T.t("Remind me in 15 minutes"),onSelect:()=>{oe.remindLater(I,15*6e4),s()}}),G.push({label:T.t("Remind me in 1 hour"),onSelect:()=>{oe.remindLater(I,36e5),s()}}),G.push({label:T.t("Remind me tomorrow morning"),onSelect:()=>{oe.remindLater(I,he()),s()}})}if(K&&K!=="general"){const de=oe.isSourceMuted(K);G.push({label:de?T.t("Unmute notifications from this source"):T.t("Mute notifications from this source"),onSelect:()=>oe.setSourceMuted(K,!de)})}const Q=e.item.secondaryActions;if(Q&&Q.length>0){G.length>0&&G.push({type:"separator"});for(const de of Q)G.push({label:de.label,onSelect:()=>{de.onClick()}})}G.length>0&&G.push({type:"separator"}),G.push({label:T.t("Notification settings…"),onSelect:()=>oe.openSettings()}),n.openWithPlacement(Ns(pe,{vertical:"auto",horizontal:"auto"}),G)},se=async H=>{try{await H.onClick()}finally{H.keepOpen||s()}};return a.ssrElement("div",a.mergeProps({get class(){return`${ke.item} card ${u()?ke.itemExiting:""}`},get id(){return`notification-card-${e.item.id}`},tabIndex:-1,get"data-severity"(){return e.item.severity},get"data-expanded"(){return e.item.expanded},get"data-has-actions"(){return e.item.actions&&e.item.actions.length>0?"true":"false"},get"data-has-timer"(){return E()?"true":"false"}},()=>({"aria-live":Y()}),{"aria-atomic":"true",get"aria-label"(){return T.t("{severity}: {title}",{severity:T.t(Cs[e.item.severity]),title:e.item.title})}}),[a.ssr(Pd,a.ssrAttribute("class",a.escape(ke.mainRow,!0),!1),a.ssrAttribute("class",a.escape(ke.icon,!0),!1)+a.ssrAttribute("data-severity",a.escape(e.item.severity,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return c()},size:16})),`${a.escape(ke.body,!0)} body`,a.ssrAttribute("class",a.escape(ke.titleRow,!0),!1),`${a.escape(ke.title,!0)} title`,a.escape(e.item.title),a.escape(a.createComponent(Ur.HoverTooltip,{get content(){return p()},delayMs:400,get children(){return a.ssr(Ji,a.ssrAttribute("class",a.escape(ke.timestamp,!0),!1),a.escape(l()))}})),a.escape(a.createComponent(m.Show,{get when(){return e.item.body},get children(){return a.createComponent(Hu.OverlayScrollArea,{get rootClass(){return ke.subtitleCollapse},get viewportClass(){return ke.subtitleViewport},hideHorizontal:!0,get children(){return a.ssr(Fd,a.ssrAttribute("class",a.escape(ke.subtitle,!0),!1),j())}})}})),a.escape(a.createComponent(kn.Panel.Toolbar,{get class(){return ke.toolbar},get children(){return[a.createComponent(m.Show,{get when(){return e.item.body},get children(){return a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return a.memo(()=>!!e.item.expanded)()?T.t("Collapse"):T.t("Expand")},get title(){return a.memo(()=>!!e.item.expanded)()?T.t("Collapse"):T.t("Expand")},onClick:o,get children(){return a.createComponent(_n.VpChevronDown,{get class(){return`${rr.iconScale.iconMd} ${ke.chevron}`}})}})}}),a.createComponent(m.Show,{get when(){return e.shell!==null},get children(){return a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return T.t("More actions")},get title(){return T.t("More actions")},onMouseDown:H=>H.stopPropagation(),onClick:me,get children(){return a.createComponent(Te.VpSettings,{get class(){return rr.iconScale.iconMd}})}})}}),a.ssr(eo,a.ssrAttribute("class",a.escape(ke.closeWrapper,!0),!1),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get class(){return`${ke.closeButton} close-btn`},"data-testid":"notification-close-btn",get"aria-label"(){return T.t("Close")},get title(){return T.t("Close")},onClick:s,get children(){return a.createComponent(Rr.VpClose,{get class(){return rr.iconScale.iconMd}})}})),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return U()},children:H=>a.ssr(Hd,a.ssrAttribute("class",a.escape(ke.closeFuse,!0),!1),a.ssrAttribute("data-fuse-key",a.escape(H,!0),!1),a.ssrStyleProperty("--fuse-duration:",`${a.escape(b(),!0)}ms`),a.ssrAttribute("class",a.escape(ke.fuseTrack,!0),!1),a.ssrAttribute("class",a.escape(ke.fusePath,!0),!1))})))]}}))),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0||typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general"&&e.item.source!=="undefined"},get children(){return a.ssr(Bd,a.ssrAttribute("class",a.escape(ke.detailsCollapse,!0),!1),a.ssrAttribute("class",a.escape(ke.detailsRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0},get children(){return a.ssr(Ud,a.ssrAttribute("class",a.escape(ke.actions,!0),!1),a.escape(a.createComponent(m.For,{get each(){return e.item.actions},children:H=>a.createComponent(Le.Button,{get variant(){return H.primary?"primary":"secondary"},size:"sm",get class(){return`${H.primary?"primary ":""}btn`},onClick:()=>void se(H),get children(){return H.label}})})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general")()&&e.item.source!=="undefined"},get children(){return a.ssr(Ji,a.ssrAttribute("class",a.escape(ke.source,!0),!1),a.escape(T.t("Source: {source}",{source:String(e.item.source)})))}})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.progress)()&&!e.item.progress.done},get children(){return a.ssr(eo,a.ssrAttribute("class",a.escape(ke.progressRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){var H;return typeof((H=e.item.progress)==null?void 0:H.value)=="number"},get fallback(){return a.createComponent(ut.Progress,{indeterminate:!0,size:"2xs",get class(){return ke.progress},get ariaLabel(){return T.t("Progress")}})},get children(){return a.createComponent(ut.Progress,{get value(){var H;return((H=e.item.progress)==null?void 0:H.value)??0},max:1,size:"2xs",get class(){return ke.progress},get ariaLabel(){return T.t("Progress")}})}})),a.escape(a.createComponent(m.Show,{get when(){var H;return(H=e.item.progress)==null?void 0:H.onCancel},get children(){return a.createComponent(Le.Button,{iconOnly:!0,variant:"ghost",size:"sm",get class(){return ke.progressCancel},get title(){return T.t("Cancel")},get"aria-label"(){return T.t("Cancel")},onClick:()=>{var H,oe;return(oe=(H=e.item.progress)==null?void 0:H.onCancel)==null?void 0:oe.call(H)},get children(){return a.createComponent(Rr.VpClose,{})}})}})))}}))],!1)},Iu=200,Fr="notification.acceptPrimaryAction",Pr="notification.clear",Lu="notifications.hideToasts",Vd=`${vt.ACCESSIBILITY_MODE_ENABLED_KEY} && (${vt.FOCUS_CONTEXT_KEYS.notificationFocus} || ${vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible})`,Wd=vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible,qd=`${vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible} && ${vt.FOCUS_CONTEXT_KEYS.notificationFocus}`;function Rs(e,t){const n=[e.commands.register({id:Fr,handler:()=>t.acceptPrimaryAction(),metadata:{label:"Accept Notification Primary Action",category:"Notifications"}}),e.bindings.register({command:Fr,key:"CmdOrCtrl+Shift+A",when:Vd,weight:Iu+1,source:"core"}),e.commands.register({id:Pr,handler:()=>t.clearFocused(),metadata:{label:"Clear Notification",category:"Notifications"}}),e.bindings.register({command:Pr,key:"Delete",mac:"Cmd+Backspace",when:vt.FOCUS_CONTEXT_KEYS.notificationFocus,weight:Iu,source:"core"}),e.commands.register({id:Lu,handler:()=>t.hideToasts(),metadata:{label:"Hide notifications",category:"Notifications"}}),e.bindings.register({command:Lu,key:"Escape",when:Wd,weight:Iu-50,source:"core"}),e.bindings.register({command:Lu,key:"Escape",when:qd,weight:Iu+100,source:"core"})];return()=>{for(const u of n.reverse())u()}}const Is={kind:"none"};function Os(e){const t=e.notificationOverlay(ks.getMainWindow().window);return t?{kind:"native",port:t}:Is}function vu(e){return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0}function Yd(e){var t;return[(t=e.progress)==null?void 0:t.onCancel,e.defaultRoute,e.source,e.neverShowAgainKey,...(e.actions??[]).flatMap(n=>[n.id,n.label,n.primary,n.keepOpen,n.onClick]),...(e.secondaryActions??[]).flatMap(n=>[n.label,n.onClick])]}function Xd(e){return{...e.value!==void 0?{value:e.value}:{},done:e.done??!1,hasCancel:typeof e.onCancel=="function"}}function Kd(e){return e.map(t=>({label:t.label,...t.id?{id:t.id}:{},...t.primary!==void 0?{primary:t.primary}:{},...t.keepOpen!==void 0?{keepOpen:t.keepOpen}:{}}))}function Zd(e,t){const n=cu(e,t.settings);return{id:e.id,itemRevision:t.revision,severity:e.severity,title:e.title,...e.body?{body:e.body}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...e.expanded!==void 0?{expanded:e.expanded}:{},...e.progress?{progress:Xd(e.progress)}:{},duration:Number.isFinite(n)?n:0,sticky:au(e,t.settings),hovered:e.hovered,focused:e.focused,sourceMuted:e.source?mn(e.source):!1,...t.bounds?{bounds:t.bounds}:{},...e.source?{source:e.source}:{},...e.neverShowAgainKey?{neverShowAgainKey:e.neverShowAgainKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.actions?{actions:Kd(e.actions)}:{},...e.secondaryActions?{secondaryActions:e.secondaryActions.map(u=>({label:u.label}))}:{},createdAt:e.createdAt}}function jd(e){return{visible:e.visible,position:e.position,width:e.width,theme:e.theme,language:e.language,...e.appearance??{},generation:e.generation,reduceMotion:e.reduceMotion,animationDuration:e.animationDuration,sequence:e.sequence,...e.bounds?{bounds:e.bounds}:{},...e.clipBounds?{clipBounds:e.clipBounds}:{},items:e.items}}function Qd(){const e=new Map;let t=0;return{revisionOf(n){const u=Yd(n),r=e.get(n.id);if(r&&r.callbacks.length===u.length&&u.every((s,o)=>s===r.callbacks[o]))return r.revision;const i=++t;return e.set(n.id,{revision:i,callbacks:u}),i},current:n=>{var u;return(u=e.get(n))==null?void 0:u.revision},prune(n){for(const u of e.keys())n.some(r=>r.id===u)||e.delete(u)}}}function Jd(e){const t=Math.min(...e.map(i=>i.x)),n=Math.min(...e.map(i=>i.y)),u=Math.max(...e.map(i=>i.x+i.width)),r=Math.max(...e.map(i=>i.y+i.height));return{x:t,y:n,width:u-t,height:r-n}}function e1(e,t){return!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)}function t1(e){return e?{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}:void 0}function n1(e){const t=i=>{var d,b;const s=e.hostEl(),o=(s==null?void 0:s.getBoundingClientRect())??i.getBoundingClientRect();let c=0,l=0,p=i;for(;p&&p!==s;)c+=p.offsetLeft,l+=p.offsetTop,p=p.offsetParent;return{x:o.x+c-(((d=e.scrollEl())==null?void 0:d.scrollLeft)??0),y:o.y+l-(((b=e.scrollEl())==null?void 0:b.scrollTop)??0),width:i.offsetWidth,height:i.offsetHeight}},n=()=>{const i=e.hostEl();if(!i)return;const s=e.cards().map(t).filter(o=>o.width>0&&o.height>0);return s.length>0?Jd(s):vu(i.getBoundingClientRect())},[u,r]=m.createSignal();return m.createEffect(()=>{const i=e.hostEl(),s=e.hostWindow.ResizeObserver;if(!i||!s)return;const o=()=>{const p=n();p&&r(p)},c=new s(o),l=e.scrollEl();l==null||l.addEventListener("scroll",o),l&&c.observe(l),c.observe(i),o(),m.onCleanup(()=>{c.disconnect(),l==null||l.removeEventListener("scroll",o)})}),{cardBounds:t,stackBounds:n,hostRect:u}}function u1(e,t){return m.createMemo(()=>{const n=dt.getVisibleBrowsers(e.hostWindow);if(n.length===0)return!1;const u=e.hostEl();if(!u)return!1;const r=t.hostRect()??t.stackBounds()??u.getBoundingClientRect();return r.width<=0||r.height<=0?!1:n.some(i=>e1(i.bounds,r))})}function r1(e,t,n){var r,i;if(t.actionType==="secondary"){const s=(r=e==null?void 0:e.secondaryActions)==null?void 0:r[t.actionIndex];s&&s.onClick();return}const u=(i=e==null?void 0:e.actions)==null?void 0:i[t.actionIndex];u&&(u.onClick(),u.keepOpen||n.close(t.id))}function i1(e,t,n){var u,r,i;switch(e.type){case"scroll-stack":(u=n.scrollEl())==null||u.scrollBy({top:e.deltaY});break;case"open-settings":n.shell.openSettings();break;case"cancel-progress":(i=(r=t.progress)==null?void 0:r.onCancel)==null||i.call(r);break;case"navigate":t.defaultRoute&&n.shell.navigate(t.defaultRoute);break;case"open-external":n.controller.openExternal(e.url);break;case"dismiss-key":n.shell.dismissKey(e.key);break;case"remind-later":n.shell.remindLater(e.key,e.ttlMs);break;case"mute-source":n.shell.setSourceMuted(e.source,e.muted);break}}function o1(e,t){const n=r=>t.items().find(i=>i.id===r),{controller:u}=t;m.onCleanup(e.onNotificationOverlayClose(r=>{t.isCurrent(r)&&u.close(r.id)})),m.onCleanup(e.onNotificationOverlayAction(r=>{t.isCurrent(r,!0)&&r1(n(r.id),r,u)})),m.onCleanup(e.onNotificationOverlayHover(r=>{t.isCurrent(r)&&u.setHover(r.id,r.hovered)})),m.onCleanup(e.onNotificationOverlayFocus(r=>{t.isCurrent(r)&&u.setFocus(r.id,r.focused)})),m.onCleanup(e.onNotificationOverlayPresented(t.onPresented)),m.onCleanup(e.onNotificationOverlayToggleExpanded(r=>{t.isCurrent(r)&&u.toggleExpanded(r.id)})),m.onCleanup(e.onNotificationOverlayCommand(r=>{if(!t.isCurrent(r,r.type!=="scroll-stack"))return;const i=n(r.id);i&&i1(r,i,t)}))}function s1(e,t){for(const n of e)n.hovered&&t.setHover(n.id,!1),n.focused&&t.setFocus(n.id,!1)}function c1(e,t,n,u){var o,c,l;const r=e.hostEl(),i=r?t.stackBounds()??t.hostRect()??r.getBoundingClientRect():void 0,s=p=>{const d=r==null?void 0:r.ownerDocument.getElementById(`notification-card-${p}`);return vu(d?t.cardBounds(d):void 0)};return jd({visible:u.active,position:e.position(),width:e.width(),theme:((o=e.appearance())==null?void 0:o.theme)??((l=(c=e.hostWindow.document)==null?void 0:c.documentElement)!=null&&l.classList.contains("light")?"light":"dark"),language:T.appI18n.language,appearance:e.appearance(),generation:u.generation,sequence:u.sequence,reduceMotion:e.reduceMotion(),animationDuration:e.animationDuration(),bounds:t1(vu(i)),clipBounds:vu(r==null?void 0:r.getBoundingClientRect()),items:e.visible().map(p=>Zd(p,{revision:n.revisionOf(p),settings:e.settings(),bounds:s(p.id)}))})}function a1(e){const t=e.channel;if(t.kind==="none")return{nativeRendered:()=>!1};const n=t.port,u=Math.floor(performance.timeOrigin*1e3+performance.now());let r=0,i=!1;const s=Qd(),o=n1(e),c=u1(e,o),[l,p]=m.createSignal(!1),d=(b,E=!1)=>e.ownsDisplay()&&i&&b.generation===u&&b.sequence<=r&&(!E||s.current(b.id)===b.itemRevision);return m.onMount(()=>o1(n,{...e,isCurrent:d,onPresented:b=>{b.generation!==u||b.sequence>r||p(i&&b.visible)}})),m.createEffect(()=>{const b=e.visible(),E=e.ownsDisplay()&&!e.isCenterOpen()&&b.length>0,g=c()&&E,x=i;i=g,x&&!g&&queueMicrotask(()=>{i||s1(e.items(),e.controller)}),s.prune(e.items()),g||p(!1),n.setNotificationOverlay(c1(e,o,s,{active:g,generation:u,sequence:++r}))}),m.onCleanup(()=>{n.setNotificationOverlay({visible:!1,position:e.position(),width:e.width(),items:[],generation:u,sequence:++r})}),{nativeRendered:l}}const l1="vk_host_-dTTD",f1="vk_scrollArea_FaEtH",d1="vk_stack_4LHtI",p1="vk_enter_GAjwE",h1="vk_ackOverlay_1dc3n",g1="vk_ackCenterWrap_ZPFTX",E1="vk_ackQueueHint_HL0SL",on={host:l1,scrollArea:f1,stack:d1,enter:p1,ackOverlay:h1,ackCenterWrap:g1,ackQueueHint:E1};var b1=["<div",">","</div>"],_1=["<p",">","</p>"],m1=["<div",' role="alertdialog" aria-modal="true" aria-labelledby="','"',"><div",' id="','">',"","</div></div>"];const A1=e=>{var Qt;const t=ro.useHostWindow().window,n=su.useKitHost(),u=n.notifications.stack,r=n.displayOwner.register(t);m.onCleanup(r.dispose);const[i,s]=ui.createStore({items:[]}),o=q.notificationSettings.get(),[c,l]=m.createSignal(o),[p,d]=m.createSignal(),[b,E]=m.createSignal(o.toastPosition),g=()=>b(),[x,O]=m.createSignal(o.notificationWidth),[w,C]=m.createSignal(o.maxVisibleNotifications),[D,v]=m.createSignal(o.animationDuration),[y,L]=m.createSignal(o.reduceMotion),[U,Y]=m.createSignal(),[j,me]=m.createSignal(),[se,H]=m.createSignal(null),oe=jc(n,c),pe=vo(n),K=()=>i.items.filter(F=>F.priority==="acknowledgment-required"),Se=()=>{const F=Math.max(1,w()),be=i.items.filter(Ue=>Ue.priority!=="acknowledgment-required");return be.length<=F?be:be.slice(be.length-F)},Ae=()=>K()[0]??null,I=()=>e.centerOpen(),G=F=>{F&&(l(be=>({...be,...F})),F.toastPosition&&E(F.toastPosition),typeof F.notificationWidth=="number"&&O(F.notificationWidth),typeof F.maxVisibleNotifications=="number"&&C(F.maxVisibleNotifications),(F.animationDuration==="fast"||F.animationDuration==="normal"||F.animationDuration==="slow")&&v(F.animationDuration),typeof F.reduceMotion=="boolean"&&L(F.reduceMotion))},Q=()=>{var we;const F=Se(),be=se(),Ue=be!==null?F[be]:F[0],qe=(we=Ue==null?void 0:Ue.actions)==null?void 0:we.find(ht=>ht.primary);!Ue||!qe||(qe.onClick(),qe.keepOpen||u.close(Ue.id))},de=()=>{const F=Se(),be=se();if(be===null)return;const Ue=F[be];Ue&&(u.close(Ue.id),H(F.length<=1?null:Math.min(be,F.length-2)))},re=()=>{Se().length!==0&&(Oo(i.items).forEach(F=>u.close(F)),H(null))},he=vt.useKeybindingsOptional(),je=he===null,It=/Mac OS X|Macintosh/i.test(((Qt=t.navigator)==null?void 0:Qt.userAgent)??""),ce=F=>{var ht;const be=Se();if(be.length===0)return;if(je&&!F.defaultPrevented&&St.isKey(F,"Escape")){F.preventDefault(),re();return}const Ue=F.target;if(!Ue||typeof Ue.nodeType!="number"||!((ht=U())!=null&&ht.contains(Ue)))return;const qe=se();if(St.isKey(F,"ArrowDown")||St.isKey(F,"PageDown")){F.preventDefault(),H(qe===null?0:Math.min(be.length-1,qe+1));return}if(St.isKey(F,"ArrowUp")||St.isKey(F,"PageUp")){F.preventDefault(),H(qe===null?be.length-1:Math.max(0,qe-1));return}if(St.isKey(F,"Home")){F.preventDefault(),H(0);return}if(St.isKey(F,"End")){F.preventDefault(),H(be.length-1);return}if(qe===null)return;const we=be[qe];if(we){if(St.isKey(F,"ArrowRight")&&!we.expanded){F.preventDefault(),u.toggleExpanded(we.id);return}if(St.isKey(F,"ArrowLeft")&&we.expanded){F.preventDefault(),u.toggleExpanded(we.id);return}if(je&&!F.defaultPrevented&&(St.isKey(F,"Delete")||It&&St.isKey(F,"Backspace")&&F.metaKey)){F.preventDefault(),de();return}(F.key===" "||St.isKey(F,"Enter"))&&(F.preventDefault(),u.toggleExpanded(we.id))}};q.useSettingsSubscription(q.notificationSettings,G),he&&(vt.createFocusContextKey({contextKeys:he.contextKeys,key:vt.FOCUS_CONTEXT_KEYS.notificationFocus,containerRef:U}),m.createRenderEffect(()=>{he.contextKeys.setContext(vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible,r.ownsDisplay()&&!I()&&Se().length>0)}),m.onCleanup(Rs(he,{acceptPrimaryAction:Q,clearFocused:de,hideToasts:re}))),m.onMount(()=>{const F=t.document.documentElement,be=()=>{const we=t.getComputedStyle(F),ht={};for(let ge=0;ge<we.length;ge++){const Ot=we.item(ge);Ot.startsWith("--")&&(ht[Ot]=we.getPropertyValue(Ot))}const $t={cssVariables:ht,fontFamily:we.fontFamily,fontSize:we.fontSize,theme:F.classList.contains("light")?"light":"dark"};d(ge=>JSON.stringify(ge)===JSON.stringify($t)?ge:$t)};be();const Ue=new t.MutationObserver(be);Ue.observe(F,{attributes:!0,attributeFilter:["class","style","data-theme","data-palette"]}),m.onCleanup(()=>Ue.disconnect());const qe=u.subscribe(we=>{s("items",ui.reconcile(we,{key:"id",merge:!0}))});t.addEventListener("keydown",ce),m.onCleanup(()=>{qe(),t.removeEventListener("keydown",ce)})}),m.createEffect(()=>{var F;(F=U())==null||F.style.setProperty("--notif-width",`${x()}px`)});const ln=a1({channel:e.overlay??Os(n.desktop),hostWindow:t,ownsDisplay:r.ownsDisplay,items:()=>i.items,visible:Se,isCenterOpen:I,hostEl:U,scrollEl:j,cards:()=>{var F;return[...((F=U())==null?void 0:F.querySelectorAll(`.${on.enter}`))??[]]},position:b,width:x,appearance:p,reduceMotion:y,animationDuration:D,settings:c,controller:oe,shell:pe});return m.createEffect(()=>{const F=U();if(F){if(y()){F.style.setProperty("--notif-anim-duration","0ms");return}switch(D()){case"fast":F.style.setProperty("--notif-anim-duration","100ms");break;case"normal":F.style.setProperty("--notif-anim-duration","220ms");break;case"slow":F.style.setProperty("--notif-anim-duration","400ms");break}}}),Ur.createDialogShellFocus({open:()=>r.ownsDisplay()&&Ae()!==null,onDismiss:()=>{},ownerDocument:()=>globalThis.document,dismissDisabled:()=>!0}),[a.createComponent(ri.HostPortal,{element:()=>U(),type:"toast",open:()=>!!(r.ownsDisplay()&&!I()&&Se().length>0),idPrefix:"notification-toast",get children(){return a.createComponent(m.Show,{get when(){return a.memo(()=>!!r.ownsDisplay())()&&!I()},get children(){return a.ssrElement("div",a.mergeProps(()=>io.modalBackgroundExemption("notifications"),{get class(){return on.host},get"data-position"(){return g()},get"data-presenter"(){return ln.nativeRendered()?"native":"dom"},"aria-label":"Notifications",tabIndex:-1}),a.escape(a.createComponent(Hu.OverlayScrollArea,{get rootClass(){return on.scrollArea},get viewportClass(){return on.stack},viewportRef:me,hideHorizontal:!0,get children(){return a.createComponent(m.For,{get each(){return Se()},children:(F,be)=>a.ssr(b1,a.ssrAttribute("class",a.escape(on.enter,!0),!1)+a.ssrAttribute("data-focused",se()===be()?"true":"false",!1),a.escape(a.createComponent(Mr,{item:F,controller:oe,get shell(){return F.isolated?null:pe}})))})}})),!1)}})}}),a.createComponent(ri.HostPortal,{modal:!0,open:()=>!!(r.ownsDisplay()&&Ae()),idPrefix:"notification-ack",get children(){return a.createComponent(m.Show,{keyed:!0,get when(){return a.memo(()=>!!r.ownsDisplay())()?Ae():null},children:F=>a.ssr(m1,a.ssrAttribute("class",a.escape(on.ackOverlay,!0),!1),`notif-ack-${a.escape(F.id,!0)}`,a.ssrAttribute("data-ack-queue-size",K().length>1?a.escape(K().length,!0):a.escape(void 0,!0),!1),a.ssrAttribute("class",a.escape(on.ackCenterWrap,!0),!1),`notif-ack-${a.escape(F.id,!0)}`,a.escape(a.createComponent(Mr,{item:F,controller:oe,get shell(){return F.isolated?null:pe}})),a.escape(a.createComponent(m.Show,{get when(){return K().length>1},get children(){return a.ssr(_1,a.ssrAttribute("class",a.escape(on.ackQueueHint,!0),!1),a.escape(T.t("+{count} pending acknowledgment",{count:K().length-1})))}})))})}})]},T1=ut.defineNotification({id:"onboarding.PageTourHost.info.1",source:"general",severity:"info",priority:"default",delivery:"in-app",kind:"message"},()=>({message:T.t("You can reopen this tour from Help → Page tours.")}));function Bu(e){return e.getClientRects().length>0&&e.getBoundingClientRect().width>0&&e.getBoundingClientRect().height>0}function Ou(e){return t=>t.matches(e)&&Bu(t)?t:Array.from(t.querySelectorAll(e)).find(Bu)??null}var S1=["<span hidden","></span>"];function C1(e){const t=m.useContext(dt.ToolWindowContext),{tours:n,notifications:u,log:r}=su.useKitHost(),i=r.withTag("PageTour");let s;const[o,c]=m.createSignal(!1),[l,p]=m.createSignal(0),[d,b]=m.createSignal([]);let E=!1,g=!1,x=!1;const O={},w=()=>s.parentElement,C=()=>Bu(w()),D=(L,U=!0)=>{var Y;c(!1),n.release(O),n.setActive(null),(Y=e.onTourActiveChange)==null||Y.call(e,!1);try{n.writeStatus(e.definition.pageId,L?"completed":"skipped")}catch(j){i.warn("Could not save tour progress",j)}E&&U&&u.notify(T1,{}),E=!1},v=()=>{n.setNeverShowAgain(!0),D(!1,!1)},y=(L=!1)=>{var Y;if(!C()||!n.claim(O))return;g=!1;const U=e.definition.steps.filter(j=>{var me;return((me=j.available)==null?void 0:me.call(j))!==!1});if(!U.length){n.release(O);return}b(U),p(0),E=L;try{n.writeStatus(e.definition.pageId,"shown")}catch(j){i.warn("Could not save tour progress",j)}n.setActive(e.definition.pageId),(Y=e.onTourActiveChange)==null||Y.call(e,!0),c(!0)};return m.onMount(()=>{const L=w(),U=L.hasAttribute("tabindex");U||(L.tabIndex=-1),m.onCleanup(()=>{U||L.removeAttribute("tabindex")});const j=s.ownerDocument.defaultView;if(!j)return;const me=()=>Array.from(s.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some(K=>Bu(K)&&!K.contains(w()));let se=0;const H=()=>{var K;if(!C()){se=0,o()&&D(!1,!1);return}if(!(o()||me()||((K=t==null?void 0:t.isReady)==null?void 0:K.call(t))===!1)&&!(++se<2)){if(n.consumeRequest(e.definition.pageId)&&(g=!0),g){y();return}if(!x&&!n.skipWelcome())try{n.readStatus(e.definition.pageId)||y(!0)}catch(Se){x=!0,i.warn("Could not read tour progress",Se)}}},oe=n.registerHost({page:e.definition.pageId,document:()=>s.ownerDocument,visible:C,start:()=>{g=!0,(o()||!me())&&y()},dismiss:()=>{o()&&D(!1,!1)}}),pe=j.setInterval(H,250);m.onCleanup(()=>{var K;j.clearInterval(pe),oe(),n.release(O),n.activePage()===e.definition.pageId&&(n.setActive(null),(K=e.onTourActiveChange)==null||K.call(e,!1))})}),[a.ssr(S1,a.ssrAttribute("data-page-tour-host",a.escape(e.definition.pageId,!0),!1)),a.createComponent(m.Show,{get when(){return o()},get children(){return a.createComponent(kn.GuidedTour,{get document(){return s.ownerDocument},focusFallback:()=>C()?w():null,get steps(){return d()},get index(){return l()},target:()=>{var L;return((L=d()[l()])==null?void 0:L.target(w()))??null},onSelect:p,onClose:D,onNeverShowAgain:v})}})]}const N1={id:"notifications",pageId:"notifications",version:1,steps:[{id:"panel",title:"Notification Center",description:"Stay informed on database events, completed exports, query execution errors, and background system alerts.",target:Ou('[data-tour-target="notifications-panel"]')},{id:"actions",title:"Timeline Actions & Filter Options",description:"Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",target:Ou('[data-tour-target="notifications-actions"]')},{id:"settings",title:"Notification Settings & DND",description:"Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",target:Ou('[data-tour-target="notifications-settings"]')},{id:"timeline",title:"Interactive Timeline Cards",description:"Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",target:Ou('[data-tour-target="notifications-timeline"]')}]};function R1(e,t,n,u,r=2){return e<=0||e>n?0:Math.min(t,r+Math.floor((n-e)/u))}function Kn(e,t){e(n=>{const u=new Set(n);return u.has(t)?u.delete(t):u.add(t),u})}const I1="vk_rightRail_HtYMh",O1="vk_notificationPanel_nrSZl",y1="vk_filterBar_WTQg3",x1="vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD",D1="vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp",k1="vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx",L1="vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8",v1="vk_notificationActionIcon_d5EzT",w1="vk_notificationTimeline_K-mMI",M1="vk_notificationEmpty_IU6kY",F1="vk_notificationItem_tm8HP",P1="vk_notificationGroup_4hkdy",U1="vk_notificationGroupToggle_Opmmd",B1="vk_notificationGroupBody_nlrmq",H1="vk_notificationItemSelected_DspyF",G1="vk_notificationItemCheckbox_knWVX",z1="vk_bulkActionBar_6MHEY",$1="vk_bulkActionCount_Mb4tN",V1="vk_notificationItemTop_Mt0D7",W1="vk_notificationToneDot_Z-LOj",q1="vk_notificationToneInfo_rxKOj",Y1="vk_notificationToneSuccess_Bxc9E",X1="vk_notificationToneWarning_uBK0T",K1="vk_notificationToneError_p9EYY",Z1="vk_notificationItemTime_WT4cd",j1="vk_notificationItemCopyDone_P39uT",Q1="vk_notificationItemMessage_G2mnV",J1="vk_notificationItemMeta_xdFUH",ep="vk_notificationSourceLabel_VvB0i",tp="vk_priorityBadgeIcon_UaJX0",ue={rightRail:I1,notificationPanel:O1,filterBar:y1,notificationPanelHeader:x1,notificationPanelTitleWrap:D1,notificationPanelTitle:k1,notificationPanelActions:L1,notificationActionIcon:v1,notificationTimeline:w1,notificationEmpty:M1,notificationItem:F1,notificationGroup:P1,notificationGroupToggle:U1,notificationGroupBody:B1,notificationItemSelected:H1,notificationItemCheckbox:G1,bulkActionBar:z1,bulkActionCount:$1,notificationItemTop:V1,notificationToneDot:W1,notificationToneInfo:q1,notificationToneSuccess:Y1,notificationToneWarning:X1,notificationToneError:K1,notificationItemTime:Z1,notificationItemCopyDone:j1,notificationItemMessage:Q1,notificationItemMeta:J1,notificationSourceLabel:ep,priorityBadgeIcon:tp};var np=["<h3",">","</h3>"],up=["<div",' data-tour-target="notifications-actions">',"</div>"],rp=["<div",' role="toolbar"',"><span",">","</span>","","","","</div>"],ip=["<span",">📌 ","</span>"],op=["<aside",' tabindex="-1"><section',' data-tour-target="notifications-panel">',"","","","","</section></aside>"],sp=["<p",">","</p>"],cp=['<span class="','"></span>'],ap=["<span",">","</span>"],lp=['<article class="','"><div',">",'<span class="','"></span><time',">","</time>","","","","</div><p",">","</p><div","><span",">","</span>","","","</div></article>"];function fp(e){return new Intl.DateTimeFormat(Fn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function dp(e){return new Intl.DateTimeFormat(Fn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function no(e){switch(e){case"success":return ue.notificationToneSuccess;case"error":return ue.notificationToneError;case"warning":return ue.notificationToneWarning;default:return ue.notificationToneInfo}}const yu=["error","warning","info","success"],pp=189,hp=27;function gp(e){const t=ro.useHostDocument(),n=su.useKitHost(),{notifications:u}=n,r=u.timeline,i=n.log.withTag("NotificationPanel"),s=A=>dt.openExternalUrl(n.desktop,i,A),o=A=>wu(n.vendorErrors,A),[c,l]=m.createSignal(null),[p,d]=m.createSignal(0),[b,E]=m.createSignal(""),[g,x]=m.createSignal(null),[O,w]=m.createSignal(new Set),[C,D]=m.createSignal(!1),[v,y]=m.createSignal(new Set),[L,U]=m.createSignal(new Set),[Y,j]=m.createSignal(new Set),[me,se]=m.createSignal(!1),[H,oe]=m.createSignal(0);let pe=null;const K=Br.useDesktopContextMenu(),Se=m.createMemo(()=>Ro(b(),me())),Ae=m.createMemo(()=>Io(e.notificationTimeline(),{tones:O(),sources:L(),priorities:Y(),dateBounds:g(),searchMatcher:Se()})),I=m.createMemo(()=>{const A=new Set;for(const te of e.notificationTimeline())A.add(te.source);return Array.from(A).sort()}),G=m.createMemo(()=>Ae().filter(A=>A.pinned===!0)),[Q,de]=m.createSignal(0);q.useSettingsSubscription(q.notificationSettings,()=>{de(A=>A+1)});const[re,he]=m.createSignal(new Set),je=m.createMemo(()=>{Q();const A=q.notificationSettings.get();return A.timelineGroupingEnabled?yo(Ae(),A.timelineGroupBy):Ae().map(te=>({type:"entry",id:te.id,entry:te}))}),It=A=>{Kn(he,A)},ce=()=>b().trim()!==""||g()!==null||O().size>0||L().size>0||Y().size>0,ln=()=>{E(""),x(null),w(new Set),U(new Set),j(new Set)},Qt=A=>{Kn(U,A)},F=A=>{Kn(j,A)},be=["urgent","acknowledgment-required","default","optional","silent"],Ue=A=>{if(A.preventDefault(),A.stopPropagation(),K.state()!==null){K.close();return}const Ee=A.currentTarget.getBoundingClientRect(),Re=I(),Je={urgent:T.t("Urgent"),"acknowledgment-required":T.t("Acknowledgment required"),default:T.t("Default"),optional:T.t("Optional"),silent:T.t("Silent")};K.open(Ee.left,Ee.bottom+4,[{label:T.t("Use regex in search"),checked:()=>me(),keepOpenOnSelect:!0,onSelect:()=>{se(Ye=>!Ye)}},{type:"separator"},{label:T.t("Filter by priority"),submenu:be.map(Ye=>({label:Je[Ye],checked:()=>Y().has(Ye),keepOpenOnSelect:!0,onSelect:()=>F(Ye)}))},...Re.length>0?[{label:T.t("Filter by source"),submenu:Re.map(Ye=>({label:bn(Ye).label,checked:()=>L().has(Ye),keepOpenOnSelect:!0,onSelect:()=>Qt(Ye)}))}]:[],{type:"separator"},{label:T.t("Clear advanced filters"),disabled:L().size===0&&Y().size===0,onSelect:()=>{U(new Set),j(new Set)}}])},qe=A=>{Kn(w,A)},we=()=>{const A=O();return A.size===0||A.size===yu.length?T.t("All tones"):Array.from(A).join(", ")},ht=A=>{if(A.preventDefault(),A.stopPropagation(),K.state()!==null){K.close();return}const Ee=A.currentTarget.getBoundingClientRect();K.open(Ee.left,Ee.bottom+4,[...yu.map(Re=>({label:T.t(Cs[Re]),checked:()=>O().has(Re),keepOpenOnSelect:!0,onSelect:()=>qe(Re)})),{type:"separator"},...O().size===yu.length?[{label:T.t("Select none"),onSelect:()=>{w(new Set)}}]:[{label:T.t("Select all"),onSelect:()=>{w(new Set(yu))}}]])};m.onMount(()=>{const A=r.subscribeUnread(d);m.onCleanup(A)});const $t=A=>u.dismissEntry(A),ge=A=>{const te={source:co(A.source)?A.source:"general",priority:"urgent",recordTimeline:!1},Ee=A.tone;Ee==="error"?u.notify(Cc,{timelineMessage:A.message,options:te}):Ee==="warning"?u.notify(Nc,{timelineMessage:A.message,options:te}):Ee==="success"?u.notify(Rc,{timelineMessage:A.message,options:te}):u.notify(Ic,{timelineMessage:A.message,options:te})},Ot=A=>{const te=o(A);te&&s(te.helpers.docsUrl(te.code))},ye=()=>r.clear(),fn=A=>{Kn(y,A)},rt=()=>{D(!0),y(new Set)},Mt=()=>{D(!1),y(new Set)},An=()=>{y(new Set(Ae().map(A=>A.id)))},Qe=()=>v().size,bt=()=>{const A=v();return Ae().filter(te=>A.has(te.id)).map(te=>te.id)},Jt=()=>{const A=bt();A.length!==0&&(r.dismissMany(A),Mt())},_t=A=>{const te=v(),Ee=e.notificationTimeline().filter(Re=>te.has(Re.id));for(const Re of Ee)(Re.pinned??!1)!==A&&r.togglePin(Re.id)},yt=async A=>{const te=Ae();if(te.length===0)return;const Ee=n.desktop.fs,Je=`notifications-${new Date().toISOString().replace(/[:T]/g,"-").slice(0,19)}.${A}`,Ye=A==="csv"?[{name:"CSV",extensions:["csv"]}]:[{name:"JSON",extensions:["json"]}];try{const Ge=await Ee.showSaveDialog({title:T.t("Export notifications"),defaultPath:Je,filters:Ye});if(!(Ge!=null&&Ge.filePath))return;const h=A==="csv"?Do(te):ko(te);await Ee.writeFile(Ge.filePath,h),u.notify(Oc,{entryCount:te.length})}catch(Ge){u.notify(yc,{cause:Ge})}},st=()=>n.openNotificationSettings(),xt=A=>{if(A.preventDefault(),A.stopPropagation(),K.state()!==null){K.close();return}const Ee=A.currentTarget.getBoundingClientRect(),Re=Ae().length===0;K.open(Ee.left,Ee.bottom+4,[{label:T.t("Export"),disabled:Re,submenu:[{label:T.t("Export as CSV"),onSelect:()=>{yt("csv")}},{label:T.t("Export as JSON"),onSelect:()=>{yt("json")}}]},{type:"separator"},{label:T.t("Notification settings…"),onSelect:st}])},Dt=async A=>{var Ee;const te=A.message.trim();if(te)try{if((Ee=navigator.clipboard)!=null&&Ee.writeText)await navigator.clipboard.writeText(te);else{const Re=t,Je=ut.createElement("textarea");Je.value=te,Je.setAttribute("readonly","true"),Je.style.position="fixed",Je.style.opacity="0",Re.body.appendChild(Je),Je.select(),Re.execCommand("copy"),Re.body.removeChild(Je)}l(A.id),pe!==null&&window.clearTimeout(pe),pe=window.setTimeout(()=>{l(Re=>Re===A.id?null:Re),pe=null},1400)}catch(Re){i.warn("Timeline entry could not be copied:",Re)}};m.onCleanup(()=>{pe!==null&&window.clearTimeout(pe)}),m.onMount(()=>{});const Vt=m.createMemo(()=>[{id:"select",icon:()=>a.createComponent(Te.VpSquareCheck,{get class(){return ue.notificationActionIcon}}),label:()=>T.t("Select multiple notifications"),disabled:()=>Ae().length===0,onSelect:rt},{id:"mark-read",icon:()=>a.createComponent(Te.VpMailOpened,{get class(){return ue.notificationActionIcon}}),label:()=>T.t("Mark all as read"),disabled:()=>p()===0,onSelect:()=>r.markSeen()},{id:"clear",icon:()=>a.createComponent(Te.VpTrash,{get class(){return ue.notificationActionIcon}}),label:()=>T.t("Clear all notifications"),disabled:()=>e.notificationTimeline().length===0,onSelect:ye}]),Wt=m.createMemo(()=>R1(H(),Vt().length,pp,hp)),en=m.createMemo(()=>{const A=Vt();return A.slice(0,A.length-Wt())}),qt=m.createMemo(()=>{const A=Vt();return A.slice(A.length-Wt())}),Ft=A=>{if(A.preventDefault(),A.stopPropagation(),K.state()!==null){K.close();return}K.openWithPlacement(Ns(A.currentTarget,{horizontal:"right"}),qt().map(te=>({label:te.label(),icon:te.icon(),disabled:te.disabled(),onSelect:te.onSelect})))};return a.ssr(op,a.ssrAttribute("class",a.escape(ue.rightRail,!0),!1),a.ssrAttribute("class",a.escape(ue.notificationPanel,!0),!1),a.escape(a.createComponent(kn.Panel.Header,{get class(){return ue.notificationPanelHeader},get children(){return[a.createComponent(Hr.PressableSurface,{type:"button",get class(){return ue.notificationPanelTitleWrap},"data-tour-target":"notifications-settings",onClick:xt,get title(){return T.t("Notification menu")},"aria-haspopup":"menu",get children(){return[a.ssr(np,a.ssrAttribute("class",a.escape(ue.notificationPanelTitle,!0),!1),a.escape(T.t("Notifications"))),a.createComponent(m.Show,{get when(){return p()>0},get children(){return a.createComponent(ut.Badge,{tone:"danger",size:"sm",get tooltip(){return T.t("{count} unread",{count:p()})},get children(){return p()>99?"99+":p()}})}})]}}),a.ssr(up,a.ssrAttribute("class",a.escape(ue.notificationPanelActions,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return!C()},get fallback(){return a.createComponent(Le.Button,{variant:"ghost",size:"sm",onClick:Mt,get title(){return T.t("Exit selection mode")},get children(){return T.t("Cancel")}})},get children(){return[a.createComponent(m.For,{get each(){return en()},children:A=>a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return A.onSelect},get disabled(){return A.disabled()},get title(){return A.label()},get"aria-label"(){return A.label()},get children(){return A.icon()}})}),a.createComponent(m.Show,{get when(){return qt().length>0},get children(){return a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:Ft,get title(){return T.t("More actions")},get"aria-label"(){return T.t("More actions")},get children(){return a.createComponent(vs.VpDots,{get class(){return ue.notificationActionIcon}})}})}})]}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return C()},get children(){return a.ssr(rp,a.ssrAttribute("class",a.escape(ue.bulkActionBar,!0),!1),a.ssrAttribute("aria-label",a.escape(T.t("Bulk actions"),!0),!1),a.ssrAttribute("class",a.escape(ue.bulkActionCount,!0),!1),a.escape(T.t("{count} selected",{count:Qe()})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",onClick:An,get disabled(){return Ae().length===0||Qe()===Ae().length},get title(){return T.t("Select all visible")},get children(){return T.t("Select all")}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",onClick:()=>_t(!0),get disabled(){return Qe()===0},get title(){return T.t("Pin selected")},get children(){return T.t("Pin")}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",onClick:()=>_t(!1),get disabled(){return Qe()===0},get title(){return T.t("Unpin selected")},get children(){return T.t("Unpin")}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",onClick:Jt,get disabled(){return Qe()===0},get title(){return T.t("Delete selected")},get leadingIcon(){return a.createComponent(Te.VpTrash,{get class(){return ue.notificationActionIcon}})},get children(){return T.t("Delete")}})))}})),a.escape(a.createComponent(so,{get class(){return ue.filterBar},get searchValue(){return b()},onSearchInput:E,get searchPlaceholder(){return T.t("Search notifications…")},get dateRange(){return g()},onDateRangeChange:x,dateRangeAlign:"end",get children(){return[a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return O().size>0},onClick:ht,get title(){return a.memo(()=>O().size===0)()?T.t("Filter by tone"):T.t("Tone filter: {tones}",{tones:we()})},get children(){return a.createComponent(Te.VpFilter,{get class(){return ue.notificationActionIcon}})}}),a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return L().size>0||Y().size>0||me()},onClick:Ue,get title(){return T.t("Advanced filters (source, priority, regex)")},get children(){return a.createComponent(Te.VpAdjustments,{get class(){return ue.notificationActionIcon}})}}),a.createComponent(m.Show,{get when(){return ce()},get children(){return a.createComponent(Le.Button,{variant:"ghost",size:"sm",onClick:ln,get title(){return T.t("Clear filters")},get children(){return T.t("Clear")}})}})]}})),a.escape(a.createComponent(Hu.OverlayScrollArea,{get viewportClass(){return ue.notificationTimeline},"data-tour-target":"notifications-timeline",get children(){return a.createComponent(m.Show,{get when(){return Ae().length>0},get fallback(){return a.ssr(sp,a.ssrAttribute("class",a.escape(ue.notificationEmpty,!0),!1),ce()?a.escape(T.t("No notifications match the current filter.")):a.escape(T.t("No notifications yet.")))},get children(){return[a.createComponent(m.Show,{get when(){return G().length>0},get children(){return a.createComponent(kn.Panel.Header,{get class(){return ue.notificationItemTop},get children(){return a.ssr(ip,a.ssrAttribute("class",a.escape(ue.notificationSourceLabel,!0),!1),a.escape(T.t("Pinned ({count})",{count:G().length})))}})}}),a.createComponent(m.For,{get each(){return je()},children:A=>{if(A.type==="group"&&A.groupItems){const te=()=>re().has(A.id);return a.createComponent(kn.Disclosure,{get class(){return ue.notificationGroup},get toggleClass(){return ue.notificationGroupToggle},get open(){return te()},onToggle:()=>It(A.id),get bodyClass(){return ue.notificationGroupBody},get title(){return[a.ssr(cp,`${a.escape(ue.notificationToneDot,!0)} ${a.escape(no(A.groupTone??"info"),!0)}`),a.ssr(ap,a.ssrAttribute("class",a.escape(ue.notificationItemMessage,!0),!1),a.escape(T.t('{count} from "{source}"',{count:A.groupCount??0,source:bn(A.groupSource??"").label})))]},get children(){return a.createComponent(m.For,{get each(){return A.groupItems},children:Ee=>Yt(Ee)})}})}return A.type==="entry"&&A.entry?Yt(A.entry):null}})]}})}})),a.escape(a.createComponent(C1,{definition:N1})));function Yt(A){const te=()=>o(A);return a.ssr(lp,`${a.escape(ue.notificationItem,!0)} ${C()&&v().has(A.id)?a.escape(ue.notificationItemSelected,!0):""}`,a.ssrAttribute("class",a.escape(ue.notificationItemTop,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return C()},get children(){return a.createComponent(Ur.Checkbox,{get class(){return ue.notificationItemCheckbox},get checked(){return v().has(A.id)},onChange:()=>fn(A.id),get ariaLabel(){return T.t("Select notification")}})}})),`${a.escape(ue.notificationToneDot,!0)} ${a.escape(no(A.tone),!0)}`,a.ssrAttribute("class",a.escape(ue.notificationItemTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(A.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(dp(A.createdAt),!0),!1),a.escape(fp(A.createdAt)),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return te()},children:Ee=>a.createComponent(Le.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{Ot(A)},get title(){return T.t("Open {vendor} ({code})",{vendor:Ee.helpers.docsLinkLabel,code:Ee.helpers.formatCode(Ee.code)})},get"aria-label"(){return T.t("Open {vendor} ({code})",{vendor:Ee.helpers.docsLinkLabel,code:Ee.helpers.formatCode(Ee.code)})},get leadingIcon(){return a.createComponent(Te.VpBook,{get class(){return ue.notificationActionIcon}})}})})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>ge(A),get title(){return T.t("Show as toast again")},get"aria-label"(){return T.t("Show as toast again")},get leadingIcon(){return a.createComponent(Te.VpBellRinging,{get class(){return ue.notificationActionIcon}})}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"2xs",iconOnly:!0,get class(){return a.memo(()=>c()===A.id)()?ue.notificationItemCopyDone:void 0},onClick:()=>{Dt(A)},get title(){return a.memo(()=>c()===A.id)()?T.t("Copied"):T.t("Copy log message")},get"aria-label"(){return a.memo(()=>c()===A.id)()?T.t("Copied"):T.t("Copy log message")},get children(){return a.createComponent(m.Show,{get when(){return c()===A.id},get fallback(){return a.createComponent(Ms.VpCopy,{get class(){return ue.notificationActionIcon}})},get children(){return a.createComponent(ws.VpCheck,{get class(){return ue.notificationActionIcon}})}})}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{$t(A.id)},get title(){return T.t("Remove notification")},get"aria-label"(){return T.t("Remove notification")},get leadingIcon(){return a.createComponent(Fs.VpMinus,{get class(){return ue.notificationActionIcon}})}})),a.ssrAttribute("class",a.escape(ue.notificationItemMessage,!0),!1),a.escape(A.message),a.ssrAttribute("class",a.escape(ue.notificationItemMeta,!0),!1),a.ssrAttribute("class",a.escape(ue.notificationSourceLabel,!0),!1)+a.ssrAttribute("title",a.escape(bn(A.source).description,!0),!1),a.escape(bn(A.source).label),a.escape(a.createComponent(m.Show,{get when(){return A.priority==="urgent"},get children(){return a.createComponent(ut.Badge,{tone:"danger",size:"sm",children:"urgent"})}})),a.escape(a.createComponent(m.Show,{get when(){return A.priority==="silent"},get children(){return a.createComponent(ut.Badge,{tone:"neutral",size:"sm",get icon(){return a.createComponent(Te.VpBellOff,{get class(){return ue.priorityBadgeIcon}})},get tooltip(){return T.t("Silent — timeline only")},children:"silent"})}})),a.escape(a.createComponent(m.Show,{get when(){return mn(A.source)},get children(){return a.createComponent(ut.Badge,{tone:"warning",size:"sm",get tooltip(){return T.t("Source muted")},children:"muted"})}})))}}const Ep="vk_center_5Vlx7",bp="vk_header_vo883",_p="vk_title_JpYEU",mp="vk_actions_ErJgC",Ap="vk_actionIcon_-JWZ1",Tp="vk_list_YLy-l",Sp="vk_card_-fwSa",Cp="vk_cardIcon_RBj-W",Np="vk_cardBody_z8pxK",Rp="vk_cardMessage_aN-yw",Ip="vk_cardMeta_XQ3my",Op="vk_cardButtons_1PXZE",yp="vk_cardSource_Z8c0M",xp="vk_cardTime_OXbCq",Dp="vk_cardActions_QOc1i",ze={center:Ep,header:bp,title:_p,actions:mp,actionIcon:Ap,list:Tp,card:Sp,cardIcon:Cp,cardBody:Np,cardMessage:Rp,cardMeta:Ip,cardButtons:Op,cardSource:yp,cardTime:xp,cardActions:Dp};var kp=["<h3",">","","</h3>"],Lp=["<div",">","","","","</div>"],vp=["<section"," data-notification-center>","","</section>"],wp=["<div"," data-notification-card-actions>","</div>"],Mp=["<article","><span",' aria-hidden="true">',"</span><div","><p",">","</p><div","><span",">","</span><time",">","</time></div>","</div><div",">","","</div></article>"];const Fp={info:Te.VpInfoCircle,warning:oo.VpAlertTriangle,error:Te.VpCircleX,success:Te.VpCircleCheck};function Pp(e){return new Intl.DateTimeFormat(Fn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Up(e){return new Intl.DateTimeFormat(Fn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function ys(e){const t=su.useKitHost(),{notifications:n}=t,u=vo(t),r=t.log.withTag("NotificationsCenter"),i=C=>dt.openExternalUrl(t.desktop,r,C),[s,o]=m.createSignal([]),[c,l]=m.createSignal(q.notificationSettings.get().doNotDisturb),p=Br.useDesktopContextMenu();m.onMount(()=>{const C=n.timeline.subscribe(o);m.onCleanup(C)}),q.useSettingsSubscription(q.notificationSettings,()=>{l(q.notificationSettings.get().doNotDisturb)});const d=m.createMemo(()=>[...s()].sort((C,D)=>D.createdAt-C.createdAt)),b=C=>Fp[C],E=()=>{const C=q.notificationSettings.get();q.notificationSettings.update({...C,doNotDisturb:!C.doNotDisturb}).catch(D=>{n.notify(No,{cause:D})})},g=()=>t.openNotificationSettings(),x=C=>{const D=[...C.actions??[]],v=wu(t.vendorErrors,C);if(v){const y=v.helpers.docsUrl(v.code);if(y){const L=`${v.helpers.formatCode(v.code)} ${v.helpers.docsLinkLabel}`;D.some(U=>U.label===L)||D.push({label:L,onClick:()=>i(y)})}}return D},O=C=>{var v;const D=C.message.trim();D&&((v=navigator.clipboard)==null||v.writeText(D).catch(y=>{r.warn("notification message could not be copied",y)}))},w=(C,D,v)=>{if(p.state()!==null){p.close();return}const y=bn(v.source),L=mn(y.id),U=wu(t.vendorErrors,v);p.open(C,D,[{label:T.t("Copy log message"),onSelect:()=>O(v)},...U?[{label:T.t("Open {vendor} ({code})",{vendor:U.helpers.docsLinkLabel,code:U.helpers.formatCode(U.code)}),onSelect:()=>i(U.helpers.docsUrl(U.code))}]:[],{type:"separator"},{label:L?T.t('Unmute "{source}"',{source:y.label}):T.t('Mute "{source}"',{source:y.label}),onSelect:()=>u.setSourceMuted(y.id,!L)},{type:"separator"},{label:T.t("Remove notification"),danger:!0,onSelect:()=>n.dismissEntry(v.id)},{label:T.t('Remove all from "{source}"',{source:y.label}),danger:!0,onSelect:()=>n.timeline.dismissBySource(y.id)}])};return a.ssr(vp,a.ssrAttribute("class",a.escape(ze.center,!0),!1),a.escape(a.createComponent(kn.Panel.Header,{get class(){return ze.header},get children(){return[a.ssr(kp,a.ssrAttribute("class",a.escape(ze.title,!0),!1),a.escape(T.t("Notifications")),a.escape(a.createComponent(m.Show,{get when(){return d().length>0},get children(){return` (${d().length})`}}))),a.ssr(Lp,a.ssrAttribute("class",a.escape(ze.actions,!0),!1),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.timeline.clear(),get disabled(){return d().length===0},get title(){return T.t("Clear all notifications")},get"aria-label"(){return T.t("Clear all notifications")},get children(){return a.createComponent(Te.VpTrash,{get class(){return ze.actionIcon}})}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return c()},onClick:E,get title(){return a.memo(()=>!!c())()?T.t("Disable Do Not Disturb"):T.t("Enable Do Not Disturb")},get"aria-label"(){return a.memo(()=>!!c())()?T.t("Disable Do Not Disturb"):T.t("Enable Do Not Disturb")},get children(){return a.createComponent(m.Show,{get when(){return c()},get fallback(){return a.createComponent(Te.VpBell,{get class(){return ze.actionIcon}})},get children(){return a.createComponent(Te.VpBellOff,{get class(){return ze.actionIcon}})}})}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:g,get title(){return T.t("Notification settings")},get"aria-label"(){return T.t("Notification settings")},get children(){return a.createComponent(Te.VpSettings,{get class(){return ze.actionIcon}})}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return e.onHide},get title(){return T.t("Hide notifications")},get"aria-label"(){return T.t("Hide notifications")},get children(){return a.createComponent(_n.VpChevronDown,{get class(){return ze.actionIcon}})}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return d().length>0},get fallback(){return a.createComponent(Us.EmptyState,{size:"sm",get title(){return T.t("No new notifications")}})},get children(){return a.createComponent(Hu.OverlayScrollArea,{get viewportClass(){return ze.list},get children(){return a.createComponent(m.For,{get each(){return d()},children:C=>{const D=bn(C.source),v=x(C);return a.ssr(Mp,a.ssrAttribute("class",a.escape(ze.card,!0),!1),a.ssrAttribute("class",a.escape(ze.cardIcon,!0),!1)+a.ssrAttribute("data-tone",a.escape(C.tone,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return b(C.tone)}})),a.ssrAttribute("class",a.escape(ze.cardBody,!0),!1),a.ssrAttribute("class",a.escape(ze.cardMessage,!0),!1),a.escape(C.message),a.ssrAttribute("class",a.escape(ze.cardMeta,!0),!1),a.ssrAttribute("class",a.escape(ze.cardSource,!0),!1)+a.ssrAttribute("title",a.escape(D.description,!0),!1),a.escape(T.t("Source: {source}",{source:D.label})),a.ssrAttribute("class",a.escape(ze.cardTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(C.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(Up(C.createdAt),!0),!1),a.escape(Pp(C.createdAt)),a.escape(a.createComponent(m.Show,{get when(){return v.length>0},get children(){return a.ssr(wp,a.ssrAttribute("class",a.escape(ze.cardButtons,!0),!1),a.escape(a.createComponent(m.For,{each:v,children:y=>a.createComponent(Le.Button,{get variant(){return y.primary?"primary":"secondary"},size:"sm",onClick:()=>y.onClick(),get children(){return y.label}})})))}})),a.ssrAttribute("class",a.escape(ze.cardActions,!0),!1),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:y=>{const L=y.currentTarget.getBoundingClientRect();w(L.left,L.bottom+4,C)},get title(){return T.t("More actions")},get"aria-label"(){return T.t("More actions")},get children(){return a.createComponent(Te.VpSettings,{get class(){return ze.actionIcon}})}})),a.escape(a.createComponent(Le.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.dismissEntry(C.id),get title(){return T.t("Remove notification")},get"aria-label"(){return T.t("Remove notification")},get children(){return a.createComponent(Rr.VpClose,{get class(){return ze.actionIcon}})}})))}})}})}})))}const Bp="vk_bell_tx9ag vk_buttonReset_3WpyU",Hp="vk_bellIcon_w6Lmy",Gp="vk_badge_2L8Eg",zp="vk_centerPopover_48x5p",Zn={bell:Bp,bellIcon:Hp,badge:Gp,centerPopover:zp};var $p=["<span",">","</span>"];function Vp(){const{timeline:e}=su.useKitHost().notifications,[t,n]=m.createSignal(!1),[u,r]=m.createSignal(0),[i,s]=m.createSignal(q.notificationSettings.get().doNotDisturb);let o;m.onMount(()=>{const p=e.subscribeUnread(r);m.onCleanup(p)}),q.useSettingsSubscription(q.notificationSettings,()=>{s(q.notificationSettings.get().doNotDisturb)});const c=()=>{n(p=>{const d=!p;return d&&e.markSeen(),d})},l=()=>u()>99?"99+":String(u());return[a.createComponent(Hr.PressableSurface,{type:"button",get class(){return Zn.bell},"data-status-bar-bell":!0,get"data-open"(){return t()?"true":"false"},onClick:c,get title(){return a.memo(()=>!!i())()?T.t("Notifications (Do Not Disturb on)"):T.t("Show notifications")},get"aria-label"(){return a.memo(()=>!!i())()?T.t("Notifications (Do Not Disturb on)"):T.t("Show notifications")},"aria-haspopup":"dialog",get"aria-expanded"(){return t()},get children(){return[a.createComponent(m.Show,{get when(){return i()},get fallback(){return a.createComponent(Te.VpBell,{get class(){return Zn.bellIcon}})},get children(){return a.createComponent(Te.VpBellOff,{get class(){return Zn.bellIcon}})}}),a.createComponent(m.Show,{get when(){return u()>0},get children(){return a.ssr($p,a.ssrAttribute("class",a.escape(Zn.badge,!0),!1),a.escape(l()))}})]}}),a.createComponent(_n.Popover,{get open(){return t()},onClose:()=>n(!1),anchor:()=>o,placement:"top-end",gap:6,role:"dialog",get ariaLabel(){return T.t("Notifications")},get class(){return Zn.centerPopover},get children(){return a.createComponent(ys,{onHide:()=>n(!1)})}})]}exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=Fr;exports.CLEAR_NOTIFICATION=Pr;exports.HIDE_NOTIFICATION_TOASTS=Lu;exports.LogFilterBar=so;exports.NOTIFICATION_SOURCES=zu;exports.NOTIFICATION_SOURCE_IDS=Gr;exports.NO_NOTIFICATION_OVERLAY=Is;exports.NotificationHost=A1;exports.NotificationItem=Mr;exports.NotificationPanel=gp;exports.NotificationService=Dc;exports.NotificationTimeline=lo;exports.NotificationsCenter=ys;exports.SEVERITY_ORDER=yr;exports.SEVERITY_TONES=fo;exports.StatusBarNotificationBell=Vp;exports.appWindowNotificationOverlay=Os;exports.applyNotificationRules=$r;exports.clearCompiledRuleRegexCache=Eo;exports.compileNotificationSearchMatcher=Ro;exports.createNativeNotificationEngine=zr;exports.createNotificationPreviewRuntime=Zc;exports.decideFilter=Mu;exports.deleteWebhookUrl=Qs;exports.deriveImplicitRemindKey=Wr;exports.dismissKey=To;exports.dismissableToastIds=Oo;exports.entryVendorMatch=wu;exports.exportTimelineAsCsv=Do;exports.exportTimelineAsJson=ko;exports.filterNotificationTimeline=Io;exports.getSmtpPass=ho;exports.getWebhookUrl=go;exports.groupTimelineEntries=yo;exports.isInQuietHours=Vr;exports.isKeyDismissed=_o;exports.isKeyRemindSuppressed=xr;exports.isNotificationSourceId=co;exports.isNotificationSticky=au;exports.isSourceMuted=mn;exports.isSpamDropHandle=ao;exports.listNotificationSources=vc;exports.pruneOrphanWebhookSecrets=Js;exports.registerFenceAliases=jf;exports.registerNotificationCommands=Rs;exports.remindLater=mo;exports.resolveCatalogPreviewPriority=Yr;exports.resolveNotificationDuration=cu;exports.resolveNotificationSource=bn;exports.resolveSeverityTone=po;exports.restoreAllKeys=gc;exports.restoreKey=hc;exports.setSmtpPass=Zs;exports.setSourceMuted=Ao;exports.setWebhookUrl=js;exports.shouldFireOsNative=bo;exports.toTimelineActions=Qn;exports.unmuteAllSources=Ec;