diff --git a/composer.json b/composer.json index 5b815541..8df75932 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.0", "lee-to/moonshine-algolia-search": "^1.0", - "moonshine/moonshine": "2.0.0.rc.3", + "moonshine/moonshine": "^2.0", "torchlight/torchlight-laravel": "^0.5.11" }, "require-dev": { diff --git a/composer.lock b/composer.lock index cb38d444..5e3c6cdd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f08da91cb5883791153592c263108281", + "content-hash": "8b17ccab43ebaa6fc1e42b14b8bd76e2", "packages": [ { "name": "algolia/algoliasearch-client-php", @@ -2037,16 +2037,16 @@ }, { "name": "moonshine/moonshine", - "version": "2.0.0-rc.3", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/moonshine-software/moonshine.git", - "reference": "746b69b5aad3d04d26464a62ce8d1d9fc2b72446" + "reference": "822fbed43e81ad2a5bf0d6333e6ff507cfabf198" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/moonshine-software/moonshine/zipball/746b69b5aad3d04d26464a62ce8d1d9fc2b72446", - "reference": "746b69b5aad3d04d26464a62ce8d1d9fc2b72446", + "url": "https://api.github.com/repos/moonshine-software/moonshine/zipball/822fbed43e81ad2a5bf0d6333e6ff507cfabf198", + "reference": "822fbed43e81ad2a5bf0d6333e6ff507cfabf198", "shasum": "" }, "require": { @@ -2121,7 +2121,7 @@ "type": "open_collective" } ], - "time": "2023-11-10T14:34:52+00:00" + "time": "2023-11-13T07:37:30+00:00" }, { "name": "nesbot/carbon", @@ -9141,9 +9141,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "moonshine/moonshine": 5 - }, + "stability-flags": [], "prefer-stable": true, "prefer-lowest": false, "platform": { diff --git a/public/vendor/moonshine/assets/app.js b/public/vendor/moonshine/assets/app.js index 3897fbea..52ebc731 100644 --- a/public/vendor/moonshine/assets/app.js +++ b/public/vendor/moonshine/assets/app.js @@ -6,7 +6,7 @@ function lp(e,n){return function(){return e.apply(n,arguments)}}const{toString:S ${r?'Expression: "'+r+`" -`:""}`,n),setTimeout(()=>{throw e},0)}var Zs=!0;function zp(e){let n=Zs;Zs=!1;let r=e();return Zs=n,r}function di(e,n,r={}){let o;return Wt(e,n)(a=>o=a,r),o}function Wt(...e){return Vp(...e)}var Vp=Gp;function oA(e){Vp=e}function Gp(e,n){let r={};Au(r,e);let o=[r,...ji(e)],a=typeof n=="function"?sA(o,n):lA(o,n,e);return iA.bind(null,e,n,a)}function sA(e,n){return(r=()=>{},{scope:o={},params:a=[]}={})=>{let l=n.apply(qo([o,...e]),a);aa(r,l)}}var Xl={};function aA(e,n){if(Xl[e])return Xl[e];let r=Object.getPrototypeOf(async function(){}).constructor,o=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,l=(()=>{try{let c=new r(["__self","scope"],`with (scope) { __self.result = ${o} }; __self.finished = true; return __self.result;`);return Object.defineProperty(c,"name",{value:`[Alpine] ${e}`}),c}catch(c){return Bo(c,n,e),Promise.resolve()}})();return Xl[e]=l,l}function lA(e,n,r){let o=aA(n,r);return(a=()=>{},{scope:l={},params:c=[]}={})=>{o.result=void 0,o.finished=!1;let u=qo([l,...e]);if(typeof o=="function"){let f=o(o,u).catch(p=>Bo(p,r,n));o.finished?(aa(a,o.result,u,c,r),o.result=void 0):f.then(p=>{aa(a,p,u,c,r)}).catch(p=>Bo(p,r,n)).finally(()=>o.result=void 0)}}}function aa(e,n,r,o,a){if(Zs&&typeof n=="function"){let l=n.apply(r,o);l instanceof Promise?l.then(c=>aa(e,c,r,o)).catch(c=>Bo(c,a,n)):e(l)}else typeof n=="object"&&n instanceof Promise?n.then(l=>e(l)):e(n)}var oc="x-";function Ji(e=""){return oc+e}function uA(e){oc=e}var Ou={};function yt(e,n){return Ou[e]=n,{before(r){if(!Ou[r]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const o=ci.indexOf(r);ci.splice(o>=0?o:ci.indexOf("DEFAULT"),0,e)}}}function sc(e,n,r){if(n=Array.from(n),e._x_virtualDirectives){let l=Object.entries(e._x_virtualDirectives).map(([u,f])=>({name:u,value:f})),c=Xp(l);l=l.map(u=>c.find(f=>f.name===u.name)?{name:`x-bind:${u.name}`,value:`"${u.value}"`}:u),n=n.concat(l)}let o={};return n.map(tg((l,c)=>o[l]=c)).filter(rg).map(dA(o,r)).sort(hA).map(l=>fA(e,l))}function Xp(e){return Array.from(e).map(tg()).filter(n=>!rg(n))}var xu=!1,wo=new Map,Jp=Symbol();function cA(e){xu=!0;let n=Symbol();Jp=n,wo.set(n,[]);let r=()=>{for(;wo.get(n).length;)wo.get(n).shift()();wo.delete(n)},o=()=>{xu=!1,r()};e(r),o()}function Zp(e){let n=[],r=u=>n.push(u),[o,a]=qS(e);return n.push(a),[{Alpine:Yo,effect:o,cleanup:r,evaluateLater:Wt.bind(Wt,e),evaluate:di.bind(di,e)},()=>n.forEach(u=>u())]}function fA(e,n){let r=()=>{},o=Ou[n.type]||r,[a,l]=Zp(e);Hp(e,n.original,l);let c=()=>{e._x_ignore||e._x_ignoreSelf||(o.inline&&o.inline(e,n,a),o=o.bind(o,e,n,a),xu?wo.get(Jp).push(o):o())};return c.runCleanups=l,c}var Qp=(e,n)=>({name:r,value:o})=>(r.startsWith(e)&&(r=r.replace(e,n)),{name:r,value:o}),eg=e=>e;function tg(e=()=>{}){return({name:n,value:r})=>{let{name:o,value:a}=ng.reduce((l,c)=>c(l),{name:n,value:r});return o!==n&&e(o,n),{name:o,value:a}}}var ng=[];function ac(e){ng.push(e)}function rg({name:e}){return ig().test(e)}var ig=()=>new RegExp(`^${oc}([^:^.]+)\\b`);function dA(e,n){return({name:r,value:o})=>{let a=r.match(ig()),l=r.match(/:([a-zA-Z0-9\-_:]+)/),c=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],u=n||e[r]||r;return{type:a?a[1]:null,value:l?l[1]:null,modifiers:c.map(f=>f.replace(".","")),expression:o,original:u}}}var Tu="DEFAULT",ci=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",Tu,"teleport"];function hA(e,n){let r=ci.indexOf(e.type)===-1?Tu:e.type,o=ci.indexOf(n.type)===-1?Tu:n.type;return ci.indexOf(r)-ci.indexOf(o)}var Cu=[],lc=!1;function uc(e=()=>{}){return queueMicrotask(()=>{lc||setTimeout(()=>{Iu()})}),new Promise(n=>{Cu.push(()=>{e(),n()})})}function Iu(){for(lc=!1;Cu.length;)Cu.shift()()}function pA(){lc=!0}function cc(e,n){return Array.isArray(n)?gh(e,n.join(" ")):typeof n=="object"&&n!==null?gA(e,n):typeof n=="function"?cc(e,n()):gh(e,n)}function gh(e,n){let r=a=>a.split(" ").filter(l=>!e.classList.contains(l)).filter(Boolean),o=a=>(e.classList.add(...a),()=>{e.classList.remove(...a)});return n=n===!0?n="":n||"",o(r(n))}function gA(e,n){let r=u=>u.split(" ").filter(Boolean),o=Object.entries(n).flatMap(([u,f])=>f?r(u):!1).filter(Boolean),a=Object.entries(n).flatMap(([u,f])=>f?!1:r(u)).filter(Boolean),l=[],c=[];return a.forEach(u=>{e.classList.contains(u)&&(e.classList.remove(u),c.push(u))}),o.forEach(u=>{e.classList.contains(u)||(e.classList.add(u),l.push(u))}),()=>{c.forEach(u=>e.classList.add(u)),l.forEach(u=>e.classList.remove(u))}}function Oa(e,n){return typeof n=="object"&&n!==null?mA(e,n):vA(e,n)}function mA(e,n){let r={};return Object.entries(n).forEach(([o,a])=>{r[o]=e.style[o],o.startsWith("--")||(o=_A(o)),e.style.setProperty(o,a)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Oa(e,r)}}function vA(e,n){let r=e.getAttribute("style",n);return e.setAttribute("style",n),()=>{e.setAttribute("style",r||"")}}function _A(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Lu(e,n=()=>{}){let r=!1;return function(){r?n.apply(this,arguments):(r=!0,e.apply(this,arguments))}}yt("transition",(e,{value:n,modifiers:r,expression:o},{evaluate:a})=>{typeof o=="function"&&(o=a(o)),o!==!1&&(!o||typeof o=="boolean"?bA(e,r,n):yA(e,o,n))});function yA(e,n,r){og(e,cc,""),{enter:a=>{e._x_transition.enter.during=a},"enter-start":a=>{e._x_transition.enter.start=a},"enter-end":a=>{e._x_transition.enter.end=a},leave:a=>{e._x_transition.leave.during=a},"leave-start":a=>{e._x_transition.leave.start=a},"leave-end":a=>{e._x_transition.leave.end=a}}[r](n)}function bA(e,n,r){og(e,Oa);let o=!n.includes("in")&&!n.includes("out")&&!r,a=o||n.includes("in")||["enter"].includes(r),l=o||n.includes("out")||["leave"].includes(r);n.includes("in")&&!o&&(n=n.filter((R,P)=>PP>n.indexOf("out")));let c=!n.includes("opacity")&&!n.includes("scale"),u=c||n.includes("opacity"),f=c||n.includes("scale"),p=u?0:1,h=f?vo(n,"scale",95)/100:1,g=vo(n,"delay",0)/1e3,_=vo(n,"origin","center"),y="opacity, transform",b=vo(n,"duration",150)/1e3,A=vo(n,"duration",75)/1e3,C="cubic-bezier(0.4, 0.0, 0.2, 1)";a&&(e._x_transition.enter.during={transformOrigin:_,transitionDelay:`${g}s`,transitionProperty:y,transitionDuration:`${b}s`,transitionTimingFunction:C},e._x_transition.enter.start={opacity:p,transform:`scale(${h})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),l&&(e._x_transition.leave.during={transformOrigin:_,transitionDelay:`${g}s`,transitionProperty:y,transitionDuration:`${A}s`,transitionTimingFunction:C},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:p,transform:`scale(${h})`})}function og(e,n,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(o=()=>{},a=()=>{}){Pu(e,n,{during:this.enter.during,start:this.enter.start,end:this.enter.end},o,a)},out(o=()=>{},a=()=>{}){Pu(e,n,{during:this.leave.during,start:this.leave.start,end:this.leave.end},o,a)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,n,r,o){const a=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let l=()=>a(r);if(n){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):l():e._x_transition?e._x_transition.in(r):l();return}e._x_hidePromise=e._x_transition?new Promise((c,u)=>{e._x_transition.out(()=>{},()=>c(o)),e._x_transitioning.beforeCancel(()=>u({isFromCancelledTransition:!0}))}):Promise.resolve(o),queueMicrotask(()=>{let c=sg(e);c?(c._x_hideChildren||(c._x_hideChildren=[]),c._x_hideChildren.push(e)):a(()=>{let u=f=>{let p=Promise.all([f._x_hidePromise,...(f._x_hideChildren||[]).map(u)]).then(([h])=>h());return delete f._x_hidePromise,delete f._x_hideChildren,p};u(e).catch(f=>{if(!f.isFromCancelledTransition)throw f})})})};function sg(e){let n=e.parentNode;if(n)return n._x_hidePromise?n:sg(n)}function Pu(e,n,{during:r,start:o,end:a}={},l=()=>{},c=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(o).length===0&&Object.keys(a).length===0){l(),c();return}let u,f,p;EA(e,{start(){u=n(e,o)},during(){f=n(e,r)},before:l,end(){u(),p=n(e,a)},after:c,cleanup(){f(),p()}})}function EA(e,n){let r,o,a,l=Lu(()=>{At(()=>{r=!0,o||n.before(),a||(n.end(),Iu()),n.after(),e.isConnected&&n.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(c){this.beforeCancels.push(c)},cancel:Lu(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();l()}),finish:l},At(()=>{n.start(),n.during()}),pA(),requestAnimationFrame(()=>{if(r)return;let c=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,u=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;c===0&&(c=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),At(()=>{n.before()}),o=!0,requestAnimationFrame(()=>{r||(At(()=>{n.end()}),Iu(),setTimeout(e._x_transitioning.finish,c+u),a=!0)})})}function vo(e,n,r){if(e.indexOf(n)===-1)return r;const o=e[e.indexOf(n)+1];if(!o||n==="scale"&&isNaN(o))return r;if(n==="duration"||n==="delay"){let a=o.match(/([0-9]+)ms/);if(a)return a[1]}return n==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(n)+2])?[o,e[e.indexOf(n)+2]].join(" "):o}var Kr=!1;function xa(e,n=()=>{}){return(...r)=>Kr?n(...r):e(...r)}function wA(e){return(...n)=>Kr&&e(...n)}function SA(e,n){e._x_dataStack&&(n._x_dataStack=e._x_dataStack,n.setAttribute("data-has-alpine-state",!0)),Kr=!0,ag(()=>{Er(n,(r,o)=>{o(r,()=>{})})}),Kr=!1}var Du=!1;function AA(e,n){n._x_dataStack||(n._x_dataStack=e._x_dataStack),Kr=!0,Du=!0,ag(()=>{OA(n)}),Kr=!1,Du=!1}function OA(e){let n=!1;Er(e,(o,a)=>{Wr(o,(l,c)=>{if(n&&zS(l))return c();n=!0,a(l,c)})})}function ag(e){let n=Xi;hh((r,o)=>{let a=n(r);return Wo(a),()=>{}}),e(),hh(n)}function xA(e){return Kr?Du?!0:e.hasAttribute("data-has-alpine-state"):!1}function lg(e,n,r,o=[]){switch(e._x_bindings||(e._x_bindings=Gi({})),e._x_bindings[n]=r,n=o.includes("camel")?RA(n):n,n){case"value":TA(e,r);break;case"style":IA(e,r);break;case"class":CA(e,r);break;case"selected":case"checked":LA(e,n,r);break;default:ug(e,n,r);break}}function TA(e,n){if(e.type==="radio")e.attributes.value===void 0&&(e.value=n),window.fromModel&&(e.checked=mh(e.value,n));else if(e.type==="checkbox")Number.isInteger(n)?e.value=n:!Array.isArray(n)&&typeof n!="boolean"&&![null,void 0].includes(n)?e.value=String(n):Array.isArray(n)?e.checked=n.some(r=>mh(r,e.value)):e.checked=!!n;else if(e.tagName==="SELECT")MA(e,n);else{if(e.value===n)return;e.value=n===void 0?"":n}}function CA(e,n){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=cc(e,n)}function IA(e,n){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Oa(e,n)}function LA(e,n,r){ug(e,n,r),DA(e,n,r)}function ug(e,n,r){[null,void 0,!1].includes(r)&&NA(n)?e.removeAttribute(n):(cg(n)&&(r=n),PA(e,n,r))}function PA(e,n,r){e.getAttribute(n)!=r&&e.setAttribute(n,r)}function DA(e,n,r){e[n]!==r&&(e[n]=r)}function MA(e,n){const r=[].concat(n).map(o=>o+"");Array.from(e.options).forEach(o=>{o.selected=r.includes(o.value)})}function RA(e){return e.toLowerCase().replace(/-(\w)/g,(n,r)=>r.toUpperCase())}function mh(e,n){return e==n}function cg(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function NA(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function FA(e,n,r){return e._x_bindings&&e._x_bindings[n]!==void 0?e._x_bindings[n]:fg(e,n,r)}function kA(e,n,r,o=!0){if(e._x_bindings&&e._x_bindings[n]!==void 0)return e._x_bindings[n];if(e._x_inlineBindings&&e._x_inlineBindings[n]!==void 0){let a=e._x_inlineBindings[n];return a.extract=o,zp(()=>di(e,a.expression))}return fg(e,n,r)}function fg(e,n,r){let o=e.getAttribute(n);return o===null?typeof r=="function"?r():r:o===""?!0:cg(n)?!![n,"true"].includes(o):o}function dg(e,n){var r;return function(){var o=this,a=arguments,l=function(){r=null,e.apply(o,a)};clearTimeout(r),r=setTimeout(l,n)}}function hg(e,n){let r;return function(){let o=this,a=arguments;r||(e.apply(o,a),r=!0,setTimeout(()=>r=!1,n))}}function pg({get:e,set:n},{get:r,set:o}){let a=!0,l,c=Xi(()=>{const u=e(),f=r();if(a)o(Jl(u)),a=!1,l=JSON.stringify(u);else{const p=JSON.stringify(u);p!==l?(o(Jl(u)),l=p):(n(Jl(f)),l=JSON.stringify(f))}JSON.stringify(r()),JSON.stringify(e())});return()=>{Wo(c)}}function Jl(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function BA(e){(Array.isArray(e)?e:[e]).forEach(r=>r(Yo))}var ai={},vh=!1;function $A(e,n){if(vh||(ai=Gi(ai),vh=!0),n===void 0)return ai[e];ai[e]=n,typeof n=="object"&&n!==null&&n.hasOwnProperty("init")&&typeof n.init=="function"&&ai[e].init(),Kp(ai[e])}function HA(){return ai}var gg={};function jA(e,n){let r=typeof n!="function"?()=>n:n;return e instanceof Element?mg(e,r()):(gg[e]=r,()=>{})}function UA(e){return Object.entries(gg).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...o)=>r(...o)}})}),e}function mg(e,n,r){let o=[];for(;o.length;)o.pop()();let a=Object.entries(n).map(([c,u])=>({name:c,value:u})),l=Xp(a);return a=a.map(c=>l.find(u=>u.name===c.name)?{name:`x-bind:${c.name}`,value:`"${c.value}"`}:c),sc(e,a,r).map(c=>{o.push(c.runCleanups),c()}),()=>{for(;o.length;)o.pop()()}}var vg={};function WA(e,n){vg[e]=n}function KA(e,n){return Object.entries(vg).forEach(([r,o])=>{Object.defineProperty(e,r,{get(){return(...a)=>o.bind(n)(...a)},enumerable:!1})}),e}var qA={get reactive(){return Gi},get release(){return Wo},get effect(){return Xi},get raw(){return Ip},version:"3.13.2",flushAndStopDeferringMutations:eA,dontAutoEvaluateFunctions:zp,disableEffectScheduling:WS,startObservingMutations:nc,stopObservingMutations:Up,setReactivityEngine:KS,onAttributeRemoved:Hp,onAttributesAdded:$p,closestDataStack:ji,skipDuringClone:xa,onlyDuringClone:wA,addRootSelector:Mp,addInitSelector:Rp,addScopeToNode:Ko,deferMutations:QS,mapAttributes:ac,evaluateLater:Wt,interceptInit:VS,setEvaluator:oA,mergeProxies:qo,extractProp:kA,findClosest:Aa,onElRemoved:Qu,closestRoot:Sa,destroyTree:Zu,interceptor:qp,transition:Pu,setStyles:Oa,mutateDom:At,directive:yt,entangle:pg,throttle:hg,debounce:dg,evaluate:di,initTree:Er,nextTick:uc,prefixed:Ji,prefix:uA,plugin:BA,magic:$n,store:$A,start:YS,clone:AA,cloneNode:SA,bound:FA,$data:Wp,walk:Wr,data:WA,bind:jA},Yo=qA;function YA(e,n){const r=Object.create(null),o=e.split(",");for(let a=0;a!!r[a.toLowerCase()]:a=>!!r[a]}var zA=Object.freeze({}),VA=Object.prototype.hasOwnProperty,Ta=(e,n)=>VA.call(e,n),hi=Array.isArray,Co=e=>_g(e)==="[object Map]",GA=e=>typeof e=="string",fc=e=>typeof e=="symbol",Ca=e=>e!==null&&typeof e=="object",XA=Object.prototype.toString,_g=e=>XA.call(e),yg=e=>_g(e).slice(8,-1),dc=e=>GA(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,JA=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},ZA=JA(e=>e.charAt(0).toUpperCase()+e.slice(1)),bg=(e,n)=>e!==n&&(e===e||n===n),Mu=new WeakMap,_o=[],qn,pi=Symbol("iterate"),Ru=Symbol("Map key iterate");function QA(e){return e&&e._isEffect===!0}function eO(e,n=zA){QA(e)&&(e=e.raw);const r=rO(e,n);return n.lazy||r(),r}function tO(e){e.active&&(Eg(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var nO=0;function rO(e,n){const r=function(){if(!r.active)return e();if(!_o.includes(r)){Eg(r);try{return oO(),_o.push(r),qn=r,e()}finally{_o.pop(),wg(),qn=_o[_o.length-1]}}};return r.id=nO++,r.allowRecurse=!!n.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=n,r}function Eg(e){const{deps:n}=e;if(n.length){for(let r=0;r{h&&h.forEach(g=>{(g!==qn||g.allowRecurse)&&u.add(g)})};if(n==="clear")c.forEach(f);else if(r==="length"&&hi(e))c.forEach((h,g)=>{(g==="length"||g>=o)&&f(h)});else switch(r!==void 0&&f(c.get(r)),n){case"add":hi(e)?dc(r)&&f(c.get("length")):(f(c.get(pi)),Co(e)&&f(c.get(Ru)));break;case"delete":hi(e)||(f(c.get(pi)),Co(e)&&f(c.get(Ru)));break;case"set":Co(e)&&f(c.get(pi));break}const p=h=>{h.options.onTrigger&&h.options.onTrigger({effect:h,target:e,key:r,type:n,newValue:o,oldValue:a,oldTarget:l}),h.options.scheduler?h.options.scheduler(h):h()};u.forEach(p)}var sO=YA("__proto__,__v_isRef,__isVue"),Sg=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(fc)),aO=Ag(),lO=Ag(!0),_h=uO();function uO(){const e={};return["includes","indexOf","lastIndexOf"].forEach(n=>{e[n]=function(...r){const o=ot(this);for(let l=0,c=this.length;l{e[n]=function(...r){iO();const o=ot(this)[n].apply(this,r);return wg(),o}}),e}function Ag(e=!1,n=!1){return function(o,a,l){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_raw"&&l===(e?n?OO:Cg:n?AO:Tg).get(o))return o;const c=hi(o);if(!e&&c&&Ta(_h,a))return Reflect.get(_h,a,l);const u=Reflect.get(o,a,l);return(fc(a)?Sg.has(a):sO(a))||(e||Bn(o,"get",a),n)?u:Nu(u)?!c||!dc(a)?u.value:u:Ca(u)?e?Ig(u):vc(u):u}}var cO=fO();function fO(e=!1){return function(r,o,a,l){let c=r[o];if(!e&&(a=ot(a),c=ot(c),!hi(r)&&Nu(c)&&!Nu(a)))return c.value=a,!0;const u=hi(r)&&dc(o)?Number(o)Ca(e)?vc(e):e,gc=e=>Ca(e)?Ig(e):e,mc=e=>e,Ia=e=>Reflect.getPrototypeOf(e);function Bs(e,n,r=!1,o=!1){e=e.__v_raw;const a=ot(e),l=ot(n);n!==l&&!r&&Bn(a,"get",n),!r&&Bn(a,"get",l);const{has:c}=Ia(a),u=o?mc:r?gc:pc;if(c.call(a,n))return u(e.get(n));if(c.call(a,l))return u(e.get(l));e!==a&&e.get(n)}function $s(e,n=!1){const r=this.__v_raw,o=ot(r),a=ot(e);return e!==a&&!n&&Bn(o,"has",e),!n&&Bn(o,"has",a),e===a?r.has(e):r.has(e)||r.has(a)}function Hs(e,n=!1){return e=e.__v_raw,!n&&Bn(ot(e),"iterate",pi),Reflect.get(e,"size",e)}function yh(e){e=ot(e);const n=ot(this);return Ia(n).has.call(n,e)||(n.add(e),qr(n,"add",e,e)),this}function bh(e,n){n=ot(n);const r=ot(this),{has:o,get:a}=Ia(r);let l=o.call(r,e);l?xg(r,o,e):(e=ot(e),l=o.call(r,e));const c=a.call(r,e);return r.set(e,n),l?bg(n,c)&&qr(r,"set",e,n,c):qr(r,"add",e,n),this}function Eh(e){const n=ot(this),{has:r,get:o}=Ia(n);let a=r.call(n,e);a?xg(n,r,e):(e=ot(e),a=r.call(n,e));const l=o?o.call(n,e):void 0,c=n.delete(e);return a&&qr(n,"delete",e,void 0,l),c}function wh(){const e=ot(this),n=e.size!==0,r=Co(e)?new Map(e):new Set(e),o=e.clear();return n&&qr(e,"clear",void 0,void 0,r),o}function js(e,n){return function(o,a){const l=this,c=l.__v_raw,u=ot(c),f=n?mc:e?gc:pc;return!e&&Bn(u,"iterate",pi),c.forEach((p,h)=>o.call(a,f(p),f(h),l))}}function Us(e,n,r){return function(...o){const a=this.__v_raw,l=ot(a),c=Co(l),u=e==="entries"||e===Symbol.iterator&&c,f=e==="keys"&&c,p=a[e](...o),h=r?mc:n?gc:pc;return!n&&Bn(l,"iterate",f?Ru:pi),{next(){const{value:g,done:_}=p.next();return _?{value:g,done:_}:{value:u?[h(g[0]),h(g[1])]:h(g),done:_}},[Symbol.iterator](){return this}}}}function $r(e){return function(...n){{const r=n[0]?`on key "${n[0]}" `:"";console.warn(`${ZA(e)} operation ${r}failed: target is readonly.`,ot(this))}return e==="delete"?!1:this}}function vO(){const e={get(l){return Bs(this,l)},get size(){return Hs(this)},has:$s,add:yh,set:bh,delete:Eh,clear:wh,forEach:js(!1,!1)},n={get(l){return Bs(this,l,!1,!0)},get size(){return Hs(this)},has:$s,add:yh,set:bh,delete:Eh,clear:wh,forEach:js(!1,!0)},r={get(l){return Bs(this,l,!0)},get size(){return Hs(this,!0)},has(l){return $s.call(this,l,!0)},add:$r("add"),set:$r("set"),delete:$r("delete"),clear:$r("clear"),forEach:js(!0,!1)},o={get(l){return Bs(this,l,!0,!0)},get size(){return Hs(this,!0)},has(l){return $s.call(this,l,!0)},add:$r("add"),set:$r("set"),delete:$r("delete"),clear:$r("clear"),forEach:js(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Us(l,!1,!1),r[l]=Us(l,!0,!1),n[l]=Us(l,!1,!0),o[l]=Us(l,!0,!0)}),[e,r,n,o]}var[_O,yO,bO,EO]=vO();function Og(e,n){const r=n?e?EO:bO:e?yO:_O;return(o,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?o:Reflect.get(Ta(r,a)&&a in o?r:o,a,l)}var wO={get:Og(!1,!1)},SO={get:Og(!0,!1)};function xg(e,n,r){const o=ot(r);if(o!==r&&n.call(e,o)){const a=yg(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Tg=new WeakMap,AO=new WeakMap,Cg=new WeakMap,OO=new WeakMap;function xO(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function TO(e){return e.__v_skip||!Object.isExtensible(e)?0:xO(yg(e))}function vc(e){return e&&e.__v_isReadonly?e:Lg(e,!1,gO,wO,Tg)}function Ig(e){return Lg(e,!0,mO,SO,Cg)}function Lg(e,n,r,o,a){if(!Ca(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(n&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const c=TO(e);if(c===0)return e;const u=new Proxy(e,c===2?o:r);return a.set(e,u),u}function ot(e){return e&&ot(e.__v_raw)||e}function Nu(e){return!!(e&&e.__v_isRef===!0)}$n("nextTick",()=>uc);$n("dispatch",e=>xo.bind(xo,e));$n("watch",(e,{evaluateLater:n,effect:r})=>(o,a)=>{let l=n(o),c=!0,u,f=r(()=>l(p=>{JSON.stringify(p),c?u=p:queueMicrotask(()=>{a(p,u),u=p}),c=!1}));e._x_effects.delete(f)});$n("store",HA);$n("data",e=>Wp(e));$n("root",e=>Sa(e));$n("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=qo(CO(e))),e._x_refs_proxy));function CO(e){let n=[],r=e;for(;r;)r._x_refs&&n.push(r._x_refs),r=r.parentNode;return n}var Zl={};function Pg(e){return Zl[e]||(Zl[e]=0),++Zl[e]}function IO(e,n){return Aa(e,r=>{if(r._x_ids&&r._x_ids[n])return!0})}function LO(e,n){e._x_ids||(e._x_ids={}),e._x_ids[n]||(e._x_ids[n]=Pg(n))}$n("id",e=>(n,r=null)=>{let o=IO(e,n),a=o?o._x_ids[n]:Pg(n);return r?`${n}-${a}-${r}`:`${n}-${a}`});$n("el",e=>e);Dg("Focus","focus","focus");Dg("Persist","persist","persist");function Dg(e,n,r){$n(n,o=>br(`You can't use [$${n}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,o))}yt("modelable",(e,{expression:n},{effect:r,evaluateLater:o,cleanup:a})=>{let l=o(n),c=()=>{let h;return l(g=>h=g),h},u=o(`${n} = __placeholder`),f=h=>u(()=>{},{scope:{__placeholder:h}}),p=c();f(p),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let h=e._x_model.get,g=e._x_model.set,_=pg({get(){return h()},set(y){g(y)}},{get(){return c()},set(y){f(y)}});a(_)})});yt("teleport",(e,{modifiers:n,expression:r},{cleanup:o})=>{e.tagName.toLowerCase()!=="template"&&br("x-teleport can only be used on a