spell 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README-epics.md +60 -20
  2. package/app/package.json +1 -1
  3. package/app/spaces/@spell/guides/SpellUI/SpellUI.spellml +486 -486
  4. package/app/spaces/@spell/sites/SpellApp/SpellApp.spellml +50 -124
  5. package/dist/app/app/pages/SiteBoardView.css +5 -5
  6. package/dist/app/app/pages/SiteBoardView.js +1 -1
  7. package/dist/app/app/pages/SiteEditorPage.js +6 -3
  8. package/dist/app/app/pages/SiteEdits.js +27 -10
  9. package/dist/app/app/pages/SiteWrites.js +11 -0
  10. package/dist/app/app/runner/spellRuntime.js +1 -0
  11. package/dist/epic/cli/EpicProgram.js +15 -6
  12. package/dist/epic/cli/epicGroups.js +5 -0
  13. package/dist/epic/command/BaseBranch.js +1 -1
  14. package/dist/epic/command/PullRequest.d.ts +45 -0
  15. package/dist/epic/command/PullRequest.js +100 -0
  16. package/dist/epic/command/RepoInit.d.ts +96 -47
  17. package/dist/epic/command/RepoInit.js +222 -96
  18. package/dist/epic/command/Requests.js +2 -1
  19. package/dist/epic/command/Worktrees.d.ts +5 -3
  20. package/dist/epic/command/Worktrees.js +9 -8
  21. package/dist/epic/components/__pack/epics.entry.js +43 -43
  22. package/dist/epic/components/__pack/epics.pack.js +2 -2
  23. package/dist/epic/config/CodeHost.d.ts +96 -0
  24. package/dist/epic/config/CodeHost.js +89 -0
  25. package/dist/epic/config/EpicConfig.d.ts +9 -2
  26. package/dist/epic/config/EpicConfig.js +16 -0
  27. package/dist/epic/config/EpicRepo.js +1 -1
  28. package/dist/epic/config/GitHub.d.ts +34 -2
  29. package/dist/epic/config/GitHub.js +36 -7
  30. package/dist/epic/config/GitLab.d.ts +138 -0
  31. package/dist/epic/config/GitLab.js +297 -0
  32. package/dist/epic/tool/PlanCommits.d.ts +7 -4
  33. package/dist/epic/tool/PlanCommits.js +7 -5
  34. package/dist/epic/tool/PlanDocCommands.js +3 -4
  35. package/dist/epic/tool/PlanDocFiles.d.ts +3 -1
  36. package/dist/epic/tool/PlanDocFiles.js +10 -3
  37. package/dist/parser/core/classes/View.d.ts +20 -0
  38. package/dist/parser/core/classes/View.js +91 -17
  39. package/dist/parser/core/core.declarations.json5 +18 -0
  40. package/dist/parser/core/core.scopes.js +5 -0
  41. package/dist/parser/core/sites.d.ts +10 -0
  42. package/dist/parser/core/sites.js +12 -0
  43. package/dist/parser/parser/tokenizer/Tokenizer.d.ts +9 -1
  44. package/dist/parser/parser/tokenizer/Tokenizer.js +43 -5
  45. package/dist/parser/parser/tokenizer/Tokens.d.ts +4 -0
  46. package/dist/parser/parser/tokenizer/Tokens.js +4 -0
  47. package/dist/parser/parser/tokenizer/tokenizer.types.d.ts +5 -0
  48. package/dist/parser/parser/tokenizer/tokenizer.types.js +2 -0
  49. package/dist/parser/py/core/spell_core/apps.py +2 -0
  50. package/dist/parser/spell/PARSING.md +21 -0
  51. package/dist/parser/spell/SpellParser.d.ts +2 -0
  52. package/dist/parser/spell/SpellParser.js +58 -3
  53. package/dist/parser/spell/SpellxTokenizer.js +2 -1
  54. package/dist/parser/spell/SpellxTwin.d.ts +4 -1
  55. package/dist/parser/spell/SpellxTwin.js +10 -3
  56. package/dist/parser/spell/builtinTypes.js +24 -1
  57. package/dist/parser/spell/ingest/PlaceIngest.js +3 -1
  58. package/dist/parser/spell/languages/Language.d.ts +11 -2
  59. package/dist/parser/spell/languages/en/words.js +3 -2
  60. package/dist/parser/spell/languages/es/words.js +7 -4
  61. package/dist/parser/spell/rules/Statement.js +1 -1
  62. package/dist/parser/spell/rules/classes/DrawSlot.js +6 -1
  63. package/dist/parser/spell/rules/sites/SitePage.d.ts +3 -3
  64. package/dist/parser/spell/rules/sites/SitePage.js +2 -2
  65. package/dist/parser/spell/rules/sites/sites.en.js +1 -1
  66. package/dist/parser/spell/rules/sites/sites.es.js +1 -1
  67. package/dist/parser/spell/rules/sites/sites.shared.d.ts +2 -2
  68. package/dist/parser/spell/spell.types.d.ts +7 -0
  69. package/dist/parser/spell/spellSyntax.es.json +6 -6
  70. package/dist/parser/spell/spellSyntax.json +6 -6
  71. package/dist/parser/spellx/SpellxView.js +2 -1
  72. package/dist/ui/components/ui-parts/UIHeader.d.ts +12 -2
  73. package/dist/ui/components/ui-parts/UIHeader.en.d.ts +5 -2
  74. package/dist/ui/components/ui-parts/UIHeader.en.js +6 -3
  75. package/dist/ui/components/ui-parts/UIHeader.js +45 -5
  76. package/dist/ui/components/ui-parts/UIParts.css +18 -0
  77. package/dist/ui/components/ui-parts/UIParts.css.inline.js +1 -1
  78. package/dist/ui/jsx.d.ts +4 -4
  79. package/dist/ui/vocabulary/defaults.generated.js +1 -1
  80. package/dist/util/spell/constants.js +1 -1
  81. package/epic/.claude-plugin/plugin.json +1 -1
  82. package/epic/.codex-plugin/plugin.json +1 -1
  83. package/epic/package.json +1 -1
  84. package/epic/skills/epic/SKILL.md +2 -2
  85. package/epic/skills/epic/guide.md +2 -3
  86. package/epic/skills/isolate/SKILL.md +25 -27
  87. package/epic/src/AGENTS.md +5 -0
  88. package/epic/vscode/package.json +1 -1
  89. package/epic/vscode/spell-epic.vsix +0 -0
  90. package/package.json +1 -1
  91. package/parser/package.json +1 -1
  92. package/ui/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /* GENERATED -- do not edit: `spell pack build epics`. sources: d5bd10e7045feff8 */
1
+ /* GENERATED -- do not edit: `spell pack build epics`. sources: 940215f1d85ee3ee */
2
2
  (function(e,t,n,r,i){var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,__esmMin=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__exportAll=(e,t)=>{let n={};for(var r in e)o(n,r,{get:e[r],enumerable:!0});return t||o(n,Symbol.toStringTag,{value:`Module`}),n},__copyProps=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e},__toESM=(e,t,n)=>(n=e==null?{}:a(l(e)),__copyProps(t||!e||!e.__esModule||!u.call(e,`default`)?o(n,`default`,{value:e,enumerable:!0}):n,e)),d={"epic-actions":{folder:`epic-actions`,attributes:[`head-row`]},"epic-agents":{folder:`epic-agents`,skeleton:{parts:[{shape:`header`},{shape:`paragraph`,lines:2}]},attributes:[`draws`]},"epic-answer":{folder:`epic-answer`,attributes:[`id`,`title`]},"epic-aside":{folder:`epic-aside`,attributes:[`title`]},"epic-ask":{folder:`epic-ask`,skeleton:{height:`6em`},attributes:[`name`,`multiple`,`select-all`,`filter`,`more-details`]},"epic-away-line":{folder:`epic-away-line`,attributes:[`line`,`working`,`heading`]},"epic-card":{folder:`epic-list`,skeleton:{parts:[{shape:`header`},{shape:`paragraph`,lines:2}]},attributes:[`epic`,`phases`,`updated`,`urgent`,`future`,`standing`,`running`,`active`,`worked`,`saga`,`saga-title`,`saga-purpose`,`favorite`,`away`]},"epic-cards":{folder:`epic-cards`,skeleton:{height:`2em`},attributes:[`saga`]},"epic-change":{folder:`epic-change`,attributes:[`id`,`item`,`at`,`answer`,`was`,`accepted`]},"epic-choice-row":{folder:`epic-choice-rows`,attributes:[`name`,`file`,`line`,`purpose`,`note`,`current`,`recommended`]},"epic-choice-rows":{folder:`epic-choice-rows`,skeleton:{height:`8em`},attributes:[`stacked`,`no-file`,`blank`,`noun`,`reorder`]},"epic-choices":{folder:`epic-choices`,attributes:[`chosen`,`multiple`,`fixed`,`closed`,`standing`,`title`,`chosen-on`,`chosen-note`]},"epic-choices-bar":{folder:`epic-choices-bar`,skeleton:{height:`3em`},attributes:[]},"epic-code":{folder:`epic-code`,attributes:[`title`,`language`,`open`]},"epic-comment-pane":{folder:`epic-comment-pane`,attributes:[`headline`,`about`,`saved`,`failed`,`deletable`,`near`]},"epic-commit":{folder:`epic-commit`,attributes:[`sha`,`repo`,`at`,`refs`]},"epic-event":{folder:`epic-event`,attributes:[`at`,`icon`]},"epic-field":{folder:`epic-phase`,attributes:[`name`,`accepted`,`label`,`open`]},"epic-focus":{folder:`epic-focus`,attributes:[`for`]},"epic-hidden-note":{folder:`epic-state-filter`,skeleton:{display:`inline`,width:`8em`,height:`1em`},attributes:[`count`]},"epic-item":{folder:`epic-item`,attributes:`id.title.status.state.handled.taken-in.changed.phase.answered.reviewed.review-as.deferred.queued.work.working.limit.bedtime.overnight.calm.requested.urgent.fixed.failed.prepared.source.part-ids.commits.to-accept.to-see.open`.split(`.`)},"epic-link":{folder:`epic-link`,attributes:[`saga`,`epic`,`item`,`phase`]},"epic-list":{folder:`epic-list`,skeleton:{height:`8em`},attributes:[`sagas`,`no-favorites`]},"epic-mark":{folder:`epic-mark`,attributes:[`item`,`link`]},"epic-more":{folder:`epic-answer`,attributes:[]},"epic-net-effect":{folder:`epic-net-effect`,attributes:[`option`,`recommended`]},"epic-new-item":{folder:`epic-new-item`,skeleton:{display:`inline`,width:`1em`,height:`1em`},attributes:[`open`,`adds`,`near`,`editing`]},"epic-note":{folder:`epic-note`,attributes:[`state`,`title`]},"epic-option":{folder:`epic-choices`,attributes:[`letter`,`title`,`recommended`,`by`,`edited`,`removed`,`picked-on`,`selected`,`done`,`badge`,`badge-color`,`state-icon`,`state-color`,`state-label`]},"epic-option-form":{folder:`epic-option-form`,skeleton:{height:`4em`},attributes:[`heading`,`option-title`,`note`,`shot`,`for`,`submit`]},"epic-original":{folder:`epic-original`,attributes:[]},"epic-overview":{folder:`epic-overview`,attributes:[`id`,`estimate`,`open`]},"epic-page":{folder:`epic-page`,skeleton:{parts:[{shape:`header`},{shape:`paragraph`,lines:4}]},attributes:[`epic`,`kind`,`title`,`branch`,`worktree`,`started`,`updated`,`future`,`standing`,`stage`,`saga`,`bedtime`,`away-read`,`away-seen`,`recent-since`,`repo`,`reviewing`]},"epic-page-note-head":{folder:`epic-page-note-head`,attributes:[`at`,`status`,`replies`,`preview`,`open`]},"epic-phase":{folder:`epic-phase`,attributes:[`id`,`number`,`title`,`status`,`estimate`,`took`,`span`,`source`,`part-ids`,`commits`,`to-accept`,`to-see`,`choices-open`,`plan`,`done-at`,`changes`,`open`]},"epic-prompt":{folder:`epic-prompt`,attributes:[]},"epic-question":{folder:`epic-question`,attributes:[]},"epic-reply":{folder:`epic-answer`,attributes:[`from`,`agent`,`at`,`re`]},"epic-review":{folder:`epic-review`,skeleton:{display:`inline`,width:`6em`,height:`1.5em`},attributes:[`of`,`shows`,`buttons`,`label`,`tip`,`under-line`]},"epic-run":{folder:`epic-run`,skeleton:{height:`4em`},attributes:[`run`]},"epic-run-row":{folder:`epic-run-row`,attributes:[`row`,`columns`,`answer`,`answer-label`,`taken`]},"epic-section":{folder:`epic-section`,attributes:[`id`,`kind`,`title`,`source`,`part-ids`,`waiting`,`lines`,`to-accept`,`to-see`,`open`]},"epic-send":{folder:`epic-send`,skeleton:{display:`inline`,width:`12em`,height:`2em`},attributes:[]},"epic-send-buttons":{folder:`epic-send-buttons`,skeleton:{display:`inline`,width:`4em`,height:`1.6em`},attributes:[`state`,`send-tip`,`count`,`busy`,`asks`,`working`,`working-on`,`countdown`]},"epic-sort":{folder:`epic-list`,skeleton:{display:`inline`,width:`6em`,height:`1.5em`},attributes:[]},"epic-stage-button":{folder:`epic-review`,skeleton:{display:`inline`,width:`8em`,height:`1.6em`},attributes:[`stage`,`open`]},"epic-state-filter":{folder:`epic-state-filter`,skeleton:{display:`inline`,width:`4em`,height:`1.2em`},attributes:[`counts`,`marked`,`phases`,`shown`]},"epic-status":{folder:`epic-status`,attributes:[`state`,`at`,`done-at`,`from`,`agent`]},"epic-summary":{folder:`epic-summary`,attributes:[]},"epic-text-box":{folder:`epic-text-box`,skeleton:{height:`2em`},attributes:[`type`,`for`,`placeholder`,`label`,`max-height`]},"epic-thread":{folder:`epic-thread`,attributes:[`comment`,`open`,`unseen`,`moved`,`boxed`,`saved`,`failed`]},"epic-thread-message":{folder:`epic-thread`,attributes:[`by`,`person`,`agent`,`mine`,`at`,`stamp`,`older`,`latest`]},"epic-threads":{folder:`epic-thread`,attributes:[]},"epic-update":{folder:`epic-update`,attributes:[`id`,`at`,`summary`,`phase`,`seen`]},"epic-updated":{folder:`epic-phase`,attributes:[`at`,`phase`,`of`]},"epic-version":{folder:`epic-original`,attributes:[`as-of`]}},f,p,m,__knownSymbol,__typeError,__defNormalProp,__name,__decoratorStart,h,__expectFn,__decoratorContext,__decoratorMetadata,__runInitializers,__decorateElement,__publicField,__accessCheck,__privateIn,__privateGet,__privateAdd,__privateSet,__privateMethod,g=__esmMin((()=>{f=Object.create,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,__knownSymbol=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__name=(e,t)=>p(e,`name`,{value:t,configurable:!0}),__decoratorStart=e=>[,,,f(e?.[__knownSymbol(`metadata`)]??null)],h=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],__expectFn=e=>e!==void 0&&typeof e!=`function`?__typeError(`Function expected`):e,__decoratorContext=(e,t,n,r,i)=>({kind:h[e],name:t,metadata:r,addInitializer:e=>n._?__typeError(`Already initialized`):i.push(__expectFn(e||null))}),__decoratorMetadata=(e,t)=>__defNormalProp(t,__knownSymbol(`metadata`),e[3]),__runInitializers=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},__decorateElement=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),g=!!(t&16),_=d>3?e.length+1:d?f?1:2:0,v=h[d+5],y=d>3&&(e[_-1]=[]),b=e[_]||(e[_]=[]),x=d&&(!g&&!f&&(i=i.prototype),d<5&&(d>3||!g)&&m(d<4?i:{get[n](){return __privateGet(this,a)},set[n](e){return __privateSet(this,a,e)}},n));d?g&&d<4&&__name(a,(d>2?`set `:d>1?`get `:``)+n):__name(i,n);for(var S=r.length-1;S>=0;S--)l=__decoratorContext(d,n,c={},e[3],b),d&&(l.static=f,l.private=g,u=l.access={has:g?e=>__privateIn(i,e):e=>n in e},d^3&&(u.get=g?e=>(d^1?__privateGet:__privateMethod)(e,i,d^4?a:x.get):e=>e[n]),d>2&&(u.set=g?(e,t)=>__privateSet(e,i,t,d^4?a:x.set):(e,t)=>e[n]=t)),s=(0,r[S])(d?d<4?g?a:x[v]:d>4?void 0:{get:x.get,set:x.set}:i,l),c._=1,d^4||s===void 0?__expectFn(s)&&(d>4?y.unshift(s):d?g?a=s:x[v]=s:i=s):typeof s!=`object`||!s?__typeError(`Object expected`):(__expectFn(o=s.get)&&(x.get=o),__expectFn(o=s.set)&&(x.set=o),__expectFn(o=s.init)&&y.unshift(o));return d||__decoratorMetadata(e,i),x&&p(i,n,x),g?d^4?a:x:i},__publicField=(e,t,n)=>__defNormalProp(e,typeof t==`symbol`?t:t+``,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError(`Cannot `+n),__privateIn=(e,t)=>Object(t)===t?e.has(t):__typeError(`Cannot use the "in" operator on this value`),__privateGet=(e,t,n)=>(__accessCheck(e,t,`read from private field`),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,`access private method`),n)})),_,v=__esmMin((()=>{_={tag:`epic-actions`,topics:[`documentation`,`buttons`,`controls`],aka:[`actions row`,`block actions`,`bullhorn row`,`block buttons`],noun:`actions row`,ui:!1,description:"The one row of a block's own controls, for a block with no title row of its own (a table, a paragraph, a list): a line of no height just before the block, its buttons over the block's top right corner, the comments' bullhorn first, then a table's expand button. The docs runtime makes it (`addBlockAction()`) and measures where the block's top edge is; it's never written in a page.",attributes:[{name:`head-row`,kind:`boolean`,description:"Its block is a table: the buttons centred on its header row, not 2px inside its top edge (set by the docs runtime as it measures, `alignBlockActions()`)."}],events:[],slots:[{name:``,description:"The controls, in their order: `<ui-button>`s, the bullhorn first."}],parts:[{name:`base`,description:`The controls' box, out of the flow, over the block's top right corner.`}],states:[],texts:[],children:[{tag:`flow`,description:`The controls.`}]}})),y,b=__esmMin((()=>{y=`@layer ui.components.epic-actions.types{:host{z-index:2;height:0;display:block;position:relative}:host([hidden]){display:none}}@layer ui.components.epic-actions.content{.buttons{--_epic-actions-inset:var(--epic-actions-inset,2px);top:calc(var(--spell-block-gap,0px) + var(--_epic-actions-inset));right:var(--_epic-actions-inset);align-items:center;gap:var(--epic-actions-gap,2px);display:flex;position:absolute}:host([head-row]) .buttons{top:var(--spell-block-gap,0px);height:var(--spell-block-head)}::slotted(ui-button){background:var(--epic-actions-background,var(--spell-bg,var(--epic-bg,var(--ui-background))));border-radius:999px}}`})),x,S,ee,C,w,T,E,te,ne=__esmMin((()=>{g(),v(),b(),x=(0,e.template)(`<span><slot>`),T=class _EpicActions extends (C=t.E.UIComponent,ee=[t.E.proto],S=[t.E.protoMerged],C){render(){let t=this;var n=x(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,te]),t:t.partForName(`base`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}},w=__decoratorStart(C),__decorateElement(w,13,`vocabulary`,ee,T),__decorateElement(w,13,`elementSetup`,S,T),__decoratorMetadata(w,T),__name(T,`EpicActions`),__publicField(T,`vocabulary`,__runInitializers(w,8,T,_)),__runInitializers(w,11,T),__publicField(T,`elementSetup`,__runInitializers(w,12,T,{styleSheets:{"epic-actions":y},delegatesFocus:!1})),__runInitializers(w,15,T),E=T,te=`buttons`})),re=__exportAll({EpicActions:()=>E}),ie=__esmMin((()=>{ne(),E.define()}));function keepOneLine(e){return e.value.includes(`
3
3
  `)&&(e.value=e.value.replace(/\s*\n\s*/g,` `)),e.value}function stopNewLine(e){e.key===`Enter`&&e.preventDefault()}var ae,oe,se,D,O,ce,le,k,ue,de,fe,pe,me,he,ge=__esmMin((()=>{ae=`/api/docs/details/answer`,oe=`/api/docs/details/draft`,se=`/api/docs/details/listening`,D=3e4,O=`spell-details-draft:`,ce=3e3,le=`notes`,k=/\/details\/[^/]+\.html$/,ue=`/api/docs/choices`,de=`spell-choices-draft:`,fe=/\/details\/[^/]+\.html$/,pe=`/api/runs`,me=3e4,he=`spell-folds:`})),MemoryStorage,_e=__esmMin((()=>{MemoryStorage=class{values=new Map;get length(){return this.values.size}key(e){return[...this.values.keys()][e]??null}getItem(e){return this.values.get(e)??null}setItem(e,t){this.values.set(e,String(t))}removeItem(e){this.values.delete(e)}}})),PrefPlace,ve=__esmMin((()=>{PrefPlace=class{async load(e,t){return this.read(e,t)}async save(e,t,n){n===void 0?this.remove(e,t):this.write(e,t,n)}async loadKeys(e){return this.keys(e)}async update(e,t,n){let r=n(await this.load(e,t));return await this.save(e,t,r),r}async removeUnder(e,t){for(let n of this.keys(e))n.startsWith(t)&&this.remove(e,n)}}}));function textForValue(e){if(typeof e==`string`&&!ye.test(e))return e;let t=JSON.stringify(e);if(t===void 0)throw TypeError(`textForValue(): can't keep a ${typeof e} as text; pass plain data`);return t}function valueForText(e){return ye.test(e)?JSON.parse(e):e}function defaultFor(e){if(!e)return;if(e.default!==void 0)return e.default;let t=choicesOf(e);return t?.length?t[0]:e.type===void 0?void 0:be.get(e.type)}function isAllowed(e,t){if(!e)return!0;let n=choicesOf(e);if(n&&!n.includes(t))return!1;let r=e.type===void 0?void 0:xe.get(e.type);return r===void 0||typeof t===r}function choicesOf(e){return typeof e.oneOf==`function`?e.oneOf():e.oneOf}var ye,be,xe,Se=__esmMin((()=>{ye=/^(?:["{[]|-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$|true$|false$|null$)/,be=new Map([[`number`,0],[`text`,``],[`choice`,!1]]),xe=new Map([[`number`,`number`],[`text`,`string`],[`choice`,`boolean`]])}));function fullKey(e,t){return`${e}:${t}`}var StoragePlace,Ce=__esmMin((()=>{_e(),ve(),Se(),StoragePlace=class extends PrefPlace{isAsync=!1;description;constructor({storage:e,description:t}){super(),this.findStorage=typeof e==`function`?e:()=>e,this.description=t}read(e,t){let n=this.attempt(`read`,e,t,n=>n.getItem(fullKey(e,t)));if(n!=null)try{return valueForText(n)}catch(r){console.error(`StoragePlace.read(): \`${fullKey(e,t)}\` holds no value it can read; answering none:`,n),console.error(r);return}}write(e,t,n){let r=textForValue(n);this.attempt(`write`,e,t,n=>n.setItem(fullKey(e,t),r))}remove(e,t){this.attempt(`remove`,e,t,n=>n.removeItem(fullKey(e,t)))}keys(e){let t=`${e}:`;return this.attempt(`keys`,e,``,e=>{let n=[];for(let r=0;r<e.length;r++){let i=e.key(r);i?.startsWith(t)&&n.push(i.slice(t.length))}return n})??[]}moveText(e,t,n){this.attempt(`moveText`,t,n,r=>{let i=r.getItem(e);i!==null&&(r.getItem(fullKey(t,n))===null&&r.setItem(fullKey(t,n),i),r.removeItem(e))})}get storage(){return this._storage??=this.storageOrMemory()}_storage;findStorage;storageOrMemory(){try{let e=this.findStorage();if(e)return e}catch(e){console.error(`StoragePlace: ${this.description} is blocked; keeping its values in memory for this visit:`),console.error(e)}return new MemoryStorage}attempt(e,t,n,r){try{return r(this.storage)}catch(r){console.error(`StoragePlace.${e}(): ${this.description} refused \`${fullKey(t,n)}\`:`),console.error(r);return}}}}));function placeFor(e){if(e instanceof PrefPlace)return e;if(e===`memory`)return new StoragePlace({storage:new MemoryStorage,description:`memory`});let t=Te.get(e);return t||Te.set(e,t=new StoragePlace(we[e])),t}function allowedText(e){let t=e&&choicesOf(e);return t?`one of ${t.map(shown).join(`, `)}`:e?.type?`a ${e.type}`:`anything`}function shown(e){return typeof e==`string`?e:typeof e==`object`&&JSON.stringify(e)||String(e)}var A,we,Te,Ee=__esmMin((()=>{_e(),ve(),Ce(),Se(),A=class PrefStore{name;place;constructor(e,{place:t=`local`}={}){if(!e||e.includes(`:`))throw TypeError(`new PrefStore(): \`${e}\` can't name a store; give it a name with no colon, e.g. "spell-site"`);this.name=e,this.place=placeFor(t)}static splitKey(e){let t=e.indexOf(`:`);if(t<1)throw TypeError(`PrefStore.splitKey(): \`${e}\` has no store; name it "<store>:<key>"`);return[e.slice(0,t),e.slice(t+1)]}static getAt(e,t=`local`){let[n,r]=PrefStore.splitKey(e);return new PrefStore(n,{place:t}).get(r)}static moveOldKey(e,t,n=`local`){let[r,i]=PrefStore.splitKey(t);placeFor(n).moveText(e,r,i)}static setAt(e,t,n=`local`){let[r,i]=PrefStore.splitKey(e);new PrefStore(r,{place:n}).set(i,t)}declare(e,t){return this.checkKey(`declare`,e),this.declared.set(e,t),this}defaultFor(e){return defaultFor(this.declared.get(e))}has(e){return this.checkQuickRead(`has`,e),this.place.read(this.name,e)!==void 0}get(e,t){return this.checkQuickRead(`get`,e),this.keptOrDefault(`get`,e,this.place.read(this.name,e),t)}set(e,t){return this.checkWrite(`set`,e,t),t===void 0?this.place.remove(this.name,e):this.place.write(this.name,e,t),t}forget(e){this.set(e,void 0)}keysUnder(e=``){return this.checkQuickRead(`keysUnder`),this.place.keys(this.name).filter(t=>t.startsWith(e))}forgetUnder(e){return this.place.removeUnder(this.name,e)}forgetAll(){return this.forgetUnder(``)}rename(e,t){this.checkQuickRead(`rename`,e),this.checkKey(`rename`,t);let n=this.place.read(this.name,e);return n===void 0?this:(this.place.read(this.name,t)===void 0&&this.place.write(this.name,t,n),this.place.remove(this.name,e),this)}async load(e,t){return this.checkKey(`load`,e),this.keptOrDefault(`load`,e,await this.place.load(this.name,e),t)}async save(e,t){return this.checkWrite(`save`,e,t),await this.place.save(this.name,e,t),t}update(e,t){this.checkKey(`update`,e);let n=(this.updating.get(e)??Promise.resolve()).then(async()=>await this.place.update(this.name,e,n=>{let r=t(this.keptOrDefault(`update`,e,n,void 0));return this.checkWrite(`update`,e,r),r})),r=n.then(()=>void 0,()=>void 0);return this.updating.set(e,r),r.then(()=>{this.updating.get(e)===r&&this.updating.delete(e)}),n}async loadKeysUnder(e=``){return(await this.place.loadKeys(this.name)).filter(t=>t.startsWith(e))}keptOrDefault(e,t,n,r){let i=this.declared.get(t);if(n!==void 0){if(isAllowed(i,n))return n;console.error(`PrefStore.${e}(): \`${this.name}:${t}\` isn't ${allowedText(i)}; answering its default:`,n)}return r===void 0?defaultFor(i):r}checkKey(e,t){if(!t)throw TypeError(`PrefStore.${e}(): no key; pass the pref's name, e.g. "scheme"`)}checkQuickRead(e,t){if(t!==void 0&&this.checkKey(e,t),this.place.isAsync)throw TypeError(`PrefStore.${e}(): \`${this.name}\` keeps its values in ${this.place.description}, which must be waited on; use \`load()\` or \`loadKeysUnder()\``)}checkWrite(e,t,n){this.checkKey(e,t);let r=this.declared.get(t);if(!(n===void 0||isAllowed(r,n)))throw TypeError(`PrefStore.${e}(): \`${t}\` is ${allowedText(r)}; not \`${shown(n)}\``)}declared=new Map;updating=new Map},we={local:{storage:()=>globalThis.localStorage,description:`the browser's storage`},session:{storage:()=>globalThis.sessionStorage,description:`the browser's per-tab storage`}},Te=new Map}));function localDate(e=new Date){return`${e.getFullYear()}-${two(e.getMonth()+1)}-${two(e.getDate())}`}function clockTime(e=new Date){return`${two(e.getHours())}:${two(e.getMinutes())}`}function two(e){return String(e).padStart(2,`0`)}var De=__esmMin((()=>{}));function clockOfSave(e){let t=new Date(e);return isNaN(t.getTime())?``:clockTime(t)}var BrowserCopy,SaveQueue,Oe=__esmMin((()=>{Ee(),Ce(),De(),BrowserCopy=class{props;constructor(e){this.props=e}keep(e){this.props.key&&A.setAt(this.props.key,e,this.place)}kept(){return this.props.key?A.getAt(this.props.key,this.place):void 0}drop(){this.props.key&&A.setAt(this.props.key,void 0,this.place)}keysStartingHere(){if(!this.props.key)return[];let[e,t]=A.splitKey(this.props.key);return new A(e,{place:this.place}).keysUnder(t).map(t=>`${e}:${t}`)}place=new StoragePlace({storage:()=>this.props.storage?this.props.storage():globalThis.localStorage,description:`this browser`})},SaveQueue=class{props;state={kind:`idle`};isUnsaved=!1;timer;retryTimer;saving=Promise.resolve(!0);inFlight=0;round=0;copy;constructor(e){this.props=e,this.copy=new BrowserCopy({...e.key!==void 0&&{key:e.key},...e.storage&&{storage:e.storage}})}changed({now:e=!1}={}){if(this.isUnsaved=!0,this.cancelTimer(),e){this.save();return}this.timer=setTimeout(()=>void this.save(),this.props.wait),this.state.kind!==`failed`&&this.state.kind!==`off server`&&this.setState({kind:`unsaved`})}save({keepalive:e=!1}={}){this.cancelTimer();let run=()=>this.saveQueued(e),t=this.inFlight?this.saving.then(run):run();return this.inFlight++,t.finally(()=>this.inFlight--),this.saving=t,t}get settled(){return this.saving}get isPending(){return!!this.timer||this.state.kind===`saving`}done(){this.round++,this.stop(),this.isUnsaved=!1,this.drop(),this.setState({kind:`idle`})}stop(){this.cancelTimer(),this.retryTimer&&clearTimeout(this.retryTimer),this.retryTimer=void 0}tell(e,{isError:t=!1}={}){this.setState({kind:`told`,text:e,...t&&{isError:t}})}watch(e){let leaving=()=>void this.save({keepalive:!0}),hidden=()=>{e.document.visibilityState===`hidden`&&leaving()};return e.addEventListener(`pagehide`,leaving),e.document.addEventListener(`visibilitychange`,hidden),()=>{e.removeEventListener(`pagehide`,leaving),e.document.removeEventListener(`visibilitychange`,hidden),this.stop()}}keep(e){this.copy.keep(e)}kept(){return this.copy.kept()}drop(){this.copy.drop()}get text(){let e=this.state;switch(e.kind){case`idle`:return``;case`unsaved`:return`not saved yet`;case`saving`:return`saving…`;case`saved`:return`saved ${clockOfSave(e.at)}`;case`told`:return e.text;case`off server`:return`kept in this browser only: this page isn't on the page server`;default:return`kept in this browser only: ${e.why}; trying again every ${this.retry/1e3}s`}}get isError(){let e=this.state;return e.kind===`failed`||e.kind===`off server`||e.kind===`told`&&!!e.isError}async saveQueued(e){if(this.retryTimer&&clearTimeout(this.retryTimer),this.retryTimer=void 0,!this.isUnsaved)return!0;if(this.props.isOffServer?.())return this.setState({kind:`off server`}),!1;let t=this.round;this.isUnsaved=!1,this.state.kind!==`failed`&&this.setState({kind:`saving`});try{let n=await this.props.save({keepalive:e});return t!==this.round||(this.setState({kind:`saved`,at:n??new Date().toISOString()}),!this.isUnsaved)}catch(e){return t!==this.round||(this.isUnsaved=!0,this.setState({kind:`failed`,why:e.message.replace(/[.!]$/,``)}),this.retryTimer=setTimeout(()=>void this.save(),this.retry),!1)}}get retry(){return this.props.retry??3e3}cancelTimer(){this.timer&&clearTimeout(this.timer),this.timer=void 0}setState(e){this.state=e,this.props.onChange?.()}}}));function isAirplane(){return typeof window<`u`&&!!window.SPELL_SERVER?.airplane}function storageNow(e){return(typeof e==`function`?e():e)??void 0}function inboxOf(e){let t=e??{};return{marks:isObject(t.marks)?t.marks:{},drafts:isObject(t.drafts)?t.drafts:{},urgency:isObject(t.urgency)?t.urgency:{},sent:typeof t.sent==`string`?t.sent:null,now:Array.isArray(t.now)?t.now:[],working:isObject(t.working)?t.working:{},taken:isObject(t.taken)?t.taken:{},listening:isObject(t.listening)?t.listening:null,lastListener:isObject(t.lastListener)?t.lastListener:null,unsentComments:Array.isArray(t.unsentComments)?t.unsentComments.filter(e=>typeof e==`string`):[],waitingComments:Array.isArray(t.waitingComments)?t.waitingComments.filter(e=>isObject(e)&&typeof e.id==`string`&&typeof e.anchor==`string`):[],woken:isObject(t.woken)&&typeof t.woken.message==`string`?t.woken:null,doing:isObject(t.doing)&&typeof t.doing.text==`string`?t.doing:null}}function wakeOf(e){let t=e?.wake;return isObject(t)&&typeof t.message==`string`?t:null}function emptyInbox(){return inboxOf(null)}function isSent(e,t){return isImmediate(e)?!0:!!t&&Date.parse(e.at)<=Date.parse(t)}function isHeld(e,t=Date.now()){return Date.parse(e.at)>t}function isImmediate(e){return e.action===`details`||e.action===`prepare`||e.action===`revisit`&&e.when===`now`}function inTestOrder(e){let place=e=>Number(e.prepared)||1/0,t=e.filter(e=>place(e)<1/0).sort((e,t)=>place(e)-place(t)),n=e.filter(e=>place(e)===1/0);return[...t,...n.filter(e=>!e.deferred),...n.filter(e=>e.deferred)]}function pickOf(e){return pickFieldsOf(setPicksOf(e))}function hasSetChange(e){return changesSet(e)||!!e.sets?.some(changesSet)}function hasPick(e){return setPicksOf(e).some(e=>!!e.pick)}function setPicksOf(e){return e?[e,...e.sets??[]].filter(changesSet).map(onePick).sort((e,t)=>(e.choices??0)-(t.choices??0)):[]}function setPickOf(e,t){return setPicksOf(e).find(e=>(e.choices??0)===t)??{}}function withSetPick(e,t,n){let r=setPicksOf(e).filter(e=>(e.choices??0)!==t),i=changesSet(n)?[{...onePick(n),choices:t}]:[];return pickFieldsOf([...r,...i])}function pickFieldsOf(e){let[t,...n]=e.filter(changesSet).map(onePick).sort((e,t)=>(e.choices??0)-(t.choices??0));return t?n.length?{...t,sets:n}:t:{}}function setLetter(e,t){return t&&!e.startsWith(`+`)?`${e}${t+1}`:e}function pickLabel(e){return setPicksOf(e).filter(e=>e.pick).map(e=>pickedLetters(e.pick).map(t=>setLetter(t,e.choices)).join(` `)).join(`, `)}function changesSet(e){let{pick:t,multiple:n,added:r,edited:i,removed:a}=e;return!!(t||n!==void 0||r?.length||i?.length||a?.length)}function onePick(e){let{pick:t,choices:n,multiple:r,added:i,edited:a,removed:o}=e;return{...t&&{pick:t},...n!==void 0&&{choices:n},...r!==void 0&&{multiple:r},...i?.length&&{added:i},...a?.length&&{edited:a},...o?.length&&{removed:o}}}function pickedLetters(e){return(e??``).split(/[\s,]+/).filter(Boolean)}function commentsOf(e){return e?.comments?.length?{comments:e.comments}:{}}function isAnchoredIn(e,t){return partOf(e)===t.toLowerCase()}function partOf(e){return e.split(`#`)[0].toLowerCase()}function inlineCommentsNote(e){return`${tt}${e.map(e=>e.replace(/^c/i,`C`)).join(`, `)}`}function picks(e,t,n,r){return[e,...e?.sets??[]].some(e=>!!e&&pickedLetters(e.pick).includes(t)&&(e.choices===void 0?r:e.choices===n))}function clockOf(e){let t=e?new Date(e):null;return!t||isNaN(t.getTime())?``:clockTime(t)}function agentsOf(e){let t=e?.agents;return Array.isArray(t)?t.filter(e=>typeof e?.name==`string`).map(e=>({name:e.name,task:stringOr(e.task,``),status:stringOr(e.status,`active`),started:stringOr(e.started,``),redirects:(Array.isArray(e.redirects)?e.redirects:[]).map(e=>({note:stringOr(e?.note,``),at:stringOr(e?.at,``),told:stringOr(e?.told,``)}))})):[]}function stringOr(e,t){return typeof e==`string`?e:t}function ageOf(e,t){let n=Math.floor((t-Date.parse(e))/6e4);if(Number.isNaN(n))return``;if(n<1)return`<1m`;if(n<60)return`${n}m`;let r=Math.floor(n/60);if(r<24)return n%60?`${r}h ${n%60}m`:`${r}h`;let i=Math.floor(r/24);return r%24?`${i}d ${r%24}h`:`${i}d`}function sentence(e){return e?`${e[0].toUpperCase()}${e.slice(1)}${/[.!?]$/.test(e)?``:`.`}`:``}function isObject(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}var ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,ServerWriteError,tt,nt=__esmMin((()=>{De(),ke=`/api/epics/review`,Ae=/\/(?:packages\/docs\/content\/)?epics\/([^/]+)\/\1\.plan\.html$/,je=/\/sagas\/([^/]+)\/\1\.saga\.html$/,Me=`SAGA:/`,Ne=4e3,Pe=1e4,Fe=6e3,Ie=3e3,Le=12e4,Re=1e3,ze=3e5,Be=[`now`,`2m`,`5m`,`off`],Ve={now:0,"2m":Le,"5m":3e5},He=`spell-epics:auto-send`,Ue=[`keydown`,`pointerdown`,`wheel`,`input`,`scroll`],We=`spell-revisit:`,Ge=isAirplane()?`Airplane mode: queued for when you land (/airplane land)`:`No Claude session is reviewing this doc: Send wakes one`,Ke=[`approve`,`revisit`,`todo`,`details`,`next`,`drop`,`defer`,`accept`,`reopen`,`seen`,`hold`,`move`],qe=`summary`,Je=`stage`,Ye=[`todo`,`question`,`issue`,`test`,`phase`],Xe=/window\.SPELL_SERVER = (\{.*?\})<\/script>/,Ze=`/api/epics/tests`,Qe=`tests`,$e=`/api/epics/agents`,et=`agents.json5`,ServerWriteError=class extends Error{},ServerWriteError.prototype.name=`ServerWriteError`,tt=`see my comments in its text: `,RegExp(`(?:^|\\n+)${tt}[^\\n]*$`)})),rt=__commonJSMin(((e,t)=>{t.exports=Array.isArray})),it=__commonJSMin(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),at=__commonJSMin(((e,t)=>{var n=it(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),ot=__commonJSMin(((e,t)=>{t.exports=at().Symbol})),st=__commonJSMin(((e,t)=>{var n=ot(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function getRawTag(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=getRawTag})),ct=__commonJSMin(((e,t)=>{var n=Object.prototype.toString;function objectToString(e){return n.call(e)}t.exports=objectToString})),lt=__commonJSMin(((e,t)=>{var n=ot(),r=st(),i=ct(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=baseGetTag})),ut=__commonJSMin(((e,t)=>{function isObjectLike(e){return typeof e==`object`&&!!e}t.exports=isObjectLike})),dt=__commonJSMin(((e,t)=>{var n=lt(),r=ut(),i=`[object Symbol]`;function isSymbol(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=isSymbol})),ft=__commonJSMin(((e,t)=>{var n=rt(),r=dt(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function isKey(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=isKey})),pt=__commonJSMin(((e,t)=>{function isObject(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=isObject})),mt=__commonJSMin(((e,t)=>{var n=lt(),r=pt(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function isFunction(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=isFunction})),ht=__commonJSMin(((e,t)=>{t.exports=at()[`__core-js_shared__`]})),gt=__commonJSMin(((e,t)=>{var n=ht(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function isMasked(e){return!!r&&r in e}t.exports=isMasked})),_t=__commonJSMin(((e,t)=>{var n=Function.prototype.toString;function toSource(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=toSource})),vt=__commonJSMin(((e,t)=>{var n=mt(),r=gt(),i=pt(),a=_t(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function baseIsNative(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=baseIsNative})),yt=__commonJSMin(((e,t)=>{function getValue(e,t){return e?.[t]}t.exports=getValue})),bt=__commonJSMin(((e,t)=>{var n=vt(),r=yt();function getNative(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=getNative})),xt=__commonJSMin(((e,t)=>{t.exports=bt()(Object,`create`)})),St=__commonJSMin(((e,t)=>{var n=xt();function hashClear(){this.__data__=n?n(null):{},this.size=0}t.exports=hashClear})),Ct=__commonJSMin(((e,t)=>{function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=hashDelete})),wt=__commonJSMin(((e,t)=>{var n=xt(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function hashGet(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=hashGet})),Tt=__commonJSMin(((e,t)=>{var n=xt(),r=Object.prototype.hasOwnProperty;function hashHas(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=hashHas})),Et=__commonJSMin(((e,t)=>{var n=xt(),r=`__lodash_hash_undefined__`;function hashSet(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=hashSet})),Dt=__commonJSMin(((e,t)=>{var n=St(),r=Ct(),i=wt(),a=Tt(),o=Et();function Hash(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hash.prototype.clear=n,Hash.prototype.delete=r,Hash.prototype.get=i,Hash.prototype.has=a,Hash.prototype.set=o,t.exports=Hash})),Ot=__commonJSMin(((e,t)=>{function listCacheClear(){this.__data__=[],this.size=0}t.exports=listCacheClear})),kt=__commonJSMin(((e,t)=>{function eq(e,t){return e===t||e!==e&&t!==t}t.exports=eq})),At=__commonJSMin(((e,t)=>{var n=kt();function assocIndexOf(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=assocIndexOf})),jt=__commonJSMin(((e,t)=>{var n=At(),r=Array.prototype.splice;function listCacheDelete(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=listCacheDelete})),Mt=__commonJSMin(((e,t)=>{var n=At();function listCacheGet(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=listCacheGet})),Nt=__commonJSMin(((e,t)=>{var n=At();function listCacheHas(e){return n(this.__data__,e)>-1}t.exports=listCacheHas})),Pt=__commonJSMin(((e,t)=>{var n=At();function listCacheSet(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=listCacheSet})),Ft=__commonJSMin(((e,t)=>{var n=Ot(),r=jt(),i=Mt(),a=Nt(),o=Pt();function ListCache(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=n,ListCache.prototype.delete=r,ListCache.prototype.get=i,ListCache.prototype.has=a,ListCache.prototype.set=o,t.exports=ListCache})),It=__commonJSMin(((e,t)=>{t.exports=bt()(at(),`Map`)})),Lt=__commonJSMin(((e,t)=>{var n=Dt(),r=Ft(),i=It();function mapCacheClear(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=mapCacheClear})),Rt=__commonJSMin(((e,t)=>{function isKeyable(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=isKeyable})),zt=__commonJSMin(((e,t)=>{var n=Rt();function getMapData(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=getMapData})),Bt=__commonJSMin(((e,t)=>{var n=zt();function mapCacheDelete(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=mapCacheDelete})),Vt=__commonJSMin(((e,t)=>{var n=zt();function mapCacheGet(e){return n(this,e).get(e)}t.exports=mapCacheGet})),Ht=__commonJSMin(((e,t)=>{var n=zt();function mapCacheHas(e){return n(this,e).has(e)}t.exports=mapCacheHas})),Ut=__commonJSMin(((e,t)=>{var n=zt();function mapCacheSet(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=mapCacheSet})),Wt=__commonJSMin(((e,t)=>{var n=Lt(),r=Bt(),i=Vt(),a=Ht(),o=Ut();function MapCache(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}MapCache.prototype.clear=n,MapCache.prototype.delete=r,MapCache.prototype.get=i,MapCache.prototype.has=a,MapCache.prototype.set=o,t.exports=MapCache})),Gt=__commonJSMin(((e,t)=>{var n=Wt(),r=`Expected a function`;function memoize(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var memoized=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=memoized.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return memoized.cache=i.set(r,a)||i,a};return memoized.cache=new(memoize.Cache||n),memoized}memoize.Cache=n,t.exports=memoize})),Kt=__commonJSMin(((e,t)=>{var n=Gt(),r=500;function memoizeCapped(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=memoizeCapped})),qt=__commonJSMin(((e,t)=>{var n=Kt(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Jt=__commonJSMin(((e,t)=>{function arrayMap(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=arrayMap})),Yt=__commonJSMin(((e,t)=>{var n=ot(),r=Jt(),i=rt(),a=dt(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function baseToString(e){if(typeof e==`string`)return e;if(i(e))return r(e,baseToString)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=baseToString})),Xt=__commonJSMin(((e,t)=>{var n=Yt();function toString(e){return e==null?``:n(e)}t.exports=toString})),Zt=__commonJSMin(((e,t)=>{var n=rt(),r=ft(),i=qt(),a=Xt();function castPath(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=castPath})),Qt=__commonJSMin(((e,t)=>{var n=dt(),r=1/0;function toKey(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=toKey})),$t=__commonJSMin(((e,t)=>{var n=Zt(),r=Qt();function baseGet(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=baseGet})),en=__commonJSMin(((e,t)=>{var n=$t();function get(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=get})),tn=__commonJSMin(((e,t)=>{var n=bt();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),nn=__commonJSMin(((e,t)=>{var n=tn();function baseAssignValue(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=baseAssignValue})),rn=__commonJSMin(((e,t)=>{var n=nn(),r=kt(),i=Object.prototype.hasOwnProperty;function assignValue(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=assignValue})),an=__commonJSMin(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=isIndex})),on=__commonJSMin(((e,t)=>{var n=rn(),r=Zt(),i=an(),a=pt(),o=Qt();function baseSet(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=baseSet})),sn=__commonJSMin(((e,t)=>{var n=on();function set(e,t,r){return e==null?e:n(e,t,r)}t.exports=set})),cn=__commonJSMin(((e,t)=>{t.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)})),ln=__commonJSMin(((e,t)=>{var n=`%[a-f0-9]{2}`,r=RegExp(`(`+n+`)|([^%]+?)`,`gi`),i=RegExp(`(`+n+`)+`,`gi`);function decodeComponents(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],decodeComponents(n),decodeComponents(r))}function decode(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(r)||[],n=1;n<t.length;n++)e=decodeComponents(t,n).join(``),t=e.match(r)||[];return e}}function customDecodeURIComponent(e){for(var t={"%FE%FF":`��`,"%FF%FE":`��`},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=decode(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t[`%C2`]=`�`;for(var a=Object.keys(t),o=0;o<a.length;o++){var s=a[o];e=e.replace(new RegExp(s,`g`),t[s])}return e}t.exports=function(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g,` `),decodeURIComponent(e)}catch{return customDecodeURIComponent(e)}}})),un=__commonJSMin(((e,t)=>{t.exports=(e,t)=>{if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(t===``)return[e];let n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}})),dn=__commonJSMin(((e,t)=>{t.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],s=e[o];(i?t.indexOf(o)!==-1:t(o,s,e))&&(n[o]=s)}return n}})),fn=__commonJSMin((e=>{var t=cn(),n=ln(),r=un(),i=dn(),isNullOrUndefined=e=>e==null;function encoderForArrayFormat(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[encode(t,e),`[`,i,`]`].join(``)]:[...n,[encode(t,e),`[`,encode(i,e),`]=`,encode(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[encode(t,e),`[]`].join(``)]:[...n,[encode(t,e),`[]=`,encode(r,e)].join(``)];case`comma`:case`separator`:return t=>(n,r)=>r==null||r.length===0?n:n.length===0?[[encode(t,e),`=`,encode(r,e)].join(``)]:[[n,encode(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,encode(t,e)]:[...n,[encode(t,e),`=`,encode(r,e)].join(``)]}}function parserForArrayFormat(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[].concat(r[e],n)};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&decode(n,e).includes(e.arrayFormatSeparator);n=a?decode(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>decode(t,e)):n===null?n:decode(n,e)};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[].concat(n[e],t)}}}function validateArrayFormatSeparator(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function encode(e,n){return n.encode?n.strict?t(e):encodeURIComponent(e):e}function decode(e,t){return t.decode?n(e):e}function keysSorter(e){return Array.isArray(e)?e.sort():typeof e==`object`?keysSorter(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function removeHash(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function getHash(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function extract(e){e=removeHash(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function parseValue(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)&&(e=e.toLowerCase()===`true`),e}function parse(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1},t),validateArrayFormatSeparator(t.arrayFormatSeparator);let n=parserForArrayFormat(t),i=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return i;for(let a of e.split(`&`)){if(a===``)continue;let[e,o]=r(t.decode?a.replace(/\+/g,` `):a,`=`);o=o===void 0?null:[`comma`,`separator`].includes(t.arrayFormat)?o:decode(o,t),n(decode(e,t),o,i)}for(let e of Object.keys(i)){let n=i[e];if(typeof n==`object`&&n)for(let e of Object.keys(n))n[e]=parseValue(n[e],t);else i[e]=parseValue(n,t)}return t.sort===!1?i:(t.sort===!0?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce((e,t)=>{let n=i[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?keysSorter(n):n,e},Object.create(null))}e.extract=extract,e.parse=parse,e.stringify=(e,t)=>{if(!e)return``;t=Object.assign({encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`},t),validateArrayFormatSeparator(t.arrayFormatSeparator);let shouldFilter=n=>t.skipNull&&isNullOrUndefined(e[n])||t.skipEmptyString&&e[n]===``,n=encoderForArrayFormat(t),r={};for(let t of Object.keys(e))shouldFilter(t)||(r[t]=e[t]);let i=Object.keys(r);return t.sort!==!1&&i.sort(t.sort),i.map(r=>{let i=e[r];return i===void 0?``:i===null?encode(r,t):Array.isArray(i)?i.reduce(n(r),[]).join(`&`):encode(r,t)+`=`+encode(i,t)}).filter(e=>e.length>0).join(`&`)},e.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[n,i]=r(e,`#`);return Object.assign({url:n.split(`?`)[0]||``,query:parse(extract(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:decode(i,t)}:{})},e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0},n);let r=removeHash(t.url).split(`?`)[0]||``,i=e.extract(t.url),a=e.parse(i,{sort:!1}),o=Object.assign(a,t.query),s=e.stringify(o,n);s&&=`?${s}`;let c=getHash(t.url);return t.fragmentIdentifier&&(c=`#${encode(t.fragmentIdentifier,n)}`),`${r}${s}${c}`},e.pick=(t,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);let{url:a,query:o,fragmentIdentifier:s}=e.parseUrl(t,r);return e.stringifyUrl({url:a,query:i(o,n),fragmentIdentifier:s},r)},e.exclude=(t,n,r)=>{let i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return e.pick(t,i,r)}})),pn=__commonJSMin(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.JSON5=r()})(e,(function(){"use strict";function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var e=createCommonjsModule(function(e){var t=e.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=t)}),t=createCommonjsModule(function(e){var t=e.exports={version:`2.6.5`};typeof __e==`number`&&(__e=t)});t.version;var _isObject=function(e){return typeof e==`object`?e!==null:typeof e==`function`},_anObject=function(e){if(!_isObject(e))throw TypeError(e+` is not an object!`);return e},_fails=function(e){try{return!!e()}catch{return!0}},n=!_fails(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),r=e.document,i=_isObject(r)&&_isObject(r.createElement),_domCreate=function(e){return i?r.createElement(e):{}},a=!n&&!_fails(function(){return Object.defineProperty(_domCreate(`div`),"a",{get:function(){return 7}}).a!=7}),_toPrimitive=function(e,t){if(!_isObject(e))return e;var n,r;if(t&&typeof(n=e.toString)==`function`&&!_isObject(r=n.call(e))||typeof(n=e.valueOf)==`function`&&!_isObject(r=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!_isObject(r=n.call(e)))return r;throw TypeError(`Can't convert object to primitive value`)},o=Object.defineProperty,s={f:n?Object.defineProperty:function defineProperty(e,t,n){if(_anObject(e),t=_toPrimitive(t,!0),_anObject(n),a)try{return o(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported!`);return`value`in n&&(e[t]=n.value),e}},_propertyDesc=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},c=n?function(e,t,n){return s.f(e,t,_propertyDesc(1,n))}:function(e,t,n){return e[t]=n,e},l={}.hasOwnProperty,_has=function(e,t){return l.call(e,t)},u=0,d=Math.random(),_uid=function(e){return`Symbol(${e===void 0?``:e})_${(++u+d).toString(36)}`},f=createCommonjsModule(function(n){var r=`__core-js_shared__`,i=e[r]||(e[r]={});(n.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:t.version,mode:`global`,copyright:`© 2019 Denis Pushkarev (zloirock.ru)`})})(`native-function-to-string`,Function.toString),p=createCommonjsModule(function(n){var r=_uid(`src`),i=`toString`,a=(``+f).split(i);t.inspectSource=function(e){return f.call(e)},(n.exports=function(t,n,i,o){var s=typeof i==`function`;s&&(_has(i,`name`)||c(i,`name`,n)),t[n]!==i&&(s&&(_has(i,r)||c(i,r,t[n]?``+t[n]:a.join(String(n)))),t===e?t[n]=i:o?t[n]?t[n]=i:c(t,n,i):(delete t[n],c(t,n,i)))})(Function.prototype,i,function toString(){return typeof this==`function`&&this[r]||f.call(this)})}),_aFunction=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e},_ctx=function(e,t,n){if(_aFunction(e),t===void 0)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},m=`prototype`,$export=function(n,r,i){var a=n&$export.F,o=n&$export.G,s=n&$export.S,l=n&$export.P,u=n&$export.B,d=o?e:s?e[r]||(e[r]={}):(e[r]||{})[m],f=o?t:t[r]||(t[r]={}),h=f[m]||(f[m]={}),g,_,v,y;for(g in o&&(i=r),i)_=!a&&d&&d[g]!==void 0,v=(_?d:i)[g],y=u&&_?_ctx(v,e):l&&typeof v==`function`?_ctx(Function.call,v):v,d&&p(d,g,v,n&$export.U),f[g]!=v&&c(f,g,y),l&&h[g]!=v&&(h[g]=v)};e.core=t,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var h=$export,g=Math.ceil,_=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(e>0?_:g)(e)},_defined=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e},_stringAt=function(e){return function(t,n){var r=String(_defined(t)),i=_toInteger(n),a=r.length,o,s;return i<0||i>=a?e?``:void 0:(o=r.charCodeAt(i),o<55296||o>56319||i+1===a||(s=r.charCodeAt(i+1))<56320||s>57343?e?r.charAt(i):o:e?r.slice(i,i+2):(o-55296<<10)+(s-56320)+65536)}},v=_stringAt(!1);h(h.P,`String`,{codePointAt:function codePointAt(e){return v(this,e)}}),t.String.codePointAt;var y=Math.max,b=Math.min,_toAbsoluteIndex=function(e,t){return e=_toInteger(e),e<0?y(e+t,0):b(e,t)},x=String.fromCharCode,S=String.fromCodePoint;h(h.S+h.F*(!!S&&S.length!=1),`String`,{fromCodePoint:function fromCodePoint(e){for(var t=arguments,n=[],r=arguments.length,i=0,a;r>i;){if(a=+t[i++],_toAbsoluteIndex(a,1114111)!==a)throw RangeError(a+` is not a valid code point`);n.push(a<65536?x(a):x(((a-=65536)>>10)+55296,a%1024+56320))}return n.join(``)}}),t.String.fromCodePoint;var ee={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},C={isSpaceSeparator:function isSpaceSeparator(e){return typeof e==`string`&&ee.Space_Separator.test(e)},isIdStartChar:function isIdStartChar(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`$`||e===`_`||ee.ID_Start.test(e))},isIdContinueChar:function isIdContinueChar(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`_`||e===`‌`||e===`‍`||ee.ID_Continue.test(e))},isDigit:function isDigit(e){return typeof e==`string`&&/[0-9]/.test(e)},isHexDigit:function isHexDigit(e){return typeof e==`string`&&/[0-9A-Fa-f]/.test(e)}},w,T,E,te,ne,re,ie,ae,oe,se=function parse(e,t){w=String(e),T=`start`,E=[],te=0,ne=1,re=0,ie=void 0,ae=void 0,oe=void 0;do ie=lex(),de[T]();while(ie.type!==`eof`);return typeof t==`function`?internalize({"":oe},``,t):oe};function internalize(e,t,n){var r=e[t];if(typeof r==`object`&&r){if(Array.isArray(r))for(var i=0;i<r.length;i++){var a=String(i),o=internalize(r,a,n);o===void 0?delete r[a]:Object.defineProperty(r,a,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(var s in r){var c=internalize(r,s,n);c===void 0?delete r[s]:Object.defineProperty(r,s,{value:c,writable:!0,enumerable:!0,configurable:!0})}}return n.call(e,t,r)}var D,O,ce,le,k;function lex(){for(D=`default`,O=``,ce=!1,le=1;;){k=peek();var e=ue[D]();if(e)return e}}function peek(){if(w[te])return String.fromCodePoint(w.codePointAt(te))}function read(){var e=peek();return e===`
4
4
  `?(ne++,re=0):e?re+=e.length:re++,e&&(te+=e.length),e}var ue={default:function default$1(){switch(k){case` `:case`\v`:case`\f`:case` `:case`\xA0`:case``:case`
@@ -48,4 +48,4 @@ ${n.tip}`}:{...t,color:n.color,tip:`${t.tip??t.words}
48
48
  ${n.tip}`}})),__publicField(this,`marks`,(0,n.createMemo)(()=>{let e=this.review.client;if(!this.review.reviewing()||!e)return;let t=Object.values(e.inbox.marks).filter(e=>!isHeld(e)),n=e.unsentMarkCount,r=e.unsentCommentCount;return{send:n||r?`unsent`:t.length?`sent`:`idle`,unsent:n,comments:r,waiting:t.filter(e=>!isImmediate(e)).length,asked:e.inbox.now.length,listening:e.listening,listener:this.listenerWords(e.inbox.listening,`listening`),idle:e.listening?``:this.listenerWords(e.inbox.lastListener,`idle`),woken:e.inbox.woken?.message??``,answering:(e.doing?.items??[]).map(e=>e.id.toUpperCase()).join(`, `)}})),__publicField(this,`hasPill`,(0,n.createMemo)(()=>{let e=this.marks();return e?isAirplane()?!!(e.unsent||e.comments||e.waiting||e.asked||e.woken):e.idle?!!(e.unsent||e.comments||e.waiting||e.asked):e.listening?!1:e.waiting-e.unsent>0||!!(e.asked||e.woken):!1})),__publicField(this,`filterChips`,(0,n.createMemo)(()=>{if(this.signals.layout.get(),this.filterTick,e.isServer)return[];let t=new Map;for(let e of this.filterHosts())for(let n of e.stateFilter??[]){let e=t.get(n.state);e?t.set(n.state,{...e,count:e.count+n.count,on:e.on&&n.on}):t.set(n.state,{...n})}return Ub.flatMap(e=>t.get(e.state)??[])})),__publicField(this,`markedCounts`,(0,n.createMemo)(()=>(this.signals.layout.get(),this.filterTick,e.isServer?``:this.filterHosts().map(e=>`${e.markedCount??0}/${e.chipCounts??``}`).join(` `)))),__publicField(this,`markedTotal`,(0,n.createMemo)(()=>this.markedCounts().split(` `).reduce((e,t)=>e+(Number.parseInt(t,10)||0),0))),__publicField(this,`isLayoutQueued`,!1),__publicField(this,`bumpLayout`,__name(()=>{this.isLayoutQueued||(this.isLayoutQueued=!0,t.E.afterSolidUpdate(()=>{this.isLayoutQueued=!1,this.signals.layout.set(this.signals.layout.get()+1)}))},`bumpLayout`)),__publicField(this,`bumpFilters`,__name(()=>t.E.afterSolidUpdate(()=>{this.filterTick++}),`bumpFilters`)),__privateAdd(this,zj,__runInitializers(Y,20,this,[])),__runInitializers(Y,23,this),__privateAdd(this,Bj,__runInitializers(Y,24,this)),__runInitializers(Y,27,this),__publicField(this,`countdown`,e.isServer?void 0:Bn.forPage()),__privateAdd(this,Vj,__runInitializers(Y,28,this,this.countdown?.choice??`2m`)),__runInitializers(Y,31,this),__privateAdd(this,Hj,__runInitializers(Y,32,this)),__runInitializers(Y,35,this),__publicField(this,`themeMenu`),__privateAdd(this,Uj,__runInitializers(Y,36,this,!1)),__runInitializers(Y,39,this),__publicField(this,`onRowKey`,__name(e=>{if(e.defaultPrevented)return;let t=e.target.closest?.(`.${Wk}`);if(t){if(e.key===`ArrowRight`&&t.value!==Jj)return e.preventDefault(),this.openSub(t.value);moveFocus(e,this.rows(t.parentElement))&&e.preventDefault()}},`onRowKey`)),__publicField(this,`onSubKey`,__name(e=>{if(e.defaultPrevented)return;if(e.key===`ArrowLeft`||e.key===`Escape`)return e.preventDefault(),e.stopPropagation(),this.closeSub();let t=e.currentTarget;t.classList.contains(`auto-send`)&&moveFocus(e,[...t.querySelectorAll(`button`)])&&e.preventDefault()},`onSubKey`)),__publicField(this,`gearMenu`),__publicField(this,`focusElement`),__privateAdd(this,Wj,__runInitializers(Y,40,this,!1)),__runInitializers(Y,43,this),__privateAdd(this,Gj,__runInitializers(Y,44,this,!1)),__runInitializers(Y,47,this),__publicField(this,`measure`,__runInitializers(Y,56,this,__name(()=>{let e=parseFloat(getComputedStyle(document.documentElement).getPropertyValue(`--spell-site-header-height`)),t=Math.round(this.header?.getBoundingClientRect().height??0),n=this.bar?.getBoundingClientRect().height??0,r=Math.round((Number.isNaN(e)?0:e)+t+n);this.headHeight!==t&&(this.headHeight=t),this.signals.top.get()!==r&&this.signals.top.set(r)},`measure`))),__runInitializers(Y,59,this)}get pageStage(){return this.isSaga?`building`:Vd.read(this.stage)}listenerWords(e,t){let n=e?.agent;if(!n||n===tM)return``;let r=e.person?.trim(),i=I.viewer(),a=!r||!i||r.toLowerCase()===i.toLowerCase(),o={agent:I.agentLabel(n),person:r??``};return t===`listening`?this.translationForKey(a?`listeningMine`:`listeningOf`,o):this.translationForKey(a?`idleMine`:`idleOf`,o)}watchLayout(e,n){if(!e||!n)return;let r=new MutationObserver(this.bumpLayout);r.observe(this.domElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:Ak});let i=new ResizeObserver(()=>this.measure());for(let e of[this.header,this.bar])e&&i.observe(e);let a=document.querySelector(`spell-site-header`);a&&i.observe(a);let o=new AbortController;return window.addEventListener(`resize`,this.measure,{signal:o.signal}),this.measure(),t.E.DOMElement.whenAttached(Xj).then(()=>Promise.all(this.filterHosts().map(e=>e.ready))).then(this.bumpFilters),()=>{r.disconnect(),i.disconnect(),o.abort()}}onFilter(){this.bumpFilters()}get sectionMarks(){return this.markedCounts()}followMarks(){this.bumpFilters()}followReviews(){return this.review.connect()}followSeeAlso(){if(e.isServer||!j.canRead()||!this.epic||this.isSaga)return;let t=`/epics/${this.epic}/`;this.loadSeeAlso();let n=__name(e=>e.includes(t)&&e.endsWith(`.html`),`isEpicPage`);return j.watch(window,n,()=>void this.loadSeeAlso(),{every:0})}async loadSeeAlso(){try{let e=await j.forPage().get(`/api/epics/pages`,{query:{epic:this.epic??``}});if(!e)return;let{pages:t,saga:n}=e;this.seeAlso=Array.isArray(t)?t:[],this.sagaLink=n??void 0}catch{}}seeAlsoBox(){let t=this;var r=gA(),i=r.firstChild,a=i.firstChild,o=i.nextSibling;return(0,e.insert)(i,()=>t.translationForKey(`seeAlso`),a),(0,e.insert)(a,()=>t.seeAlso.length),(0,e.insert)(o,(0,e.createComponent)(n.For,{get each(){return t.seeAlso},children:n=>(()=>{var r=_A(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling,s=o.nextSibling,c=(0,e.getOwner)();return i._$owner=(0,e.getOwner)(),(0,e.insert)(a,()=>n.title),(0,e.insert)(o,()=>t.translationForKey(Rk[n.kind]?.key??`seeAlsoDetails`)),(0,e.insert)(s,()=>M.formatDate(new Date(n.updated),!1)),(0,e.effect)(()=>({e:n.kind,t:Rk[n.kind]?.icon??`circle question`,a:n.href,o:`${t.epic}-${n.href}`,i:n.updated,n:new Date(n.updated).toLocaleString()}),({e:t,t:n,a:o,o:l,i:u,n:d},f)=>{t!==f?.e&&(0,e.setAttribute)(r,`data-kind`,t),n!==f?.t&&(0,e.setAttribute)(i,`name`,n),o!==f?.a&&(0,e.setAttribute)(a,`href`,o),l!==f?.o&&(0,e.setAttribute)(a,`target`,l),u!==f?.i&&(0,e.setAttribute)(s,`datetime`,u),d!==f?.n&&(0,e.setAttribute)(s,`title`,d),(0,e.claimElement)(a,c)}),r})()})),(0,e.effect)(()=>({e:(0,e.readShallow)(Lk),t:t.partForName(`see-also`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}render(){let t=this;var r=vA(),i=r.firstChild,a=i.firstChild,o=a.firstChild,s=a.nextSibling,c=s.firstChild,l=c.nextSibling,u=s.nextSibling,d=u.firstChild,f=d.firstChild,p=f.nextSibling,m=d.nextSibling,h=i.nextSibling,g=h.nextSibling,_=g.nextSibling,v=_.nextSibling,y=v.nextSibling,b=y.nextSibling,x=b.nextSibling,S=x.nextSibling;return(0,e.ref)(()=>e=>t.header=e,i),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return!t.hasOldCrumbs()},get children(){return t.crumbs()}}),o),o._$$click=()=>t.copyHeading(),(0,e.insert)(o,(()=>{var n=(0,e.memo)(()=>!!t.isSaga);return()=>n()?t.saga:t.epic})()),(0,e.insert)(s,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.isFocusOpen)()?void 0:t.marks()},children:e=>t.sendButtons(e)}),c),(0,e.insert)(s,(()=>{var n=(0,e.memo)(()=>!!t.isSaga);return()=>n()?void 0:(()=>{var n=yA();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.partForName(`spinner`),t=>{(0,e.setAttribute)(n,`part`,t)}),n})()})(),l),(0,e.insert)(u,(0,e.createComponent)(n.Show,{get when(){return t.bedtime},children:n=>(()=>{var r=bA(),i=r.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.insert)(i,()=>t.translationForKey(`bedtime`,{phases:n()})),(0,e.effect)(()=>t.translationForKey(`bedtimeTip`,{phases:n()}),t=>{(0,e.setAttribute)(r,`title`,t)}),r})()}),d),(0,e.insert)(d,(0,e.createComponent)(n.Show,{get when(){return t.step()},children:n=>(()=>{var r=xA();return r._$owner=(0,e.getOwner)(),(0,e.insert)(r,()=>n().words),(0,e.effect)(()=>({e:t.state()?t.partForName(`state`):void 0,t:t.state()?.name,a:n().color===`green`?void 0:`basic`,o:pillColorOf(n().color),i:n().icon,n:n().href,s:n().tip}),({e:t,t:n,a:i,o:a,i:o,n:s,s:c},l)=>{t!==l?.e&&(0,e.setAttribute)(r,`part`,t),n!==l?.t&&(0,e.setAttribute)(r,`data-state`,n),i!==l?.a&&(0,e.setAttribute)(r,`appearance`,i),a!==l?.o&&(0,e.setAttribute)(r,`color`,a),o!==l?.i&&(0,e.setAttribute)(r,`icon`,o),s!==l?.n&&(0,e.setAttribute)(r,`link`,s),c!==l?.s&&(0,e.setAttribute)(r,`title`,c)}),r})()}),f),(0,e.insert)(d,(()=>{var n=(0,e.memo)(()=>!!t.isSaga);return()=>n()?void 0:(()=>{var n=SA();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.partForName(`agents-pill`),t=>{(0,e.setAttribute)(n,`part`,t)}),n})()})(),p),(0,e.insert)(u,()=>t.gear(),m),(0,e.ref)(()=>e=>t.bar=e,h),(0,e.insert)(h,()=>t.toolbar()),(0,e.insert)(r,()=>t.reviewLine(),g),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.hasPill()},get children(){return t.pill()}}),_),(0,e.insert)(r,(()=>{var n=(0,e.memo)(()=>!!t.isSaga);return()=>n()?t.sagaMetaLines():t.metaLines()})(),v),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.future},get children(){return t.futureNotice()}}),y),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.planning()},get children(){return t.hungNotice()}}),b),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.seeAlso.length},get children(){return t.seeAlsoBox()}}),x),x._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.review.reviewing()},get children(){return t.focusMode()}}),S),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(t.pageStyle()),o:(0,e.readShallow)(Nk),i:t.partForName(`header`),n:(0,e.readShallow)(Pk),s:t.partForName(`heading`),h:(0,e.readShallow)(Fk),r:t.translationForKey(`copyHeading`,{name:t.isSaga?t.saga??``:t.epic??``,command:t.headingCommand()}),d:(0,e.readShallow)(Bk),l:t.partForName(`centre`),u:(0,e.readShallow)(zk),c:t.partForName(`status`),w:(0,e.readShallow)($j),m:t.partForName(`step-pill`),f:`var(--ui-${pillColorOf(t.step()?.color)})`,y:`var(--ui-${pillColorOf(t.step()?.color)}-text)`,g:(0,e.readShallow)(`bar`),p:t.partForName(`bar`)}),({e:t,t:n,a:c,o:l,i:f,n:p,s:m,h:g,r:_,d:v,l:y,u:b,c:x,w:S,m:ee,f:C,y:w,g:T,p:E},te)=>{(0,e.className)(r,t,te?.e),n!==te?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.style)(r,c,te?.a),(0,e.className)(i,l,te?.o),f!==te?.i&&(0,e.setAttribute)(i,`part`,f),(0,e.className)(a,p,te?.n),m!==te?.s&&(0,e.setAttribute)(a,`part`,m),(0,e.className)(o,g,te?.h),_!==te?.r&&(0,e.setAttribute)(o,`title`,_),(0,e.className)(s,v,te?.d),y!==te?.l&&(0,e.setAttribute)(s,`part`,y),(0,e.className)(u,b,te?.u),x!==te?.c&&(0,e.setAttribute)(u,`part`,x),(0,e.className)(d,S,te?.w),ee!==te?.m&&(0,e.setAttribute)(d,`part`,ee),C!==te?.f&&(0,e.setStyleProperty)(d,`--epic-pill-color`,C),w!==te?.y&&(0,e.setStyleProperty)(d,`--epic-pill-ink`,w),(0,e.className)(h,T,te?.g),E!==te?.p&&(0,e.setAttribute)(h,`part`,E)}),r}crumbs(){let t=this;var n=CA(),r=n.firstChild,i=r.firstChild,a=i.nextSibling;return r._$owner=(0,e.getOwner)(),i._$owner=(0,e.getOwner)(),(0,e.insert)(i,()=>t.translationForKey(`crumbDocs`)),a._$owner=(0,e.getOwner)(),(0,e.insert)(a,()=>t.translationForKey(t.isSaga?`crumbSagas`:`crumbEpics`)),(0,e.effect)(()=>({e:(0,e.readShallow)(eA),t:t.partForName(`crumbs`),a:(0,e.readShallow)(eA),o:t.partForName(`crumbs`),i:t.translationForKey(`crumbs`),n:tA.docs.href,s:tA.docs.target,h:tA[t.isSaga?`sagas`:`epics`].href,r:tA[t.isSaga?`sagas`:`epics`].target}),({e:t,t:o,a:s,o:c,i:l,n:u,s:d,h:f,r:p},m)=>{(0,e.className)(n,t,m?.e),o!==m?.t&&(0,e.setAttribute)(n,`part`,o),(0,e.className)(r,s,m?.a),c!==m?.o&&(0,e.setAttribute)(r,`part`,c),l!==m?.i&&(0,e.setAttribute)(r,`aria-label`,l),u!==m?.n&&(0,e.setAttribute)(i,`link`,u),d!==m?.s&&(0,e.setAttribute)(i,`target`,d),f!==m?.h&&(0,e.setAttribute)(a,`link`,f),p!==m?.r&&(0,e.setAttribute)(a,`target`,p)}),n}metaLines(){let t=this;var r=kA(),i=r.firstChild,a=i.firstChild,o=i.nextSibling,s=o.firstChild,c=s.firstChild,l=c.nextSibling,u=o.nextSibling,d=u.nextSibling,f=d.firstChild,p=f.firstChild,m=p.nextSibling.nextSibling;return r._$$click=e=>t.copyMeta(e),(0,e.insert)(i,()=>t.icon(t.icons.branch),a),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.branch},get fallback(){return[(0,e.memo)(()=>t.translationForKey(`futureEpic`)),` `,(()=>{var n=AA();return n.firstChild,(0,e.insert)(n,()=>t.epic,null),n})(),`,`,` `,(0,e.memo)(()=>t.translationForKey(`noBranch`))]},get children(){return[(0,e.memo)(()=>t.translationForKey(`planDoc`)),` `,(()=>{var n=wA();return n.firstChild,(0,e.insert)(n,()=>t.epic,null),n})(),`, `,(0,e.memo)(()=>t.translationForKey(`branch`)),` `,(()=>{var n=TA();return(0,e.insert)(n,()=>t.branch),n})()]}})),(0,e.insert)(o,()=>t.icon(t.icons.folder),s),(0,e.insert)(s,()=>t.translationForKey(`worktree`),c),(0,e.insert)(s,(0,e.createComponent)(n.Show,{get when(){return t.worktree},get fallback(){return t.translationForKey(`noWorktree`)},get children(){var n=EA();return(0,e.insert)(n,()=>t.worktree),n}}),l),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.started||t.updated},get children(){var r=OA(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling;return(0,e.insert)(r,()=>t.icon(t.icons.calendar),i),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.started},get children(){return[(0,e.memo)(()=>t.translationForKey(`started`)),` `,(()=>{var n=DA();return(0,e.insert)(n,()=>M.format(t.started)),(0,e.effect)(()=>t.started,t=>{(0,e.setAttribute)(n,`datetime`,t)}),n})()]}}),a),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.started)()?t.updated:t.started},children:`, `}),o),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.updated},get children(){return[(0,e.memo)(()=>t.translationForKey(`updated`)),` `,(()=>{var n=DA();return(0,e.insert)(n,()=>M.format(t.updated)),(0,e.effect)(()=>t.updated,t=>{(0,e.setAttribute)(n,`datetime`,t)}),n})()]}}),s),r}}),u),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.saga},children:e=>t.sagaLine(e())}),d),(0,e.insert)(d,()=>t.icon(t.icons.book),f),(0,e.insert)(p,()=>t.translationForKey(`durable`)),m._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(Ik),t:t.partForName(`meta`),a:!t.slots.hasContent(t.slotForName(`durable`)),o:t.slotForName(`durable`)}),({e:t,t:n,a:i,o:a},o)=>{(0,e.className)(r,t,o?.e),n!==o?.t&&(0,e.setAttribute)(r,`part`,n),i!==o?.a&&(0,e.setAttribute)(d,`hidden`,i),a!==o?.o&&(0,e.setAttribute)(m,`name`,a)}),r}sagaMetaLines(){let t=this;var r=jA(),i=r.firstChild,a=i.firstChild,o=a.firstChild,s=o.nextSibling;return r._$$click=e=>t.copyMeta(e),(0,e.insert)(i,()=>t.icon(t.icons.book),a),(0,e.insert)(a,()=>t.translationForKey(`sagaPage`),o),(0,e.insert)(s,()=>t.sagaAddress()),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.started||t.updated},get children(){var r=OA(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling;return(0,e.insert)(r,()=>t.icon(t.icons.calendar),i),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.started},get children(){return[(0,e.memo)(()=>t.translationForKey(`started`)),` `,(()=>{var n=DA();return(0,e.insert)(n,()=>M.format(t.started)),(0,e.effect)(()=>t.started,t=>{(0,e.setAttribute)(n,`datetime`,t)}),n})()]}}),a),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.started)()?t.updated:t.started},children:`, `}),o),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.updated},get children(){return[(0,e.memo)(()=>t.translationForKey(`updated`)),` `,(()=>{var n=DA();return(0,e.insert)(n,()=>M.format(t.updated)),(0,e.effect)(()=>t.updated,t=>{(0,e.setAttribute)(n,`datetime`,t)}),n})()]}}),s),r}}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(Ik),t:t.partForName(`meta`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}sagaLine(t){let n=__name(()=>this.sagaLink?.id===t?this.sagaLink:void 0,`known`),r=this;var i=MA(),a=i.firstChild,o=a.firstChild,s=o.nextSibling.nextSibling,c=(0,e.getOwner)();return(0,e.insert)(i,()=>r.icon(r.icons.saga),a),(0,e.insert)(o,()=>r.translationForKey(`saga`)),(0,e.setAttribute)(s,`target`,`saga-${t}`),(0,e.insert)(s,()=>n()?.title??t),(0,e.effect)(()=>({e:n()?.href??sagaHref(t),t:n()?r.translationForKey(`sagaTip`,{purpose:n().purpose}):void 0}),({e:t,t:n},r)=>{t!==r?.e&&(0,e.setAttribute)(s,`href`,t),n!==r?.t&&(0,e.setAttribute)(s,`title`,n),(0,e.claimElement)(s,c)}),i}toolbar(){let t=this;var n=NA(),r=n.firstChild,i=r.nextSibling,a=i.firstChild,o=a.nextSibling;return r._$owner=(0,e.getOwner)(),(0,e.insert)(i,()=>t.pageFilter(),a),(0,e.insert)(i,()=>F.toggleAllButton({expandLabel:t.translationForKey(`expandAll`),collapseLabel:t.translationForKey(`collapseAll`),part:t.partForName(`toggle-all`),expanded:__name(()=>t.allOpen,`expanded`),onToggle:__name(()=>{t.allOpen=!t.allOpen,t.allOpen?t.expandAll():t.collapseAll()},`onToggle`)}),o),(0,e.effect)(()=>({e:(0,e.readShallow)(Zk),t:t.partForName(`toolbar`),a:t.slotForName(`toolbar`),o:(0,e.readShallow)(Qk)}),({e:t,t:a,a:o,o:s},c)=>{(0,e.className)(n,t,c?.e),a!==c?.t&&(0,e.setAttribute)(n,`part`,a),o!==c?.a&&(0,e.setAttribute)(r,`name`,o),(0,e.className)(i,s,c?.o)}),n}pageFilter(){let t=__name(()=>this.filterChips(),`chips`),r=this;return(0,e.createComponent)(n.Show,{get when(){return t().length||r.markedTotal()},get children(){var n=PA(),i=n.firstChild;return i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(Zb),t:r.partForName(`filter`),a:t().map(e=>`${e.state}:${e.count}`).join(` `),o:t().every(e=>e.on)?void 0:t().filter(e=>e.on).map(e=>e.state).join(` `),i:r.markedTotal()||void 0}),({e:t,t:r,a,o,i:s},c)=>{(0,e.className)(n,t,c?.e),r!==c?.t&&(0,e.setAttribute)(n,`part`,r),a!==c?.a&&(0,e.setAttribute)(i,`counts`,a),o!==c?.o&&(0,e.setAttribute)(i,`shown`,o),s!==c?.i&&(0,e.setAttribute)(i,`marked`,s)}),n}})}onStatePick(e){e.stopPropagation(),this.pickState(e.detail.state,e.detail.how)}sendButtons(t){let n=__name(()=>this.plansWaiting(),`plans`),r=__name(()=>{let e=this.sendWords(t());return n()?`${n().tip} \xB7 ${e}`:e},`sendTip`),i=this;var a=FA();return a._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(Yk),t:i.partForName(`send`),a:t().send,o:n()?.asks,i:t().answering?``:void 0,n:t().answering||void 0,s:i.withNobody(r(),t(),t().send!==`idle`)}),({e:t,t:n,a:r,o:i,i:o,n:s,s:c},l)=>{(0,e.className)(a,t,l?.e),n!==l?.t&&(0,e.setAttribute)(a,`part`,n),r!==l?.a&&(0,e.setAttribute)(a,`state`,r),i!==l?.o&&(0,e.setAttribute)(a,`asks`,i),o!==l?.i&&(0,e.setAttribute)(a,`working`,o),s!==l?.n&&(0,e.setAttribute)(a,`working-on`,s),c!==l?.s&&(0,e.setAttribute)(a,`send-tip`,c)}),a}onSendAsked(e){e.stopPropagation(),this.review.client?.send({now:e.detail.auto})}pill(){let t=__name(()=>isAirplane()?``:this.marks()?.woken??``,`woken`),r=__name(()=>isAirplane()?``:this.marks()?.idle??``,`idle`),i=this;if(r())return(()=>{var t=IA(),n=t.firstChild,a=n.nextSibling;return t._$$click=()=>void i.copyWait(),(0,e.insert)(t,r,n),(0,e.insert)(a,()=>i.waitCommand()),(0,e.effect)(()=>({e:(0,e.readShallow)([$k,{flash:i.isCopied}]),t:i.partForName(`pill`),a:i.translationForKey(`copyWait`)}),({e:n,t:r,a:i},a)=>{(0,e.className)(t,n,a?.e),r!==a?.t&&(0,e.setAttribute)(t,`part`,r),i!==a?.a&&(0,e.setAttribute)(t,`title`,i)}),t})();let a=this;var o=LA();return o._$$click=()=>void a.copyCommand(),(0,e.insert)(o,(0,e.createComponent)(n.Show,{get when(){return t()},get fallback(){return[(0,e.memo)(()=>a.translationForKey(isAirplane()?`airplanePill`:`nobodyPill`)),` `,(()=>{var t=TA();return(0,e.insert)(t,()=>a.command()),t})()]},get children(){return t()}})),(0,e.effect)(()=>({e:(0,e.readShallow)([$k,{airplane:isAirplane(),flash:a.isCopied}]),t:a.partForName(`pill`),a:a.translationForKey(isAirplane()?`copyCommand`:`startReview`)}),({e:t,t:n,a:r},i)=>{(0,e.className)(o,t,i?.e),n!==i?.t&&(0,e.setAttribute)(o,`part`,n),r!==i?.a&&(0,e.setAttribute)(o,`title`,r)}),o}sendWords(e){return e.send===`unsent`?this.translationForKey(`send`,{what:this.countWords(e.unsent,e.comments)}):this.translationForKey(e.send===`sent`?`sent`:`sendIdle`)}countWords(e,t){return[e?this.translationForKey(e===1?`marksOne`:`marksMany`,{count:e}):``,t?this.translationForKey(t===1?`commentsOne`:`commentsMany`,{count:t}):``].filter(Boolean).join(`, `)}withNobody(e,t,n){return t.listening||!n?e:`${e}. ${Ge}`}reviewLine(){let t=this;var r=RA(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=i.nextSibling;return r._$$click=()=>void t.copyCommand(),(0,e.insert)(r,()=>t.icon(t.icons.copy),i),(0,e.insert)(i,()=>t.translationForKey(isAirplane()?`reviewLineAirplane`:`reviewLine`),a),(0,e.insert)(o,()=>t.command()),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.marks()?.listener},children:n=>(()=>{var r=zA();return(0,e.insert)(r,n),(0,e.effect)(()=>({e:(0,e.readShallow)(eM),t:t.translationForKey(`listeningTitle`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`title`,n)}),r})()}),s),(0,e.insert)(c,(()=>{var n=(0,e.memo)(()=>!!t.isCopied);return()=>n()?t.translationForKey(`copied`):``})()),(0,e.effect)(()=>({e:(0,e.readShallow)([Xk,{flash:t.isCopied}]),t:t.partForName(`review-line`),a:t.translationForKey(`copyCommand`)}),({e:t,t:n,a:i},a)=>{(0,e.className)(r,t,a?.e),n!==a?.t&&(0,e.setAttribute)(r,`part`,n),i!==a?.a&&(0,e.setAttribute)(r,`title`,i)}),r}waitCommand(){return`epic inbox wait ${this.isSaga?this.sagaAddress():this.epic??``}`}async copyWait(){await this.copyAndSay(this.waitCommand())&&this.flash()}flash(){this.isCopied=!1,this.flashTimer?.cancel(),t.E.beforeNextPaint(()=>this.isCopied=!0),this.flashTimer=t.E.after(1500/1e3,()=>this.isCopied=!1)}headingCommand(){return this.isSaga?`/epic review ${this.sagaAddress()}`:`/epic resume ${this.epic??``}`}command(){return isAirplane()?nM:`/epic review ${this.isSaga?this.sagaAddress():this.epic??``}`}sagaAddress(){return`${Me}${this.saga??``}`}get isSaga(){return this.kind===nA}gear(){let t=this;return[(()=>{var n=LA();return(0,e.setAttribute)(n,`id`,qj),(0,e.insert)(n,()=>t.icon(t.icons.gear)),(0,e.effect)(()=>({e:(0,e.readShallow)(Vk),t:t.partForName(`gear`),a:t.translationForKey(`gearTip`),o:t.translationForKey(`gearTip`)}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`aria-label`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n})(),(()=>{var r=VA(),i=r.firstChild.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=i.nextSibling,l=c.nextSibling,u=l.firstChild;return(0,e.setAttribute)(r,`for`,qj),(0,e.ref)(()=>e=>t.wireGear(e),r),r._$owner=(0,e.getOwner)(),(0,e.addEvent)(i,`keydown`,t.onRowKey,!0),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.review.reviewing()},get children(){var n=BA(),r=n.firstChild,i=r.nextSibling;return n._$$click=()=>t.openFocus(),(0,e.setAttribute)(n,`value`,Jj),r._$owner=(0,e.getOwner)(),(0,e.insert)(i,()=>t.translationForKey(`focusMode`)),(0,e.effect)(()=>({e:(0,e.readShallow)([Wk,`focus-row`]),t:t.partForName(`gear-row`),a:t.translationForKey(`focusModeTip`)}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`title`,i)}),n}}),a),(0,e.insert)(i,()=>t.gearRow(`autoSend`,t.translationForKey(`autoSend`),t.autoSendWords(t.autoSend)),o),(0,e.insert)(i,()=>t.gearRow(`theme`,t.translationForKey(`theme`),t.themeTitle),s),(0,e.addEvent)(c,`keydown`,t.onSubKey,!0),(0,e.insert)(c,(0,e.createComponent)(n.For,{each:Be,children:r=>[(0,e.createComponent)(n.Show,{when:r===`off`,get children(){return HA()}}),(()=>{var n=UA(),i=n.firstChild,a=i.nextSibling;return n._$$click=()=>t.chooseAutoSend(r),(0,e.setAttribute)(n,`value`,r),i._$owner=(0,e.getOwner)(),(0,e.insert)(a,()=>t.autoSendWords(r)),(0,e.effect)(()=>({e:t.autoSend===r,t:t.autoSend===r?`true`:`false`}),({e:t,t:r},i)=>{t!==i?.e&&n.classList.toggle(`checked`,t),r!==i?.t&&(0,e.setAttribute)(n,`aria-checked`,r)}),n})()]})),(0,e.addEvent)(l,`keydown`,t.onSubKey,!0),(0,e.ref)(()=>e=>t.adoptThemeMenu(e),u),u._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(Hk),t:t.partForName(`gear-menu`),a:t.translationForKey(`gearTip`),o:(0,e.readShallow)(Uk),i:t.translationForKey(`gearTip`),n:(0,e.readShallow)([Gk,`auto-send`]),s:t.partForName(`auto-send`),h:t.translationForKey(`autoSend`),r:t.subMenu!==`autoSend`,d:(0,e.readShallow)([Gk,`theme`]),l:t.partForName(`theme-menu`),u:t.translationForKey(`theme`),c:t.subMenu!==`theme`}),({e:t,t:n,a,o,i:s,n:u,s:d,h:f,r:p,d:m,l:h,u:g,c:_},v)=>{(0,e.className)(r,t,v?.e),n!==v?.t&&(0,e.setAttribute)(r,`part`,n),a!==v?.a&&(0,e.setAttribute)(r,`aria-label`,a),(0,e.className)(i,o,v?.o),s!==v?.i&&(0,e.setAttribute)(i,`aria-label`,s),(0,e.className)(c,u,v?.n),d!==v?.s&&(0,e.setAttribute)(c,`part`,d),f!==v?.h&&(0,e.setAttribute)(c,`aria-label`,f),p!==v?.r&&(0,e.setAttribute)(c,`hidden`,p),(0,e.className)(l,m,v?.d),h!==v?.l&&(0,e.setAttribute)(l,`part`,h),g!==v?.u&&(0,e.setAttribute)(l,`aria-label`,g),_!==v?.c&&(0,e.setAttribute)(l,`hidden`,_)}),r})()]}gearRow(t,r,i){let a=this;var o=GA(),s=o.firstChild,c=s.nextSibling;return o._$$click=()=>a.openSub(t),(0,e.setAttribute)(o,`value`,t),(0,e.insert)(s,r),(0,e.insert)(o,(0,e.createComponent)(n.Show,{when:i,get children(){var t=WA();return t.firstChild,(0,e.insert)(t,i,null),(0,e.effect)(()=>(0,e.readShallow)(Kk),(n,r)=>{(0,e.className)(t,n,r)}),t}}),c),c._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([Wk,{open:a.subMenu===t}]),t:a.partForName(`gear-row`),a:a.subMenu===t?`true`:`false`}),({e:t,t:n,a:r},i)=>{(0,e.className)(o,t,i?.e),n!==i?.t&&(0,e.setAttribute)(o,`part`,n),r!==i?.a&&(0,e.setAttribute)(o,`aria-expanded`,r)}),o}autoSendWords(e){return this.translationForKey(Yj[e])}get themeTitle(){this.themeMenuReady;let n=this.themeMenu?.component?.chosenTheme??(e.isServer?void 0:t.UI.themes?.current);return n?t.UIT.ThemeNames.titleOf(n):``}followCountdown(){let e=this.countdown;if(e)return this.autoSend=e.choice,e.subscribe(()=>this.autoSend=e.choice)}adoptThemeMenu(e){this.themeMenu=e,customElements.whenDefined(e.localName).then(()=>this.themeMenu?.ready).then(()=>this.themeMenuReady=!0).catch(e=>console.error(`EpicPage: the gear's theme menu didn't load`,e))}wireGear(e){this.gearMenu=e,e.addEventListener(`toggle`,t=>{this.subMenu=void 0,t.newState===`open`&&this.rows(e)[0]?.focus()})}rows(e){return[...e.querySelectorAll(`.${Wk}`)]}openSub(e){this.subMenu=e,t.E.afterSolidUpdate(()=>{if(e===`theme`)return this.themeMenu?.component?.focusChosen();(this.domElement.shadowRoot?.querySelector(`.${Gk}.auto-send`))?.querySelector(`[aria-checked="true"]`)?.focus()})}closeSub(){let e=this.subMenu;e&&(this.subMenu=void 0,this.domElement.shadowRoot?.querySelector(`.${Wk}[value="${e}"]`)?.focus())}chooseAutoSend(e){this.countdown?.choose(e),this.closeSub()}focusMode(){let t=this;var r=KA();return(0,e.ref)(()=>e=>t.focusElement=e,r),r._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.isFocusOpen)()?t.marks():void 0},children:n=>(()=>{var r=qA();return(0,e.insert)(r,()=>t.sendButtons(n)),r})()})),(0,e.effect)(()=>t.partForName(`focus`),t=>{(0,e.setAttribute)(r,`part`,t)}),r}openFocus(){this.gearMenu&&(this.gearMenu.visible=!1),this.askFocus()}askFocus(e){t.E.afterSolidUpdate(()=>{t.E.DOMElement.whenAttached(`epic-focus`).then(()=>this.focusElement?.ready).then(()=>this.focusElement?.show?.(e)).catch(e=>console.error(`EpicPage: Focus mode didn't open`,e))})}onFocusAsked(e){e.stopPropagation(),this.askFocus(e.detail)}onFocusToggled(e){this.isFocusOpen=e.detail.open}hungNotice(){let t=this;var r=YA(),i=r.firstChild,a=i.firstChild,o=i.nextSibling,s=o.firstChild,c=s.firstChild,l=c.nextSibling;l.firstChild;var u=l.nextSibling.nextSibling;return(0,e.insert)(a,()=>t.icons.chevron.svg),(0,e.insert)(i,()=>t.translationForKey(`hung`),null),(0,e.insert)(s,()=>t.translationForKey(`hungBefore`),c),(0,e.insert)(l,()=>t.epic,null),(0,e.insert)(s,()=>t.translationForKey(`hungAfter`),u),(0,e.insert)(o,(0,e.createComponent)(n.Show,{get when(){return t.prompt()},get children(){var n=JA();return n._$owner=(0,e.getOwner)(),(0,e.insert)(n,()=>t.prompt()),n}}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(Jk),t:t.partForName(`hung`),a:t.translationForKey(`hungTip`)}),({e:t,t:n,a},o)=>{(0,e.className)(r,t,o?.e),n!==o?.t&&(0,e.setAttribute)(r,`part`,n),a!==o?.a&&(0,e.setAttribute)(i,`title`,a)}),r}futureNotice(){let t=this;var n=XA(),r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=a.nextSibling.nextSibling;o.firstChild;var s=o.nextSibling.nextSibling;return n._$owner=(0,e.getOwner)(),(0,e.insert)(r,()=>t.translationForKey(`futureBody`),i),(0,e.claimElement)(a),(0,e.insert)(a,()=>t.translationForKey(`analysisPage`)),(0,e.insert)(o,()=>t.epic,null),(0,e.insert)(r,()=>t.translationForKey(`futurePlan`),s),(0,e.effect)(()=>({e:(0,e.readShallow)(qk),t:t.partForName(`notice`),a:t.translationForKey(`futureHeader`)}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`heading`,i)}),n}icon(t){var n=ZA();return(0,e.insert)(n,()=>t.svg),(0,e.effect)(()=>(0,e.readShallow)(oA),(t,r)=>{(0,e.className)(n,t,r)}),n}pageStyle(){return{[jk]:`${this.signals.top.get()}px`,[Mk]:`${this.headHeight}px`}}pickState(e,t=`click`){let n=this.filterChips(),r=n.map(e=>e.state),i=Up.nextShown(r,n.filter(e=>e.on).map(e=>e.state),e,t),a=i.length===r.length?void 0:i;for(let e of this.filterHosts())e.stateFilter&&e.showStates?.(a)}collapseAll(){foldAllUnder(this.domElement),window.scrollTo({top:0,behavior:`instant`})}expandAll(){expandAllUnder(this.domElement)}filterHosts(){return Array.from(this.domElement.querySelectorAll(Xj)).filter(e=>!Vd.hides(e))}async copyCommand(){let e=this.review.client,n=!(!e||e.listening||isAirplane());n&&e.startReview(),await(n?t.E.copyText(this.command()):this.copyAndSay(this.command()))&&this.flash()}copyHeading(){this.copyAndSay(this.headingCommand())}copyMeta(e){let t=e.target.closest(`code`);t?.textContent&&this.copyAndSay(t.textContent)}async copyAndSay(e){return await t.E.copyText(e)?(t.E.DOMElement.isAttached(`ui-toast`)&&t.UI.toast({id:iA,class:`blue`,message:this.translationForKey(`copiedText`,{text:e}),displayTime:rA}),!0):!1}phaseLabel(e,t,n,r){let i=e.label;return{color:t,icon:n,words:i,tip:`${r}${i} \xB7 ${e.title}`,href:`#${e.id}`}}static signalsOf(e){let n=_EpicPage.pageSignals.get(e);return n||(n={top:new t.E.Cell(0),layout:new t.E.Cell(0),linked:new t.E.Cell(null)},_EpicPage.pageSignals.set(e,n)),n}static textOf(e){let t=``;for(let n of e.childNodes)n.nodeType===Node.TEXT_NODE?t+=(n.textContent??``).replace(/\s+/g,` `):n.localName===`br`?t+=`
49
49
  `:n.nodeType===Node.ELEMENT_NODE&&(t+=_EpicPage.textOf(n));return t}},Y=__decoratorStart(Fj),Ij=new WeakMap,Lj=new WeakMap,Rj=new WeakMap,zj=new WeakMap,Bj=new WeakMap,Vj=new WeakMap,Hj=new WeakMap,Uj=new WeakMap,Wj=new WeakMap,Gj=new WeakMap,__decorateElement(Y,4,`isCopied`,Mj,X,Ij),__decorateElement(Y,4,`filterTick`,jj,X,Lj),__decorateElement(Y,4,`headHeight`,Aj,X,Rj),__decorateElement(Y,1,`watchLayout`,kj,X),__decorateElement(Y,1,`onFilter`,Oj,X),__decorateElement(Y,1,`followMarks`,Dj,X),__decorateElement(Y,1,`followReviews`,Ej,X),__decorateElement(Y,4,`seeAlso`,Tj,X,zj),__decorateElement(Y,4,`sagaLink`,wj,X,Bj),__decorateElement(Y,1,`followSeeAlso`,Cj,X),__decorateElement(Y,1,`loadSeeAlso`,Sj,X),__decorateElement(Y,1,`onStatePick`,xj,X),__decorateElement(Y,1,`onSendAsked`,bj,X),__decorateElement(Y,1,`copyWait`,yj,X),__decorateElement(Y,4,`autoSend`,vj,X,Vj),__decorateElement(Y,4,`subMenu`,_j,X,Hj),__decorateElement(Y,4,`themeMenuReady`,gj,X,Uj),__decorateElement(Y,1,`followCountdown`,hj,X),__decorateElement(Y,1,`openSub`,mj,X),__decorateElement(Y,1,`closeSub`,pj,X),__decorateElement(Y,1,`chooseAutoSend`,fj,X),__decorateElement(Y,4,`isFocusOpen`,dj,X,Wj),__decorateElement(Y,1,`openFocus`,uj,X),__decorateElement(Y,1,`askFocus`,lj,X),__decorateElement(Y,1,`onFocusAsked`,cj,X),__decorateElement(Y,1,`onFocusToggled`,sj,X),__decorateElement(Y,1,`pickState`,oj,X),__decorateElement(Y,1,`collapseAll`,aj,X),__decorateElement(Y,4,`allOpen`,ij,X,Gj),__decorateElement(Y,1,`expandAll`,rj,X),__decorateElement(Y,1,`copyCommand`,nj,X),__decorateElement(Y,1,`copyHeading`,tj,X),__decorateElement(Y,1,`copyMeta`,ej,X),__decorateElement(Y,1,`copyAndSay`,$A,X),__decorateElement(Y,13,`vocabulary`,Pj,X),__decorateElement(Y,13,`elementSetup`,Nj,X),__decorateElement(Y,5,`measure`,QA,X),__decoratorMetadata(Y,X),__name(X,`EpicPage`),__publicField(X,`vocabulary`,__runInitializers(Y,48,X,Dk)),__runInitializers(Y,51,X),__publicField(X,`elementSetup`,__runInitializers(Y,52,X,{styleSheets:{"epic-tooltip":N,"epic-page":fA,"epic-crumbs":mA,"epic-collapse-all":cA,"epic-state-chips":uA},cssStates:[`future`],delegatesFocus:!1})),__runInitializers(Y,55,X),__publicField(X,`TAG`,Dk.tag),__publicField(X,`pageSignals`,new WeakMap),Kj=X,qj=`gear`,Jj=`focus`,Yj={now:`autoSendNow`,"2m":`autoSend2`,"5m":`autoSend5`,off:`autoSendOff`},__name(moveFocus,`moveFocus`),Xj=`epic-section`,Zj=`:scope > epic-section[kind="phases"] > epic-phase[plan="waiting"]:not([status="done"], [status="dropped"], [title="Doc Review" i])`,Qj={overview:{step:`stageOverview`,stepTip:`stageOverviewTip`},phases:{step:`stagePhases`,stepTip:`stagePhasesTip`}},$j=`step-pill`,eM=`listener`,tM=`claude`,nM=`/airplane land`,__name(pillColorOf,`pillColorOf`),rM=`circle notch`,iM=new Set(Zf),(0,e.delegateEvents)([`click`,`keydown`])})),oM,sM=__esmMin((()=>{oM={tag:`epic-mark`,topics:[`documentation`,`text`,`navigation`],aka:[`mark`,`item mark`,`id chip`,`item reference`,`to review`],noun:`mark`,ui:!1,description:"An item's id as a chip, in the colour of the item's state: `<epic-mark item=\"i126\" link>` draws `I126`, red while it waits on you, green when it's newly decided, grey once it's old (the same rule as the item's own chip, `ItemAge`). The item's title is its tooltip; with `link`, a click lands on the item. The tool writes them in a phase's To review field (Owen, 2026-10-25: \"`<epic-mark link>` for rendering the I126 mark\").",attributes:[{name:`item`,kind:`string`,required:!0,format:`anchor`,description:"The item's id on this page, any case (`i126`, `Q3`): drawn in capitals."},{name:`link`,kind:`boolean`,description:`A link that lands on the item, opening it; without it, the chip alone.`}],events:[],slots:[],parts:[{name:`base`,description:"The chip: an `<a>` with `link`, else a `<span>`."},{name:`id`,description:`The item's id, in capitals.`}],states:[{name:`missing`,description:`No item with that id on the page (yet): the chip in the accent colour.`}],texts:[{key:`missing`,text:`Not on this page: {id}`,description:`The tooltip of a mark with no item.`}],children:[],flow:!0}})),cM,lM=__esmMin((()=>{cM=`@layer ui.components.epic-mark.types{:host{display:contents}:host([hidden]){display:none}}@layer ui.components.epic-mark.content{.chip{--_epic-mark-height:var(--epic-mark-height,var(--epic-chip-height,1.6em));--_epic-mark-radius:var(--epic-mark-radius,var(--epic-chip-radius,999px));--_epic-mark-font-size:var(--epic-mark-font-size,var(--epic-chip-font-size,.8em));--_epic-mark-background:var(--epic-accent-soft,var(--ui-primary-background));--_epic-mark-color:var(--epic-accent,var(--ui-link));box-sizing:border-box;min-width:var(--epic-mark-min-width,2.6em);height:var(--_epic-mark-height);padding:var(--epic-mark-padding,0 6px);border-radius:var(--_epic-mark-radius);background:var(--_epic-mark-background);color:var(--_epic-mark-color);font:var(--epic-mark-font-weight,600) var(--_epic-mark-font-size) / 1 var(--epic-mono,var(--ui-font-family-mono));white-space:nowrap;vertical-align:middle;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}a.chip:hover{filter:brightness(.95)}a.chip:focus-visible{outline:2px solid var(--ui-focus-color,var(--epic-accent));outline-offset:1px}.chip[data-state=attention]{--_epic-mark-background:var(--epic-state-attention,light-dark(var(--ui-red),var(--ui-red-on-light)));--_epic-mark-color:var(--epic-state-attention-on,light-dark(var(--ui-red-on),var(--ui-ink-on-dark)))}.chip[data-state=replied]{--_epic-mark-background:var(--epic-state-replied,var(--ui-orange));--_epic-mark-color:var(--epic-state-replied-on,var(--ui-orange-on))}.chip[data-state=open]{--_epic-mark-background:var(--epic-state-open,var(--ui-yellow));--_epic-mark-color:var(--epic-state-open-on,var(--ui-yellow-on))}.chip[data-state=progress]{--_epic-mark-background:var(--epic-state-progress,var(--ui-blue));--_epic-mark-color:var(--epic-state-progress-on,var(--ui-blue-on))}.chip[data-state=recent]{--_epic-mark-background:var(--epic-state-recent,var(--ui-green));--_epic-mark-color:var(--epic-state-recent-on,var(--ui-green-on))}.chip:is([data-state=old],[data-state=handled]){--_epic-mark-background:var(--epic-state-old,var(--ui-grey-background));--_epic-mark-color:var(--epic-state-old-on,var(--ui-grey-text))}}`})),uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM=__esmMin((()=>{g(),Lh(),aM(),Iu(),Uu(),sM(),lM(),uM=(0,e.template)(`<span>`),dM=(0,e.template)(`<a>`),vM=class _EpicMark extends (gM=t.E.UIComponent,hM=[t.E.proto],mM=[t.E.protoMerged],pM=[t.E.whileConnected],fM=[t.E.cssState(`missing`)],gM){constructor(){super(...arguments),__runInitializers(_M,5,this),__publicField(this,`reviewState`,new Hu(()=>void 0))}followReview(){return this.reviewState.connect()}get page(){return this.isConnected?this.domElement.closest(Kj.TAG):null}get layout(){let e=this.page;return e?Kj.signalsOf(e).layout.get():0}get id(){return(this.item??``).toUpperCase()}get landing(){if(this.layout,!e.isServer&&this.isConnected&&this.item)try{return new Mh(document).find(new Ah({item:this.item}))}catch{return}}get target(){let e=this.landing;return e?document.getElementById(e.id):null}get isMissing(){return this.isConnected&&!this.landing}get state(){let e=this.target;if(e)return su.of(su.fieldsOf(e),this.reviewState.liveOf(e.id))}get tooltip(){return this.isMissing?this.translationForKey(`missing`,{id:this.id}):this.landing?.title}render(){let t=__name(()=>{let t=this;return(()=>{var n=uM();return(0,e.insert)(n,()=>t.id),(0,e.effect)(()=>({e:(0,e.readShallow)(xM),t:t.partForName(`id`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n})()},`id`),r=this;return(0,e.createComponent)(n.Show,{get when(){return r.link},get fallback(){var n=uM();return(0,e.insert)(n,t),(0,e.effect)(()=>({e:(0,e.readShallow)([r.rootClass,bM]),t:r.partForName(`base`),a:r.state,o:r.tooltip}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`data-state`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n},get children(){var n=dM(),i=(0,e.getOwner)();return(0,e.insert)(n,t),(0,e.effect)(()=>({e:(0,e.readShallow)([r.rootClass,bM]),t:r.partForName(`base`),a:r.state,o:`#${r.landing?.id??(r.item??``).toLowerCase()}`,i:r.tooltip}),({e:t,t:r,a,o,i:s},c)=>{(0,e.className)(n,t,c?.e),r!==c?.t&&(0,e.setAttribute)(n,`part`,r),a!==c?.a&&(0,e.setAttribute)(n,`data-state`,a),o!==c?.o&&(0,e.setAttribute)(n,`href`,o),s!==c?.i&&(0,e.setAttribute)(n,`title`,s),(0,e.claimElement)(n,i)}),n}})}},_M=__decoratorStart(gM),__decorateElement(_M,1,`followReview`,pM,vM),__decorateElement(_M,2,`isMissing`,fM,vM),__decorateElement(_M,13,`vocabulary`,hM,vM),__decorateElement(_M,13,`elementSetup`,mM,vM),__decoratorMetadata(_M,vM),__name(vM,`EpicMark`),__publicField(vM,`vocabulary`,__runInitializers(_M,8,vM,oM)),__runInitializers(_M,11,vM),__publicField(vM,`elementSetup`,__runInitializers(_M,12,vM,{styleSheets:{"epic-mark":cM}})),__runInitializers(_M,15,vM),yM=vM,bM=`chip`,xM=`id`})),CM=__exportAll({EpicMark:()=>yM}),wM=__esmMin((()=>{SM(),yM.define()})),TM,EM=__esmMin((()=>{TM={tag:`epic-net-effect`,topics:[`documentation`,`lists`,`content parts`],aka:[`net effect`,`outcome`,`consequences`,`result`,`what changes`],noun:`net-effect`,ui:!1,description:"The `Net effect` label, with its option when it's one option's (`Net effect (A):`), over its list: one look everywhere -- an item's text, a reply, an option card, an Overview sub-section. The list stays the page's own children.",attributes:[{name:`option`,kind:`string`,format:`letter`,description:"The option it's the net effect of (`A`): drawn `Net effect (A):`. Absent: `Net effect:`."},{name:`recommended`,kind:`boolean`,description:"That option is the recommended one: `Net effect (A, recommended):`, the word in grey."}],events:[],slots:[{name:``,description:"What it comes to: a `<ul>`, or a sentence or two."}],parts:[{name:`base`,description:`The label over the content.`},{name:`label`,description:"`Net effect (A, recommended):`, a line of its own."},{name:`option`,description:"`(A, recommended)`: only with `option` or `recommended`."},{name:`recommended`,description:"`recommended`, in grey."}],states:[],texts:[{key:`label`,text:`Net effect`,description:`The label.`},{key:`recommended`,text:`recommended`,description:`After the option's letter, when it's recommended.`}],children:[{tag:`flow`,description:`What it comes to.`}],flow:!0}})),DM,OM=__esmMin((()=>{DM=`@layer ui.components.epic-net-effect.types{:host{margin-block:.35em;display:block}:host([hidden]){display:none}:host(:state(disabled))>:not(slot){opacity:var(--ui-disabled-opacity,.45)}}@layer ui.components.epic-net-effect.content{.option{font-weight:400}.recommended{color:var(--epic-muted,var(--ui-text-muted))}::slotted(:is(p,ul,ol)){margin-block:.2em}::slotted(:is(ul,ol)){padding-inline-start:1.3em}::slotted(:last-child){margin-bottom:0}}`})),kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM=__esmMin((()=>{g(),EM(),OM(),P(),kM=(0,e.template)(`<span>`),AM=(0,e.template)(`<span>(<!><!>)`),jM=(0,e.template)(`<div><div><b><!><!></b></div><slot>`),IM=class _EpicNetEffect extends (PM=r.E.UIComponent,NM=[r.E.proto],MM=[r.E.protoMerged],PM){get hasQualifier(){return!!this.option||!!this.recommended}render(){let t=this;var r=jM(),i=r.firstChild,a=i.firstChild,o=a.firstChild,s=o.nextSibling,c=i.nextSibling;return(0,e.insert)(a,()=>t.translationForKey(`label`),o),(0,e.insert)(a,()=>t.hasQualifier?``:`:`,s),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.hasQualifier},get children(){return[` `,(()=>{var r=AM(),i=r.firstChild.nextSibling,a=i.nextSibling;return a.nextSibling,(0,e.insert)(r,()=>t.option,i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.recommended},get children(){return[(0,e.memo)(()=>t.option?`, `:``),(()=>{var n=kM();return(0,e.insert)(n,()=>t.translationForKey(`recommended`)),(0,e.effect)(()=>({e:(0,e.readShallow)(BM),t:t.partForName(`recommended`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n})()]}}),a),(0,e.effect)(()=>({e:(0,e.readShallow)(zM),t:t.partForName(`option`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r})(),`:`]}}),null),c._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(RM),o:t.partForName(`label`)}),({e:t,t:n,a,o},s)=>{(0,e.className)(r,t,s?.e),n!==s?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,a,s?.a),o!==s?.o&&(0,e.setAttribute)(i,`part`,o)}),r}},FM=__decoratorStart(PM),__decorateElement(FM,13,`vocabulary`,NM,IM),__decorateElement(FM,13,`elementSetup`,MM,IM),__decoratorMetadata(FM,IM),__name(IM,`EpicNetEffect`),__publicField(IM,`vocabulary`,__runInitializers(FM,8,IM,TM)),__runInitializers(FM,11,IM),__publicField(IM,`elementSetup`,__runInitializers(FM,12,IM,{styleSheets:{"epic-tooltip":N,"epic-net-effect":DM},disabled:`its own`,loading:`loader`})),__runInitializers(FM,15,IM),LM=IM,RM=`label`,zM=`option`,BM=`recommended`})),HM=__exportAll({EpicNetEffect:()=>LM}),UM=__esmMin((()=>{VM(),LM.define()})),WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN=__esmMin((()=>{WM=[`todo`,`question`,`issue`,`test`,`phase`],GM={todo:{icon:`list check`,label:`newTodo`,add:`addTodo`,tip:`newTodoTip`,section:`todos`},question:{icon:`circle question`,label:`newQuestion`,add:`addQuestion`,tip:`newQuestionTip`,section:`questions`},issue:{icon:`bug`,label:`newIssue`,add:`addIssue`,tip:`newIssueTip`,section:`issues`},test:{icon:`flask`,label:`newTest`,add:`addTest`,tip:`newTestTip`,section:`tests`},phase:{icon:`layer group`,label:`newPhase`,add:`addPhase`,tip:`newPhaseTip`,section:`phases`}},KM=`new-button`,qM=`new-form`,JM=`new-kinds`,YM=`new-input`,XM=`new-actions`,ZM=`epic-new-closed`,QM=[{key:`newTodo`,text:`Todo`,description:"Kind: a todo, work still to do (a caveat, epic `epic-engine` P32 to P44)."},{key:`newQuestion`,text:`Question`,description:`Kind: a question.`},{key:`newIssue`,text:`Issue`,description:`Kind: an issue.`},{key:`newTest`,text:`Manual test`,description:`Kind: a manual test, for you to try by hand.`},{key:`newPhase`,text:`Phase`,description:`Kind: a phase, which Claude drafts from its name and your note.`}],$M=[{key:`newButton`,text:`New todo, question, issue or manual test`,description:"The button's words without `adds`."},{key:`addTodo`,text:`New todo`,description:`The Todo section's button, at its end.`},{key:`addQuestion`,text:`New question`,description:`The Questions section's button, at its end.`},{key:`addIssue`,text:`New issue`,description:`The Issues section's button, at its end.`},{key:`addTest`,text:`New manual test`,description:`The Manual tests section's button, at its end.`},{key:`addPhase`,text:`Add phase`,description:"The Phases section's button, at its end (epic `epic-engine` P34)."},{key:`newForm`,text:`A new item, for Claude to add`,description:`The form, for a screen reader.`},{key:`newKind`,text:`What it is`,description:`The form's kind buttons, for a screen reader.`},{key:`newTitle`,text:`Title: what to do, or what to ask`,description:`The title field's placeholder.`},{key:`newNote`,text:`More, if it helps: why, what you know, what to check`,description:`The note field's placeholder.`},{key:`newNear`,text:`About (an id, if any): P3, Q7, O1, summary`,description:`The about field's placeholder.`},{key:`newAdd`,text:`Add`,description:`The form's button: a new one.`},{key:`newSave`,text:`Save`,description:`The form's button: one being changed.`},{key:`newCancel`,text:`Cancel`,description:`The form's button: closes it, nothing saved.`},{key:`newTodoTip`,text:`Make it a todo: work still to do`,description:`Kind button: its tooltip.`},{key:`newQuestionTip`,text:`Make it a question`,description:`Kind button: its tooltip.`},{key:`newIssueTip`,text:`Make it an issue`,description:`Kind button: its tooltip.`},{key:`newTestTip`,text:`Make it a manual test`,description:`Kind button: its tooltip.`},{key:`newPhaseTip`,text:`Make it a phase: Claude drafts it from its name and your note, for you to review`,description:`Kind button: its tooltip.`},{key:`newAddTip`,text:`Add: Claude puts it in the epic page`,description:`The form's Add: its tooltip.`},{key:`newSaveTip`,text:`Save your changes`,description:`The form's Save: its tooltip.`},{key:`newCancelTip`,text:`Cancel: close it, nothing saved`,description:`The form's Cancel: its tooltip.`},{key:`newNeedsTitle`,text:`Give it a title first`,description:`Add pressed with no title.`}],eN=[{key:`newUnsent`,text:`not sent yet: Send hands it to Claude`,description:`A pending new item, not sent.`},{key:`newSent`,text:`sent: Claude adds it at the next review`,description:`A pending new item, sent, not made yet.`},{key:`newAbout`,text:`About {id}`,description:`A pending new item's link to what it's about.`},{key:`newEdit`,text:`Edit`,description:`A pending new item's button: back into the form.`},{key:`newRemove`,text:`Remove`,description:`A pending new item's button: gone, never made.`}]})),nN,rN=__esmMin((()=>{tN(),nN={tag:`epic-new-item`,topics:[`forms`,`buttons`],aka:[`new item`,`new todo`,`new question`,`add todo`,`add question`,`ask`],skeleton:`inline 1 x 1`,noun:`new item`,ui:!1,description:"A new todo or question you ask for while you read (epic `airplane` P2), drawn by `<epic-page>` (the form its toolbar button opens) and a Todos or Questions `<epic-section>` (at its end), never written in a doc: a button, and while `open`, the form. What's asked for is a mark in the review inbox, made into an item by `epic inbox apply`.",attributes:[{name:`open`,kind:`boolean`,description:`The form shows. Its button sets it, or the page (the form alone); saving or cancelling the form clears it.`},{name:`adds`,kind:`enum`,values:WM,description:"A section's own kind: the form starts on it, and the button says it (`New todo`, `New question`, `Add phase`). Without it: the form starts on a todo."},{name:`near`,kind:`string`,description:"What the form's About starts with: an id (`p3`)."},{name:`editing`,kind:`string`,description:"The key of a waiting new item (`new1`): the form changes it (Save) instead of adding one."}],events:[{name:`epic-new-closed`,detail:`{ saved: boolean }`,description:"The form closed: saved (`saved`), or cancelled. `<epic-page>`, which opens it from its toolbar, lets go of it."}],slots:[],parts:[{name:`base`,description:`Its button and form.`},{name:`button`,description:"The button that opens the form: the `+` and its words."},{name:`form`,description:`The form: todo or question, its title, a note, what it's about, Add and Cancel.`}],states:[{name:`open`,description:`The form shows.`}],texts:[...QM,...$M],children:[]}})),iN,aN=__esmMin((()=>{iN=`@layer ui.components.epic-new-item{:host{--_epic-act-muted:var(--epic-muted,var(--ui-text-muted,GrayText));--_epic-act-ink:var(--ui-text-color,CanvasText);--_epic-act-paper:var(--ui-background,Canvas);--_epic-act-rule:var(--epic-rule,var(--ui-border-color,GrayText));--_epic-act-green:var(--ui-green,#00853a);--_epic-act-green-on:var(--ui-green-on,#fff);--_epic-act-person:var(--epic-voice-person-fill,color-mix(in oklab, var(--ui-violet,#6550ca) 5%, var(--ui-background,Canvas)));--_epic-act-person-ink:var(--epic-voice-person-text,var(--ui-violet-text,var(--ui-violet,#6550ca)));--_epic-act-focus:var(--ui-focus-color,Highlight);display:block}:host([hidden]){display:none}.base{display:contents}.new-button{box-sizing:border-box;min-width:var(--epic-control-size,28px);height:var(--epic-control-size,28px);border:1px solid var(--_epic-act-rule);color:var(--_epic-act-muted);font:inherit;cursor:pointer;background:0 0;border-radius:999px;flex:none;justify-content:center;align-items:center;gap:6px;padding:0;font-size:14px;line-height:1;display:inline-flex}.new-button[data-words]{margin:8px 0 2px;padding:0 12px 0 10px}.new-button:is(:hover,[aria-expanded=true]){border-color:var(--_epic-act-green);color:var(--_epic-act-green)}.new-button:focus-visible,.new-form button:focus-visible{outline:2px solid var(--_epic-act-focus);outline-offset:1px}.new-button ui-icon::part(icon),.new-form ui-icon::part(icon){width:auto;margin:0}.new-form{box-sizing:border-box;border:1px solid color-mix(in oklab, var(--_epic-act-person-ink) 30%, transparent);background:var(--_epic-act-person);border-radius:12px;flex-direction:column;gap:6px;width:100%;margin:8px 0 2px;padding:8px;font-size:15px;display:flex}.new-kinds{gap:4px;display:inline-flex}.new-form button{background:var(--_epic-act-paper);height:28px;box-shadow:inset 0 0 0 1px var(--_epic-act-rule);color:var(--_epic-act-ink);font:inherit;cursor:pointer;border:0;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 10px;font-size:13px;line-height:1;display:inline-flex}.new-kinds button[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--_epic-act-green);color:var(--_epic-act-green)}.new-form button[type=submit]{background:var(--_epic-act-green);box-shadow:none;color:var(--_epic-act-green-on)}.new-form button:disabled{opacity:.6;cursor:progress}.new-input{box-sizing:border-box;border:1px solid var(--_epic-act-rule);background:var(--_epic-act-paper);min-width:0;color:var(--_epic-act-ink);font:inherit;border-radius:6px;padding:4px 6px;line-height:1.4}.new-input:focus-visible{outline:2px solid var(--_epic-act-focus);outline-offset:0}.new-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.new-actions>.new-input{flex:12em}}`})),oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN=__esmMin((()=>{g(),Zn(),Uu(),rN(),tN(),aN(),P(),oN=(0,e.template)(`<span class=base><!><!>`),sN=(0,e.template)(`<button type=button data-words><ui-icon name=plus></ui-icon><span>`,1),cN=(0,e.template)(`<form><span role=group></span><input data-field=title type=text><epic-text-box data-field=note type=note max-height=50vh></epic-text-box><span><input data-field=near type=text><button type=submit data-color=green><ui-icon name=check></ui-icon></button><button type=button>`,1),lN=(0,e.template)(`<button type=button><ui-icon>`,1),DN=class _EpicNewItem extends (SN=r.E.UIComponent,xN=[r.E.proto],bN=[r.E.protoMerged],yN=[r.E.whileConnected],vN=[r.E.cssState(`open`),r.E.controlled(`open`)],_N=[r.E.state],gN=[r.E.state],hN=[r.E.untracked],mN=[r.E.untracked],pN=[r.E.onChange(`isOpen`,`editing`)],fN=[r.E.untracked],dN=[r.E.untracked],uN=[r.E.untracked],SN){constructor(){super(...arguments),__runInitializers(CN,5,this),__publicField(this,`review`,new Hu(()=>void 0)),__privateAdd(this,wN,__runInitializers(CN,8,this,!1)),__runInitializers(CN,11,this),__privateAdd(this,TN,__runInitializers(CN,12,this,`todo`)),__runInitializers(CN,15,this),__privateAdd(this,EN,__runInitializers(CN,16,this,!1)),__runInitializers(CN,19,this),__publicField(this,`titleInput`),__publicField(this,`noteInput`),__publicField(this,`nearInput`)}followReviews(){return this.review.connect()}render(){let t=this;var r=oN(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return!t.isOpen},get children(){return t.button()}}),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.isOpen)()?{item:t.waitingItem(t.editing)}:void 0},keyed:!0,children:e=>t.form(e.item)}),a),(0,e.effect)(()=>t.partForName(`base`),t=>{(0,e.setAttribute)(r,`part`,t)}),r}button(){let t=__name(()=>this.translationForKey(this.adds?GM[this.adds].add:`newButton`),`words`),n=this;var r=sN(),i=r.firstChild,a=i.nextSibling;return r._$$click=()=>n.isOpen=!n.isOpen,i._$owner=(0,e.getOwner)(),(0,e.insert)(a,t),(0,e.effect)(()=>({e:(0,e.readShallow)(KM),t:n.partForName(`button`),a:n.isOpen?`true`:`false`,o:t()}),({e:t,t:n,a:i,o:a},o)=>{(0,e.className)(r,t,o?.e),n!==o?.t&&(0,e.setAttribute)(r,`part`,n),i!==o?.a&&(0,e.setAttribute)(r,`aria-expanded`,i),a!==o?.o&&(0,e.setAttribute)(r,`title`,a)}),r}form(t){let r=this;var i=cN(),a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=s.nextSibling,l=c.firstChild,u=l.nextSibling,d=u.firstChild,f=u.nextSibling;return i._$$keydown=e=>r.onFormKey(e,t),i.addEventListener(`submit`,e=>{e.preventDefault(),r.save(t)}),(0,e.insert)(a,(0,e.createComponent)(n.For,{each:Ye,children:t=>(()=>{var n=lN(),i=n.firstChild;return n._$$click=()=>r.formKind=t,(0,e.setAttribute)(n,`data-kind`,t),i._$owner=(0,e.getOwner)(),(0,e.insert)(n,()=>r.translationForKey(GM[t].label),null),(0,e.effect)(()=>({e:r.formKind===t?`true`:`false`,t:r.translationForKey(GM[t].tip),a:GM[t].icon}),({e:t,t:r,a},o)=>{t!==o?.e&&(0,e.setAttribute)(n,`aria-pressed`,t),r!==o?.t&&(0,e.setAttribute)(n,`title`,r),a!==o?.a&&(0,e.setAttribute)(i,`name`,a)}),n})()})),(0,e.ref)(()=>e=>{r.titleInput=e,e.value=t?.title??``},o),(0,e.ref)(()=>e=>{r.noteInput=e,r.noteInput.value=t?.note??``},s),s._$owner=(0,e.getOwner)(),(0,e.ref)(()=>e=>r.onNearDrawn(e,t),l),d._$owner=(0,e.getOwner)(),(0,e.insert)(u,()=>r.translationForKey(t?`newSave`:`newAdd`),null),f._$$click=()=>r.close(),(0,e.insert)(f,()=>r.translationForKey(`newCancel`)),(0,e.effect)(()=>({e:(0,e.readShallow)(qM),t:r.partForName(`form`),a:r.translationForKey(`newForm`),o:(0,e.readShallow)(JM),i:r.translationForKey(`newKind`),n:(0,e.readShallow)(YM),s:`300`,h:r.translationForKey(`newTitle`),r:r.translationForKey(`newTitle`),d:r.translationForKey(`newNote`),l:r.translationForKey(`newNote`),u:(0,e.readShallow)(XM),c:(0,e.readShallow)(YM),w:r.translationForKey(`newNear`),m:r.translationForKey(`newNear`),f:r.isSaving,y:r.translationForKey(t?`newSaveTip`:`newAddTip`),g:r.translationForKey(`newCancelTip`)}),({e:t,t:n,a:r,o:d,i:p,n:m,s:h,h:g,r:_,d:v,l:y,u:b,c:x,w:S,m:ee,f:C,y:w,g:T},E)=>{(0,e.className)(i,t,E?.e),n!==E?.t&&(0,e.setAttribute)(i,`part`,n),r!==E?.a&&(0,e.setAttribute)(i,`aria-label`,r),(0,e.className)(a,d,E?.o),p!==E?.i&&(0,e.setAttribute)(a,`aria-label`,p),(0,e.className)(o,m,E?.n),h!==E?.s&&(0,e.setAttribute)(o,`maxlength`,h),g!==E?.h&&(0,e.setAttribute)(o,`placeholder`,g),_!==E?.r&&(0,e.setAttribute)(o,`aria-label`,_),v!==E?.d&&(0,e.setAttribute)(s,`placeholder`,v),y!==E?.l&&(0,e.setAttribute)(s,`label`,y),(0,e.className)(c,b,E?.u),(0,e.className)(l,x,E?.c),S!==E?.w&&(0,e.setAttribute)(l,`placeholder`,S),ee!==E?.m&&(0,e.setAttribute)(l,`aria-label`,ee),C!==E?.f&&(0,e.setAttribute)(u,`disabled`,C),w!==E?.y&&(0,e.setAttribute)(u,`title`,w),T!==E?.g&&(0,e.setAttribute)(f,`title`,T)}),i}onNearDrawn(e,t){this.nearInput=e,e.value=(t?.near??this.near??``).toUpperCase()}waitingItem(e){return e?this.review.newItems().find(t=>t.id===e):void 0}onOpened(e,t){e&&(this.formKind=this.waitingItem(t)?.kind??this.adds??`todo`,this.isSaving=!1,r.E.afterSolidUpdate(()=>this.titleInput?.focus({preventScroll:!0})))}onFormKey(e,t){e.key===`Escape`?(e.stopPropagation(),this.close()):e.key===`Enter`&&(e.metaKey||e.ctrlKey||e.target===this.titleInput)&&(e.preventDefault(),this.save(t))}async save(e){let t=this.review.client;if(!t||this.isSaving)return;let n=this.titleInput.value.trim();if(!n){this.titleInput.focus(),t.notify(this.translationForKey(`newNeedsTitle`));return}let r=this.noteInput.value.trim(),i=this.nearInput.value.trim().toLowerCase();this.isSaving=!0;let a=await t.saveNew({kind:this.formKind,title:n,...r?{note:r}:{},...i?{near:i}:{}},e?.id);this.isSaving=!1,a&&this.close({saved:!0})}close({saved:e=!1}={}){this.isOpen=!1,this.editing&&=void 0,this.send(ZM,{saved:e})}},CN=__decoratorStart(SN),wN=new WeakMap,TN=new WeakMap,EN=new WeakMap,__decorateElement(CN,1,`followReviews`,yN,DN),__decorateElement(CN,4,`isOpen`,vN,DN,wN),__decorateElement(CN,4,`formKind`,_N,DN,TN),__decorateElement(CN,4,`isSaving`,gN,DN,EN),__decorateElement(CN,1,`onNearDrawn`,hN,DN),__decorateElement(CN,1,`waitingItem`,mN,DN),__decorateElement(CN,1,`onOpened`,pN,DN),__decorateElement(CN,1,`onFormKey`,fN,DN),__decorateElement(CN,1,`save`,dN,DN),__decorateElement(CN,1,`close`,uN,DN),__decorateElement(CN,13,`vocabulary`,xN,DN),__decorateElement(CN,13,`elementSetup`,bN,DN),__decoratorMetadata(CN,DN),__name(DN,`EpicNewItem`),__publicField(DN,`vocabulary`,__runInitializers(CN,20,DN,nN)),__runInitializers(CN,23,DN),__publicField(DN,`elementSetup`,__runInitializers(CN,24,DN,{styleSheets:{"epic-tooltip":N,"epic-new-item":iN},delegatesFocus:!1})),__runInitializers(CN,27,DN),ON=DN,(0,e.delegateEvents)([`click`,`keydown`])})),AN=__exportAll({EpicNewItem:()=>ON}),jN=__esmMin((()=>{qr(),kN(),ON.define()})),MN,NN=__esmMin((()=>{MN={tag:`epic-note`,topics:[`documentation`,`messages`,`status`],aka:[`note`,`update`,`done`,`callout`,`notice`,`flag`],noun:`note`,ui:!1,description:"A small note in prose, by `state`: `update`, an orange card headed `UPDATE` (changed since you looked); `done`, a green one headed `DONE`. `title` follows the label (`UPDATE · partly fixed by J9, 2026-10-06`); the note is its children. Not `<epic-update>`, which belongs to a phase and goes when it's done: this one stays. Replaces the old hand-written `ui-message.plan-update`.",attributes:[{name:`state`,kind:`enum`,values:[`update`,`done`],required:!0,description:"`update` (orange: changed since you looked) or `done` (green: decided or done)."},{name:`title`,property:`epicTitle`,kind:`string`,description:"After the label, WITHOUT it: `partly fixed by J9, 2026-10-06`. None: the label alone."}],events:[],slots:[{name:``,description:`The note.`}],parts:[{name:`base`,description:"The card: orange (`update`) or green (`done`)."},{name:`header`,description:`Its heading: the fold chevron, the label, then the title; a click folds it.`},{name:`toggle`,description:"The fold chevron, a `<button>`, first in the heading; only with a body."},{name:`label`,description:"`UPDATE` or `DONE`."},{name:`body`,description:"The note; not drawn when empty; hidden (`until-found`) while folded."}],states:[{name:`open`,description:`Unfolded: it starts so (page state, never written).`}],texts:[{key:`foldTip`,text:`Close this note`,description:`Tooltip of its fold button while open.`},{key:`unfoldTip`,text:`Open this note`,description:`Tooltip of its fold button while folded.`},{key:`update`,text:`UPDATE`,description:"The label of an `update` note."},{key:`done`,text:`DONE`,description:"The label of a `done` note."}],children:[{tag:`flow`,description:`The note.`}],flow:!0}})),PN,FN=__esmMin((()=>{PN=`@layer ui.components.epic-note.types{:host{margin-block:var(--epic-part-gap,8px);display:block}:host([hidden]){display:none}:host(:state(disabled))>:not(slot){opacity:var(--ui-disabled-opacity,.45)}[part~=base]{max-width:var(--epic-note-width,44em);border:1px solid color-mix(in srgb, var(--_epic-note-hue) 40%, transparent);background:var(--_epic-note-fill);color:var(--epic-ink,var(--ui-text-color,CanvasText));border-radius:8px;overflow:hidden}.header{color:var(--_epic-note-ink);font:400 13px/1.4 var(--epic-sans,var(--ui-font-family,inherit));overflow-wrap:anywhere;padding:4px 10px 0}.label{letter-spacing:.06em;font-weight:700}.body{padding:2px 10px 7px}.body[hidden=until-found]{content-visibility:hidden;padding:0;display:block}.body.empty{display:none}.header:has(+.body:is(.empty,[hidden])){padding-bottom:4px}::slotted(:is(p,ul,ol)){margin-block:.35em}::slotted(:is(ul,ol)){padding-inline-start:1.2em}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0}}@layer ui.components.epic-note.variations{.update{--_epic-note-hue:var(--ui-orange,#f2711c);--_epic-note-fill:var(--ui-orange-background,light-dark(#fff1e6,#3a2616));--_epic-note-ink:var(--ui-orange-text,light-dark(#a3420b,#f6a46b))}.done{--_epic-note-hue:var(--ui-green,#21ba45);--_epic-note-fill:var(--ui-green-background,light-dark(#e8f7ec,#15301e));--_epic-note-ink:var(--ui-green-text,light-dark(#17702b,#7fd99a))}}`})),IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP=__esmMin((()=>{g(),Da(),NN(),FN(),Za(),P(),IN=(0,e.template)(`<div title><div><span></span><!></div><div><slot>`),LN=(0,e.template)(`<span>`),UN=class _EpicNote extends (VN=r.E.UIComponent,BN=[r.E.proto],zN=[r.E.protoMerged],RN=[r.E.cssState(`open`)],VN){constructor(){super(...arguments),__runInitializers(HN,5,this),__publicField(this,`slots`,new r.E.SlotContent(this.domElement)),__publicField(this,`fold`,new F(()=>!0))}get isOpen(){return this.fold.isOpen()}get hasBody(){return this.slots.hasContent(``)}get isDone(){return this.state===KN}get extraClass(){return this.isDone?KN:GN}render(){let t=this;var r=IN(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling,c=s.firstChild,l=t.fold.heading;typeof l==`function`||Array.isArray(l)?(0,e.ref)(()=>l,i):t.fold.heading=i,(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.hasBody},get children(){return t.fold.button({controls:tP,labelledBy:t.title?`${$N} ${eP}`:$N,part:t.partForName(`toggle`),tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)}})}}),a),(0,e.setAttribute)(a,`id`,$N),(0,e.insert)(a,()=>t.translationForKey(t.isDone?`done`:`update`)),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.title},children:t=>[qN,(()=>{var n=LN();return(0,e.setAttribute)(n,`id`,eP),(0,e.insert)(n,t),(0,e.effect)(()=>(0,e.readShallow)(XN),(t,r)=>{(0,e.className)(n,t,r)}),n})()]}),o),(0,e.setAttribute)(s,`id`,tP);var u=t.fold.watch;return typeof u==`function`||Array.isArray(u)?(0,e.ref)(()=>u,s):t.fold.watch=s,c._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)([JN,{[xa]:t.hasBody}]),o:t.partForName(`header`),i:(0,e.readShallow)(YN),n:t.partForName(`label`),s:(0,e.readShallow)([ZN,{[QN]:!t.hasBody}]),h:t.partForName(`body`),r:t.fold.hidden()}),({e:t,t:n,a:o,o:c,i:l,n:u,s:d,h:f,r:p},m)=>{(0,e.className)(r,t,m?.e),n!==m?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,o,m?.a),c!==m?.o&&(0,e.setAttribute)(i,`part`,c),(0,e.className)(a,l,m?.i),u!==m?.n&&(0,e.setAttribute)(a,`part`,u),(0,e.className)(s,d,m?.s),f!==m?.h&&(0,e.setAttribute)(s,`part`,f),p!==m?.r&&(0,e.setAttribute)(s,`hidden`,p)}),r}},HN=__decoratorStart(VN),__decorateElement(HN,2,`isOpen`,RN,UN),__decorateElement(HN,13,`vocabulary`,BN,UN),__decorateElement(HN,13,`elementSetup`,zN,UN),__decoratorMetadata(HN,UN),__name(UN,`EpicNote`),__publicField(UN,`vocabulary`,__runInitializers(HN,8,UN,MN)),__runInitializers(HN,11,UN),__publicField(UN,`elementSetup`,__runInitializers(HN,12,UN,{styleSheets:{"epic-tooltip":N,"epic-fold-button":Xa,"epic-note":PN},delegatesFocus:!1,disabled:`its own`,loading:`loader`})),__runInitializers(HN,15,UN),WN=UN,GN=`update`,KN=`done`,qN=` · `,JN=`header`,YN=`label`,XN=`title`,ZN=`body`,QN=`empty`,$N=`label`,eP=`title`,tP=`body`})),rP=__exportAll({EpicNote:()=>WN}),iP=__esmMin((()=>{nP(),WN.define()})),aP,oP=__esmMin((()=>{aP={tag:`epic-original`,topics:[`documentation`,`containers`],aka:[`original discussion`,`history`,`earlier versions`,`revisions`],noun:`original`,ui:!1,description:"An item's Original Discussion: the text a rewrite or a second answer replaced, one `<epic-version>` each, oldest first, folded. Ignored by everything that reads the item (options never counted, links never checked).",attributes:[],events:[],slots:[{name:``,description:`The versions.`}],parts:[{name:`base`,description:`The aside.`},{name:`toggle`,description:"Its `Original Discussion` `<button>`, which folds it."},{name:`body`,description:`The versions; hidden while folded.`}],states:[{name:`open`,description:`Unfolded (it starts folded).`}],texts:[{key:`foldTip`,text:`Fold the original discussion`,description:`Tooltip of its fold button while open.`},{key:`unfoldTip`,text:`Unfold the original discussion`,description:`Tooltip of its fold button while folded.`},{key:`original`,text:`Original Discussion`,description:`The aside's heading.`}],children:[{tag:`epic-version`,min:1,description:`The versions, oldest first.`}]}})),sP,cP=__esmMin((()=>{sP=`@layer ui.components.epic-original.types{:host{display:block}:host([hidden]){display:none}:host(epic-original){margin-top:var(--epic-part-gap,8px)}:host(epic-version:not(:first-of-type)){margin-top:10px}.original{border:1px dashed var(--epic-rule,var(--ui-border-color,light-dark(#d9d5e6,#3a3a44)));border-radius:10px}.toggle{width:100%;color:var(--ui-text-muted,GrayText);font:600 .9em / 1.35 var(--ui-font-family-heading,inherit);text-align:start;cursor:pointer;background:0 0;border:none;border-radius:12px;align-items:center;gap:6px;padding:7px 12px;display:flex}.toggle:focus-visible{outline:2px solid var(--ui-focus-color,Highlight);outline-offset:-2px}.chevron{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:12px;height:12px;color:var(--ui-text-muted,GrayText);flex:none;transition:rotate .12s}.original:has(>.body:not([hidden])) .chevron{rotate:90deg}.original>.body{padding:0 12px 10px 30px}.original>.body[hidden]{content-visibility:hidden;padding:0;display:block}.heading{color:var(--ui-text-muted,GrayText);letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px;font-size:.8em;font-weight:600;line-height:1.4}::slotted(:is(p,ul,ol)){margin-block:.35em}::slotted(:is(ul,ol)){padding-inline-start:1.2em}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0}}`})),lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP=__esmMin((()=>{g(),Da(),oP(),cP(),P(),lP=(0,e.template)(`<div><div><slot>`),hP=class _EpicOriginal extends (pP=r.E.UIComponent,fP=[r.E.proto],dP=[r.E.protoMerged],uP=[r.E.cssState(`open`)],pP){constructor(){super(...arguments),__runInitializers(mP,5,this),__publicField(this,`fold`,new F(()=>!1))}get isOpen(){return this.fold.isOpen()}render(){let t=this;var n=lP(),r=n.firstChild,i=r.firstChild;(0,e.insert)(n,()=>t.fold.button({className:_P,part:t.partForName(`toggle`),controls:yP,tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)},label:t.translationForKey(`original`),clicks:!0}),r),(0,e.setAttribute)(r,`id`,yP);var a=t.fold.watch;return typeof a==`function`||Array.isArray(a)?(0,e.ref)(()=>a,r):t.fold.watch=r,i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(vP),o:t.partForName(`body`),i:t.fold.hidden()}),({e:t,t:i,a,o,i:s},c)=>{(0,e.className)(n,t,c?.e),i!==c?.t&&(0,e.setAttribute)(n,`part`,i),(0,e.className)(r,a,c?.a),o!==c?.o&&(0,e.setAttribute)(r,`part`,o),s!==c?.i&&(0,e.setAttribute)(r,`hidden`,s)}),n}},mP=__decoratorStart(pP),__decorateElement(mP,2,`isOpen`,uP,hP),__decorateElement(mP,13,`vocabulary`,fP,hP),__decorateElement(mP,13,`elementSetup`,dP,hP),__decoratorMetadata(mP,hP),__name(hP,`EpicOriginal`),__publicField(hP,`vocabulary`,__runInitializers(mP,8,hP,aP)),__runInitializers(mP,11,hP),__publicField(hP,`elementSetup`,__runInitializers(mP,12,hP,{styleSheets:{"epic-tooltip":N,"epic-original":sP},delegatesFocus:!1})),__runInitializers(mP,15,hP),gP=hP,_P=`toggle`,vP=`body`,yP=`body`})),xP,SP=__esmMin((()=>{xP={tag:`epic-version`,topics:[`documentation`,`content parts`],aka:[`version`,`revision`,`earlier text`],noun:`version`,ui:!1,description:"One earlier version of an item's text: headed `As first written` (undated) or `As of <as-of>`; ids inside are `data-original-id`s, so nothing links into it.",attributes:[{name:`as-of`,kind:`string`,format:`time`,description:"When it was replaced (`2026-10-04 20:49`, drawn `10/4/26 20:49`); absent on the first version, as first written."}],events:[],slots:[{name:``,description:`The text, as it was.`}],parts:[{name:`base`,description:`The version.`},{name:`heading`,description:"`As first written` / `As of <as-of>`: none on a lone first version."},{name:`body`,description:`The text, as it was.`}],states:[],texts:[{key:`firstWritten`,text:`As first written`,description:`The first version's heading, once there's a second.`},{key:`asOf`,text:`As of {asOf}`,description:`A later version's heading: when it was replaced.`}],children:[{tag:`epic-question`,max:1,description:`A question's text as first asked, moved here by a rewrite.`},{tag:`flow`,description:`The text, as it was.`},{tag:`epic-answer`,max:1,description:`Its answer card, as it was (P14: hand-written ones converted).`},{tag:`epic-reply`,description:`Its replies, as they were (P14: hand-written ones converted).`}]}})),CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP=__esmMin((()=>{g(),sr(),SP(),cP(),P(),CP=(0,e.template)(`<div>`),wP=(0,e.template)(`<div><div><slot>`),MP=class _EpicVersion extends (kP=r.E.UIComponent,OP=[r.E.proto],DP=[r.E.protoMerged],EP=[r.E.state],TP=[r.E.whileConnected],kP){constructor(){super(...arguments),__runInitializers(AP,5,this),__privateAdd(this,jP,__runInitializers(AP,8,this,this.countVersions())),__runInitializers(AP,11,this)}get heading(){let e=this.asOf;return e?this.translationForKey(`asOf`,{asOf:M.format(e)}):this.versionCount>1?this.translationForKey(`firstWritten`):void 0}watchVersions(){let e=this.domElement.parentElement;if(!e)return;let t=new MutationObserver(()=>this.versionCount=this.countVersions());return t.observe(e,{childList:!0}),this.versionCount=this.countVersions(),()=>t.disconnect()}render(){let t=this;var r=wP(),i=r.firstChild,a=i.firstChild;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.heading},get children(){var n=CP();return(0,e.insert)(n,()=>t.heading),(0,e.effect)(()=>({e:(0,e.readShallow)(FP),t:t.partForName(`heading`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),i),a._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(IP),o:t.partForName(`body`)}),({e:t,t:n,a,o},s)=>{(0,e.className)(r,t,s?.e),n!==s?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,a,s?.a),o!==s?.o&&(0,e.setAttribute)(i,`part`,o)}),r}countVersions(){return this.domElement.parentElement?.querySelectorAll(`:scope > ${PP}`).length??1}},AP=__decoratorStart(kP),jP=new WeakMap,__decorateElement(AP,4,`versionCount`,EP,MP,jP),__decorateElement(AP,1,`watchVersions`,TP,MP),__decorateElement(AP,13,`vocabulary`,OP,MP),__decorateElement(AP,13,`elementSetup`,DP,MP),__decoratorMetadata(AP,MP),__name(MP,`EpicVersion`),__publicField(MP,`vocabulary`,__runInitializers(AP,12,MP,xP)),__runInitializers(AP,15,MP),__publicField(MP,`elementSetup`,__runInitializers(AP,16,MP,{styleSheets:{"epic-tooltip":N,"epic-original":sP},delegatesFocus:!1})),__runInitializers(AP,19,MP),NP=MP,PP=`epic-version`,FP=`heading`,IP=`body`})),RP=__exportAll({EpicOriginal:()=>gP,EpicVersion:()=>NP}),zP=__esmMin((()=>{bP(),LP(),gP.define(),NP.define()})),BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,Z,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF=__esmMin((()=>{g(),ef(),aM(),Zl(),Da(),IE(),ex(),BP=(0,e.template)(`<span slot=icon class=icon>`),VP=(0,e.template)(`<p>`),HP=(0,e.template)(`<div title><ui-section sticky collapsible><span slot=label class=header><span class=words></span></span><span slot=actions class=tools><slot></slot></span><div><!><slot></slot><!>`,1),UP=(0,e.template)(`<epic-stage-button>`,1),WP=(0,e.template)(`<ui-dropdown direction=left><ui-button slot=trigger appearance="circular basic"size=mini icon=gear tabindex=-1></ui-button><span slot=icon>`,1),GP=(0,e.template)(`<ui-item>`,1),hF=class _DOMEpicFoldElement extends (qP=t.E.DOMLoadableBodyElement,KP=[t.E.untracked],qP){constructor(){super(...arguments),__runInitializers(JP,5,this)}get contentsEntry(){return this.component?.contentsEntry()}},JP=__decoratorStart(qP),__decorateElement(JP,2,`contentsEntry`,KP,hF),__decoratorMetadata(JP,hF),__name(hF,`DOMEpicFoldElement`),gF=hF,_F=class _EpicFold extends (fF=t.E.UIComponent,dF=[t.E.protoMerged],uF=[t.E.cssState(`open`),t.E.controlled(`open`)],lF=[t.E.untracked],cF=[t.E.untracked],sF=[t.E.untracked],oF=[t.E.untracked],aF=[t.E.on(`ui-opening`,{target:`renderRoot`}),t.E.on(`ui-closing`,{target:`renderRoot`})],iF=[t.E.onChange(`isOpen`,`inner`)],rF=[t.E.on(Gl,{target:`renderRoot`})],nF=[t.E.state],tF=[t.E.untracked],eF=[t.E.onChange(`source`,`isOpen`,`isConnected`)],$P=[t.E.cssState(`loaded`)],QP=[t.E.cssState(`error`)],ZP=[t.E.untracked],XP=[t.E.whileConnected],YP=[t.E.untracked],fF){constructor(){super(...arguments),__runInitializers(Z,5,this),__publicField(this,`slots`,new t.E.SlotContent(this.domElement)),__privateAdd(this,pF,__runInitializers(Z,8,this,!1)),__runInitializers(Z,11,this),__publicField(this,`disclosure`,new t.E.Disclosure({component:this,member:`isOpen`,detail:__name((e,t)=>({open:e,element:this.domElement,originalEvent:t}),`detail`)})),__publicField(this,`watchInner`,__name(e=>{let t=e;t.ready.then(()=>this.inner=t.component),e.addEventListener(`click`,t=>this.onTitleRowClick(t,e)),e.addEventListener(`keydown`,t=>this.onToggleKey(t,e))},`watchInner`)),__privateAdd(this,mF,__runInitializers(Z,12,this)),__runInitializers(Z,15,this),__publicField(this,`body`,new t.E.LoadableBody({domElement:this.domElement,source:__name(()=>this.partSource(),`source`),select:__name(()=>void 0,`select`),target:__name(()=>this.domElement,`target`),send:__name((e,t)=>this.send(e,t),`send`),loadText:__name((e,t)=>FE.loadText(e,t),`loadText`)})),__publicField(this,`hasFollowedHash`,!1),__publicField(this,`followHash`,__runInitializers(Z,20,this,__name(()=>{let e=Gd.landing(document,decodeURIComponent(location.hash.slice(1)));if(!e)return;let t=(this.foldAttrs.partIds??``).split(/\s+/),n=document.getElementById(e),r=!!n&&n!==this.domElement&&this.domElement.contains(n);(n===this.domElement||r||t.includes(e))&&this.reveal()},`followHash`))),__runInitializers(Z,23,this)}toggle(e){return this.disclosure.toggle(e)}reveal(){return this.disclosure.adopt(!0),this.foldAttrs.source?this.body.load().catch(()=>void 0):Promise.resolve()}collapse(){return this.disclosure.close()}expand(){return this.disclosure.open()}toggleDeep(){this.isOpen?this.foldAll():this.expandAll()}foldAll(){return this.collapseAll()+ +!!this.collapse()}collapseAll(){return this.keepTitlePut(),foldAllUnder(this.domElement)+this.foldOwnBoxes()}async expandAll(){let e=+!!this.expand();if(!this.isOpen)return 0;this.foldAttrs.source&&await this.body.load().catch(()=>void 0);for(let t=0;t<SF;t++){let t=expandAllUnder(this.domElement,{cards:!0}),n=Array.from(this.domElement.querySelectorAll(`[${wF}]`),e=>{let t=e.component;return t?.loadBody?t.loadBody().catch(()=>void 0):Promise.resolve()});if(await Promise.all(n),e+=t,!t)break}return e}foldOwnBoxes(){return 0}keepTitlePut(){let e=this.inner?.stickTop;if(e===void 0)return;let t=this.domElement.getBoundingClientRect().top;t>=e-1||window.scrollTo({top:window.scrollY+t-e,behavior:`instant`})}onToggleKey(e,t){_EpicFold.titleRowPath(e,t)?.some(e=>_EpicFold.hasPart(e,`toggle`))&&F.deepKey(e)&&this.toggleDeep()}static titleRowPath(e,t){let n=e.composedPath(),r=n.findIndex(e=>e instanceof Element&&e.getRootNode()===t.shadowRoot&&_EpicFold.hasPart(e,`title`));return r<0?void 0:n.slice(0,r).filter(e=>e instanceof Element)}onTitleRowClick(e,t){if(e.defaultPrevented)return;let n=_EpicFold.titleRowPath(e,t);if(!n)return;for(let e of n)if(_EpicFold.hasPart(e,`toggle`)||e.matches(CF)||e.localName===`slot`&&e.getRootNode()===this.domElement.renderRoot&&e.matches(Ca))return;let r=window.getSelection();r&&!r.isCollapsed&&String(r)||(F.isDeep(e)?this.toggleDeep():this.toggle(e))}static hasPart(e,t){return(e.getAttribute(`part`)??``).split(/\s+/).includes(t)}onInnerToggle(e){let t=e.detail,n=e.target;if(n.getRootNode()===e.currentTarget&&t?.section===n){if(e.stopPropagation(),!e.cancelable){this.reveal();return}e.preventDefault(),F.isDeep(t.originalEvent)?this.toggleDeep():this.toggle(t.originalEvent)}}onTipShown(e,t){t&&(t.toggleTipMore=e?_a.fold:_a.open)}onShowNote(e){stopIfOwn(e)&&this.reveal()}get page(){return this.isConnected?this.domElement.closest(Kj.TAG):null}get offset(){let e=this.page;return e?Kj.signalsOf(e).top.get():0}get stack(){return this.inner?.innerStackTop??this.offset}get layout(){let e=this.page;return e?Kj.signalsOf(e).layout.get():0}get pageLinked(){let e=this.page;return e?Kj.signalsOf(e).linked:void 0}partSource(){return this.foldAttrs.source||void 0}onSourceShown(e,t,n){e&&t&&n&&this.body.load().catch(()=>void 0)}get isVeiled(){return!e.isServer&&!!this.foldAttrs.source&&this.body.isVeiled}get bodyIsLoaded(){return this.body.loadStatus===t.E.SourceStatus.loaded}get bodyFailed(){return this.body.loadStatus===t.E.SourceStatus.error}get failureText(){let e=this.body.loadError;if(!e)return;let t=this.foldAttrs.source??``;return this.translationForKey(e.kind===`file-protocol`?`partNote`:`partError`,{source:t})}loadBody(){return this.body.load()}reloadBody(){return this.body.reload()}get foldAttrs(){return this}renderFold(t){let r=this;var i=HP(),a=i.firstChild,o=a.firstChild,s=o.firstChild,c=o.nextSibling,l=c.firstChild,u=c.nextSibling,d=u.firstChild,f=d.nextSibling,p=f.nextSibling,m=r.watchInner;return typeof m==`function`||Array.isArray(m)?(0,e.ref)(()=>m,a):r.watchInner=a,a._$owner=(0,e.getOwner)(),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.icon},get children(){var n=BP();return(0,e.insert)(n,()=>t.icon()),n}}),o),(0,e.insert)(s,()=>t.title()),(0,e.insert)(o,()=>t.mark?.(),null),l._$owner=(0,e.getOwner)(),(0,e.insert)(c,()=>t.tools?.(),null),(0,e.insert)(u,(0,e.createComponent)(n.Show,{get when(){return r.failureText},get children(){var t=VP();return(0,e.insert)(t,()=>r.failureText),(0,e.effect)(()=>({e:(0,e.readShallow)(Ib),t:r.partForName(`note`)}),({e:n,t:r},i)=>{(0,e.className)(t,n,i?.e),r!==i?.t&&(0,e.setAttribute)(t,`part`,r)}),t}}),d),(0,e.insert)(u,()=>t.before?.(),f),f._$owner=(0,e.getOwner)(),(0,e.insert)(u,()=>t.after?.(),p),(0,e.effect)(()=>({e:(0,e.readShallow)(r.rootClass),t:r.partForName(`base`),a:(0,e.readShallow)(r.foldStyle()),o:r.partForName(`section`),i:r.isOpen&&!r.isVeiled?void 0:`false`,n:r.body.isBusy?``:void 0,s:r.offset,h:t.badge?.()||void 0,r:r.partForName(`tools`),d:r.slotForName(`actions`),l:(0,e.readShallow)(Fb),u:r.partForName(`body`),c:{[wb]:`${r.stack}px`}}),({e:t,t:n,a:r,o,i:s,n:d,s:f,h:p,r:m,d:h,l:g,u:_,c:v},y)=>{(0,e.className)(i,t,y?.e),n!==y?.t&&(0,e.setAttribute)(i,`part`,n),(0,e.style)(i,r,y?.a),o!==y?.o&&(0,e.setAttribute)(a,`part`,o),s!==y?.i&&(0,e.setAttribute)(a,`open`,s),d!==y?.n&&(0,e.setAttribute)(a,`loading`,d),f!==y?.s&&(0,e.setAttribute)(a,`offset`,f),p!==y?.h&&(0,e.setAttribute)(a,`badge`,p),m!==y?.r&&(0,e.setAttribute)(c,`part`,m),h!==y?.d&&(0,e.setAttribute)(l,`name`,h),(0,e.className)(u,g,y?.l),_!==y?.u&&(0,e.setAttribute)(u,`part`,_),(0,e.style)(u,v,y?.c)}),i}get hasActions(){return this.slots.hasContent(this.slotForName(`actions`))}foldStyle(){}renderStageButton(t,r){let i=__name(()=>(this.layout,r()&&Vd.of(this.page)===t),`shown`),a=__name(()=>(this.layout,Vd.openQuestions(this.page)),`open`),o=this;return(0,e.createComponent)(n.Show,{get when(){return i()},get children(){var n=UP();return(0,e.setAttribute)(n,`stage`,t),n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:a(),t:o.partForName(`stage-button`)}),({e:t,t:r},i)=>{t!==i?.e&&(0,e.setAttribute)(n,`open`,t),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}})}renderGear(t){let r=this;var i=WP(),a=i.firstChild;return a.nextSibling,(0,e.setAttribute)(i,`on-ui-changed`,e=>r.onGearPick(e,t)),i._$owner=(0,e.getOwner)(),a._$owner=(0,e.getOwner)(),(0,e.insert)(i,(0,e.createComponent)(n.For,{get each(){return t.entries()},keyed:e=>e.value,children:t=>(()=>{var n=GP();return n._$owner=(0,e.getOwner)(),(0,e.insert)(n,()=>t().text),(0,e.effect)(()=>({e:t().value,t:t().isOn?bF:xF}),({e:t,t:r},i)=>{t!==i?.e&&(0,e.setAttribute)(n,`value`,t),r!==i?.t&&(0,e.setAttribute)(n,`icon`,r)}),n})()}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(yF),t:r.partForName(`gear`),a:t.title(),o:t.title(),i:t.title()}),({e:t,t:n,a:r,o,i:s},c)=>{(0,e.className)(i,t,c?.e),n!==c?.t&&(0,e.setAttribute)(i,`part`,n),r!==c?.a&&(0,e.setAttribute)(i,`title`,r),o!==c?.o&&(0,e.setAttribute)(i,`aria-label`,o),s!==c?.i&&(0,e.setAttribute)(a,`aria-label`,s)}),i}onGearPick(e,n){let r=String(e.detail.value),i=e.currentTarget;r&&n.pick(r),t.E.afterSolidUpdate(()=>i.value=``)}contentsEntry(){return{label:_EpicFold.titleText(this.domElement)}}static titleText(e){return(e.querySelector(`:scope > [slot="title"]`)?.textContent??e.getAttribute(`title`)??e.id).replace(/\s+/g,` `).trim()}watchHash(){let e=new AbortController;return window.addEventListener(`hashchange`,this.followHash,{signal:e.signal}),this.hasFollowedHash||(this.hasFollowedHash=!0,this.followHash()),()=>e.abort()}},Z=__decoratorStart(fF),pF=new WeakMap,mF=new WeakMap,__decorateElement(Z,4,`isOpen`,uF,_F,pF),__decorateElement(Z,1,`toggleDeep`,lF,_F),__decorateElement(Z,1,`foldAll`,cF,_F),__decorateElement(Z,1,`collapseAll`,sF,_F),__decorateElement(Z,1,`expandAll`,oF,_F),__decorateElement(Z,1,`onInnerToggle`,aF,_F),__decorateElement(Z,1,`onTipShown`,iF,_F),__decorateElement(Z,1,`onShowNote`,rF,_F),__decorateElement(Z,4,`inner`,nF,_F,mF),__decorateElement(Z,1,`partSource`,tF,_F),__decorateElement(Z,1,`onSourceShown`,eF,_F),__decorateElement(Z,2,`bodyIsLoaded`,$P,_F),__decorateElement(Z,2,`bodyFailed`,QP,_F),__decorateElement(Z,1,`onGearPick`,ZP,_F),__decorateElement(Z,1,`watchHash`,XP,_F),__decorateElement(Z,13,`elementSetup`,dF,_F),__decorateElement(Z,5,`followHash`,YP,_F),__decoratorMetadata(Z,_F),__name(_F,`EpicFold`),__publicField(_F,`elementSetup`,__runInitializers(Z,16,_F,{DOMElement:gF,delegatesFocus:!1})),__runInitializers(Z,19,_F),vF=_F,yF=`gear`,bF=`check`,xF=``,SF=6,CF=`a[href], button, input, select, textarea, label, summary, [role='button'], [contenteditable], ui-button, ui-dropdown, epic-review, epic-stage-button`,wF=`source`})),EF,DF=__esmMin((()=>{Zl(),fa(),ex(),EF={tag:`epic-overview`,topics:[`documentation`,`containers`],aka:[`summary`,`introduction`,`kickoff`],noun:`overview`,ui:!1,description:"An epic page's Overview: the two-sentence summary, the prompt that started the plan, the total estimate, then the substance in numbered sub-sections. While the page is reviewed, it takes review notes on its title row (Make Todo, Revisit), keyed `summary` in the review inbox.",attributes:[{name:`id`,property:`epicId`,kind:`enum`,values:[`overview`],required:!0,description:"Always `overview`: links land on it (`#overview`)."},{name:`estimate`,kind:`string`,description:"The total estimate, as the script adds it up from the phases (`4h-5h 30m in all, 2h-3h left (P5 not estimated)`). Absent before the first phase."},yb],events:[...bb],slots:[{name:``,description:'The summary (`<epic-summary>`), the Kickoff prompt (`<epic-prompt>`), then the sub-sections (`<epic-section kind="overview-part">`s).'},{name:`summary`,description:'The summary in older docs: `<p slot="summary">`; `<epic-summary>` since P14.'},{name:`prompt`,description:'The prompt in older docs: `<blockquote slot="prompt">`, drawn folded; `<epic-prompt>` since P14, which folds itself.'},la],parts:[...xb,{name:`prompt`,description:"An older doc's folded Kickoff prompt: a `<details>` around the `prompt` slot (`<epic-prompt>` draws its own)."},{name:`estimate`,description:`The estimate line.`},{name:`stage-button`,description:'"Accept Overview" (an `<epic-stage-button>`, epic `epic-engine` I180), last on its title row: only while the page is reviewed and agrees its Overview (`<epic-page stage="overview">`). A press accepts the Overview, and sends; outlined green until the session moves the page on.'},...Jl],states:[...Sb],texts:[{key:`promptTip`,text:`Fold or unfold the kickoff prompt`,description:`The prompt fold's tooltip.`},...Cb,{key:`title`,text:`Overview`,description:`Its title, after its number.`},{key:`prompt`,text:`Kickoff prompt`,description:`The folded prompt's title.`},{key:`estimate`,text:`Estimate:`,description:`Before the estimate.`},{key:`reviewLabel`,text:`the Overview`,description:"Its name in the review controls' words (`Review the Overview`, `the Overview: your note`); keyed `summary` in the review inbox."}],children:[ua,{tag:`flow`,slot:`summary`,max:1,description:`The summary, in older docs.`},{tag:`flow`,slot:`prompt`,max:1,description:`The kickoff prompt, in older docs.`},{tag:`epic-summary`,max:1,description:`The summary, two sentences.`},{tag:`epic-prompt`,max:1,description:`The kickoff prompt, as typed.`},{tag:`flow`,description:`Prose before the sub-sections (older docs).`},{tag:`epic-section`,where:{attribute:`kind`,values:[`overview-part`]},description:"The sub-sections, `o1`, `o2` ..."}],childOrder:`listed`}})),OF,kF=__esmMin((()=>{OF=`@layer ui.components.epic-fold.types{:host{margin-inline:calc(-1 * var(--_epic-fold-bleed,0px));display:block}:host([hidden]){display:none}:host(:not(:state(open))){border-bottom:1px solid var(--epic-rule,var(--ui-border-color))}:host(:state(open)){margin-block-end:var(--_epic-fold-gap,28px)}}@layer ui.components.epic-fold.content{:host(:is(epic-overview,epic-section:not([kind=overview-part]))) ui-section{--ui-section-stuck-shadow:var(--epic-bar-shadow,none)}:host(:is(epic-overview,epic-section:not([kind=overview-part])):state(open)) ui-section::part(title){border-end-end-radius:var(--epic-section-radius,14px);border-end-start-radius:var(--epic-section-radius,14px);box-shadow:0 1px light-dark(#281e5a2e,#000000a6),0 -1px light-dark(#281e5a14,#00000073)}:host(:is(epic-overview,epic-section:not([kind=overview-part]))) ui-section::part(title){margin-inline:max(0px, calc(var(--epic-inset,16px) - var(--epic-card-inset,16px)));padding-inline:min(var(--epic-inset,16px), var(--epic-card-inset,16px)) var(--_epic-fold-end)}:host(:is(epic-overview,epic-section:not([kind=overview-part])):state(open)) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-start-end-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px))}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-start-end-radius:var(--epic-section-top-radius,var(--epic-section-radius,14px));border-end-end-radius:var(--epic-section-bottom-radius,var(--epic-section-radius,14px));border-end-start-radius:var(--epic-section-bottom-radius,var(--epic-section-radius,14px))}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))){border-bottom:none}:host(:is(epic-overview,epic-section:not([kind=overview-part])):not(:state(open))) ui-section::part(title){border-bottom:1px solid var(--epic-rule,var(--ui-border-color))}ui-section{--ui-section-margin:0;--ui-section-dividing-border:none;--ui-section-title-padding:10px var(--_epic-fold-end) 10px var(--epic-inset,16px);--ui-section-title-gap:10px;--ui-section-title-color:var(--_epic-fold-title-color,var(--epic-heading-ink,var(--ui-text-color)));--ui-section-title-line-height:1.25;--ui-section-h2:1.5;--ui-section-h3:1.15;--ui-section-h4:1;--ui-section-content-padding:12px var(--epic-inset,16px) 0;--ui-section-sticky-background:linear-gradient(var(--_epic-fold-band,transparent), var(--_epic-fold-band,transparent)) var(--epic-bg,var(--ui-background));--ui-section-stuck-shadow:none;--ui-section-z-index:4;--ui-section-fold-icon-size:12px;--ui-section-tip-width:340px;--ui-font-family-heading:var(--epic-serif,var(--ui-font-family-heading));display:block}ui-section::part(title){letter-spacing:-.012em;align-items:flex-start}ui-section::part(toggle){align-items:flex-start;width:fit-content;max-width:100%}ui-section::part(title),ui-section::part(badge),ui-section::part(actions){cursor:pointer}ui-section{--_epic-fold-line:calc(var(--ui-font-size,16px) * var(--ui-section-h2) * var(--ui-section-title-line-height));--_epic-fold-end:var(--epic-title-end,12px)}ui-section::part(icon),ui-section::part(badge),ui-section::part(fold-icon){translate:0 calc((var(--_epic-fold-line) - 100%) / 2);align-self:flex-start}ui-section::part(actions){height:var(--_epic-fold-line);align-self:flex-start}ui-section::part(icon){color:var(--epic-accent,var(--ui-link))}ui-section::part(fold-icon){color:var(--epic-muted,var(--ui-text-muted))}ui-section::part(header){overflow-wrap:break-word}ui-section::part(badge){box-sizing:border-box;background:var(--epic-card,var(--ui-surface));height:22px;box-shadow:inset 0 0 0 1px var(--epic-rule,var(--ui-border-color));color:var(--epic-muted,var(--ui-text-muted));font:600 12px/1 var(--epic-sans,var(--ui-font-family));font-variant-numeric:tabular-nums;letter-spacing:0;border-radius:999px;flex:none;align-items:center;padding:0 8px;display:inline-flex}ui-section::part(actions){flex:none;align-items:center;display:inline-flex}ui-section::part(content){overflow-clip-margin:6px;line-height:1.6;overflow:clip}.tools{align-items:center;gap:2px;display:inline-flex}.gear{--ui-dropdown-icon-column:1;flex:none;margin-inline-start:4px}.gear::part(icon){display:none}.gear::part(text){line-height:1;display:flex}.gear>ui-button{--ui-button-circular-min-width:24px;--ui-button-basic-border-width:0px}.gear>ui-button::part(button){box-sizing:border-box;width:24px;height:24px;min-height:0;color:var(--epic-muted,var(--ui-text-muted));place-items:center;margin:0;padding:0;font-size:12px;line-height:1;display:inline-grid}.gear>ui-button::part(icon){margin:0}.gear:hover>ui-button::part(button){color:var(--epic-ink,var(--ui-text-color))}.icon{justify-content:center;align-items:center;display:inline-flex}.icon svg{fill:currentColor;width:auto;height:.9em;display:block}ui-section::part(header){min-width:0;display:flex}.header{align-items:baseline;min-width:0;display:flex}.words{min-width:0}.header>:not(.words){flex:none}.header,.icon,ui-section::part(header),ui-section::part(icon){pointer-events:none}.body{display:block}:host(:is(epic-phase,[kind=overview-part]):state(open)){margin-block:0 10px}:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section::part(title){box-shadow:var(--epic-bar-shadow,0 1px 0 light-dark(#281e5a14,#00000073))}:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section:not(:state(stuck))::part(title),:host(:is(epic-phase,[kind=overview-part]):state(open)) ui-section:state(stuck)::part(title){border-end-end-radius:var(--epic-drawer-radius,8px);border-end-start-radius:var(--epic-drawer-radius,8px)}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body{margin:0 var(--epic-drawer-inset,4px);padding:10px calc(var(--epic-inset,16px) - var(--epic-drawer-inset,4px) - 1px) 10px;border:1px solid var(--epic-rule,var(--ui-border-color));background:var(--epic-drawer-fill,light-dark(#ffffff47,#ffffff05));border-top:none;border-end-end-radius:var(--epic-drawer-radius,8px);border-end-start-radius:var(--epic-drawer-radius,8px)}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body>[part~=note-box]:last-child{margin-inline:calc(var(--epic-drawer-inset,4px) - var(--epic-inset,16px));margin-block-end:-11px}.body>[part~=note-box]{z-index:1;position:sticky;bottom:4px}:host(:is(epic-phase,[kind=overview-part]):state(open)) .body>[part~=note-box]:last-child::part(base){--epic-note-radius-top:10px;--epic-note-radius-bottom:var(--epic-drawer-radius,8px);margin:8px 0 0}.note{color:var(--epic-muted,var(--ui-text-muted));margin:0 0 8px;font-size:14px;font-style:italic}@container epic-page (width<=480px){ui-section{--ui-section-h2:1.25;--ui-section-h3:1.05;--ui-section-title-gap:8px;--ui-section-tip-width:240px}}}`})),AF,jF=__esmMin((()=>{AF=`@layer ui.components.epic-overview.content{:host{--_epic-fold-band:var(--epic-band-section,transparent);--_epic-fold-gap:var(--epic-overview-gap,28px)}.body{flex-direction:column;display:flex}.estimate{order:1}::slotted(:not([slot],epic-summary,epic-prompt)){order:2}::slotted(epic-threads:first-child){order:0}[part~=said],[part~=note-box]{margin:0 0 14px;font-size:15px;display:block}::slotted([slot=summary]){max-width:72ch;color:var(--epic-heading-ink,var(--ui-text-color));font:400 17px/1.6 var(--epic-sans,var(--ui-font-family));text-wrap:pretty;margin:0 0 14px}.prompt{border:1px solid var(--epic-voice-person-rule,color-mix(in oklab, var(--ui-violet,#6550ca) 26%, transparent));background:var(--epic-voice-person-fill,color-mix(in oklab, var(--ui-violet,#6550ca) 5%, var(--ui-background,Canvas)));border-radius:10px;margin:0 0 14px}.prompt>summary{color:var(--epic-heading-ink,var(--ui-text-color));font:italic 400 15px/1.4 var(--epic-serif,var(--ui-font-family-heading));cursor:pointer;border-radius:10px;align-items:center;gap:8px;padding:7px 12px;list-style:none;display:flex}.prompt>summary::-webkit-details-marker{display:none}.prompt>summary:focus-visible{outline:2px solid var(--ui-focus-color,var(--epic-accent));outline-offset:1px}.chevron{width:12px;height:12px;color:var(--epic-muted,var(--ui-text-muted));transition:rotate var(--epic-turn-duration,.15s);flex:none;justify-content:center;align-items:center;display:inline-flex}.chevron svg{fill:currentColor;width:100%;height:100%;display:block}.prompt[open] .chevron{rotate:90deg}::slotted(blockquote[slot=prompt]){background:var(--epic-card,var(--ui-surface));box-shadow:0 0 0 1px var(--epic-rule,var(--ui-border-color));border-radius:12px;margin:2px 12px 12px;padding:10px 16px;font-size:15px}.estimate{grid-template-columns:1.25em minmax(0,1fr);column-gap:8px;margin:0 0 14px;font-size:15px;line-height:1.5;display:grid}.estimate>.icon{height:1lh;color:var(--epic-accent,var(--ui-link));justify-content:center;align-items:center;display:inline-flex}.estimate>.icon svg{height:14px}}`})),MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF=__esmMin((()=>{g(),Zn(),Uu(),TF(),DF(),kF(),jF(),P(),MF=(0,e.template)(`<slot>`),NF=(0,e.template)(`<details><summary><span class=chevron aria-hidden=true></span></summary><slot>`),PF=(0,e.template)(`<p><span class=icon aria-hidden=true></span><span><b></b> `),FF=(0,e.template)(`<epic-review buttons=part>`,1),VF=class _EpicOverview extends (zF=vF,RF=[t.E.proto],LF=[t.E.protoMerged],IF=[t.E.whileConnected],zF){constructor(){super(...arguments),__runInitializers(BF,5,this),__publicField(this,`icons`,{title:new t.E.IconGlyph({owner:this,name:__name(()=>KF,`name`)}),chevron:new t.E.IconGlyph({owner:this,name:__name(()=>`chevron right`,`name`)}),estimate:new t.E.IconGlyph({owner:this,name:__name(()=>`clock outline`,`name`)})}),__publicField(this,`reviewState`,new Hu(()=>qe))}followReviews(){return this.reviewState.connect()}get reviewed(){return this.reviewState.reviewing()&&!!this.domElement.querySelector(GF)}get number(){return this.layout,this.place(this.isConnected)}contentsEntry(){return{label:`${this.place(this.domElement.isConnected)}. ${this.translationForKey(`title`)}`,icon:KF}}place(e){let t=e?this.domElement.parentElement:null;return Array.from(t?.querySelectorAll(`:scope > epic-overview, :scope > epic-section:not([kind="away"])`)??[]).indexOf(this.domElement)+1||1}render(){return this.renderFold({title:__name(()=>`${this.number}. ${this.translationForKey(`title`)}`,`title`),icon:__name(()=>this.icons.title.svg,`icon`),tools:__name(()=>{let t=this;return[(0,e.createComponent)(n.Show,{get when(){return t.reviewed},get children(){return t.reviewControl(`buttons`,`review-buttons`)}}),(0,e.memo)(()=>t.renderStageButton(`overview`,t.reviewState.reviewing))]},`tools`),before:__name(()=>{let t=this;return[(0,e.createComponent)(n.Show,{get when(){return t.reviewed},get children(){return[(0,e.createComponent)(n.Show,{get when(){return t.reviewState.noted()||t.reviewState.takenNote()},get children(){return t.reviewControl(`said`,`said`)}}),(0,e.createComponent)(n.Show,{get when(){return t.reviewState.boxOpen()},get children(){return t.reviewControl(`note`,`note-box`)}})]}}),(()=>{var n=MF();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.slotForName(`summary`),t=>{(0,e.setAttribute)(n,`name`,t)}),n})(),(0,e.createComponent)(n.Show,{get when(){return t.slots.hasContent(t.slotForName(`prompt`))},get children(){var n=NF(),r=n.firstChild,i=r.firstChild,a=r.nextSibling;return(0,e.insert)(i,()=>t.icons.chevron.svg),(0,e.insert)(r,()=>t.translationForKey(`prompt`),null),a._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(UF),t:t.partForName(`prompt`),a:t.translationForKey(`promptTip`),o:t.slotForName(`prompt`)}),({e:t,t:i,a:o,o:s},c)=>{(0,e.className)(n,t,c?.e),i!==c?.t&&(0,e.setAttribute)(n,`part`,i),o!==c?.a&&(0,e.setAttribute)(r,`title`,o),s!==c?.o&&(0,e.setAttribute)(a,`name`,s)}),n}}),(0,e.createComponent)(n.Show,{get when(){return t.estimate},get children(){var n=PF(),r=n.firstChild,i=r.nextSibling,a=i.firstChild;return a.nextSibling,(0,e.insert)(r,()=>t.icons.estimate.svg),(0,e.insert)(a,()=>t.translationForKey(`estimate`)),(0,e.insert)(i,()=>t.estimate,null),(0,e.effect)(()=>({e:(0,e.readShallow)(WF),t:t.partForName(`estimate`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}})]},`before`)})}reviewControl(t,n){let r=this;var i=FF();return(0,e.setAttribute)(i,`of`,qe),(0,e.setAttribute)(i,`shows`,t),(0,e.setAttribute)(i,`under-line`,t===`note`?``:void 0),i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:r.translationForKey(`reviewLabel`),t:r.partForName(n)}),({e:t,t:n},r)=>{t!==r?.e&&(0,e.setAttribute)(i,`label`,t),n!==r?.t&&(0,e.setAttribute)(i,`part`,n)}),i}},BF=__decoratorStart(zF),__decorateElement(BF,1,`followReviews`,IF,VF),__decorateElement(BF,13,`vocabulary`,RF,VF),__decorateElement(BF,13,`elementSetup`,LF,VF),__decoratorMetadata(BF,VF),__name(VF,`EpicOverview`),__publicField(VF,`vocabulary`,__runInitializers(BF,8,VF,EF)),__runInitializers(BF,11,VF),__publicField(VF,`elementSetup`,__runInitializers(BF,12,VF,{styleSheets:{"epic-tooltip":N,"epic-fold":OF,"epic-overview":AF}})),__runInitializers(BF,15,VF),HF=VF,UF=`prompt`,WF=`estimate`,GF=`:scope > epic-summary`,KF=`lightbulb`})),JF=__exportAll({EpicOverview:()=>HF}),YF=__esmMin((()=>{kf(),qF(),HF.define()})),XF,ZF=__esmMin((()=>{Ek(),XF={tag:`epic-send-buttons`,topics:[`buttons`,`forms`],aka:[`send`,`send button`,`countdown`,`auto send`,`paper plane`,`ring`],skeleton:`inline 4 x 1.6`,noun:`send-buttons`,ui:!1,description:"Send, the paper plane. With `countdown` (an epic page's header; epic `epic-engine` P53), Auto Send too: with something not sent, a ring round the plane, set apart from it with rounded ends, drains clockwise over the wait the page header's gear chose (2 minutes by default, or 5), starting again at every key, click or scroll on the page and held full while a note box is typed in; at the end the owner is asked to send, as a press would. While the session works through what was sent (`working`, epic `epic-engine` P55), a blue arc turns round the plane in the same frame, unless the countdown runs. Immediately: no ring, each change goes as it's finished. Off, or without `countdown`, with something not sent: the plane is filled blue, waiting for a press. Drawn by an epic page's header (`<epic-page>`), a details page's Send (`<epic-send>`) and a docs page's comments Send.",attributes:[{name:`state`,kind:`enum`,values:wk,description:"Where what the owner sends stands, by the fill rule: `idle` (nothing to send: a grey outline), `unsent` (something not sent: the plane blue, the countdown runs), `sent` (a blue outline). Default: `idle`."},{name:`send-tip`,kind:`string`,description:"The paper plane's tooltip and name: what a press sends (`Send 2 marks, 1 comment to Claude`). Default: `Send`."},{name:`count`,kind:`number`,description:`How many things a press would send, a small badge on the plane; 0 or none: no badge.`},{name:`busy`,kind:`boolean`,description:`A send on its way: the plane spins, and a press does nothing.`},{name:`asks`,kind:`enum`,values:Tk,description:"The pill WAITS ON YOU (Owen, 2026-10-25): `waiting`, the pill's own border 2px #666, darker than its hairline, solid; `taken`, dotted once you've pressed what it waits for; none: no ring. An epic page's header sets it while Claude's build plans wait for your Accept, on their phases; the pill stays Send, never green. The same ring as a waiting plan's own buttons on its phase."},{name:`working`,kind:`boolean`,description:"The session is working through what was sent (epic `epic-engine` P55): a blue arc turns round the plane, in the countdown ring's frame. The countdown wins: while it runs, its ring shows instead. An epic page's header sets it while its inbox's `doing` lists the items being answered."},{name:`working-on`,kind:`string`,description:"What the session is answering, for the plane's tooltip while it turns (`J201, J202`); none: the tooltip only says Claude is working on what you sent."},{name:`countdown`,kind:`boolean`,description:"Counts down to Send by itself, on the page's Auto Send (`SendCountdown`, chosen in an epic page header's gear): the ring round the plane. Off by default: only an epic page's header sets it, as only it has the gear (J142); a details page or a guide sends when you press."}],events:[{name:`epic-send-saving`,detail:`{ auto }`,description:"A send asked for: the paper plane pressed (`auto` false), or the countdown ran out (`auto` true). The owner sends, waking the epic when nobody listens (Q59, B); a countdown's send asks every revisit now, as Review Now did (decision Q7)."}],slots:[],parts:[{name:`base`,description:`The group: one pill round the plane.`},{name:`send`,description:"The paper plane, a `<button>`: `data-state`, filled blue while it waits for a press."},{name:`count`,description:`The badge on the plane: how many things a press sends.`},{name:`working`,description:`The turning ring round the plane: a blue arc going round, only while the session works on a Send.`},{name:`ring`,description:`The countdown's ring round the plane, its ends round, draining clockwise; only while it counts.`}],states:[{name:`countdown`,description:"Auto Send is on, and this Send counts down (`countdown`)."},{name:`counting`,description:`The countdown is running: something waits, and the ring drains.`},{name:`working`,description:`The session works through what was sent, and the countdown isn't running: the ring turns.`},{name:`waiting`,description:`Auto Send is off and something isn't sent: the plane is filled blue.`}],texts:[{key:`group`,text:`Send`,description:`The group's name, for a screen reader.`},{key:`send`,text:`Send`,description:"The plane's tooltip and name, when the owner gives none (`send-tip`)."},{key:`counting`,text:`sends by itself in {time}; click to send now`,description:"After the plane's words while the ring counts; `{time}` like `1:42`."},{key:`working`,text:`Claude is working on what you sent`,description:"After the plane's words while the ring turns, with nothing named (`working-on`)."},{key:`workingOn`,text:`Claude is working on what you sent: {items}`,description:"After the plane's words while the ring turns; `{items}` like `J201, J202`."},{key:`held`,text:`sends by itself once you leave the note box; click to send now`,description:`After the plane's words while a note box with words has the focus: the ring stays full.`}],children:[]}})),QF,$F=__esmMin((()=>{QF=`@layer ui.components.epic-send-buttons.types{:host{--_size:var(--epic-send-buttons-size,28px);--_tint:var(--ui-blue,#2185d0);--_rule:var(--epic-send-buttons-rule,var(--ui-border-color,#22242626));--_muted:var(--epic-send-buttons-muted,var(--ui-text-muted,GrayText));--_light:color-mix(in oklab, var(--_tint) 55%, white);vertical-align:middle;flex:none;display:inline-flex}:host([hidden]){display:none}.group{box-sizing:border-box;height:var(--_size);border:1px solid var(--_rule);border-radius:999px;align-items:center;display:inline-flex}.group[data-state=sent]{border:1.5px solid var(--_tint)}.group:is([data-state=idle],[data-state=sent]):not([data-asks]){border-color:#0000}.group[data-asks]{height:calc(var(--_size) + 2px);border:2px solid #666;margin:-1px}.group[data-asks=taken]{border-style:dotted}button{box-sizing:border-box;width:calc(var(--_size) - 2px);height:calc(var(--_size) - 2px);color:var(--_muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:50%;place-items:center;margin:0;padding:0;font-size:13px;display:inline-grid;position:relative}button:hover{color:var(--_tint)}button:focus-visible{outline:2px solid var(--ui-focus-color,var(--_tint));outline-offset:1px}.send[data-state=sent]{color:var(--_tint)}.send[data-state=unsent]{background:var(--_light);color:#fff}.send[data-state=unsent]:hover{background:color-mix(in oklab, var(--_tint) 75%, white)}:host(:is(:state(counting),:state(working))) .send{padding:calc((var(--_size) - 2px - var(--_disc)) / 2);background-clip:content-box;font-size:10px}:host(:state(waiting)) .send{background:var(--_tint);color:var(--ui-blue-on,#fff)}:host(:state(waiting)) .send:hover{background:color-mix(in oklab, var(--_tint) 85%, black)}.send[aria-busy=true]{cursor:progress}.count{box-sizing:border-box;background:var(--_tint);min-width:1.4em;color:var(--ui-blue-on,#fff);font:600 10px/1.4 var(--ui-font-family,system-ui, sans-serif);font-variant-numeric:tabular-nums;text-align:center;border-radius:999px;padding:0 4px;position:absolute;inset-block-start:-6px;inset-inline-end:-6px}ui-icon{pointer-events:none}ui-icon::part(icon){width:auto;margin:0}.glyph{place-items:center;display:inline-grid;position:relative}:host{--_ring:var(--_size);--_disc:calc(var(--_size) - 12px)}:host(:is(:state(counting),:state(working))) .group{border-color:#0000}:host{--_ring-tint:var(--_tint);--_ring-track:var(--_rule)}}`})),eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI=__esmMin((()=>{g(),Zn(),ZF(),Ek(),Bd(),P(),af(),$F(),eI=(0,e.template)(`<span>`),tI=(0,e.template)(`<span role=group><button type=button><span><ui-icon></ui-icon><!><!>`,1),hI=class _EpicSendButtons extends (fI=t.E.UIComponent,dI=[t.E.proto],uI=[t.E.protoMerged],lI=[t.E.state],cI=[t.E.cssState(`countdown`)],sI=[t.E.cssState(`counting`)],oI=[t.E.cssState(`working`)],aI=[t.E.cssState(`waiting`)],iI=[t.E.whileConnected],rI=[t.E.onChange(`state`)],nI=[t.E.untracked],fI){constructor(){super(...arguments),__runInitializers(pI,5,this),__publicField(this,`pageCountdown`,e.isServer?void 0:Bn.forPage()),__privateAdd(this,mI,__runInitializers(pI,8,this,0)),__runInitializers(pI,11,this)}get isCountdownOn(){return this.version,this.isManual?!1:this.pageCountdown?.isOn??!0}get isCounting(){return this.version,!this.isManual&&!!this.pageCountdown?.hasRing}get isWorking(){return!!this.working&&!this.isCounting}get isWaiting(){return!this.isCountdownOn&&this.isUnsent}get isManual(){return!this.countdown}get isUnsent(){return this.state===`unsent`}get fractionLeft(){return this.version,this.pageCountdown?.fractionLeft??0}followCountdown(){let e=this.pageCountdown;if(!e||this.isManual)return;let t=e.subscribe(()=>this.version=e.version),n=e.onFire(()=>this.askToSend(!0));return e.setPending(this.isUnsent),this.version=e.version,()=>{t(),n()}}onStateChange(){this.isManual||this.pageCountdown?.setPending(this.isUnsent)}render(){let t=this;var r=tI(),i=r.firstChild,a=i.firstChild,o=a.firstChild,s=o.nextSibling,c=s.nextSibling;return i._$$click=()=>t.askToSend(!1),o._$owner=(0,e.getOwner)(),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.isCounting},get children(){return CountdownRing.draw(()=>t.fractionLeft,t.partForName(`ring`))}}),s),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.isWorking},get children(){return CountdownRing.turning(t.partForName(`working`))}}),c),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return(t.count??0)>0},get children(){var n=eI();return(0,e.insert)(n,()=>t.count),(0,e.effect)(()=>({e:(0,e.readShallow)(yI),t:t.partForName(`count`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(_I),t:t.partForName(`base`),a:t.translationForKey(`group`),o:t.groupState,i:t.asks,n:(0,e.readShallow)(vI),s:t.partForName(`send`),h:t.groupState,r:t.busy?`true`:void 0,d:t.sendTitle,l:t.sendTitle,u:(0,e.readShallow)(bI),c:t.busy?`circle notch`:`paper plane`,w:t.busy?``:void 0}),({e:t,t:n,a:s,o:c,i:l,n:u,s:d,h:f,r:p,d:m,l:h,u:g,c:_,w:v},y)=>{(0,e.className)(r,t,y?.e),n!==y?.t&&(0,e.setAttribute)(r,`part`,n),s!==y?.a&&(0,e.setAttribute)(r,`aria-label`,s),c!==y?.o&&(0,e.setAttribute)(r,`data-state`,c),l!==y?.i&&(0,e.setAttribute)(r,`data-asks`,l),(0,e.className)(i,u,y?.n),d!==y?.s&&(0,e.setAttribute)(i,`part`,d),f!==y?.h&&(0,e.setAttribute)(i,`data-state`,f),p!==y?.r&&(0,e.setAttribute)(i,`aria-busy`,p),m!==y?.d&&(0,e.setAttribute)(i,`aria-label`,m),h!==y?.l&&(0,e.setAttribute)(i,`title`,h),(0,e.className)(a,g,y?.u),_!==y?.c&&(0,e.setAttribute)(o,`name`,_),v!==y?.w&&(0,e.setAttribute)(o,`loading`,v)}),r}get groupState(){return this.state??`idle`}get sendTitle(){let e=this.sendTip||this.translationForKey(`send`);if(this.isWorking){let t=this.workingOn;return`${e} \xB7 ${t?this.translationForKey(`workingOn`,{items:t}):this.translationForKey(`working`)}`}if(!this.isCounting)return e;let t=this.pageCountdown;return`${e} \xB7 ${t.isHeld?this.translationForKey(`held`):this.translationForKey(`counting`,{time:CountdownRing.timeLeft(t.msLeft)})}`}askToSend(e){this.busy||this.send(Ck,{auto:e})}},pI=__decoratorStart(fI),mI=new WeakMap,__decorateElement(pI,4,`version`,lI,hI,mI),__decorateElement(pI,2,`isCountdownOn`,cI,hI),__decorateElement(pI,2,`isCounting`,sI,hI),__decorateElement(pI,2,`isWorking`,oI,hI),__decorateElement(pI,2,`isWaiting`,aI,hI),__decorateElement(pI,1,`followCountdown`,iI,hI),__decorateElement(pI,1,`onStateChange`,rI,hI),__decorateElement(pI,1,`askToSend`,nI,hI),__decorateElement(pI,13,`vocabulary`,dI,hI),__decorateElement(pI,13,`elementSetup`,uI,hI),__decoratorMetadata(pI,hI),__name(hI,`EpicSendButtons`),__publicField(hI,`vocabulary`,__runInitializers(pI,12,hI,XF)),__runInitializers(pI,15,hI),__publicField(hI,`elementSetup`,__runInitializers(pI,16,hI,{styleSheets:{"epic-tooltip":N,"epic-countdown-ring":rf,"epic-send-buttons":QF},delegatesFocus:!1})),__runInitializers(pI,19,hI),gI=hI,_I=`group`,vI=`send`,yI=`count`,bI=`glyph`,(0,e.delegateEvents)([`click`])})),SI=__exportAll({EpicSendButtons:()=>gI}),CI=__esmMin((()=>{xI(),gI.define()})),wI=__exportAll({EpicPage:()=>Kj}),TI=__esmMin((()=>{sa(),CI(),uE(),KD(),aM(),Kj.define()})),EI,DI=__esmMin((()=>{EI={tag:`epic-page-note-head`,topics:[`messages`,`status`],aka:[`page note`,`note head`,`spell note`,`old note`],noun:`note head`,ui:!1,description:"The head line of an old page note (`<spell-note>`, epic `airplane` P3: written into a guide before comments replaced them, read only since), drawn by the docs runtime first in each note: \"You · 10/10 14:02\", the note's first line while it's folded, its status (new yellow, answered violet, done grey) and how many replies. The whole line is one button: a click folds or unfolds the note.",attributes:[{name:`at`,kind:`string`,description:"When it was written, as the note says: `2026-10-09 22:10`."},{name:`status`,kind:`enum`,values:[`new`,`answered`,`done`],default:`new`,description:"The note's status, by the colour scheme: `new` yellow (open), `answered` violet, `done` grey."},{name:`replies`,kind:`number`,description:`How many replies Claude wrote under it; none: not said.`},{name:`preview`,kind:`string`,description:`The note's first line: shown while it's folded.`},{name:`open`,kind:`boolean`,description:"The note is open: its preview hides. A click flips it, and says so (`epic-note-opened` / `epic-note-closed`)."}],events:[{name:`epic-note-opened`,detail:`{ open: true }`,description:`You clicked it: the note should open.`},{name:`epic-note-closed`,detail:`{ open: false }`,description:`You clicked it: the note should fold.`}],slots:[],parts:[{name:`base`,description:"The line, a `<button>`: the icon, who and when, the preview, the status."},{name:`status`,description:`Its status chip, and how many replies.`}],states:[],texts:[{key:`who`,text:`Note`,description:`The line's first word: old page notes name no author (written before names were kept).`},{key:`reply`,text:`1 reply`,description:`After the status: one reply.`},{key:`replies`,text:`{count} replies`,description:`After the status: several replies.`}],children:[]}})),OI,kI=__esmMin((()=>{OI=`@layer ui.components.epic-page-note-head{:host{min-width:0;display:flex}.fold{min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:auto;align-items:baseline;gap:6px;padding:2px 0;display:flex}.fold:focus-visible{outline:2px solid var(--ui-focus-color,Highlight);border-radius:4px}.icon{color:var(--spell-muted,var(--ui-text-muted,GrayText));display:contents}.who{white-space:nowrap;flex:none;align-items:baseline;gap:6px;display:inline-flex}.preview{min-width:0;color:var(--spell-muted,var(--ui-text-muted,GrayText));text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}:host([open]) .preview{visibility:hidden}.status{background:var(--spell-state-open,var(--ui-yellow,#fbbd08));color:var(--spell-state-open-on,var(--ui-yellow-on,#1b1c1d));border-radius:999px;flex:none;padding:0 6px;font-size:12px}.status[data-status=answered]{background:var(--epic-voice-agent,light-dark(#c96442,#d97757));color:light-dark(#fff,#1b1c1d)}.status[data-status=done]{background:var(--spell-state-old,var(--ui-grey-background,light-dark(#eee,#34343b)));color:var(--spell-state-old-on,var(--ui-grey-text,GrayText))}}`})),AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI=__esmMin((()=>{g(),No(),DI(),kI(),AI=(0,e.template)(`<button type=button><span><ui-icon name=comment></ui-icon></span><span><b></b> · </span><span>`,1),jI=(0,e.template)(`<span>`),LI=class _EpicPageNoteHead extends (FI=r.E.UIComponent,PI=[r.E.proto],NI=[r.E.protoMerged],MI=[r.E.untracked],FI){constructor(){super(...arguments),__publicField(this,`onFold`,__runInitializers(II,16,this,__name(()=>{let e=!this.open;this.open=e,this.send(e?`epic-note-opened`:`epic-note-closed`,{open:e})},`onFold`))),__runInitializers(II,19,this)}get statusWords(){let e=this.replies??0;if(!e)return this.status??`new`;let t=e===1?this.translationForKey(`reply`):this.translationForKey(`replies`,{count:e});return`${this.status??`new`} \xB7 ${t}`}render(){let t=this;var r=AI(),i=r.firstChild,a=i.firstChild,o=i.nextSibling,s=o.firstChild;s.nextSibling;var c=o.nextSibling;return(0,e.addEvent)(r,`click`,t.onFold,!0),a._$owner=(0,e.getOwner)(),(0,e.insert)(s,()=>t.translationForKey(`who`)),(0,e.insert)(o,()=>I.shortStamp(t.at),null),(0,e.insert)(c,()=>t.preview),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.status??`new`},children:n=>(()=>{var r=jI();return(0,e.insert)(r,()=>t.statusWords),(0,e.effect)(()=>({e:(0,e.readShallow)(UI),t:t.partForName(`status`),a:n()}),({e:t,t:n,a:i},a)=>{(0,e.className)(r,t,a?.e),n!==a?.t&&(0,e.setAttribute)(r,`part`,n),i!==a?.a&&(0,e.setAttribute)(r,`data-status`,i)}),r})()}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(zI),t:t.partForName(`base`),a:t.open?`true`:`false`,o:(0,e.readShallow)(BI),i:(0,e.readShallow)(VI),n:(0,e.readShallow)(HI)}),({e:t,t:n,a,o:s,i:l,n:u},d)=>{(0,e.className)(r,t,d?.e),n!==d?.t&&(0,e.setAttribute)(r,`part`,n),a!==d?.a&&(0,e.setAttribute)(r,`aria-expanded`,a),(0,e.className)(i,s,d?.o),(0,e.className)(o,l,d?.i),(0,e.className)(c,u,d?.n)}),r}},II=__decoratorStart(FI),__decorateElement(II,13,`vocabulary`,PI,LI),__decorateElement(II,13,`elementSetup`,NI,LI),__decorateElement(II,5,`onFold`,MI,LI),__decoratorMetadata(II,LI),__name(LI,`EpicPageNoteHead`),__publicField(LI,`vocabulary`,__runInitializers(II,8,LI,EI)),__runInitializers(II,11,LI),__publicField(LI,`elementSetup`,__runInitializers(II,12,LI,{styleSheets:{"epic-page-note-head":OI}})),__runInitializers(II,15,LI),RI=LI,zI=`fold`,BI=`icon`,VI=`who`,HI=`preview`,UI=`status`,(0,e.delegateEvents)([`click`])})),GI=__exportAll({EpicPageNoteHead:()=>RI}),KI=__esmMin((()=>{WI(),RI.define()})),qI,JI,YI=__esmMin((()=>{Ee(),ex(),qI=class PhaseFields{changes=(0,n.createSignal)(0);everyPhase(){return this.changes[0](),PhaseFields.saved(Mb)}ownOf(e){this.changes[0]();let t=PhaseFields.saved(Nb)[e];return t&&typeof t==`object`?t:{}}shows(e,t){return this.ownOf(e)[t]??!!this.everyPhase()[t]}setEveryPhase(e,t){PhaseFields.save(Mb,{...PhaseFields.saved(Mb),[e]:t});let n=PhaseFields.saved(Nb);for(let t of Object.keys(n))n[t]=PhaseFields.without(n[t],e);PhaseFields.save(Nb,PhaseFields.pruned(n)),this.changed()}setOwn(e,t,n){let r=PhaseFields.saved(Nb),i=PhaseFields.without(r[e],t);n!==!!PhaseFields.saved(`epic-phase-fields:`)[t]&&(i[t]=n),r[e]=i,PhaseFields.save(Nb,PhaseFields.pruned(r)),this.changed()}changed(){let[e,t]=this.changes;t(e()+1)}static without(e,t){let n={...e&&typeof e==`object`?e:{}};return delete n[t],n}static pruned(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e&&Object.keys(e).length))}static saved(e){let t=A.getAt(e+location.pathname);return t&&typeof t==`object`?{...t}:{}}static save(e,t){A.setAt(e+location.pathname,t)}},JI=new qI})),XI,ZI=__esmMin((()=>{fa(),Zl(),ex(),XI={tag:`epic-phase`,topics:[`documentation`,`progress`,`containers`],aka:[`phase`,`milestone`,`step`,`stage`],noun:`phase`,ui:!1,description:"One phase of the plan: its status icon and estimate (once done, what it took) in its title line; its fields (Symptom, Requests, Goal, Changes), your kept notes, its plan changes (`<epic-update>` blocks, at the end of its description), then Done, commits, Files, Verify and To review, as children in that order. While the page is reviewed, it takes review notes as an Overview sub-section does: Do this (a thumbs up: build it), Revisit.",attributes:[{name:`id`,property:`epicId`,kind:`string`,required:!0,format:`phase id`,description:"Stable, made from its name when it's added, and kept through renames and inserts: `p-epic-migrate` (an older page's `p2`, until `stable-phase-ids`). Links and comments use it (`#p-epic-migrate`); the number shown, `P2 · <title>`, is its place among the whole-numbered phases, or its own `number`."},{name:`number`,kind:`string`,format:`decimal phase number`,description:"A phase added on the fly (epic `epic-engine` P39): its own number, a decimal of the phase before it (`11.1`, drawn `P11.1`), so no other phase is renumbered. Absent: its number is its place among the phases without one."},{name:`title`,property:`epicTitle`,kind:`string`,required:`or slot`,description:"Its short name, 2-4 words, WITHOUT its id (`Saved Replies`, drawn as `P1 · Saved Replies`)."},{name:`status`,kind:`enum`,values:[`todo`,`active`,`done`,`dropped`],required:!0,description:"`todo`, `active` (one at a time, blue: under way), `done` (green) or `dropped` (never built, and won't be: its title struck through and grey, a crossed circle, its Dropped field saying why; finished, as `done` is: epic `epic-engine` I228)."},{name:`estimate`,kind:`string`,description:"Wall-clock time for Claude to do it, agents included, your review not: `30m`, `2h`, `1h30m`, `1-2h`."},{name:`took`,kind:`string`,description:"How long Claude really worked on it, written by the epic tool when it's done (`epic phase … done`, or `… took` later; epic `epic-engine` P41): `21m`, `1h 30m`. Its agents' and sessions' working time, side by side counted once, never the time waiting on you. A done phase shows it in place of its estimate, the estimate in its tooltip (`~3-4h`)."},{name:`span`,kind:`string`,description:"How long it was under way by the clock, from going active to done, waits on you included, written beside `took` from the page's log (epic `epic-engine` I127): `4h`, `1h 30m`. A done phase's pill then reads `34m / 4h`. None when the log has no start for it: the pill shows only `took`."},{name:`source`,kind:`string`,description:"Its body's part file (`parts/p2.html`), loaded into its children when it opens."},{name:`part-ids`,kind:`string`,format:`ids`,description:`The ids inside its part file: a link to one loads the body first, then lands.`},{name:`commits`,kind:`boolean`,description:`Its body lists commits: its gear offers to show them.`},{name:`to-accept`,kind:`string`,format:`ids`,description:"The change marks inside it still waiting for your Accept (`ch3 ch5`), written by the epic tool on every edit (epic `epic-engine` P30): the page counts and finds them while its body, a part, isn't loaded."},{name:`to-see`,kind:`string`,description:"The update blocks inside it still new (`up3@2026-10-27T10:00 up5@...`: each id and its `at`), written by the epic tool on every edit (epic `epic-engine` I168): not seen, not quiet as of that write. The page counts them (a phase's pen) and takes their Seen while its body, a part, isn't loaded."},{name:`choices-open`,kind:`number`,description:"How many option sets in its body are still open (neither `chosen` nor `closed`; epic `epic-engine` P50), written by the epic tool on every edit: its title row says so while its body, a part, isn't loaded. None: no attribute."},{name:`plan`,kind:`enum`,values:[`waiting`,`accepted`,`held`],description:"Claude's build plan (its `plan` field, epic `epic-engine` P33): `waiting` for your Accept (its review buttons Accept plan and Revisit), or `accepted` (still to do, its review group ends in a green check: good to go, epic `epic-engine` I140), or `held` (you un-clicked that thumbs up: paused, a grey pause, not built till you accept it again, epic `epic-engine` I221); written by the epic tool, so the title row knows with its body not loaded."},{name:`done-at`,kind:`string`,format:`time`,description:"When it was done (ISO), written by the epic tool as it's set done, and for an older done phase from the log's `P3 done` line (epic `epic-engine` I170): done in the last 3 days, green; before, or none, grey."},{name:`changes`,kind:`number`,description:"An OLDER page's count of its plan changes (`<epic-update>` blocks), from before epic `epic-engine` I168: its pen says so until the epic tool's next write puts `to-see` in its place."},yb],events:[...bb],slots:[{name:``,description:`Its fields, your kept notes, its plan changes and commits.`},{name:`title`,description:"A title with markup, in place of `title`."},la,{name:`changes`,description:'An OLDER doc\'s plan changes (`<epic-updated slot="changes">`, 2026-10-11, P6): drawn at the end of its body, unboxed, until the epic tool migrates them to `<epic-update>` blocks (`updates-as-epic-update`).'},{name:`status`,description:'Claude\'s status cards on your marks (`<epic-status slot="status">`, P13): at the end of its body, above the note box.'}],parts:[...xb,{name:`status`,description:"Its status icon, in its status's colour; while Claude is at work on it (`:state(working)`), a blue turning spinner instead."},{name:`choices-open`,description:"In its title (P50): `1 choice open`, red, while a set in its body waits for your pick."},{name:`changed`,description:"In its title, while it isn't done: its new updates, an orange pen and how many (`to-see`, less the ones quiet or marked Seen since)."},{name:`seen-all`,description:"After the pen, while the page is reviewed: a round ✓ `<ui-button>` marking every new update Seen at once."},{name:`tools`,description:"At the title's end: the page's own buttons (the `actions` slot), then its estimate (once done and timed, what it took), then its review buttons, while the page is reviewed, then its gear."},{name:`estimate`,description:"Its `estimate`, a small pill just before its review buttons (`2-3h`), so they line up row to row; done and timed, what it `took` (`21m`), the estimate its tooltip; with a `span` too, `34m / 4h`, its tooltip in words (`34m of work over 4h, estimated ~3-4h`)."},{name:`gear`,description:'Its gear, last on its title row (epic `epic-engine` I166): a `<ui-dropdown>` menu of what this phase shows, "Show this phase\'s files" and "Show this phase\'s checks", ticked while on; its choice wins over the Phases section\'s gear for this phase. Only with an `id`.'},...Jl],states:[...Sb,{name:`commits`,description:`Its own commits show: ticked in its gear.`},{name:`movable`,description:"Still to do, on a page being reviewed: dragged by its title row to another place (epic `epic-engine` P34)."},{name:`working`,description:"Claude is at work on it, and it isn't done: the review inbox's `working`, keyed by its id (writing its plan, or building it; epic `epic-engine` I147). Its status icon is a blue turning spinner."}],texts:[...Cb,{key:`statusTodo`,text:`To do`,description:"The status icon's name: `todo`."},{key:`statusActive`,text:`Under way`,description:"The status icon's name: `active`."},{key:`statusDone`,text:`Done`,description:"The status icon's name: `done`."},{key:`statusDropped`,text:`Dropped`,description:"The status icon's name: `dropped` (I228)."},{key:`workingPlan`,text:`Claude is writing this phase's plan`,description:`Its spinner while Claude is at work on it and its plan isn't accepted yet: its tooltip and name.`},{key:`workingOn`,text:`Claude is working on it`,description:`Its spinner while Claude is at work on it, its plan accepted or the phase under way.`},{key:`gearTip`,text:`Settings for this phase`,description:`Its gear's tooltip and name (I166).`},{key:`showCommits`,text:`Show this phase's commits`,description:`Its gear menu: its own commits, ticked while they show, while it has any (I183).`},{key:`showPhaseFiles`,text:`Show this phase's files`,description:`Its gear menu: its Files field, ticked while it shows (its own choice, else every phase's).`},{key:`showPhaseVerify`,text:`Show this phase's checks`,description:`Its gear menu: its Verify field, ticked while it shows (its own choice, else every phase's).`},{key:`tookTip`,text:`~{estimate}`,description:"A done phase's time pill: its tooltip, the estimate it had (`~3-4h`; M3 on P41)."},{key:`spanTip`,text:`{took} of work over {span}`,description:`A done phase's time pill with its clock time, no estimate: its tooltip (I127).`},{key:`spanEstimateTip`,text:`{took} of work over {span}, estimated ~{estimate}`,description:`A done phase's time pill with its clock time and an estimate: its tooltip (I127).`},{key:`choiceOpen`,text:`1 choice open`,description:`After its title (P50): a set in its body waits for your pick.`},{key:`choicesOpenCount`,text:`{count} choices open`,description:`After its title (P50): sets in its body wait for your picks.`},{key:`changedTip`,text:`{count} × Update new in this phase. ✓ Seen on one (or the ✓ here, on all) folds it to a grey line for everyone; unseen, each goes quiet by itself 3 days after it was written`,description:"The title's pen while it isn't done: its tooltip and name; `count` how many new updates."},{key:`seenAllTip`,text:`Seen: all {count} new updates in this phase, folded to grey lines for everyone once Claude applies it`,description:`The pen's ✓: what it does.`}],children:[{tag:`flow`,slot:`title`,max:1,description:`A title with markup.`},ua,{tag:`epic-field`,where:{attribute:`name`,values:[`symptom`]},max:1,description:`Symptom: what's wrong today, one line.`},{tag:`epic-updated`,slot:`changes`,description:"An OLDER doc's plan changes (2026-10-11, P6): the epic tool's next write makes each an `<epic-update>` block, after Goal (`updates-as-epic-update`)."},{tag:`epic-updated`,description:"An OLDER doc's plan changes, in no slot (until 2026-10-11): drawn among its fields until the epic tool's next write makes each an `<epic-update>` block, after Goal."},{tag:`epic-field`,where:{attribute:`name`,values:[`requests`]},max:1,description:"Requests: what you sent this phase from other sessions (epic `epic-workflow`), one labelled block each: your words, the sender, your screenshots (`epic file`)."},{tag:`epic-reply`,description:"Your notes on the phase from the page, kept once Claude took them (`inbox done | clear`), oldest first."},{tag:`epic-status`,slot:`status`,description:"Claude's status cards on your marks, oldest first (`plan-doc status`; a todo filed: born done)."},{tag:`epic-field`,where:{attribute:`name`,values:[`goal`]},max:1,description:`Goal: a bullet per outcome.`},{tag:`epic-field`,where:{attribute:`name`,values:[`changes`]},max:1,description:'Changes: what changes, two or three lines; after Goal, next to the plan (epic `epic-engine` P45; Owen, 2026-10-25: "Move `changes` below `goal` so it\'s next to the plan").'},{tag:`epic-field`,where:{attribute:`name`,values:[`choices`]},max:1,description:"Choices: the phase's own option sets (`<epic-choices>`, epic `epic-engine` P50), a fork that belongs to this phase alone; picked on the page, keyed by the phase (`epic update ...#P3 --choices`)."},{tag:`epic-update`,description:"Its plan changes, oldest first, at the end of its description (Owen, 2026-10-11): each an `<epic-update at summary>` block, `Update: <summary>` and its date, what changed under it; kept once done."},{tag:`epic-field`,where:{attribute:`name`,values:[`plan`]},max:1,description:"Claude's plan: how Claude will build it, for you to accept first (epic `epic-engine` P33; `--plan`)."},{tag:`epic-field`,where:{attribute:`name`,values:[`done`]},max:1,description:`Done: what was built, once done.`},{tag:`epic-field`,where:{attribute:`name`,values:[`dropped`]},max:1,description:"Dropped: why a dropped phase was never built (`Moved to P38`, a link to that phase), in place of Done (epic `epic-engine` I228; `epic phase <epic>#P18 dropped --why`)."},{tag:`epic-commit`,description:`Its commits, oldest first.`},{tag:`epic-field`,where:{attribute:`name`,values:[`files`]},max:1,description:`Files: what changes.`},{tag:`epic-field`,where:{attribute:`name`,values:[`verify`]},max:1,description:`Verify: how we know it worked.`},{tag:`epic-field`,where:{attribute:`name`,values:[`to-review`]},max:1,description:`To review: the items added during it still open and not reviewed (written by the script).`}],childOrder:`listed`}})),QI,$I,eL,tL=__esmMin((()=>{QI=`icon`,$I=`label`,eL=`text`})),nL,rL=__esmMin((()=>{nL=`@layer ui.components.epic-phase.content{:host{--_epic-fold-band:var(--epic-band-row,transparent);--_epic-fold-gap:var(--epic-phase-gap,12px);--_epic-fold-bleed:0px;--epic-inset:var(--epic-card-inset,16px)}ui-section::part(icon){margin-inline-end:2px}:host(:is([status=done],[status=dropped])){--_epic-fold-title-color:var(--epic-muted,var(--ui-text-muted))}:host([status=dropped]) .header>.words{text-decoration:line-through}ui-section{--ui-section-title-padding:8px 6px 8px 8px;--ui-section-content-padding:10px var(--epic-inset,16px) 0;--_epic-fold-line:calc(var(--ui-font-size,16px) * var(--ui-section-h3) * var(--ui-section-title-line-height))}:host(:state(open)) ui-section{--ui-section-content-padding:0}:host(:state(open)) ui-section:not(:state(stuck))::part(title){border-end-end-radius:var(--epic-phase-radius,8px);border-end-start-radius:var(--epic-phase-radius,8px)}ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-phase-top-radius,0px);border-start-end-radius:var(--epic-phase-top-radius,0px)}:host(:not(:state(open))) ui-section:not(:state(stuck))::part(title){border-end-end-radius:var(--epic-phase-bottom-radius,0px);border-end-start-radius:var(--epic-phase-bottom-radius,0px)}.estimate{box-sizing:border-box;background:var(--epic-card,var(--ui-surface));min-width:52px;height:22px;box-shadow:inset 0 0 0 1px var(--epic-rule,var(--ui-border-color));color:var(--epic-muted,var(--ui-text-muted));font:600 12px/1 var(--epic-sans,var(--ui-font-family));font-variant-numeric:tabular-nums;letter-spacing:0;border-radius:999px;flex:none;justify-content:center;align-items:center;margin-inline-end:6px;padding:0 6px;display:inline-flex}.estimate.took{color:var(--ui-green-text,var(--ui-green));cursor:help}.icon[data-state=attention]{color:var(--epic-state-attention,var(--ui-red))}.icon:is([data-state=waiting],[data-state=updated]){color:var(--epic-state-replied,var(--ui-orange))}.icon[data-state=progress],.icon[data-state=scheduled]{color:var(--epic-state-progress,var(--ui-blue))}.icon[data-state=recent]{color:var(--epic-state-recent,var(--ui-green))}.icon[data-state=old],.icon[data-state=paused]{color:var(--ui-grey,#767676)}.icon[data-state=scheduled]:not(.working) svg{box-sizing:border-box;border:2px dotted;border-radius:50%;width:.9em}.icon[data-state=scheduled]:not(.working) svg path{display:none}.icon.working{cursor:help}.icon.working>svg{animation:3.4s ease-in-out infinite epic-phase-coin}@keyframes epic-phase-coin{0%{rotate:y 0turn}70%{rotate:y 1turn}to{rotate:y 1turn}}@media (prefers-reduced-motion:reduce){.icon.working>svg{animation:none}}.id{font-variant-numeric:tabular-nums}.dot{white-space:pre}.body{overflow-wrap:anywhere}.changed{color:var(--ui-orange-text,var(--ui-orange));font-variant-numeric:tabular-nums;vertical-align:.05em;pointer-events:auto;align-items:center;gap:3px;margin-left:8px;font-size:.8em;font-weight:700;display:inline-flex}.changed svg{fill:currentColor;width:auto;height:.95em;display:block}.choices-open{color:var(--ui-red-text,var(--ui-red));vertical-align:.05em;white-space:nowrap;margin-left:8px;font-size:.8em;font-weight:700}.seen-all{vertical-align:middle;pointer-events:auto;margin-inline-start:4px}:host(:state(movable)) ui-section::part(title){cursor:grab}:host([data-dragging]) ui-section::part(title),:host([data-dragging]) ui-section::part(toggle),:host([data-dragging]) ui-section::part(badge),:host([data-dragging]) ui-section::part(actions){cursor:grabbing}:host([data-dragged]){opacity:.45}:host([data-drop=before]){box-shadow:0 -2px 0 var(--epic-accent,var(--ui-link))}:host([data-drop=after]){box-shadow:0 2px 0 var(--epic-accent,var(--ui-link))}}`})),iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL=__esmMin((()=>{g(),ef(),Uu(),Zl(),Iu(),TF(),YI(),zE(),ex(),ZI(),tL(),kF(),rL(),P(),iL=(0,e.template)(`<span class=id>P`),aL=(0,e.template)(`<span class=dot aria-hidden=true> · `),oL=(0,e.template)(`<slot>`),sL=(0,e.template)(`<span role=img>`),cL=(0,e.template)(`<span>`),lL=(0,e.template)(`<ui-button appearance="circular basic"size=mini icon=check>`,1),uL=(0,e.template)(`<span role=img><!><!>`),dL=(0,e.template)(`<epic-review>`,1),wL=class _EpicPhase extends (xL=vF,bL=[t.E.proto],yL=[t.E.protoMerged],vL=[t.E.cssState(`commits`),t.E.state],_L=[t.E.cssState(`movable`)],gL=[t.E.cssState(`working`)],hL=[t.E.whileConnected],mL=[t.E.untracked],pL=[t.E.untracked],fL=[t.E.on(Kl,{target:`renderRoot`})],xL){constructor(){super(...arguments),__runInitializers(SL,5,this),__publicField(this,`glyph`,new t.E.IconGlyph({owner:this,name:__name(()=>this.isHeld?jL:AL[this.shownStatus],`name`)})),__publicField(this,`reviewState`,new Hu(()=>this.id)),__privateAdd(this,CL,__runInitializers(SL,8,this,!1)),__runInitializers(SL,11,this),__publicField(this,`changedGlyph`,new t.E.IconGlyph({owner:this,name:__name(()=>`pen to square`,`name`)}))}get shownStatus(){let e=this.status;return e&&e in AL?e:`todo`}get isFinished(){return Qd.isFinished(this.shownStatus)}get hasCommits(){return this.layout,!!this.commits||!!this.domElement.querySelector(`:scope > epic-commit`)}get stateFields(){return{status:this.shownStatus,plan:this.plan,toSee:this.toSee,changes:this.changes,choicesOpen:this.choicesOpen,doneAt:this.doneAt,title:_EpicPhase.titleText(this.domElement)}}get newUpdates(){return LE.newUpdates(this.stateFields,this.live,new Date)}get changedCount(){return this.newUpdates.length}get drawnState(){return this.withOwensMark(LE.of(this.stateFields,this.live))}withOwensMark(e){return e!==`recent`&&e!==`old`&&this.reviewState.isMarked(this.id??``)?`progress`:e}get live(){return{workedOn:this.reviewState.workedOn(),isSeen:__name(e=>this.reviewState.markOf(e)?.action===`seen`,`isSeen`)}}get tookShown(){return this.shownStatus===`done`&&this.took||void 0}get spanShown(){return this.tookShown&&this.span||void 0}get timeShown(){return this.spanShown?`${this.tookShown} / ${this.spanShown}`:this.tookShown??(this.estimate||void 0)}get tookTip(){let e=this.estimate?.replace(/^~\s*/,``),{tookShown:t,spanShown:n}=this;return t&&n&&e?this.translationForKey(`spanEstimateTip`,{took:t,span:n,estimate:e}):t&&n?this.translationForKey(`spanTip`,{took:t,span:n}):t&&e?this.translationForKey(`tookTip`,{estimate:e}):void 0}get isProposed(){return this.layout,!this.isFinished&&Vd.of(this.page)===`phases`}get isMovable(){return this.shownStatus===`todo`&&this.reviewState.reviewing()}get isPlanWaiting(){return LE.isPlanWaiting(this.stateFields)}get isPlanAccepted(){return this.plan===`accepted`&&this.shownStatus===`todo`}get isHeld(){return this.plan===`held`&&this.shownStatus===`todo`}get isWorkedOn(){return!this.isFinished&&this.reviewState.workedOn()}get workingText(){let e=this.shownStatus===`todo`&&this.plan!==`accepted`;return this.translationForKey(e?`workingPlan`:`workingOn`)}get reviewKind(){return this.isProposed?`proposal`:this.isPlanWaiting?`plan`:this.isHeld?`held`:this.isPlanAccepted?`accepted`:`phase`}get phaseNumber(){return this.layout,Gd.numberOf(this.domElement)}contentsEntry(){let e=this.domElement.getAttribute(`status`)??``,t=e in AL?e:`todo`,n=`${Gd.labelOf(this.domElement)} \xB7 ${_EpicPhase.titleText(this.domElement)}`,r=this.withOwensMark(LE.of(LE.fieldsOf(this.domElement),this.live)),i=Wb.find(e=>e.state===r).color;return{label:n,icon:AL[t],color:i}}followReviews(){return this.reviewState.connect()}render(){return this.renderFold({title:__name(()=>{let t=this;return[(()=>{var n=iL();return n.firstChild,(0,e.insert)(n,()=>t.phaseNumber,null),n})(),aL(),(()=>{var n=oL();return n._$owner=(0,e.getOwner)(),(0,e.insert)(n,()=>t.title),(0,e.effect)(()=>t.slotForName(`title`),t=>{(0,e.setAttribute)(n,`name`,t)}),n})()]},`title`),mark:__name(()=>this.changedMark(),`mark`),icon:__name(()=>{let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.isWorkedOn},get fallback(){var n=sL();return(0,e.insert)(n,()=>t.glyph.svg),(0,e.effect)(()=>({e:(0,e.readShallow)([QI,t.shownStatus]),t:t.partForName(`status`),a:t.drawnState,o:t.translationForKey(ML[t.shownStatus])}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`data-state`,i),a!==o?.o&&(0,e.setAttribute)(n,`aria-label`,a)}),n},get children(){var n=sL();return(0,e.insert)(n,()=>t.glyph.svg),(0,e.effect)(()=>({e:(0,e.readShallow)([QI,DL]),t:t.partForName(`status`),a:t.drawnState,o:t.workingText,i:t.workingText}),({e:t,t:r,a:i,o:a,i:o},s)=>{(0,e.className)(n,t,s?.e),r!==s?.t&&(0,e.setAttribute)(n,`part`,r),i!==s?.a&&(0,e.setAttribute)(n,`data-state`,i),a!==s?.o&&(0,e.setAttribute)(n,`aria-label`,a),o!==s?.i&&(0,e.setAttribute)(n,`title`,o)}),n}})},`icon`),tools:__name(()=>{let t=this;return[(0,e.createComponent)(n.Show,{get when(){return t.timeShown},children:n=>(()=>{var r=cL();return(0,e.insert)(r,n),(0,e.effect)(()=>({e:(0,e.readShallow)([PL,{[FL]:!!t.tookShown}]),t:t.partForName(`estimate`),a:t.tookTip}),({e:t,t:n,a:i},a)=>{(0,e.className)(r,t,a?.e),n!==a?.t&&(0,e.setAttribute)(r,`part`,n),i!==a?.a&&(0,e.setAttribute)(r,`title`,i)}),r})()}),(0,e.memo)(()=>t.reviewButtons()),(0,e.createComponent)(n.Show,{get when(){return t.id},children:e=>t.gear(e())})]},`tools`),before:__name(()=>this.saidNote(),`before`),after:__name(()=>{let t=this;return[(()=>{var n=oL();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.slotForName(`changes`),t=>{(0,e.setAttribute)(n,`name`,t)}),n})(),(()=>{var n=oL();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.slotForName(Ou),t=>{(0,e.setAttribute)(n,`name`,t)}),n})(),(0,e.createComponent)(n.Show,{get when(){return t.reviewState.reviewing()},get children(){return t.reviewControl(`note`,`note-box`)}})]},`after`)})}gear(e){return this.renderGear({title:__name(()=>this.translationForKey(`gearTip`),`title`),entries:__name(()=>[...jb.map(t=>({value:t.field,text:this.translationForKey(t.one),isOn:JI.shows(e,t.field)})),...this.hasCommits?[{value:NL,text:this.translationForKey(`showCommits`),isOn:this.showCommits}]:[]],`entries`),pick:__name(t=>{t===NL?this.flipCommits():JI.setOwn(e,t,!JI.shows(e,t))},`pick`)})}flipCommits(){let e=!this.showCommits;this.showCommits=e,e&&this.expand()}foldStyle(){let e=this.showCommits?{[Nu]:`block`}:{},t=this.id;if(!t)return e;let n=JI.ownOf(t);for(let t of jb)n[t.field]!==void 0&&(e[t.property]=n[t.field]?`block`:`none`);return e}changedMark(){let t=this;return[(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>Number(t.choicesOpen)>0)()&&!t.isFinished},get children(){var n=cL();return(0,e.insert)(n,()=>t.translationForKey(Number(t.choicesOpen)===1?`choiceOpen`:`choicesOpenCount`,{count:Number(t.choicesOpen)})),(0,e.effect)(()=>({e:(0,e.readShallow)(EL),t:t.partForName(`choices-open`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),(0,e.createComponent)(n.Show,{get when(){return t.changedCount},children:n=>(()=>{var r=uL(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,()=>t.changedGlyph.svg,i),(0,e.insert)(r,n,a),(0,e.effect)(()=>({e:(0,e.readShallow)(OL),t:t.partForName(`changed`),a:t.translationForKey(`changedTip`,{count:n()}),o:t.translationForKey(`changedTip`,{count:n()})}),({e:t,t:n,a:i,o:a},o)=>{(0,e.className)(r,t,o?.e),n!==o?.t&&(0,e.setAttribute)(r,`part`,n),i!==o?.a&&(0,e.setAttribute)(r,`aria-label`,i),a!==o?.o&&(0,e.setAttribute)(r,`title`,a)}),r})()}),(0,e.createComponent)(n.Show,{get when(){return t.showsSeenAll},get children(){var n=lL();return n._$$click=e=>t.seeAll(e),n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(kL),t:t.partForName(`seen-all`),a:t.translationForKey(`seenAllTip`,{count:t.newUpdates.length}),o:t.translationForKey(`seenAllTip`,{count:t.newUpdates.length})}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`title`,i),a!==o?.o&&(0,e.setAttribute)(n,`aria-label`,a)}),n}})]}get showsSeenAll(){return this.reviewState.reviewing()&&this.newUpdates.length>0}seeAll(e){e.preventDefault(),e.stopPropagation(),this.reviewState.markSeen(this.newUpdates)}reviewButtons(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.reviewState.reviewing()},get children(){return t.reviewControl(`buttons`,`review-buttons`)}})}saidNote(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.reviewState.reviewing())()?t.reviewState.noted()||t.reviewState.takenNote():t.reviewState.reviewing()},get children(){return t.reviewControl(`said`,`said`)}})}reviewControl(t,n){let r=this;var i=dL();return(0,e.setAttribute)(i,`shows`,t),i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:r.id,t:`P${r.phaseNumber}`,a:r.reviewKind,o:r.partForName(n)}),({e:t,t:n,a:r,o:a},o)=>{t!==o?.e&&(0,e.setAttribute)(i,`of`,t),n!==o?.t&&(0,e.setAttribute)(i,`label`,n),r!==o?.a&&(0,e.setAttribute)(i,`buttons`,r),a!==o?.o&&(0,e.setAttribute)(i,`part`,a)}),i}onChosen(e){stopIfOwn(e)&&this.collapse()}},SL=__decoratorStart(xL),CL=new WeakMap,__decorateElement(SL,4,`showCommits`,vL,wL,CL),__decorateElement(SL,2,`isMovable`,_L,wL),__decorateElement(SL,2,`isWorkedOn`,gL,wL),__decorateElement(SL,1,`followReviews`,hL,wL),__decorateElement(SL,1,`flipCommits`,mL,wL),__decorateElement(SL,1,`seeAll`,pL,wL),__decorateElement(SL,1,`onChosen`,fL,wL),__decorateElement(SL,13,`vocabulary`,bL,wL),__decorateElement(SL,13,`elementSetup`,yL,wL),__decoratorMetadata(SL,wL),__name(wL,`EpicPhase`),__publicField(wL,`vocabulary`,__runInitializers(SL,12,wL,XI)),__runInitializers(SL,15,wL),__publicField(wL,`elementSetup`,__runInitializers(SL,16,wL,{styleSheets:{"epic-tooltip":N,"epic-fold":OF,"epic-phase":nL}})),__runInitializers(SL,19,wL),TL=wL,EL=`choices-open`,DL=`working`,OL=`changed`,kL=`seen-all`,AL={todo:`circle outline`,active:`circle notch`,done:`circle check`,dropped:`circle xmark`},jL=`circle pause`,ML={todo:`statusTodo`,active:`statusActive`,done:`statusDone`,dropped:`statusDropped`},NL=`commits`,PL=`estimate`,FL=`took`,(0,e.delegateEvents)([`click`])})),LL,RL=__esmMin((()=>{LL={tag:`epic-field`,topics:[`documentation`,`content parts`],aka:[`field`,`goal`,`symptom`,`verify`,`labelled block`,`where`,`step`],noun:`field`,ui:!1,description:"One field of a phase, by `name`: its icon and label are drawn; its prose is its children. In an item's prose (anywhere prose goes), a labelled block by `label` instead: `<epic-field label=\"Where\">` draws `Where:` before its prose, no icon (epic `epic-components` P14). A labelled field in a phase's Requests field is ONE REQUEST (`epic file`): it folds, its label the title, folded to start with; its screenshots are thumbnails, a click shows one full size, over the page (the page's `<ui-zoom>`). A NAMED field folds too (epic `epic-engine` I167): a chevron before its icon, a click on it, the icon or the label folds or opens it; folded, its label row stays with one line of its text (a list's count); open to start with, the reader's folds remembered per page; ⌥-click and the page's expand-all and collapse-all reach it, and a link or comment landing inside opens it.",attributes:[{name:`name`,kind:`enum`,values:[`symptom`,`changes`,`requests`,`goal`,`choices`,`plan`,`done`,`dropped`,`files`,`verify`,`to-review`],description:"A phase's field (every field in a phase has one): `symptom` (one line), `changes` (two or three), `goal` (a bullet per outcome), `plan` (Claude's build plan, for you to accept before the build: epic `epic-engine` P33), `requests` (what you sent it from other sessions: `epic file`), `done` (what was built), `dropped` (why a dropped phase was never built, in place of Done: epic `epic-engine` I228), `files`, `verify` (both hidden until the Phases title's toggles), `choices` (its own option sets, `<epic-choices>`, epic `epic-engine` P50), `to-review` (the script's: an `<epic-mark item link>` per item, epic `epic-engine` P45)."},{name:`accepted`,kind:`string`,format:`time`,description:"A `plan` field: when you accepted it (`YYYY-MM-DD HH:MM`), the build's go-ahead; none: waiting for you."},{name:`label`,kind:`string`,description:"A labelled block's label, WITHOUT its colon (drawn): `Where`, `What should happen`, `Step`. For a field in prose, never in a phase: a field has `name` or `label`. In a Requests field: the request's title, `r31 · 🚧 debut (ad62dff0)`, drawn without a colon."},{name:`open`,kind:`boolean`,description:`A request (a labelled field in a Requests field): unfolded. Page state only: the tool never writes it, so a page opens with every request folded, and the live patch keeps it.`}],events:[],slots:[{name:``,description:`The field's prose.`}],parts:[{name:`base`,description:`The field: its icon column, then its label and prose.`},{name:`icon`,description:`Its icon, centred on its first line: none on a labelled block.`},{name:`label`,description:"Its label: `Symptom:`, `Where:` ..."},{name:`toggle`,description:`The fold button: a request's, before its label; a named field's, before its icon.`},{name:`body`,description:`A request's or a named field's prose: folded, \`hidden="until-found"\`.`},{name:`taste`,description:`A folded named field's line after its label: its text, cut off at the line's end, or a list's count.`}],states:[{name:`request`,description:`One request in a Requests field: it folds.`},{name:`open`,description:`A request, or a named field, unfolded.`}],texts:[{key:`symptom`,text:`Symptom:`},{key:`changes`,text:`Changes:`},{key:`requests`,text:`Requests:`},{key:`goal`,text:`Goal:`},{key:`choices`,text:`Choices:`,description:`A phase's own option sets (P50).`},{key:`plan`,text:`Claude's plan:`,description:`A phase's build plan, waiting for your Accept.`},{key:`planAccepted`,text:`Claude's plan, accepted:`,description:`A phase's build plan you accepted.`},{key:`done`,text:`Done:`},{key:`dropped`,text:`Dropped:`,description:`A dropped phase's field: why it was never built (I228).`},{key:`files`,text:`Files:`},{key:`verify`,text:`Verify:`},{key:`toReview`,text:`To review:`},{key:`labelled`,text:`{label}:`,description:"A labelled block's label (`label`)."},{key:`foldTip`,text:`Fold this request`,description:`A request's fold button, while open.`},{key:`unfoldTip`,text:`Open this request`,description:`A request's fold button, while folded.`},{key:`foldFieldTip`,text:`Fold this field`,description:`A named field's fold button, while open.`},{key:`unfoldFieldTip`,text:`Open this field`,description:`A named field's fold button, while folded.`},{key:`tasteItem`,text:`1 item`,description:`A folded field that's a list of one.`},{key:`tasteItems`,text:`{count} items`,description:`A folded field that's a list: how many.`},{key:`tasteRequest`,text:`1 request`,description:`A folded Requests field holding one.`},{key:`tasteRequests`,text:`{count} requests`,description:`A folded Requests field: how many it holds.`}],children:[{tag:`flow`,description:`The field's prose.`}],flow:!0}})),zL,BL=__esmMin((()=>{zL=`@layer ui.components.epic-field.types{:host{margin:0 0 6px;display:block}:host([hidden]){display:none}:host([label]:not([name])){margin:8px 0}:host([name=files]){display:var(--epic-files-display,none)}:host([name=verify]){display:var(--epic-verify-display,none)}}@layer ui.components.epic-field.content{.field,.updated{grid-template-columns:1.25em minmax(0,1fr);column-gap:8px;line-height:1.55;display:grid}.field.labelled{grid-template-columns:minmax(0,1fr)}.icon{height:1lh;color:var(--epic-muted,var(--ui-text-muted));justify-content:center;align-items:center;display:inline-flex}.icon svg{fill:currentColor;width:auto;height:.95em;display:block}.text{min-width:0}.label{color:var(--epic-ink,var(--ui-text-color))}::slotted(p){margin:4px 0 0}::slotted(p:first-child){margin:0;display:inline}::slotted(:is(ul,ol)){margin:2px 0 4px;padding-left:1.2em}::slotted(img){border-radius:4px;max-width:100%;height:auto;margin-top:4px;display:block}.updated{border:1px dashed color-mix(in srgb, var(--ui-orange) 60%, transparent);background:color-mix(in srgb, var(--ui-orange) 6%, var(--epic-bg,var(--ui-background)));border-radius:6px;grid-template-columns:auto 1.25em minmax(0,1fr);margin:0;padding:6px 10px}.updated>.head{display:contents}.fold-cell{height:1lh;display:inline-flex}.fold-cell .fold-button{margin:0}.updated:not(:has(.fold-button)){grid-template-columns:1.25em minmax(0,1fr)}.updated:not(:has(.fold-button)) .fold-cell{display:none}.updated>.body{grid-column:-2}.updated>.body[hidden=until-found]{content-visibility:hidden;display:block}:host(epic-updated) ::slotted(p:first-child){margin:2px 0 0;display:block}.updated .icon{color:var(--ui-orange-text,var(--ui-orange))}time,.during{color:var(--epic-muted,var(--ui-text-muted));font:.85em var(--epic-mono,var(--ui-font-family-mono));margin-left:4px}:host([name=plan]:not([accepted])) .field{border-inline-start:3px solid var(--ui-orange,#f2711c);border-radius:2px;padding-inline-start:8px}.field.folding{grid-template-columns:auto 1.25em minmax(0,1fr)}.folding .icon,.folding .label{cursor:pointer}.folding>.text>.body{display:contents}.folding>.text>.body[hidden=until-found]{content-visibility:hidden;display:block}.folded>.text{align-items:baseline;min-width:0;display:flex}.folded .label{white-space:nowrap;flex:none}.taste{min-width:0;color:var(--epic-muted,var(--ui-text-muted));white-space:nowrap;text-overflow:ellipsis;flex:auto;margin-inline-start:.35em;overflow:hidden}.field.request{display:block}.request>.head{align-items:flex-start;display:flex}.request>.body{padding-inline-start:var(--_epic-request-indent,18px)}.request>.body[hidden=until-found]{content-visibility:hidden;display:block}:host(:state(request)) ::slotted(p:first-child){margin:4px 0 0;display:block}:host(:state(request)) ::slotted(blockquote){margin:4px 0}}`})),VL,HL=__esmMin((()=>{VL=`@layer ui.components.epic-field.page{epic-field[name=requests]>epic-field[label]:not([name]) img{box-sizing:border-box;border:1px solid var(--epic-rule,var(--ui-border-color,#22242626));vertical-align:top;cursor:zoom-in;border-radius:4px;width:auto!important;max-width:min(200px,100%)!important;height:auto!important;max-height:140px!important}}`})),UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR=__esmMin((()=>{g(),Ee(),Da(),RL(),tL(),BL(),HL(),Za(),P(),UL=(0,e.template)(`<span>`),WL=(0,e.template)(`<div><span></span><span aria-hidden=true></span><div><b></b> <span><slot>`),GL=(0,e.template)(`<span aria-hidden=true>`),KL=(0,e.template)(`<div><div><b></b> <slot>`),qL=(0,e.template)(`<div><div><b></b></div><div><slot>`),sR=class _EpicField extends (rR=t.E.UIComponent,nR=[t.E.proto],tR=[t.E.protoMerged],eR=[t.E.controlled(`open`)],$L=[t.E.cssState(`request`)],QL=[t.E.state],ZL=[t.E.cssState(`open`)],XL=[t.E.watches({childList:!0,characterData:!0,subtree:!0,attributes:!0,attributeFilter:[`item`]})],YL=[t.E.onChange(`isRequest`)],JL=[t.E.on(`click`)],rR){constructor(){super(...arguments),__runInitializers(iR,5,this),__privateAdd(this,aR,__runInitializers(iR,8,this,!1)),__runInitializers(iR,11,this),__publicField(this,`glyph`,new t.E.IconGlyph({owner:this,name:__name(()=>this.look.icon,`name`)})),__publicField(this,`requestFold`,new F(()=>!1,{isOpen:__name(()=>!!this.isMarkedOpen,`isOpen`),setOpen:__name(e=>this.isMarkedOpen=e,`setOpen`)})),__privateAdd(this,oR,__runInitializers(iR,12,this)),__runInitializers(iR,15,this),__publicField(this,`fieldFold`,new F(()=>!0,{isOpen:__name(()=>!(this.isFoldedNow??MR.isFolded(this.foldKey)),`isOpen`),setOpen:__name(e=>{this.isFoldedNow=!e,MR.remember(this.foldKey,!e)},`setOpen`)}))}get look(){return uR[this.name??`symptom`]??uR.symptom}get isLabelled(){return!this.name&&!!this.label}get isRequest(){return this.isConnected&&this.isLabelled&&!!this.domElement.parentElement?.matches(pR)}get folds(){return!this.isLabelled}get fold(){return this.isRequest?this.requestFold:this.folds?this.fieldFold:void 0}get opensWithAll(){return this.folds&&!this.isRequest}get isOpen(){return this.fold?.isOpen()??!1}reveal(){return this.isRequest?this.requestFold.open():!this.folds||this.fieldFold.isOpen()?!1:(this.isFoldedNow=!1,!0)}get foldKey(){let e=this.name??`field`,t=this.domElement.parentElement?.closest(AR),n=t??this.domElement.getRootNode(),r=Array.from(n.querySelectorAll(`epic-field[name="${e}"]`)).filter(e=>e.parentElement?.closest(AR)===t).indexOf(this.domElement)+1;return`${t?.id||`page`}#${e}${r>1?`-${r}`:``}`}get taste(){let e=Array.from(this.domElement.children).filter(e=>!e.matches(kR));if(this.name===wR){let t=e.filter(e=>e.matches(TR)).length;if(t)return this.counted(t,`tasteRequest`,`tasteRequests`)}let t=_EpicField.textOf(this.domElement).replace(/\s+/g,` `).trim(),n=e.filter(e=>e.matches(ER));if(n.length&&n.length===e.length){let e=n.reduce((e,t)=>e+t.querySelectorAll(`:scope > li`).length,0);return this.counted(e,`tasteItem`,`tasteItems`)}return t}counted(e,t,n){return e===1?this.translationForKey(t):this.translationForKey(n,{count:String(e)})}static textOf(e){let t=``;for(let n of e.childNodes)if(n.nodeType===Node.TEXT_NODE)t+=n.textContent??``;else if(!(n instanceof Element)||n.matches(kR))continue;else n.localName===OR?t+=(n.getAttribute(`item`)??``).toUpperCase():t+=n.matches(DR)?` ${_EpicField.textOf(n)} `:_EpicField.textOf(n);return t}onRequest(e){e&&!t.UI.styles.has(mR)&&t.UI.styles.register(mR,VL,{page:!0})}onClick(e){this.isRequest&&i.ImageZoom.onClick(e)}render(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.isRequest},get fallback(){return(0,e.createComponent)(n.Show,{get when(){return t.folds},get fallback(){return t.field()},get children(){return t.foldingField()}})},get children(){return t.request()}})}get labelText(){return this.isLabelled?this.translationForKey(`labelled`,{label:this.label??``}):this.translationForKey(this.name===lR&&this.accepted?`planAccepted`:this.look.label)}foldingField(){let t=__name(e=>F.toggleFrom(this.fieldFold,e),`toggle`),r=this;var i=WL(),a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=s.firstChild,l=c.nextSibling.nextSibling,u=l.firstChild;(0,e.insert)(a,()=>r.fieldFold.button({controls:yR,labelledBy:vR,clicks:!0,part:r.partForName(`toggle`),tips:{fold:r.translationForKey(`foldFieldTip`),unfold:r.translationForKey(`unfoldFieldTip`)}})),(0,e.addEvent)(o,`click`,t,!0),(0,e.insert)(o,()=>r.glyph.svg),(0,e.addEvent)(c,`click`,t,!0),(0,e.setAttribute)(c,`id`,vR),(0,e.insert)(c,()=>r.labelText),(0,e.insert)(s,(0,e.createComponent)(n.Show,{get when(){return!r.fieldFold.isOpen()},get children(){var t=UL();return(0,e.insert)(t,()=>r.taste),(0,e.effect)(()=>({e:(0,e.readShallow)(CR),t:r.partForName(`taste`)}),({e:n,t:r},i)=>{(0,e.className)(t,n,i?.e),r!==i?.t&&(0,e.setAttribute)(t,`part`,r)}),t}}),l),(0,e.setAttribute)(l,`id`,yR);var d=r.fieldFold.watch;return typeof d==`function`||Array.isArray(d)?(0,e.ref)(()=>d,l):r.fieldFold.watch=l,u._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([r.rootClass,dR,bR,{[xR]:!r.fieldFold.isOpen()}]),t:r.partForName(`base`),a:(0,e.readShallow)(SR),o:(0,e.readShallow)(QI),i:r.partForName(`icon`),n:(0,e.readShallow)(eL),s:(0,e.readShallow)($I),h:r.partForName(`label`),r:(0,e.readShallow)(_R),d:r.partForName(`body`),l:r.fieldFold.hidden()}),({e:t,t:n,a:r,o:u,i:d,n:f,s:p,h:m,r:h,d:g,l:_},v)=>{(0,e.className)(i,t,v?.e),n!==v?.t&&(0,e.setAttribute)(i,`part`,n),(0,e.className)(a,r,v?.a),(0,e.className)(o,u,v?.o),d!==v?.i&&(0,e.setAttribute)(o,`part`,d),(0,e.className)(s,f,v?.n),(0,e.className)(c,p,v?.s),m!==v?.h&&(0,e.setAttribute)(c,`part`,m),(0,e.className)(l,h,v?.r),g!==v?.d&&(0,e.setAttribute)(l,`part`,g),_!==v?.l&&(0,e.setAttribute)(l,`hidden`,_)}),i}field(){let t=this;var r=KL(),i=r.firstChild,a=i.firstChild,o=a.nextSibling.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return!t.isLabelled},get children(){var n=GL();return(0,e.insert)(n,()=>t.glyph.svg),(0,e.effect)(()=>({e:(0,e.readShallow)(QI),t:t.partForName(`icon`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),i),(0,e.insert)(a,()=>t.labelText),o._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,dR,t.isLabelled&&fR]),t:t.partForName(`base`),a:(0,e.readShallow)(eL),o:(0,e.readShallow)($I),i:t.partForName(`label`)}),({e:t,t:n,a:o,o:s,i:c},l)=>{(0,e.className)(r,t,l?.e),n!==l?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,o,l?.a),(0,e.className)(a,s,l?.o),c!==l?.i&&(0,e.setAttribute)(a,`part`,c)}),r}request(){let t=this;var n=qL(),r=n.firstChild,i=r.firstChild,a=r.nextSibling,o=a.firstChild,s=t.requestFold.heading;typeof s==`function`||Array.isArray(s)?(0,e.ref)(()=>s,r):t.requestFold.heading=r,(0,e.insert)(r,()=>t.requestFold.button({controls:yR,labelledBy:vR,part:t.partForName(`toggle`),tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)}}),i),(0,e.setAttribute)(i,`id`,vR),(0,e.insert)(i,()=>t.label),(0,e.setAttribute)(a,`id`,yR);var c=t.requestFold.watch;return typeof c==`function`||Array.isArray(c)?(0,e.ref)(()=>c,a):t.requestFold.watch=a,o._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,dR,hR]),t:t.partForName(`base`),a:(0,e.readShallow)([gR,xa]),o:(0,e.readShallow)($I),i:t.partForName(`label`),n:(0,e.readShallow)([eL,_R]),s:t.partForName(`body`),h:t.requestFold.hidden()}),({e:t,t:o,a:s,o:c,i:l,n:u,s:d,h:f},p)=>{(0,e.className)(n,t,p?.e),o!==p?.t&&(0,e.setAttribute)(n,`part`,o),(0,e.className)(r,s,p?.a),(0,e.className)(i,c,p?.o),l!==p?.i&&(0,e.setAttribute)(i,`part`,l),(0,e.className)(a,u,p?.n),d!==p?.s&&(0,e.setAttribute)(a,`part`,d),f!==p?.h&&(0,e.setAttribute)(a,`hidden`,f)}),n}},iR=__decoratorStart(rR),aR=new WeakMap,oR=new WeakMap,__decorateElement(iR,4,`isMarkedOpen`,eR,sR,aR),__decorateElement(iR,2,`isRequest`,$L,sR),__decorateElement(iR,4,`isFoldedNow`,QL,sR,oR),__decorateElement(iR,2,`isOpen`,ZL,sR),__decorateElement(iR,2,`taste`,XL,sR),__decorateElement(iR,1,`onRequest`,YL,sR),__decorateElement(iR,1,`onClick`,JL,sR),__decorateElement(iR,13,`vocabulary`,nR,sR),__decorateElement(iR,13,`elementSetup`,tR,sR),__decoratorMetadata(iR,sR),__name(sR,`EpicField`),__publicField(sR,`vocabulary`,__runInitializers(iR,16,sR,LL)),__runInitializers(iR,19,sR),__publicField(sR,`elementSetup`,__runInitializers(iR,20,sR,{styleSheets:{"epic-tooltip":N,"epic-fold-button":Xa,"epic-field":zL},delegatesFocus:!1})),__runInitializers(iR,23,sR),cR=sR,lR=`plan`,uR={symptom:{icon:`circle exclamation`,label:`symptom`},changes:{icon:`wand magic sparkles`,label:`changes`},requests:{icon:`comment dots`,label:`requests`},goal:{icon:`bullseye`,label:`goal`},choices:{icon:`square check`,label:`choices`},plan:{icon:`route`,label:`plan`},done:{icon:`circle check`,label:`done`},dropped:{icon:`circle xmark`,label:`dropped`},files:{icon:`folder`,label:`files`},verify:{icon:`flask`,label:`verify`},"to-review":{icon:`list check`,label:`toReview`}},dR=`field`,fR=`labelled`,pR=`epic-field[name="requests"]`,mR=`epic-field-requests`,hR=`request`,gR=`head`,_R=`body`,vR=`label`,yR=`body`,bR=`folding`,xR=`folded`,SR=`fold-cell`,CR=`taste`,wR=`requests`,TR=`epic-field[label]:not([name])`,ER=`ul, ol`,DR=`p, li, ul, ol, blockquote, div, pre, table, tr, td, th, dt, dd, epic-field`,OR=`epic-mark`,kR=`[data-spell-added]`,AR=`epic-phase[id], epic-item[id], epic-section[id], epic-overview[id]`,jR=`spell-field-folds:`,MR=class FieldFolds{static{__name(this,`FieldFolds`)}static isFolded(e){return FieldFolds.saved()[e]===!0}static remember(e,t){let n=FieldFolds.saved();t?n[e]=!0:delete n[e],A.setAt(FieldFolds.key,Object.keys(n).length?n:void 0)}static saved(){let e=A.getAt(FieldFolds.key);return e&&typeof e==`object`?{...e}:{}}static get key(){return`${jR}${location.pathname}`}},(0,e.delegateEvents)([`click`])})),PR,FR=__esmMin((()=>{PR={tag:`epic-updated`,topics:[`documentation`,`content parts`],aka:[`updated`,`plan change`,`revision`,`amendment`],noun:`updated`,ui:!1,description:"RETIRED (Owen, 2026-10-11): an older doc's change to a phase's plan, a dated fence. Still drawn, until the epic tool's next write makes it an `<epic-update at summary>` block at the end of its phase's description (`updates-as-epic-update`).",attributes:[{name:`at`,kind:`string`,required:!0,format:`time`,description:"When the plan changed: `2026-10-06 14:30`, drawn `10/6/26 14:30`."},{name:`phase`,kind:`string`,format:`phase number`,description:"The phase active when it changed, by its number (`3`, `11.1`)."},{name:`of`,kind:`string`,format:`phase number`,description:"An OLDER doc's COPY in the Phases section (T14, until 2026-10-11): the phase whose plan it changes (`5`). Never drawn; the epic tool removes the copies on its next write. Never on the line in its phase."}],events:[],slots:[{name:``,description:`What changed in the plan, and why.`}],parts:[{name:`base`,description:`The fence: a dashed orange box.`},{name:`toggle`,description:"The fold chevron, a `<button>`, first: its heading row folds what changed."},{name:`icon`,description:`Its icon, centred on its first line.`},{name:`label`,description:"`Updated`, then its time."},{name:`body`,description:"What changed, under the heading; hidden (`until-found`) while folded."}],states:[{name:`open`,description:`Unfolded: it starts so (page state, never written).`}],texts:[{key:`foldTip`,text:`Close this plan change`,description:`Tooltip of its fold button while open.`},{key:`unfoldTip`,text:`Open this plan change`,description:`Tooltip of its fold button while folded.`},{key:`updated`,text:`Updated`,description:`Its label.`},{key:`during`,text:`during P{phase}`,description:`After its time: the phase under way then.`}],children:[{tag:`flow`,description:`What changed in the plan, and why.`}]}})),IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR=__esmMin((()=>{g(),sr(),Da(),FR(),tL(),BL(),Za(),P(),IR=(0,e.template)(`<div><div><span></span><span aria-hidden=true></span><span><b></b> <time></time></span></div><div><slot>`),LR=(0,e.template)(`<span class=during>`),UR=class _EpicUpdated extends (VR=t.E.UIComponent,BR=[t.E.proto],zR=[t.E.protoMerged],RR=[t.E.cssState(`open`)],VR){constructor(){super(...arguments),__runInitializers(HR,5,this),__publicField(this,`slots`,new t.E.SlotContent(this.domElement)),__publicField(this,`fold`,new F(()=>!0)),__publicField(this,`glyph`,new t.E.IconGlyph({owner:this,name:__name(()=>`pen to square`,`name`)}))}get isOpen(){return this.fold.isOpen()}get hasBody(){return this.slots.hasContent(``)}get shownTime(){return M.format(this.at)}render(){let t=this;var r=IR(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=s.firstChild,l=c.nextSibling.nextSibling,u=i.nextSibling,d=u.firstChild,f=t.fold.heading;typeof f==`function`||Array.isArray(f)?(0,e.ref)(()=>f,i):t.fold.heading=i,(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.hasBody},get children(){return t.fold.button({controls:XR,labelledBy:YR,part:t.partForName(`toggle`),tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)}})}})),(0,e.insert)(o,()=>t.glyph.svg),(0,e.setAttribute)(s,`id`,YR),(0,e.insert)(c,()=>t.translationForKey(`updated`)),(0,e.insert)(l,()=>t.shownTime),(0,e.insert)(s,(0,e.createComponent)(n.Show,{get when(){return t.phase},children:n=>(()=>{var r=LR();return(0,e.insert)(r,()=>t.translationForKey(`during`,{phase:n()})),r})()}),null),(0,e.setAttribute)(u,`id`,XR);var p=t.fold.watch;return typeof p==`function`||Array.isArray(p)?(0,e.ref)(()=>p,u):t.fold.watch=u,d._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,GR]),t:t.partForName(`base`),a:(0,e.readShallow)([KR,{[xa]:t.hasBody}]),o:(0,e.readShallow)(qR),i:(0,e.readShallow)(QI),n:t.partForName(`icon`),s:(0,e.readShallow)([eL,$I]),h:t.partForName(`label`),r:t.at,d:(0,e.readShallow)([eL,JR]),l:t.partForName(`body`),u:t.fold.hidden()}),({e:t,t:n,a:c,o:d,i:f,n:p,s:m,h,r:g,d:_,l:v,u:y},b)=>{(0,e.className)(r,t,b?.e),n!==b?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,c,b?.a),(0,e.className)(a,d,b?.o),(0,e.className)(o,f,b?.i),p!==b?.n&&(0,e.setAttribute)(o,`part`,p),(0,e.className)(s,m,b?.s),h!==b?.h&&(0,e.setAttribute)(s,`part`,h),g!==b?.r&&(0,e.setAttribute)(l,`datetime`,g),(0,e.className)(u,_,b?.d),v!==b?.l&&(0,e.setAttribute)(u,`part`,v),y!==b?.u&&(0,e.setAttribute)(u,`hidden`,y)}),r}},HR=__decoratorStart(VR),__decorateElement(HR,2,`isOpen`,RR,UR),__decorateElement(HR,13,`vocabulary`,BR,UR),__decorateElement(HR,13,`elementSetup`,zR,UR),__decoratorMetadata(HR,UR),__name(UR,`EpicUpdated`),__publicField(UR,`vocabulary`,__runInitializers(HR,8,UR,PR)),__runInitializers(HR,11,UR),__publicField(UR,`elementSetup`,__runInitializers(HR,12,UR,{styleSheets:{"epic-tooltip":N,"epic-fold-button":Xa,"epic-field":zL},delegatesFocus:!1})),__runInitializers(HR,15,UR),WR=UR,GR=`updated`,KR=`head`,qR=`fold-cell`,JR=`body`,YR=`label`,XR=`body`})),QR=__exportAll({EpicField:()=>cR,EpicPhase:()=>TL,EpicUpdated:()=>WR}),$R=__esmMin((()=>{kf(),IL(),NR(),ZR(),TL.define(),cR.define(),WR.define()})),ez,tz=__esmMin((()=>{ez={tag:`epic-prompt`,topics:[`documentation`,`content parts`,`containers`],aka:[`kickoff prompt`,`prompt`,`brief`,`request`,`quote`],noun:`prompt`,ui:!1,description:"The prompt that started the plan, as you typed it: folded under `Kickoff prompt` in the Overview, on the faint violet of your voice; unfolded, a quoted card. The prompt stays the page's own children.",attributes:[],events:[],slots:[{name:``,description:"The prompt: `<p>`s."}],parts:[{name:`base`,description:"The fold: a `<details>`, folded to start with."},{name:`title`,description:"Its `<summary>`: the chevron and `Kickoff prompt`."},{name:`quote`,description:`The card around the prompt, shown unfolded.`}],states:[],texts:[{key:`toggleTip`,text:`Fold or unfold the kickoff prompt`,description:`The fold's tooltip.`},{key:`title`,text:`Kickoff prompt`,description:`The fold's title.`}],children:[{tag:`flow`,description:`The prompt, as typed.`}]}})),nz,rz=__esmMin((()=>{nz=`@layer ui.components.epic-prompt.types{:host{margin:0 0 14px;display:block}:host([hidden]){display:none}}@layer ui.components.epic-prompt.content{details{border:1px solid var(--epic-voice-person-rule,color-mix(in oklab, var(--ui-violet,#6550ca) 26%, transparent));background:var(--epic-voice-person-fill,color-mix(in oklab, var(--ui-violet,#6550ca) 5%, var(--ui-background,Canvas)));border-radius:10px}.title{color:var(--epic-heading-ink,var(--ui-text-color));font:italic 400 15px/1.4 var(--epic-serif,var(--ui-font-family-heading));cursor:pointer;border-radius:10px;align-items:center;gap:8px;padding:7px 12px;list-style:none;display:flex}.title::-webkit-details-marker{display:none}.title:focus-visible{outline:2px solid var(--ui-focus-color,var(--epic-accent));outline-offset:1px}.chevron{width:12px;height:12px;color:var(--epic-muted,var(--ui-text-muted));transition:rotate var(--epic-turn-duration,.15s);flex:none;justify-content:center;align-items:center;display:inline-flex}.chevron svg{fill:currentColor;width:100%;height:100%;display:block}details[open] .chevron{rotate:90deg}.quote{background:var(--epic-card,var(--ui-surface));box-shadow:0 0 0 1px var(--epic-rule,var(--ui-border-color));border-radius:12px;margin:2px 12px 12px;padding:10px 16px;font-size:15px}::slotted(:is(p,ul,ol)){margin-block:.5em}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0}}`})),iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz=__esmMin((()=>{g(),tz(),rz(),P(),iz=(0,e.template)(`<details><summary><span aria-hidden=true></span></summary><blockquote><slot>`),lz=class _EpicPrompt extends (sz=t.E.UIComponent,oz=[t.E.proto],az=[t.E.protoMerged],sz){constructor(){super(...arguments),__publicField(this,`chevron`,new t.E.IconGlyph({owner:this,name:__name(()=>`chevron right`,`name`)}))}render(){let t=this;var n=iz(),r=n.firstChild,i=r.firstChild,a=r.nextSibling,o=a.firstChild;return(0,e.insert)(i,()=>t.chevron.svg),(0,e.insert)(r,()=>t.translationForKey(`title`),null),o._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(dz),o:t.partForName(`title`),i:t.translationForKey(`toggleTip`),n:(0,e.readShallow)(fz),s:(0,e.readShallow)(pz),h:t.partForName(`quote`)}),({e:t,t:o,a:s,o:c,i:l,n:u,s:d,h:f},p)=>{(0,e.className)(n,t,p?.e),o!==p?.t&&(0,e.setAttribute)(n,`part`,o),(0,e.className)(r,s,p?.a),c!==p?.o&&(0,e.setAttribute)(r,`part`,c),l!==p?.i&&(0,e.setAttribute)(r,`title`,l),(0,e.className)(i,u,p?.n),(0,e.className)(a,d,p?.s),f!==p?.h&&(0,e.setAttribute)(a,`part`,f)}),n}},cz=__decoratorStart(sz),__decorateElement(cz,13,`vocabulary`,oz,lz),__decorateElement(cz,13,`elementSetup`,az,lz),__decoratorMetadata(cz,lz),__name(lz,`EpicPrompt`),__publicField(lz,`vocabulary`,__runInitializers(cz,8,lz,ez)),__runInitializers(cz,11,lz),__publicField(lz,`elementSetup`,__runInitializers(cz,12,lz,{styleSheets:{"epic-tooltip":N,"epic-prompt":nz},delegatesFocus:!1,disabled:`unusable`,loading:`loader`})),__runInitializers(cz,15,lz),uz=lz,dz=`title`,fz=`chevron`,pz=`quote`})),hz=__exportAll({EpicPrompt:()=>uz}),gz=__esmMin((()=>{mz(),uz.define()})),_z,vz=__esmMin((()=>{_z={tag:`epic-question`,topics:[`documentation`,`content parts`,`text`],aka:[`question`,`original question`,`ask`,`prompt`],noun:`question`,ui:!1,description:"A question's text as first asked, under a small `Question` label: the first thing in its item, before its options and answer. The tool finds the question by this tag, not by its place. The text stays the page's own children.",attributes:[],events:[],slots:[{name:``,description:`The question, as asked.`}],parts:[{name:`base`,description:`The label over the text.`},{name:`label`,description:"`Question`, a small grey eyebrow (as an item's `Original question`)."}],states:[],texts:[{key:`label`,text:`Question`,description:`Over the question's text.`}],children:[{tag:`flow`,description:`The question, as asked.`}]}})),yz,bz=__esmMin((()=>{yz=`@layer ui.components.epic-question.types{:host{margin-block:.35em;display:block}:host([hidden]){display:none}:host(:state(disabled))>:not(slot){opacity:var(--ui-disabled-opacity,.45)}}@layer ui.components.epic-question.content{.label{color:var(--ui-text-muted,GrayText);letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px;font-size:.8em;font-weight:600;line-height:1.4}::slotted(:is(p,ul,ol)){margin-block:.35em}::slotted(:is(ul,ol)){padding-inline-start:1.3em}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0}}`})),xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz=__esmMin((()=>{g(),vz(),bz(),P(),xz=(0,e.template)(`<div><div></div><slot>`),Ez=class _EpicQuestion extends (wz=r.E.UIComponent,Cz=[r.E.proto],Sz=[r.E.protoMerged],wz){render(){let t=this;var n=xz(),r=n.firstChild,i=r.nextSibling;return(0,e.insert)(r,()=>t.translationForKey(`label`)),i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(Oz),o:t.partForName(`label`)}),({e:t,t:i,a,o},s)=>{(0,e.className)(n,t,s?.e),i!==s?.t&&(0,e.setAttribute)(n,`part`,i),(0,e.className)(r,a,s?.a),o!==s?.o&&(0,e.setAttribute)(r,`part`,o)}),n}},Tz=__decoratorStart(wz),__decorateElement(Tz,13,`vocabulary`,Cz,Ez),__decorateElement(Tz,13,`elementSetup`,Sz,Ez),__decoratorMetadata(Tz,Ez),__name(Ez,`EpicQuestion`),__publicField(Ez,`vocabulary`,__runInitializers(Tz,8,Ez,_z)),__runInitializers(Tz,11,Ez),__publicField(Ez,`elementSetup`,__runInitializers(Tz,12,Ez,{styleSheets:{"epic-tooltip":N,"epic-question":yz},disabled:`its own`,loading:`loader`})),__runInitializers(Tz,15,Ez),Dz=Ez,Oz=`label`})),Az=__exportAll({EpicQuestion:()=>Dz}),jz=__esmMin((()=>{kz(),Dz.define()})),Mz,Nz=__esmMin((()=>{Mz={tag:`epic-run-row`,topics:[`tables`,`forms`],aka:[`run row`,`command row`,`review row`,`name review`],noun:`run row`,ui:!1,description:"One row of a run page (epic `epic-engine` P23), drawn by `<epic-run>` in its table: the command's own columns, then the answer. The answer is the command's proposal, pre-filled in a box you type over; a pick of the few alternatives the command offers, when it offers any, with the proposal first; the row's tick box, with the command's own label (`Use for every project`); and its details, folded under it. Each change says so (`epic-run-answered`), and `<epic-run>` saves it: typing half a second after you stop, a pick or a tick at once. A row you answered differently from the proposal is orange, with a round button putting the proposal back. A row the command has taken (acted on, epic `epic-engine` P25) has a quiet `taken` mark, its time in the tooltip; changed after that, an orange note says so: the command may pick the change up if it can.",attributes:[{name:`row`,kind:`json`,required:!0,description:"The row, as the command wrote it (`RunRow`, the kit's `spell/server/runs/runs.types`): `id`, `cells`, `value` (the proposal), `alternatives`, `tick`, `details`. A property; JSON in markup."},{name:`columns`,kind:`json`,description:"The run's columns (`RunColumn[]`: `key`, `label`), in order: which `cells` to show, and their names."},{name:`answer`,kind:`json`,description:"Your answer so far (`RunAnswer`: `outcome`, `value`, `ticked`), as saved; none: the proposal, and the tick box as the command set it."},{name:`answer-label`,kind:`string`,description:"The answer column's name (`Spanish`): the box's name."},{name:`taken`,kind:`string`,description:"When the command took the row (acted on it), ISO (`RunPage.taken`, P25); none: not taken yet. An answer saved after it is `changed-after-taken`."}],events:[{name:`epic-run-answered`,detail:`{ rowId: string, outcome: RunOutcome, value: string, ticked?: boolean, now: boolean }`,description:"You answered the row: typed in the box (`now: false`, saved a moment later), picked an alternative or ticked the box (`now: true`). `outcome` says which: `accepted` (the proposal), `picked` (an alternative), `typed` (anything else)."}],slots:[],parts:[{name:`base`,description:`Its cells, laid out on its table's columns.`},{name:`cell`,description:`One of the command's columns: its value, as text.`},{name:`answer`,description:`The answer cell: the box, the pick, the tick box, the details.`},{name:`box`,description:"The `<textarea>`: one line of text that wraps and grows; Enter adds no line."},{name:`reset`,description:`The round button putting the proposal back, once the box holds something else.`},{name:`picks`,description:`The pick: the proposal, then each alternative, as small pills; the chosen one raised, as a segmented control's thumb.`},{name:`pick`,description:`One pill of the pick.`},{name:`tick`,description:`The tick box and its label.`},{name:`details`,description:`Its details, folded: a line each.`},{name:`taken`,description:"The quiet `taken` mark beside the box: a check and the word, its time the tooltip."},{name:`changed-after-taken`,description:`The orange note under the box: the answer changed after the command took the row.`}],states:[{name:`changed`,description:`The answer isn't the proposal: orange.`},{name:`answered`,description:`You answered it (anything saved, the proposal included).`},{name:`taken`,description:`The command took the row (acted on it).`},{name:`changed-after-taken`,description:`Your answer is newer than the command's taking of it: the orange note shows.`}],texts:[{key:`boxLabel`,text:`{label} for {first}`,description:`The box's name, for a screen reader.`},{key:`reset`,text:`Back to the proposal`,description:`The reset button's name.`},{key:`resetTip`,text:`Back to {value}`,description:`The reset button's tooltip.`},{key:`picks`,text:`Pick one`,description:`The pick's name, for a screen reader.`},{key:`proposed`,text:`proposed`,description:`The proposal's pill's tooltip.`},{key:`details`,text:`Details · {count}`,description:`The details' fold: how many lines.`},{key:`taken`,text:`taken`,description:`The taken mark's word.`},{key:`takenTip`,text:`The run took this at {time}`,description:`The taken mark's tooltip.`},{key:`changedAfterTaken`,text:`changed after the run took it`,description:`The orange note on a row changed after it was taken.`},{key:`changedAfterTakenTip`,text:`The command may pick the change up if it can`,description:`The orange note's tooltip.`}],children:[]}})),Pz,Fz=__esmMin((()=>{Pz=`epic-run-answered`})),Iz,Lz=__esmMin((()=>{Iz=`@layer ui.components.epic-run-row.types{:host{--_epic-run-rule:var(--epic-rule,var(--ui-border-color,light-dark(#d4d4d5,#4a4a52)));--_epic-run-muted:var(--ui-text-muted,GrayText);--_epic-run-changed:var(--ui-orange,#f2711c);grid-column:1/-1;grid-template-columns:subgrid;display:grid}:host([hidden]){display:none}:host(:not(:last-child)) .cell{border-bottom:1px solid var(--_epic-run-rule)}.row-box{display:contents}.cell{overflow-wrap:break-word;min-width:0;padding:8px 10px;line-height:1.4}.cell+.cell{border-left:1px solid var(--_epic-run-rule)}.cell:not(.answer){padding-top:13px}.answer{flex-direction:column;gap:6px;display:flex}@media (width<=600px){.answer{order:-1}.cell+.cell{border-left:0}.cell:not(.answer){border-left:1px solid var(--_epic-run-rule)}}.field{align-items:flex-start;gap:4px;display:flex}.box{flex:auto;min-width:0;display:flex}.box::part(input){font:inherit;flex:auto}.box::part(control){box-sizing:border-box;resize:none;overflow-wrap:anywhere;border:1px solid var(--_epic-run-rule);background:var(--ui-surface,Canvas);min-block-size:calc(1lh + 10px);color:var(--ui-text-color,CanvasText);font:inherit;border-radius:6px;margin:0;padding:4px 8px;line-height:1.4}.box::part(control):focus-visible{outline:2px solid var(--ui-focus-color,Highlight);outline-offset:-1px}.reset{width:28px;height:28px;color:var(--_epic-run-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;padding:0;display:inline-grid}.reset:is(:hover,:focus-visible){background:color-mix(in oklab, var(--ui-text-color,CanvasText) 8%, transparent);color:var(--ui-link,LinkText)}.reset ui-icon{pointer-events:none}.taken{min-height:calc(1.75em + 10px);color:var(--_epic-run-muted);cursor:default;flex:none;align-items:center;gap:2px;font-size:.8em;display:inline-flex}.taken ui-icon{pointer-events:none}.changed-after-taken{color:var(--ui-orange-text,var(--_epic-run-changed));text-wrap:pretty;margin:0;font-size:.8em;font-weight:600}.picks{flex-wrap:wrap;gap:4px;display:flex}.pick{border:1px solid var(--_epic-run-rule);min-height:24px;color:var(--ui-text-color,CanvasText);cursor:pointer;border-radius:999px;align-items:center;padding:1px 10px;font-size:.85em;transition:background-color .12s ease-out,border-color .12s ease-out;display:inline-flex;position:relative}.pick input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.pick:hover{background:color-mix(in oklab, var(--ui-text-color,CanvasText) 6%, transparent)}.pick:has(input:focus-visible){outline:2px solid var(--ui-focus-color,Highlight);outline-offset:1px}.pick:has(input:checked){border-color:color-mix(in oklab, var(--ui-text-color,CanvasText) 45%, transparent);background:var(--ui-surface,Canvas);font-weight:600;box-shadow:0 1px 2px #0000001f}.pick.proposed:not(:has(input:checked)){border-style:dashed}.tick{cursor:pointer;align-items:center;gap:6px;font-size:.85em;display:inline-flex}.tick input{width:16px;height:16px;margin:0}.details summary{width:fit-content;color:var(--_epic-run-muted);cursor:pointer;font-size:.8em}.details ul{color:var(--_epic-run-muted);margin:4px 0 0;padding-inline-start:1.2em;font-size:.8em;line-height:1.4}}@layer ui.components.epic-run-row.states{:host(:state(changed)) .box::part(control){border-color:var(--_epic-run-changed);background:var(--ui-orange-background,light-dark(#fff3e8,#3a2a1c))}:host(:state(changed)) .cell:first-child{box-shadow:inset 3px 0 0 var(--_epic-run-changed)}@media (width<=600px){:host(:state(changed)) .cell:first-child{box-shadow:none}:host(:state(changed)) .answer{box-shadow:inset 3px 0 0 var(--_epic-run-changed)}}}`})),Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB=__esmMin((()=>{g(),Zn(),gr(),Nz(),Fz(),Lz(),Rz=(0,e.template)(`<p>`),zz=(0,e.template)(`<div><div role=cell><!><!><!><!><!>`),Bz=(0,e.template)(`<div role=cell>`),Vz=(0,e.template)(`<button type=button><ui-icon name="clock rotate left">`,1),Hz=(0,e.template)(`<span><ui-icon name=check>`,1),Uz=(0,e.template)(`<div><ui-textarea grow spellcheck=false autocomplete=off></ui-textarea><!><!>`,1),Wz=(0,e.template)(`<div role=radiogroup>`),Gz=(0,e.template)(`<label><input type=radio><span>`),Kz=(0,e.template)(`<label><input type=checkbox><span>`),qz=(0,e.template)(`<details><summary></summary><ul>`),Jz=(0,e.template)(`<li>`),oB=class _EpicRunRow extends (rB=t.E.UIComponent,nB=[t.E.proto],tB=[t.E.protoMerged],eB=[t.E.state],$z=[t.E.cssState(`changed`)],Qz=[t.E.cssState(`answered`)],Zz=[t.E.cssState(`taken`)],Xz=[t.E.cssState(`changed-after-taken`)],Yz=[t.E.onChange(`value`)],rB){constructor(){super(...arguments),__runInitializers(iB,5,this),__privateAdd(this,aB,__runInitializers(iB,8,this)),__runInitializers(iB,11,this),__publicField(this,`box`),__publicField(this,`onInput`,__name(e=>{let t=keepOneLine(e.currentTarget);this.typed=t,this.tell(t.trim())},`onInput`)),__publicField(this,`onPick`,__name(e=>{let t=e.currentTarget.value;this.typed=t,this.tell(t,{now:!0})},`onPick`)),__publicField(this,`onTick`,__name(e=>{let t=e.currentTarget.checked;this.tell(this.value.trim(),{now:!0,ticked:t})},`onTick`)),__publicField(this,`onReset`,__name(()=>{this.typed=this.runRow.value,this.tell(this.runRow.value,{now:!0})},`onReset`))}get runRow(){return this.row??{id:``,cells:{},value:``}}get runAnswer(){return this.answer}get runColumns(){return this.columns??[]}get value(){return this.typed??this.runAnswer?.value??this.runRow.value}get choices(){let{value:e,alternatives:t=[]}=this.runRow;return t.length?[e,...t.filter(t=>t!==e)]:[]}get isTicked(){return this.runAnswer?.ticked??!!this.runRow.tick?.checked}get isChanged(){return this.value.trim()!==this.runRow.value}get isAnswered(){return!!this.runAnswer}get isTaken(){return!!this.taken}get isChangedAfterTaken(){let e=this.runAnswer?.at;return!!this.taken&&!!e&&e>this.taken}outcomeOf(e){return e===this.runRow.value?`accepted`:this.runRow.alternatives?.includes(e)?`picked`:`typed`}holdBox(e){this.box=e,e.value=this.value}onValueChanged(e){this.box&&this.box.value!==e&&(this.box.value=e)}render(){let t=this;var r=zz(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=s.nextSibling,l=c.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.runColumns},keyed:e=>e.key,children:n=>(()=>{var r=Bz();return(0,e.insert)(r,()=>t.runRow.cells[n().key]??``),(0,e.effect)(()=>({e:(0,e.readShallow)(lB),t:t.partForName(`cell`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r})()}),i),(0,e.insert)(i,()=>t.field(),a),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.isChangedAfterTaken},get children(){var n=Rz();return(0,e.insert)(n,()=>t.translationForKey(`changedAfterTaken`)),(0,e.effect)(()=>({e:(0,e.readShallow)(yB),t:t.partForName(`changed-after-taken`),a:t.translationForKey(`changedAfterTakenTip`)}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`title`,i)}),n}}),o),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.choices.length},get children(){return t.picks()}}),s),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.runRow.tick},get children(){return t.tick()}}),c),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.runRow.details?.length},get children(){return t.details()}}),l),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,cB]),t:t.partForName(`base`),a:(0,e.readShallow)([lB,uB]),o:t.partForName(`answer`)}),({e:t,t:n,a,o},s)=>{(0,e.className)(r,t,s?.e),n!==s?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,a,s?.a),o!==s?.o&&(0,e.setAttribute)(i,`part`,o)}),r}field(){let t=this;var r=Uz(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling;return(0,e.addEvent)(i,`keydown`,stopNewLine,!0),(0,e.addEvent)(i,`input`,t.onInput,!0),(0,e.ref)(()=>e=>t.holdBox(e),i),i._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.isChanged},get children(){var n=Vz(),r=n.firstChild;return(0,e.addEvent)(n,`click`,t.onReset,!0),r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(pB),t:t.partForName(`reset`),a:t.translationForKey(`reset`),o:t.translationForKey(`resetTip`,{value:t.runRow.value})}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`aria-label`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n}}),a),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.taken},get children(){var n=Hz(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.insert)(n,()=>t.translationForKey(`taken`),null),(0,e.effect)(()=>({e:(0,e.readShallow)(vB),t:t.partForName(`taken`),a:t.translationForKey(`takenTip`,{time:clockOf(t.taken)})}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`title`,i)}),n}}),o),(0,e.effect)(()=>({e:(0,e.readShallow)(dB),t:(0,e.readShallow)(fB),a:t.partForName(`box`),o:t.translationForKey(`boxLabel`,{label:t.answerLabel??``,first:t.firstCell})}),({e:t,t:n,a,o},s)=>{(0,e.className)(r,t,s?.e),(0,e.className)(i,n,s?.t),a!==s?.a&&(0,e.setAttribute)(i,`part`,a),o!==s?.o&&(0,e.setAttribute)(i,`aria-label`,o)}),r}picks(){let t=this;var r=Wz();return(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.choices},keyed:!1,children:(n,r)=>(()=>{var i=Gz(),a=i.firstChild,o=a.nextSibling;return(0,e.addEvent)(a,`change`,t.onPick),(0,e.setAttribute)(a,`name`,bB),(0,e.insert)(o,n),(0,e.effect)(()=>({e:(0,e.readShallow)([hB,{proposed:r===0}]),t:t.partForName(`pick`),a:r===0?t.translationForKey(`proposed`):void 0,o:n(),i:t.value.trim()===n()}),({e:t,t:n,a:r,o,i:s},c)=>{(0,e.className)(i,t,c?.e),n!==c?.t&&(0,e.setAttribute)(i,`part`,n),r!==c?.a&&(0,e.setAttribute)(i,`title`,r),(0,e.setProperty)(a,`value`,o),a.checked=s}),i})()})),(0,e.effect)(()=>({e:(0,e.readShallow)(mB),t:t.partForName(`picks`),a:t.translationForKey(`picks`)}),({e:t,t:n,a:i},a)=>{(0,e.className)(r,t,a?.e),n!==a?.t&&(0,e.setAttribute)(r,`part`,n),i!==a?.a&&(0,e.setAttribute)(r,`aria-label`,i)}),r}tick(){let t=this;var n=Kz(),r=n.firstChild,i=r.nextSibling;return(0,e.addEvent)(r,`change`,t.onTick),(0,e.insert)(i,()=>t.runRow.tick?.label),(0,e.effect)(()=>({e:(0,e.readShallow)(gB),t:t.partForName(`tick`),a:t.isTicked}),({e:t,t:i,a},o)=>{(0,e.className)(n,t,o?.e),i!==o?.t&&(0,e.setAttribute)(n,`part`,i),r.checked=a}),n}details(){let t=__name(()=>this.runRow.details??[],`lines`),r=this;var i=qz(),a=i.firstChild,o=a.nextSibling;return(0,e.insert)(a,()=>r.translationForKey(`details`,{count:String(t().length)})),(0,e.insert)(o,(0,e.createComponent)(n.For,{get each(){return t()},keyed:!1,children:t=>(()=>{var n=Jz();return(0,e.insert)(n,t),n})()})),(0,e.effect)(()=>({e:(0,e.readShallow)(_B),t:r.partForName(`details`)}),({e:t,t:n},r)=>{(0,e.className)(i,t,r?.e),n!==r?.t&&(0,e.setAttribute)(i,`part`,n)}),i}get firstCell(){let e=this.runColumns[0];return e?this.runRow.cells[e.key]??``:this.runRow.id}tell(e,{now:t=!1,ticked:n=this.runRow.tick?this.isTicked:void 0}={}){let r={rowId:this.runRow.id,outcome:this.outcomeOf(e),value:e,now:t};n!==void 0&&(r.ticked=n),this.send(Pz,r)}},iB=__decoratorStart(rB),aB=new WeakMap,__decorateElement(iB,4,`typed`,eB,oB,aB),__decorateElement(iB,2,`isChanged`,$z,oB),__decorateElement(iB,2,`isAnswered`,Qz,oB),__decorateElement(iB,2,`isTaken`,Zz,oB),__decorateElement(iB,2,`isChangedAfterTaken`,Xz,oB),__decorateElement(iB,1,`onValueChanged`,Yz,oB),__decorateElement(iB,13,`vocabulary`,nB,oB),__decorateElement(iB,13,`elementSetup`,tB,oB),__decoratorMetadata(iB,oB),__name(oB,`EpicRunRow`),__publicField(oB,`vocabulary`,__runInitializers(iB,12,oB,Mz)),__runInitializers(iB,15,oB),__publicField(oB,`elementSetup`,__runInitializers(iB,16,oB,{styleSheets:{"epic-run-row":Iz},delegatesFocus:!1,aria:{role:`row`}})),__runInitializers(iB,19,oB),sB=oB,cB=`row-box`,lB=`cell`,uB=`answer`,dB=`field`,fB=`box`,pB=`reset`,mB=`picks`,hB=`pick`,gB=`tick`,_B=`details`,vB=`taken`,yB=`changed-after-taken`,bB=`pick`,(0,e.delegateEvents)([`input`,`keydown`,`click`])})),SB=__exportAll({EpicRunRow:()=>sB}),CB=__esmMin((()=>{xB(),sB.define()})),wB,TB=__esmMin((()=>{wB={tag:`epic-run`,topics:[`forms`,`tables`],aka:[`run page`,`command review`,`command run`,`review page for a command`],skeleton:`4 tall`,noun:`run`,ui:!1,description:"A run page's body (epic `epic-engine` P23): a COMMAND stopped to ask you (the kit's `SRV.CommandRun`), and waits for your answers. It reads the run from the page server (`GET /api/runs/<id>`) and draws who is waiting (`spell translate todos --to es` is waiting, with a green dot; nobody, once the run stopped, finished or its heartbeat went stale), the command's progress lines, updated live, then a table: the command's columns and a row per thing to answer (`<epic-run-row>`). Each answer is saved as you give it; Send, at the bottom, says the answers are done, and the waiting command carries on with them. Send again whenever you like: the page never locks. Steering (P25): a STATUS CARD of the run's passes when the command writes them (a line each: its name, a small bar and `212 of 380`, its calls, its time; the running one live, done ones quiet), and an EFFORT picker when it offers one (`fast | balanced | best`, saved at once, taking effect at the next pass). How the run ended shows in the waiting line: finished, stopped, or its wait ran out. Once a page, from the run page's template.",attributes:[{name:`run`,kind:`string`,required:!0,description:"The run's id: its folder's name in the epic folder's `pages/runs/` (`spell-translate-20261023-1912`)."}],events:[],slots:[],parts:[{name:`base`,description:`Its box: who is waiting, the progress, the table, Send.`},{name:`who`,description:`Who is waiting: the command, with a green dot, while its heartbeat is fresh; else why nobody is (it finished, it stopped, its wait ran out, it isn't running).`},{name:`description`,description:`The command's line or two about what it asks, and what Send does.`},{name:`status`,description:`The status card (P25): the effort picker, then a line per pass; only with passes or an effort.`},{name:`effort`,description:`The effort picker: its label, the choices as a segmented control, and when a change takes effect.`},{name:`effort-note`,description:"When a new effort takes effect: `takes effect at the next pass`, muted."},{name:`passes`,description:`The passes, a line each, in order: name, a small bar and how far, calls, time.`},{name:`pass`,description:`One pass's line; the running one in full ink, the done ones muted.`},{name:`progress`,description:`The command's progress: its latest line, then every line, folded.`},{name:`table`,description:"The table: its heads, then a row per thing to answer (`<epic-run-row>`)."},{name:`head`,description:`The table's heads: the command's columns, then the answer's.`},{name:`bar`,description:`The Send bar, stuck to the window's bottom: where the answers stand, then Send.`},{name:`state`,description:"Where the answers stand: `3 of 5 answered · not sent`, `... sent 19:12`."},{name:`saved`,description:"The last save, muted: `saved 19:04`."},{name:`send`,description:"Send and its countdown (`<epic-send-buttons>`), blue by the fill rule."},{name:`error`,description:`Why the run couldn't be read, an answer saved or Send sent: red, under the bar.`}],states:[{name:`waiting`,description:`A command waits on the run now.`},{name:`sent`,description:`Sent, with nothing given since.`},{name:`ended`,description:`The run is over: finished, stopped, or its wait ran out.`}],texts:[{key:`isWaiting`,text:`is waiting`,description:"After the command, while it waits: `<command> is waiting`."},{key:`waitingTip`,text:`Send hands it your answers, and it carries on`,description:`The waiting line's tooltip.`},{key:`finished`,text:`The command finished: nobody is waiting`,description:"The run is `done`: the command read the answers."},{key:`stopped`,text:`The command stopped: nobody is waiting`,description:"The run is `stopped`: the command gave up."},{key:`timedOut`,text:`The command's wait ran out: nobody is waiting`,description:"The run is `timed-out`: its time limit came before a Send."},{key:`notRunning`,text:`Nobody is waiting: the command isn't running`,description:`The run is open, but no command's heartbeat is fresh.`},{key:`notRunningTip`,text:`Your answers are saved as you give them; the command reads them when it next waits`,description:`The not-running line's tooltip.`},{key:`progress`,text:`Progress · {count}`,description:`The progress lines' fold: how many.`},{key:`status`,text:`How the run is going`,description:`The status card's name, for a screen reader.`},{key:`effort`,text:`Effort`,description:`The effort picker's label, when the command names none.`},{key:`effortNote`,text:`takes effect at the next pass`,description:`Beside the effort picker, while the run is open.`},{key:`count`,text:`{done} of {total}`,description:"How far a pass is, with a total: `212 of 380`."},{key:`oneCall`,text:`1 call`,description:`A pass's calls, one.`},{key:`calls`,text:`{count} calls`,description:"A pass's calls: `14 calls`."},{key:`seconds`,text:`{seconds} s`,description:"A pass's time, under a minute: `6 s`."},{key:`minutes`,text:`{minutes} min {seconds} s`,description:`A pass's time, a minute or more.`},{key:`passDone`,text:`done`,description:`A done pass's tooltip on its check.`},{key:`passRunning`,text:`running`,description:`The running pass's tooltip on its dot.`},{key:`passEffort`,text:`at {effort}`,description:"The effort a pass ran at, after its time: `at best`."},{key:`saved`,text:`saved {time}`,description:`The last save, beside Send.`},{key:`sendTip`,text:`Send your answers: the waiting command carries on with them; send again any time`,description:"The plane's tooltip and name (`<epic-send-buttons send-tip>`)."},{key:`loading`,text:`Reading the run…`,description:`Before the run is read.`}],children:[]}})),EB,DB=__esmMin((()=>{EB=`@layer ui.components.epic-run.types{:host{--_epic-run-rule:var(--epic-rule,var(--ui-border-color,light-dark(#d4d4d5,#4a4a52)));--_epic-run-muted:var(--ui-text-muted,GrayText);margin:.75em 0 1em;display:block}:host([hidden]){display:none}.who{color:var(--_epic-run-muted);margin:0 0 .5em;font-size:.9em}.who code{color:var(--ui-text-color,CanvasText);font:.95em var(--ui-font-family-mono,ui-monospace, monospace);overflow-wrap:anywhere}.description{margin:0 0 .75em;line-height:1.45}.status{border:1px solid var(--_epic-run-rule);border-radius:8px;gap:8px;margin:0 0 1em;padding:8px 12px;font-size:.9em;display:grid}.effort{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.effort-label{font-weight:600}.effort-note{color:var(--_epic-run-muted);font-size:.9em}.segments{background:color-mix(in oklab, var(--ui-text-color,CanvasText) 7%, transparent);border-radius:999px;padding:2px;display:inline-flex}.segment{cursor:pointer;border-radius:999px;align-items:center;min-height:26px;padding:0 12px;transition:background-color .12s ease-out;display:inline-flex;position:relative}.segment input{opacity:0;cursor:inherit;margin:0;position:absolute;inset:0}.segment:hover:not(:has(input:checked,input:disabled)){background:color-mix(in oklab, var(--ui-text-color,CanvasText) 6%, transparent)}.segment:has(input:focus-visible){outline:2px solid var(--ui-focus-color,Highlight);outline-offset:1px}.segment:has(input:checked){background:var(--ui-surface,Canvas);font-weight:600;box-shadow:0 1px 2px #00000024}.segment:has(input:disabled){color:var(--_epic-run-muted);cursor:default}.passes{grid-template-columns:max-content minmax(6em,1fr) max-content max-content;gap:4px 14px;margin:0;padding:0;list-style:none;display:grid}.pass{grid-column:1/-1;grid-template-columns:subgrid;color:var(--_epic-run-muted);align-items:center;display:grid}.pass.running{color:var(--ui-text-color,CanvasText)}.pass-name{align-items:center;gap:4px;font-weight:600;display:inline-flex}.pass-name ui-icon{color:var(--ui-green-text,var(--ui-green,#21ba45))}.dot{background:var(--ui-blue,#2185d0);border-radius:50%;width:8px;height:8px;margin:0 4px;display:inline-block}.pass-how-far{align-items:center;gap:8px;min-width:0;display:flex}.pass-how-far progress{appearance:none;background:color-mix(in oklab, var(--ui-text-color,CanvasText) 10%, transparent);border:0;border-radius:999px;flex:auto;min-width:3em;height:6px;overflow:hidden}.pass-how-far progress::-webkit-progress-bar{background:0 0}.pass-how-far progress::-webkit-progress-value{background:var(--_epic-run-bar);border-radius:999px}.pass-how-far progress::-moz-progress-bar{background:var(--_epic-run-bar);border-radius:999px}.pass{--_epic-run-bar:color-mix(in oklab, var(--ui-text-color,CanvasText) 35%, transparent)}.pass.running{--_epic-run-bar:var(--ui-blue,#2185d0)}.number{font-variant-numeric:tabular-nums;white-space:nowrap}.pass-how-far .number{flex:none}.pass-effort{color:var(--_epic-run-muted)}@media (width<=600px){.passes{grid-template-columns:max-content max-content max-content;column-gap:10px}.pass-how-far{grid-area:2/1/auto/-1}}.progress{color:var(--_epic-run-muted);margin:0 0 1em;font-size:.85em}.progress p,.progress ol{margin:0}.progress ol{padding-inline-start:1.5em;line-height:1.5}.progress summary{cursor:pointer;width:fit-content}.time{font-variant-numeric:tabular-nums}.scroll{border:1px solid var(--_epic-run-rule);border-radius:8px;overflow-x:auto}.table{grid-template-columns:var(--_epic-run-cols,1fr 2fr);min-width:min-content;display:grid}.head{grid-column:1/-1;grid-template-columns:subgrid;background:color-mix(in oklab, var(--ui-text-color,CanvasText) 4%, var(--ui-surface,Canvas));font-size:.85em;font-weight:600;display:grid}.head>span{border-bottom:1px solid var(--_epic-run-rule);padding:6px 10px}.head>span+span{border-left:1px solid var(--_epic-run-rule)}@media (width<=600px){.table{grid-template-columns:var(--_epic-run-cols-narrow,2fr 1fr)}.head>span:last-child{order:-1}.head>span+span{border-left:0}.head>span:not(:last-child){border-left:1px solid var(--_epic-run-rule)}}.bar{z-index:1;border-top:1px solid var(--_epic-run-rule);background:var(--spell-bg,var(--ui-background,Canvas));margin-top:.75em;padding:8px 0;position:sticky;bottom:0}.bar-row{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 10px;display:flex}.state{color:var(--_epic-run-muted);font-variant-numeric:tabular-nums;font-size:.85em;font-weight:600}.saved{color:var(--_epic-run-muted);font-variant-numeric:tabular-nums;font-size:.8em}.send{flex:none}.error{color:var(--ui-red-text,var(--ui-red,#db2828));text-align:end;margin:4px 0 0;font-size:.85em;font-weight:600}}@layer ui.components.epic-run.states{:host(:state(waiting)) .who{color:var(--ui-text-color,CanvasText)}:host(:state(waiting)) .who:before{content:"";background:var(--ui-green,#21ba45);vertical-align:1px;border-radius:50%;width:8px;height:8px;margin-inline-end:6px;display:inline-block}:host(:state(sent)) .state{color:var(--ui-green-text,#1a7f37)}}`})),OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV=__esmMin((()=>{g(),Zn(),gr(),Fz(),Ek(),TB(),DB(),P(),OB=(0,e.template)(`<code>`),kB=(0,e.template)(`<p><!><!>`),AB=(0,e.template)(`<p>`),jB=(0,e.template)(`<div><!><!><!><!><!><!>`),MB=(0,e.template)(`<ol>`),NB=(0,e.template)(`<section><!><!>`),PB=(0,e.template)(`<span>`),FB=(0,e.template)(`<div><span></span><div role=radiogroup>`),IB=(0,e.template)(`<label><input type=radio><span>`),LB=(0,e.template)(`<span role=img>`),RB=(0,e.template)(`<progress>`),zB=(0,e.template)(`<span> `),BB=(0,e.template)(`<li><span><!><!></span><span><span></span></span><span></span><span><!><!>`),VB=(0,e.template)(`<ui-icon name=check>`,1),HB=(0,e.template)(`<details><summary></summary><ol>`),UB=(0,e.template)(`<div><!><!>`),WB=(0,e.template)(`<li>`),GB=(0,e.template)(`<time>`),KB=(0,e.template)(`<div><div role=table><div role=row><span role=columnheader>`),qB=(0,e.template)(`<span role=columnheader>`),JB=(0,e.template)(`<epic-run-row>`,1),YB=(0,e.template)(`<div><div><span></span><epic-send-buttons>`,1),XB=(0,e.template)(`<p role=alert>`),mV=class _EpicRun extends (lV=t.E.UIComponent,cV=[t.E.proto],sV=[t.E.protoMerged],oV=[t.E.state],aV=[t.E.state],iV=[t.E.state],rV=[t.E.onChange(`isConnected`)],nV=[t.E.cssState(`ended`)],tV=[t.E.cssState(`waiting`)],eV=[t.E.cssState(`sent`)],$B=[t.E.whileConnected],QB=[t.E.on(Pz,{target:`renderRoot`})],ZB=[t.E.on(Ck,{target:`renderRoot`})],lV){constructor(){super(...arguments),__runInitializers(uV,5,this),__privateAdd(this,dV,__runInitializers(uV,8,this)),__runInitializers(uV,11,this),__privateAdd(this,fV,__runInitializers(uV,12,this,0)),__runInitializers(uV,15,this),__privateAdd(this,pV,__runInitializers(uV,16,this,Date.now())),__runInitializers(uV,19,this),__publicField(this,`onEffort`,__name(e=>{this.form?.pickEffort(e.currentTarget.value)},`onEffort`))}tickWhileRunning(n){if(n&&!e.isServer)return t.E.every(1,()=>{this.form?.status===`open`&&this.passes.some(e=>e.state===`running`)&&(this.now=Date.now())})}get rows(){return this.version,this.form?.rows??[]}get runColumns(){return this.version,this.form?.page?.columns??[]}get answers(){return this.version,this.form?.answers??{rows:{}}}get progress(){return this.version,this.form?.page?.progress??[]}get passes(){return this.version,this.form?.passes??[]}get effortChoice(){return this.version,this.form?.effortChoice}get effort(){return this.version,this.form?.effort??``}get isEnded(){return this.version,!!this.form?.page&&this.form.status!==`open`}get isWaiting(){return this.version,!!this.form?.isWaiting&&this.form.status===`open`}get fill(){return this.version,this.form?.fill??`rest`}get isSent(){return this.fill===`sent`}get whoLine(){this.version;let e=this.form;return e?.page?e.status===`done`?{text:this.translationForKey(`finished`),title:``}:e.status===`stopped`?{text:this.translationForKey(`stopped`),title:``}:e.status===`timed-out`?{text:this.translationForKey(`timedOut`),title:``}:this.isWaiting?{text:this.translationForKey(`isWaiting`),title:this.translationForKey(`waitingTip`)}:{text:this.translationForKey(`notRunning`),title:this.translationForKey(`notRunningTip`)}:{text:``,title:``}}get errors(){this.version;let e=this.form;return e?[e.loadError,e.saveError,e.sendError].filter(Boolean):[]}get tableStyle(){let e=`repeat(${this.runColumns.length}, minmax(min-content, 1fr))`;return{[gV]:`${e} minmax(14em, 2fr)`,[_V]:`minmax(12em, 2fr) ${e}`}}followForm(){let t=this.run;if(e.isServer||!t)return;let n=mr.forPage(t);this.form=n,this.version=n.version;let r=n.subscribe(()=>this.version=n.version),i=n.watch(window);return n.load(),()=>{i(),r()}}render(){let t=this;var r=jB(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling,s=o.nextSibling,c=s.nextSibling,l=c.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.whoLine.text},get fallback(){var n=AB();return(0,e.insert)(n,()=>t.translationForKey(`loading`)),(0,e.effect)(()=>(0,e.readShallow)(vV),(t,r)=>{(0,e.className)(n,t,r)}),n},get children(){var r=kB(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.isWaiting},get children(){return[(()=>{var n=OB();return(0,e.insert)(n,()=>t.form?.page?.command),n})(),` `]}}),i),(0,e.insert)(r,()=>t.whoLine.text,a),(0,e.effect)(()=>({e:(0,e.readShallow)(vV),t:t.partForName(`who`),a:t.whoLine.title}),({e:t,t:n,a:i},a)=>{(0,e.className)(r,t,a?.e),n!==a?.t&&(0,e.setAttribute)(r,`part`,n),i!==a?.a&&(0,e.setAttribute)(r,`title`,i)}),r}}),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.form?.page?.description},get children(){var n=AB();return(0,e.insert)(n,()=>t.form?.page?.description),(0,e.effect)(()=>({e:(0,e.readShallow)(yV),t:t.partForName(`description`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),a),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.passes.length||t.effortChoice},get children(){return t.statusCard()}}),o),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.progress.length},get children(){return t.progressBlock()}}),s),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.rows.length},get children(){return t.table()}}),c),(0,e.insert)(r,()=>t.bar(),l),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}statusCard(){let t=this;var r=NB(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.effortChoice},get children(){return t.effortPicker()}}),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.passes.length},get children(){var r=MB();return(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.passes},keyed:e=>e.name,children:e=>t.passLine(e)})),(0,e.effect)(()=>({e:(0,e.readShallow)(EV),t:t.partForName(`passes`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}}),a),(0,e.effect)(()=>({e:(0,e.readShallow)(bV),t:t.partForName(`status`),a:t.translationForKey(`status`)}),({e:t,t:n,a:i},a)=>{(0,e.className)(r,t,a?.e),n!==a?.t&&(0,e.setAttribute)(r,`part`,n),i!==a?.a&&(0,e.setAttribute)(r,`aria-label`,i)}),r}effortPicker(){let t=__name(()=>this.effortChoice?.label||this.translationForKey(`effort`),`label`),r=this;var i=FB(),a=i.firstChild,o=a.nextSibling;return(0,e.setAttribute)(a,`id`,GV),(0,e.insert)(a,t),(0,e.setAttribute)(o,`aria-labelledby`,GV),(0,e.insert)(o,(0,e.createComponent)(n.For,{get each(){return r.effortChoice?.choices??[]},keyed:!1,children:t=>(()=>{var n=IB(),i=n.firstChild,a=i.nextSibling;return(0,e.addEvent)(i,`change`,r.onEffort),(0,e.setAttribute)(i,`name`,KV),(0,e.insert)(a,t),(0,e.effect)(()=>({e:(0,e.readShallow)(TV),t:t(),a:r.effort===t(),o:r.isEnded}),({e:t,t:r,a,o},s)=>{(0,e.className)(n,t,s?.e),(0,e.setProperty)(i,`value`,r),i.checked=a,o!==s?.o&&(0,e.setAttribute)(i,`disabled`,o)}),n})()})),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return!r.isEnded},get children(){var t=PB();return(0,e.insert)(t,()=>r.translationForKey(`effortNote`)),(0,e.effect)(()=>({e:(0,e.readShallow)(CV),t:r.partForName(`effort-note`)}),({e:n,t:r},i)=>{(0,e.className)(t,n,i?.e),r!==i?.t&&(0,e.setAttribute)(t,`part`,r)}),t}}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(xV),t:r.partForName(`effort`),a:(0,e.readShallow)(SV),o:(0,e.readShallow)(wV)}),({e:t,t:n,a:r,o:s},c)=>{(0,e.className)(i,t,c?.e),n!==c?.t&&(0,e.setAttribute)(i,`part`,n),(0,e.className)(a,r,c?.a),(0,e.className)(o,s,c?.o)}),i}passLine(t){let r=__name(()=>t().state===`running`,`isRunning`),i=this;var a=BB(),o=a.firstChild,s=o.firstChild,c=s.nextSibling,l=o.nextSibling,u=l.firstChild,d=l.nextSibling,f=d.nextSibling,p=f.firstChild,m=p.nextSibling;return(0,e.insert)(o,(0,e.createComponent)(n.Show,{get when(){return r()},get fallback(){var t=VB();return t._$owner=(0,e.getOwner)(),(0,e.effect)(()=>i.translationForKey(`passDone`),n=>{(0,e.setAttribute)(t,`label`,n)}),t},get children(){var t=LB();return(0,e.effect)(()=>({e:(0,e.readShallow)(jV),t:i.translationForKey(`passRunning`)}),({e:n,t:r},i)=>{(0,e.className)(t,n,i?.e),r!==i?.t&&(0,e.setAttribute)(t,`aria-label`,r)}),t}}),s),(0,e.insert)(o,()=>t().name,c),(0,e.insert)(l,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t().total)()?r():t().total},get children(){var n=RB();return(0,e.effect)(()=>({e:t().total,t:t().done??0,a:t().name}),({e:t,t:r,a:i},a)=>{t!==a?.e&&(0,e.setAttribute)(n,`max`,t),r!==a?.t&&(0,e.setAttribute)(n,`value`,r),i!==a?.a&&(0,e.setAttribute)(n,`aria-label`,i)}),n}}),u),(0,e.insert)(u,()=>i.howFar(t())),(0,e.insert)(d,()=>i.callsText(t().calls)),(0,e.insert)(f,()=>i.timeText(r()?i.runningMs(t()):t().ms),p),(0,e.insert)(f,(0,e.createComponent)(n.Show,{get when(){return t().effort},get children(){var n=zB();return n.firstChild,(0,e.insert)(n,()=>i.translationForKey(`passEffort`,{effort:t().effort}),null),(0,e.effect)(()=>(0,e.readShallow)(AV),(t,r)=>{(0,e.className)(n,t,r)}),n}}),m),(0,e.effect)(()=>({e:(0,e.readShallow)([DV,{running:r()}]),t:i.partForName(`pass`),a:(0,e.readShallow)(OV),o:(0,e.readShallow)(kV),i:(0,e.readShallow)(MV),n:(0,e.readShallow)(MV),s:(0,e.readShallow)(MV)}),({e:t,t:n,a:r,o:i,i:s,n:c,s:p},m)=>{(0,e.className)(a,t,m?.e),n!==m?.t&&(0,e.setAttribute)(a,`part`,n),(0,e.className)(o,r,m?.a),(0,e.className)(l,i,m?.o),(0,e.className)(u,s,m?.i),(0,e.className)(d,c,m?.n),(0,e.className)(f,p,m?.s)}),a}howFar({done:e,total:t}){return t===void 0?e===void 0?``:String(e):this.translationForKey(`count`,{done:String(e??0),total:String(t)})}callsText(e){return e===void 0?``:e===1?this.translationForKey(`oneCall`):this.translationForKey(`calls`,{count:String(e)})}runningMs(e){if(this.form?.status!==`open`)return e.ms;let t=Date.parse(e.started);return Number.isNaN(t)?e.ms:Math.max(e.ms??0,this.now-t)}timeText(e){if(e===void 0)return``;let t=Math.round(e/1e3);return t<60?this.translationForKey(`seconds`,{seconds:String(t)}):this.translationForKey(`minutes`,{minutes:String(Math.floor(t/60)),seconds:String(t%60)})}progressBlock(){let t=this;var r=UB(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return!t.passes.length},get children(){var n=AB();return(0,e.insert)(n,()=>t.progressLine(t.progress.at(-1))),(0,e.effect)(()=>(0,e.readShallow)(PV),(t,r)=>{(0,e.className)(n,t,r)}),n}}),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.progress.length>1||t.passes.length},get children(){var r=HB(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(i,()=>t.translationForKey(`progress`,{count:String(t.progress.length)})),(0,e.insert)(a,(0,e.createComponent)(n.For,{get each(){return t.progress},keyed:!1,children:n=>(()=>{var r=WB();return(0,e.insert)(r,()=>t.progressLine(n())),r})()})),r}}),a),(0,e.effect)(()=>({e:(0,e.readShallow)(NV),t:t.partForName(`progress`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}progressLine(t){return[(()=>{var n=GB();return(0,e.insert)(n,()=>clockOf(t.at)),(0,e.effect)(()=>({e:(0,e.readShallow)(FV),t:t.at}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`datetime`,r)}),n})(),` `,(0,e.memo)(()=>t.text)]}table(){let t=this;var r=KB(),i=r.firstChild,a=i.firstChild,o=a.firstChild;return(0,e.insert)(a,(0,e.createComponent)(n.For,{get each(){return t.runColumns},keyed:e=>e.key,children:t=>(()=>{var n=qB();return(0,e.insert)(n,()=>t().label),n})()}),o),(0,e.insert)(o,()=>t.form?.page?.answerLabel),(0,e.insert)(i,(0,e.createComponent)(n.For,{get each(){return t.rows},keyed:e=>e.id,children:n=>(()=>{var r=JB();return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:n(),t:t.runColumns,a:t.answers.rows[n().id],o:t.form?.page?.answerLabel??``,i:t.form?.takenAt(n().id)}),({e:t,t:n,a:i,o:a,i:o},s)=>{t!==s?.e&&(0,e.setAttribute)(r,`row`,t),n!==s?.t&&(0,e.setAttribute)(r,`columns`,n),i!==s?.a&&(0,e.setAttribute)(r,`answer`,i),a!==s?.o&&(0,e.setAttribute)(r,`answer-label`,a),o!==s?.i&&(0,e.setAttribute)(r,`taken`,o)}),r})()}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(IV),t:(0,e.readShallow)(LV),a:t.partForName(`table`),o:(0,e.readShallow)(t.tableStyle),i:(0,e.readShallow)(RV),n:t.partForName(`head`)}),({e:t,t:n,a:o,o:s,i:c,n:l},u)=>{(0,e.className)(r,t,u?.e),(0,e.className)(i,n,u?.t),o!==u?.a&&(0,e.setAttribute)(i,`part`,o),(0,e.style)(i,s,u?.o),(0,e.className)(a,c,u?.i),l!==u?.n&&(0,e.setAttribute)(a,`part`,l)}),r}bar(){let t=this;var r=YB(),i=r.firstChild,a=i.firstChild,o=a.nextSibling;return(0,e.insert)(a,()=>t.stateLine()),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.savedTime()},get children(){var n=PB();return(0,e.insert)(n,()=>t.translationForKey(`saved`,{time:t.savedTime()})),(0,e.effect)(()=>({e:(0,e.readShallow)(HV),t:t.partForName(`saved`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),o),o._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.errors},keyed:!1,children:n=>(()=>{var r=XB();return(0,e.insert)(r,n),(0,e.effect)(()=>({e:(0,e.readShallow)(WV),t:t.partForName(`error`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r})()}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(zV),t:t.partForName(`bar`),a:(0,e.readShallow)(BV),o:(0,e.readShallow)(VV),i:t.partForName(`state`),n:(0,e.readShallow)(UV),s:t.partForName(`send`),h:qV[t.fill],r:t.isSending()?``:void 0,d:t.translationForKey(`sendTip`)}),({e:t,t:n,a:s,o:c,i:l,n:u,s:d,h:f,r:p,d:m},h)=>{(0,e.className)(r,t,h?.e),n!==h?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,s,h?.a),(0,e.className)(a,c,h?.o),l!==h?.i&&(0,e.setAttribute)(a,`part`,l),(0,e.className)(o,u,h?.n),d!==h?.s&&(0,e.setAttribute)(o,`part`,d),f!==h?.h&&(0,e.setAttribute)(o,`state`,f),p!==h?.r&&(0,e.setAttribute)(o,`busy`,p),m!==h?.d&&(0,e.setAttribute)(o,`send-tip`,m)}),r}stateLine(){return this.version,this.form?.page?this.form.stateLine:``}savedTime(){return this.version,this.form&&!this.form.saveError?this.form.savedAt:``}isSending(){return this.version,!!this.form?.isSending}onAnswer(e){e.stopPropagation();let{rowId:t,outcome:n,value:r,ticked:i,now:a}=e.detail;this.form?.answer(t,{outcome:n,value:r,ticked:i},a)}onSendAsked(e){e.stopPropagation(),this.form?.send()}},uV=__decoratorStart(lV),dV=new WeakMap,fV=new WeakMap,pV=new WeakMap,__decorateElement(uV,4,`form`,oV,mV,dV),__decorateElement(uV,4,`version`,aV,mV,fV),__decorateElement(uV,4,`now`,iV,mV,pV),__decorateElement(uV,1,`tickWhileRunning`,rV,mV),__decorateElement(uV,2,`isEnded`,nV,mV),__decorateElement(uV,2,`isWaiting`,tV,mV),__decorateElement(uV,2,`isSent`,eV,mV),__decorateElement(uV,1,`followForm`,$B,mV),__decorateElement(uV,1,`onAnswer`,QB,mV),__decorateElement(uV,1,`onSendAsked`,ZB,mV),__decorateElement(uV,13,`vocabulary`,cV,mV),__decorateElement(uV,13,`elementSetup`,sV,mV),__decoratorMetadata(uV,mV),__name(mV,`EpicRun`),__publicField(mV,`vocabulary`,__runInitializers(uV,20,mV,wB)),__runInitializers(uV,23,mV),__publicField(mV,`elementSetup`,__runInitializers(uV,24,mV,{styleSheets:{"epic-tooltip":N,"epic-run":EB},delegatesFocus:!1})),__runInitializers(uV,27,mV),hV=mV,gV=`--_epic-run-cols`,_V=`--_epic-run-cols-narrow`,vV=`who`,yV=`description`,bV=`status`,xV=`effort`,SV=`effort-label`,CV=`effort-note`,wV=`segments`,TV=`segment`,EV=`passes`,DV=`pass`,OV=`pass-name`,kV=`pass-how-far`,AV=`pass-effort`,jV=`dot`,MV=`number`,NV=`progress`,PV=`latest`,FV=`time`,IV=`scroll`,LV=`table`,RV=`head`,zV=`bar`,BV=`bar-row`,VV=`state`,HV=`saved`,UV=`send`,WV=`error`,GV=`effort-label`,KV=`effort`,qV={rest:`idle`,pending:`unsent`,sent:`sent`}})),YV=__exportAll({EpicRun:()=>hV}),XV=__esmMin((()=>{CB(),CI(),JV(),hV.define()})),ZV,QV=__esmMin((()=>{fa(),tN(),Zl(),ex(),ZV={tag:`epic-section`,topics:[`documentation`,`containers`,`layout`],aka:[`section`,`chapter`,`panel`],noun:`section`,ui:!1,description:"One section of an epic page, by `kind`: its phases, its items or its log; or, inside `<epic-overview>`, one of the Overview's sub-sections (`overview-part`), which gets review notes as items do; or a report a run wrote (`report`: an overnight `/bedtime` report), after the Overview, unnumbered; or a saga page's Epics (`epics`: the cards of the epics serving it, an `<epic-cards>`).",attributes:[{name:`id`,property:`epicId`,kind:`string`,required:!0,format:`anchor`,description:"Its id, which links use: FIXED per kind (`phases`, `decisions` for Questions ...); `o1`, `o2` ... for an Overview sub-section; a report's own (`overnight`)."},{name:`kind`,kind:`enum`,values:[`overview-part`,`epics`,`choices`,`phases`,`questions`,`judgements`,`todos`,`issues`,`tests`,`log`,`report`,`away`],required:!0,description:'What it holds: `phases` its `<epic-phase>`s; `questions` ... `tests` its `<epic-item>`s; `log` its `<epic-commit>`s (drawn, newest first) and `<epic-event>`s (written, not drawn); `overview-part` and `report` prose; `epics` (a saga page\'s) its `<epic-cards>`; `away`, "0. While you were out", what Claude did since you last read it, first on the page (written by the tool).'},{name:`title`,property:`epicTitle`,kind:`string`,description:"An Overview sub-section's title, WITHOUT its number (`Structure`, drawn as `1.1 Structure`), or a report's (`Overnight · 2026-10-04`): required there (or a `slot=\"title\"` child, for a title with markup). The page's sections draw their own."},{name:`source`,kind:`string`,description:"Its body's part file (`parts/o3.html`, `parts/log.html`), loaded into its children when it opens."},{name:`part-ids`,kind:`string`,format:`ids`,description:`The ids inside its part file: a link to one loads the body first, then lands.`},{name:`waiting`,kind:`number`,description:'`kind="away"`: how many things in it wait on you (epic `epic-engine` P62), written by the tool: the toolbar\'s red badge.'},{name:`lines`,kind:`string`,description:'`kind="away"`: its lines\' keys, space-separated (`done p-x todo i205`; epic `epic-engine` I206), written by the tool: each `<epic-away-line>` in it takes its own Read, which the review inbox knows by these.'},{name:`to-accept`,kind:`string`,format:`ids`,description:"The change marks inside it still waiting for your Accept (`ch3 ch5`), written by the epic tool on every edit (epic `epic-engine` P30): the page counts and finds them while its body, a part, isn't loaded."},{name:`to-see`,kind:`string`,description:"The update blocks inside it still new (`up3@2026-10-27T10:00 up5@...`: each id and its `at`), written by the epic tool on every edit (epic `epic-engine` I168): not seen, not quiet as of that write. The page counts them (a phase's pen) and takes their Seen while its body, a part, isn't loaded."},yb],events:[...bb,{name:`epic-filter-changed`,detail:`{ states: string[] | undefined }`,description:"Its state filter changed: its chips, `show all`, or the page's toolbar (`showStates()`). `states` the ones showing; none: every state."},{name:`epic-count-changed`,detail:`{}`,description:"Its live count changed with no change to its markup (epic `epic-engine` I147): an item or phase being worked on, an urgency not applied yet. The docs runtime draws the toolbar's badges again."}],slots:[{name:``,description:`Its phases, items, log events or prose.`},{name:`title`,description:"A title with markup, in place of `title`."},la,{name:`changes`,description:`An OLDER doc's Plan changes copies in the Phases section (T14, until 2026-10-11). NOT drawn: no slot of the shadow root takes them, since each phase draws its own; the epic tool removes them on its next write.`},{name:`status`,description:'An Overview sub-section\'s status cards from Claude (`<epic-status slot="status">`, P13): at the end of its body, above the note box.'}],parts:[...xb,{name:`tools`,description:"At the title's end: the page's own buttons (the `actions` slot), then the Phases section's state filter, its Accept Phases while the phases are agreed, and its gear; an item section's state filter; an Overview sub-section's review buttons."},{name:`gear`,description:`The Phases section's gear, last on its title row (epic \`epic-engine\` I166; the Files / Verify toggles before): a \`<ui-dropdown>\` menu, "Show each phase's files" and "Show each phase's checks", ticked while on. A pick shows or hides that field in every phase, forgetting each phase's own choice of it.`},{name:`stage-button`,description:'Its "Accept Phases" (an `<epic-stage-button>`, epic `epic-engine` I180), the Phases section only, before its gear: only while the page is reviewed and agrees its phases (`<epic-page stage="phases">`). A press accepts the phases and every build plan waiting, and sends; outlined green until the session moves the page on.'},{name:`filter`,description:"An item section's state filter: one chip per state its items are in, with how many, solid while that state's items show, outlined while hidden. The Phases section's the same, by a phase's state, the first that holds (epic `epic-engine` I157, I170): red needs you (a plan to accept, a choice open), orange changed since you looked, blue under way (in the blue badge), a grey pause held by you, dotted blue scheduled, green done in the last 3 days, grey done before."},{name:`hidden-note`,description:'Under a filtered list (items or phases): "3 hidden · show all", an `<epic-hidden-note>`.'},{name:`empty`,description:`An item section with no items: "None yet".`},...Jl,{name:`new-item`,description:"A Todo, Questions, Issues or Manual tests section's New todo / question / issue / test (an `<epic-new-item>`, epic `airplane` P2), at its end: the button, or the form in its place. Only while the page is reviewed."},{name:`new-button`,description:`The same sections' comment-dots button, on the title: opens the section, then that form. Only while reviewed.`},{name:`new-list`,description:`A Todo or Questions section's new items waiting to be made: dashed until sent, then outlined.`},{name:`start-testing`,description:'The Manual tests section\'s button on its title (epic `epic-engine` P51), only while the page is reviewed and a test is open: "Start testing · 9" asks Claude to prepare the tests (a request for now: it checks what it can, writes out the rest), "Preparing tests" while it does, then "Focus on the tests · 3 left", which opens Focus mode on its Tests tab, on the first test you haven\'t answered (epic `epic-engine` P57, Q65). The address\'s `?test=1` presses it as the page loads.'},{name:`next-epic`,description:"The Manual tests section's link to the next epic with open tests, at its end once every test is answered: only in a run across every epic (`epic test --all`, `?test=1&all=1`)."}],states:[...Sb,{name:`tools`,description:`Its title has tools: the Phases gear, or a state filter (items in it).`}],texts:[...Cb,{key:`epicsTitle`,text:`Epics`},{key:`choicesTitle`,text:`Choices`,description:`The standing option sets' section (P50).`},{key:`phasesTitle`,text:`Phases`},{key:`questionsTitle`,text:`Questions`},{key:`judgementsTitle`,text:`Judgement calls`},{key:`todosTitle`,text:`Todo`},{key:`issuesTitle`,text:`Issues`},{key:`testsTitle`,text:`Manual tests`},{key:`logTitle`,text:`Log`},{key:`noneYet`,text:`None yet`,description:`An item section with no items.`},{key:`gearTip`,text:`Settings for every phase`,description:`The Phases gear's tooltip and name (I166).`},{key:`showFiles`,text:`Show each phase's files`,description:`The Phases gear menu: every phase's Files field, ticked while shown.`},{key:`showVerify`,text:`Show each phase's checks`,description:`The Phases gear menu: every phase's Verify field, ticked while shown.`},{key:`addNew`,text:`New {kind}`,description:`An item section's comment-dots button on its title: its name and tooltip.`},{key:`startTesting`,text:`Start testing · {count}`,description:"The Manual tests section's button on its title (epic `epic-engine` P4): how many tests are open."},{key:`startTestingTip`,text:`Claude checks the tests it can check itself, writes out exactly what to do for the rest, with a screenshot, then the first test opens: Approve one that passed, write what you saw in its note, the x if it no longer applies`,description:"Start testing's tooltip (epic `epic-engine` P51)."},{key:`preparingTests`,text:`Preparing tests`,description:`The Manual tests section's button while Claude prepares the tests (P51).`},{key:`preparingTip`,text:`Claude is checking what it can and writing out the rest; the first test opens when it's done · click to call it off`,description:`Preparing tests' tooltip.`},{key:`waitingTip`,text:`Asked: {why} · click to call it off`,description:`Preparing tests' tooltip while nobody has taken it yet.`},{key:`focusTests`,text:`Focus on the tests · {count} left`,description:`The Manual tests section's button once every open test is prepared (P51): how many he hasn't answered; it opens Focus mode on them (P57, Q65).`},{key:`focusAllTests`,text:`Focus on the tests · {count}`,description:`The same, every open test answered already: Focus mode on the first again.`},{key:`focusTestsTip`,text:`Go through the tests in Focus mode, in Claude's order: Approve if it passed, your note (and a screenshot) if not, the x if it no longer applies`,description:`The button's tooltip once the tests are prepared.`},{key:`testsReady`,text:`Tests ready: Focus on the tests opens the first`,description:`The notice when the tests are prepared while you type: the first test doesn't open under you.`},{key:`nextEpic`,text:`Next epic with open tests: {epic} · {count}`,description:`The Manual tests section's last line in a run across every epic, once every test is answered.`},{key:`noEpicLeft`,text:`Every epic's tests are answered: Send hands them to Claude`,description:`The same, with no other epic left to test.`},...QM,...eN],children:[{tag:`flow`,slot:`title`,max:1,description:`A title with markup.`},ua,{tag:`epic-updated`,slot:`changes`,when:{attribute:`kind`,values:[`phases`]},description:"An OLDER doc's Plan changes (T14, until 2026-10-11): a copy of each `<epic-updated>` of a phase still to do, its phase in `of`. Never drawn: each phase draws its own now; the tool removes them on its next write."},{tag:`flow`,when:{attribute:`kind`,values:[`overview-part`,`report`,`away`]},description:`An Overview sub-section's prose, a report's, or "0. While you were out"'s (written by the tool).`},{tag:`epic-status`,slot:`status`,when:{attribute:`kind`,values:[`overview-part`]},description:"An Overview sub-section's status cards from Claude, oldest first (`plan-doc status`)."},{tag:`epic-choices`,when:{attribute:`kind`,values:[`choices`]},description:'The Choices section\'s standing sets (epic `epic-engine` P50): `<epic-choices id="s-<slug>" title standing>`.'},{tag:`flow`,when:{attribute:`kind`,values:[`choices`]},description:"The Choices section's notes: a set's lead, before it (`epic add <epic>#choices --note`)."},{tag:`epic-phase`,when:{attribute:`kind`,values:[`phases`]},description:`The phases, in order.`},{tag:`epic-item`,when:{attribute:`kind`,values:[`questions`,`judgements`,`todos`,`issues`,`tests`]},description:"The items, their id's letter the section's (`q` in Questions)."},{tag:`epic-event`,when:{attribute:`kind`,values:[`log`]},description:"The log's review lines (answered, reviewed, active ...), oldest first: written, never drawn (epic `epic-engine` P52, Q56 C); Actual Time and `epic log` read them."},{tag:`epic-commit`,when:{attribute:`kind`,values:[`log`]},description:"The Log's entries, one per commit of the epic (`<epic-commit at refs>`), in the file by time, oldest first: drawn newest first."},{tag:`epic-cards`,when:{attribute:`kind`,values:[`epics`]},max:1,description:`A saga page's Epics: the cards of the epics serving the saga, drawn from the page server.`},{tag:`flow`,when:{attribute:`kind`,values:[`epics`]},description:`A saga page's Epics: a line or two before the cards, if any.`}]}}));function swallowClick(){let swallow=e=>{e.preventDefault(),e.stopPropagation()};window.addEventListener(`click`,swallow,{capture:!0,once:!0}),t.E.after(.3,()=>window.removeEventListener(`click`,swallow,{capture:!0}))}var $V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH=__esmMin((()=>{$V=class PhaseDrag{host;enabled;move;pending;drag;constructor(e,t){this.host=e,this.enabled=t.enabled,this.move=t.move,this.pending=t.pending??(()=>[])}static wire(e,t){let n=new PhaseDrag(e,t),r=new AbortController,i=r.signal;e.addEventListener(`pointerdown`,e=>n.onPress(e),{signal:i}),window.addEventListener(`spell-doc:updated`,()=>n.reapply(),{signal:i});let a=t.subscribe?.(()=>n.reapply());return n.reapply(),()=>{r.abort(),a?.(),n.end()}}get phases(){return Array.from(this.host.children).filter(e=>e.localName===eH&&!e.hasAttribute(`hidden`))}onPress(e){if(e.button!==0||!this.enabled())return;let t=PhaseDrag.phaseFrom(e,this.host);if(!t||!PhaseDrag.isToDo(t))return;let n={x:e.clientX,y:e.clientY},r=new AbortController,i=r.signal,onMove=e=>{!this.drag&&Math.hypot(e.clientX-n.x,e.clientY-n.y)<iH||(this.drag||this.begin(t),e.preventDefault(),this.over(e.clientY))},onUp=()=>{r.abort(),this.drag&&this.drop()},onKey=e=>{e.key===`Escape`&&this.drag&&(r.abort(),this.end(),swallowClick())};window.addEventListener(`pointermove`,onMove,{signal:i}),window.addEventListener(`pointerup`,onUp,{signal:i}),window.addEventListener(`pointercancel`,()=>(r.abort(),this.end()),{signal:i}),window.addEventListener(`keydown`,onKey,{signal:i})}reapply(){for(let{id:e,to:t}of this.pending()){let n=this.phases,r=n.find(t=>t.id===e),i=r?n.indexOf(r)+1:0;!r||i===t||t<1||t>n.length||PhaseDrag.place(r,n[t-1],t>i?`after`:`before`)}}begin(e){this.drag={phase:e,from:this.phases.indexOf(e)+1},e.setAttribute(tH,``);for(let e of[this.host,...this.phases])e.setAttribute(nH,``)}over(e){let t=this.drag;for(let e of this.host.querySelectorAll(`[${rH}]`))e.removeAttribute(rH);t.place=this.placeAt(e),t.place&&t.place.target.setAttribute(rH,t.place.side),e<oH?scrollBy(0,-sH):e>innerHeight-oH&&scrollBy(0,sH)}placeAt(e){let{phase:t,from:n}=this.drag,r=this.phases,i=r.find(t=>t.getBoundingClientRect().bottom>=e)??r.at(-1);if(!i||i===t)return;let a=i.getBoundingClientRect(),o=e<a.top+Math.min(a.height,aH)/2?`before`:`after`,s=r.indexOf(i)+1,c=o===`before`?s>n?s-1:s:s>=n?s:s+1;if(c===n)return;let[l,u]=n<c?[n,c]:[c,n];if(!r.slice(l-1,u).some(e=>!PhaseDrag.isToDo(e)))return{to:c,target:i,side:o}}drop(){let{phase:e,place:t}=this.drag;this.end(),swallowClick(),t&&(PhaseDrag.place(e,t.target,t.side),this.move(e.id,t.to))}end(){this.drag?.phase.removeAttribute(tH);for(let e of[this.host,...this.phases])e.removeAttribute(nH);for(let e of this.host.querySelectorAll(`[${rH}]`))e.removeAttribute(rH);this.drag=void 0}static place(e,t,n){n===`before`?t.before(e):t.after(e)}static isToDo(e){return(e.getAttribute(`status`)??`todo`)===`todo`}static phaseFrom(e,t){let n=e.composedPath(),r=n.find(e=>e.localName===eH&&e.parentElement===t);if(!r)return;let i=n.slice(0,n.indexOf(r)),a=i.some(e=>PhaseDrag.parts(e).includes(`title`)),o=i.some(e=>cH.has(e.localName)||PhaseDrag.parts(e).includes(`actions`)||e.localName===`button`&&!PhaseDrag.parts(e).includes(`toggle`));return a&&!o?r:void 0}static parts(e){return e.getAttribute?.(`part`)?.split(/\s+/)??[]}},eH=`epic-phase`,tH=`data-dragged`,nH=`data-dragging`,rH=`data-drop`,iH=6,aH=48,oH=48,sH=12,cH=new Set([`a`,`ui-button`,`ui-dropdown`,`epic-review`,`input`,`textarea`,`select`])})),uH,dH,fH,pH=__esmMin((()=>{Zn(),ex(),uH=class TestQueue{static openIds(e){return inTestOrder(Array.from(e.querySelectorAll(Vb)).filter(e=>Hb.test(e.id)&&(e.getAttribute(`status`)??`open`)===`open`).map(e=>({id:e.id,prepared:e.getAttribute(`prepared`),deferred:e.getAttribute(`deferred`)}))).map(e=>e.id)}static isPrepared(e){let t=TestQueue.openIds(e);return t.length>0&&t.every(t=>e.querySelector(`#${CSS.escape(t)}`)?.hasAttribute(dH))}static leftIds(e,t){return TestQueue.openIds(e).filter(e=>!t(e))}static nextId(e,t,n){let r=TestQueue.openIds(e),i=r.filter(e=>!t(e));if(!i.length)return r[0];let a=n?r.indexOf(n):-1;return i.find(e=>r.indexOf(e)>a)??i[0]}static isTyping(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return!!e&&(e.matches(fH)||e.isContentEditable)}},dH=`prepared`,fH=`textarea, input:not([type=button], [type=checkbox], [type=radio], [type=submit], [type=file])`})),mH,hH=__esmMin((()=>{mH=`@layer ui.components.epic-section.content{:host{--_epic-fold-band:var(--epic-band-section,transparent);--_epic-fold-gap:var(--epic-section-gap,28px);--_epic-run-radius:var(--epic-section-run-radius,8px)}:host(:state(offstage)){display:none}:host([kind=overview-part]){--_epic-fold-band:var(--epic-band-row,transparent);--_epic-fold-gap:14px;--_epic-fold-bleed:0px;--epic-inset:var(--epic-card-inset,16px)}:host([kind=overview-part]) ui-section:not(:state(stuck))::part(title){border-start-start-radius:var(--epic-part-top-radius,0px);border-start-end-radius:var(--epic-part-top-radius,0px)}:host([kind=overview-part]:not(:state(open))) ui-section:not(:state(stuck))::part(title){border-end-end-radius:var(--epic-part-bottom-radius,0px);border-end-start-radius:var(--epic-part-bottom-radius,0px)}:host([kind=overview-part]) ui-section{--ui-section-title-padding:8px var(--epic-inset,16px);--ui-section-content-padding:8px var(--epic-inset,16px) 0;--_epic-fold-line:calc(var(--ui-font-size,16px) * var(--ui-section-h3) * var(--ui-section-title-line-height))}:host([kind=overview-part]:state(open)) ui-section{--ui-section-content-padding:0}:host([kind=phases]) ui-section{--ui-section-content-padding:6px var(--epic-inset,16px) 0}:host([kind=log]) .body{flex-direction:column-reverse;font-size:14px;display:flex}:host([kind=log]) ::slotted(epic-commit){--epic-commits-display:block}:host([kind=log]) ::slotted(epic-event){display:none}:host([kind=log]) .body>[part~=note]{order:1}.number{color:var(--epic-muted,var(--ui-text-muted));font-variant-numeric:tabular-nums}.empty{color:var(--epic-muted,var(--ui-text-muted));margin:0 0 4px;font-size:15px;font-style:italic}ui-section::part(badge){order:1}ui-section::part(actions){order:2}ui-section::part(fold-icon){order:-1}@container epic-page (width<=480px){:host(:state(tools)) ui-section::part(title){flex-wrap:wrap;justify-content:flex-end;row-gap:2px}:host(:state(tools)) ui-section::part(badge),:host(:state(tools)) ui-section::part(actions){margin-inline-start:0}}.new-list{--_epic-act-ink:var(--ui-text-color,CanvasText);--_epic-act-green:var(--ui-green,#00853a);--_epic-act-person:var(--epic-voice-person-fill,color-mix(in oklab, var(--ui-violet,#6550ca) 5%, var(--ui-background,Canvas)));--_epic-act-person-ink:var(--epic-voice-person-text,var(--ui-violet-text,var(--ui-violet,#6550ca)));--_epic-act-focus:var(--ui-focus-color,Highlight)}.new-card ui-icon::part(icon){width:auto;margin:0}.new-list{flex-direction:column;gap:6px;margin:8px 0 2px;padding:0;list-style:none;display:flex}.new-card{background:var(--_epic-act-person);border-radius:8px;flex-wrap:wrap;align-items:center;gap:2px 8px;padding:4px 4px 4px 10px;font-size:15px;display:flex}.new-card[data-fill=dashed]{outline:1.5px dashed var(--_epic-act-green);outline-offset:-2px}.new-card[data-fill=outline]{box-shadow:inset 0 0 0 1.5px var(--_epic-act-green)}.new-card>ui-icon,.new-card>.what{color:var(--_epic-act-person-ink);flex:none}.new-card>.what{font-size:12px}.new-card>.title{overflow-wrap:anywhere;flex:10em;min-width:0;font-weight:600}.new-card>.tools{flex:none;margin-inline-start:auto;display:inline-flex}.new-card>.tools>button{width:24px;height:24px;color:var(--_epic-act-ink);cursor:pointer;background:0 0;border:0;border-radius:999px;place-items:center;padding:0;font-size:12px;display:inline-grid}.new-card>.tools>button:hover{background:color-mix(in oklab, var(--_epic-act-person-ink) 14%, transparent)}.new-card>.tools>button:focus-visible{outline:2px solid var(--_epic-act-focus);outline-offset:1px}.new-card>.note{white-space:pre-wrap;flex:1 0 100%;margin:0;line-height:1.4}.new-card>.about{color:var(--ui-link,LinkText);flex:none;font-size:12px}.start-testing[data-busy]::part(icon){animation:3.4s ease-in-out infinite epic-section-turn}@keyframes epic-section-turn{0%{rotate:y 0turn}70%{rotate:y 1turn}to{rotate:y 1turn}}@media (prefers-reduced-motion:reduce){.start-testing[data-busy]::part(icon){animation:none}}.next-epic{margin:8px 0 2px;font-size:14px}:host([data-dragging]){cursor:grabbing;-webkit-user-select:none;user-select:none}}`})),gH,_H=__esmMin((()=>{gH=`@layer ui.components.epic-section.page{epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item[data-epic-filtered]{display:none}epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered]):nth-child(1 of epic-item:not([hidden],[data-epic-filtered])),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]),epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open]+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+:is([hidden],[data-epic-filtered],:not(epic-item))+epic-item:not([hidden],[data-epic-filtered]){--epic-item-top-radius:var(--_epic-run-radius);border-top:none}epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered])[open],epic-section:is([kind=questions],[kind=judgements],[kind=todos],[kind=issues],[kind=tests])>epic-item:not([hidden],[data-epic-filtered]):nth-last-child(1 of epic-item:not([hidden],[data-epic-filtered])){--epic-item-bottom-radius:var(--_epic-run-radius)}epic-section[kind=phases]>epic-phase[data-epic-filtered]{display:none}epic-section[kind=phases]>epic-phase:not([hidden],[data-epic-filtered]):nth-child(1 of epic-phase:not([hidden],[data-epic-filtered])),epic-section[kind=phases]>epic-phase:not([hidden],[data-epic-filtered])[open]+epic-phase:not([hidden],[data-epic-filtered]){--epic-phase-top-radius:var(--_epic-run-radius)}epic-section[kind=phases]{&>[open]:nth-child(1 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(2 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(2 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(3 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(3 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(4 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(4 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(5 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(5 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(6 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(6 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(7 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(7 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(8 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(8 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(9 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(9 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(10 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(10 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(11 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(11 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(12 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(12 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(13 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(13 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(14 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(14 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(15 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(15 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(16 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(16 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(17 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(17 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(18 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(18 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(19 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(19 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(20 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(20 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(21 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(21 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(22 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(22 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(23 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(23 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(24 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(24 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(25 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(25 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(26 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(26 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(27 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(27 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(28 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(28 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(29 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(29 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(30 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(30 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(31 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(31 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(32 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(32 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(33 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(33 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(34 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(34 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(35 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(35 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(36 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(36 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(37 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(37 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(38 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(38 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(39 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(39 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(40 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(40 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(41 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(41 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(42 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(42 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(43 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(43 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(44 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(44 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(45 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(45 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(46 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(46 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(47 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(47 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(48 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(48 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(49 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(49 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(50 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(50 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(51 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(51 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(52 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(52 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(53 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(53 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(54 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(54 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(55 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(55 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(56 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(56 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(57 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(57 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(58 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(58 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(59 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(59 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(60 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(60 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(61 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(61 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(62 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(62 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(63 of epic-phase:not([hidden],[data-epic-filtered])),&>[open]:nth-child(63 of epic-phase:not([hidden],[data-epic-filtered]))~:nth-child(64 of epic-phase:not([hidden],[data-epic-filtered])){--epic-phase-top-radius:var(--_epic-run-radius)}}epic-section[kind=phases]>epic-phase:not([hidden],[data-epic-filtered])[open],epic-section[kind=phases]>epic-phase:not([hidden],[data-epic-filtered]):nth-last-child(1 of epic-phase:not([hidden],[data-epic-filtered])){--epic-phase-bottom-radius:var(--_epic-run-radius);border-bottom:none}epic-overview>epic-section[kind=overview-part]:not([hidden]):nth-child(1 of epic-section[kind=overview-part]:not([hidden])),epic-overview>epic-section[kind=overview-part]:not([hidden])[open]+epic-section[kind=overview-part]:not([hidden]),epic-overview>epic-section[kind=overview-part]:not([hidden])[open]+:is([hidden],:not(epic-section[kind=overview-part]))+epic-section[kind=overview-part]:not([hidden]),epic-overview>epic-section[kind=overview-part]:not([hidden])[open]+:is([hidden],:not(epic-section[kind=overview-part]))+:is([hidden],:not(epic-section[kind=overview-part]))+epic-section[kind=overview-part]:not([hidden]){--epic-part-top-radius:var(--_epic-run-radius,8px)}epic-overview>epic-section[kind=overview-part]:not([hidden])[open],epic-overview>epic-section[kind=overview-part]:not([hidden]):nth-last-child(1 of epic-section[kind=overview-part]:not([hidden])){--epic-part-bottom-radius:var(--_epic-run-radius,8px);border-bottom:none}:is(epic-overview,epic-section:not([kind=overview-part])):not([hidden],[open]):has(+epic-section:not([kind=overview-part],[hidden])){--epic-section-bottom-radius:0px}:is(epic-overview,epic-section:not([kind=overview-part])):not([hidden],[open])+epic-section:not([kind=overview-part],[hidden]){--epic-section-top-radius:0px}}`})),vH,yH,bH,xH,SH,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,Q,cU,lU,uU,DOMEpicSectionElement,$,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU=__esmMin((()=>{g(),Ee(),ef(),Zn(),Uu(),tN(),qE(),Iu(),FT(),QV(),TF(),lH(),YI(),zE(),qp(),pH(),ex(),kF(),hH(),_H(),dA(),P(),vH=(0,e.template)(`<p>`),yH=(0,e.template)(`<slot>`),bH=(0,e.template)(`<span class=number>`),xH=(0,e.template)(`<button type=button><ui-icon name="comment dots">`,1),SH=(0,e.template)(`<ui-button color=blue size=mini>`,1),CH=(0,e.template)(`<a>`),wH=(0,e.template)(`<span><epic-state-filter>`,1),TH=(0,e.template)(`<epic-hidden-note>`,1),EH=(0,e.template)(`<epic-review shows=buttons buttons=away>`,1),DH=(0,e.template)(`<epic-review buttons=part>`,1),OH=(0,e.template)(`<epic-new-item>`,1),kH=(0,e.template)(`<ul>`),AH=(0,e.template)(`<li><ui-icon></ui-icon><span class=what></span><span class=title></span><span class=tools><button type=button><ui-icon name=pen></ui-icon></button><button type=button><ui-icon name="trash can"></ui-icon></button></span><!><!>`,1),jH=(0,e.template)(`<p class=note>`),MH=(0,e.template)(`<a class=about>`),DOMEpicSectionElement=class extends gF{static{__name(this,`DOMEpicSectionElement`)}get stateFilter(){return this.section?.stateFilter()}get markedCount(){let e=this.section;if(!e)return 0;let t=e.kind===`phases`?e.stateCounts().get(`progress`)??0:0;return e.marked().size+t}get chipCounts(){return[...this.section?.stateCounts()??[]].map(([e,t])=>`${e}:${t}`).join(` `)}showStates(e){this.section?.showStates(e)}showLinked(e){return this.section?.showLinked(e)??!1}get section(){return this.component}},$=class _EpicSection extends (sU=vF,oU=[t.E.proto],aU=[t.E.protoMerged],iU=[t.E.state],rU=[t.E.state],nU=[t.E.watches({childList:!0,subtree:!0,attributeFilter:zb})],tU=[t.E.cssState(`offstage`)],eU=[t.E.untracked],$H=[t.E.cssState(`tools`)],QH=[t.E.whileConnected],ZH=[t.E.whileConnected],XH=[t.E.whileConnected],YH=[t.E.onChange(`badgeCount`)],JH=[t.E.onChange(`filteredItems`)],qH=[t.E.state],KH=[t.E.untracked],GH=[t.E.untracked],WH=[t.E.onChange(`isPreparing`)],UH=[t.E.onChange(`canStartTesting`)],HH=[t.E.onChange(`isAllAnswered`)],VH=[t.E.untracked],BH=[t.E.onChange(`isReady`)],zH=[t.E.untracked],RH=[t.E.untracked],LH=[t.E.on(NT,{target:`renderRoot`})],IH=[t.E.untracked],FH=[t.E.on(PT,{target:`renderRoot`})],PH=[t.E.untracked],NH=[t.E.untracked],sU){constructor(){super(...arguments),__runInitializers(Q,5,this),__privateAdd(this,cU,__runInitializers(Q,8,this,_EpicSection.savedFilters()[this.domElement.id])),__runInitializers(Q,11,this),__publicField(this,`reviewState`,new Hu(()=>this.kind===`overview-part`||this.kind===`tests`?this.id:void 0)),__publicField(this,`newItem`),__privateAdd(this,lU,__runInitializers(Q,12,this)),__runInitializers(Q,15,this),__publicField(this,`look`,(0,n.createMemo)(()=>{let e=this.kind;return e&&e in Tb?Tb[e]:void 0})),__publicField(this,`glyph`,new t.E.IconGlyph({owner:this,name:__name(()=>this.look()?.icon,`name`)})),__publicField(this,`number`,(0,n.createMemo)(()=>(this.layout,this.isConnected?this.place(this.kind):``))),__publicField(this,`empty`,(0,n.createMemo)(()=>this.holdsItems()&&!this.slots.hasContent(``)&&!this.source)),__publicField(this,`count`,(0,n.createMemo)(()=>this.countOf(this.counted))),__publicField(this,`itemStates`,(0,n.createMemo)(()=>this.kind===`phases`?this.counted.filter(e=>e.localName===`epic-phase`).map(e=>({item:e,state:this.phaseStateOf(e)})):this.holdsItems()?this.counted.filter(e=>e.localName===`epic-item`).map(e=>({item:e,state:this.drawnStateOf(e)})):[])),__publicField(this,`marked`,(0,n.createMemo)(()=>{let e=this.itemStates().filter(e=>e.item.id&&this.isWithClaude(e));return e.length?new Set(e.map(e=>e.item)):pU})),__publicField(this,`unmarked`,(0,n.createMemo)(()=>this.itemStates().filter(e=>!this.marked().has(e.item)))),__publicField(this,`present`,(0,n.createMemo)(()=>{let e=new Set(this.unmarked().map(e=>e.state));return this.marked().size&&e.add(Gp),(this.kind===`phases`?Wb:Ub).filter(t=>e.has(t.state))})),__publicField(this,`stateCounts`,(0,n.createMemo)(()=>{let e=new Map;for(let{state:t}of this.unmarked())e.set(t,(e.get(t)??0)+1);return e})),__publicField(this,`showing`,(0,n.createMemo)(()=>{let e=this.present().map(e=>e.state);return new Set(this.chosen?this.chosen.filter(t=>e.includes(t)):e)})),__publicField(this,`hidden`,(0,n.createMemo)(()=>{let e=this.linkedHere,t=this.marked();return this.itemStates().filter(n=>Up.hides(t.has(n.item)?`progress`:n.state,this.showing())&&!(e&&n.item.contains(e)))})),__publicField(this,`announced`),__publicField(this,`testing`,(0,n.createMemo)(()=>{if(this.kind!==`tests`||e.isServer)return;let t=this.count()?.open;if(!t)return;let n=this.reviewState.running();return{open:t,left:uH.leftIds(this.domElement,this.reviewState.isMarked).length,prepared:uH.isPrepared(this.domElement),preparing:!!n,queued:!!n?.queued}})),__publicField(this,`pressedStart`,!1),__publicField(this,`runsAll`,!e.isServer&&_EpicSection.testQuery()===`all`),__privateAdd(this,uU,__runInitializers(Q,16,this)),__runInitializers(Q,19,this),__publicField(this,`hasOpenedAway`,!1)}get counted(){return this.slots.filledSlots,!this.counts()||e.isServer?fU:Array.from(this.domElement.querySelectorAll(Rb))}get staysFolded(){return Eb.includes(this.kind??``)}get filteredItems(){return this.hidden().map(e=>e.item)}get isOffStage(){return this.layout,this.isConnected&&Vd.hides(this.domElement)&&!this.linkedHere}get linkedHere(){let e=this.pageLinked?.get()??null;return e&&this.domElement.contains(e)?e:null}showLinked(e){let t=this.pageLinked;if(!t)return!1;let n=!!e.closest(`[data-epic-filtered]`)||Vd.hides(e);return t.set(e),n}get hasTools(){return this.kind===`phases`||this.hasFilter()}followReviews(){return this.kind===`overview-part`||this.kind===`phases`||this.kind===`away`||this.holdsItems()?this.reviewState.connect():void 0}dragPhases(){if(this.kind!==`phases`||e.isServer)return;let t=__name(()=>this.reviewState.client,`client`);return $V.wire(this.domElement,{enabled:__name(()=>this.reviewState.reviewing(),`enabled`),move:__name((e,n)=>void t()?.move(e,n),`move`),pending:__name(()=>t()?.pendingMoves??[],`pending`),subscribe:__name(e=>t()?.subscribe(e)??(()=>void 0),`subscribe`)})}registerRunSheet(){e.isServer||t.UI.load().then(e=>{e.styles.has(mU)||e.styles.register(mU,gH,{page:!0})}).catch(e=>console.error(e))}get badgeCount(){let e=this.count();return e?`${e.attention} ${e.replied??0} ${e.running??0}`:``}announceCount(t){let n=this.announced;this.announced=t,!(e.isServer||n===void 0||n===t)&&this.domElement.dispatchEvent(new CustomEvent(Xb,{bubbles:!0,composed:!0}))}onFiltered(t){if(!e.isServer&&t.length){for(let e of t)e.setAttribute(hU,``);return()=>{for(let e of t)e.removeAttribute(hU)}}}render(){let t=this.look(),r=this.kind;return this.renderFold({title:__name(()=>this.heading(),`title`),icon:t?()=>this.glyph.svg:void 0,tools:r===`phases`?()=>{let t=this;return[(0,e.memo)(()=>t.filter()),(0,e.memo)(()=>t.renderStageButton(`phases`,t.reviewState.reviewing)),(0,e.memo)(()=>t.gear())]}:r===`overview-part`?()=>this.reviewButtons():r===`away`?()=>this.doneReading():this.holdsItems()?()=>{let t=this;return[(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!(r===`tests`&&t.reviewState.reviewing()))()?t.testing():r===`tests`&&t.reviewState.reviewing()},children:e=>t.testButton(e)}),(0,e.memo)(()=>t.filter()),(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.reviewState.reviewing())()?t.newKind():t.reviewState.reviewing()},children:e=>t.newButton(e())})]}:void 0,before:r===`overview-part`?()=>this.saidNote():void 0,after:__name(()=>{let t=this;return[(0,e.createComponent)(n.Show,{get when(){return t.empty()},get children(){var n=vH();return(0,e.insert)(n,()=>t.translationForKey(`noneYet`)),(0,e.effect)(()=>({e:(0,e.readShallow)(Pb),t:t.partForName(`empty`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),(0,e.createComponent)(n.Show,{get when(){return t.hidden().length},get children(){return t.hiddenNote()}}),(0,e.createComponent)(n.Show,{when:r===`overview-part`,get children(){var n=yH();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.slotForName(Ou),t=>{(0,e.setAttribute)(n,`name`,t)}),n}}),(0,e.createComponent)(n.Show,{get when(){return r===`overview-part`&&t.reviewState.reviewing()},get children(){return t.reviewControl(`note`,`note-box`)}}),(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.reviewState.reviewing())()?t.newKind():t.reviewState.reviewing()},children:e=>t.newItems(e())}),(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!(r===`tests`&&t.runsAll&&t.reviewState.reviewing()))()?t.testing()?.left===0:r===`tests`&&t.runsAll&&t.reviewState.reviewing()},get children(){return t.nextEpicLine()}})]},`after`)})}contentsEntry(){let e=this.domElement.getAttribute(`kind`)??``,t=this.domElement.isConnected?this.place(e):``;if(e===`away`){let e=Number(this.domElement.getAttribute(`waiting`))||0;return{label:_EpicSection.titleText(this.domElement),icon:xU,count:{open:1,total:1,attention:Math.max(e,1)}}}if(e===`overview-part`||!(e in Tb))return{label:`${t} ${_EpicSection.titleText(this.domElement)}`.trim()};let n=Tb[e],r=e===`phases`||Ab.includes(e)?Array.from(this.domElement.querySelectorAll(Rb)):[];return{label:`${t}. ${this.translationForKey(n.title)}`,icon:n.icon,count:this.countOf(r)}}heading(){let t=this.look();if(t)return`${this.number()}. ${this.translationForKey(t.title)}`;let r=this;return[(0,e.createComponent)(n.Show,{get when(){return r.number()},get children(){return[(()=>{var t=bH();return(0,e.insert)(t,()=>r.number()),t})(),` `]}}),(()=>{var t=yH();return t._$owner=(0,e.getOwner)(),(0,e.insert)(t,()=>r.title),(0,e.effect)(()=>r.slotForName(`title`),n=>{(0,e.setAttribute)(t,`name`,n)}),t})()]}newButton(t){let n=__name(()=>this.translationForKey(`addNew`,{kind:this.translationForKey(GM[t].label)}),`words`),r=this;var i=xH(),a=i.firstChild;return i._$$click=e=>{e.stopPropagation(),r.openNewForm()},a._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)($b),t:r.partForName(`new-button`),a:n(),o:n()}),({e:t,t:n,a:r,o:a},o)=>{(0,e.className)(i,t,o?.e),n!==o?.t&&(0,e.setAttribute)(i,`part`,n),r!==o?.a&&(0,e.setAttribute)(i,`aria-label`,r),a!==o?.o&&(0,e.setAttribute)(i,`title`,a)}),i}get isPreparing(){return!!this.testing()?.preparing}testButton(t){let n=__name(()=>{let e=t();return e.preparing?this.translationForKey(`preparingTests`):e.prepared?this.translationForKey(e.left?`focusTests`:`focusAllTests`,{count:e.left||e.open}):this.translationForKey(`startTesting`,{count:e.open})},`words`),r=__name(()=>{let e=t();return e.preparing?e.queued?this.translationForKey(`waitingTip`,{why:this.reviewState.waitingWhy()}):this.translationForKey(`preparingTip`):this.translationForKey(e.prepared?`focusTestsTip`:`startTestingTip`)},`tip`),i=this;var a=SH();return a._$$click=e=>{e.stopPropagation(),i.startTesting()},a._$owner=(0,e.getOwner)(),(0,e.insert)(a,n),(0,e.effect)(()=>({e:(0,e.readShallow)(gU),t:i.partForName(`start-testing`),a:t().prepared&&!t().preparing?void 0:`basic`,o:t().preparing?`circle notch`:t().prepared?`bullseye`:`flask`,i:t().preparing?``:void 0,n:r()}),({e:t,t:n,a:r,o:i,i:o,n:s},c)=>{(0,e.className)(a,t,c?.e),n!==c?.t&&(0,e.setAttribute)(a,`part`,n),r!==c?.a&&(0,e.setAttribute)(a,`appearance`,r),i!==c?.o&&(0,e.setAttribute)(a,`icon`,i),o!==c?.i&&(0,e.setAttribute)(a,`data-busy`,o),s!==c?.n&&(0,e.setAttribute)(a,`title`,s)}),a}startTesting(){let e=this.reviewState.client,t=this.testing();if(e&&t){if(t.preparing){this.pressedStart=!1,e.cancel(this.id??``);return}if(t.prepared)return this.openNext();this.pressedStart=!0,e.prepareTests()}}openNext(){let e=uH.nextId(this.domElement,this.reviewState.isMarked);if(!e)return;let t={tab:`tests`,item:e};this.domElement.dispatchEvent(new CustomEvent(WE,{detail:t,bubbles:!0,composed:!0}))}onPrepared(t){if(!(t||!this.pressedStart||e.isServer)&&(this.pressedStart=!1,uH.openIds(this.domElement).length)){if(uH.isTyping())return this.reviewState.client?.notify(this.translationForKey(`testsReady`));this.openNext()}}get canStartTesting(){return this.reviewState.reviewing()&&!!this.testing()}pressFromAddress(t){if(!t||e.isServer||this.kind!==`tests`||!new URLSearchParams(location.search).has(`test`))return;let n=new URL(location.href);n.searchParams.delete(Bb),this.runsAll&&n.searchParams.set(`all`,`1`),history.replaceState(history.state,``,n.href),this.startTesting()}get isAllAnswered(){return this.runsAll&&this.testing()?.left===0}findNextEpic(e){let t=this.reviewState.client;if(!e||!t||this.nextEpic!==void 0)return;let n=location.pathname;t.openTests().then(e=>{this.nextEpic=e.find(e=>!n.endsWith(e.page.replace(/^\//,``)))??null})}nextEpicLine(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.nextEpic!==void 0},get children(){var r=vH();return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.nextEpic},get fallback(){return t.translationForKey(`noEpicLeft`)},children:n=>(()=>{var r=CH(),i=(0,e.getOwner)();return(0,e.insert)(r,()=>t.translationForKey(`nextEpic`,{epic:n().epic,count:n().open})),(0,e.effect)(()=>`${n().page}?${Bb}=1&all=1`,t=>{(0,e.setAttribute)(r,`href`,t),(0,e.claimElement)(r,i)}),r})()})),(0,e.effect)(()=>({e:(0,e.readShallow)(_U),t:t.partForName(`next-epic`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}})}static testQuery(){let e=new URLSearchParams(location.search),t=e.get(Bb);return e.has(`all`)||t===`all`?`all`:t===null?void 0:`1`}openNewForm(){this.reveal().then(()=>t.E.afterSolidUpdate(()=>{let e=this.newItem;e&&(e.editing=void 0,this.editingNew=void 0,e.open=!0,t.E.beforeNextPaint(()=>e.scrollIntoView({block:`nearest`})))}))}filter(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.hasFilter()},get children(){var n=wH(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(Zb),t:t.partForName(`filter`),a:[...t.stateCounts()].map(([e,t])=>`${e}:${t}`).join(` `),o:t.chosen?[...t.showing()].join(` `):void 0,i:t.marked().size||void 0,n:t.kind===`phases`?``:void 0}),({e:t,t:i,a,o,i:s,n:c},l)=>{(0,e.className)(n,t,l?.e),i!==l?.t&&(0,e.setAttribute)(n,`part`,i),a!==l?.a&&(0,e.setAttribute)(r,`counts`,a),o!==l?.o&&(0,e.setAttribute)(r,`shown`,o),s!==l?.i&&(0,e.setAttribute)(r,`marked`,s),c!==l?.n&&(0,e.setAttribute)(r,`phases`,c)}),n}})}hiddenNote(){let t=this;var n=TH();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:t.partForName(`hidden-note`),t:t.hidden().length}),({e:t,t:r},i)=>{t!==i?.e&&(0,e.setAttribute)(n,`part`,t),r!==i?.t&&(0,e.setAttribute)(n,`count`,r)}),n}gear(){return this.renderGear({title:__name(()=>this.translationForKey(`gearTip`),`title`),entries:__name(()=>jb.map(e=>({value:e.field,text:this.translationForKey(e.every),isOn:!!JI.everyPhase()[e.field]})),`entries`),pick:__name(e=>this.flip(e),`pick`)})}foldStyle(){if(this.kind!==`phases`)return;let e=JI.everyPhase(),t={};for(let n of jb)e[n.field]&&(t[n.property]=`block`);return t}doneReading(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.reviewState.reviewing()},get children(){var n=EH();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:t.id,t:t.partForName(`review-buttons`)}),({e:t,t:r},i)=>{t!==i?.e&&(0,e.setAttribute)(n,`of`,t),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}})}onAwayReady(e){e&&this.kind===`away`&&!this.hasOpenedAway&&(this.hasOpenedAway=!0,t.E.afterSolidUpdate(()=>void this.expand()))}reviewButtons(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.reviewState.reviewing()},get children(){return t.reviewControl(`buttons`,`review-buttons`)}})}saidNote(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.reviewState.reviewing())()?t.reviewState.noted()||t.reviewState.takenNote():t.reviewState.reviewing()},get children(){return t.reviewControl(`said`,`said`)}})}reviewControl(t,n){let r=this;var i=DH();return(0,e.setAttribute)(i,`shows`,t),i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:r.id,t:r.partForName(n)}),({e:t,t:n},r)=>{t!==r?.e&&(0,e.setAttribute)(i,`of`,t),n!==r?.t&&(0,e.setAttribute)(i,`part`,n)}),i}newItems(t){let n=this;return[(0,e.memo)(()=>n.newItemList(t)),(()=>{var r=OH();return(0,e.setAttribute)(r,`adds`,t),(0,e.setAttribute)(r,`on-epic-new-closed`,()=>n.editingNew=void 0),(0,e.ref)(()=>e=>n.newItem=e,r),r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>n.partForName(`new-item`),t=>{(0,e.setAttribute)(r,`part`,t)}),r})()]}newItemList(t){let r=__name(()=>this.reviewState.newItems(t).filter(e=>e.id!==this.editingNew),`items`),i=this;return(0,e.createComponent)(n.Show,{get when(){return r().length},get children(){var t=kH();return(0,e.insert)(t,(0,e.createComponent)(n.For,{get each(){return r()},keyed:e=>e.id,children:t=>(()=>{var r=AH(),a=r.firstChild,o=a.nextSibling,s=o.nextSibling,c=s.nextSibling,l=c.firstChild,u=l.firstChild,d=l.nextSibling,f=d.firstChild,p=c.nextSibling,m=p.nextSibling;return a._$owner=(0,e.getOwner)(),(0,e.insert)(o,()=>i.translationForKey(GM[t().kind].label)),(0,e.insert)(s,()=>t().title),l._$$click=()=>i.editNew(t()),u._$owner=(0,e.getOwner)(),d._$$click=()=>void i.reviewState.client?.removeNew(t().id),f._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t().note},children:t=>(()=>{var n=jH();return(0,e.insert)(n,t),n})()}),p),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t().near},children:t=>(()=>{var n=MH(),r=(0,e.getOwner)();return(0,e.insert)(n,()=>i.translationForKey(`newAbout`,{id:t()===`summary`?t():t().toUpperCase()})),(0,e.effect)(()=>`#${t()===`summary`?bU:t()}`,t=>{(0,e.setAttribute)(n,`href`,t),(0,e.claimElement)(n,r)}),n})()}),m),(0,e.effect)(()=>({e:(0,e.readShallow)(yU),t:i.isSent(t())?`outline`:`dashed`,a:i.cardTip(t()),o:GM[t().kind].icon,i:i.translationForKey(`newEdit`),n:`${i.translationForKey(`newEdit`)}: ${t().title}`,s:i.translationForKey(`newRemove`),h:`${i.translationForKey(`newRemove`)}: ${t().title}`}),({e:t,t:n,a:i,o,i:s,n:c,s:u,h:f},p)=>{(0,e.className)(r,t,p?.e),n!==p?.t&&(0,e.setAttribute)(r,`data-fill`,n),i!==p?.a&&(0,e.setAttribute)(r,`title`,i),o!==p?.o&&(0,e.setAttribute)(a,`name`,o),s!==p?.i&&(0,e.setAttribute)(l,`title`,s),c!==p?.n&&(0,e.setAttribute)(l,`aria-label`,c),u!==p?.s&&(0,e.setAttribute)(d,`title`,u),f!==p?.h&&(0,e.setAttribute)(d,`aria-label`,f)}),r})()})),(0,e.effect)(()=>({e:(0,e.readShallow)(vU),t:i.partForName(`new-list`)}),({e:n,t:r},i)=>{(0,e.className)(t,n,i?.e),r!==i?.t&&(0,e.setAttribute)(t,`part`,r)}),t}})}isSent(e){return this.reviewState.client?.isSent(e)??!1}cardTip(e){let t=this.translationForKey(this.isSent(e)?`newSent`:`newUnsent`);return this.reviewState.listening()?t:`${t}. ${Ge}`}editNew(e){let t=this.newItem;t&&(t.editing=e.id,this.editingNew=e.id,t.open=!0)}newKind(){let e=this.kind;return Object.keys(GM).find(t=>GM[t].section===e)}flip(e){JI.setEveryPhase(e,!JI.everyPhase()[e])}onStatePick(e){e.stopPropagation(),this.pickState(e.detail.state,e.detail.how)}pickState(e,t=`click`){let n=this.present().map(e=>e.state),r=Up.nextShown(n,[...this.showing()],e,t);this.showStates(r.length===n.length?void 0:r)}onShowAll(e){e.stopPropagation(),this.showStates(void 0)}showStates(e){this.chosen=e?[...e]:void 0,this.linkedHere&&this.pageLinked?.set(null),this.send(`epic-filter-changed`,{states:e?[...e]:void 0});let t=this.id;if(!t)return;let n={..._EpicSection.savedFilters()};e?n[t]=[...e]:delete n[t],_EpicSection.save(Jb,n)}stateFilter(){if(!this.holdsItems())return;let e=this.present();if(!e.length)return;let t=this.stateCounts(),n=this.showing();return e.map(e=>({state:e.state,color:e.color,count:t.get(e.state)??0,on:n.has(e.state)}))}hasFilter(){return this.present().length>0||this.marked().size>0}isWithClaude(e){return e.item.localName===`epic-phase`?e.state!==`recent`&&e.state!==`old`&&this.reviewState.isMarked(e.item.id):this.reviewState.isMarked(e.item.id)}holdsItems(){return Ab.includes(this.kind??``)}place(e){let t=this.domElement.parentElement;if(!t||e===`report`||e===`away`)return``;if(e===`overview-part`){let e=_EpicSection.placeOf(this.domElement,`:scope > epic-section`);return`${_EpicSection.placeOf(t,kb)||1}.${e}`}return String(_EpicSection.placeOf(this.domElement,kb,{shown:!0}))}counts(){return this.kind===`phases`||this.holdsItems()}countOf(e){if(!e.length)return;let t=e.filter(e=>!Lb.includes(e.getAttribute(`status`)??``)).length,n=e.map(e=>e.localName===`epic-phase`?e.id&&!Qd.isFinished(e.getAttribute(`status`))&&this.reviewState.isMarked(e.id)?`marked`:this.phaseStateOf(e):e.localName===`epic-item`?e.id&&this.reviewState.isMarked(e.id)?`marked`:this.drawnStateOf(e):e.getAttribute(`state`)??``),r=n.filter(e=>tu.has(e)).length,i=n.filter(e=>Yb.has(e)).length,a=e.filter((e,t)=>e.localName===`epic-phase`&&n[t]===`progress`).length;return{open:t,total:e.length,attention:r,replied:i,running:a}}static placeOf(e,t,{shown:n=!1}={}){return Array.from(e.parentElement?.querySelectorAll(t)??[]).filter(e=>!n||!Vd.hides(e)).indexOf(e)+1}drawnStateOf(e){return su.of(su.fieldsOf(e),this.reviewState.liveOf(e.id))}phaseStateOf(e){return LE.of(LE.fieldsOf(e),{workedOn:!!e.id&&this.reviewState.liveOf(e.id).workedOn,isSeen:__name(e=>this.reviewState.markOf(e)?.action===`seen`,`isSeen`)})}static savedFilters(){let e=_EpicSection.saved(Jb),t={};for(let[n,r]of Object.entries(e))Array.isArray(r)&&(t[n]=r);return t}static saved(e){let t=A.getAt(e+location.pathname);return t&&typeof t==`object`?t:{}}static save(e,t){A.setAt(e+location.pathname,t)}},Q=__decoratorStart(sU),cU=new WeakMap,lU=new WeakMap,uU=new WeakMap,__decorateElement(Q,4,`chosen`,iU,$,cU),__decorateElement(Q,4,`editingNew`,rU,$,lU),__decorateElement(Q,2,`counted`,nU,$),__decorateElement(Q,2,`isOffStage`,tU,$),__decorateElement(Q,1,`showLinked`,eU,$),__decorateElement(Q,2,`hasTools`,$H,$),__decorateElement(Q,1,`followReviews`,QH,$),__decorateElement(Q,1,`dragPhases`,ZH,$),__decorateElement(Q,1,`registerRunSheet`,XH,$),__decorateElement(Q,1,`announceCount`,YH,$),__decorateElement(Q,1,`onFiltered`,JH,$),__decorateElement(Q,4,`nextEpic`,qH,$,uU),__decorateElement(Q,1,`startTesting`,KH,$),__decorateElement(Q,1,`openNext`,GH,$),__decorateElement(Q,1,`onPrepared`,WH,$),__decorateElement(Q,1,`pressFromAddress`,UH,$),__decorateElement(Q,1,`findNextEpic`,HH,$),__decorateElement(Q,1,`openNewForm`,VH,$),__decorateElement(Q,1,`onAwayReady`,BH,$),__decorateElement(Q,1,`editNew`,zH,$),__decorateElement(Q,1,`flip`,RH,$),__decorateElement(Q,1,`onStatePick`,LH,$),__decorateElement(Q,1,`pickState`,IH,$),__decorateElement(Q,1,`onShowAll`,FH,$),__decorateElement(Q,1,`showStates`,PH,$),__decorateElement(Q,1,`stateFilter`,NH,$),__decorateElement(Q,13,`vocabulary`,oU,$),__decorateElement(Q,13,`elementSetup`,aU,$),__decoratorMetadata(Q,$),__name($,`EpicSection`),__publicField($,`vocabulary`,__runInitializers(Q,20,$,ZV)),__runInitializers(Q,23,$),__publicField($,`elementSetup`,__runInitializers(Q,24,$,{DOMElement:DOMEpicSectionElement,styleSheets:{"epic-tooltip":N,"epic-fold":OF,"epic-state-chips":uA,"epic-section":mH}})),__runInitializers(Q,27,$),dU=$,fU=[],pU=new Set,mU=`epic-section-runs`,hU=`data-epic-filtered`,gU=`start-testing`,_U=`next-epic`,vU=`new-list`,yU=`new-card`,bU=`overview`,xU=`bed`,(0,e.delegateEvents)([`click`])})),CU=__exportAll({EpicSection:()=>dU}),wU=__esmMin((()=>{kf(),jN(),uE(),SU(),dU.define()})),TU,EU=__esmMin((()=>{TU={tag:`epic-send`,topics:[`forms`,`buttons`],aka:[`send`,`submit`,`send bar`,`answer`],skeleton:`inline 12 x 2`,noun:`send`,ui:!1,description:"A details page's Send, in its sticky header (epic `epic-workflow` P12): where the answer stands (`Not sent`, `Changes not sent`, `Sent 10/8/26 14:34 · 5 of 17 decided`), then Send and its countdown (`<epic-send-buttons>`, epic `epic-engine` P20). It sends the whole page, partial answers too, as often as you like: the page never locks; with countdown mode on, by itself 2 minutes after you stop. Beside them, the draft's save (P18): what's typed and not sent is kept in the browser at once and beside the page as you type, and comes back when it reloads; a save that fails says so in red under them, and tries again every 3s. After the button, who hears it (epic `epic-engine` r6): `repo-split is listening` while a session's `epic ask wait` waits for the answer, else `nobody is waiting yet`; Send works either way, and with nobody waiting says the answer is saved for Claude's next look. Once a page.",attributes:[],events:[],slots:[],parts:[{name:`base`,description:`Its box: the line, then an error when there is one.`},{name:`state`,description:`Where the answer stands, in its colour: grey, blue (not sent), green (sent).`},{name:`draft`,description:"The draft's save (P18), muted: `draft saved 14:04`, `draft from 14:04 put back`; when the page server can't take it, on its own line under the rest, red and bold (P15: the browser still keeps it, and it tries again every 3s)."},{name:`send`,description:"Send and its countdown (`<epic-send-buttons>`), grey with nothing to send, blue with changes not sent, a blue outline once sent; `data-fill` the form's (`rest`, `pending`, `sent`)."},{name:`who`,description:"Who hears a Send, muted, after the button (r6): `repo-split is listening` with a green dot (a session's `epic ask wait`), or `nobody is waiting yet`; the tooltip says more. None where the page can't ask (no page server)."},{name:`error`,description:`Why it couldn't send, under them.`},{name:`notice`,description:"Sent with nobody waiting, under them in orange: `Saved: nobody is waiting yet; Claude reads it when it next looks.` Gone once a session waits, or at the next send."}],states:[{name:`pending`,description:`Something on the page isn't sent yet.`},{name:`sent`,description:`The page as sent.`}],texts:[{key:`sendTip`,text:`Send what's on the page: a partial answer is fine, send again any time`,description:"The plane's tooltip and name (`<epic-send-buttons send-tip>`)."}],children:[]}})),DU,OU=__esmMin((()=>{DU=`@layer ui.components.epic-send.types{:host{flex:0 auto;min-width:0;margin-inline-start:auto;display:block}:host([hidden]){display:none}.row{justify-content:flex-end;align-items:center;gap:8px;display:flex}.state{color:var(--ui-text-muted,GrayText);font:600 .8rem var(--ui-font-family,inherit);text-overflow:ellipsis;white-space:nowrap;flex:none;overflow:hidden}.state[data-color=green]{color:var(--ui-green-text,#1a7f37)}.state[data-color=blue]{color:var(--ui-blue-text,#1a69a4)}.draft{min-width:0;color:var(--ui-text-muted,GrayText);font:.75rem var(--ui-font-family,inherit);text-overflow:ellipsis;white-space:nowrap;flex:0 3 auto;overflow:hidden}.send{flex:none}.who{min-width:0;color:var(--ui-text-muted,GrayText);font:.75rem var(--ui-font-family,inherit);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;overflow:hidden}.who[data-listening]:before{content:"";background:var(--ui-green,#21ba45);vertical-align:1px;border-radius:50%;width:7px;height:7px;margin-inline-end:5px;display:inline-block}.notice{max-width:32em;color:var(--ui-orange-text,var(--ui-orange,#f2711c));text-align:end;margin:4px 0 0;font-size:.8rem;line-height:1.35}.error{max-width:32em;color:var(--ui-error-text,var(--ui-red,#db2828));text-align:end;margin:4px 0 0;font-size:.8rem;line-height:1.35}.draft-failed{font-weight:600}}`})),kU,AU,jU,MU,NU,PU,FU,IU,LU,RU,zU,BU,VU,HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW=__esmMin((()=>{g(),gr(),Ek(),EU(),OU(),P(),kU=(0,e.template)(`<span>`),AU=(0,e.template)(`<p role=alert>`),jU=(0,e.template)(`<p role=status>`),MU=(0,e.template)(`<div><div><span></span><epic-send-buttons></epic-send-buttons><!></div><!><!><!>`,1),UU=class _EpicSend extends (BU=t.E.UIComponent,zU=[t.E.proto],RU=[t.E.protoMerged],LU=[t.E.state],IU=[t.E.cssState(`pending`)],FU=[t.E.cssState(`sent`)],PU=[t.E.whileConnected],NU=[t.E.on(Ck,{target:`renderRoot`})],BU){constructor(){super(...arguments),__runInitializers(VU,5,this),__publicField(this,`form`,e.isServer?void 0:cr.forPage()),__privateAdd(this,HU,__runInitializers(VU,8,this,0)),__runInitializers(VU,11,this)}get fill(){return this.version,this.form?.fill??`rest`}get isPending(){return this.fill===`pending`}get isSent(){return this.fill===`sent`}get stateLine(){return this.version,this.form?.stateLine??{text:``,color:`grey`}}get error(){return this.version,this.form?.error??``}get draftLine(){return this.version,{text:this.form?.draftText??``,isError:!!this.form?.isDraftError}}get listenLine(){return this.version,this.form?.listenLine??{text:``,title:``,isListening:!1}}get notice(){return this.version,this.form?.notice??``}get isSending(){return this.version,!!this.form?.isSending}followForm(){let e=this.form;if(!e)return;this.version=e.version,e.load();let t=e.watch(window),n=e.subscribe(()=>this.version=e.version);return()=>{n(),t()}}render(){let t=this;var r=MU(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling,c=i.nextSibling,l=c.nextSibling,u=l.nextSibling;return(0,e.insert)(a,()=>t.stateLine.text),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!!t.draftLine.text)()?!t.draftLine.isError:t.draftLine.text},get children(){var n=kU();return(0,e.insert)(n,()=>t.draftLine.text),(0,e.effect)(()=>({e:(0,e.readShallow)(qU),t:t.partForName(`draft`),a:t.draftLine.text}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`title`,i)}),n}}),o),o._$owner=(0,e.getOwner)(),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.listenLine.text},get children(){var n=kU();return(0,e.insert)(n,()=>t.listenLine.text),(0,e.effect)(()=>({e:(0,e.readShallow)(ZU),t:t.partForName(`who`),a:t.listenLine.isListening?``:void 0,o:t.listenLine.title}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`data-listening`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n}}),s),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.draftLine.isError},get children(){var n=AU();return(0,e.insert)(n,()=>t.draftLine.text),(0,e.effect)(()=>({e:(0,e.readShallow)([XU,JU]),t:t.partForName(`draft`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),c),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.error},get children(){var n=AU();return(0,e.insert)(n,()=>t.error),(0,e.effect)(()=>({e:(0,e.readShallow)(XU),t:t.partForName(`error`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),l),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return(0,e.memo)(()=>!t.error)()&&t.notice},get children(){var n=jU();return(0,e.insert)(n,()=>t.notice),(0,e.effect)(()=>({e:(0,e.readShallow)(QU),t:t.partForName(`notice`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}}),u),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(GU),o:(0,e.readShallow)(KU),i:t.partForName(`state`),n:t.stateLine.color,s:(0,e.readShallow)(YU),h:t.partForName(`send`),r:$U[t.fill],d:t.fill,l:t.isSending?``:void 0,u:t.translationForKey(`sendTip`)}),({e:t,t:n,a:s,o:c,i:l,n:u,s:d,h:f,r:p,d:m,l:h,u:g},_)=>{(0,e.className)(r,t,_?.e),n!==_?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,s,_?.a),(0,e.className)(a,c,_?.o),l!==_?.i&&(0,e.setAttribute)(a,`part`,l),u!==_?.n&&(0,e.setAttribute)(a,`data-color`,u),(0,e.className)(o,d,_?.s),f!==_?.h&&(0,e.setAttribute)(o,`part`,f),p!==_?.r&&(0,e.setAttribute)(o,`state`,p),m!==_?.d&&(0,e.setAttribute)(o,`data-fill`,m),h!==_?.l&&(0,e.setAttribute)(o,`busy`,h),g!==_?.u&&(0,e.setAttribute)(o,`send-tip`,g)}),r}onSendAsked(e){e.stopPropagation(),this.form?.send()}},VU=__decoratorStart(BU),HU=new WeakMap,__decorateElement(VU,4,`version`,LU,UU,HU),__decorateElement(VU,2,`isPending`,IU,UU),__decorateElement(VU,2,`isSent`,FU,UU),__decorateElement(VU,1,`followForm`,PU,UU),__decorateElement(VU,1,`onSendAsked`,NU,UU),__decorateElement(VU,13,`vocabulary`,zU,UU),__decorateElement(VU,13,`elementSetup`,RU,UU),__decoratorMetadata(VU,UU),__name(UU,`EpicSend`),__publicField(UU,`vocabulary`,__runInitializers(VU,12,UU,TU)),__runInitializers(VU,15,UU),__publicField(UU,`elementSetup`,__runInitializers(VU,16,UU,{styleSheets:{"epic-tooltip":N,"epic-send":DU},delegatesFocus:!1})),__runInitializers(VU,19,UU),WU=UU,GU=`row`,KU=`state`,qU=`draft`,JU=`draft-failed`,YU=`send`,XU=`error`,ZU=`who`,QU=`notice`,$U={rest:`idle`,pending:`unsent`,sent:`sent`}})),tW=__exportAll({EpicSend:()=>WU}),nW=__esmMin((()=>{CI(),eW(),WU.define()})),rW,iW=__esmMin((()=>{rW={tag:`epic-status`,topics:[`documentation`,`cards`,`status`],aka:[`status`,`underway`,`done`,`noted`,`progress`,`task`,`work`],noun:`status`,ui:!1,description:"Claude's status card on an item or an Overview sub-section (P13): `Claude • Underway` (blue) with Claude's reading of the task, then the same card `Claude • Done` (green) when work was done, the reading kept, a summary added when there's something worth saying. `Claude • Noted` (a calm outline) when Claude only recorded what you chose (a pick, a todo made or queued): what was recorded and what happens next. The heading and the date at its right are drawn; the reading and the summary are its children. In an item, a LINE instead (epic `epic-engine` P27): a run of cards about one task is one line, `✓ Noted 10/24/26 15:21 → Done 15:25 · what Claude did`, last in the item's thread; a drive-by's (taken before your first reply) first in the item's details, above the Choices.",attributes:[{name:`state`,kind:`enum`,values:[`underway`,`done`,`noted`],description:"`underway` (blue: Claude is on it; absent too), `done` (green: work was done), `noted` (a calm outline: Claude recorded what you chose, nothing built yet; Owen, 2026-10-10)."},{name:`at`,kind:`string`,format:`time`,required:!0,description:"When Claude took the mark: `2026-10-08 14:34`, drawn `10/8/26 14:34` (`PlanDates`)."},{name:`done-at`,kind:`string`,format:`time`,description:"When it was done or noted (a card that was underway first); drawn in its place once there. A card born noted (a pick or a todo `inbox apply` recorded) has `at` alone."},{name:`from`,kind:`string`,description:"Whose session wrote it (epic `epic-friend` P2): the person's name, `Ana`, drawn `Claude (Ana)` to anyone but Ana, and plain `Claude` to her. None (a card written before): `Claude`."},{name:`agent`,kind:`string`,description:"Which agent wrote it (epic `epic-friend` P10): its id, `codex`, drawn by its name: `Codex (Ana)`, or `Codex` to Ana. None (a card written before): `Claude`."}],events:[],slots:[{name:``,description:`The reading: what Claude understood the task to be, in a sentence or two; a card born noted: what was recorded and what happens next, in one line.`},{name:`summary`,description:`Once done, and only when worth saying: what you should know about it.`}],parts:[{name:`base`,description:`The card: blue underway, green done, a calm outline noted.`},{name:`header`,description:"Its heading band, a flex row: the fold chevron, `who` left, `date` right; a click folds it."},{name:`toggle`,description:"The fold chevron, a `<button>`, first in the band: folds reading and summary."},{name:`who`,description:"The heading's left: `Claude • Underway` / `Claude • Done` / `Claude • Noted`; `Claude (Ana) • Done` for a card Ana's session wrote, to anyone but Ana (`from`); `Codex • Underway` for Codex's (`agent`)."},{name:`date`,description:"The heading's right: `done-at`, else `at`, as `10/8/26 14:34`; never wraps."},{name:`body`,description:`The reading.`},{name:`summary`,description:`The summary, under the reading; not drawn without one. A line's text.`},{name:`steps`,description:"A line's steps: `Noted 10/24/26 15:21 → Done 15:25`, each its state and when."},{name:`earlier`,description:"A drive-by's line: `your earlier comment`, after its steps."}],states:[{name:`underway`,description:"`state=underway`."},{name:`done`,description:"`state=done`."},{name:`noted`,description:"`state=noted`."},{name:`open`,description:`Unfolded: it starts so (page state, never written).`},{name:`line`,description:`In an item: drawn as a line, not a card.`},{name:`merged`,description:`A line's earlier card, drawn in by the run's last one: hidden.`},{name:`drive-by`,description:`Taken before your first reply on the item: its line above the Choices.`},{name:`in-thread`,description:`Its line in the item's thread, after the replies: inside the thread's one frame.`},{name:`thread-end`,description:`Last in the thread: the frame's bottom edge and corners.`},{name:`thread-hidden`,description:`The thread's head is folded: hidden with the rest of the thread.`}],texts:[{key:`foldTip`,text:`Close this status card`,description:`Tooltip of its fold button while open.`},{key:`unfoldTip`,text:`Open this status card`,description:`Tooltip of its fold button while folded.`},{key:`underway`,text:`{who} • Underway`,description:`The heading while Claude is on it.`},{key:`done`,text:`{who} • Done`,description:`The heading once work was done.`},{key:`noted`,text:`{who} • Noted`,description:`The heading once Claude recorded what you chose.`},{key:`agent`,text:`{agent}`,description:"Who wrote it, in its heading: the agent by its name (`Claude`, `Codex`): your own session's, or a card from before `from`."},{key:`agentOf`,text:`{agent} ({person})`,description:"Who wrote it, in its heading: another person's session's agent (`from`, `agent`): `Codex (Ana)`."},{key:`stepUnderway`,text:`Underway`,description:`A line's step while Claude is on it.`},{key:`stepDone`,text:`Done`,description:`A line's step once work was done.`},{key:`stepNoted`,text:`Noted`,description:`A line's step once Claude recorded what you chose.`},{key:`earlier`,text:`your earlier comment`,description:`After a drive-by's steps: it's about a comment you made before answering.`},{key:`started`,text:`taken {date}`,description:"The date's tooltip once done or noted: when Claude took the mark (`at`)."}],children:[{tag:`flow`,description:`The reading: one or two sentences, no file names.`},{tag:`flow`,slot:`summary`,description:'The summary, once done: `<p slot="summary">`, one or more.'}]}})),aW,oW=__esmMin((()=>{aW=`@layer ui.components.epic-status.variations{.status{--_epic-card-rule:color-mix(in oklab, var(--_epic-card-accent) 35%, transparent)}.status.underway{--_epic-card-accent:var(--ui-blue-text,var(--ui-blue,#1a67e0))}.status.done{--_epic-card-fill:color-mix(in oklab, var(--ui-green,#21ba45) 5%, light-dark(#fff,canvas));--_epic-card-accent:var(--ui-green-text,var(--ui-green,#00853a))}.status.noted{--_epic-card-fill:var(--ui-surface,Canvas);--_epic-card-accent:var(--ui-green-text,var(--ui-green,#00853a));--_epic-card-band:var(--_epic-card-fill)}.summary{border-top:1px solid var(--_epic-card-rule)}}@layer ui.components.epic-status.line{:host(:state(merged)){display:none}:host(:state(drive-by)){margin-top:0;margin-bottom:var(--epic-part-gap,8px);order:-1}:host(:state(in-thread)){--_epic-thread-rule:var(--epic-thread-rule,var(--epic-rule,var(--ui-border-color,light-dark(#e6e3ef,#34343b))));margin-top:0}:host(:state(thread-hidden)){display:none}:host(:state(in-thread)) .status.line{border:1px solid var(--_epic-thread-rule);box-shadow:none;border-block-end:none;border-radius:0}:host(:state(thread-end)) .status.line{border-block-end:1px solid var(--_epic-thread-rule);border-end-end-radius:10px;border-end-start-radius:10px}.status.line{--_epic-card-rule:color-mix(in oklab, var(--_epic-card-accent) 35%, transparent);background:light-dark(#fff,color-mix(in oklab, CanvasText 6%, Canvas));overflow-wrap:anywhere;border-radius:12px;padding:4px 10px;font-size:.9em;line-height:1.45}.status.line.noted{background:light-dark(#fff,color-mix(in oklab, CanvasText 6%, Canvas))}.mark,.steps,.earlier{color:color-mix(in oklab, var(--_epic-card-accent) 70%, var(--_epic-card-ink));font-weight:600}.mark{margin-inline-end:4px}.steps .date{font-variant-numeric:tabular-nums;font-weight:400}.earlier{font-style:italic;font-weight:400}.reading.empty{display:none}.text ::slotted(*){margin:0;display:inline}}`}));function stepDate(e,t){let n=M.read(e),r=t?M.read(t):void 0;return n?.hasTime&&r&&n.date.toDateString()===r.date.toDateString()?M.clock(n.date):M.format(e)}var sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW=__esmMin((()=>{g(),No(),sr(),qa(),Da(),Pa(),iW(),Ya(),Za(),oW(),P(),sW=(0,e.template)(`<span><!><!>`),cW=(0,e.template)(`<div><span aria-hidden=true></span><span></span><span><slot></slot><span><slot>`),lW=(0,e.template)(`<span><!> <time>`),uW=(0,e.template)(`<time>`),dW=(0,e.template)(`<div><div><span></span><!></div><div><div><slot></slot></div><div><slot>`),DW=class _EpicStatus extends (TW=r.E.UIComponent,wW=[r.E.proto],CW=[r.E.protoMerged],SW=[r.E.cssState(`open`)],xW=[r.E.whileConnected],bW=[r.E.cssState(`line`)],yW=[r.E.cssState(`merged`)],vW=[r.E.cssState(`drive-by`)],_W=[r.E.cssState(`in-thread`)],gW=[r.E.cssState(`thread-end`)],hW=[r.E.cssState(`thread-hidden`)],mW=[r.E.cssState(`done`)],pW=[r.E.cssState(`noted`)],fW=[r.E.cssState(`underway`)],TW){constructor(){super(...arguments),__runInitializers(EW,5,this),__publicField(this,`slots`,new r.E.SlotContent(this.domElement)),__publicField(this,`fold`,new F(()=>!0)),__publicField(this,`link`,new Ma(this.domElement))}get isOpen(){return this.fold.isOpen()}followItem(){return this.link.connect()}get isLine(){return this.link.inItem}get line(){let e=this.link.thread()?.lineOf(this.domElement);if(e!==`merged`)return e??{where:`thread`,steps:[{state:this.stepState,at:this.when??``}]}}get isMerged(){return this.isLine&&this.link.thread()?.lineOf(this.domElement)===`merged`}get isDriveBy(){return this.isLine&&this.line?.where===`drive-by`}get place(){return this.link.thread()?.placeOf(this.domElement)}get isInThread(){return!!this.place}get endsThread(){return!!this.place?.end}get isThreadHidden(){return!!this.place?.underHead&&this.link.threadFolded()}get stepState(){return this.isDone?kW:this.isNoted?AW:jW}get hasSummary(){return this.slots.hasContent(this.slotForName(MW))}get hasBody(){return this.slots.hasContent(``)||this.slots.hasContent(this.slotForName(MW))}get isDone(){return this.state===kW}get isNoted(){return this.state===AW}get isFinished(){return this.isDone||this.isNoted}get isUnderway(){return!this.isFinished}get when(){return this.isFinished&&this.doneAt||this.at}get who(){let e=this.from?.trim(),t=I.agentLabel(this.agent);return e&&!I.sameName(e,I.viewer())?this.translationForKey(`agentOf`,{agent:t,person:e}):this.translationForKey(`agent`,{agent:t})}get date(){return M.format(this.when)}get dateTip(){let{doneAt:e,at:t}=this;return this.isFinished&&e&&t?this.translationForKey(`started`,{date:M.format(t)}):void 0}get extraClass(){let e=this.line?.steps.at(-1)?.state??this.stepState;return this.isLine?`${e} ${FW}`:this.stepState}render(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.isLine},get fallback(){return t.renderCard()},get children(){return t.renderLine()}})}renderLine(){let t=__name(()=>this.line?.steps??[],`steps`),r=__name(()=>t().at(-1)?.state!==jW,`finished`),i=this;var a=cW(),o=a.firstChild,s=o.nextSibling,c=s.nextSibling,l=c.firstChild,u=l.nextSibling,d=u.firstChild;return(0,e.insert)(o,()=>r()?HW:UW),(0,e.insert)(s,(0,e.createComponent)(n.For,{get each(){return t()},children:(r,a)=>(()=>{var o=lW(),s=o.firstChild,c=s.nextSibling,l=c.nextSibling;return(0,e.insert)(o,(0,e.createComponent)(n.Show,{get when(){return a()>0},children:WW}),s),(0,e.insert)(o,()=>i.translationForKey(GW[r.state]),c),(0,e.insert)(l,()=>stepDate(r.at,t()[a()-1]?.at)),(0,e.effect)(()=>({e:(0,e.readShallow)(RW),t:(0,e.readShallow)(Ha),a:r.at}),({e:t,t:n,a:r},i)=>{(0,e.className)(o,t,i?.e),(0,e.className)(l,n,i?.t),r!==i?.a&&(0,e.setAttribute)(l,`datetime`,r)}),o})()})),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.isDriveBy},get children(){var t=sW(),n=t.firstChild,r=n.nextSibling;return(0,e.insert)(t,La,n),(0,e.insert)(t,()=>i.translationForKey(`earlier`),r),(0,e.effect)(()=>({e:(0,e.readShallow)(zW),t:i.partForName(`earlier`)}),({e:n,t:r},i)=>{(0,e.className)(t,n,i?.e),r!==i?.t&&(0,e.setAttribute)(t,`part`,r)}),t}}),c),(0,e.insert)(c,(0,e.createComponent)(n.Show,{get when(){return i.hasBody},children:La}),l),l._$owner=(0,e.getOwner)(),d._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(i.rootClass),t:i.partForName(`base`),a:(0,e.readShallow)(IW),o:(0,e.readShallow)(LW),i:i.partForName(`steps`),n:(0,e.readShallow)(BW),s:i.partForName(`summary`),h:i.slotForName(MW),r:(0,e.readShallow)([VW,{[Ba]:i.hasSummary}]),d:i.partForName(`body`)}),({e:t,t:n,a:r,o:i,i:d,n:f,s:p,h:m,r:h,d:g},_)=>{(0,e.className)(a,t,_?.e),n!==_?.t&&(0,e.setAttribute)(a,`part`,n),(0,e.className)(o,r,_?.a),(0,e.className)(s,i,_?.o),d!==_?.i&&(0,e.setAttribute)(s,`part`,d),(0,e.className)(c,f,_?.n),p!==_?.s&&(0,e.setAttribute)(c,`part`,p),m!==_?.h&&(0,e.setAttribute)(l,`name`,m),(0,e.className)(u,h,_?.r),g!==_?.d&&(0,e.setAttribute)(u,`part`,g)}),a}renderCard(){let t=this;var r=dW(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling,c=s.firstChild,l=c.firstChild,u=c.nextSibling,d=u.firstChild,f=t.fold.heading;typeof f==`function`||Array.isArray(f)?(0,e.ref)(()=>f,i):t.fold.heading=i,(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.hasBody},get children(){return t.fold.button({controls:Wa,labelledBy:`who`,part:t.partForName(`toggle`),tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)}})}}),a),(0,e.setAttribute)(a,`id`,`who`),(0,e.insert)(a,()=>t.translationForKey(t.isDone?`done`:t.isNoted?`noted`:`underway`,{who:t.who})),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.date},get children(){var n=uW();return(0,e.insert)(n,()=>t.date),(0,e.effect)(()=>({e:(0,e.readShallow)(Ha),t:t.partForName(`date`),a:t.when,o:t.dateTip}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`datetime`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n}}),o),(0,e.setAttribute)(s,`id`,Wa);var p=t.fold.watch;return typeof p==`function`||Array.isArray(p)?(0,e.ref)(()=>p,s):t.fold.watch=s,l._$owner=(0,e.getOwner)(),d._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)([Ra,Va,{[xa]:t.hasBody}]),o:t.partForName(`header`),i:(0,e.readShallow)(`who`),n:t.partForName(`who`),s:(0,e.readShallow)(PW),h:t.fold.hidden(),r:(0,e.readShallow)([za,{[Ba]:!t.slots.hasContent(``)}]),d:t.partForName(`body`),l:(0,e.readShallow)([za,NW,{[Ba]:!t.slots.hasContent(t.slotForName(MW))}]),u:t.partForName(`summary`),c:t.slotForName(MW)}),({e:t,t:n,a:o,o:l,i:f,n:p,s:m,h,r:g,d:_,l:v,u:y,c:b},x)=>{(0,e.className)(r,t,x?.e),n!==x?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,o,x?.a),l!==x?.o&&(0,e.setAttribute)(i,`part`,l),(0,e.className)(a,f,x?.i),p!==x?.n&&(0,e.setAttribute)(a,`part`,p),(0,e.className)(s,m,x?.s),h!==x?.h&&(0,e.setAttribute)(s,`hidden`,h),(0,e.className)(c,g,x?.r),_!==x?.d&&(0,e.setAttribute)(c,`part`,_),(0,e.className)(u,v,x?.l),y!==x?.u&&(0,e.setAttribute)(u,`part`,y),b!==x?.c&&(0,e.setAttribute)(d,`name`,b)}),r}},EW=__decoratorStart(TW),__decorateElement(EW,2,`isOpen`,SW,DW),__decorateElement(EW,1,`followItem`,xW,DW),__decorateElement(EW,2,`isLine`,bW,DW),__decorateElement(EW,2,`isMerged`,yW,DW),__decorateElement(EW,2,`isDriveBy`,vW,DW),__decorateElement(EW,2,`isInThread`,_W,DW),__decorateElement(EW,2,`endsThread`,gW,DW),__decorateElement(EW,2,`isThreadHidden`,hW,DW),__decorateElement(EW,2,`isDone`,mW,DW),__decorateElement(EW,2,`isNoted`,pW,DW),__decorateElement(EW,2,`isUnderway`,fW,DW),__decorateElement(EW,13,`vocabulary`,wW,DW),__decorateElement(EW,13,`elementSetup`,CW,DW),__decoratorMetadata(EW,DW),__name(DW,`EpicStatus`),__publicField(DW,`vocabulary`,__runInitializers(EW,8,DW,rW)),__runInitializers(EW,11,DW),__publicField(DW,`elementSetup`,__runInitializers(EW,12,DW,{styleSheets:{"epic-tooltip":N,"epic-fold-button":Xa,"epic-answer":Ja,"epic-status":aW},delegatesFocus:!1})),__runInitializers(EW,15,DW),OW=DW,kW=`done`,AW=`noted`,jW=`underway`,MW=`summary`,NW=`summary`,PW=`folded`,FW=`line`,IW=`mark`,LW=`steps`,RW=`step`,zW=`earlier`,BW=`text`,VW=`reading`,HW=`✓`,UW=`…`,WW=` → `,GW={done:`stepDone`,noted:`stepNoted`,underway:`stepUnderway`},__name(stepDate,`stepDate`)})),qW=__exportAll({EpicStatus:()=>OW}),JW=__esmMin((()=>{KW(),OW.define()})),YW,XW=__esmMin((()=>{YW={tag:`epic-summary`,topics:[`documentation`,`text`,`typography`],aka:[`summary`,`lede`,`abstract`,`tl;dr`],noun:`summary`,ui:!1,description:"The Overview's summary, two sentences, drawn as a lede at the top of `1. Overview`. The text stays the page's own children. Reviewed as the Overview: `<epic-overview>` draws the review controls on its title row, keyed `summary` in the review inbox.",attributes:[],events:[],slots:[{name:``,description:"The summary: text, or a `<p>`."},{name:`status`,description:'Claude\'s status cards on your marks (`<epic-status slot="status">`, P13): under the lede.'},{name:`notes`,description:'Your notes on the summary from the page, kept once Claude took them (`<epic-reply slot="notes">`): under the lede.'}],parts:[{name:`base`,description:`The lede.`}],states:[],texts:[],children:[{tag:`flow`,description:`The summary.`},{tag:`epic-reply`,slot:`notes`,description:"Your notes on the summary, kept once Claude took them (`inbox done | clear`), oldest first."},{tag:`epic-status`,slot:`status`,description:"Claude's status cards on your marks, oldest first (`plan-doc status`; a todo filed: born done)."}]}})),ZW,QW=__esmMin((()=>{ZW=`@layer ui.components.epic-summary.types{:host{max-width:72ch;color:var(--epic-heading-ink,var(--ui-text-color));font:400 17px/1.6 var(--epic-sans,var(--ui-font-family));text-wrap:pretty;margin:0 0 14px;display:block}:host([hidden]){display:none}:host(:state(disabled))>:not(slot){opacity:var(--ui-disabled-opacity,.45)}}@layer ui.components.epic-summary.content{::slotted(p){margin:0}::slotted(p:not(:first-child)){margin-top:.5em}::slotted(:is([slot=notes],[slot=status])){margin-top:8px;font-size:15px;display:block}}`})),$W,eG,tG,nG,rG,iG,aG,oG,sG=__esmMin((()=>{g(),Iu(),XW(),QW(),P(),$W=(0,e.template)(`<div><slot>`),eG=(0,e.template)(`<slot>`),aG=class _EpicSummary extends (rG=r.E.UIComponent,nG=[r.E.proto],tG=[r.E.protoMerged],rG){render(){let t=this;return[(()=>{var n=$W(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n})(),(()=>{var n=eG();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.slotForName(`notes`),t=>{(0,e.setAttribute)(n,`name`,t)}),n})(),(()=>{var n=eG();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>t.slotForName(Ou),t=>{(0,e.setAttribute)(n,`name`,t)}),n})()]}},iG=__decoratorStart(rG),__decorateElement(iG,13,`vocabulary`,nG,aG),__decorateElement(iG,13,`elementSetup`,tG,aG),__decoratorMetadata(iG,aG),__name(aG,`EpicSummary`),__publicField(aG,`vocabulary`,__runInitializers(iG,8,aG,YW)),__runInitializers(iG,11,aG),__publicField(aG,`elementSetup`,__runInitializers(iG,12,aG,{styleSheets:{"epic-tooltip":N,"epic-summary":ZW},disabled:`its own`,loading:`loader`})),__runInitializers(iG,15,aG),oG=aG})),cG=__exportAll({EpicSummary:()=>oG}),lG=__esmMin((()=>{sG(),oG.define()})),uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG=__esmMin((()=>{uG=[`first`,`pending`],dG=`epic-thread-opened`,fG=`epic-thread-closed`,pG=`epic-thread-editing`,mG=`epic-thread-removing`,hG=`base`,gG=`head`,_G=`fold`,vG=`chevron`,yG=`mark`,bG=`done`,xG=`headline`,SG=`tool`,CG=`body`,wG=`moved`,TG=`html`,EG=`check`,DG=`spin`,OG=`reply`,kG=`floppy`,AG=[`person`,`agent`,`done`,`thinking`],jG=`room`,MG=`when`,NG=`words`})),FG,IG=__esmMin((()=>{PG(),FG={tag:`epic-thread`,topics:[`messages`,`feedback`,`forms`],aka:[`comment`,`comment thread`,`bullhorn comment`,`thread`,`conversation`,`reply`],noun:`thread`,ui:!1,description:"One comment's whole thread (epic `airplane` P11; an element since epic `epic-engine` P3), drawn by the docs runtime's comments under the paragraph, list item or cell holding its quote, else under its block, on a guide, an epic page or an Epic UI page: one ivory pane that folds. Its header: a chevron, the bullhorn (a green check circle once done), its id (`C3`), the first words it's on; while it's your turn, your answer (an item's review pills: That's good, Reply, Skip it), Reopen once done, the pen while Claude hasn't had your words, the trash. Then the messages in order (`<epic-thread-message>`), and your reply box, slotted. Orange while Claude spoke last and you haven't answered (`unseen`). It draws what it's given and says what you did: the comments' code saves and redraws.",attributes:[{name:`comment`,kind:`json`,required:!0,description:"The comment, as the comments route answers it (`GET /api/docs/comments`): `id`, `text`, `at`, `status`, `turn`, `replies`, `working`, `done`, `taken`, and where it is (`kind`, `label`, `excerpt`, `quote`). A property; JSON in markup."},{name:`open`,kind:`boolean`,description:"Unfolded: the messages and the reply box show. A click on its header flips it, and says so (`epic-thread-opened` / `epic-thread-closed`)."},{name:`unseen`,kind:`boolean`,description:`ORANGE: Claude spoke last and you haven't answered yet (✓, a reply, ×). The whole thread's ground, Claude's latest reply stronger. Orange is our colour for "changed since you looked".`},{name:`moved`,kind:`boolean`,description:"Its block changed or moved since: it says what it was on (the comment's `excerpt`)."},{name:`boxed`,kind:`enum`,values:uG,description:"Your words now in the box under it, so the thread leaves them out: `first` (your first words, in the pen's box), `pending` (your pending reply, in the reply box). The pen hides while `first`."},{name:`saved`,kind:`string`,description:"The box's floppy, in its corner, and its tooltip: `Saved 14:02 · waiting for Claude`; none: no floppy."},{name:`failed`,kind:`boolean`,description:"The box's last save failed: the floppy red, `saved` saying why."}],events:[{name:`epic-thread-opened`,detail:`{ open: true }`,description:`You clicked its header (not one of its buttons): it unfolded.`},{name:`epic-thread-closed`,detail:`{ open: false }`,description:`You clicked its header (not one of its buttons): it folded.`},{name:`epic-thread-editing`,detail:`{}`,description:`The pen: You'll change your first words, while Claude hasn't had them.`},{name:`epic-thread-removing`,detail:`{}`,description:`The trash: You delete the comment, at once (Undo in the toast that follows).`},{name:`epic-thread-answered`,detail:`{ act: "good" | "reply" | "skip" | "reopen" }`,description:"Your answer, from its review pills (an `<epic-review buttons=thread>` in its shadow root): That's good, Reply, Skip it; Reopen once done."}],slots:[{name:``,description:"Your box, last in its body while open: the reply box, or the pen's box over your first words (a `<ui-textarea>`, which the comments' code keeps across redraws)."}],parts:[{name:`base`,description:`The thread: its header, then its body while open.`},{name:`header`,description:`Its header: the fold, your answer, the pen, the trash; a click folds it.`},{name:`fold`,description:`The fold: the chevron, the bullhorn (a check circle once done), its id, the first words it's on.`},{name:`id`,description:"Its id, `C3`: small and muted, an outline and no fill."},{name:`headline`,description:`The first words it's on, in quotes; its tooltip says the block in full.`},{name:`answer`,description:`Your answer while it's your turn (the review pills), or Reopen once done.`},{name:`body`,description:`The messages and the box: shown while open.`},{name:`reply`,description:`Your box, its floppy in the corner.`}],states:[],texts:[{key:`foldTip`,text:`Close this thread`,description:`After the fold's tooltip while open.`},{key:`unfoldTip`,text:`Open this thread`,description:`After the fold's tooltip while folded.`},{key:`editTitle`,text:`Edit your last words`,description:`The pen's tooltip.`},{key:`editLabel`,text:`Edit your last words: Claude hasn't taken them yet`,description:`The pen, for a screen reader.`},{key:`deleteTitle`,text:`Delete this comment`,description:`The trash's tooltip.`},{key:`deleteNew`,text:`Delete this comment (Undo in the toast that follows)`,description:`The trash, for a screen reader, while Claude hasn't had it.`},{key:`deleteHad`,text:`Delete this comment: gone from the page, whatever Claude did with it (Undo in the toast that follows)`,description:`The trash, for a screen reader, once Claude has had it.`},{key:`moved`,text:`The block changed since: it was “{excerpt}”.`,description:"Above the messages, when its block changed or moved since (`moved`)."},{key:`answeredInDoc`,text:`Answered on the epic page.`,description:`Claude's answer with no words on the thread: an epic page's comment, answered in the doc.`},{key:`takenInto`,text:`Taken into`,description:`Claude took it into an epic's phase: before the link.`},{key:`takenWhy`,text:`, to work into the page there.`,description:`Claude took it into an epic's phase: after the link.`},{key:`good`,text:`That's good.`,description:`The Done line: You said that's good.`},{key:`skip`,text:`Skipped: nothing more to do.`,description:`The Done line: You skipped it.`},{key:`builtIn`,text:`Built in`,description:`The Done line: before the commit Claude named.`},{key:`thinking`,text:`thinking…`,description:"Claude's stub while he thinks about it (`working`)."}],children:[]}})),LG,RG=__esmMin((()=>{LG=`@layer ui.components.epic-thread{:host{--_epic-thread-green:var(--ui-green-text,var(--ui-green,#21ba45));--_epic-thread-orange:var(--ui-orange,#f2711c);--_epic-thread-ivory:var(--spell-rail-bg,var(--ui-brown-background,light-dark(#f7efe2,#2c2152)));--_epic-thread-ivory-ink:var(--spell-rail-ink,var(--ui-brown-text,light-dark(#534323,#eaddc4)));--_epic-thread-rule:var(--spell-rail-rule,color-mix(in srgb, var(--_epic-thread-ivory-ink) 22%, transparent));--_epic-thread-hover:var(--spell-rail-hover,color-mix(in srgb, var(--_epic-thread-ivory-ink) 9%, var(--_epic-thread-ivory)));--_epic-thread-ink:var(--spell-ink,var(--ui-text-color,CanvasText));--_epic-thread-muted:var(--spell-muted,var(--ui-text-muted,GrayText));--_epic-thread-mono:var(--spell-mono,var(--ui-font-family-mono,ui-monospace, monospace));--epic-muted:var(--_epic-thread-muted);border:1px solid var(--_epic-thread-rule);background:var(--_epic-thread-ivory);min-width:0;color:var(--_epic-thread-ink);border-radius:10px;margin-inline:0;display:block}:host([unseen]){background:light-dark(color-mix(in srgb, var(--_epic-thread-orange) 13%, var(--_epic-thread-ivory)),color-mix(in srgb, var(--_epic-thread-orange) 22%, var(--_epic-thread-ivory)))}.head{min-height:24px;padding:2px var(--epic-thread-head-room,4px) 2px 6px;color:var(--_epic-thread-ivory-ink);cursor:pointer;align-items:center;gap:6px;font-size:14.4px;display:flex}.fold{min-width:0;min-height:24px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:6px;padding:0;display:flex}.fold:focus-visible{outline:2px solid var(--ui-focus-color,var(--spell-doc-accent,Highlight));border-radius:4px}.chevron,.mark{flex:none;place-items:center;width:14px;display:inline-grid}.chevron{transition:rotate var(--epic-turn-duration,.15s);font-size:12px}:host([open]) .chevron{rotate:90deg}@media (prefers-reduced-motion:reduce){.chevron{transition:none}}.mark.done{color:var(--_epic-thread-green)}.id{border:1px solid var(--_epic-thread-rule);color:color-mix(in oklab, var(--_epic-thread-ivory-ink) 80%, var(--_epic-thread-ink));font:600 10px/1.2 var(--_epic-thread-mono);font-variant-numeric:tabular-nums;letter-spacing:.02em;border-radius:999px;flex:none;padding:1px 5px;font-style:normal}.headline{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-style:italic;overflow:hidden}.tool{--ui-button-basic-border-width:0px;--ui-button-basic-background-hover:var(--_epic-thread-hover);flex:none}.tool.edit{font-size:12.8px}.body{gap:2px;padding:0 6px 4px;display:grid}.moved{color:var(--_epic-thread-muted);margin:0;font-size:13.6px}epic-thread-message :is(p,ul,ol){margin-block:0 3px}epic-thread-message :is(p,li){max-width:72ch}:is(epic-thread-message,.html)>:first-child{margin-top:0}:is(epic-thread-message,.html)>:last-child{margin-bottom:0}epic-thread-message :is(ul,ol){padding-left:20px}epic-thread-message a{color:var(--epic-thread-link,var(--ui-link,LinkText))}epic-thread-message code{background:var(--spell-code-bg,var(--ui-code-background,light-dark(#f3f2ef,#26272d)));color:var(--spell-heading-ink,inherit);font-family:var(--_epic-thread-mono);overflow-wrap:break-word;border-radius:4px;padding:1px 5px;font-size:.88em}epic-thread-message pre{background:var(--spell-code-bg,var(--ui-code-background,light-dark(#f3f2ef,#26272d)));max-width:100%;font-family:var(--_epic-thread-mono);border-radius:8px;margin:6px 0;padding:8px 10px;font-size:.9em;line-height:1.5;overflow:auto}epic-thread-message pre code{color:inherit;font-size:inherit;overflow-wrap:normal;background:0 0;padding:0}.check{place-items:center;margin-right:6px;display:inline-grid}.spin{vertical-align:-.05em;place-items:center;margin-right:5px;font-size:.8em;animation:3.4s ease-in-out infinite epic-thread-spin;display:inline-grid}@keyframes epic-thread-spin{0%{rotate:y 0turn}70%{rotate:y 1turn}to{rotate:y 1turn}}@media (prefers-reduced-motion:reduce){.spin{animation-duration:3s}}.reply{margin-top:2px;position:relative}.floppy{color:var(--_epic-thread-muted);font-size:12.8px;position:absolute;bottom:6px;right:8px}.floppy[data-failed]{color:var(--ui-red,#db2828)}.floppy>*{pointer-events:none}}`}));function voiceOf(e){if(e.by===`done`)return;let t=e.by===`person`?void 0:e.agent??dK;return I.voiceOf({person:e.person,agent:t})}function paragraphsOf(t){let r=t.trim().split(/\n[ \t]*\n\s*/);return(0,e.createComponent)(n.For,{each:r,children:t=>(()=>{var r=zG();return(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.trim().split(/(`[^`]+`|\n)/)},children:t=>t===`
50
50
  `?eK():pK.test(t)?(()=>{var n=XG();return(0,e.insert)(n,()=>t.slice(1,-1)),n})():t})),r})()})}function planLink(e,t){return`${mK.exec(location.pathname)?.[0]??`/`}epics/${encodeURIComponent(e)}/${encodeURIComponent(e)}.plan.html#${encodeURIComponent(t)}`}var zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,DOMThreadElement,lK,uK,dK,fK,pK,mK,hK=__esmMin((()=>{g(),No(),IG(),PG(),RG(),P(),zG=(0,e.template)(`<p>`),BG=(0,e.template)(`<span><ui-icon name="floppy disk outline">`,1),VG=(0,e.template)(`<div><slot>`),HG=(0,e.template)(`<div><!><!><!>`),UG=(0,e.template)(`<div><!><!>`),WG=(0,e.template)(`<epic-review shows=buttons>`,1),GG=(0,e.template)(`<ui-button appearance="circular basic"size=mini icon=edit>`,1),KG=(0,e.template)(`<ui-button appearance="circular basic"size=mini icon="trash can">`,1),qG=(0,e.template)(`<div><button type=button><span><ui-icon name="chevron right"></ui-icon></span><span><ui-icon></ui-icon></span><span></span><span></span></button><!><!><!>`,1),JG=(0,e.template)(`<epic-thread-message>`,1),YG=(0,e.template)(`<p><span><ui-icon name="circle check"></ui-icon></span><!><!>`,1),XG=(0,e.template)(`<code>`),ZG=(0,e.template)(`<p><span aria-hidden=true><ui-icon name="circle notch">`,1),QG=(0,e.template)(`<p> <a></a><!>`),$G=(0,e.template)(`<div>`),eK=(0,e.template)(`<br>`),DOMThreadElement=class extends r.E.DOMElement{static{__name(this,`DOMThreadElement`)}get header(){return this.component?.header}focusFold(){this.component?.fold?.focus({preventScroll:!0})}get isFoldFocused(){let e=this.component?.fold;return!!e&&this.shadowRoot?.activeElement===e}},lK=class _EpicThread extends (sK=r.E.UIComponent,oK=[r.E.proto],aK=[r.E.protoMerged],iK=[r.E.derived],rK=[r.E.untracked],nK=[r.E.untracked],tK=[r.E.untracked],sK){constructor(){super(...arguments),__runInitializers(cK,5,this),__publicField(this,`slots`,new r.E.SlotContent(this.domElement)),__publicField(this,`header`),__publicField(this,`fold`),__publicField(this,`onHeadDrawn`,__runInitializers(cK,16,this,__name(e=>{this.header=e,e.addEventListener(`click`,this.onHeadClick)},`onHeadDrawn`))),__runInitializers(cK,19,this),__publicField(this,`onHeadClick`,__runInitializers(cK,20,this,__name(e=>{let t=e.currentTarget;for(let n of e.composedPath()){if(n===t||!(n instanceof Element))break;if(n.matches(fK))return}let n=!this.open;this.open=n,this.send(n?dG:fG,{open:n})},`onHeadClick`))),__runInitializers(cK,23,this)}get turn(){let e=this.comment;return e?I.asTurn(e.turn)??I.turnOf(e):`agent`}get hasPen(){let e=this.comment;return!!e&&this.boxed!==`first`&&I.pendingOf(e,I.viewer())===`edit`}get hasTrash(){let e=this.comment?.by,t=I.viewer();return!e||!t||I.sameName(e,t)}get foldTip(){let e=this.comment;return`${e?I.aboutTip({id:e.id,place:e}):``}
51
- (${this.translationForKey(this.open?`foldTip`:`unfoldTip`)})`}get messages(){let e=this.comment;if(!e)return[];let t=I.viewer(),n={by:`person`,at:e.at,text:e.text,person:e.by,mine:!e.by||I.sameName(e.by,t)},r=(e.replies??[]).map(e=>{let{person:n,agent:r,mine:i}=I.speakerOf(e,t);return r?{by:`agent`,at:e.at,html:e.html||void 0,person:n,agent:r,mine:i}:{by:`person`,at:e.at,text:e.text??``,person:n,mine:i}});this.boxed===`pending`&&I.pendingReplyOf(e,t)&&r.pop();let i=this.boxed===`first`?r:[n,...r],{taken:a,done:o}=e;if(a){let t=I.takenInto(a),n={by:`agent`,agent:e.claim?.agent,at:a.at,taken:{href:planLink(a.epic,t.hash),label:t.label}},r=i.findIndex(e=>e.at>a.at);i.splice(r<0?i.length:r,0,n)}if(e.status===`answered`&&!e.replies?.some(e=>I.isAgents(e))&&i.push({by:`agent`,at:``}),o){let t=e.replies?.findLast(e=>e.commit)?.commit;i.push({by:`done`,at:o.at,how:o.how,commit:t})}if(e.working&&!o){let{by:n,agent:r}=e.claim??{};i.push({by:`thinking`,at:e.working,person:n,agent:r,mine:I.sameName(n,t)})}let s=i.findLastIndex(e=>e.by===`agent`&&e.at),c=``;return i.map((e,t)=>{let n=e.at?I.localStamp(e.at):``,r=n?n.slice(0,10)===c?n.slice(11):I.shortStamp(n):``;return n&&(c=n.slice(0,10)),{...e,stamp:r,older:t<i.length-1,latest:t===s&&!!this.unseen}})}render(){let t=this;var r=UG(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,()=>t.head(),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.open},get children(){var r=HG(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.moved},get children(){var n=zG();return(0,e.insert)(n,()=>t.translationForKey(`moved`,{excerpt:t.comment?.excerpt??``})),(0,e.effect)(()=>(0,e.readShallow)(wG),(t,r)=>{(0,e.className)(n,t,r)}),n}}),i),(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.messages},children:e=>t.message(e)}),a),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.slots.hasContent(``)},get children(){var r=VG(),i=r.firstChild;return i._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.saved},get children(){var n=BG(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(kG),t:t.saved,a:t.failed?``:void 0}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`title`,r),i!==a?.a&&(0,e.setAttribute)(n,`data-failed`,i)}),n}}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(OG),t:t.partForName(`reply`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}}),o),(0,e.effect)(()=>({e:(0,e.readShallow)(CG),t:t.partForName(`body`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}}),a),(0,e.effect)(()=>({e:(0,e.readShallow)(hG),t:t.partForName(`base`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}head(){let t=__name(()=>this.comment,`comment`),r=__name(()=>this.turn===`done`,`done`),i=this;var a=qG(),o=a.firstChild,s=o.firstChild,c=s.firstChild,l=s.nextSibling,u=l.firstChild,d=l.nextSibling,f=d.nextSibling,p=o.nextSibling,m=p.nextSibling,h=m.nextSibling,g=i.onHeadDrawn;return typeof g==`function`||Array.isArray(g)?(0,e.ref)(()=>g,a):i.onHeadDrawn=a,(0,e.ref)(()=>e=>i.fold=e,o),c._$owner=(0,e.getOwner)(),u._$owner=(0,e.getOwner)(),(0,e.insert)(d,()=>I.label(t()?.id??``)),(0,e.insert)(f,(()=>{var n=(0,e.memo)(()=>!!t());return()=>n()?I.headline(t()):``})()),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.turn===`person`||r()},get children(){var n=WG();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:i.partForName(`answer`),t:t()?.id??``,a:I.label(t()?.id??``),o:r()?`closed`:`thread`}),({e:t,t:r,a:i,o:a},o)=>{t!==o?.e&&(0,e.setAttribute)(n,`part`,t),r!==o?.t&&(0,e.setAttribute)(n,`of`,r),i!==o?.a&&(0,e.setAttribute)(n,`label`,i),a!==o?.o&&(0,e.setAttribute)(n,`buttons`,a)}),n}}),p),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.hasPen},get children(){var t=GG();return t._$$click=e=>i.say(e,pG),t._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([SG,`edit`]),t:i.translationForKey(`editTitle`),a:i.translationForKey(`editLabel`)}),({e:n,t:r,a:i},a)=>{(0,e.className)(t,n,a?.e),r!==a?.t&&(0,e.setAttribute)(t,`title`,r),i!==a?.a&&(0,e.setAttribute)(t,`aria-label`,i)}),t}}),m),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.hasTrash},get children(){var n=KG();return n._$$click=e=>i.say(e,mG),n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([SG,`delete`]),t:i.translationForKey(`deleteTitle`),a:i.translationForKey(t()?.status===`new`?`deleteNew`:`deleteHad`)}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`title`,r),i!==a?.a&&(0,e.setAttribute)(n,`aria-label`,i)}),n}}),h),(0,e.effect)(()=>({e:(0,e.readShallow)(gG),t:i.partForName(`header`),a:(0,e.readShallow)(_G),o:i.partForName(`fold`),i:i.open?`true`:`false`,n:i.foldTip,s:(0,e.readShallow)(vG),h:(0,e.readShallow)([yG,{[bG]:r()}]),r:r()?`circle check`:`bullhorn`,d:(0,e.readShallow)(`id`),l:i.partForName(`id`),u:(0,e.readShallow)(xG),c:i.partForName(`headline`)}),({e:t,t:n,a:r,o:i,i:c,n:p,s:m,h,r:g,d:_,l:v,u:y,c:b},x)=>{(0,e.className)(a,t,x?.e),n!==x?.t&&(0,e.setAttribute)(a,`part`,n),(0,e.className)(o,r,x?.a),i!==x?.o&&(0,e.setAttribute)(o,`part`,i),c!==x?.i&&(0,e.setAttribute)(o,`aria-expanded`,c),p!==x?.n&&(0,e.setAttribute)(o,`title`,p),(0,e.className)(s,m,x?.s),(0,e.className)(l,h,x?.h),g!==x?.r&&(0,e.setAttribute)(u,`name`,g),(0,e.className)(d,_,x?.d),v!==x?.l&&(0,e.setAttribute)(d,`part`,v),(0,e.className)(f,y,x?.u),b!==x?.c&&(0,e.setAttribute)(f,`part`,b)}),a}message(t){let n=this;var r=JG();return r._$owner=(0,e.getOwner)(),(0,e.insert)(r,()=>n.words(t)),(0,e.effect)(()=>({e:t.by,t:t.person||void 0,a:t.agent||void 0,o:voiceOf(t),i:t.mine?``:void 0,n:t.at||void 0,s:t.stamp||void 0,h:t.older?``:void 0,r:t.latest?``:void 0}),({e:t,t:n,a:i,o:a,i:o,n:s,s:c,h:l,r:u},d)=>{t!==d?.e&&(0,e.setAttribute)(r,`by`,t),n!==d?.t&&(0,e.setAttribute)(r,`person`,n),i!==d?.a&&(0,e.setAttribute)(r,`agent`,i),a!==d?.o&&(0,e.setStyleProperty)(r,`--_epic-voice`,a),o!==d?.i&&(0,e.setAttribute)(r,`mine`,o),s!==d?.n&&(0,e.setAttribute)(r,`at`,s),c!==d?.s&&(0,e.setAttribute)(r,`stamp`,c),l!==d?.h&&(0,e.setAttribute)(r,`older`,l),u!==d?.r&&(0,e.setAttribute)(r,`latest`,u)}),r}words(t){if(t.by===`person`)return paragraphsOf(t.text??``);let r=this;if(t.by===`done`)return(()=>{var i=YG(),a=i.firstChild,o=a.firstChild,s=a.nextSibling,c=s.nextSibling;return o._$owner=(0,e.getOwner)(),(0,e.insert)(i,()=>r.translationForKey(t.how===`skip`?`skip`:`good`),s),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.commit},children:t=>[` `,(0,e.memo)(()=>r.translationForKey(`builtIn`)),` `,(()=>{var n=XG();return(0,e.insert)(n,t),n})(),`.`]}),c),(0,e.effect)(()=>(0,e.readShallow)(EG),(t,n)=>{(0,e.className)(a,t,n)}),i})();let i=this;if(t.by===`thinking`)return(()=>{var t=ZG(),n=t.firstChild,r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.insert)(t,()=>i.translationForKey(`thinking`),null),(0,e.effect)(()=>(0,e.readShallow)(DG),(t,r)=>{(0,e.className)(n,t,r)}),t})();let a=this;if(t.taken)return(()=>{var n=QG(),r=n.firstChild,i=r.nextSibling,o=i.nextSibling,s=(0,e.getOwner)();return(0,e.insert)(n,()=>a.translationForKey(`takenInto`),r),(0,e.insert)(i,()=>t.taken.label),(0,e.insert)(n,()=>a.translationForKey(`takenWhy`),o),(0,e.effect)(()=>t.taken.href,t=>{(0,e.setAttribute)(i,`href`,t),(0,e.claimElement)(i,s)}),n})();if(t.html)return(()=>{var n=$G();return(0,e.effect)(()=>({e:(0,e.readShallow)(TG),t:t.html}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(n.innerHTML=r)}),n})();let o=this;var s=zG();return(0,e.insert)(s,()=>o.translationForKey(`answeredInDoc`)),s}say(e,t){e.stopPropagation(),this.send(t,{})}},cK=__decoratorStart(sK),__decorateElement(cK,2,`messages`,iK,lK),__decorateElement(cK,1,`say`,tK,lK),__decorateElement(cK,13,`vocabulary`,oK,lK),__decorateElement(cK,13,`elementSetup`,aK,lK),__decorateElement(cK,5,`onHeadDrawn`,rK,lK),__decorateElement(cK,5,`onHeadClick`,nK,lK),__decoratorMetadata(cK,lK),__name(lK,`EpicThread`),__publicField(lK,`vocabulary`,__runInitializers(cK,8,lK,FG)),__runInitializers(cK,11,lK),__publicField(lK,`elementSetup`,__runInitializers(cK,12,lK,{styleSheets:{"epic-tooltip":N,"epic-thread":LG},DOMElement:DOMThreadElement,delegatesFocus:!1})),__runInitializers(cK,15,lK),uK=lK,__name(voiceOf,`voiceOf`),dK=`claude`,fK=`ui-button, epic-review`,__name(paragraphsOf,`paragraphsOf`),pK=/^`[^`]+`$/,__name(planLink,`planLink`),mK=/^\/worktrees\/[^/]+\//,(0,e.delegateEvents)([`click`])})),gK,_K=__esmMin((()=>{PG(),gK={tag:`epic-thread-message`,topics:[`messages`,`text`],aka:[`thread message`,`comment message`,`reply`,`answer`],noun:`message`,ui:!1,description:`One message of a comment's thread (\`<epic-thread>\`, which draws it in its shadow root, never written in a doc): a person's words plain on the thread's ivory, an agent's in a light box of the agent's colour, the green Done line, or an agent's "thinking…" stub in the page's blue (at work on it); a bold "You:" / "Ana:" / "Claude:" / "Codex (Ana):" starts its first line, its time in its top right corner. Every message but the last a step smaller and quieter.`,attributes:[{name:`by`,kind:`enum`,values:AG,required:!0,description:"Who said it, which its colour says: `person`, `agent` (`claude` before epic `epic-friend` P10), `done` (the Done line, a check where a name would be), `thinking` (an agent at work on it)."},{name:`person`,kind:`string`,description:"Whose words (`by=person`), or whose session's agent (`by=agent`): a person's name (epic `epic-friend` P2). None: the reader's own words, or an old reply of Claude's."},{name:`agent`,kind:`string`,description:"Which agent (`by=agent`, `by=thinking`; epic `epic-friend` P10): its id, `codex`, drawn by its name, `Codex:`. None: Claude."},{name:`mine`,kind:`boolean`,description:"`person` is whoever is reading: `You:`, or plain `Codex:` for their own session's."},{name:`at`,kind:`string`,description:`When, ISO: its tooltip says the full local date and time.`},{name:`stamp`,kind:`string`,description:"Its time as shown in its corner: `10/10 09:12` on the first and when the day changed, else `09:12`."},{name:`older`,kind:`boolean`,description:`Not the last: a step smaller and quieter (the thinking stub or the Done line count as the last).`},{name:`latest`,kind:`boolean`,description:"An agent's latest reply on a thread that's orange (`<epic-thread unseen>`): a stronger orange."}],events:[],slots:[{name:``,description:`What was said.`}],parts:[{name:`base`,description:`The message: its time, then who and what was said.`},{name:`words`,description:`Who, in bold, then what was said.`},{name:`time`,description:`Its time, over its top right corner; the full date and time its tooltip.`}],states:[],texts:[{key:`you`,text:`You:`,description:`Who, before the reader's own words.`},{key:`person`,text:`{person}:`,description:`Who, before another person's words.`},{key:`agent`,text:`{agent}:`,description:"Who, before an agent's words and its thinking stub, by its name (`Claude:`, `Codex:`): the reader's own session's, or an old reply."},{key:`agentOf`,text:`{agent} ({person}):`,description:"Who, before the words of another person's session's agent: `Codex (Ana):`."}],children:[]}})),vK,yK=__esmMin((()=>{vK=`@layer ui.components.epic-thread-message{:host{--_epic-message-agent:var(--_epic-voice,var(--epic-voice-agent,light-dark(#c96442,#d97757)));--_epic-message-blue:var(--ui-blue-text,var(--ui-blue,#1a67e0));--_epic-message-green:var(--ui-green-text,var(--ui-green,#21ba45));--_epic-message-orange:var(--ui-orange,#f2711c);--_epic-message-ink:var(--spell-ink,var(--ui-text-color,CanvasText));--_epic-message-ivory:var(--spell-rail-bg,var(--ui-brown-background,light-dark(#f7efe2,#2c2152)));--_epic-message-paper:var(--spell-bg,var(--ui-background,Canvas));border:1px solid #0000;border-radius:6px;padding:2px 6px;font-size:.9em;line-height:1.35;display:block;position:relative}:host([older]){font-size:.8em}:host([older]) .words{color:color-mix(in srgb, var(--_epic-message-ink) 72%, var(--_epic-message-ivory))}:host([by=agent]){background:color-mix(in srgb, var(--_epic-message-agent) 9%, var(--_epic-message-paper));box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-agent) 16%, transparent)}:host([by=thinking]){background:color-mix(in srgb, var(--_epic-message-blue) 9%, var(--_epic-message-paper));box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-blue) 22%, transparent)}:host([by=thinking]) .words{color:var(--_epic-message-blue);font-style:italic}:host([by=thinking]) .who{color:var(--_epic-message-ink);font-style:normal}:host([by=done]){box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-green) 25%, transparent);color:var(--_epic-message-green)}:host([latest]){background:light-dark(color-mix(in srgb, var(--_epic-message-orange) 30%, var(--_epic-message-ivory)),color-mix(in srgb, var(--_epic-message-orange) 40%, var(--_epic-message-ivory)));box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-orange) 45%, transparent)}:is(.when,.room){font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;line-height:22.4px}.when{color:var(--spell-muted,var(--ui-text-muted,GrayText));position:absolute;top:2px;right:6px}.room{float:right;visibility:hidden;margin-left:10px}.who{float:left;color:var(--_epic-voice,currentColor);font-weight:700}.who:after{content:" ";white-space:pre;font-weight:400}}`})),bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK=__esmMin((()=>{g(),No(),_K(),PG(),yK(),bK=(0,e.template)(`<div><div><slot>`),xK=(0,e.template)(`<span aria-hidden=true>`),SK=(0,e.template)(`<time>`),CK=(0,e.template)(`<b>`),OK=class _EpicThreadMessage extends (EK=r.E.UIComponent,TK=[r.E.proto],wK=[r.E.protoMerged],EK){get who(){let e=this.person?.trim();if(this.by===`person`)return this.mine||!e?this.translationForKey(`you`):this.translationForKey(`person`,{person:e});if(this.by===`agent`||this.by===`thinking`){let t=I.agentLabel(this.agent);return e&&!this.mine?this.translationForKey(`agentOf`,{agent:t,person:e}):this.translationForKey(`agent`,{agent:t})}}render(){let t=this;var r=bK(),i=r.firstChild,a=i.firstChild;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.stamp},children:n=>[(()=>{var t=xK();return(0,e.insert)(t,n),(0,e.effect)(()=>(0,e.readShallow)(jG),(n,r)=>{(0,e.className)(t,n,r)}),t})(),(()=>{var r=SK();return(0,e.insert)(r,n),(0,e.effect)(()=>({e:(0,e.readShallow)(MG),t:t.partForName(`time`),a:t.at,o:t.localTime}),({e:t,t:n,a:i,o:a},o)=>{(0,e.className)(r,t,o?.e),n!==o?.t&&(0,e.setAttribute)(r,`part`,n),i!==o?.a&&(0,e.setAttribute)(r,`datetime`,i),a!==o?.o&&(0,e.setAttribute)(r,`title`,a)}),r})()]}),i),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.who},children:t=>(()=>{var n=CK();return(0,e.insert)(n,t),(0,e.effect)(()=>(0,e.readShallow)(`who`),(t,r)=>{(0,e.className)(n,t,r)}),n})()}),a),a._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(hG),t:t.partForName(`base`),a:(0,e.readShallow)(NG),o:t.partForName(`words`)}),({e:t,t:n,a,o},s)=>{(0,e.className)(r,t,s?.e),n!==s?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,a,s?.a),o!==s?.o&&(0,e.setAttribute)(i,`part`,o)}),r}get localTime(){return I.localStamp(this.at)}},DK=__decoratorStart(EK),__decorateElement(DK,13,`vocabulary`,TK,OK),__decorateElement(DK,13,`elementSetup`,wK,OK),__decoratorMetadata(DK,OK),__name(OK,`EpicThreadMessage`),__publicField(OK,`vocabulary`,__runInitializers(DK,8,OK,gK)),__runInitializers(DK,11,OK),__publicField(OK,`elementSetup`,__runInitializers(DK,12,OK,{styleSheets:{"epic-thread-message":vK},delegatesFocus:!1})),__runInitializers(DK,15,OK),kK=OK})),jK,MK=__esmMin((()=>{jK={tag:`epic-threads`,topics:[`messages`,`lists`],aka:[`comments`,`comment threads`,`threads`],noun:`threads`,ui:!1,description:"The comment threads under one block of a page (`<epic-thread>`s), in order, a little apart: drawn by the docs runtime's comments right after the paragraph, list item or cell holding their quotes, else after their block (a docs section's first in its body). Its edges are the block's it's under (an epic page item's note box's; a guide paragraph's measure): the page's sheet sets them.",attributes:[],events:[],slots:[{name:``,description:"The threads (`<epic-thread>`)."}],parts:[{name:`base`,description:`The column of its threads, 6px apart.`}],states:[],texts:[],children:[{tag:`epic-thread`,description:`One comment's thread.`}]}})),NK,PK=__esmMin((()=>{NK=`@layer ui.components.epic-threads{:host{margin:8px 0 12px;display:block}.base{gap:6px;display:grid}}`})),FK,IK,LK,RK,zK,BK,VK,HK,UK=__esmMin((()=>{g(),MK(),PK(),FK=(0,e.template)(`<div><slot>`),BK=class _EpicThreads extends (RK=r.E.UIComponent,LK=[r.E.proto],IK=[r.E.protoMerged],RK){render(){let t=this;var n=FK(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(HK),t:t.partForName(`base`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}},zK=__decoratorStart(RK),__decorateElement(zK,13,`vocabulary`,LK,BK),__decorateElement(zK,13,`elementSetup`,IK,BK),__decoratorMetadata(zK,BK),__name(BK,`EpicThreads`),__publicField(BK,`vocabulary`,__runInitializers(zK,8,BK,jK)),__runInitializers(zK,11,BK),__publicField(BK,`elementSetup`,__runInitializers(zK,12,BK,{styleSheets:{"epic-threads":NK},delegatesFocus:!1})),__runInitializers(zK,15,BK),VK=BK,HK=`base`})),WK=__exportAll({DOMThreadElement:()=>DOMThreadElement,EpicThread:()=>uK,EpicThreadMessage:()=>kK,EpicThreads:()=>VK}),GK=__esmMin((()=>{kf(),hK(),AK(),UK(),kK.define(),uK.define(),VK.define()})),KK,qK=__esmMin((()=>{fa(),KK={tag:`epic-update`,topics:[`documentation`,`notifications`,`status`],aka:[`update`,`updated`,`plan change`,`changed`,`revision`,`flag`],noun:`update`,ui:!1,description:"An UPDATE (Owen, 2026-10-11): a block titled `Update: <summary>`, its date at the right, what changed under it. A phase's plan change sits at the end of its phase's description (after Goal); an update to prose right after the block it changed. Empty, with no `summary` or `at`: the orange UPDATE label on an item changed while a phase is active.",attributes:[{name:`id`,property:`epicId`,kind:`string`,format:`anchor`,description:"A block's `up3`, given by the epic tool on its next write (epic `epic-engine` I168): the key its Seen mark goes under, and a link's target (`#up3`). None: just written, no Seen yet; a bare label never has one."},{name:`at`,kind:`string`,format:`time`,description:"When it changed: `2026-10-11 14:30`, drawn `10/11/26 14:30` at the title's right."},{name:`summary`,kind:`string`,description:"What changed, in one line: the title's words after `Update:`."},{name:`phase`,kind:`string`,format:`phase number`,description:"The phase active when it was written, by its number (`3`, `11.1`). `phase 3 done` removes P3's bare labels and the updates outside a phase; a phase's own plan changes stay."},{name:`seen`,kind:`string`,format:`time`,description:"When you marked it seen (`2026-10-29 14:30`; epic `epic-engine` I168), written by `epic inbox apply` from its Seen mark: folded to one grey line, out of its phase's pen, for everyone. None: new until `PlanDates.QUIET_DAYS` after `at`, then quiet all the same."}],events:[],slots:[{name:``,description:`What changed, and why; none for a bare label.`},la],parts:[{name:`base`,description:`The block, or the bare label.`},{name:`header`,description:"A block's title row: the fold chevron, the title, `actions`, the date."},{name:`toggle`,description:"A block's fold chevron, a `<button>`, first: a click folds what changed."},{name:`title`,description:"A block's `Update: <summary>`."},{name:`time`,description:"A block's date (`at`), at the right of its title row."},da,{name:`seen`,description:'A new block\'s ✓ Seen, before its date, while the page is reviewed: an `<epic-review buttons="update">`.'},{name:`body`,description:"What changed, under the title row; hidden (`until-found`) while folded."},{name:`label`,description:"The bare orange `UPDATE` label."}],states:[{name:`block`,description:`Drawn as a block: it has a summary, a date or what changed.`},{name:`open`,description:`A block, unfolded: it starts so while new, folded once seen or quiet (page state, never written).`},{name:`quiet`,description:"A block seen (`seen`, or its Seen mark in the inbox) or older than 3 days (`PlanDates.isQuiet()`): grey, folded to its title row."}],texts:[{key:`foldTip`,text:`Close this update`,description:`Tooltip of its fold button while open.`},{key:`unfoldTip`,text:`Open this update`,description:`Tooltip of its fold button while folded.`},{key:`buttonsLabel`,text:`this update`,description:`Seen's group, spoken.`},{key:`seenAt`,text:`Seen {when}`,description:`The date's tooltip, after the full date: when it was seen.`},{key:`title`,text:`Update`,description:"A block's title, in bold, before `: <summary>`."},{key:`during`,text:`Written during P{phase}`,description:`The date's tooltip, after the full date.`},{key:`label`,text:`UPDATE`,description:`The bare label.`},{key:`tip`,text:`Changed during P{phase}`,description:`The bare label's tooltip.`}],children:[{tag:`flow`,description:`What changed, and why.`},ua],flow:!0}})),JK,YK=__esmMin((()=>{JK=`@layer ui.components.epic-update.types{:host{--_epic-update-accent:var(--epic-update-accent,var(--ui-orange));--_epic-update-background:var(--epic-update-background,color-mix(in srgb, var(--_epic-update-accent) 8%, var(--epic-bg,var(--ui-background))));vertical-align:middle;line-height:1;display:inline-block}:host(:state(block)){line-height:inherit;margin:8px 0;display:block}:host([hidden]){display:none}}@layer ui.components.epic-update.content{.block{border:1px solid color-mix(in srgb, var(--_epic-update-accent) 45%, transparent);background:var(--_epic-update-background);border-radius:8px;padding:6px 10px;display:block}.head{align-items:flex-start;display:flex}.words{flex:auto;min-width:0}.when{float:right;align-items:center;gap:6px;margin-inline-start:12px;display:flex}.slotted-actions{align-items:center;gap:4px;display:inline-flex}.slotted-actions[hidden]{display:none}.time{color:var(--epic-muted,var(--ui-text-muted));font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.75rem}.body{margin-top:4px;display:block}.body[hidden=until-found]{content-visibility:hidden;margin-top:0;display:block}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0}:host(:state(quiet)) .block{border-color:color-mix(in srgb, var(--epic-muted,var(--ui-text-muted)) 30%, transparent);background:color-mix(in srgb, var(--epic-muted,var(--ui-text-muted)) 6%, var(--epic-bg,var(--ui-background)));color:var(--epic-muted,var(--ui-text-muted))}.label{box-sizing:border-box;background:var(--_epic-update-accent);height:18px;color:var(--ui-orange-on);font:700 10px/1 var(--epic-sans,var(--ui-font-family));letter-spacing:.06em;border-radius:4px;align-items:center;padding:0 6px;display:inline-flex}}`})),XK,ZK,QK,$K,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq=__esmMin((()=>{g(),sr(),Da(),Uu(),qK(),YK(),Za(),P(),XK=(0,e.template)(`<epic-review shows=buttons buttons=update>`,1),ZK=(0,e.template)(`<time>`),QK=(0,e.template)(`<span><!><!><!>`),$K=(0,e.template)(`<div><div><div><span><b></b></span></div></div><div><slot>`),tq=(0,e.template)(`<span><span></span><slot>`),dq=class _EpicUpdate extends (lq=r.E.UIComponent,cq=[r.E.proto],sq=[r.E.protoMerged],oq=[r.E.whileConnected],aq=[r.E.cssState(`open`)],iq=[r.E.cssState(`quiet`)],rq=[r.E.cssState(`block`)],nq=[r.E.watches({childList:!0,characterData:!0,subtree:!0})],lq){constructor(){super(...arguments),__runInitializers(uq,5,this),__publicField(this,`slots`,new r.E.SlotContent(this.domElement)),__publicField(this,`review`,new Hu(()=>this.id)),__publicField(this,`fold`,new F(()=>!this.isQuiet))}followReviews(){return this.review.connect()}get isOpen(){return this.isBlock&&this.fold.isOpen()}get isSeen(){return!!this.seen||this.review.mark()?.action===`seen`}get isQuiet(){return this.isBlock&&(this.isSeen||M.isQuiet(this.at,new Date))}get showsSeen(){return!this.isQuiet&&!!this.id&&this.review.reviewing()}get isBlock(){return!!(this.summary||this.at)||this.hasBody}get hasBody(){return!e.isServer&&_EpicUpdate.hasContent(this.domElement)}get hasActions(){return this.slots.hasContent(this.slotForName(`actions`))}get date(){return M.format(this.at)}get dateTip(){if(!this.at)return;let e=this.phase===void 0?``:` \xB7 ${this.translationForKey(`during`,{phase:this.phase})}`,t=this.seen?` \xB7 ${this.translationForKey(`seenAt`,{when:M.format(this.seen)})}`:``;return`${this.at}${e}${t}`}render(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.isBlock},get fallback(){return t.renderLabel()},get children(){return t.renderBlock()}})}renderBlock(){let t=this;var r=$K(),i=r.firstChild,a=i.firstChild,o=a.firstChild,s=o.firstChild,c=i.nextSibling,l=c.firstChild,u=t.fold.heading;typeof u==`function`||Array.isArray(u)?(0,e.ref)(()=>u,i):t.fold.heading=i,(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.hasBody},get children(){return t.fold.button({controls:Sq,labelledBy:xq,part:t.partForName(`toggle`),tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)}})}}),a),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.date||t.hasActions||t.showsSeen},get children(){var r=QK(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling;return(0,e.insert)(r,()=>F.actions({part:t.partForName(`actions`),hidden:__name(()=>!t.hasActions,`hidden`)}),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.showsSeen},get children(){var n=XK();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:t.id,t:t.partForName(`seen`),a:t.translationForKey(`buttonsLabel`)}),({e:t,t:r,a:i},a)=>{t!==a?.e&&(0,e.setAttribute)(n,`of`,t),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`label`,i)}),n}}),a),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.date},get children(){var n=ZK();return(0,e.insert)(n,()=>t.date),(0,e.effect)(()=>({e:(0,e.readShallow)(vq),t:t.partForName(`time`),a:t.at,o:t.dateTip}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`datetime`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n}}),o),(0,e.effect)(()=>(0,e.readShallow)(gq),(t,n)=>{(0,e.className)(r,t,n)}),r}}),o),(0,e.setAttribute)(o,`id`,xq),(0,e.insert)(s,()=>t.translationForKey(`title`)),(0,e.insert)(o,(0,e.createComponent)(n.Show,{get when(){return t.summary},children:e=>`: ${e()}`}),null),(0,e.setAttribute)(c,`id`,Sq);var d=t.fold.watch;return typeof d==`function`||Array.isArray(d)?(0,e.ref)(()=>d,c):t.fold.watch=c,l._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,pq]),t:t.partForName(`base`),a:(0,e.readShallow)([mq,{[xa]:t.hasBody}]),o:t.partForName(`header`),i:(0,e.readShallow)(hq),n:(0,e.readShallow)(_q),s:t.partForName(`title`),h:(0,e.readShallow)(yq),r:t.partForName(`body`),d:!t.hasBody||t.fold.hidden()}),({e:t,t:n,a:s,o:l,i:u,n:d,s:f,h:p,r:m,d:h},g)=>{(0,e.className)(r,t,g?.e),n!==g?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,s,g?.a),l!==g?.o&&(0,e.setAttribute)(i,`part`,l),(0,e.className)(a,u,g?.i),(0,e.className)(o,d,g?.n),f!==g?.s&&(0,e.setAttribute)(o,`part`,f),(0,e.className)(c,p,g?.h),m!==g?.r&&(0,e.setAttribute)(c,`part`,m),h!==g?.d&&(0,e.setAttribute)(c,`hidden`,h)}),r}renderLabel(){let t=this;var n=tq(),r=n.firstChild,i=r.nextSibling;return(0,e.insert)(r,()=>t.translationForKey(`label`)),i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(bq),o:t.partForName(`label`),i:t.phase===void 0?void 0:t.translationForKey(`tip`,{phase:t.phase})}),({e:t,t:i,a,o,i:s},c)=>{(0,e.className)(n,t,c?.e),i!==c?.t&&(0,e.setAttribute)(n,`part`,i),(0,e.className)(r,a,c?.a),o!==c?.o&&(0,e.setAttribute)(r,`part`,o),s!==c?.i&&(0,e.setAttribute)(r,`title`,s)}),n}static hasContent(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.ELEMENT_NODE?!e.hasAttribute(`slot`):!!e.textContent?.trim())}},uq=__decoratorStart(lq),__decorateElement(uq,1,`followReviews`,oq,dq),__decorateElement(uq,2,`isOpen`,aq,dq),__decorateElement(uq,2,`isQuiet`,iq,dq),__decorateElement(uq,2,`isBlock`,rq,dq),__decorateElement(uq,2,`hasBody`,nq,dq),__decorateElement(uq,13,`vocabulary`,cq,dq),__decorateElement(uq,13,`elementSetup`,sq,dq),__decoratorMetadata(uq,dq),__name(dq,`EpicUpdate`),__publicField(dq,`vocabulary`,__runInitializers(uq,8,dq,KK)),__runInitializers(uq,11,dq),__publicField(dq,`elementSetup`,__runInitializers(uq,12,dq,{styleSheets:{"epic-tooltip":N,"epic-fold-button":Xa,"epic-update":JK},delegatesFocus:!1})),__runInitializers(uq,15,dq),fq=dq,pq=`block`,mq=`head`,hq=`words`,gq=`when`,_q=`title`,vq=`time`,yq=`body`,bq=`label`,xq=`title`,Sq=`body`})),wq=__exportAll({EpicUpdate:()=>fq}),Tq=__esmMin((()=>{kf(),Cq(),fq.define()})),{SpellUI:Eq}=globalThis;Eq.registerPack({name:`epics`,prefix:`epic-`,catalog:d,families:{"epic-actions":`ef64e747ea8672b0`,"epic-agents":`4ffd4c4044893929`,"epic-answer":`c054a2592dd45d9c`,"epic-aside":`156ff751a73b5457`,"epic-ask":`529c7870bac46880`,"epic-away-line":`cfa6b823a1ad335f`,"epic-cards":`124995ea104e52b1`,"epic-change":`1d7445274c7f36e8`,"epic-choice-rows":`4a8c606ad3bc1b82`,"epic-choices":`bfc1ae2cdfb301a4`,"epic-choices-bar":`be403caca00a9d61`,"epic-code":`3281a9716863157f`,"epic-comment-pane":`3193c792ae7fb89f`,"epic-commit":`8e2a903aad4693aa`,"epic-event":`6a17caf5ef5539ee`,"epic-focus":`e5b28a3ea962ea78`,"epic-item":`b1f7cf6de0f9cd75`,"epic-link":`1f840d15565a2454`,"epic-list":`ecc05b9e22c6a941`,"epic-mark":`ca998df684180216`,"epic-net-effect":`f5ef44203c51991d`,"epic-new-item":`fc35809a2052d019`,"epic-note":`bd770b93c2fb577f`,"epic-option-form":`9e853b176df80597`,"epic-original":`4664fe7092fbcbb9`,"epic-overview":`8485ad7194ff71f2`,"epic-page":`9411eadf91cf74f4`,"epic-page-note-head":`fc7ada2db299401b`,"epic-phase":`9408533a1dc3d9f0`,"epic-prompt":`306c24a6a03ab0a9`,"epic-question":`2c5edad5f813b7d8`,"epic-review":`daec103517caa1ce`,"epic-run":`182c07fc553b119e`,"epic-run-row":`18bd6292c0d1f894`,"epic-section":`971db483216c54f8`,"epic-send":`392137c9bfd6ab75`,"epic-send-buttons":`33166dd017177ab7`,"epic-state-filter":`684e4e4dcd8858fd`,"epic-status":`04800116c353eb5a`,"epic-summary":`a4dd22a5b99a5e4f`,"epic-text-box":`9cf523f20790a744`,"epic-thread":`78a603414c4d21b4`,"epic-update":`72d34a933e83210e`},define:()=>Promise.all([Promise.resolve().then(()=>(ie(),re)),Promise.resolve().then(()=>(sa(),oa)),Promise.resolve().then(()=>(ws(),Cs)),Promise.resolve().then(()=>(rc(),nc)),Promise.resolve().then(()=>(tl(),el)),Promise.resolve().then(()=>(Xf(),Yf)),Promise.resolve().then(()=>(yh(),vh)),Promise.resolve().then(()=>(vg(),_g)),Promise.resolve().then(()=>(Y_(),J_)),Promise.resolve().then(()=>(US(),HS)),Promise.resolve().then(()=>(TC(),wC)),Promise.resolve().then(()=>(VC(),BC)),Promise.resolve().then(()=>(vw(),_w)),Promise.resolve().then(()=>(dT(),uT)),Promise.resolve().then(()=>(AT(),kT)),Promise.resolve().then(()=>(KD(),GD)),Promise.resolve().then(()=>(nk(),tk)),Promise.resolve().then(()=>(Sk(),xk)),Promise.resolve().then(()=>(Gm(),Wm)),Promise.resolve().then(()=>(wM(),CM)),Promise.resolve().then(()=>(UM(),HM)),Promise.resolve().then(()=>(jN(),AN)),Promise.resolve().then(()=>(iP(),rP)),Promise.resolve().then(()=>(Av(),kv)),Promise.resolve().then(()=>(zP(),RP)),Promise.resolve().then(()=>(YF(),JF)),Promise.resolve().then(()=>(TI(),wI)),Promise.resolve().then(()=>(KI(),GI)),Promise.resolve().then(()=>($R(),QR)),Promise.resolve().then(()=>(gz(),hz)),Promise.resolve().then(()=>(jz(),Az)),Promise.resolve().then(()=>(kf(),Of)),Promise.resolve().then(()=>(XV(),YV)),Promise.resolve().then(()=>(CB(),SB)),Promise.resolve().then(()=>(wU(),CU)),Promise.resolve().then(()=>(nW(),tW)),Promise.resolve().then(()=>(CI(),SI)),Promise.resolve().then(()=>(uE(),lE)),Promise.resolve().then(()=>(JW(),qW)),Promise.resolve().then(()=>(lG(),cG)),Promise.resolve().then(()=>(qr(),Kr)),Promise.resolve().then(()=>(GK(),WK)),Promise.resolve().then(()=>(Tq(),wq))]).then(()=>void 0)})})(globalThis.SpellUI.packModules[`@solidjs/web`],globalThis.SpellUI.packModules[`spell/ui/core`],globalThis.SpellUI.packModules[`solid-js`],globalThis.SpellUI.packModules[`spell/element`],globalThis.SpellUI.packModules[`spell/ui/components/ui-zoom/ImageZoom`]);
51
+ (${this.translationForKey(this.open?`foldTip`:`unfoldTip`)})`}get messages(){let e=this.comment;if(!e)return[];let t=I.viewer(),n={by:`person`,at:e.at,text:e.text,person:e.by,mine:!e.by||I.sameName(e.by,t)},r=(e.replies??[]).map(e=>{let{person:n,agent:r,mine:i}=I.speakerOf(e,t);return r?{by:`agent`,at:e.at,html:e.html||void 0,person:n,agent:r,mine:i}:{by:`person`,at:e.at,text:e.text??``,person:n,mine:i}});this.boxed===`pending`&&I.pendingReplyOf(e,t)&&r.pop();let i=this.boxed===`first`?r:[n,...r],{taken:a,done:o}=e;if(a){let t=I.takenInto(a),n={by:`agent`,agent:e.claim?.agent,at:a.at,taken:{href:planLink(a.epic,t.hash),label:t.label}},r=i.findIndex(e=>e.at>a.at);i.splice(r<0?i.length:r,0,n)}if(e.status===`answered`&&!e.replies?.some(e=>I.isAgents(e))&&i.push({by:`agent`,at:``}),o){let t=e.replies?.findLast(e=>e.commit)?.commit;i.push({by:`done`,at:o.at,how:o.how,commit:t})}if(e.working&&!o){let{by:n,agent:r}=e.claim??{};i.push({by:`thinking`,at:e.working,person:n,agent:r,mine:I.sameName(n,t)})}let s=i.findLastIndex(e=>e.by===`agent`&&e.at),c=``;return i.map((e,t)=>{let n=e.at?I.localStamp(e.at):``,r=n?n.slice(0,10)===c?n.slice(11):I.shortStamp(n):``;return n&&(c=n.slice(0,10)),{...e,stamp:r,older:t<i.length-1,latest:t===s&&!!this.unseen}})}render(){let t=this;var r=UG(),i=r.firstChild,a=i.nextSibling;return(0,e.insert)(r,()=>t.head(),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.open},get children(){var r=HG(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.moved},get children(){var n=zG();return(0,e.insert)(n,()=>t.translationForKey(`moved`,{excerpt:t.comment?.excerpt??``})),(0,e.effect)(()=>(0,e.readShallow)(wG),(t,r)=>{(0,e.className)(n,t,r)}),n}}),i),(0,e.insert)(r,(0,e.createComponent)(n.For,{get each(){return t.messages},children:e=>t.message(e)}),a),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.slots.hasContent(``)},get children(){var r=VG(),i=r.firstChild;return i._$owner=(0,e.getOwner)(),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.saved},get children(){var n=BG(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(kG),t:t.saved,a:t.failed?``:void 0}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`title`,r),i!==a?.a&&(0,e.setAttribute)(n,`data-failed`,i)}),n}}),null),(0,e.effect)(()=>({e:(0,e.readShallow)(OG),t:t.partForName(`reply`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}}),o),(0,e.effect)(()=>({e:(0,e.readShallow)(CG),t:t.partForName(`body`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}}),a),(0,e.effect)(()=>({e:(0,e.readShallow)(hG),t:t.partForName(`base`)}),({e:t,t:n},i)=>{(0,e.className)(r,t,i?.e),n!==i?.t&&(0,e.setAttribute)(r,`part`,n)}),r}head(){let t=__name(()=>this.comment,`comment`),r=__name(()=>this.turn===`done`,`done`),i=this;var a=qG(),o=a.firstChild,s=o.firstChild,c=s.firstChild,l=s.nextSibling,u=l.firstChild,d=l.nextSibling,f=d.nextSibling,p=o.nextSibling,m=p.nextSibling,h=m.nextSibling,g=i.onHeadDrawn;return typeof g==`function`||Array.isArray(g)?(0,e.ref)(()=>g,a):i.onHeadDrawn=a,(0,e.ref)(()=>e=>i.fold=e,o),c._$owner=(0,e.getOwner)(),u._$owner=(0,e.getOwner)(),(0,e.insert)(d,()=>I.label(t()?.id??``)),(0,e.insert)(f,(()=>{var n=(0,e.memo)(()=>!!t());return()=>n()?I.headline(t()):``})()),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.turn===`person`||r()},get children(){var n=WG();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:i.partForName(`answer`),t:t()?.id??``,a:I.label(t()?.id??``),o:r()?`closed`:`thread`}),({e:t,t:r,a:i,o:a},o)=>{t!==o?.e&&(0,e.setAttribute)(n,`part`,t),r!==o?.t&&(0,e.setAttribute)(n,`of`,r),i!==o?.a&&(0,e.setAttribute)(n,`label`,i),a!==o?.o&&(0,e.setAttribute)(n,`buttons`,a)}),n}}),p),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.hasPen},get children(){var t=GG();return t._$$click=e=>i.say(e,pG),t._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([SG,`edit`]),t:i.translationForKey(`editTitle`),a:i.translationForKey(`editLabel`)}),({e:n,t:r,a:i},a)=>{(0,e.className)(t,n,a?.e),r!==a?.t&&(0,e.setAttribute)(t,`title`,r),i!==a?.a&&(0,e.setAttribute)(t,`aria-label`,i)}),t}}),m),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return i.hasTrash},get children(){var n=KG();return n._$$click=e=>i.say(e,mG),n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([SG,`delete`]),t:i.translationForKey(`deleteTitle`),a:i.translationForKey(t()?.status===`new`?`deleteNew`:`deleteHad`)}),({e:t,t:r,a:i},a)=>{(0,e.className)(n,t,a?.e),r!==a?.t&&(0,e.setAttribute)(n,`title`,r),i!==a?.a&&(0,e.setAttribute)(n,`aria-label`,i)}),n}}),h),(0,e.effect)(()=>({e:(0,e.readShallow)(gG),t:i.partForName(`header`),a:(0,e.readShallow)(_G),o:i.partForName(`fold`),i:i.open?`true`:`false`,n:i.foldTip,s:(0,e.readShallow)(vG),h:(0,e.readShallow)([yG,{[bG]:r()}]),r:r()?`circle check`:`bullhorn`,d:(0,e.readShallow)(`id`),l:i.partForName(`id`),u:(0,e.readShallow)(xG),c:i.partForName(`headline`)}),({e:t,t:n,a:r,o:i,i:c,n:p,s:m,h,r:g,d:_,l:v,u:y,c:b},x)=>{(0,e.className)(a,t,x?.e),n!==x?.t&&(0,e.setAttribute)(a,`part`,n),(0,e.className)(o,r,x?.a),i!==x?.o&&(0,e.setAttribute)(o,`part`,i),c!==x?.i&&(0,e.setAttribute)(o,`aria-expanded`,c),p!==x?.n&&(0,e.setAttribute)(o,`title`,p),(0,e.className)(s,m,x?.s),(0,e.className)(l,h,x?.h),g!==x?.r&&(0,e.setAttribute)(u,`name`,g),(0,e.className)(d,_,x?.d),v!==x?.l&&(0,e.setAttribute)(d,`part`,v),(0,e.className)(f,y,x?.u),b!==x?.c&&(0,e.setAttribute)(f,`part`,b)}),a}message(t){let n=this;var r=JG();return r._$owner=(0,e.getOwner)(),(0,e.insert)(r,()=>n.words(t)),(0,e.effect)(()=>({e:t.by,t:t.person||void 0,a:t.agent||void 0,o:voiceOf(t),i:t.mine?``:void 0,n:t.at||void 0,s:t.stamp||void 0,h:t.older?``:void 0,r:t.latest?``:void 0}),({e:t,t:n,a:i,o:a,i:o,n:s,s:c,h:l,r:u},d)=>{t!==d?.e&&(0,e.setAttribute)(r,`by`,t),n!==d?.t&&(0,e.setAttribute)(r,`person`,n),i!==d?.a&&(0,e.setAttribute)(r,`agent`,i),a!==d?.o&&(0,e.setStyleProperty)(r,`--_epic-voice`,a),o!==d?.i&&(0,e.setAttribute)(r,`mine`,o),s!==d?.n&&(0,e.setAttribute)(r,`at`,s),c!==d?.s&&(0,e.setAttribute)(r,`stamp`,c),l!==d?.h&&(0,e.setAttribute)(r,`older`,l),u!==d?.r&&(0,e.setAttribute)(r,`latest`,u)}),r}words(t){if(t.by===`person`)return paragraphsOf(t.text??``);let r=this;if(t.by===`done`)return(()=>{var i=YG(),a=i.firstChild,o=a.firstChild,s=a.nextSibling,c=s.nextSibling;return o._$owner=(0,e.getOwner)(),(0,e.insert)(i,()=>r.translationForKey(t.how===`skip`?`skip`:`good`),s),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.commit},children:t=>[` `,(0,e.memo)(()=>r.translationForKey(`builtIn`)),` `,(()=>{var n=XG();return(0,e.insert)(n,t),n})(),`.`]}),c),(0,e.effect)(()=>(0,e.readShallow)(EG),(t,n)=>{(0,e.className)(a,t,n)}),i})();let i=this;if(t.by===`thinking`)return(()=>{var t=ZG(),n=t.firstChild,r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.insert)(t,()=>i.translationForKey(`thinking`),null),(0,e.effect)(()=>(0,e.readShallow)(DG),(t,r)=>{(0,e.className)(n,t,r)}),t})();let a=this;if(t.taken)return(()=>{var n=QG(),r=n.firstChild,i=r.nextSibling,o=i.nextSibling,s=(0,e.getOwner)();return(0,e.insert)(n,()=>a.translationForKey(`takenInto`),r),(0,e.insert)(i,()=>t.taken.label),(0,e.insert)(n,()=>a.translationForKey(`takenWhy`),o),(0,e.effect)(()=>t.taken.href,t=>{(0,e.setAttribute)(i,`href`,t),(0,e.claimElement)(i,s)}),n})();if(t.html)return(()=>{var n=$G();return(0,e.effect)(()=>({e:(0,e.readShallow)(TG),t:t.html}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(n.innerHTML=r)}),n})();let o=this;var s=zG();return(0,e.insert)(s,()=>o.translationForKey(`answeredInDoc`)),s}say(e,t){e.stopPropagation(),this.send(t,{})}},cK=__decoratorStart(sK),__decorateElement(cK,2,`messages`,iK,lK),__decorateElement(cK,1,`say`,tK,lK),__decorateElement(cK,13,`vocabulary`,oK,lK),__decorateElement(cK,13,`elementSetup`,aK,lK),__decorateElement(cK,5,`onHeadDrawn`,rK,lK),__decorateElement(cK,5,`onHeadClick`,nK,lK),__decoratorMetadata(cK,lK),__name(lK,`EpicThread`),__publicField(lK,`vocabulary`,__runInitializers(cK,8,lK,FG)),__runInitializers(cK,11,lK),__publicField(lK,`elementSetup`,__runInitializers(cK,12,lK,{styleSheets:{"epic-tooltip":N,"epic-thread":LG},DOMElement:DOMThreadElement,delegatesFocus:!1})),__runInitializers(cK,15,lK),uK=lK,__name(voiceOf,`voiceOf`),dK=`claude`,fK=`ui-button, epic-review`,__name(paragraphsOf,`paragraphsOf`),pK=/^`[^`]+`$/,__name(planLink,`planLink`),mK=/^\/worktrees\/[^/]+\//,(0,e.delegateEvents)([`click`])})),gK,_K=__esmMin((()=>{PG(),gK={tag:`epic-thread-message`,topics:[`messages`,`text`],aka:[`thread message`,`comment message`,`reply`,`answer`],noun:`message`,ui:!1,description:`One message of a comment's thread (\`<epic-thread>\`, which draws it in its shadow root, never written in a doc): a person's words plain on the thread's ivory, an agent's in a light box of the agent's colour, the green Done line, or an agent's "thinking…" stub in the page's blue (at work on it); a bold "You:" / "Ana:" / "Claude:" / "Codex (Ana):" starts its first line, its time in its top right corner. Every message but the last a step smaller and quieter.`,attributes:[{name:`by`,kind:`enum`,values:AG,required:!0,description:"Who said it, which its colour says: `person`, `agent` (`claude` before epic `epic-friend` P10), `done` (the Done line, a check where a name would be), `thinking` (an agent at work on it)."},{name:`person`,kind:`string`,description:"Whose words (`by=person`), or whose session's agent (`by=agent`): a person's name (epic `epic-friend` P2). None: the reader's own words, or an old reply of Claude's."},{name:`agent`,kind:`string`,description:"Which agent (`by=agent`, `by=thinking`; epic `epic-friend` P10): its id, `codex`, drawn by its name, `Codex:`. None: Claude."},{name:`mine`,kind:`boolean`,description:"`person` is whoever is reading: `You:`, or plain `Codex:` for their own session's."},{name:`at`,kind:`string`,description:`When, ISO: its tooltip says the full local date and time.`},{name:`stamp`,kind:`string`,description:"Its time as shown in its corner: `10/10 09:12` on the first and when the day changed, else `09:12`."},{name:`older`,kind:`boolean`,description:`Not the last: a step smaller and quieter (the thinking stub or the Done line count as the last).`},{name:`latest`,kind:`boolean`,description:"An agent's latest reply on a thread that's orange (`<epic-thread unseen>`): a stronger orange."}],events:[],slots:[{name:``,description:`What was said.`}],parts:[{name:`base`,description:`The message: its time, then who and what was said.`},{name:`words`,description:`Who, in bold, then what was said.`},{name:`time`,description:`Its time, over its top right corner; the full date and time its tooltip.`}],states:[],texts:[{key:`you`,text:`You:`,description:`Who, before the reader's own words.`},{key:`person`,text:`{person}:`,description:`Who, before another person's words.`},{key:`agent`,text:`{agent}:`,description:"Who, before an agent's words and its thinking stub, by its name (`Claude:`, `Codex:`): the reader's own session's, or an old reply."},{key:`agentOf`,text:`{agent} ({person}):`,description:"Who, before the words of another person's session's agent: `Codex (Ana):`."}],children:[]}})),vK,yK=__esmMin((()=>{vK=`@layer ui.components.epic-thread-message{:host{--_epic-message-agent:var(--_epic-voice,var(--epic-voice-agent,light-dark(#c96442,#d97757)));--_epic-message-blue:var(--ui-blue-text,var(--ui-blue,#1a67e0));--_epic-message-green:var(--ui-green-text,var(--ui-green,#21ba45));--_epic-message-orange:var(--ui-orange,#f2711c);--_epic-message-ink:var(--spell-ink,var(--ui-text-color,CanvasText));--_epic-message-ivory:var(--spell-rail-bg,var(--ui-brown-background,light-dark(#f7efe2,#2c2152)));--_epic-message-paper:var(--spell-bg,var(--ui-background,Canvas));border:1px solid #0000;border-radius:6px;padding:2px 6px;font-size:.9em;line-height:1.35;display:block;position:relative}:host([older]){font-size:.8em}:host([older]) .words{color:color-mix(in srgb, var(--_epic-message-ink) 72%, var(--_epic-message-ivory))}:host([by=agent]){background:color-mix(in srgb, var(--_epic-message-agent) 9%, var(--_epic-message-paper));box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-agent) 16%, transparent)}:host([by=thinking]){background:color-mix(in srgb, var(--_epic-message-blue) 9%, var(--_epic-message-paper));box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-blue) 22%, transparent)}:host([by=thinking]) .words{color:var(--_epic-message-blue);font-style:italic}:host([by=thinking]) .who{color:var(--_epic-message-ink);font-style:normal}:host([by=done]){box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-green) 25%, transparent);color:var(--_epic-message-green)}:host([latest]){background:light-dark(color-mix(in srgb, var(--_epic-message-orange) 30%, var(--_epic-message-ivory)),color-mix(in srgb, var(--_epic-message-orange) 40%, var(--_epic-message-ivory)));box-shadow:0 0 0 1px color-mix(in srgb, var(--_epic-message-orange) 45%, transparent)}:is(.when,.room){font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;line-height:22.4px}.when{color:var(--spell-muted,var(--ui-text-muted,GrayText));position:absolute;top:2px;right:6px}.room{float:right;visibility:hidden;margin-left:10px}.who{float:left;color:var(--_epic-voice,currentColor);font-weight:700}.who:after{content:" ";white-space:pre;font-weight:400}}`})),bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK=__esmMin((()=>{g(),No(),_K(),PG(),yK(),bK=(0,e.template)(`<div><div><slot>`),xK=(0,e.template)(`<span aria-hidden=true>`),SK=(0,e.template)(`<time>`),CK=(0,e.template)(`<b>`),OK=class _EpicThreadMessage extends (EK=r.E.UIComponent,TK=[r.E.proto],wK=[r.E.protoMerged],EK){get who(){let e=this.person?.trim();if(this.by===`person`)return this.mine||!e?this.translationForKey(`you`):this.translationForKey(`person`,{person:e});if(this.by===`agent`||this.by===`thinking`){let t=I.agentLabel(this.agent);return e&&!this.mine?this.translationForKey(`agentOf`,{agent:t,person:e}):this.translationForKey(`agent`,{agent:t})}}render(){let t=this;var r=bK(),i=r.firstChild,a=i.firstChild;return(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.stamp},children:n=>[(()=>{var t=xK();return(0,e.insert)(t,n),(0,e.effect)(()=>(0,e.readShallow)(jG),(n,r)=>{(0,e.className)(t,n,r)}),t})(),(()=>{var r=SK();return(0,e.insert)(r,n),(0,e.effect)(()=>({e:(0,e.readShallow)(MG),t:t.partForName(`time`),a:t.at,o:t.localTime}),({e:t,t:n,a:i,o:a},o)=>{(0,e.className)(r,t,o?.e),n!==o?.t&&(0,e.setAttribute)(r,`part`,n),i!==o?.a&&(0,e.setAttribute)(r,`datetime`,i),a!==o?.o&&(0,e.setAttribute)(r,`title`,a)}),r})()]}),i),(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.who},children:t=>(()=>{var n=CK();return(0,e.insert)(n,t),(0,e.effect)(()=>(0,e.readShallow)(`who`),(t,r)=>{(0,e.className)(n,t,r)}),n})()}),a),a._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(hG),t:t.partForName(`base`),a:(0,e.readShallow)(NG),o:t.partForName(`words`)}),({e:t,t:n,a,o},s)=>{(0,e.className)(r,t,s?.e),n!==s?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,a,s?.a),o!==s?.o&&(0,e.setAttribute)(i,`part`,o)}),r}get localTime(){return I.localStamp(this.at)}},DK=__decoratorStart(EK),__decorateElement(DK,13,`vocabulary`,TK,OK),__decorateElement(DK,13,`elementSetup`,wK,OK),__decoratorMetadata(DK,OK),__name(OK,`EpicThreadMessage`),__publicField(OK,`vocabulary`,__runInitializers(DK,8,OK,gK)),__runInitializers(DK,11,OK),__publicField(OK,`elementSetup`,__runInitializers(DK,12,OK,{styleSheets:{"epic-thread-message":vK},delegatesFocus:!1})),__runInitializers(DK,15,OK),kK=OK})),jK,MK=__esmMin((()=>{jK={tag:`epic-threads`,topics:[`messages`,`lists`],aka:[`comments`,`comment threads`,`threads`],noun:`threads`,ui:!1,description:"The comment threads under one block of a page (`<epic-thread>`s), in order, a little apart: drawn by the docs runtime's comments right after the paragraph, list item or cell holding their quotes, else after their block (a docs section's first in its body). Its edges are the block's it's under (an epic page item's note box's; a guide paragraph's measure): the page's sheet sets them.",attributes:[],events:[],slots:[{name:``,description:"The threads (`<epic-thread>`)."}],parts:[{name:`base`,description:`The column of its threads, 6px apart.`}],states:[],texts:[],children:[{tag:`epic-thread`,description:`One comment's thread.`}]}})),NK,PK=__esmMin((()=>{NK=`@layer ui.components.epic-threads{:host{margin:8px 0 12px;display:block}.base{gap:6px;display:grid}}`})),FK,IK,LK,RK,zK,BK,VK,HK,UK=__esmMin((()=>{g(),MK(),PK(),FK=(0,e.template)(`<div><slot>`),BK=class _EpicThreads extends (RK=r.E.UIComponent,LK=[r.E.proto],IK=[r.E.protoMerged],RK){render(){let t=this;var n=FK(),r=n.firstChild;return r._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(HK),t:t.partForName(`base`)}),({e:t,t:r},i)=>{(0,e.className)(n,t,i?.e),r!==i?.t&&(0,e.setAttribute)(n,`part`,r)}),n}},zK=__decoratorStart(RK),__decorateElement(zK,13,`vocabulary`,LK,BK),__decorateElement(zK,13,`elementSetup`,IK,BK),__decoratorMetadata(zK,BK),__name(BK,`EpicThreads`),__publicField(BK,`vocabulary`,__runInitializers(zK,8,BK,jK)),__runInitializers(zK,11,BK),__publicField(BK,`elementSetup`,__runInitializers(zK,12,BK,{styleSheets:{"epic-threads":NK},delegatesFocus:!1})),__runInitializers(zK,15,BK),VK=BK,HK=`base`})),WK=__exportAll({DOMThreadElement:()=>DOMThreadElement,EpicThread:()=>uK,EpicThreadMessage:()=>kK,EpicThreads:()=>VK}),GK=__esmMin((()=>{kf(),hK(),AK(),UK(),kK.define(),uK.define(),VK.define()})),KK,qK=__esmMin((()=>{fa(),KK={tag:`epic-update`,topics:[`documentation`,`notifications`,`status`],aka:[`update`,`updated`,`plan change`,`changed`,`revision`,`flag`],noun:`update`,ui:!1,description:"An UPDATE (Owen, 2026-10-11): a block titled `Update: <summary>`, its date at the right, what changed under it. A phase's plan change sits at the end of its phase's description (after Goal); an update to prose right after the block it changed. Empty, with no `summary` or `at`: the orange UPDATE label on an item changed while a phase is active.",attributes:[{name:`id`,property:`epicId`,kind:`string`,format:`anchor`,description:"A block's `up3`, given by the epic tool on its next write (epic `epic-engine` I168): the key its Seen mark goes under, and a link's target (`#up3`). None: just written, no Seen yet; a bare label never has one."},{name:`at`,kind:`string`,format:`time`,description:"When it changed: `2026-10-11 14:30`, drawn `10/11/26 14:30` at the title's right."},{name:`summary`,kind:`string`,description:"What changed, in one line: the title's words after `Update:`."},{name:`phase`,kind:`string`,format:`phase number`,description:"The phase active when it was written, by its number (`3`, `11.1`). `phase 3 done` removes P3's bare labels and the updates outside a phase; a phase's own plan changes stay."},{name:`seen`,kind:`string`,format:`time`,description:"When you marked it seen (`2026-10-29 14:30`; epic `epic-engine` I168), written by `epic inbox apply` from its Seen mark: folded to one grey line, out of its phase's pen, for everyone. None: new until `PlanDates.QUIET_DAYS` after `at`, then quiet all the same."}],events:[],slots:[{name:``,description:`What changed, and why; none for a bare label.`},la],parts:[{name:`base`,description:`The block, or the bare label.`},{name:`header`,description:"A block's title row: the fold chevron, the title, `actions`, the date."},{name:`toggle`,description:"A block's fold chevron, a `<button>`, first: a click folds what changed."},{name:`title`,description:"A block's `Update: <summary>`."},{name:`time`,description:"A block's date (`at`), at the right of its title row."},da,{name:`seen`,description:'A new block\'s ✓ Seen, before its date, while the page is reviewed: an `<epic-review buttons="update">`.'},{name:`body`,description:"What changed, under the title row; hidden (`until-found`) while folded."},{name:`label`,description:"The bare orange `UPDATE` label."}],states:[{name:`block`,description:`Drawn as a block: it has a summary, a date or what changed.`},{name:`open`,description:`A block, unfolded: it starts so while new, folded once seen or quiet (page state, never written).`},{name:`quiet`,description:"A block seen (`seen`, or its Seen mark in the inbox) or older than 3 days (`PlanDates.isQuiet()`): grey, folded to its title row."}],texts:[{key:`foldTip`,text:`Close this update`,description:`Tooltip of its fold button while open.`},{key:`unfoldTip`,text:`Open this update`,description:`Tooltip of its fold button while folded.`},{key:`buttonsLabel`,text:`this update`,description:`Seen's group, spoken.`},{key:`seenAt`,text:`Seen {when}`,description:`The date's tooltip, after the full date: when it was seen.`},{key:`title`,text:`Update`,description:"A block's title, in bold, before `: <summary>`."},{key:`during`,text:`Written during P{phase}`,description:`The date's tooltip, after the full date.`},{key:`label`,text:`UPDATE`,description:`The bare label.`},{key:`tip`,text:`Changed during P{phase}`,description:`The bare label's tooltip.`}],children:[{tag:`flow`,description:`What changed, and why.`},ua],flow:!0}})),JK,YK=__esmMin((()=>{JK=`@layer ui.components.epic-update.types{:host{--_epic-update-accent:var(--epic-update-accent,var(--ui-orange));--_epic-update-background:var(--epic-update-background,color-mix(in srgb, var(--_epic-update-accent) 8%, var(--epic-bg,var(--ui-background))));vertical-align:middle;line-height:1;display:inline-block}:host(:state(block)){line-height:inherit;margin:8px 0;display:block}:host([hidden]){display:none}}@layer ui.components.epic-update.content{.block{border:1px solid color-mix(in srgb, var(--_epic-update-accent) 45%, transparent);background:var(--_epic-update-background);border-radius:8px;padding:6px 10px;display:block}.head{align-items:flex-start;display:flex}.words{flex:auto;min-width:0}.when{float:right;align-items:center;gap:6px;margin-inline-start:12px;display:flex}.slotted-actions{align-items:center;gap:4px;display:inline-flex}.slotted-actions[hidden]{display:none}.time{color:var(--epic-muted,var(--ui-text-muted));font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.75rem}.body{margin-top:4px;display:block}.body[hidden=until-found]{content-visibility:hidden;margin-top:0;display:block}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0}:host(:state(quiet)) .block{border-color:color-mix(in srgb, var(--epic-muted,var(--ui-text-muted)) 30%, transparent);background:color-mix(in srgb, var(--epic-muted,var(--ui-text-muted)) 6%, var(--epic-bg,var(--ui-background)));color:var(--epic-muted,var(--ui-text-muted))}.label{box-sizing:border-box;background:var(--_epic-update-accent);height:18px;color:var(--ui-orange-on);font:700 10px/1 var(--epic-sans,var(--ui-font-family));letter-spacing:.06em;border-radius:4px;align-items:center;padding:0 6px;display:inline-flex}}`})),XK,ZK,QK,$K,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq=__esmMin((()=>{g(),sr(),Da(),Uu(),qK(),YK(),Za(),P(),XK=(0,e.template)(`<epic-review shows=buttons buttons=update>`,1),ZK=(0,e.template)(`<time>`),QK=(0,e.template)(`<span><!><!><!>`),$K=(0,e.template)(`<div><div><div><span><b></b></span></div></div><div><slot>`),tq=(0,e.template)(`<span><span></span><slot>`),dq=class _EpicUpdate extends (lq=r.E.UIComponent,cq=[r.E.proto],sq=[r.E.protoMerged],oq=[r.E.whileConnected],aq=[r.E.cssState(`open`)],iq=[r.E.cssState(`quiet`)],rq=[r.E.cssState(`block`)],nq=[r.E.watches({childList:!0,characterData:!0,subtree:!0})],lq){constructor(){super(...arguments),__runInitializers(uq,5,this),__publicField(this,`slots`,new r.E.SlotContent(this.domElement)),__publicField(this,`review`,new Hu(()=>this.id)),__publicField(this,`fold`,new F(()=>!this.isQuiet))}followReviews(){return this.review.connect()}get isOpen(){return this.isBlock&&this.fold.isOpen()}get isSeen(){return!!this.seen||this.review.mark()?.action===`seen`}get isQuiet(){return this.isBlock&&(this.isSeen||M.isQuiet(this.at,new Date))}get showsSeen(){return!this.isQuiet&&!!this.id&&this.review.reviewing()}get isBlock(){return!!(this.summary||this.at)||this.hasBody}get hasBody(){return!e.isServer&&_EpicUpdate.hasContent(this.domElement)}get hasActions(){return this.slots.hasContent(this.slotForName(`actions`))}get date(){return M.format(this.at)}get dateTip(){if(!this.at)return;let e=this.phase===void 0?``:` \xB7 ${this.translationForKey(`during`,{phase:this.phase})}`,t=this.seen?` \xB7 ${this.translationForKey(`seenAt`,{when:M.format(this.seen)})}`:``;return`${this.at}${e}${t}`}render(){let t=this;return(0,e.createComponent)(n.Show,{get when(){return t.isBlock},get fallback(){return t.renderLabel()},get children(){return t.renderBlock()}})}renderBlock(){let t=this;var r=$K(),i=r.firstChild,a=i.firstChild,o=a.firstChild,s=o.firstChild,c=i.nextSibling,l=c.firstChild,u=t.fold.heading;typeof u==`function`||Array.isArray(u)?(0,e.ref)(()=>u,i):t.fold.heading=i,(0,e.insert)(i,(0,e.createComponent)(n.Show,{get when(){return t.hasBody},get children(){return t.fold.button({controls:Sq,labelledBy:xq,part:t.partForName(`toggle`),tips:{fold:t.translationForKey(`foldTip`),unfold:t.translationForKey(`unfoldTip`)}})}}),a),(0,e.insert)(a,(0,e.createComponent)(n.Show,{get when(){return t.date||t.hasActions||t.showsSeen},get children(){var r=QK(),i=r.firstChild,a=i.nextSibling,o=a.nextSibling;return(0,e.insert)(r,()=>F.actions({part:t.partForName(`actions`),hidden:__name(()=>!t.hasActions,`hidden`)}),i),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.showsSeen},get children(){var n=XK();return n._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:t.id,t:t.partForName(`seen`),a:t.translationForKey(`buttonsLabel`)}),({e:t,t:r,a:i},a)=>{t!==a?.e&&(0,e.setAttribute)(n,`of`,t),r!==a?.t&&(0,e.setAttribute)(n,`part`,r),i!==a?.a&&(0,e.setAttribute)(n,`label`,i)}),n}}),a),(0,e.insert)(r,(0,e.createComponent)(n.Show,{get when(){return t.date},get children(){var n=ZK();return(0,e.insert)(n,()=>t.date),(0,e.effect)(()=>({e:(0,e.readShallow)(vq),t:t.partForName(`time`),a:t.at,o:t.dateTip}),({e:t,t:r,a:i,o:a},o)=>{(0,e.className)(n,t,o?.e),r!==o?.t&&(0,e.setAttribute)(n,`part`,r),i!==o?.a&&(0,e.setAttribute)(n,`datetime`,i),a!==o?.o&&(0,e.setAttribute)(n,`title`,a)}),n}}),o),(0,e.effect)(()=>(0,e.readShallow)(gq),(t,n)=>{(0,e.className)(r,t,n)}),r}}),o),(0,e.setAttribute)(o,`id`,xq),(0,e.insert)(s,()=>t.translationForKey(`title`)),(0,e.insert)(o,(0,e.createComponent)(n.Show,{get when(){return t.summary},children:e=>`: ${e()}`}),null),(0,e.setAttribute)(c,`id`,Sq);var d=t.fold.watch;return typeof d==`function`||Array.isArray(d)?(0,e.ref)(()=>d,c):t.fold.watch=c,l._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)([t.rootClass,pq]),t:t.partForName(`base`),a:(0,e.readShallow)([mq,{[xa]:t.hasBody}]),o:t.partForName(`header`),i:(0,e.readShallow)(hq),n:(0,e.readShallow)(_q),s:t.partForName(`title`),h:(0,e.readShallow)(yq),r:t.partForName(`body`),d:!t.hasBody||t.fold.hidden()}),({e:t,t:n,a:s,o:l,i:u,n:d,s:f,h:p,r:m,d:h},g)=>{(0,e.className)(r,t,g?.e),n!==g?.t&&(0,e.setAttribute)(r,`part`,n),(0,e.className)(i,s,g?.a),l!==g?.o&&(0,e.setAttribute)(i,`part`,l),(0,e.className)(a,u,g?.i),(0,e.className)(o,d,g?.n),f!==g?.s&&(0,e.setAttribute)(o,`part`,f),(0,e.className)(c,p,g?.h),m!==g?.r&&(0,e.setAttribute)(c,`part`,m),h!==g?.d&&(0,e.setAttribute)(c,`hidden`,h)}),r}renderLabel(){let t=this;var n=tq(),r=n.firstChild,i=r.nextSibling;return(0,e.insert)(r,()=>t.translationForKey(`label`)),i._$owner=(0,e.getOwner)(),(0,e.effect)(()=>({e:(0,e.readShallow)(t.rootClass),t:t.partForName(`base`),a:(0,e.readShallow)(bq),o:t.partForName(`label`),i:t.phase===void 0?void 0:t.translationForKey(`tip`,{phase:t.phase})}),({e:t,t:i,a,o,i:s},c)=>{(0,e.className)(n,t,c?.e),i!==c?.t&&(0,e.setAttribute)(n,`part`,i),(0,e.className)(r,a,c?.a),o!==c?.o&&(0,e.setAttribute)(r,`part`,o),s!==c?.i&&(0,e.setAttribute)(r,`title`,s)}),n}static hasContent(e){return Array.from(e.childNodes).some(e=>e.nodeType===Node.ELEMENT_NODE?!e.hasAttribute(`slot`):!!e.textContent?.trim())}},uq=__decoratorStart(lq),__decorateElement(uq,1,`followReviews`,oq,dq),__decorateElement(uq,2,`isOpen`,aq,dq),__decorateElement(uq,2,`isQuiet`,iq,dq),__decorateElement(uq,2,`isBlock`,rq,dq),__decorateElement(uq,2,`hasBody`,nq,dq),__decorateElement(uq,13,`vocabulary`,cq,dq),__decorateElement(uq,13,`elementSetup`,sq,dq),__decoratorMetadata(uq,dq),__name(dq,`EpicUpdate`),__publicField(dq,`vocabulary`,__runInitializers(uq,8,dq,KK)),__runInitializers(uq,11,dq),__publicField(dq,`elementSetup`,__runInitializers(uq,12,dq,{styleSheets:{"epic-tooltip":N,"epic-fold-button":Xa,"epic-update":JK},delegatesFocus:!1})),__runInitializers(uq,15,dq),fq=dq,pq=`block`,mq=`head`,hq=`words`,gq=`when`,_q=`title`,vq=`time`,yq=`body`,bq=`label`,xq=`title`,Sq=`body`})),wq=__exportAll({EpicUpdate:()=>fq}),Tq=__esmMin((()=>{kf(),Cq(),fq.define()})),{SpellUI:Eq}=globalThis;Eq.registerPack({name:`epics`,prefix:`epic-`,catalog:d,families:{"epic-actions":`17aa66d8b3a210e7`,"epic-agents":`3a3ba27149b92463`,"epic-answer":`8ac659d77913cfd7`,"epic-aside":`b5070a134646e8e1`,"epic-ask":`dcd18de68190958f`,"epic-away-line":`2b5823350572fc0c`,"epic-cards":`3e52412150e30a81`,"epic-change":`838fc22361d06b86`,"epic-choice-rows":`6ed09c3337d078ad`,"epic-choices":`60d0dd099a80c39f`,"epic-choices-bar":`a80e1e80d1a1b12f`,"epic-code":`135384b5f935787e`,"epic-comment-pane":`ee3a3b7361a34247`,"epic-commit":`bb98ee1fc92150e7`,"epic-event":`d23ace4b0f65f013`,"epic-focus":`df3a32ff0937c3be`,"epic-item":`6edfd1f080100b03`,"epic-link":`4411636175eab8b3`,"epic-list":`2a88c9c7a7530234`,"epic-mark":`1c68974bcf67a7a2`,"epic-net-effect":`c74464566bd1b9d7`,"epic-new-item":`d850118a7c384b0c`,"epic-note":`7d532f03f12a7cd6`,"epic-option-form":`fc8a7ae1a031185b`,"epic-original":`a3223280be213ca3`,"epic-overview":`0a7110ff60ab3b12`,"epic-page":`8e66e6573f6b6351`,"epic-page-note-head":`f63ca79ef536f75c`,"epic-phase":`b78befbf3ffc607d`,"epic-prompt":`cc5d17cc40934665`,"epic-question":`3d08f22e6228bbd1`,"epic-review":`6c7ac8f70e526440`,"epic-run":`479821dd298893c7`,"epic-run-row":`f04c3de29a033536`,"epic-section":`bbd63420149c34e7`,"epic-send":`377fd631f92885bd`,"epic-send-buttons":`fa8c4ec06235e342`,"epic-state-filter":`7fc55acc2403b294`,"epic-status":`eee7c84130c6724c`,"epic-summary":`36ed93316dbefde5`,"epic-text-box":`f400b02a60281d25`,"epic-thread":`70721c8b129a4df8`,"epic-update":`343c6042686bf109`},define:()=>Promise.all([Promise.resolve().then(()=>(ie(),re)),Promise.resolve().then(()=>(sa(),oa)),Promise.resolve().then(()=>(ws(),Cs)),Promise.resolve().then(()=>(rc(),nc)),Promise.resolve().then(()=>(tl(),el)),Promise.resolve().then(()=>(Xf(),Yf)),Promise.resolve().then(()=>(yh(),vh)),Promise.resolve().then(()=>(vg(),_g)),Promise.resolve().then(()=>(Y_(),J_)),Promise.resolve().then(()=>(US(),HS)),Promise.resolve().then(()=>(TC(),wC)),Promise.resolve().then(()=>(VC(),BC)),Promise.resolve().then(()=>(vw(),_w)),Promise.resolve().then(()=>(dT(),uT)),Promise.resolve().then(()=>(AT(),kT)),Promise.resolve().then(()=>(KD(),GD)),Promise.resolve().then(()=>(nk(),tk)),Promise.resolve().then(()=>(Sk(),xk)),Promise.resolve().then(()=>(Gm(),Wm)),Promise.resolve().then(()=>(wM(),CM)),Promise.resolve().then(()=>(UM(),HM)),Promise.resolve().then(()=>(jN(),AN)),Promise.resolve().then(()=>(iP(),rP)),Promise.resolve().then(()=>(Av(),kv)),Promise.resolve().then(()=>(zP(),RP)),Promise.resolve().then(()=>(YF(),JF)),Promise.resolve().then(()=>(TI(),wI)),Promise.resolve().then(()=>(KI(),GI)),Promise.resolve().then(()=>($R(),QR)),Promise.resolve().then(()=>(gz(),hz)),Promise.resolve().then(()=>(jz(),Az)),Promise.resolve().then(()=>(kf(),Of)),Promise.resolve().then(()=>(XV(),YV)),Promise.resolve().then(()=>(CB(),SB)),Promise.resolve().then(()=>(wU(),CU)),Promise.resolve().then(()=>(nW(),tW)),Promise.resolve().then(()=>(CI(),SI)),Promise.resolve().then(()=>(uE(),lE)),Promise.resolve().then(()=>(JW(),qW)),Promise.resolve().then(()=>(lG(),cG)),Promise.resolve().then(()=>(qr(),Kr)),Promise.resolve().then(()=>(GK(),WK)),Promise.resolve().then(()=>(Tq(),wq))]).then(()=>void 0)})})(globalThis.SpellUI.packModules[`@solidjs/web`],globalThis.SpellUI.packModules[`spell/ui/core`],globalThis.SpellUI.packModules[`solid-js`],globalThis.SpellUI.packModules[`spell/element`],globalThis.SpellUI.packModules[`spell/ui/components/ui-zoom/ImageZoom`]);