PWA
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m31s

This commit is contained in:
eewing
2026-02-18 11:45:07 -06:00
parent 6167c760a1
commit f6d0c065a4
11032 changed files with 875000 additions and 134771 deletions
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as vt,i as f,s as r,o as n,q as l,t as o,j as e,y as u,v as i,h as $t,g as v,m as ht,A as K,k as W,l as F}from"./BH97ETpZ.js";import{c as d}from"./Cf_fsnlT.js";import{B as c}from"./BkOB8zes.js";import{D as pt,a as _t,b as xt,c as wt,I as gt,d as Pt}from"./Cr7vHN1I.js";import{B as kt}from"./DfWA6mBJ.js";import{g as B}from"./mylYChEY.js";var bt=F("<!> <!>",1),Dt=F("<!> <!>",1),St=F('<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-6 sm:p-8"><h1 class="w-full max-w-xs text-center text-2xl font-semibold">Stackq</h1> <div class="flex w-full max-w-xs flex-col gap-3"><!> <a href="/transactions" class="block"><!></a> <a href="/receipts/new" class="block"><!></a> <!></div> <div class="w-full max-w-xs border-t pt-4"></div> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block"><!></a> <a href="/transactions" class="block"><!></a> <a href="/receipts" class="block"><!></a> <a href="/accounts" class="block"><!></a> <a href="/logout" class="block"><!></a></div></main> <!> <!>',1);function Ct(z,$){vt($,!0);let m=K(!1),h=K(!1);const E=W(()=>{var t;return((t=$.data)==null?void 0:t.items)??[]}),G=W(()=>{var t;return((t=$.data)==null?void 0:t.itemsForParent)??[]});function J(){u(m,!1),B("/items")}function M(t){const s=t.trim(),a=v(E).find(C=>(C.SKU??"").trim()===s);a?B("/items/"+a.id):B("/items?q="+encodeURIComponent(s))}var N=St(),p=f(N),_=r(n(p),2),R=n(_);c(R,{class:"h-16 min-h-16 w-full",onclick:()=>u(h,!0),children:(t,s)=>{l();var a=o("Scan");e(t,a)},$$slots:{default:!0}});var x=r(R,2),Q=n(x);c(Q,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("New Transaction");e(t,a)},$$slots:{default:!0}}),i(x);var w=r(x,2),V=n(w);c(V,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("New receipt");e(t,a)},$$slots:{default:!0}}),i(w);var X=r(w,2);c(X,{class:"h-16 min-h-16 w-full",variant:"outline",onclick:()=>u(m,!0),children:(t,s)=>{l();var a=o("New Item");e(t,a)},$$slots:{default:!0}}),i(_);var y=r(_,4),g=n(y),Y=n(g);c(Y,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Items");e(t,a)},$$slots:{default:!0}}),i(g);var P=r(g,2),Z=n(P);c(Z,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Transactions");e(t,a)},$$slots:{default:!0}}),i(P);var k=r(P,2),tt=n(k);c(tt,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Receipts");e(t,a)},$$slots:{default:!0}}),i(k);var b=r(k,2),at=n(b);c(at,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Accounts");e(t,a)},$$slots:{default:!0}}),i(b);var A=r(b,2),et=n(A);c(et,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var a=o("Log out");e(t,a)},$$slots:{default:!0}}),i(A),i(y),i(p);var j=r(p,2);d(j,()=>Pt,(t,s)=>{s(t,{get open(){return v(m)},set open(a){u(m,a,!0)},children:(a,C)=>{var L=$t(),rt=f(L);d(rt,()=>pt,(lt,ot)=>{ot(lt,{class:"max-h-[90dvh] w-[calc(100vw-2rem)] max-w-[500px] overflow-y-auto rounded-lg sm:w-full",children:(nt,It)=>{var O=Dt(),T=f(O);d(T,()=>_t,(ct,ut)=>{ut(ct,{children:(dt,qt)=>{var U=bt(),H=f(U);d(H,()=>xt,(D,S)=>{S(D,{children:(I,ft)=>{l();var q=o("New item");e(I,q)},$$slots:{default:!0}})});var mt=r(H,2);d(mt,()=>wt,(D,S)=>{S(D,{children:(I,ft)=>{l();var q=o("Add a new Stackq item.");e(I,q)},$$slots:{default:!0}})}),e(dt,U)},$$slots:{default:!0}})});var it=r(T,2);gt(it,{get itemsForParent(){return v(G)},action:"/items?/create",submitLabel:"Create",onSuccess:J}),e(nt,O)},$$slots:{default:!0}})}),e(a,L)},$$slots:{default:!0}})});var st=r(j,2);kt(st,{onResult:M,title:"Scan to look up item",get open(){return v(h)},set open(t){u(h,t,!0)}}),e(z,N),ht()}export{Ct as default};
@@ -1 +0,0 @@
import{i as c,j as s,l,L as i}from"./Dexp9pM5.js";import{B as _}from"./CRDN6Mh7.js";function f(n,o,r){c&&s();var a=new _(n);l(()=>{var e=o()??null;a.ensure(e,e&&(t=>r(t,e)))},i)}const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{u as _,f as c};
@@ -1 +0,0 @@
import"./Bzak7iHL.js";import{t as j,a as b,s as f,c as g}from"./BKSreT2u.js";import{A,c as G,f as P,a as d,G as T,h,r as m,b as k,T as x}from"./Dexp9pM5.js";import{i as q}from"./CRDN6Mh7.js";import{p as r,b as p,r as C}from"./jOLfEXYH.js";const y=j({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var D=k("<a><!></a>"),E=k("<button><!></button>");function L(_,e){A(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),c=r(e,"href",3,void 0),z=r(e,"type",3,"button"),v=C(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=G(),w=P(u);{var B=i=>{var a=D();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:c(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...v}),[()=>g(y({variant:o(),size:l()}),e.class)]);var n=h(a);f(n,()=>e.children??x),m(a),p(a,t=>s(t),()=>s()),d(i,a)},V=i=>{var a=E();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...v}),[()=>g(y({variant:o(),size:l()}),e.class)]);var n=h(a);f(n,()=>e.children??x),m(a),p(a,t=>s(t),()=>s()),d(i,a)};q(w,i=>{c()?i(B):i(V,!1)})}d(_,u),T()}export{L as B};
@@ -1 +0,0 @@
import{i as a,j as d,J as s,K as E,l as v,L as y,M as h,N,O as x,P as T,Q as w,o as _,s as r,R as A,S as C}from"./Dexp9pM5.js";import{i as M}from"./agKGoZF1.js";import{B as S}from"./CRDN6Mh7.js";function L(m,u,c,i,b,P){let p=a;a&&d();var e=null;a&&s.nodeType===E&&(e=s,d());var l=a?s:m,f=new S(l,!1);v(()=>{const t=u()||null;var g=c||t==="svg"?N:void 0;if(t===null){f.ensure(null,null);return}return f.ensure(t,o=>{if(t){if(e=a?e:h(t,g),x(e,e),i){a&&M(t)&&e.append(document.createComment(""));var n=a?T(e):e.appendChild(w());a&&(n===null?_(!1):r(n)),i(e,n)}A.nodes.end=e,o.before(e)}a&&r(o)}),()=>{}},y),C(()=>{}),p&&(_(!0),r(l))}export{L as e};
@@ -0,0 +1 @@
import{aD as S,aE as b,aF as E,aG as T,a4 as m,Q as L,aH as A}from"./BH97ETpZ.js";function B(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const V=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function R(t){return V.includes(t)}const x={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function j(t){return t=t.toLowerCase(),x[t]??t}const I=["touchstart","touchmove"];function q(t){return I.includes(t)}const N=["textarea","script","style","title"];function C(t){return N.includes(t)}const i=Symbol("events"),P=new Set,D=new Set;function M(t,e,r,u={}){function o(a){if(u.capture||O.call(e,a),!a.cancelBubble)return A(()=>r==null?void 0:r.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,o,u)}):e.addEventListener(t,o,u),o}function F(t,e,r,u={}){var o=M(e,t,r,u);return()=>{t.removeEventListener(e,o,u)}}function G(t,e,r){(e[i]??(e[i]={}))[t]=r}function z(t){for(var e=0;e<t.length;e++)P.add(t[e]);for(var r of D)r(t)}let w=null;function O(t){var v,g;var e=this,r=e.ownerDocument,u=t.type,o=((v=t.composedPath)==null?void 0:v.call(t))||[],a=o[0]||t.target;w=t;var f=0,d=w===t&&t[i];if(d){var s=o.indexOf(d);if(s!==-1&&(e===document||e===window)){t[i]=e;return}var p=o.indexOf(e);if(p===-1)return;s<=p&&(f=s)}if(a=o[f]||t.target,a!==e){S(t,"currentTarget",{configurable:!0,get(){return a||r}});var y=T,k=m;b(null),E(null);try{for(var c,_=[];a!==null;){var l=a.assignedSlot||a.parentNode||a.host||null;try{var h=(g=a[i])==null?void 0:g[u];h!=null&&(!a.disabled||t.target===a)&&h.call(a,t)}catch(n){c?_.push(n):c=n}if(t.cancelBubble||l===e||l===null)break;a=l}if(c){for(let n of _)queueMicrotask(()=>{throw n});throw c}}finally{t[i]=e,delete t.currentTarget,b(y),E(k)}}}export{P as a,q as b,B as c,G as d,z as e,M as f,R as g,O as h,C as i,j as n,F as o,D as r};
@@ -1 +0,0 @@
import"./Bzak7iHL.js";import{A as C,h as i,T,r as n,a as o,G as L,b as h,c as U,f as I,D as $,E as y,C as p,g as V,u as W,az as X}from"./Dexp9pM5.js";import{s as Y}from"./DZmckTjd.js";import{i as Z}from"./CRDN6Mh7.js";import{c as b}from"./25AjRaeI.js";import{L as J,I as K,a as ee,e as re}from"./61AlszRR.js";import{C as ae,a as te}from"./CsnJU1X_.js";import{a as j,c as k,s as z}from"./BKSreT2u.js";import{p as A,b as D,r as G}from"./jOLfEXYH.js";import{B as se}from"./B12dZE2q.js";var oe=h("<p><!></p>");function de(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=oe();j(r,s=>({"data-slot":"card-description",class:s,...u}),[()=>k("text-muted-foreground text-sm",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var le=h("<div><!></div>");function ie(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=le();j(r,s=>({"data-slot":"card-header",class:s,...u}),[()=>k("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var ne=h("<div><!></div>");function ce(c,e){C(e,!0);let d=A(e,"ref",15,null),u=G(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ne();j(r,s=>({"data-slot":"card-title",class:s,...u}),[()=>k("leading-none font-semibold",e.class)]);var v=i(r);z(v,()=>e.children??T),n(r),D(r,s=>d(s),()=>d()),o(c,r),L()}var ue=h("<!> <!>",1),ve=h('<p class="text-destructive text-sm"> </p>'),fe=h('<form method="POST" action="?/login" class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><div class="flex items-center justify-between"><!> <a href="/forgot-password" class="text-muted-foreground text-sm underline hover:text-foreground">Forgot your password?</a></div> <!></div> <!> <!></form>'),me=h("<!> <!>",1);function Le(c,e){C(e,!0);var d=U(),u=I(d);b(u,()=>te,(r,v)=>{v(r,{class:"w-full max-w-sm",children:(s,_e)=>{var O=me(),S=I(O);b(S,()=>ie,(E,q)=>{q(E,{children:(B,N)=>{var f=ue(),g=I(f);b(g,()=>ce,(x,m)=>{m(x,{children:(_,F)=>{$();var w=y("Login");o(_,w)},$$slots:{default:!0}})});var P=p(g,2);b(P,()=>de,(x,m)=>{m(x,{children:(_,F)=>{$();var w=y("Enter your email and password to sign in.");o(_,w)},$$slots:{default:!0}})}),o(B,f)},$$slots:{default:!0}})});var M=p(S,2);b(M,()=>ae,(E,q)=>{q(E,{children:(B,N)=>{var f=fe(),g=i(f),P=i(g);J(P,{for:"email",children:(a,t)=>{$();var l=y("Email");o(a,l)},$$slots:{default:!0}});var x=p(P,2);{let a=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});K(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(a)},required:!0})}n(g);var m=p(g,2),_=i(m),F=i(_);J(F,{for:"password",children:(a,t)=>{$();var l=y("Password");o(a,l)},$$slots:{default:!0}}),$(2),n(_);var w=p(_,2);K(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),n(m);var H=p(m,2);{var Q=a=>{var t=ve(),l=i(t,!0);n(t),X(()=>Y(l,e.data.error)),o(a,t)};Z(H,a=>{var t;(t=e.data)!=null&&t.error&&a(Q)})}var R=p(H,2);se(R,{type:"submit",class:"w-full",children:(a,t)=>{$();var l=y("Login");o(a,l)},$$slots:{default:!0}}),n(f),ee(f,(a,t)=>{var l;return(l=re)==null?void 0:l(a,t)},()=>()=>async({update:a})=>{await a()}),o(B,f)},$$slots:{default:!0}})}),o(s,O)},$$slots:{default:!0}})}),o(c,d),L()}export{Le as default};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{D as n,L as S,M as g,C as w,N as p,O as x,I as A,P as B,G as c,Q as L,R as v,S as R,T as G,U as H,V as M,W as T,X as O,Y as E,Z as P}from"./BH97ETpZ.js";import{B as U}from"./UvStrNyM.js";const b=0,_=1;function q(m,k,y,r,l){n&&S();var h=g(),t=O,i=h?T(t):E(t,!1,!1),o=h?T(t):E(t,!1,!1),s=new U(m);w(()=>{var u=k(),I=!1;let N=n&&p(u)===(m.data===x);if(N&&(A(B()),c(!1)),p(u)){var D=P(),d=!1;const a=e=>{if(!I){d=!0,D(!1),R.ensure(),n&&c(!1);try{e()}finally{G(),H||M()}}};u.then(e=>{a(()=>{v(i,e),s.ensure(_,r&&(f=>r(f,i)))})},e=>{a(()=>{if(v(o,e),s.ensure(_,l&&(f=>l(f,o))),!l)throw o.v})}),n?s.ensure(b,y):L(()=>{d||a(()=>{s.ensure(b,y)})})}else v(i,u),s.ensure(_,r&&(a=>r(a,i)));return N&&c(!0),()=>{I=!0}})}export{q as a};
@@ -0,0 +1,2 @@
try{self["workbox:window:7.3.0"]&&_()}catch{}function b(n,r){return new Promise((function(t){var o=new MessageChannel;o.port1.onmessage=function(f){t(f.data)},n.postMessage(r,[o.port2])}))}function P(n,r){(r==null||r>n.length)&&(r=n.length);for(var t=0,o=Array(r);t<r;t++)o[t]=n[t];return o}function j(n,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,W(o.key),o)}}function S(n,r){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=(function(f,c){if(f){if(typeof f=="string")return P(f,c);var a={}.toString.call(f).slice(8,-1);return a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set"?Array.from(f):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?P(f,c):void 0}})(n))||r){t&&(n=t);var o=0;return function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(n,r){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},w(n,r)}function W(n){var r=(function(t,o){if(typeof t!="object"||!t)return t;var f=t[Symbol.toPrimitive];if(f!==void 0){var c=f.call(t,o);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)})(n,"string");return typeof r=="symbol"?r:r+""}try{self["workbox:core:7.3.0"]&&_()}catch{}var m=function(){var n=this;this.promise=new Promise((function(r,t){n.resolve=r,n.reject=t}))};function y(n,r){var t=location.href;return new URL(n,t).href===new URL(r,t).href}var d=function(n,r){this.type=n,Object.assign(this,r)};function l(n,r,t){return t?r?r(n):n:(n&&n.then||(n=Promise.resolve(n)),r?n.then(r):n)}function k(){}var L={type:"SKIP_WAITING"};function E(n,r){return n&&n.then?n.then(k):Promise.resolve()}var O=(function(n){function r(c,a){var e,i;return a===void 0&&(a={}),(e=n.call(this)||this).nn={},e.tn=0,e.rn=new m,e.en=new m,e.on=new m,e.un=0,e.an=new Set,e.cn=function(){var u=e.fn,s=u.installing;e.tn>0||!y(s.scriptURL,e.sn.toString())||performance.now()>e.un+6e4?(e.vn=s,u.removeEventListener("updatefound",e.cn)):(e.hn=s,e.an.add(s),e.rn.resolve(s)),++e.tn,s.addEventListener("statechange",e.ln)},e.ln=function(u){var s=e.fn,v=u.target,h=v.state,p=v===e.vn,g={sw:v,isExternal:p,originalEvent:u};!p&&e.mn&&(g.isUpdate=!0),e.dispatchEvent(new d(h,g)),h==="installed"?e.wn=self.setTimeout((function(){h==="installed"&&s.waiting===v&&e.dispatchEvent(new d("waiting",g))}),200):h==="activating"&&(clearTimeout(e.wn),p||e.en.resolve(v))},e.yn=function(u){var s=e.hn,v=s!==navigator.serviceWorker.controller;e.dispatchEvent(new d("controlling",{isExternal:v,originalEvent:u,sw:s,isUpdate:e.mn})),v||e.on.resolve(s)},e.gn=(i=function(u){var s=u.data,v=u.ports,h=u.source;return l(e.getSW(),(function(){e.an.has(h)&&e.dispatchEvent(new d("message",{data:s,originalEvent:u,ports:v,sw:h}))}))},function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];try{return Promise.resolve(i.apply(this,u))}catch(v){return Promise.reject(v)}}),e.sn=c,e.nn=a,navigator.serviceWorker.addEventListener("message",e.gn),e}var t,o;o=n,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,w(t,o);var f=r.prototype;return f.register=function(c){var a=(c===void 0?{}:c).immediate,e=a!==void 0&&a;try{var i=this;return l((function(u,s){var v=u();return v&&v.then?v.then(s):s(v)})((function(){if(!e&&document.readyState!=="complete")return E(new Promise((function(u){return window.addEventListener("load",u)})))}),(function(){return i.mn=!!navigator.serviceWorker.controller,i.dn=i.pn(),l(i.bn(),(function(u){i.fn=u,i.dn&&(i.hn=i.dn,i.en.resolve(i.dn),i.on.resolve(i.dn),i.dn.addEventListener("statechange",i.ln,{once:!0}));var s=i.fn.waiting;return s&&y(s.scriptURL,i.sn.toString())&&(i.hn=s,Promise.resolve().then((function(){i.dispatchEvent(new d("waiting",{sw:s,wasWaitingBeforeRegister:!0}))})).then((function(){}))),i.hn&&(i.rn.resolve(i.hn),i.an.add(i.hn)),i.fn.addEventListener("updatefound",i.cn),navigator.serviceWorker.addEventListener("controllerchange",i.yn),i.fn}))})))}catch(u){return Promise.reject(u)}},f.update=function(){try{return this.fn?l(E(this.fn.update())):l()}catch(c){return Promise.reject(c)}},f.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(c){try{return l(this.getSW(),(function(a){return b(a,c)}))}catch(a){return Promise.reject(a)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&b(this.fn.waiting,L)},f.pn=function(){var c=navigator.serviceWorker.controller;return c&&y(c.scriptURL,this.sn.toString())?c:void 0},f.bn=function(){try{var c=this;return l((function(a,e){try{var i=a()}catch(u){return e(u)}return i&&i.then?i.then(void 0,e):i})((function(){return l(navigator.serviceWorker.register(c.sn,c.nn),(function(a){return c.un=performance.now(),a}))}),(function(a){throw a})))}catch(a){return Promise.reject(a)}},(function(c,a,e){return a&&j(c.prototype,a),Object.defineProperty(c,"prototype",{writable:!1}),c})(r,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])})((function(){function n(){this.Pn=new Map}var r=n.prototype;return r.addEventListener=function(t,o){this.jn(t).add(o)},r.removeEventListener=function(t,o){this.jn(t).delete(o)},r.dispatchEvent=function(t){t.target=this;for(var o,f=S(this.jn(t.type));!(o=f()).done;)(0,o.value)(t)},r.jn=function(t){return this.Pn.has(t)||this.Pn.set(t,new Set),this.Pn.get(t)},n})());export{O as Workbox,d as WorkboxEvent,b as messageSW};
@@ -0,0 +1 @@
import{D as k,I as z,K as fe,B as L,L as ie,C as le,g as Z,a6 as ue,O as se,P as $,G as q,J as F,E as oe,a7 as ve,R as y,a8 as te,a9 as Y,aa as de,ab as ce,ac as pe,ad as _e,ae as G,af as he,W as j,ag as ge,ah as Ee,Y as me,ai as T,aj as re,ak as ne,al as ae,am as B,Q as Te,an as Ce,ao as Ae,ap as Ie,aq as we,F as Ne}from"./BH97ETpZ.js";function ke(e,i){return i}function Se(e,i,l){for(var t=[],g=i.length,s,u=i.length,c=0;c<g;c++){let E=i[c];ae(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;V(G(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var f=t.length===0&&l!==null;if(f){var v=l,n=v.parentNode;Ie(n),n.append(v),e.items.clear()}V(i,!f)}else s={pending:new Set(i),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function V(e,i=!0){for(var l=0;l<e.length;l++)we(e[l],i)}var ee;function De(e,i,l,t,g,s=null){var u=e,c=new Map,f=(i&re)!==0;if(f){var v=e;u=k?z(fe(v)):v.appendChild(L())}k&&ie();var n=null,E=pe(()=>{var a=l();return _e(a)?a:a==null?[]:G(a)}),o,d=!0;function A(){r.fallback=n,xe(r,o,u,i,t),n!==null&&(o.length===0?(n.f&T)===0?ne(n):(n.f^=T,H(n,null,u)):ae(n,()=>{n=null}))}var N=le(()=>{o=Z(E);var a=o.length;let S=!1;if(k){var x=ue(u)===se;x!==(a===0)&&(u=$(),z(u),q(!1),S=!0)}for(var _=new Set,I=te,R=ce(),p=0;p<a;p+=1){k&&F.nodeType===oe&&F.data===ve&&(u=F,S=!0,q(!1));var w=o[p],b=t(w,p),h=d?null:c.get(b);h?(h.v&&y(h.v,w),h.i&&y(h.i,p),R&&I.unskip_effect(h.e)):(h=Re(c,d?u:ee??(ee=L()),w,b,p,g,i,l),d||(h.e.f|=T),c.set(b,h)),_.add(b)}if(a===0&&s&&!n&&(d?n=Y(()=>s(u)):(n=Y(()=>s(ee??(ee=L()))),n.f|=T)),a>_.size&&de(),k&&a>0&&z($()),!d)if(R){for(const[M,O]of c)_.has(M)||I.skip_effect(O.e);I.oncommit(A),I.ondiscard(()=>{})}else A();S&&q(!0),Z(E)}),r={effect:N,items:c,outrogroups:null,fallback:n};d=!1,k&&(u=F)}function D(e){for(;e!==null&&(e.f&Ce)===0;)e=e.next;return e}function xe(e,i,l,t,g){var h,M,O,J,K,P,Q,U,W;var s=(t&Ae)!==0,u=i.length,c=e.items,f=D(e.effect.first),v,n=null,E,o=[],d=[],A,N,r,a;if(s)for(a=0;a<u;a+=1)A=i[a],N=g(A,a),r=c.get(N).e,(r.f&T)===0&&((M=(h=r.nodes)==null?void 0:h.a)==null||M.measure(),(E??(E=new Set)).add(r));for(a=0;a<u;a+=1){if(A=i[a],N=g(A,a),r=c.get(N).e,e.outrogroups!==null)for(const m of e.outrogroups)m.pending.delete(r),m.done.delete(r);if((r.f&T)!==0)if(r.f^=T,r===f)H(r,null,l);else{var S=n?n.next:f;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),C(e,n,r),C(e,r,S),H(r,S,l),n=r,o=[],d=[],f=D(n.next);continue}if((r.f&B)!==0&&(ne(r),s&&((J=(O=r.nodes)==null?void 0:O.a)==null||J.unfix(),(E??(E=new Set)).delete(r))),r!==f){if(v!==void 0&&v.has(r)){if(o.length<d.length){var x=d[0],_;n=x.prev;var I=o[0],R=o[o.length-1];for(_=0;_<o.length;_+=1)H(o[_],x,l);for(_=0;_<d.length;_+=1)v.delete(d[_]);C(e,I.prev,R.next),C(e,n,I),C(e,R,x),f=x,n=R,a-=1,o=[],d=[]}else v.delete(r),H(r,f,l),C(e,r.prev,r.next),C(e,r,n===null?e.effect.first:n.next),C(e,n,r),n=r;continue}for(o=[],d=[];f!==null&&f!==r;)(v??(v=new Set)).add(f),d.push(f),f=D(f.next);if(f===null)continue}(r.f&T)===0&&o.push(r),n=r,f=D(r.next)}if(e.outrogroups!==null){for(const m of e.outrogroups)m.pending.size===0&&(V(G(m.done)),(K=e.outrogroups)==null||K.delete(m));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||v!==void 0){var p=[];if(v!==void 0)for(r of v)(r.f&B)===0&&p.push(r);for(;f!==null;)(f.f&B)===0&&f!==e.fallback&&p.push(f),f=D(f.next);var w=p.length;if(w>0){var b=(t&re)!==0&&u===0?l:null;if(s){for(a=0;a<w;a+=1)(Q=(P=p[a].nodes)==null?void 0:P.a)==null||Q.measure();for(a=0;a<w;a+=1)(W=(U=p[a].nodes)==null?void 0:U.a)==null||W.fix()}Se(e,p,b)}}s&&Te(()=>{var m,X;if(E!==void 0)for(r of E)(X=(m=r.nodes)==null?void 0:m.a)==null||X.apply()})}function Re(e,i,l,t,g,s,u,c){var f=(u&ge)!==0?(u&Ee)===0?me(l,!1,!1):j(l):null,v=(u&he)!==0?j(g):null;return{v:f,i:v,e:Y(()=>(s(i,f??l,v??g,c),()=>{e.delete(t)}))}}function H(e,i,l){if(e.nodes)for(var t=e.nodes.start,g=e.nodes.end,s=i&&(i.f&T)===0?i.nodes.start:l;t!==null;){var u=Ne(t);if(s.before(t),t===g)return;t=u}}function C(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{De as e,ke as i};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{x as a}from"./BH97ETpZ.js";a();
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{t as V,a as b,c as f,b as g}from"./Dw-PWoyz.js";import{p as P,h as q,i as A,j as d,m as C,o as h,ar as m,v as x,l as k}from"./BH97ETpZ.js";import{i as D}from"./UvStrNyM.js";import{p as r,b as p,r as E}from"./Bysmuwvg.js";const y=V({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var F=k("<a><!></a>"),G=k("<button><!></button>");function M(_,e){P(e,!0);let o=r(e,"variant",3,"default"),l=r(e,"size",3,"default"),s=r(e,"ref",15,null),v=r(e,"href",3,void 0),z=r(e,"type",3,"button"),c=E(e,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var u=q(),w=A(u);{var j=i=>{var a=F();b(a,t=>({"data-slot":"button",class:t,href:e.disabled?void 0:v(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...c}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)},B=i=>{var a=G();b(a,t=>({"data-slot":"button",class:t,type:z(),disabled:e.disabled,...c}),[()=>f(y({variant:o(),size:l()}),e.class)]);var n=h(a);g(n,()=>e.children??m),x(a),p(a,t=>s(t),()=>s()),d(i,a)};D(w,i=>{v()?i(j):i(B,!1)})}d(_,u),C()}export{M as B};
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DRlIEfz1.js","./Bzak7iHL.js","./Dexp9pM5.js","./DZmckTjd.js","./agKGoZF1.js","./CRDN6Mh7.js","./iABcLwh6.js","./25AjRaeI.js","./jOLfEXYH.js","./BKSreT2u.js","./61AlszRR.js","./BapE3c1q.js","./B12dZE2q.js","./BC20z61P.js","./CsnJU1X_.js"])))=>i.map(i=>d[i]);
import{i as P,_ as A}from"./CRDN6Mh7.js";import"./Bzak7iHL.js";import{Q as D,l as O,_ as V,i as p,$ as B,a0 as h,o as y,s as x,J as F,P as L,A as E,c as v,f as u,T as M,a as n,G as C,a1 as N,a2 as j,g as _,u as k,b as q}from"./Dexp9pM5.js";import{a as z}from"./DcVg5zjO.js";import{c as G}from"./25AjRaeI.js";import{t as H,a as J,c as Q,s as R}from"./BKSreT2u.js";import{e as S}from"./BC20z61P.js";import{p as w,b as K,r as U}from"./jOLfEXYH.js";function W(o,a){let r=null,d=p;var t;if(p){r=F;for(var e=L(document.head);e!==null&&(e.nodeType!==B||e.data!==o);)e=h(e);if(e===null)y(!1);else{var i=h(e);e.remove(),x(i)}}p||(t=document.head.appendChild(D()));try{O(()=>a(t),V)}finally{d&&(y(!0),x(r))}}const X=H({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ne(o,a){E(a,!0);let r=w(a,"ref",15,null),d=w(a,"variant",3,"default"),t=U(a,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var e=v(),i=u(e);S(i,()=>a.href?"a":"span",!1,(c,l)=>{K(c,f=>r(f),()=>r()),J(c,f=>({"data-slot":"badge",href:a.href,class:f,...t}),[()=>Q(X({variant:d()}),a.class)]);var s=v(),m=u(s);R(m,()=>a.children??M),n(l,s)}),n(o,e),C()}var Y=q('<main class="container mx-auto flex flex-col gap-6 py-8"><p class="text-muted-foreground">Loading…</p></main>');function oe(o,a){E(a,!0);var r=v();W("rk8na7",e=>{N(()=>{j.title="Items Stackq"})});var d=u(r);{var t=e=>{var i=v(),c=u(i);z(c,()=>A(()=>import("./DRlIEfz1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),l=>{var s=Y();n(l,s)},(l,s)=>{var m=k(()=>{var{default:g}=_(s);return{ItemsCrud:g}}),f=k(()=>_(m).ItemsCrud),b=v(),I=u(b);G(I,()=>_(f),(g,T)=>{T(g,{get data(){return a.data}})}),n(l,b)}),n(e,i)};P(d,e=>{e(t)})}n(o,r),C()}export{ne as B,oe as _,W as h};
@@ -0,0 +1 @@
import{n as M,aI as Y,b as E,Q as B,aJ as h,a5 as K,aD as j,ar as R,Y as $,g as v,y as x,aK as S,aL as q,aM as Q,aN as z,a4 as C,aO as G,aP as J,at as V,aQ as Z,aR as F,f as H,ac as W,aS as X,aT as m,aU as T,aV as d}from"./BH97ETpZ.js";import{s as k,g as ee}from"./iYSIr-5j.js";function D(e,r){return e===r||(e==null?void 0:e[h])===r}function ue(e={},r,i,n){return M(()=>{var s,t;return Y(()=>{s=t,t=[],E(()=>{e!==i(...t)&&(r(e,...t),s&&D(i(...s),e)&&r(null,...s))})}),()=>{B(()=>{t&&D(i(...t),e)&&r(null,...t)})}}),e}let _=!1,g=Symbol();function fe(e,r,i){const n=i[r]??(i[r]={store:null,source:$(void 0),unsubscribe:R});if(n.store!==e&&!(g in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=R;else{var s=!0;n.unsubscribe=k(e,t=>{s?n.source.v=t:x(n.source,t)}),s=!1}return e&&g in i?ee(e):v(n.source)}function ae(){const e={};function r(){K(()=>{for(var i in e)e[i].unsubscribe();j(e,g,{enumerable:!1,value:!0})})}return[e,r]}function re(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const ne={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function le(e,r,i){return new Proxy({props:e,exclude:r},ne)}const ie={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let s=e.props[n];d(s)&&(s=s());const t=S(s,r);if(t&&t.set)return t.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const s=S(n,r);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,r){if(r===h||r===T)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function ce(...e){return new Proxy({props:e},ie)}function oe(e,r,i,n){var y;var s=!V||(i&Z)!==0,t=(i&J)!==0,A=(i&X)!==0,f=n,b=!0,O=()=>(b&&(b=!1,f=A?E(n):n),f),l;if(t){var L=h in e||T in e;l=((y=S(e,r))==null?void 0:y.set)??(L&&r in e?u=>e[r]=u:void 0)}var c,w=!1;t?[c,w]=re(()=>e[r]):c=e[r],c===void 0&&n!==void 0&&(c=O(),l&&(s&&q(),l(c)));var a;if(s?a=()=>{var u=e[r];return u===void 0?O():(b=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},s&&(i&Q)===0)return a;if(l){var N=e.$$legacy;return(function(u,p){return arguments.length>0?((!s||!p||N||w)&&l(p?a():u),u):a()})}var P=!1,o=((i&F)!==0?H:W)(()=>(P=!1,a()));t&&v(o);var U=C;return(function(u,p){if(arguments.length>0){const I=p?v(o):s&&t?z(u):u;return x(o,I),P=!0,f!==void 0&&(f=I),u}return m&&P||(U.f&G)!==0?o.v:v(o)})}export{fe as a,ue as b,ce as c,oe as p,le as r,ae as s};
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as d,j as c,m as n,l as i,o as f,ar as v,v as m}from"./BH97ETpZ.js";import{a as u,b as h,c as p}from"./Dw-PWoyz.js";import{p as b,b as x,r as g}from"./Bysmuwvg.js";var _=i("<div><!></div>");function k(t,a){d(a,!0);let s=b(a,"ref",15,null),l=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=_();u(r,e=>({"data-slot":"card",class:e,...l}),[()=>p("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var o=f(r);h(o,()=>a.children??v),m(r),x(r,e=>s(e),()=>s()),c(t,r),n()}var y=i("<div><!></div>");function q(t,a){d(a,!0);let s=b(a,"ref",15,null),l=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=y();u(r,e=>({"data-slot":"card-content",class:e,...l}),[()=>p("px-6",a.class)]);var o=f(r);h(o,()=>a.children??v),m(r),x(r,e=>s(e),()=>s()),c(t,r),n()}export{k as C,q as a};
@@ -0,0 +1 @@
import{D as a,L as _,J as s,_ as E,C as v,a0 as y,a1 as h,a2 as x,a3 as C,K as N,B as T,G as d,I as r,a4 as w,a5 as A}from"./BH97ETpZ.js";import{i as b}from"./BD8q7RHQ.js";import{B}from"./UvStrNyM.js";function L(m,u,c,i,M,S){let p=a;a&&_();var e=null;a&&s.nodeType===E&&(e=s,_());var l=a?s:m,f=new B(l,!1);v(()=>{const t=u()||null;var g=c||t==="svg"?x:void 0;if(t===null){f.ensure(null,null);return}return f.ensure(t,o=>{if(t){if(e=a?e:h(t,g),C(e,e),i){a&&b(t)&&e.append(document.createComment(""));var n=a?N(e):e.appendChild(T());a&&(n===null?d(!1):r(n)),i(e,n)}w.nodes.end=e,o.before(e)}a&&r(o)}),()=>{}},y),A(()=>{}),p&&(d(!0),r(l))}export{L as e};
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as i,o as c,ar as l,v as n,j as p,m,l as f}from"./BH97ETpZ.js";import{a as h,c as u,b as v}from"./Dw-PWoyz.js";import{p as b,b as _,r as g}from"./Bysmuwvg.js";var w=f("<div><!></div>");function P(e,a){i(a,!0);let t=b(a,"ref",15,null),o=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=w();h(r,s=>({"data-slot":"card-header",class:s,...o}),[()=>u("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a.class)]);var d=c(r);v(d,()=>a.children??l),n(r),_(r,s=>t(s),()=>t()),p(e,r),m()}export{P as C};
@@ -1 +0,0 @@
var H=Object.defineProperty;var y=r=>{throw TypeError(r)};var I=(r,e,t)=>e in r?H(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var P=(r,e,t)=>I(r,typeof e!="symbol"?e+"":e,t),L=(r,e,t)=>e.has(r)||y("Cannot "+t);var s=(r,e,t)=>(L(r,e,"read from private field"),t?t.call(r):e.get(r)),v=(r,e,t)=>e.has(r)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),C=(r,e,t,n)=>(L(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t);import{a3 as D,a4 as N,a5 as T,a6 as O,Q as F,a7 as j,i as R,J as $,a8 as q,a9 as U,l as Y,j as J,L as M,aa as Q,ab as W,H as z,n as G,s as K,o as x}from"./Dexp9pM5.js";var u,d,h,b,k,w,A;class V{constructor(e,t=!0){P(this,"anchor");v(this,u,new Map);v(this,d,new Map);v(this,h,new Map);v(this,b,new Set);v(this,k,!0);v(this,w,()=>{var e=D;if(s(this,u).has(e)){var t=s(this,u).get(e),n=s(this,d).get(t);if(n)N(n),s(this,b).delete(t);else{var f=s(this,h).get(t);f&&(s(this,d).set(t,f.effect),s(this,h).delete(t),f.fragment.lastChild.remove(),this.anchor.before(f.fragment),n=f.effect)}for(const[c,a]of s(this,u)){if(s(this,u).delete(c),c===e)break;const i=s(this,h).get(a);i&&(T(i.effect),s(this,h).delete(a))}for(const[c,a]of s(this,d)){if(c===t||s(this,b).has(c))continue;const i=()=>{if(Array.from(s(this,u).values()).includes(c)){var m=document.createDocumentFragment();q(a,m),m.append(F()),s(this,h).set(c,{effect:a,fragment:m})}else T(a);s(this,b).delete(c),s(this,d).delete(c)};s(this,k)||!n?(s(this,b).add(c),O(a,i,!1)):i()}}});v(this,A,e=>{s(this,u).delete(e);const t=Array.from(s(this,u).values());for(const[n,f]of s(this,h))t.includes(n)||(T(f.effect),s(this,h).delete(n))});this.anchor=e,C(this,k,t)}ensure(e,t){var n=D,f=U();if(t&&!s(this,d).has(e)&&!s(this,h).has(e))if(f){var c=document.createDocumentFragment(),a=F();c.append(a),s(this,h).set(e,{effect:j(()=>t(a)),fragment:c})}else s(this,d).set(e,j(()=>t(this.anchor)));if(s(this,u).set(n,e),f){for(const[i,o]of s(this,d))i===e?n.unskip_effect(o):n.skip_effect(o);for(const[i,o]of s(this,h))i===e?n.unskip_effect(o.effect):n.skip_effect(o.effect);n.oncommit(s(this,w)),n.ondiscard(s(this,A))}else R&&(this.anchor=$),s(this,w).call(this)}}u=new WeakMap,d=new WeakMap,h=new WeakMap,b=new WeakMap,k=new WeakMap,w=new WeakMap,A=new WeakMap;function se(r,e,t=!1){R&&J();var n=new V(r),f=t?M:0;function c(a,i){if(R){const l=Q(r);var o;if(l===W?o=0:l===z?o=!1:o=parseInt(l.substring(1)),a!==o){var m=G();K(m),n.anchor=m,x(!1),n.ensure(a,i),x(!0);return}}n.ensure(a,i)}Y(()=>{var a=!1;e((i,o=0)=>{a=!0,c(o,i)}),a||c(!1,null)},f)}const X="modulepreload",Z=function(r,e){return new URL(r,e).href},B={},re=function(e,t,n){let f=Promise.resolve();if(t&&t.length>0){let a=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),m=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));f=a(t.map(l=>{if(l=Z(l,n),l in B)return;B[l]=!0;const p=l.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(n)for(let E=i.length-1;E>=0;E--){const S=i[E];if(S.href===l&&(!p||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${g}`))return;const _=document.createElement("link");if(_.rel=p?"stylesheet":X,p||(_.as="script"),_.crossOrigin="",_.href=l,m&&_.setAttribute("nonce",m),document.head.appendChild(_),p)return new Promise((E,S)=>{_.addEventListener("load",E),_.addEventListener("error",()=>S(Error(`Unable to preload CSS for ${l}`)))})}))}function c(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return f.then(a=>{for(const i of a||[])i.status==="rejected"&&c(i.reason);return e().catch(c)})};export{V as B,re as _,se as i};
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MgOscCPv.js","./Bzak7iHL.js","./BH97ETpZ.js","./Qgf5A_kA.js","./BD8q7RHQ.js","./UvStrNyM.js","./BR6tTwie.js","./Cf_fsnlT.js","./CgtTdn_a.js","./CCY2d7sc.js","./mylYChEY.js","./CeetFYTo.js","./iYSIr-5j.js","./Dw-PWoyz.js","./Bysmuwvg.js","./BkOB8zes.js","./BzfwckE1.js","./Cr7vHN1I.js","./C3TONo7J.js","./D4nn9Y_6.js","./DfWA6mBJ.js"])))=>i.map(i=>d[i]);
import{_ as j}from"./D4nn9Y_6.js";import"./Bzak7iHL.js";import{p as k,h as i,i as n,ar as q,j as t,m as w,n as B,$ as E,g as f,k as _,l as F}from"./BH97ETpZ.js";import{a as L}from"./BHRsrugl.js";import{i as S}from"./UvStrNyM.js";import{c as U}from"./Cf_fsnlT.js";import{h as z}from"./CgtTdn_a.js";import{p as y,b as A,r as D,s as O,a as R}from"./Bysmuwvg.js";import{s as T}from"./mylYChEY.js";import{t as $,a as G,c as H,b as J}from"./Dw-PWoyz.js";import{e as K}from"./C3TONo7J.js";const M=()=>{const e=T;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},N={subscribe(e){return M().page.subscribe(e)}},Q=$({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function dr(e,r){k(r,!0);let o=y(r,"ref",15,null),m=y(r,"variant",3,"default"),g=D(r,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var d=i(),c=n(d);K(c,()=>r.href?"a":"span",!1,(u,l)=>{A(u,s=>o(s),()=>o()),G(u,s=>({"data-slot":"badge",href:r.href,class:s,...g}),[()=>H(Q({variant:m()}),r.class)]);var a=i(),v=n(a);J(v,()=>r.children??q),t(l,a)}),t(e,d),w()}var W=F('<main class="container mx-auto flex flex-col gap-6 px-4 py-8"><p class="text-muted-foreground">Loading…</p></main>');function cr(e,r){k(r,!0);const o=()=>R(N,"$page",m),[m,g]=O(),d=_(()=>o().url.searchParams.get("q")??"");var c=i();z("rk8na7",a=>{B(()=>{E.title="Items Stackq"})});var u=n(c);{var l=a=>{var v=i(),s=n(v);L(s,()=>j(()=>import("./MgOscCPv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),p=>{var b=W();t(p,b)},(p,b)=>{var I=_(()=>{var{default:h}=f(b);return{ItemsCrud:h}}),P=_(()=>f(I).ItemsCrud),x=i(),C=n(x);U(C,()=>f(P),(h,V)=>{V(h,{get data(){return r.data},get searchFromUrl(){return f(d)}})}),t(p,x)}),t(a,v)};S(u,a=>{a(l)})}t(e,c),w(),g()}export{dr as B,cr as _};
@@ -0,0 +1 @@
import{as as n,a as s,c as a,at as u,b as o,au as l,V as c,av as r,aw as f,ax as i,ay as m,az as _}from"./BH97ETpZ.js";import{h as p,m as y,u as d}from"./Qgf5A_kA.js";function x(e){a===null&&n(),u&&a.l!==null?b(a).m.push(e):s(()=>{const t=o(e);if(typeof t=="function")return t})}function b(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const v=Object.freeze(Object.defineProperty({__proto__:null,flushSync:c,getAllContexts:r,getContext:f,hasContext:i,hydrate:p,mount:y,onMount:x,setContext:m,settled:_,tick:l,unmount:d,untrack:o},Symbol.toStringTag,{value:"Module"}));export{x as o,v as s};
@@ -0,0 +1 @@
import{D as c,L as s,C as l,a0 as _}from"./BH97ETpZ.js";import{B as i}from"./UvStrNyM.js";function f(a,n,o){c&&s();var r=new i(a);l(()=>{var e=n()??null;r.ensure(e,e&&(t=>o(t,e)))},_)}const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{u as _,f as c};
@@ -0,0 +1 @@
import{B as u,C as o,H as _,D as t,E as g,F as i,G as l,I as d,J as p,K as E}from"./BH97ETpZ.js";function v(n,r){let s=null,f=t;var a;if(t){s=p;for(var e=E(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var y=i(e);e.remove(),d(y)}}t||(a=document.head.appendChild(u()));try{o(()=>r(a),_)}finally{f&&(l(!0),d(s))}}export{v as h};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{c as d,u as g,a as i,b,r as l,d as m,g as p,e as v,f as h}from"./BH97ETpZ.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let r=()=>v(s.s);if(n){let f=0,t={};const _=h(()=>{let c=!1;const a=s.s;for(const o in a)a[o]!==t[o]&&(t[o]=a[o],c=!0);return c&&f++,f});r=()=>p(_)}e.b.length&&g(()=>{u(s,r),l(e.b)}),i(()=>{const f=b(()=>e.m.map(m));return()=>{for(const t of f)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,r),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -1 +0,0 @@
import"./Bzak7iHL.js";import{A as o,h as c,r as n,a as i,G as f,T as v,b as h}from"./Dexp9pM5.js";import{a as m,s as u,c as p}from"./BKSreT2u.js";import{p as b,b as x,r as g}from"./jOLfEXYH.js";var _=h("<div><!></div>");function G(t,a){o(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=_();m(r,e=>({"data-slot":"card",class:e,...d}),[()=>p("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var l=c(r);u(l,()=>a.children??v),n(r),x(r,e=>s(e),()=>s()),i(t,r),f()}var y=h("<div><!></div>");function T(t,a){o(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=y();m(r,e=>({"data-slot":"card-content",class:e,...d}),[()=>p("px-6",a.class)]);var l=c(r);u(l,()=>a.children??v),n(r),x(r,e=>s(e),()=>s()),i(t,r),f()}export{T as C,G as a};
@@ -0,0 +1 @@
const y="modulepreload",P=function(f,a){return new URL(f,a).href},E={},g=function(a,u,d){let h=Promise.resolve();if(u&&u.length>0){let o=function(e){return Promise.all(e.map(r=>Promise.resolve(r).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),v=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));h=o(u.map(e=>{if(e=P(e,d),e in E)return;E[e]=!0;const r=e.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(d)for(let i=t.length-1;i>=0;i--){const c=t[i];if(c.href===e&&(!r||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${l}`))return;const n=document.createElement("link");if(n.rel=r?"stylesheet":y,r||(n.as="script"),n.crossOrigin="",n.href=e,v&&n.setAttribute("nonce",v),document.head.appendChild(n),r)return new Promise((i,c)=>{n.addEventListener("load",i),n.addEventListener("error",()=>c(Error(`Unable to preload CSS for ${e}`)))})}))}function m(o){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=o,window.dispatchEvent(t),!t.defaultPrevented)throw o}return h.then(o=>{for(const t of o||[])t.status==="rejected"&&m(t.reason);return a().catch(m)})};export{g as _};
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
import"./Bzak7iHL.js";import{A as T,f as c,C as s,h as d,D as r,E as o,a,r as m,F as g,c as U,g as y,G as V,I as X,u as Y,b as x}from"./Dexp9pM5.js";import{c as l}from"./25AjRaeI.js";import{B as h}from"./B12dZE2q.js";import{D as Z,a as tt,b as et,c as at,I as st,d as rt}from"./iABcLwh6.js";import{g as ot}from"./BapE3c1q.js";var lt=x("<!> <!>",1),nt=x("<!> <!>",1),it=x('<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-8"><h1 class="text-2xl font-semibold">Stackq</h1> <p class="text-muted-foreground">Svelte 5 + shadcn-svelte + PocketBase</p> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block"><!></a> <!> <a href="/logout" class="block"><!></a></div></main> <!>',1);function gt(A,P){T(P,!0);let n=X(!1);const C=Y(()=>{var t;return((t=P.data)==null?void 0:t.itemsForParent)??[]});function L(){g(n,!1),ot("/items")}var w=it(),u=c(w),b=s(d(u),4),f=d(b),N=d(f);h(N,{class:"w-full",children:(t,i)=>{r();var e=o("Items table");a(t,e)},$$slots:{default:!0}}),m(f);var D=s(f,2);h(D,{class:"w-full",variant:"outline",onclick:()=>g(n,!0),children:(t,i)=>{r();var e=o("New item");a(t,e)},$$slots:{default:!0}});var k=s(D,2),j=d(k);h(j,{class:"w-full",variant:"outline",children:(t,i)=>{r();var e=o("Log out");a(t,e)},$$slots:{default:!0}}),m(k),m(b),m(u);var E=s(u,2);l(E,()=>rt,(t,i)=>{i(t,{get open(){return y(n)},set open(e){g(n,e,!0)},children:(e,ct)=>{var F=U(),G=c(F);l(G,()=>Z,(H,O)=>{O(H,{class:"max-h-[90vh] overflow-y-auto sm:max-w-[500px]",children:(W,dt)=>{var I=nt(),S=c(I);l(S,()=>tt,(J,K)=>{K(J,{children:(M,mt)=>{var B=lt(),q=c(B);l(q,()=>et,(v,$)=>{$(v,{children:(p,R)=>{r();var _=o("New item");a(p,_)},$$slots:{default:!0}})});var Q=s(q,2);l(Q,()=>at,(v,$)=>{$(v,{children:(p,R)=>{r();var _=o("Add a new Stackq item.");a(p,_)},$$slots:{default:!0}})}),a(M,B)},$$slots:{default:!0}})});var z=s(S,2);st(z,{get itemsForParent(){return y(C)},action:"/items?/create",submitLabel:"Create",onSuccess:L}),a(W,I)},$$slots:{default:!0}})}),a(e,F)},$$slots:{default:!0}})}),a(A,w),V()}export{gt as default};
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
import{i as n,j as x,k as B,l as g,m as N,H as A,s as D,n as H,o as c,q as S,p as v,B as q,t as L,v as R,w as U,x as k,U as j,y as E,z}from"./Dexp9pM5.js";import{B as G}from"./CRDN6Mh7.js";const T=0,_=1;function P(m,b,y,r,l){n&&x();var h=B(),t=j,i=h?k(t):E(t,!1,!1),o=h?k(t):E(t,!1,!1),s=new G(m);g(()=>{var u=b(),p=!1;let d=n&&N(u)===(m.data===A);if(d&&(D(H()),c(!1)),N(u)){var w=z(),I=!1;const a=e=>{if(!p){I=!0,w(!1),q.ensure(),n&&c(!1);try{e()}finally{L(),R||U()}}};u.then(e=>{a(()=>{v(i,e),s.ensure(_,r&&(f=>r(f,i)))})},e=>{a(()=>{if(v(o,e),s.ensure(_,l&&(f=>l(f,o))),!l)throw o.v})}),n?s.ensure(T,y):S(()=>{I||a(()=>{s.ensure(T,y)})})}else v(i,u),s.ensure(_,r&&(a=>r(a,i)));return d&&c(!0),()=>{p=!0}})}export{P as a};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{_ as ve}from"./D4nn9Y_6.js";import"./Bzak7iHL.js";import{p as he,a as C,y as n,g as e,h as J,i as S,q as B,t as T,w as Q,j as l,s as g,o as A,v as E,k as _e,m as pe,A as x,l as y}from"./BH97ETpZ.js";import{s as W}from"./Qgf5A_kA.js";import{i as ge}from"./UvStrNyM.js";import{c as b}from"./Cf_fsnlT.js";import{p as X,b as xe}from"./Bysmuwvg.js";import{B as Y}from"./BkOB8zes.js";import{I as be}from"./CCY2d7sc.js";import{D as ye,a as we,b as De,c as ke,d as Se}from"./Cr7vHN1I.js";var Be=y("<!> <!>",1),Te=y('<p class="text-destructive text-sm"> </p>'),Ae=y('<video class="border-input max-h-[50vh] w-full flex-1 rounded-lg border object-cover sm:max-h-none" playsinline=""></video>',2),Ee=y('<p class="text-muted-foreground text-sm">Starting camera…</p>'),Pe=y('<!> <div class="flex min-h-0 flex-1 flex-col gap-4"><div class="flex shrink-0 gap-2"><!> <!></div> <p class="text-muted-foreground shrink-0 text-center text-xs">or use camera below</p> <!> <div class="flex shrink-0 gap-2"><!></div></div>',1);function Ue(Z,i){he(i,!0);let c=X(i,"open",15,!1),ee=X(i,"title",3,"Scan barcode"),v=x(null),h=x(""),a=x(void 0),d=x(null),f=x(0);function q(){var s;const r=e(h).trim();r&&(_(),c(!1),n(h,""),(s=i.onResult)==null||s.call(i,r))}async function te(){if(typeof globalThis>"u"||"BarcodeDetector"in globalThis)return!0;try{const r=await ve(()=>import("./Bd99md_0.js"),[],import.meta.url);return globalThis.BarcodeDetector=r.BarcodeDetector,!0}catch{return!1}}async function re(){if(n(v,null),!await te()){n(v,"Failed to load barcode scanner. Try again or use Chrome/Edge.");return}try{n(d,await navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}}),!0)}catch(s){n(v,s instanceof Error?s.message:"Could not access camera.",!0)}}function _(){var r;e(f)&&(cancelAnimationFrame(e(f)),n(f,0)),e(d)&&(e(d).getTracks().forEach(s=>s.stop()),n(d,null)),(r=e(a))!=null&&r.srcObject&&(e(a).srcObject=null),n(v,null)}C(()=>{if(!c()){_(),n(h,"");return}return re(),()=>_()}),C(()=>{if(!(!c()||!e(d)||!e(a)))return e(a).srcObject=e(d),e(a).play().catch(()=>{}),()=>{var r;(r=e(a))!=null&&r.srcObject&&(e(a).srcObject=null)}});const ae=300;function oe(){if(!e(a)||!("BarcodeDetector"in globalThis))return;const r=new globalThis.BarcodeDetector;let s=0;async function m(){var p,w;if(!c()||!e(a))return;if(e(a).readyState<2){n(f,requestAnimationFrame(m),!0);return}const P=Date.now();if(P-s>=ae){s=P;try{const D=await r.detect(e(a));if(D.length>0){const j=((p=D[0].rawValue)==null?void 0:p.trim())??"";_(),c(!1),(w=i.onResult)==null||w.call(i,j);return}}catch{}}n(f,requestAnimationFrame(m),!0)}m()}C(()=>{if(!(!c()||!e(d)||!e(a)))return oe(),()=>{e(f)&&cancelAnimationFrame(e(f))}});var L=J(),ne=S(L);b(ne,()=>Se,(r,s)=>{s(r,{get open(){return c()},set open(m){c(m)},children:(m,P)=>{var p=J(),w=S(p);b(w,()=>ye,(D,j)=>{j(D,{class:"flex max-h-[100dvh] w-[100vw] max-w-none flex-col gap-4 rounded-none border-0 p-4 sm:max-h-[90dvh] sm:w-auto sm:max-w-md sm:rounded-lg sm:border",onclose:()=>_(),children:(se,je)=>{var M=Pe(),V=S(M);b(V,()=>we,(t,o)=>{o(t,{class:"shrink-0",children:(u,z)=>{var G=Be(),H=S(G);b(H,()=>De,(O,I)=>{I(O,{children:(R,me)=>{B();var k=T();Q(()=>W(k,ee())),l(R,k)},$$slots:{default:!0}})});var fe=g(H,2);b(fe,()=>ke,(O,I)=>{I(O,{children:(R,me)=>{B();var k=T("Scan a barcode or type a code to look up an item.");l(R,k)},$$slots:{default:!0}})}),l(u,G)},$$slots:{default:!0}})});var N=g(V,2),F=A(N),U=A(F);be(U,{type:"text",placeholder:"Type barcode or SKU to search…",onkeydown:t=>t.key==="Enter"&&q(),class:"min-h-11 flex-1",get value(){return e(h)},set value(t){n(h,t,!0)}});var le=g(U,2);{let t=_e(()=>!e(h).trim());Y(le,{type:"button",class:"min-h-11 shrink-0",onclick:q,get disabled(){return e(t)},children:(o,u)=>{B();var z=T("Search");l(o,z)},$$slots:{default:!0}})}E(F);var $=g(F,4);{var ie=t=>{var o=Te(),u=A(o,!0);E(o),Q(()=>W(u,e(v))),l(t,o)},ce=t=>{var o=Ae();o.muted=!0,xe(o,u=>n(a,u),()=>e(a)),l(t,o)},de=t=>{var o=Ee();l(t,o)};ge($,t=>{e(v)?t(ie):e(d)?t(ce,1):t(de,!1)})}var K=g($,2),ue=A(K);Y(ue,{type:"button",variant:"outline",class:"min-h-12 flex-1",onclick:()=>{_(),c(!1)},children:(t,o)=>{B();var u=T("Cancel");l(t,u)},$$slots:{default:!0}}),E(K),E(N),l(se,M)},$$slots:{default:!0}})}),l(m,p)},$$slots:{default:!0}})}),l(Z,L),pe()}export{Ue as B};
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as B,o as v,ar as z,v as f,j as s,m as E,l as _,h as U,i as k,q as p,t as y,s as m,g as V,k as W,w as X}from"./BH97ETpZ.js";import{s as Y}from"./Qgf5A_kA.js";import{i as Z}from"./UvStrNyM.js";import{c as P}from"./Cf_fsnlT.js";import{L as S,I as T,a as ee,e as re}from"./CCY2d7sc.js";import{a as te,C as ae}from"./BzfwckE1.js";import{a as A,c as D,b as G}from"./Dw-PWoyz.js";import{p as H,b as J,r as K}from"./Bysmuwvg.js";import{C as se}from"./CBjBL7Hz.js";import{B as oe}from"./BkOB8zes.js";var le=_("<p><!></p>");function de($,e){B(e,!0);let d=H(e,"ref",15,null),h=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=le();A(a,l=>({"data-slot":"card-description",class:l,...h}),[()=>D("text-muted-foreground text-sm",e.class)]);var g=v(a);G(g,()=>e.children??z),f(a),J(a,l=>d(l),()=>d()),s($,a),E()}var ie=_("<div><!></div>");function ne($,e){B(e,!0);let d=H(e,"ref",15,null),h=K(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=ie();A(a,l=>({"data-slot":"card-title",class:l,...h}),[()=>D("leading-none font-semibold",e.class)]);var g=v(a);G(g,()=>e.children??z),f(a),J(a,l=>d(l),()=>d()),s($,a),E()}var ce=_("<!> <!>",1),me=_('<p class="text-destructive text-sm"> </p>'),ve=_('<form method="POST" action="?/login" class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><div class="flex items-center justify-between"><!> <a href="/forgot-password" class="text-muted-foreground text-sm underline hover:text-foreground">Forgot your password?</a></div> <!></div> <!> <!></form>'),fe=_("<!> <!>",1);function Le($,e){B(e,!0);var d=U(),h=k(d);P(h,()=>ae,(a,g)=>{g(a,{class:"w-full max-w-sm",children:(l,ue)=>{var F=fe(),I=k(F);P(I,()=>se,(C,L)=>{L(C,{children:(q,N)=>{var i=ce(),u=k(i);P(u,()=>ne,(x,n)=>{n(x,{children:(c,j)=>{p();var w=y("Login");s(c,w)},$$slots:{default:!0}})});var b=m(u,2);P(b,()=>de,(x,n)=>{n(x,{children:(c,j)=>{p();var w=y("Enter your email and password to sign in.");s(c,w)},$$slots:{default:!0}})}),s(q,i)},$$slots:{default:!0}})});var M=m(I,2);P(M,()=>te,(C,L)=>{L(C,{children:(q,N)=>{var i=ve(),u=v(i),b=v(u);S(b,{for:"email",children:(r,t)=>{p();var o=y("Email");s(r,o)},$$slots:{default:!0}});var x=m(b,2);{let r=W(()=>{var t;return((t=e.data)==null?void 0:t.email)??""});T(x,{id:"email",name:"email",type:"email",placeholder:"you@example.com",autocomplete:"email",get value(){return V(r)},required:!0})}f(u);var n=m(u,2),c=v(n),j=v(c);S(j,{for:"password",children:(r,t)=>{p();var o=y("Password");s(r,o)},$$slots:{default:!0}}),p(2),f(c);var w=m(c,2);T(w,{id:"password",name:"password",type:"password",autocomplete:"current-password",required:!0}),f(n);var O=m(n,2);{var Q=r=>{var t=me(),o=v(t,!0);f(t),X(()=>Y(o,e.data.error)),s(r,t)};Z(O,r=>{var t;(t=e.data)!=null&&t.error&&r(Q)})}var R=m(O,2);oe(R,{type:"submit",class:"w-full",children:(r,t)=>{p();var o=y("Login");s(r,o)},$$slots:{default:!0}}),f(i),ee(i,(r,t)=>{var o;return(o=re)==null?void 0:o(r,t)},()=>()=>async({update:r})=>{await r()}),s(q,i)},$$slots:{default:!0}})}),s(l,F)},$$slots:{default:!0}})}),s($,d),E()}export{Le as default};
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{_ as u}from"./D4nn9Y_6.js";function _(c={}){const{immediate:o=!1,onNeedRefresh:p,onOfflineReady:a,onRegistered:r,onRegisteredSW:s,onRegisterError:t}=c;let i,n;const d=async(e=!0)=>{await n};async function l(){if("serviceWorker"in navigator){if(i=await u(async()=>{const{Workbox:e}=await import("./BIl4cyR9.js");return{Workbox:e}},[],import.meta.url).then(({Workbox:e})=>new e("./sw.js",{scope:"./",type:"classic"})).catch(e=>{t==null||t(e)}),!i)return;i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||a==null||a()}),i.register({immediate:o}).then(e=>{s?s("./sw.js",e):r==null||r(e)}).catch(e=>{t==null||t(e)})}}return n=l(),d}export{_ as registerSW};
@@ -0,0 +1,2 @@
var we=Object.defineProperty;var re=i=>{throw TypeError(i)};var De=(i,e,s)=>e in i?we(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var z=(i,e,s)=>De(i,typeof e!="symbol"?e+"":e,s),J=(i,e,s)=>e.has(i)||re("Cannot "+s);var t=(i,e,s)=>(J(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),n=(i,e,s,r)=>(J(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),b=(i,e,s)=>(J(i,e,"access private method"),s);import{aW as Ae,g as pe,aI as Fe,W as ge,b as Ne,aX as ne,Q as L,J as A,D as F,a4 as C,aY as ae,C as Se,L as Oe,O as Ye,a9 as O,B as ve,S as K,al as Q,aA as Ie,aZ as ke,aF as he,aE as fe,a_ as oe,a$ as Ce,aG as Be,c as be,b0 as de,b1 as Me,b2 as _e,b3 as qe,R as xe,aq as U,I as W,q as He,P as Le,b4 as le,b5 as Pe,a0 as We,b6 as Ve,b7 as $e,b8 as X,K as Ge,E as ye,aB as je,F as ze,b9 as Z,G as x,ba as Je,ap as Ke,bb as Qe,ae as Ue,p as Xe,a3 as Ze,a7 as et,bc as tt,m as st}from"./BH97ETpZ.js";import{a as it,r as ce,h as ue,b as rt}from"./BD8q7RHQ.js";function nt(i){let e=0,s=ge(0),r;return()=>{Ae()&&(pe(s),Fe(()=>(e===0&&(r=Ne(()=>i(()=>ne(s)))),e+=1,()=>{L(()=>{e-=1,e===0&&(r==null||r(),r=void 0,ne(s))})})))}}var at=We|Ve;function ht(i,e,s){new ft(i,e,s)}var l,B,T,N,y,m,d,E,R,S,D,Y,I,k,w,V,f,me,Ee,ee,P,te;class ft{constructor(e,s,r){h(this,f);z(this,"parent");z(this,"is_pending",!1);h(this,l);h(this,B,F?A:null);h(this,T);h(this,N);h(this,y);h(this,m,null);h(this,d,null);h(this,E,null);h(this,R,null);h(this,S,0);h(this,D,0);h(this,Y,!1);h(this,I,new Set);h(this,k,new Set);h(this,w,null);h(this,V,nt(()=>(n(this,w,ge(t(this,S))),()=>{n(this,w,null)})));n(this,l,e),n(this,T,s),n(this,N,o=>{var a=C;a.b=this,a.f|=ae,r(o)}),this.parent=C.b,n(this,y,Se(()=>{if(F){const o=t(this,B);Oe(),o.data===Ye?b(this,f,Ee).call(this):b(this,f,me).call(this)}else b(this,f,ee).call(this)},at)),F&&n(this,l,A)}defer_effect(e){ke(e,t(this,I),t(this,k))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!t(this,T).pending}update_pending_count(e){b(this,f,te).call(this,e),n(this,S,t(this,S)+e),!(!t(this,w)||t(this,Y))&&(n(this,Y,!0),L(()=>{n(this,Y,!1),t(this,w)&&xe(t(this,w),t(this,S))}))}get_effect_pending(){return t(this,V).call(this),pe(t(this,w))}error(e){var s=t(this,T).onerror;let r=t(this,T).failed;if(!s&&!r)throw e;t(this,m)&&(U(t(this,m)),n(this,m,null)),t(this,d)&&(U(t(this,d)),n(this,d,null)),t(this,E)&&(U(t(this,E)),n(this,E,null)),F&&(W(t(this,B)),He(),W(Le()));var o=!1,a=!1;const c=()=>{if(o){$e();return}o=!0,a&&Pe(),t(this,E)!==null&&Q(t(this,E),()=>{n(this,E,null)}),b(this,f,P).call(this,()=>{K.ensure(),b(this,f,ee).call(this)})};L(()=>{try{a=!0,s==null||s(e,c),a=!1}catch(_){le(_,t(this,y)&&t(this,y).parent)}r&&n(this,E,b(this,f,P).call(this,()=>{K.ensure();try{return O(()=>{var _=C;_.b=this,_.f|=ae,r(t(this,l),()=>e,()=>c)})}catch(_){return le(_,t(this,y).parent),null}}))})}}l=new WeakMap,B=new WeakMap,T=new WeakMap,N=new WeakMap,y=new WeakMap,m=new WeakMap,d=new WeakMap,E=new WeakMap,R=new WeakMap,S=new WeakMap,D=new WeakMap,Y=new WeakMap,I=new WeakMap,k=new WeakMap,w=new WeakMap,V=new WeakMap,f=new WeakSet,me=function(){try{n(this,m,O(()=>t(this,N).call(this,t(this,l))))}catch(e){this.error(e)}},Ee=function(){const e=t(this,T).pending;e&&(this.is_pending=!0,n(this,d,O(()=>e(t(this,l)))),L(()=>{var s=n(this,R,document.createDocumentFragment()),r=ve();s.append(r),n(this,m,b(this,f,P).call(this,()=>(K.ensure(),O(()=>t(this,N).call(this,r))))),t(this,D)===0&&(t(this,l).before(s),n(this,R,null),Q(t(this,d),()=>{n(this,d,null)}),this.is_pending=!1)}))},ee=function(){try{if(this.is_pending=this.has_pending_snippet(),n(this,D,0),n(this,S,0),n(this,m,O(()=>{t(this,N).call(this,t(this,l))})),t(this,D)>0){var e=n(this,R,document.createDocumentFragment());Ie(t(this,m),e);const s=t(this,T).pending;n(this,d,O(()=>s(t(this,l))))}else this.is_pending=!1}catch(s){this.error(s)}},P=function(e){var s=C,r=Be,o=be;he(t(this,y)),fe(t(this,y)),oe(t(this,y).ctx);try{return e()}catch(a){return Ce(a),null}finally{he(s),fe(r),oe(o)}},te=function(e){var s;if(!this.has_pending_snippet()){this.parent&&b(s=this.parent,f,te).call(s,e);return}if(n(this,D,t(this,D)+e),t(this,D)===0){this.is_pending=!1;for(const r of t(this,I))de(r,Me),_e(r);for(const r of t(this,k))de(r,qe),_e(r);t(this,I).clear(),t(this,k).clear(),t(this,d)&&Q(t(this,d),()=>{n(this,d,null)}),t(this,R)&&(t(this,l).before(t(this,R)),n(this,R,null))}};function ct(i,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(i.__t??(i.__t=i.nodeValue))&&(i.__t=s,i.nodeValue=s+"")}function ot(i,e){return Te(i,e)}function ut(i,e){X(),e.intro=e.intro??!1;const s=e.target,r=F,o=A;try{for(var a=Ge(s);a&&(a.nodeType!==ye||a.data!==je);)a=ze(a);if(!a)throw Z;x(!0),W(a);const c=Te(i,{...e,anchor:a});return x(!1),c}catch(c){if(c instanceof Error&&c.message.split(`
`).some(_=>_.startsWith("https://svelte.dev/e/")))throw c;return c!==Z&&console.warn("Failed to hydrate: ",c),e.recover===!1&&Je(),X(),Ke(s),x(!1),ot(i,e)}finally{x(r),W(o)}}const H=new Map;function Te(i,{target:e,anchor:s,props:r={},events:o,context:a,intro:c=!0}){X();var _=void 0,Re=Qe(()=>{var M=s??e.appendChild(ve());ht(M,{pending:()=>{}},u=>{Xe({});var p=be;if(a&&(p.c=a),o&&(r.$$events=o),F&&Ze(u,null),_=i(u,r)||{},F&&(C.nodes.end=A,A===null||A.nodeType!==ye||A.data!==et))throw tt(),Z;st()});var $=new Set,G=u=>{for(var p=0;p<u.length;p++){var g=u[p];if(!$.has(g)){$.add(g);var q=rt(g);for(const j of[e,document]){var v=H.get(j);v===void 0&&(v=new Map,H.set(j,v));var ie=v.get(g);ie===void 0?(j.addEventListener(g,ue,{passive:q}),v.set(g,1)):v.set(g,ie+1)}}}};return G(Ue(it)),ce.add(G),()=>{var q;for(var u of $)for(const v of[e,document]){var p=H.get(v),g=p.get(u);--g==0?(v.removeEventListener(u,ue),p.delete(u),p.size===0&&H.delete(v)):p.set(u,g)}ce.delete(G),M!==s&&((q=M.parentNode)==null||q.removeChild(M))}});return se.set(_,Re),_}let se=new WeakMap;function pt(i,e){const s=se.get(i);return s?(se.delete(i),s(e)):Promise.resolve()}export{nt as c,ut as h,ot as m,ct as s,pt as u};
@@ -0,0 +1 @@
var I=Object.defineProperty;var k=a=>{throw TypeError(a)};var M=(a,e,t)=>e in a?I(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var R=(a,e,t)=>M(a,typeof e!="symbol"?e+"":e,t),w=(a,e,t)=>e.has(a)||k("Cannot "+t);var s=(a,e,t)=>(w(a,e,"read from private field"),t?t.call(a):e.get(a)),u=(a,e,t)=>e.has(a)?k("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),D=(a,e,t,i)=>(w(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t);import{a8 as E,ak as N,aq as A,al as x,B as S,a9 as B,D as T,J as C,aA as O,ab as H,C as L,L as P,a0 as Y,a6 as q,aB as G,O as J,P as j,I as y,G as F}from"./BH97ETpZ.js";var l,d,h,_,v,b,m;class z{constructor(e,t=!0){R(this,"anchor");u(this,l,new Map);u(this,d,new Map);u(this,h,new Map);u(this,_,new Set);u(this,v,!0);u(this,b,()=>{var e=E;if(s(this,l).has(e)){var t=s(this,l).get(e),i=s(this,d).get(t);if(i)N(i),s(this,_).delete(t);else{var o=s(this,h).get(t);o&&(s(this,d).set(t,o.effect),s(this,h).delete(t),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),i=o.effect)}for(const[f,r]of s(this,l)){if(s(this,l).delete(f),f===e)break;const n=s(this,h).get(r);n&&(A(n.effect),s(this,h).delete(r))}for(const[f,r]of s(this,d)){if(f===t||s(this,_).has(f))continue;const n=()=>{if(Array.from(s(this,l).values()).includes(f)){var p=document.createDocumentFragment();O(r,p),p.append(S()),s(this,h).set(f,{effect:r,fragment:p})}else A(r);s(this,_).delete(f),s(this,d).delete(f)};s(this,v)||!i?(s(this,_).add(f),x(r,n,!1)):n()}}});u(this,m,e=>{s(this,l).delete(e);const t=Array.from(s(this,l).values());for(const[i,o]of s(this,h))t.includes(i)||(A(o.effect),s(this,h).delete(i))});this.anchor=e,D(this,v,t)}ensure(e,t){var i=E,o=H();if(t&&!s(this,d).has(e)&&!s(this,h).has(e))if(o){var f=document.createDocumentFragment(),r=S();f.append(r),s(this,h).set(e,{effect:B(()=>t(r)),fragment:f})}else s(this,d).set(e,B(()=>t(this.anchor)));if(s(this,l).set(i,e),o){for(const[n,c]of s(this,d))n===e?i.unskip_effect(c):i.skip_effect(c);for(const[n,c]of s(this,h))n===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(s(this,b)),i.ondiscard(s(this,m))}else T&&(this.anchor=C),s(this,b).call(this)}}l=new WeakMap,d=new WeakMap,h=new WeakMap,_=new WeakMap,v=new WeakMap,b=new WeakMap,m=new WeakMap;function U(a,e,t=!1){T&&P();var i=new z(a),o=t?Y:0;function f(r,n){if(T){const g=q(a);var c;if(g===G?c=0:g===J?c=!1:c=parseInt(g.substring(1)),r!==c){var p=j();y(p),i.anchor=p,F(!1),i.ensure(r,n),F(!0);return}}i.ensure(r,n)}L(()=>{var r=!1;e((n,c=0)=>{r=!0,f(c,n)}),r||f(!1,null)},o)}export{z as B,U as i};
@@ -1 +0,0 @@
import{V as S,W as b,X as E,Y as T,R as m,q as L,Z as V}from"./Dexp9pM5.js";function q(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const A=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function B(t){return A.includes(t)}const x={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function D(t){return t=t.toLowerCase(),x[t]??t}const I=["touchstart","touchmove"];function j(t){return I.includes(t)}const N=["textarea","script","style","title"];function C(t){return N.includes(t)}const i=Symbol("events"),P=new Set,W=new Set;function M(t,e,r,u={}){function o(a){if(u.capture||O.call(e,a),!a.cancelBubble)return V(()=>r==null?void 0:r.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?L(()=>{e.addEventListener(t,o,u)}):e.addEventListener(t,o,u),o}function X(t,e,r,u={}){var o=M(e,t,r,u);return()=>{t.removeEventListener(e,o,u)}}function z(t,e,r){(e[i]??(e[i]={}))[t]=r}function F(t){for(var e=0;e<t.length;e++)P.add(t[e]);for(var r of W)r(t)}let w=null;function O(t){var v,g;var e=this,r=e.ownerDocument,u=t.type,o=((v=t.composedPath)==null?void 0:v.call(t))||[],a=o[0]||t.target;w=t;var f=0,d=w===t&&t[i];if(d){var s=o.indexOf(d);if(s!==-1&&(e===document||e===window)){t[i]=e;return}var p=o.indexOf(e);if(p===-1)return;s<=p&&(f=s)}if(a=o[f]||t.target,a!==e){S(t,"currentTarget",{configurable:!0,get(){return a||r}});var y=T,k=m;b(null),E(null);try{for(var c,_=[];a!==null;){var l=a.assignedSlot||a.parentNode||a.host||null;try{var h=(g=a[i])==null?void 0:g[u];h!=null&&(!a.disabled||t.target===a)&&h.call(a,t)}catch(n){c?_.push(n):c=n}if(t.cancelBubble||l===e||l===null)break;a=l}if(c){for(let n of _)queueMicrotask(()=>{throw n});throw c}}finally{t[i]=e,delete t.currentTarget,b(y),E(k)}}}export{P as a,j as b,q as c,z as d,F as e,M as f,B as g,O as h,C as i,D as n,X as o,W as r};
@@ -1 +0,0 @@
import{e}from"./Dexp9pM5.js";e();
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
import{ar as o,b as a,aC as d}from"./BH97ETpZ.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function _(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function h(s){let u;return p(s,e=>u=e)(),u}export{h as g,p as s,_ as w};
@@ -1 +0,0 @@
import{a1 as T,ac as j,ad as y,q,ae as S,af as g,ag as B,ah as Y,g as h,ai as K,F as M,aj as N,R as U,ak as $,al as z,am as C,an as F,ao as G,ap as Z,d as H,aq as J,ar as x,as as d}from"./Dexp9pM5.js";function R(r,e){return r===e||(r==null?void 0:r[S])===e}function m(r={},e,n,i){return T(()=>{var s,t;return j(()=>{s=t,t=[],y(()=>{r!==n(...t)&&(e(r,...t),s&&R(n(...s),r)&&e(null,...s))})}),()=>{q(()=>{t&&R(n(...t),r)&&e(null,...t)})}}),r}let _=!1;function Q(r){var e=_;try{return _=!1,[r(),_]}finally{_=e}}const V={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function k(r,e,n){return new Proxy({props:r,exclude:e},V)}const W={get(r,e){let n=r.props.length;for(;n--;){let i=r.props[n];if(d(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(r,e,n){let i=r.props.length;for(;i--;){let s=r.props[i];d(s)&&(s=s());const t=g(s,e);if(t&&t.set)return t.set(n),!0}return!1},getOwnPropertyDescriptor(r,e){let n=r.props.length;for(;n--;){let i=r.props[n];if(d(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const s=g(i,e);return s&&!s.configurable&&(s.configurable=!0),s}}},has(r,e){if(e===S||e===x)return!1;for(let n of r.props)if(d(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(r){const e=[];for(let n of r.props)if(d(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function rr(...r){return new Proxy({props:r},W)}function er(r,e,n,i){var O;var s=!C||(n&F)!==0,t=(n&z)!==0,E=(n&J)!==0,a=i,v=!0,b=()=>(v&&(v=!1,a=E?y(i):i),a),l;if(t){var A=S in r||x in r;l=((O=g(r,e))==null?void 0:O.set)??(A&&e in r?f=>r[e]=f:void 0)}var o,w=!1;t?[o,w]=Q(()=>r[e]):o=r[e],o===void 0&&i!==void 0&&(o=b(),l&&(s&&B(),l(o)));var u;if(s?u=()=>{var f=r[e];return f===void 0?b():(v=!0,f)}:u=()=>{var f=r[e];return f!==void 0&&(a=void 0),f===void 0?a:f},s&&(n&Y)===0)return u;if(l){var D=r.$$legacy;return(function(f,p){return arguments.length>0?((!s||!p||D||w)&&l(p?u():f),f):u()})}var P=!1,c=((n&G)!==0?Z:H)(()=>(P=!1,u()));t&&h(c);var L=U;return(function(f,p){if(arguments.length>0){const I=p?h(c):s&&t?K(f):f;return M(c,I),P=!0,a!==void 0&&(a=I),f}return N&&P||(L.f&$)!==0?c.v:h(c)})}export{m as b,er as p,k as r,rr as s};
File diff suppressed because one or more lines are too long