dev-process-kit 0.3.0-beta.0 → 0.3.0-beta.1
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.
- package/dist/boards.js +1 -1
- package/dist/chunks/{shared-CtoQ05tb.js → shared-BX1EnRfr.js} +1 -1
- package/dist/chunks/{shared-DbgUhOLb.js → shared-C-M2Nfmu.js} +1 -1
- package/dist/chunks/{shared-Dj_D4ypT.js → shared-Cas88qVh.js} +1 -1
- package/dist/chunks/{shared-jVZVFFNq.js → shared-Cejw83eH.js} +1 -1
- package/dist/chunks/{shared-B0QTGEwR.js → shared-CfVpKPRY.js} +1 -1
- package/dist/chunks/{shared-DXoggfKr.js → shared-CnPCm4bJ.js} +1 -1
- package/dist/chunks/{shared-xpAS9Ri4.js → shared-D1iBuYZV.js} +5 -5
- package/dist/chunks/{shared-BR7trWLo.js → shared-D7VtCoY6.js} +1 -1
- package/dist/chunks/{shared-DW3QUBTw.js → shared-DHVDag3x.js} +1 -1
- package/dist/chunks/{shared-BQqlFaPv.js → shared-DdpMqkAH.js} +3 -3
- package/dist/chunks/shared-EYOAbLSo.js +1 -0
- package/dist/chunks/{shared-C6hVLci2.js → shared-a9QCZpxj.js} +1 -1
- package/dist/chunks/{shared-DuB4veji.js → shared-df9XN7ns.js} +1 -1
- package/dist/chunks/{shared-bW1cft1H.js → shared-dnY35u9q.js} +1 -1
- package/dist/chunks/{shared-BpfuvyBP.js → shared-e9ia12Uz.js} +1 -1
- package/dist/chunks/{shared-C1rWkW_W.js → shared-qk9TB_UM.js} +1 -1
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/views/delegation-poker.js +1 -1
- package/dist/views/plain.js +1 -1
- package/dist/views/prototype.js +1 -1
- package/dist/views/slides.js +1 -1
- package/dist/views/task-board.js +1 -1
- package/dist/views/usm.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/shared-ztEUikTm.js +0 -1
|
@@ -1524,7 +1524,7 @@ The brief is too long for a comment, so it is stored in this artifact's database
|
|
|
1524
1524
|
</div>
|
|
1525
1525
|
`)}
|
|
1526
1526
|
</div>
|
|
1527
|
-
`}#u(e,n){if(n.disabled)return;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();const r=e.key==="ArrowDown"?1:-1;if(this.#t)this.#i=hg(this.#i,r,n.options.length);else{this.#t=!0;const o=Kn(n.options,n.value);this.#i=o>=0?o:pi(r>0?0:n.options.length-1,n.options.length)}this.#e.requestUpdate();return}if(e.key==="Enter"||e.key===" "){if(e.preventDefault(),!this.#t){this.#t=!0,this.#i=Kn(n.options,n.value),this.#e.requestUpdate();return}const r=n.options[pi(this.#i,n.options.length)];r&&this.#k(r.value,n);return}if(e.key==="Tab"||e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1)return;e.preventDefault(),this.#r+=e.key,clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#r=""},gg);const s=this.#t?this.#i:Kn(n.options,n.value),i=ug(n.options,this.#r,s);if(i!==null){if(this.#i=i,!this.#t){const r=n.options[i]?.value;r!==void 0&&this.#k(r,n);return}this.#e.requestUpdate()}}#g=()=>{if(this.#a?.disabled)return;if(this.#t){this.#m();return}const e=this.#a;this.#t=!0,this.#i=e?Kn(e.options,e.value):-1,this.#e.requestUpdate()};#k(e,n){this.#m(),e!==n.value&&n.onChange(e)}#m(){this.#t&&(this.#t=!1,this.#i=-1,this.#e.requestUpdate())}#w(){const e=`[data-dpk-select="${this.#s}"]`,n=this.#e.renderRoot.querySelector(`button.dpk-rich-select${e}`),s=this.#e.renderRoot.querySelector(`.dpk-rich-select-listbox${e}`);!n||!s||this.#n.open(s,n,{width:Math.max(n.offsetWidth,160),height:280},{placement:"bottom-start"})}}class mg{#e;#s=new Map;constructor(e){this.#e=e}get(e){const n=this.#s.get(e);if(n)return n;const s=new jt(this.#e);return this.#s.set(e,s),s}}const te="0.3.0-beta.
|
|
1527
|
+
`}#u(e,n){if(n.disabled)return;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault();const r=e.key==="ArrowDown"?1:-1;if(this.#t)this.#i=hg(this.#i,r,n.options.length);else{this.#t=!0;const o=Kn(n.options,n.value);this.#i=o>=0?o:pi(r>0?0:n.options.length-1,n.options.length)}this.#e.requestUpdate();return}if(e.key==="Enter"||e.key===" "){if(e.preventDefault(),!this.#t){this.#t=!0,this.#i=Kn(n.options,n.value),this.#e.requestUpdate();return}const r=n.options[pi(this.#i,n.options.length)];r&&this.#k(r.value,n);return}if(e.key==="Tab"||e.ctrlKey||e.metaKey||e.altKey||e.key.length!==1)return;e.preventDefault(),this.#r+=e.key,clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#r=""},gg);const s=this.#t?this.#i:Kn(n.options,n.value),i=ug(n.options,this.#r,s);if(i!==null){if(this.#i=i,!this.#t){const r=n.options[i]?.value;r!==void 0&&this.#k(r,n);return}this.#e.requestUpdate()}}#g=()=>{if(this.#a?.disabled)return;if(this.#t){this.#m();return}const e=this.#a;this.#t=!0,this.#i=e?Kn(e.options,e.value):-1,this.#e.requestUpdate()};#k(e,n){this.#m(),e!==n.value&&n.onChange(e)}#m(){this.#t&&(this.#t=!1,this.#i=-1,this.#e.requestUpdate())}#w(){const e=`[data-dpk-select="${this.#s}"]`,n=this.#e.renderRoot.querySelector(`button.dpk-rich-select${e}`),s=this.#e.renderRoot.querySelector(`.dpk-rich-select-listbox${e}`);!n||!s||this.#n.open(s,n,{width:Math.max(n.offsetWidth,160),height:280},{placement:"bottom-start"})}}class mg{#e;#s=new Map;constructor(e){this.#e=e}get(e){const n=this.#s.get(e);if(n)return n;const s=new jt(this.#e);return this.#s.set(e,s),s}}const te="0.3.0-beta.1",hi=t=>{const e=t.derivation();return{base:e.base,state:e.state,navigation:t.navigation(),actions:t.controller().actions,comments:e.comments,stale:e.stale,issues:t.issues(),grill:e.grill,answers:e.answers}},kg=t=>{const e=t.derivation();return{state:e.state,base:e.base,navigation:t.navigation(),actions:t.controller().actions,comments:e.comments,stale:e.stale,commentCount:n=>{const s=typeof n=="string"?n:M(n);return e.commentsByTarget.get(s)?.length??0},dispatch:n=>t.dispatch(n),dispatchBatch:n=>t.dispatchBatch(n),navigate:(n,s)=>t.navigate(n,s),hashFor:n=>t.hashFor(n),requestComment:n=>t.requestComment(n)}},Ua=(t,e)=>{const n=()=>hi(t);return{version:te,template:t.definition.name,host:e,ready:t.ready,get base(){return t.controller().base},get state(){return t.derivation().state},get navigation(){return t.navigation()},get actions(){return t.controller().actions},get comments(){return t.derivation().comments},get stale(){return t.derivation().stale},get issues(){return t.issues()},dispatch:s=>t.dispatch(s),dispatchBatch:s=>t.dispatchBatch(s),comment:(s,i)=>t.dispatch({type:H,target:s,payload:{body:i}}),editComment:(s,i)=>t.editComment(s,i),removeAction:s=>t.removeAction(s),clearActions:()=>t.clearActions(),importDraft:s=>t.controller().replaceActions(s),navigate:(s,i)=>t.navigate(s,i),hashFor:s=>t.hashFor(s),snapshot:n,exportDraft:()=>t.controller().exportDraft(te),exportBrief:()=>t.brief?.(n())??zn(n(),t.controller().definition,te),subscribe:s=>t.subscribe(s)}},bg=8e3,vg=t=>t.localName==="script"&&t.getAttribute("type")==="application/json"&&t.hasAttribute(jr);class xg{#e;#s;#n=null;#t=null;#i=null;#r=null;#o="";#a=null;#l=new Map;#p=new Set;constructor(e,n){this.#e=e,this.#s=n,e.addController(this)}get view(){return this.#n&&this.#i?wp(this.#n,this.#i):null}get log(){return this.#n}get error(){return this.#t}hostConnected(){!this.#u()&&!this.#g()&&this.#w(),document.addEventListener("pointerdown",this.#b,!0),document.addEventListener("keydown",this.#x)}hostUpdate(){!this.#u()&&this.#g()&&this.#f()}hostDisconnected(){this.#f(),document.removeEventListener("pointerdown",this.#b,!0),document.removeEventListener("keydown",this.#x);for(const e of this.#l.values())e.handle!==null&&clearTimeout(e.handle);this.#l.clear()}send(e){!this.#n||!this.#i||(this.#i=kp(this.#n,this.#i,e),this.#k(),this.#y(),this.#e.requestUpdate())}toggleList(){this.send({kind:this.#i?.list.open?"close-list":"open-list"})}show(e){const n=this.#n?tt(this.#n).flatMap(s=>s.entries).find(s=>s.key===e):void 0;n&&(this.send({kind:"jump",key:e}),this.#s.show(n))}pause(e){const n=this.#p.size>0;if(this.#p.add(e),n)return;const s=Date.now();for(const i of this.#l.values())i.handle!==null&&clearTimeout(i.handle),i.handle=null,i.remaining=Math.max(0,i.deadline-s)}resume(e){if(!(!this.#p.delete(e)||this.#p.size>0))for(const[n,s]of this.#l)this.#c(n,s)}#d(){return`${this.#s.storageKey()}:seen-changes`}#u(){return this.#n!==null||this.#t!==null}#g(){const e=[...this.#e.children].find(vg);if(!e)return!1;let n;try{n=JSON.parse(e.textContent??"")}catch(i){return this.#m(i instanceof Error?i.message:String(i))}const s=up(n);return s.ok?(this.#n=s.log,this.#r=this.#s.persist()?ye(Fr):ee(Fr),this.#i=mp(s.log,this.#r.read(this.#d())),this.#k(),this.#y(),this.#e.requestUpdate(),!0):this.#m(s.error)}#k(){if(!this.#n||!this.#i)return;const e=vp(this.#n,this.#i),n=JSON.stringify(e);n!==this.#o&&(this.#o=n,this.#r?.write(this.#d(),e))}#m(e){return console.error("[dev-process-kit] invalid change log:",e),this.#t=e,this.#e.requestUpdate(),!0}#w(){this.#a=new MutationObserver(()=>{(this.#u()||this.#g())&&this.#f()}),this.#a.observe(this.#e,{childList:!0})}#f(){this.#a?.disconnect(),this.#a=null}#y(){const e=new Set(this.view?.toasts.map(n=>n.key)??[]);for(const[n,s]of this.#l)e.has(n)||(s.handle!==null&&clearTimeout(s.handle),this.#l.delete(n));for(const n of e){if(this.#l.has(n))continue;const s={handle:null,deadline:0,remaining:bg};this.#l.set(n,s),this.#p.size===0&&this.#c(n,s)}}#c(e,n){n.deadline=Date.now()+n.remaining,n.handle=setTimeout(()=>{n.handle=null,this.send({kind:"close-toast",key:e})},n.remaining)}#b=e=>{!this.#i?.list.open||this.#s.inside(e.composedPath())||this.send({kind:"close-list"})};#x=e=>{e.key!=="Escape"||!this.#i?.list.open||this.send({kind:"close-list"})}}const{I:yg}=Ac,Ha=t=>t,wg=t=>t.strings===void 0,ja=()=>document.createComment(""),Bt=(t,e,n)=>{const s=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(n===void 0){const r=s.insertBefore(ja(),i),o=s.insertBefore(ja(),i);n=new yg(r,o,t,t.options)}else{const r=n._$AB.nextSibling,o=n._$AM,a=o!==t;if(a){let l;n._$AQ?.(t),n._$AM=t,n._$AP!==void 0&&(l=t._$AU)!==o._$AU&&n._$AP(l)}if(r!==i||a){let l=n._$AA;for(;l!==r;){const c=Ha(l).nextSibling;Ha(s).insertBefore(l,i),l=c}}}return n},Be=(t,e,n=t)=>(t._$AI(e,n),t),$g={},ui=(t,e=$g)=>t._$AH=e,Sg=t=>t._$AH,fi=t=>{t._$AR(),t._$AA.remove()},Ba=(t,e,n)=>{const s=new Map;for(let i=e;i<=n;i++)s.set(t[i],i);return s},Fe=Nt(class extends In{constructor(t){if(super(t),t.type!==xe.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let s;n===void 0?n=e:e!==void 0&&(s=e);const i=[],r=[];let o=0;for(const a of t)i[o]=s?s(a,o):o,r[o]=n(a,o),o++;return{values:r,keys:i}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,s]){const i=Sg(t),{values:r,keys:o}=this.dt(e,n,s);if(!Array.isArray(i))return this.ut=o,r;const a=this.ut??=[],l=[];let c,d,h=0,g=i.length-1,p=0,f=r.length-1;for(;h<=g&&p<=f;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(a[h]===o[p])l[p]=Be(i[h],r[p]),h++,p++;else if(a[g]===o[f])l[f]=Be(i[g],r[f]),g--,f--;else if(a[h]===o[f])l[f]=Be(i[h],r[f]),Bt(t,l[f+1],i[h]),h++,f--;else if(a[g]===o[p])l[p]=Be(i[g],r[p]),Bt(t,i[h],i[g]),g--,p++;else if(c===void 0&&(c=Ba(o,p,f),d=Ba(a,h,g)),c.has(a[h]))if(c.has(a[g])){const u=d.get(o[p]),m=u!==void 0?i[u]:null;if(m===null){const x=Bt(t,i[h]);Be(x,r[p]),l[p]=x}else l[p]=Be(m,r[p]),Bt(t,i[h],m),i[u]=null;p++}else fi(i[g]),g--;else fi(i[h]),h++;for(;p<=f;){const u=Bt(t,l[f+1]);Be(u,r[p]),l[p++]=u}for(;h<=g;){const u=i[h++];u!==null&&fi(u)}return this.ut=o,ui(t,l),Y}}),Vn="dpk-changes",Ag=(t,e,n)=>{const s=t.unread>0?e.changesUnread(t.unread):e.changes;return k`<button
|
|
1528
1528
|
class="dpk-bell"
|
|
1529
1529
|
type="button"
|
|
1530
1530
|
aria-controls=${Vn}
|
|
@@ -3987,7 +3987,7 @@ ${s}`:`${t.slice(0,n)}${s}${t.slice(n)}`},_k=R({title:D(v())}),Ok={schema:Rr(),m
|
|
|
3987
3987
|
::slotted([hidden]) {
|
|
3988
3988
|
display: none !important;
|
|
3989
3989
|
}
|
|
3990
|
-
`;class Yk extends Ll{static{this.styles=[vl,Vk]}static{this.properties={pageNav:{type:String,attribute:"page-nav"},hash:{type:String}}}get hashMode(){return this.hash==="off"?"off":"auto"}#e=!1;#s=!1;#n="";#t="";#i=new WeakMap;#r=new WeakMap;#o=new Map;#a=new Map;#l;#p=null;#d=!1;#u=!1;#g;#k=new Wn(this);constructor(){super(),new $t(this,{open:()=>this.#d,closesOn:e=>!e.some(n=>n instanceof Element&&(n.id===Kt||n.matches(".dpk-page-switcher-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.#C()})}pageContents(){return[]}definitionFor(e){return Lk({pages:()=>this.#T(),base:()=>this.#x(),catalog:()=>this.#F(),messages:Wt(e)})}connectedCallback(){super.connectedCallback(),this.addEventListener("dpk-comment-targets-change",this.#w),this.addEventListener("dpk-navigate",this.#m),this.#p=this.navigation,this.api.ready.then(()=>{this.#s=!0,this.#n=this.#$(this.#y()),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dpk-comment-targets-change",this.#w),this.removeEventListener("dpk-navigate",this.#m),this.#h()}#m=e=>{if(e.target!==this||!(e instanceof CustomEvent))return;const n=e.detail;if(typeof n!="object"||n===null||!("navigation"in n))return;const s=n.navigation;if(!jk(s))return;const i=this.#p;if(this.#p=s,i!==null)for(const r of this.#f()){const o=this.#c(r),a=je(i,o),l=je(s,o);Bk(a,l)||(r.content??r).dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:l},bubbles:!0,composed:!0}))}};#w=()=>{this.#s&&this.controller.setTemplate(this.definition)};get[Fn](){if(this.#s)return this.#l??={locale:()=>this.locale,theme:()=>this.dataset.theme,navigation:()=>this.navigation,pageNames:()=>new Set(this.#f().map(e=>this.#c(e))),dispatch:e=>this.dispatch(e),dispatchBatch:e=>this.dispatchBatch(e),editComment:(e,n)=>this.editComment(e,n),removeAction:e=>this.removeAction(e),clearActions:()=>this.clearActions(),navigate:(e,n)=>this.navigate(e,n),hashFor:e=>this.hashFor(e),requestComment:e=>this.requestComment(e)},this.#l}#f(){return Array.from(this.children).filter(Nk)}#y(){return this.#f().filter(e=>!e.hasAttribute(Bn))}#c(e){return e.getAttribute(ft)??""}#b(e){return e.getAttribute("label")??e.definition.label}#x(){const e=this.#y();return{layout:e.map(n=>({id:this.#c(n),kind:n.definition.kind,content:n.definition.name,label:this.#b(n)})),pages:Object.fromEntries(e.map(n=>[this.#c(n),n.api.base]))}}#$(e){return e.map(n=>this.#c(n)).join(" ")}#T(){return this.#f().map(e=>({id:this.#c(e),label:this.#b(e),definition:e.liveDefinition??e.definition}))}#F(){const e=this.locale,n=this.#o.get(e);if(n!==void 0)return n;const s=this.pageContents(),i=s.flatMap(({kind:r,name:o})=>{const a=this.#O(r,o,e);return a===void 0?[]:[a]});return i.length===s.length&&this.#o.set(e,i),i}#O(e,n,s){const i=`${e==="view"?"dpk-view":"dpk-board"}-${n}`;if(customElements.get(i)===void 0)return;const r=document.createElement(i);r.setAttribute("lang",s);const o="definition"in r?r.definition:void 0;return qk(o)?o:void 0}#G(){return this.pageContents().filter(e=>e.addable!==!1)}async#J(e){const n=this.locale,s=this.#O(e.kind,e.name,n);if(s!==void 0)return s;if(e.kind==="board")return;const i=Dk(e.name,Tc());if(i===null)return;let r=this.#a.get(e.name);r??=import(i),this.#a.set(e.name,r);try{await r}catch(o){this.#a.delete(e.name),console.error(`dev-process-kit: could not load view "${e.name}" from ${i}`,o);return}return await customElements.whenDefined(`dpk-view-${e.name}`),this.#O(e.kind,e.name,n)}async#ee(e){await this.#J(e)!==void 0&&this.#Y(e)}#W(e){return this.#f().find(n=>this.#c(n)===e.id)?.definition??this.#F().find(n=>n.kind===e.kind&&n.name===e.content)}#N(e){return this.pageContents().find(n=>n.kind===e.kind&&n.name===e.content)?.icon??Gk}pendingStart(){return this.#e?null:this.#M().then(()=>{this.#e=!0;for(const e of this.#f())this.#r.set(e,!0)})}#M(){return customElements.whenDefined("dpk-page").then(()=>Promise.all(this.#f().map(e=>e.ready))).then(()=>{})}#v(){this.#s&&this.#M().then(()=>{const e=this.#$(this.#y());e!==this.#n&&(this.#n=e,this.#i=new WeakMap,this.controller.setBase({...this.controller.base,...this.#x()}),this.refreshGrill())})}scriptOf(e){return this.querySelector(`:scope > ${e}`)}readGrill(){const e=super.readGrill(),n=this.#S();return this.#t=this.#$(n),Sk(e,n.map(s=>{const i=this.#c(s);return{page:i,grill:this.parseGrillScript(s.content?.querySelector(Uk)??null,`@${i}`)}}))}#S(){const e=this.#y();if(!this.#s)return e;const n=new Set(this.api.state.layout.map(s=>s.id));return e.filter(s=>n.has(this.#c(s)))}grillRefsOf(e,n){return Ak(n,Ek(e))}get mainLayout(){return"fill"}buildBrief(e){const n=e.state.layout.flatMap(s=>{const i=this.#W(s);return i===void 0?[]:[{id:s.id,label:s.label,definition:i}]});return Rk(super.buildBrief(e),Tk(n,e.actions))}#q(e,n){return e.layout.find(s=>s.id===n[$e])}#U(){return this.pageNav==="none"}renderRegions(e){const n=e.state.layout,s=this.#q(e.state,e.navigation),i=this.#G(),r=this.definition.title(e.state),o=k`<div class="dpk-app-pages"><slot @slotchange=${()=>this.#v()}></slot></div>`;return this.#U()?{header:s===void 0?b:k`<div class="dpk-page-heading ${wi}">${this.#j(e,s)}</div>`,rail:b,main:o}:{header:this.#P(e,n,s,i,r),rail:b,main:o}}#P(e,n,s,i,r){return k`<div class="dpk-page-heading ${wi}">
|
|
3990
|
+
`;class Yk extends Ll{static{this.styles=[vl,Vk]}static{this.properties={pageNav:{type:String,attribute:"page-nav"},hash:{type:String}}}get hashMode(){return this.hash==="off"?"off":"auto"}#e=!1;#s=!1;#n="";#t="";#i=new WeakMap;#r=new WeakMap;#o=new Map;#a=new Map;#l;#p=null;#d=!1;#u=!1;#g;#k=new Wn(this);constructor(){super(),new $t(this,{open:()=>this.#d,closesOn:e=>!e.some(n=>n instanceof Element&&(n.id===Kt||n.matches(".dpk-page-switcher-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.#C()})}pageContents(){return[]}definitionFor(e){return Lk({pages:()=>this.#T(),base:()=>this.#x(),catalog:()=>this.#F(),messages:Wt(e)})}connectedCallback(){super.connectedCallback(),this.addEventListener("dpk-comment-targets-change",this.#w),this.addEventListener("dpk-navigate",this.#m),this.#p=this.navigation,this.api.ready.then(()=>{this.#s=!0,this.#n=this.#$(this.#y()),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dpk-comment-targets-change",this.#w),this.removeEventListener("dpk-navigate",this.#m),this.#h()}#m=e=>{if(e.target!==this||!(e instanceof CustomEvent))return;const n=e.detail;if(typeof n!="object"||n===null||!("navigation"in n))return;const s=n.navigation;if(!jk(s))return;const i=this.#p;if(this.#p=s,i!==null)for(const r of this.#f()){const o=this.#c(r),a=je(i,o),l=je(s,o);Bk(a,l)||(r.content??r).dispatchEvent(new CustomEvent("dpk-navigate",{detail:{navigation:l},bubbles:!0,composed:!0}))}};#w=()=>{this.#s&&this.controller.setTemplate(this.definition)};get[Fn](){if(this.#s)return this.#l??={locale:()=>this.locale,theme:()=>this.dataset.theme,navigation:()=>this.navigation,pageNames:()=>new Set(this.#f().map(e=>this.#c(e))),dispatch:e=>this.dispatch(e),dispatchBatch:e=>this.dispatchBatch(e),editComment:(e,n)=>this.editComment(e,n),removeAction:e=>this.removeAction(e),clearActions:()=>this.clearActions(),navigate:(e,n)=>this.navigate(e,n),hashFor:e=>this.hashFor(e),requestComment:e=>this.requestComment(e)},this.#l}#f(){return Array.from(this.children).filter(Nk)}#y(){return this.#f().filter(e=>!e.hasAttribute(Bn))}#c(e){return e.getAttribute(ft)??""}#b(e){return e.getAttribute("label")??e.definition.label}#x(){const e=this.#y();return{layout:e.map(n=>({id:this.#c(n),kind:n.definition.kind,content:n.definition.name,label:this.#b(n)})),pages:Object.fromEntries(e.map(n=>[this.#c(n),n.api.base]))}}#$(e){return e.map(n=>this.#c(n)).join(" ")}#T(){return this.#f().map(e=>({id:this.#c(e),label:this.#b(e),definition:e.liveDefinition??e.definition}))}#F(){const e=this.locale,n=this.#o.get(e);if(n!==void 0)return n;const s=this.pageContents(),i=s.flatMap(({kind:r,name:o})=>{const a=this.#O(r,o,e);return a===void 0?[]:[a]});return i.length===s.length&&this.#o.set(e,i),i}#O(e,n,s){const i=`${e==="view"?"dpk-view":"dpk-board"}-${n}`;if(customElements.get(i)===void 0)return;const r=document.createElement(i);r.setAttribute("lang",s);const o="definition"in r?r.definition:void 0;return qk(o)?o:void 0}#G(){return this.pageContents().filter(e=>e.addable!==!1&&(e.kind==="view"||customElements.get(`dpk-board-${e.name}`)!==void 0))}async#J(e){const n=this.locale,s=this.#O(e.kind,e.name,n);if(s!==void 0)return s;if(e.kind==="board")return;const i=Dk(e.name,Tc());if(i===null)return;let r=this.#a.get(e.name);r??=import(i),this.#a.set(e.name,r);try{await r}catch(o){this.#a.delete(e.name),console.error(`dev-process-kit: could not load view "${e.name}" from ${i}`,o);return}return await customElements.whenDefined(`dpk-view-${e.name}`),this.#O(e.kind,e.name,n)}async#ee(e){await this.#J(e)!==void 0&&this.#Y(e)}#W(e){return this.#f().find(n=>this.#c(n)===e.id)?.definition??this.#F().find(n=>n.kind===e.kind&&n.name===e.content)}#N(e){return this.pageContents().find(n=>n.kind===e.kind&&n.name===e.content)?.icon??Gk}pendingStart(){return this.#e?null:this.#M().then(()=>{this.#e=!0;for(const e of this.#f())this.#r.set(e,!0)})}#M(){return customElements.whenDefined("dpk-page").then(()=>Promise.all(this.#f().map(e=>e.ready))).then(()=>{})}#v(){this.#s&&this.#M().then(()=>{const e=this.#$(this.#y());e!==this.#n&&(this.#n=e,this.#i=new WeakMap,this.controller.setBase({...this.controller.base,...this.#x()}),this.refreshGrill())})}scriptOf(e){return this.querySelector(`:scope > ${e}`)}readGrill(){const e=super.readGrill(),n=this.#S();return this.#t=this.#$(n),Sk(e,n.map(s=>{const i=this.#c(s);return{page:i,grill:this.parseGrillScript(s.content?.querySelector(Uk)??null,`@${i}`)}}))}#S(){const e=this.#y();if(!this.#s)return e;const n=new Set(this.api.state.layout.map(s=>s.id));return e.filter(s=>n.has(this.#c(s)))}grillRefsOf(e,n){return Ak(n,Ek(e))}get mainLayout(){return"fill"}buildBrief(e){const n=e.state.layout.flatMap(s=>{const i=this.#W(s);return i===void 0?[]:[{id:s.id,label:s.label,definition:i}]});return Rk(super.buildBrief(e),Tk(n,e.actions))}#q(e,n){return e.layout.find(s=>s.id===n[$e])}#U(){return this.pageNav==="none"}renderRegions(e){const n=e.state.layout,s=this.#q(e.state,e.navigation),i=this.#G(),r=this.definition.title(e.state),o=k`<div class="dpk-app-pages"><slot @slotchange=${()=>this.#v()}></slot></div>`;return this.#U()?{header:s===void 0?b:k`<div class="dpk-page-heading ${wi}">${this.#j(e,s)}</div>`,rail:b,main:o}:{header:this.#P(e,n,s,i,r),rail:b,main:o}}#P(e,n,s,i,r){return k`<div class="dpk-page-heading ${wi}">
|
|
3991
3991
|
${this.#K(n,s,r,i)}
|
|
3992
3992
|
${s===void 0?b:this.#j(e,s)}
|
|
3993
3993
|
</div>`}#K(e,n,s,i){if(e.length===0&&i.length===0)return b;const r=Wt(this.locale),o={open:()=>this.#te(),scheduleClose:()=>this.#H()};return k`
|
|
@@ -4001,7 +4001,7 @@ ${s}`:`${t.slice(0,n)}${s}${t.slice(n)}`},_k=R({title:D(v())}),Ok={schema:Rr(),m
|
|
|
4001
4001
|
@dpk-commit=${Lr(o=>this.#V(e.id,o))}
|
|
4002
4002
|
></dpk-inline-edit
|
|
4003
4003
|
></span>`}#L(e,n,s,i){const r=Wt(this.locale);if(this.#u)return i.map(a=>({key:`content:${a.kind}:${a.name}`,label:a.label,icon:a.icon,current:!1,kind:"action",activate:()=>{this.#C(),this.#ee(a)}}));const o=e.map((a,l)=>{const c=this.#I(a,l,s);return{key:`page:${a.id}`,label:c,icon:this.#N(a),current:a.id===n?.id,activate:()=>{this.#C(),this.navigate({[$e]:a.id})},...e.length>1?{remove:{label:r.removePage(c),activate:()=>this.#ne(a.id)}}:{}}});return i.length===0?o:[...o,{key:"add",label:r.addPage,icon:ni,current:!1,kind:"action",activate:()=>{this.#u=!0,this.requestUpdate(),this.#z()}}]}#z(){this.updateComplete.then(()=>{this.renderRoot.querySelector(`#${Kt} .dpk-page-switcher-option`)?.focus()})}#V(e,n){this.dispatch({type:"RENAME_PAGE",target:ht,payload:{page:e,label:n}})}#te(){this.#h(),!this.#d&&(this.#d=!0,this.requestUpdate())}#H(){this.#h(),this.#g=setTimeout(()=>this.#C(),Kk)}#h(){this.#g!==void 0&&(clearTimeout(this.#g),this.#g=void 0)}#C(){this.#h(),!(!this.#d&&!this.#u)&&(this.#d=!1,this.#u=!1,this.requestUpdate())}#j(e,n){const s=this.#f().find(a=>this.#c(a)===n.id),i=s?.definition.settings?.(e.state.pages[n.id]);if(s===void 0||i===void 0||i.items.length===0)return b;const r=L(this.locale),o={toggle:()=>{this.settingsOpen=!this.settingsOpen},flip:a=>{s.api.dispatch(a)}};return k`${kl(this.settingsOpen,r,o)}
|
|
4004
|
-
${this.settingsOpen?bl(i,r,o):b}`}#I(e,n,s){const i=this.#W(e);return i!==void 0&&e.label===i.label?n===0?s:Wt(this.locale).pageFallback(n+1):e.label}#Y(e){const n=new Set([...this.api.state.layout.map(r=>r.id),...Array.from(this.children,r=>r.getAttribute(ft)??"")]),s=Pk(e.name,n);this.dispatch({type:"ADD_PAGE",target:ht,payload:{page:s,kind:e.kind,content:e.name,label:e.label}}).ok&&this.navigate({[$e]:s})}#ne(e){const n=this.controller.actions,s=n.find(r=>{if(!Ue(r.target))return!1;const o=un(Gt,r);return o?.type==="ADD_PAGE"&&o.payload.page===e}),i=this.#x().layout.some(r=>r.id===e);if(s===void 0||i){this.dispatch({type:"REMOVE_PAGE",target:ht,payload:{page:e}});return}for(const r of n)He(r.target)?.page===e&&this.removeAction(r.id);this.removeAction(s.id)}updated(){super.updated(),this.#Z(),this.#Q()}#Z(){const e=this.renderRoot.querySelector(`#${Kt}`),n=this.renderRoot.querySelector(".dpk-page-switcher-trigger");!e||!n||Fk(e)||this.#k.open(e,n,Wk,{placement:"bottom-end"})}#Q(){if(!this.#e)return;const e=this.api.state.layout,n=new Set(e.map(o=>o.id));this.#$(this.#S())!==this.#t&&this.refreshGrill();for(const o of this.#f())o.hasAttribute(Bn)&&!n.has(this.#c(o))&&o.remove();const s=new Set(Array.from(this.children,o=>o.getAttribute(ft)));for(const o of e)s.has(o.id)||this.#se(o);const i=this.controller.actions,r=this.navigation[$e];for(const o of this.#f()){const a=this.#c(o);o.hidden=a!==r||!n.has(a),this.#ie(o)&&(this.#i.get(o)!==i&&(this.#i.set(o,i),o.controller.replaceActions(Hk(i,a))),o.refreshContent())}}#se(e){const n="dpk-page",s=`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.content}`;if(customElements.get(n)===void 0||customElements.get(s)===void 0)return;const i=document.createElement(n);i.setAttribute(ft,e.id),i.setAttribute("label",e.label),i.setAttribute(Bn,"");const r=document.createElement(s);i.append(r),i.hidden=!0,this.append(i)}#ie(e){const n=this.#r.get(e);return n!==void 0?n:(this.#r.set(e,!1),e.ready.then(()=>{this.#r.set(e,!0),this.requestUpdate()}),!1)}}const Zk=[{kind:"view",name:"usm",label:"User Story Mapping",icon:y(Nd)},{kind:"view",name:"prototype",label:"UX Prototype",icon:y(Fd),addable:!1},{kind:"view",name:"task-board",label:"Task Context Board",icon:y(Xi),addable:!1},{kind:"view",name:"delegation-poker",label:"Delegation Poker",icon:y(ec),addable:!1},{kind:"view",name:"slides",label:"Slides",icon:y(Zd),addable:!1},{kind:"view",name:"plain",label:"Plain",icon:y(_d),addable:!1},{kind:"board",name:"er-diagram",label:"ER diagram",icon:y(Td),addable:!1},{kind:"board",name:"state-diagram",label:"State diagram",icon:y(Ed),addable:!1},{kind:"board",name:"sequence-diagram",label:"Sequence diagram",icon:y(xd),addable:!1},{kind:"board",name:"dependency-graph",label:"Dependency graph",icon:y(Od),addable:!1},{kind:"board",name:"architecture-map",label:"Architecture map",icon:y(wd),addable:!1},{kind:"board",name:"mind-map",label:"Mind map",icon:y(Md),addable:!1},{kind:"board",name:"event-storming",label:"Event Storming",icon:y(oc),addable:!1},{kind:"board",name:"example-mapping",label:"Example Mapping",icon:y(Ji),addable:!1},{kind:"board",name:"whiteboard",label:"Whiteboard",icon:y(Kd),addable:!1},{kind:"board",name:"kanban",label:"Kanban",icon:y(Xi),addable:!1}];class Il extends Yk{pageContents(){return Zk}}const Qk=()=>{customElements.get("dpk-app")||customElements.define("dpk-app",Il)},Dl=Nt(class extends In{constructor(t){if(super(t),t.type!==xe.PROPERTY&&t.type!==xe.ATTRIBUTE&&t.type!==xe.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wg(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Y||e===b)return e;const n=t.element,s=t.name;if(t.type===xe.PROPERTY){if(e===n[s])return Y}else if(t.type===xe.BOOLEAN_ATTRIBUTE){if(!!e===n.hasAttribute(s))return Y}else if(t.type===xe.ATTRIBUTE&&n.getAttribute(s)===e+"")return Y;return ui(t),e}});function Oi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ge=Oi();function Nl(t){Ge=t}var We={exec:()=>null};function mt(t){let e=[];return n=>{let s=Math.max(0,Math.min(3,n-1)),i=e[s];return i||(i=t(s),e[s]=i),i}}function A(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(q.caret,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,e)};return s}var Xk=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),q={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mt(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mt(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:mt(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:mt(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:mt(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Yt})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:mt(t=>new RegExp(`^ {0,${t}}>`))},Jk=/^(?:[ \t]*(?:\n|$))+/,eb=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tb=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nb=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Mi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ql=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ul=A(ql).replace(/bull/g,Mi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),sb=A(ql).replace(/bull/g,Mi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ib=/^[^\n]+/,Li=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rb=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Li).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ob=A(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Mi).getRegex(),Yt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ab=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",zi).replace("tag",Yt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hl=t=>A(Pi).replace("hr",Vt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yt).getRegex(),lb=Hl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),db=Hl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),cb=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",db).getRegex(),Ii={blockquote:cb,code:eb,def:rb,fences:tb,heading:nb,hr:Vt,html:ab,lheading:Ul,list:ob,newline:Jk,paragraph:lb,table:We,text:ib},jl=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yt).getRegex(),pb={...Ii,lheading:sb,table:jl,paragraph:A(Pi).replace("hr",Vt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yt).getRegex()},hb={...Ii,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Pi).replace("hr",Vt).replace("heading",` *#{1,6} *[^
|
|
4004
|
+
${this.settingsOpen?bl(i,r,o):b}`}#I(e,n,s){const i=this.#W(e);return i!==void 0&&e.label===i.label?n===0?s:Wt(this.locale).pageFallback(n+1):e.label}#Y(e){const n=new Set([...this.api.state.layout.map(r=>r.id),...Array.from(this.children,r=>r.getAttribute(ft)??"")]),s=Pk(e.name,n);this.dispatch({type:"ADD_PAGE",target:ht,payload:{page:s,kind:e.kind,content:e.name,label:e.label}}).ok&&this.navigate({[$e]:s})}#ne(e){const n=this.controller.actions,s=n.find(r=>{if(!Ue(r.target))return!1;const o=un(Gt,r);return o?.type==="ADD_PAGE"&&o.payload.page===e}),i=this.#x().layout.some(r=>r.id===e);if(s===void 0||i){this.dispatch({type:"REMOVE_PAGE",target:ht,payload:{page:e}});return}for(const r of n)He(r.target)?.page===e&&this.removeAction(r.id);this.removeAction(s.id)}updated(){super.updated(),this.#Z(),this.#Q()}#Z(){const e=this.renderRoot.querySelector(`#${Kt}`),n=this.renderRoot.querySelector(".dpk-page-switcher-trigger");!e||!n||Fk(e)||this.#k.open(e,n,Wk,{placement:"bottom-end"})}#Q(){if(!this.#e)return;const e=this.api.state.layout,n=new Set(e.map(o=>o.id));this.#$(this.#S())!==this.#t&&this.refreshGrill();for(const o of this.#f())o.hasAttribute(Bn)&&!n.has(this.#c(o))&&o.remove();const s=new Set(Array.from(this.children,o=>o.getAttribute(ft)));for(const o of e)s.has(o.id)||this.#se(o);const i=this.controller.actions,r=this.navigation[$e];for(const o of this.#f()){const a=this.#c(o);o.hidden=a!==r||!n.has(a),this.#ie(o)&&(this.#i.get(o)!==i&&(this.#i.set(o,i),o.controller.replaceActions(Hk(i,a))),o.refreshContent())}}#se(e){const n="dpk-page",s=`${e.kind==="view"?"dpk-view":"dpk-board"}-${e.content}`;if(customElements.get(n)===void 0||customElements.get(s)===void 0)return;const i=document.createElement(n);i.setAttribute(ft,e.id),i.setAttribute("label",e.label),i.setAttribute(Bn,"");const r=document.createElement(s);i.append(r),i.hidden=!0,this.append(i)}#ie(e){const n=this.#r.get(e);return n!==void 0?n:(this.#r.set(e,!1),e.ready.then(()=>{this.#r.set(e,!0),this.requestUpdate()}),!1)}}const Zk=[{kind:"view",name:"usm",label:"User Story Mapping",icon:y(Nd)},{kind:"view",name:"prototype",label:"UX Prototype",icon:y(Fd),addable:!1},{kind:"view",name:"task-board",label:"Task Context Board",icon:y(Xi),addable:!1},{kind:"view",name:"delegation-poker",label:"Delegation Poker",icon:y(ec),addable:!1},{kind:"view",name:"slides",label:"Slides",icon:y(Zd),addable:!1},{kind:"view",name:"plain",label:"Plain",icon:y(_d),addable:!1},{kind:"board",name:"er-diagram",label:"ER diagram",icon:y(Td),addable:!1},{kind:"board",name:"state-diagram",label:"State diagram",icon:y(Ed),addable:!1},{kind:"board",name:"sequence-diagram",label:"Sequence diagram",icon:y(xd),addable:!1},{kind:"board",name:"dependency-graph",label:"Dependency graph",icon:y(Od),addable:!1},{kind:"board",name:"architecture-map",label:"Architecture map",icon:y(wd),addable:!1},{kind:"board",name:"mind-map",label:"Mind map",icon:y(Md),addable:!1},{kind:"board",name:"event-storming",label:"Event Storming",icon:y(oc),addable:!1},{kind:"board",name:"example-mapping",label:"Example Mapping",icon:y(Ji)},{kind:"board",name:"whiteboard",label:"Whiteboard",icon:y(Kd)},{kind:"board",name:"kanban",label:"Kanban",icon:y(Xi)}];class Il extends Yk{pageContents(){return Zk}}const Qk=()=>{customElements.get("dpk-app")||customElements.define("dpk-app",Il)},Dl=Nt(class extends In{constructor(t){if(super(t),t.type!==xe.PROPERTY&&t.type!==xe.ATTRIBUTE&&t.type!==xe.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wg(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Y||e===b)return e;const n=t.element,s=t.name;if(t.type===xe.PROPERTY){if(e===n[s])return Y}else if(t.type===xe.BOOLEAN_ATTRIBUTE){if(!!e===n.hasAttribute(s))return Y}else if(t.type===xe.ATTRIBUTE&&n.getAttribute(s)===e+"")return Y;return ui(t),e}});function Oi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ge=Oi();function Nl(t){Ge=t}var We={exec:()=>null};function mt(t){let e=[];return n=>{let s=Math.max(0,Math.min(3,n-1)),i=e[s];return i||(i=t(s),e[s]=i),i}}function A(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(q.caret,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,e)};return s}var Xk=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),q={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mt(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mt(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:mt(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:mt(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:mt(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Yt})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:mt(t=>new RegExp(`^ {0,${t}}>`))},Jk=/^(?:[ \t]*(?:\n|$))+/,eb=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tb=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nb=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Mi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ql=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ul=A(ql).replace(/bull/g,Mi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),sb=A(ql).replace(/bull/g,Mi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ib=/^[^\n]+/,Li=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rb=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Li).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ob=A(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Mi).getRegex(),Yt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ab=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",zi).replace("tag",Yt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hl=t=>A(Pi).replace("hr",Vt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yt).getRegex(),lb=Hl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),db=Hl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),cb=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",db).getRegex(),Ii={blockquote:cb,code:eb,def:rb,fences:tb,heading:nb,hr:Vt,html:ab,lheading:Ul,list:ob,newline:Jk,paragraph:lb,table:We,text:ib},jl=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yt).getRegex(),pb={...Ii,lheading:sb,table:jl,paragraph:A(Pi).replace("hr",Vt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Yt).getRegex()},hb={...Ii,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Pi).replace("hr",Vt).replace("heading",` *#{1,6} *[^
|
|
4005
4005
|
]`).replace("lheading",Ul).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ub=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,fb=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,gb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ge=/[\p{P}\p{S}]/u,kt=/[\s\p{P}\p{S}]/u,Zt=/[^\s\p{P}\p{S}]/u,mb=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kt).getRegex(),kb=/[\p{Pi}\p{Ps}"']/u,Fl=/(?!~)[\p{P}\p{S}]/u,bb=/(?!~)[\s\p{P}\p{S}]/u,vb=/(?:[^\s\p{P}\p{S}]|~)/u,xb=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Gl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,yb=A(Gl,"u").replace(/punct/g,ge).getRegex(),wb=A(Gl,"u").replace(/punct/g,Fl).getRegex(),$b=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Sb=A($b,"u").replace(/openQuote/g,kb).replace(/punct/g,ge).getRegex(),Wl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ab=A(Wl,"gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,kt).replace(/punct/g,ge).getRegex(),Eb=A(Wl,"gu").replace(/notPunctSpace/g,vb).replace(/punctSpace/g,bb).replace(/punct/g,Fl).getRegex(),Cb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Tb=A(Cb,"gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,kt).replace(/punct/g,ge).getRegex(),Rb=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,kt).replace(/punct/g,ge).getRegex(),_b="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Ob=A(_b,"gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,kt).replace(/punct/g,ge).getRegex(),Mb=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ge).getRegex(),Pb="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Lb=A(Pb,"gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,kt).replace(/punct/g,ge).getRegex(),zb=A(/\\(punct)/,"gu").replace(/punct/g,ge).getRegex(),Ib=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Db=A(zi).replace("(?:-->|$)","-->").getRegex(),Nb=A("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Db).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Kl=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,ts=A(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Kl).getRegex(),qb=A(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",ts).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ub=A(/^!?\[(label)\]\[(ref)\]/).replace("label",ts).replace("ref",Li).getRegex(),Hb=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Li).getRegex(),Vl=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,jb=A(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Kl).getRegex(),Bb=A("reflink|nolink(?!\\()","g").replace("reflink",A(/^!?\[(label)\]\[(ref)\]/).replace("label",jb).replace("ref",Vl).getRegex()).replace("nolink",A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vl).getRegex()).getRegex(),Yl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Fb=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Gb=A(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Fb).getRegex(),Di={_backpedal:We,anyPunctuation:zb,autolink:Ib,blockSkip:xb,br:Bl,code:fb,del:We,delLDelim:We,delRDelim:We,emStrongLDelim:yb,emStrongRDelimAst:Ab,emStrongRDelimUnd:Rb,escape:ub,link:qb,nolink:Hb,punctuation:mb,reflink:Ub,reflinkSearch:Bb,tag:Nb,text:gb,url:We},Wb={...Di,emStrongLDelim:Sb,emStrongRDelimAst:Tb,emStrongRDelimUnd:Ob,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",ts).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ts).getRegex()},Ni={...Di,emStrongRDelimAst:Eb,emStrongLDelim:wb,delLDelim:Mb,delRDelim:Lb,url:A(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Gb).replace("protocol",Yl).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Yl).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Kb={...Ni,br:A(Bl).replace("{2,}","*").getRegex(),text:A(Ni.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ns={normal:Ii,gfm:pb,pedantic:hb},Qt={normal:Di,gfm:Ni,breaks:Kb,pedantic:Wb},Vb={"&":"&","<":"<",">":">",'"':""","'":"'"},Zl=t=>Vb[t];function K(t,e){if(e){if(q.escapeTest.test(t))return t.replace(q.escapeReplace,Zl)}else if(q.escapeTestNoEncode.test(t))return t.replace(q.escapeReplaceNoEncode,Zl);return t}function Yb(t){return t.replace(q.numericCharacterReference,(e,n,s)=>{let i=n===void 0?Number.parseInt(s,16):Number.parseInt(n,10);return i===0||i>1114111||i>=55296&&i<=57343?"\uFFFD":String.fromCodePoint(i)})}function Ql(t){try{t=encodeURI(t).replace(q.percentDecode,"%")}catch{return null}return t}function Xl(t,e){let n=t.replace(q.findPipe,(r,o,a)=>{let l=!1,c=o;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),s=n.split(q.splitPipe),i=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;i<s.length;i++)s[i]=s[i].trim().replace(q.slashPipe,"|");return s}function Se(t,e,n){let s=t.length;if(s===0)return"";let i=0;for(;i<s&&t.charAt(s-i-1)===e;)i++;return t.slice(0,s-i)}function Jl(t){let e=t.split(`
|
|
4006
4006
|
`),n=e.length-1;for(;n>=0&&q.blankLine.test(e[n]);)n--;return e.length-n<=2?t:e.slice(0,n+1).join(`
|
|
4007
4007
|
`)}function ss(t){return t.trim().toLowerCase().toUpperCase().toLowerCase()}function ed(t,e){if(t.indexOf(e[0])===-1&&t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function td(t,e=0){let n=e,s="";for(let i of t)if(i===" "){let r=4-n%4;s+=" ".repeat(r),n+=r}else s+=i,n++;return s}function nd(t,e,n,s,i){let r=e.href,o=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1"),l=t[0].charAt(0)==="!";s.state.inLink=!0;let c=s.state.linkEmitted,d=s.state.inRawBlock;s.state.linkEmitted=!1;let h=s.inlineTokens(a),g=s.state.linkEmitted;if(s.state.linkEmitted=c,s.state.inLink=!1,!l){if(g){s.state.inRawBlock=d;return}s.state.linkEmitted=!0}return{type:l?"image":"link",raw:n,href:r,title:o,text:a,tokens:h}}function Zb(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let i=s[1];return e.split(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ai as r}from"./shared-DdpMqkAH.js";const t=o=>o??r;export{t as o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a5 as G,ah as E,ak as D,X as I,j as X,ag as Et,al as Y,aE as Dt,ai as p,as as l,bp as It,aH as b,I as V,au as At,a8 as A,av as C,a9 as L,aw as w,b8 as J,ax as y,ay as k,ac as g,aD as B,aa as T,ad as Q,bJ as O,aB as Lt,az as Z,aF as Bt,bG as Ot,x as qt,w as Mt,A as tt,z as Ut,l as _t}from"./shared-
|
|
1
|
+
import{a5 as G,ah as E,ak as D,X as I,j as X,ag as Et,al as Y,aE as Dt,ai as p,as as l,bp as It,aH as b,I as V,au as At,a8 as A,av as C,a9 as L,aw as w,b8 as J,ax as y,ay as k,ac as g,aD as B,aa as T,ad as Q,bJ as O,aB as Lt,az as Z,aF as Bt,bG as Ot,x as qt,w as Mt,A as tt,z as Ut,l as _t}from"./shared-DdpMqkAH.js";import{o as Nt}from"./shared-TrlnHjrJ.js";const zt={active:[],match:"single"},Pt=(s,t)=>t.active.length===0?!0:t.match==="all"?t.active.every(e=>s.includes(e)):t.active.some(e=>s.includes(e)),q=s=>{try{return s.split("/").map(t=>decodeURIComponent(t))}catch{return null}},et="BC:",jt=s=>`${et}${s}`,$={kind:"idle"},M="text/plain",Ht=s=>`${s.type}:${s.id}`,rt=(s,t)=>{const e=(s??"").trim();if(e.length===0)return null;const r=e.indexOf(":");if(r<0)return{type:t,id:e};const a=e.slice(0,r),i=e.slice(r+1);return a.length===0||i.length===0?null:{type:a,id:i}},st=(s,t)=>t<=s.top+s.height/2?"before":"after";class Ft{#e;#r=$;#n;constructor(t){this.#e=t,t.addController(this)}hostDisconnected(){this.reset()}get state(){return this.#r}get item(){return this.#r.kind==="dragging"?this.#r.item:null}isDragging(t,e){const r=this.item;return r!==null&&r.type===t&&r.id===e}isOver(t){return this.#r.kind!=="idle"&&this.#r.over===t}reset(){clearTimeout(this.#n),this.#n=void 0,this.#t($)}source(t){return{dragstart:e=>{e.dataTransfer&&(e.dataTransfer.setData(M,Ht(t)),e.dataTransfer.effectAllowed="move"),clearTimeout(this.#n),this.#n=setTimeout(()=>{this.#n=void 0,this.#t({kind:"dragging",item:t,over:null})},0)},dragend:()=>this.reset()}}target(t){return{dragenter:r=>{this.#i(t.accepts)&&(r.preventDefault(),this.#a(t.key))},dragover:r=>{this.#i(t.accepts)&&(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="move"),this.#a(t.key))},dragleave:()=>{this.isOver(t.key)&&this.#a(null)},drop:r=>{r.preventDefault();const a=rt(r.dataTransfer?.getData(M),t.accepts)??this.item;if(this.#t($),!a||a.type!==t.accepts)return;const i=t.hovered?.(r)??null;t.onDrop({item:{type:t.accepts,id:a.id},hoveredId:i?.id??null,place:i?st(i.element.getBoundingClientRect(),r.clientY):"end",event:r})}}}combine(t,e){const r=()=>{const a=this.item!==null;return e.flatMap(([i,o])=>a||i===t?[o]:[])};return{dragenter:a=>r().forEach(i=>i.dragenter(a)),dragover:a=>r().forEach(i=>i.dragover(a)),dragleave:()=>e.forEach(([,a])=>a.dragleave()),drop:a=>{const i=rt(a.dataTransfer?.getData(M),t)?.type??this.item?.type,o=e.find(([n])=>n===i)?.[1];if(o){o.drop(a);return}a.preventDefault(),this.#t($)}}}#i(t){const e=this.item;return e===null||e.type===t}#a(t){const e=this.#r;if(e.kind==="dragging"){e.over!==t&&this.#t({...e,over:t});return}if(t===null){e.kind==="receiving"&&this.#t($);return}(e.kind==="idle"||e.over!==t)&&this.#t({kind:"receiving",over:t})}#t(t){this.#r!==t&&(this.#r=t,this.#e.requestUpdate())}}const R=(s,t,e,r)=>{const i=s.filter(c=>c!==t).at(-1)??null;if(e===null||r==="end")return i;const o=s.indexOf(t),n=s.indexOf(e);if(n<0)return i;const d=c=>c<=0?null:s.at(c-1)??null;return o>=0?o<n?e:d(n):r==="after"?e:d(n)},at=(s,t)=>new Intl.DateTimeFormat(s,{dateStyle:"medium",timeStyle:"short"}).format(new Date(t)),Kt=G({en:{heading:"Comments",commentsOn:s=>`Comments on \u201C${s}\u201D`,commentCountAria:s=>`${s} comment${s===1?"":"s"}`,empty:"No comments yet.",add:"Add comment",cancel:"Cancel",deleteComment:"Delete comment",sendFailed:"Could not save the comment.",commentDate:s=>at("en-US",s)},ja:{heading:"\u30B3\u30E1\u30F3\u30C8",commentsOn:s=>`\u300C${s}\u300D\u306E\u30B3\u30E1\u30F3\u30C8`,commentCountAria:s=>`\u30B3\u30E1\u30F3\u30C8 ${s} \u4EF6`,empty:"\u30B3\u30E1\u30F3\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",add:"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",deleteComment:"\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",sendFailed:"\u30B3\u30E1\u30F3\u30C8\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",commentDate:s=>at("ja-JP",s)}}),Wt=E`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aE as bt,ai as h,as as r,S as qs,aQ as G,a5 as D,ak as z,X as M,j as K,ah as T,al as R,b2 as Ps,H as Is,b3 as Xt,b4 as Os,b5 as Us,au as B,a9 as kt,aw as u,b6 as Yt,aa as w,aX as vt,a8 as Zt,aD as Jt,ac as b,aL as Fs,ad as dt,aO as Qt,az as st,aH as F,b7 as te,av as y,ax as $,a_ as xt,ay as E,aM as W,aB as at,aj as I,aC as ee,ab as V,aA as se,ag as yt,ar as ae,aY as Hs,aW as ne,b8 as _s,b9 as wt,ba as Bs,bb as ie,bc as ct,z as Ns,bd as re,aG as Ws,aZ as Gs,y as Ks,be as Vs,_ as Xs,$ as Ys}from"./shared-BQqlFaPv.js";import{o as N,r as Zs}from"./shared-TrlnHjrJ.js";import{e as Js}from"./shared-C6hVLci2.js";import{a as oe,c as Qs}from"./shared-Dj_D4ypT.js";import{c as ta}from"./shared-C1rWkW_W.js";import{p as ea,i as sa,r as aa,c as na,a as le,b as de,d as ia,e as ra,f as oa,h as ce,g as la,j as $t,s as da,k as ca,l as pa,m as ha,n as ua,t as ma}from"./shared-DbgUhOLb.js";import{B as ga,t as fa,v as ba,i as ka,k as va,j as xa}from"./shared-DuB4veji.js";import{d as ya}from"./shared-DXoggfKr.js";class pt{#n;#t;#e=null;#s=null;#a=null;#i=null;#r=new Map;#o=null;constructor(t){this.#n=t,this.#t=new bt(t),t.addController(this)}get isOpen(){return this.#e!==null}open(t,e,s){this.#e=t,this.#a=e,this.#i=s??null,this.#o=null,this.#n.requestUpdate()}close(){this.#e=null,this.#a=null,this.#i=null,this.#n.requestUpdate()}hostDisconnected(){this.close()}sync(t){const e=this.#s!==this.#e;this.#s=this.#e,!(t===null||this.#a===null||this.#e===null)&&(this.#t.open(t,this.#a,{width:300,height:280},{placement:"right-start",trackTransform:!0}),e&&t.querySelector("textarea")?.focus({preventScroll:!0}))}render(t){const e=this.#e;if(e===null)return h;const s=ea(this.#r.get(e)??"",[],{...this.#i===null?{}:{label:this.#i},key:e,...this.#o===e&&t.errorMessage!==void 0?{error:t.errorMessage}:{}});return r`${sa(e,aa(na(t.locale),s,n=>this.#l(e,t.submit,n)))}`}#l(t,e,s){if(s.kind==="input"){this.#r=new Map(this.#r).set(t,s.body),this.#o=null,this.#n.requestUpdate();return}if(s.kind==="comment"){if(!e(t,s.body)){this.#o=t,this.#n.requestUpdate();return}const i=new Map(this.#r);i.delete(t),this.#r=i}this.#o=null,this.close()}}const Ct=(a,t,e,s)=>{if(a===null)return null;const n=qs(a),i=t.find(l=>l.value===n);return i===void 0?null:{id:"review-comment",entries:[{kind:"item",id:"review-comment",label:e.reviewComment,run:()=>s(n,i.label)}]}},ht=.08,pe=1.8,he=a=>{if(a.length===0)return{x:0,y:0,width:0,height:0};const t=Math.min(...a.map(i=>i.x)),e=Math.min(...a.map(i=>i.y)),s=Math.max(...a.map(i=>i.x+i.width))-t,n=Math.max(...a.map(i=>i.y+i.height))-e;return{x:t-s*.1,y:e-n*.1,width:s*1.2,height:n*1.2}},ue=(a,t)=>a+t/12,wa=(a,t)=>{if(a.length===0)return null;const e=Math.min(...a.map(n=>n.y)),s=a.filter(n=>n.y<e+t);return{x:Math.min(...s.map(n=>n.x)),y:e}},St=16,$a=.8,ut=(a,t,e,s,n)=>a==="start"?St-ue(t,e)*s:(n-e*s)/2-t*s,me=(a,t,e,s,n="center")=>{if(t.width===0||t.height===0)return{...a,x:0,y:0};const i=(l,d,o,g)=>{const p=o*a.scale,f=g*$a;if(p<=g){const S=ut(n,d,o,a.scale,g);return G(l,S-f,S+f)}return G(l,g-(d+o)*a.scale-f,-d*a.scale+f)};return{...a,x:i(a.x,t.x,t.width,e),y:i(a.y,t.y,t.height,s)}},Ca=(a,t,e,s,n,i,l="center")=>{const d=Math.abs(i)>Math.abs(n);if(d&&t.height*a.scale<=s)return null;const o=me({...a,x:a.x-n,y:a.y-i},t,e,s,l);return d&&o.y===a.y?null:o},Sa=a=>Math.exp(-a*.01),ge='button,[role="button"],a,input,textarea,select',Et=(a,t,e)=>{for(const s of a.composedPath()){if(s===t)return null;if(s instanceof Element&&s.matches(e))return s}return null},Ea=a=>{const{canvas:t,world:e,onClearSelection:s,onView:n,align:i="center",sizeWorld:l=!0}=a;let d={x:0,y:0,width:0,height:0},o={x:0,y:0,scale:1};const g=()=>({width:t.clientWidth||1e3,height:t.clientHeight||560}),p=()=>{const{width:c,height:m}=g();o=me(o,d,c,m,i),e.style.transform=`translate(${o.x}px, ${o.y}px) scale(${o.scale})`,e.style.setProperty("--dpk-zoom-inverse",String(1/o.scale)),e.style.setProperty("--dpk-zoom-scale",String(o.scale)),n?.(o)},f=()=>{const{width:c,height:m}=g(),k=d.width/1.2||1,x=d.height/1.2||1,C=G(Math.min((c-24)/k,(m-40)/x),ht,1);o={scale:C,x:ut(i,d.x,d.width,C,c),y:ut(i,d.y,d.height,C,m)},p()},S=c=>{const{width:m,height:k}=g(),x=he([c]),C=x.width/1.2||1,L=x.height/1.2||1;o={...o,scale:G(Math.min((m-24)/C,(k-40)/L),ht,pe)},o={...o,x:(m-x.width*o.scale)/2-x.x*o.scale,y:(k-x.height*o.scale)/2-x.y*o.scale},p()},O=()=>{const{width:c}=g(),m=d.width/1.2||1,k=G((c-24)/m,ht,1);o={scale:k,x:(c-d.width*k)/2-d.x*k,y:16},p()},lt=c=>{const{width:m,height:k}=g(),x=(C,L,Kt,Vt)=>Vt!==void 0?St-Vt:L<=Kt?ut(i,C,L,1,Kt):St-ue(C,L);o={scale:1,x:x(d.x,d.width,m,c?.x),y:x(d.y,d.height,k,c?.y)},p()},_=(c,m=g().width/2,k=g().height/2)=>{const x=o.scale,C=G(x*c,ht,pe);C!==x&&(o={scale:C,x:m-(m-o.x)*C/x,y:k-(k-o.y)*C/x},p())},Q=c=>{if(Et(c,t,".diagram-zoom")!==null)return;const m=c.deltaMode===1?16:c.deltaMode===2?g().height:1;if(c.ctrlKey||c.metaKey){c.preventDefault();const L=t.getBoundingClientRect();_(Sa(c.deltaY),c.clientX-L.left,c.clientY-L.top);return}const{width:k,height:x}=g(),C=Ca(o,d,k,x,c.deltaX*m,c.deltaY*m,i);C!==null&&(c.preventDefault(),o=C,p())},q=new Map;let A=null,P=!1;const U=()=>{const c=[...q.values()],m=c[0];if(!m)return null;const k=c[1];return k?{x:(m.x+k.x)/2,y:(m.y+k.y)/2,distance:Math.hypot(k.x-m.x,k.y-m.y)}:{...m,distance:0}},tt=c=>{q.size===0&&(P=!1);const m=Et(c,t,ge);c.button!==0||c.pointerType!=="touch"&&m!==null||(q.set(c.pointerId,{x:c.clientX,y:c.clientY}),A=U(),m===null&&t.setPointerCapture(c.pointerId),c.pointerType!=="touch"&&m===null&&(c.preventDefault(),t.focus({preventScroll:!0})))},Ht=c=>{if(!q.has(c.pointerId)||A===null)return;q.set(c.pointerId,{x:c.clientX,y:c.clientY});const m=U();if(m===null)return;const k=m.x-A.x,x=m.y-A.y;if((Math.abs(k)+Math.abs(x)>1||Math.abs(m.distance-A.distance)>1)&&(P=!0),m.distance>0&&A.distance>0){const C=t.getBoundingClientRect();_(Math.pow(m.distance/A.distance,.45),A.x-C.left,A.y-C.top)}o={...o,x:o.x+k,y:o.y+x},p(),A=m,t.classList.toggle("is-panning",P)},et=c=>{q.delete(c.pointerId),A=U(),!(q.size>0)&&(t.classList.remove("is-panning"),c.type==="pointercancel"&&(P=!1))},_t=c=>{P&&(c.preventDefault(),c.stopPropagation()),et(c)},Bt=c=>{if(P){c.preventDefault(),c.stopPropagation(),P=!1;return}!(c.target instanceof Element)||Et(c,t,ge)!==null||s()},Nt=c=>{if(c.target!==t)return;const m=30;if(c.key==="+"||c.key==="=")_(1.1);else if(c.key==="-")_(1/1.1);else if(c.key==="0")f();else if(c.key==="Escape"){if(s()===!1)return}else if(c.key==="ArrowLeft"||c.key==="ArrowRight"||c.key==="ArrowUp"||c.key==="ArrowDown")o={...o,x:o.x+(c.key==="ArrowLeft"?m:c.key==="ArrowRight"?-m:0),y:o.y+(c.key==="ArrowUp"?m:c.key==="ArrowDown"?-m:0)},p();else return;c.preventDefault()},Wt=c=>{const m=c.target instanceof HTMLElement?c.target:null;if(m===null||!c.composedPath().includes(e))return;const k=m.getBoundingClientRect(),x=t.getBoundingClientRect();let C=0,L=0;k.left<x.left+12?C=x.left+12-k.left:k.right>x.right-12&&(C=x.right-12-k.right),k.top<x.top+12?L=x.top+12-k.top:k.bottom>x.bottom-40&&(L=x.bottom-40-k.bottom),!(C===0&&L===0)&&(o={...o,x:o.x+C,y:o.y+L},p())};t.addEventListener("wheel",Q,{passive:!1}),t.addEventListener("pointerdown",tt),t.addEventListener("pointermove",Ht),t.addEventListener("pointerup",_t),t.addEventListener("pointercancel",et),t.addEventListener("lostpointercapture",et),t.addEventListener("click",Bt,!0),t.addEventListener("keydown",Nt),t.addEventListener("focusin",Wt);const Gt=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>p());return Gt?.observe(t),{setContent(c){d=he(c.width===0&&c.height===0?[]:[c]),l&&(e.style.width=`${c.width}px`,e.style.height=`${c.height}px`),p()},apply:p,fit:f,fitTo:S,fitWidth:O,reset:lt,zoom:_,view:()=>({...o}),destroy(){Gt?.disconnect(),t.removeEventListener("wheel",Q),t.removeEventListener("pointerdown",tt),t.removeEventListener("pointermove",Ht),t.removeEventListener("pointerup",_t),t.removeEventListener("pointercancel",et),t.removeEventListener("lostpointercapture",et),t.removeEventListener("click",Bt,!0),t.removeEventListener("keydown",Nt),t.removeEventListener("focusin",Wt)}}},za=["fit","fit-width","actual","none"];class Ta{#n;#t=null;#e=null;#s=!1;constructor(t,e){this.#n=e,t.addController(this)}hostDisconnected(){this.detach()}get attached(){return this.#t!==null}get view(){return this.#t?.view()??{x:0,y:0,scale:1}}attach(){this.detach();const t=this.#n.elements();if(t===null)return;const{canvas:e,world:s}=t;this.#t=Ea({canvas:e,world:s,align:this.#n.align(),sizeWorld:!1,onClearSelection:()=>this.#n.onDismiss(),onView:n=>this.#n.onView(n)}),this.#e=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>this.sync()),this.#e?.observe(s),this.sync()}detach(){this.#t?.destroy(),this.#t=null,this.#e?.disconnect(),this.#e=null}sync(){const t=this.#t,e=this.#n.elements()?.world;if(t===null||e===void 0)return;const s=this.#n.contentSize();e.style.width=s?`${s.width}px`:"",e.style.height=s?`${s.height}px`:"";const n=s?.width??e.offsetWidth,i=s?.height??e.offsetHeight;t.setContent({x:0,y:0,width:n,height:i}),!this.#s&&n>0&&i>0&&this.open()}open(){const t=this.#t;if(t===null)return;this.#s=!0;const e=this.#n.initial(),s=za.includes(e)?e:"fit";s==="fit"?t.fit():s==="fit-width"?t.fitWidth():s==="actual"&&t.reset()}fit(){this.#t?.fit()}fitWidth(){this.#t?.fitWidth()}fitTo(t){this.#t?.fitTo(t)}reset(t){this.#t?.reset(t)}zoom(t){this.#t?.zoom(t)}apply(){this.#t?.apply()}}const Aa=(a,t,e)=>a.some(s=>Math.abs(t)>Math.abs(e)?s.overflowX!=="auto"&&s.overflowX!=="scroll"||s.scrollWidth<=s.clientWidth?!1:t>0?s.scrollLeft+s.clientWidth<s.scrollWidth-1:t<0&&s.scrollLeft>0:s.overflowY!=="auto"&&s.overflowY!=="scroll"||s.scrollHeight<=s.clientHeight?!1:e>0?s.scrollTop+s.clientHeight<s.scrollHeight-1:e<0&&s.scrollTop>0),fe=160,zt=(a,t,e=fe)=>Math.max(e,Math.round(a+t)),Ma=(a,t,e,s=fe)=>{const n=e?96:24;return t==="ArrowDown"?zt(a,n,s):t==="ArrowUp"?zt(a,-n,s):null},be={kind:"idle"};class La{constructor(t,e){this.#e=null,this.#s=be,this.handlers={pointerdown:s=>{if(s.button!==0)return;s.preventDefault();const n=s.currentTarget;n instanceof Element&&n.setPointerCapture(s.pointerId),this.#s={kind:"dragging",pointerId:s.pointerId,startY:s.clientY,startHeight:this.#t()},this.#n.requestUpdate()},pointermove:s=>{const n=this.#s;n.kind!=="dragging"||n.pointerId!==s.pointerId||this.#a(zt(n.startHeight,s.clientY-n.startY))},pointerup:s=>this.#i(s),pointercancel:s=>this.#i(s),keydown:s=>{const n=Ma(this.#e??this.#t(),s.key,s.shiftKey);n!==null&&(s.preventDefault(),this.#a(n))},dblclick:()=>this.#a(null)},this.#n=t,this.#t=e,t.addController(this)}#n;#t;#e;#s;hostConnected(){}get height(){return this.#e}get dragging(){return this.#s.kind==="dragging"}#a(t){t!==this.#e&&(this.#e=t,this.#n.requestUpdate())}#i(t){const e=this.#s;e.kind!=="dragging"||e.pointerId!==t.pointerId||(this.#s=be,this.#n.requestUpdate())}}const Da=D({en:{maximize:"Maximize",restore:"Restore size",controls:"View controls",zoomOut:"Zoom out",fit:"Fit to view",zoomIn:"Zoom in",canvas:"Canvas. Arrow keys pan, plus and minus zoom, 0 fits the view.",resize:"Resize the panel",resizeHint:"Drag or use the up and down arrows to resize. Double-click restores the height."},ja:{maximize:"\u6700\u5927\u5316",restore:"\u5143\u306E\u30B5\u30A4\u30BA\u306B\u623B\u3059",controls:"\u8868\u793A\u306E\u64CD\u4F5C",zoomOut:"\u7E2E\u5C0F",fit:"\u5168\u4F53\u3092\u8868\u793A",zoomIn:"\u62E1\u5927",canvas:"\u30AD\u30E3\u30F3\u30D0\u30B9\u3002\u77E2\u5370\u30AD\u30FC\u3067\u30D1\u30F3\u3001\u30D7\u30E9\u30B9\u30FB\u30DE\u30A4\u30CA\u30B9\u3067\u30BA\u30FC\u30E0\u30010\u3067\u5168\u4F53\u8868\u793A\u3002",resize:"\u30D1\u30CD\u30EB\u306E\u9AD8\u3055\u3092\u5909\u3048\u308B",resizeHint:"\u30C9\u30E9\u30C3\u30B0\u3001\u307E\u305F\u306F\u4E0A\u4E0B\u306E\u77E2\u5370\u30AD\u30FC\u3067\u9AD8\u3055\u3092\u5909\u3048\u308B\u3002\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u3067\u5143\u306E\u9AD8\u3055\u306B\u623B\u3059\u3002"}});class ke extends z{static{this.styles=[M,K,T`
|
|
1
|
+
import{aE as bt,ai as h,as as r,S as qs,aQ as G,a5 as D,ak as z,X as M,j as K,ah as T,al as R,b2 as Ps,H as Is,b3 as Xt,b4 as Os,b5 as Us,au as B,a9 as kt,aw as u,b6 as Yt,aa as w,aX as vt,a8 as Zt,aD as Jt,ac as b,aL as Fs,ad as dt,aO as Qt,az as st,aH as F,b7 as te,av as y,ax as $,a_ as xt,ay as E,aM as W,aB as at,aj as I,aC as ee,ab as V,aA as se,ag as yt,ar as ae,aY as Hs,aW as ne,b8 as _s,b9 as wt,ba as Bs,bb as ie,bc as ct,z as Ns,bd as re,aG as Ws,aZ as Gs,y as Ks,be as Vs,_ as Xs,$ as Ys}from"./shared-DdpMqkAH.js";import{o as N,r as Zs}from"./shared-TrlnHjrJ.js";import{e as Js}from"./shared-a9QCZpxj.js";import{a as oe,c as Qs}from"./shared-Cas88qVh.js";import{c as ta}from"./shared-qk9TB_UM.js";import{p as ea,i as sa,r as aa,c as na,a as le,b as de,d as ia,e as ra,f as oa,h as ce,g as la,j as $t,s as da,k as ca,l as pa,m as ha,n as ua,t as ma}from"./shared-C-M2Nfmu.js";import{B as ga,t as fa,v as ba,i as ka,k as va,j as xa}from"./shared-df9XN7ns.js";import{d as ya}from"./shared-CnPCm4bJ.js";class pt{#n;#t;#e=null;#s=null;#a=null;#i=null;#r=new Map;#o=null;constructor(t){this.#n=t,this.#t=new bt(t),t.addController(this)}get isOpen(){return this.#e!==null}open(t,e,s){this.#e=t,this.#a=e,this.#i=s??null,this.#o=null,this.#n.requestUpdate()}close(){this.#e=null,this.#a=null,this.#i=null,this.#n.requestUpdate()}hostDisconnected(){this.close()}sync(t){const e=this.#s!==this.#e;this.#s=this.#e,!(t===null||this.#a===null||this.#e===null)&&(this.#t.open(t,this.#a,{width:300,height:280},{placement:"right-start",trackTransform:!0}),e&&t.querySelector("textarea")?.focus({preventScroll:!0}))}render(t){const e=this.#e;if(e===null)return h;const s=ea(this.#r.get(e)??"",[],{...this.#i===null?{}:{label:this.#i},key:e,...this.#o===e&&t.errorMessage!==void 0?{error:t.errorMessage}:{}});return r`${sa(e,aa(na(t.locale),s,n=>this.#l(e,t.submit,n)))}`}#l(t,e,s){if(s.kind==="input"){this.#r=new Map(this.#r).set(t,s.body),this.#o=null,this.#n.requestUpdate();return}if(s.kind==="comment"){if(!e(t,s.body)){this.#o=t,this.#n.requestUpdate();return}const i=new Map(this.#r);i.delete(t),this.#r=i}this.#o=null,this.close()}}const Ct=(a,t,e,s)=>{if(a===null)return null;const n=qs(a),i=t.find(l=>l.value===n);return i===void 0?null:{id:"review-comment",entries:[{kind:"item",id:"review-comment",label:e.reviewComment,run:()=>s(n,i.label)}]}},ht=.08,pe=1.8,he=a=>{if(a.length===0)return{x:0,y:0,width:0,height:0};const t=Math.min(...a.map(i=>i.x)),e=Math.min(...a.map(i=>i.y)),s=Math.max(...a.map(i=>i.x+i.width))-t,n=Math.max(...a.map(i=>i.y+i.height))-e;return{x:t-s*.1,y:e-n*.1,width:s*1.2,height:n*1.2}},ue=(a,t)=>a+t/12,wa=(a,t)=>{if(a.length===0)return null;const e=Math.min(...a.map(n=>n.y)),s=a.filter(n=>n.y<e+t);return{x:Math.min(...s.map(n=>n.x)),y:e}},St=16,$a=.8,ut=(a,t,e,s,n)=>a==="start"?St-ue(t,e)*s:(n-e*s)/2-t*s,me=(a,t,e,s,n="center")=>{if(t.width===0||t.height===0)return{...a,x:0,y:0};const i=(l,d,o,g)=>{const p=o*a.scale,f=g*$a;if(p<=g){const S=ut(n,d,o,a.scale,g);return G(l,S-f,S+f)}return G(l,g-(d+o)*a.scale-f,-d*a.scale+f)};return{...a,x:i(a.x,t.x,t.width,e),y:i(a.y,t.y,t.height,s)}},Ca=(a,t,e,s,n,i,l="center")=>{const d=Math.abs(i)>Math.abs(n);if(d&&t.height*a.scale<=s)return null;const o=me({...a,x:a.x-n,y:a.y-i},t,e,s,l);return d&&o.y===a.y?null:o},Sa=a=>Math.exp(-a*.01),ge='button,[role="button"],a,input,textarea,select',Et=(a,t,e)=>{for(const s of a.composedPath()){if(s===t)return null;if(s instanceof Element&&s.matches(e))return s}return null},Ea=a=>{const{canvas:t,world:e,onClearSelection:s,onView:n,align:i="center",sizeWorld:l=!0}=a;let d={x:0,y:0,width:0,height:0},o={x:0,y:0,scale:1};const g=()=>({width:t.clientWidth||1e3,height:t.clientHeight||560}),p=()=>{const{width:c,height:m}=g();o=me(o,d,c,m,i),e.style.transform=`translate(${o.x}px, ${o.y}px) scale(${o.scale})`,e.style.setProperty("--dpk-zoom-inverse",String(1/o.scale)),e.style.setProperty("--dpk-zoom-scale",String(o.scale)),n?.(o)},f=()=>{const{width:c,height:m}=g(),k=d.width/1.2||1,x=d.height/1.2||1,C=G(Math.min((c-24)/k,(m-40)/x),ht,1);o={scale:C,x:ut(i,d.x,d.width,C,c),y:ut(i,d.y,d.height,C,m)},p()},S=c=>{const{width:m,height:k}=g(),x=he([c]),C=x.width/1.2||1,L=x.height/1.2||1;o={...o,scale:G(Math.min((m-24)/C,(k-40)/L),ht,pe)},o={...o,x:(m-x.width*o.scale)/2-x.x*o.scale,y:(k-x.height*o.scale)/2-x.y*o.scale},p()},O=()=>{const{width:c}=g(),m=d.width/1.2||1,k=G((c-24)/m,ht,1);o={scale:k,x:(c-d.width*k)/2-d.x*k,y:16},p()},lt=c=>{const{width:m,height:k}=g(),x=(C,L,Kt,Vt)=>Vt!==void 0?St-Vt:L<=Kt?ut(i,C,L,1,Kt):St-ue(C,L);o={scale:1,x:x(d.x,d.width,m,c?.x),y:x(d.y,d.height,k,c?.y)},p()},_=(c,m=g().width/2,k=g().height/2)=>{const x=o.scale,C=G(x*c,ht,pe);C!==x&&(o={scale:C,x:m-(m-o.x)*C/x,y:k-(k-o.y)*C/x},p())},Q=c=>{if(Et(c,t,".diagram-zoom")!==null)return;const m=c.deltaMode===1?16:c.deltaMode===2?g().height:1;if(c.ctrlKey||c.metaKey){c.preventDefault();const L=t.getBoundingClientRect();_(Sa(c.deltaY),c.clientX-L.left,c.clientY-L.top);return}const{width:k,height:x}=g(),C=Ca(o,d,k,x,c.deltaX*m,c.deltaY*m,i);C!==null&&(c.preventDefault(),o=C,p())},q=new Map;let A=null,P=!1;const U=()=>{const c=[...q.values()],m=c[0];if(!m)return null;const k=c[1];return k?{x:(m.x+k.x)/2,y:(m.y+k.y)/2,distance:Math.hypot(k.x-m.x,k.y-m.y)}:{...m,distance:0}},tt=c=>{q.size===0&&(P=!1);const m=Et(c,t,ge);c.button!==0||c.pointerType!=="touch"&&m!==null||(q.set(c.pointerId,{x:c.clientX,y:c.clientY}),A=U(),m===null&&t.setPointerCapture(c.pointerId),c.pointerType!=="touch"&&m===null&&(c.preventDefault(),t.focus({preventScroll:!0})))},Ht=c=>{if(!q.has(c.pointerId)||A===null)return;q.set(c.pointerId,{x:c.clientX,y:c.clientY});const m=U();if(m===null)return;const k=m.x-A.x,x=m.y-A.y;if((Math.abs(k)+Math.abs(x)>1||Math.abs(m.distance-A.distance)>1)&&(P=!0),m.distance>0&&A.distance>0){const C=t.getBoundingClientRect();_(Math.pow(m.distance/A.distance,.45),A.x-C.left,A.y-C.top)}o={...o,x:o.x+k,y:o.y+x},p(),A=m,t.classList.toggle("is-panning",P)},et=c=>{q.delete(c.pointerId),A=U(),!(q.size>0)&&(t.classList.remove("is-panning"),c.type==="pointercancel"&&(P=!1))},_t=c=>{P&&(c.preventDefault(),c.stopPropagation()),et(c)},Bt=c=>{if(P){c.preventDefault(),c.stopPropagation(),P=!1;return}!(c.target instanceof Element)||Et(c,t,ge)!==null||s()},Nt=c=>{if(c.target!==t)return;const m=30;if(c.key==="+"||c.key==="=")_(1.1);else if(c.key==="-")_(1/1.1);else if(c.key==="0")f();else if(c.key==="Escape"){if(s()===!1)return}else if(c.key==="ArrowLeft"||c.key==="ArrowRight"||c.key==="ArrowUp"||c.key==="ArrowDown")o={...o,x:o.x+(c.key==="ArrowLeft"?m:c.key==="ArrowRight"?-m:0),y:o.y+(c.key==="ArrowUp"?m:c.key==="ArrowDown"?-m:0)},p();else return;c.preventDefault()},Wt=c=>{const m=c.target instanceof HTMLElement?c.target:null;if(m===null||!c.composedPath().includes(e))return;const k=m.getBoundingClientRect(),x=t.getBoundingClientRect();let C=0,L=0;k.left<x.left+12?C=x.left+12-k.left:k.right>x.right-12&&(C=x.right-12-k.right),k.top<x.top+12?L=x.top+12-k.top:k.bottom>x.bottom-40&&(L=x.bottom-40-k.bottom),!(C===0&&L===0)&&(o={...o,x:o.x+C,y:o.y+L},p())};t.addEventListener("wheel",Q,{passive:!1}),t.addEventListener("pointerdown",tt),t.addEventListener("pointermove",Ht),t.addEventListener("pointerup",_t),t.addEventListener("pointercancel",et),t.addEventListener("lostpointercapture",et),t.addEventListener("click",Bt,!0),t.addEventListener("keydown",Nt),t.addEventListener("focusin",Wt);const Gt=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>p());return Gt?.observe(t),{setContent(c){d=he(c.width===0&&c.height===0?[]:[c]),l&&(e.style.width=`${c.width}px`,e.style.height=`${c.height}px`),p()},apply:p,fit:f,fitTo:S,fitWidth:O,reset:lt,zoom:_,view:()=>({...o}),destroy(){Gt?.disconnect(),t.removeEventListener("wheel",Q),t.removeEventListener("pointerdown",tt),t.removeEventListener("pointermove",Ht),t.removeEventListener("pointerup",_t),t.removeEventListener("pointercancel",et),t.removeEventListener("lostpointercapture",et),t.removeEventListener("click",Bt,!0),t.removeEventListener("keydown",Nt),t.removeEventListener("focusin",Wt)}}},za=["fit","fit-width","actual","none"];class Ta{#n;#t=null;#e=null;#s=!1;constructor(t,e){this.#n=e,t.addController(this)}hostDisconnected(){this.detach()}get attached(){return this.#t!==null}get view(){return this.#t?.view()??{x:0,y:0,scale:1}}attach(){this.detach();const t=this.#n.elements();if(t===null)return;const{canvas:e,world:s}=t;this.#t=Ea({canvas:e,world:s,align:this.#n.align(),sizeWorld:!1,onClearSelection:()=>this.#n.onDismiss(),onView:n=>this.#n.onView(n)}),this.#e=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>this.sync()),this.#e?.observe(s),this.sync()}detach(){this.#t?.destroy(),this.#t=null,this.#e?.disconnect(),this.#e=null}sync(){const t=this.#t,e=this.#n.elements()?.world;if(t===null||e===void 0)return;const s=this.#n.contentSize();e.style.width=s?`${s.width}px`:"",e.style.height=s?`${s.height}px`:"";const n=s?.width??e.offsetWidth,i=s?.height??e.offsetHeight;t.setContent({x:0,y:0,width:n,height:i}),!this.#s&&n>0&&i>0&&this.open()}open(){const t=this.#t;if(t===null)return;this.#s=!0;const e=this.#n.initial(),s=za.includes(e)?e:"fit";s==="fit"?t.fit():s==="fit-width"?t.fitWidth():s==="actual"&&t.reset()}fit(){this.#t?.fit()}fitWidth(){this.#t?.fitWidth()}fitTo(t){this.#t?.fitTo(t)}reset(t){this.#t?.reset(t)}zoom(t){this.#t?.zoom(t)}apply(){this.#t?.apply()}}const Aa=(a,t,e)=>a.some(s=>Math.abs(t)>Math.abs(e)?s.overflowX!=="auto"&&s.overflowX!=="scroll"||s.scrollWidth<=s.clientWidth?!1:t>0?s.scrollLeft+s.clientWidth<s.scrollWidth-1:t<0&&s.scrollLeft>0:s.overflowY!=="auto"&&s.overflowY!=="scroll"||s.scrollHeight<=s.clientHeight?!1:e>0?s.scrollTop+s.clientHeight<s.scrollHeight-1:e<0&&s.scrollTop>0),fe=160,zt=(a,t,e=fe)=>Math.max(e,Math.round(a+t)),Ma=(a,t,e,s=fe)=>{const n=e?96:24;return t==="ArrowDown"?zt(a,n,s):t==="ArrowUp"?zt(a,-n,s):null},be={kind:"idle"};class La{constructor(t,e){this.#e=null,this.#s=be,this.handlers={pointerdown:s=>{if(s.button!==0)return;s.preventDefault();const n=s.currentTarget;n instanceof Element&&n.setPointerCapture(s.pointerId),this.#s={kind:"dragging",pointerId:s.pointerId,startY:s.clientY,startHeight:this.#t()},this.#n.requestUpdate()},pointermove:s=>{const n=this.#s;n.kind!=="dragging"||n.pointerId!==s.pointerId||this.#a(zt(n.startHeight,s.clientY-n.startY))},pointerup:s=>this.#i(s),pointercancel:s=>this.#i(s),keydown:s=>{const n=Ma(this.#e??this.#t(),s.key,s.shiftKey);n!==null&&(s.preventDefault(),this.#a(n))},dblclick:()=>this.#a(null)},this.#n=t,this.#t=e,t.addController(this)}#n;#t;#e;#s;hostConnected(){}get height(){return this.#e}get dragging(){return this.#s.kind==="dragging"}#a(t){t!==this.#e&&(this.#e=t,this.#n.requestUpdate())}#i(t){const e=this.#s;e.kind!=="dragging"||e.pointerId!==t.pointerId||(this.#s=be,this.#n.requestUpdate())}}const Da=D({en:{maximize:"Maximize",restore:"Restore size",controls:"View controls",zoomOut:"Zoom out",fit:"Fit to view",zoomIn:"Zoom in",canvas:"Canvas. Arrow keys pan, plus and minus zoom, 0 fits the view.",resize:"Resize the panel",resizeHint:"Drag or use the up and down arrows to resize. Double-click restores the height."},ja:{maximize:"\u6700\u5927\u5316",restore:"\u5143\u306E\u30B5\u30A4\u30BA\u306B\u623B\u3059",controls:"\u8868\u793A\u306E\u64CD\u4F5C",zoomOut:"\u7E2E\u5C0F",fit:"\u5168\u4F53\u3092\u8868\u793A",zoomIn:"\u62E1\u5927",canvas:"\u30AD\u30E3\u30F3\u30D0\u30B9\u3002\u77E2\u5370\u30AD\u30FC\u3067\u30D1\u30F3\u3001\u30D7\u30E9\u30B9\u30FB\u30DE\u30A4\u30CA\u30B9\u3067\u30BA\u30FC\u30E0\u30010\u3067\u5168\u4F53\u8868\u793A\u3002",resize:"\u30D1\u30CD\u30EB\u306E\u9AD8\u3055\u3092\u5909\u3048\u308B",resizeHint:"\u30C9\u30E9\u30C3\u30B0\u3001\u307E\u305F\u306F\u4E0A\u4E0B\u306E\u77E2\u5370\u30AD\u30FC\u3067\u9AD8\u3055\u3092\u5909\u3048\u308B\u3002\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u3067\u5143\u306E\u9AD8\u3055\u306B\u623B\u3059\u3002"}});class ke extends z{static{this.styles=[M,K,T`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
color: var(--dpk-ink);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{au as Re,bf as P,av as b,aw as i,aa as x,ac as c,az as $,aM as h,aB as Z,aN as W,ax as ee,ay as ae,p as y,t as Ie,aC as Qe,aO as Ue,aA as He,ab as R,N as Me,e as Ke,a5 as Fe,S as je,P as z,ai as d,as as n,z as Ye,aH as w,bc as te,bd as Ve,I as Xe,bz as I,ah as Je,V as oe,bh as Ze,l as ea,b9 as aa}from"./shared-BQqlFaPv.js";import{a as ta}from"./shared-Dj_D4ypT.js";import{D as oa,d as ra}from"./shared-DXoggfKr.js";import{o as T}from"./shared-ztEUikTm.js";const re=["working","waiting","blocked","done"],A=["todo","doing","blocked","done"],ne=["agent","human"],q=["why","what","goals","nonGoals"],O=ee(c(),ae(1)),na=b({id:h,name:O,kind:i($(ne),"agent")}),sa=b({id:h,title:O,status:i($(A),"todo"),assignee:i(h),note:i(c()),proposed:i(Z(),!1),reason:i(c()),questions:W}),da=b({id:h,label:i(c()),href:O,kind:i(c()),description:i(c()),questions:W}),ia=b({why:i(c()),what:i(c()),goals:i(x(c()),[]),nonGoals:i(x(c()),[])}),la=b({id:h,from:i(h),at:i(c()),title:i(c()),body:i(c()),points:i(x(c()),[]),questions:W}),pa=b({id:h,ref:i(O),title:O,description:i(c()),blocking:i(Z(),!1),assumption:i(c())}),se=b({title:i(c(),""),status:i($(re)),updatedAt:i(c()),context:i(ia,{}),members:i(x(na),[]),todos:i(x(sa),[]),outputs:i(x(da),[]),log:i(x(la),[]),questions:i(x(pa),[])}),S=(a,e)=>{const t=new Set;for(const o of e){if(t.has(o))throw new Error(`duplicate ${a} id: ${o}`);t.add(o)}},u=a=>a===void 0||a.trim()===""?null:a,Q=a=>a.filter(e=>e.trim()!==""),de=a=>{const e=Re(se,a);S("member",e.members.map(o=>o.id)),S("todo",e.todos.map(o=>o.id)),S("output",e.outputs.map(o=>o.id)),S("log",e.log.map(o=>o.id)),S("question",e.questions.map(o=>o.id));const t=new Set(e.members.map(o=>o.id));for(const o of e.todos)if(o.assignee!==void 0&&!t.has(o.assignee))throw new Error(`todo ${o.id} is assigned to ${o.assignee}, which is not in members`);for(const o of e.log){if(o.from!==void 0&&!t.has(o.from))throw new Error(`log entry ${o.id} is from ${o.from}, which is not in members`);if(u(o.title)===null&&u(o.body)===null)throw new Error(`log entry ${o.id} needs a title or a body`)}for(const o of e.questions)if(!o.blocking&&u(o.assumption)===null)throw new Error(`question ${o.id} does not block, so it needs the assumption the agent works on`);return{title:e.title,status:e.status??null,updatedAt:u(e.updatedAt),context:{why:u(e.context.why),what:u(e.context.what),goals:Q(e.context.goals),nonGoals:Q(e.context.nonGoals)},members:e.members,todos:e.todos.map(o=>({id:o.id,title:o.title,status:o.status,assignee:o.assignee??null,note:u(o.note),proposed:o.proposed,reason:u(o.reason),added:!1,...P(o.questions)})),outputs:e.outputs.map(o=>({id:o.id,label:u(o.label),href:o.href,kind:u(o.kind),description:u(o.description),...P(o.questions)})),log:e.log.map(o=>({id:o.id,from:o.from??null,at:u(o.at),title:u(o.title),body:u(o.body),points:Q(o.points),...P(o.questions)})),questions:e.questions.map((o,r)=>({id:o.id,ref:o.ref??`Q${r+1}`,title:o.title,description:u(o.description),blocking:o.blocking,assumption:u(o.assumption)})),answers:{},decisions:{}}},ie=()=>({title:"",status:null,updatedAt:null,context:{why:null,what:null,goals:[],nonGoals:[]},members:[],todos:[],outputs:[],log:[],questions:[],answers:{},decisions:{}}),D=(a,e)=>e===null?void 0:a.members.find(t=>t.id===e),k=(a,e)=>a.todos.find(t=>t.id===e),le=(a,e)=>a.log.find(t=>t.id===e),pe=a=>q.includes(a),U=(a,e)=>{const t=a.context[e];return typeof t=="string"||t!==null&&t.length>0},L=(a,e)=>a.questions.find(t=>t.id===e),ce=(a,e)=>{const t=a.answers[e.id];return t===void 0?!1:t.kind==="approve"||t.text.trim()!==""},H=(a,e)=>!e.proposed||a.decisions[e.id]==="accept",_=(a,e)=>H(a,e)&&D(a,e.assignee)?.kind==="human",ue=(a,e,t)=>{const o={...a};return t===null?delete o[e]:o[e]=t,o},M=(a,e,t)=>({...a,answers:ue(a.answers,e,t)}),ca=(a,e,t)=>({...a,decisions:ue(a.decisions,e,t)}),ua=(a,e,t)=>({...a,todos:a.todos.map(o=>o.id===e?t(o):o)}),m={ANSWER_QUESTION:y("ANSWER_QUESTION","question",Qe("kind",[b({kind:R("approve")}),b({kind:R("answer"),text:c()}),b({kind:R("clear")})])),DECIDE_PROPOSAL:y("DECIDE_PROPOSAL","todo",b({decision:$(["accept","decline","clear"])})),SET_TODO_STATUS:y("SET_TODO_STATUS","todo",b({status:$(A)})),ADD_TODO:y("ADD_TODO","page",b({id:h,title:ee(c(),He(),ae(1)),assignee:Ue(h)}),{dedupeKey:Ie}),DELETE_TODO:y("DELETE_TODO","todo",b({}))},be={type:"page",id:"task-board"},K=(a,e)=>({type:"ANSWER_QUESTION",target:{type:"question",id:a},payload:e}),ge=(a,e)=>({type:"DECIDE_PROPOSAL",target:{type:"todo",id:a},payload:{decision:e}}),F=(a,e)=>({type:"SET_TODO_STATUS",target:{type:"todo",id:a},payload:{status:e}}),he=(a,e,t)=>({type:"ADD_TODO",target:be,payload:{id:a,title:e,assignee:t}}),ke=a=>({type:"DELETE_TODO",target:{type:"todo",id:a},payload:{}}),fe=(a,e)=>{const t=Me(m,e);if(t===null)return null;const o=t.target.id;switch(t.type){case"ANSWER_QUESTION":{const r=L(a,o);if(r===void 0)return null;const s=t.payload;return s.kind==="clear"?M(a,o,null):s.kind==="approve"?r.assumption===null?null:M(a,o,{kind:"approve"}):M(a,o,{kind:"answer",text:s.text})}case"DECIDE_PROPOSAL":{if(k(a,o)?.proposed!==!0)return null;const{decision:r}=t.payload;return ca(a,o,r==="clear"?null:r)}case"SET_TODO_STATUS":{const r=k(a,o);if(r===void 0||!_(a,r))return null;const{status:s}=t.payload;return ua(a,o,l=>({...l,status:s}))}case"ADD_TODO":{const{payload:r}=t;return k(a,r.id)!==void 0||r.assignee!==null&&D(a,r.assignee)===void 0?null:{...a,todos:[...a.todos,{id:r.id,title:r.title,status:"todo",assignee:r.assignee,note:null,proposed:!1,reason:null,added:!0}]}}case"DELETE_TODO":return k(a,o)?.added!==!0?null:{...a,todos:a.todos.filter(r=>r.id!==o)};default:return Ke(t)}},j=Fe({en:{wholeBoard:"Whole board",statusWorking:"Working",statusWaiting:"Waiting on you",statusBlocked:"Blocked",statusDone:"Done",todoTodo:"To do",todoDoing:"In progress",todoBlocked:"Blocked",todoDone:"Done",kindAgent:"Agent",kindHuman:"Human",updatedAt:a=>`Updated ${a}`,context:"What this task is about",contextWhy:"Why",contextWhat:"What",contextGoals:"Goals",contextNonGoals:"Non-goals",noContext:"The agent has not written down why and what yet.",tabs:"Board sections",tabContext:"Context",tabLog:"Work log",tabQuestions:"Questions",tabTasks:"Tasks",openCount:a=>`${a} open`,noQuestions:"The agent has nothing to ask right now.",questions:"Questions from the agent",questionsProgress:(a,e)=>`${a} of ${e} replied`,blockingGroup:"Blocking \u2014 the agent waits for your decision",provisionalGroup:"Going ahead on an assumption \u2014 the agent adjusts if you answer otherwise",blockingTag:"Blocking",assumption:"Assumption",recommendation:"Agent recommends",approveAssumption:"OK, go with this",approveRecommendation:"OK, go with the recommendation",answerOther:"Answer differently",answerOf:a=>`Your answer to ${a}`,answerPlaceholder:"What you expect instead\u2026",blockingPlaceholder:"Your decision\u2026",approvedTag:"Approved",answeredTag:"Answered",progress:(a,e)=>`${a} of ${e} done`,noTodosYet:"No todos yet",tasksBoard:"Tasks by status",laneCount:a=>a===1?"1 task":`${a} tasks`,laneEmpty:"Nothing here",dragHint:"Drop on another column to change the status",assignee:"Assignee",unassigned:"Unassigned",memberOption:(a,e)=>`${a} (${e})`,statusOf:a=>`Status of \u201C${a}\u201D`,filterTodos:"Show todos",filterAll:"All",filterHuman:"People",addedTag:"Added by you",changedTag:"Changed",removeAdded:"Remove this todo you added",newTodo:"New todo",newTodoPlaceholder:"Add a todo for the agent\u2026",newTodoAssignee:"Assignee of the new todo",addTodo:"Add",proposedMark:"Proposed by the agent",reason:"Why",accept:"Accept",decline:"Decline",decisionOf:a=>`Decision on \u201C${a}\u201D`,acceptedTag:"Accepted",declinedTag:"Declined",undoDecision:"Undo",outputs:"Outputs",noOutputs:"Nothing has been produced yet.",copy:a=>`Copy ${a}`,copied:"Copied",log:"Conversation with the agent",logLede:"Newest first",noLog:"Nothing has been exchanged yet.",fromAgent:"Agent",latestTag:"Latest",commentOn:a=>`Comment on ${a}`,todoGroup:"Todo",logGroup:"Log",contextGroup:"Context",proposalGroup:"Proposal",questionGroup:"Question",approved:"Approve the assumption",answered:"Answer",answerCleared:"Clear the reply",accepted:"Accept the proposal",declined:"Decline the proposal",decisionCleared:"Clear the decision",statusChanged:"Change the status",todoAdded:"Add a todo",todoRemoved:"Remove the added todo",quoted:a=>`\u2192 \u201C${a}\u201D`,change:(a,e)=>`${a} \u2192 ${e}`},ja:{wholeBoard:"\u30DC\u30FC\u30C9\u5168\u4F53",statusWorking:"\u4F5C\u696D\u4E2D",statusWaiting:"\u3042\u306A\u305F\u306E\u8FD4\u7B54\u5F85\u3061",statusBlocked:"\u30D6\u30ED\u30C3\u30AF\u4E2D",statusDone:"\u5B8C\u4E86",todoTodo:"\u672A\u7740\u624B",todoDoing:"\u9032\u884C\u4E2D",todoBlocked:"\u30D6\u30ED\u30C3\u30AF",todoDone:"\u5B8C\u4E86",kindAgent:"Agent",kindHuman:"\u4EBA\u9593",updatedAt:a=>`\u66F4\u65B0 ${a}`,context:"\u3053\u306E\u30BF\u30B9\u30AF\u306E\u524D\u63D0",contextWhy:"Why \u2014 \u306A\u305C\u3084\u308B\u304B",contextWhat:"What \u2014 \u4F55\u3092\u3084\u308B\u304B",contextGoals:"\u30B4\u30FC\u30EB",contextNonGoals:"\u3084\u3089\u306A\u3044\u3053\u3068",noContext:"Agent \u306F\u307E\u3060 Why / What \u3092\u66F8\u3044\u3066\u3044\u307E\u305B\u3093\u3002",tabs:"\u30DC\u30FC\u30C9\u306E\u533A\u5206",tabContext:"Context",tabLog:"\u4F5C\u696D\u30ED\u30B0",tabQuestions:"\u8CEA\u554F",tabTasks:"\u30BF\u30B9\u30AF",openCount:a=>`\u672A\u56DE\u7B54 ${a} \u4EF6`,noQuestions:"\u4ECA Agent \u304B\u3089\u805E\u304D\u305F\u3044\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",questions:"Agent \u304B\u3089\u306E\u8CEA\u554F",questionsProgress:(a,e)=>`\u8FD4\u7B54\u6E08\u307F ${a} / ${e}`,blockingGroup:"\u30D6\u30ED\u30C3\u30AB\u30FC \u2014 \u6C7A\u3081\u3066\u3082\u3089\u3046\u307E\u3067\u5148\u306B\u9032\u3081\u306A\u3044",provisionalGroup:"\u4EEE\u306E\u524D\u63D0\u3067\u9032\u884C\u4E2D \u2014 \u9055\u3048\u3070\u65B9\u91DD\u3092\u76F4\u3059",blockingTag:"\u30D6\u30ED\u30C3\u30AB\u30FC",assumption:"\u4EEE\u56DE\u7B54",recommendation:"Agent \u306E\u63A8\u5968",approveAssumption:"\u3053\u306E\u524D\u63D0\u3067 OK",approveRecommendation:"\u63A8\u5968\u3069\u304A\u308A\u3067 OK",answerOther:"\u5225\u306E\u56DE\u7B54\u3092\u3059\u308B",answerOf:a=>`${a} \u3078\u306E\u56DE\u7B54`,answerPlaceholder:"\u671F\u5F85\u3059\u308B\u56DE\u7B54\u3092\u5165\u529B\u2026",blockingPlaceholder:"\u3069\u3046\u3059\u308B\u304B\u3092\u5165\u529B\u2026",approvedTag:"\u627F\u8A8D\u6E08\u307F",answeredTag:"\u56DE\u7B54\u6E08\u307F",progress:(a,e)=>`${e} \u4EF6\u4E2D ${a} \u4EF6\u5B8C\u4E86`,noTodosYet:"Todo \u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",tasksBoard:"\u72B6\u614B\u3054\u3068\u306E\u30BF\u30B9\u30AF",laneCount:a=>`${a} \u4EF6`,laneEmpty:"\u306A\u3057",dragHint:"\u5225\u306E\u5217\u306B\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u3068\u72B6\u614B\u304C\u5909\u308F\u308A\u307E\u3059",assignee:"\u62C5\u5F53",unassigned:"\u672A\u5272\u308A\u5F53\u3066",memberOption:(a,e)=>`${a}\uFF08${e}\uFF09`,statusOf:a=>`\u300C${a}\u300D\u306E\u72B6\u614B`,filterTodos:"\u8868\u793A\u3059\u308B Todo",filterAll:"\u3059\u3079\u3066",filterHuman:"\u4EBA\u9593\u306E\u62C5\u5F53",addedTag:"\u3042\u306A\u305F\u304C\u8FFD\u52A0",changedTag:"\u5909\u66F4\u3042\u308A",removeAdded:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3059",newTodo:"\u65B0\u3057\u3044 Todo",newTodoPlaceholder:"Agent \u306B\u983C\u3080 Todo \u3092\u8FFD\u52A0\u2026",newTodoAssignee:"\u65B0\u3057\u3044 Todo \u306E\u62C5\u5F53",addTodo:"\u8FFD\u52A0",proposedMark:"Agent \u304B\u3089\u306E\u63D0\u6848",reason:"\u306A\u305C",accept:"\u627F\u8A8D",decline:"\u898B\u9001\u308A",decisionOf:a=>`\u300C${a}\u300D\u306E\u5224\u65AD`,acceptedTag:"\u627F\u8A8D\u6E08\u307F",declinedTag:"\u898B\u9001\u308A",undoDecision:"\u53D6\u308A\u6D88\u3059",outputs:"\u6210\u679C\u7269",noOutputs:"\u307E\u3060\u6210\u679C\u7269\u306F\u3042\u308A\u307E\u305B\u3093\u3002",copy:a=>`${a} \u3092\u30B3\u30D4\u30FC`,copied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",log:"Agent \u3068\u306E\u3084\u308A\u3068\u308A",logLede:"\u65B0\u3057\u3044\u9806",noLog:"\u307E\u3060\u3084\u308A\u3068\u308A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",fromAgent:"Agent",latestTag:"\u6700\u65B0",commentOn:a=>`${a} \u306B\u30B3\u30E1\u30F3\u30C8`,todoGroup:"Todo",logGroup:"\u4F5C\u696D\u30ED\u30B0",contextGroup:"Context",proposalGroup:"\u63D0\u6848",questionGroup:"\u8CEA\u554F",approved:"\u524D\u63D0\u3092\u627F\u8A8D",answered:"\u56DE\u7B54",answerCleared:"\u8FD4\u7B54\u3092\u30AF\u30EA\u30A2",accepted:"\u63D0\u6848\u3092\u627F\u8A8D",declined:"\u63D0\u6848\u3092\u898B\u9001\u308A",decisionCleared:"\u63D0\u6848\u306E\u5224\u65AD\u3092\u30AF\u30EA\u30A2",statusChanged:"\u72B6\u614B\u3092\u5909\u66F4",todoAdded:"Todo \u3092\u8FFD\u52A0",todoRemoved:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3057",quoted:a=>`\u2192 \u300C${a}\u300D`,change:(a,e)=>`${a} \u2192 ${e}`}}),xe=(a,e)=>{switch(e){case"working":return a.statusWorking;case"waiting":return a.statusWaiting;case"blocked":return a.statusBlocked;case"done":return a.statusDone}},E=(a,e)=>{switch(e){case"todo":return a.todoTodo;case"doing":return a.todoDoing;case"blocked":return a.todoBlocked;case"done":return a.todoDone}},ba=(a,e)=>e==="agent"?a.kindAgent:a.kindHuman,B=(a,e)=>{switch(e){case"why":return a.contextWhy;case"what":return a.contextWhat;case"goals":return a.contextGoals;case"nonGoals":return a.contextNonGoals}},me=48,Y=a=>{const e=a.title??a.body??a.id;return e.length<=me?e:`${e.slice(0,me-1)}\u2026`},ga=(a,e,t)=>t===null?a.unassigned:D(e,t)?.name??t,ve=a=>a.title===""?"Task Context Board":a.title,we=(a,e,t)=>{switch(t.type){case"todo":{const o=k(e,t.id);return`${o?.proposed===!0?a.proposalGroup:a.todoGroup} \xB7 ${o?.title??t.id}`}case"log":{const o=le(e,t.id);return`${a.logGroup} \xB7 ${o===void 0?t.id:Y(o)}`}case"context":return`${a.contextGroup} \xB7 ${pe(t.id)?B(a,t.id):t.id}`;case"question":{const o=L(e,t.id);return o===void 0?t.id:`${o.ref} \xB7 ${o.title}`}case"page":return a.wholeBoard;default:return t.id}},ha=(a,e)=>{switch(e){case"accept":return{title:a.accepted,tone:"update"};case"decline":return{title:a.declined,tone:"update"};case"clear":return{title:a.decisionCleared,tone:"delete"}}},ka=(a,e,t)=>{switch(t.type){case"ANSWER_QUESTION":{const o=z(m.ANSWER_QUESTION,t);if(o.kind==="clear")return{title:a.answerCleared,tone:"delete"};if(o.kind==="approve"){const r=L(e,t.target.id)?.assumption??null;return{title:a.approved,tone:"update",...r===null?{}:{body:a.quoted(r)}}}return{title:a.answered,tone:"update",body:a.quoted(o.text.slice(0,120))}}case"DECIDE_PROPOSAL":return ha(a,z(m.DECIDE_PROPOSAL,t).decision);case"SET_TODO_STATUS":{const{status:o}=z(m.SET_TODO_STATUS,t),r=k(e,t.target.id)?.status,s=E(a,o);return{title:a.statusChanged,tone:"update",body:r===void 0?s:a.change(E(a,r),s)}}case"ADD_TODO":{const o=z(m.ADD_TODO,t);return{title:a.todoAdded,tone:"create",targetLabel:`${a.todoGroup} \xB7 ${o.title}`,...o.assignee===null?{}:{body:`${a.assignee}: ${ga(a,e,o.assignee)}`}}}case"DELETE_TODO":return{title:a.todoRemoved,tone:"delete"};default:return{title:t.type,tone:"meta"}}},$e=(a,e,t,o)=>{let r;try{r=ka(a,o??t,e)}catch{r={title:e.type,tone:"meta"}}return{title:r.title,targetLabel:r.targetLabel??we(a,t,e.target),tone:r.tone,...r.body===void 0?{}:{summary:r.body}}},ye=a=>`${a.type} ${je(a.target)} ${JSON.stringify(a.payload)}`,Te=(a,e)=>[...e.questions.map(t=>({value:`question:${t.id}`,label:`${t.ref} \xB7 ${t.title}`,group:a.questionGroup})),...e.todos.map(t=>({value:`todo:${t.id}`,label:t.title,group:t.proposed?a.proposalGroup:a.todoGroup})),...e.log.map(t=>({value:`log:${t.id}`,label:Y(t),group:a.logGroup})),...q.filter(t=>U(e,t)).map(t=>({value:`context:${t}`,label:B(a,t),group:a.contextGroup}))],Ae=(a,e)=>e,Oe=(a,e,t)=>({parts:q.filter(o=>U(e,o)).map(o=>{const r=e.context[o];return{id:o,title:B(a,o),text:typeof r=="string"?r:null,items:typeof r=="string"||r===null?[]:r,comments:t(`context:${o}`)}})}),fa=(a,e,t)=>{const o=a.answers[e.id];return{id:e.id,ref:e.ref,title:e.title,description:e.description,blocking:e.blocking,assumption:e.assumption,reply:o?.kind??"none",resolved:ce(a,e),draft:o?.kind==="answer"?o.text:"",comments:t(`question:${e.id}`)}},Se=(a,e)=>{const t=a.questions.map(r=>fa(a,r,e)),o=t.filter(r=>r.resolved).length;return{blocking:t.filter(r=>r.blocking),provisional:t.filter(r=>!r.blocking),resolved:o,total:t.length,open:t.length-o,blockingOpen:t.filter(r=>r.blocking&&!r.resolved).length}},xa={todo:"gray",doing:"blue",blocked:"red",done:"green"},ma=(a,e,t,o,r)=>{const s=k(t,o.id),l=D(e,o.assignee);return{id:o.id,title:o.title,note:o.note,reason:o.reason,status:o.status,statusLabel:E(a,o.status),assignee:o.assignee,assigneeName:l?.name??null,assigneeKind:l?.kind??null,editable:_(e,o),proposal:o.proposed?e.decisions[o.id]??"pending":null,added:o.added,changed:s!==void 0&&s.status!==o.status,comments:r(`todo:${o.id}`),...o.questions===void 0?{}:{questions:o.questions}}},De=(a,e,t,o,r="all")=>{const s=e.members.some(p=>p.kind==="human"),l=s?r:"all",g=e.todos.map(p=>ma(a,e,t,p,o)),f=p=>p.assigneeKind==="human",Pe=l==="human"?g.filter(f):g,C=e.todos.filter(p=>H(e,p)),J=C.filter(p=>p.status==="done").length;return{lanes:A.map(p=>({status:p,label:E(a,p),tone:xa[p],cards:Pe.filter(We=>We.status===p)})),filter:l,canFilter:s,humanCount:g.filter(f).length,progress:{done:J,total:C.length,label:C.length===0?a.noTodosYet:a.progress(J,C.length)},statuses:A.map(p=>({value:p,label:E(a,p)})),members:e.members.map(p=>({id:p.id,label:a.memberOption(p.name,ba(a,p.kind))}))}},Ee=a=>{if(!/^[a-z][a-z\d+.-]*:\/\//i.test(a))return{kind:"path"};try{return{kind:"url",host:new URL(a).host}}catch{return{kind:"path"}}},Ce=a=>a.outputs.map(e=>({id:e.id,title:e.label??e.href,labelled:e.label!==null,href:e.href,kind:e.kind,description:e.description,place:Ee(e.href),...e.questions===void 0?{}:{questions:e.questions}})),ze=(a,e,t)=>({entries:e.log.map((o,r)=>{const s=D(e,o.from);return{id:o.id,author:s===void 0?null:{name:s.name,kind:s.kind},at:o.at,title:o.title,body:o.body,points:o.points,label:Y(o),latest:r===e.log.length-1,comments:t(`log:${o.id}`),...o.questions===void 0?{}:{questions:o.questions}}}).reverse(),status:e.status===null&&e.updatedAt===null?null:{status:e.status,label:e.status===null?null:xe(a,e.status),updatedAt:e.updatedAt}}),qe=(a,e)=>{switch(e.type){case"todo":return k(a,e.id)!==void 0;case"log":return le(a,e.id)!==void 0;case"context":return pe(e.id)&&U(a,e.id);case"question":return L(a,e.id)!==void 0;case"page":return!0;default:return!1}},Le=a=>{const e=j(a);return{kind:"view",name:"task-board",label:"Task Context Board",addable:!1,parseBase:de,emptyBase:ie,actions:m,apply:fe,hasTarget:qe,describe:(t,o,r)=>$e(e,t,o,r),serialize:ye,resolveNavigation:Ae,commentTargets:t=>Te(e,t),title:ve}},G=(a,e,t,o)=>n`
|
|
1
|
+
import{au as Re,bf as P,av as b,aw as i,aa as x,ac as c,az as $,aM as h,aB as Z,aN as W,ax as ee,ay as ae,p as y,t as Ie,aC as Qe,aO as Ue,aA as He,ab as R,N as Me,e as Ke,a5 as Fe,S as je,P as z,ai as d,as as n,z as Ye,aH as w,bc as te,bd as Ve,I as Xe,bz as I,ah as Je,V as oe,bh as Ze,l as ea,b9 as aa}from"./shared-DdpMqkAH.js";import{a as ta}from"./shared-Cas88qVh.js";import{D as oa,d as ra}from"./shared-CnPCm4bJ.js";import{o as T}from"./shared-EYOAbLSo.js";const re=["working","waiting","blocked","done"],A=["todo","doing","blocked","done"],ne=["agent","human"],q=["why","what","goals","nonGoals"],O=ee(c(),ae(1)),na=b({id:h,name:O,kind:i($(ne),"agent")}),sa=b({id:h,title:O,status:i($(A),"todo"),assignee:i(h),note:i(c()),proposed:i(Z(),!1),reason:i(c()),questions:W}),da=b({id:h,label:i(c()),href:O,kind:i(c()),description:i(c()),questions:W}),ia=b({why:i(c()),what:i(c()),goals:i(x(c()),[]),nonGoals:i(x(c()),[])}),la=b({id:h,from:i(h),at:i(c()),title:i(c()),body:i(c()),points:i(x(c()),[]),questions:W}),pa=b({id:h,ref:i(O),title:O,description:i(c()),blocking:i(Z(),!1),assumption:i(c())}),se=b({title:i(c(),""),status:i($(re)),updatedAt:i(c()),context:i(ia,{}),members:i(x(na),[]),todos:i(x(sa),[]),outputs:i(x(da),[]),log:i(x(la),[]),questions:i(x(pa),[])}),S=(a,e)=>{const t=new Set;for(const o of e){if(t.has(o))throw new Error(`duplicate ${a} id: ${o}`);t.add(o)}},u=a=>a===void 0||a.trim()===""?null:a,Q=a=>a.filter(e=>e.trim()!==""),de=a=>{const e=Re(se,a);S("member",e.members.map(o=>o.id)),S("todo",e.todos.map(o=>o.id)),S("output",e.outputs.map(o=>o.id)),S("log",e.log.map(o=>o.id)),S("question",e.questions.map(o=>o.id));const t=new Set(e.members.map(o=>o.id));for(const o of e.todos)if(o.assignee!==void 0&&!t.has(o.assignee))throw new Error(`todo ${o.id} is assigned to ${o.assignee}, which is not in members`);for(const o of e.log){if(o.from!==void 0&&!t.has(o.from))throw new Error(`log entry ${o.id} is from ${o.from}, which is not in members`);if(u(o.title)===null&&u(o.body)===null)throw new Error(`log entry ${o.id} needs a title or a body`)}for(const o of e.questions)if(!o.blocking&&u(o.assumption)===null)throw new Error(`question ${o.id} does not block, so it needs the assumption the agent works on`);return{title:e.title,status:e.status??null,updatedAt:u(e.updatedAt),context:{why:u(e.context.why),what:u(e.context.what),goals:Q(e.context.goals),nonGoals:Q(e.context.nonGoals)},members:e.members,todos:e.todos.map(o=>({id:o.id,title:o.title,status:o.status,assignee:o.assignee??null,note:u(o.note),proposed:o.proposed,reason:u(o.reason),added:!1,...P(o.questions)})),outputs:e.outputs.map(o=>({id:o.id,label:u(o.label),href:o.href,kind:u(o.kind),description:u(o.description),...P(o.questions)})),log:e.log.map(o=>({id:o.id,from:o.from??null,at:u(o.at),title:u(o.title),body:u(o.body),points:Q(o.points),...P(o.questions)})),questions:e.questions.map((o,r)=>({id:o.id,ref:o.ref??`Q${r+1}`,title:o.title,description:u(o.description),blocking:o.blocking,assumption:u(o.assumption)})),answers:{},decisions:{}}},ie=()=>({title:"",status:null,updatedAt:null,context:{why:null,what:null,goals:[],nonGoals:[]},members:[],todos:[],outputs:[],log:[],questions:[],answers:{},decisions:{}}),D=(a,e)=>e===null?void 0:a.members.find(t=>t.id===e),k=(a,e)=>a.todos.find(t=>t.id===e),le=(a,e)=>a.log.find(t=>t.id===e),pe=a=>q.includes(a),U=(a,e)=>{const t=a.context[e];return typeof t=="string"||t!==null&&t.length>0},L=(a,e)=>a.questions.find(t=>t.id===e),ce=(a,e)=>{const t=a.answers[e.id];return t===void 0?!1:t.kind==="approve"||t.text.trim()!==""},H=(a,e)=>!e.proposed||a.decisions[e.id]==="accept",_=(a,e)=>H(a,e)&&D(a,e.assignee)?.kind==="human",ue=(a,e,t)=>{const o={...a};return t===null?delete o[e]:o[e]=t,o},M=(a,e,t)=>({...a,answers:ue(a.answers,e,t)}),ca=(a,e,t)=>({...a,decisions:ue(a.decisions,e,t)}),ua=(a,e,t)=>({...a,todos:a.todos.map(o=>o.id===e?t(o):o)}),m={ANSWER_QUESTION:y("ANSWER_QUESTION","question",Qe("kind",[b({kind:R("approve")}),b({kind:R("answer"),text:c()}),b({kind:R("clear")})])),DECIDE_PROPOSAL:y("DECIDE_PROPOSAL","todo",b({decision:$(["accept","decline","clear"])})),SET_TODO_STATUS:y("SET_TODO_STATUS","todo",b({status:$(A)})),ADD_TODO:y("ADD_TODO","page",b({id:h,title:ee(c(),He(),ae(1)),assignee:Ue(h)}),{dedupeKey:Ie}),DELETE_TODO:y("DELETE_TODO","todo",b({}))},be={type:"page",id:"task-board"},K=(a,e)=>({type:"ANSWER_QUESTION",target:{type:"question",id:a},payload:e}),ge=(a,e)=>({type:"DECIDE_PROPOSAL",target:{type:"todo",id:a},payload:{decision:e}}),F=(a,e)=>({type:"SET_TODO_STATUS",target:{type:"todo",id:a},payload:{status:e}}),he=(a,e,t)=>({type:"ADD_TODO",target:be,payload:{id:a,title:e,assignee:t}}),ke=a=>({type:"DELETE_TODO",target:{type:"todo",id:a},payload:{}}),fe=(a,e)=>{const t=Me(m,e);if(t===null)return null;const o=t.target.id;switch(t.type){case"ANSWER_QUESTION":{const r=L(a,o);if(r===void 0)return null;const s=t.payload;return s.kind==="clear"?M(a,o,null):s.kind==="approve"?r.assumption===null?null:M(a,o,{kind:"approve"}):M(a,o,{kind:"answer",text:s.text})}case"DECIDE_PROPOSAL":{if(k(a,o)?.proposed!==!0)return null;const{decision:r}=t.payload;return ca(a,o,r==="clear"?null:r)}case"SET_TODO_STATUS":{const r=k(a,o);if(r===void 0||!_(a,r))return null;const{status:s}=t.payload;return ua(a,o,l=>({...l,status:s}))}case"ADD_TODO":{const{payload:r}=t;return k(a,r.id)!==void 0||r.assignee!==null&&D(a,r.assignee)===void 0?null:{...a,todos:[...a.todos,{id:r.id,title:r.title,status:"todo",assignee:r.assignee,note:null,proposed:!1,reason:null,added:!0}]}}case"DELETE_TODO":return k(a,o)?.added!==!0?null:{...a,todos:a.todos.filter(r=>r.id!==o)};default:return Ke(t)}},j=Fe({en:{wholeBoard:"Whole board",statusWorking:"Working",statusWaiting:"Waiting on you",statusBlocked:"Blocked",statusDone:"Done",todoTodo:"To do",todoDoing:"In progress",todoBlocked:"Blocked",todoDone:"Done",kindAgent:"Agent",kindHuman:"Human",updatedAt:a=>`Updated ${a}`,context:"What this task is about",contextWhy:"Why",contextWhat:"What",contextGoals:"Goals",contextNonGoals:"Non-goals",noContext:"The agent has not written down why and what yet.",tabs:"Board sections",tabContext:"Context",tabLog:"Work log",tabQuestions:"Questions",tabTasks:"Tasks",openCount:a=>`${a} open`,noQuestions:"The agent has nothing to ask right now.",questions:"Questions from the agent",questionsProgress:(a,e)=>`${a} of ${e} replied`,blockingGroup:"Blocking \u2014 the agent waits for your decision",provisionalGroup:"Going ahead on an assumption \u2014 the agent adjusts if you answer otherwise",blockingTag:"Blocking",assumption:"Assumption",recommendation:"Agent recommends",approveAssumption:"OK, go with this",approveRecommendation:"OK, go with the recommendation",answerOther:"Answer differently",answerOf:a=>`Your answer to ${a}`,answerPlaceholder:"What you expect instead\u2026",blockingPlaceholder:"Your decision\u2026",approvedTag:"Approved",answeredTag:"Answered",progress:(a,e)=>`${a} of ${e} done`,noTodosYet:"No todos yet",tasksBoard:"Tasks by status",laneCount:a=>a===1?"1 task":`${a} tasks`,laneEmpty:"Nothing here",dragHint:"Drop on another column to change the status",assignee:"Assignee",unassigned:"Unassigned",memberOption:(a,e)=>`${a} (${e})`,statusOf:a=>`Status of \u201C${a}\u201D`,filterTodos:"Show todos",filterAll:"All",filterHuman:"People",addedTag:"Added by you",changedTag:"Changed",removeAdded:"Remove this todo you added",newTodo:"New todo",newTodoPlaceholder:"Add a todo for the agent\u2026",newTodoAssignee:"Assignee of the new todo",addTodo:"Add",proposedMark:"Proposed by the agent",reason:"Why",accept:"Accept",decline:"Decline",decisionOf:a=>`Decision on \u201C${a}\u201D`,acceptedTag:"Accepted",declinedTag:"Declined",undoDecision:"Undo",outputs:"Outputs",noOutputs:"Nothing has been produced yet.",copy:a=>`Copy ${a}`,copied:"Copied",log:"Conversation with the agent",logLede:"Newest first",noLog:"Nothing has been exchanged yet.",fromAgent:"Agent",latestTag:"Latest",commentOn:a=>`Comment on ${a}`,todoGroup:"Todo",logGroup:"Log",contextGroup:"Context",proposalGroup:"Proposal",questionGroup:"Question",approved:"Approve the assumption",answered:"Answer",answerCleared:"Clear the reply",accepted:"Accept the proposal",declined:"Decline the proposal",decisionCleared:"Clear the decision",statusChanged:"Change the status",todoAdded:"Add a todo",todoRemoved:"Remove the added todo",quoted:a=>`\u2192 \u201C${a}\u201D`,change:(a,e)=>`${a} \u2192 ${e}`},ja:{wholeBoard:"\u30DC\u30FC\u30C9\u5168\u4F53",statusWorking:"\u4F5C\u696D\u4E2D",statusWaiting:"\u3042\u306A\u305F\u306E\u8FD4\u7B54\u5F85\u3061",statusBlocked:"\u30D6\u30ED\u30C3\u30AF\u4E2D",statusDone:"\u5B8C\u4E86",todoTodo:"\u672A\u7740\u624B",todoDoing:"\u9032\u884C\u4E2D",todoBlocked:"\u30D6\u30ED\u30C3\u30AF",todoDone:"\u5B8C\u4E86",kindAgent:"Agent",kindHuman:"\u4EBA\u9593",updatedAt:a=>`\u66F4\u65B0 ${a}`,context:"\u3053\u306E\u30BF\u30B9\u30AF\u306E\u524D\u63D0",contextWhy:"Why \u2014 \u306A\u305C\u3084\u308B\u304B",contextWhat:"What \u2014 \u4F55\u3092\u3084\u308B\u304B",contextGoals:"\u30B4\u30FC\u30EB",contextNonGoals:"\u3084\u3089\u306A\u3044\u3053\u3068",noContext:"Agent \u306F\u307E\u3060 Why / What \u3092\u66F8\u3044\u3066\u3044\u307E\u305B\u3093\u3002",tabs:"\u30DC\u30FC\u30C9\u306E\u533A\u5206",tabContext:"Context",tabLog:"\u4F5C\u696D\u30ED\u30B0",tabQuestions:"\u8CEA\u554F",tabTasks:"\u30BF\u30B9\u30AF",openCount:a=>`\u672A\u56DE\u7B54 ${a} \u4EF6`,noQuestions:"\u4ECA Agent \u304B\u3089\u805E\u304D\u305F\u3044\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",questions:"Agent \u304B\u3089\u306E\u8CEA\u554F",questionsProgress:(a,e)=>`\u8FD4\u7B54\u6E08\u307F ${a} / ${e}`,blockingGroup:"\u30D6\u30ED\u30C3\u30AB\u30FC \u2014 \u6C7A\u3081\u3066\u3082\u3089\u3046\u307E\u3067\u5148\u306B\u9032\u3081\u306A\u3044",provisionalGroup:"\u4EEE\u306E\u524D\u63D0\u3067\u9032\u884C\u4E2D \u2014 \u9055\u3048\u3070\u65B9\u91DD\u3092\u76F4\u3059",blockingTag:"\u30D6\u30ED\u30C3\u30AB\u30FC",assumption:"\u4EEE\u56DE\u7B54",recommendation:"Agent \u306E\u63A8\u5968",approveAssumption:"\u3053\u306E\u524D\u63D0\u3067 OK",approveRecommendation:"\u63A8\u5968\u3069\u304A\u308A\u3067 OK",answerOther:"\u5225\u306E\u56DE\u7B54\u3092\u3059\u308B",answerOf:a=>`${a} \u3078\u306E\u56DE\u7B54`,answerPlaceholder:"\u671F\u5F85\u3059\u308B\u56DE\u7B54\u3092\u5165\u529B\u2026",blockingPlaceholder:"\u3069\u3046\u3059\u308B\u304B\u3092\u5165\u529B\u2026",approvedTag:"\u627F\u8A8D\u6E08\u307F",answeredTag:"\u56DE\u7B54\u6E08\u307F",progress:(a,e)=>`${e} \u4EF6\u4E2D ${a} \u4EF6\u5B8C\u4E86`,noTodosYet:"Todo \u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",tasksBoard:"\u72B6\u614B\u3054\u3068\u306E\u30BF\u30B9\u30AF",laneCount:a=>`${a} \u4EF6`,laneEmpty:"\u306A\u3057",dragHint:"\u5225\u306E\u5217\u306B\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u3068\u72B6\u614B\u304C\u5909\u308F\u308A\u307E\u3059",assignee:"\u62C5\u5F53",unassigned:"\u672A\u5272\u308A\u5F53\u3066",memberOption:(a,e)=>`${a}\uFF08${e}\uFF09`,statusOf:a=>`\u300C${a}\u300D\u306E\u72B6\u614B`,filterTodos:"\u8868\u793A\u3059\u308B Todo",filterAll:"\u3059\u3079\u3066",filterHuman:"\u4EBA\u9593\u306E\u62C5\u5F53",addedTag:"\u3042\u306A\u305F\u304C\u8FFD\u52A0",changedTag:"\u5909\u66F4\u3042\u308A",removeAdded:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3059",newTodo:"\u65B0\u3057\u3044 Todo",newTodoPlaceholder:"Agent \u306B\u983C\u3080 Todo \u3092\u8FFD\u52A0\u2026",newTodoAssignee:"\u65B0\u3057\u3044 Todo \u306E\u62C5\u5F53",addTodo:"\u8FFD\u52A0",proposedMark:"Agent \u304B\u3089\u306E\u63D0\u6848",reason:"\u306A\u305C",accept:"\u627F\u8A8D",decline:"\u898B\u9001\u308A",decisionOf:a=>`\u300C${a}\u300D\u306E\u5224\u65AD`,acceptedTag:"\u627F\u8A8D\u6E08\u307F",declinedTag:"\u898B\u9001\u308A",undoDecision:"\u53D6\u308A\u6D88\u3059",outputs:"\u6210\u679C\u7269",noOutputs:"\u307E\u3060\u6210\u679C\u7269\u306F\u3042\u308A\u307E\u305B\u3093\u3002",copy:a=>`${a} \u3092\u30B3\u30D4\u30FC`,copied:"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",log:"Agent \u3068\u306E\u3084\u308A\u3068\u308A",logLede:"\u65B0\u3057\u3044\u9806",noLog:"\u307E\u3060\u3084\u308A\u3068\u308A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",fromAgent:"Agent",latestTag:"\u6700\u65B0",commentOn:a=>`${a} \u306B\u30B3\u30E1\u30F3\u30C8`,todoGroup:"Todo",logGroup:"\u4F5C\u696D\u30ED\u30B0",contextGroup:"Context",proposalGroup:"\u63D0\u6848",questionGroup:"\u8CEA\u554F",approved:"\u524D\u63D0\u3092\u627F\u8A8D",answered:"\u56DE\u7B54",answerCleared:"\u8FD4\u7B54\u3092\u30AF\u30EA\u30A2",accepted:"\u63D0\u6848\u3092\u627F\u8A8D",declined:"\u63D0\u6848\u3092\u898B\u9001\u308A",decisionCleared:"\u63D0\u6848\u306E\u5224\u65AD\u3092\u30AF\u30EA\u30A2",statusChanged:"\u72B6\u614B\u3092\u5909\u66F4",todoAdded:"Todo \u3092\u8FFD\u52A0",todoRemoved:"\u8FFD\u52A0\u3057\u305F Todo \u3092\u53D6\u308A\u6D88\u3057",quoted:a=>`\u2192 \u300C${a}\u300D`,change:(a,e)=>`${a} \u2192 ${e}`}}),xe=(a,e)=>{switch(e){case"working":return a.statusWorking;case"waiting":return a.statusWaiting;case"blocked":return a.statusBlocked;case"done":return a.statusDone}},E=(a,e)=>{switch(e){case"todo":return a.todoTodo;case"doing":return a.todoDoing;case"blocked":return a.todoBlocked;case"done":return a.todoDone}},ba=(a,e)=>e==="agent"?a.kindAgent:a.kindHuman,B=(a,e)=>{switch(e){case"why":return a.contextWhy;case"what":return a.contextWhat;case"goals":return a.contextGoals;case"nonGoals":return a.contextNonGoals}},me=48,Y=a=>{const e=a.title??a.body??a.id;return e.length<=me?e:`${e.slice(0,me-1)}\u2026`},ga=(a,e,t)=>t===null?a.unassigned:D(e,t)?.name??t,ve=a=>a.title===""?"Task Context Board":a.title,we=(a,e,t)=>{switch(t.type){case"todo":{const o=k(e,t.id);return`${o?.proposed===!0?a.proposalGroup:a.todoGroup} \xB7 ${o?.title??t.id}`}case"log":{const o=le(e,t.id);return`${a.logGroup} \xB7 ${o===void 0?t.id:Y(o)}`}case"context":return`${a.contextGroup} \xB7 ${pe(t.id)?B(a,t.id):t.id}`;case"question":{const o=L(e,t.id);return o===void 0?t.id:`${o.ref} \xB7 ${o.title}`}case"page":return a.wholeBoard;default:return t.id}},ha=(a,e)=>{switch(e){case"accept":return{title:a.accepted,tone:"update"};case"decline":return{title:a.declined,tone:"update"};case"clear":return{title:a.decisionCleared,tone:"delete"}}},ka=(a,e,t)=>{switch(t.type){case"ANSWER_QUESTION":{const o=z(m.ANSWER_QUESTION,t);if(o.kind==="clear")return{title:a.answerCleared,tone:"delete"};if(o.kind==="approve"){const r=L(e,t.target.id)?.assumption??null;return{title:a.approved,tone:"update",...r===null?{}:{body:a.quoted(r)}}}return{title:a.answered,tone:"update",body:a.quoted(o.text.slice(0,120))}}case"DECIDE_PROPOSAL":return ha(a,z(m.DECIDE_PROPOSAL,t).decision);case"SET_TODO_STATUS":{const{status:o}=z(m.SET_TODO_STATUS,t),r=k(e,t.target.id)?.status,s=E(a,o);return{title:a.statusChanged,tone:"update",body:r===void 0?s:a.change(E(a,r),s)}}case"ADD_TODO":{const o=z(m.ADD_TODO,t);return{title:a.todoAdded,tone:"create",targetLabel:`${a.todoGroup} \xB7 ${o.title}`,...o.assignee===null?{}:{body:`${a.assignee}: ${ga(a,e,o.assignee)}`}}}case"DELETE_TODO":return{title:a.todoRemoved,tone:"delete"};default:return{title:t.type,tone:"meta"}}},$e=(a,e,t,o)=>{let r;try{r=ka(a,o??t,e)}catch{r={title:e.type,tone:"meta"}}return{title:r.title,targetLabel:r.targetLabel??we(a,t,e.target),tone:r.tone,...r.body===void 0?{}:{summary:r.body}}},ye=a=>`${a.type} ${je(a.target)} ${JSON.stringify(a.payload)}`,Te=(a,e)=>[...e.questions.map(t=>({value:`question:${t.id}`,label:`${t.ref} \xB7 ${t.title}`,group:a.questionGroup})),...e.todos.map(t=>({value:`todo:${t.id}`,label:t.title,group:t.proposed?a.proposalGroup:a.todoGroup})),...e.log.map(t=>({value:`log:${t.id}`,label:Y(t),group:a.logGroup})),...q.filter(t=>U(e,t)).map(t=>({value:`context:${t}`,label:B(a,t),group:a.contextGroup}))],Ae=(a,e)=>e,Oe=(a,e,t)=>({parts:q.filter(o=>U(e,o)).map(o=>{const r=e.context[o];return{id:o,title:B(a,o),text:typeof r=="string"?r:null,items:typeof r=="string"||r===null?[]:r,comments:t(`context:${o}`)}})}),fa=(a,e,t)=>{const o=a.answers[e.id];return{id:e.id,ref:e.ref,title:e.title,description:e.description,blocking:e.blocking,assumption:e.assumption,reply:o?.kind??"none",resolved:ce(a,e),draft:o?.kind==="answer"?o.text:"",comments:t(`question:${e.id}`)}},Se=(a,e)=>{const t=a.questions.map(r=>fa(a,r,e)),o=t.filter(r=>r.resolved).length;return{blocking:t.filter(r=>r.blocking),provisional:t.filter(r=>!r.blocking),resolved:o,total:t.length,open:t.length-o,blockingOpen:t.filter(r=>r.blocking&&!r.resolved).length}},xa={todo:"gray",doing:"blue",blocked:"red",done:"green"},ma=(a,e,t,o,r)=>{const s=k(t,o.id),l=D(e,o.assignee);return{id:o.id,title:o.title,note:o.note,reason:o.reason,status:o.status,statusLabel:E(a,o.status),assignee:o.assignee,assigneeName:l?.name??null,assigneeKind:l?.kind??null,editable:_(e,o),proposal:o.proposed?e.decisions[o.id]??"pending":null,added:o.added,changed:s!==void 0&&s.status!==o.status,comments:r(`todo:${o.id}`),...o.questions===void 0?{}:{questions:o.questions}}},De=(a,e,t,o,r="all")=>{const s=e.members.some(p=>p.kind==="human"),l=s?r:"all",g=e.todos.map(p=>ma(a,e,t,p,o)),f=p=>p.assigneeKind==="human",Pe=l==="human"?g.filter(f):g,C=e.todos.filter(p=>H(e,p)),J=C.filter(p=>p.status==="done").length;return{lanes:A.map(p=>({status:p,label:E(a,p),tone:xa[p],cards:Pe.filter(We=>We.status===p)})),filter:l,canFilter:s,humanCount:g.filter(f).length,progress:{done:J,total:C.length,label:C.length===0?a.noTodosYet:a.progress(J,C.length)},statuses:A.map(p=>({value:p,label:E(a,p)})),members:e.members.map(p=>({id:p.id,label:a.memberOption(p.name,ba(a,p.kind))}))}},Ee=a=>{if(!/^[a-z][a-z\d+.-]*:\/\//i.test(a))return{kind:"path"};try{return{kind:"url",host:new URL(a).host}}catch{return{kind:"path"}}},Ce=a=>a.outputs.map(e=>({id:e.id,title:e.label??e.href,labelled:e.label!==null,href:e.href,kind:e.kind,description:e.description,place:Ee(e.href),...e.questions===void 0?{}:{questions:e.questions}})),ze=(a,e,t)=>({entries:e.log.map((o,r)=>{const s=D(e,o.from);return{id:o.id,author:s===void 0?null:{name:s.name,kind:s.kind},at:o.at,title:o.title,body:o.body,points:o.points,label:Y(o),latest:r===e.log.length-1,comments:t(`log:${o.id}`),...o.questions===void 0?{}:{questions:o.questions}}}).reverse(),status:e.status===null&&e.updatedAt===null?null:{status:e.status,label:e.status===null?null:xe(a,e.status),updatedAt:e.updatedAt}}),qe=(a,e)=>{switch(e.type){case"todo":return k(a,e.id)!==void 0;case"log":return le(a,e.id)!==void 0;case"context":return pe(e.id)&&U(a,e.id);case"question":return L(a,e.id)!==void 0;case"page":return!0;default:return!1}},Le=a=>{const e=j(a);return{kind:"view",name:"task-board",label:"Task Context Board",addable:!1,parseBase:de,emptyBase:ie,actions:m,apply:fe,hasTarget:qe,describe:(t,o,r)=>$e(e,t,o,r),serialize:ye,resolveNavigation:Ae,commentTargets:t=>Te(e,t),title:ve}},G=(a,e,t,o)=>n`
|
|
2
2
|
<button
|
|
3
3
|
class="dpk-icon-btn board-comment"
|
|
4
4
|
type="button"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ah as e}from"./shared-
|
|
1
|
+
import{ah as e}from"./shared-DdpMqkAH.js";const r=e`
|
|
2
2
|
/* ------------------------------------------------------------ count */
|
|
3
3
|
|
|
4
4
|
/* How many: a small rounded mono figure, beside a tab or a heading. data-size='sm' is quieter. */
|
package/dist/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s,d as e,a as o}from"./chunks/shared-
|
|
1
|
+
import{s,d as e,a as o}from"./chunks/shared-DdpMqkAH.js";import{C as t,b as r,Y as i,Z as n,D as m,E as l,v as p,M as d,V as f,W as c,c as D,e as C,f as k,g as E,h as g,i as S,j as A,k as T,l as R,m as b,n as O,o as h,p as u,_ as M,$ as N,q as _,r as v,t as y,u as I,w as P,x as w,y as x,z as B,A as F,B as L,F as G,G as H,H as K,I as V,J as j,K as U,L as q,N as z,O as W,P as X,Q as J,R as Y,S as Q,T as Z,U as $,X as aa}from"./chunks/shared-DdpMqkAH.js";import{r as a}from"./chunks/shared-dnY35u9q.js";import{D as sa,a as ea,b as oa,c as ta,d as ra,e as ia,f as na,g as ma,h as la,i as pa,j as da,k as fa,l as ca,m as Da,n as Ca,o as ka,p as Ea,q as ga,s as Sa,t as Aa,u as Ta,v as Ra,w as ba,x as Oa,y as ha,z as ua,A as Ma,B as Na,C as _a,E as va,F as ya,G as Ia,H as Pa,I as wa,J as xa,K as Ba,L as Fa,M as La,N as Ga,O as Ha,P as Ka}from"./chunks/shared-dnY35u9q.js";import{C as Va,a as ja,D as Ua,b as qa,c as za,M as Wa,d as Xa,e as Ja,f as Ya,g as Qa,h as Za,i as $a,j as as,k as ss,l as es,m as os,n as ts,p as rs,r as is,s as ns,o as ms,q as ls}from"./chunks/shared-df9XN7ns.js";import{D as ps,d as ds,p as fs}from"./chunks/shared-CnPCm4bJ.js";import{a as cs}from"./chunks/shared-Cas88qVh.js";import{c as Ds,a as Cs}from"./chunks/shared-qk9TB_UM.js";import{m as ks}from"./chunks/shared-a9QCZpxj.js";s({entry:"components.js",url:import.meta.url,views:[],register:()=>{a(),e(),o()}});export{t as COMMENT_ACTION,r as COMMENT_DESCRIPTOR,Va as CORNER_SLOT,ja as CORNER_SUB_SLOT,sa as DpkAlternatives,ea as DpkBrowser,oa as DpkChecklist,ta as DpkCode,ra as DpkCodeGroup,ia as DpkCombobox,i as DpkCommentPanel,na as DpkCommentPopover,Ua as DpkCommentThread,ma as DpkCommentable,la as DpkConfirmDialog,pa as DpkDialogPanel,da as DpkExtendRightClick,fa as DpkFormalSpec,n as DpkInlineEdit,ca as DpkLineChart,qa as DpkMatrix,ps as DpkSelect,Da as DpkSelectionBar,za as DpkTable,Ca as DpkTabs,ka as DpkTagFilter,m as DraftController,l as EMPTY_NAVIGATION,p as FRAMEWORK_VERSION,Wa as MATRIX_REORDER_COLUMN_EVENT,Xa as MATRIX_REORDER_ROW_EVENT,Ja as MATRIX_REORDER_SUB_COLUMN_EVENT,d as MemoryDraftStorage,f as ViewElement,c as WebStorageDraftStorage,Ya as allLeaves,D as appendAction,C as assertNever,cs as atomStyles,k as buildAgentBrief,Ds as cardAtom,Qa as cellSlot,Za as columnHeadSlot,E as commentActionSchema,g as commentBody,S as commentTargetKey,Cs as controlAtom,A as controls,T as createActionId,R as createEntityId,b as dedupeKeyOf,O as defaultStorage,h as defaultStorageKey,u as defineAction,Ea as defineAlternatives,ga as defineAtomStyles,Sa as defineBrowser,Aa as defineChecklist,Ta as defineCode,Ra as defineCodeGroup,ba as defineCombobox,M as defineCommentPanel,Oa as defineCommentPopover,$a as defineCommentThread,ha as defineCommentable,ua as defineConfirmDialog,Ma as defineDialogPanel,Na as defineExtendRightClick,_a as defineFormalSpec,N as defineInlineEdit,va as defineLineChart,as as defineMatrix,ds as defineSelect,ya as defineSelectionBar,ss as defineTable,Ia as defineTabs,Pa as defineTagFilter,_ as derive,v as draftActionEnvelopeSchema,y as entityDedupeKey,I as formatHash,es as hasSubColumns,P as iconArrowDown,w as iconArrowUp,x as iconClose,B as iconComment,F as iconGrip,L as iconLink,G as iconMove,H as iconPencil,K as iconPlus,V as iconTrash,os as leafDraggable,ts as leavesOf,j as liveActions,ks as mockAtom,wa as parseAlternativesData,xa as parseChecklistData,Ba as parseCodeGroupData,Fa as parseComboboxData,La as parseExtendRightClickData,Ga as parseFormalSpecData,U as parseHash,fs as parseSelectData,rs as parseTableData,Ha as parseTagFilterData,q as parseTargetRef,z as parseViewAction,W as patchNavigation,X as payloadFor,Ka as registerAtoms,a as registerComponentElements,is as rowHeadSlot,J as serializeDraft,Y as slugify,ns as spanOf,ms as subColumnEdgeOf,ls as subColumnHeadSlot,Q as targetRef,Z as targetSchema,$ as toTarget,aa as tokens};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,s as m,d as e,a0 as n,a1 as p,v as o}from"./chunks/shared-
|
|
1
|
+
import{a,s as m,d as e,a0 as n,a1 as p,v as o}from"./chunks/shared-DdpMqkAH.js";import{C as d,a2 as l,Y as f,Z as D,a3 as g,D as E,M as k,V as B,W as c,e as u,f as y,h as S,l as h,n as A,o as C,p as M,q as v,t as P,u as R,K as N,L as V,N as b,O as I,P as O,R as K,S as W}from"./chunks/shared-DdpMqkAH.js";import{r}from"./chunks/shared-D1iBuYZV.js";import{B as w,a as T,b as x,D as F,c as _,d as j,e as q,f as H,g as L,h as G,i as U,j as Y,k as Z}from"./chunks/shared-D1iBuYZV.js";import{r as s}from"./chunks/shared-dnY35u9q.js";import{k as z,l as J}from"./chunks/shared-dnY35u9q.js";import{d as Q}from"./chunks/shared-Cejw83eH.js";import{i as X}from"./chunks/shared-Cejw83eH.js";import{d as $}from"./chunks/shared-BX1EnRfr.js";import{i as aa}from"./chunks/shared-BX1EnRfr.js";import{d as ea}from"./chunks/shared-CfVpKPRY.js";import{i as ra}from"./chunks/shared-CfVpKPRY.js";import{d as sa}from"./chunks/shared-DHVDag3x.js";import{i as ta}from"./chunks/shared-DHVDag3x.js";import{d as oa}from"./chunks/shared-e9ia12Uz.js";import{i as ia}from"./chunks/shared-e9ia12Uz.js";import{d as ma}from"./chunks/shared-D7VtCoY6.js";import{i as na}from"./chunks/shared-D7VtCoY6.js";const t=()=>{ea(),ma(),$(),sa(),oa(),Q(),a()},i=["prototype","usm","plain","slides","task-board","delegation-poker"],pa=()=>{s(),r(),t(),e(),a(),n(o,i,p,import.meta.url)};m({entry:"index.js",url:import.meta.url,views:i,register:()=>{s(),r(),t(),e(),a()}});export{w as BoardCanvasChromeElement,T as BoardCanvasElement,x as BoardChromeBase,d as COMMENT_ACTION,l as DpkApp,F as DpkBoardArchitectureMap,_ as DpkBoardDependencyGraph,j as DpkBoardErDiagram,q as DpkBoardEventStorming,H as DpkBoardExampleMapping,L as DpkBoardKanban,G as DpkBoardMindMap,U as DpkBoardSequenceDiagram,Y as DpkBoardStateDiagram,Z as DpkBoardWhiteboard,f as DpkCommentPanel,z as DpkFormalSpec,D as DpkInlineEdit,J as DpkLineChart,g as DpkPage,E as DraftController,o as FRAMEWORK_VERSION,k as MemoryDraftStorage,B as ViewElement,c as WebStorageDraftStorage,u as assertNever,y as buildAgentBrief,S as commentBody,h as createEntityId,A as defaultStorage,C as defaultStorageKey,M as defineAction,e as defineAppElement,a as definePageElement,X as delegationPoker,v as derive,P as entityDedupeKey,R as formatHash,N as parseHash,V as parseTargetRef,b as parseViewAction,I as patchNavigation,O as payloadFor,aa as plain,ra as prototype,pa as registerAllElements,r as registerBoardElements,s as registerComponentElements,t as registerViewElements,ta as slides,K as slugify,W as targetRef,ia as taskBoard,na as usm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,_ as a,$ as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as e,_ as a,$ as s,d as t,a as o}from"../chunks/shared-DdpMqkAH.js";import{C as r,b as i,Y as n,Z as m,D as c,E as l,v as d,M as p,V as f,W as g,c as A,e as E,f as y,g as D,h as S,i as T,j as u,k as C,l as I,m as P,n as k,o as v,p as M,q as N,r as O,t as h,u as w,w as R,x as K,y as V,z as _,A as b,B,F,G,H,I as W,J as j,K as x,L as z,N as L,O as U,P as Y,Q as q,R as J,S as Q,T as X,U as Z,X as $}from"../chunks/shared-DdpMqkAH.js";import{d as ee}from"../chunks/shared-Cejw83eH.js";import{i as ae}from"../chunks/shared-Cejw83eH.js";e({entry:"views/delegation-poker.js",url:import.meta.url,views:["delegation-poker"],register:()=>{a(),s(),ee(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,l as EMPTY_NAVIGATION,d as FRAMEWORK_VERSION,p as MemoryDraftStorage,f as ViewElement,g as WebStorageDraftStorage,A as appendAction,E as assertNever,y as buildAgentBrief,D as commentActionSchema,S as commentBody,T as commentTargetKey,u as controls,C as createActionId,I as createEntityId,P as dedupeKeyOf,k as defaultStorage,v as defaultStorageKey,M as defineAction,ae as delegationPoker,N as derive,O as draftActionEnvelopeSchema,h as entityDedupeKey,w as formatHash,R as iconArrowDown,K as iconArrowUp,V as iconClose,_ as iconComment,b as iconGrip,B as iconLink,F as iconMove,G as iconPencil,H as iconPlus,W as iconTrash,j as liveActions,x as parseHash,z as parseTargetRef,L as parseViewAction,U as patchNavigation,Y as payloadFor,q as serializeDraft,J as slugify,Q as targetRef,X as targetSchema,Z as toTarget,$ as tokens};
|
package/dist/views/plain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,_ as e,$ as s,d as t,a as i}from"../chunks/shared-
|
|
1
|
+
import{s as a,_ as e,$ as s,d as t,a as i}from"../chunks/shared-DdpMqkAH.js";import{C as n,b as o,Y as r,Z as m,D as c,E as l,v as p,M as f,V as d,W as g,c as A,e as E,f as y,g as S,h as T,i as u,j as C,k as D,l as I,m as v,n as M,o as N,p as O,q as P,r as h,t as w,u as R,w as K,x as k,y as V,z as _,A as b,B,F,G,H,I as W,J as j,K as x,L as z,N as L,O as U,P as Y,Q as q,R as J,S as Q,T as X,U as Z,X as $}from"../chunks/shared-DdpMqkAH.js";import{d as aa}from"../chunks/shared-BX1EnRfr.js";import{i as ea}from"../chunks/shared-BX1EnRfr.js";a({entry:"views/plain.js",url:import.meta.url,views:["plain"],register:()=>{e(),s(),aa(),t(),i()}});export{n as COMMENT_ACTION,o as COMMENT_DESCRIPTOR,r as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,l as EMPTY_NAVIGATION,p as FRAMEWORK_VERSION,f as MemoryDraftStorage,d as ViewElement,g as WebStorageDraftStorage,A as appendAction,E as assertNever,y as buildAgentBrief,S as commentActionSchema,T as commentBody,u as commentTargetKey,C as controls,D as createActionId,I as createEntityId,v as dedupeKeyOf,M as defaultStorage,N as defaultStorageKey,O as defineAction,P as derive,h as draftActionEnvelopeSchema,w as entityDedupeKey,R as formatHash,K as iconArrowDown,k as iconArrowUp,V as iconClose,_ as iconComment,b as iconGrip,B as iconLink,F as iconMove,G as iconPencil,H as iconPlus,W as iconTrash,j as liveActions,x as parseHash,z as parseTargetRef,L as parseViewAction,U as patchNavigation,Y as payloadFor,ea as plain,q as serializeDraft,J as slugify,Q as targetRef,X as targetSchema,Z as toTarget,$ as tokens};
|
package/dist/views/prototype.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,_ as e,$ as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,_ as e,$ as s,d as t,a as o}from"../chunks/shared-DdpMqkAH.js";import{C as r,b as i,Y as n,Z as m,D as p,E as c,v as l,M as f,V as d,W as y,c as g,e as A,f as E,g as S,h as T,i as u,j as C,k as D,l as I,m as v,n as M,o as N,p as O,q as P,r as h,t as w,u as R,w as K,x as k,y as V,z as _,A as b,B,F,G,H,I as W,J as j,K as x,L as z,N as L,O as U,P as Y,Q as q,R as J,S as Q,T as X,U as Z,X as $}from"../chunks/shared-DdpMqkAH.js";import{d as aa}from"../chunks/shared-CfVpKPRY.js";import{i as ea}from"../chunks/shared-CfVpKPRY.js";a({entry:"views/prototype.js",url:import.meta.url,views:["prototype"],register:()=>{e(),s(),aa(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,p as DraftController,c as EMPTY_NAVIGATION,l as FRAMEWORK_VERSION,f as MemoryDraftStorage,d as ViewElement,y as WebStorageDraftStorage,g as appendAction,A as assertNever,E as buildAgentBrief,S as commentActionSchema,T as commentBody,u as commentTargetKey,C as controls,D as createActionId,I as createEntityId,v as dedupeKeyOf,M as defaultStorage,N as defaultStorageKey,O as defineAction,P as derive,h as draftActionEnvelopeSchema,w as entityDedupeKey,R as formatHash,K as iconArrowDown,k as iconArrowUp,V as iconClose,_ as iconComment,b as iconGrip,B as iconLink,F as iconMove,G as iconPencil,H as iconPlus,W as iconTrash,j as liveActions,x as parseHash,z as parseTargetRef,L as parseViewAction,U as patchNavigation,Y as payloadFor,ea as prototype,q as serializeDraft,J as slugify,Q as targetRef,X as targetSchema,Z as toTarget,$ as tokens};
|
package/dist/views/slides.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,_ as e,$ as s,d as t,a as i}from"../chunks/shared-
|
|
1
|
+
import{s as a,_ as e,$ as s,d as t,a as i}from"../chunks/shared-DdpMqkAH.js";import{C as o,b as r,Y as n,Z as m,D as c,E as l,v as d,M as f,V as p,W as g,c as A,e as E,f as y,g as S,h as T,i as u,j as C,k as D,l as I,m as v,n as M,o as N,p as O,q as h,r as w,t as P,u as R,w as K,x as k,y as V,z as _,A as b,B,F,G,H,I as W,J as j,K as x,L as z,N as L,O as U,P as Y,Q as q,R as J,S as Q,T as X,U as Z,X as $}from"../chunks/shared-DdpMqkAH.js";import{d as aa}from"../chunks/shared-DHVDag3x.js";import{i as ea}from"../chunks/shared-DHVDag3x.js";a({entry:"views/slides.js",url:import.meta.url,views:["slides"],register:()=>{e(),s(),aa(),t(),i()}});export{o as COMMENT_ACTION,r as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,l as EMPTY_NAVIGATION,d as FRAMEWORK_VERSION,f as MemoryDraftStorage,p as ViewElement,g as WebStorageDraftStorage,A as appendAction,E as assertNever,y as buildAgentBrief,S as commentActionSchema,T as commentBody,u as commentTargetKey,C as controls,D as createActionId,I as createEntityId,v as dedupeKeyOf,M as defaultStorage,N as defaultStorageKey,O as defineAction,h as derive,w as draftActionEnvelopeSchema,P as entityDedupeKey,R as formatHash,K as iconArrowDown,k as iconArrowUp,V as iconClose,_ as iconComment,b as iconGrip,B as iconLink,F as iconMove,G as iconPencil,H as iconPlus,W as iconTrash,j as liveActions,x as parseHash,z as parseTargetRef,L as parseViewAction,U as patchNavigation,Y as payloadFor,q as serializeDraft,ea as slides,J as slugify,Q as targetRef,X as targetSchema,Z as toTarget,$ as tokens};
|
package/dist/views/task-board.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,_ as e,$ as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,_ as e,$ as s,d as t,a as o}from"../chunks/shared-DdpMqkAH.js";import{C as r,b as i,Y as n,Z as m,D as c,E as d,v as l,M as f,V as p,W as g,c as A,e as E,f as y,g as T,h as S,i as u,j as C,k as D,l as I,m as k,n as v,o as M,p as N,q as O,r as h,t as w,u as P,w as R,x as K,y as b,z as B,A as V,B as _,F,G,H,I as W,J as j,K as x,L as z,N as L,O as U,P as Y,Q as q,R as J,S as Q,T as X,U as Z,X as $}from"../chunks/shared-DdpMqkAH.js";import{d as aa}from"../chunks/shared-e9ia12Uz.js";import{i as ea}from"../chunks/shared-e9ia12Uz.js";a({entry:"views/task-board.js",url:import.meta.url,views:["task-board"],register:()=>{e(),s(),aa(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,m as DpkInlineEdit,c as DraftController,d as EMPTY_NAVIGATION,l as FRAMEWORK_VERSION,f as MemoryDraftStorage,p as ViewElement,g as WebStorageDraftStorage,A as appendAction,E as assertNever,y as buildAgentBrief,T as commentActionSchema,S as commentBody,u as commentTargetKey,C as controls,D as createActionId,I as createEntityId,k as dedupeKeyOf,v as defaultStorage,M as defaultStorageKey,N as defineAction,O as derive,h as draftActionEnvelopeSchema,w as entityDedupeKey,P as formatHash,R as iconArrowDown,K as iconArrowUp,b as iconClose,B as iconComment,V as iconGrip,_ as iconLink,F as iconMove,G as iconPencil,H as iconPlus,W as iconTrash,j as liveActions,x as parseHash,z as parseTargetRef,L as parseViewAction,U as patchNavigation,Y as payloadFor,q as serializeDraft,J as slugify,Q as targetRef,X as targetSchema,ea as taskBoard,Z as toTarget,$ as tokens};
|
package/dist/views/usm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,_ as e,$ as s,d as t,a as o}from"../chunks/shared-
|
|
1
|
+
import{s as a,_ as e,$ as s,d as t,a as o}from"../chunks/shared-DdpMqkAH.js";import{C as r,b as i,Y as n,Z as m,D as c,E as f,v as d,M as p,V as l,W as g,c as A,e as E,f as D,g as T,h as u,i as y,j as C,k as M,l as S,m as h,n as I,o as k,p as v,q as N,r as O,t as w,u as P,w as R,x as b,y as K,z as V,A as _,B as x,F as j,G as B,H as F,I as G,J as H,K as U,L as W,N as z,O as L,P as Y,Q as q,R as J,S as Q,T as X,U as Z,X as $}from"../chunks/shared-DdpMqkAH.js";import{i as aa,j as ea,k as sa}from"../chunks/shared-df9XN7ns.js";import{D as ta,b as oa,c as ra}from"../chunks/shared-df9XN7ns.js";import{d as ia}from"../chunks/shared-D7VtCoY6.js";import{i as na}from"../chunks/shared-D7VtCoY6.js";a({entry:"views/usm.js",url:import.meta.url,views:["usm"],register:()=>{e(),aa(),s(),ea(),sa(),ia(),t(),o()}});export{r as COMMENT_ACTION,i as COMMENT_DESCRIPTOR,n as DpkCommentPanel,ta as DpkCommentThread,m as DpkInlineEdit,oa as DpkMatrix,ra as DpkTable,c as DraftController,f as EMPTY_NAVIGATION,d as FRAMEWORK_VERSION,p as MemoryDraftStorage,l as ViewElement,g as WebStorageDraftStorage,A as appendAction,E as assertNever,D as buildAgentBrief,T as commentActionSchema,u as commentBody,y as commentTargetKey,C as controls,M as createActionId,S as createEntityId,h as dedupeKeyOf,I as defaultStorage,k as defaultStorageKey,v as defineAction,N as derive,O as draftActionEnvelopeSchema,w as entityDedupeKey,P as formatHash,R as iconArrowDown,b as iconArrowUp,K as iconClose,V as iconComment,_ as iconGrip,x as iconLink,j as iconMove,B as iconPencil,F as iconPlus,G as iconTrash,H as liveActions,U as parseHash,W as parseTargetRef,z as parseViewAction,L as patchNavigation,Y as payloadFor,q as serializeDraft,J as slugify,Q as targetRef,X as targetSchema,Z as toTarget,$ as tokens,na as usm};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-process-kit",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.1",
|
|
4
4
|
"description": "Web Components for single-file HTML pages that a human reviews in the browser, with a structured draft/feedback loop back to an agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ai as r}from"./shared-BQqlFaPv.js";const t=o=>o??r;export{t as o};
|