@aevantec/litevue 0.5.15 → 0.5.16

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 CHANGED
@@ -61,7 +61,7 @@ Full documentation lives in the **[docs site](https://litevue.dev/)** (source in
61
61
 
62
62
  ```sh
63
63
  pnpm install
64
- pnpm dev # test pages at localhost:3000
64
+ pnpm dev # every example and playground page, at localhost:3000
65
65
  pnpm test # vitest suite
66
66
  pnpm build # core, devtools and plugin bundles, production and development
67
67
  pnpm docs:dev # documentation site
@@ -505,8 +505,9 @@ var LiteVuePlugins = (function(exports, _aevantec_litevue) {
505
505
  };
506
506
  var patchAttrs = (from, to) => {
507
507
  const owned = boundAttrs(to);
508
+ const bound = Object(from.__bound);
508
509
  for (const { name, value } of [...to.attributes]) {
509
- if (dirRE.test(name) || owned.has(name)) continue;
510
+ if (dirRE.test(name) || owned.has(name) || name in bound) continue;
510
511
  if (from.getAttribute(name) !== value) from.setAttribute(name, value);
511
512
  }
512
513
  for (const { name } of [...from.attributes]) {
@@ -504,8 +504,9 @@ var ownsChildren = (to) => {
504
504
  };
505
505
  var patchAttrs = (from, to) => {
506
506
  const owned = boundAttrs(to);
507
+ const bound = Object(from.__bound);
507
508
  for (const { name, value } of [...to.attributes]) {
508
- if (dirRE.test(name) || owned.has(name)) continue;
509
+ if (dirRE.test(name) || owned.has(name) || name in bound) continue;
509
510
  if (from.getAttribute(name) !== value) from.setAttribute(name, value);
510
511
  }
511
512
  for (const { name } of [...from.attributes]) {
@@ -1 +1 @@
1
- var LiteVuePlugins=function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},r=(e,t)=>{let r="",i="",o=0;for(let s=0;s<t.length;s++){const c=n[t[s]];if(c){for(;o<e.length&&!c.test(e[o]);)o++;if(o>=e.length)break;r+=i+e[o++],i=""}else i+=t[s],e[o]===t[s]&&o++}return r},i=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),o=(e,t)=>{const n=e.split(","),r=t.split(",");let o=0;for(let s=0;s<n.length;s++)o=Math.max(o,i(n[s])+i(r[s%r.length]));return o},s="litevue:",c=Object.create(null),a="local",l=e=>{const t=e??a;return"string"!=typeof t?t:c[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},d=(e,t,n,r,i)=>{if(!r)return i(()=>{});const o=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const r=n&&n.value;return(!r||!0!==r.__v_isRef||!0!==r.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(r.getItem(t)||"null");if(n)for(const t of o)t in n&&(e[t]=n[t])}catch{}return i(()=>{const n={};for(const t of o)n[t]=e[t];try{r.setItem(t,JSON.stringify(n))}catch{}})},f=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),u=/^(?:v-|:|@)/,m=/^(?::|v-bind:)/,p=/^v-(?!scope|on:)/,v=["id","data-key","data-id"],h=e=>{for(const t of v){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},b=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},g=e=>e.__ctx||[...e.children||[]].map(g).find(Boolean),y=(e,t)=>(t||g(e))?.dispose?.(e),k=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),w=(e,t)=>{const n=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)m.test(n)?t.add(n.replace(m,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):p.test(n)&&t.add("style");return t})(t);for(const{name:r,value:i}of[...t.attributes])u.test(r)||n.has(r)||e.getAttribute(r)!==i&&e.setAttribute(r,i);for(const{name:r}of[...e.attributes])n.has("*")||n.has(r)||t.hasAttribute(r)||e.removeAttribute(r)},x=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return E(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const i=e,o=t;if(i.tagName!==o.tagName)return E(e,t,n,r);r.skip?.(i,o)||i.hasAttribute("data-morph-skip")||(w(i,o),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||k(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(k(t))return!0;return!1})(o)||A(i,o,i.__ctx||n,r))},E=(e,t,n,r)=>{if(f(e,r))return;const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(y(e,n),e.parentNode.replaceChild(i,e),r.afterNodeRemoved?.(e),S(i,n))},S=(e,t)=>{const n=t||b(e.parentNode);n?.walk?.(e,n)},A=(e,t,n,r)=>{const i=r.key||h,o=new Map;for(let d=e.firstChild;d;d=d.nextSibling)if(1===d.nodeType){const e=i(d);if(null==e)continue;o.set(e,d)}const s=e=>e&&1===e.nodeType?i(e):null;let c=e.firstChild,a=t.firstChild;const l=t=>{const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(e.insertBefore(i,c),S(i,n))};for(;a;){const t=a.nextSibling,i=s(a);if(null!=i){const t=o.get(i);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),o.delete(i),x(t,a,n,r)):l(a)}else if(c&&null==s(c)){const e=c.nextSibling;x(c,a,n,r),c=e}else l(a);a=t}for(;c;){const t=c.nextSibling;f(c,r)||(y(c,n),e.removeChild(c),r.afterNodeRemoved?.(c)),c=t}},L=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const i=n.content;r=1===i.childElementCount?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(i),t})()}else r=t;if(r){const t=()=>{const t=O();x(e,r,b(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},O=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},T={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},$=Object.freeze({...T}),_={mobile:"base",tablet:"md",desktop:"lg"},j=/^\d+$/,N=(0,t.reactive)({bp:"base",tick:0}),P={...T},q=["base"],C=!1,D=[],M=new Map,z=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,R=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),B=()=>{for(let e=D.length-1;e>=0;e--)if(D[e].mql.matches)return q[e+1];return"base"},I=()=>{D.forEach(e=>e.off()),D=[];const e=Object.keys(P).filter(e=>P[e]>0).sort((e,t)=>P[e]-P[t]);q=["base",...e],z()&&(D=e.map(e=>{const t=window.matchMedia(`(min-width: ${P[e]}px)`);return R(t,()=>{N.bp=B()})}),N.bp=B())},V=()=>{C||(C=!0,I()),N.tick},H=e=>{if(!z())return!1;let t=M.get(e);t?M.delete(e):t=R(window.matchMedia(e),()=>N.tick++),M.set(e,t);for(const[n,r]of M){if(M.size<=64)break;r.off(),M.delete(n)}return t.mql.matches},J=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(j.test(e))return Number(e);const t=_[e];return void 0!==t?"base"===t?0:P[t]:P[e]},K=e=>{if(e<=0)return!0;const t=q.findIndex(t=>"base"!==t&&P[t]===e);return-1!==t?q.indexOf(N.bp)>=t:(N.tick,H(`(min-width: ${e}px)`))},W=new Set,Z=(e,t)=>{if(V(),!e||"object"!=typeof e)return t;let n,r=-1;for(const i of Object.keys(e)){const t=J(i);void 0!==t?t>=r&&K(t)&&(r=t,n=e[i]):(q.join(", "),Object.keys(_).join(", "))}return void 0!==n?n:t},F=e=>{const t=_[e],n=P[t];return void 0!==n?n:T[t]},G=Object.defineProperties((e,t)=>Z(e,t),{props:{value:e=>{V();const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}},breakpoint:{get:()=>(V(),N.bp),enumerable:!0},device:{get:()=>(V(),K(F("tablet"))?K(F("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{V();const t=J(e);return void 0!==t&&K(t)}},match:{value:e=>(V(),H(e))},configure:{value:({breakpoints:e})=>{e&&(P={...e},C&&(I(),N.tick++))}}}),Q=()=>{D.forEach(e=>e.off()),M.forEach(e=>e.off()),D=[],M.clear(),C=!1};return e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:r})=>{const i=e;let o=250;for(const m in r||{}){const e=/^duration-(\d+)$/.exec(m);e&&(o=+e[1])}const s=["overflow","height","transition","visibility"],c=s.map(e=>i.style[e]),a=e=>i.style.visibility=e?"hidden":c[3];i.style.overflow="hidden";let l=!0,d=0;const f=new Set,u=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++d;if(l)return l=!1,e||(i.style.height="0px"),a(!e),void u(()=>{i.style.transition=`height ${o}ms ease, visibility ${o}ms`});a(!e),e?(i.style.height=i.scrollHeight+"px",u(()=>{n===d&&(i.style.height="")},o)):(i.style.height=i.scrollHeight+"px",i.offsetHeight,i.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>i.style[e]=c[t])}})},e.defaultBreakpoints=$,e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:r})=>{let i=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{i&&n&&(e.focus(),r?.select&&e.select&&e.select())})}),()=>{i=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let r=!1,i=null;const o=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})),s=t=>{if("Tab"!==t.key)return;const n=o();if(!n.length)return void t.preventDefault();const r=n[0],i=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===r?(t.preventDefault(),i.focus()):t.shiftKey||s!==i||(t.preventDefault(),r.focus()):(t.preventDefault(),r.focus())},c=()=>{r=!1,document.removeEventListener("keydown",s,!0),i&&i.focus&&i.focus()};return n(()=>{const n=!!t();n&&!r?(r=!0,i=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{r&&(o()[0]||e).focus()})):!n&&r&&c()}),()=>{r&&c()}})},e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let r=!1;const i=new IntersectionObserver(e=>{for(const o of e){const e=n?.full?o.intersectionRatio>=1:o.isIntersecting,s=n?.leave?r&&!e:e&&!r;r=e,s&&(t(),n?.once&&i.disconnect())}},{threshold:n?.full?1:0});return i.observe(e),()=>i.disconnect()})},e.mask=e=>{e.directive("mask",({el:e,exp:t})=>{const n=e,i=()=>{const{value:e,selectionStart:i}=n,o=r(e,t);if(o===e)return!1;if(n.value=o,null!=i&&document.activeElement===n){const o=r(e.slice(0,i),t).length;n.setSelectionRange(o,o)}return!0};e.addEventListener("input",i),i();let o=!0;return Promise.resolve().then(()=>{o&&i()&&e.dispatchEvent(new Event("input"))}),()=>{o=!1,e.removeEventListener("input",i)}})},e.media=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&G.configure(t),e.scope.$mq=G,e.scope.$mqProps=G.props,e.scope.$mqAtLeast=G.atLeast,e.scope.$mqMatch=G.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>G.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>G.device,enumerable:!0,configurable:!0}),Q),e.morph=L,e.morphPlugin=e=>{e.scope.$morph=L},e.mq=G,e.persist=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:r,modifiers:i,effect:o})=>{const c=s+(n||t.id);let a;for(const s in i||{})if(l(s)){a=s;break}const f=r?r.split(",").map(e=>e.trim()).filter(Boolean):void 0;d(e.scope,c,f,l(a),o)})},e.persistStore=(e,n={})=>{const r=(0,t.store)(e);if(!r)return()=>{};const i=l(n.storage);return d(r,s+(n.key??e),n.keys,i,t.watchEffect)},e.registerStorage=(e,t)=>{c[e]=t},e.resetMedia=()=>{Q(),P={...T},q=["base",...Object.keys(P).sort((e,t)=>P[e]-P[t])],C=!1,W.clear(),N.bp="base",N.tick=0},e.resize=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:r})=>{const i=t(`(($width, $height) => { ${n} })`);if(r?.window||r?.visual){const e=r.visual&&window.visualViewport||window,t=()=>i(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;i(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})},e.setDefaultStorage=e=>{a=e},e.transition=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:r,modifiers:i,exp:s})=>{const c=e,a=r||"v",l=e=>`${a}-${e}`;let d,f=0,u=!0;const m=()=>{c.classList.remove(l("enter-from"),l("enter-active"),l("enter-to"),l("leave-from"),l("leave-active"),l("leave-to"))},p=(e,t)=>{const n=++f;m(),c.classList.add(l(e+"-from"),l(e+"-active")),c.offsetWidth,c.classList.remove(l(e+"-from")),c.classList.add(l(e+"-to")),clearTimeout(d),d=setTimeout(()=>{n===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(o(t.transitionDuration,t.transitionDelay),o(t.animationDuration,t.animationDelay))})(c))};if(!s){let e=!0;return Promise.resolve().then(()=>{e&&p("enter")}),c.__leave=()=>new Promise(e=>p("leave",e)),()=>{e=!1,clearTimeout(d),m(),delete c.__leave}}const v="none"==c.style.display?"":c.style.display;return n(()=>{const e=!!t();if(u)return u=!1,c.style.display=e?v:"none",void(e&&i?.appear&&p("enter"));e?(c.style.display=v,p("enter")):p("leave",()=>{c.style.display="none"})}),()=>{clearTimeout(d),m()}})},e}({},LiteVue);
1
+ var LiteVuePlugins=function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},r=(e,t)=>{let r="",i="",o=0;for(let s=0;s<t.length;s++){const c=n[t[s]];if(c){for(;o<e.length&&!c.test(e[o]);)o++;if(o>=e.length)break;r+=i+e[o++],i=""}else i+=t[s],e[o]===t[s]&&o++}return r},i=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),o=(e,t)=>{const n=e.split(","),r=t.split(",");let o=0;for(let s=0;s<n.length;s++)o=Math.max(o,i(n[s])+i(r[s%r.length]));return o},s="litevue:",c=Object.create(null),a="local",l=e=>{const t=e??a;return"string"!=typeof t?t:c[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},d=(e,t,n,r,i)=>{if(!r)return i(()=>{});const o=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const r=n&&n.value;return(!r||!0!==r.__v_isRef||!0!==r.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(r.getItem(t)||"null");if(n)for(const t of o)t in n&&(e[t]=n[t])}catch{}return i(()=>{const n={};for(const t of o)n[t]=e[t];try{r.setItem(t,JSON.stringify(n))}catch{}})},f=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),u=/^(?:v-|:|@)/,m=/^(?::|v-bind:)/,p=/^v-(?!scope|on:)/,v=["id","data-key","data-id"],h=e=>{for(const t of v){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},b=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},g=e=>e.__ctx||[...e.children||[]].map(g).find(Boolean),y=(e,t)=>(t||g(e))?.dispose?.(e),k=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),w=(e,t)=>{const n=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)m.test(n)?t.add(n.replace(m,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):p.test(n)&&t.add("style");return t})(t),r=Object(e.__bound);for(const{name:i,value:o}of[...t.attributes])u.test(i)||n.has(i)||i in r||e.getAttribute(i)!==o&&e.setAttribute(i,o);for(const{name:i}of[...e.attributes])n.has("*")||n.has(i)||t.hasAttribute(i)||e.removeAttribute(i)},x=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return E(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const i=e,o=t;if(i.tagName!==o.tagName)return E(e,t,n,r);r.skip?.(i,o)||i.hasAttribute("data-morph-skip")||(w(i,o),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||k(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(k(t))return!0;return!1})(o)||A(i,o,i.__ctx||n,r))},E=(e,t,n,r)=>{if(f(e,r))return;const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(y(e,n),e.parentNode.replaceChild(i,e),r.afterNodeRemoved?.(e),S(i,n))},S=(e,t)=>{const n=t||b(e.parentNode);n?.walk?.(e,n)},A=(e,t,n,r)=>{const i=r.key||h,o=new Map;for(let d=e.firstChild;d;d=d.nextSibling)if(1===d.nodeType){const e=i(d);if(null==e)continue;o.set(e,d)}const s=e=>e&&1===e.nodeType?i(e):null;let c=e.firstChild,a=t.firstChild;const l=t=>{const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(e.insertBefore(i,c),S(i,n))};for(;a;){const t=a.nextSibling,i=s(a);if(null!=i){const t=o.get(i);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),o.delete(i),x(t,a,n,r)):l(a)}else if(c&&null==s(c)){const e=c.nextSibling;x(c,a,n,r),c=e}else l(a);a=t}for(;c;){const t=c.nextSibling;f(c,r)||(y(c,n),e.removeChild(c),r.afterNodeRemoved?.(c)),c=t}},L=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const i=n.content;r=1===i.childElementCount?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(i),t})()}else r=t;if(r){const t=()=>{const t=O();x(e,r,b(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},O=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},_={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},T=Object.freeze({..._}),$={mobile:"base",tablet:"md",desktop:"lg"},j=/^\d+$/,N=(0,t.reactive)({bp:"base",tick:0}),P={..._},q=["base"],C=!1,D=[],M=new Map,z=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,R=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),B=()=>{for(let e=D.length-1;e>=0;e--)if(D[e].mql.matches)return q[e+1];return"base"},I=()=>{D.forEach(e=>e.off()),D=[];const e=Object.keys(P).filter(e=>P[e]>0).sort((e,t)=>P[e]-P[t]);q=["base",...e],z()&&(D=e.map(e=>{const t=window.matchMedia(`(min-width: ${P[e]}px)`);return R(t,()=>{N.bp=B()})}),N.bp=B())},V=()=>{C||(C=!0,I()),N.tick},H=e=>{if(!z())return!1;let t=M.get(e);t?M.delete(e):t=R(window.matchMedia(e),()=>N.tick++),M.set(e,t);for(const[n,r]of M){if(M.size<=64)break;r.off(),M.delete(n)}return t.mql.matches},J=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(j.test(e))return Number(e);const t=$[e];return void 0!==t?"base"===t?0:P[t]:P[e]},K=e=>{if(e<=0)return!0;const t=q.findIndex(t=>"base"!==t&&P[t]===e);return-1!==t?q.indexOf(N.bp)>=t:(N.tick,H(`(min-width: ${e}px)`))},W=new Set,Z=(e,t)=>{if(V(),!e||"object"!=typeof e)return t;let n,r=-1;for(const i of Object.keys(e)){const t=J(i);void 0!==t?t>=r&&K(t)&&(r=t,n=e[i]):(q.join(", "),Object.keys($).join(", "))}return void 0!==n?n:t},F=e=>{const t=$[e],n=P[t];return void 0!==n?n:_[t]},G=Object.defineProperties((e,t)=>Z(e,t),{props:{value:e=>{V();const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}},breakpoint:{get:()=>(V(),N.bp),enumerable:!0},device:{get:()=>(V(),K(F("tablet"))?K(F("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{V();const t=J(e);return void 0!==t&&K(t)}},match:{value:e=>(V(),H(e))},configure:{value:({breakpoints:e})=>{e&&(P={...e},C&&(I(),N.tick++))}}}),Q=()=>{D.forEach(e=>e.off()),M.forEach(e=>e.off()),D=[],M.clear(),C=!1};return e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:r})=>{const i=e;let o=250;for(const m in r||{}){const e=/^duration-(\d+)$/.exec(m);e&&(o=+e[1])}const s=["overflow","height","transition","visibility"],c=s.map(e=>i.style[e]),a=e=>i.style.visibility=e?"hidden":c[3];i.style.overflow="hidden";let l=!0,d=0;const f=new Set,u=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++d;if(l)return l=!1,e||(i.style.height="0px"),a(!e),void u(()=>{i.style.transition=`height ${o}ms ease, visibility ${o}ms`});a(!e),e?(i.style.height=i.scrollHeight+"px",u(()=>{n===d&&(i.style.height="")},o)):(i.style.height=i.scrollHeight+"px",i.offsetHeight,i.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>i.style[e]=c[t])}})},e.defaultBreakpoints=T,e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:r})=>{let i=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{i&&n&&(e.focus(),r?.select&&e.select&&e.select())})}),()=>{i=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let r=!1,i=null;const o=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})),s=t=>{if("Tab"!==t.key)return;const n=o();if(!n.length)return void t.preventDefault();const r=n[0],i=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===r?(t.preventDefault(),i.focus()):t.shiftKey||s!==i||(t.preventDefault(),r.focus()):(t.preventDefault(),r.focus())},c=()=>{r=!1,document.removeEventListener("keydown",s,!0),i&&i.focus&&i.focus()};return n(()=>{const n=!!t();n&&!r?(r=!0,i=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{r&&(o()[0]||e).focus()})):!n&&r&&c()}),()=>{r&&c()}})},e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let r=!1;const i=new IntersectionObserver(e=>{for(const o of e){const e=n?.full?o.intersectionRatio>=1:o.isIntersecting,s=n?.leave?r&&!e:e&&!r;r=e,s&&(t(),n?.once&&i.disconnect())}},{threshold:n?.full?1:0});return i.observe(e),()=>i.disconnect()})},e.mask=e=>{e.directive("mask",({el:e,exp:t})=>{const n=e,i=()=>{const{value:e,selectionStart:i}=n,o=r(e,t);if(o===e)return!1;if(n.value=o,null!=i&&document.activeElement===n){const o=r(e.slice(0,i),t).length;n.setSelectionRange(o,o)}return!0};e.addEventListener("input",i),i();let o=!0;return Promise.resolve().then(()=>{o&&i()&&e.dispatchEvent(new Event("input"))}),()=>{o=!1,e.removeEventListener("input",i)}})},e.media=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&G.configure(t),e.scope.$mq=G,e.scope.$mqProps=G.props,e.scope.$mqAtLeast=G.atLeast,e.scope.$mqMatch=G.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>G.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>G.device,enumerable:!0,configurable:!0}),Q),e.morph=L,e.morphPlugin=e=>{e.scope.$morph=L},e.mq=G,e.persist=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:r,modifiers:i,effect:o})=>{const c=s+(n||t.id);let a;for(const s in i||{})if(l(s)){a=s;break}const f=r?r.split(",").map(e=>e.trim()).filter(Boolean):void 0;d(e.scope,c,f,l(a),o)})},e.persistStore=(e,n={})=>{const r=(0,t.store)(e);if(!r)return()=>{};const i=l(n.storage);return d(r,s+(n.key??e),n.keys,i,t.watchEffect)},e.registerStorage=(e,t)=>{c[e]=t},e.resetMedia=()=>{Q(),P={..._},q=["base",...Object.keys(P).sort((e,t)=>P[e]-P[t])],C=!1,W.clear(),N.bp="base",N.tick=0},e.resize=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:r})=>{const i=t(`(($width, $height) => { ${n} })`);if(r?.window||r?.visual){const e=r.visual&&window.visualViewport||window,t=()=>i(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;i(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})},e.setDefaultStorage=e=>{a=e},e.transition=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:r,modifiers:i,exp:s})=>{const c=e,a=r||"v",l=e=>`${a}-${e}`;let d,f=0,u=!0;const m=()=>{c.classList.remove(l("enter-from"),l("enter-active"),l("enter-to"),l("leave-from"),l("leave-active"),l("leave-to"))},p=(e,t)=>{const n=++f;m(),c.classList.add(l(e+"-from"),l(e+"-active")),c.offsetWidth,c.classList.remove(l(e+"-from")),c.classList.add(l(e+"-to")),clearTimeout(d),d=setTimeout(()=>{n===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(o(t.transitionDuration,t.transitionDelay),o(t.animationDuration,t.animationDelay))})(c))};if(!s){let e=!0;return Promise.resolve().then(()=>{e&&p("enter")}),c.__leave=()=>new Promise(e=>p("leave",e)),()=>{e=!1,clearTimeout(d),m(),delete c.__leave}}const v="none"==c.style.display?"":c.style.display;return n(()=>{const e=!!t();if(u)return u=!1,c.style.display=e?v:"none",void(e&&i?.appear&&p("enter"));e?(c.style.display=v,p("enter")):p("leave",()=>{c.style.display="none"})}),()=>{clearTimeout(d),m()}})},e}({},LiteVue);
@@ -1 +1 @@
1
- import{reactive as e,store as t,watchEffect as n}from"@aevantec/litevue";var r=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let r=!1;const i=new IntersectionObserver(e=>{for(const o of e){const e=n?.full?o.intersectionRatio>=1:o.isIntersecting,s=n?.leave?r&&!e:e&&!r;r=e,s&&(t(),n?.once&&i.disconnect())}},{threshold:n?.full?1:0});return i.observe(e),()=>i.disconnect()})},i={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},o=(e,t)=>{let n="",r="",o=0;for(let s=0;s<t.length;s++){const c=i[t[s]];if(c){for(;o<e.length&&!c.test(e[o]);)o++;if(o>=e.length)break;n+=r+e[o++],r=""}else r+=t[s],e[o]===t[s]&&o++}return n},s=e=>{e.directive("mask",({el:e,exp:t})=>{const n=e,r=()=>{const{value:e,selectionStart:r}=n,i=o(e,t);if(i===e)return!1;if(n.value=i,null!=r&&document.activeElement===n){const i=o(e.slice(0,r),t).length;n.setSelectionRange(i,i)}return!0};e.addEventListener("input",r),r();let i=!0;return Promise.resolve().then(()=>{i&&r()&&e.dispatchEvent(new Event("input"))}),()=>{i=!1,e.removeEventListener("input",r)}})},c=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),l=(e,t)=>{const n=e.split(","),r=t.split(",");let i=0;for(let o=0;o<n.length;o++)i=Math.max(i,c(n[o])+c(r[o%r.length]));return i},a=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:r,modifiers:i,exp:o})=>{const s=e,c=r||"v",a=e=>`${c}-${e}`;let d,f=0,u=!0;const m=()=>{s.classList.remove(a("enter-from"),a("enter-active"),a("enter-to"),a("leave-from"),a("leave-active"),a("leave-to"))},p=(e,t)=>{const n=++f;m(),s.classList.add(a(e+"-from"),a(e+"-active")),s.offsetWidth,s.classList.remove(a(e+"-from")),s.classList.add(a(e+"-to")),clearTimeout(d),d=setTimeout(()=>{n===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(l(t.transitionDuration,t.transitionDelay),l(t.animationDuration,t.animationDelay))})(s))};if(!o){let e=!0;return Promise.resolve().then(()=>{e&&p("enter")}),s.__leave=()=>new Promise(e=>p("leave",e)),()=>{e=!1,clearTimeout(d),m(),delete s.__leave}}const v="none"==s.style.display?"":s.style.display;return n(()=>{const e=!!t();if(u)return u=!1,s.style.display=e?v:"none",void(e&&i?.appear&&p("enter"));e?(s.style.display=v,p("enter")):p("leave",()=>{s.style.display="none"})}),()=>{clearTimeout(d),m()}})},d="litevue:",f=Object.create(null),u="local",m=e=>{const t=e??u;return"string"!=typeof t?t:f[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},p=(e,t)=>{f[e]=t},v=e=>{u=e},h=(e,t,n,r,i)=>{if(!r)return i(()=>{});const o=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const r=n&&n.value;return(!r||!0!==r.__v_isRef||!0!==r.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(r.getItem(t)||"null");if(n)for(const t of o)t in n&&(e[t]=n[t])}catch{}return i(()=>{const n={};for(const t of o)n[t]=e[t];try{r.setItem(t,JSON.stringify(n))}catch{}})},b=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:r,modifiers:i,effect:o})=>{const s=d+(n||t.id);let c;for(const a in i||{})if(m(a)){c=a;break}const l=r?r.split(",").map(e=>e.trim()).filter(Boolean):void 0;h(e.scope,s,l,m(c),o)})},y=(e,r={})=>{const i=t(e);if(!i)return()=>{};const o=m(r.storage);return h(i,d+(r.key??e),r.keys,o,n)},g=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:r})=>{let i=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{i&&n&&(e.focus(),r?.select&&e.select&&e.select())})}),()=>{i=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let r=!1,i=null;const o=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})),s=t=>{if("Tab"!==t.key)return;const n=o();if(!n.length)return void t.preventDefault();const r=n[0],i=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===r?(t.preventDefault(),i.focus()):t.shiftKey||s!==i||(t.preventDefault(),r.focus()):(t.preventDefault(),r.focus())},c=()=>{r=!1,document.removeEventListener("keydown",s,!0),i&&i.focus&&i.focus()};return n(()=>{const n=!!t();n&&!r?(r=!0,i=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{r&&(o()[0]||e).focus()})):!n&&r&&c()}),()=>{r&&c()}})},k=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:r})=>{const i=e;let o=250;for(const m in r||{}){const e=/^duration-(\d+)$/.exec(m);e&&(o=+e[1])}const s=["overflow","height","transition","visibility"],c=s.map(e=>i.style[e]),l=e=>i.style.visibility=e?"hidden":c[3];i.style.overflow="hidden";let a=!0,d=0;const f=/* @__PURE__ */new Set,u=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++d;if(a)return a=!1,e||(i.style.height="0px"),l(!e),void u(()=>{i.style.transition=`height ${o}ms ease, visibility ${o}ms`});l(!e),e?(i.style.height=i.scrollHeight+"px",u(()=>{n===d&&(i.style.height="")},o)):(i.style.height=i.scrollHeight+"px",i.offsetHeight,i.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>i.style[e]=c[t])}})},w=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),x=/^(?:v-|:|@)/,E=/^(?::|v-bind:)/,S=/^v-(?!scope|on:)/,A=["id","data-key","data-id"],L=e=>{for(const t of A){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},O=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},$=e=>e.__ctx||[...e.children||[]].map($).find(Boolean),T=(e,t)=>(t||$(e))?.dispose?.(e),_=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),j=(e,t)=>{const n=(e=>{const t=/* @__PURE__ */new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)E.test(n)?t.add(n.replace(E,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):S.test(n)&&t.add("style");return t})(t);for(const{name:r,value:i}of[...t.attributes])x.test(r)||n.has(r)||e.getAttribute(r)!==i&&e.setAttribute(r,i);for(const{name:r}of[...e.attributes])n.has("*")||n.has(r)||t.hasAttribute(r)||e.removeAttribute(r)},N=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return q(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const i=e,o=t;if(i.tagName!==o.tagName)return q(e,t,n,r);r.skip?.(i,o)||i.hasAttribute("data-morph-skip")||(j(i,o),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||_(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(_(t))return!0;return!1})(o)||P(i,o,i.__ctx||n,r))},q=(e,t,n,r)=>{if(w(e,r))return;const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(T(e,n),e.parentNode.replaceChild(i,e),r.afterNodeRemoved?.(e),C(i,n))},C=(e,t)=>{const n=t||O(e.parentNode);n?.walk?.(e,n)},P=(e,t,n,r)=>{const i=r.key||L,o=/* @__PURE__ */new Map;for(let d=e.firstChild;d;d=d.nextSibling)if(1===d.nodeType){const e=i(d);if(null==e)continue;o.set(e,d)}const s=e=>e&&1===e.nodeType?i(e):null;let c=e.firstChild,l=t.firstChild;const a=t=>{const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(e.insertBefore(i,c),C(i,n))};for(;l;){const t=l.nextSibling,i=s(l);if(null!=i){const t=o.get(i);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),o.delete(i),N(t,l,n,r)):a(l)}else if(c&&null==s(c)){const e=c.nextSibling;N(c,l,n,r),c=e}else a(l);l=t}for(;c;){const t=c.nextSibling;w(c,r)||(T(c,n),e.removeChild(c),r.afterNodeRemoved?.(c)),c=t}},D=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const i=n.content;r=1===i.childElementCount?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(i),t})()}else r=t;if(r){const t=()=>{const t=M();N(e,r,O(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},M=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},R=e=>{e.scope.$morph=D},z={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},I=Object.freeze({...z}),B={mobile:"base",tablet:"md",desktop:"lg"},H=/^\d+$/,V=e({bp:"base",tick:0}),J={...z},K=["base"],W=!1,Z=[],F=/* @__PURE__ */new Map,G=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,Q=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),U=()=>{for(let e=Z.length-1;e>=0;e--)if(Z[e].mql.matches)return K[e+1];return"base"},X=()=>{Z.forEach(e=>e.off()),Z=[];const e=Object.keys(J).filter(e=>J[e]>0).sort((e,t)=>J[e]-J[t]);K=["base",...e],G()&&(Z=e.map(e=>{const t=window.matchMedia(`(min-width: ${J[e]}px)`);return Q(t,()=>{V.bp=U()})}),V.bp=U())},Y=()=>{W||(W=!0,X()),V.tick},ee=e=>{if(!G())return!1;let t=F.get(e);t?F.delete(e):t=Q(window.matchMedia(e),()=>V.tick++),F.set(e,t);for(const[n,r]of F){if(F.size<=64)break;r.off(),F.delete(n)}return t.mql.matches},te=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(H.test(e))return Number(e);const t=B[e];return void 0!==t?"base"===t?0:J[t]:J[e]},ne=e=>{if(e<=0)return!0;const t=K.findIndex(t=>"base"!==t&&J[t]===e);return-1!==t?K.indexOf(V.bp)>=t:(V.tick,ee(`(min-width: ${e}px)`))},re=/* @__PURE__ */new Set,ie=(e,t)=>{if(Y(),!e||"object"!=typeof e)return t;let n,r=-1;for(const i of Object.keys(e)){const t=te(i);void 0!==t?t>=r&&ne(t)&&(r=t,n=e[i]):(K.join(", "),Object.keys(B).join(", "))}return void 0!==n?n:t},oe=e=>{const t=B[e],n=J[t];return void 0!==n?n:z[t]},se=Object.defineProperties((e,t)=>ie(e,t),{props:{value:e=>{Y();const t={};for(const n of Object.keys(e))t[n]=ie(e[n]);return t}},breakpoint:{get:()=>(Y(),V.bp),enumerable:!0},device:{get:()=>(Y(),ne(oe("tablet"))?ne(oe("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{Y();const t=te(e);return void 0!==t&&ne(t)}},match:{value:e=>(Y(),ee(e))},configure:{value:({breakpoints:e})=>{e&&(J={...e},W&&(X(),V.tick++))}}}),ce=()=>{Z.forEach(e=>e.off()),F.forEach(e=>e.off()),Z=[],F.clear(),W=!1},le=()=>{ce(),J={...z},K=["base",...Object.keys(J).sort((e,t)=>J[e]-J[t])],W=!1,re.clear(),V.bp="base",V.tick=0},ae=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&se.configure(t),e.scope.$mq=se,e.scope.$mqProps=se.props,e.scope.$mqAtLeast=se.atLeast,e.scope.$mqMatch=se.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>se.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>se.device,enumerable:!0,configurable:!0}),ce),de=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:r})=>{const i=t(`(($width, $height) => { ${n} })`);if(r?.window||r?.visual){const e=r.visual&&window.visualViewport||window,t=()=>i(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;i(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})};export{k as collapse,I as defaultBreakpoints,g as focus,r as intersect,s as mask,ae as media,D as morph,R as morphPlugin,se as mq,b as persist,y as persistStore,p as registerStorage,le as resetMedia,de as resize,v as setDefaultStorage,a as transition};
1
+ import{reactive as e,store as t,watchEffect as n}from"@aevantec/litevue";var r=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let r=!1;const i=new IntersectionObserver(e=>{for(const o of e){const e=n?.full?o.intersectionRatio>=1:o.isIntersecting,s=n?.leave?r&&!e:e&&!r;r=e,s&&(t(),n?.once&&i.disconnect())}},{threshold:n?.full?1:0});return i.observe(e),()=>i.disconnect()})},i={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},o=(e,t)=>{let n="",r="",o=0;for(let s=0;s<t.length;s++){const c=i[t[s]];if(c){for(;o<e.length&&!c.test(e[o]);)o++;if(o>=e.length)break;n+=r+e[o++],r=""}else r+=t[s],e[o]===t[s]&&o++}return n},s=e=>{e.directive("mask",({el:e,exp:t})=>{const n=e,r=()=>{const{value:e,selectionStart:r}=n,i=o(e,t);if(i===e)return!1;if(n.value=i,null!=r&&document.activeElement===n){const i=o(e.slice(0,r),t).length;n.setSelectionRange(i,i)}return!0};e.addEventListener("input",r),r();let i=!0;return Promise.resolve().then(()=>{i&&r()&&e.dispatchEvent(new Event("input"))}),()=>{i=!1,e.removeEventListener("input",r)}})},c=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),l=(e,t)=>{const n=e.split(","),r=t.split(",");let i=0;for(let o=0;o<n.length;o++)i=Math.max(i,c(n[o])+c(r[o%r.length]));return i},a=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:r,modifiers:i,exp:o})=>{const s=e,c=r||"v",a=e=>`${c}-${e}`;let d,f=0,u=!0;const m=()=>{s.classList.remove(a("enter-from"),a("enter-active"),a("enter-to"),a("leave-from"),a("leave-active"),a("leave-to"))},p=(e,t)=>{const n=++f;m(),s.classList.add(a(e+"-from"),a(e+"-active")),s.offsetWidth,s.classList.remove(a(e+"-from")),s.classList.add(a(e+"-to")),clearTimeout(d),d=setTimeout(()=>{n===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(l(t.transitionDuration,t.transitionDelay),l(t.animationDuration,t.animationDelay))})(s))};if(!o){let e=!0;return Promise.resolve().then(()=>{e&&p("enter")}),s.__leave=()=>new Promise(e=>p("leave",e)),()=>{e=!1,clearTimeout(d),m(),delete s.__leave}}const v="none"==s.style.display?"":s.style.display;return n(()=>{const e=!!t();if(u)return u=!1,s.style.display=e?v:"none",void(e&&i?.appear&&p("enter"));e?(s.style.display=v,p("enter")):p("leave",()=>{s.style.display="none"})}),()=>{clearTimeout(d),m()}})},d="litevue:",f=Object.create(null),u="local",m=e=>{const t=e??u;return"string"!=typeof t?t:f[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},p=(e,t)=>{f[e]=t},v=e=>{u=e},h=(e,t,n,r,i)=>{if(!r)return i(()=>{});const o=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const r=n&&n.value;return(!r||!0!==r.__v_isRef||!0!==r.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(r.getItem(t)||"null");if(n)for(const t of o)t in n&&(e[t]=n[t])}catch{}return i(()=>{const n={};for(const t of o)n[t]=e[t];try{r.setItem(t,JSON.stringify(n))}catch{}})},b=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:r,modifiers:i,effect:o})=>{const s=d+(n||t.id);let c;for(const a in i||{})if(m(a)){c=a;break}const l=r?r.split(",").map(e=>e.trim()).filter(Boolean):void 0;h(e.scope,s,l,m(c),o)})},y=(e,r={})=>{const i=t(e);if(!i)return()=>{};const o=m(r.storage);return h(i,d+(r.key??e),r.keys,o,n)},g=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:r})=>{let i=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{i&&n&&(e.focus(),r?.select&&e.select&&e.select())})}),()=>{i=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let r=!1,i=null;const o=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})),s=t=>{if("Tab"!==t.key)return;const n=o();if(!n.length)return void t.preventDefault();const r=n[0],i=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===r?(t.preventDefault(),i.focus()):t.shiftKey||s!==i||(t.preventDefault(),r.focus()):(t.preventDefault(),r.focus())},c=()=>{r=!1,document.removeEventListener("keydown",s,!0),i&&i.focus&&i.focus()};return n(()=>{const n=!!t();n&&!r?(r=!0,i=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{r&&(o()[0]||e).focus()})):!n&&r&&c()}),()=>{r&&c()}})},k=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:r})=>{const i=e;let o=250;for(const m in r||{}){const e=/^duration-(\d+)$/.exec(m);e&&(o=+e[1])}const s=["overflow","height","transition","visibility"],c=s.map(e=>i.style[e]),l=e=>i.style.visibility=e?"hidden":c[3];i.style.overflow="hidden";let a=!0,d=0;const f=/* @__PURE__ */new Set,u=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++d;if(a)return a=!1,e||(i.style.height="0px"),l(!e),void u(()=>{i.style.transition=`height ${o}ms ease, visibility ${o}ms`});l(!e),e?(i.style.height=i.scrollHeight+"px",u(()=>{n===d&&(i.style.height="")},o)):(i.style.height=i.scrollHeight+"px",i.offsetHeight,i.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>i.style[e]=c[t])}})},w=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),x=/^(?:v-|:|@)/,E=/^(?::|v-bind:)/,S=/^v-(?!scope|on:)/,A=["id","data-key","data-id"],O=e=>{for(const t of A){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},_=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},L=e=>e.__ctx||[...e.children||[]].map(L).find(Boolean),$=(e,t)=>(t||L(e))?.dispose?.(e),T=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),j=(e,t)=>{const n=(e=>{const t=/* @__PURE__ */new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)E.test(n)?t.add(n.replace(E,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):S.test(n)&&t.add("style");return t})(t),r=Object(e.__bound);for(const{name:i,value:o}of[...t.attributes])x.test(i)||n.has(i)||i in r||e.getAttribute(i)!==o&&e.setAttribute(i,o);for(const{name:i}of[...e.attributes])n.has("*")||n.has(i)||t.hasAttribute(i)||e.removeAttribute(i)},N=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return q(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const i=e,o=t;if(i.tagName!==o.tagName)return q(e,t,n,r);r.skip?.(i,o)||i.hasAttribute("data-morph-skip")||(j(i,o),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||T(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(T(t))return!0;return!1})(o)||P(i,o,i.__ctx||n,r))},q=(e,t,n,r)=>{if(w(e,r))return;const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&($(e,n),e.parentNode.replaceChild(i,e),r.afterNodeRemoved?.(e),C(i,n))},C=(e,t)=>{const n=t||_(e.parentNode);n?.walk?.(e,n)},P=(e,t,n,r)=>{const i=r.key||O,o=/* @__PURE__ */new Map;for(let d=e.firstChild;d;d=d.nextSibling)if(1===d.nodeType){const e=i(d);if(null==e)continue;o.set(e,d)}const s=e=>e&&1===e.nodeType?i(e):null;let c=e.firstChild,l=t.firstChild;const a=t=>{const i=t.cloneNode(!0);!1!==r.beforeNodeAdded?.(i)&&(e.insertBefore(i,c),C(i,n))};for(;l;){const t=l.nextSibling,i=s(l);if(null!=i){const t=o.get(i);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),o.delete(i),N(t,l,n,r)):a(l)}else if(c&&null==s(c)){const e=c.nextSibling;N(c,l,n,r),c=e}else a(l);l=t}for(;c;){const t=c.nextSibling;w(c,r)||($(c,n),e.removeChild(c),r.afterNodeRemoved?.(c)),c=t}},D=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const i=n.content;r=1===i.childElementCount?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(i),t})()}else r=t;if(r){const t=()=>{const t=M();N(e,r,_(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},M=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},R=e=>{e.scope.$morph=D},z={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},I=Object.freeze({...z}),B={mobile:"base",tablet:"md",desktop:"lg"},H=/^\d+$/,V=e({bp:"base",tick:0}),J={...z},K=["base"],W=!1,Z=[],F=/* @__PURE__ */new Map,G=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,Q=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),U=()=>{for(let e=Z.length-1;e>=0;e--)if(Z[e].mql.matches)return K[e+1];return"base"},X=()=>{Z.forEach(e=>e.off()),Z=[];const e=Object.keys(J).filter(e=>J[e]>0).sort((e,t)=>J[e]-J[t]);K=["base",...e],G()&&(Z=e.map(e=>{const t=window.matchMedia(`(min-width: ${J[e]}px)`);return Q(t,()=>{V.bp=U()})}),V.bp=U())},Y=()=>{W||(W=!0,X()),V.tick},ee=e=>{if(!G())return!1;let t=F.get(e);t?F.delete(e):t=Q(window.matchMedia(e),()=>V.tick++),F.set(e,t);for(const[n,r]of F){if(F.size<=64)break;r.off(),F.delete(n)}return t.mql.matches},te=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(H.test(e))return Number(e);const t=B[e];return void 0!==t?"base"===t?0:J[t]:J[e]},ne=e=>{if(e<=0)return!0;const t=K.findIndex(t=>"base"!==t&&J[t]===e);return-1!==t?K.indexOf(V.bp)>=t:(V.tick,ee(`(min-width: ${e}px)`))},re=/* @__PURE__ */new Set,ie=(e,t)=>{if(Y(),!e||"object"!=typeof e)return t;let n,r=-1;for(const i of Object.keys(e)){const t=te(i);void 0!==t?t>=r&&ne(t)&&(r=t,n=e[i]):(K.join(", "),Object.keys(B).join(", "))}return void 0!==n?n:t},oe=e=>{const t=B[e],n=J[t];return void 0!==n?n:z[t]},se=Object.defineProperties((e,t)=>ie(e,t),{props:{value:e=>{Y();const t={};for(const n of Object.keys(e))t[n]=ie(e[n]);return t}},breakpoint:{get:()=>(Y(),V.bp),enumerable:!0},device:{get:()=>(Y(),ne(oe("tablet"))?ne(oe("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{Y();const t=te(e);return void 0!==t&&ne(t)}},match:{value:e=>(Y(),ee(e))},configure:{value:({breakpoints:e})=>{e&&(J={...e},W&&(X(),V.tick++))}}}),ce=()=>{Z.forEach(e=>e.off()),F.forEach(e=>e.off()),Z=[],F.clear(),W=!1},le=()=>{ce(),J={...z},K=["base",...Object.keys(J).sort((e,t)=>J[e]-J[t])],W=!1,re.clear(),V.bp="base",V.tick=0},ae=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&se.configure(t),e.scope.$mq=se,e.scope.$mqProps=se.props,e.scope.$mqAtLeast=se.atLeast,e.scope.$mqMatch=se.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>se.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>se.device,enumerable:!0,configurable:!0}),ce),de=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:r})=>{const i=t(`(($width, $height) => { ${n} })`);if(r?.window||r?.visual){const e=r.visual&&window.visualViewport||window,t=()=>i(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;i(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})};export{k as collapse,I as defaultBreakpoints,g as focus,r as intersect,s as mask,ae as media,D as morph,R as morphPlugin,se as mq,b as persist,y as persistStore,p as registerStorage,le as resetMedia,de as resize,v as setDefaultStorage,a as transition};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@aevantec/litevue")):"function"==typeof define&&define.amd?define(["exports","@aevantec/litevue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVuePlugins={},e.LiteVue)}(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},i=(e,t)=>{let i="",r="",o=0;for(let s=0;s<t.length;s++){const c=n[t[s]];if(c){for(;o<e.length&&!c.test(e[o]);)o++;if(o>=e.length)break;i+=r+e[o++],r=""}else r+=t[s],e[o]===t[s]&&o++}return i},r=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),o=(e,t)=>{const n=e.split(","),i=t.split(",");let o=0;for(let s=0;s<n.length;s++)o=Math.max(o,r(n[s])+r(i[s%i.length]));return o},s="litevue:",c=Object.create(null),l="local",a=e=>{const t=e??l;return"string"!=typeof t?t:c[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},d=(e,t,n,i,r)=>{if(!i)return r(()=>{});const o=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const i=n&&n.value;return(!i||!0!==i.__v_isRef||!0!==i.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(i.getItem(t)||"null");if(n)for(const t of o)t in n&&(e[t]=n[t])}catch{}return r(()=>{const n={};for(const t of o)n[t]=e[t];try{i.setItem(t,JSON.stringify(n))}catch{}})},f=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),u=/^(?:v-|:|@)/,m=/^(?::|v-bind:)/,p=/^v-(?!scope|on:)/,v=["id","data-key","data-id"],h=e=>{for(const t of v){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},b=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},g=e=>e.__ctx||[...e.children||[]].map(g).find(Boolean),y=(e,t)=>(t||g(e))?.dispose?.(e),k=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),w=(e,t)=>{const n=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)m.test(n)?t.add(n.replace(m,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):p.test(n)&&t.add("style");return t})(t);for(const{name:i,value:r}of[...t.attributes])u.test(i)||n.has(i)||e.getAttribute(i)!==r&&e.setAttribute(i,r);for(const{name:i}of[...e.attributes])n.has("*")||n.has(i)||t.hasAttribute(i)||e.removeAttribute(i)},x=(e,t,n,i)=>{if(e.nodeType!==t.nodeType)return E(e,t,n,i);if(3===e.nodeType||8===e.nodeType){const i=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(i,n))return;return void(e.data!==i&&(e.data=i))}if(1!==e.nodeType)return;const r=e,o=t;if(r.tagName!==o.tagName)return E(e,t,n,i);i.skip?.(r,o)||r.hasAttribute("data-morph-skip")||(w(r,o),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||k(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(k(t))return!0;return!1})(o)||A(r,o,r.__ctx||n,i))},E=(e,t,n,i)=>{if(f(e,i))return;const r=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(r)&&(y(e,n),e.parentNode.replaceChild(r,e),i.afterNodeRemoved?.(e),S(r,n))},S=(e,t)=>{const n=t||b(e.parentNode);n?.walk?.(e,n)},A=(e,t,n,i)=>{const r=i.key||h,o=new Map;for(let d=e.firstChild;d;d=d.nextSibling)if(1===d.nodeType){const e=r(d);if(null==e)continue;o.set(e,d)}const s=e=>e&&1===e.nodeType?r(e):null;let c=e.firstChild,l=t.firstChild;const a=t=>{const r=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(r)&&(e.insertBefore(r,c),S(r,n))};for(;l;){const t=l.nextSibling,r=s(l);if(null!=r){const t=o.get(r);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),o.delete(r),x(t,l,n,i)):a(l)}else if(c&&null==s(c)){const e=c.nextSibling;x(c,l,n,i),c=e}else a(l);l=t}for(;c;){const t=c.nextSibling;f(c,i)||(y(c,n),e.removeChild(c),i.afterNodeRemoved?.(c)),c=t}},L=(e,t,n={})=>{let i;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const r=n.content;i=1===r.childElementCount?r.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(r),t})()}else i=t;if(i){const t=()=>{const t=T();x(e,i,b(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},T=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,i=null;try{n=t.selectionStart,i=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,i)}catch{}}},O={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},$=Object.freeze({...O}),_={mobile:"base",tablet:"md",desktop:"lg"},j=/^\d+$/,N=(0,t.reactive)({bp:"base",tick:0}),P={...O},q=["base"],C=!1,D=[],M=new Map,z=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,R=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),B=()=>{for(let e=D.length-1;e>=0;e--)if(D[e].mql.matches)return q[e+1];return"base"},I=()=>{D.forEach(e=>e.off()),D=[];const e=Object.keys(P).filter(e=>P[e]>0).sort((e,t)=>P[e]-P[t]);q=["base",...e],z()&&(D=e.map(e=>{const t=window.matchMedia(`(min-width: ${P[e]}px)`);return R(t,()=>{N.bp=B()})}),N.bp=B())},V=()=>{C||(C=!0,I()),N.tick},H=e=>{if(!z())return!1;let t=M.get(e);t?M.delete(e):t=R(window.matchMedia(e),()=>N.tick++),M.set(e,t);for(const[n,i]of M){if(M.size<=64)break;i.off(),M.delete(n)}return t.mql.matches},J=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(j.test(e))return Number(e);const t=_[e];return void 0!==t?"base"===t?0:P[t]:P[e]},K=e=>{if(e<=0)return!0;const t=q.findIndex(t=>"base"!==t&&P[t]===e);return-1!==t?q.indexOf(N.bp)>=t:(N.tick,H(`(min-width: ${e}px)`))},W=new Set,Z=(e,t)=>{if(V(),!e||"object"!=typeof e)return t;let n,i=-1;for(const r of Object.keys(e)){const t=J(r);void 0!==t?t>=i&&K(t)&&(i=t,n=e[r]):(q.join(", "),Object.keys(_).join(", "))}return void 0!==n?n:t},F=e=>{const t=_[e],n=P[t];return void 0!==n?n:O[t]},G=Object.defineProperties((e,t)=>Z(e,t),{props:{value:e=>{V();const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}},breakpoint:{get:()=>(V(),N.bp),enumerable:!0},device:{get:()=>(V(),K(F("tablet"))?K(F("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{V();const t=J(e);return void 0!==t&&K(t)}},match:{value:e=>(V(),H(e))},configure:{value:({breakpoints:e})=>{e&&(P={...e},C&&(I(),N.tick++))}}}),Q=()=>{D.forEach(e=>e.off()),M.forEach(e=>e.off()),D=[],M.clear(),C=!1};e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:i})=>{const r=e;let o=250;for(const m in i||{}){const e=/^duration-(\d+)$/.exec(m);e&&(o=+e[1])}const s=["overflow","height","transition","visibility"],c=s.map(e=>r.style[e]),l=e=>r.style.visibility=e?"hidden":c[3];r.style.overflow="hidden";let a=!0,d=0;const f=new Set,u=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++d;if(a)return a=!1,e||(r.style.height="0px"),l(!e),void u(()=>{r.style.transition=`height ${o}ms ease, visibility ${o}ms`});l(!e),e?(r.style.height=r.scrollHeight+"px",u(()=>{n===d&&(r.style.height="")},o)):(r.style.height=r.scrollHeight+"px",r.offsetHeight,r.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>r.style[e]=c[t])}})},e.defaultBreakpoints=$,e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:i})=>{let r=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{r&&n&&(e.focus(),i?.select&&e.select&&e.select())})}),()=>{r=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let i=!1,r=null;const o=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})),s=t=>{if("Tab"!==t.key)return;const n=o();if(!n.length)return void t.preventDefault();const i=n[0],r=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===i?(t.preventDefault(),r.focus()):t.shiftKey||s!==r||(t.preventDefault(),i.focus()):(t.preventDefault(),i.focus())},c=()=>{i=!1,document.removeEventListener("keydown",s,!0),r&&r.focus&&r.focus()};return n(()=>{const n=!!t();n&&!i?(i=!0,r=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{i&&(o()[0]||e).focus()})):!n&&i&&c()}),()=>{i&&c()}})},e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let i=!1;const r=new IntersectionObserver(e=>{for(const o of e){const e=n?.full?o.intersectionRatio>=1:o.isIntersecting,s=n?.leave?i&&!e:e&&!i;i=e,s&&(t(),n?.once&&r.disconnect())}},{threshold:n?.full?1:0});return r.observe(e),()=>r.disconnect()})},e.mask=e=>{e.directive("mask",({el:e,exp:t})=>{const n=e,r=()=>{const{value:e,selectionStart:r}=n,o=i(e,t);if(o===e)return!1;if(n.value=o,null!=r&&document.activeElement===n){const o=i(e.slice(0,r),t).length;n.setSelectionRange(o,o)}return!0};e.addEventListener("input",r),r();let o=!0;return Promise.resolve().then(()=>{o&&r()&&e.dispatchEvent(new Event("input"))}),()=>{o=!1,e.removeEventListener("input",r)}})},e.media=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&G.configure(t),e.scope.$mq=G,e.scope.$mqProps=G.props,e.scope.$mqAtLeast=G.atLeast,e.scope.$mqMatch=G.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>G.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>G.device,enumerable:!0,configurable:!0}),Q),e.morph=L,e.morphPlugin=e=>{e.scope.$morph=L},e.mq=G,e.persist=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:i,modifiers:r,effect:o})=>{const c=s+(n||t.id);let l;for(const s in r||{})if(a(s)){l=s;break}const f=i?i.split(",").map(e=>e.trim()).filter(Boolean):void 0;d(e.scope,c,f,a(l),o)})},e.persistStore=(e,n={})=>{const i=(0,t.store)(e);if(!i)return()=>{};const r=a(n.storage);return d(i,s+(n.key??e),n.keys,r,t.watchEffect)},e.registerStorage=(e,t)=>{c[e]=t},e.resetMedia=()=>{Q(),P={...O},q=["base",...Object.keys(P).sort((e,t)=>P[e]-P[t])],C=!1,W.clear(),N.bp="base",N.tick=0},e.resize=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:i})=>{const r=t(`(($width, $height) => { ${n} })`);if(i?.window||i?.visual){const e=i.visual&&window.visualViewport||window,t=()=>r(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;r(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})},e.setDefaultStorage=e=>{l=e},e.transition=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:i,modifiers:r,exp:s})=>{const c=e,l=i||"v",a=e=>`${l}-${e}`;let d,f=0,u=!0;const m=()=>{c.classList.remove(a("enter-from"),a("enter-active"),a("enter-to"),a("leave-from"),a("leave-active"),a("leave-to"))},p=(e,t)=>{const n=++f;m(),c.classList.add(a(e+"-from"),a(e+"-active")),c.offsetWidth,c.classList.remove(a(e+"-from")),c.classList.add(a(e+"-to")),clearTimeout(d),d=setTimeout(()=>{n===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(o(t.transitionDuration,t.transitionDelay),o(t.animationDuration,t.animationDelay))})(c))};if(!s){let e=!0;return Promise.resolve().then(()=>{e&&p("enter")}),c.__leave=()=>new Promise(e=>p("leave",e)),()=>{e=!1,clearTimeout(d),m(),delete c.__leave}}const v="none"==c.style.display?"":c.style.display;return n(()=>{const e=!!t();if(u)return u=!1,c.style.display=e?v:"none",void(e&&r?.appear&&p("enter"));e?(c.style.display=v,p("enter")):p("leave",()=>{c.style.display="none"})}),()=>{clearTimeout(d),m()}})}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@aevantec/litevue")):"function"==typeof define&&define.amd?define(["exports","@aevantec/litevue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVuePlugins={},e.LiteVue)}(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},i=(e,t)=>{let i="",r="",o=0;for(let s=0;s<t.length;s++){const c=n[t[s]];if(c){for(;o<e.length&&!c.test(e[o]);)o++;if(o>=e.length)break;i+=r+e[o++],r=""}else r+=t[s],e[o]===t[s]&&o++}return i},r=e=>(parseFloat(e)||0)*(e.includes("ms")?1:1e3),o=(e,t)=>{const n=e.split(","),i=t.split(",");let o=0;for(let s=0;s<n.length;s++)o=Math.max(o,r(n[s])+r(i[s%i.length]));return o},s="litevue:",c=Object.create(null),l="local",a=e=>{const t=e??l;return"string"!=typeof t?t:c[t]??(e=>{try{if("local"===e||"localStorage"===e)return localStorage;if("session"===e||"sessionStorage"===e)return sessionStorage}catch{}})(t)},d=(e,t,n,i,r)=>{if(!i)return r(()=>{});const o=((e,t)=>(t??Object.keys(e)).filter(t=>{if("$"===t[0])return!1;const n=Object.getOwnPropertyDescriptor(e,t);if(n&&n.get&&!n.set)return!1;const i=n&&n.value;return(!i||!0!==i.__v_isRef||!0!==i.__v_isReadonly)&&"function"!=typeof e[t]}))(e,n);try{const n=JSON.parse(i.getItem(t)||"null");if(n)for(const t of o)t in n&&(e[t]=n[t])}catch{}return r(()=>{const n={};for(const t of o)n[t]=e[t];try{i.setItem(t,JSON.stringify(n))}catch{}})},f=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),u=/^(?:v-|:|@)/,m=/^(?::|v-bind:)/,p=/^v-(?!scope|on:)/,v=["id","data-key","data-id"],h=e=>{for(const t of v){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},b=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},g=e=>e.__ctx||[...e.children||[]].map(g).find(Boolean),y=(e,t)=>(t||g(e))?.dispose?.(e),k=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),w=(e,t)=>{const n=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)m.test(n)?t.add(n.replace(m,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):p.test(n)&&t.add("style");return t})(t),i=Object(e.__bound);for(const{name:r,value:o}of[...t.attributes])u.test(r)||n.has(r)||r in i||e.getAttribute(r)!==o&&e.setAttribute(r,o);for(const{name:r}of[...e.attributes])n.has("*")||n.has(r)||t.hasAttribute(r)||e.removeAttribute(r)},x=(e,t,n,i)=>{if(e.nodeType!==t.nodeType)return E(e,t,n,i);if(3===e.nodeType||8===e.nodeType){const i=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(i,n))return;return void(e.data!==i&&(e.data=i))}if(1!==e.nodeType)return;const r=e,o=t;if(r.tagName!==o.tagName)return E(e,t,n,i);i.skip?.(r,o)||r.hasAttribute("data-morph-skip")||(w(r,o),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||k(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(k(t))return!0;return!1})(o)||A(r,o,r.__ctx||n,i))},E=(e,t,n,i)=>{if(f(e,i))return;const r=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(r)&&(y(e,n),e.parentNode.replaceChild(r,e),i.afterNodeRemoved?.(e),S(r,n))},S=(e,t)=>{const n=t||b(e.parentNode);n?.walk?.(e,n)},A=(e,t,n,i)=>{const r=i.key||h,o=new Map;for(let d=e.firstChild;d;d=d.nextSibling)if(1===d.nodeType){const e=r(d);if(null==e)continue;o.set(e,d)}const s=e=>e&&1===e.nodeType?r(e):null;let c=e.firstChild,l=t.firstChild;const a=t=>{const r=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(r)&&(e.insertBefore(r,c),S(r,n))};for(;l;){const t=l.nextSibling,r=s(l);if(null!=r){const t=o.get(r);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),o.delete(r),x(t,l,n,i)):a(l)}else if(c&&null==s(c)){const e=c.nextSibling;x(c,l,n,i),c=e}else a(l);l=t}for(;c;){const t=c.nextSibling;f(c,i)||(y(c,n),e.removeChild(c),i.afterNodeRemoved?.(c)),c=t}},L=(e,t,n={})=>{let i;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const r=n.content;i=1===r.childElementCount?r.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(r),t})()}else i=t;if(i){const t=()=>{const t=O();x(e,i,b(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},O=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,i=null;try{n=t.selectionStart,i=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,i)}catch{}}},T={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},_=Object.freeze({...T}),$={mobile:"base",tablet:"md",desktop:"lg"},j=/^\d+$/,N=(0,t.reactive)({bp:"base",tick:0}),P={...T},q=["base"],C=!1,D=[],M=new Map,z=()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia,R=(e,t)=>e.addEventListener?(e.addEventListener("change",t),{mql:e,off:()=>e.removeEventListener("change",t)}):(e.addListener(t),{mql:e,off:()=>e.removeListener(t)}),B=()=>{for(let e=D.length-1;e>=0;e--)if(D[e].mql.matches)return q[e+1];return"base"},I=()=>{D.forEach(e=>e.off()),D=[];const e=Object.keys(P).filter(e=>P[e]>0).sort((e,t)=>P[e]-P[t]);q=["base",...e],z()&&(D=e.map(e=>{const t=window.matchMedia(`(min-width: ${P[e]}px)`);return R(t,()=>{N.bp=B()})}),N.bp=B())},V=()=>{C||(C=!0,I()),N.tick},H=e=>{if(!z())return!1;let t=M.get(e);t?M.delete(e):t=R(window.matchMedia(e),()=>N.tick++),M.set(e,t);for(const[n,i]of M){if(M.size<=64)break;i.off(),M.delete(n)}return t.mql.matches},J=e=>{if("number"==typeof e)return e;if("base"===e)return 0;if(j.test(e))return Number(e);const t=$[e];return void 0!==t?"base"===t?0:P[t]:P[e]},K=e=>{if(e<=0)return!0;const t=q.findIndex(t=>"base"!==t&&P[t]===e);return-1!==t?q.indexOf(N.bp)>=t:(N.tick,H(`(min-width: ${e}px)`))},W=new Set,Z=(e,t)=>{if(V(),!e||"object"!=typeof e)return t;let n,i=-1;for(const r of Object.keys(e)){const t=J(r);void 0!==t?t>=i&&K(t)&&(i=t,n=e[r]):(q.join(", "),Object.keys($).join(", "))}return void 0!==n?n:t},F=e=>{const t=$[e],n=P[t];return void 0!==n?n:T[t]},G=Object.defineProperties((e,t)=>Z(e,t),{props:{value:e=>{V();const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}},breakpoint:{get:()=>(V(),N.bp),enumerable:!0},device:{get:()=>(V(),K(F("tablet"))?K(F("desktop"))?"desktop":"tablet":"mobile"),enumerable:!0},atLeast:{value:e=>{V();const t=J(e);return void 0!==t&&K(t)}},match:{value:e=>(V(),H(e))},configure:{value:({breakpoints:e})=>{e&&(P={...e},C&&(I(),N.tick++))}}}),Q=()=>{D.forEach(e=>e.off()),M.forEach(e=>e.off()),D=[],M.clear(),C=!1};e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:n,modifiers:i})=>{const r=e;let o=250;for(const m in i||{}){const e=/^duration-(\d+)$/.exec(m);e&&(o=+e[1])}const s=["overflow","height","transition","visibility"],c=s.map(e=>r.style[e]),l=e=>r.style.visibility=e?"hidden":c[3];r.style.overflow="hidden";let a=!0,d=0;const f=new Set,u=(e,t)=>{const n=setTimeout(()=>{f.delete(n),e()},t);f.add(n)};return n(()=>{const e=!!t(),n=++d;if(a)return a=!1,e||(r.style.height="0px"),l(!e),void u(()=>{r.style.transition=`height ${o}ms ease, visibility ${o}ms`});l(!e),e?(r.style.height=r.scrollHeight+"px",u(()=>{n===d&&(r.style.height="")},o)):(r.style.height=r.scrollHeight+"px",r.offsetHeight,r.style.height="0px")}),()=>{f.forEach(clearTimeout),s.forEach((e,t)=>r.style[e]=c[t])}})},e.defaultBreakpoints=_,e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:i})=>{let r=!0;return n(()=>{const n=!!t();Promise.resolve().then(()=>{r&&n&&(e.focus(),i?.select&&e.select&&e.select())})}),()=>{r=!1}}),e.directive("trap",({el:e,get:t,effect:n})=>{let i=!1,r=null;const o=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})),s=t=>{if("Tab"!==t.key)return;const n=o();if(!n.length)return void t.preventDefault();const i=n[0],r=n[n.length-1],s=document.activeElement;e.contains(s)?t.shiftKey&&s===i?(t.preventDefault(),r.focus()):t.shiftKey||s!==r||(t.preventDefault(),i.focus()):(t.preventDefault(),i.focus())},c=()=>{i=!1,document.removeEventListener("keydown",s,!0),r&&r.focus&&r.focus()};return n(()=>{const n=!!t();n&&!i?(i=!0,r=document.activeElement,document.addEventListener("keydown",s,!0),Promise.resolve().then(()=>{i&&(o()[0]||e).focus()})):!n&&i&&c()}),()=>{i&&c()}})},e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let i=!1;const r=new IntersectionObserver(e=>{for(const o of e){const e=n?.full?o.intersectionRatio>=1:o.isIntersecting,s=n?.leave?i&&!e:e&&!i;i=e,s&&(t(),n?.once&&r.disconnect())}},{threshold:n?.full?1:0});return r.observe(e),()=>r.disconnect()})},e.mask=e=>{e.directive("mask",({el:e,exp:t})=>{const n=e,r=()=>{const{value:e,selectionStart:r}=n,o=i(e,t);if(o===e)return!1;if(n.value=o,null!=r&&document.activeElement===n){const o=i(e.slice(0,r),t).length;n.setSelectionRange(o,o)}return!0};e.addEventListener("input",r),r();let o=!0;return Promise.resolve().then(()=>{o&&r()&&e.dispatchEvent(new Event("input"))}),()=>{o=!1,e.removeEventListener("input",r)}})},e.media=(e,t)=>(t?.breakpoints&&JSON.stringify(t.breakpoints),t&&G.configure(t),e.scope.$mq=G,e.scope.$mqProps=G.props,e.scope.$mqAtLeast=G.atLeast,e.scope.$mqMatch=G.match,Object.defineProperty(e.scope,"$mqBreakpoint",{get:()=>G.breakpoint,enumerable:!0,configurable:!0}),Object.defineProperty(e.scope,"$mqDevice",{get:()=>G.device,enumerable:!0,configurable:!0}),Q),e.morph=L,e.morphPlugin=e=>{e.scope.$morph=L},e.mq=G,e.persist=e=>{e.directive("persist",({ctx:e,el:t,exp:n,arg:i,modifiers:r,effect:o})=>{const c=s+(n||t.id);let l;for(const s in r||{})if(a(s)){l=s;break}const f=i?i.split(",").map(e=>e.trim()).filter(Boolean):void 0;d(e.scope,c,f,a(l),o)})},e.persistStore=(e,n={})=>{const i=(0,t.store)(e);if(!i)return()=>{};const r=a(n.storage);return d(i,s+(n.key??e),n.keys,r,t.watchEffect)},e.registerStorage=(e,t)=>{c[e]=t},e.resetMedia=()=>{Q(),P={...T},q=["base",...Object.keys(P).sort((e,t)=>P[e]-P[t])],C=!1,W.clear(),N.bp="base",N.tick=0},e.resize=e=>{e.directive("resize",({el:e,get:t,exp:n,modifiers:i})=>{const r=t(`(($width, $height) => { ${n} })`);if(i?.window||i?.visual){const e=i.visual&&window.visualViewport||window,t=()=>r(e.width||innerWidth,e.height||innerHeight);return e.addEventListener("resize",t),t(),()=>e.removeEventListener("resize",t)}const o=new ResizeObserver(e=>{for(const t of e){const e=t.contentRect;r(e.width,e.height)}});return o.observe(e),()=>o.disconnect()})},e.setDefaultStorage=e=>{l=e},e.transition=e=>{e.directive("transition",({el:e,get:t,effect:n,arg:i,modifiers:r,exp:s})=>{const c=e,l=i||"v",a=e=>`${l}-${e}`;let d,f=0,u=!0;const m=()=>{c.classList.remove(a("enter-from"),a("enter-active"),a("enter-to"),a("leave-from"),a("leave-active"),a("leave-to"))},p=(e,t)=>{const n=++f;m(),c.classList.add(a(e+"-from"),a(e+"-active")),c.offsetWidth,c.classList.remove(a(e+"-from")),c.classList.add(a(e+"-to")),clearTimeout(d),d=setTimeout(()=>{n===f&&(m(),t&&t())},(e=>{const t=getComputedStyle(e);return Math.max(o(t.transitionDuration,t.transitionDelay),o(t.animationDuration,t.animationDelay))})(c))};if(!s){let e=!0;return Promise.resolve().then(()=>{e&&p("enter")}),c.__leave=()=>new Promise(e=>p("leave",e)),()=>{e=!1,clearTimeout(d),m(),delete c.__leave}}const v="none"==c.style.display?"":c.style.display;return n(()=>{const e=!!t();if(u)return u=!1,c.style.display=e?v:"none",void(e&&r?.appear&&p("enter"));e?(c.style.display=v,p("enter")):p("leave",()=>{c.style.display="none"})}),()=>{clearTimeout(d),m()}})}});
@@ -789,7 +789,7 @@ getter: `, this.getter);
789
789
  teardown: "tearing down"
790
790
  };
791
791
  var handleError = (err, info) => {
792
- for (const fn of handlers) try {
792
+ for (const fn of [...handlers]) try {
793
793
  fn(err, info);
794
794
  } catch (inner) {
795
795
  console.error("[litevue] an onError handler itself threw:", inner);
@@ -912,6 +912,7 @@ getter: `, this.getter);
912
912
  for (const key in prevValue) if (!value || !(key in value)) setProp(el, key, null);
913
913
  }
914
914
  prevValue = isPlainObject(value) ? { ...value } : value;
915
+ if (!arg) el.__bound = prevValue;
915
916
  });
916
917
  };
917
918
  var setProp = (el, key, value, prevValue) => {
@@ -1010,31 +1011,13 @@ getter: `, this.getter);
1010
1011
  delete: "backspace"
1011
1012
  };
1012
1013
  var nonKeyModifierRE = /^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/;
1013
- var on = ({ el, get, ctx, exp, arg, modifiers }) => {
1014
+ var on = ({ el, get, exp, arg, modifiers }) => {
1014
1015
  if (!arg) {
1015
1016
  console.error(`v-on="obj" syntax is not supported in LiteVue.`);
1016
1017
  return;
1017
1018
  }
1018
1019
  const a = /\bawait\b/.test(exp) ? "async " : "";
1019
- const raw = simplePathRE.test(exp) ? get(`(e => ${exp}(e))`) : isExpression(exp) ? get(`(${a}$event => (${exp}))`) : get(`(${a}$event => { ${exp} })`);
1020
- let handler = (...args) => {
1021
- try {
1022
- const result = raw(...args);
1023
- if (result instanceof Promise) result.catch(fail);
1024
- return result;
1025
- } catch (e) {
1026
- fail(e);
1027
- }
1028
- };
1029
- function fail(e) {
1030
- handleError(e, {
1031
- phase: "handler",
1032
- source: `@${arg}`,
1033
- expression: exp,
1034
- el,
1035
- scope: ctx.scope
1036
- });
1037
- }
1020
+ let handler = simplePathRE.test(exp) ? get(`(e => ${exp}(e))`) : isExpression(exp) ? get(`(${a}$event => (${exp}))`) : get(`(${a}$event => { ${exp} })`);
1038
1021
  if (arg === "vue:mounted" || arg === "vue:unmounted") console.warn(`@${arg} is deprecated in LiteVue - use @${arg.slice(4)} instead.`);
1039
1022
  if (arg === "mounted" || arg === "vue:mounted") {
1040
1023
  let live = true;
@@ -1571,7 +1554,7 @@ getter: `, this.getter);
1571
1554
  }
1572
1555
  }
1573
1556
  }
1574
- nextBlocks.unshift(nextBlock = block);
1557
+ nextBlocks[i] = nextBlock = block;
1575
1558
  }
1576
1559
  blocks = nextBlocks;
1577
1560
  }
@@ -1677,7 +1660,7 @@ getter: `, this.getter);
1677
1660
  * and via the node — and a second run would remove a listener the next mount
1678
1661
  * installed.
1679
1662
  */
1680
- var addCleanup = (ctx, cleanup) => {
1663
+ var addCleanup = (ctx, cleanup, node) => {
1681
1664
  ctx.cleanups.push(cleanup);
1682
1665
  own(() => {
1683
1666
  const i = ctx.cleanups.indexOf(cleanup);
@@ -1685,7 +1668,7 @@ getter: `, this.getter);
1685
1668
  ctx.cleanups.splice(i, 1);
1686
1669
  cleanup();
1687
1670
  }
1688
- });
1671
+ }, node);
1689
1672
  };
1690
1673
  var walkDeferred = (node, ctx, once) => {
1691
1674
  const previous = inOnce;
@@ -1720,9 +1703,13 @@ getter: `, this.getter);
1720
1703
  const target = query(exp, el, "v-teleport");
1721
1704
  if (target) {
1722
1705
  teleportNext = el.nextSibling;
1723
- el.__teleported = true;
1706
+ const marker = el.__marker = new Text("");
1707
+ el.before(marker);
1724
1708
  target.appendChild(el);
1725
- ctx.cleanups.push(() => el.remove());
1709
+ addCleanup(ctx, () => {
1710
+ disposeSubtree(el);
1711
+ el.remove();
1712
+ }, marker);
1726
1713
  } else if (target === null) console.error(`v-teleport target "${exp}" not found.`);
1727
1714
  }
1728
1715
  if ((exp = checkAttr(el, "v-scope")) || exp === "") {
@@ -1817,7 +1804,25 @@ getter: `, this.getter);
1817
1804
  el,
1818
1805
  expression: displayExp
1819
1806
  };
1820
- const get = (e = exp) => evaluate(ctx.scope, e, el, meta);
1807
+ const report = (err) => handleError(err, {
1808
+ phase: "handler",
1809
+ source,
1810
+ el,
1811
+ expression: exp,
1812
+ scope: ctx.scope
1813
+ });
1814
+ const get = (code) => {
1815
+ const value = evaluate(ctx.scope, code ?? exp, el, meta);
1816
+ return code && typeof value == "function" ? (...args) => {
1817
+ try {
1818
+ const result = value(...args);
1819
+ if (result instanceof Promise) result.catch(report);
1820
+ return result;
1821
+ } catch (err) {
1822
+ report(err);
1823
+ }
1824
+ } : value;
1825
+ };
1821
1826
  let cleanup;
1822
1827
  try {
1823
1828
  cleanup = dir({
@@ -1942,7 +1947,7 @@ getter: `, this.getter);
1942
1947
  end;
1943
1948
  owned = false;
1944
1949
  get el() {
1945
- return this.start || this.template;
1950
+ return this.start || this.template.__marker || this.template;
1946
1951
  }
1947
1952
  constructor(template, parentCtx, isRoot = false) {
1948
1953
  this.isFragment = template instanceof HTMLTemplateElement;
@@ -1975,7 +1980,7 @@ getter: `, this.getter);
1975
1980
  parent.insertBefore(this.start, this.end);
1976
1981
  parent.insertBefore(this.template, this.end);
1977
1982
  }
1978
- } else if (!this.template.__teleported) parent.insertBefore(this.template, anchor);
1983
+ } else parent.insertBefore(this.el, anchor);
1979
1984
  if (!this.owned) {
1980
1985
  this.owned = true;
1981
1986
  own(() => this.discard(), this.el);
@@ -1997,6 +2002,7 @@ getter: `, this.getter);
1997
2002
  }
1998
2003
  } else parent.removeChild(this.template);
1999
2004
  }
2005
+ this.template.__marker?.remove();
2000
2006
  this.teardown();
2001
2007
  };
2002
2008
  const leaves = [];
@@ -787,7 +787,7 @@ var PHASES = {
787
787
  teardown: "tearing down"
788
788
  };
789
789
  var handleError = (err, info) => {
790
- for (const fn of handlers) try {
790
+ for (const fn of [...handlers]) try {
791
791
  fn(err, info);
792
792
  } catch (inner) {
793
793
  console.error("[litevue] an onError handler itself threw:", inner);
@@ -910,6 +910,7 @@ var bind = ({ el, get, effect, arg, modifiers }) => {
910
910
  for (const key in prevValue) if (!value || !(key in value)) setProp(el, key, null);
911
911
  }
912
912
  prevValue = isPlainObject(value) ? { ...value } : value;
913
+ if (!arg) el.__bound = prevValue;
913
914
  });
914
915
  };
915
916
  var setProp = (el, key, value, prevValue) => {
@@ -1008,31 +1009,13 @@ var keyAliases = {
1008
1009
  delete: "backspace"
1009
1010
  };
1010
1011
  var nonKeyModifierRE = /^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/;
1011
- var on = ({ el, get, ctx, exp, arg, modifiers }) => {
1012
+ var on = ({ el, get, exp, arg, modifiers }) => {
1012
1013
  if (!arg) {
1013
1014
  console.error(`v-on="obj" syntax is not supported in LiteVue.`);
1014
1015
  return;
1015
1016
  }
1016
1017
  const a = /\bawait\b/.test(exp) ? "async " : "";
1017
- const raw = simplePathRE.test(exp) ? get(`(e => ${exp}(e))`) : isExpression(exp) ? get(`(${a}$event => (${exp}))`) : get(`(${a}$event => { ${exp} })`);
1018
- let handler = (...args) => {
1019
- try {
1020
- const result = raw(...args);
1021
- if (result instanceof Promise) result.catch(fail);
1022
- return result;
1023
- } catch (e) {
1024
- fail(e);
1025
- }
1026
- };
1027
- function fail(e) {
1028
- handleError(e, {
1029
- phase: "handler",
1030
- source: `@${arg}`,
1031
- expression: exp,
1032
- el,
1033
- scope: ctx.scope
1034
- });
1035
- }
1018
+ let handler = simplePathRE.test(exp) ? get(`(e => ${exp}(e))`) : isExpression(exp) ? get(`(${a}$event => (${exp}))`) : get(`(${a}$event => { ${exp} })`);
1036
1019
  if (arg === "vue:mounted" || arg === "vue:unmounted") console.warn(`@${arg} is deprecated in LiteVue - use @${arg.slice(4)} instead.`);
1037
1020
  if (arg === "mounted" || arg === "vue:mounted") {
1038
1021
  let live = true;
@@ -1569,7 +1552,7 @@ var _for = (el, exp, ctx) => {
1569
1552
  }
1570
1553
  }
1571
1554
  }
1572
- nextBlocks.unshift(nextBlock = block);
1555
+ nextBlocks[i] = nextBlock = block;
1573
1556
  }
1574
1557
  blocks = nextBlocks;
1575
1558
  }
@@ -1675,7 +1658,7 @@ var inOnce = false;
1675
1658
  * and via the node — and a second run would remove a listener the next mount
1676
1659
  * installed.
1677
1660
  */
1678
- var addCleanup = (ctx, cleanup) => {
1661
+ var addCleanup = (ctx, cleanup, node) => {
1679
1662
  ctx.cleanups.push(cleanup);
1680
1663
  own(() => {
1681
1664
  const i = ctx.cleanups.indexOf(cleanup);
@@ -1683,7 +1666,7 @@ var addCleanup = (ctx, cleanup) => {
1683
1666
  ctx.cleanups.splice(i, 1);
1684
1667
  cleanup();
1685
1668
  }
1686
- });
1669
+ }, node);
1687
1670
  };
1688
1671
  var walkDeferred = (node, ctx, once) => {
1689
1672
  const previous = inOnce;
@@ -1718,9 +1701,13 @@ var walkNode = (node, ctx) => {
1718
1701
  const target = query(exp, el, "v-teleport");
1719
1702
  if (target) {
1720
1703
  teleportNext = el.nextSibling;
1721
- el.__teleported = true;
1704
+ const marker = el.__marker = new Text("");
1705
+ el.before(marker);
1722
1706
  target.appendChild(el);
1723
- ctx.cleanups.push(() => el.remove());
1707
+ addCleanup(ctx, () => {
1708
+ disposeSubtree(el);
1709
+ el.remove();
1710
+ }, marker);
1724
1711
  } else if (target === null) console.error(`v-teleport target "${exp}" not found.`);
1725
1712
  }
1726
1713
  if ((exp = checkAttr(el, "v-scope")) || exp === "") {
@@ -1815,7 +1802,25 @@ var applyDirective = (el, dir, exp, ctx, arg, modifiers, source, displayExp) =>
1815
1802
  el,
1816
1803
  expression: displayExp
1817
1804
  };
1818
- const get = (e = exp) => evaluate(ctx.scope, e, el, meta);
1805
+ const report = (err) => handleError(err, {
1806
+ phase: "handler",
1807
+ source,
1808
+ el,
1809
+ expression: exp,
1810
+ scope: ctx.scope
1811
+ });
1812
+ const get = (code) => {
1813
+ const value = evaluate(ctx.scope, code ?? exp, el, meta);
1814
+ return code && typeof value == "function" ? (...args) => {
1815
+ try {
1816
+ const result = value(...args);
1817
+ if (result instanceof Promise) result.catch(report);
1818
+ return result;
1819
+ } catch (err) {
1820
+ report(err);
1821
+ }
1822
+ } : value;
1823
+ };
1819
1824
  let cleanup;
1820
1825
  try {
1821
1826
  cleanup = dir({
@@ -1940,7 +1945,7 @@ var Block = class {
1940
1945
  end;
1941
1946
  owned = false;
1942
1947
  get el() {
1943
- return this.start || this.template;
1948
+ return this.start || this.template.__marker || this.template;
1944
1949
  }
1945
1950
  constructor(template, parentCtx, isRoot = false) {
1946
1951
  this.isFragment = template instanceof HTMLTemplateElement;
@@ -1973,7 +1978,7 @@ var Block = class {
1973
1978
  parent.insertBefore(this.start, this.end);
1974
1979
  parent.insertBefore(this.template, this.end);
1975
1980
  }
1976
- } else if (!this.template.__teleported) parent.insertBefore(this.template, anchor);
1981
+ } else parent.insertBefore(this.el, anchor);
1977
1982
  if (!this.owned) {
1978
1983
  this.owned = true;
1979
1984
  own(() => this.discard(), this.el);
@@ -1995,6 +2000,7 @@ var Block = class {
1995
2000
  }
1996
2001
  } else parent.removeChild(this.template);
1997
2002
  }
2003
+ this.template.__marker?.remove();
1998
2004
  this.teardown();
1999
2005
  };
2000
2006
  const leaves = [];
@@ -1 +1 @@
1
- var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===d(e),u=e=>"[object Date]"===d(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=v(e=>e.replace(_,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var O=/;(?![^(]*\))/g,S=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(O).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var A;function T(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=T(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!T(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>T(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=A;try{return z=!0,A=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,A=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var z=!0,B=0,D=[];function K(){D.push(z),z=!1}function F(){const e=D.pop();z=void 0===e||e}function U(){B++}function q(){for(B--;!B&&Z.length;)Z.shift()()}function J(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var Z=[];function H(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&Z.push(s.scheduler)))}q()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&A){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),J(A,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let u=[];if("clear"===t)u=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(o.get(n)),t){case"add":c(e)?m(n)&&u.push(o.get("length")):(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"delete":c(e)||(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"set":l(e)&&u.push(o.get(X))}U();for(const c of u)c&&H(c,4);q()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),U();const n=be(this)[t].apply(this,e);return q(),F(),n}}),e}function oe(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:de:r?he:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return ye(e,!0,fe,null,de)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,he=new WeakMap,de=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ye(e,!1,ae,null,pe)}function ye(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ve(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&A&&(t=be(t),J(A,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&H(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=new Map,Oe=new Map,Se=new Map,Ee=new Map,Le=new Set,je=[],Ae=!1,Te=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ne={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Pe=(e,...t)=>{Ne[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Te()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ne[e].add(t),()=>Ne[e].delete(t)),off(e,t){Ne[e].delete(t)}};"undefined"==typeof window||Te()||(window.__LITE_VUE__=Ce);var Me,Ve=[],We=(e,t)=>{for(const s of Ve)try{s(e,t)}catch(n){}Ve.length||console.error(e)},ze=new WeakSet,Be=e=>{ze.add(e),e.effect&&function(e){e.effect.stop()}(e)},De=!1,Ke=[],Fe=Promise.resolve(),Ue=-1,qe=e=>Fe.then(e),Je=e=>{Ke.includes(e,Ue+1)||Ke.push(e),De||(De=!0,qe(Ze))},Ze=()=>{const e=new Map;for(Ue=0;Ue<Ke.length;Ue++){const n=Ke[Ue];if(ze.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)We(Error("update loop"),{phase:"effect"});else try{n()}catch(t){We(t,{phase:"effect"})}}Ke.length=0,Ue=-1,De=!1,Ne.flush.size&&!Te()&&Pe("flush")},He=0,Ge=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Qe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{F()}}o=!0});return()=>Be(c)},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null)}i="[object Object]"===d(n)?{...n}:n})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=tt(n),i=tt(s);for(const e in r)st(t,e,r[e]);for(const e in i)null==r[e]&&st(t,e,"");t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=e=>a(e=k(e))?L(e):e||{},nt=/\s*!important$/,st=(e,t,n)=>{c(n)?n.forEach(n=>st(e,t,n)):t.startsWith("--")?e.setProperty(t,n):nt.test(n)?e.setProperty(b(t),n.replace(nt,""),"important"):e[t]=n},rt=Object.create(null),it=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ot=["ctrl","shift","alt","meta"],ct={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ot.some(n=>e[`${n}Key`]&&!t[n])},lt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ut=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,at=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=/\bawait\b/.test(s)?"async ":"",c=it.test(s)?t(`(e => ${s}(e))`):(e=>{const t=rt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),rt[e]=!0}catch{return rt[e]=!1}})(s)?t(`(${o}$event => (${s}))`):t(`(${o}$event => { ${s} })`);let l,u=(...e)=>{try{const t=c(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}};function a(t){We(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return qe(()=>{e&&u()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>u();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=u;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(l),l=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!ut.test(e)||e in lt);u=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||lt[t]===e))return}for(const e in i){const t=ct[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const f=i?.window?window:i?.document||i?.outside?document:e,p=r;return f.addEventListener(p,u,i),()=>{clearTimeout(l),f.removeEventListener(p,u,i)}},ft=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=pt(t())})},pt=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ht=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},dt=e=>"_value"in e?e._value:e.value,mt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},vt=e=>{e.target.composing=!0},gt=e=>{const t=e.target;t.composing&&(t.composing=!1,yt(t,"input"))},yt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},_t=Object.create(null),bt=0,wt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),xt=(e,t,n,s)=>$t(e,`return(${t})`,n,s),$t=(e,t,n,s)=>{let r=_t[t];r||(++bt>1e3&&(_t=Object.create(null),bt=1),r=_t[t]=kt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){We(i,{phase:"expression",expression:s?.expression??wt(t),source:s?.source,el:s?.el??n,scope:e})}},kt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return We(s,{phase:"compile",expression:n?.expression??wt(e),source:n?.source,el:n?.el??t}),()=>{}}},Ot=new WeakMap,St=e=>{const t=Me;return Me=e,t},Et=(e,t=Me)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},Lt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Lt(n),n=e}},jt={bind:Ye,on:at,show:({el:e,get:t,effect:n})=>{const s="none"==e.style.display?"":e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ft,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?$(dt(e)):dt(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=dt(r);if(s)r.selected=c(e)&&N(e,i)>-1;else if(T(dt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=dt(e),r=N(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(mt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,dt(e))>-1:e.checked=T(t,mt(e,!0))});else if("radio"===i)h("change",()=>{o(dt(e))}),s(()=>{e.checked=T(n(),dt(e))});else{const t=e=>(l&&(e=e.trim()),u?$(e):e);let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",vt),h("compositionend",gt),h(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return qe(()=>{if(!r)return;const i=St(e);try{s(()=>$t(t.scope,n,e,{source:"v-effect",el:e}))}finally{St(i)}}),()=>{r=!1}}},At=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Tt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Nt=/^\(|\)$/g,Pt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Rt=(e,t,n)=>{const s=t.match(At);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const o=()=>i.parentNode;St(i);const l=s[2].trim();let u,a,f,h,d=s[1].trim().replace(Nt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(Tt))&&(d=d.replace(Tt,"").trim(),a=h[1].trim(),h[2]&&(f=h[2].trim())),(h=d.match(Pt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let y,_,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),f&&(o[f]=r)):a&&(o[a]=r);const c=g?xt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new nn(e,en(n,t.data));return r.key=t.key,r.insert(o(),s),r};return n.effect(()=>{const t=xt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const c=_[r],l=s.get(c.key);let u;null==l?u=$(c,t?t.el:i):(u=y[l],Object.assign(u.ctx.scope,c.data),l!==r&&(y[l+1]===t&&n!==t||(n=u,u.insert(o(),t?t.el:i)))),e.unshift(t=u)}y=e}else y=_.map(e=>$(e,i)),w=!0}),r},It=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ct=["visible","idle","interaction"],Mt=["[v-scope]",...Ct.map(e=>`[v-scope\\.${e}]`)].join(","),Vt=["pointerdown","keydown","focusin"],Wt=(e,t,n,s)=>{const r=Ct.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Vt)e.addEventListener(t,r);i=()=>{for(const t of Vt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Et(o),!0},zt=/^(?:v-|:|@)/,Bt=/\.([\w-]+)/g,Dt=!1,Kt=(e,t)=>{e.cleanups.push(t),Et(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Ft=(e,t,n)=>{const s=Dt;Dt=n;try{Ut(e,t)}finally{Dt=s}},Ut=(e,t)=>{const n=St(e);try{return qt(e,t)}finally{St(n)}},qt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Wt(n,t,Ft,Dt))return;let s;if(ht(n,"v-cloak"),null!=(s=ht(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===ht(i,"v-else")||(o=ht(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),St(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Be(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||xt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new nn(i,n),l.insert(t,s),Et(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),Et(p,s),c})(n,s,t);if(s=ht(n,"v-for"))return Rt(n,s,t);const r=ht(n,"v-name");let i;if(s=ht(n,"v-teleport")){const e=Gt(s,n,"v-teleport");e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ht(n,"v-scope"))||""===s){const e=(s?xt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=en(t,e),n.__ctx=t,Kt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Qt(n,e.$template)}const o=Dt;null!=ht(n,"v-once")&&(Dt=!0),(s=ht(n,"ref"))&&Ht(n,It,`"${s}"`,t),Jt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])zt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Zt(n,e,l,t));for(const[e,l]of c)Zt(n,e,l,t);return Dt=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Ht(e,ft,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Jt(e,t)},Jt=(e,t)=>{let n=e.firstChild;for(;n;)n=Ut(n,t)||n.nextSibling},Zt=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Bt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=at,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=jt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=It),Ht(e,r,n,s,i,o,c),e.removeAttribute(c))},Ht=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>xt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void We(f,{phase:"directive",source:o,el:e,expression:n})}a&&Kt(s,a)},Gt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){We(s,{phase:"directive",source:n,el:t,expression:e})}},Qt=(e,t)=>{if("#"===t[0]){const n=Gt(t,e,"v-scope");if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Xt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Dt)return Je(e),e;const n=W(e,{scheduler:()=>Je(n)});return t.effects.push(n),Et(()=>{Be(n),r(t.effects,n)}),n}};return t},Yt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),en=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Yt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return Yt(s,"$watch",Qe(i)),Yt(s,"$id",Ge()),tn(r),i},tn=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},nn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Xt(t),Ut(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,Et(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Be),this.ctx.cleanups.splice(0).forEach(e=>e())}},sn=ge(Object.create(null)),rn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),on=e=>{const t=Xt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),tn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(rn(n)+"([^]+?)"+rn(s),"g")}t.scope.$s=pt,t.scope.$nextTick=qe,t.scope.$refs=Object.create(null),t.scope.$store=sn,t.scope.$watch=Qe(t),t.scope.$id=Ge(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Te()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Mt)?[e]:[...e.querySelectorAll(Mt)].filter(e=>!e.matches(`:where(${Mt}) *`)),n.length||(n=[e]),t.walk??=Ut,t.dispose??=Lt;for(const r of n){const e=r.getAttribute("v-name"),n=new nn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Mt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Be),r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){We(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const l=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():l.push(t)}s=l}};return l},cn=document.currentScript;return cn&&cn.hasAttribute("init")&&on().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new we(r,i,o||!i,s)},e.createApp=on,e.devtools=Ce,e.disableDevtools=()=>{Ae=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Ne)Ne[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__},e.nextTick=qe,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(sn[e]=t,"function"==typeof sn[e].init&&sn[e].init(),((e,t)=>{Te()||(Ee.set(e,t),Pe("store:register",e,t))})(e,sn[e])),sn[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Je(t)}),()=>Be(t)},e}({});
1
+ var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===d(e),a=e=>"[object Date]"===d(e),u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),m=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,_=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,b=v(e=>e.replace(y,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var O=/;(?![^(]*\))/g,S=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(O).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var A;function T(e,t){if(e===t)return!0;let n=a(e),s=a(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=T(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!T(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>T(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=A;try{return z=!0,A=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,A=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var z=!0,B=0,D=[];function K(){D.push(z),z=!1}function F(){const e=D.pop();z=void 0===e||e}function U(){B++}function q(){for(B--;!B&&Z.length;)Z.shift()()}function J(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var Z=[];function H(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&Z.push(s.scheduler)))}q()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&A){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),J(A,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let a=[];if("clear"===t)a=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(o.get(n)),t){case"add":c(e)?m(n)&&a.push(o.get("length")):(a.push(o.get(X)),l(e)&&a.push(o.get(Y)));break;case"delete":c(e)||(a.push(o.get(X)),l(e)&&a.push(o.get(Y)));break;case"set":l(e)&&a.push(o.get(X))}U();for(const c of a)c&&H(c,4);q()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),U();const n=be(this)[t].apply(this,e);return q(),F(),n}}),e}function oe(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:de:r?he:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return _e(e,!0,fe,null,de)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ye(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ye(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ae=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=new le,fe=new ae,pe=new WeakMap,he=new WeakMap,de=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function ge(e){return ye(e)?e:_e(e,!1,ue,null,pe)}function _e(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ve(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function ye(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&A&&(t=be(t),J(A,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&H(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=new Map,Oe=new Map,Se=new Map,Ee=new Map,Le=new Set,je=[],Ae=!1,Te=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ne={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Pe=(e,...t)=>{Ne[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Te()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ne[e].add(t),()=>Ne[e].delete(t)),off(e,t){Ne[e].delete(t)}};"undefined"==typeof window||Te()||(window.__LITE_VUE__=Ce);var Me,Ve=[],We=(e,t)=>{for(const s of[...Ve])try{s(e,t)}catch(n){}Ve.length||console.error(e)},ze=new WeakSet,Be=e=>{ze.add(e),e.effect&&function(e){e.effect.stop()}(e)},De=!1,Ke=[],Fe=Promise.resolve(),Ue=-1,qe=e=>Fe.then(e),Je=e=>{Ke.includes(e,Ue+1)||Ke.push(e),De||(De=!0,qe(Ze))},Ze=()=>{const e=new Map;for(Ue=0;Ue<Ke.length;Ue++){const n=Ke[Ue];if(ze.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)We(Error("update loop"),{phase:"effect"});else try{n()}catch(t){We(t,{phase:"effect"})}}Ke.length=0,Ue=-1,De=!1,Ne.flush.size&&!Te()&&Pe("flush")},He=0,Ge=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Qe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{F()}}o=!0});return()=>Be(c)},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null)}i="[object Object]"===d(n)?{...n}:n,s||(e.__bound=i)})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=tt(n),i=tt(s);for(const e in r)st(t,e,r[e]);for(const e in i)null==r[e]&&st(t,e,"");t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=e=>u(e=k(e))?L(e):e||{},nt=/\s*!important$/,st=(e,t,n)=>{c(n)?n.forEach(n=>st(e,t,n)):t.startsWith("--")?e.setProperty(t,n):nt.test(n)?e.setProperty(b(t),n.replace(nt,""),"important"):e[t]=n},rt=Object.create(null),it=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ot=["ctrl","shift","alt","meta"],ct={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ot.some(n=>e[`${n}Key`]&&!t[n])},lt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},at=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ut=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const i=/\bawait\b/.test(n)?"async ":"";let o,c=it.test(n)?t(`(e => ${n}(e))`):(e=>{const t=rt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),rt[e]=!0}catch{return rt[e]=!1}})(n)?t(`(${i}$event => (${n}))`):t(`(${i}$event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return qe(()=>{e&&c()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>c();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=c;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(o),o=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!at.test(e)||e in lt);c=s=>{if(!r.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||lt[t]===e))return}for(const e in r){const t=ct[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const l=r?.window?window:r?.document||r?.outside?document:e,a=s;return l.addEventListener(a,c,r),()=>{clearTimeout(o),l.removeEventListener(a,c,r)}},ft=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=pt(t())})},pt=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ht=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},dt=e=>"_value"in e?e._value:e.value,mt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},vt=e=>{e.target.composing=!0},gt=e=>{const t=e.target;t.composing&&(t.composing=!1,_t(t,"input"))},_t=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},yt=Object.create(null),bt=0,wt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),xt=(e,t,n,s)=>$t(e,`return(${t})`,n,s),$t=(e,t,n,s)=>{let r=yt[t];r||(++bt>1e3&&(yt=Object.create(null),bt=1),r=yt[t]=kt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){We(i,{phase:"expression",expression:s?.expression??wt(t),source:s?.source,el:s?.el??n,scope:e})}},kt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return We(s,{phase:"compile",expression:n?.expression??wt(e),source:n?.source,el:n?.el??t}),()=>{}}},Ot=new WeakMap,St=e=>{const t=Me;return Me=e,t},Et=(e,t=Me)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},Lt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Lt(n),n=e}},jt={bind:Ye,on:ut,show:({el:e,get:t,effect:n})=>{const s="none"==e.style.display?"":e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ft,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===i,lazy:u,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>a?$(dt(e)):dt(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=dt(r);if(s)r.selected=c(e)&&N(e,i)>-1;else if(T(dt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=dt(e),r=N(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(mt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,dt(e))>-1:e.checked=T(t,mt(e,!0))});else if("radio"===i)h("change",()=>{o(dt(e))}),s(()=>{e.checked=T(n(),dt(e))});else{const t=e=>(l&&(e=e.trim()),a?$(e):e);let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",vt),h("compositionend",gt),h(u?"change":"input",()=>{e.composing||c(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return qe(()=>{if(!r)return;const i=St(e);try{s(()=>$t(t.scope,n,e,{source:"v-effect",el:e}))}finally{St(i)}}),()=>{r=!1}}},At=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Tt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Nt=/^\(|\)$/g,Pt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Rt=(e,t,n)=>{const s=t.match(At);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const o=()=>i.parentNode;St(i);const l=s[2].trim();let a,u,f,h,d=s[1].trim().replace(Nt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(Tt))&&(d=d.replace(Tt,"").trim(),u=h[1].trim(),h[2]&&(f=h[2].trim())),(h=d.match(Pt))&&(a=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let _,y,b,w=!1;const x=(t,s,r,i)=>{const o={};a?a.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(u&&(o[u]=i),f&&(o[f]=r)):u&&(o[u]=r);const c=g?xt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new nn(e,en(n,t.data));return r.key=t.key,r.insert(o(),s),r};return n.effect(()=>{const t=xt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([y,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<_.length;s++)b.has(_[s].key)||_[s].remove();const e=[];let t,n,r=y.length;for(;r--;){const c=y[r],l=s.get(c.key);let a;null==l?a=$(c,t?t.el:i):(a=_[l],Object.assign(a.ctx.scope,c.data),l!==r&&(_[l+1]===t&&n!==t||(n=a,a.insert(o(),t?t.el:i)))),e[r]=t=a}_=e}else _=y.map(e=>$(e,i)),w=!0}),r},It=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ct=["visible","idle","interaction"],Mt=["[v-scope]",...Ct.map(e=>`[v-scope\\.${e}]`)].join(","),Vt=["pointerdown","keydown","focusin"],Wt=(e,t,n,s)=>{const r=Ct.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Vt)e.addEventListener(t,r);i=()=>{for(const t of Vt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Et(o),!0},zt=/^(?:v-|:|@)/,Bt=/\.([\w-]+)/g,Dt=!1,Kt=(e,t,n)=>{e.cleanups.push(t),Et(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Ft=(e,t,n)=>{const s=Dt;Dt=n;try{Ut(e,t)}finally{Dt=s}},Ut=(e,t)=>{const n=St(e);try{return qt(e,t)}finally{St(n)}},qt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Wt(n,t,Ft,Dt))return;let s;if(ht(n,"v-cloak"),null!=(s=ht(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===ht(i,"v-else")||(o=ht(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),St(s);let a=-1;const u=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Be(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||xt(n.scope,t,i,{source:"v-if",el:i})){if(e!==a){u();const t=s.parentNode;l=new nn(i,n),l.insert(t,s),Et(p,l.el),l.el.parentNode===t&&s.remove(),a=e}return}}a=-1,u()}),Et(p,s),c})(n,s,t);if(s=ht(n,"v-for"))return Rt(n,s,t);const r=ht(n,"v-name");let i;if(s=ht(n,"v-teleport")){const e=Gt(s,n,"v-teleport");if(e){i=n.nextSibling;const s=n.__marker=new Text("");n.before(s),e.appendChild(n),Kt(t,()=>{Lt(n),n.remove()},s)}}if((s=ht(n,"v-scope"))||""===s){const e=(s?xt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=en(t,e),n.__ctx=t,Kt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Qt(n,e.$template)}const o=Dt;null!=ht(n,"v-once")&&(Dt=!0),(s=ht(n,"ref"))&&Ht(n,It,`"${s}"`,t),Jt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])zt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Zt(n,e,l,t));for(const[e,l]of c)Zt(n,e,l,t);return Dt=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Ht(e,ft,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Jt(e,t)},Jt=(e,t)=>{let n=e.firstChild;for(;n;)n=Ut(n,t)||n.nextSibling},Zt=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Bt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=ut,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=jt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=It),Ht(e,r,n,s,i,o,c),e.removeAttribute(c))},Ht=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},a=t=>We(t,{phase:"handler",source:o,el:e,expression:n,scope:s.scope}),u=t=>{const r=xt(s.scope,t??n,e,l);return t&&"function"==typeof r?(...e)=>{try{const t=r(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(p){return void We(p,{phase:"directive",source:o,el:e,expression:n})}f&&Kt(s,f)},Gt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){We(s,{phase:"directive",source:n,el:t,expression:e})}},Qt=(e,t)=>{if("#"===t[0]){const n=Gt(t,e,"v-scope");if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Xt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Dt)return Je(e),e;const n=W(e,{scheduler:()=>Je(n)});return t.effects.push(n),Et(()=>{Be(n),r(t.effects,n)}),n}};return t},Yt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),en=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Yt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return Yt(s,"$watch",Qe(i)),Yt(s,"$id",Ge()),tn(r),i},tn=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},nn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Xt(t),Ut(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Et(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.template.__marker?.remove(),this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Be),this.ctx.cleanups.splice(0).forEach(e=>e())}},sn=ge(Object.create(null)),rn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),on=e=>{const t=Xt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),tn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(rn(n)+"([^]+?)"+rn(s),"g")}t.scope.$s=pt,t.scope.$nextTick=qe,t.scope.$refs=Object.create(null),t.scope.$store=sn,t.scope.$watch=Qe(t),t.scope.$id=Ge(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Te()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Mt)?[e]:[...e.querySelectorAll(Mt)].filter(e=>!e.matches(`:where(${Mt}) *`)),n.length||(n=[e]),t.walk??=Ut,t.dispose??=Lt;for(const r of n){const e=r.getAttribute("v-name"),n=new nn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Mt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Be),r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){We(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const l=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():l.push(t)}s=l}};return l},cn=document.currentScript;return cn&&cn.hasAttribute("init")&&on().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new we(r,i,o||!i,s)},e.createApp=on,e.devtools=Ce,e.disableDevtools=()=>{Ae=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Ne)Ne[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__},e.nextTick=qe,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(sn[e]=t,"function"==typeof sn[e].init&&sn[e].init(),((e,t)=>{Te()||(Ee.set(e,t),Pe("store:register",e,t))})(e,sn[e])),sn[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Je(t)}),()=>Be(t)},e}({});
package/dist/litevue.mjs CHANGED
@@ -1 +1 @@
1
- function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Map]"===h(e),l=e=>"[object Date]"===h(e),u=e=>"string"==typeof e,a=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,g=m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,_=m(e=>e.replace(y,"-$1").toLowerCase()),b=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),w=(m(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),x=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||f(e))return e}var k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var j;function A(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=a(e),s=a(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var P=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(R(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),D()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=V,t=j;try{return V=!0,j=this,this._runnings++,I(this),this.fn()}finally{C(this),this._runnings--,j=t,V=e}}stop(){this.active&&(I(this),C(this),this.onStop&&this.onStop(),this.active=!1)}};function R(e){return e.value}function I(e){e._trackId++,e._depsLength=0}function C(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,s){e.effect instanceof P&&(e=e.effect.fn);const r=new P(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&T(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var V=!0,z=0,B=[];function K(){B.push(V),V=!1}function D(){const e=B.pop();V=void 0===e||e}function F(){z++}function U(){for(z--;!z&&J.length;)J.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){F();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}U()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},G=/* @__PURE__ */new WeakMap,Q=Symbol(""),X=Symbol("");function Y(e,t,n){if(V&&j){let t=G.get(e);t||G.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),q(j,s)}}function ee(e,t,n,s,r,i){const l=G.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&o(e)){const e=Number(s);l.forEach((t,n)=>{("length"===n||!a(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(l.get(n)),t){case"add":o(e)?d(n)&&u.push(l.get("length")):(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"delete":o(e)||(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"set":c(e)&&u.push(l.get(Q))}F();for(const o of u)o&&Z(o,4);U()}var te=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),ne=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(a)),se=/* @__PURE__ */re();function re(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=_e(this);for(let t=0,r=this.length;t<r;t++)Y(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(_e)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),F();const n=_e(this)[t].apply(this,e);return U(),D(),n}}),e}function ie(e){a(e)||(e=String(e));const t=_e(this);return Y(t,0,e),t.hasOwnProperty(e)}var oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?de:he:r?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(se,t))return Reflect.get(se,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(a(t)?ne.has(t):te(t))?l:(s||Y(e,0,t),r?l:$e(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return ge(e,!0,ae,null,he)}(l):ve(l):l)}},ce=class extends oe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ye(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ye(n)||(r=_e(r),n=_e(n)),!o(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const c=o(e)&&d(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===_e(s)&&(c?w(n,r)&&ee(e,"set",t,n):ee(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&ee(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return a(t)&&ne.has(t)||Y(e,0,t),n}ownKeys(e){return Y(e,0,o(e)?"length":Q),Reflect.ownKeys(e)}},le=class extends oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=/* @__PURE__ */new ce,ae=/* @__PURE__ */new le,fe=/* @__PURE__ */new WeakMap,pe=/* @__PURE__ */new WeakMap,he=/* @__PURE__ */new WeakMap,de=/* @__PURE__ */new WeakMap;function me(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return ye(e)?e:ge(e,!1,ue,null,fe)}function ge(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=me(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function ye(e){return!(!e||!e.__v_isReadonly)}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new P(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=_e(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||xe(e,4),t=e,V&&j&&(t=_e(t),q(j,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function we(e,n,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=t):(r=e.get,i=e.set),new be(r,i,o||!i,s)}function xe(e,t=4,n,s){const r=(e=_e(e)).dep;r&&Z(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Map,Se=/* @__PURE__ */new Map,Ee=/* @__PURE__ */new Map,Le=/* @__PURE__ */new Set,je=[],Ae=!1,Ne=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Te={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Pe=(e,...t)=>{Te[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Ne()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Te[e].add(t),()=>Te[e].delete(t)),off(e,t){Te[e].delete(t)}},Me=()=>{Ae=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Te)Te[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__};"undefined"==typeof window||Ne()||(window.__LITE_VUE__=Ce);var We,Ve=[],ze=(e,t)=>{for(const s of Ve)try{s(e,t)}catch(n){}Ve.length||console.error(e)},Be=/* @__PURE__ */new WeakSet,Ke=e=>{Be.add(e),e.effect&&function(e){e.effect.stop()}(e)},De=!1,Fe=[],Ue=Promise.resolve(),qe=-1,Je=e=>Ue.then(e),Ze=e=>{Fe.includes(e,qe+1)||Fe.push(e),De||(De=!0,Je(He))},He=()=>{const e=/* @__PURE__ */new Map;for(qe=0;qe<Fe.length;qe++){const n=Fe[qe];if(Be.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)ze(Error("update loop"),{phase:"effect"});else try{n()}catch(t){ze(t,{phase:"effect"})}}Fe.length=0,qe=-1,De=!1,Te.flush.size&&!Ne()&&Pe("flush")},Ge=0,Qe=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ge}`)},Xe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{D()}}o=!0});return()=>Ke(c)},Ye=/^(spellcheck|draggable|form|list|type)$/,et=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),tt(e,s,n,i);else{for(const t in n)tt(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||tt(e,t,null)}i="[object Object]"===h(n)?{...n}:n})},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=nt(n),i=nt(s);for(const e in r)rt(t,e,r[e]);for(const e in i)null==r[e]&&rt(t,e,"");t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ye.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},nt=e=>u(e=$(e))?E(e):e||{},st=/\s*!important$/,rt=(e,t,n)=>{o(n)?n.forEach(n=>rt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):st.test(n)?e.setProperty(_(t),n.replace(st,""),"important"):e[t]=n},it=Object.create(null),ot=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ct=["ctrl","shift","alt","meta"],lt={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ct.some(n=>e[`${n}Key`]&&!t[n])},ut={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},at=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ft=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=/\bawait\b/.test(s)?"async ":"",c=ot.test(s)?t(`(e => ${s}(e))`):(e=>{const t=it[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),it[e]=!0}catch{return it[e]=!1}})(s)?t(`(${o}$event => (${s}))`):t(`(${o}$event => { ${s} })`);let l,u=(...e)=>{try{const t=c(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}};function a(t){ze(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Je(()=>{e&&u()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>u();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=u;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(l),l=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!at.test(e)||e in ut);u=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=_(s.key);if(!n.some(t=>t===e||ut[t]===e))return}for(const e in i){const t=lt[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const f=i?.window?window:i?.document||i?.outside?document:e,p=r;return f.addEventListener(p,u,i),()=>{clearTimeout(l),f.removeEventListener(p,u,i)}},pt=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=ht(t())})},ht=e=>null==e?"":f(e)?JSON.stringify(e,null,2):String(e),dt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},mt=e=>"_value"in e?e._value:e.value,vt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},gt=e=>{e.target.composing=!0},yt=e=>{const t=e.target;t.composing&&(t.composing=!1,_t(t,"input"))},_t=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},bt=Object.create(null),wt=0,xt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),$t=(e,t,n,s)=>kt(e,`return(${t})`,n,s),kt=(e,t,n,s)=>{let r=bt[t];r||(++wt>1e3&&(bt=Object.create(null),wt=1),r=bt[t]=Ot(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){ze(i,{phase:"expression",expression:s?.expression??xt(t),source:s?.source,el:s?.el??n,scope:e})}},Ot=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return ze(s,{phase:"compile",expression:n?.expression??xt(e),source:n?.source,el:n?.el??t}),()=>{}}},St=/* @__PURE__ */new WeakMap,Et=e=>{const t=We;return We=e,t},Lt=(e,t=We)=>{if(!t)return;const n=St.get(t);n?n.push(e):St.set(t,[e])},jt=e=>{const t=St.get(e);if(t){St.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;jt(n),n=e}},At={bind:et,on:ft,show:({el:e,get:t,effect:n})=>{const s="none"==e.style.display?"":e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:pt,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?x(mt(e)):mt(e));c(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=mt(r);if(s)r.selected=o(e)&&N(e,i)>-1;else if(A(mt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(o(t)){const n=mt(e),r=N(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c(vt(e,s))}),s(()=>{const t=n();o(t)?e.checked=N(t,mt(e))>-1:e.checked=A(t,vt(e,!0))});else if("radio"===i)h("change",()=>{c(mt(e))}),s(()=>{e.checked=A(n(),mt(e))});else{const t=e=>(l&&(e=e.trim()),u?x(e):e);let i,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(i),i=setTimeout(c,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",gt),h("compositionend",yt),h(a?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||c(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Je(()=>{if(!r)return;const i=Et(e);try{s(()=>kt(t.scope,n,e,{source:"v-effect",el:e}))}finally{Et(i)}}),()=>{r=!1}}},Nt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Tt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Pt=/^\(|\)$/g,Rt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,It=(e,t,n)=>{const s=t.match(Nt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const c=()=>i.parentNode;Et(i);const l=s[2].trim();let u,a,p,h,d=s[1].trim().replace(Pt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(Tt))&&(d=d.replace(Tt,"").trim(),a=h[1].trim(),h[2]&&(p=h[2].trim())),(h=d.match(Rt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let y,_,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),p&&(o[p]=r)):a&&(o[a]=r);const c=g?$t(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new sn(e,tn(n,t.data));return r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=$t(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const o=_[r],l=s.get(o.key);let u;null==l?u=$(o,t?t.el:i):(u=y[l],Object.assign(u.ctx.scope,o.data),l!==r&&(y[l+1]===t&&n!==t||(n=u,u.insert(c(),t?t.el:i)))),e.unshift(t=u)}y=e}else y=_.map(e=>$(e,i)),w=!0}),r},Ct=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Mt=["visible","idle","interaction"],Wt=["[v-scope]",...Mt.map(e=>`[v-scope\\.${e}]`)].join(","),Vt=["pointerdown","keydown","focusin"],zt=(e,t,n,s)=>{const r=Mt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Vt)e.addEventListener(t,r);i=()=>{for(const t of Vt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Lt(o),!0},Bt=/^(?:v-|:|@)/,Kt=/\.([\w-]+)/g,Dt=!1,Ft=(e,t)=>{e.cleanups.push(t),Lt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Ut=(e,t,n)=>{const s=Dt;Dt=n;try{qt(e,t)}finally{Dt=s}},qt=(e,t)=>{const n=Et(e);try{return Jt(e,t)}finally{Et(n)}},Jt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(zt(n,t,Ut,Dt))return;let s;if(dt(n,"v-cloak"),null!=(s=dt(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===dt(i,"v-else")||(o=dt(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),Et(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Ke(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||$t(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new sn(i,n),l.insert(t,s),Lt(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),Lt(p,s),c})(n,s,t);if(s=dt(n,"v-for"))return It(n,s,t);const r=dt(n,"v-name");let i;if(s=dt(n,"v-teleport")){const e=Qt(s,n,"v-teleport");e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=dt(n,"v-scope"))||""===s){const e=(s?$t(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=tn(t,e),n.__ctx=t,Ft(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Xt(n,e.$template)}const o=Dt;null!=dt(n,"v-once")&&(Dt=!0),(s=dt(n,"ref"))&&Gt(n,Ct,`"${s}"`,t),Zt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Bt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Ht(n,e,l,t));for(const[e,l]of c)Ht(n,e,l,t);return Dt=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Gt(e,pt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Zt(e,t)},Zt=(e,t)=>{let n=e.firstChild;for(;n;)n=qt(n,t)||n.nextSibling},Ht=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Kt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=et,i=t.slice(1);else if("@"===t[0])r=ft,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=At[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===et&&"ref"===i&&(r=Ct),Gt(e,r,n,s,i,o,c),e.removeAttribute(c))},Gt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>$t(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void ze(f,{phase:"directive",source:o,el:e,expression:n})}a&&Ft(s,a)},Qt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){ze(s,{phase:"directive",source:n,el:t,expression:e})}},Xt=(e,t)=>{if("#"===t[0]){const n=Qt(t,e,"v-scope");if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Yt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Dt)return Ze(e),e;const n=W(e,{scheduler:()=>Ze(n)});return t.effects.push(n),Lt(()=>{Ke(n),s(t.effects,n)}),n}};return t},en=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),tn=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),en(s,"$refs",Object.create(n.$refs));const r=ve(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return en(s,"$watch",Xe(o)),en(s,"$id",Qe()),nn(r),o},nn=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},sn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Yt(t),qt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,Lt(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Ke),this.ctx.cleanups.splice(0).forEach(e=>e())}},rn=ve(Object.create(null)),on=(e,t)=>(void 0!==t&&(rn[e]=t,"function"==typeof rn[e].init&&rn[e].init(),((e,t)=>{Ne()||(Ee.set(e,t),Pe("store:register",e,t))})(e,rn[e])),rn[e]),cn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),ln=e=>{const t=Yt();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),nn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(cn(n)+"([^]+?)"+cn(s),"g")}t.scope.$s=ht,t.scope.$nextTick=Je,t.scope.$refs=Object.create(null),t.scope.$store=rn,t.scope.$watch=Xe(t),t.scope.$id=Qe(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=/* @__PURE__ */new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ne()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Wt)?[e]:[...e.querySelectorAll(Wt)].filter(e=>!e.matches(`:where(${Wt}) *`)),n.length||(n=[e]),t.walk??=qt,t.dispose??=jt;for(const r of n){const e=r.getAttribute("v-name"),n=new sn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Wt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Ke),r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){ze(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const l=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():l.push(t)}s=l}};return l},un=e=>{let t;return t=W(e,{scheduler:()=>Ze(t)}),()=>Ke(t)},an=document.currentScript;an&&an.hasAttribute("init")&&ln().mount();export{we as computed,ln as createApp,Ce as devtools,Me as disableDevtools,Je as nextTick,ve as reactive,on as store,un as watchEffect};
1
+ function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Map]"===h(e),l=e=>"[object Date]"===h(e),a=e=>"string"==typeof e,u=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,g=m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,y=m(e=>e.replace(_,"-$1").toLowerCase()),b=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),w=(m(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),x=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?E(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||f(e))return e}var k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(a(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var j;function A(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=u(e),s=u(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var P=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(R(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),D()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=V,t=j;try{return V=!0,j=this,this._runnings++,I(this),this.fn()}finally{C(this),this._runnings--,j=t,V=e}}stop(){this.active&&(I(this),C(this),this.onStop&&this.onStop(),this.active=!1)}};function R(e){return e.value}function I(e){e._trackId++,e._depsLength=0}function C(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,s){e.effect instanceof P&&(e=e.effect.fn);const r=new P(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&T(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var V=!0,z=0,B=[];function K(){B.push(V),V=!1}function D(){const e=B.pop();V=void 0===e||e}function F(){z++}function U(){for(z--;!z&&J.length;)J.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){F();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}U()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},G=/* @__PURE__ */new WeakMap,Q=Symbol(""),X=Symbol("");function Y(e,t,n){if(V&&j){let t=G.get(e);t||G.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),q(j,s)}}function ee(e,t,n,s,r,i){const l=G.get(e);if(!l)return;let a=[];if("clear"===t)a=[...l.values()];else if("length"===n&&o(e)){const e=Number(s);l.forEach((t,n)=>{("length"===n||!u(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(l.get(n)),t){case"add":o(e)?d(n)&&a.push(l.get("length")):(a.push(l.get(Q)),c(e)&&a.push(l.get(X)));break;case"delete":o(e)||(a.push(l.get(Q)),c(e)&&a.push(l.get(X)));break;case"set":c(e)&&a.push(l.get(Q))}F();for(const o of a)o&&Z(o,4);U()}var te=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),ne=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(u)),se=/* @__PURE__ */re();function re(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ye(this);for(let t=0,r=this.length;t<r;t++)Y(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ye)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),F();const n=ye(this)[t].apply(this,e);return U(),D(),n}}),e}function ie(e){u(e)||(e=String(e));const t=ye(this);return Y(t,0,e),t.hasOwnProperty(e)}var oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?de:he:r?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(se,t))return Reflect.get(se,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(u(t)?ne.has(t):te(t))?l:(s||Y(e,0,t),r?l:$e(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return ge(e,!0,ue,null,he)}(l):ve(l):l)}},ce=class extends oe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=ye(r),n=ye(n)),!o(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const c=o(e)&&d(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===ye(s)&&(c?w(n,r)&&ee(e,"set",t,n):ee(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&ee(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return u(t)&&ne.has(t)||Y(e,0,t),n}ownKeys(e){return Y(e,0,o(e)?"length":Q),Reflect.ownKeys(e)}},le=class extends oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=/* @__PURE__ */new ce,ue=/* @__PURE__ */new le,fe=/* @__PURE__ */new WeakMap,pe=/* @__PURE__ */new WeakMap,he=/* @__PURE__ */new WeakMap,de=/* @__PURE__ */new WeakMap;function me(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return _e(e)?e:ge(e,!1,ae,null,fe)}function ge(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=me(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new P(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ye(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||xe(e,4),t=e,V&&j&&(t=ye(t),q(j,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function we(e,n,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=t):(r=e.get,i=e.set),new be(r,i,o||!i,s)}function xe(e,t=4,n,s){const r=(e=ye(e)).dep;r&&Z(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Map,Se=/* @__PURE__ */new Map,Ee=/* @__PURE__ */new Map,Le=/* @__PURE__ */new Set,je=[],Ae=!1,Ne=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Te={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Pe=(e,...t)=>{Te[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Ne()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Te[e].add(t),()=>Te[e].delete(t)),off(e,t){Te[e].delete(t)}},Me=()=>{Ae=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Te)Te[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__};"undefined"==typeof window||Ne()||(window.__LITE_VUE__=Ce);var We,Ve=[],ze=(e,t)=>{for(const s of[...Ve])try{s(e,t)}catch(n){}Ve.length||console.error(e)},Be=/* @__PURE__ */new WeakSet,Ke=e=>{Be.add(e),e.effect&&function(e){e.effect.stop()}(e)},De=!1,Fe=[],Ue=Promise.resolve(),qe=-1,Je=e=>Ue.then(e),Ze=e=>{Fe.includes(e,qe+1)||Fe.push(e),De||(De=!0,Je(He))},He=()=>{const e=/* @__PURE__ */new Map;for(qe=0;qe<Fe.length;qe++){const n=Fe[qe];if(Be.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)ze(Error("update loop"),{phase:"effect"});else try{n()}catch(t){ze(t,{phase:"effect"})}}Fe.length=0,qe=-1,De=!1,Te.flush.size&&!Ne()&&Pe("flush")},Ge=0,Qe=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ge}`)},Xe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{D()}}o=!0});return()=>Ke(c)},Ye=/^(spellcheck|draggable|form|list|type)$/,et=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),tt(e,s,n,i);else{for(const t in n)tt(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||tt(e,t,null)}i="[object Object]"===h(n)?{...n}:n,s||(e.__bound=i)})},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=nt(n),i=nt(s);for(const e in r)rt(t,e,r[e]);for(const e in i)null==r[e]&&rt(t,e,"");t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ye.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},nt=e=>a(e=$(e))?E(e):e||{},st=/\s*!important$/,rt=(e,t,n)=>{o(n)?n.forEach(n=>rt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):st.test(n)?e.setProperty(y(t),n.replace(st,""),"important"):e[t]=n},it=Object.create(null),ot=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ct=["ctrl","shift","alt","meta"],lt={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ct.some(n=>e[`${n}Key`]&&!t[n])},at={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ut=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ft=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const i=/\bawait\b/.test(n)?"async ":"";let o,c=ot.test(n)?t(`(e => ${n}(e))`):(e=>{const t=it[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),it[e]=!0}catch{return it[e]=!1}})(n)?t(`(${i}$event => (${n}))`):t(`(${i}$event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return Je(()=>{e&&c()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>c();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=c;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(o),o=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!ut.test(e)||e in at);c=s=>{if(!r.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=y(s.key);if(!n.some(t=>t===e||at[t]===e))return}for(const e in r){const t=lt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const l=r?.window?window:r?.document||r?.outside?document:e,a=s;return l.addEventListener(a,c,r),()=>{clearTimeout(o),l.removeEventListener(a,c,r)}},pt=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=ht(t())})},ht=e=>null==e?"":f(e)?JSON.stringify(e,null,2):String(e),dt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},mt=e=>"_value"in e?e._value:e.value,vt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},gt=e=>{e.target.composing=!0},_t=e=>{const t=e.target;t.composing&&(t.composing=!1,yt(t,"input"))},yt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},bt=Object.create(null),wt=0,xt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),$t=(e,t,n,s)=>kt(e,`return(${t})`,n,s),kt=(e,t,n,s)=>{let r=bt[t];r||(++wt>1e3&&(bt=Object.create(null),wt=1),r=bt[t]=Ot(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){ze(i,{phase:"expression",expression:s?.expression??xt(t),source:s?.source,el:s?.el??n,scope:e})}},Ot=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return ze(s,{phase:"compile",expression:n?.expression??xt(e),source:n?.source,el:n?.el??t}),()=>{}}},St=/* @__PURE__ */new WeakMap,Et=e=>{const t=We;return We=e,t},Lt=(e,t=We)=>{if(!t)return;const n=St.get(t);n?n.push(e):St.set(t,[e])},jt=e=>{const t=St.get(e);if(t){St.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;jt(n),n=e}},At={bind:et,on:ft,show:({el:e,get:t,effect:n})=>{const s="none"==e.style.display?"":e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:pt,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===i,lazy:u,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>a?x(mt(e)):mt(e));c(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=mt(r);if(s)r.selected=o(e)&&N(e,i)>-1;else if(A(mt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(o(t)){const n=mt(e),r=N(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c(vt(e,s))}),s(()=>{const t=n();o(t)?e.checked=N(t,mt(e))>-1:e.checked=A(t,vt(e,!0))});else if("radio"===i)h("change",()=>{c(mt(e))}),s(()=>{e.checked=A(n(),mt(e))});else{const t=e=>(l&&(e=e.trim()),a?x(e):e);let i,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(i),i=setTimeout(c,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",gt),h("compositionend",_t),h(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||c(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Je(()=>{if(!r)return;const i=Et(e);try{s(()=>kt(t.scope,n,e,{source:"v-effect",el:e}))}finally{Et(i)}}),()=>{r=!1}}},Nt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Tt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Pt=/^\(|\)$/g,Rt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,It=(e,t,n)=>{const s=t.match(Nt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const c=()=>i.parentNode;Et(i);const l=s[2].trim();let a,u,p,h,d=s[1].trim().replace(Pt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(Tt))&&(d=d.replace(Tt,"").trim(),u=h[1].trim(),h[2]&&(p=h[2].trim())),(h=d.match(Rt))&&(a=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let _,y,b,w=!1;const x=(t,s,r,i)=>{const o={};a?a.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(u&&(o[u]=i),p&&(o[p]=r)):u&&(o[u]=r);const c=g?$t(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new sn(e,tn(n,t.data));return r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=$t(n.scope,l,e,{source:"v-for",el:e}),s=b;if([y,b]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<_.length;s++)b.has(_[s].key)||_[s].remove();const e=[];let t,n,r=y.length;for(;r--;){const o=y[r],l=s.get(o.key);let a;null==l?a=$(o,t?t.el:i):(a=_[l],Object.assign(a.ctx.scope,o.data),l!==r&&(_[l+1]===t&&n!==t||(n=a,a.insert(c(),t?t.el:i)))),e[r]=t=a}_=e}else _=y.map(e=>$(e,i)),w=!0}),r},Ct=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Mt=["visible","idle","interaction"],Wt=["[v-scope]",...Mt.map(e=>`[v-scope\\.${e}]`)].join(","),Vt=["pointerdown","keydown","focusin"],zt=(e,t,n,s)=>{const r=Mt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Vt)e.addEventListener(t,r);i=()=>{for(const t of Vt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Lt(o),!0},Bt=/^(?:v-|:|@)/,Kt=/\.([\w-]+)/g,Dt=!1,Ft=(e,t,n)=>{e.cleanups.push(t),Lt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Ut=(e,t,n)=>{const s=Dt;Dt=n;try{qt(e,t)}finally{Dt=s}},qt=(e,t)=>{const n=Et(e);try{return Jt(e,t)}finally{Et(n)}},Jt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(zt(n,t,Ut,Dt))return;let s;if(dt(n,"v-cloak"),null!=(s=dt(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===dt(i,"v-else")||(o=dt(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),Et(s);let a=-1;const u=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Ke(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||$t(n.scope,t,i,{source:"v-if",el:i})){if(e!==a){u();const t=s.parentNode;l=new sn(i,n),l.insert(t,s),Lt(p,l.el),l.el.parentNode===t&&s.remove(),a=e}return}}a=-1,u()}),Lt(p,s),c})(n,s,t);if(s=dt(n,"v-for"))return It(n,s,t);const r=dt(n,"v-name");let i;if(s=dt(n,"v-teleport")){const e=Qt(s,n,"v-teleport");if(e){i=n.nextSibling;const s=n.__marker=new Text("");n.before(s),e.appendChild(n),Ft(t,()=>{jt(n),n.remove()},s)}}if((s=dt(n,"v-scope"))||""===s){const e=(s?$t(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=tn(t,e),n.__ctx=t,Ft(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Xt(n,e.$template)}const o=Dt;null!=dt(n,"v-once")&&(Dt=!0),(s=dt(n,"ref"))&&Gt(n,Ct,`"${s}"`,t),Zt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Bt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Ht(n,e,l,t));for(const[e,l]of c)Ht(n,e,l,t);return Dt=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Gt(e,pt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Zt(e,t)},Zt=(e,t)=>{let n=e.firstChild;for(;n;)n=qt(n,t)||n.nextSibling},Ht=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Kt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=et,i=t.slice(1);else if("@"===t[0])r=ft,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=At[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===et&&"ref"===i&&(r=Ct),Gt(e,r,n,s,i,o,c),e.removeAttribute(c))},Gt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},a=t=>ze(t,{phase:"handler",source:o,el:e,expression:n,scope:s.scope}),u=t=>{const r=$t(s.scope,t??n,e,l);return t&&"function"==typeof r?(...e)=>{try{const t=r(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(p){return void ze(p,{phase:"directive",source:o,el:e,expression:n})}f&&Ft(s,f)},Qt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){ze(s,{phase:"directive",source:n,el:t,expression:e})}},Xt=(e,t)=>{if("#"===t[0]){const n=Qt(t,e,"v-scope");if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Yt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Dt)return Ze(e),e;const n=W(e,{scheduler:()=>Ze(n)});return t.effects.push(n),Lt(()=>{Ke(n),s(t.effects,n)}),n}};return t},en=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),tn=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),en(s,"$refs",Object.create(n.$refs));const r=ve(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return en(s,"$watch",Xe(o)),en(s,"$id",Qe()),nn(r),o},nn=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},sn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Yt(t),qt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Lt(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.template.__marker?.remove(),this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Ke),this.ctx.cleanups.splice(0).forEach(e=>e())}},rn=ve(Object.create(null)),on=(e,t)=>(void 0!==t&&(rn[e]=t,"function"==typeof rn[e].init&&rn[e].init(),((e,t)=>{Ne()||(Ee.set(e,t),Pe("store:register",e,t))})(e,rn[e])),rn[e]),cn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),ln=e=>{const t=Yt();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),nn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(cn(n)+"([^]+?)"+cn(s),"g")}t.scope.$s=ht,t.scope.$nextTick=Je,t.scope.$refs=Object.create(null),t.scope.$store=rn,t.scope.$watch=Xe(t),t.scope.$id=Qe(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=/* @__PURE__ */new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ne()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Wt)?[e]:[...e.querySelectorAll(Wt)].filter(e=>!e.matches(`:where(${Wt}) *`)),n.length||(n=[e]),t.walk??=qt,t.dispose??=jt;for(const r of n){const e=r.getAttribute("v-name"),n=new sn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Wt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Ke),r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){ze(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const l=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():l.push(t)}s=l}};return l},an=e=>{let t;return t=W(e,{scheduler:()=>Ze(t)}),()=>Ke(t)},un=document.currentScript;un&&un.hasAttribute("init")&&ln().mount();export{we as computed,ln as createApp,Ce as devtools,Me as disableDevtools,Je as nextTick,ve as reactive,on as store,an as watchEffect};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVue={})}(this,function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===h(e),u=e=>"[object Date]"===h(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=v(e=>e.replace(_,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var O=/;(?![^(]*\))/g,S=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(O).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var A;function T(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=T(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!T(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>T(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=A;try{return z=!0,A=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,A=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var z=!0,B=0,D=[];function K(){D.push(z),z=!1}function F(){const e=D.pop();z=void 0===e||e}function U(){B++}function q(){for(B--;!B&&Z.length;)Z.shift()()}function J(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var Z=[];function H(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&Z.push(s.scheduler)))}q()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&A){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),J(A,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let u=[];if("clear"===t)u=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(o.get(n)),t){case"add":c(e)?m(n)&&u.push(o.get("length")):(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"delete":c(e)||(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"set":l(e)&&u.push(o.get(X))}U();for(const c of u)c&&H(c,4);q()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),U();const n=be(this)[t].apply(this,e);return q(),F(),n}}),e}function oe(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:he:r?de:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return ye(e,!0,fe,null,he)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,de=new WeakMap,he=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ye(e,!1,ae,null,pe)}function ye(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ve(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&A&&(t=be(t),J(A,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&H(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=new Map,Oe=new Map,Se=new Map,Ee=new Map,Le=new Set,je=[],Ae=!1,Te=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ne={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Pe=(e,...t)=>{Ne[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Te()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ne[e].add(t),()=>Ne[e].delete(t)),off(e,t){Ne[e].delete(t)}};"undefined"==typeof window||Te()||(window.__LITE_VUE__=Ce);var Me,Ve=[],We=(e,t)=>{for(const s of Ve)try{s(e,t)}catch(n){}Ve.length||console.error(e)},ze=new WeakSet,Be=e=>{ze.add(e),e.effect&&function(e){e.effect.stop()}(e)},De=!1,Ke=[],Fe=Promise.resolve(),Ue=-1,qe=e=>Fe.then(e),Je=e=>{Ke.includes(e,Ue+1)||Ke.push(e),De||(De=!0,qe(Ze))},Ze=()=>{const e=new Map;for(Ue=0;Ue<Ke.length;Ue++){const n=Ke[Ue];if(ze.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)We(Error("update loop"),{phase:"effect"});else try{n()}catch(t){We(t,{phase:"effect"})}}Ke.length=0,Ue=-1,De=!1,Ne.flush.size&&!Te()&&Pe("flush")},He=0,Ge=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Qe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,o=!1;const c=e.effect(()=>{const e=r(),t=i;if(i=e,o?e!==t:s?.immediate){K();try{n(e,t)}finally{F()}}o=!0});return()=>Be(c)},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null)}i="[object Object]"===h(n)?{...n}:n})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=tt(n),i=tt(s);for(const e in r)st(t,e,r[e]);for(const e in i)null==r[e]&&st(t,e,"");t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=e=>a(e=k(e))?L(e):e||{},nt=/\s*!important$/,st=(e,t,n)=>{c(n)?n.forEach(n=>st(e,t,n)):t.startsWith("--")?e.setProperty(t,n):nt.test(n)?e.setProperty(b(t),n.replace(nt,""),"important"):e[t]=n},rt=Object.create(null),it=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ot=["ctrl","shift","alt","meta"],ct={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ot.some(n=>e[`${n}Key`]&&!t[n])},lt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ut=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,at=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=/\bawait\b/.test(s)?"async ":"",c=it.test(s)?t(`(e => ${s}(e))`):(e=>{const t=rt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),rt[e]=!0}catch{return rt[e]=!1}})(s)?t(`(${o}$event => (${s}))`):t(`(${o}$event => { ${s} })`);let l,u=(...e)=>{try{const t=c(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}};function a(t){We(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return qe(()=>{e&&u()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>u();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=u;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(l),l=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!ut.test(e)||e in lt);u=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||lt[t]===e))return}for(const e in i){const t=ct[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const f=i?.window?window:i?.document||i?.outside?document:e,p=r;return f.addEventListener(p,u,i),()=>{clearTimeout(l),f.removeEventListener(p,u,i)}},ft=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=pt(t())})},pt=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),dt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ht=e=>"_value"in e?e._value:e.value,mt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},vt=e=>{e.target.composing=!0},gt=e=>{const t=e.target;t.composing&&(t.composing=!1,yt(t,"input"))},yt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},_t=Object.create(null),bt=0,wt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),xt=(e,t,n,s)=>$t(e,`return(${t})`,n,s),$t=(e,t,n,s)=>{let r=_t[t];r||(++bt>1e3&&(_t=Object.create(null),bt=1),r=_t[t]=kt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){We(i,{phase:"expression",expression:s?.expression??wt(t),source:s?.source,el:s?.el??n,scope:e})}},kt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return We(s,{phase:"compile",expression:n?.expression??wt(e),source:n?.source,el:n?.el??t}),()=>{}}},Ot=new WeakMap,St=e=>{const t=Me;return Me=e,t},Et=(e,t=Me)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},Lt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Lt(n),n=e}},jt={bind:Ye,on:at,show:({el:e,get:t,effect:n})=>{const s="none"==e.style.display?"":e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ft,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],d=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;d("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?$(ht(e)):ht(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=ht(r);if(s)r.selected=c(e)&&N(e,i)>-1;else if(T(ht(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)d("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=ht(e),r=N(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(mt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,ht(e))>-1:e.checked=T(t,mt(e,!0))});else if("radio"===i)d("change",()=>{o(ht(e))}),s(()=>{e.checked=T(n(),ht(e))});else{const t=e=>(l&&(e=e.trim()),u?$(e):e);let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(d("compositionstart",vt),d("compositionend",gt),d(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return qe(()=>{if(!r)return;const i=St(e);try{s(()=>$t(t.scope,n,e,{source:"v-effect",el:e}))}finally{St(i)}}),()=>{r=!1}}},At=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Tt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Nt=/^\(|\)$/g,Pt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Rt=(e,t,n)=>{const s=t.match(At);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const o=()=>i.parentNode;St(i);const l=s[2].trim();let u,a,f,d,h=s[1].trim().replace(Nt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(d=h.match(Tt))&&(h=h.replace(Tt,"").trim(),a=d[1].trim(),d[2]&&(f=d[2].trim())),(d=h.match(Pt))&&(u=d[1].split(",").map(e=>e.trim()),m="["===h[0]);let y,_,b,w=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[h]=s,i?(a&&(o[a]=i),f&&(o[f]=r)):a&&(o[a]=r);const c=g?xt(Object.setPrototypeOf(o,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},$=(t,s)=>{const r=new nn(e,en(n,t.data));return r.key=t.key,r.insert(o(),s),r};return n.effect(()=>{const t=xt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const c=_[r],l=s.get(c.key);let u;null==l?u=$(c,t?t.el:i):(u=y[l],Object.assign(u.ctx.scope,c.data),l!==r&&(y[l+1]===t&&n!==t||(n=u,u.insert(o(),t?t.el:i)))),e.unshift(t=u)}y=e}else y=_.map(e=>$(e,i)),w=!0}),r},It=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ct=["visible","idle","interaction"],Mt=["[v-scope]",...Ct.map(e=>`[v-scope\\.${e}]`)].join(","),Vt=["pointerdown","keydown","focusin"],Wt=(e,t,n,s)=>{const r=Ct.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Vt)e.addEventListener(t,r);i=()=>{for(const t of Vt)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),Et(o),!0},zt=/^(?:v-|:|@)/,Bt=/\.([\w-]+)/g,Dt=!1,Kt=(e,t)=>{e.cleanups.push(t),Et(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Ft=(e,t,n)=>{const s=Dt;Dt=n;try{Ut(e,t)}finally{Dt=s}},Ut=(e,t)=>{const n=St(e);try{return qt(e,t)}finally{St(n)}},qt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Wt(n,t,Ft,Dt))return;let s;if(dt(n,"v-cloak"),null!=(s=dt(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===dt(i,"v-else")||(o=dt(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),St(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Be(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||xt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new nn(i,n),l.insert(t,s),Et(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),Et(p,s),c})(n,s,t);if(s=dt(n,"v-for"))return Rt(n,s,t);const r=dt(n,"v-name");let i;if(s=dt(n,"v-teleport")){const e=Gt(s,n,"v-teleport");e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=dt(n,"v-scope"))||""===s){const e=(s?xt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=en(t,e),n.__ctx=t,Kt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Qt(n,e.$template)}const o=Dt;null!=dt(n,"v-once")&&(Dt=!0),(s=dt(n,"ref"))&&Ht(n,It,`"${s}"`,t),Jt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])zt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Zt(n,e,l,t));for(const[e,l]of c)Zt(n,e,l,t);return Dt=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Ht(e,ft,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Jt(e,t)},Jt=(e,t)=>{let n=e.firstChild;for(;n;)n=Ut(n,t)||n.nextSibling},Zt=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Bt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=at,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=jt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=It),Ht(e,r,n,s,i,o,c),e.removeAttribute(c))},Ht=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>xt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void We(f,{phase:"directive",source:o,el:e,expression:n})}a&&Kt(s,a)},Gt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){We(s,{phase:"directive",source:n,el:t,expression:e})}},Qt=(e,t)=>{if("#"===t[0]){const n=Gt(t,e,"v-scope");if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Xt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Dt)return Je(e),e;const n=W(e,{scheduler:()=>Je(n)});return t.effects.push(n),Et(()=>{Be(n),r(t.effects,n)}),n}};return t},Yt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),en=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Yt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return Yt(s,"$watch",Qe(i)),Yt(s,"$id",Ge()),tn(r),i},tn=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},nn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Xt(t),Ut(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,Et(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Be),this.ctx.cleanups.splice(0).forEach(e=>e())}},sn=ge(Object.create(null)),rn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),on=e=>{const t=Xt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),tn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(rn(n)+"([^]+?)"+rn(s),"g")}t.scope.$s=pt,t.scope.$nextTick=qe,t.scope.$refs=Object.create(null),t.scope.$store=sn,t.scope.$watch=Qe(t),t.scope.$id=Ge(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],i=new Set,o=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Te()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&o.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Mt)?[e]:[...e.querySelectorAll(Mt)].filter(e=>!e.matches(`:where(${Mt}) *`)),n.length||(n=[e]),t.walk??=Ut,t.dispose??=Lt;for(const r of n){const e=r.getAttribute("v-name"),n=new nn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Mt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Be),r.splice(0).forEach(e=>e()),o.splice(0).forEach(e=>{try{e()}catch(t){We(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void c.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const l=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():l.push(t)}s=l}};return l},cn=document.currentScript;cn&&cn.hasAttribute("init")&&on().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new we(r,i,o||!i,s)},e.createApp=on,e.devtools=Ce,e.disableDevtools=()=>{Ae=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Ne)Ne[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__},e.nextTick=qe,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(sn[e]=t,"function"==typeof sn[e].init&&sn[e].init(),((e,t)=>{Te()||(Ee.set(e,t),Pe("store:register",e,t))})(e,sn[e])),sn[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Je(t)}),()=>Be(t)}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVue={})}(this,function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Map]"===h(e),a=e=>"[object Date]"===h(e),u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=v(e=>e.replace(_,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var O=/;(?![^(]*\))/g,S=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(O).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var T;function A(e,t){if(e===t)return!0;let n=a(e),s=a(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=T;try{return z=!0,T=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,T=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var z=!0,B=0,D=[];function K(){D.push(z),z=!1}function F(){const e=D.pop();z=void 0===e||e}function U(){B++}function q(){for(B--;!B&&Z.length;)Z.shift()()}function J(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var Z=[];function H(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&Z.push(s.scheduler)))}q()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&T){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),J(T,s)}}function te(e,t,n,s,r,o){const i=Q.get(e);if(!i)return;let a=[];if("clear"===t)a=[...i.values()];else if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(i.get(n)),t){case"add":c(e)?m(n)&&a.push(i.get("length")):(a.push(i.get(X)),l(e)&&a.push(i.get(Y)));break;case"delete":c(e)||(a.push(i.get(X)),l(e)&&a.push(i.get(Y)));break;case"set":l(e)&&a.push(i.get(X))}U();for(const c of a)c&&H(c,4);q()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=oe();function oe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),U();const n=be(this)[t].apply(this,e);return q(),F(),n}}),e}function ie(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:he:r?de:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?o&&m(t)?l:l.value:p(l)?s?function(e){return ye(e,!0,fe,null,he)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const o=c(e)&&m(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(o?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ae=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=new le,fe=new ae,pe=new WeakMap,de=new WeakMap,he=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ye(e,!1,ue,null,pe)}function ye(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ve(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&T&&(t=be(t),J(T,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&H(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=new Map,Oe=new Map,Se=new Map,Ee=new Map,Le=new Set,je=[],Te=!1,Ae=()=>Te||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ne={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Pe=(e,...t)=>{Ne[e].forEach(e=>e(...t))},Re=()=>{},Ie=(e,t,n,s)=>Ae()?Re:(ke.set(e,t),n&&Oe.set(e,n),s&&Se.set(e,s),Pe("scope:mount",e,t),()=>{ke.delete(e)&&(Oe.delete(e),Se.delete(e),Pe("scope:unmount",e))}),Ce={scopes:ke,exps:Oe,names:Se,stores:Ee,components:Le,plugins:je,getScopeByName(e){for(const[t,n]of Se)if(n===e)return ke.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=ke.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ne[e].add(t),()=>Ne[e].delete(t)),off(e,t){Ne[e].delete(t)}};"undefined"==typeof window||Ae()||(window.__LITE_VUE__=Ce);var Me,Ve=[],We=(e,t)=>{for(const s of[...Ve])try{s(e,t)}catch(n){}Ve.length||console.error(e)},ze=new WeakSet,Be=e=>{ze.add(e),e.effect&&function(e){e.effect.stop()}(e)},De=!1,Ke=[],Fe=Promise.resolve(),Ue=-1,qe=e=>Fe.then(e),Je=e=>{Ke.includes(e,Ue+1)||Ke.push(e),De||(De=!0,qe(Ze))},Ze=()=>{const e=new Map;for(Ue=0;Ue<Ke.length;Ue++){const n=Ke[Ue];if(ze.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)We(Error("update loop"),{phase:"effect"});else try{n()}catch(t){We(t,{phase:"effect"})}}Ke.length=0,Ue=-1,De=!1,Ne.flush.size&&!Ae()&&Pe("flush")},He=0,Ge=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Qe=e=>(t,n,s)=>{const r="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let o,i=!1;const c=e.effect(()=>{const e=r(),t=o;if(o=e,i?e!==t:s?.immediate){K();try{n(e,t)}finally{F()}}i=!0});return()=>Be(c)},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o;s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),et(e,s,n,o);else{for(const t in n)et(e,t,n[t],o&&o[t]);for(const t in o)n&&t in n||et(e,t,null)}o="[object Object]"===h(n)?{...n}:n,s||(e.__bound=o)})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=tt(n),o=tt(s);for(const e in r)st(t,e,r[e]);for(const e in o)null==r[e]&&st(t,e,"");t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=e=>u(e=k(e))?L(e):e||{},nt=/\s*!important$/,st=(e,t,n)=>{c(n)?n.forEach(n=>st(e,t,n)):t.startsWith("--")?e.setProperty(t,n):nt.test(n)?e.setProperty(b(t),n.replace(nt,""),"important"):e[t]=n},rt=Object.create(null),ot=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,it=["ctrl","shift","alt","meta"],ct={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>it.some(n=>e[`${n}Key`]&&!t[n])},lt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},at=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ut=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"";let i,c=ot.test(n)?t(`(e => ${n}(e))`):(e=>{const t=rt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),rt[e]=!0}catch{return rt[e]=!1}})(n)?t(`(${o}$event => (${n}))`):t(`(${o}$event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return qe(()=>{e&&c()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>c();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=c;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(i),i=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!at.test(e)||e in lt);c=s=>{if(!r.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||lt[t]===e))return}for(const e in r){const t=ct[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const l=r?.window?window:r?.document||r?.outside?document:e,a=s;return l.addEventListener(a,c,r),()=>{clearTimeout(i),l.removeEventListener(a,c,r)}},ft=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=pt(t())})},pt=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),dt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ht=e=>"_value"in e?e._value:e.value,mt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},vt=e=>{e.target.composing=!0},gt=e=>{const t=e.target;t.composing&&(t.composing=!1,yt(t,"input"))},yt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},_t=Object.create(null),bt=0,wt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),xt=(e,t,n,s)=>$t(e,`return(${t})`,n,s),$t=(e,t,n,s)=>{let r=_t[t];r||(++bt>1e3&&(_t=Object.create(null),bt=1),r=_t[t]=kt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){We(o,{phase:"expression",expression:s?.expression??wt(t),source:s?.source,el:s?.el??n,scope:e})}},kt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return We(s,{phase:"compile",expression:n?.expression??wt(e),source:n?.source,el:n?.el??t}),()=>{}}},Ot=new WeakMap,St=e=>{const t=Me;return Me=e,t},Et=(e,t=Me)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},Lt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Lt(n),n=e}},jt={bind:Ye,on:ut,show:({el:e,get:t,effect:n})=>{const s="none"==e.style.display?"":e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ft,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=[],d=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;d("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>a?$(ht(e)):ht(e));i(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=ht(r);if(s)r.selected=c(e)&&N(e,o)>-1;else if(A(ht(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===o)d("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=ht(e),r=N(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(mt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,ht(e))>-1:e.checked=A(t,mt(e,!0))});else if("radio"===o)d("change",()=>{i(ht(e))}),s(()=>{e.checked=A(n(),ht(e))});else{const t=e=>(l&&(e=e.trim()),a?$(e):e);let o,c=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(o),o=setTimeout(i,e,t)},p.push(()=>clearTimeout(o))}}if(d("compositionstart",vt),d("compositionend",gt),d(u?"change":"input",()=>{e.composing||c(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||i(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return qe(()=>{if(!r)return;const o=St(e);try{s(()=>$t(t.scope,n,e,{source:"v-effect",el:e}))}finally{St(o)}}),()=>{r=!1}}},Tt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,At=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Nt=/^\(|\)$/g,Pt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Rt=(e,t,n)=>{const s=t.match(Tt);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;St(o);const l=s[2].trim();let a,u,f,d,h=s[1].trim().replace(Nt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(d=h.match(At))&&(h=h.replace(At,"").trim(),u=d[1].trim(),d[2]&&(f=d[2].trim())),(d=h.match(Pt))&&(a=d[1].split(",").map(e=>e.trim()),m="["===h[0]);let y,_,b,w=!1;const x=(t,s,r,o)=>{const i={};a?a.forEach((e,t)=>i[e]=s[m?t:e]):i[h]=s,o?(u&&(i[u]=o),f&&(i[f]=r)):u&&(i[u]=r);const c=g?xt(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},$=(t,s)=>{const r=new nn(e,en(n,t.data));return r.key=t.key,r.insert(i(),s),r};return n.effect(()=>{const t=xt(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const c=_[r],l=s.get(c.key);let a;null==l?a=$(c,t?t.el:o):(a=y[l],Object.assign(a.ctx.scope,c.data),l!==r&&(y[l+1]===t&&n!==t||(n=a,a.insert(i(),t?t.el:o)))),e[r]=t=a}y=e}else y=_.map(e=>$(e,o)),w=!0}),r},It=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ct=["visible","idle","interaction"],Mt=["[v-scope]",...Ct.map(e=>`[v-scope\\.${e}]`)].join(","),Vt=["pointerdown","keydown","focusin"],Wt=(e,t,n,s)=>{const r=Ct.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const o=`v-scope.${r}`,i=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,o(),n())};let o=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),o=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);o=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Vt)e.addEventListener(t,r);o=()=>{for(const t of Vt)e.removeEventListener(t,r)}}return()=>{s=!0,o()}})(e,r,()=>{e.hasAttribute(o)&&(e.setAttribute("v-scope",e.getAttribute(o)),e.removeAttribute(o),n(e,t,s))});return t.cleanups.push(i),Et(i),!0},zt=/^(?:v-|:|@)/,Bt=/\.([\w-]+)/g,Dt=!1,Kt=(e,t,n)=>{e.cleanups.push(t),Et(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Ft=(e,t,n)=>{const s=Dt;Dt=n;try{Ut(e,t)}finally{Dt=s}},Ut=(e,t)=>{const n=St(e);try{return qt(e,t)}finally{St(n)}},qt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Wt(n,t,Ft,Dt))return;let s;if(dt(n,"v-cloak"),null!=(s=dt(n,"v-if")))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t.trim()||"0",el:e}];let o,i;for(;(o=e.nextElementSibling)&&(i=null,""===dt(o,"v-else")||(i=dt(o,"v-else-if")));)o.remove(),r.push({exp:i,el:o});const c=e.nextSibling;let l;e.remove(),St(s);let a=-1;const u=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Be(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:o}=r[e];if(!t||xt(n.scope,t,o,{source:"v-if",el:o})){if(e!==a){u();const t=s.parentNode;l=new nn(o,n),l.insert(t,s),Et(p,l.el),l.el.parentNode===t&&s.remove(),a=e}return}}a=-1,u()}),Et(p,s),c})(n,s,t);if(s=dt(n,"v-for"))return Rt(n,s,t);const r=dt(n,"v-name");let o;if(s=dt(n,"v-teleport")){const e=Gt(s,n,"v-teleport");if(e){o=n.nextSibling;const s=n.__marker=new Text("");n.before(s),e.appendChild(n),Kt(t,()=>{Lt(n),n.remove()},s)}}if((s=dt(n,"v-scope"))||""===s){const e=(s?xt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=en(t,e),n.__ctx=t,Kt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Qt(n,e.$template)}const i=Dt;null!=dt(n,"v-once")&&(Dt=!0),(s=dt(n,"ref"))&&Ht(n,It,`"${s}"`,t),Jt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])zt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Zt(n,e,l,t));for(const[e,l]of c)Zt(n,e,l,t);return Dt=i,o}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),Ht(e,ft,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Jt(e,t)},Jt=(e,t)=>{let n=e.firstChild;for(;n;)n=Ut(n,t)||n.nextSibling},Zt=(e,t,n,s)=>{let r,o,i;const c=t;if(":"===(t=t.replace(Bt,(e,t)=>((i||(i={}))[t]=!0,"")))[0])r=Ye,o=t.slice(1);else if("@"===t[0])r=ut,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=jt[n]||s.dirs[n],o=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===o&&(r=It),Ht(e,r,n,s,o,i,c),e.removeAttribute(c))},Ht=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c},a=t=>We(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=xt(s.scope,t??n,e,l);return t&&"function"==typeof r?(...e)=>{try{const t=r(...e);return t instanceof Promise&&t.catch(a),t}catch(t){a(t)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void We(p,{phase:"directive",source:i,el:e,expression:n})}f&&Kt(s,f)},Gt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){We(s,{phase:"directive",source:n,el:t,expression:e})}},Qt=(e,t)=>{if("#"===t[0]){const n=Gt(t,e,"v-scope");if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Xt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Dt)return Je(e),e;const n=W(e,{scheduler:()=>Je(n)});return t.effects.push(n),Et(()=>{Be(n),r(t.effects,n)}),n}};return t},Yt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),en=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Yt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return Yt(s,"$watch",Qe(o)),Yt(s,"$id",Ge()),tn(r),o},tn=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},nn=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Xt(t),Ut(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Et(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.template.__marker?.remove(),this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Be),this.ctx.cleanups.splice(0).forEach(e=>e())}},sn=ge(Object.create(null)),rn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),on=e=>{const t=Xt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),tn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(rn(n)+"([^]+?)"+rn(s),"g")}t.scope.$s=pt,t.scope.$nextTick=qe,t.scope.$refs=Object.create(null),t.scope.$store=sn,t.scope.$watch=Qe(t),t.scope.$id=Ge(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=[],o=new Set,i=[],c=[],l={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ae()||Le.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ve.push(n),()=>{const e=Ve.indexOf(n);e>-1&&Ve.splice(e,1)});var n;return c.push(t),()=>{const e=c.indexOf(t);e>-1&&c.splice(e,1),t()}},use(e,t){if(!o.has(e)){o.add(e);const n=("function"==typeof e?e:e.install)(l,t);"function"==typeof n&&i.push(n)}return l},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Mt)?[e]:[...e.querySelectorAll(Mt)].filter(e=>!e.matches(`:where(${Mt}) *`)),n.length||(n=[e]),t.walk??=Ut,t.dispose??=Lt;for(const r of n){const e=r.getAttribute("v-name"),n=new nn(r,t,!0);r.__ctx??=n.ctx,Ce.scopes.has(r)||r.matches(Mt)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Be),r.splice(0).forEach(e=>e()),i.splice(0).forEach(e=>{try{e()}catch(t){We(t,{phase:"teardown",source:"plugin"})}}),o.clear(),void c.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const l=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():l.push(t)}s=l}};return l},cn=document.currentScript;cn&&cn.hasAttribute("init")&&on().mount(),e.computed=function(e,t,s=!1){let r,o;const i="function"==typeof e;return i?(r=e,o=n):(r=e.get,o=e.set),new we(r,o,i||!o,s)},e.createApp=on,e.devtools=Ce,e.disableDevtools=()=>{Te=!0,ke.clear(),Oe.clear(),Se.clear(),Ee.clear(),Le.clear(),je.length=0;for(const e in Ne)Ne[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ce&&delete window.__LITE_VUE__},e.nextTick=qe,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(sn[e]=t,"function"==typeof sn[e].init&&sn[e].init(),((e,t)=>{Ae()||(Ee.set(e,t),Pe("store:register",e,t))})(e,sn[e])),sn[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Je(t)}),()=>Be(t)}});
@@ -73,8 +73,9 @@ var LiteVueMorph = (function(exports) {
73
73
  };
74
74
  var patchAttrs = (from, to) => {
75
75
  const owned = boundAttrs(to);
76
+ const bound = Object(from.__bound);
76
77
  for (const { name, value } of [...to.attributes]) {
77
- if (dirRE.test(name) || owned.has(name)) continue;
78
+ if (dirRE.test(name) || owned.has(name) || name in bound) continue;
78
79
  if (from.getAttribute(name) !== value) from.setAttribute(name, value);
79
80
  }
80
81
  for (const { name } of [...from.attributes]) {
@@ -71,8 +71,9 @@ var ownsChildren = (to) => {
71
71
  };
72
72
  var patchAttrs = (from, to) => {
73
73
  const owned = boundAttrs(to);
74
+ const bound = Object(from.__bound);
74
75
  for (const { name, value } of [...to.attributes]) {
75
- if (dirRE.test(name) || owned.has(name)) continue;
76
+ if (dirRE.test(name) || owned.has(name) || name in bound) continue;
76
77
  if (from.getAttribute(name) !== value) from.setAttribute(name, value);
77
78
  }
78
79
  for (const { name } of [...from.attributes]) {
@@ -1 +1 @@
1
- var LiteVueMorph=function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var t=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),n=/^(?:v-|:|@)/,r=/^(?::|v-bind:)/,o=/^v-(?!scope|on:)/,i=["id","data-key","data-id"],s=e=>{for(const t of i){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},d=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},l=e=>e.__ctx||[...e.children||[]].map(l).find(Boolean),a=(e,t)=>(t||l(e))?.dispose?.(e),c=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),u=(e,t)=>{const i=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)r.test(n)?t.add(n.replace(r,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):o.test(n)&&t.add("style");return t})(t);for(const{name:r,value:o}of[...t.attributes])n.test(r)||i.has(r)||e.getAttribute(r)!==o&&e.setAttribute(r,o);for(const{name:n}of[...e.attributes])i.has("*")||i.has(n)||t.hasAttribute(n)||e.removeAttribute(n)},f=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return m(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const o=e,i=t;if(o.tagName!==i.tagName)return m(e,t,n,r);r.skip?.(o,i)||o.hasAttribute("data-morph-skip")||(u(o,i),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||c(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(c(t))return!0;return!1})(i)||h(o,i,o.__ctx||n,r))},m=(e,n,r,o)=>{if(t(e,o))return;const i=n.cloneNode(!0);!1!==o.beforeNodeAdded?.(i)&&(a(e,r),e.parentNode.replaceChild(i,e),o.afterNodeRemoved?.(e),p(i,r))},p=(e,t)=>{const n=t||d(e.parentNode);n?.walk?.(e,n)},h=(e,n,r,o)=>{const i=o.key||s,d=new Map;for(let t=e.firstChild;t;t=t.nextSibling)if(1===t.nodeType){const e=i(t);if(null==e)continue;d.set(e,t)}const l=e=>e&&1===e.nodeType?i(e):null;let c=e.firstChild,u=n.firstChild;const m=t=>{const n=t.cloneNode(!0);!1!==o.beforeNodeAdded?.(n)&&(e.insertBefore(n,c),p(n,r))};for(;u;){const t=u.nextSibling,n=l(u);if(null!=n){const t=d.get(n);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),d.delete(n),f(t,u,r,o)):m(u)}else if(c&&null==l(c)){const e=c.nextSibling;f(c,u,r,o),c=e}else m(u);u=t}for(;c;){const n=c.nextSibling;t(c,o)||(a(c,r),e.removeChild(c),o.afterNodeRemoved?.(c)),c=n}},b=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const o=n.content;r=1===o.childElementCount?o.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(o),t})()}else r=t;if(r){const t=()=>{const t=v();f(e,r,d(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},v=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}};return e.morph=b,e.morphPlugin=e=>{e.scope.$morph=b},e}({});
1
+ var LiteVueMorph=function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var t=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),n=/^(?:v-|:|@)/,r=/^(?::|v-bind:)/,o=/^v-(?!scope|on:)/,i=["id","data-key","data-id"],s=e=>{for(const t of i){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},d=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},l=e=>e.__ctx||[...e.children||[]].map(l).find(Boolean),a=(e,t)=>(t||l(e))?.dispose?.(e),c=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),u=(e,t)=>{const i=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)r.test(n)?t.add(n.replace(r,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):o.test(n)&&t.add("style");return t})(t),s=Object(e.__bound);for(const{name:r,value:o}of[...t.attributes])n.test(r)||i.has(r)||r in s||e.getAttribute(r)!==o&&e.setAttribute(r,o);for(const{name:n}of[...e.attributes])i.has("*")||i.has(n)||t.hasAttribute(n)||e.removeAttribute(n)},f=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return m(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const o=e,i=t;if(o.tagName!==i.tagName)return m(e,t,n,r);r.skip?.(o,i)||o.hasAttribute("data-morph-skip")||(u(o,i),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||c(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(c(t))return!0;return!1})(i)||h(o,i,o.__ctx||n,r))},m=(e,n,r,o)=>{if(t(e,o))return;const i=n.cloneNode(!0);!1!==o.beforeNodeAdded?.(i)&&(a(e,r),e.parentNode.replaceChild(i,e),o.afterNodeRemoved?.(e),p(i,r))},p=(e,t)=>{const n=t||d(e.parentNode);n?.walk?.(e,n)},h=(e,n,r,o)=>{const i=o.key||s,d=new Map;for(let t=e.firstChild;t;t=t.nextSibling)if(1===t.nodeType){const e=i(t);if(null==e)continue;d.set(e,t)}const l=e=>e&&1===e.nodeType?i(e):null;let c=e.firstChild,u=n.firstChild;const m=t=>{const n=t.cloneNode(!0);!1!==o.beforeNodeAdded?.(n)&&(e.insertBefore(n,c),p(n,r))};for(;u;){const t=u.nextSibling,n=l(u);if(null!=n){const t=d.get(n);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),d.delete(n),f(t,u,r,o)):m(u)}else if(c&&null==l(c)){const e=c.nextSibling;f(c,u,r,o),c=e}else m(u);u=t}for(;c;){const n=c.nextSibling;t(c,o)||(a(c,r),e.removeChild(c),o.afterNodeRemoved?.(c)),c=n}},b=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const o=n.content;r=1===o.childElementCount?o.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(o),t})()}else r=t;if(r){const t=()=>{const t=v();f(e,r,d(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},v=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}};return e.morph=b,e.morphPlugin=e=>{e.scope.$morph=b},e}({});
@@ -1 +1 @@
1
- var e=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),t=/^(?:v-|:|@)/,n=/^(?::|v-bind:)/,r=/^v-(?!scope|on:)/,o=["id","data-key","data-id"],i=e=>{for(const t of o){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},s=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},d=e=>e.__ctx||[...e.children||[]].map(d).find(Boolean),a=(e,t)=>(t||d(e))?.dispose?.(e),l=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),c=(e,o)=>{const i=(e=>{const t=/* @__PURE__ */new Set;e.matches("details,dialog")&&t.add("open");for(const{name:o}of e.attributes)n.test(o)?t.add(o.replace(n,"").split(".")[0]):"v-model"===o?(t.add("value"),t.add("checked")):"v-bind"===o?t.add("*"):r.test(o)&&t.add("style");return t})(o);for(const{name:n,value:r}of[...o.attributes])t.test(n)||i.has(n)||e.getAttribute(n)!==r&&e.setAttribute(n,r);for(const{name:t}of[...e.attributes])i.has("*")||i.has(t)||o.hasAttribute(t)||e.removeAttribute(t)},u=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return f(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const o=e,i=t;if(o.tagName!==i.tagName)return f(e,t,n,r);r.skip?.(o,i)||o.hasAttribute("data-morph-skip")||(c(o,i),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||l(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(l(t))return!0;return!1})(i)||p(o,i,o.__ctx||n,r))},f=(t,n,r,o)=>{if(e(t,o))return;const i=n.cloneNode(!0);!1!==o.beforeNodeAdded?.(i)&&(a(t,r),t.parentNode.replaceChild(i,t),o.afterNodeRemoved?.(t),m(i,r))},m=(e,t)=>{const n=t||s(e.parentNode);n?.walk?.(e,n)},p=(t,n,r,o)=>{const s=o.key||i,d=/* @__PURE__ */new Map;for(let e=t.firstChild;e;e=e.nextSibling)if(1===e.nodeType){const t=s(e);if(null==t)continue;d.set(t,e)}const l=e=>e&&1===e.nodeType?s(e):null;let c=t.firstChild,f=n.firstChild;const p=e=>{const n=e.cloneNode(!0);!1!==o.beforeNodeAdded?.(n)&&(t.insertBefore(n,c),m(n,r))};for(;f;){const e=f.nextSibling,n=l(f);if(null!=n){const e=d.get(n);e?(e===c?c=c.nextSibling:t.insertBefore(e,c),d.delete(n),u(e,f,r,o)):p(f)}else if(c&&null==l(c)){const e=c.nextSibling;u(c,f,r,o),c=e}else p(f);f=e}for(;c;){const n=c.nextSibling;e(c,o)||(a(c,r),t.removeChild(c),o.afterNodeRemoved?.(c)),c=n}},h=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const o=n.content;r=1===o.childElementCount?o.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(o),t})()}else r=t;if(r){const t=()=>{const t=b();u(e,r,s(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},b=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},v=e=>{e.scope.$morph=h};export{h as morph,v as morphPlugin};
1
+ var e=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),t=/^(?:v-|:|@)/,n=/^(?::|v-bind:)/,r=/^v-(?!scope|on:)/,o=["id","data-key","data-id"],i=e=>{for(const t of o){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},s=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},d=e=>e.__ctx||[...e.children||[]].map(d).find(Boolean),a=(e,t)=>(t||d(e))?.dispose?.(e),l=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),c=(e,o)=>{const i=(e=>{const t=/* @__PURE__ */new Set;e.matches("details,dialog")&&t.add("open");for(const{name:o}of e.attributes)n.test(o)?t.add(o.replace(n,"").split(".")[0]):"v-model"===o?(t.add("value"),t.add("checked")):"v-bind"===o?t.add("*"):r.test(o)&&t.add("style");return t})(o),s=Object(e.__bound);for(const{name:n,value:r}of[...o.attributes])t.test(n)||i.has(n)||n in s||e.getAttribute(n)!==r&&e.setAttribute(n,r);for(const{name:t}of[...e.attributes])i.has("*")||i.has(t)||o.hasAttribute(t)||e.removeAttribute(t)},u=(e,t,n,r)=>{if(e.nodeType!==t.nodeType)return f(e,t,n,r);if(3===e.nodeType||8===e.nodeType){const r=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(r,n))return;return void(e.data!==r&&(e.data=r))}if(1!==e.nodeType)return;const o=e,i=t;if(o.tagName!==i.tagName)return f(e,t,n,r);r.skip?.(o,i)||o.hasAttribute("data-morph-skip")||(c(o,i),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||l(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(l(t))return!0;return!1})(i)||p(o,i,o.__ctx||n,r))},f=(t,n,r,o)=>{if(e(t,o))return;const i=n.cloneNode(!0);!1!==o.beforeNodeAdded?.(i)&&(a(t,r),t.parentNode.replaceChild(i,t),o.afterNodeRemoved?.(t),m(i,r))},m=(e,t)=>{const n=t||s(e.parentNode);n?.walk?.(e,n)},p=(t,n,r,o)=>{const s=o.key||i,d=/* @__PURE__ */new Map;for(let e=t.firstChild;e;e=e.nextSibling)if(1===e.nodeType){const t=s(e);if(null==t)continue;d.set(t,e)}const l=e=>e&&1===e.nodeType?s(e):null;let c=t.firstChild,f=n.firstChild;const p=e=>{const n=e.cloneNode(!0);!1!==o.beforeNodeAdded?.(n)&&(t.insertBefore(n,c),m(n,r))};for(;f;){const e=f.nextSibling,n=l(f);if(null!=n){const e=d.get(n);e?(e===c?c=c.nextSibling:t.insertBefore(e,c),d.delete(n),u(e,f,r,o)):p(f)}else if(c&&null==l(c)){const e=c.nextSibling;u(c,f,r,o),c=e}else p(f);f=e}for(;c;){const n=c.nextSibling;e(c,o)||(a(c,r),t.removeChild(c),o.afterNodeRemoved?.(c)),c=n}},h=(e,t,n={})=>{let r;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const o=n.content;r=1===o.childElementCount?o.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(o),t})()}else r=t;if(r){const t=()=>{const t=b();u(e,r,s(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},b=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,r=null;try{n=t.selectionStart,r=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,r)}catch{}}},v=e=>{e.scope.$morph=h};export{h as morph,v as morphPlugin};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueMorph={})}(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var t=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),n=/^(?:v-|:|@)/,o=/^(?::|v-bind:)/,i=/^v-(?!scope|on:)/,r=["id","data-key","data-id"],s=e=>{for(const t of r){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},d=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},l=e=>e.__ctx||[...e.children||[]].map(l).find(Boolean),a=(e,t)=>(t||l(e))?.dispose?.(e),c=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),u=(e,t)=>{const r=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)o.test(n)?t.add(n.replace(o,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):i.test(n)&&t.add("style");return t})(t);for(const{name:o,value:i}of[...t.attributes])n.test(o)||r.has(o)||e.getAttribute(o)!==i&&e.setAttribute(o,i);for(const{name:n}of[...e.attributes])r.has("*")||r.has(n)||t.hasAttribute(n)||e.removeAttribute(n)},f=(e,t,n,o)=>{if(e.nodeType!==t.nodeType)return p(e,t,n,o);if(3===e.nodeType||8===e.nodeType){const o=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(o,n))return;return void(e.data!==o&&(e.data=o))}if(1!==e.nodeType)return;const i=e,r=t;if(i.tagName!==r.tagName)return p(e,t,n,o);o.skip?.(i,r)||i.hasAttribute("data-morph-skip")||(u(i,r),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||c(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(c(t))return!0;return!1})(r)||m(i,r,i.__ctx||n,o))},p=(e,n,o,i)=>{if(t(e,i))return;const r=n.cloneNode(!0);!1!==i.beforeNodeAdded?.(r)&&(a(e,o),e.parentNode.replaceChild(r,e),i.afterNodeRemoved?.(e),h(r,o))},h=(e,t)=>{const n=t||d(e.parentNode);n?.walk?.(e,n)},m=(e,n,o,i)=>{const r=i.key||s,d=new Map;for(let t=e.firstChild;t;t=t.nextSibling)if(1===t.nodeType){const e=r(t);if(null==e)continue;d.set(e,t)}const l=e=>e&&1===e.nodeType?r(e):null;let c=e.firstChild,u=n.firstChild;const p=t=>{const n=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(n)&&(e.insertBefore(n,c),h(n,o))};for(;u;){const t=u.nextSibling,n=l(u);if(null!=n){const t=d.get(n);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),d.delete(n),f(t,u,o,i)):p(u)}else if(c&&null==l(c)){const e=c.nextSibling;f(c,u,o,i),c=e}else p(u);u=t}for(;c;){const n=c.nextSibling;t(c,i)||(a(c,o),e.removeChild(c),i.afterNodeRemoved?.(c)),c=n}},b=(e,t,n={})=>{let o;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const i=n.content;o=1===i.childElementCount?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(i),t})()}else o=t;if(o){const t=()=>{const t=v();f(e,o,d(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},v=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,o=null;try{n=t.selectionStart,o=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,o)}catch{}}};e.morph=b,e.morphPlugin=e=>{e.scope.$morph=b}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueMorph={})}(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var t=(e,t)=>1===e.nodeType&&(e.hasAttribute("data-morph-preserve")||!!t.preserve?.(e)),n=/^(?:v-|:|@)/,o=/^(?::|v-bind:)/,i=/^v-(?!scope|on:)/,r=["id","data-key","data-id"],s=e=>{for(const t of r){const n=e.getAttribute(t);if(null!=n)return t+"="+n}return null},d=e=>{for(let t=e;t;t=t.parentElement)if(t.__ctx)return t.__ctx},l=e=>e.__ctx||[...e.children||[]].map(l).find(Boolean),a=(e,t)=>(t||l(e))?.dispose?.(e),c=e=>e.hasAttribute("v-for")||e.hasAttribute("v-if")||e.hasAttribute("v-else")||e.hasAttribute("v-else-if"),u=(e,t)=>{const r=(e=>{const t=new Set;e.matches("details,dialog")&&t.add("open");for(const{name:n}of e.attributes)o.test(n)?t.add(n.replace(o,"").split(".")[0]):"v-model"===n?(t.add("value"),t.add("checked")):"v-bind"===n?t.add("*"):i.test(n)&&t.add("style");return t})(t),s=Object(e.__bound);for(const{name:o,value:i}of[...t.attributes])n.test(o)||r.has(o)||o in s||e.getAttribute(o)!==i&&e.setAttribute(o,i);for(const{name:n}of[...e.attributes])r.has("*")||r.has(n)||t.hasAttribute(n)||e.removeAttribute(n)},f=(e,t,n,o)=>{if(e.nodeType!==t.nodeType)return p(e,t,n,o);if(3===e.nodeType||8===e.nodeType){const o=t.data;if(((e,t)=>e.includes(t?t.delimiters[0]:"{{"))(o,n))return;return void(e.data!==o&&(e.data=o))}if(1!==e.nodeType)return;const i=e,r=t;if(i.tagName!==r.tagName)return p(e,t,n,o);o.skip?.(i,r)||i.hasAttribute("data-morph-skip")||(u(i,r),(e=>{if(e.hasAttribute("v-text")||e.hasAttribute("v-html")||e.hasAttribute("v-pre")||e.hasAttribute("v-once")||c(e))return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(c(t))return!0;return!1})(r)||m(i,r,i.__ctx||n,o))},p=(e,n,o,i)=>{if(t(e,i))return;const r=n.cloneNode(!0);!1!==i.beforeNodeAdded?.(r)&&(a(e,o),e.parentNode.replaceChild(r,e),i.afterNodeRemoved?.(e),h(r,o))},h=(e,t)=>{const n=t||d(e.parentNode);n?.walk?.(e,n)},m=(e,n,o,i)=>{const r=i.key||s,d=new Map;for(let t=e.firstChild;t;t=t.nextSibling)if(1===t.nodeType){const e=r(t);if(null==e)continue;d.set(e,t)}const l=e=>e&&1===e.nodeType?r(e):null;let c=e.firstChild,u=n.firstChild;const p=t=>{const n=t.cloneNode(!0);!1!==i.beforeNodeAdded?.(n)&&(e.insertBefore(n,c),h(n,o))};for(;u;){const t=u.nextSibling,n=l(u);if(null!=n){const t=d.get(n);t?(t===c?c=c.nextSibling:e.insertBefore(t,c),d.delete(n),f(t,u,o,i)):p(u)}else if(c&&null==l(c)){const e=c.nextSibling;f(c,u,o,i),c=e}else p(u);u=t}for(;c;){const n=c.nextSibling;t(c,i)||(a(c,o),e.removeChild(c),i.afterNodeRemoved?.(c)),c=n}},b=(e,t,n={})=>{let o;if("string"==typeof t){const n=document.createElement("template");n.innerHTML=t.trim();const i=n.content;o=1===i.childElementCount?i.firstElementChild:(()=>{const t=e.cloneNode(!1);return t.appendChild(i),t})()}else o=t;if(o){const t=()=>{const t=v();f(e,o,d(e),n),t()};n.transition&&document.startViewTransition?document.startViewTransition(t):t()}return e},v=()=>{const e=document.activeElement;if(!e||e===document.body)return()=>{};const t=e;let n=null,o=null;try{n=t.selectionStart,o=t.selectionEnd}catch{}return()=>{if(e!==document.activeElement&&e.isConnected&&(e.focus(),null!==n))try{t.setSelectionRange(n,o)}catch{}}};e.morph=b,e.morphPlugin=e=>{e.scope.$morph=b}});
@@ -8,7 +8,7 @@ export declare class Block {
8
8
  start?: Text;
9
9
  end?: Text;
10
10
  owned: boolean;
11
- get el(): Element | Text;
11
+ get el(): any;
12
12
  constructor(template: Element, parentCtx: Context, isRoot?: boolean);
13
13
  insert(parent: Element, anchor?: Node | null): void;
14
14
  remove(): void;
@@ -8,7 +8,7 @@ export declare class Block {
8
8
  start?: Text;
9
9
  end?: Text;
10
10
  owned: boolean;
11
- get el(): Element | Text;
11
+ get el(): any;
12
12
  constructor(template: Element, parentCtx: Context, isRoot?: boolean);
13
13
  insert(parent: Element, anchor?: Node | null): void;
14
14
  remove(): void;
@@ -1,4 +1,5 @@
1
1
  import { Directive } from './index.mjs';
2
2
  export declare const bind: Directive<Element & {
3
3
  _class?: string | null;
4
+ __bound?: any;
4
5
  }>;
@@ -1,4 +1,5 @@
1
1
  import { Directive } from '.';
2
2
  export declare const bind: Directive<Element & {
3
3
  _class?: string | null;
4
+ __bound?: any;
4
5
  }>;
@@ -7,7 +7,7 @@ export type ErrorPhase =
7
7
  'expression'
8
8
  /** inside a v-on handler, after the event fired */
9
9
  | 'handler'
10
- /** a directive's own setup threw */
10
+ /** a directive's own setup threw, or a `v-teleport` or `$template` selector does not parse */
11
11
  | 'directive'
12
12
  /** the expression could not be compiled into a function at all */
13
13
  | 'compile'
@@ -7,7 +7,7 @@ export type ErrorPhase =
7
7
  'expression'
8
8
  /** inside a v-on handler, after the event fired */
9
9
  | 'handler'
10
- /** a directive's own setup threw */
10
+ /** a directive's own setup threw, or a `v-teleport` or `$template` selector does not parse */
11
11
  | 'directive'
12
12
  /** the expression could not be compiled into a function at all */
13
13
  | 'compile'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aevantec/litevue",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },