annotask 0.0.3 → 0.0.4
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/README.md +15 -0
- package/dist/{chunk-X72ZX6VB.js → chunk-L3WQI25M.js} +45 -1
- package/dist/chunk-L3WQI25M.js.map +1 -0
- package/dist/chunk-O73PGHAA.js +1007 -0
- package/dist/chunk-O73PGHAA.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/shell/assets/index-2wHGkDAz.css +1 -0
- package/dist/shell/assets/index-DuKNjQaz.js +59 -0
- package/dist/shell/index.html +2 -2
- package/dist/webpack-loader.js +2 -1
- package/dist/webpack-loader.js.map +1 -1
- package/dist/webpack.d.ts +2 -0
- package/dist/webpack.js +22 -9
- package/dist/webpack.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-X72ZX6VB.js.map +0 -1
- package/dist/shell/assets/index-BcsdXOsJ.js +0 -59
- package/dist/shell/assets/index-DwbhEo-C.css +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/**
|
|
2
|
+
* @vue/shared v3.5.31
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function as(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Oe={},Hn=[],Ut=()=>{},zo=()=>!1,ll=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sl=e=>e.startsWith("onUpdate:"),nt=Object.assign,us=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},uu=Object.prototype.hasOwnProperty,Fe=(e,t)=>uu.call(e,t),fe=Array.isArray,Bn=e=>ki(e)==="[object Map]",ol=e=>ki(e)==="[object Set]",Ns=e=>ki(e)==="[object Date]",he=e=>typeof e=="function",je=e=>typeof e=="string",At=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",Go=e=>(Ie(e)||he(e))&&he(e.then)&&he(e.catch),Xo=Object.prototype.toString,ki=e=>Xo.call(e),cu=e=>ki(e).slice(8,-1),qo=e=>ki(e)==="[object Object]",rl=e=>je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,oi=as(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),al=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},du=/-\w/g,Et=al(e=>e.replace(du,t=>t.slice(1).toUpperCase())),fu=/\B([A-Z])/g,gn=al(e=>e.replace(fu,"-$1").toLowerCase()),Jo=al(e=>e.charAt(0).toUpperCase()+e.slice(1)),_l=al(e=>e?`on${Jo(e)}`:""),jt=(e,t)=>!Object.is(e,t),Di=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Zo=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Vs;const ul=()=>Vs||(Vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],i=je(l)?gu(l):Le(l);if(i)for(const s in i)t[s]=i[s]}return t}else if(je(e)||Ie(e))return e}const pu=/;(?![^(]*\))/g,hu=/:([^]+)/,vu=/\/\*[^]*?\*\//g;function gu(e){const t={};return e.replace(vu,"").split(pu).forEach(n=>{if(n){const l=n.split(hu);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function J(e){let t="";if(je(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const l=J(e[n]);l&&(t+=l+" ")}else if(Ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const mu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yu=as(mu);function Qo(e){return!!e||e===""}function bu(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=Ci(e[l],t[l]);return n}function Ci(e,t){if(e===t)return!0;let n=Ns(e),l=Ns(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=At(e),l=At(t),n||l)return e===t;if(n=fe(e),l=fe(t),n||l)return n&&l?bu(e,t):!1;if(n=Ie(e),l=Ie(t),n||l){if(!n||!l)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const o in e){const r=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(r&&!u||!r&&u||!Ci(e[o],t[o]))return!1}}return String(e)===String(t)}function er(e,t){return e.findIndex(n=>Ci(n,t))}const tr=e=>!!(e&&e.__v_isRef===!0),O=e=>je(e)?e:e==null?"":fe(e)||Ie(e)&&(e.toString===Xo||!he(e.toString))?tr(e)?O(e.value):JSON.stringify(e,nr,2):String(e),nr=(e,t)=>tr(t)?nr(e,t.value):Bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,i],s)=>(n[xl(l,s)+" =>"]=i,n),{})}:ol(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>xl(n))}:At(t)?xl(t):Ie(t)&&!fe(t)&&!qo(t)?String(t):t,xl=(e,t="")=>{var n;return At(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.31
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let yt;class wu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=yt,!t&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[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)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=yt;try{return yt=this,t()}finally{yt=n}}}on(){++this._on===1&&(this.prevScope=yt,yt=this)}off(){this._on>0&&--this._on===0&&(yt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function _u(){return yt}let Me;const kl=new WeakSet;class ir{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,yt&&yt.active&&yt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kl.has(this)&&(kl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||sr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Hs(this),or(this);const t=Me,n=Ft;Me=this,Ft=!0;try{return this.fn()}finally{rr(this),Me=t,Ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ps(t);this.deps=this.depsTail=void 0,Hs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nl(this)&&this.run()}get dirty(){return Nl(this)}}let lr=0,ri,ai;function sr(e,t=!1){if(e.flags|=8,t){e.next=ai,ai=e;return}e.next=ri,ri=e}function ds(){lr++}function fs(){if(--lr>0)return;if(ai){let t=ai;for(ai=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ri;){let t=ri;for(ri=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function or(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function rr(e){let t,n=e.depsTail,l=n;for(;l;){const i=l.prevDep;l.version===-1?(l===n&&(n=i),ps(l),xu(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=n}function Nl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ar(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ar(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===hi)||(e.globalVersion=hi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nl(e))))return;e.flags|=2;const t=e.dep,n=Me,l=Ft;Me=e,Ft=!0;try{or(e);const i=e.fn(e._value);(t.version===0||jt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Me=n,Ft=l,rr(e),e.flags&=-3}}function ps(e,t=!1){const{dep:n,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)ps(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function xu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ft=!0;const ur=[];function ln(){ur.push(Ft),Ft=!1}function sn(){const e=ur.pop();Ft=e===void 0?!0:e}function Hs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Me;Me=void 0;try{t()}finally{Me=n}}}let hi=0;class ku{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 hs{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(!Me||!Ft||Me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Me)n=this.activeLink=new ku(Me,this),Me.deps?(n.prevDep=Me.depsTail,Me.depsTail.nextDep=n,Me.depsTail=n):Me.deps=Me.depsTail=n,cr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=Me.depsTail,n.nextDep=void 0,Me.depsTail.nextDep=n,Me.depsTail=n,Me.deps===n&&(Me.deps=l)}return n}trigger(t){this.version++,hi++,this.notify(t)}notify(t){ds();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fs()}}}function cr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)cr(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ui=new WeakMap,An=Symbol(""),Vl=Symbol(""),vi=Symbol("");function rt(e,t,n){if(Ft&&Me){let l=Ui.get(e);l||Ui.set(e,l=new Map);let i=l.get(n);i||(l.set(n,i=new hs),i.map=l,i.key=n),i.track()}}function en(e,t,n,l,i,s){const o=Ui.get(e);if(!o){hi++;return}const r=u=>{u&&u.trigger()};if(ds(),t==="clear")o.forEach(r);else{const u=fe(e),d=u&&rl(n);if(u&&n==="length"){const a=Number(l);o.forEach((f,v)=>{(v==="length"||v===vi||!At(v)&&v>=a)&&r(f)})}else switch((n!==void 0||o.has(void 0))&&r(o.get(n)),d&&r(o.get(vi)),t){case"add":u?d&&r(o.get("length")):(r(o.get(An)),Bn(e)&&r(o.get(Vl)));break;case"delete":u||(r(o.get(An)),Bn(e)&&r(o.get(Vl)));break;case"set":Bn(e)&&r(o.get(An));break}}fs()}function Cu(e,t){const n=Ui.get(e);return n&&n.get(t)}function In(e){const t=Se(e);return t===e?t:(rt(t,"iterate",vi),kt(e)?t:t.map(It))}function cl(e){return rt(e=Se(e),"iterate",vi),e}function Vt(e,t){return on(e)?Kn($n(e)?It(t):t):It(t)}const Au={__proto__:null,[Symbol.iterator](){return Cl(this,Symbol.iterator,e=>Vt(this,e))},concat(...e){return In(this).concat(...e.map(t=>fe(t)?In(t):t))},entries(){return Cl(this,"entries",e=>(e[1]=Vt(this,e[1]),e))},every(e,t){return Gt(this,"every",e,t,void 0,arguments)},filter(e,t){return Gt(this,"filter",e,t,n=>n.map(l=>Vt(this,l)),arguments)},find(e,t){return Gt(this,"find",e,t,n=>Vt(this,n),arguments)},findIndex(e,t){return Gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gt(this,"findLast",e,t,n=>Vt(this,n),arguments)},findLastIndex(e,t){return Gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Al(this,"includes",e)},indexOf(...e){return Al(this,"indexOf",e)},join(e){return In(this).join(e)},lastIndexOf(...e){return Al(this,"lastIndexOf",e)},map(e,t){return Gt(this,"map",e,t,void 0,arguments)},pop(){return qn(this,"pop")},push(...e){return qn(this,"push",e)},reduce(e,...t){return Bs(this,"reduce",e,t)},reduceRight(e,...t){return Bs(this,"reduceRight",e,t)},shift(){return qn(this,"shift")},some(e,t){return Gt(this,"some",e,t,void 0,arguments)},splice(...e){return qn(this,"splice",e)},toReversed(){return In(this).toReversed()},toSorted(e){return In(this).toSorted(e)},toSpliced(...e){return In(this).toSpliced(...e)},unshift(...e){return qn(this,"unshift",e)},values(){return Cl(this,"values",e=>Vt(this,e))}};function Cl(e,t,n){const l=cl(e),i=l[t]();return l!==e&&!kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const $u=Array.prototype;function Gt(e,t,n,l,i,s){const o=cl(e),r=o!==e&&!kt(e),u=o[t];if(u!==$u[t]){const f=u.apply(e,s);return r?It(f):f}let d=n;o!==e&&(r?d=function(f,v){return n.call(this,Vt(e,f),v,e)}:n.length>2&&(d=function(f,v){return n.call(this,f,v,e)}));const a=u.call(o,d,l);return r&&i?i(a):a}function Bs(e,t,n,l){const i=cl(e),s=i!==e&&!kt(e);let o=n,r=!1;i!==e&&(s?(r=l.length===0,o=function(d,a,f){return r&&(r=!1,d=Vt(e,d)),n.call(this,d,Vt(e,a),f,e)}):n.length>3&&(o=function(d,a,f){return n.call(this,d,a,f,e)}));const u=i[t](o,...l);return r?Vt(e,u):u}function Al(e,t,n){const l=Se(e);rt(l,"iterate",vi);const i=l[t](...n);return(i===-1||i===!1)&&dl(n[0])?(n[0]=Se(n[0]),l[t](...n)):i}function qn(e,t,n=[]){ln(),ds();const l=Se(e)[t].apply(e,n);return fs(),sn(),l}const Su=as("__proto__,__v_isRef,__isVue"),dr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(At));function Tu(e){At(e)||(e=String(e));const t=Se(this);return rt(t,"has",e),t.hasOwnProperty(e)}class fr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return l===(i?s?Nu:gr:s?vr:hr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const o=fe(t);if(!i){let u;if(o&&(u=Au[n]))return u;if(n==="hasOwnProperty")return Tu}const r=Reflect.get(t,n,Ke(t)?t:l);if((At(n)?dr.has(n):Su(n))||(i||rt(t,"get",n),s))return r;if(Ke(r)){const u=o&&rl(n)?r:r.value;return i&&Ie(u)?Bl(u):u}return Ie(r)?i?Bl(r):gs(r):r}}class pr extends fr{constructor(t=!1){super(!1,t)}set(t,n,l,i){let s=t[n];const o=fe(t)&&rl(n);if(!this._isShallow){const d=on(s);if(!kt(l)&&!on(l)&&(s=Se(s),l=Se(l)),!o&&Ke(s)&&!Ke(l))return d||(s.value=l),!0}const r=o?Number(n)<t.length:Fe(t,n),u=Reflect.set(t,n,l,Ke(t)?t:i);return t===Se(i)&&(r?jt(l,s)&&en(t,"set",n,l):en(t,"add",n,l)),u}deleteProperty(t,n){const l=Fe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&l&&en(t,"delete",n,void 0),i}has(t,n){const l=Reflect.has(t,n);return(!At(n)||!dr.has(n))&&rt(t,"has",n),l}ownKeys(t){return rt(t,"iterate",fe(t)?"length":An),Reflect.ownKeys(t)}}class Eu extends fr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fu=new pr,Iu=new Eu,Pu=new pr(!0);const Hl=e=>e,Oi=e=>Reflect.getPrototypeOf(e);function Ou(e,t,n){return function(...l){const i=this.__v_raw,s=Se(i),o=Bn(s),r=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=i[e](...l),a=n?Hl:t?Kn:It;return!t&&rt(s,"iterate",u?Vl:An),nt(Object.create(d),{next(){const{value:f,done:v}=d.next();return v?{value:f,done:v}:{value:r?[a(f[0]),a(f[1])]:a(f),done:v}}})}}function Ri(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ru(e,t){const n={get(i){const s=this.__v_raw,o=Se(s),r=Se(i);e||(jt(i,r)&&rt(o,"get",i),rt(o,"get",r));const{has:u}=Oi(o),d=t?Hl:e?Kn:It;if(u.call(o,i))return d(s.get(i));if(u.call(o,r))return d(s.get(r));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&rt(Se(i),"iterate",An),i.size},has(i){const s=this.__v_raw,o=Se(s),r=Se(i);return e||(jt(i,r)&&rt(o,"has",i),rt(o,"has",r)),i===r?s.has(i):s.has(i)||s.has(r)},forEach(i,s){const o=this,r=o.__v_raw,u=Se(r),d=t?Hl:e?Kn:It;return!e&&rt(u,"iterate",An),r.forEach((a,f)=>i.call(s,d(a),d(f),o))}};return nt(n,e?{add:Ri("add"),set:Ri("set"),delete:Ri("delete"),clear:Ri("clear")}:{add(i){const s=Se(this),o=Oi(s),r=Se(i),u=!t&&!kt(i)&&!on(i)?r:i;return o.has.call(s,u)||jt(i,u)&&o.has.call(s,i)||jt(r,u)&&o.has.call(s,r)||(s.add(u),en(s,"add",u,u)),this},set(i,s){!t&&!kt(s)&&!on(s)&&(s=Se(s));const o=Se(this),{has:r,get:u}=Oi(o);let d=r.call(o,i);d||(i=Se(i),d=r.call(o,i));const a=u.call(o,i);return o.set(i,s),d?jt(s,a)&&en(o,"set",i,s):en(o,"add",i,s),this},delete(i){const s=Se(this),{has:o,get:r}=Oi(s);let u=o.call(s,i);u||(i=Se(i),u=o.call(s,i)),r&&r.call(s,i);const d=s.delete(i);return u&&en(s,"delete",i,void 0),d},clear(){const i=Se(this),s=i.size!==0,o=i.clear();return s&&en(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Ou(i,e,t)}),n}function vs(e,t){const n=Ru(e,t);return(l,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Fe(n,i)&&i in l?n:l,i,s)}const Mu={get:vs(!1,!1)},Lu={get:vs(!1,!0)},Du={get:vs(!0,!1)};const hr=new WeakMap,vr=new WeakMap,gr=new WeakMap,Nu=new WeakMap;function Vu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hu(e){return e.__v_skip||!Object.isExtensible(e)?0:Vu(cu(e))}function gs(e){return on(e)?e:ms(e,!1,Fu,Mu,hr)}function Bu(e){return ms(e,!1,Pu,Lu,vr)}function Bl(e){return ms(e,!0,Iu,Du,gr)}function ms(e,t,n,l,i){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Hu(e);if(s===0)return e;const o=i.get(e);if(o)return o;const r=new Proxy(e,s===2?l:n);return i.set(e,r),r}function $n(e){return on(e)?$n(e.__v_raw):!!(e&&e.__v_isReactive)}function on(e){return!!(e&&e.__v_isReadonly)}function kt(e){return!!(e&&e.__v_isShallow)}function dl(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function ju(e){return!Fe(e,"__v_skip")&&Object.isExtensible(e)&&Zo(e,"__v_skip",!0),e}const It=e=>Ie(e)?gs(e):e,Kn=e=>Ie(e)?Bl(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function U(e){return Uu(e,!1)}function Uu(e,t){return Ke(e)?e:new Yu(e,t)}class Yu{constructor(t,n){this.dep=new hs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:It(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||kt(t)||on(t);t=l?t:Se(t),jt(t,n)&&(this._rawValue=t,this._value=l?t:It(t),this.dep.trigger())}}function Z(e){return Ke(e)?e.value:e}const Ku={get:(e,t,n)=>t==="__v_raw"?e:Z(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const i=e[t];return Ke(i)&&!Ke(n)?(i.value=n,!0):Reflect.set(e,t,n,l)}};function mr(e){return $n(e)?e:new Proxy(e,Ku)}class Wu{constructor(t,n,l){this._object=t,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0,this._key=At(n)?n:String(n),this._raw=Se(t);let i=!0,s=t;if(!fe(t)||At(this._key)||!rl(this._key))do i=!dl(s)||kt(s);while(i&&(s=s.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=Z(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ke(this._raw[this._key])){const n=this._object[this._key];if(Ke(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Cu(this._raw,this._key)}}class zu{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 Gu(e,t,n){return Ke(e)?e:he(e)?new zu(e):Ie(e)&&arguments.length>1?Xu(e,t,n):U(e)}function Xu(e,t,n){return new Wu(e,t,n)}class qu{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new hs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=hi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Me!==this)return sr(this,!0),!0}get value(){const t=this.dep.track();return ar(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ju(e,t,n=!1){let l,i;return he(e)?l=e:(l=e.get,i=e.set),new qu(l,i,n)}const Mi={},Yi=new WeakMap;let kn;function Zu(e,t=!1,n=kn){if(n){let l=Yi.get(n);l||Yi.set(n,l=[]),l.push(e)}}function Qu(e,t,n=Oe){const{immediate:l,deep:i,once:s,scheduler:o,augmentJob:r,call:u}=n,d=A=>i?A:kt(A)||i===!1||i===0?tn(A,1):tn(A);let a,f,v,h,g=!1,k=!1;if(Ke(e)?(f=()=>e.value,g=kt(e)):$n(e)?(f=()=>d(e),g=!0):fe(e)?(k=!0,g=e.some(A=>$n(A)||kt(A)),f=()=>e.map(A=>{if(Ke(A))return A.value;if($n(A))return d(A);if(he(A))return u?u(A,2):A()})):he(e)?t?f=u?()=>u(e,2):e:f=()=>{if(v){ln();try{v()}finally{sn()}}const A=kn;kn=a;try{return u?u(e,3,[h]):e(h)}finally{kn=A}}:f=Ut,t&&i){const A=f,F=i===!0?1/0:i;f=()=>tn(A(),F)}const $=_u(),R=()=>{a.stop(),$&&$.active&&us($.effects,a)};if(s&&t){const A=t;t=(...F)=>{A(...F),R()}}let w=k?new Array(e.length).fill(Mi):Mi;const b=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const F=a.run();if(i||g||(k?F.some((N,Y)=>jt(N,w[Y])):jt(F,w))){v&&v();const N=kn;kn=a;try{const Y=[F,w===Mi?void 0:k&&w[0]===Mi?[]:w,h];w=F,u?u(t,3,Y):t(...Y)}finally{kn=N}}}else a.run()};return r&&r(b),a=new ir(f),a.scheduler=o?()=>o(b,!1):b,h=A=>Zu(A,!1,a),v=a.onStop=()=>{const A=Yi.get(a);if(A){if(u)u(A,4);else for(const F of A)F();Yi.delete(a)}},t?l?b(!0):w=a.run():o?o(b.bind(null,!0),!0):a.run(),R.pause=a.pause.bind(a),R.resume=a.resume.bind(a),R.stop=R,R}function tn(e,t=1/0,n){if(t<=0||!Ie(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))tn(e.value,t,n);else if(fe(e))for(let l=0;l<e.length;l++)tn(e[l],t,n);else if(ol(e)||Bn(e))e.forEach(l=>{tn(l,t,n)});else if(qo(e)){for(const l in e)tn(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&tn(e[l],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.31
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Ai(e,t,n,l){try{return l?e(...l):e()}catch(i){fl(i,t,n)}}function Kt(e,t,n,l){if(he(e)){const i=Ai(e,t,n,l);return i&&Go(i)&&i.catch(s=>{fl(s,t,n)}),i}if(fe(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Kt(e[s],t,n,l));return i}}function fl(e,t,n,l=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Oe;if(t){let r=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const a=r.ec;if(a){for(let f=0;f<a.length;f++)if(a[f](e,u,d)===!1)return}r=r.parent}if(s){ln(),Ai(s,null,10,[e,u,d]),sn();return}}ec(e,n,i,l,o)}function ec(e,t,n,l=!0,i=!1){if(i)throw e;console.error(e)}const ht=[];let Lt=-1;const jn=[];let dn=null,Mn=0;const yr=Promise.resolve();let Ki=null;function br(e){const t=Ki||yr;return e?t.then(this?e.bind(this):e):t}function tc(e){let t=Lt+1,n=ht.length;for(;t<n;){const l=t+n>>>1,i=ht[l],s=gi(i);s<e||s===e&&i.flags&2?t=l+1:n=l}return t}function ys(e){if(!(e.flags&1)){const t=gi(e),n=ht[ht.length-1];!n||!(e.flags&2)&&t>=gi(n)?ht.push(e):ht.splice(tc(t),0,e),e.flags|=1,wr()}}function wr(){Ki||(Ki=yr.then(xr))}function nc(e){fe(e)?jn.push(...e):dn&&e.id===-1?dn.splice(Mn+1,0,e):e.flags&1||(jn.push(e),e.flags|=1),wr()}function js(e,t,n=Lt+1){for(;n<ht.length;n++){const l=ht[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;ht.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function _r(e){if(jn.length){const t=[...new Set(jn)].sort((n,l)=>gi(n)-gi(l));if(jn.length=0,dn){dn.push(...t);return}for(dn=t,Mn=0;Mn<dn.length;Mn++){const n=dn[Mn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}dn=null,Mn=0}}const gi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xr(e){try{for(Lt=0;Lt<ht.length;Lt++){const t=ht[Lt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ai(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Lt<ht.length;Lt++){const t=ht[Lt];t&&(t.flags&=-2)}Lt=-1,ht.length=0,_r(),Ki=null,(ht.length||jn.length)&&xr()}}let Ct=null,kr=null;function Wi(e){const t=Ct;return Ct=e,kr=e&&e.type.__scopeId||null,t}function ic(e,t=Ct,n){if(!t||e._n)return e;const l=(...i)=>{l._d&&to(-1);const s=Wi(t);let o;try{o=e(...i)}finally{Wi(s),l._d&&to(1)}return o};return l._n=!0,l._c=!0,l._d=!0,l}function Pe(e,t){if(Ct===null)return e;const n=gl(Ct),l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,r,u=Oe]=t[i];s&&(he(s)&&(s={mounted:s,updated:s}),s.deep&&tn(o),l.push({dir:s,instance:n,value:o,oldValue:void 0,arg:r,modifiers:u}))}return e}function mn(e,t,n,l){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const r=i[o];s&&(r.oldValue=s[o].value);let u=r.dir[l];u&&(ln(),Kt(u,n,8,[e.el,r,e,t]),sn())}}function lc(e,t){if(vt){let n=vt.provides;const l=vt.parent&&vt.parent.provides;l===n&&(n=vt.provides=Object.create(l)),n[e]=t}}function Ni(e,t,n=!1){const l=id();if(l||Un){let i=Un?Un._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&he(t)?t.call(l&&l.proxy):t}}const sc=Symbol.for("v-scx"),oc=()=>Ni(sc);function ot(e,t,n){return Cr(e,t,n)}function Cr(e,t,n=Oe){const{immediate:l,deep:i,flush:s,once:o}=n,r=nt({},n),u=t&&l||!t&&s!=="post";let d;if(yi){if(s==="sync"){const h=oc();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=Ut,h.resume=Ut,h.pause=Ut,h}}const a=vt;r.call=(h,g,k)=>Kt(h,a,g,k);let f=!1;s==="post"?r.scheduler=h=>{st(h,a&&a.suspense)}:s!=="sync"&&(f=!0,r.scheduler=(h,g)=>{g?h():ys(h)}),r.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,a&&(h.id=a.uid,h.i=a))};const v=Qu(e,t,r);return yi&&(d?d.push(v):u&&v()),v}function rc(e,t,n){const l=this.proxy,i=je(e)?e.includes(".")?Ar(l,e):()=>l[e]:e.bind(l,l);let s;he(t)?s=t:(s=t.handler,n=t);const o=$i(this),r=Cr(i,s.bind(l),n);return o(),r}function Ar(e,t){const n=t.split(".");return()=>{let l=e;for(let i=0;i<n.length&&l;i++)l=l[n[i]];return l}}const $r=Symbol("_vte"),ac=e=>e.__isTeleport,ui=e=>e&&(e.disabled||e.disabled===""),uc=e=>e&&(e.defer||e.defer===""),Us=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ys=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jl=(e,t)=>{const n=e&&e.to;return je(n)?t?t(n):null:n},Sr={name:"Teleport",__isTeleport:!0,process(e,t,n,l,i,s,o,r,u,d){const{mc:a,pc:f,pbc:v,o:{insert:h,querySelector:g,createText:k,createComment:$}}=d,R=ui(t.props);let{shapeFlag:w,children:b,dynamicChildren:A}=t;if(e==null){const F=t.el=k(""),N=t.anchor=k("");h(F,n,l),h(N,n,l);const Y=(M,X)=>{w&16&&a(b,M,X,i,s,o,r,u)},le=()=>{const M=t.target=jl(t.props,g),X=Ul(M,t,k,h);M&&(o!=="svg"&&Us(M)?o="svg":o!=="mathml"&&Ys(M)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(M),R||(Y(M,X),Vi(t,!1)))};R&&(Y(n,N),Vi(t,!0)),uc(t.props)||s&&s.pendingBranch?(t.el.__isMounted=!1,st(()=>{t.el.__isMounted===!1&&(le(),delete t.el.__isMounted)},s)):le()}else{t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,N=t.target=e.target,Y=t.targetAnchor=e.targetAnchor;if(e.el.__isMounted===!1){st(()=>{Sr.process(e,t,n,l,i,s,o,r,u,d)},s);return}const le=ui(e.props),M=le?n:N,X=le?F:Y;if(o==="svg"||Us(N)?o="svg":(o==="mathml"||Ys(N))&&(o="mathml"),A?(v(e.dynamicChildren,A,M,i,s,o,r),xs(e,t,!0)):u||f(e,t,M,X,i,s,o,r,!1),R)le?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Li(t,n,F,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=jl(t.props,g);te&&Li(t,te,null,d,0)}else le&&Li(t,N,Y,d,1);Vi(t,R)}},remove(e,t,n,{um:l,o:{remove:i}},s){const{shapeFlag:o,children:r,anchor:u,targetStart:d,targetAnchor:a,target:f,props:v}=e;if(f&&(i(d),i(a)),s&&i(u),o&16){const h=s||!ui(v);for(let g=0;g<r.length;g++){const k=r[g];l(k,t,n,h,!!k.dynamicChildren)}}},move:Li,hydrate:cc};function Li(e,t,n,{o:{insert:l},m:i},s=2){s===0&&l(e.targetAnchor,t,n);const{el:o,anchor:r,shapeFlag:u,children:d,props:a}=e,f=s===2;if(f&&l(o,t,n),(!f||ui(a))&&u&16)for(let v=0;v<d.length;v++)i(d[v],t,n,2);f&&l(r,t,n)}function cc(e,t,n,l,i,s,{o:{nextSibling:o,parentNode:r,querySelector:u,insert:d,createText:a}},f){function v($,R){let w=R;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,$._lpa=t.targetAnchor&&o(t.targetAnchor);break}}w=o(w)}}function h($,R){R.anchor=f(o($),R,r($),n,l,i,s)}const g=t.target=jl(t.props,u),k=ui(t.props);if(g){const $=g._lpa||g.firstChild;t.shapeFlag&16&&(k?(h(e,t),v(g,$),t.targetAnchor||Ul(g,t,a,d,r(e)===g?e:null)):(t.anchor=o(e),v(g,$),t.targetAnchor||Ul(g,t,a,d),f($&&o($),t,g,n,l,i,s))),Vi(t,k)}else k&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const dc=Sr;function Vi(e,t){const n=e.ctx;if(n&&n.ut){let l,i;for(t?(l=e.el,i=e.anchor):(l=e.targetStart,i=e.targetAnchor);l&&l!==i;)l.nodeType===1&&l.setAttribute("data-v-owner",n.uid),l=l.nextSibling;n.ut()}}function Ul(e,t,n,l,i=null){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[$r]=o,e&&(l(s,e,i),l(o,e,i)),o}const fc=Symbol("_leaveCb");function bs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,bs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function it(e,t){return he(e)?nt({name:e.name},t,{setup:e}):e}function Tr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ks(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const zi=new WeakMap;function ci(e,t,n,l,i=!1){if(fe(e)){e.forEach((k,$)=>ci(k,t&&(fe(t)?t[$]:t),n,l,i));return}if(di(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ci(e,t,n,l.component.subTree);return}const s=l.shapeFlag&4?gl(l.component):l.el,o=i?null:s,{i:r,r:u}=e,d=t&&t.r,a=r.refs===Oe?r.refs={}:r.refs,f=r.setupState,v=Se(f),h=f===Oe?zo:k=>Ks(a,k)?!1:Fe(v,k),g=(k,$)=>!($&&Ks(a,$));if(d!=null&&d!==u){if(Ws(t),je(d))a[d]=null,h(d)&&(f[d]=null);else if(Ke(d)){const k=t;g(d,k.k)&&(d.value=null),k.k&&(a[k.k]=null)}}if(he(u))Ai(u,r,12,[o,a]);else{const k=je(u),$=Ke(u);if(k||$){const R=()=>{if(e.f){const w=k?h(u)?f[u]:a[u]:g()||!e.k?u.value:a[e.k];if(i)fe(w)&&us(w,s);else if(fe(w))w.includes(s)||w.push(s);else if(k)a[u]=[s],h(u)&&(f[u]=a[u]);else{const b=[s];g(u,e.k)&&(u.value=b),e.k&&(a[e.k]=b)}}else k?(a[u]=o,h(u)&&(f[u]=o)):$&&(g(u,e.k)&&(u.value=o),e.k&&(a[e.k]=o))};if(o){const w=()=>{R(),zi.delete(e)};w.id=-1,zi.set(e,w),st(w,n)}else Ws(e),R()}}}function Ws(e){const t=zi.get(e);t&&(t.flags|=8,zi.delete(e))}ul().requestIdleCallback;ul().cancelIdleCallback;const di=e=>!!e.type.__asyncLoader,Er=e=>e.type.__isKeepAlive;function pc(e,t){Fr(e,"a",t)}function hc(e,t){Fr(e,"da",t)}function Fr(e,t,n=vt){const l=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(pl(t,l,n),n){let i=n.parent;for(;i&&i.parent;)Er(i.parent.vnode)&&vc(l,t,n,i),i=i.parent}}function vc(e,t,n,l){const i=pl(t,e,l,!0);En(()=>{us(l[t],i)},n)}function pl(e,t,n=vt,l=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{ln();const r=$i(n),u=Kt(t,n,e,o);return r(),sn(),u});return l?i.unshift(s):i.push(s),s}}const an=e=>(t,n=vt)=>{(!yi||e==="sp")&&pl(e,(...l)=>t(...l),n)},gc=an("bm"),Gn=an("m"),mc=an("bu"),yc=an("u"),bc=an("bum"),En=an("um"),wc=an("sp"),_c=an("rtg"),xc=an("rtc");function kc(e,t=vt){pl("ec",e,t)}const Cc=Symbol.for("v-ndc");function ve(e,t,n,l){let i;const s=n,o=fe(e);if(o||je(e)){const r=o&&$n(e);let u=!1,d=!1;r&&(u=!kt(e),d=on(e),e=cl(e)),i=new Array(e.length);for(let a=0,f=e.length;a<f;a++)i[a]=t(u?d?Kn(It(e[a])):It(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,s)}else if(Ie(e))if(e[Symbol.iterator])i=Array.from(e,(r,u)=>t(r,u,void 0,s));else{const r=Object.keys(e);i=new Array(r.length);for(let u=0,d=r.length;u<d;u++){const a=r[u];i[u]=t(e[a],a,u,s)}}else i=[];return i}const Yl=e=>e?Zr(e)?gl(e):Yl(e.parent):null,fi=nt(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=>Yl(e.parent),$root:e=>Yl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Pr(e),$forceUpdate:e=>e.f||(e.f=()=>{ys(e.update)}),$nextTick:e=>e.n||(e.n=br.bind(e.proxy)),$watch:e=>rc.bind(e)}),$l=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Fe(e,t),Ac={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:i,props:s,accessCache:o,type:r,appContext:u}=e;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if($l(l,t))return o[t]=1,l[t];if(i!==Oe&&Fe(i,t))return o[t]=2,i[t];if(Fe(s,t))return o[t]=3,s[t];if(n!==Oe&&Fe(n,t))return o[t]=4,n[t];Kl&&(o[t]=0)}}const d=fi[t];let a,f;if(d)return t==="$attrs"&&rt(e.attrs,"get",""),d(e);if((a=r.__cssModules)&&(a=a[t]))return a;if(n!==Oe&&Fe(n,t))return o[t]=4,n[t];if(f=u.config.globalProperties,Fe(f,t))return f[t]},set({_:e},t,n){const{data:l,setupState:i,ctx:s}=e;return $l(i,t)?(i[t]=n,!0):l!==Oe&&Fe(l,t)?(l[t]=n,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:i,props:s,type:o}},r){let u;return!!(n[r]||e!==Oe&&r[0]!=="$"&&Fe(e,r)||$l(t,r)||Fe(s,r)||Fe(l,r)||Fe(fi,r)||Fe(i.config.globalProperties,r)||(u=o.__cssModules)&&u[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zs(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Kl=!0;function $c(e){const t=Pr(e),n=e.proxy,l=e.ctx;Kl=!1,t.beforeCreate&&Gs(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:r,provide:u,inject:d,created:a,beforeMount:f,mounted:v,beforeUpdate:h,updated:g,activated:k,deactivated:$,beforeDestroy:R,beforeUnmount:w,destroyed:b,unmounted:A,render:F,renderTracked:N,renderTriggered:Y,errorCaptured:le,serverPrefetch:M,expose:X,inheritAttrs:te,components:pe,directives:ge,filters:ye}=t;if(d&&Sc(d,l,null),o)for(const be in o){const se=o[be];he(se)&&(l[be]=se.bind(n))}if(i){const be=i.call(n,n);Ie(be)&&(e.data=gs(be))}if(Kl=!0,s)for(const be in s){const se=s[be],xe=he(se)?se.bind(n,n):he(se.get)?se.get.bind(n,n):Ut,B=!he(se)&&he(se.set)?se.set.bind(n):Ut,ie=re({get:xe,set:B});Object.defineProperty(l,be,{enumerable:!0,configurable:!0,get:()=>ie.value,set:ee=>ie.value=ee})}if(r)for(const be in r)Ir(r[be],l,n,be);if(u){const be=he(u)?u.call(n):u;Reflect.ownKeys(be).forEach(se=>{lc(se,be[se])})}a&&Gs(a,e,"c");function Te(be,se){fe(se)?se.forEach(xe=>be(xe.bind(n))):se&&be(se.bind(n))}if(Te(gc,f),Te(Gn,v),Te(mc,h),Te(yc,g),Te(pc,k),Te(hc,$),Te(kc,le),Te(xc,N),Te(_c,Y),Te(bc,w),Te(En,A),Te(wc,M),fe(X))if(X.length){const be=e.exposed||(e.exposed={});X.forEach(se=>{Object.defineProperty(be,se,{get:()=>n[se],set:xe=>n[se]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Ut&&(e.render=F),te!=null&&(e.inheritAttrs=te),pe&&(e.components=pe),ge&&(e.directives=ge),M&&Tr(e)}function Sc(e,t,n=Ut){fe(e)&&(e=Wl(e));for(const l in e){const i=e[l];let s;Ie(i)?"default"in i?s=Ni(i.from||l,i.default,!0):s=Ni(i.from||l):s=Ni(i),Ke(s)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[l]=s}}function Gs(e,t,n){Kt(fe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ir(e,t,n,l){let i=l.includes(".")?Ar(n,l):()=>n[l];if(je(e)){const s=t[e];he(s)&&ot(i,s)}else if(he(e))ot(i,e.bind(n));else if(Ie(e))if(fe(e))e.forEach(s=>Ir(s,t,n,l));else{const s=he(e.handler)?e.handler.bind(n):t[e.handler];he(s)&&ot(i,s,e)}}function Pr(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,r=s.get(t);let u;return r?u=r:!i.length&&!n&&!l?u=t:(u={},i.length&&i.forEach(d=>Gi(u,d,o,!0)),Gi(u,t,o)),Ie(t)&&s.set(t,u),u}function Gi(e,t,n,l=!1){const{mixins:i,extends:s}=t;s&&Gi(e,s,n,!0),i&&i.forEach(o=>Gi(e,o,n,!0));for(const o in t)if(!(l&&o==="expose")){const r=Tc[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Tc={data:Xs,props:qs,emits:qs,methods:ni,computed:ni,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:ni,directives:ni,watch:Fc,provide:Xs,inject:Ec};function Xs(e,t){return t?e?function(){return nt(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function Ec(e,t){return ni(Wl(e),Wl(t))}function Wl(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pt(e,t){return e?[...new Set([].concat(e,t))]:t}function ni(e,t){return e?nt(Object.create(null),e,t):t}function qs(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:nt(Object.create(null),zs(e),zs(t??{})):t}function Fc(e,t){if(!e)return t;if(!t)return e;const n=nt(Object.create(null),e);for(const l in t)n[l]=pt(e[l],t[l]);return n}function Or(){return{app:null,config:{isNativeTag:zo,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 Ic=0;function Pc(e,t){return function(l,i=null){he(l)||(l=nt({},l)),i!=null&&!Ie(i)&&(i=null);const s=Or(),o=new WeakSet,r=[];let u=!1;const d=s.app={_uid:Ic++,_component:l,_props:i,_container:null,_context:s,_instance:null,version:ud,get config(){return s.config},set config(a){},use(a,...f){return o.has(a)||(a&&he(a.install)?(o.add(a),a.install(d,...f)):he(a)&&(o.add(a),a(d,...f))),d},mixin(a){return s.mixins.includes(a)||s.mixins.push(a),d},component(a,f){return f?(s.components[a]=f,d):s.components[a]},directive(a,f){return f?(s.directives[a]=f,d):s.directives[a]},mount(a,f,v){if(!u){const h=d._ceVNode||et(l,i);return h.appContext=s,v===!0?v="svg":v===!1&&(v=void 0),e(h,a,v),u=!0,d._container=a,a.__vue_app__=d,gl(h.component)}},onUnmount(a){r.push(a)},unmount(){u&&(Kt(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,f){return s.provides[a]=f,d},runWithContext(a){const f=Un;Un=d;try{return a()}finally{Un=f}}};return d}}let Un=null;const Oc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function Rc(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||Oe;let i=n;const s=t.startsWith("update:"),o=s&&Oc(l,t.slice(7));o&&(o.trim&&(i=n.map(a=>je(a)?a.trim():a)),o.number&&(i=n.map(cs)));let r,u=l[r=_l(t)]||l[r=_l(Et(t))];!u&&s&&(u=l[r=_l(gn(t))]),u&&Kt(u,e,6,i);const d=l[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Kt(d,e,6,i)}}const Mc=new WeakMap;function Rr(e,t,n=!1){const l=n?Mc:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const s=e.emits;let o={},r=!1;if(!he(e)){const u=d=>{const a=Rr(d,t,!0);a&&(r=!0,nt(o,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!r?(Ie(e)&&l.set(e,null),null):(fe(s)?s.forEach(u=>o[u]=null):nt(o,s),Ie(e)&&l.set(e,o),o)}function hl(e,t){return!e||!ll(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,gn(t))||Fe(e,t))}function Js(e){const{type:t,vnode:n,proxy:l,withProxy:i,propsOptions:[s],slots:o,attrs:r,emit:u,render:d,renderCache:a,props:f,data:v,setupState:h,ctx:g,inheritAttrs:k}=e,$=Wi(e);let R,w;try{if(n.shapeFlag&4){const A=i||l,F=A;R=Ht(d.call(F,A,a,f,h,v,g)),w=r}else{const A=t;R=Ht(A.length>1?A(f,{attrs:r,slots:o,emit:u}):A(f,null)),w=t.props?r:Lc(r)}}catch(A){pi.length=0,fl(A,e,1),R=et(hn)}let b=R;if(w&&k!==!1){const A=Object.keys(w),{shapeFlag:F}=b;A.length&&F&7&&(s&&A.some(sl)&&(w=Dc(w,s)),b=Wn(b,w,!1,!0))}return n.dirs&&(b=Wn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&bs(b,n.transition),R=b,Wi($),R}const Lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||ll(n))&&((t||(t={}))[n]=e[n]);return t},Dc=(e,t)=>{const n={};for(const l in e)(!sl(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function Nc(e,t,n){const{props:l,children:i,component:s}=e,{props:o,children:r,patchFlag:u}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return l?Zs(l,o,d):!!o;if(u&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const v=a[f];if(Mr(o,l,v)&&!hl(d,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===o?!1:l?o?Zs(l,o,d):!0:!!o;return!1}function Zs(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const s=l[i];if(Mr(t,e,s)&&!hl(n,s))return!0}return!1}function Mr(e,t,n){const l=e[n],i=t[n];return n==="style"&&Ie(l)&&Ie(i)?!Ci(l,i):l!==i}function Vc({vnode:e,parent:t,suspense:n},l){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=l,e=i),i===e)(e=t.vnode).el=l,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=l)}const Lr={},Dr=()=>Object.create(Lr),Nr=e=>Object.getPrototypeOf(e)===Lr;function Hc(e,t,n,l=!1){const i={},s=Dr();e.propsDefaults=Object.create(null),Vr(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=l?i:Bu(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Bc(e,t,n,l){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,r=Se(i),[u]=e.propsOptions;let d=!1;if((l||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let v=a[f];if(hl(e.emitsOptions,v))continue;const h=t[v];if(u)if(Fe(s,v))h!==s[v]&&(s[v]=h,d=!0);else{const g=Et(v);i[g]=zl(u,r,g,h,e,!1)}else h!==s[v]&&(s[v]=h,d=!0)}}}else{Vr(e,t,i,s)&&(d=!0);let a;for(const f in r)(!t||!Fe(t,f)&&((a=gn(f))===f||!Fe(t,a)))&&(u?n&&(n[f]!==void 0||n[a]!==void 0)&&(i[f]=zl(u,r,f,void 0,e,!0)):delete i[f]);if(s!==r)for(const f in s)(!t||!Fe(t,f))&&(delete s[f],d=!0)}d&&en(e.attrs,"set","")}function Vr(e,t,n,l){const[i,s]=e.propsOptions;let o=!1,r;if(t)for(let u in t){if(oi(u))continue;const d=t[u];let a;i&&Fe(i,a=Et(u))?!s||!s.includes(a)?n[a]=d:(r||(r={}))[a]=d:hl(e.emitsOptions,u)||(!(u in l)||d!==l[u])&&(l[u]=d,o=!0)}if(s){const u=Se(n),d=r||Oe;for(let a=0;a<s.length;a++){const f=s[a];n[f]=zl(i,u,f,d[f],e,!Fe(d,f))}}return o}function zl(e,t,n,l,i,s){const o=e[n];if(o!=null){const r=Fe(o,"default");if(r&&l===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&he(u)){const{propsDefaults:d}=i;if(n in d)l=d[n];else{const a=$i(i);l=d[n]=u.call(null,t),a()}}else l=u;i.ce&&i.ce._setProp(n,l)}o[0]&&(s&&!r?l=!1:o[1]&&(l===""||l===gn(n))&&(l=!0))}return l}const jc=new WeakMap;function Hr(e,t,n=!1){const l=n?jc:t.propsCache,i=l.get(e);if(i)return i;const s=e.props,o={},r=[];let u=!1;if(!he(e)){const a=f=>{u=!0;const[v,h]=Hr(f,t,!0);nt(o,v),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!u)return Ie(e)&&l.set(e,Hn),Hn;if(fe(s))for(let a=0;a<s.length;a++){const f=Et(s[a]);Qs(f)&&(o[f]=Oe)}else if(s)for(const a in s){const f=Et(a);if(Qs(f)){const v=s[a],h=o[f]=fe(v)||he(v)?{type:v}:nt({},v),g=h.type;let k=!1,$=!0;if(fe(g))for(let R=0;R<g.length;++R){const w=g[R],b=he(w)&&w.name;if(b==="Boolean"){k=!0;break}else b==="String"&&($=!1)}else k=he(g)&&g.name==="Boolean";h[0]=k,h[1]=$,(k||Fe(h,"default"))&&r.push(f)}}const d=[o,r];return Ie(e)&&l.set(e,d),d}function Qs(e){return e[0]!=="$"&&!oi(e)}const ws=e=>e==="_"||e==="_ctx"||e==="$stable",_s=e=>fe(e)?e.map(Ht):[Ht(e)],Uc=(e,t,n)=>{if(t._n)return t;const l=ic((...i)=>_s(t(...i)),n);return l._c=!1,l},Br=(e,t,n)=>{const l=e._ctx;for(const i in e){if(ws(i))continue;const s=e[i];if(he(s))t[i]=Uc(i,s,l);else if(s!=null){const o=_s(s);t[i]=()=>o}}},jr=(e,t)=>{const n=_s(t);e.slots.default=()=>n},Ur=(e,t,n)=>{for(const l in t)(n||!ws(l))&&(e[l]=t[l])},Yc=(e,t,n)=>{const l=e.slots=Dr();if(e.vnode.shapeFlag&32){const i=t._;i?(Ur(l,t,n),n&&Zo(l,"_",i,!0)):Br(t,l)}else t&&jr(e,t)},Kc=(e,t,n)=>{const{vnode:l,slots:i}=e;let s=!0,o=Oe;if(l.shapeFlag&32){const r=t._;r?n&&r===1?s=!1:Ur(i,t,n):(s=!t.$stable,Br(t,i)),o=t}else t&&(jr(e,t),o={default:1});if(s)for(const r in i)!ws(r)&&o[r]==null&&delete i[r]},st=qc;function Wc(e){return zc(e)}function zc(e,t){const n=ul();n.__VUE__=!0;const{insert:l,remove:i,patchProp:s,createElement:o,createText:r,createComment:u,setText:d,setElementText:a,parentNode:f,nextSibling:v,setScopeId:h=Ut,insertStaticContent:g}=e,k=(m,x,E,V=null,T=null,D=null,W=void 0,z=null,G=!!x.dynamicChildren)=>{if(m===x)return;m&&!Jn(m,x)&&(V=q(m),ee(m,T,D,!0),m=null),x.patchFlag===-2&&(G=!1,x.dynamicChildren=null);const{type:H,ref:ue,shapeFlag:Q}=x;switch(H){case vl:$(m,x,E,V);break;case hn:R(m,x,E,V);break;case Hi:m==null&&w(x,E,V,W);break;case ne:pe(m,x,E,V,T,D,W,z,G);break;default:Q&1?F(m,x,E,V,T,D,W,z,G):Q&6?ge(m,x,E,V,T,D,W,z,G):(Q&64||Q&128)&&H.process(m,x,E,V,T,D,W,z,G,P)}ue!=null&&T?ci(ue,m&&m.ref,D,x||m,!x):ue==null&&m&&m.ref!=null&&ci(m.ref,null,D,m,!0)},$=(m,x,E,V)=>{if(m==null)l(x.el=r(x.children),E,V);else{const T=x.el=m.el;x.children!==m.children&&d(T,x.children)}},R=(m,x,E,V)=>{m==null?l(x.el=u(x.children||""),E,V):x.el=m.el},w=(m,x,E,V)=>{[m.el,m.anchor]=g(m.children,x,E,V,m.el,m.anchor)},b=({el:m,anchor:x},E,V)=>{let T;for(;m&&m!==x;)T=v(m),l(m,E,V),m=T;l(x,E,V)},A=({el:m,anchor:x})=>{let E;for(;m&&m!==x;)E=v(m),i(m),m=E;i(x)},F=(m,x,E,V,T,D,W,z,G)=>{if(x.type==="svg"?W="svg":x.type==="math"&&(W="mathml"),m==null)N(x,E,V,T,D,W,z,G);else{const H=m.el&&m.el._isVueCE?m.el:null;try{H&&H._beginPatch(),M(m,x,T,D,W,z,G)}finally{H&&H._endPatch()}}},N=(m,x,E,V,T,D,W,z)=>{let G,H;const{props:ue,shapeFlag:Q,transition:oe,dirs:de}=m;if(G=m.el=o(m.type,D,ue&&ue.is,ue),Q&8?a(G,m.children):Q&16&&le(m.children,G,null,V,T,Sl(m,D),W,z),de&&mn(m,null,V,"created"),Y(G,m,m.scopeId,W,V),ue){for(const Ee in ue)Ee!=="value"&&!oi(Ee)&&s(G,Ee,null,ue[Ee],D,V);"value"in ue&&s(G,"value",null,ue.value,D),(H=ue.onVnodeBeforeMount)&&Rt(H,V,m)}de&&mn(m,null,V,"beforeMount");const ke=Gc(T,oe);ke&&oe.beforeEnter(G),l(G,x,E),((H=ue&&ue.onVnodeMounted)||ke||de)&&st(()=>{try{H&&Rt(H,V,m),ke&&oe.enter(G),de&&mn(m,null,V,"mounted")}finally{}},T)},Y=(m,x,E,V,T)=>{if(E&&h(m,E),V)for(let D=0;D<V.length;D++)h(m,V[D]);if(T){let D=T.subTree;if(x===D||Wr(D.type)&&(D.ssContent===x||D.ssFallback===x)){const W=T.vnode;Y(m,W,W.scopeId,W.slotScopeIds,T.parent)}}},le=(m,x,E,V,T,D,W,z,G=0)=>{for(let H=G;H<m.length;H++){const ue=m[H]=z?qt(m[H]):Ht(m[H]);k(null,ue,x,E,V,T,D,W,z)}},M=(m,x,E,V,T,D,W)=>{const z=x.el=m.el;let{patchFlag:G,dynamicChildren:H,dirs:ue}=x;G|=m.patchFlag&16;const Q=m.props||Oe,oe=x.props||Oe;let de;if(E&&yn(E,!1),(de=oe.onVnodeBeforeUpdate)&&Rt(de,E,x,m),ue&&mn(x,m,E,"beforeUpdate"),E&&yn(E,!0),(Q.innerHTML&&oe.innerHTML==null||Q.textContent&&oe.textContent==null)&&a(z,""),H?X(m.dynamicChildren,H,z,E,V,Sl(x,T),D):W||se(m,x,z,null,E,V,Sl(x,T),D,!1),G>0){if(G&16)te(z,Q,oe,E,T);else if(G&2&&Q.class!==oe.class&&s(z,"class",null,oe.class,T),G&4&&s(z,"style",Q.style,oe.style,T),G&8){const ke=x.dynamicProps;for(let Ee=0;Ee<ke.length;Ee++){const $e=ke[Ee],Ne=Q[$e],We=oe[$e];(We!==Ne||$e==="value")&&s(z,$e,Ne,We,T,E)}}G&1&&m.children!==x.children&&a(z,x.children)}else!W&&H==null&&te(z,Q,oe,E,T);((de=oe.onVnodeUpdated)||ue)&&st(()=>{de&&Rt(de,E,x,m),ue&&mn(x,m,E,"updated")},V)},X=(m,x,E,V,T,D,W)=>{for(let z=0;z<x.length;z++){const G=m[z],H=x[z],ue=G.el&&(G.type===ne||!Jn(G,H)||G.shapeFlag&198)?f(G.el):E;k(G,H,ue,null,V,T,D,W,!0)}},te=(m,x,E,V,T)=>{if(x!==E){if(x!==Oe)for(const D in x)!oi(D)&&!(D in E)&&s(m,D,x[D],null,T,V);for(const D in E){if(oi(D))continue;const W=E[D],z=x[D];W!==z&&D!=="value"&&s(m,D,z,W,T,V)}"value"in E&&s(m,"value",x.value,E.value,T)}},pe=(m,x,E,V,T,D,W,z,G)=>{const H=x.el=m?m.el:r(""),ue=x.anchor=m?m.anchor:r("");let{patchFlag:Q,dynamicChildren:oe,slotScopeIds:de}=x;de&&(z=z?z.concat(de):de),m==null?(l(H,E,V),l(ue,E,V),le(x.children||[],E,ue,T,D,W,z,G)):Q>0&&Q&64&&oe&&m.dynamicChildren&&m.dynamicChildren.length===oe.length?(X(m.dynamicChildren,oe,E,T,D,W,z),(x.key!=null||T&&x===T.subTree)&&xs(m,x,!0)):se(m,x,E,ue,T,D,W,z,G)},ge=(m,x,E,V,T,D,W,z,G)=>{x.slotScopeIds=z,m==null?x.shapeFlag&512?T.ctx.activate(x,E,V,W,G):ye(x,E,V,T,D,W,G):De(m,x,G)},ye=(m,x,E,V,T,D,W)=>{const z=m.component=nd(m,V,T);if(Er(m)&&(z.ctx.renderer=P),ld(z,!1,W),z.asyncDep){if(T&&T.registerDep(z,Te,W),!m.el){const G=z.subTree=et(hn);R(null,G,x,E),m.placeholder=G.el}}else Te(z,m,x,E,T,D,W)},De=(m,x,E)=>{const V=x.component=m.component;if(Nc(m,x,E))if(V.asyncDep&&!V.asyncResolved){be(V,x,E);return}else V.next=x,V.update();else x.el=m.el,V.vnode=x},Te=(m,x,E,V,T,D,W)=>{const z=()=>{if(m.isMounted){let{next:Q,bu:oe,u:de,parent:ke,vnode:Ee}=m;{const ut=Yr(m);if(ut){Q&&(Q.el=Ee.el,be(m,Q,W)),ut.asyncDep.then(()=>{st(()=>{m.isUnmounted||H()},T)});return}}let $e=Q,Ne;yn(m,!1),Q?(Q.el=Ee.el,be(m,Q,W)):Q=Ee,oe&&Di(oe),(Ne=Q.props&&Q.props.onVnodeBeforeUpdate)&&Rt(Ne,ke,Q,Ee),yn(m,!0);const We=Js(m),lt=m.subTree;m.subTree=We,k(lt,We,f(lt.el),q(lt),m,T,D),Q.el=We.el,$e===null&&Vc(m,We.el),de&&st(de,T),(Ne=Q.props&&Q.props.onVnodeUpdated)&&st(()=>Rt(Ne,ke,Q,Ee),T)}else{let Q;const{el:oe,props:de}=x,{bm:ke,m:Ee,parent:$e,root:Ne,type:We}=m,lt=di(x);yn(m,!1),ke&&Di(ke),!lt&&(Q=de&&de.onVnodeBeforeMount)&&Rt(Q,$e,x),yn(m,!0);{Ne.ce&&Ne.ce._hasShadowRoot()&&Ne.ce._injectChildStyle(We,m.parent?m.parent.type:void 0);const ut=m.subTree=Js(m);k(null,ut,E,V,m,T,D),x.el=ut.el}if(Ee&&st(Ee,T),!lt&&(Q=de&&de.onVnodeMounted)){const ut=x;st(()=>Rt(Q,$e,ut),T)}(x.shapeFlag&256||$e&&di($e.vnode)&&$e.vnode.shapeFlag&256)&&m.a&&st(m.a,T),m.isMounted=!0,x=E=V=null}};m.scope.on();const G=m.effect=new ir(z);m.scope.off();const H=m.update=G.run.bind(G),ue=m.job=G.runIfDirty.bind(G);ue.i=m,ue.id=m.uid,G.scheduler=()=>ys(ue),yn(m,!0),H()},be=(m,x,E)=>{x.component=m;const V=m.vnode.props;m.vnode=x,m.next=null,Bc(m,x.props,V,E),Kc(m,x.children,E),ln(),js(m),sn()},se=(m,x,E,V,T,D,W,z,G=!1)=>{const H=m&&m.children,ue=m?m.shapeFlag:0,Q=x.children,{patchFlag:oe,shapeFlag:de}=x;if(oe>0){if(oe&128){B(H,Q,E,V,T,D,W,z,G);return}else if(oe&256){xe(H,Q,E,V,T,D,W,z,G);return}}de&8?(ue&16&&Xe(H,T,D),Q!==H&&a(E,Q)):ue&16?de&16?B(H,Q,E,V,T,D,W,z,G):Xe(H,T,D,!0):(ue&8&&a(E,""),de&16&&le(Q,E,V,T,D,W,z,G))},xe=(m,x,E,V,T,D,W,z,G)=>{m=m||Hn,x=x||Hn;const H=m.length,ue=x.length,Q=Math.min(H,ue);let oe;for(oe=0;oe<Q;oe++){const de=x[oe]=G?qt(x[oe]):Ht(x[oe]);k(m[oe],de,E,null,T,D,W,z,G)}H>ue?Xe(m,T,D,!0,!1,Q):le(x,E,V,T,D,W,z,G,Q)},B=(m,x,E,V,T,D,W,z,G)=>{let H=0;const ue=x.length;let Q=m.length-1,oe=ue-1;for(;H<=Q&&H<=oe;){const de=m[H],ke=x[H]=G?qt(x[H]):Ht(x[H]);if(Jn(de,ke))k(de,ke,E,null,T,D,W,z,G);else break;H++}for(;H<=Q&&H<=oe;){const de=m[Q],ke=x[oe]=G?qt(x[oe]):Ht(x[oe]);if(Jn(de,ke))k(de,ke,E,null,T,D,W,z,G);else break;Q--,oe--}if(H>Q){if(H<=oe){const de=oe+1,ke=de<ue?x[de].el:V;for(;H<=oe;)k(null,x[H]=G?qt(x[H]):Ht(x[H]),E,ke,T,D,W,z,G),H++}}else if(H>oe)for(;H<=Q;)ee(m[H],T,D,!0),H++;else{const de=H,ke=H,Ee=new Map;for(H=ke;H<=oe;H++){const dt=x[H]=G?qt(x[H]):Ht(x[H]);dt.key!=null&&Ee.set(dt.key,H)}let $e,Ne=0;const We=oe-ke+1;let lt=!1,ut=0;const ct=new Array(We);for(H=0;H<We;H++)ct[H]=0;for(H=de;H<=Q;H++){const dt=m[H];if(Ne>=We){ee(dt,T,D,!0);continue}let Je;if(dt.key!=null)Je=Ee.get(dt.key);else for($e=ke;$e<=oe;$e++)if(ct[$e-ke]===0&&Jn(dt,x[$e])){Je=$e;break}Je===void 0?ee(dt,T,D,!0):(ct[Je-ke]=H+1,Je>=ut?ut=Je:lt=!0,k(dt,x[Je],E,null,T,D,W,z,G),Ne++)}const Pt=lt?Xc(ct):Hn;for($e=Pt.length-1,H=We-1;H>=0;H--){const dt=ke+H,Je=x[dt],Ei=x[dt+1],Fi=dt+1<ue?Ei.el||Kr(Ei):V;ct[H]===0?k(null,Je,E,Fi,T,D,W,z,G):lt&&($e<0||H!==Pt[$e]?ie(Je,E,Fi,2):$e--)}}},ie=(m,x,E,V,T=null)=>{const{el:D,type:W,transition:z,children:G,shapeFlag:H}=m;if(H&6){ie(m.component.subTree,x,E,V);return}if(H&128){m.suspense.move(x,E,V);return}if(H&64){W.move(m,x,E,P);return}if(W===ne){l(D,x,E);for(let Q=0;Q<G.length;Q++)ie(G[Q],x,E,V);l(m.anchor,x,E);return}if(W===Hi){b(m,x,E);return}if(V!==2&&H&1&&z)if(V===0)z.beforeEnter(D),l(D,x,E),st(()=>z.enter(D),T);else{const{leave:Q,delayLeave:oe,afterLeave:de}=z,ke=()=>{m.ctx.isUnmounted?i(D):l(D,x,E)},Ee=()=>{D._isLeaving&&D[fc](!0),Q(D,()=>{ke(),de&&de()})};oe?oe(D,ke,Ee):Ee()}else l(D,x,E)},ee=(m,x,E,V=!1,T=!1)=>{const{type:D,props:W,ref:z,children:G,dynamicChildren:H,shapeFlag:ue,patchFlag:Q,dirs:oe,cacheIndex:de,memo:ke}=m;if(Q===-2&&(T=!1),z!=null&&(ln(),ci(z,null,E,m,!0),sn()),de!=null&&(x.renderCache[de]=void 0),ue&256){x.ctx.deactivate(m);return}const Ee=ue&1&&oe,$e=!di(m);let Ne;if($e&&(Ne=W&&W.onVnodeBeforeUnmount)&&Rt(Ne,x,m),ue&6)qe(m.component,E,V);else{if(ue&128){m.suspense.unmount(E,V);return}Ee&&mn(m,null,x,"beforeUnmount"),ue&64?m.type.remove(m,x,E,P,V):H&&!H.hasOnce&&(D!==ne||Q>0&&Q&64)?Xe(H,x,E,!1,!0):(D===ne&&Q&384||!T&&ue&16)&&Xe(G,x,E),V&&Ae(m)}const We=ke!=null&&de==null;($e&&(Ne=W&&W.onVnodeUnmounted)||Ee||We)&&st(()=>{Ne&&Rt(Ne,x,m),Ee&&mn(m,null,x,"unmounted"),We&&(m.el=null)},E)},Ae=m=>{const{type:x,el:E,anchor:V,transition:T}=m;if(x===ne){He(E,V);return}if(x===Hi){A(m);return}const D=()=>{i(E),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(m.shapeFlag&1&&T&&!T.persisted){const{leave:W,delayLeave:z}=T,G=()=>W(E,D);z?z(m.el,D,G):G()}else D()},He=(m,x)=>{let E;for(;m!==x;)E=v(m),i(m),m=E;i(x)},qe=(m,x,E)=>{const{bum:V,scope:T,job:D,subTree:W,um:z,m:G,a:H}=m;eo(G),eo(H),V&&Di(V),T.stop(),D&&(D.flags|=8,ee(W,m,x,E)),z&&st(z,x),st(()=>{m.isUnmounted=!0},x)},Xe=(m,x,E,V=!1,T=!1,D=0)=>{for(let W=D;W<m.length;W++)ee(m[W],x,E,V,T)},q=m=>{if(m.shapeFlag&6)return q(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=v(m.anchor||m.el),E=x&&x[$r];return E?v(E):x};let L=!1;const we=(m,x,E)=>{let V;m==null?x._vnode&&(ee(x._vnode,null,null,!0),V=x._vnode.component):k(x._vnode||null,m,x,null,null,null,E),x._vnode=m,L||(L=!0,js(V),_r(),L=!1)},P={p:k,um:ee,m:ie,r:Ae,mt:ye,mc:le,pc:se,pbc:X,n:q,o:e};return{render:we,hydrate:void 0,createApp:Pc(we)}}function Sl({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 yn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xs(e,t,n=!1){const l=e.children,i=t.children;if(fe(l)&&fe(i))for(let s=0;s<l.length;s++){const o=l[s];let r=i[s];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[s]=qt(i[s]),r.el=o.el),!n&&r.patchFlag!==-2&&xs(o,r)),r.type===vl&&(r.patchFlag===-1&&(r=i[s]=qt(r)),r.el=o.el),r.type===hn&&!r.el&&(r.el=o.el)}}function Xc(e){const t=e.slice(),n=[0];let l,i,s,o,r;const u=e.length;for(l=0;l<u;l++){const d=e[l];if(d!==0){if(i=n[n.length-1],e[i]<d){t[l]=i,n.push(l);continue}for(s=0,o=n.length-1;s<o;)r=s+o>>1,e[n[r]]<d?s=r+1:o=r;d<e[n[s]]&&(s>0&&(t[l]=n[s-1]),n[s]=l)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Yr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yr(t)}function eo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Kr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Kr(t.subTree):null}const Wr=e=>e.__isSuspense;function qc(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):nc(e)}const ne=Symbol.for("v-fgt"),vl=Symbol.for("v-txt"),hn=Symbol.for("v-cmt"),Hi=Symbol.for("v-stc"),pi=[];let xt=null;function y(e=!1){pi.push(xt=e?null:[])}function Jc(){pi.pop(),xt=pi[pi.length-1]||null}let mi=1;function to(e,t=!1){mi+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function zr(e){return e.dynamicChildren=mi>0?xt||Hn:null,Jc(),mi>0&&xt&&xt.push(e),e}function _(e,t,n,l,i,s){return zr(c(e,t,n,l,i,s,!0))}function _t(e,t,n,l,i){return zr(et(e,t,n,l,i,!0))}function Gr(e){return e?e.__v_isVNode===!0:!1}function Jn(e,t){return e.type===t.type&&e.key===t.key}const Xr=({key:e})=>e??null,Bi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?je(e)||Ke(e)||he(e)?{i:Ct,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,l=0,i=null,s=e===ne?0:1,o=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xr(t),ref:t&&Bi(t),scopeId:kr,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:s,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ct};return r?(ks(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=je(n)?8:16),mi>0&&!o&&xt&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&xt.push(u),u}const et=Zc;function Zc(e,t=null,n=null,l=0,i=null,s=!1){if((!e||e===Cc)&&(e=hn),Gr(e)){const r=Wn(e,t,!0);return n&&ks(r,n),mi>0&&!s&&xt&&(r.shapeFlag&6?xt[xt.indexOf(e)]=r:xt.push(r)),r.patchFlag=-2,r}if(ad(e)&&(e=e.__vccOpts),t){t=Qc(t);let{class:r,style:u}=t;r&&!je(r)&&(t.class=J(r)),Ie(u)&&(dl(u)&&!fe(u)&&(u=nt({},u)),t.style=Le(u))}const o=je(e)?1:Wr(e)?128:ac(e)?64:Ie(e)?4:he(e)?2:0;return c(e,t,n,l,i,o,s,!0)}function Qc(e){return e?dl(e)||Nr(e)?nt({},e):e:null}function Wn(e,t,n=!1,l=!1){const{props:i,ref:s,patchFlag:o,children:r,transition:u}=e,d=t?Jr(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Xr(d),ref:t&&t.ref?n&&s?fe(s)?s.concat(Bi(t)):[s,Bi(t)]:Bi(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wn(e.ssContent),ssFallback:e.ssFallback&&Wn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&bs(a,u.clone(a)),a}function Qe(e=" ",t=0){return et(vl,null,e,t)}function qr(e,t){const n=et(Hi,null,e);return n.staticCount=t,n}function j(e="",t=!1){return t?(y(),_t(hn,null,e)):et(hn,null,e)}function Ht(e){return e==null||typeof e=="boolean"?et(hn):fe(e)?et(ne,null,e.slice()):Gr(e)?qt(e):et(vl,null,String(e))}function qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wn(e)}function ks(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),ks(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Nr(t)?t._ctx=Ct:i===3&&Ct&&(Ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:Ct},n=32):(t=String(t),l&64?(n=16,t=[Qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jr(...e){const t={};for(let n=0;n<e.length;n++){const l=e[n];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=J([t.class,l.class]));else if(i==="style")t.style=Le([t.style,l.style]);else if(ll(i)){const s=t[i],o=l[i];o&&s!==o&&!(fe(s)&&s.includes(o))?t[i]=s?[].concat(s,o):o:o==null&&s==null&&!sl(i)&&(t[i]=o)}else i!==""&&(t[i]=l[i])}return t}function Rt(e,t,n,l=null){Kt(e,t,7,[n,l])}const ed=Or();let td=0;function nd(e,t,n){const l=e.type,i=(t?t.appContext:e.appContext)||ed,s={uid:td++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hr(l,i),emitsOptions:Rr(l,i),emit:null,emitted:null,propsDefaults:Oe,inheritAttrs:l.inheritAttrs,ctx:Oe,data:Oe,props:Oe,attrs:Oe,slots:Oe,refs:Oe,setupState:Oe,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Rc.bind(null,s),e.ce&&e.ce(s),s}let vt=null;const id=()=>vt||Ct;let Xi,Gl;{const e=ul(),t=(n,l)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(l),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Xi=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),Gl=t("__VUE_SSR_SETTERS__",n=>yi=n)}const $i=e=>{const t=vt;return Xi(e),e.scope.on(),()=>{e.scope.off(),Xi(t)}},no=()=>{vt&&vt.scope.off(),Xi(null)};function Zr(e){return e.vnode.shapeFlag&4}let yi=!1;function ld(e,t=!1,n=!1){t&&Gl(t);const{props:l,children:i}=e.vnode,s=Zr(e);Hc(e,l,s,t),Yc(e,i,n||t);const o=s?sd(e,t):void 0;return t&&Gl(!1),o}function sd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ac);const{setup:l}=n;if(l){ln();const i=e.setupContext=l.length>1?rd(e):null,s=$i(e),o=Ai(l,e,0,[e.props,i]),r=Go(o);if(sn(),s(),(r||e.sp)&&!di(e)&&Tr(e),r){if(o.then(no,no),t)return o.then(u=>{io(e,u)}).catch(u=>{fl(u,e,0)});e.asyncDep=o}else io(e,o)}else Qr(e)}function io(e,t,n){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=mr(t)),Qr(e)}function Qr(e,t,n){const l=e.type;e.render||(e.render=l.render||Ut);{const i=$i(e);ln();try{$c(e)}finally{sn(),i()}}}const od={get(e,t){return rt(e,"get",""),e[t]}};function rd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,od),slots:e.slots,emit:e.emit,expose:t}}function gl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(mr(ju(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fi)return fi[n](e)},has(t,n){return n in t||n in fi}})):e.proxy}function ad(e){return he(e)&&"__vccOpts"in e}const re=(e,t)=>Ju(e,t,yi),ud="3.5.31";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.31
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let Xl;const lo=typeof window<"u"&&window.trustedTypes;if(lo)try{Xl=lo.createPolicy("vue",{createHTML:e=>e})}catch{}const ea=Xl?e=>Xl.createHTML(e):e=>e,cd="http://www.w3.org/2000/svg",dd="http://www.w3.org/1998/Math/MathML",Xt=typeof document<"u"?document:null,so=Xt&&Xt.createElement("template"),fd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const i=t==="svg"?Xt.createElementNS(cd,e):t==="mathml"?Xt.createElementNS(dd,e):n?Xt.createElement(e,{is:n}):Xt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Xt.createTextNode(e),createComment:e=>Xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{so.innerHTML=ea(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=so.content;if(l==="svg"||l==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pd=Symbol("_vtc");function hd(e,t,n){const l=e[pd];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oo=Symbol("_vod"),vd=Symbol("_vsh"),gd=Symbol(""),md=/(?:^|;)\s*display\s*:/;function yd(e,t,n){const l=e.style,i=je(n);let s=!1;if(n&&!i){if(t)if(je(t))for(const o of t.split(";")){const r=o.slice(0,o.indexOf(":")).trim();n[r]==null&&ji(l,r,"")}else for(const o in t)n[o]==null&&ji(l,o,"");for(const o in n)o==="display"&&(s=!0),ji(l,o,n[o])}else if(i){if(t!==n){const o=l[gd];o&&(n+=";"+o),l.cssText=n,s=md.test(n)}}else t&&e.removeAttribute("style");oo in e&&(e[oo]=s?l.display:"",e[vd]&&(l.display="none"))}const ro=/\s*!important$/;function ji(e,t,n){if(fe(n))n.forEach(l=>ji(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=bd(e,t);ro.test(n)?e.setProperty(gn(l),n.replace(ro,""),"important"):e[l]=n}}const ao=["Webkit","Moz","ms"],Tl={};function bd(e,t){const n=Tl[t];if(n)return n;let l=Et(t);if(l!=="filter"&&l in e)return Tl[t]=l;l=Jo(l);for(let i=0;i<ao.length;i++){const s=ao[i]+l;if(s in e)return Tl[t]=s}return t}const uo="http://www.w3.org/1999/xlink";function co(e,t,n,l,i,s=yu(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(uo,t.slice(6,t.length)):e.setAttributeNS(uo,t,n):n==null||s&&!Qo(n)?e.removeAttribute(t):e.setAttribute(t,s?"":At(n)?String(n):n)}function fo(e,t,n,l,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ea(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const r=s==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(r!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Qo(n):n==null&&r==="string"?(n="",o=!0):r==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Cn(e,t,n,l){e.addEventListener(t,n,l)}function wd(e,t,n,l){e.removeEventListener(t,n,l)}const po=Symbol("_vei");function _d(e,t,n,l,i=null){const s=e[po]||(e[po]={}),o=s[t];if(l&&o)o.value=l;else{const[r,u]=xd(t);if(l){const d=s[t]=Ad(l,i);Cn(e,r,d,u)}else o&&(wd(e,r,o,u),s[t]=void 0)}}const ho=/(?:Once|Passive|Capture)$/;function xd(e){let t;if(ho.test(e)){t={};let l;for(;l=e.match(ho);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gn(e.slice(2)),t]}let El=0;const kd=Promise.resolve(),Cd=()=>El||(kd.then(()=>El=0),El=Date.now());function Ad(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;Kt($d(l,n.value),t,5,[l])};return n.value=e,n.attached=Cd(),n}function $d(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const vo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sd=(e,t,n,l,i,s)=>{const o=i==="svg";t==="class"?hd(e,l,o):t==="style"?yd(e,n,l):ll(t)?sl(t)||_d(e,t,n,l,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Td(e,t,l,o))?(fo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&co(e,t,l,o,s,t!=="value")):e._isVueCE&&(Ed(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!je(l)))?fo(e,Et(t),l,s,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),co(e,t,l,o))};function Td(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&vo(t)&&he(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return vo(t)&&je(n)?!1:t in e}function Ed(e,t){const n=e._def.props;if(!n)return!1;const l=Et(t);return Array.isArray(n)?n.some(i=>Et(i)===l):Object.keys(n).some(i=>Et(i)===l)}const qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>Di(t,n):t};function Fd(e){e.target.composing=!0}function go(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yn=Symbol("_assign");function mo(e,t,n){return t&&(e=e.trim()),n&&(e=cs(e)),e}const Be={created(e,{modifiers:{lazy:t,trim:n,number:l}},i){e[Yn]=qi(i);const s=l||i.props&&i.props.type==="number";Cn(e,t?"change":"input",o=>{o.target.composing||e[Yn](mo(e.value,n,s))}),(n||s)&&Cn(e,"change",()=>{e.value=mo(e.value,n,s)}),t||(Cn(e,"compositionstart",Fd),Cn(e,"compositionend",go),Cn(e,"change",go))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:i,number:s}},o){if(e[Yn]=qi(o),e.composing)return;const r=(s||e.type==="number")&&!/^0\d/.test(e.value)?cs(e.value):e.value,u=t??"";if(r===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(l&&t===n||i&&e.value.trim()===u)||(e.value=u)}},Zn={deep:!0,created(e,t,n){e[Yn]=qi(n),Cn(e,"change",()=>{const l=e._modelValue,i=Id(e),s=e.checked,o=e[Yn];if(fe(l)){const r=er(l,i),u=r!==-1;if(s&&!u)o(l.concat(i));else if(!s&&u){const d=[...l];d.splice(r,1),o(d)}}else if(ol(l)){const r=new Set(l);s?r.add(i):r.delete(i),o(r)}else o(ta(e,s))})},mounted:yo,beforeUpdate(e,t,n){e[Yn]=qi(n),yo(e,t,n)}};function yo(e,{value:t,oldValue:n},l){e._modelValue=t;let i;if(fe(t))i=er(t,l.props.value)>-1;else if(ol(t))i=t.has(l.props.value);else{if(t===n)return;i=Ci(t,ta(e,!0))}e.checked!==i&&(e.checked=i)}function Id(e){return"_value"in e?e._value:e.value}function ta(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Pd=["ctrl","shift","alt","meta"],Od={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)=>Pd.some(n=>e[`${n}Key`]&&!t.includes(n))},Ve=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((i,...s)=>{for(let o=0;o<t.length;o++){const r=Od[t[o]];if(r&&r(i,t))return}return e(i,...s)}))},Rd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(i=>{if(!("key"in i))return;const s=gn(i.key);if(t.some(o=>o===s||Rd[o]===s))return e(i)}))},Md=nt({patchProp:Sd},fd);let bo;function Ld(){return bo||(bo=Wc(Md))}const Dd=((...e)=>{const t=Ld().createApp(...e),{mount:n}=t;return t.mount=l=>{const i=Vd(l);if(!i)return;const s=t._component;!he(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Nd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function Nd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Vd(e){return je(e)?document.querySelector(e):e}const Hd={class:"layout-controls"},Bd={class:"control-row"},jd={class:"button-group"},Ud=["onClick"],Yd={class:"control-row"},Kd={class:"button-group"},Wd={class:"control-row"},zd={class:"button-group"},Gd=["title","onClick"],Xd={class:"control-row"},qd={class:"button-group"},Jd=["title","onClick"],Zd={class:"control-row"},Qd={class:"num-input-group"},ef=["value"],tf={class:"num-value"},nf=it({__name:"LayoutControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t,i=re(()=>n.computedStyles.display||"block"),s=re(()=>n.computedStyles["flex-direction"]||"row"),o=re(()=>n.computedStyles["align-items"]||"stretch"),r=re(()=>n.computedStyles["justify-content"]||"flex-start"),u=re(()=>n.computedStyles.gap||"0px"),d=["block","flex","grid","inline-flex","inline","none"],a=[{value:"flex-start",icon:"⬆",label:"Start"},{value:"center",icon:"⬌",label:"Center"},{value:"flex-end",icon:"⬇",label:"End"},{value:"stretch",icon:"⇕",label:"Stretch"}],f=[{value:"flex-start",icon:"◧",label:"Start"},{value:"center",icon:"◫",label:"Center"},{value:"flex-end",icon:"◨",label:"End"},{value:"space-between",icon:"⟺",label:"Between"},{value:"space-around",icon:"⟷",label:"Around"}],v=re(()=>i.value==="flex"||i.value==="inline-flex");function h(g){return parseFloat(g)||0}return(g,k)=>(y(),_("div",Hd,[c("div",Bd,[k[5]||(k[5]=c("label",{class:"control-label"},"Display",-1)),c("div",jd,[(y(),_(ne,null,ve(d,$=>c("button",{key:$,class:J(["seg-btn",{active:i.value===$}]),onClick:R=>l("change","display",$)},O($),11,Ud)),64))])]),v.value?(y(),_(ne,{key:0},[c("div",Yd,[k[6]||(k[6]=c("label",{class:"control-label"},"Direction",-1)),c("div",Kd,[c("button",{class:J(["seg-btn icon-btn",{active:s.value==="row"}]),onClick:k[0]||(k[0]=$=>l("change","flex-direction","row")),title:"Row"},"→",2),c("button",{class:J(["seg-btn icon-btn",{active:s.value==="row-reverse"}]),onClick:k[1]||(k[1]=$=>l("change","flex-direction","row-reverse")),title:"Row Reverse"},"←",2),c("button",{class:J(["seg-btn icon-btn",{active:s.value==="column"}]),onClick:k[2]||(k[2]=$=>l("change","flex-direction","column")),title:"Column"},"↓",2),c("button",{class:J(["seg-btn icon-btn",{active:s.value==="column-reverse"}]),onClick:k[3]||(k[3]=$=>l("change","flex-direction","column-reverse")),title:"Column Reverse"},"↑",2)])]),c("div",Wd,[k[7]||(k[7]=c("label",{class:"control-label"},"Align",-1)),c("div",zd,[(y(),_(ne,null,ve(a,$=>c("button",{key:$.value,class:J(["seg-btn",{active:o.value===$.value}]),title:$.label,onClick:R=>l("change","align-items",$.value)},O($.icon),11,Gd)),64))])]),c("div",Xd,[k[8]||(k[8]=c("label",{class:"control-label"},"Justify",-1)),c("div",qd,[(y(),_(ne,null,ve(f,$=>c("button",{key:$.value,class:J(["seg-btn",{active:r.value===$.value}]),title:$.label,onClick:R=>l("change","justify-content",$.value)},O($.icon),11,Jd)),64))])]),c("div",Zd,[k[9]||(k[9]=c("label",{class:"control-label"},"Gap",-1)),c("div",Qd,[c("input",{type:"range",min:"0",max:"64",step:"1",value:h(u.value),class:"range-input",onInput:k[4]||(k[4]=$=>l("change","gap",$.target.value+"px"))},null,40,ef),c("span",tf,O(h(u.value))+"px",1)])])],64)):j("",!0)]))}}),mt=(e,t)=>{const n=e.__vccOpts||e;for(const[l,i]of t)n[l]=i;return n},lf=mt(nf,[["__scopeId","data-v-548da941"]]),sf={class:"spacing-controls"},of={class:"box-model"},rf={class:"margin-box"},af=["value"],uf=["value"],cf=["value"],df=["value"],ff={class:"padding-box"},pf=["value"],hf=["value"],vf=["value"],gf=["value"],mf={class:"content-box"},yf=it({__name:"SpacingControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(u){return parseFloat(u)||0}function s(u){const d=u.split(" ").map(a=>parseFloat(a)||0);return d.length===1?{top:d[0],right:d[0],bottom:d[0],left:d[0]}:d.length===2?{top:d[0],right:d[1],bottom:d[0],left:d[1]}:d.length===3?{top:d[0],right:d[1],bottom:d[2],left:d[1]}:{top:d[0],right:d[1],bottom:d[2],left:d[3]}}const o=re(()=>s(n.computedStyles.padding||"0")),r=re(()=>s(n.computedStyles.margin||"0"));return(u,d)=>(y(),_("div",sf,[c("div",of,[c("div",rf,[d[9]||(d[9]=c("span",{class:"box-label margin-label"},"margin",-1)),c("input",{class:"side-input top",value:r.value.top,onChange:d[0]||(d[0]=a=>l("change","margin-top",a.target.value+"px"))},null,40,af),c("input",{class:"side-input right",value:r.value.right,onChange:d[1]||(d[1]=a=>l("change","margin-right",a.target.value+"px"))},null,40,uf),c("input",{class:"side-input bottom",value:r.value.bottom,onChange:d[2]||(d[2]=a=>l("change","margin-bottom",a.target.value+"px"))},null,40,cf),c("input",{class:"side-input left",value:r.value.left,onChange:d[3]||(d[3]=a=>l("change","margin-left",a.target.value+"px"))},null,40,df),c("div",ff,[d[8]||(d[8]=c("span",{class:"box-label padding-label"},"padding",-1)),c("input",{class:"side-input top",value:o.value.top,onChange:d[4]||(d[4]=a=>l("change","padding-top",a.target.value+"px"))},null,40,pf),c("input",{class:"side-input right",value:o.value.right,onChange:d[5]||(d[5]=a=>l("change","padding-right",a.target.value+"px"))},null,40,hf),c("input",{class:"side-input bottom",value:o.value.bottom,onChange:d[6]||(d[6]=a=>l("change","padding-bottom",a.target.value+"px"))},null,40,vf),c("input",{class:"side-input left",value:o.value.left,onChange:d[7]||(d[7]=a=>l("change","padding-left",a.target.value+"px"))},null,40,gf),c("div",mf,O(i(n.computedStyles.width||"0").toFixed(0))+" × "+O(i(n.computedStyles.height||"0").toFixed(0)),1)])])])]))}}),bf=mt(yf,[["__scopeId","data-v-e06fb04c"]]),wf={class:"size-controls"},_f={class:"size-row"},xf={class:"size-field"},kf={class:"size-input-group"},Cf=["value"],Af={class:"size-field"},$f={class:"size-input-group"},Sf=["value"],Tf={class:"control-row"},Ef={class:"button-group"},Ff=["onClick"],If=it({__name:"SizeControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(d){return parseFloat(d)||0}const s=re(()=>n.computedStyles.width||"auto"),o=re(()=>n.computedStyles.height||"auto"),r=re(()=>n.computedStyles.overflow||"visible"),u=["visible","hidden","scroll","auto"];return(d,a)=>(y(),_("div",wf,[c("div",_f,[c("div",xf,[a[3]||(a[3]=c("label",{class:"control-label"},"Width",-1)),c("div",kf,[c("input",{class:"size-input",value:i(s.value),type:"number",onChange:a[0]||(a[0]=f=>l("change","width",f.target.value+"px"))},null,40,Cf),a[2]||(a[2]=c("span",{class:"size-unit"},"px",-1))])]),c("div",Af,[a[5]||(a[5]=c("label",{class:"control-label"},"Height",-1)),c("div",$f,[c("input",{class:"size-input",value:i(o.value),type:"number",onChange:a[1]||(a[1]=f=>l("change","height",f.target.value+"px"))},null,40,Sf),a[4]||(a[4]=c("span",{class:"size-unit"},"px",-1))])])]),c("div",Tf,[a[6]||(a[6]=c("label",{class:"control-label"},"Overflow",-1)),c("div",Ef,[(y(),_(ne,null,ve(u,f=>c("button",{key:f,class:J(["seg-btn",{active:r.value===f}]),onClick:v=>l("change","overflow",f)},O(f),11,Ff)),64))])])]))}}),Pf=mt(If,[["__scopeId","data-v-c3ca7e31"]]),Of=[{name:"Slate",shades:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"}},{name:"Gray",shades:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"}},{name:"Zinc",shades:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"}},{name:"Neutral",shades:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"}},{name:"Stone",shades:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},{name:"Red",shades:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"}},{name:"Orange",shades:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"}},{name:"Amber",shades:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"}},{name:"Yellow",shades:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"}},{name:"Lime",shades:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"}},{name:"Green",shades:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"}},{name:"Emerald",shades:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"}},{name:"Teal",shades:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"}},{name:"Cyan",shades:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"}},{name:"Sky",shades:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"}},{name:"Blue",shades:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"}},{name:"Indigo",shades:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4e"}},{name:"Violet",shades:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"}},{name:"Purple",shades:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"}},{name:"Fuchsia",shades:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"}},{name:"Pink",shades:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"}},{name:"Rose",shades:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}}],Rf=["50","100","200","300","400","500","600","700","800","900","950"],Fl=U([]),Mf=20;function ql(e){const t=e.match(/\d+/g);if(!t||t.length<3)return"#000000";const[n,l,i]=t.map(Number);return"#"+[n,l,i].map(s=>s.toString(16).padStart(2,"0")).join("")}function Lf(e,t){var l;if(!e||e==="inherit"||e==="initial"||e==="unset")return null;const n=t.createElement("span");n.style.display="none",n.style.color="",t.body.appendChild(n);try{n.style.color=e;const i=(l=t.defaultView)==null?void 0:l.getComputedStyle(n).color;return!i||i===""?null:ql(i)}finally{n.remove()}}function Df(e){var s;const t=e.documentElement,n=new Set;for(const o of Array.from(e.styleSheets))try{for(const r of Array.from(o.cssRules))if(r instanceof CSSStyleRule&&((s=r.selectorText)!=null&&s.includes(":root")))for(let u=0;u<r.style.length;u++){const d=r.style[u];d.startsWith("--")&&n.add(d)}}catch{}const l=getComputedStyle(t),i=[];for(const o of n){const r=l.getPropertyValue(o).trim(),u=Lf(r,e);u&&i.push({label:o,value:u,source:"css-var"})}return i}function Nf(e){const t=U([]);let n=!1;const l=re(()=>Of.map(u=>({name:u.name,swatches:Rf.map(d=>({label:`${u.name.toLowerCase()}-${d}`,value:u.shades[d],source:"tailwind"}))}))),i=re(()=>t.value.length===0?null:{name:"App Variables",swatches:t.value});function s(){const u=e.value;u&&(t.value=Df(u),n=!0)}function o(){n||s()}function r(u){const d=u.toLowerCase();Fl.value=[{label:d,value:d,source:"recent"},...Fl.value.filter(a=>a.value!==d)].slice(0,Mf)}return{tailwindCategories:l,cssVarCategory:i,recentColors:Fl,ensureScanned:o,refreshCssVars:s,addRecentColor:r}}const Vf={class:"picker-trigger"},Hf=["value"],Bf={key:0,class:"color-match"},jf={class:"palette-tabs"},Uf={key:0,class:"palette-body"},Yf={class:"family-label"},Kf={class:"swatch-row"},Wf=["title","onClick"],zf={key:1,class:"palette-body"},Gf={key:0,class:"var-grid"},Xf=["onClick"],qf={class:"var-name"},Jf={class:"var-hex"},Zf={key:1,class:"empty-msg"},Qf={key:2,class:"palette-body"},ep={key:0,class:"swatch-grid"},tp=["title","onClick"],np={key:1,class:"empty-msg"},ip=it({__name:"ColorPalettePicker",props:{modelValue:{},iframeDoc:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,{tailwindCategories:i,cssVarCategory:s,recentColors:o,ensureScanned:r,addRecentColor:u}=Nf(Gu(n,"iframeDoc")),d=U(!1),a=U("tailwind"),f=U(null),v=U(null);function h(){d.value=!d.value,d.value&&r()}function g(R){l("update:modelValue",R),u(R),d.value=!1}function k(R){var b,A;if(!d.value)return;const w=R.target;(b=f.value)!=null&&b.contains(w)||(A=v.value)!=null&&A.contains(w)||(d.value=!1)}const $=re(()=>{var b,A;const R=(b=n.modelValue)==null?void 0:b.toLowerCase();if(!R)return null;for(const F of i.value){const N=F.swatches.find(Y=>Y.value.toLowerCase()===R);if(N)return N.label}const w=(A=s.value)==null?void 0:A.swatches.find(F=>F.value.toLowerCase()===R);return w?w.label:null});return Gn(()=>{document.addEventListener("mousedown",k)}),En(()=>{document.removeEventListener("mousedown",k)}),(R,w)=>(y(),_("div",{class:"color-palette-picker",ref_key:"triggerRef",ref:v},[c("div",Vf,[c("input",{type:"color",value:e.modelValue,class:"color-swatch",onInput:w[0]||(w[0]=b=>R.$emit("update:modelValue",b.target.value))},null,40,Hf),c("button",{class:J(["palette-btn",{active:d.value}]),onClick:h,title:"Color palette"},[...w[4]||(w[4]=[qr('<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor" data-v-b0ade670><rect x="0" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="0" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect></svg>',1)])],2),$.value?(y(),_("span",Bf,O($.value),1)):j("",!0)]),d.value?(y(),_("div",{key:0,class:"palette-popover",ref_key:"popoverRef",ref:f},[c("div",jf,[c("button",{class:J(["ptab",{active:a.value==="tailwind"}]),onClick:w[1]||(w[1]=b=>a.value="tailwind")},"Tailwind",2),c("button",{class:J(["ptab",{active:a.value==="css-var"}]),onClick:w[2]||(w[2]=b=>a.value="css-var")},"App Vars",2),c("button",{class:J(["ptab",{active:a.value==="recent"}]),onClick:w[3]||(w[3]=b=>a.value="recent")},"Recent",2)]),a.value==="tailwind"?(y(),_("div",Uf,[(y(!0),_(ne,null,ve(Z(i),b=>(y(),_("div",{key:b.name,class:"color-family"},[c("span",Yf,O(b.name),1),c("div",Kf,[(y(!0),_(ne,null,ve(b.swatches,A=>{var F;return y(),_("button",{key:A.value,class:J(["swatch",{selected:A.value.toLowerCase()===((F=e.modelValue)==null?void 0:F.toLowerCase())}]),style:Le({background:A.value}),title:A.label,onClick:N=>g(A.value)},null,14,Wf)}),128))])]))),128))])):j("",!0),a.value==="css-var"?(y(),_("div",zf,[Z(s)?(y(),_("div",Gf,[(y(!0),_(ne,null,ve(Z(s).swatches,b=>{var A;return y(),_("button",{key:b.label,class:J(["var-swatch",{selected:b.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),onClick:F=>g(b.value)},[c("span",{class:"var-color",style:Le({background:b.value})},null,4),c("span",qf,O(b.label),1),c("span",Jf,O(b.value),1)],10,Xf)}),128))])):(y(),_("p",Zf,"No color variables detected"))])):j("",!0),a.value==="recent"?(y(),_("div",Qf,[Z(o).length?(y(),_("div",ep,[(y(!0),_(ne,null,ve(Z(o),b=>{var A;return y(),_("button",{key:b.value,class:J(["swatch large",{selected:b.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),style:Le({background:b.value}),title:b.value,onClick:F=>g(b.value)},null,14,tp)}),128))])):(y(),_("p",np,"No colors used yet"))])):j("",!0)],512)):j("",!0)],512))}}),Jl=mt(ip,[["__scopeId","data-v-b0ade670"]]),lp={class:"appearance-controls"},sp={class:"control-row"},op={class:"color-input-group"},rp={class:"color-value"},ap={class:"control-row"},up={class:"color-input-group"},cp={class:"color-value"},dp={class:"control-row"},fp={class:"num-input-group"},pp=["value"],hp={class:"num-value"},vp={class:"control-row"},gp={class:"button-group"},mp=["onClick"],yp={class:"control-row"},bp={class:"num-input-group"},wp=["value"],_p={class:"num-value"},xp={class:"control-row"},kp={class:"num-input-group"},Cp=["value"],Ap={class:"num-value"},$p=it({__name:"AppearanceControls",props:{computedStyles:{},iframeDoc:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(v){return parseFloat(v)||0}const s=re(()=>n.computedStyles["background-color"]||"rgba(0,0,0,0)"),o=re(()=>n.computedStyles.color||"#000"),r=re(()=>i(n.computedStyles["font-size"]||"16")),u=re(()=>n.computedStyles["font-weight"]||"400"),d=re(()=>i(n.computedStyles["border-radius"]||"0")),a=re(()=>i(n.computedStyles.opacity||"1")),f=["100","300","400","500","600","700","900"];return(v,h)=>(y(),_("div",lp,[c("div",sp,[h[5]||(h[5]=c("label",{class:"control-label"},"Background",-1)),c("div",op,[et(Jl,{modelValue:Z(ql)(s.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[0]||(h[0]=g=>l("change","background-color",g))},null,8,["modelValue","iframeDoc"]),c("span",rp,O(s.value),1)])]),c("div",ap,[h[6]||(h[6]=c("label",{class:"control-label"},"Text Color",-1)),c("div",up,[et(Jl,{modelValue:Z(ql)(o.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[1]||(h[1]=g=>l("change","color",g))},null,8,["modelValue","iframeDoc"]),c("span",cp,O(o.value),1)])]),c("div",dp,[h[7]||(h[7]=c("label",{class:"control-label"},"Font Size",-1)),c("div",fp,[c("input",{type:"range",min:"8",max:"72",step:"1",value:r.value,class:"range-input",onInput:h[2]||(h[2]=g=>l("change","font-size",g.target.value+"px"))},null,40,pp),c("span",hp,O(r.value)+"px",1)])]),c("div",vp,[h[8]||(h[8]=c("label",{class:"control-label"},"Font Weight",-1)),c("div",gp,[(y(),_(ne,null,ve(f,g=>c("button",{key:g,class:J(["seg-btn",{active:u.value===g}]),onClick:k=>l("change","font-weight",g)},O(g),11,mp)),64))])]),c("div",yp,[h[9]||(h[9]=c("label",{class:"control-label"},"Border Radius",-1)),c("div",bp,[c("input",{type:"range",min:"0",max:"50",step:"1",value:d.value,class:"range-input",onInput:h[3]||(h[3]=g=>l("change","border-radius",g.target.value+"px"))},null,40,wp),c("span",_p,O(d.value)+"px",1)])]),c("div",xp,[h[10]||(h[10]=c("label",{class:"control-label"},"Opacity",-1)),c("div",kp,[c("input",{type:"range",min:"0",max:"1",step:"0.05",value:a.value,class:"range-input",onInput:h[4]||(h[4]=g=>l("change","opacity",g.target.value))},null,40,Cp),c("span",Ap,O((a.value*100).toFixed(0))+"%",1)])])]))}}),Sp=mt($p,[["__scopeId","data-v-47449e0a"]]);let Bt=null,Zl=0,Il=null;const ii=new Map;function Tp(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/__annotask/ws`}function na(){try{Bt=new WebSocket(Tp()),Bt.onopen=()=>{Zl=0,console.log("[Annotask] WebSocket connected")},Bt.onmessage=e=>{try{const t=JSON.parse(e.data);if(t.event){const n=ii.get(t.event);if(n)for(const l of n)l(t.data)}}catch{}},Bt.onclose=()=>{Bt=null,wo()},Bt.onerror=()=>{}}catch{wo()}}function wo(){if(Il)return;Zl++;const e=Math.min(1e3*Math.pow(2,Zl-1),3e4);Il=setTimeout(()=>{Il=null,na()},e)}function ia(e,t){return ii.has(e)||ii.set(e,new Set),ii.get(e).add(t),()=>{var n;(n=ii.get(e))==null||n.delete(t)}}function Ep(e,t){(Bt==null?void 0:Bt.readyState)===WebSocket.OPEN&&Bt.send(JSON.stringify({event:e,data:t,timestamp:Date.now()}))}na();const Ql=U(null),es=U(!1),la=U(!0);let _o=!1;async function Pl(){try{const t=await(await fetch("/__annotask/api/design-spec")).json();Ql.value=t,es.value=!!t.initialized}catch{Ql.value=null,es.value=!1}finally{la.value=!1}}function Cs(){return _o||(_o=!0,Pl(),ia("designspec:updated",()=>Pl())),{designSpec:Ql,isInitialized:es,isLoading:la,refetch:Pl}}const ts=[{id:"iphone-se",label:"iPhone SE",width:375,height:667,category:"phone"},{id:"iphone-14-pro",label:"iPhone 14 Pro",width:393,height:852,category:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,category:"phone"},{id:"pixel-7",label:"Pixel 7",width:412,height:915,category:"phone"},{id:"ipad",label:"iPad",width:768,height:1024,category:"tablet"},{id:"ipad-pro",label:'iPad Pro 12.9"',width:1024,height:1366,category:"tablet"},{id:"laptop",label:"Laptop",width:1366,height:768,category:"desktop"},{id:"desktop",label:"Desktop",width:1440,height:900,category:"desktop"},{id:"desktop-xl",label:"Desktop XL",width:1920,height:1080,category:"desktop"}],Jt=U(null),Zt=U(null),Qt=U(null),Nt=U(!1);try{const e=localStorage.getItem("annotask:viewport");if(e){const t=JSON.parse(e);Jt.value=t.presetId??null,Zt.value=t.customWidth??null,Qt.value=t.customHeight??null,Nt.value=t.rotated??!1}}catch{}function Fp(){localStorage.setItem("annotask:viewport",JSON.stringify({presetId:Jt.value,customWidth:Zt.value,customHeight:Qt.value,rotated:Nt.value}))}ot([Jt,Zt,Qt,Nt],Fp);function As(){const e=re(()=>Jt.value?ts.find(o=>o.id===Jt.value)??null:null),t=re(()=>!Jt.value&&!Zt.value&&!Qt.value),n=re(()=>{const o=e.value;if(o){const r=Nt.value?o.height:o.width,u=Nt.value?o.width:o.height;return{width:r,height:u,label:o.label}}return Zt.value||Qt.value?{width:Zt.value,height:Qt.value,label:"Custom"}:{width:null,height:null,label:"Full Width"}});function l(o){Jt.value=(o==null?void 0:o.id)??null,Zt.value=null,Qt.value=null,Nt.value=!1}function i(o,r){Jt.value=null,Zt.value=o,Qt.value=r,Nt.value=!1}function s(){Nt.value=!Nt.value}return{activePreset:e,activePresetId:Jt,customWidth:Zt,customHeight:Qt,rotated:Nt,effectiveViewport:n,isFullWidth:t,selectPreset:l,setCustomDimensions:i,toggleRotate:s,VIEWPORT_PRESETS:ts}}const xo=100,un=U([]);function sa(){function e(i,s,o){const r={};for(const[u,d]of Object.entries(o))d!==""&&(r[u]=d);un.value.push({event:i,route:s,data:r}),un.value.length>xo&&un.value.splice(0,un.value.length-xo)}function t(){const i=[];for(const s of un.value)if(s.event==="route_change"){const o=s.data.path||s.route;i[i.length-1]!==o&&i.push(o)}else i.length===0&&s.route&&i.push(s.route);return i}function n(i){const s=un.value.slice(-20).map(o=>{if(o.route===i){const{route:r,...u}=o;return u}return o});return{current_route:i,navigation_path:t(),recent_actions:s}}function l(){un.value=[]}return{push:e,snapshotForChange:n,clear:l,history:un}}const Ze=U([]);let cn=0;const wt=new Map;function bn(e,t){Ep(e,t)}function Ip(){function e(a,f,v,h,g){const k=Ze.value.find($=>$.type==="style_update"&&$.file===g.file&&$.line===(parseInt(g.line)||0)&&$.property===f&&wt.get($.id)===a);if(k)k.after=v,k.description=`Set ${f} to ${v}`;else{cn++;const $=`s${cn}`;Ze.value.push({id:$,type:"style_update",description:`Set ${f} to ${v}`,file:g.file,section:"style",line:parseInt(g.line)||0,component:g.component,element:"element",property:f,before:h,after:v}),wt.set($,a)}}function t(a,f){cn++;const v=`ci${cn}`,h=a.position==="append"||a.position==="prepend",g={id:v,type:"component_insert",description:`Insert <${f.tag}> ${a.position} in ${a.component}`,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,insert_inside:h?{component:a.component}:void 0,insert_position:a.position,inserted:{tag:f.tag,library:f.library,props:f.defaultProps,classes:f.defaultClasses,text_content:f.defaultTextContent}};return Ze.value.push(g),v}function n(a){cn++;const f=`an${cn}`,v={id:f,type:"annotation",description:a.intent,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,intent:a.intent,action:a.action,context:{element_tag:a.elementTag,element_classes:a.elementClasses,parent_layout:a.parentLayout,siblings_count:a.siblingsCount},pinId:a.pinId};return Ze.value.push(v),f}function l(a,f,v,h){const g=parseInt(h.line)||0,k=Ze.value.find(R=>R.type!=="class_update"||R.file!==h.file||R.line!==g?!1:wt.get(R.id)===a);if(k)return k.after={classes:v},k.description="Update classes",k.id;cn++;const $=`cl${cn}`;return Ze.value.push({id:$,type:"class_update",description:"Update classes",file:h.file,section:"template",line:g,component:h.component,element:"element",before:{classes:f},after:{classes:v}}),wt.set($,a),$}function i(){if(Ze.value.length===0)return null;const a=Ze.value.pop();if(a.type==="style_update"){const f=wt.get(a.id);return wt.delete(a.id),bn("report:updated",d.value),{type:"style",eid:f,property:a.property,value:a.before}}else if(a.type==="class_update"){const f=wt.get(a.id);return wt.delete(a.id),bn("report:updated",d.value),{type:"class",eid:f,classes:a.before.classes}}else if(a.type==="component_insert"){const f=wt.get(a.id);return wt.delete(a.id),bn("report:updated",d.value),{type:"insert_remove",eid:f}}return bn("report:updated",d.value),null}function s(a){Ze.value=Ze.value.filter(f=>f.id!==a),wt.delete(a)}function o(a,f){Ze.value=Ze.value.filter(v=>v.type!=="annotation"?!0:!(v.file===a&&v.line===f))}function r(){const a=[];for(const f of Ze.value)if(f.type==="component_insert"){const v=wt.get(f.id);v&&a.push(v)}return Ze.value=[],wt.clear(),bn("changes:cleared",{}),a}function u(a){const f=typeof a.line=="number"&&Number.isFinite(a.line)?a.line:0,v={id:a.id,type:a.type,description:a.description||"",file:a.file||"",section:a.section,line:f};switch(a.type){case"style_update":return{...v,component:a.component,element:a.element,property:a.property,before:a.before,after:a.after};case"class_update":return{...v,component:a.component,element:a.element,before:a.before,after:a.after};case"component_insert":return{...v,insert_inside:a.insert_inside,insert_position:a.insert_position,component:a.inserted};case"component_move":return{...v,element:{tag:a.element_tag,component:a.component,from_file:a.from_file,from_line:a.from_line},move_to:a.move_to};case"annotation":return{...v,component:a.component,intent:a.intent,action:a.action,context:a.context};default:return null}}const d=re(()=>{if(Ze.value.length===0)return null;const a=Ze.value.filter(F=>F.type==="component_insert"||F.type==="component_move"||F.type==="annotation"?!0:F.type==="class_update"?F.before.classes!==F.after.classes:F.before!==F.after);if(a.length===0)return null;const f=a.map(u).filter(Boolean),{designSpec:v}=Cs(),h=v.value,g=h!=null&&h.framework?{framework:h.framework.name||"vue",styling:h.framework.styling||[],root:""}:{framework:"vue",styling:[],root:""},{effectiveViewport:k}=As(),$=k.value,R=$.width||$.height?{width:$.width,height:$.height}:void 0,{snapshotForChange:w}=sa(),b=w(window.location.pathname),A=b.recent_actions.length>0?b:void 0;return{version:"1.0",project:g,...R?{viewport:R}:{},...A?{interaction_history:A}:{},changes:f}});return ot(()=>d.value,a=>{bn("report:updated",a)},{deep:!0}),{changes:Ze,applyStyle:e,recordInsert:t,recordAnnotation:n,recordClassChange:l,removeChange:s,removeAnnotationsByFile:o,undo:i,clearChanges:r,report:d,broadcast:bn}}const Ol=localStorage.getItem("annotask:mode"),fn=U(Ol&&["select","interact","pin","arrow","draw","highlight"].includes(Ol)?Ol:"interact");function ko(e){var n;const t=(n=e.target)==null?void 0:n.tagName;if(!(t==="INPUT"||t==="TEXTAREA"||t==="SELECT"))switch(e.key.toLowerCase()){case"v":fn.value="select";break;case"i":fn.value="interact";break;case"p":fn.value="pin";break;case"a":fn.value="arrow";break;case"d":fn.value="draw";break;case"h":fn.value="highlight";break}}ot(fn,e=>localStorage.setItem("annotask:mode",e));function Pp(){return Gn(()=>document.addEventListener("keydown",ko)),En(()=>document.removeEventListener("keydown",ko)),{mode:fn}}function Op(e){const t=U(!1),n=U([]);function l(){var d;try{return((d=e.value)==null?void 0:d.contentDocument)??null}catch{return null}}function i(d){if(!e.value)return null;const a=d.getBoundingClientRect(),f=e.value.getBoundingClientRect();return new DOMRect(f.left+a.left,f.top+a.top,a.width,a.height)}function s(){const d=l();if(!d){n.value=[];return}const a=[],f=d.querySelectorAll("*"),v=d.defaultView;if(v){for(const h of f){if(h.nodeType!==1)continue;const g=v.getComputedStyle(h),k=g.display;if(!k.includes("flex")&&!k.includes("grid"))continue;const $=i(h);if(!$||$.width<20||$.height<20)continue;const R=k.includes("grid"),w=R?"grid":"flex",b=R?"grid":g.flexDirection,A={x:$.x,y:$.y,width:$.width,height:$.height,display:w,direction:b,columnGap:parseFloat(g.columnGap)||0,rowGap:parseFloat(g.rowGap)||0,el:h};if(R){const F=g.gridTemplateColumns,N=g.gridTemplateRows;A.templateColumns=F,A.templateRows=N,F&&F!=="none"&&(A.columns=F.split(/\s+/).map(Y=>parseFloat(Y)||0).filter(Y=>Y>0)),N&&N!=="none"&&(A.rows=N.split(/\s+/).map(Y=>parseFloat(Y)||0).filter(Y=>Y>0))}a.push(A)}n.value=a}}function o(){t.value=!t.value,t.value?s():n.value=[]}function r(d,a){const f=d.el;if(!f)return null;const v=f.ownerDocument.defaultView;if(!v)return null;const h=v.getComputedStyle(f),g=a==="col"?"grid-template-columns":"grid-template-rows",k=h.getPropertyValue(g)||"",$=k,R=k&&k!=="none"?k+" 1fr":"1fr";return f.style.setProperty(g,R),s(),{el:f,property:g,before:$,after:R}}function u(d){const a=d.el;if(!a)return null;const v=a.ownerDocument.createElement("div");return v.style.minWidth="60px",v.style.minHeight="40px",v.style.border="2px dashed #a855f7",v.style.borderRadius="4px",v.style.background="rgba(168,85,247,0.05)",v.setAttribute("data-annotask-placeholder","true"),a.appendChild(v),s(),{parentEl:a,childEl:v}}return{showOverlay:t,containers:n,toggle:o,scan:s,addTrack:r,addChild:u}}const Mt=U([]),Pn=U([]),wn=U([]),_n=U([]),xn=U([]),St=U("/"),On=U(null),Qn=U(null),ei=U(null),ti=U(null);let ft=0;function Rp(){function e(M){St.value=M}const t=re(()=>Mt.value.filter(M=>M.route===St.value)),n=re(()=>wn.value.filter(M=>M.route===St.value)),l=re(()=>_n.value.filter(M=>M.route===St.value)),i=re(()=>xn.value.filter(M=>M.route===St.value));function s(M,X,te){ft++;const pe={id:`pin-${ft}`,number:ft,file:M.file,line:parseInt(M.line)||0,component:M.component,elementTag:M.elementTag,elementClasses:M.elementClasses,clickX:X,clickY:te,note:"",route:St.value,timestamp:Date.now()};return Mt.value.push(pe),On.value=pe.id,pe}function o(M){Mt.value=Mt.value.filter(X=>X.id!==M),On.value===M&&(On.value=null)}function r(M,X){const te=Mt.value.find(pe=>pe.id===M);te&&(te.note=X)}function u(M,X){const te=Mt.value.find(pe=>pe.id===M);te&&(te.action=X)}function d(M,X){return Mt.value.filter(te=>te.file===M&&te.line===X)}const a=re(()=>Mt.value.find(M=>M.id===On.value)||null);function f(M,X){ft++;const te={id:`sticky-${ft}`,number:ft,x:M-60,y:X-60,width:120,height:120,text:"",color:"yellow",route:St.value,timestamp:Date.now()};return Pn.value.push(te),Qn.value=te.id,te}function v(M){Pn.value=Pn.value.filter(X=>X.id!==M),Qn.value===M&&(Qn.value=null)}function h(M,X){const te=Pn.value.find(pe=>pe.id===M);te&&Object.assign(te,X)}function g(M,X,te,pe,ge){ft++;const ye={id:`arrow-${ft}`,number:ft,fromX:M,fromY:X,toX:te,toY:pe,label:ge||"Move here",route:St.value,timestamp:Date.now()};return wn.value.push(ye),ei.value=ye.id,ye}function k(M){wn.value=wn.value.filter(X=>X.id!==M),ei.value===M&&(ei.value=null)}function $(M,X){const te=wn.value.find(pe=>pe.id===M);te&&Object.assign(te,X)}function R(M,X,te,pe){ft++;const ge={id:`section-${ft}`,number:ft,x:M,y:X,width:te,height:pe,prompt:"",route:St.value,timestamp:Date.now()};return _n.value.push(ge),ti.value=ge.id,ge}function w(M){_n.value=_n.value.filter(X=>X.id!==M),ti.value===M&&(ti.value=null)}function b(M,X){const te=_n.value.find(pe=>pe.id===M);te&&Object.assign(te,X)}const A=U(null);function F(M,X){ft++;const te={id:`hl-${ft}`,number:ft,selectedText:M,prompt:"",file:X.file,line:X.line,component:X.component,elementTag:X.elementTag,route:St.value,timestamp:Date.now()};return xn.value.push(te),A.value=te.id,te}function N(M){xn.value=xn.value.filter(X=>X.id!==M),A.value===M&&(A.value=null)}function Y(M,X){const te=xn.value.find(pe=>pe.id===M);te&&Object.assign(te,X)}function le(){Mt.value=[],Pn.value=[],wn.value=[],_n.value=[],xn.value=[],On.value=null,Qn.value=null,ei.value=null,ti.value=null}return{pins:Mt,stickyNotes:Pn,arrows:wn,drawnSections:_n,highlights:xn,routePins:t,routeArrows:n,routeSections:l,routeHighlights:i,activeRoute:St,setRoute:e,selectedPinId:On,selectedStickyId:Qn,selectedArrowId:ei,selectedSectionId:ti,selectedHighlightId:A,selectedPin:a,addPin:s,removePin:o,updatePinNote:r,setPinAction:u,getPinsForElement:d,addStickyNote:f,removeStickyNote:v,updateStickyNote:h,addArrow:g,removeArrow:k,updateArrow:$,addDrawnSection:R,removeDrawnSection:w,updateDrawnSection:b,addHighlight:F,removeHighlight:N,updateHighlight:Y,clearAll:le}}let Mp=0;const nn=new Map,li=new Map;let Tn=null,Si="*",Ti=!1,Ji=[];function oa(e){const t=e.data;if(!(!t||t.source!=="annotask-client")){if(t.type==="bridge:ready"){Si=e.origin||"*",Ti=!0;for(const n of Ji)n();Ji=[],Co("bridge:ready",t.payload);return}if(t.id&&nn.has(t.id)){const n=nn.get(t.id);clearTimeout(n.timer),nn.delete(t.id),n.resolve(t.payload);return}Co(t.type,t.payload)}}function Co(e,t){const n=li.get(e);if(n)for(const l of n)l(t)}function Lp(e){Tn=e,Ti=!1,Si="*",window.addEventListener("message",oa)}function Dp(){window.removeEventListener("message",oa);for(const[,e]of nn)clearTimeout(e.timer),e.reject(new Error("bridge destroyed"));nn.clear(),Tn=null,Ti=!1,Ji=[]}function Np(e){for(const[,t]of nn)clearTimeout(t.timer),t.reject(new Error("bridge reset"));nn.clear(),Tn=e,Ti=!1,Si="*"}function Ao(e){if(Ti){e();return}Ji.push(e)}function Vp(e,t={}){if(!Tn)return;const n={type:e,payload:t,source:"annotask-shell"};Tn.postMessage(n,Si)}function Re(e,t={},n=5e3){return new Promise((l,i)=>{if(!Tn){i(new Error("bridge not connected"));return}const s=`req-${++Mp}`,o=setTimeout(()=>{nn.delete(s),i(new Error(`bridge timeout: ${e}`))},n);nn.set(s,{resolve:l,reject:i,timer:o});const r={type:e,id:s,payload:t,source:"annotask-shell"};Tn.postMessage(r,Si)})}function $o(e,t){return li.has(e)||li.set(e,new Set),li.get(e).add(t),()=>{var n;(n=li.get(e))==null||n.delete(t)}}function Hp(e){const t=U("/"),n=U(!1);function l(){var ie;const B=(ie=e.value)==null?void 0:ie.contentWindow;B&&(Np(B),n.value=!1,Ao(()=>{n.value=!0}),$o("route:changed",ee=>{t.value=ee.path}))}function i(){var ie;const B=(ie=e.value)==null?void 0:ie.contentWindow;B&&Lp(B)}function s(){Dp()}function o(B){const ie=e.value;if(!ie)return null;const ee=ie.getBoundingClientRect();return{x:ee.left+B.x,y:ee.top+B.y,width:B.width,height:B.height}}function r(B,ie){const ee=e.value;if(!ee)return null;const Ae=ee.getBoundingClientRect();return{x:B-Ae.left,y:ie-Ae.top}}async function u(B,ie){const ee=r(B,ie);if(!ee||ee.x<0||ee.y<0)return null;const Ae=e.value;if(!Ae)return null;const He=Ae.getBoundingClientRect();if(ee.x>He.width||ee.y>He.height)return null;try{const qe=await Re("resolve:at-point",ee,500);return qe?(qe.rect=o(qe.rect)||qe.rect,qe):null}catch{return null}}async function d(B,ie,ee){try{const Ae=await Re("resolve:template-group",{file:B,line:ie,tagName:ee});return Ae.rects=Ae.rects.map(He=>o(He)||He),Ae}catch{return{eids:[],rects:[]}}}async function a(B){try{const ie=await Re("resolve:rect",{eid:B});return ie?o(ie.rect)||ie.rect:null}catch{return null}}async function f(B){if(B.length===0)return[];try{return(await Re("resolve:rects",{eids:[...B]})).rects.map(ee=>ee?o(ee)||ee:null)}catch{return B.map(()=>null)}}async function v(B,ie){try{return(await Re("style:get-computed",{eid:B,properties:ie})).styles}catch{return{}}}async function h(B,ie,ee){try{return(await Re("style:apply",{eid:B,property:ie,value:ee})).before}catch{return""}}async function g(B,ie,ee){try{return(await Re("style:apply-batch",{eids:[...B],property:ie,value:ee})).befores}catch{return B.map(()=>"")}}async function k(B,ie){try{return(await Re("class:set",{eid:B,classes:ie})).before}catch{return""}}async function $(B,ie){try{return(await Re("class:set-batch",{eids:[...B],classes:ie})).befores}catch{return B.map(()=>"")}}async function R(B,ie,ee){try{await Re("style:undo",{eid:B,property:ie,value:ee})}catch{}}async function w(B,ie){try{await Re("class:undo",{eid:B,classes:ie})}catch{}}async function b(B){try{return await Re("classify:element",{eid:B})}catch{return null}}async function A(){try{const B=await Re("layout:scan");for(const ie of B.containers)ie.rect=o(ie.rect)||ie.rect;return B.containers}catch{return[]}}async function F(B,ie){try{return await Re("layout:add-track",{eid:B,axis:ie})}catch{return null}}async function N(B){try{return await Re("layout:add-child",{eid:B})}catch{return null}}async function Y(){try{return(await Re("check:source-mapping")).hasMapping}catch{return!1}}async function le(B,ie){try{await Re("theme:inject-css",{css:B,styleId:ie})}catch{}}async function M(B){try{await Re("theme:remove-css",{styleId:B})}catch{}}async function X(){try{return(await Re("palette:scan-vars")).swatches}catch{return[]}}async function te(){try{const B=await Re("route:current");return t.value=B.path,B.path}catch{return"/"}}async function pe(B,ie,ee,Ae){try{return(await Re("insert:placeholder",{targetEid:B,position:ie,tag:ee,...Ae||{}})).placeholderEid}catch{return""}}async function ge(B){try{await Re("insert:remove",{eid:B})}catch{}}async function ye(B,ie,ee){try{await Re("move:element",{eid:B,targetEid:ie,position:ee})}catch{}}async function De(B,ie,ee,Ae){try{return await Re("insert:component",{targetEid:B,position:ie,componentName:ee,props:Ae})}catch{return{eid:"",mounted:!1}}}const Te=De;async function be(B){try{return await Re("resolve:element-context",{eid:B})}catch{return null}}async function se(B){try{return await Re("a11y:scan",{eid:B},15e3)}catch{return{violations:[],error:"timeout"}}}function xe(B){Vp("mode:set",{mode:B})}return{currentRoute:t,bridgeReady:n,mountBridge:i,unmountBridge:s,initBridgeForIframe:l,toShellRect:o,toIframeCoords:r,resolveElementAt:u,findTemplateGroup:d,getElementRect:a,getElementRects:f,getComputedStyles:v,applyStyleVia:h,applyStyleBatch:g,setClass:k,setClassBatch:$,undoStyle:R,undoClass:w,classifyElement:b,getElementContext:be,scanA11y:se,scanLayout:A,layoutAddTrack:F,layoutAddChild:N,checkSourceMapping:Y,injectThemeCss:le,removeThemeCss:M,scanColorVars:X,getCurrentRoute:te,insertPlaceholder:pe,removePlaceholder:ge,moveElement:ye,insertComponent:De,insertVueComponent:Te,setMode:xe,onBridgeEvent:$o,onBridgeReady:Ao}}function Bp(e,t,n,l){const i=U(null),s=U(null);let o=null;async function r(f){const v=n();if(v==="arrow"){o={x:f.clientX,y:f.clientY},i.value={fromX:f.clientX,fromY:f.clientY,toX:f.clientX,toY:f.clientY};const h=await t(f.clientX,f.clientY);i.value&&h&&(i.value={...i.value,fromRect:h.rect})}else v==="draw"&&(o={x:f.clientX,y:f.clientY},s.value={x:f.clientX,y:f.clientY,width:0,height:0})}let u=null;function d(f){if(!o)return;const v=n();if(v==="arrow"&&i.value){i.value={...i.value,toX:f.clientX,toY:f.clientY},u&&clearTimeout(u);const h=f.clientX,g=f.clientY;u=setTimeout(async()=>{const k=await t(h,g);i.value&&(i.value={...i.value,toRect:k==null?void 0:k.rect})},50)}else if(v==="draw"&&s.value){const h=Math.min(o.x,f.clientX),g=Math.min(o.y,f.clientY),k=Math.abs(f.clientX-o.x),$=Math.abs(f.clientY-o.y);s.value={x:h,y:g,width:k,height:$}}}async function a(f){if(!o)return;u&&(clearTimeout(u),u=null);const v=n();if(v==="arrow"&&i.value){const h=i.value;if(Math.abs(h.toX-h.fromX)>20||Math.abs(h.toY-h.fromY)>20){const g=await t(h.fromX,h.fromY),k=await t(h.toX,h.toY),$=e.addArrow(h.fromX,h.fromY,h.toX,h.toY);g&&e.updateArrow($.id,{fromFile:g.file,fromLine:parseInt(g.line)||0,fromComponent:g.component}),k&&e.updateArrow($.id,{toFile:k.file,toLine:parseInt(k.line)||0}),e.updateArrow($.id,{label:""}),l==null||l($.id,g,k)}i.value=null}else if(v==="draw"&&s.value){const h=s.value;if(h.width>30&&h.height>30){const g=await t(h.x+h.width/2,h.y),k=e.addDrawnSection(h.x,h.y,h.width,h.height);if(g){const $=h.y>((o==null?void 0:o.y)||0)?"below":"above";e.updateDrawnSection(k.id,{nearFile:g.file,nearLine:parseInt(g.line)||0,nearComponent:g.component,placement:$})}}s.value=null}o=null}return{drawingArrow:i,drawingRect:s,onCanvasPointerDown:r,onCanvasPointerMove:d,onCanvasPointerUp:a}}const jp={class:"mode-toolbar"},Up=it({__name:"ModeToolbar",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_("div",jp,[c("button",{class:J(["mode-btn mode-interact",{active:e.modelValue==="interact"}]),onClick:i[0]||(i[0]=s=>n("update:modelValue","interact")),title:"Interact (I)"},[...i[6]||(i[6]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("path",{d:"M18 8a6 6 0 0 0-12 0c0 7 6 13 6 13s6-6 6-13z"}),c("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"}),c("path",{d:"M9 21h6"})],-1)])],2),c("button",{class:J(["mode-btn",{active:e.modelValue==="select"}]),onClick:i[1]||(i[1]=s=>n("update:modelValue","select")),title:"Select (V)"},[...i[7]||(i[7]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1)])],2),i[12]||(i[12]=c("span",{class:"mode-sep"},null,-1)),c("button",{class:J(["mode-btn",{active:e.modelValue==="pin"}]),onClick:i[2]||(i[2]=s=>n("update:modelValue","pin")),title:"Pin Note (P)"},[...i[8]||(i[8]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("circle",{cx:"12",cy:"10",r:"3"}),c("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"})],-1)])],2),c("button",{class:J(["mode-btn arrow",{active:e.modelValue==="arrow"}]),onClick:i[3]||(i[3]=s=>n("update:modelValue","arrow")),title:"Arrow (A)"},[...i[9]||(i[9]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),c("polyline",{points:"12 5 19 12 12 19"})],-1)])],2),c("button",{class:J(["mode-btn draw",{active:e.modelValue==="draw"}]),onClick:i[4]||(i[4]=s=>n("update:modelValue","draw")),title:"Draw Section (D)"},[...i[10]||(i[10]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2","stroke-dasharray":"4 2"}),c("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),c("line",{x1:"8",y1:"12",x2:"16",y2:"12"})],-1)])],2),c("button",{class:J(["mode-btn mode-highlight",{active:e.modelValue==="highlight"}]),onClick:i[5]||(i[5]=s=>n("update:modelValue","highlight")),title:"Highlight Text (H)"},[...i[11]||(i[11]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("path",{d:"M12 20h9"}),c("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})],-1)])],2)]))}}),Yp=mt(Up,[["__scopeId","data-v-90efa075"]]),Kp={key:0,class:"separator"},Wp=["disabled","onClick"],zp={class:"item-label"},Gp={key:0,class:"item-shortcut"},Xp=it({__name:"ContextMenu",props:{visible:{type:Boolean},x:{},y:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,l=t,i=U(null),s=[{id:"move",label:"Move",shortcut:"M",enabled:!0},{id:"resize",label:"Resize",shortcut:"R",enabled:!0},{id:"separator"},{id:"duplicate",label:"Duplicate",enabled:!1},{id:"delete",label:"Delete",enabled:!1}];function o(d){l("action",d),l("close")}function r(d){var a;n.visible&&((a=i.value)!=null&&a.contains(d.target)||l("close"))}function u(d){d.key==="Escape"&&l("close")}return Gn(()=>{document.addEventListener("mousedown",r),document.addEventListener("keydown",u)}),En(()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",u)}),(d,a)=>(y(),_t(dc,{to:"body"},[e.visible?(y(),_("div",{key:0,ref_key:"menuRef",ref:i,class:"context-menu",style:Le({left:e.x+"px",top:e.y+"px"})},[(y(),_(ne,null,ve(s,f=>(y(),_(ne,{key:f.id},[f.id==="separator"?(y(),_("div",Kp)):(y(),_("button",{key:1,class:J(["menu-item",{disabled:!f.enabled}]),disabled:!f.enabled,onClick:v=>f.enabled&&o(f.id)},[c("span",zp,O(f.label),1),f.shortcut?(y(),_("span",Gp,O(f.shortcut),1)):j("",!0)],10,Wp))],64))),64))],4)):j("",!0)]))}}),qp=mt(Xp,[["__scopeId","data-v-b4795b28"]]),Jp=["onClick"],Zp={class:"pin-number"},Qp=["onClick"],eh=it({__name:"PinOverlay",props:{pins:{},selectedPinId:{},iframeOffset:{}},emits:["select-pin","remove-pin"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(!0),_(ne,null,ve(e.pins,s=>(y(),_("div",{key:s.id,class:J(["pin",{selected:s.id===e.selectedPinId,"has-action":!!s.action,"has-note":!!s.note}]),style:Le({left:e.iframeOffset.x+s.clickX+"px",top:e.iframeOffset.y+s.clickY+"px"}),onClick:Ve(o=>n("select-pin",s.id),["stop"])},[c("span",Zp,O(s.number),1),c("button",{class:"pin-remove",onClick:Ve(o=>n("remove-pin",s.id),["stop"])},"×",8,Qp)],14,Jp))),128))}}),th=mt(eh,[["__scopeId","data-v-006ef709"]]),nh={class:"arrow-svg"},ih=["onClick"],lh=["d","stroke","stroke-width"],sh=["cx","cy"],oh=["cx","cy"],rh=["x","y"],ah=["transform","onClick"],uh={key:0},ch=["d"],dh=["d"],fh=["d"],ph=["cx","cy"],hh=it({__name:"ArrowOverlay",props:{arrows:{},selectedId:{},drawingArrow:{}},emits:["select","remove"],setup(e,{emit:t}){const n=t;function l(r,u,d,a,f,v){let h=r,g=u;if(f){const N=f.x+f.width/2,Y=f.y+f.height/2,le=Math.atan2(a-Y,d-N);h=N+Math.cos(le)*(f.width/2+4),g=Y+Math.sin(le)*(f.height/2+4)}let k=d,$=a;if(v){const N=v.x+v.width/2,Y=v.y+v.height/2,le=Math.atan2(g-Y,h-N);k=N+Math.cos(le)*(v.width/2+4),$=Y+Math.sin(le)*(v.height/2+4)}const R=k-h,w=h+R*.4,b=g,A=h+R*.6;return`M ${h} ${g} C ${w} ${b}, ${A} ${$}, ${k} ${$}`}function i(r,u,d,a){const f=d-r,v=r+f*.4,h=u,g=r+f*.6;return`M ${r} ${u} C ${v} ${h}, ${g} ${a}, ${d} ${a}`}function s(r,u,d,a){return{x:(r+d)/2,y:(u+a)/2-10}}function o(r){return`M ${r.x} ${r.y} h ${r.width} v ${r.height} h ${-r.width} Z`}return(r,u)=>(y(),_("svg",nh,[u[1]||(u[1]=c("defs",null,[c("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[c("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#ef4444"})]),c("marker",{id:"arrowhead-drawing",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[c("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})])],-1)),(y(!0),_(ne,null,ve(e.arrows,d=>(y(),_("g",{key:d.id,onClick:Ve(a=>n("select",d.id),["stop"])},[c("path",{d:i(d.fromX,d.fromY,d.toX,d.toY),fill:"none",stroke:d.id===e.selectedId?"#dc2626":"#ef4444","stroke-width":d.id===e.selectedId?3:2,"stroke-dasharray":"6 3","marker-end":"url(#arrowhead)",class:"arrow-path"},null,8,lh),c("circle",{cx:d.fromX,cy:d.fromY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,sh),c("circle",{cx:d.toX,cy:d.toY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,oh),d.label?(y(),_("text",{key:0,x:s(d.fromX,d.fromY,d.toX,d.toY).x,y:s(d.fromX,d.fromY,d.toX,d.toY).y,"text-anchor":"middle",class:"arrow-label"},O(d.label),9,rh)):j("",!0),d.id===e.selectedId?(y(),_("g",{key:1,class:"arrow-delete",transform:`translate(${(d.fromX+d.toX)/2+20}, ${(d.fromY+d.toY)/2-20})`,onClick:Ve(a=>n("remove",d.id),["stop"])},[...u[0]||(u[0]=[c("circle",{r:"8",fill:"#ef4444"},null,-1),c("text",{"text-anchor":"middle",dy:"3.5",fill:"white","font-size":"10","font-weight":"bold"},"×",-1)])],8,ah)):j("",!0)],8,ih))),128)),e.drawingArrow?(y(),_("g",uh,[e.drawingArrow.fromRect?(y(),_("path",{key:0,d:o(e.drawingArrow.fromRect),fill:"none",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,ch)):j("",!0),e.drawingArrow.toRect?(y(),_("path",{key:1,d:o(e.drawingArrow.toRect),fill:"rgba(59,130,246,0.08)",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,dh)):j("",!0),c("path",{d:l(e.drawingArrow.fromX,e.drawingArrow.fromY,e.drawingArrow.toX,e.drawingArrow.toY,e.drawingArrow.fromRect,e.drawingArrow.toRect),fill:"none",stroke:"#3b82f6","stroke-width":"2.5","stroke-dasharray":"6 3","marker-end":"url(#arrowhead-drawing)",opacity:"0.8"},null,8,fh),c("circle",{cx:e.drawingArrow.fromX,cy:e.drawingArrow.fromY,r:"5",fill:"#3b82f6",opacity:"0.6"},null,8,ph)])):j("",!0)]))}}),vh=mt(hh,[["__scopeId","data-v-1d2c9ec9"]]),gh=["onClick"],mh={class:"section-header"},yh={class:"section-badge"},bh={key:0,class:"section-placement"},wh=["onClick"],_h=["value","onInput","onBlur"],xh={class:"section-dims"},kh=it({__name:"DrawnSectionOverlay",props:{sections:{},selectedId:{},drawingRect:{}},emits:["select","remove","update-prompt","commit"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_(ne,null,[e.drawingRect&&e.drawingRect.width>5&&e.drawingRect.height>5?(y(),_("div",{key:0,class:"section-preview",style:Le({left:e.drawingRect.x+"px",top:e.drawingRect.y+"px",width:e.drawingRect.width+"px",height:e.drawingRect.height+"px"})},null,4)):j("",!0),(y(!0),_(ne,null,ve(e.sections,s=>(y(),_("div",{key:s.id,class:J(["drawn-section",{selected:s.id===e.selectedId}]),style:Le({left:s.x+"px",top:s.y+"px",width:s.width+"px",height:s.height+"px"}),onClick:Ve(o=>n("select",s.id),["stop"])},[c("div",mh,[c("span",yh,"#"+O(s.number)+" New Section",1),s.placement?(y(),_("span",bh,O(s.placement),1)):j("",!0),c("button",{class:"section-delete",onClick:Ve(o=>n("remove",s.id),["stop"])},"×",8,wh)]),c("textarea",{class:"section-prompt",value:s.prompt,placeholder:"Describe what should go here...",onInput:o=>n("update-prompt",s.id,o.target.value),onBlur:o=>n("commit",s.id),onClick:i[0]||(i[0]=Ve(()=>{},["stop"]))},null,40,_h),c("div",xh,O(Math.round(s.width))+"×"+O(Math.round(s.height))+"px ",1)],14,gh))),128))],64))}}),Ch=mt(kh,[["__scopeId","data-v-d10f1f9f"]]),Ah={class:"notes-tab"},$h={key:0,class:"quick-actions"},Sh={class:"action-grid"},Th=["onClick"],Eh={key:1,class:"add-note"},Fh=["onKeydown"],Ih={class:"task-toggles"},Ph={class:"history-toggle"},Oh=["checked"],Rh={class:"history-toggle"},Mh=["checked"],Lh={class:"note-actions"},Dh=["disabled"],Nh={key:2,class:"element-pins"},Vh=["onClick"],Hh={class:"pin-content"},Bh={key:0,class:"pin-action"},jh={key:1,class:"pin-note"},Uh={key:2,class:"pin-empty"},Yh=["onClick"],Kh={class:"all-pins"},Wh={class:"section-label"},zh={key:0,class:"empty-hint"},Gh=["onClick"],Xh={class:"pin-content"},qh={class:"pin-file"},Jh={key:0,class:"pin-action"},Zh={key:1,class:"pin-note"},Qh=["onClick"],ev={key:3,class:"task-review"},tv={class:"section-label"},nv={class:"task-header"},iv={class:"task-desc"},lv={class:"task-file"},sv={key:0,class:"task-feedback"},ov={class:"task-actions"},rv=["onClick"],av=["value","onInput"],uv=["onClick"],cv=["onClick"],dv=it({__name:"NotesTab",props:{pins:{},selectedPinId:{},selectedElement:{},elementRole:{},tasks:{},includeHistory:{type:Boolean},includeElementContext:{type:Boolean}},emits:["add-note","add-action","add-task","update:includeHistory","update:includeElementContext","select-pin","accept-task","deny-task","cancel-task","update-note","remove-pin"],setup(e,{emit:t}){const n=e,l=U({}),i=t,s=U(""),o=re(()=>n.selectedElement?n.pins.filter(v=>v.file===n.selectedElement.file&&v.line===parseInt(n.selectedElement.line)):[]),r=[{action:"add_column",label:"+ Column"},{action:"add_row",label:"+ Row"},{action:"change_direction",label:"Direction"},{action:"set_gap",label:"Set Gap"}],u=[{action:"move_up",label:"Move Up"},{action:"move_down",label:"Move Down"},{action:"wrap_container",label:"Wrap"},{action:"duplicate",label:"Duplicate"}],d=[{action:"delete",label:"Delete"}],a=re(()=>{const v=n.elementRole;return v==="container"?[...r,...d]:v==="content"?[...u,...d]:d});function f(){const v=s.value.trim();v&&(i("add-note",v),s.value="")}return(v,h)=>(y(),_("div",Ah,[e.selectedElement?(y(),_("div",$h,[h[4]||(h[4]=c("span",{class:"section-label"},"Quick Actions",-1)),c("div",Sh,[(y(!0),_(ne,null,ve(a.value,g=>(y(),_("button",{key:g.action,class:"action-btn",onClick:k=>i("add-action",g.action,g.label)},O(g.label),9,Th))),128))])])):j("",!0),e.selectedElement?(y(),_("div",Eh,[h[7]||(h[7]=c("span",{class:"section-label"},"Add Task",-1)),Pe(c("textarea",{"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),class:"note-input",rows:"3",placeholder:"Describe what you want to change...",onKeydown:Tt(Ve(f,["ctrl"]),["enter"])},null,40,Fh),[[Be,s.value]]),c("div",Ih,[c("label",Ph,[c("input",{type:"checkbox",checked:e.includeHistory,onChange:h[1]||(h[1]=g=>i("update:includeHistory",g.target.checked))},null,40,Oh),h[5]||(h[5]=c("span",null,"History",-1))]),c("label",Rh,[c("input",{type:"checkbox",checked:e.includeElementContext,onChange:h[2]||(h[2]=g=>i("update:includeElementContext",g.target.checked))},null,40,Mh),h[6]||(h[6]=c("span",null,"DOM context",-1))])]),c("div",Lh,[c("button",{class:"submit-btn",disabled:!s.value.trim(),onClick:f},"Add Task",8,Dh)])])):j("",!0),o.value.length?(y(),_("div",Nh,[h[8]||(h[8]=c("span",{class:"section-label"},"Notes on this element",-1)),(y(!0),_(ne,null,ve(o.value,g=>(y(),_("div",{key:g.id,class:"pin-item",onClick:k=>i("select-pin",g.id)},[c("span",{class:J(["pin-badge",{action:g.action}])},O(g.number),3),c("div",Hh,[g.action?(y(),_("span",Bh,O(g.action),1)):j("",!0),g.note?(y(),_("span",jh,O(g.note),1)):j("",!0),!g.note&&!g.action?(y(),_("span",Uh,"No note yet")):j("",!0)]),c("button",{class:"pin-delete",onClick:Ve(k=>i("remove-pin",g.id),["stop"])},"×",8,Yh)],8,Vh))),128))])):j("",!0),c("div",Kh,[c("span",Wh,"All Pins ("+O(e.pins.length)+")",1),e.pins.length===0?(y(),_("div",zh," Press P then click on the page to add pins ")):j("",!0),(y(!0),_(ne,null,ve(e.pins,g=>(y(),_("div",{key:g.id,class:J(["pin-item",{selected:g.id===e.selectedPinId}]),onClick:k=>i("select-pin",g.id)},[c("span",{class:J(["pin-badge",{action:g.action}])},O(g.number),3),c("div",Xh,[c("code",qh,O(g.file)+":"+O(g.line),1),g.action?(y(),_("span",Jh,O(g.action),1)):j("",!0),g.note?(y(),_("span",Zh,O(g.note),1)):j("",!0)]),c("button",{class:"pin-delete",onClick:Ve(k=>i("remove-pin",g.id),["stop"])},"×",8,Qh)],10,Gh))),128))]),e.tasks.length>0?(y(),_("div",ev,[c("span",tv,"Tasks ("+O(e.tasks.length)+")",1),(y(!0),_(ne,null,ve(e.tasks,g=>(y(),_("div",{key:g.id,class:J(["task-item",g.status])},[c("div",nv,[c("span",{class:J(["task-status-badge",g.status])},O(g.status),3),c("span",iv,O(g.description),1)]),c("code",lv,O(g.file),1),g.feedback?(y(),_("div",sv,"Feedback: "+O(g.feedback),1)):j("",!0),c("div",ov,[g.status==="review"?(y(),_(ne,{key:0},[c("button",{class:"task-accept",onClick:k=>i("accept-task",g.id)},"Accept",8,rv),c("input",{value:l.value[g.id]||"",onInput:k=>l.value[g.id]=k.target.value,class:"deny-input",placeholder:"Reason...",onClick:h[3]||(h[3]=Ve(()=>{},["stop"]))},null,40,av),c("button",{class:"task-deny",onClick:k=>{i("deny-task",g.id,l.value[g.id]||""),delete l.value[g.id]}},"Deny",8,uv)],64)):j("",!0),c("button",{class:"task-cancel",onClick:k=>i("cancel-task",g.id)},"×",8,cv)])],2))),128))])):j("",!0)]))}}),fv=mt(dv,[["__scopeId","data-v-f9630085"]]),pv={class:"prompt-header"},hv={class:"prompt-text-preview"},vv=["onClick"],gv={class:"hl-header"},mv={class:"hl-badge"},yv={class:"hl-file"},bv=["onClick"],wv={class:"hl-text"},_v={key:0,class:"hl-prompt"},xv=["value","onInput"],kv=it({__name:"TextHighlightOverlay",props:{highlights:{},selectedId:{},pending:{}},emits:["select","remove","update-prompt","submit-pending","cancel-pending"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_(ne,null,[e.pending?(y(),_("div",{key:0,class:"highlight-prompt",style:Le({left:e.pending.x+"px",top:e.pending.y+"px"})},[c("div",pv,[c("span",hv,'"'+O(e.pending.text.substring(0,50))+O(e.pending.text.length>50?"...":"")+'"',1)]),c("input",{class:"prompt-input",placeholder:"What should this text become?",autofocus:"",onKeydown:[i[0]||(i[0]=Tt(s=>n("submit-pending",s.target.value),["enter"])),i[1]||(i[1]=Tt(s=>n("cancel-pending"),["escape"]))]},null,32),i[3]||(i[3]=c("div",{class:"prompt-hint"},"Enter to submit, Escape to cancel",-1))],4)):j("",!0),(y(!0),_(ne,null,ve(e.highlights,s=>(y(),_("div",{key:s.id,class:J(["text-highlight-card",{selected:s.id===e.selectedId}]),onClick:Ve(o=>n("select",s.id),["stop"])},[c("div",gv,[c("span",mv,"#"+O(s.number),1),c("code",yv,O(s.file)+":"+O(s.line),1),c("button",{class:"hl-delete",onClick:Ve(o=>n("remove",s.id),["stop"])},"×",8,bv)]),c("div",wv,'"'+O(s.selectedText)+'"',1),s.prompt?(y(),_("div",_v,"→ "+O(s.prompt),1)):j("",!0),s.id===e.selectedId?(y(),_("input",{key:1,class:"hl-prompt-edit",value:s.prompt,placeholder:"What should this become?",onInput:o=>n("update-prompt",s.id,o.target.value),onClick:i[2]||(i[2]=Ve(()=>{},["stop"]))},null,40,xv)):j("",!0)],10,vv))),128))],64))}}),Cv=mt(kv,[["__scopeId","data-v-b4a28a2c"]]),Av={class:"layout-label"},$v=["onPointerdown"],Sv=["onPointerdown"],Tv=["onClick"],Ev=["onClick"],Fv=["onClick"],Iv=["onClick"],Pv=it({__name:"LayoutOverlay",props:{containers:{}},emits:["grid-line-drag","add-track","add-child"],setup(e,{emit:t}){const n=t;function l(u){var d,a;if(u.display==="grid"){const f=((d=u.columns)==null?void 0:d.length)||"?",v=((a=u.rows)==null?void 0:a.length)||"?";return`grid ${f}×${v}`}return u.direction==="row"?"flex →":u.direction==="row-reverse"?"flex ←":u.direction==="column"?"flex ↓":u.direction==="column-reverse"?"flex ↑":"flex"}function i(u){if(!u.columns||u.columns.length<=1)return[];const d=[];let a=0;for(let f=0;f<u.columns.length-1;f++)a+=u.columns[f],u.columnGap&&(a+=u.columnGap/2),d.push({x:a,height:u.height}),u.columnGap&&(a+=u.columnGap/2);return d}function s(u){if(!u.rows||u.rows.length<=1)return[];const d=[];let a=0;for(let f=0;f<u.rows.length-1;f++)a+=u.rows[f],u.rowGap&&(a+=u.rowGap/2),d.push({y:a,width:u.width}),u.rowGap&&(a+=u.rowGap/2);return d}function o(u){return u.width>60&&u.height>60}function r(u){return u.display==="grid"||u.direction==="row"||u.direction==="row-reverse"}return(u,d)=>(y(!0),_(ne,null,ve(e.containers,(a,f)=>(y(),_(ne,{key:f},[c("div",{class:J(["layout-outline",a.display]),style:Le({left:a.x+"px",top:a.y+"px",width:a.width+"px",height:a.height+"px"})},[c("span",Av,O(l(a)),1)],6),(y(!0),_(ne,null,ve(i(a),(v,h)=>(y(),_("div",{key:"col-"+f+"-"+h,class:"grid-line col",style:Le({left:a.x+v.x+"px",top:a.y+"px",height:v.height+"px"}),onPointerdown:Ve(g=>n("grid-line-drag",a,"col",h,g),["stop","prevent"])},null,44,$v))),128)),(y(!0),_(ne,null,ve(s(a),(v,h)=>(y(),_("div",{key:"row-"+f+"-"+h,class:"grid-line row",style:Le({left:a.x+"px",top:a.y+v.y+"px",width:v.width+"px"}),onPointerdown:Ve(g=>n("grid-line-drag",a,"row",h,g),["stop","prevent"])},null,44,Sv))),128)),o(a)?(y(),_(ne,{key:0},[a.display==="grid"?(y(),_(ne,{key:0},[c("button",{class:"add-track-btn col",style:Le({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add column",onClick:Ve(v=>n("add-track",a,"col"),["stop"])},"+col",12,Tv),c("button",{class:"add-track-btn row",style:Le({left:a.x+a.width/2-16+"px",top:a.y+a.height+4+"px"}),title:"Add row",onClick:Ve(v=>n("add-track",a,"row"),["stop"])},"+row",12,Ev)],64)):(y(),_(ne,{key:1},[r(a)?(y(),_("button",{key:0,class:"add-child-btn",style:Le({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add item",onClick:Ve(v=>n("add-child",a),["stop"])},"+",12,Fv)):(y(),_("button",{key:1,class:"add-child-btn",style:Le({left:a.x+a.width/2-11+"px",top:a.y+a.height+4+"px"}),title:"Add item",onClick:Ve(v=>n("add-child",a),["stop"])},"+",12,Iv))],64))],64)):j("",!0)],64))),128))}}),Ov=mt(Pv,[["__scopeId","data-v-ed4fb8a3"]]),So="annotask-theme-preview",Dt=U(new Map);function Rv(){return Dt.value.size===0?"":`:root {
|
|
18
|
+
${Array.from(Dt.value.entries()).map(([t,n])=>` ${t}: ${n} !important;`).join(`
|
|
19
|
+
`)}
|
|
20
|
+
}`}function Mv(e){var t;try{return((t=e.value)==null?void 0:t.contentDocument)??null}catch{return null}}function Lv(e){const t=Rv();let n=e.getElementById(So);if(!t){n==null||n.remove();return}n||(n=e.createElement("style"),n.id=So,e.head.appendChild(n)),n.textContent=t}function Dv(e){function t(){const o=Mv(e);o&&Lv(o)}function n(o,r){const u=new Map(Dt.value);u.set(o,r),Dt.value=u}function l(o){const r=new Map(Dt.value);r.delete(o),Dt.value=r}function i(){Dt.value=new Map}ot(Dt,t,{deep:!0});function s(){t()}return ot(e,(o,r)=>{r&&r.removeEventListener("load",s),o&&(o.addEventListener("load",s),t())},{immediate:!0}),{overrides:Dt,setOverride:n,removeOverride:l,clearAll:i,hasChanges:()=>Dt.value.size>0}}const Ln=U([]),ns=U(!1);async function Zi(){try{ns.value=!0;const t=await(await fetch("/__annotask/api/tasks")).json();Ln.value=t.tasks||[]}catch{}finally{ns.value=!1}}async function Nv(e){try{const n=await(await fetch("/__annotask/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return await Zi(),n}catch{return null}}async function Vv(e,t,n){try{await fetch(`/__annotask/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t,...n?{feedback:n}:{}})}),await Zi()}catch{}}let To=!1;function ra(){To||(To=!0,Zi(),ia("tasks:updated",l=>{const i=l;Ln.value=(i==null?void 0:i.tasks)||[]}));const e=re(()=>Ln.value.filter(l=>l.status==="pending")),t=re(()=>Ln.value.filter(l=>l.status==="review")),n=re(()=>Ln.value.filter(l=>l.status==="denied"));return{tasks:Ln,pendingTasks:e,reviewTasks:t,deniedTasks:n,isLoading:ns,createTask:Nv,updateTaskStatus:Vv,fetchTasks:Zi}}const Hv={class:"theme-page"},Bv={class:"theme-header"},jv={key:0,class:"theme-actions"},Uv={class:"theme-change-count"},Yv={key:0,class:"theme-empty"},Kv={key:1,class:"theme-empty"},Wv={class:"theme-tabs"},zv={key:0,class:"theme-tab-badge"},Gv={key:0,class:"theme-tab-badge"},Xv={key:0,class:"theme-tab-badge"},qv={key:0,class:"theme-tab-badge"},Jv={class:"theme-content"},Zv={key:0,class:"theme-section"},Qv={key:0,class:"theme-section-empty"},eg={class:"token-info"},tg={class:"token-source"},ng={class:"token-controls"},ig={class:"color-swatch-wrapper"},lg=["value","onChange"],sg={key:0,class:"no-preview-badge",title:"No CSS variable — preview unavailable"},og={class:"token-info"},rg={class:"token-role new-badge"},ag={class:"token-controls"},ug={class:"token-value-ro"},cg=["onClick"],dg={key:1,class:"add-token-form"},fg={class:"add-actions"},pg=["disabled"],hg={key:1,class:"theme-section"},vg={key:0,class:"theme-section-empty"},gg={class:"token-info"},mg={class:"token-source"},yg={class:"token-controls"},bg=["value","onChange"],wg={class:"token-info"},_g={class:"token-role new-badge"},xg={class:"token-controls"},kg={class:"token-value-ro"},Cg=["onClick"],Ag={key:1,class:"add-token-form"},$g={class:"add-actions"},Sg=["disabled"],Tg={key:3,class:"theme-section-empty"},Eg={class:"token-info"},Fg={class:"token-source"},Ig={class:"token-controls"},Pg=["value","onChange"],Og={class:"token-info"},Rg={class:"token-role new-badge"},Mg={class:"token-controls"},Lg={class:"token-value-ro"},Dg=["onClick"],Ng={key:4,class:"add-token-form"},Vg={class:"add-actions"},Hg=["disabled"],Bg={key:6,class:"section-subtitle",style:{"margin-top":"16px"}},jg={key:7,class:"weight-chips"},Ug={key:2,class:"theme-section"},Yg={key:0,class:"theme-section-empty"},Kg={class:"token-info"},Wg={class:"token-source"},zg={class:"token-controls"},Gg=["value","onChange"],Xg={class:"spacing-preview"},qg={class:"token-info"},Jg={class:"token-role new-badge"},Zg={class:"token-controls"},Qg={class:"token-value-ro"},e0=["onClick"],t0={key:1,class:"add-token-form"},n0={class:"add-actions"},i0=["disabled"],l0={key:3,class:"theme-section"},s0={key:0,class:"theme-section-empty"},o0={class:"token-info"},r0={class:"token-source"},a0={class:"token-controls"},u0=["value","onChange"],c0={class:"token-info"},d0={class:"token-role new-badge"},f0={class:"token-controls"},p0={class:"token-value-ro"},h0=["onClick"],v0={key:1,class:"add-token-form"},g0={class:"add-actions"},m0=["disabled"],y0={key:4,class:"theme-section"},b0={key:0,class:"theme-section-empty"},w0={key:1,class:"library-card"},_0={class:"library-name"},x0={key:0,class:"library-version"},k0={key:2,class:"theme-section-empty"},C0={class:"library-card"},A0={class:"library-name"},$0={key:0,class:"library-version"},S0={key:0,class:"library-components"},T0={key:4,class:"library-card"},E0={class:"library-name"},F0={class:"library-version"},I0=it({__name:"ThemePage",props:{iframeRef:{}},setup(e){const t=e,{designSpec:n,isInitialized:l,isLoading:i}=Cs(),s=Dv(re(()=>t.iframeRef)),o=ra(),r=U("colors"),u=U(new Map),d=U(new Map),a=U(new Map),f=U(new Map),v=U(new Map),h=U([]),g=U([]),k=U([]),$=U([]),R=U([]),w=U(null),b=U(""),A=U(""),F=U(""),N=re(()=>{var q;try{return((q=t.iframeRef)==null?void 0:q.contentDocument)??null}catch{return null}}),Y=re(()=>{var q;return((q=n.value)==null?void 0:q.colors)??[]}),le=re(()=>{var q,L;return((L=(q=n.value)==null?void 0:q.typography)==null?void 0:L.families)??[]}),M=re(()=>{var q,L;return((L=(q=n.value)==null?void 0:q.typography)==null?void 0:L.scale)??[]}),X=re(()=>{var q,L;return((L=(q=n.value)==null?void 0:q.typography)==null?void 0:L.weights)??[]}),te=re(()=>{var q;return((q=n.value)==null?void 0:q.spacing)??[]}),pe=re(()=>{var q,L;return((L=(q=n.value)==null?void 0:q.borders)==null?void 0:L.radius)??[]}),ge=re(()=>{var q;return((q=n.value)==null?void 0:q.icons)??null}),ye=re(()=>{var q;return((q=n.value)==null?void 0:q.components)??null}),De=re(()=>u.value.size+d.value.size+a.value.size+f.value.size+v.value.size+h.value.length+g.value.length+k.value.length+$.value.length+R.value.length);function Te(q,L){u.value.set(q.role,L),u.value=new Map(u.value),q.cssVar&&s.setOverride(q.cssVar,L)}function be(q,L,we){we.value.set(q.role,L),we.value=new Map(we.value),q.cssVar&&s.setOverride(q.cssVar,L)}function se(q,L){return L.get(q.role)??q.value}function xe(q,L){const we=L.get(q.role);return we!==void 0&&we!==q.value}function B(q){w.value=q,b.value="",A.value="",F.value=""}function ie(){w.value=null}function ee(){if(!b.value.trim()||!A.value.trim())return;const q={role:b.value.trim(),value:A.value.trim(),cssVar:F.value.trim()||void 0,source:"new"};switch(w.value){case"colors":h.value=[...h.value,q];break;case"families":g.value=[...g.value,q];break;case"scale":k.value=[...k.value,q];break;case"spacing":$.value=[...$.value,q];break;case"radius":R.value=[...R.value,q];break}q.cssVar&&s.setOverride(q.cssVar,q.value),w.value=null}function Ae(q,L){const we=q.value[L];we.cssVar&&s.removeOverride(we.cssVar),q.value=q.value.filter((P,me)=>me!==L)}function He(){var me,m;const q=[],L=((m=(me=n.value)==null?void 0:me.framework)==null?void 0:m.styling)??[];function we(x,E,V){const T=V.get(E.role);!T||T===E.value||q.push({type:"theme_update",description:`Update ${x} "${E.role}" from ${E.value} to ${T}`,file:E.sourceFile||"",line:E.sourceLine||0,intent:`Change the ${E.role} ${x} token to ${T} across the application`,action:"theme_update",context:{category:x,role:E.role,before:E.value,after:T,cssVar:E.cssVar||null,source:E.source,sourceFile:E.sourceFile||null,sourceLine:E.sourceLine||null,styling:L}})}function P(x,E){q.push({type:"theme_update",description:`Add new ${x} token "${E.role}" with value ${E.value}`,file:"",line:0,intent:`Add a new ${E.role} ${x} token with value ${E.value} to the design system`,action:"theme_update",context:{category:x,role:E.role,before:null,after:E.value,cssVar:E.cssVar||null,source:null,sourceFile:null,sourceLine:null,styling:L,isNew:!0}})}for(const x of Y.value)we("colors",x,u.value);for(const x of le.value)we("typography.families",x,d.value);for(const x of M.value)we("typography.scale",x,a.value);for(const x of te.value)we("spacing",x,f.value);for(const x of pe.value)we("borders.radius",x,v.value);for(const x of h.value)P("colors",x);for(const x of g.value)P("typography.families",x);for(const x of k.value)P("typography.scale",x);for(const x of $.value)P("spacing",x);for(const x of R.value)P("borders.radius",x);return q}async function qe(){const q=He();for(const L of q)await o.createTask(L);u.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,v.value=new Map,h.value=[],g.value=[],k.value=[],$.value=[],R.value=[],s.clearAll()}function Xe(){u.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,v.value=new Map,h.value=[],g.value=[],k.value=[],$.value=[],R.value=[],s.clearAll()}return(q,L)=>{var we;return y(),_("div",Hv,[c("div",Bv,[L[25]||(L[25]=c("span",{class:"theme-title"},"Design Tokens",-1)),De.value>0?(y(),_("div",jv,[c("span",Uv,O(De.value)+" change"+O(De.value===1?"":"s"),1),c("button",{class:"theme-btn commit",onClick:qe},"Commit"),c("button",{class:"theme-btn discard",onClick:Xe},"Discard")])):j("",!0)]),Z(i)?(y(),_("div",Yv,[...L[26]||(L[26]=[c("p",null,"Loading design spec...",-1)])])):Z(l)?(y(),_(ne,{key:2},[c("div",Wv,[c("button",{class:J(["theme-tab",{active:r.value==="colors"}]),onClick:L[0]||(L[0]=P=>r.value="colors")},[L[28]||(L[28]=Qe(" Colors ",-1)),u.value.size+h.value.length?(y(),_("span",zv,O(u.value.size+h.value.length),1)):j("",!0)],2),c("button",{class:J(["theme-tab",{active:r.value==="typography"}]),onClick:L[1]||(L[1]=P=>r.value="typography")},[L[29]||(L[29]=Qe(" Type ",-1)),d.value.size+a.value.size+g.value.length+k.value.length?(y(),_("span",Gv,O(d.value.size+a.value.size+g.value.length+k.value.length),1)):j("",!0)],2),c("button",{class:J(["theme-tab",{active:r.value==="spacing"}]),onClick:L[2]||(L[2]=P=>r.value="spacing")},[L[30]||(L[30]=Qe(" Spacing ",-1)),f.value.size+$.value.length?(y(),_("span",Xv,O(f.value.size+$.value.length),1)):j("",!0)],2),c("button",{class:J(["theme-tab",{active:r.value==="borders"}]),onClick:L[3]||(L[3]=P=>r.value="borders")},[L[31]||(L[31]=Qe(" Borders ",-1)),v.value.size+R.value.length?(y(),_("span",qv,O(v.value.size+R.value.length),1)):j("",!0)],2),c("button",{class:J(["theme-tab",{active:r.value==="libraries"}]),onClick:L[4]||(L[4]=P=>r.value="libraries")},"Libraries",2)]),c("div",Jv,[r.value==="colors"?(y(),_("div",Zv,[Y.value.length===0&&h.value.length===0?(y(),_("div",Qv,"No color tokens detected")):j("",!0),(y(!0),_(ne,null,ve(Y.value,P=>(y(),_("div",{key:P.role,class:"token-row"},[c("div",eg,[c("span",{class:J(["token-role",{edited:xe(P,u.value)}])},O(P.role),3),c("code",tg,O(P.source),1)]),c("div",ng,[c("div",ig,[et(Jl,{modelValue:se(P,u.value),iframeDoc:N.value,"onUpdate:modelValue":me=>Te(P,me)},null,8,["modelValue","iframeDoc","onUpdate:modelValue"])]),c("input",{class:"token-value-input color-hex",value:se(P,u.value),onChange:me=>Te(P,me.target.value)},null,40,lg),P.cssVar?j("",!0):(y(),_("span",sg,"no preview"))])]))),128)),(y(!0),_(ne,null,ve(h.value,(P,me)=>(y(),_("div",{key:"new-"+me,class:"token-row new"},[c("div",og,[c("span",rg,"+ "+O(P.role),1)]),c("div",ag,[c("div",{class:"color-swatch-inline",style:Le({background:P.value})},null,4),c("code",ug,O(P.value),1),c("button",{class:"token-remove",onClick:m=>Ae(h.value,me)},"×",8,cg)])]))),128)),w.value==="colors"?(y(),_("div",dg,[Pe(c("input",{"onUpdate:modelValue":L[5]||(L[5]=P=>b.value=P),class:"add-input",placeholder:"Role (e.g. info)"},null,512),[[Be,b.value]]),Pe(c("input",{"onUpdate:modelValue":L[6]||(L[6]=P=>A.value=P),class:"add-input",placeholder:"Value (e.g. #3b82f6)"},null,512),[[Be,A.value]]),Pe(c("input",{"onUpdate:modelValue":L[7]||(L[7]=P=>F.value=P),class:"add-input",placeholder:"CSS var (optional, e.g. --color-info)"},null,512),[[Be,F.value]]),c("div",fg,[c("button",{class:"theme-btn commit small",onClick:ee,disabled:!b.value.trim()||!A.value.trim()},"Add",8,pg),c("button",{class:"theme-btn discard small",onClick:ie},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:L[8]||(L[8]=P=>B("colors"))},"+ Add Color"))])):j("",!0),r.value==="typography"?(y(),_("div",hg,[L[32]||(L[32]=c("h4",{class:"section-subtitle"},"Font Families",-1)),le.value.length===0&&g.value.length===0?(y(),_("div",vg,"No font families detected")):j("",!0),(y(!0),_(ne,null,ve(le.value,P=>(y(),_("div",{key:P.role,class:"token-row"},[c("div",gg,[c("span",{class:J(["token-role",{edited:xe(P,d.value)}])},O(P.role),3),c("code",mg,O(P.source),1)]),c("div",yg,[c("input",{class:"token-value-input wide",value:se(P,d.value),onChange:me=>be(P,me.target.value,d.value)},null,40,bg)])]))),128)),(y(!0),_(ne,null,ve(g.value,(P,me)=>(y(),_("div",{key:"new-"+me,class:"token-row new"},[c("div",wg,[c("span",_g,"+ "+O(P.role),1)]),c("div",xg,[c("code",kg,O(P.value),1),c("button",{class:"token-remove",onClick:m=>Ae(g.value,me)},"×",8,Cg)])]))),128)),w.value==="families"?(y(),_("div",Ag,[Pe(c("input",{"onUpdate:modelValue":L[9]||(L[9]=P=>b.value=P),class:"add-input",placeholder:"Role (e.g. display)"},null,512),[[Be,b.value]]),Pe(c("input",{"onUpdate:modelValue":L[10]||(L[10]=P=>A.value=P),class:"add-input",placeholder:"Value (e.g. Poppins, sans-serif)"},null,512),[[Be,A.value]]),Pe(c("input",{"onUpdate:modelValue":L[11]||(L[11]=P=>F.value=P),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Be,F.value]]),c("div",$g,[c("button",{class:"theme-btn commit small",onClick:ee,disabled:!b.value.trim()||!A.value.trim()},"Add",8,Sg),c("button",{class:"theme-btn discard small",onClick:ie},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:L[12]||(L[12]=P=>B("families"))},"+ Add Family")),L[33]||(L[33]=c("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Font Scale",-1)),M.value.length===0&&k.value.length===0?(y(),_("div",Tg,"No font sizes detected")):j("",!0),(y(!0),_(ne,null,ve(M.value,P=>(y(),_("div",{key:P.role,class:"token-row"},[c("div",Eg,[c("span",{class:J(["token-role",{edited:xe(P,a.value)}])},O(P.role),3),c("code",Fg,O(P.source),1)]),c("div",Ig,[c("input",{class:"token-value-input",value:se(P,a.value),onChange:me=>be(P,me.target.value,a.value)},null,40,Pg),c("div",{class:"font-size-preview",style:Le({fontSize:se(P,a.value)})},"Aa",4)])]))),128)),(y(!0),_(ne,null,ve(k.value,(P,me)=>(y(),_("div",{key:"new-"+me,class:"token-row new"},[c("div",Og,[c("span",Rg,"+ "+O(P.role),1)]),c("div",Mg,[c("code",Lg,O(P.value),1),c("button",{class:"token-remove",onClick:m=>Ae(k.value,me)},"×",8,Dg)])]))),128)),w.value==="scale"?(y(),_("div",Ng,[Pe(c("input",{"onUpdate:modelValue":L[13]||(L[13]=P=>b.value=P),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[Be,b.value]]),Pe(c("input",{"onUpdate:modelValue":L[14]||(L[14]=P=>A.value=P),class:"add-input",placeholder:"Value (e.g. 1.5rem)"},null,512),[[Be,A.value]]),Pe(c("input",{"onUpdate:modelValue":L[15]||(L[15]=P=>F.value=P),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Be,F.value]]),c("div",Vg,[c("button",{class:"theme-btn commit small",onClick:ee,disabled:!b.value.trim()||!A.value.trim()},"Add",8,Hg),c("button",{class:"theme-btn discard small",onClick:ie},"Cancel")])])):(y(),_("button",{key:5,class:"add-token-btn",onClick:L[16]||(L[16]=P=>B("scale"))},"+ Add Size")),X.value.length?(y(),_("h4",Bg,"Weights")):j("",!0),X.value.length?(y(),_("div",jg,[(y(!0),_(ne,null,ve(X.value,P=>(y(),_("span",{key:P,class:"weight-chip"},O(P),1))),128))])):j("",!0)])):j("",!0),r.value==="spacing"?(y(),_("div",Ug,[te.value.length===0&&$.value.length===0?(y(),_("div",Yg,"No spacing tokens detected")):j("",!0),(y(!0),_(ne,null,ve(te.value,P=>(y(),_("div",{key:P.role,class:"token-row"},[c("div",Kg,[c("span",{class:J(["token-role",{edited:xe(P,f.value)}])},O(P.role),3),c("code",Wg,O(P.source),1)]),c("div",zg,[c("input",{class:"token-value-input",value:se(P,f.value),onChange:me=>be(P,me.target.value,f.value)},null,40,Gg),c("div",Xg,[c("div",{class:"spacing-bar",style:Le({width:se(P,f.value)})},null,4)])])]))),128)),(y(!0),_(ne,null,ve($.value,(P,me)=>(y(),_("div",{key:"new-"+me,class:"token-row new"},[c("div",qg,[c("span",Jg,"+ "+O(P.role),1)]),c("div",Zg,[c("code",Qg,O(P.value),1),c("button",{class:"token-remove",onClick:m=>Ae($.value,me)},"×",8,e0)])]))),128)),w.value==="spacing"?(y(),_("div",t0,[Pe(c("input",{"onUpdate:modelValue":L[17]||(L[17]=P=>b.value=P),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[Be,b.value]]),Pe(c("input",{"onUpdate:modelValue":L[18]||(L[18]=P=>A.value=P),class:"add-input",placeholder:"Value (e.g. 32px)"},null,512),[[Be,A.value]]),Pe(c("input",{"onUpdate:modelValue":L[19]||(L[19]=P=>F.value=P),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Be,F.value]]),c("div",n0,[c("button",{class:"theme-btn commit small",onClick:ee,disabled:!b.value.trim()||!A.value.trim()},"Add",8,i0),c("button",{class:"theme-btn discard small",onClick:ie},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:L[20]||(L[20]=P=>B("spacing"))},"+ Add Spacing"))])):j("",!0),r.value==="borders"?(y(),_("div",l0,[L[34]||(L[34]=c("h4",{class:"section-subtitle"},"Border Radius",-1)),pe.value.length===0&&R.value.length===0?(y(),_("div",s0,"No border radius tokens detected")):j("",!0),(y(!0),_(ne,null,ve(pe.value,P=>(y(),_("div",{key:P.role,class:"token-row"},[c("div",o0,[c("span",{class:J(["token-role",{edited:xe(P,v.value)}])},O(P.role),3),c("code",r0,O(P.source),1)]),c("div",a0,[c("input",{class:"token-value-input",value:se(P,v.value),onChange:me=>be(P,me.target.value,v.value)},null,40,u0),c("div",{class:"radius-preview",style:Le({borderRadius:se(P,v.value)})},null,4)])]))),128)),(y(!0),_(ne,null,ve(R.value,(P,me)=>(y(),_("div",{key:"new-"+me,class:"token-row new"},[c("div",c0,[c("span",d0,"+ "+O(P.role),1)]),c("div",f0,[c("code",p0,O(P.value),1),c("button",{class:"token-remove",onClick:m=>Ae(R.value,me)},"×",8,h0)])]))),128)),w.value==="radius"?(y(),_("div",v0,[Pe(c("input",{"onUpdate:modelValue":L[21]||(L[21]=P=>b.value=P),class:"add-input",placeholder:"Role (e.g. xl)"},null,512),[[Be,b.value]]),Pe(c("input",{"onUpdate:modelValue":L[22]||(L[22]=P=>A.value=P),class:"add-input",placeholder:"Value (e.g. 16px)"},null,512),[[Be,A.value]]),Pe(c("input",{"onUpdate:modelValue":L[23]||(L[23]=P=>F.value=P),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Be,F.value]]),c("div",g0,[c("button",{class:"theme-btn commit small",onClick:ee,disabled:!b.value.trim()||!A.value.trim()},"Add",8,m0),c("button",{class:"theme-btn discard small",onClick:ie},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:L[24]||(L[24]=P=>B("radius"))},"+ Add Radius"))])):j("",!0),r.value==="libraries"?(y(),_("div",y0,[L[35]||(L[35]=c("h4",{class:"section-subtitle"},"Icons",-1)),ge.value?(y(),_("div",w0,[c("span",_0,O(ge.value.library),1),ge.value.version?(y(),_("span",x0,"v"+O(ge.value.version),1)):j("",!0)])):(y(),_("div",b0,"No icon library detected")),L[36]||(L[36]=c("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Components",-1)),ye.value?(y(),_(ne,{key:3},[c("div",C0,[c("span",A0,O(ye.value.library),1),ye.value.version?(y(),_("span",$0,"v"+O(ye.value.version),1)):j("",!0)]),ye.value.used.length?(y(),_("div",S0,[(y(!0),_(ne,null,ve(ye.value.used,P=>(y(),_("span",{key:P,class:"component-chip"},O(P),1))),128))])):j("",!0)],64)):(y(),_("div",k0,"No component library detected")),L[37]||(L[37]=c("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Framework",-1)),(we=Z(n))!=null&&we.framework?(y(),_("div",T0,[c("span",E0,O(Z(n).framework.name),1),c("span",F0,"v"+O(Z(n).framework.version),1),(y(!0),_(ne,null,ve(Z(n).framework.styling,P=>(y(),_("span",{key:P,class:"styling-chip"},O(P),1))),128))])):j("",!0)])):j("",!0)])],64)):(y(),_("div",Kv,[...L[27]||(L[27]=[c("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[c("circle",{cx:"12",cy:"12",r:"10"}),c("path",{d:"M12 8v4l2 2"})],-1),c("p",null,"No design spec found",-1),c("p",{class:"theme-empty-hint"},[Qe("Run "),c("code",null,"/annotask-init"),Qe(" in your AI assistant to scan your project's design system")],-1)])]))])}}}),P0=mt(I0,[["__scopeId","data-v-67b64182"]]);var Eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rl={exports:{}},Fo;function R0(){return Fo||(Fo=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
21
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
22
|
+
*
|
|
23
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
24
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
25
|
+
* @namespace
|
|
26
|
+
* @public
|
|
27
|
+
*/var n=(function(l){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},r={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function w(b){return b instanceof u?new u(b.type,w(b.content),b.alias):Array.isArray(b)?b.map(w):b.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(b,A){A=A||{};var F,N;switch(r.util.type(b)){case"Object":if(N=r.util.objId(b),A[N])return A[N];F={},A[N]=F;for(var Y in b)b.hasOwnProperty(Y)&&(F[Y]=w(b[Y],A));return F;case"Array":return N=r.util.objId(b),A[N]?A[N]:(F=[],A[N]=F,b.forEach(function(le,M){F[M]=w(le,A)}),F);default:return b}},getLanguage:function(w){for(;w;){var b=i.exec(w.className);if(b)return b[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,b){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+b)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(F){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(w){var b=document.getElementsByTagName("script");for(var A in b)if(b[A].src==w)return b[A]}return null}},isActive:function(w,b,A){for(var F="no-"+b;w;){var N=w.classList;if(N.contains(b))return!0;if(N.contains(F))return!1;w=w.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(w,b){var A=r.util.clone(r.languages[w]);for(var F in b)A[F]=b[F];return A},insertBefore:function(w,b,A,F){F=F||r.languages;var N=F[w],Y={};for(var le in N)if(N.hasOwnProperty(le)){if(le==b)for(var M in A)A.hasOwnProperty(M)&&(Y[M]=A[M]);A.hasOwnProperty(le)||(Y[le]=N[le])}var X=F[w];return F[w]=Y,r.languages.DFS(r.languages,function(te,pe){pe===X&&te!=w&&(this[te]=Y)}),Y},DFS:function w(b,A,F,N){N=N||{};var Y=r.util.objId;for(var le in b)if(b.hasOwnProperty(le)){A.call(b,le,b[le],F||le);var M=b[le],X=r.util.type(M);X==="Object"&&!N[Y(M)]?(N[Y(M)]=!0,w(M,A,null,N)):X==="Array"&&!N[Y(M)]&&(N[Y(M)]=!0,w(M,A,le,N))}}},plugins:{},highlightAll:function(w,b){r.highlightAllUnder(document,w,b)},highlightAllUnder:function(w,b,A){var F={callback:A,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),r.hooks.run("before-all-elements-highlight",F);for(var N=0,Y;Y=F.elements[N++];)r.highlightElement(Y,b===!0,F.callback)},highlightElement:function(w,b,A){var F=r.util.getLanguage(w),N=r.languages[F];r.util.setLanguage(w,F);var Y=w.parentElement;Y&&Y.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(Y,F);var le=w.textContent,M={element:w,language:F,grammar:N,code:le};function X(pe){M.highlightedCode=pe,r.hooks.run("before-insert",M),M.element.innerHTML=M.highlightedCode,r.hooks.run("after-highlight",M),r.hooks.run("complete",M),A&&A.call(M.element)}if(r.hooks.run("before-sanity-check",M),Y=M.element.parentElement,Y&&Y.nodeName.toLowerCase()==="pre"&&!Y.hasAttribute("tabindex")&&Y.setAttribute("tabindex","0"),!M.code){r.hooks.run("complete",M),A&&A.call(M.element);return}if(r.hooks.run("before-highlight",M),!M.grammar){X(r.util.encode(M.code));return}if(b&&l.Worker){var te=new Worker(r.filename);te.onmessage=function(pe){X(pe.data)},te.postMessage(JSON.stringify({language:M.language,code:M.code,immediateClose:!0}))}else X(r.highlight(M.code,M.grammar,M.language))},highlight:function(w,b,A){var F={code:w,grammar:b,language:A};if(r.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=r.tokenize(F.code,F.grammar),r.hooks.run("after-tokenize",F),u.stringify(r.util.encode(F.tokens),F.language)},tokenize:function(w,b){var A=b.rest;if(A){for(var F in A)b[F]=A[F];delete b.rest}var N=new f;return v(N,N.head,w),a(w,N,b,N.head,0),g(N)},hooks:{all:{},add:function(w,b){var A=r.hooks.all;A[w]=A[w]||[],A[w].push(b)},run:function(w,b){var A=r.hooks.all[w];if(!(!A||!A.length))for(var F=0,N;N=A[F++];)N(b)}},Token:u};l.Prism=r;function u(w,b,A,F){this.type=w,this.content=b,this.alias=A,this.length=(F||"").length|0}u.stringify=function w(b,A){if(typeof b=="string")return b;if(Array.isArray(b)){var F="";return b.forEach(function(X){F+=w(X,A)}),F}var N={type:b.type,content:w(b.content,A),tag:"span",classes:["token",b.type],attributes:{},language:A},Y=b.alias;Y&&(Array.isArray(Y)?Array.prototype.push.apply(N.classes,Y):N.classes.push(Y)),r.hooks.run("wrap",N);var le="";for(var M in N.attributes)le+=" "+M+'="'+(N.attributes[M]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+le+">"+N.content+"</"+N.tag+">"};function d(w,b,A,F){w.lastIndex=b;var N=w.exec(A);if(N&&F&&N[1]){var Y=N[1].length;N.index+=Y,N[0]=N[0].slice(Y)}return N}function a(w,b,A,F,N,Y){for(var le in A)if(!(!A.hasOwnProperty(le)||!A[le])){var M=A[le];M=Array.isArray(M)?M:[M];for(var X=0;X<M.length;++X){if(Y&&Y.cause==le+","+X)return;var te=M[X],pe=te.inside,ge=!!te.lookbehind,ye=!!te.greedy,De=te.alias;if(ye&&!te.pattern.global){var Te=te.pattern.toString().match(/[imsuy]*$/)[0];te.pattern=RegExp(te.pattern.source,Te+"g")}for(var be=te.pattern||te,se=F.next,xe=N;se!==b.tail&&!(Y&&xe>=Y.reach);xe+=se.value.length,se=se.next){var B=se.value;if(b.length>w.length)return;if(!(B instanceof u)){var ie=1,ee;if(ye){if(ee=d(be,xe,w,ge),!ee||ee.index>=w.length)break;var Xe=ee.index,Ae=ee.index+ee[0].length,He=xe;for(He+=se.value.length;Xe>=He;)se=se.next,He+=se.value.length;if(He-=se.value.length,xe=He,se.value instanceof u)continue;for(var qe=se;qe!==b.tail&&(He<Ae||typeof qe.value=="string");qe=qe.next)ie++,He+=qe.value.length;ie--,B=w.slice(xe,He),ee.index-=xe}else if(ee=d(be,0,B,ge),!ee)continue;var Xe=ee.index,q=ee[0],L=B.slice(0,Xe),we=B.slice(Xe+q.length),P=xe+B.length;Y&&P>Y.reach&&(Y.reach=P);var me=se.prev;L&&(me=v(b,me,L),xe+=L.length),h(b,me,ie);var m=new u(le,pe?r.tokenize(q,pe):q,De,q);if(se=v(b,me,m),we&&v(b,se,we),ie>1){var x={cause:le+","+X,reach:P};a(w,b,A,se.prev,xe,x),Y&&x.reach>Y.reach&&(Y.reach=x.reach)}}}}}}function f(){var w={value:null,prev:null,next:null},b={value:null,prev:w,next:null};w.next=b,this.head=w,this.tail=b,this.length=0}function v(w,b,A){var F=b.next,N={value:A,prev:b,next:F};return b.next=N,F.prev=N,w.length++,N}function h(w,b,A){for(var F=b.next,N=0;N<A&&F!==w.tail;N++)F=F.next;b.next=F,F.prev=b,w.length-=N}function g(w){for(var b=[],A=w.head.next;A!==w.tail;)b.push(A.value),A=A.next;return b}if(!l.document)return l.addEventListener&&(r.disableWorkerMessageHandler||l.addEventListener("message",function(w){var b=JSON.parse(w.data),A=b.language,F=b.code,N=b.immediateClose;l.postMessage(r.highlight(F,r.languages[A],A)),N&&l.close()},!1)),r;var k=r.util.currentScript();k&&(r.filename=k.src,k.hasAttribute("data-manual")&&(r.manual=!0));function $(){r.manual||r.highlightAll()}if(!r.manual){var R=document.readyState;R==="loading"||R==="interactive"&&k&&k.defer?document.addEventListener("DOMContentLoaded",$):window.requestAnimationFrame?window.requestAnimationFrame($):window.setTimeout($,16)}return r})(t);e.exports&&(e.exports=n),typeof Eo<"u"&&(Eo.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var u={};u[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(l,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(l){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var s=l.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",i=function(k,$){return"✖ Error "+k+" while fetching file: "+$},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",u="loading",d="loaded",a="failed",f="pre[data-src]:not(["+r+'="'+d+'"]):not(['+r+'="'+u+'"])';function v(k,$,R){var w=new XMLHttpRequest;w.open("GET",k,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?$(w.responseText):w.status>=400?R(i(w.status,w.statusText)):R(s))},w.send(null)}function h(k){var $=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(k||"");if($){var R=Number($[1]),w=$[2],b=$[3];return w?b?[R,Number(b)]:[R,void 0]:[R,R]}}n.hooks.add("before-highlightall",function(k){k.selector+=", "+f}),n.hooks.add("before-sanity-check",function(k){var $=k.element;if($.matches(f)){k.code="",$.setAttribute(r,u);var R=$.appendChild(document.createElement("CODE"));R.textContent=l;var w=$.getAttribute("data-src"),b=k.language;if(b==="none"){var A=(/\.(\w+)$/.exec(w)||[,"none"])[1];b=o[A]||A}n.util.setLanguage(R,b),n.util.setLanguage($,b);var F=n.plugins.autoloader;F&&F.loadLanguages(b),v(w,function(N){$.setAttribute(r,d);var Y=h($.getAttribute("data-range"));if(Y){var le=N.split(/\r\n?|\n/g),M=Y[0],X=Y[1]==null?le.length:Y[1];M<0&&(M+=le.length),M=Math.max(0,Math.min(M-1,le.length)),X<0&&(X+=le.length),X=Math.max(0,Math.min(X,le.length)),N=le.slice(M,X).join(`
|
|
28
|
+
`),$.hasAttribute("data-start")||$.setAttribute("data-start",String(M+1))}R.textContent=N,n.highlightElement(R)},function(N){$.setAttribute(r,a),R.textContent=N})}}),n.plugins.fileHighlight={highlight:function($){for(var R=($||document).querySelectorAll(f),w=0,b;b=R[w++];)n.highlightElement(b)}};var g=!1;n.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Rl)),Rl.exports}var M0=R0();const Io=O0(M0);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(r,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return r});return RegExp(d,u)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function aa(e){return typeof e>"u"||e===null}function L0(e){return typeof e=="object"&&e!==null}function D0(e){return Array.isArray(e)?e:aa(e)?[]:[e]}function N0(e,t){var n,l,i,s;if(t)for(s=Object.keys(t),n=0,l=s.length;n<l;n+=1)i=s[n],e[i]=t[i];return e}function V0(e,t){var n="",l;for(l=0;l<t;l+=1)n+=e;return n}function H0(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var B0=aa,j0=L0,U0=D0,Y0=V0,K0=H0,W0=N0,Ge={isNothing:B0,isObject:j0,toArray:U0,repeat:Y0,isNegativeZero:K0,extend:W0};function ua(e,t){var n="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
29
|
+
|
|
30
|
+
`+e.mark.snippet),l+" "+n):l}function bi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ua(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}bi.prototype=Object.create(Error.prototype);bi.prototype.constructor=bi;bi.prototype.toString=function(t){return this.name+": "+ua(this,t)};var gt=bi;function Ml(e,t,n,l,i){var s="",o="",r=Math.floor(i/2)-1;return l-t>r&&(s=" ... ",t=l-r+s.length),n-l>r&&(o=" ...",n=l+r-o.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:l-t+s.length}}function Ll(e,t){return Ge.repeat(" ",t-e.length)+e}function z0(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,l=[0],i=[],s,o=-1;s=n.exec(e.buffer);)i.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var r="",u,d,a=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+a+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)d=Ml(e.buffer,l[o-u],i[o-u],e.position-(l[o]-l[o-u]),f),r=Ge.repeat(" ",t.indent)+Ll((e.line-u+1).toString(),a)+" | "+d.str+`
|
|
31
|
+
`+r;for(d=Ml(e.buffer,l[o],i[o],e.position,f),r+=Ge.repeat(" ",t.indent)+Ll((e.line+1).toString(),a)+" | "+d.str+`
|
|
32
|
+
`,r+=Ge.repeat("-",t.indent+a+3+d.pos)+`^
|
|
33
|
+
`,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)d=Ml(e.buffer,l[o+u],i[o+u],e.position-(l[o]-l[o+u]),f),r+=Ge.repeat(" ",t.indent)+Ll((e.line+u+1).toString(),a)+" | "+d.str+`
|
|
34
|
+
`;return r.replace(/\n$/,"")}var G0=z0,X0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],q0=["scalar","sequence","mapping"];function J0(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(l){t[String(l)]=n})}),t}function Z0(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(X0.indexOf(n)===-1)throw new gt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=J0(t.styleAliases||null),q0.indexOf(this.kind)===-1)throw new gt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var tt=Z0;function Po(e,t){var n=[];return e[t].forEach(function(l){var i=n.length;n.forEach(function(s,o){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(i=o)}),n[i]=l}),n}function Q0(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function l(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(l);return e}function is(e){return this.extend(e)}is.prototype.extend=function(t){var n=[],l=[];if(t instanceof tt)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof tt))throw new gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(s){if(!(s instanceof tt))throw new gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(is.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(l),i.compiledImplicit=Po(i,"implicit"),i.compiledExplicit=Po(i,"explicit"),i.compiledTypeMap=Q0(i.compiledImplicit,i.compiledExplicit),i};var ca=is,da=new tt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),fa=new tt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),pa=new tt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),ha=new ca({explicit:[da,fa,pa]});function em(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function tm(){return null}function nm(e){return e===null}var va=new tt("tag:yaml.org,2002:null",{kind:"scalar",resolve:em,construct:tm,predicate:nm,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function im(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function lm(e){return e==="true"||e==="True"||e==="TRUE"}function sm(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ga=new tt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:im,construct:lm,predicate:sm,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function om(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function rm(e){return 48<=e&&e<=55}function am(e){return 48<=e&&e<=57}function um(e){if(e===null)return!1;var t=e.length,n=0,l=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;l=!0}return l&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!om(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!rm(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!am(e.charCodeAt(n)))return!1;l=!0}return!(!l||i==="_")}function cm(e){var t=e,n=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(n=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function dm(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ge.isNegativeZero(e)}var ma=new tt("tag:yaml.org,2002:int",{kind:"scalar",resolve:um,construct:cm,predicate:dm,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),fm=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pm(e){return!(e===null||!fm.test(e)||e[e.length-1]==="_")}function hm(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var vm=/^[-+]?[0-9]+e/;function gm(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ge.isNegativeZero(e))return"-0.0";return n=e.toString(10),vm.test(n)?n.replace("e",".e"):n}function mm(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ge.isNegativeZero(e))}var ya=new tt("tag:yaml.org,2002:float",{kind:"scalar",resolve:pm,construct:hm,predicate:mm,represent:gm,defaultStyle:"lowercase"}),ba=ha.extend({implicit:[va,ga,ma,ya]}),wa=ba,_a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ym(e){return e===null?!1:_a.exec(e)!==null||xa.exec(e)!==null}function bm(e){var t,n,l,i,s,o,r,u=0,d=null,a,f,v;if(t=_a.exec(e),t===null&&(t=xa.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],l=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,l,i));if(s=+t[4],o=+t[5],r=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(a=+t[10],f=+(t[11]||0),d=(a*60+f)*6e4,t[9]==="-"&&(d=-d)),v=new Date(Date.UTC(n,l,i,s,o,r,u)),d&&v.setTime(v.getTime()-d),v}function wm(e){return e.toISOString()}var ka=new tt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ym,construct:bm,instanceOf:Date,represent:wm});function _m(e){return e==="<<"||e===null}var Ca=new tt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:_m}),$s=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
35
|
+
\r`;function xm(e){if(e===null)return!1;var t,n,l=0,i=e.length,s=$s;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function km(e){var t,n,l=e.replace(/[\r\n=]/g,""),i=l.length,s=$s,o=0,r=[];for(t=0;t<i;t++)t%4===0&&t&&(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)),o=o<<6|s.indexOf(l.charAt(t));return n=i%4*6,n===0?(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)):n===18?(r.push(o>>10&255),r.push(o>>2&255)):n===12&&r.push(o>>4&255),new Uint8Array(r)}function Cm(e){var t="",n=0,l,i,s=e.length,o=$s;for(l=0;l<s;l++)l%3===0&&l&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[l];return i=s%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Am(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Aa=new tt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:xm,construct:km,predicate:Am,represent:Cm}),$m=Object.prototype.hasOwnProperty,Sm=Object.prototype.toString;function Tm(e){if(e===null)return!0;var t=[],n,l,i,s,o,r=e;for(n=0,l=r.length;n<l;n+=1){if(i=r[n],o=!1,Sm.call(i)!=="[object Object]")return!1;for(s in i)if($m.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function Em(e){return e!==null?e:[]}var $a=new tt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Tm,construct:Em}),Fm=Object.prototype.toString;function Im(e){if(e===null)return!0;var t,n,l,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(l=o[t],Fm.call(l)!=="[object Object]"||(i=Object.keys(l),i.length!==1))return!1;s[t]=[i[0],l[i[0]]]}return!0}function Pm(e){if(e===null)return[];var t,n,l,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)l=o[t],i=Object.keys(l),s[t]=[i[0],l[i[0]]];return s}var Sa=new tt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Im,construct:Pm}),Om=Object.prototype.hasOwnProperty;function Rm(e){if(e===null)return!0;var t,n=e;for(t in n)if(Om.call(n,t)&&n[t]!==null)return!1;return!0}function Mm(e){return e!==null?e:{}}var Ta=new tt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Rm,construct:Mm}),Ss=wa.extend({implicit:[ka,Ca],explicit:[Aa,$a,Sa,Ta]}),vn=Object.prototype.hasOwnProperty,Qi=1,Ea=2,Fa=3,el=4,Dl=1,Lm=2,Oo=3,Dm=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Nm=/[\x85\u2028\u2029]/,Vm=/[,\[\]\{\}]/,Ia=/^(?:!|!!|![a-z\-]+!)$/i,Pa=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ro(e){return Object.prototype.toString.call(e)}function Yt(e){return e===10||e===13}function Sn(e){return e===9||e===32}function bt(e){return e===9||e===32||e===10||e===13}function Nn(e){return e===44||e===91||e===93||e===123||e===125}function Hm(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Bm(e){return e===120?2:e===117?4:e===85?8:0}function jm(e){return 48<=e&&e<=57?e-48:-1}function Mo(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
36
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Um(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Oa(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var Ra=new Array(256),Ma=new Array(256);for(var Rn=0;Rn<256;Rn++)Ra[Rn]=Mo(Rn)?1:0,Ma[Rn]=Mo(Rn);function Ym(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ss,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function La(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=G0(n),new gt(t,n)}function ae(e,t){throw La(e,t)}function tl(e,t){e.onWarning&&e.onWarning.call(null,La(e,t))}var Lo={YAML:function(t,n,l){var i,s,o;t.version!==null&&ae(t,"duplication of %YAML directive"),l.length!==1&&ae(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),i===null&&ae(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ae(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&tl(t,"unsupported YAML version of the document")},TAG:function(t,n,l){var i,s;l.length!==2&&ae(t,"TAG directive accepts exactly two arguments"),i=l[0],s=l[1],Ia.test(i)||ae(t,"ill-formed tag handle (first argument) of the TAG directive"),vn.call(t.tagMap,i)&&ae(t,'there is a previously declared suffix for "'+i+'" tag handle'),Pa.test(s)||ae(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ae(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function pn(e,t,n,l){var i,s,o,r;if(t<n){if(r=e.input.slice(t,n),l)for(i=0,s=r.length;i<s;i+=1)o=r.charCodeAt(i),o===9||32<=o&&o<=1114111||ae(e,"expected valid JSON character");else Dm.test(r)&&ae(e,"the stream contains non-printable characters");e.result+=r}}function Do(e,t,n,l){var i,s,o,r;for(Ge.isObject(n)||ae(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,r=i.length;o<r;o+=1)s=i[o],vn.call(t,s)||(Oa(t,s,n[s]),l[s]=!0)}function Vn(e,t,n,l,i,s,o,r,u){var d,a;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,a=i.length;d<a;d+=1)Array.isArray(i[d])&&ae(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ro(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&Ro(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,a=s.length;d<a;d+=1)Do(e,t,s[d],n);else Do(e,t,s,n);else!e.json&&!vn.call(n,i)&&vn.call(t,i)&&(e.line=o||e.line,e.lineStart=r||e.lineStart,e.position=u||e.position,ae(e,"duplicated mapping key")),Oa(t,i,s),delete n[i];return t}function Ts(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ae(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ye(e,t,n){for(var l=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Sn(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Yt(i))for(Ts(e),i=e.input.charCodeAt(e.position),l++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&l!==0&&e.lineIndent<n&&tl(e,"deficient indentation"),l}function ml(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||bt(n)))}function Es(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ge.repeat(`
|
|
37
|
+
`,t-1))}function Km(e,t,n){var l,i,s,o,r,u,d,a,f=e.kind,v=e.result,h;if(h=e.input.charCodeAt(e.position),bt(h)||Nn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),bt(i)||n&&Nn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,r=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),bt(i)||n&&Nn(i))break}else if(h===35){if(l=e.input.charCodeAt(e.position-1),bt(l))break}else{if(e.position===e.lineStart&&ml(e)||n&&Nn(h))break;if(Yt(h))if(u=e.line,d=e.lineStart,a=e.lineIndent,Ye(e,!1,-1),e.lineIndent>=t){r=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=d,e.lineIndent=a;break}}r&&(pn(e,s,o,!1),Es(e,e.line-u),s=o=e.position,r=!1),Sn(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return pn(e,s,o,!1),e.result?!0:(e.kind=f,e.result=v,!1)}function Wm(e,t){var n,l,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(pn(e,l,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)l=e.position,e.position++,i=e.position;else return!0;else Yt(n)?(pn(e,l,i,!0),Es(e,Ye(e,!1,t)),l=i=e.position):e.position===e.lineStart&&ml(e)?ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ae(e,"unexpected end of the stream within a single quoted scalar")}function zm(e,t){var n,l,i,s,o,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=l=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return pn(e,n,e.position,!0),e.position++,!0;if(r===92){if(pn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),Yt(r))Ye(e,!1,t);else if(r<256&&Ra[r])e.result+=Ma[r],e.position++;else if((o=Bm(r))>0){for(i=o,s=0;i>0;i--)r=e.input.charCodeAt(++e.position),(o=Hm(r))>=0?s=(s<<4)+o:ae(e,"expected hexadecimal character");e.result+=Um(s),e.position++}else ae(e,"unknown escape sequence");n=l=e.position}else Yt(r)?(pn(e,n,l,!0),Es(e,Ye(e,!1,t)),n=l=e.position):e.position===e.lineStart&&ml(e)?ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}ae(e,"unexpected end of the stream within a double quoted scalar")}function Gm(e,t){var n=!0,l,i,s,o=e.tag,r,u=e.anchor,d,a,f,v,h,g=Object.create(null),k,$,R,w;if(w=e.input.charCodeAt(e.position),w===91)a=93,h=!1,r=[];else if(w===123)a=125,h=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),w=e.input.charCodeAt(++e.position);w!==0;){if(Ye(e,!0,t),w=e.input.charCodeAt(e.position),w===a)return e.position++,e.tag=o,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=r,!0;n?w===44&&ae(e,"expected the node content, but found ','"):ae(e,"missed comma between flow collection entries"),$=k=R=null,f=v=!1,w===63&&(d=e.input.charCodeAt(e.position+1),bt(d)&&(f=v=!0,e.position++,Ye(e,!0,t))),l=e.line,i=e.lineStart,s=e.position,zn(e,t,Qi,!1,!0),$=e.tag,k=e.result,Ye(e,!0,t),w=e.input.charCodeAt(e.position),(v||e.line===l)&&w===58&&(f=!0,w=e.input.charCodeAt(++e.position),Ye(e,!0,t),zn(e,t,Qi,!1,!0),R=e.result),h?Vn(e,r,g,$,k,R,l,i,s):f?r.push(Vn(e,null,g,$,k,R,l,i,s)):r.push(k),Ye(e,!0,t),w=e.input.charCodeAt(e.position),w===44?(n=!0,w=e.input.charCodeAt(++e.position)):n=!1}ae(e,"unexpected end of the stream within a flow collection")}function Xm(e,t){var n,l,i=Dl,s=!1,o=!1,r=t,u=0,d=!1,a,f;if(f=e.input.charCodeAt(e.position),f===124)l=!1;else if(f===62)l=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Dl===i?i=f===43?Oo:Lm:ae(e,"repeat of a chomping mode identifier");else if((a=jm(f))>=0)a===0?ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ae(e,"repeat of an indentation width identifier"):(r=t+a-1,o=!0);else break;if(Sn(f)){do f=e.input.charCodeAt(++e.position);while(Sn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Yt(f)&&f!==0)}for(;f!==0;){for(Ts(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<r)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>r&&(r=e.lineIndent),Yt(f)){u++;continue}if(e.lineIndent<r){i===Oo?e.result+=Ge.repeat(`
|
|
38
|
+
`,s?1+u:u):i===Dl&&s&&(e.result+=`
|
|
39
|
+
`);break}for(l?Sn(f)?(d=!0,e.result+=Ge.repeat(`
|
|
40
|
+
`,s?1+u:u)):d?(d=!1,e.result+=Ge.repeat(`
|
|
41
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=Ge.repeat(`
|
|
42
|
+
`,u):e.result+=Ge.repeat(`
|
|
43
|
+
`,s?1+u:u),s=!0,o=!0,u=0,n=e.position;!Yt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);pn(e,n,e.position,!1)}return!0}function No(e,t){var n,l=e.tag,i=e.anchor,s=[],o,r=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ae(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!bt(o))));){if(r=!0,e.position++,Ye(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,zn(e,t,Fa,!1,!0),s.push(e.result),Ye(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)ae(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return r?(e.tag=l,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function qm(e,t,n){var l,i,s,o,r,u,d=e.tag,a=e.anchor,f={},v=Object.create(null),h=null,g=null,k=null,$=!1,R=!1,w;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),w=e.input.charCodeAt(e.position);w!==0;){if(!$&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ae(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),s=e.line,(w===63||w===58)&&bt(l))w===63?($&&(Vn(e,f,v,h,g,null,o,r,u),h=g=k=null),R=!0,$=!0,i=!0):$?($=!1,i=!0):ae(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,w=l;else{if(o=e.line,r=e.lineStart,u=e.position,!zn(e,n,Ea,!1,!0))break;if(e.line===s){for(w=e.input.charCodeAt(e.position);Sn(w);)w=e.input.charCodeAt(++e.position);if(w===58)w=e.input.charCodeAt(++e.position),bt(w)||ae(e,"a whitespace character is expected after the key-value separator within a block mapping"),$&&(Vn(e,f,v,h,g,null,o,r,u),h=g=k=null),R=!0,$=!1,i=!1,h=e.tag,g=e.result;else if(R)ae(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=a,!0}else if(R)ae(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=a,!0}if((e.line===s||e.lineIndent>t)&&($&&(o=e.line,r=e.lineStart,u=e.position),zn(e,t,el,!0,i)&&($?g=e.result:k=e.result),$||(Vn(e,f,v,h,g,k,o,r,u),h=g=k=null),Ye(e,!0,-1),w=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&w!==0)ae(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return $&&Vn(e,f,v,h,g,null,o,r,u),R&&(e.tag=d,e.anchor=a,e.kind="mapping",e.result=f),R}function Jm(e){var t,n=!1,l=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ae(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(l=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ae(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!bt(o);)o===33&&(l?ae(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ia.test(i)||ae(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Vm.test(s)&&ae(e,"tag suffix cannot contain flow indicator characters")}s&&!Pa.test(s)&&ae(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ae(e,"tag name is malformed: "+s)}return n?e.tag=s:vn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ae(e,'undeclared tag handle "'+i+'"'),!0}function Zm(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ae(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!bt(n)&&!Nn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ae(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Qm(e){var t,n,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!bt(l)&&!Nn(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&ae(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),vn.call(e.anchorMap,n)||ae(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ye(e,!0,-1),!0}function zn(e,t,n,l,i){var s,o,r,u=1,d=!1,a=!1,f,v,h,g,k,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=r=el===n||Fa===n,l&&Ye(e,!0,-1)&&(d=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Jm(e)||Zm(e);)Ye(e,!0,-1)?(d=!0,r=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):r=!1;if(r&&(r=d||i),(u===1||el===n)&&(Qi===n||Ea===n?k=t:k=t+1,$=e.position-e.lineStart,u===1?r&&(No(e,$)||qm(e,$,k))||Gm(e,k)?a=!0:(o&&Xm(e,k)||Wm(e,k)||zm(e,k)?a=!0:Qm(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&ae(e,"alias node should not have any properties")):Km(e,k,Qi===n)&&(a=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(a=r&&No(e,$))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ae(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,v=e.implicitTypes.length;f<v;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(vn.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,v=h.length;f<v;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){g=h[f];break}g||ae(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||a}function e1(e){var t=e.position,n,l,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ye(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!bt(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(n,e.position),i=[],l.length<1&&ae(e,"directive name must not be less than one character in length");o!==0;){for(;Sn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Yt(o));break}if(Yt(o))break;for(n=e.position;o!==0&&!bt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Ts(e),vn.call(Lo,l)?Lo[l](e,l,i):tl(e,'unknown document directive "'+l+'"')}if(Ye(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ye(e,!0,-1)):s&&ae(e,"directives end mark is expected"),zn(e,e.lineIndent-1,el,!1,!0),Ye(e,!0,-1),e.checkLineBreaks&&Nm.test(e.input.slice(t,e.position))&&tl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ml(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ye(e,!0,-1));return}if(e.position<e.length-1)ae(e,"end of the stream or a document separator is expected");else return}function Da(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
44
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Ym(e,t),l=e.indexOf("\0");for(l!==-1&&(n.position=l,ae(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)e1(n);return n.documents}function t1(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var l=Da(e,n);if(typeof t!="function")return l;for(var i=0,s=l.length;i<s;i+=1)t(l[i])}function n1(e,t){var n=Da(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new gt("expected a single document in the stream, but found more")}}var i1=t1,l1=n1,Na={loadAll:i1,load:l1},Va=Object.prototype.toString,Ha=Object.prototype.hasOwnProperty,Fs=65279,s1=9,wi=10,o1=13,r1=32,a1=33,u1=34,ls=35,c1=37,d1=38,f1=39,p1=42,Ba=44,h1=45,nl=58,v1=61,g1=62,m1=63,y1=64,ja=91,Ua=93,b1=96,Ya=123,w1=124,Ka=125,at={};at[0]="\\0";at[7]="\\a";at[8]="\\b";at[9]="\\t";at[10]="\\n";at[11]="\\v";at[12]="\\f";at[13]="\\r";at[27]="\\e";at[34]='\\"';at[92]="\\\\";at[133]="\\N";at[160]="\\_";at[8232]="\\L";at[8233]="\\P";var _1=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],x1=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function k1(e,t){var n,l,i,s,o,r,u;if(t===null)return{};for(n={},l=Object.keys(t),i=0,s=l.length;i<s;i+=1)o=l[i],r=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&Ha.call(u.styleAliases,r)&&(r=u.styleAliases[r]),n[o]=r;return n}function C1(e){var t,n,l;if(t=e.toString(16).toUpperCase(),e<=255)n="x",l=2;else if(e<=65535)n="u",l=4;else if(e<=4294967295)n="U",l=8;else throw new gt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ge.repeat("0",l-t.length)+t}var A1=1,_i=2;function $1(e){this.schema=e.schema||Ss,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ge.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=k1(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?_i:A1,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Vo(e,t){for(var n=Ge.repeat(" ",t),l=0,i=-1,s="",o,r=e.length;l<r;)i=e.indexOf(`
|
|
45
|
+
`,l),i===-1?(o=e.slice(l),l=r):(o=e.slice(l,i+1),l=i+1),o.length&&o!==`
|
|
46
|
+
`&&(s+=n),s+=o;return s}function ss(e,t){return`
|
|
47
|
+
`+Ge.repeat(" ",e.indent*t)}function S1(e,t){var n,l,i;for(n=0,l=e.implicitTypes.length;n<l;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function il(e){return e===r1||e===s1}function xi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Fs||65536<=e&&e<=1114111}function Ho(e){return xi(e)&&e!==Fs&&e!==o1&&e!==wi}function Bo(e,t,n){var l=Ho(e),i=l&&!il(e);return(n?l:l&&e!==Ba&&e!==ja&&e!==Ua&&e!==Ya&&e!==Ka)&&e!==ls&&!(t===nl&&!i)||Ho(t)&&!il(t)&&e===ls||t===nl&&i}function T1(e){return xi(e)&&e!==Fs&&!il(e)&&e!==h1&&e!==m1&&e!==nl&&e!==Ba&&e!==ja&&e!==Ua&&e!==Ya&&e!==Ka&&e!==ls&&e!==d1&&e!==p1&&e!==a1&&e!==w1&&e!==v1&&e!==g1&&e!==f1&&e!==u1&&e!==c1&&e!==y1&&e!==b1}function E1(e){return!il(e)&&e!==nl}function si(e,t){var n=e.charCodeAt(t),l;return n>=55296&&n<=56319&&t+1<e.length&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(n-55296)*1024+l-56320+65536:n}function Wa(e){var t=/^\n* /;return t.test(e)}var za=1,os=2,Ga=3,Xa=4,Dn=5;function F1(e,t,n,l,i,s,o,r){var u,d=0,a=null,f=!1,v=!1,h=l!==-1,g=-1,k=T1(si(e,0))&&E1(si(e,e.length-1));if(t||o)for(u=0;u<e.length;d>=65536?u+=2:u++){if(d=si(e,u),!xi(d))return Dn;k=k&&Bo(d,a,r),a=d}else{for(u=0;u<e.length;d>=65536?u+=2:u++){if(d=si(e,u),d===wi)f=!0,h&&(v=v||u-g-1>l&&e[g+1]!==" ",g=u);else if(!xi(d))return Dn;k=k&&Bo(d,a,r),a=d}v=v||h&&u-g-1>l&&e[g+1]!==" "}return!f&&!v?k&&!o&&!i(e)?za:s===_i?Dn:os:n>9&&Wa(e)?Dn:o?s===_i?Dn:os:v?Xa:Ga}function I1(e,t,n,l,i){e.dump=(function(){if(t.length===0)return e.quotingType===_i?'""':"''";if(!e.noCompatMode&&(_1.indexOf(t)!==-1||x1.test(t)))return e.quotingType===_i?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),r=l||e.flowLevel>-1&&n>=e.flowLevel;function u(d){return S1(e,d)}switch(F1(t,r,e.indent,o,u,e.quotingType,e.forceQuotes&&!l,i)){case za:return t;case os:return"'"+t.replace(/'/g,"''")+"'";case Ga:return"|"+jo(t,e.indent)+Uo(Vo(t,s));case Xa:return">"+jo(t,e.indent)+Uo(Vo(P1(t,o),s));case Dn:return'"'+O1(t)+'"';default:throw new gt("impossible error: invalid scalar style")}})()}function jo(e,t){var n=Wa(e)?String(t):"",l=e[e.length-1]===`
|
|
48
|
+
`,i=l&&(e[e.length-2]===`
|
|
49
|
+
`||e===`
|
|
50
|
+
`),s=i?"+":l?"":"-";return n+s+`
|
|
51
|
+
`}function Uo(e){return e[e.length-1]===`
|
|
52
|
+
`?e.slice(0,-1):e}function P1(e,t){for(var n=/(\n+)([^\n]*)/g,l=(function(){var d=e.indexOf(`
|
|
53
|
+
`);return d=d!==-1?d:e.length,n.lastIndex=d,Yo(e.slice(0,d),t)})(),i=e[0]===`
|
|
54
|
+
`||e[0]===" ",s,o;o=n.exec(e);){var r=o[1],u=o[2];s=u[0]===" ",l+=r+(!i&&!s&&u!==""?`
|
|
55
|
+
`:"")+Yo(u,t),i=s}return l}function Yo(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,l,i=0,s,o=0,r=0,u="";l=n.exec(e);)r=l.index,r-i>t&&(s=o>i?o:r,u+=`
|
|
56
|
+
`+e.slice(i,s),i=s+1),o=r;return u+=`
|
|
57
|
+
`,e.length-i>t&&o>i?u+=e.slice(i,o)+`
|
|
58
|
+
`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function O1(e){for(var t="",n=0,l,i=0;i<e.length;n>=65536?i+=2:i++)n=si(e,i),l=at[n],!l&&xi(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=l||C1(n);return t}function R1(e,t,n){var l="",i=e.tag,s,o,r;for(s=0,o=n.length;s<o;s+=1)r=n[s],e.replacer&&(r=e.replacer.call(n,String(s),r)),(rn(e,t,r,!1,!1)||typeof r>"u"&&rn(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=i,e.dump="["+l+"]"}function Ko(e,t,n,l){var i="",s=e.tag,o,r,u;for(o=0,r=n.length;o<r;o+=1)u=n[o],e.replacer&&(u=e.replacer.call(n,String(o),u)),(rn(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&rn(e,t+1,null,!0,!0,!1,!0))&&((!l||i!=="")&&(i+=ss(e,t)),e.dump&&wi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function M1(e,t,n){var l="",i=e.tag,s=Object.keys(n),o,r,u,d,a;for(o=0,r=s.length;o<r;o+=1)a="",l!==""&&(a+=", "),e.condenseFlow&&(a+='"'),u=s[o],d=n[u],e.replacer&&(d=e.replacer.call(n,u,d)),rn(e,t,u,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rn(e,t,d,!1,!1)&&(a+=e.dump,l+=a));e.tag=i,e.dump="{"+l+"}"}function L1(e,t,n,l){var i="",s=e.tag,o=Object.keys(n),r,u,d,a,f,v;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new gt("sortKeys must be a boolean or a function");for(r=0,u=o.length;r<u;r+=1)v="",(!l||i!=="")&&(v+=ss(e,t)),d=o[r],a=n[d],e.replacer&&(a=e.replacer.call(n,d,a)),rn(e,t+1,d,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&wi===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,f&&(v+=ss(e,t)),rn(e,t+1,a,!0,f)&&(e.dump&&wi===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=s,e.dump=i||"{}"}function Wo(e,t,n){var l,i,s,o,r,u;for(i=n?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(r=i[s],(r.instanceOf||r.predicate)&&(!r.instanceOf||typeof t=="object"&&t instanceof r.instanceOf)&&(!r.predicate||r.predicate(t))){if(n?r.multi&&r.representName?e.tag=r.representName(t):e.tag=r.tag:e.tag="?",r.represent){if(u=e.styleMap[r.tag]||r.defaultStyle,Va.call(r.represent)==="[object Function]")l=r.represent(t,u);else if(Ha.call(r.represent,u))l=r.represent[u](t,u);else throw new gt("!<"+r.tag+'> tag resolver accepts not "'+u+'" style');e.dump=l}return!0}return!1}function rn(e,t,n,l,i,s,o){e.tag=null,e.dump=n,Wo(e,n,!1)||Wo(e,n,!0);var r=Va.call(e.dump),u=l,d;l&&(l=e.flowLevel<0||e.flowLevel>t);var a=r==="[object Object]"||r==="[object Array]",f,v;if(a&&(f=e.duplicates.indexOf(n),v=f!==-1),(e.tag!==null&&e.tag!=="?"||v||e.indent!==2&&t>0)&&(i=!1),v&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(a&&v&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),r==="[object Object]")l&&Object.keys(e.dump).length!==0?(L1(e,t,e.dump,i),v&&(e.dump="&ref_"+f+e.dump)):(M1(e,t,e.dump),v&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Ko(e,t-1,e.dump,i):Ko(e,t,e.dump,i),v&&(e.dump="&ref_"+f+e.dump)):(R1(e,t,e.dump),v&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&I1(e,e.dump,t,s,u);else{if(r==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new gt("unacceptable kind of an object to dump "+r)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function D1(e,t){var n=[],l=[],i,s;for(rs(e,n,l),i=0,s=l.length;i<s;i+=1)t.duplicates.push(n[l[i]]);t.usedDuplicates=new Array(s)}function rs(e,t,n){var l,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)rs(e[i],t,n);else for(l=Object.keys(e),i=0,s=l.length;i<s;i+=1)rs(e[l[i]],t,n)}function N1(e,t){t=t||{};var n=new $1(t);n.noRefs||D1(e,n);var l=e;return n.replacer&&(l=n.replacer.call({"":l},"",l)),rn(n,0,l,!0,!0)?n.dump+`
|
|
59
|
+
`:""}var V1=N1,H1={dump:V1};function Is(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var B1=tt,j1=ca,U1=ha,Y1=ba,K1=wa,W1=Ss,z1=Na.load,G1=Na.loadAll,X1=H1.dump,q1=gt,J1={binary:Aa,float:ya,map:pa,null:va,pairs:Sa,set:Ta,timestamp:ka,bool:ga,int:ma,merge:Ca,omap:$a,seq:fa,str:da},Z1=Is("safeLoad","load"),Q1=Is("safeLoadAll","loadAll"),ey=Is("safeDump","dump"),ty={Type:B1,Schema:j1,FAILSAFE_SCHEMA:U1,JSON_SCHEMA:Y1,CORE_SCHEMA:K1,DEFAULT_SCHEMA:W1,load:z1,loadAll:G1,dump:X1,YAMLException:q1,types:J1,safeLoad:Z1,safeLoadAll:Q1,safeDump:ey};const ny={class:"report-drawer"},iy={class:"report-header"},ly={class:"report-title"},sy={key:0,class:"report-badge"},oy={class:"report-controls"},ry={class:"format-toggle"},ay=["disabled"],uy={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},cy={class:"report-body"},dy={key:0,class:"report-code"},fy=["innerHTML"],py={key:1,class:"report-empty"},hy=it({__name:"ReportViewer",props:{tasks:{}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,i=U("json"),s=U(!1),o=re(()=>n.tasks.length?{version:"1.0",tasks:n.tasks}:null),r=re(()=>o.value?i.value==="yaml"?ty.dump(o.value,{indent:2,lineWidth:120,noRefs:!0}):JSON.stringify(o.value,null,2):""),u=U("");ot([r,i],()=>{br(()=>{const v=i.value==="yaml"?"yaml":"json",h=Io.languages[v];u.value=h?Io.highlight(r.value,h,v):d(r.value)})},{immediate:!0});function d(v){return v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function a(){navigator.clipboard.writeText(r.value),s.value=!0,setTimeout(()=>s.value=!1,2e3)}function f(v){v.key==="Escape"&&l("close")}return(v,h)=>(y(),_("div",{class:"report-overlay",onKeydown:f,tabindex:"-1"},[c("div",{class:"report-backdrop",onClick:h[0]||(h[0]=g=>l("close"))}),c("aside",ny,[c("header",iy,[c("div",ly,[h[4]||(h[4]=c("span",null,"Tasks",-1)),e.tasks.length?(y(),_("span",sy,O(e.tasks.length)+" task"+O(e.tasks.length===1?"":"s"),1)):j("",!0)]),c("div",oy,[c("div",ry,[c("button",{class:J(["fmt-btn",{active:i.value==="json"}]),onClick:h[1]||(h[1]=g=>i.value="json")},"JSON",2),c("button",{class:J(["fmt-btn",{active:i.value==="yaml"}]),onClick:h[2]||(h[2]=g=>i.value="yaml")},"YAML",2)]),c("button",{class:"copy-btn",onClick:a,disabled:!o.value},[s.value?j("",!0):(y(),_("svg",uy,[...h[5]||(h[5]=[c("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),c("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),Qe(" "+O(s.value?"Copied!":"Copy"),1)],8,ay),c("button",{class:"close-btn",onClick:h[3]||(h[3]=g=>l("close")),title:"Close (Esc)"},[...h[6]||(h[6]=[c("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),c("div",cy,[o.value?(y(),_("pre",dy,[c("code",{innerHTML:u.value},null,8,fy)])):(y(),_("div",py,[...h[7]||(h[7]=[c("p",null,"No tasks yet.",-1),c("p",{class:"report-empty-hint"},"Pin elements, draw sections, or add annotations to create tasks for your coding agent.",-1)])]))])])],32))}}),vy=["title"],gy={class:"vp-label"},my={key:0,class:"vp-dropdown"},yy={class:"vp-group"},by=["onClick"],wy={class:"vp-item-label"},_y={class:"vp-item-dim"},xy={class:"vp-group"},ky=["onClick"],Cy={class:"vp-item-label"},Ay={class:"vp-item-dim"},$y={class:"vp-group"},Sy=["onClick"],Ty={class:"vp-item-label"},Ey={class:"vp-item-dim"},Fy={class:"vp-custom"},Iy={class:"vp-custom-row"},Py=it({__name:"ViewportSelector",setup(e){const t=As(),n=U(!1),l=U(""),i=U(""),s=U(null),o=re(()=>{const f={phone:[],tablet:[],desktop:[]};for(const v of ts)f[v.category].push(v);return f}),r=re(()=>{const f=t.effectiveViewport.value;return!f.width&&!f.height?"Responsive":`${f.width}×${f.height}`});function u(f){t.selectPreset(f),n.value=!1}function d(){const f=parseInt(l.value)||null,v=parseInt(i.value)||null;(f||v)&&(t.setCustomDimensions(f,v),n.value=!1)}function a(f){n.value&&s.value&&!s.value.contains(f.target)&&(n.value=!1)}return Gn(()=>document.addEventListener("click",a)),En(()=>document.removeEventListener("click",a)),(f,v)=>(y(),_("div",{ref_key:"root",ref:s,class:"viewport-selector"},[c("button",{class:"vp-trigger",onClick:v[0]||(v[0]=h=>n.value=!n.value),title:Z(t).effectiveViewport.value.label},[v[5]||(v[5]=c("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),c("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),c("line",{x1:"12",y1:"17",x2:"12",y2:"21"})],-1)),c("span",gy,O(r.value),1),v[6]||(v[6]=c("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},[c("polyline",{points:"6 9 12 15 18 9"})],-1))],8,vy),n.value?(y(),_("div",my,[c("button",{class:J(["vp-item",{active:Z(t).isFullWidth.value}]),onClick:v[1]||(v[1]=h=>u(null))},[...v[7]||(v[7]=[c("span",{class:"vp-item-label"},"Responsive",-1),c("span",{class:"vp-item-dim"},"100%",-1)])],2),c("div",yy,[v[8]||(v[8]=c("div",{class:"vp-group-title"},"Phone",-1)),(y(!0),_(ne,null,ve(o.value.phone,h=>(y(),_("button",{key:h.id,class:J(["vp-item",{active:Z(t).activePresetId.value===h.id}]),onClick:g=>u(h)},[c("span",wy,O(h.label),1),c("span",_y,O(h.width)+"×"+O(h.height),1)],10,by))),128))]),c("div",xy,[v[9]||(v[9]=c("div",{class:"vp-group-title"},"Tablet",-1)),(y(!0),_(ne,null,ve(o.value.tablet,h=>(y(),_("button",{key:h.id,class:J(["vp-item",{active:Z(t).activePresetId.value===h.id}]),onClick:g=>u(h)},[c("span",Cy,O(h.label),1),c("span",Ay,O(h.width)+"×"+O(h.height),1)],10,ky))),128))]),c("div",$y,[v[10]||(v[10]=c("div",{class:"vp-group-title"},"Desktop",-1)),(y(!0),_(ne,null,ve(o.value.desktop,h=>(y(),_("button",{key:h.id,class:J(["vp-item",{active:Z(t).activePresetId.value===h.id}]),onClick:g=>u(h)},[c("span",Ty,O(h.label),1),c("span",Ey,O(h.width)+"×"+O(h.height),1)],10,Sy))),128))]),c("div",Fy,[v[12]||(v[12]=c("div",{class:"vp-group-title"},"Custom",-1)),c("div",Iy,[Pe(c("input",{"onUpdate:modelValue":v[2]||(v[2]=h=>l.value=h),type:"number",placeholder:"W",class:"vp-input",onKeydown:Tt(d,["enter"])},null,544),[[Be,l.value]]),v[11]||(v[11]=c("span",{class:"vp-x"},"×",-1)),Pe(c("input",{"onUpdate:modelValue":v[3]||(v[3]=h=>i.value=h),type:"number",placeholder:"H",class:"vp-input",onKeydown:Tt(d,["enter"])},null,544),[[Be,i.value]]),c("button",{class:"vp-apply",onClick:d},"Set")])]),Z(t).isFullWidth.value?j("",!0):(y(),_("button",{key:0,class:"vp-item vp-rotate",onClick:v[4]||(v[4]=h=>Z(t).toggleRotate())},[...v[13]||(v[13]=[c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("polyline",{points:"1 4 1 10 7 10"}),c("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})],-1),c("span",{class:"vp-item-label"},"Rotate",-1)])]))])):j("",!0)],512))}}),Oy=mt(Py,[["__scopeId","data-v-0f350755"]]),Ry={class:"annotask-shell"},My={class:"toolbar"},Ly={class:"toolbar-left"},Dy={class:"view-toggle"},Ny={key:0,class:"toolbar-center"},Vy={class:"route-indicator"},Hy={key:1,class:"toolbar-center"},By={key:2,class:"toolbar-right"},jy={class:"panel-toggle"},Uy={key:0,class:"toggle-badge"},Yy={key:0,class:"toggle-badge"},Ky={class:"visibility-toggles"},Wy={key:3,class:"toolbar-right"},zy={key:0,class:"warning-banner"},Gy={key:1,class:"setup-banner"},Xy={class:"main"},qy=["src"],Jy={key:0,class:"hover-label"},Zy={class:"hover-tag"},Qy={key:0,class:"hover-comp"},eb={key:0,class:"select-label"},tb={key:0,class:"theme-panel"},nb={key:1,class:"panel"},ib={class:"panel-source"},lb={key:2,class:"panel"},sb={class:"pending-task-panel"},ob={class:"pending-task-context"},rb={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ab={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},ub={class:"pending-task-file"},cb=["onKeydown"],db={class:"task-toggles"},fb={class:"history-toggle"},pb={class:"history-toggle"},hb={class:"pending-task-actions"},vb=["disabled"],gb={key:3,class:"panel"},mb={class:"panel-source"},yb={class:"component-badge"},bb={key:0,class:"new-task-form"},wb=["onKeydown"],_b={class:"task-toggles"},xb={class:"history-toggle"},kb={class:"history-toggle"},Cb={class:"new-task-actions"},Ab=["disabled"],$b={class:"tab-content"},Sb={key:0,class:"empty-hint",style:{padding:"20px 0"}},Tb={class:"task-card-header"},Eb={class:"task-card-desc"},Fb=["onClick"],Ib={class:"task-card-meta"},Pb={class:"task-card-file"},Ob={key:0,class:"task-route-badge"},Rb={key:0,class:"task-card-feedback"},Mb={key:1,class:"task-card-actions"},Lb=["onClick"],Db=["onClick"],Nb=["onKeydown"],Vb=["disabled","onClick"],Hb={key:4,class:"panel"},Bb={class:"panel-source"},jb=["disabled"],Ub={class:"tab-content"},Yb={key:0,class:"a11y-error"},Kb={key:1,class:"a11y-pass"},Wb={key:2,class:"a11y-empty"},zb={key:3,class:"a11y-summary"},Gb={class:"a11y-card-header"},Xb={class:"a11y-rule"},qb={class:"a11y-count"},Jb={class:"a11y-help"},Zb={key:0,class:"a11y-tasked"},Qb=["onClick"],ew={key:5,class:"panel"},tw={class:"panel-source"},nw={class:"source-path"},iw={class:"component-badge"},lw={key:0,class:"panel-group-bar"},sw={class:"group-summary"},ow={key:0,class:"group-toggle"},rw={class:"toggle-label"},aw={class:"panel-tabs"},uw={key:0,class:"tab-badge"},cw={class:"tab-content"},dw={key:4,class:"classes-tab"},fw=["onKeydown"],pw={key:1,class:"changes-footer"},hw={class:"changes-list"},vw={class:"change-prop"},gw={class:"change-val"},mw={class:"change-val"},yw={class:"changes-actions"},bw={class:"changes-count"},ww={key:6,class:"panel empty"},_w=it({__name:"App",setup(e){const t=Ip(),{applyStyle:n,recordAnnotation:l,recordClassChange:i,removeAnnotationsByFile:s,changes:o}=t;async function r(){const C=t.undo();C&&(C.type==="style"&&C.eid?await b.undoStyle(C.eid,C.property,C.value||""):C.type==="class"&&C.eid?await b.undoClass(C.eid,C.classes||""):C.type==="insert_remove"&&C.eid&&await b.removePlaceholder(C.eid),await Je())}async function u(){const C=t.clearChanges();for(const p of C)await b.removePlaceholder(p)}async function d(){var Ue,zt,Fn,Ot,$t,Xn,Pi,Ls,Ds;if(o.value.length===0)return;const C=o.value.filter(ze=>ze.type==="style_update"),p=o.value.filter(ze=>ze.type==="class_update"),I=[];for(const ze of C)I.push(`${ze.property}: ${ze.after}`);for(const ze of p)I.push(`classes: ${ze.after.classes}`);const K=I.length<=3?`Update ${I.join(", ")}`:`Update ${I.slice(0,2).join(", ")} and ${I.length-2} more`,ce=((Ue=T.value)==null?void 0:Ue.file)||((zt=C[0])==null?void 0:zt.file)||((Fn=p[0])==null?void 0:Fn.file)||"",Ce=(Ot=T.value)!=null&&Ot.line?parseInt(T.value.line):(($t=C[0])==null?void 0:$t.line)||((Xn=p[0])==null?void 0:Xn.line)||0,S=((Pi=T.value)==null?void 0:Pi.component)||((Ls=C[0])==null?void 0:Ls.component)||((Ds=p[0])==null?void 0:Ds.component)||"",_e=[];for(const ze of C)_e.push({property:ze.property,before:ze.before,after:ze.after,file:ze.file,line:ze.line});for(const ze of p)_e.push({type:"class",before:ze.before.classes,after:ze.after.classes,file:ze.file,line:ze.line});await Wt({type:"style_update",description:K,file:ce,line:Ce,component:S,context:{changes:_e}}),await u()}const a=Rp(),f=ra(),v=As(),h=sa(),g=U(null),{mode:k}=Pp(),{isInitialized:$}=Cs(),R=U(localStorage.getItem("annotask:shellView")==="theme"?"theme":"editor");ot(R,C=>localStorage.setItem("annotask:shellView",C));const w=Op(g),b=Hp(g),{currentRoute:A}=b,F=Bp(a,(C,p)=>b.resolveElementAt(C,p),()=>k.value,iu),{drawingArrow:N,drawingRect:Y,onCanvasPointerDown:le,onCanvasPointerMove:M,onCanvasPointerUp:X}=F;ot(k,C=>{b.setMode(C),C==="interact"&&(T.value=null,D.value=[],W.value=[],ct.value=null,Pt.value=null),C==="select"&&(ge.value="notes")});const te=U(!1),pe=U(!1),ge=U("notes"),ye=U({pins:!0,arrows:!0,sections:!0,highlights:!0,inspector:!0}),De=U(["inspector","tasks","a11y"].includes(localStorage.getItem("annotask:activePanel")||"")?localStorage.getItem("annotask:activePanel"):"inspector");ot(De,C=>localStorage.setItem("annotask:activePanel",C));const Te=U(!1),be=U(""),se=U(localStorage.getItem("annotask:includeHistory")==="true");ot(se,C=>localStorage.setItem("annotask:includeHistory",String(C)));const xe=U(localStorage.getItem("annotask:includeElementContext")==="true"),B=U([]),ie=re(()=>{var p;const C=new Set;for(const I of f.tasks.value)I.type==="a11y_fix"&&((p=I.context)!=null&&p.rule)&&C.add(I.context.rule);return C}),ee=U(!1),Ae=U(null),He=U(!1),qe=U("");ot(xe,C=>localStorage.setItem("annotask:includeElementContext",String(C)));const Xe=U(null),q=U(""),L=U(localStorage.getItem("annotask:showShortcuts")==="true");ot(L,C=>localStorage.setItem("annotask:showShortcuts",String(C)));const we=U(null),P=U(""),me=re(()=>f.tasks.value);function m(C){const p=f.tasks.value.find(I=>I.id===C);if(p!=null&&p.visual){const I=p.visual;if(I.annotationId)I.kind==="pin"?a.removePin(I.annotationId):I.kind==="arrow"?a.removeArrow(I.annotationId):I.kind==="section"&&a.removeDrawnSection(I.annotationId);else if(I.kind==="pin"){const K=a.getPinsForElement(p.file,p.line);for(const ce of K)a.removePin(ce.id)}else if(I.kind==="arrow"){const K=a.arrows.value.find(ce=>Math.abs(ce.fromX-I.fromX)<5&&Math.abs(ce.fromY-I.fromY)<5);K&&a.removeArrow(K.id)}else if(I.kind==="section"){const K=a.drawnSections.value.find(ce=>Math.abs(ce.x-I.x)<5&&Math.abs(ce.y-I.y)<5);K&&a.removeDrawnSection(K.id)}}p.file&&p.line!=null&&s(p.file,p.line),f.updateTaskStatus(C,"accepted")}function x(C){q.value.trim()&&(f.updateTaskStatus(C,"denied",q.value.trim()),Xe.value=null,q.value="")}function E(){const C=be.value.trim();C&&(Wt({type:"annotation",description:C,file:"",line:0}),be.value="",Te.value=!1)}const V=U(null),T=U(null),D=U([]),W=U([]),z=U(!0),G=re(()=>D.value.length>1?D.value:z.value&&W.value.length>1?W.value:T.value?[T.value.eid]:[]),H=U([]),ue=U([]);let Q=0,oe=!1;async function de(){const C=++Q;if(D.value.length>0){const p=await b.getElementRects(D.value);if(C!==Q)return;H.value=p.filter(I=>I!==null)}else H.value=[];if(z.value&&D.value.length<=1&&W.value.length>0){const p=W.value.filter(K=>!D.value.includes(K)),I=await b.getElementRects(p);if(C!==Q)return;ue.value=I.filter(K=>K!==null)}else ue.value=[]}function ke(){if(oe)return;oe=!0;function C(){if(!D.value.length){oe=!1;return}de(),requestAnimationFrame(C)}requestAnimationFrame(C)}ot([D,W,z],()=>{D.value.length?ke():de()},{deep:!0});const Ee=re(()=>{const C=D.value.length,p=W.value.length;return C>1?`${C} elements selected`:p>1?`1 selected · ${p} instances in template`:null}),$e=U(null);async function Ne(){if(!T.value){$e.value=null;return}const C=await b.classifyElement(T.value.eid);$e.value=(C==null?void 0:C.role)||null}async function We(C="element"){var K,ce,Ce;ee.value=!0,Ae.value=null;const p=C==="element"?(K=T.value)==null?void 0:K.eid:void 0;qe.value=p?`<${(ce=T.value)==null?void 0:ce.tagName}> · ${(Ce=T.value)==null?void 0:Ce.component}`:"full page";const I=await b.scanA11y(p);B.value=I.violations,Ae.value=I.error||null,ee.value=!1,He.value=!0}const lt=U({}),ut=U(""),ct=U(null),Pt=U(null),dt=["display","position","width","height","min-width","max-width","min-height","max-height","padding","padding-top","padding-right","padding-bottom","padding-left","margin","margin-top","margin-right","margin-bottom","margin-left","gap","flex-direction","align-items","justify-content","flex-wrap","background-color","color","font-size","font-weight","font-family","text-align","line-height","letter-spacing","border","border-radius","border-color","border-width","opacity","overflow","box-shadow"];async function Je(){var C;(C=T.value)!=null&&C.eid&&(lt.value=await b.getComputedStyles(T.value.eid,dt))}async function Ei(){b.initBridgeForIframe(),b.onBridgeReady(async()=>{b.setMode(k.value),te.value=!await b.checkSourceMapping();const C=await b.getCurrentRoute();a.setRoute(C),Za(),w.showOverlay.value&&w.scan()})}function Fi(){b.onBridgeEvent("hover:enter",C=>{const p=b.toShellRect(C.rect);ct.value=p,Pt.value=C.file?{tag:C.tag,file:C.file,component:C.component}:null}),b.onBridgeEvent("hover:leave",()=>{ct.value=null,Pt.value=null}),b.onBridgeEvent("click:element",async C=>{const{file:p,line:I,component:K,mfe:ce,tag:Ce,classes:S,eid:_e,shiftKey:Ue,clientX:zt,clientY:Fn}=C,Ot=b.toShellRect(C.rect);if(k.value==="pin"){const $t=Ot?Ot.x+Ot.width/2:zt,Xn=Ot?Ot.y:Fn,Pi=a.addPin({file:p,line:I,component:K,elementTag:Ce,elementClasses:S},$t,Xn);T.value={file:p,line:I,component:K,mfe:ce||"",tagName:Ce,classes:S,eid:_e},D.value=[_e],await Je(),await Ne(),we.value={kind:"pin",label:`Pin on ${bl({component:K,tag:Ce,classes:S})}`,file:p,line:I,component:K,annotationId:Pi.id,meta:{elementTag:Ce,elementClasses:S,pinX:$t,pinY:Xn}},P.value="";return}if(Ue&&T.value){const $t=D.value.indexOf(_e);$t>=0?(D.value.splice($t,1),D.value.length===0&&(T.value=null,W.value=[])):D.value.push(_e),await de()}else{T.value={file:p,line:I,component:K,mfe:ce||"",tagName:Ce,classes:S,eid:_e},D.value=[_e];const $t=await b.findTemplateGroup(p,I,Ce);W.value=$t.eids,z.value=$t.eids.length>1,ut.value=S,await Je(),await Ne(),await de()}ct.value=null}),b.onBridgeEvent("contextmenu:element",async C=>{const{file:p,line:I,component:K,mfe:ce,tag:Ce,classes:S,eid:_e}=C,Ue=b.toShellRect(C.rect);T.value={file:p,line:I,component:K,tagName:Ce,classes:S,eid:_e},D.value=[_e],await Je(),await Ne(),yl.value={visible:!0,x:Ue?Ue.x+Ue.width/2:C.clientX,y:Ue?Ue.y+Ue.height/2:C.clientY}}),b.onBridgeEvent("selection:text",C=>{const p=g.value,I=(p==null?void 0:p.getBoundingClientRect().left)||0,K=(p==null?void 0:p.getBoundingClientRect().top)||0;V.value={text:C.text,x:I+100,y:K+100,file:C.file,line:C.line,component:C.component,tag:C.tag}}),b.onBridgeEvent("keydown",C=>{(C.ctrlKey||C.metaKey)&&C.key==="z"&&!C.shiftKey&&r()}),b.onBridgeEvent("route:changed",C=>{a.setRoute(C.path),h.push("route_change",C.path,{previousRoute:A.value})}),b.onBridgeEvent("user:action",C=>{h.push("action",A.value,C)})}async function Ii(C,p){if(!T.value)return;const I={file:T.value.file,line:T.value.line,component:T.value.component},K=G.value;for(const ce of K){const Ce=await b.applyStyleVia(ce,C,p);n(ce,C,p,Ce,I)}await Je()}async function Ps(){if(!T.value)return;const C=T.value.classes,p=ut.value;if(C===p)return;const I={file:T.value.file,line:T.value.line,component:T.value.component},K=G.value;for(const ce of K)await b.setClass(ce,p),i(ce,C,p,I);T.value.classes=p,await Je()}const yl=U({visible:!1,x:0,y:0});async function qa(C){if(!T.value)return;const p=T.value,I=[{file:p.file,line:p.line,component:p.component,tag:p.tagName,classes:p.classes}];for(const S of I)if(l({file:S.file,line:S.line,component:S.component,intent:C,elementTag:S.tag,elementClasses:S.classes}),a.getPinsForElement(S.file,parseInt(S.line)).length===0){const Ue=H.value[0],zt=Ue?Ue.x+Ue.width/2:100,Fn=Ue?Ue.y+10:100,Ot=a.addPin({file:S.file,line:S.line,component:S.component,elementTag:S.tag,elementClasses:S.classes},zt,Fn);a.updatePinNote(Ot.id,C)}const K=I[0],ce=a.getPinsForElement(K.file,parseInt(K.line)),Ce=ce.length>0?{x:ce[0].clickX,y:ce[0].clickY}:null;Wt({type:"annotation",description:C,file:K.file,line:parseInt(K.line)||0,component:K.component,visual:Ce?{kind:"pin",annotationId:ce[0].id,x:Ce.x,y:Ce.y}:void 0,context:{element_tag:K.tag,element_classes:K.classes,...I.length>1?{elements:I.map(S=>({tag:S.tag,classes:S.classes,component:S.component,file:S.file,line:parseInt(S.line)||0}))}:{}}})}function Ja(C,p){if(!T.value)return;const I=T.value,K=[{file:I.file,line:I.line,component:I.component,tag:I.tagName,classes:I.classes}];for(const Ce of K)l({file:Ce.file,line:Ce.line,component:Ce.component,intent:p,action:C,elementTag:Ce.tag,elementClasses:Ce.classes});const ce=K[0];Wt({type:"annotation",description:p,file:ce.file,line:parseInt(ce.line)||0,component:ce.component,action:C,context:{element_tag:ce.tag,element_classes:ce.classes}})}async function Za(){await f.fetchTasks();const C=A.value;for(const p of f.tasks.value){if(p.route&&p.route!==C||p.status==="accepted")continue;const I=p.visual;if(I){if(I.kind==="pin"&&I.x&&I.y){if(a.getPinsForElement(p.file,p.line).length===0){const ce=a.addPin({file:p.file,line:String(p.line),component:p.component||"",elementTag:I.element_tag||"",elementClasses:""},I.x,I.y);a.updatePinNote(ce.id,p.description)}}else if(I.kind==="arrow")a.addArrow(I.fromX,I.fromY,I.toX,I.toY,I.label||p.description);else if(I.kind==="section"){const K=a.addDrawnSection(I.x,I.y,I.width,I.height);(p.prompt||p.description)&&a.updateDrawnSection(K.id,{prompt:p.prompt||p.description,nearFile:p.file,nearLine:p.line})}}}}async function Wt(C){var _e,Ue;const p=((_e=T.value)==null?void 0:_e.mfe)||"",I=v.effectiveViewport.value,K=I.width||I.height?{viewport:{width:I.width,height:I.height}}:{},ce=se.value?h.snapshotForChange(A.value):null,Ce=ce&&ce.recent_actions.length>0?{interaction_history:ce}:{};let S={};if(xe.value&&((Ue=T.value)!=null&&Ue.eid)){const zt=await b.getElementContext(T.value.eid);zt&&(S={element_context:zt})}return f.createTask({...C,route:A.value,...p?{mfe:p}:{},...K,...Ce,...S})}function Qa(C){const p=C.elements||[],I=p.find(K=>K.file);f.createTask({type:"a11y_fix",description:`Fix accessibility: ${C.help}`,file:(I==null?void 0:I.file)||"",line:I!=null&&I.line?parseInt(I.line):0,component:(I==null?void 0:I.component)||"",route:A.value,context:{rule:C.id,impact:C.impact,description:C.description,help:C.help,helpUrl:C.helpUrl,affected_elements:C.nodes,elements:p.map(K=>({html:K.html,selector:K.target,fix:K.failureSummary,...K.file?{file:K.file,line:K.line,component:K.component}:{}}))}})}function eu(C){if(!V.value||!C.trim())return;const p=V.value,I=a.addHighlight(p.text,{file:p.file,line:p.line,component:p.component,elementTag:p.tag});a.updateHighlight(I.id,{prompt:C.trim()});const K=`Change "${p.text}" → ${C.trim()}`;l({file:p.file,line:String(p.line),component:p.component,intent:K,action:"text_edit",elementTag:p.tag}),Wt({type:"annotation",description:K,file:p.file,line:p.line,component:p.component,action:"text_edit",context:{element_tag:p.tag,selected_text:p.text}}),V.value=null}function tu(){V.value=null}const Os=new Set;function nu(C){const p=a.drawnSections.value.find(I=>I.id===C);!p||!p.prompt.trim()||Os.has(C)||(Os.add(C),l({file:p.nearFile||"",line:String(p.nearLine||0),component:p.nearComponent||"",intent:p.prompt.trim(),action:"section_request"}),Wt({type:"section_request",description:p.prompt.trim(),file:p.nearFile||"",line:p.nearLine||0,component:p.nearComponent||"",placement:p.placement||"",visual:{kind:"section",annotationId:p.id,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height)}}))}const Rs=new Set;function bl(C){var K;if(!C)return"element";const p=C.tag||"element",I=(K=C.classes)==null?void 0:K.split(" ").find(ce=>ce&&!ce.startsWith("data-"));return C.component&&I?`<${p}.${I}> in ${C.component}`:C.component&&C.tag!==C.component.toLowerCase()?`<${p}> in ${C.component}`:I?`<${p}.${I}>`:`<${p}>`}function iu(C,p,I){const K=a.arrows.value.find(S=>S.id===C);if(!K)return;const ce=bl(p),Ce=bl(I);we.value={kind:"arrow",label:`Arrow from ${ce} → ${Ce}`,file:K.fromFile||(p==null?void 0:p.file)||"",line:K.fromLine||(p==null?void 0:p.line)||"",component:K.fromComponent||(p==null?void 0:p.component)||"",annotationId:C,meta:{fromTag:(p==null?void 0:p.tag)||"",fromClasses:(p==null?void 0:p.classes)||"",fromComponent:(p==null?void 0:p.component)||"",toFile:K.toFile||(I==null?void 0:I.file)||"",toLine:K.toLine||(I==null?void 0:I.line)||0,toTag:(I==null?void 0:I.tag)||"",toClasses:(I==null?void 0:I.classes)||"",toComponent:(I==null?void 0:I.component)||""}},P.value=""}function lu(C,p){var ce;const I=a.arrows.value.find(Ce=>Ce.id===C);if(!I||!p.trim()||Rs.has(C))return;Rs.add(C),a.updateArrow(C,{label:p.trim()});const K=((ce=we.value)==null?void 0:ce.meta)||{};l({file:I.fromFile||"",line:String(I.fromLine||0),component:I.fromComponent||"",intent:p.trim(),elementTag:K.fromTag||"",elementClasses:K.fromClasses||""}),Wt({type:"annotation",description:p.trim(),file:I.fromFile||"",line:I.fromLine||0,component:I.fromComponent||"",visual:{kind:"arrow",annotationId:I.id,fromX:I.fromX,fromY:I.fromY,toX:I.toX,toY:I.toY,label:p.trim()},context:{from_element_tag:K.fromTag||"",from_element_classes:K.fromClasses||"",to_element:{tag:K.toTag||"",classes:K.toClasses||"",component:K.toComponent||"",file:I.toFile||"",line:I.toLine||0}}})}function Ms(){const C=we.value;if(!(!C||!P.value.trim())){if(C.kind==="pin"){const p=C.meta;a.updatePinNote(C.annotationId,P.value.trim()),l({file:C.file,line:String(C.line),component:C.component,intent:P.value.trim(),elementTag:p.elementTag,elementClasses:p.elementClasses}),Wt({type:"annotation",description:P.value.trim(),file:C.file,line:parseInt(String(C.line))||0,component:C.component,visual:{kind:"pin",annotationId:C.annotationId,x:p.pinX,y:p.pinY},context:{element_tag:p.elementTag,element_classes:p.elementClasses}})}else C.kind==="arrow"&&lu(C.annotationId,P.value.trim());we.value=null,P.value=""}}function wl(){const C=we.value;C&&(C.kind==="pin"&&a.removePin(C.annotationId),C.kind==="arrow"&&a.removeArrow(C.annotationId)),we.value=null,P.value=""}function su(C){Wt({type:"annotation",description:C,file:"",line:0})}function ou(C){var ce;const p=C.ctrlKey||C.metaKey;if(p&&C.key==="z"&&!C.shiftKey){C.preventDefault(),r();return}const I=(ce=C.target)==null?void 0:ce.tagName;if(I==="INPUT"||I==="TEXTAREA"||I==="SELECT")return;const K=C.key;if(K==="?"||K==="/"&&C.shiftKey){L.value=!L.value;return}if(K==="Escape"){if(pe.value){pe.value=!1;return}if(L.value){L.value=!1;return}if(we.value){wl();return}T.value=null,D.value=[],W.value=[],H.value=[],ue.value=[];return}if((K==="l"||K==="L")&&!p){w.toggle();return}if((K==="t"||K==="T")&&!p){De.value=De.value==="tasks"?"inspector":"tasks";return}}Gn(()=>{var C;b.mountBridge(),Fi(),(C=g.value)==null||C.addEventListener("load",Ei),document.addEventListener("keydown",ou)}),En(()=>{b.unmountBridge()});const ru=re(()=>{const C=v.effectiveViewport.value;return!C.width&&!C.height?{}:{width:C.width?`${C.width}px`:"100%",height:C.height?`${C.height}px`:"100%"}}),au=re(()=>new URLSearchParams(window.location.search).get("appUrl")||window.location.origin+"/");return(C,p)=>{var I,K,ce,Ce;return y(),_("div",Ry,[c("header",My,[c("div",Ly,[p[55]||(p[55]=c("svg",{class:"logo",viewBox:"0 0 85.81 90.51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"m72.02 90.31c-.17-.1-.43-.48-.57-.82-.37-.93-1.97-3.46-2.74-4.33-.66-.74-.77-.79-5.99-2.5-2.93-.96-5.52-1.85-5.77-1.98-.47-.25-.35.01-4.7-9.99-1.1-2.53-2.11-4.72-2.25-4.87-.22-.24-1.7-.26-11.7-.21-6.3.03-11.51.12-11.58.19-.11.11-2.06 4.98-4.34 10.84-.4 1.04-1.21 3.11-1.8 4.6-.58 1.49-1.52 3.88-2.08 5.32-.64 1.65-1.18 2.76-1.45 3.02l-.44.41H8.31 0l.49-1.22c4.92-12.33 8.69-21.78 9.54-23.94 1.22-3.09 4.33-10.89 6.52-16.32.82-2.03 1.72-4.3 2-5.05.28-.74 1.17-2.97 1.97-4.96 2.26-5.6 3-7.45 4.7-11.72 2.32-5.86 5.17-13 7.63-19.11 1.2-2.98 2.29-5.73 2.44-6.13.15-.4.45-.9.68-1.13l.42-.41h8.22c4.57 0 8.4.07 8.63.17.49.19.22-.38 3.81 8.22 1.57 3.77 3 7.18 3.17 7.57.73 1.72 6 14.31 7.22 17.22 1.71 4.1 5.73 13.7 6 14.34.17.4.66 1.58 1.09 2.61.43 1.04 1.63 3.94 2.68 6.46 1.05 2.51 1.9 4.63 1.9 4.71 0 .08-.14.2-.3.27-.17.07-2.89 1.13-6.05 2.37-3.16 1.23-6.39 2.5-7.17 2.81-.78.31-1.47.51-1.53.45-.06-.06-.47-1.07-.92-2.24-1.24-3.24-5.96-15.5-7.72-20.06-.86-2.23-2.45-6.33-3.52-9.11-1.07-2.78-2.93-7.6-4.14-10.73-1.2-3.12-2.4-6.25-2.67-6.94l-.48-1.26-.19.54c-.42 1.17-1.35 3.64-3.23 8.56-1.08 2.83-2.45 6.44-3.05 8.02-.6 1.59-2.24 5.89-3.65 9.56l-2.57 6.67 8.58.05 8.58.05.31.76c.17.42 1.14 2.91 2.16 5.54 6.49 16.81 6.66 17.24 6.88 17.18.08-.02 1.08-.41 2.21-.87 1.13-.46 3.45-1.39 5.15-2.06 5.12-2.03 14.4-5.73 14.68-5.85.14-.06.39-.01.55.12.32.25 2.19 4.68 2.19 5.19 0 .18-.14.48-.3.68-.27.32-5.46 2.61-10.94 4.83-4.74 1.92-6.58 2.65-7.29 2.92l-.77.29 1.94.34 1.94.34.77-.38c1.61-.79 3.36-1.45 7.27-2.71 2.22-.72 4.1-1.32 4.19-1.33.16-.02.94 1.75 2.24 5.12.41 1.04 1.36 3.49 2.13 5.45.77 1.96 1.39 3.71 1.39 3.89 0 .75-.14.76-6.94.76-4.33 0-6.64-.07-6.85-.2z"})],-1)),c("div",Dy,[c("button",{class:J(["toggle-btn",{active:R.value==="editor"}]),onClick:p[0]||(p[0]=S=>R.value="editor")},"Editor",2),c("button",{class:J(["toggle-btn",{active:R.value==="theme"}]),onClick:p[1]||(p[1]=S=>R.value="theme")},"Theme",2)]),R.value==="editor"?(y(),_(ne,{key:0},[et(Yp,{modelValue:Z(k),"onUpdate:modelValue":p[2]||(p[2]=S=>Ke(k)?k.value=S:null)},null,8,["modelValue"]),c("button",{class:J(["tool-btn",{active:Z(w).showOverlay.value}]),onClick:p[3]||(p[3]=S=>Z(w).toggle()),title:"Show Layout (L)"},[...p[54]||(p[54]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),c("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),c("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1)])],2)],64)):j("",!0)]),R.value==="editor"?(y(),_("div",Ny,[et(Oy),c("code",Vy,O(Z(A)),1)])):(y(),_("div",Hy)),R.value==="editor"?(y(),_("div",By,[c("div",jy,[c("button",{class:J(["toggle-btn",{active:De.value==="inspector"}]),onClick:p[4]||(p[4]=S=>De.value="inspector")},[...p[56]||(p[56]=[c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1),Qe(" Inspector ",-1)])],2),c("button",{class:J(["toggle-btn",{active:De.value==="tasks"}]),onClick:p[5]||(p[5]=S=>De.value="tasks")},[p[57]||(p[57]=c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("path",{d:"M9 11l3 3L22 4"}),c("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),p[58]||(p[58]=Qe(" Tasks ",-1)),me.value.length?(y(),_("span",Uy,O(me.value.length),1)):j("",!0)],2),c("button",{class:J(["toggle-btn",{active:De.value==="a11y"}]),onClick:p[6]||(p[6]=S=>De.value="a11y")},[p[59]||(p[59]=c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("circle",{cx:"12",cy:"4",r:"2"}),c("path",{d:"M4 8h16M6 12l3 8M18 12l-3 8"})],-1)),p[60]||(p[60]=Qe(" A11y ",-1)),B.value.length?(y(),_("span",Yy,O(B.value.length),1)):j("",!0)],2)]),c("div",Ky,[c("button",{class:J(["vis-btn",{off:!ye.value.inspector}]),onClick:p[7]||(p[7]=S=>ye.value.inspector=!ye.value.inspector),title:"Toggle Inspector Highlights"},"I",2),c("button",{class:J(["vis-btn",{off:!ye.value.pins}]),onClick:p[8]||(p[8]=S=>ye.value.pins=!ye.value.pins),title:"Toggle Pins"},"P",2),c("button",{class:J(["vis-btn",{off:!ye.value.arrows}]),onClick:p[9]||(p[9]=S=>ye.value.arrows=!ye.value.arrows),title:"Toggle Arrows"},"A",2),c("button",{class:J(["vis-btn",{off:!ye.value.sections}]),onClick:p[10]||(p[10]=S=>ye.value.sections=!ye.value.sections),title:"Toggle Sections"},"D",2),c("button",{class:J(["vis-btn",{off:!ye.value.highlights}]),onClick:p[11]||(p[11]=S=>ye.value.highlights=!ye.value.highlights),title:"Toggle Highlights"},"H",2)]),c("button",{class:J(["tool-btn",{active:pe.value}]),onClick:p[12]||(p[12]=S=>pe.value=!pe.value)}," View Tasks ",2),c("button",{class:J(["tool-btn",{active:L.value}]),onClick:p[13]||(p[13]=S=>L.value=!L.value),title:"Keyboard Shortcuts (?)"},"?",2)])):(y(),_("div",Wy))]),te.value?(y(),_("div",zy,[...p[61]||(p[61]=[Qe(" Source mapping unavailable — add ",-1),c("code",null,"annotask()",-1),Qe(" to your Vite plugins. ",-1)])])):j("",!0),Z($)?j("",!0):(y(),_("div",Gy,[...p[62]||(p[62]=[Qe(" Annotask not initialized — run ",-1),c("code",null,"/annotask-init",-1),Qe(" in your AI assistant to set up project tokens and component detection. ",-1)])])),c("div",Xy,[c("div",{class:J(["canvas-area",{"viewport-active":!Z(v).isFullWidth.value}]),onPointerdown:p[20]||(p[20]=S=>R.value==="editor"?Z(le)(S):void 0),onPointermove:p[21]||(p[21]=S=>R.value==="editor"?Z(M)(S):void 0),onPointerup:p[22]||(p[22]=S=>R.value==="editor"?Z(X)(S):void 0)},[c("iframe",{ref_key:"iframeRef",ref:g,src:au.value,class:"app-iframe",style:Le(ru.value)},null,12,qy),R.value==="editor"?(y(),_(ne,{key:0},[Z(k)==="arrow"||Z(k)==="draw"?(y(),_("div",{key:0,class:J(["drawing-shield",Z(k)])},null,2)):j("",!0),ye.value.inspector?(y(),_(ne,{key:1},[ct.value?(y(),_("div",{key:0,class:"highlight hover",style:Le({left:ct.value.x+"px",top:ct.value.y+"px",width:ct.value.width+"px",height:ct.value.height+"px"})},[Pt.value?(y(),_("div",Jy,[c("span",Zy,"<"+O(Pt.value.tag)+">",1),Pt.value.component?(y(),_("span",Qy,O(Pt.value.component),1)):j("",!0)])):j("",!0)],4)):j("",!0),(y(!0),_(ne,null,ve(ue.value,(S,_e)=>(y(),_("div",{key:"g"+_e,class:"highlight group",style:Le({left:S.x+"px",top:S.y+"px",width:S.width+"px",height:S.height+"px"})},null,4))),128)),(y(!0),_(ne,null,ve(H.value,(S,_e)=>(y(),_("div",{key:"s"+_e,class:"highlight select",style:Le({left:S.x+"px",top:S.y+"px",width:S.width+"px",height:S.height+"px"})},[_e===0&&T.value?(y(),_("div",eb," <"+O(T.value.tagName)+"> · "+O(T.value.component),1)):j("",!0)],4))),128))],64)):j("",!0),ye.value.pins?(y(),_t(th,{key:2,pins:Z(a).routePins.value,selectedPinId:Z(a).selectedPinId.value,iframeOffset:{x:((K=(I=g.value)==null?void 0:I.getBoundingClientRect())==null?void 0:K.left)||0,y:((Ce=(ce=g.value)==null?void 0:ce.getBoundingClientRect())==null?void 0:Ce.top)||0},onSelectPin:p[14]||(p[14]=S=>{Z(a).selectedPinId.value=S,ge.value="notes"}),onRemovePin:Z(a).removePin},null,8,["pins","selectedPinId","iframeOffset","onRemovePin"])):j("",!0),ye.value.arrows?(y(),_t(vh,{key:3,arrows:Z(a).routeArrows.value,selectedId:Z(a).selectedArrowId.value,drawingArrow:Z(N),onSelect:p[15]||(p[15]=S=>Z(a).selectedArrowId.value=S),onRemove:Z(a).removeArrow},null,8,["arrows","selectedId","drawingArrow","onRemove"])):j("",!0),ye.value.sections?(y(),_t(Ch,{key:4,sections:Z(a).routeSections.value,selectedId:Z(a).selectedSectionId.value,drawingRect:Z(Y),onSelect:p[16]||(p[16]=S=>Z(a).selectedSectionId.value=S),onRemove:Z(a).removeDrawnSection,onUpdatePrompt:p[17]||(p[17]=(S,_e)=>Z(a).updateDrawnSection(S,{prompt:_e})),onCommit:nu},null,8,["sections","selectedId","drawingRect","onRemove"])):j("",!0),ye.value.highlights?(y(),_t(Cv,{key:5,highlights:Z(a).routeHighlights.value,selectedId:Z(a).selectedHighlightId.value,pending:V.value,onSelect:p[18]||(p[18]=S=>Z(a).selectedHighlightId.value=S),onRemove:Z(a).removeHighlight,onUpdatePrompt:p[19]||(p[19]=(S,_e)=>Z(a).updateHighlight(S,{prompt:_e})),onSubmitPending:eu,onCancelPending:tu},null,8,["highlights","selectedId","pending","onRemove"])):j("",!0),Z(w).showOverlay.value?(y(),_t(Ov,{key:6,containers:Z(w).containers.value},null,8,["containers"])):j("",!0)],64)):j("",!0)],34),R.value==="theme"?(y(),_("aside",tb,[et(P0,{iframeRef:g.value},null,8,["iframeRef"])])):j("",!0),R.value==="editor"&&L.value?(y(),_("aside",nb,[c("div",ib,[p[63]||(p[63]=c("span",{class:"source-path",style:{color:"var(--text)"}},"Keyboard Shortcuts",-1)),c("button",{class:"component-badge",style:{cursor:"pointer","margin-left":"auto"},onClick:p[23]||(p[23]=S=>L.value=!1)},"Esc to close")]),p[64]||(p[64]=qr('<div class="shortcuts-panel"><div class="shortcut-group"><div class="shortcut-group-title">Tools</div><div class="shortcut-row"><kbd>V</kbd><span>Select</span></div><div class="shortcut-row"><kbd>P</kbd><span>Pin</span></div><div class="shortcut-row"><kbd>A</kbd><span>Arrow</span></div><div class="shortcut-row"><kbd>D</kbd><span>Draw Section</span></div><div class="shortcut-row"><kbd>H</kbd><span>Highlight Text</span></div><div class="shortcut-row"><kbd>I</kbd><span>Interact Mode</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">View</div><div class="shortcut-row"><kbd>L</kbd><span>Toggle Layout Overlay</span></div><div class="shortcut-row"><kbd>T</kbd><span>Toggle Task Panel</span></div><div class="shortcut-row"><kbd>?</kbd><span>Toggle Shortcuts</span></div><div class="shortcut-row"><kbd>Esc</kbd><span>Deselect / Close Panel</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">Actions</div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Z</kbd><span>Undo</span></div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Enter</kbd><span>Submit Form</span></div></div><div class="shortcut-hint">On Mac, use <kbd class="mod">⌘</kbd> instead of <kbd class="mod">Ctrl</kbd></div></div>',1))])):R.value==="editor"&&we.value?(y(),_("aside",lb,[p[69]||(p[69]=c("div",{class:"panel-source"},[c("span",{class:"source-path",style:{color:"var(--text)"}},"Add Task")],-1)),c("div",sb,[c("div",ob,[c("div",{class:J(["pending-task-kind",we.value.kind])},[we.value.kind==="pin"?(y(),_("svg",rb,[...p[65]||(p[65]=[c("circle",{cx:"12",cy:"10",r:"3"},null,-1),c("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"},null,-1)])])):we.value.kind==="arrow"?(y(),_("svg",ab,[...p[66]||(p[66]=[c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),c("polyline",{points:"12 5 19 12 12 19"},null,-1)])])):j("",!0),c("span",null,O(we.value.label),1)],2),c("code",ub,O(we.value.file)+":"+O(we.value.line),1)]),Pe(c("textarea",{"onUpdate:modelValue":p[24]||(p[24]=S=>P.value=S),class:"pending-task-input",rows:"3",placeholder:"Describe the change...",autofocus:"",onKeydown:[Tt(Ve(Ms,["ctrl"]),["enter"]),Tt(wl,["escape"])]},null,40,cb),[[Be,P.value]]),c("div",db,[c("label",fb,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":p[25]||(p[25]=S=>se.value=S)},null,512),[[Zn,se.value]]),p[67]||(p[67]=c("span",null,"History",-1))]),c("label",pb,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":p[26]||(p[26]=S=>xe.value=S)},null,512),[[Zn,xe.value]]),p[68]||(p[68]=c("span",null,"DOM context",-1))])]),c("div",hb,[c("button",{class:"submit-btn",disabled:!P.value.trim(),onClick:Ms},"Add Task",8,vb),c("button",{class:"cancel-btn",onClick:wl},"Cancel")])])])):R.value==="editor"&&De.value==="tasks"?(y(),_("aside",gb,[c("div",mb,[p[70]||(p[70]=c("span",{class:"source-path",style:{color:"var(--text)"}},"Tasks",-1)),c("span",yb,O(Z(f).tasks.value.length),1),c("button",{class:"new-task-toggle",onClick:p[27]||(p[27]=S=>Te.value=!Te.value)},O(Te.value?"−":"+")+" New ",1)]),Te.value?(y(),_("div",bb,[Pe(c("textarea",{"onUpdate:modelValue":p[28]||(p[28]=S=>be.value=S),class:"new-task-input",rows:"2",placeholder:"Describe a change...",onKeydown:Tt(Ve(E,["ctrl"]),["enter"])},null,40,wb),[[Be,be.value]]),c("div",_b,[c("label",xb,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":p[29]||(p[29]=S=>se.value=S)},null,512),[[Zn,se.value]]),p[71]||(p[71]=c("span",null,"History",-1))]),c("label",kb,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":p[30]||(p[30]=S=>xe.value=S)},null,512),[[Zn,xe.value]]),p[72]||(p[72]=c("span",null,"DOM context",-1))])]),c("div",Cb,[c("button",{class:"submit-btn",disabled:!be.value.trim(),onClick:E},"Add",8,Ab),c("button",{class:"cancel-btn",onClick:p[31]||(p[31]=S=>{Te.value=!1,be.value=""})},"Cancel")])])):j("",!0),c("div",$b,[Z(f).tasks.value.length===0&&!Te.value?(y(),_("div",Sb," No tasks yet. Click + New to add one. ")):j("",!0),(y(!0),_(ne,null,ve(me.value,S=>(y(),_("div",{key:S.id,class:J(["task-card",S.status])},[c("div",Tb,[c("span",{class:J(["task-status-dot",S.status])},null,2),c("span",Eb,O(S.description),1),c("button",{class:"task-card-close",onClick:_e=>m(S.id)},"×",8,Fb)]),c("div",Ib,[c("code",Pb,O(S.file)+":"+O(S.line),1),S.route?(y(),_("span",Ob,O(S.route),1)):j("",!0)]),S.feedback?(y(),_("div",Rb,O(S.feedback),1)):j("",!0),S.status==="review"?(y(),_("div",Mb,[Xe.value!==S.id?(y(),_(ne,{key:0},[c("button",{class:"task-accept",onClick:_e=>m(S.id)},"Accept",8,Lb),c("button",{class:"task-deny",onClick:_e=>{Xe.value=S.id,q.value=""}},"Deny",8,Db)],64)):(y(),_(ne,{key:1},[Pe(c("input",{"onUpdate:modelValue":p[32]||(p[32]=_e=>q.value=_e),class:"deny-feedback-input",placeholder:"What needs to change?",autofocus:"",onKeydown:[Tt(_e=>x(S.id),["enter"]),p[33]||(p[33]=Tt(_e=>Xe.value=null,["escape"]))]},null,40,Nb),[[Be,q.value]]),c("button",{class:"task-deny",disabled:!q.value.trim(),onClick:_e=>x(S.id)},"Send",8,Vb),c("button",{class:"cancel-btn",style:{padding:"4px 8px","font-size":"10px"},onClick:p[34]||(p[34]=_e=>Xe.value=null)},"Cancel")],64))])):j("",!0)],2))),128))])])):R.value==="editor"&&De.value==="a11y"?(y(),_("aside",Hb,[c("div",Bb,[p[73]||(p[73]=c("span",{class:"source-path",style:{color:"var(--text)"}},"Accessibility",-1)),c("button",{class:"scan-btn",disabled:ee.value,onClick:p[35]||(p[35]=S=>We("page")),style:{"margin-left":"auto"}},O(ee.value?"Scanning...":"Scan Page"),9,jb)]),c("div",Ub,[Ae.value?(y(),_("div",Yb,O(Ae.value),1)):j("",!0),!ee.value&&B.value.length===0&&!Ae.value&&He.value?(y(),_("div",Kb,[...p[74]||(p[74]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("path",{d:"M20 6L9 17l-5-5"})],-1),Qe(" No violations found ",-1)])])):!ee.value&&B.value.length===0&&!Ae.value?(y(),_("div",Wb," Click Scan Page to check accessibility ")):j("",!0),B.value.length?(y(),_("div",zb,O(B.value.length)+" violation"+O(B.value.length===1?"":"s"),1)):j("",!0),(y(!0),_(ne,null,ve(B.value,S=>(y(),_("div",{key:S.id,class:J(["a11y-card",S.impact])},[c("div",Gb,[c("span",{class:J(["a11y-impact",S.impact])},O(S.impact),3),c("span",Xb,O(S.id),1),c("span",qb,O(S.nodes)+" element"+O(S.nodes===1?"":"s"),1)]),c("p",Jb,O(S.help),1),ie.value.has(S.id)?(y(),_("span",Zb,"Task created")):(y(),_("button",{key:1,class:"a11y-fix-btn",onClick:_e=>Qa(S)},"Create Fix Task",8,Qb))],2))),128))])])):R.value==="editor"&&De.value==="inspector"&&T.value?(y(),_("aside",ew,[c("div",tw,[c("code",nw,O(T.value.file)+":"+O(T.value.line),1),c("span",iw,O(T.value.component),1),$e.value?(y(),_("span",{key:0,class:J(["role-badge",$e.value])},O($e.value),3)):j("",!0)]),Ee.value?(y(),_("div",lw,[c("span",sw,O(Ee.value),1),W.value.length>1&&D.value.length<=1?(y(),_("label",ow,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":p[36]||(p[36]=S=>z.value=S)},null,512),[[Zn,z.value]]),c("span",rw,"Apply to all "+O(W.value.length),1)])):j("",!0)])):j("",!0),c("div",aw,[c("button",{class:J(["tab",{active:ge.value==="notes"}]),onClick:p[37]||(p[37]=S=>ge.value="notes")},[p[75]||(p[75]=Qe(" Task ",-1)),Z(a).routePins.value.length?(y(),_("span",uw,O(Z(a).routePins.value.length),1)):j("",!0)],2),c("button",{class:J(["tab",{active:ge.value==="layout"}]),onClick:p[38]||(p[38]=S=>ge.value="layout")},"Layout",2),c("button",{class:J(["tab",{active:ge.value==="spacing"}]),onClick:p[39]||(p[39]=S=>ge.value="spacing")},"Spacing",2),c("button",{class:J(["tab",{active:ge.value==="size"}]),onClick:p[40]||(p[40]=S=>ge.value="size")},"Size",2),c("button",{class:J(["tab",{active:ge.value==="style"}]),onClick:p[41]||(p[41]=S=>ge.value="style")},"Style",2),c("button",{class:J(["tab",{active:ge.value==="classes"}]),onClick:p[42]||(p[42]=S=>ge.value="classes")},"Classes",2)]),c("div",cw,[ge.value==="layout"?(y(),_t(lf,{key:0,computedStyles:lt.value,onChange:Ii},null,8,["computedStyles"])):j("",!0),ge.value==="spacing"?(y(),_t(bf,{key:1,computedStyles:lt.value,onChange:Ii},null,8,["computedStyles"])):j("",!0),ge.value==="size"?(y(),_t(Pf,{key:2,computedStyles:lt.value,onChange:Ii},null,8,["computedStyles"])):j("",!0),ge.value==="style"?(y(),_t(Sp,{key:3,computedStyles:lt.value,iframeDoc:null,onChange:Ii},null,8,["computedStyles"])):j("",!0),ge.value==="classes"?(y(),_("div",dw,[Pe(c("textarea",{"onUpdate:modelValue":p[43]||(p[43]=S=>ut.value=S),class:"class-editor",rows:"4",onBlur:Ps,onKeydown:Tt(Ve(Ps,["ctrl"]),["enter"]),placeholder:"Edit CSS classes..."},null,40,fw),[[Be,ut.value]]),p[76]||(p[76]=c("p",{class:"hint"},"Ctrl+Enter or blur to apply",-1))])):j("",!0),ge.value==="notes"?(y(),_t(fv,{key:5,pins:Z(a).routePins.value,selectedPinId:Z(a).selectedPinId.value,selectedElement:T.value,elementRole:$e.value,tasks:Z(f).tasks.value,includeHistory:se.value,includeElementContext:xe.value,"onUpdate:includeHistory":p[44]||(p[44]=S=>se.value=S),"onUpdate:includeElementContext":p[45]||(p[45]=S=>xe.value=S),onAddNote:qa,onAddAction:Ja,onAddTask:su,onSelectPin:p[46]||(p[46]=S=>Z(a).selectedPinId.value=S),onUpdateNote:p[47]||(p[47]=S=>Z(a).updatePinNote(S,"")),onRemovePin:p[48]||(p[48]=S=>Z(a).removePin(S)),onAcceptTask:p[49]||(p[49]=S=>Z(f).updateTaskStatus(S,"accepted")),onDenyTask:p[50]||(p[50]=(S,_e)=>Z(f).updateTaskStatus(S,"denied",_e)),onCancelTask:p[51]||(p[51]=S=>Z(f).updateTaskStatus(S,"accepted"))},null,8,["pins","selectedPinId","selectedElement","elementRole","tasks","includeHistory","includeElementContext"])):j("",!0)]),Z(o).length?(y(),_("div",pw,[c("div",hw,[(y(!0),_(ne,null,ve(Z(o),S=>(y(),_("div",{key:S.id,class:"change-item"},[S.type==="style_update"?(y(),_(ne,{key:0},[c("code",vw,O(S.property),1),p[77]||(p[77]=c("span",{class:"change-arrow"},"→",-1)),c("code",gw,O(S.after),1)],64)):S.type==="class_update"?(y(),_(ne,{key:1},[p[78]||(p[78]=c("code",{class:"change-prop"},"classes",-1)),p[79]||(p[79]=c("span",{class:"change-arrow"},"→",-1)),c("code",mw,O(S.after.classes.substring(0,30)),1)],64)):j("",!0)]))),128))]),c("div",yw,[c("span",bw,O(Z(o).length)+" change"+O(Z(o).length===1?"":"s"),1),c("button",{class:"changes-commit",onClick:d},"Commit to Task"),c("button",{class:"changes-discard",onClick:u},"Discard")])])):j("",!0)])):R.value==="editor"&&De.value==="inspector"?(y(),_("aside",ww,[...p[80]||(p[80]=[c("div",{class:"empty-content"},[c("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[c("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})]),c("p",null,"Click an element to inspect"),c("p",{class:"empty-hint"},"Press P to pin, hover to highlight")],-1)])])):j("",!0)]),et(qp,Jr(yl.value,{onClose:p[52]||(p[52]=S=>yl.value.visible=!1)}),null,16),pe.value?(y(),_t(hy,{key:2,tasks:Z(f).tasks.value,onClose:p[53]||(p[53]=S=>pe.value=!1)},null,8,["tasks"])):j("",!0)])}}});Dd(_w).mount("#app");
|