whose-turn 1.0.0-alpha.7 → 1.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +28 -16
- package/config.example.json +0 -4
- package/connectors/github.mjs +24 -0
- package/dist/assets/_plugin-vue_export-helper-BbgK5wvS.js +18 -0
- package/dist/assets/_plugin-vue_export-helper-BneMU3KP.css +1 -0
- package/dist/assets/bem-OtK9ToP0.js +1 -0
- package/dist/assets/index-B6grE8kv.css +1 -0
- package/dist/assets/index-C3jZLqLJ.js +15 -0
- package/dist/assets/report-DUlemvzD.js +1 -0
- package/dist/assets/scheme-DCqBrLhv.js +1 -0
- package/dist/assets/sheet-Ctd_6q4a.js +1 -0
- package/dist/index.html +6 -6
- package/dist/report.html +4 -4
- package/dist/sheet.html +4 -4
- package/lib/api.mjs +70 -24
- package/lib/backoff.mjs +13 -0
- package/lib/compose.mjs +6 -8
- package/lib/config.mjs +102 -15
- package/lib/default-table.mjs +1 -0
- package/lib/errors.mjs +1 -2
- package/lib/facts.mjs +1 -1
- package/lib/feedback.mjs +140 -111
- package/lib/linear-api.mjs +1 -1
- package/lib/notify.mjs +7 -8
- package/lib/registry.mjs +32 -5
- package/lib/rules.mjs +16 -9
- package/lib/table.mjs +1 -0
- package/lib/text.mjs +3 -0
- package/lib/trace.mjs +6 -6
- package/lib/workspace.mjs +63 -15
- package/package.json +2 -1
- package/server.mjs +17 -8
- package/dist/assets/_plugin-vue_export-helper-DeQjDyQ9.js +0 -18
- package/dist/assets/_plugin-vue_export-helper-aQHODzfZ.css +0 -1
- package/dist/assets/bem-zV6iDqYN.js +0 -1
- package/dist/assets/index-BLFgmJcy.js +0 -7
- package/dist/assets/index-CTrTp-xu.css +0 -1
- package/dist/assets/report-BJ_aC1A7.js +0 -1
- package/dist/assets/scheme-BdlolNvz.js +0 -1
- package/dist/assets/sheet-q2RQEgOf.js +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
|
|
2
|
-
* @vue/shared v3.5.44
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function kn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const N={},tt=[],Ae=()=>{},Zs=()=>!1,sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rn=e=>e.startsWith("onUpdate:"),Z=Object.assign,es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},di=Object.prototype.hasOwnProperty,V=(e,t)=>di.call(e,t),O=Array.isArray,Be=e=>Pt(e)==="[object Map]",it=e=>Pt(e)==="[object Set]",xs=e=>Pt(e)==="[object Date]",R=e=>typeof e=="function",J=e=>typeof e=="string",he=e=>typeof e=="symbol",H=e=>e!==null&&typeof e=="object",ks=e=>(H(e)||R(e))&&R(e.then)&&R(e.catch),er=Object.prototype.toString,Pt=e=>er.call(e),hi=e=>Pt(e).slice(8,-1),tr=e=>Pt(e)==="[object Object]",on=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yt=kn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ln=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},pi=/-\w/g,re=ln(e=>e.replace(pi,t=>t.slice(1).toUpperCase())),gi=/\B([A-Z])/g,Le=ln(e=>e.replace(gi,"-$1").toLowerCase()),fn=ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=ln(e=>e?`on${fn(e)}`:""),ee=(e,t)=>!Object.is(e,t),Ut=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},nr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},cn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vs;const un=()=>vs||(vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ts(e){if(O(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=J(s)?bi(s):ts(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(J(e)||H(e))return e}const _i=/;(?![^(]*\))/g,mi=/:([^]+)/,yi=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function bi(e){const t={};return e.replace(yi,n=>n.startsWith("/*")?"":n).split(_i).forEach(n=>{if(n){const s=n.split(mi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ns(e){let t="";if(J(e))t=e;else if(O(e))for(let n=0;n<e.length;n++){const s=ns(e[n]);s&&(t+=s+" ")}else if(H(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const xi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",vi=kn(xi);function sr(e){return!!e||e===""}function Si(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=Ge(e[r],t[r],n);return s}function Ss(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),r=new Uint8Array(s.length);for(const i of e){let o=-1;for(let l=0;l<s.length;l++)if(!r[l]&&Ge(i,s[l],n)){o=l;break}if(o<0)return!1;r[o]=1}return!0}function wi(e,t,n){let s=Be(e),r=Be(t);if(s||r||(s=it(e),r=it(t),s||r))return s&&r?Ss(e,t,n):!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const c=e.hasOwnProperty(l),d=t.hasOwnProperty(l);if(c&&!d||!c&&d||!Ge(e[l],t[l],n))return!1}return String(e)===String(t)}function ws(e,t,n,s){n||(n=[new Map,new Map]);const[r,i]=n;if(r.has(e)||i.has(t))return r.get(e)===t&&i.get(t)===e;r.set(e,t),i.set(t,e);const o=s(e,t,n);return r.delete(e),i.delete(t),o}function Ge(e,t,n){if(e===t)return!0;let s=xs(e),r=xs(t);return s||r?s&&r?e.getTime()===t.getTime():!1:(s=he(e),r=he(t),s||r?e===t:(s=O(e),r=O(t),s||r?s&&r?ws(e,t,n,Si):!1:(s=H(e),r=H(t),s||r?!s||!r?!1:ws(e,t,n,wi):String(e)===String(t))))}function Ci(e,t){return e.findIndex(n=>Ge(n,t))}const rr=e=>!!(e&&e.__v_isRef===!0),Ti=e=>J(e)?e:e==null?"":O(e)||H(e)&&(e.toString===er||!R(e.toString))?rr(e)?Ti(e.value):JSON.stringify(e,ir,2):String(e),ir=(e,t)=>rr(t)?ir(e,t.value):Be(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[En(s,i)+" =>"]=r,n),{})}:it(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>En(n))}:he(t)?En(t):H(t)&&!O(t)&&!tr(t)?String(t):t,En=(e,t="")=>{var n;return he(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.44
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let X;class or{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&X&&(X.active?(this.parent=X,this.index=(X.scopes||(X.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=X;try{return X=this,t()}finally{X=n}}}on(){++this._on===1&&(this.prevScope=X,X=this)}off(){if(this._on>0&&--this._on===0){if(X===this)X=this.prevScope;else{let t=X;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Xl(e){return new or(e)}function Oi(){return X}function Ql(e,t=!1){X&&X.cleanups.push(e)}let W;const An=new WeakSet;class lr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,X&&(X.active?X.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,An.has(this)&&(An.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||cr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cs(this),ur(this);const t=W,n=ye;W=this,ye=!0;try{return this.fn()}finally{ar(this),W=t,ye=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)is(t);this.deps=this.depsTail=void 0,Cs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?An.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$n(this)&&this.run()}get dirty(){return $n(this)}}let fr=0,bt,xt;function cr(e,t=!1){if(e.flags|=8,t){e.next=xt,xt=e;return}e.next=bt,bt=e}function ss(){fr++}function rs(){if(--fr>0)return;if(xt){let t=xt;for(xt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;bt;){let t=bt;for(bt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ur(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ar(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),is(s),Ei(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function $n(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(dr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function dr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===wt)||(e.globalVersion=wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$n(e))))return;e.flags|=2;const t=e.dep,n=W,s=ye;W=e,ye=!0;try{ur(e);const r=e.fn(e._value);(t.version===0||ee(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=n,ye=s,ar(e),e.flags&=-3}}function is(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)is(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ei(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const hr=[];function Me(){hr.push(ye),ye=!1}function Re(){const e=hr.pop();ye=e===void 0?!0:e}function Cs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=W;W=void 0;try{t()}finally{W=n}}}let wt=0;class Ai{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class an{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!W||!ye||W===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==W)n=this.activeLink=new Ai(W,this),W.deps?(n.prevDep=W.depsTail,W.depsTail.nextDep=n,W.depsTail=n):W.deps=W.depsTail=n,pr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=W.depsTail,n.nextDep=void 0,W.depsTail.nextDep=n,W.depsTail=n,W.deps===n&&(W.deps=s)}return n}trigger(t){this.version++,wt++,this.notify(t)}notify(t){ss();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rs()}}}function pr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)pr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qt=new WeakMap,st=Symbol(""),Kn=Symbol(""),Ct=Symbol("");function ne(e,t,n){if(ye&&W){let s=qt.get(e);s||qt.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new an),r.map=s,r.key=n),r.track()}}function De(e,t,n,s,r,i){const o=qt.get(e);if(!o){wt++;return}const l=c=>{c&&c.trigger()};if(ss(),t==="clear")o.forEach(l);else{const c=O(e),d=c&&on(n);if(c&&n==="length"){const a=Number(s);o.forEach((p,C)=>{(C==="length"||C===Ct||!he(C)&&C>=a)&&l(p)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(Ct)),t){case"add":c?d&&l(o.get("length")):(l(o.get(st)),Be(e)&&l(o.get(Kn)));break;case"delete":c||(l(o.get(st)),Be(e)&&l(o.get(Kn)));break;case"set":Be(e)&&l(o.get(st));break}}rs()}function Pi(e,t){const n=qt.get(e);return n&&n.get(t)}function ot(e){const t=D(e);return t===e||(ne(t,"iterate",Ct),de(e))?t:Ie(e)?qe(e)?t.map(n=>Je(pe(n))):t.map(Je):t.map(pe)}function dn(e){return ne(e=D(e),"iterate",Ct),e}function Te(e,t){return Ie(e)?Je(qe(e)?pe(t):t):pe(t)}const Mi={__proto__:null,[Symbol.iterator](){return Pn(this,Symbol.iterator,e=>Te(this,e))},concat(...e){return ot(this).concat(...e.map(t=>O(t)?ot(t):t))},entries(){return Pn(this,"entries",e=>(e[1]=Te(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,n=>n.map(s=>Te(this,s)),arguments)},find(e,t){return Fe(this,"find",e,t,n=>Te(this,n),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,n=>Te(this,n),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return ot(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return pt(this,"pop")},push(...e){return pt(this,"push",e)},reduce(e,...t){return Os(this,"reduce",e,t)},reduceRight(e,...t){return Os(this,"reduceRight",e,t)},shift(){return pt(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return pt(this,"splice",e)},toReversed(){return ot(this).toReversed()},toSorted(e){return ot(this).toSorted(e)},toSpliced(...e){return ot(this).toSpliced(...e)},unshift(...e){return pt(this,"unshift",e)},values(){return Pn(this,"values",e=>Te(this,e))}};function Pn(e,t,n){const s=dn(e),r=s[t],i=r.call(s);if(s!==e&&!de(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const o=Object.create(Object.getPrototypeOf(i));return o.next=()=>Ts(i.next(),n),r!==gr[t]&&Object.defineProperties(o,{return:{get(){const l=i.return;return typeof l=="function"?l.bind(i):l}},throw:{get(){const l=i.throw;return typeof l=="function"?l.bind(i):l}}}),o}i._next=i.next,i.next=()=>Ts(i._next(),n)}return i}function Ts(e,t){return e.done||(e.value=t(e.value)),e}const gr=Array.prototype;function Fe(e,t,n,s,r,i){const o=dn(e),l=o!==e&&!de(e),c=o[t];if(c!==gr[t]){const p=c.apply(e,i);return l?pe(p):p}let d=n;o!==e&&(l?d=function(p,C){return n.call(this,Te(e,p),C,e)}:n.length>2&&(d=function(p,C){return n.call(this,p,C,e)}));const a=c.call(o,d,s);return l&&r?r(a):a}function Os(e,t,n,s){const r=dn(e),i=r!==e&&!de(e);let o=n,l=!1;r!==e&&(i?(l=s.length===0,o=function(d,a,p){return l&&(l=!1,d=Te(e,d)),n.call(this,d,Te(e,a),p,e)}):n.length>3&&(o=function(d,a,p){return n.call(this,d,a,p,e)}));const c=r[t](o,...s);return l?Te(e,c):c}function Mn(e,t,n){const s=D(e);ne(s,"iterate",Ct);const r=s[t](...n);return(r===-1||r===!1)&&gn(n[0])?(n[0]=D(n[0]),s[t](...n)):r}function pt(e,t,n=[]){Me(),ss();const s=D(e)[t].apply(e,n);return rs(),Re(),s}const Ri=kn("__proto__,__v_isRef,__isVue"),_r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(he));function Ii(e){he(e)||(e=String(e));const t=D(this);return ne(t,"has",e),t.hasOwnProperty(e)}class mr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?wr:Sr:i?vr:xr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=O(t);if(!r){let c;if(o&&(c=Mi[n]))return c;if(n==="hasOwnProperty")return Ii}const l=Reflect.get(t,n,Q(t)?t:s);if((he(n)?_r.has(n):Ri(n))||(r||ne(t,"get",n),i))return l;if(Q(l)){const c=o&&on(n)?l:l.value;return r&&H(c)?Wn(c):c}return H(l)?r?Wn(l):os(l):l}}class yr extends mr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=O(t)&&on(n);if(!this._isShallow){const d=Ie(i);if(!de(s)&&!Ie(s)&&(i=D(i),s=D(s)),!o&&Q(i)&&!Q(s))return d||(i.value=s),!0}const l=o?Number(n)<t.length:V(t,n),c=Reflect.set(t,n,s,Q(t)?t:r);return t===D(r)&&c&&(l?ee(s,i)&&De(t,"set",n,s):De(t,"add",n,s)),c}deleteProperty(t,n){const s=V(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&De(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!he(n)||!_r.has(n))&&ne(t,"has",n),s}ownKeys(t){return ne(t,"iterate",O(t)?"length":st),Reflect.ownKeys(t)}}class br extends mr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fi=new yr,Ni=new br,ji=new yr(!0),Di=new br(!0),Un=e=>e,Vt=e=>Reflect.getPrototypeOf(e);function Vi(e,t,n){return function(...s){const r=this.__v_raw,i=D(r),o=Be(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=r[e](...s),a=n?Un:t?Je:pe;return!t&&ne(i,"iterate",c?Kn:st),Z(Object.create(d),{next(){const{value:p,done:C}=d.next();return C?{value:p,done:C}:{value:l?[a(p[0]),a(p[1])]:a(p),done:C}}})}}function Ht(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hi(e,t){const n={get(r){const i=this.__v_raw,o=D(i),l=D(r);e||(ee(r,l)&&ne(o,"get",r),ne(o,"get",l));const{has:c}=Vt(o),d=t?Un:e?Je:pe;if(c.call(o,r))return d(i.get(r));if(c.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ne(D(r),"iterate",st),r.size},has(r){const i=this.__v_raw,o=D(i),l=D(r);return e||(ee(r,l)&&ne(o,"has",r),ne(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=D(l),d=t?Un:e?Je:pe;return!e&&ne(c,"iterate",st),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return Z(n,e?{add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear")}:{add(r){const i=D(this),o=Vt(i),l=D(r),c=!t&&!de(r)&&!Ie(r)?l:r;return o.has.call(i,c)||ee(r,c)&&o.has.call(i,r)||ee(l,c)&&o.has.call(i,l)||(i.add(c),De(i,"add",c,c)),this},set(r,i){!t&&!de(i)&&!Ie(i)&&(i=D(i));const o=D(this),{has:l,get:c}=Vt(o);let d=l.call(o,r);d||(r=D(r),d=l.call(o,r));const a=c.call(o,r);return o.set(r,i),d?ee(i,a)&&De(o,"set",r,i):De(o,"add",r,i),this},delete(r){const i=D(this),{has:o,get:l}=Vt(i);let c=o.call(i,r);c||(r=D(r),c=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return c&&De(i,"delete",r,void 0),d},clear(){const r=D(this),i=r.size!==0,o=r.clear();return i&&De(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Vi(r,e,t)}),n}function hn(e,t){const n=Hi(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?s:Reflect.get(V(n,r)&&r in s?n:s,r,i)}const Li={get:hn(!1,!1)},$i={get:hn(!1,!0)},Ki={get:hn(!0,!1)},Ui={get:hn(!0,!0)},xr=new WeakMap,vr=new WeakMap,Sr=new WeakMap,wr=new WeakMap;function Wi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function os(e){return Ie(e)?e:pn(e,!1,Fi,Li,xr)}function Bi(e){return pn(e,!1,ji,$i,vr)}function Wn(e){return pn(e,!0,Ni,Ki,Sr)}function Zl(e){return pn(e,!0,Di,Ui,wr)}function pn(e,t,n,s,r){if(!H(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Wi(hi(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function qe(e){return Ie(e)?qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ie(e){return!!(e&&e.__v_isReadonly)}function de(e){return!!(e&&e.__v_isShallow)}function gn(e){return e?!!e.__v_raw:!1}function D(e){const t=e&&e.__v_raw;return t?D(t):e}function qi(e){return!V(e,"__v_skip")&&Object.isExtensible(e)&&nr(e,"__v_skip",!0),e}const pe=e=>H(e)?os(e):e,Je=e=>H(e)?Wn(e):e;function Q(e){return e?e.__v_isRef===!0:!1}function Gi(e){return Cr(e,!1)}function Ji(e){return Cr(e,!0)}function Cr(e,t){return Q(e)?e:new zi(e,t)}class zi{constructor(t,n){this.dep=new an,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:D(t),this._value=n?t:pe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||de(t)||Ie(t);t=s?t:D(t),ee(t,n)&&(this._rawValue=t,this._value=s?t:pe(t),this.dep.trigger())}}function ls(e){return Q(e)?e.value:e}function kl(e){return R(e)?e():ls(e)}const Yi={get:(e,t,n)=>t==="__v_raw"?e:ls(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Q(r)&&!Q(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Tr(e){return qe(e)?e:new Proxy(e,Yi)}class Xi{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new an,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Qi(e){return new Xi(e)}class Zi{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=he(n)?n:String(n),this._raw=D(t);let r=!0,i=t;if(!O(t)||he(this._key)||!on(this._key))do r=!gn(i)||de(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=ls(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Q(this._raw[this._key])){const n=this._object[this._key];if(Q(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Pi(this._raw,this._key)}}class ki{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ef(e,t,n){return Q(e)?e:R(e)?new ki(e):H(e)&&arguments.length>1?eo(e,t,n):Gi(e)}function eo(e,t,n){return new Zi(e,t,n)}class to{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new an(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return cr(this,!0),!0}get value(){const t=this.dep.track();return dr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function no(e,t,n=!1){let s,r;return R(e)?s=e:(s=e.get,r=e.set),new to(s,r,n)}const Lt={},Gt=new WeakMap;let ke;function so(e,t=!1,n=ke){if(n){let s=Gt.get(n);s||Gt.set(n,s=[]),s.push(e)}}function ro(e,t,n=N){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,d=P=>r?P:de(P)||r===!1||r===0?Ve(P,1):Ve(P);let a,p,C,w,I=!1,A=!1;if(Q(e)?(p=()=>e.value,I=de(e)):qe(e)?(p=()=>d(e),I=!0):O(e)?(A=!0,I=e.some(P=>qe(P)||de(P)),p=()=>e.map(P=>{if(Q(P))return P.value;if(qe(P))return d(P);if(R(P))return c?c(P,2):P()})):R(e)?t?p=c?()=>c(e,2):e:p=()=>{if(C){Me();try{C()}finally{Re()}}const P=ke;ke=a;try{return c?c(e,3,[w]):e(w)}finally{ke=P}}:p=Ae,t&&r){const P=p,Y=r===!0?1/0:r;p=()=>Ve(P(),Y)}const q=Oi(),B=()=>{a.stop(),q&&q.active&&es(q.effects,a)};if(i&&t){const P=t;t=(...Y)=>{try{return P(...Y)}finally{B()}}}let j=A?new Array(e.length).fill(Lt):Lt;const L=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const Y=a.run();if(P||r||I||(A?Y.some((Ke,xe)=>ee(Ke,j[xe])):ee(Y,j))){const Ke=ke;Me();try{C&&C(),ke=a;const xe=[Y,j===Lt?void 0:A&&j[0]===Lt?[]:j,w];j=Y,c?c(t,3,xe):t(...xe)}finally{ke=Ke,Re()}}}else a.run()};return l&&l(L),a=new lr(p),a.scheduler=o?()=>o(L,!1):L,w=P=>so(P,!1,a),C=a.onStop=()=>{const P=Gt.get(a);if(P){if(c)c(P,4);else for(const Y of P)Y();Gt.delete(a)}},t?s?L(!0):j=a.run():o?o(L.bind(null,!0),!0):a.run(),B.pause=a.pause.bind(a),B.resume=a.resume.bind(a),B.stop=B,B}function Ve(e,t=1/0,n){if(t<=0||!H(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Q(e))Ve(e.value,t,n);else if(O(e))for(let s=0;s<e.length;s++)Ve(e[s],t,n);else if(it(e)||Be(e))e.forEach(s=>{Ve(s,t,n)});else if(tr(e)){for(const s in e)Ve(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ve(e[s],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.44
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Mt(e,t,n,s){try{return s?e(...s):e()}catch(r){_n(r,t,n)}}function be(e,t,n,s){if(R(e)){const r=Mt(e,t,n,s);return r&&ks(r)&&r.catch(i=>{_n(i,t,n)}),r}if(O(e)){const r=[];for(let i=0;i<e.length;i++)r.push(be(e[i],t,n,s));return r}}function _n(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||N;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,c,d)===!1)return}l=l.parent}if(i){Me(),Mt(i,null,10,[e,c,d]),Re();return}}io(e,n,r,s,o)}function io(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const le=[];let me=-1;const Oe=[];let We=null,lt=0;const Or=Promise.resolve();let Jt=null;function Er(e){const t=Jt||Or;return e?t.then(this?e.bind(this):e):t}function oo(e){let t=me+1,n=le.length;for(;t<n;){const s=t+n>>>1,r=le[s],i=Tt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function fs(e){if(!(e.flags&1)){const t=Tt(e),n=le[le.length-1];!n||!(e.flags&2)&&t>=Tt(n)?le.push(e):le.splice(oo(t),0,e),e.flags|=1,Ar()}}function Ar(){Jt||(Jt=Or.then(Rr))}function lo(e){if(!O(e))We&&e.id===-1?We.splice(lt+1,0,e):e.flags&1||(Oe.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Oe.push(e[t]);Ar()}function Pr(e,t,n,s=me+1){for(;s<le.length;s++){const r=le[s];if(r&&r.flags&2){if(e&&r.id!==e.uid||t!==void 0&&!(r.id>=t))continue;le.splice(s,1),s=e?s-1:me,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Mr(e,t,n=0){if(Oe.length){let s=Oe,r=0;if(t){s=[];for(let o=0;o<Oe.length;o++){const l=Oe[o];(l.i!==void 0?!l.i||l.i.uid<n:t.has(l))?Oe[r++]=l:s.push(l)}}const i=[...new Set(s)].sort((o,l)=>Tt(o)-Tt(l));if(Oe.length=r,We){for(let o=0;o<i.length;o++)We.push(i[o]);return}for(We=i,lt=0;lt<We.length;lt++){const o=We[lt];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}We=null,lt=0}}let Rn=!1;function fo(e,t){if(Rn){e();return}const n=t===void 0?void 0:new Set(Oe);e(),Rn=!0;try{Pr(void 0,t),Mr(void 0,n,t)}finally{Rn=!1}}const Tt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Rr(e){try{for(me=0;me<le.length;me++){const t=le[me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Mt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;me<le.length;me++){const t=le[me];t&&(t.flags&=-2)}me=-1,le.length=0,Mr(),Jt=null,(le.length||Oe.length)&&Rr()}}let te=null,Ir=null;function zt(e){const t=te;return te=e,Ir=e&&e.type.__scopeId||null,t}function co(e,t=te,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Vs(-1);const i=zt(t),o=He.length;let l;try{l=e(...r)}finally{for(let c=He.length;c>o;c--)ds();zt(i),s._d&&Vs(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function tf(e,t){if(te===null)return e;const n=Cn(te),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=N]=t[r];i&&(R(i)&&(i={mounted:i,updated:i}),i.deep&&Ve(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Qe(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(Me(),be(c,n,8,[e.el,l,e,t]),Re())}}function uo(e,t){if(se){let n=se.provides;const s=se.parent&&se.parent.provides;s===n&&(n=se.provides=Object.create(s)),n[e]=t}}function Wt(e,t,n=!1){const s=wn();if(s||rt){let r=rt?rt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&R(t)?t.call(s&&s.proxy):t}}function nf(){return!!(wn()||rt)}const ao=Symbol.for("v-scx"),ho=()=>Wt(ao);function sf(e,t){return mn(e,null,t)}function po(e,t){return mn(e,null,{flush:"sync"})}function In(e,t,n){return mn(e,t,n)}function mn(e,t,n=N){const{immediate:s,deep:r,flush:i,once:o}=n,l=Z({},n),c=t&&s||!t&&i!=="post";let d;if(At){if(i==="sync"){const w=ho();d=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=Ae,w.resume=Ae,w.pause=Ae,w}}const a=se;l.call=(w,I,A)=>be(w,a,I,A);let p=!1;i==="post"?l.scheduler=w=>{w.i=a,fe(w,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(w,I)=>{I?w():fs(w)}),l.augmentJob=w=>{t&&(w.flags|=4),p&&(w.flags|=2,a&&(w.id=a.uid,w.i=a))};const C=ro(e,t,l);return At&&(d?d.push(C):c&&C()),C}function go(e,t,n){const s=this.proxy,r=J(e)?e.includes(".")?Fr(s,e):()=>s[e]:e.bind(s,s);let i;R(t)?i=t:(i=t.handler,n=t);const o=Rt(this),l=mn(r,i.bind(s),n);return o(),l}function Fr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const _o=Symbol("_vte"),yn=e=>e.__isTeleport,Fn=Symbol("_leaveCb");function mo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}function Nr(e){if(!cs(e))return yn(e.type)&&e.children?mo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&R(n.default))return n.default()}}function Yt(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Yt(yn(n.type)&&Nr(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===ce&&O(e.children)){const n=qr(e.children,!1);n&&Yt(n,t)}}function Bn(e){if(e.component)return Bn(e.component.subTree);if(e.type===ce){const t=O(e.children)&&qr(e.children,!1);return t?Bn(t):void 0}if(e.type!==ge)return e}function rf(e,t){return R(e)?Z({name:e.name},t,{setup:e}):e}function jr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function of(e){const t=wn(),n=Ji(null);if(t){const r=t.refs===N?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Es(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Xt=new WeakMap;function vt(e,t,n,s,r=!1){if(O(e)){e.forEach((A,q)=>vt(A,t&&(O(t)?t[q]:t),n,s,r));return}if(ft(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&vt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Cn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,d=t&&t.r,a=l.refs===N?l.refs={}:l.refs,p=l.setupState,C=D(p),w=p===N?Zs:A=>Es(a,A)?!1:V(C,A),I=(A,q)=>!(q&&Es(a,q));if(d!=null&&d!==c){if(As(t),J(d))a[d]=null,w(d)&&(p[d]=null);else if(Q(d)){const A=t;I(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(R(c))Mt(c,l,12,[o,a]);else{const A=J(c),q=Q(c);if(A||q){const B=()=>{if(e.f){const j=A?w(c)?p[c]:a[c]:I()||!e.k?c.value:a[e.k];if(r)O(j)&&es(j,i);else if(O(j))j.includes(i)||j.push(i);else if(A)a[c]=[i],w(c)&&(p[c]=a[c]);else{const L=[i];I(c,e.k)&&(c.value=L),e.k&&(a[e.k]=L)}}else A?(a[c]=o,w(c)&&(p[c]=o)):q&&(I(c,e.k)&&(c.value=o),e.k&&(a[e.k]=o))};if(o){const j=()=>{B(),Xt.delete(e)};j.id=-1,Xt.set(e,j),fe(j,n)}else As(e),B()}}}function As(e){const t=Xt.get(e);t&&(t.flags|=8,Xt.delete(e))}un().requestIdleCallback;un().cancelIdleCallback;const ft=e=>!!e.type.__asyncLoader,cs=e=>e.type.__isKeepAlive;function yo(e,t){Dr(e,"a",t)}function bo(e,t){Dr(e,"da",t)}function Dr(e,t,n=se){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(bn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)cs(r.parent.vnode)&&xo(s,t,n,r),r=r.parent}}function xo(e,t,n,s){const r=bn(t,e,s,!0);Vr(()=>{es(s[t],r)},n)}function bn(e,t,n=se,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Me();const l=Rt(n),c=be(t,n,e,o);return l(),Re(),c});return s?r.unshift(i):r.push(i),i}}const $e=e=>(t,n=se)=>{(!At||e==="sp")&&bn(e,(...s)=>t(...s),n)},vo=$e("bm"),So=$e("m"),wo=$e("bu"),Co=$e("u"),To=$e("bum"),Vr=$e("um"),Oo=$e("sp"),Eo=$e("rtg"),Ao=$e("rtc");function Po(e,t=se){bn("ec",e,t)}const Mo="components",Hr=Symbol.for("v-ndc");function lf(e){return J(e)?Ro(Mo,e,!1)||e:e||Hr}function Ro(e,t,n=!0,s=!1){const r=te||se;if(r){const i=r.type;{const l=pl(i,!1);if(l&&(l===t||l===re(t)||l===fn(re(t))))return i}const o=Ps(r[e]||i[e],t)||Ps(r.appContext[e],t);return!o&&s?i:o}}function Ps(e,t){return e&&(e[t]||e[re(t)]||e[fn(re(t))])}function ff(e,t,n,s){let r;const i=n,o=O(e);if(o||J(e)){const l=o&&qe(e);let c=!1,d=!1;l&&(c=!de(e),d=Ie(e),e=dn(e)),r=new Array(e.length);for(let a=0,p=e.length;a<p;a++)r[a]=t(c?d?Je(pe(e[a])):pe(e[a]):e[a],a,void 0,i)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(H(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const a=l[c];r[c]=t(e[a],a,c,i)}}else r=[];return r}function cf(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(O(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function uf(e,t,n,s,r,i){if(n==null&&(n={}),te.ce||te.parent&&ft(te.parent)&&te.parent.ce){const d=n,a=Object.keys(d).length>0;return t!=="default"&&(d.name=t),Xn(),Qn(ce,null,[Pe("slot",d,s)],a?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const l=He.length;Xn();let c;try{const d=o&&Lr(o(n)),a=n.key||i||d&&d.key;c=Qn(ce,{key:(a&&!he(a)?a:`_${t}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&e._===1?64:-2)}catch(d){for(let a=He.length;a>l;a--)ds();throw d}finally{o&&o._c&&(o._d=!0)}return c}function Lr(e){return e.some(t=>Sn(t)?!(t.type===ge||t.type===ce&&!Lr(t.children)):!0)?e:null}const qn=e=>e?fi(e)?Cn(e):qn(e.parent):null,St=Z(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qn(e.parent),$root:e=>qn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Kr(e),$forceUpdate:e=>e.f||(e.f=()=>{fs(e.update)}),$nextTick:e=>e.n||(e.n=Er.bind(e.proxy)),$watch:e=>go.bind(e)}),Nn=(e,t)=>e!==N&&!e.__isScriptSetup&&V(e,t),Io={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Nn(s,t))return o[t]=1,s[t];if(r!==N&&V(r,t))return o[t]=2,r[t];if(V(i,t))return o[t]=3,i[t];if(n!==N&&V(n,t))return o[t]=4,n[t];Gn&&(o[t]=0)}}const d=St[t];let a,p;if(d)return t==="$attrs"&&ne(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==N&&V(n,t))return o[t]=4,n[t];if(p=c.config.globalProperties,V(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Nn(r,t)?(r[t]=n,!0):s!==N&&V(s,t)?(s[t]=n,!0):V(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==N&&l[0]!=="$"&&V(e,l)||Nn(t,l)||V(i,l)||V(s,l)||V(St,l)||V(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qt(e){return O(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function af(e,t){return!e||!t?e||t:O(e)&&O(t)?e.concat(t):Z({},Qt(e),Qt(t))}let Gn=!0;function Fo(e){const t=Kr(e),n=e.proxy,s=e.ctx;Gn=!1,t.beforeCreate&&Ms(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:C,beforeUpdate:w,updated:I,activated:A,deactivated:q,beforeDestroy:B,beforeUnmount:j,destroyed:L,unmounted:P,render:Y,renderTracked:Ke,renderTriggered:xe,errorCaptured:Ue,serverPrefetch:It,expose:ze,inheritAttrs:ut,components:Ft,directives:Nt,filters:Tn}=t;if(d&&No(d,s,null),o)for(const G in o){const U=o[G];R(U)&&(s[G]=U.bind(n))}if(r){const G=r.call(n,n);H(G)&&(e.data=os(G))}if(Gn=!0,i)for(const G in i){const U=i[G],Ye=R(U)?U.bind(n,n):R(U.get)?U.get.bind(n,n):Ae,jt=!R(U)&&R(U.set)?U.set.bind(n):Ae,Xe=_l({get:Ye,set:jt});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:_e=>Xe.value=_e})}if(l)for(const G in l)$r(l[G],s,n,G);if(c){const G=R(c)?c.call(n):c;Reflect.ownKeys(G).forEach(U=>{uo(U,G[U])})}a&&Ms(a,e,"c");function ie(G,U){O(U)?U.forEach(Ye=>G(Ye.bind(n))):U&&G(U.bind(n))}if(ie(vo,p),ie(So,C),ie(wo,w),ie(Co,I),ie(yo,A),ie(bo,q),ie(Po,Ue),ie(Ao,Ke),ie(Eo,xe),ie(To,j),ie(Vr,P),ie(Oo,It),O(ze))if(ze.length){const G=e.exposed||(e.exposed={});ze.forEach(U=>{Object.defineProperty(G,U,{get:()=>n[U],set:Ye=>n[U]=Ye,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===Ae&&(e.render=Y),ut!=null&&(e.inheritAttrs=ut),Ft&&(e.components=Ft),Nt&&(e.directives=Nt),It&&jr(e)}function No(e,t,n=Ae){O(e)&&(e=Jn(e));for(const s in e){const r=e[s];let i;H(r)?"default"in r?i=Wt(r.from||s,r.default,!0):i=Wt(r.from||s):i=Wt(r),Q(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Ms(e,t,n){be(O(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function $r(e,t,n,s){let r=s.includes(".")?Fr(n,s):()=>n[s];if(J(e)){const i=t[e];R(i)&&In(r,i)}else if(R(e))In(r,e.bind(n));else if(H(e))if(O(e))e.forEach(i=>$r(i,t,n,s));else{const i=R(e.handler)?e.handler.bind(n):t[e.handler];R(i)&&In(r,i,e)}}function Kr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(d=>Zt(c,d,o,!0)),Zt(c,t,o)),H(t)&&i.set(t,c),c}function Zt(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Zt(e,i,n,!0),r&&r.forEach(o=>Zt(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=jo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const jo={data:Rs,props:Is,emits:Is,methods:_t,computed:_t,beforeCreate:oe,created:oe,beforeMount:oe,mounted:oe,beforeUpdate:oe,updated:oe,beforeDestroy:oe,beforeUnmount:oe,destroyed:oe,unmounted:oe,activated:oe,deactivated:oe,errorCaptured:oe,serverPrefetch:oe,components:_t,directives:_t,watch:Vo,provide:Rs,inject:Do};function Rs(e,t){return t?e?function(){return Z(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function Do(e,t){return _t(Jn(e),Jn(t))}function Jn(e){if(O(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function oe(e,t){return e?[...new Set([].concat(e,t))]:t}function _t(e,t){return e?Z(Object.create(null),e,t):t}function Is(e,t){return e?O(e)&&O(t)?[...new Set([...e,...t])]:Z(Object.create(null),Qt(e),Qt(t??{})):t}function Vo(e,t){if(!e)return t;if(!t)return e;const n=Z(Object.create(null),e);for(const s in t)n[s]=oe(e[s],t[s]);return n}function Ur(){return{app:null,config:{isNativeTag:Zs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ho=0;function Lo(e,t){return function(s,r=null){R(s)||(s=Z({},s)),r!=null&&!H(r)&&(r=null);const i=Ur(),o=new WeakSet,l=[];let c=!1;const d=i.app={_uid:Ho++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:ml,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&R(a.install)?(o.add(a),a.install(d,...p)):R(a)&&(o.add(a),a(d,...p))),d},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),d},component(a,p){return p?(i.components[a]=p,d):i.components[a]},directive(a,p){return p?(i.directives[a]=p,d):i.directives[a]},mount(a,p,C){if(!c){const w=d._ceVNode||Pe(s,r);return w.appContext=i,C===!0?C="svg":C===!1&&(C=void 0),e(w,a,C),c=!0,d._container=a,a.__vue_app__=d,Cn(w.component)}},onUnmount(a){l.push(a)},unmount(){c&&(be(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,p){return i.provides[a]=p,d},runWithContext(a){const p=rt;rt=d;try{return a()}finally{rt=p}}};return d}}let rt=null;function df(e,t,n=N){const s=wn(),r=re(t),i=Le(t),o=Wr(e,r),l=Qi((c,d)=>{let a,p=N,C;return po(()=>{const w=e[r];ee(a,w)&&(a=w,d())}),{get(){return c(),n.get?n.get(a):a},set(w){const I=n.set?n.set(w):w;if(!ee(I,a)&&!(p!==N&&ee(w,p)))return;const A=s.vnode.props,q=!!(A&&(t in A||r in A||i in A)&&(`onUpdate:${t}`in A||`onUpdate:${r}`in A||`onUpdate:${i}`in A));q||(a=w,d()),s.emit(`update:${t}`,I),ee(w,p)&&(ee(w,I)&&!ee(I,C)||q&&p!==N&&!ee(I,a))&&d(),p=w,C=I}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||N:l,done:!1}:{done:!0}}}},l}const Wr=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${re(t)}Modifiers`]||e[`${Le(t)}Modifiers`];function $o(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||N;let r=n;const i=t.startsWith("update:"),o=i&&Wr(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>J(a)?a.trim():a)),o.number&&(r=r.map(cn)));let l,c=s[l=On(t)]||s[l=On(re(t))];!c&&i&&(c=s[l=On(Le(t))]),c&&be(c,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(d,e,6,r)}}const Ko=new WeakMap;function Br(e,t,n=!1){const s=n?Ko:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!R(e)){const c=d=>{const a=Br(d,t,!0);a&&(l=!0,Z(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(H(e)&&s.set(e,null),null):(O(i)?i.forEach(c=>o[c]=null):Z(o,i),H(e)&&s.set(e,o),o)}function xn(e,t){return!e||!sn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,Le(t))||V(e,t))}function Fs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:a,props:p,data:C,setupState:w,ctx:I,inheritAttrs:A}=e,q=zt(e);let B,j;try{if(n.shapeFlag&4){const P=r||s,Y=P;B=Ee(d.call(Y,P,a,p,w,C,I)),j=l}else{const P=t;B=Ee(P.length>1?P(p,{attrs:l,slots:o,emit:c}):P(p,null)),j=t.props?l:Uo(l)}}catch(P){He.length=0,_n(P,e,1),B=Pe(ge)}let L=B;if(j&&A!==!1){const P=Object.keys(j),{shapeFlag:Y}=L;P.length&&Y&7&&(i&&P.some(rn)&&(j=Wo(j,i)),L=ct(L,j,!1,!0))}if(n.dirs&&(L=ct(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition){const P=yn(L.type)&&Nr(L)||L;Yt(P,n.transition)}return B=L,zt(q),B}function qr(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(Sn(r)){if(r.type!==ge||r.children==="v-if"){if(n)return;n=r}}else return}return n}const Uo=e=>{let t;for(const n in e)(n==="class"||n==="style"||sn(n))&&((t||(t={}))[n]=e[n]);return t},Wo=(e,t)=>{const n={};for(const s in e)(!rn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Bo(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ns(s,o,d):!!o;if(c&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const C=a[p];if(Gr(o,s,C)&&!xn(d,C))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ns(s,o,d):!0:!!o;return!1}function Ns(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(!V(e,i)||Gr(t,e,i)&&!xn(n,i))return!0}return!1}function Gr(e,t,n){const s=e[n],r=t[n];return n==="style"&&H(s)&&H(r)?!Ge(s,r):s!==r}function qo({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Jr={},zr=()=>Object.create(Jr),Yr=e=>Object.getPrototypeOf(e)===Jr;function Go(e,t,n,s=!1){const r={},i=zr();e.propsDefaults=Object.create(null),Xr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Bi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Jo(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=D(r),[c]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let C=a[p];if(xn(e.emitsOptions,C))continue;const w=t[C];if(c)if(V(i,C))w!==i[C]&&(i[C]=w,d=!0);else{const I=re(C);r[I]=zn(c,l,I,w,e,!1)}else w!==i[C]&&(i[C]=w,d=!0)}}}else{Xr(e,t,r,i)&&(d=!0);let a;for(const p in l)(!t||!V(t,p)&&((a=Le(p))===p||!V(t,a)))&&(c?n&&(n[p]!==void 0||n[a]!==void 0)&&(r[p]=zn(c,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!V(t,p))&&(delete i[p],d=!0)}d&&De(e.attrs,"set","")}function Xr(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(yt(c))continue;const d=t[c];let a;r&&V(r,a=re(c))?!i||!i.includes(a)?n[a]=d:(l||(l={}))[a]=d:xn(e.emitsOptions,c)||(!(c in s)||d!==s[c])&&(s[c]=d,o=!0)}if(i){const c=D(n),d=l||N;for(let a=0;a<i.length;a++){const p=i[a];n[p]=zn(r,c,p,d[p],e,!V(d,p))}}return o}function zn(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=V(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&R(c)){const{propsDefaults:d}=r;if(n in d)s=d[n];else{const a=Rt(r);s=d[n]=c.call(null,t),a()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Le(n))&&(s=!0))}return s}const zo=new WeakMap;function Qr(e,t,n=!1){const s=n?zo:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!R(e)){const a=p=>{c=!0;const[C,w]=Qr(p,t,!0);Z(o,C),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return H(e)&&s.set(e,tt),tt;if(O(i))for(let a=0;a<i.length;a++){const p=re(i[a]);js(p)&&(o[p]=N)}else if(i)for(const a in i){const p=re(a);if(js(p)){const C=i[a],w=o[p]=O(C)||R(C)?{type:C}:Z({},C),I=w.type;let A=!1,q=!0;if(O(I))for(let B=0;B<I.length;++B){const j=I[B],L=R(j)&&j.name;if(L==="Boolean"){A=!0;break}else L==="String"&&(q=!1)}else A=R(I)&&I.name==="Boolean";w[0]=A,w[1]=q,(A||V(w,"default"))&&l.push(p)}}const d=[o,l];return H(e)&&s.set(e,d),d}function js(e){return e[0]!=="$"&&!yt(e)}const us=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>O(e)?e.map(Ee):[Ee(e)],Yo=(e,t,n)=>{if(t._n)return t;const s=co((...r)=>as(t(...r)),n);return s._c=!1,s},Zr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(us(r))continue;const i=e[r];if(R(i))t[r]=Yo(r,i,s);else if(i!=null){const o=as(i);t[r]=()=>o}}},kr=(e,t)=>{const n=as(t);e.slots.default=()=>n},ei=(e,t,n)=>{for(const s in t)(n||!us(s))&&(e[s]=t[s])},Xo=(e,t,n)=>{const s=e.slots=zr();if(e.vnode.shapeFlag&32){const r=t._;r?(ei(s,t,n),n&&nr(s,"_",r,!0)):Zr(t,s)}else t&&kr(e,t)},Qo=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=N;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ei(r,t,n):(i=!t.$stable,Zr(t,r)),o=t}else t&&(kr(e,t),o={default:1});if(i)for(const l in r)!us(l)&&o[l]==null&&delete r[l]},fe=nl;function Zo(e){return ko(e)}function ko(e,t){const n=un();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:C,setScopeId:w=Ae,insertStaticContent:I}=e,A=(f,u,h,y=null,_=null,m=null,v=void 0,x=null,b=!!u.dynamicChildren)=>{if(f===u)return;f&&!gt(f,u)&&(y=Dt(f),_e(f,_,m,!0),f=null),u.patchFlag===-2&&(b=!1,u.dynamicChildren=null),u.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(u.dynamicChildren===tt&&(u.dynamicChildren=[]),u.dynamicChildren.hasOnce=!0);const{type:g,ref:T,shapeFlag:S}=u;switch(g){case vn:q(f,u,h,y);break;case ge:B(f,u,h,y);break;case Dn:f==null&&j(u,h,y,v);break;case ce:Ft(f,u,h,y,_,m,v,x,b);break;default:S&1?Y(f,u,h,y,_,m,v,x,b):S&6?Nt(f,u,h,y,_,m,v,x,b):(S&64||S&128)&&g.process(f,u,h,y,_,m,v,x,b,dt)}T!=null&&_?vt(T,f&&f.ref,m,u||f,!u):T==null&&f&&f.ref!=null&&vt(f.ref,null,m,f,!0)},q=(f,u,h,y)=>{if(f==null)s(u.el=l(u.children),h,y);else{const _=u.el=f.el;u.children!==f.children&&d(_,u.children)}},B=(f,u,h,y)=>{f==null?s(u.el=c(u.children||""),h,y):u.el=f.el},j=(f,u,h,y)=>{[f.el,f.anchor]=I(f.children,u,h,y,f.el,f.anchor)},L=({el:f,anchor:u},h,y)=>{let _;for(;f&&f!==u;)_=C(f),s(f,h,y),f=_;s(u,h,y)},P=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=C(f),r(f),f=h;r(u)},Y=(f,u,h,y,_,m,v,x,b)=>{if(u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),f==null)Ke(u,h,y,_,m,v,x,b);else{const g=f.el&&f.el._isVueCE?f.el:null;try{g&&g._beginPatch(),It(f,u,_,m,v,x,b)}finally{g&&g._endPatch()}}},Ke=(f,u,h,y,_,m,v,x)=>{let b,g;const{props:T,shapeFlag:S,transition:E,dirs:M}=f;if(b=f.el=o(f.type,m,T&&T.is,T),S&8?a(b,f.children):S&16&&Ue(f.children,b,null,y,_,jn(f,m),v,x),M&&Qe(f,null,y,"created"),xe(b,f,f.scopeId,v,y),T){for(const K in T)K!=="value"&&!yt(K)&&i(b,K,null,T[K],m,y);"value"in T&&i(b,"value",null,T.value,m),(g=T.onVnodeBeforeMount)&&Ce(g,y,f)}M&&Qe(f,null,y,"beforeMount");const F=el(_,E);F&&E.beforeEnter(b),s(b,u,h),((g=T&&T.onVnodeMounted)||F||M)&&fe(()=>{try{g&&Ce(g,y,f),F&&E.enter(b),M&&Qe(f,null,y,"mounted")}finally{}},_)},xe=(f,u,h,y,_)=>{if(h&&w(f,h),y)for(let m=0;m<y.length;m++)w(f,y[m]);if(_){let m=_.subTree;if(u===m||si(m.type)&&(m.ssContent===u||m.ssFallback===u)){const v=_.vnode;xe(f,v,v.scopeId,v.slotScopeIds,_.parent)}}},Ue=(f,u,h,y,_,m,v,x,b=0)=>{for(let g=b;g<f.length;g++){const T=f[g]=x?je(f[g]):Ee(f[g]);A(null,T,u,h,y,_,m,v,x)}},It=(f,u,h,y,_,m,v)=>{const x=u.el=f.el;let{patchFlag:b,dynamicChildren:g,dirs:T}=u;b|=f.patchFlag&16;const S=f.props||N,E=u.props||N;let M;if(h&&Ze(h,!1),(M=E.onVnodeBeforeUpdate)&&Ce(M,h,u,f),T&&Qe(u,f,h,"beforeUpdate"),h&&Ze(h,!0),g&&(!f.dynamicChildren||f.dynamicChildren.length!==g.length)&&(b=0,v=!1,g=null),(S.innerHTML&&E.innerHTML==null||S.textContent&&E.textContent==null)&&a(x,""),g?ze(f.dynamicChildren,g,x,h,y,jn(u,_),m):v||U(f,u,x,null,h,y,jn(u,_),m,!1),b>0){if(b&16)ut(x,S,E,h,_);else if(b&2&&S.class!==E.class&&i(x,"class",null,E.class,_),b&4&&i(x,"style",S.style,E.style,_),b&8){const F=u.dynamicProps;for(let K=0;K<F.length;K++){const $=F[K],z=S[$],k=E[$];(k!==z||$==="value")&&i(x,$,z,k,_,h)}}b&1&&f.children!==u.children&&a(x,u.children)}else!v&&g==null&&ut(x,S,E,h,_);((M=E.onVnodeUpdated)||T)&&fe(()=>{M&&Ce(M,h,u,f),T&&Qe(u,f,h,"updated")},y)},ze=(f,u,h,y,_,m,v)=>{for(let x=0;x<u.length;x++){const b=f[x],g=u[x],T=b.el||Yn(b),S=T&&(b.type===ce||!gt(b,g)||b.shapeFlag&198)?p(T):h;A(b,g,S,null,y,_,m,v,!0)}},ut=(f,u,h,y,_)=>{if(u!==h){if(u!==N)for(const m in u)!yt(m)&&!(m in h)&&i(f,m,u[m],null,_,y);for(const m in h){if(yt(m))continue;const v=h[m],x=u[m];v!==x&&m!=="value"&&i(f,m,x,v,_,y)}"value"in h&&i(f,"value",u.value,h.value,_)}},Ft=(f,u,h,y,_,m,v,x,b)=>{const g=u.el=f?f.el:l(""),T=u.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:E,slotScopeIds:M}=u;M&&(x=x?x.concat(M):M),f==null?(s(g,h,y),s(T,h,y),Ue(u.children||[],h,T,_,m,v,x,b)):S>0&&S&64&&E&&f.dynamicChildren&&f.dynamicChildren.length===E.length?(ze(f.dynamicChildren,E,h,_,m,v,x),(u.key!=null||_&&u===_.subTree)&&ti(f,u,!0)):U(f,u,h,T,_,m,v,x,b)},Nt=(f,u,h,y,_,m,v,x,b)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?_.ctx.activate(u,h,y,v,b):Tn(u,h,y,_,m,v,b):hs(f,u,b)},Tn=(f,u,h,y,_,m,v)=>{const x=f.component=cl(f,y,_);if(cs(f)&&(x.ctx.renderer=dt),ul(x,!1,v),x.asyncDep){if(_&&_.registerDep(x,ie,v,m),!f.el){const b=x.subTree=Pe(ge);B(null,b,u,h),f.placeholder=b.el}}else ie(x,f,u,h,_,m,v)},hs=(f,u,h)=>{const y=u.component=f.component;if(Bo(f,u,h))if(y.asyncDep&&!y.asyncResolved){u.el=f.el,u.placeholder=f.placeholder,G(y,u,h);return}else y.next=u,y.update();else u.el=f.el,u.placeholder=f.placeholder,y.vnode=u},ie=(f,u,h,y,_,m,v)=>{const x=()=>{if(f.isMounted){let{next:S,bu:E,u:M,parent:F,vnode:K}=f;{const Se=ni(f);if(Se){S&&(S.el=K.el,G(f,S,v)),Se.asyncDep.then(()=>{fe(()=>{f.isUnmounted||g()},_)});return}}let $=S,z;Ze(f,!1),S?(S.el=K.el,G(f,S,v)):S=K,E&&Ut(E),(z=S.props&&S.props.onVnodeBeforeUpdate)&&Ce(z,F,S,K),Ze(f,!0);const k=Fs(f),ve=f.subTree;f.subTree=k,A(ve,k,p(ve.el),Dt(ve),f,_,m),S.el=k.el,$===null&&qo(f,k.el),M&&fe(M,_),(z=S.props&&S.props.onVnodeUpdated)&&fe(()=>Ce(z,F,S,K),_)}else{let S;const{el:E,props:M}=u,{bm:F,m:K,parent:$,root:z,type:k}=f,ve=ft(u);Ze(f,!1),F&&Ut(F),!ve&&(S=M&&M.onVnodeBeforeMount)&&Ce(S,$,u),Ze(f,!0);{z.ce&&z.ce._hasShadowRoot()&&z.ce._injectChildStyle(k,f.parent?f.parent.type:void 0);const Se=f.subTree=Fs(f);A(null,Se,h,y,f,_,m),u.el=Se.el}if(K&&fe(K,_),!ve&&(S=M&&M.onVnodeMounted)){const Se=u;fe(()=>Ce(S,$,Se),_)}(u.shapeFlag&256||$&&ft($.vnode)&&$.vnode.shapeFlag&256)&&f.a&&fe(f.a,_),f.isMounted=!0,u=h=y=null}};f.scope.on();const b=f.effect=new lr(x);f.scope.off();const g=f.update=b.run.bind(b),T=f.job=b.runIfDirty.bind(b);T.i=f,T.id=f.uid,b.scheduler=()=>fs(T),Ze(f,!0),g()},G=(f,u,h)=>{u.component=f;const y=f.vnode.props;f.vnode=u,f.next=null,Jo(f,u.props,y,h),Qo(f,u.children,h),Me(),Pr(f),Re()},U=(f,u,h,y,_,m,v,x,b=!1)=>{const g=f&&f.children,T=f?f.shapeFlag:0,S=u.children,{patchFlag:E,shapeFlag:M}=u;if(E>0){if(E&128){jt(g,S,h,y,_,m,v,x,b);return}else if(E&256){Ye(g,S,h,y,_,m,v,x,b);return}}M&8?(T&16&&at(g,_,m),S!==g&&a(h,S)):T&16?M&16?jt(g,S,h,y,_,m,v,x,b):at(g,_,m,!0):(T&8&&a(h,""),M&16&&Ue(S,h,y,_,m,v,x,b))},Ye=(f,u,h,y,_,m,v,x,b)=>{f=f||tt,u=u||tt;const g=f.length,T=u.length,S=Math.min(g,T);let E;for(E=0;E<S;E++){const M=u[E]=b?je(u[E]):Ee(u[E]);A(f[E],M,h,null,_,m,v,x,b)}g>T?at(f,_,m,!0,!1,S):Ue(u,h,y,_,m,v,x,b,S)},jt=(f,u,h,y,_,m,v,x,b)=>{let g=0;const T=u.length;let S=f.length-1,E=T-1;for(;g<=S&&g<=E;){const M=f[g],F=u[g]=b?je(u[g]):Ee(u[g]);if(gt(M,F))A(M,F,h,null,_,m,v,x,b);else break;g++}for(;g<=S&&g<=E;){const M=f[S],F=u[E]=b?je(u[E]):Ee(u[E]);if(gt(M,F))A(M,F,h,null,_,m,v,x,b);else break;S--,E--}if(g>S){if(g<=E){const M=E+1,F=M<T?u[M].el:y;for(;g<=E;)A(null,u[g]=b?je(u[g]):Ee(u[g]),h,F,_,m,v,x,b),g++}}else if(g>E)for(;g<=S;)_e(f[g],_,m,!0),g++;else{const M=g,F=g,K=new Map;for(g=F;g<=E;g++){const ue=u[g]=b?je(u[g]):Ee(u[g]);ue.key!=null&&K.set(ue.key,g)}let $,z=0;const k=E-F+1;let ve=!1,Se=0;const ht=new Array(k);for(g=0;g<k;g++)ht[g]=0;for(g=M;g<=S;g++){const ue=f[g];if(z>=k){_e(ue,_,m,!0);continue}let we;if(ue.key!=null)we=K.get(ue.key);else for($=F;$<=E;$++)if(ht[$-F]===0&>(ue,u[$])){we=$;break}we===void 0?_e(ue,_,m,!0):(ht[we-F]=g+1,we>=Se?Se=we:ve=!0,A(ue,u[we],h,null,_,m,v,x,b),z++)}const ms=ve?tl(ht):tt;for($=ms.length-1,g=k-1;g>=0;g--){const ue=F+g,we=u[ue],ys=u[ue+1],bs=ue+1<T?ys.el||Yn(ys):y;ht[g]===0?A(null,we,h,bs,_,m,v,x,b):ve&&($<0||g!==ms[$]?Xe(we,h,bs,2):$--)}}},Xe=(f,u,h,y,_=null)=>{const{el:m,type:v,transition:x,children:b,shapeFlag:g}=f;if(g&6){Xe(f.component.subTree,u,h,y);return}if(g&128){f.suspense.move(u,h,y);return}if(g&64){v.move(f,u,h,dt);return}if(v===ce){s(m,u,h);for(let S=0;S<b.length;S++)Xe(b[S],u,h,y);s(f.anchor,u,h);return}if(v===Dn){L(f,u,h);return}if(y!==2&&g&1&&x)if(y===0)x.persisted&&!m[Fn]?s(m,u,h):(x.beforeEnter(m),s(m,u,h),fe(()=>x.enter(m),_));else{const{leave:S,delayLeave:E,afterLeave:M}=x,F=()=>{f.ctx.isUnmounted?r(m):s(m,u,h)},K=()=>{const $=m._isLeaving||!!m[Fn];m._isLeaving&&m[Fn](!0),x.persisted&&!$?F():S(m,()=>{F(),M&&M()})};E?E(m,F,K):K()}else s(m,u,h)},_e=(f,u,h,y=!1,_=!1)=>{const{type:m,props:v,ref:x,children:b,dynamicChildren:g,shapeFlag:T,patchFlag:S,dirs:E,cacheIndex:M,memo:F}=f;if((S===-2||g&&g.hasOnce)&&(_=!1),x!=null&&(Me(),vt(x,null,h,f,!0),Re()),M!=null&&(!f.ctx||f.ctx===u)&&(u.renderCache[M]=void 0),T&256){u.ctx.deactivate(f);return}const K=T&1&&E,$=!ft(f);let z;if($&&(z=v&&v.onVnodeBeforeUnmount)&&Ce(z,u,f),T&6)ai(f.component,h,y);else{if(T&128){f.suspense.unmount(h,y);return}K&&Qe(f,null,u,"beforeUnmount"),T&64?f.type.remove(f,u,h,dt,y):g&&!g.hasOnce&&(m!==ce||S>0&&S&64)?at(g,u,h,!1,!0):(m===ce&&S&384||!_&&T&16)&&at(b,u,h),y&&ps(f)}const k=F!=null&&M==null;($&&(z=v&&v.onVnodeUnmounted)||K||k)&&fe(()=>{z&&Ce(z,u,f),K&&Qe(f,null,u,"unmounted"),k&&(f.el=null)},h)},ps=f=>{const{type:u,el:h,anchor:y,transition:_}=f,m=u===ce;if(m&&!_){gs(h,y);return}if(u===Dn){P(f),_&&!_.persisted&&_.afterLeave&&_.afterLeave();return}const v=m?Bn(f):f,x=()=>{m?p(h)&&gs(h,y):r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(v&&v.shapeFlag&1&&_&&!_.persisted){const{leave:b,delayLeave:g}=_,T=v.el,S=()=>b(T,x);g?g(T,x,S):S()}else x()},gs=(f,u)=>{let h;for(;f!==u;)h=C(f),r(f),f=h;r(u)},ai=(f,u,h)=>{const{bum:y,scope:_,job:m,subTree:v,um:x,m:b,a:g}=f;Ds(b),Ds(g),y&&Ut(y),_.stop(),m?(m.flags|=8,_e(v,f,u,h)):f.vnode.el&&v&&(v.transition=f.vnode.transition,_e(v,f,u,h)),x&&fe(x,u),fe(()=>{f.isUnmounted=!0},u)},at=(f,u,h,y=!1,_=!1,m=0)=>{for(let v=m;v<f.length;v++)_e(f[v],u,h,y,_)},Dt=f=>{if(f.shapeFlag&6)return Dt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=C(f.anchor||f.el),h=u&&u[_o];return h?C(h):u},_s=(f,u,h)=>{const y=f&&u._vnode?void 0:f&&f.component?f.component.uid:fl();fo(()=>{f==null?u._vnode&&_e(u._vnode,null,null,!0):A(u._vnode||null,f,u,null,null,null,h),u._vnode=f},y)},dt={p:A,um:_e,m:Xe,r:ps,mt:Tn,mc:Ue,pc:U,pbc:ze,n:Dt,o:e};return{render:_s,hydrate:void 0,createApp:Lo(_s)}}function jn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ze({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function el(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ti(e,t,n=!1){const s=e.children,r=t.children;if(O(s)&&O(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=je(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&ti(o,l)),l.type===vn&&(l.patchFlag===-1&&(l=r[i]=je(l)),l.el=o.el),l.type===ge&&!l.el&&(l.el=o.el)}}function tl(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const d=e[s];if(d!==0){if(r=n[n.length-1],e[r]<d){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<d?i=l+1:o=l;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ni(t)}function Ds(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yn(t.subTree):null}const si=e=>e.__isSuspense;function nl(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):lo(e)}const ce=Symbol.for("v-fgt"),vn=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),Dn=Symbol.for("v-stc"),He=[];let ae=null;function Xn(e=!1){He.push(ae=e?null:[])}function ds(){He.pop(),ae=He[He.length-1]||null}let Ot=1;function Vs(e,t=!1){Ot+=e,e<0&&ae&&t&&(ae.hasOnce=!0)}function ri(e){return e.dynamicChildren=Ot>0?ae||tt:null,ds(),Ot>0&&ae&&ae.push(e),e}function hf(e,t,n,s,r,i){return ri(oi(e,t,n,s,r,i,!0))}function Qn(e,t,n,s,r){return ri(Pe(e,t,n,s,r,!0))}function Sn(e){return e?e.__v_isVNode===!0:!1}function gt(e,t){return e.type===t.type&&e.key===t.key}const ii=({key:e})=>e??null,Bt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||Q(e)||R(e)?{i:te,r:e,k:t,f:!!n}:e:null);function oi(e,t=null,n=null,s=0,r=null,i=e===ce?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&Bt(t),scopeId:Ir,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:te};return l?(kt(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=J(n)?8:16),Ot>0&&!o&&ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ae.push(c),c}const Pe=sl;function sl(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Hr)&&(e=ge),Sn(e)){const l=ct(e,t,!0);return n&&kt(l,n),Ot>0&&!i&&ae&&(l.shapeFlag&6?ae[ae.indexOf(e)]=l:ae.push(l)),l.patchFlag=-2,l}if(gl(e)&&(e=e.__vccOpts),t){t=rl(t);let{class:l,style:c}=t;l&&!J(l)&&(t.class=ns(l)),H(c)&&(gn(c)&&!O(c)&&(c=Z({},c)),t.style=ts(c))}const o=J(e)?1:si(e)?128:yn(e)?64:H(e)?4:R(e)?2:0;return oi(e,t,n,s,r,o,i,!0)}function rl(e){return e?gn(e)||Yr(e)?Z({},e):e:null}function ct(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,d=t?ol(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ii(d),ref:t&&t.ref?n&&i?O(i)?i.concat(Bt(t)):[i,Bt(t)]:Bt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ct(e.ssContent),ssFallback:e.ssFallback&&ct(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&s&&Yt(a,c.clone(a)),a}function il(e=" ",t=0){return Pe(vn,null,e,t)}function pf(e="",t=!1){return t?(Xn(),Qn(ge,null,e)):Pe(ge,null,e)}function Ee(e){return e==null||typeof e=="boolean"?Pe(ge):O(e)?Pe(ce,null,e.slice()):Sn(e)?je(e):Pe(vn,null,String(e))}function je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ct(e)}function kt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(O(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),kt(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Yr(t)?t._ctx=te:r===3&&te&&(te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(R(t)){if(s&65){kt(e,{default:t});return}t={default:t,_ctx:te},n=32}else t=String(t),s&64?(n=16,t=[il(t)]):n=8;e.children=t,e.shapeFlag|=n}function ol(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ns([t.class,s.class]));else if(r==="style")t.style=ts([t.style,s.style]);else if(sn(r)){const i=t[r],o=s[r];o&&i!==o&&!(O(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!rn(r)&&(t[r]=o)}else r!==""&&(t[r]=s[r])}return t}function Ce(e,t,n,s=null){be(e,t,7,[n,s])}const ll=Ur();let li=0;function fl(){return li}function cl(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ll,i={uid:li++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new or(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qr(s,r),emitsOptions:Br(s,r),emit:null,emitted:null,propsDefaults:N,inheritAttrs:s.inheritAttrs,ctx:N,data:N,props:N,attrs:N,slots:N,refs:N,setupState:N,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=$o.bind(null,i),e.ce&&e.ce(i),i}let se=null;const wn=()=>se||te;let en,Et;{const e=un(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};en=t("__VUE_INSTANCE_SETTERS__",n=>se=n),Et=t("__VUE_SSR_SETTERS__",n=>At=n)}const Rt=e=>{const t=se;return en(e),e.scope.on(),()=>{e.scope.off(),en(t)}},Hs=()=>{se&&se.scope.off(),en(null)};function fi(e){return e.vnode.shapeFlag&4}let At=!1;function ul(e,t=!1,n=!1){t&&Et(t);const{props:s,children:r}=e.vnode,i=fi(e);Go(e,s,i,t),Xo(e,r,n||t);const o=i?al(e,t):void 0;return t&&Et(!1),o}function al(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Io);const{setup:s}=n;if(s){Me();const r=e.setupContext=s.length>1?hl(e):null,i=Rt(e),o=Mt(s,e,0,[e.props,r]),l=ks(o);if(Re(),i(),(l||e.sp)&&!ft(e)&&jr(e),l){if(o.then(Hs,Hs),t)return o.then(c=>{Et(!0);try{Ls(e,c,t)}finally{Et(!1)}}).catch(c=>{_n(c,e,0)});e.asyncDep=o}else Ls(e,o)}else ci(e)}function Ls(e,t,n){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:H(t)&&(e.setupState=Tr(t)),ci(e)}function ci(e,t,n){const s=e.type;e.render||(e.render=s.render||Ae);{const r=Rt(e);Me();try{Fo(e)}finally{Re(),r()}}}const dl={get(e,t){return ne(e,"get",""),e[t]}};function hl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,dl),slots:e.slots,emit:e.emit,expose:t}}function Cn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Tr(qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in St)return St[n](e)},has(t,n){return n in t||n in St}})):e.proxy}function pl(e,t=!0){return R(e)?e.displayName||e.name:e.name||t&&e.__name}function gl(e){return R(e)&&"__vccOpts"in e}const _l=(e,t)=>no(e,t,At),ml="3.5.44";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.44
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Zn;const $s=typeof window<"u"&&window.trustedTypes;if($s)try{Zn=$s.createPolicy("vue",{createHTML:e=>e})}catch{}const ui=Zn?e=>Zn.createHTML(e):e=>e,yl="http://www.w3.org/2000/svg",bl="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,Ks=Ne&&Ne.createElement("template"),xl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ne.createElementNS(yl,e):t==="mathml"?Ne.createElementNS(bl,e):n?Ne.createElement(e,{is:n}):Ne.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ks.innerHTML=ui(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Ks.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vl=Symbol("_vtc");function Sl(e,t,n){const s=e[vl];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Us=Symbol("_vod"),wl=Symbol("_vsh"),Cl=Symbol(""),Tl=/(?:^|;)\s*display\s*:/;function Ol(e,t,n){const s=e.style,r=J(n);let i=!1;if(n&&!r){if(t)if(J(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&mt(s,l,"")}else for(const o in t)n[o]==null&&mt(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Al(e,o,!J(t)&&t?t[o]:void 0,l)||mt(s,o,l):mt(s,o,"")}}else if(r){if(t!==n){const o=s[Cl];o&&(n+=";"+o),s.cssText=n,i=Tl.test(n)}}else t&&e.removeAttribute("style");Us in e&&((!r||t!==n)&&(e[Us]=i?s.display:""),e[wl]&&(s.display="none"))}const $t=/\s*!important$/;function mt(e,t,n){if(O(n))n.forEach(s=>mt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))$t.test(n)?e.setProperty(t,n.replace($t,""),"important"):e.setProperty(t,n);else{const s=El(e,t);$t.test(n)?e.setProperty(Le(s),n.replace($t,""),"important"):e[s]=n}}const Ws=["Webkit","Moz","ms"],Vn={};function El(e,t){const n=Vn[t];if(n)return n;let s=re(t);if(s!=="filter"&&s in e)return Vn[t]=s;s=fn(s);for(let r=0;r<Ws.length;r++){const i=Ws[r]+s;if(i in e)return Vn[t]=i}return t}function Al(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&J(s)&&n===s}const Bs="http://www.w3.org/1999/xlink";function qs(e,t,n,s,r,i=vi(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bs,t.slice(6,t.length)):e.setAttributeNS(Bs,t,n):n==null||i&&!sr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":he(n)?String(n):n)}function Gs(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ui(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=sr(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function et(e,t,n,s){e.addEventListener(t,n,s)}function Pl(e,t,n,s){e.removeEventListener(t,n,s)}const Js=Symbol("_vei");function Ml(e,t,n,s,r=null){const i=e[Js]||(e[Js]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Fl(t);if(s){const d=i[t]=Dl(s,r);et(e,l,d,c)}else o&&(Pl(e,l,o,c),i[t]=void 0)}}const Rl=/(Once|Passive|Capture)$/,Il=/^on:?(?:Once|Passive|Capture)$/;function Fl(e){let t,n;for(;(n=e.match(Rl))&&!Il.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Le(e.slice(2)),t]}let Hn=0;const Nl=Promise.resolve(),jl=()=>Hn||(Nl.then(()=>Hn=0),Hn=Date.now());function Dl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(O(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;c<o.length&&!s._stopped;c++){const d=o[c];d&&be(d,t,5,l)}}else be(r,t,5,[s])};return n.value=e,n.attached=jl(),n}const zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vl=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Sl(e,s,o):t==="style"?Ol(e,n,s):sn(t)?rn(t)||Ml(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hl(e,t,s,o))?(Gs(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qs(e,t,s,o,i,t!=="value")):e._isVueCE&&(Ll(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!J(s)))?Gs(e,re(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),qs(e,t,s,o))};function Hl(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&zs(t)&&R(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return zs(t)&&J(n)?!1:t in e}function Ll(e,t){const n=e._def.props;if(!n)return!1;const s=re(t);return Array.isArray(n)?n.some(r=>re(r)===s):Object.keys(n).some(r=>re(r)===s)}const tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return O(t)?n=>Ut(t,n):t};function $l(e){e.target.composing=!0}function Ys(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const nt=Symbol("_assign"),Kt=Symbol("_initialValue");function Ln(e,t,n){return t&&(e=e.trim()),n&&(e=cn(e)),e}const gf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Kt]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Kt]=e.defaultValue.replace(/\r\n?/g,`
|
|
18
|
-
`))),e[nt]=tn(r);const i=s||r.props&&r.props.type==="number";et(e,t?"change":"input",o=>{o.target.composing||e[nt](Ln(e.value,n,i))}),(n||i)&&et(e,"change",()=>{e.value=Ln(e.value,n,i)}),t||(et(e,"compositionstart",$l),et(e,"compositionend",Ys),et(e,"change",Ys))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Kt];delete e[Kt],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[nt](Ln(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[nt]=tn(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?cn(e.value):e.value,c=t??"";if(l===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},_f={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,et(e,"change",()=>{const r=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?cn(nn(c)):nn(c)),i=e.multiple,o=i?it(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[i,i?O(o)?r.slice():r:o];try{e[nt](o)}finally{Er(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[nt]=tn(s)},mounted(e,{value:t}){Xs(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[nt]=tn(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Kl(t,n[1],n[0]))&&Xs(e,t)}};function Kl(e,t,n){if(!n||O(e))return Ge(e,t);if(it(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function Xs(e,t){const n=e.multiple,s=O(t);if(!(n&&!s&&!it(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=nn(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=Ci(t,l)>-1}else o.selected=t.has(l);else if(Ge(nn(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function nn(e){return"_value"in e?e._value:e.value}const Ul=["ctrl","shift","alt","meta"],Wl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ul.some(n=>e[`${n}Key`]&&!t.includes(n))},mf=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=Wl[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},Bl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},yf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const i=Le(r.key);if(t.some(o=>o===i||Bl[o]===i))return e(r)}))},ql=Z({patchProp:Vl},xl);let Qs;function Gl(){return Qs||(Qs=Zo(ql))}const bf=((...e)=>{const t=Gl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=zl(s);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Jl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Jl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zl(e){return J(e)?document.querySelector(e):e}const xf=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};export{df as A,af as B,co as C,Q as D,tf as E,ce as F,yf as G,gf as H,sf as I,cf as J,bf as K,_f as L,Zl as M,Ji as N,Qi as O,ef as P,Wn as Q,wn as R,nf as S,Wt as T,Oi as U,Ql as V,Xl as W,xf as _,kl as a,Gi as b,_l as c,rf as d,hf as e,ff as f,mf as g,ns as h,oi as i,Ti as j,pf as k,So as l,il as m,Er as n,Xn as o,Pe as p,Qn as q,os as r,Bi as s,D as t,ls as u,lf as v,In as w,of as x,ts as y,uf as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--page-bg: #f3f4f8;--tip-bg: #1f2433;--tip-ink: #e8ecf5;--tip-edge: rgb(255 255 255 / 12%);--tip-shadow: rgb(0 0 0 / 45%)}@media(prefers-color-scheme:dark){:root{--page-bg: #0d0f13}}@media(prefers-color-scheme:light){:root{--tip-bg: #fff;--tip-ink: #1d2023;--tip-edge: #d3d6de;--tip-shadow: rgb(0 0 0 / 18%)}}.app{--md-primary: #2c5697;--md-on-primary: #fff;--md-primary-container: #d8e2ff;--md-on-primary-container: #001a41;--md-secondary-container: #dae2f9;--md-on-secondary-container: #131c2b;--md-tertiary-container: #c8f0ec;--md-on-tertiary-container: #00201e;--md-warn-container: #ffdea6;--md-on-warn-container: #271900;--md-error: #ba1a1a;--md-error-container: #ffdad6;--md-on-error-container: #410002;--md-surface: #f9f9ff;--md-s-low: #fff;--md-s: #f1f3f9;--md-s-high: #e7e9f0;--md-s-highest: #e0e2ea;--md-on-surface: #191c20;--md-on-surface-variant: #44474e;--md-outline: #74777f;--md-outline-variant: #d3d6de;--md-state: 25, 28, 32;--state-hover: rgb(var(--md-state), .08);--focus-ring: 2px solid var(--md-primary);--glass: 255, 255, 255;--glass-a: .52;--glass-edge: rgb(255 255 255 / 70%);--glass-hi: rgb(255 255 255 / 90%);--blob-1: rgb(44 86 151 / 30%);--blob-2: rgb(0 169 224 / 22%);--blob-3: rgb(23 223 220 / 16%);--md-font: roboto, inter, -apple-system, blinkmacsystemfont, "Segoe UI", system-ui, sans-serif;--md-r-card: 12px;--md-r-chip: 8px;--new: #5cc8f0;--new-bg: rgb(92 200 240 / 17%);--new-ink: #04222e;--new-edge: rgb(92 200 240 / 28%);--new-glow: rgb(92 200 240 / 45%);--move: #e0a030;--live-on: #2bb673;--live-off: #d6455d;--live-warn: #e0a030;--live-pulse-from: rgb(43 182 115 / 50%);--live-pulse-to: rgb(43 182 115 / 0%);--live-pulse-rest: rgb(43 182 115 / 60%)}@media(prefers-color-scheme:dark){.app{--md-primary: #adc6ff;--md-on-primary: #0f2f60;--md-primary-container: #2b4678;--md-on-primary-container: #d8e2ff;--md-secondary-container: #3e4759;--md-on-secondary-container: #dae2f9;--md-tertiary-container: #1f504c;--md-on-tertiary-container: #b4efe9;--md-warn-container: #5c4300;--md-on-warn-container: #ffdea6;--md-error: #ffb4ab;--md-error-container: #93000a;--md-on-error-container: #ffdad6;--md-surface: #111318;--md-s-low: #1b1e23;--md-s: #1f2227;--md-s-high: #292c32;--md-s-highest: #34373d;--md-on-surface: #e2e2e9;--md-on-surface-variant: #c4c6d0;--md-outline: #8e9099;--md-outline-variant: #3a3d44;--md-state: 226, 226, 233;--glass: 30, 34, 42;--glass-a: .74;--glass-edge: rgb(255 255 255 / 9%);--glass-hi: rgb(255 255 255 / 6%);--blob-1: rgb(44 86 151 / 55%);--blob-2: rgb(0 169 224 / 28%);--blob-3: rgb(23 223 220 / 14%)}}:root,.page,.page__mount,.app{height:100%;margin:0}:where(.page) button{box-sizing:content-box;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;word-spacing:inherit;text-align:inherit;text-transform:inherit;text-indent:inherit;text-shadow:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}.page{background:var(--page-bg);overflow:hidden}.page--scroll{overflow:auto}.dashboard{position:relative;isolation:isolate;box-sizing:border-box;display:grid;gap:12px;padding:14px;border-radius:20px;font-family:var(--md-font);color:var(--md-on-surface);font-size:14px;line-height:1.43;letter-spacing:.01em}.dashboard:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;border-radius:20px;pointer-events:none;background:radial-gradient(60% 55% at 12% 8%,var(--blob-1),transparent 70%),radial-gradient(45% 50% at 92% 30%,var(--blob-2),transparent 70%),radial-gradient(55% 60% at 55% 105%,var(--blob-3),transparent 70%)}.dashboard__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;border-radius:20px;pointer-events:none}.dashboard a{color:var(--md-primary);text-decoration:none}.dashboard a:hover{text-decoration:underline;text-underline-offset:3px}.dashboard a:focus-visible{outline:var(--focus-ring);outline-offset:2px;border-radius:4px}.dashboard a.btn{text-decoration:none}.dashboard__layout{display:grid;gap:12px;grid-template-columns:minmax(0,1fr) var(--feed-width, 31%);align-items:start}.dashboard__main{display:grid;gap:12px;min-width:0}.dashboard__feed{position:sticky;top:12px;max-height:calc(100vh - 24px);display:flex;flex-direction:column}@media(min-width:901px){.dashboard.dashboard--fit{height:var(--dashboard-height, calc(100vh - 120px) );grid-template-rows:auto minmax(0,1fr);overflow:hidden}.dashboard--fit .dashboard__layout{min-height:0;height:100%;align-items:stretch}.dashboard--fit .dashboard__main{display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;scrollbar-width:thin}.dashboard--fit .dashboard__main>.island{display:flex;flex-direction:column;min-height:0}.dashboard--fit .dashboard__move{flex:0 1 auto;max-height:60%}.dashboard--fit .dashboard__todo{flex:0 0 auto;max-height:30%}.dashboard--fit .dashboard__waiting{flex:1 1 0}.dashboard--fit .dashboard__main>.island:not(.island--collapsed){min-height:var(--island-floor, 5rem)}.dashboard--fit .dashboard__main>.island--sized:not(.island--collapsed){flex:0 0 var(--island-height);max-height:none}.dashboard--fit .dashboard__main>.dashboard__waiting.island--sized:not(.island--collapsed){flex-grow:1}.dashboard--fit .dashboard__feed{position:static;max-height:none;height:100%;min-height:0}}.dashboard--fit .dashboard__main:has(.dashboard__waiting.island--collapsed) .dashboard__move:not(.island--collapsed,.island--sized){max-height:none;flex:1 1 0}.dashboard--fit .dashboard__main:has(.dashboard__waiting.island--collapsed):has(.dashboard__move.island--collapsed) .dashboard__todo:not(.island--collapsed,.island--sized){max-height:none;flex:1 1 0}.dashboard--fit .dashboard__main>.island--collapsed{flex:0 0 auto;max-height:none}.dashboard--fit .dashboard__feed.island--collapsed{height:auto;align-self:start}@media(max-width:900px){.page{overflow:auto}.dashboard__layout{grid-template-columns:1fr}.dashboard__feed{position:static;max-height:none}}.island{position:relative;min-width:0;overflow:hidden;border:1px solid var(--glass-edge);border-radius:var(--md-r-card);background:rgb(var(--glass),var(--glass-a));-webkit-backdrop-filter:blur(8px) saturate(150%);backdrop-filter:blur(8px) saturate(150%);box-shadow:inset 0 1px 0 var(--glass-hi),0 8px 24px #0000002e}.fold-toggle{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;margin-left:6px;border-radius:50%;cursor:pointer;color:var(--md-on-surface-variant);font-size:18px;line-height:1;transition:transform .15s ease}.fold-toggle:hover{background:var(--state-hover)}.fold-toggle--folded{transform:rotate(-90deg)}.count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:10px;background:var(--md-s-high);color:var(--md-on-surface-variant);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;font-weight:500;color:var(--md-on-surface-variant);background:var(--md-s-low);font-size:12px;line-height:16px;letter-spacing:.03em;padding:8px 12px;border-bottom:1px solid var(--glass-edge);white-space:nowrap}.table td{padding:12px;border-bottom:1px solid var(--md-outline-variant);vertical-align:top}.table th:first-child,.table td:first-child{padding-left:20px}.table th:last-child,.table td:last-child{padding-right:20px}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover td{background:var(--state-hover)}.table__actions-col{width:1%}.table__actions{white-space:nowrap}.table__actions>*{vertical-align:middle}.table__ai{margin-right:6px}@media(min-width:901px){.dashboard--fit .table thead th{position:sticky;top:0;z-index:1}}@media(prefers-reduced-transparency:reduce){.island,.table th{background:var(--md-s-low);-webkit-backdrop-filter:none;backdrop-filter:none}}.pill{display:inline-block;max-width:100%;height:24px;padding:0 10px;overflow:hidden;line-height:24px;text-overflow:ellipsis;border-radius:var(--md-r-chip);font-size:12px;font-weight:500;letter-spacing:.03em;white-space:nowrap;background:var(--md-s-high);color:var(--md-on-surface-variant)}.pill--bad{background:var(--md-error-container);color:var(--md-on-error-container)}.pill--warn{background:var(--md-warn-container);color:var(--md-on-warn-container)}.pill--hold{background:var(--md-s-highest);color:var(--md-on-surface-variant);box-shadow:inset 0 0 0 1px var(--md-outline)}.pill--ok{background:var(--md-tertiary-container);color:var(--md-on-tertiary-container)}.pill--info{background:var(--md-secondary-container);color:var(--md-on-secondary-container)}.age{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:6px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--md-on-surface-variant);background:var(--md-s-high);cursor:help;white-space:nowrap}.age--old{color:var(--md-on-warn-container);background:var(--md-warn-container)}.handled-chip{display:inline-flex;align-items:center;height:18px;padding:0 7px;margin-left:6px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.04em;background:var(--md-s-highest);color:var(--md-on-surface-variant);vertical-align:middle}.at-you{display:inline-block;padding:1px 7px;border-radius:4px;font-size:11px;font-weight:800;letter-spacing:.03em;background:var(--md-warn-container);color:var(--md-on-warn-container)}.ticket-key{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}.timestamp{color:var(--md-on-surface-variant);white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}.ai-hint{font-size:12px;opacity:.8}.hint-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:16px;height:16px;padding:0;border:1px solid var(--md-outline);border-radius:50%;font-size:10px;font-weight:700;line-height:1;text-align:center;color:var(--md-on-surface-variant);cursor:pointer;-webkit-user-select:none;user-select:none}.hint-icon:hover,.hint-icon[aria-expanded=true]{color:var(--md-primary);border-color:var(--md-primary)}.hint-icon:focus-visible{outline:var(--focus-ring);outline-offset:2px}.hint-label{flex:none;padding:0 2px;color:var(--md-on-surface-variant);font-size:12px;text-decoration:underline dotted;text-underline-offset:3px;cursor:help}.hint-label:hover,.hint-label[aria-expanded=true]{color:var(--md-primary)}.hint-label:focus-visible{outline:var(--focus-ring);outline-offset:2px}.hint-row{display:flex;align-items:center;gap:6px;min-width:0}.empty{color:var(--md-on-surface-variant);font-size:14px;margin:12px 0 0;padding-bottom:14px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:640px){.hide-narrow{display:none}}.btn{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:1px solid var(--md-outline);border-radius:999px;font-size:13px;font-weight:500;color:var(--md-primary);background:transparent;cursor:pointer;-webkit-user-select:none;user-select:none}.btn--tonal{background:var(--md-secondary-container);color:var(--md-on-secondary-container);border-color:transparent}.btn[aria-disabled=true]{opacity:.38;cursor:default;pointer-events:none}.btn:hover{box-shadow:inset 0 0 0 100px rgb(var(--md-state),.08)}.btn:focus-visible{outline:var(--focus-ring);outline-offset:2px}.btn--danger{color:var(--md-error);border-color:var(--md-error)}.input{font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--md-outline-variant);border-radius:8px;background:var(--md-s-low);color:var(--md-on-surface)}.input:focus{outline:var(--focus-ring);outline-offset:-1px;border-color:transparent}.input[aria-invalid=true]{border-color:var(--md-error)}.alert{margin:0 4px 8px;padding:8px 12px;border-radius:10px;font-size:13px;font-family:var(--md-font);background:var(--md-error-container);color:var(--md-on-error-container)}.alert__action{margin-left:8px;color:inherit;font-weight:600;text-decoration:underline;cursor:pointer}.alert--inline{margin:0 0 8px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:24px;background:#00000073;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.modal__card{width:min(760px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--glass-edge);border-radius:16px;background:rgb(var(--glass),.9);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);box-shadow:0 24px 64px #00000073}.modal__head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--md-outline-variant)}.modal__title{flex:1;min-width:0;margin:0;font-size:18px;font-weight:500}.modal__meta{color:var(--md-on-surface-variant);font-size:12px}.sheet-form{display:flex;flex-direction:column;gap:14px;padding:16px 20px 24px;overflow:auto;font-size:14px}.sheet-form__heading{margin:10px 0 0;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--md-on-surface-variant)}.tippy-box[data-theme~=wt]{border:1px solid var(--tip-edge);border-radius:10px;background:var(--tip-bg);color:var(--tip-ink);box-shadow:0 12px 32px var(--tip-shadow);font:13px/1.5 Roboto,Inter,-apple-system,system-ui,sans-serif}.tippy-box[data-theme~=wt] .tippy-content{padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto}.tippy-box[data-theme~=wt]>.tippy-arrow{color:var(--tip-bg)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _=e=>fetch(e).then(t=>t.json(),()=>Promise.reject(new Error("unreachable"))),O=(e,t)=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t||{})}).then(n=>n.json(),()=>Promise.reject(new Error("unreachable"))),d=(e,t)=>(e.details||[]).find(n=>n["@type"]===t),A=e=>{var t;return((t=d(e,"BadRequest"))==null?void 0:t.field_violations)||[]},y=e=>{var o,a;const t=d(e,"BadRequest");if(t&&t.field_violations)return t.field_violations.map(i=>i.description);const n=(a=(o=d(e,"ErrorInfo"))==null?void 0:o.metadata)==null?void 0:a.detail;return[n?String(n):e.message]},f=e=>{var t;return((t=d(e,"ErrorInfo"))==null?void 0:t.reason)||""},N=e=>fetch("/api/handoff?"+new URLSearchParams(e)).then(t=>t.ok?t.text():Promise.reject(new Error(String(t.status)))),P=e=>typeof e=="string"&&/^https:\/\//.test(e)?e:"",g="No workspace configured. Open Settings.",R=e=>e!=="",v=(e,t,n)=>e.some(o=>o.id===t&&o.open_moves!==n)?e.map(o=>o.id===t?{...o,open_moves:n}:o):e,D=(e,t,n={},o="")=>{const a=e.filter(s=>{var r;return s.group==="you"||s.handled&&((r=n[s.row_id])==null?void 0:r.auto)}).map(s=>({row:s,handled:s.group!=="you"||!!s.handled})).sort((s,r)=>s.row.rank-r.row.rank||String(s.row.updated).localeCompare(String(r.row.updated))),i=a.filter(s=>!s.handled).length,h=t==="handled";return{rows:a.filter(s=>s.handled===h||s.row.row_id===o),open:i,handled:a.length-i}},c=e=>String(e.status_since||e.updated),b=e=>e.filter(t=>t.group==="done").sort((t,n)=>c(n).localeCompare(c(t))).slice(0,15),k=e=>e.filter(t=>t.group==="others").sort((t,n)=>String(n.updated).localeCompare(String(t.updated))),u=e=>!e.ticket_url&&!!e.pr&&e.pr===e.key,U=e=>e.some(t=>t.pr&&!u(t)),C=e=>e==="failing"?"bad":e==="running"?"warn":e==="passing"?"ok":"",p={code_review:"info",qa:"info",on_hold:"hold"},L=e=>p[e||""]||"",I=e=>({open:"info",done:"ok",dropped:"warn"})[e||""]||"info",j=(e,t,n=1)=>e.filter(o=>o>t+n).length,m="unreachable",l="The local server is not answering",E=l+"; try again once it is back.",B=l+"; your text is kept.",T={NO_WORKSPACE:g,NOT_CONFIGURED:"The maintainer's tracker is not connected on this machine, so nothing can be sent from here.",UPSTREAM_FAILED:"The tracker did not answer; try again in a minute.",RATE_LIMITED:"The source is rate-limited; the monitor backs off.",OPEN_TOO_SOON:"The app window is already opening; give it a few seconds.",UPDATE_IN_PROGRESS:"An update is already installing; the monitor restarts when it is done.",UPDATE_UNAVAILABLE:"There is no update to install right now.",INTERNAL:"The local server failed; see its log."},w=(e,t="Not saved")=>T[f(e)]||t+": "+(e.message||"the server refused the change."),M=(e,{refused:t="Not saved",unreachable:n=E}={})=>{if(e instanceof Error)return e.message===m?n:t+": "+e.message;if(!e||typeof e!="object"||Array.isArray(e))return"";const o=e.error;return o?w(o,t):""},x=e=>{const t=Math.round((Date.now()-new Date(e).getTime())/6e4);return isFinite(t)?t<1?"now":t<60?t+"m ago":t<2880?Math.round(t/60)+"h ago":new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"}):""},W=e=>{const t=(Date.now()-new Date(e??"").getTime())/36e5;return!isFinite(t)||t<0?{text:"",old:!1,hours:0}:{text:t<1?"<1h":t<48?Math.floor(t)+"h":Math.floor(t/24)+"d",old:t>=24,hours:t}},q=e=>e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",F=(e,t)=>t?`${e}--${t}`:"";export{l as S,B as T,R as a,M as b,y as c,x as d,w as e,C as f,_ as g,N as h,u as i,L as j,q as k,b as l,F as m,W as n,j as o,O as p,U as q,f as r,P as s,k as t,I as u,A as v,v as w,D as y};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{w as Z,t as at,r as lt,s as Rs,c as R,n as _e,a as kt,b as N,d as j,o as r,e as i,F as U,f as X,g as ee,u as h,h as q,i as a,j as m,k as S,_ as K,l as rt,m as G,p as P,q as Y,v as Ts,x as Fe,y as Ne,z as me,A as Wt,B as et,C as te,D as As,E as be,G as ye,H as $e,I as Ms,J as Ut,K as Is}from"./_plugin-vue_export-helper-DeQjDyQ9.js";import{s as zs,m as it,u as Vt,a as Ft,r as Ht,p as Os,b as Ds,i as bt,l as Lt,c as Bs,M as ne,d as De,e as Me,f as Ns,g as He,h as ge,j as Ps,k as Ce,n as Ws,o as Us,q as Vs,t as ct,v as Fs,w as Hs,x as Ls,y as qs,z as js,A as $t,B as Ys}from"./scheme-BdlolNvz.js";import{g as Ee,r as Ks,a as Xs,e as Gs,w as qt,p as ce,b as ie,T as tt,S as xe,c as dt,d as re,h as Js,s as ut,i as jt,m as Re,f as Zs,j as Yt,k as Le,l as Qs,n as ht,o as en,y as tn,q as Kt,t as sn,u as nn,v as on}from"./bem-zV6iDqYN.js";const ke=zs(Ht),xt=(e,t)=>{const s=ne,n=new Float32Array(s*s);for(let l=0;l<n.length;l+=1)n[l]=e[l]===t?1e6:0;const o=(l,c,d)=>{n[c]+d<n[l]&&(n[l]=n[c]+d)};for(let l=0;l<s;l+=1)for(let c=0;c<s;c+=1){const d=l*s+c;c>0&&o(d,d-1,1),l>0&&o(d,d-s,1),c>0&&l>0&&o(d,d-s-1,Math.SQRT2),c<s-1&&l>0&&o(d,d-s+1,Math.SQRT2)}for(let l=s-1;l>=0;l-=1)for(let c=s-1;c>=0;c-=1){const d=l*s+c;c<s-1&&o(d,d+1,1),l<s-1&&o(d,d+s,1),c<s-1&&l<s-1&&o(d,d+s+1,Math.SQRT2),c>0&&l<s-1&&o(d,d+s-1,Math.SQRT2)}return n},Ge=e=>{const t=String(e||"").trim(),s=/^#([0-9a-f]{6})$/i.exec(t);if(s)return[0,2,4].map(o=>parseInt(s[1].slice(o,o+2),16));const n=t.match(/[\d.]+/g);return n&&n.length>=3?n.slice(0,3).map(Number):null},an=e=>{const t=getComputedStyle(e),s=Ge(t.getPropertyValue("--md-primary"))||[44,86,151],n=Ge(t.getPropertyValue("--md-on-primary-container"))||s;return{core:bt()?s:s.map((o,l)=>Lt(o,n[l],.35)),rim:Ge(t.getPropertyValue("--blob-3"))||[23,223,220],strength:bt()?.9:1}},ln=(e,t,s)=>({size:e.range(.85,1.05)*Math.min(t,s),right:e.chance(.4),bottom:e.chance(.7),overflowX:e.range(-.02,.06),overflowY:e.range(-.02,.04)}),rn=e=>{const t={minX:ne,maxX:0,minY:ne,maxY:0};for(let n=0;n<e.length;n+=1)if(e[n]){const o=n%ne,l=Math.floor(n/ne);t.minX=Math.min(t.minX,o),t.maxX=Math.max(t.maxX,o),t.minY=Math.min(t.minY,l),t.maxY=Math.max(t.maxY,l)}const s=n=>(n-ne/2)/De;return{minX:s(t.minX),maxX:s(t.maxX),minY:s(t.minY),maxY:s(t.maxY)}},cn=(e,t,s,n)=>{const o=t.maxX-t.minX,l=t.maxY-t.minY,c=Math.min(e.size,2*s*.95/o,2*n*.98/l),d=c/2,y=-e.overflowX*c,_=-e.overflowY*c;return{size:c,centerX:e.right?s-y-t.maxX*d:y-t.minX*d,centerY:e.bottom?n-_-t.maxY*d:_-t.minY*d}},dn=(e,t,s)=>"rgba("+e.core.map((o,l)=>Math.round(Lt(o,e.rim[l],t))).join(",")+","+s.toFixed(3)+")",un=(e,t,s)=>{const n=[],o=t.size/62,l=t.size/2/De,c=t.size*Ns/4,d=o*.866;for(let y=0,_=t.centerY-c;_<t.centerY+c;y+=1,_+=d)for(let u=t.centerX-c+y%2*o/2;u<t.centerX+c;u+=o){const k=u+e.range(-.3,.3)*o,f=_+e.range(-.3,.3)*o,p=Math.floor((k-t.centerX)/l+ne/2),v=Math.floor((f-t.centerY)/l+ne/2);if(p<0||v<0||p>=ne||v>=ne)continue;const x=v*ne+p,g=e.next(),z=e.range(.75,1.25),E=e.range(-.15,.15);if(s.inside[x]){const b=s.depth[x]/De,T=Me(b/.035),O=Me(b/.3);if(g>.5+.5*T)continue;n.push({x:k,y:f,radius:o*.5*(.45+.55*T)*(.95+.3*O)*z,alpha:.5+.25*T+.25*O,tint:Me(.65-.65*O+E)})}else{const b=s.gap[x]/De;if(g>.14*Math.exp(-b/.05)+.004)continue;n.push({x:k,y:f,radius:o*e.range(.1,.24),alpha:.35,tint:Me(.8+E)})}}return n},hn=()=>document.getElementById("wt"),pn=()=>document.getElementById("backdrop"),Xt=()=>Math.floor(Math.random()*4294967296),Ie={},L={workspace:"",seed:Xt(),species:"",wantedSpecies:"",wantedPose:"",built:null},_n=(e,t)=>{const s=Bs(L.seed),n=ke[Math.floor(s.next()*ke.length)];L.species=ke.includes(L.wantedSpecies)?L.wantedSpecies:n;const o=ln(s,e,t),l={facing:o.right?-1:1,tilt:s.range(-.07,.07),stretchX:s.range(.92,1.08),stretchY:s.range(.92,1.08)};s.chance(.25)&&(l.facing=-l.facing);const c=Os(Ds(Ht,L.species,s,{pose:L.wantedPose}).shapes,l),d={inside:c,depth:xt(c,1),gap:xt(c,0)},y=cn(o,rn(c),e,t);return{key:L.seed+":"+L.species+":"+e+"x"+t,dots:un(s,y,d)}},Pe=()=>{const e=pn();if(!e)return;const t=e.clientWidth,s=e.clientHeight,n=window.devicePixelRatio||1,o=Math.round(t*n),l=Math.round(s*n);(e.width!==o||e.height!==l)&&(e.width=o,e.height=l);const c=e.getContext("2d");if(!c||(c.setTransform(n,0,0,n,0,0),c.clearRect(0,0,t,s),!t||!s))return;const d=L.seed+":"+(L.wantedSpecies||"?")+":"+t+"x"+s;(!L.built||L.built.key.split(":")[0]!==String(L.seed)||!L.built.key.endsWith(t+"x"+s)||L.wantedSpecies&&L.species!==L.wantedSpecies)&&(L.built=_n(t,s));const y=hn();if(!y)return d;const _=an(y);return L.built.dots.forEach(u=>{c.fillStyle=dn(_,u.tint,u.alpha*_.strength),c.beginPath(),c.arc(u.x,u.y,u.radius,0,Math.PI*2),c.fill()}),d};window.whoseTurnBackdrop={species:ke.slice(),seeded:it,get current(){return{workspace:L.workspace,species:L.species,seed:L.seed}},show:e=>{const t=e||{},s=String(t.workspace||"");Ie[s]||(Ie[s]=Xt());const n=t.seed!==void 0?Number(t.seed)>>>0:Ie[s];Ie[s]=n;const o=t.species&&ke.includes(t.species)?t.species:"",l=String(t.pose||"");return s===L.workspace&&n===L.seed&&o===L.wantedSpecies&&l===L.wantedPose&&L.built||(L.workspace=s,L.seed=n,L.wantedSpecies=o,L.wantedPose=l,L.built=null,Pe()),window.whoseTurnBackdrop.current},repaint:Pe};Z(He,Pe);Vt(window,"resize",Ft(Pe,200));const{show:Gt,repaint:fn,seeded:Nc}=window.whoseTurnBackdrop,vn="[data-tip-click]",St=e=>e instanceof Element?e.closest(vn):null,mn=e=>e.isConnected&&e.getClientRects().length>0,yn=()=>{if(!window.tippy)return()=>{};const e=new Set;let t=!1;const s=new Set,n=new MutationObserver(()=>k());let o=!1;const l=()=>{e.size&&!o?n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden"]}):!e.size&&o&&n.disconnect(),o=e.size>0},c=E=>{e.add(E),l()},d=E=>{e.delete(E),l()},y=E=>{s.delete(E),E.hide()},_=E=>e.forEach(b=>{b.reference!==E&&y(b)}),u=()=>_(null),k=()=>{e.forEach(E=>{E.reference.isConnected?mn(E.reference)||y(E):(d(E),E.destroy())})},f=E=>{const b=St(E.target);t=!b,_(b)},p=E=>{const b=St(E.target),T=b==null?void 0:b._tippy;T&&(s.has(T)?y(T):(s.add(T),T.show()))},v=E=>{E.key==="Escape"&&u()},x=()=>{t=!1};window.tippy.delegate(document.body,{target:"[data-tip]",content:E=>E.dataset.tip||"",trigger:"mouseenter focus",delay:[0,80],duration:[120,80],interactive:!0,hideOnClick:!1,maxWidth:440,placement:"top",theme:"wt",appendTo:()=>document.body,onShow:E=>{if(t)return!1;c(E)},onHide:E=>s.has(E)?!1:void 0,onHidden:d,onDestroy:E=>{d(E),s.delete(E)}});const g=new ResizeObserver(u);g.observe(document.body);const z=[[document,"pointerdown",f,!0],[document,"pointerup",x,!0],[document,"click",p,!0],[document,"keydown",v,!0],[document,"pointercancel",x,!0],[document,"dragstart",u,!0],[document,"scroll",u,!0],[window,"resize",u,!1]];return z.forEach(([E,b,T,O])=>E.addEventListener(b,T,O)),()=>{n.disconnect(),g.disconnect(),z.forEach(([E,b,T,O])=>E.removeEventListener(b,T,O))}},wn=()=>{let e=0;return{next:()=>++e,accepts:t=>t===e}},Ct=e=>{const t=structuredClone(at(e)),s=t.connectors||{},n=t.rules||{};return n.statuses=n.statuses||{},{...t,connectors:Array.isArray(s)?s:Object.entries(s).map(([o,l])=>({type:o,...l})),rules:n,theme:t.theme||{}}},gn=e=>{const t=structuredClone(at(e));return t.theme&&!Object.keys(t.theme).length&&delete t.theme,t.rules&&!Object.keys(t.rules.statuses||{}).length&&delete t.rules.statuses,t.rules&&!Object.keys(t.rules).length&&delete t.rules,t},Et=new WeakMap;let kn=0;const ze=e=>{const t=at(e);let s=Et.get(t);return s||(s=++kn,Et.set(t,s)),s},Rt=e=>JSON.stringify(e),bn=(e,t)=>{const s=[];return e.forEach(n=>n.connectors.forEach(o=>{const l=t.get(o)||{};Object.keys(l).forEach(c=>{l[c]&&s.push({ws:n.id,connector:o.id||o.type,key:c,value:l[c]})})})),s},de=(e,t,s)=>{typeof s=="boolean"||s&&s.length?e[t]=s:delete e[t]},$n=(e,t)=>{const s=n=>{const o=t.indexOf(n.id);return o<0?t.length:o};return[...e].sort((n,o)=>s(n)-s(o))},xn=(e,t,s,n)=>{const o=e.filter(l=>l!==t);return o.splice(o.indexOf(s)+(n?0:1),0,t),o},Sn={backlog:"in the backlog",passed:"passed",code_review:"in review",qa:"in testing",on_hold:"on hold",todo:"to do",in_progress:"in progress",done:"done"},Jt=e=>Sn[e]||`in ${e.replace(/_/g," ")}`,Cn={you:"your move",reviewer:"the reviewer's move",qa:"the tester's move",them:"waiting on others"},he=(e,t)=>{var s;return((s=e[t])==null?void 0:s.name)||t.replace(/[._]/g," ")},En=(e,t,s)=>e?t:s,Rn={approved:"the PR is approved",changes_requested:"changes are requested on the PR",none:"the PR has no review"},Tn=(e,t,s)=>{switch(t){case"ticket.status":return`the ticket is ${Jt(String(s))}`;case"ticket.assignee":return s==="me"?"the ticket is on you":`the ticket is assigned to ${s}`;case"pr.checks":return s==="none"?"the PR has no checks":`the PR checks are ${s}`;case"pr.review":return Rn[String(s)]||`the PR review is ${s}`;case"pr.base":return`the PR goes into ${s}`;default:return`${he(e,t)} is ${s}`}},An=(e,t,s,n)=>{if(s==="present")return En(n,`${he(e,t)} is given`,`${he(e,t)} is missing`);if(s==="prefix")return t==="pr.base"?`the PR goes into a branch starting with ${n}`:`${he(e,t)} starts with ${n}`;if(t==="unanswered_count"){const l=Number(n);return`${{gt:`more than ${l}`,gte:`at least ${l}`,lt:`fewer than ${l}`,lte:`at most ${l}`}[s]} mentions of you wait for an answer`}const o={gt:"more than",gte:"at least",lt:"less than",lte:"at most"};return`${he(e,t)} is ${o[s]} ${n}`},Mn=(e,t,s)=>{var o;if(Array.isArray(s))return t==="ticket.status"?`the ticket is ${s.map(l=>Jt(String(l))).join(" or ")}`:`${he(e,t)} is ${s.join(" or ")}`;if(s&&typeof s=="object")return Object.entries(s).map(([l,c])=>An(e,t,l,c)).join(" and ");const n=(o=e[t])==null?void 0:o.says;return typeof s=="boolean"&&n?n[s?0:1]:Tn(e,t,s)},In=(e,t)=>t.replace(/\{([\w.]+)\}/g,(s,n)=>`{${he(e,n)}}`),zn=(e,t={})=>{const s=Object.entries(e.when).map(([o,l])=>Mn(t,o,l)),n=e.then.whose==="hidden"?"not shown":`${Cn[e.then.whose]||e.then.whose}, "${In(t,e.then.next||"")}"`;return{when:s.length?`When ${s.join(" and ")}:`:"In every other case:",then:n}},On=e=>e.modal?"modal":e.note?"note":e.settings?"settings":e.feedback?"feedback":e.whatsNew?"whatsNew":null,Dn=(e,t)=>{const s=new URLSearchParams(e).get("mode");return s==="app"||s==="tab"?s:t==="app"?"app":"tab"},Bn=e=>"/?mode=tab"+(e?"&ws="+encodeURIComponent(e):""),Nn=e=>({width:e.outerWidth,height:e.outerHeight}),Zt={writeDefaults:!1},Qt=ge("wt-ws","",Zt),es=Ps("wt-mode","",Zt),w=Rs({workspaces:[],workspace:{id:"",name:"",connectors:[],links:[],key_pattern:"",theme:null},turn:[],feed:[],marks:{seen:[],base:0,handled:{},info:{}},counts:{mine:0,others:0,failing:0,done:0},todos:[],errors:{},health:{ok:!0,stale:!1,fresh_at:"",failing:[],alerts:[]},problems:[],polled_at:"",update:{current:"",latest:"",available:!1,state:"idle"}}),C=lt({ws:new URLSearchParams(location.search).get("ws")||Qt.value,open:new Set,mode:Dn(location.search,es.value),live:!1,reconnects:0,status:"Connecting…",modal:null,note:"",feedback:!1,whatsNew:!1,settings:!1,settingsDirty:!1,settingsAsk:!1,settingsAt:"",focusFeed:""});es.value=C.mode;const We=Ce("",6e3),pe=(e,t)=>{const s=ie(e,t);return s&&(We.value=s),!s},Pn=()=>{C.mode==="app"&&Vt(window,"resize",Ft(()=>ce("/api/window",Nn(window)).catch(pe),600))},ts={resume:()=>{}},fe=Us({scheduler:e=>{const t=Vs(e,3e4,{immediate:!1});return ts.resume=t.resume,t}}),Je=R(()=>{const e=w.workspace.theme;return e&&e.light&&e.dark?e[He.value?"dark":"light"]:{}}),ae=R(()=>w.counts),Tt=R(()=>{const e=w.workspace.name,t=e?e+": ":"",s=Object.entries(w.errors||{}),n=w.health.failing||[],o=d=>n.find(({source:y})=>d===y||d.startsWith(y+".")),l=n.map(({source:d,polls:y})=>{const _=s.filter(([u])=>{var k;return((k=o(u))==null?void 0:k.source)===d}).map(([,u])=>u);return`Source ${d}: ${_.join(", ")||"failing"}, failed ${y} polls in a row`}),c=new Set(n.map(({source:d})=>"failing:"+d));return[...w.problems||[],...w.health.alerts.filter(d=>!c.has(d.id||"")).map(d=>d.text),...l,...s.filter(([d])=>!o(d)).map(([d,y])=>t+d+": "+y)]}),ss=(e="")=>{C.settingsAt=e,C.settings=!0},ns=R(()=>On(C)),Wn=()=>{const e=ns.value;if(e==="modal"&&(C.modal=null),e==="note"&&(C.note=""),e==="feedback"&&(C.feedback=!1),e==="whatsNew"&&(C.whatsNew=!1),e==="settings"){if(C.settingsDirty){C.settingsAsk=!0;return}C.settings=!1}},st=new Map,Un=(e,t)=>{t&&st.set(e,document.activeElement)},Vn=(e,t)=>{if(t)return;const s=st.get(e);st.delete(e),s instanceof HTMLElement&&s.focus()},Fn={modal:()=>!!C.modal,note:()=>!!C.note,settings:()=>C.settings,feedback:()=>C.feedback,whatsNew:()=>C.whatsNew};Z(()=>w.turn.some(e=>e.row_id===C.note),e=>{e||(C.note="")},{flush:"sync"});Object.entries(Fn).forEach(([e,t])=>{Z(t,s=>Un(e,s),{flush:"sync"}),Z(t,s=>Vn(e,s),{flush:"post"})});let Ue=-1,nt=0;const At=wn(),Te=(e=C.ws)=>{const t=At.next();return Ee("/api/state"+(e?"?ws="+encodeURIComponent(e):"")).then(s=>At.accepts(t)?s.error?Ks(s.error)!=="NO_SUCH_WORKSPACE"||!Xs(e)?(C.status=Gs(s.error,"Could not load"),w):Te(""):(Object.assign(w,s),C.ws=w.workspace.id,C.status="",Gt({workspace:w.workspace.id}),document.title="Whose Turn · "+w.workspace.name,w):w)},os=()=>(Ue=-1,Te()),Se=Ws("/api/stream",[],{immediate:!1,autoConnect:!1,autoReconnect:!0,serializer:{read:e=>JSON.parse(e||"null")}});Z(Se.status,e=>{C.live=e==="OPEN",C.live&&(C.status="",C.reconnects++)},{flush:"sync"});Z(Se.error,e=>{e&&(C.status="Disconnected from the local server, retrying…")},{flush:"sync"});Z(Se.data,e=>{if(e){if("update"in e){w.update=e.update;return}typeof e.open_moves=="number"&&(w.workspaces=qt(w.workspaces,e.ws,e.open_moves)),!(w.workspace.id&&e.ws!==w.workspace.id)&&(C.status="",e.version!==Ue?(Ue=e.version,nt===0&&Te()):w.polled_at=e.polled_at)}},{flush:"sync"});const Hn=()=>{Se.eventSource.value||Se.open()},Ln=()=>(ts.resume(),Te().then(Hn)),qn=e=>e===w.workspace.id?Promise.resolve():(Ue=-1,nt++,Te(e).then(()=>{C.ws===e&&(Qt.value=C.ws,C.open.clear())},()=>{We.value=xe+"; staying on "+w.workspace.name+"."}).finally(()=>{nt--})),as=(e,t)=>ce(e,{ws:w.workspace.id,...t}),we=e=>as("/api/marks",e).then(t=>{const s=ie(t);return s||(Object.assign(w,{marks:t.marks,turn:t.turn,counts:t.counts}),w.workspaces=qt(w.workspaces,w.workspace.id,t.counts.mine)),s},t=>ie(t)),jn=e=>{C.focusFeed=e},Yn=e=>as("/api/todos",e).then(t=>{const s=ie(t,{unreachable:tt});return!s&&Array.isArray(t)&&(w.todos=t),s},t=>ie(t,{unreachable:tt})),Mt=e=>Ee("/api/config").then(t=>ce("/api/config",{workspaces:$n(t.workspaces,e),secrets:[]})).then(t=>{pe(t,{refused:"The order was not saved"})&&os()},t=>pe(t,{refused:"The order was not saved"})),It=()=>{C.status="Checking now…",ce("/api/refresh").catch(e=>{C.status="",pe(e)}),Gt({workspace:w.workspace.id,seed:Math.floor(Math.random()*4294967296)})},Kn="M12 2.5l1.9 5.6 5.6 1.9-5.6 1.9L12 17.5l-1.9-5.6L4.5 10l5.6-1.9L12 2.5zM5 15l.9 2.6 2.6.9-2.6.9L5 22l-.9-2.6-2.6-.9 2.6-.9L5 15zm14-2l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z",Xn="M16 1H6a2 2 0 0 0-2 2v12h2V3h10V1zm3 4H10a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16h-9V7h9v14z",Gn="M19.4 13a7.6 7.6 0 0 0 0-2l2-1.5-2-3.4-2.4 1a7.5 7.5 0 0 0-1.7-1L15 3.5H9l-.3 2.6a7.5 7.5 0 0 0-1.7 1l-2.4-1-2 3.4 2 1.5a7.6 7.6 0 0 0 0 2l-2 1.5 2 3.4 2.4-1a7.5 7.5 0 0 0 1.7 1l.3 2.6h6l.3-2.6a7.5 7.5 0 0 0 1.7-1l2.4 1 2-3.4-2-1.5zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z",Jn="M23 12l-2.4-2.8.3-3.7-3.6-.8-1.9-3.2L12 3 8.6 1.5 6.7 4.7l-3.6.8.3 3.7L1 12l2.4 2.8-.3 3.7 3.6.8 1.9 3.2L12 21l3.4 1.5 1.9-3.2 3.6-.8-.3-3.7L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z",Zn="M19 8h-1.8a5.9 5.9 0 0 0-1.3-1.9l1.6-1.6-1.4-1.4-1.9 1.9A5.7 5.7 0 0 0 12 4.5a5.7 5.7 0 0 0-2.2.5L7.9 3.1 6.5 4.5l1.6 1.6A5.9 5.9 0 0 0 6.8 8H5v2h1.2a7 7 0 0 0 0 1v1H5v2h1.3a6 6 0 0 0 11.4 0H19v-2h-1.2v-1a7 7 0 0 0 0-1H19V8zm-7 10a4 4 0 0 1-4-4v-3a4 4 0 0 1 8 0v3a4 4 0 0 1-4 4zm-1-7h2v5h-2z",Qn=e=>{let t=2166136261;for(let s=0;s<e.length;s+=1)t^=e.charCodeAt(s),t=Math.imul(t,16777619);return t>>>0},ls=e=>{const t=String(e||"").trim().split(/[\s_-]+/).filter(Boolean);return(t.length>=2?t.slice(0,3).map(n=>n.charAt(0)):(t[0]||"?").slice(0,2).split("")).join("").toUpperCase()},eo=e=>({1:17,2:14,3:11})[e.length]||11,rs=(e,t)=>{const s=t(Qn(e.id)),n=[],o=3+Math.floor(s()*3);for(let c=0;c<o;c+=1){const d=s()*Math.PI*2,y=9+s()*7;n.push({cx:(18+Math.cos(d)*y).toFixed(1),cy:(18+Math.sin(d)*y).toFixed(1),r:(1.6+s()*2.2).toFixed(1),opacity:(.35+s()*.4).toFixed(2)})}const l=ls(e.name||e.id);return{dots:n,glyph:l,fontSize:eo(l)}},to=(e,t)=>{const s=e.dots.map(l=>`<circle cx="${l.cx}" cy="${l.cy}" r="${l.r}" fill="${t.dot}" opacity="${l.opacity}"/>`).join(""),n=e.fontSize>=17?24:23,o=e.glyph.replace(/[&<>]/g,"");return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><rect width="36" height="36" rx="10" fill="${t.fill}"/>${s}<text x="18" y="${n}" text-anchor="middle" font-size="${e.fontSize}" font-weight="700" letter-spacing="-0.5" font-family="Roboto, Inter, system-ui, sans-serif" fill="${t.ink}">${o}</text></svg>`},zt='a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])',so="input, textarea, select, [contenteditable]",no=(e,t,s)=>{if(!e.length)return null;const n=s?e[0]:e[e.length-1];return t===n||!e.some(o=>o===t)?s?e[e.length-1]:e[0]:null},oo=e=>{let t=null;Z(e,s=>{s?(t=document.activeElement,_e(()=>{var l;const n=document.querySelectorAll(".modal"),o=n[n.length-1];o&&!o.contains(document.activeElement)&&((l=o.querySelector(zt))==null||l.focus())})):(t==null||t.focus(),t=null)}),ct("Tab",s=>{if(!e.value)return;const n=document.querySelectorAll(".modal"),o=n[n.length-1],l=o?[...o.querySelectorAll(zt)]:[],c=no(l,document.activeElement,s.shiftKey);c&&(s.preventDefault(),c.focus())},{target:document})},Ot={"/":".feed__search-input",t:".todos__input"},ao=e=>ct(Object.keys(Ot),t=>{const s=t.target;if(e.value||t.metaKey||t.ctrlKey||t.altKey||s!=null&&s.closest(so))return;const n=document.querySelector(Ot[t.key]);n&&(t.preventDefault(),n.focus())},{target:document}),lo=30,Dt=(e,t,s)=>Math.round(Math.max(t,Math.min(s,e))),ro=(e,t)=>Math.ceil(e+(t>1?lo:0)),io=(e,t,s)=>e-t*s.length-s.reduce((n,o)=>n+(o.collapsed?o.height:o.floor),0),pt=e=>{const t=ge("wt-panel-sizes",{},{writeDefaults:!1});return{size:R(()=>t.value[kt(e)]??null),set:o=>{const l=kt(e);if(!l)return;const{[l]:c,...d}=t.value;t.value=o===null?d:{...d,[l]:o}}}},co="Unreleased",uo=(e,t,s)=>{const n=e.filter(c=>c.version!==co),o=n.findIndex(c=>c.version===s);if(!t||o<0||t===s)return[];const l=n.findIndex(c=>c.version===t);return n.slice(o,l<0?o+1:l)},ho=e=>e.sections.map(t=>`### ${t.kind}
|
|
2
|
-
${t.items.map(s=>`- ${s}`).join(`
|
|
3
|
-
`)}`).join(`
|
|
4
|
-
|
|
5
|
-
`),po="wt-seen-version",_t=Fs(()=>{const e=ge(po,""),t=N(null),s=N(""),n=R(()=>t.value?uo(t.value.versions,e.value,t.value.current):[]);return{changelog:t,problem:s,unseen:n,load:async()=>{s.value="";try{const c=await Ee("/api/changelog");if(c.error){s.value=dt(c.error).join(" · ");return}t.value=c,e.value||(e.value=c.current)}catch{s.value=xe}},markSeen:()=>{t.value&&(e.value=t.value.current)}}}),_o={class:"rail","aria-label":"Workspaces"},fo=["data-drop","href","aria-label","aria-selected","onClick","onKeydown","onDragstart","onDragover","onDrop"],vo={viewBox:"0 0 36 36",class:"rail__icon","aria-hidden":"true"},mo=["fill"],yo=["cx","cy","r","fill","opacity"],wo=["y","font-size","fill"],go={class:"rail__label"},ko={key:0,class:"rail__warn",title:"A source of this workspace fails"},bo={key:1,class:"rail__badge"},$o={viewBox:"0 0 24 24",class:"rail__gear","aria-hidden":"true"},xo=["d"],So={key:0,class:"rail__dot",title:"Unseen changes"},Co={viewBox:"0 0 24 24",class:"rail__gear","aria-hidden":"true"},Eo=["d"],Ro=j({__name:"Rail",emits:["settings","whatsNew"],setup(e,{emit:t}){const s=t,{unseen:n}=_t(),o=R(()=>Object.fromEntries(w.workspaces.map(b=>[b.id,rs(b,it)]))),l=R(()=>Object.fromEntries(w.workspaces.map(b=>{const T=b.theme?b.theme[He.value?"dark":"light"]:null;return[b.id,{fill:T?T["--md-primary-container"]:"var(--md-primary-container)",ink:T?T["--md-on-primary-container"]:"var(--md-on-primary-container)",dot:T?T["--md-primary"]:"var(--md-primary)"}]}))),c=b=>b.id===w.workspace.id?Object.keys(w.errors||{}).length>0:!!b.failing_sources,d=b=>{b.detail>0&&b.currentTarget.blur()},y=(b,T)=>{d(b),qn(T)},_=b=>{s("settings"),d(b)},u=b=>{s("whatsNew"),d(b)},k=async(b,T)=>{const O=b.key==="ArrowUp"?-1:b.key==="ArrowDown"?1:0,V=w.workspaces.map(H=>H.id),$=V.indexOf(T.id);if(!b.altKey||!O||$+O<0||$+O>=V.length)return;b.preventDefault();const F=b.currentTarget;V.splice($+O,0,...V.splice($,1)),await Mt(V),await _e(),F.focus()},f=N(""),p=N({}),v=b=>{const T=b.currentTarget;return b.clientY-T.getBoundingClientRect().top<T.offsetHeight/2},x=(b,T)=>{f.value=T.id,b.dataTransfer&&(b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",T.id))},g=()=>{f.value="",p.value={}},z=(b,T)=>{if(!f.value||f.value===T.id)return;b.preventDefault(),b.dataTransfer&&(b.dataTransfer.dropEffect="move");const O=v(b)?"before":"after";(p.value.id!==T.id||p.value.side!==O)&&(p.value={id:T.id,side:O})},E=(b,T)=>{if(!f.value||f.value===T.id)return;b.preventDefault();const O=xn(w.workspaces.map(V=>V.id),f.value,T.id,v(b));p.value={},Mt(O)};return(b,T)=>(r(),i("nav",_o,[(r(!0),i(U,null,X(h(w).workspaces,O=>(r(),i("a",{key:O.id,class:q(["rail__item",{"rail__item--dragging":f.value===O.id}]),"data-drop":p.value.id===O.id?p.value.side:null,href:"?ws="+encodeURIComponent(O.id),"aria-label":O.name,"aria-selected":O.id===h(w).workspace.id,draggable:"true",onClick:ee(V=>y(V,O.id),["prevent"]),onKeydown:V=>k(V,O),onDragstart:V=>x(V,O),onDragend:g,onDragover:V=>z(V,O),onDragleave:T[0]||(T[0]=V=>p.value={}),onDrop:V=>E(V,O)},[(r(),i("svg",vo,[a("rect",{x:"0",y:"0",width:"36",height:"36",rx:"10",fill:l.value[O.id].fill},null,8,mo),(r(!0),i(U,null,X(o.value[O.id].dots,(V,$)=>(r(),i("circle",{key:$,cx:V.cx,cy:V.cy,r:V.r,fill:l.value[O.id].dot,opacity:V.opacity},null,8,yo))),128)),a("text",{x:"18",y:o.value[O.id].fontSize>=17?24:23,"text-anchor":"middle","font-size":o.value[O.id].fontSize,"font-weight":"700","letter-spacing":"-0.5","font-family":"Roboto, Inter, system-ui, sans-serif",fill:l.value[O.id].ink},m(o.value[O.id].glyph),9,wo)])),a("span",go,m(O.name),1),c(O)?(r(),i("span",ko,"!")):S("",!0),O.open_moves?(r(),i("span",bo,m(O.open_moves),1)):S("",!0)],42,fo))),128)),T[3]||(T[3]=a("span",{class:"rail__spacer"},null,-1)),a("a",{class:"rail__item",href:"#whats-new","aria-label":"What's new",onClick:ee(u,["prevent"])},[(r(),i("svg",$o,[a("path",{d:h(Jn),fill:"currentColor"},null,8,xo)])),T[1]||(T[1]=a("span",{class:"rail__label"},"What's new",-1)),h(n).length?(r(),i("span",So)):S("",!0)]),a("a",{class:"rail__item",href:"#settings","aria-label":"Settings",onClick:ee(_,["prevent"])},[(r(),i("svg",Co,[a("path",{d:h(Gn),fill:"currentColor"},null,8,Eo)])),T[2]||(T[2]=a("span",{class:"rail__label"},"Settings",-1))])]))}}),To=K(Ro,[["__scopeId","data-v-ffe046bc"]]),Ze=" · checks every minute",is=(e,t,s,n)=>{const o=e.failing.map(c=>c.source),l=t?re(t):"—";return o.length&&o.length>=s?{dot:"off",text:"No data: "+o.join(", ")+" failing · last data "+re(e.fresh_at),failing:o,noData:!0}:e.stale?{dot:"off",text:"Stale · last data "+re(e.fresh_at)+Ze,failing:o,noData:!1}:o.length?{dot:n?"warn":"off",text:o.join(", ")+" failing · last check "+l+Ze,failing:o,noData:!1}:{dot:n?"ok":"off",text:"Live · last check "+l+Ze,failing:o,noData:!1}},Ao=["data-tip"],Mo={class:"ai-button__icon",viewBox:"0 0 24 24","aria-hidden":"true"},Io=["d"],zo={class:"ai-button__badge",viewBox:"0 0 24 24","aria-hidden":"true"},Oo=["d"],Do=j({__name:"AiButton",props:{query:{},big:{type:Boolean}},setup(e){const t=e,s={"":"Copy for AI: this with its context as text, ready to paste into Claude or any other assistant",sent:"Copied",failed:"Could not copy"},n=Ce("",1600),o=R(()=>s[n.value]),l=N(null);Z(o,d=>{var y,_;return(_=(y=l.value)==null?void 0:y._tippy)==null?void 0:_.setContent(d)});const c=()=>Js(t.query).then(d=>navigator.clipboard.writeText(d)).then(()=>{n.value="sent"},()=>{n.value="failed"});return(d,y)=>(r(),i("button",{ref_key:"button",ref:l,type:"button",class:q(["ai-button",{"ai-button--big":e.big,"ai-button--sent":h(n)==="sent","ai-button--failed":h(n)==="failed"}]),"aria-label":"Copy for AI","data-tip":o.value,onClick:ee(c,["stop"])},[(r(),i("svg",Mo,[a("path",{d:h(Xn),fill:"currentColor"},null,8,Io)])),(r(),i("svg",zo,[a("path",{d:h(Kn),fill:"currentColor"},null,8,Oo)]))],10,Ao))}}),ve=K(Do,[["__scopeId","data-v-46197bdc"]]),ot="wt-updated-to",Bo=()=>window.location.reload(),No=e=>{try{sessionStorage.setItem(ot,e)}catch{}},Po=()=>{try{const e=sessionStorage.getItem(ot)||"";return sessionStorage.removeItem(ot),e}catch{return""}},Wo={key:2,class:"update-chip update-chip--busy",role:"status"},Uo=["title"],Vo=15e3,Fo=9e4,Ho=j({__name:"UpdateChip",setup(e){const t=N("");let s="";const n=N(""),o=N(!1),l=Ce("",Vo),c=R(()=>w.update),d=R(()=>c.value.state==="restarting"||!!t.value&&!C.live),y=R(()=>!n.value&&(c.value.state==="installing"||d.value||!!t.value)),{start:_,stop:u}=Hs(()=>o.value=!0,Fo,{immediate:!1});rt(()=>{l.value=Po()}),Z(()=>c.value.current,p=>{if(p){if(!s){s=p;return}p!==s&&(n.value=p,t.value="",u())}},{immediate:!0});const k=()=>{if(y.value)return;o.value=!1,t.value=c.value.latest,_();const p=v=>{if(!pe(v,{refused:"The update did not start"})){t.value="",u();return}w.update=v.update};ce("/api/update").then(p,p)},f=()=>{n.value&&No(n.value),Bo()};return(p,v)=>h(l)?(r(),i("button",{key:0,type:"button",class:"update-chip update-chip--done",title:"See what changed",onClick:v[0]||(v[0]=x=>h(C).whatsNew=!0)}," Updated to "+m(h(l)),1)):n.value?(r(),i("button",{key:1,type:"button",class:"update-chip update-chip--ready",title:"Reload the window to apply the changes",onClick:f}," Updated to "+m(n.value)+" · Reload ",1)):y.value?(r(),i("span",Wo,[v[1]||(v[1]=a("span",{class:"update-chip__spinner","aria-hidden":"true"},null,-1)),G(m(d.value?"Restarting…":`Installing ${t.value||c.value.latest}…`),1),o.value?(r(),i("button",{key:0,type:"button",class:"update-chip__link",title:"The restart is taking longer than usual",onClick:f}," Reload ")):S("",!0)])):c.value.available&&c.value.state==="failed"?(r(),i("button",{key:3,type:"button",class:"update-chip update-chip--failed",title:c.value.reason,onClick:k}," Update failed · Retry ",8,Uo)):c.value.available?(r(),i("button",{key:4,type:"button",class:"update-chip",onClick:k},m(c.value.latest)+" is out · Update ",1)):S("",!0)}}),Lo=K(Ho,[["__scopeId","data-v-c5c2c37f"]]),qo={class:"status-bar"},jo={class:"status-bar__icon",viewBox:"0 0 24 24","aria-hidden":"true"},Yo=["d"],Ko={key:0,class:"status-bar__notice",role:"alert"},Xo=["href"],Go=["aria-disabled"],Jo=5e3,Zo=j({__name:"StatusBar",emits:["report"],setup(e,{emit:t}){const s=t,n=R(()=>(fe.value,is(w.health,w.polled_at,w.workspace.connectors.length,C.live))),o=N(!1),l=N(!1),c=R(()=>l.value?"Opened in the app window. You can close this tab.":C.status||n.value.text),d=_=>pe(_,{refused:"The app window did not open"}),y=()=>{if(o.value)return;o.value=!0,setTimeout(()=>o.value=!1,Jo);const _=u=>{d(u),l.value=!ie(u)};ce("/api/open",{mode:"app"}).then(_,_)};return(_,u)=>(r(),i("div",qo,[a("button",{type:"button",class:"btn status-bar__btn status-bar__report",title:"A bug or a wish about this monitor, straight to its backlog",onClick:u[0]||(u[0]=k=>s("report"))},[(r(),i("svg",jo,[a("path",{d:h(Zn),fill:"currentColor"},null,8,Yo)])),u[2]||(u[2]=G("Report ",-1))]),a("span",{class:q(["status-bar__live",{"status-bar__live--off":n.value.dot==="off","status-bar__live--warn":n.value.dot==="warn"}])},null,2),a("span",null,m(c.value),1),h(We)?(r(),i("span",Ko,m(h(We)),1)):S("",!0),P(Lo),a("button",{type:"button",class:"btn status-bar__btn",onClick:u[1]||(u[1]=(...k)=>h(It)&&h(It)(...k))},"Refresh now"),h(C).mode==="app"?(r(),i("a",{key:1,class:"btn status-bar__btn",href:h(Bn)(h(C).ws),target:"_blank",rel:"noopener"},"Open in browser",8,Xo)):(r(),i("button",{key:2,type:"button",class:q(["btn status-bar__btn",{"status-bar__btn--busy":o.value}]),"aria-disabled":o.value,onClick:y},m(o.value?"Opening…":"Open as app"),11,Go)),P(ve,{query:{all:"1"}}),u[3]||(u[3]=a("span",{class:"ai-hint status-bar__ai-hint"},"Copy for AI: everything",-1))]))}}),Qo=K(Zo,[["__scopeId","data-v-1a4ce564"]]),cs=e=>{const t=ge("wt-collapsed",[],{writeDefaults:!1}),s=R(()=>t.value.includes(e));return{collapsed:s,toggle:()=>{t.value=s.value?t.value.filter(o=>o!==e):[...t.value,e]}}},ea=["href"],ta={key:1},le=j({__name:"ExtLink",props:{text:{default:""},url:{default:""}},setup(e){const t=e,s=R(()=>ut(t.url));return(n,o)=>s.value?(r(),i("a",{key:0,href:s.value,target:"_blank",rel:"noopener"},m(e.text),9,ea)):(r(),i("span",ta,m(e.text),1))}}),sa={class:"workspace-header__title"},na={class:"workspace-header__name"},oa={key:0,class:"workspace-header__line workspace-header__strip"},aa={class:"workspace-header__count"},la={class:"workspace-header__count"},ra={class:"workspace-header__count"},ia={class:"workspace-header__count"},ca={class:"workspace-header__line workspace-header__give"},da={class:"workspace-header__links"},ua={class:"workspace-header__tiles"},ha={class:"workspace-header__tile-value"},pa={class:"workspace-header__tile"},_a={class:"workspace-header__tile-value"},fa={class:"workspace-header__tile-value"},va={class:"workspace-header__tile"},ma={class:"workspace-header__tile-value"},ya=j({__name:"WorkspaceHeader",setup(e){const{collapsed:t,toggle:s}=cs("header");return(n,o)=>(r(),i("header",{id:"summary",class:q(["island workspace-header",{"workspace-header--collapsed":h(t)}])},[a("div",sa,[a("h1",na,m(h(w).workspace.name||"Whose Turn"),1),h(t)?(r(),i("p",oa,[o[1]||(o[1]=G(" Your move ",-1)),a("b",aa,m(h(ae).mine),1),o[2]||(o[2]=G(" · Waiting on others ",-1)),a("b",la,m(h(ae).others),1),o[3]||(o[3]=G(" · Failing ",-1)),a("b",ra,m(h(ae).failing),1),o[4]||(o[4]=G(" · Done ",-1)),a("b",ia,m(h(ae).done),1)])):S("",!0),a("p",ca,[P(ve,{query:{ws:h(w).workspace.id,kind:"workspace"},big:""},null,8,["query"]),o[5]||(o[5]=a("span",{class:"ai-hint"},"Copy for AI: this workspace",-1)),a("span",da,[(r(!0),i(U,null,X(h(w).workspace.links||[],l=>(r(),Y(le,{key:l.url,text:l.label,url:l.url,title:l.url},null,8,["text","url","title"]))),128))])])]),a("button",{type:"button",class:q(["fold-toggle workspace-header__fold",{"fold-toggle--folded":h(t)}]),"aria-label":"Fold the header","data-tip":"Fold the header; it stays folded until you open it again",onClick:o[0]||(o[0]=ee((...l)=>h(s)&&h(s)(...l),["stop"]))}," ▾ ",2),a("div",ua,[a("div",{class:q(["workspace-header__tile",{"workspace-header__tile--you":h(ae).mine>0}])},[o[6]||(o[6]=a("span",{class:"workspace-header__tile-label"},"Your move",-1)),a("strong",ha,m(h(ae).mine),1)],2),a("div",pa,[o[7]||(o[7]=a("span",{class:"workspace-header__tile-label"},"Waiting on others",-1)),a("strong",_a,m(h(ae).others),1)]),a("div",{class:q(["workspace-header__tile",{"workspace-header__tile--fail":h(ae).failing}])},[o[8]||(o[8]=a("span",{class:"workspace-header__tile-label"},"Open PRs with failing checks",-1)),a("strong",fa,m(h(ae).failing),1)],2),a("div",va,[o[9]||(o[9]=a("span",{class:"workspace-header__tile-label"},"Done in the last 30 days",-1)),a("strong",ma,m(h(ae).done),1)])])],2))}}),wa=K(ya,[["__scopeId","data-v-3421a7f0"]]),ft=e=>{Z(()=>C.reconnects,e)},ga=j({__name:"Chevron",props:{open:{type:Boolean},tag:{default:"button"}},setup(e){return(t,s)=>(r(),Y(Ts(e.tag),{class:q(["chevron",{"chevron--open":e.open}]),type:e.tag==="button"?"button":void 0,"aria-expanded":e.tag==="button"?e.open:void 0},null,8,["class","type","aria-expanded"]))}}),qe=K(ga,[["__scopeId","data-v-a14fa9ba"]]),ka=["aria-orientation","aria-label"],Bt=16,ba=j({__name:"ResizeHandle",props:{label:{},axis:{},bounds:{type:Function},grow:{},top:{type:Boolean}},emits:["resize","reset"],setup(e,{emit:t}){const s=e,n=t,o=s.grow??1;let l={pointer:0,size:0,min:0,max:0};const c=u=>s.axis==="y"?u.clientY:u.clientX,d=u=>{const{current:k,min:f,max:p}=s.bounds();l={pointer:c(u),size:k,min:f,max:p},u.currentTarget.setPointerCapture(u.pointerId)},y=u=>{if(!u.currentTarget.hasPointerCapture(u.pointerId))return;const k=(c(u)-l.pointer)*o;n("resize",Dt(l.size+k,l.min,l.max))},_=u=>{const k=s.axis==="y"?"ArrowDown":"ArrowRight",f=s.axis==="y"?"ArrowUp":"ArrowLeft";if(u.key!==k&&u.key!==f)return;u.preventDefault();const{current:p,min:v,max:x}=s.bounds(),g=(u.key===k?Bt:-Bt)*o;n("resize",Dt(p+g,v,x))};return(u,k)=>(r(),i("div",{class:q(["resize-handle",["resize-handle--"+e.axis,{"resize-handle--top":e.top}]]),role:"separator",tabindex:"0","aria-orientation":e.axis==="y"?"horizontal":"vertical","aria-label":e.label,"data-tip":"Drag to resize; double click to reset",onPointerdown:ee(d,["prevent"]),onPointermove:y,onKeydown:_,onDblclick:k[0]||(k[0]=f=>n("reset"))},null,42,ka))}}),ds=K(ba,[["__scopeId","data-v-8e637688"]]),$a=["id"],xa={class:"island__head"},Sa={class:"island__title"},Ca={class:"island__note"},Ea={class:"island__note-text"},Ra=["aria-label","data-tip"],Ta={class:"island__body"},Aa=280,Ma=360,Ia=j({__name:"Island",props:{id:{},sizeKey:{default:""},title:{},note:{default:""},tip:{default:""},column:{type:Boolean},resize:{default:"height"}},setup(e){const t=e,{collapsed:s,toggle:n}=cs(t.id),{size:o,set:l}=pt(()=>t.sizeKey),c=Fe("root"),d=N(0),y=g=>parseFloat(g)||0,_=(g,z)=>{let E=0;for(let b=g.parentElement;b&&b!==z;b=b.parentElement)E+=b.scrollTop;return E},u=(g,z)=>{const E=[...g.children].find(T=>T.contains(z));return(E?[...g.children].slice([...g.children].indexOf(E)+1):[]).filter(T=>!T.classList.contains("row-scroll__more")).reduce((T,O)=>{const V=O;return T+(y(getComputedStyle(V).minHeight)||V.offsetHeight)},0)},k=()=>{const g=c.value,z=g==null?void 0:g.querySelector(".island__body");if(!g||!z||s.value||t.resize!=="height")return;const E=z.querySelectorAll("tbody > tr, .todos__list > li"),b=g.getBoundingClientRect().top,T=y(getComputedStyle(z).paddingBottom);if(!E.length){d.value=Math.ceil(z.offsetTop+z.scrollHeight);return}const O=E[0].getBoundingClientRect().bottom-b+_(E[0],g);d.value=ro(O+u(z,E[0])+T+2,E.length)};let f=0;const p=()=>{cancelAnimationFrame(f),f=requestAnimationFrame(k)};rt(()=>{var z;const g=(z=c.value)==null?void 0:z.querySelector(".island__body");g&&(Ls(g,p,{childList:!0,subtree:!0}),qs(g,p)),p()});const v=g=>{var z;return[...((z=g.parentElement)==null?void 0:z.children)??[]].filter(E=>E!==g&&E instanceof HTMLElement).map(E=>({collapsed:E.classList.contains("island--collapsed"),height:E.offsetHeight,floor:y(E.style.getPropertyValue("--island-floor"))}))},x=()=>{const g=c.value;if(k(),t.resize==="width"){const b=g.parentElement,T=y(getComputedStyle(b).columnGap);return{current:g.offsetWidth,min:Aa,max:b.clientWidth-T-Ma}}const z=g.parentElement,E=y(getComputedStyle(z).rowGap);return{current:g.offsetHeight,min:d.value,max:Math.max(io(z.clientHeight,E,v(g)),z.clientHeight)}};return(g,z)=>(r(),i("section",{id:e.id,ref_key:"root",ref:c,class:q(["island",{"island--collapsed":h(s),"island--column":e.column,"island--sized":h(o)!==null&&e.resize==="height"}]),style:Ne(e.resize==="height"?{"--island-floor":d.value+"px","--island-height":(h(o)??0)+"px"}:void 0)},[a("div",xa,[P(qe,{open:!h(s),"aria-label":"Fold "+e.title,"data-tip":"Fold this panel; it stays folded until you open it again",onClick:ee(h(n),["stop"])},null,8,["open","aria-label","onClick"]),a("h2",Sa,[G(m(e.title)+" ",1),me(g.$slots,"head",{},void 0)]),a("p",Ca,[a("span",Ea,m(e.note),1),e.tip?(r(),i("button",{key:0,type:"button",class:"hint-icon","aria-label":"About "+e.title,"data-tip":e.tip,"data-tip-click":""}," ? ",8,Ra)):S("",!0)])]),a("div",Ta,[me(g.$slots,"default",{},void 0)]),h(s)?S("",!0):(r(),Y(ds,{key:0,label:"Resize "+e.title,axis:e.resize==="width"?"x":"y",grow:e.resize==="width"?-1:1,bounds:x,onResize:h(l),onReset:z[0]||(z[0]=E=>h(l)(null))},null,8,["label","axis","grow","onResize"]))],14,$a))}}),je=K(Ia,[["__scopeId","data-v-37152aeb"]]),za=["aria-label"],Oa=["aria-pressed","onClick"],Da={key:0,class:"count"},Ba=j({__name:"Segmented",props:et({options:{},label:{default:""},chips:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Wt(e,"modelValue");return(s,n)=>(r(),i("span",{class:q(["segmented",{"segmented--chips":e.chips}]),role:"group","aria-label":e.label},[(r(!0),i(U,null,X(e.options,o=>(r(),i("button",{key:o.id,type:"button",class:"segmented__option","aria-pressed":t.value===o.id,onClick:l=>t.value=o.id},[G(m(o.label),1),o.count!==void 0?(r(),i("b",Da,m(o.count),1)):S("",!0)],8,Oa))),128))],10,za))}}),Ve=K(Ba,[["__scopeId","data-v-201d5e2f"]]),Na={class:"ticket-cell"},Pa={class:"ticket-cell__summary"},Wa=j({__name:"TicketCell",props:{row:{}},setup(e){return(t,s)=>(r(),i("td",Na,[P(le,{text:e.row.key,url:h(jt)(e.row)?e.row.pr_url:e.row.ticket_url,class:"ticket-key"},null,8,["text","url"]),a("span",Pa,m(e.row.summary),1)]))}}),vt=K(Wa,[["__scopeId","data-v-e2d11a0b"]]),Ua={key:0,class:"pr-cell"},Va={key:1,class:"pill"},Fa=j({__name:"PrCell",props:{row:{}},setup(e){return(t,s)=>(r(),i("td",null,[e.row.pr&&!h(jt)(e.row)?(r(),i("span",Ua,[P(le,{text:e.row.pr,url:e.row.pr_url,class:"pr-cell__link"},null,8,["text","url"]),e.row.pr_state==="OPEN"&&e.row.checks?(r(),i("span",{key:0,class:q(["pill",h(Re)("pill",h(Zs)(e.row.checks))])},m(e.row.checks),3)):e.row.pr_state?(r(),i("span",Va,m(e.row.pr_state.toLowerCase()),1)):S("",!0)])):S("",!0)]))}}),us=K(Fa,[["__scopeId","data-v-6078ccbd"]]),Ha=["open"],La={class:"recently-done__summary"},qa={class:"count"},ja={class:"table"},Ya=["data-tip"],Ka={class:"table__actions"},Xa=480,Ga=j({__name:"RecentlyDone",setup(e){const{size:t,set:s}=pt(()=>`${w.workspace.id}:recently-done`),n=Fe("list"),o=_=>{var k;const u=(k=_.closest(".island__body"))==null?void 0:k.querySelector(".row-scroll");return u?Math.max(0,u.clientHeight-(parseFloat(getComputedStyle(u).minHeight)||0)):0},l=()=>{const _=n.value,k=(_.querySelector("tbody > tr")??_).getBoundingClientRect().bottom-_.getBoundingClientRect().top,f=parseFloat(getComputedStyle(_).paddingBottom)||0;return{current:_.offsetHeight,min:Math.ceil(k+_.scrollTop+f),max:Math.min(Xa,_.offsetHeight+o(_))}},c=ge("wt-recent-open",!1,{writeDefaults:!1,serializer:{read:_=>_==="1",write:_=>_?"1":"0"}}),d=_=>{c.value=_.target.open},y=R(()=>(fe.value,Qs(w.turn).map(_=>({row:_,since:ht(_.status_since||_.updated)}))));return(_,u)=>y.value.length?(r(),i("details",{key:0,class:"recently-done",open:h(c),onToggle:d},[a("summary",La,[P(qe,{tag:"span",open:h(c)},null,8,["open"]),u[1]||(u[1]=G(" Recently done ",-1)),a("span",qa,m(y.value.length),1)]),a("div",{ref_key:"list",ref:n,class:"recently-done__list",style:Ne(h(t)===null?void 0:{maxHeight:h(t)+"px",height:h(t)+"px"})},[a("table",ja,[u[2]||(u[2]=a("thead",null,[a("tr",null,[a("th",null,"Ticket"),a("th",null,"Status"),a("th",null,"Done"),a("th",{class:"table__actions-col"},[a("span",{class:"visually-hidden"},"Copy for AI")])])],-1)),a("tbody",null,[(r(!0),i(U,null,X(y.value,({row:k,since:f})=>(r(),i("tr",{key:k.row_id},[P(vt,{row:k},null,8,["row"]),a("td",null,[a("span",{class:q(["pill",h(Re)("pill",h(Yt)(k.status_group))])},m(k.status),3)]),a("td",null,[a("span",{class:"age","data-tip":"Done "+h(Le)(k.status_since||k.updated)},m(f.text),9,Ya)]),a("td",Ka,[P(ve,{class:"table__ai",query:{ws:h(w).workspace.id,kind:"row",ref:k.row_id}},null,8,["query"])])]))),128))])])],4),h(c)?(r(),Y(ds,{key:0,label:"Resize Recently done",axis:"y",top:"",grow:-1,bounds:l,onResize:h(s),onReset:u[0]||(u[0]=k=>h(s)(null))},null,8,["onResize"])):S("",!0)],40,Ha)):S("",!0)}}),Ja=K(Ga,[["__scopeId","data-v-68a4b78e"]]),Za=13,Qa=j({__name:"RowScroll",props:{floor:{type:Boolean}},setup(e){const t=N(null),s=N(null),{y:n}=js(t),{height:o}=$t(t),{height:l}=$t(s),c=()=>{var f,p,v;return[...((v=(p=(f=s.value)==null?void 0:f.querySelector("table"))==null?void 0:p.tBodies[0])==null?void 0:v.rows)||[]]},d=()=>c().filter(f=>!("rowTail"in f.dataset)),y=f=>{const p=f.nextElementSibling;return((p==null?void 0:p.dataset.rowTail)!==void 0?p:f).getBoundingClientRect().bottom},_=()=>{const f=t.value;return f?f.getBoundingClientRect().top+f.clientTop+f.clientHeight:0},u=R(()=>(n.value,o.value,l.value,en(d().map(y),_(),Za))),k=()=>{var z,E;const f=t.value,p=d(),v=p[p.length-u.value];if(!f||!v)return;const g=((E=(z=s.value)==null?void 0:z.querySelector("thead"))==null?void 0:E.getBoundingClientRect().bottom)??f.getBoundingClientRect().top;f.scrollBy({top:v.getBoundingClientRect().top-g,behavior:"smooth"})};return(f,p)=>(r(),i(U,null,[a("div",{ref_key:"scroller",ref:t,class:q(["row-scroll",{"row-scroll--floor":e.floor}])},[a("div",{ref_key:"content",ref:s},[me(f.$slots,"default",{},void 0)],512)],2),u.value?(r(),i("button",{key:0,type:"button",class:"row-scroll__more",onClick:k}," +"+m(u.value)+" more ",1)):S("",!0)],64))}}),hs=K(Qa,[["__scopeId","data-v-e7f699d1"]]),el=N("open"),tl=()=>el,sl={key:0,class:"your-move__undo",role:"status"},nl={class:"table"},ol={key:0},al={key:1,class:"hide-narrow"},ll={class:"hint-row"},rl={class:"your-move__next"},il=["data-tip"],cl=["data-tip"],dl=["data-tip"],ul={key:0,class:"alert alert--inline your-move__problem",role:"alert"},hl={class:"table__actions"},pl=["aria-label","onClick"],_l={colspan:"99",class:"your-move__line-cell"},fl=["onClick"],vl={class:"your-move__outcome"},ml={class:"your-move__time"},yl={key:1,class:"empty"},wl=j({__name:"YourMove",setup(e){const t=tl(),s=R(()=>{fe.value;const f=tn(w.turn,t.value,w.marks.info,C.note),p=f.rows.map(v=>{const x=w.marks.info[v.row.row_id],g=!!(x!=null&&x.auto);return{...v,age:ht(v.row.activity_at),auto:g,lined:g||!!(x!=null&&x.note),line:(g?x==null?void 0:x.outcome:x==null?void 0:x.note)||""}});return{...f,rows:p}}),n=R(()=>Kt(s.value.rows.map(f=>f.row))),o=R(()=>s.value.rows.some(f=>f.row.comment)),l=R(()=>[{id:"open",label:"Open",count:s.value.open},{id:"handled",label:"Handled",count:s.value.handled}]),c=R(()=>{if(t.value==="handled")return"Nothing marked as handled.";const{noData:f,failing:p}=is(w.health,w.polled_at,w.workspace.connectors.length,C.live);return f?"No data: "+p.join(", ")+(p.length===1?" is":" are")+" failing. Check Settings.":"Nothing is waiting on you."}),d=lt(new Map);ft(()=>d.clear());const y=f=>new Date(w.marks.handled[f.row.row_id]||"").toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),_=async f=>{const p=f.row.row_id,v=!f.handled,x=await we({handled:{[p]:v?new Date().toISOString():null}});x?d.set(p,x):(d.delete(p),u.value=v?p:"",C.note=v?p:"")},u=Ce("",8e3),k=()=>{const f=u.value;return u.value="",we({handled:{[f]:null}})};return(f,p)=>(r(),Y(je,{id:"your-move","size-key":`${h(w).workspace.id}:your-move`,title:"Your move",note:"Next step is yours",tip:"Each row is something where the next step is yours. Ticket, PR and comment open in a new tab."},{head:te(()=>[P(Ve,{modelValue:h(t),"onUpdate:modelValue":p[0]||(p[0]=v=>As(t)?t.value=v:null),options:l.value,label:"Show",class:"your-move__view"},null,8,["modelValue","options"])]),default:te(()=>[h(u)?(r(),i("p",sl,[p[1]||(p[1]=G(" Marked handled. ",-1)),a("button",{type:"button",class:"your-move__undo-btn",onClick:k},"Undo")])):S("",!0),P(hs,{floor:""},{default:te(()=>[a("table",nl,[a("thead",null,[a("tr",null,[p[2]||(p[2]=a("th",null,"Ticket",-1)),p[3]||(p[3]=a("th",null,"Next step",-1)),n.value?(r(),i("th",ol,"PR")):S("",!0),o.value?(r(),i("th",al,"Last comment")):S("",!0),p[4]||(p[4]=a("th",{class:"table__actions-col"},[a("span",{class:"visually-hidden"},"Mark")],-1))])]),a("tbody",null,[(r(!0),i(U,null,X(s.value.rows,v=>(r(),i(U,{key:v.row.row_id},[a("tr",{class:q(["your-move__row",{"your-move__row--handled":v.handled,"your-move__row--lined":v.lined}])},[P(vt,{row:v.row},null,8,["row"]),a("td",null,[a("span",ll,[a("span",rl,m(v.row.next),1),v.age.text?(r(),i("span",{key:0,class:q(["age",{"age--old":v.age.old}]),"data-tip":"Waiting since "+h(Le)(v.row.activity_at)},m(v.age.text),11,il)):S("",!0),v.row.why?(r(),i("button",{key:1,type:"button",class:"hint-label","aria-label":"Why this is your move","data-tip":v.row.why,"data-tip-click":""}," why ",8,cl)):S("",!0),v.handled&&!v.auto?(r(),i("span",{key:2,class:"handled-chip","data-tip":"Marked "+h(re)(h(w).marks.handled[v.row.row_id]||"")+". Comes back in 7 days if it is still open, or sooner when something new happens."},"handled",8,dl)):S("",!0)]),d.get(v.row.row_id)?(r(),i("p",ul,m(d.get(v.row.row_id)),1)):S("",!0)]),n.value?(r(),Y(us,{key:0,row:v.row},null,8,["row"])):S("",!0),o.value?(r(),i("td",{key:1,class:q(["hide-narrow",{"your-move__quote":v.row.comment}])},[v.row.comment?(r(),Y(le,{key:0,text:v.row.comment,url:v.row.comment_url},null,8,["text","url"])):S("",!0)],2)):S("",!0),a("td",hl,[P(ve,{class:"table__ai",query:{ws:h(w).workspace.id,kind:"row",ref:v.row.row_id}},null,8,["query"]),v.auto?S("",!0):(r(),i("button",{key:0,type:"button",class:q(["your-move__mark",{"your-move__mark--undo":v.handled}]),"aria-label":(v.handled?"Move back to open: ":"Mark as handled: ")+v.row.key,onClick:ee(x=>_(v),["stop"])},m(v.handled?"Undo":"Handled"),11,pl))])],2),v.lined?(r(),i("tr",{key:0,"data-row-tail":"",class:q(["your-move__line-row",{"your-move__line-row--handled":v.handled}])},[a("td",_l,[a("button",{type:"button",class:"your-move__line","data-tip":"Open the full text and edit the note",onClick:x=>h(C).note=v.row.row_id},[p[5]||(p[5]=a("span",{class:"your-move__arrow","aria-hidden":"true"},"→",-1)),a("span",vl,m(v.line),1),a("time",ml,m(y(v)),1)],8,fl)])],2)):S("",!0)],64))),128))])])]),_:1}),s.value.rows.length?S("",!0):(r(),i("p",yl,m(c.value),1)),h(t)==="open"?(r(),Y(Ja,{key:2})):S("",!0)]),_:1},8,["size-key"]))}}),gl=K(wl,[["__scopeId","data-v-3a6ca0d0"]]),kl=N(!1),bl=()=>kl,$l={class:"todos__add"},xl={key:0,class:"alert alert--inline",role:"alert"},Sl={key:1,class:"todos__undo",role:"status"},Cl={class:"todos__list"},El=["aria-checked","aria-label","onClick"],Rl=["onKeydown"],Tl=["onDblclick"],Al={class:"todos__meta"},Ml=["onClick"],Il=["onClick"],zl={key:0,class:"empty todos__empty"},Ol=j({__name:"Todos",setup(e){const t=bl(),s=N(""),n=R(()=>(w.todos||[]).filter($=>!$.done)),o=R(()=>(w.todos||[]).filter($=>$.done)),l=R(()=>new RegExp(w.workspace.key_pattern||"(?!)","g")),c=$=>{const F=[];let H=0;const se=$.text;for(const I of se.matchAll(l.value))I.index>H&&F.push({text:se.slice(H,I.index)}),F.push({text:I[0],url:I[0]===$.key?$.ticket_url:""}),H=I.index+I[0].length;return H<se.length&&F.push({text:se.slice(H)}),F},d=R(()=>(fe.value,(t.value?n.value.concat(o.value):n.value).map($=>({todo:$,parts:c($),meta:($.by&&$.by!=="you"?$.by+" · ":"")+re($.created)})))),y=N("");ft(()=>{y.value=""});const _=async $=>(y.value=await Yn($),!y.value),u=async()=>{const $=s.value.trim();$&&await _({action:"add",text:$})&&s.value.trim()===$&&(s.value="")},k=$=>_({action:$.done?"undo":"done",id:$.id}),f=N(null),p=async $=>{await _({action:"delete",id:$.id})&&(f.value=$)},v=async()=>{const $=f.value;if(f.value=null,$&&await _({action:"add",text:$.text})&&$.done){const F=(w.todos||[]).find(H=>H.text===$.text&&!H.done);F&&await _({action:"done",id:F.id})}},x=N(""),g=N(""),z=Fe("editBox"),E=async $=>{var F,H;x.value=$.id,g.value=$.text,await _e(),(H=(F=z.value)==null?void 0:F[0])==null||H.focus()},b=()=>{x.value=""},T=async $=>{const F=g.value.trim();if(!F||F===$.text)return b();await _({action:"edit",id:$.id,text:F})&&b()},O=R({get:()=>t.value?"done":"open",set:$=>{t.value=$==="done"}}),V=R(()=>[{id:"open",label:"Open",count:n.value.length},{id:"done",label:"Done",count:o.value.length}]);return($,F)=>(r(),Y(je,{id:"todo","size-key":`${h(w).workspace.id}:todo`,title:"To do",note:"Your own notes",tip:'Your personal to-dos, kept on this machine. Add here, or ask Claude: "add to my to-do: …". A ticket key like PROJ-123 in the text becomes a link.'},{head:te(()=>[P(Ve,{modelValue:O.value,"onUpdate:modelValue":F[0]||(F[0]=H=>O.value=H),options:V.value,label:"Show",class:"todos__view"},null,8,["modelValue","options"])]),default:te(()=>[a("div",$l,[be(a("input",{"onUpdate:modelValue":F[1]||(F[1]=H=>s.value=H),class:"input todos__input",type:"text",placeholder:"Add a to-do and press Enter","aria-label":"New to-do",autocomplete:"off",onKeydown:ye(u,["enter"])},null,544),[[$e,s.value]]),a("button",{type:"button",class:"btn btn--tonal",onClick:u},"Add")]),y.value?(r(),i("p",xl,m(y.value),1)):S("",!0),f.value?(r(),i("p",Sl,[F[3]||(F[3]=G(" To-do deleted. ",-1)),a("button",{type:"button",class:"todos__undo-btn",onClick:v},"Undo")])):S("",!0),a("ul",Cl,[(r(!0),i(U,null,X(d.value,({todo:H,parts:se,meta:I})=>(r(),i("li",{key:H.id,class:q(["todos__item",{"todos__item--done":H.done}])},[a("button",{type:"button",class:q(["todos__check",{"todos__check--on":H.done}]),role:"checkbox","aria-checked":!!H.done,"aria-label":H.done?"Mark not done":"Mark done",onClick:W=>k(H)},null,10,El),x.value===H.id?be((r(),i("input",{key:0,ref_for:!0,ref_key:"editBox",ref:z,"onUpdate:modelValue":F[2]||(F[2]=W=>g.value=W),class:"input todos__edit",type:"text",maxlength:"500","aria-label":"Edit to-do",autocomplete:"off",onKeydown:[ye(W=>T(H),["enter"]),ye(b,["esc"])],onBlur:b},null,40,Rl)),[[$e,g.value]]):(r(),i("span",{key:1,class:"todos__text",onDblclick:W=>E(H)},[(r(!0),i(U,null,X(se,(W,B)=>(r(),i(U,{key:B},[W.url!==void 0?(r(),Y(le,{key:0,text:W.text,url:W.url},null,8,["text","url"])):(r(),i(U,{key:1},[G(m(W.text),1)],64))],64))),128))],40,Tl)),a("span",Al,m(I),1),a("button",{type:"button",class:"todos__pencil","aria-label":"Edit to-do",onClick:W=>E(H)}," ✎ ",8,Ml),a("button",{type:"button",class:"todos__delete","aria-label":"Delete to-do",onClick:W=>p(H)}," × ",8,Il)],2))),128)),d.value.length?S("",!0):(r(),i("span",zl,m(h(t)?"Nothing here yet.":"Nothing to do. Add one above, or ask Claude."),1))])]),_:1},8,["size-key"]))}}),Dl=K(Ol,[["__scopeId","data-v-6dbdbb66"]]),Bl={key:0,class:"count"},Nl={key:0,class:"empty"},Pl={class:"table waiting__table"},Wl={key:0,class:"hide-narrow"},Ul={key:1,class:"waiting__col waiting__col--pr"},Vl=["data-tip"],Fl={key:0,class:"hide-narrow"},Hl={key:0,class:"hint-row"},Ll=["data-tip"],ql={class:"table__actions"},jl=j({__name:"Waiting",setup(e){const t=R(()=>(fe.value,sn(w.turn).map(l=>({row:l,since:l.status_since?ht(l.status_since):null,own:l.status_group==="backlog"})))),s=R(()=>Kt(t.value.map(({row:l})=>l))),n=R(()=>t.value.some(({row:l,own:c})=>l.hold_url||!c&&l.next)),o=R(()=>t.value.length&&t.value.every(({own:l})=>l)?"Your backlog":"Someone else holds the next step");return(l,c)=>(r(),Y(je,{id:"waiting","size-key":`${h(w).workspace.id}:waiting`,title:"Waiting on others",note:o.value,tip:"Tickets you touched in the last 30 days where someone else holds the next step: a reviewer, QA, or a new owner."},{head:te(()=>[t.value.length?(r(),i("span",Bl,m(t.value.length),1)):S("",!0)]),default:te(()=>[t.value.length?(r(),Y(hs,{key:1},{default:te(()=>[a("table",Pl,[a("thead",null,[a("tr",null,[c[0]||(c[0]=a("th",{class:"waiting__col waiting__col--ticket"},"Ticket",-1)),c[1]||(c[1]=a("th",{class:"waiting__col waiting__col--status"},"Status",-1)),c[2]||(c[2]=a("th",{class:"waiting__col waiting__col--with"},"With",-1)),n.value?(r(),i("th",Wl,"Waiting for")):S("",!0),s.value?(r(),i("th",Ul,"PR")):S("",!0),c[3]||(c[3]=a("th",{class:"table__actions-col waiting__col waiting__col--actions"},[a("span",{class:"visually-hidden"},"Copy for AI")],-1))])]),a("tbody",null,[(r(!0),i(U,null,X(t.value,({row:d,since:y,own:_})=>(r(),i("tr",{key:d.row_id},[P(vt,{row:d},null,8,["row"]),a("td",null,[a("span",{class:q(["pill",h(Re)("pill",h(Yt)(d.status_group))])},m(d.status),3)]),a("td",null,[G(m(_?"you":d.whose)+" ",1),y?(r(),i("span",{key:0,class:q(["age",{"age--old":y.hours>=72}]),"data-tip":d.status+" since "+h(Le)(d.status_since)},m(y.text),11,Vl)):S("",!0)]),n.value?(r(),i("td",Fl,[d.hold_url?(r(),i("span",Hl,[P(le,{text:d.next,url:d.hold_url,class:"waiting__reason"},null,8,["text","url"]),a("button",{type:"button",class:"hint-label","aria-label":"Full reason","data-tip":d.hold_full||d.next}," full ",8,Ll)])):_?S("",!0):(r(),i(U,{key:1},[G(m(d.next),1)],64))])):S("",!0),s.value?(r(),Y(us,{key:1,row:d},null,8,["row"])):S("",!0),a("td",ql,[P(ve,{class:"table__ai",query:{ws:h(w).workspace.id,kind:"row",ref:d.row_id}},null,8,["query"])])]))),128))])])]),_:1})):(r(),i("p",Nl,"Nothing is waiting on someone else."))]),_:1},8,["size-key","note"]))}}),Yl=K(jl,[["__scopeId","data-v-90e8bf77"]]),Kl=(e,t)=>e.seen instanceof Set?e.seen.has(t):e.seen.includes(t),ps=(e,t)=>new Date(e.at).getTime()>(t.base||0)&&!Kl(t,e.id),Xl=(e,t)=>{const s=String(t||"").toLowerCase().split(/\s+/).filter(Boolean);if(!s.length)return!0;const n=[e.ref,e.key,e.title,e.kind,e.who,e.text,e.body].join(" ").toLowerCase();return s.every(o=>n.includes(o))},Gl=e=>e.key||e.ref||e.id,Jl=(e,t)=>{const s=new Map;for(const n of e){const o=Gl(n),l=s.get(o)||{id:o,items:[],newest:n.at,unread:0,title:""};s.set(o,l),l.items.push(n),l.title||(l.title=n.title||""),n.at>l.newest&&(l.newest=n.at),ps(n,t)&&(l.unread+=1)}return[...s.values()].sort((n,o)=>String(o.newest).localeCompare(String(n.newest)))},Zl=e=>new Set(e.filter(t=>t.group==="you"&&!t.handled).map(t=>t.key)),Ql=(e,t=2)=>{const s=[...new Set(e.map(o=>o.kind))],n=s.length-t;return s.slice(0,t).join(" · ")+(n>0?` +${n}`:"")},er=e=>/fail|changes/.test(e)?"bad":/approved|merged|passed/.test(e)?"ok":"",tr=e=>/comment|approved|changes|mentioned|review requested/.test(e.kind)&&String(e.body||"").trim()!=="",_s=e=>e.ref!==e.key&&(e.key||e.title)||"",sr=e=>[_s(e),e.text===e.title?"":e.text].filter(Boolean).join(" · "),nr=e=>e.type==="github"&&e.label==="GitHub"?"GH":ls(e.label),or=["id"],ar={class:"feed-item__body"},lr={class:"feed-item__top"},rr={key:1,class:"feed-item__who"},ir={key:2,class:"at-you"},cr={class:"feed-item__right"},dr={class:"timestamp feed-item__when"},ur={key:0,class:"feed-item__text"},hr={class:"feed-item__full"},pr={class:"feed-item__actions"},_r={key:1,class:"feed-item__text"},fr=j({__name:"FeedItem",props:{item:{},source:{},fresh:{type:Boolean},flash:{type:Boolean},expanded:{type:Boolean}},emits:["open","toggle","seen"],setup(e,{emit:t}){const s=e,n=t,o=R(()=>nr(s.source)),l=R(()=>_s(s.item)),c=R(()=>sr(s.item)),d=R(()=>er(s.item.kind)),y=R(()=>d.value||(s.source.type==="github"?"":"jira")),_=R(()=>tr(s.item)),u=R(()=>_.value&&s.expanded),k=R(()=>(fe.value,re(s.item.at))),f=()=>{s.fresh&&n("seen",s.item.id)},p=()=>{n("toggle",s.item.id),f()};return(v,x)=>(r(),i("li",{id:"feed-"+e.item.id,class:q(["feed-item",{"feed-item--new":e.fresh,"feed-item--open":u.value,"feed-item--flash":e.flash}]),onClick:f},[a("span",{class:q(["feed-item__icon",h(Re)("feed-item__icon",y.value)])},m(o.value),3),a("div",ar,[a("div",lr,[_.value?(r(),Y(qe,{key:0,open:u.value,"aria-label":u.value?"Collapse":"Expand",onClick:ee(p,["stop"])},null,8,["open","aria-label"])):S("",!0),P(le,{text:e.item.ref,url:e.item.url},null,8,["text","url"]),a("span",{class:q(["feed-item__kind",{"feed-item__kind--bad":d.value==="bad"}])},m(e.item.kind),3),e.item.who?(r(),i("span",rr,m(e.item.who),1)):S("",!0),e.item.mention?(r(),i("span",ir,"@you")):S("",!0),a("span",cr,[a("span",dr,m(k.value),1)])]),u.value?(r(),i(U,{key:0},[l.value?(r(),i("span",ur,m(l.value),1)):S("",!0),a("div",hr,m(e.item.body),1),a("div",pr,[a("button",{type:"button",class:"btn btn--tonal",onClick:x[0]||(x[0]=ee(g=>n("open",e.item),["stop"]))}," Open formatted "),P(ve,{query:{ws:h(w).workspace.id,kind:"feed",ref:e.item.id}},null,8,["query"]),P(le,{text:"Open in "+e.source.label,url:e.item.url,class:"btn"},null,8,["text","url"])])],64)):c.value?(r(),i("span",_r,m(c.value),1)):S("",!0)])],10,or))}}),Nt=K(fr,[["__scopeId","data-v-8cc9dc10"]]),vr=lt({source:"all",view:ge("wt-feed-view","ticket",{writeDefaults:!1}),query:"",openGroups:new Set}),mr=()=>vr,yr={key:0,class:"feed__new-count"},wr={class:"feed__bar"},gr={key:0,class:"alert alert--inline",role:"alert"},kr={key:1,class:"feed__undo",role:"status"},br={class:"feed__search"},$r={class:"feed__search-count"},xr={key:2,class:"empty"},Sr={key:3,class:"feed__list"},Cr=["title","onClick"],Er={class:"feed__group-text"},Rr={class:"feed__group-key"},Tr={key:0,class:"feed__group-sum"},Ar={class:"feed__group-meta"},Mr={class:"feed__group-kinds"},Ir={class:"timestamp feed__group-when"},zr={key:0,class:"feed__children"},Or=2500,Dr=j({__name:"Feed",emits:["open"],setup(e,{emit:t}){const s=t,n=mr(),o=[{id:"ticket",label:"By ticket"},{id:"flat",label:"Flat"}],l=R(()=>w.workspace.connectors||[]),c=R(()=>Object.fromEntries(l.value.map(I=>[I.id,I]))),d=I=>c.value[I]||{id:I,type:I,label:I},y=R(()=>l.value.length>1?[{id:"all",label:"All"}].concat(l.value.map(I=>({id:I.id,label:I.label}))):[]),_=R({get:()=>y.value.some(I=>I.id===n.source)?n.source:"all",set:I=>{n.source=I}});Z(()=>w.workspace.id,()=>{n.query=""});const u=N("");Z(()=>C.focusFeed,async I=>{var B;const W=w.feed.find(Q=>Q.id===I);C.focusFeed="",W&&(n.source="all",n.query="",n.openGroups.add(W.key||W.ref||W.id),u.value=I,await _e(),(B=document.getElementById(`feed-${I}`))==null||B.scrollIntoView({block:"center"}),setTimeout(()=>{u.value=""},Or))});const k=R(()=>({base:w.marks.base,seen:new Set(w.marks.seen)})),f=I=>ps(I,k.value),p=R(()=>w.feed.filter(f).length),v=R(()=>w.feed.filter(I=>_.value==="all"||I.source===_.value)),x=R(()=>v.value.filter(I=>Xl(I,n.query)).slice(0,200)),g=R(()=>new Map(w.turn.map(I=>[I.key,I]))),z=R(()=>Zl(w.turn)),E=R(()=>(fe.value,Jl(x.value,k.value).map(I=>({...I,row:g.value.get(I.id),move:z.value.has(I.id),when:re(I.newest),kinds:Ql(I.items),open:n.openGroups.has(I.id)||!!n.query})))),b=(I,W)=>{I.has(W)?I.delete(W):I.add(W)},T=I=>b(n.openGroups,I.id),O=I=>b(C.open,I),V=I=>we({seen:[I]}).then(pe),$=N("");ft(()=>{$.value=""});const F=N(null),H=async()=>{const I=new Set(w.marks.seen),W={base:w.marks.base,added:w.feed.map(B=>B.id).filter(B=>!I.has(B))};$.value=await we({seen:w.feed.map(B=>B.id),base:Date.now()}),F.value=$.value?null:W},se=async()=>{const I=F.value;F.value=null,I&&($.value=await we({unseen:I.added,base:I.base}))};return(I,W)=>(r(),Y(je,{id:"feed","size-key":`${h(w).workspace.id}:feed`,title:"What changed",note:"Newest first, every source",tip:"Newest first: comments, reviews, merges and failed checks on your PRs, and ticket changes. Each item opens where it happened.",class:"feed",column:"",resize:"width"},{head:te(()=>[p.value?(r(),i("span",yr,m(p.value)+" new",1)):S("",!0)]),default:te(()=>[a("div",wr,[y.value.length?(r(),Y(Ve,{key:0,modelValue:_.value,"onUpdate:modelValue":W[0]||(W[0]=B=>_.value=B),options:y.value,label:"Feed source"},null,8,["modelValue","options"])):S("",!0),P(Ve,{modelValue:h(n).view,"onUpdate:modelValue":W[1]||(W[1]=B=>h(n).view=B),options:o,label:"Feed view"},null,8,["modelValue"])]),$.value?(r(),i("p",gr,m($.value),1)):S("",!0),F.value?(r(),i("p",kr,[W[5]||(W[5]=G(" Marked all read. ",-1)),a("button",{type:"button",class:"feed__undo-btn",onClick:se},"Undo")])):S("",!0),a("div",br,[be(a("input",{"onUpdate:modelValue":W[2]||(W[2]=B=>h(n).query=B),class:"input feed__search-input",type:"search",placeholder:"Search the feed: key, author, words…","aria-label":"Search the feed",autocomplete:"off"},null,512),[[$e,h(n).query,void 0,{trim:!0}]]),a("span",$r,m(h(n).query?x.value.length+" of "+v.value.length:""),1),a("button",{type:"button",class:"feed__mark-read",onClick:H},"Mark all read")]),h(w).feed.length?(r(),i("ol",Sr,[h(n).view==="ticket"?(r(!0),i(U,{key:0},X(E.value,B=>(r(),i("li",{key:B.id,class:q(["feed__group",{"feed__group--new":B.unread,"feed__group--open":B.open,"feed__group--move":B.move}])},[a("div",{class:"feed__group-head",title:B.move?"Your move on this ticket":void 0,onClick:Q=>T(B)},[P(qe,{open:B.open,"aria-label":"Fold "+B.id},null,8,["open","aria-label"]),a("div",Er,[a("div",Rr,[P(le,{text:B.id,url:B.row?B.row.ticket_url:B.items[0].url,class:"ticket-key feed__group-ticket"},null,8,["text","url"]),B.row||B.title?(r(),i("span",Tr,m(B.row?B.row.summary:B.title),1)):S("",!0)]),a("div",Ar,[a("span",{class:q(["feed__group-count",{"feed__group-count--new":B.unread}])},m(B.unread?B.unread+" new":B.items.length+(B.items.length===1?" event":" events")),3),a("span",Mr,m(B.kinds),1),a("span",Ir,m(B.when),1)])]),P(ve,{class:"feed__group-copy",query:{ws:h(w).workspace.id,kind:"thread",ref:B.id}},null,8,["query"])],8,Cr),B.open?(r(),i("ul",zr,[(r(!0),i(U,null,X(B.items,Q=>(r(),Y(Nt,{key:Q.id,item:Q,source:d(Q.source),fresh:f(Q),flash:u.value===Q.id,expanded:h(C).open.has(Q.id),onOpen:W[3]||(W[3]=Ye=>s("open",Ye)),onToggle:O,onSeen:V},null,8,["item","source","fresh","flash","expanded"]))),128))])):S("",!0)],2))),128)):(r(!0),i(U,{key:1},X(x.value,B=>(r(),Y(Nt,{key:B.id,item:B,source:d(B.source),fresh:f(B),flash:u.value===B.id,expanded:h(C).open.has(B.id),onOpen:W[4]||(W[4]=Q=>s("open",Q)),onToggle:O,onSeen:V},null,8,["item","source","fresh","flash","expanded"]))),128))])):(r(),i("p",xr," No changes yet. New comments, reviews and status changes show up here. "))]),_:1},8,["size-key"]))}}),Br=K(Dr,[["__scopeId","data-v-bbacc3b6"]]),Nr={id:"first-run",class:"island first-run","aria-labelledby":"first-run-title"},Pr={class:"first-run__text"},Wr=j({__name:"FirstRun",setup(e){const t=()=>ss("connectors");return(s,n)=>(r(),i("section",Nr,[n[1]||(n[1]=a("h2",{id:"first-run-title",class:"first-run__title"}," Whose Turn watches your tickets and pull requests and shows what is waiting on you. ",-1)),a("p",Pr,[a("b",null,m(h(w).workspace.name),1),n[0]||(n[0]=G(" has no sources yet, so there is nothing to watch. Connect a repository or a tracker. ",-1))]),a("div",{class:"first-run__actions"},[a("button",{type:"button",class:"btn btn--tonal",onClick:t},"Add a source")]),n[2]||(n[2]=a("p",{class:"first-run__text first-run__ai"},' Or ask Claude: "add my GitHub repository to Whose Turn." ',-1))]))}}),Ur=K(Wr,[["__scopeId","data-v-84359c2d"]]),Vr=new RegExp("(`[^`]{1,500}`)|(\\*\\*[^*]{1,500}\\*\\*)|(\\[[^\\]]{1,300}\\]\\(https?:\\/\\/[^)\\s]{1,2000}\\))|(https?:\\/\\/[^\\s<>()]{1,2000})|(@[A-Za-z0-9-]+(?: [A-Z][a-z]+)?)|((?<![A-Za-z0-9])\\*[^*\\s][^*]{0,500}\\*(?![A-Za-z0-9])|(?<![A-Za-z0-9])_[^_\\s][^_]{0,500}_(?![A-Za-z0-9]))","g"),Pt=(e,t)=>{const s=ut(t);return s?{type:"link",text:e,href:s}:{type:"text",text:e}},Fr=e=>{const t=e[0];if(e[1])return{type:"code",text:t.slice(1,-1)};if(e[2])return{type:"strong",text:t.slice(2,-2)};if(e[3]){const s=t.indexOf("](");return Pt(t.slice(1,s),t.slice(s+2,-1))}return e[4]?Pt(t,t):e[5]?{type:"mention",text:t}:{type:"em",text:t.slice(1,-1)}},Oe=e=>{const t=new RegExp(Vr),s=[];let n=0,o;for(;o=t.exec(e);)o.index>n&&s.push({type:"text",text:e.slice(n,o.index)}),s.push(Fr(o)),n=o.index+o[0].length;return n<e.length&&s.push({type:"text",text:e.slice(n)}),s},Hr=e=>{const t=String(e||"").replace(/<!--[\s\S]*?-->/g,"").split(`
|
|
6
|
-
`),s=[];let n=[],o=null;const l=()=>{n.length&&(s.push({type:"paragraph",lines:n.map(Oe)}),n=[]),o=null};for(let c=0;c<t.length;c++){const d=t[c];if(/^\s*```/.test(d)){l();const k=[];for(c++;c<t.length&&!/^\s*```/.test(t[c]);c++)k.push(t[c]);s.push({type:"fence",text:k.join(`
|
|
7
|
-
`)});continue}const y=d.match(/^(#{1,6})\s+(.*)$/);if(y){l(),s.push({type:"heading",level:y[1].length<=2?4:5,inline:Oe(y[2])});continue}const _=d.match(/^>\s?(.*)$/);if(_){l(),s.push({type:"quote",inline:Oe(_[1])});continue}const u=d.match(/^\s*([-*+]|\d+[.)])\s+(.*)$/);if(u){const k=o;n.length&&(l(),o=k);const f=/\d/.test(u[1]),p=o,v=p&&p.ordered===f?p:{type:"list",ordered:f,items:[]};v!==p&&s.push(v),o=v,v.items.push(Oe(u[2]));continue}if(!d.trim()){l();continue}o=null,n.push(d)}return l(),s},Be=(e,t,s="")=>{const n=document.createElement(e);return n.textContent=t,s&&(n.className=s),n},Lr=e=>{if(e.type==="text")return document.createTextNode(e.text);if(e.type==="link"){const t=Be("a",e.text);return t.setAttribute("href",e.href),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"),t}return e.type==="mention"?Be("span",e.text,"markdown-view__mention"):Be(e.type,e.text)},fs=(e,t)=>{e.forEach(s=>t.append(Lr(s)))},Qe=(e,t)=>{const s=document.createElement(e);return fs(t,s),s},qr=e=>{if(e.type==="fence"){const s=document.createElement("pre");return s.append(Be("code",e.text)),s}if(e.type==="heading")return Qe(`h${e.level}`,e.inline);if(e.type==="quote")return Qe("blockquote",e.inline);if(e.type==="list"){const s=document.createElement(e.ordered?"ol":"ul");return e.items.forEach(n=>s.append(Qe("li",n))),s}const t=document.createElement("p");return e.lines.forEach((s,n)=>{n&&t.append(document.createElement("br")),fs(s,t)}),t},jr=e=>{const t=document.createDocumentFragment();return Hr(e).forEach(s=>t.append(qr(s))),t},Yr=j({__name:"MarkdownView",props:{source:{default:""}},setup(e){const t=e,s=N(null);return Ms(()=>{s.value&&s.value.replaceChildren(jr(t.source))}),(n,o)=>(r(),i("div",{ref_key:"host",ref:s,class:"markdown-view"},null,512))}}),vs=K(Yr,[["__scopeId","data-v-dcf42e95"]]),Kr={class:"modal__card"},Xr={class:"modal__head"},Gr={id:"modal-title",class:"modal__title"},Jr=["href"],Zr=j({__name:"CommentModal",setup(e){const t=R(()=>C.modal),s=R(()=>t.value?[t.value.ref,t.value.kind,t.value.who].filter(Boolean).join(" · "):""),n=R(()=>t.value?ut(t.value.url):""),o=R(()=>{var d;const c=(w.workspace.connectors||[]).find(y=>{var _;return y.id===((_=t.value)==null?void 0:_.source)});return"Open in "+(c?c.label:(d=t.value)==null?void 0:d.source)}),l=()=>{C.modal=null};return(c,d)=>t.value?(r(),i("div",{key:0,class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",onClick:ee(l,["self"])},[a("div",Kr,[a("div",Xr,[a("h3",Gr,m(s.value),1),n.value?(r(),i("a",{key:0,class:"btn",href:n.value,target:"_blank",rel:"noopener"},m(o.value),9,Jr)):S("",!0),a("button",{type:"button",class:"btn",onClick:l},"Close")]),P(vs,{source:t.value.body||t.value.text||""},null,8,["source"])])])):S("",!0)}}),Qr=["aria-labelledby"],ei={class:"modal__card"},ti={class:"modal__head"},si=["id"],ni={key:0,class:"modal__foot"},oi=j({__name:"Modal",props:{title:{},labelId:{},flush:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const s=t;return(n,o)=>(r(),i("div",{class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":e.labelId,onClick:o[1]||(o[1]=ee(l=>s("close"),["self"]))},[a("div",ei,[a("div",ti,[a("h3",{id:e.labelId,class:"modal__title"},m(e.title),9,si),me(n.$slots,"head",{},void 0),a("button",{type:"button",class:"btn",onClick:o[0]||(o[0]=l=>s("close"))},"Close")]),a("div",{class:q(["modal__body",{"modal__body--flush":e.flush}])},[me(n.$slots,"default",{},void 0)],2),n.$slots.footer?(r(),i("div",ni,[me(n.$slots,"footer",{},void 0)])):S("",!0)])],8,Qr))}}),ms=K(oi,[["__scopeId","data-v-f2f8cfc9"]]),ai={class:"note-modal__summary"},li={key:0,class:"note-modal__facts"},ri={class:"note-modal__author"},ii={class:"note-modal__label",for:"note-text"},ci=["onKeydown"],di={key:1,class:"alert alert--inline",role:"alert"},ui=j({__name:"NoteModal",setup(e){const t=R(()=>w.turn.find(f=>f.row_id===C.note)),s=R(()=>w.marks.info[C.note]),n=R(()=>{var f;return((f=s.value)==null?void 0:f.note)||""}),o=N(""),l=N(""),c=N(null);Z(()=>C.note,async f=>{var p;f&&(o.value=n.value,l.value="",await _e(),(p=c.value)==null||p.focus())},{immediate:!0,flush:"post"});const d=()=>{C.note=""},y=async()=>{const f=o.value.replace(/\s+/g," ").trim();if(f===n.value){d();return}l.value=await we({notes:{[C.note]:f}}),l.value||d()},_=()=>{var p;const f=((p=s.value)==null?void 0:p.event)||"";d(),jn(f)},u=R(()=>{var f;return(f=s.value)==null?void 0:f.detail}),k=R(()=>{var f,p;return((f=u.value)==null?void 0:f.what)||((p=s.value)==null?void 0:p.outcome)||""});return(f,p)=>{var v,x;return h(C).note&&t.value?(r(),Y(ms,{key:0,title:t.value.key+" · "+((v=s.value)!=null&&v.auto?"Passed on":"Handled"),"label-id":"note-title",onClose:d},Ut({footer:te(()=>[a("button",{type:"button",class:"btn",onClick:d},m(n.value?"Cancel":"Skip"),1),a("button",{type:"button",class:"btn btn--tonal",onClick:y},"Save")]),default:te(()=>{var g,z,E,b,T,O;return[a("p",ai,m(t.value.summary),1),(g=s.value)!=null&&g.auto?(r(),i("dl",li,[p[5]||(p[5]=a("dt",null,"What happened",-1)),a("dd",null,m(k.value),1),(z=u.value)!=null&&z.assignee?(r(),i(U,{key:0},[p[1]||(p[1]=a("dt",null,"Assignee",-1)),a("dd",null,m(u.value.assignee),1)],64)):S("",!0),(E=u.value)!=null&&E.status?(r(),i(U,{key:1},[p[2]||(p[2]=a("dt",null,"Status",-1)),a("dd",null,m(u.value.status),1)],64)):S("",!0),(b=u.value)!=null&&b.summary?(r(),i(U,{key:2},[p[3]||(p[3]=a("dt",null,"Event",-1)),a("dd",null,m(u.value.summary),1)],64)):S("",!0),(T=u.value)!=null&&T.comment?(r(),i(U,{key:3},[p[4]||(p[4]=a("dt",null,"Comment",-1)),a("dd",null,[a("span",ri,m(u.value.comment.author)+":",1),G(" "+m(u.value.comment.text),1)])],64)):S("",!0),p[6]||(p[6]=a("dt",null,"When",-1)),a("dd",null,m(h(Le)(h(w).marks.handled[h(C).note]||"")),1)])):S("",!0),a("label",ii,m((O=s.value)!=null&&O.auto?"Your note on top":"Note")+" (optional)",1),be(a("textarea",{id:"note-text",ref_key:"field",ref:c,"onUpdate:modelValue":p[0]||(p[0]=V=>o.value=V),class:"input note-modal__text",rows:"3",maxlength:"200",placeholder:"Add a note…",onKeydown:ye(ee(y,["prevent"]),["enter"])},null,40,ci),[[$e,o.value]]),l.value?(r(),i("p",di,m(l.value),1)):S("",!0)]}),_:2},[(x=s.value)!=null&&x.auto?{name:"head",fn:te(()=>[s.value.event?(r(),i("button",{key:0,type:"button",class:"btn",onClick:_},"Open in feed")):S("",!0)]),key:"0"}:void 0]),1032,["title"])):S("",!0)}}}),hi=K(ui,[["__scopeId","data-v-6fc1670a"]]),pi={class:"modal__card feedback-sheet__card"},_i={class:"modal__head"},fi={class:"modal__meta"},vi=["aria-disabled"],mi={key:0,class:"alert"},yi={class:"sheet-form"},wi=["placeholder","onKeydown"],gi={key:0,class:"feedback-sheet__note"},ki={key:1,class:"feedback-sheet__note"},bi={key:2,class:"empty"},$i=["href"],xi={key:3,class:"feedback-sheet__reports"},Si=["href"],Ci={class:"feedback-sheet__report-title"},Ei={class:"timestamp"},Ri=j({__name:"FeedbackSheet",setup(e){const t=N(""),s=N(null),n=N(!1),o=N([]),l=N(null),c=N(""),d=N(!0),y=Ce("",1600),_=N([]),u=x=>"/report?id="+encodeURIComponent(x),k=()=>Ee("/api/feedback").then(x=>{d.value=x.configured,c.value=x.configured?"Linear · "+x.project:"not connected",_.value=x.reports||[]},()=>{o.value=[xe+"; past reports cannot be loaded."]}),f=()=>{C.feedback=!1},p=()=>{const x=t.value.trim();if(!x){o.value=["Write at least one line."];return}o.value=[],navigator.clipboard.writeText(x).then(()=>{y.value="sent"},()=>{y.value="failed"})},v=()=>{if(!d.value||n.value)return;const x=t.value.trim();if(!x){o.value=["Write at least one line."];return}n.value=!0,ce("/api/feedback",{text:x,from:"the window",ws:w.workspace.id,kind_ref:{kind:"workspace",ref:w.workspace.id}}).then(g=>{if(n.value=!1,g.error){o.value=dt(g.error);return}l.value=g.issue||null,t.value="",_.value=g.reports||_.value}).catch(g=>{n.value=!1,o.value=[ie(g,{refused:"Not sent",unreachable:tt})]})};return Z(()=>C.feedback,x=>{x&&(o.value=[],l.value=null,k().then(()=>_e(()=>{var g;return(g=s.value)==null?void 0:g.focus()})))}),(x,g)=>h(C).feedback?(r(),i("div",{key:0,class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"feedback-title",onClick:ee(f,["self"])},[a("div",pi,[a("div",_i,[g[1]||(g[1]=a("h3",{id:"feedback-title",class:"modal__title"},"Report a problem or a wish",-1)),a("span",fi,m(c.value),1),a("button",{type:"button",class:"btn btn--tonal","aria-disabled":!d.value||n.value,onClick:v},m(n.value?"Composing…":"Send"),9,vi),a("button",{type:"button",class:"btn",onClick:f},"Close")]),o.value.length?(r(),i("div",mi,m(o.value.join(" · ")),1)):S("",!0),a("div",yi,[be(a("textarea",{ref_key:"field",ref:s,"onUpdate:modelValue":g[0]||(g[0]=z=>t.value=z),class:"input feedback-sheet__text",rows:"5",placeholder:"Describe the problem or the wish in your own words."+(d.value?" Cmd+Enter sends.":""),autocomplete:"off",onKeydown:[ye(ee(v,["meta","prevent"]),["enter"]),ye(ee(v,["ctrl","prevent"]),["enter"])]},null,40,wi),[[$e,t.value]]),d.value?(r(),i("p",ki," An assistant turns it into a proper issue (title, kind, description) and files it in the Whose Turn backlog with this workspace's summary attached. ")):(r(),i("p",gi,[g[2]||(g[2]=G(" The maintainer's tracker is not connected on this machine, so nothing can be sent from here. Copy your remark and pass it on yourself. ",-1)),a("button",{type:"button",class:"btn",onClick:p},m(h(y)==="sent"?"Copied":h(y)==="failed"?"Could not copy":"Copy remark"),1)])),l.value?(r(),i("p",bi,[g[3]||(g[3]=G(" Filed as ",-1)),a("a",{href:u(l.value.identifier),target:"_blank",rel:"noopener"},m(l.value.identifier),9,$i),G(" · "+m(l.value.title),1)])):S("",!0),_.value.length?(r(),i("div",xi,[g[4]||(g[4]=a("h4",{class:"sheet-form__heading"},"Your reports",-1)),(r(!0),i(U,null,X(_.value,z=>(r(),i("div",{key:z.id,class:"feedback-sheet__report"},[a("a",{href:u(z.id),target:"_blank",rel:"noopener"},m(z.id),9,Si),a("span",Ci,m(z.title),1),a("span",{class:q(["pill",h(Re)("pill",h(nn)(z.outcome))])},m(z.state||"filed"),3),a("span",Ei,m(h(re)(z.changed_at||z.filed_at)),1)]))),128))])):S("",!0)])])])):S("",!0)}}),Ti=K(Ri,[["__scopeId","data-v-8e2792d9"]]),Ai={class:"field-row"},Mi={class:"field-row__label"},Ii={key:0,class:"field-row__check"},zi=["checked"],Oi=["aria-invalid","value"],Di={key:0,value:""},Bi=["value"],Ni=["value"],Pi={key:3,class:"field-row__inline"},Wi=["value"],Ui=["value"],Vi=["aria-invalid","value"],Fi=["aria-invalid","placeholder","value"],Hi={key:6,class:"field-row__error",role:"alert"},Li={key:7,class:"field-row__hint"},qi=j({__name:"FieldRow",props:et({spec:{},placeholder:{default:""},hint:{default:""},error:{default:""}},{modelValue:{type:[String,Array,Boolean]},modelModifiers:{}}),emits:et(["secret"],["update:modelValue"]),setup(e,{emit:t}){const s=e,n=t,o=Wt(e,"modelValue"),l=/^#[0-9a-f]{6}$/i,c=()=>String(o.value??""),d=()=>o.value||[],y=p=>{o.value=p},_=()=>o.value??s.spec.default??!1,u=p=>{o.value=p===(s.spec.default??!1)?void 0:p},k=p=>p.target.value,f=p=>y(p.split(",").map(v=>v.trim()).filter(Boolean));return(p,v)=>(r(),i("div",Ai,[a("label",Mi,m(e.spec.label)+m(e.spec.required?" *":""),1),e.spec.boolean?(r(),i("label",Ii,[a("input",{type:"checkbox",checked:_(),onChange:v[0]||(v[0]=x=>u(x.target.checked))},null,40,zi),G(" "+m(e.hint||e.spec.hint),1)])):e.spec.choices?(r(),i("select",{key:1,class:"input","aria-invalid":!!e.error,value:c(),onChange:v[1]||(v[1]=x=>y(k(x)))},[!e.spec.required&&!e.spec.choices.includes(c())?(r(),i("option",Di,"(default)")):S("",!0),c()&&!e.spec.choices.includes(c())?(r(),i("option",{key:1,value:c()},m(c()),9,Bi)):S("",!0),(r(!0),i(U,null,X(e.spec.choices,x=>(r(),i("option",{key:x,value:x},m(x),9,Ni))),128))],40,Oi)):e.spec.secret?(r(),i("input",{key:2,class:"input",type:"password",placeholder:"paste to replace",autocomplete:"off",onInput:v[2]||(v[2]=x=>n("secret",e.spec.key,k(x)))},null,32)):e.spec.colour?(r(),i("div",Pi,[a("input",{class:"input field-row__colour",type:"color",value:l.test(c())?c():"#888888",onInput:v[3]||(v[3]=x=>y(k(x)))},null,40,Wi),a("input",{class:"input",type:"text",placeholder:"#rrggbb",value:c(),onInput:v[4]||(v[4]=x=>y(k(x)))},null,40,Ui),a("button",{type:"button",class:"btn",onClick:v[5]||(v[5]=x=>y(""))},"None")])):e.spec.list?(r(),i("input",{key:4,class:"input",type:"text","aria-invalid":!!e.error,value:d().join(", "),onInput:v[6]||(v[6]=x=>f(k(x)))},null,40,Vi)):(r(),i("input",{key:5,class:"input",type:"text","aria-invalid":!!e.error,placeholder:e.placeholder,value:c(),onInput:v[7]||(v[7]=x=>y(k(x)))},null,40,Fi)),e.error?(r(),i("small",Hi,m(e.error),1)):S("",!0),!e.spec.boolean&&(e.hint||e.spec.hint)?(r(),i("small",Li,m(e.hint||e.spec.hint),1)):S("",!0)]))}}),ue=K(qi,[["__scopeId","data-v-33714840"]]),ji={class:"modal__card settings-sheet__card"},Yi={class:"modal__head"},Ki={class:"modal__meta"},Xi={key:0,class:"settings-sheet__dirty"},Gi={key:0,class:"settings-sheet__confirm",role:"alertdialog"},Ji={class:"settings-sheet__confirm-text"},Zi={key:1,class:"alert settings-sheet__alert",role:"alert"},Qi={key:2,class:"alert settings-sheet__alert"},ec={key:3,class:"settings-sheet__body"},tc={class:"settings-sheet__list"},sc=["aria-current","onClick"],nc={class:"sheet-form"},oc={key:0,class:"empty"},ac={ref:"connectors-head",class:"sheet-form__heading"},lc={class:"settings-sheet__connector-head"},rc={class:"settings-sheet__connector-name"},ic=["onClick"],cc={class:"settings-sheet__actions"},dc=["onClick"],uc={key:0,class:"settings-sheet__rules"},hc={class:"settings-sheet__rule-when"},pc={class:"settings-sheet__rule-then"},_c={key:1,class:"empty"},fc=j({__name:"SettingsSheet",setup(e){const t=N([]),s=N(0),n=N([]),o=N({workspace:[],theme:[],rules:[],statuses:[]}),l=N(""),c=N([]),d=N({}),y=new Map,_=N({}),u=N({}),k=N({}),f=Fe("connectors-head"),p=new Map,v=N(0),x=N(""),g=N(null),z=N(""),E=R(()=>C.settings&&!z.value&&(v.value>0||Rt(t.value)!==x.value)),b=A=>d.value[`workspaces[${s.value}].${A}`]||"",T=R(()=>{const A=$.value&&y.get(ze($.value));return A&&$.value&&A!==$.value.id?`Its to-dos and marks stay under the old id "${A}"; they do not follow the rename.`:""}),O={key:"id",label:"Source id"},V={key:"label",label:"Label"},$=R(()=>t.value[s.value]),F=R(()=>($.value&&u.value[$.value.id]||[]).map(A=>zn(A,_.value))),H=R(()=>$.value&&k.value[$.value.id]||[]),se=A=>n.value.find(D=>D.type===A.type)||{type:A.type,label:A.type,fields:[]},I=R(()=>t.value.map((A,D)=>({uid:ze(A),label:A.name||A.id||"Workspace "+(D+1)}))),W=R(()=>{var A;return(((A=$.value)==null?void 0:A.connectors)||[]).map(D=>({entry:D,uid:ze(D),spec:se(D)}))}),B=A=>{var M;const D=(M=w.workspaces.find(J=>J.id===A))==null?void 0:M.theme_seed;return D?`empty: ${D}, derived from the workspace id`:"empty derives one from the workspace id"},Q=(A,D)=>A[D],Ye=(A,D,M)=>{p.set(A,Object.assign(p.get(A)||{},{[D]:M})),v.value+=1},ys=(A,D,M)=>D==="id"?A.id=String(M??""):de(A,D,M),ws=()=>{t.value.push(Ct({id:"new-"+(t.value.length+1),name:"New workspace"})),s.value=t.value.length-1},gs=()=>{t.value.splice(s.value,1),s.value=Math.max(0,s.value-1)},ks=()=>{$.value&&(g.value={text:`Delete ${$.value.name||$.value.id}? Its to-dos and marks stay on disk.`,yes:"Delete",no:"Keep",run:gs})},bs=A=>{var D;return(D=$.value)==null?void 0:D.connectors.push({type:A.type})},$s=A=>{$.value&&(p.delete($.value.connectors[A]),$.value.connectors.splice(A,1))},xs=A=>{if(!$.value)return;const D=se($.value.connectors[A]).label;g.value={text:`Remove the ${D} source from ${$.value.name||$.value.id}?`,yes:"Remove",no:"Keep",run:()=>$s(A)}},Ss=()=>Ee("/api/config").then(A=>{z.value="",t.value=(A.workspaces||[]).map(Ct),n.value=A.connectors||[],o.value=A.fields,p.clear(),v.value=0,g.value=null,s.value=Math.max(0,t.value.findIndex(D=>D.id===w.workspace.id)),l.value=A.config_file||"",c.value=A.problems||[],d.value={},y.clear(),t.value.forEach(D=>y.set(ze(D),D.id)),_.value=A.facts||{},u.value=A.tables||{},k.value=A.table_warnings||{},x.value=Rt(t.value)}).catch(()=>{z.value=xe+"; settings cannot be loaded."}).then(_e).then(()=>{var A;C.settingsAt==="connectors"&&((A=f.value)==null||A.scrollIntoView({block:"start"})),C.settingsAt=""}),Ke=()=>{C.settings=!1},mt=()=>{g.value={text:"Discard changes?",yes:"Discard",no:"Keep editing",run:Ke}},yt=()=>E.value?mt():Ke(),wt=A=>{const D=g.value;g.value=null,A&&(D==null||D.run())},Cs=async()=>{try{const A=await ce("/api/config",{workspaces:t.value.map(D=>gn(D)),secrets:bn(t.value,p)});if(A.error){const D=on(A.error);d.value=Object.fromEntries(D.filter(M=>M.field!=="workspaces").map(M=>[M.field,M.description])),c.value=D.length?D.filter(M=>M.field==="workspaces").map(M=>M.description):dt(A.error),D.length&&!c.value.length&&(c.value=["Fix the marked fields; nothing was saved."]);return}Ke(),os()}catch(A){c.value=[ie(A,{unreachable:xe+"; your changes are kept, save again."})]}};return Z(E,A=>{C.settingsDirty=A},{immediate:!0}),Z(()=>C.settingsAsk,A=>{A&&(C.settingsAsk=!1,mt())}),Z(()=>C.settings,A=>{A&&Ss()}),(A,D)=>h(C).settings?(r(),i("div",{key:0,class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"settings-title",onClick:ee(yt,["self"])},[a("div",ji,[a("div",Yi,[D[2]||(D[2]=a("h3",{id:"settings-title",class:"modal__title"},"Settings",-1)),a("span",Ki,m(l.value),1),E.value?(r(),i("span",Xi,"Unsaved changes")):S("",!0),z.value?S("",!0):(r(),i("button",{key:1,type:"button",class:"btn btn--tonal",onClick:Cs},"Save")),a("button",{type:"button",class:"btn",onClick:yt},"Close")]),g.value?(r(),i("div",Gi,[a("span",Ji,m(g.value.text),1),a("button",{type:"button",class:"btn btn--danger",onClick:D[0]||(D[0]=M=>wt(!0))},m(g.value.yes),1),a("button",{type:"button",class:"btn",onClick:D[1]||(D[1]=M=>wt(!1))},m(g.value.no),1)])):S("",!0),z.value?(r(),i("div",Zi,m(z.value),1)):c.value.length?(r(),i("div",Qi,m(c.value.join(" · ")),1)):S("",!0),z.value?S("",!0):(r(),i("div",ec,[a("ul",tc,[(r(!0),i(U,null,X(I.value,(M,J)=>(r(),i("li",{key:M.uid},[a("button",{type:"button",class:"settings-sheet__workspace","aria-current":J===s.value,onClick:Ae=>s.value=J},m(M.label),9,sc)]))),128)),a("li",null,[a("button",{type:"button",class:"settings-sheet__workspace settings-sheet__workspace--add",onClick:ws}," + Add workspace ")])]),a("div",nc,[$.value?(r(),i(U,{key:1},[D[3]||(D[3]=a("h4",{class:"sheet-form__heading"},"Workspace",-1)),(r(!0),i(U,null,X(o.value.workspace,M=>(r(),Y(ue,{key:M.key,spec:M,hint:M.key==="id"?T.value:"",error:b(M.key),"model-value":Q($.value,M.key),"onUpdate:modelValue":J=>ys($.value,M.key,J)},null,8,["spec","hint","error","model-value","onUpdate:modelValue"]))),128)),D[4]||(D[4]=a("h4",{class:"sheet-form__heading"},"Theme",-1)),(r(!0),i(U,null,X(o.value.theme,M=>{var J;return r(),Y(ue,{key:M.key,spec:M,hint:M.key==="seed"&&!((J=$.value.theme)!=null&&J.seed)?B($.value.id):"","model-value":Q($.value.theme,M.key),"onUpdate:modelValue":Ae=>h(de)($.value.theme,M.key,Ae)},null,8,["spec","hint","model-value","onUpdate:modelValue"])}),128)),a("h4",ac,"Sources",512),(r(!0),i(U,null,X(W.value,({entry:M,spec:J,uid:Ae},gt)=>(r(),i("div",{key:Ae,class:"settings-sheet__connector"},[a("div",lc,[a("strong",rc,m(J.label),1),a("button",{type:"button",class:"btn btn--danger",onClick:oe=>xs(gt)}," Remove ",8,ic)]),P(ue,{spec:O,placeholder:J.type,hint:"only needed when one type appears twice","model-value":Q(M,"id"),"onUpdate:modelValue":oe=>h(de)(M,"id",oe)},null,8,["placeholder","model-value","onUpdate:modelValue"]),P(ue,{spec:V,placeholder:J.label,hint:"its name in the feed","model-value":Q(M,"label"),"onUpdate:modelValue":oe=>h(de)(M,"label",oe)},null,8,["placeholder","model-value","onUpdate:modelValue"]),(r(!0),i(U,null,X(J.fields,oe=>(r(),Y(ue,{key:oe.key,spec:oe,error:b("connectors["+gt+"]."+oe.key),"model-value":Q(M,oe.key),"onUpdate:modelValue":Xe=>h(de)(M,oe.key,Xe),onSecret:(Xe,Es)=>Ye(M,Xe,Es)},null,8,["spec","error","model-value","onUpdate:modelValue","onSecret"]))),128))]))),128)),a("div",cc,[(r(!0),i(U,null,X(n.value,M=>(r(),i("button",{key:M.type,type:"button",class:"btn",onClick:J=>bs(M)}," + Add "+m(M.label)+" source ",9,dc))),128))]),D[5]||(D[5]=a("h4",{class:"sheet-form__heading"},"Rules",-1)),(r(!0),i(U,null,X(o.value.rules,M=>(r(),Y(ue,{key:M.key,spec:M,error:b("rules."+M.key),"model-value":Q($.value.rules,M.key),"onUpdate:modelValue":J=>h(de)($.value.rules,M.key,J)},null,8,["spec","error","model-value","onUpdate:modelValue"]))),128)),(r(!0),i(U,null,X(o.value.statuses,M=>(r(),Y(ue,{key:M.key,spec:M,"model-value":Q($.value.rules.statuses,M.key),"onUpdate:modelValue":J=>h(de)($.value.rules.statuses,M.key,J)},null,8,["spec","model-value","onUpdate:modelValue"]))),128)),D[6]||(D[6]=a("h4",{class:"sheet-form__heading"},"Whose turn table",-1)),D[7]||(D[7]=a("p",{class:"settings-sheet__rules-note"}," The rows in force, top to bottom: the first one that fits decides. Read-only here: ask Claude to change them. ",-1)),(r(!0),i(U,null,X(H.value,M=>(r(),i("p",{key:M,class:"settings-sheet__rules-warning"},m(M),1))),128)),F.value.length?(r(),i("ol",uc,[(r(!0),i(U,null,X(F.value,(M,J)=>(r(),i("li",{key:J,class:"settings-sheet__rule"},[a("span",hc,m(M.when),1),a("span",pc,m(M.then),1)]))),128))])):(r(),i("p",_c,"Save the workspace to see its rows.")),a("div",{class:"settings-sheet__actions"},[a("button",{type:"button",class:"btn btn--danger",onClick:ks}," Delete workspace ")])],64)):(r(),i("p",oc,"No workspaces yet. Add one on the left."))])]))])])):S("",!0)}}),vc=K(fc,[["__scopeId","data-v-8253a01a"]]),mc={class:"modal__meta"},yc={key:0,class:"alert",role:"alert"},wc={class:"whats-new__head"},gc={class:"whats-new__name"},kc={key:0,class:"whats-new__date"},bc={key:1,class:"whats-new__tag whats-new__tag--running"},$c={key:2,class:"whats-new__tag"},xc={key:1,class:"whats-new__empty"},Sc=j({__name:"WhatsNewSheet",setup(e){const{changelog:t,problem:s,unseen:n,load:o,markSeen:l}=_t(),c=N([]),d=()=>{C.whatsNew=!1};return Z(()=>C.whatsNew,async y=>{y&&(t.value||await o(),c.value=n.value.map(_=>_.version),l())}),(y,_)=>h(C).whatsNew?(r(),Y(ms,{key:0,title:"What's new","label-id":"whats-new-title",flush:"",onClose:d},Ut({default:te(()=>{var u;return[h(s)?(r(),i("div",yc,m(h(s)),1)):S("",!0),(r(!0),i(U,null,X((u=h(t))==null?void 0:u.versions,k=>{var f;return r(),i("article",{key:k.version,class:"whats-new__version"},[a("header",wc,[a("h4",gc,m(k.version),1),k.date?(r(),i("span",kc,m(k.date),1)):S("",!0),k.version===((f=h(t))==null?void 0:f.current)?(r(),i("span",bc,"Running")):S("",!0),c.value.includes(k.version)?(r(),i("span",$c,"New")):S("",!0)]),k.sections.length?(r(),Y(vs,{key:0,source:h(ho)(k)},null,8,["source"])):(r(),i("p",xc,"No notes for this version."))])}),128))]}),_:2},[h(t)?{name:"head",fn:te(()=>[a("span",mc,"Running "+m(h(t).current),1)]),key:"0"}:void 0]),1024)):S("",!0)}}),Cc=K(Sc,[["__scopeId","data-v-78394e08"]]),Ec={class:"app__shell"},Rc=["inert"],Tc={id:"wt",class:"dashboard dashboard--fit"},Ac=["inert"],Mc={class:"dashboard__main"},Ic=j({__name:"App",setup(e){const t=R(()=>!!w.workspace.id&&!w.workspace.connectors.length),{size:s}=pt(()=>`${w.workspace.id}:feed`),n=R(()=>s.value===null?void 0:{"--feed-width":s.value+"px"}),o=_t(),l=R(()=>ns.value!==null);oo(l),ao(l),Z(Je,fn,{flush:"post"});const c={light:{fill:"#d8e2ff",ink:"#001a41",dot:"#2c5697"},dark:{fill:"#2b4678",ink:"#d8e2ff",dot:"#adc6ff"}},d=R(()=>{const{id:y,name:_}=w.workspace;if(!y)return null;const u=Je.value,k=c[He.value?"dark":"light"],f={fill:u["--md-primary-container"]||k.fill,ink:u["--md-on-primary-container"]||k.ink,dot:u["--md-primary"]||k.dot};return"data:image/svg+xml,"+encodeURIComponent(to(rs({id:y,name:_},it),f))});return Ys(d),ct("Escape",Wn,{target:document}),rt(()=>{Pn(),o.load()}),(y,_)=>(r(),i("div",{class:"app",style:Ne(h(Je))},[P(To,{inert:l.value,onSettings:_[0]||(_[0]=u=>h(C).settings=!0),onWhatsNew:_[1]||(_[1]=u=>h(C).whatsNew=!0)},null,8,["inert"]),a("div",Ec,[P(Qo,{inert:l.value,onReport:_[2]||(_[2]=u=>h(C).feedback=!0)},null,8,["inert"]),h(Tt).length?(r(),i("div",{key:0,class:"alert",inert:l.value},[G(m(h(Tt).join(" · "))+" ",1),a("button",{type:"button",class:"alert__action",onClick:_[3]||(_[3]=u=>h(ss)())},"Open Settings")],8,Rc)):S("",!0),a("div",Tc,[_[5]||(_[5]=a("canvas",{id:"backdrop",class:"dashboard__backdrop","aria-hidden":"true"},null,-1)),P(wa,{inert:l.value},null,8,["inert"]),t.value?(r(),Y(Ur,{key:0,inert:l.value},null,8,["inert"])):(r(),i("div",{key:1,class:"dashboard__layout",style:Ne(n.value),inert:l.value},[a("div",Mc,[P(gl,{class:"dashboard__move"}),P(Dl,{class:"dashboard__todo"}),P(Yl,{class:"dashboard__waiting"})]),P(Br,{class:"dashboard__feed",onOpen:_[4]||(_[4]=u=>h(C).modal=u)})],12,Ac)),P(Ti),P(vc),P(Cc),P(Zr),P(hi)])])],4))}}),zc=K(Ic,[["__scopeId","data-v-580c2b4a"]]);Is(zc).mount("#app");Ln();yn();
|