PageSourceSearch

https://luniko.ai/assets/index-u3J_xIHd.js

js luniko.ai collected 2026-10-05 14:09:34 UTC 1,955,557 bytes, 8,334 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-office-C3AYyXut.js","assets/vendor-react-C7ASs9Oj.js","assets/MeetingsPage-BZANfPTi.js","assets/ItemsViewSelector-BFKoG2lX.js","assets/table-D6lThaPO.js","assets/FlagToggleButton-DcHLDbLJ.js","assets/useUnbookmark-CdJ6ZOhN.js","assets/libraryQueries-DY0mJRrj.js","assets/bookmark-nDfdB_Yf.js","assets/TagPickerButton-CslDuM3O.js","assets/tagQueries-BbbNvGQY.js","assets/tag-CViPat6e.js","assets/checkbox-B-HilsCT.js","assets/MeetingThumbnailMedia-Dn2IniCS.js","assets/play-vMVwYPw6.js","assets/pause-DjQxuDCm.js","assets/minimize-CroUrmpE.js","assets/MeetingVisibilityMenu-BGvNk5G8.js","assets/lock-DJRRP3f6.js","assets/user-check-tNiAPW6w.js","assets/time-9-KLj7BP.js","assets/calendar-BH63X9xq.js","assets/endOfMonth-DWPrX32M.js","assets/endOfWeek-BbSGErec.js","assets/isSameYear-DT6VUyul.js","assets/MultiContactComboBoxV2-DJ3C4KtY.js","assets/useMeetingBulkActions-b57DS9JD.js","assets/useTranscriptCopyPausedAt-Bq9I2TQL.js","assets/meetingTranscriptsClipboard-CwG2E_5l.js","assets/vendor-motion-D0i_FyGX.js","assets/grip-vertical-L0zyEx6v.js","assets/ShareMeetingMenu-BYOggRln.js","assets/SharePersonMenu-CMRnJiFP.js","assets/textarea-CZr9QLXe.js","assets/table-DZ9O8fv8.js","assets/clock-Bxc4mTTd.js","assets/LiveNowSection-BRE5pP0v.js","assets/usePageTitle-T4dL9DRD.js","assets/useMeetingsWorkspace-1tDE2XV-.js","assets/pagination-BhQI5AlH.js","assets/pageChrome-B9cWLoS1.js","assets/vendor-charts-BBg_9aJv.js","assets/CalendarPage-BlVOCzCf.js","assets/upcomingMeetings-DCivANBm.js","assets/repeat-3iy2wTLF.js","assets/endOfDay-CXznyf2o.js","assets/list-filter-k6l9ovh5.js","assets/minimize-2-CvY7o4sO.js","assets/sparkles-BKMaqHrK.js","assets/text-align-start-BmTRefoK.js","assets/arrow-right-DuMHa0Na.js","assets/save-CeaX_Hxl.js","assets/circle-dashed-CD76TEDX.js","assets/ellipsis-CGXeEO7U.js","assets/commandCenterWorkspaceRows-DSyRvYAL.js","assets/onlyMineQuery-CIpMCme-.js","assets/circle-check-big-BA0GzUtI.js","assets/useMediaQuery-Evc9PeUO.js","assets/PulsePage-CkaB8v4q.js","assets/PulsePlaybackProvider-Blt4yuCm.js","assets/RaidTypeBadge-CZNjO9P5.js","assets/ImpactBadge-kh9xyQRB.js","assets/impactPalette-TFASDa_b.js","assets/RaidReferenceText-CzzWpW6C.js","assets/PersonChip-D4UDC5zI.js","assets/scratchPadMentionHoverDetails-DV35N0pp.js","assets/scratchPadEditor-C9aUAUpY.js","assets/vendor-editor-D1tNzar-.js","assets/useMentionAutocomplete-pmF0Onfk.js","assets/paperclip-BOyaCNZP.js","assets/user-B4J-lBxu.js","assets/maximize-2-BX0kF7wq.js","assets/panel-right-Cio44_z8.js","assets/NotificationsPage-Dz6XxGXi.js","assets/LibraryPage-XrWF0OPC.js","assets/LandingPage-3GRQSCZ5.js","assets/MeetingPage-D6np6tOy.js","assets/card-K_YDIW3b.js","assets/tabs-B4K8pRPi.js","assets/BulkFollowBookmarkActions-Diaa6aGE.js","assets/eye-off-g6_kLBEa.js","assets/parseISO-B9PGuPV0.js","assets/DeleteActionItemDropdownMenu-B9B5vHF2.js","assets/InlineTextareaCell-5IokEPX8.js","assets/shield-FmPBimpH.js","assets/dueDateTone-tSmnlnvL.js","assets/sticky-note-Ccw8BqBF.js","assets/AddItemControl-D1P15AbP.js","assets/useGraphDraft-DP9AX7IJ.js","assets/redactSweep-B9OwD9Mx.js","assets/NoteEditor-Bd09x62x.js","assets/SendCopyDialog-BwORxQ8O.js","assets/unlink-Dux1Tlxl.js","assets/scroll-area-dI8nByRD.js","assets/FormSection-CfT_OhAP.js","assets/useUntimedItemsGate-DSJjbpJr.js","assets/speakerName-BRPcHq_l.js","assets/useMeetingSummaryActions-BAW1bzVr.js","assets/clipboard-DvcnJmUo.js","assets/LiveMeetingPage-M_NhHxnB.js","assets/ActionItemsColumnMenu-7SvJRoJl.js","assets/vendor-aggrid-CYZ6RRky.js","assets/RowActionsMenu-CHzgNFmG.js","assets/useGridModuleRegistration-BhyjVvRa.js","assets/AdditionalNoteRenderer-5rvPkiCn.js","assets/keyboard-D-8C6DHh.js","assets/gridKit-CYqK7doG.js","assets/gridKit-Cl78S0eM.css","assets/SmartsheetIdCell-34-_u_WL.js","assets/WorkspaceGridPanel-Djy0yTkM.js","assets/ActionsCellRenderer-DI7vFT5i.js","assets/ProfileChip-DmGIO4_D.js","assets/text-align-center-CgvDWJIF.js","assets/useWorkspaceContext-CJfRMj7h.js","assets/ActionsCellRenderer-vbtUwD1d.css","assets/blockout-CiNlTHsg.js","assets/blockout-C96T9Opy.css","assets/WorkspaceProvider-Buih77zc.js","assets/useRaidEntriesGridColumns-D3EtjEiw.js","assets/codewordRaidRows-D6g4CZ8u.js","assets/useNarrowWidth-DBHs2EyU.js","assets/useLiveMeetingStream-CPwQ-2rY.js","assets/audio-lines-aHViC7QJ.js","assets/SendSummaryPage-DJLiuTxT.js","assets/MeetingPrepPage--YvGmyL5.js","assets/square-check-big-Bvd4HSZP.js","assets/DailyBriefPage-bbLu7T7O.js","assets/inbox-Da4IQ7SF.js","assets/constructNow-CM78uACY.js","assets/LunikoButtonPage-C9d9_tEt.js","assets/UsersPage-DNFdl9hH.js","assets/WorkspaceActivityFeed-Cz0MZDxA.js","assets/OpLogHistorySheet-DJBF9NVT.js","assets/formatDistanceToNow-D0Zgr2Do.js","assets/subDays-CHJTwHGx.js","assets/HelpPage-CrajCtck.js","assets/HelpShell-CrJHi3Qj.js","assets/HelpWhatsNewPage-DozmKn4b.js","assets/HelpCornerPage-BClYU5TS.js","assets/printer-COMDt79I.js","assets/HelpCornerPage-B_-Le455.css","assets/AdminConsolePage-DZ7SniiV.js","assets/toggle-right-W2xLNb6P.js","assets/NotesPage-w-OPzmy-.js","assets/ScratchPadEmptyState-BzzULDAW.js","assets/ScratchPadLayout-Bh9jqMxx.js","assets/snapshotMindElixir-DOX7_Cq6.js","assets/useScratchpadWorkspace-BZGA2uzK.js","assets/MindMapPage-DR_Nv4OW.js","assets/MindMapWorkspace-xfobYYyd.js","assets/vendor-mindmap-4hPG7TlL.js","assets/vendor-mindmap-DfO5jAu0.css","assets/workspaceStorageKeys-Dwf4_htG.js","assets/MindMapWorkspace-DpX_lBSI.css","assets/useMindMapsWorkspace-aO2ua-UM.js","assets/UserProfilePage-CbIldG38.js","assets/CommandCenterPage-
1DpbtRWaZ.js","assets/WorkspaceRightPanel-D3-fra4r.js","assets/useWorkspaceCommands-jks599jc.js","assets/RaidMomentPlayerWindow-sDHoC2NC.js","assets/RaidEntriesBulkActionsBar-BSxoUFrU.js","assets/GlobalSearchPage-Bib6uk2m.js","assets/SchedulesPage-BW5w81Ii.js","assets/SchedulePage-4ocvpHBJ.js","assets/useSmartsheetSync-3vx9nqf4.js","assets/SmartsheetSyncIndicator-DbVi6Qx4.js","assets/InlineSingleContactCellV2-DwEQm2mh.js","assets/flag-yRgtkkmE.js","assets/SchedulePage-DzZwVLFw.css","assets/DashboardPage-fhLCiDDA.js","assets/useActionLogsWorkspace-DYFcFmPR.js","assets/useAddRowAndFocus-DZX-yAgy.js","assets/useLunaWorkspace-BOss2cmt.js","assets/useRaidLogsWorkspace-CVQ0xcoL.js","assets/DashboardPage-CvD1BbCm.css","assets/ActionLogsPage-DEcK7-G9.js","assets/DestinationSwitcher-tjf1JTRu.js","assets/RaidLogsPage-CZ_pZVbX.js","assets/RaidAnalyticsPage-Baxf8quZ.js","assets/ReviewMeetingsPage-DwkBC-Cq.js","assets/ShopfloorDashboardPage-veJXmCcR.js","assets/FdeFrameworkPage-Bt18Bcg5.js","assets/PrivacyPolicyPage-Diyc5InL.js","assets/AgentPage-D3heN58b.js","assets/SharedEntityPage-LKbgo_c2.js"])))=>i.map(i=>d[i]);
2import{r as g,R as se,j as u,h as Uk,u as nr,k as q3,e as $N,l as Ae,m as ge,n as pe,o as js,p as Ad,q as $s,s as Ls,L as ji,d as Fk,t as V3,v as K3,x as G3,y as Y3,z as Z3,A as J3,B as Q3,C as X3,D as eB,E as tB,a as LN,O as zN,Q as nB,F as rB,P as oB,G as iB,H as Ke,I as ct,J as aB,K as _c,M as sB,N as lB}from"./vendor-react-C7ASs9Oj.js";import{c as UN}from"./vendor-charts-BBg_9aJv.js";import{u as cB,m as uB}from"./vendor-motion-D0i_FyGX.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const dB="modulepreload",hB=function(e){return"/"+e},e1={},tt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");o=l(n.map(c=>{if(c=hB(c),c in e1)return;e1[c]=!0;const h=c.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":dB,h||(p.as="script"),p.crossOrigin="",p.href=c,s&&p.setAttribute("nonce",s),document.head.appendChild(p),h)return new Promise((f,b)=>{p.addEventListener("load",f),p.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},FN=Object.freeze({status:"aborted"});function B(e,t,n){function r(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);const c=a.prototype,h=Object.keys(c);for(let d=0;d<h.length;d++){const p=h[d];p in s||(s[p]=c[p].bind(s))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var l;const c=n?.Parent?new i:this;r(c,s),(l=c._zod).deferred??(l.deferred=[]);for(const h of c._zod.deferred)h();return c}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const WN=Symbol("zod_brand");
vendor: 2,072 bytes, line 2
2class bs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ff extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const sp={};function er(e){return e&&Object.assign(sp,e),sp}function mB(e){return e}function pB(e){return e}function fB(e){}function gB(e){throw new Error("Unexpected value in exhaustive check")}function yB(e){}function Wk(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function de(e,t="|"){return e.map(n=>ze(n)).join(t)}function lp(e,t){return typeof t=="bigint"?t.toString():t}function Cd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function zs(e){return e==null}function gf(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function BN(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l?.[1]&&(o=Number.parseInt(l[1]))}const i=n>o?n:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}const t1=Symbol("evaluating");function nt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==t1)return r===void 0&&(r=t1,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function bB(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ra(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function yi(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function wB(e){return yi(e._zod.def)}function vB(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function kB(e){const t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{const o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o}
2)}function xB(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function jw(e){return JSON.stringify(e)}function HN(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Bk="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ql(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const qN=Cd(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xs(e){if(Ql(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ql(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function yf(e){return xs(e)?{...e}:Array.isArray(e)?[...e]:e}function _B(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const SB=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},cp=new Set(["string","number","symbol"]),VN=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function re(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function TB(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function ze(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function KN(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const GN={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},YN={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ZN(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=yi(e._zod.def,{get shape(){const a={};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s])}return Ra(this,"shape",a),a},checks:[]});return xo(e,i)}function JN(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=yi(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Ra(this,"shape",a),a},checks:[]});return xo(e,i)}function QN(e,t){if(!xs(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot over
2write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=yi(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Ra(this,"shape",i),i}});return xo(e,o)}function XN(e,t){if(!xs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=yi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Ra(this,"shape",r),r}});return xo(e,n)}function eP(e,t){const n=yi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Ra(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return xo(e,n)}function tP(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=yi(t._zod.def,{get shape(){const s=t._zod.def.shape,l={...s};if(n)for(const c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(const c in s)l[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return Ra(this,"shape",l),l},checks:[]});return xo(t,a)}function nP(e,t,n){const r=yi(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Ra(this,"shape",i),i}});return xo(t,r)}function ms(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Uo(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Su(e){return typeof e=="string"?e:e?.message}function po(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Su(e.inst?._zod.def?.error?.(e))??Su(t?.error?.(e))??Su(n.customError?.(e))??Su(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function bf(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function wf(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Fe(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Xl(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function IB(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function rP(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function oP(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function EB(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return rP(t+n)}function AB(e){return oP(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function CB(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function NB(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class PB{constructor(...t){}}const iP=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:YN,Class:PB,NUMBER_FORMAT_RANGES:GN,aborted:ms,allowsEval:qN,assert:yB,assertEqual:mB,assertIs:fB,assertNever:gB,assertNotEqual:pB,assignProp:Ra,base64ToUint8Array:rP,base64urlToUint8Array:EB,cached:Cd,captureStackTrace:Bk,cleanEnum:IB,cleanRegex:gf,clone:xo,cloneDef:wB,createTransparentProxy:TB,defineLazy:nt,esc:jw,escapeRegex:Ri,extend:QN,finalizeIssue:po,floatSafeRemainder:BN,getElementAtPath:vB,getEnumValues:Wk,getLengthableOrigin:wf,getParsedType:SB,getSizableOrigin:bf,hexToUint8Array:CB,isObject:Ql,isPlainObject:xs,issue:Xl,joinValues:de,jsonStringifyReplacer:lp,merge:eP,mergeDefs:yi,normalizeParams:re,nullish:zs,numKeys:_B,objectClone:bB,omit:JN,optionalKeys:KN,parsedType:Fe,partial:tP,pick:ZN,prefixIssues:Uo,primitiveTypes:VN,promiseAllOb
vendor: 13,735 bytes, lines 2-3
2ject:kB,propertyKeyTypes:cp,randomString:xB,required:nP,safeExtend:XN,shallowClone:yf,slugify:HN,stringifyPrimitive:ze,uint8ArrayToBase64:oP,uint8ArrayToBase64url:AB,uint8ArrayToHex:NB,unwrapMessage:Su},Symbol.toStringTag,{value:"Module"})),aP=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,lp,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Hk=B("$ZodError",aP),Gr=B("$ZodError",aP,{Parent:Error});function qk(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Vk(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>r({issues:a}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let a=n,s=0;for(;s<i.path.length;){const l=i.path[s];s===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return r(e),n}function sP(e,t=n=>n.message){const n={errors:[]},r=(o,i=[])=>{var a,s;for(const l of o.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>r({issues:c},l.path));else if(l.code==="invalid_key")r({issues:l.issues},l.path);else if(l.code==="invalid_element")r({issues:l.issues},l.path);else{const c=[...i,...l.path];if(c.length===0){n.errors.push(t(l));continue}let h=n,d=0;for(;d<c.length;){const p=c[d],f=d===c.length-1;typeof p=="string"?(h.properties??(h.properties={}),(a=h.properties)[p]??(a[p]={errors:[]}),h=h.properties[p]):(h.items??(h.items=[]),(s=h.items)[p]??(s[p]={errors:[]}),h=h.items[p]),f&&h.errors.push(t(l)),d++}}};return r(e),n}function lP(e){const t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(const r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function cP(e){const t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(const r of n)t.push(`✖ ${r.message}`),r.path?.length&&t.push(`  → at ${lP(r.path)}`);return t.join(`
3`)}const Nd=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new bs;if(a.issues.length){const s=new(o?.Err??e)(a.issues.map(l=>po(l,i,er())));throw Bk(s,o?.callee),s}return a.value},$w=Nd(Gr),Pd=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(o?.Err??e)(a.issues.map(l=>po(l,i,er())));throw Bk(s,o?.callee),s}return a.value},Lw=Pd(Gr),Dd=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new bs;return i.issues.length?{success:!1,error:new(e??Hk)(i.issues.map(a=>po(a,o,er())))}:{success:!0,data:i.value}},uP=Dd(Gr),Od=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>po(a,o,er())))}:{success:!0,data:i.value}},dP=Od(Gr),Kk=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Nd(e)(t,n,o)},DB=Kk(Gr),Gk=e=>(t,n,r)=>Nd(e)(t,n,r),OB=Gk(Gr),Yk=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Pd(e)(t,n,o)},RB=Yk(Gr),Zk=e=>async(t,n,r)=>Pd(e)(t,n,r),MB=Zk(Gr),Jk=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dd(e)(t,n,o)},jB=Jk(Gr),Qk=e=>(t,n,r)=>Dd(e)(t,n,r),$B=Qk(Gr),Xk=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Od(e)(t,n,o)},LB=Xk(Gr),ex=e=>async(t,n,r)=>Od(e)(t,n,r),zB=ex(Gr),hP=/^[cC][^\s-]{8,}$/,mP=/^[0-9a-z]+$/,pP=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fP=/^[0-9a-vA-V]{20}$/,gP=/^[A-Za-z0-9]{27}$/,yP=/^[a-zA-Z0-9_-]{21}$/,bP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,UB=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,wP=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ec=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,FB=ec(4),WB=ec(6),BB=ec(7),vP=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,HB=/^[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])?)*$/,qB=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,kP=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,VB=kP,KB=/^[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])?)*$/,GB="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xP(){return new RegExp(GB,"u")}const _P=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,SP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,TP=e=>{const t=Ri(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},IP=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,EP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,AP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tx=/^[A-Za-z0-9_-]*$/,CP=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,NP=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,PP=/^\+[1-9]\d{6,14}$/,DP="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",OP=new RegExp(`^${DP}$`);function RP(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function MP(e){return new RegExp(`^${RP(e)}$`)}function jP(e){const t=RP({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${DP}T(?:${r})$`)}const $P=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},LP=/^-?\d+n?$/,zP=/^-?\d+$/,nx=/^-?\d+(?:\.\d+)?$/,UP=/^(?:true|false)$/i,FP=/^null$/i,WP=/^undefined$/i,BP=/^[^A-Z]*$/,HP=/^[^a-z]*$/,qP=/^[0-9a-fA-F]*$/;function Rd(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Md(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const YB=/^[0-9a-fA-F]{32}$/,ZB=Rd(22,"=="),JB=Md(22),QB=/^[0-9a-fA-F]{40}$/,XB=Rd(27,"="),eH=Md(27),tH=/^[0-9a-fA-F]{64}$/,nH=Rd(43,"="),rH=Md(43),oH=/^[0-9a-fA-F]{96}$/,iH=Rd(64,""),aH=Md(64),sH=/^[0-9a-fA-F]{128}$/,lH=Rd(86,"=="),cH=Md(86),rx=Object.freeze(Object.defineProperty({__proto__:null,base64:AP,base64url:tx,bigint:LP,boolean:UP,browserEmail:KB,cidrv4:IP,cidrv6:EP,cuid:hP,cuid2:mP,date:OP,datetime:jP,domain:NP,duration:bP,e164:PP,email:vP,emoji:xP,extendedDuration:UB,guid:wP,hex:qP,hostname:CP,html5Email:HB,idnEmail:VB,integer:zP,ipv4:_P,ipv6:SP,ksuid:gP,lowercase:BP,mac:TP,md5_base64:ZB,md5_base64url:JB,md5_hex:YB,nanoid:yP,null:FP,number:nx,rfc5322Email:qB,sha1_base64:XB,sha1_base64url:eH,sha1_hex:QB,sha256_base64:nH,sha256_base64url:rH,sha256_hex:tH,sha384_base64:iH,sha384_base64url:aH,sha384_hex:oH,sha512_base64:lH,sha512_base64url:cH,sha512_hex:sH,string:$P,time:MP,ulid:pP,undefined:WP,unicodeEmail:kP,uppercase:HP,uuid:ec,uuid4:FB,uuid6:WB,uuid7:BB,xid:fP},Symbol.toStringTag,{value:"Module"})),Gt=B("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),VP={number:"number",bigint:"bigint",object:"date"},ox=B("$ZodCheckLessThan",(e,t)=>{Gt.init(e,t);const n=VP[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ix=B("$ZodCheckGreaterThan",(e,t)=>{Gt.init(e,t);const n=VP[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),KP=B("$ZodCheckMultipleOf",(e,t)=>{Gt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):BN(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),GP=B("$ZodCheckNumberFormat",(e,t)=>{Gt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,i]=GN[t.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=t.format,s.minimum=o,s.maximum=i,n&&(s.pattern=zP)}),e._zod.check=a=>{const s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<o&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),YP=B("$ZodCheckBigIntFormat",(e,t)=>{Gt.init(e,t);const[n,r]=YN[t.format];e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=o=>{const i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),ZP=B("$ZodCheckMaxSize",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!zs(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:bf(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),JP=B("$ZodCheckMinSize",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!zs(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:bf(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),QP=B("$ZodCheckSizeEquals",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!zs(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.size,o.maximum=t.size,o.size=t.size}),e._zod.check=r=>{const o=r.value,i=o.size;if(i===t.size)return;const a=i>t.size;r.issues.push({origin:bf(o),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),XP=B("$ZodCheckMaxLength",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!zs(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;
vendor: 6,196 bytes, lines 3-5
3const a=wf(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),eD=B("$ZodCheckMinLength",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!zs(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const a=wf(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),tD=B("$ZodCheckLengthEquals",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!zs(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const a=wf(o),s=i>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),jd=B("$ZodCheckStringFormat",(e,t)=>{var n,r;Gt.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),nD=B("$ZodCheckRegex",(e,t)=>{jd.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rD=B("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=BP),jd.init(e,t)}),oD=B("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=HP),jd.init(e,t)}),iD=B("$ZodCheckIncludes",(e,t)=>{Gt.init(e,t);const n=Ri(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),aD=B("$ZodCheckStartsWith",(e,t)=>{Gt.init(e,t);const n=new RegExp(`^${Ri(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),sD=B("$ZodCheckEndsWith",(e,t)=>{Gt.init(e,t);const n=new RegExp(`.*${Ri(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function n1(e,t,n){e.issues.length&&t.issues.push(...Uo(n,e.issues))}const lD=B("$ZodCheckProperty",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{const r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>n1(o,n,t.property));n1(r,n,t.property)}}),cD=B("$ZodCheckMimeType",(e,t)=>{Gt.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),uD=B("$ZodCheckOverwrite",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class dD{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
4`).filter(a=>a),o=Math.min(...r.map(a=>a.length-a.trimStart().length)),i=r.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(i=>`  ${i}`)];return new t(...n,o.join(`
5`))}}const hD={major:4,minor:3,patch:6},Ge=B("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hD;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,l)=>{let c=ms(a),h;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;const p=a.issues.length,f=d._zod.check(a);if(f instanceof Promise&&l?.async===!1)throw new bs;if(h||f instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(c||(c=ms(a,p)))});else{if(a.issues.length===p)continue;c||(c=ms(a,p))}}return h?h.then(()=>a):a},i=(a,s,l)=>{if(ms(a))return a.aborted=!0,a;const c=o(s,r,l);if(c instanceof Promise){if(l.async===!1)throw new bs;return c.then(h=>e._zod.parse(h,l))}return e._zod.parse(c,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,a,s)):i(c,a,s)}const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new bs;return l.then(c=>o(c,r,s))}return o(l,r,s)}}nt(e,"~standard",()=>({validate:o=>{try{const i=uP(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return dP(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),$d=B("$ZodString",(e,t)=>{Ge.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??$P(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Rt=B("$ZodStringFormat",(e,t)=>{jd.init(e,t),$d.init(e,t)}
vendor: 6,462 bytes, line 5
5),mD=B("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=wP),Rt.init(e,t)}),pD=B("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ec(r))}else t.pattern??(t.pattern=ec());Rt.init(e,t)}),fD=B("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vP),Rt.init(e,t)}),gD=B("$ZodURL",(e,t)=>{Rt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),yD=B("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xP()),Rt.init(e,t)}),bD=B("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=yP),Rt.init(e,t)}),wD=B("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hP),Rt.init(e,t)}),vD=B("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mP),Rt.init(e,t)}),kD=B("$ZodULID",(e,t)=>{t.pattern??(t.pattern=pP),Rt.init(e,t)}),xD=B("$ZodXID",(e,t)=>{t.pattern??(t.pattern=fP),Rt.init(e,t)}),_D=B("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gP),Rt.init(e,t)}),SD=B("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=jP(t)),Rt.init(e,t)}),TD=B("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=OP),Rt.init(e,t)}),ID=B("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=MP(t)),Rt.init(e,t)}),ED=B("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=bP),Rt.init(e,t)}),AD=B("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_P),Rt.init(e,t),e._zod.bag.format="ipv4"}),CD=B("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=SP),Rt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ND=B("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=TP(t.delimiter)),Rt.init(e,t),e._zod.bag.format="mac"}),PD=B("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=IP),Rt.init(e,t)}),DD=B("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=EP),Rt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ax(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const OD=B("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=AP),Rt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ax(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function RD(e){if(!tx.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ax(n)}const MD=B("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tx),Rt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{RD(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),jD=B("$ZodE164",(e,t)=>{t.pattern??(t.pattern=PP),Rt.init(e,t)});function $D(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const LD=B("$ZodJWT",(e,t)=>{Rt.init(e,t),e._zod.check=n=>{$D(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),zD=B("$ZodCustomStringFormat",(e,t)=>{Rt.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),sx=B("$ZodNumber",(e,t)=>{Ge.init(e,t),e._zod.pattern=e._zod.bag.pattern??nx,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),UD=B("$ZodNumberFormat",(e,t)=>{GP.init(e,t),sx.init(e,t)}),lx=B("$ZodBoolean",(e,t)=>{Ge.init(e,t),e._zod.pattern=UP,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),cx=B("$ZodBigInt",(e,t)=>{Ge.init(e,t),e._zod.pattern=LP,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),FD=B("$ZodBigIntFormat",(e,t)=>{YP.init(e,t),cx.init(e,t)}),WD=B("$ZodSymbol",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),BD=B("$ZodUndefined",(e,t)=>{Ge.init(e,t),e._zod.pattern=WP,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),HD=B("$ZodNull",(e,t)=>{Ge.init(e,t),e._zod.pattern=FP,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),qD=B("$ZodAny",(e,t)=>{Ge.init(e,t),e._zod.parse=n=>n}),VD=B("$ZodUnknown",(e,t)=>{Ge.init(e,t),e._zod.parse=n=>n}),KD=B("$ZodNever",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),GD=B("$ZodVoid",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),YD=B("$ZodDate",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});
vendor: 4,816 bytes, lines 5-39
5function r1(e,t,n){e.issues.length&&t.issues.push(...Uo(n,e.issues)),t.value[n]=e.value}const ZD=B("$ZodArray",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const s=o[a],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?i.push(l.then(c=>r1(c,n,a))):r1(l,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function up(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...Uo(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function JD(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=KN(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function QD(e,t,n,r,o,i){const a=[],s=o.keySet,l=o.catchall._zod,c=l.def.type,h=l.optout==="optional";for(const d in t){if(s.has(d))continue;if(c==="never"){a.push(d);continue}const p=l.run({value:t[d],issues:[]},r);p instanceof Promise?e.push(p.then(f=>up(f,n,d,t,h))):up(p,n,d,t,h)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const XD=B("$ZodObject",(e,t)=>{if(Ge.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=Cd(()=>JD(t));nt(e._zod,"propValues",()=>{const s=t.shape,l={};for(const c in s){const h=s[c]._zod;if(h.values){l[c]??(l[c]=new Set);for(const d of h.values)l[c].add(d)}}return l});const o=Ql,i=t.catchall;let a;e._zod.parse=(s,l)=>{a??(a=r.value);const c=s.value;if(!o(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};const h=[],d=a.shape;for(const p of a.keys){const f=d[p],b=f._zod.optout==="optional",y=f._zod.run({value:c[p],issues:[]},l);y instanceof Promise?h.push(y.then(w=>up(w,s,p,c,b))):up(y,s,p,c,b)}return i?QD(h,c,s,l,r.value,e):h.length?Promise.all(h).then(()=>s):s}}),eO=B("$ZodObjectJIT",(e,t)=>{XD.init(e,t);const n=e._zod.parse,r=Cd(()=>JD(t)),o=p=>{const f=new dD(["shape","payload","ctx"]),b=r.value,y=S=>{const I=jw(S);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};f.write("const input = payload.value;");const w=Object.create(null);let k=0;for(const S of b.keys)w[S]=`key_${k++}`;f.write("const newResult = {};");for(const S of b.keys){const I=w[S],E=jw(S),$=p[S]?._zod?.optout==="optional";f.write(`const ${I} = ${y(S)};`),$?f.write(`
6        if (${I}.issues.length) {
7          if (${E} in input) {
8            payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
9              ...iss,
10              path: iss.path ? [${E}, ...iss.path] : [${E}]
11            })));
12          }
13        }
14        
15        if (${I}.value === undefined) {
16          if (${E} in input) {
17            newResult[${E}] = undefined;
18          }
19        } else {
20          newResult[${E}] = ${I}.value;
21        }
22        
23      `):f.write(`
24        if (${I}.issues.length) {
25          payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
26            ...iss,
27            path: iss.path ? [${E}, ...iss.path] : [${E}]
28          })));
29        }
30        
31        if (${I}.value === undefined) {
32          if (${E} in input) {
33            newResult[${E}] = undefined;
34          }
35        } else {
36          newResult[${E}] = ${I}.value;
37        }
38        
39      `)}f.write("payload.value = newResult;"),f.write("return payload;");const x=f.compile();return(S,I)=>x(p,S,I)};let i;const a=Ql,s=!sp.jitless,c=s&&qN.value,h=t.catchall;let d;e._zod.parse=(p,f)=>{d??(d=r.value);const b=p.value;return a(b)?s&&c&&f?.async===!1&&f.jitless!==!0?(i||(i=o(t.shape)),p=i(p,f),h?QD([],b,p,f,d,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),p)}});function o1(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ms(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>po(a,r,er())))}),t)}const vf=B("$ZodUnion",(e,t)=>{Ge.init(e,t),nt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),nt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),nt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),nt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>gf(i.source)).join("|")})$`)}});
vendor: 17,054 bytes, line 39
39const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let a=!1;const s=[];for(const l of t.options){const c=l._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(l=>o1(l,o,e,i)):o1(s,o,e,i)}});function i1(e,t,n,r){const o=e.filter(i=>i.issues.length===0);return o.length===1?(t.value=o[0].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>po(a,r,er())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}const tO=B("$ZodXor",(e,t)=>{vf.init(e,t),t.inclusive=!1;const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let a=!1;const s=[];for(const l of t.options){const c=l._zod.run({value:o.value,issues:[]},i);c instanceof Promise?(s.push(c),a=!0):s.push(c)}return a?Promise.all(s).then(l=>i1(l,o,e,i)):i1(s,o,e,i)}}),nO=B("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,vf.init(e,t);const n=e._zod.parse;nt(e._zod,"propValues",()=>{const o={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[s,l]of Object.entries(a)){o[s]||(o[s]=new Set);for(const c of l)o[s].add(c)}}return o});const r=Cd(()=>{const o=t.options,i=new Map;for(const a of o){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(o,i)=>{const a=o.value;if(!Ql(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;const s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(o,i):t.unionFallback?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),o)}}),rO=B("$ZodIntersection",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),a=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,c])=>a1(n,l,c)):a1(n,i,a)}});function zw(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xs(e)&&xs(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const a=zw(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],a=zw(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function a1(e,t,n){const r=new Map;let o;for(const s of t.issues)if(s.code==="unrecognized_keys"){o??(o=s);for(const l of s.keys)r.has(l)||r.set(l,{}),r.get(l).l=!0}else e.issues.push(s);for(const s of n.issues)if(s.code==="unrecognized_keys")for(const l of s.keys)r.has(l)||r.set(l,{}),r.get(l).r=!0;else e.issues.push(s);const i=[...r].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&o&&e.issues.push({...o,keys:i}),ms(e))return e;const a=zw(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const ux=B("$ZodTuple",(e,t)=>{Ge.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const a=[],s=[...n].reverse().findIndex(h=>h._zod.optin!=="optional"),l=s===-1?0:n.length-s;if(!t.rest){const h=i.length>n.length,d=i.length<l-1;if(h||d)return r.issues.push({...h?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),r}let c=-1;for(const h of n){if(c++,c>=i.length&&c>=l)continue;const d=h._zod.run({value:i[c],issues:[]},o);d instanceof Promise?a.push(d.then(p=>Qh(p,r,c))):Qh(d,r,c)}if(t.rest){const h=i.slice(n.length);for(const d of h){c++;const p=t.rest._zod.run({value:d,issues:[]},o);p instanceof Promise?a.push(p.then(f=>Qh(f,r,c))):Qh(p,r,c)}}return a.length?Promise.all(a).then(()=>r):r}});function Qh(e,t,n){e.issues.length&&t.issues.push(...Uo(n,e.issues)),t.value[n]=e.value}const oO=B("$ZodRecord",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!xs(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const s=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);const h=t.valueType._zod.run({value:o[c],issues:[]},r);h instanceof Promise?i.push(h.then(d=>{d.issues.length&&n.issues.push(...Uo(c,d.issues)),n.value[c]=d.value})):(h.issues.length&&n.issues.push(...Uo(c,h.issues)),n.value[c]=h.value)}let l;for(const c in o)s.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{n.value={};for(const s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&nx.test(s)&&l.issues.length){const d=t.keyType._zod.run({value:Number(s),issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?n.value[s]=o[s]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>po(d,r,er())),input:s,path:[s],inst:e});continue}const h=t.valueType._zod.run({value:o[s],issues:[]},r);h instanceof Promise?i.push(h.then(d=>{d.issues.length&&n.issues.push(...Uo(s,d.issues)),n.value[l.value]=d.value})):(h.issues.length&&n.issues.push(...Uo(s,h.issues)),n.value[l.value]=h.value)}}return i.length?Promise.all(i).then(()=>n):n}}),iO=B("$ZodMap",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!(o instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),n;const i=[];n.value=new Map;for(const[a,s]of o){const l=t.keyType._zod.run({value:a,issues:[]},r),c=t.valueType._zod.run({value:s,issues:[]},r);l instanceof Promise||c instanceof Promise?i.push(Promise.all([l,c]).then(([h,d])=>{s1(h,d,n,a,o,e,r)})):s1(l,c,n,a,o,e,r)}return i.length?Promise.all(i).then(()=>n):n}});function s1(e,t,n,r,o,i,a){e.issues.length&&(cp.has(typeof r)?n.issues.push(...Uo(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(s=>po(s,a,er()))})),t.issues.length&&(cp.has(typeof r)?n.issues.push(...Uo(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(s=>po(s,a,er()))})),n.value.set(e.value,t.value)}const aO=B("$ZodSet",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!(o instanceof Set))return n.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),n;const i=[];n.value=new Set;for(const a of o){const s=t.valueType._zod.run({value:a,issues:[]},r);s instanceof Promise?i.push(s.then(l=>l1(l,n))):l1(s,n)}return i.length?Promise.all(i).then(()=>n):n}});function l1(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const sO=B("$ZodEnum",(e,t)=>{Ge.init(e,t);const n=Wk(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>cp.has(typeof o)).map(o=>typeof o=="string"?Ri(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:n,input:a,inst:e}),o}}),lO=B("$ZodLiteral",(e,t)=>{if(Ge.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Ri(r):r?Ri(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),cO=B("$ZodFile",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),uO=B("$ZodTransform",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ff(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(n.value=a,n));if(o instanceof Promise)throw new bs;return n.value=o,n}});function c1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const dx=B("$ZodOptional",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",nt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),nt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gf(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>c1(i,n.value)):c1(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),dO=B("$ZodExactOptional",(e,t)=>{dx.init(e,t),nt(e._zod,"values",()=>t.innerType._zod.values),nt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),hO=B("$ZodNullable",(e,t)=>{Ge.init(e,t),nt(e._zod,"optin",()=>t.innerType._zod.optin),nt(e._zod,"optout",()=>t.innerType._zod.optout),nt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gf(n.source)}|null)$`):void 0}),nt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),mO=B("$ZodDefault",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",nt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>u1(i,t)):u1(o,t)}});function u1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const pO=B("$ZodPrefault",(e,t)=>{Ge.init(e,t),e._zod.optin="optional",nt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),fO=B("$ZodNonOptional",(e,t)=>{Ge.init(e,t),nt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>d1(i,e)):d1(o,e)}});function d1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const gO=B("$ZodSuccess",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ff("ZodSuccess");const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}}),yO=B("$ZodCatch",(e,t)=>{Ge.init(e,t),nt(e._zod,"optin",()=>t.innerType._zod.optin),nt(e._zod,"optout",()=>t.innerType._zod.optout),nt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>po(a,r,er()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>po(i,r,er()))},input:n.value}),n.issues=[]),n)}}),bO=B("$ZodNaN",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),wO=B("$ZodPipe",(e,t)=>{Ge.init(e,t),nt(e._zod,"values",()=>t.in._zod.values),nt(e._zod,"optin",()=>t.in._zod.optin),nt(e._zod,"optout",()=>t.out._zod.optout),nt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(a=>Xh(a,t.in,r)):Xh(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>Xh(i,t.out,r)):Xh(o,t.out,r)}});function Xh(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const hx=B("$ZodCodec",(e,t)=>{Ge.init(e,t),nt(e._zod,"values",()=>t.in._zod.values),nt(e._zod,"optin",()=>t.in._zod.optin),nt(e._zod,"optout",()=>t.out._zod.optout),nt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>em(a,t,r)):em(i,t,r)}else{const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(a=>em(a,t,r)):em(i,t,r)}}});function em(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){const o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>tm(e,i,t.out,n)):tm(e,o,t.out,n)}else{const o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>tm(e,i,t.in,n)):tm(e,o,t.in,n)}}function tm(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}const vO=B("$ZodReadonly",(e,t)=>{Ge.init(e,t),nt(e._zod,"propValues",()=>t.innerType._zod.propValues),nt(e._zod,"values",()=>t.innerType._zod.values),nt(e._zod,"optin",()=>t.innerType?._zod?.optin),nt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(h1):h1(o)}});function h1(e){return e.value=Object.freeze(e.value),e}const kO=B("$ZodTemplateLiteral",(e,t)=>{Ge.init(e,t);const n=[];for(const r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const o=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!o)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const i=o.startsWith("^")?1:0,a=o.endsWith("$")?o.length-1:o.length;n.push(o.slice(i,a))}else if(r===null||VN.has(typeof r))n.push(Ri(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),xO=B("$ZodFunction",(e,t)=>(Ge.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){const o=e._def.input?$w(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?$w(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){const o=e._def.input?await Lw(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await Lw(e._def.output,i):i}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new ux({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),_O=B("$ZodPromise",(e,t)=>{Ge.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),SO=B("$ZodLazy",(e,t)=>{Ge.init(e,t),nt(e._zod,"innerType",()=>t.getter()),nt(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),nt(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),nt(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),nt(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),TO=B("$ZodCustom",(e,t)=>{Gt.init(e,t),Ge.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>m1(i,n,r,e));m1(o,n,r,e)}});function m1(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Xl(o
vendor: 37,484 bytes, line 39
39))}}const uH=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(o){return e[o]??null}const n={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${o.expected}، ولكن تم إدخال ${s}`:`مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${s}`}case"invalid_value":return o.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ze(o.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?` أكبر من اللازم: يفترض أن تكون ${o.origin??"القيمة"} ${i} ${o.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${o.origin??"القيمة"} ${i} ${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`أصغر من اللازم: يفترض لـ ${o.origin} أن يكون ${i} ${o.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${o.origin} أن يكون ${i} ${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${o.prefix}"`:i.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`:i.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`:i.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`:`${n[i.format]??o.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${o.divisor}`;case"unrecognized_keys":return`معرف${o.keys.length>1?"ات":""} غريب${o.keys.length>1?"ة":""}: ${de(o.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${o.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${o.origin}`;default:return"مدخل غير مقبول"}}};function dH(){return{localeError:uH()}}const hH=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Yanlış dəyər: gözlənilən instanceof ${o.expected}, daxil olan ${s}`:`Yanlış dəyər: gözlənilən ${i}, daxil olan ${s}`}case"invalid_value":return o.values.length===1?`Yanlış dəyər: gözlənilən ${ze(o.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Çox böyük: gözlənilən ${o.origin??"dəyər"} ${i}${o.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${o.origin??"dəyər"} ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Çox kiçik: gözlənilən ${o.origin} ${i}${o.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`:i.format==="ends_with"?`Yanlış mətn: "${i.suffix}" ilə bitməlidir`:i.format==="includes"?`Yanlış mətn: "${i.includes}" daxil olmalıdır`:i.format==="regex"?`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[i.format]??o.format}`}case"not_multiple_of":return`Yanlış ədəd: ${o.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${o.keys.length>1?"lar":""}: ${de(o.keys,", ")}`;case"invalid_key":return`${o.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${o.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function mH(){return{localeError:hH()}}function p1(e,t,n,r){const o=Math.abs(e),i=o%10,a=o%100;return a>=11&&a<=19?r:i===1?t:i>=2&&i<=4?n:r}const pH=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(o){return e[o]??null}const n={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},r={nan:"NaN",number:"лік",array:"масіў"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Няправільны ўвод: чакаўся instanceof ${o.expected}, атрымана ${s}`:`Няправільны ўвод: чакаўся ${i}, атрымана ${s}`}case"invalid_value":return o.values.length===1?`Няправільны ўвод: чакалася ${ze(o.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);if(a){const s=Number(o.maximum),l=p1(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${o.origin??"значэнне"} павінна ${a.verb} ${i}${o.maximum.toString()} ${l}`}return`Занадта вялікі: чакалася, што ${o.origin??"значэнне"} павінна быць ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);if(a){const s=Number(o.minimum),l=p1(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${o.origin} павінна ${a.verb} ${i}${o.minimum.toString()} ${l}`}return`Занадта малы: чакалася, што ${o.origin} павінна быць ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${i.prefix}"`:i.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${i.suffix}"`:i.format==="includes"?`Няправільны радок: павінен змяшчаць "${i.includes}"`:i.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`:`Няправільны ${n[i.format]??o.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${o.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${o.keys.length>1?"ключы":"ключ"}: ${de(o.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${o.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${o.origin}`;default:return"Няправільны ўвод"}}};function fH(){return{localeError:pH()}}const gH=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(o){return e[o]??null}const n={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},r={nan:"NaN",number:"число",array:"масив"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Невалиден вход: очакван instanceof ${o.expected}, получен ${s}`:`Невалиден вход: очакван ${i}, получен ${s}`}case"invalid_value":return o.values.length===1?`Невалиден вход: очакван ${ze(o.values[0])}`:`Невалидна опция: очаквано едно от ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Твърде голямо: очаква се ${o.origin??"стойност"} да съдържа ${i}${o.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${o.origin??"стойност"} да бъде ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Твърде малко: очаква се ${o.origin} да съдържа ${i}${o.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${o.origin} да бъде ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;if(i.format==="starts_with")return`Невалиден низ: трябва да започва с "${i.prefix}"`;if(i.format==="ends_with")return`Невалиден низ: трябва да завършва с "${i.suffix}"`;if(i.format==="includes")return`Невалиден низ: трябва да включва "${i.includes}"`;if(i.format==="regex")return`Невалиден низ: трябва да съвпада с ${i.pattern}`;let a="Невалиден";return i.format==="emoji"&&(a="Невалидно"),i.format==="datetime"&&(a="Невалидно"),i.format==="date"&&(a="Невалидна"),i.format==="time"&&(a="Невалидно"),i.format==="duration"&&(a="Невалидна"),`${a} ${n[i.format]??o.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${o.divisor}`;case"unrecognized_keys":return`Неразпознат${o.keys.length>1?"и":""} ключ${o.keys.length>1?"ове":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${o.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${o.origin}`;default:return"Невалиден вход"}}};function yH(){return{localeError:gH()}}const bH=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(o){return e[o]??null}const n={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Tipus invàlid: s'esperava instanceof ${o.expected}, s'ha rebut ${s}`:`Tipus invàlid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return o.values.length===1?`Valor invàlid: s'esperava ${ze(o.values[0])}`:`Opció invàlida: s'esperava una de ${de(o.values," o ")}`;case"too_big":{const i=o.inclusive?"com a màxim":"menys de",a=t(o.origin);return a?`Massa gran: s'esperava que ${o.origin??"el valor"} contingués ${i} ${o.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${o.origin??"el valor"} fos ${i} ${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?"com a mínim":"més de",a=t(o.origin);return a?`Massa petit: s'esperava que ${o.origin} contingués ${i} ${o.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${o.origin} fos ${i} ${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Format invàlid: ha de començar amb "${i.prefix}"`:i.format==="ends_with"?`Format invàlid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format invàlid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${i.pattern}`:`Format invàlid per a ${n[i.format]??o.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${o.divisor}`;case"unrecognized_keys":return`Clau${o.keys.length>1?"s":""} no reconeguda${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${o.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${o.origin}`;default:return"Entrada invàlida"}}};function wH(){return{localeError:bH()}}const vH=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(o){return e[o]??null}const n={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Neplatný vstup: očekáváno instanceof ${o.expected}, obdrženo ${s}`:`Neplatný vstup: očekáváno ${i}, obdrženo ${s}`}case"invalid_value":return o.values.length===1?`Neplatný vstup: očekáváno ${ze(o.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Hodnota je příliš velká: ${o.origin??"hodnota"} musí mít ${i}${o.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${o.origin??"hodnota"} musí být ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Hodnota je příliš malá: ${o.origin??"hodnota"} musí mít ${i}${o.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${o.origin??"hodnota"} musí být ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Neplatný řetězec: musí začínat na "${i.prefix}"`:i.format==="ends_with"?`Neplatný řetězec: musí končit na "${i.suffix}"`:i.format==="includes"?`Neplatný řetězec: musí obsahovat "${i.includes}"`:i.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`:`Neplatný formát ${n[i.format]??o.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${o.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${de(o.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${o.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${o.origin}`;default:return"Neplatný vstup"}}};function kH(){return{localeError:vH()}}const xH=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(o){return e[o]??null}const n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Ugyldigt input: forventede instanceof ${o.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return o.values.length===1?`Ugyldig værdi: forventede ${ze(o.values[0])}`:`Ugyldigt valg: forventede en af følgende ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin),s=r[o.origin]??o.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${o.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin),s=r[o.origin]??o.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${o.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche mønsteret ${i.pattern}`:`Ugyldig ${n[i.format]??o.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${de(o.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${o.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${o.origin}`;default:return"Ugyldigt input"}}};function _H(){return{localeError:xH()}}const SH=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(o){return e[o]??null}const n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Ungültige Eingabe: erwartet instanceof ${o.expected}, erhalten ${s}`:`Ungültige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return o.values.length===1?`Ungültige Eingabe: erwartet ${ze(o.values[0])}`:`Ungültige Option: erwartet eine von ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Zu groß: erwartet, dass ${o.origin??"Wert"} ${i}${o.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${o.origin??"Wert"} ${i}${o.maximum.toString()} ist`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Zu klein: erwartet, dass ${o.origin} ${i}${o.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${o.origin} ${i}${o.minimum.toString()} ist`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ungültiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ungültiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ungültiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`:`Ungültig: ${n[i.format]??o.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${o.divisor} sein`;case"unrecognized_keys":return`${o.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${de(o.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${o.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${o.origin}`;default:return"Ungültige Eingabe"}}};function TH(){return{localeError:SH()}}const IH=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${ze(o.values[0])}`:`Invalid option: expected one of ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${i}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Too small: expected ${o.origin} to have ${i}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function IO(){return{localeError:IH()}}const EH=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(o){return e[o]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Nevalida enigo: atendiĝis instanceof ${o.expected}, riceviĝis ${s}`:`Nevalida enigo: atendiĝis ${i}, riceviĝis ${s}`}case"invalid_value":return o.values.length===1?`Nevalida enigo: atendiĝis ${ze(o.values[0])}`:`Nevalida opcio: atendiĝis unu el ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${i}${o.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${o.origin??"valoro"} havu ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Tro malgranda: atendiĝis ke ${o.origin} havu ${i}${o.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${o.origin} estu ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} ŝlosilo${o.keys.length>1?"j":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function AH(){return{localeError:EH()}}const CH=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(o){return e[o]??null}const n={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Entrada inválida: se esperaba instanceof ${o.expected}, recibido ${s}`:`Entrada inválida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return o.values.length===1?`Entrada inválida: se esperaba ${ze(o.values[0])}`:`Opción inválida: se esperaba una de ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin),s=r[o.origin]??o.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${o.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin),s=r[o.origin]??o.origin;return a?`Demasiado pequeño: se esperaba que ${s} tuviera ${i}${o.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${s} fuera ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Cadena inválida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inválida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inválida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${i.pattern}`:`Inválido ${n[i.format]??o.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${o.divisor}`;case"unrecognized_keys":return`Llave${o.keys.length>1?"s":""} desconocida${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Llave inválida en ${r[o.origin]??o.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${r[o.origin]??o.origin}`;default:return"Entrada inválida"}}};function NH(){return{localeError:CH()}}const PH=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(o){return e[o]??null}const n={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},r={nan:"NaN",number:"عدد",array:"آرایه"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`ورودی نامعتبر: می‌بایست instanceof ${o.expected} می‌بود، ${s} دریافت شد`:`ورودی نامعتبر: می‌بایست ${i} می‌بود، ${s} دریافت شد`}case"invalid_value":return o.values.length===1?`ورودی نامعتبر: می‌بایست ${ze(o.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${de(o.values,"|")} می‌بود`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`خیلی بزرگ: ${o.origin??"مقدار"} باید ${i}${o.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${o.origin??"مقدار"} باید ${i}${o.maximum.toString()} باشد`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`خیلی کوچک: ${o.origin} باید ${i}${o.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${o.origin} باید ${i}${o.minimum.toString()} باشد`}case"invalid_format":{const i=o;return i.format==="starts_with"?`رشته نامعتبر: باید با "${i.prefix}" شروع شود`:i.format==="ends_with"?`رشته نامعتبر: باید با "${i.suffix}" تمام شود`:i.format==="includes"?`رشته نامعتبر: باید شامل "${i.includes}" باشد`:i.format==="regex"?`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`:`${n[i.format]??o.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${o.divisor} باشد`;case"unrecognized_keys":return`کلید${o.keys.length>1?"های":""} ناشناس: ${de(o.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${o.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${o.origin}`;default:return"ورودی نامعتبر"}}};function DH(){return{localeError:PH()}}const OH=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(o){return e[o]??null}const n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Virheellinen tyyppi: odotettiin instanceof ${o.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return o.values.length===1?`Virheellinen syöte: täytyy olla ${ze(o.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${i}${o.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${i}${o.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen syöte: täytyy sisältää "${i.includes}"`:i.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??o.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${o.divisor} monikerta`;case"unrecognized_keys":return`${o.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${de(o.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function RH(){return{localeError:OH()}}const MH=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(o){return e[o]??null}const n={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN",number:"nombre",array:"tableau"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Entrée invalide : instanceof ${o.expected} attendu, ${s} reçu`:`Entrée invalide : ${i} attendu, ${s} reçu`}case"invalid_value":return o.values.length===1?`Entrée invalide : ${ze(o.values[0])}
39 attendu`:`Option invalide : une valeur parmi ${de(o.values,"|")} attendue`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Trop grand : ${o.origin??"valeur"} doit ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${o.origin??"valeur"} doit être ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Trop petit : ${o.origin} doit ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Trop petit : ${o.origin} doit être ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${i.pattern}`:`${n[i.format]??o.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${o.divisor}`;case"unrecognized_keys":return`Clé${o.keys.length>1?"s":""} non reconnue${o.keys.length>1?"s":""} : ${de(o.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${o.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${o.origin}`;default:return"Entrée invalide"}}};function jH(){return{localeError:MH()}}const $H=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(o){return e[o]??null}const n={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Entrée invalide : attendu instanceof ${o.expected}, reçu ${s}`:`Entrée invalide : attendu ${i}, reçu ${s}`}case"invalid_value":return o.values.length===1?`Entrée invalide : attendu ${ze(o.values[0])}
39`:`Option invalide : attendu l'une des valeurs suivantes ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"≤":"<",a=t(o.origin);return a?`Trop grand : attendu que ${o.origin??"la valeur"} ait ${i}${o.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${o.origin??"la valeur"} soit ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?"≥":">",a=t(o.origin);return a?`Trop petit : attendu que ${o.origin} ait ${i}${o.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${o.origin} soit ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??o.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${o.divisor}`;case"unrecognized_keys":return`Clé${o.keys.length>1?"s":""} non reconnue${o.keys.length>1?"s":""} : ${de(o.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${o.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${o.origin}`;default:return"Entrée invalide"}}};function LH(){return{localeError:$H()}}const zH=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=c=>c?e[c]:void 0,r=c=>{const h=n(c);return h?h.label:c??e.unknown.label},o=c=>`ה${r(c)}`,i=c=>(n(c)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",a=c=>c?t[c]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{const h=c.expected,d=l[h??""]??r(h),p=Fe(c.input),f=l[p]??e[p]?.label??p;return/^[A-Z]/.test(c.expected)?`קלט לא תקין: צריך להיות instanceof ${c.expected}, התקבל ${f}
39`:`קלט לא תקין: צריך להיות ${d}, התקבל ${f}`}case"invalid_value":{if(c.values.length===1)return`ערך לא תקין: הערך חייב להיות ${ze(c.values[0])}`;const h=c.values.map(f=>ze(f));if(c.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${h[0]} או ${h[1]}`;const d=h[h.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${h.slice(0,-1).join(", ")} או ${d}`}case"too_big":{const h=a(c.origin),d=o(c.origin??"value");if(c.origin==="string")return`${h?.longLabel??"ארוך"} מדי: ${d} צריכה להכיל ${c.maximum.toString()} ${h?.unit??""} ${c.inclusive?"או פחות":"לכל היותר"}`.trim();if(c.origin==="number"){const b=c.inclusive?`קטן או שווה ל-${c.maximum}`:`קטן מ-${c.maximum}`;return`גדול מדי: ${d} צריך להיות ${b}`}if(c.origin==="array"||c.origin==="set"){const b=c.origin==="set"?"צריכה":"צריך",y=c.inclusive?`${c.maximum} ${h?.unit??""} או פחות`:`פחות מ-${c.maximum} ${h?.unit??""}`;return`גדול מדי: ${d} ${b} להכיל ${y}`.trim()}const p=c.inclusive?"<=":"<",f=i(c.origin??"value");return h?.unit?`${h.longLabel} מדי: ${d} ${f} ${p}${c.maximum.toString()} ${h.unit}`:`${h?.longLabel??"גדול"} מדי: ${d} ${f} ${p}${c.maximum.toString()}`}case"too_small":{const h=a(c.origin),d=o(c.origin??"value");if(c.origin==="string")return`${h?.shortLabel??"קצר"} מדי: ${d} צריכה להכיל ${c.minimum.toString()} ${h?.unit??""} ${c.inclusive?"או יותר":"לפחות"}`.trim();if(c.origin==="number"){const b=c.inclusive?`גדול או שווה ל-${c.minimum}`:`גדול מ-${c.minimum}`;return`קטן מדי: ${d} צריך להיות ${b}`}if(c.origin==="array"||c.origin==="set"){const b=c.origin==="set"?"צריכה":"צריך";if(c.minimum===1&&c.inclusive){const w=(c.origin==="set","לפחות פריט אחד");return`קטן מדי: ${d} ${b} להכיל ${w}`}const y=c.inclusive?`${c.minimum} ${h?.unit??""} או יותר`:`יותר מ-${c.minimum} ${h?.unit??""}`;return`קטן מדי: ${d} ${b} להכיל ${y}`.trim()}const p=c.inclusive?">=":">",f=i(c.origin??"value");return h?.unit?`${h.shortLabel} מדי: ${d} ${f} ${p}${c.minimum.toString()} ${h.unit}`:`${h?.shortLabel??"קטן"} מדי: ${d} ${f} ${p}${c.minimum.toString()}`}case"invalid_format":{const h=c;if(h.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${h.prefix}"`;if(h.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${h.suffix}"`;if(h.format==="includes")return`המחרוזת חייבת לכלול "${h.includes}"`;if(h.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${h.pattern}`;const d=s[h.format],p=d?.label??h.format,b=(d?.gender??"m")==="f"?"תקינה":"תקין";return`${p} לא ${b}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${c.divisor}`;case"unrecognized_keys":return`מפתח${c.keys.length>1?"ות":""} לא מזוה${c.keys.length>1?"ים":"ה"}: ${de(c.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${o(c.origin??"array")}`;default:return"קלט לא תקין"}}};function UH(){return{localeError:zH()}}const FH=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(o){return e[o]??null}const n={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"szám",array:"tömb"};return o=>
vendor: 21,211 bytes, line 39
39{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Érvénytelen bemenet: a várt érték instanceof ${o.expected}, a kapott érték ${s}`:`Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${s}`}case"invalid_value":return o.values.length===1?`Érvénytelen bemenet: a várt érték ${ze(o.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Túl nagy: ${o.origin??"érték"} mérete túl nagy ${i}${o.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${o.origin??"érték"} túl nagy: ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Túl kicsi: a bemeneti érték ${o.origin} mérete túl kicsi ${i}${o.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${o.origin} túl kicsi ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`:i.format==="ends_with"?`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`:i.format==="includes"?`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`:i.format==="regex"?`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[i.format]??o.format}`}case"not_multiple_of":return`Érvénytelen szám: ${o.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${o.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${o.origin}`;default:return"Érvénytelen bemenet"}}};function WH(){return{localeError:FH()}}function f1(e,t,n){return Math.abs(e)===1?t:n}function cl(e){if(!e)return"";const t=["ա","ե","ը","ի","ո","ու","օ"],n=e[e.length-1];return e+(t.includes(n)?"ն":"ը")}const BH=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(o){return e[o]??null}const n={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},r={nan:"NaN",number:"թիվ",array:"զանգված"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${o.expected}, ստացվել է ${s}`:`Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${s}`}case"invalid_value":return o.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${ze(o.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);if(a){const s=Number(o.maximum),l=f1(s,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${cl(o.origin??"արժեք")} կունենա ${i}${o.maximum.toString()} ${l}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${cl(o.origin??"արժեք")} լինի ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);if(a){const s=Number(o.minimum),l=f1(s,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${cl(o.origin)} կունենա ${i}${o.minimum.toString()} ${l}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${cl(o.origin)} լինի ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${i.prefix}"-ով`:i.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${i.suffix}"-ով`:i.format==="includes"?`Սխալ տող․ պետք է պարունակի "${i.includes}"`:i.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին`:`Սխալ ${n[i.format]??o.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${o.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${o.keys.length>1?"ներ":""}. ${de(o.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${cl(o.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${cl(o.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function HH(){return{localeError:BH()}}const qH=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(o){return e[o]??null}const n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Input tidak valid: diharapkan instanceof ${o.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return o.values.length===1?`Input tidak valid: diharapkan ${ze(o.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Terlalu besar: diharapkan ${o.origin??"value"} memiliki ${i}${o.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${o.origin??"value"} menjadi ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Terlalu kecil: diharapkan ${o.origin} memiliki ${i}${o.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${o.origin} menjadi ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??o.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${o.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${o.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${o.origin}`;default:return"Input tidak valid"}}};function VH(){return{localeError:qH()}}const KH=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(o){return e[o]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"númer",array:"fylki"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${o.expected}`:`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${i}`}case"invalid_value":return o.values.length===1?`Rangt gildi: gert ráð fyrir ${ze(o.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Of stórt: gert er ráð fyrir að ${o.origin??"gildi"} hafi ${i}${o.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${o.origin??"gildi"} sé ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Of lítið: gert er ráð fyrir að ${o.origin} hafi ${i}${o.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${o.origin} sé ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ógildur strengur: verður að byrja á "${i.prefix}"`:i.format==="ends_with"?`Ógildur strengur: verður að enda á "${i.suffix}"`:i.format==="includes"?`Ógildur strengur: verður að innihalda "${i.includes}"`:i.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??o.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${o.divisor}`;case"unrecognized_keys":return`Óþekkt ${o.keys.length>1?"ir lyklar":"ur lykill"}: ${de(o.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${o.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${o.origin}`;default:return"Rangt gildi"}}};function GH(){return{localeError:KH()}}const YH=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(o){return e[o]??null}const n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Input non valido: atteso instanceof ${o.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return o.values.length===1?`Input non valido: atteso ${ze(o.values[0])}`:`Opzione non valida: atteso uno tra ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Troppo grande: ${o.origin??"valore"} deve avere ${i}${o.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${o.origin??"valore"} deve essere ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Troppo piccolo: ${o.origin} deve avere ${i}${o.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${o.origin} deve essere ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${n[i.format]??o.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${o.divisor}`;case"unrecognized_keys":return`Chiav${o.keys.length>1?"i":"e"} non riconosciut${o.keys.length>1?"e":"a"}: ${de(o.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${o.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${o.origin}`;default:return"Input non valido"}}};function ZH(){return{localeError:YH()}}const JH=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(o){return e[o]??null}const n={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},r={nan:"NaN",number:"数値",array:"配列"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`無効な入力: instanceof ${o.expected}が期待されましたが、${s}が入力されました`:`無効な入力: ${i}が期待されましたが、${s}が入力されました`}case"invalid_value":return o.values.length===1?`無効な入力: ${ze(o.values[0])}が期待されました`:`無効な選択: ${de(o.values,"、")}のいずれかである必要があります`;case"too_big":{const i=o.inclusive?"以下である":"より小さい",a=t(o.origin);return a?`大きすぎる値: ${o.origin??"値"}は${o.maximum.toString()}${a.unit??"要素"}${i}必要があります`:`大きすぎる値: ${o.origin??"値"}は${o.maximum.toString()}${i}必要があります`}case"too_small":{const i=o.inclusive?"以上である":"より大きい",a=t(o.origin);return a?`小さすぎる値: ${o.origin}は${o.minimum.toString()}${a.unit}${i}必要があります`:`小さすぎる値: ${o.origin}は${o.minimum.toString()}${i}必要があります`}case"invalid_format":{const i=o;return i.format==="starts_with"?`無効な文字列: "${i.prefix}"で始まる必要があります`:i.format==="ends_with"?`無効な文字列: "${i.suffix}"で終わる必要があります`:i.format==="includes"?`無効な文字列: "${i.includes}"を含む必要があります`:i.format==="regex"?`無効な文字列: パターン${i.pattern}に一致する必要があります`:`無効な${n[i.format]??o.format}`}case"not_multiple_of":return`無効な数値: ${o.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${o.keys.length>1?"群":""}: ${de(o.keys,"、")}`;case"invalid_key":return`${o.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${o.origin}内の無効な値`;default:return"無効な入力"}}};function QH(){return{localeError:JH()}}const XH=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(o){return e[o]??null}const n={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},r={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${o.expected}, მიღებული ${s}`:`არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${s}`}case"invalid_value":return o.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${ze(o.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${de(o.values,"|")}-დან`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${o.origin??"მნიშვნელობა"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${o.origin??"მნიშვნელობა"} იყოს ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${o.origin} იყოს ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${i.prefix}"-ით`:i.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${i.suffix}"-ით`:i.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${i.includes}"-ს`:i.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}`:`არასწორი ${n[i.format]??o.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${o.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${o.keys.length>1?"ები":"ი"}: ${de(o.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${o.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${o.origin}-ში`;default:return"არასწორი შეყვანა"}}};function eq(){return{localeError:XH()}}const tq=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(o){return e[o]??null}const n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},r={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return o=>
39{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${o.expected} ប៉ុន្តែទទួលបាន ${s}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${s}`}case"invalid_value":return o.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ze(o.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`ធំពេក៖ ត្រូវការ ${o.origin??"តម្លៃ"} ${i} ${o.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${o.origin??"តម្លៃ"} ${i} ${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`តូចពេក៖ ត្រូវការ ${o.origin} ${i} ${o.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${o.origin} ${i} ${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`:i.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`:i.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`:i.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[i.format]??o.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${o.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${de(o.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${o.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${o.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function EO(){return{localeError:tq()}}function nq(){return EO()}const rq=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`잘못된 입력: 예상 타입은 instanceof ${o.expected}, 받은 타입은 ${s}입니다`:`잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${s}입니다`}case"invalid_value":return o.values.length===1?`잘못된 입력: 값은 ${ze(o.values[0])} 이어야 합니다`:`잘못된 옵션: ${de(o.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const i=o.inclusive?"이하":"미만",a=i==="미만"?"이어야 합니다":"여야 합니다",s=t(o.origin),l=s?.unit??"요소";return s?`${o.origin??"값"}이 너무 큽니다: ${o.maximum.toString()}${l} ${i}${a}`:`${o.origin??"값"}이 너무 큽니다: ${o.maximum.toString()} ${i}${a}`}case"too_small":{const i=o.inclusive?"이상":"초과",a=i==="이상"?"이어야 합니다":"여야 합니다",s=t(o.origin),l=s?.unit??"요소";return s?`${o.origin??"값"}이 너무 작습니다: ${o.minimum.toString()}${l} ${i}${a}`:`${o.origin??"값"}이 너무 작습니다: ${o.minimum.toString()} ${i}${a}`}
vendor: 35,626 bytes, line 39
39case"invalid_format":{const i=o;return i.format==="starts_with"?`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`:i.format==="ends_with"?`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`:i.format==="includes"?`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`:i.format==="regex"?`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[i.format]??o.format}`}case"not_multiple_of":return`잘못된 숫자: ${o.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${de(o.keys,", ")}`;case"invalid_key":return`잘못된 키: ${o.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${o.origin}`;default:return"잘못된 입력"}}};function oq(){return{localeError:rq()}}const eu=e=>e.charAt(0).toUpperCase()+e.slice(1);function g1(e){const t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?"many":n===1?"one":"few"}const iq=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(o,i,a,s){const l=e[o]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[s][a?"inclusive":"notInclusive"]}}const n={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},r={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Gautas tipas ${s}, o tikėtasi - instanceof ${o.expected}`:`Gautas tipas ${s}, o tikėtasi - ${i}`}case"invalid_value":return o.values.length===1?`Privalo būti ${ze(o.values[0])}`:`Privalo būti vienas iš ${de(o.values,"|")} pasirinkimų`;case"too_big":{const i=r[o.origin]??o.origin,a=t(o.origin,g1(Number(o.maximum)),o.inclusive??!1,"smaller");if(a?.verb)return`${eu(i??o.origin??"reikšmė")} ${a.verb} ${o.maximum.toString()} ${a.unit??"elementų"}`;const s=o.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${eu(i??o.origin??"reikšmė")} turi būti ${s} ${o.maximum.toString()} ${a?.unit}`}case"too_small":{const i=r[o.origin]??o.origin,a=t(o.origin,g1(Number(o.minimum)),o.inclusive??!1,"bigger");if(a?.verb)return`${eu(i??o.origin??"reikšmė")} ${a.verb} ${o.minimum.toString()} ${a.unit??"elementų"}`;const s=o.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${eu(i??o.origin??"reikšmė")} turi būti ${s} ${o.minimum.toString()} ${a?.unit}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Eilutė privalo prasidėti "${i.prefix}"`:i.format==="ends_with"?`Eilutė privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilutė privalo įtraukti "${i.includes}"`:i.format==="regex"?`Eilutė privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??o.format}`}case"not_multiple_of":return`Skaičius privalo būti ${o.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${o.keys.length>1?"i":"as"} rakt${o.keys.length>1?"ai":"as"}: ${de(o.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const i=r[o.origin]??o.origin;return`${eu(i??o.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function aq(){return{localeError:iq()}}const sq=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(o){return e[o]??null}const n={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},r={nan:"NaN",number:"број",array:"низа"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Грешен внес: се очекува instanceof ${o.expected}, примено ${s}`:`Грешен внес: се очекува ${i}, примено ${s}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${ze(o.values[0])}`:`Грешана опција: се очекува една ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Премногу голем: се очекува ${o.origin??"вредноста"} да има ${i}${o.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${o.origin??"вредноста"} да биде ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Премногу мал: се очекува ${o.origin} да има ${i}${o.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${o.origin} да биде ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Неважечка низа: мора да започнува со "${i.prefix}"`:i.format==="ends_with"?`Неважечка низа: мора да завршува со "${i.suffix}"`:i.format==="includes"?`Неважечка низа: мора да вклучува "${i.includes}"`:i.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${i.pattern}`:`Invalid ${n[i.format]??o.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${de(o.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${o.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${o.origin}`;default:return"Грешен внес"}}};function lq(){return{localeError:sq()}}const cq=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(o){return e[o]??null}const n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Input tidak sah: dijangka instanceof ${o.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return o.values.length===1?`Input tidak sah: dijangka ${ze(o.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Terlalu besar: dijangka ${o.origin??"nilai"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${o.origin??"nilai"} adalah ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Terlalu kecil: dijangka ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${o.origin} adalah ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??o.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${o.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${de(o.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${o.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${o.origin}`;default:return"Input tidak sah"}}};function uq(){return{localeError:cq()}}const dq=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(o){return e[o]??null}const n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Ongeldige invoer: verwacht instanceof ${o.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return o.values.length===1?`Ongeldige invoer: verwacht ${ze(o.values[0])}`:`Ongeldige optie: verwacht één van ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin),s=o.origin==="date"?"laat":o.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${o.origin??"waarde"} ${i}${o.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${o.origin??"waarde"} ${i}${o.maximum.toString()} is`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin),s=o.origin==="date"?"vroeg":o.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${o.origin} ${i}${o.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${o.origin} ${i}${o.minimum.toString()} is`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??o.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${o.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${o.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${o.origin}`;default:return"Ongeldige invoer"}}};function hq(){return{localeError:dq()}}const mq=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(o){return e[o]??null}const n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Ugyldig input: forventet instanceof ${o.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return o.values.length===1?`Ugyldig verdi: forventet ${ze(o.values[0])}`:`Ugyldig valg: forventet en av ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`For stor(t): forventet ${o.origin??"value"} til å ha ${i}${o.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${o.origin??"value"} til å ha ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`For lite(n): forventet ${o.origin} til å ha ${i}${o.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${o.origin} til å ha ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${n[i.format]??o.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${de(o.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${o.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${o.origin}`;default:return"Ugyldig input"}}};function pq(){return{localeError:mq()}}const fq=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(o){return e[o]??null}const n={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Fâsit giren: umulan instanceof ${o.expected}, alınan ${s}`:`Fâsit giren: umulan ${i}, alınan ${s}`}case"invalid_value":return o.values.length===1?`Fâsit giren: umulan ${ze(o.values[0])}`:`Fâsit tercih: mûteberler ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Fazla büyük: ${o.origin??"value"}, ${i}${o.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${o.origin??"value"}, ${i}${o.maximum.toString()} olmalıydı.`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Fazla küçük: ${o.origin}, ${i}${o.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${o.origin}, ${i}${o.minimum.toString()} olmalıydı.`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Fâsit metin: "${i.prefix}" ile başlamalı.`:i.format==="ends_with"?`Fâsit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`Fâsit metin: "${i.includes}" ihtivâ etmeli.`:i.format==="regex"?`Fâsit metin: ${i.pattern} nakşına uymalı.`:`Fâsit ${n[i.format]??o.format}`}case"not_multiple_of":return`Fâsit sayı: ${o.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`${o.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${o.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function gq(){return{localeError:fq()}}const yq=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(o){return e[o]??null}const n={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},r={nan:"NaN",number:"عدد",array:"ارې"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`ناسم ورودي: باید instanceof ${o.expected} وای, مګر ${s} ترلاسه شو`:`ناسم ورودي: باید ${i} وای, مګر ${s} ترلاسه شو`}case"invalid_value":return o.values.length===1?`ناسم ورودي: باید ${ze(o.values[0])} وای`:`ناسم انتخاب: باید یو له ${de(o.values,"|")} څخه وای`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`ډیر لوی: ${o.origin??"ارزښت"} باید ${i}${o.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${o.origin??"ارزښت"} باید ${i}${o.maximum.toString()} وي`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`ډیر کوچنی: ${o.origin} باید ${i}${o.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${o.origin} باید ${i}${o.minimum.toString()} وي`}case"invalid_format":{const i=o;return i.format==="starts_with"?`ناسم متن: باید د "${i.prefix}" سره پیل شي`:i.format==="ends_with"?`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`:i.format==="includes"?`ناسم متن: باید "${i.includes}" ولري`:i.format==="regex"?`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`:`${n[i.format]??o.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${o.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${o.keys.length>1?"کلیډونه":"کلیډ"}: ${de(o.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${o.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${o.origin} کې`;default:return"ناسمه ورودي"}}};function bq(){return{localeError:yq()}}const wq=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(o){return e[o]??null}const n={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},r={nan:"NaN",number:"liczba",array:"tablica"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${o.expected}, otrzymano ${s}`:`Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return o.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ze(o.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Za duża wartość: oczekiwano, że ${o.origin??"wartość"} będzie mieć ${i}${o.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${o.origin??"wartość"} będzie wynosić ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Za mała wartość: oczekiwano, że ${o.origin??"wartość"} będzie mieć ${i}${o.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${o.origin??"wartość"} będzie wynosić ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`:i.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`:i.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`:i.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`:`Nieprawidłow(y/a/e) ${n[i.format]??o.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${o.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${o.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${o.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function vq(){return{localeError:wq()}}const kq=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(o){return e[o]??null}const n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"número",null:"nulo"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Tipo inválido: esperado instanceof ${o.expected}, recebido ${s}`:`Tipo inválido: esperado ${i}, recebido ${s}`}case"invalid_value":return o.values.length===1?`Entrada inválida: esperado ${ze(o.values[0])}`:`Opção inválida: esperada uma das ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Muito grande: esperado que ${o.origin??"valor"} tivesse ${i}${o.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${o.origin??"valor"} fosse ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Muito pequeno: esperado que ${o.origin} tivesse ${i}${o.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${o.origin} fosse ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Texto inválido: deve começar com "${i.prefix}"`:i.format==="ends_with"?`Texto inválido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inválido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inválido: deve corresponder ao padrão ${i.pattern}`:`${n[i.format]??o.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${o.divisor}`;case"unrecognized_keys":return`Chave${o.keys.length>1?"s":""} desconhecida${o.keys.length>1?"s":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Chave inválida em ${o.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${o.origin}`;default:return"Campo inválido"}}};function xq(){return{localeError:kq()}}function y1(e,t,n,r){const o=Math.abs(e),i=o%10,a=o%100;return a>=11&&a<=19?r:i===1?t:i>=2&&i<=4?n:r}const _q=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(o){return e[o]??null}const n={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},r={nan:"NaN",number:"число",array:"массив"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Неверный ввод: ожидалось instanceof ${o.expected}, получено ${s}`:`Неверный ввод: ожидалось ${i}, получено ${s}`}case"invalid_value":return o.values.length===1?`Неверный ввод: ожидалось ${ze(o.values[0])}`:`Неверный вариант: ожидалось одно из ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);if(a){const s=Number(o.maximum),l=y1(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${o.origin??"значение"} будет иметь ${i}${o.maximum.toString()} ${l}`}return`Слишком большое значение: ожидалось, что ${o.origin??"значение"} будет ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);if(a){const s=Number(o.minimum),l=y1(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${o.origin} будет иметь ${i}${o.minimum.toString()} ${l}`}return`Слишком маленькое значение: ожидалось, что ${o.origin} будет ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Неверная строка: должна начинаться с "${i.prefix}"`:i.format==="ends_with"?`Неверная строка: должна заканчиваться на "${i.suffix}"`:i.format==="includes"?`Неверная строка: должна содержать "${i.includes}"`:i.format==="regex"?`Неверная строка: должна соответствовать шаблону ${i.pattern}`:`Неверный ${n[i.format]??o.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${o.divisor}`;case"unrecognized_keys":return`Нераспознанн${o.keys.length>1?"ые":"ый"} ключ${o.keys.length>1?"и":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${o.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${o.origin}`;default:return"Неверные входные данные"}}};function Sq(){return{localeError:_q()}}const Tq=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(o){return e[o]??null}const n={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"število",array:"tabela"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Neveljaven vnos: pričakovano instanceof ${o.expected}, prejeto ${s}`:`Neveljaven vnos: pričakovano ${i}, prejeto ${s}`}case"invalid_value":return o.values.length===1?`Neveljaven vnos: pričakovano ${ze(o.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Preveliko: pričakovano, da bo ${o.origin??"vrednost"} imelo ${i}${o.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${o.origin??"vrednost"} ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Premajhno: pričakovano, da bo ${o.origin} imelo ${i}${o.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Neveljaven niz: mora se začeti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se končati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??o.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${o.divisor}`;case"unrecognized_keys":return`Neprepoznan${o.keys.length>1?"i ključi":" ključ"}: ${de(o.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${o.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${o.origin}`;default:return"Neveljaven vnos"}}};function Iq(){return{localeError:Tq()}}const Eq=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(o){return e[o]??null}const n={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Ogiltig inmatning: förväntat instanceof ${o.expected}, fick ${s}`:`Ogiltig inmatning: förväntat ${i}, fick ${s}`}case"invalid_value":return o.values.length===1?`Ogiltig inmatning: förväntat ${ze(o.values[0])}`:`Ogiltigt val: förväntade en av ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`För stor(t): förväntade ${o.origin??"värdet"} att ha ${i}${o.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${o.origin??"värdet"} att ha ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`För lite(t): förväntade ${o.origin??"värdet"} att ha ${i}${o.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${o.origin??"värdet"} att ha ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ogiltig sträng: måste börja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig sträng: måste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig sträng: måste innehålla "${i.includes}"`:i.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??o.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${de(o.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${o.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${o.origin??"värdet"}`;default:return"Ogiltig input"}}};function Aq(){return{localeError:Eq()}}const Cq=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(o){return e[o]??null}const n={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்ப
39ு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${o.expected}, பெறப்பட்டது ${s}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${s}`}case"invalid_value":return o.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ze(o.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${de(o.values,"|")} இல் ஒன்று`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${o.origin??"மதிப்பு"} ${i}${o.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${o.origin??"மதிப்பு"} ${i}${o.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${o.origin} ${i}${o.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${o.origin} ${i}${o.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const i=o;return i.format==="starts_with"?`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`:i.format==="ends_with"?`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`:i.format==="includes"?`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`:i.format==="regex"?`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[i.format]??o.format}`}case"not_multiple_of":return`தவறான எண்: ${o.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${o.keys.length>1?"கள்":""}: ${de(o.keys,", ")}`;case"invalid_key":return`${o.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${o.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Nq(){return{localeError:Cq()}}const Pq=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(o){return e[o]??null}const n={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},r={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return o=>
vendor: 22,775 bytes, line 39
39{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${o.expected} แต่ได้รับ ${s}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${s}`}case"invalid_value":return o.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ze(o.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(o.origin);return a?`เกินกำหนด: ${o.origin??"ค่า"} ควรมี${i} ${o.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${o.origin??"ค่า"} ควรมี${i} ${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?"อย่างน้อย":"มากกว่า",a=t(o.origin);return a?`น้อยกว่ากำหนด: ${o.origin} ควรมี${i} ${o.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${o.origin} ควรมี${i} ${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`:i.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`:i.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`:i.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[i.format]??o.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${o.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${de(o.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${o.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${o.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Dq(){return{localeError:Pq()}}const Oq=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(o){return e[o]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Geçersiz değer: beklenen instanceof ${o.expected}, alınan ${s}`:`Geçersiz değer: beklenen ${i}, alınan ${s}`}case"invalid_value":return o.values.length===1?`Geçersiz değer: beklenen ${ze(o.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Çok büyük: beklenen ${o.origin??"değer"} ${i}${o.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${o.origin??"değer"} ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Çok küçük: beklenen ${o.origin} ${i}${o.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Geçersiz metin: "${i.prefix}" ile başlamalı`:i.format==="ends_with"?`Geçersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Geçersiz metin: "${i.includes}" içermeli`:i.format==="regex"?`Geçersiz metin: ${i.pattern} desenine uymalı`:`Geçersiz ${n[i.format]??o.format}`}case"not_multiple_of":return`Geçersiz sayı: ${o.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${o.keys.length>1?"lar":""}: ${de(o.keys,", ")}`;case"invalid_key":return`${o.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${o.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Rq(){return{localeError:Oq()}}const Mq=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(o){return e[o]??null}const n={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},r={nan:"NaN",number:"число",array:"масив"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Неправильні вхідні дані: очікується instanceof ${o.expected}, отримано ${s}`:`Неправильні вхідні дані: очікується ${i}, отримано ${s}`}case"invalid_value":return o.values.length===1?`Неправильні вхідні дані: очікується ${ze(o.values[0])}`:`Неправильна опція: очікується одне з ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Занадто велике: очікується, що ${o.origin??"значення"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${o.origin??"значення"} буде ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Занадто мале: очікується, що ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${o.origin} буде ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Неправильний рядок: повинен починатися з "${i.prefix}"`:i.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`:i.format==="includes"?`Неправильний рядок: повинен містити "${i.includes}"`:i.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`:`Неправильний ${n[i.format]??o.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${o.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${o.keys.length>1?"і":""}: ${de(o.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${o.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${o.origin}`;default:return"Неправильні вхідні дані"}}};function AO(){return{localeError:Mq()}}function jq(){return AO()}const $q=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(o){return e[o]??null}const n={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},r={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`غلط ان پٹ: instanceof ${o.expected} متوقع تھا، ${s} موصول ہوا`:`غلط ان پٹ: ${i} متوقع تھا، ${s} موصول ہوا`}case"invalid_value":return o.values.length===1?`غلط ان پٹ: ${ze(o.values[0])} متوقع تھا`:`غلط آپشن: ${de(o.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`بہت بڑا: ${o.origin??"ویلیو"} کے ${i}${o.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${o.origin??"ویلیو"} کا ${i}${o.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`بہت چھوٹا: ${o.origin} کے ${i}${o.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${o.origin} کا ${i}${o.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const i=o;return i.format==="starts_with"?`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`:i.format==="ends_with"?`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`:i.format==="includes"?`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`:i.format==="regex"?`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`:`غلط ${n[i.format]??o.format}`}case"not_multiple_of":return`غلط نمبر: ${o.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${o.keys.length>1?"ز":""}: ${de(o.keys,"، ")}`;case"invalid_key":return`${o.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${o.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Lq(){return{localeError:$q()}}const zq=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(o){return e[o]??null}const n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${o.expected}, qabul qilingan ${s}`:`Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return o.values.length===1?`Noto‘g‘ri kirish: kutilgan ${ze(o.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Juda katta: kutilgan ${o.origin??"qiymat"} ${i}${o.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${o.origin??"qiymat"} ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Juda kichik: kutilgan ${o.origin} ${i}${o.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Noto‘g‘ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto‘g‘ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto‘g‘ri satr: "${i.includes}" ni o‘z ichiga olishi kerak`:i.format==="regex"?`Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[i.format]??o.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${o.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${o.keys.length>1?"lar":""}: ${de(o.keys,", ")}`;case"invalid_key":return`${o.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${o.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function Uq(){return{localeError:zq()}}const Fq=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(o){return e[o]??null}const n={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},r={nan:"NaN",number:"số",array:"mảng"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${o.expected}, nhận được ${s}`:`Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${s}`}case"invalid_value":return o.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ze(o.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Quá lớn: mong đợi ${o.origin??"giá trị"} ${a.verb} ${i}${o.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${o.origin??"giá trị"} ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Quá nhỏ: mong đợi ${o.origin} ${a.verb} ${i}${o.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`:i.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`:i.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`:i.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`:`${n[i.format]??o.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${o.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${de(o.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${o.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${o.origin}`;default:return"Đầu vào không hợp lệ"}}};function Wq(){return{localeError:Fq()}}const Bq=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(o){return e[o]??null}const n={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},r={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`无效输入:期望 instanceof ${o.expected},实际接收 ${s}`:`无效输入:期望 ${i},实际接收 ${s}`}case"invalid_value":return o.values.length===1?`无效输入:期望 ${ze(o.values[0])}`:`无效选项:期望以下之一 ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`数值过大:期望 ${o.origin??"值"} ${i}${o.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${o.origin??"值"} ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`数值过小:期望 ${o.origin} ${i}${o.minimum.toString()} ${a.unit}`:`数值过小:期望 ${o.origin} ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`无效字符串:必须以 "${i.prefix}" 开头`:i.format==="ends_with"?`无效字符串:必须以 "${i.suffix}" 结尾`:i.format==="includes"?`无效字符串:必须包含 "${i.includes}"`:i.format==="regex"?`无效字符串:必须满足正则表达式 ${i.pattern}`:`无效${n[i.format]??o.format}`}case"not_multiple_of":return`无效数字:必须是 ${o.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${de(o.keys,", ")}`;case"invalid_key":return`${o.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${o.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Hq(){return{localeError:Bq()}}const qq=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(o){return e[o]??null}const n={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},r={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`無效的輸入值:預期為 instanceof ${o.expected},但收到 ${s}`:`無效的輸入值:預期為 ${i},但收到 ${s}`}case"invalid_value":return o.values.length===1?`無效的輸入值:預期為 ${ze(o.values[0])}`:`無效的選項:預期為以下其中之一 ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`數值過大:預期 ${o.origin??"值"} 應為 ${i}${o.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${o.origin??"值"} 應為 ${i}${o.maximum.toString()}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`數值過小:預期 ${o.origin} 應為 ${i}${o.minimum.toString()} ${a.unit}`:`數值過小:預期 ${o.origin} 應為 ${i}${o.minimum.toString()}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`無效的字串:必須以 "${i.prefix}" 開頭`:i.format==="ends_with"?`無效的字串:必須以 "${i.suffix}" 結尾`:i.format==="includes"?`無效的字串:必須包含 "${i.includes}"`:i.format==="regex"?`無效的字串:必須符合格式 ${i.pattern}`:`無效的 ${n[i.format]??o.format}`}case"not_multiple_of":return`無效的數字:必須為 ${o.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${o.keys.length>1?"們":""}:${de(o.keys,"、")}`;case"invalid_key":return`${o.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${o.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Vq(){return{localeError:qq()}}const Kq=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(o){return e[o]??null}const n={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},r={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return o=>
39{switch(o.code){case"invalid_type":{const i=r[o.expected]??o.expected,a=Fe(o.input),s=r[a]??a;return/^[A-Z]/.test(o.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${o.expected}, àmọ̀ a rí ${s}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${s}`}case"invalid_value":return o.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${ze(o.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${de(o.values,"|")}`;case"too_big":{const i=o.inclusive?"<=":"<",a=t(o.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${o.origin??"iye"} ${a.verb} ${i}${o.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${i}${o.maximum}`}case"too_small":{const i=o.inclusive?">=":">",a=t(o.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${o.origin} ${a.verb} ${i}${o.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${i}${o.minimum}`}case"invalid_format":{const i=o;return i.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"`:i.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"`:i.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"`:i.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}`:`Aṣìṣe: ${n[i.format]??o.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${o.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${de(o.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${o.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${o.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function Gq(){return{localeError:Kq()}}const CO=Object.freeze(Object.defineProperty({__proto__:null,ar:dH,az:mH,be:fH,bg:yH,ca:wH,cs:kH,da:_H,de:TH,en:IO,eo:AH,es:NH,fa:DH,fi:RH,fr:jH,frCA:LH,he:UH,hu:WH,hy:HH,id:VH,is:GH,it:ZH,ja:QH,ka:eq,kh:nq,km:EO,ko:oq,lt:aq,mk:lq,ms:uq,nl:hq,no:pq,ota:gq,pl:vq,ps:bq,pt:xq,ru:Sq,sl:Iq,sv:Aq,ta:Nq,th:Dq,tr:Rq,ua:jq,uk:AO,ur:Lq,uz:Uq,vi:Wq,yo:Gq,zhCN:Hq,zhTW:Vq},Symbol.toStringTag,{value:"Module"}));var b1;const NO=Symbol("ZodOutput"),PO=Symbol("ZodInput");class DO{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function mx(){return new DO}(b1=globalThis).__zod_globalRegistry??(b1.__zod_globalRegistry=mx());const lo=globalThis.__zod_globalRegistry;function OO(e,t){return new e({type:"string",...re(t)})}function RO(e,t){return new e({type:"string",coerce:!0,...re(t)})}function px(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...re(t)})}function dp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...re(t)})}function fx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...re(t)})}function gx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...re(t)})}function yx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...re(t)})}function bx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...re(t)})}function kf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...re(t)})}function wx(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...re(t)})}function vx(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...re(t)})}function kx(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...re(t)})}function xx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...re(t)})}function _x(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...re(t)})}function Sx(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...re(t)})}function Tx(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...re(t)})}function Ix(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...re(t)})}function Ex(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...re(t)})}function MO(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...re(t)})}function Ax(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...re(t)})}function Cx(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...re(t)})}function Nx(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...re(t)})}function Px(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...re(t)})}function Dx(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...re(t)})}function Ox(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...re(t)})}const jO={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function $O(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...re(t)})}function LO(e,t){return new e({type:"string",format:"date",check:"string_format",...re(t)})}function zO(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...re(t)})}function UO(e,t){return new e({type:"string",format:"duration",check:"string_format",...re(t)})}function FO(e,t){return new e({type:"number",checks:[],...re(t)})}function WO(e,t){return new e({type:"number",coerce:!0,checks:[],...re(t)})}function BO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...re(t)})}function HO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...re(t)})}function qO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...re(t)})}function VO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...re(t)})}function KO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...re(t)})}function GO(e,t){return new e({type:"boolean",...re(t)})}function YO(e,t){return new e({type:"boolean",coerce:!0,...re(t)})}function ZO(e,t){return new e({type:"bigint",...re(t)})}function JO(e,t){return new e({type:"bigint",coerce:!0,...re(t)})}function QO(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...re(t)})}function XO(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...re(t)})}function eR(e,t){return new e({type:"symbol",...re(t)})}function tR(e,t){return new e({type:"undefined",...re(t)})}function nR(e,t){return new e({type:"null",...re(t)})}function rR(e){return new e({type:"any"})}function oR(e){return new e({type:"unknown"})}function iR(e,t){return new e({type:"never",...re(t)})}function aR(e,t){return new e({type:"void",...re(t)})}function sR(e,t){return new e({type:"date",...re(t)})}function lR(e,t){return new e({type:"date",coerce:!0,...re(t)})}function cR(e,t){return new e({type:"nan",...re(t)})}function Ia(e,t){return new ox({check:"less_than",...re(t),value:e,inclusive:!1})}function co(e,t){return new ox({check:"less_than",...re(t),value:e,inclusive:!0})}function Ea(e,t){return new ix({check:"greater_than",...re(t),value:e,inclusive:!1})}function Ir(e,t){return new ix({check:"greater_than",...re(t),value:e,inclusive:!0})}function Rx(e){return Ea(0,e)}function Mx(e){return Ia(0,e)}function jx(e){return co(0,e)}function $x(e){return Ir(0,e)}function tc(e,t){return new KP({check:"multiple_of",...re(t),value:e})}function Sc(e,t){return new ZP({check:"max_size",...re(t),maximum:e})}function Aa(e,t){return new JP({check:"min_size",...re(t),minimum:e})}function Ld(e,t){return new QP({check:"size_equals",...re(t),size:e})}function zd(e,t){return new XP({check:"max_length",...re(t),maximum:e})}function _s(e,t){return new eD({check:"min_length",...re(t),minimum:e})}function Ud(e,t){return new tD({check:"length_equals",...re(t),length:e})}function xf(e,t){return new nD({check:"string_format",format:"regex",...re(t),pattern:e})}function _f(e){return new rD({check:"string_format",format:"lowercase",...re(e)})}
39function Sf(e){return new oD({check:"string_format",format:"uppercase",...re(e)})}function Tf(e,t){return new iD({check:"string_format",format:"includes",...re(t),includes:e})}function If(e,t){return new aD({check:"string_format",format:"starts_with",...re(t),prefix:e})}function Ef(e,t){return new sD({check:"string_format",format:"ends_with",...re(t),suffix:e})}function Lx(e,t,n){return new lD({check:"property",property:e,schema:t,...re(n)})}function Af(e,t){return new cD({check:"mime_type",mime:e,...re(t)})}function $i(e){return new uD({check:"overwrite",tx:e})}function Cf(e){return $i(t=>t.normalize(e))}function Nf(){return $i(e=>e.trim())}function Pf(){return $i(e=>e.toLowerCase())}function Df(){return $i(e=>e.toUpperCase())}function Of(){return $i(e=>HN(e))}function uR(e,t,n){return new e({type:"array",element:t,...re(n)})}function Yq(e,t,n){return new e({type:"union",options:t,...re(n)})}function Zq(e,t,n){return new e({type:"union",options:t,inclusive:!1,...re(n)})}function Jq(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...re(r)})}function Qq(e,t,n){return new e({type:"intersection",left:t,right:n})}function Xq(e,t,n,r){const o=n instanceof Ge,i=o?r:n,a=o?n:null;return new e({type:"tuple",items:t,rest:a,...re(i)})}function e9(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...re(r)})}function t9(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...re(r)})}function n9(e,t,n){return new e({type:"set",valueType:t,...re(n)})}function r9(e,t,n){const r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...re(n)})}function o9(e,t,n){return new e({type:"enum",entries:t,...re(n)})}function i9(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...re(n)})}function dR(e,t){return new e({type:"file",...re(t)})}function a9(e,t){return new e({type:"transform",transform:t})}function s9(e,t){return new e({type:"optional",innerType:t})}function l9(e,t){return new e({type:"nullable",innerType:t})}function c9(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():yf(n)}})}function u9(e,t,n){return new e({type:"nonoptional",innerType:t,...re(n)})}function d9(e,t){return new e({type:"success",innerType:t})}function h9(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function m9(e,t,n){return new e({type:"pipe",in:t,out:n})}function p9(e,t){return new e({type:"readonly",innerType:t})}function f9(e,t,n){return new e({type:"template_literal",parts:t,...re(n)})}function g9(e,t){return new e({type:"lazy",getter:t})}function y9(e,t){return new e({type:"promise",innerType:t})}function hR(e,t,n){const r=re(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function mR(e,t,n){return new e({type:"custom",check:"custom",fn:t,...re(n)})}function pR(e){const t=fR(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Xl(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Xl(o))}},e(n.value,n)));return t}function fR(e,t){const n=new Gt({check:"custom",...re(t)});return n._zod.check=e,n}function gR(e){const t=new Gt({check:"describe"});return t._zod.onattach=[n=>{const r=lo.get(n)??{};lo.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function yR(e){const t=new Gt({check:"meta"});return t._zod.onattach=[n=>{const r=lo.get(n)??{};lo.add(n,{...r,...e})}],t._zod.check=()=>{},t}function bR(e,t){const n=re(t);let r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),o=o.map(f=>typeof f=="string"?f.toLowerCase():f));const i=new Set(r),a=new Set(o),s=e.Codec??hx,l=e.Boolean??lx,c=e.String??$d,h=new c({type:"string",error:n.error}),d=new l({type:"boolean",error:n.error}),p=new s({type:"pipe",in:h,out:d,transform:((f,b)=>{let y=f;return n.case!=="sensitive"&&(y=y.toLowerCase()),i.has(y)?!0:a.has(y)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input
vendor: 14,434 bytes, lines 39-41
39:b.value,inst:p,continue:!1}),{})}),reverseTransform:((f,b)=>f===!0?r[0]||"true":o[0]||"false"),error:n.error});return p}function Fd(e,t,n,r={}){const o=re(r),i={...re(r),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function nc(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??lo,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Nt(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,h);else{const p=a.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,p,h)}const d=e._zod.parent;d&&(a.ref||(a.ref=d),Nt(d,t,h),t.seen.get(d).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&dr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function rc(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const a of e.seen.entries()){const s=e.metadataRegistry.get(a[0])?.id;if(s){const l=r.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(s,a[0])}}const o=a=>{const s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(a[0])?.id,p=e.external.uri??(b=>b);if(d)return{ref:p(d)};const f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${f}`}}if(a[1]===n)return{ref:"#"};const c=`#/${s}/`,h=a[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:c+h}},i=a=>{if(a[1].schema.$ref)return;const s=a[1],{ref:l,defId:c}=o(a);s.def={...s.schema},c&&(s.defId=c);const h=s.schema;for(const d in h)delete h[d];h.$ref=l};if(e.cycles==="throw")for(const a of e.seen.entries()){const s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
40
41Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const s=a[1];if(t===a[0]){i(a);continue}if(e.external){const c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function oc(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=a=>{const s=e.seen.get(a);if(s.ref===null)return;const l=s.def??s.schema,c={...l},h=s.ref;if(s.ref=null,h){r(h);const p=e.seen.get(h),f=p.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(f)):Object.assign(l,f),Object.assign(l,c),a._zod.parent===h)for(const y in l)y==="$ref"||y==="allOf"||y in c||delete l[y];if(f.$ref&&p.def)for(const y in l)y==="$ref"||y==="allOf"||y in p.def&&JSON.stringify(l[y])===JSON.stringify(p.def[y])&&delete l[y]}const d=a._zod.parent;if(d&&d!==h){r(d);const p=e.seen.get(d);if(p?.schema.$ref&&(l.$ref=p.schema.$ref,p.def))for(const f in l)f==="$ref"||f==="allOf"||f in p.def&&JSON.stringify(l[f])===JSON.stringify(p.def[f])&&delete l[f]}e.override({zodSchema:a,jsonSchema:l,path:s.path??[]})};for(const a of[...e.seen.entries()].reverse())r(a[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,n.def??n.schema);const i=e.external?.defs??{};for(const a of e.seen.entries()){const s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:ed(t,"input",e.processors),output:ed(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function dr(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return dr(r.element,n);if(r.type==="set")return dr(r.valueType,n);if(r.type==="lazy")return dr(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return dr(r.innerType,n);if(r.type==="intersection")return dr(r.left,n)||dr(r.right,n);if(r.type==="record"||r.type==="map")return dr(r.keyType,n)||dr(r.valueType,n);if(r.type==="pipe")return dr(r.in,n)||dr(r.out,n);if(r.type==="object"){for(const o in r.shape)if(dr(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(dr(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(dr(o,n))return!0;return!!(r.rest&&dr(r.rest,n))}return!1}const wR=(e,t={})=>n=>{const r=nc({...n,processors:t});return Nt(e,r),rc(r,e),oc(r,e)},ed=(e,t,n={})=>r=>{const{libraryOptions:o,target:i}=r??{},a=nc({...o??{},target:i,io:t,processors:n});return Nt(e,a),rc(a,e),oc(a,e)},b9={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},vR=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),s&&(o.format=b9[s]??s,o.format===""&&delete o.format,s==="time"&&delete o.format),c&&(o.contentEncoding=c),l&&l.size>0){const h=[...l];h.length===1?o.pattern=h[0].source:h.length>1&&(o.allOf=[...h.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},kR=(e,t,n,r)=>{const o=n,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:h}=e._zod.bag;typeof s=="string"&&s.includes("int")?o.type="integer":o.type="number",typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=h,o.exclusiveMinimum=!0):o.exclusiveMinimum=h),typeof i=="number"&&(o.minimum=i,typeof h=="number"&&t.target!=="draft-04"&&(h>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c),typeof a=="number"&&(o.maximum=a,typeof c=="number"&&t.target!=="draft-04"&&(c<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof l=="number"&&(o.multipleOf=l)},xR=(e,t,n,r)=>{n.type="boolean"},_R=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},SR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},TR=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},IR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ER=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},AR=(e,t,n,r)=>{n.not={}},CR=(e,t,n,r)=>{},NR=(e,t,n,r)=>{},PR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},DR=(e,t,n,r)=>{const o=e._zod.def,i=Wk(o.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},OR=(e,t,n,r)=>{const o=e._zod.def,i=[];for(const a of o.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},RR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},MR=(e,t,n,r)=>{const o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},jR=(e,t,n,r)=>{const o=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),l?l.length===1?(i.contentMediaType=l[0],Object.assign(o,i)):(Object.assign(o,i),o.anyOf=l.map(c=>({contentMediaType:c}))):Object.assign(o,i)},$R=(e,t,n,r)=>{n.type="boolean"},LR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},UR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},FR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},WR=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},BR=(e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=Nt(i.element,t,{...r,path:[...r.path,"items"]})},HR=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object",o.properties={};const a=i.shape;for(const c in a)o.properties[c]=Nt(a[c],t,{...r,path:[...r.path,"properties",c]});const s=new Set(Object.keys(a)),l=new Set([...s].filter(c=>{const h=i.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));l.size>0&&(o.required=Array.from(l)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Nt(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},zx=(e,t,n,r)=>{const o=e._zod.def,i=o.inclusive===!1,a=o.options.map((s,l)=>Nt(s,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=a:n.anyOf=a},qR=(e,t,n,r)=>{const o=e._zod.def,i=Nt(o.left,t,{...r,path:[...r.path,"allOf",0]}),a=Nt(o.right,t,{...r,path:[...r.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=l},VR=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((p,f)=>Nt(p,t,{...r,path:[...r.path,a,f]})),c=i.rest?Nt(i.rest,t,{...r,path:[...r.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=l,c&&(o.items=c)):t.target==="openapi-3.0"?(o.items={anyOf:l},c&&o.items.anyOf.push(c),o.minItems=l.length,c||(o.maxItems=l.length)):(o.items=l,c&&(o.additionalItems=c));const{minimum:h,maximum:d}=e._zod.bag;typeof h=="number"&&(o.minItems=h),typeof d=="number"&&(o.maxItems=d)},KR=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object";const a=i.keyType,l=a._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){const h=Nt(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const d of l)o.patternProperties[d.source]=h}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Nt(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Nt(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=a._zod.values;if(c){const h=[...c].filter(d=>typeof d=="string"||typeof d=="number");h.length>0&&(o.required=h)}},GR=(e,t,n,r)=>{const o=e._zod.def,i=Nt(o.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},YR=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},ZR=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},JR=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},QR=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},XR=(e,t,n,r)=>{const o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Nt(i,t,r);const a=t.seen.get(e);a.ref=i},eM=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},tM=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},Ux=(e,t,n,r)=>{const o=e._zod.def;Nt(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},nM=(e,t,n,r)=>{const o=e._zod.innerType;Nt(o,t,r);const i=t.seen.get(e);i.ref=o},Uw={string:vR,number:kR,boolean:xR,bigint:_R,symbol:SR,null:TR,undefined:IR,void:ER,never:AR,any:CR,unknown:NR,date:PR,enum:DR,literal:OR,nan:RR,template_literal:MR,file:jR,success:$R,custom:LR,function:zR,transform:UR,map:FR,set:WR,array:BR,object:HR,union:zx,intersection:qR,tuple:VR,record:KR,nullable:GR,nonoptional:YR,default:ZR,prefault:JR,catch:QR,pipe:XR,readonly:eM,promise:tM,optional:Ux,lazy:nM};function rM(e,t){if("_idmap"in e){const r=e,o=nc({...t,processors:Uw}),i={};
41for(const l of r._idmap.entries()){const[c,h]=l;Nt(h,o)}const a={},s={registry:r,uri:t?.uri,defs:i};o.external=s;for(const l of r._idmap.entries()){const[c,h]=l;rc(o,h),a[c]=oc(o,h)}if(Object.keys(i).length>0){const l=o.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}const n=nc({...t,processors:Uw});return Nt(e,n),rc(n,e),oc(n,e)}class w9{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=nc({processors:Uw,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Nt(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),rc(this.ctx,t);const r=oc(this.ctx,t),{"~standard":o,...i}=r;return i}}const v9=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),k9=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:qD,$ZodArray:ZD,$ZodAsyncError:bs,$ZodBase64:OD,$ZodBase64URL:MD,$ZodBigInt:cx,$ZodBigIntFormat:FD,$ZodBoolean:lx,$ZodCIDRv4:PD,$ZodCIDRv6:DD,$ZodCUID:wD,$ZodCUID2:vD,$ZodCatch:yO,$ZodCheck:Gt,$ZodCheckBigIntFormat:YP,$ZodCheckEndsWith:sD,$ZodCheckGreaterThan:ix,$ZodCheckIncludes:iD,$ZodCheckLengthEquals:tD,$ZodCheckLessThan:ox,$ZodCheckLowerCase:rD,$ZodCheckMaxLength:XP,$ZodCheckMaxSize:ZP,$ZodCheckMimeType:cD,$ZodCheckMinLength:eD,$ZodCheckMinSize:JP,$ZodCheckMultipleOf:KP,$ZodCheckNumberFormat:GP,$ZodCheckOverwrite:uD,$ZodCheckProperty:lD,$ZodCheckRegex:nD,$ZodCheckSizeEquals:QP,$ZodCheckStartsWith:aD,$ZodCheckStringFormat:jd,$ZodCheckUpperCase:oD,$ZodCodec:hx,$ZodCustom:TO,$ZodCustomStringFormat:zD,$ZodDate:YD,$ZodDefault:mO,$ZodDiscriminatedUnion:nO,$ZodE164:jD,$ZodEmail:fD,$ZodEmoji:yD,$ZodEncodeError:ff,$ZodEnum:sO,$ZodError:Hk,$ZodExactOptional:dO,$ZodFile:cO,$ZodFunction:xO,$ZodGUID:mD,$ZodIPv4:AD,$ZodIPv6:CD,$ZodISODate:TD,$ZodISODateTime:SD,$ZodISODuration:ED,$ZodISOTime:ID,$ZodIntersection:rO,$ZodJWT:LD,$ZodKSUID:_D,$ZodLazy:SO,$ZodLiteral:lO,$ZodMAC:ND,$ZodMap:iO,$ZodNaN:bO,$ZodNanoID:bD,$ZodNever:KD,$ZodNonOptional:fO,$ZodNull:HD,$ZodNullable:hO,$ZodNumber:sx,$ZodNumberFormat:UD,$ZodObject:XD,$ZodObjectJIT:eO,$ZodOptional:dx,$ZodPipe:wO,$ZodPrefault:pO,$ZodPromise:_O,$ZodReadonly:vO,$ZodRealError:Gr,$ZodRecord:oO,$ZodRegistry:DO,$ZodSet:aO,$ZodString:$d,$ZodStringFormat:Rt,$ZodSuccess:gO,$ZodSymbol:WD,$ZodTemplateLiteral:kO,$ZodTransform:uO,$ZodTuple:ux,$ZodType:Ge,$ZodULID:kD,$ZodURL:gD,$ZodUUID:pD,$ZodUndefined:BD,$ZodUnion:vf,$ZodUnknown:VD,$ZodVoid:GD,$ZodXID:xD,$ZodXor:tO,$brand:WN,$constructor:B,$input:PO,$output:NO,Doc:dD,JSONSchema:v9,JSONSchemaGenerator:w9,NEVER:FN,TimePrecision:jO,_any:rR,_array:uR,_base64:Nx,_base64url:Px,_bigint:ZO,_boolean:GO,_catch:h9,_check:fR,_cidrv4:Ax,_cidrv6:Cx,_coercedBigint:JO,_coercedBoolean:YO,_coercedDate:lR,_coercedNumber:WO,_coercedString:RO,_cuid:kx,_cuid2:xx,_custom:hR,_date:sR,_decode:Gk,_decodeAsync:Zk,_default:c9,_discriminatedUnion:Jq,_e164:Dx,_email:px,_emoji:wx,_encode:Kk,_encodeAsync:Yk,_endsWith:Ef,_enum:r9,_file:dR,_float32:HO,_float64:qO,_gt:Ea,_gte:Ir,_guid:dp,_includes:Tf,_int:BO,_int32:VO,_int64:QO,_intersection:Qq,_ipv4:Ix,_ipv6:Ex,_isoDate:LO,_isoDateTime:$O,_isoDuration:UO,_isoTime:zO,_jwt:Ox,_ksuid:Tx,_lazy:g9,_length:Ud,_literal:i9,_lowercase:_f,_lt:Ia,_lte:co,_mac:MO,_map:t9,_max:co,_maxLength:zd,_maxSize:Sc,_mime:Af,_min:Ir,_minLength:_s,_minSize:Aa,_multipleOf:tc,_nan:cR,_nanoid:vx,_nativeEnum:o9,_negative:Mx,_never:iR,_nonnegative:$x,_nonoptional:u9,_nonpositive:jx,_normalize:Cf,_null:nR,_nullable:l9,_number:FO,_optional:s9,_overwrite:$i,_parse:Nd,_parseAsync:Pd,_pipe:m9,_positive:Rx,_promise:y9,_property:Lx,_readonly:p9,_record:e9,_refine:mR,_regex:xf,_safeDecode:Qk,_safeDecodeAsync:ex,_safeEncode:Jk,_safeEncodeAsync:Xk,_safeParse:Dd,_safeParseAsync:Od,_set:n9,_size:Ld,_slugify:Of,_startsWith:If,_string:OO,_stringFormat:Fd,_stringbool:bR,_success:d9,_superRefine:pR,_symbol:eR,_templateLiteral
vendor: 5,493 bytes, line 41
41:f9,_toLowerCase:Pf,_toUpperCase:Df,_transform:a9,_trim:Nf,_tuple:Xq,_uint32:KO,_uint64:XO,_ulid:_x,_undefined:tR,_union:Yq,_unknown:oR,_uppercase:Sf,_url:kf,_uuid:fx,_uuidv4:gx,_uuidv6:yx,_uuidv7:bx,_void:aR,_xid:Sx,_xor:Zq,clone:xo,config:er,createStandardJSONSchemaMethod:ed,createToJSONSchemaMethod:wR,decode:OB,decodeAsync:MB,describe:gR,encode:DB,encodeAsync:RB,extractDefs:rc,finalize:oc,flattenError:qk,formatError:Vk,globalConfig:sp,globalRegistry:lo,initializeContext:nc,isValidBase64:ax,isValidBase64URL:RD,isValidJWT:$D,locales:CO,meta:yR,parse:$w,parseAsync:Lw,prettifyError:cP,process:Nt,regexes:rx,registry:mx,safeDecode:$B,safeDecodeAsync:zB,safeEncode:jB,safeEncodeAsync:LB,safeParse:uP,safeParseAsync:dP,toDotPath:lP,toJSONSchema:rM,treeifyError:sP,util:iP,version:hD},Symbol.toStringTag,{value:"Module"})),x9=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Ef,gt:Ea,gte:Ir,includes:Tf,length:Ud,lowercase:_f,lt:Ia,lte:co,maxLength:zd,maxSize:Sc,mime:Af,minLength:_s,minSize:Aa,multipleOf:tc,negative:Mx,nonnegative:$x,nonpositive:jx,normalize:Cf,overwrite:$i,positive:Rx,property:Lx,regex:xf,size:Ld,slugify:Of,startsWith:If,toLowerCase:Pf,toUpperCase:Df,trim:Nf,uppercase:Sf},Symbol.toStringTag,{value:"Module"})),Fx=B("ZodISODateTime",(e,t)=>{SD.init(e,t),Mt.init(e,t)});function An(e){return $O(Fx,e)}const Wx=B("ZodISODate",(e,t)=>{TD.init(e,t),Mt.init(e,t)});function oM(e){return LO(Wx,e)}const Bx=B("ZodISOTime",(e,t)=>{ID.init(e,t),Mt.init(e,t)});function iM(e){return zO(Bx,e)}const Hx=B("ZodISODuration",(e,t)=>{ED.init(e,t),Mt.init(e,t)});function aM(e){return UO(Hx,e)}const sM=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Wx,ZodISODateTime:Fx,ZodISODuration:Hx,ZodISOTime:Bx,date:oM,datetime:An,duration:aM,time:iM},Symbol.toStringTag,{value:"Module"})),lM=(e,t)=>{Hk.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Vk(e,n)},flatten:{value:n=>qk(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,lp,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,lp,2)}},isEmpty:{get(){return e.issues.length===0}}})},_9=B("ZodError",lM),Yr=B("ZodError",lM,{Parent:Error}),cM=Nd(Yr),uM=Pd(Yr),dM=Dd(Yr),hM=Od(Yr),mM=Kk(Yr),pM=Gk(Yr),fM=Yk(Yr),gM=Zk(Yr),yM=Jk(Yr),bM=Qk(Yr),wM=Xk(Yr),vM=ex(Yr),Qe=B("ZodType",(e,t)=>(Ge.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ed(e,"input"),output:ed(e,"output")}}),e.toJSONSchema=wR(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(yi(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>xo(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>cM(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>dM(e,n,r),e.parseAsync=async(n,r)=>uM(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>hM(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>mM(e,n,r),e.decode=(n,r)=>pM(e,n,r),e.encodeAsync=async(n,r)=>fM(e,n,r),e.decodeAsync=async(n,r)=>gM(e,n,r),e.safeEncode=(n,r)=>yM(e,n,r),e.safeDecode=(n,r)=>bM(e,n,r),e.safeEncodeAsync=async(n,r)=>wM(e,n,r),e.safeDecodeAsync=async(n,r)=>vM(e,n,r),e.refine=(n,r)=>e.check(C0(n,r)),e.superRefine=n=>e.check(N0(n)),e.overwrite=n=>e.check($i(n)),e.optional=()=>nd(e),e.exactOptional=()=>h0(e),e.nullable=()=>rd(e),e.nullish=()=>nd(rd(e)),e.nonoptional=n=>b0(e,n),e.array=()=>N(e),e.or=n=>In([e,n]),e.and=n=>r0(e,n),e.transform=n=>od(e,eg(n)),e.default=n=>f0(e,n),e.prefault=n=>y0(e,n),e.catch=n=>k0(e,n),e.pipe=n=>od(e,n),e.readonly=()=>S0(e),e.describe=n=>{const r=e.clone();return lo.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return lo.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return lo.get(e);const r=e.clone();return lo.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Rf=B("_ZodString",(e,t)=>{$d.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(r,o,i)=>vR(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(xf(...r)),e.includes=(...r)=>e.check(Tf(...r)),e.startsWith=(...r)=>e.check(If(...r)),e.endsWith=(...r)=>e.check(Ef(...r)),e.min=(...r)=>e.check(_s(...r)),e.max=(...r)=>e.check(zd(...r)),e.length=(...r)=>e.check(Ud(...r)),e.nonempty=(...r)=>e.check(_s(1,...r)),e.lowercase=r=>e.check(_f(r)),e.uppercase=r=>e.check(Sf(r)),e.trim=()=>e.check(Nf()),e.normalize=(...r)=>e.check(Cf(...r)),e.toLowerCase=()=>e.check(Pf()),e.toUpperCase=()=>e.check(Df()),e.slugify=()=>e.check(Of())}),Wd=B("ZodString",(e,t)=>{$d.init(e,t),Rf.init(e,t),e.email=n=>e.check(px(Mf,n)),e.url=n=>e.check(kf(Hd,n)),e.jwt=n=>e.check(Ox(Zf,n)),e.emoji=n=>e.check(wx(jf,n)),e.guid=n=>e.check(dp(td,n)),e.uuid=n=>e.check(fx(di,n)),e.uuidv4=n=>e.check(gx(di,n)),e.uuidv6=n=>e.check(yx(di,n)),e.uuidv7=n=>e.check(bx(di,n)),e.nanoid=n=>e.check(vx($f,n)),e.guid=n=>e.check(dp(td,n)),e.cuid=n=>e.check(kx(Lf,n)),e.cuid2=n=>e.check(xx(zf,n)),e.ulid=n=>e.check(_x(Uf,n)),e.base64=n=>e.check(Nx(Kf,n)),e.base64url=n=>e.check(Px(Gf,n)),e.xid=n=>e.check(Sx(Ff,n)),e.ksuid=n=>e.check(Tx(Wf,n)),e.ipv4=n=>e.check(Ix(Bf,n)),e.ipv6=n=>e.check(Ex(Hf,n)),e.cidrv4=n=>e.check(Ax(qf,n)),e.cidrv6=n=>e.check(Cx(Vf,n)),e.e164=n=>e.check(Dx(Yf,n)),e.datetime=n=>e.check(An(n)),e.date=n=>e.check(oM(n)),e.time=n=>e.check(iM(n)),e.duration=n=>
41e.check(aM(n))});function m(e){return OO(Wd,e)}const Mt=B("ZodStringFormat",(e,t)=>{Rt.init(e,t),Rf.init(e,t)}),Mf=B("ZodEmail",(e,t)=>{fD.init(e,t),Mt.init(e,t)});function Bd(e){return px(Mf,e)}const td=B("ZodGUID",(e,t)=>{mD.init(e,t),Mt.init(e,t)});function kM(e){return dp(td,e)}const di=B("ZodUUID",(e,t)=>{pD.init(e,t),Mt.init(e,t)});function xM(e){return fx(di,e)}function _M(e){return gx(di,e)}function SM(e){return yx(di,e)}function TM(e){return bx(di,e)}const Hd=B("ZodURL",(e,t)=>{gD.init(e,t),Mt.init(e,t)});function Tn(e){return kf(Hd,e)}function IM(e){return kf(Hd,{protocol:/^https?$/,hostname:NP,...re(e)})}const jf=B("ZodEmoji",(e,t)=>{yD.init(e,t),Mt.init(e,t)});function EM(e){return wx(jf,e)}const $f=B("ZodNanoID",(e,t)=>{bD.init(e,t),Mt.init(e,t)});function AM(e){return vx($f,e)}const Lf=B("ZodCUID",(e,t)=>{wD.init(e,t),Mt.init(e,t)});function CM(e){return kx(Lf,e)}const zf=B("ZodCUID2",(e,t)=>{vD.init(e,t),Mt.init(e,t)});function NM(e){return xx(zf,e)}const Uf=B("ZodULID",(e,t)=>{kD.init(e,t),Mt.init(e,t)});function PM(e){return _x(Uf,e)}const Ff=B("ZodXID",(e,t)=>{xD.init(e,t),Mt.init(e,t)});function DM(e){return Sx(Ff,e)}const Wf=B("ZodKSUID",(e,t)=>{_D.init(e,t),Mt.init(e,t)});function OM(e){return Tx(Wf,e)}const Bf=B("ZodIPv4",(e,t)=>{AD.init(e,t),Mt.init(e,t)});function RM(e){return Ix(Bf,e)}const qx=B("ZodMAC",(e,t)=>{ND.init(e,t),Mt.init(e,t)});function MM(e){return MO(qx,e)}const Hf=B("ZodIPv6",(e,t)=>{CD.init(e,t),Mt.init(e,t)});function jM(e){return Ex(Hf,e)}const qf=B("ZodCIDRv4",(e,t)=>{PD.init(e,t),Mt.init(e,t)});function $M(e){return Ax(qf,e)}const Vf=B("ZodCIDRv6",(e,t)=>{DD.init(e,t),Mt.init(e,t)});function LM(e){return Cx(Vf,e)}const Kf=B("ZodBase64",(e,t)=>{OD.init(e,t),Mt.init(e,t)});function zM(e){return Nx(Kf,e)}const Gf=B("ZodBase64URL",(e,t)=>{MD.init(e,t),Mt.init(e,t)});function UM(e){return Px(Gf,e)}const Yf=B("ZodE164",(e,t)=>{jD.init(e,t),Mt.init(e,t)});function FM(e){return Dx(Yf,e)}const Zf=B("ZodJWT",(e,t)=>{LD.init(e,t),Mt.init(e,t)});function WM(e){return Ox(Zf,e)}const Tc=B("ZodCustomStringFormat",(e,t)=>{zD.init(e,t),Mt.init(e,t)});function BM(e,t,n={}){return Fd(Tc,e,t,n)}function HM(e){return Fd(Tc,"hostname",CP,e)}function qM(e){return Fd(Tc,"hex",qP,e)}function VM(e,t){const n=t?.enc??"hex",r=`${e}_${n}`,o=rx[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return Fd(Tc,r,o,t)}const qd=B("ZodNumber",(e,t)=>{sx.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(r,o,i)=>kR(e,r,o),e.gt=(r,o)=>e.check(Ea(r,o)),e.gte=(r,o)=>e.check(Ir(r,o)),e.min=(r,o)=>e.check(Ir(r,o)),e.lt=(r,o)=>e.check(Ia(r,o)),e.lte=(r,o)=>e.check(co(r,o)),e.max=(r,o)=>e.check(co(r,o)),e.int=r=>e.check(hp(r)),e.safe=r=>e.check(hp(r)),e.positive=r=>e.check(Ea(0,r)),e.nonnegative=r=>e.check(Ir(0,r)),e.negative=r=>e.check(Ia(0,r)),e.nonpositive=r=>e.check(co(0,r)),e.multipleOf=(r,o)=>e.check(tc(r,o)),e.step=(r,o)=>e.check(tc(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function j(e){return FO(qd,e)}const Us=B("ZodNumberFormat",(e,t)=>{UD.init(e,t),qd.init(e,t)});function hp(e){return BO(Us,e)}function KM(e){return HO(Us,e)}function GM(e){return qO(Us,e)}function YM(e){return VO(Us,e)}function ZM(e){return KO(Us,e)}const Vd=B("ZodBoolean",(e,t)=>{lx.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xR(e,n,r)});function te(e){return GO(Vd,e)}const Kd=B("ZodBigInt",(e,t)=>{cx.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(r,o,i)=>_R(e,r),e.gte=(r,o)=>e.check(Ir(r,o)),e.min=(r,o)=>e.check(Ir(r,o)),e.gt=(r,o)=>e.check(Ea(r,o)),e.gte=(r,o)=>e.check(Ir(r,o)),e.min=(r,o)=>e.check(Ir(r,o)),e.lt=(r,o)=>e.check(Ia(r,o)),e.lte=(r,o)=>e.check(co(r,o)),e.max=(r,o)=>e.check(co(r,o)),e.positive=r=>e.check(Ea(BigInt(0),r)),e.negative=r=>e.check(Ia(BigInt(0),r)),e.nonpositive=r=>e.check(co(BigInt(0),r)),e.nonnegative=r=>e.check(Ir(BigInt(0),r)),e.multipleOf=(r,o)=>e.check(tc(r,o));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function JM(e){return ZO(Kd,e)}const Jf=B("ZodBigIntFormat",(e,t)=>{FD.init(e,t),Kd.init(e,t)});function QM(e){return QO(Jf,e)}function XM(e){return XO(Jf,e)}const Vx=B("ZodSymbol",(e,t)=>{WD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>SR(e,n)});function ej(e){return eR(Vx,e)}const Kx=B("ZodUndefined",(e,t)=>{BD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>IR(e,n)});function tj(e){return tR(Kx,e)}const Gx=B("ZodNull",(e,t)=>{HD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TR(e,n,r)});function ws(e){return nR(Gx,e)}const Yx=B("ZodAny",(e,t)=>{qD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>CR()});function nj(){return rR(Yx)}const Zx=B("ZodUnknown",(e,t)=>{VD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NR()});
vendor: 4,786 bytes, line 41
41function bn(){return oR(Zx)}const Jx=B("ZodNever",(e,t)=>{KD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>AR(e,n,r)});function Qf(e){return iR(Jx,e)}const Qx=B("ZodVoid",(e,t)=>{GD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ER(e,n)});function rj(e){return aR(Qx,e)}const Xf=B("ZodDate",(e,t)=>{YD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(r,o,i)=>PR(e,r),e.min=(r,o)=>e.check(Ir(r,o)),e.max=(r,o)=>e.check(co(r,o));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function oj(e){return sR(Xf,e)}const Xx=B("ZodArray",(e,t)=>{ZD.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>BR(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(_s(n,r)),e.nonempty=n=>e.check(_s(1,n)),e.max=(n,r)=>e.check(zd(n,r)),e.length=(n,r)=>e.check(Ud(n,r)),e.unwrap=()=>e.element});function N(e,t){return uR(Xx,e,t)}function ij(e){const t=e._zod.def.shape;return R(Object.keys(t))}const Gd=B("ZodObject",(e,t)=>{eO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>HR(e,n,r,o),nt(e,"shape",()=>t.shape),e.keyof=()=>R(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bn()}),e.loose=()=>e.clone({...e._zod.def,catchall:bn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Qf()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>QN(e,n),e.safeExtend=n=>XN(e,n),e.merge=n=>eP(e,n),e.pick=n=>ZN(e,n),e.omit=n=>JN(e,n),e.partial=(...n)=>tP(tg,e,n[0]),e.required=(...n)=>nP(ng,e,n[0])});function v(e,t){const n={type:"object",shape:e??{},...re(t)};return new Gd(n)}function aj(e,t){return new Gd({type:"object",shape:e,catchall:Qf(),...re(t)})}function sj(e,t){return new Gd({type:"object",shape:e,catchall:bn(),...re(t)})}const Yd=B("ZodUnion",(e,t)=>{vf.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zx(e,n,r,o),e.options=t.options});function In(e,t){return new Yd({type:"union",options:e,...re(t)})}const e0=B("ZodXor",(e,t)=>{Yd.init(e,t),tO.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zx(e,n,r,o),e.options=t.options});function lj(e,t){return new e0({type:"union",options:e,inclusive:!1,...re(t)})}const t0=B("ZodDiscriminatedUnion",(e,t)=>{Yd.init(e,t),nO.init(e,t)});function Bn(e,t,n){return new t0({type:"union",options:t,discriminator:e,...re(n)})}const n0=B("ZodIntersection",(e,t)=>{rO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qR(e,n,r,o)});function r0(e,t){return new n0({type:"intersection",left:e,right:t})}const o0=B("ZodTuple",(e,t)=>{ux.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>VR(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function i0(e,t,n){const r=t instanceof Ge,o=r?n:t,i=r?t:null;return new o0({type:"tuple",items:e,rest:i,...re(o)})}const Zd=B("ZodRecord",(e,t)=>{oO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>KR(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function jt(e,t,n){return new Zd({type:"record",keyType:e,valueType:t,...re(n)})}function cj(e,t,n){const r=xo(e);return r._zod.values=void 0,new Zd({type:"record",keyType:r,valueType:t,...re(n)})}function uj(e,t,n){return new Zd({type:"record",keyType:e,valueType:t,mode:"loose",...re(n)})}const a0=B("ZodMap",(e,t)=>{iO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>FR(e,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Aa(...n)),e.nonempty=n=>e.check(Aa(1,n)),e.max=(...n)=>e.check(Sc(...n)),e.size=(...n)=>e.check(Ld(...n))});function dj(e,t,n){return new a0({type:"map",keyType:e,valueType:t,...re(n)})}const s0=B("ZodSet",(e,t)=>{aO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>WR(e,n),e.min=(...n)=>e.check(Aa(...n)),e.nonempty=n=>e.check(Aa(1,n)),e.max=(...n)=>e.check(Sc(...n)),e.size=(...n)=>e.check(Ld(...n))});function hj(e,t){return new s0({type:"set",valueType:e,...re(t)})}const ic=B("ZodEnum",(e,t)=>{sO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(r,o,i)=>DR(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const a of r)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ic({...t,checks:[],...re(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const a of r)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ic({...t,checks:[],...re(o),entries:i})}});function R(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ic({type:"enum",entries:n,...re(t)})}function mj(e,t){return new ic({type:"enum",entries:e,...re(t)})}const l0=B("ZodLiteral",(e,t)=>{lO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>OR(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
41(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function we(e,t){return new l0({type:"literal",values:Array.isArray(e)?e:[e],...re(t)})}const c0=B("ZodFile",(e,t)=>{cO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jR(e,n,r),e.min=(n,r)=>e.check(Aa(n,r)),e.max=(n,r)=>e.check(Sc(n,r)),e.mime=(n,r)=>e.check(Af(Array.isArray(n)?n:[n],r))});function pj(e){return dR(c0,e)}const u0=B("ZodTransform",(e,t)=>{uO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>UR(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ff(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Xl(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Xl(a))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function eg(e){return new u0({type:"transform",transform:e})}const tg=B("ZodOptional",(e,t)=>{dx.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ux(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function nd(e){return new tg({type:"optional",innerType:e})}const d0=B("ZodExactOptional",(e,t)=>{dO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ux(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function h0(e){return new d0({type:"optional",innerType:e})}const m0=B("ZodNullable",(e,t)=>{hO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>GR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new m0({type:"nullable",innerType:e})}function fj(e){return nd(rd(e))}const p0=B("ZodDefault",(e,t)=>{mO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ZR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function f0(e,t){return new p0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():yf(t)}})}const g0=B("ZodPrefault",(e,t)=>{pO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>JR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function y0(e,t){return new g0({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():yf(t)}})}const ng=B("ZodNonOptional",(e,t)=>{fO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>YR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function b0(e,t){return new ng({type:"nonoptional",innerType:e,...re(t)})}const w0=B("ZodSuccess",(e,t)=>{gO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$R(e,n,r),e.unwrap=()=>e._zod.def.innerType});function gj(e){return new w0({type:"success",innerType:e})}const v0=B("ZodCatch",(e,t)=>{yO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>QR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function k0(e,t){return new v0({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const x0=B("ZodNaN",(e,t)=>{bO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>RR(e,n)});function yj(e){return cR(x0,e)}const rg=B("ZodPipe",(e,t)=>{wO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>XR(e,n,r,o),e.in=t.in,e.out=t.out});function od(e,t){return new rg({type:"pipe",in:e,out:t})}const og=B("ZodCodec",(e,t)=>{rg.init(e,t),hx.init(e,t)});function bj(e,t,n){return new og({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const _0=B("ZodReadonly",(e,t)=>{vO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eM(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function S0(e){return new _0({type:"readonly",innerType:e})}const T0=B("ZodTemplateLiteral",(e,t)=>{kO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>MR(e,n,r)});function wj(e,t){return new T0({type:"template_literal",parts:e,...re(t)})}const I0=B("ZodLazy",(e,t)=>{SO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nM(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function ig(e){return new I0({type:"lazy",getter:e})}const E0=B("ZodPromise",(e,t)=>{_O.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tM(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function vj(e){return new E0({type:"promise",innerType:e})}const A0=B("ZodFunction",(e,t)=>{xO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zR(e,n)});function mp(e){return new A0({type:"function",input:Array.isArray(e?.input)?i0(e?.input):e?.input??N(bn()),output:e?.output??bn()})}const Jd=B("ZodCustom",(e,t)=>{TO.init(e,t),Qe.init(e,t),e._zod.processJSONSchema=(n,r,o)=>LR(e,n)});function kj(e){const t=new Gt({check:"custom"});return t._zod.check=e,t}function xj(e,t){return hR(Jd,e??(()=>!0),t)}function C0(e,t={}){return mR(Jd,e,t)}function N0(e){return pR(e)}const _j=gR,Sj=yR;function Tj(e,t={}){const n=new Jd({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...re(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}const Ln=(...e)=>bR({Codec:og,Boolean:Vd,String:Wd},...e);function Ij(e){const t=ig(()=>In([m(e),j(),te(),ws(),N(t),jt(m(),t)]));return t}function Ei(e,t){return od(eg(e),t)}const S9=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:Yx,ZodArray:Xx,ZodBase64:Kf,ZodBase64URL:Gf,ZodBigInt:Kd,ZodBigIntFormat:Jf,ZodBoolean:Vd,ZodCIDRv4:qf,ZodCIDRv6:Vf,ZodCUID:Lf,ZodCUID2:zf,ZodCatch:v0,ZodCodec:og,ZodCustom:Jd,ZodCustomStringFormat:Tc,ZodDate:Xf,ZodDefault:p0,ZodDiscriminatedUnion:t0,ZodE164:Yf,ZodEmail:Mf,ZodEmoji:jf,ZodEnum:ic,ZodExactOptional:d0,ZodFile:c0,ZodFunction:A0,ZodGUID:td,ZodIPv4:Bf,ZodIPv6:Hf,ZodIntersection:n0,ZodJWT:Zf,ZodKSUID:Wf,ZodLazy:I0,ZodLiteral:l0,ZodMAC:qx,ZodMap:a0,ZodNaN:x0,ZodNanoID:$f,ZodNever:Jx,ZodNonOptional:ng,ZodNull:Gx,ZodNullable:m0,ZodNumber:qd,ZodNumberFormat:Us,ZodObject:Gd,ZodOptional:tg,ZodPipe:rg,ZodPrefault:g0,ZodPromise:E0,ZodReadonly:_0,ZodRecord:Zd,ZodSet:s0,ZodString:Wd,ZodStringFormat:Mt,ZodSuccess:w0,ZodSymbol:Vx,ZodTemplateLiteral
41:T0,ZodTransform:u0,ZodTuple:o0,ZodType:Qe,ZodULID:Uf,ZodURL:Hd,ZodUUID:di,ZodUndefined:Kx,ZodUnion:Yd,ZodUnknown:Zx,ZodVoid:Qx,ZodXID:Ff,ZodXor:e0,_ZodString:Rf,_default:f0,_function:mp,any:nj,array:N,base64:zM,base64url:UM,bigint:JM,boolean:te,catch:k0,check:kj,cidrv4:$M,cidrv6:LM,codec:bj,cuid:CM,cuid2:NM,custom:xj,date:oj,describe:_j,discriminatedUnion:Bn,e164:FM,email:Bd,emoji:EM,enum:R,exactOptional:h0,file:pj,float32:KM,float64:GM,function:mp,guid:kM,hash:VM,hex:qM,hostname:HM,httpUrl:IM,instanceof:Tj,int:hp,int32:YM,int64:QM,intersection:r0,ipv4:RM,ipv6:jM,json:Ij,jwt:WM,keyof:ij,ksuid:OM,lazy:ig,literal:we,looseObject:sj,looseRecord:uj,mac:MM,map:dj,meta:Sj,nan:yj,nanoid:AM,nativeEnum:mj,never:Qf,nonoptional:b0,null:ws,nullable:rd,nullish:fj,number:j,object:v,optional:nd,partialRecord:cj,pipe:od,prefault:y0,preprocess:Ei,promise:vj,readonly:S0,record:jt,refine:C0,set:hj,strictObject:aj,string:m,stringFormat:BM,stringbool:Ln,success:gj,superRefine:N0,symbol:ej,templateLiteral:wj,transform:eg,tuple:i0,uint32:ZM,uint64:XM,ulid:PM,undefined:tj,union:In,unknown:bn,url:Tn,uuid:xM,uuidv4:_M,uuidv6:SM,uuidv7:TM,void:rj,xid:DM,xor:lj},Symbol.toStringTag,{value:"Module"})),Tu={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function T9(e){er({customError:e})}function I9(){return er().customError}var Fw;Fw||(Fw={});const Se={...S9,...x9,iso:sM},E9=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function A9(e,t){const n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function C9(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;const r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){const o=n[1];if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function Ej(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Se.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return Se.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);const i=C9(o,t),a=Yn(i,t);return t.refs.set(o,a),t.processing.delete(o),a}if(e.enum!==void 0){const o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return Se.null();if(o.length===0)return Se.never();if(o.length===1)return Se.literal(o[0]);if(o.every(a=>
vendor: 6,583 bytes, line 41
41typeof a=="string"))return Se.enum(o);const i=o.map(a=>Se.literal(a));return i.length<2?i[0]:Se.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return Se.literal(e.const);const n=e.type;if(Array.isArray(n)){const o=n.map(i=>{const a={...e,type:i};return Ej(a,t)});return o.length===0?Se.never():o.length===1?o[0]:Se.union(o)}if(!n)return Se.any();let r;switch(n){case"string":{let o=Se.string();if(e.format){const i=e.format;i==="email"?o=o.check(Se.email()):i==="uri"||i==="uri-reference"?o=o.check(Se.url()):i==="uuid"||i==="guid"?o=o.check(Se.uuid()):i==="date-time"?o=o.check(Se.iso.datetime()):i==="date"?o=o.check(Se.iso.date()):i==="time"?o=o.check(Se.iso.time()):i==="duration"?o=o.check(Se.iso.duration()):i==="ipv4"?o=o.check(Se.ipv4()):i==="ipv6"?o=o.check(Se.ipv6()):i==="mac"?o=o.check(Se.mac()):i==="cidr"?o=o.check(Se.cidrv4()):i==="cidr-v6"?o=o.check(Se.cidrv6()):i==="base64"?o=o.check(Se.base64()):i==="base64url"?o=o.check(Se.base64url()):i==="e164"?o=o.check(Se.e164()):i==="jwt"?o=o.check(Se.jwt()):i==="emoji"?o=o.check(Se.emoji()):i==="nanoid"?o=o.check(Se.nanoid()):i==="cuid"?o=o.check(Se.cuid()):i==="cuid2"?o=o.check(Se.cuid2()):i==="ulid"?o=o.check(Se.ulid()):i==="xid"?o=o.check(Se.xid()):i==="ksuid"&&(o=o.check(Se.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?Se.number().int():Se.number();typeof e.minimum=="number"&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=Se.boolean();break}case"null":{r=Se.null();break}case"object":{const o={},i=e.properties||{},a=new Set(e.required||[]);for(const[l,c]of Object.entries(i)){const h=Yn(c,t);o[l]=a.has(l)?h:h.optional()}if(e.propertyNames){const l=Yn(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Yn(e.additionalProperties,t):Se.any();if(Object.keys(o).length===0){r=Se.record(l,c);break}const h=Se.object(o).passthrough(),d=Se.looseRecord(l,c);r=Se.intersection(h,d);break}if(e.patternProperties){const l=e.patternProperties,c=Object.keys(l),h=[];for(const p of c){const f=Yn(l[p],t),b=Se.string().regex(new RegExp(p));h.push(Se.looseRecord(b,f))}const d=[];if(Object.keys(o).length>0&&d.push(Se.object(o).passthrough()),d.push(...h),d.length===0)r=Se.object({}).passthrough();else if(d.length===1)r=d[0];else{let p=Se.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=Se.intersection(p,d[f]);r=p}break}const s=Se.object(o);e.additionalProperties===!1?r=s.strict():typeof e.additionalProperties=="object"?r=s.catchall(Yn(e.additionalProperties,t)):r=s.passthrough();break}case"array":{const o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){const a=o.map(l=>Yn(l,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?Yn(i,t):void 0;s?r=Se.tuple(a).rest(s):r=Se.tuple(a),typeof e.minItems=="number"&&(r=r.check(Se.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(Se.maxLength(e.maxItems)))}else if(Array.isArray(i)){const a=i.map(l=>Yn(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Yn(e.additionalItems,t):void 0;s?r=Se.tuple(a).rest(s):r=Se.tuple(a),typeof e.minItems=="number"&&(r=r.check(Se.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(Se.maxLength(e.maxItems)))}else if(i!==void 0){const a=Yn(i,t);let s=Se.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),r=s}else r=Se.array(Se.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function Yn(e,t){if(typeof e=="boolean")return e?Se.any():Se.never();let n=Ej(e,t);const r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const s=e.anyOf.map(c=>Yn(c,t)),l=Se.union(s);n=r?Se.intersection(n,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){const s=e.oneOf.map(c=>Yn(c,t)),l=Se.xor(s);n=r?Se.intersection(n,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:Se.any();else{let s=r?n:Yn(e.allOf[0],t);const l=r?0:1;for(let c=l;c<e.allOf.length;c++)s=Se.intersection(s,Yn(e.allOf[c],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=Se.nullable(n)),e.readOnly===!0&&(n=Se.readonly(n));const o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const s of i)s in e&&(o[s]=e[s]);const a=["contentEncoding","contentMediaType","contentSchema"];for(const s of a)s in e&&(o[s]=e[s]);for(const s of Object.keys(e))E9.has(s)||(o[s]=e[s]);return Object.keys(o).length>0&&t.registry.add(n,o),n}function N9(e,t){if(typeof e=="boolean")return e?Se.any():Se.never();const n=A9(e,t?.defaultTarget),r=e.$defs||e.definitions||{},o={version:n,defs:r,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??lo};return Yn(e,o)}function P9(e){return RO(Wd,e)}function Fn(e){return WO(qd,e)}function Aj(e){return YO(Vd,e)}function D9(e){return JO(Kd,e)}function ue(e){return lR(Xf,e)}const O9=Object.freeze(Object.defineProperty({__proto__:null,bigint:D9,boolean:Aj,date:ue,number:Fn,string:P9},Symbol.toStringTag,{value:"Module"}));er(IO());const L=Object.freeze(Object.defineProperty({__proto__:null,$brand:WN,$input:PO,$output:NO,NEVER:FN,TimePrecision:jO,ZodAny:Yx,ZodArray:Xx,ZodBase64:Kf,ZodBase64URL:Gf,ZodBigInt:Kd,ZodBigIntFormat:Jf,ZodBoolean:Vd,ZodCIDRv4:qf,ZodCIDRv6:Vf,ZodCUID:Lf,ZodCUID2:zf,ZodCatch:v0,ZodCodec:og,ZodCustom:Jd,ZodCustomStringFormat:Tc,ZodDate:Xf,ZodDefault:p0,ZodDiscriminatedUnion:t0,ZodE164:Yf,ZodEmail:Mf,ZodEmoji:jf,ZodEnum:ic,ZodError:_9,ZodExactOptional:d0,ZodFile:c0,get ZodFirstPartyTypeKind(){return Fw},ZodFunction:A0,ZodGUID:td,ZodIPv4:Bf,ZodIPv6:Hf,ZodISODate:Wx,ZodISODateTime:Fx,ZodISODuration:Hx,ZodISOTime:Bx,ZodIntersection:n0,ZodIssueCode:Tu,ZodJWT:Zf,ZodKSUID:Wf,ZodLazy:I0,ZodLiteral:l0,ZodMAC:qx,ZodMap:a0,ZodNaN:x0,ZodNanoID:$f,ZodNever:Jx,ZodNonOptional:ng,ZodNull:Gx,ZodNullable:m0,ZodNumber:qd,ZodNumberFormat:Us,ZodObject:Gd,ZodOptional:tg,ZodPipe:rg,ZodPrefault:g0,ZodPromise:E0,ZodReadonly:_0,ZodRealError:Yr,ZodRecord:Zd,ZodSet:s0,ZodString:Wd,ZodStringFormat:Mt,ZodSuccess:w0,ZodSymbol:Vx,ZodTemplateLiteral
41:T0,ZodTransform:u0,ZodTuple:o0,ZodType:Qe,ZodULID:Uf,ZodURL:Hd,ZodUUID:di,ZodUndefined:Kx,ZodUnion:Yd,ZodUnknown:Zx,ZodVoid:Qx,ZodXID:Ff,ZodXor:e0,_ZodString:Rf,_default:f0,_function:mp,any:nj,array:N,base64:zM,base64url:UM,bigint:JM,boolean:te,catch:k0,check:kj,cidrv4:$M,cidrv6:LM,clone:xo,codec:bj,coerce:O9,config:er,core:k9,cuid:CM,cuid2:NM,custom:xj,date:oj,decode:pM,decodeAsync:gM,describe:_j,discriminatedUnion:Bn,e164:FM,email:Bd,emoji:EM,encode:mM,encodeAsync:fM,endsWith:Ef,enum:R,exactOptional:h0,file:pj,flattenError:qk,float32:KM,float64:GM,formatError:Vk,fromJSONSchema:N9,function:mp,getErrorMap:I9,globalRegistry:lo,gt:Ea,gte:Ir,guid:kM,hash:VM,hex:qM,hostname:HM,httpUrl:IM,includes:Tf,instanceof:Tj,int:hp,int32:YM,int64:QM,intersection:r0,ipv4:RM,ipv6:jM,iso:sM,json:Ij,jwt:WM,keyof:ij,ksuid:OM,lazy:ig,length:Ud,literal:we,locales:CO,looseObject:sj,looseRecord:uj,lowercase:_f,lt:Ia,lte:co,mac:MM,map:dj,maxLength:zd,maxSize:Sc,meta:Sj,mime:Af,minLength:_s,minSize:Aa,multipleOf:tc,nan:yj,nanoid:AM,nativeEnum:mj,negative:Mx,never:Qf,nonnegative:$x,nonoptional:b0,nonpositive:jx,normalize:Cf,null:ws,nullable:rd,nullish:fj,number:j,object:v,optional:nd,overwrite:$i,parse:cM,parseAsync:uM,partialRecord:cj,pipe:od,positive:Rx,prefault:y0,preprocess:Ei,prettifyError:cP,promise:vj,property:Lx,readonly:S0,record:jt,refine:C0,regex:xf,regexes:rx,registry:mx,safeDecode:bM,safeDecodeAsync:vM,safeEncode:yM,safeEncodeAsync:wM,safeParse:dM,safeParseAsync:hM,set:hj,setErrorMap:T9,size:Ld,slugify:Of,startsWith:If,strictObject:aj,string:m,stringFormat:BM,stringbool:Ln,success:gj,superRefine:N0,symbol:ej,templateLiteral:wj,toJSONSchema:rM,toLowerCase:Pf,toUpperCase:Df,transform:eg,treeifyError:sP,trim:Nf,tuple:i0,uint32:ZM,uint64:XM,ulid:PM,undefined:tj,union:In,unknown:bn,uppercase:Sf,url:Tn,util:iP,uuid:xM,uuidv4:_M,uuidv6:SM,uuidv7:TM,void:rj,xid:DM,xor:lj},Symbol.toStringTag,{value:"Module"}));var Ww=function(e,t){return Ww=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ww(e,t)};function R9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ww(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Rn=function(){return Rn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Rn.apply(this,arguments)};function w1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ji(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(h){try{c(r.next(h))}catch(d){a(d)}}function l(h){try{c(r.throw(h))}catch(d){a(d)}}function c(h){h.done?i(h.value):o(h.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function Qi(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(h){c=[6,h],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function M9(e,t,n){for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Ro(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}const j9={timeoutInSeconds:60},v1="memory",Cj={name:"auth0-spa-js",version:"2.17.1"},Nj=()=>Date.now(),xr="default";
41class Lt extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Lt.prototype)}static fromPayload(t){let{error:n,error_description:r}=t;return new Lt(n,r)}}class P0 extends Lt{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;super(t,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,P0.prototype)}}class D0 extends Lt{constructor(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;super(t,n),this.connection=r,this.state=o,this.appState=i,Object.setPrototypeOf(this,D0.prototype)}}let ag=class Pj extends Lt{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Pj.prototype)}};class O0 extends ag{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,O0.prototype)}}class R0 extends Lt{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,R0.prototype)}}class M0 extends Lt{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,M0.prototype)}}let pp=class Dj extends Lt{constructor(t,n,r,o){super(t,n),this.mfa_token=r,this.mfa_requirements=o,Object.setPrototypeOf(this,Dj.prototype)}};class sg extends Lt{constructor(t,n){super("missing_refresh_token","Missing Refresh Token (audience: '".concat(fp(t,["default"]),"', scope: '").concat(fp(n),"')")),this.audience=t,this.scope=n,Object.setPrototypeOf(this,sg.prototype)}}let $9=class Oj extends Lt{constructor(t,n){super("missing_scopes","Missing requested scopes after refresh (audience: '".concat(fp(t,["default"]),"', missing scope: '").concat(fp(n),"')")),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Oj.prototype)}};class lg extends Lt{constructor(t){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=t,Object.setPrototypeOf(this,lg.prototype)}}function fp(e){return e&&!(arguments.length>1&&arguments[1]!==void 0?arguments[1]:[]).includes(e)?e:""}const gp=()=>window.crypto,tu=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(gp().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%66]),t},zy=e=>btoa(e),L9=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],Rj=function(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return Object.keys(e).reduce((n,r)=>{if(t&&r==="env")return n;const o=L9.find(i=>i.key===r);return o&&o.type.includes(typeof e[r])&&(n[r]=e[r]),n},{})},Bw=e=>{var{clientId:t}=e,n=Ro(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:r[i]}),{}))(Object.assign({client_id:t},n))).toString()},k1=async e=>await gp().subtle.digest({name:"SHA-256"},new TextEncoder().encode(e)),x1=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),_1=e=>{const t=new Uint8Array(e);return(n=>{const r={"+":"-","/":"_","=":""};return n.replace(/[+/=]/g,o=>r[o])})(window.btoa(String.fromCharCode(...Array.from(t))))};var Ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mj={},j0={};Object.defineProperty(j0,"__esModule",{value:!0});var z9=(function(){function e(){var t=this;this.locked=new Map,this.addToLocked=function(n,r){var o=t.locked.get(n);o===void 0?r===void 0?t.locked.set(n,[]):t.locked.set(n,[r]):r!==void 0&&(o.unshift(r),t.locked.set(n,o))},this.isLocked=function(n){return t.locked.has(n)},this.lock=function(n){return new Promise(function(r,o){t.isLocked(n)?t.addToLocked(n,r):(t.addToLocked(n),r())})},this.unlock=function(n){var r=t.locked.get(n);if(r!==void 0&&r.length!==0){var o=r.pop();t.locked.set(n,r),o!==void 0&&setTimeout(o,0)}else t.locked.delete(n)}}return e.getInstance=function(){return e.instance===void 0&&(e.instance=new e),e.instance},e})();j0.default=function(){return z9.getInstance()};var $o=Ss&&Ss.__awaiter||function(e,t,n,r){return new(n||(n=Prom
vendor: 5,410 bytes, line 41
41ise))(function(o,i){function a(c){try{l(r.next(c))}catch(h){i(h)}}function s(c){try{l(r.throw(c))}catch(h){i(h)}}function l(c){c.done?o(c.value):new n(function(h){h(c.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},Lo=Ss&&Ss.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return(function(h){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&h[0]?r.return:h[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,h[1])).done)return o;switch(r=0,o&&(h=[2&h[0],o.value]),h[0]){case 0:case 1:o=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,r=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||h[0]!==6&&h[0]!==2)){a=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){a.label=h[1];break}if(h[0]===6&&a.label<o[1]){a.label=o[1],o=h;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(h);break}o[2]&&a.ops.pop(),a.trys.pop();continue}h=t.call(e,a)}catch(d){h=[6,d],r=0}finally{n=o=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}})([l,c])}}},nu=Ss;Object.defineProperty(Mj,"__esModule",{value:!0});var ul=j0,Uy="browser-tabs-lock-key",nm={key:function(e){return $o(nu,void 0,void 0,function(){return Lo(this,function(t){throw new Error("Unsupported")})})},getItem:function(e){return $o(nu,void 0,void 0,function(){return Lo(this,function(t){throw new Error("Unsupported")})})},clear:function(){return $o(nu,void 0,void 0,function(){return Lo(this,function(e){return[2,window.localStorage.clear()]})})},removeItem:function(e){return $o(nu,void 0,void 0,function(){return Lo(this,function(t){throw new Error("Unsupported")})})},setItem:function(e,t){return $o(nu,void 0,void 0,function(){return Lo(this,function(n){throw new Error("Unsupported")})})},keySync:function(e){return window.localStorage.key(e)},getItemSync:function(e){return window.localStorage.getItem(e)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(e){return window.localStorage.removeItem(e)},setItemSync:function(e,t){return window.localStorage.setItem(e,t)}};function Fy(e){return new Promise(function(t){return setTimeout(t,e)})}function Wy(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(61*Math.random())];return n}var U9=(function(){function e(t){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+Wy(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=t,e.waiters===void 0&&(e.waiters=[])}return e.prototype.acquireLock=function(t,n){return n===void 0&&(n=5e3),$o(this,void 0,void 0,function(){var r,o,i,a,s,l,c;return Lo(this,function(h){switch(h.label){case 0:r=Date.now()+Wy(4),o=Date.now()+n,i=Uy+"-"+t,a=this.storageHandler===void 0?nm:this.storageHandler,h.label=1;case 1:return Date.now()<o?[4,Fy(30)]:[3,8];case 2:return h.sent(),a.getItemSync(i)!==null?[3,5]:(s=this.id+"-"+t+"-"+r,[4,Fy(Math.floor(25*Math.random()))]);case 3:return h.sent(),a.setItemSync(i,JSON.stringify({id:this.id,iat:r,timeoutKey:s,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,Fy(30)];case 4:return h.sent(),(l=a.getItemSync(i))!==null&&(c=JSON.parse(l)).id===this.id&&c.iat===r?(this.acquiredIatSet.add(r),this.refreshLockWhileAcquired(i,r),[2,!0]):[3,7];case 5:return e.lockCorrector(this.storageHandler===void 0?nm:this.storageHandler),[4,this.waitForSomethingToChange(o)];case 6:h.sent(),h.label=7;case 7:return r=Date.now()+Wy(4),[3,1];case 8:return[2,!1]}})})},e.prototype.refreshLockWhileAcquired=function(t,n){return $o(this,void 0,void 0,function(){var r=this;return Lo(this,function(o){return setTimeout(function(){return $o(r,void 0,void 0,function(){var i,a,s;return Lo(this,function(l){switch(l.label){case 0:return[4,ul.default().lock(n)];case 1:return l.sent(),this.acquiredIatSet.has(n)?(i=this.storageHandler===void 0?nm:this.storageHandler,(a=i.getItemSync(t))===null?(ul.default().unlock(n),[2]):((s=JSON.parse(a)).timeRefreshed=Date.now(),i.setItemSync(t,JSON.stringify(s)),ul.default().unlock(n),this.refreshLockWhileAcquired(t,n),[2])):(ul.default().unlock(n),[2])}})})},1e3),[2]})})},e.prototype.waitForSomethingToChange=function(t){return $o(this,void 0,void 0,function(){return Lo(this,function(n){switch(n.label){case 0:return[4,new Promise(function(r){var o=!1,i=Date.now(),a=!1;function s(){if(a||(window.removeEventListener("storage",s),e.removeFromWaiting(s),clearTimeout(l),a=!0),!o){o=!0;var c=50-(Date.now()-i);c>0?setTimeout(r,c):r(null)}}window.addEventListener("storage",s),e.addToWaiting(s);var l=setTimeout(s,Math.max(0,t-Date.now()))})];case 1:return n.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),e.waiters!==void 0&&e.waiters.push(t)},e.removeFromWaiting=function(t){e.waiters!==void 0&&(e.waiters=e.waiters.filter(function(n){return n!==t}))},e.notifyWaiters=function(){e.waiters!==void 0&&e.waiters.slice().forEac
41h(function(t){return t()})},e.prototype.releaseLock=function(t){return $o(this,void 0,void 0,function(){return Lo(this,function(n){switch(n.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,n.sent()]}})})},e.prototype.releaseLock__private__=function(t){return $o(this,void 0,void 0,function(){var n,r,o,i;return Lo(this,function(a){switch(a.label){case 0:return n=this.storageHandler===void 0?nm:this.storageHandler,r=Uy+"-"+t,(o=n.getItemSync(r))===null?[2]:(i=JSON.parse(o)).id!==this.id?[3,2]:[4,ul.default().lock(i.iat)];case 1:a.sent(),this.acquiredIatSet.delete(i.iat),n.removeItemSync(r),ul.default().unlock(i.iat),e.notifyWaiters(),a.label=2;case 2:return[2]}})})},e.lockCorrector=function(t){for(var n=Date.now()-5e3,r=t,o=[],i=0;;){var a=r.keySync(i);if(a===null)break;o.push(a),i++}for(var s=!1,l=0;l<o.length;l++){var c=o[l];if(c.includes(Uy)){var h=r.getItemSync(c);if(h!==null){var d=JSON.parse(h);(d.timeRefreshed===void 0&&d.timeAcquired<n||d.timeRefreshed!==void 0&&d.timeRefreshed<n)&&(r.removeItemSync(c),s=!0)}}}s&&e.notifyWaiters()},e.waiters=void 0,e})(),F9=Mj.default=U9;class W9{async runWithLock(t,n,r){const o=new AbortController,i=setTimeout(()=>o.abort(),n);try{return await navigator.locks.request(t,{mode:"exclusive",signal:o.signal},async a=>{if(clearTimeout(i),!a)throw new Error("Lock not available");return await r()})}catch(a){throw clearTimeout(i),a?.name==="AbortError"?new ag:a}}}let B9=class{constructor(){this.activeLocks=new Set,this.lock=new F9,this.pagehideHandler=()=>{this.activeLocks.forEach(t=>this.lock.releaseLock(t)),this.activeLocks.clear()}}async runWithLock(t,n,r){let o=!1;for(let i=0;i<10&&!o;i++)o=await this.lock.acquireLock(t,n);if(!o)throw new ag;this.activeLocks.add(t),this.activeLocks.size===1&&typeof window<"u"&&window.addEventListener("pagehide",this.pagehideHandler);try{return await r()}finally{this.activeLocks.delete(t),await this.lock.releaseLock(t),this.activeLocks.size===0&&typeof window<"u"&&window.removeEventListener("pagehide",this.pagehideHandler)}}};function H9(){return typeof navigator<"u"&&typeof((e=navigator.locks)===null||e===void 0?void 0:e.request)=="function"?new W9:new B9;var e}let By=null;const q9=new TextEncoder,V9=new TextDecoder;function zu(e){return typeof e=="string"?q9.encode(e):V9.decode(e)}function S1(e){if(typeof e.modulusLength!="number"||e.modulusLength<2048)throw new G9(`${e.name} modulusLength must be at least 2048 bits`)}async function K9(e,t,n){if(n.usages.includes("sign")===!1)throw new TypeError('private CryptoKey instances used for signing assertions must include "sign" in their "usages"');const r=`${Uu(zu(JSON.stringify(e)))}.${Uu(zu(JSON.stringify(t)))}`;return`${r}.${Uu(await crypto.subtle.sign((function(o){switch(o.algorithm.name){case"ECDSA":return{name:o.algorithm.name,hash:"SHA-256"};case"RSA-PSS":return S1(o.algorithm),{name:o.algorithm.name,saltLength:32};case"RSASSA-PKCS1-v1_5":return S1(o.algorithm),{name:o.algorithm.name};case"Ed25519":return{name:o.algorithm.name}}throw new ps})(n),n,zu(r)))}`}let Hw;Uint8Array.prototype.toBase64?Hw=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0})):Hw=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=32768)n.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function Uu(e){return Hw(e)}class ps extends Error{constructor(t){var n;super(t??"operation not supported"),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}let G9=class extends Error{constructor(t){var n;super(t),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}};function Y9(e){switch(e.algorithm.name){case"RSA-PSS":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"PS256";throw new ps("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"RSASSA-PKCS1-v1_5":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"RS256";throw new ps("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"ECDSA":return(function(t){if(t.algorithm.namedCurve==="P-256")return"ES256";throw new ps("unsupported EcKeyAlgorithm namedCurve")})(e);case"Ed25519":return"Ed25519";default:throw new ps("unsupported CryptoKey algorithm name")}}function jj(e){return e instanceof CryptoKey}function $j(e){return jj(e)&&e.type==="public"}async function Z9(e,t,n,r,o,i){const a=e?.privateKey,s=e?.publicKey;if(!jj(l=a)||l.type!=="private")throw new TypeError('"keypair.privateKey" must be a private CryptoKey');var l;if(!$j(s))throw new TypeError('"keypair.publicKey" must be a public CryptoKey');if(s.extractable!==!0)throw new TypeError('"keypair.publicKey.extractable" must be true');
41if(typeof t!="string")throw new TypeError('"htu" must be a string');if(typeof n!="string")throw new TypeError('"htm" must be a string');if(r!==void 0&&typeof r!="string")throw new TypeError('"nonce" must be a string or undefined');if(o!==void 0&&typeof o!="string")throw new TypeError('"accessToken" must be a string or undefined');return K9({alg:Y9(a),typ:"dpop+jwt",jwk:await Lj(s)},Object.assign(Object.assign({},i),{iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID(),htm:n,nonce:r,htu:t,ath:o?Uu(await crypto.subtle.digest("SHA-256",zu(o))):void 0}),a)}async function Lj(e){const{kty:t,e:n,n:r,x:o,y:i,crv:a}=await crypto.subtle.exportKey("jwk",e);return{kty:t,crv:a,e:n,n:r,x:o,y:i}}const zj="dpop-nonce",J9=["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange","http://auth0.com/oauth/grant-type/mfa-oob","http://auth0.com/oauth/grant-type/mfa-otp","http://auth0.com/oauth/grant-type/mfa-recovery-code"];function Q9(){return(async function(e,t){var n;let r;if(e.length===0)throw new TypeError('"alg" must be a non-empty string');switch(e){case"PS256":r={name:"RSA-PSS",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};break;case"RS256":r={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};break;case"ES256":r={name:"ECDSA",namedCurve:"P-256"};break;case"Ed25519":r={name:"Ed25519"};break;default:throw new ps}return crypto.subtle.generateKey(r,(n=t?.extractable)!==null&&n!==void 0&&n,["sign","verify"])})("ES256",{extractable:!1})}function X9(e){return(async function(t){if(!$j(t))throw new TypeError('"publicKey" must be a public CryptoKey');if(t.extractable!==!0)throw new TypeError('"publicKey.extractable" must be true');const n=await Lj(t);let r;switch(n.kty){case"EC":r={crv:n.crv,kty:n.kty,x:n.x,y:n.y};break;case"OKP":r={crv:n.crv,kty:n.kty,x:n.x};break;case"RSA":r={e:n.e,kty:n.kty,n:n.n};break;default:throw new ps("unsupported JWK kty")}return Uu(await crypto.subtle.digest({name:"SHA-256"},zu(JSON.stringify(r))))})(e.publicKey)}function eV(e){let{keyPair:t,url:n,method:r,nonce:o,accessToken:i}=e;const a=(function(s){const l=new URL(s);return l.search="",l.hash="",l.href})(n);return Z9(t,a,r,o,i)}const tV=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json(),headers:(r=n.headers,[...r].reduce((o,i)=>{let[a,s]=i;return o[a]=s,o},{}))};var r},nV=async(e,t,n)=>{const r=new AbortController;let o;return t.signal=r.signal,Promise.race([tV(e,t),new Promise((i,a)=>{o=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(o)})},rV=async(e,t,n,r,o,i,a,s)=>((l,c)=>new Promise(function(h,d){const p=new MessageChannel;p.port1.onmessage=function(f){f.data.error?d(new Error(f.data.error)):h(f.data),p.port1.close()},c.postMessage(l,[p.port2])}))({auth:{audience:t,scope:n},timeout:o,fetchUrl:e,fetchOptions:r,useFormData:a,useMrrt:s},i),oV=async function(e,t,n,r,o,i){let a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1e4;return o?rV(e,t,n,r,a,o,i,arguments.length>7?arguments[7]:void 0):nV(e,r,a)};async function Uj(e,t,n,r,o,i,a,s,l,c){if(l){const S=await l.generateProof({url:e,method:o.method||"GET",nonce:await l.getNonce()});o.headers=Object.assign(Object.assign({},o.headers),{dpop:S})}let h,d=null;for(let S=0;S<3;S++)try{h=await oV(e,n,r,o,i,a,t,s),d=null;break}catch(I){d=I}if(d)throw d;const p=h.json,{error:f,error_description:b}=p,y=Ro(p,["error","error_description"]),{headers:w,ok:k}=h;let x;if(l&&(x=w[zj],x&&await l.setNonce(x)),!k){const S=b||"HTTP error. Unable to fetch ".concat(e);if(f==="mfa_required")throw new pp(f,S,y.mfa_token,y.mfa_requirements);if(f==="missing_refresh_token")throw new sg(n,r);if(f==="use_dpop_nonce"){if(!l||!x||c)throw new lg(x);return Uj(e,t,n,r,o,i,a,s,l,!0)}throw new Lt(f||"request_error",S)}return y}async function iV(e,t){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:a,useFormData:s,useMrrt:l,dpop:c}=e,h=Ro(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop"]);const d=h.grant_type==="urn:ietf:params:oauth:grant-type:token-exchange",p=h.grant_type==="refresh_token"&&l,f=Object.assign(Object.assign(Object.assign(Object.assign({},h),d&&o&&{audience:o}),d&&i&&{scope:i}),p&&{audience:o,scope:i}),b=s?Bw(f):JSON.stringify(f),y=(w=h.grant_type,J9.includes(w));var w;return await Uj("".concat(n,"/oauth/token"),r,o||xr,i,{method:"POST",body:b,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(Rj(a||Cj)))}},t,s,l,y?c:void 0)}const Km=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(r))).join(" ");var r}
41,rm=(e,t,n)=>{let r;return n&&(r=e[n]),r||(r=e[xr]),Km(r,t)},Wl="@@auth0spajs@@",Tl="@@user@@";let Ai=class qw{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wl,r=arguments.length>2?arguments[2]:void 0;this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,o,i]=t.split("::");return new qw({clientId:r,scope:i,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:o}=t;return new qw({scope:n,audience:r,clientId:o})}},aV=class{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith(Wl))}},Fj=class{constructor(){this.enclosedCache=(function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}})()}},sV=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Nj}async setIdToken(t,n,r){var o;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=arguments.length>3?arguments[3]:void 0;var i;let a=await this.cache.get(t.toKey());if(!a){const c=await this.getCacheKeys();if(!c)return;const h=this.matchExistingCacheKey(t,c);if(h&&(a=await this.cache.get(h)),!a&&r&&o!=="cache-only")return this.getEntryWithRefreshToken(t,c)}if(!a)return;const s=await this.nowProvider(),l=Math.floor(s/1e3);return a.expiresAt-n<l?a.body.refresh_token?this.modifiedCachedEntry(a,t):(await this.cache.remove(t.toKey()),void await((i=this.keyManifest)===null||i===void 0?void 0:i.remove(t.toKey()))):a.body}async modifiedCachedEntry(t,n){return t.body={refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope},await this.cache.set(n.toKey(),t),{refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope}}async set(t){var n;const r=new Ai({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async remove(t,n,r){const o=new Ai({clientId:t,scope:r,audience:n});await this.cache.remove(o.toKey())}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(o=>!t||o.includes(t)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new Ai({clientId:t},Wl,Tl).toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var o;const i=Ai.fromKey(r),a=new Set(i.scope&&i.scope.split(" ")),s=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=i.scope&&s.reduce((c,h)=>c&&a.has(h),!0);return i.prefix===Wl&&i.clientId===t.clientId&&i.audience===t.audience&&l})[0]}async getEntryWithRefreshToken(t,n){var r;for(const o of n){const i=Ai.fromKey(o);if(i.prefix===Wl&&i.clientId===t.clientId){const a=await this.cache.get(o);if(!((r=a?.body)===null||r===void 0)&&r.refresh_token)return this.modifiedCachedEntry(a,t)}}}async updateEntry(t,n){var r;const o=await this.getCacheKeys();if(o)for(const i of o){const a=await this.cache.get(i);((r=a?.body)===null||r===void 0?void 0:r.refresh_token)===t&&(a.body.refresh_token=n,await this.cache.set(i,a))}}},lV=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId)}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const ru=e=>typeof e=="number",cV=["iss","aud","exp","nbf","iat","jti","azp","
41nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],uV=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(i=>{const a=i.split("."),[s,l,c]=a;if(a.length!==3||!s||!l||!c)throw new Error("ID token could not be decoded");const h=JSON.parse(x1(l)),d={__raw:i},p={};return Object.keys(h).forEach(f=>{d[f]=h[f],cV.includes(f)||(p[f]=h[f])}),{encoded:{header:s,payload:l,signature:c},header:JSON.parse(x1(s)),claims:d,user:p}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(t.header.alg!=="RS256")throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||typeof t.claims.aud!="string"&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!ru(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(t.claims.exp==null||!ru(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!ru(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(t.claims.exp+n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(o,")"));if(t.claims.nbf!=null&&ru(t.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(t.claims.nbf-n),r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (".concat(r,") is before ").concat(i))}if(t.claims.auth_time!=null&&ru(t.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),r>i)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (".concat(r,") is after last auth at ").concat(i))}if(e.organization){const i=e.organization.trim();if(i.startsWith("org_")){const a=i;if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(a!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(a,'", found "').concat(t.claims.org_id,'"'))}else{const a=i.toLowerCase();if(!t.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(a!==t.claims.org_name)throw new Error('Organization Name (org_name) claim mismatch in the ID token; expected "'.concat(a,'", found "').concat(t.claims.org_name,'"'))}}return t};var id=Ss&&Ss.__assign||function(){return id=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},id.apply(this,arguments)};function ou(e,t){if(!t)return"";var n="; "+e;return t===!0?n:n+"="+t}function dV(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decode
41URIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(r){if(typeof r.expires=="number"){var o=new Date;o.setMilliseconds(o.getMilliseconds()+864e5*r.expires),r.expires=o}return ou("Expires",r.expires?r.expires.toUTCString():"")+ou("Domain",r.domain)+ou("Path",r.path)+ou("Secure",r.secure)+ou("SameSite",r.sameSite)})(n)}function hV(){return(function(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");a.charAt(0)==='"'&&(a=a.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent)}catch{}}return t})(document.cookie)}var mV=function(e){return hV()[e]};function Wj(e,t,n){document.cookie=dV(e,t,id({path:"/"},n))}var Bj=Wj,Hj=function(e,t){Wj(e,"",id(id({},t),{expires:-1}))};const Il={get(e){const t=mV(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Bj(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Hj(e,n)}},Hy="_legacy_",pV={get(e){return Il.get(e)||Il.get("".concat(Hy).concat(e))},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Bj("".concat(Hy).concat(e),JSON.stringify(t),r),Il.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Hj(e,n),Il.remove(e,t),Il.remove("".concat(Hy).concat(e),t)}},fV={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var pa;(function(e){e.Code="code",e.ConnectCode="connect_code"})(pa||(pa={}));function gV(e,t,n){var r=t===void 0?null:t,o=(function(l,c){var h=atob(l);if(c){for(var d=new Uint8Array(h.length),p=0,f=h.length;p<f;++p)d[p]=h.charCodeAt(p);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return h})(e,n!==void 0&&n),i=o.indexOf(`
42`,10)+1,a=o.substring(i)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}var T1,I1,E1,qy,yV=(T1="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHQpe2xldHtlcnJvcjpyLGVycm9yX2Rlc2NyaXB0aW9uOnN9PXQ7cmV0dXJuIG5ldyBlKHIscyl9fWNsYXNzIHQgZXh0ZW5kcyBle2NvbnN0cnVjdG9yKGUscyl7c3VwZXIoIm1pc3NpbmdfcmVmcmVzaF90b2tlbiIsIk1pc3NpbmcgUmVmcmVzaCBUb2tlbiAoYXVkaWVuY2U6ICciLmNvbmNhdChyKGUsWyJkZWZhdWx0Il0pLCInLCBzY29wZTogJyIpLmNvbmNhdChyKHMpLCInKSIpKSx0aGlzLmF1ZGllbmNlPWUsdGhpcy5zY29wZT1zLE9iamVjdC5zZXRQcm90b3R5cGVPZih0aGlzLHQucHJvdG90eXBlKX19ZnVuY3Rpb24gcihlKXtyZXR1cm4gZSYmIShhcmd1bWVudHMubGVuZ3RoPjEmJnZvaWQgMCE9PWFyZ3VtZW50c1sxXT9hcmd1bWVudHNbMV06W10pLmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIodD0+dm9pZCAwIT09ZVt0XSkucmVkdWNlKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT4iIi5jb25jYXQoZSwifCIpLmNvbmNhdCh0KTthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIixhc3luYyBlPT57bGV0IHIsYyx7ZGF0YTp7dGltZW91dDppLGF1dGg6YSxmZXRjaFVybDpmLGZldGNoT3B0aW9uczpsLHVzZUZvcm1EYXRhOnAsdXNlTXJydDpofSxwb3J0czpbdV19PWUsZD17fTtjb25zdHthdWRpZW5jZTpnLHNjb3BlOnl9PWF8fHt9O3RyeXtjb25zdCBlPXA/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKChlLHQpPT57clt0XT1lfSkscn0pKGwuYm9keSk6SlNPTi5wYXJzZShsLmJvZHkpO2lmKCFlLnJlZnJlc2hfdG9rZW4mJiJyZWZyZXNoX3Rva2VuIj09PWUuZ3JhbnRfdHlwZSl7aWYoYz0oKGUsdCk9Pm9bbihlLHQpXSkoZyx5KSwhYyYmaCl7Y29uc3QgZT1vLmxhdGVzdF9yZWZyZXNoX3Rva2VuLHQ9KChlLHQpPT57Y29uc3Qgcj1PYmplY3Qua2V5cyhvKS5maW5kKHI9PntpZigibGF0ZXN0X3JlZnJlc2hfdG9rZW4iIT09cil7Y29uc3Qgcz0oKGUsdCk9PnQuc3RhcnRzV2l0aCgiIi5jb25jYXQoZSwifCIpKSkodCxyKSxvPXIuc3BsaXQoInwiKVsxXS5zcGxpdCgiICIpLG49ZS5zcGxpdCgiICIpLmV2ZXJ5KGU9Pm8uaW5jbHVkZXMoZSkpO3JldHVybiBzJiZufX0pO3JldHVybiEhcn0pKHksZyk7ZSYmIXQmJihjPWUpfWlmKCFjKXRocm93IG5ldyB0KGcseSk7bC5ib2R5PXA/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sZSkse3JlZnJlc2hfdG9rZW46Y30pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sZSkse3JlZnJlc2hfdG9rZW46Y30pKX1sZXQgYS
42xrOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihhPW5ldyBBYm9ydENvbnRyb2xsZXIsbC5zaWduYWw9YS5zaWduYWwpO3RyeXtrPWF3YWl0IFByb21pc2UucmFjZShbKGo9aSxuZXcgUHJvbWlzZShlPT5zZXRUaW1lb3V0KGUsaikpKSxmZXRjaChmLE9iamVjdC5hc3NpZ24oe30sbCkpXSl9Y2F0Y2goZSl7cmV0dXJuIHZvaWQgdS5wb3N0TWVzc2FnZSh7ZXJyb3I6ZS5tZXNzYWdlfSl9aWYoIWspcmV0dXJuIGEmJmEuYWJvcnQoKSx2b2lkIHUucG9zdE1lc3NhZ2Uoe2Vycm9yOiJUaW1lb3V0IHdoZW4gZXhlY3V0aW5nICdmZXRjaCcifSk7Xz1rLmhlYWRlcnMsZD1bLi4uX10ucmVkdWNlKChlLHQpPT57bGV0W3Isc109dDtyZXR1cm4gZVtyXT1zLGV9LHt9KSxyPWF3YWl0IGsuanNvbigpLHIucmVmcmVzaF90b2tlbj8oaCYmKG8ubGF0ZXN0X3JlZnJlc2hfdG9rZW49ci5yZWZyZXNoX3Rva2VuLE89YyxiPXIucmVmcmVzaF90b2tlbixPYmplY3QuZW50cmllcyhvKS5mb3JFYWNoKGU9PntsZXRbdCxyXT1lO3I9PT1PJiYob1t0XT1iKX0pKSwoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkoci5yZWZyZXNoX3Rva2VuLGcseSksZGVsZXRlIHIucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGcseSksdS5wb3N0TWVzc2FnZSh7b2s6ay5vayxqc29uOnIsaGVhZGVyczpkfSl9Y2F0Y2goZSl7dS5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9LGhlYWRlcnM6ZH0pfXZhciBPLGIsXyxqfSl9KCk7Cgo=",I1=null,E1=!1,function(e){return qy=qy||gV(T1,I1,E1),new Worker(qy,e)});const Vy={};class bV{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return"".concat(Wl,"::").concat(t)}}const A1="auth0.is.authenticated",wV={memory:()=>new Fj().enclosedCache,localstorage:()=>new aV}
42,C1=e=>wV[e],N1=e=>{const{openUrl:t,onRedirect:n}=e,r=Ro(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},P1=(e,t)=>{const n=t?.split(" ")||[];return(e?.split(" ")||[]).every(r=>n.includes(r))},Ya={NONCE:"nonce",KEYPAIR:"keypair"};class vV{constructor(t){this.clientId=t}getVersion(){return 1}createDbHandle(){const t=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise((n,r)=>{t.onupgradeneeded=()=>Object.values(Ya).forEach(o=>t.result.createObjectStore(o)),t.onerror=()=>r(t.error),t.onsuccess=()=>n(t.result)})}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(t,n,r){const o=r((await this.getDbHandle()).transaction(t,n).objectStore(t));return new Promise((i,a)=>{o.onsuccess=()=>i(o.result),o.onerror=()=>a(o.error)})}buildKey(t){const n=t?"_".concat(t):"auth0";return"".concat(this.clientId,"::").concat(n)}setNonce(t,n){return this.save(Ya.NONCE,this.buildKey(n),t)}setKeyPair(t){return this.save(Ya.KEYPAIR,this.buildKey(),t)}async save(t,n,r){await this.executeDbRequest(t,"readwrite",o=>o.put(r,n))}findNonce(t){return this.find(Ya.NONCE,this.buildKey(t))}findKeyPair(){return this.find(Ya.KEYPAIR,this.buildKey())}find(t,n){return this.executeDbRequest(t,"readonly",r=>r.get(n))}async deleteBy(t,n){const r=await this.executeDbRequest(t,"readonly",o=>o.getAllKeys());r?.filter(n).map(o=>this.executeDbRequest(t,"readwrite",i=>i.delete(o)))}deleteByClientId(t,n){return this.deleteBy(t,r=>typeof r=="string"&&r.startsWith("".concat(n,"::")))}clearNonces(){return this.deleteByClientId(Ya.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(Ya.KEYPAIR,this.clientId)}}class kV{constructor(t){this.storage=new vV(t)}getNonce(t){return this.storage.findNonce(t)}setNonce(t,n){return this.storage.setNonce(t,n)}async getOrGenerateKeyPair(){let t=await this.storage.findKeyPair();return t||(t=await Q9(),await this.storage.setKeyPair(t)),t}async generateProof(t){const n=await this.getOrGenerateKeyPair();return eV(Object.assign({keyPair:n},t))}async calculateThumbprint(){return X9(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}}var Dl;(function(e){e.Bearer="Bearer",e.DPoP="DPoP"})(Dl||(Dl={}));class xV{constructor(t,n){this.hooks=n,this.config=Object.assign(Object.assign({},t),{fetch:t.fetch||(typeof window>"u"?fetch:window.fetch.bind(window))})}isAbsoluteUrl(t){return/^(https?:)?\/\//i.test(t)}buildUrl(t,n){if(n){if(this.isAbsoluteUrl(n))return n;if(t)return"".concat(t.replace(/\/?\/$/,""),"/").concat(n.replace(/^\/+/,""))}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(t){return this.config.getAccessToken?this.config.getAccessToken(t):this.hooks.getAccessToken(t)}extractUrl(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}buildBaseRequest(t,n){if(!this.config.baseUrl)return new Request(t,n);const r=this.buildUrl(this.config.baseUrl,this.extractUrl(t)),o=t instanceof Request?new Request(r,t):r;return new Request(o,n)}setAuthorizationHeader(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dl.Bearer;t.headers.set("authorization","".concat(r," ").concat(n))}async setDpopProofHeader(t,n){if(!this.config.dpopNonceId)return;const r=await this.hooks.getDpopNonce(),o=await this.hooks.generateDpopProof({accessToken:n,method:t.method,nonce:r,url:t.url});t.headers.set("dpop",o)}async prepareRequest(t,n){const r=await this.getAccessToken(n);let o,i;typeof r=="string"?(o=this.config.dpopNonceId?Dl.DPoP:Dl.Bearer,i=r):(o=r.token_type,i=r.access_token),this.setAuthorizationHeader(t,i,o),o===Dl.DPoP&&await this.setDpopProofHeader(t,i)}getHeader(t,n){return Array.isArray(t)?new Headers(t).get(n)||"":typeof t.get=="function"?t.get(n)||"":t[n]||""}hasUseDpopNonceError(t){if(t.status!==401)return!1;const n=this.getHeader(t.headers,"www-authenticate");return n.includes("invalid_dpop_nonce")||n.includes("use_dpop_nonce")}async handleResponse(t,n){const r=this.getHeader(t.headers,zj);if(r&&await this.hooks.setDpopNonce(r),!this.hasUseDpopNonceError(t))return t;if(!r||!n.onUseDpopNonceError)throw new lg(r);return n.onUseDpopNonceError()}async internalFetchWithAuth(t,n,r,o){const i=this.buildBaseRequest
vendor: 1,734 bytes, line 42
42(t,n);await this.prepareRequest(i,o);const a=await this.config.fetch(i);return this.handleResponse(a,r)}fetchWithAuth(t,n,r){const o={onUseDpopNonceError:()=>this.internalFetchWithAuth(t,n,Object.assign(Object.assign({},o),{onUseDpopNonceError:void 0}),r)};return this.internalFetchWithAuth(t,n,o,r)}}class _V{constructor(t,n){this.myAccountFetcher=t,this.apiBase=n}async connectAccount(t){const n=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/connected-accounts/connect"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async completeAccount(t){const n=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/connected-accounts/complete"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async _handleResponse(t){let n;try{n=await t.text(),n=JSON.parse(n)}catch(r){throw new yp({type:"invalid_json",status:t.status,title:"Invalid JSON response",detail:n||String(r)})}if(t.ok)return n;throw new yp(n)}}class yp extends Error{constructor(t){let{type:n,status:r,title:o,detail:i,validation_errors:a}=t;super(i),this.name="MyAccountApiError",this.type=n,this.status=r,this.title=o,this.detail=i,this.validation_errors=a,Object.setPrototypeOf(this,yp.prototype)}}const SV={otp:{authenticatorTypes:["otp"]},sms:{authenticatorTypes:["oob"],oobChannels:["sms"]},email:{authenticatorTypes:["oob"],oobChannels:["email"]},push:{authenticatorTypes:["oob"],oobChannels:["auth0"]},voice:{authenticatorTypes:["oob"],oobChannels:["voice"]}},TV="http://auth0.com/oauth/grant-type/mfa-otp",IV="http://auth0.com/oauth/grant-type/mfa-oob",EV="http://auth0.com/oauth/grant-type/mfa-rec
42overy-code";function qj(e,t){this.v=e,this.k=t}function Bt(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function AV(e){return new qj(e,0)}function Vj(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ie(e,t){return e.get(Bt(e,t))}function Pt(e,t,n){Vj(e,t),t.set(e,n)}function mt(e,t,n){return e.set(Bt(e,t),n),n}function Te(e,t,n){return(t=(function(r){var o=(function(i,a){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)})(r,"string");return typeof o=="symbol"?o:o+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){Te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O1(e,t){if(e==null)return{};var n,r,o=(function(a,s){if(a==null)return{};var l={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(s.indexOf(c)!==-1)continue;l[c]=a[c]}return l})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CV(e){return function(){return new Iu(e.apply(this,arguments))}}function Iu(e){var t,n;function r(i,a){try{var s=e[i](a),l=s.value,c=l instanceof qj;Promise.resolve(c?l.v:l).then(function(h){if(c){var d=i==="return"?"return":"next";if(!l.k||h.done)return r(d,h);h=e[d](h).value}o(s.done?"return":"normal",h)},function(h){r("throw",h)})}catch(h){o("throw",h)}}function o(i,a){switch(i){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(i,a){return new Promise(function(s,l){var c={key:i,arg:a,resolve:s,reject:l,next:null};n?n=n.next=c:(t=n=c,r(i,a))})},typeof e.return!="function"&&(this.return=void 0)}var om,Ky;let Vw;Iu.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Iu.prototype.next=function(e){return this._invoke("next",e)},Iu.prototype.throw=function(e){return this._invoke("throw",e)},Iu.prototype.return=function(e){return this._invoke("return",e)},(typeof navigator>"u"||(om=navigator.userAgent)===null||om===void 0||(Ky=om.startsWith)===null||Ky===void 0||!Ky.call(om,"Mozilla/5.0 "))&&(Vw="".concat("oauth4webapi","/").concat("v3.8.5"));function Ic(e,t){if(e==null)return!1;try{return e instanceof t||Object.getPrototypeOf(e)[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}catch{return!1}}const Xn="ERR_INVALID_ARG_VALUE",Ar="ERR_INVALID_ARG_TYPE";function Et(e,t,n){const r=new TypeError(e,{cause:n});return Object.assign(r,{code:t}),r}const fo=Symbol(),Kw=Symbol(),Gw=Symbol(),Ko=Symbol(),Mi=Symbol(),NV=new TextEncoder,PV=new TextDecoder;function Bl(e){return typeof e=="string"?NV.encode(e):PV.decode(e)}let Yw,Kj;Uint8Array.prototype.toBase64?Yw=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0})):Yw=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=32768)n.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function vs(e){return typeof e=="string"?Kj(e):Yw(e)}Kj=Uint8Array.fromBase64?e=>{try{return Uint8Array.fromBase64(e,{alphabet:"base64url"})}catch(t){throw Et("The input to be decoded is not correctly encoded.",Xn,t)}}:e=>{try{const t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}catch(t){throw Et("The input to be decoded is not correctly encoded.",Xn,t)}};
42class Wr extends Error{constructor(t,n){var r;super(t,n),Te(this,"code",void 0),this.name=this.constructor.name,this.code=Qw,(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}class $0 extends Error{constructor(t,n){var r;super(t,n),Te(this,"code",void 0),this.name=this.constructor.name,n!=null&&n.code&&(this.code=n?.code),(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}function Be(e,t,n){return new $0(e,{code:t,cause:n})}function DV(e,t){if((function(n,r){if(!(n instanceof CryptoKey))throw Et("".concat(r," must be a CryptoKey"),Ar)})(e,t),e.type!=="private")throw Et("".concat(t," must be a private CryptoKey"),Xn)}function bp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cg(e){Ic(e,Headers)&&(e=Object.fromEntries(e.entries()));const t=new Headers(e??{});if(Vw&&!t.has("user-agent")&&t.set("user-agent",Vw),t.has("authorization"))throw Et('"options.headers" must not include the "authorization" header name',Xn);return t}function Gj(e,t){if(t!==void 0){if(typeof t=="function"&&(t=t(e.href)),!(t instanceof AbortSignal))throw Et('"options.signal" must return or be an instance of AbortSignal',Ar);return t}}function R1(e){return e.includes("//")?e.replace("//","/"):e}async function OV(e,t){return(async function(n,r,o,i){if(!(n instanceof URL))throw Et('"'.concat(r,'" must be an instance of URL'),Ar);L0(n,i?.[fo]!==!0);const a=o(new URL(n.href)),s=cg(i?.headers);return s.set("accept","application/json"),(i?.[Ko]||fetch)(a.href,{body:void 0,headers:Object.fromEntries(s.entries()),method:"GET",redirect:"manual",signal:Gj(a,i?.signal)})})(e,"issuerIdentifier",n=>{switch(t?.algorithm){case void 0:case"oidc":(function(r,o){r.pathname=R1("".concat(r.pathname,"/").concat(o))})(n,".well-known/openid-configuration");break;case"oauth2":(function(r,o){let i=arguments.length>2&&arguments[2]!==void 0&&arguments[2];r.pathname==="/"?r.pathname=o:r.pathname=R1("".concat(o,"/").concat(i?r.pathname:r.pathname.replace(/(\/)$/,"")))})(n,".well-known/oauth-authorization-server");break;default:throw Et('"options.algorithm" must be "oidc" (default), or "oauth2"',Xn)}return n},t)}function _a(e,t,n,r,o){try{if(typeof e!="number"||!Number.isFinite(e))throw Et("".concat(n," must be a number"),Ar,o);if(e>0)return;if(t){if(e!==0)throw Et("".concat(n," must be a non-negative number"),Xn,o);return}throw Et("".concat(n," must be a positive number"),Xn,o)}catch(i){throw r?Be(i.message,r,o):i}}function yn(e,t,n,r){try{if(typeof e!="string")throw Et("".concat(t," must be a string"),Ar,r);if(e.length===0)throw Et("".concat(t," must not be empty"),Xn,r)}catch(o){throw n?Be(o.message,n,r):o}}function Yj(e){(function(t,n){if(Xj(t)!==n)throw(function(r){let o='"response" content-type must be ';for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(a.length>2){const l=a.pop();o+="".concat(a.join(", "),", or ").concat(l)}else a.length===2?o+="".concat(a[0]," or ").concat(a[1]):o+=a[0];return Be(o,t$,r)})(t,n)})(e,"application/json")}function Zj(){return vs(crypto.getRandomValues(new Uint8Array(32)))}function RV(e){switch(e.algorithm.name){case"RSA-PSS":return(function(t){switch(t.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new Wr("unsupported RsaHashedKeyAlgorithm hash name",{cause:t})}})(e);case"RSASSA-PKCS1-v1_5":return(function(t){switch(t.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new Wr("unsupported RsaHashedKeyAlgorithm hash name",{cause:t})}})(e);case"ECDSA":return(function(t){switch(t.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new Wr("unsupported EcKeyAlgorithm namedCurve",{cause:t})}})(e);case"Ed25519":case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return e.algorithm.name;case"EdDSA":return"Ed25519";default:throw new Wr("unsupported CryptoKey algorithm name",{cause:e})}}function wp(e){const t=e?.[Kw];return typeof t=="number"&&Number.isFinite(t)?t:0}function Zw(e){const t=e?.[Gw];return typeof t=="number"&&Number.isFinite(t)&&Math.sign(t)!==-1?t:30}function vp(){return Math.floor(Date.now()/1e3)}function Bo(e){if(typeof e!="object"||e===null)throw Et('"as" must be an object',Ar);yn(e.issuer,'"as.issuer"')}function Ho(e){if(typeof e!="object"||e===null)throw Et('"client" must be an object',Ar);yn(e.client_id,'"client.client_id"')}function M1(e){return yn(e,'"clientSecret"'),(t,n,r,o)=>{r.set("client_id",n.client_id),r.set("client_secret",e)}}function MV(e,t){const{key:n,kid:r}=(o=e)instanceof CryptoKey?{key:o}:o?.key instanceof CryptoKey?(o.kid!==void 0&&yn(o.kid,'"kid"'),{key:o.key,kid:o.kid}):{};var o;return DV(n,'"clientPrivateKey.key"'),async(i,a,s,l)=>{const c={alg:RV(n),kid:r},h=(function(d,p){const f=vp()+wp(p);return{jti:Zj(),aud:d.issuer,exp:f+60,iat:f,nbf:f,iss:p.client_id,sub:p.client_id}})(i,a);s.set("client_id",a.client_id),s.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),s.set("client_assertion",await(async function(d,p,f){if(!f.usages.includes("sign"))throw Et('CryptoKey instances used for signing assertions must include "sign" in their "usages"',Xn);const b="".concat(vs(Bl(JSON.stringify(d))),".").concat(vs(Bl(JSON.stringify(p)))),y=vs(await crypto.subtle.sign((function(w){switch(w.algorithm.name){case"ECDSA":return{name:w.algorithm.name,hash:eK(w)};case"RSA-PSS":switch(L1(w),w.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:w.algorithm.name,saltLength:parseInt(w.algorithm.hash.name.slice(-3),10)>>3};default:throw new Wr("unsupported RSA-PSS hash name",{cause:w})}case"RSASSA-PKCS1-v1_5":return L1(w),w.algorithm.name;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":case"Ed25519":return w.algorithm.name}throw new Wr("unsupported CryptoKey algorithm name",{cause:w})})(f),f,Bl(b)));return"".concat(b,".").concat(y)})(c,h,n))}}const jV=URL.parse?(e,t)=>URL.parse(e,t):(e,t)=>{try{return new URL(e,t)}catch{return null}};function L0(e,t){if(t&&e.protocol!=="https:")throw Be("only requests to HTTPS are allowed",n$,e);if(e.protocol!=="https:"&&e.protocol!=="http:")throw Be("only HTTP and HTTPS requests are allowed",r$,e)}function j1(e,t,n,r){let o;if(typeof e!="string"||!(o=jV(e)))throw Be("authorization server metadata does not contain a valid ".concat(n?'"as.mtls_endpoint_aliases.'.concat(t,'"'):'"as.'.concat(t,'"')),e===void 0?QV:XV,{attribute:n?"mtls_endpoint_aliases.".concat(t):t});return L0(o,r),o}function Qd(e,t,n,r){return n&&e.mtls_endpoint_aliases&&t in e.mtls_endpoint_aliases?j1(e.mtls_endpoint_aliases[t],t,n,r):j1(e[t],t,n,r)}
42class ug extends Error{constructor(t,n){var r;super(t,n),Te(this,"cause",void 0),Te(this,"code",void 0),Te(this,"error",void 0),Te(this,"status",void 0),Te(this,"error_description",void 0),Te(this,"response",void 0),this.name=this.constructor.name,this.code=ZV,this.cause=n.cause,this.error=n.cause.error,this.status=n.response.status,this.error_description=n.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:n.response}),(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}class Jj extends Error{constructor(t,n){var r,o;super(t,n),Te(this,"cause",void 0),Te(this,"code",void 0),Te(this,"error",void 0),Te(this,"error_description",void 0),this.name=this.constructor.name,this.code=JV,this.cause=n.cause,this.error=n.cause.get("error"),this.error_description=(r=n.cause.get("error_description"))!==null&&r!==void 0?r:void 0,(o=Error.captureStackTrace)===null||o===void 0||o.call(Error,this,this.constructor)}}class z0 extends Error{constructor(t,n){var r;super(t,n),Te(this,"cause",void 0),Te(this,"code",void 0),Te(this,"response",void 0),Te(this,"status",void 0),this.name=this.constructor.name,this.code=YV,this.cause=n.cause,this.status=n.response.status,this.response=n.response,Object.defineProperty(this,"response",{enumerable:!1}),(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}const kp="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+",$V="("+kp+')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"',LV="("+kp+")\\s*=\\s*("+kp+")",zV=new RegExp("^[,\\s]*("+kp+")"),UV=new RegExp("^[,\\s]*"+$V+"[,\\s]*(.*)"),FV=new RegExp("^[,\\s]*"+LV+"[,\\s]*(.*)"),WV=new RegExp("^([a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2})(?:$|[,\\s])(.*)");async function U0(e,t,n){if(e.status!==t){let o;var r;throw(function(i){let a;if(a=(function(s){if(!Ic(s,Response))throw Et('"response" must be an instance of Response',Ar);const l=s.headers.get("www-authenticate");if(l===null)return;const c=[];let h=l;for(;h;){var d;let p=h.match(zV);const f=(d=p)===null||d===void 0?void 0:d[1].toLowerCase();if(!f)return;const b=h.substring(p[0].length);if(b&&!b.match(/^[\s,]/))return;const y=b.match(/^\s+(.*)$/),w=!!y;h=y?y[1]:void 0;const k={};let x;if(w)for(;h;){let I,E;if(p=h.match(UV)){if([,I,E,h]=p,E.includes("\\"))try{E=JSON.parse('"'.concat(E,'"'))}catch{}k[I.toLowerCase()]=E}else{if(!(p=h.match(FV))){if(p=h.match(WV)){if(Object.keys(k).length)break;[,x,h]=p;break}return}[,I,E,h]=p,k[I.toLowerCase()]=E}}else h=b||void 0;const S={scheme:f,parameters:k};x&&(S.token68=x),c.push(S)}return c.length?c:void 0})(i))throw new z0("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:a,response:i})})(e),(o=await(async function(i){if(i.status>399&&i.status<500){eh(i),Yj(i);try{const a=await i.clone().json();if(bp(a)&&typeof a.error=="string"&&a.error.length)return a}catch{}}})(e))?(await((r=e.body)===null||r===void 0?void 0:r.cancel()),new ug("server responded with an error in the response body",{cause:o,response:e})):Be('"response" is not a conform '.concat(n," response (unexpected HTTP status code)"),B0,e)}}function Qj(e){if(!W0.has(e))throw Et('"options.DPoP" is not a valid DPoPHandle',Xn)}function Xj(e){var t;return(t=e.headers.get("content-type"))===null||t===void 0?void 0:t.split(";")[0]}async function F0(e,t,n,r,o,i,a){return await n(e,t,o,i),i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),(a?.[Ko]||fetch)(r.href,{body:o,headers:Object.fromEntries(i.entries()),method:"POST",redirect:"manual",signal:Gj(r,a?.signal)})}async function Xd(e,t,n,r,o,i){var a;const s=Qd(e,"token_endpoint",t.use_mtls_endpoint_aliases,i?.[fo]!==!0);o.set("grant_type",r);const l=cg(i?.headers);l.set("accept","application/json"),i?.DPoP!==void 0&&(Qj(i.DPoP),await i.DPoP.addProof(s,l,"POST"));const c=await F0(e,t,n,s,o,l,i);return i==null||(a=i.DPoP)===null||a===void 0||a.cacheNonce(c,s),c}const e$=new WeakMap,BV=new WeakMap;function Jw(e){if(!e.id_token)return;const t=e$.get(e);if(!t)throw Et('"ref" was already garbage collected or did not resolve from the proper sources',Xn);return t}
42async function ac(e,t,n,r,o,i){if(Bo(e),Ho(t),!Ic(n,Response))throw Et('"response" must be an instance of Response',Ar);await U0(n,200,"Token Endpoint"),eh(n);const a=await dg(n);if(yn(a.access_token,'"response" body "access_token" property',pt,{body:a}),yn(a.token_type,'"response" body "token_type" property',pt,{body:a}),a.token_type=a.token_type.toLowerCase(),a.expires_in!==void 0){let s=typeof a.expires_in!="number"?parseFloat(a.expires_in):a.expires_in;_a(s,!0,'"response" body "expires_in" property',pt,{body:a}),a.expires_in=s}if(a.refresh_token!==void 0&&yn(a.refresh_token,'"response" body "refresh_token" property',pt,{body:a}),a.scope!==void 0&&typeof a.scope!="string")throw Be('"response" body "scope" property must be a string',pt,{body:a});if(a.id_token!==void 0){yn(a.id_token,'"response" body "id_token" property',pt,{body:a});const s=["aud","exp","iat","iss","sub"];t.require_auth_time===!0&&s.push("auth_time"),t.default_max_age!==void 0&&(_a(t.default_max_age,!0,'"client.default_max_age"'),s.push("auth_time")),r!=null&&r.length&&s.push(...r);const{claims:l,jwt:c}=await(async function(h,d,p,f,b){let y,w,{0:k,1:x,length:S}=h.split(".");if(S===5){if(b===void 0)throw new Wr("JWE decryption is not configured",{cause:h});h=await b(h),{0:k,1:x,length:S}=h.split(".")}if(S!==3)throw Be("Invalid JWT",pt,h);try{y=JSON.parse(Bl(vs(k)))}catch(E){throw Be("failed to parse JWT Header body as base64url encoded JSON",xp,E)}if(!bp(y))throw Be("JWT Header must be a top level object",pt,h);if(d(y),y.crit!==void 0)throw new Wr('no JWT "crit" header parameter extensions are supported',{cause:{header:y}});try{w=JSON.parse(Bl(vs(x)))}catch(E){throw Be("failed to parse JWT Payload body as base64url encoded JSON",xp,E)}if(!bp(w))throw Be("JWT Payload must be a top level object",pt,h);const I=vp()+p;if(w.exp!==void 0){if(typeof w.exp!="number")throw Be('unexpected JWT "exp" (expiration time) claim type',pt,{claims:w});if(w.exp<=I-f)throw Be('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',ad,{claims:w,now:I,tolerance:f,claim:"exp"})}if(w.iat!==void 0&&typeof w.iat!="number")throw Be('unexpected JWT "iat" (issued at) claim type',pt,{claims:w});if(w.iss!==void 0&&typeof w.iss!="string")throw Be('unexpected JWT "iss" (issuer) claim type',pt,{claims:w});if(w.nbf!==void 0){if(typeof w.nbf!="number")throw Be('unexpected JWT "nbf" (not before) claim type',pt,{claims:w});if(w.nbf>I+f)throw Be('unexpected JWT "nbf" (not before) claim value',ad,{claims:w,now:I,tolerance:f,claim:"nbf"})}if(w.aud!==void 0&&typeof w.aud!="string"&&!Array.isArray(w.aud))throw Be('unexpected JWT "aud" (audience) claim type',pt,{claims:w});return{header:y,claims:w,jwt:h}})(a.id_token,nK.bind(void 0,t.id_token_signed_response_alg,e.id_token_signing_alg_values_supported,"RS256"),wp(t),Zw(t),o).then(KV.bind(void 0,s)).then(qV.bind(void 0,e)).then(HV.bind(void 0,t.client_id));if(Array.isArray(l.aud)&&l.aud.length!==1){if(l.azp===void 0)throw Be('ID Token "aud" (audience) claim includes additional untrusted audiences',Di,{claims:l,claim:"aud"});if(l.azp!==t.client_id)throw Be('unexpected ID Token "azp" (authorized party) claim value',Di,{expected:t.client_id,claims:l,claim:"azp"})}l.auth_time!==void 0&&_a(l.auth_time,!0,'ID Token "auth_time" (authentication time)',pt,{claims:l}),BV.set(n,c),e$.set(a,l)}if(i?.[a.token_type]!==void 0)i[a.token_type](n,a);else if(a.token_type!=="dpop"&&a.token_type!=="bearer")throw new Wr("unsupported `token_type` value",{cause:{body:a}});return a}function HV(e,t){if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e))throw Be('unexpected JWT "aud" (audience) claim value',Di,{expected:e,claims:t.claims,claim:"aud"})}else if(t.claims.aud!==e)throw Be('unexpected JWT "aud" (audience) claim value',Di,{expected:e,claims:t.claims,claim:"aud"});return t}function qV(e,t){var n,r;const o=(n=(r=e[o$])===null||r===void 0?void 0:r.call(e,t))!==null&&n!==void 0?n:e.issuer;if(t.claims.iss!==o)throw Be('unexpected JWT "iss" (issuer) claim value',Di,{expected:o,claims:t.claims,claim:"iss"});return t}const W0=new WeakSet,$1=Symbol(),VV={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function KV(e,t){for(const n of e)if(t.claims[n]===void 0)throw Be('JWT "'.concat(n,'" (').concat(VV[n],") claim missing"),pt,{claims:t.claims});return t}const Gy=Symbol(),Yy=Symbol();async function GV(e,t,n,r){return typeof r?.expectedNonce=="string"||typeof r?.maxAge=="number"||r!=null&&r.requireIdToken?(async function(o,i,a,s,l,c,h){const d=[];switch(s){case void 0:s=Gy;break;case Gy:break;default:yn(s,'"expectedNonce" argument'),d.push("nonce")}switch(l!=null||(l=i.default_max_age),l){case void 0:l=Yy;break;case Yy:break;default:_a(l,!0,'"maxAge" argument'),d.push("auth_time")}const p=await ac(o,i,a,d,c,h);
42yn(p.id_token,'"response" body "id_token" property',pt,{body:p});const f=Jw(p);if(l!==Yy){const b=vp()+wp(i),y=Zw(i);if(f.auth_time+l<b-y)throw Be("too much time has elapsed since the last End-User authentication",ad,{claims:f,now:b,tolerance:y,claim:"auth_time"})}if(s===Gy){if(f.nonce!==void 0)throw Be('unexpected ID Token "nonce" claim value',Di,{expected:void 0,claims:f,claim:"nonce"})}else if(f.nonce!==s)throw Be('unexpected ID Token "nonce" claim value',Di,{expected:s,claims:f,claim:"nonce"});return p})(e,t,n,r.expectedNonce,r.maxAge,r[Mi],r.recognizedTokenTypes):(async function(o,i,a,s,l){const c=await ac(o,i,a,void 0,s,l),h=Jw(c);if(h){if(i.default_max_age!==void 0){_a(i.default_max_age,!0,'"client.default_max_age"');const d=vp()+wp(i),p=Zw(i);if(h.auth_time+i.default_max_age<d-p)throw Be("too much time has elapsed since the last End-User authentication",ad,{claims:h,now:d,tolerance:p,claim:"auth_time"})}if(h.nonce!==void 0)throw Be('unexpected ID Token "nonce" claim value',Di,{expected:void 0,claims:h,claim:"nonce"})}return c})(e,t,n,r?.[Mi],r?.recognizedTokenTypes)}const YV="OAUTH_WWW_AUTHENTICATE_CHALLENGE",ZV="OAUTH_RESPONSE_BODY_ERROR",Qw="OAUTH_UNSUPPORTED_OPERATION",JV="OAUTH_AUTHORIZATION_RESPONSE_ERROR",xp="OAUTH_PARSE_ERROR",pt="OAUTH_INVALID_RESPONSE",t$="OAUTH_RESPONSE_IS_NOT_JSON",B0="OAUTH_RESPONSE_IS_NOT_CONFORM",n$="OAUTH_HTTP_REQUEST_FORBIDDEN",r$="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",ad="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",Di="OAUTH_JWT_CLAIM_COMPARISON_FAILED",Xw="OAUTH_JSON_ATTRIBUTE_COMPARISON_FAILED",QV="OAUTH_MISSING_SERVER_METADATA",XV="OAUTH_INVALID_SERVER_METADATA";function eh(e){if(e.bodyUsed)throw Et('"response" body has been used already',Xn)}function L1(e){const{algorithm:t}=e;if(typeof t.modulusLength!="number"||t.modulusLength<2048)throw new Wr("unsupported ".concat(t.name," modulusLength"),{cause:e})}function eK(e){const{algorithm:t}=e;switch(t.namedCurve){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new Wr("unsupported ECDSA namedCurve",{cause:e})}}async function tK(e){if(e.method!=="POST")throw Et("form_post responses are expected to use the POST method",Xn,{cause:e});if(Xj(e)!=="application/x-www-form-urlencoded")throw Et("form_post responses are expected to use the application/x-www-form-urlencoded content-type",Xn,{cause:e});return(async function(t){if(t.bodyUsed)throw Et("form_post Request instances must contain a readable body",Xn,{cause:t});return t.text()})(e)}function nK(e,t,n,r){if(e===void 0)if(Array.isArray(t)){if(!t.includes(r.alg))throw Be('unexpected JWT "alg" header parameter',pt,{header:r,expected:t,reason:"authorization server metadata"})}else{if(n===void 0)throw Be('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:e,issuer:t,fallback:n});if(typeof n=="string"?r.alg!==n:typeof n=="function"?!n(r.alg):!n.includes(r.alg))throw Be('unexpected JWT "alg" header parameter',pt,{header:r,expected:n,reason:"default value"})}else if(typeof e=="string"?r.alg!==e:!e.includes(r.alg))throw Be('unexpected JWT "alg" header parameter',pt,{header:r,expected:e,reason:"client configuration"})}function ls(e,t){const{0:n,length:r}=e.getAll(t);if(r>1)throw Be('"'.concat(t,'" parameter must be provided only once'),pt);return n}const rK=Symbol(),oK=Symbol();function iK(e,t,n,r){if(Bo(e),Ho(t),n instanceof URL&&(n=n.searchParams),!(n instanceof URLSearchParams))throw Et('"parameters" must be an instance of URLSearchParams, or URL',Ar);if(ls(n,"response"))throw Be('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',pt,{parameters:n});const o=ls(n,"iss"),i=ls(n,"state");if(!o&&e.authorization_response_iss_parameter_supported)throw Be('response parameter "iss" (issuer) missing',pt,{parameters:n});if(o&&o!==e.issuer)throw Be('unexpected "iss" (issuer) response parameter value',pt,{expected:e.issuer,parameters:n});switch(r){case void 0:case oK:if(i!==void 0)throw Be('unexpected "state" response parameter encountered',pt,{expected:void 0,parameters:n});break;case rK:break;default:if(yn(r,'"expectedState" argument'),i!==r)throw Be(i===void 0?'response parameter "state" missing':'unexpected "state" response parameter value',pt,{expected:r,parameters:n})}if(ls(n,"error"))throw new Jj("authorization response from the server is an error",{cause:n});const a=ls(n,"id_token"),s=ls(n,"token");if(a!==void 0||s!==void 0)throw new Wr("implicit and hybrid flows are not supported");return l=new URLSearchParams(n),W0.add(l),l;var l}async function dg(e){let t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yj;try{t=await e.json()}catch(r){throw n(e),Be('failed to parse "response" body as JSON',xp,r)}if(!bp(t))throw Be('"response" body must be a top level object',pt,{body:t});return t}const Zy=Symbol(),o$=Symbol(),z1=new TextEncoder,sd=new TextDecoder;function Jy(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(r>127)throw new TypeError("non-ASCII string encountered in encode()");t[n]=r}return t}function i$(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function hg(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof e=="string"?e:sd.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=sd.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/");try{return i$(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}const ua=function(e){return new TypeError("CryptoKey does not support this operation, its ".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"algorithm.name"," must be ").concat(e))},dl=(e,t)=>e.name===t;function Qy(e,t){var n;if(n=e.hash,parseInt(n.name.slice(4),10)!==t)throw ua("SHA-".concat(t),"algorithm.hash")}
42function aK(e,t,n){switch(t){case"HS256":case"HS384":case"HS512":if(!dl(e.algorithm,"HMAC"))throw ua("HMAC");Qy(e.algorithm,parseInt(t.slice(2),10));break;case"RS256":case"RS384":case"RS512":if(!dl(e.algorithm,"RSASSA-PKCS1-v1_5"))throw ua("RSASSA-PKCS1-v1_5");Qy(e.algorithm,parseInt(t.slice(2),10));break;case"PS256":case"PS384":case"PS512":if(!dl(e.algorithm,"RSA-PSS"))throw ua("RSA-PSS");Qy(e.algorithm,parseInt(t.slice(2),10));break;case"Ed25519":case"EdDSA":if(!dl(e.algorithm,"Ed25519"))throw ua("Ed25519");break;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":if(!dl(e.algorithm,t))throw ua(t);break;case"ES256":case"ES384":case"ES512":{if(!dl(e.algorithm,"ECDSA"))throw ua("ECDSA");const r=(function(o){switch(o){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}})(t);if(e.algorithm.namedCurve!==r)throw ua(r,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}(function(r,o){if(!r.usages.includes(o))throw new TypeError("CryptoKey does not support this operation, its usages must include ".concat(o,"."))})(e,n)}function a$(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if((r=r.filter(Boolean)).length>2){const a=r.pop();e+="one of type ".concat(r.join(", "),", or ").concat(a,".")}else r.length===2?e+="one of type ".concat(r[0]," or ").concat(r[1],"."):e+="of type ".concat(r[0],".");if(t==null)e+=" Received ".concat(t);else if(typeof t=="function"&&t.name)e+=" Received function ".concat(t.name);else if(typeof t=="object"&&t!=null){var i;(i=t.constructor)!==null&&i!==void 0&&i.name&&(e+=" Received an instance of ".concat(t.constructor.name))}return e}const U1=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return a$("Key for the ".concat(e," algorithm must be "),t,...r)};class Wn extends Error{constructor(t,n){var r;super(t,n),Te(this,"code","ERR_JOSE_GENERIC"),this.name=this.constructor.name,(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}Te(Wn,"code","ERR_JOSE_GENERIC");class Po extends Wn{constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unspecified",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unspecified";super(t,{cause:{claim:r,reason:o,payload:n}}),Te(this,"code","ERR_JWT_CLAIM_VALIDATION_FAILED"),Te(this,"claim",void 0),Te(this,"reason",void 0),Te(this,"payload",void 0),this.claim=r,this.reason=o,this.payload=n}}Te(Po,"code","ERR_JWT_CLAIM_VALIDATION_FAILED");class ev extends Wn{constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unspecified",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unspecified";super(t,{cause:{claim:r,reason:o,payload:n}}),Te(this,"code","ERR_JWT_EXPIRED"),Te(this,"claim",void 0),Te(this,"reason",void 0),Te(this,"payload",void 0),this.claim=r,this.reason=o,this.payload=n}}Te(ev,"code","ERR_JWT_EXPIRED");class s$ extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JOSE_ALG_NOT_ALLOWED")}}Te(s$,"code","ERR_JOSE_ALG_NOT_ALLOWED");class Fr extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JOSE_NOT_SUPPORTED")}}Te(Fr,"code","ERR_JOSE_NOT_SUPPORTED");Te(class extends Wn{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"decryption operation failed",arguments.length>1?arguments[1]:void 0),Te(this,"code","ERR_JWE_DECRYPTION_FAILED")}},"code","ERR_JWE_DECRYPTION_FAILED");Te(class extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JWE_INVALID")}},"code","ERR_JWE_INVALID");class On extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JWS_INVALID")}}Te(On,"code","ERR_JWS_INVALID");class H0 extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JWT_INVALID")}}Te(H0,"code","ERR_JWT_INVALID");Te(class extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JWK_INVALID")}},"code","ERR_JWK_INVALID");class q0 extends Wn{constructor(){super(...arguments),Te(this,"code","ERR_JWKS_INVALID")}}
42Te(q0,"code","ERR_JWKS_INVALID");class V0 extends Wn{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"no applicable key found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),Te(this,"code","ERR_JWKS_NO_MATCHING_KEY")}}Te(V0,"code","ERR_JWKS_NO_MATCHING_KEY");class l$ extends Wn{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"multiple matching keys found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),Te(this,Symbol.asyncIterator,void 0),Te(this,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS")}}Te(l$,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS");class c$ extends Wn{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"request timed out",arguments.length>1?arguments[1]:void 0),Te(this,"code","ERR_JWKS_TIMEOUT")}}Te(c$,"code","ERR_JWKS_TIMEOUT");class u$ extends Wn{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"signature verification failed",arguments.length>1?arguments[1]:void 0),Te(this,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED")}}Te(u$,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED");const d$=e=>{if(e?.[Symbol.toStringTag]==="CryptoKey")return!0;try{return e instanceof CryptoKey}catch{return!1}},h$=e=>e?.[Symbol.toStringTag]==="KeyObject",F1=e=>d$(e)||h$(e);function W1(e,t,n){try{return hg(e)}catch{throw new n("Failed to base64url decode the ".concat(t))}}function Ca(e){if(typeof(t=e)!="object"||t===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}const tv=e=>Ca(e)&&typeof e.kty=="string";async function sK(e,t,n){if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError((function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return a$("Key must be ",r,...i)})(t,"CryptoKey","KeyObject","JSON Web Key"));return crypto.subtle.importKey("raw",t,{hash:"SHA-".concat(e.slice(-3)),name:"HMAC"},!1,[n])}return aK(t,e,n),t}async function lK(e,t,n,r){const o=await sK(e,t,"verify");(function(a,s){if(a.startsWith("RS")||a.startsWith("PS")){const{modulusLength:l}=s.algorithm;if(typeof l!="number"||l<2048)throw new TypeError("".concat(a," requires key modulusLength to be 2048 bits or larger"))}})(e,o);const i=(function(a,s){const l="SHA-".concat(a.slice(-3));switch(a){case"HS256":case"HS384":case"HS512":return{hash:l,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:l,name:"RSA-PSS",saltLength:parseInt(a.slice(-3),10)>>3};case"RS256":case"RS384":case"RS512":return{hash:l,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:l,name:"ECDSA",namedCurve:s.namedCurve};
42case"Ed25519":case"EdDSA":return{name:"Ed25519"};case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return{name:a};default:throw new Fr("alg ".concat(a," is not supported either by JOSE or your javascript runtime"))}})(e,o.algorithm);try{return await crypto.subtle.verify(i,o,n,r)}catch{return!1}}const im='Invalid or unsupported JWK "alg" (Algorithm) Parameter value';async function Gm(e){var t,n;if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:r,keyUsages:o}=(function(a){let s,l;switch(a.kty){case"AKP":switch(a.alg){case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":s={name:a.alg},l=a.priv?["sign"]:["verify"];break;default:throw new Fr(im)}break;case"RSA":switch(a.alg){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:"SHA-".concat(a.alg.slice(-3))},l=a.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:"SHA-".concat(a.alg.slice(-3))},l=a.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:"SHA-".concat(parseInt(a.alg.slice(-3),10)||1)},l=a.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Fr(im)}break;case"EC":switch(a.alg){case"ES256":case"ES384":case"ES512":s={name:"ECDSA",namedCurve:{ES256:"P-256",ES384:"P-384",ES512:"P-521"}[a.alg]},l=a.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":s={name:"ECDH",namedCurve:a.crv},l=a.d?["deriveBits"]:[];break;default:throw new Fr(im)}break;
42case"OKP":switch(a.alg){case"Ed25519":case"EdDSA":s={name:"Ed25519"},l=a.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":s={name:a.crv},l=a.d?["deriveBits"]:[];break;default:throw new Fr(im)}break;default:throw new Fr('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:s,keyUsages:l}})(e),i=Re({},e);return i.kty!=="AKP"&&delete i.alg,delete i.use,crypto.subtle.importKey("jwk",i,r,(t=e.ext)!==null&&t!==void 0?t:!e.d&&!e.priv,(n=e.key_ops)!==null&&n!==void 0?n:o)}const hl="given KeyObject instance cannot be used for this algorithm";let ya;const B1=async function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];ya||(ya=new WeakMap);let o=ya.get(e);if(o!=null&&o[n])return o[n];const i=await Gm(Re(Re({},t),{},{alg:n}));return r&&Object.freeze(e),o?o[n]=i:ya.set(e,{[n]:i}),i};async function cK(e,t){if(e instanceof Uint8Array||d$(e))return e;if(h$(e)){if(e.type==="secret")return e.export();if("toCryptoKey"in e&&typeof e.toCryptoKey=="function")try{return((r,o)=>{ya||(ya=new WeakMap);let i=ya.get(r);if(i!=null&&i[o])return i[o];const a=r.type==="public",s=!!a;let l;if(r.asymmetricKeyType==="x25519"){switch(o){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw new TypeError(hl)}l=r.toCryptoKey(r.asymmetricKeyType,s,a?[]:["deriveBits"])}if(r.asymmetricKeyType==="ed25519"){if(o!=="EdDSA"&&o!=="Ed25519")throw new TypeError(hl);l=r.toCryptoKey(r.asymmetricKeyType,s,[a?"verify":"sign"])}switch(r.asymmetricKeyType){case"ml-dsa-44":case"ml-dsa-65":case"ml-dsa-87":if(o!==r.asymmetricKeyType.toUpperCase())throw new TypeError(hl);l=r.toCryptoKey(r.asymmetricKeyType,s,[a?"verify":"sign"])}if(r.asymmetricKeyType==="rsa"){let h;switch(o){case"RSA-OAEP":h="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":h="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":h="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":h="SHA-512";break;default:throw new TypeError(hl)}if(o.startsWith("RSA-OAEP"))return r.toCryptoKey({name:"RSA-OAEP",hash:h},s,a?["encrypt"]:["decrypt"]);l=r.toCryptoKey({name:o.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:h},s,[a?"verify":"sign"])}if(r.asymmetricKeyType==="ec"){var c;const h=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]).get((c=r.asymmetricKeyDetails)===null||c===void 0?void 0:c.namedCurve);if(!h)throw new TypeError(hl);const d={ES256:"P-256",ES384:"P-384",ES512:"P-521"};d[o]&&h===d[o]&&(l=r.toCryptoKey({name:"ECDSA",namedCurve:h},s,[a?"verify":"sign"])),o.startsWith("ECDH-ES")&&(l=r.toCryptoKey({name:"ECDH",namedCurve:h},s,a?[]:["deriveBits"]))}if(!l)throw new TypeError(hl);return i?i[o]=l:ya.set(r,{[o]:l}),l})(e,t)}catch(r){if(r instanceof TypeError)throw r}let n=e.export({format:"jwk"});return B1(e,n,t)}if(tv(e))return e.k?hg(e.k):B1(e,e,t,!0);throw new Error("unreachable")}const Xy=(e,t)=>{if(e.byteLength!==t.length)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},Fu=e=>{const t=e.data[e.pos++];if(128&t){const n=127&t;let r=0;for(let o=0;o<n;o++)r=r<<8|e.data[e.pos++];return r}return t}
42,Wu=(e,t,n)=>{if(e.data[e.pos++]!==t)throw new Error(n)},H1=(e,t)=>{const n=e.data.subarray(e.pos,e.pos+t);return e.pos+=t,n},uK=e=>{const t=(o=>{Wu(o,6,"Expected algorithm OID");const i=Fu(o);return H1(o,i)})(e);if(Xy(t,[43,101,110]))return"X25519";if(!Xy(t,[42,134,72,206,61,2,1]))throw new Error("Unsupported key algorithm");Wu(e,6,"Expected curve OID");const n=Fu(e),r=H1(e,n);for(const{name:o,oid:i}of[{name:"P-256",oid:[42,134,72,206,61,3,1,7]},{name:"P-384",oid:[43,129,4,0,34]},{name:"P-521",oid:[43,129,4,0,35]}])if(Xy(r,i))return o;throw new Error("Unsupported named curve")},dK=async(e,t,n,r)=>{var o;let i,a;const s=()=>["sign"];switch(n){case"PS256":case"PS384":case"PS512":i={name:"RSA-PSS",hash:"SHA-".concat(n.slice(-3))},a=s();break;case"RS256":case"RS384":case"RS512":i={name:"RSASSA-PKCS1-v1_5",hash:"SHA-".concat(n.slice(-3))},a=s();break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":i={name:"RSA-OAEP",hash:"SHA-".concat(parseInt(n.slice(-3),10)||1)},a=["decrypt","unwrapKey"];break;case"ES256":case"ES384":case"ES512":i={name:"ECDSA",namedCurve:{ES256:"P-256",ES384:"P-384",ES512:"P-521"}[n]},a=s();break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":try{const l=r.getNamedCurve(t);i=l==="X25519"?{name:"X25519"}:{name:"ECDH",namedCurve:l}}catch{throw new Fr("Invalid or unsupported key format")}a=["deriveBits"];break;
42case"Ed25519":case"EdDSA":i={name:"Ed25519"},a=s();break;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":i={name:n},a=s();break;default:throw new Fr('Invalid or unsupported "alg" (Algorithm) value')}return crypto.subtle.importKey(e,t,i,(o=r?.extractable)!==null&&o!==void 0?o:!1,a)},hK=(e,t,n)=>{var r;const o=((a,s)=>i$(a.replace(s,"")))(e,/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g);let i=n;return t!=null&&(r=t.startsWith)!==null&&r!==void 0&&r.call(t,"ECDH-ES")&&(i||(i={}),i.getNamedCurve=a=>{const s={data:a,pos:0};return(function(l){Wu(l,48,"Invalid PKCS#8 structure"),Fu(l),Wu(l,2,"Expected version field");const c=Fu(l);l.pos+=c,Wu(l,48,"Expected algorithm identifier"),Fu(l)})(s),uK(s)}),dK("pkcs8",o,t,i)},ml=e=>e?.[Symbol.toStringTag],eb=(e,t,n)=>{if(t.use!==void 0){let i;switch(n){case"sign":case"verify":i="sig";break;case"encrypt":case"decrypt":i="enc"}if(t.use!==i)throw new TypeError('Invalid key for this operation, its "use" must be "'.concat(i,'" when present'))}if(t.alg!==void 0&&t.alg!==e)throw new TypeError('Invalid key for this operation, its "alg" must be "'.concat(e,'" when present'));if(Array.isArray(t.key_ops)){var r,o;let i;switch(!0){case n==="verify":case e==="dir":case e.includes("CBC-HS"):i=n;break;case e.startsWith("PBES2"):i="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(e):i=!e.includes("GCM")&&e.endsWith("KW")?"unwrapKey":n;break;case n==="encrypt":i="wrapKey";break;case n==="decrypt":i=e.startsWith("RSA")?"unwrapKey":"deriveBits"}if(i&&((r=t.key_ops)===null||r===void 0||(o=r.includes)===null||o===void 0?void 0:o.call(r,i))===!1)throw new TypeError('Invalid key for this operation, its "key_ops" must include "'.concat(i,'" when present'))}return!0};function mK(e,t,n){switch(e.substring(0,2)){case"A1":case"A2":case"di":case"HS":case"PB":((r,o,i)=>{if(!(o instanceof Uint8Array)){if(tv(o)){if((a=>a.kty==="oct"&&typeof a.k=="string")(o)&&eb(r,o,i))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!F1(o))throw new TypeError(U1(r,o,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"));if(o.type!=="secret")throw new TypeError("".concat(ml(o),' instances for symmetric algorithms must be of type "secret"'))}})(e,t,n);break;default:((r,o,i)=>{if(tv(o))switch(i){case"decrypt":case"sign":if((a=>a.kty!=="oct"&&(a.kty==="AKP"&&typeof a.priv=="string"||typeof a.d=="string"))(o)&&eb(r,o,i))return;throw new TypeError("JSON Web Key for this operation must be a private JWK");case"encrypt":case"verify":if((a=>a.kty!=="oct"&&a.d===void 0&&a.priv===void 0)(o)&&eb(r,o,i))return;throw new TypeError("JSON Web Key for this operation must be a public JWK")}if(!F1(o))throw new TypeError(U1(r,o,"CryptoKey","KeyObject","JSON Web Key"));if(o.type==="secret")throw new TypeError("".concat(ml(o),' instances for asymmetric algorithms must not be of type "secret"'));if(o.type==="public")switch(i){case"sign":throw new TypeError("".concat(ml(o),' instances for asymmetric algorithm signing must be of type "private"'));case"decrypt":throw new TypeError("".concat(ml(o),' instances for asymmetric algorithm decryption must be of type "private"'))}if(o.type==="private")switch(i){case"verify":throw new TypeError("".concat(ml(o),' instances for asymmetric algorithm verifying must be of type "public"'));case"encrypt":throw new TypeError("".concat(ml(o),' instances for asymmetric algorithm encryption must be of type "public"'))}})(e,t,n)}}var am,tb;let mi,q1;(typeof navigator>"u"||(am=navigator.userAgent)===null||am===void 0||(tb=am.startsWith)===null||tb===void 0||!tb.call(am,"Mozilla/5.0 "))&&(q1="".concat("openid-client","/").concat("v6.8.2"),mi={"user-agent":q1});const $n=e=>Ym.get(e);let Ym,sm;function m$(e){return e!==void 0?M1(e):(sm||(sm=new WeakMap),(t,n,r,o)=>{let i;return(i=sm.get(n))||((function(a,s){if(typeof a!="string")throw pi("".concat(s," must be a string"),nh);if(a.length===0)throw pi("".concat(s," must not be empty"),th)})(n.client_secret,'"metadata.client_secret"'),i=M1(n.client_secret),sm.set(n,i)),i(t,n,r,o)})}const Ci=Ko,th="ERR_INVALID_ARG_VALUE",nh="ERR_INVALID_ARG_TYPE";function pi(e,t,n){const r=new TypeError(e,{cause:n});return Object.assign(r,{code:t}),r}function pK(e){return(async function(t){return yn(t,"codeVerifier"),vs(await crypto.subtle.digest("SHA-256",Bl(t)))})(e)}function fK(){return Zj()}
42class _p extends Error{constructor(t,n){var r;super(t,n),Te(this,"code",void 0),this.name=this.constructor.name,this.code=n?.code,(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}function ur(e,t,n){return new _p(e,{cause:t,code:n})}function yr(e){if(e instanceof TypeError||e instanceof _p||e instanceof ug||e instanceof Jj||e instanceof z0)throw e;if(e instanceof $0)switch(e.code){case n$:throw ur("only requests to HTTPS are allowed",e,e.code);case r$:throw ur("only requests to HTTP or HTTPS are allowed",e,e.code);case B0:throw ur("unexpected HTTP response status code",e.cause,e.code);case t$:throw ur("unexpected response content-type",e.cause,e.code);case xp:throw ur("parsing error occured",e,e.code);case pt:throw ur("invalid response encountered",e,e.code);case Di:throw ur("unexpected JWT claim value encountered",e,e.code);case Xw:throw ur("unexpected JSON attribute value encountered",e,e.code);case ad:throw ur("JWT timestamp claim value failed validation",e,e.code);default:throw ur(e.message,e,e.code)}if(e instanceof Wr)throw ur("unsupported operation",e,e.code);if(e instanceof DOMException)switch(e.name){case"OperationError":throw ur("runtime operation error",e,Qw);case"NotSupportedError":throw ur("runtime unsupported operation",e,Qw);case"TimeoutError":throw ur("operation timed out",e,"OAUTH_TIMEOUT");case"AbortError":throw ur("operation aborted",e,"OAUTH_ABORT")}throw new _p("something went wrong",{cause:e})}async function gK(e,t,n,r,o){const i=await(async function(l,c){var h,d;if(!(l instanceof URL))throw pi('"server" must be an instance of URL',nh);const p=!l.href.includes("/.well-known/"),f=(h=c?.timeout)!==null&&h!==void 0?h:30,b=AbortSignal.timeout(1e3*f),y=await(p?OV(l,{algorithm:c?.algorithm,[Ko]:c?.[Ci],[fo]:c==null||(d=c.execute)===null||d===void 0?void 0:d.includes(G1),signal:b,headers:new Headers(mi)}):(c?.[Ci]||fetch)((L0(l,c==null||(w=c.execute)===null||w===void 0||!w.includes(G1)),l.href),{headers:Object.fromEntries(new Headers(Re({accept:"application/json"},mi)).entries()),body:void 0,method:"GET",redirect:"manual",signal:b})).then(k=>(async function(x,S){const I=x;if(!(I instanceof URL)&&I!==Zy)throw Et('"expectedIssuerIdentifier" must be an instance of URL',Ar);if(!Ic(S,Response))throw Et('"response" must be an instance of Response',Ar);if(S.status!==200)throw Be('"response" is not a conform Authorization Server Metadata response (unexpected HTTP status code)',B0,S);eh(S);const E=await dg(S);if(yn(E.issuer,'"response" body "issuer" property',pt,{body:E}),I!==Zy&&new URL(E.issuer).href!==I.href)throw Be('"response" body "issuer" property does not match the expected value',Xw,{expected:I.href,body:E,attribute:"issuer"});return E})(Zy,k)).catch(yr);var w;return p&&new URL(y.issuer).href!==l.href&&((function(k,x,S){return!(k.origin!=="https://login.microsoftonline.com"||S!=null&&S.algorithm&&S.algorithm!=="oidc"||(x[p$]=!0,0))})(l,y,c)||(function(k,x){return!(!k.hostname.endsWith(".b2clogin.com")||x!=null&&x.algorithm&&x.algorithm!=="oidc")})(l,c)||(()=>{throw new _p("discovered metadata issuer does not match the expected issuer",{code:Xw,cause:{expected:l.href,body:y,attribute:"issuer"}})})()),y})(e,o),a=new ld(i,t,n,r);let s=$n(a);if(o!=null&&o[Ci]&&(s.fetch=o[Ci]),o!=null&&o.timeout&&(s.timeout=o.timeout),o!=null&&o.execute)for(const l of o.execute)l(a);return a}new TextDecoder;const p$=Symbol();class ld{constructor(t,n,r,o){var i,a,s,l,c;if(typeof n!="string"||!n.length)throw pi('"clientId" must be a non-empty string',nh);if(typeof r=="string"&&(r={client_secret:r}),((i=r)===null||i===void 0?void 0:i.client_id)!==void 0&&n!==r.client_id)throw pi('"clientId" and "metadata.client_id" must be the same',th);const h=Re(Re({},structuredClone(r)),{},{client_id:n});let d;h[Kw]=(a=(s=r)===null||s===void 0?void 0:s[Kw])!==null&&a!==void 0?a:0,h[Gw]=(l=(c=r)===null||c===void 0?void 0:c[Gw])!==null&&l!==void 0?l:30,d=o||(typeof h.client_secret=="string"&&h.client_secret.length?m$(h.client_secret):(y,w,k,x)=>{k.set("client_id",w.client_id)});let p=Object.freeze(h);const f=structuredClone(t);p$ in t&&(f[o$]=y=>{let{claims:{tid:w}}=y;return t.issuer.replace("{tenantid}",w)});let b=Object.freeze(f);Ym||(Ym=new WeakMap),Ym.set(this,{__proto__:null,as:b,c:p,auth:d,tlsOnly:!0,jwksCache:{}})}serverMetadata(){const t=structuredClone($n(this).as);return(function(n){Object.defineProperties(n,(function(r){return{supportsPKCE:{__proto__:null,value(){var o;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"S256";return((o=r.code_challenge_methods_supported)===null||o===void 0?void 0:o.includes(i))===!0}}}})(n))})(t),t}clientMetadata(){return structuredClone($n(this).c)}get timeout(){return $n(this).timeout}set timeout(t){$n(this).timeout=t}get[Ci](){return $n(this).fetch}set[Ci](t){$n(this).fetch=t}}function rh(e){Object.defineProperties(e,(function(t){let n;if(t.expires_in!==void 0){const r=new Date;r.setSeconds(r.getSeconds()+t.expires_in),n=r.getTime()}
42return{expiresIn:{__proto__:null,value(){if(n){const r=Date.now();return n>r?Math.floor((n-r)/1e3):0}}},claims:{__proto__:null,value(){try{return Jw(this)}catch{return}}}}})(e))}async function V1(e,t,n){var r;let o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const i=(r=e.headers.get("retry-after"))===null||r===void 0?void 0:r.trim();if(i===void 0)return;let a;if(/^\d+$/.test(i))a=parseInt(i,10);else{const s=new Date(i);if(Number.isFinite(s.getTime())){const l=new Date,c=s.getTime()-l.getTime();c>0&&(a=Math.ceil(c/1e3))}}if(o&&!Number.isFinite(a))throw new $0("invalid Retry-After header value",{cause:e});a>t&&await f$(a-t,n)}function f$(e,t){return new Promise((n,r)=>{const o=i=>{try{t.throwIfAborted()}catch(s){return void r(s)}if(i<=0)return void n();const a=Math.min(i,5);setTimeout(()=>o(i-a),1e3*a)};o(e)})}async function K1(e,t){Li(e);const{as:n,c:r,auth:o,fetch:i,tlsOnly:a,timeout:s}=$n(e);return(async function(l,c,h,d,p){Bo(l),Ho(c);const f=Qd(l,"backchannel_authentication_endpoint",c.use_mtls_endpoint_aliases,p?.[fo]!==!0),b=new URLSearchParams(d);b.set("client_id",c.client_id);const y=cg(p?.headers);return y.set("accept","application/json"),F0(l,c,h,f,b,y,p)})(n,r,o,t,{[Ko]:i,[fo]:!a,headers:new Headers(mi),signal:Fs(s)}).then(l=>(async function(c,h,d){if(Bo(c),Ho(h),!Ic(d,Response))throw Et('"response" must be an instance of Response',Ar);await U0(d,200,"Backchannel Authentication Endpoint"),eh(d);const p=await dg(d);yn(p.auth_req_id,'"response" body "auth_req_id" property',pt,{body:p});let f=typeof p.expires_in!="number"?parseFloat(p.expires_in):p.expires_in;return _a(f,!0,'"response" body "expires_in" property',pt,{body:p}),p.expires_in=f,p.interval!==void 0&&_a(p.interval,!1,'"response" body "interval" property',pt,{body:p}),p})(n,r,l)).catch(yr)}async function g$(e,t,n,r){var o,i;Li(e),n=new URLSearchParams(n);let a=(o=t.interval)!==null&&o!==void 0?o:5;const s=(i=r?.signal)!==null&&i!==void 0?i:AbortSignal.timeout(1e3*t.expires_in);try{await f$(a,s)}catch(E){yr(E)}const{as:l,c,auth:h,fetch:d,tlsOnly:p,nonRepudiation:f,timeout:b,decrypt:y}=$n(e),w=(E,C)=>g$(e,Re(Re({},t),{},{interval:E}),n,Re(Re({},r),{},{signal:s,flag:C})),k=await(async function(E,C,$,T,P){Bo(E),Ho(C),yn(T,'"authReqId"');const D=new URLSearchParams(P?.additionalParameters);return D.set("auth_req_id",T),Xd(E,C,$,"urn:openid:params:grant-type:ciba",D,P)})(l,c,h,t.auth_req_id,{[Ko]:d,[fo]:!p,additionalParameters:n,DPoP:r?.DPoP,headers:new Headers(mi),signal:s.aborted?s:Fs(b)}).catch(yr);var x;if(k.status===503&&k.headers.has("retry-after"))return await V1(k,a,s,!0),await((x=k.body)===null||x===void 0?void 0:x.cancel()),w(a);const S=(async function(E,C,$,T){return ac(E,C,$,void 0,T?.[Mi],T?.recognizedTokenTypes)})(l,c,k,{[Mi]:y});let I;try{I=await S}catch(E){if(oh(E,r))return w(a,Sa);if(E instanceof ug)switch(E.error){case"slow_down":a+=5;case"authorization_pending":return await V1(E.response,a,s),w(a)}yr(E)}return I.id_token&&await f?.(k),rh(I),I}function G1(e){$n(e).tlsOnly=!1}async function y$(e,t,n,r,o){if(Li(e),!(o?.flag===Sa||t instanceof URL||(function(E,C){try{return Object.getPrototypeOf(E)[Symbol.toStringTag]===C}catch{return!1}})(t,"Request")))throw pi('"currentUrl" must be an instance of URL, or Request',nh);let i,a;const{as:s,c:l,auth:c,fetch:h,tlsOnly:d,jarm:p,hybrid:f,nonRepudiation:b,timeout:y,decrypt:w,implicit:k}=$n(e);if(o?.flag===Sa)i=o.authResponse,a=o.redirectUri;else{if(!(t instanceof URL)){const E=t;switch(t=new URL(t.url),E.method){case"GET":break;case"POST":const C=new URLSearchParams(await tK(E));if(f)t.hash=C.toString();else for(const[$,T]of C.entries())t.searchParams.append($,T);break;default:throw pi("unexpected Request HTTP method",th)}}switch(a=(function(E){return(E=new URL(E)).search="",E.hash="",E.href})(t),!0){case!!p:i=await p(t,n?.expectedState);break;case!!f:i=await f(t,n?.expectedNonce,n?.expectedState,n?.maxAge);break;case!!k:throw new TypeError("authorizationCodeGrant() cannot be used by response_type=id_token clients");default:try{i=iK(s,l,t.searchParams,n?.expectedState)}catch(E){yr(E)}}}const x=await(async function(E,C,$,T,P,D,H){if(Bo(E),Ho(C),!W0.has(T))throw Et('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',Xn);yn(P,'"redirectUri"');const z=ls(T,"code");if(!z)throw Be('no authorization code in "callbackParameters"',pt);const V=new URLSearchParams(H?.additionalParameters);
42return V.set("redirect_uri",P),V.set("code",z),D!==$1&&(yn(D,'"codeVerifier"'),V.set("code_verifier",D)),Xd(E,C,$,"authorization_code",V,H)})(s,l,c,i,a,n?.pkceCodeVerifier||$1,{additionalParameters:r,[Ko]:h,[fo]:!d,DPoP:o?.DPoP,headers:new Headers(mi),signal:Fs(y)}).catch(yr);typeof n?.expectedNonce!="string"&&typeof n?.maxAge!="number"||(n.idTokenExpected=!0);const S=GV(s,l,x,{expectedNonce:n?.expectedNonce,maxAge:n?.maxAge,requireIdToken:n?.idTokenExpected,[Mi]:w});let I;try{I=await S}catch(E){if(oh(E,o))return y$(e,void 0,n,r,Re(Re({},o),{},{flag:Sa,authResponse:i,redirectUri:a}));yr(E)}return I.id_token&&await b?.(x),rh(I),I}async function b$(e,t,n,r){Li(e),n=new URLSearchParams(n);const{as:o,c:i,auth:a,fetch:s,tlsOnly:l,nonRepudiation:c,timeout:h,decrypt:d}=$n(e),p=await(async function(y,w,k,x,S){Bo(y),Ho(w),yn(x,'"refreshToken"');const I=new URLSearchParams(S?.additionalParameters);return I.set("refresh_token",x),Xd(y,w,k,"refresh_token",I,S)})(o,i,a,t,{[Ko]:s,[fo]:!l,additionalParameters:n,DPoP:r?.DPoP,headers:new Headers(mi),signal:Fs(h)}).catch(yr),f=(async function(y,w,k,x){return ac(y,w,k,void 0,x?.[Mi],x?.recognizedTokenTypes)})(o,i,p,{[Mi]:d});let b;try{b=await f}catch(y){if(oh(y,r))return b$(e,t,n,Re(Re({},r),{},{flag:Sa}));yr(y)}return b.id_token&&await c?.(p),rh(b),b}async function w$(e,t,n){Li(e),t=new URLSearchParams(t);const{as:r,c:o,auth:i,fetch:a,tlsOnly:s,timeout:l}=$n(e),c=await(async function(p,f,b,y,w){return Bo(p),Ho(f),Xd(p,f,b,"client_credentials",new URLSearchParams(y),w)})(r,o,i,t,{[Ko]:a,[fo]:!s,DPoP:n?.DPoP,headers:new Headers(mi),signal:Fs(l)}).catch(yr),h=(async function(p,f,b,y){return ac(p,f,b,void 0,void 0,void 0)})(r,o,c);let d;try{d=await h}catch(p){if(oh(p,n))return w$(e,t,Re(Re({},n),{},{flag:Sa}));yr(p)}return rh(d),d}function nv(e,t){Li(e);const{as:n,c:r,tlsOnly:o,hybrid:i,jarm:a,implicit:s}=$n(e),l=Qd(n,"authorization_endpoint",!1,o);if((t=new URLSearchParams(t)).has("client_id")||t.set("client_id",r.client_id),!t.has("request_uri")&&!t.has("request")){if(t.has("response_type")||t.set("response_type",i?"code id_token":s?"id_token":"code"),s&&!t.has("nonce"))throw pi("response_type=id_token clients must provide a nonce parameter in their authorization request parameters",th);a&&t.set("response_mode","jwt")}for(const[c,h]of t.entries())l.searchParams.append(c,h);return l}async function v$(e,t,n){Li(e);const r=nv(e,t),{as:o,c:i,auth:a,fetch:s,tlsOnly:l,timeout:c}=$n(e),h=await(async function(f,b,y,w,k){var x;Bo(f),Ho(b);const S=Qd(f,"pushed_authorization_request_endpoint",b.use_mtls_endpoint_aliases,k?.[fo]!==!0),I=new URLSearchParams(w);I.set("client_id",b.client_id);const E=cg(k?.headers);E.set("accept","application/json"),k?.DPoP!==void 0&&(Qj(k.DPoP),await k.DPoP.addProof(S,E,"POST"));const C=await F0(f,b,y,S,I,E,k);return k==null||(x=k.DPoP)===null||x===void 0||x.cacheNonce(C,S),C})(o,i,a,r.searchParams,{[Ko]:s,[fo]:!l,DPoP:n?.DPoP,headers:new Headers(mi),signal:Fs(c)}).catch(yr),d=(async function(f,b,y){if(Bo(f),Ho(b),!Ic(y,Response))throw Et('"response" must be an instance of Response',Ar);await U0(y,201,"Pushed Authorization Request Endpoint"),eh(y);const w=await dg(y);yn(w.request_uri,'"response" body "request_uri" property',pt,{body:w});let k=typeof w.expires_in!="number"?parseFloat(w.expires_in):w.expires_in;return _a(k,!0,'"response" body "expires_in" property',pt,{body:w}),w.expires_in=k,w})(o,i,h);let p;try{p=await d}catch(f){if(oh(f,n))return v$(e,t,Re(Re({},n),{},{flag:Sa}));yr(f)}return nv(e,{request_uri:p.request_uri})}function Li(e){if(!(e instanceof ld))throw pi('"config" must be an instance of Configuration',nh);if(Object.getPrototypeOf(e)!==ld.prototype)throw pi("subclassing Configuration is not allowed",th)}function Fs(e){return e?AbortSignal.timeout(1e3*e):void 0}function oh(e,t){return!(t==null||!t.DPoP||t.flag===Sa)&&(function(n){if(n instanceof z0){const{0:r,length:o}=n.cause;return o===1&&r.scheme==="dpop"&&r.parameters.error==="use_dpop_nonce"}return n instanceof ug&&n.error==="use_dpop_nonce"})(e)}Object.freeze(ld.prototype);const Sa=Symbol();async function K0(e,t,n,r){Li(e);const{as:o,c:i,auth:a,fetch:s,tlsOnly:l,timeout:c,decrypt:h}=$n(e),d=await(async function(p,f,b,y,w,k){return Bo(p),Ho(f),yn(y,'"grantType"'),Xd(p,f,b,y,new URLSearchParams(w),k)})(o,i,a,t,new URLSearchParams(n),{[Ko]:s,[fo]:!l,DPoP:void 0,headers:new Headers(mi),signal:Fs(c)}).then(p=>{let f;return t==="urn:ietf:params:oauth:grant-type:token-exchange"&&(f={n_a:()=>{}}),(async function(b,y,w,k){return ac(b,y,w,void 0,k?.[Mi],k?.recognizedTokenTypes)})(o,i,p,{[Mi]:h,recognizedTokenTypes:f})}).catch(yr);return rh(d),d}async function yK(e,t,n){if(!Ca(e))throw new On("Flattened JWS must be an object");
42if(e.protected===void 0&&e.header===void 0)throw new On('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new On("JWS Protected Header incorrect type");if(e.payload===void 0)throw new On("JWS Payload missing");if(typeof e.signature!="string")throw new On("JWS Signature missing or incorrect type");if(e.header!==void 0&&!Ca(e.header))throw new On("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const y=hg(e.protected);r=JSON.parse(sd.decode(y))}catch{throw new On("JWS Protected Header is invalid")}if(!(function(){for(var y=arguments.length,w=new Array(y),k=0;k<y;k++)w[k]=arguments[k];const x=w.filter(Boolean);if(x.length===0||x.length===1)return!0;let S;for(const I of x){const E=Object.keys(I);if(S&&S.size!==0)for(const C of E){if(S.has(C))return!1;S.add(C)}else S=new Set(E)}return!0})(r,e.header))throw new On("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const o=Re(Re({},r),e.header),i=(function(y,w,k,x,S){if(S.crit!==void 0&&x?.crit===void 0)throw new y('"crit" (Critical) Header Parameter MUST be integrity protected');if(!x||x.crit===void 0)return new Set;if(!Array.isArray(x.crit)||x.crit.length===0||x.crit.some(E=>typeof E!="string"||E.length===0))throw new y('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let I;I=k!==void 0?new Map([...Object.entries(k),...w.entries()]):w;for(const E of x.crit){if(!I.has(E))throw new Fr('Extension Header Parameter "'.concat(E,'" is not recognized'));if(S[E]===void 0)throw new y('Extension Header Parameter "'.concat(E,'" is missing'));if(I.get(E)&&x[E]===void 0)throw new y('Extension Header Parameter "'.concat(E,'" MUST be integrity protected'))}return new Set(x.crit)})(On,new Map([["b64",!0]]),n?.crit,r,o);let a=!0;if(i.has("b64")&&(a=r.b64,typeof a!="boolean"))throw new On('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=o;if(typeof s!="string"||!s)throw new On('JWS "alg" (Algorithm) Header Parameter missing or invalid');const l=n&&(function(y,w){if(w!==void 0&&(!Array.isArray(w)||w.some(k=>typeof k!="string")))throw new TypeError('"'.concat(y,'" option must be an array of strings'));if(w)return new Set(w)})("algorithms",n.algorithms);if(l&&!l.has(s))throw new s$('"alg" (Algorithm) Header Parameter value not allowed');if(a){if(typeof e.payload!="string")throw new On("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new On("JWS Payload must be a string or an Uint8Array instance");let c=!1;typeof t=="function"&&(t=await t(r,e),c=!0),mK(s,t,"verify");const h=(function(){for(var y=arguments.length,w=new Array(y),k=0;k<y;k++)w[k]=arguments[k];const x=w.reduce((E,C)=>{let{length:$}=C;return E+$},0),S=new Uint8Array(x);let I=0;for(const E of w)S.set(E,I),I+=E.length;return S})(e.protected!==void 0?Jy(e.protected):new Uint8Array,Jy("."),typeof e.payload=="string"?a?Jy(e.payload):z1.encode(e.payload):e.payload),d=W1(e.signature,"signature",On),p=await cK(t,s);if(!await lK(s,p,d,h))throw new u$;let f;f=a?W1(e.payload,"payload",On):typeof e.payload=="string"?z1.encode(e.payload):e.payload;const b={payload:f};return e.protected!==void 0&&(b.protectedHeader=r),e.header!==void 0&&(b.unprotectedHeader=e.header),c?Re(Re({},b),{},{key:p}):b}const bK=86400,wK=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;function Y1(e){const t=wK.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*bK);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return t[1]==="-"||t[4]==="ago"?-r:r}const Z1=e=>e.includes("/")?e.toLowerCase():"application/".concat(e.toLowerCase());function vK(e,t){let n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{n=JSON.parse(sd.decode(t))}catch{}if(!Ca(n))throw new H0("JWT Claims Set must be a top-level JSON object");const{typ:o}=r;
42if(o&&(typeof e.typ!="string"||Z1(e.typ)!==Z1(o)))throw new Po('unexpected "typ" JWT header value',n,"typ","check_failed");const{requiredClaims:i=[],issuer:a,subject:s,audience:l,maxTokenAge:c}=r,h=[...i];c!==void 0&&h.push("iat"),l!==void 0&&h.push("aud"),s!==void 0&&h.push("sub"),a!==void 0&&h.push("iss");for(const k of new Set(h.reverse()))if(!(k in n))throw new Po('missing required "'.concat(k,'" claim'),n,k,"missing");if(a&&!(Array.isArray(a)?a:[a]).includes(n.iss))throw new Po('unexpected "iss" claim value',n,"iss","check_failed");if(s&&n.sub!==s)throw new Po('unexpected "sub" claim value',n,"sub","check_failed");if(l&&(d=n.aud,p=typeof l=="string"?[l]:l,!(typeof d=="string"?p.includes(d):Array.isArray(d)&&p.some(Set.prototype.has.bind(new Set(d))))))throw new Po('unexpected "aud" claim value',n,"aud","check_failed");var d,p;let f;switch(typeof r.clockTolerance){case"string":f=Y1(r.clockTolerance);break;case"number":f=r.clockTolerance;break;case"undefined":f=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:b}=r,y=(w=b||new Date,Math.floor(w.getTime()/1e3));var w;if((n.iat!==void 0||c)&&typeof n.iat!="number")throw new Po('"iat" claim must be a number',n,"iat","invalid");if(n.nbf!==void 0){if(typeof n.nbf!="number")throw new Po('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>y+f)throw new Po('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(n.exp!==void 0){if(typeof n.exp!="number")throw new Po('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=y-f)throw new ev('"exp" claim timestamp check failed',n,"exp","check_failed")}if(c){const k=y-n.iat;if(k-f>(typeof c=="number"?c:Y1(c)))throw new ev('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(k<0-f)throw new Po('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n}async function kK(e,t,n){var r;const o=await(async function(a,s,l){if(a instanceof Uint8Array&&(a=sd.decode(a)),typeof a!="string")throw new On("Compact JWS must be a string or Uint8Array");const{0:c,1:h,2:d,length:p}=a.split(".");if(p!==3)throw new On("Invalid Compact JWS");const f=await yK({payload:h,protected:c,signature:d},s,l),b={payload:f.payload,protectedHeader:f.protectedHeader};return typeof s=="function"?Re(Re({},b),{},{key:f.key}):b})(e,t,n);if((r=o.protectedHeader.crit)!==null&&r!==void 0&&r.includes("b64")&&o.protectedHeader.b64===!1)throw new H0("JWTs MUST NOT use unencoded payload");const i={payload:vK(o.protectedHeader,o.payload,n),protectedHeader:o.protectedHeader};return typeof t=="function"?Re(Re({},i),{},{key:o.key}):i}function xK(e){return Ca(e)}var lm,nb,cm=new WeakMap,rb=new WeakMap;class _K{constructor(t){if(Pt(this,cm,void 0),Pt(this,rb,new WeakMap),!(function(n){return n&&typeof n=="object"&&Array.isArray(n.keys)&&n.keys.every(xK)})(t))throw new q0("JSON Web Key Set malformed");mt(cm,this,structuredClone(t))}jwks(){return ie(cm,this)}async getKey(t,n){const{alg:r,kid:o}=Re(Re({},t),n?.header),i=(function(c){switch(typeof c=="string"&&c.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";case"ML":return"AKP";default:throw new Fr('Unsupported "alg" value for a JSON Web Key Set')}})(r),a=ie(cm,this).keys.filter(c=>{let h=i===c.kty;if(h&&typeof o=="string"&&(h=o===c.kid),!h||typeof c.alg!="string"&&i!=="AKP"||(h=r===c.alg),h&&typeof c.use=="string"&&(h=c.use==="sig"),h&&Array.isArray(c.key_ops)&&(h=c.key_ops.includes("verify")),h)switch(r){case"ES256":h=c.crv==="P-256";break;case"ES384":h=c.crv==="P-384";break;case"ES512":h=c.crv==="P-521";break;
42case"Ed25519":case"EdDSA":h=c.crv==="Ed25519"}return h}),{0:s,length:l}=a;if(l===0)throw new V0;if(l!==1){const c=new l$,h=ie(rb,this);throw c[Symbol.asyncIterator]=CV(function*(){for(const d of a)try{yield yield AV(J1(h,d,r))}catch{}}),c}return J1(ie(rb,this),s,r)}}async function J1(e,t,n){const r=e.get(t)||e.set(t,{}).get(t);if(r[n]===void 0){const o=await(async function(i,a,s){var l;if(!Ca(i))throw new TypeError("JWK must be an object");let c;switch(a!=null||(a=i.alg),c!=null||(c=(l=void 0)!==null&&l!==void 0?l:i.ext),i.kty){case"oct":if(typeof i.k!="string"||!i.k)throw new TypeError('missing "k" (Key Value) Parameter value');return hg(i.k);case"RSA":if("oth"in i&&i.oth!==void 0)throw new Fr('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');return Gm(Re(Re({},i),{},{alg:a,ext:c}));case"AKP":if(typeof i.alg!="string"||!i.alg)throw new TypeError('missing "alg" (Algorithm) Parameter value');if(a!==void 0&&a!==i.alg)throw new TypeError("JWK alg and alg option value mismatch");return Gm(Re(Re({},i),{},{ext:c}));case"EC":case"OKP":return Gm(Re(Re({},i),{},{alg:a,ext:c}));default:throw new Fr('Unsupported "kty" (Key Type) Parameter value')}})(Re(Re({},t),{},{ext:!0}),n);if(o instanceof Uint8Array||o.type!=="public")throw new q0("JSON Web Key Set members must be public keys");r[n]=o}return r[n]}function Q1(e){const t=new _K(e),n=async(r,o)=>t.getKey(r,o);return Object.defineProperties(n,{jwks:{value:()=>structuredClone(t.jwks()),enumerable:!1,configurable:!1,writable:!1}}),n}let rv;(typeof navigator>"u"||(lm=navigator.userAgent)===null||lm===void 0||(nb=lm.startsWith)===null||nb===void 0||!nb.call(lm,"Mozilla/5.0 "))&&(rv="".concat("jose","/").concat("v6.2.1"));const k$=Symbol(),Zm=Symbol();var ob=new WeakMap,ib=new WeakMap,ab=new WeakMap,um=new WeakMap,Za=new WeakMap,_i=new WeakMap,Xi=new WeakMap,sb=new WeakMap,Ja=new WeakMap,Qa=new WeakMap;class SK{constructor(t,n){if(Pt(this,ob,void 0),Pt(this,ib,void 0),Pt(this,ab,void 0),Pt(this,um,void 0),Pt(this,Za,void 0),Pt(this,_i,void 0),Pt(this,Xi,void 0),Pt(this,sb,void 0),Pt(this,Ja,void 0),Pt(this,Qa,void 0),!(t instanceof URL))throw new TypeError("url must be an instance of URL");var r,o;mt(ob,this,new URL(t.href)),mt(ib,this,typeof n?.timeoutDuration=="number"?n?.timeoutDuration:5e3),mt(ab,this,typeof n?.cooldownDuration=="number"?n?.cooldownDuration:3e4),mt(um,this,typeof n?.cacheMaxAge=="number"?n?.cacheMaxAge:6e5),mt(Xi,this,new Headers(n?.headers)),rv&&!ie(Xi,this).has("User-Agent")&&ie(Xi,this).set("User-Agent",rv),ie(Xi,this).has("accept")||(ie(Xi,this).set("accept","application/json"),ie(Xi,this).append("accept","application/jwk-set+json")),mt(sb,this,n?.[k$]),n?.[Zm]!==void 0&&(mt(Qa,this,n?.[Zm]),r=n?.[Zm],o=ie(um,this),typeof r=="object"&&r!==null&&"uat"in r&&typeof r.uat=="number"&&!(Date.now()-r.uat>=o)&&"jwks"in r&&Ca(r.jwks)&&Array.isArray(r.jwks.keys)&&Array.prototype.every.call(r.jwks.keys,Ca)&&(mt(Za,this,ie(Qa,this).uat),mt(Ja,this,Q1(ie(Qa,this).jwks))))}pendingFetch(){return!!ie(_i,this)}coolingDown(){return typeof ie(Za,this)=="number"&&Date.now()<ie(Za,this)+ie(ab,this)}fresh(){return typeof ie(Za,this)=="number"&&Date.now()<ie(Za,this)+ie(um,this)}jwks(){var t;return(t=ie(Ja,this))===null||t===void 0?void 0:t.jwks()}async getKey(t,n){ie(Ja,this)&&this.fresh()||await this.reload();try{return await ie(Ja,this).call(this,t,n)}catch(r){if(r instanceof V0&&this.coolingDown()===!1)return await this.reload(),ie(Ja,this).call(this,t,n);throw r}}async reload(){ie(_i,this)&&(typeof WebSocketPair<"u"||typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime<"u"&&EdgeRuntime==="vercel")&&mt(_i,this,void 0),ie(_i,this)||mt(_i,this,(async function(t,n,r){const i=await(arguments.length>3&&arguments[3]!==void 0?arguments[3]:fetch)(t,{method:"GET",signal:r,redirect:"manual",headers:n}).catch(a=>{throw a.name==="TimeoutError"?new c$:a});if(i.status!==200)throw new Wn("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await i.json()}catch{throw new Wn("Failed to parse the JSON Web Key Set HTTP response as JSON")}})(ie(ob,this).href,ie(Xi,this),AbortSignal.timeout(ie(ib,this)),ie(sb,this)).then(t=>{mt(Ja,this,Q1(t)),ie(Qa,this)&&(ie(Qa,this).uat=Date.now(),ie(Qa,this).jwks=t),mt(Za,this,Date.now()),mt(_i,this,void 0)}).catch(t=>{throw mt(_i,this,void 0),t})),await ie(_i,this)}}const TK=["mfaToken"],IK=["mfaToken"];var Xa,dm,es,to,hm,mm,Do,oi,Ol,Ct,fa,iu,Bu,Hl,pm,Wt,X1=class extends 
42Error{constructor(e,t){super(t),Te(this,"code",void 0),this.name="NotSupportedError",this.code=e}},zi=class extends Error{constructor(e,t,n){super(t),Te(this,"cause",void 0),Te(this,"code",void 0),this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message}}},EK=class extends zi{constructor(e,t){super("token_by_code_error",e,t),this.name="TokenByCodeError"}},AK=class extends zi{constructor(e,t){super("token_by_client_credentials_error",e,t),this.name="TokenByClientCredentialsError"}},CK=class extends zi{constructor(e,t){super("token_by_refresh_token_error",e,t),this.name="TokenByRefreshTokenError"}},lb=class extends zi{constructor(e,t){super("token_for_connection_error",e,t),this.name="TokenForConnectionErrorCode"}},li=class extends zi{constructor(e,t){super("token_exchange_error",e,t),this.name="TokenExchangeError"}},ea=class extends Error{constructor(e){super(e),Te(this,"code","verify_logout_token_error"),this.name="VerifyLogoutTokenError"}},cb=class extends zi{constructor(e){super("backchannel_authentication_error","There was an error when trying to use Client-Initiated Backchannel Authentication.",e),Te(this,"code","backchannel_authentication_error"),this.name="BackchannelAuthenticationError"}},NK=class extends zi{constructor(e){super("build_authorization_url_error","There was an error when trying to build the authorization URL.",e),this.name="BuildAuthorizationUrlError"}},PK=class extends zi{constructor(e){super("build_link_user_url_error","There was an error when trying to build the Link User URL.",e),this.name="BuildLinkUserUrlError"}},DK=class extends zi{constructor(e){super("build_unlink_user_url_error","There was an error when trying to build the Unlink User URL.",e),this.name="BuildUnlinkUserUrlError"}},OK=class extends Error{constructor(){super("The client secret or client assertion signing key must be provided."),Te(this,"code","missing_client_auth_error"),this.name="MissingClientAuthError"}};function ov(e){return Object.entries(e).filter(t=>{let[,n]=t;return n!==void 0}).reduce((t,n)=>Re(Re({},t),{},{[n[0]]:n[1]}),{})}var mg=class extends Error{constructor(e,t,n){super(t),Te(this,"cause",void 0),Te(this,"code",void 0),this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message}}},x$=class extends mg{constructor(e,t){super("mfa_list_authenticators_error",e,t),this.name="MfaListAuthenticatorsError"}},_$=class extends mg{constructor(e,t){super("mfa_enrollment_error",e,t),this.name="MfaEnrollmentError"}},RK=class extends mg{constructor(e,t){super("mfa_delete_authenticator_error",e,t),this.name="MfaDeleteAuthenticatorError"}},S$=class extends mg{constructor(e,t){super("mfa_challenge_error",e,t),this.name="MfaChallengeError"}};function MK(e){return{id:e.id,authenticatorType:e.authenticator_type,active:e.active,name:e.name,oobChannels:e.oob_channels,type:e.type}}var jK=(Xa=new WeakMap,dm=new WeakMap,es=new WeakMap,class{constructor(e){var t;Pt(this,Xa,void 0),Pt(this,dm,void 0),Pt(this,es,void 0),mt(Xa,this,"https://".concat(e.domain)),mt(dm,this,e.clientId),mt(es,this,(t=e.customFetch)!==null&&t!==void 0?t:function(){return fetch(...arguments)})}async listAuthenticators(e){const t="".concat(ie(Xa,this),"/mfa/authenticators"),{mfaToken:n}=e,r=await ie(es,this).call(this,t,{method:"GET",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!r.ok){const o=await r.json();throw new x$(o.error_description||"Failed to list authenticators",o)}return(await r.json()).map(MK)}async enrollAuthenticator(e){const t="".concat(ie(Xa,this),"/mfa/associate"),{mfaToken:n}=e,r=O1(e,TK),o={authenticator_types:r.authenticatorTypes};"oobChannels"in r&&(o.oob_channels=r.oobChannels),"phoneNumber"in r&&r.phoneNumber&&(o.phone_number=r.phoneNumber),"email"in r&&r.email&&(o.email=r.email);const i=await ie(es,this).call(this,t,{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify(o)});if(!i.ok){const a=await i.json();throw new _$(a.error_description||"Failed to enroll authenticator",a)}
42return(function(a){if(a.authenticator_type==="otp")return{authenticatorType:"otp",secret:a.secret,barcodeUri:a.barcode_uri,recoveryCodes:a.recovery_codes,id:a.id};if(a.authenticator_type==="oob")return{authenticatorType:"oob",oobChannel:a.oob_channel,oobCode:a.oob_code,bindingMethod:a.binding_method,id:a.id,barcodeUri:a.barcode_uri,recoveryCodes:a.recovery_codes};throw new Error("Unexpected authenticator type: ".concat(a.authenticator_type))})(await i.json())}async deleteAuthenticator(e){const{authenticatorId:t,mfaToken:n}=e,r="".concat(ie(Xa,this),"/mfa/authenticators/").concat(encodeURIComponent(t)),o=await ie(es,this).call(this,r,{method:"DELETE",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!o.ok){const i=await o.json();throw new RK(i.error_description||"Failed to delete authenticator",i)}}async challengeAuthenticator(e){const t="".concat(ie(Xa,this),"/mfa/challenge"),{mfaToken:n}=e,r=O1(e,IK),o={mfa_token:n,client_id:ie(dm,this),challenge_type:r.challengeType};r.authenticatorId&&(o.authenticator_id=r.authenticatorId);const i=await ie(es,this).call(this,t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!i.ok){const a=await i.json();throw new S$(a.error_description||"Failed to challenge authenticator",a)}return(function(a){const s={challengeType:a.challenge_type};return a.oob_code!==void 0&&(s.oobCode=a.oob_code),a.binding_method!==void 0&&(s.bindingMethod=a.binding_method),s})(await i.json())}}),hs=class T${constructor(t,n,r,o,i,a,s){Te(this,"accessToken",void 0),Te(this,"idToken",void 0),Te(this,"refreshToken",void 0),Te(this,"expiresAt",void 0),Te(this,"scope",void 0),Te(this,"claims",void 0),Te(this,"authorizationDetails",void 0),Te(this,"tokenType",void 0),Te(this,"issuedTokenType",void 0),this.accessToken=t,this.idToken=r,this.refreshToken=o,this.expiresAt=n,this.scope=i,this.claims=a,this.authorizationDetails=s}static fromTokenEndpointResponse(t){const n=t.id_token?t.claims():void 0,r=new T$(t.access_token,Math.floor(Date.now()/1e3)+Number(t.expires_in),t.id_token,t.refresh_token,t.scope,n,t.authorization_details);return r.tokenType=t.token_type,r.issuedTokenType=t.issued_token_type,r}},$K=(to=new WeakMap,hm=new WeakMap,mm=new WeakMap,class{constructor(e,t){Pt(this,to,new Map),Pt(this,hm,void 0),Pt(this,mm,void 0),mt(mm,this,Math.max(1,Math.floor(e))),mt(hm,this,Math.max(0,Math.floor(t)))}get(e){const t=ie(to,this).get(e);if(t){if(!(Date.now()>=t.expiresAt))return ie(to,this).delete(e),ie(to,this).set(e,t),t.value;ie(to,this).delete(e)}}set(e,t){for(ie(to,this).has(e)&&ie(to,this).delete(e),ie(to,this).set(e,{value:t,expiresAt:Date.now()+ie(hm,this)});ie(to,this).size>ie(mm,this);){const n=ie(to,this).keys().next().value;if(n===void 0)break;ie(to,this).delete(n)}}}),eI=new Map;function tI(e){return{ttlMs:1e3*(typeof e?.ttl=="number"?e.ttl:600),maxEntries:typeof e?.maxEntries=="number"&&e.maxEntries>0?e.maxEntries:100}}var nI=class{static createDiscoveryCache(e){const t=(n=e.maxEntries,r=e.ttlMs,"".concat(n,":").concat(r));var n,r;let o=(i=t,eI.get(i));var i;return o||(o=new $K(e.maxEntries,e.ttlMs),eI.set(t,o)),o}static createJwksCache(){return{}}},iv="openid profile email offline_access",LK=Object.freeze(new Set(["grant_type","client_id","client_secret","client_assertion","client_assertion_type","subject_token","subject_token_type","requested_token_type","actor_token","actor_token_type","audience","aud","resource","resources","resource_indicator","scope","connection","login_hint","organization","assertion"]));function I$(e){if(e==null)throw new li("subject_token is required");if(typeof e!="string")throw new li("subject_token must be a string");if(e.trim().length===0)throw new li("subject_token cannot be blank or whitespace");if(e!==e.trim())throw new li("subject_token must not include leading or trailing whitespace");if(/^bearer\s+/i.test(e))throw new li("subject_token must not include the 'Bearer ' prefix")}function E$(e,t){if(t){for(const[n,r]of Object.entries(t))if(!LK.has(n))if(Array.isArray(r)){if(r.length>20)throw new li("Parameter '".concat(n,"' exceeds maximum array size of ").concat(20));r.forEach(o=>{e.append(n,o)})}
42else e.append(n,r)}}var A$="urn:ietf:params:oauth:token-type:access_token",zK=(Do=new WeakMap,oi=new WeakMap,Ol=new WeakMap,Ct=new WeakMap,fa=new WeakMap,iu=new WeakMap,Bu=new WeakMap,Hl=new WeakMap,pm=new WeakMap,Wt=new WeakSet,class{constructor(e){var t,n,r,o;if((function(a,s){Vj(a,s),s.add(a)})(this,Wt),Pt(this,Do,void 0),Pt(this,oi,void 0),Pt(this,Ol,void 0),Pt(this,Ct,void 0),Pt(this,fa,void 0),Pt(this,iu,void 0),Pt(this,Bu,void 0),Pt(this,Hl,void 0),Pt(this,pm,void 0),Te(this,"mfa",void 0),mt(Ct,this,e),e.useMtls&&!e.customFetch)throw new X1("mtls_without_custom_fetch_not_supported","Using mTLS without a custom fetch implementation is not supported");mt(fa,this,(function(a,s){if(s.enabled===!1)return a;const l={name:s.name,version:s.version},c=btoa(JSON.stringify(l));return async(h,d)=>{const p=h instanceof Request?new Headers(h.headers):new Headers;return d!=null&&d.headers&&new Headers(d.headers).forEach((f,b)=>{p.set(b,f)}),p.set("Auth0-Client",c),a(h,Re(Re({},d),{},{headers:p}))}})((t=e.customFetch)!==null&&t!==void 0?t:function(){return fetch(...arguments)},((n=e.telemetry)==null?void 0:n.enabled)===!1?n:{enabled:!0,name:(r=n?.name)!==null&&r!==void 0?r:"@auth0/auth0-auth-js",version:(o=n?.version)!==null&&o!==void 0?o:"1.5.0"}));const i=tI(e.discoveryCache);mt(Bu,this,nI.createDiscoveryCache(i)),mt(Hl,this,new Map),mt(pm,this,nI.createJwksCache()),this.mfa=new jK({domain:ie(Ct,this).domain,clientId:ie(Ct,this).clientId,customFetch:ie(fa,this)})}async getServerMetadata(){const{serverMetadata:e}=await Bt(Wt,this,jr).call(this);return e}async buildAuthorizationUrl(e){const{serverMetadata:t}=await Bt(Wt,this,jr).call(this);if(e!=null&&e.pushedAuthorizationRequests&&!t.pushed_authorization_request_endpoint)throw new X1("par_not_supported_error","The Auth0 tenant does not have pushed authorization requests enabled. Learn how to enable it here: https://auth0.com/docs/get-started/applications/configure-par");try{return await Bt(Wt,this,ub).call(this,e)}catch(n){throw new NK(n)}}async buildLinkUserUrl(e){try{const t=await Bt(Wt,this,ub).call(this,{authorizationParams:Re(Re({},e.authorizationParams),{},{requested_connection:e.connection,requested_connection_scope:e.connectionScope,scope:"openid link_account offline_access",id_token_hint:e.idToken})});return{linkUserUrl:t.authorizationUrl,codeVerifier:t.codeVerifier}}catch(t){throw new PK(t)}}async buildUnlinkUserUrl(e){try{const t=await Bt(Wt,this,ub).call(this,{authorizationParams:Re(Re({},e.authorizationParams),{},{requested_connection:e.connection,scope:"openid unlink_account",id_token_hint:e.idToken})});return{unlinkUserUrl:t.authorizationUrl,codeVerifier:t.codeVerifier}}catch(t){throw new DK(t)}}async backchannelAuthentication(e){const{configuration:t,serverMetadata:n}=await Bt(Wt,this,jr).call(this),r=ov(Re(Re({},ie(Ct,this).authorizationParams),e?.authorizationParams)),o=new URLSearchParams(Re(Re({scope:iv},r),{},{client_id:ie(Ct,this).clientId,binding_message:e.bindingMessage,login_hint:JSON.stringify({format:"iss_sub",iss:n.issuer,sub:e.loginHint.sub})}));e.requestedExpiry&&o.append("requested_expiry",e.requestedExpiry.toString()),e.authorizationDetails&&o.append("authorization_details",JSON.stringify(e.authorizationDetails));try{const i=await K1(t,o),a=await g$(t,i);return hs.fromTokenEndpointResponse(a)}catch(i){throw new cb(i)}}async initiateBackchannelAuthentication(e){const{configuration:t,serverMetadata:n}=await Bt(Wt,this,jr).call(this),r=ov(Re(Re({},ie(Ct,this).authorizationParams),e?.authorizationParams)),o=new URLSearchParams(Re(Re({scope:iv},r),{},{client_id:ie(Ct,this).clientId,binding_message:e.bindingMessage,login_hint:JSON.stringify({format:"iss_sub",iss:n.issuer,sub:e.loginHint.sub})}));e.requestedExpiry&&o.append("requested_expiry",e.requestedExpiry.toString()),e.authorizationDetails&&o.append("authorization_details",JSON.stringify(e.authorizationDetails));try{const i=await K1(t,o);return{authReqId:i.auth_req_id,expiresIn:i.expires_in,interval:i.interval}}catch(i){throw new cb(i)}}async backchannelAuthenticationGrant(e){let{authReqId:t}=e;const{configuration:n}
42=await Bt(Wt,this,jr).call(this),r=new URLSearchParams({auth_req_id:t});try{const o=await K0(n,"urn:openid:params:grant-type:ciba",r);return hs.fromTokenEndpointResponse(o)}catch(o){throw new cb(o)}}async getTokenForConnection(e){var t;if(e.refreshToken&&e.accessToken)throw new lb("Either a refresh or access token should be specified, but not both.");const n=(t=e.accessToken)!==null&&t!==void 0?t:e.refreshToken;if(!n)throw new lb("Either a refresh or access token must be specified.");try{return await this.exchangeToken({connection:e.connection,subjectToken:n,subjectTokenType:e.accessToken?A$:"urn:ietf:params:oauth:token-type:refresh_token",loginHint:e.loginHint})}catch(r){throw r instanceof li?new lb(r.message,r.cause):r}}async exchangeToken(e){return"connection"in e?Bt(Wt,this,FK).call(this,e):Bt(Wt,this,WK).call(this,e)}async getTokenByCode(e,t){const{configuration:n}=await Bt(Wt,this,jr).call(this);try{const r=await y$(n,e,{pkceCodeVerifier:t.codeVerifier});return hs.fromTokenEndpointResponse(r)}catch(r){throw new EK("There was an error while trying to request a token.",r)}}async getTokenByRefreshToken(e){const{configuration:t}=await Bt(Wt,this,jr).call(this),n=new URLSearchParams;e.audience&&n.append("audience",e.audience),e.scope&&n.append("scope",e.scope);try{const r=await b$(t,e.refreshToken,n);return hs.fromTokenEndpointResponse(r)}catch(r){throw new CK("The access token has expired and there was an error while trying to refresh it.",r)}}async getTokenByClientCredentials(e){const{configuration:t}=await Bt(Wt,this,jr).call(this);try{const n=new URLSearchParams({audience:e.audience});e.organization&&n.append("organization",e.organization);const r=await w$(t,n);return hs.fromTokenEndpointResponse(r)}catch(n){throw new AK("There was an error while trying to request a token.",n)}}async buildLogoutUrl(e){const{configuration:t,serverMetadata:n}=await Bt(Wt,this,jr).call(this);if(!n.end_session_endpoint){const r=new URL("https://".concat(ie(Ct,this).domain,"/v2/logout"));return r.searchParams.set("returnTo",e.returnTo),r.searchParams.set("client_id",ie(Ct,this).clientId),r}return(function(r,o){Li(r);const{as:i,c:a,tlsOnly:s}=$n(r),l=Qd(i,"end_session_endpoint",!1,s);(o=new URLSearchParams(o)).has("client_id")||o.set("client_id",a.client_id);for(const[c,h]of o.entries())l.searchParams.append(c,h);return l})(t,{post_logout_redirect_uri:e.returnTo})}async verifyLogoutToken(e){const{serverMetadata:t}=await Bt(Wt,this,jr).call(this),n=tI(ie(Ct,this).discoveryCache),r=t.jwks_uri;ie(iu,this)||mt(iu,this,(function(i,a){const s=new SK(i,a),l=async(c,h)=>s.getKey(c,h);return Object.defineProperties(l,{coolingDown:{get:()=>s.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>s.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>s.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>s.pendingFetch(),enumerable:!0,configurable:!1},jwks:{value:()=>s.jwks(),enumerable:!0,configurable:!1,writable:!1}}),l})(new URL(r),{cacheMaxAge:n.ttlMs,[k$]:ie(fa,this),[Zm]:ie(pm,this)}));const{payload:o}=await kK(e.logoutToken,ie(iu,this),{issuer:t.issuer,audience:ie(Ct,this).clientId,algorithms:["RS256"],requiredClaims:["iat"]});if(!("sid"in o)&&!("sub"in o))throw new ea('either "sid" or "sub" (or both) claims must be present');if("sid"in o&&typeof o.sid!="string")throw new ea('"sid" claim must be a string');if("sub"in o&&typeof o.sub!="string")throw new ea('"sub" claim must be a string');if("nonce"in o)throw new ea('"nonce" claim is prohibited');if(!("events"in o))throw new ea('"events" claim is missing');if(typeof o.events!="object"||o.events===null)throw new ea('"events" claim must be an object');if(!("http://schemas.openid.net/event/backchannel-logout"in o.events))throw new ea('"http://schemas.openid.net/event/backchannel-logout" member is missing in the "events" claim');if(typeof o.events["http://schemas.openid.net/event/backchannel-logout"]!="object")throw new ea('"http://schemas.openid.net/event/backchannel-logout" member in the "events" claim must be an object');return{sid:o.sid,sub:o.sub}}});function UK(){const e=ie(Ct,this).domain.toLowerCase();return"".concat(e,"|mtls:").concat(ie(Ct,this).useMtls?"1":"0")}async function rI(e){const t=await Bt(Wt,this,C$).call(this),n=new ld(e,ie(Ct,this).clientId,ie(Ct,this).clientSecret,t);return n[Ci]=ie(fa,this),n}async function jr(){if(ie(Do,this)&&ie(oi,this))return{configuration:ie(Do,this),serverMetadata:ie(oi,this)};const e=Bt(Wt,this,UK).call(this),t=ie(Bu,this).get(e);if(t)return mt(oi,this,t.serverMetadata),mt(Do,this,await Bt(Wt,this,rI).call(this,t.serverMetadata)),{
42configuration:ie(Do,this),serverMetadata:ie(oi,this)};const n=ie(Hl,this).get(e);if(n){const i=await n;return mt(oi,this,i.serverMetadata),mt(Do,this,await Bt(Wt,this,rI).call(this,i.serverMetadata)),{configuration:ie(Do,this),serverMetadata:ie(oi,this)}}const r=(async()=>{const i=await Bt(Wt,this,C$).call(this),a=await gK(new URL("https://".concat(ie(Ct,this).domain)),ie(Ct,this).clientId,{use_mtls_endpoint_aliases:ie(Ct,this).useMtls},i,{[Ci]:ie(fa,this)}),s=a.serverMetadata();return ie(Bu,this).set(e,{serverMetadata:s}),{configuration:a,serverMetadata:s}})(),o=r.then(i=>{let{serverMetadata:a}=i;return{serverMetadata:a}});o.catch(()=>{}),ie(Hl,this).set(e,o);try{const{configuration:i,serverMetadata:a}=await r;mt(Do,this,i),mt(oi,this,a),ie(Do,this)[Ci]=ie(fa,this)}finally{ie(Hl,this).delete(e)}return{configuration:ie(Do,this),serverMetadata:ie(oi,this)}}async function FK(e){var t,n;const{configuration:r}=await Bt(Wt,this,jr).call(this);if("audience"in e||"resource"in e)throw new li("audience and resource parameters are not supported for Token Vault exchanges");I$(e.subjectToken);const o=new URLSearchParams({connection:e.connection,subject_token:e.subjectToken,subject_token_type:(t=e.subjectTokenType)!==null&&t!==void 0?t:A$,requested_token_type:(n=e.requestedTokenType)!==null&&n!==void 0?n:"http://auth0.com/oauth/token-type/federated-connection-access-token"});e.loginHint&&o.append("login_hint",e.loginHint),e.scope&&o.append("scope",e.scope),E$(o,e.extra);try{const i=await K0(r,"urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",o);return hs.fromTokenEndpointResponse(i)}catch(i){throw new li("Failed to exchange token for connection '".concat(e.connection,"'."),i)}}async function WK(e){const{configuration:t}=await Bt(Wt,this,jr).call(this);I$(e.subjectToken);const n=new URLSearchParams({subject_token_type:e.subjectTokenType,subject_token:e.subjectToken});e.audience&&n.append("audience",e.audience),e.scope&&n.append("scope",e.scope),e.requestedTokenType&&n.append("requested_token_type",e.requestedTokenType),e.organization&&n.append("organization",e.organization),E$(n,e.extra);try{const r=await K0(t,"urn:ietf:params:oauth:grant-type:token-exchange",n);return hs.fromTokenEndpointResponse(r)}catch(r){throw new li("Failed to exchange token of type '".concat(e.subjectTokenType,"'").concat(e.audience?" for audience '".concat(e.audience,"'"):"","."),r)}}async function C$(){return ie(Ol,this)||mt(Ol,this,(async()=>{if(!ie(Ct,this).clientSecret&&!ie(Ct,this).clientAssertionSigningKey&&!ie(Ct,this).useMtls)throw new OK;if(ie(Ct,this).useMtls)return(t,n,r,o)=>{r.set("client_id",n.client_id)};let e=ie(Ct,this).clientAssertionSigningKey;return!e||e instanceof CryptoKey||(e=await(async function(t,n,r){if(typeof t!="string"||t.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return hK(t,n,r)})(e,ie(Ct,this).clientAssertionSigningAlg||"RS256")),e?(function(t,n){return MV(t)})(e):m$(ie(Ct,this).clientSecret)})().catch(e=>{throw mt(Ol,this,void 0),e})),ie(Ol,this)}async function ub(e){const{configuration:t}=await Bt(Wt,this,jr).call(this),n=fK(),r=await pK(n),o=ov(Re(Re({},ie(Ct,this).authorizationParams),e?.authorizationParams)),i=new URLSearchParams(Re(Re({scope:iv},o),{},{client_id:ie(Ct,this).clientId,code_challenge:r,code_challenge_method:"S256"}));return{authorizationUrl:e!=null&&e.pushedAuthorizationRequests?await v$(t,i):await nv(t,i),codeVerifier:n}}class Na extends Lt{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Na.prototype)}static fromPayload(t){let{error:n,error_description:r}=t;return new Na(n,r)}}class Sp extends Na{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Sp.prototype)}}class G0 extends Na{constructor(t,n){super(t,n),Object.setPrototypeOf(this,G0.prototype)}}class Y0 extends Na{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Y0.prototype)}}class Rl extends Na{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Rl.prototype)}}class Z0 extends Na{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Z0.prototype)}}class BK{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6e5;this.contexts=new Map,this.ttlMs=t}set(t,n){this.cleanup(),this.contexts.set(t,Object.assign(Object.assign({}
42,n),{createdAt:Date.now()}))}get(t){const n=this.contexts.get(t);if(n){if(!(Date.now()-n.createdAt>this.ttlMs))return n;this.contexts.delete(t)}}remove(t){this.contexts.delete(t)}cleanup(){const t=Date.now();for(const[n,r]of this.contexts)t-r.createdAt>this.ttlMs&&this.contexts.delete(n)}get size(){return this.contexts.size}}class HK{constructor(t,n){this.authJsMfaClient=t,this.auth0Client=n,this.contextManager=new BK}setMFAAuthDetails(t,n,r,o){this.contextManager.set(t,{scope:n,audience:r,mfaRequirements:o})}async getAuthenticators(t){var n,r;const o=this.contextManager.get(t);if(!(!((n=o?.mfaRequirements)===null||n===void 0)&&n.challenge)||o.mfaRequirements.challenge.length===0)throw new Sp("invalid_request","challengeType is required and must contain at least one challenge type, please check mfa_required error payload");const i=o.mfaRequirements.challenge.map(a=>a.type);try{return(await this.authJsMfaClient.listAuthenticators({mfaToken:t})).filter(a=>!!a.type&&i.includes(a.type))}catch(a){throw a instanceof x$?new Sp((r=a.cause)===null||r===void 0?void 0:r.error,a.message):a}}async enroll(t){var n;const r=(function(o){const i=SV[o.factorType];return Object.assign(Object.assign(Object.assign({mfaToken:o.mfaToken,authenticatorTypes:i.authenticatorTypes},i.oobChannels&&{oobChannels:i.oobChannels}),"phoneNumber"in o&&{phoneNumber:o.phoneNumber}),"email"in o&&{email:o.email})})(t);try{return await this.authJsMfaClient.enrollAuthenticator(r)}catch(o){throw o instanceof _$?new G0((n=o.cause)===null||n===void 0?void 0:n.error,o.message):o}}async challenge(t){var n;try{const r={challengeType:t.challengeType,mfaToken:t.mfaToken};return t.authenticatorId&&(r.authenticatorId=t.authenticatorId),await this.authJsMfaClient.challengeAuthenticator(r)}catch(r){throw r instanceof S$?new Y0((n=r.cause)===null||n===void 0?void 0:n.error,r.message):r}}async getEnrollmentFactors(t){const n=this.contextManager.get(t);if(!n||!n.mfaRequirements)throw new Z0("mfa_context_not_found","MFA context not found for this MFA token. Please retry the original request to get a new MFA token.");return n.mfaRequirements.enroll&&n.mfaRequirements.enroll.length!==0?n.mfaRequirements.enroll:[]}async verify(t){const n=this.contextManager.get(t.mfaToken);if(!n)throw new Rl("mfa_context_not_found","MFA context not found for this MFA token. Please retry the original request to get a new MFA token.");const r=(function(a){return"otp"in a&&a.otp?TV:"oobCode"in a&&a.oobCode?IV:"recoveryCode"in a&&a.recoveryCode?EV:void 0})(t);if(!r)throw new Rl("invalid_request","Unable to determine grant type. Provide one of: otp, oobCode, or recoveryCode.");const o=n.scope,i=n.audience;try{const a=await this.auth0Client._requestTokenForMfa({grant_type:r,mfaToken:t.mfaToken,scope:o,audience:i,otp:t.otp,oob_code:t.oobCode,binding_code:t.bindingCode,recovery_code:t.re
42coveryCode});return this.contextManager.remove(t.mfaToken),a}catch(a){if(a instanceof pp)this.setMFAAuthDetails(a.mfa_token,o,i,a.mfa_requirements);else if(a instanceof Rl)throw new Rl(a.error,a.error_description);throw a}}}class qK{constructor(t){let n,r;if(this.userCache=new Fj().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!gp())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(gp().subtle===void 0)throw new Error(`
43      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
44    `)})(),this.lockManager=(By||(By=H9()),By),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||v1,!C1(n))throw new Error('Invalid cache location "'.concat(n,'"'));r=C1(n)()}var o;this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Il:pV,this.orgHintCookieName=(o=this.options.clientId,"auth0.".concat(o,".organization_hint")),this.isAuthenticatedCookieName=(c=>"auth0.".concat(c,".is.authenticated"))(this.options.clientId),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:fV;var a;this.scope=(function(c,h){for(var d=arguments.length,p=new Array(d>2?d-2:0),f=2;f<d;f++)p[f-2]=arguments[f];if(typeof c!="object")return{[xr]:Km(h,c,...p)};let b={[xr]:Km(h,...p)};return Object.keys(c).forEach(y=>{const w=c[y];b[y]=Km(h,w,...p)}),b})(this.options.authorizationParams.scope,"openid",this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new lV(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Nj,this.cacheManager=new sV(r,r.allKeys?void 0:new bV(r,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new kV(this.options.clientId):void 0,this.domainUrl=(a=this.options.domain,/^https?:\/\//.test(a)?a:"https://".concat(a)),this.tokenIssuer=((c,h)=>c?c.startsWith("https://")?c:"https://".concat(c,"/"):"".concat(h,"/"))(this.options.issuer,this.domainUrl);const s="".concat(this.domainUrl,"/me/"),l=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:()=>this.getTokenSilently({authorizationParams:{scope:"create:me:connected_accounts",audience:s},detailedResponse:!0})}));this.myAccountApi=new _V(l,s),this.authJsClient=new zK({domain:this.options.domain,clientId:this.options.clientId}),this.mfa=new HK(this.authJsClient.mfa,this),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n===v1&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new yV)}getConfiguration(){return Object.freeze({domain:this.options.domain,clientId:this.options.clientId})}_url(t){const n=this.options.auth0Client||Cj,r=Rj(n,!0),o=encodeURIComponent(btoa(JSON.stringify(r)));return"".concat(this.domainUrl).concat(t,"&auth0Client=").concat(o)}_authorizeUrl(t){return this._url("/authorize?".concat(Bw(t)))}async _verifyIdToken(t,n,r){const o=await this.nowProvider();return uV({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){var o;const i=zy(tu()),a=zy(tu()),s=tu(),l=await k1(s),c=_1(l),h=await((o=this.dpop)===null||o===void 0?void 0:o.calculateThumbprint()),d=((f,b,y,w,k,x,S,I,E)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),y),{scope:rm(b,y.scope,y.audience),response_type:"code",response_mode:I||"query",state:w,nonce:k,redirect_uri:S||f.authorizationParams.redirect_uri,code_challenge:x,code_challenge_method:"S256",dpop_jkt:E}))(this.options,this.scope,t,i,a,c,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode,h),p=this._authorizeUrl(d);return{nonce:a,code_verifier:s,scope:d.scope,audience:d.audience||xr,redirect_uri:d.redirect_uri,state:i,url:p}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,c=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup","left=".concat(l,",top=").concat(c,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))})(""),!n.popup))throw new M0;const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(s=>new Promise((l,c)=>{let h;const d=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(d),clearTimeout(p),window.removeEventListener("message",h,!1),c(new R0(s.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),c(new O0(s.popup)),window.removeEventListener("message",h,!1)},1e3*(s.timeoutInSeconds||60));h=function(f){if(f.data&&f.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",h,!1),s.closePopup!==!1&&s.popup.close(),f.data.response.error)return c(Lt.fromPayload(f.data.response));l(f.data.response)}},window.addEventListener("message",h)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new Lt("state_mismatch","Invalid state");const a=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:a})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(){var t;const n=N1(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),{openUrl:r,fragment:o,appState:i}=n,a=Ro(n,["openUrl","fragment","appState"]),s=((t=a.authorizationParams)===null||t===void 0?void 0:t.organization)||this.options.authorizationParams.organization,l=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=l,h=Ro(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},h),{appState:i,response_type:pa.Code}),s&&{organization:s}));const d=o?"".concat(c,"#").concat(o):c;r?await r(d):window.location.assign(d)}async handleRedirectCallback(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location.href).split("?").slice(1);if(t.length===0)throw new Error("There are no query params available for parsing.");const n=this.transactionManager.get();if(!n)throw new Lt("missing_transaction","Invalid state");this.transactionManager.remove();const r=(o=>{o.indexOf("#")>-1&&(o=o.substring(0,o.indexOf("#")));const i=new URLSearchParams(o);return{state:i.get("state"),code:i.get("code")||void 0,connect_code:i.get("connect_code")||void 0,error:i.get("error")||void 0,error_description:i.get("error_description")||void 0}})(t.join(""));return n.response_type===pa.ConnectCode?this._handleConnectAccountRedirectCallback(r,n):this._handleLoginRedirectCallback(r,n)}async _handleLoginRedirectCallback(t,n){const{code:r,state:o,error:i,error_description:a}=t;if(i)throw new P0(i,a||i,o,n.appState);if(!n.code_verifier||n.state&&n.state!==o)throw new Lt("state_mismatch","Invalid state");const s=n.organization,l=n.nonce,c=n.redirect_uri;return await this._requestToken(Object.assign({audience:n.audience,scope:n.scope,code_verifier:n.code_verifier,grant_type:"authorization_code",code:r},c?{redirect_uri:c}:{}),{nonceIn:l,organization:s}),{appState:n.appState,response_type:pa.Code}}async _handleConnectAccountRedirectCallback(t,n){const{connect_code:r,state:o,error:i,error_description:a}=t;if(i)throw new D0(i,a||i,n.connection,o,n.appState);if(!r)throw new Lt("missing_connect_code","Missing connect code");if(!(n.code_verifier&&n.state&&n.auth_session&&n.redirect_uri&&n.state===o))throw new Lt("state_mismatch","Invalid state");const s=await this.myAccountApi.completeAccount({auth_session:n.auth_session,connect_code:r,redirect_uri:n.redirect_uri,code_verifier:n.code_verifier});return Object.assign(Object.assign({},s),{appState:n.appState,response_type:pa.ConnectCode})}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get(A1))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(A1)}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var n,r;const o=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:rm(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope,((r=t.authorizationParams)===null||r===void 0?void 0:r.audie
44nce)||this.options.authorizationParams.audience)})}),i=await((a,s)=>{let l=Vy[s];return l||(l=a().finally(()=>{delete Vy[s],l=null}),Vy[s]=l),l})(()=>this._getTokenSilently(o),"".concat(this.options.clientId,"::").concat(o.authorizationParams.audience,"::").concat(o.authorizationParams.scope));return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=Ro(t,["cacheMode"]);if(n!=="off"){const s=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||xr,clientId:this.options.clientId,cacheMode:n});if(s)return s}if(n==="cache-only")return;const o=(i=this.options.clientId,a=r.authorizationParams.audience||"default","".concat("auth0.lock.getTokenSilently",".").concat(i,".").concat(a));var i,a;try{return await this.lockManager.runWithLock(o,5e3,async()=>{if(n!=="off"){const f=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||xr,clientId:this.options.clientId});if(f)return f}const s=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:l,token_type:c,access_token:h,oauthTokenScope:d,expires_in:p}=s;return Object.assign(Object.assign({id_token:l,token_type:c,access_token:h},d?{scope:d}:null),{expires_in:p})})}catch(s){if(this._isInteractiveError(s)&&this.options.interactiveErrorHandler==="popup")return await this._handleInteractiveErrorWithPopup(r);throw s}}_isInteractiveError(t){return t instanceof pp||t instanceof Lt&&this._isIframeMfaError(t)}_isIframeMfaError(t){return t.error==="login_required"&&t.error_description==="Multifactor authentication required"}async _handleInteractiveErrorWithPopup(t){try{await this.loginWithPopup({authorizationParams:t.authorizationParams});const n=await this._getEntryFromCache({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||xr,clientId:this.options.clientId});if(!n)throw new Lt("interactive_handler_cache_miss","Token not found in cache after interactive authentication");return n}catch(n){throw n}}async getTokenWithPopup(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r,o;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:rm(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope,((o=t.authorizationParams)===null||o===void 0?void 0:o.audience)||this.options.authorizationParams.audience)})});return n=Object.assign(Object.assign({},j9),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new Ai({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||xr,clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,o=Ro(n,["federated"]),i=r?"&federated":"";return this._url("/v2/logout?".concat(Bw(Object.assign({clientId:t.clientId},o))))+i}async logout(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var n;const r=N1(t),{openUrl:o}=r,i=Ro(r,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove(Tl),await((n=this.dpop)===null||n===void 0?void 0:n.clear());const a=this._buildLogoutUrl(i);o?await o(a):o!==!1&&window.location.assign(a)}async _getTokenFromIFrame(t){const n=(r=this.options.clientId,"".concat("auth0.lock.getTokenFromIFrame",".").concat(r));var r;try{return await this.lockManager.runWithLock(n,5e3,async()=>{const o=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),i=this.cookieStorage.get(this.orgHintCookieName);i&&!o.organization&&(o.organization=i);const{url:a,state:s,nonce:l,code_verifier:c,redirect_uri:h,scope:d,audience:p}=await this._prepareAuthorizeUrl(o,{response_mode:"web_message"},window.location.origin);if(window.crossOriginIsolated)throw new Lt("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let b;
44try{b=new URL(this.domainUrl).origin}catch{b=this.domainUrl}const y=await(function(k,x){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:60;return new Promise((I,E)=>{const C=window.document.createElement("iframe");C.setAttribute("width","0"),C.setAttribute("height","0"),C.style.display="none";const $=()=>{window.document.body.contains(C)&&(window.document.body.removeChild(C),window.removeEventListener("message",T,!1))};let T;const P=setTimeout(()=>{E(new ag),$()},1e3*S);T=function(D){if(D.origin!=x||!D.data||D.data.type!=="authorization_response")return;const H=D.source;H&&H.close(),D.data.response.error?E(Lt.fromPayload(D.data.response)):I(D.data.response),clearTimeout(P),window.removeEventListener("message",T,!1),setTimeout($,2e3)},window.addEventListener("message",T,!1),window.document.body.appendChild(C),C.setAttribute("src",k)})})(a,b,f);if(s!==y.state)throw new Lt("state_mismatch","Invalid state");const w=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:c,code:y.code,grant_type:"authorization_code",redirect_uri:h,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:l,organization:o.organization});return Object.assign(Object.assign({},w),{scope:d,oauthTokenScope:w.scope,audience:p})})}catch(o){throw o.error==="login_required"&&(o instanceof Lt&&this._isIframeMfaError(o)&&this.options.interactiveErrorHandler==="popup"||this.logout({openUrl:!1})),o}}async _getTokenUsingRefreshToken(t){var n,r;const o=await this.cacheManager.get(new Ai({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||xr,clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(o&&o.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new sg(t.authorizationParams.audience||xr,t.authorizationParams.scope)}const i=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,a=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null,s=((p,f,b,y)=>{var w;if(p&&b&&y){if(f.audience!==b)return f.scope;const k=y.split(" "),x=((w=f.scope)===null||w===void 0?void 0:w.split(" "))||[],S=x.every(I=>k.includes(I));return k.length>=x.length&&S?y:f.scope}return f.scope})(this.options.useMrrt,t.authorizationParams,o?.audience,o?.scope);try{const p=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:o&&o.refresh_token,redirect_uri:i}),a&&{timeout:a}),{scopesToRequest:s});if(p.refresh_token&&o?.refresh_token&&await this.cacheManager.updateEntry(o.refresh_token,p.refresh_token),this.options.useMrrt&&(l=o?.audience,c=o?.scope,h=t.authorizationParams.audience,d=t.authorizationParams.scope,(l!==h||!P1(d,c))&&!P1(s,p.scope))){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);await this.cacheManager.remove(this.options.clientId,t.authorizationParams.audience,t.authorizationParams.scope);const f=((b,y)=>{const w=b?.split(" ")||[],k=y?.split(" ")||[];return w.filter(x=>k.indexOf(x)==-1).join(",")})(s,p.scope);throw new $9(t.authorizationParams.audience||"default",f)}return Object.assign(Object.assign({},p),{scope:t.authorizationParams.scope,oauthTokenScope:p.scope,audience:t.authorizationParams.audience||xr})}catch(p){if(p.message){if(p.message.includes("user is blocked"))throw await this.logout({openUrl:!1}),p;if((p.message.includes("Missing Refresh Token")||p.message.includes("invalid refresh token"))&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t)}throw p instanceof pp&&this.mfa.setMFAAuthDetails(p.mfa_token,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.audience,p.mfa_requirements),p}var l,c,h,d}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,o=Ro(t,["id_token","decodedToken"]);this.userCache.set(Tl,{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||xr,n=this.scope[t],r=await this.cacheManager.getIdToken(new Ai({clientId:this.options.clientId,audience:t,scope:n})),o=this.userCache.get(Tl);return r&&r.id_token===o?.id_token?o:(this.userCache.set(Tl,r),r)}async _getEntryFromCache(t){let{scope:n,audience:r,clientId:o,cacheMode:i}=t;const a=await this.cacheManager.get(new Ai({scope:n,audience:r,clientId:o}),60,this.options.useMrrt,i);if(a&&a.access_token){const{token_type:s,access_token:l,oauthTokenScope:c,expires_in:h}=a,d=await this._getIdTokenFromCache();return d&&Object.assign(Object.assign({id_token:d.id_token,token_type:s||"Bearer",access_token:l},c?{scope:c}:null),{expires_in:h})}}async _requestToken(t,n){var r,o;const{nonceIn:i,organization:a,scopesToRequest:s}=n||{},l=await iV(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop},t),{scope:s||t.scope}),this.worker),c=await this._verifyIdToken(l.id_token,i,a);if(t.grant_type==="authorization_code"){const h=await this._getIdTokenFromCache();!((o=(r=h?.decodedToken)===null||r===void 0?void 0:r.claims)===null||o===void 0)&&o.sub&&h.decodedToken.claims.sub!==c.claims.sub&&(await this.cacheManager.clear(this.options.clientId),this.userCache.remove(Tl))}return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({}
44,l),{decodedToken:c,scope:t.scope,audience:t.audience||xr}),l.scope?{oauthTokenScope:l.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(a||c.claims.org_id),Object.assign(Object.assign({},l),{decodedToken:c})}async loginWithCustomTokenExchange(t){return this._requestToken(Object.assign(Object.assign({},t),{grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:t.subject_token,subject_token_type:t.subject_token_type,scope:rm(this.scope,t.scope,t.audience||this.options.authorizationParams.audience),audience:t.audience||this.options.authorizationParams.audience,organization:t.organization||this.options.authorizationParams.organization}))}async exchangeToken(t){return this.loginWithCustomTokenExchange(t)}_assertDpop(t){if(!t)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(t){return this._assertDpop(this.dpop),this.dpop.getNonce(t)}setDpopNonce(t,n){return this._assertDpop(this.dpop),this.dpop.setNonce(t,n)}generateDpopProof(t){return this._assertDpop(this.dpop),this.dpop.generateProof(t)}createFetcher(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new xV(t,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:n=>{var r;return this.getTokenSilently({authorizationParams:{scope:(r=n?.scope)===null||r===void 0?void 0:r.join(" "),audience:n?.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(t.dpopNonceId),setDpopNonce:n=>this.setDpopNonce(n,t.dpopNonceId),generateDpopProof:n=>this.generateDpopProof(n)})}async connectAccountWithRedirect(t){const{openUrl:n,appState:r,connection:o,scopes:i,authorization_params:a,redirectUri:s=this.options.authorizationParams.redirect_uri||window.location.origin}=t;if(!o)throw new Error("connection is required");const l=zy(tu()),c=tu(),h=await k1(c),d=_1(h),{connect_uri:p,connect_params:f,auth_session:b}=await this.myAccountApi.connectAccount({connection:o,scopes:i,redirect_uri:s,state:l,code_challenge:d,code_challenge_method:"S256",authorization_params:a});this.transactionManager.create({state:l,code_verifier:c,auth_session:b,redirect_uri:s,appState:r,connection:o,response_type:pa.ConnectCode});const y=new URL(p);y.searchParams.set("ticket",f.ticket),n?await n(y.toString()):window.location.assign(y)}async _requestTokenForMfa(t,n){const{mfaToken:r}=t,o=Ro(t,["mfaToken"]);return this._requestToken(Object.assign(Object.assign({},o),{mfa_token:r}),n)}}var N$={isAuthenticated:!1,isLoading:!0,error:void 0,user:void 0},Xt=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},VK=Rn(Rn({},N$),{buildAuthorizeUrl:Xt,buildLogoutUrl:Xt,getAccessTokenSilently:Xt,getAccessTokenWithPopup:Xt,getIdTokenClaims:Xt,loginWithCustomTokenExchange:Xt,exchangeToken:Xt,loginWithRedirect:Xt,loginWithPopup:Xt,connectAccountWithRedirect:Xt,logout:Xt,handleRedirectCallback:Xt,getDpopNonce:Xt,setDpopNonce:Xt,generateDpopProof:Xt,createFetcher:Xt,getConfiguration:Xt,mfa:{getAuthenticators:Xt,enroll:Xt,challenge:Xt,verify:Xt,getEnrollmentFactors:Xt}}),P$=g.createContext(VK),oI=(function(e){R9(t,e);function t(n,r){var o=e.call(this,r??n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return t})(Error),KK=/[?&](?:connect_)?code=[^&]+/,GK=/[?&]state=[^&]+/,YK=/[?&]error=[^&]+/,ZK=function(e){return e===void 0&&(e=window.location.search),(KK.test(e)||YK.test(e))&&GK.test(e)},D$=function(e){return function(t){if(t instanceof Error)return t;if(t!==null&&typeof t=="object"&&"error"in t&&typeof t.error=="string"){if("error_description"in t&&typeof t.error_description=="string"){var n=t;return new oI(n.error,n.error_description)}var r=t;return new oI(r.error)}return new Error(e)}},iI=D$("Login failed"),fm=D$("Get access token failed"),O$=function(e){var t,n;e?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=(t=e.authorizationParams)!==null&&t!==void 0?t:{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),!((n=e?.authorizationParams)===null||n===void 0)&&n.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},JK=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return Rn(Rn({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Rn(Rn({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:Rn(Rn({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return Rn(Rn({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return Rn(Rn({},e),{isLoading:!1,error:t.error})}},QK=function(e){return O$(e),Rn(Rn({},e),{auth0Client:{name:"auth0-react",version:"2.15.1"}})},XK=function(e){var t;window.history.replaceState({},document.title,(t=e.returnTo)!==null&&t!==void 0?t:window.location.pathname)},eG=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,o=r===void 0?XK:r,i=e.context,a=i===void 0?P$:i,s=w1(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=g.useState(function(){return new qK(QK(s))})[0],c=g.useReducer(JK,N$),h=c[0],d=c[1],p=g.useRef(!1),f=g.useCallback(function(F){return d({type:"ERROR",error:F}),F},[]);g.useEffect(function(){p.current||(p.current=!0,(function(){return Ji(void 0,void 0,void 0,function(){var F,G,Y,le,W,_,ne;
44return Qi(this,function(U){switch(U.label){case 0:return U.trys.push([0,7,,8]),F=void 0,ZK()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return G=U.sent(),Y=G.appState,le=Y===void 0?{}:Y,W=G.response_type,_=w1(G,["appState","response_type"]),[4,l.getUser()];case 2:return F=U.sent(),le.response_type=W,W===pa.ConnectCode&&(le.connectedAccount=_),o(le,F),[3,6];case 3:return[4,l.checkSession()];case 4:return U.sent(),[4,l.getUser()];case 5:F=U.sent(),U.label=6;case 6:return d({type:"INITIALISED",user:F}),[3,8];case 7:return ne=U.sent(),f(iI(ne)),[3,8];case 8:return[2]}})})})())},[l,o,n,f]);var b=g.useCallback(function(F){return O$(F),l.loginWithRedirect(F)},[l]),y=g.useCallback(function(F,G){return Ji(void 0,void 0,void 0,function(){var Y,le;return Qi(this,function(W){switch(W.label){case 0:d({type:"LOGIN_POPUP_STARTED"}),W.label=1;case 1:return W.trys.push([1,3,,4]),[4,l.loginWithPopup(F,G)];case 2:return W.sent(),[3,4];case 3:return Y=W.sent(),f(iI(Y)),[2];case 4:return[4,l.getUser()];case 5:return le=W.sent(),d({type:"LOGIN_POPUP_COMPLETE",user:le}),[2]}})})},[l,f]),w=g.useCallback(function(){for(var F=[],G=0;G<arguments.length;G++)F[G]=arguments[G];return Ji(void 0,M9([],F),void 0,function(Y){return Y===void 0&&(Y={}),Qi(this,function(le){switch(le.label){case 0:return[4,l.logout(Y)];case 1:return le.sent(),(Y.openUrl||Y.openUrl===!1)&&d({type:"LOGOUT"}),[2]}})})},[l]),k=g.useCallback(function(F){return Ji(void 0,void 0,void 0,function(){var G,Y,le,W;return Qi(this,function(_){switch(_.label){case 0:return _.trys.push([0,2,3,5]),[4,l.getTokenSilently(F)];case 1:return G=_.sent(),[3,5];case 2:throw Y=_.sent(),fm(Y);case 3:return le=d,W={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return le.apply(void 0,[(W.user=_.sent(),W)]),[7];case 5:return[2,G]}})})},[l]),x=g.useCallback(function(F,G){return Ji(void 0,void 0,void 0,function(){var Y,le,W,_;return Qi(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(F,G)];case 1:return Y=ne.sent(),[3,5];case 2:throw le=ne.sent(),fm(le);case 3:return W=d,_={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return W.apply(void 0,[(_.user=ne.sent(),_)]),[7];case 5:return[2,Y]}})})},[l]),S=g.useCallback(function(F){return l.connectAccountWithRedirect(F)},[l]),I=g.useCallback(function(){return l.getIdTokenClaims()},[l]),E=g.useCallback(function(F){return Ji(void 0,void 0,void 0,function(){var G,Y,le,W;return Qi(this,function(_){switch(_.label){case 0:return _.trys.push([0,2,3,5]),[4,l.loginWithCustomTokenExchange(F)];case 1:return G=_.sent(),[3,5];case 2:throw Y=_.sent(),fm(Y);case 3:return le=d,W={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return le.apply(void 0,[(W.user=_.sent(),W)]),[7];case 5:return[2,G]}})})},[l]),C=g.useCallback(function(F){return Ji(void 0,void 0,void 0,function(){return Qi(this,function(G){return[2,E(F)]})})},[E]),$=g.useCallback(function(F){return Ji(void 0,void 0,void 0,function(){var G,Y,le;return Qi(this,function(W){switch(W.label){case 0:return W.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(F)];case 1:return[2,W.sent()];case 2:throw G=W.sent(),fm(G);case 3:return Y=d,le={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return Y.apply(void 0,[(le.user=W.sent(),le)]),[7];case 5:return[2]}})})},[l]),T=g.useCallback(function(F){return l.getDpopNonce(F)},[l]),P=g.useCallback(function(F,G){return l.setDpopNonce(F,G)},[l]),D=g.useCallback(function(F){return l.generateDpopProof(F)},[l]),H=g.useCallback(function(F){return l.createFetcher(F)},[l]),z=g.useCallback(function(){return l.getConfiguration()},[l]),V=g.useMemo(function(){return l.mfa},[l]),J=g.useMemo(function(){return Rn(Rn({},h),{getAccessTokenSilently:k,getAccessTokenWithPopup:x,getIdTokenClaims:I,loginWithCustomTokenExchange:E,exchangeToken:C,loginWithRedirect:b,loginWithPopup:y,connectAccountWithRedirect:S,logout:w,handleRedirectCallback:$,getDpopNonce:T,setDpopNonce:P,generateDpopProof:D,createFetcher:H,getConfiguration:z,mfa:V})},[h,k,x,I,E,C,b,y,S,w,$,T,P,D,H,z,V]);return se.createElement(a.Provider,{value:J},t)},Pe=function(e){return e===void 0&&(e=P$),g.useContext(e)};function R$({label:e}){return u.jsx("div",{className:"app-loading-screen",role:"status","aria-label":e??"Loading",children:u.jsxs("div",{className:"app-loading-screen__inner",children:[u.jsxs("div",{className:"wave",children:[u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{}),u.jsx("i",{})]}),e?u.jsx("p",{className:"app-loading-screen__label",children:e}):null]})})}const M$=(...e)=>
vendor: 5,648 bytes, line 44
44e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const tG=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const nG=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const aI=e=>{const t=nG(e);return t.charAt(0).toUpperCase()+t.slice(1)};var rG={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const oG=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const iG=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>g.createElement("svg",{ref:l,...rG,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:M$("lucide",o),...!i&&!oG(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,h])=>g.createElement(c,h)),...Array.isArray(i)?i:[i]]));const _e=(e,t)=>{const n=g.forwardRef(({className:r,...o},i)=>g.createElement(iG,{ref:i,iconNode:t,className:M$(`lucide-${tG(aI(e))}`,`lucide-${e}`,r),...o}));return n.displayName=aI(e),n};const aG=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],J0=_e("activity",aG);const sG=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],lG=_e("arrow-left",sG);const cG=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],pg=_e("arrow-up-right",cG);const uG=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],dG=_e("arrow-up",uG);const hG=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],mG=_e("bell-off",hG);const pG=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],j$=_e("bell",pG);const fG=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],sI=_e("book-open",fG);const gG=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],yG=_e("brain-circuit",gG);const bG=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],$$=_e("calendar-clock",bG);const wG=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],vG=_e("calendar-days",wG);const kG=[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]],xG=_e("calendar-range",kG);const _G=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Q0=_e("calendar",_G);const SG=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],TG=_e("chart-column",SG);const IG=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vr=_e("check",IG);const EG=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ui=_e("chevron-down",EG);const AG=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ec=_e("chevron-right",AG);const CG=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],NG=_e("chevron-up",CG);const PG=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],cd=_e("circle-alert",PG);const DG=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X0=_e("circle-check",DG);const OG=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],L$=_e("circle-question-mark",OG);const RG=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],MG=_e("circle",RG);
44const jG=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],z$=_e("clipboard-list",jG);const $G=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],U$=_e("compass",$G);const LG=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],zG=_e("copy",LG);const UG=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],FG=_e("download",UG);const WG=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],BG=_e("external-link",WG);const HG=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ud=_e("eye",HG);const qG=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],F$=_e("factory",qG);const VG=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],W$=_e("file-text",VG);const KG=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],GG=_e("flame",KG);const YG=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],B$=_e("folder-open",YG);const ZG=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],JG=_e("git-fork",ZG);const QG=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],e_=_e("info",QG);const XG=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],eY=_e("keyboard",XG);const tY=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],t_=_e("layout-dashboard",tY);const nY=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],rY=_e("library",nY);const oY=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],iY=_e("link-2",oY);const aY=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],sY=_e("list-checks",aY);const lY=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ht=_e("loader-circle",lY);const cY=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],uY=_e("log-out",cY);const dY=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],H$=_e("mail",dY);const hY=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],mY=_e("map-pin",hY);const pY=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],fY=_e("message-square",pY);const gY=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],fg=_e("mic",gY);
44const yY=[["path",{d:"M18 5h4",key:"1lhgn2"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],sc=_e("moon-star",yY);const bY=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],wY=_e("moon",bY);const vY=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],kY=_e("network",vY);const xY=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],_Y=_e("octagon-x",xY);const SY=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],TY=_e("pencil",SY);const IY=[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]],EY=_e("picture-in-picture-2",IY);const AY=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],dd=_e("plus",AY);const CY=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],NY=_e("radio",CY);const PY=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],q$=_e("refresh-cw",PY);const DY=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],n_=_e("rocket",DY);const OY=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],RY=_e("rotate-ccw",OY);const MY=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ac=_e("search",MY);const jY=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],lI=_e("send",jY);const $Y=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],LY=_e("settings",$Y);const zY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],lc=_e("shield-alert",zY);const UY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],V$=_e("shield-check",UY);const FY=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}
44],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],WY=_e("sliders-horizontal",FY);const BY=[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]],HY=_e("smile-plus",BY);const qY=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],K$=_e("square-pen",qY);const VY=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],KY=_e("square",VY);const GY=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],YY=_e("sun",GY);const ZY=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],G$=_e("trash-2",ZY);const JY=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gg=_e("triangle-alert",JY);const QY=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],cI=_e("type",QY);const XY=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],e8=_e("undo-2",XY);const t8=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],n8=_e("upload",t8);const r8=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],o8=_e("user-plus",r8);const i8=[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]],a8=_e("user-round-x",i8);const s8=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],yg=_e("user-round",s8);const l8=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],r_=_e("users",l8);const c8=[["path",{d:"M18 11c-1.5 0-2.5.5-3 2",key:"1fod00"}],["path",{d:"M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z",key:"d70hit"}],["path",{d:"M6 11c1.5 0 2.5.5 3 2",key:"136fht"}]],o_=_e("venetian-mask",c8);const u8=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Hu=_e("video",u8);const d8=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fi=_e("x",d8);const h8=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Y$=_e("zap",h8);function uI(e,t){if(typeof e=="function")return e(t);
vendor: 10,491 bytes, line 44
44e!=null&&(e.current=t)}function wr(...e){return t=>{let n=!1;const r=e.map(o=>{const i=uI(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():uI(e[o],null)}}}}function vt(...e){return g.useCallback(wr(...e),e)}var m8=Symbol.for("react.lazy"),Tp=Uk[" use ".trim().toString()];function p8(e){return typeof e=="object"&&e!==null&&"then"in e}function Z$(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===m8&&"_payload"in e&&p8(e._payload)}function bg(e){const t=f8(e),n=g.forwardRef((r,o)=>{let{children:i,...a}=r;Z$(i)&&typeof Tp=="function"&&(i=Tp(i._payload));const s=g.Children.toArray(i),l=s.find(y8);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var J$=bg("Slot");function f8(e){const t=g.forwardRef((n,r)=>{let{children:o,...i}=n;if(Z$(o)&&typeof Tp=="function"&&(o=Tp(o._payload)),g.isValidElement(o)){const a=w8(o),s=b8(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var g8=Symbol("radix.slottable");function y8(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===g8}function b8(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function w8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const dI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,hI=UN,Ws=(e,t)=>n=>{var r;if(t?.variants==null)return hI(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const h=n?.[c],d=i?.[c];if(h===null)return null;const p=dI(h)||dI(d);return o[c][p]}),s=n&&Object.entries(n).reduce((c,h)=>{let[d,p]=h;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,h)=>{let{class:d,className:p,...f}=h;return Object.entries(f).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...i,...s}[y]):{...i,...s}[y]===w})?[...c,d,p]:c},[]);return hI(e,a,l,n?.class,n?.className)},v8=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},k8=(e,t)=>({classGroupId:e,validator:t}),Q$=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ip="-",mI=[],x8="arbitrary..",_8=e=>{const t=T8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return S8(a);const s=a.split(Ip),l=s[0]===""&&s.length>1?1:0;return X$(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],c=n[a];return l?c?v8(c,l):l:c||mI}return n[a]||mI}}},X$=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=X$(e,t+1,i);if(c)return c}const a=n.validators;if(a===null)return;const s=t===0?e.join(Ip):e.slice(t).join(Ip),l=a.length;for(let c=0;c<l;c++){const h=a[c];if(h.validator(s))return h.classGroupId}},S8=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?x8+r:void 0})(),T8=e=>{const{theme:t,classGroups:n}=e;return I8(n,t)},I8=(e,t)=>{const n=Q$();for(const r in e){const o=e[r];i_(o,n,r,t)}return n},i_=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];E8(a,t,n,r)}},E8=(e,t,n,r)=>{if(typeof e=="string"){A8(e,t,n);return}if(typeof e=="function"){C8(e,t,n,r);return}N8(e,t,n,r)},A8=(e,t,n)=>{const r=e===""?t:e2(t,e);r.classGroupId=n},C8=(e,t,n,r)=>{if(P8(e)){i_(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(k8(n,e))},N8=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];i_(l,e2(t,s),n,r)}},e2=(e,t)=>{let n=e;const r=t.split(Ip),o=r.length;for(let i=0;i<o;i++){const a=r[i];let s=n.nextPart.get(a);s||(s=Q$(),n.nextPart.set(a,s)),n=s}return n},P8=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,D8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},av="!",pI=":",O8=[],fI=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),R8=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,s=0,l=0,c;const h=o.length;for(let y=0;y<h;y++){const w=o[y];if(a===0&&s===0){if(w===pI){i.push(o.slice(l,y)),l=y+1;continue}if(w==="/"){c=y;continue}}w==="["?a++:w==="]"?a--:w==="("?s++:w===")"&&s--}const d=i.length===0?o:o.slice(l);let p=d,f=!1;d.endsWith(av)?(p=d.slice(0,-1),f=!0):d.startsWith(av)&&(p=d.slice(1),f=!0);const b=c&&c>l?c-l:void 0;return fI(i,f,p,b)};if(t){const o=t+pI,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):fI(O8,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},M8=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},j8=e=>({cache:D8(e.cacheSize),parseClassName:R8(e),sortModifiers:M8(e),..._8(e)}),$8=/\s+/,L8=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split($8);let l="";for(let c=s.length-1;c>=0;c-=1){const h=s[c],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:y}=n(h);if(d){l=h+(l.length>0?" "+l:l);continue}let w=!!y,k=r(w?b.substring(0,y):b);if(!k){if(!w){l=h+(l.length>0?" "+l:l);continue}if(k=r(b),!k){l=h+(l.length>0?" "+l:l);continue}w=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),S=f?x+av:x,I=S+k;if(a.indexOf(I)>-1)continue;a.push(I);const E=o(k,w);for(let C=0;C<E.length;++C){const $=E[C];a.push(S+$)}l=h+(l.length>0?" "+l:l)}return l},z8=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=t2(n))&&(o&&(o+=" "),o+=r);return o},t2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=t2(e[r]))&&(n&&(n+=" "),n+=t);return n},U8=(e,...t)=>{let n,r,o,i;const a=l=>{const c=t.reduce((h,d)=>d(h),e());return n=j8(c),r=n.cache.get,o=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const h=L8(l,n);return o(l,h),h};return i=a,(...l)=>i(z8(...l))},F8=[],_n=e=>{const t=n=>n[e]||F8;return t.isThemeGetter=!0,t},n2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,r2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W8=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ta=e=>W8.test(e),it=e=>!!e&&!Number.isNaN(Number(e)),na=e=>!!e&&Number.isInteger(Number(e)),db=e=>e.endsWith("%")&&it(e.slice(0,-1)),Si=e=>B8.test(e),o2=()=>!0,G8=e=>H8.test(e)&&!q8.test(e),a_=()=>!1,Y8=e=>V8.test(e),Z8=e=>K8.test(e),J8=e=>!Ee(e)&&!Ce(e),Q8=e=>Ma(e,s2,a_),Ee=e=>n2.test(e),ts=e=>Ma(e,l2,G8),gI=e=>Ma(e,aZ,it),X8=e=>Ma(e,u2,o2),eZ=e=>Ma(e,c2,a_),yI=e=>Ma(e,i2,a_),tZ=e=>Ma(e,a2,Z8),gm=e=>Ma(e,d2,Y8),Ce=e=>r2.test(e),au=e=>Bs(e,l2),nZ=e=>Bs(e,c2),bI=e=>Bs(e,i2),rZ=e=>Bs(e,s2),oZ=e=>Bs(e,a2),ym=e=>Bs(e,d2,!0),iZ=e=>Bs(e,u2,!0),Ma=(e,t,n)=>{const r=n2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Bs=(e,t,n=!1)=>{const r=r2.exec(e);return r?r[1]?t(r[1]):n:!1},i2=e=>e==="position"||e==="percentage",a2=e=>e==="image"||e==="url",s2=e=>e==="length"||e==="size"||e==="bg-size",l2=e=>e==="length",aZ=e=>e==="number",c2=e=>e==="family-name",u2=e=>e==="number"||e==="weight",d2=e=>e==="shadow",sZ=()=>{const e=_n("color"),t=_n("font"),n=_n("text"),r=_n("font-weight"),o=_n("tracking"),i=_n("leading"),a=_n("breakpoint"),s=_n("container"),l=_n("spacing"),c=_n("radius"),h=_n("shadow"),d=_n("inset-shadow"),p=_n("text-shadow"),f=_n("drop-shadow"),b=_n("blur"),y=_n("perspective"),w=_n("aspect"),k=_n("ease"),x=_n("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...I(),Ce,Ee],C=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],T=()=>[Ce,Ee,l],P=()=>[ta,"full","auto",...T()],D=()=>[na,"none","subgrid",Ce,Ee],H=()=>["auto",{span:["full",na,Ce,Ee]},na,Ce,Ee],z=()=>[na,"auto",Ce,Ee],V=()=>["auto","min","max","fr",Ce,Ee],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...T()],Y=()=>[ta,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],le=()=>[ta,"screen","full","dvw","lvw","svw","min","max","fit",...T()],W=()=>[ta,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],_=()=>[e,Ce,Ee],ne=()=>[...I(),bI,yI,{position:[Ce,Ee]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",rZ,Q8,{size:[Ce,Ee]}],K=()=>[db,au,ts],Q=()=>["","none","full",c,Ce,Ee],oe=()=>["",it,au,ts],ee=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[it,db,bI,yI],ce=()=>["","none",b,Ce,Ee],Oe=()=>["none",it,Ce,Ee],Ue=()=>["none",it,Ce,Ee],Ne=()=>[it,Ce,Ee],ke=()=>[ta,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Si],breakpoint:[Si],c
vendor: 6,616 bytes, line 44
44olor:[o2],container:[Si],"drop-shadow":[Si],ease:["in","out","in-out"],font:[J8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Si],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Si],shadow:[Si],spacing:["px",it],text:[Si],"text-shadow":[Si],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ta,Ee,Ce,w]}],container:["container"],columns:[{columns:[it,Ee,Ce,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[na,"auto",Ce,Ee]}],basis:[{basis:[ta,"full","auto",s,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[it,ta,"auto","initial","none",Ee]}],grow:[{grow:["",it,Ce,Ee]}],shrink:[{shrink:["",it,Ce,Ee]}],order:[{order:[na,"first","last","none",Ce,Ee]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[s,"screen",...Y()]}],"min-w":[{"min-w":[s,"screen","none",...Y()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,au,ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,iZ,X8]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",db,Ee]}],"font-family":[{font:[nZ,eZ,t]}],"font-features":[{"font-features":[Ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ce,Ee]}],"line-clamp":[{"line-clamp":[it,"none",Ce,gI]}],leading:[{leading:[i,...T()]}],"list-image":[{"list-image":["none",Ce,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[it,"from-font","auto",Ce,ts]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[it,"auto",Ce,Ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},na,Ce,Ee],radial:["",Ce,Ee],conic:[na,Ce,Ee]},oZ,tZ]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:K()}
vendor: 7,386 bytes, line 44
44],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[it,Ce,Ee]}],"outline-w":[{outline:["",it,au,ts]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",h,ym,gm]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,ym,gm]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[it,ts]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",p,ym,gm]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[it,Ce,Ee]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[it]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[Ce,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[it]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Ee]}],filter:[{filter:["","none",Ce,Ee]}],blur:[{blur:ce()}],brightness:[{brightness:[it,Ce,Ee]}],contrast:[{contrast:[it,Ce,Ee]}],"drop-shadow":[{"drop-shadow":["","none",f,ym,gm]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",it,Ce,Ee]}],"hue-rotate":[{"hue-rotate":[it,Ce,Ee]}],invert:[{invert:["",it,Ce,Ee]}],saturate:[{saturate:[it,Ce,Ee]}],sepia:[{sepia:["",it,Ce,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Ee]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[it,Ce,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[it,Ce,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",it,Ce,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[it,Ce,Ee]}],"backdrop-invert":[{"backdrop-invert":["",it,Ce,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[it,Ce,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[it,Ce,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",it,Ce,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[it,"initial",Ce,Ee]}],ease:[{ease:["linear","initial",k,Ce,Ee]}],delay:[{delay:[it,Ce,Ee]}],animate:[{animate:["none",x,Ce,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Ce,Ee]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Ue()}],"scale-x":[{"scale-x":Ue()}],"scale-y":[{"scale-y":Ue()}],"scale-z":[{"scale-z":Ue()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[Ce,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}
vendor: 4,920 bytes, line 44
44],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,Ee]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[it,au,ts,gI]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lZ=U8(sZ);function X(...e){return lZ(UN(e))}const jRe=e=>(e??"").trim();function $Re(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}
44function LRe(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT":!1}const cZ=Ws("inline-flex items-center justify-center hover:cursor-pointer gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ve({className:e,variant:t,size:n,asChild:r=!1,...o}){const i=r?J$:"button";return u.jsx(i,{"data-slot":"button",className:X(cZ({variant:t,size:n,className:e})),...o})}function uZ({onRetry:e,isRetrying:t}){return u.jsx("div",{className:"bg-background flex min-h-screen items-center justify-center p-6",children:u.jsxs("div",{className:"bg-popover text-popover-foreground w-full max-w-sm rounded-xl border p-6 text-center shadow-lg",children:[u.jsx("div",{className:"bg-destructive/10 text-destructive mx-auto mb-4 flex size-12 items-center justify-center rounded-full",children:u.jsx(gg,{className:"size-6"})}),u.jsx("h1",{className:"text-lg font-medium",children:"We couldn’t load your profile"}),u.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"This is usually a temporary connection problem."}),u.jsx(Ve,{className:"mt-5 w-full",onClick:e,disabled:t,children:t?u.jsxs(u.Fragment,{children:[u.jsx(Ht,{className:"size-4 animate-spin"}),"Trying again…"]}):"Try again"})]})})}const dZ="unaffiliated",hZ=e=>e.orgId===dZ,mZ=L.object({error:L.object({code:L.string(),message:L.string(),details:L.unknown().optional(),requestId:L.string().optional()})});class Kr extends Error{status;statusText;code;requestId;details;constructor(t){super(t.message),this.name="ApiRequestError",this.status=t.status,this.statusText=t.statusText,this.code=t.code??null,this.requestId=t.requestId??null,this.details=t.details}}async function h2(e){const t={error:{code:"INTERNAL_ERROR",message:"Internal server error",details:void 0,requestId:e.headers.get("x-request-id")??void 0}},n=await e.text();if(!n)return t;try{const r=JSON.parse(n.trim()),o=mZ.safeParse(r);return o.success?o.data:t}catch{return t}}function zRe(e){return e instanceof Kr?{error:{message:e.message,code:e.code??"INTERNAL_ERROR",requestId:e.requestId??void 0,details:e.details}}:e instanceof Error?{error:{message:e.message,code:"INTERNAL_ERROR"}}:{error:{message:"Something went wrong",code:"INTERNAL_ERROR"}}}const wI="auth.stale_session.reauth.v1",pZ="claim_missing",fZ=e=>{if(!(e instanceof Kr)||e.status!==403)return!1;const t=e.details;return typeof t!="object"||t===null?!1:t.reason===pZ},gZ=()=>{try{const e=globalThis.sessionStorage;return!e||e.getItem(wI)!==null?!1:(e.setItem(wI,new Date().toISOString()),!0)}catch{return!1}};function yZ(){const{logout:e}=Pe(),t=nr(),n=()=>{t?.reset(),e({logoutParams:{returnTo:window.location.origin}})};return u.jsx("div",{className:"bg-background flex min-h-screen items-center justify-center p-6",children:u.jsxs("div",{className:"flex max-w-sm flex-col items-center gap-3 text-center",children:[u.jsx(a8,{className:"h-8 w-8 text-amber-600 dar
44k:text-amber-500"}),u.jsx("h1",{className:"text-xl font-semibold",children:"Access hasn’t been granted yet"}),u.jsx("p",{className:"text-muted-foreground text-sm",children:"Your account is set up and your organization is recognized, but an administrator hasn’t granted you access yet. Reach out to your administrator, or sign out if you meant to sign in with a different account."}),u.jsx(Ve,{onClick:n,children:"Sign out"})]})})}const m2=4e3,bZ=v({id:m().min(1),type:we("comment"),anchorId:m().min(1),xPct:j().min(0).max(1),yPct:j().min(0).max(1),text:m(),resolved:te().default(!1),authorId:m().min(1),authorName:m().nullable(),canEdit:te(),createdAt:ue(),updatedAt:ue()});v({anchorId:m().trim().min(1),xPct:j().min(0).max(1),yPct:j().min(0).max(1),text:m().trim().min(1).max(m2)});v({text:m().trim().min(1).max(m2),resolved:te()});v({items:N(bZ)});const p2=["Global Finishing Solutions","Luniko"],hb=2e3,wZ=v({id:m().min(1),type:we("retrospective"),meetingNumber:j().int().min(1).max(10),meetingTitle:m().min(1),customer:R(p2),helpfulText:m().nullable(),removeText:m().nullable(),addText:m().nullable(),reportCardScore:j().min(0).max(100).nullable(),expectedReportCardScore:j().min(0).max(100).nullable(),authorId:m().min(1),authorName:m().nullable(),createdAt:ue()});v({meetingNumber:j().int().min(1).max(10),meetingTitle:m().trim().min(1).max(200),customer:R(p2),helpfulText:m().trim().max(hb).nullable().default(null),removeText:m().trim().max(hb).nullable().default(null),addText:m().trim().max(hb).nullable().default(null),reportCardScore:j().min(0).max(100).nullable().default(null),expectedReportCardScore:j().min(0).max(100).nullable().default(null)});v({items:N(wZ)});const f2=["Alignment","Discovery","Deep Dive","Walkthrough","Test Plan","Pilot Kickoff","Pilot Review","Training & Rollout","Hypercare Kickoff","Hypercare Close"];v({meetingType:R(f2),audience:m().trim().min(1).max(200),transcript:m().trim().min(1)});const vZ=v({id:m().min(1),authorId:m().min(1),authorName:m().nullable(),meetingType:R(f2),audience:m(),resultMarkdown:m(),percentageScore:m().nullable(),overallRating:m().nullable(),createdAt:ue()});v({items:N(vZ)});const kZ=v({videoUrl:m(),posterUrl:m()});v({clips:jt(m(),kZ)});const vI=v({url:m(),fields:jt(m(),m())}),xZ=v({videoUploadPost:vI,posterUploadPost:vI});v({clips:jt(m(),xZ)});v({allowed:te()});v({personId:m(),name:m(),email:m(),entraId:m().nullable(),servedAt:m()});const _Z=["view","reprint"],URe=1,SZ=v({id:m(),personId:m(),version:j().int(),acceptedAt:m()}),FRe=v({required:te(),currentVersion:j().int(),text:m(),acknowledgment:SZ.nullable()});v({version:j().int()});const TZ=v({id:m(),personId:m(),personName:m(),personEmail:m(),reason:R(_Z),ipAddress:m().nullable(),userAgent:m().nullable(),createdAt:m()});v({items:N(TZ)});const IZ=["customer","luniko"],g2=R(IZ),WRe={customer:"Customer",luniko:"Luniko"},y2=R(["file","link"]),EZ=["application/pdf","text/html","image/png","image/jpeg"],wg=R(EZ),kI=v({version:j().int().positive(),fileName:m(),contentType:wg,uploadedAt:m(),uploadedByPersonId:m().nullable()}),AZ=v({id:m(),title:m(),section:g2,description:m(),kind:y2,href:m().nullable(),currentVersion:kI.nullable(),versions:N(kI),updatedAt:m()}),BRe=v({documents:N(AZ)}),b2={title:m().trim().min(1).max(200),section:g2,description:m().max(2e3),kind:y2,href:m().url().max(2e3).nullable()};v(b2).partial({description:!0,href:!0});v(b2).omit({kind:!0}).partial();const HRe=v({url:m(),fileName:m(),contentType:wg});v({fileName:m().min(1).max(200),contentType:wg});const qRe=v({url:m(),fields:jt(m(),m()),version:j().int().positive(),fileName:m()});v({version:j().int().positive(),fileName:m().min(1).max(200),contentType:wg});const et={BUSINESS_TRANSFORMATION:"BUSINESS_TRANSFORMATION_ACTION_ITEM",GFS_NON_CONFIDENTIAL:"GFS_NON_CONFIDENTIAL_ACTION_ITEM",GFS_CONFIDENTIAL:"GFS_CONFIDENTIAL_ACTION_ITEM",ADIENT_GENERAL:"ADIENT_GENERAL_ACTION_ITEM",NON_PROJECT_LUNIKO:"NON_PROJECT_LUNIKO_ACTION_ITEM",NRC_IRAP:"NRC_IRAP_ACTION_ITEM",PERSONAL_YALISA:"PERSONAL_YALISA_ACTION_ITEM",YASS_GENERAL:"YASS_GENERAL_ACTION_ITEM",MICHELLE_LOG:"MICHELLE_LOG_ACTION_ITEM"},uo={GFS_NON_CONFIDENTIAL:"GFS_NON_CONFIDENTIAL_RAID",GFS_CONFIDENTIAL:"GFS_CONFIDENTIAL_RAID",GFS_BUSINESS_TRANSFORMATION:"GFS_BUSINESS_TRANSFORMATION_RAID"},s_={BUSINESS_TRANSFORMATION:"BUSINESS_TRANSFORMATION_SCHEDULE",GFS_ERP:"GFS_ERP_SCHEDULE"},bm=v({name:m().trim().min(1),email:m().trim().toLowerCase().nullable(),personId:m().nullable().optional()}),vg=[et.BUSINESS_TRANSFORMATION,et.GFS_NON_CONFIDENTIAL,et.GFS_CONFIDENTIAL,et.ADIENT_GENERAL,et.NON_PROJECT_LUNIKO,et.NRC_IRAP,et.PERSONAL_YALISA,et.YASS_GENERAL,et.MICHELLE_LOG],VRe=et.GFS_CONFIDENTIAL,xI={[et.BUSINESS_TRANSFORMATION]:"Business Transformation Log",[et.GFS_NON_CONFIDENTIAL]:"GFS Non-Confidential Log",[et.GFS_CONFIDENTIAL]:"GFS Confidential Log",[et.ADIENT_GENERAL]:"Adient General Log",[et.NON_PROJECT_LUNIKO]:"Non-Project Luniko Log",[et.NRC_IRAP]:"NRC-IRAP Action Log",[et.PERSONAL_YALISA]:"Personal Yalisa",[et.YASS_GENERAL]:"Yass General",[et.MICHELLE_LOG]:"Michelle's Log"};function Ep(e){return e?e in xI?xI[e]:e:"Unknown"}const l_=vg.map(e=>({value:e,label:Ep(e)})),w2=e=>{const t={};for(const[n,r]of Object.entries(e)){let o=r;for(;o!==null&&typeof o=="object"&&o.def?.type==="default";)o=o.def.innerType;t[n]=o}return t},mb=v({transcriptId:m().trim().min(1),name:m().nullable(),date:m().nullable(),speaker:m().nullable(),momentUrl:m().nullable()}),_I=v({personId:m().trim().min(1),at:ue()}),Co={actorPersonId:m().trim().min(1).nullable(),actorLabel:m().nullable(),at:ue()},c_=Bn("channel",[v({channel:we("COMMAND_CENTER"),...Co}),v({channel:we("MOBILE"),...Co}),v({channel:we("MIND_MAP"),...Co,nodeId:m().trim().min(1)}),v({channel:we("LIVE_BOARD"),...Co,meeting:mb.nullable()}),v({channel:we("VOICE"),...Co,device:R(["PHONE","WATCH"]).nullable(),workflowItemId:m().nullable()}),v({channel:we("CODEWORD"),...Co,workflowItemId:m().nullable(),meeting:mb.nullable()}),v({channel:we("EMAIL"),...Co,senderName:m().nullable(),senderEmail:m().nullable(),receivedAt:ue().nullable(),rawEmailAttachmentId:m().nullable(),filedBy:_I.nullable()}),v({channel:we("MEETING_AI"),...Co,provider:R(["FIREFLIES","RECALL"]).nullable(),meeting:mb.nullable(),quote:m().nullable(),shortlistedBy:_I.nullable()}),v({channel:we("LUNA"),...Co,requestedByPersonId:m().nullable()}),v({channel:we("SMARTSHEET"),...Co,sheetId:m().nullable(),rowId:m().nullable()}),v({channel:we("IMPORT"),...Co,script:m().nullable()})]),v2=["COMMAND_CENTER","MOBILE","MIND_MAP","LIVE_BOARD","VOICE","CODEWORD","EMAIL","MEETING_AI","
44LUNA","SMARTSHEET","IMPORT"],k2={COMMAND_CENTER:"Command Center",MOBILE:"iPhone Manual",MIND_MAP:"Mind map",LIVE_BOARD:"Live meeting",VOICE:"Dictation",CODEWORD:"Code word",EMAIL:"Email",MEETING_AI:"Luniko AI",LUNA:"Luna",SMARTSHEET:"Smartsheet",IMPORT:"Data import"},CZ=Bn("kind",[v({kind:we("none")}),v({kind:we("transcript"),text:m()}),v({kind:we("quote"),text:m()}),v({kind:we("email"),subject:m().nullable(),text:m()})]);function KRe(e){if(!e)return null;switch(e.channel){case"VOICE":case"CODEWORD":{const t=e.workflowItemId?.split(":")[0];return t?`workflow:${t}`:null}case"EMAIL":return e.rawEmailAttachmentId?`email:${e.rawEmailAttachmentId}`:null;default:return null}}function GRe(e){return e?.channel==="MEETING_AI"&&e.quote?{kind:"quote",text:e.quote}:null}function YRe(e){switch(e){case"transcript":return"Original transcript";case"quote":return"What was said";case"email":return"Full email";case"none":return null}}function ZRe(e){if(!e)return{actor:null,filedBy:null};const t=e.channel==="LUNA"?e.requestedByPersonId:e.actorPersonId,n=e.channel==="EMAIL"?e.filedBy?.personId??null:e.channel==="MEETING_AI"?e.shortlistedBy?.personId??null:null;return{actor:t,filedBy:n}}function JRe(e){if(!e)return null;switch(e.channel){case"LIVE_BOARD":case"CODEWORD":case"MEETING_AI":return e.meeting;default:return null}}const x2={month:"short",day:"numeric"},NZ={month:"short",day:"numeric",hour:"numeric",minute:"2-digit"};function sv(e,t,n){return!e||Number.isNaN(e.getTime())?null:new Intl.DateTimeFormat("en-US",{...t,timeZone:n}).format(e)}function ns(e){return e.filter(t=>!!t).join(" · ")}function PZ(e){if(!e?.date)return null;const t=new Date(e.date);return Number.isNaN(t.getTime())?null:sv(t,x2,void 0)}function wm(e){return e?.name?`"${e.name}"`:null}function DZ(e,t){return t.actor??e.actorLabel}function QRe(e,t={actor:null,filedBy:null},n={}){const{timeZone:r}=n,o=l=>sv(l,x2,r),i=l=>sv(l,NZ,r);if(!e)return{origin:"Origin not recorded",attribution:"Date unknown",note:null};const a=DZ(e,t),s=ns([a,i(e.at)])||"Date unknown";switch(e.channel){case"COMMAND_CENTER":return{origin:"Created in Command Center",attribution:s,note:null};case"MOBILE":return{origin:"Created on iPhone",attribution:s,note:null};case"MIND_MAP":return{origin:"Created from a mind map",attribution:s,note:null};case"LIVE_BOARD":return{origin:`Added during ${wm(e.meeting)??"a live meeting"}`,attribution:s,note:null};case"VOICE":return{origin:e.device==="WATCH"?"Dictated on Apple Watch":e.device==="PHONE"?"Dictated on iPhone":"Dictated",attribution:ns([a,o(e.at)&&`captured ${o(e.at)}`])||"Date unknown",note:null};case"CODEWORD":return{origin:`Captured by code word in ${wm(e.meeting)??"a meeting"}`,attribution:ns([e.meeting?.speaker?`Said by ${e.meeting.speaker}`:a,o(e.at)])||"Date unknown",note:null};case"EMAIL":{const l=[e.senderName,e.senderEmail?`<${e.senderEmail}>`:null].filter(c=>!!c).join(" ")||e.actorLabel;return{origin:"From an email",attribution:ns([l?`Sent by ${l}`:null,o(e.receivedAt??e.at)])||"Date unknown",note:t.filedBy?ns([`Filed by ${t.filedBy}`,o(e.filedBy?.at??null)]):null}}case"MEETING_AI":return{origin:`Suggested by Luniko${wm(e.meeting)?` from ${wm(e.meeting)}`:""}`,attribution:ns([e.meeting?.speaker?`${e.meeting.speaker} was speaking`:null,PZ(e.meeting)??o(e.at)])||"Date unknown",note:t.filedBy?ns([`Shortlisted by ${t.filedBy}`,o(e.shortlistedBy?.at??null)]):null};case"LUNA":return{origin:t.actor?`Created by Luna, asked by ${t.actor}`:"Created by Luna",attribution:i(e.at)??"Date unknown",note:null};case"SMARTSHEET":return{origin:"Added on Smartsheet",attribution:s,note:null};case"IMPORT":return{origin:"Added by a Luniko data import",attribution:o(e.at)??"Date unknown",note:null};default:return{origin:"Origin not recorded",attribution:"Date unknown",note:null}}}const OZ=m().regex(/^([01]\d|2[0-3]):[0-5]\d$/,"Expected HH:mm"),ih={BUSINESS_PROCESS:"BUSINESS_PROCESS",CUTOVER_AND_GO_LIVE:"CUTOVER_AND_GO_LIVE",CUTOVER_PLANNING:"CUTOVER_PLANNING",DATA_CONVERSION_MIGRATION:"DATA_CONVERSION_MIGRATION",INTEGRATIONS:"INTEGRATIONS",IT_TECHNICAL_SCOPE:"IT_TECHNICAL_SCOPE",PMO_CHANGE_MANAGEMENT:"PMO_CHANGE_MANAGEMENT",POST_GO_LIVE:"POST_GO_LIVE",SYSTEM_TESTING:"SYSTEM_TESTING",TRAINING:"TRAINING"},cc={GENERATED:"GENERATED",SHORTLISTED:"SHORTLISTED",APPROVED:"APPROVED",SUBMITTING:"SUBMITTING",SUBMITTED:"SUBMITTED"},u_=["LOCAL_ONLY","SYNCED","PENDING_UPDATE","ERROR"],zr={ALREADY_LOGGED_IN_SYSTEM:"ALREADY_LOGGED_IN_SYSTEM",COMPLETED_IN_MEETING:"COMPLETED_IN_MEETING",DOER_DOES_NOT_USE_PM_TOOLS:"DOER_DOES_NOT_USE_PM_TOOLS",DUPLICATE:"DUPLICATE",INACCURATE_OR_NOT_VALID:"INACCURATE_OR_NOT_VALID",NOT_WORTH_TO_LOG:"NOT_WORTH_TO_LOG",OTHER:"OTHER"},RZ=In([m().trim().min(1),v({id:m().trim().min(1),reason:R(zr).optional()})]).transform(e=>typeof e=="string"?{id:e,reason:void 0}:e),_2=v({items:N(RZ)}),ut=e=>Ei(t=>{if(t!=null)return Array.isArray(t)?t:[t]},N(e).min(1).optional()),wt={STANDARDS_PROJECT:"STANDARDS_PROJECT",BIGTIME:"BIGTIME",MIDDLEWARE_EVALUATION:"MIDDLEWARE_EVALUATION",SALESFORCE:"SALESFORCE",CUTOVER:"CUTOVER",PROMOTE_TO_PRODUCTION:"PROMOTE_TO_PRODUCTION",BOM_DECONSTRUCTION:"BOM_DECONSTRUCTION",DELIVERABLE:"DELIVERABLE",RTM:"RTM",TESTING:"TESTING",CONFIG:"CONFIG",SECURITY:"SECURITY",SAFETY:"SAFETY",RIO:"RIO",PBI_PMO:"PBI_PMO",ADP:"ADP",TRAINING:"TRAINING",STORY:"STORY",INTEGRATION:"INTEGRATION"},fr={KEY_AREA_PARENT:"KEY_AREA_PARENT",PROJECT_OVERALL:"PROJECT_OVERALL",GO_LIVE:"GO_LIVE",GANTT:"GANTT",MUCHO_IMPORTANTE:"MUCHO_IMPORTANTE"},MZ={[wt.STANDARDS_PROJECT]:"Standards Project",[wt.BIGTIME]:"BigTime",[wt.MIDDLEWARE_EVALUATION]:"Middleware evaluation",[wt.SALESFORCE]:"Salesforce",[wt.CUTOVER]:"Cutover",[wt.PROMOTE_TO_PRODUCTION]:"Promote to Production",[wt.BOM_DECONSTRUCTION]:"BOM Deconstruction",[wt.DELIVERABLE]:"Deliverable",[wt.RTM
44]:"RTM",[wt.TESTING]:"Testing",[wt.CONFIG]:"Config",[wt.SECURITY]:"Security",[wt.SAFETY]:"Safety",[wt.RIO]:"RIO",[wt.PBI_PMO]:"PBI PMO",[wt.ADP]:"ADP",[wt.TRAINING]:"Training",[wt.STORY]:"Story",[wt.INTEGRATION]:"Integration"},jZ={[fr.KEY_AREA_PARENT]:"Key Area Parent",[fr.PROJECT_OVERALL]:"Project Overall",[fr.GO_LIVE]:"Go Live",[fr.GANTT]:"Gantt",[fr.MUCHO_IMPORTANTE]:"Mucho Importante"},kg=v({id:m().trim().min(1),url:m().nullable()}).strict(),d_=50,lv=500,h_=v({page:Fn().int().min(1).optional(),pageSize:Fn().int().min(1).max(lv).optional()}),m_=e=>v({items:N(e),page:j().int().min(1),pageSize:j().int().min(1),hasNextPage:te()}),S2=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([...e.slice(r,r+t)]);return n},xg={NEW:"NEW",IN_PROGRESS:"IN_PROGRESS",ON_HOLD:"ON_HOLD",COMPLETED:"COMPLETED",TRIAGE:"TRIAGE"},p_={FUNCTIONAL_LEADS:"FUNCTIONAL_LEADS",INTEGRATED_PROJECT_TEAM:"INTEGRATED_PROJECT_TEAM",LUNIKO_ONLY:"LUNIKO_ONLY",PROJECT_CHAMPION_1_1:"PROJECT_CHAMPION_1_1",STEERING_COMMITTEE:"STEERING_COMMITTEE"},_g={MEETING:"MEETING",COMMAND_CENTER:"COMMAND_CENTER",PHONE:"PHONE",WATCH:"WATCH",EMAIL:"EMAIL",WEB:"WEB"};Object.values(_g);const $Z={MEETING:"Meeting",COMMAND_CENTER:"Command Center",PHONE:"Phone",WATCH:"Watch",EMAIL:"Email",WEB:"Web"},LZ={DUE_DATE:"due_date",NEWEST:"newest"},Cr=m().regex(/^\d{4}-\d{2}-\d{2}$/,"Expected YYYY-MM-DD"),zZ=["image/png","image/jpeg","image/webp","image/heic","application/pdf","message/rfc822","application/vnd.ms-outlook","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],XRe=new Set(["image/png","image/jpeg","image/webp","image/heic"]),f_=R(zZ),eMe={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",webp:"image/webp",heic:"image/heic",pdf:"application/pdf",eml:"message/rfc822",msg:"application/vnd.ms-outlook",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},UZ=["uploading","ready","failed"],FZ=R(UZ),WZ=10,g_=10*1024*1024,Sg=v({id:m().trim().min(1),filename:m().trim().min(1),mimeType:f_,sizeBytes:j().int().positive().max(g_),storageKey:m().trim().min(1),status:FZ,smartsheetAttachmentId:j().int().positive().nullable()}),BZ=N(Sg).max(WZ).superRefine((e,t)=>{const n=new Set,r=new Set;for(let o=0;o<e.length;o+=1){const i=e[o];n.has(i.id)?t.addIssue({code:"custom",message:"Duplicate attachment id",path:[o,"id"]}):n.add(i.id),r.has(i.storageKey)?t.addIssue({code:"custom",message:"Duplicate attachment storage key",path:[o,"storageKey"]}):r.add(i.storageKey)}}).default([]),HZ=v({meetingName:m().nullable(),meetingDate:m().nullable(),speaker:m().nullable(),transcript:m().nullable()}),pr=v({id:m().trim().min(1),taskName:m().trim().nullable(),additionalNote:m().nullable(),recordBackground:m().nullable().default(null),smartsheetURL:Tn().nullable().optional(),destination:R(et),done:te(),dueDate:Cr.nullable(),originalDueDate:Cr.nullable().optional(),dueTime:OZ.nullable().optional(),sequence:j().int().nullable().default(null),responsibleDoer:m().trim().min(1).nullable(),meetingTrigger:N(R(p_)),projectAreaTags:N(R(ih)),tags:N(R(wt)).default([]),pbiTags:N(R(fr)).default([]),theme:m().trim().min(1).max(80).nullable().optional(),parentActionItemId:m().trim().min(1).nullable().optional(),status:R(xg),submissionState:R(cc),transcriptRef:kg.nullable(),deleteReason:R(zr).nullable(),deletedAt:ue().nullable(),lastEditedAt:ue().nullable(),createdAt:ue().nullable(),source:R(_g).nullable(),sourceProvenance:HZ.nullable().optional(),provenance:c_.nullable().catch(null).optional(),createdBy:m().trim().min(1).nullable(),sourceMindMapNodeId:m().trim().min(1).nullable().default(null),sourceWorkflowItemId:m().trim().min(1).nullable().default(null),attachments:BZ,potentialDuplicates:N(v({
44id:m().trim().min(1),score:j()})),smartsheetRowUrl:Tn().nullable(),sheetUniqueId:m().trim().min(1).nullable().optional(),syncStatus:R(u_).optional(),lastSyncError:m().nullable().optional()}),qZ=v({workflowId:m().trim().min(1),itemId:m().trim().min(1).nullable()}),VZ="blank";function tMe(e,t){return`${e}:${t??VZ}`}const KZ=pr.omit({id:!0,provenance:!0,smartsheetURL:!0,deleteReason:!0,deletedAt:!0,lastEditedAt:!0,createdAt:!0,potentialDuplicates:!0,smartsheetRowUrl:!0}).extend({workflowItemRef:qZ.nullable().optional(),pendingFlagUntil:An().nullable().optional(),pendingSubscription:te().optional(),pendingTagIds:N(m().trim().min(1)).max(50).optional()});v(w2(pr.omit({id:!0,provenance:!0,createdAt:!0,smartsheetRowUrl:!0}).shape)).partial().refine(e=>Object.keys(e).length>0,{message:"At least one field must be provided"});const T2=v({id:ut(m().trim().min(1)),marks:ut(m().trim().min(1)),sheetId:ut(m().trim().min(1)),rowId:ut(m().trim().min(1)),transcriptId:ut(m().trim().min(1)),search:m().trim().min(1).optional(),responsibleDoer:ut(Bd().transform(e=>e.toLowerCase())),responsibleDoerPersonIds:ut(m().trim().min(1)),done:Ln().optional(),destination:ut(R(et)),status:ut(R(xg)),meetingTrigger:ut(R(p_)),tags:ut(R(wt)),pbiTags:ut(R(fr)),submissionState:ut(R(cc)),syncStatus:ut(R(u_)),includeDeleted:Ln().optional(),includeUndated:Ln().optional(),deleted:Ln().optional(),sortBy:R(LZ).optional(),sourceMindMapNodeIds:ut(m().trim().min(1)),createdByPersonIds:ut(m().trim().min(1)),provenanceChannels:ut(R(v2)),dueDateFrom:Cr.optional(),dueDateTo:Cr.optional(),dashboardProfileId:m().trim().min(1).optional()});T2.extend(h_.shape);const GZ=m_(pr);v({reason:R(zr).optional()});v({ids:N(m().trim().min(1)).min(1)});const YZ=v({created:v({items:N(KZ)}),upsert:v({items:N(pr)}),deleted:_2});v({created:N(pr)});const ZZ=v({id:m().trim().min(1),error:m().nullable()}).strict(),JZ=v({results:N(ZZ)});v({filename:m().trim().min(1),mimeType:f_,sizeBytes:j().int().positive().max(g_)});const QZ=v({attachmentId:m().trim().min(1),storageKey:m().trim().min(1),presignedPost:v({url:m(),fields:jt(m(),m())})});v({storageKey:m().trim().min(1)});const XZ=v({url:Tn(),expiresAt:An()});v({filename:m().trim().min(1),mimeType:f_,sizeBytes:j().int().positive().max(g_),storageKey:m().trim().min(1)});const e7=Sg,t7=v({item:pr,completedAt:An(),completedByPersonId:m().nullable()}),n7=v({items:N(t7)}),ah={CUSTOMER_PMO_TEAM:"CUSTOMER_PMO_TEAM",FUNCTIONAL_LEADS:"FUNCTIONAL_LEADS",INTEGRATED_PROJECT_TEAM:"INTEGRATED_PROJECT_TEAM",LUNIKO_ONLY:"LUNIKO_ONLY",PROJECT_CHAMPION_1_1:"PROJECT_CHAMPION_1_1",STEERING_COMMITTEE:"STEERING_COMMITTEE",TECHNICAL_LEADS:"TECHNICAL_LEADS"},sh={ASSUMPTION:"ASSUMPTION",DECISION:"DECISION",ISSUE:"ISSUE",RISK:"RISK"},$r={ASSUMPTION_CONFIRMED:"ASSUMPTION_CONFIRMED",ASSUMPTION_INVALID:"ASSUMPTION_INVALID",ASSUMPTION_OBSOLETE:"ASSUMPTION_OBSOLETE",DECISION_MADE_COMMUNICATED:"DECISION_MADE_COMMUNICATED",DECISION_MADE_NOT_COMMUNICATED:"DECISION_MADE_NOT_COMMUNICATED",DECISION_NOT_MADE:"DECISION_NOT_MADE",ISSUE_CLOSED:"ISSUE_CLOSED",RISK_ACCEPTED:"RISK_ACCEPTED",RISK_AVOIDED:"RISK_AVOIDED",RISK_MITIGATED:"RISK_MITIGATED"},Cc={CRITICAL:"CRITICAL",HIGH:"HIGH",LOW:"LOW",NORMAL:"NORMAL",TBD:"TBD"},Br={NEW_LUNIKO_REVIEW:"NEW_LUNIKO_REVIEW",NEW_NO_PLAN:"NEW_NO_PLAN",OPEN_PLAN_IN_PLACE:"OPEN_PLAN_IN_PLACE",CLOSED:"CLOSED"},nMe=[Br.NEW_LUNIKO_REVIEW],r7={NEWEST:"newest",OLDEST:"oldest",DUE_DATE:"due_date",COMPLETED_DATE:"completed_date"},o7=v({meetingName:m().nullable(),meetingDate:m().nullable(),speaker:m().nullable(),transcript:m().nullable()}),zo=v({id:m().trim().min(1),title:m().trim().nullable(),type:R(sh),detail:m().nullable(),dueDate:Cr.nullable(),responsibleDoer:m().trim().min(1).nullable(),authority:m().trim().min(1).nullable(),supportHelper:N(m().trim().min(1)),informed:N(m().trim().min(1)),potentialImpact:R(Cc),status:R(Br).nullable().catch(null).default(null),disposition:R($r).nullable().catch(null).default(null),actionNotes:m().nullable().default(null),actualDateCompleted:Cr.nullable().default(null),projectNumber:m().nullable().default(null),attentionFlag:te().nullable().default(null),majorDecision:te().nullable().default(null),associatedDeliverable:m().nullable().default(null),gate:m().nullable().default(null),decisionRecordNeeded:te().nullable().default(null),documentUrl:m().nullable().default(null),videoUrl:m().nullable().default(null),consultAdvisors:N(m().trim().min(1)).default([]),uniqueId:m().nullable().default(null),sheetUniqueId:m().nullable().default(null),createdBy:m().nullable().default(null),destination:R(uo),meetingTrigger:N(R(ah)),submissionState:R(cc),deleteReason:R(zr).nullable(),projectAreaTags:N(R(i
44h)),tags:N(R(wt)).default([]),pbiTags:N(R(fr)).default([]),tigerTeam:N(m().trim().min(1)).default([]),deletedAt:ue().nullable(),lastEditedAt:ue().nullable(),createdAt:ue().nullable(),transcriptRef:kg.nullable(),sourceProvenance:o7.nullable().optional(),provenance:c_.nullable().catch(null).optional(),potentialDuplicates:N(v({id:m().trim().min(1),score:j()})),smartsheetRowUrl:Tn().nullable(),syncStatus:R(u_).optional()}),i7=zo.omit({id:!0,provenance:!0,deleteReason:!0,deletedAt:!0,lastEditedAt:!0,createdAt:!0,potentialDuplicates:!0,smartsheetRowUrl:!0});v(w2(zo.omit({id:!0,provenance:!0,createdAt:!0,smartsheetRowUrl:!0}).shape)).partial().refine(e=>Object.keys(e).length>0,{message:"At least one field must be provided"});const I2=v({id:ut(m().trim().min(1)),transcriptId:ut(m().trim().min(1)),search:m().trim().min(1).optional(),responsibleDoer:ut(Bd().transform(e=>e.toLowerCase())),responsibleDoerPersonIds:ut(m().trim().min(1)),destination:ut(R(uo)),sheetUniqueId:ut(m().trim().min(1)),type:ut(R(sh)),tags:ut(R(wt)),pbiTags:ut(R(fr)),meetingTrigger:ut(R(ah)),submissionState:ut(R(cc)),includeDeleted:Ln().optional(),deleted:Ln().optional(),disposition:ut(R($r)),status:ut(R(Br)),excludeStatus:ut(R(Br)),potentialImpact:ut(R(Cc)),hasTranscript:Ln().optional(),hasActualDateCompleted:Ln().optional(),dueDateFrom:Cr.optional(),dueDateTo:Cr.optional(),hasDueDate:Ln().optional(),createdByPersonIds:ut(m().trim().min(1)),provenanceChannels:ut(R(v2)),sortBy:R(r7).optional(),dashboardProfileId:m().trim().min(1).optional()});I2.extend(h_.shape);const a7=m_(zo),s7=v({reason:R(zr).optional()});v({ids:N(m().trim().min(1)).min(1)});const l7=v({created:v({items:N(i7)}),upsert:v({items:N(zo)}),deleted:_2}),E2=["meeting","future_meeting","liveMeeting"],A2=1e3,c7=v({entityType:R(E2),entityId:m().trim().min(1),recipientPersonId:m().trim().min(1),message:m().trim().min(1).max(A2),sentByPersonId:m().trim().min(1),sentAt:ue(),sentByName:m().nullable().default(null)});v({entityType:R(E2),entityId:m().trim().min(1)});const u7=v({shareMessages:N(c7)}),rMe="luniko-management",ja=v({audience:m().trim().min(1),video:te().default(!1)}).strict(),d7=v({key:m().trim().min(1),label:m().trim().min(1),description:m().default(""),defaultGrantsOnRecord:N(ja).default([])}).strict(),Tg=R(["default","admin"]),y_=v({personId:m().nullable().default(null),name:m().nullable().default(null),at:ue()}).strict(),C2=[{key:"invitees-only",label:"Invitees only",description:"Only the people invited to or in the meeting",grants:[],restrictToGrants:!1},{key:"luniko-private",label:"Luniko Private",description:"Hidden from the people in it — management and anyone you share it with",grants:[],restrictToGrants:!0},{key:"gfs-private",label:"GFS Private",description:"Invitees plus Curran VIPs",grants:[{audience:"curran-vips",video:!1}],restrictToGrants:!1},{key:"luniko-public",label:"Luniko Public",description:"Invitees plus anyone at Luniko",grants:[{audience:"luniko-consultants",video:!0}],restrictToGrants:!1},{key:"gfs-public",label:"GFS Public",description:"Invitees, anyone at Luniko and all GFS",grants:[{audience:"luniko-consultants",video:!0},{audience:"curran-vips",video:!1},{audience:"gfs-general",video:!1}],restrictToGrants:!1},{key:"gfs-public-video",label:"GFS Public + Video",description:"GFS Public audience, with video",grants:[{audience:"luniko-consultants",video:!0},{audience:"curran-vips",video:!0},{audience:"gfs-general",video:!0}],restrictToGrants:!1}],cv=(...e)=>{const t=new Map;for(const n of e)for(const r of n)t.set(r.audience,(t.get(r.audience)??!1)||r.video);return[...t.entries()].map(([n,r])=>({audience:n,video:r})).sort((n,r)=>n.audience.localeCompare(r.audience))},h7=(e,t)=>{const n=cv(e),r=cv(t);return n.length===r.length&&n.every((o,i)=>o.audience===r[i].audience&&o.video===r[i].video)},m7=(e,t=!1)=>C2.find(n=>n.restrictToGrants===t&&h7(n.grants,e))??null,oMe=(e,t=!1)=>{const n=m7(e,t);if(n)return n.label;const r=cv(e).length,o=r===1?"1 audience":`${r} audiences`;return t?`${o}, locked`:o};v({grants:N(ja),restrictToGrants:te().default(!1)}).strict();v({personIds:N(m().trim().min(1)).min(1),shared:te(),message:m().trim().max(A2).optional()}).strict();const p7=["manual","off-record"],N2=R(p7),f7=["pending","approved","rejected"],g7=R(f7),Nc=v({id:m().min(1),fromSec:j().min(0),toSec:j().min(0),source:N2,status:g7,createdByPersonId:m().nullable(),createdByName:m().nullable(),createdAt:m(),reviewedByPersonId:m().nullable(),reviewedByName:m().nullable(),reviewedAt:m().nullable(),liftedByPersonId:m().nullable(),liftedByName:m().nullable(),liftedAt:m().nullable()}),y7=["action_item","raid_entry"],P2=R(y7),b_=v({kind:P2,id:m().trim().min(1)}),b7=v({kind:P2,id:m().trim().min(1),title:m(),description:m().nullable(),suggested:te(),inSmartsheet:te()}),w7=v({items:N(b7)});v({fromSec:j().min(0),toSec:j().min(0),deleteItems:N(b_).optional()}).refine(e=>e.toSec>e.fromSec,{message:"toSec must be after fromSec",path:["toSec"]});v({lastSeconds:j().int().min(5).max(600),deleteItems:N(b_).optional()});v({deleteItems:N(b_).optional()});const v7="[Redacted]",D2=(e,t,n,r)=>{const o=r?.canRevealPending??!1;return e.find(i=>i.liftedAt!==null||i.status==="rejected"||o&&i.status==="pending"?!1:t<=i.toSec&&n>=i.fromSec)};function iMe(e,t,n,r){return D2(e,t,n,r)!==void 0}function aMe(e,t,n){return e.map(r=>{const o=D2(t,r.startTime,r.endTime,n);return o?{...r,text:v7,redacted:!0,redactionStatus:o.status==="pending"?"pending":"approved"}:{...r,redacted:!1}})}function k7(e,{canReviewPending:t=!1}={}){return e.mediaRedaction?.status==="pending"||e.mediaRedaction?.status==="failed"?!0:t?!1:e.redactions.some(n=>n.status==="pending"&&n.liftedAt===null)}const x7=15,_7=1.5;function S7(e){const t=e.filter(o=>o.liftedAt===null&&o.status!=="rejected").map(o=>[o.fromSec,o.toSec]).sort((o,i)=>o[0]-i[0]);let n=0,r=-1/0;for(const[o,i]of t){const a=Math.max(o,r);i>
44a&&(n+=i-a),r=Math.max(r,i)}return n}function sMe(e){return x7+_7*S7(e)}const T7=["recording","paused"],w_=R(T7),I7=["budget-or-cost","personnel-changes","disparaging-remarks","political","inappropriate-jokes","other-sensitive"],lMe={"budget-or-cost":"Budget / Cost","personnel-changes":"Personnel","disparaging-remarks":"Disparaging Remarks",political:"Political","inappropriate-jokes":"Jokes","other-sensitive":"Sensitive"},v_=v({category:R(I7),note:m().trim().min(1),sourceTimestampSec:j().nonnegative().nullable().default(null)}).strict(),O2=["meeting","raidMoment","clip","opLogEntry"],R2=["new","seen"];v({entityType:R(O2),entityId:m().trim().min(1)});const E7=v({id:m(),ownerId:m(),entityType:m(),entityId:m(),seenAt:ue()});v({items:N(E7)});v({entityType:ut(R(O2))});const Ig=["NONE","IN_REVIEW","SUBMITTED"],M2=["all","in","not_in"],Eg={LUNIKO:"LUNIKO",GFS:"GFS",ADIENT:"ADIENT"},j2=v({transcriptId:ut(m().trim().min(1)),q:Ei(e=>{if(e==null)return;const t=String(e).trim();if(t.length!==0)return t.length>128?t.slice(0,128):t},m().min(1).max(128).optional()),titleAny:Ei(e=>{if(e!=null)return Array.isArray(e)?e:[e]},N(m().trim().min(1)).min(1).optional()),attendeeEmails:Ei(e=>{if(e!=null)return Array.isArray(e)?e:[e]},N(m().trim().min(1)).min(1).optional()),since:m().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"since must be a valid date"}).transform(e=>new Date(e)).optional(),includeActionItems:Ln().optional(),matchNone:Ln().optional(),until:m().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"until must be a valid date"}).transform(e=>new Date(e)).optional(),project:R(["all","luna","gfs","adient"]).optional(),duration:R(["any","short","medium","long"]).optional(),sortBy:R(["newest","oldest","longest","shortest","title"]).optional(),statuses:Ei(e=>{if(e!=null)return Array.isArray(e)?e:[e]},N(R(Ig)).min(1).optional()),organizations:Ei(e=>{if(e!=null)return Array.isArray(e)?e:[e]},N(R(Object.values(Eg))).min(1).optional()),internalOnly:Ln().optional(),assignedTo:m().trim().min(1).optional(),videoOnly:Ln().optional(),bookmarked:R(["all","bookmarked","unbookmarked"]).optional(),participation:R(M2).optional()});j2.extend({...h_.shape,view:R(["calendar"]).optional()});const A7=v({actionItems:m().nullable().default(null),keywords:N(m()).default([]),overview:m().nullable().default(null),gist:m().nullable().default(null),bulletGist:m().nullable().default(null),shortSummary:m().nullable().default(null),shortOverview:m().nullable().default(null),topicsDiscussed:N(m()).default([])}).strict(),C7=v({text:m().trim().min(1),timestamp:m().regex(/^\d{2}:\d{2}:\d{2}$/),seconds:j().int().nonnegative()}).strict(),Ag=v({shortSummary:m().trim().min(1),bullets:N(C7).max(8).default([])}).strict(),$2=v({name:m().nullable().default(null),email:m().nullable().default(null),joinTime:m().nullable().default(null),leaveTime:m().nullable().default(null)}).strict(),L2=v({name:m().nullable().default(null),email:m().nullable().default(null)}).strict(),z2=v({name:m().nullable().default(null)}).strict(),N7=v({speakerId:j().nullable().default(null),name:m().nullable().default(null),duration:j().nullable().default(null),wordCount:j().nullable().default(null),longestMonologue:j().nullable().default(null),monologuesCount:j().nullable().default(null),fillerWords:j().nullable().default(null),questions:j().nullable().default(null),durationPct:j().nullable().default(null),wordsPerMinute:j().nullable().default(null)}).strict(),P7=v({negativePct:j().nullable().default(null),neutralPct:j().nullable().default(null),positivePct:j().nullable().default(null)}).strict(),D7=v({questions:j().nullable().default(null),dateTimes:j().nullable().default(null),metrics:j().nullable().default(null),tasks:j().nullable().default(null)}).strict(),O7=v({sentiments:P7.nullable().default(null),categories:D7.nullable().default(null),speakers:N(N7).default([])}).strict(),k_=v({raidTotal:j(),raidShortlisted:j(),raidSubmitted:j(),actionTotal:j(),actionShortlisted:j(),actionSubmitted:j()}).strict(),U2=v({fullName:m(),emails:N(m())}).strict(),F2=["hidden","nuked"],W2=v({kind:R(F2),deletedAt:ue(),byPersonId:m().nullable().default(null),byName:m().nullable().default(null)}).strict();v({kind:R(F2),confirmTitle:m().trim().min(1).optional()}).strict().refine(e=>e.kind!=="nuked"||(e.confirmTitle?.length??0)>0,{message:"confirmTitle is required to nuke a meeting",path:["confirmTitle"]});const R7=v({transcriptId:m(),title:m(),dateString:m().nullable().default(null),deletion:W2}).strict(),M7=v({items:N(R7)}).strict(),j7=v({totalMeetings:j().int().nonnegative(),totalMinutes:j().int().nonnegative()}).strict(),$7=v({transcriptId:m(),orgId:m().nullable().optional(),title:m().trim().min(1),dateString:m().nullable().default(null),transcriptUrl:Tn().nullable().default(null),videoUrl:Tn().nullable().default(null),posterUrl:Tn().nullable().default(null),duration:j().nullable().default(null),organizations:N(R(Object.values(Eg))).default([]),normalizedParticipants:N(U2).default([]),projectId:m().nullable().default(null),meetingAttendance:N($2).default([]),meetingAttendees:N(L2).default([]),user:z2.nullable().default(null),fullTranscript:m().nullable().default(null),summary:A7.nullable().default(null),analytics:O7.nullable().default(null),meetingItemStats:k_.nullable().default(null),status:R(Ig).default("NONE"),workedOnBy:N(m()
44).default([]),reviewerAuth0UserId:m().nullable().default(null),createdAt:ue().optional(),updatedAt:ue().optional(),lunaGeneratedSummary:Ag.nullable().default(null),tags:N(m()).default([]),detectedRisks:N(v_).default([]),firefliesUsers:N(m()).default([]),grants:N(ja).default([]),participantPersonIds:N(m()).default([]),sharedWithPersonIds:N(m()).default([]),accessOrgIds:N(m()).optional(),restrictToGrants:te().default(!1),grantsSetBy:Tg.default("default"),grantsMarkedBy:y_.nullable().default(null),recordedByEmail:m().nullable().default(null),billingAccountKey:m().nullable().default(null),deletion:W2.nullable().default(null)}).strict(),B2=v({status:R(["pending","applied","failed"]),updatedAt:m(),error:m().nullable().default(null),jobId:m().optional(),startedAt:m().optional()}).nullable().default(null),L7=v({keywords:N(m()).default([])}).strict().nullable().default(null),H2=v({transcriptId:m(),title:m().trim().min(1),dateString:m().nullable().default(null),duration:j().nullable().default(null),videoUrl:Tn().nullable().default(null),posterUrl:Tn().nullable().default(null),projectId:m().nullable().default(null),normalizedParticipants:N(U2).default([]),meetingAttendance:N($2).default([]),meetingAttendees:N(L2).default([]),user:z2.nullable().default(null),summary:L7,meetingItemStats:k_.nullable().default(null),status:R(Ig).default("NONE"),workedOnBy:N(m()).default([]),reviewerAuth0UserId:m().nullable().default(null),tags:N(m()).default([]),detectedRisks:N(v_).default([]),firefliesUsers:N(m()).default([]),grants:N(ja).default([]),participantPersonIds:N(m()).default([]),sharedWithPersonIds:N(m()).default([]),restrictToGrants:te().default(!1),grantsSetBy:Tg.default("default"),grantsMarkedBy:y_.nullable().default(null),recordedByEmail:m().nullable().default(null),billingAccountKey:m().nullable().default(null),accessOrgIds:N(m()).optional(),calendarDedupKey:m().nullable().optional(),seriesId:m().nullable().optional(),createdAt:ue().optional(),updatedAt:ue().optional(),lunaGeneratedSummary:Ag.nullable().default(null),redactions:N(Nc).default([]),mediaRedaction:B2}),z7=$7.pick({transcriptId:!0,orgId:!0,title:!0,dateString:!0,transcriptUrl:!0,videoUrl:!0,posterUrl:!0,duration:!0,normalizedParticipants:!0,projectId:!0,meetingAttendance:!0,meetingAttendees:!0,user:!0,fullTranscript:!0,summary:!0,analytics:!0,meetingItemStats:!0,status:!0,workedOnBy:!0,reviewerAuth0UserId:!0,createdAt:!0,updatedAt:!0,lunaGeneratedSummary:!0,tags:!0,detectedRisks:!0,firefliesUsers:!0,grants:!0,participantPersonIds:!0,sharedWithPersonIds:!0,accessOrgIds:!0,restrictToGrants:!0,grantsSetBy:!0,grantsMarkedBy:!0,recordedByEmail:!0,billingAccountKey:!0,deletion:!0}).extend({recall:v({botId:m().nullable().default(null),source:m().nullable().default(null),scheduledByEmail:m().nullable().default(null)}).loose().nullable().default(null),redactions:N(Nc).default([]),mediaRedaction:B2}),q2=v({transcript:H2,unresolvedCount:j(),totalCount:j()}),rs=v({transcript:z7,unresolvedCount:j(),totalCount:j()}),U7=m_(q2),F7=R2;j2.extend({lane:R(F7).default("new"),cursor:m().trim().min(1).optional(),limit:Fn().int().min(1).max(50).default(20)});v({items:N(q2),nextCursor:m().nullable()});v({meetingId:m().trim().min(1)});v({meetingIds:N(m().trim().min(1)).min(1).max(100)});const W7=v({recorded:j().int().min(0)}),B7=v({includedActionCount:j().int().nonnegative(),includedRaidCount:j().int().nonnegative(),unreviewedActionCount:j().int().nonnegative(),unreviewedRaidCount:j().int().nonnegative()}),H7=v({subject:m(),html:m(),recipients:N(m()).default([]),counts:B7.nullable().default(null)});v({title:m().trim().min(1).max(500)}).refine(e=>Object.keys(e).length>0,{message:"At least one field must be provided"});v({reviewerAuth0UserId:m().trim().min(1),destination:R(et).default(et.NON_PROJECT_LUNIKO),dueDate:Cr.nullable().default(null),note:m().trim().max(2e3).nullable().default(null)});const q7=["organizer","required","optional"],V7=["accepted","declined","tentative","none"],V2=v({email:m().trim().min(1),name:m().nullable().default(null),role:R(q7),response:R(V7).default("none")}).strict(),K7=v({joinedAt:ue(),leftAt:ue().nullable().default(null)}).strict(),pb=v({from:ue(),to:ue().nullable().default(null)}).strict(),G7=v({key:m().min(1),name:m().nullable().default(null),email:m().nullable().default(null),inviteeEmail:m().nullable().default(null),isHost:te().nullable().default(null),intervals:N(K7).default([]),firstJoinedAt:ue().nullable().default(null),lastLeftAt:ue().nullable().default(null),presentSeconds:j().nullable().default(null),speakingSeconds:j().nullable().default(null),webcamSeconds:j().nullable().default(null),webcamOnCount:j().nullable().default(null),screenshareSeconds:j().nullable().default(null),screenshareOnCount:j().nullable().default(null),micActiveSeconds:j().nullable().default(null),micActiveCount:j().nullable().default(null),webcamSpans:N(pb).nullable().default(null),screenshareSpans:N(pb).nullable().default(null),micSpans:N(pb).nullable().default(null),chatMessageCount:j().nullable().default(null)}).strict(),Y7=["calendar","adhoc"],Z7=v({botId:m().min(1),recordingId:m().nullable().default(null),calendarEventId:m().nullable().default(null),icalUid:m().nullable().default(null),dedupKey:m().nullable().default(null),stableOccurrenceId:m().nullable().default(null),seriesId:m().nullable().default(null),scheduledByEmail
44:m().nullable().default(null),source:R(Y7)}).strict();v({schemaVersion:we(2),transcriptId:m(),title:m().trim().min(1),startedAt:ue(),endedAt:ue().nullable().default(null),durationSeconds:j().nullable().default(null),videoUrl:Tn().nullable().default(null),posterUrl:Tn().nullable().default(null),audioUrl:Tn().nullable().default(null),organizations:N(R(Object.values(Eg))).default([]),projectId:m().nullable().default(null),invitees:N(V2).default([]),attendance:N(G7).default([]),recall:Z7,status:R(Ig).default("NONE"),workedOnBy:N(m()).default([]),reviewerAuth0UserId:m().nullable().default(null),tags:N(m()).default([]),detectedRisks:N(v_).default([]),meetingItemStats:k_.nullable().default(null),lunaGeneratedSummary:Ag.nullable().default(null),grants:N(ja).default([]),participantPersonIds:N(m()).default([]),sharedWithPersonIds:N(m()).default([]),restrictToGrants:te().default(!1),grantsSetBy:Tg.default("default"),grantsMarkedBy:y_.nullable().default(null),recordedByEmail:m().nullable().default(null),billingAccountKey:m().nullable().default(null),createdAt:ue().optional(),updatedAt:ue().optional()}).strict();const J7=[et.PERSONAL_YALISA,et.YASS_GENERAL,et.MICHELLE_LOG],x_=e=>J7.includes(e??""),Q7=e=>!x_(e);Object.values(et).filter(Q7);const X7=Object.values(et),cMe=e=>typeof e=="string"&&X7.includes(e),eJ=(e,t)=>(e??[]).includes(t),__=(e,t=[])=>e.filter(n=>!x_(n)||eJ(t,n)),K2=(e,t)=>t==null?e:e.filter(n=>x_(n)||t.includes(n)),tJ=["LOW","MEDIUM","HIGH","CRITICAL"],G2=L.union([L.enum(tJ),L.string().min(1)]).nullable(),Wi=L.object({summary:L.string().min(1),details:L.string().min(1),location:L.string().min(1).nullable(),dueDate:L.string().min(1).nullable(),severityOrPriority:G2}),S_=L.object({id:L.string().trim().min(1).nullable().optional(),taskName:L.string(),additionalNote:L.string(),done:L.boolean(),dueDate:L.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable(),responsibleDoer:L.string().min(1).nullable().default(null),destination:L.enum(et).nullable().optional(),tags:L.array(L.enum(wt)).default([]),pbiTags:L.array(L.enum(fr)).default([]),theme:L.string().trim().min(1).max(80).nullable().optional(),originalDueDate:Cr.nullable().optional(),attachments:L.array(Sg).max(10).default([]),recordBackground:L.string().nullable().optional(),source:L.enum(_g).nullable().optional(),pendingSubscription:L.boolean().default(!1),pendingFlagUntil:L.iso.datetime().nullable().default(null)}),nJ=["INJURY_ILLNESS","NEAR_MISS","PROPERTY_DAMAGE","SAFETY_FIX"],rJ=["AWKWARD_POSTURE","BLOCKED_SAFETY_EQUIPMENT","CAUGHT_IN_BETWEEN_UNDER","CHEMICAL_DUST_FUME_INHALE","CHEMICAL_EXPOSURE","COLLAPSING_OBJECT","CONTACT_WITH_ELECTRICITY","CONTACT_WITH_SHARP_OBJECT","DROWNING","EXPOSURE_TO_COLD","EXPOSURE_TO_HEAT","EXPOSURE_TO_LOW_OXYGEN","EXPOSURE_TO_NOISE","FALL","FIRE","FLYING_DEBRIS","LIFTING","LOWERING","PERSONAL_PROTECTIVE_EQUIPMENT","PINCHING","PULLING","PUSHING","REPETITIVE_MOTION","SLIP","STRUCK_AGAINST","STRUCK_BY","TRIP","TWISTING","VEHICLE_ACCIDENT"],oJ=["PROGRAM_MANAGEMENT","OPERATIONS","ENGINEERING","FIELD_SERVICES","TECHNICAL_SERVICES_AND_IT"],iJ=Wi.extend({kind:L.literal("create_safety_incident")}),aJ=L.object({kind:L.literal("create_near_miss"),summary:L.string().min(1),details:L.string().min(1),location:L.string().min(1).nullable(),responsibleDoer:L.string().min(1).nullable(),severityOrPriority:G2,department:L.enum(oJ).nullable().optional(),identifiedBy:L.string().min(1).nullable().optional(),incidentCategory:L.enum(nJ).nullable().optional(),facility:L.string().min(1).nullable().optional(),incidentDateTime:L.string().min(1).nullable().optional(),incidentDay:L.string().min(1).nullable().optional(),toolsEquipmentMaterials:L.string().min(1).nullable().optional(),workAreaConditions:L.string().min(1).nullable().optional(),taskAtTime:L.string().min(1).nullable().optional(),proceduresInPlace:L.string().min(1).nullable().optional(),trainingRegardingTask:L.string().min(1).nullable().optional(),incidentTypes:L.array(L.enum(rJ)).default([]),otherIncidentType:L.string().min(1).nullable().optional()}),sJ=Wi.extend({kind:L.literal("create_engineering_issue")}),lJ=Wi.extend({kind:L.literal("create_quality_issue")}),cJ=Wi.extend({kind:L.literal("create_nonconformance")}),uJ=Wi.extend({kind:L.literal("create_action"),sourceTimestampSec:L.number().nonnegative().nullable().optional(),sourceQuote:L.string().min(1).nullable().optional(),transcriptRef:kg.nullable().optional()}),Y2={meetingName:L.string().min(1).nullable().optional(),meetingDate:L.string().min(1).nullable().optional(),codewordSpeaker:L.string().min(1).nullable().optional()},dJ=uJ.extend({extractedActionItems:L.array(S_),...Y2}),hJ=Wi.extend({kind:L.literal("create_action_erp_project")}),mJ=Wi.extend({kind:L.literal("create_decision")}),pJ=Wi.extend({kind:L.literal("create_risk")}),fJ=Wi.extend({kind:L.literal("create_note"),note:L.string().min(1)}),Z2=L.object({kind:L.literal("create_raid"),summary:L.string().min(1),details:L.string().min(1),raidType:L.enum(sh),potentialImpact:L.enum(Cc),status:L.enum(Br).nullable().default(Br.NEW_LUNIKO_REVIEW),dueDate:L.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable(),responsibleDoer:bm.nullable(),authority:bm.nullable(),destination:L.enum(uo).default(uo.GFS_CONFIDENTIAL),meetingTrigger:L.array(L.enum(ah)).default([]),supportHelper:L.array(bm).default([]),tigerTeam:L.array(bm).default([]),documentUrl:L.string().nullable().default(null),projectAreaTags:L.array(L.enum(ih)).default([]),tags:L.array(L.enum(wt)).default([]),pbiTags:L.array(L.enum(fr)).default([]),submissionState:L.enum(cc).default(cc.GENERATED),sourceQuote:L.string().min(1),sourceTimestampSec:L.number().nonnegative(),transcriptRef:kg,pen
44dingFlagUntil:L.iso.datetime().nullable().default(null),...Y2}),J2=[iJ,aJ,sJ,lJ,cJ,dJ,hJ,mJ,pJ,fJ,Z2],Q2=L.discriminatedUnion("kind",J2);L.union(J2.map(e=>e.partial()));const gJ=["scheduled","pending","active","ended"],yJ=v({chunkId:m().min(1),speakerName:m(),text:m(),startTime:j(),endTime:j(),redacted:te().optional(),redactionStatus:R(["pending","approved"]).optional()}),bJ=["detected","generating","created","none"],wJ=["luna","scout","yas","manual"],vJ=v({timestampSec:j(),capturedUntilSec:j().nullable().default(null),speakerName:m().nullable(),status:R(bJ),trigger:R(wJ).default("luna"),ownerPersonId:m().nullable().default(null),isSpanCapture:te().default(!1),kind:R(["action","raid"]).nullable().default(null),routedToName:m().nullable().default(null),actionItems:N(v({id:m().min(1),taskName:m().nullable()})).default([])}),Ap=v({meetingId:m().min(1),orgId:m().nullable().optional(),accessOrgIds:N(m()).default([]),title:m(),organizerEmail:m().nullable(),meetingLink:m().nullable(),startTime:m().nullable(),transcriptStartedAt:ue().nullable().default(null),state:R(gJ),participantEmails:N(m()),participantPersonIds:N(m()).optional(),sharedWithPersonIds:N(m()).optional(),endedAt:ue().nullable(),createdAt:ue().nullable(),recordingState:w_.default("recording"),pausedAt:m().nullable().default(null),redactions:N(Nc).default([])}),X2=v({items:N(bn()).transform(e=>e.flatMap(t=>{const n=Ap.safeParse(t);return n.success?[n.data]:[]}))}),kJ="live.presence",uMe={snapshot:"live.snapshot",segment:"live.segment",codeword:"live.codeword",triage:"live.triage",ended:"live.ended",recordingState:"live.recordingState",redactions:"live.redactions"},dMe=v({recordingState:w_,pausedAt:m().nullable()}),hMe=v({redactions:N(Nc)}),mMe=v({meetingId:m().min(1),workflowId:m().min(1),ownerId:m().min(1),at:An(),items:N(S_).optional()}),pMe=v({meeting:Ap,segments:N(yJ),moments:N(vJ)}),ba=In([m().trim().min(1),v({name:m().trim().min(1),email:m().trim().toLowerCase().nullable().optional(),personId:m().trim().min(1).nullable().optional()})]);v({timestampSec:j().nonnegative(),summary:m().trim().min(1).max(500),details:m().trim().min(1).max(5e3),raidType:R(sh),potentialImpact:R(Cc),status:R(Br).nullable().default(Br.NEW_LUNIKO_REVIEW),destination:R(uo),dueDate:m().regex(/^\d{4}-\d{2}-\d{2}$/u,"Expected YYYY-MM-DD").nullable().default(null),responsibleDoer:ba.nullable().default(null),authority:ba.nullable().default(null),supportHelper:N(ba).default([]),tigerTeam:N(ba).default([]),documentUrl:m().nullable().default(null),meetingTrigger:N(R(ah)).default([]),projectAreaTags:N(R(ih)).default([]),tags:N(R(wt)).default([]),pbiTags:N(R(fr)).default([])});const xJ=v({workflowId:m().trim().min(1)}),SI=L.object({id:L.string(),presignedPost:L.object({url:L.string(),fields:L.record(L.string(),L.string())})});L.object({transcript:L.string().trim().min(1).max(5e3)});L.object({id:L.string()});const _J=["NOT_STARTED","IN_PROGRESS","COMPLETED","ERROR"],fb=L.enum(_J),hd=L.object({id:L.string(),createdAt:L.iso.datetime().nullable(),uploadStatus:fb,transcriptionStatus:fb,agentStatus:fb,rawTranscriptText:L.string().nullable(),cleanText:L.string().nullable(),finalizedAt:L.iso.datetime().nullable(),workflow:Q2.nullable(),provenance:c_.nullable().optional()}),SJ=L.enum(["validation","s3_fetch","transcription","clean_text","router","finalize"]),TJ=L.object({type:L.literal("status"),stage:SJ,state:L.enum(["started","completed","failed"]),message:L.string()}),IJ=L.object({type:L.literal("agent_step"),agent:L.string().trim().min(1),step:L.string().trim().min(1),message:L.string(),toolName:L.string().trim().min(1).optional()}),EJ=L.object({type:L.literal("reasoning"),agent:L.string().trim().min(1),text:L.string()}),AJ=L.object({type:L.literal("done"),audioId:L.string().trim().min(1),result:hd}),CJ=L.object({type:L.literal("error"),code:L.string().trim().min(1),message:L.string().trim().min(1),requestId:L.string().trim().min(1).optional()}),NJ=L.discriminatedUnion("type",[TJ,IJ,EJ,AJ,CJ]);L.object({workflow:Q2});L.object({items:L.array(S_)});L.object({taskName:L.string().optional(),additionalNote:L.string().optional(),done:L.boolean().optional(),dueDate:L.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable().optional(),originalDueDate:L.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable().optional(),responsibleDoer:L.string().min(1).nullable().optional(),destination:L.enum(et).nullable().optional(),tags:L.array(L.enum(wt)).optional(),pbiTags:L.array(L.enum(fr)).optional(),theme:L.string().trim().min(1).max(80).nullable().optional(),attachments:L.array(Sg).max(10).optional(),recordBackgroun
44d:L.string().nullable().optional(),source:L.enum(_g).nullable().optional()}).refine(e=>Object.keys(e).length>0,{message:"At least one field must be provided"});L.object({subscribed:L.boolean().optional(),pendingFlagUntil:L.iso.datetime().nullable().optional()}).refine(e=>e.subscribed!==void 0||e.pendingFlagUntil!==void 0,{message:"At least one pending mark must be provided"});const PJ=L.object({text:L.string()});L.object({text:L.string().trim().min(1).max(5e3),destination:L.enum(et).optional(),dueDate:L.string().regex(/^\d{4}-\d{2}-\d{2}$/u,"Expected YYYY-MM-DD").optional(),responsibleDoer:L.string().trim().min(1).optional(),autoSubmit:L.boolean()});L.object({id:L.string()});Z2.omit({kind:!0}).partial().extend({responsibleDoer:ba.nullable().optional(),authority:ba.nullable().optional(),supportHelper:L.array(ba).optional(),tigerTeam:L.array(ba).optional()});L.object({ids:L.array(L.string().trim().min(1)).min(1)});const TI={RECENT:"RECENT",TOP_SCORE:"TOP_SCORE"},II={AGENT:"agent",SEARCH:"search"},DJ=v({speaker_name:m().trim().min(1),text:m(),start_time:j(),end_time:j()}).strict(),eL=v({id:m().trim().min(1),transcriptId:m().trim().min(1),start_time:j(),end_time:j(),windowText:m().nullable().default(null),transcriptName:m().nullable().default(null),transcriptDate:m().nullable().default(null),windowSpeakerName:m().nullable().default(null),sentences:N(DJ),_score:j().nullable().default(null)}).strict(),OJ=N(eL),RJ=v({query:m().trim().min(1),mode:R([II.AGENT,II.SEARCH]).optional(),transcriptId:m().trim().min(1).optional(),limit:Fn().int().min(1).max(200).optional(),minScore:Fn().min(0).optional(),numCandidates:Fn().int().min(1).max(5e3).optional(),meetingOrder:R([TI.RECENT,TI.TOP_SCORE]).optional()}).strict(),MJ=v({question:m().trim().min(1)}).strict(),jJ=v({answer:m(),confidencePct:j().int().min(0).max(100),sources:N(eL)}).strict();v({answer:m(),confidencePct:j()}).strict();const Ts=["core","command_center","meetings","schedules","points","luna","fde"],T_={"platform.manage_orgs":"core","platform.configure_modules":"core","platform.view_billing_all":"core","platform.view_isolation_report":"core","platform.view_sharing_ledger":"core","platform.activate_god_mode":"core","platform.impersonate":"core","org.view_members":"core","org.manage_members":"core","org.manage_member_capabilities":"core","org.manage_audiences":"core","org.configure_modules":"core","org.view_billing":"core","org.view_usage":"core","org.view_all_records":"core","org.view_representative":"core","record.share_external":"core","search.global":"core","people.manage_identities":"core","people.merge":"core","tags.use":"core","automations.use":"core","corner.read":"core","corner.publish":"core","command_center.view":"command_center","command_center.create_item":"command_center","command_center.edit":"command_center","command_center.submit_to_sheet":"command_center","command_center.manage_destinations":"command_center","command_center.manage_destination_access":"command_center","meetings.view":"meetings","meetings.set_private":"meetings","meetings.comment":"meetings","meetings.clip":"meetings","meetings.send_notetaker":"meetings","meetings.hide_own":"meetings","meetings.manage_audience":"meetings","meetings.view_deleted":"meetings","meetings.nuke":"meetings","meetings.view_redacted":"meetings","meetings.redact":"meetings","meetings.copy_transcripts_bulk":"meetings","meetings.copy_transcripts_unpaused":"meetings","live.view":"meetings","live.edit_board":"meetings","live.send_recap":"meetings","schedules.view":"schedules","schedules.edit":"schedules","schedules.lock":"schedules","schedules.run_mirror":"schedules","points.view_leaderboard":"points","points.view_audit":"points","luna.ask":"luna","fde.read":"fde","fde.view_access_log":"fde"},_o=Object.keys(T_),tL=e=>T_[e],nL=["short","long","short-2y","day-short","us-slash","us-slash-2y","eu-slash","eu-slash-2y","eu-dot-2y","iso"],rL=R(nL),oL=v({responsibleDoer:m().trim().min(1).nullable().default(null),dueDateOffset:j().int().min(0).nullable().default(null),destination:R(et).nullable().default(null),monthFormat:rL.optional().catch(void 0)});v({responsibleDoer:m().trim().min(1).nullable().optional(),dueDateOffset:j().int().min(0).nullable().optional(),destination:R(et).nullable().optional(),monthFormat:rL.optional()}).strict();const iL=m().regex(/^[A-Za-z0-9_-]{1,64}$/,"Expected a dashboard profile id"),aL=v({lastSeenByProfile:jt(iL,An()).default({}).catch({}
44),tourDismissedAt:An().nullable().default(null).catch(null)});v({lastSeenByProfile:jt(iL,An()),tourDismissedAt:An()}).partial().strict();const fMe="everything",Ur={TRIAGE:"TRIAGE",ACTION_LOGS:"ACTION_LOGS"},I_=v({workspace:R(Ur).default(Ur.TRIAGE),destination:R(et).nullable().default(null),responsibleDoer:m().trim().min(1).nullable().default(null),dueDateOffset:j().int().min(0).nullable().default(null)});I_.refine(e=>e.workspace!==Ur.ACTION_LOGS||e.destination!==null,{message:"Pick a destination action log — Action Logs skips triage, so there is no one to choose it later",path:["destination"]});v({workspace:R(Ur).optional(),destination:R(et).nullable().optional(),responsibleDoer:m().trim().min(1).nullable().optional(),dueDateOffset:j().int().min(0).nullable().optional()}).strict();const $J=["/meetings","/pulse","/command-center","/schedules","/shopfloor","/action-logs","/raid-logs","/raid-analytics","/review-meetings","/dashboard","/luniko-button","/scratch-pad","/global-search","/users","/luna"],sL=R($J),lL=v({defaultScreen:sL.nullable().catch(null)});v({defaultScreen:sL.nullable()}).strict();const LJ=["hover","always"],Cp=R(LJ),Eu={tableActions:"hover",gridActions:"always"},cL=v({tableActions:Cp.default(Eu.tableActions).catch(Eu.tableActions),gridActions:Cp.default(Eu.gridActions).catch(Eu.gridActions)});v({tableActions:Cp,gridActions:Cp}).partial().strict();const vm={hideHeroVideo:!1,useCatchUpV2:!0},zJ=v({hideHeroVideo:te().default(vm.hideHeroVideo).catch(vm.hideHeroVideo),useCatchUpV2:te().default(vm.useCatchUpV2).catch(vm.useCatchUpV2)});v({hideHeroVideo:te(),useCatchUpV2:te()}).partial().strict();const Np={leaderboardOptOut:!1},uL=v({leaderboardOptOut:te().default(Np.leaderboardOptOut).catch(Np.leaderboardOptOut)});v({leaderboardOptOut:te()}).partial().strict();const UJ=e=>e?.leaderboardOptOut??Np.leaderboardOptOut,FJ=["en","es","fr","pa","bn","nl","de","zh"],E_=R(FJ),dL=v({language:E_.nullable().catch(null)});v({language:E_.nullable()}).strict();v({language:E_.nullish()});const gMe=["following","mentions","shared","meetingReview","reminders","automations","housekeeping","security"],WJ={following:"Following",mentions:"Mentions and replies",shared:"Shared with you",meetingReview:"Assigned to you",reminders:"Your reminders",automations:"Automations",housekeeping:"Housekeeping",security:"Security"},yMe=e=>{switch(e.type){case"entity_change":return"following";case"schedule_comment_mention":case"pulse_comment_mention":case"pulse_comment_reply":case"action_item_note_mention":return"mentions";case"scratch_pad_note_sent":case"mind_map_sent":case"meeting_shared":case"live_meeting_shared":return"shared";case"meeting_assigned":case"meeting_redaction_suggested":case"action_item_assigned":return"meetingReview";case"reminder_due":case"meeting_heads_up":return"reminders";case"automation_ready":case"daily_brief_ready":return"automations";
44case"mind_map_items_queued":return"housekeeping";case"firefight_activated":return"security";case"notification_batch":return e.section}},hL=Bn("mode",[v({mode:we("instant")}),v({mode:we("batched"),rule:m().trim().min(1).max(500)})]),os=v({enabled:te().default(!0),channels:v({desktop:te().optional(),phone:te().optional()}).prefault({}),delivery:hL.optional()}),BJ=v({following:os.prefault({}),mentions:os.prefault({}),shared:os.prefault({}),meetingReview:os.prefault({}),reminders:os.prefault({}),automations:os.prefault({}),housekeeping:os.prefault({})}),mL=v({categories:BJ.prefault({})}),Jm=v({enabled:te().optional(),channels:v({desktop:te().optional(),phone:te().optional()}).strict().optional()}).strict(),km=Jm.extend({delivery:hL.optional()}).strict();v({categories:v({following:km.optional(),mentions:km.optional(),shared:km.optional(),meetingReview:km.optional(),reminders:Jm.optional(),automations:Jm.optional(),housekeeping:Jm.optional()}).strict().optional()}).strict();const HJ=["meeting","raidEntry","clip","comment"],pL=v({entityType:R(HJ),entityId:m().trim().min(1)}),A_=e=>`${e.entityType}:${e.entityId}`,md=["like","joy","trust","fear","surprise","sadness","disgust","anger","anticipation"],qJ={like:"Like",joy:"Joy",trust:"Trust",fear:"Fear",surprise:"Surprise",sadness:"Sadness",disgust:"Disgust",anger:"Anger",anticipation:"Anticipation"},pd={like:"👍",joy:"😀",trust:"🤝",fear:"😨",surprise:"😲",sadness:"😢",disgust:"🤢",anger:"😠",anticipation:"🤔"},VJ=e=>qJ[e],bMe=e=>pd[e],fL=e=>md.includes(e),Pp="like",KJ=md.filter(e=>e!==Pp),gL=In([v({kind:we("emoji"),glyph:m().min(1)}),v({kind:we("image"),storageKey:m().min(1)})]),yL=jt(m(),In([m(),gL])),GJ=e=>e===void 0?null:typeof e=="string"?e===""?null:{kind:"emoji",glyph:e}:e,Dp=e=>e.kind==="emoji"?e.glyph:null,EI=16;v({glyphs:jt(m(),In([m(),gL]))}).strict().superRefine(({glyphs:e},t)=>{for(const[n,r]of Object.entries(e)){const o=typeof r=="string"?r:Dp(r);fL(n)?n===Pp&&t.addIssue({code:Tu.custom,message:"Like always renders as a standard thumbs-up",path:["glyphs",n]}):t.addIssue({code:Tu.custom,message:`Unknown emotion: ${n}`,path:["glyphs",n]}),!(o===null||o==="")&&((/\s/.test(o)||/[\u0000-\u001f\u007f]/.test(o))&&t.addIssue({code:Tu.custom,message:"Glyph cannot contain whitespace or control characters",path:["glyphs",n]}),[...o].length>EI&&t.addIssue({code:Tu.custom,message:`Glyph is too long (max ${String(EI)} code points)`,path:["glyphs",n]}))}});const YJ=(e,t)=>{if(t===Pp)return{kind:"emoji",glyph:pd[Pp]};const n=GJ(e?.[t]);return n||{kind:"emoji",glyph:fL(t)?pd[t]:"•"}};pL.extend({emotion:R(md)});const ZJ=v({emotion:m().min(1),count:j().int().nonnegative(),mine:te(),reactors:N(m()).default([])}),bL=v({reactions:N(ZJ)}),wL=100;v({refs:N(pL).max(wL)});const JJ=v({urls:jt(m(),m())}),QJ=v({entities:jt(m(),bL)}),AI=e=>{const t=md.indexOf(e);return t===-1?md.length:t},gb=e=>[...e].sort((t,n)=>n.count-t.count||AI(t.emotion)-AI(n.emotion)),XJ=(e,t)=>e?.reactions.some(n=>n.emotion===t&&n.mine)??!1,eQ=(e,t,n)=>{const r=e?.reactions??[];if(XJ(e,t)===n)return{reactions:gb(r)};const o=r.flatMap(a=>{if(!a.mine)return[a];if(!n&&a.emotion!==t)return[a];const s=a.count-1;return s>0?[{...a,count:s,mine:!1}]:[]});if(!n)return{reactions:gb(o)};const i=o.find(a=>a.emotion===t);return{reactions:gb(i?o.map(a=>a.emotion===t?{...a,count:a.count+1,mine:!0}:a):[...o,{emotion:t,count:1,mine:!0,reactors:[]}])}},tQ=20,nQ=40,ra=N(m()).catch([]),rQ=["count","condensed","full"],oQ=v({mode:R(["day","workWeek","week","month"]).catch("week"),allDay:R(rQ).catch("condensed"),view:R(["grid","agenda"]).catch("grid"),agendaGroup:R(["day","type"]).catch("day"),agendaLayout:R(["board","list"]).catch("board"),saved:ra,meetings:v({shown:te().catch(!0),personIds:ra,me:ra,customers:ra}),actions:v({shown:te().catch(!0),destination:ra,status:ra,tags:ra,pbiTags:ra})}),vL=v({id:m().min(1),name:m().trim().min(1).max(nQ),snapshot:oQ}),C_=v({profiles:N(vL),startupId:m().nullable().catch(null)});C_.extend({profiles:N(vL).max(tQ),startupId:m().nullable()}).strict().refine(e=>e.startupId===null||e.profiles.some(t=>t.id===e.startupId),{message:"startupId must name one of the profiles"}).refine(e=>new Set(e.profiles.map(t=>
44t.id)).size===e.profiles.length,{message:"Profile ids must be unique"});const ql=m().trim().nullish().transform(e=>e==null?null:e.length>0?e:null),kL=Bd().trim().toLowerCase().nullish().transform(e=>e??null),xL=An().nullish().transform(e=>e??null),yb=e=>N(bn()).default([]).transform(t=>t.filter(n=>e.includes(n))),CI=v({auth0SubId:m().trim().min(1),personId:m().trim().min(1),email:kL,emailVerified:te(),name:ql,nickname:ql,pictureUrl:ql,auth0UpdatedAt:xL,hasCompletedOnboarding:te(),orgId:m().trim().min(1),capabilities:yb(_o),transcriptCopyPausedAt:ue().nullable().default(null).catch(null),usableModules:yb(Ts),entitledModules:yb(Ts),audienceKeys:N(m()).default([]),sheetKeys:N(m()).default([]),orgActionDestinations:N(m()).nullable().default(null),lastLoginAt:ue(),createdAt:ue(),updatedAt:ue(),commandCenterDefaults:oL.nullable().default(null),landingDefaults:lL.nullable().default(null).catch(null),meetingDisplayDefaults:cL.nullable().default(null).catch(null),pulseDisplayDefaults:zJ.nullable().default(null).catch(null),dictationDefaults:dL.nullable().default(null).catch(null),pointsDefaults:uL.nullable().default(null).catch(null),emailIngestionDefaults:I_.nullable().default(null),notificationPreferences:mL.nullable().default(null),reactionGlyphs:yL.nullable().default(null).catch(null),dashboardState:aL.nullable().default(null).catch(null),calendarProfiles:C_.nullable().optional().catch(null),timeZone:m().nullable().optional().catch(null)}),iQ=v({email:kL,emailVerified:te().nullish().transform(e=>e??!1),name:ql,nickname:ql,pictureUrl:ql,auth0UpdatedAt:xL}).strict(),aQ=7,_L=1440*60*1e3,SL=(e,t)=>{const n=new Intl.DateTimeFormat("en-CA",{timeZone:t,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r=o=>Number(n.find(i=>i.type===o)?.value);return{year:r("year"),month:r("month"),day:r("day"),hour:r("hour"),minute:r("minute"),second:r("second")}},NI=(e,t)=>{const{year:n,month:r,day:o,hour:i,minute:a,second:s}=SL(e,t);return Date.UTC(n,r-1,o,i,a,s)-e.getTime()},PI=e=>String(e).padStart(2,"0"),Cg=({year:e,month:t,day:n})=>`${String(e)}-${PI(t)}-${PI(n)}`,Ng=e=>{const[t,n,r]=e.split("-").map(Number);return{year:t,month:n,day:r}},TL=e=>{const t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate()}},DI=(e,t)=>{const{year:n,month:r,day:o}=Ng(e),i=Date.UTC(n,r-1,o),a=i-NI(new Date(i),t);return new Date(i-NI(new Date(a),t))},sQ=e=>{const{year:t,month:n,day:r}=Ng(e),o=Date.UTC(t,n-1,r);return Cg(TL(o-new Date(o).getUTCDay()*_L))},wMe=(e,t)=>{const{year:n,month:r,day:o}=SL(e,t);return sQ(Cg({year:n,month:r,day:o}))},vMe=(e,t)=>({start:DI(e,t),end:DI(lQ(e),t)}),kMe=e=>EL(e,-1),lQ=e=>EL(e,1),IL=e=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;const{year:t,month:n,day:r}=Ng(e),o=new Date(Date.UTC(t,n-1,r));return Cg({year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate()})===e},EL=(e,t)=>{const{year:n,month:r,day:o}=Ng(e);return Cg(TL(Date.UTC(n,r-1,o)+t*aQ*_L))},N_=["SUBMISSION","TASK_COMPLETED","RECORD_EDITED","ITEM_SHARED","MEETING_SHARED","SCRATCH_PAD_CREATED","MIND_MAP_CREATED","LOGIN","PULSE_SEE_MORE","PULSE_ITEM_SEEN","MEETING_VIEWED","TRANSCRIPT_DOWNLOADED","LIVE_TRANSCRIPT_COPIED","EMAIL_SUBMISSION","MEETING_SUMMARY_SENT","MEETING_SCHEDULED","MEETING_SAFETY_MARKED","MEETING_PREPPED","CALENDAR_CONNECTED","COMMENT_POSTED","REACTION_ADDED","BOOKMARK_ADDED","BOOKMARK_USED","ACCOUNTABILITY_DASHBOARD_VIEWED","LEADERBOARD_VIEWED","APP_MINUTE"],cQ=864e5,uQ=["ITEM_SHARED","MEETING_SHARED","BOOKMARK_USED","PULSE_SEE_MORE","MEETING_VIEWED","TRANSCRIPT_DOWNLOADED","LIVE_TRANSCRIPT_COPIED","MEETING_SUMMARY_SENT","MEETING_SCHEDULED","LEADERBOARD_VIEWED","APP_MINUTE"],dQ=["LEADERBOARD_VIEWED","APP_MINUTE"],hQ=[],mQ=new Set(dQ);new Set(hQ);const pQ=e=>mQ.has(e);v({type:R(uQ),refId:m().trim().min(1).optional(),ms:j().int().nonnegative().max(cQ).optional(),day:m().trim().refine(IL,"Expected YYYY-MM-DD").optional()}).refine(e=>pQ(e.type)||!!e.refId,{message:"refId is required for this event type",path:["refId"]});const fQ=v({awarded:te()});v({limit:Fn().int().min(1).max(100).default(50),before:m().trim().min(1).optional(),type:R(N_).optional()});const gQ=v({id:m().trim().min(1),userId:m().trim().min(1),email:m().trim().toLowerCase().nullable(),name:m().trim().nullable(),type:R(N_),points:j(),refId:m().nullable(),recordLabel:m().nullable(),source:m().nullable(),createdAt:m().trim().min(1)}),yQ=v({entries:N(gQ),nextCursor:m().nullable()}),Pg=e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch{return!1}},bQ=["weekly","all-time"];v({period:R(bQ).default("weekly"),timezone:m().trim().default("UTC").refine(Pg,"Unknown IANA timezone"),weekStart:m().trim().refine(IL,"Expected YYYY-MM-DD").optional()});const wQ=v({source:m().nullable(),points:j()}),vQ=v({userId:m().trim().min(1),email:m().trim().toLowerCase().nullable(),name:m().trim().nullable(),points:j().nonnegative(),pointsChange:j().nullable(),sourceBreakdown:N(wQ)}),kQ=v({points:j().nonnegative(),pointsChange:j().nullable(),recordPoints:j().nonnegative().nullable(),recordWeekStart:m().nullable()}),xQ=v({entries:N(vQ),totals:kQ}),xMe="2026-07-09",_Me=e=>Math.round(e*100)/100,SMe=e=>e<=0?0:e<5?1:e<13?2:e<=25?3:e<=100?4:5;v({timezone:m().trim().default("UTC").refine(Pg,"Unknown IANA timezone"),userId:m().trim().min(1).optional()});const _Q=v({date:m(),points:j()}),SQ=v({timezone:m(),days:N(_Q)}),TQ=["remind_send_summary","review_nudge","daily_brief","remind_item","meeting_heads_up","mind_map_queue_reminder","notification_batch"],IQ=["active","paused","ended"],EQ=["scheduled","running","awaiting_you","done","skipped","failed"],AQ=Bn("kind",[v({kind:we("occurrence"),stableOccurrenceId:m().trim().min(1)}),v({kind:we("series"),seriesId:m().trim().min(1)})]),AL=10080,CQ=1440,CL={scope:AQ},NL=v({kind:we("meeting_end"),offsetMinutes:j().int().min(0).max(AL),...CL}),PL=v({kind:we("meeting_start"),offsetMinutes:j().int().min(1).max(CQ),...CL}),DL=v({freq:we("once"),at:ue()}),OL=v({freq:we("rrule"),rule:m().trim().min(1).max(500)}),NQ=Bn("freq",[DL,OL]),uv=v({kind:we("schedule"),recurrence:NQ,timeZone:m().trim().min(1).refine(Pg,"Unknown time zone")}),PQ=Bn("kind",[NL,PL,uv]),P_=["action_item","raid_entry"],DQ=v({type:R(P_),id:m().trim().min(1)}),RL=v({kind:we("remind_item"),subject:DQ}),OQ=v({kind:we("mind_map_queue_reminder"),subject:v({type:we("mind_map"),id:m().trim().min(1)})}),RQ=v({kind:we("notification_batch"),subject:v({type:we("notification_section"),id:m().trim().min(1)})}),MQ=Bn("kind",[v({kind:we("remind_send_summary")}
44),v({kind:we("review_nudge")}),v({kind:we("daily_brief")}),RL,v({kind:we("meeting_heads_up")}),OQ,RQ]),Au=v({title:m().trim().min(1),startsAt:ue().nullable()}),jQ=v({type:R(["meeting","occurrence","mind_map","notification_section",...P_]),id:m()}),$Q=v({id:m(),automationId:m(),subject:jQ.nullable(),title:m(),dueAt:ue(),status:R(EQ),notifiedAt:ue().nullable(),completedAt:ue().nullable(),skipReason:m().nullable(),createdAt:ue()}),dv=v({id:m(),ownerId:m(),trigger:PQ,action:MQ,label:Au,status:R(IQ),runs:N($Q).default([]),createdAt:ue(),updatedAt:ue()}),OI=R(["active","paused"]).optional();In([v({trigger:NL,action:v({kind:R(["remind_send_summary","review_nudge"])}),label:Au,status:OI}),v({trigger:PL,action:v({kind:we("meeting_heads_up")}),label:Au,status:OI}),v({trigger:uv.extend({recurrence:OL}),action:v({kind:we("daily_brief")}),label:Au}),v({trigger:uv.extend({recurrence:DL}),action:RL,label:Au})]);const LQ=v({items:N(dv)});v({status:R(["active","paused"])});const zQ=v({title:m(),startTime:ue(),endTime:ue().nullable(),isAllDay:te(),joinUrl:m().nullable(),notetakerBooked:te()}),UQ=v({status:R(["ok","not_connected","unavailable"]),items:N(zQ)}),FQ=v({meetingId:m(),title:m(),recordedAt:ue().nullable(),reason:R(["review","send_summary"])}),xm=v({id:m(),title:m(),dueDate:Cr,destination:m().nullable()}),su=e=>v({items:N(e),total:j().int().nonnegative()}),WQ=v({date:Cr,timeZone:m(),meetings:UQ,attention:su(FQ),actionItems:v({dueToday:su(xm),overdue:su(xm)}),raids:v({dueToday:su(xm),overdue:su(xm)})}),BQ=v({meetingCount:j().int().nonnegative(),attentionCount:j().int().nonnegative(),actionsDueToday:j().int().nonnegative(),actionsOverdue:j().int().nonnegative(),raidsDueToday:j().int().nonnegative(),raidsOverdue:j().int().nonnegative()}),TMe=e=>({meetingCount:e.meetings.items.length,attentionCount:e.attention.total,actionsDueToday:e.actionItems.dueToday.total,actionsOverdue:e.actionItems.overdue.total,raidsDueToday:e.raids.dueToday.total,raidsOverdue:e.raids.overdue.total}),IMe=e=>Object.values(e).every(t=>t===0),HQ=Bn("kind",[v({kind:we("person"),personId:m().min(1)}),v({kind:we("agent"),agentId:we("luna")})]),ML=/@\[(person|agent):([A-Za-z0-9_-]+)\]/g,jL=(e,t)=>e==="person"?{kind:"person",personId:t}:e==="agent"&&t==="luna"?{kind:"agent",agentId:t}:null,$L=e=>e.kind==="person"?`person:${e.personId}`:`agent:${e.agentId}`,qQ=e=>`@[${$L(e)}]`,EMe=e=>{const t=new Set,n=[];for(const[,r,o]of e.matchAll(ML)){const i=jL(r,o);if(!i)continue;const a=$L(i);t.has(a)||(t.add(a),n.push(i))}return n},VQ=(e,t)=>{const n=[];let r=0;for(const o of e.matchAll(ML)){const i=jL(o[1],o[2]);!i||o.index===void 0||(o.index>r&&n.push({kind:"text",text:e.slice(r,o.index)}),n.push({kind:"mention",text:`@${t(i)??"someone"}`,mention:i}),r=o.index+o[0].length)}return r<e.length&&n.push({kind:"text",text:e.slice(r)}),n},AMe=(e,t)=>{const n=e.slice(0,t),r=n.lastIndexOf("@");if(r===-1)return null;const o=r>0?n[r-1]:" ";if(r!==0&&o!==" "&&o!==`
45`)return null;const i=n.slice(r+1);return i.includes(" ")&&i.length>20||i.includes(`
46`)?null:{query:i,startPos:r}},CMe=(e,t,n,r)=>{const o=e.slice(0,t.startPos),i=e.slice(n),a=`@${r} `;return{text:`${o}${a}${i}`,cursor:o.length+a.length}},NMe=(e,t)=>{let n="",r=0;for(const o of KQ(e,t))n+=e.slice(r,o.start)+qQ(o.target),r=o.end;return n+e.slice(r)},KQ=(e,t)=>{const n=[],r=new Map,o=[...t].sort((i,a)=>a.displayName.length-i.displayName.length);for(const i of o){const a=`@${i.displayName}`;let s=r.get(a)??0;for(;;){const l=YQ(e,a,s);if(l===-1)break;const c=l+a.length;if(!n.some(d=>l<d.end&&c>d.start)){n.push({start:l,end:c,target:i.target}),r.set(a,c);break}s=l+1}}return n.sort((i,a)=>i.start-a.start)},GQ=/[\p{L}\p{N}]/u,YQ=(e,t,n)=>{for(let r=n;r<=e.length;){const o=e.indexOf(t,r);if(o===-1)return-1;const i=e[o+t.length];if(i===void 0||!GQ.test(i))return o;r=o+1}return-1},PMe=(e,t)=>{const n=VQ(e,t),r=[];for(const o of n)o.kind==="mention"&&r.push({target:o.mention,displayName:o.text.slice(1)});return{text:n.map(o=>o.text).join(""),tracked:r}},hv=e=>e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase().replace(/['’]/g,"").replace(/[^\p{L}\p{N}]+/gu," ").trim(),mv=e=>e.length===0?[]:e.split(" "),ZQ=(e,t,n)=>{const r=hv(e.normalizedName??e.name),o=hv(e.email??""),i=mv(r),a=mv(o);return r.startsWith(t)?0:i.some(s=>s.startsWith(t))?1:a.some(s=>s.startsWith(t))?2:n.length>1&&JQ(n,[...i,...a])?3:r.includes(t)?4:o.includes(t)?5:null},JQ=(e,t)=>{const n=[...t];for(const r of e){const o=n.findIndex(i=>i.startsWith(r));if(o===-1)return!1;n.splice(o,1)}return!0},DMe=(e,t,n)=>{const r=hv(t);if(r.length===0)return{shown:e.slice(0,n),hidden:Math.max(0,e.length-n)};const o=mv(r),i=[];for(const a of e){const s=ZQ(a,r,o);s!==null&&i.push({candidate:a,score:s})}return i.sort((a,s)=>a.score-s.score||a.candidate.name.localeCompare(s.candidate.name)),{shown:i.slice(0,n).map(a=>a.candidate),hidden:Math.max(0,i.length-n)}},Dg=["meeting","raidEntry","clip"],D_=v({entityType:R(Dg),entity
46Id:m().trim().min(1)}),OMe=e=>`${e.entityType}:${e.entityId}`,LL=4e3,O_=v({id:m().trim().min(1),url:Tn(),stillUrl:Tn(),width:j().int().positive(),height:j().int().positive(),title:m().max(200)});v({q:m().trim().min(1).max(100),limit:Fn().int().positive().max(50).optional()});const RI=v({items:N(O_)}),zL=100,QQ=Bn("kind",[v({kind:we("person"),personId:m().min(1)}),v({kind:we("agent"),agentId:we("luna")})]),pv=v({id:m().min(1),entityType:R(Dg),entityId:m().min(1),author:QQ,body:m().min(1),media:O_.nullable().default(null),mentions:N(HQ),parentId:m().nullable().default(null),replyCount:j().int().nonnegative().default(0),createdAt:ue(),updatedAt:ue(),editedAt:ue().nullable().default(null),deletedAt:ue().nullable().default(null)});D_.extend({body:m().trim().max(LL).optional(),media:O_.optional(),parentId:m().trim().min(1).optional()}).refine(e=>!!e.body||e.media!==void 0,{message:"A comment needs a body or a GIF",path:["body"]});v({body:m().trim().min(1).max(LL)});D_.extend({cursor:m().trim().min(1).optional(),parentId:m().trim().min(1).optional()});const XQ=v({items:N(pv),nextCursor:m().nullable().default(null)});v({refs:N(D_).max(zL)});const eX=v({entities:jt(m(),v({count:j().int().nonnegative()}))}),tX=v({personIds:N(m()),luna:te().default(!1)}),RMe=(e,t)=>{if(!t)return e;const n=new Set(t.personIds);return e.filter(r=>n.has(r.id))},nX=v({type:we("meeting_assigned"),meetingId:m().min(1),meetingTitle:m(),assignerAuth0UserId:m().min(1),assignerName:m().nullable().default(null),message:m().nullable().optional()}).strict(),rX=v({type:we("meeting_shared"),meetingId:m().min(1),meetingTitle:m(),sharerAuth0UserId:m().min(1),sharerName:m().nullable().default(null),message:m().nullable().default(null)}).strict(),oX=v({type:we("live_meeting_shared"),meetingId:m().min(1),meetingTitle:m(),sharerAuth0UserId:m().min(1),sharerName:m().nullable().default(null),message:m().nullable().default(null)}).strict(),iX=v({type:we("schedule_comment_mention"),scheduleId:m().min(1),taskId:m().min(1),taskTitle:m(),commentAuthorName:m(),commentPreview:m()}).strict(),aX=v({type:we("pulse_comment_mention"),entityType:R(Dg),entityId:m().min(1),entityTitle:m(),commentAuthorName:m(),commentPreview:m()}).strict(),sX=v({type:we("pulse_comment_reply"),entityType:R(Dg),entityId:m().min(1),entityTitle:m(),parentCommentId:m().min(1),replyAuthorName:m(),replyPreview:m()}).strict(),lX=v({type:we("action_item_note_mention"),actionItemId:m().min(1),taskName:m(),mentionerName:m().nullable().default(null),notePreview:m()}).strict(),cX=v({type:we("action_item_assigned"),actionItemId:m().min(1),taskName:m(),assignerName:m().nullable().default(null)}).strict(),uX=v({type:we("scratch_pad_note_sent"),noteId:m().min(1),senderAuth0UserId:m().min(1),senderName:m().nullable().default(null),notePreview:m()}).strict(),dX=v({type:we("mind_map_sent"),mindMapId:m().min(1),senderAuth0UserId:m().min(1),senderName:m().nullable().default(null),mapPreview:m()}).strict(),hX=v({type:we("mind_map_items_queued"),mindMapId:m().min(1),mindMapTitle:m(),actionCount:j().int().nonnegative(),raidCount:j().int().nonnegative()}).strict(),mX=["update","delete","restore"],pX=v({type:we("entity_change"),entityType:R(["actionItem","raidEntry","scheduleTask"]),entityId:m().min(1),entityTitle:m().default(""),op:R(mX),changedFields:N(m()).default([]),actorAuth0UserId:m().nullable().default(null),actorName:m().nullable().default(null),occurredAt:ue(),message:m().nullable().default(null),scheduleId:m().nullable().default(null)}).strict(),fX=v({type:we("firefight_activated"),sessionId:m().min(1),scopeKind:R(["org","platform"]),scopeOrgId:m().nullable(),reason:m(),activatedByPersonId:m().min(1),activatedByName:m().nullable().default(null),expiresAt:ue()}).strict(),gX=v({type:we("meeting_redaction_suggested"),meetingId:m().min(1),meetingTitle:m(),redactionId:m().min(1),fromSec:j().min(0),toSec:j().min(0),suggesterAuth0UserId:m().min(1),suggesterName:m().nullable().default(null),live:te().optional()}).strict(),yX=v({type:we("automation_ready"),action:R(TQ),automationId:m().min(1),runId:m().min(1),meetingId:m().min(1),meetingTitle:m(),includedActionCount:j().int().nonnegative().optional(),includedRaidCount:j().int().nonnegative().optional(),unreviewedActionCount:j().int().nonnegative().optional(),unreviewedRaidCount:j().int().nonnegative().optional()}).strict(),bX=v({type:we("daily_brief_ready"),automationId:m().min(1),runI
46d:m().min(1),date:Cr,counts:BQ}).strict(),wX=v({type:we("reminder_due"),automationId:m().min(1),runId:m().min(1),subjectType:R(P_),subjectId:m().min(1),title:m(),dueDate:Cr.nullable()}).strict(),vX=v({type:we("meeting_heads_up"),automationId:m().min(1),runId:m().min(1),title:m(),minutesBefore:j().int().nonnegative(),previousMeetingId:m().min(1).nullable(),openActionCount:j().int().nonnegative(),openRaidCount:j().int().nonnegative()}).strict(),UL=Bn("type",[nX,rX,oX,iX,aX,sX,lX,cX,uX,dX,hX,pX,fX,gX,yX,bX,wX,vX]),FL=["following","mentions","shared","meetingReview"],kX=v({key:m().min(1),data:UL,at:ue(),readAt:ue().nullable().default(null)}),WL=e=>[...e].sort((t,n)=>n.at.getTime()-t.at.getTime()),xX=v({type:we("notification_batch"),section:R(FL),items:N(kX).min(1)}).strict(),_X=Bn("type",[...UL.options,xX]),BL=v({id:m().min(1),recipientAuth0UserId:m().min(1),data:_X,createdAt:ue(),readAt:ue().nullable()});v({before:m().trim().min(1).optional(),limit:Fn().int().min(1).max(100).optional()});const SX=v({items:N(bn()).transform(e=>e.flatMap(t=>{const n=BL.safeParse(t);return n.success?[n.data]:[]})),nextCursor:m().nullable().default(null)});v({notificationId:m().trim().min(1)});const TX={taskName:"task name",additionalNote:"note",dueDate:"due date",responsibleDoer:"responsible doer",done:"done status",status:"status",destination:"destination",title:"title",type:"type",detail:"detail",authority:"authority",supportHelper:"support",informed:"informed",potentialImpact:"potential impact",disposition:"disposition",actionNotes:"action notes",submissionState:"status"},IX=e=>TX[e]??e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").toLowerCase(),EX={actionItem:"action item",raidEntry:"RAID entry",scheduleTask:"schedule task"},at=e=>{const t=e?.trim();return t||null},_m=(e,t)=>e?`${String(e)} ${t}${e===1?"":"s"}`:null,MI=(e,t,n)=>{const r=e.filter(o=>o!==null);return r.length>0?`${r.join(" and ")} ${t===1?"is":"are"} ${n}`:null},AX=e=>{const t=MI([_m(e.includedActionCount,"action item"),_m(e.includedRaidCount,"RAID")],(e.includedActionCount??0)+(e.includedRaidCount??0),"included."),n=MI([_m(e.unreviewedActionCount,"action item"),_m(e.unreviewedRaidCount,"RAID")],(e.unreviewedActionCount??0)+(e.unreviewedRaidCount??0),"still unreviewed."),r=at(e.meetingTitle);return{title:r?`"${r}" summary is ready to send`:"Your meeting summary is ready to send",subtitle:[t??"No action items or RAIDs are in it yet.",n].filter(o=>o!==null).join(" "),target:{kind:"meeting",meetingId:e.meetingId,sendSummary:!0}}},CX=e=>{const t=at(e.meetingTitle);return{title:t?`"${t}" is still waiting for your review`:"Your meeting is still waiting for your review",subtitle:null,target:{kind:"meeting",meetingId:e.meetingId}}},NX=e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(new Date(`${e}T12:00:00Z`)),Fo=(e,t)=>`${String(e)} ${t}${e===1?"":"s"}`,jI=(e,t,n)=>e>0&&t>0?`${Fo(e,n)} due, ${String(t)} overdue`:e>0?`${Fo(e,n)} due`:t>0?`${Fo(t,n)} overdue`:null,PX=e=>{const{counts:t}=e,n=[t.meetingCount>0?`${Fo(t.meetingCount,"meeting")} today`:null,t.attentionCount>0?`${Fo(t.attentionCount,"meeting")} waiting on you`:null,jI(t.actionsDueToday,t.actionsOverdue,"action item"),jI(t.raidsDueToday,t.raidsOverdue,"RAID")].filter(r=>r!==null);return{title:"Your daily brief",subtitle:n.length>0?n.join(" · "):null,target:{kind:"dailyBrief",automationId:e.automationId}}},DX=e=>e<60?Fo(e,"minute"):e%60===0?Fo(e/60,"hour"):`about ${Fo(Math.round(e/60),"hour")}`,OX=(e,t)=>{const n=[];return e>0&&n.push(Fo(e,"open action item")),t>0&&n.push(e>0?Fo(t,"RAID"):Fo(t,"open RAID")),n.length>0?n.join(" and "):null},RX=e=>{const t=at(e.title),n=e.minutesBefore>0?`starts in ${DX(e.minutesBefore)}`:"is starting now",r=e.previousMeetingId?OX(e.openActionCount,e.openRaidCount):null;return{title:t?`"${t}" ${n}`:`Your meeting ${n}`,subtitle:r?`${r} from last time`:null,target:e.previousMeetingId?{kind:"meeting",meetingId:e.previousMeetingId}:{kind:"none"}}},MX=e=>{switch(e.subjectType){case"action_item":return{name:"an action item",target:{kind:"actionItem",actionItemId:e.subjectId}};case"raid_entry":return{name:"a RAID",target:{kind:"raidEntry",raidEntryId:e.subjectId}}}},jX=e=>{const{name:t,target:n}=MX(e),r=at(e.title);return{title:`${e.subjectType==="action_item"?"Snooze is up":"Reminder"}: ${r??t}`,subtitle:e.dueDate?`Due ${NX(e.dueDate)}`:null,target:n}},$X=(e,t)=>{if(e.op==="delete")return`deleted the ${t}`;if(e.op==="restore")return`restored the ${t}`;const n=e.changedFields??[];if(n.length===0)return`updated the ${t}`;if(n.length>3)return`updated ${n.length} fields in the ${t}`;const r=n.map(IX).join(", "),o=n.length===1?"field":"fields";return`updated the ${r} ${o} in the ${t}`},LX=e=>{const t=EX[e.entityType],n=at(e.entityTitle);return e.entityType==="scheduleTask"?{title:at(e.message)??`A schedule task changed: "${n??`a ${t}`}"`,subtitle:null,target:e.scheduleId?{kind:"schedule",scheduleId:e.sc
46heduleId}:{kind:"scheduleList"}}:{title:`${at(e.actorName)??"Someone"} ${$X(e,t)}`,subtitle:n,target:e.entityType==="actionItem"?{kind:"actionItem",actionItemId:e.entityId}:{kind:"raidEntry",raidEntryId:e.entityId}}},qu=e=>{switch(e.type){case"meeting_assigned":{const t=at(e.assignerName)??"Someone",n=at(e.meetingTitle)??"a meeting";return{title:`${t} assigned you "${n}" to review`,subtitle:at(e.message),target:{kind:"meeting",meetingId:e.meetingId}}}case"live_meeting_shared":{const t=at(e.meetingTitle)??"A meeting";return{title:`${at(e.sharerName)??"Someone"} shared the live room for "${t}"`,subtitle:at(e.message)??"It is running now — open it to follow along",target:{kind:"liveMeeting",meetingId:e.meetingId}}}case"meeting_shared":{const t=at(e.meetingTitle)??"A meeting";return{title:`${at(e.sharerName)??"Someone"} shared "${t}" with you`,subtitle:at(e.message)??"You can now open the recording and transcript",target:{kind:"meeting",meetingId:e.meetingId}}}case"meeting_redaction_suggested":{const t=at(e.suggesterName)??"Someone",n=at(e.meetingTitle)??"a meeting";return{title:`${t} suggested a redaction in "${n}"`,subtitle:"Review it in the meeting or in Admin → Redactions",target:e.live?{kind:"liveMeeting",meetingId:e.meetingId,redactionId:e.redactionId}:{kind:"meeting",meetingId:e.meetingId,redactionId:e.redactionId}}}case"schedule_comment_mention":{const t=at(e.commentAuthorName)??"Someone",n=at(e.taskTitle)??"a task";return{title:`${t} mentioned you in ${n}`,subtitle:at(e.commentPreview),target:{kind:"scheduleTaskComments",scheduleId:e.scheduleId,taskId:e.taskId,taskTitle:n}}}case"pulse_comment_mention":{const t=at(e.commentAuthorName)??"Someone",n=at(e.entityTitle)??(e.entityType==="meeting"?"a meeting":"a RAID");return{title:`${t} mentioned you in a comment on ${n}`,subtitle:at(e.commentPreview),target:{kind:"pulseComment",entityType:e.entityType,entityId:e.entityId}}}case"pulse_comment_reply":{const t=at(e.replyAuthorName)??"Someone",n=at(e.entityTitle)??(e.entityType==="meeting"?"a meeting":"a RAID");return{title:`${t} replied to your comment on ${n}`,subtitle:at(e.replyPreview),target:{kind:"pulseComment",entityType:e.entityType,entityId:e.entityId}}}case"action_item_note_mention":{const t=at(e.mentionerName)??"Someone",n=at(e.taskName)??"an action item";return{title:`${t} mentioned you on ${n}`,subtitle:at(e.notePreview),target:{kind:"actionItem",actionItemId:e.actionItemId}}}case"action_item_assigned":return{title:`${at(e.assignerName)??"Someone"} assigned you an action item`,subtitle:at(e.taskName),target:{kind:"actionItem",actionItemId:e.actionItemId}};case"scratch_pad_note_sent":return{title:`${at(e.senderName)??"Someone"} sent you a copy of a note`,subtitle:at(e.notePreview),target:{kind:"note",noteId:e.noteId}};case"mind_map_sent":return{title:`${at(e.senderName)??"Someone"} sent you a copy of a mind map`,subtitle:at(e.mapPreview),target:{kind:"mindMap",mindMapId:e.mindMapId}};case"mind_map_items_queued":{const t=e.actionCount+e.raidCount,n=[];return e.actionCount>0&&n.push(`${String(e.actionCount)} action${e.actionCount===1?"":"s"}`),e.raidCount>0&&n.push(`${String(e.raidCount)} RAID item${e.raidCount===1?"":"s"}`),{title:at(e.mindMapTitle)?`You left ${String(t)} item${t===1?"":"s"} queued in "${e.mindMapTitle}"`:`You left ${String(t)} item${t===1?"":"s"} queued in a mind map`,subtitle:`${n.join(" and ")} still to create. Open the map to finish them.`,target:{kind:"mindMap",mindMapId:e.mindMapId}}}case"automation_ready":return e.action==="review_nudge"?CX(e):AX(e);case"daily_brief_ready":return PX(e);case"meeting_heads_up":return RX(e);case"notification_batch":{const[t]=WL(e.items);return{title:UX(e.section,e.items.length),subtitle:t?qu(t.data).title:null,target:{kind:"notificationBatch"}}}case"reminder_due":return jX(e);case"entity_change":return LX(e);case"firefight_activated":{const t=at(e.activatedByName)??"Someone",n=e.scopeKind==="platform"?"platform-wide":`org "${e.scopeOrgId}"`;return{title:`${t} activated emergency access (${n})`,subtitle:at(e.reason),target:{kind:"firefightSession",sessionId:e.sessionId}}}}},zX={following:["update to something you follow","updates to things you follow"],mentions:["mention or reply","mentions and replies"],shared:["item shared with you","items shared with you"],meetingReview:["item assigned to you","items assigned to you"]},UX=(e,t)=>{const[n,r]=zX[e];return`${String(t)} ${t===1?n:r}`},FX=e=>{switch(e){case"following":return{desktop:!0,phone:!1};case"housekeeping":return{desktop:!1,phone:!1};case"mentions":case"shared":case"meetingReview":case"reminders":case"automations":case"security":return{desktop:!0,phone:!0}}},HL=e=>FL.includes(e),WX=e=>e==="following"?{mode:"batched",rule:"FREQ=HOURLY"}:{mode:"instant"},BX=(e,t)=>HL(t)?e?.categories[t].delivery??WX(t):{mode:"instant"},HX=2,qX=v({speakerName:m().trim().min(1),personId:m().trim().min(1).nullable().default(null),text:m().trim().min(1).max(2e3),startSec:j().nonnegative(),endSec:j().nonnegative(),chunkId:m().trim().min(1).nullable().default(null)}),R_=v({id:m().trim().min(1),orgId:m().nullable().optional(),meetingId:m().trim().min(1),meetingTitle:m(),meetingDate:m().nullable().default(null),lines:N(qX).min(1),fromSec:j().nonnegative(),toSec:j().nonnegative(),context:m().trim().max(500).nullable().default(null),grants:N(ja).default([]),grantsSetBy:Tg.default("default"),clippedByPersonId:m().trim().min(1),clippedByName:m(),createdAt:ue()}),MMe=e=>{const[t,...n]=e.lines;if(!t)return!1;const r=t.personId??t.speakerName;return n.every(o=>(o.personId??o.speakerName)===r)},jMe=e=>Math.max(0,e.fromSec-HX);v({grants:N(ja)}).strict();const VX=v({chunkId:m().trim().min(1),text:m().trim().min(1).max(2e3),personId:m().trim().min(1).nullable().default(null)});v({fromSec:j().nonnegative(),toSec:j().nonnegative(),lines:N(VX).min(1).max(20),context:m().trim().max(500).nullable().default(null)});const $I=v({clip:R_});v({since:An().optional(),until:An().optional(),pageSize:Fn().int().min(1).max(100).optional(),meetingId:m().trim().min(1).optional()});v({items:N(R_)});const KX=hd.extend({author:v({personId:m(),name:m().nullable(),avatarUrl:m().nullable()}),updatedAt:An().nullable()}),M_=v({tags:N(R(wt)),showClosed:te()});M_.partial().refine(e=>Object.keys(e).length>0,{message:"At least one board context field must be provided"});const qL=v({name:m().trim().min(1).max(80),sequence:j().int().min(1),defaultTags:N(R(wt)).default([]),defaultDestination:R(et).nullable().default(null)}),VL=v({tags:N(R(wt)).default([]),destination:R(et).nullable().default(null)}),KL=v({themes:N(qL),assignments:jt(m(),m()),defaults:VL.default({tags:[],destination:null})}),GX=m().trim().min(1).max(200).refine(e=>!e.includes(".")&&!e.startsWith("$"),{message:"Item key may not contain '.' or start with '$'"});v({assign:v({itemKeys:N(GX).min(1).max(500),theme:m().trim().min(1).max(80).nullable()}).optional(),retheme:v({from:m().trim().min(1).max(80),to:m().trim().min(1).max(80).nullable()}).optional(),themes:N(qL).max(50).optional(),defaults:VL.optional()}).refine(e=>e.assign!==void 0||e.retheme!==void 0||e.themes!==void 0||e.defaults!==void 0,{message:"Nothing to update"});const YX=v({items:N(KX),submittedActionItems:N(pr),submittedRaidEntries:N(zo),taggedActionItems:N(pr),boardContext:M_,boardGroups:KL,participantEmails:N(m().trim().min(1)).default([]),meetingTitle:m().default("")}
46),ZX=v({items:N(v({item:pr,closedAt:An()}))}),Pc=["actionItem","raidEntry","scheduleTask"],JX=v({entityType:R(Pc),entityId:m().trim().min(1)});JX.extend({notify:te().default(!1)});const QX=v({id:m().min(1),subscriberAuth0UserId:m().min(1),subscriberPersonId:m().nullable(),addedByPersonId:m().nullable(),addedBatchId:m().nullable(),entityType:R(Pc),entityId:m().min(1),notify:te(),createdAt:ue(),ruleId:m().nullable().default(null),followedSince:ue().nullable().default(null)}),XX=v({items:N(QX)});v({entityType:R(Pc).optional()});const eee=["actionItem","raidEntry","scheduleTask"],tee=500,nee=50;v({entityType:R(eee),entityIds:N(m().trim().min(1)).min(1).max(tee),subscriberPersonIds:N(m().trim().min(1)).min(1).max(nee)});v({batchId:m().trim().min(1)});const ree=["no-login","not-found"],oee=v({added:j().int().min(0),alreadyFollowing:j().int().min(0),skipped:N(v({personId:m(),reason:R(ree)})),failed:j().int().min(0),batchId:m().nullable()}),iee=v({removed:j().int().min(0)}),GL=["actionItem","raidEntry"],bb=20,YL=In([te(),Ln()]).optional();I2.pick({destination:!0,type:!0,tags:!0,pbiTags:!0,meetingTrigger:!0,disposition:!0,status:!0,excludeStatus:!0,potentialImpact:!0,hasDueDate:!0,dueDateFrom:!0,dueDateTo:!0,responsibleDoerPersonIds:!0,createdByPersonIds:!0,provenanceChannels:!0}).extend({hasDueDate:YL});T2.pick({destination:!0,status:!0,done:!0,tags:!0,pbiTags:!0,meetingTrigger:!0,dueDateFrom:!0,dueDateTo:!0,responsibleDoerPersonIds:!0,createdByPersonIds:!0,provenanceChannels:!0}).extend({done:YL});const aee=["COMMAND_CENTER","LIVE_BOARD","EMAIL","MOBILE","MIND_MAP","CODEWORD"],fv=v({id:m(),name:m(),entityType:R(GL),filters:jt(m(),bn()),enabled:te(),createdAt:ue(),updatedAt:ue()});v({name:m().trim().min(1).max(80),entityType:R(GL),filters:bn()});v({name:m().trim().min(1).max(80).optional(),enabled:te().optional(),filters:bn().optional()}).refine(e=>Object.keys(e).length>0,{message:"At least one field must be provided"});const see=v({items:N(fv)}),ZL={potentialImpact:[],type:[],status:[],excludeStatus:[],destination:[],tags:[],pbiTags:[],meetingTrigger:[],disposition:[],responsibleDoerPersonIds:[],createdByPersonIds:[],provenanceChannels:[],hasDueDate:null,done:null,dueDateFrom:null,dueDateTo:null},lee="Matches items with any of the selected values.",cee="Excludes items with any of the selected values.",uee="Any leaves this filter off.",Kn=(e,t,n,r,o=lee)=>({kind:"multi",key:e,label:t,chipLabel:n,options:r,caption:o}),LI={kind:"people",key:"responsibleDoerPersonIds",label:"Responsible Doer",chipLabel:"Doer"},zI={kind:"people",key:"createdByPersonIds",label:"Created By",chipLabel:"By"},UI={kind:"dateRange",key:"dueDate",label:"Due Date Range",chipLabel:"Due"};function JL(e,t){return e==="raidEntry"?[Kn("potentialImpact","Potential Impact","Impact",t.impact),Kn("type","Type","Type",t.raidType),Kn("status","Status","Status",t.raidStatus),Kn("excludeStatus","Exclude Status","Not status",t.raidStatus,cee),Kn("destination","Destination","Log",t.raidDestination),Kn("tags","Tags","Tags",t.tags),Kn("pbiTags","PBI Tags","PBI",t.pbiTags),Kn("meetingTrigger","Meeting Trigger","Meeting",t.raidMeetingTrigger),Kn("disposition","Disposition","Disposition",t.disposition),LI,zI,Kn("provenanceChannels","Created From","From",t.provenanceChannel),{kind:"tristate",key:"hasDueDate",label:"Has Due Date",chipLabel:"Has due date"},UI]:[Kn("status","Status","Status",t.actionStatus),{kind:"tristate",key:"done",label:"Done",chipLabel:"Done"},Kn("destination","Destination","Log",t.actionDestination),Kn("tags","Tags","Tags",t.tags),Kn("pbiTags","PBI Tags","PBI",t.pbiTags),Kn("meetingTrigger","Meeting Trigger","Meeting",t.actionMeetingTrigger),LI,zI,Kn("provenanceChannels","Created From","From",t.provenanceChannel),UI]}function Og(e,t){switch(e.kind){case"multi":case"people":return t[e.key].length>0;case"tristate":return t[e.key]!==null;case"dateRange":return t.dueDateFrom!==null||t.dueDateTo!==null}}function dee(e,t){return t.some(n=>Og(n,e))}const no=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],FI=e=>typeof e=="boolean"?e:null,WI=e=>typeof e=="string"?e:null;function QL(e){const t=e.filters;return{potentialImpact:no(t.potentialImpact),type:no(t.type),status:no(t.status),excludeStatus:no(t.excludeStatus),destination:no(t.destination),tags:no(t.tags),pbiTags:no(t.pbiTags),meetingTrigger:no(t.meetingTrigger),disposition:no(t.disposition),responsibleDoerPersonIds:no(t.responsibleDoerPersonIds),createdByPersonIds:no(t.createdByPersonIds),provenanceChannels:no(t.provenanceChannels),hasDueDate:FI(t.hasDueDate),done:FI(t.done),dueDateFrom:WI(t.dueDateFrom),dueDateTo:WI(t.dueDateTo)}}function hee(e,t){const n={};for(const r of t)Og(r,e)&&(r.kind==="dateRange"?(e.dueDateFrom&&(n.dueDateFrom=e.dueDateFrom),e.dueDateTo&&(n.dueDateTo=e.dueDateTo)):n[r.ke
46y]=e[r.key]);return n}const gn=e=>e.length>0?e:void 0;function BI(e){return{potentialImpact:gn(e.potentialImpact),type:gn(e.type),status:gn(e.status),excludeStatus:gn(e.excludeStatus),destination:gn(e.destination),tags:gn(e.tags),pbiTags:gn(e.pbiTags),meetingTrigger:gn(e.meetingTrigger),disposition:gn(e.disposition),responsibleDoerPersonIds:gn(e.responsibleDoerPersonIds),createdByPersonIds:gn(e.createdByPersonIds),provenanceChannels:gn(e.provenanceChannels),hasDueDate:e.hasDueDate??void 0,dueDateFrom:e.dueDateFrom??void 0,dueDateTo:e.dueDateTo??void 0}}function HI(e){return{status:gn(e.status),done:e.done??void 0,destination:gn(e.destination),tags:gn(e.tags),pbiTags:gn(e.pbiTags),meetingTrigger:gn(e.meetingTrigger),responsibleDoerPersonIds:gn(e.responsibleDoerPersonIds),createdByPersonIds:gn(e.createdByPersonIds),provenanceChannels:gn(e.provenanceChannels),dueDateFrom:e.dueDateFrom??void 0,dueDateTo:e.dueDateTo??void 0}}const gv={raidEntry:"RAID Log",actionItem:"Action Item"},mee=80,pee="outside your access",fee={raidEntry:new Set(["destination","potentialImpact","status"]),actionItem:new Set(["destination"])},Rg=["meeting","future_meeting","actionItem","raidEntry","note","mindMap","scheduleTask"];v({entityType:R(Rg),entityId:m().trim().min(1)});const gee=v({id:m(),ownerId:m(),entityType:R(Rg),entityId:m(),relevantUntil:ws(),createdAt:ue()});v({items:N(gee)});v({entityType:R(Rg).optional(),includeFuture:R(["true","false"]).optional().transform(e=>e==="true")});const j_=["gray","red","orange","yellow","green","teal","blue","purple","pink"],yee=40,XL=m().trim().min(1).max(yee),yv=v({id:m(),ownerId:m(),name:m(),color:R(j_),createdAt:ue()});v({name:XL,color:R(j_).default("gray")});v({name:XL.optional(),color:R(j_).optional()}).strict().refine(e=>e.name!==void 0||e.color!==void 0,{message:"Nothing to update"});const bee=v({items:N(yv)}),ez=[...Rg,"meeting_series"],wee="sys:",$Me=["sys:saved"],LMe=e=>e.startsWith(wee),tz=v({entityType:R(ez),entityId:m().trim().min(1)}),nz=tz.extend({tags:N(m()),createdAt:ue(),updatedAt:ue()}),qI=N(m().trim().min(1)).max(50);tz.extend({add:qI.optional(),remove:qI.optional()}).refine(e=>(e.add?.length??0)>0||(e.remove?.length??0)>0,{message:"Nothing to change"});v({entityType:R(ez).optional(),entityIds:m().transform(e=>e.split(",").map(t=>t.trim()).filter(t=>t.length>0)).pipe(N(m()).max(500)).optional()});const vee=v({items:N(nz)});v({tagIds:m().transform(e=>e.split(",").map(t=>t.trim()).filter(t=>t.length>0)).pipe(N(m()).max(100)).optional()});const kee=nz.extend({title:m().nullable(),detail:m().nullable(),description:m().nullable(),source:m().nullable(),entityDate:m().nullable(),durationSeconds:j().nullable()}),xee=v({all:j(),byTag:jt(m(),j())}),_ee=v({items:N(kee),counts:xee}),See=["meeting","raidCreated","raidFinished","clip","aiPost"],Tee=v({eventKey:m().trim().min(1),kind:R(See),sortAt:ue(),meeting:H2.optional(),raid:zo.optional(),clip:R_.optional(),reactions:bL,commentCount:j().int().nonnegative()}),Iee=20;v({lane:R(R2).default("new"),cursor:m().trim().min(1).optional(),limit:Fn().int().min(1).max(Iee).optional(),since:m().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"since must be a valid date"}).transform(e=>new Date(e)).optional(),until:m().min(1).refine(e=>!Number.isNaN(Date.parse(e)),{message:"until must be a valid date"}).transform(e=>new Date(e)).optional()});const Eee=v({items:N(Tee),nextCursor:m().nullable()});v({eventKey:m().trim().min(1)});const Aee=["create","update","delete","restore","bulkInsert","bulkUpdate","bulkDelete"],Cee=v({auth0SubId:m().nullable(),personId:m().nullable(),name:m().nullable()}),Nee=v({title:m().nullable(),destination:m().nullable(),responsibleDoer:m().nullable().optional(),dueDate:m().nullable().optional(),potentialImpact:m().nullable().optional()}),rz=v({id:m().min(1),entityType:R(Pc),entityId:m().nullable(),op:R(Aee),changes:bn().nullable(),deleteReason:m().nullable(),truncated:te().nullable(),actor:Cee,source:m().nullable(),via:m().nullable(),sequence:j(),occurredAt:ue(),subject:Nee.nullable().optional()}),Pee=v({items:N(rz)}
46),Dee=["mine","all"];v({scope:R(Dee),cursor:m().regex(/^[0-9a-fA-F]{24}$/,"cursor must be a 24-character hex id").optional(),limit:Fn().int().min(1).max(100).optional(),entityType:R(Pc).optional(),destination:m().min(1).optional(),personId:m().min(1).optional()});const Oee=v({items:N(rz),nextCursor:m().nullable(),caughtUpTo:m().nullable().optional()}),Ree=50,Mee=["new","seen","all"];v({cursor:m().regex(/^[0-9a-fA-F]{24}$/,"cursor must be a 24-character hex id").optional(),limit:Fn().int().min(1).max(Ree).optional(),since:ue().optional(),until:ue().optional(),entityType:R(Pc).optional(),personId:m().trim().min(1).optional(),lane:R(Mee).default("new")});v({entryId:m().regex(/^[0-9a-fA-F]{24}$/,"entryId must be a 24-character hex id")});const jee=v({auth0SubId:m().min(1),personId:m().min(1),email:m().nullable().default(null),nickname:m().nullable().default(null),pictureUrl:m().nullable().default(null)}).strict(),$ee=v({items:N(jee)}),oz=["email","auth0","entra","fireflies"],Lee=v({kind:R(oz),value:m().trim().toLowerCase().min(1),primary:te().default(!1),isBot:te().default(!1),selfAsserted:te().default(!1)}).strict(),zee=Bn("scope",[v({scope:we("once"),dedupKey:m().min(1)}).strict(),v({scope:we("series"),icalUid:m().min(1)}).strict()]),iz=["all","allowlist","none"],Uee=R(iz),bv=v({mode:Uee.default("all"),titleBlocklist:N(m().trim().toLowerCase().min(1)).default([]),allows:N(zee).default([])}).strict(),Fee={mode:"all",titleBlocklist:[],allows:[]},az="blacklist",sz=e=>`${e.title??""} ${e.description??""}`.toLowerCase().includes(az),Wee=(e,t)=>{if(sz(t))return!1;if(e.titleBlocklist.length>0){const n=(t.title??"").toLowerCase();if(e.titleBlocklist.some(r=>n.includes(r)))return!1}switch(e.mode){case"none":return!1;case"allowlist":return e.allows.some(n=>n.scope==="once"?n.dedupKey===t.dedupKey:t.icalUid!==null&&n.icalUid===t.icalUid);case"all":return!0}},Bee=(e,t)=>{const n=Wee(e,t);if(sz(t))return{record:n,reason:`the word "${az}"`};const r=e.titleBlocklist.find(o=>(t.title??"").toLowerCase().includes(o));return r?{record:n,reason:`keyword "${r}"`}:e.mode==="none"?{record:n,reason:"manual only"}:e.mode==="allowlist"?{record:n,reason:n?"on your allow list":"not on your allow list"}:{record:n,reason:"matches your rule"}},an=v({id:m(),name:m().trim().min(1),normalizedName:m(),email:m().trim().toLowerCase().nullable().default(null),jobTitle:m().nullable().default(null),avatarUrl:m().nullable().default(null),auth0SubId:m().nullable().default(null),entraId:m().nullable().default(null),identities:N(Lee).default([]),audienceKeys:N(m()).default([]),sheetKeys:N(m()).default([]),autoCreatedFromMeetingId:m().nullable().optional(),hidden:te().optional(),likelyDuplicateOf:m().nullable().optional(),meetingHistory:v({from:m().nullable(),source:R(["first_sign_in","admin"]),setAt:m()}).nullable().optional(),recallCalendar:v({calendarId:m(),platformEmail:m().nullable().default(null),status:R(["connecting","connected","disconnected"]),lastSyncedAt:m().nullable().default(null)}).nullable().optional(),recording:bv.nullable().optional(),isManagement:te().default(!1),createdAt:m(),updatedAt:m()}),zMe=e=>[...new Set([...e.email?[e.email]:[],...e.identities.filter(t=>t.kind==="email").map(t=>t.value)])];v({name:m().trim().min(1),email:m().trim().toLowerCase().nullable().default(null),entraId:m().nullable().default(null),autoCreatedFromMeetingId:m().nullable().optional(),jobTitle:m().nullable().default(null),avatarUrl:m().nullable().default(null)});const Hee=v({search:m().trim().min(1).optional(),limit:Fn().int().min(1).max(100).optional(),assignable:Aj().optional()}),$_=e=>!e.hidden&&!e.likelyDuplicateOf;v({name:m().trim().min(1).optional(),jobTitle:m().trim().nullable().optional()}).strict();const qee=v({duplicate:an,keeper:an,references:N(v({collection:m(),path:m(),count:j().int()})),totalReferences:j().int(),movingIdentities:N(v({kind:R(oz),value:m()})),blockers:N(m())}),Vee=v({keeper:an,totalReferences:j().int(),movedIdentities:N(m())}),lz=v({userId:m().min(1)}),cz=v({id:m().min(1),scheduleId:m().min(1),taskId:m().min(1),authorId:m().min(1),body:m().min(1),mentions:N(lz),createdAt:ue(),updatedAt:ue()});v({body:m().trim().min(1),mentions:N(lz).default([])});const Kee=v({items:N(cz),nextCursor:m().nullable().default(null)});v({scheduleId:m().trim().min(1),taskId:m().trim().min(1),commentId:m().trim().min(1)});const Kt=m().regex(/^\d{4}-\d{2}-\d{2}$/),Pa=m().regex(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2})?$/),Gee=v({sheetId:j(),rowId:j()}),L_=v({responsible:N(m()).default([]),accountable:N(m()).max(1).default([]),support:N(m()).default([])}),z_=v({workingWeekdays:N(j().int().min(1).max(7)).min(1,"A schedule needs at least one working weekday").default([1,2,3,4,5]),holidays:N(Kt).default([])}),wv={onTrackTolerance:.03,slightlyBehindTolerance:.1},U_=v({onTrackTolerance:j().min(0).max(1).default(wv.onTrackTolerance),slightlyBehindTolerance:j().min(0).max(1).default(wv.slightlyBehindTolerance)}),wb=v({id:m(),name:m().trim().min(1),status:R(["draft","active","archived"]),timezone:m(),calendar:z_,healthThresholds:U_,displayIdPrefix:m().default(""),nextTaskNumber:j().int().min(1).default(1),defaultActionItemDestination:R(et).nullable().default(null),defaultRaidDestination:R(uo).nullable().default(null),scheduleSmartsheetDestination:R(s_).nullable().default(null),readOnly:te().default(!1),lastSmartsheetSyncAt:m().nullable().default(null),lastSyncError:m().nullable().default(null),lastSyncErrorAt:m().nullable().default(null),createdAt:m(),updatedAt:m()});v({name:m().trim().min(1),status:R(["draft","active","archived"]).default("draft"),timezone:m().default("America/Vancouver"),calendar:z_.default(()=>({workingWeekdays:[1,2,3,4,5],holidays:[]})),healthThresholds:U_.default(()=>({...wv})),displayIdPrefix:m().default(""),nextTaskNumber:j().int().min(1).default(1),defaultActionItemDestination:R(et).nullable().default(null),defaultRaidDestination:R(uo).nullable().default(null),scheduleSmartsheetDestination:R(s_).nullable().default(null)});v({name:m().trim().min(1).optional(),status:R(["draft","active","archived"]).optional(),timezone:m().optional(),calendar:z_.optional(),healthThresholds:U_.optional(),displayIdPrefix:m().optional(),defaultActionItemDestination:R(et).nullable().optional(),defaultRaidDestination:R(uo).nullable().optional(),scheduleSmartsheetDestination:R(s_).nullable().optional(),readOnly:te().optional()});const Yee=v({id:m(),scheduleId:m(),title:m().trim(),notes:m().nullable(),kind:R(["task","
46summary"]),parentId:m().nullable(),sortOrder:j().int(),plannedStart:Pa.nullable(),plannedFinish:Pa.nullable(),baselineStart:Kt.nullable(),baselineFinish:Kt.nullable(),baselineStartOverride:Kt.nullable(),baselineFinishOverride:Kt.nullable(),percentComplete:j().min(0).max(1).nullable(),actualCompletedAt:Kt.nullable(),isFlagged:te(),isKeyActivity:te(),isMajorDate:te(),tags:N(m()).default([]),pbiTags:N(m()).default([]),tigerTeam:m().nullable().default(null),createdBy:m().nullable(),autoId:m().nullable(),sheetDurationDays:j().nullable(),displayNumber:j().int().nullable(),assignments:L_,linkedActionItemIds:N(m()).default([]),linkedRaidEntryIds:N(m()).default([]),smartsheetRef:Gee.nullable().default(null),createdAt:m(),updatedAt:m()});v({title:m().trim().min(1),notes:m().nullable().default(null),kind:R(["task","summary"]).default("task"),parentId:m().nullable().default(null),sortOrder:j().int().default(1e3),plannedStart:Pa.nullable().default(null),plannedFinish:Pa.nullable().default(null),baselineStart:Kt.nullable().default(null),baselineFinish:Kt.nullable().default(null),baselineStartOverride:Kt.nullable().default(null),baselineFinishOverride:Kt.nullable().default(null),percentComplete:j().min(0).max(1).nullable().default(null),actualCompletedAt:Kt.nullable().default(null),isFlagged:te().default(!1),isKeyActivity:te().default(!1),isMajorDate:te().default(!1),tags:N(m()).default([]),pbiTags:N(m()).default([]),tigerTeam:m().nullable().default(null),autoId:m().nullable().default(null),sheetDurationDays:j().nullable().default(null),createdBy:m().nullable().default(null),assignments:L_.default({responsible:[],accountable:[],support:[]}),linkedActionItemIds:N(m()).default([]),linkedRaidEntryIds:N(m()).default([])}).refine(e=>!(e.plannedStart&&e.plannedFinish&&e.plannedStart>e.plannedFinish),{message:"Start date must not be after finish date",path:["plannedStart"]});v({title:m().trim().min(1).optional(),notes:m().nullable().optional(),kind:R(["task","summary"]).optional(),parentId:m().nullable().optional(),sortOrder:j().int().optional(),plannedStart:Pa.nullable().optional(),plannedFinish:Pa.nullable().optional(),baselineStartOverride:Kt.nullable().optional(),baselineFinishOverride:Kt.nullable().optional(),percentComplete:j().min(0).max(1).nullable().optional(),actualCompletedAt:Kt.nullable().optional(),isFlagged:te().optional(),isKeyActivity:te().optional(),isMajorDate:te().optional(),tags:N(m()).optional(),pbiTags:N(m()).optional(),tigerTeam:m().nullable().optional(),assignments:L_.optional(),linkedActionItemIds:N(m()).optional(),linkedRaidEntryIds:N(m()).optional(),durationWorkdays:j().int().min(1).optional(),durationMinutes:j().int().min(1).optional()});const Zee=v({depth:j().int(),displayOrder:j().int(),wbsCode:m().nullable(),effectiveStart:Pa.nullable(),effectiveFinish:Pa.nullable(),effectiveBaselineStart:Kt.nullable(),effectiveBaselineFinish:Kt.nullable(),durationWorkdays:j().int().nullable(),durationMinutes:j().int().nullable(),expectedPercent:j().nullable(),actualPercent:j().nullable(),health:R(["completed","missingDates","milestone","baselineMissing","future","onTrack","slightlyBehind","behind","overdue"]).nullable(),blockedByCount:j().int(),blocksCount:j().int(),earliestAllowedStart:Kt.nullable(),earliestAllowedFinish:Kt.nullable(),controllingDependencyId:m().nullable(),displayId:m().nullable(),predecessorDisplayIds:N(m()).default([]),calculatedAt:m(),calculationVersion:j().int()}),Op=Yee.extend({computed:Zee}),vb=v({id:m(),scheduleId:m(),blockingTaskId:m(),blockedTaskId:m(),relationship:R(["finishToStart","startToStart","finishToFinish","startToFinish"]),lagAmount:j().int(),isActive:te(),createdAt:m(),updatedAt:m()});v({blockingTaskId:m().trim().min(1),blockedTaskId:m().trim().min(1),relationship:R(["finishToStart","startToStart","finishToFinish","startToFinish"]).default("finishToStart"),lagAmount:j().int().default(0),isActive:te().default(!0)});v({relationship:R(["finishToStart","startToStart","finishToFinish","startToFinish"]).optional(),lagAmount:j().int().optional(),isActive:te().optional()});const Jee=v({dependencyId:m(),blockingTaskId:m(),blockingTaskTitle:m(),relationship:R(["finishToStart","startToStart","finishToFinish","startToFinish"]),lagAmount:j().int(),requiredStart:Kt.nullable(),requiredFinish:Kt.nullable(),isControlling:te(),explanation:m()}),Qee=v({taskId:m(),taskTitle:m(),currentStart:Kt.nullable(),currentFinish:Kt.nullable(),earliestAllowedStart:Kt.nullable(),earliestAllowedFinish:Kt.nullable(),controllingDependencyId:m().nullable(),constraints:N(Jee),warnings:N(m())}),Xee=v({rows:N(Op)}),ete=v({task:Op,affectedRows:N(Op)}
46),tte=v({deletedTaskIds:N(m())}),VI=v({id:m(),scheduleId:m(),taskId:m(),field:m(),oldValue:bn().nullable(),newValue:bn().nullable(),changedByName:m(),changedByEmail:m(),changedAt:m()}),nte=v({id:m(),title:m(),displayId:m().nullable()}),rte=R(["compact","cozy","comfort","custom"]),ote=R(["small","default","large"]),ite=R(["left","center","right"]),ate=v({colId:m(),width:j().optional(),hide:te().optional(),pinned:In([we("left"),we("right"),te(),ws()]).optional(),sort:In([we("asc"),we("desc"),ws()]).optional(),sortIndex:j().nullable().optional(),flex:j().nullable().optional(),aggFunc:In([m(),ws()]).optional()}),uz=R(["schedule","actionLog","raidLog"]),ste=v({width:j().int().positive(),height:j().int().positive(),label:m().max(200).optional(),isInternal:te().optional()}),Rp=v({id:m().min(1),entityType:uz,entityId:m().min(1),name:m().trim().min(1).max(50),createdAt:ue(),agColumnState:N(ate),lineSpacing:rte,customRowHeight:j().int().min(24).max(80).nullable(),textWrapping:te(),fontSize:ote,alignment:ite.default("left"),screenBinding:ste.nullable().default(null)}),dz=Rp.omit({id:!0,createdAt:!0}),lte=dz.partial(),cte=v({entityType:uz,entityId:m().min(1),profileId:m().min(1).nullable()}),ute=v({profiles:N(Rp),activeProfileIds:jt(m(),m())}),F_=R(["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"]),hz=R(["equals","notEqual","lessThan","lessThanOrEqual","greaterThan","greaterThanOrEqual","blank","notBlank"]),dte=R(["true","false"]),hte=v({filterType:we("text"),colId:m(),type:F_,filter:m().optional()}),mte=v({filterType:we("number"),colId:m(),type:hz,filter:j().optional()}),pte=v({filterType:we("dateString"),colId:m(),type:hz,filter:m().optional()}),fte=v({filterType:we("boolean"),colId:m(),type:dte}),gte=v({filterType:we("object"),colId:m(),type:F_,filter:In([m(),N(m())]).optional()}),yte=v({filterType:we("enum"),colId:m(),type:F_,filter:In([m(),N(m())]).optional()}),mz=Bn("filterType",[hte,mte,pte,fte,gte,yte]),pz=v({filterType:we("join"),type:R(["AND","OR"]),conditions:ig(()=>N(In([pz,mz])))}),Mg=In([pz,mz]),W_=v({colId:m(),sort:R(["asc","desc"])}),UMe=["#3b82f6","#8b5cf6","#f59e0b","#ef4444","#10b981","#ec4899","#06b6d4","#f97316"],kb=v({id:m(),scheduleId:m(),name:m().trim().min(1),color:m(),scope:R(["private","schedule"]),createdBy:m(),filterModel:Mg.nullable(),sortModel:N(W_),createdAt:m(),updatedAt:m()});v({name:m().trim().min(1),color:m().default("#3b82f6"),scope:R(["private","schedule"]).default("private"),filterModel:Mg.nullable().default(null),sortModel:N(W_).default([])});v({name:m().trim().min(1).optional(),color:m().optional(),scope:R(["private","schedule"]).optional(),filterModel:Mg.nullable().optional(),sortModel:N(W_).optional()});v({query:m().trim().min(1),schema:jt(m(),bn()),userEmail:m()});const bte=v({filterModel:Mg,summary:m()}),wte=["private","org"],B_=R(wte),H_=v({tags:N(R(wt)).default([]),titleKeywords:N(m().trim().min(1)).default([]),includeProduced:te().default(!1)}),q_=m().regex(/^#[0-9a-fA-F]{6}$/,"Expected a #RRGGBB colour"),V_=m().trim().min(1),K_=jt(m(),bn()),xb=v({id:m(),name:m().trim().min(1),visibility:B_,icon:V_,color:q_.nullable(),layout:K_.nullable(),createdBy:m(),matchers:H_,createdAt:m(),updatedAt:m()});v({name:m().trim().min(1),visibility:B_.default("private"),icon:V_.default("target"),color:q_.nullable().default(null),layout:K_.nullable().default(null),matchers:H_.default({tags:[],titleKeywords:[],includeProduced:!1})});v({name:m().trim().min(1).optional(),visibility:B_.optional(),icon:V_.optional(),color:q_.nullable().optional(),layout:K_.nullable().optional(),matchers:H_.optional()});const Sm=j().int().min(0),vte=v({profileId:m().nullable(),openActions:Sm,overdueActions:Sm,openRaids:Sm,changedSinceSeen:Sm}),kte=N(vte);v({onlyMine:Ln().default(!0)});v({token:m().min(1)});v({endpoint:m().min(1),expirationTime:j().nullable().optional(),keys:v({p256dh:m().min(1),auth:m().min(1)})});v({endpoint:m().min(1)});const fz=v({fontSize:m().optional(),color:m().optional(),background:m().optional(),fontWeight:m().optional(),width:m().optional(),height:m().optional(),maxWidth:m().optional()}).optional(),gz=v({storageKey:m().trim().min(1),width:j().positive(),height:j().positive()}),yz=v({id:m().trim().min(1),mindMapId:m().trim().min(1),parentId:m().trim().min(1).nullable(),label:m(),labelHtml:m().optional(),sortOrder:j().int().nonnegative(),style:fz,image:gz.optional(),hasLinkedActionItems:te().default(!1),linkedActionItemIds:N(m()
46).default([]),actionItemQueued:te().default(!1),raidQueued:te().default(!1),linkedRaidEntryIds:N(m()).default([]),excludedFromShare:te().default(!1),createdAt:ue(),updatedAt:ue()}),G_=v({stableOccurrenceId:m().trim().min(1),title:m().trim().min(1),startsAt:ue().nullable()}),jg=v({id:m().trim().min(1),ownerId:m().trim().min(1),title:m().trim().min(1),rootNodeId:m().trim().min(1),meetingId:m().trim().min(1).nullable(),upcomingMeeting:G_.nullable().default(null),createdAt:ue(),updatedAt:ue()}),_b=jg.extend({nodes:N(yz)});v({title:m().trim().min(1),meetingId:m().trim().min(1).optional(),upcomingMeeting:G_.optional()});v({title:m().trim().min(1).optional(),meetingId:m().trim().min(1).nullable().optional(),upcomingMeeting:G_.nullable().optional()});const xte=v({id:m().trim().min(1),parentId:m().trim().min(1).nullable(),label:m(),labelHtml:m().optional(),sortOrder:j().int().nonnegative(),style:fz,image:gz.optional(),hasLinkedActionItems:te().optional(),linkedActionItemIds:N(m()).optional(),actionItemQueued:te().optional(),raidQueued:te().optional(),linkedRaidEntryIds:N(m()).optional(),excludedFromShare:te().optional()});v({nodes:N(xte).min(1)});v({hasLinkedActionItems:te().optional(),linkedActionItemIds:N(m()).optional(),actionItemQueued:te().optional(),raidQueued:te().optional(),linkedRaidEntryIds:N(m()).optional(),excludedFromShare:te().optional()});const _te=v({items:N(jg)}),Ste=jg.extend({ownerName:m().nullable(),canEdit:te()}),Tte=v({items:N(Ste)});v({recipientUserIds:N(m().trim().min(1)).min(1)});const Ite=v({results:N(v({recipientUserId:m(),status:R(["created","recipient_not_found","failed"]),mindMapId:m().optional(),error:m().optional()}))});v({mimeType:R(["image/png","image/jpeg","image/webp","image/heic"]),sizeBytes:j().int().positive()});const Ete=v({imageId:m().trim().min(1),storageKey:m().trim().min(1),presignedPost:v({url:m(),fields:jt(m(),m())})});v({mimeType:R(["image/png","image/jpeg","image/webp","image/heic"]),sizeBytes:j().int().positive(),storageKey:m().trim().min(1)});const Ate=v({storageKey:m().trim().min(1)}),Cte=v({url:Tn(),expiresAt:An()});v({storageKeys:N(m().trim().min(1)).min(1)});const Nte=v({urls:jt(m(),m())}),bz=L.enum(["gpt-realtime-whisper","gpt-4o-transcribe","gpt-4o-mini-transcribe","whisper-1"]),Pte=L.object({audioId:L.string(),clientSecret:L.string(),expiresAt:L.number().int(),model:bz}),Dte=L.object({clientSecret:L.string(),expiresAt:L.number().int(),model:bz});L.object({rawTranscriptText:L.string().trim().min(1)});const $g=jt(m(),bn()),Vu=v({id:m().trim().min(1),ownerId:m().trim().min(1),title:m(),content:$g,meetingId:m().trim().min(1).nullable(),sentFromUserId:m().trim().min(1).nullable(),sentAt:ue().nullable(),createdAt:ue(),updatedAt:ue()});v({title:m().optional(),content:$g.optional(),meetingId:m().trim().min(1).nullable().optional()});v({title:m().optional(),content:$g.optional()});const Ote=v({items:N(Vu)}),Rte=Vu.extend({ownerName:m().nullable(),canEdit:te()}),Mte=v({items:N(Rte)});v({recipientUserIds:N(m().trim().min(1)).min(1)});const jte=v({results:N(v({recipientUserId:m(),status:R(["created","recipient_not_found","failed"]),noteId:m().optional(),error:m().optional()}))}),$te=R(["image/png","image/jpeg","image/webp","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]);v({contentType:$te,sizeBytes:j().int().positive()});const Lte=v({attachmentId:m().trim().min(1),upload:v({url:m().min(1),fields:jt(m(),m())}),preview:v({url:m().min(1),expiresAt:ue()})});v({returnTo:Tn().optional()}).strict();const zte=v({id:m().trim().min(1),displayName:m().trim().min(1).nullable().default(null),mail:m().trim().toLowerCase().nullable().default(null),userPrincipalName:m().trim().toLowerCase().nullable().default(null)}).loose(),KI=v({dateTime:m().trim().min(1),timeZone:m().trim().min(1)}).loose(),FMe=e=>{if(!e?.dateTime)return null;const t=e.timeZone.toUpperCase()==="UTC"&&!/[zZ]|[+-]\d{2}:?\d{2}$/.test(e.dateTime)?`${e.dateTime}Z`:e.dateTime,n=new Date(t);return Number.isNaN(n.getTime())?null:n},Ute=v({displayName:m().nullable().optional()}).loose(),wz=v({name:m().nullable().optional(),address:m().nullable().optional()}).loose(),Fte=v({emailAddress:wz.optional()}).loose(),Wte=v({joinUrl:m().nullable().optional()}).loose(),Bte=v({response:m().nullable().optional(),time:m().nullable().optional()}).loose(),Hte=v({emailAddress:wz.optional(),status:Bte.optional(),type:m().nullable().optional()}).loose(),qte=v({contentType:m().nullable().optional(),content:m().nullable().optional()}).loose(),Y_=v({id:m().trim().min(1),subject:m().nullable().optional(),bodyPreview:m().nullable().optional(),body:qte.nullable().optional(),start:KI,end:KI,isAllDay:te().optional().default(!1),isCancelled:te().optional().default(!1),location:Ute.nullable().optional(),organizer:Fte.nullable().optional(),onlineMeeting:Wte.nullable().optional(),webLink:m().nullable().optional(),attendees:N(Hte).optional()}).loose(),Vte=v({event:Y_}).strict();v({value:N(Y_)}).loose();v({windowStart:m(),windowEnd:m(),events:N(Y_)}).strict();const Kte={MICROSOFT:"MICROSOFT"},vz=R(Kte),Gte={CONNECTED:"CONNECTED",DISCONNECTED:"DISCONNECTED",ERROR:"ERROR",PENDING:"PENDING"},Yte=R(Gte),Zte=v({id:m().trim().min(1),provider:vz,status:Yte,accountEmail:m().trim().toLowerCase().nullable(),accountDisplayName:m().trim().nullable(),connectedAt:An().nullable(),disconnectedAt:An().nullable(),scopes:N(m().trim().min(1)).default([]),lastError:m().nullable().default(null)}).strict();v({integrations:N(Zte).default([])}).strict();v({authorizeUrl:Tn()}).strict();v({provider:vz,status:R(["success","error"]),message:m().trim().min(1)}).strict();const Jte=1,Qte=R(["overdue","today","upcoming"]),Xte=v({id:m().trim().min(1),title:m(),dueLabel:m(),state:Qte});v({version:we(Jte),generatedAt:An(),user:v({personId:m().trim().min(1),name:m().nullable()}).nullable(),tasks:v({overdue:j().int().nonnegative(),dueToday:j().int().nonnegative(),openTotal:j().int().nonnegative(),top:N(Xte).max(3)}),points:v({weekly:j(),rank:j().int().positive().nullable(),rankDelta:j().int().nullable()}).nullable(),notifications:v({unread:j().int().nonnegative(),latest:m().nullable()}),latestMeeting:v({id:m(),title:m(),org:m().nullable(),whenLabel:m().nullable(),actions:j().int().nonnegative(),raids:j().int().nonnegative(),status:m()}).nullable().optional(),topRaid:v({id:m(),type:m(),title:m(),impact:m(),owner:m().nullable(),status:m().nullable()}).nullable().optional(),catchUp:v({newCount:j().int().nonnegative(),meetings:j().int().nonnegative(),criticalRisks:j().int().nonnegative(),sinceLabel:m().nullable(),items:N(v({
46id:m(),kind:m(),title:m(),label:m()})).max(6).default([])}).nullable().optional(),following:v({newCount:j().int().nonnegative(),items:N(v({id:m(),actorName:m().nullable(),actorInitials:m(),kind:m(),summary:m(),timeLabel:m()})).max(4)}).nullable().optional(),leaderboard:v({entries:N(v({rank:j().int().positive(),name:m(),points:j(),isCurrentUser:te()})).max(5),currentUser:v({rank:j().int().positive(),name:m(),points:j()}).nullable()}).nullable().optional()});const ene=["status","decision","escalation","discovery","kickoff","renewal","working"],Z_=R(ene),tne=["pastMeetings","actionItems","raids","notes"],nne=R(tne),Tm=v({id:m().trim().min(1),reason:m().trim().min(1).optional()}).strict(),rne=v({suggestedMeetings:N(Tm).default([]),otherMeetingIds:N(m().trim().min(1)).default([]),suggestedActionItems:N(Tm).default([]),otherActionItemIds:N(m().trim().min(1)).default([]),suggestedRaids:N(Tm).default([]),otherRaidIds:N(m().trim().min(1)).default([]),suggestedNotes:N(Tm).default([]),otherNoteIds:N(m().trim().min(1)).default([])}).strict(),J_=v({pastMeetings:N(m().trim().min(1)).max(100).default([]),actionItems:N(m().trim().min(1)).max(100).default([]),raids:N(m().trim().min(1)).max(100).default([]),notes:N(m().trim().min(1)).max(100).default([])}).strict(),kz=v({pastMeetings:te(),actionItems:te(),raids:te(),notes:te()}).strict(),one=v({title:m().nullable(),date:m().nullable(),participants:N(m()).nullable(),summary:m().nullable(),description:m().nullable(),actionNotes:m().nullable(),destination:m().nullable(),dueDate:m().nullable(),responsible:m().nullable(),potentialImpact:m().nullable(),raidType:m().nullable()}).strict(),ine=v({sourceKey:nne,itemId:m().trim().min(1),label:m().trim().min(1),ref:m().trim().min(1).optional(),details:one.nullable().optional()}).strict(),ane=v({summary:m().trim().min(1),talkingPoints:N(m().trim().min(1)).default([]),openQuestions:N(m().trim().min(1)).default([]),risksToWatch:N(m().trim().min(1)).default([]),successCriteria:N(m().trim().min(1)).default([]),citations:N(ine).default([])}).strict(),sne=v({goals:N(Z_),meetingContext:m(),selectedSources:J_}).strict(),Sb=v({id:m().trim().min(1),userId:m().trim().min(1),eventId:m().trim().min(1),goals:N(Z_).default([]),meetingContext:m().default(""),sources:rne,selectedSources:J_,enabledSources:kz.nullable().default(null),brief:ane.nullable().default(null),briefGeneratedAt:ue().nullable().default(null),briefInputs:sne.nullable().default(null),briefNoteId:m().trim().min(1).nullable().default(null),briefNoteSyncedAt:ue().nullable().default(null),createdAt:ue(),updatedAt:ue()}).strict();v({eventId:m().trim().min(1),goals:N(Z_).optional(),meetingContext:m().optional(),selectedSources:J_.optional(),enabledSources:kz.nullable().optional()}).strict();const lne=R(["running","succeeded","failed","abandoned"]),cne=R(["manual","schedule","cli"]),xz=R(["flat","full","both"]),vv=v({runId:m(),state:lne,trigger:cne,destination:xz,triggeredByPersonId:m().nullable(),triggeredByName:m().nullable(),startedAt:m(),finishedAt:m().nullable(),durationMs:j().nullable(),result:v({rowsCleared:j(),rowsLoaded:j(),batches:j(),rowsRejected:j(),nonDateValues:j(),sourceCellsWritten:j()}).nullable(),error:m().nullable()}).strict(),une=v({running:vv.nullable(),lastFinished:vv.nullable(),cooldownMs:j(),available:te()}).strict();v({destination:xz}).strict();const dne=v({run:vv}).strict(),_z="x-luniko-impersonate";R(["full","custom"]);const hne=R(_o);Ei(e=>typeof e=="object"&&e!==null&&!("mode"in e)?{...e,mode:"full"}:e,Bn("mode",[v({mode:we("full"),personId:m().min(1)}),v({mode:we("custom"),capabilities:N(hne)})]));const mne=R(["no-person","no-membership"]),pne=v({personId:m().min(1),name:m().nullable(),email:m().nullable(),capabilities:N(R(_o)),unresolved:mne.nullable()}),fne=["gfs","curran","luniko"],Q_=R(fne),Sz=[{key:"gfs",label:"GFS",rung:1,domains:["globalfinishing.com","neuraflash.com","2wtech.com"],notetakerName:"GFS Notetaker",recordingEnabled:!0,rateCentsPerHour:65,premiumPct:17},{key:"curran",label:"Curran Group",rung:2,domains:["currangroup.com"],notetakerName:"Curran Group Notetaker",recordingEnabled:!0,rateCentsPerHour:65,premiumPct:17},{key:"luniko",label:"Luniko",rung:3,domains:[],notetakerName:"Luniko Notetaker",recordingEnabled:!0,rateCentsPerHour:40,premiumPct:0}],Tz=e=>Sz.find(t=>t.key===e)??null,gne=e=>{const t=Tz(e);return!t||t.key==="luniko"?"Internal":t.label};Sz.find(e=>e.key==="luniko");const yne="lunikoconsulting.com",bne=[yne],wne=e=>e.domains.length>0?e.domains:bne,vne=e=>{const t=e.lastIndexOf("@");return t<0?null:e.slice(t+1).trim().toLowerCase()||null},kne=[{id:"yassen-zoom",label:"Yass' Zoom",url:"https://zoom.us/j/8373433725",billingAccountKey:"luniko"}],xne=e=>{const t=new Set(e.map(n=>n?vne(n):null).filter(n=>n!==null));return kne.filter(n=>{if(n.billingAccountKey===null)return!0;const r=Tz(n.billingAccountKey);return r?wne(r).some(o=>t.has(o)):!1})},_ne=v({botId:m(),meetingId:m().nullable(),title:m().nullable(),startedAt:m().nullable(),billableSeconds:j(),qualifiedBy:N(m()
46).default([]),participants:N(m()).default([]),amountCents:j(),unrecorded:te().default(!1)}),Sne=v({botId:m(),title:m().nullable(),reason:R(["fatal","unattributed","never_joined"]),startedAt:m().nullable().default(null),billableSeconds:j().nullable()}),Tne=v({address:m(),meetings:j(),billableSeconds:j()}),WMe=v({accountKey:Q_,period:m().regex(/^\d{4}-\d{2}$/),rateCentsPerHour:j(),premiumPct:j(),lines:N(_ne),usage:N(Tne).default([]),excluded:N(Sne),totals:v({billableSeconds:j(),subtotalCents:j(),premiumCents:j(),totalCents:j()})}),Ine=v({accountKey:Q_,period:m(),meetings:j(),billableSeconds:j(),totalCents:j()}),BMe=v({months:N(v({period:m(),cells:N(Ine)}))}),Ene=["zoom.us","teams.microsoft.com","teams.live.com","meet.google.com","webex.com"],Ane=v({meetingUrl:m().trim().url("Enter a full meeting URL, including https://").refine(e=>{try{const{hostname:t}=new URL(e);return Ene.some(n=>t===n||t.endsWith(`.${n}`))}catch{return!1}},{message:"Only Zoom, Teams, Google Meet or Webex links are supported"}),meetingName:m().trim().max(200).optional(),savedRoomId:m().trim().min(1).optional()}).strict(),Cne=v({botId:m(),retryable:te().default(!1)}),Nne=v({url:m()}),Pne=v({connected:te(),status:R(["connecting","connected","disconnected"]).nullable().default(null),platformEmail:m().nullable().default(null),lastSyncedAt:m().nullable().default(null)}),Dne=v({scheduled:j(),skipped_rule:j(),skipped_dedup:j(),failed:j()}),One=R(["joining","joiningViaOther","notJoining","removed"]),Rne=v({state:One,reason:m(),bookedByName:m().nullable().default(null)}),Mne=v({title:m().nullable(),description:m().nullable().default(null),startTime:m().nullable(),endTime:m().nullable().default(null),dedupKey:m().nullable(),icalUid:m().nullable(),stableOccurrenceId:m().nullable().default(null),seriesId:m().nullable().default(null),grants:N(ja).default([]),restrictToGrants:te().default(!1),sharedWithPersonIds:N(m()).default([]),covered:te(),organizer:m().nullable().default(null),joinUrl:m().nullable().default(null),isAllDay:te().default(!1),isCancelled:te().default(!1),providerEventId:m().nullable().default(null),location:m().nullable().default(null),invitees:N(V2).default([]),orgIds:N(m()).default([]),notetaker:Rne.default({state:"notJoining",reason:"not scheduled",bookedByName:null})}),jne=v({events:N(Mne)}),$ne=v({orgId:m().min(1),name:m()}),Lne=v({items:N($ne)}),X_={"platform.manage_orgs":{label:"Create and manage organizations",description:"Can create new organizations and change their tenants and domains."},"platform.configure_modules":{label:"Manage modules for any organization",description:"Can turn modules on or off for any organization on the platform, and issue the links that get an organization to consent to a module."},"platform.view_billing_all":{label:"View billing across every organization",description:"Can see billing information for every organization on the platform, not just their own."},"platform.view_isolation_report":{label:"View the tenant isolation report",description:"Can see the report that checks whether organizations' data is properly kept apart from each other."},"platform.view_sharing_ledger":{label:"View the cross-org sharing ledger",description:"Can see the full history of every time a record crossed an organization boundary, across the platform."},"platform.activate_god_mode":{label:"Start a break-glass session",description:"Can open a time-boxed emergency session with read access across every organization. Opening one is itself logged; what the session can read comes from the session, not from this capability."},"platform.impersonate":{label:"View and act as another person",description:"Can sign in as a specific person, including in another organization, seeing what they see and making the writes they could make. Every action is logged against the real actor, not the person being viewed."},"org.view_members":{label:"View this organization's members",description:"Can see the people in the organization and what access each of them currently holds."},"org.manage_members":{label:"Add and remove members",description:"Can add or remove people from the organization and assign a viewer, editor, or admin bundle to them."},"org.manage_member_capabilities":{label:"Grant or revoke individual capabilities",description:"Can give a person a capability their bundle doesn't include, or take one away, without changing their bundle. Cannot be used on their own membership, and cannot grant a capability they don't hold themselves."},"org.manage_audiences":{label:"Manage organization audiences",description:"Can create and edit the audience groups the organization uses to control who sees what."},"org.configure_modules":{label:"Manage this organization's modules",description:"Can turn on or off modules the organization already has access to."},"org.view_billing":{label:"View this organization's billing",description:"Can see the organization's own billing information."},"org.view_usage":{label:"View usage analytics",description:"Can see how the organization uses Luniko — which features get used, how often, on which devices, and by whom, plus who has connected a calendar or note-taker."},"org.view_all_records":{label:"View every record the organization owns",description:"Can open any meeting, item, or record the organization owns, regardless of who it's normally visible to. Rarely needed — most admins should not hold this, and only a platform operator can grant it."},"org.view_representative":{label:"View records this organization's people attended elsewhere",description:"Can see a meeting or record another organization owns, whenever one of this organization's own people was invited to it or took part."},"record.share_external":{label:"Share a record outside the organization",description:"Can share a record the organization owns with people outside it. Every share is written to an audit log."},"search.global":{label:"Search across everything the organization can see",description:"Can use global search to look across every surface at once instead of one at a time. Search still only returns records they could already open."},"people.manage_identities":{label:"Manage people's identities",description:"Can edit the identity records — linked emails and external accounts — for people whose home organization is theirs."},"people.merge":{label:"Merge duplicate people",description:"Can combine two person records that represent the same individual into one, within their own organization."},"tags.use":{label:"Use personal tags",description:"Can create their own private labels and put them on meetings and other items. Nobody else sees another person's tags."},"automations.use":{label:"Use automations",description:"Can have Luniko act on their meetings for them, like reminding them to send a summary once it's ready. Nobody else sees another person's automations."},"command_center.view":{label:"View Command Center items",description:"Can see action items in the destinations they have access to."},"command_center.create_item":{label:"Create Command Center items",description:"Can add a new action item to a destination they have access to."},"command_center.edit":{label:"Edit Command Center items",description:"Can edit any action item in a destination they have access to, not only the ones they created themselves."},"command_center.submit_to_sheet":{label:"Submit Command Center items to Smartsheet",description:"Can push an action item out to its Smartsheet-backed destination."},"command_center.manage_destinations":{label:"Manage Command Center destinations",description:"Can create, edit, and remove the destinations action items are organized into, for their own organization."},"command_center.manage_destination_access":{label:"Manage who can access each destination",description:"Can control which people are able to see and use a given Command Center destination."},"meetings.view":{label:"View meetings",description:"Can open and watch a meeting they have record access to."},"meetings.set_private":{label:"Mark a meeting private",description:"Can flag a meeting they took part in as private. The flag overrides every other capability except a firefight session."},"meetings.comment":{label:"Comment on a meeting",description:"Can post a comment on a meeting they have record access to."},"meetings.clip":{label:"Clip a meeting",description:"Can create a clip from a meeting they have record access to."},"meetings.send_notetaker":{label:"Send a note-taker to a meeting",description:"Can dispatch the organization's note-taking bot to join and record a meeting."},"meetings.hide_own":{label:"Hide a meeting you attended",description:"Can hide a meeting from view for everyone, but only a meeting they personally took part in. Rever
46sible, and works even on a meeting another organization owns."},"meetings.manage_audience":{label:"Control who can see a meeting",description:"Can set which people or audiences are allowed to see a meeting, without thereby being able to watch it themselves. Limited to meetings the organization owns."},"meetings.view_deleted":{label:"View hidden or deleted meetings",description:"Can see meetings that have been hidden or deleted, for their own organization."},"meetings.nuke":{label:"Permanently delete a meeting",description:"Can permanently delete a meeting and its recording for everyone in the organization. Unlike hiding a meeting, this cannot be undone, and only reaches meetings the organization owns."},"meetings.view_redacted":{label:"View redaction authors",description:"See who made each redaction and when. Never shows the redacted content."},"meetings.redact":{label:"Approve meeting redactions",description:"Approve or reject suggested redactions and remove the content permanently."},"meetings.copy_transcripts_bulk":{label:"Copy many transcripts at once",description:"Can copy the transcripts of a whole selection of meetings to the clipboard in one action. Copying one meeting's transcript from its page needs no capability."},"meetings.copy_transcripts_unpaused":{label:"Never paused for copying transcripts",description:"Copying is not paused automatically after ten transcripts in a day. Administrators are still emailed about the volume."},"live.view":{label:"View live rooms",description:"Can open the Live Room for a meeting they have record access to."},"live.edit_board":{label:"Edit the live board",description:"Can add, move, and edit items on a Live Room's board, during or after the meeting."},"live.send_recap":{label:"Send a Live Room recap",description:"Can send the recap that summarizes a Live Room session to its recipients."},"schedules.view":{label:"View schedules",description:"Can see the organization's schedules."},"schedules.edit":{label:"Edit schedules",description:"Can change tasks and dates on the organization's schedules."},"schedules.lock":{label:"Lock a schedule",description:"Can lock a schedule so it can no longer be edited."},"schedules.run_mirror":{label:"Rebuild the schedule mirror",description:"Can trigger a rebuild of the flat schedule sheet that PowerBI reads from."},"points.view_leaderboard":{label:"View the leaderboard",description:"Can see the organization's points leaderboard."},"points.view_audit":{label:"View the points audit trail",description:"Can see the history of how every point was awarded, for their own organization."},"luna.ask":{label:"Ask Luna",description:"Can ask Luna questions and get answers drawn only from records they could already see."},"corner.read":{label:"Read the Corner",description:"Can open the private documents shelved in the help centre's Corner."},"corner.publish":{label:"Publish to the Corner",description:"Can add, edit, upload and remove documents in the help centre's Corner."},"fde.read":{label:"Read the FDE playbook",description:"Can view the forward-deployed engineering playbook. Opening it records an acknowledgment."},"fde.view_access_log":{label:"View the FDE access log",description:"Can see who has read the FDE playbook, for their own organization."}},Iz=e=>X_[e].label,zne=e=>X_[e].description,lh=["viewer","editor","admin"],Tb=["command_center.view","meetings.view","meetings.set_private","meetings.comment","live.view","schedules.view","points.view_leaderboard"],GI=["command_center.create_item","command_center.edit","command_center.submit_to_sheet","meetings.clip","meetings.send_notetaker","meetings.hide_own","live.edit_board","live.send_recap","schedules.edit","tags.use","automations.use"],Une=["org.view_members","org.manage_members","org.manage_member_capabilities","org.manage_audiences","org.configure_modules","org.view_billing","record.share_external","search.global","people.manage_identities","people.merge","command_center.manage_destinations","command_center.manage_destination_access","meetings.manage_audience","meetings.view_deleted","meetings.nuke","meetings.view_redacted","schedules.lock","schedules.run_mirror","points.view_audit","luna.ask","fde.view_access_log"],ga={viewer:Tb,editor:[...Tb,...GI],admin:[...Tb,...GI,...Une]}
46,Ez=_o.filter(e=>!ga.admin.includes(e)).sort(),HMe=e=>{const t=new Set(e);for(const n of lh){const r=ga[n];if(t.size===r.length&&r.every(o=>t.has(o)))return n}return"Custom"},eS={core:{key:"core",label:"Core",alwaysOn:!0,requiredScopes:[],ownedEntities:[]},command_center:{key:"command_center",label:"Command Center",alwaysOn:!1,requiredScopes:[],ownedEntities:["smartsheet_destination","sheet_catalog"]},meetings:{key:"meetings",label:"Meetings, Pulse and Live Room",alwaysOn:!1,requiredScopes:["Calendars.Read","Mail.ReadWrite"],ownedEntities:["transcript","live_meeting","clip","recall_bot"]},schedules:{key:"schedules",label:"Schedules",alwaysOn:!1,requiredScopes:[],ownedEntities:["schedule","schedule_task"]},points:{key:"points",label:"Points and leaderboard",alwaysOn:!1,requiredScopes:[],ownedEntities:[]},luna:{key:"luna",label:"Luna",alwaysOn:!1,requiredScopes:["Calendars.Read","Chat.Read","Mail.ReadWrite","MailboxSettings.Read","People.Read","Team.ReadBasic.All"],ownedEntities:[]},fde:{key:"fde",label:"FDE playbook",alwaysOn:!1,requiredScopes:[],ownedEntities:["fde_framework_report_card"]}},Fne=e=>eS[e],Wne=e=>_o.filter(t=>T_[t]===e),Bne=(e,t)=>{const n=eS[e].requiredScopes;if(n.length===0)return!0;const r=new Set(t);return n.every(o=>r.has(o))},Az=R(["not_required","pending","granted","revoked"]),Hne=v({moduleKey:R(Ts),label:m(),requiredScopes:N(m()),consentState:Az,consentedScopes:N(m()),consentedAt:m().nullable()}),qne=v({items:N(Hne)}),Cz=v({url:m()}),Nz=Bn("kind",[v({kind:we("org"),orgId:m().trim().min(1)}),v({kind:we("platform")})]);v({scope:Nz,reason:m().trim().min(1)}).strict();const Mp=v({id:m(),personId:m(),actorOrgId:m(),scope:Nz,reason:m(),activatedAt:ue(),expiresAt:ue(),revokedAt:ue().nullable(),revokedBy:m().nullable()}).strict(),Vne=v({session:Mp.nullable()}).strict(),Kne=R(["live","expired","revoked"]),Gne=Mp.extend({status:Kne,activatedByName:m().nullable(),revokedByName:m().nullable(),scopeOrgName:m().nullable()}),Yne=v({items:N(Gne)}).strict(),Zne=v({personId:m(),name:m().nullable(),email:m().nullable(),bundle:R([...lh,"Custom"]),capabilities:N(R(_o)),transcriptCopyPausedAt:ue().nullable().default(null)}),Pz=v({items:N(Zne)}),Jne=v({orgId:m(),name:m()}),Qne=v({items:N(Jne)}),Xne=v({moduleKey:R(Ts),label:m(),requiredScopes:N(m()),state:R(["enabled","disabled"]),consentState:Az,consentedScopes:N(m()),consentedAt:m().nullable()}),YI=v({items:N(Xne)});v({state:R(["enabled","disabled"])});const ere=v({personId:m(),name:m().nullable(),email:m().nullable(),lastLoginAt:m().nullable(),calendar:v({status:R(["connecting","connected","disconnected"]),platformEmail:m().nullable(),connectedAt:m().nullable(),lastSyncedAt:m().nullable()}).nullable(),recordingMode:R(iz).nullable(),billingAccountKey:Q_,billingAccountLabel:m()}),tre=v({items:N(ere)});v({days:Fn().int().min(1).max(365).default(30),timezone:m().trim().default("UTC").refine(Pg,"Unknown IANA timezone")});const nre=v({date:m(),events:j(),people:j()}),Dz=v({type:R(N_),label:m(),events:j()}),rre=Dz.extend({people:j()}),ore=v({source:m().nullable(),events:j(),people:j()}),ire=v({personId:m(),name:m().nullable(),email:m().nullable(),events:j(),activeDays:j(),lastActiveAt:m().nullable(),topAction:Dz.nullable()}),are=v({from:m(),to:m(),days:j(),timezone:m(),totalEvents:j(),activePeople:j(),byDay:N(nre),byAction:N(rre),bySource:N(ore),byPerson:N(ire)}),Im=v({personId:m(),orgId:m(),capabilities:N(R(_o)),transcriptCopyPausedAt:ue().nullable().default(null)});v({capabilities:N(R(_o)).min(1)});v({capabilities:N(R(_o)).min(1)});v({bundle:R(lh)});const Oz={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-129964}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Luniko_Technologies_Inc.}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{luniko}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{luniko}_need_to_be_licensed___{luniko}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{22_May_2027}____[v3]_[01]_MTgxMDk0MDQwMDAwMA==9ca1be398fd6c842c727d73e296bcb9f",VITE_API_BASE_URL:"https://api.luniko.ai",VITE_APP_ENV:"production",VITE_AUTH0_AUDIENCE:"https://api.luniko.ai/",VITE_AUTH0_CLIENT_ID:"iPzooR2ucJw6nPVckgvGDjkhxGflRWAE",VITE_AUTH0_DOMAIN:"luniko.us.auth0.com",VITE_AUTH0_ENTRA_CONNECTION:"luniko-entra-sso",VITE_AUTH0_MY_ACCOUNT_AUDIENCE:"https://luniko.us.auth0.com/me/",VITE_AUTH0_REDIRECT_URI:"",VITE_AUTH0_ROLES_CLAIM:"https://luniko.ai/roles",VITE_PUBLIC_POSTHOG_HOST:"https://us.i.posthog.com",VITE_PUBLIC_POSTHOG_PROJECT_TOKEN:"phc_BNB4XqVLLeELcbV4j5AgNowgeXdR653CKv6MPGmPbNPa",VITE_STREAM_API_BASE_URL:"https://stream.api.luniko.ai",VITE_STREAM_SSE_BASE_URL:"https://api.luniko.ai",VITE_VAPID_PUBLIC_KEY:"BER2DP_4I3-0dLUMem8uOWWib6C8j7NHRwZW0A2mzngHxm_5U_wmhV1KN0akPN_tyz9EV88YSOVLrN9_Cc83w8o"};function Ti(e){const t=Oz[e];if(typeof t!="string"||t.trim()==="")throw new Error(`[env] Missing ${e}. Set it in apps/web/.env (or equivalent Vite env file).`);return t.trim()}function Cu(e){const t=Oz[e];if(typeof t!="string")return;const n=t.trim();return n===""?void 0:n}function lu(e,t){try{return new URL(t).toString()}catch{throw new Error(`[env] ${e} must be a valid absolute URL. Received: ${t}`)}}function sre(e){if(e==="local"||e==="staging"||e==="production")return e;throw new Error(`[env] VITE_APP_ENV must be one of: local, staging, production. Received: ${e}`)}function lre(){const e=globalThis.location?.origin;if(!e)throw new Error("[env] Unable to resolve a default redirect URI from window.location.origin. Set VITE_AUTH0_REDIRECT_URI explicitly.");return`${e}/callback`}const cre=Cu("VITE_AUTH0_REDIRECT_URI")??lre(),dt={appEnvironment:sre(Ti("VITE_APP_ENV")),auth0Domain:Ti("VITE_AUTH0_DOMAIN"),auth0ClientId:Ti("VITE_AUTH0_CLIENT_ID"),auth0Audience:Ti("VITE_AUTH0_AUDIENCE"),auth0RedirectUri:lu("VITE_AUTH0_REDIRECT_URI",cre),apiBaseUrl:lu("VITE_API_BASE_URL",Ti("VITE_API_BASE_URL")),streamApiBaseUrl:lu("VITE_STREAM_API_BASE_URL",Ti("VITE_STREAM_API_BASE_URL")),streamSseBaseUrl:lu("VITE_STREAM_SSE_BASE_URL",Cu("VITE_STREAM_SSE_BASE_URL")??Ti("VITE_STREAM_API_BASE_URL")),auth0MyAccountAudience:lu("VITE_AUTH0_MY_ACCOUNT_AUDIENCE",Ti("VITE_AUTH0_MY_ACCOUNT_AUDIENCE")),auth0EntraConnection:Ti("VITE_AUTH0_ENTRA_CONNECTION"),vapidPublicKey:Cu("VITE_VAPID_PUBLIC_KEY"),posthogProjectToken:Cu("VITE_PUBLIC_POSTHOG_PROJECT_TOKEN"),posthogHost:Cu("VITE_PUBLIC_POSTHOG_HOST")},jp="luniko-role-impersonation";function Rz(){try{const e=localStorage.getItem(jp);if(!e)return null;const t=JSON.parse(e);return typeof t.label!="string"?null:t.mode==="custom"?Array.isArray(t.capabilities)?{mode:"custom",label:t.label,capabilities:t.capabilities}:null:typeof t.personId!="string"||!t.personId?null:{mode:"full",personId:t.personId,label:t.label,capabilities:Array.isArray(t.capabilities)?t.capabilities:[],unresolved:t.unresolved??null}}catch{return null}}let fs=Rz();function Mz(){return fs?JSON.stringify(fs.mode==="custom"?{mode:"custom",capabilities:fs.capabilities}:{mode:"full",personId:fs.personId}):null}function ZI(){const e=Mz();return e?{[_z]:e}:{}}function kv(e){try{e?localStorage.setItem(jp,JSON.stringify(e)):localStorage.removeItem(jp)}catch{}fs=e,window.location.assign("/")}const Ib=new Set;function ure(e){Ib.add(e);const t=n=>{if(n.key===jp){fs=Rz();for(const r of Ib)r()}};return window.addEventListener("storage",t),()=>{Ib.delete(e),window.removeEventListener("storage",t)}}function dre(){return g.useSyncExternalStore(ure,()=>fs,()=>null)}const JI="X-Luniko-Source",hre="COMMAND_CENTER";let Nu=hre;function mre(){return Nu}function qMe(e){const t=Nu;return Nu=e,()=>{Nu===e&&(Nu=t)}}const QI="X-Luniko-Meeting-Id";let Pu=null;function pre(){return Pu}
46function VMe(e){const t=Pu;return Pu=e,()=>{Pu===e&&(Pu=t)}}async function M(e){const{path:t,getAccessTokenSilently:n,options:r}=e,o=await fre({path:t,getAccessTokenSilently:n,options:r,baseUrl:e.baseUrl,expectedStatuses:e.expectedStatuses});if(gre(e)){if(o.status!==204)throw new Error(`Expected no content response but received ${o.status}`);return}if(yre(e))return await o.blob();if(o.status===204)throw new Error("Expected a JSON response body but received no content");const i=await o.json();return e.responseSchema.parse(i)}const Eb=new Map;function fre(e){if((e.options?.method??"GET").toUpperCase()!=="GET"||e.options?.headers)return XI(e);const n=new URL(e.path,e.baseUrl??dt.apiBaseUrl).toString(),r=Eb.get(n);if(r)return r.then(a=>a.clone());const o=XI(e);Eb.set(n,o);const i=()=>Eb.delete(n);return o.then(i,i),o.then(a=>a.clone())}async function XI({path:e,getAccessTokenSilently:t,options:n,baseUrl:r,expectedStatuses:o}){const i=await t({authorizationParams:{audience:dt.auth0Audience}}),a=new URL(e,r??dt.apiBaseUrl).toString(),{body:s,rawBody:l,headers:c,...h}=n??{},d=new Headers(c);if(d.set("Authorization",`Bearer ${i}`),!d.has("X-Timezone")){const y=Intl.DateTimeFormat().resolvedOptions().timeZone;y&&d.set("X-Timezone",y)}if(d.has(JI)||d.set(JI,mre()),!d.has(QI)){const y=pre();y&&d.set(QI,y)}const p=Mz();p&&d.set(_z,p);let f;l!==void 0?f=l:s!==void 0&&(d.set("Content-Type","application/json"),f=JSON.stringify(s));const b=await fetch(a,{...h,headers:d,body:f});if(!b.ok){const y=await h2(b),{code:w,message:k,requestId:x,details:S}=y.error,I=`API request failed (${b.status} ${b.statusText}
46)`,E=b.status===413?"That save was too large to send at once. Save fewer rows at a time, or shorten the longest notes.":k??I,C=new Kr({message:E,status:b.status,statusText:b.statusText,code:w,requestId:x,details:S});throw o?.includes(b.status)||q3.captureException(C,{api_path:e,api_method:h.method??"GET",api_status:b.status,api_error_code:w,api_request_id:x}),C}return b}function gre(e){return"responseType"in e&&e.responseType==="void"}function yre(e){return"responseType"in e&&e.responseType==="blob"}const Un=e=>{if(!e)return"";const t=new URLSearchParams;for(const[r,o]of Object.entries(e)){if(o==null)continue;const i=Array.isArray(o)?o:[o];for(const a of i)a!=null&&t.append(r,a instanceof Date?a.toISOString():String(a))}const n=t.toString();return n?`?${n}`:""};function bre(e){if(!e.sourceProvenance)return e;const t={...e};return delete t.sourceProvenance,t}function KMe({items:e,deletedItems:t,getWorkflowItemRef:n,getPendingMarks:r}){const o=new Set((t??[]).map(s=>s.id)),i=[],a=[];for(const s of e)if(!o.has(s.id)){if(s.id.startsWith("local:")){const l=r?.(s.id);i.push({taskName:s.taskName,additionalNote:s.additionalNote??null,recordBackground:s.recordBackground??null,destination:s.destination,done:s.done,dueDate:s.dueDate??null,originalDueDate:s.originalDueDate??null,dueTime:s.dueDate?s.dueTime??null:null,theme:s.theme??null,sequence:s.sequence??null,responsibleDoer:s.responsibleDoer??null,status:s.status,submissionState:s.submissionState,transcriptRef:s.transcriptRef??null,meetingTrigger:s.meetingTrigger,projectAreaTags:s.projectAreaTags,tags:s.tags,pbiTags:s.pbiTags,attachments:s.attachments,source:s.source??null,createdBy:s.createdBy??null,sourceMindMapNodeId:s.sourceMindMapNodeId??null,sourceWorkflowItemId:null,workflowItemRef:n?.(s.id)??null,pendingFlagUntil:l?.pendingFlagUntil??null,pendingSubscription:l?.pendingSubscription??!1,...l?.pendingTagIds?.length?{pendingTagIds:l.pendingTagIds}:{}});continue}a.push(bre(s))}return{created:{items:i},upsert:{items:a},deleted:{items:t??[]}}}function GMe(e){return e.created.items.length>0||e.upsert.items.length>0||e.deleted.items.length>0}function wre(e){const t=new Map;for(const a of e.issues){const s=[...a.path].reverse().find(l=>typeof l=="string");t.set(s??"value",(t.get(s??"value")??0)+1)}if(t.size===0)return"Could not submit: the change could not be validated.";const r=[...t].slice(0,3),o=r.map(([a,s])=>`${s} invalid ${a}`),i=t.size-r.length;return i>0&&o.push(`and ${i} more field(s)`),`Could not submit — ${o.join(", ")}. Re-pick the flagged value(s) and try again.`}function vre({getAccessTokenSilently:e}){return{async find(t){return M({path:`/action-items${Un(t)}`,getAccessTokenSilently:e,responseSchema:GZ})},async get(t){return M({path:`/action-items/${t}`,getAccessTokenSilently:e,responseSchema:pr})},async delete(t){return M({path:`/action-items/${t.id}/delete`,getAccessTokenSilently:e,options:{method:"POST",body:{reason:t.reason}},responseSchema:pr})},async restore(t){return M({path:`/action-items/${t.id}/restore`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:pr})},async create(t){const n={...t,smartsheetRef:null};return M({path:"/action-items",getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:pr})},async update({id:t,input:n}){return M({path:`/action-items/${t}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:pr})},async sync(t){const n=YZ.safeParse(t);if(!n.success)throw console.error("Invalid action-item sync payload",n.error.issues),new Error(wre(n.error));const r=n.data;await M({path:"/action-items/sync",getAccessTokenSilently:e,responseType:"void",options:{method:"POST",body:r}})},async requestAttachmentUploadLink(t){return M({path:"/action-items/attachments/upload-link",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:QZ})},async finalizeAttachmentUpload({attachmentId:t,payload:n}){return M({path:`/action-items/attachments/${t}/finalize`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:e7})},async getAttachmentPreviewLink({attachmentId:t,storageKey:n}){return M({path:`/action-items/attachments/${encodeURIComponent(t)}/preview${Un({storageKey:n})}`,getAccessTokenSilently:e,options:{method:"GET"},responseSchema:XZ})},async removeAttachment({actionItemId:t,attachmentId:n}){return M({path:`/action-items/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseSchema:pr})}}}function kre({getAccessTokenSilently:e}){return{async search(t){const n=RJ.parse(t);return M({path:`/bites/search${Un(n)}`,getAccessTokenSilently:e,responseSchema:OJ})},async ask(t){const n=MJ.parse(t);return M({path:"/bites/ask",getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:jJ})}}}const xre=v({actionItemIds:N(m().min(1))}),_re=v({triggered:te()}),eE=v({recordingState:w_,pausedAt:m().nullable().optional()}),tE=v({redactions:N(Nc)}),Sre=v({answer:m(),draft:v({taskName:m()}).nullable(),document:v({title:m(),content:$g}).nullable(),toolsUsed:N(m())});function Tre({getAccessTokenSilently:e}){return{async list(){return M({path:"/live-meetings",getAccessTokenSilently:e,responseSchema:X2})},async listTriageItems(t){return M({path:`/live-meetings/${t}/triage-items`,getAccessTokenSilently:e,responseSchema:YX})},async listClosedToday(t){return M({path:`/live-meetings/${t}/closed-today`,getAccessTokenSilently:e,responseSchema:ZX})},async findById(t){return M({path:`/live-meetings/${t}`,getAccessTokenSilently:e,responseSchema:Ap})},async setShared(t,n){return M({path:`/live-meetings/${t}/shares`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:Ap})},async updateBoardContext(t,n){return M({path:`/live-meetings/${t}/board-context`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:M_})},async updateBoardGroups(t,n){return M({path:`/live-meetings/${t}/board-groups`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:KL})},async createTriageItem(t,n){return M({path:`/live-meetings/${t}/triage-items`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:xre})},async ask(t,n){return M({path:`/live-meetings/${t}/ask`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:Sre})},async createRaidItem(t,n){return M({path:`/live-meetings/${t}/raid-items`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:xJ})},async captureSpan(t,n){return M({path:`/live/meetings/${t}/capture-span`,baseUrl:dt.streamApiBaseUrl,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:_re})},async pauseRecording(t){return M({path:`/live-meetings/${t}/recording/pause`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:eE})},async resumeRecording(t){return M({path:`/live-meetings/${t}/recording/resume`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:eE})},async createRedaction(t,n){return M({path:`/live-meetings/${t}/redactions`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:tE})},async strikeLast(t,n){return M({path:`/live-meetings/${t}/redactions/strike-last`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:tE})}}}const Ire=v({audiences:N(d7),presets:N(v({key:m(),label:m(),description:m(),grants:N(v({audience:m(),video:te()}))}
46)),managementKey:m()}),Ere=N(an),Are=({getAccessTokenSilently:e})=>({async list(){const t=await M({path:"/audiences",getAccessTokenSilently:e,responseSchema:Ire});return{audiences:t.audiences,presets:C2,managementKey:t.managementKey}},async listPeople(){return M({path:"/people",getAccessTokenSilently:e,responseSchema:Ere})},async setPersonAudiences(t,n){return M({path:`/people/${encodeURIComponent(t)}/audiences`,getAccessTokenSilently:e,options:{method:"PATCH",body:{audienceKeys:n}},responseSchema:an})},async setPersonSheets(t,n){return M({path:`/people/${encodeURIComponent(t)}/sheets`,getAccessTokenSilently:e,options:{method:"PATCH",body:{sheetKeys:n}},responseSchema:an})},async addMyEmail(t){return M({path:"/me/identities",getAccessTokenSilently:e,options:{method:"POST",body:{value:t}},responseSchema:an})},async removeMyEmail(t){return M({path:"/me/identities",getAccessTokenSilently:e,options:{method:"DELETE",body:{value:t}},responseSchema:an})}});function YMe(e){return e.status==="pending"}const Cre=v({redactionId:m().min(1),meetingId:m().min(1),meetingTitle:m(),meetingDate:m().nullable(),fromSec:j().min(0),toSec:j().min(0),source:N2,createdByPersonId:m().nullable(),createdByName:m().nullable(),createdAt:m(),text:m(),live:te().optional().default(!1)}),Nre=v({items:N(Cre),nextCursor:m().nullable()}),cu=v({redactions:N(Nc)});function Pre({getAccessTokenSilently:e}){return{async find(t){return M({path:`/meetings${Un(t)}`,getAccessTokenSilently:e,responseSchema:U7})},async findById(t){return M({path:`/meetings/${t}`,getAccessTokenSilently:e,responseSchema:rs})},async getLunaGeneratedSummary(t){return M({path:`/meetings/${t}/luna-summary`,getAccessTokenSilently:e,responseSchema:Ag})},async getCompletedActions(t){return M({path:`/meetings/${encodeURIComponent(t)}/completed-actions`,getAccessTokenSilently:e,responseSchema:n7})},async update({meetingId:t,input:n}){return M({path:`/meetings/${t}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:rs})},async assignReviewer({meetingId:t,input:n}){return M({path:`/meetings/${t}/reviewer`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:rs})},async setGrants({meetingId:t,input:n}){return M({path:`/meetings/${t}/grants`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:rs})},async setShared({meetingId:t,input:n}){return M({path:`/meetings/${t}/shares`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:rs})},async deleteMeeting({meetingId:t,input:n}){return M({path:`/meetings/${encodeURIComponent(t)}/delete`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:rs})},async restoreMeeting({meetingId:t}){return M({path:`/meetings/${encodeURIComponent(t)}/restore`,getAccessTokenSilently:e,options:{method:"POST",body:{}},responseSchema:rs})},async recordTranscriptCopies({meetingIds:t}){return M({path:"/meetings/transcript-copies",getAccessTokenSilently:e,options:{method:"POST",body:{meetingIds:t}},responseSchema:W7})},async getSummaryEmail(t){return M({path:`/meetings/${encodeURIComponent(t)}/summary-email`,getAccessTokenSilently:e,responseSchema:H7})},async findDeleted(){return M({path:"/meetings/deleted",getAccessTokenSilently:e,responseSchema:M7})},async getStats(){return M({path:"/meetings/stats",getAccessTokenSilently:e,responseSchema:j7})},async addRedaction({meetingId:t,input:n}){return M({path:`/meetings/${t}/redactions`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:cu})},async strikeLastRedaction({meetingId:t,input:n}){return M({path:`/meetings/${t}/redactions/strike-last`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:cu})},async listRedactions(t){return M({path:`/meetings/${t}/redactions`,getAccessTokenSilently:e,responseSchema:cu})},async approveRedaction({meetingId:t,redactionId:n,deleteItems:r}){return M({path:`/meetings/${t}/redactions/${n}/approve`,getAccessTokenSilently:e,options:{method:"POST",...r?{body:{deleteItems:r}}:{}},responseSchema:cu})},async rejectRedaction({meetingId:t,redactionId:n}){return M({path:`/meetings/${t}/redactions/${n}/reject`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:cu})},async listPendingRedactions(t){return M({path:`/meetings/redactions/pending${Un(t)}`,getAccessTokenSilently:e,responseSchema:Nre})},async getUntimedItems({meetingId:t,source:n}){const r="redactionId"in n?Un({redactionId:n.redactionId}):Un({spans:n.spans.map(({fromSec:o,toSec:i})=>`${o}-${i}`).join(",")});return M({path:`/meetings/${t}/redactions/untimed-items${r}`,getAccessTokenSilently:e,responseSchema:w7})}}}function Dre({getAccessTokenSilently:e}){return{async find(t){return M({path:`/raid-entries${Un(t)}`,getAccessTokenSilently:e,responseSchema:a7})},async get(t){return M({path:`/raid-entries/${t}`,getAccessTokenSilently:e,responseSchema:zo})},async delete(t){const n=s7.parse({reason:t.reason}),r=t.sync?"?sync=smartsheet":"";return M({path:`/raid-entries/${t.id}/delete${r}`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:zo})},async restore(t){return M({path:`/raid-entries/${t.id}/restore`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:zo})},async create(t){return M({path:"/raid-entries",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:zo})},async update({id:t,input:n,sync:r}){return M({path:`/raid-entries/${t}${r?"?sync=smartsheet":""}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:zo})},async sync(t){const n=l7.parse(t);await M({path:"/raid-entries/sync",getAccessTokenSilently:e,responseType:"void",options:{method:"POST",body:n}})}}}function Ore({getAccessTokenSilently:e}){const t=N(an);return{async listPeople(n){const r=n?Hee.parse(n):void 0;return M({path:`/people/search${Un(r)}`,getAccessTokenSilently:e,responseSchema:t})},async createPerson(n){return M({path:"/people/resolve",getAccessTokenSilently:e,responseSchema:an,options:{method:"POST",body:n}})}}}const nE=L.array(hd);function Rre({getAccessTokenSilently:e}){return{async getAudioUploadLink(){return M({path:"/audio/upload-link",getAccessTokenSilently:e,responseSchema:SI})},async listAudioBytes(){return M({path:"/audio",getAccessTokenSilently:e,responseSchema:nE})},async deleteAudioByte(t){await M({path:`/audio/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async submitAudioByte(t,n){return M({path:`/audio/${t}/submit`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:hd})},async getAudioResult(t){return M({path:`/audio/${t}`,getAccessTokenSilently:e,responseSchema:hd})},async transcribeAudioBlob(t){if(t.size===0)throw new Error("No audio was captured. Please try again.");const n=await M({path:"/audio/upload-link",getAccessTokenSilently:e,responseSchema:SI});return await rE(n,t),M({path:`/audio/${n.id}/transcribe`,getAccessTokenSilently:e,options:{method:"POST",headers:{Accept:"application/json"}},responseSchema:PJ})},async processAudioUploadStream(t,n){const r=await e({authorizationParams:{audience:dt.auth0Audience}}),o=new URL(`/audio/${t}/process/stream`,dt.apiBaseUrl).toString(),i=await fetch(o,{method:"POST",headers:{Authorization:`Bearer ${r}`,Accept:"text/event-stream","Content-Type":"application/json"},body:JSON.stringify({source:n.source??null}),signal:n.signal});if(!i.ok){const a=await h2(i),{code:s,message:l,requestId:c,details:h}=a.error,d=`API request failed (${i.status} ${i.statusText})`,p=l??d;throw new Kr({message:p,status:i.status,statusText:i.statusText,code:s,requestId:c,details:h})}if(!i.body)throw new Error("Audio processing stream did not return a response body");await Mre(i.body,n.onEvent)},async uploadAudioBlobToS3(t,n){return rE(t,n)},async createRealtimeSession(t){return M({path:"/audio/realtime-session",getAccessTokenSilently:e,options:{method:"POST",body:{language:t??null}},responseSchema:Pte})},async createRealtimeToken(t){return M({path:"/audio/realtime-token",getAccessTokenSilently:e,options:{method:"POST",body:{language:t??null}},responseSchema:Dte})},async commitTranscript(t,n){await M({path:`/audio/${t}/transcript`,getAccessTokenSilently:e,options:{method:"PATCH",body:{rawTranscriptText:n}},responseType:"void"})},async listWorkflowItems(){return M({path:"/audio/workflow-items",getAccessTokenSilently:e,responseSchema:nE})},async updateWorkflowItems(t,n){await M({path:`/audio/${t}/workflow-items`,getAccessTokenSilently:e,options:{method:"PATCH",body:{items:n}},responseType:"void"})},async patchWorkflowItem(t,n,r){await M({path:`/audio/${t}/workflow-items/${n}`,getAccessTokenSilently:e,options:{method:"PATCH",body:r},responseType:"void"})},async setWorkflowItemPendingMarks(t,n,r){await M({path:`/audio/${t}/workflow-items/${n}/subscription`,getAccessTokenSilently:e,options:{method:"PATCH",body:r},responseType:"void"})},async updateRaidWorkflow(t,n){await M({path:`/audio/${t}/raid-workflow`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseType:"void"})},async submitRaidWorkflows(t){return M({path:"/audio/raid-workflows/submit",getAccessTokenSilently:e,options:{method:"POST",body:{ids:t}},responseSchema:JZ})}}}async function rE(e,t){const n=new FormData,r=e.presignedPost.fields;for(const[s,l]of Object.entries(r))n.append(s,l);n.append("file",t);const o=await fetch(e.presignedPost.url,{method:"POST",body:n});if(o.ok)return;const i=await o.text(),a=i?` - ${i}`:"";throw new Error(`Audio upload failed (${o.status} ${o.statusText})${a}`)}
46async function Mre(e,t){const n=e.getReader(),r=new TextDecoder;let o="",i=!1;try{for(;;){const{done:s,value:l}=await n.read();if(s)break;o+=r.decode(l,{stream:!0}),o=o.replace(/\r\n/g,`
47`);let c=o.indexOf(`
48
49`);for(;c!==-1;){const h=o.slice(0,c);o=o.slice(c+2);const d=oE(h);d&&((d.type==="done"||d.type==="error")&&(i=!0),t(d)),c=o.indexOf(`
50
51`)}}o+=r.decode();const a=oE(o);a&&((a.type==="done"||a.type==="error")&&(i=!0),t(a))}finally{n.releaseLock()}if(!i)throw new Error("Audio processing stream ended before completion")}function oE(e){const t=e.trim();if(t.length===0)return null;const n=[];for(const o of t.split(`
52`))o.startsWith(":")||o.startsWith("data:")&&n.push(o.slice(5).trimStart());if(n.length===0)return null;const r=JSON.parse(n.join(`
53`));return NJ.parse(r)}function jre({getAccessTokenSilently:e}){return{async bootstrap(t){const n=iQ.parse(t);return M({path:"/me/bootstrap",getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:CI})},async getCurrentUser(){return M({path:"/me",getAccessTokenSilently:e,responseSchema:CI})},async updateCommandCenterDefaults(t){return M({path:"/me/command-center-defaults",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:oL})},async updateReactionGlyphs(t){return M({path:"/me/reaction-glyphs",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:yL})},async updateMeetingDisplayDefaults(t){return M({path:"/me/meeting-display-defaults",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:cL})},async updateDashboardState(t){return M({path:"/me/dashboard-state",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:aL})},async updatePointsDefaults(t){return M({path:"/me/points-defaults",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:uL})},async updateLandingDefaults(t){return M({path:"/me/landing-defaults",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:lL})},async updateDictationDefaults(t){return M({path:"/me/dictation-defaults",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:dL})},async updateCalendarProfiles(t){return M({path:"/me/calendar-profiles",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:C_})},async updateEmailIngestionDefaults(t){return M({path:"/me/email-ingestion-defaults",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:I_})},async updateNotificationPreferences(t){return M({path:"/me/notification-preferences",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:mL})}}}function $re({getAccessTokenSilently:e}){return{async list(){return(await M({path:"/organizations",getAccessTokenSilently:e,responseSchema:Lne})).items}}}function Lre({getAccessTokenSilently:e}){return{async find(t){return M({path:`/notifications${Un(t)}`,getAccessTokenSilently:e,responseSchema:SX})},async get(t){try{return await M({path:`/notifications/${encodeURIComponent(t)}`,getAccessTokenSilently:e,responseSchema:BL,expectedStatuses:[404]})}catch(n){if(n instanceof Kr&&n.status===404)return null;throw n}},async delete(t){await M({path:`/notifications/${encodeURIComponent(t)}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async deleteAll(){await M({path:"/notifications",getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async markRead(t){await M({path:`/notifications/${encodeURIComponent(t)}/read`,getAccessTokenSilently:e,options:{method:"POST"},responseType:"void"})},async markItemRead(t,n){await M({path:`/notifications/${encodeURIComponent(t)}/items/${encodeURIComponent(n)}/read`,getAccessTokenSilently:e,options:{method:"POST"},responseType:"void"})},async markUnread(t){await M({path:`/notifications/${encodeURIComponent(t)}/unread`,getAccessTokenSilently:e,options:{method:"POST"},responseType:"void"})},async markAllRead(){await M({path:"/notifications/mark-all-read",getAccessTokenSilently:e,options:{method:"POST"},responseType:"void"})}}}function zre({getAccessTokenSilently:e}){return{async subscribe(t){await M({path:"/web-push/subscriptions",getAccessTokenSilently:e,options:{method:"POST",body:t},responseType:"void"})},async unsubscribe(t){await M({path:"/web-push/subscriptions",getAccessTokenSilently:e,options:{method:"DELETE",body:{endpoint:t}},responseType:"void"})}}}function Ure({getAccessTokenSilently:e}){return{async list(){return M({path:"/follow-rules",getAccessTokenSilently:e,responseSchema:see})},async create(t){return M({path:"/follow-rules",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:fv})},async update(t,n){return M({path:`/follow-rules/${t}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:fv})},async remove(t){await M({path:`/follow-rules/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})}}}function Fre({getAccessTokenSilently:e}){return{async list(t){return M({path:`/subscriptions${Un({entityType:t})}`,getAccessTokenSilently:e,responseSchema:XX})},async subscribe(t){await M({path:"/subscriptions",getAccessTokenSilently:e,options:{method:"POST",body:t},responseType:"void"})},async unsubscribe(t){await M({path:"/subscriptions",getAccessTokenSilently:e,options:{method:"DELETE",body:t},responseType:"void"})},async addFollowers(t){return M({path:"/subscriptions/followers",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:oee})},async removeFollowers(t){return M({path:"/subscriptions/followers",getAccessTokenSilently:e,options:{method:"DELETE",body:t},responseSchema:iee})}}}function Wre({getAccessTokenSilently:e}){return{async items(){return M({path:"/library/items",getAccessTokenSilently:e,responseSchema:vee})},async list({tagIds:t}){const n={tagIds:t.length>0?t.join(","):void 0};return M({path:`/library${Un(n)}`,getAccessTokenSilently:e,responseSchema:_ee})},async update(t){await M({path:"/library/items",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseType:"void"})},async clear(t){await M({path:"/library/items",getAccessTokenSilently:e,options:{method:"DELETE",body:t},responseType:"void"})}}}function Bre({getAccessTokenSilently:e}){return{async listShareMessages({entityType:t,entityId:n}){return M({path:`/shares${Un({entityType:t,entityId:n})}`,getAccessTokenSilently:e,responseSchema:u7})}}}function Hre({getAccessTokenSilently:e}){return{async list(){return M({path:"/tags",getAccessTokenSilently:e,responseSchema:bee})},async create(t){return M({path:"/tags",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:yv})},async update(t,n){return M({path:`/tags/${encodeURIComponent(t)}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:yv})},async remove(t){await M({path:`/tags/${encodeURIComponent(t)}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})}}}function qre({getAccessTokenSilently:e}){return{async list(){return M({path:"/automations",getAccessTokenSilently:e,responseSchema:LQ})},async create(t){return M({path:"/automations",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:dv,expectedStatuses:[400,409]})},async updateStatus(t,n){return M({path:`/automations/${encodeURIComponent(t)}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:dv})},async remove(t){await M({path:`/automations/${encodeURIComponent(t)}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async getBrief(t){return M({path:`/automations/${encodeURIComponent(t)}/brief`,getAccessTokenSilently:e,responseSchema:WQ})}}}function Vre({getAccessTokenSilently:e}){return{async page(t){const n=new URLSearchParams({lane:t.lane});
53return t.cursor&&n.set("cursor",t.cursor),t.limit&&n.set("limit",String(t.limit)),t.since&&n.set("since",t.since),t.until&&n.set("until",t.until),M({path:`/feed/catch-up/v2?${n.toString()}`,getAccessTokenSilently:e,responseSchema:Eee})}}}function Kre({getAccessTokenSilently:e}){return{async create(t,n){return(await M({path:`/live/meetings/${t}/clips`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:$I})).clip},async setGrants(t,n){return(await M({path:`/clips/${t}/grants`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:$I})).clip},async remove(t){await M({path:`/clips/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})}}}const Gre=v({id:m(),storageKey:m(),presignedPost:v({url:m(),fields:jt(m(),m())})});function Yre({getAccessTokenSilently:e}){return{async summary(t){const n=await Promise.all(S2(t,wL).map(r=>M({path:"/reactions/summary",getAccessTokenSilently:e,options:{method:"POST",body:{refs:r}},responseSchema:QJ})));return{entities:Object.assign({},...n.map(r=>r.entities))}},async react(t){await M({path:"/reactions",getAccessTokenSilently:e,options:{method:"POST",body:t},responseType:"void"})},async unreact(t){await M({path:"/reactions",getAccessTokenSilently:e,options:{method:"DELETE",body:t},responseType:"void"})},async glyphUrls(){return M({path:"/reactions/glyph-urls",getAccessTokenSilently:e,responseSchema:JJ})},async glyphUploadLink(t){const n=new URLSearchParams({contentType:t,purpose:"reactionGlyph"});return M({path:`/image/upload-link?${n.toString()}`,getAccessTokenSilently:e,responseSchema:Gre})}}}function Zre({getAccessTokenSilently:e}){return{async search(t){const n=new URLSearchParams({q:t}),{items:r}=await M({path:`/gifs/search?${n.toString()}`,getAccessTokenSilently:e,responseSchema:RI});return r},async trending(){const{items:t}=await M({path:"/gifs/trending",getAccessTokenSilently:e,responseSchema:RI});return t}}}function Jre({getAccessTokenSilently:e}){return{async list(t,n,r){const o=new URLSearchParams({entityType:t.entityType,entityId:t.entityId});return n&&o.set("cursor",n),r&&o.set("parentId",r),M({path:`/comments?${o.toString()}`,getAccessTokenSilently:e,responseSchema:XQ})},async counts(t){const n=await Promise.all(S2(t,zL).map(r=>M({path:"/comments/counts",getAccessTokenSilently:e,options:{method:"POST",body:{refs:r}},responseSchema:eX})));return{entities:Object.assign({},...n.map(r=>r.entities))}},async mentionable(t){const n=new URLSearchParams({entityType:t.entityType,entityId:t.entityId});return M({path:`/comments/mentionable?${n.toString()}`,getAccessTokenSilently:e,responseSchema:tX})},async create(t,n,r){return M({path:"/comments",getAccessTokenSilently:e,options:{method:"POST",body:{...t,...n.body?{body:n.body}:{},...n.media?{media:n.media}:{},...r?{parentId:r}:{}}},responseSchema:pv})},async update(t,n){return M({path:`/comments/${t}`,getAccessTokenSilently:e,options:{method:"PATCH",body:{body:n}},responseSchema:pv})},async remove(t){await M({path:`/comments/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})}}}function Qre({getAccessTokenSilently:e}){return{async listEntityHistory(t,n){return M({path:`/op-logs/entity${Un({entityType:t,entityId:n})}`,getAccessTokenSilently:e,responseSchema:Pee})},async listActivity({scope:t,cursor:n,limit:r,entityType:o,destination:i,personId:a}){return M({path:`/op-logs/activity${Un({scope:t,cursor:n,limit:r,entityType:o,destination:i,personId:a})}`,getAccessTokenSilently:e,responseSchema:Oee})}}}function Xre({getAccessTokenSilently:e}){return{async find(){return M({path:"/app-users",getAccessTokenSilently:e,responseSchema:$ee})},async impersonationPreview(t){return M({path:`/impersonation/preview/${encodeURIComponent(t)}`,getAccessTokenSilently:e,responseSchema:pne})}}}function eoe({getAccessTokenSilently:e}){return{async listSchedules(){return M({path:"/schedules",getAccessTokenSilently:e,responseSchema:L.array(wb),options:{method:"GET"}})},async getSchedule(t){return M({path:`/schedules/${t}`,getAccessTokenSilently:e,responseSchema:wb,options:{method:"GET"}})},async updateSchedule(t,n){return M({path:`/schedules/${t}`,getAccessTokenSilently:e,responseSchema:wb,options:{method:"PATCH",body:n}})},async listTasks(t){return M({path:`/schedules/${t}/tasks`,getAccessTokenSilently:e,responseSchema:Xee,options:{method:"GET"}})},async createTask(t,n){return M({path:`/schedules/${t}/tasks`,getAccessTokenSilently:e,responseSchema:Op,options:{method:"POST",body:n}})},async updateTask(t,n,r){return M({path:`/schedules/${t}/tasks/${n}`,getAccessTokenSilently:e,responseSchema:ete,options:{method:"PATCH",body:r}})},async deleteTask(t,n,r){const o=r?.cascade?"?cascade=true":"";return M({path:`/schedules/${t}/tasks/${n}${o}`,getAccessTokenSilently:e,responseSchema:tte,options:{method:"DELETE"}})},async getSchedulingExplanation(t,n){return M({path:`/schedules/${t}/tasks/${n}/scheduling-explanation`,getAccessTokenSilently:e,responseSchema:Qee,options:{method:"GET"}})},async listTaskDependencies(t,n){return M({path:`/schedules/${t}/tasks/${n}/dependencies`,getAccessTokenSilently:e,responseSchema:L.array(vb),options:{method:"GET"}})},async createDependency(t,n){return M({path:`/schedules/${t}/dependencies`,getAccessTokenSilently:e,responseSchema:vb,options:{method:"POST",body:n}})},async updateDependency(t,n,r){return M({path:`/schedules/${t}/dependencies/${n}`,getAccessTokenSilently:e,responseSchema:vb,options:{method:"PATCH",body:r}})},async deleteDependency(t,n){return M({path:`/schedules/${t}/dependencies/${n}`,getAccessTokenSilently:e,responseType:"void",options:{method:"DELETE"}})},async searchTasks(t,n){return M({path:`/schedules/${t}/tasks/search?q=${encodeURIComponent(n)}`,getAccessTokenSilently:e,responseSchema:L.array(nte),options:{method:"GET"}})},async getCellHistory(t,n,r){return M({path:`/schedules/${t}/tasks/${n}/cell-changes?field=${encodeURIComponent(r)}`,getAccessTokenSilently:e,responseSchema:L.array(VI),options:{method:"GET"}})},async getActivityFeed(t,n,r=100){return M({path:`/schedules/${t}/cell-changes/feed?taskIds=${n.join(",")}&limit=${r}`,getAccessTokenSilently:e,responseSchema:L.array(VI),options:{method:"GET"}})},async pollSmartsheet(t){return M({path:`/schedules/${t}/smartsheet/poll`,getAccessTokenSilently:e,responseSchema:L.object({updated:L.number(),created:L.number()}),options:{method:"POST"}})}}}function toe({getAccessTokenSilently:e}){return{async listProfiles(t,n){return M({path:`/me/memory-profiles?entityType=${encodeURIComponent(t)}&entityId=${encodeURIComponent(n)}`,getAccessTokenSilently:e,responseSchema:ute})},async createProfile(t){const n=dz.parse(t);return M({path:"/me/memory-profiles",getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:Rp})},async updateProfile(t,n){const r=lte.parse(n);return M({path:`/me/memory-profiles/${t}`,getAccessTokenSilently:e,options:{method:"PUT",body:r},responseSchema:Rp})},async deleteProfile(t){return M({path:`/me/memory-profiles/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async setActiveProfile(t){const n=cte.parse(t);return M({path:"/me/memory-profiles/active",getAccessTokenSilently:e,options:{method:"PUT",body:n},responseType:"void"})}}}function noe({getAccessTokenSilently:e}){return{async listViews(t){return M({path:`/schedules/${t}/views`,getAccessTokenSilently:e,responseSchema:L.array(kb),options:{method:"GET"}})},async createView(t,n){return M({path:`/schedules/${t}/views`,getAccessTokenSilently:e,responseSchema:kb,options:{method:"POST",body:n}})},async updateView(t,n,r){return M({path:`/schedules/${t}/views/${n}`,getAccessTokenSilently:e,responseSchema:kb,options:{method:"PATCH",body:r}})},async deleteView(t,n){return M({path:`/schedules/${t}/views/${n}`,getAccessTokenSilently:e,responseType:"void",options:{method:"DELETE"}})},async parseFilter(t,n){return M({path:`/schedules/${t}/filters/parse`,getAccessTokenSilently:e,responseSchema:bte,options:{method:"POST",body:n}})}}}function roe({getAccessTokenSilently:e}){return{async listProfiles(){return M({path:"/dashboard-profiles",getAccessTokenSilently:e,responseSchema:L.array(xb),options:{method:"GET"}})},async getHeat(t){return M({path:`/dashboard-profiles/heat${Un({onlyMine:t})}`,getAccessTokenSilently:e,responseSchema:kte,options:{method:"GET"}})},async createProfile(t){return M({path:"/dashboard-profiles",getAccessTokenSilently:e,responseSchema:xb,options:{method:"POST",body:t}})},async updateProfile(t,n){return M({path:`/dashboard-profiles/${t}`,getAccessTokenSilently:e,responseSchema:xb,options:{method:"PATCH",body:n}})},async deleteProfile(t){return M({path:`/dashboard-profiles/${t}`,getAccessTokenSilently:e,responseType:"void",options:{method:"DELETE"}})}}}function ooe({getAccessTokenSilently:e}){return{async getStatus(){return M({path:"/schedule-mirror/status",getAccessTokenSilently:e,responseSchema:une})},async run(t){return M({path:"/schedule-mirror/run",getAccessTokenSilently:e,options:{method:"POST",body:{destination:t}},responseSchema:dne,expectedStatuses:[409]})}}}const iE="assignable=1";function ioe({getAccessTokenSilently:e}){return{async listPeople(t){const n=t?`?search=${encodeURIComponent(t)}&${iE}`:`?${iE}`;return M({path:`/people${n}`,getAccessTokenSilently:e,responseSchema:L.array(an),options:{method:"GET"}})},async createPerson(t){return M({path:"/people/resolve",getAccessTokenSilently:e,responseSchema:an,options:{method:"POST",body:t}})}}}function aoe({getAccessTokenSilently:e}){return{async listForTask(t,n,r=!1,o){const i=new URLSearchParams;r&&i.set("includeDescendants","true"),o&&i.set("cursor",o);const a=i.toString();return M({path:`/schedules/${t}/tasks/${n}/comments${a?`?${a}`:""}`,getAccessTokenSilently:e,responseSchema:Kee})},async create(t,n,r){return M({path:`/schedules/${t}/tasks/${n}/comments`,getAccessTokenSilently:e,responseSchema:cz,options:{method:"POST",body:r}})},async deleteComment(t,n,r){await M({path:`/schedules/${t}/tasks/${n}/comments/${r}`,getAccessTokenSilently:e,responseType:"void",options:{method:"DELETE"}})}}}const soe=v({destination:m(),entityType:R(["actionItem","raidEntry","schedule"]),lastSmartsheetSyncAt:m().nullable(),lastSyncError:m().nullable(),lastSyncErrorAt:m().nullable()}),aE=v({results:N(v({destination:m(),enqueued:j(),errors:j()}))});function loe({getAccessTokenSilently:e}){return{async getSyncState(t){return M({path:`/smartsheet/sync-state${Un({entityType:t})}`,getAccessTokenSilently:e,responseSchema:N(soe)})},async pollActionItems(){return M({path:"/action-items/smartsheet/poll",getAccessTokenSilently:e,responseSchema:aE,options:{method:"POST"}})},async pollRaidEntries(){return M({path:"/raid-entries/smartsheet/poll",getAccessTokenSilently:e,responseSchema:aE,options:{method:"POST"}})}}}const coe=60*1024;function uoe(e){return new TextEncoder().encode(JSON.stringify(e)).length<=coe}function doe({getAccessTokenSilently:e}){return{async list(){return M({path:"/mind-maps",getAccessTokenSilently:e,responseSchema:_te})},async listForMeeting(t){return M({path:`/meetings/${encodeURIComponent(t)}/mind-maps`,getAccessTokenSilently:e,responseSchema:Tte})},async get(t){return M({path:`/mind-maps/${t}`,getAccessTokenSilently:e,responseSchema:_b})},async create(t){return M({path:"/mind-maps",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:_b})},async update({id:t,input:n}){return M({path:`/mind-maps/${t}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:jg})},async delete(t){return M({path:`/mind-maps/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async syncNodes({mapId:t,input:n,signal:r,keepalive:o=!1}){return M({path:`/mind-maps/${t}/nodes`,getAccessTokenSilently:e,options:{method:"PUT",body:n,signal:r,keepalive:o&&uoe(n)},responseSchema:_b})},async updateNodeFlags({mapId:t,nodeId:n,input:r}){return M({path:`/mind-maps/${t}/nodes/${n}/flags`,getAccessTokenSilently:e,options:{method:"PATCH",body:r},responseSchema:yz})},async sendCopy({id:t,input:n}){return M({path:`/mind-maps/${t}/copy`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:Ite})},async requestImageUploadLink(t){return M({path:"/mind-maps/images/upload-link",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:Ete})},async finalizeImageUpload({imageId:t,payload:n}){return M({path:`/mind-maps/images/${t}/finalize`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:Ate})},async getImagePreviewLink({imageId:t}){return M({path:`/mind-maps/images/${encodeURIComponent(t)}/preview`,getAccessTokenSilently:e,options:{method:"GET"},responseSchema:Cte})},async getBatchImageUrls({mapId:t,storageKeys:n}){return M({path:`/mind-maps/${t}/image-urls`,getAccessTokenSilently:e,options:{method:"POST",body:{storageKeys:n}},responseSchema:Nte})}}}function hoe({getAccessTokenSilently:e}){return{async requestUploadLink(t){return M({path:"/notes/attachments/upload-link",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:Lte})}}}async function ZMe(e,t){const n=await e.requestUploadLink({contentType:t.type,sizeBytes:t.size}),r=new FormData;for(const[i,a]of Object.entries(n.upload.fields))r.append(i,a);r.append("file",t);const o=await fetch(n.upload.url,{method:"POST",body:r});if(!o.ok){const i=await o.text();throw new Error(`Attachment upload failed (${o.status} ${o.statusText})${i?`: ${i}`:""}`)}return{attachmentId:n.attachmentId,previewUrl:n.preview.url}}function moe({getAccessTokenSilently:e}){return{async list(t){const n=t?.meetingId?`?meetingId=${encodeURIComponent(t.meetingId)}`:"";return M({path:`/notes${n}`,getAccessTokenSilently:e,responseSchema:Ote})},async listForMeeting(t){return M({path:`/meetings/${encodeURIComponent(t)}/notes`,getAccessTokenSilently:e,responseSchema:Mte})},async get(t){return M({path:`/notes/${t}`,getAccessTokenSilently:e,responseSchema:Vu})},async create(t){return M({path:"/notes",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:Vu})},async update({id:t,input:n}){return M({path:`/notes/${t}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:Vu})},async delete(t){return M({path:`/notes/${t}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void"})},async sendCopy({id:t,input:n}){return M({path:`/notes/${t}/send-copy`,getAccessTokenSilently:e,options:{method:"POST",body:n},responseSchema:jte})}}}function poe({getAccessTokenSilently:e}){return{async reportEvent(t){return M({path:"/points/events",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:fQ})},async leaderboard({period:t,timezone:n,weekStart:r}={}){const o=new URLSearchParams;t&&o.set("period",t),n&&o.set("timezone",n),r&&o.set("weekStart",r);const i=o.toString();return M({path:`/points/leaderboard${i?`?${i}`:""}`,getAccessTokenSilently:e,responseSchema:xQ})}
53,async daily(t,n){const r=new URLSearchParams({timezone:t});return n&&r.set("userId",n),M({path:`/points/daily?${r.toString()}`,getAccessTokenSilently:e,responseSchema:SQ})},async audit({limit:t,before:n,type:r}={}){const o=new URLSearchParams;t&&o.set("limit",String(t)),n&&o.set("before",n),r&&o.set("type",r);const i=o.toString();return M({path:`/points/audit${i?`?${i}`:""}`,getAccessTokenSilently:e,responseSchema:yQ})}}}function foe({getAccessTokenSilently:e}){return{async getSessionByEvent(t){try{return await M({path:`/prep/sessions/by-event/${encodeURIComponent(t)}`,getAccessTokenSilently:e,responseSchema:Sb,expectedStatuses:[404]})}catch(n){if(n instanceof Kr&&n.status===404)return null;throw n}},async upsertSession(t){return M({path:"/prep/sessions",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:Sb})},async generateBrief(t){return M({path:`/prep/sessions/by-event/${encodeURIComponent(t)}/brief`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:Sb})}}}function goe({getAccessTokenSilently:e}){return{evidence:(t,n)=>M({path:`/provenance/${t}/${encodeURIComponent(n)}/evidence`,getAccessTokenSilently:e,responseSchema:CZ})}}function yoe({getAccessTokenSilently:e}){return{async getStatus(){return M({path:"/recall/calendar/status",getAccessTokenSilently:e,responseSchema:Pne})},async getAuthorizeUrl(){return M({path:"/recall/calendar/authorize-url",getAccessTokenSilently:e,responseSchema:Nne})},async disconnect(){await M({path:"/recall/calendar/disconnect",getAccessTokenSilently:e,options:{method:"POST"},responseSchema:v({ok:te()})})},async invite(t){return M({path:"/recall/invite",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:Cne,expectedStatuses:[409]})},async getRecordingSettings(){return M({path:"/recall/recording-settings",getAccessTokenSilently:e,responseSchema:bv})},async setRecordingSettings(t){return M({path:"/recall/recording-settings",getAccessTokenSilently:e,options:{method:"PUT",body:t},responseSchema:bv})},async getUpcomingEvents(t){return M({path:`/recall/calendar/events${t?`?days=${String(t)}`:""}`,getAccessTokenSilently:e,responseSchema:jne})},async setOccurrenceGrants(t,n){await M({path:`/recall/calendar/occurrences/${encodeURIComponent(t)}/grants`,getAccessTokenSilently:e,options:{method:"PUT",body:n},responseType:"void"})},async setOccurrenceShared(t,n){await M({path:`/recall/calendar/occurrences/${encodeURIComponent(t)}/shares`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseType:"void"})},async sync(){return M({path:"/recall/calendar/sync",getAccessTokenSilently:e,options:{method:"POST"},responseSchema:Dne})}}}function boe({getAccessTokenSilently:e}){return{async getStatus(){return M({path:"/modules",getAccessTokenSilently:e,responseSchema:qne})},async getConsentUrl(t){return M({path:`/modules/${t}/consent-url`,getAccessTokenSilently:e,responseSchema:Cz})}}}function woe({getAccessTokenSilently:e}){return{async getAuthorizeUrl(){return M({path:"/people/import/authorize-url",getAccessTokenSilently:e,responseSchema:v({url:m()})})}}}function voe({getAccessTokenSilently:e}){return{async getMembers(){return M({path:"/admin/members",getAccessTokenSilently:e,responseSchema:Pz})},async getConnections(){return M({path:"/admin/connections",getAccessTokenSilently:e,responseSchema:tre})},async getUsage(t){const n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new URLSearchParams({days:String(t),timezone:n});return M({path:`/admin/usage?${r.toString()}`,getAccessTokenSilently:e,responseSchema:are})},async getOrganizations(){return M({path:"/admin/organizations",getAccessTokenSilently:e,responseSchema:Qne})},async getOrgModules(t){return M({path:`/admin/organizations/${encodeURIComponent(t)}/modules`,getAccessTokenSilently:e,responseSchema:YI})},async setOrgModuleState(t,n,r){return M({path:`/admin/organizations/${encodeURIComponent(t)}/modules/${n}`,getAccessTokenSilently:e,options:{method:"PUT",body:{state:r}},responseSchema:YI})},async getOrgConsentUrl(t,n){return M({path:`/admin/organizations/${encodeURIComponent(t)}/modules/${n}/consent-url`,getAccessTokenSilently:e,options:{method:"POST",body:{}},responseSchema:Cz})}}}function koe({getAccessTokenSilently:e}){return{async getMembers(){return M({path:"/members",getAccessTokenSilently:e,responseSchema:Pz})},async grantCapabilities(t,n){return M({path:`/members/${encodeURIComponent(t)}/capabilities/grant`,getAccessTokenSilently:e,options:{method:"POST",body:{capabilities:n}},responseSchema:Im})},async revokeCapabilities(t,n){return M({path:`/members/${encodeURIComponent(t)}/capabilities/revoke`,getAccessTokenSilently:e,options:{method:"POST",body:{capabilities:n}},responseSchema:Im})},async assignBundle(t,n){return M({path:`/members/${encodeURIComponent(t)}/bundle`,getAccessTokenSilently:e,options:{method:"POST",body:{bundle:n}},responseSchema:Im})},async resumeTranscriptCopy(t){return M({path:`/members/${encodeURIComponent(t)}/transcript-copy/resume`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:Im})}}}function xoe({getAccessTokenSilently:e}){return{async activate(t){return M({path:"/firefight/activate",getAccessTokenSilently:e,options:{method:"POST",body:t},responseSchema:Mp})},async revoke(t){return M({path:`/firefight/${encodeURIComponent(t)}/revoke`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:Mp})},async getSession(){return M({path:"/firefight/session",getAccessTokenSilently:e,responseSchema:Vne})},async listSessions(){return M({path:"/firefight/sessions",getAccessTokenSilently:e,responseSchema:Yne})}}}const sE=N(an);function _oe({getAccessTokenSilently:e}){return{async list(){return M({path:"/admin/people",getAccessTokenSilently:e,responseSchema:sE})},async listNeedingReview(){return M({path:"/admin/people/review",getAccessTokenSilently:e,responseSchema:sE})},async get(t){return M({path:`/admin/people/${encodeURIComponent(t)}`,getAccessTokenSilently:e,responseSchema:an})},async update(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}`,getAccessTokenSilently:e,options:{method:"PATCH",body:n},responseSchema:an})},async addEmail(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/emails`,getAccessTokenSilently:e,options:{method:"POST",body:{address:n}},responseSchema:an})},async removeEmail(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/emails`,getAccessTokenSilently:e,options:{method:"DELETE",body:{address:n}},responseSchema:an})},async setPrimaryEmail(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/primary-email`,getAccessTokenSilently:e,options:{method:"POST",body:{address:n}},responseSchema:an})},async setHidden(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/hidden`,getAccessTokenSilently:e,options:{method:"PUT",body:{hidden:n}},responseSchema:an})},async confirm(t){return M({path:`/admin/people/${encodeURIComponent(t)}/confirm`,getAccessTokenSilently:e,options:{method:"POST"},responseSchema:an})},async setMeetingHistory(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/meeting-history`,getAccessTokenSilently:e,options:{method:"PUT",body:{from:n}},responseSchema:an})},async mergePreview(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/merge-preview?into=${encodeURIComponent(n)}`,getAccessTokenSilently:e,responseSchema:qee})},async merge(t,n){return M({path:`/admin/people/${encodeURIComponent(t)}/merge`,getAccessTokenSilently:e,options:{method:"POST",body:{intoPersonId:n}},responseSchema:Vee})}}}function Bi(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>vre({getAccessTokenSilently:e}),[e])}function Soe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Are({getAccessTokenSilently:e}),[e])}function Hn(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Pre({getAccessTokenSilently:e}),[e])}function tS(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Tre({getAccessTokenSilently:e}),[e])}function Hi(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Dre({getAccessTokenSilently:e}),[e])}function Toe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>
53Ore({getAccessTokenSilently:e}),[e])}function Ioe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Rre({getAccessTokenSilently:e}),[e])}function JMe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>kre({getAccessTokenSilently:e}),[e])}function Go(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>jre({getAccessTokenSilently:e}),[e])}function qi(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Lre({getAccessTokenSilently:e}),[e])}function Eoe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>zre({getAccessTokenSilently:e}),[e])}function Dc(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Fre({getAccessTokenSilently:e}),[e])}function Lg(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Ure({getAccessTokenSilently:e}),[e])}function QMe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Wre({getAccessTokenSilently:e}),[e])}function Aoe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Bre({getAccessTokenSilently:e}),[e])}function XMe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Hre({getAccessTokenSilently:e}),[e])}function ch(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>qre({getAccessTokenSilently:e}),[e])}function zg(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Yre({getAccessTokenSilently:e}),[e])}function eje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Vre({getAccessTokenSilently:e}),[e])}function Coe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Kre({getAccessTokenSilently:e}),[e])}function tje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Jre({getAccessTokenSilently:e}),[e])}function nje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Zre({getAccessTokenSilently:e}),[e])}function jz(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Qre({getAccessTokenSilently:e}),[e])}function $z(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>Xre({getAccessTokenSilently:e}),[e])}function rr(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>eoe({getAccessTokenSilently:e}),[e])}function rje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>noe({getAccessTokenSilently:e}),[e])}function oje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>roe({getAccessTokenSilently:e}),[e])}function ije(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>toe({getAccessTokenSilently:e}),[e])}function Lz(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>ioe({getAccessTokenSilently:e}),[e])}function aje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>aoe({getAccessTokenSilently:e}),[e])}function sje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>loe({getAccessTokenSilently:e}),[e])}function Vi(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>doe({getAccessTokenSilently:e}),[e])}function Hs(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>moe({getAccessTokenSilently:e}),[e])}function lje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>hoe({getAccessTokenSilently:e}),[e])}function Ug(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>poe({getAccessTokenSilently:e}),[e])}function nS(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>foe({getAccessTokenSilently:e}),[e])}function Noe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>ooe({getAccessTokenSilently:e}),[e])}function uh(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>yoe({getAccessTokenSilently:e}),[e])}function zz(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>boe({getAccessTokenSilently:e}),[e])}function cje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>woe({getAccessTokenSilently:e}),[e])}function dh(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>voe({getAccessTokenSilently:e}),[e])}function Fg(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>xoe({getAccessTokenSilently:e}),[e])}function hh(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>koe({getAccessTokenSilently:e}),[e])}function uje(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>goe({getAccessTokenSilently:e}),[e])}function So(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>_oe({getAccessTokenSilently:e}),[e])}function Poe(){const{getAccessTokenSilently:e}=Pe();return g.useMemo(()=>$re({getAccessTokenSilently:e}),[e])}function Doe(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Ooe=e=>{switch(e){case"success":return joe;
vendor: 6,274 bytes, line 53
53case"info":return Loe;case"warning":return $oe;case"error":return zoe;default:return null}},Roe=Array(12).fill(0),Moe=({visible:e,className:t})=>se.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},se.createElement("div",{className:"sonner-spinner"},Roe.map((n,r)=>se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),joe=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),$oe=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Loe=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),zoe=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Uoe=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},se.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),se.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Foe=()=>{const[e,t]=se.useState(document.hidden);return se.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let xv=1;class Woe{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:xv++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,a;const s=o.then(async c=>{if(a=["resolve",c],se.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(Hoe(c)&&!c.ok){i=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,b=typeof d=="object"&&!se.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:p,...b})}else if(c instanceof Error){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,p=typeof n.description=="function"?await n.description(c):n.description,b=typeof d=="object"&&!se.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:p,...b})}else if(n.success!==void 0){i=!1;const d=typeof n.success=="function"?await n.success(c):n.success,p=typeof n.description=="function"?await n.description(c):n.description,b=typeof d=="object"&&!se.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:p,...b})}}).catch(async c=>{if(a=["reject",c],n.error!==void 0){i=!1;const h=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,f=typeof h=="object"&&!se.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:d,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,h)=>s.then(()=>a[0]==="reject"?h(a[1]):c(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||xv++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Sr=new Woe,Boe=(e,t)=>{const n=t?.id||xv++;return Sr.addToast({title:e,...t,id:n}),n},Hoe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qoe=Boe,Voe=()=>Sr.toasts,Koe=()=>Sr.getActiveToasts(),rt=Object.assign(qoe,{success:Sr.success,info:Sr.info,warning:Sr.warning,error:Sr.error,custom:Sr.custom,message:Sr.message,promise:Sr.promise,dismiss:Sr.dismiss,loading:Sr.loading},{getHistory:Voe,getToasts:Koe});Do
vendor: 14,874 bytes, line 53
53e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
vendor: 1,982 bytes, line 53
53Em(e){return e.label!==void 0}const Goe=3,Yoe="24px",Zoe="16px",lE=4e3,Joe=356,Qoe=14,Xoe=45,eie=200;function ni(...e){return e.filter(Boolean).join(" ")}function tie(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const nie=e=>{var t,n,r,o,i,a,s,l,c;const{invert:h,toast:d,unstyled:p,interacting:f,setHeights:b,visibleToasts:y,heights:w,index:k,toasts:x,expanded:S,removeToast:I,defaultRichColors:E,closeButton:C,style:$,cancelButtonStyle:T,actionButtonStyle:P,className:D="",descriptionClassName:H="",duration:z,position:V,gap:J,expandByDefault:F,classNames:G,icons:Y,closeButtonAriaLabel:le="Close toast"}=e,[W,_]=se.useState(null),[ne,U]=se.useState(null),[A,K]=se.useState(!1),[Q,oe]=se.useState(!1),[ee,ye]=se.useState(!1),[ve,ce]=se.useState(!1),[Oe,Ue]=se.useState(!1),[Ne,ke]=se.useState(0),[_t,De]=se.useState(0),We=se.useRef(d.duration||z||lE),ft=se.useRef(null),ht=se.useRef(null),Io=k===0,Zr=k+1<=y,Nn=d.type,Jr=d.dismissible!==!1,rl=d.className||"",ol=d.descriptionClassName||"",Z=se.useMemo(()=>w.findIndex(qe=>qe.toastId===d.id)||0,[w,d.id]),fe=se.useMemo(()=>{var qe;return(qe=d.closeButton)!=null?qe:C},[d.closeButton,C]),Me=se.useMemo(()=>d.duration||z||lE,[d.duration,z]),Ye=se.useRef(0),ot=se.useRef(0),vn=se.useRef(0),Pn=se.useRef(null),[Dn,Qr]=V.split("-"),Pr=se.useMemo(()=>w.reduce((qe,nn,xn)=>xn>=Z?qe:qe+nn.height,0),[w,Z]),kn=Foe(),Eo=d.invert||h,qn=Nn==="loading";ot.current=se.useMemo(()=>Z*J+Pr,[Z,Pr]),se.useEffect(()=>{We.current=Me},[Me]),se.useEffect(()=>{K(!0)},[]),se.useEffect(()=>{const qe=ht.current;if(qe){const nn=qe.getBoundingClientRect().height;return De(nn),b(xn=>[{toastId:d.id,height:nn,position:d.position},...xn]),()=>b(xn=>xn.filter(Vn=>Vn.toastId!==d.id))}},[b,d.id]),se.useLayoutEffect(()=>{if(!A)return;const qe=ht.current,nn=qe.style.height;qe.style.height="auto";const xn=qe.getBoundingClientRect().height;qe.style.height=nn,De(xn),b(Vn=>Vn.find(Jt=>Jt.toastId===d.id)?Vn.map(Jt=>Jt.toastId===d.id?{...Jt,he
vendor: 5,143 bytes, line 53
53ight:xn}:Jt):[{toastId:d.id,height:xn,position:d.position},...Vn])},[A,d.title,d.description,b,d.id,d.jsx,d.action,d.cancel]);const Xr=se.useCallback(()=>{oe(!0),ke(ot.current),b(qe=>qe.filter(nn=>nn.toastId!==d.id)),setTimeout(()=>{I(d)},eie)},[d,I,b,ot]);se.useEffect(()=>{if(d.promise&&Nn==="loading"||d.duration===1/0||d.type==="loading")return;let qe;return S||f||kn?(()=>{if(vn.current<Ye.current){const Vn=new Date().getTime()-Ye.current;We.current=We.current-Vn}vn.current=new Date().getTime()})():We.current!==1/0&&(Ye.current=new Date().getTime(),qe=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),Xr()},We.current)),()=>clearTimeout(qe)},[S,f,d,Nn,kn,Xr]),se.useEffect(()=>{d.delete&&(Xr(),d.onDismiss==null||d.onDismiss.call(d,d))},[Xr,d.delete]);function Zc(){var qe;if(Y?.loading){var nn;return se.createElement("div",{className:ni(G?.loader,d==null||(nn=d.classNames)==null?void 0:nn.loader,"sonner-loader"),"data-visible":Nn==="loading"},Y.loading)}return se.createElement(Moe,{className:ni(G?.loader,d==null||(qe=d.classNames)==null?void 0:qe.loader),visible:Nn==="loading"})}const Yi=d.icon||Y?.[Nn]||Ooe(Nn);var ki,Jc;return se.createElement("li",{tabIndex:0,ref:ht,className:ni(D,rl,G?.toast,d==null||(t=d.classNames)==null?void 0:t.toast,G?.default,G?.[Nn],d==null||(n=d.classNames)==null?void 0:n[Nn]),"data-sonner-toast":"","data-rich-colors":(ki=d.richColors)!=null?ki:E,"data-styled":!(d.jsx||d.unstyled||p),"data-mounted":A,"data-promise":!!d.promise,"data-swiped":Oe,"data-removed":Q,"data-visible":Zr,"data-y-position":Dn,"data-x-position":Qr,"data-index":k,"data-front":Io,"data-swiping":ee,"data-dismissible":Jr,"data-type":Nn,"data-invert":Eo,"data-swipe-out":ve,"data-swipe-direction":ne,"data-expanded":!!(S||F&&A),"data-testid":d.testId,style:{"--index":k,"--toasts-before":k,"--z-index":x.length-k,"--offset":`${Q?Ne:ot.current}px`,"--initial-height":F?"auto":`${_t}px`,...$,...d.style},onDragEnd:()=>{ye(!1),_(null),Pn.current=null},onPointerDown:qe=>{qe.button!==2&&(qn||!Jr||(ft.current=new Date,ke(ot.current),qe.target.setPointerCapture(qe.pointerId),qe.target.tagName!=="BUTTON"&&(ye(!0),Pn.current={x:qe.clientX,y:qe.clientY})))},onPointerUp:()=>{var qe,nn,xn;if(ve||!Jr)return;Pn.current=null;const Vn=Number(((qe=ht.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xi=Number(((nn=ht.current)==null?void 0:nn.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Jt=new Date().getTime()-((xn=ft.current)==null?void 0:xn.getTime()),Yt=W==="x"?Vn:xi,Ao=Math.abs(Yt)/Jt;if(Math.abs(Yt)>=Xoe||Ao>.11){ke(ot.current),d.onDismiss==null||d.onDismiss.call(d,d),U(W==="x"?Vn>0?"right":"left":xi>0?"down":"up"),Xr(),ce(!0);return}else{var sr,lr;(sr=ht.current)==null||sr.style.setProperty("--swipe-amount-x","0px"),(lr=ht.current)==null||lr.style.setProperty("--swipe-amount-y","0px")}Ue(!1),ye(!1),_(null)},onPointerMove:qe=>{var nn,xn,Vn;if(!Pn.current||!Jr||((nn=window.getSelection())==null?void 0:nn.toString().length)>0)return;const Jt=qe.clientY-Pn.current.y,Yt=qe.clientX-Pn.current.x;var Ao;const sr=(Ao=e.swipeDirections)!=null?Ao:tie(V);!W&&(Math.abs(Yt)>1||Math.abs(Jt)>1)&&_(Math.abs(Yt)>Math.abs(Jt)?"x":"y");let lr={x:0,y:0};const Hh=ei=>1/(1.5+Math.abs(ei)/20);if(W==="y"){if(sr.includes("top")||sr.includes("bottom"))if(sr.includes("top")&&Jt<0||sr.includes("bottom")&&Jt>0)lr.y=Jt;else{const ei=Jt*Hh(Jt);lr.y=Math.abs(ei)<Math.abs(Jt)?ei:Jt}}else if(W==="x"&&(sr.includes("left")||sr.includes("right")))if(sr.includes("left")&&Yt<0||sr.includes("right")&&Yt>0)lr.x=Yt;else{const ei=Yt*Hh(Yt);lr.x=Math.abs(ei)<Math.abs(Yt)?ei:Yt}(Math.abs(lr.x)>0||Math.abs(lr.y)>0)&&Ue(!0),(xn=ht.current)==null||xn.style.setProperty("--swipe-amount-x",`${lr.x}px`),(Vn=ht.current)==null||Vn.style.setProperty("--swipe-amount-y",`${lr.y}px`)}},fe&&!d.jsx&&Nn!=="loading"?se.createElement("button",{"aria-label":le,"data-disabled":qn,"data-close-button":!0,onClick:qn||!Jr?()=>{}:()=>{Xr(),d.onDismiss==null||d.onDismiss.call(d,d)},className:ni(G?.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(Jc=Y?.close)!=null?Jc:Uoe):null,(Nn||d.icon||d.promise)&&d.icon!==null&&(Y?.[Nn]!==null||d.icon)?se.createElement("div",{"data-icon":"",className:ni(G?.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Zc():null,d.type!=="loading"?Yi:null):null,se.createElement("div",{"data-content":"",className:ni(G?.content,d==null||(i=d.classNames)==null?void 0:i.content)},se.createElement("div",{"data-title":"",className:ni(G?.title,d==null||(a=d.classNames)==null?void 0:a.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?se.createElement("div",{"data-description":"",className:ni(H,ol,G?.description,d==null||(s=d.classNames)==null?void 0:s.description)},typeof d.description=="function"?d.description():d.description):null),se.isValidElement(d.cancel)?d.cancel:d.cancel&&Em(d.cancel)?se.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||T,onClick:qe=>{Em(d.cancel)&&Jr&&(d.cancel.onClick==null||d.cancel.onClick.call(
53d.cancel,qe),Xr())},className:ni(G?.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,se.isValidElement(d.action)?d.action:d.action&&Em(d.action)?se.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||P,onClick:qe=>{Em(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,qe),!qe.defaultPrevented&&Xr())},className:ni(G?.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function cE(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function rie(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?Zoe:Yoe;function l(c){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${a}-${c}`]=s:n[`${a}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}const oie=se.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:h,mobileOffset:d,theme:p="light",richColors:f,duration:b,style:y,visibleToasts:w=Goe,toastOptions:k,dir:x=cE(),gap:S=Qoe,icons:I,containerAriaLabel:E="Notifications"}=t,[C,$]=se.useState([]),T=se.useMemo(()=>r?C.filter(A=>A.toasterId===r):C.filter(A=>!A.toasterId),[C,r]),P=se.useMemo(()=>Array.from(new Set([i].concat(T.filter(A=>A.position).map(A=>A.position)))),[T,i]),[D,H]=se.useState([]),[z,V]=se.useState(!1),[J,F]=se.useState(!1),[G,Y]=se.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=se.useRef(null),W=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=se.useRef(null),ne=se.useRef(!1),U=se.useCallback(A=>{$(K=>{var Q;return(Q=K.find(oe=>oe.id===A.id))!=null&&Q.delete||Sr.dismiss(A.id),K.filter(({id:oe})=>oe!==A.id)})},[]);return se.useEffect(()=>Sr.subscribe(A=>{if(A.dismiss){requestAnimationFrame(()=>{$(K=>K.map(Q=>Q.id===A.id?{...Q,delete:!0}:Q))});return}setTimeout(()=>{$N.flushSync(()=>{$(K=>{const Q=K.findIndex(oe=>oe.id===A.id);return Q!==-1?[...K.slice(0,Q),{...K[Q],...A},...K.slice(Q+1)]:[A,...K]})})})}),[C]),se.useEffect(()=>{if(p!=="system"){Y(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const A=window.matchMedia("(prefers-color-scheme: dark)");try{A.addEventListener("change",({matches:K})=>{Y(K?"dark":"light")})}catch{A.addListener(({matches:Q})=>{try{Y(Q?"dark":"light")}catch(oe){console.error(oe)}})}},[p]),se.useEffect(()=>{C.length<=1&&V(!1)},[C]),se.useEffect(()=>{const A=K=>{var Q;if(a.every(ye=>K[ye]||K.code===ye)){var ee;V(!0),(ee=le.current)==null||ee.focus()}K.code==="Escape"&&(document.activeElement===le.current||(Q=le.current)!=null&&Q.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[a]),se.useEffect(()=>{if(le.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,ne.current=!1)}},[le.current]),se.createElement("section",{ref:n,"aria-label":`${E} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((A,K)=>{var Q;const[oe,ee]=A.split("-");return T.length?se.createElement("ol",{key:A,dir:x==="auto"?cE():x,tabIndex:-1,ref:le,className:c,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":oe,"data-x-position":ee,style:{"--front-toast-height":`${((Q=D[0])==null?void 0:Q.height)||0}px`,"--width":`${Joe}px`,"--gap":`${S}px`,...y,...rie(h,d)},onBlur:ye=>{ne.current&&!ye.currentTarget.contains(ye.relatedTarget)&&(ne.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,_.current=ye.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{J||V(!1)},onDragEnd:()=>V(!1),onPointerDown:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},T.filter(ye=>!ye.position&&K===0||ye.position===A).map((ye,ve)=>{var ce,Oe;return se.createElement(nie,{key:ye.id,icons:I,index:ve,toast:ye,defaultRichColors:f,duration:(ce=k?.duration)!=null?ce:b,className:k?.className,descriptionClassName:k?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(Oe=k?.closeButton)!=null?Oe:l,interacting:J,position:A,style:k?.style,unstyled:k?.unstyled,classNames:k?.classNames,cancelButtonStyle:k?.cancelButtonStyle,actionButtonStyle:k?.actionButtonStyle,closeButtonAriaLabel:k?.closeButtonAriaLabel,removeToast:U,toasts:T.filter(Ue=>Ue.position==ye.position),heights:D.filter(Ue=>Ue.position==ye.position),setHeights:H,expandByDefault:s,gap:S,expanded:z,swipeDirections:t.swipeDirections})})):null}))}),Is=Intl.DateTimeFormat().resolvedOptions().timeZone,fd={all:["reactions"],summaries:["reactions","summary"],summary:e=>["reactions","summary",e],glyphUrls:["reactions","glyph-urls"]};function dje(e,t){const n=zg(),{keys:r,sortedRefs:o}=g.useMemo(()=>{const i=e.map(l=>({ref:l,key:A_(l)})),a=new Map(i.map(l=>[l.key,l.ref])),s=[...a.keys()].sort();return{keys:s,sortedRefs:s.map(l=>a.get(l))}},[e]);return Ae({queryKey:fd.summary(r),queryFn:()=>n.summary(o),enabled:(t?.enabled??!0)&&o.length>0,staleTime:3e4,placeholderData:i=>i})}function hje(e,t){return e?.entities[A_(t)]}function mje(){const e=zg(),t=ge(),n=nr();return pe({mutationFn:({ref:r,emotion:o,next:i})=>i?e.react({...r,emotion:o}):e.unreact({...r,emotion:o}),onMutate:async({ref:r,emotion:o,next:i})=>{const a={queryKey:fd.summaries};await t.cancelQueries(a);const s=t.getQueriesData(a),l=A_(r);return t.setQueriesData(a,c=>!c||!Object.hasOwn(c.entities,l)?c:{entities:{...c.entities,[l]:eQ(c.entities[l],o,i)}}),{rollback:()=>{for(const[c,h]of s)t.setQueryData(c,h)}}},onError:(r,o,i)=>{i?.rollback?.();const a=r instanceof Kr?r.status:void 0;rt.error("Couldn't save your reaction.",{description:a===404?"That item is no longer visible to you.":a===401||a===403?"Your session may have expired — try signing in again.":a!==void 0?`The server rejected it (${String(a)}). ${r.message}`:"Couldn't reach the server."})},onSuccess:(r,{ref:o,emotion:i,next:a})=>{n?.capture("reaction_changed",{entity_type:o.entityType,emotion:i,added:a})},onSettled:()=>{t.invalidateQueries({queryKey:fd.summaries})}})}async function pje(e){return M({path:"/graph/me",getAccessTokenSilently:e,responseSchema:zte})}async function iie(e,t){return(await M({path:`/graph/me/calendar/events/${encodeURIComponent(t)}`,getAccessTokenSilently:e,responseSchema:Vte})).event}const Uz=v({draftId:m()});v({webLink:m()});async function fje(e,t){return M({path:"/graph/me/draft",getAccessTokenSilently:e,responseSchema:Uz,options:{method:"POST",body:t}})}async function gje(e,t){return M({path:"/graph/me/meeting-summary-draft",getAccessTokenSilently:e,responseSchema:Uz,options:{method:"POST",body:t}})}const $p={all:["prep-sessions"],byEvent:e=>["prep-sessions","by-event",e]},yje=e=>{const t=nS();return Ae({queryKey:$p.byEvent(e),queryFn:()=>t.getSessionByEvent(e),staleTime:1/0,refetchOnWindowFocus:!1,enabled:e.length>0})},uc={all:["action-items"],list:e=>["action-items","list",e],infiniteList:e=>["action-items","infinite-list",e],detail:e=>["action-items","detail",e]},Fz={recordedRange:["meetings","range"],upcoming:["recall","upcoming"],recordingSettings:["recall","recording-settings"],actionItemsCalendar:e=>[...uc.all,"calendar",e],actionItemsPlanner:e=>[...uc.all,"planner",e]},Wg={all:["points"],leaderboard:(e,t,n)=>["points","leaderboard",e,t,n],audit:e=>["points","audit",e],daily:(e,t)=>["points","daily",e,t??"me"]},dc={all:["live-meetings"],list:()=>["live-meetings","list"],triage:e=>["live-meetings","triage",e],detail:e=>["live-meetings","detail",e]},zt={all:["meetings"],list:e=>["meetings","list",e],infiniteList:e=>["meetings","infinite-list",e],detail:e=>["meetings","detail",e],lunaGeneratedSummary:e=>["meetings","luna-summary",e],redactions:e=>["meetings","redactions",e],pendingRedactions:["meetings","redactions","pending"],deleted:["meetings","deleted"],stats:["meetings","stats"]};
53function or(e){return e.invalidateQueries({queryKey:zt.all,refetchType:"none"})}const Bg={all:["raid-entries"],list:e=>["raid-entries","list",e],infiniteList:e=>["raid-entries","infinite-list",e],detail:e=>["raid-entries","detail",e]},aie={all:["smartsheet","contacts"],list:e=>["smartsheet","contacts",e??{}]},sie={all:["app-users"],list:()=>["app-users","list"]},hc={all:["notifications"],list:()=>["notifications","list"],page:()=>["notifications","page"],one:e=>["notifications","one",e]},rS={all:["subscriptions"],list:e=>["subscriptions","list",e??"all"]},Yo={all:["current-user"],detail:()=>["current-user","detail"]},oS={all:["module-consent"],status:()=>["module-consent","status"]},gd={all:["firefight"],session:()=>["firefight","session"],log:()=>["firefight","log"]},mh={members:["admin","members"],connections:["admin","connections"],usage:e=>["admin","usage",e],organizations:["admin","organizations"],orgModules:e=>["admin","organizations",e,"modules"]},ph={members:["org-admin","members"]},hi={list:["people-admin","list"],review:["people-admin","review"],detail:e=>["people-admin","detail",e]},lie=["me-bootstrap"],cie={all:["microsoft","calendar"],upcoming:e=>["microsoft","calendar","upcoming",e],event:e=>["microsoft","calendar","event",e]},uie=new Set(["MICROSOFT_NOT_CONNECTED","MICROSOFT_REAUTH_REQUIRED","MICROSOFT_INSUFFICIENT_SCOPE"]),bje=e=>{const{getAccessTokenSilently:t}=Pe();return Ae({queryKey:cie.event(e),queryFn:()=>iie(t,e),staleTime:6e4,enabled:e.length>0,retry:(n,r)=>r instanceof Kr&&r.code&&uie.has(r.code)?!1:n<2})};function qs(e){return e.invalidateQueries({queryKey:uc.all})}function Vs(e){return e.invalidateQueries({queryKey:Bg.all})}const wje=(e,t)=>{const n=Hn(),{pageSize:r,...o}=e;delete o.page;const i=r??d_;return js({queryKey:zt.infiniteList({...o,pageSize:i}),queryFn:({pageParam:a})=>n.find({...o,page:a,pageSize:i}),initialPageParam:1,getNextPageParam:a=>a.hasNextPage?a.page+1:void 0,staleTime:3e4,placeholderData:Ad,enabled:t?.enabled??!0})},vje=e=>{const t=tS();return Ae({queryKey:dc.list(),queryFn:()=>t.list(),staleTime:1e4,enabled:!0})},kje=e=>{const t=tS();return Ae({queryKey:dc.detail(e),queryFn:()=>t.findById(e),staleTime:6e4,retry:!1})},xje=(e,t)=>{const n=Hn(),{data:r}=Cn(),o=r?.capabilities.includes("meetings.redact")===!0;return Ae({queryKey:zt.detail(e),queryFn:()=>n.findById(e),staleTime:3e4,enabled:e.length>0,refetchInterval:i=>{const a=i.state.data?.transcript;return a&&k7(a,{canReviewPending:o})?1e4:!1}})},_je=(e,t)=>{const n=Hn();return Ae({queryKey:zt.redactions(e),queryFn:()=>n.listRedactions(e),staleTime:3e4,enabled:(t?.enabled??!0)&&e.length>0})},Sje=e=>{const t=Hn();return js({queryKey:zt.pendingRedactions,queryFn:({pageParam:n})=>t.listPendingRedactions({cursor:n??void 0}),initialPageParam:null,getNextPageParam:n=>n.nextCursor??void 0,staleTime:15e3,enabled:e?.enabled??!0})},Tje=e=>{const t=Hn();return Ae({queryKey:zt.deleted,queryFn:()=>t.findDeleted(),enabled:e?.enabled??!0,staleTime:3e4})},Ije=e=>{const t=Hn();return Ae({queryKey:zt.stats,queryFn:()=>t.getStats(),enabled:e?.enabled??!0,staleTime:6e4})},Eje=(e,t)=>{const n=Hn();return Ae({queryKey:zt.lunaGeneratedSummary(e),queryFn:()=>n.getLunaGeneratedSummary(e),staleTime:3e4,enabled:(t?.enabled??!0)&&e.length>0,retry:!1})},Aje=(e="weekly",t,{live:n=!1}={})=>{const r=Ug(),o=Is;return Ae({queryKey:Wg.leaderboard(e,o,t??"current"),queryFn:()=>r.leaderboard({period:e,timezone:o,weekStart:t}),staleTime:6e4,refetchInterval:n?6e4:!1})},Cje=e=>{const t=Ug(),n=Is;return Ae({queryKey:Wg.daily(n,e),queryFn:()=>t.daily(n,e),staleTime:6e4})},Nje=(e,t)=>{const n=Ug();return js({queryKey:Wg.audit(e??"all"),queryFn:({pageParam:r})=>n.audit({limit:50,before:r,type:e}),initialPageParam:null,getNextPageParam:r=>r.nextCursor,staleTime:3e4,enabled:t?.enabled??!0})},Pje=(e,t)=>{const n=Bi();return Ae({queryKey:uc.list(e),queryFn:()=>n.find(e),staleTime:3e4,refetchInterval:r=>r.state.data?.items.some(o=>o.submissionState==="SUBMITTING")?4e3:!1,enabled:t?.enabled??!0})},Dje=(e,t)=>{const n=Bi(),{pageSize:r,...o}=e;delete o.page;const i=r??d_;return js({queryKey:uc.infiniteList({...o,pageSize:i}),queryFn:({pageParam:a})=>n.find({...o,page:a,pageSize:i}),initialPageParam:1,getNextPageParam:a=>a.hasNextPage?a.page+1:void 0,staleTime:3e4,placeholderData:Ad,refetchInterval:a=>a.state.data?.pages.some(s=>s.items.some(l=>l.submissionState==="SUBMITTING"))?4e3:!1,enabled:t?.enabled??!0})},Oje=(e,t)=>{const n=Hi();return Ae({queryKey:Bg.list(e),queryFn:()=>n.find(e),staleTime:3e4,enabled:t?.enabled??!0})},Rje=(e,t)=>{const n=Hi(),{pageSize:r,...o}=e;delete o.page;const i=r??d_;return js({queryKey:Bg.infiniteList({...o,pageSize:i}),queryFn:({pageParam:a})=>n.find({...o,page:a,pageSize:i}),initialPageParam:1,getNextPageParam:a=>a.hasNextPage?a.page+1:void 0,staleTime:3e4,placeholderData:Ad,enabled:t?.enabled??!0})},die=(e,t)=>{const n=Toe(),r={...e,assignable:!0};return Ae({queryKey:aie.list(r),queryFn:()=>n.listPeople(r),staleTime:10*6e4,enabled:t?.enabled??!0})},Mje=()=>{const e=Poe();return Ae({queryKey:["organizations"],queryFn:()=>e.list(),staleTime:10*6e4})},Cn=e=>{const t=Go();return Ae({queryKey:Yo.detail(),queryFn:()=>t.getCurrentUser(),staleTime:3e4,enabled:e?.enabled??!0})},Wz=e=>{const t=zz();return Ae({queryKey:oS.status(),queryFn:()=>t.getStatus(),staleTime:3e4,retry:!1,enabled:e?.enabled??!0})},jje=e=>{const t=hh();return Ae({queryKey:ph.members,queryFn:()=>t.getMembers(),enabled:e?.enabled??!0,staleTime:3e4,retry:!1})},$je=e=>{const t=Soe();return Ae({queryKey:["people","audience-admin"],queryFn:()=>t.listPeople(),enabled:e?.enabled??!0})},Lje=()=>{const e=hh(),t=ge();return pe({mutationFn:({personId:n,capabilities:r})=>e.grantCapabilities(n,r),onSuccess:()=>{t.invalidateQueries({queryKey:ph.members})}})},zje=()=>{const e=hh(),t=ge();return pe({mutationFn:({personId:n,capabilities:r})=>e.revokeCapabilities(n,r),onSuccess:()=>{t.invalidateQueries({queryKey:ph.members})}})},Uje=()=>{const e=hh(),t=ge();return pe({mutationFn:({personId:n,bundle:r})=>e.assignBundle(n,r),onSuccess:()=>{t.invalidateQueries({queryKey:ph.members})}})},Fje=()=>{const e=hh(),t=ge();return pe({mutationFn:({personId:n})=>e.resumeTranscriptCopy(n),onSuccess:()=>{t.invalidateQueries({queryKey:ph.members})}})},Wje=e=>{const t=So();return Ae({queryKey:hi.list,queryFn:()=>t.list(),enabled:e?.enabled??!0,staleTime:3e4})},Bje=e=>{const t=So();return Ae({queryKey:hi.review,queryFn:()=>t.listNeedingReview(),enabled:e?.enabled??!0,staleTime:3e4})},Hje=(e,t)=>{const n=So();return Ae({queryKey:hi.detail(e??""),queryFn:()=>n.get(e??""),enabled:(t?.enabled??!0)&&e!==null,staleTime:1e4})},qje=(e,t,n)=>{const r=So();return Ae({queryKey:["people-admin","merge-preview",e,t],queryFn:()=>r.mergePreview(e??"",t??""),enabled:(n?.enabled??!0)&&e!==null&&t!==null,staleTime:0})};
53function Ks(e,t){e.invalidateQueries({queryKey:hi.list}),e.invalidateQueries({queryKey:hi.review}),e.invalidateQueries({queryKey:hi.detail(t)})}const Vje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n,patch:r})=>e.update(n,r),onSuccess:(n,{personId:r})=>Ks(t,r)})},Kje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n,address:r})=>e.addEmail(n,r),onSuccess:(n,{personId:r})=>Ks(t,r)})},Gje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n,address:r})=>e.removeEmail(n,r),onSuccess:(n,{personId:r})=>Ks(t,r)})},Yje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n,address:r})=>e.setPrimaryEmail(n,r),onSuccess:(n,{personId:r})=>Ks(t,r)})},Zje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n,hidden:r})=>e.setHidden(n,r),onSuccess:(n,{personId:r})=>Ks(t,r)})},Jje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n})=>e.confirm(n),onSuccess:(n,{personId:r})=>Ks(t,r)})},Qje=()=>{const e=So(),t=ge();return pe({mutationFn:({personId:n,from:r})=>e.setMeetingHistory(n,r),onSuccess:(n,{personId:r})=>Ks(t,r)})},Xje=()=>{const e=So(),t=ge();return pe({mutationFn:({duplicatePersonId:n,intoPersonId:r})=>e.merge(n,r),onSuccess:(n,{duplicatePersonId:r,intoPersonId:o})=>{t.removeQueries({queryKey:hi.detail(r)}),t.invalidateQueries({queryKey:hi.list}),t.invalidateQueries({queryKey:hi.review}),t.invalidateQueries({queryKey:hi.detail(o)})}})},e$e=e=>{const t=dh();return Ae({queryKey:mh.connections,queryFn:()=>t.getConnections(),enabled:e?.enabled??!0,staleTime:6e4,retry:!1})},t$e=(e,t)=>{const n=dh();return Ae({queryKey:mh.usage(e),queryFn:()=>n.getUsage(e),enabled:t?.enabled??!0,staleTime:6e4,retry:!1})},n$e=e=>{const t=dh();return Ae({queryKey:mh.organizations,queryFn:()=>t.getOrganizations(),enabled:e?.enabled??!0,staleTime:6e4,retry:!1})},r$e=(e,t)=>{const n=dh();return Ae({queryKey:mh.orgModules(e??""),queryFn:()=>n.getOrgModules(e??""),enabled:(t?.enabled??!0)&&e!==null,staleTime:1e4,retry:!1})},o$e=()=>{const e=dh(),t=ge();return pe({mutationFn:({orgId:n,moduleKey:r,state:o})=>e.setOrgModuleState(n,r,o),onSuccess:(n,r)=>{t.setQueryData(mh.orgModules(r.orgId),n)}})},hie=e=>{const t=Fg();return Ae({queryKey:gd.session(),queryFn:()=>t.getSession(),staleTime:15e3,refetchInterval:3e4,refetchOnWindowFocus:!0,enabled:e?.enabled??!0})},i$e=e=>{const t=Fg();return Ae({queryKey:gd.log(),queryFn:()=>t.listSessions(),staleTime:15e3,refetchInterval:3e4,refetchOnWindowFocus:!0,enabled:e?.enabled??!0})},a$e=()=>{const e=Fg(),t=ge();return pe({mutationFn:n=>e.activate(n),onSuccess:n=>{t.invalidateQueries(),t.setQueryData(gd.session(),{session:n})},onError:()=>{t.invalidateQueries({queryKey:gd.session()})}})},mie=()=>{const e=Fg(),t=ge();return pe({mutationFn:n=>e.revoke(n),onSuccess:()=>{t.invalidateQueries(),t.setQueryData(gd.session(),{session:null})}})},pie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateCommandCenterDefaults(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all})}})},fie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateReactionGlyphs(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all}),t.invalidateQueries({queryKey:fd.glyphUrls})}})},gie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateMeetingDisplayDefaults(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all})},onError:()=>{rt.error("Couldn't save your meeting display setting. Please try again.")}})},yie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updatePointsDefaults(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all}),t.invalidateQueries({queryKey:Wg.all})},onError:()=>{rt.error("Couldn't save your leaderboard setting. Please try again.")}})},bie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateLandingDefaults(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all})},onError:()=>{rt.error("Couldn't save your default screen. Please try again.")}})},wie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateDictationDefaults(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all})},onError:()=>{rt.error("Couldn't save your dictation language. Please try again.")}})},s$e=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateCalendarProfiles(n),onSuccess:n=>{t.setQueryData(Yo.detail(),r=>r&&{...r,calendarProfiles:n})},onError:()=>{rt.error("Couldn't save your calendar profiles. Please try again.")}})},vie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateNotificationPreferences(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all})}})}
53,kie=()=>{const e=Go(),t=ge();return pe({mutationFn:n=>e.updateEmailIngestionDefaults(n),onSuccess:()=>{t.invalidateQueries({queryKey:Yo.all})}})},xie=e=>{const t=qi();return Ae({queryKey:hc.list(),queryFn:()=>t.find(),staleTime:3e4,refetchInterval:6e4,refetchOnWindowFocus:!0,enabled:!0})},l$e=()=>{const e=qi();return js({queryKey:hc.page(),queryFn:({pageParam:t})=>e.find(t?{before:t}:{}),initialPageParam:null,getNextPageParam:t=>t.nextCursor})},c$e=e=>{const t=qi();return Ae({queryKey:hc.one(e??""),queryFn:()=>t.get(e),enabled:e!==null})},_ie=e=>{const t=$z();return Ae({queryKey:sie.list(),queryFn:()=>t.find(),staleTime:5*6e4,enabled:e?.enabled??!0})};function Gs(e){return e.invalidateQueries({queryKey:hc.all})}const Sie=(e,t)=>{const n=Dc();return Ae({queryKey:rS.list(e),queryFn:()=>n.list(e),staleTime:3e4,enabled:!0})};function Oc(e){return e.invalidateQueries({queryKey:rS.all})}function u$e(e){return e.invalidateQueries({predicate:t=>{const[n,r,o]=t.queryKey;return n==="meetings"&&(r==="list"||r==="infinite-list")&&!!o?.bookmarked}})}const Bz={all:["op-logs"],entityHistory:(e,t)=>["op-logs","entity-history",e,t],activity:(e,t)=>["op-logs","activity",e,t??{}]},d$e=(e,t,n)=>{const r=jz();return Ae({queryKey:Bz.entityHistory(e,t),queryFn:()=>r.listEntityHistory(e,t),staleTime:15e3,enabled:(n?.enabled??!0)&&!!t})},h$e=(e,t,n)=>{const r=jz();return js({queryKey:Bz.activity(e,t),queryFn:({pageParam:o})=>r.listActivity({scope:e,cursor:o??void 0,...t}),initialPageParam:null,getNextPageParam:o=>o.nextCursor??void 0,staleTime:15e3,placeholderData:Ad,enabled:!0})},Es={all:["mind-maps"],list:()=>["mind-maps","list"],detail:e=>["mind-maps","detail",e],forMeeting:e=>["mind-maps","meeting",e]};function iS(e){return e.invalidateQueries({queryKey:Es.all})}const m$e=()=>{const e=Vi();return Ae({queryKey:Es.list(),queryFn:()=>e.list(),staleTime:3e4})},p$e=(e=14)=>{const t=uh();return Ae({queryKey:[...Fz.upcoming,e],queryFn:()=>t.getUpcomingEvents(e),staleTime:6e4,retry:!1})},f$e=e=>{const t=Vi();return Ae({queryKey:Es.forMeeting(e),queryFn:()=>t.listForMeeting(e),staleTime:3e4,enabled:e.length>0})},g$e=e=>{const t=Vi();return Ae({queryKey:Es.detail(e),queryFn:()=>t.get(e),staleTime:3e4,enabled:e.length>0})},Mo={all:["notes"],list:()=>["notes","list"],detail:e=>["notes","detail",e],forMeeting:e=>["notes","meeting",e]};function yd(e){return e.invalidateQueries({queryKey:Mo.all})}const y$e=e=>{const t=Hs();return Ae({queryKey:Mo.list(),queryFn:()=>t.list(),staleTime:3e4,enabled:e?.enabled??!0})},b$e=e=>{const t=Hs();return Ae({queryKey:Mo.forMeeting(e),queryFn:()=>t.listForMeeting(e),staleTime:3e4,enabled:e.length>0})},w$e=(e,t)=>{const n=Hs();return Ae({queryKey:Mo.detail(e),queryFn:()=>n.get(e),staleTime:3e4,retry:!1,enabled:(t?.enabled??!0)&&e.length>0})},v$e=(e,t)=>{const n=Bi();return Ae({queryKey:uc.detail(e),queryFn:()=>n.get(e),staleTime:3e4,retry:!1,enabled:(t?.enabled??!0)&&e.length>0})},k$e=(e,t)=>{const n=Hi();return Ae({queryKey:Bg.detail(e),queryFn:()=>n.get(e),staleTime:3e4,retry:!1,enabled:(t?.enabled??!0)&&e.length>0})},Hg={list:(e,t)=>["shares",e,t]},x$e=(e,t,n)=>{const r=Aoe();return Ae({queryKey:Hg.list(e,t),queryFn:()=>r.listShareMessages({entityType:e,entityId:t}),enabled:t.length>0})},Tie=e=>({email:e?.email??null,emailVerified:e?.email_verified??!1,name:e?.name??null,nickname:e?.nickname??null,pictureUrl:e?.picture??null,auth0UpdatedAt:e?.updated_at??null});function Iie({children:e}){const{isLoading:t,isAuthenticated:n,user:r,loginWithRedirect:o}=Pe(),i=Go(),a=ge(),s=!t&&n&&!!r?.sub,l=Ae({queryKey:lie,queryFn:async()=>{const p=await i.bootstrap(Tie(r));return a.setQueryData(Yo.detail(),p),p},enabled:s,staleTime:1/0,retry:2,retryDelay:p=>Math.min(1e3*2**p,5e3)}),c=nr(),h=l.data;g.useEffect(()=>{h&&c?.identify(h.personId,{email:h.email,name:h.name,auth0_sub_id:h.auth0SubId,capabilities:h.capabilities,orgId:h.orgId})},[c,h]);const d=l.error;return g.useEffect(()=>{l.isLoadingError&&fZ(d)&&gZ()&&o()},[l.isLoadingError,d,o]),!s||l.isPending?u.jsx(R$,{label:"Loading profile..."}):l.isLoadingError?u.jsx(uZ,{onRetry:()=>{l.refetch()},isRetrying:l.isFetching}):h&&hZ(h)?u.jsx(yZ,{}):u.jsx(u.Fragment,{children:e})}const Am="/",Eie=e=>{if(typeof e!="string")return Am;const t=e.trim();return!t.startsWith("/")||t.startsWith("//")||t==="/callback"||t.startsWith("/callback?")||t==="/"||t==="/home"?Am:t};function Aie({children:e}){const t=$s(),n=r=>{t({to:Eie(r?.returnTo),replace:!0})};return u.jsx(eG,{domain:dt.auth0Domain,clientId:dt.auth0ClientId,onRedirectCallback:n,cacheLocation:"localstorage",useRefreshTokens:!0,useMrrt:!0,authorizationParams:{audience:dt.auth0Audience,redirect_uri:dt.auth0RedirectUri},children:e})}function Cie({children:e}){const{isLoading:t,isAuthenticated:n,loginWithRedirect:r}=Pe(),o=Ls({select:i=>({pathname:i.location.pathname,search:i.location.searchStr,hash:i.location.hash})});return g.useEffect(()=>{if(t||n)return;const i=`${o.pathname}${o.search}${o.hash}`;r({appState:{returnTo:i}})},[t,n,r,o.pathname,o.search,o.hash]),t||!n?u.jsx(R$,{label:"Loading authentication..."}):u.jsx(u.Fragment,{children:e})}function Nie(e,t,n){return n?e===t:e===t?!0:e.startsWith(`${t}/`)}function uE({to:e,end:t=!1,className:n,...r}){const o=Ls({select:s=>s.location.pathname}),i=Nie(o,e,t),a=typeof n=="function"?n({isActive:i}):n;return u.jsx(ji,{to:e,className:a,...r})}function Ie(e,t,{checkForDefaultPrevented:n=!0}={}
vendor: 14,303 bytes, line 53
53){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Pie(e,t){const n=g.createContext(t),r=i=>{const{children:a,...s}=i,l=g.useMemo(()=>s,Object.values(s));return u.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(i){const a=g.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Zo(e,t=[]){let n=[];function r(i,a){const s=g.createContext(a),l=n.length;n=[...n,a];const c=d=>{const{scope:p,children:f,...b}=d,y=p?.[e]?.[l]||s,w=g.useMemo(()=>b,Object.values(b));return u.jsx(y.Provider,{value:w,children:f})};c.displayName=i+"Provider";function h(d,p){const f=p?.[e]?.[l]||s,b=g.useContext(f);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,h]}const o=()=>{const i=n.map(a=>g.createContext(a));return function(s){const l=s?.[e]||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Die(o,...t)]}function Die(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var tr=globalThis?.document?g.useLayoutEffect:()=>{},Oie=Uk[" useInsertionEffect ".trim().toString()]||tr;function go({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Rie({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=g.useRef(e!==void 0);g.useEffect(()=>{const d=h.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,r])}const c=g.useCallback(h=>{if(s){const d=Mie(h)?h(e):h;d!==e&&a.current?.(d)}else i(h)},[s,e,i,a]);return[l,c]}function Rie({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return Oie(()=>{i.current=t},[t]),g.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Mie(e){return typeof e=="function"}function jie(e){const t=$ie(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(zie);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function $ie(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Fie(o),s=Uie(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lie=Symbol("radix.slottable");function zie(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lie}function Uie(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Fie(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=Wie.reduce((e,t)=>{const n=jie(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Hz(e,t){e&&Fk.flushSync(()=>e.dispatchEvent(t))}function dE(e){const t=Bie(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(qie);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Bie(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Kie(o),s=Vie(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hie=Symbol("radix.slottable");function qie(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hie}function Vie(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Kie(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function aS(e){const t=e+"CollectionProvider",[n,r]=Zo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:w,children:k}=y,x=se.useRef(null),S=se.useRef(new Map).current;return u.jsx(o,{scope:w,itemMap:S,collectionRef:x,children:k})};a.displayName=t;const s=e+"CollectionSlot",l=dE(s),c=se.forwardRef((y,w)=>{const{scope:k,children:x}=y,S=i(s,k),I=vt(w,S.collectionRef);return u.jsx(l,{ref:I,children:x})});c.displayName=s;const h=e+"CollectionItemSlot",d="data-radix-collection-item",p=dE(h),f=se.forwardRef((y,w)=>{const{scope:k,children:x,...S}=y,I=se.useRef(null),E=vt(w,I),C=i(h,k);return se.useEffect(()=>(C.itemMap.set(I,{ref:I,...S}),()=>{C.itemMap.delete(I)})),u.jsx(p,{[d]:"",ref:E,children:x})});f.displayName=h;function b(y){const w=i(e+"CollectionConsumer",y);return se.useCallback(()=>{const x=w.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((C,$)=>S.indexOf(C.ref.current)-S.indexOf($.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},b,r]}var Gie=g.createContext(void 0);function qg(e){const t=g.useContext(Gie);return e||t||"ltr"}function qo(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>t.current?.(...n),[])}function Yie(e,t=globalThis?.document){const n=qo(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zie="DismissableLayer",_v="dismissableLayer.update",Jie="dismissableLayer.pointerDownOutside",Qie="dismissableLayer.focusOutside",hE,qz=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rc=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=g.useContext(qz),[h,d]=g.useState(null),p=h?.ownerDocument??globalThis?.document,[,f]=g.useState({}),b=vt(t,$=>d($)),y=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),k=y.indexOf(w),x=h?y.indexOf(h):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,I=x>=k,E=tae($=>{const T=$.target,P=[...c.branches].some(D=>D.contains(T));!I||P||(o?.($),a?.($),$.defaultPrevented||s?.())},p),C=nae($=>{const T=$.target;[...c.branches].some(D=>D.contains(T))||(i?.($),a?.($),$.defaultPrevented||s?.())},p);return Yie($=>{x===c.layers.size-1&&(r?.($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),g.useEffect(()=>{if(h)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(hE=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(h)),c.layers.add(h),mE(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=hE)}},[h,p,n,c]),g.useEffect(()=>()=>{h&&(c.layers.delete(h),c.layersWithOutsidePointerEventsDisabled.delete(h),mE())},[h,c]),g.useEffect(()=>{const $=()=>f({});return document.addEventListener(_v,$),()=>document.removeEventListener(_v,$)},[]),u.jsx(Je.div,{...l,ref:b,style:{pointerEvents:S?I?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,E.onPointerDownCapture)})});Rc.displayName=Zie;var Xie="DismissableLayerBranch",eae=g.forwardRef((e,t)=>{const n=g.useContext(qz),r=g.useRef(null),o=vt(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(Je.div,{...e,ref:o})});eae.displayName=Xie;function tae(e,t=globalThis?.document){const n=qo(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){Vz(Jie,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nae(e,t=globalThis?.document){const n=qo(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Vz(Qie,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mE(){const e=new CustomEvent(_v);document.dispatchEvent(e)}function Vz(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hz(o,i):o.dispatchEvent(i)}var Ab=0;function Vg(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pE()),document.body.insertAdjacentElement("beforeend",e[1]??pE()),Ab++,()=>{Ab===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ab--}},[])}function pE(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Cb="focusScope.autoFocusOnMount",Nb="focusScope.autoFocusOnUnmount",fE={bubbles:!1,cancelable:!0},rae="FocusScope",fh=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=g.useState(null),c=qo(o),h=qo(i),d=g.useRef(null),p=vt(t,y=>l(y)),f=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let y=function(S){if(f.paused||!s)return;const I=S.target;s.contains(I)?d.current=I:da(d.current,{select:!0})},w=function(S){if(f.paused||!s)return;const I=S.relatedTarget;I!==null&&(s.contains(I)||da(d.current,{select:!0}))},k=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&da(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const x=new MutationObserver(k);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),x.disconnect()}}},[r,s,f.paused]),g.useEffect(()=>{if(s){yE.add(f);const y=document.activeElement;if(!s.contains(y)){const k=new CustomEvent(Cb,fE);s.addEventListener(Cb,c),s.dispatchEvent(k),k.defaultPrevented||(oae(cae(Kz(s)),{select:!0}),document.activeElement===y&&da(s))}return()=>{s.removeEventListener(Cb,c),setTimeout(()=>{const k=new CustomEvent(Nb,fE);s.addEventListener(Nb,h),s.dispatchEvent(k),k.defaultPrevented||da(y??document.body,{select:!0}),s.removeEventListener(Nb,h),yE.remove(f)},0)}}},[s,c,h,f]);const b=g.useCallback(y=>{if(!n&&!r||f.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,k=document.activeElement;if(w&&k){const x=y.currentTarget,[S,I]=iae(x);S&&I?!y.shiftKey&&k===I?(y.preventDefault(),n&&da(S,{select:!0})):y.shiftKey&&k===S&&(y.preventDefault(),n&&da(I,{select:!0})):k===x&&y.preventDefault()}},[n,r,f.paused]);return u.jsx(Je.div,{tabIndex:-1,...a,ref:p,onKeyDown:b})});fh.displayName=rae;function oae(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(da(r,{select:t}),document.activeElement!==n)return}function iae(e){const t=Kz(e),n=gE(t,e),r=gE(t.reverse(),e);return[n,r]}function Kz(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gE(e,t){for(const n of e)if(!aae(n,{upTo:t}))return n}function aae(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function sae(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sae(e)&&t&&e.select()}}var yE=lae();function lae(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bE(e,t),e.unshift(t)},remove(t){e=bE(e,t),e[0]?.resume()}}}function bE(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cae(e){return e.filter(t=>t.tagName!=="A")}var uae=Uk[" useId ".trim().toString()]||(()=>{}),dae=0;function En(e){const[t,n]=g.useState(uae());return tr(()=>{n(r=>r??String(dae++))},[e]),e||(t?`radix-${t}`:"")}var hae="Arrow",Gz=g.forwardRef((e,t)=>
vendor: 9,111 bytes, line 53
53{const{children:n,width:r=10,height:o=5,...i}=e;return u.jsx(Je.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gz.displayName=hae;var mae=Gz;function Yz(e){const[t,n]=g.useState(void 0);return tr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var sS="Popper",[Zz,$a]=Zo(sS),[pae,Jz]=Zz(sS),Qz=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return u.jsx(pae,{scope:t,anchor:r,onAnchorChange:o,children:n})};Qz.displayName=sS;var Xz="PopperAnchor",eU=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jz(Xz,n),a=g.useRef(null),s=vt(t,a),l=g.useRef(null);return g.useEffect(()=>{const c=l.current;l.current=r?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:u.jsx(Je.div,{...o,ref:s})});eU.displayName=Xz;var lS="PopperContent",[fae,gae]=Zz(lS),tU=g.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:b,...y}=e,w=Jz(lS,n),[k,x]=g.useState(null),S=vt(t,ee=>x(ee)),[I,E]=g.useState(null),C=Yz(I),$=C?.width??0,T=C?.height??0,P=r+(i!=="center"?"-"+i:""),D=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},H=Array.isArray(c)?c:[c],z=H.length>0,V={padding:D,boundary:H.filter(bae),altBoundary:z},{refs:J,floatingStyles:F,placement:G,isPositioned:Y,middlewareData:le}=V3({strategy:"fixed",placement:P,whileElementsMounted:(...ee)=>X3(...ee,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[K3({mainAxis:o+T,alignmentAxis:a}),l&&G3({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?eB():void 0,...V}),l&&Y3({...V}),Z3({...V,apply:({elements:ee,rects:ye,availableWidth:ve,availableHeight:ce})=>{const{width:Oe,height:Ue}=ye.reference,Ne=ee.floating.style;Ne.setProperty("--radix-popper-available-width",`${ve}px`),Ne.setProperty("--radix-popper-available-height",`${ce}px`),Ne.setProperty("--radix-popper-anchor-width",`${Oe}px`),Ne.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),I&&J3({element:I,padding:s}),wae({arrowWidth:$,arrowHeight:T}),p&&Q3({strategy:"referenceHidden",...V})]}),[W,_]=oU(G),ne=qo(b);tr(()=>{Y&&ne?.()},[Y,ne]);const U=le.arrow?.x,A=le.arrow?.y,K=le.arrow?.centerOffset!==0,[Q,oe]=g.useState();return tr(()=>{k&&oe(window.getComputedStyle(k).zIndex)},[k]),u.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:Y?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[le.transformOrigin?.x,le.transformOrigin?.y].join(" "),...le.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(fae,{scope:n,placedSide:W,onArrowChange:E,arrowX:U,arrowY:A,shouldHideArrow:K,children:u.jsx(Je.div,{"data-side":W,"data-align":_,...y,ref:S,style:{...y.style,animation:Y?void 0:"none"}})})})});tU.displayName=lS;var nU="PopperArrow",yae={top:"bottom",right:"left",bottom:"top",left:"right"},rU=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=gae(nU,r),a=yae[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(mae,{...o,ref:n,style:{...o.style,display:"block"}})})});rU.displayName=nU;function bae(e){return e!==null}var wae=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,h]=oU(n),d={start:"0%",center:"50%",end:"100%"}[h],p=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+l/2;let b="",y="";return c==="bottom"?(b=a?d:`${p}px`,y=`${-l}px`):c==="top"?(b=a?d:`${p}px`,y=`${r.floating.height+l}px`):c==="right"?(b=`${-l}px`,y=a?d:`${f}px`):c==="left"&&(b=`${r.floating.width+l}px`,y=a?d:`${f}px`),{data:{x:b,y}}}});function oU(e){const[t,n="center"]=e.split("-");return[t,n]}var gh=Qz,yh=eU,Kg=tU,Gg=rU,vae="Portal",Mc=g.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=g.useState(!1);tr(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?$N.createPortal(u.jsx(Je.div,{...r,ref:t}),a):null});Mc.displayName=vae;function kae(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var To=e=>{const{present:t,children:n}=e,r=xae(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=vt(r.ref,_ae(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};To.displayName="Presence";function xae(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),a=e?"mounted":"unmounted",[s,l]=kae(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Cm(r.current);i.current=s==="mounted"?c:"none"},[s]),tr(()=>{const c=r.current,h=o.current;if(h!==e){const p=i.current,f=Cm(c);e?l("MOUNT"):f==="none"||c?.display==="none"?l("UNMOUNT"):l(h&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),tr(()=>{if(t){let c;const h=t.ownerDocument.defaultView??window,d=f=>{const y=Cm(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&y&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=f=>{f.target===t&&(i.current=Cm(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Cm(e){return e?.animationName||"none"}function _ae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pb="rovingFocusGroup.onEntryFocus",Sae={bubbles:!1,cancelable:!0},bh="RovingFocusGroup",[Sv,iU,Tae]=aS(bh),[Iae,Yg]=Zo(bh,[Tae]),[Eae,Aae]=Iae(bh),aU=g.forwardRef((e,t)=>u.jsx(Sv.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Sv.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Cae,{...e,ref:t})})}));aU.displayName=bh;var Cae=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:h=!1,...d}=e,p=g.useRef(null),f=vt(t,p),b=qg(i),[y,w]=go({prop:a,defaultProp:s??null,onChange:l,caller:bh}),[k,x]=g.useState(!1),S=qo(c),I=iU(n),E=g.useRef(!1),[C,$]=g.useState(0);return g.useEffect(()=>{const T=p.current;if(T)return T.addEventListener(Pb,S),()=>T.removeEventListener(Pb,S)},[S]),u.jsx(Eae,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:y,onItemFocus:g.useCallback(T=>w(T),[w]),onItemShiftTab:g.useCallback(()=>x(!0),[]),onFocusableItemAdd:g.useCallback(()=>$(T=>T+1),[]),onFocusableItemRemove:g.useCallback(()=>$(T=>T-1),[]),children:u.jsx(Je.div,{tabIndex:k||C===0?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:Ie(e.onMouseDown,()=>{E.current=!0}),onFocus:Ie(e.onFocus,T=>{const P=!E.current;if(T.target===T.currentTarget&&P&&!k){const D=new CustomEvent(Pb,Sae);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){const H=I().filter(G=>G.focusable),z=H.find(G=>G.active),V=H.find(G=>G.id===y),F=[z,V,...H].filter(Boolean).map(G=>G.ref.current);cU(F,h)}}E.current=!1}),onBlur:Ie(e.onBlur,()=>x(!1))})})}),sU="RovingFocusGroupItem",lU=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=En(),c=i||l,h=Aae(sU,n),d=h.currentTabStopId===c,p=iU(n),{onFocusableItemAdd:f,onFocusableItemRemove:b,currentTabStopId:y}=h;return g.useEffect(()=>{if(r)return f(),()=>b()},[r,f,b]),u.jsx(Sv.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:u.jsx(Je.span,{tabIndex:d?0:-1,"data-orientation":h.orientation,...s,ref:t,onMouseDown:Ie(e.onMouseDown,w=>{r?h.onItemFocus(c):w.preventDefault()}),onFocus:Ie(e.onFocus,()=>h.onItemFocus(c)),onKeyDown:Ie(e.onKeyDown,w=>
vendor: 10,121 bytes, lines 53-68
53{if(w.key==="Tab"&&w.shiftKey){h.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const k=Dae(w,h.orientation,h.dir);if(k!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let S=p().filter(I=>I.focusable).map(I=>I.ref.current);if(k==="last")S.reverse();else if(k==="prev"||k==="next"){k==="prev"&&S.reverse();const I=S.indexOf(w.currentTarget);S=h.loop?Oae(S,I+1):S.slice(I+1)}setTimeout(()=>cU(S))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:y!=null}):a})})});lU.displayName=sU;var Nae={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pae(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Dae(e,t,n){const r=Pae(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Nae[r]}function cU(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Oae(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uU=aU,dU=lU;function Rae(e){const t=Mae(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find($ae);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Mae(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=zae(o),s=Lae(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jae=Symbol("radix.slottable");function $ae(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jae}function Lae(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function zae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uae=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pl=new WeakMap,Nm=new WeakMap,Pm={},Db=0,hU=function(e){return e&&(e.host||hU(e.parentNode))},Fae=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hU(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Wae=function(e,t,n,r){var o=Fae(t,Array.isArray(e)?e:[e]);Pm[n]||(Pm[n]=new WeakMap);var i=Pm[n],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var h=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))h(p);else try{var f=p.getAttribute(r),b=f!==null&&f!=="false",y=(pl.get(p)||0)+1,w=(i.get(p)||0)+1;pl.set(p,y),i.set(p,w),a.push(p),y===1&&b&&Nm.set(p,!0),w===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",p,k)}})};return h(t),s.clear(),Db++,function(){a.forEach(function(d){var p=pl.get(d)-1,f=i.get(d)-1;pl.set(d,p),i.set(d,f),p||(Nm.has(d)||d.removeAttribute(r),Nm.delete(d)),f||d.removeAttribute(n)}),Db--,Db||(pl=new WeakMap,pl=new WeakMap,Nm=new WeakMap,Pm={})}},Zg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Uae(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Wae(r,o,n,"aria-hidden")):function(){return null}},Tv=function(e,t){return Tv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Tv(e,t)};function cS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var sn=function(){return sn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},sn.apply(this,arguments)};function mU(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function xe(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Qm="right-scroll-bar-position",Xm="width-before-scroll-bar",Bae="with-scroll-bars-hidden",Hae="--removed-body-scroll-bar-size";function Ob(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qae(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Vae=typeof window<"u"?g.useLayoutEffect:g.useEffect,wE=new WeakMap;function Kae(e,t){var n=qae(null,function(r){return e.forEach(function(o){return Ob(o,r)})});return Vae(function(){var r=wE.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Ob(s,null)}),i.forEach(function(s){o.has(s)||Ob(s,a)})}wE.set(n,e)},[e]),n}function Gae(e){return e}function Yae(e,t){t===void 0&&(t=Gae);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var h=a;a=[],h.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(h){a.push(h),c()},filter:function(h){return a=a.filter(h),n}}}};return o}function Zae(e){e===void 0&&(e={});var t=Yae(null);return t.options=sn({async:!0,ssr:!1},e),t}var pU=function(e){var t=e.sideCar,n=mU(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,sn({},n))};pU.isSideCarExport=!0;function Jae(e,t){return e.useMedium(t),pU}var fU=Zae(),Rb=function(){},Jg=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Rb,onWheelCapture:Rb,onTouchMoveCapture:Rb}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,h=e.enabled,d=e.shards,p=e.sideCar,f=e.noRelative,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,k=e.as,x=k===void 0?"div":k,S=e.gapMode,I=mU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,C=Kae([n,t]),$=sn(sn({},I),o);return g.createElement(g.Fragment,null,h&&g.createElement(E,{sideCar:fU,removeScrollBar:c,shards:d,noRelative:f,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:S}),a?g.cloneElement(g.Children.only(s),sn(sn({},$),{ref:C})):g.createElement(x,sn({},$,{className:l,ref:C}),s))});Jg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jg.classNames={fullWidth:Xm,zeroRight:Qm};var Qae=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xae(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qae();return t&&e.setAttribute("nonce",t),e}function ese(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tse(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nse=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xae())&&(ese(t,n),tse(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rse=function(){var e=nse();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gU=function(){var e=rse(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ose={left:0,top:0,right:0,gap:0},Mb=function(e){return parseInt(e||"",10)||0},ise=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Mb(n),Mb(r),Mb(o)]},ase=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ose;var t=ise(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sse=gU(),Vl="data-scroll-locked",lse=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
54  .`.concat(Bae,` {
55   overflow: hidden `).concat(r,`;
56   padding-right: `).concat(s,"px ").concat(r,`;
57  }
58  body[`).concat(Vl,`] {
59    overflow: hidden `).concat(r,`;
60    overscroll-behavior: contain;
61    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
62    padding-left: `.concat(o,`px;
63    padding-top: `).concat(i,`px;
64    padding-right: `).concat(a,`px;
65    margin-left:0;
66    margin-top:0;
67    margin-right: `).concat(s,"px ").concat(r,`;
68    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
68")].filter(Boolean).join(""),`
69  }
70  
71  .`).concat(Qm,` {
72    right: `).concat(s,"px ").concat(r,`;
73  }
74  
75  .`).concat(Xm,` {
76    margin-right: `).concat(s,"px ").concat(r,`;
77  }
78  
79  .`).concat(Qm," .").concat(Qm,` {
80    right: 0 `).concat(r,`;
81  }
82  
83  .`).concat(Xm," .").concat(Xm,` {
84    margin-right: 0 `).concat(r,`;
85  }
86  
87  body[`).concat(Vl,`] {
88    `).concat(Hae,": ").concat(s,`px;
89  }
90`)},vE=function(){var e=parseInt(document.body.getAttribute(Vl)||"0",10);return isFinite(e)?e:0},cse=function(){g.useEffect(function(){return document.body.setAttribute(Vl,(vE()+1).toString()),function(){var e=vE()-1;e<=0?document.body.removeAttribute(Vl):document.body.setAttribute(Vl,e.toString())}},[])},use=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;cse();var i=g.useMemo(function(){return ase(o)},[o]);return g.createElement(sse,{styles:lse(i,!t,o,n?"":"!important")})},Iv=!1;if(typeof window<"u")try{var Dm=Object.defineProperty({},"passive",{get:function(){return Iv=!0,!0}});window.addEventListener("test",Dm,Dm),window.removeEventListener("test",Dm,Dm)}catch{Iv=!1}var fl=Iv?{passive:!1}:!1,dse=function(e){return e.tagName==="TEXTAREA"},yU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dse(e)&&n[t]==="visible")},hse=function(e){return yU(e,"overflowY")},mse=function(e){return yU(e,"overflowX")},kE=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=bU(e,r);if(o){var i=wU(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pse=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fse=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},bU=function(e,t){return e==="v"?hse(t):mse(t)},wU=function(e,t){return e==="v"?pse(t):fse(t)},gse=function(e,t){return e==="h"&&t==="rtl"?-1:1},yse=function(e,t,n,r,o){var i=gse(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,h=a>0,d=0,p=0;do{if(!s)break;var f=wU(e,s),b=f[0],y=f[1],w=f[2],k=y-w-i*b;(b||k)&&bU(e,s)&&(d+=k,p+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(h&&Math.abs(d)<1||!h&&Math.abs(p)<1)&&(c=!0),c},Om=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xE=function(e){return[e.deltaX,e.deltaY]},_E=function(e){return e&&"current"in e?e.current:e},bse=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wse=function(e){return`
91  .block-interactivity-`.concat(e,` {pointer-events: none;}
92  .allow-interactivity-`).concat(e,` {pointer-events: all;}
93`)},vse=0,gl=[];function kse(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(vse++)[0],i=g.useState(gU)[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=xe([e.lockRef.current],(e.shards||[]).map(_E),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(y,w){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var k=Om(y),x=n.current,S="deltaX"in y?y.deltaX:x[0]-k[0],I="deltaY"in y?y.deltaY:x[1]-k[1],E,C=y.target,$=Math.abs(S)>Math.abs(I)?"h":"v";if("touches"in y&&$==="h"&&C.type==="range")return!1;var T=window.getSelection(),P=T&&T.anchorNode,D=P?P===C||P.contains(C):!1;if(D)return!1;var H=kE($,C);if(!H)return!0;if(H?E=$:(E=$==="v"?"h":"v",H=kE($,C)),!H)return!1;if(!r.current&&"changedTouches"in y&&(S||I)&&(r.current=E),!E)return!0;var z=r.current||E;return yse(z,w,y,z==="h"?S:I)},[]),l=g.useCallback(function(y){var w=y;if(!(!gl.length||gl[gl.length-1]!==i)){var k="deltaY"in w?xE(w):Om(w),x=t.current.filter(function(E){return E.name===w.t
vendor: 23,745 bytes, line 93
93ype&&(E.target===w.target||w.target===E.shadowParent)&&bse(E.delta,k)})[0];if(x&&x.should){w.cancelable&&w.preventDefault();return}if(!x){var S=(a.current.shards||[]).map(_E).filter(Boolean).filter(function(E){return E.contains(w.target)}),I=S.length>0?s(w,S[0]):!a.current.noIsolation;I&&w.cancelable&&w.preventDefault()}}},[]),c=g.useCallback(function(y,w,k,x){var S={name:y,delta:w,target:k,should:x,shadowParent:xse(k)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(I){return I!==S})},1)},[]),h=g.useCallback(function(y){n.current=Om(y),r.current=void 0},[]),d=g.useCallback(function(y){c(y.type,xE(y),y.target,s(y,e.lockRef.current))},[]),p=g.useCallback(function(y){c(y.type,Om(y),y.target,s(y,e.lockRef.current))},[]);g.useEffect(function(){return gl.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,fl),document.addEventListener("touchmove",l,fl),document.addEventListener("touchstart",h,fl),function(){gl=gl.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,fl),document.removeEventListener("touchmove",l,fl),document.removeEventListener("touchstart",h,fl)}},[]);var f=e.removeScrollBar,b=e.inert;return g.createElement(g.Fragment,null,b?g.createElement(i,{styles:wse(o)}):null,f?g.createElement(use,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xse(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _se=Jae(fU,kse);var wh=g.forwardRef(function(e,t){return g.createElement(Jg,sn({},e,{ref:t,sideCar:_se}))});wh.classNames=Jg.classNames;var Ev=["Enter"," "],Sse=["ArrowDown","PageUp","Home"],vU=["ArrowUp","PageDown","End"],Tse=[...Sse,...vU],Ise={ltr:[...Ev,"ArrowRight"],rtl:[...Ev,"ArrowLeft"]},Ese={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vh="Menu",[bd,Ase,Cse]=aS(vh),[Ys,kU]=Zo(vh,[Cse,$a,Yg]),kh=$a(),xU=Yg(),[_U,La]=Ys(vh),[Nse,xh]=Ys(vh),SU=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=kh(t),[l,c]=g.useState(null),h=g.useRef(!1),d=qo(i),p=qg(o);return g.useEffect(()=>{const f=()=>{h.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>h.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),u.jsx(gh,{...s,children:u.jsx(_U,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:u.jsx(Nse,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:h,dir:p,modal:a,children:r})})})};SU.displayName=vh;var Pse="MenuAnchor",uS=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kh(n);return u.jsx(yh,{...o,...r,ref:t})});uS.displayName=Pse;var dS="MenuPortal",[Dse,TU]=Ys(dS,{forceMount:void 0}),IU=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=La(dS,t);return u.jsx(Dse,{scope:t,forceMount:n,children:u.jsx(To,{present:n||i.open,children:u.jsx(Mc,{asChild:!0,container:o,children:r})})})};IU.displayName=dS;var ho="MenuContent",[Ose,hS]=Ys(ho),EU=g.forwardRef((e,t)=>{const n=TU(ho,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=La(ho,e.__scopeMenu),a=xh(ho,e.__scopeMenu);return u.jsx(bd.Provider,{scope:e.__scopeMenu,children:u.jsx(To,{present:r||i.open,children:u.jsx(bd.Slot,{scope:e.__scopeMenu,children:a.modal?u.jsx(Rse,{...o,ref:t}):u.jsx(Mse,{...o,ref:t})})})})}),Rse=g.forwardRef((e,t)=>{const n=La(ho,e.__scopeMenu),r=g.useRef(null),o=vt(t,r);return g.useEffect(()=>{const i=r.current;if(i)return Zg(i)},[]),u.jsx(mS,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ie(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Mse=g.forwardRef((e,t)=>{const n=La(ho,e.__scopeMenu);return u.jsx(mS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),jse=Rae("MenuContent.ScrollLock"),mS=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:d,onInteractOutside:p,onDismiss:f,disableOutsideScroll:b,...y}=e,w=La(ho,n),k=xh(ho,n),x=kh(n),S=xU(n),I=Ase(n),[E,C]=g.useState(null),$=g.useRef(null),T=vt(t,$,w.onContentChange),P=g.useRef(0),D=g.useRef(""),H=g.useRef(0),z=g.useRef(null),V=g.useRef("right"),J=g.useRef(0),F=b?wh:g.Fragment,G=b?{as:jse,allowPinchZoom:!0}:void 0,Y=W=>{const _=D.current+W,ne=I().filter(ee=>!ee.disabled),U=document.activeElement,A=ne.find(ee=>ee.ref.current===U)?.textValue,K=ne.map(ee=>ee.textValue),Q=Gse(K,_,A),oe=ne.find(ee=>ee.textValue===Q)?.ref.current;(function ee(ye){D.current=ye,window.clearTimeout(P.current),ye!==""&&(P.current=window.setTimeout(()=>ee(""),1e3))})(_),oe&&setTimeout(()=>oe.focus())};g.useEffect(()=>()=>window.clearTimeout(P.current),[]),Vg();const le=g.useCallback(W=>V.current===z.current?.side&&Zse(W,z.current?.area),[]);return u.jsx(Ose,{scope:n,searchRef:D,onItemEnter:g.useCallback(W=>{le(W)&&W.preventDefault()},[le]),onItemLeave:g.useCallback(W=>{le(W)||($.current?.focus(),C(null))},[le]),onTriggerLeave:g.useCallback(W=>{le(W)&&W.preventDefault()},[le]),pointerGraceTimerRef:H,onPointerGraceIntentChange:g.useCallback(W=>{z.current=W},[]),children:u.jsx(F,{...G,children:u.jsx(fh,{asChild:!0,trapped:o,onMountAutoFocus:Ie(i,W=>{W.preventDefault(),$.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:u.jsx(Rc,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:d,onInteractOutside:p,onDismiss:f,children:u.jsx(uU,{asChild:!0,...S,dir:k.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:Ie(l,W=>{k.isUsingKeyboardRef.current||W.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Kg,{role:"menu","aria-orientation":"vertical","data-state":HU(w.open),"data-radix-menu-content":"",dir:k.dir,...x,...y,ref:T,style:{outline:"none",...y.style},onKeyDown:Ie(y.onKeyDown,W=>{const ne=W.target.closest("[data-radix-menu-content]")===W.currentTarget,U=W.ctrlKey||W.altKey||W.metaKey,A=W.key.length===1;ne&&(W.key==="Tab"&&W.preventDefault(),!U&&A&&Y(W.key));const K=$.current;if(W.target!==K||!Tse.includes(W.key))return;W.preventDefault();const oe=I().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);vU.includes(W.key)&&oe.reverse(),Vse(oe)}),onBlur:Ie(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(P.current),D.current="")}),onPointerMove:Ie(e.onPointerMove,wd(W=>{const _=W.target,ne=J.current!==W.clientX;if(W.currentTarget.contains(_)&&ne){const U=W.clientX>J.current?"right":"left";V.current=U,J.current=W.clientX}}))})})})})})})});EU.displayName=ho;var $se="MenuGroup",pS=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Je.div,{role:"group",...r,ref:t})});pS.displayName=$se;var Lse="MenuLabel",AU=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Je.div,{...r,ref:t})});AU.displayName=Lse;var Lp="MenuItem",SE="menu.itemSelect",Qg=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=g.useRef(null),a=xh(Lp,e.__scopeMenu),s=hS(Lp,e.__scopeMenu),l=vt(t,i),c=g.useRef(!1),h=()=>{const d=i.current;if(!n&&d){const p=new CustomEvent(SE,{bubbles:!0,cancelable:!0});d.addEventListener(SE,f=>r?.(f),{once:!0}),Hz(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return u.jsx(CU,{...o,ref:l,disabled:n,onClick:Ie(e.onClick,h),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:Ie(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:Ie(e.onKeyDown,d=>{const p=s.searchRef.current!=="";n||p&&d.key===" "||Ev.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Qg.displayName=Lp;var CU=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=hS(Lp,n),s=xU(n),l=g.useRef(null),c=vt(t,l),[h,d]=g.useState(!1),[p,f]=g.useState("");return g.useEffect(()=>{const b=l.current;b&&f((b.textContent??"").trim())},[i.children]),u.jsx(bd.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:u.jsx(dU,{asChild:!0,...s,focusable:!r,children:u.jsx(Je.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:Ie(e.onPointerMove,wd(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ie(e.onPointerLeave,wd(b=>a.onItemLeave(b))),onFocus:Ie(e.onFocus,()=>d(!0)),onBlur:Ie(e.onBlur,()=>d(!1))})})})}),zse="MenuCheckboxItem",NU=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.jsx(MU,{scope:e.__scopeMenu,checked:n,children:u.jsx(Qg,{role:"menuitemcheckbox","aria-checked":zp(n)?"mixed":n,...o,ref:t,"data-state":yS(n),onSelect:Ie(o.onSelect,()=>r?.(zp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});NU.displayName=zse;var PU="MenuRadioGroup",[Use,Fse]=Ys(PU,{value:void 0,onValueChange:()=>{}}),DU=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=qo(r);return u.jsx(Use,{scope:e.__scopeMenu,value:n,onValueChange:i,children:u.jsx(pS,{...o,ref:t})})});DU.displayName=PU;var OU="MenuRadioItem",RU=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Fse(OU,e.__scopeMenu),i=n===o.value;return u.jsx(MU,{scope:e.__scopeMenu,checked:i,children:u.jsx(Qg,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":yS(i),onSelect:Ie(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});RU.displayName=OU;var fS="MenuItemIndicator",[MU,Wse]=Ys(fS,{checked:!1}),jU=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Wse(fS,n);return u.jsx(To,{present:r||zp(i.checked)||i.checked===!0,children:u.jsx(Je.span,{...o,ref:t,"data-state":yS(i.checked)})})});jU.displayName=fS;var Bse="MenuSeparator",$U=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Je.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$U.displayName=Bse;var Hse="MenuArrow",LU=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kh(n);return u.jsx(Gg,{...o,...r,ref:t})});LU.displayName=Hse;var gS="MenuSub",[qse,zU]=Ys(gS),UU=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=La(gS,t),a=kh(t),[s,l]=g.useState(null),[c,h]=g.useState(null),d=qo(o);return g.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),u.jsx(gh,{...a,children:u.jsx(_U,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:h,children:u.jsx(qse,{scope:t,contentId:En(),triggerId:En(),trigger:s,onTriggerChange:l,children:n})})})};UU.displayName=gS;var Du="MenuSubTrigger",FU=g.forwardRef((e,t)=>{const n=La(Du,e.__scopeMenu),r=xh(Du,e.__scopeMenu),o=zU(Du,e.__scopeMenu),i=hS(Du,e.__scopeMenu),a=g.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},h=g.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return g.useEffect(()=>h,[h]),g.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.jsx(uS,{asChild:!0,...c,children:u.jsx(CU,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":HU(n.open),...e,ref:wr(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ie(e.onPointerMove,wd(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:Ie(e.onPointerLeave,wd(d=>{h();const p=n.content?.getBoundingClientRect();if(p){const f=n.content?.dataset.side,b=f==="right",y=b?-5:5,w=p[b?"left":"right"],k=p[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:w,y:p.top},{x:k,y:p.top},{x:k,y:p.bottom},{x:w,y:p.bottom}],side:f}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Ie(e.onKeyDown,d=>{const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||Ise[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});FU.displayName=Du;var WU="MenuSubContent",BU=g.forwardRef((e,t)=>{const n=TU(ho,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=La(ho,e.__scopeMenu),a=xh(ho,e.__scopeMenu),s=zU(WU,e.__scopeMenu),l=g.useRef(null),c=vt(t,l);return u.jsx(bd.Provider,{scope:e.__scopeMenu,children:u.jsx(To,{present:r||i.open,children:u.jsx(bd.Slot,{scope:e.__scopeMenu,children:u.jsx(mS,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{a.isUsingKeyboardRef.current&&l.current?.focus(),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:Ie(e.onFocusOutside,h=>{h.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,h=>{a.onClose(),h.preventDefault()}),onKeyDown:Ie(e.onKeyDown,h=>{const d=h.currentTarget.contains(h.target),p=Ese[a.dir].includes(h.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),h.preventDefault())})})})})})});BU.displayName=WU;function HU(e){return e?"open":"closed"}function zp(e){return e==="indeterminate"}function yS(e){return zp(e)?"indeterminate":e?"checked":"unchecked"}function Vse(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Kse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Gse(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Kse(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Yse(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,h=s.y,d=l.x,p=l.y;h>r!=p>r&&n<(d-c)*(r-h)/(p-h)+c&&(o=!o)}return o}function Zse(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Yse(n,t)}function wd(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Jse=SU,Qse=uS,Xse=IU,ele=EU,tle=pS,nle=AU,rle=Qg,ole=NU,ile=DU,ale=RU,sle=jU,lle=$U,cle=LU,ule=UU,dle=FU,hle=BU,Xg="DropdownMenu",[mle]=Zo(Xg,[kU]),ir=kU(),[ple,qU]=mle(Xg),VU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=ir(t),c=g.useRef(null),[h,d]=go({prop:o,defaultProp:i??!1,onChange:a,caller:Xg});return u.jsx(ple,{scope:t,triggerId:En(),triggerRef:c,contentId:En(),open:h,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(p=>!p),[d]),modal:s,children:u.jsx(Jse,{...l,open:h,onOpenChange:d,dir:r,modal:s,children:n})})};VU.displayName=Xg;var KU="DropdownMenuTrigger",GU=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=qU(KU,n),a=ir(n);return u.jsx(Qse,{asChild:!0,...a,children:u.jsx(Je.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:wr(t,i.triggerRef),onPointerDown:Ie(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:Ie(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});GU.displayName=KU;var fle="DropdownMenuPortal",YU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ir(t);return u.jsx(Xse,{...r,...n})};YU.displayName=fle;var ZU="DropdownMenuContent",JU=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qU(ZU,n),i=ir(n),a=g.useRef(!1);return u.jsx(ele,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:Ie(e.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:Ie(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,h=l.button===2||c;(!o.modal||h)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});JU.displayName=ZU;var gle="DropdownMenuGroup",yle=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(tle,{...o,...r,ref:t})});yle.displayName=gle;var ble="DropdownMenuLabel",QU=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(nle,{...o,...r,ref:t})});QU.displayName=ble;var wle="DropdownMenuItem",XU=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(rle,{...o,...r,ref:t})});XU.displayName=wle;var vle="DropdownMenuCheckboxItem",e4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(ole,{...o,...r,ref:t})});e4.displayName=vle;var kle="DropdownMenuRadioGroup",t4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(ile,{...o,...r,ref:t})});t4.displayName=kle;var xle="DropdownMenuRadioItem",n4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(ale,{...o,...r,ref:t})});n4.displayName=xle;var _le="DropdownMenuItemIndicator",r4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(sle,{...o,...r,ref:t})});r4.displayName=_le;var Sle="DropdownMenuSeparator",o4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(lle,{...o,...r,ref:t})});o4.displayName=Sle;var Tle="DropdownMenuArrow",Ile=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(cle,{...o,...r,ref:t})});Ile.displayName=Tle;var Ele=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=ir(t),[s,l]=go({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return u.jsx(ule,{...a,open:s,onOpenChange:l,children:n})},Ale="DropdownMenuSubTrigger",i4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(dle,{...o,...r,ref:t})});i4.displayName=Ale;var Cle="DropdownMenuSubContent",a4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ir(n);return u.jsx(hle,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});a4.displayName=Cle;var Nle=VU,Ple=GU,Dle=YU,Ole=JU,Rle=QU,Mle=XU,jle=e4,$le=t4,Lle=n4,s4=r4,zle=o4,Ule=Ele,Fle=i4,Wle=a4;function Ble({...e}){return u.jsx(Nle,{"data-slot":"dropdown-menu",...e})}function Hle({...e}){return u.jsx(Ple,{"data-slot":"dropdown-menu-trigger",...e})}function qle({className:e,sideOffset:t=4,...n}){return u.jsx(Dle,{children:u.jsx(Ole,{"data-slot":"dropdown-menu-content",sideOffset:t,className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1",e),...n})})}function uu({className:e,inset:t,variant:n="default",...r}){return u.jsx(Mle,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:X("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function _$e({className:e,children:t,checked:n,...r}){return u.jsxs(jle,{"data-slot":"dropdown-menu-checkbox-item",className:X("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[u.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:u.jsx(s4,{children:u.jsx(Vr,{className:"size-4"})})}),t]})}function S$e({...e}){return u.jsx($le,{"data-slot":"dropdown-menu-radio-group",...e})}function T$e({className:e,children:t,...n}){return u.jsxs(Lle,{"data-slot":"dropdown-menu-radio-item",className:X("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[u.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:u.jsx(s4,{children:u.jsx(MG,{className:"size-2 fill-current"})})}),t]})}function Vle({className:e,inset:t,...n}){return u.jsx(Rle,{"data-slot":"dropdown-menu-label","data-inset":t,className:X("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Kle({className:e,...t}){return u.jsx(zle,{"data-slot":"dropdown-menu-separator",className:X("bg-border -mx-1 my-1 h-px",e),...t})}function I$e({className:e,...t}){return u.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:X("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function E$e({...e}){return u.jsx(Ule,{"data-slot":"dropdown-menu-sub",...e})}function A$e({className:e,inset:t,children:n,...r}){return u.jsxs(Fle,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:X("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,u.jsx(Ec,{className:"ml-auto size-4"})]})}function C$e({className:e,...t}){return u.jsx(Wle,{"data-slot":"dropdown-menu-sub-content",className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
93de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1",e),...t})}function Gle(e){const t=Yle(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(Jle);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Yle(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Xle(o),s=Qle(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zle=Symbol("radix.slottable");function Jle(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zle}function Qle(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Xle(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ey="Dialog",[l4]=Zo(ey),[ece,Jo]=l4(ey),c4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=g.useRef(null),l=g.useRef(null),[c,h]=go({prop:r,defaultProp:o??!1,onChange:i,caller:ey});return u.jsx(ece,{scope:t,triggerRef:s,contentRef:l,contentId:En(),titleId:En(),descriptionId:En(),open:c,onOpenChange:h,onOpenToggle:g.useCallback(()=>h(d=>!d),[h]),modal:a,children:n})};c4.displayName=ey;var u4="DialogTrigger",tce=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Jo(u4,n),i=vt(t,o.triggerRef);return u.jsx(Je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vS(o.open),...r,ref:i,onClick:Ie(e.onClick,o.onOpenToggle)})});tce.displayName=u4;var bS="DialogPortal",[nce,d4]=l4(bS,{forceMount:void 0}),h4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Jo(bS,t);return u.jsx(nce,{scope:t,forceMount:n,children:g.Children.map(r,a=>u.jsx(To,{present:n||i.open,children:u.jsx(Mc,{asChild:!0,container:o,children:a})}))})};h4.displayName=bS;var Up="DialogOverlay",m4=g.forwardRef((e,t)=>{const n=d4(Up,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Jo(Up,e.__scopeDialog);return i.modal?u.jsx(To,{present:r||i.open,children:u.jsx(oce,{...o,ref:t})}):null});m4.displayName=Up;var rce=Gle("DialogOverlay.RemoveScroll"),oce=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Jo(Up,n);return u.jsx(wh,{as:rce,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(Je.div,{"data-state":vS(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),As="DialogContent",p4=g.forwardRef((e,t)=>{const n=d4(As,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Jo(As,e.__scopeDialog);return u.jsx(To,{present:r||i.open,children:i.modal?u.jsx(ice,{...o,ref:t}):u.jsx(ace,{...o,ref:t})})});p4.displayName=As;var ice=g.forwardRef((e,t)=>{const n=Jo(As,e.__scopeDialog),r=g.useRef(null),o=vt(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Zg(i)},[]),u.jsx(f4,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Ie(e.onFocusOutside,i=>i.preventDefault())})}),ace=g.forwardRef((e,t)=>{const n=Jo(As,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return u.jsx(f4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),f4=g.forwardRef((e,t)=>
vendor: 4,387 bytes, lines 93-97
93{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Jo(As,n),l=g.useRef(null),c=vt(t,l);return Vg(),u.jsxs(u.Fragment,{children:[u.jsx(fh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Rc,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":vS(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(sce,{titleId:s.titleId}),u.jsx(cce,{contentRef:l,descriptionId:s.descriptionId})]})]})}),wS="DialogTitle",g4=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Jo(wS,n);return u.jsx(Je.h2,{id:o.titleId,...r,ref:t})});g4.displayName=wS;var y4="DialogDescription",b4=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Jo(y4,n);return u.jsx(Je.p,{id:o.descriptionId,...r,ref:t})});b4.displayName=y4;var w4="DialogClose",v4=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Jo(w4,n);return u.jsx(Je.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});v4.displayName=w4;function vS(e){return e?"open":"closed"}var k4="DialogTitleWarning",[N$e,x4]=Pie(k4,{contentName:As,titleName:wS,docsSlug:"dialog"}),sce=({titleId:e})=>{const t=x4(k4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
94
95If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
96
97For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lce="DialogDescriptionWarning",cce=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x4(lce).contentName}}.`;return g.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},kS=c4,xS=h4,ty=m4,ny=p4,_S=g4,SS=b4,TS=v4;function za({...e}){return u.jsx(kS,{"data-slot":"dialog",...e})}function uce({...e}){return u.jsx(xS,{"data-slot":"dialog-portal",...e})}function P$e({...e}){return u.jsx(TS,{"data-slot":"dialog-close",...e})}function dce({className:e,...t}){return u.jsx(ty,{"data-slot":"dialog-overlay",className:X("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-overlay",e),...t})}function Ua({className:e,children:t,showCloseButton:n=!0,container:r,...o}){return u.jsxs(uce,{"data-slot":"dialog-portal",container:r,children:[u.jsx(dce,{}),u.jsxs(ny,{"data-slot":"dialog-content",className:X("bg-surface data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 duration-200 sm:max-w-lg",e),...o,children:[t,n&&u.jsxs(TS,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[u.jsx(Fi,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Zs({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:X("flex flex-col gap-2 text-center sm:text-left",e),...t})}function _h({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:X("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Fa({className:e,...t}){return u.jsx(_S,{"data-slot":"dialog-title",className:X("text-lg leading-none font-semibold",e),...t})}function jc({className:e,...t}){return u.jsx(SS,{"data-slot":"dialog-description",className:X("text-muted-foreground text-sm",e),...t})}const _4=6048e5,hce=864e5,S4=6e4,T4=36e5,mce=1e3,D$e=525600,O$e=43200,R$e=1440,TE=Symbol.for("constructDateFrom");function en(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&TE in e?e[TE](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ut(e,t){return en(t||e,e)}
97function $c(e,t,n){const r=Ut(e,n?.in);return isNaN(t)?en(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function pce(e,t,n){return en(e,+Ut(e)+t)}function fce(e,t,n){return pce(e,t*T4)}let gce={};function Lc(){return gce}function Da(e,t){const n=Lc(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Ut(e,t?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function mc(e,t){return Da(e,{...t,weekStartsOn:1})}function I4(e,t){const n=Ut(e,t?.in),r=n.getFullYear(),o=en(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=mc(o),a=en(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=mc(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Fp(e){const t=Ut(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function E4(e,...t){const n=en.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Wp(e,t){const n=Ut(e,t?.in);return n.setHours(0,0,0,0),n}function yce(e,t,n){const[r,o]=E4(n?.in,e,t),i=Wp(r),a=Wp(o),s=+i-Fp(i),l=+a-Fp(a);return Math.round((s-l)/hce)}function bce(e,t){const n=I4(e,t),r=en(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),mc(r)}function IS(e,t,n){const r=Ut(e,n?.in);return r.setTime(r.getTime()+t*S4),r}function Av(e,t,n){const[r,o]=E4(n?.in,e,t);return+Wp(r)==+Wp(o)}function wce(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vce(e){return!(!wce(e)&&typeof e!="number"||isNaN(+Ut(e)))}function kce(e,t){const n=Ut(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const xce={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_ce=(e,t,n)=>{let r;const o=xce[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function jb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Sce={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ice={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ece={date:jb({formats:Sce,defaultWidth:"full"}),time:jb({formats:Tce,defaultWidth:"full"}),dateTime:jb({formats:Ice,defaultWidth:"full"})},Ace={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cce=(e,t,n,r)=>Ace[e];function du(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const Nce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dce={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Oce={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
97ay","Saturday"]},Rce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jce=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$ce={ordinalNumber:jce,era:du({values:Nce,defaultWidth:"wide"}),quarter:du({values:Pce,defaultWidth:"wide",argumentCallback:e=>e-1}),month:du({values:Dce,defaultWidth:"wide"}),day:du({values:Oce,defaultWidth:"wide"}),dayPeriod:du({values:Rce,defaultWidth:"wide",formattingValues:Mce,defaultFormattingWidth:"wide"})};function hu(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?zce(s,d=>d.test(a)):Lce(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const h=t.slice(a.length);return{value:c,rest:h}}}function Lce(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function zce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Uce(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const Fce=/^(\d+)(th|st|nd|rd)?/i,Wce=/\d+/i,Bce={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hce={any:[/^b/i,/^(a|c)/i]},qce={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vce={any:[/1/i,/2/i,/3/i,/4/i]},Kce={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gce={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yce={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zce={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Jce={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Qce={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xce={ordinalNumber:Uce({matchPattern:Fce,parsePattern:Wce,valueCallback:e=>parseInt(e,10)}),era:hu({matchPatterns:Bce,defaultMatchWidth:"wide",parsePatterns:Hce,defaultParseWidth:"any"}),quarter:hu({matchPatterns:qce,defaultMatchWidth:"wide",parsePatterns:Vce,defaultParseWidth:"any",valueCallback:e=>e+1}),month:hu({matchPatterns:Kce,defaultMatchWidth:"wide",parsePatterns:Gce,defaultParseWidth:"any"}),day:hu({matchPatterns:Yce,defaultMatchWidth:"wide",parsePatterns:Zce,defaultParseWidth:"any"}),dayPeriod:hu({matchPatterns:Jce,defaultMatchWidth:"any",parsePatterns:Qce,defaultParseWidth:"any"})},A4={code:"en-US",formatDistance:_ce,formatLong:Ece,formatRelative:Cce,localize:$ce,match:Xce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function eue(e,t){const n=Ut(e,t?.in);return yce(n,kce(n))+1}function C4(e,t){const n=Ut(e,t?.in),r=+mc(n)-+bce(n);return Math.round(r/_4)+1}function ES(e,t){const n=Ut(e,t?.in),r=n.getFullYear(),o=Lc(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=en(t?.in||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Da(a,t),l=en(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=Da(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function tue(e,t){const n=Lc(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ES(e,t),i=en(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Da(i,t)}function N4(e,t){const n=Ut(e,t?.in),r=+Da(n,t)-+tue(n,t);return Math.round(r/_4)+1}function At(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const oa={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return At(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):At(n+1,2)},d(e,t){return At(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return At(e.getHours()%12||12,t.length)},H(e,t){return At(e.getHours(),t.length)},m(e,t){return At(e.getMinutes(),t.length)},s(e,t){return At(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return At(o,t.length)}},yl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},IE={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return oa.y(e,t)},Y:function(e,t,n,r){const o=ES(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return At(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):At(i,t.length)},R:function(e,t){const n=I4(e);return At(n,t.length)},u:function(e,t){const n=e.getFullYear();return At(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return At(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return At(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return oa.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return At(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=N4(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):At(o,t.length)},I:function(e,t,n){const r=C4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):At(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):oa.d(e,t)},D:function(e,t,n){const r=eue(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):At(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return At(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return At(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return At(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=yl.noon:r===0?o=yl.midnight:o=r/12>
vendor: 4,321 bytes, line 97
97=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=yl.evening:r>=12?o=yl.afternoon:r>=4?o=yl.morning:o=yl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return oa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):oa.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):oa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):oa.s(e,t)},S:function(e,t){return oa.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return AE(r);case"XXXX":case"XX":return cs(r);default:return cs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return AE(r);case"xxxx":case"xx":return cs(r);default:return cs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+EE(r,":");default:return"GMT"+cs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+EE(r,":");default:return"GMT"+cs(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return At(r,t.length)},T:function(e,t,n){return At(+e,t.length)}};function EE(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+At(i,2)}function AE(e,t){return e%60===0?(e>0?"-":"+")+At(Math.abs(e)/60,2):cs(e,t)}function cs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=At(Math.trunc(r/60),2),i=At(r%60,2);return n+o+t+i}const CE=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},P4=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},nue=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return CE(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",CE(r,t)).replace("{{time}}",P4(o,t))},Cv={p:P4,P:nue},rue=/^D+$/,oue=/^Y+$/,iue=["D","DD","YY","YYYY"];function D4(e){return rue.test(e)}function O4(e){return oue.test(e)}function Nv(e,t,n){const r=aue(e,t,n);if(console.warn(r),iue.includes(e))throw new RangeError(r)}function aue(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const sue=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cue=/^'([^]*?)'?$/,uue=/''/g,due=/[a-zA-Z]/;function fi(e,t,n){const r=Lc(),o=n?.locale??r.locale??A4,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ut(e,n?.in);if(!vce(s))throw new RangeError("Invalid time value");let l=t.match(lue).map(h=>{const d=h[0];if(d==="p"||d==="P"){const p=Cv[d];return p(h,o.formatLong)}return h}).join("").match(sue).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const d=h[0];if(d==="'")return{isToken:!1,value:hue(h)};if(IE[d])return{isToken:!0,value:h};
97if(d.match(due))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:h}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(h=>{if(!h.isToken)return h.value;const d=h.value;(!n?.useAdditionalWeekYearTokens&&O4(d)||!n?.useAdditionalDayOfYearTokens&&D4(d))&&Nv(d,t,String(e));const p=IE[d[0]];return p(s,d,o.localize,c)}).join("")}function hue(e){const t=e.match(cue);return t?t[1].replace(uue,"'"):e}function mue(e,t){return Ut(e,t?.in).getDay()}function pue(e,t){const n=Ut(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=en(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function fue(){return Object.assign({},Lc())}function gue(e,t){const n=Ut(e,t?.in).getDay();return n===0?7:n}function yue(e,t){const n=bue(t)?new t(0):en(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function bue(e){return typeof e=="function"&&e.prototype?.constructor===e}const wue=10;class R4{subPriority=0;validate(t,n){return!0}}class vue extends R4{constructor(t,n,r,o,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class kue extends R4{priority=wue;subPriority=-1;constructor(t,n){super(),this.context=t||(r=>en(n,r))}set(t,n){return n.timestampIsSet?t:en(t,yue(t,this.context))}}let Tt=class{run(t,n,r,o){const i=this.parse(t,n,r,o);return i?{setter:new vue(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}};class xue extends Tt{priority=140;parse(t,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,n,r){return n.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const cn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ci={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function un(e,t){return e&&{value:t(e.value),rest:e.rest}}function Zt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ui(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*T4+i*S4+a*mce),rest:t.slice(n[0].length)}}function M4(e){return Zt(cn.anyDigitsSigned,e)}function tn(e,t){switch(e){case 1:return Zt(cn.singleDigit,t);case 2:return Zt(cn.twoDigits,t);case 3:return Zt(cn.threeDigits,t);case 4:return Zt(cn.fourDigits,t);default:return Zt(new RegExp("^\\d{1,"+e+"}"),t)}}function Bp(e,t){switch(e){case 1:return Zt(cn.singleDigitSigned,t);case 2:return Zt(cn.twoDigitsSigned,t);case 3:return Zt(cn.threeDigitsSigned,t);case 4:return Zt(cn.fourDigitsSigned,t);default:return Zt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function AS(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function j4(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const i=r+50,a=Math.trunc(i/100)*100,s=e>=i%100;o=e+a-(s?100:0)}return n?o:1-o}function $4(e){return e%400===0||e%4===0&&e%100!==0}class _ue extends Tt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,r){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return un(tn(4,t),o);case"yo":return un(r.ordinalNumber(t,{unit:"year"}),o);default:return un(tn(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r){const o=t.getFullYear();if(r.isTwoDigitYear){const a=j4(r.year,o);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class Sue extends Tt{priority=130;parse(t,n,r){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return un(tn(4,t),o);case"Yo":return un(r.ordinalNumber(t,{unit:"year"}),o);default:return un(tn(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r,o){const i=ES(t,o);if(r.isTwoDigitYear){const s=j4(r.year,i);return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Da(t,o)}const a=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Da(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Tue extends Tt{priority=130;parse(t,n){return Bp(n==="R"?4:n.length,t)}set(t,n,r){const o=en(t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),mc(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Iue extends Tt{priority=130;parse(t,n){return Bp(n==="u"?4:n.length,t)}set(t,n,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Eue extends Tt{priority=120;parse(t,n,r){switch(n){case"Q":case"QQ":return tn(n.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Aue extends Tt{priority=120;parse(t,n,r){switch(n){case"q":case"qq":return tn(n.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Cue extends Tt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,r){const o=i=>i-1;switch(n){case"M":return un(Zt(cn.month,t),o);case"MM":return un(tn(2,t),o);case"Mo":return un(r.ordinalNumber(t,{unit:"month"}),o);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class Nue extends Tt{priority=110;parse(t,n,r){const o=i=>i-1;switch(n){case"L":return un(Zt(cn.month,t),o);case"LL":return un(tn(2,t),o);case"Lo":return un(r.ordinalNumber(t,{unit:"month"}),o);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Pue(e,t,n){const r=Ut(e,n?.in),o=N4(r,n)-t;return r.setDate(r.getDate()-o*7),Ut(r,n?.in)}class Due extends Tt{priority=100;parse(t,n,r){switch(n){case"w":return Zt(cn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return tn(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r,o){return Da(Pue(t,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Oue(e,t,n){const r=Ut(e,n?.in),o=C4(r,n)-t;return r.setDate(r.getDate()-o*7),r}class Rue extends Tt{priority=100;parse(t,n,r){switch(n){case"I":return Zt(cn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return tn(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r){return mc(Oue(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Mue=[31,28,31,30,31,30,31,31,30,31,30,31],jue=[31,29,31,30,31,30,31,31,30,31,30,31];class $ue extends Tt{priority=90;subPriority=1;parse(t,n,r){switch(n){case"d":return Zt(cn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return tn(n.length,t)}}validate(t,n){const r=t.getFullYear(),o=$4(r),i=t.getMonth();return o?n>=1&&n<=jue[i]:n>=1&&n<=Mue[i]}set(t,n,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Lue extends Tt{priority=90;subpriority=1;parse(t,n,r){switch(n){case"D":case"DD":return Zt(cn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return tn(n.length,t)}}validate(t,n){const r=t.getFullYear();return $4(r)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function CS(e,t,n){const r=Lc(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ut(e,n?.in),a=i.getDay(),l=(t%7+7)%7,c=7-o,h=t<0||t>6?t-(a+c)%7:(l+c)%7-(a+c)%7;return $c(i,h,n)}class zue extends Tt{priority=90;parse(t,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=CS(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class Uue extends Tt{priority=90;parse(t,n,r,o){const i=a=>{const s=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+s};switch(n){case"e":case"ee":return un(tn(n.length,t),i);case"eo":return un(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=CS(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class Fue extends Tt{priority=90;parse(t,n,r,o){const i=a=>{const s=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+s};switch(n){case"c":case"cc":return un(tn(n.length,t),i);case"co":return un(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=CS(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Wue(e,t,n){const r=Ut(e,n?.in),o=gue(r,n),i=t-o;return $c(r,i,n)}class Bue extends Tt{priority=90;parse(t,n,r){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return tn(n.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return un(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return un(r.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return un(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o);default:return un(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,r){return t=Wue(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Hue extends Tt{priority=80;parse(t,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(AS(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class que extends Tt{priority=80;
97parse(t,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(AS(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class Vue extends Tt{priority=80;parse(t,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(AS(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class Kue extends Tt{priority=70;parse(t,n,r){switch(n){case"h":return Zt(cn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return tn(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,r){const o=t.getHours()>=12;return o&&r<12?t.setHours(r+12,0,0,0):!o&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class Gue extends Tt{priority=70;parse(t,n,r){switch(n){case"H":return Zt(cn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return tn(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class Yue extends Tt{priority=70;parse(t,n,r){switch(n){case"K":return Zt(cn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return tn(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class Zue extends Tt{priority=70;parse(t,n,r){switch(n){case"k":return Zt(cn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return tn(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,r){const o=r<=24?r%24:r;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class Jue extends Tt{priority=60;parse(t,n,r){switch(n){case"m":return Zt(cn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return tn(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]}class Que extends Tt{priority=50;parse(t,n,r){switch(n){case"s":return Zt(cn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return tn(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]}class Xue extends Tt{priority=30;parse(t,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return un(tn(n.length,t),r)}set(t,n,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]}class ede extends Tt{priority=10;parse(t,n){switch(n){case"X":return ui(ci.basicOptionalMinutes,t);case"XX":return ui(ci.basic,t);case"XXXX":return ui(ci.basicOptionalSeconds,t);case"XXXXX":return ui(ci.extendedOptionalSeconds,t);default:return ui(ci.extended,t)}}set(t,n,r){return n.timestampIsSet?t:en(t,t.getTime()-Fp(t)-r)}incompatibleTokens=["t","T","x"]}class tde extends Tt{priority=10;parse(t,n){switch(n){case"x":return ui(ci.basicOptionalMinutes,t);case"xx":return ui(ci.basic,t);case"xxxx":return ui(ci.basicOptionalSeconds,t);case"xxxxx":return ui(ci.extendedOptionalSeconds,t);default:return ui(ci.extended,t)}}set(t,n,r){return n.timestampIsSet?t:en(t,t.getTime()-Fp(t)-r)}incompatibleTokens=["t","T","X"]}class nde extends Tt{priority=40;parse(t){return M4(t)}set(t,n,r){return[en(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class rde extends Tt{priority=20;parse(t){return M4(t)}set(t,n,r){return[en(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const ode={G:new xue,y:new _ue,Y:new Sue,R:new Tue,u:new Iue,Q:new Eue,q:new Aue,M:new Cue,L:new Nue,w:new Due,I:new Rue,d:new $ue,D:new Lue,E:new zue,e:new Uue,c:new Fue,i:new Bue,a:new Hue,b:new que,B:new Vue,h:new Kue,H:new Gue,K:new Yue,k:new Zue,m:new Jue,s:new Que,S:new Xue,X:new ede,x:new tde,t:new nde,T:new rde},ide=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ade=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sde=/^'([^]*?)'?$/,lde=/''/g,cde=/\S/,ude=/[a-zA-Z]/;function pc(e,t,n,r){const o=()=>en(n,NaN),i=fue(),a=i.locale??A4,s=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():Ut(n,r?.in);const c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},h=[new kue(r?.in,n)],d=t.match(ade).map(w=>{const k=w[0];if(k in Cv){const x=Cv[k];return x(w,a.formatLong)}return w}).join("").match(ide),p=[];for(let w of d){O4(w)&&Nv(w,t,e),D4(w)&&Nv(w,t,e);const k=w[0],x=ode[k];if(x){const{incompatibleTokens:S}=x;if(Array.isArray(S)){const E=p.find(C=>S.includes(C.token)||C.token===k);
97if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${w}\` at the same time`)}else if(x.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);p.push({token:k,fullToken:w});const I=x.run(e,w,a.match,c);if(!I)return o();h.push(I.setter),e=I.rest}else{if(k.match(ude))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(w==="''"?w="'":k==="'"&&(w=dde(w)),e.indexOf(w)===0)e=e.slice(w.length);else return o()}}if(e.length>0&&cde.test(e))return o();const f=h.map(w=>w.priority).sort((w,k)=>k-w).filter((w,k,x)=>x.indexOf(w)===k).map(w=>h.filter(k=>k.priority===w).sort((k,x)=>x.subPriority-k.subPriority)).map(w=>w[0]);let b=Ut(n,r?.in);if(isNaN(+b))return o();const y={};for(const w of f){if(!w.validate(b,c))return o();const k=w.set(b,y,c);Array.isArray(k)?(b=k[0],Object.assign(y,k[1])):b=k}return b}function dde(e){return e.match(sde)[1].replace(lde,"'")}function hde(e,t,n){let r=t-mue(e,n);return r<=0&&(r+=7),$c(e,r,n)}function mde(e,t){return hde(e,1,t)}function pde(e,t,n){const r=Ut(e,n?.in),o=r.getFullYear(),i=r.getDate(),a=en(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=pue(a);return r.setMonth(t,Math.min(i,s)),r}function fde(e,t,n){let r=Ut(e,n?.in);return isNaN(+r)?en(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=pde(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}var gde=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yde=gde.reduce((e,t)=>{const n=bg(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),bde="Label",L4=g.forwardRef((e,t)=>u.jsx(yde.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));L4.displayName=bde;var wde=L4;function Ku({className:e,...t}){return u.jsx(wde,{"data-slot":"label",className:X("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Er({className:e,type:t,...n}){return u.jsx("input",{type:t,"data-slot":"input",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",className:X("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base transition-colors outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function NE(e,[t,n]){return Math.min(n,Math.max(t,e))}function vde(e){const t=kde(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(_de);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function kde(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Tde(o),s=Sde(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xde=Symbol("radix.slottable");function _de(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xde}function Sde(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}
vendor: 4,165 bytes, line 97
97:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Tde(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function z4(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var U4=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ide="VisuallyHidden",F4=g.forwardRef((e,t)=>u.jsx(Je.span,{...e,ref:t,style:{...U4,...e.style}}));F4.displayName=Ide;var Ede=F4,Ade=[" ","Enter","ArrowUp","ArrowDown"],Cde=[" ","Enter"],Cs="Select",[ry,oy,Nde]=aS(Cs),[zc]=Zo(Cs,[Nde,$a]),iy=$a(),[Pde,Wa]=zc(Cs),[Dde,Ode]=zc(Cs),W4=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:h,autoComplete:d,disabled:p,required:f,form:b}=e,y=iy(t),[w,k]=g.useState(null),[x,S]=g.useState(null),[I,E]=g.useState(!1),C=qg(c),[$,T]=go({prop:r,defaultProp:o??!1,onChange:i,caller:Cs}),[P,D]=go({prop:a,defaultProp:s,onChange:l,caller:Cs}),H=g.useRef(null),z=w?b||!!w.closest("form"):!0,[V,J]=g.useState(new Set),F=Array.from(V).map(G=>G.props.value).join(";");return u.jsx(gh,{...y,children:u.jsxs(Pde,{required:f,scope:t,trigger:w,onTriggerChange:k,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:I,onValueNodeHasChildrenChange:E,contentId:En(),value:P,onValueChange:D,open:$,onOpenChange:T,dir:C,triggerPointerDownPosRef:H,disabled:p,children:[u.jsx(ry.Provider,{scope:t,children:u.jsx(Dde,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(G=>{J(Y=>new Set(Y).add(G))},[]),onNativeOptionRemove:g.useCallback(G=>{J(Y=>{const le=new Set(Y);return le.delete(G),le})},[]),children:n})}),z?u.jsxs(dF,{"aria-hidden":!0,required:f,tabIndex:-1,name:h,autoComplete:d,value:P,onChange:G=>D(G.target.value),disabled:p,form:b,children:[P===void 0?u.jsx("option",{value:""}):null,Array.from(V)]},F):null]})})};W4.displayName=Cs;var B4="SelectTrigger",H4=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=iy(n),a=Wa(B4,n),s=a.disabled||r,l=vt(t,a.onTriggerChange),c=oy(n),h=g.useRef("touch"),[d,p,f]=mF(y=>{const w=c().filter(S=>!S.disabled),k=w.find(S=>S.value===a.value),x=pF(w,y,k);x!==void 0&&a.onValueChange(x.value)}),b=y=>{s||(a.onOpenChange(!0),f()),y&&(a.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return u.jsx(yh,{asChild:!0,...i,children:u.jsx(Je.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":hF(a.value)?"":void 0,...o,ref:l,onClick:Ie(o.onClick,y=>{y.currentTarget.focus(),h.current!=="mouse"&&b(y)}),onPointerDown:Ie(o.onPointerDown,y=>{h.current=y.pointerType;const w=y.target;w.hasPointerCapture(y.pointerId)&&w.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:Ie(o.onKeyDown,y=>{const w=d.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(w&&y.key===" ")&&Ade.includes(y.key)&&(b(),y.preventDefault())})})})});H4.displayName=B4;var q4="SelectValue",V4=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,l=Wa(q4,n),{onValueNodeHasChildrenChange:c}=l,h=i!==void 0,d=vt(t,l.onValueNodeChange);return tr(()=>{c(h)},[c,h]),u.jsx(Je.span,{...s,ref:d,style:{pointerEvents:"none"},children:hF(l.value)?u.jsx(u.Fragment,{children:a}):i})});V4.displayName=q4;var Rde="SelectIcon",K4=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(Je.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});K4.displayName=Rde;var Mde="SelectPortal",G4=e=>u.jsx(Mc,{asChild:!0,...e});G4.displayName=Mde;var Ns="SelectContent",Y4=g.forwardRef((e,t)=>
vendor: 12,851 bytes, line 97
97{const n=Wa(Ns,e.__scopeSelect),[r,o]=g.useState();if(tr(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Fk.createPortal(u.jsx(Z4,{scope:e.__scopeSelect,children:u.jsx(ry.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),i):null}return u.jsx(J4,{...e,ref:t})});Y4.displayName=Ns;var Oo=10,[Z4,Ba]=zc(Ns),jde="SelectContentImpl",$de=vde("SelectContent.RemoveScroll"),J4=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:h,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:b,hideWhenDetached:y,avoidCollisions:w,...k}=e,x=Wa(Ns,n),[S,I]=g.useState(null),[E,C]=g.useState(null),$=vt(t,ee=>I(ee)),[T,P]=g.useState(null),[D,H]=g.useState(null),z=oy(n),[V,J]=g.useState(!1),F=g.useRef(!1);g.useEffect(()=>{if(S)return Zg(S)},[S]),Vg();const G=g.useCallback(ee=>{const[ye,...ve]=z().map(Ue=>Ue.ref.current),[ce]=ve.slice(-1),Oe=document.activeElement;for(const Ue of ee)if(Ue===Oe||(Ue?.scrollIntoView({block:"nearest"}),Ue===ye&&E&&(E.scrollTop=0),Ue===ce&&E&&(E.scrollTop=E.scrollHeight),Ue?.focus(),document.activeElement!==Oe))return},[z,E]),Y=g.useCallback(()=>G([T,S]),[G,T,S]);g.useEffect(()=>{V&&Y()},[V,Y]);const{onOpenChange:le,triggerPointerDownPosRef:W}=x;g.useEffect(()=>{if(S){let ee={x:0,y:0};const ye=ce=>{ee={x:Math.abs(Math.round(ce.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(ce.pageY)-(W.current?.y??0))}},ve=ce=>{ee.x<=10&&ee.y<=10?ce.preventDefault():S.contains(ce.target)||le(!1),document.removeEventListener("pointermove",ye),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",ve,{capture:!0})}}},[S,le,W]),g.useEffect(()=>{const ee=()=>le(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[le]);const[_,ne]=mF(ee=>{const ye=z().filter(Oe=>!Oe.disabled),ve=ye.find(Oe=>Oe.ref.current===document.activeElement),ce=pF(ye,ee,ve);ce&&setTimeout(()=>ce.ref.current.focus())}),U=g.useCallback((ee,ye,ve)=>{const ce=!F.current&&!ve;(x.value!==void 0&&x.value===ye||ce)&&(P(ee),ce&&(F.current=!0))},[x.value]),A=g.useCallback(()=>S?.focus(),[S]),K=g.useCallback((ee,ye,ve)=>{const ce=!F.current&&!ve;(x.value!==void 0&&x.value===ye||ce)&&H(ee)},[x.value]),Q=r==="popper"?Pv:Q4,oe=Q===Pv?{side:s,sideOffset:l,align:c,alignOffset:h,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:b,hideWhenDetached:y,avoidCollisions:w}:{};return u.jsx(Z4,{scope:n,content:S,viewport:E,onViewportChange:C,itemRefCallback:U,selectedItem:T,onItemLeave:A,itemTextRefCallback:K,focusSelectedItem:Y,selectedItemText:D,position:r,isPositioned:V,searchRef:_,children:u.jsx(wh,{as:$de,allowPinchZoom:!0,children:u.jsx(fh,{asChild:!0,trapped:x.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Ie(o,ee=>{x.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:u.jsx(Rc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:u.jsx(Q,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:ee=>ee.preventDefault(),...k,...oe,onPlaced:()=>J(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Ie(k.onKeyDown,ee=>{const ye=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ye&&ee.key.length===1&&ne(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let ce=z().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(ce=ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Oe=ee.target,Ue=ce.indexOf(Oe);ce=ce.slice(Ue+1)}setTimeout(()=>G(ce)),ee.preventDefault()}})})})})})})});J4.displayName=jde;var Lde="SelectItemAlignedPosition",Q4=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Wa(Ns,n),a=Ba(Ns,n),[s,l]=g.useState(null),[c,h]=g.useState(null),d=vt(t,$=>h($)),p=oy(n),f=g.useRef(!1),b=g.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:k,focusSelectedItem:x}=a,S=g.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&y&&w&&k){const $=i.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),P=i.valueNode.getBoundingClientRect(),D=k.getBoundingClientRect();if(i.dir!=="rtl"){const Oe=D.left-T.left,Ue=P.left-Oe,Ne=$.left-Ue,ke=$.width+Ne,_t=Math.max(ke,T.width),De=window.innerWidth-Oo,We=NE(Ue,[Oo,Math.max(Oo,De-_t)]);s.style.minWidth=ke+"px",s.style.left=We+"px"}else{const Oe=T.right-D.right,Ue=window.innerWidth-P.right-Oe,Ne=window.innerWidth-$.right-Ue,ke=$.width+Ne,_t=Math.max(ke,T.width),De=window.innerWidth-Oo,We=NE(Ue,[Oo,Math.max(Oo,De-_t)]);s.style.minWidth=ke+"px",s.style.right=We+"px"}const H=p(),z=window.innerHeight-Oo*2,V=y.scrollHeight,J=window.getComputedStyle(c),F=parseInt(J.borderTopWidth,10),G=parseInt(J.paddingTop,10),Y=parseInt(J.borderBottomWidth,10),le=parseInt(J.paddingBottom,10),W=F+G+V+le+Y,_=Math.min(w.offsetHeight*5,W),ne=window.getComputedStyle(y),U=parseInt(ne.paddingTop,10),A=parseInt(ne.paddingBottom,10),K=$.top+$.height/2-Oo,Q=z-K,oe=w.offsetHeight/2,ee=w.offsetTop+oe,ye=F+G+ee,ve=W-ye;if(ye<=K){const Oe=H.length>0&&w===H[H.length-1].ref.current;s.style.bottom="0px";const Ue=c.clientHeight-y.offsetTop-y.offsetHeight,Ne=Math.max(Q,oe+(Oe?A:0)+Ue+Y),ke=ye+Ne;s.style.height=ke+"px"}else{const Oe=H.length>0&&w===H[0].ref.current;s.style.top="0px";const Ne=Math.max(K,F+y.offsetTop+(Oe?U:0)+oe)+ve;s.style.height=Ne+"px",y.scrollTop=ye-K+y.offsetTop}s.style.margin=`${Oo}px 0`,s.style.minHeight=_+"px",s.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>f.current=!0)}},[p,i.trigger,i.valueNode,s,c,y,w,k,i.dir,r]);tr(()=>S(),[S]);const[I,E]=g.useState();tr(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const C=g.useCallback($=>{$&&b.current===!0&&(S(),x?.(),b.current=!1)},[S,x]);return u.jsx(Ude,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:C,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:u.jsx(Je.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Q4.displayName=Lde;var zde="SelectPopperPosition",Pv=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Oo,...i}=e,a=iy(n);return u.jsx(Kg,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Pv.displayName=zde;var[Ude,NS]=zc(Ns,{}),Dv="SelectViewport",X4=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Ba(Dv,n),a=NS(Dv,n),s=vt(t,i.onViewportChange),l=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(ry.Slot,{scope:n,children:u.jsx(Je.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ie(o.onScroll,c=>{const h=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p?.current&&d){const f=Math.abs(l.current-h.scrollTop);if(f>0){const b=window.innerHeight-Oo*2,y=parseFloat(d.style.minHeight),w=parseFloat(d.style.height),k=Math.max(y,w);if(k<b){const x=k+f,S=Math.min(b,x),I=x-S;d.style.height=S+"px",d.style.bottom==="0px"&&(h.scrollTop=I>0?I:0,d.style.justifyContent="flex-end")}}}l.current=h.scrollTop})})})]})});X4.displayName=Dv;var eF="SelectGroup",[Fde,Wde]=zc(eF),tF=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=En();return u.jsx(Fde,{scope:n,id:o,children:u.jsx(Je.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tF.displayName=eF;var nF="SelectLabel",Bde=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wde(nF,n);return u.jsx(Je.div,{id:o.id,...r,ref:t})});Bde.displayName=nF;var Hp="SelectItem",[Hde,rF]=zc(Hp),oF=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Wa(Hp,n),l=Ba(Hp,n),c=s.value===r,[h,d]=g.useState(i??""),[p,f]=g.useState(!1),b=vt(t,x=>l.itemRefCallback?.(x,r,o)),y=En(),w=g.useRef("touch"),k=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Hde,{scope:n,value:r,disabled:o,textId:y,isSelected:c,onItemTextChange:g.useCallback(x=>{d(S=>S||(x?.textContent??"").trim())},[]),children:u.jsx(ry.ItemSlot,{scope:n,value:r,disabled:o,textValue:h,children:u.jsx(Je.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:b,onFocus:Ie(a.onFocus,()=>f(!0)),onBlur:Ie(a.onBlur,()=>f(!1)),onClick:Ie(a.onClick,()=>{w.current!=="mouse"&&k()}),onPointerUp:Ie(a.onPointerUp,()=>{w.current==="mouse"&&k()}),onPointerDown:Ie(a.onPointerDown,x=>{w.current=x.pointerType}),onPointerMove:Ie(a.onPointerMove,x=>{w.current=x.pointerType,o?l.onItemLeave?.():w.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Ie(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(Cde.includes(x.key)&&k(),x.key===" "&&x.preventDefault())})})})})});oF.displayName=Hp;var Ou="SelectItemText",iF=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Wa(Ou,n),s=Ba(Ou,n),l=rF(Ou,n),c=Ode(Ou,n),[h,d]=g.useState(null),p=vt(t,k=>d(k),l.onItemTextChange,k=>s.itemTextRefCallback?.(k,l.value,l.disabled)),f=h?.textContent,b=g.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return tr(()=>(y(b),()=>w(b)),[y,w,b]),u.jsxs(u.Fragment,{children:[u.jsx(Je.span,{id:l.textId,...i,ref:p}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Fk.createPortal(i.children,a.valueNode):null]})});iF.displayName=Ou;var aF="SelectItemIndicator",sF=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return rF(aF,n).isSelected?u.jsx(Je.span,{"aria-hidden":!0,...r,ref:t}):null});sF.displayName=aF;var Ov="SelectScrollUpButton",lF=g.forwardRef((e,t)=>{const n=Ba(Ov,e.__scopeSelect),r=NS(Ov,e.__scopeSelect),[o,i]=g.useState(!1),a=vt(t,r.onScrollButtonChange);return tr(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?u.jsx(uF,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});lF.displayName=Ov;var Rv="SelectScrollDownButton",cF=g.forwardRef((e,t)=>{const n=Ba(Rv,e.__scopeSelect),r=NS(Rv,e.__scopeSelect),[o,i]=g.useState(!1),a=vt(t,r.onScrollButtonChange);return tr(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,h=Math.ceil(l.scrollTop)<c;i(h)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?u.jsx(uF,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});cF.displayName=Rv;var uF=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Ba("SelectScrollButton",n),a=g.useRef(null),s=oy(n),l=g.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return g.useEffect(()=>()=>l(),[l]),tr(()=>{s().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),u.jsx(Je.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ie(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Ie(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Ie(o.onPointerLeave,()=>{l()})})}),qde="SelectSeparator",Vde=g.forwardRef((e,t)=>
97{const{__scopeSelect:n,...r}=e;return u.jsx(Je.div,{"aria-hidden":!0,...r,ref:t})});Vde.displayName=qde;var Mv="SelectArrow",Kde=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=iy(n),i=Wa(Mv,n),a=Ba(Mv,n);return i.open&&a.position==="popper"?u.jsx(Gg,{...o,...r,ref:t}):null});Kde.displayName=Mv;var Gde="SelectBubbleInput",dF=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),i=vt(r,o),a=z4(t);return g.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&h){const d=new Event("change",{bubbles:!0});h.call(s,t),s.dispatchEvent(d)}},[a,t]),u.jsx(Je.select,{...n,style:{...U4,...n.style},ref:i,defaultValue:t})});dF.displayName=Gde;function hF(e){return e===""||e===void 0}function mF(e){const t=qo(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(a=>{const s=n.current+a;t(s),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function pF(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Yde(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Yde(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zde=W4,Jde=H4,Qde=V4,Xde=K4,ehe=G4,the=Y4,nhe=X4,rhe=tF,ohe=oF,ihe=iF,ahe=sF,she=lF,lhe=cF;function yo({...e}){return u.jsx(Zde,{"data-slot":"select",...e})}function j$e({...e}){return u.jsx(rhe,{"data-slot":"select-group",...e})}function bo({...e}){return u.jsx(Qde,{"data-slot":"select-value",...e})}function wo({className:e,size:t="default",children:n,...r}){return u.jsxs(Jde,{"data-slot":"select-trigger","data-size":t,className:X("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-colors outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,u.jsx(Xde,{asChild:!0,children:u.jsx(Ui,{className:"size-4 opacity-50"})})]})}function vo({className:e,children:t,position:n="popper",align:r="center",...o}){return u.jsx(ehe,{children:u.jsxs(the,{"data-slot":"select-content",className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[u.jsx(che,{}),u.jsx(nhe,{className:X("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(uhe,{})]})})}function dn({className:e,children:t,...n}){return u.jsxs(ohe,{"data-slot":"select-item",className:X("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(ahe,{children:u.jsx(Vr,{className:"size-4"})})}),u.jsx(ihe,{children:t})]})}function che({className:e,...t}){return u.jsx(she,{"data-slot":"select-scroll-up-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(NG,{className:"size-4"})})}function uhe({className:e,...t}){return u.jsx(lhe,{"data-slot":"select-scroll-down-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Ui,{className:"size-4"})})}function dhe(e,t){const[n,r]=g.useState(e);return g.useEffect(()=>{const o=window.setTimeout(()=>{r(e)},t);return()=>window.clearTimeout(o)},[e,t]),n}const fF={all:["contacts"],list:()=>["contacts","list"]};function PS(){const e=Lz();return Ae({queryKey:fF.list(),queryFn:()=>e.listPeople(),staleTime:10*6e4})}function DS(){const e=PS();return{contactsMap:g.useMemo(()=>{const n=new Map;for(const r of e.data??[])n.set(r.id,r);return n},[e.data]),isLoading:e.isLoading,isError:e.isError}}var PE=1,hhe=.9,mhe=.8,phe=.17,$b=.1,Lb=.999,fhe=.9999,ghe=.99,yhe=/[\\\/_+.#"@\[\(\{&]/,bhe=/[\\\/_+.#"@\[\(\{&]/g,whe=/[\s-]/,gF=/[\s-]/g;function jv(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?PE:ghe;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),c=n.indexOf(l,o),h=0,d,p,f,b;c>=0;)d=jv(e,t,n,r,c+1,i+1,a),d>h&&(c===o?d*=PE:yhe.test(e.charAt(c-1))?(d*=mhe,f=e.slice(o,c-1).match(bhe),f&&o>0&&(d*=Math.pow(Lb,f.length))):whe.test(e.charAt(c-1))?(d*=hhe,b=e.slice(o,c-1).match(gF),b&&o>0&&(d*=Math.pow(Lb,b.length))):(d*=phe,o>0&&(d*=Math.pow(Lb,c-o))),e.charAt(c)!==t.charAt(i)&&(d*=fhe)),(d<$b&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(p=jv(e,t,n,r,c+1,i+2,a),p*$b>d&&(d=p*$b)),d>h&&(h=d),c=n.indexOf(l,c+1);return a[s]=h,h}function DE(e){return e.toLowerCase().replace(gF," ")}function vhe(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,jv(e,t,DE(e),DE(t),0,0,{})}var khe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ha=khe.reduce((e,t)=>
vendor: 10,621 bytes, line 97
97{const n=bg(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),mu='[cmdk-group=""]',zb='[cmdk-group-items=""]',xhe='[cmdk-group-heading=""]',yF='[cmdk-item=""]',OE=`${yF}:not([aria-disabled="true"])`,$v="cmdk-item-select",El="data-value",_he=(e,t,n)=>vhe(e,t,n),bF=g.createContext(void 0),Sh=()=>g.useContext(bF),wF=g.createContext(void 0),OS=()=>g.useContext(wF),vF=g.createContext(void 0),kF=g.forwardRef((e,t)=>{let n=Al(()=>{var U,A;return{search:"",value:(A=(U=e.value)!=null?U:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Al(()=>new Set),o=Al(()=>new Map),i=Al(()=>new Map),a=Al(()=>new Set),s=xF(e),{label:l,children:c,value:h,onValueChange:d,filter:p,shouldFilter:f,loop:b,disablePointerSelection:y=!1,vimBindings:w=!0,...k}=e,x=En(),S=En(),I=En(),E=g.useRef(null),C=Rhe();Ps(()=>{if(h!==void 0){let U=h.trim();n.current.value=U,$.emit()}},[h]),Ps(()=>{C(6,V)},[]);let $=g.useMemo(()=>({subscribe:U=>(a.current.add(U),()=>a.current.delete(U)),snapshot:()=>n.current,setState:(U,A,K)=>{var Q,oe,ee,ye;if(!Object.is(n.current[U],A)){if(n.current[U]=A,U==="search")z(),D(),C(1,H);else if(U==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ve=document.getElementById(I);ve?ve.focus():(Q=document.getElementById(x))==null||Q.focus()}if(C(7,()=>{var ve;n.current.selectedItemId=(ve=J())==null?void 0:ve.id,$.emit()}),K||C(5,V),((oe=s.current)==null?void 0:oe.value)!==void 0){let ve=A??"";(ye=(ee=s.current).onValueChange)==null||ye.call(ee,ve);return}}$.emit()}},emit:()=>{a.current.forEach(U=>U())}}),[]),T=g.useMemo(()=>({value:(U,A,K)=>{var Q;A!==((Q=i.current.get(U))==null?void 0:Q.value)&&(i.current.set(U,{value:A,keywords:K}),n.current.filtered.items.set(U,P(A,K)),C(2,()=>{D(),$.emit()}))},item:(U,A)=>(r.current.add(U),A&&(o.current.has(A)?o.current.get(A).add(U):o.current.set(A,new Set([U]))),C(3,()=>{z(),D(),n.current.value||H(),$.emit()}),()=>{i.current.delete(U),r.current.delete(U),n.current.filtered.items.delete(U);let K=J();C(4,()=>{z(),K?.getAttribute("id")===U&&H(),$.emit()})}),group:U=>(o.current.has(U)||o.current.set(U,new Set),()=>{i.current.delete(U),o.current.delete(U)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:I,labelId:S,listInnerRef:E}),[]);function P(U,A){var K,Q;let oe=(Q=(K=s.current)==null?void 0:K.filter)!=null?Q:_he;return U?oe(U,n.current.search,A):0}function D(){if(!n.current.search||s.current.shouldFilter===!1)return;let U=n.current.filtered.items,A=[];n.current.filtered.groups.forEach(Q=>{let oe=o.current.get(Q),ee=0;oe.forEach(ye=>{let ve=U.get(ye);ee=Math.max(ve,ee)}),A.push([Q,ee])});let K=E.current;F().sort((Q,oe)=>{var ee,ye;let ve=Q.getAttribute("id"),ce=oe.getAttribute("id");return((ee=U.get(ce))!=null?ee:0)-((ye=U.get(ve))!=null?ye:0)}).forEach(Q=>{let oe=Q.closest(zb);oe?oe.appendChild(Q.parentElement===oe?Q:Q.closest(`${zb} > *`)):K.appendChild(Q.parentElement===K?Q:Q.closest(`${zb} > *`))}),A.sort((Q,oe)=>oe[1]-Q[1]).forEach(Q=>{var oe;let ee=(oe=E.current)==null?void 0:oe.querySelector(`${mu}[${El}="${encodeURIComponent(Q[0])}"]`);ee?.parentElement.appendChild(ee)})}function H(){let U=F().find(K=>K.getAttribute("aria-disabled")!=="true"),A=U?.getAttribute(El);$.setState("value",A||void 0)}function z(){var U,A,K,Q;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let oe=0;for(let ee of r.current){let ye=(A=(U=i.current.get(ee))==null?void 0:U.value)!=null?A:"",ve=(Q=(K=i.current.get(ee))==null?void 0:K.keywords)!=null?Q:[],ce=P(ye,ve);n.current.filtered.items.set(ee,ce),ce>0&&oe++}for(let[ee,ye]of o.current)for(let ve of ye)if(n.current.filtered.items.get(ve)>0){n.current.filtered.groups.add(ee);break}n.current.filtered.count=oe}function V(){var U,A,K;let Q=J();Q&&(((U=Q.parentElement)==null?void 0:U.firstChild)===Q&&((K=(A=Q.closest(mu))==null?void 0:A.querySelector(xhe))==null||K.scrollIntoView({block:"nearest"})),Q.scrollIntoView({block:"nearest"}))}function J(){var U;return(U=E.current)==null?void 0:U.querySelector(`${yF}[aria-selected="true"]`)}function F(){var U;return Array.from(((U=E.current)==null?void 0:U.querySelectorAll(OE))||[])}function G(U){let A=F()[U];A&&$.setState("value",A.getAttribute(El))}function Y(U){var A;let K=J(),Q=F(),oe=Q.findIndex(ye=>ye===K),ee=Q[oe+U];(A=s.current)!=null&&A.loop&&(ee=oe+U<0?Q[Q.length-1]:oe+U===Q.length?Q[0]:Q[oe+U]),ee&&$.setState("value",ee.getAttribute(El))}function le(U){let A=J(),K=A?.closest(mu),Q;for(;K&&!Q;)K=U>0?Dhe(K,mu):Ohe(K,mu),Q=K?.querySelector(OE);Q?$.setState("value",Q.getAttribute(El)):Y(U)}let W=()=>G(F().length-1),_=U=>{U.preventDefault(),U.metaKey?W():U.altKey?le(1):Y(1)},ne=U=>{U.preventDefault(),U.metaKey?G(0):U.altKey?le(-1):Y(-1)};return g.createElement(Ha.div,{ref:t,tabIndex:-1,...k,"cmdk-root":"",onKeyDown:U=>{var A;(A=k.onKeyDown)==null||A.call(k,U);let K=U.nativeEvent.isComposing||U.keyCode===229;if(!(U.defaultPrevented||K))switch(U.key){case"n":case"j":{w&&U.ctrlKey&&_(U);break}case"ArrowDown":{_(U);break}case"p":case"k":{w&&U.ctrlKey&&ne(U);break}case"ArrowUp":{ne(U);break}case"Home":{U.preventDefault(),G(0);break}case"End":{U.preventDefault(),W();break}case"Enter":{U.preventDefault();let Q=J();if(Q){let oe=new Event($v);Q.dispatchEvent(oe)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:jhe},l),ay(e,U=>g.createElement(wF.Provider,{value:$},g.createElement(bF.Provider,{value:T},U))))}),She=g.forwardRef((e,t)=>{var n,r;let o=En(),i=g.useRef(null),a=g.useContext(vF),s=Sh(),l=xF(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a?.forceMount;Ps(()=>{if(!c)return s.item(o,a?.id)},[c]);let h=_F(o,i,[e.value,e.children,i],e.keywords),d=OS(),p=Oa(C=>C.value&&C.value===h.current),f=Oa(C=>c||s.filter()===!1?!0:C.search?C.filtered.items.get(o)>0:!0);g.useEffect(()=>{let C=i.current;if(!(!C||e.disabled))return C.addEventListener($v,b),()=>C.removeEventListener($v,b)},[f,e.onSelect,e.disabled]);function b(){var C,$;y(),($=(C=l.current).onSelect)==null||$.call(C,h.current)}function y(){d.setState("value",h.current,!0)}if(!f)return null;let{disabled:w,value:k,onSelect:x,forceMount:S,keywords:I,...E}=e;return g.createElement(Ha.div,{ref:wr(i,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!p,"data-disabled":!!w,"data-selected":!!p,onPointerMove:w||s.getDisablePointerSelection()?void 0:y,onClick:w?void 0:b},e.children)}),The=g.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=En(),s=g.useRef(null),l=g.useRef(null),c=En(),h=Sh(),d=Oa(f=>o||h.filter()===!1?!0:f.search?f.filtered.groups.has(a):!0);Ps(()=>h.group(a),[]),_F(a,s,[e.value,e.heading,l]);let p=g.useMemo(()=>({id:a,forceMount:o}),[o]);return g.createElement(Ha.div,{ref:wr(s,t),...i,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&g.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),ay(e,f=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},g.createElement(vF.Provider,{value:p},f))))}),Ihe=g.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=g.useRef(null),i=Oa(a=>!a.search);return!n&&!i?null:g.createElement(Ha.div,{ref:wr(o,t),...r,"cmdk-separator":"",role:"separator"})}),Ehe=g.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=OS(),a=Oa(c=>c.search),s=Oa(c=>c.selectedItemId),l=Sh();return g.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),g.createElement(Ha.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:a,onChange:c=>{o||i.setState("search",c.target.value),n?.(c.target.value)}})}),Ahe=g.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=g.useRef(null),a=g.useRef(null),s=Oa(c=>c.selectedItemId),l=Sh();return g.useEffect(()=>{if(a.current&&i.current){let c=a.current,h=i.current,d,p=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let f=c.offsetHeight;h.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return p.observe(c),()=>{cancelAnimationFrame(d),p.unobserve(c)}}},[]),g.createElement(Ha.div,{ref:wr(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},ay(e,c=>g.createElement("div",{ref:wr(a,l.listInnerRef),"cmdk-list-sizer":""},c)))}),Che=g.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return g.createElement(kS,{open:n,onOpenChange:r},g.createElement(xS,{container:a},g.createElement(ty,{"cmdk-overlay":"",className:o}),g.createElement(ny,{"aria-label":e.label,"cmdk-dialog":"",className:i},g.createElement(kF,{ref:t,...s}))))}),Nhe=g.forwardRef((e,t)=>Oa(n=>n.filtered.count===0)?g.createElement(Ha.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Phe=g.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return g.createElement(Ha.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ay(e,a=>g.createElement("div",{"aria-hidden":!0},a)))}),zn=Object.assign(kF,{List:Ahe,Item:She,Input:Ehe,Group:The,Separator:Ihe,Dialog:Che,Empty:Nhe,Loading:Phe});function Dhe(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ohe(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function xF(e){let t=g.useRef(e);return Ps(()=>{t.current=e}),t}var Ps=typeof window>"u"?g.useEffect:g.useLayoutEffect;function Al(e){let t=g.useRef();return t.current===void 0&&(t.current=e()),t}function Oa(e){let t=OS(),n=()=>e(t.snapshot());return g.useSyncExternalStore(t.subscribe,n,n)}function _F(e,t,n,r=[]){let o=g.useRef(),i=Sh();return Ps(()=>{var a;let s=(()=>{var c;for(let h of n){if(typeof h=="string")return h.trim();if(typeof h=="object"&&"current"in h)return h.current?(c=h.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());i.value(e,s,l),(a=t.current)==null||a.setAttribute(El,s),o.current=s}),o}var Rhe=()=>{let[e,t]=g.useState(),n=Al(()=>new Map);return Ps(()=>{n.current.forEach(r=>
97r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Mhe(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ay({asChild:e,children:t},n){return e&&g.isValidElement(t)?g.cloneElement(Mhe(t),{ref:t.ref},n(t.props.children)):n(t)}var jhe={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Th({className:e,...t}){return u.jsx(zn,{"data-slot":"command",className:X("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Ih({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Ac,{className:"size-4 shrink-0 opacity-50"}),u.jsx(zn.Input,{"data-slot":"command-input",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",className:X("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Eh({className:e,...t}){return u.jsx(zn.List,{"data-slot":"command-list",className:X("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Ah({...e}){return u.jsx(zn.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function wa({className:e,...t}){return u.jsx(zn.Group,{"data-slot":"command-group",className:X("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function $he({className:e,...t}){return u.jsx(zn.Separator,{"data-slot":"command-separator",className:X("bg-border -mx-1 h-px",e),...t})}function va({className:e,...t}){return u.jsx(zn.Item,{"data-slot":"command-item",className:X("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Lhe(e){return e.querySelector('[cmdk-item][aria-selected="true"]')}const zhe=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function Uhe(e,t){if(!e)return;const n=Array.from(document.querySelectorAll(zhe)).filter(o=>o.offsetParent!==null),r=n.indexOf(e);r!==-1&&n[r+t]?.focus()}function Fhe(e){const t=Whe(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(Hhe);if(l){const c=l.props.children,h=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return u.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,h):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Whe(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Vhe(o),s=qhe(i,o.props);return o.type!==g.Fragment&&(s.ref=r?wr(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bhe=Symbol("radix.slottable");function Hhe(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bhe}function qhe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Vhe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}
vendor: 4,268 bytes, line 97
97var sy="Popover",[SF]=Zo(sy,[$a]),Ch=$a(),[Khe,qa]=SF(sy),TF=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Ch(t),l=g.useRef(null),[c,h]=g.useState(!1),[d,p]=go({prop:r,defaultProp:o??!1,onChange:i,caller:sy});return u.jsx(gh,{...s,children:u.jsx(Khe,{scope:t,contentId:En(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:g.useCallback(()=>p(f=>!f),[p]),hasCustomAnchor:c,onCustomAnchorAdd:g.useCallback(()=>h(!0),[]),onCustomAnchorRemove:g.useCallback(()=>h(!1),[]),modal:a,children:n})})};TF.displayName=sy;var IF="PopoverAnchor",EF=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qa(IF,n),i=Ch(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return g.useEffect(()=>(a(),()=>s()),[a,s]),u.jsx(yh,{...i,...r,ref:t})});EF.displayName=IF;var AF="PopoverTrigger",CF=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qa(AF,n),i=Ch(n),a=vt(t,o.triggerRef),s=u.jsx(Je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":RF(o.open),...r,ref:a,onClick:Ie(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u.jsx(yh,{asChild:!0,...i,children:s})});CF.displayName=AF;var RS="PopoverPortal",[Ghe,Yhe]=SF(RS,{forceMount:void 0}),NF=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=qa(RS,t);return u.jsx(Ghe,{scope:t,forceMount:n,children:u.jsx(To,{present:n||i.open,children:u.jsx(Mc,{asChild:!0,container:o,children:r})})})};NF.displayName=RS;var fc="PopoverContent",PF=g.forwardRef((e,t)=>{const n=Yhe(fc,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=qa(fc,e.__scopePopover);return u.jsx(To,{present:r||i.open,children:i.modal?u.jsx(Jhe,{...o,ref:t}):u.jsx(Qhe,{...o,ref:t})})});PF.displayName=fc;var Zhe=Fhe("PopoverContent.RemoveScroll"),Jhe=g.forwardRef((e,t)=>{const n=qa(fc,e.__scopePopover),r=g.useRef(null),o=vt(t,r),i=g.useRef(!1);return g.useEffect(()=>{const a=r.current;if(a)return Zg(a)},[]),u.jsx(wh,{as:Zhe,allowPinchZoom:!0,children:u.jsx(DF,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,a=>{a.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Ie(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Qhe=g.forwardRef((e,t)=>{const n=qa(fc,e.__scopePopover),r=g.useRef(!1),o=g.useRef(!1);return u.jsx(DF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),DF=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:h,...d}=e,p=qa(fc,n),f=Ch(n);return Vg(),u.jsx(fh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Rc,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:u.jsx(Kg,{"data-state":RF(p.open),role:"dialog",id:p.contentId,...f,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),OF="PopoverClose",Xhe=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qa(OF,n);return u.jsx(Je.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});Xhe.displayName=OF;var eme="PopoverArrow",tme=g.forwardRef((e,t)=>
97{const{__scopePopover:n,...r}=e,o=Ch(n);return u.jsx(Gg,{...o,...r,ref:t})});tme.displayName=eme;function RF(e){return e?"open":"closed"}var nme=TF,rme=EF,ome=CF,ime=NF,ame=PF;function Js({...e}){return u.jsx(nme,{"data-slot":"popover",...e})}function Qs({...e}){return u.jsx(ome,{"data-slot":"popover-trigger",...e})}function Xs({className:e,align:t="center",sideOffset:n=4,...r}){return u.jsx(ime,{children:u.jsx(ame,{"data-slot":"popover-content",align:t,sideOffset:n,className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 outline-hidden",e),...r})})}function $$e({...e}){return u.jsx(rme,{"data-slot":"popover-anchor",...e})}const RE=["#4CAF50","#2196F3","#9C27B0","#FF9800","#E91E63","#00BCD4","#795548","#607D8B","#3F51B5","#009688","#F44336","#673AB7","#FFC107","#8BC34A","#FF5722"];function MF(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return RE[Math.abs(t)%RE.length]}function jF(e){return e.split(/\s+/).slice(0,2).map(t=>t[0]?.toUpperCase()??"").join("")}const sme={xs:"h-4 w-4 text-[8px]",sm:"h-5 w-5 text-[10px]",md:"h-6 w-6 text-[10px]"};function gc({contact:e,size:t="sm"}){const n=sme[t];return e.avatarUrl?u.jsx("img",{src:e.avatarUrl,alt:e.name,className:`${n} shrink-0 rounded-full object-cover`}):u.jsx("span",{className:`inline-flex ${n} shrink-0 items-center justify-center rounded-full font-semibold text-white`,style:{backgroundColor:MF(e.name)},children:jF(e.name)})}function lme({value:e,contacts:t,onCommit:n,disabled:r,className:o,placeholder:i="—",renderDisplay:a}){const[s,l]=g.useState(!1),[c,h]=g.useState(""),d=g.useRef(null),[p,f]=g.useState(!1),[b,y]=g.useState(""),[w,k]=g.useState(""),[x,S]=g.useState(!1),I=PS(),E=Lz(),C=ge(),$=dhe(c,300),T=(I.data??[]).filter($_),P=$?T.filter(W=>{const _=$.toLowerCase();return W.name.toLowerCase().includes(_)||(W.email??"").toLowerCase().includes(_)||(W.jobTitle??"").toLowerCase().includes(_)}):T,D=P.filter(W=>W.entraId!=null),H=P.filter(W=>W.entraId==null),z=e?t.get(e)??null:null,V=W=>{if(W===e){l(!1),h("");return}n(W),l(!1),h("")},J=()=>{y(c.trim()),k(""),l(!1),h(""),f(!0)},F=async()=>{const W=b.trim();if(W){S(!0);try{const _=await E.createPerson({name:W,email:w.trim()||null});await C.invalidateQueries({queryKey:fF.all}),f(!1),n(_.id),rt.success(`Added ${_.name}`)}catch(_){rt.error(_ instanceof Error?_.message:"Failed to create contact")}finally{S(!1)}}},G=typeof i=="string"?u.jsx("span",{className:"text-muted-foreground",children:i}):i,Y=a?a(z):z?.name,le=$.trim().length>0&&D.length===0&&H.length===0&&!I.isLoading;return u.jsxs(u.Fragment,{children:[u.jsxs(Js,{open:s,onOpenChange:W=>{l(W),W||h("")},children:[u.jsx(Qs,{asChild:!0,children:u.jsx("div",{ref:d,role:"button",tabIndex:r?-1:0,onClick:()=>!r&&l(!0),onKeyDown:W=>{W.key==="Enter"&&(W.preventDefault(),r||l(!0))},className:X("flex min-h-8 cursor-text items-center",r&&"cursor-default opacity-60",o),children:Y??G})}),u.jsx(Xs,{className:"w-80 p-0",align:"start",children:u.jsxs(Th,{shouldFilter:!1,onKeyDown:W=>{if(W.key!=="Tab")return;const _=Lhe(W.currentTarget);_&&(W.preventDefault(),_.click(),Uhe(d.current,W.shiftKey?-1:1))},children:[u.jsx(Ih,{placeholder:"Search contacts...",value:c,onValueChange:h}),u.jsxs(Eh,{children:[z&&u.jsx(wa,{children:u.jsx(va,{onSelect:()=>V(null),value:"__clear__",className:"text-muted-foreground",children:"Clear selection"})}),D.length>0&&u.jsx(wa,{heading:"Organization",children:D.map(W=>u.jsxs(va,{value:W.id,onSelect:()=>V(W.id),children:[u.jsx(gc,{contact:W,size:"sm"}),u.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.jsx("span",{children:W.name}),(W.email??W.jobTitle)&&u.jsx("span",{className:"text-xs text-muted-foreground",children:W.email??W.jobTitle})]}),u.jsx(Vr,{className:X("ml-auto",e===W.id?"opacity-100":"opacity-0")})]},W.id))}),D.length>0&&H.length>0&&u.jsx($he,{}),H.length>0&&u.jsx(wa,{heading:"Other",children:H.map(W=>u.jsxs(va,{value:W.id,onSelect:()=>V(W.id),children:[u.jsx(gc,{contact:W,size:"sm"}),u.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.jsx("span",{children:W.name}),W.email&&u.jsx("span",{className:"text-xs text-muted-foreground",children:W.email})]}),u.jsx(Vr,{className:X("ml-auto",e===W.id?"opacity-100":"opacity-0")})]},W.id))}),le&&u.jsx(wa,{children:u.jsxs(va,{onSelect:J,value:"__add_new__",children:[u.jsx(o8,{className:"mr-2 h-4 w-4"}),"Create “",$.trim(),"”"]}
97)}),!le&&D.length===0&&H.length===0&&u.jsx(Ah,{children:I.isLoading?"Loading...":c.length<1?"Start typing to search":"No contacts found."})]})]})})]}),u.jsx(za,{open:p,onOpenChange:f,children:u.jsxs(Ua,{className:"sm:max-w-md",children:[u.jsxs(Zs,{children:[u.jsx(Fa,{children:"Add Contact"}),u.jsx(jc,{children:"Create a manual contact."})]}),u.jsxs("form",{onSubmit:W=>{W.preventDefault(),F()},className:"flex flex-col gap-4",children:[u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("label",{htmlFor:"new-contact-name",className:"text-sm font-medium",children:"Name"}),u.jsx(Er,{id:"new-contact-name",value:b,onChange:W=>y(W.target.value),placeholder:"Contact name"})]}),u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("label",{htmlFor:"new-contact-email",className:"text-sm font-medium",children:"Email (optional)"}),u.jsx(Er,{id:"new-contact-email",type:"email",value:w,onChange:W=>k(W.target.value),placeholder:"[email protected]",autoFocus:!0})]}),u.jsxs(_h,{children:[u.jsx(Ve,{type:"button",variant:"outline",onClick:()=>f(!1),disabled:x,children:"Cancel"}),u.jsx(Ve,{type:"submit",disabled:x||!b.trim(),children:x?"Adding...":"Add Contact"})]})]})]})})]})}function ly(e){return e?e.replaceAll("_"," ").toLowerCase().replace(/^\w/,t=>t.toUpperCase()):"Unknown"}const ME={[zr.NOT_WORTH_TO_LOG]:"Not worth to log",[zr.INACCURATE_OR_NOT_VALID]:"Inaccurate / Not valid",[zr.COMPLETED_IN_MEETING]:"Completed in meeting",[zr.DOER_DOES_NOT_USE_PM_TOOLS]:"Do-er does not use PM tools",[zr.ALREADY_LOGGED_IN_SYSTEM]:"Already in system",[zr.DUPLICATE]:"Duplicate",[zr.OTHER]:"Other"};function L$e(e){return e?ME[e]:ME[zr.OTHER]}const cme={[uo.GFS_CONFIDENTIAL]:"GFS Confidential Log",[uo.GFS_NON_CONFIDENTIAL]:"GFS Non-Confidential Log",[uo.GFS_BUSINESS_TRANSFORMATION]:"Business Transformation Log"},ume=Object.values(sh).map(e=>({value:e,label:MS(e)})),dme=Object.values(uo).map(e=>({value:e,label:jS(e)})),hme=Object.values(ah).map(e=>({value:e,label:wme(e)})),z$e=Object.values(ih).map(e=>({value:e,label:vme(e)})),mme=Object.values(wt).map(e=>({value:e,label:zF(e)})),pme=Object.values(fr).map(e=>({value:e,label:UF(e)})),fme=Object.values(Cc).map(e=>({value:e,label:$S(e)})),$F={[Br.NEW_LUNIKO_REVIEW]:"New - Luniko to Review",[Br.NEW_NO_PLAN]:"New / No plan in place",[Br.OPEN_PLAN_IN_PLACE]:"Open / Plan in place",[Br.CLOSED]:"Closed"},LF={[$r.ASSUMPTION_CONFIRMED]:"Assumption Confirmed",[$r.ASSUMPTION_INVALID]:"Assumption Invalid",[$r.ASSUMPTION_OBSOLETE]:"Assumption Obsolete",[$r.DECISION_MADE_COMMUNICATED]:"Decision Made - Communicated",[$r.DECISION_MADE_NOT_COMMUNICATED]:"Decision Made - Not Communicated",[$r.DECISION_NOT_MADE]:"Decision Not Made",[$r.ISSUE_CLOSED]:"Issue Closed",[$r.RISK_ACCEPTED]:"Risk Accepted",[$r.RISK_AVOIDED]:"Risk Avoided",[$r.RISK_MITIGATED]:"Risk Mitigated"},gme=Object.values(Br).map(e=>({value:e,label:$F[e]})),yme=Object.values($r).map(e=>({value:e,label:LF[e]}));function jE(e){return e?$F[e]??e:"Unknown"}function bme(e){return e?LF[e]??e:"Unknown"}function MS(e){return e?Vo(e):"Unknown"}function jS(e){return e?cme[e]??e:"Unknown"}function wme(e){return e?Vo(e):"Unknown"}function vme(e){return e?Vo(e):"Unknown"}function zF(e){return e?MZ[e]??e:"Unknown"}function UF(e){return e?jZ[e]??e:"Unknown"}function $S(e){return e?e===Cc.TBD?"TBD":Vo(e):"Unknown"}function Vo(e){return e.replaceAll("_"," ").toLowerCase().replace(/\b\w/g,t=>t.toUpperCase()).replace("Pmo","PMO")}const LS=()=>{const{data:e}=Cn(),t=e?.sheetKeys,n=e?.orgActionDestinations;return g.useMemo(()=>new Set(K2(__(vg,t??[]),n)),[t,n])},U$e=()=>{const{data:e}=Cn(),t=e?.sheetKeys,n=e?.orgActionDestinations;return g.useMemo(()=>K2(__(vg,t??[]),n),[t,n])},kme=()=>{const e=LS();return g.useMemo(()=>l_.filter(t=>e.has(t.value)),[e])},FF={short:"MMM d, yyyy",long:"MMMM d, yyyy","short-2y":"MMM d, yy","day-short":"d MMM yyyy","us-slash":"MM/dd/yyyy","us-slash-2y":"MM/dd/yy","eu-slash":"dd/MM/yyyy","eu-slash-2y":"dd/MM/yy","eu-dot-2y":"dd.MM.yy",iso:"yyyy-MM-dd"},WF="short";function F$e(){const{data:e}=Cn(),t=e?.commandCenterDefaults?.monthFormat??WF;return FF[t]}
97const Ub="__none__",xme=new Date(2026,7,18),_me=nL.map(e=>({value:e,label:fi(xme,FF[e])}));function Sme({defaults:e,onUpdate:t,isPending:n}){const{contactsMap:r}=DS(),o=LS(),i=g.useMemo(()=>l_.filter(d=>o.has(d.value)),[o]),a=e?.responsibleDoer??null,s=g.useCallback(d=>{t({responsibleDoer:d})},[t]),l=g.useCallback(d=>{const p=d.target.value.trim();if(p===""){t({dueDateOffset:null});return}const f=parseInt(p,10);!Number.isNaN(f)&&f>=0&&t({dueDateOffset:f})},[t]),c=g.useCallback(d=>{t({monthFormat:d})},[t]),h=g.useCallback(d=>{t({destination:d===Ub?null:d})},[t]);return u.jsxs("div",{className:"flex-1 p-6 overflow-y-auto space-y-8",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Default responsible doer"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"New action items will be assigned to this person by default"})]}),u.jsx(lme,{contacts:r,value:a,onCommit:s,disabled:n,placeholder:"No default"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx(Ku,{htmlFor:"due-date-offset",className:"text-sm font-medium",children:"Default due date"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"New action items will be due this many days from today"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-sm text-muted-foreground",children:"Today +"}),u.jsx(Er,{id:"due-date-offset",type:"number",min:0,step:1,className:"w-20 h-8 text-sm",placeholder:"—",defaultValue:e?.dueDateOffset??"",onBlur:l,disabled:n}),u.jsx("span",{className:"text-sm text-muted-foreground",children:"days"})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Default destination"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"New action items will be sent to this destination by default"})]}),u.jsxs(yo,{value:e?.destination??Ub,onValueChange:h,disabled:n,children:[u.jsx(wo,{className:"h-8 text-sm",children:u.jsx(bo,{placeholder:"No default"})}),u.jsxs(vo,{children:[u.jsx(dn,{value:Ub,className:"text-sm",children:"No default"}),i.map(d=>u.jsx(dn,{value:d.value,className:"text-sm",children:d.label},d.value))]})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Date format"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"How a date is written wherever one is shown — the grid's date columns, date pickers and generated note titles"})]}),u.jsxs(yo,{value:e?.monthFormat??WF,onValueChange:c,disabled:n,children:[u.jsx(wo,{className:"h-8 text-sm",children:u.jsx(bo,{})}),u.jsx(vo,{children:_me.map(d=>u.jsx(dn,{value:d.value,className:"text-sm",children:d.label},d.value))})]})]})]})}function Tme({options:e,value:t,onValueChange:n,placeholder:r="Select option...",searchPlaceholder:o="Search...",emptyText:i="No option found.",className:a,searchValue:s,onSearchValueChange:l,invalid:c=!1,disabled:h=!1}){const[d,p]=g.useState(!1),f=t?e.find(y=>y.id===t)??null:null,b=e.filter(y=>$_(y)||y.id===t);return u.jsxs(Js,{open:d,onOpenChange:p,children:[u.jsx(Qs,{asChild:!0,children:u.jsxs(Ve,{variant:"outline",role:"combobox","aria-expanded":d,"aria-invalid":c,disabled:h,className:X("w-full justify-between font-normal rounded-md px-3 py-2 h-auto min-h-9 bg-surface","aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20 aria-invalid:focus-visible:ring-[3px]",a),children:[f?u.jsxs("div",{className:"flex items-center gap-2 text-left",children:[u.jsx(gc,{contact:f,size:"sm"}),u.jsxs("div",{className:"flex flex-col items-start gap-0.5",children:[u.jsx("span",{children:f.name}),u.jsx("span",{className:"text-xs text-muted-foreground",children:f.email})]})]}):u.jsx("span",{className:"text-subtle",children:r}),u.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[f&&u.jsxs("button",{type:"button",className:"rounded-md opacity-50 hover:opacity-100 outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onClick:y=>{y.stopPropagation(),n?.(null)},children:[u.jsx(Fi,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Clear selection"})]}),u.jsx(Ui,{className:"opacity-50"})]})]})}),u.jsx(Xs,{className:"w-(--radix-popover-trigger-width) p-0",side:"bottom",align:"start",avoidCollisions:!1,children:u.jsxs(Th,{children:[u.jsx(Ih,{placeholder:o,value:s,onValueChange:l}),u.jsxs(Eh,{children:[u.jsx(Ah,{children:i}),u.jsx(wa,{children:b.map(y=>u.jsxs(va,{value:`${y.name} ${y.email??""}`,onSelect:()=>{n?.(t===y.id?null:y.id),p(!1)},children:[u.jsx(gc,{contact:y,size:"sm"}),u.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.jsx("span",{children:y.name}),u.jsx("span",{className:"text-xs text-muted-foreground",children:y.email})]}),u.jsx(Vr,{className:X("ml-auto",t===y.id?"opacity-100":"opacity-0")})]},y.id))})]})]})})]})}const Fb="__none__",Ime={production:"[email protected]",staging:"[email protected]",local:"[email protected]"}
97,$E=Ime[dt.appEnvironment],LE=[{value:Ur.TRIAGE,label:"Triage",hint:"Emails wait for you to review and submit them."},{value:Ur.ACTION_LOGS,label:"Action Logs",hint:"Emails are filed straight into the log below, skipping triage."}];function Eme({defaults:e,onUpdate:t,isPending:n}){const r=PS(),o=LS(),i=g.useMemo(()=>l_.filter(x=>o.has(x.value)),[o]),a=e?.workspace??Ur.TRIAGE,s=e?.destination??null,[l,c]=g.useState(!1),h=l?Ur.ACTION_LOGS:a,d=g.useCallback(x=>{if(x===Ur.TRIAGE){c(!1),t({workspace:Ur.TRIAGE});return}if(!s){c(!0);return}t({workspace:Ur.ACTION_LOGS})},[s,t]),p=g.useCallback(x=>{const S=x===Fb?null:x;if(l){if(!S)return;c(!1),t({workspace:Ur.ACTION_LOGS,destination:S});return}t({destination:S})},[l,t]),f=g.useCallback(async()=>{try{await navigator.clipboard.writeText($E),rt.success("Email address copied")}catch{rt.error("Failed to copy email address")}},[]),b=g.useCallback(x=>{t({responsibleDoer:x})},[t]),y=g.useCallback(x=>{const S=x.target.value.trim();if(S===""){t({dueDateOffset:null});return}const I=parseInt(S,10);!Number.isNaN(I)&&I>=0&&t({dueDateOffset:I})},[t]),w=h===Ur.ACTION_LOGS,k=!w;return u.jsxs("div",{className:"flex-1 p-6 overflow-y-auto space-y-8",children:[u.jsxs("div",{className:"space-y-3 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Where to send email"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Send or forward an email to this address and Luniko turns it into action items."})]}),u.jsxs("button",{type:"button",onClick:f,className:"flex items-center gap-2 rounded-md border border-teal/40 bg-background px-2.5 py-1.5 font-mono text-sm text-teal hover:bg-accent",children:[$E,u.jsx(zG,{className:"h-3.5 w-3.5"})]}),u.jsxs("ul",{className:"list-disc space-y-1.5 pl-4 text-xs text-muted-foreground",children:[u.jsx("li",{children:"Luniko reads the subject and body, forwarded thread included, and pulls out the tasks it finds. One email can become several items."}),u.jsx("li",{children:"Those items wait in your triage to review and submit, or file straight into an action log — that's what the settings below control."}),u.jsx("li",{children:"Send from your work email so the items land in your triage. Mail from outside Luniko and its partner domains is ignored."}),u.jsx("li",{children:"Reply on the same thread later and Luniko adds it to the item it already made instead of creating another. The original email stays attached to the item."})]})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Applies to action items created from emails you send in. What an email actually says always wins — these only fill in what it left out."}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Default workspace"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:LE.find(x=>x.value===h)?.hint})]}),u.jsxs(yo,{value:h,onValueChange:d,disabled:n,children:[u.jsx(wo,{className:"h-8 text-sm w-40",children:u.jsx(bo,{})}),u.jsx(vo,{children:LE.map(x=>u.jsx(dn,{value:x.value,className:"text-sm",children:x.label},x.value))})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsxs("h3",{className:"text-sm font-medium",children:["Destination action log",w&&u.jsx("span",{className:"text-destructive",children:" *"})]}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:w?"Where emails are filed. Required — nothing stops in triage to be assigned a log later.":"Pre-fills the log on the triage row. Optional; you can still change it in triage."})]}),u.jsxs(yo,{value:s??Fb,onValueChange:p,disabled:n,children:[u.jsx(wo,{className:"h-8 text-sm",children:u.jsx(bo,{placeholder:"No default"})}),u.jsxs(vo,{children:[k&&u.jsx(dn,{value:Fb,className:"text-sm",children:"No default"}),i.map(x=>u.jsx(dn,{value:x.value,className:"text-sm",children:x.label},x.value))]})]}),l&&u.jsx("p",{className:"text-xs text-destructive",children:"Pick a log to finish switching to Action Logs — until then emails keep going to triage."})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Default responsible doer"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Used when the email doesn't say who owns the task"})]}),u.jsx(Tme,{options:r.data??[],value:e?.responsibleDoer??null,onValueChange:b,disabled:n,placeholder:"No default",searchPlaceholder:"Search people...",emptyText:"No matching person."})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx(Ku,{htmlFor:"email-ingestion-due-date-offset",className:"text-sm font-medium",children:"Default due date"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Used when no deadline can be read from the email. Leave blank to send them through with no due date."})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-sm text-muted-foreground",children:"Received +"}),u.jsx(Er,{id:"email-ingestion-due-date-offset",type:"number",min:0,step:1,className:"w-20 h-8 text-sm",placeholder:"—",defaultValue:e?.dueDateOffset??"",onBlur:y,disabled:n}),u.jsx("span",{className:"text-sm text-muted-foreground",children:"days"})]})]})]})}function Ame({value:e,url:t,className:n,fallback:r}){const[o,i]=g.useState(!1),a=Dp(e);
97return a!==null?u.jsx("span",{"aria-hidden":!0,className:n,children:a}):t===void 0||o?u.jsx("span",{"aria-hidden":!0,className:n,children:r}):u.jsx("img",{src:t,alt:"","aria-hidden":!0,draggable:!1,onError:()=>i(!0),className:X("inline-block h-[1em] w-[1em] object-contain",n)})}const zE=2700*1e3;function Cme(){const e=zg(),{data:t}=Cn(),n=Object.values(t?.reactionGlyphs??{}).some(o=>typeof o=="object"&&o.kind==="image"),{data:r}=Ae({queryKey:fd.glyphUrls,queryFn:()=>e.glyphUrls(),enabled:n,staleTime:zE,refetchInterval:zE});return r?.urls??{}}let Rm=null,Wb=null;async function Nme(){return Rm||(Wb??=tt(async()=>{const{EMOJI_RECORDS:e}=await import("./emoji-data.generated-DNrB4Fzy.js");return{EMOJI_RECORDS:e}},[]).then(({EMOJI_RECORDS:e})=>{const t=[],n=[];for(const r of e.split(`
98
99`)){const o=r.split(`
100`),i=o[0]?.trim();if(!i)continue;const a=[];for(const s of o.slice(1)){const[l,c,h=""]=s.split("	");if(!l||!c)continue;const d={glyph:l,name:c,keywords:h?h.split(","):[]};a.push(d),n.push(d)}a.length>0&&t.push({label:i,entries:a})}return Rm={groups:t,all:n},Rm}).finally(()=>{Wb=null}),Wb)}function Pme(e,t,n=500){const r=t.trim().toLowerCase();if(!r)return[];const o=r.split(/\s+/),i=[];for(const a of e.all){const s=a.name.toLowerCase();if(!o.every(h=>s.includes(h)||a.keywords.some(d=>d.startsWith(h))))continue;let c;s===r?c=0:s.startsWith(r)?c=1:new RegExp(`\\b${Dme(r)}`).test(s)?c=2:s.includes(r)?c=3:o.every(h=>a.keywords.includes(h))?c=4:c=5,i.push({entry:a,score:c})}return i.sort((a,s)=>a.score-s.score||a.entry.name.length-s.entry.name.length),i.slice(0,n).map(({entry:a})=>a)}function Dme(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ia=64,Ome=["image/png","image/jpeg","image/webp"],Rme=4*1024*1024;async function Mme(e){if(e.type==="image/svg+xml")return{ok:!1,reason:"SVG isn't supported. Try a PNG or WebP."};if(e.type==="image/gif")return{ok:!1,reason:"GIFs aren't supported — the animation would be lost."};if(!Ome.includes(e.type))return{ok:!1,reason:"Pick a PNG, JPEG or WebP image."};if(e.size>Rme)return{ok:!1,reason:"That image is too large. Try one under 4MB."};let t;try{t=await createImageBitmap(e,{resizeWidth:ia,resizeHeight:ia,resizeQuality:"high"}).catch(()=>createImageBitmap(e))}catch{return{ok:!1,reason:"That file doesn't look like an image."}}try{const n=document.createElement("canvas");n.width=ia,n.height=ia;const r=n.getContext("2d");if(!r)return{ok:!1,reason:"Couldn't process that image."};const o=Math.min(ia/t.width,ia/t.height),i=t.width*o,a=t.height*o;r.drawImage(t,(ia-i)/2,(ia-a)/2,i,a);const s=await new Promise(l=>{n.toBlob(c=>l(c),"image/webp",.9)});return s?{ok:!0,blob:s,contentType:"image/webp"}:{ok:!1,reason:"Couldn't process that image."}}finally{t.close()}}function jme(){const e=zg(),[t,n]=g.useState(!1);return{upload:async o=>{const i=await Mme(o);if(!i.ok)return rt.error(i.reason),null;n(!0);try{const a=await e.glyphUploadLink(i.contentType),s=new FormData;for(const[c,h]of Object.entries(a.presignedPost.fields))s.append(c,h);return s.append("file",i.blob),(await fetch(a.presignedPost.url,{method:"POST",body:s})).ok?{kind:"image",storageKey:a.storageKey}:(rt.error("Upload was rejected.",{description:"The image may be too large. Try a simpler one."}),null)}catch{return rt.error("Couldn't upload that image."),null}finally{n(!1)}},isUploading:t}}function $me({emotionName:e,currentGlyph:t,defaultGlyphForReset:n,isOverridden:r,onChoose:o,onClose:i}){const[a,s]=g.useState(""),[l,c]=g.useState(null),[h,d]=g.useState(""),{upload:p,isUploading:f}=jme();g.useEffect(()=>{let x=!1;return Nme().then(S=>{x||c(S)}),()=>{x=!0}},[]);const b=a.trim(),y=g.useMemo(()=>l&&b?Pme(l,b):null,[l,b]),w=h.trim(),k=l?.all.length??0;return u.jsxs("div",{className:"mt-1 rounded-md border border-teal/40 bg-muted/30 p-2",children:[u.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[u.jsxs("p",{className:"text-xs font-medium",children:["Choose an emoji for ",u.jsx("span",{className:"text-teal",children:e})]}),u.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r?u.jsxs("button",{type:"button",onClick:()=>o(""),className:"flex items-center gap-1 rounded-sm px-1.5 py-1 text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground",children:[u.jsx(RY,{className:"h-3 w-3"}),"Reset to ",n]}):null,u.jsx("button",{type:"button",onClick:i,"aria-label":"Close emoji picker",className:"rounded-sm p-1 text-muted-foreground hover:bg-accent hover:text-foreground",children:u.jsx(Fi,{className:"h-3.5 w-3.5"})})]})]}),u.jsxs("div",{className:"relative mb-2",children:[u.jsx(Ac,{className:"pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),u.jsx(Er,{value:a,onChange:x=>s(x.target.value),placeholder:k>0?`Search ${String(k)} emoji — try “happy”, “poop”, “rocket”`:"Search emoji…","aria-label":"Search emoji by name or keyword",className:"h-8 pl-7 text-sm"})]}),l===null?u.jsx("p",{className:"py-6 text-center text-xs text-muted-foreground",children:"Loading emoji…"}):y!==null?y.length===0?u.jsxs("p",{className:"py-6 text-center text-xs text-muted-foreground",children:["No emoji matches “",b,"”."]}):u.jsx("div",{className:"max-h-64 overflow-y-auto",children:u.jsx(UE,{entries:y,currentGlyph:t,onChoose:o})}):u.jsx("div",{className:"max-h-64 space-y-2 overflow-y-auto",children:l.groups.map(x=>u.jsxs("div",{style:{contentVisibility:"auto",containIntrinsicSize:`auto ${String(Ume(x.entries.length))}px`},children:[u.jsx("p",{className:"mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:x.label}),u.jsx(UE,{entries:x.entries,currentGlyph:t,onChoose:o})]},x.label))}),u.jsxs("div",{className:"mt-2 flex items-center gap-1.5 border-t border-border/60 pt-2",children:[u.jsx(Er,{value:h,onChange:x=>d(x.target.value),placeholder:"…or paste any emoji","aria-label":"Paste your own emoji",className:"h-7 flex-1 text-sm"}),u.jsx("button",{type:"button",disabled:w.length===0,onClick:()=>o(w),className:"rounded-md border px-2 py-1 text-xs hover:bg-accent disabled:opacity-40",children:"Use"})]}),u.jsxs("div",{className:"mt-2 border-t border-border/60 pt-2",children:[u.jsxs("label",{className:X("flex h-7 cursor-pointer items-center justify-center gap-1.5 rounded-md border text-xs hover:bg-accent",f&&"pointer-events-none opacity-50"),children:[u.jsx(n8,{className:"h-3 w-3"}),f?"Uploading…":"Upload your own image",u.jsx("input",{type:"file",accept:"image/png,image/jpeg,image/webp",className:"hidden","aria-label":"Upload your own image",onCh
100ange:x=>{const S=x.target.files?.[0];x.target.value="",S&&p(S).then(I=>{I&&o(I)})}})]}),u.jsx("p",{className:"mt-1 text-center text-[10px] text-muted-foreground",children:"Only you will see it. PNG, JPEG or WebP."})]})]})}const Lme=34,zme=15,Ume=e=>Math.ceil(e/zme)*Lme;function UE({entries:e,currentGlyph:t,onChoose:n}){return u.jsx("div",{className:"flex flex-wrap gap-0.5",children:e.map(({glyph:r,name:o})=>u.jsx("button",{type:"button",onClick:()=>n(r),"aria-label":o,"aria-pressed":r===t,title:o,className:X("flex h-8 w-8 items-center justify-center rounded-md text-base hover:bg-accent",r===t&&"bg-teal/20 ring-1 ring-teal"),children:r},r))})}function Fme({glyphs:e,onUpdate:t,isPending:n}){const[r,o]=g.useState(null),i=Cme(),a=Object.keys(e??{}).length,s=(l,c)=>{t({[l]:c}),o(null)};return u.jsxs("div",{className:"flex-1 space-y-6 overflow-y-auto p-6",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"Your reaction emojis"}),u.jsxs("p",{className:"mt-0.5 text-xs text-muted-foreground",children:["Pick the emoji you want for each emotion. These are yours alone — other people see whichever emoji ",u.jsx("em",{children:"they"})," chose for the same emotion, and reactions are counted by emotion either way.",a>0?` ${String(a)} customised.`:" None customised yet."]})]}),u.jsx("div",{className:"space-y-1.5",children:KJ.map(l=>{const c=YJ(e,l),h=!e?.[l],d=VJ(l),p=r===l;return u.jsxs("div",{children:[u.jsxs("button",{type:"button",disabled:n,onClick:()=>o(p?null:l),"aria-expanded":p,"aria-label":`${d} — currently ${Dp(c)??"an uploaded image"}${h?" (default)":""}`,className:X("flex h-10 w-full items-center gap-3 rounded-md border px-3 text-left text-sm disabled:opacity-50",p?"border-teal bg-teal/10":h?"border-border/60 hover:bg-accent":"border-teal/60 bg-teal/5 hover:bg-teal/10"),children:[u.jsx(Ame,{value:c,url:c.kind==="image"?i[c.storageKey]:void 0,fallback:pd[l],className:"text-lg leading-none"}),u.jsx("span",{className:"flex-1",children:d}),h?null:u.jsx("span",{className:"text-[11px] text-muted-foreground",children:"customised"})]}),p?u.jsx($me,{emotionName:d,currentGlyph:Dp(c)??"",defaultGlyphForReset:pd[l],isOverridden:!h,onChoose:f=>s(l,f),onClose:()=>o(null)}):null]},l)})})]})}function BF({shown:e}){return e?u.jsxs("span",{role:"status",className:"flex items-center gap-1 text-xs text-muted-foreground animate-in fade-in duration-150",children:[u.jsx(Vr,{className:"h-3.5 w-3.5"}),"Saved"]}):null}const Wme=["org.view_members","org.manage_audiences","org.view_billing","meetings.view_deleted","org.view_usage","platform.configure_modules","people.manage_identities","platform.impersonate","platform.activate_god_mode","platform.manage_orgs"],zS={"/":[],"/dashboard":[],"/meetings":[],"/calendar":[],"/pulse":[],"/library":[],"/notifications":[],"/bookmarks":[],"/tags":[],"/automations":["automations.use"],"/luniko-button":[],"/users":[],"/admin":Wme,"/organization":["org.manage_members"],"/scratch-pad":[],"/profile":[],"/command-center":[],"/global-search":["search.global"],"/schedules":[],"/action-logs":[],"/raid-logs":[],"/raid-analytics":[],"/review-meetings":[],"/shopfloor":[],"/fde-framework":["fde.read"],"/luna":["luna.ask"],"/help":[]},HF=(e,t)=>t.length===0?!0:t.some(n=>e.includes(n)),Nh=(e,t)=>HF(e,zS[t]),cy=e=>Object.keys(zS).find(t=>e===t||t!=="/"&&e.startsWith(`${t}/`))??null,qF=(e,t)=>{const n=cy(t);return!n||Nh(e,n)},Bme={"/meetings":"meetings","/pulse":"meetings","/review-meetings":"meetings","/bookmarks":"meetings","/library":"meetings","/command-center":"command_center","/action-logs":"command_center","/raid-logs":"command_center","/raid-analytics":"command_center","/schedules":"schedules","/shopfloor":"schedules"},VF=e=>{const t=Array.from(new Set(zS[e].map(tL)));if(t.length>0)return t;const n=Bme[e];return n?[n]:[]},US=(e,t,n)=>{const r=VF(n);if(r.length===0)return"usable";const o=new Set(e);if(r.some(a=>o.has(a)))return"usable";const i=new Set(t);return r.some(a=>i.has(a))?"not_consented":"not_entitled"}
100,Hme=(e,t,n)=>{const r=cy(n);return r?US(e,t,r):"usable"},KF=(e,t,n)=>US(e,t,n)!=="not_entitled",qme=["/meetings","/pulse","/command-center","/schedules","/profile"],Vme=(e,t,n)=>qme.find(r=>KF(t,n,r)&&Nh(e,r))??"/profile",Kme=(e,t,n)=>{const r=cy(n);return!r||KF(e,t,r)},Gme=(e,t,n)=>{const r=cy(n);if(!r||US(e,t,r)!=="not_consented")return null;const o=new Set(e),i=new Set(t);return VF(r).find(a=>i.has(a)&&!o.has(a))??null},FS={"/meetings":{to:"/meetings",label:"Past meetings",icon:Q0},"/pulse":{to:"/pulse",label:"Pulse",icon:J0},"/command-center":{to:"/command-center",label:"Command Center",icon:n_},"/schedules":{to:"/schedules",label:"Schedules",icon:$$},"/shopfloor":{to:"/shopfloor",label:"Shopfloor",icon:F$},"/action-logs":{to:"/action-logs",label:"Action Logs",icon:z$},"/raid-logs":{to:"/raid-logs",label:"RAID Logs",icon:lc},"/raid-analytics":{to:"/raid-analytics",label:"RAID Analytics",icon:TG},"/review-meetings":{to:"/review-meetings",label:"Review Meetings",icon:r_},"/dashboard":{to:"/dashboard",label:"Dashboard",icon:t_},"/luniko-button":{to:"/luniko-button",label:"Luniko Button",icon:fg},"/scratch-pad":{to:"/scratch-pad",label:"Scratch Pad",icon:K$},"/global-search":{to:"/global-search",label:"Global Search",icon:Ac},"/users":{to:"/users",label:"Users & Leaderboard",icon:yg},"/luna":{to:"/luna",label:"Luna",icon:sc}},Yme=["/command-center","/meetings","/pulse","/luniko-button","/users","/dashboard","/schedules","/action-logs","/raid-logs","/raid-analytics","/review-meetings","/scratch-pad","/shopfloor","/global-search","/luna"],GF=Yme.map(e=>({screen:e,...FS[e]})),YF=(e,t)=>{const n=t?FS[t]:void 0;return n?Nh(e,n.to):!1},Zme=e=>GF.filter(t=>YF(e,t.screen)),ZF=e=>Nh(e,"/pulse")?"/pulse":"/meetings",Jme=(e,t)=>YF(e,t)?FS[t].to:ZF(e),Qme=()=>{const{data:e}=Cn(),t=e?.capabilities;return g.useMemo(()=>Zme(t??[]),[t])},Bb="__automatic__",Xme=e=>GF.find(t=>t.to===e)?.label??"Past meetings";function epe({value:e,options:t,automaticPath:n,onUpdate:r,isPending:o,saved:i}){const a=e!==null&&t.some(l=>l.screen===e),s=a?e:Bb;return u.jsxs("div",{className:"flex items-center justify-between gap-6 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{className:"min-w-0 max-w-[560px]",children:[u.jsx("h3",{className:"text-sm font-medium",children:"Default screen after login"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Links you follow directly always win over this."}),e!==null&&!a&&u.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Your saved screen is no longer available to you, so Automatic is being used."})]}),u.jsxs("div",{className:"flex flex-none items-center gap-2",children:[u.jsxs(yo,{value:s,onValueChange:l=>r({defaultScreen:l===Bb?null:l}),disabled:o,children:[u.jsx(wo,{className:"h-8 text-sm w-64",children:u.jsx(bo,{})}),u.jsxs(vo,{children:[u.jsxs(dn,{value:Bb,className:"text-sm",children:["Automatic (",Xme(n),")"]}),t.map(({screen:l,label:c,icon:h})=>u.jsx(dn,{value:l,className:"text-sm",children:u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(h,{className:"h-4 w-4 shrink-0"}),c]})},l))]})]}),u.jsx(BF,{shown:i})]})]})}const Hb="__auto_detect__",tpe=[{value:"bn",label:"Bangla"},{value:"zh",label:"Chinese"},{value:"nl",label:"Dutch"},{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"pa",label:"Punjabi"},{value:"es",label:"Spanish"}];function npe({value:e,onUpdate:t,isPending:n,saved:r}){return u.jsxs("div",{className:"flex items-center justify-between gap-6 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{className:"min-w-0 max-w-[560px]",children:[u.jsx("h3",{className:"text-sm font-medium",children:"Dictation language"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"For the capture button and the composer's mic. Auto-detect follows you mid-recording."})]}),u.jsxs("div",{className:"flex flex-none items-center gap-2",children:[u.jsxs(yo,{value:e??Hb,onValueChange:o=>t({language:o===Hb?null:o}),disabled:n,children:[u.jsx(wo,{className:"h-8 text-sm w-64",children:u.jsx(bo,{})}),u.jsxs(vo,{children:[u.jsx(dn,{value:Hb,className:"text-sm",children:"Auto-detect"}),tpe.map(({value:o,label:i})=>u.jsx(dn,{value:o,className:"text-sm",children:i},o))]})]}),u.jsx(BF,{shown:r})]})]})}const rpe={"Calendars.Read":"See calendar events, so the notetaker knows when a meeting starts.","Calendars.ReadWrite":"Create a draft calendar invite from a meeting summary. Nothing is sent — the draft opens in your calendar for you to review first.","Chat.Read":"Read Microsoft Teams chat messages, so Luna can answer questions about them.","Mail.ReadWrite":"Read email, so Luna can answer questions about it, and create draft emails from meeting summaries. Nothing is sent — drafts open in your Outlook for you to review first.","MailboxSettings.Read":"Read mailbox settings such as time zone, so times shown are correct.","People.Read":"See who someone frequently works with, so Luna can address the right person.","Team.ReadBasic.All":"See the names of the Microsoft Teams your organization belongs to."},ope=e=>rpe[e]??e;function ipe({item:e}){const t=zz(),[n,r]=g.useState(!1),o=Bne(e.moduleKey,e.consentedScopes),i=g.useCallback(()=>{r(!0),t.getConsentUrl(e.moduleKey).then(({url:a})=>{window.open(a,"_blank","noopener")}).catch(()=>{rt.error(`Could not start the approval request for ${e.label}.`)}).finally(()=>r(!1))},[t,e.label,e.moduleKey]);return o?u.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl border bg-muted/20 p-4",children:[u.jsx(X0,{className:"h-4 w-4 flex-none text-muted-foreground"}),u.jsx("span",{className:"text-sm font-medium",children:e.label})]}):u.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border border-amber-500/30 bg-amber-500/5 p-4",children:[u.jsxs("div",{className:"flex items-start gap-2.5",children:[u.jsx(lc,{className:"mt-0.5 h-4 w-4 flex-none text-amber-600 dar
100k:text-amber-500"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"text-sm font-medium",children:e.label}),u.jsx("p",{className:"mt-0.5 text-[12.5px] text-muted-foreground",children:"Your IT administrator needs to approve this before it works."})]})]}),u.jsx("ul",{className:"ml-[26px] list-disc space-y-1 text-[12.5px] text-muted-foreground",children:e.requiredScopes.map(a=>u.jsx("li",{children:ope(a)},a))}),u.jsxs("div",{className:"ml-[26px]",children:[u.jsxs(Ve,{size:"sm",disabled:n,onClick:i,children:[n?u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"}):null,"Send approval request"]}),u.jsx("p",{className:"mt-2 text-[11.5px] text-muted-foreground/80",children:"Opens Microsoft's own approval page in a new tab. Only your organization's IT administrator can complete it, and it asks for exactly the permissions listed above — nothing else."})]}),u.jsx(ape,{})]})}function ape(){const e=ge();return g.useEffect(()=>{const t=window.setTimeout(()=>{e.invalidateQueries({queryKey:oS.status()})},15e3);return()=>window.clearTimeout(t)},[e]),null}function spe(){const e=Wz(),t=ge();if(g.useEffect(()=>{const r=new URL(dt.apiBaseUrl).origin,o=i=>{i.origin!==r||i.data?.source!=="luniko.module-consent"||t.invalidateQueries({queryKey:oS.status()})};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)},[t]),e.isLoading)return u.jsxs("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"}),"Loading…"]});const n=e.data?.items??[];return n.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Nothing here needs your attention."}):u.jsxs("div",{className:"flex max-w-xl flex-col gap-5",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-base font-semibold",children:"Microsoft permissions"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Some features need your organization's IT administrator to approve Microsoft permissions before they work."})]}),u.jsx("div",{className:"flex flex-col gap-2.5",children:n.map(r=>u.jsx(ipe,{item:r},r.moduleKey))})]})}var uy="Switch",[lpe]=Zo(uy),[cpe,upe]=lpe(uy),JF=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:h,...d}=e,[p,f]=g.useState(null),b=vt(t,S=>f(S)),y=g.useRef(!1),w=p?h||!!p.closest("form"):!0,[k,x]=go({prop:o,defaultProp:i??!1,onChange:c,caller:uy});return u.jsxs(cpe,{scope:n,checked:k,disabled:s,children:[u.jsx(Je.button,{type:"button",role:"switch","aria-checked":k,"aria-required":a,"data-state":t6(k),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:b,onClick:Ie(e.onClick,S=>{x(I=>!I),w&&(y.current=S.isPropagationStopped(),y.current||S.stopPropagation())})}),w&&u.jsx(e6,{control:p,bubbles:!y.current,name:r,value:l,checked:k,required:a,disabled:s,form:h,style:{transform:"translateX(-100%)"}})]})});JF.displayName=uy;var QF="SwitchThumb",XF=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=upe(QF,n);return u.jsx(Je.span,{"data-state":t6(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});XF.displayName=QF;var dpe="SwitchBubbleInput",e6=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=g.useRef(null),s=vt(a,i),l=z4(n),c=Yz(t);return g.useEffect(()=>{const h=a.current;if(!h)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&f){const b=new Event("click",{bubbles:r});f.call(h,n),h.dispatchEvent(b)}},[l,n,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});e6.displayName=dpe;function t6(e){return e?"checked":"unchecked"}var n6=JF,hpe=XF;const Ds=g.forwardRef(({className:e,...t},n)=>u.jsx(n6,{className:X("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:u.jsx(hpe,{className:X("pointer-events-none block h-4 w-4 roun
100ded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Ds.displayName=n6.displayName;function mpe(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=atob(n),o=new Uint8Array(new ArrayBuffer(r.length));for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o}const pu=typeof window<"u"&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window;function ppe(){const e=Eoe(),t=!!dt.vapidPublicKey,[n,r]=g.useState(pu?Notification.permission:null),[o,i]=g.useState(!1),[a,s]=g.useState(!1);g.useEffect(()=>{if(!pu)return;let h=!1;return(async()=>{try{const p=await(await navigator.serviceWorker.ready).pushManager.getSubscription();h||i(!!p)}catch{}})(),()=>{h=!0}},[]);const l=g.useCallback(async()=>{if(!(!pu||!t)){s(!0);try{const h=await Notification.requestPermission();if(r(h),h!=="granted")return;const d=await navigator.serviceWorker.ready;let p=await d.pushManager.getSubscription();p||(p=await d.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:mpe(dt.vapidPublicKey)}));const f=p.toJSON();if(!f.endpoint||!f.keys?.p256dh||!f.keys?.auth)throw new Error("Push subscription is missing endpoint or keys");await e.subscribe({endpoint:f.endpoint,expirationTime:f.expirationTime??null,keys:{p256dh:f.keys.p256dh,auth:f.keys.auth}}),i(!0)}finally{s(!1)}}},[t,e]),c=g.useCallback(async()=>{if(pu){s(!0);try{const d=await(await navigator.serviceWorker.ready).pushManager.getSubscription();if(d){const{endpoint:p}=d;await d.unsubscribe(),await e.unsubscribe(p)}i(!1)}finally{s(!1)}}},[e]);return{supported:pu,configured:t,permission:n,isSubscribed:o,loading:a,subscribe:l,unsubscribe:c}}function fpe(){const{supported:e,configured:t,permission:n,isSubscribed:r,loading:o,subscribe:i,unsubscribe:a}=ppe(),s=async c=>{try{c?await i():await a()}catch(h){rt.error(h instanceof Error?h.message:"Couldn't update desktop notifications")}},l=n==="denied";return u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-sm",children:"Desktop notifications on this device"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Arrives even when Luniko is closed. This one is per browser, so turning it on here leaves your other devices as they are."})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[o&&u.jsx(Ht,{className:"size-4 animate-spin text-muted-foreground"}),u.jsx(Ds,{checked:r,onCheckedChange:s,disabled:!e||!t||l||o,"aria-label":"Desktop notifications on this device"})]})]}),!e&&u.jsx("p",{className:"text-xs text-muted-foreground",children:"This browser doesn't support desktop notifications."}),e&&!t&&u.jsx("p",{className:"text-xs text-muted-foreground",children:"Desktop notifications aren't configured for this environment yet."}),e&&t&&l&&u.jsx("p",{className:"rounded-md border border-amber-300/40 bg-amber-50/50 px-3 py-2 text-xs text-amber-900",children:"Notifications are blocked in your browser settings. Re-enable them for this site, then toggle this on."})]})}const W$e="calendar-agenda",gpe="notification-batching",FE=(e,t)=>e?.featureFlags.hasLoadedFlags?e.isFeatureEnabled(t)===!0:void 0;function ype(e){const t=nr(),[n,r]=g.useState(()=>FE(t,e));return g.useEffect(()=>t?.onFeatureFlags(()=>{r(FE(t,e))}),[t,e]),dt.appEnvironment==="local"?!0:n}const r6="MO,TU,WE,TH,FR",bpe="8,9,10,11,12,13,14,15,16,17,18",qb=9,wpe=[{key:"instant",label:"Instant"},{key:"hourly",label:"Every hour"},{key:"workHours",label:"Every hour, 8am–6pm weekdays"},{key:"threeDaily",label:"3 times a day"},{key:"daily",label:"Daily at…"},{key:"weekdays",label:"Weekdays at…"}],o6={hourly:"FREQ=HOURLY",workHours:`FREQ=HOURLY;BYHOUR=${bpe};BYDAY=${r6}`,threeDaily:"FREQ=DAILY;BYHOUR=9,13,17"},i6=(e,t)=>e==="daily"?`FREQ=DAILY;BYHOUR=${t}`:e==="weekdays"?`FREQ=WEEKLY;BYDAY=${r6};BYHOUR=${t}`:o6[e],WE=(e,t)=>e==="instant"?{mode:"instant"}:{mode:"batched",rule:i6(e,t)},vpe=e=>{if(e.mode==="instant")return{key:"instant",hour:qb};for(const t of["hourly","workHours","threeDaily"])if(e.rule===o6[t])return{key:t,hour:qb};for(const t of["daily","weekdays"])for(let n=0;n<24;n++)if(e.rule===i6(t,n))return{key:t,hour:n};return{key:"custom",hour:qb}},kpe=Array.from({length:24},(e,t)=>t),xpe=[{key:"desktop",label:"Desktop"},{key:"phone",label:"Phone"}],_pe=[{key:"following",hint:"Changes to action items, RAID entries and schedule tasks you follow."},{key:"mentions",hint:"When someone @-mentions you or replies to your comment."},{key:"shared",hint:"Notes, mind maps, meetings and live rooms someone shares with you."},{key:"meetingReview",hint:"Action items and meeting reviews someone assigns you, and redaction suggestions."},{key:"reminders",hint:"Remind-me-later and meeting heads-ups, at the time you chose."},{key:"automations",hint:"Your daily brief and automation results, at the time you set."},{key:"housekeeping",hint:"Unfinished work, like items still queued in a mind map."}];function Spe({preferences:e,onUpdate:t,isPending:n,timeZone:r,error:o}){const i=ype(gpe)===!0,a=s=>
100e?.categories?.[s];return u.jsxs("div",{className:"flex-1 p-6 overflow-y-auto space-y-8",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"How you're notified"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"You hear about items you follow, plus things aimed at you directly. Turn a section off to stop being told about it; followed items still appear in your Following feed. Desktop and Phone choose where the interruption goes; it always reaches your bell."})]}),u.jsx("div",{className:"space-y-3",children:_pe.map(({key:s,hint:l})=>{const c=WJ[s],h=a(s),d=h?.enabled??!0;return u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-sm",children:c}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:l}),u.jsx("div",{className:`mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 ${d?"":"opacity-50"}`,children:xpe.map(({key:p,label:f})=>u.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[f,u.jsx(Ds,{checked:h?.channels?.[p]??FX(s)[p],onCheckedChange:b=>t({categories:{[s]:{channels:{[p]:b}}}}),disabled:n||!d,"aria-label":`${f} notifications for ${c}`})]},p))}),i&&HL(s)?u.jsx(Tpe,{label:c,mode:BX(e,s),disabled:n||!d,onChange:p=>t({categories:{[s]:{delivery:p}}})}):null]}),u.jsx("div",{className:"flex items-center gap-2 shrink-0",children:u.jsx(Ds,{checked:d,onCheckedChange:p=>t({categories:{[s]:{enabled:p}}}),disabled:n,"aria-label":c})})]},s)})}),i&&r?u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Times are in ",r,"."]}):null,o?u.jsx("p",{role:"alert",className:"text-xs text-destructive",children:o}):null]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-medium",children:"This device"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Everything above applies to your account. This one is just this browser."})]}),u.jsx(fpe,{})]})]})}function Tpe({label:e,mode:t,disabled:n,onChange:r}){const{key:o,hour:i}=vpe(t);return u.jsxs("div",{className:`mt-1.5 flex flex-wrap items-center gap-2 text-xs text-muted-foreground ${n?"opacity-50":""}`,children:["When",u.jsxs(yo,{value:o,onValueChange:a=>r(WE(a,i)),disabled:n,children:[u.jsx(wo,{size:"sm","aria-label":`When for ${e}`,children:u.jsx(bo,{})}),u.jsxs(vo,{children:[wpe.map(a=>u.jsx(dn,{value:a.key,children:a.label},a.key)),o==="custom"?u.jsx(dn,{value:"custom",disabled:!0,children:"Custom schedule"}):null]})]}),o==="daily"||o==="weekdays"?u.jsxs(yo,{value:String(i),onValueChange:a=>r(WE(o,Number(a))),disabled:n,children:[u.jsx(wo,{size:"sm","aria-label":`Hour for ${e}`,children:u.jsx(bo,{})}),u.jsx(vo,{children:kpe.map(a=>u.jsxs(dn,{value:String(a),children:[String(a).padStart(2,"0"),":00"]},a))})]}):null]})}const Ipe=Ws("inline-flex items-center justify-center border rounded-sm px-2 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden hover:cursor-default",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-destructive-foreground [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",large:"text-sm bg-muted rounded-sm border-none font-normal leading-tight tracking-normal"}},defaultVariants:{variant:"default"}});function vd({className:e,variant:t,asChild:n=!1,...r}){const o=n?J$:"span";return u.jsx(o,{"data-slot":"badge",className:X(Ipe({variant:t}),e),...r})}var Epe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ape=Epe.reduce((e,t)=>
100{const n=bg(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Cpe="Separator",BE="horizontal",Npe=["horizontal","vertical"],a6=g.forwardRef((e,t)=>{const{decorative:n,orientation:r=BE,...o}=e,i=Ppe(r)?r:BE,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return u.jsx(Ape.div,{"data-orientation":i,...s,...o,ref:t})});a6.displayName=Cpe;function Ppe(e){return Npe.includes(e)}var Dpe=a6;function Ope({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return u.jsx(Dpe,{"data-slot":"separator",decorative:n,orientation:t,className:X("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}const Rpe=e=>{if(typeof e!="object"||e===null)return null;const{meetingId:t}=e;return typeof t=="string"&&t?t:null};function HE({note:e}){return u.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.message,e.liveMeetingId?u.jsxs(u.Fragment,{children:[" ",u.jsxs(ji,{to:"/meetings/live/$meetingId",params:{meetingId:e.liveMeetingId},className:"inline-flex items-center gap-1 font-medium text-destructive hover:underline",children:[u.jsx(NY,{className:"h-3.5 w-3.5"}),"Watch it live"]})]}):null]})}function s6({onSent:e,autoFocus:t=!1}){const n=uh(),o=Cn().data,i=g.useMemo(()=>(o?.capabilities??[]).includes("meetings.send_notetaker")?xne([o?.email]):[],[o?.email,o?.capabilities]),[a,s]=g.useState(""),[l,c]=g.useState(""),[h,d]=g.useState({}),[p,f]=g.useState(null),[b,y]=g.useState(null),w=p!==null,k=g.useCallback(async(E,C)=>{const $=Ane.safeParse(C);if(!$.success){y({source:E,message:$.error.issues[0]?.message??"That doesn't look like a meeting link."});return}f(E),y(null);try{await n.invite($.data),y({source:E,message:"The note-taker is on its way in. Somebody may need to admit it."}),E==="manual"?(s(""),c("")):d(T=>({...T,[E]:""})),e?.()}catch(T){const P=T instanceof Error?T.message:"Couldn't send the note-taker.",D=T instanceof Kr&&T.status===409?Rpe(T.details):null;y(D?{source:E,message:P,liveMeetingId:D}:{source:E,message:P})}finally{f(null)}},[n,e]),x=a.trim().length>0,S=l.trim().length>0,I=()=>{k("manual",{meetingUrl:a,...S?{meetingName:l.trim()}:{}})};return u.jsxs("div",{className:"flex flex-col gap-4",children:[u.jsxs("div",{className:"flex flex-col gap-2.5",children:[u.jsxs("div",{className:"relative",children:[u.jsx(iY,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),u.jsx(Er,{className:"pl-9",value:a,autoFocus:t,onChange:E=>{s(E.target.value),y(null)},placeholder:"Paste a meeting link","aria-label":"Meeting link",disabled:w})]}),u.jsxs("div",{className:"flex gap-2.5",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(cI,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),u.jsx(Er,{className:"pl-9",value:l,onChange:E=>c(E.target.value),onKeyDown:E=>{E.key==="Enter"&&!w&&x&&I()},placeholder:"Meeting name","aria-label":"Meeting name",disabled:w})]}),u.jsxs(Ve,{onClick:I,disabled:w||!x,className:X(x&&!S&&!w&&"opacity-50 hover:opacity-70"),children:[p==="manual"?u.jsx(Ht,{className:"h-4 w-4 animate-spin"}):u.jsx(lI,{className:"h-4 w-4"}),"Send"]})]}),b?.source==="manual"?u.jsx(HE,{note:b}):null]}),i.map(E=>{const C=h[E.id]??"",$=()=>{const T=C.trim();k(E.id,{meetingUrl:E.url,savedRoomId:E.id,...T?{meetingName:T}:{}})};return u.jsxs("div",{className:"flex flex-col gap-2.5 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Hu,{className:"h-4 w-4 text-muted-foreground"}),u.jsx("p",{className:"text-sm font-medium",children:E.label})]}),u.jsxs("div",{className:"flex gap-2.5",children:[u.jsxs("div",{className:"relative flex-1",children:[u.jsx(cI,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),u.jsx(Er,{className:"pl-9",value:C,onChange:T=>{const{value:P}=T.target;d(D=>({...D,[E.id]:P})),y(null)},onKeyDown:T=>{T.key==="Enter"&&!w&&$()},placeholder:"Name this meeting","aria-label":`Meeting name for ${E.label}`,disabled:w})]}),u.jsxs(Ve,{className:"flex-none",disabled:w,onClick:$,children:[p===E.id?u.jsx(Ht,{className:"h-4 w-4 animate-spin"}):u.jsx(lI,{className:"h-4 w-4"}),"Send"]})]}),b?.source===E.id?u.jsx(HE,{note:b}):null]},E.id)})]})}const Mpe=[{value:"all",title:"Join all my meetings",body:"Every meeting on your calendar with a joinable link."},{value:"allowlist",title:"Only meetings I allow",body:"Pick from your upcoming meetings below."},{value:"none",title:"Never join automatically",body:"You can still send it in 
100with a link."}],jpe=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=t.toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"}),r=t.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});return`${n} · ${r}`},$pe=e=>{if(!e)return"";const t=Math.round((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${String(t)} minute${t===1?"":"s"} ago`;const n=Math.round(t/60);return`${String(n)} hour${n===1?"":"s"} ago`},Lpe=(e,t)=>{const n=Bee(t,{title:e.title,description:e.description??null,dedupKey:e.dedupKey,icalUid:e.icalUid});return n.record?n:t.mode==="allowlist"&&e.covered?{record:!0,reason:"a colleague's rule"}:n};function zpe({display:e,onUpdateDisplay:t,isDisplayPending:n,onNavigate:r}){const o=uh(),[i,a]=g.useState("manual"),[s,l]=g.useState(null),[c,h]=g.useState(null),d=g.useCallback(async()=>{try{l(await o.getStatus())}catch{l(null)}},[o]);g.useEffect(()=>{d()},[d]),g.useEffect(()=>{const V=new URL(dt.apiBaseUrl).origin,J=F=>{F.origin!==V||F.data?.source!=="luniko.calendar-connect"||d()};return window.addEventListener("message",J),()=>{window.removeEventListener("message",J)}},[d]);const p=s?.status==="connected",[f,b]=g.useState(null),[y,w]=g.useState(!1),[k,x]=g.useState(null),[S,I]=g.useState("");g.useEffect(()=>{let V=!1;return o.getRecordingSettings().then(J=>{V||b(J)}).catch(()=>{V||x("Couldn't load your recording settings.")}),()=>{V=!0}},[o]);const E=f??Fee,C=g.useCallback(async V=>{const J=f;b(V),w(!0),x(null);try{const F=await o.setRecordingSettings(V);b(F)}catch{b(J),x("Couldn't save. Your previous settings still apply.")}finally{w(!1)}},[o,f]),[$,T]=g.useState(null);g.useEffect(()=>{if(!p||$!==null)return;let V=!1;return o.getUpcomingEvents().then(J=>{V||T(J.events)}).catch(()=>{V||T([])}),()=>{V=!0}},[o,p,$]);const P=g.useMemo(()=>($??[]).slice(0,8).map(V=>({event:V,...Lpe(V,E)})),[$,E]),D=g.useCallback(()=>{const V=S.trim().toLowerCase();I(""),!(!V||E.titleBlocklist.includes(V))&&C({...E,titleBlocklist:[...E.titleBlocklist,V]})},[S,E,C]),H=e??Eu,z=(V,J)=>u.jsx("div",{className:"flex rounded-lg border bg-muted/40 p-0.5",children:[["hover","Auto-hide"],["always","Always show"]].map(([F,G])=>u.jsx("button",{type:"button",disabled:n,onClick:()=>J(F),className:X("rounded-md px-3 py-1.5 text-xs transition-colors",V===F?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:G},F))});return u.jsxs("div",{className:"flex min-h-0 flex-1",children:[u.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[u.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto p-6",children:[u.jsx("div",{className:"flex flex-none gap-1 rounded-lg border bg-muted/40 p-0.5",children:[["manual","Manual join"],["recording","Recording"],["display","Display"]].map(([V,J])=>u.jsx("button",{type:"button",onClick:()=>a(V),className:X("flex-1 rounded-md px-3.5 py-1.5 text-center text-[13px] transition-colors",i===V?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:J},V))}),i==="recording"?u.jsxs("div",{className:"flex max-w-2xl flex-col gap-6",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsx("h3",{className:"text-base font-semibold",children:"When should the note-taker join?"}),u.jsx("div",{className:"flex flex-col gap-2",role:"radiogroup","aria-label":"Recording mode",children:Mpe.map(V=>{const J=E.mode===V.value;return u.jsxs("button",{type:"button",role:"radio","aria-checked":J,disabled:f===null,onClick:()=>{C({...E,mode:V.value})},className:X("flex items-center gap-3.5 rounded-xl border p-4 text-left transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",J?"border-primary/60 bg-primary/5":"hover:bg-muted/30"),children:[u.jsx("span",{className:X("h-4 w-4 flex-none rounded-full border",J?"border-primary bg-primary shadow-[inset_0_0_0_3px_hsl(var(--card))]":"border-muted-foreground/40"),style:J?{boxShadow:"inset 0 0 0 3px var(--card, #fff)"}:void 0}),u.jsxs("span",{className:"flex flex-col gap-0.5",children:[u.jsx("span",{className:"text-sm font-medium",children:V.title}),u.jsx("span",{className:"text-[12.5px] text-muted-foreground",children:V.body})]})]},V.value)})})]}),E.mode==="allowlist"?u.jsxs("div",{className:"rounded-xl border bg-muted/20 p-4 text-[12.5px] text-muted-foreground",children:["Pick the meetings from"," ",u.jsx(ji,{to:"/meetings",onClick:r,className:"font-medium text-foreground underline underline-offset-4",children:"Upcoming on the meetings page"}),"."]}):null,u.jsx(Ope,{}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-[15px] font-semibold",children:"Never record 
100if the title contains"}),u.jsx("p",{className:"text-[12.5px] text-muted-foreground",children:"Applies to your calendar only — a colleague whose settings allow a note-taker will still trigger one. The word “blacklist” is the exception: put it in any meeting's title or invite body and no note-taker joins, whoever booked it."})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[E.titleBlocklist.map(V=>u.jsxs(vd,{variant:"secondary",className:"gap-1.5 px-2.5 py-1.5",children:[V,u.jsx("button",{type:"button","aria-label":`Remove ${V}`,className:"text-muted-foreground transition-colors hover:text-foreground",onClick:()=>{C({...E,titleBlocklist:E.titleBlocklist.filter(J=>J!==V)})},children:u.jsx(Fi,{className:"h-3 w-3"})})]},V)),u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Er,{value:S,onChange:V=>I(V.target.value),onKeyDown:V=>{V.key==="Enter"&&(V.preventDefault(),D())},placeholder:"add a word","aria-label":"Add a blocked word",className:"h-8 w-36 border-dashed",disabled:f===null}),u.jsx(Ve,{variant:"ghost",size:"sm",onClick:D,disabled:S.trim().length===0,"aria-label":"Add blocked word",children:u.jsx(dd,{className:"h-4 w-4"})})]})]})]})]}):null,i==="manual"?u.jsx("div",{className:"flex max-w-xl flex-col gap-4",children:u.jsxs("div",{className:"flex flex-col gap-3 rounded-xl border bg-muted/20 p-5",children:[u.jsx("h3",{className:"text-base font-semibold",children:"Send the note-taker into a meeting"}),u.jsx(s6,{})]})}):null,i==="display"?u.jsxs("div",{className:"flex max-w-xl flex-col gap-5",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-base font-semibold",children:"Meeting action buttons"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Auto-hide shows them on hover or keyboard focus."})]}),u.jsxs("div",{className:"flex flex-col gap-2.5",children:[u.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium",children:"Table view"}),u.jsx("p",{className:"text-[12.5px] text-muted-foreground",children:"Buttons on each meeting row."})]}),z(H.tableActions,V=>t({tableActions:V}))]}),u.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium",children:"Grid view"}),u.jsx("p",{className:"text-[12.5px] text-muted-foreground",children:"Buttons on each meeting card."})]}),z(H.gridActions,V=>t({gridActions:V}))]})]})]}):null]}),u.jsx("div",{role:"status",className:"flex flex-none items-center gap-1.5 border-t px-6 py-3 text-xs text-muted-foreground",children:k?u.jsx("span",{className:"text-destructive",children:k}):y||n?u.jsxs(u.Fragment,{children:[u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"}),"Saving…"]}):u.jsx("span",{className:"text-success-foreground dark:text-success",children:"All changes saved successfully"})})]}),u.jsxs("div",{className:"flex w-[300px] flex-none flex-col gap-4 overflow-y-auto border-l bg-muted/10 p-5",children:[u.jsxs("div",{className:X("flex flex-col gap-3 rounded-xl border p-4",p?"border-primary/30 bg-primary/5":"bg-muted/20"),children:[u.jsxs("div",{className:"flex items-center gap-2.5",children:[u.jsx("span",{className:X("h-2 w-2 rounded-full",p?"bg-primary shadow-[0_0_0_3px] shadow-primary/20":"bg-muted-foreground/50")}),u.jsx("span",{className:"text-sm font-medium",children:p?"Calendar connected":"No calendar connected"})]}),u.jsx("p",{className:"text-[12.5px] leading-relaxed text-muted-foreground",children:p?`${s?.platformEmail??"your calendar"}${s?.lastSyncedAt?` · last sync ${$pe(s.lastSyncedAt)}`:""}`:"Connect it and the note-taker joins meetings automatically."}),u.jsx("div",{className:"flex gap-2",children:p?u.jsxs(u.Fragment,{children:[u.jsxs(Ve,{size:"sm",variant:"secondary",disabled:c!==null,onClick:()=>{h("syncing"),o.sync().then(()=>d()).finally(()=>h(null))},children:[c==="syncing"?u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"}):null,"Sync now"]}),u.jsx(Ve,{size:"sm",variant:"outline",disabled:c!==null,onClick:()=>{h("disconnecting"),o.disconnect().then(()=>d()).finally(()=>h(null))},children:"Disconnect"})]}):u.jsxs(Ve,{size:"sm",disabled:c!==null,onClick:()=>{h("connecting"),o.getAuthorizeUrl().then(({url:V})=>{window.open(V,"_blank","noopener")}).finally(()=>h(null))},children:[c==="connecting"?u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"}):null,"Connect calendar"]})})]}),u.jsxs("div",{className:"flex flex-col gap-2.5",children:[u.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[.16em] text-muted-foreground",children:"Next up"}),p?$===null?u.jsxs("p",{className:"text-xs text-muted-foreground",children:[u.jsx(Ht,{className:"mr-1 inline h-3 w-3 animate-spin"}),"Loading…"]}):P.length===0?u.jsx("p",{className:"text-xs text-muted-foreground
100/70",children:"Nothing with a joinable link in the next two weeks."}):u.jsx(u.Fragment,{children:P.map(({event:V,record:J,reason:F},G)=>u.jsxs("div",{className:X("flex flex-col gap-1.5 rounded-lg border p-3",J?"border-primary/25":"border-border"),children:[u.jsxs("div",{className:"flex items-center justify-between gap-2.5",children:[u.jsx("span",{className:"min-w-0 truncate text-[12.5px]",children:V.title??"Untitled meeting"}),u.jsx(vd,{variant:J?"default":"secondary",className:"flex-none px-2 py-0.5 text-[11px] font-normal",children:J?"Will record":"Skipped"})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("span",{className:"text-[11.5px] text-muted-foreground",children:jpe(V.startTime)}),u.jsx("span",{className:"text-[11px] text-muted-foreground/70",children:F})]})]},V.dedupKey??`${V.icalUid??"e"}-${String(G)}`))}):u.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground/70",children:"Your upcoming meetings appear here once a calendar is connected."})]})]})]})}function Upe({defaults:e,onUpdate:t,isPending:n}){const r=e?.leaderboardOptOut??Np.leaderboardOptOut;return u.jsx("div",{className:"flex items-center justify-between gap-6 rounded-xl border bg-muted/20 p-4",children:u.jsxs("div",{className:"flex w-full items-center justify-between gap-4",children:[u.jsxs("label",{htmlFor:"leaderboard-opt-out",className:"min-w-0 cursor-pointer",children:[u.jsx("span",{className:"block text-sm font-medium",children:"Hide me from the leaderboard"}),u.jsx("span",{className:"mt-0.5 block text-xs text-muted-foreground",children:"Nobody can see your points or your activity history. You give up your own view of the leaderboard too. Your points keep adding up the whole time, so turning this off again brings all of it back."})]}),u.jsx(Ds,{id:"leaderboard-opt-out",checked:r,onCheckedChange:o=>t({leaderboardOptOut:o}),disabled:n})]})})}const Fpe=5e3,Wpe="Writes Trending, % Complete Actual, % Complete Expected and Status into the full sheet. No rows are added, removed or cleared, spacer rows are left alone, and only cells whose value changed are written.",qE=[{value:"flat",label:"Flat sheet",detail:"Empties the flat sheet PowerBI reads and reloads all of it, which takes a few minutes. While that runs, anyone looking at the sheet — or a PowerBI refresh — sees it partly empty."},{value:"full",label:"Full sheet",detail:Wpe}
100,{value:"both",label:"Flat + full sheets",detail:"Rebuilds the flat sheet, then updates the full sheet, from the same calculation. This is what the nightly run does."}],Bpe={flat:"Flat sheet",full:"Full sheet",both:"Flat + full sheets"},l6=e=>Bpe[e],Vb=["schedule-mirror","status"],c6=e=>new Date(e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"}),Hpe=e=>{const t=Math.round(e/1e3);return t<60?`${String(t)}s`:`${String(Math.floor(t/60))}m ${String(t%60)}s`},u6=e=>e.trigger==="schedule"?"the nightly schedule":e.trigger==="cli"?"the command line":e.triggeredByName??"someone";function qpe({run:e}){const t=e.state!=="succeeded";return u.jsxs("p",{className:"mt-1.5 flex items-start gap-1.5 text-xs text-muted-foreground",children:[t?u.jsx(cd,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-destructive"}):u.jsx(X0,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),u.jsxs("span",{children:[t?"Last rebuild failed":"Last rebuild"," ",c6(e.startedAt)," by ",u6(e),e.durationMs!==null?` · ${Hpe(e.durationMs)}`:"",` · ${l6(e.destination)}`,e.result&&e.destination!=="full"?` · ${e.result.rowsLoaded.toLocaleString()} rows`:"",e.result&&e.destination!=="flat"?e.result.sourceCellsWritten===0?" · full sheet already up to date":` · ${e.result.sourceCellsWritten.toLocaleString()} cells`:"",e.result&&e.result.rowsRejected>0?u.jsxs("span",{className:"text-destructive",children:[" ","· ",e.result.rowsRejected.toLocaleString()," rejected — the sheet is incomplete"]}):null,t&&e.error?u.jsxs("span",{className:"text-destructive",children:[" — ",e.error]}):null]})]})}function Vpe(){const e=Noe(),t=ge(),[n,r]=g.useState(!1),[o,i]=g.useState("flat"),a=Ae({queryKey:Vb,queryFn:()=>e.getStatus(),refetchInterval:d=>d.state.data?.running?Fpe:!1}),s=pe({mutationFn:()=>e.run(o),onSuccess:()=>{r(!1),rt.success("Rebuild started. This takes a few minutes."),t.invalidateQueries({queryKey:Vb})},onError:d=>{r(!1);const p=d instanceof Kr?d.message:"Could not start the rebuild.";rt.error(p),t.invalidateQueries({queryKey:Vb})}}),l=a.data?.running??null,c=a.data?.lastFinished??null,h=a.data?.available??!1;return u.jsxs("div",{className:"flex items-center justify-between gap-6 rounded-xl border bg-muted/20 p-4",children:[u.jsxs("div",{className:"min-w-0 max-w-[560px]",children:[u.jsx("h3",{className:"text-sm font-medium",children:"Update Schedule Scripted Fields"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recalculates the schedule every night at midnight Pacific and writes the results to both sheets."}),u.jsxs("ul",{className:"mt-1 space-y-0.5 text-xs text-muted-foreground",children:[u.jsxs("li",{children:[u.jsx("span",{className:"font-medium text-foreground",children:"Flat sheet"}),": the sheet that contains all fields required by PowerBI (Luniko Executive Dashboard)."]}),u.jsxs("li",{children:[u.jsx("span",{className:"font-medium text-foreground",children:"Full sheet"}),": the live schedule used day to day in the project."]})]}),l?u.jsxs("p",{className:"mt-1.5 flex items-center gap-1.5 text-xs text-muted-foreground",children:[u.jsx(Ht,{className:"h-3.5 w-3.5 shrink-0 animate-spin"}),"Rebuilding — started ",c6(l.startedAt)," by"," ",u6(l),"."]}):c&&u.jsx(qpe,{run:c}),a.isError&&u.jsx("p",{className:"mt-1.5 text-xs text-destructive",children:"Could not read the rebuild status, so starting one is disabled."}),a.data&&!h&&u.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"Rebuilds only run from production."})]}),u.jsxs("div",{className:"flex flex-none items-center gap-2",children:[u.jsxs(yo,{value:o,onValueChange:d=>{i(d)},disabled:l!==null||!h,children:[u.jsx(wo,{className:"w-52 bg-surface font-normal",children:u.jsx(bo,{})}),u.jsx(vo,{children:qE.map(d=>u.jsx(dn,{value:d.value,children:d.label},d.value))})]}),u.jsxs(Ve,{onClick:()=>r(!0),disabled:l!==null||a.isLoading||!h,children:[u.jsx(q$,{className:"h-4 w-4"}),"Rebuild now"]})]}),u.jsx(za,{open:n,onOpenChange:r,children:u.jsxs(Ua,{className:"sm:max-w-md",children:[u.jsxs(Zs,{children:[u.jsxs(Fa,{children:["Write to the ",l6(o).toLowerCase(),"?"]}),u.jsx(jc,{asChild:!0,children:u.jsxs("div",{className:"space-y-2 text-sm text-muted-foreground",children:[u.jsx("p",{children:qE.find(d=>d.value===o)?.detail}),u.jsx("p",{children:"The flat sheet rebuilds on its own every night, so this is only worth doing if it needs to be current now."})]})})]}),u.jsxs(_h,{children:[u.jsx(Ve,{variant:"outline",onClick:()=>r(!1),disabled:s.isPending,children:"Cancel"}),u.jsxs(Ve,{onClick:()=>s.mutate(),disabled:s.isPending,children:[s.isPending&&u.jsx(Ht,{className:"h-4 w-4 animate-spin"}),"Rebuild now"]})]})]})})]})}function Kpe({options:e,values:t=[],onValuesChange:n,placeholder:r="Select options...",searchPlaceholder:o="Search...",emptyText:i="No option found.",className:a,maxDisplay:s=1,searchValue:l,onSearchValueChange:c,invalid:h=!1}){const[d,p]=g.useState(!1),[f,b]=g.useState(!1),y=g.useRef(null),w=g.useRef(null),k=new Map(e.map(P=>[P.id,P])),x=t.map(P=>k.get(P)).filter(P=>!!P),S=e.filter(P=>$_(P)||t.includes(P.id)),I=P=>{const H=t.includes(P.id)?t.filter(z=>z!==P.id):[...t,P.id];n?.(H)},E=(P,D)=>{D.stopPropagation(),n?.(t.filter(H=>H!==P))},C=P=>{P.stopPropagation(),b(!0)};g.useEffect(()=>{if(!f)return;const P=D=>{y.current&&!y.current.contains(D.target)&&b(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[f]);const $=f?x:x.slice(0,s),T=x.length-s;return u.jsxs(Js,{open:d,onOpenChange:p,children:[u.jsx("div",{ref:y,children:u.jsx(Qs,{asChild:!0,children:u.jsxs(Ve,{variant:"outline",role:"combobox","aria-expanded":d,"aria-invalid":h,className:X("w-full justify-between font-normal px-3 py-2 rounded-md h-auto min-h-9 bg-surface","aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20 aria-invalid:focus-visible:ring-[3px]",a),children:[x.length>0?u.jsxs("div",{className:"flex flex-wrap gap-1 items-center",children:[$.map(P=>u.jsxs(vd,{variant:"secondary",className:"rounded-sm px-2 py-1 h-auto",children:[u.jsx(gc,{contact:P,size:"sm"}),u.jsxs("div",{className:"flex flex-col items-start gap-0.5",children:[u.jsx("span",{className:"font-medium",children:P.name}),u.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:P.email})]}),u.jsxs("button",{type:"button",className:"rounded-sm opacity-50 hover:opacity-100 outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onClick:D=>E(P.id,D),children:[u.jsx(Fi,{className:"size-3"}),u.jsxs("span",{className:"sr-only",children:["Remove ",P.name]})]})]},P.id)),!f&&T>0&&u.jsxs(vd,{variant:"secondary",className:"rounded-sm px-2 py-1 h-auto cursor-pointer hover:bg-secondary/80",onClick:C,children:["+",T," more"]})]}):u.jsx("span",{className:"text-subtle",children:r}),u.jsx(Ui,{className:"ml-auto shrink-0 opacity-50"})]})})}),u.jsx(Xs,{className:"w-(--radix-popover-trigger-width) p-0",side:"bottom",align:"start",avoidCollisions:!1,children:u.jsxs(Th,{children:[u.jsx(Ih,{placeholder:o,value:l,onValueChange:c}),u.jsxs(Eh,{ref:w,className:"max-h-[200px] overflow-y-auto overscroll-contain",onWheel:P=>{const D=P.currentTarget;D.scrollHeight>D.clientHeight&&P.stopPropagation()},children:[u.jsx(Ah,{children:i}),u.jsx(wa,{children:S.map(P=>u.jsxs(va,{value:`${P.name} ${P.email??""}`,onSelect:()=>I(P),children:[u.jsx(gc,{contact:P,size:"sm"}),u.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.jsx("span",{children:P.name}),u.jsx("span",{className:"text-xs text-muted-foreground",children:P.email})]}),u.jsx(Vr,{className:X("ml-auto",t.includes(P.id)?"opacity-100":"opacity-0")})]},P.id))})]})]})})]})}function Gpe({options:e,values:t,onChange:n,placeholder:r}){const[o,i]=g.useState(!1),a=s=>{n(t.includes(s)?t.filter(l=>l!==s):[...t,s])};return u.jsxs(Js,{open:o,onOpenChange:i,children:[u.jsx(Qs,{asChild:!0,children:u.jsx(Ve,{variant:"outline",role:"combobox",className:"w-full justify-between font-normal px-3 py-2 rounded-md h-8 bg-surface text-xs",children:t.length>0?u.jsx("span",{className:"truncate",children:t.map(s=>e.find(l=>l.value===s)?.label??s).join(", ")}):u.jsx("span",{className:"text-subtle",children:r})})}),u.jsx(Xs,{className:"w-(--radix-popover-trigger-width) p-0",side:"bottom",align:"start",children:u.jsxs(Th,{children:[u.jsx(Ih,{placeholder:`Search ${r.toLowerCase()}...`}),u.jsxs(Eh,{className:"max-h-50",children:[u.jsx(Ah,{children:"No options foun
100d."}),u.jsx(wa,{children:e.map(s=>u.jsxs(va,{value:s.label,onSelect:()=>a(s.value),children:[u.jsx("span",{className:"text-xs",children:s.label}),u.jsx(Vr,{className:X("ml-auto h-3.5 w-3.5",t.includes(s.value)?"opacity-100":"opacity-0")})]},s.value))})]})]})})]})}var d6="Toggle",h6=g.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...i}=e,[a,s]=go({prop:n,onChange:o,defaultProp:r??!1,caller:d6});return u.jsx(Je.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:Ie(e.onClick,()=>{e.disabled||s(!a)})})});h6.displayName=d6;var Va="ToggleGroup",[m6]=Zo(Va,[Yg]),p6=Yg(),WS=se.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.jsx(Ype,{...o,ref:t})}if(n==="multiple"){const o=r;return u.jsx(Zpe,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Va}\``)});WS.displayName=Va;var[f6,g6]=m6(Va),Ype=se.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=go({prop:n,defaultProp:r??"",onChange:o,caller:Va});return u.jsx(f6,{scope:e.__scopeToggleGroup,type:"single",value:se.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:se.useCallback(()=>s(""),[s]),children:u.jsx(y6,{...i,ref:t})})}),Zpe=se.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=go({prop:n,defaultProp:r??[],onChange:o,caller:Va}),l=se.useCallback(h=>s((d=[])=>[...d,h]),[s]),c=se.useCallback(h=>s((d=[])=>d.filter(p=>p!==h)),[s]);return u.jsx(f6,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:c,children:u.jsx(y6,{...i,ref:t})})});WS.displayName=Va;var[Jpe,Qpe]=m6(Va),y6=se.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:i,dir:a,loop:s=!0,...l}=e,c=p6(n),h=qg(a),d={role:"group",dir:h,...l};return u.jsx(Jpe,{scope:n,rovingFocus:o,disabled:r,children:o?u.jsx(uU,{asChild:!0,...c,orientation:i,dir:h,loop:s,children:u.jsx(Je.div,{...d,ref:t})}):u.jsx(Je.div,{...d,ref:t})})}),qp="ToggleGroupItem",b6=se.forwardRef((e,t)=>{const n=g6(qp,e.__scopeToggleGroup),r=Qpe(qp,e.__scopeToggleGroup),o=p6(e.__scopeToggleGroup),i=n.value.includes(e.value),a=r.disabled||e.disabled,s={...e,pressed:i,disabled:a},l=se.useRef(null);return r.rovingFocus?u.jsx(dU,{asChild:!0,...o,focusable:!a,active:i,ref:l,children:u.jsx(VE,{...s,ref:t})}):u.jsx(VE,{...s,ref:t})});b6.displayName=qp;var VE=se.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,i=g6(qp,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=i.type==="single"?a:void 0;return u.jsx(h6,{...s,...o,ref:t,onPressedChange:l=>{l?i.onItemActivate(r):i.onItemDeactivate(r)}})}),Xpe=WS,efe=b6;const tfe=Ws("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 aria-invalid:focus-visible:ring-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),w6=g.createContext({size:"default",variant:"default"});function v6({className:e,variant:t,size:n,children:r,...o}){return u.jsx(Xpe,{"data-slot":"toggle-group",className:X("flex items-center justify-center rounded-md [&>*:first-child]:rounded-l-md [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-r-md [&>*:last-child]:rounded-l-none [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:not(:first-child)]:-ml-px",e),...o,children:u.jsx(w6.Provider,{value:{variant:t,size:n},children:r})})}function k6({className:e,children:t,variant:n,size:r,...o}){const i=g.useContext(w6);return u.jsx(efe,{"data-slot":"toggle-group-item",className:X(tfe({variant:n||i.variant,size:r||i.size}),"focus-visible:z-10",e),...o,children:t})}function Lv(e){return e.trim().toLowerCase()}function nfe(e){return Lv(e)}function rfe(e,t){const n=Lv(e.name),r=e.email?Lv(e.email):"";return t.length===0?6:n===t?0:n.startsWith(t)?1:r===t?2:r.startsWith(t)?3:n.includes(t)?4:r.includes(t)?5:null}function ofe(e,t){const n=nfe(t),r=e.map(o=>({contact:o,rank:rfe(o,n)})).filter(o=>o.rank!==null);return r.sort((o,i)=>{if(o.rank!==i.rank)return o.rank-i.rank;const a=o.contact.name.localeCompare(i.contact.name,void 0,{sensitivity:"base"});return a!==0?a:(o.contact.email??"").localeCompare(i.contact.email??"",void 0,{sensitivity:"base"})}),r.map(o=>o.contact)}const ife=Object.values(xg).map(e=>({value:e,label:ly(e)})),afe=Object.values(p_).map(e=>({value:e,label:Vo(e)})),sfe=aee.map(e=>({value:e,label:k2[e]}));function x6(){const e=kme();return g.useMemo(()=>({raidDestination:dme,actionDestination:e.map(t=>({value:t.value,label:t.label})),impact:fme,raidType:ume,raidStatus:gme,actionStatus:ife,tags:mme,pbiTags:pme,raidMeetingTrigger:hme,actionMeetingTrigger:afe,disposition:yme,provenanceChannel:sfe}),[e])}const lfe={potentialImpact:e=>$S(e),type:e=>MS(e),status:e=>jE(e),excludeStatus:e=>jE(e),tags:e=>zF(e),pbiTags:e=>UF(e),disposition:e=>bme(e),provenanceChannels:e=>k2[e]??Vo(e)};function _6(e,t,n){return t==="destination"?e==="raidEntry"?jS(n):Vo(n):t==="status"&&e==="actionItem"?ly(n):lfe[t]?.(n)??Vo(n)}function Ru(e){return new Date(`${e}T00:00:00`).toLocaleDateString("en-US",{month:"short",day:"numeric"})}const KE=2,GE=(e,t)=>{const n=t.slice(0,KE).join(", "),r=t.length-KE;return`${e}: ${n}${r>0?` +${r}`:""}`};function cfe(e,t,n){const r=QL(e),o=[];for(const i of t)if(Og(i,r))if(i.kind==="multi")o.push(GE(i.chipLabel,r[i.key].map(a=>_6(e.entityType,i.key,a))));else if(i.kind==="people")o.push(GE(i.chipLabel,r[i.key].map(n)));else if(i.kind==="tristate")o.push(`${i.chipLabel}: ${r[i.key]?"Yes":"No"}`);else{const{dueDateFrom:a,dueDateTo:s}=r,l=a&&s?`${Ru(a)} – ${Ru(s)}`:a?`from ${Ru(a)}`:`until ${Ru(s)}`;o.push(`${i.chipLabel}: ${l}`)}return o}const ufe=400;function dfe(e,t,n){const r=Hi(),o=Bi(),i=g.useMemo(()=>({entityType:e,filters:t}),[e,t]),[a,s]=g.useState(i);g.useEffect(()=>{const p=setTimeout(()=>s(i),ufe);return()=>clearTimeout(p)},[i]);const l=g.useMemo(()=>a.entityType==="raidEntry"?BI(a.filters):HI(a.filters),[a]),c=Object.values(l).some(p=>p!==void 0),h=Ae({queryKey:["follow-rules","preview",a.entityType,l],enabled:n&&c,placeholderData:Ad,staleTime:3e4,queryFn:async()=>
100{if(a.entityType==="raidEntry"){const f=await r.find({...BI(a.filters),pageSize:lv});return{count:f.items.length,truncated:f.hasNextPage,items:f.items.map(b=>({id:b.id,title:b.title?.trim()||"Untitled",dueDate:b.dueDate,potentialImpact:b.potentialImpact,raidType:b.type}))}}const p=await o.find({...HI(a.filters),pageSize:lv});return{count:p.items.length,truncated:p.hasNextPage,items:p.items.map(f=>({id:f.id,title:f.taskName?.trim()||"Untitled",dueDate:f.dueDate,potentialImpact:null,raidType:null}))}}}),d=a===i&&!h.isPlaceholderData&&!h.isFetching;return{query:h,pending:n&&!d}}const Kb=5;function hfe({entityType:e,filters:t,hasFilters:n,rejected:r}){const o=n&&!r,{query:i,pending:a}=dfe(e,t,o),s=i.data;return u.jsxs("div",{className:"rounded-xl border bg-muted/20 p-3",children:[u.jsxs("div",{className:"flex items-center justify-between gap-3",children:[u.jsx("div",{className:"text-sm font-medium",children:"Would match now"}),a?u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin text-muted-foreground"}):u.jsx("div",{className:"text-sm tabular-nums text-muted-foreground",children:o?i.isError?"Couldn’t check":s?`${String(s.count)}${s.truncated?"+":""}`:"—":"—"})]}),u.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:o?"Existing items are not followed retroactively — a rule only picks up changes from now on.":"Pick a filter to see what this would match."}),o&&s&&s.items.length>0?u.jsxs("ul",{className:"mt-2.5 space-y-1",children:[s.items.slice(0,Kb).map(l=>u.jsxs("li",{className:"flex items-baseline justify-between gap-3 text-xs",children:[u.jsx("span",{className:"truncate",children:l.title}),l.dueDate?u.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:Ru(l.dueDate)}):null]},l.id)),s.count>Kb?u.jsxs("li",{className:"text-xs text-muted-foreground",children:["+",s.count-Kb," more"]}):null]}):null]})}const S6={all:["follow-rules"],list:()=>["follow-rules","list"]};function mfe(){const e=Lg();return Ae({queryKey:S6.list(),queryFn:()=>e.list(),staleTime:3e4})}function BS(){const e=ge();return()=>{e.invalidateQueries({queryKey:S6.all}),Oc(e)}}function pfe(){const e=Lg(),t=BS();return pe({mutationFn:n=>e.create(n),onSuccess:t})}function T6(){const e=Lg(),t=BS();return pe({mutationFn:({id:n,patch:r})=>e.update(n,r),onSuccess:t})}function ffe(){const e=Lg(),t=BS();return pe({mutationFn:n=>e.remove(n),onSuccess:t})}const gfe=()=>({name:"",entityType:"raidEntry",filters:ZL,enabled:!0}),yfe=e=>({name:e.name,entityType:e.entityType,filters:QL(e),enabled:e.enabled}),YE=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&!(Array.isArray(t)&&t.length===0))),bfe=(e,t)=>e.name.trim()===t.name.trim()&&e.enabled===t.enabled&&JSON.stringify(YE(e.filters))===JSON.stringify(YE(t.filters));function wfe(e){const t=()=>e?yfe(e):gfe(),[n,r]=g.useState(t),[o,i]=g.useState(t),a=g.useCallback(h=>{r(d=>({...d,...h}))},[]),s=g.useCallback((h,d)=>{r(p=>({...p,filters:{...p.filters,[h]:d}}))},[]),l=g.useCallback(h=>{r(d=>d.entityType===h?d:{...d,entityType:h,filters:ZL})},[]),c=g.useCallback(()=>{i(n)},[n]);return{draft:n,update:a,setFilter:s,setEntityType:l,markSaved:c,isDirty:!bfe(n,o)}}const vfe="Rule not saved",kfe="This rule would only match items outside your access. Widen the filters or pick a destination you can see.",xfe="Pick at least one filter. A rule with no filters can’t be saved.",_fe=["raidEntry","actionItem"];function Sfe({open:e,onOpenChange:t,rule:n,followedCount:r}){const o=n!==void 0,i=x6(),a=pfe(),s=T6(),l=ffe(),{draft:c,update:h,setFilter:d,setEntityType:p,markSaved:f,isDirty:b}=wfe(n),[y,w]=g.useState(null),[k,x]=g.useState(null),[S,I]=g.useState(""),E=die(),C=g.useMemo(()=>ofe(E.data??[],S.trim()),[E.data,S]),{contactsMap:$}=DS(),T=g.useMemo(()=>JL(c.entityType,i),[c.entityType,i]),P=dee(c.filters,T),D=c.name.trim().length>0&&P,H=a.isPending||s.isPending,z=(_,ne)=>{w(null),d(_,ne)},V=()=>{x(null),t(!1)},J=_=>{if(!_){if(b&&k===null){x("discard");return}V()}},F=()=>{if(!D||H)return;w(null);const _=hee(c.filters,T),ne=A=>{if(A.message.includes(pee)){w(A.message);return}rt.error(A.message||"Couldn’t save this rule")},U=()=>{f(),V()};
100n?s.mutate({id:n.id,patch:{name:c.name.trim(),enabled:c.enabled,filters:_}},{onError:ne,onSuccess:U}):a.mutate({name:c.name.trim(),entityType:c.entityType,filters:_},{onError:ne,onSuccess:U})},G=()=>{n&&l.mutate(n.id,{onSuccess:V,onError:_=>rt.error(_.message||"Couldn’t delete this rule")})},Y=_=>$.get(_)?.name??"Unknown person",le=_=>{if(_.kind==="people"){const ne=c.filters[_.key];return ne.length===0?"Any":ne.length===1?Y(ne[0]):`${Y(ne[0])} +${ne.length-1}`}return"Any"},W=_=>{if(_.kind==="multi")return u.jsx(Gpe,{options:_.options,values:c.filters[_.key],onChange:ne=>z(_.key,ne),placeholder:"Any"});if(_.kind==="people")return u.jsx(Kpe,{options:C,values:c.filters[_.key],onValuesChange:ne=>z(_.key,ne),placeholder:le(_),searchPlaceholder:"Search people...",emptyText:E.isLoading?"Loading people...":"No person found.",searchValue:S,onSearchValueChange:I,maxDisplay:2});if(_.kind==="tristate"){const ne=c.filters[_.key];return u.jsxs(yo,{value:ne===null?"any":ne?"yes":"no",onValueChange:U=>z(_.key,U==="any"?null:U==="yes"),children:[u.jsx(wo,{className:"h-8 w-full bg-surface text-xs",children:u.jsx(bo,{})}),u.jsxs(vo,{children:[u.jsx(dn,{value:"any",className:"text-xs",children:"Any"}),u.jsx(dn,{value:"yes",className:"text-xs",children:"Yes"}),u.jsx(dn,{value:"no",className:"text-xs",children:"No"})]})]})}return u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(Er,{type:"date",className:"h-8 bg-surface text-xs",value:c.filters.dueDateFrom??"",onChange:ne=>z("dueDateFrom",ne.target.value||null),"aria-label":"Due from"}),u.jsx("span",{className:"text-xs text-muted-foreground",children:"–"}),u.jsx(Er,{type:"date",className:"h-8 bg-surface text-xs",value:c.filters.dueDateTo??"",onChange:ne=>z("dueDateTo",ne.target.value||null),"aria-label":"Due until"})]})};return u.jsx(za,{open:e,onOpenChange:J,children:u.jsxs(Ua,{className:"max-h-[88vh] gap-0 overflow-y-auto sm:max-w-2xl",children:[u.jsxs(Zs,{children:[u.jsx(Fa,{children:o?"Edit rule":"New rule"}),u.jsx(jc,{children:"A rule follows matching items as they change, from now on. Matches are picked up about once an hour."})]}),y?u.jsxs("div",{role:"alert",className:"mt-3 flex items-start gap-2.5 rounded-lg border border-destructive/25 bg-destructive/5 p-3",children:[u.jsx(cd,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-sm font-medium",children:vfe}),u.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:kfe})]})]}):null,u.jsxs("div",{className:"mt-4 space-y-4",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("div",{className:"text-sm font-medium",children:"Name"}),u.jsx(Er,{value:c.name,maxLength:mee,onChange:_=>h({name:_.target.value}),placeholder:"e.g. High-impact risks on my logs"})]}),u.jsxs("div",{className:"flex items-center justify-between gap-4",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-sm font-medium",children:"Follows"}),u.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:o?"Entity type is fixed once a rule exists.":"Can’t be changed after the rule is created."})]}),o?u.jsx("div",{className:"text-sm text-muted-foreground",children:gv[c.entityType]}):u.jsx(v6,{type:"single",value:c.entityType,onValueChange:_=>_&&p(_),variant:"outline",size:"sm",children:_fe.map(_=>u.jsx(k6,{value:_,className:"text-xs",children:gv[_]},_))})]}),o?u.jsxs("div",{className:"flex items-center justify-between gap-4",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-sm font-medium",children:"Enabled"}),u.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Paused rules stop adding items; items they already follow stay."})]}),u.jsx(Ds,{checked:c.enabled,onCheckedChange:_=>h({enabled:_}),"aria-label":"Enabled"})]}):null,u.jsxs("div",{className:"space-y-2",children:[u.jsx("div",{className:"text-sm font-medium",children:"Filters"}),u.jsx("div",{className:"divide-y rounded-xl border bg-muted/20",children:T.map(_=>{const ne=Og(_,c.filters),U=y!==null&&ne&&fee[c.entityType].has(_.key);return u.jsxs("div",{className:X("flex items-center justify-between gap-4 px-3 py-2",U&&"bg-destructive/5"),children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:X("text-sm",U&&"text-destructive"),children:_.label}),_.kind==="multi"&&ne?u.jsx("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:c.filters[_.key].map(A=>_6(c.entityType,_.key,A)).join(", ")}):null,_.kind==="tristate"?u.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:uee}):null]}),u.jsx("div",{className:"w-[230px] shrink-0",children:W(_)})]},_.key)})}),u.jsx("p",{className:"text-xs text-muted-foreground",children:xfe})]}),u.jsx(hfe,{entityType:c.entityType,filters:c.filters,hasFilters:P,rejected:y!==null})]}),k==="delete"?u.jsxs("div",{className:"mt-4 rounded-lg border border-destructive/25 bg-destructive/5 p-3",children:[u.jsxs("div",{className:"text-sm font-medium",children:["Delete “",n?.name,"”?"]}
100),u.jsxs("p",{className:"mt-0.5 text-xs text-muted-foreground",children:["The ",r," item",r===1?"":"s"," this rule follows will be unfollowed, except any that another one of your rules still matches. This can’t be undone."]}),u.jsxs("div",{className:"mt-2.5 flex justify-end gap-2",children:[u.jsx(Ve,{variant:"ghost",size:"sm",onClick:()=>x(null),children:"Keep rule"}),u.jsx(Ve,{variant:"destructive",size:"sm",disabled:l.isPending,onClick:G,children:"Delete"})]})]}):null,k==="discard"?u.jsxs("div",{className:"mt-4 rounded-lg border bg-muted/40 p-3",children:[u.jsx("div",{className:"text-sm font-medium",children:"Discard changes?"}),u.jsxs("div",{className:"mt-2.5 flex justify-end gap-2",children:[u.jsx(Ve,{variant:"ghost",size:"sm",onClick:()=>x(null),children:"Keep editing"}),u.jsx(Ve,{variant:"destructive",size:"sm",onClick:V,children:"Discard"})]})]}):null,u.jsxs(_h,{className:"mt-5 sm:justify-between",children:[o?u.jsxs(Ve,{variant:"ghost",className:"text-destructive hover:text-destructive",disabled:l.isPending,onClick:()=>x("delete"),children:[u.jsx(G$,{className:"mr-1.5 h-4 w-4"}),"Delete rule"]}):u.jsx("span",{}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(Ve,{variant:"outline",onClick:()=>J(!1),children:"Cancel"}),u.jsxs(Ve,{disabled:!D||H,onClick:F,children:[H?u.jsx(Ht,{className:"mr-1.5 h-4 w-4 animate-spin"}):null,"Save"]})]})]})]})})}const Tfe="A rule follows matching items as they change, from now on. Rules check for new matches about once an hour. Paused rules stop adding items; items they already follow stay.";function Ife(){const e=mfe(),t=Sie(),{contactsMap:n}=DS(),r=x6(),o=T6(),[i,a]=g.useState(null),s=e.data?.items??[],l=s.length>=bb,c=g.useMemo(()=>{const p=new Map;for(const f of t.data?.items??[])f.ruleId&&p.set(f.ruleId,(p.get(f.ruleId)??0)+1);return p},[t.data]),h=i?.kind==="edit"?s.find(p=>p.id===i.id):void 0,d=(p,f)=>{o.mutate({id:p.id,patch:{enabled:f}},{onError:b=>rt.error(b.message||"Couldn’t update this rule")})};return u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("h3",{className:"text-sm font-medium",children:"Follow rules"}),u.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Follow a saved filter instead of one item at a time — every RAID log or action item that matches gets followed for you."})]}),u.jsxs(Ve,{size:"sm",disabled:l,onClick:()=>a({kind:"new"}),children:[u.jsx(dd,{className:"mr-1.5 h-4 w-4"}),"New rule"]})]}),l?u.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-destructive/25 bg-destructive/5 p-3",children:[u.jsx(cd,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),u.jsxs("p",{className:"text-xs",children:["You’ve reached the limit of ",bb," rules. Delete or edit an existing rule to add a new one."]})]}):null,e.isLoading?u.jsx("div",{className:"rounded-xl border bg-muted/20 p-4 text-xs text-muted-foreground",children:"Loading your rules…"}):e.isError?u.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border bg-muted/20 p-4",children:[u.jsx("p",{className:"text-xs",children:"Couldn’t load your rules."}),u.jsx(Ve,{variant:"outline",size:"sm",onClick:()=>{e.refetch()},children:"Retry"})]}):s.length===0?u.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-xl border bg-muted/20 px-6 py-8 text-center",children:[u.jsx(WY,{className:"h-6 w-6 text-muted-foreground"}),u.jsx("div",{className:"text-sm font-medium",children:"No rules yet"}),u.jsx("p",{className:"max-w-sm text-xs text-muted-foreground",children:"A rule follows every RAID entry or action item that matches its filters, from now on."}),u.jsxs(Ve,{size:"sm",className:"mt-1",onClick:()=>a({kind:"new"}),children:[u.jsx(dd,{className:"mr-1.5 h-4 w-4"}),"New rule"]})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:[s.length," of ",bb," rules"]}),u.jsx("div",{className:"divide-y rounded-xl border bg-muted/20",children:s.map(p=>{const f=cfe(p,JL(p.entityType,r),y=>n.get(y)?.name??"Unknown person"),b=c.get(p.id)??0;return u.jsxs("div",{className:"flex items-start justify-between gap-4 p-3",children:[u.jsx("button",{type:"button",className:"min-w-0 flex-1 text-left",onClick:()=>a({kind:"edit",id:p.id}),children:u.jsxs("div",{className:p.enabled?void 0:"opacity-60",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"truncate text-sm font-medium",children:p.name}),u.jsx(vd,{variant:"secondary",className:"shrink-0 text-[10px]",children:gv[p.entityType]})]}),f.length>0?u.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1",children:f.map(y=>u.jsx("span",{className:"rounded-full bg-muted px-2 py-0.5 text-[11px]",children:y},y))}):null,u.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:p.enabled?`Following ${String(b)} item${b===1?"":"s"}`:"Paused"})]})}),u.jsx(Ds,{checked:p.enabled,disabled:o.isPending,onCheckedChange:y=>
100d(p,y),"aria-label":`${p.name} enabled`})]},p.id)})})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:Tfe}),i?.kind==="new"||h?u.jsx(Sfe,{open:!0,onOpenChange:p=>!p&&a(null),rule:h,followedCount:h?c.get(h.id)??0:0},h?h.id:"new"):null]})}const Efe=e=>{const{data:t}=Cn();return t?.capabilities.includes(e)===!0},Ph=["automations"],Afe=()=>{const e=ch(),t=Efe("automations.use");return Ae({queryKey:Ph,queryFn:()=>e.list(),staleTime:3e4,enabled:t})},Cfe=()=>{const e=ch(),t=ge();return pe({mutationFn:n=>e.create(n),onError:n=>{if(n instanceof Kr&&n.status===409){rt.info("You already have this automation");return}if(n instanceof Kr&&n.status===400){rt.error(n.message);return}rt.error("Couldn't set up that automation")},onSettled:()=>t.invalidateQueries({queryKey:Ph})})},Nfe=()=>{const e=ch(),t=ge();return pe({mutationFn:({automationId:n,status:r})=>e.updateStatus(n,{status:r}),onError:()=>rt.error("Couldn't update that automation"),onSettled:()=>t.invalidateQueries({queryKey:Ph})})},Pfe=()=>{const e=ch(),t=ge();return pe({mutationFn:n=>e.remove(n),onError:()=>rt.error("Couldn't remove that automation"),onSettled:()=>t.invalidateQueries({queryKey:Ph})})},B$e=e=>{const t=ch();return Ae({queryKey:[...Ph,e,"brief"],queryFn:()=>t.getBrief(e)})};var zv=["MO","TU","WE","TH","FR","SA","SU"],mr=(function(){function e(t,n){if(n===0)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=n}return e.fromStr=function(t){return new e(zv.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},e.prototype.toString=function(){var t=zv[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},e.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},e})(),pn=function(e){return e!=null},ii=function(e){return typeof e=="number"},ZE=function(e){return typeof e=="string"&&zv.includes(e)},Hr=Array.isArray,bi=function(e,t){t===void 0&&(t=e),arguments.length===1&&(t=e,e=0);for(var n=[],r=e;r<t;r++)n.push(r);return n},kt=function(e,t){var n=0,r=[];if(Hr(e))for(;n<t;n++)r[n]=[].concat(e);else for(;n<t;n++)r[n]=e;return r},Dfe=function(e){return Hr(e)?e:[e]};function bl(e,t,n){n===void 0&&(n=" ");var r=String(e);return t=t>>0,r.length>t?String(r):(t=t-r.length,t>n.length&&(n+=kt(n,t/n.length)),n.slice(0,t)+String(r))}var Ofe=function(e,t,n){var r=e.split(t);return n?r.slice(0,n).concat([r.slice(n).join(t)]):r},io=function(e,t){var n=e%t;return n*t<0?n+t:n},Gb=function(e,t){return{div:Math.floor(e/t),mod:io(e,t)}},si=function(e){return!pn(e)||e.length===0},Mn=function(e){return!si(e)},Dt=function(e,t){return Mn(e)&&e.indexOf(t)!==-1},Os=function(e,t,n,r,o,i){return r===void 0&&(r=0),o===void 0&&(o=0),i===void 0&&(i=0),new Date(Date.UTC(e,t-1,n,r,o,i))},Rfe=[31,28,31,30,31,30,31,31,30,31,30,31],I6=1e3*60*60*24,E6=9999,A6=Os(1970,1,1),Mfe=[6,0,1,2,3,4,5],Gu=function(e){return e%4===0&&e%100!==0||e%400===0},C6=function(e){return e instanceof Date},Mu=function(e){return C6(e)&&!isNaN(e.getTime())},jfe=function(e,t){var n=e.getTime(),r=t.getTime(),o=n-r;return Math.round(o/I6)},Uv=function(e){return jfe(e,A6)},N6=function(e){return new Date(A6.getTime()+e*I6)},$fe=function(e){var t=e.getUTCMonth();return t===1&&Gu(e.getUTCFullYear())?29:Rfe[t]},yc=function(e){return Mfe[e.getUTCDay()]},JE=function(e,t){var n=Os(e,t+1,1);return[yc(n),$fe(n)]},P6=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},Fv=function(e){var t=new Date(e.getTime());return t},QE=function(e){for(var t=[],n=0;n<e.length;n++)t.push(Fv(e[n]));return t},kd=function(e){e.sort(function(t,n){return t.getTime()-n.getTime()})},HS=function(e,t){t===void 0&&(t=!0);var n=new Date(e);return[bl(n.getUTCFullYear().toString(),4,"0"),bl(n.getUTCMonth()+1,2,"0"),bl(n.getUTCDate(),2,"0"),"T",bl(n.getUTCHours(),2,"0"),bl(n.getUTCMinutes(),2,"0"),bl(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},qS=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,n=t.exec(e);if(!n)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[5],10)||0,parseInt(n[6],10)||0,parseInt(n[7],10)||0))}
100,XE=function(e,t){var n=e.toLocaleString("sv-SE",{timeZone:t});return n.replace(" ","T")+"Z"},Lfe=function(e,t){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(XE(e,n)),o=new Date(XE(e,t??"UTC")),i=o.getTime()-r.getTime();return new Date(e.getTime()-i)},Ml=(function(){function e(t,n){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=n,t==="between"?(this.maxDate=n.inc?n.before:new Date(n.before.getTime()-1),this.minDate=n.inc?n.after:new Date(n.after.getTime()+1)):t==="before"?this.maxDate=n.inc?n.dt:new Date(n.dt.getTime()-1):t==="after"&&(this.minDate=n.inc?n.dt:new Date(n.dt.getTime()+1))}return e.prototype.accept=function(t){++this.total;var n=this.minDate&&t<this.minDate,r=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(n)return!0;if(r)return!1}else if(this.method==="before"){if(r)return!1}else if(this.method==="after")return n?!0:(this.add(t),!1);return this.add(t)},e.prototype.add=function(t){return this._result.push(t),!0},e.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;default:return t.length?t[t.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e})(),eA=(function(e){cS(t,e);function t(n,r,o){var i=e.call(this,n,r)||this;return i.iterator=o,i}return t.prototype.add=function(n){return this.iterator(n,this._result.length)?(this._result.push(n),!0):!1},t})(Ml),Vp={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},tA=function(e,t){return e.indexOf(t)!==-1},zfe=function(e){return e.toString()},Ufe=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},Ki=(function(){function e(t,n,r,o){if(n===void 0&&(n=zfe),r===void 0&&(r=Vp),o===void 0&&(o=Ufe),this.text=[],this.language=r||Vp,this.gettext=n,this.dateFormatter=o,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);i.sort(function(h,d){return h-d}),a.sort(function(h,d){return d-h}),this.bymonthday=i.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(pn(this.origOptions.byweekday)){var s=Hr(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(s);this.byweekday={allWeeks:s.filter(function(h){return!h.n}),someWeeks:s.filter(function(h){return!!h.n}),isWeekdays:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")===-1&&l.indexOf("SU")===-1,isEveryDay:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")!==-1&&l.indexOf("SU")!==-1};var c=function(h,d){return h.weekday-d.weekday};this.byweekday.allWeeks.sort(c),this.byweekday.someWeeks.sort(c),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){var n=!0;
100if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var r in t.origOptions){if(tA(["dtstart","tzid","wkst","freq"],r))return!0;if(!tA(e.IMPLEMENTED[t.options.freq],r))return!1}return n},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[Le.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},e.prototype.MINUTELY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},e.prototype.DAILY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(this.options.interval===1&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},e.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},e.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},e.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(t){t=parseInt(t.toString(),10);var n,r=this.gettext;if(t===-1)return r("last");var o=Math.abs(t);switch(o){case 1:case 21:case 31:n=o+r("st");break;case 2:case 22:n=o+r("nd");break;case 3:case 23:n=o+r("rd");break;default:n=o+r("th")}return t<0?n+" "+r("last"):n},e.prototype.monthtext=function(t){return this.language.monthNames[t-1]},e.prototype.weekdaytext=function(t){var n=ii(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[n]},e.prototype.plural=function(t){return t%100!==1},e.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},e.prototype.list=function(t,n,r,o){var i=this;o===void 0&&(o=","),Hr(t)||(t=[t]);var a=function(l,c,h){for(var d="",p=0;p<l.length;p++)p!==0&&(p===l.length-1?d+=" "+h+" ":d+=c+" "),d+=l[p];return d};n=n||function(l){return l.toString()};var s=function(l){return n&&n.call(i,l)};return r?a(t.map(s),o,r):t.map(s).join(o+" ")},e})(),Ffe=(function(){function e(t){this.done=!0,this.rules=t}return e.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&this.symbol===null},e.prototype.nextSymbol=function(){var t,n;this.symbol=null,this.value=null;do{if(this.done)return!1;var r=void 0;t=null;for(var o in this.rules){r=this.rules[o];var i=r.exec(this.text);i&&(t===null||i[0].length>t[0].length)&&(t=i,n=o)}if(t!=null&&(this.text=this.text.substr(t[0].length),this.text===""&&(this.done=!0)),t==null){this.done=!0,this.symbol=null,this.value=null;return}}while(n==="SKIP");return this.symbol=n,this.value=t,!0},e.prototype.accept=function(t){if(this.symbol===t){if(this.value){var n=this.value;return this.nextSymbol(),n}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},e})();function D6(e,t){t===void 0&&(t=Vp);var n={},r=new Ffe(t.tokens);if(!r.start(e))return null;return o(),n;function o(){r.expect("every");var p=r.acceptNumber();if(p&&(n.interval=parseInt(p[0],10)),r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=Le.DAILY,r.nextSymbol()&&(a(),d());break;
100case"weekday(s)":n.freq=Le.WEEKLY,n.byweekday=[Le.MO,Le.TU,Le.WE,Le.TH,Le.FR],r.nextSymbol(),a(),d();break;case"week(s)":n.freq=Le.WEEKLY,r.nextSymbol()&&(i(),a(),d());break;case"hour(s)":n.freq=Le.HOURLY,r.nextSymbol()&&(i(),d());break;case"minute(s)":n.freq=Le.MINUTELY,r.nextSymbol()&&(i(),d());break;case"month(s)":n.freq=Le.MONTHLY,r.nextSymbol()&&(i(),d());break;case"year(s)":n.freq=Le.YEARLY,r.nextSymbol()&&(i(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=Le.WEEKLY;var f=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[Le[f]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var b=l();if(!b)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(Le[b]),r.nextSymbol()}a(),h(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=Le.YEARLY,n.bymonth=[s()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var y=s();if(!y)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(y),r.nextSymbol()}i(),d();break;default:throw new Error("Unknown symbol")}}function i(){var p=r.accept("on"),f=r.accept("the");if(p||f)do{var b=c(),y=l(),w=s();if(b)y?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Le[y].nth(b))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(b),r.accept("day(s)"));else if(y)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Le[y]);else if(r.symbol==="weekday(s)")r.nextSymbol(),n.byweekday||(n.byweekday=[Le.MO,Le.TU,Le.WE,Le.TH,Le.FR]);else if(r.symbol==="week(s)"){r.nextSymbol();var k=r.acceptNumber();if(!k)throw new Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(k[0],10)];r.accept("comma");){if(k=r.acceptNumber(),!k)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(k[0],10))}}else if(w)r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(w);else return}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function a(){var p=r.accept("at");if(p)do{var f=r.acceptNumber();if(!f)throw new Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(f[0],10)];r.accept("comma");){if(f=r.acceptNumber(),!f)throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(f[0],10))}}while(r.accept("comma")||r.accept("at"))}function s(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function l(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function c(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var p=parseInt(r.value[1],10);if(p<-366||p>366)throw new Error("Nth out of range: "+p);return r.nextSymbol(),r.accept("last")?-p:p;default:return!1}}function h(){r.accept("on"),r.accept("the");var p=c();if(p)for(n.bymonthday=[p],r.nextSymbol();r.accept("comma");){if(p=c(),!p)throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(p),r.nextSymbol()}}function d(){if(r.symbol==="until"){var p=Date.parse(r.text);if(!p)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(p)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}var xt;(function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"})(xt||(xt={}));function VS(e){return e<xt.HOURLY}var Wfe=function(e,t){return t===void 0&&(t=Vp),new Le(D6(e,t)||void 0)},Uc=["count","until","interval","byweekday","bymonthday","bymonth"];
100Ki.IMPLEMENTED=[];Ki.IMPLEMENTED[xt.HOURLY]=Uc;Ki.IMPLEMENTED[xt.MINUTELY]=Uc;Ki.IMPLEMENTED[xt.DAILY]=["byhour"].concat(Uc);Ki.IMPLEMENTED[xt.WEEKLY]=Uc;Ki.IMPLEMENTED[xt.MONTHLY]=Uc;Ki.IMPLEMENTED[xt.YEARLY]=["byweekno","byyearday"].concat(Uc);var Bfe=function(e,t,n,r){return new Ki(e,t,n,r).toString()},Hfe=Ki.isFullyConvertible,Kp=(function(){function e(t,n,r,o){this.hour=t,this.minute=n,this.second=r,this.millisecond=o||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},e})(),qfe=(function(e){cS(t,e);function t(n,r,o,i,a,s,l){var c=e.call(this,i,a,s,l)||this;return c.year=n,c.month=r,c.day=o,c}return t.fromDate=function(n){return new this(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.valueOf()%1e3)},t.prototype.getWeekday=function(){return yc(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(n){this.year+=n},t.prototype.addMonths=function(n){if(this.month+=n,this.month>12){var r=Math.floor(this.month/12),o=io(this.month,12);this.month=o,this.year+=r,this.month===0&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(n,r){r>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-r))+n*7:this.day+=-(this.getWeekday()-r)+n*7,this.fixDay()},t.prototype.addDaily=function(n){this.day+=n,this.fixDay()},t.prototype.addHours=function(n,r,o){for(r&&(this.hour+=Math.floor((23-this.hour)/n)*n);;){this.hour+=n;var i=Gb(this.hour,24),a=i.div,s=i.mod;if(a&&(this.hour=s,this.addDaily(a)),si(o)||Dt(o,this.hour))break}},t.prototype.addMinutes=function(n,r,o,i){for(r&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/n)*n);;){this.minute+=n;var a=Gb(this.minute,60),s=a.div,l=a.mod;if(s&&(this.minute=l,this.addHours(s,!1,o)),(si(o)||Dt(o,this.hour))&&(si(i)||Dt(i,this.minute)))break}},t.prototype.addSeconds=function(n,r,o,i,a){for(r&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/n)*n);;){this.second+=n;var s=Gb(this.second,60),l=s.div,c=s.mod;if(l&&(this.second=c,this.addMinutes(l,!1,o,i)),(si(o)||Dt(o,this.hour))&&(si(i)||Dt(i,this.minute))&&(si(a)||Dt(a,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var n=JE(this.year,this.month-1)[1];if(!(this.day<=n))for(;this.day>n;){if(this.day-=n,++this.month,this.month===13&&(this.month=1,++this.year,this.year>E6))return;n=JE(this.year,this.month-1)[1]}}},t.prototype.add=function(n,r){var o=n.freq,i=n.interval,a=n.wkst,s=n.byhour,l=n.byminute,c=n.bysecond;switch(o){case xt.YEARLY:return this.addYears(i);case xt.MONTHLY:return this.addMonths(i);case xt.WEEKLY:return this.addWeekly(i,a);case xt.DAILY:return this.addDaily(i);case xt.HOURLY:return this.addHours(i,r,s);case xt.MINUTELY:return this.addMinutes(i,r,s,l);case xt.SECONDLY:return this.addSeconds(i,r,s,l,c)}},t})(Kp);function O6(e){for(var t=[],n=Object.keys(e),r=0,o=n;r<o.length;r++){var i=o[r];Dt(kge,i)||t.push(i),C6(e[i])&&!Mu(e[i])&&t.push(i)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return sn({},e)}function Vfe(e){var t=sn(sn({},KS),O6(e));if(pn(t.byeaster)&&(t.freq=Le.YEARLY),!(pn(t.freq)&&Le.FREQUENCIES[t.freq]))throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),pn(t.wkst)?ii(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=Le.MO.weekday,pn(t.bysetpos)){ii(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){var r=t.bysetpos[n];if(r===0||!(r>=-366&&r<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||Mn(t.byweekno)||Mn(t.byyearday)||t.bymonthday||Mn(t.bymonthday)||pn(t.byweekday)||pn(t.byeaster)))switch(t.freq){case Le.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case Le.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case Le.WEEKLY:t.byweekday=[yc(t.dtstart)];break}if(pn(t.bymonth)&&!Hr(t.bymonth)&&(t.bymonth=[t.bymonth]),pn(t.byyearday)&&!Hr(t.byyearday)&&ii(t.byyearday)&&(t.byyearday=[t.byyearday]),!pn(t.bymonthday))t.bymonthday=[],t.bynmonthday=[];else if(Hr(t.bymonthday)){for(var o=[],i=[],n=0;n<t.bymonthday.length;n++){var r=t.bymonthday[n];r>0?o.push(r):r<0&&i.push(r)}t.bymonthday=o,t.bynmonthday=i}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);if(pn(t.byweekno)&&!Hr(t.byweekno)&&(t.byweekno=[t.byweekno]),!pn(t.byweekday))t.bynweekday=null;else if(ii(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(ZE(t.byweekday))t.byweekday=[mr.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof mr)!t.byweekday.n||t.freq>Le.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var a=[],s=[],n=0;n<t.byweekday.length;n++){var l=t.byweekday[n];if(ii(l)){a.push(l);continue}else if(ZE(l)){a.push(mr.fromStr(l).weekday);continue}!l.n||t.freq>Le.MONTHLY?a.push(l.weekday):s.push([l.weekday,l.n])}t.byweekday=Mn(a)?a:null,t.bynweekday=Mn(s)?s:null}return pn(t.byhour)?ii(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<Le.HOURLY?[t.dtstart.getUTCHours()]:null,pn(t.byminute)?ii(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<Le.MINUTELY?[t.dtstart.getUTCMinutes()]:null,pn(t.bysecond)?ii(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<Le.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function Kfe(e){var t=e.dtstart.getTime()%1e3;if(!VS(e.freq))return[];var n=[];return e.byhour.forEach(function(r){e.byminute.forEach(function(o){e.bysecond.forEac
100h(function(i){n.push(new Kp(r,o,i,t))})})}),n}function Wv(e){var t=e.split(`
101`).map(Gfe).filter(function(n){return n!==null});return sn(sn({},t[0]),t[1])}function Gp(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var r=n[1],o=n[2];return r&&(t.tzid=r),t.dtstart=qS(o),t}function Gfe(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return nA(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return nA(e);case"DTSTART":return Gp(e);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function nA(e){var t=e.replace(/^RRULE:/i,""),n=Gp(t),r=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return r.forEach(function(o){var i=o.split("="),a=i[0],s=i[1];switch(a.toUpperCase()){case"FREQ":n.freq=xt[s.toUpperCase()];break;case"WKST":n.wkst=jo[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=Yfe(s),c=a.toLowerCase();n[c]=l;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=Zfe(s);break;case"DTSTART":case"TZID":var h=Gp(e);n.tzid=h.tzid,n.dtstart=h.dtstart;break;case"UNTIL":n.until=qS(s);break;case"BYEASTER":n.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+a+"'")}}),n}function Yfe(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(rA)}return rA(e)}function rA(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function Zfe(e){var t=e.split(",");return t.map(function(n){if(n.length===2)return jo[n];var r=n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!r||r.length<3)throw new SyntaxError("Invalid weekday string: ".concat(n));var o=Number(r[1]),i=r[2],a=jo[i].weekday;return new mr(a,o)})}var Yp=(function(){function e(t,n){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=n}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=HS(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:Lfe(this.date,this.tzid)},e})();function Bv(e){for(var t=[],n="",r=Object.keys(e),o=Object.keys(KS),i=0;i<r.length;i++)if(r[i]!=="tzid"&&Dt(o,r[i])){var a=r[i].toUpperCase(),s=e[r[i]],l="";if(!(!pn(s)||Hr(s)&&!s.length)){switch(a){case"FREQ":l=Le.FREQUENCIES[e.freq];break;case"WKST":ii(s)?l=new mr(s).toString():l=s.toString();break;case"BYWEEKDAY":a="BYDAY",l=Dfe(s).map(function(f){return f instanceof mr?f:Hr(f)?new mr(f[0],f[1]):new mr(f)}).toString();break;case"DTSTART":n=Jfe(s,e.tzid);break;case"UNTIL":l=HS(s,!e.tzid);break;default:if(Hr(s)){for(var c=[],h=0;h<s.length;h++)c[h]=String(s[h]);l=c.toString()}else l=String(s)}l&&t.push([a,l])}}var d=t.map(function(f){var b=f[0],y=f[1];return"".concat(b,"=").concat(y.toString())}).join(";"),p="";return d!==""&&(p="RRULE:".concat(d)),[n,p].filter(function(f){return!!f}).join(`
102`)}function Jfe(e,t){return e?"DTSTART"+new Yp(new Date(e),t).toString():""}function Qfe(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(n,r){return n.getTime()===t[r].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var Xfe=(function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,n,r){n&&(n=n instanceof Date?Fv(n):QE(n)),t==="all"?this.all=n:(r._value=n,this[t].push(r))},e.prototype._cacheGet=function(t,n){var r=!1,o=n?Object.keys(n):[],i=function(h){for(var d=0;d<o.length;d++){var p=o[d];if(!Qfe(n[p],h[p]))return!0}return!1},a=this[t];if(t==="all")r=this.all;else if(Hr(a))for(var s=0;s<a.length;s++){var l=a[s];if(!(o.length&&i(l))){r=l._value;break}}if(!r&&this.all){for(var c=new Ml(t,n),s=0;s<this.all.length&&c.accept(this.all[s]);s++);r=c.getValue(),this._cacheAdd(t,r,n)}return Hr(r)?QE(r):r instanceof Date?Fv(r):r},e})(),ege=xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe([],kt(1,31),!0),kt(2,28),!0),kt(3,31),!0),kt(4,30),!0),kt(5,31),!0),kt(6,30),!0),kt(7,31),!0),kt(8,31),!0),kt(9,30),!0),kt(10,31),!0),kt(11,30),!0),kt(12,31),!0),kt(1,7),!0),tge=xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe([],kt(1,31),!0),kt(2,29),!0),kt(3,31),!0),kt(4,30),!0),kt(5,31),!0),kt(6,30),!0),kt(7,31),!0),kt(8,31),!0),kt(9,30),!0),kt(10,31),!0),kt(11,30),!0),kt(12,31),!0),kt(1,7),!0),nge=bi(1,29),rge=bi(1,30),ka=bi(1,31),Zn=bi(1,32),oge=xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe([],Zn,!0),rge,!0),Zn,!0),ka,!0),Zn,!0),ka,!0),Zn,!0),Zn,!0),ka,!0),Zn,!0),ka,!0),Zn,!0),Zn.slice(0,7),!0),ige=xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe([],Zn,!0),nge,!0),Zn,!0),ka,!0),Zn,!0),ka,!0),Zn,!0),Zn,!0),ka,!0),Zn,!0),ka,!0),Zn,!0),Zn.slice(0,7),!0),age=bi(-28,0),sge=bi(-29,0),xa=bi(-30,0),Jn=bi(-31,0),lge=xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe([],Jn,!0),sge,!0),Jn,!0),xa,!0),Jn,!0),xa,!0),Jn,!0),Jn,!0),xa,!0),Jn,!0),xa,!0),Jn,!0),Jn.slice(0,7),!0),cge=xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe(xe([],Jn,!0),age,!0),Jn,!0),xa,!0),Jn,!0),xa,!0),Jn,!0),Jn,!0),xa,!0),Jn,!0),xa,!0),Jn,!0),Jn.slice(0,7),!0),uge=[0,31,60,91,121,152,182,213,244,274,305,335,366],dge=[0,31,59,90,120,151,181,212,243,273,304,334,365],oA
102=(function(){for(var e=[],t=0;t<55;t++)e=e.concat(bi(7));return e})();function hge(e,t){var n=Os(e,1,1),r=Gu(e)?366:365,o=Gu(e+1)?366:365,i=Uv(n),a=yc(n),s=sn(sn({yearlen:r,nextyearlen:o,yearordinal:i,yearweekday:a},mge(e)),{wnomask:null});if(si(t.byweekno))return s;s.wnomask=kt(0,r+7);var l,c,h=l=io(7-a+t.wkst,7);h>=4?(h=0,c=s.yearlen+io(a-t.wkst,7)):c=r-h;for(var d=Math.floor(c/7),p=io(c,7),f=Math.floor(d+p/4),b=0;b<t.byweekno.length;b++){var y=t.byweekno[b];if(y<0&&(y+=f+1),y>0&&y<=f){var w=void 0;y>1?(w=h+(y-1)*7,h!==l&&(w-=7-l)):w=h;for(var k=0;k<7&&(s.wnomask[w]=1,w++,s.wdaymask[w]!==t.wkst);k++);}}if(Dt(t.byweekno,1)){var w=h+f*7;if(h!==l&&(w-=7-l),w<r)for(var b=0;b<7&&(s.wnomask[w]=1,w+=1,s.wdaymask[w]!==t.wkst);b++);}if(h){var x=void 0;if(Dt(t.byweekno,-1))x=-1;else{var S=yc(Os(e-1,1,1)),I=io(7-S.valueOf()+t.wkst,7),E=Gu(e-1)?366:365,C=void 0;I>=4?(I=0,C=E+io(S-t.wkst,7)):C=r-h,x=Math.floor(52+io(C,7)/4)}if(Dt(t.byweekno,x))for(var w=0;w<h;w++)s.wnomask[w]=1}return s}function mge(e){var t=Gu(e)?366:365,n=Os(e,1,1),r=yc(n);return t===365?{mmask:ege,mdaymask:ige,nmdaymask:cge,wdaymask:oA.slice(r),mrange:dge}:{mmask:tge,mdaymask:oge,nmdaymask:lge,wdaymask:oA.slice(r),mrange:uge}}function pge(e,t,n,r,o,i){var a={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(i.freq===Le.YEARLY)if(si(i.bymonth))s=[[0,n]];else for(var l=0;l<i.bymonth.length;l++)t=i.bymonth[l],s.push(r.slice(t-1,t+1));else i.freq===Le.MONTHLY&&(s=[r.slice(t-1,t+1)]);if(si(s))return a;a.nwdaymask=kt(0,n);for(var l=0;l<s.length;l++)for(var c=s[l],h=c[0],d=c[1]-1,p=0;p<i.bynweekday.length;p++){var f=void 0,b=i.bynweekday[p],y=b[0],w=b[1];w<0?(f=d+(w+1)*7,f-=io(o[f]-y,7)):(f=h+(w-1)*7,f+=io(7-o[f]+y,7)),h<=f&&f<=d&&(a.nwdaymask[f]=1)}return a}function fge(e,t){t===void 0&&(t=0);var n=e%19,r=Math.floor(e/100),o=e%100,i=Math.floor(r/4),a=r%4,s=Math.floor((r+8)/25),l=Math.floor((r-s+1)/3),c=Math.floor(19*n+r-i-l+15)%30,h=Math.floor(o/4),d=o%4,p=Math.floor(32+2*a+2*h-c-d)%7,f=Math.floor((n+11*c+22*p)/451),b=Math.floor((c+p-7*f+114)/31),y=(c+p-7*f+114)%31+1,w=Date.UTC(e,b-1,y+t),k=Date.UTC(e,0,1);return[Math.ceil((w-k)/(1e3*60*60*24))]}var gge=(function(){function e(t){this.options=t}return e.prototype.rebuild=function(t,n){var r=this.options;if(t!==this.lastyear&&(this.yearinfo=hge(t,r)),Mn(r.bynweekday)&&(n!==this.lastmonth||t!==this.lastyear)){var o=this.yearinfo,i=o.yearlen,a=o.mrange,s=o.wdaymask;this.monthinfo=pge(t,n,i,a,s,r)}pn(r.byeaster)&&(this.eastermask=fge(t,r.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[bi(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(t,n){for(var r=this.mrange[n-1],o=this.mrange[n],i=kt(null,this.yearlen),a=r;a<o;a++)i[a]=a;return[i,r,o]},e.prototype.wdayset=function(t,n,r){for(var o=kt(null,this.yearlen+7),i=Uv(Os(t,n,r))-this.yearordinal,a=i,s=0;s<7&&(o[i]=i,++i,this.wdaymask[i]!==this.options.wkst);s++);return[o,a,i]},e.prototype.ddayset=function(t,n,r){var o=kt(null,this.yearlen),i=Uv(Os(t,n,r))-this.yearordinal;return o[i]=i,[o,i,i+1]},e.prototype.htimeset=function(t,n,r,o){var i=this,a=[];return this.options.byminute.forEach(function(s){a=a.concat(i.mtimeset(t,s,r,o))}),kd(a),a},e.prototype.mtimeset=function(t,n,r,o){var i=this.options.bysecond.map(function(a){return new Kp(t,n,a,o)});return kd(i),i}
102,e.prototype.stimeset=function(t,n,r,o){return[new Kp(t,n,r,o)]},e.prototype.getdayset=function(t){switch(t){case xt.YEARLY:return this.ydayset.bind(this);case xt.MONTHLY:return this.mdayset.bind(this);case xt.WEEKLY:return this.wdayset.bind(this);case xt.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(t){switch(t){case xt.HOURLY:return this.htimeset.bind(this);case xt.MINUTELY:return this.mtimeset.bind(this);case xt.SECONDLY:return this.stimeset.bind(this)}},e})();function yge(e,t,n,r,o,i){for(var a=[],s=0;s<e.length;s++){var l=void 0,c=void 0,h=e[s];h<0?(l=Math.floor(h/t.length),c=io(h,t.length)):(l=Math.floor((h-1)/t.length),c=io(h-1,t.length));for(var d=[],p=n;p<r;p++){var f=i[p];pn(f)&&d.push(f)}var b=void 0;l<0?b=d.slice(l)[0]:b=d[l];var y=t[c],w=N6(o.yearordinal+b),k=P6(w,y);Dt(a,k)||a.push(k)}return kd(a),a}function R6(e,t){var n=t.dtstart,r=t.freq,o=t.interval,i=t.until,a=t.bysetpos,s=t.count;if(s===0||o===0)return Ii(e);var l=qfe.fromDate(n),c=new gge(t);c.rebuild(l.year,l.month);for(var h=vge(c,l,t);;){var d=c.getdayset(r)(l.year,l.month,l.day),p=d[0],f=d[1],b=d[2],y=wge(p,f,b,c,t);if(Mn(a))for(var w=yge(a,h,f,b,c,p),k=0;k<w.length;k++){var x=w[k];if(i&&x>i)return Ii(e);if(x>=n){var S=iA(x,t);if(!e.accept(S)||s&&(--s,!s))return Ii(e)}}else for(var k=f;k<b;k++){var I=p[k];if(pn(I))for(var E=N6(c.yearordinal+I),C=0;C<h.length;C++){var $=h[C],x=P6(E,$);if(i&&x>i)return Ii(e);if(x>=n){var S=iA(x,t);if(!e.accept(S)||s&&(--s,!s))return Ii(e)}}}if(t.interval===0||(l.add(t,y),l.year>E6))return Ii(e);VS(r)||(h=c.gettimeset(r)(l.hour,l.minute,l.second,0)),c.rebuild(l.year,l.month)}}function bge(e,t,n){var r=n.bymonth,o=n.byweekno,i=n.byweekday,a=n.byeaster,s=n.bymonthday,l=n.bynmonthday,c=n.byyearday;return Mn(r)&&!Dt(r,e.mmask[t])||Mn(o)&&!e.wnomask[t]||Mn(i)&&!Dt(i,e.wdaymask[t])||Mn(e.nwdaymask)&&!e.nwdaymask[t]||a!==null&&!Dt(e.eastermask,t)||(Mn(s)||Mn(l))&&!Dt(s,e.mdaymask[t])&&!Dt(l,e.nmdaymask[t])||Mn(c)&&(t<e.yearlen&&!Dt(c,t+1)&&!Dt(c,-e.yearlen+t)||t>=e.yearlen&&!Dt(c,t+1-e.yearlen)&&!Dt(c,-e.nextyearlen+t-e.yearlen))}function iA(e,t){return new Yp(e,t.tzid).rezonedDate()}function Ii(e){return e.getValue()}function wge(e,t,n,r,o){for(var i=!1,a=t;a<n;a++){var s=e[a];i=bge(r,s,o),i&&(e[s]=null)}return i}function vge(e,t,n){var r=n.freq,o=n.byhour,i=n.byminute,a=n.bysecond;return VS(r)?Kfe(n):r>=Le.HOURLY&&Mn(o)&&!Dt(o,t.hour)||r>=Le.MINUTELY&&Mn(i)&&!Dt(i,t.minute)||r>=Le.SECONDLY&&Mn(a)&&!Dt(a,t.second)?[]:e.gettimeset(r)(t.hour,t.minute,t.second,t.millisecond)}var jo={MO:new mr(0),TU:new mr(1),WE:new mr(2),TH:new mr(3),FR:new mr(4),SA:new mr(5),SU:new mr(6)},KS={freq:xt.YEARLY,dtstart:null,interval:1,wkst:jo.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},kge=Object.keys(KS),Le=(function(){function e(t,n){t===void 0&&(t={}),n===void 0&&(n=!1),this._cache=n?null:new Xfe,this.origOptions=O6(t);var r=Vfe(t).parsedOptions;this.options=r}return e.parseText=function(t,n){return D6(t,n)},e.fromText=function(t,n){return Wfe(t,n)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(t){return R6(t,this.options)},e.prototype._cacheGet=function(t,n){return this._cache?this._cache._cacheGet(t,n):!1},e.prototype._cacheAdd=function(t,n,r){if(this._cache)return this._cache._cacheAdd(t,n,r)},e.prototype.all=function(t){if(t)return this._iter(new eA("all",{},t));var n=this._cacheGet("all");return n===!1&&(n=this._iter(new Ml("all",{})),this._cacheAdd("all",n)),n},e.prototype.between=function(t,n,r,o){if(r===void 0&&(r=!1),!Mu(t)||!Mu(n))throw new Error("Invalid date passed in to RRule.between");var i={before:n,after:t,inc:r};if(o)return this._iter(new eA("between",i,o));var a=this._cacheGet("between",i);return a===!1&&(a=this._iter(new Ml("between",i)),this._cacheAdd("between",a,i)),a},e.prototype.before=function(t,n){if(n===void 0&&(n=!1),!Mu(t))throw new Error("Invalid date passed in to RRule.before");
102var r={dt:t,inc:n},o=this._cacheGet("before",r);return o===!1&&(o=this._iter(new Ml("before",r)),this._cacheAdd("before",o,r)),o},e.prototype.after=function(t,n){if(n===void 0&&(n=!1),!Mu(t))throw new Error("Invalid date passed in to RRule.after");var r={dt:t,inc:n},o=this._cacheGet("after",r);return o===!1&&(o=this._iter(new Ml("after",r)),this._cacheAdd("after",o,r)),o},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return Bv(this.origOptions)},e.prototype.toText=function(t,n,r){return Bfe(this,t,n,r)},e.prototype.isFullyConvertibleToText=function(){return Hfe(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=xt.YEARLY,e.MONTHLY=xt.MONTHLY,e.WEEKLY=xt.WEEKLY,e.DAILY=xt.DAILY,e.HOURLY=xt.HOURLY,e.MINUTELY=xt.MINUTELY,e.SECONDLY=xt.SECONDLY,e.MO=jo.MO,e.TU=jo.TU,e.WE=jo.WE,e.TH=jo.TH,e.FR=jo.FR,e.SA=jo.SA,e.SU=jo.SU,e.parseString=Wv,e.optionsToString=Bv,e})();function xge(e,t,n,r,o,i){var a={},s=e.accept;
102function l(p,f){n.forEach(function(b){b.between(p,f,!0).forEach(function(y){a[Number(y)]=!0})})}o.forEach(function(p){var f=new Yp(p,i).rezonedDate();a[Number(f)]=!0}),e.accept=function(p){var f=Number(p);return isNaN(f)?s.call(this,p):!a[f]&&(l(new Date(f-1),new Date(f+1)),!a[f])?(a[f]=!0,s.call(this,p)):!0},e.method==="between"&&(l(e.args.after,e.args.before),e.accept=function(p){var f=Number(p);return a[f]?!0:(a[f]=!0,s.call(this,p))});for(var c=0;c<r.length;c++){var h=new Yp(r[c],i).rezonedDate();if(!e.accept(new Date(h.getTime())))break}t.forEach(function(p){R6(e,p.options)});var d=e._result;switch(kd(d),e.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;default:return d.length&&d[0]||null}}var aA={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function _ge(e,t){var n=[],r=[],o=[],i=[],a=Gp(e),s=a.dtstart,l=a.tzid,c=Age(e,t.unfold);return c.forEach(function(h){var d;if(h){var p=Ege(h),f=p.name,b=p.parms,y=p.value;switch(f.toUpperCase()){case"RRULE":if(b.length)throw new Error("unsupported RRULE parm: ".concat(b.join(",")));n.push(Wv(h));break;case"RDATE":var w=(d=/RDATE(?:;TZID=([^:=]+))?/i.exec(h))!==null&&d!==void 0?d:[],k=w[1];k&&!l&&(l=k),r=r.concat(lA(y,b));break;case"EXRULE":if(b.length)throw new Error("unsupported EXRULE parm: ".concat(b.join(",")));o.push(Wv(y));break;case"EXDATE":i=i.concat(lA(y,b));break;case"DTSTART":break;default:throw new Error("unsupported property: "+f)}}}),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:o,exdatevals:i}}function Sge(e,t){var n=_ge(e,t),r=n.rrulevals,o=n.rdatevals,i=n.exrulevals,a=n.exdatevals,s=n.dtstart,l=n.tzid,c=t.cache===!1;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||r.length>1||o.length||i.length||a.length){var h=new Nge(c);return h.dtstart(s),h.tzid(l||void 0),r.forEach(function(p){h.rrule(new Le(Yb(p,s,l),c))}),o.forEach(function(p){h.rdate(p)}
102),i.forEach(function(p){h.exrule(new Le(Yb(p,s,l),c))}),a.forEach(function(p){h.exdate(p)}),t.compatible&&t.dtstart&&h.rdate(s),h}var d=r[0]||{};return new Le(Yb(d,d.dtstart||t.dtstart||s,d.tzid||t.tzid||l),c)}function sA(e,t){return t===void 0&&(t={}),Sge(e,Tge(t))}function Yb(e,t,n){return sn(sn({},e),{dtstart:t,tzid:n})}function Tge(e){var t=[],n=Object.keys(e),r=Object.keys(aA);if(n.forEach(function(o){Dt(r,o)||t.push(o)}),t.length)throw new Error("Invalid options: "+t.join(", "));return sn(sn({},aA),e)}function Ige(e){if(e.indexOf(":")===-1)return{name:"RRULE",value:e};var t=Ofe(e,":",1),n=t[0],r=t[1];return{name:n,value:r}}function Ege(e){var t=Ige(e),n=t.name,r=t.value,o=n.split(";");if(!o)throw new Error("empty property name");return{name:o[0].toUpperCase(),parms:o.slice(1),value:r}}function Age(e,t){if(t===void 0&&(t=!1),e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var n=e.split(`
103`),r=0;r<n.length;){var o=n[r]=n[r].replace(/\s+$/g,"");o?r>0&&o[0]===" "?(n[r-1]+=o.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}function Cge(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function lA(e,t){return Cge(t),e.split(",").map(function(n){return qS(n)})}function cA(e){var t=this;return function(n){if(n!==void 0&&(t["_".concat(e)]=n),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var r=0;r<t._rrule.length;r++){var o=t._rrule[r].origOptions[e];if(o)return o}}}var Nge=(function(e){cS(t,e);function t(n){n===void 0&&(n=!1);var r=e.call(this,{},n)||this;return r.dtstart=cA.apply(r,["dtstart"]),r.tzid=cA.apply(r,["tzid"]),r._rrule=[],r._rdate=[],r._exrule=[],r._exdate=[],r}return t.prototype._iter=function(n){return xge(n,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(n){uA(n,this._rrule)},t.prototype.exrule=function(n){uA(n,this._exrule)},t.prototype.rdate=function(n){dA(n,this._rdate)},t.prototype.exdate=function(n){dA(n,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(n){return sA(n.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(n){return sA(n.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(n){return new Date(n.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(n){return new Date(n.getTime())})},t.prototype.valueOf=function(){var n=[];return!this._rrule.length&&this._dtstart&&(n=n.concat(Bv({dtstart:this._dtstart}))),this._rrule.forEach(function(r){n=n.concat(r.toString().split(`
104`))}),this._exrule.forEach(function(r){n=n.concat(r.toString().split(`
105`).map(function(o){return o.replace(/^RRULE:/,"EXRULE:")}).filter(function(o){return!/^DTSTART/.test(o)}))}),this._rdate.length&&n.push(hA("RDATE",this._rdate,this.tzid())),this._exdate.length&&n.push(hA("EXDATE",this._exdate,this.tzid())),n},t.prototype.toString=function(){return this.valueOf().join(`
106`)},t.prototype.clone=function(){var n=new t(!!this._cache);return this._rrule.forEach(function(r){return n.rrule(r.clone())}),this._exrule.forEach(function(r){return n.exrule(r.clone())}),this._rdate.forEach(function(r){return n.rdate(new Date(r.getTime()))}),this._exdate.forEach(function(r){return n.exdate(new Date(r.getTime()))}),n},t})(Le);function uA(e,t){if(!(e instanceof Le))throw new TypeError(String(e)+" is not RRule instance");Dt(t.map(String),String(e))||t.push(e)}function dA(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");Dt(t.map(Number),Number(e))||(t.push(e),kd(t))}function hA(e,t,n){var r=!n||n.toUpperCase()==="UTC",o=r?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),i=t.map(function(a){return HS(a.valueOf(),r)}).join(",");return"".concat(o).concat(i)}var St;(function(e){e[e.AM=0]="AM",e[e.PM=1]="PM"})(St||(St={}));var Vt;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(Vt||(Vt={}));var oo;(function(e){e[e.JANUARY=1]="JANUARY",e[e.FEBRUARY=2]="FEBRUARY",e[e.MARCH=3]="MARCH",e[e.APRIL=4]="APRIL",e[e.MAY=5]="MAY",e[e.JUNE=6]="JUNE",e[e.JULY=7]="JULY",e[e.AUGUST=8]="AUGUST",e[e.SEPTEMBER=9]="SEPTEMBER",e[e.OCTOBER=10]="OCTOBER",e[e.NOVEMBER=11]="NOVEMBER",e[e.DECEMBER=12]="DECEMBER"})(oo||(oo={}));function el(e,t){e.assign("day",t.getDate()),e.assign("month",t.getMonth()+1),e.assign("year",t.getFullYear())}function M6(e,t){e.assign("hour",t.getHours()),e.assign("minute",t.getMinutes()),e.assign("second",t.getSeconds()),e.assign("millisecond",t.getMilliseconds()),e.assign("meridiem",t.getHours()<12?St.AM:St.PM)}function Cl(e,t){e.imply("day",t.getDate()),e.imply("month",t.getMonth()+1),e.imply("year",t.getFullYear())}function GS(e,t){e.imply("hour",t.getHours()),e.imply("minute",t.getMinutes()),e.
106imply("second",t.getSeconds()),e.imply("millisecond",t.getMilliseconds()),e.imply("meridiem",t.getHours()<12?St.AM:St.PM)}const Pge={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>mA(e,oo.MARCH,Vt.SUNDAY,2),dstEnd:e=>mA(e,oo.OCTOBER,Vt.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>aa(e,oo.MARCH,Vt.SUNDAY,2,2),dstEnd:e=>aa(e,oo.NOVEMBER,Vt.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>aa(e,oo.MARCH,Vt.SUNDAY,2,2),dstEnd:e=>aa(e,oo.NOVEMBER,Vt.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>aa(e,oo.MARCH,Vt.SUNDAY,2,2),dstEnd:e=>aa(e,oo.NOVEMBER,Vt.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>aa(e,oo.MARCH,Vt.SUNDAY,2,2),dstEnd:e=>aa(e,oo.NOVEMBER,Vt.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function aa(e,t,n,r,o=0){let i=0,a=0;for(;a<r;)i++,new Date(e,t-1,i).getDay()===n&&a++;return new Date(e,t-1,i,o)}function mA(e,t,n,r=0){const o=n===0?7:n,i=new Date(e,t-1+1,1,12),a=i.getDay()===0?7:i.getDay();let s;return a===o?s=7:a<o?s=7+a-o:s=a-o,i.setDate(i.getDate()-s),new Date(e,t-1,i.getDate(),r)}function j6(e,t,n={}){if(e==null)return null;if(typeof e=="number")return e;const r=n[e]??Pge[e];return r==null?null:typeof r=="number"?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}const Dge={day:0,second:0,millisecond:0};function Tr(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),"year"in t){const r=Math.floor(t.year);n.setFullYear(n.getFullYear()+r);const o=t.year-r;o>0&&(t.month=t?.month??0,t.month+=o*12)}if("quarter"in t){const r=Math.floor(t.quarter);n.setMonth(n.getMonth()+r*3)}if("month"in t){const r=Math.floor(t.month);n.setMonth(n.getMonth()+r);const o=t.month-r;o>0&&(t.week=t?.week??0,t.week+=o*4)}if("week"in t){const r=Math.floor(t.week);n.setDate(n.getDate()+r*7);const o=t.week-r;o>0&&(t.day=t?.day??0,t.day+=Math.round(o*7))}if("day"in t){const r=Math.floor(t.day);n.setDate(n.getDate()+r);const o=t.day-r;o>0&&(t.hour=t?.hour??0,t.hour+=Math.round(o*24))}if("hour"in t){const r=Math.floor(t.hour);n.setHours(n.getHours()+r);const o=t.hour-r;o>0&&(t.minute=t?.minute??0,t.minute+=Math.round(o*60))}if("minute"in t){const r=Math.floor(t.minute);n.setMinutes(n.getMinutes()+r);const o=t.minute-r;o>0&&(t.second=t?.second??0,t.second+=Math.round(o*60))}if("second"in t){const r=Math.floor(t.second);n.setSeconds(n.getSeconds()+r);const o=t.second-r;o>
1060&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(o*1e3))}if("millisecond"in t){const r=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+r)}return n}function dy(e){const t={};for(const n in e)t[n]=-e[n];return t}class ks{instant;timezoneOffset;constructor(t,n){this.instant=t??new Date,this.timezoneOffset=n??null}static fromDate(t){return new ks(t)}static fromInput(t,n){if(t instanceof Date)return ks.fromDate(t);const r=t?.instant??new Date,o=j6(t?.timezone,r,n);return new ks(r,o)}getDateWithAdjustedTimezone(){const t=new Date(this.instant);return this.timezoneOffset!==null&&t.setMinutes(t.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),t}getSystemTimezoneAdjustmentMinute(t,n){t||(t=new Date);const r=-t.getTimezoneOffset(),o=n??this.timezoneOffset??r;return r-o}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class qt{knownValues;impliedValues;reference;_tags=new Set;constructor(t,n){if(this.reference=t,this.knownValues={},this.impliedValues={},n)for(const o in n)this.knownValues[o]=n[o];const r=t.getDateWithAdjustedTimezone();this.imply("day",r.getDate()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(t,n=Dge){let r=Tr(t.getDateWithAdjustedTimezone(),n);const o=new qt(t);return o.addTag("result/relativeDate"),"hour"in n||"minute"in n||"second"in n||"millisecond"in n?(o.addTag("result/relativeDateAndTime"),M6(o,r),el(o,r),o.assign("timezoneOffset",t.getTimezoneOffset())):(GS(o,r),o.imply("timezoneOffset",t.getTimezoneOffset()),"day"in n?(o.assign("day",r.getDate()),o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear()),o.assign("weekday",r.getDay())):"week"in n?(o.assign("day",r.getDate()),o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear()),o.imply("weekday",r.getDay())):(o.imply("day",r.getDate()),"month"in n?(o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear())):(o.imply("month",r.getMonth()+1),"year"in n?o.assign("year",r.getFullYear()):o.imply("year",r.getFullYear())))),o}get(t){return t in this.knownValues?this.knownValues[t]:t in this.impliedValues?this.impliedValues[t]:null}isCertain(t){return t in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(t,n){return t in this.knownValues?this:(this.impliedValues[t]=n,this)}assign(t,n){return this.knownValues[t]=n,delete this.impliedValues[t],this}addDurationAsImplied(t){const n=this.dateWithoutTimezoneAdjustment(),r=Tr(n,t);return("day"in t||"week"in t||"month"in t||"year"in t)&&(this.delete(["day","weekday","month","year"]),this.imply("day",r.getDate()),this.imply("weekday",r.getDay()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear())),("second"in t||"minute"in t||"hour"in t)&&(this.delete(["second","minute","hour"]),this.imply("second",r.getSeconds()),this.imply("minute",r.getMinutes()),this.imply("hour",r.getHours())),this}delete(t){typeof t=="string"&&(t=[t]);for(const n of t)delete this.knownValues[n],delete this.impliedValues[n]}clone(){const t=new qt(this.reference);t.knownValues={},t.impliedValues={};for(const n in this.knownValues)t.knownValues[n]=this.knownValues[n];for(const n in this.impliedValues)t.impliedValues[n]=this.impliedValues[n];return t}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){const t=new Date(Date.UTC(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond")));return t.setUTCFullYear(this.get("year")),!(t.getUTCFullYear()!==this.get("year")||t.getUTCMonth()!==this.get("month")-1||t.getUTCDate()!==this.get("day")||this.get("hour")!=null&&t.getUTCHours()!=this.get("hour")||this.get("minute")!=null&&t.getUTCMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {
107            tags: ${JSON.stringify(Array.from(this._tags).sort())}, 
108            knownValues: ${JSON.stringify(this.knownValues)}, 
109            impliedValues: ${JSON.stringify(this.impliedValues)}}, 
110            reference: ${JSON.stringify(this.reference)}]`}date(){const t=this.get("timezoneOffset")??this.reference.timezoneOffset;if(t==null)return this.dateWithoutTimezoneAdjustment();const n=new Date(Date.UTC(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond")));return n.setUTCFullYear(this.get("year")),new Date(n.getTime()-t*6e4)}addTag(t){return this._tags.add(t),this}addTags(t){for(const n of t)this._tags.add(n);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){const t=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return t.setFullYear(this.get("year")),t}}class Fc{refDate;index;text;reference;start;end;constructor(t,n,r,o,i){this.reference=t,this.refDate=t.instant,this.index=n,this.text=r,this.start=o||new qt(t),this.end=i}clone(){const t=new Fc(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(t){return this.start.addTag(t),this.end&&this.end.addTag(t),this}addTags(t){return this.start.addTags(t),this.end&&this.end.addTags(t),this}tags(){const t=new Set(this.start.tags());if(this.end)for(const n of this.end.tags())t.add(n);return t}toString(){const t=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(t)} ...}]`}}function $6(e,t,n="\\s{0,5},?\\s{0,5}"){const r=t.replace(/\((?!\?)/g,"(?:");return`${e}${r}(?:${n}${r}){0,10}`}function Oge(e){let t;return e instanceof Array?t=[...e]:e instanceof Map?t=Array.from(e.keys()):t=Object.keys(e),t}function Qo(e){return`(?:${Oge(e).sort((n,r)=>r.length-n.length).join("|").replace(/\./g,"\\.")})`}function L6(e){return e<100&&(e>50?e=e+1900:e=e+2e3),e}function hy(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);const o=Tr(r,{year:1}),i=Tr(r,{year:-1});return Math.abs(o.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=o:Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=i),r.getFullYear()}const Hv={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},z6={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},wi={...z6,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},qv={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},Vv={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},U6={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},my={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...U6},F6=`(?:${Qo(qv)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function Rge(e){const t=e.toLowerCase();return qv[t]!==void 0?qv[t]:t==="a"||t==="an"||t=="the"?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t)}const Zp=`(?:${Qo(Vv)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function Jp(e){let t=e.toLowerCase();return Vv[t]!==void 0?Vv[t]:(t=t.replace(/(?:st|nd|rd|th)$/i,""),parseInt(t))}
110const py="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[0-9]{2}(?!\\w|:\\d|\\s+(?:am|pm|o\\s*clock|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)))";function Dh(e){if(/BE/i.test(e))return e=e.replace(/BE/i,""),parseInt(e)-543;if(/BCE?/i.test(e))return e=e.replace(/BCE?/i,""),-parseInt(e);if(/(AD|CE)/i.test(e))return e=e.replace(/(AD|CE)/i,""),parseInt(e);const t=parseInt(e);return L6(t)}const W6=`(${F6})\\s{0,3}(${Qo(my)})`,pA=new RegExp(W6,"i"),Mge=`(${F6})\\s{0,3}(${Qo(U6)})`,B6="\\s{0,5},?(?:\\s*and)?\\s{0,5}",Oh=$6("(?:(?:about|around)\\s{0,3})?",W6,B6),fy=$6("(?:(?:about|around)\\s{0,3})?",Mge,B6);function Wc(e){const t={};let n=e,r=pA.exec(n);for(;r;)jge(t,r),n=n.substring(r[0].length).trim(),r=pA.exec(n);return Object.keys(t).length==0?null:t}function jge(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;const n=Rge(t[1]),r=my[t[2].toLowerCase()];e[r]=n}class vr{innerPatternHasChange(t,n){return this.innerPattern(t)!==n}patternLeftBoundary(){return"(\\W|^)"}cachedInnerPattern=null;cachedPattern=null;pattern(t){return this.cachedInnerPattern&&!this.innerPatternHasChange(t,this.cachedInnerPattern)?this.cachedPattern:(this.cachedInnerPattern=this.innerPattern(t),this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags),this.cachedPattern)}extract(t,n){const r=n[1]??"";n.index=n.index+r.length,n[0]=n[0].substring(r.length);for(let o=2;o<n.length;o++)n[o-1]=n[o];return this.innerExtract(t,n)}}const $ge=new RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Oh})(?=\\W|$)`,"i"),Lge=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Oh})(?=\\W|$)`,"i"),zge=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${fy})(?=\\W|$)`,"i");class Uge extends vr{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(t){return this.strictMode?zge:t.option.forwardDate?$ge:Lge}innerExtract(t,n){if(n[0].match(/^for\s*the\s*\w+/))return null;const r=Wc(n[1]);return r?qt.createRelativeFromReference(t.reference,r):null}}const Fge=new RegExp(`(?:on\\s{0,3})?(${Zp})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)\\s{0,3}(${Zp}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Qo(wi)})(?:(?:-|/|,?\\s{0,3})(${py}(?!\\w)))?(?=\\W|$)`,"i"),fA=1,gA=2,Wge=3,yA=4;class Bge extends vr{innerPattern(){return Fge}innerExtract(t,n){const r=t.createParsingResult(n.index,n[0]),o=wi[n[Wge].toLowerCase()],i=Jp(n[fA]);if(i>31)return n.index=n.index+n[fA].length,null;if(r.start.assign("month",o),r.start.assign("day",i),n[yA]){const a=Dh(n[yA]);r.start.assign("year",a)}else{const a=hy(t.refDate,i,o);r.start.imply("year",a)}if(n[gA]){const a=Jp(n[gA]);r.end=r.start.clone(),r.end.assign("day",a)}return r}}const Hge=new RegExp(`(${Qo(wi)})(?:-|/|\\s*,?\\s*)(${Zp})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${Zp})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${py}))?(?=\\W|$)(?!\\:\\d)`,"i"),qge=1,bA=2,Zb=3,Jb=4;class Vge extends vr{shouldSkipYearLikeDate;constructor(t){super(),this.shouldSkipYearLikeDate=t}innerPattern(){return Hge}innerExtract(t,n){const r=wi[n[qge].toLowerCase()],o=Jp(n[bA]);if(o>31||this.shouldSkipYearLikeDate&&!n[Zb]&&!n[Jb]&&n[bA].match(/^\d{2}$/))return null;const i=t.createParsingComponents({day:o,month:r}).addTag("parser/ENMonthNameMiddleEndianParser");if(n[Jb]){const l=Dh(n[Jb]);i.assign("year",l)}else{const l=hy(t.refDate,o,r);i.imply("year",l)}if(!n[Zb])return i;const a=Jp(n[Zb]),s=t.createParsingResult(n.index,n[0]);return s.start=i,s.end=i.clone(),s.end.assign("day",a),s}}const Kge=new RegExp(`((?:in)\\s*)?(${Qo(wi)})\\s*(?:(?:,|-|of)?\\s*(${py})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),Gge=1,Yge=2,wA=3;class Zge extends vr{innerPattern(){return Kge}innerExtract(t,n){const r=n[Yge].toLowerCase();if(n[0].length<=3&&!z6[r])return null;const o=t.createParsingResult(n.index+(n[Gge]||"").length,n.index+n[0].length);o.start.imply("day",1),o.start.addTag("parser/ENMonthNameParser");const i=wi[r];if(o.start.assign("month",i),n[wA]){const a=Dh(n[wA]);o.start.assign("year",a)}else{const a=hy(t.refDate,1,i);o.start.imply("year",a)}return o}}const Jge=new RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Qo(wi)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),Qge=1,Xge=2,vA=3,eye=4;class tye extends vr{strictMonthDateOrder;constructor(t){super(),this.strictMonthDateOrder=t}innerPattern(){return Jge}innerExtract(t,n){const r=parseInt(n[Qge]);let o=parseInt(n[eye]),i=n[vA]?parseInt(n[vA]):wi[n[Xge].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;o>=1&&o<=12&&([i,o]=[o,i])}return o<1||o>31?null:{day:o,month:i,year:r}}}const nye="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3})",rye=new RegExp(`(${nye})(?:\\s*[-.\\/,]?\\s*|\\s+of\\s+)(${Qo(wi)})(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),oye=1,iye=2;class aye extends vr{innerPattern(){return rye}innerExtract(t,n){const r=Dh(n[oye]),o=n[iye].toLowerCase(),i=wi[o],a=t.createParsingResult(n.index,n[0]);return a.start.imply("day",1),a.start.assign("month",i),a.start.assign("year",r),a.start.addTag("parser/ENYearMonthNameParser"),a}}const sye=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),lye=1,cye=2;class uye extends vr{innerPattern(){return sye}innerExtract(t,n){const r=parseInt(n[cye]),o=parseInt(n[lye]);return t.createParsingComponents().imply("day",1).assign("month",o).assign("year",r)}}function dye(e,t,n,r){return new RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function hye(e,t){return new RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i")}const Qb=2,is=3,Mm=4,jm=5,wl=6;class mye{strictMode;constructor(t=!1){this.strictMode=t}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(t){return this.getPrimaryTimePatternThroughCache()}extract(t,n){const r=this.extractPrimaryTimeComponents(t,n);if(!r)return n[0].match(/^\d{4}/)?(n.index+=4,null):(n.index+=n[0].length,null);const o=n.index+n[1].length,i=n[0].substring(n[1].length),a=t.createParsingResult(o,i,r);n.index+=n[0].length;const s=t.text.substring(n.index),c=this.getFollowingTimePatternThroughCache().exec(s);return i.match(/^\d{3,4}/)&&c&&(c[0].match(/^\s*([+-])\s*\d{2,4}
110$/)||c[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!c||c[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(t,c,a),a.end&&(a.text+=c[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(t,n,r=!1){const o=t.createParsingComponents();let i=0,a=null,s=parseInt(n[Qb]);if(s>100){if(n[Qb].length==4&&n[is]==null&&!n[wl]||this.strictMode||n[is]!=null)return null;i=s%100,s=Math.floor(s/100)}if(s>24)return null;if(n[is]!=null){if(n[is].length==1&&!n[wl])return null;i=parseInt(n[is])}if(i>=60)return null;if(s>12&&(a=St.PM),n[wl]!=null){if(s>12)return null;const l=n[wl][0].toLowerCase();l=="a"&&(a=St.AM,s==12&&(s=0)),l=="p"&&(a=St.PM,s!=12&&(s+=12))}if(o.assign("hour",s),o.assign("minute",i),a!==null?o.assign("meridiem",a):s<12?o.imply("meridiem",St.AM):o.imply("meridiem",St.PM),n[jm]!=null){const l=parseInt(n[jm].substring(0,3));if(l>=1e3)return null;o.assign("millisecond",l)}if(n[Mm]!=null){const l=parseInt(n[Mm]);if(l>=60)return null;o.assign("second",l)}return o}extractFollowingTimeComponents(t,n,r){const o=t.createParsingComponents();if(n[jm]!=null){const l=parseInt(n[jm].substring(0,3));if(l>=1e3)return null;o.assign("millisecond",l)}if(n[Mm]!=null){const l=parseInt(n[Mm]);if(l>=60)return null;o.assign("second",l)}let i=parseInt(n[Qb]),a=0,s=-1;if(n[is]!=null?a=parseInt(n[is]):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(s=St.PM),n[wl]!=null){if(i>12)return null;const l=n[wl][0].toLowerCase();l=="a"&&(s=St.AM,i==12&&(i=0,o.isCertain("day")||o.imply("day",o.get("day")+1))),l=="p"&&(s=St.PM,i!=12&&(i+=12)),r.start.isCertain("meridiem")||(s==St.AM?(r.start.imply("meridiem",St.AM),r.start.get("hour")==12&&r.start.assign("hour",0)):(r.start.imply("meridiem",St.PM),r.start.get("hour")!=12&&r.start.assign("hour",r.start.get("hour")+12)))}return o.assign("hour",i),o.assign("minute",a),s>=0?o.assign("meridiem",s):r.start.isCertain("meridiem")&&r.start.get("hour")>12?r.start.get("hour")-12>i?o.imply("meridiem",St.AM):i<=12&&(o.assign("hour",i+12),o.assign("meridiem",St.PM)):i>12?o.imply("meridiem",St.PM):i<=12&&o.imply("meridiem",St.AM),o.date().getTime()<r.start.date().getTime()&&o.imply("day",o.get("day")+1),o}checkAndReturnWithoutFollowingPattern(t){if(t.text.match(/^\d$/)||t.text.match(/^\d\d\d+$/)||t.text.match(/\d[apAP]$/))return null;const n=t.text.match(/[^\d:.](\d[\d.]+)$/);if(n){const r=n[1];if(this.strictMode||r.includes(".")&&!r.match(/\d(\.\d{2})+$/)||parseInt(r)>24)return null}return t}checkAndReturnWithFollowingPattern(t){if(t.text.match(/^\d+-\d+$/))return null;const n=t.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(n){if(this.strictMode)return null;const r=n[1],o=n[2];if(o.includes(".")&&!o.match(/\d(\.\d{2})+$/))return null;const i=parseInt(o),a=parseInt(r);if(i>24||a>24)return null}return t}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){const t=this.primaryPrefix(),n=this.primarySuffix();return this.cachedPrimaryPrefix===t&&this.cachedPrimarySuffix===n?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=dye(this.primaryPatternLeftBoundary(),t,n,this.patternFlags()),this.cachedPrimaryPrefix=t,this.cachedPrimarySuffix=n,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){const t=this.followingPhase(),n=this.followingSuffix();return this.cachedFollowingPhase===t&&this.cachedFollowingSuffix===n?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=hye(t,n),this.cachedFollowingPhase=t,this.cachedFollowingSuffix=n,this.cachedFollowingTimePatten)}}class pye extends mye{constructor(t){super(t)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(t,n){const r=super.extractPrimaryTimeComponents(t,n);if(!r)return r;if(n[0].endsWith("night")){const o=r.get("hour");o>=6&&o<12?(r.assign("hour",r.get("hour")+12),r.assign("meridiem",St.PM)):o<6&&r.assign("meridiem",St.AM)}if(n[0].endsWith("afternoon")){r.assign("meridiem",St.PM);const o=r.get("hour");o>=0&&o<=6&&r.assign("hour",r.get("hour")+12)}return n[0].endsWith("morning")&&(r.assign("meridiem",St.AM),r.get("hour")<12&&r.assign("hour",r.get("hour"))),r.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(t,n,r){const o=super.extractFollowingTimeComponents(t,n,r);return o&&o.addTag("parser/ENTimeExpressionParser"),o}}const fye=new RegExp(`(${Oh})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),gye=new RegExp(`(${fy})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class yye extends vr{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?gye:fye}innerExtract(t,n){const r=Wc(n[1]);return r?qt.createRelativeFromReference(t.reference,dy(r)):null}}
110const bye=new RegExp(`(${Oh})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),wye=new RegExp(`(${fy})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),vye=1;class kye extends vr{strictMode;constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?wye:bye}innerExtract(t,n){const r=Wc(n[vye]);return r?qt.createRelativeFromReference(t.reference,r):null}}class H6{refine(t,n){return n.filter(r=>this.isValid(t,r))}}class Rh{refine(t,n){if(n.length<2)return n;const r=[];let o=n[0],i=null;for(let a=1;a<n.length;a++){i=n[a];const s=t.text.substring(o.index+o.text.length,i.index);if(!this.shouldMergeResults(s,o,i,t))r.push(o),o=i;else{const l=o,c=i,h=this.mergeResults(s,l,c,t);t.debug(()=>{console.log(`${this.constructor.name} merged ${l} and ${c} into ${h}`)}),o=h}}return o!=null&&r.push(o),r}}class xye extends Rh{shouldMergeResults(t,n,r){return!n.end&&!r.end&&t.match(this.patternBetween())!=null}mergeResults(t,n,r){if(!n.start.isOnlyWeekdayComponent()&&!r.start.isOnlyWeekdayComponent()&&(r.start.getCertainComponents().forEach(i=>{n.start.isCertain(i)||n.start.imply(i,r.start.get(i))}),n.start.getCertainComponents().forEach(i=>{r.start.isCertain(i)||r.start.imply(i,n.start.get(i))})),n.start.date()>r.start.date()){let i=n.start.date(),a=r.start.date();r.start.isOnlyWeekdayComponent()&&Tr(a,{day:7})>i?(a=Tr(a,{day:7}),r.start.imply("day",a.getDate()),r.start.imply("month",a.getMonth()+1),r.start.imply("year",a.getFullYear())):n.start.isOnlyWeekdayComponent()&&Tr(i,{day:-7})<a?(i=Tr(i,{day:-7}),n.start.imply("day",i.getDate()),n.start.imply("month",i.getMonth()+1),n.start.imply("year",i.getFullYear())):r.start.isDateWithUnknownYear()&&Tr(a,{year:1})>i?(a=Tr(a,{year:1}),r.start.imply("year",a.getFullYear())):n.start.isDateWithUnknownYear()&&Tr(i,{year:-1})<a?(i=Tr(i,{year:-1}),n.start.imply("year",i.getFullYear())):[r,n]=[n,r]}const o=n.clone();return o.start=n.start,o.end=r.start,o.index=Math.min(n.index,r.index),n.index<r.index?o.text=n.text+t+r.text:o.text=r.text+t+n.text,o}}class _ye extends xye{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}}function kA(e,t){const n=e.clone(),r=e.start,o=t.start;if(n.start=xA(r,o),e.end!=null||t.end!=null){const i=e.end==null?e.start:e.end,a=t.end==null?t.start:t.end,s=xA(i,a);if(e.end==null&&s.date().getTime()<n.start.date().getTime()){const l=new Date(s.date().getTime());l.setDate(l.getDate()+1),s.isCertain("day")?el(s,l):Cl(s,l)}n.end=s}return n}function xA(e,t){const n=e.clone();t.isCertain("hour")?(n.assign("hour",t.get("hour")),n.assign("minute",t.get("minute")),t.isCertain("second")?(n.assign("second",t.get("second")),t.isCertain("millisecond")?n.assign("millisecond",t.get("millisecond")):n.imply("millisecond",t.get("millisecond"))):(n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond")))):(n.imply("hour",t.get("hour")),n.imply("minute",t.get("minute")),n.imply("second",t.get("second")),n.imply("millisecond",t.get("millisecond"))),t.isCertain("timezoneOffset")&&n.assign("timezoneOffset",t.get("timezoneOffset"));const r=e.get("meridiem")!=null&&(e.isCertain("meridiem")||Array.from(e.tags()).some(o=>o.startsWith("casualReference/")));return t.isCertain("meridiem")?n.assign("meridiem",t.get("meridiem")):t.get("meridiem")!=null&&!r&&n.imply("meridiem",t.get("meridiem")),n.get("meridiem")==St.PM&&n.get("hour")<12&&(t.isCertain("hour")?n.assign("hour",n.get("hour")+12):n.imply("hour",n.get("hour")+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}class Sye extends Rh{shouldMergeResults(t,n,r){return(n.start.isOnlyDate()&&r.start.isOnlyTime()||r.start.isOnlyDate()&&n.start.isOnlyTime())&&t.match(this.patternBetween())!=null}mergeResults(t,n,r){const o=n.start.isOnlyDate()?kA(n,r):kA(r,n);return o.index=n.index,o.text=n.text+t+r.text,o}}class _A extends Sye{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}const Tye=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class Iye{timezoneOverrides;constructor(t){this.timezoneOverrides=t}refine(t,n){const r=t.option.timezones??{};
110return n.forEach(o=>{const i=t.text.substring(o.index+o.text.length),a=Tye.exec(i);if(!a)return;const s=a[1].toUpperCase(),l=o.start.date()??o.refDate??new Date,c={...this.timezoneOverrides,...r},h=j6(s,l,c);if(h==null)return;t.debug(()=>{console.log(`Extracting timezone: '${s}' into: ${h} for: ${o.start}`)});const d=o.start.get("timezoneOffset");d!==null&&h!=d&&(o.start.isCertain("timezoneOffset")||s!=a[1])||o.start.isOnlyDate()&&s!=a[1]||(o.text+=a[0],o.start.isCertain("timezoneOffset")||o.start.assign("timezoneOffset",h),o.end!=null&&!o.end.isCertain("timezoneOffset")&&o.end.assign("timezoneOffset",h))}),n}}const Eye=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),Aye=1,Cye=2,Nye=3;class Pye{refine(t,n){return n.forEach(function(r){if(r.start.isCertain("timezoneOffset"))return;const o=t.text.substring(r.index+r.text.length),i=Eye.exec(o);if(!i)return;t.debug(()=>{console.log(`Extracting timezone: '${i[0]}' into : ${r}`)});const a=parseInt(i[Cye]),s=parseInt(i[Nye]||"0");let l=a*60+s;l>840||(i[Aye]==="-"&&(l=-l),r.end!=null&&r.end.assign("timezoneOffset",l),r.start.assign("timezoneOffset",l),r.text+=i[0])}),n}}class Kv{refine(t,n){if(n.length<2)return n;const r=[];let o=n[0];for(let i=1;i<n.length;i++){const a=n[i];if(a.index>=o.index+o.text.length){r.push(o),o=a;continue}let s=null,l=null;a.text.length>o.text.length?(s=a,l=o):(s=o,l=a),t.debug(()=>{console.log(`${this.constructor.name} remove ${l} by ${s}`)}),o=s}return o!=null&&r.push(o),r}}function Dye(e,t,n){const r=e.getDateWithAdjustedTimezone(),o=Oye(r,t,n);let i=new qt(e);return i=i.addDurationAsImplied({day:o}),i.assign("weekday",t),i}function Oye(e,t,n){const r=e.getDay();switch(n){case"this":return Kl(e,t);case"last":return q6(e,t);case"next":return r==Vt.SUNDAY?t==Vt.SUNDAY?7:t:r==Vt.SATURDAY?t==Vt.SATURDAY?7:t==Vt.SUNDAY?8:1+t:t<r&&t!=Vt.SUNDAY?Kl(e,t):Kl(e,t)+7}return Rye(e,t)}function Rye(e,t){const n=q6(e,t),r=Kl(e,t);return r<-n?r:n}function Kl(e,t){const n=e.getDay();let r=t-n;return r<0&&(r+=7),r}function q6(e,t){const n=e.getDay();let r=t-n;return r>=0&&(r-=7),r}class Mye{refine(t,n){return t.option.forwardDate&&n.forEach(r=>{let o=t.reference.getDateWithAdjustedTimezone();if(r.start.isOnlyTime()&&t.reference.instant>r.start.date()){const i=t.reference.getDateWithAdjustedTimezone(),a=new Date(i);a.setDate(a.getDate()+1),Cl(r.start,a),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} time from the ref date (${i}) to the following day (${a})`)}),r.end&&r.end.isOnlyTime()&&(Cl(r.end,a),r.start.date()>r.end.date()&&(a.setDate(a.getDate()+1),Cl(r.end,a)))}if(r.start.isOnlyWeekdayComponent()&&o>r.start.date()){let i=Kl(o,r.start.get("weekday"))||7;const a=Tr(o,{day:i});if(Cl(r.start,a),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} weekday (${r.start})`)}),r.end&&r.start.date()>r.end.date()){let s=Kl(o,r.start.get("weekday"))||7;const l=Tr(o,{day:s});Cl(r.end,l),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} weekday (${r.end})`)})}}if(r.start.isDateWithUnknownYear()&&o>r.start.date())for(let i=0;i<3&&o>r.start.date();i++)r.start.imply("year",r.start.get("year")+1),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} year (${r.start})`)}),r.end&&!r.end.isCertain("year")&&(r.end.imply("year",r.end.get("year")+1),t.debug(()=>{console.log(`${this.constructor.name} adjusted ${r} month (${r.start})`)}))}),n}}class jye extends H6{strictMode;constructor(t){super(),this.strictMode=t}isValid(t,n){return n.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(t.debug(()=>{console.log(`Removing unlikely result '${n.text}'`)}),!1):n.start.isValidDate()?n.end&&!n.end.isValidDate()?(t.debug(()=>{console.log(`Removing invalid result: ${n} (${n.end})`)}),!1):this.strictMode?this.isStrictModeValid(t,n):!0:(t.debug(()=>{console.log(`Removing invalid result: ${n} (${n.start})`)}),!1)}isStrictModeValid(t,n){return n.start.isOnlyWeekdayComponent()?(t.debug(()=>{console.log(`(Strict) Removing weekday only component: ${n} (${n.end})`)}),!1):!0}}const $ye=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),Lye=1,zye=2,Uye=3,SA=4,Fye=5,TA=6,IA=7,Wye=8,EA=9,AA=10;class Bye extends vr{innerPattern(){return $ye}innerExtract(t,n){const r=t.createParsingComponents({year:parseInt(n[Lye]),month:parseInt(n[zye]),day:parseInt(n[Uye])});if(n[SA]!=null&&(r.assign("hour",parseInt(n[SA])),r.assign("minute",parseInt(n[Fye])),n[TA]!=null&&r.assign("second",parseInt(n[TA])),n[IA]!=null&&r.assign("millisecond",parseInt(n[IA])),n[Wye]!=null)){let o=0;if(n[EA]){const i=parseInt(n[EA]);let a=0;n[AA]!=null&&(a=parseInt(n[AA])),o=i*60,o<0?o-=a:o+=a}r.assign("timezoneOffset",o)}return r.addTag("parser/ISOFormatParser")}}class Hye extends Rh{mergeResults(t,n,r){const o=r.clone();return o.index=n.index,o.text=n.text+t+o.text,o.start.assign("weekday",n.start.get("weekday")),o.end&&o.end.assign("weekday",n.start.get("weekday")),o}shouldMergeResults(t,n,r){return n.start.isOnlyWeekdayComponent()&&!n.start.isCertain("hour")&&r.start.isCertain("day")&&t.match(/^,?\s*$/)!=null}}function qye(e,t=!1){return e.parsers.unshift(new Bye),e.refiners.unshift(new Hye),e.refiners.unshift(new Pye),e.refiners.unshift(new Kv),e.refiners.push(new Iye),e.refiners.push(new Kv),e.refiners.push(new Mye),e.refiners.push(new jye(t)),e}function Vye(e){const t=e.getDateWithAdjustedTimezone(),n=new qt(e,{});return el(n,t),M6(n,t),n.assign("timezoneOffset",e.getTimezoneOffset()),n.addTag("casualReference/now"),n}function Kye(e){const t=e.getDateWithAdjustedTimezone(),n=new qt(e,{});return el(n,t),GS(n,t),n.delete("meridiem"),n.addTag("casualReference/today"),n}function Gye(e){return Zye(e).addTag("casualReference/yesterday")}function Yye(e){return YS(e,1).addTag("casualReference/tomorrow")}function Zye(e,t){return YS(e,-1)}function YS(e,t){const n=e.getDateWithAdjustedTimezone(),r=new qt(e,{}),o=new Date(n.getTime());return o.setDate(o.getDate()+t),el(r,o),GS(r,o),r.delete("meridiem"),r}function Jye(e,t=22){const n=e.getDateWithAdjustedTimezone(),r=new qt(e,{});return el(r,n),r.imply("hour",t),r.imply("meridiem",St.PM),r.addTag("casualReference/tonight"),r}function Qye(e,t=20){const n=new qt(e,{});return n.imply("meridiem",St.PM),n.imply("hour",t),n.addTag("casualReference/evening"),n}function Xye(e){const t=new qt(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/midnight"),t}function ebe(e,t=6){const n=new qt(e,{});return n.imply("meridiem",St.AM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/morning"),n}
110function tbe(e,t=15){const n=new qt(e,{});return n.imply("meridiem",St.PM),n.imply("hour",t),n.imply("minute",0),n.imply("second",0),n.imply("millisecond",0),n.addTag("casualReference/afternoon"),n}function nbe(e){const t=new qt(e,{});return t.imply("meridiem",St.AM),t.assign("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/noon"),t}const rbe=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class obe extends vr{innerPattern(t){return rbe}innerExtract(t,n){let r=t.refDate;const o=n[0].toLowerCase();let i=t.createParsingComponents();switch(o){case"now":i=Vye(t.reference);break;case"today":i=Kye(t.reference);break;case"yesterday":i=Gye(t.reference);break;case"tomorrow":case"tmr":case"tmrw":i=Yye(t.reference);break;case"tonight":i=Jye(t.reference);break;case"overmorrow":i=YS(t.reference,2);break;default:if(o.match(/last\s*night/)){if(r.getHours()>6){const a=new Date(r.getTime());a.setDate(a.getDate()-1),r=a}el(i,r),i.imply("hour",0)}break}return i.addTag("parser/ENCasualDateParser"),i}}const ibe=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class abe extends vr{innerPattern(){return ibe}innerExtract(t,n){let r=null;switch(n[1].toLowerCase()){case"afternoon":r=tbe(t.reference);break;case"evening":case"night":r=Qye(t.reference);break;case"midnight":r=Xye(t.reference);break;case"morning":r=ebe(t.reference);break;case"noon":case"midday":r=nbe(t.reference);break}return r&&r.addTag("parser/ENCasualTimeParser"),r}}const sbe=new RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Qo(Hv)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),lbe=1,cbe=2,ube=3;class dbe extends vr{innerPattern(){return sbe}innerExtract(t,n){const r=n[lbe],o=n[ube];let i=r||o;i=i||"",i=i.toLowerCase();let a=null;i=="last"||i=="past"?a="last":i=="next"?a="next":i=="this"&&(a="this");const s=n[cbe].toLowerCase();let l;if(Hv[s]!==void 0)l=Hv[s];else if(s=="weekend")l=a=="last"?Vt.SUNDAY:Vt.SATURDAY;else if(s=="weekday"){const c=t.reference.getDateWithAdjustedTimezone().getDay();c==Vt.SUNDAY||c==Vt.SATURDAY?l=a=="last"?Vt.FRIDAY:Vt.MONDAY:(l=c-1,l=a=="last"?l-1:l+1,l=l%5+1)}else return null;return Dye(t.reference,l,a)}}const hbe=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${Qo(my)})(?=\\s*)(?=\\W|$)`,"i"),mbe=1,pbe=2;class fbe extends vr{innerPattern(){return hbe}innerExtract(t,n){const r=n[mbe].toLowerCase(),o=n[pbe].toLowerCase(),i=my[o];if(r=="next"||r.startsWith("after")){const l={};return l[i]=1,qt.createRelativeFromReference(t.reference,l)}if(r=="last"||r=="past"){const l={};return l[i]=-1,qt.createRelativeFromReference(t.reference,l)}const a=t.createParsingComponents();let s=new Date(t.reference.instant.getTime());return o.match(/week/i)?(s.setDate(s.getDate()-s.getDay()),a.imply("day",s.getDate()),a.imply("month",s.getMonth()+1),a.imply("year",s.getFullYear())):o.match(/month/i)?(s.setDate(1),a.imply("day",s.getDate()),a.assign("year",s.getFullYear()),a.assign("month",s.getMonth()+1)):o.match(/year/i)&&(s.setDate(1),s.setMonth(0),a.imply("day",s.getDate()),a.imply("month",s.getMonth()+1),a.assign("year",s.getFullYear())),a}}const gbe=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),ybe=1,bbe=5,CA=2,NA=3,Xb=4;class wbe{groupNumberMonth;groupNumberDay;constructor(t){this.groupNumberMonth=t?NA:CA,this.groupNumberDay=t?CA:NA}pattern(){return gbe}extract(t,n){const r=n.index+n[ybe].length,o=n.index+n[0].length-n[bbe].length;if(r>0&&t.text.substring(0,r).match("\\d/?$")||o<t.text.length&&t.text.substring(o).match("^/?\\d"))return;const i=t.text.substring(r,o);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!n[Xb]&&i.indexOf("/")<0)return;const a=t.createParsingResult(r,i);let s=parseInt(n[this.groupNumberMonth]),l=parseInt(n[this.groupNumberDay]);if((s<1||s>12)&&s>12)if(l>=1&&l<=12&&s<=31)[l,s]=[s,l];else return null;if(l<1||l>31)return null;if(a.start.assign("day",l),a.start.assign("month",s),n[Xb]){const c=parseInt(n[Xb]),h=L6(c);a.start.assign("year",h)}else{const c=hy(t.refDate,l,s);a.start.imply("year",c)}return a.addTag("parser/SlashDateFormatParser")}}const vbe=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${Oh}
110)(?=\\W|$)`,"i"),kbe=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${fy})(?=\\W|$)`,"i");class xbe extends vr{allowAbbreviations;constructor(t=!0){super(),this.allowAbbreviations=t}innerPattern(){return this.allowAbbreviations?vbe:kbe}innerExtract(t,n){const r=n[1].toLowerCase();let o=Wc(n[2]);if(!o)return null;switch(r){case"last":case"past":case"-":o=dy(o);break}return qt.createRelativeFromReference(t.reference,o)}}function _be(e){return e.text.match(/^[+-]/i)!=null}function PA(e){return e.text.match(/^-/i)!=null}class Sbe extends Rh{shouldMergeResults(t,n,r){return t.match(/^\s*$/i)?_be(r)||PA(r):!1}mergeResults(t,n,r,o){let i=Wc(r.text);PA(r)&&(i=dy(i));const a=qt.createRelativeFromReference(ks.fromDate(n.start.date()),i);return new Fc(n.reference,n.index,`${n.text}${t}${r.text}`,a)}}function DA(e){return e.text.match(/\s+(before|from)$/i)!=null}function Tbe(e){return e.text.match(/\s+(after|since)$/i)!=null}class Ibe extends Rh{patternBetween(){return/^\s*$/i}shouldMergeResults(t,n,r){return!t.match(this.patternBetween())||!DA(n)&&!Tbe(n)?!1:!!r.start.get("day")&&!!r.start.get("month")&&!!r.start.get("year")}mergeResults(t,n,r){let o=Wc(n.text);DA(n)&&(o=dy(o));const i=qt.createRelativeFromReference(ks.fromDate(r.start.date()),o);return new Fc(r.reference,n.index,`${n.text}${t}${r.text}`,i)}}const Ebe=new RegExp(`^\\s*(${py})`,"i"),Abe=1;class Cbe{refine(t,n){return n.forEach(function(r){if(!r.start.isDateWithUnknownYear())return;const o=t.text.substring(r.index+r.text.length),i=Ebe.exec(o);if(!i||i[0].trim().length<=3)return;t.debug(()=>{console.log(`Extracting year: '${i[0]}' into : ${r}`)});const a=Dh(i[Abe]);r.end!=null&&r.end.assign("year",a),r.start.assign("year",a),r.text+=i[0]}),n}}class Nbe extends H6{constructor(){super()}isValid(t,n){const r=n.text.trim();return r===t.text.trim()?!0:r.toLowerCase()==="may"&&!t.text.substring(0,n.index).trim().match(/\b(in)$/i)?(t.debug(()=>{console.log(`Removing unlikely result: ${n}`)}),!1):r.toLowerCase().endsWith("the second")?(t.text.substring(n.index+n.text.length).trim().length>0&&t.debug(()=>{console.log(`Removing unlikely result: ${n}`)}),!1):!0}}class V6{createCasualConfiguration(t=!1){const n=this.createConfiguration(!1,t);return n.parsers.push(new obe),n.parsers.push(new abe),n.parsers.push(new Zge),n.parsers.push(new fbe),n.parsers.push(new xbe),n.refiners.push(new Nbe),n}createConfiguration(t=!0,n=!1){const r=qye({parsers:[new wbe(n),new Uge(t),new Bge,new Vge(n),new dbe,new uye,new pye(t),new yye(t),new kye(t),new aye],refiners:[new _A]},t);return r.parsers.unshift(new tye(t)),r.refiners.unshift(new Ibe),r.refiners.unshift(new Sbe),r.refiners.unshift(new Kv),r.refiners.push(new _A),r.refiners.push(new Cbe),r.refiners.push(new _ye),r}}class bc{parsers;refiners;defaultConfig=new V6;constructor(t){t=t||this.defaultConfig.createCasualConfiguration(),this.parsers=[...t.parsers],this.refiners=[...t.refiners]}clone(){return new bc({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(t,n,r){const o=this.parse(t,n,r);return o.length>0?o[0].start.date():null}parse(t,n,r){const o=new Pbe(t,n,r);let i=[];return this.parsers.forEach(a=>{const s=bc.executeParser(o,a);i=i.concat(s)}),i.sort((a,s)=>a.index-s.index),this.refiners.forEach(function(a){i=a.refine(o,i)}),i}static executeParser(t,n){const r=[],o=n.pattern(t),i=t.text;let a=t.text,s=o.exec(a);for(;s;){const l=s.index+i.length-a.length;s.index=l;const c=n.extract(t,s);if(!c){a=i.substring(s.index+1),s=o.exec(a);continue}let h=null;c instanceof Fc?h=c:c instanceof qt?(h=t.createParsingResult(s.index,s[0]),h.start=c):h=t.createParsingResult(s.index,s[0],c);const d=h.index,p=h.text;t.debug(()=>console.log(`${n.constructor.name} extracted (at index=${d}) '${p}'`)),r.push(h),a=i.substring(d+p.length),s=o.exec(a)}return r}}class Pbe{text;option;reference;refDate;constructor(t,n,r){this.text=t,this.option=r??{},this.reference=ks.fromInput(n,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(t){return t instanceof qt?t:new qt(this.reference,t)}createParsingResult(t,n,r,o){const i=typeof n=="string"?n:this.text.substring(t,n),a=r?this.createParsingComponents(r):null,s=o?this.createParsingComponents(o):null;return new Fc(this.reference,t,i,a,s)}debug(t){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(t):this.option.debug.debug(t))}}const ZS=new V6,Dbe=new bc(ZS.createCasualConfiguration(!1));new bc(ZS.createConfiguration(!0,!1));new bc(ZS.createCasualConfiguration(!0));const K6=Dbe;function Obe(e,t,n){return K6.parse(e,t,n)}function H$e(e,t,n){return K6.parseDate(e,t,n)}const G6="yyyy-MM-dd",Rbe=e=>pc(e,G6,new Date),Mbe=(e,t)=>
110{const n=Rbe(e);return Av(n,t)?"Today":Av(n,$c(t,1))?"Tomorrow":fi(n,"EEE d MMM")},jbe=e=>fi(pc(e,"HH:mm",new Date),"h:mm a"),q$e=(e,t,n)=>{if(!e)return null;const r=Mbe(e,n);return t?`${r}, ${jbe(t)}`:r},$be=new Set(["at","on","by","due"]),Lbe=(e,t)=>{const n=Obe(e,t,{forwardDate:!0});if(n.length!==1)return null;const[r]=n;if((e.slice(0,r.index)+" "+e.slice(r.index+r.text.length)).toLowerCase().split(/[\s,]+/).filter(a=>a.length>0).some(a=>!$be.has(a)))return null;const i=r.start.date();return{date:fi(i,G6),time:r.start.isCertain("hour")?fi(i,"HH:mm"):null}},OA=e=>fde(e,{hours:9,minutes:0,seconds:0,milliseconds:0}),V$e=e=>{const t=OA($c(e,1)),n=OA(mde(e)),r=[{label:"In 1 hour",at:fce(e,1)},{label:"Tomorrow, 9:00 AM",at:t}];return n.getTime()!==t.getTime()&&r.push({label:"Monday, 9:00 AM",at:n}),r},K$e=e=>e?.kind==="action"?{subject:{type:"action_item",id:e.actionItemId},title:e.title}:null,G$e=(e,t)=>{const n=Lbe(e,t);return n?pc(`${n.date} ${n.time??"09:00"}`,"yyyy-MM-dd HH:mm",t):null},zbe=e=>fi(e,"EEE, MMM d, h:mm a"),Y$e=(e,t)=>{const n=new Date;for(const r of e){const{action:o,trigger:i}=r;if(!(r.status!=="active"||o.kind!=="remind_item")&&!(o.subject.type!==t.type||o.subject.id!==t.id)&&!(i.kind!=="schedule"||i.recurrence.freq!=="once")&&!(i.recurrence.at<=n))return{automationId:r.id,at:i.recurrence.at}}return null},Z$e=(e,t)=>({trigger:{kind:"schedule",recurrence:{freq:"once",at:t},timeZone:Is},action:{kind:"remind_item",subject:e.subject},label:{title:e.title.trim()||"Untitled",startsAt:null}}),Ube=e=>e.kind==="meeting_end"||e.kind==="meeting_start",Fbe=["remind_send_summary","review_nudge","meeting_heads_up"],Gv=[{day:1,short:"Mon"},{day:2,short:"Tue"},{day:3,short:"Wed"},{day:4,short:"Thu"},{day:5,short:"Fri"},{day:6,short:"Sat"},{day:7,short:"Sun"}],tl={remind_send_summary:{label:"Remind me to send the summary",choices:[0,15,60,1440],customMax:AL,triggerKind:"meeting_end",verb:"remind",rest:e=>`to send the summary ${e}`,doneLine:"Summary drafted",failedLine:"Couldn't send the reminder"},review_nudge:{label:"Nudge me if it isn't reviewed",choices:[120,1440],triggerKind:"meeting_end",verb:"nudge",rest:e=>`${e} if it isn't reviewed`,doneLine:"Nudged you",failedLine:"Couldn't send the nudge"},meeting_heads_up:{label:"Heads-up before it starts",choices:[5,15,60],triggerKind:"meeting_start",verb:"give",rest:e=>`a heads-up ${e}`,doneLine:"Sent a heads-up",failedLine:"Couldn't send the heads-up"}},Y6=(e,t="meeting_end")=>{const n=t==="meeting_start"?"before it starts":"after it ends";return t==="meeting_end"&&e===0?"when it's ready":`${Wbe(e)} ${n}`},ew=(e,t)=>`${String(e)} ${t}${e===1?"":"s"}`,Wbe=e=>{const t=Math.floor(e/1440),n=Math.floor(e%1440/60),r=e%60,o=[];return t>0&&o.push(ew(t,"day")),n>0&&o.push(ew(n,"hour")),r>0&&o.push(ew(r,"minute")),o.join(" ")},Bbe=e=>fi(pc(e,"HH:mm",new Date),"h:mm a"),RA=e=>typeof e=="number"?e:Array.isArray(e)&&e.length===1?e[0]:null,Hbe=e=>(typeof e=="number"?e:e.weekday)+1,qbe=e=>{const t=Le.fromString(e.rule),n=RA(t.options.byhour),r=RA(t.options.byminute),o=n===null||r===null?null:Bbe(`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`),i=t.options.byweekday;if(o&&t.options.freq===Le.DAILY&&!i?.length)return`Every day at ${o}`;if(o&&t.options.freq===Le.WEEKLY&&t.options.interval===1&&i?.length){const a=i.map(Hbe);return a.length===5&&Gv.slice(0,5).every(l=>a.includes(l.day))?`Weekdays at ${o}`:`${Gv.filter(l=>a.includes(l.day)).map(l=>l.short).join(", ")} at ${o}`}return o?`${t.toText()} at ${o}`:t.toText()},Qp=(e,t,n="you")=>{const r=tl[e];return`${r.verb} ${n} ${r.rest(Y6(t.offsetMinutes,r.triggerKind))}`},MA=e=>{const{trigger:t}=e;if(t.kind==="schedule"){if(t.recurrence.freq==="once")return fi(t.recurrence.at,"EEE, MMM d, h:mm a");const o=qbe(t.recurrence);return`Daily brief, ${o.charAt(0).toLowerCase()}${o.slice(1)}`}const n=e.action.kind;if(e.status==="paused")return`${tl[n].label}: off for this meeting`;const r=Qp(n,t,"me");return r.charAt(0).toUpperCase()+r.slice(1)},J$e=(e,t,n)=>{const r=tl[e.action.kind],o=Kbe(e,t);return o?o.status==="scheduled"?`Will ${Qp(e.action.kind,e.trigger)}`:o.status==="running"?"Sending…":o.status==="awaiting_you"?"Summary ready to send":o.status==="done"?r.doneLine:o.status==="skipped"?o.skipReason==="no_access"?"Skipped: you can't see this recording":o.skipReason==="done"?"Skipped: already reviewed":o.skipReason==="assigned_elsewhere"?"Skipped: assigned to someone else":o.skipReason==="started"?"Skipped: it had started":o.skipReason==="moved_or_cancelled"?"Skipped: moved or cancelled":o.skipReason==="overridden"?"Skipped: this meeting has its own setting":"Skipped":r.failedLine:t.start<=n?e.action.kind==="meeting_heads_up"?"No heads-up for this one":"Waiting for the recording":`Will ${Qp(e.action.kind,e.trigger)}`},Q$e=e=>{if(e.trigger.kind==="schedule"){if(e.trigger.recurrence.freq==="once"){const t=zbe(e.trigger.recurrence.at);return e.action.kind==="remind_item"&&e.action.subject.type==="action_item"?`Snoozed until ${t}`:`We'll give you a heads-up ${t}`}return"We'll send you a daily brief"}return`We'll ${Qp(e.action.kind,e.trigger)}`},Vbe=(e,t)=>
110{if(t==="series"){const r=e.source.seriesId;return r?{kind:"series",seriesId:r}:null}const{stableOccurrenceId:n}=e;return n?{kind:"occurrence",stableOccurrenceId:n}:null},jA=(e,t,n,r,o="active")=>{const i=Vbe(e,t);if(!i)return null;const a={title:e.title.trim()||"Untitled meeting",startsAt:e.start},s=o==="paused"?{status:o}:{};return n==="meeting_heads_up"?{trigger:{kind:"meeting_start",offsetMinutes:r,scope:i},action:{kind:n},label:a,...s}:{trigger:{kind:"meeting_end",offsetMinutes:r,scope:i},action:{kind:n},label:a,...s}},gy=(e,t)=>{const n=e.filter(r=>Ube(r.trigger));return t.kind==="upcoming"?n.filter(r=>{const o=r.trigger.scope;return o.kind==="series"?o.seriesId===t.source.seriesId:o.stableOccurrenceId===t.stableOccurrenceId}):t.kind==="recorded"?n.filter(r=>r.runs.some(o=>o.subject?.id===t.transcriptId)):[]},Kbe=(e,t)=>t.kind==="recorded"?e.runs.find(n=>n.subject?.id===t.transcriptId)??null:t.kind==="upcoming"?e.runs.find(n=>n.subject?.type==="occurrence"&&n.subject.id===t.stableOccurrenceId)??null:null,ep={kind:"off"},Z6=e=>!!e.source.seriesId,Yv=(e,t,n)=>e.filter(r=>r.status!=="ended"&&r.action.kind===t&&r.trigger.scope.kind===n),$A=e=>{if(e.length===0)return null;const t=e.filter(n=>n.status==="active").map(n=>n.trigger.offsetMinutes);return t.length>0?{kind:"at",offsetMinutes:Math.min(...t)}:ep},Gbe=(e,t)=>{const n=gy(e,t),r=Z6(t);return Fbe.map(o=>{const i=r?$A(Yv(n,o,"series"))??ep:null,s=$A(Yv(n,o,"occurrence"))??(r?{kind:"inherit"}:ep);return{action:o,series:i,occurrence:s,effective:s.kind==="inherit"?i??ep:s,overridesSeries:r&&s.kind!=="inherit"}})},Ybe=e=>e.filter(t=>t.effective.kind==="at").length,Zbe=e=>{const t=Math.floor(e/1440),n=Math.floor(e%1440/60),r=e%60,o=[];return t>0&&o.push(`${String(t)} ${t===1?"day":"days"}`),n>0&&o.push(`${String(n)} hr`),r>0&&o.push(`${String(r)} min`),o.join(" ")},X$e=(e,t)=>{if(e.kind==="off")return"Off";const{triggerKind:n}=tl[t];return n==="meeting_end"&&e.offsetMinutes===0?"When ready":`${Zbe(e.offsetMinutes)} ${n==="meeting_start"?"before":"after"}`},e2e=(e,t)=>{const n=Y6(e,tl[t].triggerKind);return n.charAt(0).toUpperCase()+n.slice(1)},t2e=e=>{const t=[e.series,e.occurrence].filter(n=>n?.kind==="at").map(n=>n.offsetMinutes);return[...new Set([...tl[e.action].choices,...t])].sort((n,r)=>n-r)},n2e=(e,t)=>e.kind===t.kind&&(e.kind!=="at"||t.kind==="at"&&e.offsetMinutes===t.offsetMinutes),r2e=(e,t,n,r,o)=>{const i=Yv(gy(e,t),n.action,r).map(s=>s.id);if(o.kind==="at")return{removeIds:[],create:jA(t,r,n.action,o.offsetMinutes)};if(o.kind==="inherit"||r==="series"||!Z6(t))return{removeIds:i,create:null};const a=n.series?.kind==="at"?n.series.offsetMinutes:tl[n.action].choices[0];return{removeIds:[],create:jA(t,"occurrence",n.action,a,"paused")}},o2e=(e,t)=>{const n=gy(e,t);if(t.kind!=="upcoming")return n;const r=new Set(n.filter(o=>o.trigger.scope.kind==="occurrence").map(o=>o.action.kind));return n.filter(o=>o.status==="active"&&(o.trigger.scope.kind==="occurrence"||!r.has(o.action.kind)))},i2e=(e,t)=>{if(t.kind!=="upcoming")return{on:gy(e,t).length>0,overrides:!1};const n=Gbe(e,t);return{on:Ybe(n)>0,overrides:n.some(r=>r.overridesSeries)}},a2e=e=>e.trigger.scope.kind==="series"?`Every ${e.label.title}`:"This meeting",LA=(e,t)=>`${String(e)} ${t}${e===1?"":"s"}`,s2e=e=>{if(!e)return null;const t=[e.unreviewedActionCount>0?LA(e.unreviewedActionCount,"action item"):null,e.unreviewedRaidCount>0?LA(e.unreviewedRaidCount,"RAID"):null].filter(r=>r!==null);if(t.length===0)return null;const n=e.unreviewedActionCount+e.unreviewedRaidCount===1;return`${t.join(" and ")} ${n?"isn't":"aren't"} in this email yet. ${n?"It's":"They're"} still unreviewed.`},l2e=e=>[e.on?"reminder on":null,e.overrides?"overrides series":null].filter(Boolean).join(", "),Jbe=()=>typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):[Is],zA=["MO","TU","WE","TH","FR","SA","SU"],Qbe=(e,t,n)=>{const[r,o]=n.split(":"),i=`BYHOUR=${Number(r)};BYMINUTE=${Number(o)}`;return e==="daily"?`FREQ=DAILY;${i}`:`FREQ=WEEKLY;BYDAY=${(e==="weekdays"?zA.slice(0,5):t.map(s=>zA[s-1])).join(",")};${i}`},Xbe=(e,t,n,r)=>!n||e==="weekly"&&t.length===0?null:{trigger:{kind:"schedule",recurrence:{freq:"rrule",rule:Qbe(e,t,n)},timeZone:r},action:{kind:"daily_brief"},label:{title:"Daily brief",startsAt:null}};function ewe({open:e,onOpenChange:t}){const[n,r]=g.useState("weekdays"),[o,i]=g.useState([1,2,3,4,5]),[a,s]=g.useState("08:00"),[l,c]=g.useState(Is),h=Cfe(),d=g.useMemo(()=>{const y=Jbe();return y.includes(l)?y:[...y,l].sort()},[l]),p=Xbe(n,o,a,l),f=y=>{t(y),!y&&(r("weekdays"),i([1,2,3,4,5]),s("08:00"),c(Is))},b=()=>f(!1);return u.jsx(za,{open:e,onOpenChange:f,children:u.jsxs(Ua,{className:"sm:max-w-md",children:[u.jsxs(Zs,{children:[u.jsx(Fa,{children:"Daily brief"}),u.jsx(jc,{children:"Your meetings, what's waiting on you, and your action items and RAIDs due or overdue, at the start of your day."})]}),u.jsxs("div",{className:"flex flex-col gap-4",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ku,{children:"Frequency"}),u.jsxs(yo,{value:n,onValueChange:y=>r(y),children:[u.jsx(wo,{className:"h-9 text-sm","aria-label":"Frequency",children:u.jsx(bo,{})}),u.jsxs(vo,{children:[u.jsx(dn,{value:"daily",children:"Every day"}
110),u.jsx(dn,{value:"weekdays",children:"Weekdays"}),u.jsx(dn,{value:"weekly",children:"Chosen days"})]})]}),n==="weekly"?u.jsx(v6,{type:"multiple",value:o.map(String),onValueChange:y=>i(y.map(Number)),variant:"outline",size:"sm",className:"flex flex-wrap justify-start gap-1",children:Gv.map(({day:y,short:w})=>u.jsx(k6,{value:String(y),className:"px-2 text-xs",children:w},y))}):null]}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ku,{htmlFor:"brief-time",children:"Time"}),u.jsx(Er,{id:"brief-time",type:"time",step:300,value:a,onChange:y=>s(y.target.value),className:"h-9 w-[8rem] text-sm"})]}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(Ku,{htmlFor:"brief-time-zone",children:"Time zone"}),u.jsxs(yo,{value:l,onValueChange:c,children:[u.jsx(wo,{id:"brief-time-zone",className:"h-9 text-sm",children:u.jsx(bo,{})}),u.jsx(vo,{children:d.map(y=>u.jsx(dn,{value:y,children:y.replaceAll("_"," ")},y))})]})]})]}),u.jsxs(_h,{children:[u.jsx(Ve,{type:"button",variant:"ghost",onClick:b,children:"Cancel"}),u.jsx(Ve,{type:"button",className:"bg-teal text-inverse hover:bg-teal-hover",disabled:!p||h.isPending,onClick:()=>{p&&h.mutate(p,{onSuccess:b})},children:"Set up brief"})]})]})})}const twe="Add a daily brief with New automation, or right-click a meeting on the calendar to automate it.",nwe=(e,t)=>{const n=new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZone:t}).format(e);if(t===Is)return`Next: ${n}`;const r=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"short"}).formatToParts(e).find(o=>o.type==="timeZoneName")?.value;return r?`Next: ${n} ${r}`:`Next: ${n}`},UA=e=>{const{label:t,trigger:n,status:r,runs:o,action:i}=e;if(i.kind==="remind_item")return i.subject.type==="action_item"?`Snooze “${t.title}”`:`Remind me about “${t.title}”`;if(n.kind==="schedule"){if(r==="paused")return"Paused";const a=o.find(s=>s.status==="scheduled");return a?nwe(a.dueAt,n.timeZone):"Not yet scheduled"}return n.scope.kind==="series"?`Every ${t.title}`:t.startsAt?`${t.title} · ${fi(t.startsAt,"EEE d MMM")}`:t.title};function rwe(){const[e,t]=g.useState(!1),n=Afe(),r=Pfe(),o=Nfe(),i=n.data?.items??[];return u.jsxs("div",{className:"flex flex-col gap-3",children:[u.jsxs("div",{className:"flex items-start justify-between gap-3",children:[u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("h3",{className:"flex items-center gap-2 text-sm font-semibold",children:[u.jsx(Y$,{className:"size-4 text-muted-foreground"}),"Automations"]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Things Luniko does for you when your meetings happen, or every day at a time you pick."})]}),u.jsx(Ve,{size:"sm",className:"bg-teal text-inverse hover:bg-teal-hover",onClick:()=>t(!0),children:"New automation"})]}),n.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading…"}):i.length===0?u.jsx("p",{className:"rounded-lg border border-dashed px-4 py-6 text-center text-sm text-muted-foreground",children:"No automations yet."}):u.jsx("ul",{className:"flex flex-col divide-y rounded-lg border",children:i.map(a=>u.jsxs("li",{className:"flex items-center gap-3 px-4 py-3",children:[u.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[u.jsx("span",{className:"truncate text-sm font-medium",children:a.action.kind==="daily_brief"?MA(a):UA(a)}),u.jsx("span",{className:"text-xs text-muted-foreground",children:a.action.kind==="daily_brief"?UA(a):MA(a)})]}),a.trigger.kind==="schedule"&&a.action.kind!=="remind_item"?u.jsx(Ve,{variant:"ghost",size:"sm",onClick:()=>o.mutate({automationId:a.id,status:a.status==="paused"?"active":"paused"}),children:a.status==="paused"?"Resume":"Pause"}):null,u.jsx(Ve,{variant:"ghost",size:"sm",onClick:()=>r.mutate(a.id),children:"Remove"})]},a.id))}),u.jsx("p",{className:"text-xs text-muted-foreground",children:twe}),u.jsx(ewe,{open:e,onOpenChange:t})]})}const FA=[{id:"general",label:"General",icon:U$},{id:"meetings",label:"Meetings",icon:Hu},{id:"notifications",label:"Notifications",icon:j$},{id:"following",label:"Following",icon:ud},{id:"automations",label:"Automations",icon:Y$},{id:"command-center",label:"Command Center",icon:n_},{id:"email",label:"Email",icon:H$},{id:"reactions",label:"Reactions",icon:HY},{id:"modules",label:"Modules",icon:V$}],owe={pulse:"general",flags:"general",button:"general",dashboard:"general"},iwe=2e3;function WA(){const[e,t]=g.useState(!1),n=g.useRef(null);g.useEffect(()=>()=>{n.current!==null&&window.clearTimeout(n.current)},[]);const r=g.useCallback(()=>{t(!0),n.current!==null&&window.clearTimeout(n.current),n.current=window.setTimeout(()=>t(!1),iwe)},[]);return[e,r]}function awe({open:e,onOpenChange:t,initialCategory:n}){const[r,o]=g.useState(()=>{const z=(n&&owe[n])??n;return z&&FA.some(V=>V.id===z)?z:"general"}),i=Cn(),a=pie(),s=fie(),l=kie(),c=vie(),h=bie(),d=gie(),p=wie(),f=yie(),b=Qme(),y=(i.data?.capabilities??[]).includes("schedules.run_mirror"),w=(i.data?.capabilities??[]).includes("org.configure_modules"),x=(Wz({enabled:w}).data?.items.length??0)>0,S=(i.data?.capabilities??[]).includes("automations.use"),I=FA.filter(z=>
110(z.id!=="modules"||x)&&(z.id!=="automations"||S)),[E,C]=WA(),[$,T]=WA(),P=g.useCallback(z=>{a.mutate(z)},[a]),D=g.useCallback(z=>{h.mutate(z,{onSuccess:C})},[h,C]),H=g.useCallback(z=>{p.mutate(z,{onSuccess:T})},[p,T]);return u.jsx(za,{open:e,onOpenChange:t,children:u.jsxs(Ua,{className:"sm:max-w-[1180px] sm:w-[min(1180px,95vw)] p-0 gap-0 h-[min(800px,92vh)] flex flex-col overflow-hidden",children:[u.jsx(Fa,{className:"sr-only",children:"Settings"}),u.jsx("div",{className:"flex gap-1 overflow-x-auto border-b px-6 pt-2.5 pr-14 shrink-0",children:I.map(z=>u.jsxs("button",{onClick:()=>o(z.id),className:X("flex flex-none items-center gap-2 border-b-2 px-3 py-2.5 text-[13.5px] transition-colors",r===z.id?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"),children:[u.jsx(z.icon,{className:"h-4 w-4 shrink-0"}),z.label]},z.id))}),u.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[r==="general"&&u.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto p-6",children:u.jsxs("div",{className:"mx-auto flex max-w-3xl flex-col gap-2.5",children:[u.jsx(epe,{value:i.data?.landingDefaults?.defaultScreen??null,options:b,automaticPath:ZF(i.data?.capabilities??[]),onUpdate:D,isPending:h.isPending,saved:E}),u.jsx(npe,{value:i.data?.dictationDefaults?.language??null,onUpdate:H,isPending:p.isPending,saved:$}),u.jsx(Upe,{defaults:i.data?.pointsDefaults??null,onUpdate:z=>f.mutate(z),isPending:f.isPending}),y&&u.jsx(Vpe,{})]})}),r==="following"&&u.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto p-6",children:u.jsx("div",{className:"mx-auto flex max-w-3xl flex-col gap-2.5",children:u.jsx(Ife,{})})}),r==="automations"&&u.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto p-6",children:u.jsx("div",{className:"mx-auto flex max-w-3xl flex-col gap-2.5",children:u.jsx(rwe,{})})}),r==="meetings"&&u.jsx(zpe,{onNavigate:()=>t(!1),display:i.data?.meetingDisplayDefaults??null,onUpdateDisplay:z=>d.mutate(z),isDisplayPending:d.isPending}),r==="command-center"&&u.jsx(Sme,{defaults:i.data?.commandCenterDefaults??null,onUpdate:P,isPending:a.isPending}),r==="email"&&u.jsx(Eme,{defaults:i.data?.emailIngestionDefaults??null,onUpdate:z=>l.mutate(z),isPending:l.isPending}),r==="notifications"&&u.jsx(Spe,{preferences:i.data?.notificationPreferences??null,onUpdate:z=>c.mutate(z),isPending:c.isPending,timeZone:i.data?.timeZone,error:c.error?.message}),r==="reactions"&&u.jsx(Fme,{glyphs:i.data?.reactionGlyphs??null,onUpdate:z=>s.mutate({glyphs:z}),isPending:s.isPending}),r==="modules"&&u.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto p-6",children:u.jsx(spe,{})})]})]})})}const Zv="luniko:open-send-notetaker",swe=()=>{window.dispatchEvent(new CustomEvent(Zv))};function lwe(){const[e,t]=g.useState(!1);return g.useEffect(()=>{const n=()=>{t(!0)};return window.addEventListener(Zv,n),()=>{window.removeEventListener(Zv,n)}},[]),u.jsx(za,{open:e,onOpenChange:t,children:u.jsxs(Ua,{className:"sm:max-w-lg",children:[u.jsxs(Zs,{children:[u.jsx(Fa,{children:"Send the note-taker into a meeting"}),u.jsx(jc,{children:"Paste the join link for a meeting that is happening now. Somebody in the meeting may need to admit it."})]}),u.jsx(s6,{autoFocus:!0,onSent:()=>{t(!1)}})]})})}const Jv="luniko:open-settings",Qv="settings",J6=e=>{window.dispatchEvent(new CustomEvent(Jv,{detail:{category:e}}))},BA=()=>{const e=new URLSearchParams(window.location.search).get(Qv);return e||null},cwe=()=>{const e=new URL(window.location.href);e.searchParams.has(Qv)&&(e.searchParams.delete(Qv),window.history.replaceState(window.history.state,"",e.toString()))},uwe="luniko:restart-dashboard-tour",Xv="tour",dwe="restart",hwe=()=>{window.dispatchEvent(new CustomEvent(uwe))},c2e=()=>new URLSearchParams(window.location.search).get(Xv)===dwe,u2e=()=>{const e=new URL(window.location.href);e.searchParams.has(Xv)&&(e.searchParams.delete(Xv),window.history.replaceState(window.history.state,"",e.toString()))},mwe="luniko:open-dashboard-shortcuts",pwe=()=>{window.dispatchEvent(new CustomEvent(mwe))};let ek=null;const tk=new Set;
110function d2e(e){ek!==e&&(ek=e,tk.forEach(t=>t()))}function fwe(){return ek}function gwe(e){return tk.add(e),()=>tk.delete(e)}function ywe(e){return g.useSyncExternalStore(gwe,fwe)===e}function bwe(e){const t=g.useRef(!1),n=g.useRef(!1);return g.useEffect(()=>{e&&(t.current=!0)},[e]),{onOpenAutoFocus:r=>{e&&r.preventDefault()},markSuppressed:()=>{n.current=!0},onCloseAutoFocus:r=>{!t.current&&!n.current||(t.current=!1,n.current=!1,r.preventDefault())}}}const tw=e=>{const t=e?.trim();return t?t.charAt(0).toUpperCase():null};function wwe(){const{logout:e}=Pe(),t=nr(),r=tB().pathname==="/dashboard",i=Cn().data??null,[a,s]=g.useState(()=>BA()),[l,c]=g.useState(()=>BA()!==null),[h,d]=g.useState(!1),p=ywe("account-menu");g.useEffect(()=>{cwe();const S=I=>{const E=I.detail?.category;s(E??null),c(!0)};return window.addEventListener(Jv,S),()=>window.removeEventListener(Jv,S)},[]);const f=()=>{t?.reset(),e({logoutParams:{returnTo:window.location.origin}})},{onCloseAutoFocus:b,markSuppressed:y}=bwe(p),w=()=>{y(),hwe()},k=()=>{y(),pwe()},x=tw(i?.name)??tw(i?.nickname)??tw(i?.email)??"?";return u.jsxs(u.Fragment,{children:[u.jsxs(Ble,{open:h||p,onOpenChange:d,modal:p?!1:void 0,children:[u.jsx(Hle,{"aria-label":"Open account menu","data-dashboard-tour":"account-menu",className:"rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring",children:i?.pictureUrl?u.jsx("img",{src:i.pictureUrl,alt:i.name??i.email??"Profile",className:"h-8 w-8 rounded-full object-cover bg-card"}):u.jsx("div",{className:"h-8 w-8 rounded-full bg-card text-sm font-medium flex items-center justify-center text-muted-foreground",children:x})}),u.jsxs(qle,{align:"end",className:"min-w-56",onCloseAutoFocus:b,children:[i?u.jsxs(u.Fragment,{children:[u.jsxs(Vle,{className:"space-y-0.5",children:[u.jsx("div",{className:"truncate text-sm font-medium",children:i.nickname??"Profile"}),i.email?u.jsx("div",{className:"truncate text-xs font-normal text-muted-foreground",children:i.email}):null]}),u.jsx(Kle,{})]}):null,u.jsx(uu,{asChild:!0,children:u.jsxs(ji,{to:"/profile",className:"flex w-full cursor-pointer items-center gap-2",children:[u.jsx(yg,{className:"h-4 w-4"}),"Profile"]})}),u.jsxs(uu,{onClick:()=>c(!0),className:"cursor-pointer",children:[u.jsx(LY,{className:"h-4 w-4"}),"Settings"]}),r?u.jsxs(u.Fragment,{children:[u.jsxs(uu,{onClick:k,className:"cursor-pointer",children:[u.jsx(eY,{className:"h-4 w-4"}),"Keyboard shortcuts"]}),u.jsxs(uu,{onClick:w,className:"cursor-pointer",children:[u.jsx(U$,{className:"h-4 w-4"}),"Replay the dashboard tour"]})]}):null,u.jsxs(uu,{onClick:f,className:"cursor-pointer",children:[u.jsx(uY,{className:"h-4 w-4"}),"Log out"]})]})]}),u.jsx(awe,{open:l,onOpenChange:c,initialCategory:a},a??"settings"),u.jsx(lwe,{})]})}const vwe={actionItem:[{key:"taskName",label:"Task Name",kind:"text"},{key:"additionalNote",label:"Note",kind:"text"},{key:"dueDate",label:"Due Date",kind:"date"},{key:"dueTime",label:"Due Time",kind:"text"},{key:"responsibleDoer",label:"Responsible Doer",kind:"person"},{key:"destination",label:"Destination",kind:"enum"},{key:"done",label:"Done",kind:"boolean"}],raidEntry:[{key:"title",label:"Title",kind:"text"},{key:"type",label:"Type",kind:"enum"},{key:"detail",label:"Detail",kind:"text"},{key:"dueDate",label:"Due Date",kind:"date"},{key:"responsibleDoer",label:"Responsible Doer",kind:"person"},{key:"authority",label:"Authority",kind:"person"},{key:"supportHelper",label:"Support",kind:"people"},{key:"informed",label:"Informed",kind:"people"},{key:"potentialImpact",label:"Potential Impact",kind:"enum"},{key:"status",label:"Status",kind:"enum"},{key:"disposition",label:"Disposition",kind:"enum"},{key:"actionNotes",label:"Action Notes",kind:"text"}],scheduleTask:[{key:"title",label:"Title",kind:"text"},{key:"plannedStart",label:"Start",kind:"date"},{key:"plannedFinish",label:"Finish",kind:"date"},{key:"actualCompletedAt",label:"Completed On",kind:"date"},{key:"percentComplete",label:"% Complete",kind:"text"},{key:"health",label:"Health",kind:"enum"},{key:"isFlagged",label:"Flagged",kind:"boolean"},{key:"isKeyActivity",label:"Key WBS",kind:"boolean"},{key:"isMajorDate",label:"Major Date",kind:"boolean"},{key:"responsible",label:"Responsible",kind:"people"},{key:"accountable",label:"Accountable",kind:"people"},{key:"support",label:"Support",kind:"people"},{key:"consulted",label:"Consulted",kind:"people"},{key:"informed",label:"Informed",kind:"people"},{key:"notes",label:"Note",kind:"text"}]},h2e={actionItem:"Action Item",raidEntry:"RAID Entry",scheduleTask:"Schedule Task"},m2e=e=>{const t=e.changes;return t&&typeof t=="object"&&t.fields?Object.keys(t.fields):[]},p2e=e=>e==="create"||e==="bulkInsert"||e==="delete"||e==="bulkDelete"||e==="restore",kwe={create:"created this item",bulkInsert:"created this item",delete:"deleted this item",bulkDelete:"deleted this item",restore:"restored this item",update:"updated this item",bulkUpdate:"updated this item"},f2e=e=>kwe[e]??`performed "${e}" on this item`,Q6=e=>{const t=Math.floor((Date.now()-e.getTime())/1e3);if(t<60)return"just now";const n=Math.floor(t/60);if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const o=Math.floor(r/24);return o<30?`${o}d ago`:e.toLocaleDateString()},HA=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),g2e=e=>
110{const t=HA(new Date),n=HA(e),r=864e5;return n===t?"Today":n===t-r?"Yesterday":e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:e.getFullYear()===new Date().getFullYear()?void 0:"numeric"})},xwe=(e,t)=>vwe[e].find(n=>n.key===t);function y2e(e,t,n){if(n==null||n==="")return"";const r=String(n);switch(t){case"destination":return e==="actionItem"?Ep(r):jS(r);case"status":return e==="actionItem"?ly(r):Vo(r);case"type":return MS(r);case"potentialImpact":return $S(r);case"percentComplete":return`${Math.round(Number(n)*100)}%`;case"health":return _we[r]??r}const o=xwe(e,t);if(o?.kind==="boolean")return n===!0||r==="true"?"Yes":"No";if(o?.kind==="date"){const i=r.match(/^(\d{4})-(\d{2})-(\d{2})$/),a=i?new Date(Number(i[1]),Number(i[2])-1,Number(i[3])):new Date(r);return Number.isNaN(a.getTime())?r:fi(a,"MMM d, yyyy")}return o?.kind==="enum"?Vo(r):r}const _we={completed:"Completed",onTrack:"On Track",slightlyBehind:"Slightly Behind",baselineMissing:"Baseline Missing",milestone:"Milestone",behind:"Behind",overdue:"Overdue",future:"Future Task",missingDates:"Duration Missing"};function b2e(e){return e?$Z[e]??Vo(e):null}function Swe(e,t){return{to:"/meetings/$meetingId",params:{meetingId:e},search:{tab:"transcript",redaction:t}}}function Twe(e,t){return{to:"/meetings/live/$meetingId",params:{meetingId:e},search:{redaction:t}}}const Iwe=6,w2e=500,Ewe=async(e,t,n=Iwe)=>{const r=[...e];let o=0;const i=async()=>{for(let a=r.shift();a!==void 0;a=r.shift())try{await t(a)}catch{o+=1}};return await Promise.all(Array.from({length:Math.min(n,r.length)},i)),{total:e.length,failed:o}};function JS(e,t,n){e.setQueryData(zt.detail(t),r=>r&&{...r,transcript:{...r.transcript,redactions:n}}),e.setQueryData(zt.redactions(t),r=>r&&{redactions:n})}const v2e=()=>{const e=Bi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.create(r),onSuccess:(r,o)=>{n?.capture("curation_item_created",{item_type:"action",source:o.source,destination:o.destination,transcript_id:o.transcriptRef?.id,submission_state:o.submissionState})},onSettled:async()=>{await Promise.all([qs(t),or(t)])}})},k2e=()=>{const e=Bi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.update(r),onSuccess:(r,o)=>{o.input.submissionState&&n?.capture("curation_stage_changed",{item_type:"action",stage:o.input.submissionState,item_id:o.id})},onSettled:async()=>{await Promise.all([qs(t),or(t)])}})},x2e=()=>{const e=Bi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.sync(r),onSuccess:(r,o)=>{n?.capture("smartsheet_items_submitted",{item_type:"action",created_count:o.created.items.length,upserted_count:o.upsert.items.length,deleted_count:o.deleted.items.length})},onSettled:async()=>{await Promise.all([or(t),qs(t)])}})},_2e=()=>{const e=Bi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.delete(r),onSuccess:(r,o)=>{n?.capture("curation_item_discarded",{item_type:"action",item_id:o.id,reason:o.reason})},onSettled:async()=>{await Promise.all([qs(t),or(t)])}})},S2e=e=>{const t=Bi(),n=ge(),r=nr(),o=e?.invalidate??!0;return pe({mutationFn:async i=>t.restore(i),onSuccess:(i,a)=>{r?.capture("curation_item_restored",{item_type:"action",item_id:a.id})},onSettled:async()=>{o&&await Promise.all([qs(n),or(n)])}})},T2e=()=>{const e=Hi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.create(r),onSuccess:(r,o)=>{n?.capture("curation_item_created",{item_type:"raid",raid_type:o.type,transcript_id:o.transcriptRef?.id,submission_state:o.submissionState})},onSettled:async()=>{await Promise.all([Vs(t),or(t)])}})},I2e=()=>{const e=Hi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.update(r),onSuccess:(r,o)=>{o.input.submissionState&&n?.capture("curation_stage_changed",{item_type:"raid",raid_type:r.type,stage:o.input.submissionState,item_id:o.id})},onSettled:async()=>{await Promise.all([Vs(t),or(t)])}})},E2e=()=>{const e=Hi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.restore(r),onSuccess:(r,o)=>{n?.capture("curation_item_restored",{item_type:"raid",item_id:o.id})},onSettled:async()=>{await Promise.all([Vs(t),or(t)])}})},A2e=()=>{const e=Hi(),t=ge();return pe({mutationFn:async n=>e.delete({...n,sync:!0}),onSettled:async()=>{await Vs(t)}})},C2e=()=>{const e=Hi(),t=ge(),n=nr();return pe({mutationFn:async r=>e.sync(r),onSuccess:(r,o)=>{n?.capture("smartsheet_items_submitted",{item_type:"raid",created_count:o.created.items.length,upserted_count:o.upsert.items.length,deleted_count:o.deleted.items.length})},onSettled:async()=>{await Promise.all([Vs(t),or(t)])}})},N2e=()=>{const e=Hn(),t=ge();return pe({mutationFn:async n=>e.update(n),onSettled:async()=>{await or(t)}})},P2e=()=>{const e=Hn(),t=ge(),n=nr();return pe({mutationFn:async r=>e.deleteMeeting(r),onSuccess:(r,o)=>{n?.capture("meeting_deleted",{meeting_id:o.meetingId,kind:o.input.kind}),t.setQueryData(zt.detail(o.meetingId),r)},onSettled:async()=>{await t.invalidateQueries({queryKey:zt.all})}})},D2e=()=>{const e=Hn(),t=ge();return pe({mutationFn:async n=>e.restoreMeeting(n),onSuccess:(n,r)=>{t.setQueryData(zt.detail(r.meetingId),n)},onSettled:async()=>{await t.invalidateQueries({queryKey:zt.all})}})},O2e=()=>{const e=Hn(),t=ge(),n=nr();return pe({mutationFn:async r=>e.assignReviewer(r),onSuccess:(r,o)=>{n?.capture("meeting_reviewer_assigned",{meeting_id:o.meetingId,reviewer_auth0_user_id:o.input.reviewerAuth0UserId}),t.setQueryData(zt.detail(o.meetingId),r)},onSettled:async()=>{await or(t),await Gs(t)}})},R2e=()=>{const e=uh();return pe({mutationFn:async t=>e.setOccurrenceGrants(t.stableOccurrenceId,t.input),onError:()=>{rt.error("Failed to update meeting visibility. Please try again.")}})},M2e=()=>{const e=uh(),t=ge();return pe({mutationFn:async n=>e.setOccurrenceShared(n.stableOccurrenceId,n.input),onError:()=>{rt.error("Failed to share the meeting. Please try again.")},onSettled:async(n,r,o)=>{await t.invalidateQueries({queryKey:Fz.upcoming}),await t.invalidateQueries({queryKey:Hg.list("future_meeting",o.stableOccurrenceId)})}})},j2e=()=>{const e=Hn(),t=ge();return pe({mutationFn:async n=>e.setGrants(n),onSuccess:(n,r)=>{t.setQueryData(zt.detail(r.meetingId),n)},onError:()=>{rt.error("Failed to update meeting visibility. Please try again.")},onSettled:async()=>{await or(t)}})},$2e=()=>{const e=tS(),t=ge();return pe({mutationFn:async n=>e.setShared(n.meetingId,n.input),onSuccess:(n,r)=>{t.setQueryData(dc.detail(r.meetingId),n)},onError:()=>{rt.error("Failed to update sharing. Please try again.")},onSettled:async(n,r,o)=>{await t.invalidateQueries({queryKey:dc.all}),await t.invalidateQueries({queryKey:Hg.list("liveMeeting",o.meetingId)})}})},L2e=()=>{const e=Hn(),t=ge();return pe({mutationFn:async n=>e.setShared(n),onSuccess:(n,r)=>{t.setQueryData(zt.detail(r.meetingId),n)},onError:()=>{rt.error("Failed to update sharing. Please try again.")},onSettled:async(n,r,o)=>{await or(t),await t.invalidateQueries({queryKey:Hg.list("meeting",o.meetingId)})}})},z2e=()=>{const e=Hn(),t=ge();return pe({mutationFn:async n=>e.addRedaction(n),onSuccess:(n,r)=>{JS(t,r.meetingId,n.redactions)},onSettled:async(n,r,o)=>{await or(t),await t.invalidateQueries({queryKey:zt.detail(o.meetingId)}),o.input.deleteItems?.length&&(await qs(t),await Vs(t))}})},U2e=()=>{const e=Hn(),t=ge();return pe({mutationFn:async n=>e.strikeLastRedaction(n),onSuccess:(n,r)=>{JS(t,r.meetingId,n.redactions)},onSettled:async(n,r,o)=>{await or(t),await t.invalidateQueries({queryKey:zt.detail(o.meetingId)})}})};function X6(e,t){const n=ge();return pe({mutationFn:async r=>e(r),onMutate:async r=>{await n.cancelQueries({queryKey:zt.pendingRedactions});const o=n.getQueryData(zt.pendingRedactions);return n.setQueryData(zt.pendingRedactions,i=>i&&{...i,pages:i.pages.map(a=>({...a,items:a.items.filter(s=>s.redactionId!==r.redactionId)}))}),{previous:o}},onError:(r,o,i)=>{i?.previous!==void 0&&n.setQueryData(zt.pendingRedactions,i.previous),rt.error(t)},onSuccess:(r,o)=>{JS(n,o.meetingId,r.redactions)},onSettled:async(r,o,i)=>{await n.invalidateQueries({queryKey:zt.pendingRedactions}),await n.invalidateQueries({queryKey:zt.redactions(i.meetingId)}),await or(n),await n.invalidateQueries({queryKey:zt.detail(i.meetingId)}),i.deleteItems?.length&&(await qs(n),await Vs(n))}})}const F2e=()=>{const e=Hn();return X6(t=>e.approveRedaction(t),"Failed to approve the redaction")},W2e=()=>{const e=Hn();return X6(t=>e.rejectRedaction(t),"Failed to reject the suggestion")},B2e=()=>{const e=Coe(),t=ge();return pe({mutationFn:async n=>e.setGrants(n.clipId,n.input),onError:()=>{rt.error("Failed to update who can see this clip. Please try again.")},onSettled:async()=>{await t.invalidateQueries({queryKey:["clips"]})}})},Awe=()=>{const e=qi(),t=ge();return pe({mutationFn:async n=>e.delete(n),onMutate:async n=>{const r=hc.list();await t.cancelQueries({queryKey:r});const o=t.getQueryData(r);return t.setQueryData(r,i=>i&&{...i,items:i.items.filter(a=>a.id!==n)}),{prev:o}},onError:(n,r,o)=>{o?.prev&&t.setQueryData(hc.list(),o.prev)},onSettled:async()=>{await Gs(t)}})},Cwe=()=>{const e=qi(),t=ge();return pe({mutationFn:async()=>e.deleteAll(),onSettled:async()=>{await Gs(t)}})},Nwe=()=>{const e=qi(),t=ge();return pe({mutationFn:async n=>e.markRead(n),onSettled:async()=>{await Gs(t)}})},Pwe=()=>{const e=qi(),t=ge();return pe({mutationFn:async n=>e.markUnread(n),onSettled:async()=>{await Gs(t)}})},Dwe=()=>{const e=qi(),t=ge();return pe({mutationFn:async({id:n,key:r})=>e.markItemRead(n,r),onSettled:async()=>{await Gs(t)}})},Owe=()=>{const e=qi(),t=ge();return pe({mutationFn:async()=>e.markAllRead(),onSettled:async()=>{await Gs(t)}})},Rwe=()=>{const e=Dc(),t=ge();return pe({mutationFn:async n=>e.subscribe(n),onSettled:async()=>{await Oc(t)}})},H2e=()=>{const e=Dc(),t=ge();return pe({mutationFn:async n=>e.unsubscribe(n),onSettled:async()=>{await Oc(t)}})},q2e=()=>{const e=Dc(),t=ge();
110return pe({mutationFn:async({entityType:n,entityIds:r,subscribed:o,notify:i=!1})=>Ewe(r,a=>o?e.subscribe({entityType:n,entityId:a,notify:i}):e.unsubscribe({entityType:n,entityId:a})),onMutate:async({entityType:n,entityIds:r,subscribed:o,notify:i=!1})=>{const a=rS.list(n);await t.cancelQueries({queryKey:a});const s=t.getQueryData(a),l=new Set(r);return t.setQueryData(a,c=>{const h=(c?.items??[]).filter(p=>!l.has(p.entityId));return o?{items:[...r.map(p=>({id:`optimistic:${n}:${p}`,subscriberAuth0UserId:"optimistic",subscriberPersonId:null,addedByPersonId:null,addedBatchId:null,entityType:n,entityId:p,notify:i,createdAt:new Date,ruleId:null,followedSince:null})),...h]}:{items:h}}),{prev:s,key:a}},onError:(n,r,o)=>{o?.prev&&t.setQueryData(o.key,o.prev)},onSettled:async()=>{await Oc(t)}})},V2e=()=>{const e=Dc(),t=ge();return pe({mutationFn:async n=>e.addFollowers(n),onSettled:async()=>{await Oc(t)}})},K2e=()=>{const e=Dc(),t=ge();return pe({mutationFn:async n=>e.removeFollowers(n),onSettled:async()=>{await Oc(t)}})},G2e=()=>{const e=Vi(),t=ge();return pe({mutationFn:async n=>e.create(n),onSettled:async()=>{await iS(t)}})},Y2e=()=>{const e=Vi(),t=ge();return pe({mutationFn:async n=>e.update(n),onSettled:async()=>{await iS(t)}})},Z2e=()=>{const e=Vi(),t=ge();return pe({mutationFn:async n=>e.updateNodeFlags(n),onMutate:async n=>{const r=Es.detail(n.mapId);await t.cancelQueries({queryKey:r});const o=t.getQueryData(r);return t.setQueryData(r,i=>i&&{...i,nodes:i.nodes.map(a=>a.id===n.nodeId?{...a,...n.input}:a)}),{prev:o}},onError:(n,r,o)=>{o?.prev&&t.setQueryData(Es.detail(r.mapId),o.prev),rt.error("Failed to update flag")}})},J2e=()=>{const e=Vi(),t=ge();return pe({mutationFn:async n=>e.syncNodes(n),onSuccess:(n,r)=>{t.setQueryData(Es.detail(r.mapId),n)},onError:n=>{n instanceof DOMException&&n.name==="AbortError"||rt.error(n instanceof Error?`Failed to save mind map: ${n.message}`:"Failed to save mind map")}})},Q2e=()=>{const e=Vi(),t=ge();return pe({mutationFn:async n=>e.delete(n),onSettled:async()=>{await iS(t)}})},X2e=()=>{const e=Hs(),t=ge();return pe({mutationFn:async n=>e.create(n),onSettled:async()=>{await yd(t)}})},eLe=()=>{const e=Hs(),t=ge();return pe({mutationFn:async n=>e.update(n),onMutate:async({id:n,input:r})=>{await t.cancelQueries({queryKey:Mo.all});const o=t.getQueryData(Mo.list());if(o){const a=o.items.map(s=>s.id===n?{...s,...r,updatedAt:new Date}:s).sort((s,l)=>new Date(l.updatedAt).getTime()-new Date(s.updatedAt).getTime());t.setQueryData(Mo.list(),{items:a})}const i=t.getQueryData(Mo.detail(n));return i&&t.setQueryData(Mo.detail(n),{...i,...r,updatedAt:new Date}),{previousList:o,previousDetail:i}},onError:(n,{id:r},o)=>{o?.previousList&&t.setQueryData(Mo.list(),o.previousList),o?.previousDetail&&t.setQueryData(Mo.detail(r),o.previousDetail)},onSettled:async()=>{await yd(t)}})},tLe=()=>{const e=Hs(),t=ge();return pe({mutationFn:async n=>e.delete(n),onSettled:async()=>{await yd(t)}})},nLe=()=>{const e=Hs();return pe({mutationFn:async t=>e.sendCopy(t)})},rLe=()=>{const e=Vi();return pe({mutationFn:async t=>e.sendCopy(t)})},oLe=e=>{const t=nS(),n=ge();return pe({mutationFn:r=>t.upsertSession(r),scope:{id:`prep-session-${e}`},onSuccess:r=>{const o=$p.byEvent(r.eventId),i=n.getQueryData(o);(!i||r.updatedAt>=i.updatedAt)&&n.setQueryData(o,r)}})},iLe=e=>{const t=nS(),n=ge();return pe({mutationFn:()=>t.generateBrief(e),scope:{id:`prep-session-${e}`},onSuccess:r=>{const o=$p.byEvent(r.eventId),i=n.getQueryData(o);(!i||r.updatedAt>=i.updatedAt)&&n.setQueryData(o,r),yd(n)},onError:()=>{n.invalidateQueries({queryKey:$p.byEvent(e)}),yd(n)}})},aLe=()=>{const e=Ug();return pe({mutationFn:t=>e.reportEvent(t),onError:()=>{}})},qA=e=>{switch(e.kind){case"meeting":return e.sendSummary?{to:"/meetings/$meetingId/send-summary",params:{meetingId:e.meetingId}}:e.redactionId?Swe(e.meetingId,e.redactionId):{to:"/meetings/$meetingId",params:{meetingId:e.meetingId}};case"liveMeeting":{const t=e.redactionId;return t?Twe(e.meetingId,t):{to:"/meetings/live/$meetingId",params:{meetingId:e.meetingId}}}case"pulseComment":return{to:"/pulse",search:e.entityType==="meeting"?{meeting:e.entityId,comments:!0}:{raid:e.entityId,comments:!0}};case"scheduleTaskComments":case"schedule":return{to:"/schedules/$scheduleId",params:{scheduleId:e.sc
110heduleId}};case"note":return{to:"/scratch-pad/note/$noteId",params:{noteId:e.noteId}};case"mindMap":return{to:"/scratch-pad/map/$mapId",params:{mapId:e.mindMapId}};case"scheduleList":return{to:"/schedules"};case"actionItem":return{to:"/action-logs",search:{focus:e.actionItemId}};case"raidEntry":return{to:"/raid-logs",search:{focus:e.raidEntryId}};case"dailyBrief":return{to:"/automations/$automationId/brief",params:{automationId:e.automationId}};case"firefightSession":return{to:"/admin",search:{area:"danger",session:e.sessionId}};case"notificationBatch":case"none":return null}};function Mwe({notification:e,onOpen:t,compact:n=!1,defaultExpanded:r=!1}){const o=$s(),i=Awe(),a=Nwe(),s=Pwe(),l=Rwe(),c=Dwe(),[h,d]=g.useState(r),p=e.data.type==="notification_batch"?e.data:null,f=()=>{if(p){d($=>!$);return}t?.(),e.readAt||a.mutate(e.id);const C=qA(qu(e.data).target);C&&o(C)},b=C=>{t?.(),!C.readAt&&!e.readAt&&c.mutate({id:e.id,key:C.key});const $=qA(qu(C.data).target);$&&o($)},y=()=>{if(e.data.type!=="entity_change")return;const{entityType:C,entityId:$}=e.data;l.mutate({entityType:C,entityId:$,notify:!1},{onSuccess:()=>{i.mutate(e.id),rt.success("Muted — you'll still see it in Following")},onError:()=>rt.error("Couldn't mute this item")})},w=qu(e.data),k=!e.readAt,x=e.data.type==="entity_change",S=l.isPending&&e.data.type==="entity_change"&&l.variables?.entityId===e.data.entityId,I=i.isPending&&i.variables===e.id,E=a.isPending&&a.variables===e.id||s.isPending&&s.variables===e.id;return u.jsxs("li",{children:[u.jsxs("div",{className:"group relative",children:[u.jsx("button",{type:"button",onClick:f,className:X("w-full text-left px-3 py-2 pr-24 hover:bg-accent focus:bg-accent focus:outline-none",!k&&"opacity-60"),children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx("span",{className:X("mt-1.5 h-2 w-2 shrink-0 rounded-full",k?"bg-blue-500":"bg-transparent"),"aria-hidden":"true"}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("div",{className:X("text-sm",k&&"font-medium"),children:w.title}),w.subtitle?u.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:w.subtitle}):null,u.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:p?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.items.length," items",u.jsx(Ui,{className:X("h-3 w-3 transition-transform",h&&"rotate-180"),"aria-hidden":"true"})]}):Q6(new Date(e.createdAt))})]})]})}),u.jsxs("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-0.5",children:[x?S?u.jsx("span",{className:"p-1 text-muted-foreground","aria-label":"Muting item",children:u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"})}):u.jsx("button",{type:"button",onClick:C=>{C.stopPropagation(),y()},className:"opacity-0 group-hover:opacity-100 transition-opacity p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground","aria-label":"Stop notifying me about this item",title:"Stop notifying me about this item",children:u.jsx(mG,{className:"h-3.5 w-3.5"})}):null,E?u.jsx("span",{className:"p-1 text-muted-foreground","aria-label":k?"Marking as read":"Marking as unread",children:u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"})}):u.jsx("button",{type:"button",onClick:C=>{C.stopPropagation(),k?a.mutate(e.id):s.mutate(e.id)},className:"opacity-0 group-hover:opacity-100 transition-opacity p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground","aria-label":k?"Mark as read":"Mark as unread",children:k?u.jsx(Vr,{className:"h-3.5 w-3.5"}):u.jsx(e8,{className:"h-3.5 w-3.5"})}),I?u.jsx("span",{className:"p-1 text-muted-foreground","aria-label":"Deleting notification",children:u.jsx(Ht,{className:"h-3.5 w-3.5 animate-spin"})}):u.jsx("button",{type:"button",onClick:C=>{C.stopPropagation(),i.mutate(e.id)},className:"opacity-0 group-hover:opacity-100 transition-opacity p-1 rounded hover:bg-destructive/10 text-muted-foreground hover:text-destructive","aria-label":"Delete notification",children:u.jsx(G$,{className:"h-3.5 w-3.5"})})]})]}),p&&h?u.jsx($we,{notification:e,items:p.items,compact:n,onItemClick:b,onOpen:t}):null]})}const jwe=5;function $we({notification:e,items:t,compact:n,onItemClick:r,onOpen:o}){const i=WL(t),a=n?i.slice(0,jwe):i;return u.jsxs("ul",{className:"border-t bg-muted/30 divide-y",children:[a.map(s=>{const l=qu(s.data),c=!s.readAt&&!e.readAt;return u.jsx("li",{children:u.jsx("button",{type:"button",onClick:()=>r(s),className:X("w-full text-left py-2 pl-7 pr-3 hover:bg-accent focus:bg-accent focus:outline-none",!c&&"opacity-60"),children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx("span",{className:X("mt-1.5 h-2 w-2 shrink-0 rounded-full",c?"bg-blue-500":"bg-transparent"),"aria-hidden":"true"}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("div",{className:X("text-sm",c&&"font-medium"),children:l.title}),l.subtitle?u.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:l.subt
110itle}):null,u.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:Q6(new Date(s.at))})]})]})})},s.key)}),n&&i.length>a.length?u.jsx("li",{className:"px-3 py-2 text-center",children:u.jsx(ji,{to:"/notifications",search:{batch:e.id},onClick:o,className:"text-xs text-muted-foreground hover:text-foreground",children:"See all in batch"})}):null]})}function Lwe(){const[e,t]=g.useState(!1),n=xie(),r=Cwe(),o=Owe(),i=n.data?.items??[],a=i.filter(s=>!s.readAt).length;return u.jsxs(Js,{open:e,onOpenChange:t,children:[u.jsx(Qs,{asChild:!0,children:u.jsxs(Ve,{type:"button",variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:bg-inverse dark:hover:bg-accent shrink-0 relative","aria-label":a>0?`${a} unread notifications`:"No new notifications",children:[u.jsx(j$,{className:"h-4 w-4"}),a>0?u.jsx("span",{className:X("absolute -top-1 -right-1 inline-flex items-center justify-center","min-w-4 h-4 px-1 rounded-full text-[10px] font-medium","bg-red-500 text-white"),children:a>99?"99+":a}):null]})}),u.jsxs(Xs,{align:"end",className:"w-80 p-0 shadow-lg",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-3 py-2",children:[u.jsx("div",{className:"text-sm font-medium",children:"Notifications"}),i.length>0?u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("button",{type:"button",onClick:()=>o.mutate(),disabled:a===0||o.isPending,className:"text-xs text-muted-foreground hover:text-foreground disabled:opacity-40 disabled:cursor-not-allowed",children:"Mark all as read"}),u.jsx("span",{className:"text-xs text-muted-foreground",children:"·"}),u.jsx("button",{type:"button",onClick:()=>r.mutate(),disabled:r.isPending,className:"text-xs text-muted-foreground hover:text-destructive disabled:opacity-40 disabled:cursor-not-allowed",children:"Clear all"})]}):null]}),n.isLoading?u.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"Loading…"}):u.jsxs("div",{className:"max-h-80 overflow-y-auto overflow-x-hidden",children:[u.jsx("ul",{className:"divide-y",children:i.map(s=>u.jsx(Mwe,{notification:s,onOpen:()=>t(!1),compact:!0},s.id))}),i.length===0?u.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"You're all caught up."}):null]}),u.jsx("div",{className:"border-t px-3 py-2 text-center",children:u.jsx(ji,{to:"/notifications",onClick:()=>t(!1),className:"text-xs text-muted-foreground hover:text-foreground",children:"See all"})})]})]})}var zwe=Symbol("radix.slottable");function Uwe(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=zwe,t}var[yy]=Zo("Tooltip",[$a]),by=$a(),e5="TooltipProvider",Fwe=700,nk="tooltip.open",[Wwe,QS]=yy(e5),t5=e=>{const{__scopeTooltip:t,delayDuration:n=Fwe,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,a=g.useRef(!0),s=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(Wwe,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};t5.displayName=e5;var xd="Tooltip",[Bwe,Mh]=yy(xd),n5=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=QS(xd,e.__scopeTooltip),c=by(t),[h,d]=g.useState(null),p=En(),f=g.useRef(0),b=a??l.disableHoverableContent,y=s??l.delayDuration,w=g.useRef(!1),[k,x]=go({prop:r,defaultProp:o??!1,onChange:$=>{$?(l.onOpen(),document.dispatchEvent(new CustomEvent(nk))):l.onClose(),i?.($)},caller:xd}),S=g.useMemo(()=>k?w.current?"delayed-open":"instant-open":"closed",[k]),I=g.useCallback(()=>{window.clearTimeout(f.current),f.current=0,w.current=!1,x(!0)},[x]),E=g.useCallback(()=>{window.clearTimeout(f.current),f.current=0,x(!1)},[x]),C=g.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{w.current=!0,x(!0),f.current=0},y)},[y,x]);return g.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),u.jsx(gh,{...c,children:u.jsx(Bwe,{scope:t,contentId:p,open:k,stateAttribute:S,trigger:h,onTriggerChange:d,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?C():I()},[l.isOpenDelayedRef,C,I]),onTriggerLeave:g.useCallback(()=>{b?E():(window.clearTimeout(f.current),f.current=0)},[E,b]),onOpen:I,onClose:E,disableHoverableContent:b,children:n})})};n5.displayName=xd;var rk="TooltipTrigger",r5=g.forwardRef((e,t)=>
vendor: 6,086 bytes, line 110
110{const{__scopeTooltip:n,...r}=e,o=Mh(rk,n),i=QS(rk,n),a=by(n),s=g.useRef(null),l=vt(t,s,o.onTriggerChange),c=g.useRef(!1),h=g.useRef(!1),d=g.useCallback(()=>c.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.jsx(yh,{asChild:!0,...a,children:u.jsx(Je.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Ie(e.onPointerMove,p=>{p.pointerType!=="touch"&&!h.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),h.current=!0)}),onPointerLeave:Ie(e.onPointerLeave,()=>{o.onTriggerLeave(),h.current=!1}),onPointerDown:Ie(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ie(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:Ie(e.onBlur,o.onClose),onClick:Ie(e.onClick,o.onClose)})})});r5.displayName=rk;var XS="TooltipPortal",[Hwe,qwe]=yy(XS,{forceMount:void 0}),o5=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Mh(XS,t);return u.jsx(Hwe,{scope:t,forceMount:n,children:u.jsx(To,{present:n||i.open,children:u.jsx(Mc,{asChild:!0,container:o,children:r})})})};o5.displayName=XS;var wc="TooltipContent",i5=g.forwardRef((e,t)=>{const n=qwe(wc,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Mh(wc,e.__scopeTooltip);return u.jsx(To,{present:r||a.open,children:a.disableHoverableContent?u.jsx(a5,{side:o,...i,ref:t}):u.jsx(Vwe,{side:o,...i,ref:t})})}),Vwe=g.forwardRef((e,t)=>{const n=Mh(wc,e.__scopeTooltip),r=QS(wc,e.__scopeTooltip),o=g.useRef(null),i=vt(t,o),[a,s]=g.useState(null),{trigger:l,onClose:c}=n,h=o.current,{onPointerInTransitChange:d}=r,p=g.useCallback(()=>{s(null),d(!1)},[d]),f=g.useCallback((b,y)=>{const w=b.currentTarget,k={x:b.clientX,y:b.clientY},x=Zwe(k,w.getBoundingClientRect()),S=Jwe(k,x),I=Qwe(y.getBoundingClientRect()),E=eve([...S,...I]);s(E),d(!0)},[d]);return g.useEffect(()=>()=>p(),[p]),g.useEffect(()=>{if(l&&h){const b=w=>f(w,h),y=w=>f(w,l);return l.addEventListener("pointerleave",b),h.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",b),h.removeEventListener("pointerleave",y)}}},[l,h,f,p]),g.useEffect(()=>{if(a){const b=y=>{const w=y.target,k={x:y.clientX,y:y.clientY},x=l?.contains(w)||h?.contains(w),S=!Xwe(k,a);x?p():S&&(p(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,h,a,c,p]),u.jsx(a5,{...e,ref:i})}),[Kwe,Gwe]=yy(xd,{isInside:!1}),Ywe=Uwe("TooltipContent"),a5=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=Mh(wc,n),c=by(n),{onClose:h}=l;return g.useEffect(()=>(document.addEventListener(nk,h),()=>document.removeEventListener(nk,h)),[h]),g.useEffect(()=>{if(l.trigger){const d=p=>{p.target?.contains(l.trigger)&&h()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,h]),u.jsx(Rc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:h,children:u.jsxs(Kg,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(Ywe,{children:r}),u.jsx(Kwe,{scope:n,isInside:!0,children:u.jsx(Ede,{id:l.contentId,role:"tooltip",children:o||r})})]})})});i5.displayName=wc;var s5="TooltipArrow",l5=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=by(n);return Gwe(s5,n).isInside?null:u.jsx(Gg,{...o,...r,ref:t})});l5.displayName=s5;function Zwe(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Jwe(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Qwe(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Xwe(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,h=s.y,d=l.x,p=l.y;h>r!=p>r&&n<(d-c)*(r-h)/(p-h)+c&&(o=!o)}return o}function eve(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),tve(t)}function tve(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var nve=t5,rve=n5,ove=r5,ive=o5,ave=i5,sve=l5;function lve({delayDuration:e=0,...t}){return u.jsx(nve,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function jl({...e}){return u.jsx(lve,{children:u.jsx(rve,{"data-slot":"tooltip",...e})})}function $l({...e}){return u.jsx(ove,{"data-slot":"tooltip-trigger",...e})}function Ll({className:e,sideOffset:t=0,children:n,...r}){return u.jsx(ive,{children:u.jsxs(ave,{"data-slot":"tooltip-content",sideOffset:t,className:X("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
110de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,u.jsx(sve,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const cve=`---
111version: "09.03.01"
112date: "2026-09-03"
113entries:
114  - area: Live meetings
115    text: Every action and RAID row on the Live Room board now shows its sheet number (AL-1042, PRID-0442) as a link straight to the row, from the moment the row is created.
116    modules: [meetings]
117  - area: Live meetings
118    text: One Sync button on the RAID tab, over the ticked rows or the whole board, with each row reading Not submitted, Needs sync, or Submitted, so nothing leaves the room looking saved when it hasn't reached the sheet.
119    modules: [meetings]
120  - area: Live meetings
121    text: Select a quote and press Action or RAID, press Capture Live Item, or say "Hey Luna" — these now work on Recall meetings, not just Fireflies ones.
122    modules: [meetings]
123  - area: Live meetings
124    text: Clipping a quote now just shows the quote, and re-quotes as you change your selection instead of making you cancel and start again.
125    modules: [meetings]
126  - area: Live meetings
127    text: A capture no longer pushes the transcript apart — the run sits behind a small status glyph you hover for the stages and what it created.
128    modules: [meetings]
129  - area: Live meetings
130    text: Column filters on Responsible Doer and Destination list people by name instead of ids, and the recap email is addressed to everyone who was at the session rather than the calendar invite.
131    modules: [meetings]
132  - area: Meetings & note-taker
133    text: Sending the note-taker is one press from the Meetings page and the command palette, instead of six steps inside Settings.
134    capabilities: [meetings.send_notetaker]
135  - area: Meetings & note-taker
136    text: The upcoming list now reads Not joining or Joining rather than Allow or Allowed, and Allow all clears a whole day or the whole window in one press.
137    modules: [meetings]
138  - area: Meetings & note-taker
139    text: One call gets one note-taker — pressing Send on a call the scheduler had already booked no longer starts a second recording, and where two copies do exist each card says which note-taker made it.
140    modules: [meetings]
141  - area: Meetings & note-taker
142    text: Upcoming meetings shows a short preview with See all underneath, instead of running on down the page.
143    modules: [meetings]
144  - area: Meetings & note-taker
145    text: "Fixed: some meetings never showed their Live room button, leaving the room reachable only by a URL nobody had."
146    capabilities: [live.view]
147  - area: Meetings & note-taker
148    text: Tick several meetings on the Meetings page to copy all their transcripts as one block — a quarter's reviews in one paste — or bookmark the whole selection at once.
149    modules: [meetings]
150  - area: Meetings & note-taker
151    text: "Settings → Meetings now tells you whether your changes are saved, in place of the unlabelled tick."
152    modules: [meetings]
153  - area: Meetings & note-taker
154    text: The GFS note-taker tile now uses GFS's own supplied logo and lockup.
155    modules: [meetings]
156  - area: Meetings & note-taker
157    text: "Fixed: Past meetings in meeting prep stopped at 25 and never loaded any more."
158    modules: [meetings]
159  - area: Command Center
160    text: "Date format — ten choices under Settings → Command Center, from Aug 18, 2026 through 18/08/26 to 2026-08-18."
161    modules: [command_center]
162  - area: Command Center
163    text: "AND / OR search on Action Logs and RAID Logs — budget AND risk, budget OR risk. A plain space still searches for the phrase."
164    modules: [command_center]
165  - area: Command Center
166    text: The Actions column now grows with its width — drag it wider and play, follow, attachments and Smartsheet step out of the menu onto the row.
167    modules: [command_center]
168  - area: Command Center
169    text: Publish and sync now say "destinations" instead of "Smartsheet", since not every destination is a sheet.
170    capabilities: [command_center.manage_destinations]
171  - area: Command Center
172    text: The source popover reads the same two lines on every row, instead of six lines on one row and one line on the next.
173    modules: [command_center]
174  - area: Around the app
175    text: Hover any icon in the navbar and it names the page — Command Center, Mind Maps, Accountability Dashboard, Notifications, Leaderboard.
176  - area: Around the app
177    text: Hover any Action or RAID on the Accountability Dashboard for its full detail, untruncated and scrollable, across the drill-down, Tasks and Tag Deep Dive tabs.
178    modules: [command_center]
179  - area: Following feed & email
180    text: You are no longer followed onto an emailed action item that you went on to assign to yourself.
181  - area: Following feed & email
182    text: A forwarded email chain reads newest-first in triage, the same way round as the mail you forwarded.
183  - area: Following feed & email
184    text: 'Fixed: selecting transcript text and pressing Action or RAID failed with "Failed to fetch".'
185    modules: [meetings]
186  - area: Following feed & email
187    text: "Fixed: submitting an email-derived action item could create duplicate copies of it."
188    modules: [command_center]
189  - area: Meetings & note-taker
190    text: "\\"Yass' Zoom\\" no longer appears on your settings page — saved rooms are scoped to your own account."
191    modules: [meetings]
192  - area: Luna
193    text: Hey Luna now says which of the two refusals it hit, so a failure can be worked out on the call rather than after it.
194    capabilities: [luna.ask]
195  - area: Meetings & note-taker
196    text: The settings dialog now closes when it sends you to the allow-list page, instead of sitting on top of it.
197    modules: [meetings]
198  - area: Meetings & note-taker
199    text: Nuke a meeting — hide it from every list and put it back whenever you like, or destroy the transcript, summaries and video outright while every action item, RAID and mind map pointing at it stays standing.
200    capabilities: [meetings.hide_own, meetings.nuke]
201  - area: Administering your organization
202    text: View as — pick a person and see exactly their app, with their real roles, read-only.
203    capabilities: [platform.impersonate]
204  - area: Meetings & note-taker
205    text: 'The saved-room "Send the note-taker" button is now admin-only.'
206    capabilities: [meetings.send_notetaker]
207  - area: Command Center
208    text: Confidential Actions on the Accountability Dashboard are now encrypted out of the payload and behind their own lock, the way Confidential RAIDs already were.
209    modules: [command_center]
210---
211`,uve=`---
212version: "09.09.01"
213date: "2026-09-09"
214entries:
215  - area: Live meetings
216    text: Someone added to a recurring meeting after it was already booked now gets access to the upcoming occurrences, instead of only the ones booked after they were added.
217    modules: [meetings]
218  - area: Live meetings
219    text: "Fixed: people in a live meeting could sometimes not open it while the call was still running."
220    modules: [meetings]
221---
222`,dve=`---
223version: "09.09.02"
224date: "2026-09-09"
225entries:
226  - area: Meetings & note-taker
227    text: Calendar view on Meetings — the Upcoming section now toggles between List and an Outlook-style calendar, with day, work week and week views and a date picker.
228    modules: [meetings]
229  - area: Meetings & note-taker
230    text: Note-taker status on every upcoming meeting — whether it is joining, joining because a colleague booked it, not joining, or was removed, with the reason.
231    modules: [meetings]
232  - area: Meetings & note-taker
233    text: Meeting peek card — click any meeting for its details, who is invited and how they replied, plus Join and Prep.
234    modules: [meetings]
235  - area: Following feed & notifications
236    text: "Follow rules on the web — Settings → Following now has the full editor: name a rule, set any of its fourteen filters, pause it, preview what it would match, and delete it."
237  - area: Following feed & notifications
238    text: Rules can now filter on who created a row and where it was created — Command Center, a live meeting, email, iPhone, a mind map, or a code word.
239  - area: Live meetings
240    text: "Fixed: a board row stuck on Submitting stayed locked and uneditable for the rest of the call, even though the item had already saved."
241    modules: [meetings]
242---
243`,hve=`---
244version: "09.10.01"
245date: "2026-09-10"
246entries:
247  - area: Command Center
248    text: Repeat — each draft row on the Create tab gets a Repeat button. Say "every 1 week, 4 times" and it drops that many copies into the grid below the original, each due one interval further out. They are ordinary draft rows, so edit or delete any occurrence before you submit.
249    modules: [command_center]
250  - area: Command Center
251    text: "Fixed: pasting a block of text into a cell no longer turns every line into a 
251new action item. Only Task Name does that now — everywhere else the block lands in the cell you are on, with line breaks, bullets and numbering intact."
252    modules: [command_center]
253  - area: Live meetings
254    text: "Fixed: a live meeting booked off a client's calendar now shows for everyone who is in the call."
255    modules: [meetings]
256---
257`,mve=`---
258version: "09.14.01"
259date: "2026-09-14"
260entries:
261  - area: Live meetings
262    text: "Fixed: live meetings blinking off the rail, and the live view going dead part-way through a call."
263    modules: [meetings]
264  - area: Meeting prep
265    text: Filter by Tag and PBI tag — the prep drawer's action items now narrow by Tag and PBI tag, the same two dropdowns RAIDs already had.
266    modules: [meetings]
267  - area: RAID
268    text: "Fixed: RAID entries in the feed no longer appear without their title and destination."
269---
270`,pve=`---
271version: "09.15.01"
272date: "2026-09-15"
273entries:
274  - area: Help
275    text: A help centre inside the app — press ? anywhere, or open Help from the account menu, for articles on what you are looking at, a search that understands what people actually call things, and a What's new page carrying these release notes.
276  - area: Your own tags and TODOs
277    text: Private tags — name a label, give it a colour, and put it on a meeting or one of your own TODOs. Nobody else ever sees it. The Tags page lists everything you have tagged, and renaming or recolouring a tag carries to everything wearing it.
278    capabilities: [tags.use]
279  - area: Meetings & note-taker
280    text: "My participation — narrow Meetings, and Pulse, to Everyone's meetings, Meetings I was in, or Meetings I wasn't in. It counts the invite list plus everyone the recording resolved to a person, and never widens what you can see."
281    modules: [meetings]
282  - area: Meetings & note-taker
283    text: "Fixed: filtering by attendee found nothing recorded after late August. It now finds every meeting that person was on, whichever way the meeting was recorded."
284    modules: [meetings]
285  - area: Meetings & note-taker
286    text: "Fixed: the word \\"blacklist\\" written in a meeting's invite body now keeps the note-taker out. Only a title had really been working — an invite's own joining boilerplate was crowding out everything written underneath it."
287    modules: [meetings]
288  - area: Meetings & note-taker
289    text: "Send Summary now says what it needs instead of half-sending: whether your IT administrator's approval is missing, whether Microsoft needs connecting, or whether you need to sign in again — and that nothing is sent without your review."
290    modules: [meetings]
291  - area: Calendar
292    text: Bookmarking a past meeting is one press on the right-click menu. The chevron beside it unfolds the rest — a different duration, until a meeting, indefinitely, remove — and the row reads Remove bookmark when everything selected is already bookmarked.
293    modules: [meetings]
294  - area: Calendar
295    text: A small bookmark marker now sits next to the title of any meeting you have bookmarked, in day, work week, week and month.
296    modules: [meetings]
297  - area: Calendar
298    text: Filter by who was invited — pick a person on the toolbar and the grid shows only the meetings they were on. The choice travels in the address, so a filtered view is a link you can send.
299    modules: [meetings]
300  - area: Calendar
301    text: The calendar opens on My meetings rather than everything you are allowed to see, with All meetings a press away on the toolbar. Your choice travels in the address alongside the view and the date.
302    modules: [meetings]
303  - area: Calendar
304    text: The Submitted / In review chip is off meeting blocks and off the peek card. The action-item and RAID counts, which were the part that told you something, stay.
305    modules: [meetings]
306  - area: Schedules
307    text: "Planned dates take a time of day. Type \\"Sep 4 2026 9:30am\\" into Start, or just \\"9:45\\" into Finish and it lands on the day the task starts. A task that never needs a clock never grows one."
308    modules: [schedules]
309  - area: Schedules
310    text: "Duration reads and accepts hours and minutes as well as working days — 15m, 2h 30m, 1:30, or 3d. Minutes show only when both ends of the task carry a time; anything else stays in the working days the rest of the plan is counted in."
311    modules: [schedules]
312  - area: Mind maps
313    text: "Shift+click selects a range: click one node, hold Shift, click another, and everything between the two comes with it, reading down the map the way you read an outline. Cmd or Ctrl+click still picks nodes one at a time, and a collapsed node keeps its children out of the range."
314  - area: Dashboard
315    text: A dashboard you can sit on all day — nine panels dragged in from a rail or placed with the number keys, split, resized and rearranged, each one detachable into its own window. Focus expands a panel in place rather than taking you somewhere else.
316  - area: Dashboard
317    text: Profiles are a saved answer to "what am I working on" — tags and title keywords that narrow every panel at once, with a map showing each profile's overdue work, actions, RAIDs and what has changed. A profile that narrows nothing now says so on its tile.
318  - area: Dashboard
319    text: Live meetings appear as a strip across the top. Bring one in and the surface takes on that meeting's context, with a transcript panel and everything you create there attributed to it. A walkthrough runs the first time you arrive, and replays from the account menu.
320  - area: Leaderboard & points
321    text: Time spent in the app no longer earns points. Points you have already been awarded for it are untouched and still show on the leaderboard and in your usage.
322    modules: [points]
323    capabilities: [points.view_audit]
324  - area: Administering your organization
325    text: An emergency-access log in the admin console's Danger area — every activation, newest first, with who activated it, which organization it was scoped to, the full reason untruncated, and whether it is live, revoked or expired. The alert about an activation now opens the log at that row.
326    capabilities: [platform.manage_orgs]
327---
328`,fve=`---
329version: "09.20.01"
330date: "2026-09-20"
331entries:
332  - area: Meetings & note-taker
333    text: "One Summary button on a meeting replaces the separate Copy and Send buttons. Pressing it copies the summary to your clipboard; the caret beside it offers Copy to clipboard or Email it by name. Both read the same text, so the clipboard and the Outlook draft can never say different things about a meeting."
334    modules: [meetings]
335    issue: 1947
336  - area: Meetings & note-taker
337    text: "Copying the summary works without a Microsoft connection, and pastes as formatted text into Teams, a document or any mail client. The three reasons an email can be blocked each name copying as the way out."
338    modules: [meetings]
339    issue: 1947
340  - area: Meetings & note-taker
341    text: "The share picker shows each person's email under their name, so two people who share a name are no longer two identical rows with nothing to choose between them. The Shared with list at the top of the popover shows it too."
342    modules: [meetings]
343    issue: 1909
344  - area: Meetings & note-taker
345    text: "Copying the transcripts of a whole selection of meetings at once now needs a capability an administrator grants. Copying one meeting's transcript from its own page is unchanged and needs no permission beyond being able to open the meeting."
346    modules: [meetings]
347    issue: 1945
348  - area: Meetings & note-taker
349    text: "Copying ten different transcripts in one day stops further copying for that account until an administrator allows it again. It suspends copying and nothing else — you sign in, open meetings and work exactly as before — and a refused copy says it is paused rather than failing silently."
350    modules: [meetings]
351    issue: 1945
352  - area: Mind maps
353    text: "Typing in a mind map no longer drops letters. A keystroke was making the map re-measure itself dozens of times before the character landed, which is what swallowed the second letter of a word often enough to be noticed."
354  - area: Mind maps
355    text: "A map drawn before a call can be linked to that meeting afterwards. Link to meeting on the map's toolbar lists live rooms first, then recent meetings, with a search by title; once linked the chip reads Linked to the meeting's name, and the same list unlinks it or moves it to another meeting."
356    issue: 1892
357  - area: Mind maps
358    text: "An action item created from a mind map inside a live meeting now reaches that room's live board, instead of only Command Center."
359    issue: 1893
360  - area: Command Center
361    text: "Fixed: an action item moved to a private log vanished from Command Center on the next refresh. The row was never lost. Private logs are now exempt from the organization allow-list that was hiding them, and prep briefs, which were dropping the same rows, get it too."
362    capabilities: [command_center.view]
363  - area: Pulse
364    text: "The Pulse feed no longer asks the server again for summaries it already has, so a long feed settles in one request rather than one per card."
365    modules: [meetings]
366  - area: Your account
367    text: "Fixed: Connect Microsoft Account failed with \\"not authorized to connect this account\\", and logging out — the only advice it gave — did not help. Linking works again."
368  - area: Dashboard
369    text: "The dashboard names itself in the browser tab, so it is tellable apart when you have several Luniko tabs open."
370    issue: 1905
371  - area: Tags
372    text: "Integration joins the tag list, so it can be picked and filtered on wherever tags appear. It already existed on one of the destination sheets, where the app could neither read it nor set it."
373  - area: Administering your organization
374    text: "A member whose transcript copying has been paused shows a No copying badge in Members, and an Allow copying button in their details lifts it. The notice says outright that everything else about their access is untouched."
375    capabilities: [org.manage_members]
376    issue: 1945
377  - area: Administering your organization
378    text: "Opening your own settings no longer writes a refusal to the audit trail. Deciding whether to draw a tab is not something anyone asked for and denied, and 92% of recorded refusals were that one check."
379    capabilities: [platform.view_sharing_ledger]
380  - area: Administering your organization
381    text: "Copying more than five different transcripts in a day now sends one notice, listing each meeting once with how many times it was taken. Every copy leaves a record — from a meeting page, from the live room, or from a selection — and n
381one of them appear in anybody's activity or following feed."
382    capabilities: [platform.view_sharing_ledger]
383    issue: 1904
384  - area: Leaderboard & points
385    text: "Copying the transcript from inside a live meeting is worth the same as copying it afterwards. It had been the smallest award on the board."
386    modules: [points]
387    capabilities: [points.view_audit]
388    issue: 1899
389  - area: Schedules
390    text: "The Accountability Dashboard has been removed. Its navbar link, its page and the machinery that rebuilt it every morning are gone, and it is no longer offered as a landing screen. If you had chosen it as yours, you now land where the app would otherwise have sent you."
391    modules: [schedules]
392---
393`,gve=`---
394version: "09.21.01"
395date: "2026-09-21"
396entries:
397  - area: Bookmarks
398    text: "A meeting that has not happened yet can be bookmarked from the calendar. Right-click its block and press Bookmark; when the meeting records, the bookmark is already on it, and it survives the meeting being moved to another time. An upcoming meeting on a calendar that is not Outlook's cannot be bookmarked, and the option is not offered there."
399    modules: [meetings]
400    issue: 1976
401  - area: Meetings & note-taker
402    text: "Names and product words that the transcription regularly misheard are now corrected as a meeting is written down, so the transcript, the sentences beneath it, search and the summary all spell them the same way. This applies to meetings recorded from now on; transcripts already in your history are unchanged."
403    modules: [meetings]
404    issue: 1946
405  - area: The notetaker
406    text: "Adding the block word to a meeting whose notetaker was already booked now takes that booking back off, instead of leaving a bot scheduled to join. A meeting the notetaker has already started recording is left alone. Blocking by your own keyword list still applies to your calendar only, so it cannot cancel a colleague's notetaker."
407    modules: [meetings]
408    issue: 1875
409  - area: Live room
410    text: "A row the destination sheet refuses now says so. It carries a Rejected badge, with the sheet's own reason when you hover it, and it stops waiting the moment the refusal comes back rather than spinning for thirty seconds and then giving up with a message that named no cause."
411    modules: [meetings]
412    capabilities: [live.edit_board]
413  - area: Command Center
414    text: "A row a destination sheet refuses is now recorded as failed and keeps the reason, instead of being left looking exactly like a row that was never submitted. A later successful sync clears it. This affects action items, RAID entries and schedule tasks alike — a refused schedule task had been reporting itself as pushed."
415    capabilities: [command_center.submit_to_sheet]
416  - area: Finding your way around
417    text: "The Help panel now renders with its own formatting every time. It had been arriving as unstyled text unless you had already visited the help centre in that session. It also lists articles grouped by section rather than in one flat run, carries a link into the full help centre, and gives you a way back to the list after you open an article instead of making you close the panel."
418  - area: Administering your organization
419    text: "Meetings no longer asks your IT administrator for write access to everyone's calendar. The permission supported nothing in the product, so the approval screen now lists four permissions instead of five. Organizations that already approved the old set need do nothing."
420    capabilities: [org.configure_modules]
421  - area: Leaderboard & points
422    text: "The activity heatmap has a new top shade. Your busiest days now stand out in orange instead of flattening into the same teal as a merely active day."
423    modules: [points]
424    capabilities: [points.view_audit]
425    issue: 1981
426  - area: Leaderboard & points
427    text: "Points on the Submission Leaderboard read to one decimal place rather than two, and the hover breakdown ends with a Total line so the parts visibly add up to the figure on the row."
428    modules: [points]
429    capabilities: [points.view_audit]
430    issue: 1980
431---
432`,yve=`---
433version: "09.23.01"
434date: "2026-09-23"
435entries:
436  - area: Live room
437    text: "You can now take a meeting off the record. Press the LIVE badge in the live room to pause the notetaker; a red bar tells everyone it is not listening, and nothing said until you press PAUSED again reaches the transcript, the summary or the recording."
438    modules: [meetings]
439    issue: 1711
440  - area: Meetings & note-taker
441    text: "Something already said can be taken out of a meeting's record. The Redact menu, in the live room and on a finished meeting's transcript, removes the last thirty seconds, minute or two minutes, or the sentences you pick. Most people suggest a redaction, which hides the passage straight away and goes to a reviewer; once approved it is removed from the transcript, the recording, the summary, search and any action items raised during it, and it cannot be undone."
442    modules: [meetings]
443    issue: 1711
444  - area: Meetings & note-taker
445    text: "Reviewers see suggested redactions in the Redactions area of the admin console and on the meeting's transcript, with Approve and Reject beside each one. A suggestion on a meeting another organization also attended now reaches the reviewers who can open it."
446    capabilities: [meetings.redact]
447    issue: 1711
448  - area: Meetings & note-taker
449    text: "Assigning a reviewer to a meeting now takes a due date and a note, shares the meeting with them so they can open it, and files a Review meeting action item on the action log you pick. Their notification carries your note."
450    modules: [meetings]
451    issue: 1789
452  - area: Meetings & note-taker
453    text: "Sharing a meeting now lets you pick several people and add a message before you press Share. The people you share with see your message in their notification and on a Shared by chip on the meeting."
454    modules: [meetings]
455  - area: Meetings & note-taker
456    text: "The share list stays the same size while you type, so the message box and the Share button no longer move under your cursor, and each suggestion shows the person's email so two people with the same name are easy to tell apart. A long meeting title no longer pushes the share dialog past its edges."
457    modules: [meetings]
458  - area: Meetings & note-taker
459    text: "A meeting marked Luniko Private can now be shared back with the people who were in it. They had been shown as already having access, when the setting had taken it away."
460    modules: [meetings]
461    issue: 1962
462  - area: Meetings & note-taker
463    text: "Who can see this now shows who last changed the setting and when, in the menu and when you hover the setting's badge."
464    capabilities: [meetings.manage_audience]
465  - area: Meetings & note-taker
466    text: "The ten-second skip buttons stay on screen in full screen. Use the new Full screen button in the top-right of the video; a play/pause button now sits between the skip buttons too. In Safari and Firefox the browser's own full-screen button is still there and still hides them."
467    modules: [meetings]
468  - area: Calendar
469    text: "The calendar now shows only the recordings you were part of, rather than every meeting you can open. Three new filters narrow it further: With, for meetings a particular person was also in; My attendance, for meetings you attended or missed and invitations you accepted, left tentative or have not answered; and Customer, by the other organization in the meeting."
470    modules: [meetings]
471  - area: Calendar
472    text: "An upcoming meeting can be shared before it happens. Right-click it on the calendar and pick people as you would for a recording; they get it, with your message, as soon as it is recorded."
473    modules: [meetings]
474  - area: Calendar
475    text: "Who can see this is now on upcoming meetings too. Choose the audience from the calendar before the meeting happens and it applies the moment the recording arrives."
476    capabilities: [meetings.manage_audience]
477  - area: Calendar
478    text: "When a guest accepts or declines a recurring meeting after the notetaker is already booked, the accepted count and the invitee list now catch up, instead of waiting for the meeting to be rescheduled."
479    modules: [meetings]
480  - area: Mind maps
481    text: "A mind map can be prepared before its meeting. Right-click an upcoming meeting on the calendar and choose Prepare a mind map, or link a map to it under Upcoming meetings. When the meeting starts the map is in its live room, and afterwards it stays on the meeting."
482  - area: Mind maps
483    text: "Email the map, in the Share or export menu, sends the whole map when nothing is selected. With nodes selected it still reads Email the selection and sends only those."
484    issue: 1821
485  - area: Mind maps
486    text: "Fixed: a key pressed at the wrong moment could replace the next label you opened with that one character."
487    issue: 1821
488  - area: Mind maps
489    text: "A node with no children can now take one, by dragging a node onto it or pressing Tab. F2 opens the usual label editor instead of a box showing raw markup."
490    issue: 1599
491  - area: Mind maps
492    text: "Alt+Shift+. with a node selected now expands only that node's branch, the same way collapsing already worked. With nothing selected it still expands the whole map."
493    issue: 1963
494  - area: Dashboard
495    text: "Pressing Ctrl+Z again in a dashboard table now walks further back through your edits. It had been undoing its own undo, bouncing between the last two values."
496    issue: 1972
497  - area: Bookmarks
498    text: "Fixed: a bookmarked meeting that another organization also attended could show as No longer available even though you could open it from Meetings. The same fix applies to your tags."
499    modules: [meetings]
500  - area: Schedules
501    text: "When a schedule mirror run fails, it now names the sheet, the columns it could not find and the underlying error, instead of only saying it ran without writing."
502    capabilities: [schedules.run_mirror]
503---
504`,bve=`---
505version: "09.24.01"
506date: "2026-09-24"
507entries:
508  - area: Bookmarks
509    text: "Bookmarks and Tags are now one Library page, with everything you have bookmarked, marked important or tagged in one list. Group it by date saved, type or the item's own date, narrow it by tag, type or Important, and use the ⋯ menu on any row to change its tags or how long it stays. The old Bookmarks and Tags addresses open the Library."
510  - area: Bookmarks
511    text: "Tagging something now keeps it in your Library with the same keep-until date a bookmark has. Expired items are no longer lost: turn on Show expired, then Renew one or Clear it."
512  - area: Bookmarks
513    text: "You can bookmark or tag only what you can open, and anything you later lose access to drops out of your Library instead of showing as a blank row. Your Library belongs to the organization you are working in. Bookmark for a meeting is no longer offered on the web."
514  - area: Command Center
515    text: "Type @ in an action item's Additional Note to pick a colleague. They get one notification with a preview of the note, and opening it takes them to the item. The mentioned name is highlighted in the note."
516    capabilities: [command_center.edit]
517    issue: 1112
518  - area: Command Center
519    text: "A notification about an action item you follow now opens that item in the action log."
520    modules: [command_center]
521    issue: 1112
522  - area: Around the app
523    text: "Clicking a column heading in the Command Center, dashboard and RAID tables now selects the whole column, as in a spreadsheet. To sort, right-click the heading and choose Sort Ascending or Sort Descending."
524    issue: 987
525  - area: Around the app
526    text: "Person pickers, such as Responsible Doer, no longer offer hidden people or the spare copies a meeting creates for someone already in the directory, so w
526ork goes to the right person. Whoever is already in the field still shows."
527    issue: 1667
528  - area: Administering your organization
529    text: "The admin console has a People area. Search everyone, review people a meeting added, hide test accounts from pickers, add or remove someone's email addresses and choose their main one, and merge two records of the same person. Everything that named the spare copy moves onto the one you keep."
530    capabilities: [people.manage_identities, people.merge]
531    issue: 1667
532  - area: Administering your organization
533    text: "Someone signing in for the first time now sees the meetings they attended from that day on. Widen it for them under People, Meeting history. Meetings shared with them directly are not affected, and everyone who had already signed in keeps what they had."
534    capabilities: [org.manage_audiences]
535    issue: 1891
536  - area: Live room
537    text: "Drag across the live transcript to redact or suggest a redaction, the same way as on a finished meeting. The bar that opens also offers Action, RAID, Clip and Ask Luna for the text you selected. Pausing and redacting now show for everyone in the room straight away, without refreshing."
538    modules: [meetings]
539    issue: 1711
540  - area: Meetings & note-taker
541    text: "While a redaction is waiting for a decision, or the recording is being re-cut, the player reads This video is being processed. The video comes back on its own when it is ready."
542    modules: [meetings]
543    issue: 1711
544  - area: Meetings & note-taker
545    text: "The redaction log now opens every time, including straight after you redact, and marks suggestions still waiting or turned down as Pending or Rejected."
546    modules: [meetings]
547    issue: 1711
548  - area: Meetings & note-taker
549    text: "Suggestions made during a live meeting can now be approved or rejected while it is still going, from the live room or the Redactions list, and their notification opens the live room. A suggestion that covers several sentences has one Approve and Reject instead of a pair on every sentence."
550    capabilities: [meetings.redact]
551    issue: 1711
552  - area: Meetings & note-taker
553    text: "Fixed: re-cutting a recording after a redaction could fail. Several redactions made close together now produce a single re-cut."
554    capabilities: [meetings.redact]
555    issue: 1711
556---
557`,wve=`---
558version: "09.30.01"
559date: "2026-09-30"
560entries:
561  - area: Calendar
562    text: "Calendar is now available to everyone. Open it from Calendar in the navigation bar to see your recorded, live and upcoming meetings by day, work week, week or month."
563  - area: Calendar
564    text: "Your action items now show on the calendar. One with a due time sits at that time, one with only a date sits in the all-day lane, and completed ones are struck through."
565    issue: 1910
566    modules: [command_center]
567  - area: Calendar
568    text: "The Planner beside the calendar now has an Action items tab. Tick items done, open one to edit its title, note, due date, destination and tags, add a new one, and type due dates like \\"next fri 3pm\\". Drag action items or TODOs onto the calendar to set their day and time, or click one on the grid to edit it there."
569    modules: [command_center]
570  - area: Calendar
571    text: "All calendar filters now sit behind one Filters button, grouped into Saved, Meetings, Action items and TODOs. Each group has a switch to show or hide it, and Clear all resets everything but the view. Filters under Meetings no longer hide your TODOs and action items."
572  - area: Calendar
573    text: "Show only what you've bookmarked or tagged: Saved, in the calendar's filters, narrows meetings, TODOs and action items, and the Planner's lists too. Each tag shows as a coloured dot on the block."
574  - area: Calendar
575    text: "Right-click a meeting and press Bookmark to bookmark it in one click, or open the arrow to pick tags. For a recurring meeting, All in series bookmarks or tags every meeting in the series."
576  - area: Calendar
577    text: "Save the calendar's view and filters as a named profile, then switch between profiles from the menu beside Calendar or with the number keys. Choose which profile Calendar opens on. If you change a profile's filters, it shows as Edited until you update it, save it as a new profile or reset it. Profiles are yours alone and follow you to any computer."
578  - area: Calendar
579    text: "Clicking an upcoming meeting now offers the same actions as right-clicking it, and a long agenda has Show more. The Planner starts closed; open it from the toolbar."
580  - area: Calendar
581    text: "Dragging a TODO on the calendar now moves it exactly as far as you drag it, and the drop highlight no longer flickers as you pass over meetings."
582    issue: 1910
583  - area: Calendar
584    text: "Snooze an action item to later today, tomorrow, Monday or a time you pick, without changing its due date."
585    capabilities: [automations.use]
586  - area: Calendar
587    text: "The calendar's Automate menu is now Reminders. Each reminder shows its current setting, and on a recurring meeting you choose This meeting or All in series. One meeting can differ from its series, including turning a reminder off just for that meeting, and an amber dot marks it."
588    capabilities: [automations.use]
589  - area: Calendar
590    text: "Choose when you're reminded to send a meeting's summary: when it's ready, up to a day after, or a custom time. You can also be nudged if a meeting still isn't reviewed, or get a heads-up before a meeting starts with what's still open from last time."
591    capabilities: [automations.use]
592  - area: Calendar
593    text: "When your summary reminder goes off, Send the summary shows the email exactly as it will look and warns you about anything still unreviewed before you open it in Outlook."
594    capabilities: [automations.use]
595  - area: Settings
596    text: "Set up a daily brief in Settings, Automations. At a time you pick, you get today's meetings, what's waiting on you, and your action items and RAIDs due or overdue."
597    capabilities: [automations.use]
598  - area: Bookmarks
599    text: "Bookmarks and tags no longer expire. Anything you keep stays in your Library until you remove it, so keep-until dates, Show expired and Renew are gone, and items that had expired are back."
600  - area: Bookmarks
601    text: "Bookmarks and tags are now the only marks. Marked important is gone from the Library and the calendar, and TODOs no longer have a priority. To keep an important list, make a tag for it."
602  - area: Bookmarks
603    text: "Tagging something now bookmarks it too, like putting a post in a collection, and removing a bookmark takes its tags off. Tagging a TODO still only sorts your list."
604    capabilities: [tags.use]
605  - area: Bookmarks
606    text: "Removing a bookmark no longer asks you to confirm. The message that follows has Undo instead, which puts back the bookmark and its tags."
607  - area: Bookmarks
608    text: "A meeting card has one button for bookmarking and tagging. Press the icon to bookmark, or the arrow beside it to pick tags. Tag dots show beside the icon, and the Bookmarked message offers Add tags."
609    capabilities: [tags.use]
610  - area: Command Center
611    text: "Action items can now have a due time. Set it in the Due Time column of the Action Log. The time stays in Luniko, and the sheet keeps 
611showing the date."
612    capabilities: [command_center.edit]
613  - area: Command Center
614    text: "Every bulk action now asks before it changes anything, and says what it will do: how many rows, which fields and values, which delete reason, and for a live board Sync, how many rows are new to the sheet and how many will be overwritten. This covers Command Center, the live board, the Action and RAID Logs and the meeting page."
615    modules: [command_center]
616  - area: Command Center
617    text: "Fixed: a reply on an email thread whose item had already been submitted disappeared. It now becomes a new item in Triage, and later replies add to that one."
618    issue: 2099
619    modules: [command_center]
620  - area: Live room
621    text: "Capture Live Item now records until you stop it, and creates the action item. The button turns red and reads Recording · Stop, then Creating action… while Luna writes the task, and a message tells you when the action item is on the board for review. Only what was said before you pressed Stop is used."
622    issue: 1923
623    modules: [meetings]
624  - area: Meetings & note-taker
625    text: "Reviewers can now watch the recording while a suggested redaction waits for their decision, so they can check the moment it points at. Everyone else still sees This video is being processed until it is decided."
626    capabilities: [meetings.redact]
627  - area: Meetings & note-taker
628    text: "A redacted stretch of a recording is now silent and shows a Redacted card with a crossed-out eye, the same look as the transcript. Recordings redacted before this keep their black Off the record frame."
629    modules: [meetings]
630  - area: Pulse
631    text: "Fixed: in the new Catch Up feed, people who can see every record now see every meeting, deleted meetings no longer come back, and Today includes items finished today."
632    modules: [meetings]
633  - area: Schedules
634    text: "The schedule calculation now also works out each task's Status: Complete, Blocked or Not Blocked, and updates both the flat sheet and the live schedule every night. In Settings, Update Schedule Scripted Fields runs it by hand for either sheet or both."
635    capabilities: [schedules.run_mirror]
636  - area: Help
637    text: "The orange dot on the Help button means there is news you have not read. The help panel now links What's new in Luniko with a count of unread releases, and opening it clears the dot straight away."
638    issue: 2067
639  - area: Around the app
640    text: "Opening a note in Scratch Pad no longer moves it to the top of the list. It moves only when you change it."
641  - area: Around the app
642    text: "In the mobile app, each Following card now leads with what kind of item changed, then the title, then a line with the responsible doer, impact and due date."
643  - area: Around the app
644    text: "Fixed: in the mobile app, a reaction on the new Catch Up feed now shows as soon as you tap it, without refreshing."
645  - area: Administering your organization
646    text: "Fixed: merging two people could fail, and the person details in People could show the previous person's name after you picked someone else."
647    capabilities: [people.merge]
648---
649`,vve=v({area:m().min(1),text:m().min(1),capabilities:N(R(_o)).default([]),modules:N(R(Ts)).default([]),issue:j().int().positive().optional()}),kve=v({version:m().regex(/^\d{2}\.\d{2}\.\d{2}$/,"version like 09.03.01"),date:m().regex(/^\d{4}-\d{2}-\d{2}
649$/),entries:N(vve).min(1)}),eT=Symbol.for("yaml.alias"),ok=Symbol.for("yaml.document"),Ta=Symbol.for("yaml.map"),c5=Symbol.for("yaml.pair"),gi=Symbol.for("yaml.scalar"),Bc=Symbol.for("yaml.seq"),ko=Symbol.for("yaml.node.type"),Hc=e=>!!e&&typeof e=="object"&&e[ko]===eT,wy=e=>!!e&&typeof e=="object"&&e[ko]===ok,jh=e=>!!e&&typeof e=="object"&&e[ko]===Ta,mn=e=>!!e&&typeof e=="object"&&e[ko]===c5,Ft=e=>!!e&&typeof e=="object"&&e[ko]===gi,$h=e=>!!e&&typeof e=="object"&&e[ko]===Bc;function ln(e){if(e&&typeof e=="object")switch(e[ko]){case Ta:case Bc:return!0}return!1}function hn(e){if(e&&typeof e=="object")switch(e[ko]){case eT:case Ta:case gi:case Bc:return!0}return!1}const u5=e=>(Ft(e)||ln(e))&&!!e.anchor,us=Symbol("break visit"),xve=Symbol("skip children"),Yu=Symbol("remove node");function qc(e,t){const n=_ve(t);wy(e)?zl(null,e.contents,n,Object.freeze([e]))===Yu&&(e.contents=null):zl(null,e,n,Object.freeze([]))}qc.BREAK=us;qc.SKIP=xve;qc.REMOVE=Yu;function zl(e,t,n,r){const o=Sve(e,t,n,r);if(hn(o)||mn(o))return Tve(e,r,o),zl(e,o,n,r);if(typeof o!="symbol"){if(ln(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const a=zl(i,t.items[i],n,r);if(typeof a=="number")i=a-1;else{if(a===us)return us;a===Yu&&(t.items.splice(i,1),i-=1)}}}else if(mn(t)){r=Object.freeze(r.concat(t));const i=zl("key",t.key,n,r);if(i===us)return us;i===Yu&&(t.key=null);const a=zl("value",t.value,n,r);if(a===us)return us;a===Yu&&(t.value=null)}}return o}function _ve(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Sve(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(jh(t))return n.Map?.(e,t,r);if($h(t))return n.Seq?.(e,t,r);if(mn(t))return n.Pair?.(e,t,r);if(Ft(t))return n.Scalar?.(e,t,r);if(Hc(t))return n.Alias?.(e,t,r)}function Tve(e,t,n){const r=t[t.length-1];if(ln(r))r.items[e]=n;else if(mn(r))e==="key"?r.key=n:r.value=n;else if(wy(r))r.contents=n;else{const o=Hc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Ive={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Eve=e=>e.replace(/[!,[\]{}]/g,t=>Ive[t]);class hr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},hr.defaultYaml,t),this.tags=Object.assign({},hr.defaultTags,n)}clone(){const t=new hr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new hr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:hr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},hr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:hr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},hr.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,a]=r;return this.tags[i]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const a=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,a),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}const[,r,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];if(i)try{return i+decodeURIComponent(o)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Eve(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&hn(t.contents)){const i={};qc(t.contents,(a,s)=>{hn(s)&&s.tag&&(i[s.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,a]of r)i==="!!"&&a==="tag:yaml.org,2002:"||(!t||o.some(s=>s.startsWith(a)))&&n.push(`%TAG ${i} ${a}`);return n.join(`
650`)}}hr.defaultYaml={explicit:!1,version:"1.2"};hr.defaultTags={"!!":"tag:yaml.org,2002:"};function d5(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function h5(e){const t=new Set;return qc(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function m5(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ave(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o??(o=h5(e));const a=m5(t,o);return o.add(a),a},setAnchors:()=>{for(const i of n){const a=r.get(i);
650if(typeof a=="object"&&a.anchor&&(Ft(a.node)||ln(a.node)))a.node.anchor=a.anchor;else{const s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=i,s}}},sourceObjects:r}}function Ul(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){const a=r[o],s=Ul(e,r,String(o),a);s===void 0?delete r[o]:s!==a&&(r[o]=s)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const i=r.get(o),a=Ul(e,r,o,i);a===void 0?r.delete(o):a!==i&&r.set(o,a)}else if(r instanceof Set)for(const o of Array.from(r)){const i=Ul(e,r,o,o);i===void 0?r.delete(o):i!==o&&(r.delete(o),r.add(i))}else for(const[o,i]of Object.entries(r)){const a=Ul(e,r,o,i);a===void 0?delete r[o]:a!==i&&(r[o]=a)}return e.call(t,n,r)}function mo(e,t,n){if(Array.isArray(e))return e.map((r,o)=>mo(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!u5(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class tT{constructor(t){Object.defineProperty(this,ko,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){if(!wy(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},s=mo(this,"",a);if(typeof o=="function")for(const{count:l,res:c}of a.anchors.values())o(c,l);return typeof i=="function"?Ul(i,{"":s},"",s):s}}class nT extends tT{constructor(t){super(eT),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){if(n?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],qc(t,{Node:(i,a)=>{(Hc(a)||u5(a))&&r.push(a)}}),n&&(n.aliasResolveCache=r));let o;for(const i of r){if(i===this)break;i.anchor===this.source&&(o=i)}return o}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,a=this.resolve(o,n);if(!a){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let s=r.get(a);if(s||(mo(a,null,n),s=r.get(a)),s?.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(i>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=tp(o,a,r)),s.count*s.aliasCount>
650i)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return s.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(d5(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function tp(e,t,n){if(Hc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(ln(t)){let r=0;for(const o of t.items){const i=tp(e,o,n);i>r&&(r=i)}return r}else if(mn(t)){const r=tp(e,t.key,n),o=tp(e,t.value,n);return Math.max(r,o)}return 1}const p5=e=>!e||typeof e!="function"&&typeof e!="object";class Ze extends tT{constructor(t){super(gi),this.value=t}toJSON(t,n){return n?.keep?this.value:mo(this.value,t,n)}toString(){return String(this.value)}}Ze.BLOCK_FOLDED="BLOCK_FOLDED";Ze.BLOCK_LITERAL="BLOCK_LITERAL";Ze.PLAIN="PLAIN";Ze.QUOTE_DOUBLE="QUOTE_DOUBLE";Ze.QUOTE_SINGLE="QUOTE_SINGLE";const Cve="tag:yaml.org,2002:";function Nve(e,t,n){if(t){const r=n.filter(i=>i.tag===t),o=r.find(i=>!i.format)??r[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(r=>r.identify?.(e)&&!r.format)}function _d(e,t,n){if(wy(e)&&(e=e.contents),hn(e))return e;
650if(mn(e)){const d=n.schema[Ta].createNode?.(n.schema,null,n);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:a,sourceObjects:s}=n;let l;if(r&&e&&typeof e=="object"){if(l=s.get(e),l)return l.anchor??(l.anchor=o(e)),new nT(l.anchor);l={anchor:null,node:null},s.set(e,l)}t?.startsWith("!!")&&(t=Cve+t.slice(2));let c=Nve(e,t,a.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new Ze(e);return l&&(l.node=d),d}c=e instanceof Map?a[Ta]:Symbol.iterator in Object(e)?a[Bc]:a[Ta]}i&&(i(c),delete n.onTagObj);const h=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new Ze(e);return t?h.tag=t:c.default||(h.tag=c.tag),l&&(l.node=h),h}function Xp(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const a=[];a[i]=r,r=a}else r=new Map([[i,r]])}return _d(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ju=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class f5 extends tT{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>hn(r)||mn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(ju(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(ln(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,Xp(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(ln(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,i=this.get(r,!0);return o.length===0?!n&&Ft(i)?i.value:i:ln(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!mn(n))return!1;const r=n.value;return r==null||t&&Ft(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return ln(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const i=this.get(r,!0);if(ln(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,Xp(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}const Pve=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ni(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const gs=(e,t,n)=>e.endsWith(`
651`)?Ni(n,t):n.includes(`
652`)?`
653`+Ni(n,t):(e.endsWith(" ")?"":" ")+n,g5="flow",ik="block",np="quoted";function vy(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){if(!o||o<0)return e;o<i&&(i=0);const l=Math.max(1+i,1+o-t.length);if(e.length<=l)return e;const c=[],h={};let d=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?c.push(0):d=o-r);let p,f,b=!1,y=-1,w=-1,k=-1;n===ik&&(y=VA(e,y,t.length),y!==-1&&(d=y+l));for(let S;S=e[y+=1];){if(n===np&&S==="\\"){switch(w=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}k=y}if(S===`
654`)n===ik&&(y=VA(e,y,t.length)),d=y+t.length+l,p=void 0;else{if(S===" "&&f&&f!==" "&&f!==`
655`&&f!=="	"){const I=e[y+1];I&&I!==" "&&I!==`
656`&&I!=="	"&&(p=y)}if(y>=d)if(p)c.push(p),d=p+l,p=void 0;else if(n===np){for(;f===" "||f==="	";)f=S,S=e[y+=1],b=!0;const I=y>k+1?y-2:w-1;if(h[I])return e;c.push(I),h[I]=!0,d=I+l,p=void 0}else b=!0}f=S}if(b&&s&&s(),c.length===0)return e;a&&a();let x=e.slice(0,c[0]);for(let S=0;S<c.length;++S){const I=c[S],E=c[S+1]||e.length;I===0?x=`
657${t}${e.slice(0,E)}`:(n===np&&h[I]&&(x+=`${e[I]}\\`),x+=`
658${t}${e.slice(I+1,E)}`)}return x}function VA(e,t,n){let r=t,o=t+1,i=e[o];for(;i===" "||i==="	";)if(t<o+n)i=e[++t];else{do i=e[++t];while(i&&i!==`
659`);r=t,o=t+1,i=e[o]}return r}const ky=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}
659),xy=e=>/^(%|---|\.\.\.)/m.test(e);function Dve(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let i=0,a=0;i<o;++i)if(e[i]===`
660`){if(i-a>r)return!0;if(a=i+1,o-a<=r)return!1}return!0}function Zu(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(xy(e)?"  ":"");let a="",s=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(a+=n.slice(s,l)+"\\ ",l+=1,s=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{a+=n.slice(s,l);const h=n.substr(l+2,4);switch(h){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:h.substr(0,2)==="00"?a+="\\x"+h.substr(2):a+=n.substr(l,6)}l+=5,s=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<o)l+=1;else{for(a+=n.slice(s,l)+`
661
662`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)a+=`
663`,l+=2;a+=i,n[l+2]===" "&&(a+="\\"),l+=1,s=l+1}break;default:l+=1}return a=s?a+n.slice(s):n,r?a:vy(a,i,np,ky(t,!1))}function ak(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
664`)||/[ \t]\n|\n[ \t]/.test(e))return Zu(e,t);const n=t.indent||(xy(e)?"  ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
665${n}`)+"'";return t.implicitKey?r:vy(r,n,g5,ky(t,!1))}function Fl(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Zu;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=ak:i&&!o?r=Zu:r=n?ak:Zu}return r(e,t)}let sk;try{sk=new RegExp(`(^|(?<!
666))
667+(?!
668|$)`,"g")}catch{sk=/\n+(?!\n|$)/g}function rp({comment:e,type:t,value:n},r,o,i){const{blockQuote:a,commentString:s,lineWidth:l}=r.options;if(!a||/\n[\t ]+$/.test(n))return Fl(n,r);const c=r.indent||(r.forceBlockIndent||xy(n)?"  ":""),h=a==="literal"?!0:a==="folded"||t===Ze.BLOCK_FOLDED?!1:t===Ze.BLOCK_LITERAL?!0:!Dve(n,l,c.length);if(!n)return h?`|
669`:`>
670`;let d,p;for(p=n.length;p>0;--p){const E=n[p-1];if(E!==`
671`&&E!=="	"&&E!==" ")break}let f=n.substring(p);const b=f.indexOf(`
672`);b===-1?d="-":n===f||b!==f.length-1?(d="+",i&&i()):d="",f&&(n=n.slice(0,-f.length),f[f.length-1]===`
673`&&(f=f.slice(0,-1)),f=f.replace(sk,`$&${c}`));let y=!1,w,k=-1;for(w=0;w<n.length;++w){const E=n[w];if(E===" ")y=!0;else if(E===`
674`)k=w;else break}let x=n.substring(0,k<w?k+1:w);x&&(n=n.substring(x.length),x=x.replace(/\n+/g,`$&${c}`));let I=(y?c?"2":"1":"")+d;if(e&&(I+=" "+s(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!h){const E=n.replace(/\n+/g,`
675$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let C=!1;const $=ky(r,!0);a!=="folded"&&t!==Ze.BLOCK_FOLDED&&($.onOverflow=()=>{C=!0});const T=vy(`${x}${E}${f}`,c,ik,$);if(!C)return`>${I}
676${c}${T}`}return n=n.replace(/\n+/g,`$&${c}`),`|${I}
677${c}${x}${n}${f}`}function Ove(e,t,n,r){const{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:l,indentStep:c,inFlow:h}=t;if(s&&i.includes(`
678`)||h&&/[[\]{},]/.test(i))return Fl(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||h||!i.includes(`
679`)?Fl(i,t):rp(e,t,n,r);if(!s&&!h&&o!==Ze.PLAIN&&i.includes(`
680`))return rp(e,t,n,r);if(xy(i)){if(l==="")return t.forceBlockIndent=!0,rp(e,t,n,r);if(s&&l===c)return Fl(i,t)}const d=i.replace(/\n+/g,`$&
681${l}`);if(a){const p=y=>y.default&&y.tag!=="tag:yaml.org,2002:str"&&y.test?.test(d),{compat:f,tags:b}=t.doc.schema;if(b.some(p)||f?.some(p))return Fl(i,t)}return s?d:vy(d,l,g5,ky(t,!1))}function rT(e,t,n,r){const{implicitKey:o,inFlow:i}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:s}=e;s!==Ze.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Ze.QUOTE_DOUBLE);const l=h=>{switch(h){case Ze.BLOCK_FOLDED:case Ze.BLOCK_LITERAL:return o||i?Fl(a.value,t):rp(a,t,n,r);case Ze.QUOTE_DOUBLE:return Zu(a.value,t);case Ze.QUOTE_SINGLE:return ak(a.value,t);case Ze.PLAIN:return Ove(a,t,n,r);default:return null}};let c=l(s);if(c===null){const{defaultKeyType:h,defaultStringType:d}=t.options,p=o&&h||d;if(c=l(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}function y5(e,t){const n=Object.assign({blockQuote:!0,commentString:Pve,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):"  ",inFlow:r,options:n}}function Rve(e,t){if(t.tag){const o=e.filter(i=>i.tag===t.tag);if(o.length>0)return o.find(i=>i.format===t.format)??o[0]}let n,r;if(Ft(t)){r=t.value;let o=e.filter(i=>i.identify?.(r));if(o.length>1){const i=o.filter(a=>a.test);i.length>0&&(o=i)}n=o.find(i=>i.format===t.format)??o.find(i=>!i.format)}else r=t,n=e.find(o=>o.nodeClass&&r instanceof o.nodeClass);if(!n){const o=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${o} value`)}return n}function Mve(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(Ft(e)||ln(e))&&e.anchor;i&&d5(i)&&(n.add(i),o.push(`&${i}`));const a=e.tag??(t.default?null:t.tag);return a&&o.push(r.directives.tagString(a)),o.join(" ")}function vc(e,t,n,r){if(mn(e))return e.toString(t,n,r);if(Hc(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=hn(e)?e:t.doc.createNode(e,{onTagObj:l=>o=l});o??(o=Rve(t.doc.schema.tags,i));const a=Mve(i,o,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const s=typeof o.stringify=="function"?o.stringify(i,t,n,r):Ft(i)?rT(i,t,n,r):i.toString(t,n,r);return a?Ft(i)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a}
682${t.indent}${s}`:s}function jve({key:e,value:t},n,r,o){const{allNullValues:i,doc:a,indent:s,indentStep:l,options:{commentString:c,indentSeq:h,simpleKeys:d}}=n;let p=hn(e)&&e.comment||null;if(d){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(ln(e)||!hn(e)&&typeof e=="object"){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let f=!d&&(!e||p&&t==null&&!n.inFlow||ln(e)||(Ft(e)?e.type===Ze.BLOCK_FOLDED||e.type===Ze.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({}
682,n,{allNullValues:!1,implicitKey:!f&&(d||!i),indent:s+l});let b=!1,y=!1,w=vc(e,n,()=>b=!0,()=>y=!0);if(!f&&!n.inFlow&&w.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),w===""?"?":f?`? ${w}`:w}else if(i&&!d||t==null&&f)return w=`? ${w}`,p&&!b?w+=gs(w,n.indent,c(p)):y&&o&&o(),w;b&&(p=null),f?(p&&(w+=gs(w,n.indent,c(p))),w=`? ${w}
683${s}:`):(w=`${w}:`,p&&(w+=gs(w,n.indent,c(p))));let k,x,S;hn(t)?(k=!!t.spaceBefore,x=t.commentBefore,S=t.comment):(k=!1,x=null,S=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!f&&!p&&Ft(t)&&(n.indentAtStart=w.length+1),y=!1,!h&&l.length>=2&&!n.inFlow&&!f&&$h(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let I=!1;const E=vc(t,n,()=>I=!0,()=>y=!0);let C=" ";if(p||k||x){if(C=k?`
684`:"",x){const $=c(x);C+=`
685${Ni($,n.indent)}`}E===""&&!n.inFlow?C===`
686`&&S&&(C=`
687
688`):C+=`
689${n.indent}`}else if(!f&&ln(t)){const $=E[0],T=E.indexOf(`
690`),P=T!==-1,D=n.inFlow??t.flow??t.items.length===0;if(P||!D){let H=!1;if(P&&($==="&"||$==="!")){let z=E.indexOf(" ");$==="&"&&z!==-1&&z<T&&E[z+1]==="!"&&(z=E.indexOf(" ",z+1)),(z===-1||T<z)&&(H=!0)}H||(C=`
691${n.indent}`)}}else(E===""||E[0]===`
692`)&&(C="");return w+=C+E,n.inFlow?I&&r&&r():S&&!I?w+=gs(w,n.indent,c(S)):y&&o&&o(),w}function b5(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const $m="<<",Oi={identify:e=>e===$m||typeof e=="symbol"&&e.description===$m,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ze(Symbol($m)),{addToJSMap:w5}),stringify:()=>$m},$ve=(e,t)=>(Oi.identify(t)||Ft(t)&&(!t.type||t.type===Ze.PLAIN)&&Oi.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Oi.tag&&n.default);function w5(e,t,n){const r=v5(e,n);if($h(r))for(const o of r.items)nw(e,t,o);else if(Array.isArray(r))for(const o of r)nw(e,t,o);else nw(e,t,r)}function nw(e,t,n){const r=v5(e,n);if(!jh(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[i,a]of o)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function v5(e,t){return e&&Hc(t)?t.resolve(e.doc,e):t}function k5(e,t,{key:n,value:r}){if(hn(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if($ve(e,n))w5(e,t,r);else{const o=mo(n,"",e);if(t instanceof Map)t.set(o,mo(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Lve(n,o,e),a=mo(r,i,e);i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[i]=a}}return t}function Lve(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(hn(e)&&n?.doc){const r=y5(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),b5(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function oT(e,t,n){const r=_d(e,void 0,n),o=_d(t,void 0,n);return new br(r,o)}class br{constructor(t,n=null){Object.defineProperty(this,ko,{value:c5}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return hn(n)&&(n=n.clone(t)),hn(r)&&(r=r.clone(t)),new br(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return k5(n,r,this)}toString(t,n,r){return t?.doc?jve(this,t,n,r):JSON.stringify(this)}}function x5(e,t,n){return(t.inFlow??e.flow?Uve:zve)(e,t,n)}function zve({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:a,onComment:s}){const{indent:l,options:{commentString:c}}=n,h=Object.assign({},n,{indent:i,type:null});let d=!1;const p=[];for(let b=0;b<t.length;++b){const y=t[b];let w=null;if(hn(y))!d&&y.spaceBefore&&p.push(""),ef(n,p,y.commentBefore,d),y.comment&&(w=y.comment);else if(mn(y)){const x=hn(y.key)?y.key:null;x&&(!d&&x.spaceBefore&&p.push(""),ef(n,p,x.commentBefore,d))}d=!1;let k=vc(y,h,()=>w=null,()=>d=!0);w&&(k+=gs(k,i,c(w))),d&&w&&(d=!1),p.push(r+k)}let f;if(p.length===0)f=o.start+o.end;else{f=p[0];for(let b=1;b<p.length;++b){const y=p[b];f+=y?`
693${l}${y}`:`
694`}}return e?(f+=`
695`+Ni(c(e),l),s&&s()):d&&a&&a(),f}function Uve({items:e},t,{flowChars:n,itemIndent:r}){const{indent:o,indentStep:i,flowCollectionPadding:a,options:{commentString:s}}=t;r+=i;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,h=0;const d=[];for(let b=0;b<e.length;++b){const y=e[b];let w=null;if(hn(y))y.spaceBefore&&d.push(""),ef(t,d,y.commentBefore,!1),y.comment&&(w=y.comment);else if(mn(y)){const x=hn(y.key)?y.key:null;x&&(x.spaceBefore&&d.push(""),ef(t,d,x.commentBefore,!1),x.comment&&(c=!0));const S=hn(y.value)?y.value:null;S?(S.comment&&(w=S.comment),S.commentBefore&&(c=!0)):y.value==null&&x?.comment&&(w=x.comment)}w&&(c=!0);let k=vc(y,l,()=>w=null);c||(c=d.length>h||k.includes(`
696`)),b<e.length-1?k+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(c||(c=d.reduce((x,S)=>x+S.length+2,2)+(k.length+2)>t.options.lineWidth)),c&&(k+=",")),w&&(k+=gs(k,r,s(w))),d.push(k),h=d.length}const{start:p,end:f}=n;if(d.length===0)return p+f;if(!c){const b=d.reduce((y,w)=>y+w.length+2,2);c=t.options.lineWidth>0&&b>t.options.lineWidth}if(c){let b=p;for(const y of d)b+=y?`
697${i}${o}${y}`:`
698`;return`${b}
699${o}${f}`}else return`${p}${a}${d.join(" ")}${a}${f}`}function ef({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=Ni(t(r),e);n.push(i.trimStart())}}function ys(e,t){const n=Ft(t)?t.value:t;for(const r of e)if(mn(r)&&(r.key===t||r.key===n||Ft(r.key)&&r.key.value===n))return r}class so extends f5{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ta,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:i}=r,a=new this(t),s=(l,c)=>{if(typeof i=="function")c=i.call(n,l,c);else if(Array.isArray(i)&&!i.includes(l))return;(c!==void 0||o)&&a.items.push(oT(l,c,r))};if(n instanceof Map)for(const[l,c]of n)s(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))s(l,n[l]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let r;mn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new br(t,t?.value):r=new br(t.key,t.value);const o=ys(this.items,r.key),i=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);Ft(o.value)&&p5(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const a=this.items.findIndex(s=>i(r,s)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=ys(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=ys(this.items,t)?.value;return(!n&&Ft(o)?o.value:o)??void 0}has(t){return!!ys(this.items,t)}set(t,n){this.add(new br(t,n),!0)}toJSON(t,n,r){const o=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const i of this.items)k5(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!mn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),x5(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Vc={collection:"map",default:!0,nodeClass:so,tag:"tag:yaml.org,2002:map",resolve(e,t){return jh(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>so.from(e,t,n)};class Rs extends f5{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Bc,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Lm(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Lm(t);if(typeof r!="number")return;const o=this.items[r];return!n&&Ft(o)?o.value:o}has(t){const n=Lm(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Lm(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];Ft(o)&&p5(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let o=0;for(const i of this.items)r.push(mo(i,String(o++),n));return r}toString(t,n,r){return t?x5(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+"  ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let s of n){if(typeof o=="function"){const l=n instanceof Set?s:String(a++);s=o.call(n,l,s)}i.items.push(_d(s,void 0,r))}}return i}}function Lm(e){let t=Ft(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Kc={collection:"seq",default:!0,nodeClass:Rs,tag:"tag:yaml.org,2002:seq",resolve(e,t){return $h(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Rs.from(e,t,n)},_y={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),rT(e,t,n,r)}},Sy={identify:e=>e==null,createNode:()=>new Ze(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ze(null),stringify:({source:e},t)=>typeof e=="string"&&Sy.test.test(e)?e:t.options.nullStr},iT={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ze(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&iT.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function Xo({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);
699if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^-?\d/.test(i)&&!i.includes("e")){let a=i.indexOf(".");a<0&&(a=i.length,i+=".");let s=t-(i.length-a-1);for(;s-- >0;)i+="0"}return i}const _5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Xo},S5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Xo(e)}},T5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ze(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Xo},Ty=e=>typeof e=="bigint"||Number.isInteger(e),aT=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function I5(e,t,n){const{value:r}=e;return Ty(r)&&r>=0?n+r.toString(t):Xo(e)}const E5={identify:e=>Ty(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>aT(e,2,8,n),stringify:e=>I5(e,8,"0o")},A5={identify:Ty,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>aT(e,0,10,n),stringify:Xo},C5={identify:e=>Ty(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>aT(e,2,16,n),stringify:e=>I5(e,16,"0x")},Fve=[Vc,Kc,_y,Sy,iT,E5,A5,C5,_5,S5,T5];function KA(e){return typeof e=="bigint"||Number.isInteger(e)}const zm=({value:e})=>JSON.stringify(e),Wve=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:zm},{identify:e=>e==null,createNode:()=>new Ze(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:zm},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:zm},{identify:KA,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>KA(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:zm}],Bve={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Hve=[Vc,Kc].concat(Wve,Bve),sT={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){if(!n)return"";const a=n;let s;if(typeof btoa=="function"){let l="";for(let c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);s=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Ze.BLOCK_LITERAL),t!==Ze.QUOTE_DOUBLE){const l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(s.length/l),h=new Array(c);for(let d=0,p=0;d<c;++d,p+=l)h[d]=s.substr(p,l);s=h.join(t===Ze.BLOCK_LITERAL?`
700`:" ")}return rT({comment:e,type:t,value:s},r,o,i)}};function N5(e,t){if($h(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!mn(r)){if(jh(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const o=r.items[0]||new br(new Ze(null));if(r.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${r.commentBefore}
701${o.key.commentBefore}`:r.commentBefore),r.comment){const i=o.value??o.key;i.comment=i.comment?`${r.comment}
702${i.comment}`:r.comment}r=o}e.items[n]=mn(r)?r:new br(r)}}else t("Expected a sequence for this tag");return e}function P5(e,t,n){const{replacer:r}=n,o=new Rs(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(i++),a));let s,l;if(Array.isArray(a))if(a.length===2)s=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const c=Object.keys(a);if(c.length===1)s=c[0],l=a[s];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else s=a;o.items.push(oT(s,l,n))}return o}const lT={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:N5,createNode:P5};class Gl extends Rs{constructor(){super(),this.add=so.prototype.add.bind(this),this.delete=so.prototype.delete.bind(this),this.get=so.prototype.get.bind(this),this.has=so.prototype.has.bind(this),this.set=so.prototype.set.bind(this),this.tag=Gl.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const o of this.items){let i,a;if(mn(o)?(i=mo(o.key,"",n),a=mo(o.value,i,n)):i=mo(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,a)}return r}static from(t,n,r){const o=P5(t,n,r),i=new this;return i.items=o.items,i}}Gl.tag="tag:yaml.org,2002:omap";const cT={collection:"seq",identify:e=>e instanceof Map,nodeClass:Gl,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=N5(e,t),r=[];for(const{key:o}of n.items)Ft(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new Gl,n)},createNode:(e,t,n)=>Gl.from(e,t,n)};function D5({value:e,source:t},n){return t&&(e?O5:R5).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const O5={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ze(!0),stringify:D5},R5={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ze(!1),stringify:D5},qve={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Xo},Vve={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Xo(e)}},Kve={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ze(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Xo},Lh=e=>typeof e=="bigint"||Number.isInteger(e);function Iy(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;
702case 16:e=`0x${e}`;break}const a=BigInt(e);return o==="-"?BigInt(-1)*a:a}const i=parseInt(e,n);return o==="-"?-1*i:i}function uT(e,t,n){const{value:r}=e;if(Lh(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Xo(e)}const Gve={identify:Lh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Iy(e,2,2,n),stringify:e=>uT(e,2,"0b")},Yve={identify:Lh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Iy(e,1,8,n),stringify:e=>uT(e,8,"0")},Zve={identify:Lh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Iy(e,0,10,n),stringify:Xo},Jve={identify:Lh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Iy(e,2,16,n),stringify:e=>uT(e,16,"0x")};class Yl extends so{constructor(t){super(t),this.tag=Yl.tag}add(t){let n;mn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new br(t.key,null):n=new br(t,null),ys(this.items,n.key)||this.items.push(n)}get(t,n){const r=ys(this.items,t);return!n&&mn(r)?Ft(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=ys(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new br(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:o}=r,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof o=="function"&&(a=o.call(n,a,a)),i.items.push(oT(a,null,r));return i}}Yl.tag="tag:yaml.org,2002:set";const dT={collection:"map",identify:e=>e instanceof Set,nodeClass:Yl,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Yl.from(e,t,n),resolve(e,t){if(jh(e)){if(e.hasAllNullValues(!0))return Object.assign(new Yl,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function hT(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=a=>t?BigInt(a):Number(a),i=r.replace(/_/g,"").split(":").reduce((a,s)=>a*o(60)+o(s),o(0));return n==="-"?o(-1)*i:i}function M5(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Xo(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const j5={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>hT(e,n),stringify:M5},$5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>hT(e,!1),stringify:M5},Ey={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Ey.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,a,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,o,i||0,a||0,s||0,l);const h=t[8];if(h&&h!=="Z"){let d=hT(h,!1);Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},GA=[Vc,Kc,_y,Sy,O5,R5,Gve,Yve,Zve,Jve,qve,Vve,Kve,sT,Oi,cT,lT,dT,j5,$5,Ey],YA=new Map([["core",Fve],["failsafe",[Vc,Kc,_y]],["json",Hve],["yaml11",GA],["yaml-1.1",GA]]),ZA={binary:sT,bool:iT,float:T5,floatExp:S5,floatNaN:_5,floatTime:$5,int:A5,intHex:C5,intOct:E5,intTime:j5,map:Vc,merge:Oi,null:Sy,omap:cT,pairs:lT,seq:Kc,set:dT,timestamp:Ey},Qve={"tag:yaml.org,2002:binary":sT,"tag:yaml.org,2002:merge":Oi,"tag:yaml.org,2002:omap":cT,"tag:yaml.org,2002:pairs":lT,"tag:yaml.org,2002:set":dT,"tag:yaml.org,2002:timestamp":Ey};function rw(e,t,n){const r=YA.get(t);if(r&&!e)return n&&!r.includes(Oi)?r.concat(Oi):r.slice();let o=r;if(!o)if(Array.isArray(e))o=[];else{const i=Array.from(YA.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(const i of e)o=o.concat(i);else typeof e=="function"&&(o=e(o.slice()));
702return n&&(o=o.concat(Oi)),o.reduce((i,a)=>{const s=typeof a=="string"?ZA[a]:a;if(!s){const l=JSON.stringify(a),c=Object.keys(ZA).map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return i.includes(s)||i.push(s),i},[])}const Xve=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;let eke=class L5{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(t)?rw(t,"compat"):t?rw(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Qve:{},this.tags=rw(n,this.name,r),this.toStringOptions=s??null,Object.defineProperty(this,Ta,{value:Vc}),Object.defineProperty(this,gi,{value:_y}),Object.defineProperty(this,Bc,{value:Kc}),this.sortMapEntries=typeof a=="function"?a:a===!0?Xve:null}clone(){const t=Object.create(L5.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function tke(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(n.push(l),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=y5(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=i(e.commentBefore);n.unshift(Ni(l,""))}let a=!1,s=null;if(e.contents){if(hn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(Ni(h,""))}o.forceBlockIndent=!!e.comment,s=e.contents.comment}const l=s?void 0:()=>a=!0;let c=vc(e.contents,o,()=>s=null,l);s&&(c+=gs(c,"",i(s))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(vc(e.contents,o));if(e.directives?.docEnd)if(e.comment){const l=i(e.comment);l.includes(`
703`)?(n.push("..."),n.push(Ni(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&a&&(l=l.replace(/^\n+/,"")),l&&((!a||s)&&n[n.length-1]!==""&&n.push(""),n.push(Ni(i(l),"")))}return n.join(`
704`)+`
705`}class Ay{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ko,{value:ok});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:a}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new hr({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(Ay.prototype,{[ko]:{value:ok}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=hn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){vl(this.contents)&&this.contents.add(t)}addIn(t,n){vl(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=h5(this);t.anchor=!n||r.has(n)?m5(n||"a",r):n}return new nT(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const w=x=>typeof x=="number"||x instanceof String||x instanceof Number,k=n.filter(w).map(String);k.length>0&&(n=n.concat(k)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:a,flow:s,keepUndefined:l,onTagObj:c,tag:h}=r??{},{onAnchor:d,setAnchors:p,sourceObjects:f}=Ave(this,a||"a"),b={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:d,onTagObj:c,replacer:o,schema:this.schema,sourceObjects:f},y=_d(t,h,b);return s&&ln(y)&&(y.flow=!0),p(),y}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new br(o,i)}delete(t){return vl(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ju(t)?this.contents==null?!1:(this.contents=null,!0):vl(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return ln(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return ju(t)?!n&&Ft(this.contents)?this.contents.value:this.contents:ln(this.contents)?this.contents.getIn(t,n):void 0}has(t){return ln(this.contents)?this.contents.has(t):!1}hasIn(t){return ju(t)?this.contents!==void 0:ln(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Xp(this.schema,[t],n):vl(this.contents)&&this.contents.set(t,n)}setIn(t,n){ju(t)?this.contents=n:this.contents==null?this.contents=Xp(this.schema,Array.from(t),n):vl(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new hr({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new hr({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new eke(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}
705toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:a}={}){const s={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},l=mo(this.contents,n??"",s);if(typeof i=="function")for(const{count:c,res:h}of s.anchors.values())i(h,c);return typeof a=="function"?Ul(a,{"":l},"",l):l}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return tke(this,t)}}function vl(e){if(ln(e))return!0;throw new Error("Expected a YAML collection as document contents")}class z5 extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class $u extends z5{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class nke extends z5{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const JA=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(s=>t.linePos(s));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){const s=Math.min(i-39,a.length-79);a="…"+a.substring(s),i-=s-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,i))){let s=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);s.length>80&&(s=s.substring(0,79)+`…
706`),a=s+a}if(/[^ ]/.test(a)){let s=1;const l=n.linePos[1];l?.line===r&&l.col>o&&(s=Math.max(1,Math.min(l.col-o,80-i)));const c=" ".repeat(i)+"^".repeat(s);n.message+=`:
707
708${a}
709${c}
710`}};function kc(e,{flow:t,indicator:n,next:r,offset:o,onError:i,parentIndent:a,startOnNewline:s}){let l=!1,c=s,h=s,d="",p="",f=!1,b=!1,y=null,w=null,k=null,x=null,S=null,I=null,E=null;for(const T of e)switch(b&&(T.type!=="space"&&T.type!=="newline"&&T.type!=="comma"&&i(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),y&&(c&&T.type!=="comment"&&T.type!=="newline"&&i(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),T.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&T.source.includes("	")&&(y=T),h=!0;break;case"comment":{h||i(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const P=T.source.substring(1)||" ";d?d+=p+P:d=P,p="",c=!1;break}case"newline":c?d?d+=T.source:(!I||n!=="seq-item-ind")&&(l=!0):p+=T.source,c=!0,f=!0,(w||k)&&(x=T),h=!0;break;case"anchor":w&&i(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&i(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=T,E??(E=T.offset),c=!1,h=!1,b=!0;break;case"tag":{k&&i(T,"MULTIPLE_TAGS","A node can have at most one tag"),k=T,E??(E=T.offset),c=!1,h=!1,b=!0;break}case n:(w||k)&&i(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),I&&i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${t??"collection"}`),I=T,c=n==="seq-item-ind"||n==="explicit-key-ind",h=!1;break;case"comma":if(t){S&&i(T,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),S=T,c=!1,h=!1;break}default:i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),c=!1,h=!1}const C=e[e.length-1],$=C?C.offset+C.source.length:o;return b&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(c&&y.indent<=a||r?.type==="block-map"||r?.type==="block-seq")&&i(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:S,found:I,spaceBefore:l,comment:d,hasNewline:f,anchor:w,tag:k,newlineAfterProp:x,end:$,start:E??$}}function Sd(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
711`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;
711if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Sd(t.key)||Sd(t.value))return!0}return!1;default:return!0}}function lk(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Sd(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function U5(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,a)=>i===a||Ft(i)&&Ft(a)&&i.value===a.value;return t.some(i=>o(i.key,n))}const QA="All mapping items must start at the same column";function rke({composeNode:e,composeEmptyNode:t},n,r,o,i){const a=i?.nodeClass??so,s=new a(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const h of r.items){const{start:d,key:p,sep:f,value:b}=h,y=kc(d,{indicator:"explicit-key-ind",next:p??f?.[0],offset:l,onError:o,parentIndent:r.indent,startOnNewline:!0}),w=!y.found;if(w){if(p&&(p.type==="block-seq"?o(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&o(l,"BAD_INDENT",QA)),!y.anchor&&!y.tag&&!f){c=y.end,y.c
711omment&&(s.comment?s.comment+=`
712`+y.comment:s.comment=y.comment);continue}(y.newlineAfterProp||Sd(p))&&o(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else y.found?.indent!==r.indent&&o(l,"BAD_INDENT",QA);n.atKey=!0;const k=y.end,x=p?e(n,p,y,o):t(n,k,d,null,y,o);n.schema.compat&&lk(r.indent,p,o),n.atKey=!1,U5(n,s.items,x)&&o(k,"DUPLICATE_KEY","Map keys must be unique");const S=kc(f??[],{indicator:"map-value-ind",next:b,offset:x.range[2],onError:o,parentIndent:r.indent,startOnNewline:!p||p.type==="block-scalar"});if(l=S.end,S.found){w&&(b?.type==="block-map"&&!S.hasNewline&&o(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&y.start<S.found.offset-1024&&o(x.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const I=b?e(n,b,S,o):t(n,l,f,null,S,o);n.schema.compat&&lk(r.indent,b,o),l=I.range[2];const E=new br(x,I);n.options.keepSourceTokens&&(E.srcToken=h),s.items.push(E)}else{w&&o(x.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&(x.comment?x.comment+=`
713`+S.comment:x.comment=S.comment);const I=new br(x);n.options.keepSourceTokens&&(I.srcToken=h),s.items.push(I)}}return c&&c<l&&o(c,"IMPOSSIBLE","Map comment with trailing content"),s.range=[r.offset,l,c??l],s}function oke({composeNode:e,composeEmptyNode:t},n,r,o,i){const a=i?.nodeClass??Rs,s=new a(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let l=r.offset,c=null;for(const{start:h,value:d}of r.items){const p=kc(h,{indicator:"seq-item-ind",next:d,offset:l,onError:o,parentIndent:r.indent,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||d)d?.type==="block-seq"?o(p.end,"BAD_INDENT","All sequence items must start at the same column"):o(l,"MISSING_CHAR","Sequence item without - indicator");else{c=p.end,p.comment&&(s.comment=p.comment);continue}const f=d?e(n,d,p,o):t(n,p.end,h,null,p,o);n.schema.compat&&lk(r.indent,d,o),l=f.range[2],s.items.push(f)}return s.range=[r.offset,l,c??l],s}function zh(e,t,n,r){let o="";if(e){let i=!1,a="";for(const s of e){const{source:l,type:c}=s;switch(c){case"space":i=!0;break;case"comment":{n&&!i&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=l.substring(1)||" ";o?o+=a+h:o=h,a="";break}case"newline":o&&(a+=l),i=!0;break;default:r(s,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=l.length}}return{comment:o,offset:t}}const ow="Block collections are not allowed within flow collections",iw=e=>e&&(e.type==="block-map"||e.type==="block-seq");function ike({composeNode:e,composeEmptyNode:t},n,r,o,i){const a=r.start.source==="{",s=a?"flow map":"flow sequence",l=i?.nodeClass??(a?so:Rs),c=new l(n.schema);c.flow=!0;const h=n.atRoot;h&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=r.offset+r.start.source.length;for(let w=0;w<r.items.length;++w){const k=r.items[w],{start:x,key:S,sep:I,value:E}=k,C=kc(x,{flow:s,indicator:"explicit-key-ind",next:S??I?.[0],offset:d,onError:o,parentIndent:r.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!I&&!E){w===0&&C.comma?o(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):w<r.items.length-1&&o(C.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),C.comment&&(c.comment?c.comment+=`
714`+C.comment:c.comment=C.comment),d=C.end;continue}!a&&n.options.strict&&Sd(S)&&o(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)C.comma&&o(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(C.comma||o(C.start,"MISSING_CHAR",`Missing , between ${s} items`),C.comment){let $="";e:for(const T of x)switch(T.type){case"comma":case"space":break;case"comment":$=T.source.substring(1);break e;default:break e}if($){let T=c.items[c.items.length-1];mn(T)&&(T=T.value??T.key),T.comment?T.comment+=`
715`+$:T.comment=$,C.comment=C.comment.substring($.length+1)}}if(!a&&!I&&!C.found){const $=E?e(n,E,C,o):t(n,C.end,I,null,C,o);c.items.push($),d=$.range[2],iw(E)&&o($.range,"BLOCK_IN_FLOW",ow)}else{n.atKey=!0;const $=C.end,T=S?e(n,S,C,o):t(n,$,x,null,C,o);iw(S)&&o(T.range,"BLOCK_IN_FLOW",ow),n.atKey=!1;const P=kc(I??[],{flow:s,indicator:"map-value-ind",next:E,offset:T.range[2],onError:o,parentIndent:r.indent,startOnNewline:!1});
715if(P.found){if(!a&&!C.found&&n.options.strict){if(I)for(const z of I){if(z===P.found)break;if(z.type==="newline"){o(z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}C.start<P.found.offset-1024&&o(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source?.[0]===":"?o(E,"MISSING_CHAR",`Missing space after : in ${s}`):o(P.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const D=E?e(n,E,P,o):P.found?t(n,P.end,I,null,P,o):null;D?iw(E)&&o(D.range,"BLOCK_IN_FLOW",ow):P.comment&&(T.comment?T.comment+=`
716`+P.comment:T.comment=P.comment);const H=new br(T,D);if(n.options.keepSourceTokens&&(H.srcToken=k),a){const z=c;U5(n,z.items,T)&&o($,"DUPLICATE_KEY","Map keys must be unique"),z.items.push(H)}else{const z=new so(n.schema);z.flow=!0,z.items.push(H);const V=(D??T).range;z.range=[T.range[0],V[1],V[2]],c.items.push(z)}d=D?D.range[2]:P.end}}const p=a?"}":"]",[f,...b]=r.end;let y=d;if(f?.source===p)y=f.offset+f.source.length;else{const w=s[0].toUpperCase()+s.substring(1),k=h?`${w} must end with a ${p}`:`${w} in block collection must be sufficiently indented and end with a ${p}`;o(d,h?"MISSING_CHAR":"BAD_INDENT",k),f&&f.source.length!==1&&b.unshift(f)}if(b.length>0){const w=zh(b,y,n.options.strict,o);w.comment&&(c.comment?c.comment+=`
717`+w.comment:c.comment=w.comment),c.range=[r.offset,y,w.offset]}else c.range=[r.offset,y,y];return c}function aw(e,t,n,r,o,i){const a=n.type==="block-map"?rke(e,t,n,r,i):n.type==="block-seq"?oke(e,t,n,r,i):ike(e,t,n,r,i),s=a.constructor;return o==="!"||o===s.tagName?(a.tag=s.tagName,a):(o&&(a.tag=o),a)}function ake(e,t,n,r,o){const i=r.tag,a=i?t.directives.tagName(i.source,p=>o(i,"TAG_RESOLVE_FAILED",p)):null;if(n.type==="block-seq"){const{anchor:p,newlineAfterProp:f}=r,b=p&&i?p.offset>i.offset?p:i:p??i;b&&(!f||f.offset<b.offset)&&o(b,"MISSING_CHAR","Missing newline after block sequence props")}const s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!a||a==="!"||a===so.tagName&&s==="map"||a===Rs.tagName&&s==="seq")return aw(e,t,n,o,a);let l=t.schema.tags.find(p=>p.tag===a&&p.collection===s);if(!l){const p=t.schema.knownTags[a];if(p?.collection===s)t.schema.tags.push(Object.assign({},p,{default:!1})),l=p;else return p?o(i,"BAD_COLLECTION_TYPE",`${p.tag} used for ${s} collection, but expects ${p.collection??"scalar"}`,!0):o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),aw(e,t,n,o,a)}const c=aw(e,t,n,o,a,l),h=l.resolve?.(c,p=>o(i,"TAG_RESOLVE_FAILED",p),t.options)??c,d=hn(h)?h:new Ze(h);return d.range=c.range,d.tag=a,l?.format&&(d.format=l.format),d}function ske(e,t,n){const r=t.offset,o=lke(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Ze.BLOCK_FOLDED:Ze.BLOCK_LITERAL,a=t.source?cke(t.source):[];let s=a.length;for(let y=a.length-1;y>=0;--y){const w=a[y][1];if(w===""||w==="\r")s=y;else break}if(s===0){const y=o.chomp==="+"&&a.length>0?`
718`.repeat(Math.max(1,a.length-1)):"";let w=r+o.length;return t.source&&(w+=t.source.length),{value:y,type:i,comment:o.comment,range:[r,w,w]}}let l=t.indent+o.indent,c=t.offset+o.length,h=0;for(let y=0;y<s;++y){const[w,k]=a[y];if(k===""||k==="\r")o.indent===0&&w.length>l&&(l=w.length);else{w.length<l&&n(c+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(l=w.length),h=y,l===0&&!e.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=w.length+k.length+1}for(let y=a.length-1;y>=s;--y)a[y][0].length>l&&(s=y+1);let d="",p="",f=!1;for(let y=0;y<h;++y)d+=a[y][0].slice(l)+`
719`;for(let y=h;y<s;++y){let[w,k]=a[y];c+=w.length+k.length+1;const x=k[k.length-1]==="\r";if(x&&(k=k.slice(0,-1)),k&&w.length<l){const I=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(c-k.length-(x?2:1),"BAD_INDENT",I),w=""}i===Ze.BLOCK_LITERAL?(d+=p+w.slice(l)+k,p=`
720`):w.length>l||k[0]==="	"?(p===" "?p=`
721`:!f&&p===`
722`&&(p=`
723
724`),d+=p+w.slice(l)+k,p=`
725`,f=!0):k===""?p===`
726`?d+=`
727`:p=`
728`:(d+=p+k,p=" ",f=!1)}switch(o.chomp){case"-":break;case"+":for(let y=s;y<a.length;++y)d+=`
729`+a[y][0].slice(l);d[d.length-1]!==`
730`&&(d+=`
731`);break;default:d+=`
732`}const b=r+o.length+t.source.length;return{value:d,type:i,comment:o.comment,range:[r,b,b]}}function lke({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let a=0,s="",l=-1;for(let p=1;p<o.length;++p){const f=o[p];if(!s&&(f==="-"||f==="+"))s=f;else{const b=Number(f);!a&&b?a=b:l===-1&&(l=e+p)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let c=!1,h="",d=o.length;for(let p=1;p<t.length;++p){const f=t[p];switch(f.type){case"space":c=!0;case"newline":d+=f.source.length;break;case"comment":n&&!c&&r(f,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=f.source.length,h=f.source.substring(1);break;case"error":r(f,"UNEXPECTED_TOKEN",f.message),d+=f.source.length;break;default:{const b=`Unexpected token in block scalar header: ${f.type}`;r(f,"UNEXPECTED_TOKEN",b);const y=f.source;y&&typeof y=="string"&&(d+=y.length)}}}return{mode:i,indent:a,chomp:s,comment:h,length:d}}function cke(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)i.push([t[a],t[a+1]]);return i}function uke(e,t,n){const{offset:r,type:o,source:i,end:a}=e;let s,l;const c=(p,f,b)=>n(r+p,f,b);switch(o){case"scalar":s=Ze.PLAIN,l=dke(i,c);break;case"single-quoted-scalar":s=Ze.QUOTE_SINGLE,l=hke(i,c);break;case"double-quoted-scalar":s=Ze.QUOTE_DOUBLE,l=mke(i,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const h=r+i.length,d=zh(a,h,t,n);return{value:l,type:s,comment:d.comment,range:[r,h,d.offset]}}function dke(e,t){let n="";switch(e[0]){case"	":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),F5(e)}function hke(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),F5(e.slice(1,-1)).replace(/''/g,"'")}function F5(e){let t,n;try{t=new RegExp(`(.*?)(?<![ 	])[ 	]*\r?
733`,"sy"),n=new RegExp(`[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?
734`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",a=t.lastIndex;for(n.lastIndex=a;r=n.exec(e);)r[1]===""?i===`
735`?o+=i:i=`
736`:(o+=i+r[1],i=" "),a=n.lastIndex;const s=/[ \t]*(.*)/sy;return s.lastIndex=a,r=s.exec(e),o+i+(r?.[1]??"")}function mke(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
737`))if(o===`
738`){const{fold:i,offset:a}=pke(e,r);n+=i,r=a}else if(o==="\\"){let i=e[++r];const a=fke[i];if(a)n+=a;else if(i===`
739`)for(i=e[r+1];i===" "||i==="	";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
740`)for(i=e[++r+1];i===" "||i==="	";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const s=i==="x"?2:i==="u"?4:8;n+=gke(e,r+1,s,t),r+=s}else{const s=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),n+=s}}else if(o===" "||o==="	"){const i=r;let a=e[r+1];for(;a===" "||a==="	";)a=e[++r+1];a!==`
741`&&!(a==="\r"&&e[r+2]===`
742`)&&(n+=r>i?e.slice(i,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function pke(e,t){let n="",r=e[t+1];for(;(r===" "||r==="	"||r===`
743`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
744`);)r===`
745`&&(n+=`
746`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const fke={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
747`,r:"\r",t:"	",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","	":"	"};function gke(e,t,n,r){const o=e.substr(t,n),a=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;try{return String.fromCodePoint(a)}catch{const s=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}}function W5(e,t,n,r){const{value:o,type:i,comment:a,range:s}=t.type==="block-scalar"?ske(e,t,r):uke(t,e.options.strict,r),l=n?e.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null;
747let c;e.options.stringKeys&&e.atKey?c=e.schema[gi]:l?c=yke(e.schema,o,l,n,r):t.type==="scalar"?c=bke(e,o,t,r):c=e.schema[gi];let h;try{const d=c.resolve(o,p=>r(n??t,"TAG_RESOLVE_FAILED",p),e.options);h=Ft(d)?d:new Ze(d)}catch(d){const p=d instanceof Error?d.message:String(d);r(n??t,"TAG_RESOLVE_FAILED",p),h=new Ze(o)}return h.range=s,h.source=o,i&&(h.type=i),l&&(h.tag=l),c.format&&(h.format=c.format),a&&(h.comment=a),h}function yke(e,t,n,r,o){if(n==="!")return e[gi];const i=[];for(const s of e.tags)if(!s.collection&&s.tag===n)if(s.default&&s.test)i.push(s);else return s;for(const s of i)if(s.test?.test(t))return s;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[gi])}function bke({atKey:e,directives:t,schema:n},r,o,i){const a=n.tags.find(s=>(s.default===!0||e&&s.default==="key")&&s.test?.test(r))||n[gi];if(n.compat){const s=n.compat.find(l=>l.default&&l.test?.test(r))??n[gi];if(a.tag!==s.tag){const l=t.tagString(a.tag),c=t.tagString(s.tag),h=`Value may be parsed as either ${l} or ${c}`;i(o,"TAG_RESOLVE_FAILED",h,!0)}}return a}function wke(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let o=t[r];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++r];o?.type==="space";)e+=o.source.length,o=t[++r];break}}return e}const vke={composeNode:B5,composeEmptyNode:mT};function B5(e,t,n,r){const o=e.atKey,{spaceBefore:i,comment:a,anchor:s,tag:l}=n;let c,h=!0;switch(t.type){case"alias":c=kke(e,t,r),(s||l)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=W5(e,t,l,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=ake(vke,e,t,n,r),s&&(c.anchor=s.source.substring(1))}catch(d){const p=d instanceof Error?d.message:String(d);r(t,"RESOURCE_EXHAUSTION",p)}break;default:{const d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",d),h=!1}}return c??(c=mT(e,t.offset,void 0,null,n,r)),s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!Ft(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(l??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(c.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?c.comment=a:c.commentBefore=a),e.options.keepSourceTokens&&h&&(c.srcToken=t),c}function mT(e,t,n,r,{spaceBefore:o,comment:i,anchor:a,tag:s,end:l},c){const h={type:"scalar",offset:wke(t,n,r),indent:-1,source:""}
747,d=W5(e,h,s,c);return a&&(d.anchor=a.source.substring(1),d.anchor===""&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(d.spaceBefore=!0),i&&(d.comment=i,d.range[2]=l),d}function kke({options:e},{offset:t,source:n,end:r},o){const i=new nT(n.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,s=zh(r,a,e.strict,o);return i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment),i}function xke(e,t,{offset:n,start:r,value:o,end:i},a){const s=Object.assign({_directives:t},e),l=new Ay(void 0,s),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},h=kc(r,{indicator:"doc-start",next:o??i?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});h.found&&(l.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!h.hasNewline&&a(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=o?B5(c,o,h,a):mT(c,h.end,r,null,h,a);const d=l.contents.range[2],p=zh(i,d,!1,a);return p.comment&&(l.comment=p.comment),l.range=[n,d,p.offset],l}function fu(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function XA(e){let t="",n=!1,r=!1;for(let o=0;o<e.length;++o){const i=e[o];switch(i[0]){case"#":t+=(t===""?"":r?`
748
749`:`
750`)+(i.substring(1)||" "),n=!0,r=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class _ke{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const a=fu(n);i?this.warnings.push(new nke(a,r,o)):this.errors.push(new $u(a,r,o))},this.directives=new hr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=XA(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
751${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(ln(i)&&!i.flow&&i.items.length>0){let a=i.items[0];mn(a)&&(a=a.key);const s=a.commentBefore;a.commentBefore=s?`${r}
752${s}`:r}else{const a=i.commentBefore;i.commentBefore=a?`${r}
753${a}`:r}}if(n){for(let i=0;i<this.errors.length;++i)t.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)t.warnings.push(this.warnings[i])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:XA(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const i=fu(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=xke(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new $u(fu(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new $u(fu(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=zh(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
754${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new $u(fu(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),o=new Ay(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const H5="\uFEFF",q5="�",V5="�",ck="�";function Ske(e){switch(e){case H5:return"byte-order-mark";case q5:return"doc-mode";case V5:return"flow-error-end";case ck:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
755`:case`\r
756`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"	":return"space";case"#":return"comment";
756case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function No(e){switch(e){case void 0:case" ":case`
757`:case"\r":case"	":return!0;default:return!1}}const eC=new Set("0123456789ABCDEFabcdef"),Tke=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Um=new Set(",[]{}"),Ike=new Set(` ,[]{}
758\r	`),sw=e=>!e||Ike.has(e);class Eke{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n==="	";)n=this.buffer[++t];return!n||n==="#"||n===`
759`?!0:n==="\r"?this.buffer[t+1]===`
760`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const o=this.buffer[r+t+1];if(o===`
761`||!o&&!this.atEnd)return t+r+1}return n===`
762`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&No(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
763`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===H5&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const i=t[r-1];if(i===" "||i==="	"){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const i=t[n-1];if(i===" "||i==="	")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield q5,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&No(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!No(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&No(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";
763case"*":return yield*this.pushUntil(sw),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&No(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield V5,yield*this.parseLineStart();let i=0;for(;o[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(sw),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||No(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
764`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
765`,i)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>No(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
766`:t=i,n=0;break;case"\r":{const a=this.buffer[i+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
767`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
768`,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(r=this.buffer[o];r===" ";)r=this.buffer[++o];if(r==="	"){for(;r==="	"||r===" "||r==="\r"||r===`
769`;)r=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let i=t-1,a=this.buffer[i];a==="\r"&&(a=this.buffer[--i]);const s=i;for(;a===" ";)a=this.buffer[--i];if(a===`
770`&&i>=this.pos&&i+1+n>s)t=i;else break}while(!0);return yield ck,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const i=this.buffer[r+1];if(No(i)||t&&Um.has(i))break;n=r}else if(No(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
771`?(r+=1,o=`
772`,i=this.buffer[r+1]):n=r),i==="#"||t&&Um.has(i))break;if(o===`
773`){const a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&Um.has(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield ck,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){let t=0;e:for(;;){switch(this.charAt(0)){case"!":t+=yield*this.pushTag(),t+=yield*this.pushSpaces(!0);continue e;
773case"&":t+=yield*this.pushUntil(sw),t+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const n=this.flowLevel>0,r=this.charAt(1);if(No(r)||n&&Um.has(r)){n?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=yield*this.pushCount(1),t+=yield*this.pushSpaces(!0);continue e}}}break e}return t}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!No(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Tke.has(n))n=this.buffer[++t];else if(n==="%"&&eC.has(this.buffer[t+1])&&eC.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
774`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
775`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r==="	");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Ake{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function ha(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function tC(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function K5(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Fm(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function kl(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function tf(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function nC(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!ha(t.start,"explicit-key-ind")&&!ha(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,K5(t.value)?t.value.end?tf(t.value.end,t.sep):t.value.end=t.sep:tf(t.start,t.sep),delete t.sep)}class Cke{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Eke,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=Ske(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&nC(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&tC(o.start)===-1&&(n.indent===0||o.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{tC(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}
775*scalar(t){if(this.type==="map-value-ind"){const n=Fm(this.peek(2)),r=kl(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
776`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
777`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){tf(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,o=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(o&&n.sep&&!n.value){const a=[];for(let s=0;s<n.sep.length;++s){const l=n.sep[s];switch(l.type){case"newline":a.push(s);break;case"space":break;case"comment":l.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(i=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ha(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(K5(n.key)&&!ha(n.sep,"newline")){const a=kl(n.start),s=n.key,l=n.sep;l.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:l}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(ha(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=kl(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):ha(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);o||n.value?(t.items.push({start:i,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!n.explicitKey&&n.sep&&!ha(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:i});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){tf(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;
777case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||ha(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=Fm(r),i=kl(o);nC(t);const a=t.end.splice(1,t.end.length);a.push(this.sourceToken);const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
778`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
779`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Fm(t),r=kl(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Fm(t),r=kl(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Nke(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Ake||null,prettyErrors:t}}function Pke(e,t={}){const{lineCounter:n,prettyErrors:r}=Nke(t),o=new Cke(n?.addNewLine),i=new _ke(t);let a=null;for(const s of i.compose(o.parse(e),!0,e.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new $u(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}
779return r&&n&&(a.errors.forEach(JA(e,n)),a.warnings.forEach(JA(e,n))),a}function Dke(e,t,n){let r;const o=Pke(e,n);if(!o)return null;if(o.warnings.forEach(i=>b5(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}const Oke=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/;function G5(e){const t=Oke.exec(e);if(!t)return{data:{},body:e};const[,n,r]=t;return{data:(n.trim()===""?{}:Dke(n))??{},body:r}}function Rke(e){const t=[];for(const n of e.split(`
780`)){const r=/^#{2,3}\s+(.+?)\s*#*\s*$/.exec(n);r&&t.push(r[1])}return t}const Mke=Object.assign({"../../../../../../docs/changelog/09.03.01.md":cve,"../../../../../../docs/changelog/09.09.01.md":uve,"../../../../../../docs/changelog/09.09.02.md":dve,"../../../../../../docs/changelog/09.10.01.md":hve,"../../../../../../docs/changelog/09.14.01.md":mve,"../../../../../../docs/changelog/09.15.01.md":pve,"../../../../../../docs/changelog/09.20.01.md":fve,"../../../../../../docs/changelog/09.21.01.md":gve,"../../../../../../docs/changelog/09.23.01.md":yve,"../../../../../../docs/changelog/09.24.01.md":bve,"../../../../../../docs/changelog/09.30.01.md":wve});class jke extends Error{file;constructor(t,n){super(`${t}: ${n}`),this.name="ChangelogError",this.file=t}}function $ke(e,t){const{data:n,body:r}=G5(t),o=kve.safeParse(n);if(!o.success){const i=o.error.issues.map(a=>`${a.path.join(".")||"(root)"}: ${a.message}`).join("; ");throw new jke(e,`frontmatter invalid — ${i}`)}return{...o.data,body:r.trim()}}function Lke(){const e=Object.entries(Mke).map(([t,n])=>$ke(t,n));return e.sort((t,n)=>n.version.localeCompare(t.version)),e}const op=Lke();function zke(e,t){return!(e.modules.length>0&&!e.modules.some(n=>t.entitledModules.includes(n))||e.capabilities.length>0&&!e.capabilities.some(n=>t.capabilities.includes(n)))}function sLe(e){return op.map(t=>({...t,entries:t.entries.filter(n=>zke(n,e))})).filter(t=>t.entries.length>0)}const Y5="luniko:help:lastSeenRelease";function Uke(){try{return localStorage.getItem(Y5)}catch{return null}}function Fke(e){try{localStorage.setItem(Y5,e)}catch{}}const uk=new Set;let Z5=null;function Wke(){return Uke()??Z5}function Bke(e){return uk.add(e),window.addEventListener("storage",e),()=>{uk.delete(e),window.removeEventListener("storage",e)}}function J5(){const e=g.useSyncExternalStore(Bke,Wke),t=g.useMemo(()=>e===null?op.length:op.filter(r=>r.version>e).length,[e]),n=g.useCallback(()=>{const r=op[0]?.version;r&&(Fke(r),Z5=r,uk.forEach(o=>o()))},[]);return{unseenCount:t,markSeen:n}}const Hke=`---
781title: Choose which audiences a person belongs to
782summary: Set the audiences and private destinations that decide which meetings and destinations a person can reach beyond their own.
783requires: [org.manage_audiences]
784surfaces: [/admin]
785aka:
786  - audiences
787  - who's in which audience
788  - meeting visibility groups
789  - private destinations
790  - private sheets
791  - who can see what
792questions:
793  - How do I add someone to an audience?
794  - What is an audience?
795  - Why can this person see meetings they weren't in?
796order: 40
797verified: { by: Jas, on: 2026-09-15 }
798---
799
800Open a person's details in **People** to see their **Meeting visibility**
801section: which named audiences they belong to, and which private
802destinations they can use.
803
804## Audiences
805
806An audience is a named group your organization uses to widen who can see a
807meeting beyond the people who were actually in it — this list shows every
808audience your organization has, as buttons you can turn on or off for this
809one person. A meeting becomes visible to someone when they share an audience
810with it, were in the meeting themselves, or had it shared with them directly
811— being in the meeting is never taken away by a marking. A short summary
812beneath the buttons states what this combination actually lets the person
813see, in the same terms the server itself checks. See
814[Who can see a meeting](/help/meetings/who-can-see-a-meeting) for setting
815which audiences a *meeting* is opened to, rather than which audiences a
816*person* belongs to — the two meet in the middle.
817
818## Private destinations
819
820Below audiences, a second row of buttons lists private Command Center
821destinations. Turning one on lets this person see and use that destination
822even though it isn't open to everyone — the same access list every other
823destination has, just for ones marked private. See
824[Who can use a destination](/help/command-center/destination-access) for the
825destination side of the same setting.
826
827## Who can do this
828
829Administrators holding **manage organization audiences**. Without it, a
830person's Meeting visibility section does not appear at all.
831`,qke=`---
832title: See what your note-taker costs
833summary: See lifetime meeting totals, this month's charges by account, and a printable statement for any month.
834requires: [org.view_billing]
835surfaces: [/admin]
836aka:
837  - billing
838  - invoices
839  - how much are we paying
840  - notetaker billing
841  - statements
842  - lifetime meetings captured
843questions:
844  - How much has our note-taker cost this month?
845  - Where do I get an invoice for a specific month?
846  - Why wasn't a meeting charged?
847order: 60
848verified: { by: Jas, on: 2026-09-15 }
849---
850
851Open the **Billing & usage** card in the admin console for two things: how
852much your organization has recorded in total, and what it currently owes.
853
854## Lifetime totals
855
856At the top, the total number of meetings and minutes ever captured for your
857organization — every meeting the notetaker ever recorded, including ones
858that have since been deleted.
859
860## This month, by account
861
862**Notetaker billing** shows the current month as one card per billing
863account your organization's meetings can be attributed to, each with its
864total, hours recorded and meeting count. Earlier months appear below as a
865table, but only the ones that actually recorded something — empty months are
866left out rather than filling the table with zeroes.
867
868Click any card, or any amount in the table, to open that account's invoice
869for that month: every note-taker run in it, charged or not, with whichever
870attendee address decided the account it landed on. A triangle icon marks a
871row that needs a second look — one excluded from the total (an error before
872it ever recorded anything, or one nothing could be attributed to), or one
873that was charged despite recording nothing (the bot was never admitted, but
874the meeting still ran). From there, **CSV** and **PDF** export the same
875detail as a statement you can hand someone outside this screen.
876
877## Who can do this
878
879Administrators holding **view this organization's billing**.
880`,Vke=`---
881title: Restore or review deleted meetings
882summary: See every meeting anyone in your organization has hidden or nuked, and bring a hidden one back.
883requires: [meetings.view_deleted]
884surfaces: [/admin]
885aka:
886  - deleted meetings
887  - restore a meeting
888  - bring it back
889  - who deleted this
890  - undelete
891  - recover a meeting
892questions:
893  - Who deleted this meeting?
894  - Can I get a meeting back?
895  - Can I see everything that's been deleted in the organization?
896order: 100
897verified: { by: Jas, on: 2026-09-15 }
898---
899
900The **Deleted meetings** area of the admin console lists every meeting
901anyone in your organization has hidden or nuked — not just your own — with
902who did it and when.
903
904## What you see
905
906Each row shows the meeting's title, a hidden or nuked icon, who deleted it,
907and the date. Filter the list by who deleted a meeting or by a date range
908using the controls above it, and clear them with the button that appears
909once any filter is set.
910
911A **Restore** button appears next to a hidden meeting — pressing it brings
912it back exactly as it was. A nuked meeting has no such button and the row
913says so: its recording and transcript are already gone, and nothing here can
914bring them back. See [Delete a meeting](/help/meetings/delete-a-meeting) for
915what hiding and nuking each do, and who can do them in the first place.
916
917## Who can do this
918
919Administrators holding **view hidden or deleted meetings**. Without it, this
920area does not appear on the admin console at all, and the section that used
921to sit at the top of Meetings for your own deletions is gone from there too
922— this is the one place it lives now.
923`,Kke=`---
924title: Change a member's bundle
925summary: Move a person between the Viewer, Editor and Admin bundles from their entry in People.
926requires: [org.manage_members]
927surfaces: [/admin]
928aka:
929  - change someone's access
930  - make someone an admin
931  - make someone an editor
932  - promote a member
933  - demote a member
934  - assign a bundle
935  - add someone to the org
936questions:
937  - How do I make someone an administrator?
938  - How do I add a new person to the organization?
939  - Can I remove someone's access entirely?
940order: 20
941verified: { by: Jas, on: 2026-09-15 }
942---
943
944Every person in your organization holds one of three bundles — **Viewer**,
945**Editor** or **Admin** — and this is where you change which one.
946
947## Where it is
948
949Open the admin console's **People** area and pick a person. At the top of
950their details, next to their name, is a dropdown showing their current
951bundle. Choose a different one to reassign it immediately — there is no
952confirmation step, so double-check the person before you change it.
953
954The bundles are cumulative: Editor includes everything Viewer has, and Admin
955includes everything Editor has, on top of the day-to-day work of using
956Luniko. Each is a starting point, not a ceiling — see
957[Grant or take away one capability](/help/admin/roles-and-capabilities) for
958giving someone one specific power without moving their whole bundle.
959
960The dropdown only offers a bundle you hold every capability of yourself. If a
961choice is greyed out, hovering it explains why: you don't hold everything
962that bundle would grant, so you can't hand it to someone else.
963
964## Who can do this
965
966Administrators holding **add and remove members**. You cannot change your
967own bundle from here — your own row shows a badge instead of the dropdown, so
968nobody can raise or lower their own access by mistake.
969
970<!-- VERIFY: whether a person can be removed from the organization outright
971anywhere in the product, or whether Viewer is the lowest this screen goes and
972removal happens some other way (Entra app assignment, for instance). -->
973`,Gke=`---
974title: Choose whether a new person sees older meetings
975summary: When someone joins, they see meetings from the day they first sign in. You decide, per person, whether they also get every meeting from before they joined.
976requires: [org.manage_audiences]
977surfaces: [/admin]
978aka:
979  - meeting history
980  - historical meetings
981  - older meetings
982  - meetings before they joined
983  - new user can see old meetings
984  - give someone past meetings
985  - onboard a new user
986  - chat history
987questions:
988  - Does a new person see meetings from before they joined?
989  - How do I give someone access to all past meetings?
990  - How do I stop a new user seeing old meetings?
991  - Why can't a new colleague see an older meeting they were in?
992order: 35
993---
994
995People turn up on meetings long before they have a Luniko sign-in — an
996external attendee, a colleague from the directory. When they do sign in, they
997don't automatically get every one of those meetings. Like adding someone to a
998Teams chat and choosing whether they see the history, you choose.
999
1000## What a new person sees
1001
1002From the moment someone **first signs in**, they see:
1003
1004- meetings they were part of, **from that day on**;
1005- meetings shared with their audiences, **from that day on**;
1006- any meeting — however old — that somebody **shared with them directly**.
1007
1008Everything from before they joined stays out of their meetings list, search,
1009Pulse and Luna until you say otherwise.
1010
1011People who were already using Luniko before this was introduced keep seeing
1012every meeting, exactly as before.
1013
1014## Give someone the older meetings
1015
10161. Open the admin console, choose **People**, and pick the person.
10172. Under **Meeting history**, choose **All meetings, including before they
1018   joined** — or **Only meetings from** and pick a date.
10193. Save.
1020
1021The change applies straight away. You can narrow it again the same way.
1022
1023## What it doesn't change
1024
1025- A meeting somebody **shared with them by name** always shows — that was a
1026  deliberate choice by a person, not something they inherited.
1027- Admins who can **see everything in the organization** are not limited by
1028  it.
1029- It doesn't change which audiences they belong to — see
1030  [Meeting audiences](/help/admin/audiences) for that.
1031
1032## Who can do this
1033
1034Administrators holding **manage audiences**, the same permission that
1035decides which audiences a person is in.
1036`,Yke=`---
1037title: See your organization's members
1038summary: Browse everyone with access to your organization, and open one person to see their details.
1039requires: [org.view_members]
1040surfaces: [/admin]
1041aka:
1042  - members
1043  - who has access
1044  - team roster
1045  - who's in the org
1046  - admin console members
1047  - people with access
1048  - the members list
1049questions:
1050  - Who has access to our organization?
1051  - How do I see what one person can do?
1052  - Why don't I see everyone in the directory?
1053order: 10
1054verified: { by: Jas, on: 2026-09-15 }
1055---
1056
1057The **People** area of the admin console lists the people in your
1058organization and, for each one, what they can currently do — and, for
1059administrators who manage identities, their email addresses, sign-ins and
1060duplicates too.
1061
1062## Where it is
1063
1064Open the admin console and choose the **People** card. The list on the left
1065shows people; picking one opens their details on the right — what they have
1066connected, which meetings they can see, and what they can do, depending on
1067which of those you also hold the capability to see.
1068
1069By default the list only shows people carrying some kind of access — a
1070signed-in account, a capability grant, an audience, or a connected calendar —
1071because most of an organization's directory is meeting attendees who have
1072never signed in. The filters above the list switch between **With access**
1073(the default) and **Everyone**; administrators who manage identities also get
1074**Review**, **Duplicates** and **Hidden** (see
1075[Review new people and hide test accounts](/help/people/review-and-hide)).
1076**Find one of N** searches by name or email within whichever list is showing.
1077
1078## Nobody picked
1079
1080With nobody selected, the right side shows the organization as a whole
1081instead of one person: how many people hold access, how many have ever signed
1082in, and how many of the capabilities worth reviewing — the ones a wrong holder
1083would be a problem — are held, and by how many people. A count of zero is
1084kept rather than hidden, since "nobody can see every record" is itself a
1085useful answer.
1086
1087## Who can do this
1088
1089Anyone holding **view members** — every administrator, by default. Without
1090it — or manage audiences, manage identities, or view usage — the People card
1091does not appear on the admin console overview at all.
1092
1093Seeing a person's list of connections, or changing what they can do, needs
1094capabilities of their own: see [Usage analytics](/help/admin/usage-analytics),
1095[Change a member's bundle](/help/admin/manage-members), and
1096[Grant or take away one capability](/help/admin/roles-and-capabilities).
1097`,Zke=`---
1098title: See records your people took part in elsewhere
1099summary: A rare, individually granted power to see a meeting or record another organization owns, when one of your own people was invited to it.
1100requires: [org.view_representative]
1101aka:
1102  - representative visibility
1103  - see meetings elsewhere
1104  - cross-organization visibility
1105  - see what our people attended
1106questions:
1107  - Why can we see a meeting another organization owns?
1108  - What is representative visibility?
1109order: 90
1110verified: { by: Jas, on: 2026-09-15 }
1111---
1112
1113Some of your organization's people take part in meetings owned by another
1114organization on Luniko — one your organization works alongside, for
1115instance. Holding this capability lets a person see one of those meetings
1116whenever your own organization's people were invited to it, without needing
1117anything from the organization that owns it.
1118
1119It only reaches records marked as involving your organization already — it
1120does not open every meeting the other organization has, only the ones your
1121own people took part in.
1122
1123## Who can grant this
1124
1125Nobody in your organization — only Luniko grants or removes this, one person
1126at a time, the same as
1127[seeing every record your organization owns](/help/admin/see-everything-your-organization-owns).
1128In [Grant or take away one capability](/help/admin/roles-and-capabilities) you
1129can see whether someone holds it, under **Outside the bundles**, but the
1130checkbox is locked to you with a **Platform only** label.
1131`,Jke=`---
1132title: Grant or take away one capability
1133summary: Give someone a power their bundle doesn't include, or take one away, without changing their bundle.
1134requires: [org.manage_member_capabilities]
1135surfaces: [/admin]
1136aka:
1137  - permissions
1138  - capabilities
1139  - what someone can do
1140  - grant a permission
1141  - revoke access
1142  - custom access
1143  - roles
1144questions:
1145  - How do I give someone a permission their bundle doesn't have?
1146  - What does Custom mean next to someone's bundle?
1147  - Why can't I grant this capability to anyone?
1148order: 30
1149verified: { by: Jas, on: 2026-09-15 }
1150---
1151
1152Below a person's bundle, their details list every capability grouped by the
1153tier that first introduces it: **Viewer**, **Editor**, **Admin**, and
1154**Outside the bundles** for the handful never included in any bundle. Each
1155group's header shows how many of its capabilities the person holds — "3 of
11569" — and expands to show the checkboxes behind that count. Viewer is open by
1157default; the rest start collapsed.
1158
1159Checking or unchecking a box grants or revokes that one capability
1160immediately, without touching anything else the person holds. Once a
1161person's capabilities no longer exactly match a bundle, their badge reads
1162**Custom** rather than the tier they started from — that is the point of
1163showing it this way rather than a stale label that could disagree with what
1164is actually true.
1165
1166## Why a row is disabled
1167
1168A capability you don't hold yourself is never yours to hand out — you can
1169only grant what you have. A greyed-out row explains why in a tooltip:
1170
1171- **Not yours to grant** — you don't hold this capability yourself.
1172- **Module off** — your organization doesn't have the module this capability
1173  belongs to.
1174- **Platform only** — only a Luniko platform operator can grant or revoke
1175  this one. It still appears in the list, so you can see whether the person
1176  holds it, but the checkbox stays locked to you.
1177
1178That last case covers the capabilities under **Outside the bundles**, such as
1179seeing every record the organization owns or seeing records elsewhere your
1180own people attended — see
1181[See every meeting your organization owns](/help/admin/see-everything-your-organization-owns)
1182and
1183[See records your people took part in elsewhere](/help/admin/representative-visibility).
1184Usage analytics is outside the bundles too, for a different reason: it reads
1185what every colleague did and when, which is a heavier grant than
1186administering the organization, so nobody has it until you give it to them
1187one person at a time. See [Usage analytics](/help/admin/usage-analytics).
1188
1189## Who can do this
1190
1191Administrators holding **grant or revoke individual capabilities**. It
1192cannot be used on your own membership — your row shows every capability you
1193hold, with no checkboxes to change them, so nobody can grant themselves
1194something new this way.
1195`,Qke=`---
1196title: See every meeting your organization owns
1197summary: A rare, individually granted power to open any meeting or record your organization owns, regardless of who it's normally visible to.
1198requires: [org.view_all_records]
1199aka:
1200  - management sees everything
1201  - see every meeting
1202  - full visibility
1203  - management visibility
1204  - see everything
1205questions:
1206  - Why can this person see meetings they were never in?
1207  - Can I give myself access to every meeting?
1208  - Who decides who sees everything?
1209order: 80
1210verified: { by: Jas, on: 2026-09-15 }
1211---
1212
1213Holding this capability lets a person open any meeting, item or record your
1214organization owns, no matter which audiences it's marked with or who was in
1215it. It is rare on purpose: administering your organization is a different
1216thing from being able to read every meeting in it, so the two are kept apart
1217rather than bundled together.
1218
1219Most administrators should not hold this. Where it exists, it's usually
1220because someone in a management role genuinely needs to see across the whole
1221organization, not because they administer it.
1222
1223## Who can grant this
1224
1225Nobody in your organization — not even an administrator. Only Luniko can
1226grant or take it away, one person at a time. Inside
1227[Grant or take away one capability](/help/admin/roles-and-capabilities) you
1228can see whether a person holds it, listed under **Outside the bundles**, but
1229the checkbox stays locked to you with a **Platform only** label. If you
1230believe someone needs this, that request goes to Luniko, not through this
1231screen.
1232`,Xke=`---
1233title: Lift a transcript copying pause
1234summary: Let someone copy transcripts again after the automatic stop at ten different transcripts in a day.
1235requires: [org.manage_members]
1236surfaces: [/admin]
1237aka:
1238  - allow copying
1239  - no copying badge
1240  - transcript copying paused
1241  - unpause transcript copying
1242  - someone can't copy transcripts
1243  - copy limit
1244questions:
1245  - Why does a member have a No copying badge?
1246  - How do I let someone copy transcripts again?
1247  - What does pausing transcript copying actually stop?
1248  - Does the pause take away anything else?
1249order: 25
1250---
1251
1252When somebody copies ten different meeting transcripts in one day, Luniko
1253stops them copying any more until an administrator says otherwise. This is
1254where you say otherwise.
1255
1256## Find the person
1257
1258Open the admin console's **People** area. Anyone currently paused carries a
1259**No copying** badge on their row. Open them, and an amber **Transcript
1260copying paused** notice sits above their capabilities, saying when the pause
1261was raised and why.
1262
1263Press **Allow copying** in that notice. The pause lifts immediately and the
1264person can copy again from wherever they were copying before.
1265
1266## What the pause actually stops
1267
1268Copying transcripts, and nothing else. A paused person signs in, opens
1269meetings, reads transcripts on screen, comments, shares, and keeps every
1270capability they held. The meetings list's toolbar and the calendar's
1271right-click menu stop offering to copy; the buttons on a meeting's own page
1272and in the live room stay where they are and refuse, telling them copying is
1273paused and that an administrator can lift it.
1274
1275It is a pause rather than a capability that was taken away, so lifting it
1276gives back exactly what was suspended. Nothing has to be remembered and
1277re-granted.
1278
1279## Why it happened
1280
1281The count is of *different* meetings, per day, in UTC. Copying the same
1282transcript three times counts once. Crossing five sends a notice to whoever
1283holds the cross-org sharing ledger; reaching ten raises the pause and sends a
1284second one, listing each meeting that was copied.
1285
1286Whether the copying was warranted is a question for you, not for the
1287threshold. Lifting the pause is the ordinary outcome when there is an
1288ordinary explanation.
1289
1290## Who can do this
1291
1292Administrators holding **add and remove members**. You cannot lift your own
1293pause — on your own record the notice appears without the button, so nobody
1294can undo a stop raised against themselves.
1295`,exe=`---
1296title: See how your organization uses Luniko
1297summary: See what gets used, how often, on which device, and by whom — and what each person has connected.
1298requires: [org.view_usage]
1299surfaces: [/admin]
1300aka:
1301  - usage
1302  - who's using it
1303  - analytics
1304  - who's active
1305  - connections
1306  - has this person signed in
1307  - points activity
1308questions:
1309  - Who is actually using Luniko?
1310  - Has this person connected their calendar?
1311  - Why can't I see the usage tab?
1312order: 70
1313verified: { by: Jas, on: 2026-09-15 }
1314---
1315
1316**Usage analytics** is not something an administrator sees by holding the
1317Admin bundle. Nobody in your organization sees it until Luniko or one of your
1318own administrators grants it to them by name, one person at a time — see
1319[Grant or take away one capability](/help/admin/roles-and-capabilities).
1320
1321## The organization-wide view
1322
1323Open the admin console's **Points activity** card. Choose a window — 7, 30
1324or 90 days — and see: how many people were active, how many events happened
1325and what an "event" counts (an info icon beside the figure spells out the
1326rule: most kinds count the thing once, however many times it's opened, but
1327editing counts once a day and looking at the leaderboard counts every time),
1328and the busiest day in the window. Below that, a chart of activity by day,
1329what people used broken out by type, which device or surface it came from,
1330and a table of every active person with their event count, how many days
1331they showed up, what they mostly did, and when they were last active.
1332
1333This reads the points award log — the one record the app keeps of who did
1334what, when. It is a floor on activity, not all of it: anything the points
1335system doesn't score is invisible here.
1336
1337## One person's connections
1338
1339The same capability also adds a **Connections** section to a person's own
1340details in **People**: whether they've ever signed in, whether their
1341notetaker calendar is connected (and if not, whether it's still connecting or
1342has stopped working), whether they record every meeting or only ones they
1343choose, and which account their meetings bill to. Signing in with Microsoft
1344is what connects someone's email — there's no separate step for it. Someone
1345in the directory who has never signed in shows no account at all, stated
1346plainly rather than left blank.
1347
1348With nobody picked, **People** shows these same facts across everyone: how
1349many people have signed in, how many calendars are connected, and a warning
1350naming how many have a disconnected calendar — nothing of theirs is being
1351picked up until they reconnect.
1352
1353## Who can do this
1354
1355Nobody, by default — **view usage analytics** is granted to a specific
1356person, never handed out as part of a bundle.
1357`,txe=`---
1358title: Approve Microsoft permissions for a module
1359summary: Approve the Microsoft permissions a module needs before it works for your organization.
1360requires: [org.configure_modules]
1361aka:
1362  - modules
1363  - turn on a module
1364  - microsoft permissions
1365  - approve permissions
1366  - what we pay for
1367  - consent
1368questions:
1369  - Why doesn't a feature work for anyone yet?
1370  - How do I approve Microsoft permissions for Luniko?
1371  - What is my IT administrator being asked to approve?
1372order: 50
1373verified: { by: Jas, on: 2026-09-15 }
1374---
1375
1376Some modules need your organization's Microsoft permissions before the
1377features behind them work — this is where you send that request.
1378
1379## Where it is
1380
1381Open **Settings** and choose the **Modules** tab. It only appears at all when
1382there is something to approve or something already approved — an
1383organization with nothing outstanding gets no tab, and nothing to look at.
1384
1385Each module your organization has shows one of two states. A satisfied one
1386is a single quiet line with a checkmark: nothing to do. One waiting on
1387approval lists exactly which Microsoft permissions it needs, in plain
1388language — reading your calendar so the notetaker knows when a meeting
1389starts, for instance — and a **Send approval request** button.
1390
1391Pressing it opens Microsoft's own approval page in a new tab. Only your
1392organization's IT administrator can complete that page, and it asks for
1393exactly the permissions listed beside the button, nothing else. Once
1394approved, this screen updates on its own within about fifteen seconds without
1395needing a refresh.
1396
1397## Who can do this
1398
1399Administrators holding **manage this organization's modules**. Whether your
1400organization has been entitled to a module at all is decided by Luniko, not
1401from this screen — see
1402[Modules per organization](/help/platform/modules-per-organization).
1403`,nxe=`---
1404title: How access is decided
1405summary: Every action in Luniko is checked against the same four layers, in the same order, for everyone.
1406aka:
1407  - permissions model
1408  - how permissions work
1409  - access control
1410  - why can't I see this
1411  - why don't I have access
1412  - roles and permissions
1413  - capability check
1414  - who decided I can't do that
1415questions:
1416  - Why can't I access a certain page or record?
1417  - How does Luniko decide what I'm allowed to do?
1418  - Does holding a permission always mean I can see a record?
1419  - What order does Luniko check access in?
1420order: 20
1421verified: { by: Jas, on: 2026-09-15 }
1422---
1423
1424Every time you open a record or press a button, Luniko checks the same four
1425layers, in the same order, whoever you are and whichever organization you
1426belong to.
1427
1428## The four layers
1429
14301. **Permission.** A specific, narrow thing you either hold or do not — editing
1431   an action item, sending a notetaker, sending a recap. Nothing is decided by
1432   your job title; it is decided by exactly which of these you hold.
14332. **Role.** Related permissions are bundled into a role so that granting
1434   someone "editor" or "administrator" is one action, not a list. The bundles
1435   are the same shape in every organization.
14363. **Module.** The tool the permission belongs to has to be switched on for
1437   your organization at all. A permission for a tool your organization does
1438   not have never applies, however it was assigned.
14394. **Record access.** The individual record itself has to admit you: your
1440   organization owns it, or you were named on it directly. Read
1441   [one platform, many organizations](/help/architecture/one-platform-many-organizations)
1442   for what that naming means in practice.
1443
1444## Order matters
1445
1446These are checked in sequence, and a "no" at any layer stops the check there.
1447Holding the permission and having the module switched on is not enough on its
1448own — if the record itself does not admit you, the answer is still no. This is
1449why two people with identical roles can see different things: their roles are
1450the same, but the records in front of them are not.
1451
1452## Nothing is a silent maybe
1453
1454Every one of these checks runs again each time, against the record as it is
1455right now — never against a memory of what you could do yesterday. What
1456happens when access is denied, and what gets written down when it crosses an
1457organization boundary, is covered in
1458[proof and audit](/help/architecture/proof-and-audit).
1459`,rxe=`---
1460title: Modules
1461summary: Each working area of Luniko — Command Center, Meetings, Schedules and the rest — is a module your organization can be switched on for, configured to how you work rather than rebuilt for you.
1462aka:
1463  - modules
1464  - what we pay for
1465  - turn on command center
1466  - which tools do we have
1467  - feature modules
1468  - is command center a separate product
1469  - module configuration
1470questions:
1471  - What is a "module" in Luniko?
1472  - Can we get a tool switched on that we don't currently have?
1473  - Does every organization run the same version of a tool?
1474  - Can we configure how a module works for our organization?
1475order: 30
1476verified: { by: Jas, on: 2026-09-15 }
1477---
1478
1479A module is one working area of Luniko — Command Center, Meetings and Pulse,
1480Schedules, the leaderboard, Luna, the FDE playbook — and your organization is
1481given the ones it uses. A few things are always there for everyone, regardless
1482of which modules an organization has.
1483
1484## Configuration, not customization
1485
1486Inside a module, your organization configures the parts that are genuinely
1487yours to set: which destinations or sheets you submit to, which statuses and
1488categories you use, which columns show on a grid. The tool underneath that
1489configuration is the same one every organization runs. A request that would
1490need different underlying behavior — not different settings — becomes work
1491that every organization eventually gets, never a private copy built for one
1492client.
1493
1494## Why this matters to you
1495
1496Because every organization runs the same underlying tool, a fix or an
1497improvement made for one organization reaches all of them at the same time.
1498Your organization's setup is a set of choices within a known set of options,
1499which is also what makes it possible to review: what your organization has
1500switched on, and how it is configured, can be checked against a fixed list
1501rather than read one custom build at a time.
1502
1503## Getting a new module
1504
1505A module your organization does not currently have is not something you
1506switch on yourself from inside the product — it is a change to your
1507organization's entitlement. See
1508[your modules](/help/admin/your-modules) for where an administrator sees what
1509is currently switched on, and
1510[how access is decided](/help/architecture/how-access-is-decided) for how a
1511module fits alongside permissions and record access.
1512`,oxe=`---
1513title: One platform, many organizations
1514summary: Every record in Luniko belongs to exactly one organization, and that ownership is what keeps your data separate from every other organization's.
1515aka:
1516  - multi-tenant
1517  - tenancy
1518  - organizations model
1519  - is our data mixed with other companies
1520  - who owns our data
1521  - cross-organization access
1522  - data separation
1523  - org boundary
1524questions:
1525  - How does Luniko keep our data separate from other organizations that use it?
1526  - Can someone from another organization see our meetings?
1527  - What does "organization" mean inside Luniko?
1528  - Is our data stored together with other customers' data?
1529order: 10
1530verified: { by: Jas, on: 2026-09-15 }
1531---
1532
1533Luniko runs as one system for every organization that uses it. The separation
1534between organizations is not a matter of where the software happens to run —
1535it is built into the data itself.
1536
1537## Every record has one owner
1538
1539A meeting, an action item, a RAID entry, a note, a destination — every one of
1540these is stamped with the organization that owns it, decided once, at the
1541moment it is created. Which organization that is comes from how the person who
1542created it signed in: their own directory, or the address they signed in with.
1543It is derived automatically, never chosen by hand, and it does not change
1544because a record is later shared or discussed with someone else.
1545
1546## Crossing the line is a person, never an organization
1547
1548The only thing that ever crosses from one organization to another is a
1549person's name on one specific record's access list — never a blanket grant to
1550the whole of the other organization. A colleague from outside your
1551organization who is added to one of your meetings sees that meeting and the
1552people on it, and nothing else that belongs to your organization: not your
1553other meetings, not your member list, not your Command Center.
1554
1555## Why not a hard wall
1556
1557Some work genuinely crosses organizations — a shared project meeting with
1558people from both sides, for example. A hard wall between organizations would
1559break exactly that kind of collaboration. So the rule is neither "see
1560everything" nor "see nothing": a person from another organization reaches only
1561the individual records they were actually part of.
1562
1563See [where your data lives](/help/architecture/where-data-lives) for how this
1564ownership is enforced underneath, and
1565[how access is decided](/help/architecture/how-access-is-decided) for what
1566happens when someone tries to open a record.
1567`,ixe=`---
1568title: Proof and audit
1569summary: Every time a record is reached across an organization boundary, Luniko writes a permanent entry, and a scheduled report checks that the separation still holds.
1570aka:
1571  - audit trail
1572  - isolation report
1573  - who accessed our data
1574  - break-glass
1575  - emergency access
1576  - god mode
1577  - sharing ledger
1578  - can we audit luniko
1579  - tenant isolation report
1580questions:
1581  - How would we know if someone outside our organization looked at our data?
1582  - What is the Tenant Isolation Report?
1583  - What happens when Luniko staff use emergency access to our data?
1584  - Is there a record of everyone from outside our organization with access to our records?
1585order: 60
1586verified: { by: Jas, on: 2026-09-15 }
1587---
1588
1589Luniko does not ask you to take the separation between organizations on
1590trust. Every time a boundary between organizations is crossed, it is written
1591down, and a scheduled check verifies that the separation still holds.
1592
1593## The audit trail
1594
1595Every grant of access to someone outside your organization, every time such a
1596person opens or edits one of your records, and every use of emergency access
1597is written to a permanent record that is never edited or deleted afterwards:
1598who acted, from which organization, on which record, and when. Ordinary,
1599everyday activity inside your own organization is not logged this way — only
1600what crosses an organization boundary is.
1601
1602## The isolation report
1603
1604A report checks the separation itself: that every record still carries an
1605owner, that no organization's records turn up in another organization's
1606results, and a ledger of exactly who from outside your organization currently
1607has access to any of your records.
1608<!-- VERIFY: how often the isolation report runs, and who beyond Luniko's own operators can read it -->
1609
1610## Emergency access is the loudest thing in the system
1611
1612A narrow, time-limited emergency-access path exists for serious incidents. It
1613is never silent: it notifies Luniko's own administrators the moment it is
1614used, it expires on its own, and everything done during it is written to the
1615same audit trail as everything else. It is a way to act quickly in an
1616emergency, never a way around the record.
1617
1618See [where your data lives](/help/architecture/where-data-lives) for what the
1619separation being checked here actually is, and
1620[one platform, many organizations](/help/architecture/one-platform-many-organizations)
1621for how a person ends up on the record in the first place.
1622`,axe=`---
1623title: Sign-in and roles
1624summary: You sign in with your own organization's work account, and the role your own administrators gave you there is what Luniko reads.
1625aka:
1626  - single sign-on
1627  - SSO
1628  - how do I sign in
1629  - work account
1630  - why do I sign in with my own company account
1631  - roles from our IT department
1632  - who manages my access
1633  - Microsoft sign-in
1634questions:
1635  - How do I sign in to Luniko?
1636  - Who controls what I'm allowed to do — my organization's IT, or Luniko?
1637  - If our IT changes my role, when does it take effect in Luniko?
1638  - Why do I sign in with my own organization's account instead of a Luniko one?
1639order: 40
1640verified: { by: Jas, on: 2026-09-15 }
1641---
1642
1643You sign in to Luniko with your own organization's work account — the same
1644one you already use for the rest of your work — rather than a separate
1645account created just for Luniko. One shared sign-in door serves every
1646organization; each organization keeps its own directory behind it.
1647
1648## One door, many directories
1649
1650Your organization's own administrators decide who may sign in at all, and
1651what role each person holds, inside your organization's own directory. When
1652you sign in, that role travels with you automatically — nobody at Luniko
1653assigns it, and nobody at Luniko can see or change your organization's
1654directory. If your **Connect your Microsoft account** setting is part of your
1655sign-in, that connection is described in
1656[connect your Microsoft account](/help/profile-settings/connect-microsoft).
1657
1658## What lives where
1659
1660- **Your organization's IT** decides who can sign in, and which role they
1661  hold.
1662- **Luniko** decides which modules your organization has switched on, and
1663  records any access granted to a person across an organization boundary —
1664  neither of which any single directory could hold on its own.
1665
1666## If your role changes
1667
1668A role change made in your own directory takes effect the next time you sign
1669in. <!-- VERIFY: exact timing for a role change or removal to take effect for someone already signed in --> Removing someone from your organization's directory removes their
1670standing to use Luniko along with everything else tied to that account.
1671
1672See [how access is decided](/help/architecture/how-access-is-decided) for what
1673your role is checked against once you are signed in.
1674`,sxe=`---
1675title: Where your data lives
1676summary: Luniko keeps one shared system, with the owning organization stamped on every record and checked on every request.
1677aka:
1678  - database separation
1679  - where is our data stored
1680  - is our data isolated
1681  - shared database
1682  - single database multi-tenant
1683  - data residency
1684  - is our data physically separate
1685questions:
1686  - Is our organization's data stored separately from other customers' data?
1687  - How does Luniko make sure a mistake can't show us someone else's records?
1688  - Can our organization's data be found and removed as a single operation?
1689  - Where does Luniko store our records?
1690order: 50
1691verified: { by: Jas, on: 2026-09-15 }
1692---
1693
1694Every record Luniko stores — a meeting, an action item, a note, a
1695destination — carries the id of the organization that owns it, and every
1696question the system asks its data store is filtered by that ownership
1697automatically, not left to whoever wrote that particular query to remember.
1698
1699## One system, not one copy per organization
1700
1701Luniko keeps one shared store rather than a separate one per organization. A
1702separate store per organization sounds like a stronger wall, but it only
1703protects what is never shared: the moment a record is genuinely shared across
1704an organization boundary, the application has to reach across that wall
1705anyway, and the guarantee is back to being the application's, not the
1706storage's. Keeping records where their owner already sees them, with
1707ownership checked at the same layer that answers every other question, is the
1708guarantee that actually holds.
1709
1710## What this means in practice
1711
1712- A missing or mistaken filter in a query can, at worst, return the wrong
1713  records from **within your own organization** — never from another one —
1714  because the ownership check sits underneath every query, not inside each
1715  one written by hand.
1716- If your organization's records ever need to be found, exported or removed,
1717  that is a single, well-defined operation against your organization's own
1718  data, rather than a search scattered across everyone else's.
1719
1720See [one platform, many organizations](/help/architecture/one-platform-many-organizations)
1721for how ownership is assigned in the first place, and
1722[proof and audit](/help/architecture/proof-and-audit) for how the separation
1723itself is checked and recorded.
1724`,lxe=`---
1725title: Bookmarks on your phone
1726summary: Your bookmarks belong to your account, not your browser, so they're the same list wherever you sign in.
1727module: meetings
1728surfaces: [/library]
1729aka:
1730  - bookmarks on mobile
1731  - bookmark from my phone
1732  - do bookmarks sync
1733  - swipe to bookmark
1734  - bookmark in the app
1735questions:
1736  - Do my bookmarks show up on my phone?
1737  - Are bookmarks tied to one device?
1738  - Can I tag things on my phone?
1739order: 40
1740---
1741
1742A bookmark is saved against your account, not stored on one device. That
1743means your bookmarks are the same wherever you sign in — bookmarking a meeting
1744on your computer and later checking on your phone shows it bookmarked, and the
1745other way round.
1746
1747## Bookmark in the phone app
1748
1749In the Luniko phone app, the bookmark button sits on a meeting's page, on an
1750action item or RAID entry's page (where it reads **Bookmark**, then
1751**Bookmarked**), and on cards in Pulse. Tap it to bookmark; tap it again to
1752remove the bookmark. In the Pulse feed you can also swipe a card to bookmark
1753it. The icon fills in teal while something is bookmarked.
1754
1755Bookmarks on the phone never expire, the same as on the web.
1756
1757## Your Library is on the web
1758
1759The phone app has no Library yet. To see everything you've kept, open your
1760**Library** on the web.
1761
1762\`\`\`luniko-if:tags.use
1763Tags are not in the phone app yet either. Removing a bookmark on your phone
1764still takes off any tags you put on that item on the web, and the phone app
1765does not offer **Undo**. If an item is tagged, remove its bookmark on the web
1766instead, where you can undo it.
1767\`\`\`
1768`,cxe=`---
1769title: Make a bookmark
1770summary: Press the bookmark icon on a meeting, action item, RAID entry or schedule task to save it to your Library.
1771module: meetings
1772surfaces: [/library]
1773aka:
1774  - bookmark
1775  - mark this
1776  - save this bit
1777  - save it for later
1778  - bookmark a meeting
1779  - bookmark an action item
1780  - bookmark an upcoming meeting
1781  - bookmark before the meeting
1782  - unbookmark
1783  - undo remove bookmark
1784questions:
1785  - How do I bookmark a meeting?
1786  - How do I make a bookmark?
1787  - Where do my bookmarks go?
1788  - Can I bookmark a meeting that hasn't happened yet?
1789  - How long does a bookmark last?
1790  - I removed a bookmark by mistake. Can I get it back?
1791shots:
1792  - id: library-page
1793    route: /library
1794    as: [viewer, editor]
1795order: 10
1796---
1797
1798A bookmark saves one thing — a meeting, an action item, a RAID entry or a
1799schedule task — to your **Library**, so you can find it again without
1800searching for it.
1801
1802![Make a bookmark](shot:library-page)
1803
1804## Where the button is
1805
1806The **Bookmark** icon sits wherever that kind of item is listed: on a
1807meeting's card, row or its own page, on an action item or RAID row in Command
1808Center, on a schedule task, and on a card in Pulse. Press it once and the item
1809is bookmarked straight away — no dialog, no confirming. The icon fills in teal
1810while the item is bookmarked. Press it again to remove the bookmark.
1811
1812Removing a bookmark also takes off any tags you put on that item. The message
1813that follows has **Undo**, which puts back the bookmark and those exact tags.
1814
1815You can only bookmark something you can see. If an item was deleted or you've
1816lost access to it, bookmarking it does nothing.
1817
1818\`\`\`luniko-if:tags.use
1819## Bookmark and tag from a meeting card
1820
1821On a meeting card, the bookmark icon and a small **▾** share one button. Press
1822the icon to bookmark; the **Bookmarked** message that follows has **Add tags**,
1823which opens your tag list. Press the **▾** to open that list straight away:
1824tick a tag, or type a name to find one or create it. Ticking a tag bookmarks
1825the meeting too, and a coloured dot for each tag shows beside the icon.
1826\`\`\`
1827
1828## Bookmarking a meeting before it happens
1829
1830You do not have to wait for a meeting to be recorded. On the calendar,
1831right-click an upcoming meeting's block and press **Bookmark** — the same
1832entry reads **Bookmarked** once it is, and pressing it again removes the
1833bookmark. When the meeting records, the bookmark is already on it, and it
1834stays put if the meeting is moved to another time.
1835
1836\`\`\`luniko-if:tags.use
1837The arrow at the end of that entry opens your tags. For a recurring meeting,
1838the list can bookmark every meeting in the series at once — see
1839[Tag things for yourself](/help/tags/your-tags).
1840\`\`\`
1841
1842This needs an Outlook calendar. An upcoming meeting from any other calendar
1843has nothing stable to attach a bookmark to, so the option is not offered on
1844those blocks.
1845
1846## Where it goes
1847
1848Open **Library** to see everything you've kept — see
1849[Your library](/help/bookmarks/your-library). Each row opens straight to the
1850item when you press it — a bookmarked
1851action item or RAID entry opens its log with that row selected, since neither
1852has a page of its own.
1853
1854Bookmarking is personal: saving something does not share it, notify anyone,
1855or change who can see it — it only adds it to your own Library. It stays in
1856your Library until you remove it; bookmarks never expire.
1857`,uxe=`---
1858title: Your library
1859summary: The Library is one page for everything you've bookmarked or tagged.
1860module: meetings
1861surfaces: [/library]
1862aka:
1863  - library
1864  - my library
1865  - bookmarks page
1866  - tags page
1867  - where are my bookmarks
1868  - where are my tags
1869  - saved items
1870  - expired bookmarks
1871  - marked important
1872  - collections
1873questions:
1874  - Where did the Bookmarks page go?
1875  - Where did the Tags page go?
1876  - What is the Library?
1877  - Do bookmarks expire?
1878  - Where did Show expired and Renew go?
1879  - Where did the Important filter go?
1880shots:
1881  - id: library-page
1882    route: /library
1883    as: [viewer, editor]
1884order: 5
1885---
1886
1887The **Library** is one page for everything you've kept for yourself: things
1888you've bookmarked and things you've tagged. It replaces the old Bookmarks and
1889Tags pages — their addresses now open the Library.
1890
1891![Your library](shot:library-page)
1892
1893## What's in it
1894
1895Anything you bookmark or tag is in your Library. Tagging something bookmarks it
1896too, the way putting a post in a collection saves it, so every tagged item shows
1897as bookmarked.
1898
1899Items start out grouped by the date you saved them. Use **Group** to group them
1900by type (meetings, action items, RAID entries, notes and so on) or by the
1901item's own date instead, or not at all; the Library remembers your choice on
1902this device. Each group folds away with the arrow on its heading.
1903
1904The bar along the top narrows the list:
1905
1906- **Any tag** — pick one or more of your tags to see items carrying any of
1907  them. Each chosen tag shows as a chip; press its **×** to drop it, or
1908  **Clear tags** in the menu to drop them all.
1909- **All types** — one kind of item.
1910- **More** — **Time** (today, this week, this month or the last 30 days) and
1911  **Sort by** (newest first, oldest first, title A – Z or Z – A).
1912
1913The search box searches titles, details and tag names.
1914
1915If you can't use tags, the Library has no **Any tag** filter, no **Manage
1916tags** and no **Edit tags**; it lists what you've bookmarked.
1917
1918## Nothing expires
1919
1920An item stays in your Library until you take it out. Bookmarks and tags never
1921expire on their own, so there is no keep-until date to set, and nothing to
1922renew.
1923
1924There is no **Important** mark any more either: a bookmark keeps something,
1925and a tag sorts it.
1926
1927\`\`\`luniko-if:tags.use
1928If you want an "important" list, make a tag for it — see
1929[Tag things for yourself](/help/tags/your-tags).
1930\`\`\`
1931
1932## On each item
1933
1934Each row shows its title, a detail line, and its tags. Press the row to open
1935the item. The **⋯** menu has **Edit tags**, to tick or untick your tags, and
1936**Remove from Library**, which takes off the bookmark and every tag at once.
1937There is no undo from the Library, so if you only want to drop one tag, untick
1938it under **Edit tags** instead.
1939
1940Removing a bookmark anywhere else — the bookmark icon on a meeting or an
1941item — also takes that item's tags off, and the message that follows has
1942**Undo**, which puts back the bookmark and those exact tags.
1943
1944If you lose access to something — it's deleted, or moved somewhere you can't
1945see — it stops showing in your Library.
1946
1947Your Library is yours alone: nobody else can see what's in it.
1948`,dxe=`---
1949title: Bookmark and tag from the calendar
1950summary: Right-click a meeting on the calendar to bookmark it in one click, tag it, or bookmark and tag every meeting in its series.
1951surfaces: [/calendar]
1952aka:
1953  - bookmark a meeting on the calendar
1954  - tag a meeting from the calendar
1955  - tag a recurring meeting
1956  - tag the whole series
1957  - bookmark every meeting in the series
1958  - save a meeting from the calendar
1959  - undo unbookmark
1960  - remove bookmark
1961questions:
1962  - How do I tag every meeting in a recurring series?
1963  - How do I bookmark a meeting that hasn't happened yet?
1964  - I removed a bookmark by mistake. How do I get it back?
1965  - Why did removing a bookmark also remove my tags?
1966  - Why is there no tag list in my calendar menu?
1967order: 40
1968---
1969
1970You can bookmark and tag a meeting straight from the calendar, including one
1971that has not happened yet. Right-click the meeting and use the **Bookmark**
1972row.
1973
1974## Bookmark in one click
1975
1976Press the word **Bookmark** in the right-click menu. The meeting is bookmarked
1977and the menu closes. The message that follows has **Add tags**, which reopens
1978the menu with your tags showing.
1979
1980A bookmarked meeting's row reads **Bookmarked**, with a filled icon and a dot
1981for each of its tags. On the grid, the block shows the bookmark icon and the
1982tag dots too.
1983
1984You can also bookmark from the card a meeting opens when you click it: the
1985bookmark icon in its bottom row.
1986
1987## Tag it
1988
1989Point at the arrow on the **Bookmark** row, or press **→**, to open the tag
1990list:
1991
1992- **Bookmarked** — the bookmark itself, as a checkbox.
1993- **Find or create a tag…** — type to narrow the list. Press **Enter** to apply
1994  the tag that matches, or to create a new one when nothing matches.
1995- **Tags** — one checkbox per tag.
1996- **Manage tags…** — opens your Library.
1997
1998Ticking a tag on a meeting that is not bookmarked bookmarks it as well, and the
1999**Bookmarked** row flashes to show it.
2000
2001## The whole series
2002
2003For a recurring meeting, the top of the tag list has a switch: **This meeting**
2004or **All in series**. With **All in series**, the bookmark and tags go on the
2005series, and every past and upcoming meeting in it carries them. The calendar
2006remembers your choice in this browser, and the same switch appears in
2007[Reminders](/help/calendar/reminders).
2008
2009When you have selected several meetings, the series option appears only if
2010every one of them belongs to a series.
2011
2012## Remove a bookmark
2013
2014Press **Bookmarked** in the menu, or untick it in the tag list. Removing a
2015bookmark also removes that meeting's tags: the tag list warns you with
2016*Unchecking also removes N tags*.
2017
2018There is no confirmation. Instead, the message that follows has **Undo**,
2019which puts back the bookmark and exactly the tags it took. For a recurring
2020meeting, the message names what lost the bookmark, for example *Bookmark
2021removed from the series, with 1 tag*.
2022
2023## Filter by what you marked
2024
2025To show only bookmarked or tagged meetings, use **Saved** in the **Filters**
2026panel. See [Filter the calendar](/help/calendar/filters).
2027
2028## Who can do this
2029
2030Everyone can bookmark a meeting from the calendar. Tags need the tags
2031permission, which every editor has. Without it, the menu has a plain
2032**Bookmark** item and no tag list, so you can bookmark a single meeting but
2033not a whole series.
2034
2035Bookmarking an upcoming meeting needs an Outlook calendar. An upcoming meeting
2036from any other calendar has no **Bookmark** row until it is recorded.
2037
2038## Related
2039
2040- [Make a bookmark](/help/bookmarks/make-a-bookmark)
2041- [Your tags](/help/tags/your-tags)
2042`,hxe=`---
2043title: Filter the calendar
2044summary: Use the Filters button to narrow the calendar to bookmarked or tagged items, to meetings with certain people or customers, or or to hide meetings or action items altogether.
2045surfaces: [/calendar]
2046aka:
2047  - filter the calendar
2048  - only show my bookmarked meetings
2049  - show tagged meetings
2050  - meetings with a customer
2051  - meetings with someone
2052  - hide action items from the calendar
2053  - meetings I missed
2054  - meetings I haven't responded to
2055  - clear filters
2056questions:
2057  - How do I see only meetings with a certain person?
2058  - How do I show only my bookmarked meetings on the calendar?
2059  - How do I filter the calendar by tag?
2060  - Which meetings did I miss?
2061  - Why did my upcoming meetings disappear when I picked someone under With?
2062  - How do I clear all the calendar filters?
2063order: 20
2064---
2065
2066Every calendar filter sits behind one **Filters** button in the toolbar. When
2067anything is narrowing or hiding what you see, the button has a teal outline and
2068a count, so you can tell at a glance that you are not looking at everything.
2069
2070The panel has one section for each kind of thing on the calendar. A section
2071with filters set shows how many, for example *2 filters*.
2072
2073## Saved
2074
2075**Marked** narrows the calendar to what carries a mark of yours. Pick
2076**Bookmarked**, any of your tags, or several. Anything carrying **any one** of
2077them stays, and everything else goes. **Find a tag** searches the list, and
2078**Clear filters** at the bottom empties it.
2079
2080Saved works on meetings and action items alike, so it sits above their
2081sections rather than inside one. A meeting counts as marked if you bookmarked
2082or tagged it, or bookmarked or tagged its whole series. Live meetings always
2083stay, because they cannot carry a mark until they are recorded.
2084
2085Saved also narrows the lists in [the Planner](/help/calendar/planner), so a
2086filter means the same thing wherever you see it.
2087
2088To bookmark or tag a meeting from the calendar, see
2089[Bookmark and tag from the calendar](/help/calendar/bookmark-and-tag).
2090
2091## Meetings
2092
2093The **Show meetings** switch takes every meeting off the grid, and puts them
2094back. With meetings showing, three filters narrow them:
2095
2096- **With** — meetings that had **every** person you pick on the invite.
2097  Picking someone other than yourself shows **recorded meetings only**: your
2098  calendar holds your own invites, not theirs, so upcoming and live meetings
2099  drop out.
2100- **My attendance** — what you did about each meeting. **Attended** and
2101  **Missed** apply to recordings. **Accepted**, **Tentative** and **No
2102  response** apply to upcoming meetings. A meeting the answer cannot apply to
2103  stays, so a week that runs past today never goes half blank.
2104- **Customer** — meetings with people from any of the organizations you pick.
2105  Your own organization is left out, since it is on every meeting.
2106
2107These filters only ever narrow meetings. Your action items are not affected by
2108them.
2109
2110## Action items
2111
2112The **Show my action items** switch takes your action items off the grid, and
2113the four filters under it narrow them by **Destination**, **Status**, **Tags**
2114and **PBI tags**. This section appears only if you can open Action Logs. See
2115[the Planner](/help/calendar/planner) for working with action items here.
2116
2117When a section's switch is off, its filters are dimmed and rest until you turn
2118it back on. They are not lost.
2119
2120## Clear or keep what you set
2121
2122- **Clear all**, at the bottom of the panel, puts every filter back to showing
2123  everything. The view (Day, Week and so on) stays as it is.
2124- **Save as profile…** saves the view and every filter under a name, so you can
2125  come back to it in one click. See [Calendar profiles](/help/calendar/profiles).
2126
2127Filters are part of the page address, so reloading the page keeps them.
2128
2129## Who can do this
2130
2131Everyone who can sign in can filter the calendar. What the panel offers
2132depends on what you have:
2133
2134- Tags in **Saved** need the tags permission, which every editor has. Without
2135  it, **Saved** offers **Bookmarked** only.
2136- The **Action items** section needs access to Action Logs.
2137`,mxe=`---
2138title: Use the calendar
2139summary: See your recorded, live and upcoming meetings on one grid by day, work week, week or month, and act on any of them from a click or a right-click.
2140surfaces: [/calendar]
2141aka:
2142  - calendar
2143  - my week
2144  - schedule view
2145  - outlook view
2146  - week view
2147  - month view
2148  - my meetings this week
2149  - agenda
2150  - what's on today
2151  - right-click menu on a meeting
2152questions:
2153  - Where do I see my meetings for the week?
2154  - How do I switch the calendar to month view?
2155  - Why isn't a meeting I have access to on my calendar?
2156  - What do the colours on the calendar mean?
2157  - Can I act on several meetings at once?
2158  - Why are there no upcoming meetings on my calendar?
2159order: 10
2160---
2161
2162**Calendar** shows your meetings on a grid: the ones that were recorded, the
2163ones happening now, and the ones coming up on your connected calendar. Open it
2164from **Calendar** in the navigation bar.
2165
2166## Move around
2167
2168The toolbar across the top has everything for getting to the right dates:
2169
2170- **Today** jumps back to the current day.
2171- The **‹** and **›** arrows step back or forward one day, one week or one
2172  month, depending on the view.
2173- The date range between them opens a date picker. Pick any day to jump to it.
2174- The view menu switches between **Day**, **Work week**, **Week** and
2175  **Month**. Calendar opens on **Week** unless a
2176  [profile](/help/calendar/profiles) says otherwise.
2177
2178In **Month**, a day with more than fits shows **+N more**. Press it to open
2179that day in **Day** view.
2180
2181When you are not typing in a field, the keyboard does the same:
2182
2183| Key | What it does |
2184|---|---|
2185| **←** / **→** | Previous / next day, week or month |
2186| **T** | Today |
2187| **Esc** | Clear a selection of blocks |
2188| **0**, **1**–**9** | Switch profile (see [Calendar profiles](/help/calendar/profiles)) |
2189
2190## What is on the grid
2191
2192Only meetings **you are part of** appear: recordings of meetings you were
2193invited to or joined, and upcoming meetings on your own connected calendar. A recording that reaches you only
2194because someone shared it with you is on **Past meetings**, not here.
2195
2196Each kind of block looks different:
2197
2198- **Recorded** meetings are filled teal.
2199- **Live** meetings have a red outline and a **Live** chip.
2200- **Upcoming** meetings are grey, with a small dot before the time: filled
2201  when the note-taker will join, hollow when it will not.
2202- Your **action items** also appear here, if you can open Action Logs. See
2203  [the Planner](/help/calendar/planner).
2204
2205Small marks on a block tell you more: a coloured dot for each of your tags, a
2206bookmark icon if you bookmarked it, and a bell if a reminder is on. A red line
2207across today shows the current time.
2208
2209## Click a meeting to peek
2210
2211Click a block to open a card beside it. What it shows depends on the meeting:
2212
2213- **Upcoming** — **Join** and **Prep** buttons, the date and time, the
2214  location (or *No location added*), who organized it, and how many people
2215  accepted. Press the tally to see every name and their reply. It also shows
2216  whether the note-taker is joining, with a control to allow or stop it, and
2217  the agenda. A long agenda has **Show more**.
2218- **Recorded** — **Open meeting**, the date, time and length, who was there,
2219  and how many action items and RAID entries it produced.
2220- **Live** — **Watch live**, **Join** if there is a meeting link, how long it
2221  has been running, and how many people are in it.
2222
2223A row of icons along the bottom of the card has the same actions as the
2224right-click menu: prepare a mind map, reminders, copy the transcript,
2225bookmark, send or allow the note-taker, share, and copy the link. Hover an
2226icon to see its name.
2227
2228## Right-click for the menu
2229
2230Right-click a block for its menu. It lists only what applies to that block:
2231
2232- **Open meeting** — opens the recording or the live room.
2233- **Copy transcript** — for a recorded meeting.
2234- **Prep** and **Prepare a mind map** (or **Open mind map**) — for an upcoming
2235  meeting.
2236- **Reminders** — for an upcoming meeting. See
2237  [Reminders](/help/calendar/reminders).
2238- **Bookmark** — bookmark in one click, or open your tags. See
2239  [Bookmark and tag from the calendar](/help/calendar/bookmark-and-tag).
2240- **Who can see this** — administrators only.
2241- **Send the note-taker** and **Allow note-taker** — for upcoming meetings.
2242- **Share…** and **Copy link**.
2243
2244## Act on several at once
2245
2246Hold **⌘** (Mac), **Ctrl** or **Shift** and click blocks to select more than
2247one. Right-click any selected block and the menu acts on all of them. Its
2248heading reads, for example, *3 past meetings selected*, and it offers only the
2249actions every selected block has in common. Press **Esc**, or click an empty
2250part of the grid, to clear the selection.
2251
2252Copying the transcripts of several meetings at once needs its own permission,
2253which an administrator grants to named people.
2254
2255## No upcoming meetings?
2256
2257Upcoming meetings come from your connected calendar. Without one, a
2258**Connect your calendar** notice sits above the grid. Press **Connect** to
2259open the settings where you connect it. Recorded meetings show either way.
2260
2261## Who can do this
2262
2263Everyone who can sign in has Calendar. Some parts depend on what else you
2264have: tags need the permission every editor has, action items
2265appear if you can open Action Logs, and **Who can see this** is for
2266administrators.
2267
2268## Related
2269
2270- [Filter the calendar](/help/calendar/filters)
2271- [Calendar profiles](/help/calendar/profiles)
2272- [The Planner](/help/calendar/planner)
2273`,pxe=`---
2274title: Plan your week in the Planner
2275summary: The Planner rail beside the calendar lists your action items by day, so you can tick them off, edit them and drag them onto the week.
2276module: command_center
2277surfaces: [/calendar]
2278aka:
2279  - planner
2280  - the rail
2281  - side panel
2282  - my list next to the calendar
2283  - plan my week
2284  - my action items on the calendar
2285  - drag a task onto the calendar
2286  - overdue
2287  - no date
2288questions:
2289  - How do I open the Planner?
2290  - Why is there no Show planner button?
2291  - Why does the Overdue count say 50+?
2292  - Why doesn't my action item show on the calendar?
2293  - Can I add an action item from the calendar?
2294order: 20
2295---
2296
2297The **Planner** is a list that sits beside the calendar. It holds the action
2298items you are responsible for, grouped by the day they are due. You can tick
2299them off, open them, and drag them onto the week.
2300
2301## Open it
2302
2303Open **Calendar** from the top bar and press **Show planner**, the panel
2304button at the far right of the calendar's toolbar. Press it again (**Hide
2305planner**) to put it away. On a narrow window the Planner slides in from the
2306right instead of sitting beside the grid.
2307
2308The Planner follows the toolbar's **Action items** filter: hide your action
2309items there and the Planner and its button go too, and narrow them there and
2310the Planner narrows with them.
2311
2312## Your action items
2313
2314The Planner lists the open action items you are responsible for: **No date**
2315(collapsed) first, then **Overdue**, then one group per day. Each row shows
2316when it is due and which destination it belongs to.
2317More load as you scroll. While more are waiting, a group's count ends in **+**,
2318for example **50+**.
2319
2320- **Tick the box** to mark it done. That happens at once.
2321- **Click the row** to open it as a card in place. You can change the title,
2322  note, **Due**, **Destination**, **Tags**, **PBI tags** and your personal
2323  tags. Your edits wait until you press **Save** (or Enter in the title, or
2324  Ctrl/Cmd+Enter). Closing the card keeps them as a draft and marks the row
2325  **• Unsaved**. **Cancel** throws them away. Saved changes go to the item's
2326  destination the same way an edit in the Action Log does.
2327- **Type the due date.** In **Due**, type \`tomorrow\`, \`fri\`, \`next fri 3pm\` or
2328  \`oct 12\`. The line under the field shows how it was read; press Enter to set
2329  it. Text that is not a date is not saved. The **Time** list next to the
2330  calendar sets or clears the time of day.
2331- **Add one** with **Add an action item** at the top. A new action item needs a
2332  title, a destination and a due date, and you are its responsible person. After
2333  **Add**, the card stays open for the next one and says which day it went to.
2334  The item can take a few seconds to show in the list.
2335- **Open in Action Logs**, at the bottom of the card, takes you to the item in
2336  the full log.
2337
2338## Drag onto the calendar
2339
2340Drag any row onto the calendar. Dropping it on a time sets the day and the
2341time. Dropping it on a day in month view moves the day and keeps the time.
2342
2343## Action items on the grid
2344
2345Your action items also show on the calendar itself, in blue, so you can see
2346them next to your meetings:
2347
2348- An item with a due time sits at that time.
2349- An item with only a due date sits in the all-day lane at the top of the day,
2350  and as a pill in month view.
2351- A completed item is struck through.
2352- An item with no due date, or one that is overdue and not done, is left off
2353  the grid. Find those in the Planner.
2354
2355Click one to edit it in a card beside it, the same card as the Planner. To
2356show or hide them, or narrow them, use the **Action items** filter in the
2357toolbar. See [Filter the calendar](/help/calendar/filters).
2358
2359In week and day view, the **All day** menu at the left of the all-day lane
2360sets how much of it you see: **Count only** (how many items each day has),
2361**Condensed** (two items and "+N more") or **Full** (every item). A profile
2362saves this choice along with the view, so switching profiles switches it too.
2363See [Calendar profiles](/help/calendar/profiles).
2364
2365To be reminded about an action item later, see
2366[Snooze an action item](/help/calendar/remind-me-later).
2367
2368## Who can do this
2369
2370Anyone who can open the Action Log, in an organization that has Command
2371Center. Without that, or with **Show my action items** switched off in the
2372filters, there is no **Show planner** button.
2373
2374Only you see your Planner. It lists the action items where you are the
2375responsible person.
2376`,fxe=`---
2377title: Save and switch calendar profiles
2378summary: Save the calendar's view and filters under a name, switch between saved views in one click or one key, and choose which one Calendar opens on.
2379surfaces: [/calendar]
2380aka:
2381  - calendar profiles
2382  - saved views
2383  - save my filters
2384  - switch view
2385  - my default calendar view
2386  - calendar presets
2387  - open calendar on
2388  - edited profile
2389questions:
2390  - How do I save my calendar filters?
2391  - How do I make Calendar always open with my filters?
2392  - What does Edited mean next to my profile?
2393  - How do I switch profiles with the keyboard?
2394  - Can other people see my calendar profiles?
2395  - How many calendar profiles can I have?
2396  - Does a profile remember the date?
2397order: 30
2398---
2399
2400A **profile** is a named snapshot of how you like the calendar set up: the view
2401(Day, Work week, Week or Month), how much of the all-day lane shows, and every
2402filter. Save the setups you use often
2403and switch between them in one click. A profile does not save the date.
2404
2405The active profile's name sits next to **Calendar** in the toolbar. When no
2406profile is active it reads **Profiles**. Press it to open the menu.
2407
2408## Save a profile
2409
24101. Set up the view and [filters](/help/calendar/filters) you want.
24112. Open the profile menu and press **Save this view as a profile…**. It turns
2412   teal when you have filters set and no profile active. **Save as profile…**
2413   at the bottom of the **Filters** panel does the same.
24143. Give it a **Name**. The dialog shows **What it keeps**: the view and each
2415   group of filters.
24164. Tick **Open Calendar on this profile** if you want Calendar to open on it.
24175. Press **Save profile**.
2418
2419A message confirms it and tells you which number key switches to it.
2420
2421Names must be unique, and you can have up to 20 profiles. At the limit, the
2422save option is greyed out.
2423
2424## Switch profiles
2425
2426Open the menu and press a profile. Each row shows a one-line summary of what
2427it narrows, such as *Week · With Sam · Bookmarked*.
2428
2429**No profile** is always the first row. It shows everything, with only the
2430filters you set yourself.
2431
2432From the keyboard, when you are not typing in a field:
2433
2434- **1** to **9** switch to your first nine profiles, in menu order.
2435- **0** switches to **No profile**.
2436
2437## Edited profiles
2438
2439Change a filter or the view while a profile is active and an **Edited** chip
2440appears next to its name. The profile itself has not changed yet. The menu then
2441offers:
2442
2443- **Update “name”** — save the changes into this profile.
2444- **Save as new profile…** — keep this profile as it was and save the changes
2445  under a new name.
2446- **Reset changes** — go back to the profile as saved.
2447
2448If you switch to another profile while one is edited, Calendar asks first. The
2449dialog lists what you changed, and offers **Discard**, **Save as new…** or
2450**Update profile**. Press **Esc** to stay where you are.
2451
2452## Rename, delete or choose where Calendar opens
2453
2454Hover a profile and press **…** for its menu:
2455
2456- **Rename** — edit the name in place. Press **Enter** to save or **Esc** to
2457  cancel.
2458- **Open Calendar on this** — Calendar opens on this profile from now on. A
2459  pin marks it in the list. **No profile** has this option too, if you want
2460  Calendar to open unfiltered.
2461- **Delete** — asks for confirmation in the row. This cannot be undone.
2462
2463Deleting the profile Calendar opens on makes it open on **No profile**.
2464Deleting the active profile switches you to **No profile**.
2465
2466Calendar opens on your chosen profile in a new tab. If you leave the calendar
2467and come back from the navigation bar in the same tab, you return to where you
2468were, unsaved changes included.
2469
2470## If something in a profile is gone
2471
2472If a person, tag or customer saved in a profile has since been deleted, it
2473drops out of the profile quietly. The rest of the profile still applies, and
2474the profile does not show as **Edited** because of it.
2475
2476## Who can do this
2477
2478Everyone who can sign in can save and use profiles. Profiles are personal:
2479nobody else sees them. They are stored with your account, so they follow you
2480to another browser or computer.
2481
2482A profile only includes the filter groups you can see. If you cannot open
2483Action Logs, the action items group is not part of your profiles.
2484`,gxe=`---
2485title: Snooze an action item
2486summary: Snooze an action item from the calendar, and Luniko notifies you about it at a time you pick, without changing its due date.
2487requires: [automations.use]
2488surfaces: [/calendar]
2489aka:
2490  - remind me
2491  - remind me later
2492  - snooze
2493  - snooze an action item
2494  - ping me
2495  - nudge me about a task
2496  - bell icon
2497  - alarm
2498questions:
2499  - How do I snooze an action item?
2500  - Does snoozing change the due date?
2501  - Does a snoozed action item disappear?
2502order: 40
2503---
2504
2505From the calendar you can snooze an action item: Luniko notifies you about it
2506again at a time you pick. A snooze never touches the item's due date, because
2507that date is shared with your team.
2508
2509## Where the bell is
2510
2511Look for the bell in the footer of the card you open from the Planner or the
2512grid, on the action item's peek card, and in the right-click menu on its
2513calendar block.
2514
2515The bell fills in while a snooze is set, and the time shows next to it.
2516
2517## Snooze an action item
2518
2519Open the bell and choose from **Snooze until**:
2520
2521- **In 1 hour**
2522- **Tomorrow, 9:00 AM**
2523- **Monday, 9:00 AM** (hidden when Monday is tomorrow)
2524- **Pick a date and time…**
2525
2526**Pick a date and time…** turns the menu into a picker. Type something like
2527\`fri 3pm\` or \`oct 12 9am\`, or click a day on the calendar and choose a time,
2528and the line under the field shows what it read. A day with no time means 9:00
2529AM. Press Enter or **Snooze**.
2530
2531A snooze never changes the action item's due date, and the item stays where it
2532is in your lists while it is snoozed.
2533
2534## When it goes off
2535
2536You get a notification at that time. It reads *Snooze is up:* and the item's
2537title. Tapping it opens the item. If you have finished the item by then,
2538nothing is sent.
2539
2540Each item holds one snooze. Picking a new time replaces the old one. To cancel
2541it, open the bell and choose **Remove snooze**. You can also see and remove
2542snoozes in **Settings → Automations**: see
2543[Manage your automations](/help/profile-settings/automations).
2544
2545## Who can do this
2546
2547Every editor by default. An administrator can grant it to anyone else. Without
2548it, there is no bell. A snooze also needs access to your action items on the
2549calendar. See [Plan your week in the Planner](/help/calendar/planner).
2550
2551Only you see your snoozes.
2552`,yxe=`---
2553title: Set reminders on a meeting
2554summary: From the calendar, ask Luniko to remind you to send the summary, nudge you if a meeting isn't reviewed, or give you a heads-up before it starts.
2555requires: [automations.use]
2556surfaces: [/calendar, /meetings/$meetingId/send-summary, /automations]
2557aka:
2558  - reminders
2559  - automate
2560  - automations
2561  - remind me to send the summary
2562  - nudge me
2563  - heads-up before a meeting
2564  - meeting reminder
2565  - every meeting in the series
2566  - review and send
2567  - send the summary
2568questions:
2569  - How do I get reminded to send the meeting summary?
2570  - Can I set a reminder for every meeting in a series?
2571  - How do I turn a reminder off for just one meeting?
2572  - What does the amber dot on a meeting mean?
2573  - Where did the Automate menu go?
2574  - Does Luniko send the summary email for me?
2575order: 30
2576---
2577
2578**Reminders** are things Luniko does for you around an upcoming meeting on your
2579calendar: remind you to send the summary once it's ready, nudge you if nobody
2580has reviewed it, or give you a heads-up before it starts. You set them from the
2581calendar, on one meeting or on every meeting in a series.
2582
2583## Open the Reminders menu
2584
2585On **Calendar**, right-click an upcoming meeting and open **Reminders**, or
2586open the meeting's peek card and press the bell. The menu lists three
2587reminders, each with what it is set to right now, such as **When ready**,
2588**1 hr after** or **Off**. When any are on, the menu shows how many, for
2589example **Reminders, 2 on**.
2590
2591Reminders are offered on upcoming meetings from your connected calendar. A
2592meeting that has already been recorded shows what its reminders did instead.
2593
2594## The three reminders
2595
2596Point at a reminder to see its choices. Picking one applies it straight away
2597and keeps the menu open.
2598
2599- **Remind me to send the summary**: **When it's ready**, **15 minutes after it
2600  ends**, **1 hour after it ends** or **1 day after it ends**. **Custom…** lets
2601  you choose your own delay, up to 7 days after it ends.
2602- **Nudge me if it isn't reviewed**: **2 hours after it ends** or **1 day after
2603  it ends**. If the meeting has been reviewed by then, or it is assigned to
2604  someone else for review, no nudge is sent.
2605- **Heads-up before it starts**: **5 minutes before it starts**, **15 minutes
2606  before it starts** or **1 hour before it starts**. When there was an earlier
2607  meeting, the notification says how many action items and RAIDs are still
2608  open from last time, and opens that meeting. If the meeting moves later, the
2609  heads-up waits for the new time; if it has started, moved away or been
2610  cancelled, none is sent.
2611
2612Choose **Off** to stop one.
2613
2614## This meeting or the whole series
2615
2616On a recurring meeting, a switch at the top of the menu reads **This meeting |
2617All in series**. It starts on **All in series**, and it is the same switch the
2618**Bookmark** row uses, so changing it in one changes it in the other. Your
2619choice is remembered in this browser.
2620
2621- On **All in series**, a value applies to every meeting in the series.
2622- On **This meeting**, a value applies to this one only and overrides the
2623  series. A value this meeting takes from its series is shown muted, with a
2624  repeat icon. **Use series setting** removes this meeting's own value so it
2625  follows the series again.
2626- To skip a reminder once without changing the series, switch to **This
2627  meeting** and choose **Off**.
2628
2629On the calendar, a meeting with a reminder on shows a bell. An **amber dot**
2630means that meeting has its own setting that differs from its series.
2631
2632## See what a reminder did
2633
2634Open a meeting's peek card. Under **Reminders**, each one says what it will do
2635or what happened, for example *Will remind you to send the summary 15 minutes
2636after it ends*, *Summary ready to send*, or *Skipped: already reviewed*.
2637**Remove** next to one ends it.
2638
2639## Review and send the summary
2640
2641When the summary reminder goes off, the notification, and the **Summary ready
2642to send** line on the peek card, open **Send the summary**. It shows the
2643recipients, the subject and the email exactly as it will look. If any action
2644items or RAIDs are still unreviewed, an amber line says so, with **Review
2645them** to go to the meeting's actions.
2646
2647Press **Open in Outlook** to open it as a draft in your mail, or **Copy** to
2648copy it. Nothing goes out until you press Send in Outlook.
2649
2650## Manage them all in one place
2651
2652Every reminder you have set, on any meeting or item, is listed in **Settings →
2653Automations**. See [Manage your automations](/help/profile-settings/automations).
2654
2655## Who can do this
2656
2657Every editor by default. An administrator can also grant it to anyone else.
2658Without it, the calendar has no **Reminders** menu and Settings has no
2659**Automations** tab.
2660
2661Your reminders are yours: nobody else sees them, and they only ever notify you.
2662A reminder about a meeting only goes off if you can still see that meeting.
2663`,bxe=`---
2664title: Bulk actions
2665summary: Change a field, follow, bookmark or delete several rows at once from the selection bar.
2666surfaces: [/command-center]
2667aka:
2668  - bulk actions
2669  - mass edit
2670  - select all
2671  - bulk edit
2672  - bulk delete
2673  - edit multiple rows
2674questions:
2675  - How do I change the same field on several action items at once?
2676  - Is there a way to delete multiple rows at once?
2677  - Does bulk delete ask me to confirm?
2678  - Can I back out of a bulk change?
2679order: 110
2680verified: { by: Jas, on: 2026-09-15 }
2681---
2682
2683Checking a row's box brings up a bar showing how many are selected, with a
2684**Select all** / **Deselect all** link beside it.
2685
2686The bar holds **Mark as done** / **Mark as not done**, a due-date picker, a
2687doer combobox and a destination selector. Clearing a due date or doer for the
2688whole selection lives in the overflow (⋯) menu instead, alongside **Send
2689email**, **Schedule meeting** and **Scratchpad**, which sends the selected
2690task names into a single new note. Follow and bookmark icons apply to the
2691whole selection.
2692
2693## Every bulk change asks first
2694
2695Nothing changes the moment you pick a value. Each bulk action opens a
2696confirmation that says what it is about to do and to how many rows, for
2697example **Update 12 action items?**, and lists the specifics underneath:
2698
2699- **Field changes** name each field and the value it will be set to. The
2700  dialog reminds you that the selection includes any rows you ticked earlier
2701  that are no longer on screen, since a selection survives scrolling,
2702  filtering and switching tabs.
2703- **Delete** first asks you to pick a reason from its menu. The confirmation
2704  names that reason and says the rows go for everyone who can see them, not
2705  only you. In the Triage tabs, a still-unsubmitted draft has no record yet,
2706  so the confirmation counts those rows separately: they are only dropped
2707  from the grid.
2708- **Follow**, **Unfollow**, **Bookmark** and **Remove bookmark** say what
2709  happens to your Following feed or bookmarks.
2710
2711Press **Update**, **Delete** or the action's own name to go ahead, or
2712**Cancel** to leave everything as it was. Three rows ask the same as thirty.
2713**Send email**, **Schedule meeting** and **Scratchpad** do not ask, because
2714they only open a draft or a note and change nothing.
2715
2716## Who can do this
2717
2718Bulk actions use the same permissions as doing the same thing one row at a
2719time — see [Edit an action item](/help/command-center/edit-actions).
2720`,wxe=`---
2721title: Choose your columns
2722summary: Show or hide grid columns, or save a whole layout as a profile in the Triage tabs.
2723surfaces: [/command-center]
2724aka:
2725  - choose your columns
2726  - grid profiles
2727  - hide columns
2728  - show columns
2729  - column picker
2730  - profiles panel
2731  - save my layout
2732questions:
2733  - How do I hide a column I don't use?
2734  - Can I save my column layout so it comes back automatically?
2735  - What's the Profiles panel in the grid?
2736shots:
2737  - id: create-columns-menu
2738    route: /command-center
2739    as: [editor, admin]
2740order: 80
2741verified: { by: Jas, on: 2026-09-15 }
2742---
2743
2744In the **Create** tab, press the **Columns** button above the grid to get a
2745checklist of every column — check one to show it, uncheck it to hide it.
2746Nothing is saved as a named layout here; it just remembers what you last had
2747visible.
2748
2749The **Triage** tabs go further. Their grid has its own **Profiles** panel on
2750the right edge: press **New Profile** to save the current column order,
2751visibility, font size and (where available) row density as a named layout you
2752can switch back to later. Each saved profile can be edited or deleted with
2753the pencil and trash icons beside its name, and a profile can be bound to
2754**auto-apply on screen** — switching to it automatically whenever your
2755browser window is on a monitor you've chosen for it.
2756
2757Profiles are personal: they change what you see, not what anyone else sees.
2758
2759## Who can do this
2760
2761Anyone who can open Command Center can show, hide and save columns for
2762themselves.
2763`,vxe=`---
2764title: Create an action
2765summary: Add a new action item in the Create tab and fill in its details before you submit it.
2766requires: [command_center.create_item]
2767surfaces: [/command-center]
2768commands: [nav.create-action]
2769aka:
2770  - add an action item
2771  - new action
2772  - create a task
2773  - add a task
2774  - add item
2775  - log an action
2776questions:
2777  - How do I add a new action item?
2778  - Can I paste a list of tasks in at once?
2779  - Why can't I submit my new action item?
2780shots:
2781  - id: create-add-item-control
2782    route: /command-center
2783    as: [editor, admin]
2784order: 30
2785verified: { by: Jas, on: 2026-09-15 }
2786---
2787
2788The Create tab is where a brand-new action item starts out. Press **Add
2789Action Item** — the button in the top-right of the grid, which also takes
2790**Insert** (⌘I on a Mac) — to add a blank row, then fill it in by clicking
2791each cell: Task Name, Additional Note, Due Date, Responsible Doer and
2792Destination all edit in place.
2793
2794You can also paste a block of text straight onto the grid — anywhere outside
2795a text field — and it turns into one or more new rows instead of overwriting
2796whatever cell happens to be focused.
2797
2798Every row needs a real **Destination** before it can be submitted — pick one
2799from the list, or leave it to whatever your [Command Center
2800defaults](/help/profile-settings/command-center-defaults) set. If a
2801destination is private, you'll only be able to choose it if you've been
2802granted access — see [Who can use a
2803destination](/help/command-center/destination-access).
2804
2805Nothing you add here exists anywhere else yet: it's held only in your own
2806browser until you press **Submit**. See [Submit to the
2807sheet](/help/command-center/submit-to-smartsheet) for what happens next.
2808
2809## Who can do this
2810
2811Every editor in your organization already has this. If your role is limited
2812to viewing, the Create tab still opens, but adding and submitting items isn't
2813part of it — ask an administrator to change that.
2814`,kxe=`---
2815title: Create, Triage and Manage
2816summary: The three ways into Command Center — build a new item, clean up what was captured for you, or open the full log.
2817surfaces: [/command-center]
2818commands: [nav.create-action, nav.triage-actions, nav.triage-raids]
2819aka:
2820  - the three tabs
2821  - create actions
2822  - triage actions
2823  - triage raids
2824  - manage actions
2825  - action log
2826  - raid log
2827questions:
2828  - What's the difference between Create and Triage?
2829  - Where do I go to see everything that's already been submitted?
2830  - Why can't I edit anything under Manage?
2831order: 20
2832verified: { by: Jas, on: 2026-09-15 }
2833---
2834
2835The control at the top of Command Center groups every mode by what you're
2836doing, not just where you are: **Create**, **Triage** and **Manage**.
2837
2838**Create → Actions** is an empty workspace. You add a row, fill in what you
2839know, and it stays only in your own browser until you press Submit — nothing
2840is created anywhere else before that. Use it when you're writing down a new
2841action item nobody has captured yet.
2842
2843**Triage → Actions** and **Triage → Raids** hold rows something else already
2844produced for you — for example, items a call picked out on its own. They sit
2845here so you can check the details, fix anything wrong, attach a file, or
2846delete what shouldn't have been captured, before deciding to submit them.
2847Nothing in Triage is a real action item or RAID entry yet: it becomes one only
2848once you submit it.
2849
2850**Manage** is different from the other two — its **Actions** and **Raids**
2851links don't open a workspace at all. They take you straight to the full
2852**Action Log** or **RAID Log**, where every item that has ever been submitted
2853lives for good, alongside everything created outside Command Center too.
2854There's no draft state to manage there; you're editing the real thing
2855directly.
2856
2857A concrete example: a meeting ends and three follow-ups it noticed land in
2858Triage → Actions automatically. You review them, correct a due date, and
2859submit two of them while deleting the third as a false catch. Separately, in
2860Create → Actions, you type up a fourth action nobody mentioned on the call and
2861submit it alongside. All four now live in the Action Log, reachable from
2862Manage.
2863`,xxe=`---
2864title: Who can use a destination
2865summary: Private destinations are visible only to people an administrator has individually granted access to.
2866requires: [command_center.manage_destination_access]
2867surfaces: [/admin]
2868aka:
2869  - who can see this sheet
2870  - private action sheets
2871  - sheet keys
2872  - grant sheet access
2873  - private destination access
2874questions:
2875  - Why can't I see a destination I need?
2876  - How do I give someone access to a private destination?
2877  - What are private action sheets?
2878order: 70
2879verified: { by: Jas, on: 2026-09-15 }
2880---
2881
2882Most destinations are open to everyone in your organization who can use
2883Command Center at all. The private ones are the exception: nobody sees them
2884in their Destination picker until an administrator grants access, one person
2885at a time.
2886
2887To change it, open the admin console and find the person's detail. Under
2888**Private action sheets**, each private destination has its own button —
2889press one to switch that person's access to it on or off. There's no group
2890or role setting for this; it's tracked per person, the same way meeting
2891audiences are.
2892
2893Someone without access to a destination never sees it as a choice —
2894their existing items keep whatever destination they already had, they just
2895can't move anything new onto one they can't reach. See
2896[Destinations](/help/command-center/destinations) for what a destination is
2897in the first place.
2898
2899## Who can do this
2900
2901Administrators only. Anyone else can see which destination their own items
2902are on, but not grant that access to somebody else.
2903`,_xe=`---
2904title: Destinations
2905summary: Every action item is organized under a destination — the sheet or private list it's submitted to.
2906requires: [command_center.manage_destinations]
2907surfaces: [/command-center]
2908aka:
2909  - destination
2910  - the sheet
2911  - which sheet
2912  - action log destinations
2913  - private sheets
2914  - where does this go
2915questions:
2916  - What is a destination?
2917  - How do I get a new destination set up?
2918  - What's the difference between a Smartsheet destination and a private one?
2919order: 60
2920verified: { by: Jas, on: 2026-09-15 }
2921---
2922
2923A destination is where an action item or RAID entry ends up. Most
2924destinations are backed by a real Smartsheet — submitting a row there creates
2925a matching row on that sheet, and the item keeps a **Smartsheet ID** and a
2926**View in Smartsheet** link pointing back to it. A couple of destinations are
2927private: they never leave Luniko's own database, and only people who've been
2928individually granted access can even see them as an option — see [Who can
2929use a destination](/help/command-center/destination-access).
2930
2931Every row's **Destination** field, in the grid and in the bulk-actions bar,
2932picks from whichever destinations you have access to. It has to be a valid
2933one before the row can be submitted.
2934
2935<!-- VERIFY: whether destinations can be renamed or reordered anywhere, or the list is fixed until Luniko changes it -->
2936
2937Getting a wholly new destination set up isn't something you do yourself —
2938contact your administrator.
2939
2940## Who can do this
2941
2942Managing destinations is administrators only. Everyone else can still pick
2943from the destinations they already have access to; they just don't see this
2944level of configuration.
2945`,Sxe=`---
2946title: Edit an action item
2947summary: Change any field on an action item directly in its grid cell.
2948requires: [command_center.edit]
2949surfaces: [/command-center]
2950aka:
2951  - edit an action item
2952  - change a task
2953  - update an action
2954  - fix an action item
2955  - rename a task
2956  - change the due date
2957  - due time
2958  - set a time on an action item
2959questions:
2960  - How do I change an action item's due date or owner?
2961  - What does the Done checkbox actually do?
2962  - Do my edits save automatically?
2963  - Can an action item be due at a specific time?
2964order: 40
2965verified: { by: Jas, on: 2026-09-15 }
2966---
2967
2968Click any editable cell — **Task Name**, **Additional Note**, **Due Date**,
2969**Responsible Doer**, **Destination**, **Tags** and **PBI Tags** — to change
2970it in place. The **Done** checkbox is separate from all of that: ticking it
2971only marks the work finished. It doesn't submit, delete, or otherwise move
2972the row.
2973
2974Where your edit is saved depends on the tab. In **Create**, you're editing
2975your own local draft, so there's nothing to save until you submit it. In the
2976**Triage** tabs, an edit is staged rather than written immediately — the
2977toolbar's **Save** button shows how many changes are waiting (for example
2978"Save (3)") and only sends them once you press it, or use Ctrl/Cmd+S. Leaving
2979the tab with edits still staged does not lose them, but they aren't real
2980until Save runs.
2981
2982To change the same field across several rows at once instead of one at a
2983time, see [Bulk actions](/help/command-center/bulk-actions).
2984
2985## Give it a time of day
2986
2987In the full **Action Log**, a **Due Time** column sits next to **Due Date**.
2988Type a time such as \`14:30\`, \`2pm\` or \`9:05 am\`. The column can only be edited
2989once the row has a due date, and clearing the date clears the time too. The
2990time lives only in Luniko: the destination's spreadsheet keeps showing the
2991date alone. It is what places the item at that time on your
2992[calendar](/help/calendar/planner).
2993
2994To be reminded about an action item later without touching its due date,
2995snooze it from the calendar. See
2996[Snooze an action item](/help/calendar/remind-me-later).
2997
2998## Who can do this
2999
3000Every editor has this by default, and it isn't limited to items you created
3001yourself — it covers anything in a destination you already have access to.
3002Without it, ask an administrator to add it to your role.
3003`,Txe=`---
3004title: Mention someone in an action item's note
3005summary: Type @ in an action item's Additional Note to pick a colleague, and they get a notification that opens the item.
3006requires: [command_center.edit]
3007surfaces: [/command-center, /action-logs]
3008aka:
3009  - "@ mention"
3010  - tag someone in a note
3011  - ping someone on a task
3012  - notify a colleague
3013  - loop someone in
3014  - at-mention
3015  - mention a person
3016questions:
3017  - How do I @ someone on an action item?
3018  - Who can I mention in a note?
3019  - Will editing the note notify them again?
3020  - Why didn't my mention send a notification?
3021order: 45
3022---
3023
3024Type **@** in an action item's **Additional Note** to let a colleague know
3025about it. A list of people opens under the note; keep typing to narrow it,
3026then pick someone with the mouse or press Enter. Their name goes into the
3027note as **@Their Name**.
3028
3029This works in the Command Center and workspace action item grids, and in the
3030live room's action form. In the grids, a mentioned name is highlighted in
3031the note once you finish editing. On your phone there is no list, but typing
3032the person's full name after **@** still reaches them.
3033
3034## What they get
3035
3036The person you mention gets one notification: *<your name> mentioned you on
3037<task>*, with a preview of the note. It arrives in the bell and, depending on
3038their settings, as a web or phone notification. Opening it takes them to the
3039action log with that item picked out.
3040
3041Each person is notified once. Editing the note later only notifies names you
3042add, not the ones already in it. A mention is not a follow — to hear about
3043every later change, follow the item.
3044
3045Mentions arrive under **Mentions** in
3046[notification settings](/help/profile-settings/notification-settings), so
3047anyone who has turned that off will not hear about it.
3048
3049## Who you can mention
3050
3051The list offers people in your organization who can sign in. Nobody else is
3052notified, including you, people outside your organization, and anyone who
3053has no sign-in. On a private destination, only people who can already see
3054that destination are notified.
3055
3056If two colleagues share the same name, a mention reaches only one of them.
3057
3058## Who can do this
3059
3060Anyone who can edit an action item can mention someone in its note. Every
3061editor has this by default.
3062`,Ixe=`---
3063title: Command Center
3064summary: Where every action item and RAID entry gets created, cleaned up, and sent to its destination.
3065requires: [command_center.view]
3066surfaces: [/command-center]
3067commands: [nav.create-action, nav.triage-actions, nav.triage-raids]
3068aka:
3069  - command center
3070  - CC
3071  - action items
3072  - actions
3073  - my actions
3074  - the actions page
3075  - the tracker
3076questions:
3077  - What is Command Center?
3078  - What's the difference between Create, Triage and Manage?
3079  - Where do my action items go after I submit them?
3080shots:
3081  - id: command-center-create-tab
3082    route: /command-center
3083    as: [editor, admin]
3084verified: { by: Jas, on: 2026-09-05 }
3085order: 10
3086---
3087
3088Command Center is where action items and RAID entries live before, during and
3089after they reach their destination. A control near the top of the page groups
3090every mode into three verbs — **Create**, **Triage** and **Manage** — each
3091covering actions and, where it applies, RAID entries separately.
3092
3093![Command Center](shot:command-center-create-tab)
3094
3095**Create** is a blank workspace: you type a new action item from scratch and
3096nothing exists anywhere else until you submit it. **Triage** holds items
3097someone (or something) already captured for you — extracted from a meeting,
3098say — waiting for you to check them over, fix anything wrong, and send them
3099on. **Manage** does not open a workspace at all; it links straight out to the
3100full **Action Log** or **RAID Log**, where every submitted item lives
3101permanently. See [Create, Triage and Manage](/help/command-center/create-triage-manage)
3102for what each is actually for, with examples.
3103
3104Whichever tab you're on, the grid works the same way: cells are editable in
3105place, columns can be shown or hidden, and a row's **(i)** icon tells you
3106where it came from. A **Keyboard** button in the corner of the Create tab
3107opens the shortcuts list — see
3108[Keyboard shortcuts](/help/command-center/shortcuts).
3109
3110## Who can do this
3111
3112Anyone whose organization has Command Center can open this page and see the
3113items in destinations they have access to. What you can actually do inside —
3114creating, editing, submitting — depends on capabilities every editor holds by
3115default; an administrator can tell you if yours are missing.
3116`,Exe=`---
3117title: Keyboard shortcuts
3118summary: Build and edit rows in the Create tab without leaving the keyboard.
3119surfaces: [/command-center]
3120aka:
3121  - keyboard shortcuts
3122  - hotkeys
3123  - command center shortcuts
3124  - create tab shortcuts
3125questions:
3126  - What keyboard shortcuts does Command Center have?
3127  - How do I insert a new row without the mouse?
3128  - Where do I find the shortcuts list?
3129order: 100
3130verified: { by: Jas, on: 2026-09-15 }
3131---
3132
3133The **Create** tab has its own set of shortcuts for moving through the grid
3134and editing without reaching for the mouse. Press the **Keyboard** button in
3135the bottom-right corner to open the list, or run **Open Help** from the
3136command palette.
3137
3138The main ones:
3139
3140| Shortcut | Does |
3141|---|---|
3142| Insert / ⌘I | Insert a new row |
3143| Ctrl/Cmd+Shift+Enter | Insert a new row |
3144| Cmd+Backspace | Delete the currently selected row |
3145| Ctrl/Cmd+Z | Restore the most recently deleted row |
3146| Ctrl/Cmd+Enter | Submit all workspace rows |
3147| Enter / Tab | Commit the field and move to the next one |
3148| Shift+Enter / Tab | Commit the field and move to the previous one |
3149| Arrow keys | Commit the field and move to the next cell in that direction |
3150| Backspace / Delete | Delete a character while nothing is focused |
3151
3152The **Triage** tabs don't have this list — they aren't built for typing a run
3153of rows in one sitting the way Create is — but both bind **Ctrl/Cmd+S** to
3154save whatever edits you've staged, the same as pressing the toolbar's
3155**Save** button.
3156
3157## Who can do this
3158
3159Anyone using the Create tab; there's nothing to grant.
3160`,Axe=`---
3161title: Submit to the sheet
3162summary: Push your action items out to their destination for real — a shared Smartsheet, or a private list that never leaves Luniko.
3163requires: [command_center.submit_to_sheet]
3164surfaces: [/command-center]
3165aka:
3166  - submit
3167  - push to smartsheet
3168  - publish
3169  - submit to sheet
3170  - sync to smartsheet
3171  - send to the sheet
3172questions:
3173  - What happens when I click Submit?
3174  - Why won't Submit let me click it?
3175  - How do I know an item made it to Smartsheet?
3176order: 50
3177verified: { by: Jas, on: 2026-09-15 }
3178---
3179
3180Nothing you type in Command Center exists anywhere else until you submit it.
3181
3182In the **Create** tab, press **Submit** once every row has a valid
3183destination — the button shows a spinner and "Submitting..." while it runs.
3184In the **Triage** tabs, check the rows you're ready to send and press
3185**Submit to destinations**; unlike Create, this only submits the rows you
3186selected, leaving the rest waiting.
3187
3188Submit refuses to run — with a message explaining why — if any of the
3189selected rows is missing a valid destination, or still has an attachment
3190uploading or failed. Fix those first.
3191
3192Once it succeeds, a row backed by Smartsheet gets a real **Smartsheet ID**
3193and its row menu gains a **View in Smartsheet** link that opens that exact
3194row. A row on a private destination skips Smartsheet entirely and becomes a
3195real action item or RAID entry instead — see
3196[Destinations](/help/command-center/destinations) for the difference.
3197
3198## Who can do this
3199
3200Every editor already has this. If your role is limited to viewing, you can
3201still open Command Center, but Submit isn't part of it — ask an
3202administrator to change that.
3203`,Cxe=`---
3204title: The (i) icon
3205summary: Hover a row's Info icon to see where it came from and the evidence behind it.
3206surfaces: [/command-center]
3207testids: [provenance-evidence]
3208aka:
3209  - the (i) icon
3210  - info button
3211  - source popover
3212  - where did this come from
3213  - provenance
3214  - the source icon
3215questions:
3216  - What does the (i) icon on a row mean?
3217  - Where can I see the transcript an action item came from?
3218  - Why doesn't every row have an Info icon?
3219order: 90
3220verified: { by: Jas, on: 2026-09-15 }
3221---
3222
3223Every row that has a known origin shows a small **Info** icon at the start
3224of its actions. Hovering it opens a popover with where the row came from and
3225who's attributed to it, plus — where there is one — the evidence behind it:
3226a stretch of transcript, a quoted line, or an email it was pulled from.
3227
3228Rows that don't have a source to show don't get the icon; the slot
3229sits empty rather than showing a popover with nothing in it.
3230
3231The same icon works whether the row is still in **Triage** — where the
3232transcript rides along with the capture itself, since nothing has been saved
3233as a real item yet — or already a submitted action item or RAID entry, where
3234its evidence is fetched from the item's own record instead. Either way you
3235get the same popover; you don't need to know which pipeline a row is on to
3236use it.
3237
3238## Who can do this
3239
3240Anyone who can see the row can open its Info icon — there's nothing extra to
3241grant.
3242`,Nxe=`---
3243title: See who's opened the FDE playbook
3244summary: Every delivery of the FDE playbook is written to a log — who received it, why, and when — before the document is sent.
3245requires: [fde.view_access_log]
3246surfaces: [/fde-framework]
3247aka:
3248  - playbook access log
3249  - who read the playbook
3250  - FDE audit trail
3251  - delivery log
3252questions:
3253  - Who can see who has opened the FDE playbook?
3254  - Is there a log of who read the playbook?
3255  - Does anyone get told when someone opens the playbook?
3256order: 20
3257verified: { by: Jas, on: 2026-09-15 }
3258---
3259
3260Every time the [FDE playbook](/help/fde/the-playbook) is served to someone,
3261the platform writes a row before the bytes go out: who received it, their
3262name and email, why (an ordinary open versus a reprint), their IP address and
3263browser, and when. Nothing about a delivery can be skipped or declined from
3264the reader's side — it is written by the same handler that returns the
3265document, not by anything the page itself reports.
3266
3267<!-- VERIFY: no screen in the product currently displays this log — the
3268capability and its API endpoint exist, but reading the log today means asking
3269for it directly rather than opening a page. Update this once a viewing screen
3270ships. -->
3271
3272## Who can do this
3273
3274*See who has read the FDE playbook* sits inside every organization's own
3275**admin** bundle, so an organization's administrator holds it automatically —
3276unlike *read the playbook* itself, which is granted individually and belongs
3277to no bundle. Holding this does not, by itself, let you open the playbook.
3278`,Pxe=`---
3279title: Open the FDE playbook
3280summary: A video-annotated guide to running a forward-deployed engineering engagement, watermarked with your identity every time it is served.
3281requires: [fde.read]
3282surfaces: [/fde-framework]
3283aka:
3284  - the playbook
3285  - FDE playbook
3286  - the framework
3287  - meeting-facilitation guide
3288  - report card
3289  - FDE framework
3290questions:
3291  - What is the FDE playbook?
3292  - Why do I have to accept something before I can open the playbook?
3293  - Why does my name appear all over the page?
3294  - Can I print the playbook?
3295  - Does opening the playbook get logged?
3296order: 10
3297verified: { by: Jas, on: 2026-09-15 }
3298---
3299
3300The **FDE playbook** is a video-annotated guide to running a forward-deployed
3301engineering engagement, opened at **/fde-framework**. It is served as one
3302self-contained document rather than built into the rest of the product, so it
3303keeps its own layout and behaviour.
3304
3305## Before you can open it
3306
3307The first time — or after the playbook changes enough to need re-acceptance —
3308you will see **"Before you open the FDE Playbook"** with an acknowledgment of
3309how the material may be used, and a button reading **"I understand — open the
3310playbook"**. You cannot see the document until you accept.
3311
3312## What's in it
3313
3314Beyond the guide itself, the playbook lets you leave comments pinned to a
3315spot on the page, record retrospectives, and generate a report card from a
3316meeting transcript.
3317
3318## The watermark
3319
3320Every copy is stamped with your identity before it reaches you: a faint
3321tiled pattern carrying your Entra account id runs across the whole page, and
3322a footer line reads **"Luniko internal material — not for distribution.
3323Served to [your name and email] on [the date]."** Both are baked into the
3324document itself, not added by your browser, so they survive printing
3325(Cmd/Ctrl+P), an export, or a screenshot. There is no way to turn the
3326watermark off.
3327
3328Every time the playbook is served to you, that delivery is written to a log —
3329see [the playbook access log](/help/fde/access-log).
3330
3331## Who can do this
3332
3333Only people individually granted *read the FDE playbook* can open
3334**/fde-framework** — it belongs to no bundle, so holding an admin or editor
3335bundle in an organization does not include it on its own.
3336`,Dxe=`---
3337title: Follow an action, RAID entry or schedule item
3338summary: Watch a row for changes without asking anyone, and see it move in your Following feed.
3339requires: []
3340surfaces: [/command-center, /schedules]
3341aka:
3342  - follow
3343  - unfollow
3344  - following
3345  - watch this
3346  - my items
3347  - keep an eye on this
3348  - bell icon
3349  - notify me
3350questions:
3351  - How do I follow an action item?
3352  - What does the bell icon on a row do?
3353  - Does following send me a notification?
3354  - Can I follow a RAID entry or a schedule task?
3355order: 10
3356verified: { by: Jas, on: 2026-09-15 }
3357---
3358
3359Following a row means you see it change without anyone having to tell you.
3360Press the **bell icon** on an action, RAID entry or schedule task and it starts
3361showing up in your [Following feed](/help/following/your-following-feed).
3362Press it again to unfollow.
3363
3364## Where the bell is
3365
3366In Command Center, the bell sits in each row's action icons, alongside
3367bookmark and attachment. You can also follow from the row's overflow menu,
3368which labels the same toggle **Follow** or **Unfollow**. In Schedules, the
3369bell is its own pinned column at the left of the grid, one per task.
3370
3371## Follow is quiet — except on a schedule
3372
3373Following an action item or RAID entry is silent: it adds the row to your
3374Following feed and nothing else happens. The Schedules bell works the same
3375way but also does one more thing — its column is titled *"Notify me about
3376changes to this task"*, so following a schedule task there sends you a
3377notification when it changes, on top of adding it to your feed.
3378
3379## Follow several at once
3380
3381Select more than one row in Command Center and a **Follow** control appears
3382above the table, with **Follow** and **Unfollow** for your own selection. For
3383action items and RAID entries it also offers **Add followers…**, which puts
3384other people's names on the rows you selected — they start seeing the items
3385in their own Following feed, with no notification sent, and can unfollow at
3386any time.
3387
3388**Follow** and **Unfollow** on a selection ask you to confirm first, with the
3389number of items and a reminder that the selection includes rows you ticked
3390earlier that are not on screen.
3391
3392Following is personal. Unfollowing a row does not change it for anyone else
3393watching the same one.
3394`,Oxe=`---
3395title: Your Following feed
3396summary: See every action, RAID entry and schedule item you follow, narrowed to one filter on Pulse.
3397requires: []
3398surfaces: [/pulse]
3399aka:
3400  - following feed
3401  - my items
3402  - following tab
3403  - what am i following
3404  - follow feed
3405  - following filter
3406questions:
3407  - Where do I see everything I'm following?
3408  - What shows up in the Following feed?
3409  - Does Following show meetings I haven't followed?
3410order: 20
3411verified: { by: Jas, on: 2026-09-15 }
3412---
3413
3414Following is one of the view chips at the top of Pulse — alongside **All**,
3415**Meetings**, **RAID** and **Clips** — and switching to it narrows the feed to
3416activity on the things you follow.
3417
3418## What it shows
3419
3420Selecting **Following** shows changes on every action item, RAID entry and
3421schedule task you follow, plus RAID moments on entries you follow. Meetings
3422and clips drop out of the view entirely: neither can be followed, so a
3423"Following" filter that still showed every meeting would not mean what it
3424says.
3425
3426Any date range or other filter you have set on Pulse still applies — narrow
3427to this week and Following narrows with it.
3428
3429## Start following something
3430
3431The feed only shows what you have chosen to watch. To add to it, [follow an
3432action, RAID entry or schedule item](/help/following/follow-an-item) from
3433Command Center or Schedules — there is no way to add something from inside
3434the feed itself.
3435
3436If the feed is empty, you are not currently following anything that changed
3437in the selected range, not that following is broken.
3438`,Rxe=`---
3439title: Sign in with your work account
3440summary: Open Luniko and sign in with your work account — there is no separate Luniko password.
3441requires: []
3442aka:
3443  - log in
3444  - login
3445  - signing in
3446  - can't log in
3447  - access hasn't been granted yet
3448  - no membership
3449  - wrong account
3450questions:
3451  - How do I sign in to Luniko?
3452  - Do I need a separate Luniko password?
3453  - Why does it say access hasn't been granted yet?
3454  - Why can't I get past the sign-in screen?
3455order: 10
3456verified: { by: Jas, on: 2026-09-15 }
3457---
3458
3459Luniko signs you in through your organization's own account system. There is
3460no Luniko-specific password to set or remember.
3461
3462## Getting in
3463
3464Open Luniko. If you are not already signed in, you are sent straight to your
3465organization's sign-in screen — sign in with your work account. Once you're
3466through, you land back on the page you were headed to, not on a generic
3467starting screen.
3468
3469## If your account isn't recognized yet
3470
3471Being signed in and being set up inside Luniko are two different things. Your
3472account and organization can be recognized while an administrator has not yet
3473granted you access. In that case you see **"Access hasn't been granted
3474yet"** in place of the app. Reach out to your administrator, or press **Sign
3475out** if you meant to sign in with a different account — there is nothing else
3476to do from this screen until access is granted.
3477
3478## If the page fails to load
3479
3480Occasionally the first load fails to fetch your profile and shows **"We
3481couldn't load your profile"** with a **Try again** button. This is usually a
3482temporary connection problem rather than anything about your account or
3483access — try again before reaching out to anyone.
3484`,Mxe=`---
3485title: What Luniko is
3486summary: Luniko turns your meetings into the actions, records and updates your team would have written by hand, for you to approve.
3487requires: []
3488aka:
3489  - what is luniko
3490  - what does luniko do
3491  - what's this app for
3492  - why do we use luniko
3493  - the app
3494  - luniko ai
3495questions:
3496  - What is Luniko?
3497  - What does Luniko do?
3498  - Why does my organization use Luniko?
3499order: 0
3500verified: { by: Jas, on: 2026-09-15 }
3501---
3502
3503Luniko sits in the gap between the systems your organization already runs —
3504the project tracker, the spreadsheets, the trackers nobody else opens — and
3505the work that actually happens, which is mostly people talking to each other.
3506It records your meetings, understands what needs to happen next, and drafts
3507the actions and records your team would otherwise have typed in by hand.
3508
3509Nothing goes anywhere on its own. Every draft — an action item, a RAID entry,
3510a schedule update — is something you review and approve before it moves
3511further. Luniko does the writing; a person still decides.
3512
3513## Where each piece lives
3514
3515- **Meetings** captures recordings, transcripts and summaries, and lets you
3516  clip, comment on and share moments from them. See
3517  [/help/meetings/overview](/help/meetings/overview).
3518- **Pulse** is the feed of what happened across your organization's meetings.
3519  See [/help/pulse/what-pulse-is](/help/pulse/what-pulse-is).
3520- **Command Center** is where suggested actions get created, triaged and
3521  submitted onward. See
3522  [/help/command-center/overview](/help/command-center/overview).
3523- **Live room** is the shared board a meeting uses while it is still
3524  happening. See [/help/live-room/overview](/help/live-room/overview).
3525- **Schedules**, **Scratch pad** and **Mind maps** hold the planning and
3526  note-taking work around all of it.
3527
3528If you are new, start with
3529[/help/getting-started/your-first-day](/help/getting-started/your-first-day)
3530for a tour of these in the order most people learn them.
3531`,jxe=`---
3532title: Your first day
3533summary: A short tour of Luniko's main areas, in the order most people learn them.
3534requires: []
3535aka:
3536  - getting started
3537  - onboarding
3538  - where do i start
3539  - new to luniko
3540  - first time here
3541questions:
3542  - Where do I start with Luniko?
3543  - What should I look at first?
3544  - What are all the sections in Luniko?
3545order: 20
3546verified: { by: Jas, on: 2026-09-15 }
3547---
3548
3549You don't need to learn all of Luniko at once. Most people pick it up in
3550roughly this order, and each stop links to more detail.
3551
35521. **[Find your way around](/help/navigation/finding-your-way)** — the top
3553   bar is the same on every page, and it only shows the areas you can reach.
35542. **[Pulse](/help/pulse/what-pulse-is)** — the feed of what happened across
3555   your organization's meetings. Most people check this first each day.
35563. **[Meetings](/help/meetings/overview)** — recordings, transcripts and
3557   summaries, and where you [share a moment](/help/meetings/share-a-moment)
3558   or [send a summary](/help/meetings/send-the-summary).
35594. **[Bookmarks](/help/bookmarks/make-a-bookmark)** — mark a moment worth
3560   coming back to while you're in a meeting.
35615. **[The notetaker](/help/notetaker/send-the-notetaker)** — the bot that
3562   joins and records a meeting for you.
35636. **[Live room](/help/live-room/overview)** — the shared board a meeting
3564   uses while it is still happening.
35657. **[Command Center](/help/command-center/overview)** — where suggested
3566   actions get created, triaged, and submitted onward.
35678. **[Following](/help/following/your-following-feed)** — the items you're
3568   tracking, in one feed, with notifications when they change.
35699. **[Scratch pad](/help/scratch-pad/notes)** and
3570   **[mind maps](/help/mindmaps/create-a-mind-map)** — your own notes, and
3571   turning a note into a mind map.
357210. **[Profile and settings](/help/profile-settings/general-settings)** —
3573    connect your Microsoft account, set your notification and meeting
3574    preferences.
3575
3576\`\`\`luniko-if:luna.ask
3577Press **?** anywhere in the [command launcher](/help/navigation/the-command-palette)
3578to ask Luna a question instead of hunting through this list.
3579\`\`\`
3580`,$xe=`---
3581title: The leaderboard
3582summary: See how much everyone in your organization has been doing in Luniko this week, ranked by points — it's for fun, not for review.
3583requires: [points.view_leaderboard]
3584surfaces: [/users]
3585aka:
3586  - the leaderboard
3587  - points
3588  - my points
3589  - leaderboard points
3590  - submission leaderboard
3591  - who's winning
3592  - points heatmap
3593  - my streak
3594  - activity squares
3595questions:
3596  - What are the coloured squares under the leaderboard?
3597  - What is the leaderboard for?
3598  - How do I earn points?
3599  - Can I see last week's leaderboard?
3600  - Why did our total go up so much this week?
3601order: 10
3602---
3603
3604The **Submission Leaderboard** ranks everyone in your organization by points,
3605earned by using Luniko during the week. It's meant to be fun — a way of
3606seeing that people are active, not a performance review.
3607
3608## How points work
3609
3610Points come from activity across the app: opening a meeting, submitting
3611work, connecting your calendar, sharing something, and dozens of other small
3612actions all count. Not every action is worth the same — something as
3613routine as looking at a meeting earns less than something as deliberate as
3614connecting your calendar or sharing an item. Your row shows your total for
3615the selected period; hovering it breaks the total down by where the points
3616came from.
3617
3618## Your year at a glance
3619
3620Below the board, a grid shows one square per day of the year, the way a
3621contribution graph does, headed by your total for that year. A day you did
3622nothing is blank; the more you did, the stronger the square, and your very
3623biggest days leave the teal scale altogether and show orange. Hovering a
3624square names the day and what it came to. Once you have activity in more
3625than one year, a picker in the card's header switches between them.
3626
3627## Weekly and all time
3628
3629Switch between **Weekly** and **All Time** with the tabs at the top. On the
3630current week, arrows step you back through previous weeks, and a countdown
3631shows how long is left before the week resets. When the organization's total
3632for the week passes its best week yet — or beats last week — a banner
3633stays on the board showing the record and how far ahead you are.
3634
3635## Who can do this
3636
3637Everyone who can sign in sees the leaderboard; there is nothing extra to
3638turn on. An administrator can also open the points audit behind an **Audit**
3639button — see [The points audit](/help/leaderboard/points-audit).
3640`,Lxe=`---
3641title: The points audit
3642summary: See the full history of every point awarded, and a wider log of who changed what across your organization's records.
3643requires: [points.view_audit]
3644surfaces: [/users]
3645aka:
3646  - points audit
3647  - points audit log
3648  - audit sheet
3649  - who changed this
3650  - points history
3651questions:
3652  - How do I see the points audit log?
3653  - Where can I see who edited a record?
3654  - Can I filter the points audit by event type?
3655  - Can I search the audit by person?
3656verified: { by: Jas, on: 2026-09-15 }
3657---
3658
3659An **Audit** button next to the leaderboard's tabs opens a panel with two
3660tabs.
3661
3662## Points
3663
3664The **Points** tab lists every point awarded, newest first — who earned it,
3665what it was for, when, and how many points. A dropdown filters the list down
3666to one kind of event, and a search box filters the entries already loaded by
3667name or email. **Load more** brings in older entries as you need them.
3668
3669## Audit
3670
3671The **Audit** tab is a wider log: who changed what across your
3672organization's records, not only points. It can be filtered the same way.
3673
3674## Who can do this
3675
3676The **Audit** button only appears for administrators — the capability to
3677view the points audit trail is part of every administrator's bundle.
3678Without it, the leaderboard looks the same, minus the button.
3679`,zxe=`---
3680title: Capture an action or RAID from the transcript
3681summary: Turn a stretch of the conversation into an action item or RAID entry without leaving the transcript.
3682surfaces: [/meetings/live/$meetingId]
3683module: meetings
3684aka:
3685  - hey luna
3686  - capture live item
3687  - capture from a quote
3688  - turn this into an action
3689  - log an action from the transcript
3690  - select the transcript to make an action
3691questions:
3692  - How do I turn something said in the meeting into an action item?
3693  - How does "Hey Luna" work in the live room?
3694  - What does the Capture Live Item button do?
3695  - How do I stop a Capture Live Item recording?
3696  - Can I capture a RAID entry from the transcript the same way?
3697shots:
3698  - id: transcript-capture-bar
3699    route: /meetings/live/$demoMeetingId
3700    as: [editor, admin]
3701order: 30
3702verified: { by: Jas, on: 2026-09-15 }
3703---
3704
3705Two ways to turn something said in the meeting into a row on the board, straight from the **Transcript** panel.
3706
3707![Capture an action or RAID from the transcript](shot:transcript-capture-bar)
3708
3709## Select a quote
3710
3711Drag across one or more rows of the transcript. A pill appears with the time range and three buttons: **Action**, **RAID** and **Clip**. Pressing **Action** or **RAID** creates a row on the board straight from the selection; **Clip** shares the moment instead — see [sharing a moment](/help/meetings/share-a-moment).
3712
3713\`\`\`luniko-if:luna.ask
3714Administrators also see an **Ask Luna** button here, which sends the selection to Ask Luna rather than capturing it.
3715\`\`\`
3716
3717## Say "Hey Luna"
3718
3719Say **"Hey Luna"** out loud and describe a task, and the room starts listening — a badge appears on that stretch of transcript showing **"Hey Luna" detected**, then **Listening & extracting…**, then how many action items (or RAID items) it created, and whose triage it routed them to. Hover the badge to see its progress and the items it produced; press **Stop** while it is still listening if it has enough and you would rather not wait for the window to close on its own.
3720
3721## Press Capture Live Item
3722
3723If the room is too noisy for the phrase to be picked up, press **Capture Live Item** (the microphone icon in the header) to start recording by hand. The button turns red and reads **Recording · Stop**. Say the task, then press the same button to stop. Only what was said up to the moment you pressed it is used, with a few seconds' allowance for a sentence you had already started; anything you say afterwards is left out. If nobody presses Stop, the recording ends on its own after five minutes.
3724
3725While Luna works out the task, the button reads **Creating action…**. This can take up to about a minute. When it is done, a message says **Action item added to the board for review**, and the new row is on the board. If Luna did not hear a task, the message says so and nothing is added.
3726
3727The button tracks only your own recording. In focus mode it moves into the header of the panel you are focused on, without its label.
3728`,Uxe=`---
3729title: Open the live room
3730summary: Watch a meeting's transcript and work its board in real time, in a room that stays open after it ends.
3731requires: [live.view]
3732surfaces: [/meetings/live/$meetingId]
3733aka:
3734  - live room
3735  - the live board
3736  - live meeting
3737  - watch live
3738  - Stan's live view
3739  - the room
3740questions:
3741  - How do I get into a meeting's live room?
3742  - Can I still open the live room after the meeting has ended?
3743  - What is the LIVE badge?
3744  - What is focus mode in the live room?
3745shots:
3746  - id: live-room-layout
3747    route: /meetings/live/$demoMeetingId
3748    as: [editor, admin]
3749order: 10
3750verified: { by: Jas, on: 2026-09-15 }
3751---
3752
3753The live room shows a meeting's transcript alongside its board, notes and mind map, updating as the meeting happens, and stays open to browse after it ends.
3754
3755![Open the live room](shot:live-room-layout)
3756
3757## Getting there
3758
3759A meeting in progress appears in **Live now** on the Meetings page; press **Watch live** on its card. A badge in the room's header shows the state: red **LIVE**, **Stream disconnected — refresh to reconnect** if the connection drops, or **Ended** once the meeting is over.
3760
3761## The panels
3762
3763Five panels are available — **Transcript**, **Ask Luna**, **Mind map**, **Notes** and **Board** — listed in the rail down the side. Click one to bring it up, or drag it onto either half of the room to view two side by side; the small marks under each rail icon show where it currently sits. **Listen**, **Map** and **Work** buttons in the header jump straight to the transcript-and-board, transcript-and-map, and map-and-board pairings people use most.
3764
3765Press the expand icon on any panel to give it the whole screen — **Esc** returns to the normal layout. On a narrow screen the rail moves to the bottom and only one panel shows at a time.
3766
3767**Ask Luna** only appears for administrators.
3768
3769## Who can do this
3770
3771Anyone who can already open a meeting can open its live room too — there is no separate grant. If a meeting is private or restricted to a particular audience, the same rule decides whether you can open its live room.
3772`,Fxe=`---
3773title: Send the live room recap
3774summary: Email everyone in the meeting the board as it stands, as an Outlook draft you review before it goes.
3775requires: [live.send_recap]
3776surfaces: [/meetings/live/$meetingId]
3777aka:
3778  - send recap
3779  - recap email
3780  - send the summary
3781  - email the board
3782  - where we landed on this meeting
3783questions:
3784  - How do I send a recap of the live meeting?
3785  - Who does the recap email go to?
3786  - Why does sending the recap also submit some items?
3787  - What happens if I haven't connected Microsoft?
3788shots:
3789  - id: recap-confirm-dialog
3790    route: /meetings/live/$demoMeetingId
3791    as: [editor, admin]
3792order: 40
3793verified: { by: Jas, on: 2026-09-15 }
3794---
3795
3796Select the rows you want to report on, then choose **Send email** from the board's menu to open a draft addressed to everyone who was in the meeting.
3797
3798![Send the live room recap](shot:recap-confirm-dialog)
3799
3800## What goes out
3801
3802The draft opens in Outlook as **"Where we landed on"** the meeting, subject to review before you send it. It carries your selection grouped into the board's sections, marks whatever was raised in this session, and folds in anything closed today even if it isn't currently showing on the board. Recipients are everyone the meeting invited, not only the people holding one of the actions.
3803
3804## When it also submits
3805
3806Emailing an item that has never reached its destination submits it first — a dialog titled **Emailing will submit these items** explains exactly what is about to happen (how many are new, how many already-submitted rows have edits still owed) before you confirm with **Submit & email**. If nothing needs submitting, the draft opens straight away.
3807
3808## If Microsoft isn't connected
3809
3810Without a connected Microsoft account, the draft opens as plain text instead of the formatted recap, with a message telling you so. Connect Microsoft in **Settings** for the formatted version — see [connecting your Microsoft account](/help/profile-settings/connect-microsoft).
3811
3812## Who can do this
3813
3814Every editor and administrator can send a recap. If you can view the live room but not this, the **Send email** option is not on the board's menu for you.
3815`,Wxe=`---
3816title: Work the live board
3817summary: Add and edit action items and RAID entries as a meeting happens, then sync them to their destinations.
3818requires: [live.edit_board]
3819surfaces: [/meetings/live/$meetingId]
3820aka:
3821  - live board
3822  - the board
3823  - meeting hub
3824  - sync the board
3825  - smartsheet id
3826  - needs sync
3827  - add an action item live
3828  - raid tab
3829  - rejected row
3830  - row won't submit
3831questions:
3832  - How do I add an action item during a meeting?
3833  - What does Sync do on the live board?
3834  - What does "Needs sync" mean on a RAID row?
3835  - Do items on the live board go straight to the sheet?
3836  - Why does a row say Rejected?
3837  - Why won't one row submit when the others did?
3838shots:
3839  - id: live-board-actions-tab
3840    route: /meetings/live/$demoMeetingId
3841    as: [editor, admin]
3842order: 20
3843---
3844
3845The **Board** panel holds two tabs, **Actions** and **RAIDs**, where anyone in the room can add and edit rows while the meeting is happening.
3846
3847![Work the live board](shot:live-board-actions-tab)
3848
3849## Adding and editing
3850
3851Press **Add Item** (or **Add RAID Item** on the RAIDs tab) to start a row. Everyone in the room sees it and can edit it — there is no per-row ownership on the board itself. A row you are typing into shows **Saving…**, then **Saved in Luniko**, in the strip at the top: reaching Luniko is not the same as reaching a destination, which is what the word "in Luniko" is telling you.
3852
3853Rows made from the room's own **mind map** arrive here too. An action item created from a node while the meeting is running belongs to the meeting as well as to the map, so it appears on this board rather than only in Command Center. It arrives at the board's top level, outside any section.
3854
3855Each row that has been pushed to its **destination** shows a **Smartsheet ID** once the sheet assigns one, linked straight to that row. A RAID row also carries a status line under its title — **Not submitted**, **Submitted**, or **Needs sync** when it has been edited since it last went out.
3856
3857## When the sheet refuses a row
3858
3859A destination sheet can refuse one row while accepting the rest of the batch — most often because a column has been set to accept only values from a list, and the row holds something that is not on it. A refused row shows **Rejected**; hover it to read the sheet's own reason. Only that row is affected: everything else in the same press goes through.
3860
3861Nothing about the refusal is yours to fix in Luniko. Either change the row to a value the sheet accepts, or ask whoever owns the sheet to widen the column. Pressing **Sync** again after that clears the badge.
3862
3863## Sync
3864
3865**Sync** pushes whatever the board owes to its destinations: new rows that have never gone out, and edits to rows that have. Its tooltip spells out exactly what a press will do — how many are new, how many are edited — for either the whole board or just what you have selected, so a number never has to be taken on faith. A row needs a task name and a destination before Sync will send it; the strip warns which rows are missing one.
3866
3867Pressing **Sync** asks first. The confirmation, for example **Sync 5 items to Smartsheet?**, splits the count into rows the sheet has never seen and rows already there that will be overwritten with what the board says now, and says whether it c
3867overs only the rows you ticked or the whole board. Press **Sync** to send them, or **Cancel**.
3868
3869Bulk changes on the board ask the same way: changing a field or deleting several selected rows opens a confirmation that names the change, or the delete reason, and reminds you it applies for everyone in the room.
3870
3871## Who can do this
3872
3873Every editor and administrator can add to and edit the board. If you can only view the live room, you can read the board but the controls above are not there.
3874`,Bxe=`---
3875title: Ask Luna
3876summary: Chat with Luna, an assistant that answers from meetings you can already see and asks before it acts on your behalf.
3877requires: [luna.ask]
3878surfaces: [/luna]
3879commands: [luna.ask]
3880aka:
3881  - Luna
3882  - ask Luna
3883  - the AI
3884  - the assistant
3885  - chat with Luna
3886  - talk to Luna
3887  - Luna chat
3888  - ask a question
3889questions:
3890  - What can I ask Luna?
3891  - How do I start a new chat with Luna?
3892  - Does Luna do things on its own, or does it ask first?
3893  - Why does Luna want my Microsoft account connected?
3894  - Can Luna see meetings I'm not allowed to see?
3895shots:
3896  - id: luna-empty-state
3897    route: /luna
3898    as: [admin]
3899order: 10
3900verified: { by: Jas, on: 2026-09-15 }
3901---
3902
3903Luna is Luniko's assistant. Open it from the sidebar, or press **?** anywhere
3904in the app to jump straight into a chat.
3905
3906![Ask Luna](shot:luna-empty-state)
3907
3908## Start a chat
3909
3910Type your question, or select the microphone to dictate it. On a new chat,
3911Luna suggests a few starting points — things like *"Who am I?"*,
3912*"Schedule a meeting for me."*, or *"Who are the engineers in Luniko?"* — to
3913show what it can do. Past chats sit in the list on the left, grouped by when
3914you last used them; select **New chat** to start another one without losing
3915the current thread, or rename an existing one from its row menu.
3916
3917## What it can do, and what it asks first
3918
3919Luna answers only from records you could already see elsewhere in the app —
3920it does not open a door that was not already open. Reading something
3921(looking up a person, checking a meeting) may still ask you to confirm
3922before Luna runs the lookup. Anything that changes something — sending a
3923meeting invite, for example — shows a preview of exactly what it is about to
3924do first, and waits for you to say **Yes** before it happens. Nothing is
3925sent or changed without that confirmation.
3926
3927Some of what Luna can do — looking people up in your organization's
3928directory, checking or creating calendar events — needs your Microsoft
3929account connected. If it isn't, Luna shows a banner asking you to
3930**Reconnect Microsoft** before it can use those tools.
3931
3932## Who can do this
3933
3934Ask Luna is for administrators by default. If you do not see Luna in the
3935sidebar, ask an administrator to grant it to you individually from
3936[Roles and capabilities](/help/admin/roles-and-capabilities). Without it,
3937pressing **?** or opening \`/luna\` directly sends you back to a page you can
3938already use.
3939</content>
3940`,Hxe=`---
3941title: The Luniko button
3942summary: Press the button, say what needs to happen, and Luniko turns your words into an action ready to review in Command Center.
3943surfaces: [/luniko-button]
3944commands: [nav.luniko-button]
3945aka:
3946  - the button
3947  - luniko button
3948  - the mic button
3949  - record an action
3950  - voice capture
3951  - speak an action
3952  - dictate an action
3953questions:
3954  - What does the Luniko button do?
3955  - How long can I record for?
3956  - Where does the action go after I record it?
3957  - Can I use the Luniko button on my phone?
3958order: 10
3959verified: { by: Jas, on: 2026-09-15 }
3960---
3961
3962The **Luniko button** is a single large microphone you press and talk to.
3963Say what needs to happen, and Luniko turns your words into an action item —
3964no fields to fill in first.
3965
3966## Recording
3967
3968Press the button (or the **Space** bar) to start. While recording, a live
3969transcript of what you're saying appears underneath, and the button pulses.
3970Press it again, or Space, to stop — a recording stops on its own after five
3971minutes if you forget. Speak in whichever language is easiest; the button
3972translates what you say when it isn't English.
3973
3974## What happens to it
3975
3976After you stop, a toast in the corner tracks the recording as it moves
3977through **Transcribing**, **Cleaning** and **Routing to AI Workflow**. Luniko
3978reads what you said for a summary, supporting details, and — only when you
3979actually stated them — a location, a responsible person, a due date and how
3980serious it is. When it finishes, press **View** on the toast to open
3981**Command Center**'s **Triage** tab, where the new action is waiting for you
3982to check over before it goes anywhere further.
3983
3984## Choosing a language
3985
3986Your **Settings** has a dictation language option that applies here and to
3987every other place you dictate. Leave it on auto-detect to have it follow you
3988mid-recording, or fix it to one language if auto-detect keeps guessing wrong.
3989`,qxe=`---
3990title: Meeting analytics
3991summary: A side panel of stats about how a meeting went — duration, who spoke, and how the conversation broke down.
3992surfaces: [/meetings/$meetingId]
3993aka:
3994  - meeting analytics
3995  - meeting stats
3996  - talk time
3997  - who talked the most
3998  - sentiment
3999  - speaker breakdown
4000questions:
4001  - How do I see who talked the most in a meeting?
4002  - Does Luniko track the sentiment of a meeting?
4003  - What do words per minute and filler words mean on the analytics panel?
4004  - Why don't I see a sentiment chart for this meeting?
4005order: 80
4006verified: { by: Jas, on: 2026-09-15 }
4007---
4008
4009Press **Analytics**, near the top of a meeting, to open a panel of stats
4010about how the conversation went.
4011
4012Three tiles always show: the meeting's **Duration**, its number of
4013**Speakers**, and its total **Words**. Where deeper analysis exists for the
4014meeting, four more sections follow: a breakdown of **Questions**, **Actions**,
4015**Metrics** and **Date/Time** mentions picked out of the conversation; a
4016**Sentiment** chart splitting the meeting's tone into positive, neutral and
4017negative; a **Talk Time** chart showing each participant's share of the
4018speaking time; and a **Speakers** list with, per person, their word count,
4019words per minute, questions asked, filler words, longest unbroken stretch of
4020talking, and how many separate times they spoke.
4021
4022Not every meeting has this deeper analysis yet — when it doesn't, the panel
4023shows just the three summary tiles.
4024`,Vxe=`---
4025title: Assign someone to review a meeting
4026summary: Ask a colleague to review a meeting — it shares the meeting with them and files an action item with a due date and your note.
4027module: meetings
4028surfaces: [/meetings/$meetingId]
4029aka:
4030  - assign reviewer
4031  - review this meeting
4032  - ask someone to look at a meeting
4033  - review request
4034  - reviewer
4035  - hand off a meeting
4036questions:
4037  - How do I ask someone to review a meeting?
4038  - Does assigning a reviewer create an action item?
4039  - Can the reviewer see the meeting if they weren't in it?
4040  - Where does the review action item go?
4041order: 55
4042---
4043
4044**Assign reviewer**, in the row of buttons with **Copy Transcript** on a
4045meeting's page, asks a colleague to review it. They get access to the meeting, a notification, and
4046an action item to track it by.
4047
4048## Assign a review
4049
4050Press **Assign reviewer**. The **Assign a review** form reads *Shares the
4051meeting and adds an action item for them.* Fill in:
4052
4053- **Reviewer** — search for the person.
4054- **Due date** — optional; leave it as *No due date* if there isn't one.
4055- **Action log** — which action log the review item goes on. Only logs you
4056  can add to are offered.
4057- **Note** — optional: *What should they look at?*
4058
4059Press **Assign review**. Once someone is assigned, the button reads
4060**Reviewer: *(their name)***.
4061
4062## What happens
4063
4064- An action item titled **Review meeting: *(the meeting's title)*** is filed
4065  on the log you chose, assigned to the reviewer, with your due date. Your
4066  note becomes its additional note, and it links back to the meeting.
4067- The meeting is shared with the reviewer, so they can open it even if they
4068  were not in it. Your note shows on their **Shared by** chip.
4069- They get one notification saying you assigned them the meeting to review,
4070  with your note under it.
4071
4072Assigning someone else later files a new action item for them; the earlier
4073one stays where it is.
4074
4075## Who can do this
4076
4077Anyone who can see the meeting can assign a reviewer, as long as they can add
4078items to at least one action log. If the log refuses the item, nothing is
4079created or shared.
4080`,Kxe=`---
4081title: Change a meeting's title
4082summary: Rename a meeting from its own page.
4083surfaces: [/meetings/$meetingId]
4084aka:
4085  - rename a meeting
4086  - change meeting title
4087  - edit meeting name
4088  - fix the meeting title
4089questions:
4090  - How do I rename a meeting?
4091  - Can I undo a meeting title change?
4092  - Why is the meeting still called "Untitled"?
4093order: 70
4094verified: { by: Jas, on: 2026-09-15 }
4095---
4096
4097Hover the meeting's title on its own page and a pencil icon appears beside
4098it. Press it to turn the title into an editable box.
4099
4100Type the new title, then press the checkmark (or **Enter**) to save it, or
4101the **X** (or **Escape**) to back out without changing anything. Saving shows
4102a confirmation once the new title has taken effect; if it fails — a dropped
4103connection, say — you're told the save didn't go through so you can try
4104again rather than assuming it worked.
4105
4106There's no separate step to confirm a rename beyond pressing save, and no
4107history of previous titles — whatever you type replaces what was there. The
4108edit box carries whatever the title currently is when you open it, so backing
4109out with **X** or **Escape** always leaves the meeting exactly as it was.
4110`,Gxe=`---
4111title: Comment on a meeting
4112summary: Start a thread on a meeting's card, reply, mention people, and react — without leaving the feed.
4113requires: [meetings.comment]
4114surfaces: [/pulse]
4115aka:
4116  - comment on a meeting
4117  - reply to a meeting
4118  - mention someone in a comment
4119  - GIF comment
4120  - who commented
4121  - start a thread
4122questions:
4123  - How do I comment on a meeting?
4124  - Can I mention someone in a comment?
4125  - How do I reply to a comment instead of starting a new one?
4126  - Can I edit or delete a comment I posted?
4127order: 120
4128verified: { by: Jas, on: 2026-09-15 }
4129---
4130
4131Every meeting's card carries a **Comment** button, showing a message icon and,
4132once anyone has posted, a running count ("3 comments"). Press it to open the
4133thread underneath the card.
4134
4135## Writing one
4136
4137Type in the box at the bottom of the thread. Typing **@** opens a picker of
4138the people who can actually see the thread — mentioning someone outside that
4139list is not offered. A comment can carry words, a GIF, or both.
4140
4141Press **Reply** under any comment to answer it directly rather than starting a
4142new top-level comment. Replies are one level deep: you cannot reply to a
4143reply. A comment with replies shows a count you can press to expand or hide
4144them.
4145
4146## Editing and deleting your own
4147
4148Hover a comment you posted for a small menu button. It offers **Edit** and
4149**Delete**. Editing changes only the words — a GIF you attached stays.
4150Deleting replaces the comment with *"This comment was deleted"*; anyone can
4151still see that something was there.
4152
4153You can react to any comment the same way you react elsewhere in Pulse — see
4154[Comments and reactions](/help/pulse/comments-and-reactions).
4155
4156## Who can do this
4157
4158Anyone who holds record access to the meeting and the *comment on a meeting*
4159capability can read and post here. Without it, the meeting's card shows no
4160Comment button at all.
4161`,Yxe=`---
4162title: Copy the transcript
4163summary: Copy one meeting's full transcript to your clipboard, or copy several meetings' transcripts at once from the list.
4164surfaces: [/meetings, /meetings/$meetingId]
4165aka:
4166  - copy transcript
4167  - download the transcript
4168  - grab the transcript text
4169  - export transcript
4170  - save the transcript
4171  - bulk copy transcripts
4172  - copy transcripts paused
4173  - why can't I copy transcripts
4174questions:
4175  - How do I copy a meeting's transcript?
4176  - Can I copy several meetings' transcripts at once?
4177  - Why did nothing copy when I pressed Copy Transcript?
4178  - Is there a limit to how many meetings I can copy at once?
4179  - Why does it say copying transcripts is paused for my account?
4180order: 40
4181verified: { by: Jas, on: 2026-09-15 }
4182---
4183
4184You can copy a transcript one meeting at a time from its own page, or several
4185at once from the meetings list.
4186
4187## One meeting
4188
4189Open the meeting and press **Copy Transcript**, near the **Analytics**
4190button. The full transcript is copied to your clipboard as plain text, ready
4191to paste anywhere, and a confirmation appears. If the recording hasn't been
4192transcribed yet, pressing it tells you there is nothing to copy rather than
4193copying nothing silently.
4194
4195In a live room, **Copy transcript so far** does the same for everything the
4196room has heard up to that moment.
4197
4198## Several at once
4199
4200On the meetings list, hover a card or row to reveal its checkbox and select
4201the meetings you want. A floating toolbar appears — press the clipboard icon
4202in it to copy every selected transcript in one go, each one separated by its
4203title and date. You can select up to 25 meetings for this; past that, select
4204fewer meetings and copy again. Once it finishes, you're told how many
4205transcripts were copied, and separately how many had no transcript to offer
4206or failed to load.
4207
4208On the calendar, select the blocks you want and pick **Copy transcripts**
4209from the right-click menu — the same copy, from the other screen.
4210
4211## Who can do this
4212
4213- **One meeting at a time** — anyone who can open the meeting. There is no
4214  separate permission for it beyond being able to see the meeting at all.
4215- **A whole selection at once** — this needs the *copy many transcripts at
4216  once* capability, which an administrator grants. Without it the clipboard
4217  icon is not in the toolbar and the calendar menu does not offer it, and
4218  copying one meeting at a time still works as normal.
4219
4220## If copying is paused for your account
4221
4222Copying ten different transcripts in one day stops further copying until an
4223administrator lifts it. While it is paused, the meetings toolbar and the
4224calendar's right-click menu stop offering to copy at all, and **Copy
4225Transcript** on a meeting page — or **Copy transcript so far** in a live
4226room — tells you copying is paused for your account and that an
4227administrator can lift it, rather than copying.
4228
4229It suspends copying and nothing else. You sign in, open meetings, read
4230transcripts, comment, share and work exactly as before. Ask an administrator
4231to lift it; what they do is
4232[Lift a transcript copying pause](/help/admin/transcript-copying).
4233
4234Copying the same transcript twice counts once. The count is of *different*
4235meetings, and it resets each day.
4236`,Zxe=`---
4237title: Delete a meeting
4238summary: Hide a meeting so it disappears from every list, or nuke it to destroy the recording for good.
4239requires: [meetings.hide_own, meetings.nuke]
4240surfaces: [/meetings/$meetingId]
4241testids: [nuke-alarm, nuke-confirm-title]
4242aka:
4243  - nuke
4244  - nuke a meeting
4245  - delete the recording
4246  - get rid of a meeting
4247  - hide a meeting
4248  - remove a meeting
4249  - trash a meeting
4250  - meeting I said something in
4251questions:
4252  - Can I delete a meeting I was in but didn't record?
4253  - Does deleting a meeting delete its action items?
4254  - Can I get a deleted meeting back?
4255  - What's the difference between hiding and nuking?
4256shots:
4257  - id: delete-corner-button
4258    route: /meetings/$demoMeetingId
4259    as: [editor, admin]
4260    callout: "[data-testid=nuke-alarm]"
4261  - id: delete-dialog
4262    route: /meetings/$demoMeetingId
4263    as: [editor, admin]
4264    open: "[data-testid=nuke-alarm]"
4265    callout: "[data-testid=nuke-confirm-title]"
4266verified: { by: Jas, on: 2026-09-05 }
4267order: 60
4268---
4269
4270Two things can happen to a meeting you want gone, and they are not the same
4271button. **Hiding** takes it out of every list but keeps everything, so you can
4272bring it back. **Nuking** destroys the recording and the transcript. There is no
4273undo.
4274
4275## Where the button is
4276
4277Open the meeting. The delete control is the small round button in the
4278**bottom-right corner** of the page. It is deliberately quiet — it glows when
4279you move towards it — because it does something serious. Press it to open the
4280delete dialog, which shows the meeting's title so you can be sure you have the
4281right one.
4282
4283You will only see the button if you are allowed to delete this meeting. If it
4284is not there, the section below explains who is.
4285
4286## Hide the meeting
4287
4288Press **Hide**. The meeting disappears from Meetings, Pulse, search, Luna's
4289answers and every other place it appeared — for everyone, not just you.
4290Nothing is destroyed. An administrator can restore it from **Deleted meetings**
4291in the admin console, and it comes back exactly as it was.
4292
4293Hide is the right choice when a meeting was recorded by mistake, when it
4294belongs somewhere it should not be, or when you want it out of the way while a
4295decision is made.
4296
4297## Nuke the meeting
4298
4299Nuking is permanent. The recording, the transcript and the summary are
4300destroyed and cannot be recovered. A tombstone stays behind. Anything that
4301linked to the meeting — a bookmark, a comment, a moment shared to Pulse — shows
4302*"this meeting was deleted"* instead of breaking.
4303
4304To nuke, you have to **type the meeting's exact title** into the box. The
4305button stays disabled until what you typed matches. This is not a formality:
4306it is the moment to check you have the right meeting, because after this
4307nothing brings it back.
4308
4309## Who can do this
4310
4311- **Hide** — anyone who **was in the meeting** and holds the *hide own
4312  meetings* capability, which every editor has. You cannot hide a meeting you
4313  were not part of.
4314- **Nuke** — administrators only, and only for meetings your organization
4315  owns. Being in the meeting is not enough.
4316
4317If you can hide but not nuke, the dialog shows only the Hide section.
4318
4319## What happens to the rest
4320
4321- **Action items and RAID entries** created from the meeting are not deleted
4322  either way. They keep their link to the meeting; if it was nuked, the link
4323  shows the tombstone.
4324- **Moments** you shared from the meeting follow it. A hidden meeting's
4325  moments are hidden; a nuked meeting's moments show the tombstone.
4326- **Bookmarks and tags** on it are kept. If you can no longer open the meeting,
4327  it stops showing in your Library, and comes back if the meeting is restored.
4328
4329## Get a hidden meeting back
4330
4331Administrators: open the **admin console**, then **Deleted meetings**. Each
4332row says whether it was hidden or nuked, by whom, and when. Hidden meetings
4333have a **Restore** action. Nuked ones do not.
4334`,Jxe=`---
4335title: Filter the meetings list
4336summary: Narrow Meetings by status, reviewer, attendee, date, duration or bookmark, then sort what's left.
4337surfaces: [/meetings]
4338aka:
4339  - filter meetings
4340  - search meetings
4341  - find a meeting
4342  - sort meetings
4343  - meetings by date
4344  - meetings by person
4345  - meetings I wasn't in
4346  - meetings without me
4347  - other people's meetings
4348questions:
4349  - How do I find meetings I attended with a specific person?
4350  - How do I see meetings I wasn't in?
4351  - How do I see only meetings that still need review?
4352  - Can I filter meetings by how long they ran?
4353  - How do I sort meetings by title instead of date?
4354order: 20
4355verified: { by: Jas, on: 2026-09-15 }
4356---
4357
4358Above the meetings list is a row of dropdowns, each narrowing what shows
4359below. They combine — picking a status and a date range applies both.
4360
4361**Status** filters by review state: **All**, **Not started**, **In review**
4362or **Submitted**; pick more than one to match any of them. The reviewer
4363dropdown filters by who a meeting is assigned to — **All reviewers**,
4364**Assigned to me**, **Unassigned**, or a specific person you search for.
4365Beside it, the attendees control lets you pick one or more people and shows
4366only meetings they were in.
4367
4368**My participation** answers the same question about you: **Everyone's
4369meetings**, **Meetings I was in**, or **Meetings I wasn't in**. It reads the
4370invite list plus everyone the recording resolved to a person, so a meeting
4371counts as yours whether you were invited or turned up. It is not a record of
4372whether you joined the call. The same control is on Pulse, where the choice
4373travels in the address — a filtered Pulse view can be shared as a link.
4374
4375**Meetings I wasn't in** never widens what you can see. It narrows the
4376meetings you already have access to down to the ones held without you.
4377
4378**Date** opens a popover with quick picks — **All Time**, **Today**, **This
4379Week**, **This Month**, **Last 30 Days** — or **Custom range**, where you pick
4380two dates on the calendar and press **Apply**. **Duration** narrows by how
4381long a meeting ran: **Short** (under 30 minutes), **Medium** (30–60 minutes)
4382or **Long** (over an hour). **Bookmark** shows **All Meetings**,
4383**Bookmarked** only, or **Not Bookmarked** only.
4384
4385**Sort by** reorders the list: newest or oldest first, longest or shortest
4386duration, or title A–Z. Sorting by newest or oldest is what groups the list
4387into headings like *Today* and *This Week* — every other sort shows a flat
4388list instead.
4389
4390Once anything is set, a **Reset** button appears beside the dropdowns to
4391clear every filter back to its default in one press. Filters stay as you left
4392them if you open a meeting and come back, but reset the next time you open
4393Meetings in a new browser tab.
4394`,Qxe=`---
4395title: The Meetings page
4396summary: Every meeting your organization can see, live meetings happening now, and what's coming up, all in one list.
4397requires: [meetings.view]
4398surfaces: [/meetings]
4399aka:
4400  - meetings list
4401  - all meetings
4402  - my meetings
4403  - the recordings page
4404  - past meetings
4405  - meeting history
4406questions:
4407  - Where do I find a meeting I was in last week?
4408  - What is the Live Now section?
4409  - Can I switch between a card view and a table view?
4410  - What do the icons on a meeting card mean?
4411shots:
4412  - id: meetings-list
4413    route: /meetings
4414    as: [viewer, editor, admin]
4415order: 10
4416verified: { by: Jas, on: 2026-09-15 }
4417---
4418
4419Meetings lists every recording your organization can see, with anything
4420happening right now at the top and what's coming up just below it.
4421
4422![The Meetings page](shot:meetings-list)
4423
4424## What's on the page
4425
4426A meeting that is being recorded right now appears in a **Live Now** section
4427with a pulsing **LIVE** badge — open it to watch and follow along in real
4428time. Below that, **Upcoming Meetings** shows what's on the calendar next.
4429
4430The list itself is every finished meeting, searchable from the box at the
4431top. Switch between a card layout and a table with the two buttons beside the
4432search box — Luniko remembers which one you last used. Sorted by newest or
4433oldest, meetings are grouped under headings like *Today*, *This Week* and
4434*Last Month*; every other sort shows one flat list.
4435
4436Each card or row carries the meeting's date, its duration, a badge for
4437whether it has been reviewed, and three small icons you can hover for
4438details: total RAID entries and action items (and how many of each are
4439shortlisted or submitted), the meeting's tags, and its participants. Press
4440**Start** to open it.
4441
4442## Selecting more than one
4443
4444Hover a card (or a table row) to reveal its checkbox. Selecting one or more
4445meetings opens a floating toolbar with actions that apply to all of them at
4446once — copying their transcripts and bookmarking, among others. See
4447[Copy the transcript](/help/meetings/copy-the-transcript) and
4448[Make a bookmark](/help/bookmarks/make-a-bookmark).
4449
4450## Narrowing the list
4451
4452The row of dropdowns above the list — status, reviewer, attendees, date,
4453duration, bookmark and sort — is covered in
4454[Filter the meetings list](/help/meetings/filter-the-meetings-list).
4455`,Xxe=`---
4456title: Change the playback speed
4457summary: Speed up or slow down a recording using the video player's own controls, or skip in ten-second jumps.
4458surfaces: [/meetings/$meetingId]
4459aka:
4460  - playback speed
4461  - speed it up
4462  - watch faster
4463  - slow down the video
4464  - skip ahead
4465  - rewind 10 seconds
4466  - full screen
4467  - skip buttons disappear in full screen
4468questions:
4469  - How do I watch a meeting recording faster?
4470  - Can I skip forward or back in a recording?
4471  - Where is the speed setting on the video player?
4472  - Why do the skip buttons disappear in full screen?
4473order: 90
4474---
4475
4476The recording on a meeting's page plays in your browser's own video player,
4477so its speed control is wherever your browser puts one — most browsers offer
4478it from the player's control bar or its settings menu, letting you slow a
4479recording down or speed it up.
4480
4481Hovering the video also reveals round buttons over the player: two skip the
4482recording back or forward **10 seconds**, and a play/pause button sits
4483between them. They fade away as soon as you move off the player, so they're
4484there when you need to jump past a stretch of small talk and out of the way
4485otherwise.
4486
4487## Full screen
4488
4489To watch full screen, use the **Full screen** button that appears in the
4490top-right corner of the video when you hover it; press it again to exit. The
4491skip buttons stay on screen in full screen.
4492
4493In Chrome and Edge this replaces the browser's own full-screen button. In
4494Safari and Firefox the browser's own button is still offered, and full screen
4495entered that way hides the skip buttons.
4496
4497Both controls work whether the recording is playing or paused, and neither
4498changes anything about the meeting itself — they only affect how you're
4499watching it right now.
4500
4501<!-- VERIFY: confirm which browsers' native video controls this recording
4502actually offers a speed setting in, so this article can point at it more
4503specifically rather than "most browsers". -->
4504`,e0e=`---
4505title: Mark a meeting private
4506summary: Flag a meeting you took part in as private, which overrides every other capability except a break-glass session.
4507requires: [meetings.set_private]
4508surfaces: [/meetings/$meetingId]
4509aka:
4510  - private meeting
4511  - mark it private
4512  - make my meeting private
4513  - lock a meeting down
4514  - private flag
4515  - hide from everyone including admins
4516questions:
4517  - How do I make a meeting private?
4518  - Does a private meeting hide it from administrators too?
4519  - What's the difference between a private meeting and hiding a meeting?
4520  - Can anyone see a meeting I marked private?
4521order: 110
4522verified: { by: Jas, on: 2026-09-15 }
4523---
4524
4525Marking a meeting **private** is the strongest visibility setting a meeting
4526can carry. Where audiences and grants (see
4527[Who can see a meeting](/help/meetings/who-can-see-a-meeting)) decide who gets
4528*added*, private overrides all of that at once: once a meeting is flagged
4529private, no capability opens it for anyone.
4530
4531<!-- VERIFY: where the private flag is set on the meeting page, and what it looks like once applied -->
4532
4533The one exception is a break-glass session — an emergency access mode
4534platform operators can start, which is designed to see through every other
4535restriction in the product, including this one.
4536
4537## Who can do this
4538
4539Anyone who **was in the meeting** can mark it private. You do not need an
4540administrator role, and it works even on a meeting your own organization does
4541not own — the same participant rule that governs
4542[hiding a meeting](/help/meetings/delete-a-meeting).
4543
4544Being able to mark a meeting private does not by itself let you undo it on
4545someone else's meeting;
4545 it only reaches meetings you were part of.
4546`,t0e=`---
4547title: Review suggested redactions
4548summary: Approve or reject the passages people have asked to take off a meeting's record.
4549requires: [meetings.redact]
4550surfaces: [/admin, /meetings/$meetingId]
4551aka:
4552  - approve a redaction
4553  - redaction queue
4554  - redaction inbox
4555  - pending redactions
4556  - reject a redaction
4557  - off the record requests
4558  - suggested redactions
4559questions:
4560  - Where do I see redactions waiting for me?
4561  - What happens when I approve a redaction?
4562  - What happens to action items when I approve a redaction?
4563  - Can I undo an approved redaction?
4564order: 66
4565---
4566
4567When someone suggests taking a passage off a meeting's record, it waits for a
4568reviewer. As a reviewer, you approve it — removing the passage for good — or
4569reject it, which puts it back as though nothing happened.
4570
4571## Where suggestions arrive
4572
4573You get a notification for each suggestion on a meeting you can open, and it
4574takes you straight to the passage on that meeting's **Transcript** tab. For a
4575suggestion made while the meeting is still live, it opens the live room
4576instead; if the meeting has ended by the time you follow it, you land on the
4577finished meeting's passage.
4578
4579Every suggestion across all meetings is also listed in the **Redactions**
4580area of the admin console, described as *Suggested redactions waiting on a
4581decision, across every meeting.* Each row shows the meeting, the time range,
4582who suggested it and when, and the suggested words. **Open in meeting** takes
4583you to it in context. When there is nothing left, it reads *Nothing waiting
4584for review.*
4585<!-- VERIFY: a reviewer who holds no other admin-console capability cannot open the admin console today, so for them the notification is the only way in. -->
4586
4587## Decide on the transcript
4588
4589On the transcript you see a pending passage's real words, marked
4590**Pending** and shaded amber, with one **Approve** and **Reject** at the end
4591of it however many sentences it covers. Nobody else sees those words while
4592it waits.
4593
4594You can also watch the recording while you decide. Everyone else sees *This
4595video is being processed* in place of the video until the suggestion is
4596decided, but a reviewer gets the player, so you can check the moment the
4597suggestion points at.
4598
4599A suggestion made during a live meeting can be decided while the meeting is
4600still going. In the live room it shows as a **Pending** stamp with
4601**Approve** and **Reject** on its last line; the words themselves are hidden
4602there for you too, so read them in the **Redactions** list first.
4603
4604- **Reject** puts the passage back for everyone. Nothing was touched.
4605- **Approve** removes it from the transcript, the recording, the summary,
4606  search and shared moments. The player switches to *This video is being
4607  processed* for you too while the recording is re-cut. Action items and RAID entries raised during that
4608  stretch are deleted, along with their rows in the destination sheet.
4609
4610Some older action items carry no timestamp, so Luniko cannot tell whether
4611they came from the passage. When there are any, approving first opens a list
4612of them. Tick the ones to delete — an **In Smartsheet** badge marks those
4613that will also be removed from the sheet — then press **Approve**, or
4614**Approve and delete** with the count.
4615
4616An approval cannot be undone, and anything already sent
4617out, such as an emailed summary, cannot be recalled.
4618
4619## Redacting yourself
4620
4621As a reviewer, your own redactions take effect immediately — the controls
4622read **Redact** rather than **Suggest**, and the confirmation says *This is
4623permanent.* See [Take something off the record](/help/meetings/take-something-off-the-record).
4624
4625## Who can do this
4626
4627Reviewing is not part of any role, administrators included. Your
4628organization grants it to named people one at a time. You see suggestions
4629only for meetings you could already open.
4630`,n0e=`---
4631title: Copy or email the summary
4632summary: Take the meeting's summary and its submitted action items and RAID entries to your clipboard, or open it as an Outlook draft ready to review and send.
4633surfaces: [/meetings/$meetingId]
4634aka:
4635  - send summary
4636  - recap email
4637  - send recap
4638  - email the summary
4639  - email the recap
4640  - copy the summary
4641  - summary button
4642questions:
4643  - How do I send a recap of a meeting to its attendees?
4644  - What does the summary email include?
4645  - Where did the Send Summary button go?
4646  - Can I get the summary without connecting Microsoft?
4647  - Who does the summary get sent to?
4648order: 57
4649verified: { by: Jas, on: 2026-09-15 }
4650---
4651
4652One **Summary** button on the meeting page does both. Pressing it copies the
4653meeting's summary to your clipboard. The caret beside it opens a menu with
4654the two options by name: **Copy to clipboard** and **Email it**.
4655
4656Either way you get the same thing — the meeting's summary, its key points,
4657and the action items and RAID entries that have already been **submitted**
4658from it. The two read the same text, so the clipboard and the draft can never
4659say different things about a meeting.
4660
4661## Copy to clipboard
4662
4663The default, because it works for everyone and needs nothing connected. The
4664summary copies as formatted text with a plain-text version alongside it, so
4665it pastes cleanly into Teams, a document, or any mail client.
4666
4667## Email it
4668
4669**Email it** creates a draft in your own Outlook, addressed to the meeting's
4670participants, and opens it. It is a draft rather than a sent message, so you
4671can edit or add to it before it goes out — nothing is sent without you
4672reviewing it first.
4673
4674If your browser blocks the draft from opening as a pop-up, a notification
4675offers a button to open it instead.
4676
4677## If emailing is blocked
4678
4679Emailing needs a connected Microsoft account, and the draft can be refused
4680for three reasons. Each one says which, and each one points at copying as the
4681way out:
4682
4683- **Your Microsoft account isn't connected.** Connect it from Settings — see
4684  [Connect your Microsoft account](/help/profile-settings/connect-microsoft).
4685- **The connection expired.** Reconnect it from the same place.
4686- **Your organization hasn't approved it.** Creating a draft in your Outlook
4687  is a permission an administrator approves from **Settings › Modules**. You
4688  cannot grant it yourself, and the message says so rather than 
4688implying you
4689  can.
4690
4691Copying works in all three cases.
4692`,r0e=`---
4693title: Share a meeting
4694summary: Give named people access to a meeting they weren't part of, with an optional note, without changing who else can see it.
4695surfaces: [/meetings/$meetingId, /calendar]
4696aka:
4697  - share a meeting
4698  - give someone access
4699  - add a person to a meeting
4700  - shared with
4701  - who has access
4702  - send someone a meeting
4703  - shared by
4704  - share before the meeting
4705questions:
4706  - How do I let a colleague see a meeting they weren't in?
4707  - Can I add a note when I share a meeting?
4708  - How do I stop sharing a meeting with someone?
4709  - Does sharing a meeting change who else can see it?
4710  - How do I know who a meeting has been shared with?
4711  - Can I share a meeting before it has happened?
4712order: 50
4713---
4714
4715Press **Share** next to a meeting's title to open it to more people, without
4716touching anything else about who can see it.
4717
4718## Pick people and say something
4719
4720Type a name or email into **Add people…**. Each suggestion shows the
4721person's picture and email under their name, so two people with the same
4722name are easy to tell apart. The list stays the same size as you type, so
4723nothing below it moves.
4724
4725Choosing someone adds them as a chip above the search box; press the chip's
4726**X** to take them back off. Nothing is shared until you press **Share**.
4727Below the list, **Message · optional** lets you add a note — *"Say something
4728about this meeting…"* — and the line beside the button counts how many
4729people will be notified.
4730
4731Anyone already in the meeting shows greyed out as *"in the meeting"*: they
4732can see it already. The exception is a meeting marked **Luniko Private**,
4733which hides the meeting from its own attendees — there they appear as
4734ordinary rows, so you can share it back with the ones who should have it.
4735
4736## What the other person sees
4737
4738They get a notification that carries your note, if you wrote one. With a
4739note, the meeting's page also shows them a **Shared by *(your first name)***
4740chip near the title; pressing it shows who shared it, when, and the note.
4741
4742## Who it has been shared with
4743
4744Once you've shared with anyone, the button reads **Shared with** and a count,
4745and the popover gains a **Shared with** list at the top. A small speech
4746bubble beside a name means you sent them a note — hover it to read it. The
4747**X** beside each person stops sharing with them.
4748
4749## Share a meeting before it happens
4750
4751On the **Calendar**, right-click an upcoming meeting and share it the same
4752way. The dialog says *They get it once the meeting is recorded.* — the people
4753you pick, and your note, are waiting on the recording as soon as it arrives.
4754You can do this for meetings on your own connected calendar.
4755
4756## Who can do this
4757
4758Anyone who can see the meeting can share it. This is a lighter door than the
4759audience settings: it adds specific people rather than opening the meeting
4760to a whole group. For the group-level settings, see
4761[Who can see a meeting](/help/meetings/who-can-see-a-meeting).
4762`,o0e=`---
4763title: Share a moment
4764summary: Copy a link to a meeting that opens right at the second you were watching, ready to paste into a message.
4765requires: [meetings.clip]
4766surfaces: [/meetings/$meetingId]
4767aka:
4768  - share a moment
4769  - clip a moment
4770  - moment link
4771  - timestamped link
4772  - share this part
4773  - share this bit
4774questions:
4775  - How do I share the exact moment in a recording I was watching?
4776  - Does the link I share open at the right time in the video?
4777  - What does Share Moment actually copy?
4778order: 55
4779verified: { by: Jas, on: 2026-09-15 }
4780---
4781
4782**Share Moment**, beside the video, copies a link to your clipboard so
4783whoever you send it to lands on this exact meeting.
4784
4785Pause the video first and the button relabels itself with the timestamp —
4786**Share Moment (mm:ss)** — and the link it copies opens the meeting at that
4787second and starts playing. Press it without having paused anywhere and it
4788copies a plain link to the meeting instead. Either way, a confirmation
4789appears once the link is on your clipboard, ready to paste into a chat,
4790email, or anywhere else.
4791
4792<!-- VERIFY: sharing a moment needs the clip-a-meeting capability, but this
4793button is not currently limited to holders of it — confirm whether that
4794gating still needs to be added, or whether the requirement in this article
4795should instead describe something else on this page. -->
4796
4797## Who can do this
4798
4799Sharing a moment needs the *clip a meeting* capability, which every editor
4800has.
4801`,i0e=`---
4802title: Shortlist, choose a destination, and submit
4803summary: Fill in a shortlisted item's details, approve it, then publish it out to its destination.
4804module: meetings
4805surfaces: [/meetings/$meetingId]
4806aka:
4807  - shortlist an action item
4808  - approve an action item
4809  - submit to smartsheet
4810  - publish to destination
4811  - push an action to the sheet
4812  - destination
4813questions:
4814  - How do I approve an action item?
4815  - What does Publish do?
4816  - How do I change which sheet an action item goes to?
4817  - Can I add an action item myself instead of using a suggested one?
4818order: 150
4819verified: { by: Jas, on: 2026-09-15 }
4820---
4821
4822Once an item is on the **Shortlisted** tab — from a suggestion you kept (see
4823[Review AI-suggested items](/help/meetings/suggested-items)) or one you add
4824yourself with **Add New Action Item** — press the review icon to open it, or
4825edit a cell directly in the table.
4826
4827The review dialog asks for **Task Name**, **Responsible Doer** and **Due
4828Date**, all required, plus a **Destination** — the sheet this item will be
4829submitted to — and an **Additional Note**. Checking **Done** here logs the
4830item as already complete; see
4831[The Done checkmark](/help/meetings/the-done-checkmark).
4832
4833Press **Save** to keep your changes without approving, or **Save and
4834Approve** to mark it ready to go out. You can also approve or unapprove
4835directly from the table without opening the dialog.
4836
4837Once at least one item is approved, a **Publish N items to destinations**
4838button appears above the list. Pressing it sends every approved item to its
4839destination at once; each shows *"Publishing…"* while in flight and then
4840moves to the **Published** tab, where a published item offers **View in
4841Smartsheet** to open its row directly.
4842
4843The same flow — shortlist, fill in details, approve, publish — works
4844identically for RAID entries under **Risks, Issues, Decisions**.
4845
4846## Getting a new destination
4847
4848If the destination you need is not in the list, someone with the right to
4849create one has to add it — contact your administrator rather than trying to
4850create it from here.
4851`,a0e=`---
4852title: Review AI-suggested items from a meeting
4853summary: Luna drafts action items and RAID entries from what was said in a meeting, for you to keep or discard.
4854module: meetings
4855surfaces: [/meetings/$meetingId]
4856aka:
4857  - AI generated items
4858  - suggested action items
4859  - AI-suggested items
4860  - what Luna picked up
4861  - drafted actions
4862  - drafted RAID entries
4863questions:
4864  - Where do the action items on a meeting come from?
4865  - Did I write this action item, or did the AI?
4866  - Can I get rid of a suggested item I don't want?
4867order: 140
4868verified: { by: Jas, on: 2026-09-15 }
4869---
4870
4871Below the summary of a meeting, the **Actions** and **Risks, Issues,
4872Decisions** tabs each open to a **Generated** tab: items drafted from the
4873meeting's content, waiting for a decision. Nothing here has been kept
4874anywhere yet.
4875
4876Each generated item shows the title and description Luna wrote for it. Read
4877it, then either:
4878
4879- Press **Shortlist** to keep it and move it forward, or
4880- Delete it, if it's not worth acting on.
4881
4882An item you shortlist moves to the **Shortlisted** tab, where you fill in the
4883rest of its details before it goes anywhere further — see
4884[Shortlist, choose a destination, and submit](/help/meetings/shortlist-and-submit).
4885Nothing generated here is sent anywhere on its own; shortlisting is the first
4886step, not the last.
4887
4888If the tab shows *"No action items generated"* or *"No RAID entries
4889generated,"* Luna did not draft anything from this meeting's content.
4890
4891## If you only see Published
4892
4893Some accounts are restricted to items that have already gone out. If a
4894meeting shows only a **Published** tab and no **Generated** or **Shortlisted**
4895tab, that is why — you cannot see or act on drafts here.
4896`,s0e=`---
4897title: Tag an item with its project area
4898summary: Mark which stream of the project a suggested action or RAID entry belongs to, using the same tags the destination sheet uses.
4899module: meetings
4900surfaces: [/meetings/$meetingId]
4901aka:
4902  - ERP project tags
4903  - project tags
4904  - tags column
4905  - which project is this for
4906  - smartsheet tags
4907questions:
4908  - What are the Tags on an action item for?
4909  - Do the tags on an item match the sheet's own tags?
4910  - Can an item have more than one tag?
4911order: 160
4912verified: { by: Jas, on: 2026-09-15 }
4913---
4914
4915The **Tags** field on a shortlisted, published or discarded item marks which
4916stream of the wider project it belongs to — options like *Standards
4917Project*, *Salesforce*, *Cutover*, *Testing* or *Training*. These are the same
4918values the destination sheet itself uses in its own Tags column, so an item
4919tagged here reads the same way once it lands there.
4920
4921Press the **Tags** cell to open the picker and choose one or more. An item can
4922carry several tags at once — for example, something that touches both
4923*Cutover* and *Testing*.
4924
4925Tagging is optional. An untagged item is not blocked from being approved or
4926published; it arrives at its destination with no tag, and someone looking at
4927the sheet later has to work out where it belongs from its description
4928instead.
4929
4930RAID entries carry a second, separate field, **PBI Tags**, for a different
4931kind of classification — that one is not covered here.
4932`,l0e=`---
4933title: Take something off the record
4934summary: Pause the notetaker while a meeting is live, or ask for a passage to be removed from the transcript, recording and summary afterwards.
4935module: meetings
4936surfaces: [/meetings/live/$meetingId, /meetings/$meetingId]
4937aka:
4938  - off the record
4939  - pause the notetaker
4940  - pause recording
4941  - redact
4942  - strike that
4943  - delete what I just said
4944  - scrub the transcript
4945  - remove part of a meeting
4946  - I shouldn't have said that
4947  - redaction log
4948questions:
4949  - How do I stop the notetaker listening for a minute?
4950  - How do I get something I said taken out of the transcript?
4951  - Who approves a redaction?
4952  - Can a redaction be undone?
4953  - What does "Off the record" in a transcript mean?
4954  - Who can see what was redacted?
4955order: 65
4956---
4957
4958There are two ways to keep something out of a meeting's record. While the
4959meeting is live you can **pause the notetaker**, so nothing is captured at
4960all. After something has been said, you can **redact** it — or, if you are
4961not a reviewer, **suggest** a redaction for a reviewer to approve.
4962
4963## Pause the notetaker in the live room
4964
4965In the live room, the red **LIVE** badge beside the meeting's title is the
4966pause button; hovering it reads **Pause recording**. Press it and it turns
4967into a dashed **PAUSED** badge, and a red
4968bar across the room reads **Off the record · the notetaker is not listening**
4969with a timer showing how long it has been paused. Press **PAUSED** to start
4970recording again.
4971
4972Nothing said while the notetaker is paused reaches the transcript, the
4973summary or the recording. The gap shows in the transcript as a **Redacted**
4974stamp marked *notetaker was paused*.
4975
4976## Redact something that was already said
4977
4978Press the **Redact** button (the crossed-out eye) in the live room's header,
4979or at the top of a finished meeting's **Transcript** tab. It offers:
4980
4981- **Redact last 30 seconds**, **Redact last minute** and **Redact last 2
4982  minutes** — in the live room, counted back from now; on a finished meeting,
4983  counted back from where the player is. These act as soon as you pick one,
4984  and a message confirms the time range that was taken out.
4985- **Redaction log** — every passage already taken off this meeting's record.
4986
4987To take out particular sentences, drag across the transcript text, in the
4988live room or on a finished meeting. In the live room you can also hover a
4989line and press **Redact** beside it to select that whole line. A bar opens
4990under the selection with the time range, the number of words, and **Redact**
4991and **Cancel**. In the live room the same bar also offers **Action**,
4992**RAID**, **Clip** and **Ask Luna** for the selected text.
4993
4994If you are not a reviewer, every label reads **Suggest** instead of
4995**Redact**, the bar says *This goes to an admin for approval.*, and a message
4996confirms it was *Sent for approval*. Your suggestion is hidden from everyone
4997except the reviewers straight away. If they reject it, the passage comes back
4998exactly as it was.
4999
5000## What a redaction removes
5001
5002Once a redaction is made or approved, the passage is removed from the
5003transcript, the recording's audio and video, the summary, search, and quotes
5004in shared moments. Action items and RAID entries raised during that stretch
5005are deleted too, including their rows in the destination sheet.
5006
5007**This is permanent.** A redaction cannot be undone.
5008
5009## What everyone else sees
5010
5011In the transcript, a redacted passage is replaced by a hatched **Redacted**
5012stamp. Hovering it shows how long the gap is. A suggestion still waiting for
5013a decision shows as a dashed **Pending** stamp — its text is hidden from
5014everyone but the reviewers.
5015
5016While a suggestion is waiting, the player shows *This video is being
5017processed* in place of the video, for everyone except the reviewers, who can
5018still watch it so they can judge the passage. While the recording is being
5019re-cut after a redaction, everyone sees that message, reviewers included. The
5020video comes back on its own when the work is done; there is no need to
5021refresh.
5022
5023In the re-cut recording, a redacted stretch is silent and shows a striped
5024card with a crossed-out eye and the word **Redacted**. Recordings redacted
5025before this card was introduced show a black frame reading *OFF THE RECORD*
5026instead.
5027
5028The **Redaction log** lists each passage's time range, the date, and whether
5029it was **Redacted**, **Paused**, still **Pending** or **Rejected**. When there
5030is nothing to list it reads *Nothing has been redacted.*
5031
5032\`\`\`luniko-if:meetings.view_redacted
5033You also see who made each redaction. That is all the log shows you: nobody
5034can read the redacted words, you included.
5035\`\`\`
5036
5037## Who can do this
5038
5039Anyone who can open the meeting or its live room can pause the notetaker and
5040suggest a redaction. Redacting straight away, and approving other people's
5041suggestions, is limited to a small number of reviewers your organization
5042names individually — see
5043[Review suggested redactions](/help/meetings/review-redactions).
5044`,c0e=`---
5045title: The Done checkmark
5046summary: Check Done to log an item as already complete, rather than as something still to do.
5047module: meetings
5048surfaces: [/meetings/$meetingId]
5049aka:
5050  - Done checkbox
5051  - mark as done
5052  - mark as not done
5053  - already completed
5054  - logging a finished action
5055questions:
5056  - What does checking Done do to an action item?
5057  - Does Done mean the action still needs to be finished?
5058  - Where do I see whether an item was marked Done?
5059order: 170
5060verified: { by: Jas, on: 2026-09-15 }
5061---
5062
5063**Done** is a checkbox on an action item or RAID entry, in the review dialog
5064and as its own column in the Shortlisted, Published and Discarded tables.
5065Checking it means the opposite of what an unchecked item means: rather than
5066something that still needs doing, it records that the work was already
5067finished by the time it was logged.
5068
5069Use it when a meeting surfaces something that is already handled — noting it
5070for the record, not assigning it as new work. Leave it unchecked for anything
5071that still needs to happen.
5072
5073An item marked Done shows a **Done** badge on its card. The checkbox itself
5074toggles it directly in the table too, without opening the item.
5075
5076Done is independent of **Responsible Doer** and **Due Date** — an item can be
5077logged as Done with both fields still filled in, since those describe who
5078would have owned the work and by when, not whether it is still outstanding.
5079It also has nothing to do with whether the item has been approved or
5080published: an item can be Done and still sitting unshortlisted, or approved
5081and not yet Done.
5082`,u0e=`---
5083title: Change who can see a meeting
5084summary: Widen a meeting beyond its invitees to a whole audience, or lock it down to a guest list.
5085requires: [meetings.manage_audience]
5086surfaces: [/meetings/$meetingId, /calendar]
5087aka:
5088  - audience
5089  - who can see this
5090  - meeting visibility
5091  - GFS public
5092  - VIPs
5093  - open a meeting up
5094  - meeting grants
5095  - who set this
5096  - before the meeting
5097questions:
5098  - Who can see a meeting by default?
5099  - How do I open a meeting up to a wider audience?
5100  - What does locking a meeting to its guest list do?
5101  - Can I let an audience read a meeting without watching the video?
5102  - Can I set who sees a meeting before it is recorded?
5103  - Who changed who can see this meeting?
5104order: 90
5105---
5106
5107By default a meeting is visible only to the people who were invited to it or
5108attended it. The **Who can see this** control, next to the meeting's title,
5109widens that — or, for one setting, narrows it.
5110
5111Press the button (it shows the current setting, such as "Invitees only" or a
5112count of audiences) to open the menu. It offers a set of presets:
5113
5114- **Invitees only** — the default: only the people invited to or in the
5115  meeting.
5116- **Luniko Private** — hidden from the people in it. This is the one preset
5117  that *removes* access: only the people your organization lets read every
5118  record, and anyone you share it with individually, can open it. To give one
5119  attendee access back, [share it with them](/help/meetings/share-a-meeting).
5120- **GFS Private**, **Luniko Public**, **GFS Public** and **GFS Public +
5121  Video** — each opens the meeting to a wider audience on top of its
5122  invitees, with the last two also naming whether that audience may watch the
5123  recording, not only read about it.
5124
5125If a meeting's setting matches none of these exactly, the button shows a
5126count of audiences instead of a preset name — the result of a custom
5127combination rather than a mislabelled preset.
5128
5129Once anyone has changed the setting, the menu shows **Set by *(their
5130name)*** and how long ago under **Who can see this**. The same line appears
5131when you hover the setting's badge on a meeting card.
5132
5133When the meeting has any AI-detected risks, they are listed at the top of this
5134same menu before the visibility options, as a heads-up before you widen
5135access.
5136
5137## Before the meeting is recorded
5138
5139On the **Calendar**, right-click an upcoming meeting and open **Who can see
5140this**. The same presets are there, with the current one ticked, and your
5141choice is applied the moment the recording arrives.
5142
5143## Who can do this
5144
5145Only people holding the capability to control who can see a meeting can open
5146or use this menu — everyone else's meeting page shows no such button at all.
5147This is a separate capability from being able to watch the meeting yourself:
5148setting who else can see it does not require being able to see it.
5149`,d0e=`---
5150title: Why some meetings show video and some don't
5151summary: Reading a meeting's transcript and watching its recording are two different permissions, and they don't always come together.
5152surfaces: [/meetings/$meetingId]
5153aka:
5154  - no video
5155  - missing video
5156  - can't watch the recording
5157  - video not showing
5158  - why is there no video
5159  - blank video player
5160  - video won't play abroad
5161  - can't watch while travelling
5162  - video processing
5163questions:
5164  - Why does a meeting have a transcript but no video?
5165  - Why can I read a meeting but not watch it?
5166  - Who decides if I can see a meeting's recording?
5167  - Will I ever get access to a meeting's video?
5168  - Can I watch a recording from outside the US or Canada?
5169order: 30
5170verified: { by: Jas, on: 2026-09-15 }
5171---
5172
5173Opening a meeting always gets you its transcript, summary and action items if
5174you're allowed to see it at all — the recording is a separate question, and
5175the answer can be no even when everything else is a yes.
5176
5177## What decides it
5178
5179If you were part of the meeting — invited or attending — or someone shared it
5180with you directly, you can watch the recording, no other condition needed.
5181
5182Beyond that circle, whether you can press play depends on your
5183organization's audience settings for that meeting. An administrator can open
5184a meeting to a wider group so they can read what was discussed without
5185necessarily letting that group watch it — reading and watching are set
5186separately, meeting by meeting. So a group might be allowed in on the
5187transcript and the action items while the recording itself stays closed to
5188them, and a different meeting might open both to the same group.
5189
5190Administrators can always watch every meeting their organization owns,
5191whichever group it was opened to.
5192
5193If a meeting shows a poster image with no player at all, this is almost
5194always why: you can read it, but the group you're in hasn't been given the
5195video.
5196
5197## Watching from outside the USA and Canada
5198
5199Recordings play only for viewers in the USA and Canada. Everything else about
5200a meeting — the transcript, summary and action items — works from anywhere,
5201but outside those two countries the player cannot load the video, even for
5202someone who is allowed to watch it. This includes travelling, and connecting
5203through a VPN that exits in another country. Each playback link is also
5204signed and expires, so a copied video link stops working within two days.
5205<!-- VERIFY: the country restriction takes effect only on stages where the signed-link switch is turned on; confirm it is on in production before publishing. The player shows no dedicated message for a blocked country, so check in a browser what a viewer outside actually sees. -->
5206
5207## While a redaction is under review
5208
5209If someone has suggested taking a passage off the record, the player shows
5210*This video is being processed* until a reviewer decides, and again while the
5211recording is re-cut. Reviewers can keep watching while a suggestion waits. See
5212[Take something off the record](/help/meetings/take-something-off-the-record).
5213
5214For how those groups and their settings work, see
5215[Who can see a meeting](/help/meetings/who-can-see-a-meeting).
5216`,h0e=`---
5217title: Create a meeting from a mind map
5218summary: Open a pre-filled Outlook invite built from the nodes you selected.
5219surfaces: [/scratch-pad/map/$mapId]
5220aka:
5221  - create a meeting from a mind map
5222  - schedule a meeting from a mind map
5223  - turn mind map into a meeting invite
5224  - mind map to calendar invite
5225questions:
5226  - How do I schedule a meeting from a mind map?
5227  - Does the Meeting button on a mind map actually book the meeting?
5228order: 70
5229verified: { by: Jas, on: 2026-09-15 }
5230---
5231
5232Select the nodes you want to turn into a meeting, then press **Meeting** in
5233the toolbar. Like **Email**, it stays disabled until something is selected.
5234
5235This opens Outlook's event composer in a new window, pre-filled from the
5236nodes you picked, so you can review it, adjust the time and attendees, and
5237save it yourself. Nothing is scheduled on your calendar until you do — the
5238mind map only hands you a draft invite, it never books the meeting for you.
5239
5240Unlike [sending an email](/help/mindmaps/send-by-email), this doesn't need
5241your Microsoft account connected: the composer opens as an Outlook deep link
5242rather than through your mailbox.
5243`,m0e=`---
5244title: Create a mind map
5245summary: Start a blank canvas under Scratch Pad and grow it out one connected idea at a time.
5246surfaces: [/scratch-pad/map/$mapId]
5247aka:
5248  - mind map
5249  - mindmap
5250  - the map
5251  - brainstorm
5252  - brainstorming board
5253  - mind-elixir board
5254  - new map
5255  - idea map
5256  - scratch pad map
5257questions:
5258  - How do I create a mind map?
5259  - Where do mind maps live?
5260  - How do I add a node to a mind map?
5261  - Can I open a mind map that was drawn in a meeting?
5262shots:
5263  - id: mind-map-canvas
5264    route: /scratch-pad/map/$demoMapId
5265    as: [editor]
5266order: 10
5267---
5268
5269A mind map is a canvas of connected nodes that branch out from a single root
5270idea. It lives under **Scratch pad**, alongside your notes.
5271
5272## Start one
5273
5274Open Scratch pad and switch to the **Maps** tab in the sidebar. Press the
5275**New map** button (the plus icon at the top of the list). A map titled "New
5276Mind Map" opens straight away, with a single root node waiting for a name.
5277
5278## Build it out
5279
5280Select a node and press **Tab** (or **Insert**) to add a child underneath it.
5281Press **Enter** to add a sibling instead. To edit a node's text, select it and
5282press **F2**, or just start typing — either opens the label for editing;
5283**Enter** or **Tab** finishes, **Esc** cancels without saving.
5284
5285The canvas saves as you go: the toolbar shows **Saving...**, then **Saved**,
5286next to the keyboard-shortcuts button. If a save fails it shows **Error
5287saving** instead.
5288
5289Drag empty canvas to pan, hold **Space** and drag to pan without deselecting,
5290and scroll with **Mod** held to zoom. The **Center root** and **Fit to view**
5291buttons in the toolbar re-frame the map if you lose track of it.
5292
5293## Linking a map to a meeting
5294
5295A mind map you started from inside a meeting carries a chip in the toolbar —
5296**Linked to *(the meeting's title)*** — that takes you back to it. Opening a
5297mind map through that link, rather than through Scratch pad, shows it exactly
5298as it looked from the meeting.
5299
5300A map you drew separately can be linked afterwards: click **Link to meeting**
5301in the toolbar and pick the meeting. The list has **Past meetings** — ones
5302happening now first, then your recent ones — and **Upcoming meetings** from
5303your calendar, and you can search by title. Linking puts the map on
5304that meeting's page for everyone who can open the meeting, so you can only link
5305to meetings you can see yourself. The same control lets you move the map to a
5306different meeting or **Unlink from meeting**.
5307
5308### Prepare a map before the meeting
5309
5310To get a map ready ahead of time, right-click the meeting on the **Calendar**
5311and choose **Prepare a mind map**. That creates a map already linked to the
5312meeting and opens it; right-clicking the meeting again offers **Open mind
5313map**. You can also link an existing map to a meeting under **Upcoming
5314meetings**, and the chip then shows the meeting's date as well as its title.
5315
5316When the meeting starts, the map appears in its live room for everyone who
5317can see the meeting, and it stays on the meeting's page afterwards. It
5318belongs to that one occurrence, not to every meeting in a recurring series.
5319The chip keeps the title and date from when you linked it, so it does not
5320change if the meeting is moved.
5321
5322For the full key list, see [Mind map keyboard shortcuts](/help/mindmaps/shortcuts).
5323Once a map has ideas worth acting on, see
5324[Queue or create an action from a mind map](/help/mindmaps/queue-or-create-an-action).
5325`,p0e=`---
5326title: Export a mind map as PNG or Word
5327summary: Download the whole map as an image, or the outline as a Word document.
5328surfaces: [/scratch-pad/map/$mapId]
5329aka:
5330  - export mind map
5331  - download mind map
5332  - mind map to PNG
5333  - mind map to Word
5334  - save mind map as image
5335  - export mind map as docx
5336questions:
5337  - How do I export a mind map as an image?
5338  - How do I get a mind map into a Word document?
5339  - Does exporting a mind map include only the nodes I selected?
5340order: 80
5341verified: { by: Jas, on: 2026-09-15 }
5342---
5343
5344Press the **Download** icon in the toolbar to choose a format.
5345
5346## PNG
5347
5348Choosing **PNG** captures the entire map as an image and downloads it, named
5349after the map's title. The export always renders on a white background,
5350regardless of whether you're using dark or light mode on screen.
5351
5352## Word
5353
5354Choosing **Word** builds a \`.docx\` file with the map's title as a heading,
5355followed by the outline as a nested bulleted list — each node's children
5356indented one level further than their parent.
5357
5358If you have nodes selected, only those nodes and their descendants are
5359exported. With nothing selected, the export starts from the root's children,
5360so the whole map comes through without repeating the title as its own bullet.
5361
5362To copy an outline as plain text instead of a file, select the nodes and
5363press **Alt+C** — see
5364[Mind map keyboard shortcuts](/help/mindmaps/shortcuts).
5365`,f0e=`---
5366title: Queue or create an action from a mind map
5367summary: Mark ideas to turn into action items later, or fill them in right away.
5368surfaces: [/scratch-pad/map/$mapId]
5369aka:
5370  - queue an action
5371  - queue actions
5372  - create an action from a mind map
5373  - turn a node into an action item
5374  - queued nodes
5375  - convert idea to task
5376questions:
5377  - What's the difference between Queue Actions and Create Actions?
5378  - Why would I queue an action instead of creating it?
5379  - Can I undo queuing a node by mistake?
5380order: 50
5381verified: { by: Jas, on: 2026-09-15 }
5382---
5383
5384A mind map node can become an action item two ways, and they trade off speed
5385against completeness.
5386
5387## Create Actions
5388
5389Select one or more nodes and press **Create Actions** (**Alt+Shift+A**). This
5390opens the action items panel at once, with one row per node, pre-filled with
5391a task name and a note pointing back to the map. Fill in the rest — due date,
5392who owns it, which destination — before submitting. Use this when you have a
5393moment to complete the fields properly.
5394
5395## Queue Actions
5396
5397Select nodes and press **Queue Actions** (**Alt+Shift+Q**) instead, and
5398nothing opens. The nodes are marked for later, which is the point:
5399during a fast-moving conversation, you don't want to stop and fill in every
5400field for every idea. Once nodes are queued, the same button turns into
5401**Unqueue** for a selection that is already queued, so you can back one out.
5402
5403Queuing or unqueuing is undoable — press **Mod+Z** right after, and it
5404reverts, as long as no other edit to the map has happened in between.
5405
5406Once you have queued nodes, see
5407[Submit queued actions from a mind map](/help/mindmaps/submit-actions) for
5408how to turn them into real action items.
5409`,g0e=`---
5410title: Send a mind map by email
5411summary: Turn the whole map, or the nodes you have selected, into a formatted Outlook follow-up email.
5412surfaces: [/scratch-pad/map/$mapId]
5413aka:
5414  - email a mind map
5415  - send mind map notes by email
5416  - mind map follow up email
5417  - send selected nodes by email
5418  - email the whole map
5419questions:
5420  - How do I email part of a mind map?
5421  - How do I email the whole mind map?
5422  - Why did emailing my mind map open a blank Outlook draft?
5423  - Do I need to connect my email to send a mind map?
5424order: 40
5425---
5426
5427Open the **Share or export** menu in the toolbar. With nothing selected it
5428offers **Email the map**, which sends every node under the map's title. To
5429send only part of it, select those nodes first — click one, or
5430**Shift**/**Mod**-click to add more — and the item reads **Email the
5431selection** instead.
5432
5433This builds a formatted draft titled **Follow-up: *(the map's title)*** and
5434opens it in Outlook for you to address and send yourself. Nothing sends
5435automatically.
5436
5437If your browser blocks the Outlook window from opening on its own, a
5438notification appears with an **Open draft** button — press it to open the
5439same draft.
5440
5441If your Microsoft account is not connected, the draft still opens, but as
5442plain text rather than the formatted version, with a message telling you to
5443connect it. See
5444[Connect your Microsoft account](/help/profile-settings/connect-microsoft).
5445
5446To schedule a meeting from the selection instead, see
5447[Create a meeting from a mind map](/help/mindmaps/create-a-meeting-from-a-map).
5448`,y0e=`---
5449title: Share a mind map
5450summary: Send someone their own independent copy of a mind map.
5451surfaces: [/scratch-pad/map/$mapId]
5452aka:
5453  - share a mind map
5454  - send a copy of a map
5455  - copy a mind map to someone
5456  - duplicate a mind map
5457  - send my map to someone
5458questions:
5459  - How do I share a mind map with someone?
5460  - Does sharing a mind map let them edit mine?
5461  - Why don't I see a share button on this map?
5462order: 30
5463verified: { by: Jas, on: 2026-09-15 }
5464---
5465
5466Sharing a mind map hands someone their own copy of it, not a live view of
5467yours.
5468
5469## Send a copy
5470
5471Open the map and press the **Share2** icon in the toolbar (its tooltip reads
5472**Send a copy**). The **Send a copy** dialog opens with a search box and a
5473list of people in your organization. Search by name or email, check everyone
5474you want to send it to, and press **Send**. Each recipient gets an
5475independent copy — changes either of you makes afterward do not sync between
5476the two.
5477
5478## Who sees this button
5479
5480Sending a copy clones the map, which only the map's owner can do. If you
5481opened a mind map you did not create — for example one shown to you from
5482inside a meeting — you have a read-only view of it and the **Share2** button
5483does not appear.
5484
5485To send specific ideas instead of the whole map, see
5486[Send a mind map by email](/help/mindmaps/send-by-email).
5487`,b0e=`---
5488title: Mind map keyboard shortcuts
5489summary: Open the full shortcut list from inside any mind map with the ? key.
5490surfaces: [/scratch-pad/map/$mapId]
5491aka:
5492  - mind map shortcuts
5493  - keyboard shortcuts
5494  - hotkeys
5495  - mind map hotkeys
5496  - shortcut cheat sheet
5497  - keyboard help
5498questions:
5499  - What are the mind map keyboard shortcuts?
5500  - How do I add a child node with the keyboard?
5501  - How do I move between nodes without the mouse?
5502  - How do I exclude a node from a share with the keyboard?
5503order: 20
5504verified: { by: Jas, on: 2026-09-15 }
5505---
5506
5507Press **?** anywhere on a mind map to open the **Keyboard shortcuts** dialog.
5508Press it again, or close the dialog, to dismiss it. Everywhere else, **Mod**
5509means **⌘** on a Mac and **Ctrl** on Windows.
5510
5511The dialog is organized into tabs:
5512
5513- **Navigation** — arrow keys move the selection between nodes, **F1** centers
5514  the map, holding **Space** while dragging pans the canvas, and **Mod** plus
5515  scroll zooms.
5516- **Structure** — **Tab** or **Insert** adds a child node, **Enter** adds a
5517  sibling after the current node, **Shift+Enter** adds one before it, and
5518  **Mod+Enter** adds a parent. **Delete** or **Backspace** removes the
5519  selected node(s). **Mod+C / X / V** copy, cut and paste nodes; pasting text
5520  turns each line into its own child node, and pasting an image attaches it to
5521  the selected node. **Mod+click** adds a node to the selection or takes it
5522  out again; **Shift+click** selects every node from the last one you clicked
5523  to this one.
5524- **Editing** — **F2**, or typing any key, starts editing a node's label;
5525  **Enter** or **Tab** finishes it, **Esc** cancels. **Shift+Enter** inserts a
5526  line break inside a label, and **Mod+B / I / U** toggle bold, italic and
5527  underline.
5528- **Expand** — **Alt+Shift+1** through **9** expand to that depth and
5529  **Alt+Shift+.** expands everything; both work on the selected node's
5530  branch, or the whole map when nothing is selected. **Alt+Shift+,**
5531  collapses a node's descendants and **Alt+Shift+0** collapses the selected
5532  node.
5533- **Actions** — **Alt+Shift+A** creates action items from the selected nodes
5534  and **Alt+Shift+Q** queues or unqueues them; **Alt+Shift+R** and
5535  **Alt+Shift+W** do the same for RAID entries. **Alt+E** excludes or includes
5536  the selection from a share, and **Alt+C** copies the selection as outline
5537  text. **Mod+Z** and **Mod+Y** (or **Mod+Shift+Z**) undo and redo.
5538- **View** — **Alt+Shift+F** fits the map to the view, **Alt+Shift+Enter**
5539  toggles fullscreen, and **Mod+= / − / 0** zoom in, out and back to default.
5540
5541Structure shortcuts act on the selected node; editing shortcuts act while a
5542label is open for editing.
5543
5544## Selecting more than one node
5545
5546**Mod+click** picks nodes one at a time, adding and removing them from the
5547selection. **Shift+click** takes a range: click a node, hold Shift, click
5548another, and everything between the two comes with them.
5549
5550"Between" is read down the map the way you read an outline, top to bottom, so
5551a range can span different parents rather than only siblings. A collapsed node
5552keeps its children out of it — you select what you can see. The node you
5553clicked first stays the anchor, so shift-clicking somewhere else resizes the
5554same range instead of starting another one; any ordinary click moves the
5555anchor.
5556
5557On a Mac, **Ctrl+click** is the operating system's secondary click and selects
5558the single node under the cursor rather than adding to the selection. Use
5559**⌘** instead. Dragging a box on empty canvas still selects everything inside
5560it.
5561`,w0e=`---
5562title: Submit queued actions from a mind map
5563summary: Turn the nodes you queued earlier into real action items in one pass.
5564surfaces: [/scratch-pad/map/$mapId]
5565aka:
5566  - submit queued actions
5567  - complete queued actions
5568  - create and sync mind map actions
5569  - finish queued nodes
5570questions:
5571  - How do I submit the actions I queued on a mind map?
5572  - What does Complete Queued do?
5573  - What happens to a node after its action item is created?
5574order: 60
5575verified: { by: Jas, on: 2026-09-15 }
5576---
5577
5578Once you have [queued](/help/mindmaps/queue-or-create-an-action) one or more
5579nodes, the toolbar shows a **Complete Queued (*N*)** button, where *N* is how
5580many are waiting.
5581
5582Press it to open the action items panel along the bottom of the page, with
5583one row already loaded for every queued node — task name and note prefilled
5584from the node's text. Fill in what's missing for each row: due date,
5585responsible doer, and destination. When everything is ready, press **Create &
5586Sync** to create the action items and send them on their way in one step.
5587
5588Closing the panel with the **X** in its header instead leaves the nodes
5589queued, so nothing is lost — press **Complete Queued** again whenever you're
5590ready to finish them.
5591
5592After they're created, the panel closes and each node's queued marker clears.
5593The node now carries a linked-action badge, so you can see at a glance which
5594ideas already became real work. See
5595[Create an action](/help/command-center/create-an-action) for what each field
5596in that panel does.
5597`,v0e=`---
5598title: Switch between dark and light mode
5599summary: Toggle the theme from the sun/moon icon in the top bar — Luniko remembers your choice from then on.
5600requires: []
5601surfaces: ["/"]
5602aka:
5603  - dark mode
5604  - light mode
5605  - theme toggle
5606  - switch theme
5607  - night mode
5608  - toggle dark mode
5609questions:
5610  - How do I turn on dark mode?
5611  - How do I switch back to light mode?
5612  - Does Luniko remember my theme choice?
5613  - Why did my theme change on its own?
5614order: 20
5615verified: { by: Jas, on: 2026-09-15 }
5616---
5617
5618Luniko starts by matching your device's own light or dark setting. The first
5619time you choose a theme yourself, that choice takes over and stops following
5620your device.
5621
5622## Switching it
5623
5624The icon next to Notifications in the top bar toggles the theme — a moon
5625means you're in light mode and pressing it switches to dark, a sun means the
5626reverse. The tooltip reads **Light/Dark mode**.
5627
5628Your choice is remembered in this browser, so it holds the next time you open
5629Luniko here. It does not carry over to a different browser or device — each
5630one starts by following its own device setting until you toggle it there too.
5631
5632If you have two Luniko tabs open in the same browser and switch the theme in
5633one, the other updates to match.
5634`,k0e=`---
5635title: Find your way around
5636summary: The top bar holds every area you can reach — hover any icon to see its name, and only the ones you have access to appear.
5637requires: []
5638surfaces: ["/"]
5639testids: [nav-links]
5640aka:
5641  - the top bar
5642  - the nav bar
5643  - navbar
5644  - hover over icons
5645  - where is everything
5646  - top navigation
5647  - menu bar
5648questions:
5649  - How do I navigate Luniko?
5650  - What do the icons at the top of the page mean?
5651  - Where is everything?
5652  - Why don't I see an icon someone else has?
5653shots:
5654  - id: top-bar
5655    route: /meetings
5656    callout: "[data-testid=nav-links]"
5657order: 0
5658verified: { by: Jas, on: 2026-09-15 }
5659---
5660
5661Every page in Luniko shares the same bar across the top, so wherever you are,
5662getting somewhere else is the same motion.
5663
5664![Find your way around](shot:top-bar)
5665
5666## The bar itself
5667
5668The logo on the far left always takes you to **Meetings**. The middle strip
5669holds an icon for each area you can reach — Pulse, Bookmarks, Meetings, the
5670Luniko Button, Global Search, the Leaderboard, the admin console, Scratch Pad,
5671Mind Maps, followed by a divider and then Shopfloor, Schedules and Command
5672Center. Hover any icon and a tooltip names it — the bar carries no text labels
5673of its own, only icons.
5674
5675\`\`\`luniko-if:luna.ask
5676**Luna** sits between Mind Maps and the divider.
5677\`\`\`
5678
5679On the right sit **Help**, **Notifications**, the light/dark toggle, and your
5680account menu.
5681
5682## Why you might see fewer icons than someone else
5683
5684An icon only appears if you can actually use what it opens. It is not
5685disabled or greyed out for you — it is not there at all. Someone on the same
5686team can see a different set of icons if your organizations use different
5687modules, or if you hold different access.
5688
5689## Related
5690
5691- [Notifications](/help/navigation/notifications)
5692- [Dark and light mode](/help/navigation/dark-and-light-mode)
5693- [The command launcher](/help/navigation/the-command-palette)
5694`,x0e=`---
5695title: Get help where you are
5696summary: The Help icon in the navbar opens a panel of articles for the page you are on, without taking you away from it.
5697surfaces: [/]
5698commands: [help.for-page, help.open]
5699testids: [help-unseen-dot]
5700aka:
5701  - help
5702  - the help button
5703  - help panel
5704  - help drawer
5705  - help centre
5706  - how do I use this page
5707  - where are the instructions
5708  - red dot on the help button
5709  - orange circle on help
5710  - what's new
5711questions:
5712  - Where is the help?
5713  - How do I get help for the page I'm on?
5714  - How do I open the help centre?
5715  - What is the dot on the help icon for?
5716order: 50
5717---
5718
5719The **Help** icon on the right of the navbar opens a panel beside whatever
5720you are doing, so you can read an answer without losing the page you were
5721on.
5722
5723## What the panel shows
5724
5725If the page you are on has articles of its own, the panel opens on **Help
5726for this page** and lists them. If it does not, the panel lists everything
5727you can read, grouped by section — the same order as the help centre's own
5728front page — rather than as one long run.
5729
5730Press an article to read it in the panel. A **Back** link returns you to the
5731list, so opening the wrong article does not mean closing the panel and
5732starting again. **Open in help centre** — or **Browse the help centre** from
5733the list — leaves the panel and opens the full help centre, where the search
5734is.
5735
5736## The orange dot
5737
5738An orange dot on the **Help** icon means there is a release you have not read
5739about yet. The panel's list has a **What's new in Luniko** link under **Browse
5740the help centre**, with a count such as *2 new* beside it while any release is
5741unread. Opening What's new clears the dot.
5742
5743## Opening it from the keyboard
5744
5745The command launcher has the same two entries: **Help for this page** and
5746**Open help centre**. Every individual article is registered there too, so
5747typing part of a title, or the words you would actually use for it, reaches
5748it directly. See [The command launcher](/help/navigation/the-command-palette).
5749
5750## Why you might see fewer articles than a colleague
5751
5752An article appears only if you can use what it describes. Articles about
5753administering the organization are not listed for someone who cannot
5754administer it, in the panel or in the help centre.
5755
5756## Related
5757
5758- [Finding your way around](/help/navigation/finding-your-way)
5759- [The command launcher](/help/navigation/the-command-palette)
5760`,_0e=`---
5761title: Check your notifications
5762summary: The bell in the top bar lists what changed on items you follow — click one to jump straight to it.
5763requires: []
5764surfaces: ["/"]
5765aka:
5766  - the bell
5767  - notification bell
5768  - notifications panel
5769  - unread notifications
5770  - mark as read
5771  - mute notifications
5772  - stop notifying me
5773questions:
5774  - How do I see my notifications?
5775  - How do I mark all my notifications as read?
5776  - How do I stop getting notified about one item?
5777  - What does muting a notification do?
5778order: 30
5779verified: { by: Jas, on: 2026-09-15 }
5780---
5781
5782The bell icon in the top bar carries a red count of unread notifications —
5783things that changed on a meeting, note, mind map, schedule, action or RAID
5784entry you follow. Click it to open the list.
5785
5786## Reading one
5787
5788Click a notification to open whatever it's about — a meeting, a Pulse
5789comment thread, a schedule, a note, a mind map, or the relevant log for an
5790action item or RAID entry — and it's marked read at the same time.
5791
5792Hovering a row reveals its own controls: mark it read or unread again without
5793opening it, or delete it from the list. Above the list, **Mark all as read**
5794and **Clear all** apply to everything at once.
5795
5796## Muting one item
5797
5798A notification about something you follow also offers a **mute** control —
5799"Stop notifying me about this item." Muting does not unfollow it: the item
5800stays in your [Following](/help/following/your-following-feed) feed, it just
5801stops adding new notifications here.
5802
5803When there's nothing to show, the panel reads **"You're all caught up."**
5804`,S0e=`---
5805title: Open the command launcher
5806summary: The glowing circle in the bottom-left corner opens a searchable menu of everywhere you can go and everything you can do.
5807requires: []
5808surfaces: ["/"]
5809aka:
5810  - the launcher
5811  - the +L button
5812  - command palette
5813  - command menu
5814  - bottom left button
5815  - quick actions
5816  - ask luna shortcut
5817questions:
5818  - What is the button in the bottom-left corner?
5819  - How do I open the command menu?
5820  - How do I search for a command?
5821  - How do I ask Luna a question from anywhere?
5822order: 10
5823verified: { by: Jas, on: 2026-09-15 }
5824---
5825
5826A small round button sits fixed in the bottom-left corner of every page,
5827showing the Luniko mark. Click it, or press **Ctrl+Space** (**Cmd+Space** on a
5828Mac), to open a floating panel of commands.
5829
5830## Browsing and searching
5831
5832With nothing typed, the panel groups commands into columns — **This Page**
5833for actions specific to where you are, **Navigation** for jumping to a
5834different area, and **Workspaces** for things like creating an action item or
5835opening a destination's action log. A command with a sub-list, like **Open
5836Action Logs** and its destinations, opens a second column when you hover or
5837select it; arrow keys move between columns.
5838
5839Start typing and the columns collapse into a single filtered list. A command
5840that has its own sub-items still shows a second column for those once it is
5841highlighted.
5842
5843\`\`\`luniko-if:luna.ask
5844## Asking Luna instead
5845
5846Type **?** in the search field, or select **Ask Luna** from the Navigation
5847column, to switch the same panel into a free-text question box instead of a
5848command list. Press Enter to send it. The conversation can be popped out into
5849its own floating window so you can keep working while it answers, or opened
5850in full on the **Luna** page.
5851\`\`\`
5852
5853**Esc** steps back one stage at a time: out of Ask Luna mode, then out of a
5854search you've typed, then closes the panel entirely.
5855`,T0e=`---
5856title: Send the notetaker into a meeting
5857summary: Paste a meeting link to send the notetaker in right now, without waiting on your calendar rules.
5858requires: [meetings.send_notetaker]
5859surfaces: [/meetings]
5860commands: [meetings.send-notetaker]
5861aka:
5862  - Stan
5863  - the bot
5864  - the note taker
5865  - notetaker
5866  - send the bot
5867  - invite the bot
5868  - join a meeting now
5869  - add the bot to this call
5870  - send the notetaker manually
5871questions:
5872  - How do I send the notetaker to a meeting that's already started?
5873  - Can I send the notetaker without connecting my calendar?
5874  - What happens if the notetaker is already in the meeting?
5875  - Can I add the notetaker to a meeting on my colleague's calendar?
5876shots:
5877  - id: send-notetaker-dialog
5878    route: /meetings
5879    as: [editor, admin]
5880order: 10
5881verified: { by: Jas, on: 2026-09-15 }
5882---
5883
5884Paste the join link for a meeting that is happening now, and the notetaker heads in — no need to have set up automatic joining first.
5885
5886![Send the notetaker into a meeting](shot:send-notetaker-dialog)
5887
5888## Where to find it
5889
5890Press **Send the note-taker** from the Meetings page, or run the same command from the command palette. Either opens the **Send the note-taker into a meeting** dialog: paste the **Meeting link**, optionally give it a **Meeting name**, and press **Send**. Somebody already in the call may need to admit it, the same as any other guest.
5891
5892If your organization keeps a set of standing rooms, they appear below the form — press **Send the note-taker** on one to skip pasting a link entirely.
5893
5894## If it's already there
5895
5896Sending it into a meeting it has already joined does not add a second copy. Instead you get a message saying so, with a **Watch it live** link straight to that meeting's [live room](/help/live-room/overview).
5897
5898## Who can do this
5899
5900Every editor and administrator can send the notetaker manually. If you cannot see the **Send the note-taker** button or command, you do not hold this permission — ask your administrator.
5901
5902This is the same permission that governs whether the notetaker can join your meetings automatically at all; see [setting up the notetaker](/help/notetaker/set-up-the-notetaker).
5903`,I0e=`---
5904title: Set up the notetaker
5905summary: Connect your calendar and choose which of your meetings the notetaker joins automatically.
5906surfaces: [/profile]
5907module: meetings
5908aka:
5909  - connect my calendar
5910  - connect calendar
5911  - Stan
5912  - the note taker settings
5913  - recording settings
5914  - which meetings does the bot join
5915  - stop the bot joining every meeting
5916  - block the notetaker from a meeting
5917  - cancel the bot
5918  - stop a booked notetaker
5919questions:
5920  - Can I stop the notetaker after it has been booked?
5921  - How do I connect my calendar so the notetaker joins automatically?
5922  - How do I stop the notetaker joining every meeting?
5923  - Can I keep the notetaker out of meetings with a certain word in the title?
5924  - Why isn't the notetaker joining my meetings?
5925shots:
5926  - id: notetaker-settings-recording
5927    route: /profile
5928    as: [editor, admin]
5929order: 20
5930---
5931
5932Connect your calendar so the notetaker can see your meetings, then decide which of them it joins.
5933
5934![Set up the notetaker](shot:notetaker-settings-recording)
5935
5936## Where to find it
5937
5938Open your **Settings**, then the **Meetings** tab. The right-hand rail shows whether a calendar is connected; press **Connect calendar** if it says **No calendar connected**. Once connected, the rail shows your account and when it last synced, with **Sync now** and **Disconnect** available.
5939
5940## When the notetaker joins
5941
5942The **Recording** tab has three choices for **When should the note-taker join?**
5943
5944- **Join all my meetings** — every meeting on your calendar with a joinable link.
5945- **Only meetings I allow** — pick each one from Upcoming on the [Meetings page](/help/notetaker/upcoming-meetings).
5946- **Never join automatically** — you can still send it in with a link.
5947
5948Below that, **Never record if the title contains** lets you block meetings by keyword. This only applies to your own calendar — a colleague whose settings allow the notetaker still triggers one. The word **"blacklist"**, in a meeting's title or invite body, keeps the notetaker out no matter who booked it.
5949
5950You can add that word after the notetaker is already booked. Editing the invite to include it takes the booking back off, and the meeting stops showing the notetaker as joining. A recording that has already started is not stopped this way — end it from the meeting itself. Your own keyword list does not work retroactively, because it speaks for your calendar alone and cannot cancel a notetaker a colleague is entitled to.
5951
5952## Manual join
5953
5954The **Manual join** tab holds the same form as [sending the notetaker into a meeting](/help/notetaker/send-the-notetaker) — useful for a call already underway that your rules did not catch.
5955
5956Everyone manages their own connection and their own rules; there is nothing here to grant.
5957`,E0e=`---
5958title: Allow or block the notetaker on an upcoming meeting
5959summary: Decide, meeting by meeting, whether the notetaker joins something on your calendar.
5960surfaces: [/meetings]
5961module: meetings
5962aka:
5963  - upcoming meetings
5964  - joining
5965  - not joining
5966  - allow all
5967  - allow the notetaker
5968  - stop the notetaker joining this one
5969  - which meetings will Stan join
5970questions:
5971  - How do I stop the notetaker joining one specific meeting?
5972  - What does "Joining" mean next to a meeting?
5973  - How do I allow the notetaker for a whole recurring meeting?
5974  - Why is there no Allow button on this meeting?
5975shots:
5976  - id: upcoming-meetings-list
5977    route: /meetings
5978    as: [editor, admin]
5979order: 30
5980verified: { by: Jas, on: 2026-09-15 }
5981---
5982
5983The **Upcoming** section on the Meetings page lists what's on your connected calendar for the next 10 days, with a control on each row for the notetaker.
5984
5985## What each row shows
5986
5987If your [recording mode](/help/notetaker/set-up-the-notetaker) is **Only meetings I allow**, every meeting shows one of two states:
5988
5989- **Joining** (or **Joining · series** for a recurring meeting) — press it to stop the notetaker joining.
5990- **Not joining**, with an **Allow** button beside it. Press the arrow next to Allow to choose **Just this meeting** or **This and future meetings** instead of the default single occurrence.
5991
5992Under **Join all my meetings** or **Never join automatically**, there is nothing to allow — a row instead shows **Note-taker booked** when a colleague's own settings have already booked it for that meeting.
5993
5994**Allow all** appears above a day's meetings (and **Allow everything** above the whole list) whenever there is something left to allow in that scope, and allows every one of them in a single press.
5995
5996## Prep and Join
5997
5998A meeting with a join link also shows **Prep**, which opens meeting prep, and **Join**, which opens the call itself in a 
5998new tab.
5999
6000## No calendar connected
6001
6002Without a connected calendar there is nothing to list — a **Connect your calendar** prompt takes its place. See [setting up the notetaker](/help/notetaker/set-up-the-notetaker).
6003
6004## Sending it in now
6005
6006**Send the note-taker**, above the list, opens the dialog for [sending the notetaker into a meeting](/help/notetaker/send-the-notetaker) that is already under way.
6007`,A0e=`---
6008title: Add someone new
6009summary: Type their name and email into any person field — Luniko finds them if they already exist and adds them only if they don't, so you never create a second copy of anyone.
6010requires: []
6011surfaces: [/command-center, /meetings/live/$meetingId, /schedules]
6012aka:
6013  - add a person
6014  - add someone to the system
6015  - add a contact
6016  - create a person
6017  - new contact
6018  - new person
6019  - add a new doer
6020  - someone isn't in the list
6021  - duplicate person
6022  - proper way to add someone
6023questions:
6024  - How do I add someone to Luniko?
6025  - What is the proper way to add a new person?
6026  - The person I want to assign isn't in the list — what do I do?
6027  - How do I avoid creating duplicate people?
6028  - Why does the same person appear twice in the Responsible Doer list?
6029order: 5
6030---
6031
6032There is no separate "new person" form to fill in. You add someone the
6033moment you first need them — in the **Responsible Doer**, **Authority**,
6034**Support** or any other person field — and Luniko checks the directory
6035before it creates anything.
6036
6037## Add them from a person field
6038
60391. Click into the person field and start typing their name.
60402. If they appear in the list, pick them. You're done — that is the person
6041   everyone else sees too.
60423. If nobody matches, keep typing their full name. An **Email (optional)**
6043   box appears under it.
60444. **Type their work email** in that box, then press **Enter**.
6045
6046In the schedule grid the same thing happens through **Create "…"** at the
6047bottom of the list, which opens **Add Contact** with a **Name** and an
6048**Email (optional)** field.
6049
6050## Always add the email
6051
6052The email is what makes this safe. When you give one, Luniko looks for
6053anybody who already answers to that address — as their main email *or* as
6054one of their other addresses — and hands you that person instead of making
6055a new one. Without an email it can only go by the name, and the next
6056meeting that sees their real address won't know it's them.
6057
6058So: if you know their email, type it. It costs one Tab.
6059
6060## If you see the same name twice
6061
6062You shouldn't, any more. A person a meeting created who looks like someone
6063already in the directory — the same name typed differently, like
6064\`alexisbader\` next to **Alexis Bader** — is left out of the pickers until an
6065administrator reviews them, and so is anyone an administrator has hidden,
6066such as a test account.
6067
6068If you still see a duplicate, pick the one with the address you recognise
6069and tell your administrator. They can merge the two in the admin console
6070(see [Merge duplicate people](/help/people/merge-duplicates)), and every
6071action item, RAID entry and meeting that named the spare copy moves onto
6072the real person.
6073
6074## What you can't do here
6075
6076You can't change someone else's name or email from a person field, and you
6077can't remove anyone. Those are administrator jobs — see
6078[Maintain the people in your directory](/help/people/identities).
6079`,C0e=`---
6080title: Maintain the people in your directory
6081summary: The People area of the admin console is where you correct a person's details, add the other email addresses they turn up under, and see how they sign in.
6082requires: [people.manage_identities]
6083surfaces: [/admin]
6084aka:
6085  - a person's identities
6086  - linked emails
6087  - linked accounts
6088  - manage identities
6089  - edit a person
6090  - change someone's email
6091  - add an email to someone
6092  - secondary email for someone else
6093  - people admin
6094  - import people
6095  - directory import
6096questions:
6097  - What is an identity on a person's record?
6098  - How do I add another email address to someone?
6099  - How do I change someone's name or primary email?
6100  - How do I bring people in from our directory?
6101  - Why can't I edit this person's name?
6102order: 10
6103---
6104
6105Luniko recognizes the same human across a meeting, a login and a directory
6106sync by the addresses and accounts on their record — their **identities**.
6107One person can carry several: a Luniko address, a customer address, a
6108Microsoft account, a password login. Keeping those on **one** record is what
6109stops a meeting from inventing a second copy of them.
6110
6111## Where it is
6112
6113Open the admin console and choose **People**. You see everyone you can
6114manage — your own organization's people, plus everyone no organization has
6115claimed, which is where external meeting attendees land. (Platform operators
6116see every organization's people.)
6117
6118Search by name or email, or use the filters: **With access**, **Everyone**,
6119**Review**, **Duplicates** and **Hidden**. Pick a person to open their details —
6120the same page that shows what they can do and which meetings they see.
6121
6122## Add an email address they also use
6123
6124Under **Email addresses**, type the address and add it. From then on, every
6125meeting, Smartsheet row and person field that uses that address resolves to
6126this person.
6127
6128If somebody else already uses the address, Luniko won't give it to a second
6129person. It tells you who has it and offers to **merge** that person into the
6130one you're looking at — almost always the right answer, because two records
6131answering to one address are one human. See
6132[Merge duplicate people](/help/people/merge-duplicates).
6133
6134## Make a different address their primary
6135
6136**Make primary** swaps which address is shown and used to contact them. The
6137old primary stays on the record as one of their other addresses, so nothing
6138that used it stops finding them. You can remove any address except the
6139primary — make another one primary first.
6140
6141Addresses marked **added by them** were typed in by the person on their own
6142profile. They help recognize that person, but they never decide who can see
6143what — only addresses from the directory, a merge or an administrator do.
6144
6145## Edit their name and title
6146
6147Change the name or job title and save. For someone **synced from
6148Microsoft**, the name and primary email come from your Microsoft directory
6149and are read-only here — change them there, and the next sync brings the
6150change across. Their other addresses can still be added here.
6151
6152## See how they sign in
6153
6154**Sign-ins and directory accounts** lists every login and Microsoft account
6155on the record. A person who used two sign-ins — a password account and a
6156work account, say — can have both here, and either one signs them in as the
6157same person.
6158
6159## Import people
6160
6161**Import people**, above the list in **People**, brings people in
6162from your organization's directory in bulk, so their identities stay current
6163without adding each one by hand.
6164
6165## Who can do this
6166
6167Administrators, by default, through **manage identities**. Merging needs
6168**merge people** as well.
6169`,N0e=`---
6170title: Merge duplicate people
6171summary: Combine two records of the same human into one — every action item, RAID entry, schedule task and meeting that named the spare copy moves onto the one you keep.
6172requires: [people.merge]
6173surfaces: [/admin]
6174aka:
6175  - merge duplicate people
6176  - merge people
6177  - duplicate person
6178  - two records for the same person
6179  - same person twice
6180  - two Alexis
6181  - two Jags
6182  - combine people
6183questions:
6184  - Why does the same person show up twice in the directory?
6185  - How do I merge two duplicate people?
6186  - What happens to a person's history when they're merged?
6187  - Can I undo a merge?
6188order: 20
6189---
6190
6191A duplicate usually starts in a meeting. Somebody joins under an address
6192the directory hasn't seen — a customer mailbox, a guest account, or Zoom's
6193display name with no address at all — and Luniko creates a person for them
6194rather than guessing. When that person is really someone you already have,
6195merge the two.
6196
6197## Merge
6198
61991. In the admin console, open **People** and pick the copy you **don't**
6200   want to keep.
62012. Choose **Merge into…** and pick the person to keep. For someone on the
6202   **Duplicates** filter, the button already names them: **Merge into
6203   Alexis Bader**.
62043. Read the preview. It shows who disappears and who stays, the addresses
6205   and sign-ins that move across, and how many records currently name the
6206   copy that is going away.
62074. Confirm.
6208
6209## What happens
6210
6211- **Everything that named the duplicate names the keeper.** Action items,
6212  RAID entries, schedule assignments, meetings they attended, comments,
6213  mentions, saved filters and change history are all updated. Where both of
6214  them were on the same meeting, the keeper appears once.
6215- **Every address and sign-in moves.** The duplicate's email addresses, its
6216  Microsoft account and any login it had become part of the keeper, so the
6217  next meeting under any of those addresses finds the keeper, and either
6218  login signs them in as the keeper.
6219- **Access only ever widens.** Meeting audiences and private-sheet grants
6220  from both records are combined; the keeper never loses anything they
6221  could see.
6222- **The duplicate record is removed.** A note of the merge — who did it,
6223  and into whom — is kept in the audit log.
6224
6225A merge can't be undone from the product, so check the preview. If a merge
6226is refused — for example because both people have a calendar connected to
6227the notetaker — the preview says why before anything changes.
6228
6229## Hide instead of merge
6230
6231A test account, a shared mailbox or somebody who has left isn't a
6232duplicate of anyone. For those, hide them rather than merge them — see
6233[Review new people and hide test accounts](/help/people/review-and-hide).
6234
6235## Who can do this
6236
6237Administrators holding **merge people**. You can merge anyone you can
6238manage in **People**.
6239`,P0e=`---
6240title: Review new people and hide test accounts
6241summary: Decide about the people meetings created, and take test accounts or shared mailboxes out of every person picker without losing anything that already names them.
6242requires: [people.manage_identities]
6243surfaces: [/admin]
6244aka:
6245  - remove someone from the list
6246  - remove a person
6247  - delete a person
6248  - hide a person
6249  - hide test account
6250  - remove from responsible doer list
6251  - needs review
6252  - likely duplicates
6253  - review queue
6254  - people a meeting created
6255questions:
6256  - How do I remove someone from the Responsible Doer list?
6257  - Can I delete a person?
6258  - What does "Needs review" mean on a person?
6259  - What is a likely duplicate?
6260  - How do I stop a test account showing up when assigning work?
6261order: 15
6262---
6263
6264## Needs review
6265
6266When a meeting includes someone the directory doesn't know, Luniko adds them
6267so the meeting can still name them — with no access to anything — and marks
6268them **Needs review**. Open **People** in the admin console and choose the
6269**Review** filter to see them. For each one, decide:
6270
6271- **They're a real, separate person** → **Confirm as a separate person**.
6272  They stay, and come off the list.
6273- **They're someone you already have** → merge them into that person. See
6274  [Merge duplicate people](/help/people/merge-duplicates).
6275
6276## Likely duplicates
6277
6278Some people on the review list are marked **Looks like …**: their name
6279matches exactly one person already in the directory, however it was
6280written — \`alexisbader\`, \`Bader, Alexis\` or \`EXT-Bader, Alexis\` all look
6281like **Alexis Bader**. Until you decide, a likely duplicate is **left out of
6282every person picker**, so nobody can assign work to the spare copy by
6283mistake. The **Duplicates** filter lists them; **Merge into Alexis
6284Bader** is one click from each.
6285
6286## Hide someone from the pickers
6287
6288Open the person and turn on **Hide from pickers**. They can no longer be
6289chosen for new work anywhere — the Responsible Doer list, RAID owners,
6290schedule assignments — but everything that already names them keeps showing
6291their name, and meetings still recognize them. Turn it off to bring them
6292back.
6293
6294Use it for test accounts, shared mailboxes, and people who have left. Hiding
6295never deletes anyone, because deleting a person would leave every action
6296item and meeting that names them pointing at nobody. When the person is
6297really a second copy of someone, merge instead — that removes the copy and
6298moves everything onto the real one.
6299
6300The **Hidden** filter lists everyone hidden.
6301
6302## Who can do this
6303
6304Administrators, through **manage identities**.
6305`,D0e=`---
6306title: View billing across every organization
6307summary: See billing information for every organization on the platform, not only the one you are currently acting as.
6308requires: [platform.view_billing_all]
6309aka:
6310  - cross-org billing
6311  - all-organization billing
6312  - every organization's invoices
6313  - platform billing
6314questions:
6315  - Can I see every organization's billing in one place?
6316  - Where do I check billing for an organization that isn't mine?
6317order: 30
6318verified: { by: Jas, on: 2026-09-15 }
6319---
6320
6321**View billing across every organization** lets someone see billing
6322information — meetings and minutes captured, and the subscription — for every
6323organization on the platform, not only the organization they are currently
6324acting as. It is distinct from the ordinary [billing](/help/admin/billing)
6325view an organization's own administrator holds, which only ever shows that
6326one organization.
6327
6328<!-- VERIFY: no cross-organization billing screen exists in the product yet
6329on this branch. Update this article once one ships, including where it lives
6330and what it shows. -->
6331
6332## Who can do this
6333
6334Nobody by default. Like every other platform-operator capability, it is
6335granted to one person at a time by another platform operator — never handed
6336out through an organization's own admin bundle.
6337`,O0e=`---
6338title: Open a break-glass session
6339summary: Activate a time-boxed, fully audited session that reaches beyond your normal access, for incident response only.
6340requires: [platform.activate_god_mode]
6341surfaces: [/admin]
6342aka:
6343  - god mode
6344  - godfather access
6345  - firefight
6346  - break glass
6347  - emergency access
6348  - activate god mode
6349questions:
6350  - How do I open god mode?
6351  - How long does a break-glass session last?
6352  - Can I make a break-glass session longer?
6353  - Who gets notified when I activate god mode?
6354  - How do I end a session early?
6355order: 60
6356verified: { by: Jas, on: 2026-09-15 }
6357---
6358
6359Open the **admin console**, choose **Danger**, then **God mode** to start a
6360time-boxed, fully audited break-glass session — access outside your normal
6361reach, meant for incident response, not a routine tool.
6362
6363## Activate a session
6364
6365Press **Activate god mode**, choose a **Scope** — **One organization** (any
6366organization on the platform, picked from a dropdown or typed by id — never
6367your own by default) or **Platform-wide** — then write a **Reason** of at
6368least 12 characters describing what is happening and why it needs god mode.
6369**Activate god mode** stays disabled until both are filled in.
6370
6371Activating rebinds what you can act as: an org-scoped session lets you act
6372inside that organization with your own capabilities, and a platform-wide one
6373reaches every organization at once. Every platform administrator is emailed
6374the moment a session starts.
6375
6376## How long it lasts
6377
6378An organization-scoped session lasts **six hours**; a platform-wide one lasts
6379**one hour** — the wider the reach, the shorter the window, and neither can
6380be extended once started. Reactivate with a new reason if you need more time.
6381
6382While a session is live, a rose-coloured banner stays pinned to the top of
6383every page naming its scope, the reason you gave, and the time remaining,
6384with its own **Revoke** button. The same information and control appear back
6385on the God mode card in the admin console.
6386
6387## Ending it
6388
6389Press **Revoke**, from the banner or the card, to close a session before it
6390expires. Nothing has to be revoked for it to end — an untouched session stops
6391working the moment its countdown reaches zero.
6392
6393## Who can do this
6394
6395Only Luniko staff holding *start a break-glass session*, a platform-operator
6396grant no organization can hand out itself. Everyone else never sees the God
6397mode card at all.
6398`,R0e=`---
6399title: Manage modules for any organization
6400summary: Turn a module on or off for any organization on the platform, and see whether its IT has approved what the module needs.
6401requires: [platform.configure_modules]
6402surfaces: [/admin]
6403aka:
6404  - module toggles
6405  - turn on Command Center
6406  - enable a module
6407  - cross-org modules
6408  - approve consent
6409  - IT approval
6410  - Graph consent
6411questions:
6412  - How do I turn on a module for a customer?
6413  - Why does a module show "Approval requested"?
6414  - How do I send an approval link to a customer's IT?
6415  - Can I turn on a module for an organization that has never had it before?
6416order: 20
6417verified: { by: Jas, on: 2026-09-15 }
6418---
6419
6420Open the **admin console** and choose **Module toggles** to turn a module on
6421or off for any organization on the platform — not only your own.
6422
6423## Using it
6424
6425Pick an organization from the dropdown at the top, then use each module's
6426switch to enable or disable it. A module that needs the organization's own IT
6427to approve something shows its state under the switch: **No approval
6428needed**, **Approval requested**, **Approved**, or **Approval revoked**. If a
6429module is switched on but its approval is still outstanding, a warning reads
6430**"Their IT has not approved this yet"** next to a **Send approval request**
6431button, which opens the approval link in a new tab for you to pass along.
6432
6433Once approval is in place, the row shows **Working** instead.
6434
6435## Who can do this
6436
6437Only Luniko staff holding *manage modules for any organization* — a
6438platform-operator grant, separate from the *your modules* capability an
6439organization's own administrator uses to manage that organization's own
6440modules. This is the operator's version of that self-service screen: it can
6441turn a module on for an organization for the first time, which the
6442self-service screen cannot do.
6443`,M0e=`---
6444title: Manage organizations across the platform
6445summary: A platform-operator capability that decides who creates organizations and who can hand out the two capabilities no organization can grant itself.
6446requires: [platform.manage_orgs]
6447surfaces: [/pulse]
6448aka:
6449  - platform operator
6450  - manage organizations
6451  - create an organization
6452  - cross-org
6453  - customer filter
6454  - the organizations list
6455  - multi-tenant
6456questions:
6457  - Who can create a new organization?
6458  - Why do I see a Customer filter on Pulse and nobody else does?
6459  - Can any organization's admin grant "see everything the organization owns"?
6460  - What does "platform operator" mean?
6461order: 10
6462verified: { by: Jas, on: 2026-09-15 }
6463---
6464
6465**Create and manage organizations** is a platform-operator capability: it
6466belongs to no organization's own admin bundle, and no organization can hand it
6467to one of its own people. Holding it makes you responsible for the
6468organizations on the platform itself, not for any one of them.
6469
6470## Where it shows up
6471
6472There is no single "Organizations" screen yet. Holding this capability
6473changes two things you will notice elsewhere in the product:
6474
6475- **Pulse** gains a **Customer** filter next to the date picker, letting you
6476  narrow the feed to one organization, internal activity only, or everyone —
6477  a filter nobody without this capability sees at all.
6478- On any organization's **Roles and capabilities** screen, you become the
6479  only kind of person who can grant or take away *See everything the
6480  organization owns* and *See records their own people were invited to* for a
6481  member there. Without this capability, an organization's own administrator
6482  sees those two rows fixed, with a note reading **"Only a Luniko platform
6483  operator can grant or revoke this."**
6484
6485<!-- VERIFY: how a new organization actually gets created today — there is no
6486screen for it on this branch. -->
6487
6488## Who can do this
6489
6490Nobody by default. This capability sits outside every bundle a customer's
6491administrator can be given, so it is granted to one person at a time by
6492another platform operator.
6493`,j0e=`---
6494title: View the cross-org sharing ledger
6495summary: See the full history of every time a record crossed an organization boundary, across the platform.
6496requires: [platform.view_sharing_ledger]
6497aka:
6498  - sharing ledger
6499  - cross-org sharing history
6500  - record crossed organizations
6501  - external share history
6502questions:
6503  - Is there a history of every time a record crossed from one organization to another?
6504  - Who can see the sharing ledger?
6505order: 50
6506verified: { by: Jas, on: 2026-09-15 }
6507---
6508
6509**View the cross-org sharing ledger** lets someone see the full history of
6510every time a record — a meeting, a moment, a destination — crossed from one
6511organization to another, across the whole platform. It is the audit side of
6512capabilities like [sharing a record outside your organization](/help/sharing/share-outside-your-organization)
6513and [who can see a meeting](/help/meetings/who-can-see-a-meeting), rather than
6514a separate mechanism of its own.
6515
6516<!-- VERIFY: no sharing-ledger screen exists in the product yet on this
6517branch. Update this article once it ships, including where it lives and what
6518a row in it looks like. -->
6519
6520## The transcript copying notices
6521
6522Holding it also makes you the audience for the copy-volume notices. When one
6523person copies more than five *different* meeting transcripts in a day, one
6524email goes to everyone holding this capability, listing each meeting once
6525with how many times it was taken. Copying the same transcript again does not
6526count twice, and it is sent once per person per day.
6527
6528At ten different transcripts in a day, that person is stopped from copying
6529any more and a second email says so. An administrator of their organization
6530lifts it — see
6531[Lift a transcript copying pause](/help/admin/transcript-copying).
6532
6533Because the audience is this capability rather than a list somewhere,
6534changing who gets the notices is a grant rather than a deployment.
6535
6536## Who can do this
6537
6538Nobody by default. Like every other platform-operator capability, it is
6539granted to one person at a time by another platform operator.
6540`,$0e=`---
6541title: View the tenant isolation report
6542summary: See the report that checks whether organizations' data is being kept properly apart from each other.
6543requires: [platform.view_isolation_report]
6544aka:
6545  - isolation report
6546  - tenant isolation
6547  - cross-tenant leak check
6548  - data separation report
6549questions:
6550  - Is there a report that checks organizations aren't leaking into each other?
6551  - Who can see the tenant isolation report?
6552order: 40
6553verified: { by: Jas, on: 2026-09-15 }
6554---
6555
6556**View the tenant isolation report** lets someone see the report that checks
6557whether organizations' data is being kept properly apart from each other —
6558the platform checking itself, not something any single organization can run
6559on its own behalf.
6560
6561<!-- VERIFY: no isolation report screen exists in the product yet on this
6562branch. Update this article once it ships, including what the report
6563actually checks, how often it runs, and where to find it. -->
6564
6565## Who can do this
6566
6567Nobody by default. Like every other platform-operator capability, it is
6568granted to one person at a time by another platform operator.
6569`,L0e=`---
6570title: View as another person
6571summary: See the product exactly as another person sees it, or narrow yourself to a capability set you build, without gaining or changing anything you write.
6572requires: [platform.impersonate]
6573surfaces: [/admin]
6574aka:
6575  - view as
6576  - impersonate
6577  - see what they see
6578  - become someone
6579  - custom capability set
6580  - view as another person
6581questions:
6582  - How do I see the app as someone else sees it?
6583  - Can I make changes while viewing as another person?
6584  - What is "custom capability set" mode for?
6585  - How do I stop viewing as someone?
6586  - Why can't I post a comment while viewing as someone?
6587order: 70
6588verified: { by: Jas, on: 2026-09-15 }
6589---
6590
6591Open the **admin console**, choose **Danger**, then **Impersonation** — or
6592press **View as…** from the command palette, from anywhere in the product —
6593to see it exactly as another person, or as a capability set you build
6594yourself.
6595
6596## Two modes
6597
6598Choose **View as this person** to swap your whole identity: pick someone from
6599the list, and once their roles resolve you will see **"You'll become
6600[their name]"** before you commit. Choose **Use a custom capability set** to
6601stay yourself and narrow only what you may do — every capability you do not
6602personally hold shows disabled, since a session can only ever remove access,
6603never add it beyond your own.
6604
6605Press **Start viewing** to begin.
6606
6607## What it can't do
6608
6609The session is **read-only**. A short list of actions — posting a meeting
6610comment, sending a live recap, sharing a record outside your organization —
6611stay refused and stay attributed to you, never to the person you are viewing
6612as. Everything else acts as them.
6613
6614## Leaving
6615
6616An amber banner reading **"Viewing as [name] — read-only"** (or, in custom
6617mode, **"Holding 3 capabilities — read-only"**) stays pinned to the top of
6618every page while a session is active. Press **Exit** on it to return to
6619yourself. You cannot start a second session until you do.
6620
6621## Who can do this
6622
6623Only Luniko staff holding *view and act as another person*, a
6624platform-operator grant no organization can hand out itself.
6625`,z0e=`---
6626title: Manage your automations
6627summary: See every reminder, heads-up, snooze and daily brief you have set up in Settings, and pause or remove them.
6628requires: [automations.use]
6629surfaces: [/automations]
6630aka:
6631  - automations
6632  - my reminders
6633  - daily brief
6634  - morning summary
6635  - turn off a reminder
6636  - pause the brief
6637  - where are my reminders
6638  - automation settings
6639questions:
6640  - Where can I see all my reminders?
6641  - How do I set up a daily brief?
6642  - How do I stop the daily brief?
6643  - How do I change when the daily brief comes?
6644order: 55
6645---
6646
6647The **Automations** tab of Settings lists everything Luniko does for you on a
6648schedule: the [reminders on your meetings](/help/calendar/reminders), the
6649[snoozes on your action items](/help/calendar/remind-me-later), and your
6650daily brief.
6651
6652## Open it
6653
6654Open your account menu in the top-right corner, choose **Settings**, then the
6655**Automations** tab.
6656
6657## What the list shows
6658
6659Each row says what it watches and what it will do, for example:
6660
6661- *Every Weekly Sync*, then *Remind me to send the summary 15 minutes after it
6662  ends*. A row for one meeting shows the meeting's title and date instead.
6663- A meeting reminder you switched off for one meeting reads *…: off for this
6664  meeting*.
6665- *Snooze "…"* or *Remind me about "…"* for an item, with when it
6666  goes off.
6667- *Daily brief, weekdays at 8:00 AM*, with *Next:* and the time it will next
6668  arrive.
6669
6670**Remove** ends any of them. A daily brief also has **Pause** and **Resume**.
6671To add or change a meeting reminder, right-click the meeting on the calendar.
6672
6673## Set up a daily brief
6674
6675Press **New automation**. In **Daily brief**, choose the **Frequency**
6676(**Every day**, **Weekdays** or **Chosen days**), the **Time** and the **Time
6677zone** (your browser's, unless you change it), then press **Set up brief**.
6678
6679At that time you get one notification, *Your daily brief*, with a one-line
6680summary. It opens a page with **Today's meetings**, what **Needs your
6681attention** (meetings waiting for your review, and summaries you were reminded
6682to send), and the **Action items** and **RAIDs** you are responsible for that
6683are due today or overdue. On a day with nothing to report, no brief is sent.
6684**Change when it comes**, at the top of the page, brings you back here.
6685
6686## Who can do this
6687
6688Every editor by default. An administrator can also grant it to anyone else.
6689Without it, Settings has no **Automations** tab. Nobody else sees your
6690automations.
6691`,U0e=`---
6692title: Set your Command Center defaults
6693summary: Pre-fill who new action items are assigned to, when they're due, where they go, and how dates are written.
6694requires: []
6695aka:
6696  - command center defaults
6697  - default doer
6698  - default due date
6699  - default destination
6700  - date format
6701  - who actions get assigned to by default
6702questions:
6703  - How do I set a default person for new action items?
6704  - How do I make new action items due a certain number of days out automatically?
6705  - How do I change which destination new action items go to by default?
6706  - How do I change how dates are written in Command Center?
6707order: 60
6708verified: { by: Jas, on: 2026-09-15 }
6709---
6710
6711The **Command Center** tab of Settings fills in values that would otherwise
6712need setting on every action item you create.
6713
6714## Open it
6715
6716Open your account menu in the top-right corner, choose **Settings**, then the
6717**Command Center** tab.
6718
6719## What it sets
6720
6721- **Default responsible doer** — the person a new action item is assigned to
6722  until you change it.
6723- **Default due date** — written as **Today +** a number of days, so an item
6724  created today is due that many days out. Leave it blank for no default.
6725- **Default destination** — which destination a new action item is sent to.
6726  Only destinations you have access to appear here; **No default** leaves it
6727  unset. See [Destinations](/help/command-center/destinations) for what a
6728  destination is.
6729- **Date format** — how a date is written wherever one appears: the grid's
6730  date columns, date pickers, and generated note titles. Each option is shown
6731  with a sample date so you can tell the formats apart by how they read.
6732
6733None of these lock anything in — you can still change the doer, due date or
6734destination on an individual item when you create or edit it.
6735`,F0e=`---
6736title: Connect your Microsoft account
6737summary: Link your Microsoft account so Luniko can read your calendar and profile through Microsoft Graph.
6738requires: []
6739surfaces: [/profile]
6740aka:
6741  - connect my email
6742  - connect microsoft
6743  - connect my calendar
6744  - link microsoft
6745  - hook up outlook
6746  - microsoft connection
6747  - reconnect microsoft
6748  - refresh microsoft permissions
6749  - my calendar isn't connecting
6750questions:
6751  - How do I connect my Microsoft account?
6752  - Why does Luniko need my Microsoft account?
6753  - My Microsoft connection stopped working, what do I do?
6754  - What does Refresh Permissions do?
6755shots:
6756  - id: microsoft-connection-card
6757    route: /profile
6758    as: [viewer, editor, admin]
6759order: 10
6760verified: { by: Jas, on: 2026-09-15 }
6761---
6762
6763Your profile page has a **Microsoft connection** card that links your Microsoft
6764account through Auth0 so Luniko can call Microsoft Graph on your behalf — this
6765is what lets features that depend on your calendar or Microsoft profile work.
6766
6767![Connect your Microsoft account](shot:microsoft-connection-card)
6768
6769## Connect it
6770
6771Open your account menu in the top-right corner and choose **Profile**. Under
6772**Microsoft connection**, press **Connect Microsoft Account**. You are sent to
6773Microsoft to sign in and approve access, then returned to your profile, where
6774a message confirms you are connected.
6775
6776## Fix a broken connection
6777
6778Microsoft can invalidate a connection — a password change, an admin revoking
6779consent, or Luniko asking for a permission it did not have before. When that
6780happens you will see a message explaining why (not connected yet, the
6781connection was invalidated, or a permission is missing) the next time
6782something tries to use it.
6783
6784Press **Refresh Permissions** to run through the same Microsoft sign-in and
6785consent screen again. This re-establishes the connection and grants anything
6786newly required, without removing the old one first.
6787
6788## Check it's working
6789
6790**Test connection** calls Microsoft Graph right away and shows what came
6791back, so you can confirm the connection is live without waiting for a feature
6792that depends on it to try and fail first.
6793
6794Connecting Microsoft is separate from adding another email address to your
6795profile — see [Other email addresses on your profile](/help/profile-settings/other
6795-email-addresses)
6796for that.
6797`,W0e=`---
6798title: Turn emails into action items
6799summary: Forward email to your personal Luniko address and it becomes an action item, filed the way you choose.
6800requires: []
6801aka:
6802  - email settings
6803  - forward email to luniko
6804  - email to action item
6805  - action item from email
6806  - where do emails i forward go
6807  - triage vs action logs
6808questions:
6809  - How do I turn an email into an action item?
6810  - Where do emails I forward to Luniko end up?
6811  - How do I make forwarded emails skip triage?
6812  - What happens if I reply on the same email thread later?
6813order: 70
6814verified: { by: Jas, on: 2026-09-15 }
6815---
6816
6817The **Email** tab of Settings gives you a personal address: send or forward
6818an email to it and Luniko turns it into one or more action items.
6819
6820## Open it
6821
6822Open your account menu in the top-right corner, choose **Settings**, then the
6823**Email** tab. Your address is shown at the top — press it, or the copy icon
6824beside it, to copy it.
6825
6826## How it works
6827
6828Luniko reads the subject and body, forwarded thread included, and pulls out
6829the tasks it finds — one email can become several action items. Send it from
6830your own work email, since mail from outside Luniko and its partner domains
6831is ignored. Reply on the same thread later, while the item it created is
6832still in Triage, and Luniko adds the reply to that item instead of making
6833another one. Once that item has been submitted, a reply on the thread becomes
6834a new item of its own, and later replies add to the new one. The original
6835email stays attached to the item either way.
6836
6837## Where new items land
6838
6839**Default workspace** chooses what happens next: **Triage** holds each item
6840for you to review and submit, while **Action Logs** files it straight into a
6841log, skipping triage. Choosing Action Logs requires a **Destination action
6842log** — nothing can file into a log that was never picked, so this stays
6843unset until you choose one. With Triage as the default, the same destination
6844field only pre-fills the log on the triage row; you can still change it
6845there.
6846
6847## Filling in what the email left out
6848
6849**Default responsible doer** is used only when the email itself does not say
6850who owns the task. **Default due date**, written as **Received +** a number
6851of days, is used only when no deadline can be read from the email — leave it
6852blank and an item with no readable deadline goes through with no due date at
6853all. What the email actually says always wins over both.
6854`,B0e=`---
6855title: Change your general settings
6856summary: Set your default screen after login, your dictation language, and whether Pulse's hero video shows.
6857requires: []
6858surfaces: [/profile]
6859aka:
6860  - general settings
6861  - settings dialog
6862  - default landing page
6863  - default screen after login
6864  - dictation language
6865  - hide the hero video
6866  - which screen luniko opens to
6867questions:
6868  - How do I change what screen Luniko opens to?
6869  - How do I change the dictation language for the capture button?
6870  - How do I hide the big video at the top of Pulse?
6871  - Where is the settings dialog?
6872order: 30
6873verified: { by: Jas, on: 2026-09-15 }
6874---
6875
6876The **General** tab of Settings holds the handful of preferences that only
6877need a single control each, so none of them get a tab of their own.
6878
6879## Open it
6880
6881Open your account menu in the top-right corner and choose **Settings**. It
6882opens on **General** by default.
6883
6884## Default screen after login
6885
6886Choose which screen Luniko takes you to after you sign in. **Automatic**
6887follows Luniko's usual rule for your access level; picking a specific screen
6888overrides that. A link you follow directly — from an email, a share, or a
6889bookmark — always wins over this setting.
6890
6891## Dictation language
6892
6893Sets the language for the capture button and the composer's microphone.
6894**Auto-detect** follows what you say as you speak, including mid-recording.
6895
6896## Hide hero video
6897
6898Pulse normally leads with a large video for the latest meeting. Turning this
6899on removes that treatment — the meeting still appears as a regular card
6900further down the feed.
6901
6902## If you also see a PowerBI dashboard control
6903
6904Administrators with the schedule-mirror capability see an additional card
6905here for rebuilding the schedule dashboard on demand. That control is
6906covered in [The Smartsheet mirror](/help/schedules/smartsheet-mirror), not
6907here — everyone else does not see it.
6908`,H0e=`---
6909title: Change your meeting settings
6910summary: Control when the notetaker joins your meetings, and how meeting action buttons appear.
6911requires: []
6912aka:
6913  - meeting settings
6914  - notetaker settings
6915  - manual join
6916  - recording settings
6917  - never record this meeting
6918  - meeting action buttons
6919  - hide meeting buttons
6920questions:
6921  - Where do I control when the notetaker joins my meetings?
6922  - How do I stop a meeting from ever being recorded?
6923  - How do I make the buttons on a meeting card always show?
6924order: 40
6925verified: { by: Jas, on: 2026-09-15 }
6926---
6927
6928The **Meetings** tab of Settings has three parts — **Manual join**,
6929**Recording** and **Display** — plus a right-hand rail showing your calendar
6930connection and which of your upcoming meetings will be recorded.
6931
6932## Open it
6933
6934Open your account menu in the top-right corner, choose **Settings**, then the
6935**Meetings** tab.
6936
6937## Manual join and Recording
6938
6939**Manual join** sends the notetaker into a specific meeting right now, and
6940also has an **Invite Fireflies** link for sending that bot into a meeting it
6941missed. **Recording** is where you choose whether the notetaker joins every
6942meeting on your calendar, only ones you allow, or none automatically, and
6943where you can block recording for any meeting whose title (or invite body)
6944contains a word you list. Both are covered in
6945[Send the notetaker to a meeting](/help/notetaker/send-the-notetaker) and
6946[Set up the notetaker](/help/notetaker/set-up-the-notetaker), which also
6947cover connecting your calendar from the rail on the right.
6948
6949## Display
6950
6951Controls whether the action buttons on a meeting — the small controls for
6952things like sharing, deleting or opening it — sit hidden until you hover or
6953focus them, or always show. **Auto-hide** and **Always show** are set
6954separately for **Table view** and **Grid view**, since the two layouts have
6955room for buttons in different amounts.
6956
6957Everything on this tab saves as you change it — there is no separate save
6958button, only a small status line at the bottom of the panel confirming the
6959change went through.
6960`,q0e=`---
6961title: Change your notification settings
6962summary: Choose what you're notified about, how often, and whether this browser gets desktop notifications.
6963requires: []
6964aka:
6965  - notification settings
6966  - turn off notifications
6967  - stop mentioning me
6968  - batch notifications
6969  - desktop notifications
6970  - notification bell settings
6971  - notify me less
6972questions:
6973  - How do I turn off notifications for something I'm following?
6974  - How do I get notifications less often instead of instantly?
6975  - How do I turn on desktop notifications?
6976  - Why do I keep getting notified about sync changes?
6977order: 50
6978verified: { by: Jas, on: 2026-09-15 }
6979---
6980
6981The **Notifications** tab of Settings controls what you hear about, how
6982often, and on which device — separately from what still appears in your
6983[Following feed](/help/following/your-following-feed), which is unaffected by
6984any of this.
6985
6986## Open it
6987
6988Open your account menu in the top-right corner, choose **Settings**, then the
6989**Notifications** tab.
6990
6991## What you're notified about
6992
6993Each category — **Action items**, **RAID entries**, **Schedule tasks**,
6994**Meetings**, **Mentions**, and **Shared with me** — has its own switch.
6995Turning one off stops you hearing about it; items you follow still show up
6996in Following either way. While a category is on, its delivery menu lets you
6997choose **Instantly**, or a batched cadence from every hour up to once a day.
6998Batching only delays the interruption — a batched notification still reaches
6999your bell right away, it just waits before also alerting you.
7000
7001## Destination syncs
7002
7003A sync from a connected sheet rewrites the whole row, which can look like a
7004change even when nothing meaningful moved. Turn **Notify me about synced
7005changes** off to be told only about edits a person actually made.
7006
7007## This device
7008
7009**Desktop notifications on this device** is separate from everything above —
7010it is a browser-level subscription, not an account setting, so turning it on
7011here leaves your other devices exactly as they were. If your browser does
7012not support it, has it configured, or has it blocked, the panel says so
7013instead of letting you turn it on.
7014`,V0e=`---
7015title: Add other email addresses to your profile
7016summary: Add addresses you also appear under so meetings and mentions recognize you correctly.
7017requires: []
7018surfaces: [/profile]
7019aka:
7020  - other email addresses
7021  - add another email
7022  - my other emails
7023  - secondary email
7024  - alias email
7025  - meetings don't recognize my email
7026  - two email addresses
7027questions:
7028  - How do I add another email address to my profile?
7029  - Why isn't a meeting linking to me even though I attended?
7030  - Can adding a colleague's email give me access to their meetings?
7031  - How do I remove an email address I added?
7032shots:
7033  - id: other-emails-card
7034    route: /profile
7035    as: [viewer, editor, admin]
7036order: 20
7037verified: { by: Jas, on: 2026-09-15 }
7038---
7039
7040Your profile page has an **Other email addresses** card, for addresses you
7041also show up under, so meetings and mentions recognize you correctly even
7042when an invite or a message used a different address than your primary one.
7043
7044![Add other email addresses to your profile](shot:other-emails-card)
7045
7046## Add an address
7047
7048Open your account menu in the top-right corner and choose **Profile**. Under
7049**Other email addresses**, type the address into the box and press **Add**.
7050It appears in the list underneath your primary address, which is always
7051shown first and cannot be removed here.
7052
7053## Remove an address
7054
7055Press the **×** next to an address to remove it.
7056
7057## What this does and does not do
7058
7059Adding an address only helps Luniko recognize you as the same person under
7060more than one email. It does not change what you can see: an address you add
7061here cannot grant you access to a meeting, and it cannot be an address that
7062already belongs to someone else on the account — the system rejects it if
7063so.
7064
7065If you were in a meeting but it is not showing up as yours, check whether the
7066invite used an address you have not added yet.
7067`,K0e=`---
7068title: Customize your reaction emojis
7069summary: Pick which emoji you see for each reaction — your choice only, and it doesn't change how reactions are counted.
7070requires: []
7071aka:
7072  - reaction settings
7073  - change reaction emoji
7074  - custom reactions
7075  - reaction emojis
7076  - upload my own reaction
7077  - why do my reactions look different from a colleague's
7078questions:
7079  - How do I change what emoji shows for a reaction?
7080  - Can I upload my own image as a reaction?
7081  - Why does the same reaction show a different emoji for a colleague?
7082  - How do I reset a reaction back to the default emoji?
7083order: 80
7084verified: { by: Jas, on: 2026-09-15 }
7085---
7086
7087The **Reactions** tab of Settings lets you choose which emoji you personally
7088see for each reaction — an emotion like a thumbs-up or a laugh — that people
7089leave on things in Luniko.
7090
7091## Open it
7092
7093Open your account menu in the top-right corner, choose **Settings**, then the
7094**Reactions** tab.
7095
7096## Choose an emoji
7097
7098Press an emotion to open its picker. Search the full emoji set by name or
7099keyword, browse it grouped the way Unicode groups it, paste in an emoji of
7100your own, or upload an image to use instead. Once you have changed one, a
7101**Reset** option in its picker returns it to the shipped default.
7102
7103## What this changes, and what it doesn't
7104
7105This is entirely personal: it only changes which glyph you see for a given
7106emotion. A colleague who reacted with the same emotion may show a completely
7107different emoji, because they made a different choice here — and reactions
7108are still counted and grouped by the underlying emotion either way, not by
7109which image represents it for you.
7110`,G0e=`---
7111title: Comment and react in Pulse
7112summary: Comment, reply, mention people, and drop an emoji reaction on any card in the feed.
7113module: meetings
7114surfaces: [/pulse]
7115aka:
7116  - comment on pulse
7117  - reply to a comment
7118  - react to a meeting
7119  - mention someone in pulse
7120  - add a gif
7121  - emoji reactions
7122questions:
7123  - How do I comment on a card in Pulse?
7124  - Can I mention someone in a Pulse comment?
7125  - How do I react to a card?
7126  - Can I edit or delete my comment?
7127order: 30
7128verified: { by: Jas, on: 2026-09-15 }
7129---
7130
7131Every card in the feed — a meeting, a RAID entry, a clip — takes a comment
7132and an emoji reaction, so a conversation about something can happen right
7133where it appears rather than somewhere else.
7134
7135## Comment
7136
7137Press **Comment** under a card to open its thread, then write in the box
7138underneath (**Add a comment… use @ to mention**). Type **@** to bring up a
7139list of people to mention. You can also drop in a GIF.
7140
7141A comment can be replied to once — replies don't nest further. You can edit
7142or delete your own comments and replies from the **⋯** menu next to them;
7143everyone else's stay as they wrote them, and a deleted comment leaves behind
7144*"This comment was deleted"* rather than disappearing outright.
7145
7146## React
7147
7148Press the smile icon beside Comment to open the emoji picker and pick a
7149reaction. Picking the same one again removes it. Hovering an existing
7150reaction shows who left it; your own always shows as "You" rather than by
7151name to yourself.
7152
7153Comments carry their own reactions too — react to a specific reply the same
7154way, from the reaction control on its row.
7155
7156## Who can join in
7157
7158Anyone who can see the card can comment and react on it. If a card is
7159withheld from you, its comment and reaction counts are withheld along with
7160it rather than showing a number for something you cannot open.
7161`,Y0e=`---
7162title: What Pulse is
7163summary: Pulse is a feed of recent meetings, decisions and activity, written for you by Luna.
7164module: meetings
7165surfaces: [/pulse]
7166commands: [nav.pulse]
7167aka:
7168  - the twitter feed
7169  - the feed
7170  - pulse
7171  - catch up
7172  - activity
7173  - what did I miss
7174  - the meeting feed
7175questions:
7176  - What is Pulse?
7177  - Is Pulse the same as the meeting recordings?
7178  - Who writes the summaries in Pulse?
7179  - How do I filter what shows in Pulse?
7180shots:
7181  - id: pulse-feed
7182    route: /pulse
7183    as: [viewer, editor]
7184order: 10
7185verified: { by: Jas, on: 2026-09-15 }
7186---
7187
7188Pulse is a feed of what has been happening across your meetings — a card per
7189meeting, written as a short summary rather than a raw transcript, so you can
7190catch up without watching the recording.
7191
7192![What Pulse is](shot:pulse-feed)
7193
7194Each card's summary, and the key moments underneath it when you press **See
7195more**, are generated by Luna from the meeting's transcript. They are a
7196starting point for catching up, not a transcript substitute — press play on a
7197card to jump straight to the recording if you need the exact words.
7198
7199## What's in the feed
7200
7201Above the feed, five chips switch what you're looking at:
7202
7203- **All** — everything below, together.
7204- **Meetings** — the meeting cards only.
7205- **RAID** — risks, assumptions, issues, dependencies and decisions logged
7206  from a meeting.
7207- **Clips** — moments someone shared from a meeting.
7208- **Following** — only the items you follow.
7209
7210A filter row next to the chips narrows by date, and by person. Two cards sit
7211beside the feed on wide screens: **Live Meetings**, for anything recording
7212right now, and **Decisions this week**, a running list of the decisions
7213logged in the last few days. Press **Hide panel** to close them and give the
7214feed the full width.
7215
7216## Comment and react
7217
7218Every card takes a comment and an emoji reaction — see
7219[Comments and reactions](/help/pulse/comments-and-reactions).
7220
7221## Who sees what
7222
7223Pulse only ever shows meetings you already have access to, and video only
7224plays where a recording carries it — see
7225[What you can and cannot see in Pulse](/help/pulse/what-you-can-see-in-pulse).
7226`,Z0e=`---
7227title: What you can and cannot see in Pulse
7228summary: Pulse only ever shows meetings you already have access to, and video only where a recording carries it.
7229module: meetings
7230surfaces: [/pulse]
7231aka:
7232  - why can't I see this meeting in pulse
7233  - missing meeting in the feed
7234  - no video in pulse
7235  - private meeting in pulse
7236  - who can see this in pulse
7237questions:
7238  - Why is a meeting missing from my Pulse feed?
7239  - Why does one card have video and another doesn't?
7240  - Can everyone see everything in Pulse?
7241order: 20
7242verified: { by: Jas, on: 2026-09-15 }
7243---
7244
7245Pulse is a view onto the same meetings as the Meetings page — it never
7246widens what you can see, it only presents it differently. If you cannot open
7247a meeting from Meetings, its card will not appear in Pulse either, and a
7248meeting marked private stays private in both places.
7249
7250## Whether a card has video
7251
7252Some cards play a recording when you press them; others open with no video
7253tile at all. That depends on the meeting itself — whether it carries a
7254recording you're allowed to watch — not on Pulse. See
7255[Why some meetings show video and some don't](/help/meetings/why-some-meetings-have-video)
7256for what decides that.
7257
7258## Who set the audience
7259
7260Who besides the people who attended can see a meeting — and its clips — is
7261set by an administrator, meeting by meeting. See
7262[Who can see a meeting](/help/meetings/who-can-see-a-meeting).
7263
7264## The Following filter
7265
7266The **Following** chip narrows the feed to items you follow, so it can look
7267emptier than **All** even though nothing was hidden from you — it's a filter,
7268not a visibility limit. Switch back to **All** to see everything you're
7269otherwise allowed to.
7270`,J0e=`---
7271title: Edit a schedule
7272summary: Change tasks and dates directly in the sheet, insert or delete tasks, and set a schedule's working days and default destinations.
7273requires: [schedules.edit]
7274surfaces: [/schedules]
7275aka:
7276  - edit a schedule
7277  - add a task
7278  - insert a task
7279  - delete a task
7280  - change a task's dates
7281  - set a time on a task
7282  - task duration
7283  - hours and minutes on a task
7284  - add a child task
7285  - schedule settings
7286  - working days
7287questions:
7288  - How do I add a task to a schedule?
7289  - Can I delete a task and its subtasks together?
7290  - How do I undo a deleted task?
7291  - How do I set which days are working days?
7292  - Can a task start at a particular time of day?
7293  - How do I give a task a duration in hours or minutes?
7294order: 20
7295verified: { by: Jas, on: 2026-09-15 }
7296---
7297
7298Tasks in a schedule are edited directly in the grid — double-click a cell to
7299change it, the same as any spreadsheet.
7300
7301## Adding, inserting and deleting tasks
7302
7303Right-click a row for **Insert Above**, **Insert Below** and **Add Child
7304Task**. A new task starts titled "New Task" until you rename it. **Delete
7305Task** removes a row — if it has subtasks, the option names how many will go
7306with it ("Delete Task and 3 Subtasks", for example) and removing them is one
7307action, not one at a time.
7308
7309A delete does not happen immediately: a toast appears with an **Undo**
7310button, and only after a few seconds without pressing it does the task
7311actually leave the schedule. Inserting a task shows the same kind of toast so
7312a task you did not mean to add can be undone too.
7313
7314## Dates, times and duration
7315
7316**Start** and **Finish** hold a date, and optionally a time of day. A task
7317that never needs a clock never grows one: leave the time off and the cell
7318shows the date alone, the way it always has.
7319
7320To set one, type it into the cell — \`9/4/2026 9:30am\`, or \`Sep 4 2026 9:30am\`.
7321In **Finish** you can type the time on its own (\`9:45\`) and it lands on the
7322day the task starts, which is what a short cutover row usually wants. The cell
7323shows the date as MM/DD/YYYY, and adds the clock only when the task has one.
7324
7325The task drawer has the same two halves separately: the date picker changes
7326the day and leaves any time alone, and a time field sits beside it once the
7327task has a date. Clearing that field takes the time back off.
7328
7329**Duration** reads and accepts both units. A plain number is working days, as
7330before — \`3\` and \`3d\` are the same thing. Type \`15m\`, \`2h 30m\` or \`1:30\` for a
7331span measured on the clock. A task only shows a duration in minutes when
7332**both** its start and finish carry a time; with a date-only end, working days
7333is the only honest answer and that is what the cell shows.
7334
7335Entering a duration in minutes moves the finish to the right time on the
7336clock. Entering one in days keeps the start's time of day rather than
7337discarding it.
7338
7339A schedule mirrored to a sheet keeps working. The sheet's own date columns
7340carry no time at all, so the sync sends the date and leaves the clock here —
7341the date still comes from the sheet, and the time you typed stays on the task.
7342
7343## Schedule settings
7344
7345The gear icon in the toolbar opens **Schedule Settings**. Under **Config**,
7346set which days of the week count as working days, add non-working days
7347(holidays and similar), and choose the default destination new action items
7348and RAID entries created from this schedule are sent to. Under **Appearance**,
7349**Sticky group rows** keeps a group's parent row pinned at the top while you
7350scroll through its children.
7351
7352## Who can do this
7353
7354Editing a schedule needs the *edit schedules* capability, which every editor
7355has. Without it — or on a schedule that has been locked — the grid still
7356opens, but every change is rejected and the schedule tells you it is
7357read-only instead of saving.
7358`,Q0e=`---
7359title: Lock a schedule read-only
7360summary: A locked schedule cannot be changed by anyone until it is unlocked.
7361requires: [schedules.lock]
7362surfaces: [/schedules]
7363aka:
7364  - lock a schedule
7365  - unlock a schedule
7366  - read-only schedule
7367  - schedule locked
7368  - freeze a schedule
7369questions:
7370  - How do I lock a schedule read-only?
7371  - Why can't I edit this schedule?
7372  - What does the Read-only badge mean?
7373  - Who can unlock a schedule?
7374order: 30
7375verified: { by: Jas, on: 2026-09-15 }
7376---
7377
7378A locked schedule freezes in place. Every task, date and assignment on it
7379stays exactly as it is until someone unlocks it — nothing is deleted, but
7380nothing moves either.
7381
7382## What a locked schedule looks like
7383
7384A small **Read-only** badge, with a lock icon, appears next to the schedule's
7385name in the toolbar. Trying to edit a cell, add a task or delete one behaves
7386the same as trying to edit any read-only schedule: the schedule tells you the
7387change did not save. This is not a permissions message about you specifically
7388— nobody can change a locked schedule, editor or not, until it is unlocked.
7389
7390## Who can do this
7391
7392Locking and unlocking a schedule is restricted to administrators.
7393<!-- VERIFY: where in the product an administrator locks or unlocks a
7394schedule — no lock/unlock control was found in the web app on this branch. -->
7395If a schedule you rely on is locked and you think that is wrong, ask an
7396administrator.
7397`,X0e=`---
7398title: Schedules
7399summary: Open your organization's project schedules as a sheet or a Gantt chart — still being built, and connected to a schedule your organization actually runs on.
7400requires: [schedules.view]
7401surfaces: [/schedules]
7402commands: [nav.schedules]
7403aka:
7404  - the schedule
7405  - schedules
7406  - BT schedule
7407  - business transformation schedule
7408  - project schedule
7409  - the gantt chart
7410  - project plan
7411  - the sheet
7412questions:
7413  - What is the Schedules page for?
7414  - Is the schedule connected to a real spreadsheet?
7415  - Can I switch between a sheet and a Gantt chart?
7416  - Why can't I edit anything on this schedule?
7417shots:
7418  - id: schedules-list
7419    route: /schedules
7420    as: [viewer, editor]
7421order: 10
7422verified: { by: Jas, on: 2026-09-15 }
7423---
7424
7425Schedules is still in development, and every schedule you see is connected to
7426a live spreadsheet your organization runs its project work from. Nothing here
7427is a sandbox: a date, an assignment or a task you change can move the real
7428plan. Treat this section carefully until it is finished, and do not
7429experiment with a schedule you were not asked to change.
7430
7431![Schedules](shot:schedules-list)
7432
7433## Opening a schedule
7434
7435The **Schedules** page lists every schedule as a card. Choose one to open it.
7436
7437Inside, a toolbar lets you switch between the **Sheet view** and the
7438**Gantt view** using the toggle near the top right — the sheet is a grid of
7439tasks and dates; the Gantt view draws the same tasks as bars along a
7440timeline, with its own zoom control for how much time each column covers. A
7441search box in the middle finds tasks by name. A small icon next to the
7442schedule's name shows whether it has synced recently — a spinning icon means
7443it is syncing now, and clicking it starts a sync.
7444
7445## Read-only schedules
7446
7447Some schedules are locked. A **Read-only** badge with a lock icon appears
7448next to the name, and any change you try to make does not save. See
7449[Lock a schedule read-only](/help/schedules/lock-a-schedule) for what that
7450means and who can do it.
7451
7452## Who can do this
7453
7454Everyone who can sign in can open and look through a schedule. Changing
7455anything on one needs more — see
7456[Edit a schedule](/help/schedules/editing).
7457`,e_e=`---
7458title: Rebuild the PowerBI dashboard
7459summary: Manually run the nightly schedule calculation that rebuilds the sheet PowerBI reads and updates the live schedule sheet.
7460requires: [schedules.run_mirror]
7461aka:
7462  - schedule mirror
7463  - the mirror
7464  - rebuild the mirror
7465  - run the mirror
7466  - PowerBI dashboard
7467  - rebuild the dashboard
7468  - dashboard sheet
7469  - update schedule scripted fields
7470  - blocked status
7471  - trending
7472  - full sheet
7473  - flat sheet
7474questions:
7475  - How do I rebuild the PowerBI dashboard?
7476  - Why is Rebuild now disabled?
7477  - When does the dashboard update on its own?
7478  - What happens while the dashboard is rebuilding?
7479order: 40
7480---
7481
7482One calculation works out each schedule task's **Trending**, **% Complete
7483Actual**, **% Complete Expected** and **Status** — **Complete** at 100%,
7484**Blocked** while any task it depends on is unfinished, **Not Blocked**
7485otherwise. It runs every night at midnight Pacific and writes the results to
7486two sheets: the **flat sheet**, which holds every field PowerBI's dashboard
7487needs, and the **full sheet**, the live schedule the project uses day to day.
7488This is the manual control for when either needs to be current sooner.
7489
7490## Where it is
7491
7492Open **Settings**, and on the **General** tab you'll find a card titled
7493**Update Schedule Scripted Fields**, below the rest of your preferences. It
7494shows the outcome of the last run — when it ran, who or what triggered it,
7495how long it took, which sheet it wrote to, and how many rows loaded or cells
7496changed — flagging any rows the sheet rejected as an incomplete load.
7497
7498## Running it
7499
7500Choose what to write from the menu beside the button:
7501
7502- **Flat sheet** empties the flat sheet and reloads all of it, which takes a
7503  few minutes. Anyone looking at the sheet — or a PowerBI refresh — sees it
7504  partly empty while that happens.
7505- **Full sheet** writes Trending, % Complete Actual, % Complete Expected and
7506  Status into the full sheet. No rows are added, removed or cleared, and only
7507  cells whose value changed are written.
7508- **Flat + full sheets** rebuilds the flat sheet, then updates the full sheet,
7509  from the same calculation. This is what the nightly run does.
7510
7511Press **Rebuild now**. A dialog, such as **"Write to the flat sheet?"**,
7512repeats what that choice does and asks you to confirm. Confirm, and the card
7513shows the run in progress until it finishes.
7514
7515The button stays disabled while a rebuild is already in progress, and
7516disabled again if the dashboard's status cannot be read at all. Rebuilds only
7517run from your organization's production environment — elsewhere, the card
7518says so and the button never becomes available.
7519
7520## Who can do this
7521
7522The **Update Schedule Scripted Fields** card only appears for administrators who hold the
7523capability to rebuild the schedule mirror. Everyone else does not see it in
7524Settings at all.
7525`,t_e=`---
7526title: Take notes
7527summary: Write short notes that save themselves as you type, alongside your mind maps in Scratch Pad.
7528requires: []
7529surfaces: [/scratch-pad]
7530aka:
7531  - scratchpad
7532  - scratch pad
7533  - notes
7534  - my notes
7535  - take a note
7536  - new note
7537  - create a note
7538  - note taking
7539questions:
7540  - How do I create a note?
7541  - Where are my notes saved?
7542  - Do notes save automatically?
7543  - What's the difference between notes and mind maps in Scratch Pad?
7544shots:
7545  - id: scratch-pad-notes
7546    route: /scratch-pad/note/$demoNoteId
7547    as: [viewer]
7548order: 10
7549verified: { by: Jas, on: 2026-09-15 }
7550---
7551
7552Scratch Pad is where you write things down that don't belong in a meeting or
7553a formal action — quick notes, alongside mind maps, that are yours until you
7554choose to send a copy.
7555
7556![Take notes](shot:scratch-pad-notes)
7557
7558## Create and write a note
7559
7560Press the pencil icon at the top of the sidebar to start a new note. Give it
7561a title, or leave it blank — an untitled note takes its name from the first
7562line you write instead. Everything you type saves on its own a moment after
7563you stop; there is no save button.
7564
7565## Finding a note again
7566
7567The sidebar lists your notes grouped by when they last changed — Today,
7568Yesterday, and further back by week and month. Opening or clicking into a
7569note does not move it; it moves up only when you change it. Each row shows a preview of
7570its text. A small radio icon marks a note written during a meeting; a send
7571icon marks one someone sent you (see [Send a note to
7572someone](/help/scratch-pad/send-a-note)). [Search narrows the
7573list](/help/scratch-pad/search-your-notes) as you type.
7574
7575## Turning a note into something else
7576
7577The **Create mind map** button in a note's toolbar builds a mind map from its
7578outline — see [Turn a note into a mind
7579map](/help/scratch-pad/turn-a-note-into-a-mind-map). The note itself is
7580untouched.
7581
7582## Deleting a note
7583
7584Open a note's **•••** menu in the sidebar and choose **Delete**. You are asked
7585to confirm by name before it's removed.
7586`,n_e=`---
7587title: Search your notes
7588summary: Filter your notes list to the ones matching what you type, by title or content.
7589requires: []
7590surfaces: [/scratch-pad]
7591aka:
7592  - search notes
7593  - find a note
7594  - search scratch pad
7595  - filter notes
7596  - search my notes
7597order: 40
7598questions:
7599  - How do I search my notes?
7600  - Does search look inside the note, or just the title?
7601verified: { by: Jas, on: 2026-09-15 }
7602---
7603
7604The **Search** field above your notes list in Scratch Pad filters as you
7605type. It matches against both a note's title and its written content, so a
7606word buried in the middle of a note is enough to find it — you don't need to
7607remember what you titled it.
7608
7609The Mind Maps tab has its own search box in the same spot, filtering that
7610list by title instead; the two searches don't mix, so switching tabs starts
7611from a clean search.
7612
7613Clear the field to see every note again. When nothing matches, the list says
7614so — *"No notes match your search"* — rather than showing an empty list with
7615no explanation.
7616`,r_e=`---
7617title: Send a note to someone
7618summary: Give another person their own copy of a note, and find the notes people have sent you.
7619requires: []
7620surfaces: [/scratch-pad]
7621aka:
7622  - send a note
7623  - share a note
7624  - send a copy
7625  - notes sent to me
7626  - notes people sent me
7627  - note someone sent me
7628  - sent by
7629order: 30
7630questions:
7631  - How do I send a note to someone?
7632  - What happens to a note I send?
7633  - Can the other person edit the note I sent them?
7634  - Where do notes people sent me show up?
7635verified: { by: Jas, on: 2026-09-15 }
7636---
7637
7638Press **Send a copy** in a note's toolbar, or open its **•••** menu in the
7639sidebar and choose the same, to give another person their own copy of it.
7640
7641## Choosing who gets it
7642
7643Search for one or more people by name or email, tick them, and press **Send
7644to N**. Each person gets an independent copy in their own Scratch Pad — the
7645dialog says as much: *"Each recipient gets their own copy of this note.
7646Changes you make later won't sync."* Nothing is emailed; it appears directly
7647in their notes list.
7648
7649## A note someone sent you
7650
7651A note sent to you looks like any other note in your list, marked with a
7652small send icon, and shows a **Sent by** badge naming who sent it when you
7653open it. It is fully yours from there — edit it, send your own copy onward,
7654or delete it, with no link back to the sender's original.
7655
7656There is no way to recall a copy once it has been sent.
7657`,o_e=`---
7658title: Turn a note into a mind map
7659summary: Build a mind map from a note's outline in one press, leaving the note itself untouched.
7660requires: []
7661surfaces: [/scratch-pad]
7662aka:
7663  - note to mind map
7664  - convert note
7665  - make a mind map from a note
7666  - create mind map button
7667  - turn a note into a map
7668order: 20
7669questions:
7670  - Can I turn a note into a mind map?
7671  - What happens to my note if I make a mind map from it?
7672  - Does converting a note delete it?
7673verified: { by: Jas, on: 2026-09-15 }
7674---
7675
7676Open a note and press **Create mind map** in its toolbar. Luniko builds a new
7677[mind map](/help/mindmaps/create-a-mind-map) from the note's outline and
7678opens it, ready to keep editing.
7679
7680## How the outline becomes a map
7681
7682The map's centre branch takes the note's title. Bulleted or numbered lists in
7683the note become nested branches under it, keeping their indentation; every
7684other line — a plain paragraph or heading — becomes its own branch off the
7685centre. An empty list item is skipped rather than turned into a blank branch.
7686
7687## Nothing about the note changes
7688
7689The note stays exactly as it was, in your notes list, and you can create
7690another mind map from it later — each press makes a new one rather than
7691updating a previous conversion. The map and the note are separate documents
7692from that point on; editing one does not touch the other.
7693`,i_e=`---
7694title: Search across everything at once
7695summary: Ask a question in Global Search and get an answer built from across every meeting you can already see, with sources you can jump to.
7696requires: [search.global]
7697surfaces: [/global-search]
7698commands: [nav.global-search]
7699aka:
7700  - global search
7701  - search everything
7702  - search across meetings
7703  - ask across every meeting
7704  - cross-meeting search
7705  - find it in any meeting
7706  - search all my meetings
7707questions:
7708  - How do I search across every meeting at once?
7709  - Can I search more than one meeting's transcript at a time?
7710  - What is Global Search?
7711  - Why can't I see Global Search?
7712shots:
7713  - id: global-search-empty
7714    route: /global-search
7715    as: [admin]
7716order: 10
7717verified: { by: Jas, on: 2026-09-15 }
7718---
7719
7720Most of the app searches one place at a time. Global Search reads across
7721every transcript at once and answers in plain language, with each claim
7722linked back to the moment it was said.
7723
7724![Search across everything at once](shot:global-search-empty)
7725
7726## Ask a question
7727
7728Type into the box — *"Ask anything about your meetings…"* — and press the
7729arrow to submit. The answer appears above, followed by a **Sources** list:
7730one card per transcript the answer drew from, each showing the meeting's
7731name, its date, and the exact line quoted. Select **Jump to moment** on a
7732source to open that meeting at the moment it was said.
7733
7734Each answer also carries a confidence badge — **High**, **Medium**, or
7735**Low** — with a percentage next to it, so you can judge how much the
7736answer leaned on real evidence versus a thin match. Select **Copy answer +
7737sources** to copy the answer, its confidence, and every source as text.
7738
7739Global Search only searches meetings you could already open on your own —
7740it does not open a door that was not already open. A meeting you cannot see
7741in Meetings or Pulse will not appear as a source here either.
7742
7743## Who can do this
7744
7745Global Search is for administrators by default. If you do not see it, ask
7746an administrator to grant it to you individually from
7747[Roles and capabilities](/help/admin/roles-and-capabilities) — it does not
7748require the full administrator bundle. Without it, the Global Search icon
7749does not appear in the sidebar, and opening \`/global-search\` directly sends
7750you back to a page you can already use.
7751
7752Global Search only answers from transcripts. For an assistant that can also
7753take actions on your behalf, see [Ask Luna](/help/luna/ask-luna).
7754</content>
7755`,a_e=`---
7756title: Share with someone outside your organization
7757summary: A permission an administrator grants that lets someone share a record your organization owns with people outside it, always written to an audit log.
7758requires: [record.share_external]
7759aka:
7760  - share outside our organization
7761  - share with another company
7762  - external share
7763  - share outside the organization
7764  - send this to someone outside
7765  - share with a partner
7766questions:
7767  - What does sharing something outside the organization let someone do?
7768  - Is sharing outside the organization logged?
7769  - How do I get permission to share externally?
7770  - Can someone impersonating me share a record outside the organization?
7771order: 10
7772verified: { by: Jas, on: 2026-09-15 }
7773---
7774
7775Sharing something inside Luniko — a meeting with a colleague, a moment to
7776Pulse — stays inside your organization. Sharing a record your organization
7777owns with someone **outside** it is a separate permission, because it moves
7778information past a boundary nothing else here crosses. Every time it is
7779used, the share is written to an audit log, so there is a record of exactly
7780what left the organization and when.
7781
7782## Who can do this
7783
7784This permission goes to administrators by default. Because it controls what
7785leaves your organization altogether, it is one an administrator should be
7786deliberate about handing out — grant or remove it for a specific person from
7787[Roles and capabilities](/help/admin/roles-and-capabilities).
7788
7789It also cannot be exercised in your name. If an administrator is
7790[viewing the app as you](/help/platform/view-as-another-person), sharing a
7791record outside the organization is one of the few actions that stays
7792refused outright — attributed to the administrator, never to you, if it
7793were ever allowed at all.
7794</content>
7795`,s_e=`---
7796title: Tag things for yourself
7797summary: Put your own private labels on anything you work with, then filter your Library by them.
7798requires: [tags.use]
7799surfaces: [/library, /calendar]
7800aka:
7801  - tags
7802  - my tags
7803  - personal tags
7804  - label a meeting
7805  - colour code
7806  - color code
7807  - organise my stuff
7808  - my own labels
7809  - rename a tag
7810  - filter the calendar by tag
7811  - delete a tag
7812  - collections
7813  - mark as important
7814  - tag a whole series
7815questions:
7816  - Can anyone else see my tags?
7817  - What can I tag?
7818  - How do I rename or delete a tag?
7819  - How do I see only my tagged meetings on the calendar?
7820  - Are tags the same as the tags on an action item?
7821  - Does tagging something bookmark it?
7822  - How do I mark something as important?
7823order: 10
7824---
7825
7826A tag is a label you make up and put on things you work with. **Nobody else can
7827see your tags** — not your colleagues, not an administrator. They exist to help
7828you find your own way back to something.
7829
7830## What you can tag
7831
7832Meetings have a tag button wherever they're listed. On a meeting card,
7833the tag list opens from the **▾** beside the bookmark icon. Anything else in
7834your Library — a bookmarked action item, RAID entry or schedule task — can be
7835tagged from its **⋯** menu in the Library, under **Edit tags**. In any tag
7836list, tick a tag, or type a name to find one or create it. A tag carries a
7837name of up to 40 characters and one of nine colours, so you can tell groups
7838apart at a glance.
7839
7840On the **Calendar**, right-click a meeting and point at the arrow beside
7841**Bookmark** to open its tag list. For a recurring meeting, the toggle at the
7842top of that list chooses **This meeting** or **All in series**; with **All in
7843series**, what you tick applies to every meeting in the series, past and
7844upcoming. The calendar remembers the last one you picked.
7845
7846Tagging something also bookmarks it, the way putting a post in a collection
7847saves it, so it's kept in your **Library** and shows up wherever your
7848bookmarks do. Removing the bookmark takes its tags off too; the message that
7849follows has **Undo**, which puts back the bookmark and those exact tags. See
7850[Your library](/help/bookmarks/your-library).
7851
7852If you want to keep a list of important things, make a tag for it — there is
7853no separate important mark.
7854
7855## Finding and managing your tags
7856
7857Open **Library** and pick one or more tags from **Any tag** to see everything
7858carrying any of them. To manage them, press **Manage tags**: press the pencil
7859next to a tag to rename it, change its colour or delete it, or press **New
7860tag** to make one. Deleting a tag takes it off everything it was on.
7861
7862On the **Calendar**, the **Saved** section under **Filters** narrows what you
7863see to things you've bookmarked or tagged — see
7864[Filter the calendar](/help/calendar/filters).
7865
7866## These are not the tags on an action item
7867
7868Two different things share the word. The tags you see on action items and RAID
7869entries are set by your organization, the same for everyone, and are used to
7870sort work into streams. The tags described here are **yours alone**, named by
7871you, invisible to everybody else. Changing one has no effect on anyone else's
7872view of anything.
7873
7874## Who can do this
7875
7876Every editor and administrator has personal tags; viewers do not. It is not a
7877permission that protects one colleague's labels from another — nobody can see
7878them either way. Without it, you see a plain bookmark button where others see
7879the tag list, and your Library lists only what you've bookmarked.
7880`,l_e=`---
7881title: The analytics we collect
7882summary: Luniko records which features are used and when, and replays of sessions keep the layout but never the words.
7883aka:
7884  - analytics
7885  - tracking
7886  - posthog
7887  - session recording
7888  - are you watching me
7889  - what data do you collect
7890  - telemetry
7891questions:
7892  - What analytics do you collect?
7893  - Do you record my screen?
7894  - Can you see what I type?
7895  - Can our organization opt out of analytics?
7896verified: { by: Jas, on: 2026-09-05 }
7897order: 50
7898---
7899
7900Luniko uses a product-analytics service to understand how the product is used,
7901so that the team can see which features help and which get in the way. This
7902page says exactly what that involves.
7903
7904## Usage events
7905
7906When you use Luniko, events are recorded: which page you opened, which
7907feature you used, and when. Each event is tagged with the environment
7908(production or otherwise) and the surface you were on (the web app, the
7909Windows app, the phone). Errors that occur in the app are recorded too, so
7910they can be fixed.
7911
7912Events are tied to your user identity so that "how many people use this" can
7913be answered. They are not sold, and they are not shared with other
7914organizations.
7915
7916## Session replays
7917
7918The analytics service can replay a session: the sequence of screens and
7919clicks, as a video-like reconstruction. When that is switched on, Luniko's
7920configuration **masks all text** — every word on every screen is replaced
7921with placeholder blocks — **masks every input**, and **blocks every image and
7922video**. A replay shows that someone opened a meeting and scrolled the
7923transcript; it does not show which meeting, or a word of the transcript.
7924
7925Replays are off unless enabled in the analytics project's settings, where the
7926sampling rate also lives.
7927
7928## The playbook
7929
7930The FDE playbook, which a small number of people are given access to, records
7931who opened it and when in an access log of its own, and its session replays
7932mask everything on the page.
7933
7934## Opting out
7935
7936<!-- VERIFY: there is no per-organization analytics exclusion in the code
7937today; this is the gap raised on 2026-09-04. Until it exists, the honest
7938statement is the paragraph below. Replace it when the switch lands. -->
7939
7940There is not yet a switch an administrator can turn to exclude their
7941organization from analytics. If your organization needs that, ask Luniko and it
7942will be handled as a configuration request while the switch is built.
7943`,c_e=`---
7944title: Deleting your data
7945summary: A person can hide or nuke a meeting; an organization can ask Luniko to delete everything it owns, and Luniko will.
7946aka:
7947  - delete my data
7948  - delete everything
7949  - right to erasure
7950  - GDPR
7951  - remove our data
7952  - offboarding
7953  - leaving luniko
7954questions:
7955  - How do I delete my data?
7956  - Can we delete everything when we leave?
7957  - What happens to our data if we stop using Luniko?
7958  - Can I get a copy of our data?
7959verified: { by: Jas, on: 2026-09-05 }
7960order: 60
7961---
7962
7963There are three levels of deletion in Luniko, from one meeting to an entire
7964organization.
7965
7966## One meeting
7967
7968Anyone who attended a meeting can **hide** it, which removes it from every
7969list but keeps it recoverable. An administrator of the owning organization can
7970**nuke** it, which destroys the recording, transcript and summary for good.
7971Both are described in [Delete a meeting](/help/meetings/delete-a-meeting).
7972
7973Action items and RAID entries that came out of a meeting are not deleted with
7974it. They are records in their own right and are deleted from where they live —
7975Command Center, or the RAID log — by someone who may edit them.
7976
7977## Everything a person created
7978
7979Notes and mind maps belong to the person who made them and are deleted by that
7980person from Scratch pad. There is no administrator override for a person's
7981own notes.
7982
7983## Everything an organization owns
7984
7985An organization can ask Luniko to delete every record it owns: meetings and
7986their media, action items, RAID entries, comments, clips, destinations and the
7987organization's people. Because every record carries its owning organization,
7988this is a well-defined operation rather than a search. It is carried out by
7989Luniko staff, recorded in the audit trail, and confirmed to you in writing when
7990complete.
7991
7992<!-- VERIFY: the operational procedure for full-organization deletion (who
7993runs it, the checklist, confirmation wording) is not yet written down anywhere
7994in the repository. Write it before pointing a customer at this paragraph. -->
7995
7996## Getting a copy first
7997
7998Before deletion, an organization can ask for an export of what it owns.
7999<!-- VERIFY: the export format and mechanism are not built; describe them when
8000they are, and say nothing more specific than this sentence until then. -->
8001
8002## What deletion does not reach
8003
8004- **Backups.** A deleted record can remain in a database backup for a short
8005  rolling window before it ages out. See
8006  [How long we keep recordings](/help/trust/how-long-we-keep-recordings).
8007- **Other organizations' records that mention you.** If someone from another
8008  organization attended a meeting that *their* notetaker recorded, that
8009  meeting is theirs. Your deletion request does not reach it, in the same way
8010  theirs would not reach yours.
8011- **The audit trail.** Entries that record who did what are kept. They contain
8012  identifiers and decisions, not content.
8013`,u_e=`---
8014title: How long we keep recordings
8015summary: A recording stays in Luniko until someone with the right to delete it does so; nothing expires on a timer.
8016aka:
8017  - retention
8018  - data retention
8019  - how long do you keep my data
8020  - how long are meetings kept
8021  - do recordings expire
8022  - recording retention policy
8023questions:
8024  - How long do you keep my recordings?
8025  - Do meeting recordings expire?
8026  - Is there a retention period?
8027  - Where is my recording stored?
8028verified: { by: Jas, on: 2026-09-05 }
8029order: 10
8030---
8031
8032A meeting recording, its transcript and its summary stay in Luniko **until they
8033are deleted**. There is no automatic expiry. This is a deliberate choice: an
8034action item created in March links to the meeting it came from, and that link
8035should still work in November.
8036
8037## Where a recording lives
8038
8039When the notetaker joins a meeting, the recording is made by our recording
8040provider and held there **for 72 hours**. Within that window Luniko copies the
8041video, audio and poster image into storage that Luniko owns and controls. After
804272 hours the provider's copy expires on its own and only Luniko's copy remains.
8043
8044That storage is private to Luniko — it cannot be reached from the public
8045internet — and everything in it is encrypted at rest. It is in a region chosen
8046for the customer contract in force. <!-- VERIFY: state the region(s) once
8047confirmed with Jag; do not name a cloud vendor here. -->
8048
8049When you press play, the video reaches you through a signed link that stops
8050working within two days, and only to viewers in the USA and Canada. See
8051[Why some meetings show video and some don't](/help/meetings/why-some-meetings-have-video).
8052<!-- VERIFY: signed links and the country restriction apply only once the playback switch is on for production; confirm before publishing. -->
8053
8054## What makes a recording go away
8055
8056Only a person can remove a recording, and there are two ways to do it, which
8057are described in [Delete a meeting](/help/meetings/delete-a-meeting):
8058
8059- **Hiding** removes the meeting from every list but keeps everything. An
8060  administrator can restore it.
8061- **Nuking** destroys the recording, the transcript and the summary. A small
8062  tombstone stays so that links do not break. Nothing else remains and it
8063  cannot be recovered.
8064
8065Only administrators of the organization that owns the meeting can nuke it.
8066Someone who attended the meeting can hide it.
8067
8068## Backups
8069
8070Luniko's database is backed up on a rolling window, so a meeting that was
8071nuked can, for a short period, still exist in a backup that Luniko staff — not
8072your administrators — could restore in an emergency. After that window it is
8073gone from backups too. <!-- VERIFY: the backup retention window is a database
8074provider setting, not in this repository. Confirm the current number with Jag
8075before publishing a figure. -->
8076
8077Recording media is not versioned. When a recording is nuked, the file is
8078deleted, not archived.
8079
8080## If you need everything gone
8081
8082An organization can ask Luniko to delete every meeting it owns. That is a
8083request to Luniko, carried out by Luniko staff, and it is recorded in the
8084audit trail like any other administrative act. See
8085[Deleting your data](/help/trust/deleting-your-data).
8086`,d_e=`---
8087title: The audit trail
8088summary: Luniko keeps an append-only record of access decisions, and an organization can ask for the entries that concern its own records.
8089aka:
8090  - audit log
8091  - audit trail
8092  - who looked at this
8093  - access log
8094  - who accessed our data
8095questions:
8096  - Is there an audit log?
8097  - Can we see who accessed our records?
8098  - What is recorded when someone opens a meeting?
8099verified: { by: Jas, on: 2026-09-15 }
8100order: 40
8101---
8102
8103Luniko keeps an **append-only audit trail** of access decisions. Entries are
8104added, never edited and never removed.
8105
8106## What an entry records
8107
8108Each entry records who acted, on behalf of which organization, whether they
8109were viewing as another person, what they tried to do, whether it was allowed
8110or refused, why, and which record of which organization it concerned.
8111
8112Any decision that **refused** a request is always written. Entries that cross
8113an organization boundary are flagged so they can be reported on together.
8114
8115<!-- VERIFY: successful cross-organization reads are flagged for the audit
8116trail, but the write path for "allow" rows is a known gap in the code today
8117(apps/api/src/lib/auth/policyAudit.ts). Until it lands, say "refusals" here,
8118not "every access". Update this article when it does. -->
8119
8120## Asking for your entries
8121
8122An organization can ask Luniko for the audit entries that concern its own
8123records. This is the evidence behind what
8124[Who can see what](/help/trust/who-can-see-what) describes, not a substitute
8125for it.
8126`,h_e=`---
8127title: Who can see what
8128summary: Every request passes four checks, and the table of what each role may do is generated from the product itself, so it cannot be out of date.
8129aka:
8130  - permissions
8131  - roles
8132  - access matrix
8133  - who can see my meetings
8134  - can my boss see this
8135  - what can a viewer do
8136  - what can an admin do
8137  - security model
8138questions:
8139  - Who can see my meetings?
8140  - Can an administrator read every meeting?
8141  - What is the difference between a viewer, an editor and an admin?
8142  - Can someone from another company see our data?
8143verified: { by: Jas, on: 2026-09-05 }
8144order: 20
8145---
8146
8147Luniko decides whether you can do something by asking four questions, in
8148order, on every request. If any answer is no, the request stops there.
8149
81501. **Does your organization have this feature at all?** Features are grouped
8151   into modules an organization is given. If yours does not have Command
8152   Center, no one in it can reach Command Center, whatever their role.
81532. **Does your role allow this action?** Every action in the product is a
8154   named capability. Roles are bundles of capabilities: a *viewer* can read
8155   and comment, an *editor* can also create and edit, an *admin* can also
8156   configure the organization. An administrator can adjust one person's
8157   capabilities up or down from their bundle.
81583. **Are you allowed to reach this particular record?** A meeting, an action
8159   item, a RAID entry — each belongs to exactly one organization. You reach it
8160   because your organization owns it and your role permits it, or because you
8161   are named on it: you attended the meeting, or someone shared it with you.
81624. **Write it down.** Refusals are recorded. See
8163   [The audit trail](/help/trust/the-audit-trail).
8164
8165## Being an administrator is not the same as seeing everything
8166
8167This is the rule most people expect to be otherwise, so it is worth stating
8168plainly: **an administrator of your organization does not automatically see
8169every meeting your organization owns.** Administering — managing members,
8170audiences, modules and billing — is separate from reading. The capability to
8171read everything an organization owns belongs to no role. It is granted to one
8172named person at a time, only by Luniko, and every grant is recorded. Most
8173administrators never have it.
8174
8175## People outside your organization
8176
8177Someone from another organization never sees your organization. They can only
8178reach a **single record** they are named on — a meeting they attended, an item
8179shared with them — and nothing around it. Their administrators cannot reach
8180your records at all, whatever their role.
8181
8182## Private meetings
8183
8184Anyone who attended a meeting can mark it **private**. A private meeting is
8185visible only to the people who were in it. No role, no capability and no
8186administrator can open it.
8187
8188## The full table
8189
8190The table below is not written by hand. It is rendered from the same
8191definitions the product enforces, so when a capability moves between roles the
8192table changes with it.
8193
8194\`\`\`luniko-access-matrix
8195\`\`\`
8196`,m_e=`---
8197title: Your data and ours
8198summary: Every record in Luniko belongs to exactly one organization, and that ownership decides who may reach it.
8199aka:
8200  - data ownership
8201  - who owns the data
8202  - multi-tenant
8203  - is our data separate
8204  - can luniko see our meetings
8205  - tenant isolation
8206questions:
8207  - Who owns the recordings?
8208  - Is our data kept separate from other customers?
8209  - Can Luniko staff see our meetings?
8210  - Which organization owns a meeting with people from two companies?
8211verified: { by: Jas, on: 2026-09-05 }
8212order: 30
8213---
8214
8215Every meeting, action item, RAID entry, comment, clip and destination in
8216Luniko carries the identity of the **one organization that owns it**. That
8217single fact does most of the work of keeping organizations apart: every read
8218the product performs is scoped to an organization first, and everything else
8219follows.
8220
8221## Which organization owns a meeting
8222
8223The organization whose notetaker recorded it. If your notetaker joined, your
8224organization owns the meeting, its recording and everything created from it —
8225even if people from other organizations were in the room.
8226
8227Those other people can still see the meeting. They were in it, so they are
8228named on it, and being named on a record is the one way access ever crosses an
8229organization boundary. What they cannot do is see anything else your
8230organization owns, and their administrators cannot see the meeting at all.
8231
8232## What Luniko staff can and cannot see
8233
8234Luniko operates the platform. That means Luniko staff can see **how** the
8235platform is running — which organizations exist, which modules they have,
8236usage and billing, and the audit trail — without seeing **what** is in it.
8237Operating the platform does not include reading customer records.
8238
8239Where Luniko staff need to look inside an organization's records to fix
8240something you have asked us to fix, that access is time-limited, requires a
8241stated reason, and is recorded against the person who used it. See
8242[The audit trail](/help/trust/the-audit-trail).
8243
8244## Your data stays yours
8245
8246You can ask Luniko to hand over or delete every record your organization owns.
8247See [Deleting your data](/help/trust/deleting-your-data). Luniko does not use
8248one organization's data to build features for another.
8249
8250<!-- VERIFY: whether meeting content is used to train or evaluate models, and
8251under which agreement, is a contract question. Do not state a position here
8252until Yassen confirms the wording. -->
8253`,p_e=`---
8254title: Install the Windows app
8255summary: Install Luniko as an app from your browser so it opens on its own, without browser tabs or address bars.
8256requires: []
8257aka:
8258  - windows app
8259  - desktop app
8260  - install the app
8261  - download luniko
8262  - luniko on my desktop
8263  - pin luniko to the taskbar
8264  - app not opening in its own window
8265questions:
8266  - How do I install the Windows app?
8267  - Is there a desktop app for Luniko?
8268  - Do I need to download anything to install Luniko?
8269  - How do I update the app once it's installed?
8270order: 10
8271verified: { by: Jas, on: 2026-09-15 }
8272---
8273
8274Luniko installs straight from your browser as its own app — no download, no
8275installer file. Once installed, it opens in its own window with no address
8276bar or browser tabs, and can be pinned to your taskbar or Start menu like any
8277other app.
8278
8279## Install it
8280
8281Open Luniko in Edge or Chrome. Look for an install icon in the address bar
8282(a small monitor with a down arrow, or similar), or open the browser's menu
8283and look for an option like **Apps > Install this site as an app**. Confirm
8284the prompt, and Luniko opens as its own app from then on — you can launch it
8285again from your Start menu or taskbar, the same as any installed program.
8286
8287## Getting updates
8288
8289An installed app still runs from the web, so it updates itself. When a new
8290version has shipped, a notice appears telling you one is available. If you
8291have nothing unsaved, Luniko applies the update on its own the next time the
8292app is not in focus — you come back to the new version with nothing to do.
8293While something is unsaved, or while you're actively looking at it, the
8294notice waits until you choose to reload.
8295`,f_e=v({id:m().regex(/^[a-z0-9][a-z0-9-]*$/,"kebab-case id"),route:m().startsWith("/"),as:N(R(["viewer","editor","admin","operator"])).default(["editor"]),theme:R(["light","dark","both"]).default("both"),open:m().optional(),callout:In([m(),N(m())]).optional(),width:j().int().min(320).max(2560).default(1280)}),g_e=v({title:m().min(1),summary:m().min(1),requires:N(R(_o)).default([]),module:R(Ts).optional(),surfaces:N(m().startsWith("/")).default([]),commands:N(m()).default([]),testids:N(m()
8295).default([]),aka:N(m()).default([]),questions:N(m()).default([]),shots:N(f_e).default([]),verified:v({by:m().min(1),on:m().regex(/^\d{4}-\d{2}-\d{2}$/)}).optional(),order:j().int().default(100)}),pT=[{key:"getting-started",label:"Getting started",order:0},{key:"navigation",label:"Finding your way around",order:10},{key:"pulse",label:"Pulse",order:20},{key:"calendar",label:"Calendar",order:25},{key:"bookmarks",label:"Library",order:30},{key:"tags",label:"Your tags",order:32},{key:"meetings",label:"Meetings",order:40},{key:"notetaker",label:"The notetaker",order:50},{key:"live-room",label:"Live room",order:60},{key:"command-center",label:"Command Center",order:70},{key:"following",label:"Following",order:80},{key:"scratch-pad",label:"Scratch pad",order:90},{key:"mindmaps",label:"Mind maps",order:100},{key:"schedules",label:"Schedules",order:110},{key:"leaderboard",label:"Leaderboard and points",order:120},{key:"luniko-button",label:"The Luniko button",order:130},{key:"profile-settings",label:"Profile and settings",order:140},{key:"windows-app",label:"The Windows app",order:150},{key:"sharing",label:"Sharing",order:160},{key:"search",label:"Search",order:170},{key:"people",label:"People",order:180},{key:"luna",label:"Luna",order:190},{key:"admin",label:"Administering your organization",order:200},{key:"platform",label:"Operating the platform",order:210},{key:"fde",label:"FDE playbook",order:220},{key:"trust",label:"Trust and data",order:230},{key:"architecture",label:"How Luniko is built",order:240}],y_e=pT.map(e=>e.key),b_e=e=>y_e.includes(e),Q5=e=>pT.find(t=>t.key===e)?.label??e,rC="../../../../../../docs/help/",w_e=Object.assign({"../../../../../../docs/help/admin/audiences.md":Hke,"../../../../../../docs/help/admin/billing.md":qke,"../../../../../../docs/help/admin/deleted-meetings.md":Vke,"../../../../../../docs/help/admin/manage-members.md":Kke,"../../../../../../docs/help/admin/meeting-history.md":Gke,"../../../../../../docs/help/admin/members.md":Yke,"../../../../../../docs/help/admin/representative-visibility.md":Zke,"../../../../../../docs/help/admin/roles-and-capabilities.md":Jke,"../../../../../../docs/help/admin/see-everything-your-organization-owns.md":Qke,"../../../../../../docs/help/admin/transcript-copying.md":Xke,"../../../../../../docs/help/admin/usage-analytics.md":exe,"../../../../../../docs/help/admin/your-modules.md":txe,"../../../../../../docs/help/architecture/how-access-is-decided.md":nxe,"../../../../../../docs/help/architecture/modules.md":rxe,"../../../../../../docs/help/architecture/one-platform-many-organizations.md":oxe,"../../../../../../docs/help/architecture/proof-and-audit.md":ixe,"../../../../../../docs/help/architecture/sign-in.md":axe,"../../../../../../docs/help/architecture/where-data-lives.md":sxe,"../../../../../../docs/help/bookmarks/bookmarks-on-your-phone.md":lxe,"../../../../../../docs/help/bookmarks/make-a-bookmark.md":cxe,"../../../../../../docs/help/bookmarks/your-library.md":uxe,"../../../../../../docs/help/calendar/bookmark-and-tag.md":dxe,"../../../../../../docs/help/calendar/filters.md":hxe,"../../../../../../docs/help/calendar/overview.md":mxe,"../../../../../../docs/help/calendar/planner.md":pxe,"../../../../../../docs/help/calendar/profiles.md":fxe,"../../../../../../docs/help/calendar/remind-me-later.md":gxe,"../../../../../../docs/help/calendar/reminders.md":yxe,"../../../../../../docs/help/command-center/bulk-actions.md":bxe,"../../../../../../docs/help/command-center/choose-your-columns.md":wxe,"../../../../../../docs/help/command-center/create-an-action.md":vxe,"../../../../../../docs/help/command-center/create-triage-manage.md":kxe,"../../../../../../docs/help/command-center/destination-access.md":xxe,"../../../../../../docs/help/command-center/destinations.md":_xe,"../../../../../../docs/help/command-center/edit-actions.md":Sxe,"../../../../../../docs/help/command-center/mention-someone-in-a-note.md":Txe,"../../../../../../docs/help/command-center/overview.md":Ixe,"../../../../../../docs/help/command-center/shortcuts.md":Exe,"../../../../../../docs/help/command-center/submit-to-smartsheet.md":Axe,"../../../../../../docs/help/command-center/the-info-icon.md":Cxe,"../../../../../../docs/help/fde/access-log.md":Nxe,"../../../../../../docs/help/fde/the-playbook.md":Pxe,"../../../../../../docs/help/following/follow-an-item.md":Dxe,"../../../../../../docs/help/following/your-following-feed.md":Oxe,"../../../../../../docs/help/getting-started/sign-in.md":Rxe,"../../../../../../docs/help/getting-started/what-luniko-is.md":Mxe,"../../../../../../docs/help/getting-started/your-first-day.md":jxe,"../../../../../../docs/help/leaderboard/overview.md":$xe,"../../../../../../docs/help/leaderboard/points-audit.md":Lxe,"../../../../../../docs/help/live-room/capture-from-the-transcript.md":zxe,"../../../../../../docs/help/live-room/overview.md":Uxe,"../../../../../../docs/help/live-room/send-the-recap.md":Fxe,"../../../../../../docs/help/live-room/the-board.md":Wxe,"../../../../../../docs/help/luna/ask-luna.md":Bxe,"../../../../../../docs/help/luniko-button/what-it-is.md":Hxe,"../../../../../../docs/help/meetings/analytics.md":qxe,"../../../../../../docs/help/meetings/assign-a-reviewer.md":Vxe,"../../../../../../docs/help/meetings/change-the-title.md":Kxe,"../../../../../../docs/help/meetings/comments.md":Gxe,"../../../../../../docs/help/meetings/copy-the-transcript.md":Yxe,"../../../../../../docs/help/meetings/delete-a-meeting.md":Zxe,"../../../../../../docs/help/meetings/filter-the-meetings-list.md":Jxe,"../../../../../../docs/help/meetings/overview.md":Qxe,"../../../../../../docs/help/meetings/playback-speed.md":Xxe,"../../../../../../docs/help/meetings/private-meetings.md":e0e,"../../../../../../docs/help/meetings/review-redactions.md":t0e,"../../../../../../docs/help/meetings/send-the-summary.md":n0e,"../../../../../../docs/help/meetings/share-a-meeting.md":r0e,"../../../../../../docs/help/meetings/share-a-moment.md":o0e,"../../../../../../docs/help/meetings/shortlist-and-submit.md":i0e,"../../../../../../docs/help/meetings/suggested-items.md":a0e,"../../../../../../docs/help/meetings/tags-for-projects.md":s0e,"../../../../../../docs/help/meetings/take-something-off-the-record.md":l0e,"../../../../../../docs/help/meetings/the-done-checkmark.md":c0e,"../../../../../../docs/help/meetings/who-can-see-a-meeting.md":u0e,"../../../../../../docs/help/meetings/why-some-meetings-have-video.md":d0e,"../../../../../../docs/help/mindmaps/create-a-meeting-from-a-map.md":h0e,"../../../../../../docs/help/mindmaps/create-a-mind-map.md":m0e,"../../../../../../docs/help/mindmaps/export-png-or-word.md":p0e,"../../../../../../docs/help/mindmaps/queue-or-create-an-action.md":f0e,"../../../../../../docs/help/mindmaps/send-by-email.md":g0e,"../../../../../../docs/help/mindmaps/share-a-mind-map.md":y0e,"../../../../../../docs/help/mindmaps/shortcuts.md":b0e,"../../../../../../docs/help/mindmaps/submit-actions.md":w0e,"../../../../../../docs/help/navigation/dark-and-light-mode.md":v0e,"../../../../../../docs/help/navigation/finding-your-way.md":k0e,"../../../../../../docs/help/navigation/getting-help.md":x0e,"../../../../../../docs/help/navigation/notifications.md":_0e,"../../../../../../docs/help/navigation/the-command-palette.md":S0e,"../../../../../../docs/help/notetaker/send-the-notetaker.md":T0e,"../../../../../../docs/help/notetaker/set-up-the-notetaker.md":I0e,"../../../../../../docs/help/notetaker/upcoming-meetings.md":E0e,"../../../../../../docs/help/people/add-a-person.md":A0e,"../../../../../../docs/help/people/identities.md":C0e,"../../../../../../docs/help/people/merge-duplicates.md":N0e,"../../../../../../docs/help/people/review-and-hide.md":P0e,"../../../../../../docs/help/platform/billing-across-organizations.md":D0e,"../../../../../../docs/help/platform/break-glass-sessions.md":O0e,"../../../../../../docs/help/platform/modules-per-organization.md":R0e,"../../../../../../docs/help/platform/organizations.md":M0e,"../../../../../../docs/help/platform/sharing-ledger.md":j0e,"../../../../../../docs/help/platform/tenant-isolation-report.md":$0e,"../../../../../../docs/help/platform/view-as-another-person.md":L0e,"../../../../../../docs/help/profile-settings/automations.md":z0e,"../../../../../../docs/help/profile-settings/command-center-defaults.md":U0e,"../../../../../../docs/help/profile-settings/connect-microsoft.md":F0e,"../../../../../../docs/help/profile-settings/email-sett
8295ings.md":W0e,"../../../../../../docs/help/profile-settings/general-settings.md":B0e,"../../../../../../docs/help/profile-settings/meeting-settings.md":H0e,"../../../../../../docs/help/profile-settings/notification-settings.md":q0e,"../../../../../../docs/help/profile-settings/other-email-addresses.md":V0e,"../../../../../../docs/help/profile-settings/reactions.md":K0e,"../../../../../../docs/help/pulse/comments-and-reactions.md":G0e,"../../../../../../docs/help/pulse/what-pulse-is.md":Y0e,"../../../../../../docs/help/pulse/what-you-can-see-in-pulse.md":Z0e,"../../../../../../docs/help/schedules/editing.md":J0e,"../../../../../../docs/help/schedules/lock-a-schedule.md":Q0e,"../../../../../../docs/help/schedules/overview.md":X0e,"../../../../../../docs/help/schedules/smartsheet-mirror.md":e_e,"../../../../../../docs/help/scratch-pad/notes.md":t_e,"../../../../../../docs/help/scratch-pad/search-your-notes.md":n_e,"../../../../../../docs/help/scratch-pad/send-a-note.md":r_e,"../../../../../../docs/help/scratch-pad/turn-a-note-into-a-mind-map.md":o_e,"../../../../../../docs/help/search/global-search.md":i_e,"../../../../../../docs/help/sharing/share-outside-your-organization.md":a_e,"../../../../../../docs/help/tags/your-tags.md":s_e,"../../../../../../docs/help/trust/analytics-we-collect.md":l_e,"../../../../../../docs/help/trust/deleting-your-data.md":c_e,"../../../../../../docs/help/trust/how-long-we-keep-recordings.md":u_e,"../../../../../../docs/help/trust/the-audit-trail.md":d_e,"../../../../../../docs/help/trust/who-can-see-what.md":h_e,"../../../../../../docs/help/trust/your-data-and-ours.md":m_e,"../../../../../../docs/help/windows-app/install-the-app.md":p_e});
8295class oC extends Error{file;constructor(t,n){super(`${t}: ${n}`),this.name="HelpCorpusError",this.file=t}}const v_e=e=>(e.startsWith(rC)?e.slice(rC.length):e).replace(/\.md$/,"");function k_e(e,t){const n=v_e(e),r=n.split("/")[0]??"";if(!b_e(r))throw new oC(e,`section "${r}" is not in HELP_SECTIONS (model/sections.ts)`);const{data:o,body:i}=G5(t),a=g_e.safeParse(o);if(!a.success){const h=a.error.issues.map(d=>`${d.path.join(".")||"(root)"}: ${d.message}`).join("; ");throw new oC(e,`frontmatter invalid — ${h}`)}const s=a.data,l=s.module??(s.requires[0]?tL(s.requires[0]):void 0),c=i.replace(/<!--[\s\S]*?-->/g,"").trim();return{...s,slug:n,section:r,body:c,headings:Rke(c),gatingModule:l}}function x_e(){const e=Object.entries(w_e).map(([t,n])=>k_e(t,n));return e.sort((t,n)=>t.section.localeCompare(n.section)||t.order-n.order||t.title.localeCompare(n.title)),e}const X5=x_e(),__e=new Map(X5.map(e=>[e.slug,e])),S_e=e=>__e.get(e);function eW(e,t){return e.gatingModule&&e.gatingModule!=="core"&&!t.usableModules.includes(e.gatingModule)?!1:e.requires.length===0?!0:e.requires.some(n=>t.capabilities.includes(n))}const fT=e=>X5.filter(t=>eW(t,e));function tW(e,t){const n="/"+(e.split("/")[1]??"");return fT(t).filter(r=>r.surfaces.some(o=>o===e?!0:"/"+(o.split("/")[1]??"")===n))}function nW(){const{data:e}=Cn();return g.useMemo(()=>{const t=e?.capabilities??[],n=e?.usableModules??[];return{ctx:{capabilities:t,usableModules:n},isPending:e===void 0,entitledModules:e?.entitledModules??[],capabilities:t}},[e])}let Pi={isOpen:!1,state:null};const dk=new Set;function xl(e){Pi=e,dk.forEach(t=>t())}const T_e=e=>(dk.add(e),()=>dk.delete(e)),iC=()=>Pi,I_e=()=>Pi.isOpen&&Pi.state&&Pi.state.view!=="article"?Pi.state:null;function gT(){const{ctx:e}=nW(),{isOpen:t,state:n}=g.useSyncExternalStore(T_e,iC,iC),r=g.useCallback(s=>{if(!s){xl({isOpen:!0,state:{view:"index"}});return}xl({isOpen:!0,state:{view:"article",slug:s,from:I_e()}})},[]),o=g.useCallback(()=>{const s=window.location.pathname,l=tW(s,e);if(l.length===1&&l[0]){xl({isOpen:!0,state:{view:"article",slug:l[0].slug,from:null}});return}xl({isOpen:!0,state:l.length>0?{view:"page",pathname:s}:{view:"index"}})},[e]),i=g.useCallback(()=>{const s=Pi.state?.view==="article"?Pi.state.from:null;s&&xl({isOpen:!0,state:s})},[]),a=g.useCallback(()=>{xl({isOpen:!1,state:Pi.state})},[]);return{isOpen:t,state:n,ctx:e,open:r,openForPathname:o,back:i,close:a}}function E_e(){const{openForPathname:e}=gT(),{unseenCount:t}=J5(),n=t>0?"Help · new in Luniko":"Help";return u.jsxs(jl,{delayDuration:300,children:[u.jsx($l,{asChild:!0,children:u.jsxs(Ve,{type:"button",variant:"ghost",size:"icon-sm",className:"relative text-muted-foreground hover:bg-inverse dark:hover:bg-accent shrink-0",onClick:e,"aria-label":"Help",children:[u.jsx(L$,{className:"h-4 w-4"}),t>0?u.jsx("span",{"aria-hidden":!0,"data-testid":"help-unseen-dot",className:"absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-orange-500"}):null]})}),u.jsx(Ll,{side:"bottom",children:n})]})}const yT="theme",hk=new Set,nf=()=>{hk.forEach(e=>e())},mk=()=>{if(typeof window>"u")return null;const e=window.localStorage.getItem(yT);return e==="light"||e==="dark"?e:null},rf=e=>{typeof document>"u"||document.documentElement.classList.toggle("dark",e==="dark")},pk=()=>typeof window>"u"?"light":window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";let aC=!1;const A_e=()=>{if(aC||typeof window>"u")return;const e=mk(),t=pk();rf(e??t),nf(),aC=!0},C_e=e=>(hk.add(e),()=>hk.delete(e)),sC=()=>typeof document>"u"?"light":document.documentElement.classList.contains("dark")?"dark":"light",lC=e=>{typeof window>"u"||(window.localStorage.setItem(yT,e),rf(e),nf())},bT=()=>{const e=g.useSyncExternalStore(C_e,sC,sC);return g.useEffect(()=>{if(A_e(),typeof window>"u")return;const n=window.matchMedia?.("(prefers-color-scheme: dark)"),r=()=>{if(mk())return;const i=pk();rf(i),nf()},o=i=>{if(i.key!==yT)return;const s=mk()??pk();rf(s),nf()};return n?.addEventListener?.("change",r),window.addEventListener("storage",o),()=>{n?.removeEventListener?.("change",r),window.removeEventListener("storage",o)}},[]),{theme:e,setTheme:lC,toggleTheme:()=>{lC(e==="dark"?"light":"dark")}}};function N_e(){const{theme:e,toggleTheme:t}=bT(),{data:n}=Cn(),r=n?.capabilities??[],o=n?.usableModules??[],i=n?.entitledModules??[],a=UJ(n?.pointsDefaults),s=d=>Kme(o,i,d)&&qF(r,d)&&!(d==="/users"&&a),l=[{to:"/dashboard",label:"Dashboard",icon:t_},{to:"/shopfloor",label:"Shopfloor",icon:F$},{to:"/schedules",label:"Schedules",icon:$$},{to:"/command-center",label:"Command Center",icon:n_}],c=[{to:"/pulse",label:"Pulse",icon:J0},{to:"/library",label:"Library",icon:rY},{to:"/meetings",label:"Past meetings",icon:Q0},{to:"/calendar",label:"Calendar",icon:vG},{to:"/luniko-button",label:"Luniko Button",icon:fg},{to:"/global-search",label:"Global Search",icon:Ac},{to:"/users",label:"Leaderboard",icon:yg},{to:"/admin",label:"Admin console",icon:V$},{to:"/scratch-pad/note",label:"Scratch Pad",icon:K$},{to:"/scratch-pad/map",label:"Mind Maps",icon:kY},{to:"/luna",label:"Luna",icon:sc}],h=({to:d,label:p,icon:f})=>u.jsxs(jl,{delayDuration:300,children:[u.jsx($l,{asChild:!0,children:u.jsx(uE,{to:d,end:d==="/","aria-label":p,className:({isActive:b})=>X("hover:bg-inverse inline-flex p-2 rounded-md dark:hover:bg-accent shrink-0",b?"text-accent-foreground":"text-muted-foreground"),children:u.jsx(f,{className:"h-4 w-4"})})}),u.jsx(Ll,{side:"bottom",children:p})]},d);return u.jsx("nav",{className:"sticky top-0 z-50 w-full bg-background border-b",children:u.jsxs("div",{className:"w-full h-12 px-4 sm:px-6 lg:px-8 flex items-center",children:[u.jsx("div",{className:"flex items-center shrink-0",children:u.jsx(uE,{to:"/meetings",className:"flex items-center",children:u.jsx("img",{src:"/luniko_logo.svg",alt:"Luniko Logo",className:"h-12 w-auto"})})}),u.jsxs("div",{"data-testid":"nav-links",className:"flex items-center justify-center gap-1 min-w-0 flex-1 overflow-x-auto scrollbar-none",children:[c.filter(({to:d})=>s(d)).map(h),u.jsx("div",{className:"mx-1 h-4 w-px bg-border shrink-0"}),l.filter(({to:d})=>s(d)).map(h)]}),u.jsxs("div",{className:"flex items-center justify-end gap-4 shrink-0",children:[u.jsx(E_e,{}),u.jsxs(jl,{delayDuration:300,children:[u.jsx($l,{asChild:!0,children:u.jsx("span",{className:"inline-flex",children:u.jsx(Lwe,{})})}),u.jsx(Ll,{side:"bottom",children:"Notifications"})]}),u.jsxs(jl,{delayDuration:300,children:[u.jsx($l,{asChild:!0,children:u.jsx(Ve,{type:"button",variant:"ghost",size:"icon-sm",className:"text-muted-foreground hover:bg-inverse dark:hover:bg-accent shrink-0",onClick:t,"aria-label":e==="dark"?"Switch to light mode":"Switch to dark mode",children:e==="dark"?u.jsx(YY,{className:"h-4 w-4"}):u.jsx(wY,{className:"h-4 w-4"})})}),u.jsx(Ll,{side:"bottom",children:"Light/Dark mode"})]}),u.jsxs(jl,{delayDuration:300,children:[u.jsx($l,{asChild:!0,children:u.jsx("span",{className:"inline-flex",children:u.jsx(wwe,{})})}),u.jsx(Ll,{side:"bottom",children:"User"})]})]})]})})}function P_e({moduleKey:e}){const{label:t}=Fne(e);return u.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 px-6 py-24 text-center",children:[u.jsx(lc,{className:"h-8 w-8 text-amber-600 dar
8295k:text-amber-500"}),u.jsxs("h1",{className:"text-xl font-semibold",children:[t," is waiting on approval"]}),u.jsxs("p",{className:"max-w-sm text-sm text-muted-foreground",children:["Your organization has ",t,", but your IT administrator needs to approve this before it works."]}),u.jsx(Ve,{onClick:()=>J6("modules"),children:"Review in Settings"})]})}function D_e({children:e}){const{data:t,isLoading:n}=Cn(),r=$s(),o=Ls({select:p=>p.location.pathname}),i=g.useMemo(()=>t?.capabilities??[],[t]),a=g.useMemo(()=>t?.usableModules??[],[t]),s=g.useMemo(()=>t?.entitledModules??[],[t]),l=!n&&qF(i,o),c=n?"usable":Hme(a,s,o),h=c==="not_consented"&&l?Gme(a,s,o):null,d=!n&&c!=="not_entitled"&&l;return g.useEffect(()=>{n||!d&&!h&&r({to:Vme(i,a,s)})},[n,d,h,r,i,a,s]),n?null:h?u.jsx(P_e,{moduleKey:h}):d?e:null}function O_e(){const e=dre();return e?u.jsxs("div",{className:"sticky top-0 z-[60] flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-500 px-4 py-1.5 text-sm font-semibold text-amber-950 dark:bg-amber-600 dark:text-amber-50",children:[u.jsx(o_,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{children:e.mode==="custom"?`Holding ${e.label} — read-only`:`Viewing as ${e.label} — read-only`}),e.mode==="full"&&e.unresolved&&u.jsxs("span",{className:"inline-flex items-center gap-1 font-normal",children:[u.jsx(gg,{className:"h-3.5 w-3.5 shrink-0"}),"Roles unavailable — this view may show less than they see"]}),u.jsxs(Ve,{size:"sm",variant:"outline",className:"h-6 rounded-full border-amber-900/30 bg-transparent px-2.5 text-xs font-bold hover:bg-amber-400/60 dark:border-amber-50/40 dark:hover:bg-amber-500/60",onClick:()=>kv(null),children:[u.jsx(Fi,{className:"mr-1 h-3 w-3"}),"Exit"]})]}):null}const cC=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},R_e=[{key:"viewer",label:"Viewer",blurb:"Everyone with access holds these.",capabilities:ga.viewer},{key:"editor",label:"Editor",blurb:"Added on top of viewer.",capabilities:cC(ga.editor,ga.viewer)},{key:"admin",label:"Admin",blurb:"Added on top of editor.",capabilities:cC(ga.admin,ga.editor)},{key:"unbundled",label:"Outside the bundles",blurb:"Never included in a bundle. Granted one person at a time.",capabilities:Ez}],lLe=e=>Iz(e),fk=e=>e.split(".")[1]??e,M_e=_o.reduce((e,t)=>e.set(fk(t),(e.get(fk(t))??0)+1),new Map),cLe=e=>(M_e.get(fk(e))??0)>1,uLe=["org.view_all_records","meetings.nuke","org.manage_member_capabilities","org.manage_members","record.share_external","org.view_usage"],dLe=e=>e.startsWith("platform."),j_e={xs:"h-4 w-4 text-[8px]",sm:"h-5 w-5 text-[10px]",md:"h-6 w-6 text-[10px]"};function gk({user:e,label:t,size:n="sm"}){const r=j_e[n];return e.pictureUrl?u.jsx("img",{src:e.pictureUrl,alt:t,className:`${r} rounded-full object-cover`}):u.jsx("span",{className:`inline-flex ${r} items-center justify-center rounded-full font-semibold text-white`,style:{backgroundColor:MF(t)},children:jF(t)})}const lw=e=>e.nickname??e.email??e.personId;function $_e({users:e,value:t,onValueChange:n,disabled:r=!1}){const[o,i]=g.useState(!1),a=e.find(s=>s.personId===t)??null;return u.jsxs(Js,{open:o,onOpenChange:i,children:[u.jsx(Qs,{asChild:!0,children:u.jsxs(Ve,{variant:"outline",role:"combobox","aria-expanded":o,disabled:r,className:"h-auto min-h-9 w-full justify-between px-3 py-2 font-normal",children:[a?u.jsxs("span",{className:"flex min-w-0 items-center gap-2 text-left",children:[u.jsx(gk,{user:a,label:lw(a),size:"sm"}),u.jsx("span",{className:"truncate",children:lw(a)})]}):u.jsx("span",{className:"text-muted-foreground",children:"Search for someone…"}),u.jsx(Ui,{className:"ml-auto h-4 w-4 shrink-0 opacity-50"})]})}),u.jsx(Xs,{className:"w-(--radix-popover-trigger-width) p-0",side:"bottom",align:"start",children:u.jsxs(Th,{children:[u.jsx(Ih,{placeholder:"Search by name or email…"}),u.jsxs(Eh,{children:[u.jsx(Ah,{children:"Nobody matches."}),u.jsx(wa,{children:e.map(s=>{const l=lw(s);return u.jsxs(va,{value:`${l} ${s.email??""}`,onSelect:()=>{n(s.personId),i(!1)},children:[u.jsx(gk,{user:s,label:l,size:"sm"}),u.jsxs("div",{className:"flex min-w-0 flex-col",children:[u.jsx("span",{className:"truncate",children:l}),s.email&&s.nickname&&u.jsx("span",{className:"truncate text-xs text-muted-foreground",children:s.email})]}),u.jsx(Vr,{className:X("ml-auto h-4 w-4 shrink-0",s.personId===t?"opacity-100":"opacity-0")})]},s.personId)})})]})]})})]})}
8295const L_e={"no-person":"That person no longer exists in the directory.","no-membership":"This person belongs to no organization, so they hold no capabilities. You'll see the app with nothing available."},z_e=[{value:"view-as",title:"View as this person",detail:"The server answers as them — their org, meetings and feed."},{value:"custom",title:"Use a custom capability set",detail:"Stay yourself; build the user you want to test, capability by capability."}];function U_e({onDone:e}){const[t,n]=g.useState(""),[r,o]=g.useState("view-as"),[i,a]=g.useState(new Set),s=_ie(),l=$z(),{data:c}=Cn(),h=g.useMemo(()=>new Set(c?.capabilities??[]),[c]),d=g.useMemo(()=>[...s.data?.items??[]].sort((I,E)=>(I.nickname??I.email??"").localeCompare(E.nickname??E.email??"")),[s.data]),p=Ae({queryKey:["impersonation","preview",t],queryFn:()=>l.impersonationPreview(t),enabled:t!==""}),f=p.data,b=d.find(I=>I.personId===t),y=b?.nickname??b?.email??f?.name??"",w=r==="view-as"&&f?.unresolved!=null,k=r==="custom"?!0:!!f&&!w,x=I=>{a(E=>{const C=new Set(E);return C.has(I)?C.delete(I):C.add(I),C})},S=()=>{if(k){if(r==="custom"){const I=[...i];kv({mode:"custom",label:I.length===1?"1 capability":`${String(I.length)} capabilities`,capabilities:I}),e();return}f&&(kv({mode:"full",personId:t,label:y||f.personId,capabilities:f.capabilities,unresolved:f.unresolved}),e())}};return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("span",{className:"text-sm font-medium",children:"Mode"}),u.jsx("div",{className:"flex flex-col gap-2",role:"radiogroup","aria-label":"Mode",children:z_e.map(I=>{const E=r===I.value;return u.jsxs("button",{type:"button",role:"radio","aria-checked":E,onClick:()=>o(I.value),className:X("flex flex-col items-start gap-0.5 rounded-lg border p-3 text-left text-sm transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",E?"border-primary/60 bg-primary/5":"hover:bg-muted/30"),children:[u.jsx("span",{className:"font-medium",children:I.title}),u.jsx("span",{className:"text-xs text-muted-foreground",children:I.detail})]},I.value)})})]}),r==="view-as"&&u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("span",{className:"text-sm font-medium",children:"Person"}),u.jsx($_e,{users:d,value:t,onValueChange:n})]}),r==="custom"&&u.jsxs("div",{className:"space-y-1.5",children:[u.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[u.jsx("span",{className:"text-sm font-medium",children:"Capabilities"}),u.jsx("span",{className:"text-xs text-muted-foreground",children:i.size===0?"Nothing picked — you'll see the app with no access at all":`${String(i.size)} picked`})]}),u.jsx("div",{className:"max-h-72 space-y-3 overflow-y-auto rounded-lg border p-3",children:R_e.map(I=>u.jsxs("fieldset",{className:"space-y-1.5",children:[u.jsx("legend",{className:"text-xs font-medium text-muted-foreground",children:I.label}),I.capabilities.map(E=>{const C=h.has(E);return u.jsxs("label",{className:X("flex items-start gap-2 rounded-md px-1.5 py-1 text-sm",C?"cursor-pointer hover:bg-muted/40":"cursor-not-allowed opacity-50"),title:C?zne(E):"You don't hold this, so you can't grant it to a session",children:[u.jsx("input",{type:"checkbox",className:"mt-0.5",checked:i.has(E),disabled:!C,onChange:()=>x(E)}),u.jsx("span",{className:"min-w-0",children:u.jsx("span",{className:"block truncate",children:Iz(E)})})]},E)})]},I.key))}),u.jsxs("div",{className:"flex items-center gap-1.5 rounded-md bg-muted/60 px-2.5 py-2 text-xs text-muted-foreground",children:[u.jsx(ud,{className:"h-3.5 w-3.5 shrink-0"}),u.jsx("span",{children:"You stay yourself — your org, your records. Only what you may do changes, and it can only narrow."})]})]}),r==="view-as"&&t!==""&&u.jsxs("div",{className:"rounded-md border px-3 py-2 text-sm",children:[p.isPending&&u.jsx("span",{className:"text-muted-foreground",children:"Reading roles…"}),p.isError&&u.jsx("span",{className:"text-destructive",children:"Couldn't read their roles. Try again in a moment."}),f?.unresolved&&u.jsxs("span",{className:"flex items-start gap-1.5 text-destructive",children:[u.jsx(gg,{className:"mt-0.5 h-4 w-4 shrink-0"}),L_e[f.unresolved]]}),f&&!f.unresolved&&b&&u.jsxs("div",{className:"flex flex-col gap-2.5",children:[u.jsxs("div",{className:"flex items-center gap-2.5",children:[u.jsx(gk,{user:b,label:y,size:"md"}),u.jsxs("div",{className:"min-w-0",children:[u.jsxs("p",{className:"truncate font-medium",children:["You'll become ",y]}),u.jsx("p",{className:"truncate text-xs text-muted-foreground",children:f.capabilities.length>0?"They'll see the app with their own access.":"No app access — they'll see the app with nothing available."})]})]}),u.jsxs("div",{className:"flex items-center gap-1.5 rounded-md bg-muted/60 px-2.5 py-2 text-xs text-muted-foreground",children:[u.jsx(ud,{className:"h-3.5 w-3.5 shrink-0"}),u.jsx("span",{children:"Read-only. A few actions stay attributed to you."}),u.jsxs(jl,{children:[u.jsx($l,{asChild:!0,children:u.jsx(e_,{className:"ml-auto h-3.5 w-3.5 shrink-0 cursor-help"})}),u.jsx(Ll,{className:"max-w-xs",children:"Posting meeting comments, sending live recaps, and sharing records externally stay refused and attributed to you, never to them. Everything else acts as them."})]})]})]})]}),u.jsxs("div",{className:"flex justify-end gap-2",children:[u.jsx(Ve,{variant:"outline",onClick:e,children:"Cancel"}),u.jsxs(Ve,{onClick:S,disabled:!k,children:[u.jsx(o_,{className:"mr-1.5 h-4 w-4"}),"Start viewing"]})]})]})}function F_e({open:e,onOpenChange:t}){return u.jsx(za,{open:e,onOpenChange:t,children:u.jsxs(Ua,{className:"sm:max-w-md",children:[u.jsxs(Zs,{children:[u.jsx(Fa,{children:"View as another person"}),u.jsx(jc,{children:"The server answers every request as them. You can exit any time from the banner."})]}),e&&u.jsx(U_e,{onDone:()=>t(!1)})]})})}function W_e(e,t){return e.kind==="platform"?"platform-wide":e.orgId===t?"this org":`org ${e.orgId}`}const rW=6e4,yk=60*rW,uC=24*yk,B_e=e=>{if(e<=0)return null;
8295const t=Math.floor(e/uC),n=Math.floor(e%uC/yk),r=Math.floor(e%yk/rW);return t>0?`${String(t)}d ${String(n)}h`:n>0?`${String(n)}h ${String(r)}m`:r>0?`${String(r)}m`:"<1m"},H_e=3e4;function q_e(e){const[t,n]=g.useState(()=>Date.now());return g.useEffect(()=>{if(!e)return;const r=setInterval(()=>n(Date.now()),H_e);return()=>clearInterval(r)},[e]),e?B_e(e.getTime()-t):null}function V_e(){const{data:e}=Cn(),t=e?.capabilities.includes("platform.activate_god_mode")??!1,n=hie({enabled:t}),r=mie(),o=n.data?.session??null,i=q_e(o?.expiresAt??null);return!t||!o||!i?null:u.jsxs("div",{className:"sticky top-0 z-[60] flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-rose-600 px-4 py-1.5 text-sm font-semibold text-rose-50 dark:bg-rose-700",children:[u.jsx(GG,{className:"h-4 w-4 shrink-0"}),u.jsxs("span",{children:["God mode active — ",W_e(o.scope,e?.orgId)]}),u.jsxs("span",{className:"max-w-xs truncate font-normal opacity-90",title:o.reason,children:["“",o.reason,"”"]}),u.jsxs("span",{className:"inline-flex items-center gap-1 font-normal opacity-90",children:[u.jsx(lc,{className:"h-3.5 w-3.5 shrink-0"}),i," remaining"]}),u.jsxs(Ve,{size:"sm",variant:"outline",className:"h-6 rounded-full border-rose-50/40 bg-transparent px-2.5 text-xs font-bold text-rose-50 hover:bg-rose-500/60",disabled:r.isPending,onClick:()=>{r.mutate(o.id,{onError:()=>{rt.error("Could not revoke the session. Try again.")}})},children:[u.jsx(Fi,{className:"mr-1 h-3 w-3"}),r.isPending?"Revoking…":"Revoke"]})]})}function Uh(){const e=g.useContext(oW);if(!e)throw new Error("useCommandPaletteContext must be used within CommandPaletteProvider");return e}const oW=g.createContext(null);function K_e(){const{subscribe:e,getCommands:t}=Uh();return g.useSyncExternalStore(e,t)}function hLe(e,t=!0){const{setSearchHandler:n}=Uh();g.useEffect(()=>{if(t)return n(()=>e),()=>n(null)},[n,e,t])}function G_e({children:e}){const t=g.useRef({commands:new Map,listeners:new Set}),[n,r]=g.useState(!1),[o,i]=g.useState(""),[a,s]=g.useState(null),l=g.useCallback(f=>{const b=t.current;return b.listeners.add(f),()=>b.listeners.delete(f)},[]),c=g.useCallback(()=>t.current.commands,[]),h=g.useCallback(f=>{const b=t.current,y=new Map(b.commands);for(const w of f)y.set(w.id,w);return b.commands=y,b.listeners.forEach(w=>w()),()=>{const w=t.current,k=new Map(w.commands);for(const x of f)k.delete(x.id);w.commands=k,w.listeners.forEach(x=>x())}},[]),d=g.useCallback(f=>{const b=t.current,y=b.commands.get(f);if(y&&!y.disabled){r(!1),y.run();return}for(const w of b.commands.values()){const k=w.children?.find(x=>x.id===f);if(k){r(!1),k.run();return}}},[]),p=g.useMemo(()=>({subscribe:l,getCommands:c,register:h,open:n,setOpen:r,runCommand:d,search:o,setSearch:i,searchHandler:a,setSearchHandler:s}),[l,c,h,n,d,o,a]);return u.jsx(oW.Provider,{value:p,children:e})}const on=e=>g.createElement(e,{className:"h-4 w-4"}),iW="luna.ask";function Y_e(e,t){const n=__(vg,t.userSheetKeys);return[{id:iW,title:"Ask Luna",group:"Navigation",keywords:["ask","luna","agent","chat","ai","question"],icon:on(sc),iconVariant:"orange",scope:"global",priority:16,shortcut:"?",route:"/luna",run:()=>e({to:"/luna"})},{id:"settings.meeting-recording",title:"Recording Settings",group:"Navigation",keywords:["settings","recording","notetaker","note taker","bot","calendar","allow","block","meetings"],icon:on(Hu),iconVariant:"teal",scope:"global",priority:18,run:()=>J6("meetings")},{id:"meetings.send-notetaker",title:"Send the Note-taker Into a Meeting",group:"Meetings",keywords:["send","note taker","notetaker","bot","join","invite","link","ad hoc","now"],icon:on(Hu),iconVariant:"teal",scope:"global",priority:17,run:()=>swe()},{id:"nav.create-action",title:"Create Action Item",group:"Workspaces",keywords:["create","new","action","item","add"],icon:on(dd),iconVariant:"orange",scope:"global",priority:25,route:"/command-center",run:()=>e({to:"/command-center"})},{id:"nav.triage-actions",title:"Triage Actions",group:"Workspaces",keywords:["triage","actions","workflow","review","extracted"],icon:on(sY),iconVariant:"teal",scope:"global",priority:24.5,route:"/command-center",run:()=>e({to:"/command-center",search:{tab:"triage-actions"}})}
8295,{id:"nav.triage-raids",title:"Triage RAIDs",group:"Workspaces",keywords:["triage","raid","risk","assumption","issue","decision","codeword"],icon:on(lc),iconVariant:"teal",scope:"global",priority:24.4,route:"/command-center",run:()=>e({to:"/command-center",search:{tab:"triage-raids"}})},...t.userEmail?[{id:"nav.my-actions",title:"My Actions",group:"Workspaces",keywords:["my","actions","assigned","me","doer"],icon:on(yg),iconVariant:"teal",scope:"global",priority:26,route:"/action-logs",run:()=>e({to:"/action-logs",search:{responsibleDoer:t.userEmail}})}]:[],{id:"nav.action-logs",title:"Open Action Logs",group:"Workspaces",keywords:["action","log","destination","items"],icon:on(z$),iconVariant:"teal",badge:`${n.length} destinations`,scope:"global",priority:24,childrenLabel:"destinations",route:"/action-logs",children:n.map(o=>({id:`nav.action-logs.${o}`,title:Ep(o),keywords:Ep(o).toLowerCase().split(/[\s-]+/),run:()=>e({to:"/action-logs",search:{destination:o}})})),run:()=>e({to:"/action-logs"})},{id:"nav.raid-logs",title:"Open RAID Logs",group:"Workspaces",keywords:["raid","risk","assumption","issue","decision"],icon:on(lc),iconVariant:"teal",scope:"global",priority:23,route:"/raid-logs",run:()=>e({to:"/raid-logs"})},{id:"nav.review-meetings",title:"Review Meetings",group:"Workspaces",keywords:["review","meeting","action","attendee"],icon:on(r_),iconVariant:"teal",scope:"global",priority:22,route:"/review-meetings",run:()=>e({to:"/review-meetings"})},{id:"nav.mind-manager",title:"Mind Maps",group:"Workspaces",keywords:["mind","map","manager","brainstorm","ideas","tree"],icon:on(yG),iconVariant:"teal",scope:"global",priority:21,route:"/scratch-pad",run:()=>e({to:"/scratch-pad/map"})},{id:"nav.luniko-button",title:"Go to Luniko Button",group:"Navigation",keywords:["button","workflow"],icon:on(fg),scope:"global",priority:15,route:"/luniko-button",run:()=>e({to:"/luniko-button"})},{id:"nav.dashboard",title:"Go to Dashboard",group:"Navigation",keywords:["home","hub","overview"],icon:on(t_),scope:"global",priority:14,route:"/dashboard",run:()=>e({to:"/dashboard"})},{id:"nav.schedules",title:"Go to Schedules",group:"Navigation",keywords:["schedule","project","gantt","tasks"],icon:on(xG),iconVariant:"teal",badge:t.schedules.length>0?`${t.schedules.length} schedules`:void 0,scope:"global",priority:13,childrenLabel:"schedules",route:"/schedules",children:t.schedules.map(o=>({id:`nav.schedules.${o.id}`,title:o.name,keywords:o.name.toLowerCase().split(/\s+/),run:()=>e({to:`/schedules/${o.id}`})})),run:()=>e({to:"/schedules"})},...Nh(t.userRoles,"/pulse")?[{id:"nav.pulse",title:"Go to Pulse",group:"Navigation",keywords:["pulse","feed","catch up","activity"],icon:on(J0),scope:"global",priority:12,route:"/pulse",run:()=>e({to:"/pulse"})}]:[],{id:"nav.meetings",title:"Go to Meetings",group:"Navigation",keywords:["meetings","video"],icon:on(Hu),scope:"global",priority:12,route:"/meetings",run:()=>e({to:"/meetings"})},...HF(t.userRoles,["search.global"])?[{id:"nav.global-search",title:"Global Search",group:"Navigation",keywords:["search","find","lookup"],icon:on(Ac),scope:"global",priority:11,route:"/global-search",run:()=>e({to:"/global-search"})}]:[]]}const Z_e=v({id:m(),anthropicSessionId:m(),title:m(),createdAt:ue(),lastUsedAt:ue()}),J_e=v({sessions:N(Z_e),scopeStatus:v({needsReconnect:te(),missing:N(m())})}),Q_e=v({sessionId:m().min(1),scopeStatus:v({needsReconnect:te(),missing:N(m())})}),Mr={list:["agent","sessions"]};function aW(){const{getAccessTokenSilently:e}=Pe(),t=ge();return pe({mutationFn:async()=>M({path:"/agent/sessions",getAccessTokenSilently:e,options:{method:"POST",body:{}},responseSchema:Q_e,baseUrl:dt.streamApiBaseUrl}),onSuccess:()=>{t.invalidateQueries({queryKey:Mr.list})}})}function mLe(){const{getAccessTokenSilently:e}=Pe(),t=ge(),n=Ae({queryKey:Mr.list,queryFn:async()=>M({path:"/agent/sessions",getAccessTokenSilently:e,responseSchema:J_e,baseUrl:dt.streamApiBaseUrl})}),r=aW(),o=pe({mutationFn:async a=>M({path:`/agent/sessions/${a}`,getAccessTokenSilently:e,options:{method:"DELETE"},responseType:"void",baseUrl:dt.streamApiBaseUrl}),onMutate:async a=>{await t.cancelQueries({queryKey:Mr.list});const s=t.getQueryData(Mr.list);return s&&t.setQueryData(Mr.list,{...s,sessions:s.sessions.filter(l=>l.anthropicSessionId!==a)}),{previous:s}},onError:(a,s,l)=>{l?.previous&&t.setQueryData(Mr.list,l.previous)},onSettled:()=>{t.invalidateQueries({queryKey:Mr.list})}}),i=pe({mutationFn:async a=>M({path:`/agent/sessions/${a.anthropicSessionId}`,getAccessTokenSilently:e,options:{method:"PATCH",body:{title:a.title}},responseType:"void",baseUrl:dt.streamApiBaseUrl}),onMutate:async a=>{await t.cancelQueries({queryKey:Mr.list});const s=t.getQueryData(Mr.list);return s&&t.setQueryData(Mr.list,{...s,sessions:s.sessions.map(l=>l.anthropicSessionId===a.anthropicSessionId?{...l,title:a.title}:l)}),{previous:s}},onError:(a,s,l)=>{l?.previous&&t.setQueryData(Mr.list,l.previous)},onSettled:()=>{t.invalidateQueries({queryKey:Mr.list})}});return{list:n,create:r,archive:o,rename:i}}function X_e(){const[e,t]=g.useState(null),[n,r]=g.useState(null),o=aW(),{mutateAsync:i}=o,a=g.useCallback(async c=>{const h=c.trim();if(!h)return;const d=await i();t(d.sessionId),r(h)},[i]),s=g.useCallback(()=>r(null),[]),l=g.useCallback(()=>{t(null),r(null)},[]);return{sessionId:e,pendingPrompt:n,isCreating:o.isPending,startWithPrompt:a,markPromptSent:s,clear:l}}const eSe=v({id:m(),filename:m(),sizeBytes:j().int().nonnegative(),createdAt:m()}),tSe=v({files:N(eSe)});async function nSe(e,t){return(await M({path:`/agent/sessions/${encodeURIComponent(e)}/outputs`,getAccessTokenSilently:t,responseSchema:tSe,baseUrl:dt.streamApiBaseUrl})).files}async function dC(e,t,n){return M({path:`/agent/sessions/${encodeURIComponent(e)}/outputs/${encodeURIComponent(t)}/content`,getAccessTokenSilently:n,responseType:"blob",baseUrl:dt.streamApiBaseUrl})}const bk=e=>e.startsWith("microsoft_")?"microsoft":e.startsWith("luniko_")?"luniko":null,rSe={microsoft:"Microsoft 365",luniko:"Luniko data"},oSe=(e,t)=>new Set(t).size===1?t[0]:e?rSe[e]:t[0],iSe=(e,t)=>{const n=bk(e);return n===null?e===t:n===bk(t)},aSe="<<IDENTITY_CONTEXT>>",hC="<</IDENTITY_CONTEXT>>";function sSe(e){const t=e.indexOf(aSe);if(t===-1)return e;const n=e.indexOf(hC,t);if(n===-1)return e;const r=e.slice(0,t),o=e.slice(n+hC.length);return(r+o).trim()}const lSe=v({events:N(jt(m(),bn()))});let cSe=0;const ri=()=>`item-${Date.now()}-${++cSe}`;function uSe(e,t){const n=new Set(t.toolUseIds);return e.filter(r=>!r.toolUseIds.some(o=>n.has(o)))}const mC={inputTokens:0,outputTokens:0,cacheCreationTokens:0,cacheReadTokens:0,contextTokens:0};function dSe(e,t){const n=t.input_tokens??0,r=t.output_tokens??0,o=t.cache_creation_input_tokens??0,i=t.cache_read_input_tokens??0;return{inputTokens:e.inputTokens+n,outputTokens:e.outputTokens+r,cacheCreationTokens:e.cacheCreationTokens+o,c
8295acheReadTokens:e.cacheReadTokens+i,contextTokens:n+o+i}}function hSe(e){return e==="streaming"}function mSe(e,t){if(t.kind==="write")return e.some(r=>r.toolUseIds.includes(t.toolUseId))?e:[...e,{toolName:t.toolName,toolUseIds:[t.toolUseId],inputs:[t.input],firstCreatedAt:t.createdAt,kind:"write",preview:t.preview??null}];const n=e.find(r=>r.kind==="read"&&r.toolName===t.toolName);return n?n.toolUseIds.includes(t.toolUseId)?e:e.map(r=>r===n?{...r,toolUseIds:[...r.toolUseIds,t.toolUseId],inputs:[...r.inputs,t.input]}:r):[...e,{toolName:t.toolName,toolUseIds:[t.toolUseId],inputs:[t.input],firstCreatedAt:t.createdAt,kind:"read",preview:t.preview??null}]}function pSe(e,t){return e.map(n=>{const r=n.toolUseIds.indexOf(t);return r<0?n:{...n,toolUseIds:n.toolUseIds.filter((o,i)=>i!==r),inputs:n.inputs.filter((o,i)=>i!==r)}}).filter(n=>n.toolUseIds.length>0)}function fSe({anthropicSessionId:e,pageContext:t=null}){const{getAccessTokenSilently:n}=Pe(),r=ge(),[o,i]=g.useState("creating_session"),[a,s]=g.useState([]),[l,c]=g.useState(!1),[h,d]=g.useState(mC),[p,f]=g.useState([]),b=g.useRef(null),y=g.useRef(t);y.current=t;const w=g.useRef(null),k=g.useRef("creating_session"),x=g.useRef(new Set),S=g.useRef(null),I=g.useRef(!1),E=g.useRef(new Set),C=g.useRef(null),[$,T]=g.useState(!1),P=g.useCallback(_=>{k.current=_,i(_)},[]),D=g.useCallback(()=>{S.current&&clearTimeout(S.current);const _=b.current;_&&(S.current=setTimeout(()=>{(async()=>{if(b.current===_)try{const ne=await nSe(_,n);if(b.current!==_)return;const U=ne.filter(A=>!x.current.has(A.id));if(U.length===0)return;for(const A of U)x.current.add(A.id);s(A=>[...A,{kind:"session_files",id:ri(),files:U}])}catch(ne){console.warn("Failed to list session outputs",ne)}})()},2e3))},[n]),H=(_,ne,U)=>{s(A=>{const K=A[A.length-1],Q={id:_,name:ne,input:U,output:null,status:"running"};if(K&&K.kind==="tool_call_group"&&K.items.length>0&&iSe(K.items[0].name,ne)){const oe=[...K.items,Q];return[...A.slice(0,-1),{...K,name:oSe(K.domain,oe.map(ee=>ee.name)),items:oe}]}return[...A,{kind:"tool_call_group",id:_,name:ne,domain:bk(ne),items:[Q]}]})},z=(_,ne)=>{s(U=>U.map(A=>A.kind!=="tool_call_group"||!A.items.some(K=>K.id===_)?A:{...A,items:A.items.map(K=>K.id===_?{...K,status:"done",output:ne}:K)}))},V=_=>{const ne=_.id;if(typeof ne=="string"&&ne.length>0){if(E.current.has(ne))return;E.current.add(ne),C.current=ne}if(_.type==="user.message"){if(!I.current)return;const A=(_.content??[]).filter(K=>K.type==="text"&&typeof K.text=="string").map(K=>sSe(K.text)).filter(K=>K.length>0);if(A.length===0)return;s(K=>[...K,{kind:"user_message",id:ri(),text:A.join(`
8296`)}]);return}switch(_.type){case"agent.message":{const U=_.content.filter(A=>A.type==="text"&&typeof A.text=="string").map(A=>A.text).join("");U&&s(A=>[...A,{kind:"assistant_text",id:ri(),text:U,streaming:!1}]);break}case"agent.tool_use":{H(_.id,_.name,_.input);break}case"agent.custom_tool_use":{H(_.id,_.name,_.input);break}case"agent.tool_result":{z(_.tool_use_id,_.content);break}case"user.custom_tool_result":{const U=Array.isArray(_.content)?_.content.filter(K=>K.type==="text"&&typeof K.text=="string").map(K=>K.text).join(""):"";let A=U;if(U)try{A=JSON.parse(U)}catch{}z(_.custom_tool_use_id,A);break}case"span.model_request_start":{c(!0);break}case"span.model_request_end":{c(!1),_.model_usage&&d(U=>dSe(U,_.model_usage));break}case"session.status_idle":{_.stop_reason?.type!=="requires_action"&&(c(!1),P("idle"),D());break}case"session.status_terminated":{P("error"),s(U=>[...U,{kind:"error",id:ri(),message:"The agent session ended unexpectedly. Reload to start a new one."}]);break}case"error":{P("error"),s(U=>[...U,{kind:"error",id:ri(),message:_.message||"Stream error."}]);break}case"interrupted":{s(U=>[...U,{kind:"notice",id:ri(),text:"Stopped by you"}]),f([]),P("idle");return}}};g.useEffect(()=>{if(!e){P("creating_session"),s([]),f([]),b.current=null;return}b.current=e,E.current=new Set,C.current=null,s([]),f([]),d(mC),P("idle"),T(!0),x.current=new Set,S.current&&(clearTimeout(S.current),S.current=null);let _=!1;return(async()=>{I.current=!0,T(!0);try{const{events:U}=await M({path:`/agent/sessions/${e}/replay`,getAccessTokenSilently:n,responseSchema:lSe,baseUrl:dt.streamApiBaseUrl});if(_)return;for(const A of U)V(A)}catch(U){U instanceof Error&&!/404/.test(U.message)&&P("error")}finally{I.current=!1,T(!1)}})().then(()=>{_||G(e)}),()=>{_=!0,w.current?.abort(),S.current&&(clearTimeout(S.current),S.current=null)}},[e]);const J=3,F=6e4,G=async _=>{let ne=0;const U=async()=>{const A=await n({authorizationParams:{audience:dt.auth0Audience}}),K=new URL(`/agent/sessions/${_}/events`,dt.streamSseBaseUrl);C.current&&K.searchParams.set("after",C.current);const Q=new AbortController;w.current=Q;const oe=await fetch(K.toString(),{method:"GET",headers:{Authorization:`Bearer ${A}`,Accept:"text/event-stream"},signal:Q.signal});if(!oe.ok||!oe.body)throw new Error(`SSE connection failed (${oe.status})`);const ee=oe.body.getReader(),ye=new TextDecoder;let ve="";for(;;){const{done:ce,value:Oe}=await ee.read();if(ce)return Q.signal.aborted?"aborted":"clean-close";ve+=ye.decode(Oe,{stream:!0});let Ue;for(;(Ue=ve.indexOf(`
8297
8298`))!==-1;){const Ne=ve.slice(0,Ue);ve=ve.slice(Ue+2);let ke=null;const _t=[];for(const We of Ne.split(`
8299`))We.startsWith("event: ")?ke=We.slice(7):We.startsWith("data: ")&&_t.push(We.slice(6));const De=_t.join(`
8300`);if(De)try{if(ke==="luniko"){const We=JSON.parse(De);We.luniko_type==="pending_permission"?f(ft=>mSe(ft,We)):We.luniko_type==="permission_resolved"?f(ft=>pSe(ft,We.toolUseId)):We.luniko_type==="title_updated"?r.setQueryData(Mr.list,ft=>ft&&{...ft,sessions:ft.sessions.map(ht=>ht.anthropicSessionId===We.anthropicSessionId?{...ht,title:We.title}:ht)}):We.luniko_type==="interrupted"?V({type:"interrupted"}):We.luniko_type==="session_state"&&(We.turnActive||c(!1),P(We.turnActive?"streaming":"idle"))}else{const We=JSON.parse(De);V(We)}}catch{}}}};try{for(;;){const A=performance.now();if(await U()==="aborted")return;if(performance.now()-A>=F)ne=0;else if(ne+=1,ne>J)throw new Error(`SSE stream closed unexpectedly after ${J} reconnect attempts`)}}catch(A){if(A instanceof DOMException&&(A.name==="AbortError"||A.code===DOMException.ABORT_ERR))return;P("error"),s(K=>[...K,{kind:"error",id:ri(),message:A instanceof Error?`Stream error: ${A.message}`:"Stream error."}])}},Y=g.useCallback(async _=>{const ne=b.current;if(ne){s(U=>[...U,{kind:"user_message",id:ri(),text:_}]),P("streaming");try{await M({path:`/agent/sessions/${ne}/messages`,getAccessTokenSilently:n,options:{method:"POST",body:y.current?{text:_,context:y.current}:{text:_}},responseType:"void",baseUrl:dt.streamApiBaseUrl})}catch(U){throw P("error"),s(A=>[...A,{kind:"error",id:ri(),message:U instanceof Error?`Send failed: ${U.message}`:"Send failed."}]),U}}},[n,P]),le=g.useCallback(async(_,ne,U)=>{const A=b.current;if(!A)return;f(Q=>uSe(Q,_));const K=[];for(const Q of _.toolUseIds)try{await M({path:`/agent/sessions/${encodeURIComponent(A)}/permissions/${encodeURIComponent(Q)}`,getAccessTokenSilently:n,options:{method:"POST",body:{decision:ne,denyReason:U}},responseType:"void",baseUrl:dt.streamApiBaseUrl})}catch(oe){if(oe instanceof Kr&&oe.status===404)continue;
8300K.push(Q)}K.length>0&&console.error(`permission decision failed for toolUseIds: ${K.join(", ")}`)},[n]),W=g.useCallback(async()=>{const _=b.current;if(_){P("interrupting");try{await M({path:`/agent/sessions/${encodeURIComponent(_)}/interrupt`,getAccessTokenSilently:n,options:{method:"POST"},responseType:"void",baseUrl:dt.streamApiBaseUrl}),P("idle"),f([])}catch(ne){P("streaming"),s(U=>[...U,{kind:"error",id:ri(),message:ne instanceof Error?`Stop failed: ${ne.message}`:"Stop failed."}])}}},[n,P]);return g.useMemo(()=>({status:o,messages:a,modelInFlight:l,usage:h,pendingPermissions:p,replaying:$,send:Y,resolvePermission:le,interruptTurn:W}),[o,a,l,h,p,$,le,W,Y])}const gSe=[{pattern:/^\/meetings\/([^/]+)$/,pageType:"meeting"},{pattern:/^\/schedules\/([^/]+)$/,pageType:"schedule"},{pattern:/^\/scratch-pad\/note\/([^/]+)$/,pageType:"note"},{pattern:/^\/scratch-pad\/map\/([^/]+)$/,pageType:"mindMap"}];function ySe(e){for(const{pattern:t,pageType:n}of gSe){const r=t.exec(e);if(r)return{pageType:n,entityId:r[1]}}return null}function bSe(){const e=Ls({select:t=>t.location.pathname});return g.useMemo(()=>ySe(e),[e])}function wSe(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`qi-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function vSe(){const[e,t]=g.useState([]),[n,r]=g.useState(null),[o,i]=g.useState(!1),a=g.useCallback(y=>{t(w=>[...w,{id:wSe(),text:y}])},[]),s=g.useCallback(y=>{t(w=>w.filter(k=>k.id!==y)),r(w=>w===y?null:w)},[]),l=g.useCallback(y=>{const w=e.find(k=>k.id===y);return w?(r(y),w.text):""},[e]),c=g.useCallback(y=>{n!==null&&(t(w=>w.map(k=>k.id===n?{...k,text:y}:k)),r(null))},[n]),h=g.useCallback(()=>{r(null)},[]),d=g.useCallback(()=>{t([]),r(null),i(!1)},[]),p=g.useCallback(y=>{t(w=>[y,...w])},[]),f=g.useCallback(()=>i(!0),[]),b=g.useCallback(()=>i(!1),[]);return g.useMemo(()=>({queue:e,editingId:n,drainPaused:o,enqueue:a,remove:s,startEdit:l,saveEdit:c,cancelEdit:h,clear:d,restoreHead:p,pauseDrain:f,resumeDrain:b}),[e,n,o,a,s,l,c,h,d,p,f,b])}const kSe=v({modelRequests:j(),byActor:v({coordinator:j(),microsoft:j(),luniko:j()}),inputTokens:j(),outputTokens:j(),cacheCreationTokens:j(),cacheReadTokens:j(),cacheHitRate:j().nullable(),totalLatencyMs:j(),medianLatencyMs:j().nullable(),errors:j()}),xSe={session:e=>["agent","sessions",e,"metrics"]};function _Se(e){const{getAccessTokenSilently:t}=Pe();return Ae({queryKey:xSe.session(e??"none"),enabled:e!==null,staleTime:5e3,queryFn:async()=>M({path:`/agent/sessions/${e??""}/metrics`,getAccessTokenSilently:t,responseSchema:kSe,baseUrl:dt.streamApiBaseUrl})})}function SSe(){const{data:e}=Cn();return e?.dictationDefaults?.language??null}const TSe="https://api.openai.com/v1/realtime/calls",ISe="oai-events";async function ESe(e){const t=await navigator.mediaDevices.getUserMedia({audio:!0}),n=new RTCPeerConnection,r=t.getAudioTracks()[0];if(!r)throw t.getTracks().forEach(d=>d.stop()),new Error("Microphone returned no audio track");n.addTrack(r,t);const o=new Map,i=n.createDataChannel(ISe);i.addEventListener("message",d=>{if(typeof d.data!="string")return;let p;try{p=JSON.parse(d.data)}catch{return}if(p.type){if(p.type==="conversation.item.input_audio_transcription.delta"){const f=p.item_id,b=p.delta??"";if(!f||!b)return;const y=(o.get(f)??"")+b;o.set(f,y),e.onPartialSegment?.(y);return}if(p.type==="conversation.item.input_audio_transcription.completed"){const f=p.item_id,b=p.transcript??(f?o.get(f)??"":"");f&&o.delete(f),b.trim().length>0&&e.onFinalizedSegment(b);return}p.type==="error"&&e.onError?.(new Error(`OpenAI realtime error: ${d.data}`))}});const a=await n.createOffer();await n.setLocalDescription(a);const s=await fetch(TSe,{method:"POST",body:a.sdp,headers:{Authorization:`Bearer ${e.clientSecret}`,"Content-Type":"application/sdp"}});if(!s.ok){const d=await s.text().catch(()=>"");throw t.getTracks().forEach(p=>p.stop()),n.close(),new Error(`OpenAI realtime SDP exchange failed (${s.status} ${s.statusText})${d?`: ${d}`:""}`)}const l=await s.text();await n.setRemoteDescription({type:"answer",sdp:l});let c=!1;return{stop:async()=>
8300{if(!c){c=!0;try{i.close()}catch{}try{n.getSenders().forEach(d=>{d.track?.stop()}),n.close()}catch{}t.getTracks().forEach(d=>d.stop())}}}}const ASe=1e3;function pC(e){return e instanceof Error?e.message:"Unknown error"}function CSe(){return typeof window>"u"?null:typeof window.RTCPeerConnection>"u"?"This browser does not support live transcription.":navigator.mediaDevices?.getUserMedia?null:"Microphone access is not available in this browser."}function NSe({onCommit:e}){const t=Ioe(),n=SSe(),[r,o]=g.useState(!1),[i,a]=g.useState(""),[s,l]=g.useState(null),c=g.useRef(null),h=g.useRef(!1),d=g.useRef(!1),p=g.useRef(""),f=g.useRef(null),b=g.useRef(e);b.current=e;const y=()=>{f.current!==null&&(clearTimeout(f.current),f.current=null)},w=g.useCallback(async()=>{y();const I=c.current;if(c.current=null,o(!1),p.current="",a(""),I)try{await I.stop()}catch{}},[]),k=g.useCallback(async()=>{if(c.current||h.current)return;const I=CSe();if(I){l(I);return}d.current=!1,h.current=!0,l(null),p.current="",a("");try{const E=await t.createRealtimeToken(n),C=await ESe({clientSecret:E.clientSecret,model:E.model,onPartialSegment:$=>{d.current||(p.current=$,a($))},onFinalizedSegment:$=>{if(d.current)return;const T=$.trim();T.length>0&&b.current(T),p.current="",a("")},onError:$=>{l(pC($)),w()}});if(d.current){try{await C.stop()}catch{}o(!1),a("");return}c.current=C,o(!0)}catch(E){l(pC(E)),await w()}finally{h.current=!1}},[t,n,w]),x=g.useCallback(async()=>{if(!c.current){h.current&&(d.current=!0);return}f.current===null&&(f.current=setTimeout(()=>{f.current=null;const I=p.current.trim();I.length>0&&b.current(I),d.current=!0,p.current="",w()},ASe))},[w]),S=g.useCallback(async()=>{d.current=!0,p.current="",await w()},[w]);return g.useEffect(()=>()=>{w()},[w]),{isRecording:r,interim:i,error:s,start:k,stop:x,abort:S}}function PSe(e,t){const n=t.trim();return n.length===0?e:e.length===0?n:/\s$/.test(e)?e+n:`${e} ${n}`}function DSe({queue:e,editingId:t,drainPaused:n,onStartEdit:r,onRemove:o,onResumeDrain:i,onFocusComposer:a}){const s=g.useRef(new Map);if(e.length===0)return null;const l=p=>{const f=e[p];f&&s.current.get(f.id)?.focus()},c=(p,f,b)=>{if(p.key==="ArrowDown"||p.key==="ArrowRight")p.preventDefault(),l(Math.min(b+1,e.length-1));else if(p.key==="ArrowUp"||p.key==="ArrowLeft")p.preventDefault(),l(Math.max(b-1,0));else if(p.key==="Enter"||p.key===" "){if(f===t)return;p.preventDefault(),r(f)}else p.key==="Backspace"||p.key==="Delete"?(p.preventDefault(),o(f),e.length<=1?a?.():b>0?l(b-1):l(0)):p.key==="Escape"&&(p.preventDefault(),a?.())},h=e.length,d=n?`⚠ Queued · ${h} · paused`:`⏱ Queued · ${h}`;return u.jsxs("div",{className:"border-b border-border px-3 pt-2 pb-1","data-testid":"agent-message-queue",children:[u.jsxs("div",{className:X("flex items-center gap-2 px-2 pb-1 text-xs font-medium text-muted-foreground",n&&"text-warning-foreground"),children:[u.jsx("span",{children:d}),n&&u.jsx("button",{type:"button",className:"ml-auto cursor-pointer rounded border border-border px-2 py-0.5 text-[11px] uppercase tracking-wide text-foreground hover:bg-accent",onClick:i,children:"Resume"})]}),e.map((p,f)=>{const b=p.id===t;return u.jsxs("button",{type:"button",ref:y=>{y?s.current.set(p.id,y):s.current.delete(p.id)},className:X("group flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-muted-foreground transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",b&&"bg-warning-subtle text-warning-foreground"),onClick:()=>{b||r(p.id)},onKeyDown:y=>c(y,p.id,f),title:p.text,"data-queue-row-id":p.id,children:[u.jsx("span",{className:"flex-1 truncate",children:b?"Editing…":p.text}),u.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Remove queued message",className:"cursor-pointer rounded p-0.5 opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100 hover:text-destructive",onClick:y=>{y.stopPropagation(),o(p.id)},children:"✕"})]},p.id)})]})}const OSe=g.forwardRef(function({value:t,interim:n},r){if(n.length===0)return null;const o=t.length>0&&!/\s$/.test(t)?" ":"";
8300return u.jsxs("div",{ref:r,"aria-hidden":!0,className:"pointer-events-none absolute inset-0 overflow-hidden whitespace-pre-wrap break-words px-2 py-1 text-base leading-6",children:[u.jsxs("span",{className:"invisible","data-testid":"composer-overlay-committed",children:[t,o]}),u.jsx("span",{className:"italic text-muted-foreground",children:n})]})}),RSe=1e6,MSe=20;function jSe(e){return e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`}function $Se(e){const t=[];return e.coordinator>0&&t.push(`${e.coordinator} coordinator`),e.microsoft>0&&t.push(`${e.microsoft} microsoft`),e.luniko>0&&t.push(`${e.luniko} luniko`),t.join(" · ")}function fC(e){const t=Math.max(0,e);if(t<1e3)return String(Math.round(t));if(t<1e6){const n=t/1e3;return`${n.toFixed(n<10?1:0)}K`}return`${(t/1e6).toFixed(2)}M`}function LSe(e){const t=e.inputTokens+e.cacheCreationTokens+e.cacheReadTokens;return t<=0?0:e.cacheReadTokens/t*100}const wk=5.5,gC=2*Math.PI*wk;function zSe({usage:e,metrics:t=null}){const n=Math.min(100,e.contextTokens/RSe*100);if(n<MSe)return null;const r=n>=80?"text-destructive":n>=50?"text-warning-foreground":"text-muted-foreground",o=Math.round(n);return u.jsxs(Js,{children:[u.jsx(Qs,{asChild:!0,children:u.jsxs("button",{type:"button","aria-label":`Context window ${o}% full — open usage details`,className:X("flex cursor-pointer items-center gap-1.5 rounded-full px-2 py-1 text-xs tabular-nums transition-colors hover:bg-accent",r),children:[u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":!0,children:[u.jsx("circle",{cx:"7",cy:"7",r:wk,fill:"none",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2"}),u.jsx("circle",{cx:"7",cy:"7",r:wk,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:`${n/100*gC} ${gC}`,transform:"rotate(-90 7 7)"})]}),o,"%"]})}),u.jsxs(Xs,{align:"end",className:"w-72 space-y-2 text-sm",children:[u.jsx("p",{className:"font-medium",children:"Usage this chat"}),u.jsxs("dl",{className:"grid grid-cols-[1fr_auto] items-baseline gap-x-4 gap-y-1.5 text-xs",children:[t&&t.medianLatencyMs!==null&&u.jsx(as,{label:"Response time (median)",value:jSe(t.medianLatencyMs)}),t&&t.modelRequests>0&&u.jsx(as,{label:"Model requests",value:`${t.modelRequests}`,detail:$Se(t.byActor)}),u.jsx(as,{label:"Context window",value:`${o}%`}),u.jsx(as,{label:"Output tokens",value:fC(e.outputTokens)}),u.jsx(as,{label:"Cache read",value:fC(e.cacheReadTokens)}),u.jsx(as,{label:"Cache hit rate",value:`${Math.round(t?.cacheHitRate!=null?t.cacheHitRate*100:LSe(e))}%`}),t&&t.errors>0&&u.jsx(as,{label:"Failed requests",value:`${t.errors}`})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"As the context window fills, older messages get summarized and small details can be lost. Past 50%, a fresh chat gives the best answers for unrelated questions; past 80%, start a new one when you can."})]})]})}function as({label:e,value:t,detail:n}){return u.jsxs(u.Fragment,{children:[u.jsx("dt",{className:"text-muted-foreground",children:e}),u.jsxs("dd",{className:"text-right font-medium tabular-nums",children:[t,n?u.jsx("span",{className:"ml-1.5 font-normal text-muted-foreground",children:n}):null]})]})}const USe=350;function FSe(e){let t=!1,n=!1,r=null;const o=()=>{r!==null&&(clearTimeout(r),r=null)},i=()=>{o(),t=!1,n=!1},a=h=>h.metaKey||h.ctrlKey||h.altKey||h.shiftKey;return{onKeyDown:h=>{if(!(h.code!=="Space"||a(h))){if(t){h.preventDefault();return}e.isRecording()||e.isComposerEmpty()&&(h.preventDefault(),t=!0,n=!1,r=setTimeout(()=>{if(r=null,!e.isComposerEmpty()){t=!1;return}n=!0,e.startDictation()},e.thresholdMs))}},onKeyUp:h=>{h.code!=="Space"||!t||(o(),n&&e.stopDictation(),t=!1,n=!1)},cancel:()=>{const h=n;i(),h&&e.stopDictation()}}}const WSe=g.forwardRef(function({disabled:t,placeholder:n="Ask anything - hold space to talk",reserveLauncherSlot:r=!1,onLauncherClick:o,submitMode:i="send",showStop:a=!1,onSend:s,onStop:l,onCancelEdit:c,onTextChange:h,sessionMetrics:d=null,usage:p,queue:f,editingId:b,drainPaused:y,onStartEdit:w,onRemoveQueued:k,onResumeDrain:x},S){const[I,E]=g.useState(""),C=g.useRef(null),$=g.useRef(null),T=NSe({onCommit:Y=>E(le=>PSe(le,Y))}),P=g.useRef(T);P.current=T;const D=g.useRef(I);D.current=I;const H=g.useMemo(()=>FSe({thresholdMs:USe,isComposerEmpty:()=>D.current.length===0&&P.current.interim.length===0,isRecording:()=>P.current.isRecording,startDictation:()=>{P.current.start()},stopDictation:()=>{P.current.stop()}}),[]);g.useEffect(()=>()=>H.cancel(),[H]),g.useImperativeHandle(S,()=>({focus:()=>
8300C.current?.focus(),setText:Y=>E(Y),getText:()=>I}),[I]),g.useEffect(()=>{h?.({text:I,interim:T.interim})},[I,T.interim,h]),g.useEffect(()=>{const Y=C.current;Y&&(Y.style.height="auto",Y.style.height=`${Math.min(Y.scrollHeight,240)}px`,$.current&&($.current.scrollTop=Y.scrollTop))},[I,T.interim]);const z=()=>{const Y=I.trim();!Y||t||(T.isRecording&&T.abort(),s(Y),E(""))},V=Y=>{if(Y.code==="Space"){H.onKeyDown(Y);return}Y.key==="Enter"&&!Y.shiftKey?(Y.preventDefault(),z()):Y.key==="Escape"&&i==="save"&&c&&(Y.preventDefault(),c())},J=Y=>{Y.code==="Space"&&H.onKeyUp(Y)},F=i==="save",G=F?Vr:dG;return u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("div",{className:X("mx-auto flex w-full max-w-[820px] cursor-text flex-col rounded-2xl border bg-card transition-colors",F?"border-warning":"border-border focus-within:border-ring"),onClick:Y=>{Y.currentTarget.contains(Y.target)&&C.current?.focus()},children:[u.jsx(DSe,{queue:f,editingId:b,drainPaused:y,onStartEdit:w,onRemove:k,onResumeDrain:x,onFocusComposer:()=>C.current?.focus()}),u.jsxs("div",{className:"relative px-4 pt-3",children:[u.jsx(OSe,{ref:$,value:I,interim:T.interim}),u.jsx("textarea",{ref:C,value:I,onChange:Y=>E(Y.target.value),onKeyDown:V,onKeyUp:J,onBlur:()=>H.cancel(),onScroll:Y=>{$.current&&($.current.scrollTop=Y.currentTarget.scrollTop)},placeholder:T.interim?"":T.isRecording?"Listening…":F?"Edit queued message…":n,disabled:t,rows:1,"aria-label":F?"Edit queued message":"Message the agent",className:X("relative w-full resize-none bg-transparent px-2 py-1 outline-none","whitespace-pre-wrap break-words text-base leading-6 text-foreground placeholder:text-muted-foreground","disabled:cursor-not-allowed disabled:opacity-50")})]}),u.jsxs("div",{className:X("flex items-center gap-2 px-3 pb-3 pt-1",r&&"gap-3 border-t border-black/[0.06] px-4 pt-2 dark:border-white/[0.1]"),children:[r&&u.jsxs(u.Fragment,{children:[u.jsxs("button",{type:"button",onClick:o,"aria-label":"Close Luna",className:"flex shrink-0 items-center transition-transform hover:scale-110 active:scale-95",children:[u.jsx("img",{src:"/luniko_logo_mark.svg",alt:"",className:"w-6 dark:hidden"}),u.jsx("img",{src:"/luniko_logo_mark_dark.svg",alt:"",className:"hidden w-6 dark:block"})]}),u.jsx("div",{className:"h-5 w-px shrink-0 bg-black/[0.1] dark:bg-white/[0.15]"})]}),u.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[u.jsx(zSe,{usage:p,metrics:d}),u.jsx("button",{type:"button",onClick:()=>T.isRecording?void T.stop():void T.start(),disabled:t,"aria-label":T.isRecording?"Stop dictation":"Start dictation","aria-pressed":T.isRecording,className:X("grid h-9 w-9 cursor-pointer place-items-center rounded-full text-muted-foreground transition-colors hover:text-foreground",T.isRecording&&"animate-pulse text-destructive hover:text-destructive"),children:u.jsx(fg,{className:"h-[19px] w-[19px]"})}),a?u.jsx("button",{type:"button",onClick:()=>l?.(),"aria-label":"Stop",className:"grid h-9 w-9 cursor-pointer place-items-center rounded-full bg-destructive text-destructive-foreground transition-colors hover:bg-destructive/90",children:u.jsx(KY,{className:"h-4 w-4"})}):u.jsx("button",{type:"button",onClick:z,disabled:t||I.trim().length===0,"aria-label":F?"Save edited message":"Send message",className:"grid h-9 w-9 cursor-pointer place-items-center rounded-full bg-primary text-primary-foreground transition-colors hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50",children:u.jsx(G,{className:"h-4 w-4"})})]})]})]}),T.error&&u.jsx("p",{className:"px-2 text-xs text-destructive",children:T.error})]})}),gu=["Pondering","Cogitating","Synthesizing","Crunching","Brewing","Forging","Spelunking","Noodling","Marinating","Conjuring","Crystallizing","Hatching","Tinkering","Composing","Inferring","Ruminating","Concocting","Orchestrating","Channeling","Computing","Manifesting","Whisking","Architecting","Crafting","Deciphering","Distilling","Wrangling","Percolating","Sketching","Ideating"];function BSe(){const[e,t]=g.useState(()=>gu[Math.floor(Math.random()*gu.length)]);return g.useEffect(()=>{let n=Math.floor(Math.random()*gu.length);const r=window.setInterval(()=>{n=(n+1+Math.floor(Math.random()*3))%gu.length,t(gu[n])},8e3);return()=>window.clearInterval(r)},[]),e}function HSe(){const e=g.useRef(null),[,t]=g.useState(0);return g.useEffect(()=>{e.current=Date.now();const n=window.setInterval(()=>t(r=>r+1),1e3);return()=>window.clearInterval(n)},[]),e.current===null?0:Math.max(0,Math.floor((Date.now()-e.current)/1e3))}function qSe(e){if(e<60)return`${e}s`;const t=Math.floor(e/60),n=e%60;return`${t}m ${n}s`}function VSe({size:e=22}){return u.jsxs("div",{style:{position:"relative",width:e,height:e,display:"grid",placeItems:"center",flexShrink:0},children:[u.jsxs("svg",{width:e,height:e,viewBox:"0 0 100 100",style:{position:"absolute",inset:0}
8300,"aria-hidden":!0,children:[u.jsx("circle",{cx:"50",cy:"50",r:"46",fill:"none",stroke:"var(--teal)",strokeOpacity:"0.25",strokeWidth:"6"}),u.jsx("g",{className:"luna-rot",style:{animation:"luna-cw 1.6s linear infinite"},children:u.jsx("path",{d:"M 50 4 A 46 46 0 0 1 96 50",fill:"none",stroke:"var(--teal)",strokeWidth:"6",strokeLinecap:"round"})})]}),u.jsx("img",{src:"/luniko_logo_mark.svg",alt:"",className:"dark:hidden",style:{width:e*.6,height:"auto"}}),u.jsx("img",{src:"/luniko_logo_mark_dark.svg",alt:"",className:"hidden dark:block",style:{width:e*.6,height:"auto"}})]})}function KSe(){const e=HSe(),t=BSe();return u.jsxs("div",{className:"agent-thinking-indicator","aria-live":"polite",children:[u.jsx(VSe,{size:22}),u.jsx("span",{className:"agent-thinking-indicator__verb",children:t}),u.jsx("span",{className:"agent-thinking-indicator__dot-sep",children:"·"}),u.jsx("span",{className:"agent-thinking-indicator__timer",children:qSe(e)})]})}function yC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function GSe(e){if(Array.isArray(e))return e}function YSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){c=!0,o=h}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ZSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8301In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JSe(e,t){return GSe(e)||YSe(e,t)||QSe(e,t)||ZSe()}function QSe(e,t){if(e){if(typeof e=="string")return yC(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)?yC(e,t):void 0}}const sW=Object.entries,bC=Object.setPrototypeOf,XSe=Object.isFrozen,eTe=Object.getPrototypeOf,tTe=Object.getOwnPropertyDescriptor;let Sn=Object.freeze,jn=Object.seal,Nl=Object.create,lW=typeof Reflect<"u"&&Reflect,vk=lW.apply,kk=lW.construct;Sn||(Sn=function(t){return t});jn||(jn=function(t){return t});vk||(vk=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});kk||(kk=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const ds=wn(Array.prototype.forEach),nTe=wn(Array.prototype.lastIndexOf),wC=wn(Array.prototype.pop),yu=wn(Array.prototype.push),rTe=wn(Array.prototype.splice),Zl=Array.isArray,Lu=wn(String.prototype.toLowerCase),cw=wn(String.prototype.toString),vC=wn(String.prototype.match),bu=wn(String.prototype.replace),kC=wn(String.prototype.indexOf),oTe=wn(String.prototype.trim),iTe=wn(Number.prototype.toString),aTe=wn(Boolean.prototype.toString),xC=typeof BigInt>"u"?null:wn(BigInt.prototype.toString),_C=typeof Symbol>"u"?null:wn(Symbol.prototype.toString),_r=wn(Object.prototype.hasOwnProperty),wu=wn(Object.prototype.toString),Gn=wn(RegExp.prototype.test),sa=sTe(TypeError);function wn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return vk(e,t,r)}}function sTe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kk(e,n)}}function bt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Lu;if(bC&&bC(e,null),!Zl(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(XSe(t)||(t[r]=i),o=i)}e[o]=!0}return e}function lTe(e){for(let t=0;t<e.length;t++)_r(e,t)||(e[t]=null);return e}function Lr(e){const t=Nl(null);for(const r of sW(e)){var n=JSe(r,2);const o=n[0],i=n[1];_r(e,o)&&(Zl(i)?t[o]=lTe(i):i&&typeof i=="object"&&i.constructor===Object?t[o]=Lr(i):t[o]=i)}return t}function cTe(e){switch(typeof e){case"string":return e;case"number":return iTe(e);case"boolean":return aTe(e);case"bigint":return xC?xC(e):"0";case"symbol":return _C?_C(e):"Symbol()";case"undefined":return wu(e);case"function":case"object":{if(e===null)return wu(e);const t=e,n=ro(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:wu(r)}return wu(e)}default:return wu(e)}}function ro(e,t){for(;e!==null;){const r=tTe(e,t);if(r){if(r.get)return wn(r.get);if(typeof r.value=="function")return wn(r.value)}e=eTe(e)}function n(){return null}return n}function uTe(e){try{return Gn(e,""),!0}catch{return!1}}const SC=Sn(["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"]),uw=Sn(["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"]),dw=Sn(["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"]),dTe=Sn(["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"]),hw=Sn(["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"]),hTe=Sn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),TC=Sn(["#text"]),IC=Sn(["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","
8301spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mw=Sn(["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"]),EC=Sn(["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"]),Wm=Sn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mTe=jn(/{{[\w\W]*|^[\w\W]*}}/g),pTe=jn(/<%[\w\W]*|^[\w\W]*%>/g),fTe=jn(/\${[\w\W]*/g),gTe=jn(/^data-[\-\w.\u00B7-\uFFFF]+$/),yTe=jn(/^aria-[\-\w]+$/),AC=jn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bTe=jn(/^(?:\w+script|data):/i),wTe=jn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vTe=jn(/^html$/i),kTe=jn(/^[a-z][.\w]*(-[.\w]+)+$/i),CC=jn(/<[/\w!]/g),NC=jn(/<[/\w]/g),xTe=jn(/<\/no(script|embed|frames)/i),_Te=jn(/\/>/i),Or={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cW=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],STe=Sn(bt({},cW)),TTe=(function(){const e={};return ds(cW,t=>{e[t]=jn(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Sn(e)})(),ITe=function(){return typeof window>"u"?null:window},ETe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 4,362 bytes, line 8301
8301const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},PC=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},la=function(t,n,r,o){return _r(t,n)&&Zl(t[n])?bt(o.base?Lr(o.base):{},t[n],o.transform):r},pw=function(t,n,r){const o=_r(t,n)?t[n]:void 0;return o&&typeof o=="object"?Lr(o):r()};function uW(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ITe();const t=he=>uW(he);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==Or.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,h=e.trustedTypes,d=s.prototype,p=ro(d,"cloneNode"),f=ro(d,"remove"),b=ro(d,"removeAttributeNode"),y=ro(d,"nextSibling"),w=ro(d,"childNodes"),k=ro(d,"parentNode"),x=ro(d,"shadowRoot"),S=ro(d,"attributes"),I=a&&a.prototype?ro(a.prototype,"nodeType"):null,E=a&&a.prototype?ro(a.prototype,"nodeName"):null,C=a&&a.prototype?ro(a.prototype,"ownerDocument"):null,$=function(O){return I?I(O):O.nodeType},T=function(O){return E?E(O):O.nodeName};if(typeof i=="function"){const he=n.createElement("template");he.content&&he.content.ownerDocument&&(n=he.content.ownerDocument)}let P,D="",H,z=!1,V=0;const J=function(){if(V>0)throw sa('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.')},F=function(O){J(),V++;try{return P.createHTML(O)}finally{V--}},G=function(O){J(),V++;try{return P.createScriptURL(O)}finally{V--}},Y=function(){return z||(H=ETe(h,o),z=!0),H},le=n,W=le.implementation,_=le.createNodeIterator,ne=le.createDocumentFragment,U=le.getElementsByTagName,A=r.importNode;let K=PC();t.isSupported=typeof sW=="function"&&typeof k=="function"&&W&&W.createHTMLDocument!==void 0;const Q=mTe,oe=pTe,ee=fTe,ye=gTe,ve=yTe,ce=bTe,Oe=wTe,Ue=kTe;let Ne=AC,ke=null;const _t=bt({},[...SC,...uw,...dw,...hw,...TC]);let De=null;const We=bt({},[...IC,...mw,...EC,...Wm]);let ft=Object.seal(Nl(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}})),ht=null,Io=null;const Zr=Object.seal(Nl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nn=!0,Jr=!0,rl=!1,ol=!0,Z=!1,fe=!0,Me=!1,Ye=!1,ot=null,vn=null,Pn=!1,Dn=!1,Qr=!1,Pr=!1,kn=!0,Eo=!1;const qn="user-content-";let Xr=!0,Zc=!1,Yi={},ki=null;const Jc=bt({},["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 qe=null;const nn=bt({},["audio","video","img","source","image","track"]);let xn=null;const Vn=bt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xi="http://www.w3.org/1998/Math/MathML",Jt="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let Ao=Yt,sr=!1,lr=null;const Hh=bt({},[xi,Jt,Yt],cw),ei=Sn(["mi","mo","mn","ms","mtext"]);let qh=bt({},ei);const UT=Sn(["annotation-xml"]);let Ry=bt({},UT);const N3=bt({},["title","style","font","a","script"]);let Qc=null;const P3=["application/xhtml+xml","text/html"],D3="text/html";let rn=null,il=null;const O3=n.createElement("form"),FT=function(O){return O instanceof RegExp||O instanceof Function},My=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(il&&il===O)return;(!O||typeof O!="object")&&(O={}
vendor: 2,840 bytes, line 8301
8301),O=Lr(O),Qc=P3.indexOf(O.PARSER_MEDIA_TYPE)===-1?D3:O.PARSER_MEDIA_TYPE,rn=Qc==="application/xhtml+xml"?cw:Lu,ke=la(O,"ALLOWED_TAGS",_t,{transform:rn}),De=la(O,"ALLOWED_ATTR",We,{transform:rn}),lr=la(O,"ALLOWED_NAMESPACES",Hh,{transform:cw}),xn=la(O,"ADD_URI_SAFE_ATTR",Vn,{transform:rn,base:Vn}),qe=la(O,"ADD_DATA_URI_TAGS",nn,{transform:rn,base:nn}),ki=la(O,"FORBID_CONTENTS",Jc,{transform:rn}),ht=la(O,"FORBID_TAGS",Lr({}),{transform:rn}),Io=la(O,"FORBID_ATTR",Lr({}),{transform:rn}),Yi=_r(O,"USE_PROFILES")?O.USE_PROFILES&&typeof O.USE_PROFILES=="object"?Lr(O.USE_PROFILES):O.USE_PROFILES:!1,Nn=O.ALLOW_ARIA_ATTR!==!1,Jr=O.ALLOW_DATA_ATTR!==!1,rl=O.ALLOW_UNKNOWN_PROTOCOLS||!1,ol=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=O.SAFE_FOR_TEMPLATES||!1,fe=O.SAFE_FOR_XML!==!1,Me=O.WHOLE_DOCUMENT||!1,Dn=O.RETURN_DOM||!1,Qr=O.RETURN_DOM_FRAGMENT||!1,Pr=O.RETURN_TRUSTED_TYPE||!1,Pn=O.FORCE_BODY||!1,kn=O.SANITIZE_DOM!==!1,Eo=O.SANITIZE_NAMED_PROPS||!1,Xr=O.KEEP_CONTENT!==!1,Zc=O.IN_PLACE||!1,Ne=uTe(O.ALLOWED_URI_REGEXP)?O.ALLOWED_URI_REGEXP:AC,Ao=typeof O.NAMESPACE=="string"?O.NAMESPACE:Yt,qh=pw(O,"MATHML_TEXT_INTEGRATION_POINTS",()=>bt({},ei)),Ry=pw(O,"HTML_INTEGRATION_POINTS",()=>bt({},UT));const q=pw(O,"CUSTOM_ELEMENT_HANDLING",()=>Nl(null));if(ft=Nl(null),_r(q,"tagNameCheck")&&FT(q.tagNameCheck)&&(ft.tagNameCheck=q.tagNameCheck),_r(q,"attributeNameCheck")&&FT(q.attributeNameCheck)&&(ft.attributeNameCheck=q.attributeNameCheck),_r(q,"allowCustomizedBuiltInElements")&&typeof q.allowCustomizedBuiltInElements=="boolean"&&(ft.allowCustomizedBuiltInElements=q.allowCustomizedBuiltInElements),jn(ft),Z&&(Jr=!1),Qr&&(Dn=!0),Yi&&(ke=bt({},TC),De=Nl(null),Yi.html===!0&&(bt(ke,SC),bt(De,IC)),Yi.svg===!0&&(bt(ke,uw),bt(De,mw),bt(De,Wm)),Yi.svgFilters===!0&&(bt(ke,dw),bt(De,mw),bt(De,Wm)),Yi.mathMl===!0&&(bt(ke,hw),bt(De,EC),bt(De,Wm))),Zr.tagCheck=null,Zr.attributeCheck=null,_r(O,"ADD_TAGS")&&(typeof O.ADD_TAGS=="function"?Zr.tagCheck=O.ADD_TAGS:Zl(O.ADD_TAGS)&&(ke===_t&&(ke=Lr(ke)),bt(ke,O.ADD_TAGS,rn))),_r(O,"ADD_ATTR")&&(typeof O.ADD_ATTR=="function"?Zr.attributeCheck=O.ADD_ATTR:Zl(O.ADD_ATTR)&&(De===We&&(De=Lr(De)),bt(De,O.ADD_ATTR,rn))),_r(O,"ADD_FORBID_CONTENTS")&&Zl(O.ADD_FORBID_CONTENTS)&&(ki===Jc&&(ki=Lr(ki)),bt(ki,O.ADD_FORBID_CONTENTS,rn)),Xr&&(ke["#text"]=!0),Me&&bt(ke,["html","head","body"]),ke.table&&(bt(ke,["tbody"]),delete ht.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw sa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw sa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ae=P;P=O.TRUSTED_TYPES_POLICY;try{D=F("")}catch(be){throw P=ae,be}}else O.TRUSTED_TYPES_POLICY===null?(P=void 0,D=""):(P===void 0&&(P=Y()),P&&typeof D=="str
8301ing"&&(D=F("")));Sn&&Sn(O),il=O},WT=bt({},[...uw,...dw,...dTe]),BT=bt({},[...hw,...hTe]),R3=function(O,q,ae){return q.namespaceURI===Yt?O==="svg":q.namespaceURI===xi?O==="svg"&&(ae==="annotation-xml"||qh[ae]):!!WT[O]},M3=function(O,q,ae){return q.namespaceURI===Yt?O==="math":q.namespaceURI===Jt?O==="math"&&Ry[ae]:!!BT[O]},j3=function(O,q,ae){return q.namespaceURI===Jt&&!Ry[ae]||q.namespaceURI===xi&&!qh[ae]?!1:!BT[O]&&(N3[O]||!WT[O])},$3=function(O){let q=k(O);(!q||!q.tagName)&&(q={namespaceURI:Ao,tagName:"template"});const ae=Lu(O.tagName),be=Lu(q.tagName);return lr[O.namespaceURI]?O.namespaceURI===Jt?R3(ae,q,be):O.namespaceURI===xi?M3(ae,q,be):O.namespaceURI===Yt?j3(ae,q,be):!!(Qc==="application/xhtml+xml"&&lr[O.namespaceURI]):!1},Zi=function(O){yu(t.removed,{element:O});try{k(O).removeChild(O)}catch{if(f(O),!k(O))throw sa("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},HT=function(O,q,ae){try{b(O,q)}catch{try{O.removeAttribute(ae)}catch{}}},Vh=function(O){Kh(O);const q=w(O);if(q){const be=[];ds(q,je=>{yu(be,je)}),ds(be,je=>{try{f(je)}catch{}})}const ae=S(O);if(ae)for(let be=ae.length-1;be>=0;--be){const je=ae[be],st=je&&je.name;typeof st=="string"&&HT(O,je,st)}},Ga=function(O,q,ae){if(!ae)try{ae=q.getAttributeNode(O)}catch{ae=null}yu(t.removed,{attribute:ae||null,from:q});try{ae?b(q,ae):q.removeAttribute(O)}catch{try{q.removeAttribute(O)}catch{}}if(O==="is")if(Dn||Qr)try{Zi(q)}catch{}else try{q.setAttribute(O,"")}catch{}},L3=function(O){const q=S(O);if(q)for(let ae=q.length-1;ae>=0;--ae){const be=q[ae],je=be&&be.name;typeof je!="string"||De[rn(je)]||HT(O,be,je)}},Kh=function(O){const q=[O];for(;q.length>0;){const ae=q.pop();$(ae)===Or.element&&L3(ae);const be=w(ae);if(be)for(let je=be.length-1;je>=0;--je)q.push(be[je])}},qT=function(O,q){return fe?O==="patchsrc"?!0:O==="for"&&q!=="label"&&q!=="output":!1},z3=function(O){if(!fe)return;const q=[O];for(;q.length>0;){const ae=q.pop(),be=$(ae);if(be===Or.processingInstruction||be===Or.comment&&Gn(NC,ae.data)){try{f(ae)}catch{}continue}if(be===Or.element){const st=ae,gt=rn(T(ae));try{st.hasAttribute&&st.hasAttribute("patchsrc")&&st.removeAttribute("patchsrc"),st.hasAttribute&&st.hasAttribute("for")&&qT("for",gt)&&st.removeAttribute("for")}catch{}}const je=w(ae);if(je)for(let st=je.length-1;st>=0;--st)q.push(je[st])}},VT=function(O){let q=null,ae=null;if(Pn)O="<remove></remove>"+O;else{const st=vC(O,/^[\r\n\t ]+/);ae=st&&st[0]}Qc==="application/xhtml+xml"&&Ao===Yt&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const be=P?F(O):O;if(Ao===Yt)try{q=new c().parseFromString(be,Qc)}catch{}if(!q||!q.documentElement){q=W.createDocument(Ao,"template",null);try{q.documentElement.innerHTML=sr?D:be}catch{}}const je=q.body||q.documentElement;return O&&ae&&je.insertBefore(n.createTextNode(ae),je.childNodes[0]||null),Ao===Yt?U.call(q,Me?"html":"body")[0]:Me?q.documentElement:je},KT=function(O){const q=C?C(O):O.ownerDocument;return _.call(q||O,O,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Gh=function(O){return O=bu(O,Q," "),O=bu(O,oe," "),O=bu(O,ee," "),O},jy=function(O){var q;O.normalize();const ae=C?C(O):O.ownerDocument,be=_.call(ae||O,O,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let je=be.nextNode();for(;je;)je.data=Gh(je.data),je=be.nextNode();const st=(q=O.querySelectorAll)===null||q===void 0?void 0:q.call(O,"template");st&&ds(st,gt=>{al(gt.content)&&jy(gt.content)})},Yh=function(O){const q=E?E(O):null;return typeof q!="string"||rn(q)!=="form"?!1:typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||O.attributes!==S(O)||typeof O.removeAttribute!="function"||typeof O.removeAttributeNode!="function"||typeof O.getAttributeNode!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function"||O.nodeType!==I(O)||O.childNodes!==w(O)},al=function(O){if(!I||typeof O!="object"||O===null)return!1;try{return I(O)===Or.documentFragment}catch{return!1}},Xc=function(O){if(!I||typeof O!="object"||O===null)return!1;try{return typeof I(O)=="number"}catch{return!1}};function ti(he,O,q){he.length!==0&&ds(he,ae=>{ae.call(t,O,q,il)})}const U3=function(O,q){return!!(fe&&O.hasChildNodes()&&!Xc(O.firstElementChild)&&Gn(CC,O.textContent)&&Gn(CC,O.innerHTML)||fe&&O.namespaceURI===Yt&&STe[q]&&(Xc(O.firstElementChild)||typeof O.textContent=="string"&&Gn(TTe[q],O.textContent))||O.nodeType===Or.processingInstruction||fe&&O.nodeType===Or.comment&&Gn(NC,O.data))}
vendor: 3,449 bytes, line 8301
8301,Zh=function(O,q){if(O instanceof RegExp)return Gn(O,q);if(O instanceof Function){for(var ae=arguments.length,be=new Array(ae>2?ae-2:0),je=2;je<ae;je++)be[je-2]=arguments[je];return!!O(q,...be)}return!1},F3=function(O,q,ae){if(!ht[q]&&JT(q)&&Zh(ft.tagNameCheck,q))return!1;if(Xr&&!ki[q]){const be=k(O),je=w(O);if(je&&be){const st=je.length;for(let gt=st-1;gt>=0;--gt){const Qt=O===ae?p(je[gt],!0):je[gt];be.insertBefore(Qt,y(O))}}}return Zi(O),!0},GT=function(O,q,ae,be){return O.length===0?q:q===ae||q===be?Lr(q):q},sl=function(O,q){return O===q||k(O)!==null?!1:(Zc&&Kh(O),!0)},YT=function(O,q){if(ti(K.beforeSanitizeElements,O,null),sl(O,q))return!0;if(Yh(O))return Zi(O),!0;const ae=rn(T(O));if(ke=GT(K.uponSanitizeElement,ke,_t,ot),ti(K.uponSanitizeElement,O,{tagName:ae,allowedTags:ke}),sl(O,q))return!0;if(U3(O,ae))return Zi(O),!0;if(ht[ae]||!(Zr.tagCheck instanceof Function&&Zr.tagCheck(ae))&&!ke[ae]){const be=F3(O,ae,q);return be===!1&&(ti(K.afterSanitizeElements,O,null),sl(O,q))?!0:be}if($(O)===Or.element&&!$3(O)||(ae==="noscript"||ae==="noembed"||ae==="noframes")&&Gn(xTe,O.innerHTML))return Zi(O),!0;if(Z&&O.nodeType===Or.text){const be=Gh(O.textContent);O.textContent!==be&&(yu(t.removed,{element:O.cloneNode()}),O.textContent=be)}return ti(K.afterSanitizeElements,O,null),sl(O,q)},ZT=function(O,q,ae){if(Io[q]||qT(q,O)||kn&&(q==="id"||q==="name")&&(ae in n||ae in O3))return!1;const be=De[q]||Zr.attributeCheck instanceof Function&&Zr.attributeCheck(q,O);return Jr&&Gn(ye,q)||Nn&&Gn(ve,q)?!0:be?xn[q]||Gn(Ne,bu(ae,Oe,""))||(q==="src"||q==="xlink:href"||q==="href")&&O!=="script"&&kC(ae,"data:")===0&&qe[O]||rl&&!Gn(ce,bu(ae,Oe,""))?!0:!ae:JT(O)&&Zh(ft.tagNameCheck,O)&&Zh(ft.attributeNameCheck,q,O)||q==="is"&&ft.allowCustomizedBuiltInElements&&Zh(ft.tagNameCheck,ae)},W3=bt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),JT=function(O){return!W3[Lu(O)]&&Gn(Ue,O)},B3=function(O,q,ae,be){if(P&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ae)switch(h.getAttributeType(O,q)){case"TrustedHTML":return F(be);case"TrustedScriptURL":return G(be)}return be},H3=function(O,q,ae,be){try{return ae?O.setAttributeNS(ae,q,be):O.setAttribute(q,be),Yh(O)?(Zi(O),!1):!0}catch{return Ga(q,O),!1}},QT=function(O,q){if(ti(K.beforeSanitizeAttributes,O,null),sl(O,q))return;const ae=O.attributes;if(!ae||Yh(O))return;De=GT(K.uponSanitizeAttribute,De,We,vn);const be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De,forceKeepAttr:void 0};let je=ae.length;const st=rn(O.nodeName);for(;je--;){const gt=ae[je],Qt=gt.name,eo=gt.namespaceURI,Dr=gt.value,ll=rn(Qt),Ly=Dr;let cr=Qt==="value"?Ly:oTe(Ly),XT=!1;if(be.attrName=ll,be.attrValue=cr,be.keepAttr=!0,be.forceKeepAttr=void 0,ti(K.uponSanitizeAttribute,O,be),cr=be.attrValue,Eo&&(ll==="id"||ll==="name")&&kC(cr,qn)!==0&&(Ga(Qt,O,gt),cr=qn+cr,XT=!0),fe&&Gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,cr)){Ga(Qt,O,gt);continue}if(ll==="attributename"&&vC(cr,"href")){Ga(Qt,O,gt);continue}if(!be.forceKeepAttr){if(!be.keepAttr){Ga(Qt,O,gt);continue}if(!ol&&Gn(_Te,cr)){Ga(Qt,O,gt);continue}if(Z&&(cr=Gh(cr)),!ZT(st,ll,cr)){Ga(Qt,O,gt);continue}cr=B3(st,ll,eo,cr),cr!==Ly&&H3(O,Qt,eo,cr)&&XT&&wC(t.removed)}}ti(K.afterSanitizeAttributes,O,null),sl(O,q)},Jh=function(O){let q=null;const ae=KT(O);for(ti(K.beforeSanitizeShadowDOM,O,null);q=ae.nextNode();
8301)if(ti(K.uponSanitizeShadowNode,q,null),YT(q,O),QT(q,O),al(q.content)&&Jh(q.content),$(q)===Or.element){const be=x(q);al(be)&&($y(be),Jh(be))}ti(K.afterSanitizeShadowDOM,O,null)},$y=function(O){const q=[{node:O,shadow:null}];for(;q.length>0;){const ae=q.pop();if(ae.shadow){Jh(ae.shadow);continue}const be=ae.node,je=$(be)===Or.element,st=w(be);if(st)for(let gt=st.length-1;gt>=0;--gt)q.push({node:st[gt],shadow:null});if(je){const gt=E?E(be):null;if(typeof gt=="string"&&rn(gt)==="template"){const Qt=be.content;al(Qt)&&q.push({node:Qt,shadow:null})}}if(je){const gt=x(be);al(gt)&&q.push({node:null,shadow:gt},{node:gt,shadow:null})}}};return t.sanitize=function(he){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ae=null,be=null,je=null;if(sr=!he,sr&&(he="<!-->"),typeof he!="string"&&!Xc(he)&&(he=cTe(he),typeof he!="string"))throw sa("dirty is not a string, aborting");if(!t.isSupported)return he;Ye?(ke=ot,De=vn):My(O),(K.uponSanitizeElement.length>0||K.uponSanitizeAttribute.length>0)&&(ke=Lr(ke)),K.uponSanitizeAttribute.length>0&&(De=Lr(De)),t.removed=[];const st=Zc&&typeof he!="string"&&Xc(he);if(st){z3(he);const eo=T(he);if(typeof eo=="string"){const Dr=rn(eo);if(!ke[Dr]||ht[Dr])throw Vh(he),sa("root node is forbidden and cannot be sanitized in-place")}if(Yh(he))throw Vh(he),sa("root node is clobbered and cannot be sanitized in-place");try{$y(he)}catch(Dr){throw Vh(he),Dr}}else if(Xc(he))q=VT("<!---->"),ae=q.ownerDocument.importNode(he,!0),ae.nodeType===Or.element&&ae.nodeName==="BODY"||ae.nodeName==="HTML"?q=ae:q.appendChild(ae),$y(q);else{if(!Dn&&!Z&&!Me&&he.indexOf("<")===-1)return P&&Pr?F(he):he;if(q=VT(he),!q)return Dn?null:Pr?D:""}q&&Pn&&Zi(q.firstChild);const gt=st?he:q;try{const eo=KT(gt);for(;be=eo.nextNode();)YT(be,gt),QT(be,gt),al(be.content)&&Jh(be.content)}catch(eo){throw st&&(Vh(he),ds(t.removed,Dr=>{Dr.element&&Kh(Dr.element)})),eo}if(st){let eo=!1;if(ds(t.removed,Dr=>{Dr.element&&(Dr.element===he&&(eo=!0),Kh(Dr.element))}),eo)throw sa("a node selected for removal could not be safely returned; refusing to sanitize in place");return Z&&jy(he),he}if(Dn){if(Z&&jy(q),Qr)for(je=ne.call(q.ownerDocument);q.firstChild;)je.appendChild(q.firstChild);else je=q;return(De.shadowroot||De.shadowrootmode)&&(je=A.call(r,je,!0)),je}let Qt=Me?q.outerHTML:q.innerHTML;return Me&&ke["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Gn(vTe,q.ownerDocument.doctype.name)&&(Qt="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
8302`+Qt),Z&&(Qt=Gh(Qt)),P&&Pr?F(Qt):Qt},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};My(he),Ye=!0,ot=ke,vn=De},t.clearConfig=function(){il=null,Ye=!1,ot=null,vn=null,P=H,D=""},t.isValidAttribute=function(he,O,q){il||My({});const ae=rn(he),be=rn(O);return ZT(ae,be,q)},t.addHook=function(he,O){typeof O=="function"&&_r(K,he)&&yu(K[he],O)},t.removeHook=function(he,O){if(_r(K,he)){if(O!==void 0){const q=nTe(K[he],O);return q===-1?void 0:rTe(K[he],q,1)[0]}return wC(K[he])}},t.removeHooks=function(he){_r(K,he)&&(K[he]=[])},t.removeAllHooks=function(){K=PC()},t}var ATe=uW();function CTe(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}const NTe=new Set(["png","jpg","jpeg","gif","webp","svg","bmp"]),PTe=new Set(["txt","md","markdown","csv","tsv","json","xml","yaml","yml","py","js","jsx","ts","tsx","html","htm","css","scss","sass","sh","bash","zsh","sql","go","rs","rb","java","kt","swift","c","cpp","h","hpp","log","ini","conf","toml","env","gitignore"]),DTe=1e6;async function OTe(e,t){const n=CTe(t.filename);if(NTe.has(n))return{kind:"image",src:URL.createObjectURL(e)};if(n==="pdf")return{kind:"pdf",src:URL.createObjectURL(e)};if(PTe.has(n))return e.size>DTe?{kind:"unsupported",reason:`File is ${(e.size/1024/1024).toFixed(1)} MB — too large for inline preview. Download instead.`}:{kind:"text",text:await e.text(),language:n};if(n==="docx")try{const r=await tt(()=>import("./vendor-office-C3AYyXut.js").then(a=>a.i),__vite__mapDeps([0,1])),o=await e.arrayBuffer();return{kind:"html",html:(await r.convertToHtml({arrayBuffer:o})).value}}catch(r){return{kind:"error",message:`Couldn't render DOCX: ${r instanceof Error?r.message:"unknown error"}`}}if(n==="xlsx"||n==="xls")try{const r=await tt(()=>import("./vendor-office-C3AYyXut.js").then(c=>c.x),__vite__mapDeps([0,1])),o=await e.arrayBuffer(),i=r.read(o,{type:"array"}),a=i.SheetNames[0];if(!a)return{kind:"unsupported",reason:"Workbook is empty."};const s=i.Sheets[a];let l=r.utils.sheet_to_html(s);return i.SheetNames.length>1&&(l=i.SheetNames.map(c=>{const h=i.Sheets[c];return`<h3 style="margin-top:1.5em;margin-bottom:.25em">${c}</h3>${r.utils.sheet_to_html(h)}`}).join("")),{kind:"html",html:l}}catch(r){return{kind:"error",message:`Couldn't render spreadsheet: ${r instanceof Error?r.message:"unknown error"}`}}return{kind:"unsupported",reason:`Preview not supported for .${n||"?"} files. Download to view.`}}function RTe({open:e,anthropicSessionId:t,file:n,onClose:r}){const{getAccessTokenSilently:o}=Pe(),[i,a]=g.useState({kind:"loading"}),[s,l]=g.useState(!1);g.useEffect(()=>{if(!e)return;let h=!1;const d=[];return a({kind:"loading"}),(async()=>{try{const p=await dC(t,n.id,o);if(h)return;const f=await OTe(p,n);if(h){(f.kind==="image"||f.kind==="pdf")&&URL.revokeObjectURL(f.src);return}(f.kind==="image"||f.kind==="pdf")&&d.push(f.src),a(f)}catch(p){if(h)return;a({kind:"error",message:p instanceof Error?p.message:"Failed to load file."})}})(),()=>{h=!0;for(const p of d)URL.revokeObjectURL(p)}},[e,t,n.id,o]);const c=async()=>
8302{if(!s){l(!0);try{const h=await dC(t,n.id,o),d=URL.createObjectURL(h),p=document.createElement("a");p.href=d,p.download=n.filename,document.body.appendChild(p),p.click(),document.body.removeChild(p),setTimeout(()=>URL.revokeObjectURL(d),0)}catch(h){console.error("Failed to download session output",h),rt.error("Couldn't download that file.")}finally{l(!1)}}};return u.jsx(za,{open:e,onOpenChange:h=>!h&&r(),children:u.jsxs(Ua,{className:"max-w-5xl",children:[u.jsx(Zs,{children:u.jsxs(Fa,{className:"flex items-center gap-2 truncate",children:[u.jsx(W$,{className:"h-4 w-4 shrink-0 opacity-70"}),u.jsx("span",{className:"truncate",children:n.filename})]})}),u.jsxs("div",{className:"max-h-[70vh] min-h-[200px] overflow-auto rounded-md border bg-background",children:[i.kind==="loading"&&u.jsxs("div",{className:"flex h-48 items-center justify-center text-muted-foreground",children:[u.jsx(Ht,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading preview…"]}),i.kind==="image"&&u.jsx("img",{src:i.src,alt:n.filename,className:"mx-auto block max-w-full"}),i.kind==="pdf"&&u.jsx("iframe",{src:i.src,title:n.filename,className:"h-[70vh] w-full"}),i.kind==="text"&&u.jsx("pre",{className:"overflow-auto p-4 font-mono text-xs leading-relaxed",children:i.text}),i.kind==="html"&&u.jsx("div",{className:"prose prose-sm max-w-none p-4 dark:prose-invert",dangerouslySetInnerHTML:{__html:ATe.sanitize(i.html)}}),i.kind==="unsupported"&&u.jsxs("div",{className:"flex h-48 flex-col items-center justify-center gap-2 px-4 text-center text-muted-foreground",children:[u.jsx(cd,{className:"h-5 w-5 opacity-70"}),u.jsx("span",{className:"text-sm",children:i.reason})]}),i.kind==="error"&&u.jsxs("div",{className:"flex h-48 flex-col items-center justify-center gap-2 px-4 text-center text-destructive",children:[u.jsx(cd,{className:"h-5 w-5"}),u.jsx("span",{className:"text-sm",children:i.message})]})]}),u.jsxs(_h,{className:"flex items-center justify-between sm:justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:n.sizeBytes<1024?`${n.sizeBytes} B`:n.sizeBytes<1024*1024?`${(n.sizeBytes/1024).toFixed(1)} KB`:`${(n.sizeBytes/1024/1024).toFixed(1)} MB`}),u.jsxs(Ve,{type:"button",variant:"outline",size:"sm",onClick:()=>{c()},disabled:s,children:[s?u.jsx(Ht,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):u.jsx(FG,{className:"mr-2 h-3.5 w-3.5"}),"Download"]})]})]})})}function DC(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function MTe({anthropicSessionId:e,file:t}){const[n,r]=g.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsxs("button",{type:"button",onClick:()=>r(!0),className:X("inline-flex max-w-full items-center gap-2 rounded-md border bg-muted/40 px-2.5 py-1.5 text-xs","transition-colors hover:bg-muted/70 focus:outline-none focus:ring-2 focus:ring-ring"),title:`Preview ${t.filename} (${DC(t.sizeBytes)})`,children:[u.jsx(W$,{className:"h-3.5 w-3.5 shrink-0 opacity-70"}),u.jsx("span",{className:"truncate font-medium",children:t.filename}),u.jsx("span",{className:"shrink-0 text-muted-foreground",children:DC(t.sizeBytes)}),u.jsx(ud,{className:"h-3.5 w-3.5 shrink-0 opacity-70"})]}),u.jsx(RTe,{open:n,anthropicSessionId:e,file:t,onClose:()=>r(!1)})]})}function jTe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $Te=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LTe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zTe={};function OC(e,t){return(zTe.jsx?LTe:$Te).test(e)}const UTe=/[ \t\n\f\r]/g;function FTe(e){return typeof e=="object"?e.type==="text"?RC(e.value):!1:RC(e)}function RC(e){return e.replace(UTe,"")===""}class Fh{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Fh.prototype.normal={};Fh.prototype.property={};Fh.prototype.space=void 0;function dW(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Fh(n,r,t)}function xk(e){return e.toLowerCase()}class Nr{constructor(t,n){this.attribute=n,this.property=t}}Nr.prototype.attribute="";Nr.prototype.booleanish=!1;Nr.prototype.boolean=!1;Nr.prototype.commaOrSpaceSeparated=!1;Nr.prototype.commaSeparated=!1;Nr.prototype.defined=!1;Nr.prototype.mustUseProperty=!1;Nr.prototype.number=!1;Nr.prototype.overloadedBoolean=!1;Nr.prototype.property="";Nr.prototype.spaceSeparated=!1;Nr.prototype.space=void 0;let WTe=0;const Xe=nl(),fn=nl(),_k=nl(),me=nl(),$t=nl(),Jl=nl(),Rr=nl();function nl(){return 2**++WTe}const Sk=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xe,booleanish:fn,commaOrSpaceSeparated:Rr,commaSeparated:Jl,number:me,overloadedBoolean:_k,spaceSeparated:$t},Symbol.toStringTag,{value:"Module"})),fw=Object.keys(Sk);class wT extends Nr{constructor(t,n,r,o){let i=-1;
vendor: 4,264 bytes, line 8302
8302if(super(t,n),MC(this,"space",o),typeof r=="number")for(;++i<fw.length;){const a=fw[i];MC(this,fw[i],(r&Sk[a])===Sk[a])}}}wT.prototype.defined=!0;function MC(e,t,n){n&&(e[t]=n)}function Gc(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new wT(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[xk(r)]=r,n[xk(i.attribute)]=r}return new Fh(t,n,e.space)}const hW=Gc({properties:{ariaActiveDescendant:null,ariaAtomic:fn,ariaAutoComplete:null,ariaBusy:fn,ariaChecked:fn,ariaColCount:me,ariaColIndex:me,ariaColSpan:me,ariaControls:$t,ariaCurrent:null,ariaDescribedBy:$t,ariaDetails:null,ariaDisabled:fn,ariaDropEffect:$t,ariaErrorMessage:null,ariaExpanded:fn,ariaFlowTo:$t,ariaGrabbed:fn,ariaHasPopup:null,ariaHidden:fn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$t,ariaLevel:me,ariaLive:null,ariaModal:fn,ariaMultiLine:fn,ariaMultiSelectable:fn,ariaOrientation:null,ariaOwns:$t,ariaPlaceholder:null,ariaPosInSet:me,ariaPressed:fn,ariaReadOnly:fn,ariaRelevant:null,ariaRequired:fn,ariaRoleDescription:$t,ariaRowCount:me,ariaRowIndex:me,ariaRowSpan:me,ariaSelected:fn,ariaSetSize:me,ariaSort:null,ariaValueMax:me,ariaValueMin:me,ariaValueNow:me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function mW(e,t){return t in e?e[t]:t}function pW(e,t){return mW(e,t.toLowerCase())}const BTe=Gc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jl,acceptCharset:$t,accessKey:$t,action:null,allow:null,allowFullScreen:Xe,allowPaymentRequest:Xe,allowUserMedia:Xe,alt:null,as:null,async:Xe,autoCapitalize:null,autoComplete:$t,autoFocus:Xe,autoPlay:Xe,blocking:$t,capture:null,charSet:null,checked:Xe,cite:null,className:$t,cols:me,colSpan:null,content:null,contentEditable:fn,controls:Xe,controlsList:$t,coords:me|Jl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xe,defer:Xe,dir:null,dirName:null,disabled:Xe,download:_k,draggable:fn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xe,formTarget:null,headers:$t,height:me,hidden:_k,high:me,href:null,hrefLang:null,htmlFor:$t,httpEquiv:$t,id:null,imageSizes:null,imageSrcSet:null,inert:Xe,inputMode:null,integrity:null,is:null,isMap:Xe,itemId:null,itemProp:$t,itemRef:$t,itemScope:Xe,itemType:$t,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xe,low:me,manifest:null,max:null,maxLength:me,media:null,method:null,min:null,minLength:me,multiple:Xe,muted:Xe,name:null,nonce:null,noModule:Xe,noValidate:Xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xe,optimum:me,pattern:null,ping:$t,placeholder:null,playsInl
8302ine:Xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xe,referrerPolicy:null,rel:$t,required:Xe,reversed:Xe,rows:me,rowSpan:me,sandbox:$t,scope:null,scoped:Xe,seamless:Xe,selected:Xe,shadowRootClonable:Xe,shadowRootDelegatesFocus:Xe,shadowRootMode:null,shape:null,size:me,sizes:null,slot:null,span:me,spellCheck:fn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:me,step:null,style:null,tabIndex:me,target:null,title:null,translate:null,type:null,typeMustMatch:Xe,useMap:null,value:fn,width:me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$t,axis:null,background:null,bgColor:null,border:me,borderColor:null,bottomMargin:me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xe,declare:Xe,event:null,face:null,frame:null,frameBorder:null,hSpace:me,leftMargin:me,link:null,longDesc:null,lowSrc:null,marginHeight:me,marginWidth:me,noResize:Xe,noHref:Xe,noShade:Xe,noWrap:Xe,object:null,profile:null,prompt:null,rev:null,rightMargin:me,rules:null,scheme:null,scrolling:fn,standby:null,summary:null,text:null,topMargin:me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xe,disableRemotePlayback:Xe,prefix:null,property:null,results:me,security:null,unselectable:null},space:"html",transform:pW}),HTe=Gc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
8302-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Rr,accentHeight:me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:me,amplitude:me,arabicForm:null,ascent:me,attributeName:null,attributeType:null,azimuth:me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:me,by:null,calcMode:null,capHeight:me,className:$t,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:me,diffuseConstant:me,direction:null,display:null,dur:null,divisor:me,dominantBaseline:null,download:Xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:me,enableBackground:null,end:null,event:null,exponent:me,externalResourcesRequired:null,fill:null,fillOpacity:me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Jl,g2:Jl,glyphName:Jl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:me,horizOriginX:me,horizOriginY:me,id:null,ideographic:me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:me,k:me,k1:me,k2:me,k3:me,k4:me,kernelMatrix:Rr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,392 bytes, lines 8302-8303
8302Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:me,overlineThickness:me,paintOrder:null,panose1:null,path:null,pathLength:me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$t,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:me,pointsAtY:me,pointsAtZ:me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rr,rev:Rr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rr,requiredFeatures:Rr,requiredFonts:Rr,requiredFormats:Rr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:me,specularExponent:me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:me,strikethroughThickness:me,string:null,stroke:null,strokeDashArray:Rr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:me,strokeOpacity:me,strokeWidth:null,style:null,surfaceScale:me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rr,tabIndex:me,tableValues:null,target:null,targetX:me,targetY:me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:me,underlineThickness:me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:me,values:null,vAlphabetic:me,vMathematical:me,vectorEffect:null,vHanging:me,vIdeographic:me,version:null,vertAdvY:me,vertOriginX:me,vertOriginY:me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mW}),fW=Gc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gW=Gc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pW}),yW=Gc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qTe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},VTe=/[A-Z]/g,jC=/-[a-z]/g,KTe=/^data[-\w.:]+$/i;function GTe(e,t){const n=xk(t);let r=t,o=Nr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&KTe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(jC,ZTe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!jC.test(i)){let a=i.replace(VTe,YTe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=wT}return new o(r,t)}function YTe(e){return"-"+e.toLowerCase()}function ZTe(e){return e.charAt(1).toUpperCase()}const JTe=dW([hW,BTe,fW,gW,yW],"html"),vT=dW([hW,HTe,fW,gW,yW],"svg");function QTe(e){return e.join(" ").trim()}var _l={},gw,$C;function XTe(){if($C)return gw;$C=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
8303`,c="/",h="*",d="",p="comment",f="declaration";function b(w,k){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];k=k||{};var x=1,S=1;function I(J){var F=J.match(t);F&&(x+=F.length);var G=J.lastIndexOf(l);S=~G?J.length-G:S+J.length}function E(){var J={line:x,column:S};return function(F){return F.position=new C(J),P(),F}}function C(J){this.start=J,this.end={line:x,column:S},this.source=k.source}C.prototype.content=w;function $(J){var F=new Error(k.source+":"+x+":"+S+": "+J);if(F.reason=J,F.filename=k.source,F.line=x,F.column=S,F.source=w,!k.silent)throw F}function T(J){var F=J.exec(w);if(F){var G=F[0];return I(G),w=w.slice(G.length),F}}function P(){T(n)}function D(J){var F;for(J=J||[];F=H();)F!==!1&&J.push(F);return J}function H(){var J=E();if(!(c!=w.charAt(0)||h!=w.charAt(1))){for(var F=2;d!=w.charAt(F)&&(h!=w.charAt(F)||c!=w.charAt(F+1));)++F;if(F+=2,d===w.charAt(F-1))return $("End of comment missing");var G=w.slice(2,F-2);return S+=2,I(G),w=w.slice(F),S+=2,J({type:p,comment:G})}}function z(){var J=E(),F=T(r);if(F){if(H(),!T(o))return $("property missing ':'");var G=T(i),Y=J({type:f,property:y(F[0].replace(e,d)),value:G?y(G[0].replace(e,d)):d});return T(a),Y}}function V(){var J=[];D(J);for(var F;F=z();)F!==!1&&(J.push(F),D(J));return J}return P(),V()}function y(w){return w?w.replace(s,d):d}return gw=b,gw}var LC;function e1e(){if(LC)return _l;LC=1;var e=_l&&_l.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};
vendor: 3,730 bytes, line 8303
8303Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=n;const t=e(XTe());function n(r,o){let i=null;if(!r||typeof r!="string")return i;const a=(0,t.default)(r),s=typeof o=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:h}=l;s?o(c,h,l):h&&(i=i||{},i[c]=h)}),i}return _l}var vu={},zC;function t1e(){if(zC)return vu;zC=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},a=function(c,h){return h.toUpperCase()},s=function(c,h){return"".concat(h,"-")},l=function(c,h){return h===void 0&&(h={}),i(c)?c:(c=c.toLowerCase(),h.reactCompat?c=c.replace(o,s):c=c.replace(r,s),c.replace(t,a))};return vu.camelCase=l,vu}var ku,UC;function n1e(){if(UC)return ku;UC=1;var e=ku&&ku.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(e1e()),n=t1e();function r(o,i){var a={};return!o||typeof o!="string"||(0,t.default)(o,function(s,l){s&&l&&(a[(0,n.camelCase)(s,i)]=l)}),a}return r.default=r,ku=r,ku}var r1e=n1e();const o1e=LN(r1e),bW=wW("end"),kT=wW("start");function wW(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function i1e(e){const t=kT(e),n=bW(e);if(t&&n)return{start:t,end:n}}function Ju(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?FC(e.position):"start"in e||"end"in e?FC(e):"line"in e||"column"in e?Tk(e):""}function Tk(e){return WC(e&&e.line)+":"+WC(e&&e.column)}function FC(e){return Tk(e&&e.start)+"-"+Tk(e&&e.end)}function WC(e){return e&&typeof e=="number"?e:1}class ar extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},a=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(a=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=s?s.line:void 0,this.name=Ju(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ar.prototype.file="";ar.prototype.name="";ar.prototype.reason="";ar.prototype.message="";ar.prototype.stack="";ar.prototype.column=void 0;ar.prototype.line=void 0;ar.prototype.ancestors=void 0;ar.prototype.cause=void 0;ar.prototype.fatal=void 0;ar.prototype.place=void 0;ar.prototype.ruleId=void 0;ar.prototype.source=void 0;const xT={}.hasOwnProperty,a1e=new Map,s1e=/[A-Z]/g,l1e=new Set(["table","tbody","thead","tfoot","tr"]),c1e=new Set(["td","th"]),vW="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function u1e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=b1e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 5,879 bytes, line 8303
8303if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=y1e(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?vT:JTe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=kW(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function kW(e,t,n){if(t.type==="element")return d1e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return h1e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return p1e(e,t,n);if(t.type==="mdxjsEsm")return m1e(e,t);if(t.type==="root")return f1e(e,t,n);if(t.type==="text")return g1e(e,t)}function d1e(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=vT,e.schema=o),e.ancestors.push(t);const i=_W(e,t.tagName,!1),a=w1e(e,t);let s=ST(e,t);return l1e.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!FTe(l):!0})),xW(e,a,i,t),_T(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}function h1e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Td(e,t.position)}function m1e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Td(e,t.position)}function p1e(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=vT,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:_W(e,t.name,!0),a=v1e(e,t),s=ST(e,t);return xW(e,a,i,t),_T(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}function f1e(e,t,n){const r={};return _T(r,ST(e,t)),e.create(t,e.Fragment,r,n)}function g1e(e,t){return t.value}function xW(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _T(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function y1e(e,t,n){return r;function r(o,i,a,s){const c=Array.isArray(a.children)?n:t;return s?c(i,a,s):c(i,a)}}function b1e(e,t){return n;function n(r,o,i,a){const s=Array.isArray(i.children),l=kT(r);return t(o,i,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function w1e(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&xT.call(t.properties,o)){const i=k1e(e,o,t.properties[o]);if(i){const[a,s]=i;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&c1e.has(t.tagName)?r=s:n[a]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function v1e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const a=i.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Td(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Td(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function ST(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:a1e;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;a=l+"-"+c,o.set(l,c+1)}}const s=kW(e,i,a);s!==void 0&&n.push(s)}return n}function k1e(e,t,n){const r=GTe(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?jTe(n):QTe(n)),r.property==="style"){let o=typeof n=="object"?n:x1e(e,String(n));return e.stylePropertyNameCase==="css"&&(o=_1e(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?qTe[r.property]||r.property:r.attribute,n]}}function x1e(e,t){try{return o1e(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new ar("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=vW+"#cannot-parse-style-attribute",o}}function _W(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,a;for(;++i<o.length;){const s=OC(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=a}else r=OC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return xT.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Td(e)}function Td(e,t){const n=new ar("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vW+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _1e(e){const t={};let n;for(n in e)xT.call(e,n)&&(t[S1e(n)]=e[n]);return t}function S1e(e){let t=e.replace(s1e,T1e);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function T1e(e){return"-"+e.toLowerCase()}const yw={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},I1e={};function TT(e,t){const n=I1e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;
vendor: 11,387 bytes, line 8303
8303return SW(e,r,o)}function SW(e,t,n){if(E1e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return BC(e.children,t,n)}return Array.isArray(e)?BC(e,t,n):""}function BC(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=SW(e[o],t,n);return r.join("")}function E1e(e){return!!(e&&typeof e=="object")}const HC=document.createElement("i");function IT(e){const t="&"+e+";";HC.innerHTML=t;const n=HC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function qr(e,t,n,r){const o=e.length;let i=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function ao(e,t){return e.length>0?(qr(e,e.length,0,t),e):t}const qC={}.hasOwnProperty;function TW(e){const t={};let n=-1;for(;++n<e.length;)A1e(t,e[n]);return t}function A1e(e,t){let n;for(n in t){const o=(qC.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){qC.call(o,a)||(o[a]=[]);const s=i[a];C1e(o[a],Array.isArray(s)?s:s?[s]:[])}}}function C1e(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);qr(e,0,0,r)}function IW(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Wo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gr=Ka(/[A-Za-z]/),Qn=Ka(/[\dA-Za-z]/),N1e=Ka(/[#-'*+\--9=?A-Z^-~]/);function of(e){return e!==null&&(e<32||e===127)}const Ik=Ka(/\d/),P1e=Ka(/[\dA-Fa-f]/),D1e=Ka(/[!-/:-@[-`{-~]/);function $e(e){return e!==null&&e<-2}function Ot(e){return e!==null&&(e<0||e===32)}function lt(e){return e===-2||e===-1||e===32}const Cy=Ka(new RegExp("\\p{P}|\\p{S}","u")),Ms=Ka(/\s/);function Ka(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Yc(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&Qn(e.charCodeAt(n+1))&&Qn(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(a=String.fromCharCode(i,s),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function yt(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return a;function a(l){return lt(l)?(e.enter(n),s(l)):t(l)}function s(l){return lt(l)&&i++<o?(e.consume(l),s):(e.exit(n),t(l))}}const O1e={tokenize:R1e};function R1e(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),yt(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return $e(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),a)}}const M1e={tokenize:j1e},VC={tokenize:$1e};function j1e(e){const t=this,n=[];let r=0,o,i,a;return s;function s(S){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,l,c)(S)}return c(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&x();const I=t.events.length;let E=I,C;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){C=t.events[E][1].end;break}k(r);let $=I;for(;$<t.events.length;)t.events[$][1].end={...C},$++;return qr(t.events,E+1,0,t.events.slice(I)),t.events.length=$,c(S)}return s(S)}function c(S){if(r===n.length){if(!o)return p(S);if(o.currentConstruct&&o.currentConstruct.concrete)return b(S);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(VC,h,d)(S)}function h(S){return o&&x(),k(r),p(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,b(S)}function p(S){return t.containerState={},e.attempt(VC,f,b)(S)}function f(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function b(S){if(S===null){o&&x(),k(0),e.consume(S);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),y(S)}function y(S){if(S===null){w(e.exit("chunkFlow"),!0),k(0),e.consume(S);return}return $e(S)?(e.consume(S),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),y)}function w(S,I){const E=t.sliceStream(S);if(I&&E.push(null),S.previous=i,i&&(i.next=S),i=S,o.defineSkip(S.start),o.write(E),t.parser.lazy[S.start.line]){let C=o.events.length;for(;C--;)if(o.events[C][1].start.offset<a&&(!o.events[C][1].end||o.events[C][1].end.offset>a))return;const $=t.events.length;let T=$,P,D;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(P){D=t.events[T][1].end;break}P=!0}for(k(r),C=$;C<t.events.length;)t.events[C][1].end={...D},C++;qr(t.events,T+1,0,t.events.slice($)),t.events.length=C}}function k(S){let I=n.length;for(;I-- >S;){const E=n[I];t.containerState=E[1],E[0].exit.call(t,e)}n.length=S}function x(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function $1e(e,t,n){return yt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xc(e){if(e===null||Ot(e)||Ms(e))return 1;if(Cy(e))return 2}function Ny(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Ek={name:"attention",resolveAll:L1e,tokenize:z1e};function L1e(e,t){let n=-1,r,o,i,a,s,l,c,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};KC(d,-l),KC(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ao(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ao(c,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",i,t]]),c=ao(c,Ny(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ao(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=ao(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,qr(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function z1e(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=xc(r);let i;return a;function a(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),h=xc(l),d=!h||h===2&&o||n.includes(l),p=!o||o===2&&h||n.includes(r);return c._open=!!(i===42?d:d&&(o||!p)),c._close=!!(i===42?p:p&&(h||!d)),t(l)}}function KC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const U1e={name:"autolink",tokenize:F1e};function F1e(e,t,n){let r=0;return o;function o(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return gr(f)?(e.consume(f),a):f===64?n(f):c(f)}function a(f){return f===43||f===45||f===46||Qn(f)?(r=1,s(f)):c(f)}function s(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||Qn(f))&&r++<32?(e.consume(f),s):(r=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||of(f)?n(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),h):N1e(f)?(e.consume(f),c):n(f)}function h(f){return Qn(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,h):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Qn(f))&&r++<63){const b=f===45?p:d;return e.consume(f),b}return n(f)}}const Wh={partial:!0,tokenize:W1e};function W1e(e,t,n){return r;function r(i){return lt(i)?yt(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||$e(i)?t(i):n(i)}}const EW={continuation:{tokenize:H1e},exit:q1e,name:"blockQuote",tokenize:B1e};function B1e(e,t,n){const r=this;return o;function o(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),i}return n(a)}function i(a){return lt(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function H1e(e,t,n){const r=this;return o;function o(a){return lt(a)?yt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):i(a)}function i(a){return e.attempt(EW,t,n)(a)}}function q1e(e){e.exit("blockQuote")}const AW={name:"characterEscape",tokenize:V1e};function V1e(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return D1e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const CW={name:"characterReference",tokenize:K1e};function K1e(e,t,n){const r=this;let o=0,i,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,a=Qn,h(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=P1e,h):(e.enter("characterReferenceValue"),i=7,a=Ik,h(d))}function h(d){if(d===59&&o){const p=e.exit("characterReferenceValue");return a===Qn&&!IT(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&o++<i?(e.consume(d),h):n(d)}}const GC={partial:!0,tokenize:Y1e},YC={concrete:!0,name:"codeFenced",tokenize:G1e};function G1e(e,t,n){const r=this,o={partial:!0,tokenize:E};let i=0,a=0,s;return l;function l(C){return c(C)}function c(C){const $=r.events[r.events.length-1];return i=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,s=C,e.enter("co
8303deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(C)}function h(C){return C===s?(a++,e.consume(C),h):a<3?n(C):(e.exit("codeFencedFenceSequence"),lt(C)?yt(e,d,"whitespace")(C):d(C))}function d(C){return C===null||$e(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(GC,y,I)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||$e(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(C)):lt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),yt(e,f,"whitespace")(C)):C===96&&C===s?n(C):(e.consume(C),p)}function f(C){return C===null||$e(C)?d(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||$e(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(C)):C===96&&C===s?n(C):(e.consume(C),b)}function y(C){return e.attempt(o,I,w)(C)}function w(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),k}function k(C){return i>0&&lt(C)?yt(e,x,"linePrefix",i+1)(C):x(C)}function x(C){return C===null||$e(C)?e.check(GC,y,I)(C):(e.enter("codeFlowValue"),S(C))}function S(C){return C===null||$e(C)?(e.exit("codeFlowValue"),x(C)):(e.consume(C),S)}function I(C){return e.exit("codeFenced"),t(C)}function E(C,$,T){let P=0;return D;function D(F){return C.enter("lineEnding"),C.consume(F),C.exit("lineEnding"),H}function H(F){return C.enter("codeFencedFence"),lt(F)?yt(C,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):z(F)}function z(F){return F===s?(C.enter("codeFencedFenceSequence"),V(F)):T(F)}function V(F){return F===s?(P++,C.consume(F),V):P>=a?(C.exit("codeFencedFenceSequence"),lt(F)?yt(C,J,"whitespace")(F):J(F)):T(F)}function J(F){return F===null||$e(F)?(C.exit("codeFencedFence"),$(F)):T(F)}}}function Y1e(e,t,n){const r=this;return o;function o(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i)}function i(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const bw={name:"codeIndented",tokenize:J1e},Z1e={partial:!0,tokenize:Q1e};function J1e(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),yt(e,i,"linePrefix",5)(c)}function i(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):$e(c)?e.attempt(Z1e,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||$e(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function Q1e(e,t,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):$e(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):yt(e,i,"linePrefix",5)(a)}function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):$e(a)?o(a):n(a)}}const X1e={name:"codeText",previous:tIe,resolve:eIe,tokenize:nIe};function eIe(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function tIe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nIe(e,t,n){let r=0,o,i;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),o=0,h(d)):$e(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||$e(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function h(d){return d===96?(e.consume(d),o++,h):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class rIe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&xu(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);xu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xu(this.left,n.reverse())}}}function xu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function NW(e){const t={};let n=-1,r,o,i,a,s,l,c;const h=new rIe(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);
vendor: 6,627 bytes, line 8303
8303if(r[0]==="enter")r[1].contentType&&(Object.assign(t,oIe(h,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(a=h.get(i),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(o&&(h.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=i);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;o&&(r[1].end={...h.get(o)[1].start},s=h.slice(o,n),s.unshift(r),h.splice(o,n-o+1,s))}}return qr(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function oIe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let h,d,p=-1,f=n,b=0,y=0;const w=[y];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(h),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(y=p+1,w.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),p=w.length;p--;){const k=s.slice(w[p],w[p+1]),x=i.pop();l.push([x,x+k.length-1]),e.splice(x,2,k)}for(l.reverse(),p=-1;++p<l.length;)c[b+l[p][0]]=b+l[p][1],b+=l[p][1]-l[p][0]-1;return c}const iIe={resolve:sIe,tokenize:lIe},aIe={partial:!0,tokenize:cIe};function sIe(e){return NW(e),e}function lIe(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?i(s):$e(s)?e.check(aIe,a,i)(s):(e.consume(s),o)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function cIe(e,t,n){const r=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),yt(e,i,"linePrefix")}function i(a){if(a===null||$e(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function PW(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let h=0;return d;function d(k){return k===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(k),e.exit(i),p):k===null||k===32||k===41||of(k)?n(k):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(k))}function p(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===62?(e.exit("chunkString"),e.exit(s),p(k)):k===null||k===60||$e(k)?n(k):(e.consume(k),k===92?b:f)}function b(k){return k===60||k===62||k===92?(e.consume(k),f):f(k)}function y(k){return!h&&(k===null||k===41||Ot(k))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(k)):h<c&&k===40?(e.consume(k),h++,y):k===41?(e.consume(k),h--,y):k===null||k===32||k===40||of(k)?n(k):(e.consume(k),k===92?w:y)}function w(k){return k===40||k===41||k===92?(e.consume(k),y):y(k)}}function DW(e,t,n,r,o,i){const a=this;let s=0,l;return c;function c(f){return e.enter(r),e.enter(o),e.consume(f),e.exit(o),e.enter(i),h}function h(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):f===93?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):$e(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||$e(f)||s++>999?(e.exit("chunkString"),h(f)):(e.consume(f),l||(l=!lt(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function OW(e,t,n,r,o,i){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(o),e.consume(p),e.exit(o),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===a?(e.exit(i),l(a)):p===null?n(p):$e(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),yt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===a||p===null||$e(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:h)}function d(p){return p===a||p===92?(e.consume(p),h):h(p)}}function Qu(e,t){let n;return r;function r(o){return $e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):lt(o)?yt(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const uIe={name:"definition",tokenize:hIe},dIe={partial:!0,tokenize:mIe};function hIe(e,t,n){const r=this;let o;return i;function i(f){return e.enter("definition"),a(f)}function a(f){return DW.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return o=Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return Ot(f)?Qu(e,c)(f):c(f)}function c(f){return PW(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function h(f){return e.attempt(dIe,d,d)(f)}function d(f){return lt(f)?yt(e,p,"whitespace")(f):p(f)}function p(f){return f===null||$e(f)?(e.exit("definition"),r.parser.defined.push(o),t(f)):n(f)}}function mIe(e,t,n){return r;function r(s){return Ot(s)?Qu(e,o)(s):n(s)}function o(s){return OW(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return lt(s)?yt(e,a,"whitespace")(s):a(s)}function a(s){return s===null||$e(s)?t(s):n(s)}}const pIe={name:"hardBreakEscape",tokenize:fIe};function fIe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return $e(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const gIe={name:"headingAtx",resolve:yIe,tokenize:bIe};function yIe(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},qr(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]]
vendor: 17,122 bytes, line 8303
8303)),e}function bIe(e,t,n){let r=0;return o;function o(h){return e.enter("atxHeading"),i(h)}function i(h){return e.enter("atxHeadingSequence"),a(h)}function a(h){return h===35&&r++<6?(e.consume(h),a):h===null||Ot(h)?(e.exit("atxHeadingSequence"),s(h)):n(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||$e(h)?(e.exit("atxHeading"),t(h)):lt(h)?yt(e,s,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),s(h))}function c(h){return h===null||h===35||Ot(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),c)}}const wIe=["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"],ZC=["pre","script","style","textarea"],vIe={concrete:!0,name:"htmlFlow",resolveTo:_Ie,tokenize:SIe},kIe={partial:!0,tokenize:IIe},xIe={partial:!0,tokenize:TIe};function _Ie(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function SIe(e,t,n){const r=this;let o,i,a,s,l;return c;function c(A){return h(A)}function h(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),p):A===47?(e.consume(A),i=!0,y):A===63?(e.consume(A),o=3,r.interrupt?t:_):gr(A)?(e.consume(A),a=String.fromCharCode(A),w):n(A)}function p(A){return A===45?(e.consume(A),o=2,f):A===91?(e.consume(A),o=5,s=0,b):gr(A)?(e.consume(A),o=4,r.interrupt?t:_):n(A)}function f(A){return A===45?(e.consume(A),r.interrupt?t:_):n(A)}function b(A){const K="CDATA[";return A===K.charCodeAt(s++)?(e.consume(A),s===K.length?r.interrupt?t:z:b):n(A)}function y(A){return gr(A)?(e.consume(A),a=String.fromCharCode(A),w):n(A)}function w(A){if(A===null||A===47||A===62||Ot(A)){const K=A===47,Q=a.toLowerCase();return!K&&!i&&ZC.includes(Q)?(o=1,r.interrupt?t(A):z(A)):wIe.includes(a.toLowerCase())?(o=6,K?(e.consume(A),k):r.interrupt?t(A):z(A)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):i?x(A):S(A))}return A===45||Qn(A)?(e.consume(A),a+=String.fromCharCode(A),w):n(A)}function k(A){return A===62?(e.consume(A),r.interrupt?t:z):n(A)}function x(A){return lt(A)?(e.consume(A),x):D(A)}function S(A){return A===47?(e.consume(A),D):A===58||A===95||gr(A)?(e.consume(A),I):lt(A)?(e.consume(A),S):D(A)}function I(A){return A===45||A===46||A===58||A===95||Qn(A)?(e.consume(A),I):E(A)}function E(A){return A===61?(e.consume(A),C):lt(A)?(e.consume(A),E):S(A)}function C(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),l=A,$):lt(A)?(e.consume(A),C):T(A)}function $(A){return A===l?(e.consume(A),l=null,P):A===null||$e(A)?n(A):(e.consume(A),$)}function T(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||Ot(A)?E(A):(e.consume(A),T)}function P(A){return A===47||A===62||lt(A)?S(A):n(A)}function D(A){return A===62?(e.consume(A),H):n(A)}function H(A){return A===null||$e(A)?z(A):lt(A)?(e.consume(A),H):n(A)}function z(A){return A===45&&o===2?(e.consume(A),G):A===60&&o===1?(e.consume(A),Y):A===62&&o===4?(e.consume(A),ne):A===63&&o===3?(e.consume(A),_):A===93&&o===5?(e.consume(A),W):$e(A)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(kIe,U,V)(A)):A===null||$e(A)?(e.exit("htmlFlowData"),V(A)):(e.consume(A),z)}function V(A){return e.check(xIe,J,U)(A)}function J(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),F}function F(A){return A===null||$e(A)?V(A):(e.enter("htmlFlowData"),z(A))}function G(A){return A===45?(e.consume(A),_):z(A)}function Y(A){return A===47?(e.consume(A),a="",le):z(A)}function le(A){if(A===62){const K=a.toLowerCase();return ZC.includes(K)?(e.consume(A),ne):z(A)}return gr(A)&&a.length<8?(e.consume(A),a+=String.fromCharCode(A),le):z(A)}function W(A){return A===93?(e.consume(A),_):z(A)}function _(A){return A===62?(e.consume(A),ne):A===45&&o===2?(e.consume(A),_):z(A)}function ne(A){return A===null||$e(A)?(e.exit("htmlFlowData"),U(A)):(e.consume(A),ne)}function U(A){return e.exit("htmlFlow"),t(A)}}function TIe(e,t,n){const r=this;return o;function o(a){return $e(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):n(a)}function i(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function IIe(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Wh,t,n)}}const EIe={name:"htmlText",tokenize:AIe};function AIe(e,t,n){const r=this;let o,i,a;return s;function s(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),c):_===47?(e.consume(_),E):_===63?(e.consume(_),S):gr(_)?(e.consume(_),T):n(_)}function c(_){return _===45?(e.consume(_),h):_===91?(e.consume(_),i=0,b):gr(_)?(e.consume(_),x):n(_)}function h(_){return _===45?(e.consume(_),f):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),p):$e(_)?(a=d,Y(_)):(e.consume(_),d)}function p(_){return _===45?(e.consume(_),f):d(_)}function f(_){return _===62?G(_):_===45?p(_):d(_)}function b(_){const ne="CDATA[";return _===ne.charCodeAt(i++)?(e.consume(_),i===ne.length?y:b):n(_)}function y(_){return _===null?n(_):_===93?(e.consume(_),w):$e(_)?(a=y,Y(_)):(e.consume(_),y)}function w(_){return _===93?(e.consume(_),k):y(_)}function k(_){return _===62?G(_):_===93?(e.consume(_),k):y(_)}function x(_){return _===null||_===62?G(_):$e(_)?(a=x,Y(_)):(e.consume(_),x)}function S(_){return _===null?n(_):_===63?(e.consume(_),I):$e(_)?(a=S,Y(_)):(e.consume(_),S)}function I(_){return _===62?G(_):S(_)}function E(_){return gr(_)?(e.consume(_),C):n(_)}function C(_){return _===45||Qn(_)?(e.consume(_),C):$(_)}function $(_){return $e(_)?(a=$,Y(_)):lt(_)?(e.consume(_),$):G(_)}function T(_){return _===45||Qn(_)?(e.consume(_),T):_===47||_===62||Ot(_)?P(_):n(_)}function P(_){return _===47?(e.consume(_),G):_===58||_===95||gr(_)?(e.consume(_),D):$e(_)?(a=P,Y(_)):lt(_)?(e.consume(_),P):G(_)}function D(_){return _===45||_===46||_===58||_===95||Qn(_)?(e.consume(_),D):H(_)}function H(_){return _===61?(e.consume(_),z):$e(_)?(a=H,Y(_)):lt(_)?(e.consume(_),H):P(_)}function z(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,V):$e(_)?(a=z,Y(_)):lt(_)?(e.consume(_),z):(e.consume(_),J)}function V(_){return _===o?(e.consume(_),o=void 0,F):_===null?n(_):$e(_)?(a=V,Y(_)):(e.consume(_),V)}function J(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Ot(_)?P(_):(e.consume(_),J)}function F(_){return _===47||_===62||Ot(_)?P(_):n(_)}function G(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function Y(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),le}function le(_){return lt(_)?yt(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):W(_)}function W(_){return e.enter("htmlTextData"),a(_)}}const ET={name:"labelEnd",resolveAll:DIe,resolveTo:OIe,tokenize:RIe},CIe={tokenize:MIe},NIe={tokenize:jIe},PIe={tokenize:$Ie};function DIe(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&qr(e,0,e.length,n),e}function OIe(e,t){let n=e.length,r=0,o,i,a,s;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(a=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[a][1].end}},h={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=ao(s,e.slice(i+1,i+r+3)),s=ao(s,[["enter",h,t]]),s=ao(s,Ny(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),s=ao(s,[["exit",h,t],e[a-2],e[a-1],["exit",c,t]]),s=ao(s,e.slice(a+1)),s=ao(s,[["exit",l,t]]),qr(e,i,e.length,s),e}function RIe(e,t,n){const r=this;let o=r.events.length,i,a;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return s;function s(p){return i?i._inactive?d(p):(a=r.parser.defined.includes(Wo(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(CIe,h,a?h:d)(p):p===91?e.attempt(NIe,h,a?c:d)(p):a?h(p):d(p)}function c(p){return e.attempt(PIe,h,d)(p)}function h(p){return t(p)}function d(p){return i._balanced=!0,n(p)}}function MIe(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),o}function o(d){return Ot(d)?Qu(e,i)(d):i(d)}function i(d){return d===41?h(d):PW(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Ot(d)?Qu(e,l)(d):h(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?OW(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function c(d){return Ot(d)?Qu(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function jIe(e,t,n){const r=this;return o;function o(s){return DW.call(r,e,i,a,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function $Ie(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const LIe={name:"labelStartImage",resolveAll:ET.resolveAll,tokenize:zIe};function zIe(e,t,n){const r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const UIe={name:"labelStartLink",resolveAll:ET.resolveAll,tokenize:FIe};function FIe(e,t,n){const r=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),i}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const ww={name:"lineEnding",tokenize:WIe};function WIe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),yt(e,t,"linePrefix")}}const ip={name:"thematicBreak",tokenize:BIe};function BIe(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),a(c)}function a(c){return o=c,s(c)}function s(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||$e(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),lt(c)?yt(e,s,"whitespace")(c):s(c))}}const kr={continuation:{tokenize:KIe},exit:YIe,name:"list",tokenize:VIe},HIe={partial:!0,tokenize:ZIe},qIe={partial:!0,tokenize:GIe};function VIe(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return s;function s(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ik(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(ip,n,c)(f):c(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Ik(f)&&++a<10?(e.consume(f),l):(!r.interrupt||a<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Wh,r.interrupt?n:h,e.attempt(HIe,p,d))}function h(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function d(f){return lt(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function KIe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wh,o,i);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,yt(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!lt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qIe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,yt(e,e.attempt(kr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function GIe(e,t,n){const r=this;return yt(e,o,"listItemIndent",r.containerState.size+1);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(i):n(i)}}function YIe(e){e.exit(this.containerState.type)}function ZIe(e,t,n){const r=this;return yt(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const a=r.events[r.events.length-1];return!lt(i)&&a&&a[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const JC={name:"setextUnderline",resolveTo:JIe,tokenize:QIe};function JIe(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function QIe(e,t,n){const r=this;let o;return i;function i(c){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),o=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===o?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),lt(c)?yt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||$e(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const XIe={tokenize:eEe};function eEe(e){const t=this,n=e.attempt(Wh,r,e.attempt(this.parser.constructs.flowInitial,o,yt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(iIe,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tEe={resolveAll:MW()},nEe=RW("string"),rEe=RW("text");function RW(e){return{resolveAll:MW(e==="text"?oEe:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,a,s);return a;function a(h){return c(h)?i(h):s(h)}function s(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return c(h)?(n.exit("data"),i(h)):(n.consume(h),l)}function c(h){if(h===null)return!0;const d=o[h];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function MW(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function oEe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,a=-1,s=0,l;for(;i--;){const c=o[i];if(typeof c=="string"){for(a=c.length;
vendor: 5,613 bytes, lines 8303-8305
8303c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?a:r.start._bufferIndex+a,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const iEe={42:kr,43:kr,45:kr,48:kr,49:kr,50:kr,51:kr,52:kr,53:kr,54:kr,55:kr,56:kr,57:kr,62:EW},aEe={91:uIe},sEe={[-2]:bw,[-1]:bw,32:bw},lEe={35:gIe,42:ip,45:[JC,ip],60:vIe,61:JC,95:ip,96:YC,126:YC},cEe={38:CW,92:AW},uEe={[-5]:ww,[-4]:ww,[-3]:ww,33:LIe,38:CW,42:Ek,60:[U1e,EIe],91:UIe,92:[pIe,AW],93:ET,95:Ek,96:X1e},dEe={null:[Ek,tEe]},hEe={null:[42,95]},mEe={null:[]},pEe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hEe,contentInitial:aEe,disable:mEe,document:iEe,flow:lEe,flowInitial:sEe,insideSpan:dEe,string:cEe,text:uEe},Symbol.toStringTag,{value:"Module"}));function fEe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:$(E),check:$(C),consume:x,enter:S,exit:I,interrupt:$(C,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let h=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(H){return a=ao(a,H),w(),a[a.length-1]!==null?[]:(T(t,0),c.events=Ny(i,c.events,c),c.events)}function p(H,z){return yEe(f(H),z)}function f(H){return gEe(a,H)}function b(){const{_bufferIndex:H,_index:z,line:V,column:J,offset:F}=r;return{_bufferIndex:H,_index:z,line:V,column:J,offset:F}}function y(H){o[H.line]=H.column,D()}function w(){let H;for(;r._index<a.length;){const z=a[r._index];if(typeof z=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<z.length;)k(z.charCodeAt(r._bufferIndex));else k(z)}}function k(H){h=h(H)}function x(H){$e(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,D()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=H}function S(H,z){const V=z||{};return V.type=H,V.start=b(),c.events.push(["enter",V,c]),s.push(V),V}function I(H){const z=s.pop();return z.end=b(),c.events.push(["exit",z,c]),z}function E(H,z){T(H,z.from)}function C(H,z){z.restore()}function $(H,z){return V;function V(J,F,G){let Y,le,W,_;return Array.isArray(J)?U(J):"tokenize"in J?U([J]):ne(J);function ne(oe){return ee;function ee(ye){const ve=ye!==null&&oe[ye],ce=ye!==null&&oe.null,Oe=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return U(Oe)(ye)}}function U(oe){return Y=oe,le=0,oe.length===0?G:A(oe[le])}function A(oe){return ee;function ee(ye){return _=P(),W=oe,oe.partial||(c.currentConstruct=oe),oe.name&&c.parser.constructs.disable.null.includes(oe.name)?Q():oe.tokenize.call(z?Object.assign(Object.create(c),z):c,l,K,Q)(ye)}}function K(oe){return H(W,_),F}function Q(oe){return _.restore(),++le<Y.length?A(Y[le]):G}}}function T(H,z){H.resolveAll&&!i.includes(H)&&i.push(H),H.resolve&&qr(c.events,z,c.events.length-z,H.resolve(c.events.slice(z),c)),H.resolveTo&&(c.events=H.resolveTo(c.events,c))}function P(){const H=b(),z=c.previous,V=c.currentConstruct,J=c.events.length,F=Array.from(s);return{from:J,restore:G};function G(){r=H,c.previous=z,c.currentConstruct=V,c.events.length=J,s=F,D()}}function D(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function gEe(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}function yEe(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
8304`;break}case-3:{a=`\r
8305`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(i)}o=i===-2,r.push(a)}return r.join("")}function bEe(e){const r={constructs:TW([pEe,...(e||{}).extensions||[]]),content:o(O1e),defined:[],document:o(M1e),flow:o(XIe),lazy:{},string:o(nEe),text:o(rEe)};return r;function o(i){return a;function a(s){return fEe(r,i,s)}}}function wEe(e){for(;!NW(e););return e}const QC=/[\0\t\n\r]/g;function vEe(){let e=1,t="",n=!0,r;return o;function o(i,a,s){const l=[];let c,h,d,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(a||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(QC.lastIndex=d,c=QC.exec(i),p=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(p),!c){t=i.slice(d);break}if(f===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(i.slice(d,p)),e+=p-d),f){case 0:{l.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,l.push(-2);e++<h;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const kEe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xEe(e){return e.replace(kEe,_Ee)}function _Ee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return IW(n.slice(i?2:1),i?16:10)}return IT(n)||e}const jW={}.hasOwnProperty;function SEe(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),TEe(n)(wEe(bEe(n).document().write(vEe()(e,t,!0))
vendor: 10,269 bytes, line 8305
8305))}function TEe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ht),autolinkProtocol:P,autolinkEmail:P,atxHeading:i(_t),blockQuote:i(ce),characterEscape:P,characterReference:P,codeFenced:i(Oe),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Oe,a),codeText:i(Ue,a),codeTextData:P,data:P,codeFlowValue:P,definition:i(Ne),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(ke),hardBreakEscape:i(De),hardBreakTrailing:i(De),htmlFlow:i(We,a),htmlFlowData:P,htmlText:i(We,a),htmlTextData:P,image:i(ft),label:a,link:i(ht),listItem:i(Zr),listItemValue:p,listOrdered:i(Io,d),listUnordered:i(Io),paragraph:i(Nn),reference:A,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(_t),strong:i(Jr),thematicBreak:i(ol)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:ve,autolinkProtocol:ye,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:oe,characterReference:ee,codeFenced:l(w),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:b,codeFlowValue:D,codeIndented:l(k),codeText:l(F),codeTextData:D,data:D,definition:l(),definitionDestinationString:I,definitionLabelString:x,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(z),hardBreakTrailing:l(z),htmlFlow:l(V),htmlFlowData:D,htmlText:l(J),htmlTextData:D,image:l(Y),label:W,labelText:le,lineEnding:H,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:K,resourceDestinationString:_,resourceTitleString:ne,resource:U,setextHeading:l(T),setextHeadingLineSequence:$,setextHeadingText:C,strong:l(),thematicBreak:l()}};$W(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Z){let fe={type:"root",children:[]};const Me={stack:[fe],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:h,data:n},Ye=[];let ot=-1;for(;++ot<Z.length;)if(Z[ot][1].type==="listOrdered"||Z[ot][1].type==="listUnordered")if(Z[ot][0]==="enter")Ye.push(ot);else{const vn=Ye.pop();ot=o(Z,vn,ot)}for(ot=-1;++ot<Z.length;){const vn=t[Z[ot][0]];jW.call(vn,Z[ot][1].type)&&vn[Z[ot][1].type].call(Object.assign({sliceSerialize:Z[ot][2].sliceSerialize},Me),Z[ot][1])}if(Me.tokenStack.length>0){const vn=Me.tokenStack[Me.tokenStack.length-1];(vn[1]||XC).call(Me,void 0,vn[0])}for(fe.position={start:ca(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:ca(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},ot=-1;++ot<t.transforms.length;)fe=t.transforms[ot](fe)||fe;return fe}function o(Z,fe,Me){let Ye=fe-1,ot=-1,vn=!1,Pn,Dn,Qr,Pr;for(;++Ye<=Me;){const kn=Z[Ye];switch(kn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kn[0]==="enter"?ot++:ot--,Pr=void 0;break}case"lineEndingBlank":{kn[0]==="enter"&&(Pn&&!Pr&&!ot&&!Qr&&(Qr=Ye),Pr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pr=void 0}if(!ot&&kn[0]==="enter"&&kn[1].type==="listItemPrefix"||ot===-1&&kn[0]==="exit"&&(kn[1].type==="listUnordered"||kn[1].type==="listOrdered")){if(Pn){let Eo=Ye;for(Dn=void 0;Eo--;){const qn=Z[Eo];if(qn[1].type==="lineEnding"||qn[1].type==="lineEndingBlank"){if(qn[0]==="exit")continue;Dn&&(Z[Dn][1].type="lineEndingBlank",vn=!0),qn[1].type="lineEnding",Dn=Eo}else if(!(qn[1].type==="linePrefix"||qn[1].type==="blockQuotePrefix"||qn[1].type==="blockQuotePrefixWhitespace"||qn[1].type==="blockQuoteMarker"||qn[1].type==="listItemIndent"))break}Qr&&(!Dn||Qr<Dn)&&(Pn._spread=!0),Pn.end=Object.assign({},Dn?Z[Dn][1].start:kn[1].end),Z.splice(Dn||Ye,0,["exit",Pn,kn[2]]),Ye++,Me++}if(kn[1].type==="listItemPrefix"){const Eo={type:"listItem",_spread:!1,start:Object.assign({},kn[1].start),end:void 0};Pn=Eo,Z.splice(Ye,0,["enter",Eo,kn[2]]),Ye++,Me++,Qr=void 0,Pr=!0}}}return Z[fe][1]._spread=vn,Me}function i(Z,fe){return Me;function Me(Ye){s.call(this,Z(Ye),Ye),fe&&fe.call(this,Ye)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(Z,fe,Me){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([fe,Me||void 0]),Z.position={start:ca(fe.start),end:void 0}}function l(Z){return fe;function fe(Me){Z&&Z.call(this,Me),c.call(this,Me)}}function c(Z,fe){const Me=this.stack.pop(),Ye=this.tokenStack.pop();if(Ye)Ye[0].type!==Z.type&&(fe?fe.call(this,Z,Ye[0]):(Ye[1]||XC).call(this,Z,Ye[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Ju({start:Z.start,end:Z.end})+"): it’s not open");Me.position.end=ca(Z.end)}function h(){return TT(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(Z){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function f(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=Z}function b(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=Z}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Z.replace(/(\r?\n|\r)$/g,"")}function x(Z){const fe=this.resume(),Me=this.stack[this.stack.length-1];Me.label=fe,Me.identifier=Wo(this.sliceSerialize(Z)).toLowerCase()}function S(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Z}function I(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Z}function E(Z){const fe=this.stack[this.stack.length-1];if(!fe.depth){const Me=this.sliceSerialize(Z).length;fe.depth=Me}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function $(Z){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function P(Z){const Me=this.stack[this.stack.length-1].children;let Ye=Me[Me.length-1];(!Ye||Ye.type!=="text")&&(Ye=rl(),Ye.position={start:ca(Z.start),end:void 0},Me.push(Ye)),this.stack.push(Ye)}function D(Z){const fe=this.stack.pop();fe.value+=this.sliceSerialize(Z),fe.position.end=ca(Z.end)}function H(Z){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Me=fe.children[fe.children.length-1];Me.position.end=ca(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(fe.type)&&(P.call(this,Z),D.call(this,Z))}function z(){this.data.atHardBreak=!0}function V(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Z}function J(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Z}function F(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Z}function G(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=fe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Y(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=fe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function le(Z){const fe=this.sliceSerialize(Z),Me=this.stack[this.stack.length-2];Me.label=xEe(fe),Me.identifier=Wo(fe).toLowerCase()}function W(){const Z=this.stack[this.stack.length-1],fe=this.resume(),Me=this.stack[this.stack.length-1];if(this.data.inReference=!0,Me.type==="link"){const Ye=Z.children;Me.children=Ye}else Me.alt=fe}function _(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Z}function ne(){const Z=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Z}function U(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function K(Z){const fe=this.resume(),Me=this.stack[this.stack.length-1];Me.label=fe,Me.identifier=Wo(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function Q(Z){this.data.characterReferenceType=Z.type}function oe(Z){const fe=this.sliceSerialize(Z),Me=this.data.characterReferenceType;let Ye;Me?(Ye=IW(fe,Me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ye=IT(fe);const ot=this.stack[this.stack.length-1];ot.value+=Ye}function ee(Z){const fe=this.stack.pop();fe.position.end=ca(Z.end)}function ye(Z){D.call(this,Z);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(Z)}function ve(Z){D.call(this,Z);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(Z)}function ce(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Ue(){return{type:"inlineCode",value:""}}function Ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ke(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function De(){return{type:"break"}}function We(){return{type:"html",value:""}}function ft(){return{type:"image",title:null,url:"",alt:null}}function ht(){return{type:"link",title:null,url:"",children:[]}}function Io(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Zr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Nn(){return{type:"paragraph",children:[]}}function Jr(){return{type:"strong",children:[]}}function rl(){return{type:"text",value:""}}function ol(){return{type:"thematicBreak"}}}function ca(e){return{line:e.line,column:e.column,offset:e.offset}}function $W(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?$W(e,r):IEe(e,r)}}function IEe(e,t){let n;for(n in t)if(jW.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function XC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ju({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ju({start:t.start,end:t.end}
vendor: 4,298 bytes, lines 8305-8308
8305)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ju({start:t.start,end:t.end})+") is still open")}function EEe(e){const t=this;t.parser=n;function n(r){return SEe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function AEe(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function CEe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
8306`}]}function NEe(e,t){const n=t.value?t.value+`
8307`:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function PEe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DEe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function OEe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Yc(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function REe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MEe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function LW(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function jEe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LW(e,t);const o={src:Yc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function $Ee(e,t){const n={src:Yc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function LEe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function zEe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LW(e,t);const o={href:Yc(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function UEe(e,t){const n={href:Yc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function FEe(e,t,n){const r=e.all(t),o=n?WEe(n):zW(t),i={},a=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const h=r[s];(o||s!==0||h.type!=="element"||h.tagName!=="p")&&a.push({type:"text",value:`
8308`}
vendor: 3,502 bytes, lines 8308-8309
8308),h.type==="element"&&h.tagName==="p"&&!o?a.push(...h.children):a.push(h)}const l=r[r.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
8309`});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)}function WEe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=zW(n[r])}return t}function zW(e){const t=e.spread;return t??e.children.length>1}function BEe(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function HEe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qEe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function VEe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KEe(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=kT(t.children[1]),l=bW(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),o.push(a)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function GEe(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],p={},f=a?a[l]:void 0;f&&(p.align=f);let b={type:"element",tagName:i,properties:p,children:[]};d&&(b.children=e.all(d),e.patch(d,b),b=e.applyData(d,b)),c.push(b)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function YEe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const eN=9,tN=32;function ZEe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(nN(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(nN(t.slice(o),o>0,!1)),i.join("")}function nN(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===eN||i===tN;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===eN||i===tN;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function JEe(e,t){const n={type:"text",value:ZEe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function QEe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const XEe={blockquote:AEe,break:CEe,code:NEe,delete:PEe,emphasis:DEe,footnoteReference:OEe,heading:REe,html:MEe,imageReference:jEe,image:$Ee,inlineCode:LEe,linkReference:zEe,link:UEe,listItem:FEe,list:BEe,paragraph:HEe,root:qEe,strong:VEe,table:KEe,tableCell:YEe,tableRow:GEe,text:JEe,thematicBreak:QEe,toml:Bm,yaml:Bm,definition:Bm,footnoteDefinition:Bm};function Bm(){}const UW=-1,Py=0,Xu=1,af=2,AT=3,CT=4,NT=5,PT=6,FW=7,WW=8,eAe=typeof self=="object"?self:globalThis,rN=(e,t)=>
vendor: 4,507 bytes, line 8309
8309{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new eAe[e](t)},tAe=(e,t)=>{const n=(o,i)=>(e.set(i,o),o),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case Py:case UW:return n(a,o);case Xu:{const s=n([],o);for(const l of a)s.push(r(l));return s}case af:{const s=n({},o);for(const[l,c]of a)s[r(l)]=r(c);return s}case AT:return n(new Date(a),o);case CT:{const{source:s,flags:l}=a;return n(new RegExp(s,l),o)}case NT:{const s=n(new Map,o);for(const[l,c]of a)s.set(r(l),r(c));return s}case PT:{const s=n(new Set,o);for(const l of a)s.add(r(l));return s}case FW:{const{name:s,message:l}=a;return n(rN(s,l),o)}case WW:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(rN(i,a),o)};return r},oN=e=>tAe(new Map,e)(0),Sl="",{toString:nAe}={},{keys:rAe}=Object,_u=e=>{const t=typeof e;if(t!=="object"||!e)return[Py,t];const n=nAe.call(e).slice(8,-1);switch(n){case"Array":return[Xu,Sl];case"Object":return[af,Sl];case"Date":return[AT,Sl];case"RegExp":return[CT,Sl];case"Map":return[NT,Sl];case"Set":return[PT,Sl];case"DataView":return[Xu,n]}return n.includes("Array")?[Xu,n]:n.includes("Error")?[FW,n]:[af,n]},Hm=([e,t])=>e===Py&&(t==="function"||t==="symbol"),oAe=(e,t,n,r)=>{const o=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},i=a=>{if(n.has(a))return n.get(a);let[s,l]=_u(a);switch(s){case Py:{let h=a;switch(l){case"bigint":s=WW,h=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return o([UW],a)}return o([s,h],a)}case Xu:{if(l){let p=a;return l==="DataView"?p=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(a)),o([l,[...p]],a)}const h=[],d=o([s,h],a);for(const p of a)h.push(i(p));return d}case af:{if(l)switch(l){case"BigInt":return o([l,a.toString()],a);case"Boolean":case"Number":case"String":return o([l,a.valueOf()],a)}if(t&&"toJSON"in a)return i(a.toJSON());const h=[],d=o([s,h],a);for(const p of rAe(a))(e||!Hm(_u(a[p])))&&h.push([i(p),i(a[p])]);return d}case AT:return o([s,a.toISOString()],a);case CT:{const{source:h,flags:d}=a;return o([s,{source:h,flags:d}],a)}case NT:{const h=[],d=o([s,h],a);for(const[p,f]of a)(e||!(Hm(_u(p))||Hm(_u(f))))&&h.push([i(p),i(f)]);return d}case PT:{const h=[],d=o([s,h],a);for(const p of a)(e||!Hm(_u(p)))&&h.push(i(p));return d}}const{message:c}=a;return o([s,{name:l,message:c}],a)};return i},iN=(e,{json:t,lossy:n}={})=>{const r=[];return oAe(!(t||n),!!t,new Map,r)(e),r},sf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?oN(iN(e,t)):structuredClone(e):(e,t)=>oN(iN(e,t));function iAe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function aAe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sAe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||iAe,r=e.options.footnoteBackLabel||aAe,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const h=e.all(c),d=String(c.identifier).toUpperCase(),p=Yc(d.toLowerCase());let f=0;const b=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++f<=y;){b.length>0&&b.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,f);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=h[h.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else h.push(...b);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(h,!0)};e.patch(c,k),s.push(k)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...sf(a),id:"footnote-label"},children:[{type:"text",value:o}]}
vendor: 5,687 bytes, lines 8309-8315
8309,{type:"text",value:`
8310`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
8311`}]}}const Dy=(function(e){if(e==null)return dAe;if(typeof e=="function")return Oy(e);if(typeof e=="object")return Array.isArray(e)?lAe(e):cAe(e);if(typeof e=="string")return uAe(e);throw new Error("Expected function, string, or object as test")});function lAe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dy(e[n]);return Oy(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function cAe(e){const t=e;return Oy(n);function n(r){const o=r;let i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function uAe(e){return Oy(t);function t(n){return n&&n.type===e}}function Oy(e){return t;function t(n,r,o){return!!(hAe(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function dAe(){return!0}function hAe(e){return e!==null&&typeof e=="object"&&"type"in e}const BW=[],mAe=!0,Ak=!1,pAe="skip";function HW(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=Dy(o),a=r?-1:1;s(e,void 0,[])();function s(l,c,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=BW,b,y,w;if((!t||i(l,c,h[h.length-1]||void 0))&&(f=fAe(n(l,h)),f[0]===Ak))return f;if("children"in l&&l.children){const k=l;if(k.children&&f[0]!==pAe)for(y=(r?k.children.length:-1)+a,w=h.concat(k);y>-1&&y<k.children.length;){const x=k.children[y];if(b=s(x,y,w)(),b[0]===Ak)return b;y=typeof b[1]=="number"?b[1]:y+a}}return f}}}function fAe(e){return Array.isArray(e)?e:typeof e=="number"?[mAe,e]:e==null?BW:[e]}function DT(e,t,n,r){let o,i,a;typeof t=="function"&&typeof n!="function"?(i=void 0,a=t,o=n):(i=t,a=n,o=r),HW(e,i,s,o);function s(l,c){const h=c[c.length-1],d=h?h.children.indexOf(l):void 0;return a(l,d,h)}}const Ck={}.hasOwnProperty,gAe={};function yAe(e,t){const n=t||gAe,r=new Map,o=new Map,i=new Map,a={...XEe,...n.handlers},s={all:c,applyData:wAe,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:l,options:n,patch:bAe,wrap:kAe};return DT(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:o,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),s;function l(h,d){const p=h.type,f=s.handlers[p];if(Ck.call(s.handlers,p)&&f)return f(s,h,d);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in h){const{children:y,...w}=h,k=sf(w);return k.children=s.all(h),k}return sf(h)}return(s.options.unknownHandler||vAe)(s,h,d)}function c(h){const d=[];if("children"in h){const p=h.children;let f=-1;for(;++f<p.length;){const b=s.one(p[f],h);if(b){if(f&&p[f-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=aN(b.value)),!Array.isArray(b)&&b.type==="element")){const y=b.children[0];y&&y.type==="text"&&(y.value=aN(y.value))}Array.isArray(b)?d.push(...b):d.push(b)}}}return d}}function bAe(e,t){e.position&&(t.position=i1e(e))}function wAe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&i&&Object.assign(n.properties,sf(i)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function vAe(e,t){const n=t.data||{},r="value"in t&&!(Ck.call(n,"hProperties")||Ck.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kAe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
8312`});++r<e.length;)r&&n.push({type:"text",value:`
8313`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
8314`}),n}function aN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function sN(e,t){const n=yAe(e,t),r=n.one(e,void 0),o=sAe(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
8315`},o),i}function xAe(e,t){return e&&"run"in e?async function(n,r){const o=sN(n,{file:r,...t});await e.run(o,r)}:function(n,r){return sN(n,{file:r,...e||t})}}function lN(e){if(e)throw e}var vw,cN;function _Ae(){if(cN)return vw;cN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var h=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!d)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},a=function(c,h){n&&h.name==="__proto__"?n(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},s=function(c,h){if(h==="__proto__")if(e.call(c,h)){if(r)return r(c,h).value}else return;return c[h]};return vw=function l(){var c,h,d,p,f,b,y=arguments[0],w=1,k=arguments.length,x=!1;for(typeof y=="boolean"&&(x=y,y=arguments[1]||{},w=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});w<k;++w)if(c=arguments[w],c!=null)for(h in c)d=s(y,h),p=s(c,h),y!==p&&(x&&p&&(i(p)||(f=o(p)))?(f?(f=!1,b=d&&o(d)?d:[]):b=d&&i(d)?d:{},a(y,{name:h,newValue:l(x,b,p)})):typeof p<"u"&&a(y,{name:h,newValue:p}));return y},vw}var SAe=_Ae();const kw=LN(SAe);function Nk(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
vendor: 4,474 bytes, line 8315
8315return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TAe(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...o);function s(l,...c){const h=e[++i];let d=-1;if(l){a(l);return}for(;++d<o.length;)(c[d]===null||c[d]===void 0)&&(c[d]=o[d]);o=c,h?IAe(h,s)(...c):a(null,...c)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function IAe(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(o);try{l=e.apply(this,a)}catch(c){const h=c;if(s&&n)throw h;return o(h)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(a,...s){n||(n=!0,t(a,...s))}function i(a){o(null,a)}}const ai={basename:EAe,dirname:AAe,extname:CAe,join:NAe,sep:"/"};function EAe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bh(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else a<0&&(i=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(r=o):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function AAe(e){if(Bh(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function CAe(e){Bh(e);let t=e.length,n=-1,r=0,o=-1,i=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function NAe(...e){let t=-1,n;for(;++t<e.length;)Bh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":PAe(n)}function PAe(e){Bh(e);const t=e.codePointAt(0)===47;let n=DAe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function DAe(e,t){let n="",r=0,o=-1,i=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(o===a-1||i===1))if(o!==a-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}}else if(n.length>0){n="",r=0,o=a,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),r=a-o-1;o=a,i=0}else s===46&&i>-1?i++:i=-1}return n}function Bh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const OAe={cwd:RAe};function RAe(){return"/"}function Pk(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function MAe(e){if(typeof e=="string")e=new URL(e);else if(!Pk(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return jAe(e)}function jAe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const xw=["history","path","basename","stem","extname","dirname"];class qW{constructor(t){let n;t?Pk(t)?n={path:t}:typeof t=="string"||$Ae(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":OAe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<xw.length;){const i=xw[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)xw.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ai.basename(this.path):void 0}
vendor: 31,825 bytes, lines 8315-8330
8315set basename(t){Sw(t,"basename"),_w(t,"basename"),this.path=ai.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ai.dirname(this.path):void 0}set dirname(t){uN(this.basename,"dirname"),this.path=ai.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ai.extname(this.path):void 0}set extname(t){if(_w(t,"extname"),uN(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ai.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Pk(t)&&(t=MAe(t)),Sw(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ai.basename(this.path,this.extname):void 0}set stem(t){Sw(t,"stem"),_w(t,"stem"),this.path=ai.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new ar(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _w(e,t){if(e&&e.includes(ai.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ai.sep+"`")}function Sw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function uN(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $Ae(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const LAe=(function(e){const r=this.constructor.prototype,o=r[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),zAe={}.hasOwnProperty;class OT extends LAe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=TAe()}copy(){const t=new OT;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(kw(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ew("data",this.frozen),this.namespace[t]=n,this):zAe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ew("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=qm(t),r=this.parser||this.Parser;return Tw("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Tw("process",this.parser||this.Parser),Iw("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,a){const s=qm(t),l=r.parse(s);r.run(l,s,function(h,d,p){if(h||!d||!p)return c(h);const f=d,b=r.stringify(f,p);WAe(b)?p.value=b:p.result=b,c(h,p)});function c(h,d){h||!d?a(h):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Tw("processSync",this.parser||this.Parser),Iw("processSync",this.compiler||this.Compiler),this.process(t,o),hN("processSync","process",n),r;function o(i,a){n=!0,lN(i),r=a}}run(t,n,r){dN(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(a,s){const l=qm(n);o.run(t,l,c);function c(h,d,p){const f=d||t;h?s(h):a?a(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,o;return this.run(t,n,i),hN("runSync","run",r),o;function i(a,s){lN(a),o=s,r=!0}}stringify(t,n){this.freeze();const r=qm(n),o=this.compiler||this.Compiler;return Iw("stringify",o),dN(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Ew("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;l(h,d)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(o.settings=kw(!0,o.settings,c.settings))}function s(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,h){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===c){p=d;break}if(p===-1)r.push([c,...h]);else if(h.length>0){let[f,...b]=h;const y=r[p][1];Nk(y)&&Nk(f)&&(f=kw(!0,y,f)),r[p]=[c,f,...b]}}}}const UAe=new OT().freeze();function Tw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Iw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ew(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dN(e){if(!Nk(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qm(e){return FAe(e)?e:new qW(e)}function FAe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function WAe(e){return typeof e=="string"||BAe(e)}function BAe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HAe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mN=[],pN={allowDangerousHtml:!0},qAe=/^(https?|ircs?|mailto|xmpp)$/i,VAe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Dk(e){const t=KAe(e),n=GAe(e);return YAe(t.runSync(t.parse(n),n),e)}function KAe(e){const t=e.rehypePlugins||mN,n=e.remarkPlugins||mN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...pN}:pN;return UAe().use(EEe).use(n).use(xAe,r).use(t)}function GAe(e){const t=e.children||"",n=new qW;return typeof t=="string"&&(n.value=t),n}function YAe(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||VW;for(const h of VAe)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+HAe+h.id,void 0);return DT(e,c),u1e(e,{Fragment:u.Fragment,components:o,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function c(h,d,p){if(h.type==="raw"&&p&&typeof d=="number")return a?p.children.splice(d,1):p.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let f;for(f in yw)if(Object.hasOwn(yw,f)&&Object.hasOwn(h.properties,f)){const b=h.properties[f],y=yw[f];(y===null||y.includes(h.tagName))&&(h.properties[f]=l(String(b||""),f,h))}}if(h.type==="element"){let f=n?!n.includes(h.tagName):i?i.includes(h.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(h,d,p)),f&&p&&typeof d=="number")return s&&h.children?p.children.splice(d,1,...h.children):p.children.splice(d,1),d}}}function VW(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||qAe.test(e.slice(0,t))?e:""}function ZAe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function KW(e,t,n){const o=Dy((n||{}).ignore||[]),i=JAe(t);let a=-1;for(;++a<i.length;)HW(e,"text",s);function s(c,h){let d=-1,p;for(;++d<h.length;){const f=h[d],b=p?p.children:void 0;if(o(f,b?b.indexOf(f):void 0,p))return;p=f}if(p)return l(c,h)}function l(c,h){const d=h[h.length-1],p=i[a][0],f=i[a][1];let b=0;const w=d.children.indexOf(c);let k=!1,x=[];p.lastIndex=0;let S=p.exec(c.value);for(;S;){const I=S.index,E={index:S.index,input:S.input,stack:[...h,c]};let C=f(...S,E);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=I+1:(b!==I&&x.push({type:"text",value:c.value.slice(b,I)}),Array.isArray(C)?x.push(...C):C&&x.push(C),b=I+S[0].length,k=!0),!p.global)break;S=p.exec(c.value)}return k?(b<c.value.length&&x.push({type:"text",value:c.value.slice(b)}),d.children.splice(w,1,...x)):x=[c],w+x.length}}function JAe(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([QAe(o[0]),XAe(o[1])])}return t}function QAe(e){return typeof e=="string"?new RegExp(ZAe(e),"g"):e}function XAe(e){return typeof e=="function"?e:function(){return e}}function eCe(e){KW(e,[/\r?\n|\r/g,tCe])}function tCe(){return{type:"break"}}function nCe(){return function(e){eCe(e)}}function fN(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}const Aw="phrasing",Cw=["autolink","link","image","label"];function rCe(){return{transforms:[uCe],enter:{literalAutolink:iCe,literalAutolinkEmail:Nw,literalAutolinkHttp:Nw,literalAutolinkWww:Nw},exit:{literalAutolink:cCe,literalAutolinkEmail:lCe,literalAutolinkHttp:aCe,literalAutolinkWww:sCe}}}function oCe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Aw,notInConstruct:Cw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Aw,notInConstruct:Cw},{character:":",before:"[ps]",after:"\\/",inConstruct:Aw,notInConstruct:Cw}]}}function iCe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Nw(e){this.config.enter.autolinkProtocol.call(this,e)}function aCe(e){this.config.exit.autolinkProtocol.call(this,e)}function sCe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lCe(e){this.config.exit.autolinkEmail.call(this,e)}function cCe(e){this.exit(e)}function uCe(e){KW(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dCe],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hCe]],{ignore:["link","linkReference"]})}function dCe(e,t,n,r,o){let i="";if(!GW(o)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!mCe(n)))return!1;const a=pCe(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function hCe(e,t,n,r){return!GW(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function mCe(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function pCe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=fN(e,"(");let i=fN(e,")");for(;r!==-1&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function GW(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ms(n)||Cy(n))&&(!t||n!==47)}YW.peek=_Ce;function fCe(){this.buffer()}function gCe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yCe(){this.buffer()}function bCe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function wCe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vCe(e){this.exit(e)}function kCe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xCe(e){this.exit(e)}function _Ce(){return"["}function YW(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function SCe(){return{enter:{gfmFootnoteCallString:fCe,gfmFootnoteCall:gCe,gfmFootnoteDefinitionLabelString:yCe,gfmFootnoteDefinition:bCe},exit:{gfmFootnoteCallString:wCe,gfmFootnoteCall:vCe,gfmFootnoteDefinitionLabelString:kCe,gfmFootnoteDefinition:xCe}}}function TCe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:YW},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,i,a){const s=i.createTracker(a);let l=s.move("[^");const c=i.enter("footnoteDefinition"),h=i.enter("label");return l+=s.move(i.safe(i.associationId(r),{before:l,after:"]"})),h(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
8316`:" ")+i.indentLines(i.containerFlow(r,s.current()),t?ZW:ICe))),c(),l}}function ICe(e,t,n){return t===0?e:ZW(e,t,n)}function ZW(e,t,n){return(n?"":"    ")+e}const ECe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];JW.peek=DCe;function ACe(){return{canContainEols:["delete"],enter:{strikethrough:NCe},exit:{strikethrough:PCe}}}function CCe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ECe}],handlers:{delete:JW}}}function NCe(e){this.enter({type:"delete",children:[]},e)}function PCe(e){this.exit(e)}function JW(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function DCe(){return"~"}function OCe(e){return e.length}function RCe(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||OCe,i=[],a=[],s=[],l=[];let c=0,h=-1;for(;++h<e.length;){const y=[],w=[];let k=-1;for(e[h].length>c&&(c=e[h].length);++k<e[h].length;){const x=MCe(e[h][k]);if(n.alignDelimiters!==!1){const S=o(x);w[k]=S,(l[k]===void 0||S>l[k])&&(l[k]=S)}y.push(x)}a[h]=y,s[h]=w}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)i[d]=gN(r[d]);else{const y=gN(r);for(;++d<c;)i[d]=y}d=-1;const p=[],f=[];for(;++d<c;){const y=i[d];let w="",k="";y===99?(w=":",k=":"):y===108?w=":":y===114&&(k=":");let x=n.alignDelimiters===!1?1:Math.max(1,l[d]-w.length-k.length);const S=w+"-".repeat(x)+k;n.alignDelimiters!==!1&&(x=w.length+x+k.length,x>l[d]&&(l[d]=x),f[d]=x),p[d]=S}a.splice(1,0,p),s.splice(1,0,f),h=-1;const b=[];for(;++h<a.length;){const y=a[h],w=s[h];d=-1;const k=[];for(;++d<c;){const x=y[d]||"";let S="",I="";if(n.alignDelimiters!==!1){const E=l[d]-(w[d]||0),C=i[d];C===114?S=" ".repeat(E):C===99?E%2?(S=" ".repeat(E/2+.5),I=" ".repeat(E/2-.5)):(S=" ".repeat(E/2),I=S):I=" ".repeat(E)}n.delimiterStart!==!1&&!d&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||d)&&k.push(" "),n.alignDelimiters!==!1&&k.push(S),k.push(x),n.alignDelimiters!==!1&&k.push(I),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&k.push("|")}b.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return b.join(`
8317`)}function MCe(e){return e==null?"":String(e)}function gN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function jCe(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),$Ce);return o(),a}function $Ce(e,t,n){return">"+(n?"":" ")+e}function LCe(e,t){return yN(e,t.inConstruct,!0)&&!yN(e,t.notInConstruct,!1)}function yN(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function bN(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
8318`&&LCe(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
8319`}function zCe(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}function UCe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function FCe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function WCe(e,t,n,r){const o=FCe(n),i=e.value||"",a=o==="`"?"GraveAccent":"Tilde";if(UCe(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(i,BCe);return d(),p}const s=n.createTracker(r),l=o.repeat(Math.max(zCe(i,o)+1,3)),c=n.enter("codeFenced");let h=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);h+=s.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);h+=s.move(" "),h+=s.move(n.safe(e.meta,{before:h,after:`
8320`,encode:["`"],...s.current()})),d()}return h+=s.move(`
8321`),i&&(h+=s.move(i+`
8322`)),h+=s.move(l),c(),h}function BCe(e,t,n){return(n?"":"    ")+e}function RT(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function HCe(e,t,n,r){const o=RT(n),i=o==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
8323`,...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c}function qCe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Id(e){return"&#x"+e.toString(16).toUpperCase()+";"}function lf(e,t,n){const r=xc(e),o=xc(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}QW.peek=VCe;function QW(e,t,n,r){const o=qCe(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),h=lf(r.before.charCodeAt(r.before.length-1),c,o);h.inside&&(l=Id(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=lf(r.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+Id(d));const f=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},s+l+f}function VCe(e,t,n){return n.options.emphasis||"*"}function KCe(e,t){let n=!1;return DT(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ak}),!!((!e.depth||e.depth<3)&&TT(e)&&(t.options.setext||n))}function GCe(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(KCe(e,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...i.current(),before:`
8324`,after:`
8325`});return d(),h(),p+`
8326`+(o===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
8327`))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
8328`,...i.current()});return/^[\t ]/.test(c)&&(c=Id(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c}XW.peek=YCe;function XW(e){return e.value||""}function YCe(){return"<"}e3.peek=ZCe;function e3(e,t,n,r){const o=RT(n),i=o==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function ZCe(){return"!"}t3.peek=JCe;function t3(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=h,i(),o==="full"||!c||c!==d?l+=s.move(d+"]"):o==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function JCe(){return"!"}n3.peek=QCe;function n3(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const a=n.unsafe[i],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return o+r+o}function QCe(){return"`"}function r3(e,t){const n=TT(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}o3.peek=XCe;function o3(e,t,n,r){const o=RT(n),i=o==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(r3(e,n)){const h=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=h,d}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function XCe(e,t,n){return r3(e,n)?"<":"["}i3.peek=eNe;function i3(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=h,i(),o==="full"||!c||c!==d?l+=s.move(d+"]"):o==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function eNe(){return"["}function MT(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tNe(e){const t=MT(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nNe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function a3(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rNe(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?nNe(n):MT(n);const s=e.ordered?a==="."?")":".":tNe(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),a3(n)===a&&h){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c}function oNe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function iNe(e,t,n,r){const o=oNe(n);let i=n.bulletCurrent||MT(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let a=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),h);return l(),c;function h(d,p,f){return p?(f?"":" ".repeat(a))+d:(f?i:i+" ".repeat(a-i.length))+d}}function aNe(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a}const sNe=Dy(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lNe(e,t,n,r){return(e.children.some(function(a){return sNe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function cNe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}s3.peek=uNe;function s3(e,t,n,r){const o=cNe(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),h=lf(r.before.charCodeAt(r.before.length-1),c,o);h.inside&&(l=Id(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=lf(r.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+Id(d));const f=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},s+l+f}function uNe(e,t,n){return n.options.strong||"*"}function dNe(e,t,n,r){return n.safe(e.value,r)}function hNe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function mNe(e,t,n){const r=(a3(n)+(n.options.ruleSpaces?" ":"")).repeat(hNe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const l3={blockquote:jCe,break:bN,code:WCe,definition:HCe,emphasis:QW,hardBreak:bN,heading:GCe,html:XW,image:e3,imageReference:t3,inlineCode:n3,link:o3,linkReference:i3,list:rNe,listItem:iNe,paragraph:aNe,root:lNe,strong:s3,text:dNe,thematicBreak:mNe};function pNe(){return{enter:{table:fNe,tableData:wN,tableHeader:wN,tableRow:yNe},exit:{codeText:bNe,table:gNe,tableData:Pw,tableHeader:Pw,tableRow:Pw}}}function fNe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gNe(e){this.exit(e),this.data.inTable=void 0}function yNe(e){this.enter({type:"tableRow",children:[]},e)}function Pw(e){this.exit(e)}function wN(e){this.enter({type:"tableCell",children:[]},e)}function bNe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,wNe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function wNe(e,t){return t==="|"?t:e}function vNe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
8329`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:l,tableRow:s}};function a(f,b,y,w){return c(h(f,y,w),f.align)}function s(f,b,y,w){const k=d(f,y,w),x=c([k]);return x.slice(0,x.indexOf(`
8330`))}function l(f,b,y,w){const k=y.enter("tableCell"),x=y.enter("phrasing"),S=y.containerPhrasing(f,{...w,before:i,after:i});return x(),k(),S}function c(f,b){return RCe(f,{align:b,alignDelimiters:r,padding:n,stringLength:o})}function h(f,b,y){const w=f.children;let k=-1;const x=[],S=b.enter("table");for(;++k<w.length;)x[k]=d(w[k],b,y);return S(),x}function d(f,b,y){const w=f.children;let k=-1;const x=[],S=b.enter("tableRow");for(;++k<w.length;)x[k]=l(w[k],f,b,y);return S(),x}function p(f,b,y){let w=l3.inlineCode(f,b,y);return y.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function kNe(){return{exit:{taskListCheckValueChecked:vN,taskListCheckValueUnchecked:vN,paragraph:_Ne}}}function xNe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SNe}}}function vN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _Ne(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,a;for(;++i<o.length;){const s=o[i];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function SNe(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=l3.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(h){return h+a}}function TNe(){return[rCe(),SCe(),ACe(),pNe(),kNe()]}function INe(e){return{extensions:[oCe(),TCe(e),CCe(),vNe(e),xNe()]}}const ENe={tokenize:ONe,partial:!0},c3={tokenize:RNe,partial:!0},u3={tokenize:MNe,partial:!0},d3={tokenize:jNe,partial:!0},ANe={tokenize:$Ne,partial:!0}
vendor: 9,593 bytes, line 8330
8330,h3={name:"wwwAutolink",tokenize:PNe,previous:p3},m3={name:"protocolAutolink",tokenize:DNe,previous:f3},Gi={name:"emailAutolink",tokenize:NNe,previous:g3},vi={};function CNe(){return{text:vi}}let ss=48;for(;ss<123;)vi[ss]=Gi,ss++,ss===58?ss=65:ss===91&&(ss=97);vi[43]=Gi;vi[45]=Gi;vi[46]=Gi;vi[95]=Gi;vi[72]=[Gi,m3];vi[104]=[Gi,m3];vi[87]=[Gi,h3];vi[119]=[Gi,h3];function NNe(e,t,n){const r=this;let o,i;return a;function a(d){return!Ok(d)||!g3.call(r,r.previous)||jT(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Ok(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(ANe,h,c)(d):d===45||d===95||Qn(d)?(i=!0,e.consume(d),l):h(d)}function c(d){return e.consume(d),o=!0,l}function h(d){return i&&o&&gr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function PNe(e,t,n){const r=this;return o;function o(a){return a!==87&&a!==119||!p3.call(r,r.previous)||jT(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ENe,e.attempt(c3,e.attempt(u3,i),n),n)(a))}function i(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function DNe(e,t,n){const r=this;let o="",i=!1;return a;function a(d){return(d===72||d===104)&&f3.call(r,r.previous)&&!jT(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(gr(d)&&o.length<5)return o+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):n(d)}function c(d){return d===null||of(d)||Ot(d)||Ms(d)||Cy(d)?n(d):e.attempt(c3,e.attempt(u3,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function ONe(e,t,n){let r=0;return o;function o(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),o):a===46&&r===3?(e.consume(a),i):n(a)}function i(a){return a===null?n(a):t(a)}}function RNe(e,t,n){let r,o,i;return a;function a(c){return c===46||c===95?e.check(d3,l,s)(c):c===null||Ot(c)||Ms(c)||c!==45&&Cy(c)?l(c):(i=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(o=r,r=void 0),e.consume(c),a}function l(c){return o||r||!i?n(c):t(c)}}function MNe(e,t){let n=0,r=0;return o;function o(a){return a===40?(n++,e.consume(a),o):a===41&&r<n?i(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(d3,t,i)(a):a===null||Ot(a)||Ms(a)?t(a):(e.consume(a),o)}function i(a){return a===41&&r++,e.consume(a),o}}function jNe(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),o):s===60||s===null||Ot(s)||Ms(s)?t(s):n(s)}function o(s){return s===null||s===40||s===91||Ot(s)||Ms(s)?t(s):r(s)}function i(s){return gr(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):gr(s)?(e.consume(s),a):n(s)}}function $Ne(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return Qn(i)?n(i):t(i)}}function p3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ot(e)}function f3(e){return!gr(e)}function g3(e){return!(e===47||Ok(e))}function Ok(e){return e===43||e===45||e===46||e===95||Qn(e)}function jT(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const LNe={tokenize:VNe,partial:!0};function zNe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:BNe,continuation:{tokenize:HNe},exit:qNe}},text:{91:{name:"gfmFootnoteCall",tokenize:WNe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:UNe,resolveTo:FNe}}}}function UNe(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=Wo(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function FNe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function WNe(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!a||d===null||d===91||Ot(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return o.includes(Wo(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ot(d)||(a=!0),i++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function BNe(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0,s;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(b)}function h(b){if(a>999||b===93&&!s||b===null||b===91||Ot(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=Wo(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ot(b)||(s=!0),a++,e.consume(b),b===92?d:h}function d(b){return b===91||b===92||b===93?(e.consume(b),a++,h):h(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),o.includes(i)||o.push(i),yt(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function HNe(e,t,n){return e.check(Wh,t,e.attempt(LNe,t,n))}function qNe(e){e.exit("gfmFootnoteDefinition")}function VNe(e,t,n){const r=this;return yt(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(i):n(i)}}function KNe(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",h,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&qr(p,p.length,0,Ny(f,a.slice(c+1,l),s)),qr(p,p.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",h,s]]),qr(a,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function i(a,s,l){const c=this.previous,h=this.events;let d=0;return p;function p(b){return c===126&&h[h.length-1][1].type!=="characterEscape"?l(b):(a.enter("strikethroughSequenceTemporary"),f(b))}function f(b){const y=xc(c);if(b===126)return d>1?l(b):(a.consume(b),d++,f);if(d<2&&!n)return l(b);const w=a.exit("strikethroughSequenceTemporary"),k=xc(b);return w._open=!k||k===2&&!!y,w._close=!y||y===2&&!!k,s(b)}}}class GNe{constructor(){this.map=[]}add(t,n,r){YNe(this,t,n,r)}consume(t){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];
vendor: 4,098 bytes, line 8330
8330r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const i of o)t.push(i);o=r.pop()}this.map.length=0}}function YNe(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function ZNe(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function JNe(){return{flow:{null:{name:"table",tokenize:QNe,resolveAll:XNe}}}}function QNe(e,t,n){const r=this;let o=0,i=0,a;return s;function s(D){let H=r.events.length-1;for(;H>-1;){const J=r.events[H][1].type;if(J==="lineEnding"||J==="linePrefix")H--;else break}const z=H>-1?r.events[H][1].type:null,V=z==="tableHead"||z==="tableRow"?C:l;return V===C&&r.parser.lazy[r.now().line]?n(D):V(D)}function l(D){return e.enter("tableHead"),e.enter("tableRow"),c(D)}function c(D){return D===124||(a=!0,i+=1),h(D)}function h(D){return D===null?n(D):$e(D)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),f):n(D):lt(D)?yt(e,h,"whitespace")(D):(i+=1,a&&(a=!1,o+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),a=!0,h):(e.enter("data"),d(D)))}function d(D){return D===null||D===124||Ot(D)?(e.exit("data"),h(D)):(e.consume(D),D===92?p:d)}function p(D){return D===92||D===124?(e.consume(D),d):d(D)}function f(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(D):(e.enter("tableDelimiterRow"),a=!1,lt(D)?yt(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):b(D))}function b(D){return D===45||D===58?w(D):D===124?(a=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),y):E(D)}function y(D){return lt(D)?yt(e,w,"whitespace")(D):w(D)}function w(D){return D===58?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),k):D===45?(i+=1,k(D)):D===null||$e(D)?I(D):E(D)}function k(D){return D===45?(e.enter("tableDelimiterFiller"),x(D)):E(D)}function x(D){return D===45?(e.consume(D),x):D===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(D))}function S(D){return lt(D)?yt(e,I,"whitespace")(D):I(D)}function I(D){return D===124?b(D):D===null||$e(D)?!a||o!==i?E(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):E(D)}function E(D){return n(D)}function C(D){return e.enter("tableRow"),$(D)}function $(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),$):D===null||$e(D)?(e.exit("tableRow"),t(D)):lt(D)?yt(e,$,"whitespace")(D):(e.enter("data"),T(D))}function T(D){return D===null||D===124||Ot(D)?(e.exit("data"),$(D)):(e.consume(D),D===92?P:T)}function P(D){return D===92||D===124?(e.consume(D),T):T(D)}}function XNe(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,h,d;const p=new GNe;for(;++n<e.length;){const f=e[n],b=f[1];f[0]==="enter"?b.type==="tableHead"?(s=!1,l!==0&&(kN(p,t,l,c,h),h=void 0,l=0),c={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},p.add(n,0,[["enter",c,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},p.add(n,0,[["enter",h,t]])),o=b.type==="tableDelimiterRow"?2:h?3:1):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(i[1]!==0&&(a[0]=a[1],d=Vm(p,t,i,o,void 0,d),i=[0,0,0,0]),a[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(a[0]=a[1],d=Vm(p,t,i,o,void 0,d)),i=a,a=[i[1],n,0,0])):b.type==="tableHead"?(s=!0,l=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=n,i[1]!==0?(a[0]=a[1],d=Vm(p,t,i,o,n,d)):a[1]!==0&&(
8330d=Vm(p,t,a,o,n,d)),o=0):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&kN(p,t,l,c,h),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=ZNe(t.events,n))}return e}function Vm(e,t,n,r,o,i){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Pl(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Pl(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=Pl(t.events,n[2]),h=Pl(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return o!==void 0&&(i.end=Object.assign({},Pl(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function kN(e,t,n,r,o){const i=[],a=Pl(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Pl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ePe={name:"tasklistCheck",tokenize:nPe};function tPe(){return{text:{91:ePe}}}function nPe(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Ot(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return $e(l)?t(l):lt(l)?e.check({tokenize:rPe},t,n)(l):n(l)}}function rPe(e,t,n){return yt(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function oPe(e){return TW([CNe(),zNe(),KNe(e),JNe(),tPe()])}const iPe={};function Rk(e){const t=this,n=e||iPe,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(oPe(n)),i.push(TNe()),a.push(INe(n))}function xN({role:e,text:t}){return e==="user"?u.jsx("div",{className:"agent-turn--user",children:t}):u.jsx("div",{className:"agent-turn--assistant agent-markdown",children:u.jsx(Dk,{remarkPlugins:[Rk,nCe],children:t})})}function aPe({icon:e}){const t="h-3.5 w-3.5 opacity-70";switch(e){case"calendar":return u.jsx(Q0,{className:t,"aria-hidden":!0});case"location":return u.jsx(mY,{className:t,"aria-hidden":!0});case"users":return u.jsx(r_,{className:t,"aria-hidden":!0});case"info":return u.jsx(e_,{className:t,"aria-hidden":!0});case"message":return u.jsx(fY,{className:t,"aria-hidden":!0});case"mail":return u.jsx(H$,{className:t,"aria-hidden":!0});default:return null}}function sPe({preview:e}){return u.jsxs("div",{className:"agent-permission-preview mt-2 rounded border border-border bg-background/40 px-3 py-2 text-xs",children:[u.jsx("div",{className:"text-sm font-medium",children:e.title}),e.fields.length>0?u.jsx("dl",{className:"mt-1.5 grid grid-cols-[auto_1fr] gap-x-2 gap-y-0.5",children:e.fields.map(t=>u.jsxs("div",{className:"contents",children:[u.jsxs("dt",{className:"flex items-center gap-1 opacity-70",children:[u.jsx(aPe,{icon:t.icon}),u.jsx("span",{children:t.label})]}),u.jsx("dd",{children:t.value})]},t.label))}):null,e.details?u.jsxs("details",{className:"mt-1.5",children:[u.jsx("summary",{className:"cursor-pointer opacity-70 hover:opacity-100",children:e.details.label}),u.jsx("div",{className:"mt-1 whitespace-pre-wrap opacity-90",children:e.details.body})]}):null]})}function y3(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function lPe(e){return typeof e=="string"?e:y3(e)}function $T(e){if(e==null)return"";if(typeof e=="string")return e;try{return typeof e=="object"&&!Array.isArray(e)?Object.entries(e).map(([t,n])=>`${t}: ${JSON.stringify(n)}`).join(", "):JSON.stringify(e)}catch{return""}}function cPe({pending:e,onResolve:t,onSendFollowUp:n}){return e.length===0?null:u.jsx("div",{className:"flex flex-col gap-2",children:e.map((r,o)=>u.jsx(hPe,{group:r,onResolve:t,onSendFollowUp:n,autoFocus:o===0},`${r.toolName}:${r.toolUseIds[0]}`))})}const uPe=["Yes","No"],dPe=1100;function Dw(e){return e instanceof HTMLElement&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function hPe({group:e,onResolve:t,onSendFollowUp:n,autoFocus:r}){const o=uPe,i=o.length-1,[a,s]=g.useState(0),[l,c]=g.useState(null),[h,d]=g.useState(""),[p,f]=g.useState(!1),b=g.useRef(null),y=g.useRef(null),w=g.useRef(null);g.useEffect(()=>{if(!r)return;let T=!1,P=null;const D=()=>{T||(T=!0,b.current?.focus())},H=()=>{T||(P!==null&&window.clearTimeout(P),P=window.setTimeout(()=>{!T&&Dw(document.activeElement)&&D()},dPe))};Dw(document.activeElement)?H():D();const z=()=>{T||Dw(document.activeElement)&&H()};return document.addEventListener("keydown",z),()=>{P!==null&&window.clearTimeout(P),document.removeEventListener("keydown",z)}},[r,e.toolName]),g.useEffect(()=>{l!==null&&w.current===null?y.current?.focus():l===null&&w.current!==null&&b.current?.focus(),w.current=l},[l]);const k=async(T,P)=>{if(!p){f(!0);try{const D=P?.trim()??"";T===i?await t(e,"deny",D.length>0?D:void 0):(await t(e,"allow_once"),D.length>0&&T===0&&await n(D))}finally{f(!1)}}},x=T=>{if(l===null&&!p)switch(T.key){case"1":T.preventDefault(),s(0),k(0);return;case"2":T.preventDefault(),s(1),c(1);return;case"ArrowUp":case"ArrowLeft":T.preventDefault(),s(P=>(P-1+o.length)%o.length);return;case"ArrowDown":case"ArrowRight":T.preventDefault(),s(P=>(P+1)%o.length);return;case"Enter":T.preventDefault(),a===i?c(i):k(a);return;case"Tab":if(T.shiftKey)return;(a===0||a===i)&&(T.preventDefault(),c(a));return;case"Escape":T.preventDefault();return}},S=T=>{if(T.key==="Enter"){T.preventDefault();const P=h.trim();k(l,P).then(()=>d(""));return}T.key==="Escape"&&(T.preventDefault(),c(null),d(""))}
8330,I=e.toolUseIds.length,E=$T(e.inputs[0]??{}),C=I>1?` … and ${I-1} more`:"",$=e.preview?.actionLabel?u.jsxs(u.Fragment,{children:["Agent wants to ",u.jsx("span",{className:"font-semibold",children:e.preview.actionLabel})]}):u.jsxs(u.Fragment,{children:["Agent wants to call"," ",u.jsx("code",{className:"font-mono text-xs",children:e.toolName})]});return u.jsxs("div",{role:"dialog","aria-label":`Permission request: ${e.preview?.actionLabel??e.toolName}`,className:"agent-permission-card rounded-lg border border-accent/50 bg-accent/5 px-3 py-2 text-sm",children:[e.requestedBy&&e.requestedBy!=="coordinator"&&u.jsx("div",{className:"agent-permission-card__chip mb-1 inline-flex items-center gap-1 rounded-full bg-zinc-100 px-2 py-0.5 text-xs text-zinc-700",children:e.requestedBy==="microsoft"?"Microsoft specialist":"Luniko specialist"}),u.jsxs("div",{className:"agent-permission-card__header font-medium",children:[$,I>1?u.jsxs("span",{className:"ml-2 rounded bg-accent/20 px-1.5 py-0.5 text-xs",children:["× ",I]}):null]}),e.preview?u.jsx(sPe,{preview:e.preview}):u.jsxs("div",{className:"agent-permission-card__args mt-0.5 truncate font-mono text-xs opacity-70",children:[E,C]}),l===null?u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:b,tabIndex:0,onKeyDown:x,className:"agent-permission-card__options mt-2 rounded outline-none focus:ring-2 focus:ring-accent/60",role:"listbox","aria-activedescendant":`permission-opt-${a}`,children:o.map((T,P)=>{const D=a===P,H=P===i;return u.jsxs("div",{id:`permission-opt-${P}`,role:"option","aria-selected":D,onClick:()=>{s(P),P===i?c(i):k(P)},className:X("flex items-baseline gap-2 rounded px-2 py-1 cursor-pointer text-xs",D&&!H&&"bg-accent/10",D&&H&&"bg-destructive/15",!D&&"hover:bg-accent/5",p&&"opacity-50 pointer-events-none"),children:[u.jsx("span",{className:"w-3 opacity-80",children:D?">":""}),u.jsxs("span",{className:"w-3 opacity-70",children:[P+1,"."]}),u.jsx("span",{className:X(H&&"text-destructive"),children:T})]},P)})}),u.jsx("div",{className:"agent-permission-card__hint mt-1.5 px-2 text-[10px] opacity-60",children:"Esc to cancel · Tab to amend"})]}):u.jsxs("div",{className:"mt-2",children:[u.jsxs("div",{className:"agent-permission-card__amend-label mb-1 px-1 text-[10px] uppercase tracking-wide opacity-60",children:["Amending: ",o[l]]}),u.jsx("input",{ref:y,type:"text",value:h,onChange:T=>d(T.target.value),onKeyDown:S,placeholder:l===0?"Add a note for the agent (optional, Enter to confirm)":"Tell the agent what to do instead (Enter to deny)",disabled:p,"aria-label":"Amend the decision",className:X("w-full rounded border px-3 py-1.5 text-xs placeholder:opacity-70 focus:outline-none focus:ring-2 disabled:opacity-50",l===i?"border-destructive/40 bg-destructive/5 focus:ring-destructive focus:bg-destructive/10":"border-border bg-background focus:ring-accent focus:bg-accent/5")}),u.jsx("div",{className:"agent-permission-card__hint mt-1 px-1 text-[10px] opacity-60",children:"Enter to confirm · Esc to go back"})]})]})}const mPe=v({authorizeUrl:m().url()});function pPe({missing:e}){const{getAccessTokenSilently:t}=Pe(),n=async()=>{const r=`${window.location.origin}/luna`,{authorizeUrl:o}=await M({path:"/integrations/microsoft/connect",getAccessTokenSilently:t,options:{method:"POST",body:{returnTo:r}},responseSchema:mPe});window.location.href=o};return u.jsxs("div",{className:"rounded-md border border-warning/40 bg-warning-subtle/40 px-3 py-2 text-sm text-warning-foreground flex items-center gap-3",children:[u.jsxs("span",{className:"flex-1",children:["Microsoft access is needed for directory tools. Missing scopes:"," ",u.jsx("code",{className:"font-mono text-xs",children:e.join(", ")})]}),u.jsx(Ve,{type:"button",size:"sm",variant:"outline",onClick:()=>{n()},children:"Reconnect Microsoft"})]})}function fPe({name:e,items:t}){return t.length===1?u.jsx(gPe,{name:e,item:t[0]}):u.jsx(yPe,{name:e,items:t})}function gPe({name:e,item:t}){const[n,r]=g.useState(!1),o=$T(t.input);return u.jsxs("div",{className:"agent-tool-strip",children:[u.jsxs("button",{type:"button",onClick:()=>r(i=>!i),className:X("agent-tool-strip__group-header","hover:text-foreground transition-colors"),"aria-expanded":n,children:[u.jsx("span",{"aria-hidden":"true",className:"agent-tool-strip__glyph",children:"❖"}),u.jsx("span",{className:"agent-tool-strip__name whitespace-nowrap",children:e}
8330),o&&u.jsx("span",{className:"agent-tool-strip__inline min-w-0 truncate",children:o}),u.jsx("span",{className:"agent-tool-strip__status whitespace-nowrap",children:u.jsx(wPe,{status:t.status})}),u.jsx("span",{className:"ml-auto pl-2",children:n?u.jsx(Ui,{className:"h-3.5 w-3.5"}):u.jsx(Ec,{className:"h-3.5 w-3.5"})})]}),n&&u.jsx(b3,{input:t.input,output:t.output})]})}function yPe({name:e,items:t}){const[n,r]=g.useState(!1),o=t.filter(a=>a.status==="running").length,i=t.length-o;return u.jsxs("div",{className:"agent-tool-strip",children:[u.jsxs("button",{type:"button",onClick:()=>r(a=>!a),className:X("agent-tool-strip__group-header","hover:text-foreground transition-colors"),"aria-expanded":n,children:[u.jsx("span",{"aria-hidden":"true",className:"agent-tool-strip__glyph",children:"❖"}),u.jsx("span",{className:"agent-tool-strip__name",children:e}),u.jsxs("span",{className:"agent-tool-strip__status",children:["· ",t.length," calls"]}),u.jsx("span",{className:"agent-tool-strip__status",children:o>0?u.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[u.jsx(Ht,{className:"h-3 w-3 animate-spin"}),o," running"]}):u.jsxs(u.Fragment,{children:["· ",i," done"]})}),u.jsx("span",{className:"ml-auto pl-2",children:n?u.jsx(Ui,{className:"h-3.5 w-3.5"}):u.jsx(Ec,{className:"h-3.5 w-3.5"})})]}),n&&u.jsx("div",{className:"agent-tool-strip__group-items",children:t.map((a,s)=>u.jsx(bPe,{index:s+1,item:a},a.id))})]})}function bPe({index:e,item:t}){const[n,r]=g.useState(!1),o=$T(t.input);return u.jsxs("div",{className:"px-3 py-1.5 text-xs",children:[u.jsxs("button",{type:"button",onClick:()=>r(i=>!i),className:"flex w-full items-center gap-2 text-left hover:text-foreground transition-colors","aria-expanded":n,children:[n?u.jsx(Ui,{className:"h-3 w-3"}):u.jsx(Ec,{className:"h-3 w-3"}),u.jsxs("span",{className:"text-muted-foreground/70 w-6",children:["#",e]}),u.jsx("span",{className:"text-foreground/90 truncate flex-1",children:o}),u.jsx("span",{className:"text-muted-foreground/70",children:t.status==="running"?u.jsx(Ht,{className:"h-3 w-3 animate-spin"}):"done"})]}),n&&u.jsx(b3,{input:t.input,output:t.output})]})}function b3({input:e,output:t}){return u.jsxs("div",{className:"border-t border-border/60 px-3 py-2 mt-1.5 space-y-2 bg-background/30",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-1",children:"input"}),u.jsx("pre",{className:"text-xs whitespace-pre-wrap break-words text-foreground/90",children:y3(e)})]}),t!==null&&u.jsxs("div",{children:[u.jsx("div",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-1",children:"output"}),u.jsx("pre",{className:"text-xs whitespace-pre-wrap break-words text-foreground/90",children:lPe(t)})]})]})}function wPe({status:e}){return e==="running"?u.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[u.jsx(Ht,{className:"h-3 w-3 animate-spin"}),"running"]}):u.jsx(u.Fragment,{children:"· done"})}function vPe(e){switch(e){case"luniko_create_mind_map":return u.jsx(dd,{className:"h-3.5 w-3.5"});case"luniko_edit_mind_map":return u.jsx(TY,{className:"h-3.5 w-3.5"});case"luniko_get_mind_map":return u.jsx(ud,{className:"h-3.5 w-3.5"});default:return u.jsx(JG,{className:"h-3.5 w-3.5"})}}function kPe(e){switch(e){case"luniko_create_mind_map":return"Created";case"luniko_edit_mind_map":return"Edited";case"luniko_get_mind_map":return"Viewed";default:return"Mind map"}}function xPe({item:e}){const t=e.output;return u.jsx("div",{className:"rounded-lg border border-border/60 bg-background/50 px-3 py-2.5",children:u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsx("span",{className:"mt-0.5 text-muted-foreground",children:vPe(e.name)}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:kPe(e.name)}),u.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:t.title})]}),t.summary&&t.summary.length>0&&u.jsx("ul",{className:"mt-1.5 space-y-0.5",children:t.summary.map((n,r)=>
8330u.jsx("li",{className:"text-xs text-foreground/70 before:mr-1.5 before:text-muted-foreground/50 before:content-['·']",children:n},r))}),t.nodeCount!==void 0&&u.jsxs("p",{className:"mt-1 text-xs text-foreground/70",children:[t.nodeCount," ",t.nodeCount===1?"node":"nodes"]}),u.jsxs(ji,{to:t.url,className:"mt-2 inline-flex items-center gap-1 text-xs text-primary hover:underline",children:["Open mind map",u.jsx(BG,{className:"h-3 w-3"})]})]})]})})}const _Pe=new Set(["luniko_create_mind_map","luniko_edit_mind_map","luniko_get_mind_map"]);function SPe(e){return _Pe.has(e.name)&&e.status==="done"&&e.output!=null&&typeof e.output=="object"&&"url"in e.output}function TPe(e){return e.filter(SPe)}function IPe({size:e=36,weight:t=300,align:n="center",blink:r=!0}){const[o,i]=g.useState(()=>new Date);g.useEffect(()=>{const c=window.setInterval(()=>i(new Date),1e3);return()=>window.clearInterval(c)},[]);const a=String(o.getHours()).padStart(2,"0"),s=String(o.getMinutes()).padStart(2,"0"),l=o.getSeconds();return u.jsx("div",{className:X("select-none leading-none",n==="center"?"text-center":"text-left"),children:u.jsxs("div",{className:X("flex items-center tabular-nums text-foreground",n==="center"?"justify-center":"justify-start"),style:{fontSize:e,fontWeight:t,gap:e*.02},children:[u.jsx("span",{children:a}),u.jsx("span",{className:"transition-opacity duration-200",style:{opacity:r&&l%2?.25:.9,transform:`translateY(-${e*.04}px)`},children:":"}),u.jsx("span",{children:s})]})})}function EPe({active:e,idleText:t,size:n=15}){return u.jsx("div",{className:"flex items-center",children:u.jsx("span",{className:X("whitespace-nowrap font-medium text-muted-foreground transition-opacity duration-500",e?"opacity-0":"opacity-100"),style:{fontSize:n},children:t})})}const APe=[{accDash:"60 26 12 40",beamA:140,white:54},{accDash:"14 8 4 8",beamA:120,white:40},{accDash:"40 60",beamA:165,white:64},{accDash:"90 18 6 18",beamA:110,white:48}];function Ow(e,t,n){const r=n*Math.PI/180,o=(n+t)*Math.PI/180,i=100+e*Math.cos(r),a=100+e*Math.sin(r),s=100+e*Math.cos(o),l=100+e*Math.sin(o);return`M ${i} ${a} A ${e} ${e} 0 ${t>180?1:0} 1 ${s} ${l}`}function CPe({size:e=184,active:t,look:n=2,showWordmark:r=!0}){const o=t?46:64,i=t?17:30,a=t?10:18,s=t?6.5:11,l=(p,f)=>({animation:`${p} ${f}s linear infinite`}),c=APe[n],h=t?"drop-shadow(0 0 4px rgba(120,200,255,0.95)) drop-shadow(0 0 12px rgba(74,166,229,0.8))":"drop-shadow(0 0 3px rgba(120,200,255,0.7)) drop-shadow(0 0 8px rgba(74,166,229,0.45))",d={width:e*.28,height:"auto",opacity:r?1:0,filter:t?"drop-shadow(0 0 10px color-mix(in oklab, var(--teal) 60%, transparent))":"drop-shadow(0 0 6px color-mix(in oklab, var(--teal) 35%, transparent))",transition:"opacity 0.8s ease, filter 0.8s ease"};return u.jsxs("div",{style:{position:"relative",width:e,height:e,transition:"transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1)",transform:t?"translateY(-6px) scale(1.055)":"translateY(0) scale(1)"},children:[u.jsx("div",{style:{position:"absolute",inset:"-22%",borderRadius:"50%",background:"radial-gradient(circle at 50% 50%, rgba(74,166,229,0.55) 0%, rgba(44,123,229,0.28) 32%, rgba(20,60,150,0.08) 55%, transparent 70%)",filter:"blur(6px)",transition:"opacity 1s ease, transform 1.1s ease",opacity:t?1:.5,transform:t?"scale(1.08)":"scale(0.92)"}}),u.jsxs("svg",{width:e,height:e,viewBox:"0 0 200 200",style:{position:"relative",display:"block"},children:[u.jsxs("defs",{children:[u.jsx("pattern",{id:"hero-dots",patternUnits:"userSpaceOnUse",width:"3",height:"3",children:u.jsx("circle",{cx:"1.5",cy:"1.5",r:"0.6",fill:"#2C7BE5"})}),u.jsxs("radialGradient",{id:"hero-core",cx:"50%",cy:"44%",r:"65%",children:[u.jsx("stop",{offset:"0%",stopColor:t?"color-mix(in oklab, var(--teal) 10%, var(--card))":"var(--card)"}),u.jsx("stop",{offset:"70%",stopColor:"color-mix(in oklab, var(--card) 70%, var(--background))"}),u.jsx("stop",{offset:"100%",stopColor:"var(--background)"})]})]}),u.jsx("g",{className:"luna-rot",style:l("luna-cw",o),children:u.jsx("circle",{cx:"100",cy:"100",r:"90",fill:"none",stroke:"url(#hero-dots)",strokeWidth:"3",strokeDasharray:"0.6 2.4",opacity:"0.85"})}),u.jsx("g",{className:"luna-rot",style:l("luna-cw",i),children:u.jsx("circle",{cx:"100",cy:"100",r:"72",fill:"none",stroke:"#3B7BEA",strokeWidth:"1.6",strokeDasharray:c.accDash,opacity:"0.9",strokeLinecap:"round"})}),u.jsxs("g",{className:"luna-rot",style:{...l("luna-cw",a),filter:h},children:[u.jsx("path",{d:Ow(64,c.beamA,-120),fill:"none",stroke:"#8FD0FF",strokeWidth:"2.6",strokeLinecap:"round"}),u.jsx("path",{d:Ow(64,26,40),fill:"none",stroke:"#E8EEF7",strokeWidth:"1.2",strokeLinecap:"round",opacity:"0.9"})]}),u.jsx("g",{className:"luna-rot",style:l("luna-ccw",s),children:u.jsx("path",{d:Ow(68,c.white,70),fill:"none",stroke:"#E8EEF7",strokeWidth:"1",strokeLinecap:"round",opacity:t?.8:.5}
8330)}),u.jsx("circle",{cx:"100",cy:"100",r:"54",fill:"none",stroke:"#5FB0F5",strokeWidth:"1.5",opacity:t?.95:.7,style:{filter:t?"drop-shadow(0 0 5px rgba(95,176,245,0.8))":"drop-shadow(0 0 2px rgba(95,176,245,0.4))",transition:"opacity 0.8s"}}),u.jsx("circle",{cx:"100",cy:"100",r:"49.5",fill:"url(#hero-core)"}),u.jsx("g",{className:"luna-rot",style:l("luna-cw",o*1.6),children:u.jsxs("g",{className:"agent-icon-pulse",children:[u.jsx("circle",{cx:"100",cy:"6",r:"1.4",fill:"#E8EEF7"}),u.jsx("circle",{cx:"100",cy:"194",r:"1.4",fill:"#E8EEF7"}),u.jsx("circle",{cx:"6",cy:"100",r:"1.5",fill:"#E8EEF7"}),u.jsx("circle",{cx:"194",cy:"100",r:"1.5",fill:"#E8EEF7"})]})}),u.jsx("g",{className:"luna-rot",style:l("luna-cw",a*1.4),children:u.jsx("circle",{cx:"100",cy:"28",r:"2",fill:"#8FD0FF",style:{filter:"drop-shadow(0 0 4px rgba(143,208,255,0.9))"}})}),u.jsx("g",{className:"luna-rot",style:l("luna-ccw",i*1.2),children:u.jsx("circle",{cx:"172",cy:"100",r:"1.6",fill:"var(--warning)",opacity:"0.9"})})]}),u.jsxs("div",{style:{position:"absolute",inset:0,display:"grid",placeItems:"center",pointerEvents:"none"},children:[u.jsx("img",{src:"/luniko_logo_mark.svg",alt:"Luniko",className:"dark:hidden",style:d}),u.jsx("img",{src:"/luniko_logo_mark_dark.svg",alt:"Luniko",className:"hidden dark:block",style:d})]})]})}function NPe({label:e,onClick:t,dimmed:n=!1}){return u.jsx("button",{type:"button",onClick:t,className:X("cursor-pointer whitespace-nowrap rounded-full border border-border bg-card px-5 py-2.5 text-sm text-foreground/85 shadow-sm","transition-all duration-150 hover:border-teal/40 hover:bg-accent hover:text-foreground",n?"opacity-45":"opacity-100"),children:e})}function PPe(e){const t=e.getHours();return t<5?"Still awake":t<12?"Good morning":t<18?"Good afternoon":"Good evening"}function DPe(e){return e?typeof e.given_name=="string"&&e.given_name?e.given_name:typeof e.name=="string"&&e.name?e.name.split(" ")[0]:typeof e.nickname=="string"&&e.nickname?e.nickname:typeof e.email=="string"&&e.email?e.email.split("@")[0]:"":""}const OPe=["Who am I?","Schedule a meeting for me.","Who are the engineers in Luniko?"],RPe=140,MPe=1550,jPe=2450,w3="luna_intro_last_shown_date";function v3(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function $Pe(){if(typeof window>"u")return!1;try{return window.localStorage.getItem(w3)===v3()}catch{return!1}}function LPe(){if(!(typeof window>"u"))try{window.localStorage.setItem(w3,v3())}catch{}}function zPe({active:e,onChipClick:t}){const{user:n}=Pe(),r=DPe(n),o=PPe(new Date),i=r?`${o}, ${r}`:o,[a]=g.useState($Pe),[s,l]=g.useState(a),[c,h]=g.useState(a),[d,p]=g.useState(a);return g.useEffect(()=>{if(a)return;LPe();const f=window.setTimeout(()=>l(!0),RPe),b=window.setTimeout(()=>h(!0),MPe),y=window.setTimeout(()=>p(!0),jPe);return()=>{window.clearTimeout(f),window.clearTimeout(b),window.clearTimeout(y)}},[a]),u.jsx("div",{className:"relative grid flex-1 place-items-center px-6 pb-2 pt-8",children:u.jsxs("div",{className:"flex -translate-y-3 flex-col items-center gap-[26px]",children:[u.jsx("div",{style:{opacity:s?1:0,transform:s?"scale(1)":"scale(0.12)",filter:s?"blur(0px)":"blur(7px)",transition:"opacity 1.3s ease, transform 1.5s cubic-bezier(0.18, 0.7, 0.18, 1), filter 1.3s ease"},children:u.jsx(CPe,{size:184,active:e,look:2,showWordmark:c})}),u.jsx("div",{className:X("transition-all delay-100 duration-700 ease-out",d?e?"translate-y-0 opacity-50":"translate-y-0 opacity-100":"translate-y-2.5 opacity-0"),children:u.jsx(IPe,{size:36,weight:300})}),u.jsx("div",{className:X("h-px w-[42px] bg-teal/40 transition-all delay-200 duration-700 ease-out",d?"scale-x-100 opacity-100":"scale-x-0 opacity-0")}),u.jsx("div",{className:X("transition-all delay-[250ms] duration-700 ease-out",d?"translate-y-0 opacity-100":"translate-y-2.5 opacity-0"),children:u.jsx(EPe,{active:e,idleText:i,size:24})}),u.jsx("div",{className:X("mt-2 flex flex-wrap justify-center gap-3 transition-all delay-[350ms] duration-700 ease-out",d?e?"translate-y-0 opacity-45":"translate-y-0 opacity-100":"translate-y-2.5 opacity-0"),children:OPe.map(f=>u.jsx(NPe,{label:f,onClick:()=>t(f),dimmed:e},f))})]})})}const _N="color-mix(in oklab, var(--foreground) 7%, transparent)",UPe=`linear-gradient(${_N} 1px, transparent 1px), linear-gradient(90deg, ${_N} 1px, transparent 1px)`,SN="radial-gradient(ellipse at center, #000 15%, transparent 80%)";function FPe({active:e}
8330){return u.jsx("div",{"aria-hidden":!0,className:X("pointer-events-none absolute inset-0 overflow-hidden transition-opacity duration-1000",e?"opacity-0":"opacity-100"),children:u.jsx("div",{className:"absolute -inset-px",style:{backgroundImage:UPe,backgroundSize:"44px 44px",maskImage:SN,WebkitMaskImage:SN}})})}const WPe=35;function BPe(e,t){const[n,r]=g.useState(e??""),o=g.useRef(t),i=g.useRef(e);return g.useEffect(()=>{if(t!==o.current){o.current=t,i.current=e,Promise.resolve().then(()=>r(e??""));return}if(e===i.current)return;if(i.current=e,!e){Promise.resolve().then(()=>r(""));return}Promise.resolve().then(()=>r(""));let a=0;const s=window.setInterval(()=>{a+=1,r(e.slice(0,a)),a>=e.length&&window.clearInterval(s)},WPe);return()=>window.clearInterval(s)},[e,t]),n}function k3({activeSessionId:e,scopeBanner:t,initialPrompt:n,onInitialPromptSent:r,title:o=null,showEmptyState:i=!0,className:a,reserveLauncherSlot:s=!1,onLauncherClick:l}){const c=bSe(),{status:h,messages:d,modelInFlight:p,usage:f,send:b,pendingPermissions:y,resolvePermission:w,replaying:k,interruptTurn:x}=fSe({anthropicSessionId:e,pageContext:c}),[S,I]=g.useState({text:"",interim:""}),E=S.text.trim().length>0||S.interim.trim().length>0,{data:C}=_Se(e),$=BPe(o,e),T=g.useRef(null),P=g.useRef(null),D=g.useRef(0),H=vSe(),{queue:z,editingId:V,drainPaused:J,enqueue:F,remove:G,startEdit:Y,saveEdit:le,cancelEdit:W,clear:_,restoreHead:ne,pauseDrain:U,resumeDrain:A}=H,K=g.useRef(""),Q=h==="idle"&&!p&&y.length===0&&!J,oe=Q&&z.length>0;g.useEffect(()=>{if(!n)return;let ce=!1;return Promise.resolve().then(()=>{ce||(F(n),r?.())}),()=>{ce=!0}},[n,F,r]);const ee=p||h==="streaming",ye=y.length===0&&ee;g.useEffect(()=>{const ce=T.current;ce&&(ce.scrollTop=ce.scrollHeight)},[d,p]),g.useEffect(()=>{const ce=D.current;D.current=y.length,ce>0&&y.length===0&&queueMicrotask(()=>P.current?.focus())},[y.length]),g.useEffect(()=>{e&&queueMicrotask(()=>P.current?.focus())},[e]),g.useEffect(()=>{if(!oe)return;const ce=z[0];if(ce.id===V)return;let Oe=!1;return(async()=>{if(await Promise.resolve(),!Oe){G(ce.id);try{await b(ce.text)}catch(Ue){ne(ce),U(),rt.error("Failed to send queued message — click Resume to retry.",{description:Ue instanceof Error?Ue.message:void 0})}}})(),()=>{Oe=!0}},[oe,z,V,b,G,ne,U]);const ve=g.useRef(h);return g.useEffect(()=>{const ce=ve.current;ve.current=h,h==="error"&&ce!=="error"&&z.length>0&&(rt.warning(`${z.length} queued message${z.length===1?"":"s"} discarded — session ended.`),_())},[h,z.length,_]),u.jsxs("div",{className:X("relative flex flex-col",a),children:[i&&d.length===0&&h!=="creating_session"&&!k&&u.jsx(FPe,{active:E}),u.jsxs("div",{ref:T,className:"relative flex-1 overflow-y-auto",children:[o&&u.jsx("div",{className:"sticky top-0 z-10 bg-background/85 px-4 py-2 backdrop-blur-sm",children:u.jsx("h2",{className:"truncate text-sm font-medium",title:o,children:$})}),u.jsxs("div",{className:X("luna-chat mx-auto max-w-3xl px-4 py-6 space-y-6",d.length===0&&"flex min-h-full flex-col"),children:[i&&d.length===0&&h!=="creating_session"&&(k?u.jsx("div",{className:"flex flex-1 items-center justify-center py-12",children:u.jsx(Ht,{className:"h-6 w-6 animate-spin opacity-50","aria-label":"Loading conversation"})}):u.jsx(zPe,{active:E,onChipClick:ce=>{P.current?.setText(ce),P.current?.focus()}})),h==="creating_session"&&u.jsxs("div",{className:"flex items-center justify-center gap-2 py-12 text-muted-foreground text-sm",children:[u.jsx(Ht,{className:"h-4 w-4 animate-spin"}),"Starting agent session…"]}),d.map(ce=>{switch(ce.kind){case"user_message":return u.jsx(xN,{role:"user",text:ce.text},ce.id);case"assistant_text":return u.jsx(xN,{role:"assistant",text:ce.text},ce.id);case"tool_call_group":{const Oe=TPe(ce.items);return u.jsxs("div",{className:"space-y-2",children:[u.jsx(fPe,{name:ce.name,items:ce.items}),Oe.map(Ue=>u.jsx(xPe,{item:Ue},Ue.id))]},ce.id)}case"session_files":return u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Files from this turn:"}),ce.files.map(Oe=>u.jsx(MTe,{anthropicSessionId:e,file:Oe},Oe.id))]},ce.id);case"notice":return u.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/40 px-3 py-1.5 text-xs text-muted-foreground",children:[u.jsx("span",{"aria-hidden":!0,
8330children:"⏹"}),ce.text]},ce.id);case"error":return u.jsx("div",{className:"rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:ce.message},ce.id)}}),ye&&u.jsx(KSe,{}),u.jsx(cPe,{pending:y,onResolve:w,onSendFollowUp:b})]})]}),u.jsx("div",{className:"luna-composer relative bg-background",children:u.jsxs("div",{className:"mx-auto max-w-3xl px-4 pt-3 pb-2",children:[t&&u.jsx("div",{className:"mb-2",children:u.jsx(pPe,{missing:t.missing})}),u.jsx(WSe,{ref:P,disabled:!1,reserveLauncherSlot:s,onLauncherClick:l,submitMode:V?"save":"send",onTextChange:I,showStop:!V&&hSe(h),onStop:()=>{x()},onSend:ce=>{if(V){le(ce);return}Q&&z.length===0?b(ce):F(ce)},onCancelEdit:()=>{W(),P.current?.setText(K.current),K.current=""},usage:f,sessionMetrics:C??null,queue:z,editingId:V,drainPaused:J,onStartEdit:ce=>{K.current=P.current?.getText()??"";const Oe=Y(ce);P.current?.setText(Oe),P.current?.focus()},onRemoveQueued:ce=>{ce===V&&(P.current?.setText(K.current),K.current=""),G(ce)},onResumeDrain:A})]})})]})}function HPe({title:e,icon:t,headerActions:n,onClose:r,closeLabel:o="Close window",className:i,children:a}){const s=cB();return u.jsxs(uB.div,{drag:!0,dragControls:s,dragListener:!1,dragMomentum:!1,className:`cmd-glass fixed left-6 top-20 z-[60] w-[440px] overflow-hidden rounded-2xl shadow-2xl ${i??""}`,children:[u.jsxs("div",{onPointerDown:l=>s.start(l),style:{touchAction:"none"},className:"flex cursor-grab items-center justify-between gap-3 border-b border-black/[0.06] px-4 py-2.5 active:cursor-grabbing dark:border-white/[0.1]",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t,u.jsx("span",{className:"truncate text-[13px] font-medium",children:e})]}),u.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[n,u.jsx("button",{type:"button",onPointerDown:l=>l.stopPropagation(),onClick:r,"aria-label":o,className:"text-muted-foreground hover:text-foreground",children:u.jsx(Fi,{className:"h-4 w-4"})})]})]}),a]})}function qPe({sessionId:e,onClose:t,onOpenInLuna:n}){return u.jsx(HPe,{title:"Ask Luna",icon:u.jsx(sc,{className:"h-4 w-4 shrink-0 text-warning"}),onClose:t,closeLabel:"Close chat window",headerActions:u.jsxs("button",{type:"button",onPointerDown:r=>r.stopPropagation(),onClick:n,className:"flex items-center gap-1 text-xs text-teal hover:underline",children:["Open in Luna",u.jsx(pg,{className:"h-3 w-3"})]}),children:u.jsx(k3,{activeSessionId:e,scopeBanner:null,showEmptyState:!1,className:"h-[60vh]"})})}const LT=X("flex w-full items-center gap-3 rounded-lg px-3 text-[13px]","cursor-default select-none outline-hidden relative","hover:bg-black/[0.04] dark:hover:bg-white/[0.06]","data-[selected=true]:bg-black/[0.05] dark:data-[selected=true]:bg-white/[0.08]","data-[selected=true]:before:absolute data-[selected=true]:before:left-0 data-[selected=true]:before:top-1/2 data-[selected=true]:before:h-4 data-[selected=true]:before:-translate-y-1/2 data-[selected=true]:before:rounded-r data-[selected=true]:before:border-l-2 data-[selected=true]:before:border-warning"),VPe=X("h-9",LT),Mk=X("overflow-hidden px-1","[&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:pb-1.5 [&_[cmdk-group-heading]]:pt-3","[&_[cmdk-group-heading]]:text-[10px] [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-widest [&_[cmdk-group-heading]]:text-teal"),KPe={"/command-center":"nav.create-action","/action-logs":"nav.action-logs","/raid-logs":"nav.raid-logs","/review-meetings":"nav.review-meetings","/scratch-pad":"nav.mind-manager","/luniko-button":"nav.luniko-button","/dashboard":"nav.dashboard","/schedules":"nav.schedules","/meetings":"nav.meetings","/global-search":"nav.global-search","/shopfloor":"nav.dashboard"};function GPe(e){for(const[t,n]of Object.entries(KPe))if(e===t||e.startsWith(t+"/"))return n;return null}function YPe(){const{open:e,setOpen:t,runCommand:n,search:r,setSearch:o,searchHandler:i}=Uh(),a=K_e(),s=$s(),l=X_e(),{sessionId:c,pendingPrompt:h,isCreating:d,startWithPrompt:p,clear:f,markPromptSent:b}=l,y=g.useRef(null),[w,k]=g.useState(!1),x=Ls({select:Ne=>Ne.location.pathname}),S=GPe(x),[I,E]=g.useState("commands"),[C,$]=g.useState(""),[T,P]=g.useState(null),D=g.useCallback(()=>{k(!0),setTimeout(()=>{o(""),t(!1),k(!1),E("commands"),$(""),f()},180)},[o,t,f]),H=g.useCallback(()=>{o(""),E("ask")},[o]),z=g.useCallback(()=>{const Ne=C.trim();Ne&&($(""),p(Ne))},[C,p]),V=g.useCallback(()=>{c&&(D(),s({to:"/luna",search:{sessionId:c}}))},[c,D,s]),J=g.useCallback(()=>{c&&(P(c),D())},[c,D]),F=g.useCallback(()=>
8330{if(!T)return;const Ne=T;P(null),s({to:"/luna",search:{sessionId:Ne}})},[T,s]),G=g.useMemo(()=>Array.from(a.values()).filter(Ne=>!Ne.hidden).sort((Ne,ke)=>(ke.priority??0)-(Ne.priority??0)),[a]),Y=r.trim().length>0,le=g.useMemo(()=>{const Ne=[],ke=[],_t=[],De=[],We=[];for(const ht of G){if(ht.scope&&ht.scope!=="global"){Ne.push(ht);continue}const Io=(ht.group??"").toLowerCase();Io==="help"?(Y||!ht.id.startsWith("help.article."))&&We.push(ht):Io==="navigation"?ke.push(ht):Io==="workspace"?De.push(ht):_t.push(ht)}const ft=[];return Ne.length&&ft.push({heading:"This Page",commands:Ne}),ke.length&&ft.push({heading:"Navigation",commands:ke}),_t.length&&ft.push({heading:"Workspaces",commands:_t}),De.length&&ft.push({heading:"Workspace",commands:De}),We.length&&ft.push({heading:"Help",commands:We}),ft},[G,Y]),W=e&&I==="ask"&&(c!==null||d),_=g.useCallback(Ne=>{if(Ne===iW){H();return}const ke=a.get(Ne);if(ke&&!ke.disabled){o(""),n(ke.id);return}for(const _t of a.values()){const De=_t.children?.find(We=>We.id===Ne);if(De){o(""),n(De.id);return}}},[a,n,o,H]),ne=g.useCallback((Ne,ke)=>{const _t=ke.toLowerCase().split(/\s+/).filter(Boolean),De=Ne.toLowerCase();return _t.every(We=>De.includes(We))?1:0},[]),[U,A]=g.useState(null),[K,Q]=g.useState(!1),[oe,ee]=g.useState(0),ye=g.useRef(null),ve=!e||Y?null:U,ce=g.useMemo(()=>ve?a.get(ve)??null:null,[ve,a]);g.useEffect(()=>()=>{ye.current&&clearTimeout(ye.current)},[]),g.useEffect(()=>{if(!e||Y||I!=="commands")return;function Ne(){const De=document.querySelector("[cmdk-item][data-selected=true]");if(!De)return;const We=De.getAttribute("data-value");if(!We)return;const ft=G.find(ht=>[ht.title,...ht.keywords??[]].join(" ")===We);ft?.children?.length?A(ft.id):A(null)}const ke=new MutationObserver(Ne),_t=document.querySelector("[cmdk-list]");return _t&&ke.observe(_t,{attributes:!0,subtree:!0,attributeFilter:["data-selected"]}),()=>ke.disconnect()},[e,Y,I,G]);const Oe=g.useCallback(Ne=>{ye.current&&clearTimeout(ye.current),Ne.children?.length?ye.current=setTimeout(()=>{A(Ne.id),Q(!1),ee(0)},150):A(null)},[]);g.useEffect(()=>{if(!e)return;function Ne(ke){ke.key==="Escape"&&(ke.preventDefault(),I==="ask"?(E("commands"),$(""),f()):r?o(""):D())}return window.addEventListener("keydown",Ne),()=>window.removeEventListener("keydown",Ne)},[e,D,I,r,o,f]),g.useEffect(()=>{if(!e||Y||I!=="commands")return;function Ne(ke){const _t=ce?.children;if(K&&_t?.length){if(ke.key==="ArrowDown")ke.preventDefault(),ke.stopImmediatePropagation(),ee(De=>Math.min(De+1,_t.length-1));else if(ke.key==="ArrowUp")ke.preventDefault(),ke.stopImmediatePropagation(),ee(De=>Math.max(De-1,0));else if(ke.key==="ArrowLeft")ke.preventDefault(),ke.stopImmediatePropagation(),Q(!1);else if(ke.key==="Enter"){ke.preventDefault(),ke.stopImmediatePropagation();const De=_t[oe];De&&_(De.id)}}else ke.key==="ArrowRight"&&_t?.length&&(ke.preventDefault(),ke.stopImmediatePropagation(),Q(!0),ee(0))}return window.addEventListener("keydown",Ne,{capture:!0}),()=>window.removeEventListener("keydown",Ne,{capture:!0})},[e,Y,I,K,ce,oe,_]),g.useEffect(()=>{e&&requestAnimationFrame(()=>y.current?.focus())},[e,I]);const Ue=u.jsxs("button",{type:"button",onClick:()=>e?D():t(!0),className:X("relative flex h-16 w-16 shrink-0 items-center justify-center rounded-full","transition-all duration-200 hover:scale-110 active:scale-95",!e&&"cmd-glass drop-shadow-[0_0_12px_rgba(234,146,30,0.3)] hover:drop-shadow-[0_0_20px_rgba(234,146,30,0.45)]"),"aria-label":"Open command menu",children:[u.jsx("img",{src:"/luniko_logo_mark.svg",alt:"",className:"relative z-10 w-8 dark:hidden"}),u.jsx("img",{src:"/luniko_logo_mark_dark.svg",alt:"",className:"relative z-10 hidden w-8 dark:block"})]});return u.jsxs(u.Fragment,{children:[!W&&u.jsx("div",{className:"fixed bottom-4 left-4 z-[52]","data-luna-launcher":!0,children:Ue}),T&&u.jsx(qPe,{sessionId:T,onClose:()=>P(null),onOpenInLuna:F}),e&&(I==="ask"?u.jsx(ZPe,{closing:w,inputRef:y,text:C,onTextChange:$,onSubmit:z,onClose:D,sessionId:c,pendingPrompt:h,onInitialPromptSent:b,isCreating:d,onOpenInLuna:V,onPopOut:J}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"fixed inset-0 z-40",onClick:D}),u.jsxs(zn,{className:"fixed bottom-4 left-4 z-50",loop:!0,filter:Y?ne:void 0,children:[u.jsx("div",{className:X("cmd-glass rounded-2xl mb-2.5",w?"cmd-panel-exit":"cmd-panel-enter"),children:u.jsx(zn.List,{className:"max-h-[400px] overflow-y-auto command-palette-scroll",children:Y?u.jsx(QPe,{columns:le,sorted:G,search:r,searchHandler:i,onSelect:_,onClose:D}):u.jsx(JPe,{columns:le,activeCommandId:S,activeParentCmd:ce,activeParent:ve,browseInChildren:K,browseChildIndex:oe,onSelect:_,onHover:Oe,onChildHover:Ne=>{Q(!0),ee(Ne)}})})}),u.jsxs("div",{className:"relative flex h-16 items-center",children:[u.jsx("div",{className:"cmd-glass absolute inset-0 rounded-full"}),u.jsx("div",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 h-12 w-12 rounded-full bg-[--cmd-bleed] blur-md"}),u.jsx("div",{className:"relative w-16 h-16 shrink-0"}),u.jsx(zn.Input,{ref:y,value:r,onValueChange:Ne=>{if(Ne==="?"){H();return}o(Ne)}
8330,placeholder:i?"Type a command, or search — AND / OR":"Type a command or search...",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"relative flex-1 bg-transparent text-sm outline-hidden placeholder:text-muted-foreground/60 ml-2 pr-5"})]})]})]}))]})}function ZPe({closing:e,inputRef:t,text:n,onTextChange:r,onSubmit:o,onClose:i,sessionId:a,pendingPrompt:s,onInitialPromptSent:l,isCreating:c,onOpenInLuna:h,onPopOut:d}){const p=a!==null||c;return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"fixed inset-0 z-40",onClick:i}),u.jsx("div",{className:"fixed bottom-4 left-4 z-50 w-[440px]",children:p?u.jsxs("div",{className:X("cmd-glass rounded-2xl mb-2.5 overflow-hidden",e?"cmd-panel-exit":"cmd-panel-enter"),children:[u.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-black/[0.06] px-4 py-2.5 dark:border-white/[0.1]",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[u.jsx(sc,{className:"h-4 w-4 shrink-0 text-warning"}),u.jsx("span",{className:"truncate text-[13px] font-medium",children:"Ask Luna"})]}),u.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[u.jsx("button",{type:"button",onClick:d,disabled:!a,"aria-label":"Pop out into a floating window",className:"text-muted-foreground hover:text-foreground disabled:opacity-40",children:u.jsx(EY,{className:"h-4 w-4"})}),u.jsxs("button",{type:"button",onClick:h,disabled:!a,className:"flex items-center gap-1 text-xs text-teal hover:underline disabled:opacity-40",children:["Open in Luna",u.jsx(pg,{className:"h-3 w-3"})]})]})]}),u.jsx(k3,{activeSessionId:a,scopeBanner:null,initialPrompt:s,onInitialPromptSent:l,showEmptyState:!1,className:"h-[60vh]",reserveLauncherSlot:!0,onLauncherClick:i})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:X("cmd-glass rounded-2xl mb-2.5",e?"cmd-panel-exit":"cmd-panel-enter"),children:u.jsxs("div",{className:"flex items-start gap-3 p-4",children:[u.jsx(sc,{className:"mt-0.5 h-4 w-4 shrink-0 text-warning"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:"text-[13px] font-medium",children:"Ask Luna"}),u.jsx("div",{className:"mt-0.5 text-xs text-muted-foreground",children:"Enter starts a new chat with your question · Esc goes back"})]})]})}),u.jsxs("div",{className:"relative flex h-16 items-center",children:[u.jsx("div",{className:"cmd-glass absolute inset-0 rounded-full"}),u.jsx("div",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 h-12 w-12 rounded-full bg-[--cmd-bleed] blur-md"}),u.jsx("div",{className:"relative w-16 h-16 shrink-0"}),u.jsx("input",{ref:t,value:n,onChange:f=>r(f.target.value),onKeyDown:f=>{f.key==="Enter"&&(f.preventDefault(),o())},placeholder:"Ask Luna anything…",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"relative flex-1 bg-transparent text-sm outline-hidden placeholder:text-muted-foreground/60 ml-2 pr-5"})]})]})})]})}function JPe({columns:e,activeCommandId:t,activeParentCmd:n,activeParent:r,browseInChildren:o,browseChildIndex:i,onSelect:a,onHover:s,onChildHover:l}){const c=r?e.findIndex(d=>d.commands.some(p=>p.id===r)):-1,h=!!n?.children?.length;return u.jsx("div",{className:"flex",children:e.map((d,p)=>{const f=h&&p===c;return u.jsxs("div",{className:"contents",children:[u.jsx("div",{className:X("w-[220px] py-2",p>0&&"border-l border-black/[0.06] dark:border-white/[0.1]"),children:u.jsx(zn.Group,{heading:d.heading,className:Mk,children:d.commands.map(b=>u.jsx(XPe,{cmd:b,onSelect:a,isActive:b.id===t,onHover:s,isParentActive:b.id===r},b.id))})}),f&&u.jsxs("div",{className:X("w-[220px] py-2 border-l border-black/[0.06] dark:border-white/[0.1]","animate-in fade-in slide-in-from-left-2 duration-150"),children:[u.jsx("div",{className:"px-3 pb-1.5 pt-3 text-[10px] font-semibold uppercase tracking-widest text-teal",children:n.childrenLabel??n.title}),n.children.map((b,y)=>u.jsxs("button",{type:"button",onClick:()=>a(b.id),onMouseEnter:()=>l(y),className:X("h-9 flex w-full items-center gap-3 rounded-lg px-3 text-[13px]","cursor-default select-none outline-hidden relative","hover:bg-black/[0.04] dark:hover:bg-white/[0.06]",o&&y===i&&"bg-black/[0.05] dark:bg-white/[0.08] before:absolute before:left-0 before:top-1/2 before:h-4 before:-translate-y-1/2 before:rounded-r before:border-l-2 before:border-warning"),children:[u.jsx(B$,{className:"h-3.5 w-3.5 shrink-0 text-teal"}),u.jsx("span",{className:"truncate",children:b.title})]},b.id))]})]},d.heading)})})}function QPe({columns:e,sorted:t,search:n,searchHandler:r,onSelect:o,onClose:i}){const[a,s]=g.useState(null),l=g.useCallback(T=>{s(T?{cmd:T,forSearch:n}:null)},[n]),c=a?.forSearch===n?a.cmd:null,h=g.useRef(null),d=g.useRef(null),p=g.useMemo(()=>{const T=[];for(const P of e)for(const D of P.commands)D.children?.length&&T.push(D);return T},[e]),f=g.useMemo(()=>{const T=new Map;for(const P of t){const D=[P.title,...P.keywords??[],...(P.children??[]).flatMap(H=>[H.title,...H.keywords??[]])].join(" ");T.set(D,P)}return T},[t]),b=g.useCallback(T=>{h.current&&clearTimeout(h.current),T.children?.length&&(h.current=setTimeout(()=>l(T),150))},[l]);g.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]),g.useEffect(()=>{const T=d.current;if(!T)return;function P(){const H=T.querySelector("[cmdk-item][data-selected=true]");if(!H)return;const z=H.getAttribute("data-value");if(!z)return;const V=f.get(z);V?.children?.length&&l(V??null)}const D=new MutationObserver(P);return D.observe(T,{attributes:!0,subtree:!0,attributeFilter:["data-selected"]}),()=>D.disconnect()},[f,l]);const[y,w]=g.useState(null),k=g.useCallback(T=>{w(P=>P?{...P,active:T}:null)},[]),x=g.useCallback(T=>{w(P=>{if(!P)return P;const D=typeof T=="function"?T(P.index):T;return{...P,index:D}})},[]),S=g.useMemo(()=>
8330{const T=n.toLowerCase().split(/\s+/).filter(Boolean);return T.length?p.find(P=>{const D=[P.title,...P.keywords??[],...P.children.map(H=>[H.title,...H.keywords??[]].join(" "))].join(" ").toLowerCase();return T.every(H=>D.includes(H))})??null:null},[n,p]),I=c??S,E=y?.parentId===I?.id&&y?.active||!1,C=y?.parentId===I?.id?y?.index??0:0,$=g.useMemo(()=>{if(!I?.children)return[];const T=n.toLowerCase().split(/\s+/).filter(Boolean);return I.children.filter(P=>{const D=[I.title,...I.keywords??[],P.title,...P.keywords??[]].join(" ").toLowerCase();return T.every(H=>D.includes(H))})},[I,n]);return g.useEffect(()=>{function T(P){if(E&&$.length>0){if(P.key==="ArrowDown")P.preventDefault(),P.stopImmediatePropagation(),x(D=>Math.min(D+1,$.length-1));else if(P.key==="ArrowUp")P.preventDefault(),P.stopImmediatePropagation(),x(D=>Math.max(D-1,0));else if(P.key==="ArrowLeft")P.preventDefault(),P.stopImmediatePropagation(),k(!1);else if(P.key==="Enter"){P.preventDefault(),P.stopImmediatePropagation();const D=$[C];D&&o(D.id)}}else P.key==="ArrowRight"&&I?.children?.length&&$.length>0&&(P.preventDefault(),P.stopImmediatePropagation(),w({parentId:I.id,active:!0,index:0}))}return window.addEventListener("keydown",T,{capture:!0}),()=>window.removeEventListener("keydown",T,{capture:!0})},[E,$,C,I,o,k,x]),u.jsxs("div",{className:"flex",children:[u.jsxs("div",{ref:d,className:"w-[280px] py-2",children:[u.jsx(zn.Empty,{className:"py-8 text-center text-sm text-muted-foreground",children:"No commands found."}),r&&u.jsx(zn.Group,{heading:"Search",className:Mk,children:u.jsxs(zn.Item,{value:`Search for: ${n.trim()} search find keyword`,onSelect:()=>{r?.(n.trim()),i()},className:VPe,children:[u.jsx("span",{className:"shrink-0 text-teal",children:u.jsx(Ac,{className:"h-4 w-4"})}),u.jsxs("span",{className:"truncate",children:["Search for: ",n.trim()]})]})}),e.map(T=>u.jsx(zn.Group,{heading:T.heading,className:Mk,children:T.commands.map(P=>u.jsxs(zn.Item,{value:[P.title,...P.keywords??[],...(P.children??[]).flatMap(D=>[D.title,...D.keywords??[]])].join(" "),disabled:P.disabled,onSelect:()=>o(P.id),onMouseEnter:()=>b(P),className:X(LT,P.caption?"h-11":"h-9","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",I?.id===P.id&&"bg-black/[0.04] dark:bg-white/[0.06]"),children:[P.icon&&u.jsx("span",{className:X("shrink-0",P.iconVariant==="orange"?"text-warning":"text-teal"),children:P.icon}),u.jsxs("span",{className:"flex min-w-0 flex-col",children:[u.jsx("span",{className:"truncate",children:P.title}),P.caption&&u.jsx("span",{className:"truncate text-xs text-muted-foreground",children:P.caption})]}),P.children?.length?u.jsx(Ec,{className:"ml-auto h-3 w-3 shrink-0 text-muted-foreground"}):null]},P.id))},T.heading))]}),$.length>0&&I&&u.jsxs("div",{className:"w-[240px] py-2 border-l border-black/[0.06] dark:border-white/[0.1]",children:[u.jsx("div",{className:"px-3 pb-1.5 pt-3 text-[10px] font-semibold uppercase tracking-widest text-teal",children:I.childrenLabel??I.title}),$.map((T,P)=>u.jsxs("button",{type:"button",onClick:()=>o(T.id),onMouseEnter:()=>{I&&w({parentId:I.id,active:!0,index:P})},className:X("h-9 flex w-full items-center gap-3 rounded-lg px-3 text-[13px]","cursor-default select-none outline-hidden relative","hover:bg-black/[0.04] dark:hover:bg-white/[0.06]",E&&P===C&&"bg-black/[0.05] dark:bg-white/[0.08] before:absolute before:left-0 before:top-1/2 before:h-4 before:-translate-y-1/2 before:rounded-r before:border-l-2 before:border-warning"),children:[u.jsx(B$,{className:"h-3.5 w-3.5 shrink-0 text-teal"}),u.jsx("span",{className:"truncate",children:T.title})]},T.id))]})]})}function XPe({cmd:e,onSelect:t,isActive:n,onHover:r,isParentActive:o}){return u.jsxs(zn.Item,{value:[e.title,...e.keywords??[]].join(" "),disabled:e.disabled,onSelect:()=>t(e.id),onMouseEnter:r?()=>r(e):void 0,className:X(LT,e.caption?"h-11":"h-9","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",n&&"bg-black/[0.05] dark:bg-white/[0.08] font-medium",o&&"bg-black/[0.04] dark:bg-white/[0.06]"),children:[e.icon&&u.jsx("span",{className:X("shrink-0",e.iconVariant==="orange"?"text-warning":"text-teal"),children:e.icon}),u.jsxs("span",{className:"flex min-w-0 flex-col",children:[u.jsx("span",{className:"truncate",children:e.title}),e.caption&&u.jsx("span",{className:"truncate text-xs text-muted-foreground",children:e.caption})]}),e.children?.length?u.jsx(Ec,{className:"ml-auto h-3 w-3 shrink-0 text-muted-foreground"}):e.shortcut?u.jsx("kbd",{className:"ml-auto shrink-0 rounded border border-black/[0.06] dark:border-white/[0.08] bg-black/[0.02] dark:bg-white/[0.04] px-1.5 py-0.5 text-[10px] text-muted-foreground
8330/50",children:e.shortcut}):null]})}function eDe(){const{open:e,setOpen:t,runCommand:n}=Uh(),r=g.useCallback(()=>t(!e),[e,t]);return{open:e,setOpen:t,toggle:r,runCommand:n}}function tDe(){const{toggle:e}=eDe();g.useEffect(()=>{function t(n){n.code==="Space"&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),n.stopPropagation(),e())}return window.addEventListener("keydown",t,{capture:!0}),()=>window.removeEventListener("keydown",t,{capture:!0})},[e])}function jk(e){const{register:t}=Uh();g.useEffect(()=>{if(e.length!==0)return t(e)},[t,e])}const It={all:["schedules"],detail:e=>["schedules","detail",e],tasks:e=>["schedules","tasks",e],dependencies:e=>["schedules","dependencies",e],schedulingExplanation:(e,t)=>["schedules","scheduling-explanation",e,t],taskDependencies:(e,t)=>["schedules","dependencies",e,t],taskSearch:(e,t)=>["schedules","task-search",e,t],taskActionItems:(e,t)=>["schedules","task-action-items",e,t],taskRaidEntries:(e,t)=>["schedules","task-raid-entries",e,t],cellHistory:(e,t,n)=>["schedules","cell-history",e,t,n],activityFeed:(e,t)=>["schedules","activity-feed",e,...t],views:e=>["schedules","views",e],taskComments:(e,t,n)=>["schedules","task-comments",e,t,n],scheduleComments:e=>["schedules","schedule-comments",e]};function nDe(){const e=rr();return Ae({queryKey:It.all,queryFn:()=>e.listSchedules(),staleTime:6e4})}function pLe(e){const t=rr();return Ae({queryKey:It.detail(e),queryFn:()=>t.getSchedule(e),enabled:e.length>0,staleTime:3e4})}function fLe(e){const t=rr(),n=ge();return pe({mutationFn:r=>t.updateSchedule(e,r),onSettled:()=>{n.invalidateQueries({queryKey:It.detail(e)}),n.invalidateQueries({queryKey:It.tasks(e)})}})}function gLe(e){const t=rr();return Ae({queryKey:It.tasks(e),queryFn:()=>t.listTasks(e),enabled:e.length>0,staleTime:3e4})}function yLe(e,t){const n=rr();return Ae({queryKey:It.schedulingExplanation(e,t??""),queryFn:()=>n.getSchedulingExplanation(e,t),enabled:t!=null&&t.length>0,staleTime:3e4})}function bLe(e){const t=rr(),n=ge();return pe({mutationFn:({taskId:r,patch:o})=>t.updateTask(e,r,o),onMutate:async({taskId:r,patch:o})=>{await n.cancelQueries({queryKey:It.tasks(e)});const i=n.getQueryData(It.tasks(e));return n.setQueryData(It.tasks(e),a=>a&&{...a,rows:a.rows.map(s=>s.id===r?{...s,...o}:s)}),{previous:i}},onSuccess:r=>{n.setQueryData(It.tasks(e),o=>{if(!o)return o;const i=new Map([r.task,...r.affectedRows].map(a=>[a.id,a]));return{...o,rows:o.rows.map(a=>i.get(a.id)??a)}})},onError:(r,o,i)=>{i?.previous?n.setQueryData(It.tasks(e),i.previous):n.invalidateQueries({queryKey:It.tasks(e)})},onSettled:(r,o,i)=>{i&&(n.invalidateQueries({queryKey:It.schedulingExplanation(e,i.taskId)}),n.invalidateQueries({queryKey:It.taskDependencies(e,i.taskId)}))}})}function wLe(e){const t=rr(),n=ge();return pe({mutationFn:r=>t.createTask(e,r),onSettled:()=>{n.invalidateQueries({queryKey:It.tasks(e)}),n.invalidateQueries({queryKey:It.detail(e)})}})}function vLe(e){const t=rr(),n=ge();return pe({mutationFn:({taskId:r,cascade:o})=>t.deleteTask(e,r,{cascade:o}),onSettled:()=>{n.invalidateQueries({queryKey:It.tasks(e)}),n.invalidateQueries({queryKey:It.detail(e)})}})}function kLe(e,t){const n=rr();return Ae({queryKey:It.taskDependencies(e,t??""),queryFn:()=>n.listTaskDependencies(e,t),enabled:t!=null&&t.length>0,staleTime:3e4})}function xLe(e,t){const n=rr();return Ae({queryKey:It.taskSearch(e,t),queryFn:()=>n.searchTasks(e,t),enabled:t.length>=2,staleTime:1e4})}function _Le(e){const t=rr(),n=ge();return pe({mutationFn:r=>t.createDependency(e,r),onSettled:()=>{n.invalidateQueries({queryKey:It.tasks(e)}),n.invalidateQueries({queryKey:It.dependencies(e)})}})}function SLe(e){const t=rr(),n=ge();return pe({mutationFn:({dependencyId:r,patch:o})=>t.updateDependency(e,r,o),onSettled:()=>{n.invalidateQueries({queryKey:It.tasks(e)}),n.invalidateQueries({queryKey:It.dependencies(e)})}})}function TLe(e){const t=rr(),n=ge();return pe({mutationFn:r=>t.deleteDependency(e,r),onSettled:()=>{n.invalidateQueries({queryKey:It.tasks(e)}),n.invalidateQueries({queryKey:It.dependencies(e)})}})}function ILe(e,t,n){const r=rr();return Ae({queryKey:It.cellHistory(e,t??"",n??""),queryFn:()=>
8330r.getCellHistory(e,t,n),enabled:t!=null&&n!=null&&t.length>0&&n.length>0,staleTime:1e4})}function ELe(e,t){const n=rr();return Ae({queryKey:It.activityFeed(e,t),queryFn:()=>n.getActivityFeed(e,t),enabled:t.length>0,staleTime:15e3})}function ALe(){const e=rr(),t=ge();return pe({mutationFn:n=>e.pollSmartsheet(n),onSettled:(n,r,o)=>{o&&(t.invalidateQueries({queryKey:It.tasks(o)}),t.invalidateQueries({queryKey:It.detail(o)}))}})}const rDe=3e3,oDe=5,TN=5*6e4,iDe=1e3,IN=["pointerdown","pointermove","keydown","wheel","touchstart"],aDe=()=>{const e=globalThis.crypto;return typeof e?.randomUUID=="function"?e.randomUUID():`c-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,12)}`};function sDe(){const{isAuthenticated:e,getAccessTokenSilently:t}=Pe(),n=ge(),[r,o]=g.useState(!1);return g.useEffect(()=>{if(!e)return;let i=!1,a=null,s=0,l=1,c=null,h=Date.now(),d=null,p=!1;const f=T=>{try{const P=new URL(`/live/events/close?c=${encodeURIComponent(T.id)}`,dt.streamSseBaseUrl).toString();fetch(P,{method:"POST",keepalive:!0,headers:{Authorization:`Bearer ${T.token}`,...ZI()}}).catch(()=>{})}catch{}},b=async T=>{const P=await t({authorizationParams:{audience:dt.auth0Audience}}),D=aDe(),H=new URL(`/live/events?c=${encodeURIComponent(D)}`,dt.streamSseBaseUrl).toString(),z={id:D,token:P};c=z;try{const V=await fetch(H,{method:"GET",headers:{Authorization:`Bearer ${P}`,Accept:"text/event-stream",...ZI()},signal:T});if(!V.ok||!V.body)throw new Error(`Presence SSE connection failed (${V.status})`);const J=V.body.getReader(),F=new TextDecoder;let G="";for(;;){const{done:Y,value:le}=await J.read();if(Y)return;G+=F.decode(le,{stream:!0});let W;for(;(W=G.indexOf(`
8331
8332`))!==-1;){const _=G.slice(0,W);G=G.slice(W+2);let ne=null;const U=[];for(const A of _.split(`
8333`))A.startsWith("event: ")?ne=A.slice(7):A.startsWith("data: ")&&U.push(A.slice(6));if(ne===kJ)try{const A=X2.parse(JSON.parse(U.join(`
8334`)));n.setQueryData(dc.list(),A)}catch{}}}}finally{c===z&&(c=null)}},y=async()=>{if(s!==0)return;const T=l++;s=T;const P=new AbortController;a=P;let D=0;for(;!i&&!p&&s===T&&!P.signal.aborted&&document.visibilityState==="visible";)try{await b(P.signal),D=0}catch{if(i||P.signal.aborted||(D+=1,D>oDe))break;await new Promise(H=>setTimeout(H,rDe))}s===T&&(s=0)},w=()=>{s=0;const T=c;c=null,a?.abort(),a=null,T&&f(T)},k=()=>{d!==null&&(clearTimeout(d),d=null)},x=()=>{p||(p=!0,o(!0),k(),w(),n.setQueryData(dc.list(),{items:[]}))},S=()=>{if(k(),i||p||document.visibilityState!=="visible")return;const T=TN-(Date.now()-h);d=setTimeout(()=>{d=null,Date.now()-h>=TN?x():S()},Math.max(0,T))},I=(T=!1)=>{const P=Date.now();!T&&!p&&P-h<iDe||(h=P,p&&(p=!1,o(!1),!i&&document.visibilityState==="visible"&&y()),S())},E=()=>I(),C=()=>{document.visibilityState==="visible"?(I(!0),y()):(k(),w())},$=()=>{k(),w()};document.addEventListener("visibilitychange",C),window.addEventListener("pagehide",$);for(const T of IN)window.addEventListener(T,E,{passive:!0});return window.addEventListener("focus",E,{passive:!0}),document.visibilityState==="visible"&&(y(),S()),()=>{i=!0,k(),document.removeEventListener("visibilitychange",C),window.removeEventListener("pagehide",$);for(const T of IN)window.removeEventListener(T,E);window.removeEventListener("focus",E),w()}},[e,t,n]),{paused:r}}const lDe=kS,cDe=xS,x3=g.forwardRef(({className:e,...t},n)=>u.jsx(ty,{className:X("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));x3.displayName=ty.displayName;const uDe=Ws("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),_3=g.forwardRef(({side:e="right",className:t,children:n,...r},o)=>u.jsxs(cDe,{children:[u.jsx(x3,{}),u.jsxs(ny,{ref:o,className:X(uDe({side:e}),t),...r,children:[n,u.jsxs(TS,{className:"absolute right-4 top-4 roun
8334ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(Fi,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_3.displayName=ny.displayName;const cf=({className:e,...t})=>u.jsx("div",{className:X("flex flex-col space-y-2 text-center sm:text-left",e),...t});cf.displayName="SheetHeader";const uf=g.forwardRef(({className:e,...t},n)=>u.jsx(_S,{ref:n,className:X("text-lg font-semibold text-foreground",e),...t}));uf.displayName=_S.displayName;const df=g.forwardRef(({className:e,...t},n)=>u.jsx(SS,{ref:n,className:X("text-sm text-muted-foreground",e),...t}));df.displayName=SS.displayName;function dDe(e){const{ctx:t,isPending:n}=nW(),r=S_e(e);return r?eW(r,t)?{status:"ready",article:r}:n?{status:"pending"}:{status:"unavailable"}:{status:"unavailable"}}function hDe(){return u.jsx("div",{className:"help-matrix","data-testid":"help-access-matrix",children:Ts.map(e=>{const t=Wne(e);return t.length===0?null:u.jsxs("section",{className:"help-matrix-module",children:[u.jsx("h3",{children:eS[e].label}),u.jsx("div",{className:"help-matrix-scroll",children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{scope:"col",children:"What"}),lh.map(n=>u.jsx("th",{scope:"col",className:"help-matrix-role",children:S3(n)},n)),u.jsx("th",{scope:"col",className:"help-matrix-role",children:"Granted individually"})]})}),u.jsx("tbody",{children:t.map(n=>u.jsx(mDe,{capability:n},n))})]})})]},e)})})}function mDe({capability:e}){const t=X_[e],n=Ez.includes(e);return u.jsxs("tr",{"data-capability":e,children:[u.jsxs("th",{scope:"row",children:[u.jsx("span",{className:"help-matrix-label",children:t.label}),u.jsx("span",{className:"help-matrix-desc",children:t.description})]}),lh.map(r=>u.jsx("td",{className:"help-matrix-cell",children:ga[r].includes(e)?u.jsx(Vr,{"aria-label":`${S3(r)} can`,className:"h-4 w-4"}):u.jsx("span",{"aria-hidden":!0,children:"·"})},r)),u.jsx("td",{className:"help-matrix-cell",children:n?u.jsx(Vr,{"aria-label":"granted one person at a time",className:"h-4 w-4"}):u.jsx("span",{"aria-hidden":!0,children:"·"})})]})}const S3=e=>({viewer:"Viewer",editor:"Editor",admin:"Admin"})[e];function hf(e){if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(hf).join("");if(g.isValidElement(e)){const t=e.props;return hf(t.children)}return""}function EN(e){return e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-")||"section"}const T3="language-luniko-access-matrix",$k="language-luniko-if:",pDe=e=>g.isValidElement(e)&&typeof e.props.className=="string"?e.props.className:null,fDe=e=>{const t=pDe(e);return t!==null&&(t.includes(T3)||t.includes($k))};function gDe(e){const t=e?.indexOf($k);return t===void 0||t<0||!e?null:e.slice(t+$k.length).split(/[,\s]+/).filter(Boolean)}const yDe=e=>e.startsWith("shot:")?e:VW(e);function bDe({src:e,alt:t,slug:n,theme:r}){const[o,i]=g.useState(!1);if(!e||o)return null;const a=e.startsWith("shot:")?`/help-shots/${n}/${e.slice(5)}.${r}.png`:e;return u.jsx("img",{src:a,alt:t??"",className:"help-shot",onError:()=>i(!0)})}function wDe({body:e,slug:t,theme:n,capabilities:r}){const o=g.useMemo(()=>({h2:({children:i,...a})=>u.jsx("h2",{id:EN(hf(i)),...a,children:i}),h3:({children:i,...a})=>u.jsx("h3",{id:EN(hf(i)),...a,children:i}),img:i=>u.jsx(bDe,{...i,slug:t,theme:n}),pre:({children:i,...a})=>{const s=Array.isArray(i)?i[0]:i;return fDe(s)?u.jsx(u.Fragment,{children:i}):u.jsx("pre",{...a,children:i})},code:({className:i,children:a,...s})=>{const l=gDe(i);return l?l.some(c=>r.includes(c))?u.jsx(Dk,{remarkPlugins:[Rk],children:String(a)}):null:i?.includes(T3)?u.jsx(hDe,{}):u.jsx("code",{className:i,...s,children:a})}}),[t,n,r]);return u.jsx("div",{className:"help-prose",children:u.jsx(Dk,{remarkPlugins:[Rk],components:o,urlTransform:yDe,children:e})})}function vDe(e){return pT.map(t=>({key:t.key,label:t.label,articles:e.filter(n=>n.section===t.key)})).filter(t=>t.articles.length>0)}function Lk({slug:e,onClose:t}){const n=e?"Open in help centre":"Browse the help centre";return u.jsxs(ji,{...e?{to:"/help/$",params:{_splat:e}}:{to:"/help"},onClick:t,className:"mt-1 inline-flex w-fit items-center gap-1 text-sm font-medium text-teal hover:underline",children:[n,u.jsx(pg,{className:"h-3.5 w-3.5 shrink-0"})]})}function kDe({onClose:e}){const{unseenCount:t}=J5();return u.jsxs(ji,{to:"/help/whats-new",onClick:e,className:"inline-flex w-fit items-center gap-1.5 text-sm font-medium text-teal hover:underline",children:["What's new in Luniko",t>0?u.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-orange-500/15 px-1.5 py-0.5 text-xs font-medium text-orange-600 dar
8334k:text-orange-400",children:[u.jsx("span",{"aria-hidden":!0,className:"h-1.5 w-1.5 rounded-full bg-orange-500"}),t," new"]}):null,u.jsx(pg,{className:"h-3.5 w-3.5 shrink-0"})]})}function AN({onBack:e}){return u.jsxs("button",{type:"button",onClick:e,className:"-ml-1 inline-flex w-fit items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground",children:[u.jsx(lG,{className:"h-3.5 w-3.5 shrink-0"}),"All help"]})}function xDe({slug:e,from:t,ctx:n,onBack:r,onClose:o}){const{theme:i}=bT(),a=dDe(e);if(a.status!=="ready")return u.jsxs(u.Fragment,{children:[u.jsxs(cf,{className:"gap-1 border-b px-6 py-4 pr-12",children:[t?u.jsx(AN,{onBack:r}):null,u.jsx(uf,{children:"Help"}),u.jsx(df,{className:"sr-only",children:a.status==="pending"?"Loading this article.":"This article is not available."}),u.jsx(Lk,{onClose:o})]}),u.jsx("div",{className:"min-h-0 flex-1 px-6 py-4",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:a.status==="pending"?"Loading…":"This article isn't available to you."})})]});const{article:s}=a;return u.jsxs(u.Fragment,{children:[u.jsxs(cf,{className:"gap-1 border-b px-6 py-4 pr-12",children:[t?u.jsx(AN,{onBack:r}):null,u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:Q5(s.section)}),u.jsx(uf,{children:s.title}),u.jsx(df,{children:s.summary}),u.jsx(Lk,{slug:s.slug,onClose:o})]}),u.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-6 py-4",children:u.jsx(wDe,{body:s.body,slug:s.slug,theme:i,capabilities:n.capabilities})})]})}function CN({article:e,onOpen:t}){return u.jsx("li",{children:u.jsxs("button",{type:"button",onClick:()=>t(e.slug),className:"flex w-full flex-col items-start gap-0.5 rounded-md px-3 py-2 text-left hover:bg-accent",children:[u.jsx("span",{className:"text-sm font-medium",children:e.title}),u.jsx("span",{className:"text-xs text-muted-foreground",children:e.summary})]})})}function _De({list:e,ctx:t,onOpenArticle:n,onClose:r}){const{heading:o,articles:i,grouped:a}=g.useMemo(()=>{const l=e.view==="page"?tW(e.pathname,t):[];return l.length>0?{heading:"Help for this page",articles:l,grouped:!1}:{heading:"Help",articles:fT(t),grouped:!0}},[e,t]),s=g.useMemo(()=>a?vDe(i):[],[a,i]);return u.jsxs(u.Fragment,{children:[u.jsxs(cf,{className:"gap-1 border-b px-6 py-4 pr-12",children:[u.jsx(uf,{children:o}),u.jsx(df,{className:"sr-only",children:"Help articles for this page, and a way into the full help centre."}),u.jsx(Lk,{onClose:r}),u.jsx(kDe,{onClose:r})]}),u.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-6 py-4",children:i.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No help articles here yet."}):a?u.jsx("div",{className:"flex flex-col gap-5",children:s.map(l=>u.jsxs("section",{children:[u.jsx("h3",{className:"px-3 pb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:l.label}),u.jsx("ul",{className:"flex flex-col gap-1",children:l.articles.map(c=>u.jsx(CN,{article:c,onOpen:n},c.slug))})]},l.key))}):u.jsx("ul",{className:"flex flex-col gap-1",children:i.map(l=>u.jsx(CN,{article:l,onOpen:n},l.slug))})})]})}function SDe(){const{isOpen:e,state:t,ctx:n,open:r,back:o,close:i}=gT();return u.jsx(lDe,{open:e,onOpenChange:a=>{a||i()},children:u.jsx(_3,{side:"right",className:"help-surface flex w-full flex-col gap-0 p-0 sm:max-w-md",onOpenAutoFocus:a=>a.preventDefault(),children:t?.view==="article"?u.jsx(xDe,{slug:t.slug,from:t.from,ctx:n,onBack:o,onClose:i}):u.jsx(_De,{list:t??{view:"index"},ctx:n,onOpenArticle:r,onClose:i})})})}function TDe(){const{data:e}=Cn(),t=$s(),{open:n,openForPathname:r}=gT(),o=g.useMemo(()=>e?.capabilities??[],[e]),i=g.useMemo(()=>e?.usableModules??[],[e]);return g.useMemo(()=>{const s=fT({capabilities:o,usableModules:i}).map(c=>({id:`help.article.${c.slug}`,title:c.title,subtitle:c.summary,group:"Help",keywords:[...c.aka,...c.questions,Q5(c.section)],icon:on(sI),run:()=>n(c.slug)}));return[...[{id:"help.for-page",title:"Help for this page",group:"Help",priority:20,keywords:["help","docs","how do i","?"],icon:on(L$),run:()=>r()},{id:"help.open",title:"Open help centre",group:"Help",keywords:["help","docs","documentation","guide","help centre"],icon:on(sI),run:()=>{t({to:"/help"})}}],...s]},[o,i,n,r,t])}function IDe(){const e=TDe();return jk(e),u.jsx(SDe,{})}function EDe(){const e=$s();tDe(),sDe();const t=Ls({select:p=>p.location.pathname}),n=t==="/shopfloor"||t==="/fde-framework",{data:r}=nDe(),{data:o}=Cn(),[i,a]=g.useState(!1),s=o?.capabilities,l=g.useMemo(()=>s??[],[s]),c=g.useMemo(()=>Y_e(p=>{e({to:p.to,search:p.search})},{schedules:r??[],userEmail:o?.email??null,userRoles:[...l],userSheetKeys:o?.sheetKeys??[]}),[e,r,o?.email,l,o?.sheetKeys]);jk(c);const h=l.includes("platform.impersonate"),d=g.useMemo(()=>h?[{id:"impersonation.open",title:"View as…",subtitle:"See the app as another security role",group:"Navigation",keywords:["impersonate","view as","role","demo","restricted"],icon:on(o_),scope:"global",priority:5,run:()=>a(!0)}]:[],[h]);return jk(d),u.jsxs(u.Fragment,{children:[u.jsx(V_e,{}),u.jsx(O_e,{}),!n&&u.jsx(N_e,{}),u.jsx(D_e,{children:u.jsx(zN,{})}),u.jsx(YPe,{}),u.jsx(IDe,{}),u.jsx(F_e,{open:i,onOpenChange:a})]})}function ADe(){return u.jsx(G_e,{children:u.jsx(EDe,{})})}const CDe=({...e})=>{const{theme:t}=bT();return u.jsx(oie,{theme:t,className:"toaster group",icons:{success:u.jsx(X0,{className:"size-4"}),info:u.jsx(e_,{className:"size-4"}),warning:u.jsx(gg,{className:"size-4"}),error:u.jsx(_Y,{className:"size-4"}),loading:u.jsx(Ht,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})};function NDe({children:e}){const[t]=g.useState(()=>new nB({defaultOptions:{queries:{retry:!1,staleTime:3e4}}}));return u.jsx(rB,{client:t,children:e})}const PDe=["/home","/privacy"];function NN({children:e}){return dt.posthogProjectToken?u.jsx(oB,{apiKey:dt.posthogProjectToken,options:{api_host:dt.posthogHost,defaults:"2026-01-30",capture_exceptions:!0,session_recording:{maskAllInputs:!0,maskTextSelector:"*",blockSelector:"img, video, canvas"},debug:!1,loaded:t=>t.register({app_environment:dt.appEnvironment,client_source:"COMMAND_CENTER"})},children:e}):u.jsx(u.Fragment,{children:e})}function DDe(){const e=Ls({select:n=>n.location.pathname});return PDe.includes(e)?u.jsx(NN,{children:u.jsx(zN,{})}):u.jsx(NN,{children:u.jsx(Aie,{children:u.jsxs(NDe,{children:[u.jsx(Cie,{children:u.jsx(Iie,{children:u.jsx(ADe,{})})}),u.jsx(CDe,{})]})})})}function ODe(){return null}function RDe(){return null}function MDe(){const e=$s(),{data:t,isLoading:n}=Cn();return g.useEffect(()=>{if(n)return;const r=Jme(t?.capabilities??[],t?.landingDefaults?.defaultScreen);e({to:r,replace:!0})},[n,t,e]),null}const jDe=Ws("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),$De=Ws("absolute inset-0 rounded-full border-current opacity-15",{variants:{size:{sm:"border-[2px]",md:"border-[2.5px]",lg:"border-[3px]"}},defaultVariants:{size:"md"}}),LDe=Ws("absolute inset-0 rounded-full border-transparent border-t-current animate-spin",{variants:{size:{sm:"border-[2px]",md:"border-[2.5px]",lg:"border-[3px]"}},defaultVariants:{size:"md"}});function zDe({size:e,label:t,className:n,labelClassName:r,...o}){return u.jsxs("div",{"data-slot":"spinner",className:X("flex items-center justify-center gap-2.5 text-teal",t&&"text-muted-foreground",n),...o,children:[u.jsxs("div",{role:"status","aria-label":t??"Loading",className:X(jDe({size:e}),t?"text-teal":""),children:[u.jsx("div",{className:$De({size:e})}),u.jsx("div",{className:LDe({size:e})})]}),t&&u.jsx("span",{className:X("text-sm font-medium",r),children:t})]})}function UDe(){return u.jsx("div",{className:"flex h-full w-full items-center justify-center py-24",children:u.jsx(zDe,{size:"lg"})})}function ma(e){return e.trim().toLowerCase().replace(/\s+/g," ")}const FDe=/notetaker|fathom|otter|fireflies|read\.ai|\bfellow\b|\(unverified\)|transcriber|recording/i;function WDe(e){return FDe.test(e)}function BDe(e){const t=e.indexOf("@");return t>0?e.slice(0,t):e}const HDe={"[email protected]":"Susan Shaffer","[email protected]":"Michael Jacobs"};function qDe(e,t){return e?t.byEmail(e)?.email??e:null}function CLe(e,t,n){const r=new Map,o=new Map,i=new Set;for(const a of e){const s=qDe(a.email&&a.email.trim().toLowerCase()||null,n),l=a.name&&a.name.trim(),c=l||(s?HDe[s]:void 0)||(s?n.byEmail(s)?.name:void 0)||(s?BDe(s):"Unknown"),h=s??"name:"+ma(c);
8334if(r.has(h)){const d=r.get(h);if(d.invited=!0,l&&!i.has(h)){d.name=l,i.add(h);const p=ma(l);o.has(p)||o.set(p,h)}}else{r.set(h,{key:h,name:c,email:s,invited:!0,joined:!1}),l&&i.add(h);const d=ma(c);o.has(d)||o.set(d,h)}}for(const a of t){const s=a.name?.trim();if(!s||WDe(s))continue;const l=n.byName(ma(s)),c=l?.email?l.email.toLowerCase():null,h=l?.name??s,d=c??"name:"+ma(h);if(r.has(d)){const f=r.get(d);f.joined=!0,!f.email&&c&&(f.email=c);continue}const p=o.get(ma(h));if(p&&r.has(p)){const f=r.get(p);f.joined=!0,!f.email&&c&&(f.email=c);continue}r.set(d,{key:d,name:h,email:c,invited:!1,joined:!0})}return Array.from(r.values()).sort((a,s)=>a.joined!==s.joined?a.joined?-1:1:a.name.localeCompare(s.name))}const I3=e=>e.kind==="action",NLe={recorded:"past meetings",live:"live meetings",upcoming:"upcoming meetings",action:"action items"},PLe=e=>{switch(e.kind){case"recorded":return"bg-teal-secondary";case"live":return"bg-muted ring-1 ring-destructive/60";case"upcoming":return"bg-muted";case"action":return"bg-sky-500/10 ring-1 ring-sky-400/50";default:return e}},DLe=e=>{switch(e.kind){case"recorded":return"recorded";case"live":return"live";case"upcoming":return`upcoming, note-taker ${e.notetaker.state==="joining"||e.notetaker.state==="joiningViaOther"?"joining":"not joining"}`;case"action":return`action item, ${ly(e.source.status)}`;default:return e}},mf=e=>{switch(e.kind){case"recorded":case"live":case"upcoming":return!1;case"action":return e.done;default:return e}},OLe=e=>{switch(e.kind){case"recorded":return`/meetings/${e.transcriptId}`;case"live":return`/meetings/live/${e.meetingId}`;case"upcoming":return e.providerEventId?`/meetings/prep/${e.providerEventId}`:null;case"action":return`/action-logs?focus=${encodeURIComponent(e.actionItemId)}`;default:return e}},RLe=e=>{switch(e.kind){case"recorded":case"live":case"action":return!0;case"upcoming":return!1;default:return e}},MLe=e=>{switch(e.kind){case"action":return"Open action item";case"recorded":case"live":case"upcoming":return"Open meeting";default:return e}},jLe=e=>{switch(e.kind){case"action":return{kind:"action",id:e.actionItemId};case"recorded":case"live":case"upcoming":return null;default:return e}},zT=30,Ed=e=>{if(!e)return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},VDe={SUBMITTED:"submitted",IN_REVIEW:"inReview",NONE:"notStarted"},KDe=e=>{const t=Ed(e.dateString);if(!t)return null;const n=e.duration&&e.duration>0?e.duration:zT;return{kind:"recorded",key:`recorded:${e.transcriptId}`,transcriptId:e.transcriptId,title:e.title,start:t,end:IS(t,n),isAllDay:!1,isCancelled:!1,record:VDe[e.status],source:e}},GDe=(e,t)=>{const n=Ed(e.transcriptStartedAt)??Ed(e.startTime)??t;return{kind:"live",key:`live:${e.meetingId}`,meetingId:e.meetingId,title:e.title,start:n,end:t>n?t:n,isAllDay:!1,isCancelled:!1,source:e}},YDe=(e,t)=>{const n=Ed(e.startTime);if(!n)return null;const r=Ed(e.endTime);return{kind:"upcoming",key:`upcoming:${e.dedupKey??e.icalUid??`event-${t}`}`,title:e.title??"(No title)",start:n,end:r&&r>n?r:IS(n,zT),isAllDay:e.isAllDay,isCancelled:e.isCancelled,stableOccurrenceId:e.stableOccurrenceId,notetaker:e.notetaker,providerEventId:e.providerEventId,joinUrl:e.joinUrl,source:e}},ZDe=e=>e.done||e.status==="COMPLETED",JDe=e=>{if(!e.dueDate)return null;const t=pc(e.dueDate,"yyyy-MM-dd",new Date);if(Number.isNaN(t.getTime()))return null;const n=ZDe(e),r=e.dueTime?pc(`${e.dueDate} ${e.dueTime}`,"yyyy-MM-dd HH:mm",new Date):null,o=!r||Number.isNaN(r.getTime()),i=o?t:r;return{kind:"action",key:`action:${e.id}`,actionItemId:e.id,done:n,title:e.taskName?.trim()||"Untitled action item",start:i,end:o?$c(t,1):IS(i,zT),isAllDay:o,isCancelled:!1,source:e}},QDe=300*1e3,PN=e=>e.trim().toLowerCase().replace(/\s+/g," "),DN=(e,t)=>PN(e.title)===PN(t.title)&&Math.abs(e.start.getTime()-t.start.getTime())<=QDe,XDe=(e,t,n,r,o=[])=>{const i=new Set(e.map(l=>l.kind==="recorded"?l.transcriptId:"")),a=t.filter(l=>l.kind==="live"&&!i.has(l.meetingId)),s=n.filter(l=>l.end>r&&!a.some(c=>DN(c,l))&&!e.some(c=>DN(c,l)));return[...e,...a,...s,...o].sort((l,c)=>l.start.getTime()-c.start.getTime())},eOe=(e,t)=>
8334e.filter(n=>Av(n.start,t)),Rw=3,tOe=e=>[...e].sort((t,n)=>Number(mf(t))-Number(mf(n))),$Le=(e,t)=>{if(t==="count")return{shown:[],hidden:e.length};const n=tOe(e);return t==="full"||n.length<=Rw?{shown:n,hidden:0}:{shown:n.slice(0,Rw-1),hidden:n.length-(Rw-1)}};function LLe(e,t){if(!e)return"";const n=t==="submitted"?e.actionSubmitted:e.actionShortlisted,r=t==="submitted"?e.raidSubmitted:e.raidShortlisted;return`${String(n)} action item${n===1?"":"s"}, ${String(r)} RAID entr${r===1?"y":"ies"}`}const nOe=(e,t)=>{if(e.kind==="recorded"){if(e.source.participantPersonIds.includes(t.id))return!0;const n=t.email?t.email.toLowerCase():null;return n===null?!1:e.source.normalizedParticipants.some(r=>r.emails.some(o=>o.toLowerCase()===n))}return e.kind==="live"?e.source.participantPersonIds?.includes(t.id)??!0:!0},zLe=(e,t,n=null)=>{if(t.length===0)return[...e];const r=t.some(o=>o.id!==n);return e.filter(o=>I3(o)?!0:r&&o.kind!=="recorded"?!1:t.every(i=>nOe(o,i)))},rOe=["attended","missed","accepted","tentative","noResponse"],ULe={attended:"Attended",missed:"Missed",accepted:"Accepted",tentative:"Tentative",noResponse:"No response"},ON=["attended","missed"],oOe=(e,t)=>{const n=e.source.meetingAttendance;if(n.length===0)return null;const r=t.email?t.email.toLowerCase():null,o=t.name?ma(t.name):null;return n.some(i=>r!==null&&i.email?.toLowerCase()===r||o!==null&&i.name!==null&&ma(i.name)===o)},iOe=(e,t)=>{const n=t.email?t.email.toLowerCase():null;return n===null?null:e.source.invitees.find(o=>o.email.toLowerCase()===n)?.response??null},FLe=(e,t,n)=>{const r=t.filter(i=>ON.includes(i)),o=t.filter(i=>!ON.includes(i));return r.length===0&&o.length===0?[...e]:e.filter(i=>{if(i.kind==="recorded"&&r.length>0){const a=oOe(i,n);return a===null?!0:r.includes(a?"attended":"missed")}if(i.kind==="upcoming"&&o.length>0){const a=iOe(i,n);return a===null?!0:a==="none"?o.includes("noResponse"):o.some(s=>s===a)}return!0})},WLe=(e,t,n)=>t.length===0?[...e]:e.filter(r=>{const o=r.kind==="recorded"?r.source.accessOrgIds:r.kind==="upcoming"?r.source.orgIds:void 0;return!o||o.length===0?!0:o.some(i=>i!==n&&t.includes(i))}),BLe=(e,t,n)=>{const r=e.recorded.map(KDe).filter(s=>s!==null),o=e.live.map(s=>GDe(s,n)),i=e.upcoming.map((s,l)=>YDe(s,l)).filter(s=>s!==null),a=t.map(s=>JDe(s)).filter(s=>s!==null);return XDe(r,o,i,n,a)},E3=(e,t)=>e.start.getTime()-t.start.getTime(),aOe=(e,t)=>{const n=Number(mf(e))-Number(mf(t));if(n!==0)return n;const r=Number(e.isAllDay)-Number(t.isAllDay);return r!==0?r:!e.isAllDay&&e.start.getTime()!==t.start.getTime()?E3(e,t):e.title.localeCompare(t.title)},sOe=(e,t)=>t.map(n=>{const r=eOe(e,n);return{day:n,meetings:r.filter(o=>!I3(o)).sort(E3),actions:r.filter(o=>o.kind==="action").sort(aOe)}}),HLe=(e,t)=>{const n={meetings:[],actions:[]};for(const r of sOe(e,t))r.meetings.length>0&&n.meetings.push({day:r.day,items:r.meetings}),r.actions.length>0&&n.actions.push({day:r.day,items:r.actions});return n},lOe=v({mode:R(["day","workWeek","week","month"]).optional().catch(void 0),allDay:R(["count","full"]).optional().catch(void 0),view:R(["agenda"]).optional().catch(void 0),group:R(["type"]).optional().catch(void 0),layout:R(["list"]).optional().catch(void 0),person:N(m()).optional().catch(void 0),me:N(R(rOe)).optional().catch(void 0),customer:N(m()).optional().catch(void 0),saved:N(m()).optional().catch(void 0),date:m().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),profile:m().optional(),meetings:R(["hide"]).optional().catch(void 0),actions:R(["hide"]).optional().catch(void 0),actionDestination:N(R(et)).optional().catch(void 0),actionTag:N(R(wt)).optional().catch(void 0),actionPbiTag:N(R(fr)).optional().catch(void 0),actionStatus:N(R(xg)).optional().catch(void 0)}),RN=[{from:"#1a3a4d",to:"#0a1f2c"},{from:"#2d1b3d",to:"#0f0a1f"},{from:"#3d2a18",to:"#1f1408"},{from:"#0d3a2c",to:"#031a13"},{from:"#2a1d3d",to:"#0e0820"},{from:"#3d180d",to:"#1f0a05"},{from:"#1c2d3f",to:"#0b1722"},{from:"#2c2a3f",to:"#15131e"}];function A3(e){let t=5381;for(let n=0;n<e.length;n+=1)t=(t<<5)+t+e.charCodeAt(n)>>>0;return t}function cOe(e){return RN[A3(e)%RN.length]}
8334function uOe(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"?":t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]}${t[t.length-1][0]}`.toUpperCase()}function Mw(e){const t=e.trim()||"Unknown";return{name:t,initials:uOe(t),hue:A3(t)%360,role:""}}function dOe(e){if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime(),r=Math.round(n/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const o=Math.round(r/60);if(o<24)return`${o}h ago`;const i=Math.round(o/24);if(i===1)return"Yesterday";if(i<7)return`${i}d ago`;const a=Math.round(i/7);if(a<5)return`${a}w ago`;const s=Math.round(i/30);return s<12?`${s}mo ago`:`${Math.round(i/365)}y ago`}function hOe(e){if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=new Date,r=t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate(),o=new Date(n);o.setDate(n.getDate()-1);const i=t.getFullYear()===o.getFullYear()&&t.getMonth()===o.getMonth()&&t.getDate()===o.getDate(),a=t.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});return r?`Today · ${a}`:i?`Yesterday · ${a}`:`${t.toLocaleDateString([],{weekday:"short"})} · ${a}`}function mOe(e){if(e==null||e<=0)return"";const t=Math.round(e);if(t<60)return`${t} min`;const n=Math.floor(t/60),r=t%60;return r===0?`${n}h`:`${n}h ${r}m`}function pOe(e){const t=gne(e);return{org:t,kind:t==="Internal"?"Meeting":"Client"}}function qLe(e){const t=(e.normalizedParticipants??[]).map(h=>Mw(h.fullName)),{org:n,kind:r}=pOe(e.billingAccountKey??null),o=cOe(e.transcriptId),i=e.summary?.keywords??[],a=i.length>0?i.slice(0,6).join(" · "):e.title,s=e.user?.name?.trim(),l=s?Mw(s):t[0]??Mw("—"),c={t:"00:00",quote:e.title,who:l};return{id:e.transcriptId,title:e.title,org:n,kind:r,when:dOe(e.dateString),dateLong:hOe(e.dateString),sortDate:e.dateString??null,duration:mOe(e.duration),participants:t,attendees:(e.meetingAttendees??[]).map(h=>({name:h.name??null,email:h.email??null})),attendance:(e.meetingAttendance??[]).map(h=>({name:h.name??null,joinTime:h.joinTime??null,leaveTime:h.leaveTime??null})),thumb:o,videoUrl:e.videoUrl?e.videoUrl.toString():null,posterUrl:e.posterUrl?e.posterUrl.toString():null,status:e.status??"NONE",grants:e.grants??[],participantPersonIds:e.participantPersonIds??[],restrictToGrants:e.restrictToGrants??!1,grantsMarkedBy:e.grantsMarkedBy??null,detectedRisks:e.detectedRisks??[],keywords:i,aiShort:a,lunaGeneratedSummary:e.lunaGeneratedSummary??null,hotMoment:c,stats:e.meetingItemStats?{actions:e.meetingItemStats.actionTotal,raids:e.meetingItemStats.raidTotal}:void 0}}function pf(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function C3(e){if(!e)return"";let t;if(typeof e=="string"){const i=pf(e);
8334if(!i)return"";t=i}else{const i=new Date(e);if(Number.isNaN(i.getTime()))return"";t=new Date(i.getFullYear(),i.getMonth(),i.getDate())}const n=new Date,r=i=>new Date(i.getFullYear(),i.getMonth(),i.getDate()).getTime(),o=Math.round((t.getTime()-r(n))/864e5);return o===0?"Today":o===-1?"Yesterday":o===1?"Tomorrow":o>1&&o<7?t.toLocaleDateString("en-US",{weekday:"long"}):o<-1&&o>-7?t.toLocaleDateString("en-US",{weekday:"long"}):t.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function fOe(e){const t=pf(e);return t?new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999).toISOString():""}function VLe(e){return{id:`${e.id}:created`,raidId:e.id,type:e.type,potentialImpact:e.potentialImpact,title:e.title||"Untitled",detail:e.detail,actionNotes:e.actionNotes,dueDate:e.dueDate,responsibleDoer:e.responsibleDoer,authority:e.authority,supportHelper:e.supportHelper,informed:e.informed,meetingOrg:"Created",meetingWhen:C3(e.createdAt),momentDate:e.createdAt?e.createdAt.toISOString():"",destination:e.destination,meetingTrigger:e.meetingTrigger,projectAreaTags:e.projectAreaTags,tags:e.tags,pbiTags:e.pbiTags,tigerTeam:e.tigerTeam,documentUrl:e.documentUrl,lastEditedAt:e.lastEditedAt}}function KLe(e){return e.actualDateCompleted?{id:`${e.id}:finished`,raidId:e.id,type:e.type,potentialImpact:e.potentialImpact,title:e.title||"Untitled",detail:e.detail,actionNotes:e.actionNotes,dueDate:e.dueDate,responsibleDoer:e.responsibleDoer,authority:e.authority,supportHelper:e.supportHelper,informed:e.informed,meetingOrg:"Completed",meetingWhen:C3(e.actualDateCompleted),momentDate:fOe(e.actualDateCompleted),destination:e.destination,meetingTrigger:e.meetingTrigger,projectAreaTags:e.projectAreaTags,tags:e.tags,pbiTags:e.pbiTags,tigerTeam:e.tigerTeam,documentUrl:e.documentUrl,lastEditedAt:e.lastEditedAt}:null}function gOe(e){return e.preset!=="all"}function yOe(e){return gOe(e.date)||e.organizations.length>0||e.internalOnly}function GLe(e,t=new Date){const n=new Date(t.getFullYear(),t.getMonth(),t.getDate());switch(e.preset){case"all":return{};case"today":return{since:n};case"this_week":{const r=new Date(n);return r.setDate(n.getDate()-t.getDay()),{since:r}}case"this_month":return{since:new Date(t.getFullYear(),t.getMonth(),1)};case"last_30_days":{const r=new Date(n);return r.setDate(n.getDate()-30),{since:r}}case"custom":{if(!e.from)return{};const r=new Date(e.from.getFullYear(),e.from.getMonth(),e.from.getDate()),o=e.to?new Date(e.to.getFullYear(),e.to.getMonth(),e.to.getDate(),23,59,59,999):void 0;return{since:r,until:o}}}}const MN=m().regex(/^\d{4}-\d{2}-\d{2}$/),bOe=v({show:R(["all","meetings","raid","clips"]).default("all").catch("all"),preset:R(["all","today","this_week","this_month","last_30_days","custom"]).default("all"),from:MN.optional(),to:MN.optional(),orgs:N(R(Eg)).optional(),internalOnly:te().optional(),participation:R(M2).default("all").catch("all"),personId:m().optional(),meeting:m().optional(),raid:m().optional(),comments:te().optional()});function wOe(e){return{date:{preset:e.preset,from:e.from?pf(e.from)??void 0:void 0,to:e.to?pf(e.to)??void 0:void 0},organizations:e.orgs??[],internalOnly:e.internalOnly??!1}}function YLe(e){return yOe(wOe(e))||e.participation!=="all"}const He=iB({component:DDe,notFoundComponent:RDe}),vOe=Ke({getParentRoute:()=>He,path:"/meetings",component:ct(()=>tt(()=>import("./MeetingsPage-BZANfPTi.js"),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])))}),kOe=Ke({getParentRoute:()=>He,path:"/calendar",component:ct(()=>tt(()=>import("./CalendarPage-BlVOCzCf.js"),__vite__mapDeps([42,1,43,10,7,8,17,18,19,44,21,22,23,24,45,35,28,20,46,12,47,48,49,50,6,26,27,32,33,25,51,52,53,54,55,56,57,37,29,41]))),validateSearch:e=>lOe.parse(e)}),xOe=Ke({getParentRoute:()=>He,path:"/pulse",component:ct(()=>tt(()=>import("./PulsePage-CkaB8v4q.js"),__vite__mapDeps([58,1,59,17,18,19,60,61,62,63,64,65,66,67,20,7,68,53,14,5,6,8,69,9,10,11,70,13,15,16,71,40,72,57,37,41,29]))),val
8334idateSearch:e=>bOe.parse(e)}),_Oe=Ke({getParentRoute:()=>He,path:"/notifications",component:ct(()=>tt(()=>import("./NotificationsPage-Dz6XxGXi.js"),__vite__mapDeps([73,1,41,29]))),validateSearch:e=>v({batch:m().optional().catch(void 0)}).parse(e)}),SOe=Ke({getParentRoute:()=>He,path:"/library",component:ct(()=>tt(()=>import("./LibraryPage-XrWF0OPC.js"),__vite__mapDeps([74,1,10,7,37,44,40,11,53,41,29])))}),TOe=Ke({getParentRoute:()=>He,path:"/bookmarks",beforeLoad:()=>{throw _c({to:"/library",replace:!0})}}),IOe=Ke({getParentRoute:()=>He,path:"/tags",beforeLoad:()=>{throw _c({to:"/library",replace:!0})}}),EOe=Ke({getParentRoute:()=>He,path:"/home",component:ct(()=>tt(()=>import("./LandingPage-3GRQSCZ5.js"),__vite__mapDeps([75,1,29,41])))}),AOe=Ke({getParentRoute:()=>He,path:"/",component:MDe}),COe=Ke({getParentRoute:()=>He,path:"/callback",component:ODe}),NOe=v({t:Fn().nonnegative().optional(),tab:R(["transcript","actions","raid","mind-maps","notes"]).optional(),redaction:m().optional()}),POe=Ke({getParentRoute:()=>He,path:"/meetings/$meetingId",component:ct(()=>tt(()=>import("./MeetingPage-D6np6tOy.js"),__vite__mapDeps([76,1,77,78,33,12,79,21,22,23,24,7,80,8,81,51,82,14,70,83,84,66,67,20,85,34,56,86,3,4,87,88,89,90,65,91,92,39,61,62,60,11,27,37,13,15,16,93,41,35,94,5,6,9,10,17,18,19,31,32,95,96,97,98,29]))),validateSearch:e=>NOe.parse(e)}),DOe=v({redaction:m().optional()}),OOe=Ke({getParentRoute:()=>He,path:"/meetings/live/$meetingId",component:ct(()=>tt(()=>import("./LiveMeetingPage-M_NhHxnB.js"),__vite__mapDeps([99,1,20,96,32,33,52,100,101,102,79,21,22,23,24,7,80,8,54,29,30,86,53,103,104,85,81,105,106,68,107,108,12,82,5,6,44,69,14,109,110,111,93,72,49,112,113,114,115,116,117,118,61,62,60,119,66,67,88,78,120,94,25,64,121,47,89,90,65,91,92,39,71,15,36,27,122,48,41]))),validateSearch:e=>DOe.parse(e)}),ROe=Ke({getParentRoute:()=>He,path:"/meetings/$meetingId/send-summary",component:ct(()=>tt(()=>import("./SendSummaryPage-DJLiuTxT.js"),__vite__mapDeps([123,1,97,88,37,20,98,41,29])))}),MOe=Ke({getParentRoute:()=>He,path:"/meetings/prep/$eventId",component:ct(()=>tt(()=>import("./MeetingPrepPage--YvGmyL5.js"),__vite__mapDeps([124,1,90,67,65,66,20,7,91,12,92,39,33,125,86,50,60,8,37,48,41,29])))}),jOe=Ke({getParentRoute:()=>He,path:"/automations",beforeLoad:()=>{throw _c({to:"/calendar"})}}),$Oe=Ke({getParentRoute:()=>He,path:"/automations/$automationId/brief",component:ct(()=>tt(()=>import("./DailyBriefPage-bbLu7T7O.js"),__vite__mapDeps([126,1,37,127,128,24,41,29])))}),LOe=Ke({getParentRoute:()=>He,path:"/luniko-button",component:ct(()=>tt(()=>import("./LunikoButtonPage-C9d9_tEt.js"),__vite__mapDeps([129,1,29,50,48,122,37,41])))}),zOe=Ke({getParentRoute:()=>He,path:"/users",component:ct(()=>tt(()=>import("./UsersPage-DNFdl9hH.js"),__vite__mapDeps([130,1,78,131,132,93,64,113,70,133,128,45,22,77,29,23,80,134,81,37,41])))}),UOe=v({area:R(["people","billing","usage","deleted","redactions","modules","danger"]).optional(),personId:m().optional(),session:m().optional()}),FOe=Ke({getParentRoute:()=>He,path:"/help",component:ct(()=>tt(()=>import("./HelpPage-CrajCtck.js"),__vite__mapDeps([135,1,37,136,41,29])))}),WOe=Ke({getParentRoute:()=>He,path:"/help/whats-new",component:ct(()=>tt(()=>import("./HelpWhatsNewPage-DozmKn4b.js"),__vite__mapDeps([137,1,81,136,41,29])))}),BOe=Ke({getParentRoute:()=>He,path:"/help/corner",component:ct(()=>tt(()=>import("./HelpCornerPage-BClYU5TS.js"),__vite__mapDeps([138,1,37,33,139,133,128,45,22,136,41,29,140]))),validateSearch:e=>v({doc:m().optional()}).parse(e)}),HOe=Ke({getParentRoute:()=>He,path:"/help/$",component:ct(()=>tt(()=>import("./HelpPage-CrajCtck.js"),__vite__mapDeps([135,1,37,136,41,29])))}),qOe=Ke({getParentRoute:()=>He,path:"/admin",component:ct(()=>tt(()=>import("./AdminConsolePage-DZ7SniiV.js"),__vite__mapDeps([141,1,77,139,50,20,95,12,80,127,34,41,29,33,19,37,142]))),validateSearch:e=>UOe.parse(e)}),VOe=Ke({getParentRoute:()=>He,path:"/organization",beforeLoad:()=>{throw _c({to:"/admin"})}}),KOe=Ke({getParentRoute:()=>He,path:"/scratch-pad",beforeLoad:()=>{throw _c({to:"/scratch-pad/note"})}}),GOe=Ke({getParentRoute:()=>He,path:"/scratch-pad/note",component:ct(()=>tt(()=>import("./NotesPage-w-OPzmy-.js"),__vite__mapDeps([143,1,90,67,65,66,20,7,91,12,92,39,144,145,53,86,37,146,147,41,29])))}),YOe=Ke({getParentRoute:()=>He,path:"/scratch-pad/note/$noteId",component:ct(()=>tt(()=>import("./NotesPage-w-OPzmy-.js"),__vite__mapDeps([143,1,90,67,65,66,20,7,91,12,92,39,144,145,53,86,37,146,147,41,29])))}),ZOe=Ke({getParentRoute:()=>He,path:"/scratch-pad/map",component:ct(()=>tt(()=>import("./MindMapPage-DR_Nv4OW.js"),__vite__mapDeps([148,1,145,53,91,12,66,67,20,86,144,37,149,120,21,22,23,24,105,106,68,107,81,94,25,64,29,88,150,151,146,125,80,104,85,71,16,112,78,54,152,100,101,102,79,7,8,30,103,108,82,5,6,44,69,14,87,41,153,43,92,154])))}),JOe=Ke({getParentRoute:()=>He,path:"/scratch-pad/map/$mapId",component:ct(()=>tt(()=>import("./MindMapPage-DR_Nv4OW.js"),__vite__mapDeps([148,1,145,53,91,12,66,67,20,86,144,37,149,120,21,22,23,24,105,106,68,107,81,94,25,64,29,88,150,151,146,125,80,104,85,71,16,112,78,54,152,100,101,102,79,7,8,30,103,108,82,5,6,44,69,14,87,41,153,43,92,154])))}),QOe=Ke({getParentRoute:()=>He,path:"/profile",component:ct(()=>tt(()=>import("./UserProfilePage-CbIldG38.js"),__vite__mapDeps([155,1,77,37,41,29])))}),XOe=v({tab:R(["create-actions","triage-actions","triage-raids"]).optional()}),eRe=Ke({getParentRoute:()=>He,path:"/command-center",component:ct(()=>tt(()=>
8334import("./CommandCenterPage-DpbtRWaZ.js"),__vite__mapDeps([156,1,117,113,157,78,20,131,132,93,64,70,158,152,54,100,101,102,79,21,22,23,24,7,80,8,29,30,86,53,103,104,85,81,105,106,68,107,108,12,82,5,6,44,69,14,66,67,87,88,37,109,110,111,72,49,112,114,115,116,159,13,15,16,51,118,61,62,60,160,119,41]))),validateSearch:e=>XOe.parse(e)}),tRe=Ke({getParentRoute:()=>He,path:"/global-search",component:ct(()=>tt(()=>import("./GlobalSearchPage-Bib6uk2m.js"),__vite__mapDeps([161,1,20,35,98,117,113,157,78,131,132,93,64,70,158,37,41,29])))}),nRe=Ke({getParentRoute:()=>He,path:"/schedules",component:ct(()=>tt(()=>import("./SchedulesPage-BW5w81Ii.js"),__vite__mapDeps([162,1,37,4,41,29])))}),rRe=Ke({getParentRoute:()=>He,path:"/schedules/$scheduleId",component:ct(()=>tt(()=>import("./SchedulePage-4ocvpHBJ.js"),__vite__mapDeps([163,1,164,165,12,21,22,23,24,81,111,93,72,30,49,112,18,4,46,37,79,7,80,8,101,115,116,105,106,68,107,64,166,25,167,83,33,41,35,29,92,63,61,62,60,65,66,67,20,94,128,134,78,48,5,6,168])))}),oRe=Ke({getParentRoute:()=>He,path:"/dashboard",component:ct(()=>tt(()=>import("./DashboardPage-fhLCiDDA.js"),__vite__mapDeps([169,1,37,102,79,21,22,23,24,7,80,8,54,29,30,86,53,144,47,71,121,117,113,159,105,106,68,107,81,104,85,110,103,101,111,93,12,72,49,112,82,5,6,69,14,114,13,15,16,170,171,132,64,158,70,142,39,164,55,51,152,100,108,44,66,67,20,87,88,172,17,18,19,59,60,61,62,63,65,9,10,11,38,31,32,33,28,149,91,120,94,25,150,151,146,125,78,41,153,154,160,173,118,90,92,147,96,48,167,84,50,174])))}),iRe=v({destination:m().optional(),responsibleDoer:m().optional(),focus:m().optional()}),aRe=Ke({getParentRoute:()=>He,path:"/action-logs",component:ct(()=>tt(()=>import("./ActionLogsPage-DEcK7-G9.js"),__vite__mapDeps([175,1,176,117,113,109,101,110,102,79,21,22,23,24,7,80,8,54,29,30,86,53,103,111,93,12,72,49,112,82,5,6,105,106,68,107,81,69,14,114,115,116,157,78,20,131,132,64,70,158,159,104,85,13,15,16,165,87,170,171,142,39,164,51,41]))),validateSearch:e=>iRe.parse(e)}),sRe=v({destination:m().optional(),focus:m().optional()}),lRe=Ke({getParentRoute:()=>He,path:"/raid-logs",component:ct(()=>tt(()=>import("./RaidLogsPage-CZ_pZVbX.js"),__vite__mapDeps([177,1,176,117,113,157,78,20,131,132,93,64,70,158,109,101,110,102,79,21,22,23,24,7,80,8,54,29,30,86,53,103,111,12,72,49,112,82,5,6,105,106,68,107,81,69,14,114,115,116,160,165,87,173,118,61,62,108,60,171,88,66,67,39,164,11,51,41]))),validateSearch:e=>sRe.parse(e)}),cRe=v({tab:R(["risks-issues","decisions-not-made"]).optional()}),uRe=Ke({getParentRoute:()=>He,path:"/raid-analytics",component:ct(()=>tt(()=>import("./RaidAnalyticsPage-Baxf8quZ.js"),__vite__mapDeps([178,1,78,165,164,62,41,101,103,166,64,60,106,68,107,51,29]))),validateSearch:e=>cRe.parse(e)}),dRe=Ke({getParentRoute:()=>He,path:"/review-meetings",component:ct(()=>tt(()=>import("./ReviewMeetingsPage-DwkBC-Cq.js"),__vite__mapDeps([179,1,152,54,100,101,102,79,21,22,23,24,7,80,8,29,30,86,53,103,104,85,81,105,106,68,107,108,12,82,5,6,44,69,14,66,67,20,87,88,117,113,157,78,131,132,93,64,70,158,37,41])))}),hRe=Ke({getParentRoute:()=>He,path:"/shopfloor",component:ct(()=>tt(()=>import("./ShopfloorDashboardPage-veJXmCcR.js"),__vite__mapDeps([180,1,41,29])))}),mRe=Ke({getParentRoute:()=>He,path:"/fde-framework",component:ct(()=>tt(()=>import("./FdeFrameworkPage-Bt18Bcg5.js"),__vite__mapDeps([181,1,41,29])))}),pRe=Ke({getParentRoute:()=>He,path:"/privacy",component:ct(()=>tt(()=>import("./PrivacyPolicyPage-Diyc5InL.js"),__vite__mapDeps([182,1,41,29])))}),fRe=v({prompt:m().optional(),sessionId:m().optional()}),gRe=Ke({getParentRoute:()=>He,path:"/luna",component:ct(()=>tt(()=>import("./AgentPage-D3heN58b.js"),__vite__mapDeps([183,1,53,172,41,29]))),val
8334idateSearch:e=>fRe.parse(e)}),yRe=Ke({getParentRoute:()=>He,path:"/s/$entityType/$entityId",beforeLoad:({params:e})=>{if(e.entityType==="meeting")throw _c({to:"/meetings/$meetingId",params:{meetingId:e.entityId},replace:!0})},component:ct(()=>tt(()=>import("./SharedEntityPage-LKbgo_c2.js"),__vite__mapDeps([184,1,50,41,29])))}),bRe=He.addChildren([yRe,AOe,EOe,COe,oRe,vOe,kOe,xOe,_Oe,SOe,TOe,IOe,POe,ROe,OOe,MOe,jOe,$Oe,LOe,zOe,qOe,VOe,KOe,GOe,YOe,ZOe,JOe,QOe,eRe,tRe,nRe,rRe,aRe,lRe,uRe,dRe,hRe,gRe,mRe,pRe,FOe,WOe,BOe,HOe]),wRe=aB({routeTree:bRe,defaultPreload:"intent",defaultPendingComponent:UDe});function vRe(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:o,onRegistered:i,onRegisteredSW:a,onRegisterError:s}=e;let l,c,h;const d=async(f=!0)=>{await c,h?.()};async function p(){if("serviceWorker"in navigator){if(l=await tt(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:f}},[]).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{s?.(f)}),!l)return;h=()=>{l?.messageSkipWaiting()};{let f=!1;const b=()=>{f=!0,l?.addEventListener("controlling",y=>{y.isUpdate&&(n?n():window.location.reload())}),r?.()};l.addEventListener("installed",y=>{typeof y.isUpdate>"u"?typeof y.isExternal<"u"&&y.isExternal?b():!f&&o?.():y.isUpdate||o?.()}),l.addEventListener("waiting",b)}l.register({immediate:t}).then(f=>{a?a("/sw.js",f):i?.(f)}).catch(f=>{s?.(f)})}}return c=p(),d}function kRe(e={}){const{immediate:t=!0,onNeedReload:n,onNeedRefresh:r,onOfflineReady:o,onRegistered:i,onRegisteredSW:a,onRegisterError:s}=e,[l,c]=g.useState(!1),[h,d]=g.useState(!1),[p]=g.useState(()=>vRe({immediate:t,onNeedReload:n,onOfflineReady(){d(!0),o?.()},onNeedRefresh(){c(!0),r?.()},onRegistered:i,onRegisteredSW:a,onRegisterError:s}));return{needRefresh:[l,c],offlineReady:[h,d],updateServiceWorker:p}}const ap=new Set,zk=new Set;function ZLe(e,t){if(ap.has(e)!==t){t?ap.add(e):ap.delete(e);for(const n of zk)n()}}function xRe(e){return zk.add(e),()=>{zk.delete(e)}}function jN(){return ap.size>0}function _Re(){return g.useSyncExternalStore(xRe,jN,jN)}const SRe=6e4;function TRe(){const[e,t]=g.useState(),n=_Re(),{needRefresh:[r],updateServiceWorker:o}=kRe({onRegisteredSW(i,a){t(a)}});return g.useEffect(()=>{if(!e)return;const i=setInterval(()=>{e.update()},SRe);return()=>clearInterval(i)},[e]),g.useEffect(()=>{if(!r||n)return;const i=()=>{document.visibilityState==="hidden"&&o(!0)};return i(),document.addEventListener("visibilitychange",i),()=>document.removeEventListener("visibilitychange",i)},[r,n,o]),r?u.jsxs("div",{role:"status",className:"bg-popover text-popover-foreground animate-in fade-in slide-in-from-top-4 fixed top-16 left-1/2 z-50 flex max-w-[calc(100vw-2rem)] -translate-x-1/2 items-center gap-3 rounded-full border py-2 pr-2 pl-3 shadow-xl duration-300",children:[u.jsx("span",{className:"bg-primary/10 text-primary flex size-9 shrink-0 items-center justify-center rounded-full",children:u.jsx(q$,{className:"size-4.5"})}),u.jsxs("div",{className:"min-w-0 pr-1",children:[u.jsx("p",{className:"text-sm leading-tight font-medium",children:"A new version of Luniko is available"}),u.jsx("p",{className:"text-muted-foreground truncate text-xs leading-tight",children:n?"Save your work first — reloading discards unsaved changes.":"Reload whenever you’re ready."})]}),u.jsx(Ve,{size:"sm",className:"h-9 shrink-0 rounded-full px-4",onClick:()=>o(!0),children:"Reload"})]}):null}try{window.localStorage.removeItem("luniko-scratch-pad:v1")}catch{}sB.createRoot(document.getElementById("root")).render(u.jsxs(g.StrictMode,{children:[u.jsx(lB,{router:wRe}),u.jsx(TRe,{})]}));function IRe(){const e=document.getElementById("app-loader");e&&(e.classList.add("hide"),e.addEventListener("transitionend",()=>e.remove()))}requestAnimationFrame(()=>requestAnimationFrame(IRe));export{Fp as $,wa as A,vd as B,Ui as C,Ble as D,va as E,Vr as F,$he as G,Ah as H,gk as I,S$e as J,T$e as K,vG as L,Eu as M,fi as N,Ht as O,Js as P,uu as Q,RY as R,Ope as S,lve as T,r_ as U,j2e as V,Q0 as W,Fi as X,Er as Y,A4 as Z,E4 as _,X as a,lI as a$,R$e as a0,O$e as a1,D$e as a2,Lc as a3,S4 as a4,I3 as a5,OLe as a6,NLe as a7,RLe as a8,i2e as a9,MG as aA,A$e as aB,C$e as aC,E$e as aD,Ybe as aE,Gbe as aF,Z6 as aG,tl as aH,X$e as aI,t2e as aJ,e2e as aK,n2e as aL,r2e as aM,dd as aN,zbe as aO,Y$e as aP,V$e as aQ,G$e as aR,NG as aS,Wp as aT,pc as aU,Z$e as aV,IS as aW,m$e as aX,G2e as aY,kY as aZ,swe as a_,l2e as aa,j$ as ab,mf as ac,qo as ad,Jse as ae,Qse as af,Je as ag,Ie as ah,Xse as ai,ele as aj,kU as ak,nle as al,lle as am,rle as an,dle as ao,hle as ap,go as aq,ule as ar,ale as as,sle as at,ile as au,Zo as av,ole as aw,tle as ax,cle as ay,Ec as az,Qs as b,jA as b$,o8 as b0,K$e as b1,W$ as b2,MLe as b3,V$ as b4,gg as b5,lMe as b6,C2 as b7,LS as b8,l_ as b9,Da as bA,$c as bB,jLe as bC,PLe as bD,DLe as bE,eOe as bF,Av as bG,$Le as bH,za as bI,Ua as bJ,Zs as bK,Fa as bL,jc as bM,Y6 as bN,yo as bO,wo as bP,bo as bQ,vo as bR,dn as bS,_h as bT,L2e as bU,$2e as bV,M2e as bW,R2e as bX,Afe as bY,Cfe as bZ,Q$e as b_,Ep as ba,$$e as bb,q$e as bc,Lbe as bd,Rbe as be,G6 as bf,jbe as bg,zn as bh,BG as bi,mme as bj,pme as bk,uc as bl,x2e as bm,KMe as bn,ZDe as bo,NY as bp,Hu as bq,Pfe as br,o2e as bs,a2e as bt,Kbe as bu,J$e as bv,uh as bw,Fz as bx,mY as by,LLe as bz,_e as c,Ac as c$,Ds as c0,Mje as c1,$$ as c2,rOe as c3,ULe as c4,kme as c5,sY as c6,xg as c7,ly as c8,nQ as c9,uf as cA,LRe as cB,w2e as cC,Pe as cD,DPe as cE,PPe as cF,X0 as cG,pf as cH,$S as cI,Hi as cJ,r7 as cK,nMe as cL,cc as cM,sh as cN,YLe as cO,WY as cP,wOe as cQ,c$e as cR,Nwe as cS,Mwe as cT,l$e as cU,gMe as cV,yMe as cW,WJ as cX,j_ as cY,lc as cZ,jS as c_,et as ca,wt as cb,fr as cc,tQ as cd,TY as ce,G$ as cf,Kme as cg,qF as ch,ype as ci,W$e as cj,J6 as ck,Mbe as cl,sOe as cm,HLe as cn,_g as co,Bi as cp,zLe as cq,FLe as cr,WLe as cs,Hn as ct,vje as cu,Kr as cv,BLe as cw,s$e as cx,lDe as cy,_3 as cz,Xs as d,D2e as d$,zDe as d0,aLe as d1,cf as d2,df as d3,bT as d4,Ku as d5,Ws as d6,die as d7,k2e as d8,dhe as d9,Oje as dA,vme as dB,UF as dC,wme as dD,ume as dE,dme as dF,T2e as dG,C2e as dH,A2e as dI,E2e as dJ,Bg as dK,L$ as dL,TG as dM,O2e as dN,U$e as dO,x_ as dP,x$e as dQ,fY as dR,k7 as dS,sMe as dT,F2e as dU,W2e as dV,iMe as dW,$Re as dX,z2e as dY,U2e as dZ,YMe as d_,Tme as da,zr as db,L$e as dc,qs as dd,or as de,Pje as df,e_ as dg,e8 as dh,vce as di,ofe as dj,$_ as dk,Toe as dl,gc as dm,aie as dn,X2e as dp,zF as dq,H$ as dr,S2e as ds,v2e as dt,Cc as du,uo as dv,I2e as dw,j$e as dx,fme as dy,Kpe as dz,jl as e,bje as e$,lG as e0,P2e as e1,xje as e2,N2e as e3,kje as e4,Eje as e5,iY as e6,jF as e7,ma as e8,WDe as e9,dt as eA,zG as eB,Swe as eC,Q2e as eD,Y2e as eE,g$e as eF,P$e as eG,tt as eH,tLe as eI,eLe as eJ,_je as eK,s2e as eL,gje as eM,Ph as eN,tne as eO,y$e as eP,wje as eQ,Br as eR,Dje as eS,Rje as eT,PS as eU,ah as eV,p_ as eW,MZ as eX,jZ as eY,Vo as eZ,oLe as e_,Coe as ea,cd as eb,q$ as ec,MS as ed,vg as ee,lme as ef,Gpe as eg,KY as eh,fg as ei,dG as ej,ud as ek,n8 as el,LY as em,tS as en,dc as eo,tMe as ep,Ioe as eq,_2e as er,GMe as es,yG as et,Tre as eu,KSe as ev,qMe as ew,VMe as ex,f$e as ey,b$e as ez,$l as f,v6 as f$,yje as f0,FMe as f1,w$e as f2,iLe as f3,en as f4,B$e as f5,IMe as f6,TMe as f7,z$ as f8,zRe as f9,M as fA,qRe as fB,AZ as fC,HRe as fD,BRe as fE,IZ as fF,WRe as fG,pg as fH,Ut as fI,nW as fJ,fT as fK,vDe as fL,X5 as fM,eW as fN,BMe as fO,Sz as fP,WMe as fQ,FG as fR,Tje as fS,n$e as fT,r$e as fU,dh as fV,o$e as fW,Bne as fX,Sje as fY,Twe as fZ,t$e as f_,SSe as fa,ESe as fb,Nje as fc,N_ as fd,_Me as fe,Aje as ff,wMe as fg,H_e as fh,kMe as fi,lQ as fj,vMe as fk,sQ as fl,B_e as fm,xMe as fn,Is as fo,SMe as fp,yce as fq,Cje as fr,GG as fs,UJ as ft,dDe as fu,Q5 as fv,wDe as fw,EN as fx,sLe as fy,J5 as fz,Ll as g,SLe as g$,k6 as g0,dre as g1,U_e as g2,o_ as g3,i$e as g4,hie as g5,mie as g6,a$e as g7,q_e as g8,W_e as g9,Hje as gA,lh as gB,J7 as gC,Vje as gD,Fne as gE,cLe as gF,Bje as gG,J0 as gH,J2e as gI,p$e as gJ,nLe as gK,rLe as gL,pje as gM,HMe as gN,cMe as gO,Vs as gP,eY as gQ,JMe as gR,nDe as gS,pLe as gT,fLe as gU,on as gV,jk as gW,kLe as gX,yLe as gY,xLe as gZ,_Le as g_,Ije as ga,cje as gb,Kje as gc,Gje as gd,Yje as ge,Qje as gf,Xje as gg,qje as gh,uLe as gi,lLe as gj,dLe as gk,tL as gl,ga as gm,jje as gn,e$e as go,Wje as gp,$je as gq,Soe as gr,rMe as gs,R_e as gt,Lje as gu,zje as gv,Uje as gw,Fje as gx,Zje as gy,Jje as gz,Cn as h,jMe as h$,TLe as h0,ILe as h1,vLe as h2,It as h3,VRe as h4,hme as h5,z$e as h6,aje as h7,MF as h8,ELe as h9,mwe as hA,zMe as hB,tje as hC,OMe as hD,E
8334Me as hE,LZ as hF,nje as hG,DMe as hH,NMe as hI,YJ as hJ,mje as hK,Cme as hL,fL as hM,HY as hN,md as hO,XJ as hP,VJ as hQ,Ame as hR,bMe as hS,dje as hT,hje as hU,PMe as hV,RMe as hW,VQ as hX,sc as hY,B2e as hZ,MMe as h_,rje as ha,UMe as hb,rr as hc,gLe as hd,ALe as he,wLe as hf,bLe as hg,cZ as hh,EY as hi,k3 as hj,CLe as hk,Mw as hl,bOe as hm,oje as hn,Go as ho,fMe as hp,U$ as hq,n_ as hr,F$ as hs,bwe as ht,Yo as hu,c2e as hv,u2e as hw,uwe as hx,d2e as hy,ywe as hz,gne as i,N4 as i$,eje as i0,GLe as i1,Iee as i2,qLe as i3,VLe as i4,KLe as i5,yOe as i6,Eg as i7,zt as i8,Q6 as i9,qg as iA,NE as iB,Yz as iC,z4 as iD,ije as iE,$r as iF,sje as iG,jRe as iH,fje as iI,h$e as iJ,m2e as iK,vwe as iL,p2e as iM,g2e as iN,y2e as iO,h2e as iP,ZLe as iQ,xwe as iR,d$e as iS,f2e as iT,b2e as iU,q2e as iV,V2e as iW,K2e as iX,tee as iY,nee as iZ,C4 as i_,XMe as ia,LMe as ib,aMe as ic,ZI as id,uMe as ie,pMe as ig,yJ as ih,vJ as ii,mMe as ij,dMe as ik,hMe as il,v$e as im,k$e as io,lje as ip,ZMe as iq,B$ as ir,hLe as is,F$e as it,HPe as iu,$F as iv,LF as iw,JRe as ix,vt as iy,aS as iz,sI as j,wce as j0,pde as j1,mc as j2,kce as j3,T4 as j4,$Me as j5,QMe as j6,Ewe as j7,u$e as j8,To as j9,Sie as jA,Rwe as jB,H2e as jC,I$e as jD,Vi as jE,Z2e as jF,lv as jG,bm as jH,pr as jI,mLe as jJ,tr as ja,En as jb,uU as jc,dU as jd,Yg as je,FRe as jf,URe as jg,R$ as jh,Lhe as ji,AMe as jj,CMe as jk,VZ as jl,ZRe as jm,QRe as jn,uje as jo,KRe as jp,GRe as jq,YRe as jr,zZ as js,eMe as jt,XRe as ju,KQ as jv,fF as jw,Cr as jx,H$e as jy,Obe as jz,_ie as k,DS as l,m7 as m,Hle as n,Ve as o,qle as p,Vle as q,Kle as r,oMe as s,rt as t,Efe as u,_$e as v,yg as w,Th as x,Ih as y,Eh as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.