turbo_boost-streams 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d34f3c065618c99d866f963865f2c7ed65c95105613f6d5833562dca8bb75478
4
- data.tar.gz: 58c6e8891e73f27dbbe598f9c00f2ae0c7b2d5e69b0c876621b571ff84d76ef2
3
+ metadata.gz: 15c7c359d02fe04f0120ad3cda6312e8e46ecf6e580e6c1581cf2640d419e897
4
+ data.tar.gz: 4f17167f8ae9f752d39915bf2398315957c50c7ca96114ca7ed59374ecd31a77
5
5
  SHA512:
6
- metadata.gz: 0b395408d666ad8461f0409c970be4ed868a5f965b6178f4fa87771a455ed299dcce89fa3bcbd816aa4ea57f8e130f0a96439a0766aa7c0ecba602c46d500933
7
- data.tar.gz: f2c49f2b992bb550fb4225866a64d51c9b0ca32cea8ce0e6dd8e9af0ca7c76682c57ad90be961e31f6338edccac185b2a55df5bbe09135fcc22e5a69adab0835
6
+ metadata.gz: 1c1028f6819a4bd089ce9b7e39b874412bce205892a7ecb4dcfca6e3c99e2cf4ca1d9d24a586d5b6eecb6b55523f078fc7e86e89d0a93c3ca2cb2a4b56416b86
7
+ data.tar.gz: 1d10520799a45098fdf0f428226a6efb904fcdd7e78879340198aeb056a26abbada3ed57e9a6b34f7e2025ac2e0c3dfc1880421fc3690869618a6a167e5421c1
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Nate Hopkins (hopsoft)
1
+ Copyright 2023 Nate Hopkins (hopsoft)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  </h1>
9
9
  <p align="center">
10
10
  <a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
11
- <img alt="Lines of Code" src="https://img.shields.io/badge/loc-249-47d299.svg" />
11
+ <img alt="Lines of Code" src="https://img.shields.io/badge/loc-238-47d299.svg" />
12
12
  </a>
13
13
  <a href="https://codeclimate.com/github/hopsoft/turbo_boost-streams/maintainability">
14
14
  <img src="https://api.codeclimate.com/v1/badges/a6671f4294ec0f21f732/maintainability" />
@@ -63,7 +63,7 @@ browser's [Document Object Model (DOM).](https://developer.mozilla.org/en-US/doc
63
63
  turbo_stream.invoke "console.log", args: ["Hello World!"]
64
64
  ```
65
65
 
66
- **Thats right!**
66
+ **That's right!**
67
67
  You can `invoke` any DOM method on the client with Turbo Streams.
68
68
 
69
69
  <!-- Tocer[start]: Auto-generated, don't remove. -->
@@ -72,6 +72,7 @@ You can `invoke` any DOM method on the client with Turbo Streams.
72
72
 
73
73
  - [Why boosted Streams?](#why-boosted-streams)
74
74
  - [Sponsors](#sponsors)
75
+ - [Community](#community)
75
76
  - [Dependencies](#dependencies)
76
77
  - [Installation](#installation)
77
78
  - [Setup](#setup)
@@ -85,9 +86,11 @@ You can `invoke` any DOM method on the client with Turbo Streams.
85
86
  - [Background Job Queues](#background-job-queues)
86
87
  - [FAQ](#faq)
87
88
  - [A Word of Warning](#a-word-of-warning)
88
- - [Community](#community)
89
- - [Discussions](#discussions)
90
- - [Twitter](#twitter)
89
+ - [Developing](#developing)
90
+ - [Notable Files](#notable-files)
91
+ - [Deploying](#deploying)
92
+ - [Notable Files](#notable-files-1)
93
+ - [How to Deploy](#how-to-deploy)
91
94
  - [Releasing](#releasing)
92
95
  - [About TurboBoost](#about-turboboost)
93
96
  - [License](#license)
@@ -97,9 +100,9 @@ You can `invoke` any DOM method on the client with Turbo Streams.
97
100
  ## Why boosted Streams?
98
101
 
99
102
  Turbo Streams [intentionally restrict](https://turbo.hotwired.dev/handbook/streams#but-what-about-running-javascript%3F)
100
- official actions to CRUD related activity.
103
+ official actions to CRUD-related activity.
101
104
  These [official actions](https://turbo.hotwired.dev/reference/streams#the-seven-actions) work well for a considerable number of use cases.
102
- *Try pushing Turbo Streams as far as possible before reaching for boosted streams.*
105
+ *We recommend that you push Turbo Streams as far as possible before reaching for __boosted streams__.*
103
106
 
104
107
  If you find that CRUD isn't enough, boosted streams are there to handle pretty much everything else.
105
108
 
@@ -114,6 +117,10 @@ If you find that CRUD isn't enough, boosted streams are there to handle pretty m
114
117
  </a>
115
118
  </p>
116
119
 
120
+ ## Community
121
+
122
+ Come join the party with over 2200+ like-minded friendly Rails/Hotwire enthusiasts on our [Discord server](https://discord.gg/stimulus-reflex).
123
+
117
124
  ## Dependencies
118
125
 
119
126
  - [rails](https://rubygems.org/gems/rails) `>=6.1`
@@ -123,7 +130,7 @@ If you find that CRUD isn't enough, boosted streams are there to handle pretty m
123
130
 
124
131
  ## Installation
125
132
 
126
- Be sure to install the same version for each libary.
133
+ Be sure to install the same version for each library.
127
134
 
128
135
  ```sh
129
136
  bundle add "turbo_boost-streams --version VERSION"
@@ -132,7 +139,7 @@ yarn add "@turbo-boost/streams@VERSION --exact"
132
139
 
133
140
  ## Setup
134
141
 
135
- Import and intialize Turbo Boost Streams in your application.
142
+ Import and initialize Turbo Boost Streams in your application.
136
143
 
137
144
  ```diff
138
145
  # Gemfile
@@ -288,11 +295,11 @@ You can also broadcast DOM invocations to subscribed users.
288
295
  # app/models/post.rb
289
296
  class Post < ApplicationRecord
290
297
  after_save do
291
- # emit a message in the browser conosle for anyone subscribed to this post
292
- broadcast_invoke "console.log", args: ["Post was saved! #{to_gid.to_s}"]
298
+ # emit a message in the browser console for anyone subscribed to this post
299
+ broadcast_invoke "console.log", args: ["Post was saved! #{to_gid}"]
293
300
 
294
301
  # broadcast with a background job
295
- broadcast_invoke_later "console.log", args: ["Post was saved! #{to_gid.to_s}"]
302
+ broadcast_invoke_later "console.log", args: ["Post was saved! #{to_gid}"]
296
303
  end
297
304
  end
298
305
  ```
@@ -304,19 +311,19 @@ You can also broadcast DOM invocations to subscribed users.
304
311
  @post = Post.find params[:id]
305
312
 
306
313
  if @post.update post_params
307
- # emit a message in the browser conosle for anyone subscribed to this post
308
- @post.broadcast_invoke "console.log", args: ["Post was saved! #{to_gid.to_s}"]
314
+ # emit a message in the browser console for anyone subscribed to this post
315
+ @post.broadcast_invoke "console.log", args: ["Post was saved! #{@post.to_gid}"]
309
316
 
310
317
  # broadcast with a background job
311
- @post.broadcast_invoke_later "console.log", args: ["Post was saved! #{to_gid.to_s}"]
318
+ @post.broadcast_invoke_later "console.log", args: ["Post was saved! #{@postto_gid}"]
312
319
 
313
320
  # you can also broadcast directly from the channel
314
321
  Turbo::StreamsChannel.broadcast_invoke_to @post, "console.log",
315
- args: ["Post was saved! #{@post.to_gid.to_s}"]
322
+ args: ["Post was saved! #{@post.to_gid}"]
316
323
 
317
324
  # broadcast with a background job
318
325
  Turbo::StreamsChannel.broadcast_invoke_later_to @post, "console.log",
319
- args: ["Post was saved! #{@post.to_gid.to_s}"]
326
+ args: ["Post was saved! #{@post.to_gid}"]
320
327
  end
321
328
  end
322
329
  end
@@ -338,7 +345,7 @@ TurboBoost::Streams::BroadcastInvokeJob.queue_name = :turbo_streams
338
345
 
339
346
  - Isn't this just RJS?
340
347
 
341
- > No. But, perhaps it could be considered RJS's "modern" spirtual successor. 🤷‍♂️
348
+ > No. But, perhaps it could be considered RJS's "modern" spiritual successor. 🤷‍♂️
342
349
  > Though it embraces JavaScript instead of trying to avoid it.
343
350
 
344
351
  - Does it use `eval`?
@@ -353,44 +360,91 @@ It allows you to break free from the strict CRUD/REST conventions that Rails and
353
360
  You should consider boosted streams a substrate for building additional libraries and abstractions.
354
361
 
355
362
  *Please don't use TurboBoost Streams to manually orchestrate micro DOM updates (from the server).
356
- Such techniques are what gave rise to Full Stack Frontend and sent the industry on a decade long journey of complexity and frustration.*
363
+ Such techniques are what gave rise to Full Stack Frontend and sent the industry on a decade-long journey of complexity and frustration.*
357
364
 
358
- ## Community
365
+ ## Developing
366
+
367
+ This project supports a fully Dockerized development experience.
368
+
369
+ 1. Simply run the following commands to get started.
370
+
371
+ ```sh
372
+ git clone -o github https://github.com/hopsoft/turbo_boost-streams.git
373
+ cd turbo_boost-streams
374
+ ```
375
+
376
+ ```sh
377
+ docker compose up -d # start the environment (will take a few minutes on 1st run)
378
+ docker exec -it turbo_boost-streams-web rake # run the test suite
379
+ open http://localhost:3000 # open the `test/dummy` app in a browser
380
+ ```
381
+
382
+ And, if you're using the [containers gem (WIP)](https://github.com/hopsoft/containers).
383
+
384
+ ```sh
385
+ containers up # start the environment (will take a few minutes on 1st run)
386
+ containers rake # run the test suite
387
+ open http://localhost:3000 # open the `test/dummy` app in a browser
388
+ ```
389
+
390
+ 1. Edit files using your preferred tools on the host machine.
391
+
392
+ 1. That's it!
393
+
394
+ #### Notable Files
395
+
396
+ - [Dockerfile](https://github.com/hopsoft/turbo_boost-streams/blob/main/Dockerfile)
397
+ - [docker-compose.yml](https://github.com/hopsoft/turbo_boost-streams/blob/main/docker-compose.yml)
398
+ - [bin/docker/run/local](https://github.com/hopsoft/turbo_boost-streams/blob/main/bin/docker/run/local)
399
+
400
+ ## Deploying
401
+
402
+ This project supports Dockerized deployment via the same configuration used for development,
403
+ and... it actually runs the [`test/dummy`](https://github.com/hopsoft/turbo_boost-streams/tree/main/test/dummy) application in "production". 🤯
359
404
 
360
- ### Discussions
405
+ The `test/dummy` app serves the following purposes.
361
406
 
362
- Feel free to add to the conversation here on [GitHub Discussions](https://github.com/hopsoft/turbo_boost-streams/discussions).
407
+ - Test app for the Rails engine
408
+ - Documentation and marketing site with interactive demos
363
409
 
364
- ### Twitter
410
+ You can [__see it in action__ here.](https://hopsoft.io/@turbo-boost/streams)
411
+ _How's that for innovative simplicity?_
365
412
 
366
- Connect with the core team on Twitter.
413
+ #### Notable Files
367
414
 
368
- <a href="https://twitter.com/hopsoft" target="_blank">
369
- <img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/hopsoft?logo=twitter&style=social">
370
- </a>
415
+ - [Dockerfile](https://github.com/hopsoft/turbo_boost-streams/blob/main/Dockerfile)
416
+ - [fly.toml](https://github.com/hopsoft/turbo_boost-streams/blob/main/fly.toml)
417
+ - [bin/docker/run/remote](https://github.com/hopsoft/turbo_boost-streams/blob/main/bin/docker/run/remote)
418
+
419
+ #### How to Deploy
420
+
421
+ ```sh
422
+ fly deploy
423
+ ```
371
424
 
372
425
  ## Releasing
373
426
 
374
427
  1. Run `yarn` and `bundle` to pick up the latest
375
428
  1. Bump version number at `lib/turbo_boost-streams/version.rb`. Pre-release versions use `.preN`
376
- 1. Run `rake build` and `yarn build`
429
+ 1. Bump version number at `package.json` _(make sure it matches)_. Pre-release versions use `-preN`
377
430
  1. Run `bin/standardize`
431
+ 1. Run `rake build` and `yarn build`
378
432
  1. Commit and push changes to GitHub
379
433
  1. Run `rake release`
380
- 1. Run `yarn publish --no-git-tag-version --access public`
381
- 1. Yarn will prompt you for the new version. Pre-release versions use `-preN`
382
- 1. Commit and push changes to GitHub
434
+ 1. Run `yarn publish --no-git-tag-version --access public --new-version X.X.X` _(use same version number)_
383
435
  1. Create a new release on GitHub ([here](https://github.com/hopsoft/turbo_boost-streams/releases)) and generate the changelog for the stable release for it
384
436
 
385
437
  ## About TurboBoost
386
438
 
387
- TurboBoost is a suite of projects that enhance Rails and Hotwire to make building server rendered reactive applications simpler and more powerful.
388
- Be sure to check out all of the various the libraries.
439
+ TurboBoost is a suite of libraries that enhance Rails, Hotwire, and Turbo... making them even more powerful and boosting your productivity.
440
+ Be sure to check out all of the various libraries.
389
441
 
390
442
  - [Streams](https://github.com/hopsoft/turbo_boost-streams)
391
443
  - [Commands](https://github.com/hopsoft/turbo_boost-commands)
444
+ - [Elements](https://github.com/hopsoft/turbo_boost-elements)
445
+ - [Devtools](https://github.com/hopsoft/turbo_boost-devtools)
392
446
  - Coming soon...
393
447
 
394
448
  ## License
395
449
 
396
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
450
+ These libraries are available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,6 +1,6 @@
1
- var fr=Object.defineProperty,dr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var _r=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable;var Kt=(e,t,n)=>t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W=(e,t)=>{for(var n in t||(t={}))_r.call(t,n)&&Kt(e,n,t[n]);if(jt)for(var n of jt(t))hr.call(t,n)&&Kt(e,n,t[n]);return e},Ee=(e,t)=>dr(e,pr(t));var Ze=!1,Qe=!1,G=[];function gr(e){vr(e)}function vr(e){G.includes(e)||G.push(e),yr()}function Ut(e){let t=G.indexOf(e);t!==-1&&G.splice(t,1)}function yr(){!Qe&&!Ze&&(Ze=!0,queueMicrotask(xr))}function xr(){Ze=!1,Qe=!0;for(let e=0;e<G.length;e++)G[e]();G.length=0,Qe=!1}var ie,oe,ge,Yt,Xe=!0;function mr(e){Xe=!1,e(),Xe=!0}function br(e){ie=e.reactive,ge=e.release,oe=t=>e.effect(t,{scheduler:n=>{Xe?gr(n):n()}}),Yt=e.raw}function Ft(e){oe=e}function wr(e){let t=()=>{};return[r=>{let i=oe(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),ge(i))},i},()=>{t()}]}var Gt=[],Jt=[],Zt=[];function Er(e){Zt.push(e)}function Qt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Jt.push(t))}function Ar(e){Gt.push(e)}function Sr(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Xt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var pt=new MutationObserver(vt),_t=!1;function ht(){pt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),_t=!0}function en(){Or(),pt.disconnect(),_t=!1}var de=[],Ue=!1;function Or(){de=de.concat(pt.takeRecords()),de.length&&!Ue&&(Ue=!0,queueMicrotask(()=>{Tr(),Ue=!1}))}function Tr(){vt(de),de.length=0}function C(e){if(!_t)return e();en();let t=e();return ht(),t}var gt=!1,Oe=[];function Mr(){gt=!0}function Cr(){gt=!1,vt(Oe),Oe=[]}function vt(e){if(gt){Oe=Oe.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(a=>a.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,s=e[o].attributeName,u=e[o].oldValue,l=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:s,value:a.getAttribute(s)})},f=()=>{i.has(a)||i.set(a,[]),i.get(a).push(s)};a.hasAttribute(s)&&u===null?l():a.hasAttribute(s)?(f(),l()):f()}i.forEach((o,a)=>{Xt(a,o)}),r.forEach((o,a)=>{Gt.forEach(s=>s(a,o))});for(let o of n)if(!t.includes(o)&&(Jt.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,Zt.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function tn(e){return ye(te(e))}function ve(e,t,n){return e._x_dataStack=[t,...te(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function Dt(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function te(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?te(e.host):e.parentNode?te(e.parentNode):[]}function ye(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,s=o.set,u=o;a=a&&a.bind(t),s=s&&s.bind(t),a&&(a._x_alreadyBound=!0),s&&(s._x_alreadyBound=!0),Object.defineProperty(i,r,Ee(W({},u),{get:a,set:s}))}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function nn(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:s}])=>{if(s===!1||a===void 0)return;let u=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,u,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,u)})};return n(e)}function rn(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>Nr(r,i),a=>et(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,s)=>{let u=r.initialize(o,a,s);return n.initialValue=u,i(o,a,s)}}else n.initialValue=r;return n}}function Nr(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function et(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),et(e[t[0]],t.slice(1),n)}}var on={};function L(e,t){on[e]=t}function tt(e,t){return Object.entries(on).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=cn(t);return i=W({interceptor:rn},i),Qt(t,o),r(t,i)},enumerable:!1})}),e}function Rr(e,t,n,...r){try{return n(...r)}catch(i){he(i,e,t)}}function he(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
1
+ var Er=Object.defineProperty,Ar=Object.defineProperties;var Sr=Object.getOwnPropertyDescriptors;var Bt=Object.getOwnPropertySymbols;var Cr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable;var Lt=(e,t,n)=>t in e?Er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||(t={}))Cr.call(t,n)&&Lt(e,n,t[n]);if(Bt)for(var n of Bt(t))Or.call(t,n)&&Lt(e,n,t[n]);return e},Ft=(e,t)=>Ar(e,Sr(t));var Ve=!1,Je=!1,J=[],Ye=-1;function Tr(e){Mr(e)}function Mr(e){J.includes(e)||J.push(e),Ir()}function en(e){let t=J.indexOf(e);t!==-1&&t>Ye&&J.splice(t,1)}function Ir(){!Je&&!Ve&&(Ve=!0,queueMicrotask(Nr))}function Nr(){Ve=!1,Je=!0;for(let e=0;e<J.length;e++)J[e](),Ye=e;J.length=0,Ye=-1,Je=!1}var oe,Z,se,tn,Ge=!0;function $r(e){Ge=!1,e(),Ge=!0}function Pr(e){oe=e.reactive,se=e.release,Z=t=>e.effect(t,{scheduler:n=>{Ge?Tr(n):n()}}),tn=e.raw}function Kt(e){Z=e}function kr(e){let t=()=>{};return[r=>{let i=Z(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),se(i))},i},()=>{t()}]}function nn(e,t){let n=!0,r,i=Z(()=>{let o=e();JSON.stringify(o),n?r=o:queueMicrotask(()=>{t(o,r),r=o}),n=!1});return()=>se(i)}function pe(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function H(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>H(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)H(r,t,!1),r=r.nextElementSibling}function F(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Dt=!1;function jr(){Dt&&F("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Dt=!0,document.body||F("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),pe(document,"alpine:init"),pe(document,"alpine:initializing"),gt(),Lr(t=>K(t,H)),pt(t=>dt(t)),pn((t,n)=>{mt(t,n).forEach(r=>r())});let e=t=>!Pe(t.parentElement,!0);Array.from(document.querySelectorAll(sn().join(","))).filter(e).forEach(t=>{K(t)}),pe(document,"alpine:initialized")}var ft=[],rn=[];function on(){return ft.map(e=>e())}function sn(){return ft.concat(rn).map(e=>e())}function an(e){ft.push(e)}function ln(e){rn.push(e)}function Pe(e,t=!1){return ke(e,n=>{if((t?sn():on()).some(i=>n.matches(i)))return!0})}function ke(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return ke(e.parentElement,t)}}function Rr(e){return on().some(t=>e.matches(t))}var un=[];function Br(e){un.push(e)}function K(e,t=H,n=()=>{}){Zr(()=>{t(e,(r,i)=>{n(r,i),un.forEach(o=>o(r,i)),mt(r,r.attributes).forEach(o=>o()),r._x_ignore&&i()})})}function dt(e){H(e,t=>{hn(t),Fr(t)})}var cn=[],fn=[],dn=[];function Lr(e){dn.push(e)}function pt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,fn.push(t))}function pn(e){cn.push(e)}function _n(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function hn(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}function Fr(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}var _t=new MutationObserver(xt),ht=!1;function gt(){_t.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),ht=!0}function gn(){Kr(),_t.disconnect(),ht=!1}var ue=[];function Kr(){let e=_t.takeRecords();ue.push(()=>e.length>0&&xt(e));let t=ue.length;queueMicrotask(()=>{if(ue.length===t)for(;ue.length>0;)ue.shift()()})}function O(e){if(!ht)return e();gn();let t=e();return gt(),t}var vt=!1,Ie=[];function Dr(){vt=!0}function zr(){vt=!1,xt(Ie),Ie=[]}function xt(e){if(vt){Ie=Ie.concat(e);return}let t=new Set,n=new Set,r=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(s=>s.nodeType===1&&t.add(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&n.add(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},f=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?u():s.hasAttribute(a)?(f(),u()):f()}i.forEach((o,s)=>{hn(s,o)}),r.forEach((o,s)=>{cn.forEach(a=>a(s,o))});for(let o of n)t.has(o)||(fn.forEach(s=>s(o)),dt(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,dn.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function vn(e){return ve(re(e))}function ge(e,t,n){return e._x_dataStack=[t,...re(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function re(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?re(e.host):e.parentNode?re(e.parentNode):[]}function ve(e){return new Proxy({objects:e},Hr)}var Hr={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t))},get({objects:e},t,n){return t=="toJSON"?qr:Reflect.get(e.find(r=>Object.prototype.hasOwnProperty.call(r,t))||{},t,n)},set({objects:e},t,n,r){let i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o!=null&&o.set&&(o!=null&&o.get)?Reflect.set(i,t,n,r):Reflect.set(i,t,n)}};function qr(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function xn(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[o]=s.initialize(e,l,o):t(s)&&s!==r&&!(s instanceof Element)&&n(s,l)})};return n(e)}function bn(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>Wr(r,i),s=>Xe(r,i,s),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,s,a)=>{let l=r.initialize(o,s,a);return n.initialValue=l,i(o,s,a)}}else n.initialValue=r;return n}}function Wr(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Xe(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Xe(e[t[0]],t.slice(1),n)}}var mn={};function j(e,t){mn[e]=t}function Ze(e,t){return Object.entries(mn).forEach(([n,r])=>{let i=null;function o(){if(i)return i;{let[s,a]=Cn(t);return i=ne({interceptor:bn},s),pt(t,a),i}}Object.defineProperty(e,`$${n}`,{get(){return r(t,o())},enumerable:!1})}),e}function Ur(e,t,n,...r){try{return n(...r)}catch(i){he(i,e,t)}}function he(e,t,n=void 0){e=Object.assign(e!=null?e:{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
2
2
 
3
3
  ${n?'Expression: "'+n+`"
4
4
 
5
- `:""}`,t),setTimeout(()=>{throw e},0)}var Se=!0;function Ir(e){let t=Se;Se=!1,e(),Se=t}function ee(e,t,n={}){let r;return I(e,t)(i=>r=i,n),r}function I(...e){return an(...e)}var an=sn;function Pr(e){an=e}function sn(e,t){let n={};tt(n,e);let r=[n,...te(e)];if(typeof t=="function")return $r(r,t);let i=Lr(r,t,e);return Rr.bind(null,e,t,i)}function $r(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(ye([r,...e]),i);Te(n,o)}}var Ye={};function kr(e,t){if(Ye[e])return Ye[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(a){return he(a,t,e),Promise.resolve()}})();return Ye[e]=o,o}function Lr(e,t,n){let r=kr(t,n);return(i=()=>{},{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let s=ye([o,...e]);if(typeof r=="function"){let u=r(r,s).catch(l=>he(l,n,t));r.finished?(Te(i,r.result,s,a,n),r.result=void 0):u.then(l=>{Te(i,l,s,a,n)}).catch(l=>he(l,n,t)).finally(()=>r.result=void 0)}}}function Te(e,t,n,r,i){if(Se&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(a=>Te(e,a,n,r)).catch(a=>he(a,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var yt="x-";function ae(e=""){return yt+e}function jr(e){yt=e}var nt={};function S(e,t){return nt[e]=t,{before(n){var i;if(!nt[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}let r=(i=Y.indexOf(n))!=null?i:Y.indexOf("DEFAULT");r>=0&&Y.splice(r,0,e)}}}function xt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([s,u])=>({name:s,value:u})),a=un(o);o=o.map(s=>a.find(u=>u.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(o)}let r={};return t.map(pn((o,a)=>r[o]=a)).filter(hn).map(Dr(r,n)).sort(Br).map(o=>Fr(e,o))}function un(e){return Array.from(e).map(pn()).filter(t=>!hn(t))}var rt=!1,fe=new Map,ln=Symbol();function Kr(e){rt=!0;let t=Symbol();ln=t,fe.set(t,[]);let n=()=>{for(;fe.get(t).length;)fe.get(t).shift()();fe.delete(t)},r=()=>{rt=!1,n()};e(n),r()}function cn(e){let t=[],n=s=>t.push(s),[r,i]=wr(e);return t.push(i),[{Alpine:me,effect:r,cleanup:n,evaluateLater:I.bind(I,e),evaluate:ee.bind(ee,e)},()=>t.forEach(s=>s())]}function Fr(e,t){let n=()=>{},r=nt[t.type]||n,[i,o]=cn(e);Sr(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),rt?fe.get(ln).push(r):r())};return a.runCleanups=o,a}var fn=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),dn=e=>e;function pn(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=_n.reduce((o,a)=>a(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var _n=[];function mt(e){_n.push(e)}function hn({name:e}){return gn().test(e)}var gn=()=>new RegExp(`^${yt}([^:^.]+)\\b`);function Dr(e,t){return({name:n,value:r})=>{let i=n.match(gn()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(u=>u.replace(".","")),expression:r,original:s}}}var it="DEFAULT",Y=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","combobox","bind","init","for","mask","model","modelable","transition","show","if",it,"teleport"];function Br(e,t){let n=Y.indexOf(e.type)===-1?it:e.type,r=Y.indexOf(t.type)===-1?it:t.type;return Y.indexOf(n)-Y.indexOf(r)}function pe(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function H(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>H(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)H(r,t,!1),r=r.nextElementSibling}function ne(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Hr(){document.body||ne("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),pe(document,"alpine:init"),pe(document,"alpine:initializing"),ht(),Er(t=>z(t,H)),Qt(t=>En(t)),Ar((t,n)=>{xt(t,n).forEach(r=>r())});let e=t=>!Re(t.parentElement,!0);Array.from(document.querySelectorAll(xn())).filter(e).forEach(t=>{z(t)}),pe(document,"alpine:initialized")}var bt=[],vn=[];function yn(){return bt.map(e=>e())}function xn(){return bt.concat(vn).map(e=>e())}function mn(e){bt.push(e)}function bn(e){vn.push(e)}function Re(e,t=!1){return Ie(e,n=>{if((t?xn():yn()).some(i=>n.matches(i)))return!0})}function Ie(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return Ie(e.parentElement,t)}}function zr(e){return yn().some(t=>e.matches(t))}var wn=[];function qr(e){wn.push(e)}function z(e,t=H,n=()=>{}){Kr(()=>{t(e,(r,i)=>{n(r,i),wn.forEach(o=>o(r,i)),xt(r,r.attributes).forEach(o=>o()),r._x_ignore&&i()})})}function En(e){H(e,t=>Xt(t))}var ot=[],wt=!1;function Et(e=()=>{}){return queueMicrotask(()=>{wt||setTimeout(()=>{at()})}),new Promise(t=>{ot.push(()=>{e(),t()})})}function at(){for(wt=!1;ot.length;)ot.shift()()}function Vr(){wt=!0}function At(e,t){return Array.isArray(t)?Bt(e,t.join(" ")):typeof t=="object"&&t!==null?Wr(e,t):typeof t=="function"?At(e,t()):Bt(e,t)}function Bt(e,t){let n=o=>o.split(" ").filter(Boolean),r=o=>o.split(" ").filter(a=>!e.classList.contains(a)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(r(t))}function Wr(e,t){let n=s=>s.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([s,u])=>u?n(s):!1).filter(Boolean),i=Object.entries(t).flatMap(([s,u])=>u?!1:n(s)).filter(Boolean),o=[],a=[];return i.forEach(s=>{e.classList.contains(s)&&(e.classList.remove(s),a.push(s))}),r.forEach(s=>{e.classList.contains(s)||(e.classList.add(s),o.push(s))}),()=>{a.forEach(s=>e.classList.add(s)),o.forEach(s=>e.classList.remove(s))}}function Pe(e,t){return typeof t=="object"&&t!==null?Ur(e,t):Yr(e,t)}function Ur(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=Gr(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Pe(e,n)}}function Yr(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Gr(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function st(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}S("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r?Jr(e,r,t):Zr(e,n,t)});function Jr(e,t,n){An(e,At,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[n](t)}function Zr(e,t,n){An(e,Pe);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((x,E)=>E<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((x,E)=>E>t.indexOf("out")));let a=!t.includes("opacity")&&!t.includes("scale"),s=a||t.includes("opacity"),u=a||t.includes("scale"),l=s?0:1,f=u?le(t,"scale",95)/100:1,d=le(t,"delay",0),h=le(t,"origin","center"),A="opacity, transform",$=le(t,"duration",150)/1e3,X=le(t,"duration",75)/1e3,p="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:h,transitionDelay:d,transitionProperty:A,transitionDuration:`${$}s`,transitionTimingFunction:p},e._x_transition.enter.start={opacity:l,transform:`scale(${f})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:h,transitionDelay:d,transitionProperty:A,transitionDuration:`${X}s`,transitionTimingFunction:p},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${f})`})}function An(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){ut(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){ut(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(n);if(t){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(n):o():e._x_transition?e._x_transition.in(n):o();return}e._x_hidePromise=e._x_transition?new Promise((a,s)=>{e._x_transition.out(()=>{},()=>a(r)),e._x_transitioning.beforeCancel(()=>s({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let a=Sn(e);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(e)):i(()=>{let s=u=>{let l=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(s)]).then(([f])=>f());return delete u._x_hidePromise,delete u._x_hideChildren,l};s(e).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function Sn(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Sn(t)}function ut(e,t,{during:n,start:r,end:i}={},o=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),a();return}let s,u,l;Qr(e,{start(){s=t(e,r)},during(){u=t(e,n)},before:o,end(){s(),l=t(e,i)},after:a,cleanup(){u(),l()}})}function Qr(e,t){let n,r,i,o=st(()=>{C(()=>{n=!0,r||t.before(),i||(t.end(),at()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:st(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},C(()=>{t.start(),t.during()}),Vr(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,s=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),C(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(C(()=>{t.end()}),at(),setTimeout(e._x_transitioning.finish,a+s),i=!0)})})}function le(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}var Me=!1;function xe(e,t=()=>{}){return(...n)=>Me?t(...n):e(...n)}function Xr(e){return(...t)=>Me&&e(...t)}function ei(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Me=!0,ni(()=>{ti(t)}),Me=!1}function ti(e){let t=!1;z(e,(r,i)=>{H(r,(o,a)=>{if(t&&zr(o))return a();t=!0,i(o,a)})})}function ni(e){let t=oe;Ft((n,r)=>{let i=t(n);return ge(i),()=>{}}),e(),Ft(t)}function On(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=ie({})),e._x_bindings[t]=n,t=r.includes("camel")?li(t):t,t){case"value":ri(e,n);break;case"style":oi(e,n);break;case"class":ii(e,n);break;default:ai(e,t,n);break}}function ri(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(e.checked=Ht(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Number.isInteger(t)&&!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>Ht(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")ui(e,t);else{if(e.value===t)return;e.value=t}}function ii(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=At(e,t)}function oi(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Pe(e,t)}function ai(e,t,n){[null,void 0,!1].includes(n)&&ci(t)?e.removeAttribute(t):(Tn(t)&&(n=t),si(e,t,n))}function si(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function ui(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function li(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Ht(e,t){return e==t}function Tn(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 ci(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function fi(e,t,n){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:Tn(t)?!![t,"true"].includes(r):r}function Mn(e,t){var n;return function(){var r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}function Cn(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function di(e){e(me)}var U={},zt=!1;function pi(e,t){if(zt||(U=ie(U),zt=!0),t===void 0)return U[e];U[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&U[e].init(),nn(U[e])}function _i(){return U}var Nn={};function hi(e,t){let n=typeof t!="function"?()=>t:t;e instanceof Element?Rn(e,n()):Nn[e]=n}function gi(e){return Object.entries(Nn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function Rn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([a,s])=>({name:a,value:s})),o=un(i);i=i.map(a=>o.find(s=>s.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),xt(e,i,n).map(a=>{r.push(a.runCleanups),a()})}var In={};function vi(e,t){In[e]=t}function yi(e,t){return Object.entries(In).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var xi={get reactive(){return ie},get release(){return ge},get effect(){return oe},get raw(){return Yt},version:"3.11.1",flushAndStopDeferringMutations:Cr,dontAutoEvaluateFunctions:Ir,disableEffectScheduling:mr,startObservingMutations:ht,stopObservingMutations:en,setReactivityEngine:br,closestDataStack:te,skipDuringClone:xe,onlyDuringClone:Xr,addRootSelector:mn,addInitSelector:bn,addScopeToNode:ve,deferMutations:Mr,mapAttributes:mt,evaluateLater:I,interceptInit:qr,setEvaluator:Pr,mergeProxies:ye,findClosest:Ie,closestRoot:Re,destroyTree:En,interceptor:rn,transition:ut,setStyles:Pe,mutateDom:C,directive:S,throttle:Cn,debounce:Mn,evaluate:ee,initTree:z,nextTick:Et,prefixed:ae,prefix:jr,plugin:di,magic:L,store:pi,start:Hr,clone:ei,bound:fi,$data:tn,walk:H,data:vi,bind:hi},me=xi;function Pn(e,t){let n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}var mi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ro=Pn(mi+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),bi=Object.freeze({}),Io=Object.freeze([]),$n=Object.assign,wi=Object.prototype.hasOwnProperty,$e=(e,t)=>wi.call(e,t),J=Array.isArray,_e=e=>kn(e)==="[object Map]",Ei=e=>typeof e=="string",St=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Ai=Object.prototype.toString,kn=e=>Ai.call(e),Ln=e=>kn(e).slice(8,-1),Ot=e=>Ei(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Le=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Si=/-(\w)/g,Po=Le(e=>e.replace(Si,(t,n)=>n?n.toUpperCase():"")),Oi=/\B([A-Z])/g,$o=Le(e=>e.replace(Oi,"-$1").toLowerCase()),jn=Le(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Le(e=>e?`on${jn(e)}`:""),Kn=(e,t)=>e!==t&&(e===e||t===t),lt=new WeakMap,ce=[],K,Z=Symbol("iterate"),ct=Symbol("Map key iterate");function Ti(e){return e&&e._isEffect===!0}function Mi(e,t=bi){Ti(e)&&(e=e.raw);let n=Ri(e,t);return t.lazy||n(),n}function Ci(e){e.active&&(Fn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Ni=0;function Ri(e,t){let n=function(){if(!n.active)return e();if(!ce.includes(n)){Fn(n);try{return Pi(),ce.push(n),K=n,e()}finally{ce.pop(),Dn(),K=ce[ce.length-1]}}};return n.id=Ni++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Fn(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var re=!0,Tt=[];function Ii(){Tt.push(re),re=!1}function Pi(){Tt.push(re),re=!0}function Dn(){let e=Tt.pop();re=e===void 0?!0:e}function k(e,t,n){if(!re||K===void 0)return;let r=lt.get(e);r||lt.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(K)||(i.add(K),K.deps.push(i),K.options.onTrack&&K.options.onTrack({effect:K,target:e,type:t,key:n}))}function q(e,t,n,r,i,o){let a=lt.get(e);if(!a)return;let s=new Set,u=f=>{f&&f.forEach(d=>{(d!==K||d.allowRecurse)&&s.add(d)})};if(t==="clear")a.forEach(u);else if(n==="length"&&J(e))a.forEach((f,d)=>{(d==="length"||d>=r)&&u(f)});else switch(n!==void 0&&u(a.get(n)),t){case"add":J(e)?Ot(n)&&u(a.get("length")):(u(a.get(Z)),_e(e)&&u(a.get(ct)));break;case"delete":J(e)||(u(a.get(Z)),_e(e)&&u(a.get(ct)));break;case"set":_e(e)&&u(a.get(Z));break}let l=f=>{f.options.onTrigger&&f.options.onTrigger({effect:f,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),f.options.scheduler?f.options.scheduler(f):f()};s.forEach(l)}var $i=Pn("__proto__,__v_isRef,__isVue"),Bn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(St)),ki=je(),Li=je(!1,!0),ji=je(!0),Ki=je(!0,!0),Ce={};["includes","indexOf","lastIndexOf"].forEach(e=>{let t=Array.prototype[e];Ce[e]=function(...n){let r=m(this);for(let o=0,a=this.length;o<a;o++)k(r,"get",o+"");let i=t.apply(r,n);return i===-1||i===!1?t.apply(r,n.map(m)):i}});["push","pop","shift","unshift","splice"].forEach(e=>{let t=Array.prototype[e];Ce[e]=function(...n){Ii();let r=t.apply(this,n);return Dn(),r}});function je(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Yi:tr:t?Ui:er).get(r))return r;let a=J(r);if(!e&&a&&$e(Ce,i))return Reflect.get(Ce,i,o);let s=Reflect.get(r,i,o);return(St(i)?Bn.has(i):$i(i))||(e||k(r,"get",i),t)?s:ft(s)?!a||!Ot(i)?s.value:s:ke(s)?e?nr(s):Rt(s):s}}var Fi=Hn(),Di=Hn(!0);function Hn(e=!1){return function(n,r,i,o){let a=n[r];if(!e&&(i=m(i),a=m(a),!J(n)&&ft(a)&&!ft(i)))return a.value=i,!0;let s=J(n)&&Ot(r)?Number(r)<n.length:$e(n,r),u=Reflect.set(n,r,i,o);return n===m(o)&&(s?Kn(i,a)&&q(n,"set",r,i,a):q(n,"add",r,i)),u}}function Bi(e,t){let n=$e(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&q(e,"delete",t,void 0,r),i}function Hi(e,t){let n=Reflect.has(e,t);return(!St(t)||!Bn.has(t))&&k(e,"has",t),n}function zi(e){return k(e,"iterate",J(e)?"length":Z),Reflect.ownKeys(e)}var zn={get:ki,set:Fi,deleteProperty:Bi,has:Hi,ownKeys:zi},qn={get:ji,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Lo=$n({},zn,{get:Li,set:Di}),jo=$n({},qn,{get:Ki}),Mt=e=>ke(e)?Rt(e):e,Ct=e=>ke(e)?nr(e):e,Nt=e=>e,Ke=e=>Reflect.getPrototypeOf(e);function Fe(e,t,n=!1,r=!1){e=e.__v_raw;let i=m(e),o=m(t);t!==o&&!n&&k(i,"get",t),!n&&k(i,"get",o);let{has:a}=Ke(i),s=r?Nt:n?Ct:Mt;if(a.call(i,t))return s(e.get(t));if(a.call(i,o))return s(e.get(o));e!==i&&e.get(t)}function De(e,t=!1){let n=this.__v_raw,r=m(n),i=m(e);return e!==i&&!t&&k(r,"has",e),!t&&k(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function Be(e,t=!1){return e=e.__v_raw,!t&&k(m(e),"iterate",Z),Reflect.get(e,"size",e)}function Vn(e){e=m(e);let t=m(this);return Ke(t).has.call(t,e)||(t.add(e),q(t,"add",e,e)),this}function Wn(e,t){t=m(t);let n=m(this),{has:r,get:i}=Ke(n),o=r.call(n,e);o?Xn(n,r,e):(e=m(e),o=r.call(n,e));let a=i.call(n,e);return n.set(e,t),o?Kn(t,a)&&q(n,"set",e,t,a):q(n,"add",e,t),this}function Un(e){let t=m(this),{has:n,get:r}=Ke(t),i=n.call(t,e);i?Xn(t,n,e):(e=m(e),i=n.call(t,e));let o=r?r.call(t,e):void 0,a=t.delete(e);return i&&q(t,"delete",e,void 0,o),a}function Yn(){let e=m(this),t=e.size!==0,n=_e(e)?new Map(e):new Set(e),r=e.clear();return t&&q(e,"clear",void 0,void 0,n),r}function He(e,t){return function(r,i){let o=this,a=o.__v_raw,s=m(a),u=t?Nt:e?Ct:Mt;return!e&&k(s,"iterate",Z),a.forEach((l,f)=>r.call(i,u(l),u(f),o))}}function Ae(e,t,n){return function(...r){let i=this.__v_raw,o=m(i),a=_e(o),s=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,l=i[e](...r),f=n?Nt:t?Ct:Mt;return!t&&k(o,"iterate",u?ct:Z),{next(){let{value:d,done:h}=l.next();return h?{value:d,done:h}:{value:s?[f(d[0]),f(d[1])]:f(d),done:h}},[Symbol.iterator](){return this}}}}function B(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";console.warn(`${jn(e)} operation ${n}failed: target is readonly.`,m(this))}return e==="delete"?!1:this}}var Gn={get(e){return Fe(this,e)},get size(){return Be(this)},has:De,add:Vn,set:Wn,delete:Un,clear:Yn,forEach:He(!1,!1)},Jn={get(e){return Fe(this,e,!1,!0)},get size(){return Be(this)},has:De,add:Vn,set:Wn,delete:Un,clear:Yn,forEach:He(!1,!0)},Zn={get(e){return Fe(this,e,!0)},get size(){return Be(this,!0)},has(e){return De.call(this,e,!0)},add:B("add"),set:B("set"),delete:B("delete"),clear:B("clear"),forEach:He(!0,!1)},Qn={get(e){return Fe(this,e,!0,!0)},get size(){return Be(this,!0)},has(e){return De.call(this,e,!0)},add:B("add"),set:B("set"),delete:B("delete"),clear:B("clear"),forEach:He(!0,!0)},qi=["keys","values","entries",Symbol.iterator];qi.forEach(e=>{Gn[e]=Ae(e,!1,!1),Zn[e]=Ae(e,!0,!1),Jn[e]=Ae(e,!1,!0),Qn[e]=Ae(e,!0,!0)});function ze(e,t){let n=t?e?Qn:Jn:e?Zn:Gn;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get($e(n,i)&&i in r?n:r,i,o)}var Vi={get:ze(!1,!1)},Ko={get:ze(!1,!0)},Wi={get:ze(!0,!1)},Fo={get:ze(!0,!0)};function Xn(e,t,n){let r=m(n);if(r!==n&&t.call(e,r)){let i=Ln(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 er=new WeakMap,Ui=new WeakMap,tr=new WeakMap,Yi=new WeakMap;function Gi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ji(e){return e.__v_skip||!Object.isExtensible(e)?0:Gi(Ln(e))}function Rt(e){return e&&e.__v_isReadonly?e:rr(e,!1,zn,Vi,er)}function nr(e){return rr(e,!0,qn,Wi,tr)}function rr(e,t,n,r,i){if(!ke(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let a=Ji(e);if(a===0)return e;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function m(e){return e&&m(e.__v_raw)||e}function ft(e){return Boolean(e&&e.__v_isRef===!0)}L("nextTick",()=>Et);L("dispatch",e=>pe.bind(pe,e));L("watch",(e,{evaluateLater:t,effect:n})=>(r,i)=>{let o=t(r),a=!0,s,u=n(()=>o(l=>{JSON.stringify(l),a?s=l:queueMicrotask(()=>{i(l,s),s=l}),a=!1}));e._x_effects.delete(u)});L("store",_i);L("data",e=>tn(e));L("root",e=>Re(e));L("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=ye(Zi(e))),e._x_refs_proxy));function Zi(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}var Ge={};function ir(e){return Ge[e]||(Ge[e]=0),++Ge[e]}function Qi(e,t){return Ie(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Xi(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=ir(t))}L("id",e=>(t,n=null)=>{let r=Qi(e,t),i=r?r._x_ids[t]:ir(t);return n?`${t}-${i}-${n}`:`${t}-${i}`});L("el",e=>e);or("Focus","focus","focus");or("Persist","persist","persist");function or(e,t,n){L(t,r=>ne(`You can't use [$${directiveName}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}function eo({get:e,set:t},{get:n,set:r}){let i=!0,o,a,s,u,l=oe(()=>{let f,d;i?(f=e(),r(f),d=n(),i=!1):(f=e(),d=n(),s=JSON.stringify(f),u=JSON.stringify(d),s!==o?(d=n(),r(f),d=f):(t(d),f=d)),o=JSON.stringify(f),a=JSON.stringify(d)});return()=>{ge(l)}}S("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),a=()=>{let f;return o(d=>f=d),f},s=r(`${t} = __placeholder`),u=f=>s(()=>{},{scope:{__placeholder:f}}),l=a();u(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let f=e._x_model.get,d=e._x_model.set,h=eo({get(){return f()},set(A){d(A)}},{get(){return a()},set(A){u(A)}});i(h)})});var to=document.createElement("div");S("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&ne("x-teleport can only be used on a <template> tag",e);let i=xe(()=>document.querySelector(n),()=>to)();i||ne(`Cannot find x-teleport element for selector: "${n}"`);let o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{o.addEventListener(a,s=>{s.stopPropagation(),e.dispatchEvent(new s.constructor(s.type,s))})}),ve(o,{},e),C(()=>{t.includes("prepend")?i.parentNode.insertBefore(o,i):t.includes("append")?i.parentNode.insertBefore(o,i.nextSibling):i.appendChild(o),z(o),o._x_ignore=!0}),r(()=>o.remove())});var ar=()=>{};ar.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};S("ignore",ar);S("effect",(e,{expression:t},{effect:n})=>n(I(e,t)));function dt(e,t,n,r){let i=e,o=u=>r(u),a={},s=(u,l)=>f=>l(u,f);if(n.includes("dot")&&(t=no(t)),n.includes("camel")&&(t=ro(t)),n.includes("passive")&&(a.passive=!0),n.includes("capture")&&(a.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("prevent")&&(o=s(o,(u,l)=>{l.preventDefault(),u(l)})),n.includes("stop")&&(o=s(o,(u,l)=>{l.stopPropagation(),u(l)})),n.includes("self")&&(o=s(o,(u,l)=>{l.target===e&&u(l)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=s(o,(u,l)=>{e.contains(l.target)||l.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&u(l))})),n.includes("once")&&(o=s(o,(u,l)=>{u(l),i.removeEventListener(t,o,a)})),o=s(o,(u,l)=>{oo(t)&&ao(l,n)||u(l)}),n.includes("debounce")){let u=n[n.indexOf("debounce")+1]||"invalid-wait",l=Ne(u.split("ms")[0])?Number(u.split("ms")[0]):250;o=Mn(o,l)}if(n.includes("throttle")){let u=n[n.indexOf("throttle")+1]||"invalid-wait",l=Ne(u.split("ms")[0])?Number(u.split("ms")[0]):250;o=Cn(o,l)}return i.addEventListener(t,o,a),()=>{i.removeEventListener(t,o,a)}}function no(e){return e.replace(/-/g,".")}function ro(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Ne(e){return!Array.isArray(e)&&!isNaN(e)}function io(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function oo(e){return["keydown","keyup"].includes(e)}function ao(e,t){let n=t.filter(o=>!["window","document","prevent","stop","once"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,Ne((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,Ne((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&qt(e.key).includes(n[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),e[`${a}Key`])).length===i.length&&qt(e.key).includes(n[0]))}function qt(e){if(!e)return[];e=io(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}S("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let a=I(o,n),s;typeof n=="string"?s=I(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?s=I(o,`${n()} = __placeholder`):s=()=>{};let u=()=>{let h;return a(A=>h=A),Vt(h)?h.get():h},l=h=>{let A;a($=>A=$),Vt(A)?A.set(h):s(()=>{},{scope:{__placeholder:h}})};typeof n=="string"&&e.type==="radio"&&C(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var f=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let d=dt(e,f,t,h=>{l(so(e,t,h,u()))});if(e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=d,i(()=>e._x_removeModelListeners.default()),e.form){let h=dt(e.form,"reset",[],A=>{Et(()=>e._x_model&&e._x_model.set(e.value))});i(()=>h())}e._x_model={get(){return u()},set(h){l(h)}},e._x_forceModelUpdate=h=>{h=h===void 0?u():h,h===void 0&&typeof n=="string"&&n.match(/\./)&&(h=""),window.fromModel=!0,C(()=>On(e,"value",h)),delete window.fromModel},r(()=>{let h=u();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(h)})});function so(e,t,n,r){return C(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return typeof n.detail<"u"?n.detail:n.target.value;if(e.type==="checkbox")if(Array.isArray(r)){let i=t.includes("number")?Je(n.target.value):n.target.value;return n.target.checked?r.concat([i]):r.filter(o=>!uo(o,i))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return Je(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text);{let i=n.target.value;return t.includes("number")?Je(i):t.includes("trim")?i.trim():i}}})}function Je(e){let t=e?parseFloat(e):null;return lo(t)?t:e}function uo(e,t){return e==t}function lo(e){return!Array.isArray(e)&&!isNaN(e)}function Vt(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}S("cloak",e=>queueMicrotask(()=>C(()=>e.removeAttribute(ae("cloak")))));bn(()=>`[${ae("init")}]`);S("init",xe((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));S("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{C(()=>{e.textContent=o})})})});S("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{C(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,z(e),delete e._x_ignoreSelf})})})});mt(fn(":",dn(ae("bind:"))));S("bind",(e,{value:t,modifiers:n,expression:r,original:i},{effect:o})=>{if(!t){let s={};gi(s),I(e,r)(l=>{Rn(e,l,i)},{scope:s});return}if(t==="key")return co(e,r);let a=I(e,r);o(()=>a(s=>{s===void 0&&typeof r=="string"&&r.match(/\./)&&(s=""),C(()=>On(e,t,s,n))}))});function co(e,t){e._x_keyExpression=t}mn(()=>`[${ae("data")}]`);S("data",xe((e,{expression:t},{cleanup:n})=>{t=t===""?"{}":t;let r={};tt(r,e);let i={};yi(i,r);let o=ee(e,t,{scope:i});o===void 0&&(o={}),tt(o,e);let a=ie(o);nn(a);let s=ve(e,a);a.init&&ee(e,a.init),n(()=>{a.destroy&&ee(e,a.destroy),s()})}));S("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=I(e,n);e._x_doHide||(e._x_doHide=()=>{C(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{C(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},s=()=>setTimeout(a),u=st(d=>d?a():o(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,a,o):d?s():o()}),l,f=!0;r(()=>i(d=>{!f&&d===l||(t.includes("immediate")&&(d?s():o()),u(d),l=d,f=!1)}))});S("for",(e,{expression:t},{effect:n,cleanup:r})=>{let i=po(t),o=I(e,i.items),a=I(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>fo(e,i,o,a)),r(()=>{Object.values(e._x_lookup).forEach(s=>s.remove()),delete e._x_prevKeys,delete e._x_lookup})});function fo(e,t,n,r){let i=a=>typeof a=="object"&&!Array.isArray(a),o=e;n(a=>{_o(a)&&a>=0&&(a=Array.from(Array(a).keys(),p=>p+1)),a===void 0&&(a=[]);let s=e._x_lookup,u=e._x_prevKeys,l=[],f=[];if(i(a))a=Object.entries(a).map(([p,x])=>{let E=Wt(t,x,p,a);r(T=>f.push(T),{scope:W({index:p},E)}),l.push(E)});else for(let p=0;p<a.length;p++){let x=Wt(t,a[p],p,a);r(E=>f.push(E),{scope:W({index:p},x)}),l.push(x)}let d=[],h=[],A=[],$=[];for(let p=0;p<u.length;p++){let x=u[p];f.indexOf(x)===-1&&A.push(x)}u=u.filter(p=>!A.includes(p));let X="template";for(let p=0;p<f.length;p++){let x=f[p],E=u.indexOf(x);if(E===-1)u.splice(p,0,x),d.push([X,p]);else if(E!==p){let T=u.splice(p,1)[0],M=u.splice(E-1,1)[0];u.splice(p,0,M),u.splice(E,0,T),h.push([T,M])}else $.push(x);X=x}for(let p=0;p<A.length;p++){let x=A[p];s[x]._x_effects&&s[x]._x_effects.forEach(Ut),s[x].remove(),s[x]=null,delete s[x]}for(let p=0;p<h.length;p++){let[x,E]=h[p],T=s[x],M=s[E],V=document.createElement("div");C(()=>{M.after(V),T.after(M),M._x_currentIfEl&&M.after(M._x_currentIfEl),V.before(T),T._x_currentIfEl&&T.after(T._x_currentIfEl),V.remove()}),Dt(M,l[f.indexOf(E)])}for(let p=0;p<d.length;p++){let[x,E]=d[p],T=x==="template"?o:s[x];T._x_currentIfEl&&(T=T._x_currentIfEl);let M=l[E],V=f[E],D=document.importNode(o.content,!0).firstElementChild;ve(D,ie(M),o),C(()=>{T.after(D),z(D)}),typeof V=="object"&&ne("x-for key cannot be an object, it must be a string or an integer",o),s[V]=D}for(let p=0;p<$.length;p++)Dt(s[$[p]],l[f.indexOf($[p])]);o._x_prevKeys=f})}function po(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(r);if(!i)return;let o={};o.items=i[2].trim();let a=i[1].replace(n,"").trim(),s=a.match(t);return s?(o.item=a.replace(t,"").trim(),o.index=s[1].trim(),s[2]&&(o.collection=s[2].trim())):o.item=a,o}function Wt(e,t,n,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(a=>a.trim()).forEach((a,s)=>{i[a]=t[s]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(a=>a.trim()).forEach(a=>{i[a]=t[a]}):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function _o(e){return!Array.isArray(e)&&!isNaN(e)}function sr(){}sr.inline=(e,{expression:t},{cleanup:n})=>{let r=Re(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};S("ref",sr);S("if",(e,{expression:t},{effect:n,cleanup:r})=>{let i=I(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let s=e.content.cloneNode(!0).firstElementChild;return ve(s,{},e),C(()=>{e.after(s),z(s)}),e._x_currentIfEl=s,e._x_undoIf=()=>{H(s,u=>{u._x_effects&&u._x_effects.forEach(Ut)}),s.remove(),delete e._x_currentIfEl},s},a=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(s=>{s?o():a()})),r(()=>e._x_undoIf&&e._x_undoIf())});S("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>Xi(e,i))});mt(fn("@",dn(ae("on:"))));S("on",xe((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?I(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=dt(e,t,n,s=>{o(()=>{},{scope:{$event:s},params:[s]})});i(()=>a())}));qe("Collapse","collapse","collapse");qe("Intersect","intersect","intersect");qe("Focus","trap","focus");qe("Mask","mask","mask");function qe(e,t,n){S(t,r=>ne(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}me.setEvaluator(sn);me.setReactivityEngine({reactive:Rt,effect:Mi,release:Ci,raw:m});var ho=me,It=ho;function go(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function vo(e){return e.nodeType===3||e.nodeType===8}var b={replace(e,t,n){let r=e.indexOf(t);if(r===-1)throw"Cant find element in children";return t.replaceWith(n),e[r]=n,e},before(e,t,n){let r=e.indexOf(t);if(r===-1)throw"Cant find element in children";return t.before(n),e.splice(r,0,n),e},append(e,t,n){let r=e[e.length-1];return n(t),e.push(t),e},remove(e,t){if(e.indexOf(t)===-1)throw"Cant find element in children";return t.remove(),e.filter(r=>r!==t)},first(e){return this.teleportTo(e[0])},next(e,t){let n=e.indexOf(t);if(n!==-1)return this.teleportTo(this.teleportBack(e[n+1]))},teleportTo(e){return e&&(e._x_teleport?e._x_teleport:e)},teleportBack(e){return e&&(e._x_teleportBack?e._x_teleportBack:e)}},yo=()=>{},xo=()=>{};function Pt(e,t,n){let r,i,o,a,s,u,l,f,d,h;function A(c={}){let _=O=>O.getAttribute("key"),y=()=>{};s=c.updating||y,u=c.updated||y,l=c.removing||y,f=c.removed||y,d=c.adding||y,h=c.added||y,o=c.key||_,a=c.lookahead||!1}function $(c,_){if(X(c,_))return p(c,_);let y=!1;if(!se(s,c,_,()=>y=!0)){if(window.Alpine&&mo(c,_,()=>y=!0),vo(_)){x(c,_),u(c,_);return}y||E(c,_),u(c,_),T(Array.from(c.childNodes),Array.from(_.childNodes),O=>{c.appendChild(O)})}}function X(c,_){return c.nodeType!=_.nodeType||c.nodeName!=_.nodeName||M(c)!=M(_)}function p(c,_){if(se(l,c))return;let y=_.cloneNode(!0);se(d,y)||(b.replace([c],c,y),f(c),h(y))}function x(c,_){let y=_.nodeValue;c.nodeValue!==y&&(c.nodeValue=y)}function E(c,_){if(c._x_isShown&&!_._x_isShown||!c._x_isShown&&_._x_isShown)return;let y=Array.from(c.attributes),O=Array.from(_.attributes);for(let N=y.length-1;N>=0;N--){let v=y[N].name;_.hasAttribute(v)||c.removeAttribute(v)}for(let N=O.length-1;N>=0;N--){let v=O[N].name,g=O[N].value;c.getAttribute(v)!==g&&c.setAttribute(v,g)}}function T(c,_,y){let O={},N={},v=b.first(_),g=b.first(c);for(;v;){let P=M(v),j=M(g);if(!g)if(P&&N[P]){let w=N[P];c=b.append(c,w,y),g=w}else{if(!se(d,v)){let w=v.cloneNode(!0);c=b.append(c,w,y),h(w)}v=b.next(_,v);continue}let be=w=>w.nodeType===8&&w.textContent===" __BLOCK__ ",we=w=>w.nodeType===8&&w.textContent===" __ENDBLOCK__ ";if(be(v)&&be(g)){let w=[],ue,F=0;for(;g;){let R=b.next(c,g);if(be(R))F++;else if(we(R)&&F>0)F--;else if(we(R)&&F===0){g=b.next(c,R),ue=R;break}w.push(R),g=R}let Lt=[];for(F=0;v;){let R=b.next(_,v);if(be(R))F++;else if(we(R)&&F>0)F--;else if(we(R)&&F===0){v=b.next(_,R);break}Lt.push(R),v=R}T(w,Lt,R=>ue.before(R));continue}if(g.nodeType===1&&a){let w=b.next(_,v),ue=!1;for(;!ue&&w;)g.isEqualNode(w)&&(ue=!0,[c,g]=D(c,v,g),j=M(g)),w=b.next(_,w)}if(P!==j){if(!P&&j){N[j]=g,[c,g]=D(c,v,g),c=b.remove(c,N[j]),g=b.next(c,g),v=b.next(_,v);continue}if(P&&!j&&O[P]&&(c=b.replace(c,g,O[P]),g=O[P]),P&&j){let w=O[P];if(w)N[j]=g,c=b.replace(c,g,w),g=w;else{N[j]=g,[c,g]=D(c,v,g),c=b.remove(c,N[j]),g=b.next(c,g),v=b.next(_,v);continue}}}let cr=g&&b.next(c,g);$(g,v),v=v&&b.next(_,v),g=cr}let We=[];for(;g;)se(l,g)||We.push(g),g=b.next(c,g);for(;We.length;){let P=We.shift();P.remove(),f(P)}}function M(c){return c&&c.nodeType===1&&o(c)}function V(c){let _={};return c.forEach(y=>{let O=M(y);O&&(_[O]=y)}),_}function D(c,_,y){if(!se(d,_)){let O=_.cloneNode(!0);return c=b.before(c,y,O),h(O),[c,O]}return[c,_]}return A(n),r=e,i=typeof t=="string"?go(t):t,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.clone(e,i)),$(e,i),r=void 0,i=void 0,e}Pt.step=()=>yo();Pt.log=e=>{xo=e};function se(e,...t){let n=!1;return e(...t,()=>n=!0),n}function mo(e,t,n){e.nodeType===1&&e._x_dataStack&&window.Alpine.clone(e,t)}function bo(e){e.morph=Pt}var ur=bo;It.plugin(ur);var wo=/INPUT/i,Eo=/date|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/i,Ao=/TEXTAREA/i;function So(e,t,n,r){if(e.nodeType!==Node.ELEMENT_NODE||e!==document.activeElement)return;if(e.tagName.match(Ao)||e.tagName.match(wo)&&e.getAttribute("type").match(Eo))return r()}function $t(e,t){It.morph(e,t,{updating:So})}var Q={before:"turbo-boost:stream:before-invoke",after:"turbo-boost:stream:after-invoke",finish:"turbo-boost:stream:finish-invoke"};function Ve(e,t,n){let{object:r,target:i}=e;t=t||{},t=Ee(W({},t),{object:e.object});let o={detail:t,bubbles:!0};i.dispatchEvent(new CustomEvent(Q.before,o));let{delay:a}=t.invoke||{};a=a||0;let s=()=>{let u=n(r);o.detail.result=u,i.dispatchEvent(new CustomEvent(Q.after,o));let l;u instanceof Animation&&(l=u.finished),u instanceof Promise&&(l=u),l?l.then(()=>{o.detail.promise="fulfilled",i.dispatchEvent(new CustomEvent(Q.finish,o))},()=>{o.detail.promise="rejected",i.dispatchEvent(new CustomEvent(Q.finish,o))}):i.dispatchEvent(new CustomEvent(Q.finish,o))};a>0?setTimeout(s,a):s()}function Oo(e,t,n){let r=t[0],i=t[1],o={method:e,eventName:r,eventOptions:i};n.forEach(a=>Ve(a,o,s=>s.dispatchEvent(new CustomEvent(r,i))))}function To(e,t,n){let r=t[0],i={method:e,html:r};n.forEach(o=>Ve(o,i,a=>$t(a,r)))}function Mo(e,t,n){let r=e.slice(0,-1).trim(),i=t[0],o={method:e,property:r,value:i};n.forEach(a=>Ve(a,o,s=>s[r]=i))}function Co(e,t,n){let r={method:e,args:t};n.forEach(i=>Ve(i,r,o=>o[e].apply(o,t)))}function lr(e,t,n){return e.match(/^dispatch(Event)?$/)?Oo(e,t,n):e.match(/^morph|mutate$/)?To(e,t,n):e.endsWith("=")?Mo(e,t,n):Co(e,t,n)}function kt(){let e=JSON.parse(this.templateContent.textContent),{id:t,selector:n,receiver:r,method:i,args:o,delay:a}=e,s=[{object:self,target:self}];n&&(s=Array.from(document.querySelectorAll(n)).map(u=>({object:u,target:u}))),r&&(s=s.map(u=>{let{object:l,target:f}=u,d=r.split(".");for(;d.length>0;)l=l[d.shift()],l.dispatchEvent&&(f=l);return{object:l,target:f}})),a>0?setTimeout(()=>lr(i,o,s),a):lr(i,o,s)}if(!self.Turbo)throw new Error("`Turbo` is not defined! Be sure to import `@turbo-boost/streams` after `@hotwired/turbo` or `@hotwired/turbo-rails`.");if(!Turbo.StreamActions)throw new Error("`Turbo.StreamActions` is not defined! Verify that you are running >= `7.2.0` of `@hotwired/turbo`.");Turbo.StreamActions.invoke=kt;self.TurboBoost=self.TurboBoost||{};self.TurboBoost.Streams={invoke:kt,invokeEvents:Q};console.info("@turbo-boost/streams has initialized and registered new stream actions with Turbo.");var Jo=self.TurboBoost.Streams;export{Jo as default};
5
+ `:""}`,t),setTimeout(()=>{throw e},0)}var Te=!0;function yn(e){let t=Te;Te=!1;let n=e();return Te=t,n}function Y(e,t,n={}){let r;return M(e,t)(i=>r=i,n),r}function M(...e){return wn(...e)}var wn=En;function Vr(e){wn=e}function En(e,t){let n={};Ze(n,e);let r=[n,...re(e)],i=typeof t=="function"?Jr(r,t):Gr(r,t,e);return Ur.bind(null,e,t,i)}function Jr(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(ve([r,...e]),i);Ne(n,o)}}var He={};function Yr(e,t){if(He[e])return He[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return he(s,t,e),Promise.resolve()}})();return He[e]=o,o}function Gr(e,t,n){let r=Yr(t,n);return(i=()=>{},{scope:o={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let a=ve([o,...e]);if(typeof r=="function"){let l=r(r,a).catch(u=>he(u,n,t));r.finished?(Ne(i,r.result,a,s,n),r.result=void 0):l.then(u=>{Ne(i,u,a,s,n)}).catch(u=>he(u,n,t)).finally(()=>r.result=void 0)}}}function Ne(e,t,n,r,i){if(Te&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(s=>Ne(e,s,n,r)).catch(s=>he(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var bt="x-";function ae(e=""){return bt+e}function Xr(e){bt=e}var Qe={};function S(e,t){return Qe[e]=t,{before(n){if(!Qe[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}let r=V.indexOf(n);V.splice(r>=0?r:V.indexOf("DEFAULT"),0,e)}}}function mt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=An(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let r={};return t.map(Mn((o,s)=>r[o]=s)).filter(Nn).map(ei(r,n)).sort(ti).map(o=>Qr(e,o))}function An(e){return Array.from(e).map(Mn()).filter(t=>!Nn(t))}var et=!1,de=new Map,Sn=Symbol();function Zr(e){et=!0;let t=Symbol();Sn=t,de.set(t,[]);let n=()=>{for(;de.get(t).length;)de.get(t).shift()();de.delete(t)},r=()=>{et=!1,n()};e(n),r()}function Cn(e){let t=[],n=a=>t.push(a),[r,i]=kr(e);return t.push(i),[{Alpine:be,effect:r,cleanup:n,evaluateLater:M.bind(M,e),evaluate:Y.bind(Y,e)},()=>t.forEach(a=>a())]}function Qr(e,t){let n=()=>{},r=Qe[t.type]||n,[i,o]=Cn(e);_n(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),et?de.get(Sn).push(r):r())};return s.runCleanups=o,s}var On=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Tn=e=>e;function Mn(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=In.reduce((o,s)=>s(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var In=[];function yt(e){In.push(e)}function Nn({name:e}){return $n().test(e)}var $n=()=>new RegExp(`^${bt}([^:^.]+)\\b`);function ei(e,t){return({name:n,value:r})=>{let i=n.match($n()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:r,original:a}}}var tt="DEFAULT",V=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",tt,"teleport"];function ti(e,t){let n=V.indexOf(e.type)===-1?tt:e.type,r=V.indexOf(t.type)===-1?tt:t.type;return V.indexOf(n)-V.indexOf(r)}var nt=[],wt=!1;function Et(e=()=>{}){return queueMicrotask(()=>{wt||setTimeout(()=>{rt()})}),new Promise(t=>{nt.push(()=>{e(),t()})})}function rt(){for(wt=!1;nt.length;)nt.shift()()}function ni(){wt=!0}function At(e,t){return Array.isArray(t)?zt(e,t.join(" ")):typeof t=="object"&&t!==null?ri(e,t):typeof t=="function"?At(e,t()):zt(e,t)}function zt(e,t){let n=o=>o.split(" ").filter(Boolean),r=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(r(t))}function ri(e,t){let n=a=>a.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([a,l])=>l?n(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:n(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),r.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function je(e,t){return typeof t=="object"&&t!==null?ii(e,t):oi(e,t)}function ii(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=si(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{je(e,n)}}function oi(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function si(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function it(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}S("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r!==!1&&(!r||typeof r=="boolean"?li(e,n,t):ai(e,r,t))});function ai(e,t,n){Pn(e,At,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[n](t)}function li(e,t,n){Pn(e,je);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((m,E)=>E<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((m,E)=>E>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,f=l?ce(t,"scale",95)/100:1,h=ce(t,"delay",0)/1e3,g=ce(t,"origin","center"),A="opacity, transform",$=ce(t,"duration",150)/1e3,ee=ce(t,"duration",75)/1e3,d="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:g,transitionDelay:`${h}s`,transitionProperty:A,transitionDuration:`${$}s`,transitionTimingFunction:d},e._x_transition.enter.start={opacity:u,transform:`scale(${f})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:g,transitionDelay:`${h}s`,transitionProperty:A,transitionDuration:`${ee}s`,transitionTimingFunction:d},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${f})`})}function Pn(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){ot(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){ot(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(n);if(t){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(n):o():e._x_transition?e._x_transition.in(n):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let s=kn(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([f])=>f());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function kn(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:kn(t)}function ot(e,t,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,u;ui(e,{start(){a=t(e,r)},during(){l=t(e,n)},before:o,end(){a(),u=t(e,i)},after:s,cleanup(){l(),u()}})}function ui(e,t){let n,r,i,o=it(()=>{O(()=>{n=!0,r||t.before(),i||(t.end(),rt()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:it(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},O(()=>{t.start(),t.during()}),ni(),requestAnimationFrame(()=>{if(n)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),O(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(O(()=>{t.end()}),rt(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function ce(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"||t==="delay"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}var q=!1;function xe(e,t=()=>{}){return(...n)=>q?t(...n):e(...n)}function ci(e){return(...t)=>q&&e(...t)}var jn=[];function Re(e){jn.push(e)}function fi(e,t){jn.forEach(n=>n(e,t)),q=!0,Rn(()=>{K(t,(n,r)=>{r(n,()=>{})})}),q=!1}var st=!1;function di(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),q=!0,st=!0,Rn(()=>{pi(t)}),q=!1,st=!1}function pi(e){let t=!1;K(e,(r,i)=>{H(r,(o,s)=>{if(t&&Rr(o))return s();t=!0,i(o,s)})})}function Rn(e){let t=Z;Kt((n,r)=>{let i=t(n);return se(i),()=>{}}),e(),Kt(t)}function Bn(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=oe({})),e._x_bindings[t]=n,t=r.includes("camel")?yi(t):t,t){case"value":_i(e,n);break;case"style":gi(e,n);break;case"class":hi(e,n);break;case"selected":case"checked":vi(e,t,n);break;default:Ln(e,t,n);break}}function _i(e,t){if(e.type==="radio")e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Me(e.value)===t:e.checked=Ht(e.value,t));else if(e.type==="checkbox")Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>Ht(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")mi(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function hi(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=At(e,t)}function gi(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=je(e,t)}function vi(e,t,n){Ln(e,t,n),bi(e,t,n)}function Ln(e,t,n){[null,void 0,!1].includes(n)&&wi(t)?e.removeAttribute(t):(Fn(t)&&(n=t),xi(e,t,n))}function xi(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function bi(e,t,n){e[t]!==n&&(e[t]=n)}function mi(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function yi(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Ht(e,t){return e==t}function Me(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}function Fn(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 wi(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Ei(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Kn(e,t,n)}function Ai(e,t,n,r=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=r,yn(()=>Y(e,i.expression))}return Kn(e,t,n)}function Kn(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:Fn(t)?!![t,"true"].includes(r):r}function Dn(e,t){var n;return function(){var r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}function zn(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function Hn({get:e,set:t},{get:n,set:r}){let i=!0,o,s,a=Z(()=>{let l=e(),u=n();if(i)r(qe(l)),i=!1;else{let f=JSON.stringify(l),h=JSON.stringify(u);f!==o?r(qe(l)):f!==h&&t(qe(u))}o=JSON.stringify(e()),s=JSON.stringify(n())});return()=>{se(a)}}function qe(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Si(e){(Array.isArray(e)?e:[e]).forEach(n=>n(be))}var U={},qt=!1;function Ci(e,t){if(qt||(U=oe(U),qt=!0),t===void 0)return U[e];U[e]=t,typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&U[e].init(),xn(U[e])}function Oi(){return U}var qn={};function Ti(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?Wn(e,n()):(qn[e]=n,()=>{})}function Mi(e){return Object.entries(qn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function Wn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=An(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),mt(e,i,n).map(s=>{r.push(s.runCleanups),s()}),()=>{for(;r.length;)r.pop()()}}var Un={};function Ii(e,t){Un[e]=t}function Ni(e,t){return Object.entries(Un).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var $i={get reactive(){return oe},get release(){return se},get effect(){return Z},get raw(){return tn},version:"3.13.5",flushAndStopDeferringMutations:zr,dontAutoEvaluateFunctions:yn,disableEffectScheduling:$r,startObservingMutations:gt,stopObservingMutations:gn,setReactivityEngine:Pr,onAttributeRemoved:_n,onAttributesAdded:pn,closestDataStack:re,skipDuringClone:xe,onlyDuringClone:ci,addRootSelector:an,addInitSelector:ln,interceptClone:Re,addScopeToNode:ge,deferMutations:Dr,mapAttributes:yt,evaluateLater:M,interceptInit:Br,setEvaluator:Vr,mergeProxies:ve,extractProp:Ai,findClosest:ke,onElRemoved:pt,closestRoot:Pe,destroyTree:dt,interceptor:bn,transition:ot,setStyles:je,mutateDom:O,directive:S,entangle:Hn,throttle:zn,debounce:Dn,evaluate:Y,initTree:K,nextTick:Et,prefixed:ae,prefix:Xr,plugin:Si,magic:j,store:Ci,start:jr,clone:di,cloneNode:fi,bound:Ei,$data:vn,watch:nn,walk:H,data:Ii,bind:Ti},be=$i;function Vn(e,t){let n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}var Pi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yo=Vn(Pi+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),ki=Object.freeze({}),Go=Object.freeze([]),ji=Object.prototype.hasOwnProperty,Be=(e,t)=>ji.call(e,t),G=Array.isArray,_e=e=>Jn(e)==="[object Map]",Ri=e=>typeof e=="string",St=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",Bi=Object.prototype.toString,Jn=e=>Bi.call(e),Yn=e=>Jn(e).slice(8,-1),Ct=e=>Ri(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fe=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Li=/-(\w)/g,Xo=Fe(e=>e.replace(Li,(t,n)=>n?n.toUpperCase():"")),Fi=/\B([A-Z])/g,Zo=Fe(e=>e.replace(Fi,"-$1").toLowerCase()),Gn=Fe(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qo=Fe(e=>e?`on${Gn(e)}`:""),Xn=(e,t)=>e!==t&&(e===e||t===t),at=new WeakMap,fe=[],B,X=Symbol("iterate"),lt=Symbol("Map key iterate");function Ki(e){return e&&e._isEffect===!0}function Di(e,t=ki){Ki(e)&&(e=e.raw);let n=qi(e,t);return t.lazy||n(),n}function zi(e){e.active&&(Zn(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Hi=0;function qi(e,t){let n=function(){if(!n.active)return e();if(!fe.includes(n)){Zn(n);try{return Ui(),fe.push(n),B=n,e()}finally{fe.pop(),Qn(),B=fe[fe.length-1]}}};return n.id=Hi++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Zn(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var ie=!0,Ot=[];function Wi(){Ot.push(ie),ie=!1}function Ui(){Ot.push(ie),ie=!0}function Qn(){let e=Ot.pop();ie=e===void 0?!0:e}function k(e,t,n){if(!ie||B===void 0)return;let r=at.get(e);r||at.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(B)||(i.add(B),B.deps.push(i),B.options.onTrack&&B.options.onTrack({effect:B,target:e,type:t,key:n}))}function W(e,t,n,r,i,o){let s=at.get(e);if(!s)return;let a=new Set,l=f=>{f&&f.forEach(h=>{(h!==B||h.allowRecurse)&&a.add(h)})};if(t==="clear")s.forEach(l);else if(n==="length"&&G(e))s.forEach((f,h)=>{(h==="length"||h>=r)&&l(f)});else switch(n!==void 0&&l(s.get(n)),t){case"add":G(e)?Ct(n)&&l(s.get("length")):(l(s.get(X)),_e(e)&&l(s.get(lt)));break;case"delete":G(e)||(l(s.get(X)),_e(e)&&l(s.get(lt)));break;case"set":_e(e)&&l(s.get(X));break}let u=f=>{f.options.onTrigger&&f.options.onTrigger({effect:f,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:o}),f.options.scheduler?f.options.scheduler(f):f()};a.forEach(u)}var Vi=Vn("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(St)),Ji=tr(),Yi=tr(!0),Wt=Gi();function Gi(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){let r=y(this);for(let o=0,s=this.length;o<s;o++)k(r,"get",o+"");let i=r[t](...n);return i===-1||i===!1?r[t](...n.map(y)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Wi();let r=y(this)[t].apply(this,n);return Qn(),r}}),e}function tr(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?po:or:t?fo:ir).get(r))return r;let s=G(r);if(!e&&s&&Be(Wt,i))return Reflect.get(Wt,i,o);let a=Reflect.get(r,i,o);return(St(i)?er.has(i):Vi(i))||(e||k(r,"get",i),t)?a:ut(a)?!s||!Ct(i)?a.value:a:Le(a)?e?sr(a):Nt(a):a}}var Xi=Zi();function Zi(e=!1){return function(n,r,i,o){let s=n[r];if(!e&&(i=y(i),s=y(s),!G(n)&&ut(s)&&!ut(i)))return s.value=i,!0;let a=G(n)&&Ct(r)?Number(r)<n.length:Be(n,r),l=Reflect.set(n,r,i,o);return n===y(o)&&(a?Xn(i,s)&&W(n,"set",r,i,s):W(n,"add",r,i)),l}}function Qi(e,t){let n=Be(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&W(e,"delete",t,void 0,r),i}function eo(e,t){let n=Reflect.has(e,t);return(!St(t)||!er.has(t))&&k(e,"has",t),n}function to(e){return k(e,"iterate",G(e)?"length":X),Reflect.ownKeys(e)}var no={get:Ji,set:Xi,deleteProperty:Qi,has:eo,ownKeys:to},ro={get:Yi,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Tt=e=>Le(e)?Nt(e):e,Mt=e=>Le(e)?sr(e):e,It=e=>e,Ke=e=>Reflect.getPrototypeOf(e);function Ee(e,t,n=!1,r=!1){e=e.__v_raw;let i=y(e),o=y(t);t!==o&&!n&&k(i,"get",t),!n&&k(i,"get",o);let{has:s}=Ke(i),a=r?It:n?Mt:Tt;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Ae(e,t=!1){let n=this.__v_raw,r=y(n),i=y(e);return e!==i&&!t&&k(r,"has",e),!t&&k(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function Se(e,t=!1){return e=e.__v_raw,!t&&k(y(e),"iterate",X),Reflect.get(e,"size",e)}function Ut(e){e=y(e);let t=y(this);return Ke(t).has.call(t,e)||(t.add(e),W(t,"add",e,e)),this}function Vt(e,t){t=y(t);let n=y(this),{has:r,get:i}=Ke(n),o=r.call(n,e);o?rr(n,r,e):(e=y(e),o=r.call(n,e));let s=i.call(n,e);return n.set(e,t),o?Xn(t,s)&&W(n,"set",e,t,s):W(n,"add",e,t),this}function Jt(e){let t=y(this),{has:n,get:r}=Ke(t),i=n.call(t,e);i?rr(t,n,e):(e=y(e),i=n.call(t,e));let o=r?r.call(t,e):void 0,s=t.delete(e);return i&&W(t,"delete",e,void 0,o),s}function Yt(){let e=y(this),t=e.size!==0,n=_e(e)?new Map(e):new Set(e),r=e.clear();return t&&W(e,"clear",void 0,void 0,n),r}function Ce(e,t){return function(r,i){let o=this,s=o.__v_raw,a=y(s),l=t?It:e?Mt:Tt;return!e&&k(a,"iterate",X),s.forEach((u,f)=>r.call(i,l(u),l(f),o))}}function Oe(e,t,n){return function(...r){let i=this.__v_raw,o=y(i),s=_e(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...r),f=n?It:t?Mt:Tt;return!t&&k(o,"iterate",l?lt:X),{next(){let{value:h,done:g}=u.next();return g?{value:h,done:g}:{value:a?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function z(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Gn(e)} operation ${n}failed: target is readonly.`,y(this))}return e==="delete"?!1:this}}function io(){let e={get(o){return Ee(this,o)},get size(){return Se(this)},has:Ae,add:Ut,set:Vt,delete:Jt,clear:Yt,forEach:Ce(!1,!1)},t={get(o){return Ee(this,o,!1,!0)},get size(){return Se(this)},has:Ae,add:Ut,set:Vt,delete:Jt,clear:Yt,forEach:Ce(!1,!0)},n={get(o){return Ee(this,o,!0)},get size(){return Se(this,!0)},has(o){return Ae.call(this,o,!0)},add:z("add"),set:z("set"),delete:z("delete"),clear:z("clear"),forEach:Ce(!0,!1)},r={get(o){return Ee(this,o,!0,!0)},get size(){return Se(this,!0)},has(o){return Ae.call(this,o,!0)},add:z("add"),set:z("set"),delete:z("delete"),clear:z("clear"),forEach:Ce(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Oe(o,!1,!1),n[o]=Oe(o,!0,!1),t[o]=Oe(o,!1,!0),r[o]=Oe(o,!0,!0)}),[e,n,t,r]}var[oo,so,ao,lo]=io();function nr(e,t){let n=t?e?lo:ao:e?so:oo;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Be(n,i)&&i in r?n:r,i,o)}var uo={get:nr(!1,!1)},co={get:nr(!0,!1)};function rr(e,t,n){let r=y(n);if(r!==n&&t.call(e,r)){let i=Yn(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="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 ir=new WeakMap,fo=new WeakMap,or=new WeakMap,po=new WeakMap;function _o(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ho(e){return e.__v_skip||!Object.isExtensible(e)?0:_o(Yn(e))}function Nt(e){return e&&e.__v_isReadonly?e:ar(e,!1,no,uo,ir)}function sr(e){return ar(e,!0,ro,co,or)}function ar(e,t,n,r,i){if(!Le(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=ho(e);if(s===0)return e;let a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function y(e){return e&&y(e.__v_raw)||e}function ut(e){return!!(e&&e.__v_isRef===!0)}j("nextTick",()=>Et);j("dispatch",e=>pe.bind(pe,e));j("watch",(e,{evaluateLater:t,cleanup:n})=>(r,i)=>{let o=t(r),a=nn(()=>{let l;return o(u=>l=u),l},i);n(a)});j("store",Oi);j("data",e=>vn(e));j("root",e=>Pe(e));j("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=ve(go(e))),e._x_refs_proxy));function go(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}var We={};function lr(e){return We[e]||(We[e]=0),++We[e]}function vo(e,t){return ke(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function xo(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=lr(t))}j("id",(e,{cleanup:t})=>(n,r=null)=>{let i=`${n}${r?`-${r}`:""}`;return bo(e,i,t,()=>{let o=vo(e,n),s=o?o._x_ids[n]:lr(n);return r?`${n}-${s}-${r}`:`${n}-${s}`})});Re((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function bo(e,t,n,r){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n(()=>{delete e._x_id[t]}),i}j("el",e=>e);ur("Focus","focus","focus");ur("Persist","persist","persist");function ur(e,t,n){j(t,r=>F(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}S("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),s=()=>{let f;return o(h=>f=h),f},a=r(`${t} = __placeholder`),l=f=>a(()=>{},{scope:{__placeholder:f}}),u=s();l(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let f=e._x_model.get,h=e._x_model.set,g=Hn({get(){return f()},set(A){h(A)}},{get(){return s()},set(A){l(A)}});i(g)})});S("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&F("x-teleport can only be used on a <template> tag",e);let i=Gt(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{o.addEventListener(a,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),ge(o,{},e);let s=(a,l,u)=>{u.includes("prepend")?l.parentNode.insertBefore(a,l):u.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};O(()=>{s(o,i,t),K(o),o._x_ignore=!0}),e._x_teleportPutBack=()=>{let a=Gt(n);O(()=>{s(e._x_teleport,a,t)})},r(()=>o.remove())});var mo=document.createElement("div");function Gt(e){let t=xe(()=>document.querySelector(e),()=>mo)();return t||F(`Cannot find x-teleport element for selector: "${e}"`),t}var cr=()=>{};cr.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};S("ignore",cr);S("effect",xe((e,{expression:t},{effect:n})=>{n(M(e,t))}));function ct(e,t,n,r){let i=e,o=l=>r(l),s={},a=(l,u)=>f=>u(l,f);if(n.includes("dot")&&(t=yo(t)),n.includes("camel")&&(t=wo(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let l=n[n.indexOf("debounce")+1]||"invalid-wait",u=$e(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=Dn(o,u)}if(n.includes("throttle")){let l=n[n.indexOf("throttle")+1]||"invalid-wait",u=$e(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=zn(o,u)}return n.includes("prevent")&&(o=a(o,(l,u)=>{u.preventDefault(),l(u)})),n.includes("stop")&&(o=a(o,(l,u)=>{u.stopPropagation(),l(u)})),n.includes("self")&&(o=a(o,(l,u)=>{u.target===e&&l(u)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),n.includes("once")&&(o=a(o,(l,u)=>{l(u),i.removeEventListener(t,o,s)})),o=a(o,(l,u)=>{Ao(t)&&So(u,n)||l(u)}),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function yo(e){return e.replace(/-/g,".")}function wo(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function $e(e){return!Array.isArray(e)&&!isNaN(e)}function Eo(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Ao(e){return["keydown","keyup"].includes(e)}function So(e,t){let n=t.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,$e((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,$e((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Xt(e.key).includes(n[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&Xt(e.key).includes(n[0]))}function Xt(e){if(!e)return[];e=Eo(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}S("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=M(o,n),a;typeof n=="string"?a=M(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=M(o,`${n()} = __placeholder`):a=()=>{};let l=()=>{let g;return s(A=>g=A),Zt(g)?g.get():g},u=g=>{let A;s($=>A=$),Zt(A)?A.set(g):a(()=>{},{scope:{__placeholder:g}})};typeof n=="string"&&e.type==="radio"&&O(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var f=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let h=q?()=>{}:ct(e,f,t,g=>{u(Co(e,t,g,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||e.type==="checkbox"&&Array.isArray(l()))&&e.dispatchEvent(new Event(f,{})),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=h,i(()=>e._x_removeModelListeners.default()),e.form){let g=ct(e.form,"reset",[],A=>{Et(()=>e._x_model&&e._x_model.set(e.value))});i(()=>g())}e._x_model={get(){return l()},set(g){u(g)}},e._x_forceModelUpdate=g=>{g===void 0&&typeof n=="string"&&n.match(/\./)&&(g=""),window.fromModel=!0,O(()=>Bn(e,"value",g)),delete window.fromModel},r(()=>{let g=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(g)})});function Co(e,t,n,r){return O(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(e.type==="checkbox")if(Array.isArray(r)){let i=null;return t.includes("number")?i=Ue(n.target.value):t.includes("boolean")?i=Me(n.target.value):i=n.target.value,n.target.checked?r.concat([i]):r.filter(o=>!Oo(o,i))}else return n.target.checked;else return e.tagName.toLowerCase()==="select"&&e.multiple?t.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ue(o)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return Me(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text):t.includes("number")?Ue(n.target.value):t.includes("boolean")?Me(n.target.value):t.includes("trim")?n.target.value.trim():n.target.value})}function Ue(e){let t=e?parseFloat(e):null;return To(t)?t:e}function Oo(e,t){return e==t}function To(e){return!Array.isArray(e)&&!isNaN(e)}function Zt(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}S("cloak",e=>queueMicrotask(()=>O(()=>e.removeAttribute(ae("cloak")))));ln(()=>`[${ae("init")}]`);S("init",xe((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));S("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{O(()=>{e.textContent=o})})})});S("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{O(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,K(e),delete e._x_ignoreSelf})})})});yt(On(":",Tn(ae("bind:"))));var fr=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o})=>{if(!t){let a={};Mi(a),M(e,r)(u=>{Wn(e,u,i)},{scope:a});return}if(t==="key")return Mo(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=M(e,r);o(()=>s(a=>{a===void 0&&typeof r=="string"&&r.match(/\./)&&(a=""),O(()=>Bn(e,t,a,n))}))};fr.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};S("bind",fr);function Mo(e,t){e._x_keyExpression=t}an(()=>`[${ae("data")}]`);S("data",(e,{expression:t},{cleanup:n})=>{if(Io(e))return;t=t===""?"{}":t;let r={};Ze(r,e);let i={};Ni(i,r);let o=Y(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),Ze(o,e);let s=oe(o);xn(s);let a=ge(e,s);s.init&&Y(e,s.init),n(()=>{s.destroy&&Y(e,s.destroy),a()})});Re((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Io(e){return q?st?!0:e.hasAttribute("data-has-alpine-state"):!1}S("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=M(e,n);e._x_doHide||(e._x_doHide=()=>{O(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{O(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),l=it(h=>h?s():o(),h=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,h,s,o):h?a():o()}),u,f=!0;r(()=>i(h=>{!f&&h===u||(t.includes("immediate")&&(h?a():o()),l(h),u=h,f=!1)}))});S("for",(e,{expression:t},{effect:n,cleanup:r})=>{let i=$o(t),o=M(e,i.items),s=M(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>No(e,i,o,s)),r(()=>{Object.values(e._x_lookup).forEach(a=>a.remove()),delete e._x_prevKeys,delete e._x_lookup})});function No(e,t,n,r){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;n(s=>{Po(s)&&s>=0&&(s=Array.from(Array(s).keys(),d=>d+1)),s===void 0&&(s=[]);let a=e._x_lookup,l=e._x_prevKeys,u=[],f=[];if(i(s))s=Object.entries(s).map(([d,m])=>{let E=Qt(t,m,d,s);r(T=>f.push(T),{scope:ne({index:d},E)}),u.push(E)});else for(let d=0;d<s.length;d++){let m=Qt(t,s[d],d,s);r(E=>f.push(E),{scope:ne({index:d},m)}),u.push(m)}let h=[],g=[],A=[],$=[];for(let d=0;d<l.length;d++){let m=l[d];f.indexOf(m)===-1&&A.push(m)}l=l.filter(d=>!A.includes(d));let ee="template";for(let d=0;d<f.length;d++){let m=f[d],E=l.indexOf(m);if(E===-1)l.splice(d,0,m),h.push([ee,d]);else if(E!==d){let T=l.splice(d,1)[0],C=l.splice(E-1,1)[0];l.splice(d,0,C),l.splice(E,0,T),g.push([T,C])}else $.push(m);ee=m}for(let d=0;d<A.length;d++){let m=A[d];a[m]._x_effects&&a[m]._x_effects.forEach(en),a[m].remove(),a[m]=null,delete a[m]}for(let d=0;d<g.length;d++){let[m,E]=g[d],T=a[m],C=a[E],D=document.createElement("div");O(()=>{C||F('x-for ":key" is undefined or invalid',o),C.after(D),T.after(C),C._x_currentIfEl&&C.after(C._x_currentIfEl),D.before(T),T._x_currentIfEl&&T.after(T._x_currentIfEl),D.remove()}),C._x_refreshXForScope(u[f.indexOf(E)])}for(let d=0;d<h.length;d++){let[m,E]=h[d],T=m==="template"?o:a[m];T._x_currentIfEl&&(T=T._x_currentIfEl);let C=u[E],D=f[E],L=document.importNode(o.content,!0).firstElementChild,c=oe(C);ge(L,c,o),L._x_refreshXForScope=_=>{Object.entries(_).forEach(([b,w])=>{c[b]=w})},O(()=>{T.after(L),K(L)}),typeof D=="object"&&F("x-for key cannot be an object, it must be a string or an integer",o),a[D]=L}for(let d=0;d<$.length;d++)a[$[d]]._x_refreshXForScope(u[f.indexOf($[d])]);o._x_prevKeys=f})}function $o(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(n,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Qt(e,t,n,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function Po(e){return!Array.isArray(e)&&!isNaN(e)}function dr(){}dr.inline=(e,{expression:t},{cleanup:n})=>{let r=Pe(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};S("ref",dr);S("if",(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&F("x-if can only be used on a <template> tag",e);let i=M(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return ge(a,{},e),O(()=>{e.after(a),K(a)}),e._x_currentIfEl=a,e._x_undoIf=()=>{H(a,l=>{l._x_effects&&l._x_effects.forEach(en)}),a.remove(),delete e._x_currentIfEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(a=>{a?o():s()})),r(()=>e._x_undoIf&&e._x_undoIf())});S("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>xo(e,i))});Re((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});yt(On("@",Tn(ae("on:"))));S("on",xe((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?M(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=ct(e,t,n,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));De("Collapse","collapse","collapse");De("Intersect","intersect","intersect");De("Focus","trap","focus");De("Mask","mask","mask");function De(e,t,n){S(t,r=>F(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}be.setEvaluator(En);be.setReactivityEngine({reactive:Nt,effect:Di,release:zi,raw:y});var ko=be,$t=ko;function kt(e,t,n){Bo();let r,i,o,s,a,l,u,f,h,g;function A(c={}){let _=w=>w.getAttribute("key"),b=()=>{};a=c.updating||b,l=c.updated||b,u=c.removing||b,f=c.removed||b,h=c.adding||b,g=c.added||b,o=c.key||_,s=c.lookahead||!1}function $(c,_){if(ee(c,_))return d(c,_);let b=!1;if(!le(a,c,_,()=>b=!0)){if(c.nodeType===1&&window.Alpine&&window.Alpine.cloneNode(c,_),Ro(_)){m(c,_),l(c,_);return}b||E(c,_),l(c,_),T(c,_)}}function ee(c,_){return c.nodeType!=_.nodeType||c.nodeName!=_.nodeName||C(c)!=C(_)}function d(c,_){if(le(u,c))return;let b=_.cloneNode(!0);le(h,b)||(c.replaceWith(b),f(c),g(b))}function m(c,_){let b=_.nodeValue;c.nodeValue!==b&&(c.nodeValue=b)}function E(c,_){if(c._x_transitioning||c._x_isShown&&!_._x_isShown||!c._x_isShown&&_._x_isShown)return;let b=Array.from(c.attributes),w=Array.from(_.attributes);for(let v=b.length-1;v>=0;v--){let p=b[v].name;_.hasAttribute(p)||c.removeAttribute(p)}for(let v=w.length-1;v>=0;v--){let p=w[v].name,te=w[v].value;c.getAttribute(p)!==te&&c.setAttribute(p,te)}}function T(c,_){c._x_teleport&&(c=c._x_teleport),_._x_teleport&&(_=_._x_teleport);let b=D(c.children),w={},v=_r(_),p=_r(c);for(;v;){Lo(v,p);let I=C(v),R=C(p);if(!p)if(I&&w[I]){let x=w[I];c.appendChild(x),p=x}else{if(!le(h,v)){let x=v.cloneNode(!0);c.appendChild(x),g(x)}v=N(_,v);continue}let me=x=>x&&x.nodeType===8&&x.textContent==="[if BLOCK]><![endif]",ye=x=>x&&x.nodeType===8&&x.textContent==="[if ENDBLOCK]><![endif]";if(me(v)&&me(p)){let x=0,we=p;for(;p;){let P=N(c,p);if(me(P))x++;else if(ye(P)&&x>0)x--;else if(ye(P)&&x===0){p=P;break}p=P}let xr=p;x=0;let br=v;for(;v;){let P=N(_,v);if(me(P))x++;else if(ye(P)&&x>0)x--;else if(ye(P)&&x===0){v=P;break}v=P}let mr=v,yr=new Pt(we,xr),wr=new Pt(br,mr);T(yr,wr);continue}if(p.nodeType===1&&s&&!p.isEqualNode(v)){let x=N(_,v),we=!1;for(;!we&&x;)x.nodeType===1&&p.isEqualNode(x)&&(we=!0,p=L(c,v,p),R=C(p)),x=N(_,x)}if(I!==R){if(!I&&R){w[R]=p,p=L(c,v,p),w[R].remove(),p=N(c,p),v=N(_,v);continue}if(I&&!R&&b[I]&&(p.replaceWith(b[I]),p=b[I]),I&&R){let x=b[I];if(x)w[R]=p,p.replaceWith(x),p=x;else{w[R]=p,p=L(c,v,p),w[R].remove(),p=N(c,p),v=N(_,v);continue}}}let vr=p&&N(c,p);$(p,v),v=v&&N(_,v),p=vr}let te=[];for(;p;)le(u,p)||te.push(p),p=N(c,p);for(;te.length;){let I=te.shift();I.remove(),f(I)}}function C(c){return c&&c.nodeType===1&&o(c)}function D(c){let _={};for(let b of c){let w=C(b);w&&(_[w]=b)}return _}function L(c,_,b){if(!le(h,_)){let w=_.cloneNode(!0);return c.insertBefore(w,b),g(w),w}return _}return A(n),r=e,i=typeof t=="string"?jo(t):t,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(i._x_dataStack=window.Alpine.closestDataStack(e),i._x_dataStack&&window.Alpine.cloneNode(e,i)),$(e,i),r=void 0,i=void 0,e}kt.step=()=>{};kt.log=()=>{};function le(e,...t){let n=!1;return e(...t,()=>n=!0),n}var pr=!1;function jo(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Ro(e){return e.nodeType===3||e.nodeType===8}var Pt=class{constructor(e,t){this.startComment=e,this.endComment=t}get children(){let e=[],t=this.startComment.nextSibling;for(;t&&t!==this.endComment;)e.push(t),t=t.nextSibling;return e}appendChild(e){this.endComment.before(e)}get firstChild(){let e=this.startComment.nextSibling;if(e!==this.endComment)return e}nextNode(e){let t=e.nextSibling;if(t!==this.endComment)return t}insertBefore(e,t){return t.before(e),e}};function _r(e){return e.firstChild}function N(e,t){let n;return e instanceof Pt?n=e.nextNode(t):n=t.nextSibling,n}function Bo(){if(pr)return;pr=!0;let e=Element.prototype.setAttribute,t=document.createElement("div");Element.prototype.setAttribute=function(r,i){if(!r.includes("@"))return e.call(this,r,i);t.innerHTML=`<span ${r}="${i}"></span>`;let o=t.firstElementChild.getAttributeNode(r);t.firstElementChild.removeAttributeNode(o),this.setAttributeNode(o)}}function Lo(e,t){let n=t&&t._x_bindings&&t._x_bindings.id;n&&(e.setAttribute("id",n),e.id=n)}function Fo(e){e.morph=kt}var hr=Fo;$t.plugin(hr);var Ko=/INPUT/i,Do=/date|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/i,zo=/TEXTAREA/i;function Ho(e,t,n,r){if(e.nodeType!==Node.ELEMENT_NODE||e!==document.activeElement)return;if(e.tagName.match(zo)||e.tagName.match(Ko)&&e.getAttribute("type").match(Do))return r()}function jt(e,t){$t.morph(e,t,{updating:Ho})}var Q={before:"turbo-boost:stream:before-invoke",after:"turbo-boost:stream:after-invoke",finish:"turbo-boost:stream:finish-invoke"};function ze(e,t,n){let{object:r,target:i}=e;t=t||{},t=Ft(ne({},t),{object:e.object});let o={detail:t,bubbles:!0};i.dispatchEvent(new CustomEvent(Q.before,o));let{delay:s}=t.invoke||{};s=s||0;let a=()=>{let l=n(r);o.detail.result=l,i.dispatchEvent(new CustomEvent(Q.after,o));let u;l instanceof Animation&&(u=l.finished),l instanceof Promise&&(u=l),u?u.then(()=>{o.detail.promise="fulfilled",i.dispatchEvent(new CustomEvent(Q.finish,o))},()=>{o.detail.promise="rejected",i.dispatchEvent(new CustomEvent(Q.finish,o))}):i.dispatchEvent(new CustomEvent(Q.finish,o))};s>0?setTimeout(a,s):a()}function qo(e,t,n){let r=t[0],i=t[1],o={method:e,eventName:r,eventOptions:i};n.forEach(s=>ze(s,o,a=>a.dispatchEvent(new CustomEvent(r,i))))}function Wo(e,t,n){let r=t[0],i={method:e,html:r};n.forEach(o=>ze(o,i,s=>jt(s,r)))}function Uo(e,t,n){let r=e.slice(0,-1).trim(),i=t[0],o={method:e,property:r,value:i};n.forEach(s=>ze(s,o,a=>a[r]=i))}function Vo(e,t,n){let r={method:e,args:t};n.forEach(i=>ze(i,r,o=>o[e].apply(o,t)))}function gr(e,t,n){return e.match(/^dispatch(Event)?$/)?qo(e,t,n):e.match(/^morph|mutate$/)?Wo(e,t,n):e.endsWith("=")?Uo(e,t,n):Vo(e,t,n)}function Rt(){let e=JSON.parse(this.templateContent.textContent),{id:t,selector:n,receiver:r,method:i,args:o,delay:s}=e,a=[{object:self,target:self}];n&&(a=Array.from(document.querySelectorAll(n)).map(l=>({object:l,target:l}))),r&&(a=a.map(l=>{let{object:u,target:f}=l,h=r.split(".");for(;h.length>0;)u=u[h.shift()],u.dispatchEvent&&(f=u);return{object:u,target:f}})),s>0?setTimeout(()=>gr(i,o,a),s):gr(i,o,a)}if(!self.Turbo)throw new Error("`Turbo` is not defined! Be sure to import `@turbo-boost/streams` after `@hotwired/turbo` or `@hotwired/turbo-rails`.");if(!Turbo.StreamActions)throw new Error("`Turbo.StreamActions` is not defined! Verify that you are running >= `7.2.0` of `@hotwired/turbo`.");Turbo.StreamActions.invoke=Rt;self.TurboBoost=self.TurboBoost||{};self.TurboBoost.Streams={invoke:Rt,invokeEvents:Q};console.info("@turbo-boost/streams has initialized and registered new stream actions with Turbo.");var fs=self.TurboBoost.Streams;export{fs as default};
6
6
  //# sourceMappingURL=streams.js.map