diff --git a/.github/instructions/a11y.instructions.md b/.github/instructions/a11y.instructions.md new file mode 100644 index 00000000000..aa3a8ef2a87 --- /dev/null +++ b/.github/instructions/a11y.instructions.md @@ -0,0 +1,297 @@ +--- +description: "Guidance for creating more accessible code" +applyTo: "resources/js/**,resources/css/**,resources/templates/**,packages/craftcms-cp/src/**" +--- + +# Accessibility instructions + +You are an expert in accessibility with deep software engineering expertise. + +## Non-negotiables (MUST) + +- Conform to [WCAG 2.2 Level AA](https://www.w3.org/TR/WCAG22/). +- Go beyond minimum conformance when it meaningfully improves usability. +- UI components are defined as Lit Web Components in the component library (`@craftcms/cp`) or as Vue components in `./resources/js/`. You SHOULD use the component patterns as defined. Do not recreate patterns. + - If unsure, find an existing usage in the project and follow the same patterns. + - Ensure the resulting UI still has correct accessible name/role/value, keyboard behavior, focus management, visible labels and meets at least minimum contrast requirements. +- If a needed component does not exist, prefer native HTML elements/attributes over ARIA. + - The `@craftcms/cp` component library should include components that can be reused by plugin developers, or outside the context of this application. Vue components should be used for application-specific UI. +- Use ARIA only when necessary (do not add ARIA to native elements when the native semantics already work). +- Ensure correct accessible **name, role, value, states, and properties**. +- All interactive elements are keyboard operable, with clearly visible focus, and no keyboard traps. +- Do not claim the output is “fully accessible”. + +## Inclusive language (MUST) + +- Use respectful, inclusive, people-first language in any user-facing text. +- Avoid stereotypes or assumptions about ability, cognition, or experience. + +## Cognitive load (SHOULD) + +- Prefer plain language. +- Use consistent page structure (landmarks). +- Keep navigation order consistent. +- Keep the interface clean and simple (avoid unnecessary distractions). + +## Structure and semantics + +### Page structure (MUST) + +- Use landmarks (`header`, `nav`, `main`, `footer`) appropriately. +- Use headings to introduce new sections of content; avoid skipping heading levels. +- Prefer one `h1` for the page topic. Generally, the first heading within the `main` element / landmark. + +### Page title (SHOULD) + +- Set a descriptive ``. +- Prefer: “Unique page - section - site”. + +## Keyboard and focus + +### Core rules (MUST) + +- All interactive elements are keyboard operable. +- Tab order follows reading order and is predictable. +- Focus is always visible. +- Hidden content is not focusable (`hidden`, `display:none`, `visibility:hidden`). +- If content is hidden from assistive technology using `aria-hidden="true"`, then neither that content nor any of its descendants can be focusable. +- Static content MUST NOT be tabbable. + - Exception: if an element needs programmatic focus, use `tabindex="-1"`. + +### Skip link / bypass blocks (MUST) + +- Provide a skip link as the first focusable element. +- When implementing a section with a large number of tab stops, consider adding a skip link to jump to the next section. + +```html +<header> + <a href="#maincontent" class="skip-link">Skip to main content</a> + <!-- header content --> +</header> +<nav> + <!-- navigation --> +</nav> +<main id="maincontent" tabindex="-1"> + <h1><!-- page title --></h1> + <!-- content --> +</main> +``` + +### Composite widgets (SHOULD) + +If a component uses arrow-key navigation within itself (tabs, listbox, menu-like UI, grid/date picker): + +- Provide one tab stop for the composite container or one child. +- Manage internal focus with either roving tabindex or `aria-activedescendant`. + +Roving tabindex (SHOULD): + +- Exactly one focusable item has `tabindex="0"`; all others are `-1`. +- Arrow keys move focus by swapping tabindex and calling `.focus()`. + +`aria-activedescendant` (SHOULD): + +- Container is implicitly focusable or has `tabindex="0"` and `aria-activedescendant="IDREF"`. +- Arrow keys update `aria-activedescendant`. + +## Low vision and contrast (MUST) + +### Contrast requirements (MUST) + +- Text contrast: at least 4.5:1 (large text: 3:1). + - Large text is at least 24px regular or 18.66px bold. +- Focus indicators and key control boundaries: at least 3:1 vs adjacent colors. +- Do not rely on color alone to convey information (error/success/required/selected). Provide text and/or icons with accessible names. + +### Color generation rules (MUST) + +- Do not invent arbitrary colors. + - Use project-approved design tokens (CSS variables). + - If no relevant colors exist in the palette, define a small token palette and only use those tokens. +- Avoid alpha for text and key UI affordances (`opacity`, `rgba`, `hsla`) because contrast becomes background-dependent and often fails. +- Ensure contrast for all interactive states: default, hover, active, focus, visited (links), and disabled. + +### Safe defaults when unsure (SHOULD) + +- Prefer very dark text on very light backgrounds, or the reverse. +- Avoid mid-gray text on white; muted text should still meet 4.5:1. + +### Tokenized palette contract (SHOULD) + +- Define and use tokens like: `--c-bg-body`, `--c-bg-default`, `--c-color-danger-bg-normal`, `--c-color-danger-bg-emphasis`, `--c-color-danger-bg-subtle`. +- Only assign UI colors via these tokens (avoid scattered inline hex values). + +### Verification (MUST) + +Contrast verification is covered by the Final verification checklist. + +## High contrast / forced colors mode (MUST) + +### Support OS-level accessibility features (MUST) + +- Never override or disrupt OS accessibility settings. +- The UI MUST adapt to High Contrast / Forced Colors mode automatically. +- Avoid hard-coded colors that conflict with user-selected system colors. + +### Use the `forced-colors` media query when needed (SHOULD) + +Use `@media (forced-colors: active)` only when system defaults are not sufficient. + +```css +@media (forced-colors: active) { + /* Example: Replace box-shadow (suppressed in forced-colors) with a border */ + .button { + border: 2px solid ButtonBorder; + } +} + +/* if using box-shadow for a focus style, also use a transparent outline + so that the outline will render when the high contrast setting is enabled */ +.button:focus { + box-shadow: 0 0 4px 3px rgba(90, 50, 200, .7); + outline: 2px solid transparent; +} +``` + +In Forced Colors mode, avoid relying on: + +- Box shadows +- Decorative gradients + +### Respect user color schemes in forced colors (MUST) + +- Use system color keywords (e.g., `ButtonText`, `ButtonBorder`, `CanvasText`, `Canvas`). +- Do not use fixed hex/RGB colors inside `@media (forced-colors: active)`. + +### Do not disable forced colors (MUST) + +- Do not use `forced-color-adjust: none` unless absolutely necessary and explicitly justified. +- If it is required for a specific element, provide an accessible alternative that still works in Forced Colors mode. + +### Icons (MUST) + +- Icons MUST adapt to text color. +- Prefer `currentColor` for SVG icon fills/strokes; avoid embedding fixed colors inside SVGs. + +```css +svg { + fill: currentColor; + stroke: currentColor; +} +``` + +## Reflow (WCAG 2.2 SC 1.4.10) (MUST) + +### Goal (MUST) + +Multi-line text must be able to fit within 320px wide containers or viewports, so that users do not need to scroll in two-dimensions to read sections of content. + +### Core principles (MUST) + +- Preserve information and function: nothing essential is removed, obscured, or truncated. +- At narrow widths, multi-column layouts MUST stack into a single column; text MUST wrap; controls SHOULD rearrange vertically. +- Users MUST NOT need to scroll left/right to read multi-line text. +- If content is collapsed in the narrow layout, the full content/function MUST be available within 1 click (e.g., overflow menu, dialog, tooltip). + +### Engineering requirements (MUST) + +- Use responsive layout primitives (`flex`, `grid`) with fluid sizing; enable text wrapping. +- Avoid fixed widths that force two-dimensional scrolling at 320px. +- Avoid absolute positioning and `overflow: hidden` when it causes content loss, or would result in the obscuring of content at smaller viewport sizes. +- Media and containers SHOULD NOT overflow the viewport at 320px (for example, prefer `max-width: 100%` for images/video/canvas/iframes). +- In flex/grid layouts, ensure children can shrink/wrap (common fix: `min-width: 0` on flex/grid children). +- Handle long strings (URLs, tokens) without forcing overflow (common fix: `overflow-wrap: anywhere` or equivalent). +- Ensure all interactive elements remain visible, reachable, and operable at 320px. + +### Exceptions (SHOULD) + +If a component truly requires a two-dimensional layout for meaning/usage (e.g., large data tables, maps, diagrams, charts, games, presentations), allow horizontal scrolling only at the component level. + +- The page as a whole MUST still reflow (unless the page layout truly requires two-dimensional layout for usage). +- The component MUST remain fully usable (all content reachable; controls operable). + +## Controls and labels + +### Visible labels (MUST) + +- Every interactive element has a visible label. +- The label cannot disappear while entering text or after the field has a value. + +### Voice access (MUST) + +- The accessible name of each interactive element MUST contain the visible label. + - If using `aria-label`, include the visual label text. +- If multiple controls share the same visible label (e.g., many “Remove” buttons), use an `aria-label` that keeps the visible label text and adds context (e.g., “Remove item: Socks”). If text that adds additional context exists on the page, prefer using a `aria-labelledby` with an ID that references the text node. + +## Forms + +### Labels and help text (MUST) + +- Every form control has a programmatic label. + - Prefer `<label for="...">`. +- Labels describe the input purpose. +- If help text exists, associate it with `aria-describedby`. + +### Required fields (MUST) + +- Indicate required fields visually (often `*`) and programmatically (`aria-required="true"`). + +### Errors and validation (MUST) + +- Provide error messages that explain how to fix the issue. +- Use `aria-invalid="true"` for invalid fields; remove it when valid. +- Associate inline errors with the field via `aria-describedby`. +- Submit buttons SHOULD NOT be disabled solely to prevent submission. +- On submit with invalid input, focus the first invalid control. + +## Graphics and images + +All graphics include `img`, `svg`, icon fonts, and emojis. + +- Informative graphics MUST have meaningful alternatives. + - `img`: use `alt`. + - `svg`: prefer `role="img"` and `aria-label`/`aria-labelledby`. +- Decorative graphics MUST be hidden. + - `img`: `alt=""`. + - Other: `aria-hidden="true"`. + +## Navigation and menus + +- Use semantic navigation: `<nav>` with lists and links. +- Do not use `role="menu"` / `role="menubar"` for site navigation. +- For expandable navigation: + - Include button elements to toggle navigation and/or sub-navigations. Use `aria-expanded` on the button to indicate state. + - `Escape` MAY close open sub-navigations. + +## Tables and grids + +### Tables for static data (MUST) + +- Use `<table>` for static tabular data. +- Use `<th>` to associate headers. + - Column headers are in the first row. + - Row headers (when present) use `<th>` in each row. + +### Grids for dynamic UIs (SHOULD) + +- Use grid roles only for truly interactive/dynamic experiences. +- If using `role="grid"`, grid cells MUST be nested in rows so header/cell relationships are determinable. +- Use arrow navigation to navigate within the grid. + +## Final verification checklist (MUST) + +Before finalizing output, explicitly verify: + +- Structure and semantics: landmarks, headings, and one `h1` for the page topic. +- Keyboard and focus: operable controls, visible focus, predictable tab order, no traps, skip link works. +- Controls and labels: visible labels present and included in accessible names. +- Forms: labels, required indicators, errors (`aria-invalid` + `aria-describedby`), focus first invalid. +- Contrast: meets 4.5:1 / 3:1 thresholds, focus/boundaries meet 3:1, color not the only cue. +- Forced colors: does not break OS High Contrast / Forced Colors; uses system colors in `forced-colors: active`. +- Reflow: sections of content should be able to adjust to 320px width without the need for two-dimensional scrolling to read multi-line text; no content loss; controls remain operable. +- Graphics: informative alternatives; decorative graphics hidden. +- Tables/grids: tables use `<th>`; grids (when needed) are structured with rows and cells. + +## Final note + +Generate the HTML with accessibility in mind, but accessibility issues may still exist; manual review and testing (for example with Accessibility Insights) is still recommended. diff --git a/resources/build/AdminTable.js b/resources/build/AdminTable.js index 5e976b86975..9e70acda9fb 100644 --- a/resources/build/AdminTable.js +++ b/resources/build/AdminTable.js @@ -1,4 +1,4 @@ -import{d as e}from"./Queue-wGK97jCw.js";import{$ as t,B as n,E as r,F as i,I as a,J as o,K as s,L as c,N as l,O as u,P as d,Q as f,S as p,T as m,U as h,V as g,X as _,Y as v,Z as y,at as b,b as x,ct as S,g as ee,h as C,it as w,k as T,lt as E,p as te,q as ne,t as re,tt as ie,v as D,w as ae,x as O,y as k,z as A}from"./_plugin-vue_export-helper.js";import{r as j}from"./nav-item-D3exy0bq.js";function oe(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function M(e,t){return typeof e==`function`?e(t):e}function N(e,t){return n=>{t.setState(t=>({...t,[e]:M(n,t[e])}))}}function se(e){return e instanceof Function}function ce(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function le(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function P(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,` +import{m as e}from"./Queue-wGK97jCw.js";import{$ as t,B as n,E as r,F as i,I as a,J as o,K as s,L as c,N as l,O as u,P as d,Q as f,S as p,T as m,U as h,V as g,X as _,Y as v,Z as y,at as b,b as x,ct as S,g as ee,h as C,it as w,k as T,lt as E,p as te,q as ne,t as re,tt as ie,v as D,w as ae,x as O,y as k,z as A}from"./_plugin-vue_export-helper.js";import{r as j}from"./nav-item-D3exy0bq.js";function oe(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function M(e,t){return typeof e==`function`?e(t):e}function N(e,t){return n=>{t.setState(t=>({...t,[e]:M(n,t[e])}))}}function se(e){return e instanceof Function}function ce(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function le(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function P(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,` font-size: .6rem; font-weight: bold; color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return i}}function F(e,t,n,r){return{debug:()=>e?.debugAll??e[t],key:!1,onChange:r}}function ue(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:P(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),F(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function de(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:P(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],F(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:P(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},F(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var I=`debugHeaders`;function fe(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var pe={createTable:e=>{e.getHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return me(t,[...a,...s,...o],e)},F(e.options,I,`getHeaderGroups`)),e.getCenterHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),me(t,n,e,`center`)),F(e.options,I,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>me(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),F(e.options,I,`getLeftHeaderGroups`)),e.getRightHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>me(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),F(e.options,I,`getRightHeaderGroups`)),e.getFooterGroups=P(()=>[e.getHeaderGroups()],e=>[...e].reverse(),F(e.options,I,`getFooterGroups`)),e.getLeftFooterGroups=P(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),F(e.options,I,`getLeftFooterGroups`)),e.getCenterFooterGroups=P(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),F(e.options,I,`getCenterFooterGroups`)),e.getRightFooterGroups=P(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),F(e.options,I,`getRightFooterGroups`)),e.getFlatHeaders=P(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),F(e.options,I,`getFlatHeaders`)),e.getLeftFlatHeaders=P(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),F(e.options,I,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=P(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),F(e.options,I,`getCenterFlatHeaders`)),e.getRightFlatHeaders=P(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),F(e.options,I,`getRightFlatHeaders`)),e.getCenterLeafHeaders=P(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),F(e.options,I,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=P(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),F(e.options,I,`getLeftLeafHeaders`)),e.getRightLeafHeaders=P(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),F(e.options,I,`getRightLeafHeaders`)),e.getLeafHeaders=P(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),F(e.options,I,`getLeafHeaders`))}};function me(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1)},0)};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=!1;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=!0),o&&o?.column===c)o.subHeaders.push(e);else{let i=fe(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i}),o.push(i),t>0&&s(a,t-1)};s(t.map((e,t)=>fe(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var he=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>le(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:P(()=>[e.getAllLeafColumns()],t=>t.map(t=>ue(e,s,t,t.id)),F(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:P(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),F(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t<e._features.length;t++){let n=e._features[t];n==null||n.createRow==null||n.createRow(s,e)}return s},ge={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},_e=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};_e.autoRemove=e=>R(e);var ve=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};ve.autoRemove=e=>R(e);var ye=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};ye.autoRemove=e=>R(e);var be=(e,t,n)=>e.getValue(t)?.includes(n);be.autoRemove=e=>R(e);var xe=(e,t,n)=>!n.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});xe.autoRemove=e=>R(e)||!(e!=null&&e.length);var Se=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));Se.autoRemove=e=>R(e)||!(e!=null&&e.length);var Ce=(e,t,n)=>e.getValue(t)===n;Ce.autoRemove=e=>R(e);var we=(e,t,n)=>e.getValue(t)==n;we.autoRemove=e=>R(e);var Te=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};Te.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},Te.autoRemove=e=>R(e)||R(e[0])&&R(e[1]);var L={includesString:_e,includesStringSensitive:ve,equalsString:ye,arrIncludes:be,arrIncludesAll:xe,arrIncludesSome:Se,equals:Ce,weakEquals:we,inNumberRange:Te};function R(e){return e==null||e===``}var Ee={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:N(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?L.includesString:typeof n==`number`?L.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?L.equals:Array.isArray(n)?L.arrIncludes:L.weakEquals},e.getFilterFn=()=>se(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??L[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=M(n,i?i.value:void 0);if(De(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>M(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&De(t.getFilterFn(),e.value,t))}))},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function De(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t==`string`&&!t}var Oe={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!ce(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},ke={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:N(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return Oe.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return Oe.extent},e.getAggregationFn=()=>{if(!e)throw Error();return se(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??Oe[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)}}};function Ae(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var je={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:N(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=P(e=>[B(t,e)],t=>t.findIndex(t=>t.id===e.id),F(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>B(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=B(t,n);return r[r.length-1]?.id===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=P(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else{let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}return Ae(i,t,n)},F(e.options,`debugTable`,`_getOrderColumnsFn`))}},Me=()=>({left:[],right:[]}),Ne={getInitialState:e=>({columnPinning:Me(),...e}),getDefaultOptions:e=>({onColumnPinningChange:N(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))})},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=P(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},F(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=P(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),F(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=P(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),F(t.options,`debugRows`,`getRightVisibleCells`))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?Me():e.initialState?.columnPinning??Me()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=P(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),F(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=P(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),F(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=P(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},F(e.options,`debugColumns`,`getCenterLeafColumns`))}};function Pe(e){return e||(typeof document<`u`?document:null)}var z={size:150,minSize:20,maxSize:2**53-1},Fe=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Ie={getDefaultColumnDef:()=>z,getInitialState:e=>({columnSizing:{},columnSizingInfo:Fe(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:N(`columnSizing`,e),onColumnSizingInfoChange:N(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??z.minSize,n??e.columnDef.size??z.size),e.columnDef.maxSize??z.maxSize)},e.getStart=P(e=>[e,B(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),F(t.options,`debugColumns`,`getStart`)),e.getAfter=P(e=>[e,B(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),F(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),ze(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=ze(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})))},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=Pe(n),m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX)}},g=Re()?{passive:!1}:!1;ze(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?Fe():e.initialState.columnSizingInfo??Fe())},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0}},Le=null;function Re(){if(typeof Le==`boolean`)return Le;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return Le=e,Le}function ze(e){return e.type===`touchstart`}var Be={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:N(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{let n=e.columns;return(n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=P(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),F(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=P(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],F(t.options,`debugRows`,`getVisibleCells`))},createTable:e=>{let t=(t,n)=>P(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),F(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked)}}};function B(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var Ve={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},He={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:N(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>L.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return se(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??L[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ue={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:N(`expanded`,e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===!0||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===!0:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===!0?!0:!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n??=!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||n?.[e.id]))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},We=0,Ge=10,Ke=()=>({pageIndex:We,pageSize:Ge}),qe={getInitialState:e=>({...e,pagination:{...Ke(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:N(`pagination`,e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>M(t,e)),e.resetPagination=t=>{e.setPagination(t?Ke():e.initialState.pagination??Ke())},e.setPageIndex=t=>{e.setPagination(n=>{let r=M(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n;e.setPageIndex(t?We:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??We)},e.resetPageSize=t=>{var n;e.setPageSize(t?Ge:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??Ge)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,M(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{let r=M(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=P(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},F(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},Je=()=>({top:[],bottom:[]}),Ye={getInitialState:e=>({rowPinning:Je(),...e}),getDefaultOptions:e=>({onRowPinningChange:N(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:!1},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?Je():e.initialState?.rowPinning??Je()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=P(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),F(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=P(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),F(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=P(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},F(e.options,`debugRows`,`getCenterRows`))}},Xe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:N(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{Ze(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=P(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Qe(e,n):{rows:[],flatRows:[],rowsById:{}},F(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=P(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Qe(e,n):{rows:[],flatRows:[],rowsById:{}},F(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=P(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Qe(e,n):{rows:[],flatRows:[],rowsById:{}},F(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return Ze(o,e.id,n,r?.selectChildren??!0,t),o})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return $e(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return et(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return et(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked)}}}},Ze=(e,t,n,r,i)=>{var a;let o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>Ze(e,t.id,n,r,i))};function Qe(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=$e(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function $e(e,t){return t[e.id]??!1}function et(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(e=>{if(!(a&&!i)&&(e.getCanSelect()&&($e(e,t)?a=!0:i=!1),e.subRows&&e.subRows.length)){let n=et(e,t);n===`all`?a=!0:(n===`some`&&(a=!0),i=!1)}}),i?`all`:a?`some`:!1}var tt=/([0-9]+)/gm,nt=(e,t,n)=>lt(V(e.getValue(n)).toLowerCase(),V(t.getValue(n)).toLowerCase()),rt=(e,t,n)=>lt(V(e.getValue(n)),V(t.getValue(n))),it=(e,t,n)=>ct(V(e.getValue(n)).toLowerCase(),V(t.getValue(n)).toLowerCase()),at=(e,t,n)=>ct(V(e.getValue(n)),V(t.getValue(n))),ot=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},st=(e,t,n)=>ct(e.getValue(n),t.getValue(n));function ct(e,t){return e===t?0:e>t?1:-1}function V(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function lt(e,t){let n=e.split(tt).filter(Boolean),r=t.split(tt).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return-1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-r.length}var H={alphanumeric:nt,alphanumericCaseSensitive:rt,text:it,textCaseSensitive:at,datetime:ot,basic:st},ut=[pe,Be,je,Ne,ge,Ee,Ve,He,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:N(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return H.datetime;if(typeof n==`string`&&(r=!0,n.split(tt).length>1))return H.alphanumeric}return r?H.text:H.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return se(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??H[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:!1},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ke,Ue,qe,Ye,Xe,Ie];function dt(e){let t=[...ut,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a});let o=[],s=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{n.options=i(M(e,n.options))},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e)},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw Error();return r},_getDefaultColumnDef:P(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),F(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:P(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=de(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},F(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:P(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),F(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:P(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),F(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:P(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),F(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,c);for(let e=0;e<n._features.length;e++){let t=n._features[e];t==null||t.createTable==null||t.createTable(n)}return n}function ft(){return e=>P(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;c<t.length;c++){let l=he(e,e._getRowId(t[c],c,a),t[c],c,i,void 0,a?.id);if(n.flatRows.push(l),n.rowsById[l.id]=l,o.push(l),e.options.getSubRows){var s;l.originalSubRows=e.options.getSubRows(t[c],c),(s=l.originalSubRows)!=null&&s.length&&(l.subRows=r(l.originalSubRows,i+1,l))}}return o};return n.rows=r(t),n},F(e.options,`debugTable`,`getRowModel`,()=>e._autoResetPageIndex()))}function pt(){return!0}var mt=Symbol(`merge-proxy`),ht={get(e,t,n){return t===mt?n:e.get(t)},has(e,t){return e.has(t)},set:pt,deleteProperty:pt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:pt,deleteProperty:pt}},ownKeys(e){return e.keys()}};function gt(e){return`value`in e?e.value:e}function U(){var e=[...arguments];return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=gt(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in gt(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(gt(e[n])));return[...Array.from(new Set(t))]}},ht)}var _t=r({props:[`render`,`props`],setup:e=>()=>typeof e.render==`function`||typeof e.render==`object`?T(e.render,e.props):e.render});function vt(e){return U(e,{data:E(e.data)})}function yt(e){let t=ie(e.data),n=dt(U({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(e,n){return t?{...e,...n}:U(e,n)}},t?vt(e):e));if(t){let t=b(e.data);s(t,()=>{n.setState(e=>({...e,data:t.value}))},{immediate:!0})}let r=w(n.initialState);return ne(()=>{n.setOptions(n=>{let i=new Proxy({},{get:(e,t)=>r.value[t]});return U(n,t?vt(e):e,{state:U(i,e.state??{}),onStateChange:t=>{t instanceof Function?r.value=t(r.value):r.value=t,e.onStateChange==null||e.onStateChange(t)}})})}),n}function bt(e){if(Array.isArray(e))return e}function xt(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function St(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ct(e,t){if(e){if(typeof e==`string`)return St(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}function wt(){throw TypeError(`Invalid attempt to destructure non-iterable instance. diff --git a/resources/build/AppLayout.js b/resources/build/AppLayout.js index f886028741b..41a51100535 100644 --- a/resources/build/AppLayout.js +++ b/resources/build/AppLayout.js @@ -1 +1 @@ -import{$ as e,B as t,E as n,G as r,J as i,K as a,L as o,P as s,S as c,T as l,V as u,X as d,a as ee,b as f,c as p,d as m,h,it as g,lt as _,rt as te,t as v,v as y,w as b,x,y as S,z as C}from"./_plugin-vue_export-helper.js";import{r as w}from"./nav-item-D3exy0bq.js";import{i as T,n as E,r as D,t as O}from"./useAnnouncer.js";import{a as k,r as A}from"./dist.js";var j={class:`system-info__icon`},M=[`src`],N={class:`system-info__name`},P=v(n({__name:`SystemInfo`,setup(t){let n=k(),r=y(()=>n.system),a=y(()=>n.site),s=y(()=>a.value.url?`a`:`div`);return(t,n)=>(o(),f(u(s.value),{class:`system-info`,href:a.value.url,target:a.value.url?`_blank`:null},{default:i(()=>[S(`div`,j,[r.value.icon?(o(),c(`img`,{key:0,src:r.value.icon.url,alt:``},null,8,M)):x(``,!0)]),S(`div`,N,e(r.value.name),1)]),_:1},8,[`href`,`target`]))}}),[[`__scopeId`,`data-v-f4725d04`]]),F=[`icon`,`href`,`active`,`indicator`],I={key:0,slot:`subnav`},L=[`active`,`href`,`indicator`],R=[`name`],z={key:1,class:`nav-indicator`,slot:`icon`},B=[`.displayedJob`,`.hasReservedJobs`,`.hasWaitingJobs`],V=v(n({__name:`MainNav`,setup(t){let n=p(),{nav:r}=k(),i=y(()=>n.props.queue);return(t,n)=>(o(),c(`craft-nav-list`,null,[(o(!0),c(h,null,C(_(r),t=>(o(),c(`craft-nav-item`,{key:t.url,icon:t.icon,href:t.url,active:t.sel,indicator:!!t.badgeCount},[b(e(t.label)+` `,1),t.subnav?(o(),c(h,{key:0},[t.subnav?(o(),c(`craft-nav-list`,I,[(o(!0),c(h,null,C(t.subnav,t=>(o(),c(`craft-nav-item`,{key:t.url,active:t.sel,href:t.url,indicator:!!t.badgeCount},[t.icon?(o(),c(`craft-icon`,{key:0,name:t.icon,slot:`icon`},null,8,R)):(o(),c(`span`,z)),b(` `+e(t.label),1)],8,L))),128))])):x(``,!0)],64)):x(``,!0)],8,F))),128)),S(`cp-queue-indicator`,{".displayedJob":i.value.displayedJob,".hasReservedJobs":i.value.hasReservedJobs,".hasWaitingJobs":i.value.hasWaitingJobs},null,40,B)]))}}),[[`__scopeId`,`data-v-2115cac3`]]),H={class:`flex justify-center py-4 px-2 text-muted`},U={lang:`en`,class:`flex items-center gap-2`},W={class:`edition-logo`},G={"aria-hidden":`true`},K={class:`sr-only`},q=v(n({__name:`EditionInfo`,setup(t){let{app:n}=k(),r=y(()=>`${n.edition.name} Edition`);return(t,i)=>(o(),c(`div`,H,[S(`div`,null,[S(`span`,U,[i[0]||=b(` Craft CMS `,-1),S(`span`,W,[S(`span`,G,e(_(n).edition.name),1),S(`span`,K,e(r.value),1)]),b(` `+e(_(n).version),1)])])]))}}),[[`__scopeId`,`data-v-f8b4ece7`]]),J={},Y={class:`dev-mode`};function X(e,t){return o(),c(`div`,Y,[...t[0]||=[S(`div`,{class:`inline-flex py-1 px-2 bg-slate-900 text-slate-100 font-mono text-xs rounded-lg`},` Dev Mode is enabled `,-1)]])}var Z=v(J,[[`render`,X],[`__scopeId`,`data-v-52fa7a33`]]),Q=[`data-visibility`,`data-mode`],ne={class:`cp-sidebar__header`},re={key:0,class:`sidebar-header`},ie=[`label`],ae={class:`cp-sidebar__body`},oe={class:`cp-sidebar__footer`},se=v(n({__name:`CpSidebar`,props:{mode:{default:`floating`},visibility:{default:`hidden`}},emits:[`close`,`dock`],setup(e,{emit:t}){let n=t,r=y(()=>e.mode===`floating`);return a(()=>e.visibility,async e=>{r.value&&e===`visible`&&(await s(),document.querySelector(`.cp-sidebar`).querySelector(`button, [href], [tabindex]:not([tabindex="-1"])`)?.focus())}),(t,r)=>(o(),c(`nav`,{class:`cp-sidebar`,"data-visibility":e.visibility,"data-mode":e.mode},[e.visibility===`visible`?(o(),c(h,{key:0},[S(`div`,ne,[e.mode===`docked`?x(``,!0):(o(),c(`div`,re,[l(P),r[1]||=S(`div`,{class:`ml-auto`},null,-1),S(`craft-button`,{size:`small`,icon:``,onClick:r[0]||=e=>n(`close`),type:`button`},[S(`craft-icon`,{name:`x`,style:{"font-size":`0.7em`},label:_(w)(`Close`)},null,8,ie)])]))]),S(`div`,ae,[l(V)]),S(`div`,oe,[l(q),l(Z)])],64)):x(``,!0)],8,Q))}}),[[`__scopeId`,`data-v-2f979110`]]),ce={class:`breadcrumbs`},le={key:2,class:`separator`},ue=v(n({__name:`Breadcrumbs`,props:{items:{},separator:{default:`/`}},setup(t){return(n,r)=>(o(),c(`ul`,ce,[(o(!0),c(h,null,C(t.items,(n,r)=>(o(),c(`li`,{key:r,class:d({"breadcrumb-item":!0,"breadcrumb-item--active":r===t.items.length-1})},[n.url?(o(),f(T,{key:0,href:n.url},{default:i(()=>[b(e(n.label),1)]),_:2},1032,[`href`])):(o(),c(h,{key:1},[b(e(n.label),1)],64)),r<t.items.length-1?(o(),c(`span`,le,e(t.separator),1)):x(``,!0)],2))),128))]))}}),[[`__scopeId`,`data-v-4d21c399`]]),de={key:0,id:`global-live-region`,class:`sr-only`,role:`status`},fe=n({__name:`LiveRegion`,setup(t){let{announcement:n}=O();return(t,r)=>(o(),f(E,null,{default:i(()=>[_(n)?(o(),c(`div`,de,e(_(n)),1)):x(``,!0)]),_:1}))}}),pe={class:`cp`},me={class:`cp__header`},he={class:`flex gap-2 p-2`},ge=[`name`,`label`],_e={icon:``,appearance:`plain`},ve=[`label`],ye={key:0,variant:`danger`,rounded:`none`},be={key:1,variant:`success`,rounded:`none`},$={class:`cp__sidebar`},xe={class:`cp__main`},Se={key:0,class:`px-4 py-2 border-b border-b-neutral-border-quiet`},Ce={class:`index-grid index-grid--header`},we={class:`index-grid__aside`},Te={class:`text-xl`},Ee={class:`index-grid__main`},De={class:`cp__footer`},Oe={key:0,class:`fixed bottom-2 right-2 flex gap-2 justify-end items-center p-2`},ke={class:`bg-blue-50 border border-blue-500 py-1 px-4 rounded`},Ae=[`label`],je=[`label`],Me=v(n({__name:`AppLayout`,props:{title:{},debug:{},fullWidth:{type:Boolean,default:!1}},setup(n){m(e=>({v28293580:I.value}));let i=p(),s=y(()=>i.props.flash?.error),u=y(()=>i.props.flash?.success),v=y(()=>i.props.crumbs??null),b=r(`sidebarToggle`),{announcement:C,announce:T}=O();a(u,e=>T(e)),a(s,e=>T(e));let E=te({sidebar:{mode:`floating`,visibility:`hidden`}}),k=A(`(min-width: 1024px)`),j=g(!1);a(k,e=>{e?(E.sidebar.mode=`docked`,E.sidebar.visibility=`visible`):(E.sidebar.mode=`floating`,E.sidebar.visibility=`hidden`)},{immediate:!0});function M(){E.sidebar.visibility===`visible`?E.sidebar.visibility=`hidden`:E.sidebar.visibility=`visible`}function N(){E.sidebar.visibility=`hidden`,b.value.focus()}let F=y(()=>E.sidebar.visibility===`visible`?`x`:`bars`),I=y(()=>E.sidebar.mode===`docked`?E.sidebar.visibility===`visible`?`var(--global-sidebar-width)`:`0`:`auto`);return(r,i)=>(o(),c(h,null,[l(_(ee),{title:n.title},null,8,[`title`]),l(fe,{debug:!0}),S(`div`,pe,[S(`div`,me,[S(`div`,he,[_(k)?x(``,!0):(o(),c(`craft-button`,{key:0,icon:``,type:`button`,appearance:`plain`,onClick:M,ref_key:`sidebarToggle`,ref:b},[S(`craft-icon`,{name:F.value,label:_(w)(`Toggle menu`)},null,8,ge)],512)),_(k)?(o(),f(P,{key:1})):x(``,!0),i[2]||=S(`div`,{class:`ml-auto`},null,-1),S(`craft-button`,_e,[S(`craft-icon`,{name:`search`,label:_(w)(`Search`)},null,8,ve)])]),s.value?(o(),c(`craft-callout`,ye,e(s.value),1)):x(``,!0),u.value?(o(),c(`craft-callout`,be,e(u.value),1)):x(``,!0)]),S(`div`,$,[l(se,{mode:E.sidebar.mode,visibility:E.sidebar.visibility,onClose:N},null,8,[`mode`,`visibility`])]),S(`div`,xe,[t(r.$slots,`main`,{},()=>[S(`main`,null,[t(r.$slots,`breadcrumbs`,{},()=>[v.value?(o(),c(`div`,Se,[l(ue,{items:v.value},null,8,[`items`])])):x(``,!0)],!0),t(r.$slots,`header`,{},()=>[S(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[S(`div`,Ce,[S(`div`,we,[t(r.$slots,`title`,{},()=>[S(`h1`,Te,e(n.title),1)],!0),t(r.$slots,`title-badge`,{},void 0,!0)]),S(`div`,Ee,[t(r.$slots,`actions`,{},void 0,!0)])])],2)],!0),S(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`default`,{},void 0,!0)],2)])],!0)]),S(`div`,De,[S(`footer`,null,[S(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`footer`,{},void 0,!0)],2)])])]),n.debug?(o(),c(`div`,Oe,[S(`div`,ke,e(_(C)??`No announcement`),1),S(`div`,null,[j.value?(o(),f(D,{key:0,data:n.debug,class:`max-h-[50vh] max-w-[600px] overflow-scroll absolute transform -translate-full`},null,8,[`data`])):x(``,!0),j.value?(o(),c(`craft-button`,{key:1,icon:``,type:`button`,onClick:i[0]||=e=>j.value=!1},[S(`craft-icon`,{label:_(w)(`Close Debug panel`),name:`x`},null,8,Ae)])):(o(),c(`craft-button`,{key:2,type:`button`,onClick:i[1]||=e=>j.value=!0,icon:``},[S(`craft-icon`,{name:`code`,label:_(w)(`Show debug variables`)},null,8,je)]))])])):x(``,!0)],64))}}),[[`__scopeId`,`data-v-94a21bcf`]]);export{Me as t}; \ No newline at end of file +import{$ as e,B as t,E as n,G as r,J as i,K as a,L as o,P as s,S as c,T as l,V as u,X as d,a as f,b as p,c as m,d as ee,h,it as g,lt as _,rt as v,t as y,v as b,w as x,x as S,y as C,z as w}from"./_plugin-vue_export-helper.js";import{r as T}from"./nav-item-D3exy0bq.js";import{i as E,n as D,r as O,t as k}from"./useAnnouncer.js";import{a as A,r as te}from"./dist.js";var j={class:`system-info__icon`},M=[`src`],N={class:`system-info__name`},P=y(n({__name:`SystemInfo`,setup(t){let n=A(),r=b(()=>n.system),a=b(()=>n.site),s=b(()=>a.value.url?`a`:`div`);return(t,n)=>(o(),p(u(s.value),{class:`system-info`,href:a.value.url,target:a.value.url?`_blank`:null},{default:i(()=>[C(`div`,j,[r.value.icon?(o(),c(`img`,{key:0,src:r.value.icon.url,alt:``},null,8,M)):S(``,!0)]),C(`div`,N,e(r.value.name),1)]),_:1},8,[`href`,`target`]))}}),[[`__scopeId`,`data-v-f4725d04`]]),F=[`icon`,`href`,`active`,`indicator`],I={key:0,slot:`subnav`},L=[`active`,`href`,`indicator`],R=[`name`],z={key:1,class:`nav-indicator`,slot:`icon`},B=[`.displayedJob`,`.hasReservedJobs`,`.hasWaitingJobs`],V=y(n({__name:`MainNav`,setup(t){let n=m(),{nav:r}=A(),i=b(()=>n.props.queue);return(t,n)=>(o(),c(`craft-nav-list`,null,[(o(!0),c(h,null,w(_(r),t=>(o(),c(`craft-nav-item`,{key:t.url,icon:t.icon,href:t.url,active:t.sel,indicator:!!t.badgeCount},[x(e(t.label)+` `,1),t.subnav?(o(),c(h,{key:0},[t.subnav?(o(),c(`craft-nav-list`,I,[(o(!0),c(h,null,w(t.subnav,t=>(o(),c(`craft-nav-item`,{key:t.url,active:t.sel,href:t.url,indicator:!!t.badgeCount},[t.icon?(o(),c(`craft-icon`,{key:0,name:t.icon,slot:`icon`},null,8,R)):(o(),c(`span`,z)),x(` `+e(t.label),1)],8,L))),128))])):S(``,!0)],64)):S(``,!0)],8,F))),128)),C(`cp-queue-indicator`,{".displayedJob":i.value.displayedJob,".hasReservedJobs":i.value.hasReservedJobs,".hasWaitingJobs":i.value.hasWaitingJobs},null,40,B)]))}}),[[`__scopeId`,`data-v-2115cac3`]]),H={class:`flex justify-center py-4 px-2 text-muted`},U={lang:`en`,class:`flex items-center gap-2`},W={class:`edition-logo`},G={"aria-hidden":`true`},K={class:`sr-only`},q=y(n({__name:`EditionInfo`,setup(t){let{app:n}=A(),r=b(()=>`${n.edition.name} Edition`);return(t,i)=>(o(),c(`div`,H,[C(`div`,null,[C(`span`,U,[i[0]||=x(` Craft CMS `,-1),C(`span`,W,[C(`span`,G,e(_(n).edition.name),1),C(`span`,K,e(r.value),1)]),x(` `+e(_(n).version),1)])])]))}}),[[`__scopeId`,`data-v-f8b4ece7`]]),J={},Y={class:`dev-mode`};function X(e,t){return o(),c(`div`,Y,[...t[0]||=[C(`div`,{class:`inline-flex py-1 px-2 bg-slate-900 text-slate-100 font-mono text-xs rounded-lg`},` Dev Mode is enabled `,-1)]])}var Z=y(J,[[`render`,X],[`__scopeId`,`data-v-52fa7a33`]]),Q=[`data-visibility`,`data-mode`],ne={class:`cp-sidebar__header`},re={key:0,class:`sidebar-header`},ie=[`label`],ae={class:`cp-sidebar__body`},oe={class:`cp-sidebar__footer`},se=y(n({__name:`CpSidebar`,props:{mode:{default:`floating`},visibility:{default:`hidden`}},emits:[`close`,`dock`],setup(e,{emit:t}){let n=t,r=b(()=>e.mode===`floating`);return a(()=>e.visibility,async e=>{r.value&&e===`visible`&&(await s(),document.querySelector(`.cp-sidebar`).querySelector(`button, [href], [tabindex]:not([tabindex="-1"])`)?.focus())}),(t,r)=>(o(),c(`nav`,{class:`cp-sidebar`,"data-visibility":e.visibility,"data-mode":e.mode},[e.visibility===`visible`?(o(),c(h,{key:0},[C(`div`,ne,[e.mode===`docked`?S(``,!0):(o(),c(`div`,re,[l(P),r[1]||=C(`div`,{class:`ml-auto`},null,-1),C(`craft-button`,{size:`small`,icon:``,onClick:r[0]||=e=>n(`close`),type:`button`},[C(`craft-icon`,{name:`x`,style:{"font-size":`0.7em`},label:_(T)(`Close`)},null,8,ie)])]))]),C(`div`,ae,[l(V)]),C(`div`,oe,[l(q),l(Z)])],64)):S(``,!0)],8,Q))}}),[[`__scopeId`,`data-v-2f979110`]]),ce={class:`breadcrumbs`},le={key:2,class:`separator`},ue=y(n({__name:`Breadcrumbs`,props:{items:{},separator:{default:`/`}},setup(t){return(n,r)=>(o(),c(`ul`,ce,[(o(!0),c(h,null,w(t.items,(n,r)=>(o(),c(`li`,{key:r,class:d({"breadcrumb-item":!0,"breadcrumb-item--active":r===t.items.length-1})},[n.url?(o(),p(E,{key:0,href:n.url},{default:i(()=>[x(e(n.label),1)]),_:2},1032,[`href`])):(o(),c(h,{key:1},[x(e(n.label),1)],64)),r<t.items.length-1?(o(),c(`span`,le,e(t.separator),1)):S(``,!0)],2))),128))]))}}),[[`__scopeId`,`data-v-4d21c399`]]),de={key:0,id:`global-live-region`,class:`sr-only`,role:`status`},fe=n({__name:`LiveRegion`,setup(t){let{announcement:n}=k();return(t,r)=>(o(),p(D,null,{default:i(()=>[_(n)?(o(),c(`div`,de,e(_(n)),1)):S(``,!0)]),_:1}))}}),pe={class:`cp`},me={class:`cp__header`},he={class:`flex gap-2 p-2`},ge=[`name`,`label`],_e={icon:``,appearance:`plain`},ve=[`label`],ye={key:0,variant:`danger`,rounded:`none`},be={key:1,variant:`success`,rounded:`none`},$={class:`cp__sidebar`},xe={class:`cp__main`},Se={key:0,class:`px-4 py-2 border-b border-b-neutral-border-quiet`},Ce={class:`index-grid index-grid--header`},we={class:`index-grid__aside`},Te={class:`text-xl`},Ee={class:`index-grid__main`},De={class:`cp__footer`},Oe={key:0,class:`fixed bottom-2 right-2 flex gap-2 justify-end items-center p-2`},ke={class:`bg-blue-50 border border-blue-500 py-1 px-4 rounded`},Ae=[`label`],je=[`label`],Me=y(n({__name:`AppLayout`,props:{title:{},debug:{},fullWidth:{type:Boolean,default:!1}},setup(n){ee(e=>({v78690b30:B.value}));let i=n,{system:s}=A(),u=m(),y=b(()=>u.props.flash?.error),x=b(()=>u.props.flash?.success),w=b(()=>u.props.crumbs??null),E=r(`sidebarToggle`),{announcement:D,announce:j}=k(),M=b(()=>{let e=i.title?.trim();return e?`${e} - ${s.name}`:s.name});a(x,e=>j(e)),a(y,e=>j(e));let N=v({sidebar:{mode:`floating`,visibility:`hidden`}}),F=te(`(min-width: 1024px)`),I=g(!1);a(F,e=>{e?(N.sidebar.mode=`docked`,N.sidebar.visibility=`visible`):(N.sidebar.mode=`floating`,N.sidebar.visibility=`hidden`)},{immediate:!0});function L(){N.sidebar.visibility===`visible`?N.sidebar.visibility=`hidden`:N.sidebar.visibility=`visible`}function R(){N.sidebar.visibility=`hidden`,E.value.focus()}let z=b(()=>N.sidebar.visibility===`visible`?`x`:`bars`),B=b(()=>N.sidebar.mode===`docked`?N.sidebar.visibility===`visible`?`var(--global-sidebar-width)`:`0`:`auto`);return(r,i)=>(o(),c(h,null,[l(_(f),{title:M.value},null,8,[`title`]),l(fe,{debug:!0}),C(`div`,pe,[C(`div`,me,[C(`div`,he,[_(F)?S(``,!0):(o(),c(`craft-button`,{key:0,icon:``,type:`button`,appearance:`plain`,onClick:L,ref_key:`sidebarToggle`,ref:E},[C(`craft-icon`,{name:z.value,label:_(T)(`Toggle menu`)},null,8,ge)],512)),_(F)?(o(),p(P,{key:1})):S(``,!0),i[2]||=C(`div`,{class:`ml-auto`},null,-1),C(`craft-button`,_e,[C(`craft-icon`,{name:`search`,label:_(T)(`Search`)},null,8,ve)])]),y.value?(o(),c(`craft-callout`,ye,e(y.value),1)):S(``,!0),x.value?(o(),c(`craft-callout`,be,e(x.value),1)):S(``,!0)]),C(`div`,$,[l(se,{mode:N.sidebar.mode,visibility:N.sidebar.visibility,onClose:R},null,8,[`mode`,`visibility`])]),C(`div`,xe,[t(r.$slots,`main`,{},()=>[C(`main`,null,[t(r.$slots,`breadcrumbs`,{},()=>[w.value?(o(),c(`div`,Se,[l(ue,{items:w.value},null,8,[`items`])])):S(``,!0)],!0),t(r.$slots,`header`,{},()=>[C(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[C(`div`,Ce,[C(`div`,we,[t(r.$slots,`title`,{},()=>[C(`h1`,Te,e(n.title),1)],!0),t(r.$slots,`title-badge`,{},void 0,!0)]),C(`div`,Ee,[t(r.$slots,`actions`,{},void 0,!0)])])],2)],!0),C(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`default`,{},void 0,!0)],2)])],!0)]),C(`div`,De,[C(`footer`,null,[C(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`footer`,{},void 0,!0)],2)])])]),n.debug?(o(),c(`div`,Oe,[C(`div`,ke,e(_(D)??`No announcement`),1),C(`div`,null,[I.value?(o(),p(O,{key:0,data:n.debug,class:`max-h-[50vh] max-w-[600px] overflow-scroll absolute transform -translate-full`},null,8,[`data`])):S(``,!0),I.value?(o(),c(`craft-button`,{key:1,icon:``,type:`button`,onClick:i[0]||=e=>I.value=!1},[C(`craft-icon`,{label:_(T)(`Close Debug panel`),name:`x`},null,8,Ae)])):(o(),c(`craft-button`,{key:2,type:`button`,onClick:i[1]||=e=>I.value=!0,icon:``},[C(`craft-icon`,{name:`code`,label:_(T)(`Show debug variables`)},null,8,je)]))])])):S(``,!0)],64))}}),[[`__scopeId`,`data-v-ba0b1594`]]);export{Me as t}; \ No newline at end of file diff --git a/resources/build/CpGlobalSidebar.js b/resources/build/CpGlobalSidebar.js index 369ae98c7b2..02e5fff3e7c 100644 --- a/resources/build/CpGlobalSidebar.js +++ b/resources/build/CpGlobalSidebar.js @@ -1 +1 @@ -import{f as e}from"./Queue-wGK97jCw.js";import{t}from"./lit.js";import{a as n,n as r,o as i,r as a}from"./decorators.js";import{t as o}from"./decorate.js";var s=e({}),c=class extends t{constructor(...e){super(...e),this.state=Craft.getCookie(`sidebar`)??`expanded`}connectedCallback(){super.connectedCallback(),this.trigger&&(this.trigger.addEventListener(`open`,this.expand.bind(this)),this.trigger.addEventListener(`close`,this.collapse.bind(this))),this.state===`expanded`?this.expand():this.collapse()}disconnectedCallback(){super.disconnectedCallback(),this.trigger&&(this.trigger.removeEventListener(`open`,this.expand.bind(this)),this.trigger.removeEventListener(`close`,this.collapse.bind(this))),this.state=`expanded`}itemHasTooltip(e){return e.querySelector(`craft-tooltip`)}createTooltips(){this.items?.forEach(e=>e.setAttribute(`icon-only`,!0))}destroyTooltips(){this.items?.forEach(e=>e.removeAttribute(`icon-only`))}expand(){document.body.setAttribute(`data-sidebar`,`expanded`),Craft.setCookie(`sidebar`,`expanded`),this.destroyTooltips()}collapse(){document.body.setAttribute(`data-sidebar`,`collapsed`),Craft.setCookie(`sidebar`,`collapsed`),this.createTooltips()}createRenderRoot(){return this}};o([r(`craft-nav-item`)],c.prototype,`items`,void 0),o([a(`#sidebar-trigger`)],c.prototype,`trigger`,void 0),o([n({reflect:!0})],c.prototype,`state`,void 0),c=o([i(`cp-global-sidebar`)],c);export{s as t}; \ No newline at end of file +import{h as e}from"./Queue-wGK97jCw.js";import{t}from"./lit.js";import{a as n,n as r,o as i,r as a}from"./decorators.js";import{t as o}from"./decorate.js";var s=e({}),c=class extends t{constructor(...e){super(...e),this.state=Craft.getCookie(`sidebar`)??`expanded`}connectedCallback(){super.connectedCallback(),this.trigger&&(this.trigger.addEventListener(`open`,this.expand.bind(this)),this.trigger.addEventListener(`close`,this.collapse.bind(this))),this.state===`expanded`?this.expand():this.collapse()}disconnectedCallback(){super.disconnectedCallback(),this.trigger&&(this.trigger.removeEventListener(`open`,this.expand.bind(this)),this.trigger.removeEventListener(`close`,this.collapse.bind(this))),this.state=`expanded`}itemHasTooltip(e){return e.querySelector(`craft-tooltip`)}createTooltips(){this.items?.forEach(e=>e.setAttribute(`icon-only`,!0))}destroyTooltips(){this.items?.forEach(e=>e.removeAttribute(`icon-only`))}expand(){document.body.setAttribute(`data-sidebar`,`expanded`),Craft.setCookie(`sidebar`,`expanded`),this.destroyTooltips()}collapse(){document.body.setAttribute(`data-sidebar`,`collapsed`),Craft.setCookie(`sidebar`,`collapsed`),this.createTooltips()}createRenderRoot(){return this}};o([r(`craft-nav-item`)],c.prototype,`items`,void 0),o([a(`#sidebar-trigger`)],c.prototype,`trigger`,void 0),o([n({reflect:!0})],c.prototype,`state`,void 0),c=o([i(`cp-global-sidebar`)],c);export{s as t}; \ No newline at end of file diff --git a/resources/build/CpQueueIndicator.js b/resources/build/CpQueueIndicator.js index c3b4e238077..67969f0d349 100644 --- a/resources/build/CpQueueIndicator.js +++ b/resources/build/CpQueueIndicator.js @@ -1,4 +1,4 @@ -import{f as e,n as t,t as n}from"./Queue-wGK97jCw.js";import{c as r,f as i,r as a,t as o}from"./lit.js";import{a as s,o as c}from"./decorators.js";import{t as l}from"./queue.js";import{t as u}from"./decorate.js";var d=e({default:()=>p}),f=class extends o{constructor(...e){super(...e),this.displayedJob=null,this.hasReservedJobs=!1,this.hasWaitingJobs=!1}static{this.styles=i` +import{h as e,n as t,t as n}from"./Queue-wGK97jCw.js";import{c as r,f as i,r as a,t as o}from"./lit.js";import{a as s,o as c}from"./decorators.js";import{t as l}from"./queue.js";import{t as u}from"./decorate.js";var d=e({default:()=>p}),f=class extends o{constructor(...e){super(...e),this.displayedJob=null,this.hasReservedJobs=!1,this.hasWaitingJobs=!1}static{this.styles=i` :host { display: contents; } diff --git a/resources/build/Install.js b/resources/build/Install.js index 20d77a0d539..bbd0fc4853a 100644 --- a/resources/build/Install.js +++ b/resources/build/Install.js @@ -1 +1 @@ -import"./Queue-wGK97jCw.js";import{$ as e,B as t,E as n,F as r,G as i,J as a,K as o,L as s,S as c,T as l,X as u,Y as d,a as f,b as p,c as m,d as ee,dt as te,h,it as g,lt as _,m as ne,p as v,q as y,r as b,rt as x,t as S,v as C,w,x as T,y as E,z as D}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as O}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import{t as k}from"./Pane.js";import{i as A}from"./dist.js";import{i as j}from"./useFetch.js";import{t as M}from"./Modal.js";var N=``+new URL(`assets/installer-bg.png`,import.meta.url).href,P=e=>{o(i(e),async e=>{e?.tagName.includes(`CRAFT-`)&&(await customElements.whenDefined(e.tagName.toLowerCase()),await e?.updateComplete),e?.focus()})},F=[`label`,`has-feedback-for`],I={key:0,class:`error-list`,slot:`feedback`},L=[`label`,`has-feedback-for`],R={key:0,class:`error-list`,slot:`feedback`},z=[`label`,`has-feedback-for`],B={key:0,class:`error-list`,slot:`feedback`},V=n({__name:`AccountFields`,props:{modelValue:{default:()=>({})},errors:{default:()=>({})},showUsername:{type:Boolean,default:!0}},emits:[`success`,`click:back`,`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,a=C({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});return P(`username-input`),(n,r)=>(s(),c(h,null,[t.showUsername?d((s(),c(`craft-input`,{key:0,label:_(O)(`Username`),id:`account-username`,name:`username`,"onUpdate:modelValue":r[0]||=e=>a.value.username=e,"has-feedback-for":t.errors?.username?`error`:``,maxlength:`255`,ref:`username-input`},[t.errors?.username?(s(),c(`ul`,I,[(s(!0),c(h,null,D(t.errors?.username,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,F)),[[v,a.value.username]]):T(``,!0),d(E(`craft-input`,{label:_(O)(`Email`),id:`account-email`,name:`email`,"onUpdate:modelValue":r[1]||=e=>a.value.email=e,maxlength:`255`,autocomplete:`email`,"has-feedback-for":t.errors?.email?`error`:``,type:`email`},[t.errors?.email?(s(),c(`ul`,R,[(s(!0),c(h,null,D(t.errors?.email,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,L),[[v,a.value.email]]),d(E(`craft-input-password`,{label:_(O)(`Password`),id:`account-password`,name:`password`,"onUpdate:modelValue":r[2]||=e=>a.value.password=e,"has-feedback-for":t.errors?.password?`error`:``,autocomplete:`new-password`},[t.errors?.password?(s(),c(`ul`,B,[(s(!0),c(h,null,D(t.errors?.password,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,z),[[v,a.value.password]])],64))}}),H=[`label`],U=[`label`],W=[`label`,`.modelValue`],G={slot:`input`},K=[`selected`,`value`],q=n({__name:`SiteFields`,props:{modelValue:{default:()=>({})},localeOptions:{default:()=>[]},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,a=C({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});function o(e){let t=e.target;r(`update:modelValue`,{...a.value,language:t?.modelValue})}return P(`site-name`),(n,r)=>(s(),c(h,null,[d(E(`craft-input`,{name:`name`,label:_(O)(`System Name`),id:`site-name`,"onUpdate:modelValue":r[0]||=e=>a.value.name=e,maxlength:`255`,ref:`site-name`},null,8,H),[[v,a.value.name]]),d(E(`craft-input`,{name:`baseUrl`,label:_(O)(`Base URL`),"onUpdate:modelValue":r[1]||=e=>a.value.baseUrl=e},null,8,U),[[v,a.value.baseUrl]]),E(`craft-select`,{label:_(O)(`Language`),id:`site-language`,name:`language`,".modelValue":a.value.language,onModelValueChanged:o},[E(`select`,G,[(s(!0),c(h,null,D(t.localeOptions,t=>(s(),c(`option`,{key:t.id,selected:t.id===a.value.language,value:t.id},e(t.id)+` (`+e(t.name)+`) `,9,K))),128))])],40,W)],64))}}),J=()=>{let e=g({start:{},license:{id:`license`,label:`License`},account:{id:`account`,label:`Account`,action:`/admin/actions/install/validate-account`,heading:O(`Create your account`)},db:{id:`db`,label:`Database`,action:`/admin/actions/install/validate-db`,heading:O(`Connect to your database`)},site:{id:`site`,label:`Site`,action:`/admin/actions/install/validate-site`,heading:O(`Set up your site`),submitLabel:O(`Finish up`)},installing:{label:`Installing`,id:`installing`}}),t=C(()=>Object.keys(e.value).reduce((t,n)=>{let r=e.value[n];return(r.hidden??!1)||(t[n]=r),t},{})),n=C(()=>Object.keys(t.value).reduce((e,n)=>{let r=t.value[n];return(r.label??!1)&&(e[n]=r),e},{})),r=A(t),i=C(()=>r.stepNames.value[r.index.value]);return{...r,possibleSteps:e,currentId:i,dotSteps:n}},Y=``+new URL(`assets/account.png`,import.meta.url).href,X=``+new URL(`assets/site.png`,import.meta.url).href,Z=``+new URL(`assets/db.png`,import.meta.url).href,re=S(n({__name:`Callout`,props:{variant:{default:`info`},appearance:{default:`default`}},setup(e){return(n,r)=>(s(),c(`div`,{class:u({callout:!0,"callout--danger":e.variant===`danger`,"callout--info":e.variant===`info`,"callout--success":e.variant===`success`,"callout--warning":e.variant===`warning`,"callout--emphasis":e.appearance===`emphasis`,"callout--default":e.appearance===`default`,"callout--outline":e.appearance===`outline`,"callout--plain":e.appearance===`plain`})},[t(n.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-2a01f40b`]]),ie={class:`grid grid-cols-5 gap-2`},ae={class:`col-span-2`},oe=[`label`,`.modelValue`],se={slot:`input`},ce=[`value`],le={key:0,class:`error-list`,slot:`feedback`},ue={class:`col-span-2`},de=[`label`],fe={key:0,class:`error-list`,slot:`feedback`},pe=[`label`],me={key:0,class:`error-list`,slot:`feedback`},he={key:0,class:`error-list col-span-5`},ge={class:`grid grid-cols-2 gap-2`},_e=[`label`],ve={key:0,class:`error-list`,slot:`feedback`},ye=[`label`],be={key:0,class:`error-list`,slot:`feedback`},xe={key:0,class:`error-list col-span-2`},Se={class:`grid grid-cols-4 gap-2`},Ce={class:`col-span-2`},we=[`label`],Te={key:0,class:`error-list`,slot:`feedback`},Ee=[`label`],De={key:0,class:`error-list`,slot:`feedback`},Oe=n({__name:`DbFields`,props:{modelValue:{default:()=>({})},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,o=C({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});function l(e){let t=e.target;t&&(o.value[t.name]=t.modelValue)}let u=[{value:`mysql`,label:`MySQL`},{value:`pgsql`,label:`PostgreSQL`}];return P(`db-driver`),(n,r)=>(s(),c(h,null,[t.errors&&t.errors[`*`]?(s(),p(re,{key:0,variant:`danger`},{default:a(()=>[E(`ul`,null,[(s(!0),c(h,null,D(t.errors[`*`],t=>(s(),c(`li`,null,e(t),1))),256))])]),_:1})):T(``,!0),E(`div`,ie,[E(`div`,ae,[E(`craft-select`,{label:_(O)(`Driver`),name:`driver`,id:`db-driver`,".modelValue":o.value.driver,onModelValueChanged:l,ref:`db-driver`},[E(`select`,se,[(s(),c(h,null,D(u,t=>E(`option`,{key:t.value,value:t.value},e(t.label),9,ce)),64))]),t.errors?.driver?(s(),c(`ul`,le,[(s(!0),c(h,null,D(t.errors?.driver,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],40,oe)]),E(`div`,ue,[d(E(`craft-input`,{label:_(O)(`Host`),name:`host`,id:`db-host`,"onUpdate:modelValue":r[0]||=e=>o.value.host=e,placeholder:`127.0.0.1`},[t.errors?.host?(s(),c(`ul`,fe,[(s(!0),c(h,null,D(t.errors?.host,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,de),[[v,o.value.host]])]),E(`div`,null,[d(E(`craft-input`,{label:_(O)(`Port`),name:`port`,id:`db-port`,"onUpdate:modelValue":r[1]||=e=>o.value.port=e,size:`7`},[t.errors?.port?(s(),c(`ul`,me,[(s(!0),c(h,null,D(t.errors?.port,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,pe),[[v,o.value.port]])]),t.errors?.server?(s(),c(`ul`,he,[(s(!0),c(h,null,D(t.errors.server,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)]),E(`div`,ge,[E(`div`,null,[d(E(`craft-input`,{label:_(O)(`Username`),name:`username`,id:`db-username`,"onUpdate:modelValue":r[2]||=e=>o.value.username=e,placeholder:`root`},[t.errors?.username?(s(),c(`ul`,ve,[(s(!0),c(h,null,D(t.errors?.username,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,_e),[[v,o.value.username]])]),E(`div`,null,[d(E(`craft-input-password`,{label:_(O)(`Password`),name:`password`,id:`db-password`,"onUpdate:modelValue":r[3]||=e=>o.value.password=e},[t.errors?.password?(s(),c(`ul`,be,[(s(!0),c(h,null,D(t.errors?.password,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,ye),[[v,o.value.password]])]),t.errors?.user?(s(),c(`ul`,xe,[(s(!0),c(h,null,D(t.errors.user,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)]),E(`div`,Se,[E(`div`,Ce,[d(E(`craft-input`,{label:_(O)(`Database Name`),name:`name`,id:`db-database`,"onUpdate:modelValue":r[4]||=e=>o.value.database=e},[t.errors?.database?(s(),c(`ul`,Te,[(s(!0),c(h,null,D(t.errors?.database,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,we),[[v,o.value.database]])]),E(`div`,null,[d(E(`craft-input`,{label:_(O)(`Prefix`),name:`prefix`,id:`db-prefix`,"onUpdate:modelValue":r[5]||=e=>o.value.prefix=e,maxlength:`5`,size:`7`},[t.errors?.prefix?(s(),c(`ul`,De,[(s(!0),c(h,null,D(t.errors?.prefix,t=>(s(),c(`li`,null,e(t),1))),256))])):T(``,!0)],8,Ee),[[v,o.value.prefix]])])])],64))}}),ke={key:0,class:`content`},Ae={key:1,class:`content`},je={key:2,class:`content`},Me={class:`text-left border border-red-500 rounded p-4 text-red-800 bg-red-50 font-mono text-xs`},Ne=S(n({__name:`InstallingScreen`,props:{data:{}},setup(t){let{props:n}=m(),i=t,{execute:o,error:l,isSuccess:u,isLoading:d,isError:f}=j(`/admin/actions/install/install`,{onSuccess:e=>{setTimeout(()=>{window.location.href=n.postCpLoginRedirect},1e3)}});return r(async()=>{await o(i.data)}),(t,n)=>(s(),p(k,{class:`max-w-[80ch] mx-auto`},{default:a(()=>[_(d)?(s(),c(`div`,ke,[E(`h2`,null,e(_(O)(`Installing Craft CMS…`)),1),n[0]||=E(`craft-spinner`,null,null,-1)])):_(u)?(s(),c(`div`,Ae,[E(`h2`,null,e(_(O)(`Craft is installed! 🎉`)),1),n[1]||=E(`div`,{class:`flex justify-center items-center`},[E(`craft-icon`,{name:`circle-check`,variant:`regular`,style:{color:`var(--c-color-success-fill-loud)`,"font-size":`2.5rem`}})],-1)])):T(``,!0),_(f)?(s(),c(`div`,je,[E(`h2`,null,e(_(O)(`Install failed 😞`)),1),E(`div`,Me,e(_(l).message),1)])):T(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-900f8a00`]]),Pe={class:`grid md:grid-cols-2 gap-4 items-center`},Fe={class:`aspect-[352/455] w-1/2 md:w-3/4 mx-auto`},Q=[`src`],Ie={class:`mb-4`},Le={class:`grid gap-3 pr-6`},$=n({__name:`StepScreen`,props:{illustrationSrc:{default:``},heading:{default:``}},setup(n){return(r,i)=>(s(),c(`div`,Pe,[E(`div`,Fe,[E(`img`,{loading:`lazy`,src:n.illustrationSrc,alt:``,width:`368`},null,8,Q)]),E(`div`,null,[E(`h2`,Ie,e(n.heading),1),E(`div`,Le,[t(r.$slots,`default`)])])]))}}),Re={class:`install`},ze=[`innerHTML`],Be={class:`flex justify-center w-full`},Ve={key:2,class:`max-w-[80ch]`},He={class:`grid grid-cols-3 items-center gap-2`},Ue={class:`flex gap-2 justify-center`},We={class:`sr-only`},Ge=[`loading`],Ke=S(n({__name:`Install`,props:{dbConfig:{},localeOptions:{},licenseHtml:{},defaultSystemName:{},defaultSiteUrl:{},defaultSiteLanguage:{},showDbScreen:{type:Boolean}},setup(t){ee(e=>({v636a4b8a:n.value}));let n=C(()=>`url(${N})`),r=t,{dotSteps:i,current:o,currentId:d,goTo:m,goToNext:v,goToPrevious:S,isCurrent:A,possibleSteps:j}=J(),P=g(`idle`);y(()=>{j.value.db.hidden=r.showDbScreen});function F(){m(`license`)}let I=x({account:{},db:{},site:{}}),L=x({account:{username:``,email:``,password:``},db:{driver:r.dbConfig.driver,host:r.dbConfig.host,port:r.dbConfig.port,database:r.dbConfig.database,username:r.dbConfig.username,password:r.dbConfig.password,prefix:r.dbConfig.prefix},site:{name:r.defaultSystemName,baseUrl:r.defaultSiteUrl,language:r.defaultSiteLanguage}}),R=C(()=>!A(`start`));async function z(e){if(P.value===`loading`)return;I[d.value]=null;let t=e.currentTarget;try{P.value=`loading`,await te.post(t.action,L[d.value]),v(),P.value=`idle`}catch(e){I[d.value]=e.response.data.errors,P.value=`error`}}return(n,r)=>(s(),c(h,null,[l(_(f),{title:_(O)(`Install Craft CMS`)},null,8,[`title`]),E(`div`,Re,[_(A)(`start`)?(s(),c(`craft-button`,{key:0,type:`button`,onClick:F,variant:`primary`,class:`begin-button`},[w(e(_(O)(`Install Craft CMS`))+` `,1),r[6]||=E(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)])):T(``,!0),l(M,{"is-active":R.value,overlay:!1},{default:a(()=>[_(A)(`license`)?(s(),p(k,{key:0,class:`max-w-[80ch] mx-auto`},{actions:a(()=>[E(`div`,Be,[E(`craft-button`,{type:`button`,variant:`primary`,onClick:r[0]||=e=>_(m)(`account`)},e(_(O)(`Got it`)),1)])]),default:a(()=>[l(_(b),{data:`licenseHtml`},{fallback:a(()=>[...r[7]||=[E(`div`,{class:`flex justify-center`},[E(`craft-spinner`)],-1)]]),default:a(()=>[E(`div`,{class:`license`,innerHTML:t.licenseHtml},null,8,ze)]),_:1})]),_:1})):_(A)(`installing`)?(s(),p(Ne,{key:1,data:L,onSuccess:r[1]||=e=>_(v)()},null,8,[`data`])):(s(),c(`div`,Ve,[l(k,{as:`form`,action:_(o).action,onSubmit:ne(z,[`prevent`])},{actions:a(()=>[E(`div`,He,[E(`craft-button`,{type:`button`,onClick:r[5]||=(...e)=>_(S)&&_(S)(...e),appearance:`plain`,class:`justify-self-start`},[w(e(_(O)(`Back`))+` `,1),r[9]||=E(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1)]),E(`ul`,Ue,[(s(!0),c(h,null,D(_(i),(t,n)=>(s(),c(`li`,{key:n},[E(`span`,{class:u([`dot`,{"dot--active":_(A)(n)}])},[E(`span`,We,e(t.label),1)],2)]))),128))]),E(`craft-button`,{class:`justify-self-end`,type:`submit`,variant:`primary`,loading:P.value===`loading`},[w(e(_(o).submitLabel??_(O)(`Next`))+` `,1),r[10]||=E(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)],8,Ge)])]),default:a(()=>[_(A)(`account`)?(s(),p($,{key:0,"illustration-src":_(Y),heading:_(o).heading,class:`screen`},{default:a(()=>[_(A)(`account`)?(s(),p(V,{key:0,modelValue:L.account,"onUpdate:modelValue":r[2]||=e=>L.account=e,errors:I.account},null,8,[`modelValue`,`errors`])):T(``,!0)]),_:1},8,[`illustration-src`,`heading`])):T(``,!0),_(A)(`db`)?(s(),p($,{key:1,"illustration-src":_(Z),heading:_(o).heading,class:`screen`},{default:a(()=>[l(Oe,{modelValue:L.db,"onUpdate:modelValue":r[3]||=e=>L.db=e,errors:I.db},null,8,[`modelValue`,`errors`])]),_:1},8,[`illustration-src`,`heading`])):T(``,!0),_(A)(`site`)?(s(),p($,{key:2,"illustration-src":_(X),heading:_(o).heading,class:`screen`},{default:a(()=>[l(_(b),{data:`localeOptions`},{fallback:a(()=>[...r[8]||=[E(`craft-spinner`,null,null,-1)]]),default:a(()=>[l(q,{modelValue:L.site,"onUpdate:modelValue":r[4]||=e=>L.site=e,localeOptions:t.localeOptions,errors:I.site},null,8,[`modelValue`,`localeOptions`,`errors`])]),_:1})]),_:1},8,[`illustration-src`,`heading`])):T(``,!0)]),_:1},8,[`action`])]))]),_:1},8,[`is-active`])])],64))}}),[[`__scopeId`,`data-v-4c856b9d`]]);export{Ke as default}; \ No newline at end of file +import{o as e}from"./Queue-wGK97jCw.js";import{$ as t,B as n,E as r,F as i,G as a,J as o,K as s,L as c,S as l,T as u,X as d,Y as f,a as ee,b as p,c as m,d as te,h,it as g,lt as _,m as ne,p as v,q as y,r as b,rt as x,t as S,v as C,w,x as T,y as E,z as D}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as O}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import{t as k}from"./Pane.js";import{i as A}from"./dist.js";import{i as j}from"./useFetch.js";import{t as M}from"./Modal.js";var N=``+new URL(`assets/installer-bg.png`,import.meta.url).href,P=e=>{s(a(e),async e=>{e?.tagName.includes(`CRAFT-`)&&(await customElements.whenDefined(e.tagName.toLowerCase()),await e?.updateComplete),e?.focus()})},F=[`label`,`has-feedback-for`],I={key:0,class:`error-list`,slot:`feedback`},L=[`label`,`has-feedback-for`],R={key:0,class:`error-list`,slot:`feedback`},z=[`label`,`has-feedback-for`],B={key:0,class:`error-list`,slot:`feedback`},V=r({__name:`AccountFields`,props:{modelValue:{default:()=>({})},errors:{default:()=>({})},showUsername:{type:Boolean,default:!0}},emits:[`success`,`click:back`,`update:modelValue`],setup(e,{emit:n}){let r=n,i=e,a=C({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});return P(`username-input`),(n,r)=>(c(),l(h,null,[e.showUsername?f((c(),l(`craft-input`,{key:0,label:_(O)(`Username`),id:`account-username`,name:`username`,"onUpdate:modelValue":r[0]||=e=>a.value.username=e,"has-feedback-for":e.errors?.username?`error`:``,maxlength:`255`,ref:`username-input`},[e.errors?.username?(c(),l(`ul`,I,[(c(!0),l(h,null,D(e.errors?.username,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,F)),[[v,a.value.username]]):T(``,!0),f(E(`craft-input`,{label:_(O)(`Email`),id:`account-email`,name:`email`,"onUpdate:modelValue":r[1]||=e=>a.value.email=e,maxlength:`255`,autocomplete:`email`,"has-feedback-for":e.errors?.email?`error`:``,type:`email`},[e.errors?.email?(c(),l(`ul`,R,[(c(!0),l(h,null,D(e.errors?.email,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,L),[[v,a.value.email]]),f(E(`craft-input-password`,{label:_(O)(`Password`),id:`account-password`,name:`password`,"onUpdate:modelValue":r[2]||=e=>a.value.password=e,"has-feedback-for":e.errors?.password?`error`:``,autocomplete:`new-password`},[e.errors?.password?(c(),l(`ul`,B,[(c(!0),l(h,null,D(e.errors?.password,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,z),[[v,a.value.password]])],64))}}),H=[`label`],U=[`label`],W=[`label`,`.modelValue`],G={slot:`input`},K=[`selected`,`value`],q=r({__name:`SiteFields`,props:{modelValue:{default:()=>({})},localeOptions:{default:()=>[]},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=n,i=e,a=C({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});function o(e){let t=e.target;r(`update:modelValue`,{...a.value,language:t?.modelValue})}return P(`site-name`),(n,r)=>(c(),l(h,null,[f(E(`craft-input`,{name:`name`,label:_(O)(`System Name`),id:`site-name`,"onUpdate:modelValue":r[0]||=e=>a.value.name=e,maxlength:`255`,ref:`site-name`},null,8,H),[[v,a.value.name]]),f(E(`craft-input`,{name:`baseUrl`,label:_(O)(`Base URL`),"onUpdate:modelValue":r[1]||=e=>a.value.baseUrl=e},null,8,U),[[v,a.value.baseUrl]]),E(`craft-select`,{label:_(O)(`Language`),id:`site-language`,name:`language`,".modelValue":a.value.language,onModelValueChanged:o},[E(`select`,G,[(c(!0),l(h,null,D(e.localeOptions,e=>(c(),l(`option`,{key:e.id,selected:e.id===a.value.language,value:e.id},t(e.id)+` (`+t(e.name)+`) `,9,K))),128))])],40,W)],64))}}),J=()=>{let e=g({start:{},license:{id:`license`,label:`License`},account:{id:`account`,label:`Account`,action:`/admin/actions/install/validate-account`,heading:O(`Create your account`)},db:{id:`db`,label:`Database`,action:`/admin/actions/install/validate-db`,heading:O(`Connect to your database`)},site:{id:`site`,label:`Site`,action:`/admin/actions/install/validate-site`,heading:O(`Set up your site`),submitLabel:O(`Finish up`)},installing:{label:`Installing`,id:`installing`}}),t=C(()=>Object.keys(e.value).reduce((t,n)=>{let r=e.value[n];return(r.hidden??!1)||(t[n]=r),t},{})),n=C(()=>Object.keys(t.value).reduce((e,n)=>{let r=t.value[n];return(r.label??!1)&&(e[n]=r),e},{})),r=A(t),i=C(()=>r.stepNames.value[r.index.value]);return{...r,possibleSteps:e,currentId:i,dotSteps:n}},Y=``+new URL(`assets/account.png`,import.meta.url).href,X=``+new URL(`assets/site.png`,import.meta.url).href,Z=``+new URL(`assets/db.png`,import.meta.url).href,re=S(r({__name:`Callout`,props:{variant:{default:`info`},appearance:{default:`default`}},setup(e){return(t,r)=>(c(),l(`div`,{class:d({callout:!0,"callout--danger":e.variant===`danger`,"callout--info":e.variant===`info`,"callout--success":e.variant===`success`,"callout--warning":e.variant===`warning`,"callout--emphasis":e.appearance===`emphasis`,"callout--default":e.appearance===`default`,"callout--outline":e.appearance===`outline`,"callout--plain":e.appearance===`plain`})},[n(t.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-2a01f40b`]]),ie={class:`grid grid-cols-5 gap-2`},ae={class:`col-span-2`},oe=[`label`,`.modelValue`],se={slot:`input`},ce=[`value`],le={key:0,class:`error-list`,slot:`feedback`},ue={class:`col-span-2`},de=[`label`],fe={key:0,class:`error-list`,slot:`feedback`},pe=[`label`],me={key:0,class:`error-list`,slot:`feedback`},he={key:0,class:`error-list col-span-5`},ge={class:`grid grid-cols-2 gap-2`},_e=[`label`],ve={key:0,class:`error-list`,slot:`feedback`},ye=[`label`],be={key:0,class:`error-list`,slot:`feedback`},xe={key:0,class:`error-list col-span-2`},Se={class:`grid grid-cols-4 gap-2`},Ce={class:`col-span-2`},we=[`label`],Te={key:0,class:`error-list`,slot:`feedback`},Ee=[`label`],De={key:0,class:`error-list`,slot:`feedback`},Oe=r({__name:`DbFields`,props:{modelValue:{default:()=>({})},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=n,i=e,a=C({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});function s(e){let t=e.target;t&&(a.value[t.name]=t.modelValue)}let u=[{value:`mysql`,label:`MySQL`},{value:`pgsql`,label:`PostgreSQL`}];return P(`db-driver`),(n,r)=>(c(),l(h,null,[e.errors&&e.errors[`*`]?(c(),p(re,{key:0,variant:`danger`},{default:o(()=>[E(`ul`,null,[(c(!0),l(h,null,D(e.errors[`*`],e=>(c(),l(`li`,null,t(e),1))),256))])]),_:1})):T(``,!0),E(`div`,ie,[E(`div`,ae,[E(`craft-select`,{label:_(O)(`Driver`),name:`driver`,id:`db-driver`,".modelValue":a.value.driver,onModelValueChanged:s,ref:`db-driver`},[E(`select`,se,[(c(),l(h,null,D(u,e=>E(`option`,{key:e.value,value:e.value},t(e.label),9,ce)),64))]),e.errors?.driver?(c(),l(`ul`,le,[(c(!0),l(h,null,D(e.errors?.driver,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],40,oe)]),E(`div`,ue,[f(E(`craft-input`,{label:_(O)(`Host`),name:`host`,id:`db-host`,"onUpdate:modelValue":r[0]||=e=>a.value.host=e,placeholder:`127.0.0.1`},[e.errors?.host?(c(),l(`ul`,fe,[(c(!0),l(h,null,D(e.errors?.host,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,de),[[v,a.value.host]])]),E(`div`,null,[f(E(`craft-input`,{label:_(O)(`Port`),name:`port`,id:`db-port`,"onUpdate:modelValue":r[1]||=e=>a.value.port=e,size:`7`},[e.errors?.port?(c(),l(`ul`,me,[(c(!0),l(h,null,D(e.errors?.port,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,pe),[[v,a.value.port]])]),e.errors?.server?(c(),l(`ul`,he,[(c(!0),l(h,null,D(e.errors.server,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)]),E(`div`,ge,[E(`div`,null,[f(E(`craft-input`,{label:_(O)(`Username`),name:`username`,id:`db-username`,"onUpdate:modelValue":r[2]||=e=>a.value.username=e,placeholder:`root`},[e.errors?.username?(c(),l(`ul`,ve,[(c(!0),l(h,null,D(e.errors?.username,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,_e),[[v,a.value.username]])]),E(`div`,null,[f(E(`craft-input-password`,{label:_(O)(`Password`),name:`password`,id:`db-password`,"onUpdate:modelValue":r[3]||=e=>a.value.password=e},[e.errors?.password?(c(),l(`ul`,be,[(c(!0),l(h,null,D(e.errors?.password,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,ye),[[v,a.value.password]])]),e.errors?.user?(c(),l(`ul`,xe,[(c(!0),l(h,null,D(e.errors.user,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)]),E(`div`,Se,[E(`div`,Ce,[f(E(`craft-input`,{label:_(O)(`Database Name`),name:`name`,id:`db-database`,"onUpdate:modelValue":r[4]||=e=>a.value.database=e},[e.errors?.database?(c(),l(`ul`,Te,[(c(!0),l(h,null,D(e.errors?.database,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,we),[[v,a.value.database]])]),E(`div`,null,[f(E(`craft-input`,{label:_(O)(`Prefix`),name:`prefix`,id:`db-prefix`,"onUpdate:modelValue":r[5]||=e=>a.value.prefix=e,maxlength:`5`,size:`7`},[e.errors?.prefix?(c(),l(`ul`,De,[(c(!0),l(h,null,D(e.errors?.prefix,e=>(c(),l(`li`,null,t(e),1))),256))])):T(``,!0)],8,Ee),[[v,a.value.prefix]])])])],64))}}),ke={key:0,class:`content`},Ae={key:1,class:`content`},je={key:2,class:`content`},Me={class:`text-left border border-red-500 rounded p-4 text-red-800 bg-red-50 font-mono text-xs`},Ne=S(r({__name:`InstallingScreen`,props:{data:{}},setup(e){let{props:n}=m(),r=e,{execute:a,error:s,isSuccess:u,isLoading:d,isError:f}=j(`/admin/actions/install/install`,{onSuccess:e=>{setTimeout(()=>{window.location.href=n.postCpLoginRedirect},1e3)}});return i(async()=>{await a(r.data)}),(e,n)=>(c(),p(k,{class:`max-w-[80ch] mx-auto`},{default:o(()=>[_(d)?(c(),l(`div`,ke,[E(`h2`,null,t(_(O)(`Installing Craft CMS…`)),1),n[0]||=E(`craft-spinner`,null,null,-1)])):_(u)?(c(),l(`div`,Ae,[E(`h2`,null,t(_(O)(`Craft is installed! 🎉`)),1),n[1]||=E(`div`,{class:`flex justify-center items-center`},[E(`craft-icon`,{name:`circle-check`,variant:`regular`,style:{color:`var(--c-color-success-fill-loud)`,"font-size":`2.5rem`}})],-1)])):T(``,!0),_(f)?(c(),l(`div`,je,[E(`h2`,null,t(_(O)(`Install failed 😞`)),1),E(`div`,Me,t(_(s).message),1)])):T(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-900f8a00`]]),Pe={class:`grid md:grid-cols-2 gap-4 items-center`},Fe={class:`aspect-[352/455] w-1/2 md:w-3/4 mx-auto`},Q=[`src`],Ie={class:`mb-4`},Le={class:`grid gap-3 pr-6`},$=r({__name:`StepScreen`,props:{illustrationSrc:{default:``},heading:{default:``}},setup(e){return(r,i)=>(c(),l(`div`,Pe,[E(`div`,Fe,[E(`img`,{loading:`lazy`,src:e.illustrationSrc,alt:``,width:`368`},null,8,Q)]),E(`div`,null,[E(`h2`,Ie,t(e.heading),1),E(`div`,Le,[n(r.$slots,`default`)])])]))}}),Re={class:`install`},ze=[`innerHTML`],Be={class:`flex justify-center w-full`},Ve={key:2,class:`max-w-[80ch]`},He={class:`grid grid-cols-3 items-center gap-2`},Ue={class:`flex gap-2 justify-center`},We={class:`sr-only`},Ge=[`loading`],Ke=S(r({__name:`Install`,props:{dbConfig:{},localeOptions:{},licenseHtml:{},defaultSystemName:{},defaultSiteUrl:{},defaultSiteLanguage:{},showDbScreen:{type:Boolean}},setup(n){te(e=>({v636a4b8a:r.value}));let r=C(()=>`url(${N})`),i=n,{dotSteps:a,current:s,currentId:f,goTo:m,goToNext:v,goToPrevious:S,isCurrent:A,possibleSteps:j}=J(),P=g(`idle`);y(()=>{j.value.db.hidden=i.showDbScreen});function F(){m(`license`)}let I=x({account:{},db:{},site:{}}),L=x({account:{username:``,email:``,password:``},db:{driver:i.dbConfig.driver,host:i.dbConfig.host,port:i.dbConfig.port,database:i.dbConfig.database,username:i.dbConfig.username,password:i.dbConfig.password,prefix:i.dbConfig.prefix},site:{name:i.defaultSystemName,baseUrl:i.defaultSiteUrl,language:i.defaultSiteLanguage}}),R=C(()=>!A(`start`));async function z(t){if(P.value===`loading`)return;I[f.value]=null;let n=t.currentTarget;try{P.value=`loading`,await e.post(n.action,L[f.value]),v(),P.value=`idle`}catch(e){I[f.value]=e.response.data.errors,P.value=`error`}}return(e,r)=>(c(),l(h,null,[u(_(ee),{title:_(O)(`Install Craft CMS`)},null,8,[`title`]),E(`div`,Re,[_(A)(`start`)?(c(),l(`craft-button`,{key:0,type:`button`,onClick:F,variant:`primary`,class:`begin-button`},[w(t(_(O)(`Install Craft CMS`))+` `,1),r[6]||=E(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)])):T(``,!0),u(M,{"is-active":R.value,overlay:!1},{default:o(()=>[_(A)(`license`)?(c(),p(k,{key:0,class:`max-w-[80ch] mx-auto`},{actions:o(()=>[E(`div`,Be,[E(`craft-button`,{type:`button`,variant:`primary`,onClick:r[0]||=e=>_(m)(`account`)},t(_(O)(`Got it`)),1)])]),default:o(()=>[u(_(b),{data:`licenseHtml`},{fallback:o(()=>[...r[7]||=[E(`div`,{class:`flex justify-center`},[E(`craft-spinner`)],-1)]]),default:o(()=>[E(`div`,{class:`license`,innerHTML:n.licenseHtml},null,8,ze)]),_:1})]),_:1})):_(A)(`installing`)?(c(),p(Ne,{key:1,data:L,onSuccess:r[1]||=e=>_(v)()},null,8,[`data`])):(c(),l(`div`,Ve,[u(k,{as:`form`,action:_(s).action,onSubmit:ne(z,[`prevent`])},{actions:o(()=>[E(`div`,He,[E(`craft-button`,{type:`button`,onClick:r[5]||=(...e)=>_(S)&&_(S)(...e),appearance:`plain`,class:`justify-self-start`},[w(t(_(O)(`Back`))+` `,1),r[9]||=E(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1)]),E(`ul`,Ue,[(c(!0),l(h,null,D(_(a),(e,n)=>(c(),l(`li`,{key:n},[E(`span`,{class:d([`dot`,{"dot--active":_(A)(n)}])},[E(`span`,We,t(e.label),1)],2)]))),128))]),E(`craft-button`,{class:`justify-self-end`,type:`submit`,variant:`primary`,loading:P.value===`loading`},[w(t(_(s).submitLabel??_(O)(`Next`))+` `,1),r[10]||=E(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)],8,Ge)])]),default:o(()=>[_(A)(`account`)?(c(),p($,{key:0,"illustration-src":_(Y),heading:_(s).heading,class:`screen`},{default:o(()=>[_(A)(`account`)?(c(),p(V,{key:0,modelValue:L.account,"onUpdate:modelValue":r[2]||=e=>L.account=e,errors:I.account},null,8,[`modelValue`,`errors`])):T(``,!0)]),_:1},8,[`illustration-src`,`heading`])):T(``,!0),_(A)(`db`)?(c(),p($,{key:1,"illustration-src":_(Z),heading:_(s).heading,class:`screen`},{default:o(()=>[u(Oe,{modelValue:L.db,"onUpdate:modelValue":r[3]||=e=>L.db=e,errors:I.db},null,8,[`modelValue`,`errors`])]),_:1},8,[`illustration-src`,`heading`])):T(``,!0),_(A)(`site`)?(c(),p($,{key:2,"illustration-src":_(X),heading:_(s).heading,class:`screen`},{default:o(()=>[u(_(b),{data:`localeOptions`},{fallback:o(()=>[...r[8]||=[E(`craft-spinner`,null,null,-1)]]),default:o(()=>[u(q,{modelValue:L.site,"onUpdate:modelValue":r[4]||=e=>L.site=e,localeOptions:n.localeOptions,errors:I.site},null,8,[`modelValue`,`localeOptions`,`errors`])]),_:1})]),_:1},8,[`illustration-src`,`heading`])):T(``,!0)]),_:1},8,[`action`])]))]),_:1},8,[`is-active`])])],64))}}),[[`__scopeId`,`data-v-4c856b9d`]]);export{Ke as default}; \ No newline at end of file diff --git a/resources/build/Queue-wGK97jCw.js b/resources/build/Queue-wGK97jCw.js index c2e297a29eb..359bbdfe868 100644 --- a/resources/build/Queue-wGK97jCw.js +++ b/resources/build/Queue-wGK97jCw.js @@ -1,4 +1,4 @@ -import{t as e}from"./decorate-DpHfxayW.js";import{c as t,f as n,t as r}from"./lit.js";import{a as i}from"./decorators.js";var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f=(e,t)=>{let n={};for(var r in e)o(n,r,{get:e[r],enumerable:!0});return t||o(n,Symbol.toStringTag,{value:`Module`}),n},ee=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:a(l(e)),ee(t||!e||!e.__esModule?o(n,`default`,{value:e,enumerable:!0}):n,e));function m(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function h(e,t,n){m(e,t),t.set(e,n)}function g(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function _(e,t,n){return e.set(g(e,t),n),n}function v(e,t){return e.get(g(e,t))}var y={Pending:1,Reserved:2,Done:3,Failed:4,Delayed:5,Cancelled:6},te={Default:`default`,Success:`success`,Warning:`warning`,Danger:`danger`,Info:`info`},b={Accent:`accent`,OutlineFill:`outline-fill`,Fill:`fill`,Outline:`outline`,Plain:`plain`};function x(e,t){m(e,t),t.add(e)}var S=new WeakMap,C=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakSet,j=class extends r{constructor(...e){super(...e),x(this,A),this.progress=0,this.failed=!1,this.color=`currentColor`,this.bgColor=`#a3afbb`,this.failColor=`#da5a47`,this.label=`Progress`,this.autoComplete=!1,h(this,S,null),h(this,C,0),h(this,ne,0),h(this,re,0),h(this,ie,0),h(this,w,0),h(this,T,null),h(this,E,0),h(this,D,null),h(this,O,0),h(this,k,!1)}connectedCallback(){super.connectedCallback(),_(k,this,window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)}disconnectedCallback(){super.disconnectedCallback(),g(A,this,ue).call(this)}firstUpdated(){_(S,this,this.renderRoot.querySelector(`canvas`)),g(A,this,ae).call(this),g(A,this,oe).call(this)}updated(e){e.has(`progress`)?g(A,this,oe).call(this):(e.has(`color`)||e.has(`bgColor`)||e.has(`failColor`)||e.has(`failed`))&&g(A,this,M).call(this)}get canvas(){return v(S,this)}get prefersReducedMotion(){return v(k,this)}runCompleteAnimation(){return new Promise(e=>{if(v(k,this)){_(w,this,1),v(S,this)&&(v(S,this).style.opacity=`0`),g(A,this,M).call(this),e();return}g(A,this,le).call(this,1,()=>{v(S,this)&&(v(S,this).style.transition=`opacity 0.4s`,v(S,this).style.opacity=`0`),setTimeout(e,400)})})}async complete(){await this.runCompleteAnimation(),this.dispatchEvent(new CustomEvent(`complete`,{bubbles:!0,composed:!0}))}render(){return t` +import{t as e}from"./decorate-DpHfxayW.js";import{c as t,f as n,t as r}from"./lit.js";import{a as i}from"./decorators.js";var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f=(e,t)=>{let n={};for(var r in e)o(n,r,{get:e[r],enumerable:!0});return t||o(n,Symbol.toStringTag,{value:`Module`}),n},p=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e},m=(e,t,n)=>(n=e==null?{}:a(l(e)),p(t||!e||!e.__esModule?o(n,`default`,{value:e,enumerable:!0}):n,e));function h(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function g(e,t,n){h(e,t),t.set(e,n)}function _(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function v(e,t,n){return e.set(_(e,t),n),n}function y(e,t){return e.get(_(e,t))}var b={Pending:1,Reserved:2,Done:3,Failed:4,Delayed:5,Cancelled:6},ee={Default:`default`,Success:`success`,Warning:`warning`,Danger:`danger`,Info:`info`},te={Accent:`accent`,OutlineFill:`outline-fill`,Fill:`fill`,Outline:`outline`,Plain:`plain`};function x(e,t){h(e,t),t.add(e)}var S=new WeakMap,C=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakSet,j=class extends r{constructor(...e){super(...e),x(this,A),this.progress=0,this.failed=!1,this.color=`currentColor`,this.bgColor=`#a3afbb`,this.failColor=`#da5a47`,this.label=`Progress`,this.autoComplete=!1,g(this,S,null),g(this,C,0),g(this,ne,0),g(this,re,0),g(this,ie,0),g(this,w,0),g(this,T,null),g(this,E,0),g(this,D,null),g(this,O,0),g(this,k,!1)}connectedCallback(){super.connectedCallback(),v(k,this,window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)}disconnectedCallback(){super.disconnectedCallback(),_(A,this,ue).call(this)}firstUpdated(){v(S,this,this.renderRoot.querySelector(`canvas`)),_(A,this,ae).call(this),_(A,this,oe).call(this)}updated(e){e.has(`progress`)?_(A,this,oe).call(this):(e.has(`color`)||e.has(`bgColor`)||e.has(`failColor`)||e.has(`failed`))&&_(A,this,M).call(this)}get canvas(){return y(S,this)}get prefersReducedMotion(){return y(k,this)}runCompleteAnimation(){return new Promise(e=>{if(y(k,this)){v(w,this,1),y(S,this)&&(y(S,this).style.opacity=`0`),_(A,this,M).call(this),e();return}_(A,this,le).call(this,1,()=>{y(S,this)&&(y(S,this).style.transition=`opacity 0.4s`,y(S,this).style.opacity=`0`),setTimeout(e,400)})})}async complete(){await this.runCompleteAnimation(),this.dispatchEvent(new CustomEvent(`complete`,{bubbles:!0,composed:!0}))}render(){return t` <canvas part="canvas" role="progressbar" @@ -10,7 +10,7 @@ import{t as e}from"./decorate-DpHfxayW.js";import{c as t,f as n,t as r}from"./li <span class="visually-hidden"> ${this.failed?`Failed`:this.progress<0?`Loading`:`${this.progress}%`} </span> - `}};function ae(){let e=getComputedStyle(this),t=parseFloat(e.getPropertyValue(`--_size`)),n=parseFloat(e.getPropertyValue(`--_stroke-width`)),r=window.devicePixelRatio>1?2:1;_(C,this,t*r),_(ne,this,v(C,this)/2),_(ie,this,n*r),_(re,this,(t/2-n/2)*r),v(S,this)&&(v(S,this).width=v(C,this),v(S,this).height=v(C,this))}function oe(){if(this.progress>=0&&v(D,this)!==null&&(cancelAnimationFrame(v(D,this)),_(D,this,null),_(E,this,0)),this.progress<0){v(D,this)===null&&g(A,this,se).call(this);return}let e=this.progress/100;if(this.autoComplete&&this.progress>=100&&v(O,this)<100){_(O,this,this.progress),this.complete();return}v(O,this)>0&&this.progress>v(O,this)&&!v(k,this)?g(A,this,le).call(this,e):(_(w,this,e),g(A,this,M).call(this)),_(O,this,this.progress)}function se(){if(v(k,this)){_(w,this,.25),g(A,this,M).call(this);return}let e=()=>{_(E,this,v(E,this)+.05),_(w,this,.15+.1*Math.sin(v(E,this)*3)),g(A,this,M).call(this),_(D,this,requestAnimationFrame(e))};_(D,this,requestAnimationFrame(e))}function M(){let e=v(S,this)?.getContext(`2d`);if(e){if(e.clearRect(0,0,v(C,this),v(C,this)),this.failed){g(A,this,ce).call(this,e,this.failColor,1,0);return}if(g(A,this,ce).call(this,e,this.bgColor,1,0),v(w,this)>0){let t=this.progress<0?v(E,this):-Math.PI/2;g(A,this,ce).call(this,e,this.color,v(w,this),t)}}}function ce(e,t,n,r){e.strokeStyle=t,e.lineWidth=v(ie,this),e.lineCap=`round`,e.beginPath(),e.arc(v(ne,this),v(ne,this),v(re,this),r,r+n*2*Math.PI),e.stroke()}function le(e,t){g(A,this,ue).call(this);let n=performance.now(),r=v(w,this),i=a=>{let o=a-n,s=Math.min(o/500,1),c=1-(1-s)**3;_(w,this,r+(e-r)*c),g(A,this,M).call(this),s<1?_(T,this,requestAnimationFrame(i)):(_(T,this,null),t?.())};_(T,this,requestAnimationFrame(i))}function ue(){v(T,this)!==null&&(cancelAnimationFrame(v(T,this)),_(T,this,null)),v(D,this)!==null&&(cancelAnimationFrame(v(D,this)),_(D,this,null))}j.styles=n` + `}};function ae(){let e=getComputedStyle(this),t=parseFloat(e.getPropertyValue(`--_size`)),n=parseFloat(e.getPropertyValue(`--_stroke-width`)),r=window.devicePixelRatio>1?2:1;v(C,this,t*r),v(ne,this,y(C,this)/2),v(ie,this,n*r),v(re,this,(t/2-n/2)*r),y(S,this)&&(y(S,this).width=y(C,this),y(S,this).height=y(C,this))}function oe(){if(this.progress>=0&&y(D,this)!==null&&(cancelAnimationFrame(y(D,this)),v(D,this,null),v(E,this,0)),this.progress<0){y(D,this)===null&&_(A,this,se).call(this);return}let e=this.progress/100;if(this.autoComplete&&this.progress>=100&&y(O,this)<100){v(O,this,this.progress),this.complete();return}y(O,this)>0&&this.progress>y(O,this)&&!y(k,this)?_(A,this,le).call(this,e):(v(w,this,e),_(A,this,M).call(this)),v(O,this,this.progress)}function se(){if(y(k,this)){v(w,this,.25),_(A,this,M).call(this);return}let e=()=>{v(E,this,y(E,this)+.05),v(w,this,.15+.1*Math.sin(y(E,this)*3)),_(A,this,M).call(this),v(D,this,requestAnimationFrame(e))};v(D,this,requestAnimationFrame(e))}function M(){let e=y(S,this)?.getContext(`2d`);if(e){if(e.clearRect(0,0,y(C,this),y(C,this)),this.failed){_(A,this,ce).call(this,e,this.failColor,1,0);return}if(_(A,this,ce).call(this,e,this.bgColor,1,0),y(w,this)>0){let t=this.progress<0?y(E,this):-Math.PI/2;_(A,this,ce).call(this,e,this.color,y(w,this),t)}}}function ce(e,t,n,r){e.strokeStyle=t,e.lineWidth=y(ie,this),e.lineCap=`round`,e.beginPath(),e.arc(y(ne,this),y(ne,this),y(re,this),r,r+n*2*Math.PI),e.stroke()}function le(e,t){_(A,this,ue).call(this);let n=performance.now(),r=y(w,this),i=a=>{let o=a-n,s=Math.min(o/500,1),c=1-(1-s)**3;v(w,this,r+(e-r)*c),_(A,this,M).call(this),s<1?v(T,this,requestAnimationFrame(i)):(v(T,this,null),t?.())};v(T,this,requestAnimationFrame(i))}function ue(){y(T,this)!==null&&(cancelAnimationFrame(y(T,this)),v(T,this,null)),y(D,this)!==null&&(cancelAnimationFrame(y(D,this)),v(D,this,null))}j.styles=n` :host { --_size: var(--c-progress-size, 16px); --_stroke-width: var(--c-progress-stroke-width, 3px); @@ -40,9 +40,9 @@ import{t as e}from"./decorate-DpHfxayW.js";import{c as t,f as n,t as r}from"./li white-space: nowrap; border: 0; } - `,e([i({type:Number})],j.prototype,`progress`,void 0),e([i({type:Boolean})],j.prototype,`failed`,void 0),e([i({type:String})],j.prototype,`color`,void 0),e([i({type:String,attribute:`bg-color`})],j.prototype,`bgColor`,void 0),e([i({type:String,attribute:`fail-color`})],j.prototype,`failColor`,void 0),e([i({type:String})],j.prototype,`label`,void 0),e([i({type:Boolean,attribute:`auto-complete`})],j.prototype,`autoComplete`,void 0),customElements.get(`craft-progress`)||customElements.define(`craft-progress`,j);function de(e,t){return function(){return e.apply(t,arguments)}}var{toString:fe}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:me,toStringTag:he}=Symbol,ge=(e=>t=>{let n=fe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>ge(t)===e),_e=e=>t=>typeof t===e,{isArray:P}=Array,F=_e(`undefined`);function ve(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ye=N(`ArrayBuffer`);function be(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ye(e.buffer),t}var xe=_e(`string`),I=_e(`function`),Se=_e(`number`),L=e=>typeof e==`object`&&!!e,Ce=e=>e===!0||e===!1,we=e=>{if(ge(e)!==`object`)return!1;let t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(he in e)&&!(me in e)},Te=e=>{if(!L(e)||ve(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ee=N(`Date`),De=N(`File`),Oe=N(`Blob`),ke=N(`FileList`),Ae=e=>L(e)&&I(e.pipe),je=e=>{let t;return e&&(typeof FormData==`function`&&e instanceof FormData||I(e.append)&&((t=ge(e))===`formdata`||t===`object`&&I(e.toString)&&e.toString()===`[object FormData]`))},Me=N(`URLSearchParams`),[Ne,Pe,Fe,Ie]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(N),Le=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Re(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),P(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ve(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function ze(e,t){if(ve(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var R=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Be=e=>!F(e)&&e!==R;function Ve(){let{caseless:e,skipUndefined:t}=Be(this)&&this||{},n={},r=(r,i)=>{let a=e&&ze(n,i)||i;we(n[a])&&we(r)?n[a]=Ve(n[a],r):we(r)?n[a]=Ve({},r):P(r)?n[a]=r.slice():(!t||!F(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Re(arguments[e],r);return n}var He=(e,t,n,{allOwnKeys:r}={})=>(Re(t,(t,r)=>{n&&I(t)?Object.defineProperty(e,r,{value:de(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Ue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),We=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ge=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ke=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},qe=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Se(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Je=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&pe(Uint8Array)),Ye=(e,t)=>{let n=(e&&e[me]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Xe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ze=N(`HTMLFormElement`),Qe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),$e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),et=N(`RegExp`),tt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Re(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},nt=e=>{tt(e,(t,n)=>{if(I(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(I(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},rt=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return P(e)?r(e):r(String(e).split(t)),n},it=()=>{},at=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ot(e){return!!(e&&I(e.append)&&e[he]===`FormData`&&e[me])}var st=e=>{let t=Array(10),n=(e,r)=>{if(L(e)){if(t.indexOf(e)>=0)return;if(ve(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=P(e)?[]:{};return Re(e,(e,t)=>{let a=n(e,r+1);!F(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},ct=N(`AsyncFunction`),lt=e=>e&&(L(e)||I(e))&&I(e.then)&&I(e.catch),ut=((e,t)=>e?setImmediate:t?((e,t)=>(R.addEventListener(`message`,({source:n,data:r})=>{n===R&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),R.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,I(R.postMessage)),z={isArray:P,isArrayBuffer:ye,isBuffer:ve,isFormData:je,isArrayBufferView:be,isString:xe,isNumber:Se,isBoolean:Ce,isObject:L,isPlainObject:we,isEmptyObject:Te,isReadableStream:Ne,isRequest:Pe,isResponse:Fe,isHeaders:Ie,isUndefined:F,isDate:Ee,isFile:De,isBlob:Oe,isRegExp:et,isFunction:I,isStream:Ae,isURLSearchParams:Me,isTypedArray:Je,isFileList:ke,forEach:Re,merge:Ve,extend:He,trim:Le,stripBOM:Ue,inherits:We,toFlatObject:Ge,kindOf:ge,kindOfTest:N,endsWith:Ke,toArray:qe,forEachEntry:Ye,matchAll:Xe,isHTMLForm:Ze,hasOwnProperty:$e,hasOwnProp:$e,reduceDescriptors:tt,freezeMethods:nt,toObjectSet:rt,toCamelCase:Qe,noop:it,toFiniteNumber:at,findKey:ze,global:R,isContextDefined:Be,isSpecCompliantForm:ot,toJSONObject:st,isAsyncFn:ct,isThenable:lt,setImmediate:ut,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(R):typeof process<`u`&&process.nextTick||ut,isIterable:e=>e!=null&&I(e[me])},B=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}};B.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,B.ERR_BAD_OPTION=`ERR_BAD_OPTION`,B.ECONNABORTED=`ECONNABORTED`,B.ETIMEDOUT=`ETIMEDOUT`,B.ERR_NETWORK=`ERR_NETWORK`,B.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,B.ERR_DEPRECATED=`ERR_DEPRECATED`,B.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,B.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,B.ERR_CANCELED=`ERR_CANCELED`,B.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,B.ERR_INVALID_URL=`ERR_INVALID_URL`;function dt(e){return z.isPlainObject(e)||z.isArray(e)}function ft(e){return z.endsWith(e,`[]`)?e.slice(0,-2):e}function pt(e,t,n){return e?e.concat(t).map(function(e,t){return e=ft(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function mt(e){return z.isArray(e)&&!e.some(dt)}var ht=z.toFlatObject(z,{},null,function(e){return/^is[A-Z]/.test(e)});function gt(e,t,n){if(!z.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!z.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(z.isDate(e))return e.toISOString();if(z.isBoolean(e))return e.toString();if(!s&&z.isBlob(e))throw new B(`Blob is not supported. Use a Buffer instead.`);return z.isArrayBuffer(e)||z.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&typeof e==`object`){if(z.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(z.isArray(e)&&mt(e)||(z.isFileList(e)||z.endsWith(n,`[]`))&&(s=z.toArray(e)))return n=ft(n),s.forEach(function(e,r){!(z.isUndefined(e)||e===null)&&t.append(o===!0?pt([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return dt(e)?!0:(t.append(pt(i,n,a),c(e)),!1)}let u=[],d=Object.assign(ht,{defaultVisitor:l,convertValue:c,isVisitable:dt});function f(e,n){if(!z.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),z.forEach(e,function(e,r){(!(z.isUndefined(e)||e===null)&&i.call(t,e,z.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!z.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function _t(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function vt(e,t){this._pairs=[],e&>(e,this,t)}var yt=vt.prototype;yt.append=function(e,t){this._pairs.push([e,t])},yt.toString=function(e){let t=e?function(t){return e.call(this,t,_t)}:_t;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function bt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function xt(e,t,n){if(!t)return e;let r=n&&n.encode||bt,i=z.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):z.isURLSearchParams(t)?t.toString():new vt(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var St=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){z.forEach(this.handlers,function(t){t!==null&&e(t)})}},Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:vt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Tt=f({hasBrowserEnv:()=>Et,hasStandardBrowserEnv:()=>Ot,hasStandardBrowserWebWorkerEnv:()=>kt,navigator:()=>Dt,origin:()=>At}),Et=typeof window<`u`&&typeof document<`u`,Dt=typeof navigator==`object`&&navigator||void 0,Ot=Et&&(!Dt||[`ReactNative`,`NativeScript`,`NS`].indexOf(Dt.product)<0),kt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,At=Et&&window.location.href||`http://localhost`,V={...Tt,...wt};function jt(e,t){return gt(e,new V.classes.URLSearchParams,{visitor:function(e,t,n,r){return V.isNode&&z.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Mt(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Nt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Pt(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&z.isArray(r)?r.length:a,s?(z.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!z.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&z.isArray(r[a])&&(r[a]=Nt(r[a])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){let n={};return z.forEachEntry(e,(e,r)=>{t(Mt(e),r,n,0)}),n}return null}function Ft(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var H={transitional:Ct,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=z.isObject(e);if(i&&z.isHTMLForm(e)&&(e=new FormData(e)),z.isFormData(e))return r?JSON.stringify(Pt(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e)||z.isReadableStream(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return jt(e,this.formSerializer).toString();if((a=z.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return gt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),Ft(e)):e}],transformResponse:[function(e){let t=this.transitional||H.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(z.isResponse(e)||z.isReadableStream(e))return e;if(e&&z.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?B.from(e,B.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{H.headers[e]={}});var It=z.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Lt=e=>{let t={},n,r,i;return e&&e.split(` -`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&It[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},Rt=Symbol(`internals`);function U(e){return e&&String(e).trim().toLowerCase()}function zt(e){return e===!1||e==null?e:z.isArray(e)?e.map(zt):String(e)}function Bt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Vt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ht(e,t,n,r,i){if(z.isFunction(r))return r.call(this,t,n);if(i&&(t=n),z.isString(t)){if(z.isString(r))return t.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(t)}}function Ut(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Wt(e,t){let n=z.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var W=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=U(t);if(!i)throw Error(`header name must be a non-empty string`);let a=z.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=zt(e))}let a=(e,t)=>z.forEach(e,(e,n)=>i(e,n,t));if(z.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(z.isString(e)&&(e=e.trim())&&!Vt(e))a(Lt(e),t);else if(z.isObject(e)&&z.isIterable(e)){let n={},r,i;for(let t of e){if(!z.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?z.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=U(e),e){let n=z.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Bt(e);if(z.isFunction(t))return t.call(this,e,n);if(z.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=U(e),e){let n=z.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ht(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=U(e),e){let i=z.findKey(n,e);i&&(!t||Ht(n,n[i],i,t))&&(delete n[i],r=!0)}}return z.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Ht(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return z.forEach(this,(r,i)=>{let a=z.findKey(n,i);if(a){t[a]=zt(r),delete t[i];return}let o=e?Ut(i):String(i).trim();o!==i&&delete t[i],t[o]=zt(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return z.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&z.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` -`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Rt]=this[Rt]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=U(e);t[r]||(Wt(n,e),t[r]=!0)}return z.isArray(e)?e.forEach(r):r(e),this}};W.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),z.reduceDescriptors(W.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),z.freezeMethods(W);function Gt(e,t){let n=this||H,r=t||n,i=W.from(r.headers),a=r.data;return z.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Kt(e){return!!(e&&e.__CANCEL__)}var G=class extends B{constructor(e,t,n){super(e??`canceled`,B.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function qt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new B(`Request failed with status code `+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Jt(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function Yt(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Xt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Zt=(e,t,n=3)=>{let r=0,i=Yt(50,250);return Xt(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Qt=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$t=e=>(...t)=>z.asap(()=>e(...t)),en=V.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,V.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(V.origin),V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent)):()=>!0,tn=V.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];z.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),z.isString(r)&&s.push(`path=${r}`),z.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),z.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function nn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rn(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function an(e,t,n){let r=!nn(t);return e&&(r||n==0)?rn(e,t):t}var on=e=>e instanceof W?{...e}:e;function K(e,t){t||={};let n={};function r(e,t,n,r){return z.isPlainObject(e)&&z.isPlainObject(t)?z.merge.call({caseless:r},e,t):z.isPlainObject(t)?z.merge({},t):z.isArray(t)?t.slice():t}function i(e,t,n,i){if(!z.isUndefined(t))return r(e,t,n,i);if(!z.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!z.isUndefined(t))return r(void 0,t)}function o(e,t){if(!z.isUndefined(t))return r(void 0,t);if(!z.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(on(e),on(t),n,!0)};return z.forEach(Object.keys({...e,...t}),function(r){let a=c[r]||i,o=a(e[r],t[r],r);z.isUndefined(o)&&a!==s||(n[r]=o)}),n}var sn=e=>{let t=K({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=W.from(o),t.url=xt(an(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),z.isFormData(n)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(z.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(V.hasStandardBrowserEnv&&(r&&z.isFunction(r)&&(r=r(t)),r||r!==!1&&en(t.url))){let e=i&&a&&tn.read(a);e&&o.set(i,e)}return t},cn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=sn(e),i=r.data,a=W.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,ee;function p(){f&&f(),ee&&ee(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function h(){if(!m)return;let r=W.from(`getAllResponseHeaders`in m&&m.getAllResponseHeaders());qt(function(e){t(e),p()},function(e){n(e),p()},{data:!o||o===`text`||o===`json`?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}`onloadend`in m?m.onloadend=h:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf(`file:`)===0)||setTimeout(h)},m.onabort=function(){m&&=(n(new B(`Request aborted`,B.ECONNABORTED,e,m)),null)},m.onerror=function(t){let r=new B(t&&t.message?t.message:`Network Error`,B.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Ct;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new B(t,i.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,m)),m=null},i===void 0&&a.setContentType(null),`setRequestHeader`in m&&z.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),z.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),o&&o!==`json`&&(m.responseType=r.responseType),c&&([d,ee]=Zt(c,!0),m.addEventListener(`progress`,d)),s&&m.upload&&([u,f]=Zt(s),m.upload.addEventListener(`progress`,u),m.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{m&&=(n(!t||t.type?new G(null,e,m):t),m.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let g=Jt(r.url);if(g&&V.protocols.indexOf(g)===-1){n(new B(`Unsupported protocol `+g+`:`,B.ERR_BAD_REQUEST,e));return}m.send(i||null)})},ln=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof B?t:new G(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new B(`timeout of ${t}ms exceeded`,B.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>z.asap(o),s}},un=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},dn=async function*(e,t){for await(let n of fn(e))yield*un(n,t)},fn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},pn=(e,t,n,r)=>{let i=dn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},mn=64*1024,{isFunction:hn}=z,gn=(({Request:e,Response:t})=>({Request:e,Response:t}))(z.global),{ReadableStream:_n,TextEncoder:vn}=z.global,yn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bn=e=>{e=z.merge.call({skipUndefined:!0},gn,e);let{fetch:t,Request:n,Response:r}=e,i=t?hn(t):typeof fetch==`function`,a=hn(n),o=hn(r);if(!i)return!1;let s=i&&hn(_n),c=i&&(typeof vn==`function`?(e=>t=>e.encode(t))(new vn):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&yn(()=>{let e=!1,t=new n(V.origin,{body:new _n,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&yn(()=>z.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new B(`Response type '${e}' is not supported`,B.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new n(V.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e+=``),z.isString(e))return(await c(e)).byteLength},ee=async(e,t)=>z.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:p,onDownloadProgress:m,onUploadProgress:h,responseType:g,headers:_,withCredentials:v=`same-origin`,fetchOptions:y}=sn(e),te=t||fetch;g=g?(g+``).toLowerCase():`text`;let b=ln([c,f&&f.toAbortSignal()],p),x=null,S=b&&b.unsubscribe&&(()=>{b.unsubscribe()}),C;try{if(h&&l&&o!==`get`&&o!==`head`&&(C=await ee(_,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(z.isFormData(s)&&(t=e.headers.get(`content-type`))&&_.setContentType(t),e.body){let[t,n]=Qt(C,Zt($t(h)));s=pn(e.body,mn,t,n)}}z.isString(v)||(v=v?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...y,signal:b,method:o.toUpperCase(),headers:_.normalize().toJSON(),body:s,duplex:`half`,credentials:t?v:void 0};x=a&&new n(i,c);let f=await(a?te(x,y):te(i,c)),p=u&&(g===`stream`||g===`response`);if(u&&(m||p&&S)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=z.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=m&&Qt(t,Zt($t(m),!0))||[];f=new r(pn(f.body,mn,n,()=>{i&&i(),S&&S()}),e)}g||=`text`;let ne=await d[z.findKey(d,g)||`text`](f,e);return!p&&S&&S(),await new Promise((t,n)=>{qt(t,n,{data:ne,headers:W.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:x})})}catch(t){throw S&&S(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new B(`Network Error`,B.ERR_NETWORK,e,x),{cause:t.cause||t}):B.from(t,t&&t.code,e,x)}}},xn=new Map,Sn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=xn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:bn(t)),l=c;return c};Sn();var Cn={http:null,xhr:cn,fetch:{get:Sn}};z.forEach(Cn,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var wn=e=>`- ${e}`,Tn=e=>z.isFunction(e)||e===null||e===!1;function En(e,t){e=z.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Tn(r)&&(i=Cn[(n=String(r)).toLowerCase()],i===void 0))throw new B(`Unknown adapter '${n}'`);if(i&&(z.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new B(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : -`+e.map(wn).join(` -`):` `+wn(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Dn={getAdapter:En,adapters:Cn};function On(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G(null,e)}function kn(e){return On(e),e.headers=W.from(e.headers),e.data=Gt.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Dn.getAdapter(e.adapter||H.adapter,e)(e).then(function(t){return On(e),t.data=Gt.call(e,e.transformResponse,t),t.headers=W.from(t.headers),t},function(t){return Kt(t)||(On(e),t&&t.response&&(t.response.data=Gt.call(e,e.transformResponse,t.response),t.response.headers=W.from(t.response.headers))),Promise.reject(t)})}var An=`1.13.3`,jn={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{jn[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Mn={};jn.transitional=function(e,t,n){function r(e,t){return`[Axios v`+An+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new B(r(i,` has been removed`+(t?` in `+t:``)),B.ERR_DEPRECATED);return t&&!Mn[i]&&(Mn[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},jn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Nn(e,t,n){if(typeof e!=`object`)throw new B(`options must be an object`,B.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new B(`option `+a+` must be `+n,B.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B(`Unknown option `+a,B.ERR_BAD_OPTION)}}var Pn={assertOptions:Nn,validators:jn},q=Pn.validators,J=class{constructor(e){this.defaults=e||{},this.interceptors={request:new St,response:new St}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=` -`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=K(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Pn.assertOptions(n,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean)},!1),r!=null&&(z.isFunction(r)?t.paramsSerializer={serialize:r}:Pn.assertOptions(r,{encode:q.function,serialize:q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Pn.assertOptions(t,{baseUrl:q.spelling(`baseURL`),withXsrfToken:q.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&z.merge(i.common,i[t.method]);i&&z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=W.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){typeof e.runWhen==`function`&&e.runWhen(t)===!1||(s&&=e.synchronous,o.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[kn.bind(this),void 0];e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);let n=t;for(;u<d;)l=l.then(e[u++]).then(e=>{n=e===void 0?n:e}).catch(e[u++]).then(()=>n);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=kn.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++]).catch(c[u++]);return l}getUri(e){return e=K(this.defaults,e),xt(an(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};z.forEach([`delete`,`get`,`head`,`options`],function(e){J.prototype[e]=function(t,n){return this.request(K(n||{},{method:e,url:t,data:(n||{}).data}))}}),z.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(K(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}J.prototype[e]=t(),J.prototype[e+`Form`]=t(!0)});var Fn=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new G(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function In(e){return function(t){return e.apply(null,t)}}function Ln(e){return z.isObject(e)&&e.isAxiosError===!0}var Rn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rn).forEach(([e,t])=>{Rn[t]=e});function zn(e){let t=new J(e),n=de(J.prototype.request,t);return z.extend(n,J.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return zn(K(e,t))},n}var Y=zn(H);Y.Axios=J,Y.CanceledError=G,Y.CancelToken=Fn,Y.isCancel=Kt,Y.VERSION=An,Y.toFormData=gt,Y.AxiosError=B,Y.Cancel=Y.CanceledError,Y.all=function(e){return Promise.all(e)},Y.spread=In,Y.isAxiosError=Ln,Y.mergeConfig=K,Y.AxiosHeaders=W,Y.formToJSON=e=>Pt(z.isHTMLForm(e)?new FormData(e):e),Y.getAdapter=Dn.getAdapter,Y.HttpStatusCode=Rn,Y.default=Y;var X=new WeakMap,Bn=new WeakSet,Vn=class e{constructor(){x(this,Bn),h(this,X,new Map)}static getInstance(t={}){return Un._||=new e,Un._}static resetInstance(){Un._&&=null}initialize(e={}){_(X,this,new Map(Object.entries(e)))}getCpUrl(e){return g(Bn,this,Hn).call(this,v(X,this).get(`cpUrl`),e)}getActionUrl(e){return g(Bn,this,Hn).call(this,v(X,this).get(`actionUrl`),e)}all(){return v(X,this)}set(e,t){v(X,this).set(e,t)}get(e,t=null){return v(X,this).has(e)?v(X,this).get(e):t}};function Hn(e,t){let n=new URL(e),r=t.startsWith(`/`)?t.slice(1):t;return n.pathname=`${n.pathname}/${r}`,n.toString()}var Un={_:null},Wn=new WeakMap,Gn=new WeakMap,Z=new WeakMap,Q=new WeakMap,Kn=new WeakMap,qn=new WeakMap,$=new WeakSet,Jn=class e extends EventTarget{constructor(...e){super(...e),x(this,$),h(this,Wn,Math.random().toString(36).slice(2)),this.enabled=!0,h(this,Gn,``),this.canAccessQueueManager=!1,this.totalJobs=0,this.jobInfo=[],this.displayedJob=null,this.displayedJobUnchangedCount=1,h(this,Z,null),this.isTracking=!1,h(this,Q,null),h(this,Kn,null),h(this,qn,Vn.getInstance())}static getInstance(){return ar._||=new e,ar._}static resetInstance(){ar._&&=(ar._.stopTracking(),v(Kn,ar._)?.close(),null)}initialize(e={}){_(Gn,this,e.appId??``),this.canAccessQueueManager=e.canAccessQueueManager??!1,g($,this,Yn).call(this)}async runQueue(){try{await Y.post(v(qn,this).getActionUrl(`queue/run`))}catch(e){console.error(e)}this.startTracking(!1,!0)}startTracking(e=!1,t=!1){if(this.isTracking&&!t)return;v(Z,this)&&(clearTimeout(v(Z,this)),_(Z,this,null));let n=0;e===!0?n=g($,this,Qn).call(this):typeof e==`number`&&(n=e),n>0?_(Z,this,setTimeout(()=>{g($,this,$n).call(this)},n)):g($,this,$n).call(this)}stopTracking(){this.isTracking=!1,v(Z,this)&&(clearTimeout(v(Z,this)),_(Z,this,null)),v(Q,this)&&(v(Q,this).abort(),_(Q,this,null))}setJobData(e){this.totalJobs=e.length,g($,this,er).call(this,e)}};function Yn(){if(typeof BroadcastChannel>`u`||!v(Gn,this))return;let e=`CraftCMS:${v(Gn,this)}:queue`;_(Kn,this,new BroadcastChannel(e)),v(Kn,this).addEventListener(`message`,e=>{g($,this,Xn).call(this,e.data)})}function Xn(e){if(e.instanceId!==v(Wn,this))switch(e.event){case`beforeTrackJobProgress`:this.stopTracking();break;case`trackJobProgress`:if(e.jobData&&this.setJobData(e.jobData.jobs),this.jobInfo.length>0){let e=g($,this,Qn).call(this)+1e3;this.startTracking(e)}break}}function Zn(e,t){v(Kn,this)?.postMessage({event:e,instanceId:v(Wn,this),...t})}function Qn(){return Math.min(6e4,this.displayedJobUnchangedCount*500)}async function $n(){g($,this,Zn).call(this,`beforeTrackJobProgress`),this.isTracking=!0,_(Q,this,new AbortController);try{let e=await Y.get(v(qn,this).getActionUrl(`queue/get-job-info`),{params:{dontExtendSession:1},signal:v(Q,this).signal});this.setJobData(e.data.jobs),g($,this,Zn).call(this,`trackJobProgress`,{jobData:e.data}),this.jobInfo.length>0&&this.startTracking(!0,!0)}catch(e){if(e instanceof Error&&e.name===`CanceledError`)return;let t=e;if(t.response?.status===400||t.response?.status===403){this.stopTracking();return}this.startTracking(!0,!0)}finally{this.isTracking=!1,_(Q,this,null)}}function er(e){let t=this.displayedJob;this.jobInfo=e,this.displayedJob=g($,this,tr).call(this),t&&this.displayedJob&&t.id===this.displayedJob.id&&t.progress===this.displayedJob.progress&&t.progressLabel===this.displayedJob.progressLabel&&t.status===this.displayedJob.status?this.displayedJobUnchangedCount++:this.displayedJobUnchangedCount=1,g($,this,nr).call(this),this.displayedJob?.status.value===y.Failed&&g($,this,ir).call(this,this.displayedJob),this.jobInfo.length===0&&t&&g($,this,rr).call(this)}function tr(){if(this.jobInfo?.length===0)return null;let e=[y.Reserved,y.Failed,y.Pending];for(let t of e){let e=this.jobInfo.find(e=>e.status.value===t?!(t===y.Pending&&e.delay>0):!1);if(e)return e}return null}function nr(){let e={totalJobs:this.totalJobs,jobInfo:this.jobInfo,displayedJob:this.displayedJob};this.dispatchEvent(new CustomEvent(`job-update`,{detail:e}))}function rr(){this.dispatchEvent(new CustomEvent(`job-complete`))}function ir(e){let t={job:e};this.dispatchEvent(new CustomEvent(`job-failed`,{detail:t}))}var ar={_:null};export{b as a,g as c,d,f,x as i,_ as l,Vn as n,te as o,p,Y as r,v as s,Jn as t,h as u}; \ No newline at end of file + `,e([i({type:Number})],j.prototype,`progress`,void 0),e([i({type:Boolean})],j.prototype,`failed`,void 0),e([i({type:String})],j.prototype,`color`,void 0),e([i({type:String,attribute:`bg-color`})],j.prototype,`bgColor`,void 0),e([i({type:String,attribute:`fail-color`})],j.prototype,`failColor`,void 0),e([i({type:String})],j.prototype,`label`,void 0),e([i({type:Boolean,attribute:`auto-complete`})],j.prototype,`autoComplete`,void 0),customElements.get(`craft-progress`)||customElements.define(`craft-progress`,j);function de(e,t){return function(){return e.apply(t,arguments)}}var{toString:fe}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:me,toStringTag:he}=Symbol,ge=(e=>t=>{let n=fe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>ge(t)===e),_e=e=>t=>typeof t===e,{isArray:P}=Array,F=_e(`undefined`);function ve(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ye=N(`ArrayBuffer`);function be(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ye(e.buffer),t}var xe=_e(`string`),I=_e(`function`),Se=_e(`number`),Ce=e=>typeof e==`object`&&!!e,we=e=>e===!0||e===!1,Te=e=>{if(ge(e)!==`object`)return!1;let t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(he in e)&&!(me in e)},Ee=e=>{if(!Ce(e)||ve(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},De=N(`Date`),Oe=N(`File`),ke=N(`Blob`),Ae=N(`FileList`),je=e=>Ce(e)&&I(e.pipe),Me=e=>{let t;return e&&(typeof FormData==`function`&&e instanceof FormData||I(e.append)&&((t=ge(e))===`formdata`||t===`object`&&I(e.toString)&&e.toString()===`[object FormData]`))},Ne=N(`URLSearchParams`),[Pe,Fe,Ie,Le]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(N),Re=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function ze(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),P(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ve(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function Be(e,t){if(ve(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var L=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Ve=e=>!F(e)&&e!==L;function He(){let{caseless:e,skipUndefined:t}=Ve(this)&&this||{},n={},r=(r,i)=>{let a=e&&Be(n,i)||i;Te(n[a])&&Te(r)?n[a]=He(n[a],r):Te(r)?n[a]=He({},r):P(r)?n[a]=r.slice():(!t||!F(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ze(arguments[e],r);return n}var Ue=(e,t,n,{allOwnKeys:r}={})=>(ze(t,(t,r)=>{n&&I(t)?Object.defineProperty(e,r,{value:de(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),We=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ge=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ke=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Je=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Se(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Ye=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&pe(Uint8Array)),Xe=(e,t)=>{let n=(e&&e[me]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ze=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qe=N(`HTMLFormElement`),$e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),et=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tt=N(`RegExp`),nt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};ze(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},rt=e=>{nt(e,(t,n)=>{if(I(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(I(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},it=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return P(e)?r(e):r(String(e).split(t)),n},at=()=>{},ot=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function st(e){return!!(e&&I(e.append)&&e[he]===`FormData`&&e[me])}var ct=e=>{let t=Array(10),n=(e,r)=>{if(Ce(e)){if(t.indexOf(e)>=0)return;if(ve(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=P(e)?[]:{};return ze(e,(e,t)=>{let a=n(e,r+1);!F(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},lt=N(`AsyncFunction`),ut=e=>e&&(Ce(e)||I(e))&&I(e.then)&&I(e.catch),dt=((e,t)=>e?setImmediate:t?((e,t)=>(L.addEventListener(`message`,({source:n,data:r})=>{n===L&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),L.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,I(L.postMessage)),R={isArray:P,isArrayBuffer:ye,isBuffer:ve,isFormData:Me,isArrayBufferView:be,isString:xe,isNumber:Se,isBoolean:we,isObject:Ce,isPlainObject:Te,isEmptyObject:Ee,isReadableStream:Pe,isRequest:Fe,isResponse:Ie,isHeaders:Le,isUndefined:F,isDate:De,isFile:Oe,isBlob:ke,isRegExp:tt,isFunction:I,isStream:je,isURLSearchParams:Ne,isTypedArray:Ye,isFileList:Ae,forEach:ze,merge:He,extend:Ue,trim:Re,stripBOM:We,inherits:Ge,toFlatObject:Ke,kindOf:ge,kindOfTest:N,endsWith:qe,toArray:Je,forEachEntry:Xe,matchAll:Ze,isHTMLForm:Qe,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:nt,freezeMethods:rt,toObjectSet:it,toCamelCase:$e,noop:at,toFiniteNumber:ot,findKey:Be,global:L,isContextDefined:Ve,isSpecCompliantForm:st,toJSONObject:ct,isAsyncFn:lt,isThenable:ut,setImmediate:dt,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(L):typeof process<`u`&&process.nextTick||dt,isIterable:e=>e!=null&&I(e[me])},z=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}};z.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,z.ERR_BAD_OPTION=`ERR_BAD_OPTION`,z.ECONNABORTED=`ECONNABORTED`,z.ETIMEDOUT=`ETIMEDOUT`,z.ERR_NETWORK=`ERR_NETWORK`,z.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,z.ERR_DEPRECATED=`ERR_DEPRECATED`,z.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,z.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,z.ERR_CANCELED=`ERR_CANCELED`,z.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,z.ERR_INVALID_URL=`ERR_INVALID_URL`;function ft(e){return R.isPlainObject(e)||R.isArray(e)}function pt(e){return R.endsWith(e,`[]`)?e.slice(0,-2):e}function mt(e,t,n){return e?e.concat(t).map(function(e,t){return e=pt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function ht(e){return R.isArray(e)&&!e.some(ft)}var gt=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function _t(e,t,n){if(!R.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!R.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(R.isDate(e))return e.toISOString();if(R.isBoolean(e))return e.toString();if(!s&&R.isBlob(e))throw new z(`Blob is not supported. Use a Buffer instead.`);return R.isArrayBuffer(e)||R.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&typeof e==`object`){if(R.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(R.isArray(e)&&ht(e)||(R.isFileList(e)||R.endsWith(n,`[]`))&&(s=R.toArray(e)))return n=pt(n),s.forEach(function(e,r){!(R.isUndefined(e)||e===null)&&t.append(o===!0?mt([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return ft(e)?!0:(t.append(mt(i,n,a),c(e)),!1)}let u=[],d=Object.assign(gt,{defaultVisitor:l,convertValue:c,isVisitable:ft});function f(e,n){if(!R.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),R.forEach(e,function(e,r){(!(R.isUndefined(e)||e===null)&&i.call(t,e,R.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!R.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function vt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function yt(e,t){this._pairs=[],e&&_t(e,this,t)}var bt=yt.prototype;bt.append=function(e,t){this._pairs.push([e,t])},bt.toString=function(e){let t=e?function(t){return e.call(this,t,vt)}:vt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function xt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function St(e,t,n){if(!t)return e;let r=n&&n.encode||xt,i=R.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):R.isURLSearchParams(t)?t.toString():new yt(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Ct=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){R.forEach(this.handlers,function(t){t!==null&&e(t)})}},wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:yt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Et=f({hasBrowserEnv:()=>Dt,hasStandardBrowserEnv:()=>kt,hasStandardBrowserWebWorkerEnv:()=>At,navigator:()=>Ot,origin:()=>jt}),Dt=typeof window<`u`&&typeof document<`u`,Ot=typeof navigator==`object`&&navigator||void 0,kt=Dt&&(!Ot||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ot.product)<0),At=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,jt=Dt&&window.location.href||`http://localhost`,B={...Et,...Tt};function Mt(e,t){return _t(e,new B.classes.URLSearchParams,{visitor:function(e,t,n,r){return B.isNode&&R.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Nt(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Pt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Ft(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&R.isArray(r)?r.length:a,s?(R.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!R.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&R.isArray(r[a])&&(r[a]=Pt(r[a])),!o)}if(R.isFormData(e)&&R.isFunction(e.entries)){let n={};return R.forEachEntry(e,(e,r)=>{t(Nt(e),r,n,0)}),n}return null}function It(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var V={transitional:wt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return r?JSON.stringify(Ft(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Mt(e,this.formSerializer).toString();if((a=R.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return _t(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),It(e)):e}],transformResponse:[function(e){let t=this.transitional||V.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?z.from(e,z.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{V.headers[e]={}});var Lt=R.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Rt=e=>{let t={},n,r,i;return e&&e.split(` +`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Lt[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},zt=Symbol(`internals`);function H(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return e===!1||e==null?e:R.isArray(e)?e.map(Bt):String(e)}function Vt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Ht=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ut(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function Wt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Gt(e,t){let n=R.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var U=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=H(t);if(!i)throw Error(`header name must be a non-empty string`);let a=R.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Bt(e))}let a=(e,t)=>R.forEach(e,(e,n)=>i(e,n,t));if(R.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(R.isString(e)&&(e=e.trim())&&!Ht(e))a(Rt(e),t);else if(R.isObject(e)&&R.isIterable(e)){let n={},r,i;for(let t of e){if(!R.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?R.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=H(e),e){let n=R.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Vt(e);if(R.isFunction(t))return t.call(this,e,n);if(R.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=H(e),e){let n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ut(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=H(e),e){let i=R.findKey(n,e);i&&(!t||Ut(n,n[i],i,t))&&(delete n[i],r=!0)}}return R.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Ut(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return R.forEach(this,(r,i)=>{let a=R.findKey(n,i);if(a){t[a]=Bt(r),delete t[i];return}let o=e?Wt(i):String(i).trim();o!==i&&delete t[i],t[o]=Bt(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return R.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&R.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` +`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[zt]=this[zt]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=H(e);t[r]||(Gt(n,e),t[r]=!0)}return R.isArray(e)?e.forEach(r):r(e),this}};U.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),R.reduceDescriptors(U.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),R.freezeMethods(U);function Kt(e,t){let n=this||V,r=t||n,i=U.from(r.headers),a=r.data;return R.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function qt(e){return!!(e&&e.__CANCEL__)}var W=class extends z{constructor(e,t,n){super(e??`canceled`,z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Jt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z(`Request failed with status code `+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Yt(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function Xt(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Zt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Qt=(e,t,n=3)=>{let r=0,i=Xt(50,250);return Zt(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},$t=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},en=e=>(...t)=>R.asap(()=>e(...t)),tn=B.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,B.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):()=>!0,nn=B.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&s.push(`path=${r}`),R.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),R.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function rn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function an(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function on(e,t,n){let r=!rn(t);return e&&(r||n==0)?an(e,t):t}var sn=e=>e instanceof U?{...e}:e;function G(e,t){t||={};let n={};function r(e,t,n,r){return R.isPlainObject(e)&&R.isPlainObject(t)?R.merge.call({caseless:r},e,t):R.isPlainObject(t)?R.merge({},t):R.isArray(t)?t.slice():t}function i(e,t,n,i){if(!R.isUndefined(t))return r(e,t,n,i);if(!R.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!R.isUndefined(t))return r(void 0,t)}function o(e,t){if(!R.isUndefined(t))return r(void 0,t);if(!R.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(sn(e),sn(t),n,!0)};return R.forEach(Object.keys({...e,...t}),function(r){let a=c[r]||i,o=a(e[r],t[r],r);R.isUndefined(o)&&a!==s||(n[r]=o)}),n}var cn=e=>{let t=G({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=U.from(o),t.url=St(on(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),R.isFormData(n)){if(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(R.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(B.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&tn(t.url))){let e=i&&a&&nn.read(a);e&&o.set(i,e)}return t},ln=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=cn(e),i=r.data,a=U.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=U.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Jt(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new z(`Request aborted`,z.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new z(t&&t.message?t.message:`Network Error`,z.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||wt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new z(t,i.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&R.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),R.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Qt(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Qt(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new W(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Yt(r.url);if(_&&B.protocols.indexOf(_)===-1){n(new z(`Unsupported protocol `+_+`:`,z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},un=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof z?t:new W(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new z(`timeout of ${t}ms exceeded`,z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>R.asap(o),s}},dn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},fn=async function*(e,t){for await(let n of pn(e))yield*dn(n,t)},pn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},mn=(e,t,n,r)=>{let i=fn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},hn=64*1024,{isFunction:gn}=R,_n=(({Request:e,Response:t})=>({Request:e,Response:t}))(R.global),{ReadableStream:vn,TextEncoder:yn}=R.global,bn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xn=e=>{e=R.merge.call({skipUndefined:!0},_n,e);let{fetch:t,Request:n,Response:r}=e,i=t?gn(t):typeof fetch==`function`,a=gn(n),o=gn(r);if(!i)return!1;let s=i&&gn(vn),c=i&&(typeof yn==`function`?(e=>t=>e.encode(t))(new yn):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&bn(()=>{let e=!1,t=new n(B.origin,{body:new vn,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&bn(()=>R.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new z(`Response type '${e}' is not supported`,z.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new n(B.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e+=``),R.isString(e))return(await c(e)).byteLength},p=async(e,t)=>R.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=cn(e),ee=t||fetch;_=_?(_+``).toLowerCase():`text`;let te=un([c,f&&f.toAbortSignal()],m),x=null,S=te&&te.unsubscribe&&(()=>{te.unsubscribe()}),C;try{if(g&&l&&o!==`get`&&o!==`head`&&(C=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(R.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=$t(C,Qt(en(g)));s=mn(e.body,hn,t,n)}}R.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:te,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};x=a&&new n(i,c);let f=await(a?ee(x,b):ee(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&S)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=R.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&$t(t,Qt(en(h),!0))||[];f=new r(mn(f.body,hn,n,()=>{i&&i(),S&&S()}),e)}_||=`text`;let ne=await d[R.findKey(d,_)||`text`](f,e);return!m&&S&&S(),await new Promise((t,n)=>{Jt(t,n,{data:ne,headers:U.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:x})})}catch(t){throw S&&S(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new z(`Network Error`,z.ERR_NETWORK,e,x),{cause:t.cause||t}):z.from(t,t&&t.code,e,x)}}},Sn=new Map,Cn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Sn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:xn(t)),l=c;return c};Cn();var wn={http:null,xhr:ln,fetch:{get:Cn}};R.forEach(wn,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Tn=e=>`- ${e}`,En=e=>R.isFunction(e)||e===null||e===!1;function Dn(e,t){e=R.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!En(r)&&(i=wn[(n=String(r)).toLowerCase()],i===void 0))throw new z(`Unknown adapter '${n}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new z(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : +`+e.map(Tn).join(` +`):` `+Tn(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var On={getAdapter:Dn,adapters:wn};function kn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new W(null,e)}function An(e){return kn(e),e.headers=U.from(e.headers),e.data=Kt.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),On.getAdapter(e.adapter||V.adapter,e)(e).then(function(t){return kn(e),t.data=Kt.call(e,e.transformResponse,t),t.headers=U.from(t.headers),t},function(t){return qt(t)||(kn(e),t&&t.response&&(t.response.data=Kt.call(e,e.transformResponse,t.response),t.response.headers=U.from(t.response.headers))),Promise.reject(t)})}var jn=`1.13.3`,Mn={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Mn[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Nn={};Mn.transitional=function(e,t,n){function r(e,t){return`[Axios v`+jn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new z(r(i,` has been removed`+(t?` in `+t:``)),z.ERR_DEPRECATED);return t&&!Nn[i]&&(Nn[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Mn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Pn(e,t,n){if(typeof e!=`object`)throw new z(`options must be an object`,z.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new z(`option `+a+` must be `+n,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z(`Unknown option `+a,z.ERR_BAD_OPTION)}}var Fn={assertOptions:Pn,validators:Mn},K=Fn.validators,q=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ct,response:new Ct}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=` +`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=G(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Fn.assertOptions(n,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1),r!=null&&(R.isFunction(r)?t.paramsSerializer={serialize:r}:Fn.assertOptions(r,{encode:K.function,serialize:K.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Fn.assertOptions(t,{baseUrl:K.spelling(`baseURL`),withXsrfToken:K.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&R.merge(i.common,i[t.method]);i&&R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=U.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){typeof e.runWhen==`function`&&e.runWhen(t)===!1||(s&&=e.synchronous,o.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[An.bind(this),void 0];e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);let n=t;for(;u<d;)l=l.then(e[u++]).then(e=>{n=e===void 0?n:e}).catch(e[u++]).then(()=>n);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=An.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++]).catch(c[u++]);return l}getUri(e){return e=G(this.defaults,e),St(on(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};R.forEach([`delete`,`get`,`head`,`options`],function(e){q.prototype[e]=function(t,n){return this.request(G(n||{},{method:e,url:t,data:(n||{}).data}))}}),R.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(G(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}q.prototype[e]=t(),q.prototype[e+`Form`]=t(!0)});var In=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new W(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Ln(e){return function(t){return e.apply(null,t)}}function Rn(e){return R.isObject(e)&&e.isAxiosError===!0}var zn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zn).forEach(([e,t])=>{zn[t]=e});function Bn(e){let t=new q(e),n=de(q.prototype.request,t);return R.extend(n,q.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Bn(G(e,t))},n}var J=Bn(V);J.Axios=q,J.CanceledError=W,J.CancelToken=In,J.isCancel=qt,J.VERSION=jn,J.toFormData=_t,J.AxiosError=z,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=Ln,J.isAxiosError=Rn,J.mergeConfig=G,J.AxiosHeaders=U,J.formToJSON=e=>Ft(R.isHTMLForm(e)?new FormData(e):e),J.getAdapter=On.getAdapter,J.HttpStatusCode=zn,J.default=J;var{Axios:Vn,AxiosError:Hn,CanceledError:Un,isCancel:Wn,CancelToken:Gn,VERSION:Kn,all:qn,Cancel:Jn,isAxiosError:Yn,spread:Xn,toFormData:Zn,AxiosHeaders:Qn,HttpStatusCode:$n,formToJSON:er,getAdapter:tr,mergeConfig:nr}=J,Y=new WeakMap,rr=new WeakSet,ir=class e{constructor(){x(this,rr),g(this,Y,new Map)}static getInstance(t={}){return or._||=new e,or._}static resetInstance(){or._&&=null}initialize(e={}){v(Y,this,new Map(Object.entries(e)))}getCpUrl(e){return _(rr,this,ar).call(this,y(Y,this).get(`cpUrl`),e)}getActionUrl(e){return _(rr,this,ar).call(this,y(Y,this).get(`actionUrl`),e)}all(){return y(Y,this)}set(e,t){y(Y,this).set(e,t)}get(e,t=null){return y(Y,this).has(e)?y(Y,this).get(e):t}};function ar(e,t){let n=new URL(e),r=t.startsWith(`/`)?t.slice(1):t;return n.pathname=`${n.pathname}/${r}`,n.toString()}var or={_:null},sr=new WeakMap,cr=new WeakMap,X=new WeakMap,Z=new WeakMap,lr=new WeakMap,ur=new WeakMap,Q=new WeakSet,dr=class e extends EventTarget{constructor(...e){super(...e),x(this,Q),g(this,sr,Math.random().toString(36).slice(2)),this.enabled=!0,g(this,cr,``),this.canAccessQueueManager=!1,this.totalJobs=0,this.jobInfo=[],this.displayedJob=null,this.displayedJobUnchangedCount=1,g(this,X,null),this.isTracking=!1,g(this,Z,null),g(this,lr,null),g(this,ur,ir.getInstance())}static getInstance(){return $._||=new e,$._}static resetInstance(){$._&&=($._.stopTracking(),y(lr,$._)?.close(),null)}initialize(e={}){v(cr,this,e.appId??``),this.canAccessQueueManager=e.canAccessQueueManager??!1,_(Q,this,fr).call(this)}async runQueue(){try{await J.post(y(ur,this).getActionUrl(`queue/run`))}catch(e){console.error(e)}this.startTracking(!1,!0)}startTracking(e=!1,t=!1){if(this.isTracking&&!t)return;y(X,this)&&(clearTimeout(y(X,this)),v(X,this,null));let n=0;e===!0?n=_(Q,this,hr).call(this):typeof e==`number`&&(n=e),n>0?v(X,this,setTimeout(()=>{_(Q,this,gr).call(this)},n)):_(Q,this,gr).call(this)}stopTracking(){this.isTracking=!1,y(X,this)&&(clearTimeout(y(X,this)),v(X,this,null)),y(Z,this)&&(y(Z,this).abort(),v(Z,this,null))}setJobData(e){this.totalJobs=e.length,_(Q,this,_r).call(this,e)}};function fr(){if(typeof BroadcastChannel>`u`||!y(cr,this))return;let e=`CraftCMS:${y(cr,this)}:queue`;v(lr,this,new BroadcastChannel(e)),y(lr,this).addEventListener(`message`,e=>{_(Q,this,pr).call(this,e.data)})}function pr(e){if(e.instanceId!==y(sr,this))switch(e.event){case`beforeTrackJobProgress`:this.stopTracking();break;case`trackJobProgress`:if(e.jobData&&this.setJobData(e.jobData.jobs),this.jobInfo.length>0){let e=_(Q,this,hr).call(this)+1e3;this.startTracking(e)}break}}function mr(e,t){y(lr,this)?.postMessage({event:e,instanceId:y(sr,this),...t})}function hr(){return Math.min(6e4,this.displayedJobUnchangedCount*500)}async function gr(){_(Q,this,mr).call(this,`beforeTrackJobProgress`),this.isTracking=!0,v(Z,this,new AbortController);try{let e=await J.get(y(ur,this).getActionUrl(`queue/get-job-info`),{params:{dontExtendSession:1},signal:y(Z,this).signal});this.setJobData(e.data.jobs),_(Q,this,mr).call(this,`trackJobProgress`,{jobData:e.data}),this.jobInfo.length>0&&this.startTracking(!0,!0)}catch(e){if(e instanceof Error&&e.name===`CanceledError`)return;let t=e;if(t.response?.status===400||t.response?.status===403){this.stopTracking();return}this.startTracking(!0,!0)}finally{this.isTracking=!1,v(Z,this,null)}}function _r(e){let t=this.displayedJob;this.jobInfo=e,this.displayedJob=_(Q,this,vr).call(this),t&&this.displayedJob&&t.id===this.displayedJob.id&&t.progress===this.displayedJob.progress&&t.progressLabel===this.displayedJob.progressLabel&&t.status===this.displayedJob.status?this.displayedJobUnchangedCount++:this.displayedJobUnchangedCount=1,_(Q,this,yr).call(this),this.displayedJob?.status.value===b.Failed&&_(Q,this,xr).call(this,this.displayedJob),this.jobInfo.length===0&&t&&_(Q,this,br).call(this)}function vr(){if(this.jobInfo?.length===0)return null;let e=[b.Reserved,b.Failed,b.Pending];for(let t of e){let e=this.jobInfo.find(e=>e.status.value===t?!(t===b.Pending&&e.delay>0):!1);if(e)return e}return null}function yr(){let e={totalJobs:this.totalJobs,jobInfo:this.jobInfo,displayedJob:this.displayedJob};this.dispatchEvent(new CustomEvent(`job-update`,{detail:e}))}function br(){this.dispatchEvent(new CustomEvent(`job-complete`))}function xr(e){let t={job:e};this.dispatchEvent(new CustomEvent(`job-failed`,{detail:t}))}var $={_:null};export{nr as a,te as c,_ as d,v as f,m as g,f as h,Wn as i,ee as l,d as m,ir as n,J as o,g as p,Yn as r,x as s,dr as t,y as u}; \ No newline at end of file diff --git a/resources/build/SettingsIndexPage.js b/resources/build/SettingsIndexPage.js index 0f414e9c627..45d3d6a2a5f 100644 --- a/resources/build/SettingsIndexPage.js +++ b/resources/build/SettingsIndexPage.js @@ -1 +1 @@ -import"./Queue-wGK97jCw.js";import{$ as e,E as t,J as n,L as r,S as i,b as a,h as o,lt as s,t as c,w as l,x as u,y as d,z as f}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as p}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import"./useAnnouncer.js";import"./dist.js";import{t as m}from"./AppLayout.js";import{t as h}from"./CalloutReadOnly.js";var g={class:`py-3`},_={class:`grid gap-6`},v=[`id`],y=[`aria-labelledby`],b={class:`settings-grid`},x=[`href`],S={class:`settings-content`},C={class:`settings-icon`},w=[`name`,`label`],T=c(t({__name:`SettingsIndexPage`,props:{readOnly:{type:Boolean},settings:{}},setup(t){return(c,T)=>(r(),a(m,{title:s(p)(`Settings`)},{default:n(()=>[d(`div`,g,[t.readOnly?(r(),a(h,{key:0})):u(``,!0),d(`div`,_,[(r(!0),i(o,null,f(t.settings,(t,n,a)=>(r(),i(`div`,{key:n},[d(`h2`,{id:`category-heading-${a}`,class:`mb-2 text-lg leading-tight`},e(n),9,v),d(`nav`,{"aria-labelledby":`category-heading-${a}`},[d(`ul`,b,[(r(!0),i(o,null,f(t,(t,n)=>(r(),i(`li`,null,[d(`a`,{href:t.url||`settings/${n}`,class:`settings-item`},[d(`div`,S,[d(`div`,C,[d(`craft-icon`,{name:t.icon,style:{"font-size":`calc(40rem / 16)`},label:`${t.label} - ${s(p)(`Settings`)}`},null,8,w)]),l(` `+e(t.label),1)])],8,x)]))),256))])],8,y)]))),128))])])]),_:1},8,[`title`]))}}),[[`__scopeId`,`data-v-293147d8`]]);export{T as default}; \ No newline at end of file +import"./Queue-wGK97jCw.js";import{$ as e,E as t,J as n,L as r,S as i,b as a,h as o,lt as s,t as c,w as l,x as u,y as d,z as f}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as p}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import"./useAnnouncer.js";import"./dist.js";import{t as m}from"./AppLayout.js";import{t as h}from"./CalloutReadOnly.js";var g={class:`py-3`},_={class:`grid gap-6`},v=[`id`],y=[`aria-labelledby`],b={class:`settings-grid`},x=[`href`],S={class:`settings-content`},C={class:`settings-icon`},w=[`name`],T={class:`sr-only`},E=c(t({__name:`SettingsIndexPage`,props:{readOnly:{type:Boolean},settings:{}},setup(t){return(c,E)=>(r(),a(m,{title:s(p)(`Settings`)},{default:n(()=>[d(`div`,g,[t.readOnly?(r(),a(h,{key:0})):u(``,!0),d(`div`,_,[(r(!0),i(o,null,f(t.settings,(t,n,a)=>(r(),i(`div`,{key:n},[d(`h2`,{id:`category-heading-${a}`,class:`mb-2 text-lg leading-tight`},e(n),9,v),d(`nav`,{"aria-labelledby":`category-heading-${a}`},[d(`ul`,b,[(r(!0),i(o,null,f(t,(t,n)=>(r(),i(`li`,null,[d(`a`,{href:t.url||`settings/${n}`,class:`settings-item`},[d(`div`,S,[d(`div`,C,[d(`craft-icon`,{name:t.icon,style:{"font-size":`calc(40rem / 16)`}},null,8,w)]),l(` `+e(t.label),1),d(`span`,T,` - `+e(s(p)(`Settings`)),1)])],8,x)]))),256))])],8,y)]))),128))])])]),_:1},8,[`title`]))}}),[[`__scopeId`,`data-v-9b86a81f`]]);export{E as default}; \ No newline at end of file diff --git a/resources/build/SettingsSectionsEditPage.js b/resources/build/SettingsSectionsEditPage.js index 6d401b605da..75d31f6622b 100644 --- a/resources/build/SettingsSectionsEditPage.js +++ b/resources/build/SettingsSectionsEditPage.js @@ -1 +1 @@ -import"./Queue-wGK97jCw.js";import{$ as e,B as t,E as n,J as r,L as i,N as a,S as o,T as s,U as c,b as l,c as u,h as d,it as f,k as p,lt as m,m as h,mt as g,pt as ee,s as te,t as _,v,w as y,x as b,y as x,z as S}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as C}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import{a as w,i as ne,n as T,r as E,t as D}from"./AdminTable.js";import{t as O}from"./Pane.js";import{n as re}from"./useAnnouncer.js";import{n as k}from"./dist.js";import{n as A,r as ie,t as j}from"./wayfinder.js";import"./InputCombobox.js";import{t as ae}from"./AppLayout.js";import{t as oe}from"./CalloutReadOnly.js";import{n as se,t as M}from"./useEditableTable.js";import{a as ce}from"./SectionsController.js";import{t as N}from"./useInputGenerator.js";var le=[`.modelValue`],P=n({name:`CraftInput`,inheritAttrs:!1,__name:`CraftInput`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=c(e,`modelValue`);return(e,r)=>(i(),o(`craft-input`,a(e.$attrs,{".modelValue":n.value,onModelValueChanged:r[0]||=e=>n.value=e.target?.modelValue}),[t(e.$slots,`default`)],48,le))}}),F=[`.modelValue`],I=n({name:`CraftInputHandle`,inheritAttrs:!1,__name:`CraftInputHandle`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=c(e,`modelValue`);return(e,r)=>(i(),o(`craft-input-handle`,a(e.$attrs,{".modelValue":n.value,onModelValueChanged:r[0]||=e=>n.value=e.target?.modelValue}),[t(e.$slots,`default`)],48,F))}}),L={type:`button`,slot:`invoker`,icon:``,size:`small`,variant:`inherit`,appearance:`plain`},R=[`name`,`label`],z={slot:`content`,class:`m-sm`},B=[`onClick`],V=[`onClick`],H=_(n({__name:`ActionMenu`,props:{icon:{default:`ellipsis`},label:{default:C(`Actions`)},actions:{}},setup(t){let n=t,r=v(()=>n.actions.filter(e=>e.variant&&e.variant===`danger`)),s=v(()=>n.actions.filter(e=>!e.variant||e.variant!==`danger`));return(n,c)=>(i(),o(`craft-action-menu`,null,[x(`craft-button`,L,[x(`craft-icon`,{name:t.icon,label:t.label},null,8,R)]),x(`div`,z,[(i(!0),o(d,null,S(s.value,(t,n)=>(i(),o(`craft-action-item`,a({key:`safe-${n}`,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,B))),128)),c[0]||=x(`hr`,{class:`m-0`},null,-1),(i(!0),o(d,null,S(r.value,(t,n)=>(i(),o(`craft-action-item`,a({key:`dangerous-${n}`,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,V))),128))])]))}}),[[`__scopeId`,`data-v-3697a5e3`]]),U=e=>({url:U.url(e),method:`get`});U.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/table-data`},U.url=e=>U.definition.url+A(e),U.get=e=>({url:U.url(e),method:`get`}),U.head=e=>({url:U.url(e),method:`head`});var W=(e,t)=>({url:W.url(e,t),method:`get`});W.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/edit/{entryType?}`},W.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=j(e),ie(e,[`entryType`]);let n={entryType:typeof e?.entryType==`object`?e.entryType.id:e?.entryType};return W.definition.url.replace(`{entryType?}`,n.entryType?.toString()??``).replace(/\/+$/,``)+A(t)},W.get=(e,t)=>({url:W.url(e,t),method:`get`}),W.head=(e,t)=>({url:W.url(e,t),method:`head`});var G=(e,t)=>({url:G.url(e,t),method:`get`});G.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/{entryType}`},G.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=j(e);let n={entryType:typeof e.entryType==`object`?e.entryType.id:e.entryType};return G.definition.url.replace(`{entryType}`,n.entryType.toString()).replace(/\/+$/,``)+A(t)},G.get=(e,t)=>({url:G.url(e,t),method:`get`}),G.head=(e,t)=>({url:G.url(e,t),method:`head`});var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/new`},K.url=e=>K.definition.url+A(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/new`},q.url=e=>q.definition.url+A(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var ue={"/admin/actions/entry-types/new":K,"/admin/settings/entry-types/new":q},J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/entry-types/save`},J.url=e=>J.definition.url+A(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/entry-types/delete`},Y.url=e=>Y.definition.url+A(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/entry-types/render-override-settings`},X.url=e=>X.definition.url+A(e),X.post=e=>({url:X.url(e),method:`post`});var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/admin/actions/entry-types/apply-override-settings`},Z.url=e=>Z.definition.url+A(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types`},Q.url=e=>Q.definition.url+A(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var de=[`icon`,`data-color`],fe=[`data-id`],pe={class:`font-bold`},me={slot:`suffix`,class:`flex gap-1 items-center`},he={class:`flex gap-2 mt-3 items-center`},ge={key:0},_e={type:`button`,slot:`invoker`,appearance:`filled`},ve={slot:`content`},ye={class:`p-2`},be={key:0,class:`p-2`},xe=[`onClick`,`icon`,`checked`,`data-color`],Se=[`href`],Ce=_(n({__name:`EntryTypeSelect`,props:{modelValue:{},types:{},actions:{}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,c=t,l=v(()=>c.modelValue.map(e=>c.types?.find(t=>t.id===e)??null).filter(Boolean)),u=f(``),p=v(()=>c.types?.filter(e=>e.name.includes(u.value)||e.handle.includes(u.value)));function h(e){let t=[...c.modelValue];t.includes(e.id)?t.splice(t.indexOf(e.id),1):t.push(e.id),a(`update:modelValue`,t)}function g(e){let t=[...c.modelValue];t.includes(e)&&t.splice(t.indexOf(e),1),a(`update:modelValue`,t)}return(n,a)=>(i(),o(d,null,[x(`div`,null,[(i(!0),o(d,null,S(l.value,t=>(i(),o(d,null,[t?(i(),o(`craft-chip`,{key:0,icon:t.icon,"data-color":t.color?.value??`white`},[x(`div`,{"data-id":t.id},[x(`div`,pe,e(t.name),1),x(`code`,null,e(t.handle),1)],8,fe),x(`div`,me,[s(H,{actions:[{label:m(C)(`Settings`),icon:`gear`},{label:m(C)(`Remove`),variant:`danger`,icon:`x`,onClick:()=>g(t.id)}]},null,8,[`actions`]),s(ne,{variant:`inherit`})])],8,de)):b(``,!0)],64))),256))]),x(`div`,he,[t.types?.length?(i(),o(`craft-action-menu`,ge,[x(`craft-button`,_e,[a[1]||=x(`craft-icon`,{name:`chevron-down`,slot:`prefix`},null,-1),y(` `+e(m(C)(`Choose`)),1)]),x(`div`,ve,[x(`div`,ye,[s(P,{label:m(C)(`Search`),modelValue:u.value,"onUpdate:modelValue":a[0]||=e=>u.value=e,"label-sr-only":``},{default:r(()=>[...a[2]||=[x(`craft-icon`,{name:`search`,slot:`prefix`},null,-1)]]),_:1},8,[`label`,`modelValue`])]),a[3]||=x(`hr`,{class:`m-0`},null,-1),p.value.length<1?(i(),o(`div`,be,[s(T,{template:`No entry types match “{query}”`,params:{query:u.value}},null,8,[`params`])])):(i(!0),o(d,{key:1},S(p.value,n=>(i(),o(`craft-action-item`,{key:n.id,onClick:e=>h(n),type:`checkbox`,icon:n.icon??`empty`,checked:t.modelValue.includes(n.id),"data-color":n.color?.value??`white`},[x(`div`,null,[y(e(n.name)+` `,1),x(`pre`,null,e(n.handle),1)])],8,xe))),128))])])):b(``,!0),x(`a`,{href:m(ue)[`/admin/settings/entry-types/new`]().url,class:``},[a[4]||=x(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),y(` `+e(m(C)(`Create`)),1)],8,Se)])],64))}}),[[`__scopeId`,`data-v-69cf6612`]]),we=n({__name:`SiteSettingsTable`,props:{modelValue:{},selectedType:{},isMultisite:{type:Boolean,default:!1},isHeadless:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t,a=e,o=u(),c=v(()=>o.props.homepageUri),d=v(()=>o.props.templateOptions),f=v(()=>({name:!0,enabled:a.isMultisite,singleHomepage:a.selectedType===`single`,singleUri:a.selectedType===`single`,uriFormat:a.selectedType!==`single`,template:!a.isHeadless,enabledByDefault:a.selectedType!==`single`})),{table:h}=M({data:()=>a.modelValue,key:`handle`,name:`sites`,columnVisibility:()=>f.value,onChange:e=>n(`update:modelValue`,e),columns:({columnHelper:e})=>[e.accessor(`name`,{header:C(`Site`),cell:({getValue:e})=>e(),meta:{cellTag:`th`}}),e.lightswitch(`enabled`,{header:C(`Enabled`),size:80,meta:{cellClass:`bg-[var(--c-color-neutral-fill-quiet)]`},label:C(`Enabled`)}),e.checkbox(`singleHomepage`,{header:()=>p(`craft-icon`,{name:`home`,label:C(`Homepage`)}),size:44,meta:{cellClass:`text-center`,headerClass:`justify-center`},onChange:(e,{row:t})=>{if(e){let e={...a.modelValue};e[t.original.handle].singleUri=c.value??``,n(`update:modelValue`,e)}else{let e={...a.modelValue};e[t.original.handle].singleUri=``,n(`update:modelValue`,e)}},disabled:e=>!e.original.enabled}),e.text(`singleUri`,{header:C(`URI`),class:`font-mono text-xs`,placeholder:C(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled||e.original.singleHomepage,meta:{headerTip:C(`What the entry URI should be for the site. Leave blank if the entry doesn’t have a URL.`)}}),e.text(`uriFormat`,{header:C(`Entry URI Format`),class:`font-mono text-xs`,placeholder:C(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled,meta:{headerTip:C(`What entry URIs should look like for the site. Leave blank if entries don’t have URLs.`)}}),e.autocomplete(`template`,{header:C(`Template`),class:`font-mono text-xs !px-[var(--_cell-spacing)]`,options:d.value,disabled:e=>!e.original.enabled,meta:{headerTip:C(`Which template should be loaded when an entry’s URL is requested.`)}}),e.lightswitch(`enabledByDefault`,{header:C(`Default Status`),size:40,disabled:e=>!e.original.enabled})]});return(e,t)=>(i(),l(O,{padding:0,appearance:`raised`},{default:r(()=>[s(D,{table:m(h),spacing:m(w).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}))}}),Te=[`name`,`label`],Ee=n({__name:`DeleteButton`,props:{label:{default:C(`Delete item`)},icon:{default:`x`}},emits:[`click`],setup(e,{emit:t}){let n=t;return(t,r)=>(i(),o(`craft-button`,a({type:`button`,onClick:r[0]||=e=>n(`click`),size:`small`,appearance:`plain`,variant:`danger`},t.$attrs),[x(`craft-icon`,{name:e.icon,label:e.label},null,8,Te)],16))}}),De={key:0,class:`border border-dashed border-neutral-border-quiet rounded-bl-md rounded-br-md border-t-0 p-1 pt-2 -mt-1`},Oe=n({__name:`PreviewTargetsTable`,props:{modelValue:{},name:{default:`previewTargets`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,c=t,{table:l}=M({data:()=>c.modelValue,name:c.name,onChange:e=>a(`update:modelValue`,e),columns:({columnHelper:e})=>[e.text(`label`,{header:C(`Label`),disabled:()=>c.disabled}),e.text(`urlFormat`,{header:C(`URL Format`),class:`font-mono text-xs`,disabled:()=>c.disabled}),e.lightswitch(`refresh`,{header:C(`Auto-Refresh`),disabled:()=>c.disabled}),e.display({id:`actions`,header:C(`Actions`),meta:{headerSrOnly:!0},cell:({row:e})=>p(`div`,{class:`flex justify-end gap-2`},[p(Ee,{disabled:c.disabled,onClick:()=>{let t=[...c.modelValue];t.splice(e.index,1),a(`update:modelValue`,t)}})])})]});function u(){a(`update:modelValue`,[...c.modelValue,{label:``,urlFormat:``,refresh:!0}])}return(n,a)=>(i(),o(d,null,[s(O,{padding:0,appearance:`raised`},{default:r(()=>[s(D,{table:m(l),spacing:m(w).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}),t.disabled?b(``,!0):(i(),o(`div`,De,[x(`craft-button`,{type:`button`,size:`small`,onClick:u,class:`w-full`,appearance:`plain`},e(m(C)(`Add a target`)),1)]))],64))}}),ke={key:0,class:`flex gap-1 items-center text-sm`},Ae={key:1,class:`flex gap-1 items-center text-sm`},je={key:0},Me=[`loading`],Ne={slot:`content`},Pe={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},Fe={class:`grid gap-3 p-5`},Ie={key:0,variant:`danger`,icon:`triangle-exclamation`},Le={slot:`title`,class:`font-bold`},Re=[`value`],ze={slot:`feedback`},Be={key:0,class:`error-list`},Ve={slot:`feedback`},He={key:0,class:`error-list`},Ue={slot:`input`},We=[`value`],Ge={key:0,slot:`after`},Ke={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},qe={slot:`feedback`},Je={key:0,class:`error-list`},Ye={class:`grid gap-3 p-5`},Xe={class:`font-bold text-sm`},Ze={class:`text-sm text-neutral-500 mb-2`},Qe={class:`grid gap-6 p-5`},$e={class:`font-bold text-sm`},et={class:`text-sm text-neutral-500 mb-2`},tt={slot:`input`},$=[`value`],nt={key:0,slot:`after`},rt={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},it={class:`grid gap-3 p-5`},at={slot:`feedback`},ot={key:0,class:`error-list`},st={slot:`input`},ct=[`value`],lt={class:`grid gap-3 p-5`},ut={class:`font-bold text-sm`},dt={class:`text-sm text-neutral-500 mb-2`},ft={class:`grid gap-3 p-5`},pt={slot:`feedback`},mt={key:0,class:`error-list`},ht=n({__name:`SettingsSectionsEditPage`,props:{title:{},crumbs:{},section:{},brandNew:{type:Boolean},typeOptions:{},entryTypes:{},propagationOptions:{},placementOptions:{},siteSettings:{},isMultiSite:{type:Boolean},headlessMode:{type:Boolean},readOnly:{type:Boolean},flash:{},errors:{}},setup(t){let n=t,a=te({sectionId:n.section.id,name:n.section.name??``,handle:n.section.handle??``,type:n.section.type,entryTypes:n.section.entryTypes?.map(e=>e.id)??[],enableVersioning:n.section.enableVersioning,maxAuthors:n.section.maxAuthors??1,maxLevels:n.section.maxLevels??``,propagationMethod:n.section.propagationMethod,defaultPlacement:n.section.defaultPlacement,previewTargets:n.section.previewTargets??[],sites:Object.fromEntries(n.siteSettings.map(e=>[e.handle,{enabled:e.enabled,siteId:e.siteId??null,name:e.name??``,singleHomepage:!1,singleUri:e.uriFormat??``,uriFormat:e.uriFormat??``,template:e.template??``,enabledByDefault:e.enabledByDefault}]))}),c=v(()=>a.type===`structure`),u=v(()=>a.type===`channel`||a.type===`structure`),f=N(()=>a.name,e=>a.handle=g(e)),p=N(()=>a.name,e=>{if(!a.sites)return;let t=ee(e);a.sites=Object.fromEntries(Object.entries(a.sites).map(([e,n])=>[e,{...n,singleUri:t&&!n.singleHomepage?`${t}`:n.singleUri,uriFormat:t?`${t}/{slug}`:``,template:t?`${t}/_entry.twig`:``}]))});n.brandNew||(f.stop(),p.stop()),k(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),_())});function _(){a.clearErrors().submit(ce())}return(n,p)=>(i(),o(`form`,{onSubmit:h(_,[`prevent`])},[s(ae,{title:t.title,debug:{form:m(a),$props:n.$props}},{actions:r(()=>[s(re,null,{default:r(()=>[m(a).recentlySuccessful&&t.flash?.success?(i(),o(`div`,ke,[p[12]||=x(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),y(` `+e(t.flash.success),1)])):b(``,!0),m(a).hasErrors?(i(),o(`div`,Ae,[p[13]||=x(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),y(` `+e(m(C)(`Could not save settings`)),1)])):b(``,!0)]),_:1}),t.readOnly?b(``,!0):(i(),o(`craft-button-group`,je,[x(`craft-button`,{type:`submit`,variant:`primary`,loading:m(a).processing},e(m(C)(`Save`)),9,Me),x(`craft-action-menu`,null,[p[15]||=x(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[x(`craft-icon`,{name:`chevron-down`})],-1),x(`div`,Ne,[x(`craft-action-item`,{onClick:_},[y(e(m(C)(`Save and continue editing`))+` `,1),p[14]||=x(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:r(()=>[x(`div`,Pe,[t.readOnly?(i(),l(oe,{key:0})):b(``,!0),x(`div`,Fe,[m(a).hasErrors?(i(),o(`craft-callout`,Ie,[x(`div`,Le,e(m(C)(`Could not save settings`)),1),x(`ul`,null,[(i(!0),o(d,null,S(m(a).errors,(t,n)=>(i(),o(`li`,{key:n},e(t),1))),128))])])):b(``,!0),t.section.id?(i(),o(`input`,{key:1,type:`hidden`,name:`sectionId`,value:t.section.id},null,8,Re)):b(``,!0),s(P,{label:m(C)(`Name`),"help-text":m(C)(`What this section will be called in the control panel.`),id:`name`,name:`name`,modelValue:m(a).name,"onUpdate:modelValue":p[0]||=e=>m(a).name=e,disabled:t.readOnly,"has-feedback-for":m(a).errors?.name?`error`:``,required:``,autofocus:``},{default:r(()=>[x(`div`,ze,[m(a).errors?.name?(i(),o(`ul`,Be,[x(`li`,null,e(m(a).errors.name),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),s(I,{label:m(C)(`Handle`),"help-text":m(C)(`How you'll refer to this section in the templates.`),id:`handle`,name:`handle`,modelValue:m(a).handle,"onUpdate:modelValue":p[1]||=e=>m(a).handle=e,disabled:t.readOnly,"has-feedback-for":m(a).errors?.handle?`error`:``,required:``,onChange:p[2]||=e=>m(f).markDirty()},{default:r(()=>[x(`div`,Ve,[m(a).errors?.handle?(i(),o(`ul`,He,[x(`li`,null,e(m(a).errors.handle),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),s(se,{label:m(C)(`Enable versioning for entries in this section`),id:`enableVersioning`,name:`enableVersioning`,disabled:t.readOnly,modelValue:m(a).enableVersioning,"onUpdate:modelValue":p[3]||=e=>m(a).enableVersioning=e},null,8,[`label`,`disabled`,`modelValue`]),s(E,{label:m(C)(`Section Type`),"help-text":m(C)(`What type of section is this?`),id:`type`,name:`type`,modelValue:m(a).type,"onUpdate:modelValue":p[4]||=e=>m(a).type=e,disabled:t.readOnly,"has-feedback-for":m(a).errors?.type?`error`:``},{default:r(()=>[x(`select`,Ue,[(i(!0),o(d,null,S(t.typeOptions,t=>(i(),o(`option`,{key:t.value,value:t.value},e(t.label),9,We))),128))]),t.section.id&&m(a).type!==`single`?(i(),o(`div`,Ge,[x(`craft-callout`,Ke,e(m(C)(`Changing this may result in data loss.`)),1)])):b(``,!0),x(`div`,qe,[m(a).errors?.type?(i(),o(`ul`,Je,[x(`li`,null,e(m(a).errors.type),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])]),p[17]||=x(`hr`,null,null,-1),x(`div`,Ye,[x(`div`,null,[x(`h3`,Xe,e(m(C)(`Entry Types`)),1),x(`p`,Ze,e(m(C)(`Choose the types of entries that can be included in this section.`)),1),s(Ce,{types:t.entryTypes,modelValue:m(a).entryTypes,"onUpdate:modelValue":p[5]||=e=>m(a).entryTypes=e},null,8,[`types`,`modelValue`])])]),p[18]||=x(`hr`,null,null,-1),x(`div`,Qe,[x(`div`,null,[x(`h3`,$e,e(m(C)(`Site settings`)),1),x(`p`,et,e(m(C)(`Choose which sites this section should be available in, and configure the site-specific settings.`)),1),s(we,{"is-multisite":t.isMultiSite,"is-headless":t.headlessMode,"selected-type":m(a).type,modelValue:m(a).sites,"onUpdate:modelValue":p[6]||=e=>m(a).sites=e},null,8,[`is-multisite`,`is-headless`,`selected-type`,`modelValue`])]),t.isMultiSite&&u.value?(i(),l(E,{key:0,label:m(C)(`Propagation Method`),"help-text":m(C)(`Of the enabled sites above, which sites should entries in this section be saved to?`),id:`propagationMethod`,name:`propagationMethod`,modelValue:m(a).propagationMethod,"onUpdate:modelValue":p[7]||=e=>m(a).propagationMethod=e,disabled:t.readOnly},{default:r(()=>[x(`select`,tt,[(i(!0),o(d,null,S(t.propagationOptions,t=>(i(),o(`option`,{key:t.value,value:t.value},e(t.label),9,$))),128))]),t.section.id&&t.section.propagationMethod!==`none`&&t.siteSettings.length>1?(i(),o(`div`,nt,[x(`craft-callout`,rt,e(m(C)(`Changing this may result in data loss.`)),1)])):b(``,!0)]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])):b(``,!0)]),c.value?(i(),o(d,{key:1},[p[16]||=x(`hr`,null,null,-1),x(`div`,it,[s(P,{label:m(C)(`Max Levels`),"help-text":m(C)(`The maximum number of levels this section can have.`),id:`maxLevels`,name:`maxLevels`,modelValue:m(a).maxLevels,"onUpdate:modelValue":p[8]||=e=>m(a).maxLevels=e,disabled:t.readOnly,inputmode:`numeric`,size:`5`,"has-feedback-for":m(a).errors?.maxLevels?`error`:``},{default:r(()=>[x(`div`,at,[m(a).errors?.maxLevels?(i(),o(`ul`,ot,[x(`li`,null,e(m(a).errors.maxLevels),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),s(E,{label:m(C)(`Default {type} Placement`,{type:m(C)(`Entry`)}),"help-text":m(C)(`Where new {type} should be placed by default in the structure.`,{type:m(C)(`entries`)}),id:`defaultPlacement`,name:`defaultPlacement`,modelValue:m(a).defaultPlacement,"onUpdate:modelValue":p[9]||=e=>m(a).defaultPlacement=e,disabled:t.readOnly},{default:r(()=>[x(`select`,st,[(i(!0),o(d,null,S(t.placementOptions,t=>(i(),o(`option`,{key:t.value,value:t.value},e(t.label),9,ct))),128))])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])])],64)):b(``,!0),p[19]||=x(`hr`,null,null,-1),x(`div`,lt,[x(`div`,null,[x(`h3`,ut,e(m(C)(`Preview Targets`)),1),x(`p`,dt,e(m(C)(`Locations that should be available for previewing entries in this section.`)),1),s(Oe,{modelValue:m(a).previewTargets,"onUpdate:modelValue":p[10]||=e=>m(a).previewTargets=e,disabled:t.readOnly},null,8,[`modelValue`,`disabled`])])]),p[20]||=x(`hr`,null,null,-1),x(`div`,ft,[s(P,{label:m(C)(`Max Authors`),"help-text":m(C)(`The maximum number of authors that entries in this section can have.`),id:`maxAuthors`,name:`maxAuthors`,modelValue:m(a).maxAuthors,"onUpdate:modelValue":p[11]||=e=>m(a).maxAuthors=e,disabled:t.readOnly,inputmode:`numeric`,maxlength:`5`,"has-feedback-for":m(a).errors?.maxAuthors?`error`:``},{default:r(()=>[x(`div`,pt,[m(a).errors?.maxAuthors?(i(),o(`ul`,mt,[x(`li`,null,e(m(a).errors.maxAuthors),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])])])]),_:1},8,[`title`,`debug`])],32))}});export{ht as default}; \ No newline at end of file +import"./Queue-wGK97jCw.js";import{$ as e,B as t,E as n,J as r,L as i,N as a,S as o,T as s,U as c,b as l,c as u,ft as d,h as f,it as p,k as m,lt as h,m as g,pt as ee,s as te,t as _,v,w as y,x as b,y as x,z as S}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as C}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import{a as w,i as ne,n as T,r as E,t as D}from"./AdminTable.js";import{t as O}from"./Pane.js";import{n as re}from"./useAnnouncer.js";import{n as k}from"./dist.js";import{n as A,r as ie,t as j}from"./wayfinder.js";import"./InputCombobox.js";import{t as ae}from"./AppLayout.js";import{t as oe}from"./CalloutReadOnly.js";import{n as se,t as M}from"./useEditableTable.js";import{a as ce}from"./SectionsController.js";import{t as N}from"./useInputGenerator.js";var le=[`.modelValue`],P=n({name:`CraftInput`,inheritAttrs:!1,__name:`CraftInput`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=c(e,`modelValue`);return(e,r)=>(i(),o(`craft-input`,a(e.$attrs,{".modelValue":n.value,onModelValueChanged:r[0]||=e=>n.value=e.target?.modelValue}),[t(e.$slots,`default`)],48,le))}}),F=[`.modelValue`],I=n({name:`CraftInputHandle`,inheritAttrs:!1,__name:`CraftInputHandle`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=c(e,`modelValue`);return(e,r)=>(i(),o(`craft-input-handle`,a(e.$attrs,{".modelValue":n.value,onModelValueChanged:r[0]||=e=>n.value=e.target?.modelValue}),[t(e.$slots,`default`)],48,F))}}),L={type:`button`,slot:`invoker`,icon:``,size:`small`,variant:`inherit`,appearance:`plain`},R=[`name`,`label`],z={slot:`content`,class:`m-sm`},B=[`onClick`],V=[`onClick`],H=_(n({__name:`ActionMenu`,props:{icon:{default:`ellipsis`},label:{default:C(`Actions`)},actions:{}},setup(t){let n=t,r=v(()=>n.actions.filter(e=>e.variant&&e.variant===`danger`)),s=v(()=>n.actions.filter(e=>!e.variant||e.variant!==`danger`));return(n,c)=>(i(),o(`craft-action-menu`,null,[x(`craft-button`,L,[x(`craft-icon`,{name:t.icon,label:t.label},null,8,R)]),x(`div`,z,[(i(!0),o(f,null,S(s.value,(t,n)=>(i(),o(`craft-action-item`,a({key:`safe-${n}`,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,B))),128)),c[0]||=x(`hr`,{class:`m-0`},null,-1),(i(!0),o(f,null,S(r.value,(t,n)=>(i(),o(`craft-action-item`,a({key:`dangerous-${n}`,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,V))),128))])]))}}),[[`__scopeId`,`data-v-3697a5e3`]]),U=e=>({url:U.url(e),method:`get`});U.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/table-data`},U.url=e=>U.definition.url+A(e),U.get=e=>({url:U.url(e),method:`get`}),U.head=e=>({url:U.url(e),method:`head`});var W=(e,t)=>({url:W.url(e,t),method:`get`});W.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/edit/{entryType?}`},W.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=j(e),ie(e,[`entryType`]);let n={entryType:typeof e?.entryType==`object`?e.entryType.id:e?.entryType};return W.definition.url.replace(`{entryType?}`,n.entryType?.toString()??``).replace(/\/+$/,``)+A(t)},W.get=(e,t)=>({url:W.url(e,t),method:`get`}),W.head=(e,t)=>({url:W.url(e,t),method:`head`});var G=(e,t)=>({url:G.url(e,t),method:`get`});G.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/{entryType}`},G.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=j(e);let n={entryType:typeof e.entryType==`object`?e.entryType.id:e.entryType};return G.definition.url.replace(`{entryType}`,n.entryType.toString()).replace(/\/+$/,``)+A(t)},G.get=(e,t)=>({url:G.url(e,t),method:`get`}),G.head=(e,t)=>({url:G.url(e,t),method:`head`});var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/new`},K.url=e=>K.definition.url+A(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/new`},q.url=e=>q.definition.url+A(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var ue={"/admin/actions/entry-types/new":K,"/admin/settings/entry-types/new":q},J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/entry-types/save`},J.url=e=>J.definition.url+A(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/entry-types/delete`},Y.url=e=>Y.definition.url+A(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/entry-types/render-override-settings`},X.url=e=>X.definition.url+A(e),X.post=e=>({url:X.url(e),method:`post`});var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/admin/actions/entry-types/apply-override-settings`},Z.url=e=>Z.definition.url+A(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types`},Q.url=e=>Q.definition.url+A(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var de=[`icon`,`data-color`],fe=[`data-id`],pe={class:`font-bold`},me={slot:`suffix`,class:`flex gap-1 items-center`},he={class:`flex gap-2 mt-3 items-center`},ge={key:0},_e={type:`button`,slot:`invoker`,appearance:`filled`},ve={slot:`content`},ye={class:`p-2`},be={key:0,class:`p-2`},xe=[`onClick`,`icon`,`checked`,`data-color`],Se=[`href`],Ce=_(n({__name:`EntryTypeSelect`,props:{modelValue:{},types:{},actions:{}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,c=t,l=v(()=>c.modelValue.map(e=>c.types?.find(t=>t.id===e)??null).filter(Boolean)),u=p(``),d=v(()=>c.types?.filter(e=>e.name.includes(u.value)||e.handle.includes(u.value)));function m(e){let t=[...c.modelValue];t.includes(e.id)?t.splice(t.indexOf(e.id),1):t.push(e.id),a(`update:modelValue`,t)}function g(e){let t=[...c.modelValue];t.includes(e)&&t.splice(t.indexOf(e),1),a(`update:modelValue`,t)}return(n,a)=>(i(),o(f,null,[x(`div`,null,[(i(!0),o(f,null,S(l.value,t=>(i(),o(f,null,[t?(i(),o(`craft-chip`,{key:0,icon:t.icon,"data-color":t.color?.value??`white`},[x(`div`,{"data-id":t.id},[x(`div`,pe,e(t.name),1),x(`code`,null,e(t.handle),1)],8,fe),x(`div`,me,[s(H,{actions:[{label:h(C)(`Settings`),icon:`gear`},{label:h(C)(`Remove`),variant:`danger`,icon:`x`,onClick:()=>g(t.id)}]},null,8,[`actions`]),s(ne,{variant:`inherit`})])],8,de)):b(``,!0)],64))),256))]),x(`div`,he,[t.types?.length?(i(),o(`craft-action-menu`,ge,[x(`craft-button`,_e,[a[1]||=x(`craft-icon`,{name:`chevron-down`,slot:`prefix`},null,-1),y(` `+e(h(C)(`Choose`)),1)]),x(`div`,ve,[x(`div`,ye,[s(P,{label:h(C)(`Search`),modelValue:u.value,"onUpdate:modelValue":a[0]||=e=>u.value=e,"label-sr-only":``},{default:r(()=>[...a[2]||=[x(`craft-icon`,{name:`search`,slot:`prefix`},null,-1)]]),_:1},8,[`label`,`modelValue`])]),a[3]||=x(`hr`,{class:`m-0`},null,-1),d.value.length<1?(i(),o(`div`,be,[s(T,{template:`No entry types match “{query}”`,params:{query:u.value}},null,8,[`params`])])):(i(!0),o(f,{key:1},S(d.value,n=>(i(),o(`craft-action-item`,{key:n.id,onClick:e=>m(n),type:`checkbox`,icon:n.icon??`empty`,checked:t.modelValue.includes(n.id),"data-color":n.color?.value??`white`},[x(`div`,null,[y(e(n.name)+` `,1),x(`pre`,null,e(n.handle),1)])],8,xe))),128))])])):b(``,!0),x(`a`,{href:h(ue)[`/admin/settings/entry-types/new`]().url,class:``},[a[4]||=x(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),y(` `+e(h(C)(`Create`)),1)],8,Se)])],64))}}),[[`__scopeId`,`data-v-69cf6612`]]),we=n({__name:`SiteSettingsTable`,props:{modelValue:{},selectedType:{},isMultisite:{type:Boolean,default:!1},isHeadless:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t,a=e,o=u(),c=v(()=>o.props.homepageUri),d=v(()=>o.props.templateOptions),f=v(()=>({name:!0,enabled:a.isMultisite,singleHomepage:a.selectedType===`single`,singleUri:a.selectedType===`single`,uriFormat:a.selectedType!==`single`,template:!a.isHeadless,enabledByDefault:a.selectedType!==`single`})),{table:p}=M({data:()=>a.modelValue,key:`handle`,name:`sites`,columnVisibility:()=>f.value,onChange:e=>n(`update:modelValue`,e),columns:({columnHelper:e})=>[e.accessor(`name`,{header:C(`Site`),cell:({getValue:e})=>e(),meta:{cellTag:`th`}}),e.lightswitch(`enabled`,{header:C(`Enabled`),size:80,meta:{cellClass:`bg-[var(--c-color-neutral-fill-quiet)]`},label:C(`Enabled`)}),e.checkbox(`singleHomepage`,{header:()=>m(`craft-icon`,{name:`home`,label:C(`Homepage`)}),size:44,meta:{cellClass:`text-center`,headerClass:`justify-center`},onChange:(e,{row:t})=>{if(e){let e={...a.modelValue};e[t.original.handle].singleUri=c.value??``,n(`update:modelValue`,e)}else{let e={...a.modelValue};e[t.original.handle].singleUri=``,n(`update:modelValue`,e)}},disabled:e=>!e.original.enabled}),e.text(`singleUri`,{header:C(`URI`),class:`font-mono text-xs`,placeholder:C(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled||e.original.singleHomepage,meta:{headerTip:C(`What the entry URI should be for the site. Leave blank if the entry doesn’t have a URL.`)}}),e.text(`uriFormat`,{header:C(`Entry URI Format`),class:`font-mono text-xs`,placeholder:C(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled,meta:{headerTip:C(`What entry URIs should look like for the site. Leave blank if entries don’t have URLs.`)}}),e.autocomplete(`template`,{header:C(`Template`),class:`font-mono text-xs !px-[var(--_cell-spacing)]`,options:d.value,disabled:e=>!e.original.enabled,meta:{headerTip:C(`Which template should be loaded when an entry’s URL is requested.`)}}),e.lightswitch(`enabledByDefault`,{header:C(`Default Status`),size:40,disabled:e=>!e.original.enabled})]});return(e,t)=>(i(),l(O,{padding:0,appearance:`raised`},{default:r(()=>[s(D,{table:h(p),spacing:h(w).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}))}}),Te=[`name`,`label`],Ee=n({__name:`DeleteButton`,props:{label:{default:C(`Delete item`)},icon:{default:`x`}},emits:[`click`],setup(e,{emit:t}){let n=t;return(t,r)=>(i(),o(`craft-button`,a({type:`button`,onClick:r[0]||=e=>n(`click`),size:`small`,appearance:`plain`,variant:`danger`},t.$attrs),[x(`craft-icon`,{name:e.icon,label:e.label},null,8,Te)],16))}}),De={key:0,class:`border border-dashed border-neutral-border-quiet rounded-bl-md rounded-br-md border-t-0 p-1 pt-2 -mt-1`},Oe=n({__name:`PreviewTargetsTable`,props:{modelValue:{},name:{default:`previewTargets`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,c=t,{table:l}=M({data:()=>c.modelValue,name:c.name,onChange:e=>a(`update:modelValue`,e),columns:({columnHelper:e})=>[e.text(`label`,{header:C(`Label`),disabled:()=>c.disabled}),e.text(`urlFormat`,{header:C(`URL Format`),class:`font-mono text-xs`,disabled:()=>c.disabled}),e.lightswitch(`refresh`,{header:C(`Auto-Refresh`),disabled:()=>c.disabled}),e.display({id:`actions`,header:C(`Actions`),meta:{headerSrOnly:!0},cell:({row:e})=>m(`div`,{class:`flex justify-end gap-2`},[m(Ee,{disabled:c.disabled,onClick:()=>{let t=[...c.modelValue];t.splice(e.index,1),a(`update:modelValue`,t)}})])})]});function u(){a(`update:modelValue`,[...c.modelValue,{label:``,urlFormat:``,refresh:!0}])}return(n,a)=>(i(),o(f,null,[s(O,{padding:0,appearance:`raised`},{default:r(()=>[s(D,{table:h(l),spacing:h(w).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}),t.disabled?b(``,!0):(i(),o(`div`,De,[x(`craft-button`,{type:`button`,size:`small`,onClick:u,class:`w-full`,appearance:`plain`},e(h(C)(`Add a target`)),1)]))],64))}}),ke={key:0,class:`flex gap-1 items-center text-sm`},Ae={key:1,class:`flex gap-1 items-center text-sm`},je={key:0},Me=[`loading`],Ne={slot:`content`},Pe={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},Fe={class:`grid gap-3 p-5`},Ie={key:0,variant:`danger`,icon:`triangle-exclamation`},Le={slot:`title`,class:`font-bold`},Re=[`value`],ze={slot:`feedback`},Be={key:0,class:`error-list`},Ve={slot:`feedback`},He={key:0,class:`error-list`},Ue={slot:`input`},We=[`value`],Ge={key:0,slot:`after`},Ke={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},qe={slot:`feedback`},Je={key:0,class:`error-list`},Ye={class:`grid gap-3 p-5`},Xe={class:`font-bold text-sm`},Ze={class:`text-sm text-neutral-500 mb-2`},Qe={class:`grid gap-6 p-5`},$e={class:`font-bold text-sm`},et={class:`text-sm text-neutral-500 mb-2`},tt={slot:`input`},$=[`value`],nt={key:0,slot:`after`},rt={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},it={class:`grid gap-3 p-5`},at={slot:`feedback`},ot={key:0,class:`error-list`},st={slot:`input`},ct=[`value`],lt={class:`grid gap-3 p-5`},ut={class:`font-bold text-sm`},dt={class:`text-sm text-neutral-500 mb-2`},ft={class:`grid gap-3 p-5`},pt={slot:`feedback`},mt={key:0,class:`error-list`},ht=n({__name:`SettingsSectionsEditPage`,props:{title:{},crumbs:{},section:{},brandNew:{type:Boolean},typeOptions:{},entryTypes:{},propagationOptions:{},placementOptions:{},siteSettings:{},isMultiSite:{type:Boolean},headlessMode:{type:Boolean},readOnly:{type:Boolean},flash:{},errors:{}},setup(t){let n=t,a=te({sectionId:n.section.id,name:n.section.name??``,handle:n.section.handle??``,type:n.section.type,entryTypes:n.section.entryTypes?.map(e=>e.id)??[],enableVersioning:n.section.enableVersioning,maxAuthors:n.section.maxAuthors??1,maxLevels:n.section.maxLevels??``,propagationMethod:n.section.propagationMethod,defaultPlacement:n.section.defaultPlacement,previewTargets:n.section.previewTargets??[],sites:Object.fromEntries(n.siteSettings.map(e=>[e.handle,{enabled:e.enabled,siteId:e.siteId??null,name:e.name??``,singleHomepage:!1,singleUri:e.uriFormat??``,uriFormat:e.uriFormat??``,template:e.template??``,enabledByDefault:e.enabledByDefault}]))}),c=v(()=>a.type===`structure`),u=v(()=>a.type===`channel`||a.type===`structure`),p=N(()=>a.name,e=>a.handle=ee(e)),m=N(()=>a.name,e=>{if(!a.sites)return;let t=d(e);a.sites=Object.fromEntries(Object.entries(a.sites).map(([e,n])=>[e,{...n,singleUri:t&&!n.singleHomepage?`${t}`:n.singleUri,uriFormat:t?`${t}/{slug}`:``,template:t?`${t}/_entry.twig`:``}]))});n.brandNew||(p.stop(),m.stop()),k(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),_())});function _(){a.clearErrors().submit(ce())}return(n,d)=>(i(),o(`form`,{onSubmit:g(_,[`prevent`])},[s(ae,{title:t.title,debug:{form:h(a),$props:n.$props}},{actions:r(()=>[s(re,null,{default:r(()=>[h(a).recentlySuccessful&&t.flash?.success?(i(),o(`div`,ke,[d[12]||=x(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),y(` `+e(t.flash.success),1)])):b(``,!0),h(a).hasErrors?(i(),o(`div`,Ae,[d[13]||=x(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),y(` `+e(h(C)(`Could not save settings`)),1)])):b(``,!0)]),_:1}),t.readOnly?b(``,!0):(i(),o(`craft-button-group`,je,[x(`craft-button`,{type:`submit`,variant:`primary`,loading:h(a).processing},e(h(C)(`Save`)),9,Me),x(`craft-action-menu`,null,[d[15]||=x(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[x(`craft-icon`,{name:`chevron-down`})],-1),x(`div`,Ne,[x(`craft-action-item`,{onClick:_},[y(e(h(C)(`Save and continue editing`))+` `,1),d[14]||=x(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:r(()=>[x(`div`,Pe,[t.readOnly?(i(),l(oe,{key:0})):b(``,!0),x(`div`,Fe,[h(a).hasErrors?(i(),o(`craft-callout`,Ie,[x(`div`,Le,e(h(C)(`Could not save settings`)),1),x(`ul`,null,[(i(!0),o(f,null,S(h(a).errors,(t,n)=>(i(),o(`li`,{key:n},e(t),1))),128))])])):b(``,!0),t.section.id?(i(),o(`input`,{key:1,type:`hidden`,name:`sectionId`,value:t.section.id},null,8,Re)):b(``,!0),s(P,{label:h(C)(`Name`),"help-text":h(C)(`What this section will be called in the control panel.`),id:`name`,name:`name`,modelValue:h(a).name,"onUpdate:modelValue":d[0]||=e=>h(a).name=e,disabled:t.readOnly,"has-feedback-for":h(a).errors?.name?`error`:``,required:``,autofocus:``},{default:r(()=>[x(`div`,ze,[h(a).errors?.name?(i(),o(`ul`,Be,[x(`li`,null,e(h(a).errors.name),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),s(I,{label:h(C)(`Handle`),"help-text":h(C)(`How you'll refer to this section in the templates.`),id:`handle`,name:`handle`,modelValue:h(a).handle,"onUpdate:modelValue":d[1]||=e=>h(a).handle=e,disabled:t.readOnly,"has-feedback-for":h(a).errors?.handle?`error`:``,required:``,onChange:d[2]||=e=>h(p).markDirty()},{default:r(()=>[x(`div`,Ve,[h(a).errors?.handle?(i(),o(`ul`,He,[x(`li`,null,e(h(a).errors.handle),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),s(se,{label:h(C)(`Enable versioning for entries in this section`),id:`enableVersioning`,name:`enableVersioning`,disabled:t.readOnly,modelValue:h(a).enableVersioning,"onUpdate:modelValue":d[3]||=e=>h(a).enableVersioning=e},null,8,[`label`,`disabled`,`modelValue`]),s(E,{label:h(C)(`Section Type`),"help-text":h(C)(`What type of section is this?`),id:`type`,name:`type`,modelValue:h(a).type,"onUpdate:modelValue":d[4]||=e=>h(a).type=e,disabled:t.readOnly,"has-feedback-for":h(a).errors?.type?`error`:``},{default:r(()=>[x(`select`,Ue,[(i(!0),o(f,null,S(t.typeOptions,t=>(i(),o(`option`,{key:t.value,value:t.value},e(t.label),9,We))),128))]),t.section.id&&h(a).type!==`single`?(i(),o(`div`,Ge,[x(`craft-callout`,Ke,e(h(C)(`Changing this may result in data loss.`)),1)])):b(``,!0),x(`div`,qe,[h(a).errors?.type?(i(),o(`ul`,Je,[x(`li`,null,e(h(a).errors.type),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])]),d[17]||=x(`hr`,null,null,-1),x(`div`,Ye,[x(`div`,null,[x(`h3`,Xe,e(h(C)(`Entry Types`)),1),x(`p`,Ze,e(h(C)(`Choose the types of entries that can be included in this section.`)),1),s(Ce,{types:t.entryTypes,modelValue:h(a).entryTypes,"onUpdate:modelValue":d[5]||=e=>h(a).entryTypes=e},null,8,[`types`,`modelValue`])])]),d[18]||=x(`hr`,null,null,-1),x(`div`,Qe,[x(`div`,null,[x(`h3`,$e,e(h(C)(`Site settings`)),1),x(`p`,et,e(h(C)(`Choose which sites this section should be available in, and configure the site-specific settings.`)),1),s(we,{"is-multisite":t.isMultiSite,"is-headless":t.headlessMode,"selected-type":h(a).type,modelValue:h(a).sites,"onUpdate:modelValue":d[6]||=e=>h(a).sites=e},null,8,[`is-multisite`,`is-headless`,`selected-type`,`modelValue`])]),t.isMultiSite&&u.value?(i(),l(E,{key:0,label:h(C)(`Propagation Method`),"help-text":h(C)(`Of the enabled sites above, which sites should entries in this section be saved to?`),id:`propagationMethod`,name:`propagationMethod`,modelValue:h(a).propagationMethod,"onUpdate:modelValue":d[7]||=e=>h(a).propagationMethod=e,disabled:t.readOnly},{default:r(()=>[x(`select`,tt,[(i(!0),o(f,null,S(t.propagationOptions,t=>(i(),o(`option`,{key:t.value,value:t.value},e(t.label),9,$))),128))]),t.section.id&&t.section.propagationMethod!==`none`&&t.siteSettings.length>1?(i(),o(`div`,nt,[x(`craft-callout`,rt,e(h(C)(`Changing this may result in data loss.`)),1)])):b(``,!0)]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])):b(``,!0)]),c.value?(i(),o(f,{key:1},[d[16]||=x(`hr`,null,null,-1),x(`div`,it,[s(P,{label:h(C)(`Max Levels`),"help-text":h(C)(`The maximum number of levels this section can have.`),id:`maxLevels`,name:`maxLevels`,modelValue:h(a).maxLevels,"onUpdate:modelValue":d[8]||=e=>h(a).maxLevels=e,disabled:t.readOnly,inputmode:`numeric`,size:`5`,"has-feedback-for":h(a).errors?.maxLevels?`error`:``},{default:r(()=>[x(`div`,at,[h(a).errors?.maxLevels?(i(),o(`ul`,ot,[x(`li`,null,e(h(a).errors.maxLevels),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),s(E,{label:h(C)(`Default {type} Placement`,{type:h(C)(`Entry`)}),"help-text":h(C)(`Where new {type} should be placed by default in the structure.`,{type:h(C)(`entries`)}),id:`defaultPlacement`,name:`defaultPlacement`,modelValue:h(a).defaultPlacement,"onUpdate:modelValue":d[9]||=e=>h(a).defaultPlacement=e,disabled:t.readOnly},{default:r(()=>[x(`select`,st,[(i(!0),o(f,null,S(t.placementOptions,t=>(i(),o(`option`,{key:t.value,value:t.value},e(t.label),9,ct))),128))])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])])],64)):b(``,!0),d[19]||=x(`hr`,null,null,-1),x(`div`,lt,[x(`div`,null,[x(`h3`,ut,e(h(C)(`Preview Targets`)),1),x(`p`,dt,e(h(C)(`Locations that should be available for previewing entries in this section.`)),1),s(Oe,{modelValue:h(a).previewTargets,"onUpdate:modelValue":d[10]||=e=>h(a).previewTargets=e,disabled:t.readOnly},null,8,[`modelValue`,`disabled`])])]),d[20]||=x(`hr`,null,null,-1),x(`div`,ft,[s(P,{label:h(C)(`Max Authors`),"help-text":h(C)(`The maximum number of authors that entries in this section can have.`),id:`maxAuthors`,name:`maxAuthors`,modelValue:h(a).maxAuthors,"onUpdate:modelValue":d[11]||=e=>h(a).maxAuthors=e,disabled:t.readOnly,inputmode:`numeric`,maxlength:`5`,"has-feedback-for":h(a).errors?.maxAuthors?`error`:``},{default:r(()=>[x(`div`,pt,[h(a).errors?.maxAuthors?(i(),o(`ul`,mt,[x(`li`,null,e(h(a).errors.maxAuthors),1)])):b(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])])])]),_:1},8,[`title`,`debug`])],32))}});export{ht as default}; \ No newline at end of file diff --git a/resources/build/SettingsSitesEdit.js b/resources/build/SettingsSitesEdit.js index 9a14e44517e..5240cf2a32b 100644 --- a/resources/build/SettingsSitesEdit.js +++ b/resources/build/SettingsSitesEdit.js @@ -1 +1 @@ -import"./Queue-wGK97jCw.js";import{$ as e,E as t,G as n,J as r,L as i,S as a,T as o,Y as s,b as c,c as l,h as u,ht as d,it as f,lt as p,m,mt as h,p as g,s as _,v,w as y,x as b,y as x,z as S}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as C}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import"./Pane.js";import{n as w}from"./useAnnouncer.js";import{n as T}from"./ModalForm.js";import{n as E}from"./dist.js";import"./Modal.js";import{t as D}from"./InputCombobox.js";import{t as O}from"./AppLayout.js";import{t as k}from"./CalloutReadOnly.js";import{t as A}from"./useInputGenerator.js";import{a as j,t as M}from"./DeleteSiteModal.js";var ee={key:0,variant:`danger`,icon:`triangle-exclamation`},te={slot:`title`,class:`tw:font-bold`},ne=[`label`,`help-text`,`.modelValue`],re={slot:`input`},ie=[`value`],N={key:0,class:`error-list`,slot:`feedback`},P={key:1,slot:`after`},F={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},I={class:`sr-only`},L=[`label`,`disabled`],R={slot:`after`},z={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},B={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},V={slot:`feedback`},H={key:0,class:`error-list`},U=[`label`,`help-text`,`has-feedback-for`],W={slot:`feedback`},G={key:0,class:`error-list`},K=[`label`,`help-text`,`disabled`,`has-feedback-for`],q={slot:`after`},J=[`innerHTML`],Y={slot:`feedback`},ae={key:0,class:`error-list`},oe=[`label`,`disabled`,`has-feedback-for`],se=[`active`,`checked`,`hint`],ce={class:`inline-flex items-center gap-1`},le=[`variant`],ue={key:0},de={key:1},fe={slot:`after`},pe={key:0,variant:`warning`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},me=[`innerHTML`],he={slot:`feedback`},ge={key:0,class:`error-list`},_e=[`label`,`help-text`,`disabled`,`checked`],ve=[`label`,`disabled`,`checked`],ye=[`label`,`help-text`,`error`,`disabled`],be={slot:`after`},xe={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},Se={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},X=t({__name:`SiteFields`,props:{inertiaForm:{},readOnly:{type:Boolean,default:!1}},setup(t){let c=t,f=l();function m(e){return e.value.startsWith(`$`)||e.value.startsWith(`@`)?{...e,data:{...e.data||{},hint:e.data?.boolean===`1`?C(`Enabled`):C(`Disabled`)}}:e}let _=v(()=>c.inertiaForm),w=v(()=>f.props.isMultisite),T=v(()=>f.props.groupOptions),E=v(()=>f.props.nameSuggestions),O=v(()=>f.props.languageOptions),k=v(()=>f.props.booleanEnvOptions.map(e=>e.type===`optgroup`?{...e,options:e.options.map(m)}:m(e))),j=v(()=>f.props.baseUrlSuggestions),M=v(()=>f.props.site);n(`handle`),n(`baseUrl`);let X=v({get(){return _.value.enabled?`1`:`0`},set(e){_.value.enabled=e}}),Z=A(()=>_.value.name,e=>_.value.handle=h(e)),Q=A(()=>_.value.name,e=>_.value.baseUrl=d(e,{prefix:`$`,suffix:`_URL`}));return _.value.id&&(Z.stop(),Q.stop()),(n,c)=>(i(),a(u,null,[_.value?.hasErrors?(i(),a(`craft-callout`,ee,[x(`div`,te,e(p(C)(`Could not save settings`)),1),x(`ul`,null,[(i(!0),a(u,null,S(_.value.errors,(t,n)=>(i(),a(`li`,{key:n},e(t),1))),128))])])):b(``,!0),_.value.id?s((i(),a(`input`,{key:1,name:`id`,"onUpdate:modelValue":c[0]||=e=>_.value.id=e,type:`hidden`},null,512)),[[g,_.value.id]]):b(``,!0),x(`craft-select`,{label:p(C)(`Group`),"help-text":p(C)(`Which group should this site belong to?`),name:`group`,id:`group`,".modelValue":_.value.group,onModelValueChanged:c[1]||=e=>_.value.group=e.target?.modelValue},[x(`select`,re,[(i(!0),a(u,null,S(T.value,t=>(i(),a(`option`,{key:t.value,value:t.value},e(t.label),9,ie))),128))]),_.value.errors?.group?(i(),a(`ul`,N,[(i(!0),a(u,null,S(_.value.errors?.group,t=>(i(),a(`li`,null,e(t),1))),256))])):b(``,!0),_.value?.id&&w.value?(i(),a(`div`,P,[x(`craft-callout`,F,[x(`span`,I,e(p(C)(`Warning:`)),1),y(` `+e(p(C)(`Changing this may result in data loss.`)),1)])])):b(``,!0)],40,ne),x(`craft-input`,{label:p(C)(`Name`),id:`name`,name:`name`,disabled:t.readOnly},[o(D,{slot:`input`,modelValue:_.value.name,"onUpdate:modelValue":c[2]||=e=>_.value.name=e,options:E.value},null,8,[`modelValue`,`options`]),x(`div`,R,[x(`craft-callout`,z,[y(e(p(C)(`This can begin with an environment variable.`))+` `,1),x(`a`,B,e(p(C)(`Learn more`)),1)])]),x(`div`,V,[_.value.errors?.name?(i(),a(`ul`,H,[x(`li`,null,e(_.value.errors.name),1)])):b(``,!0)])],8,L),s(x(`craft-input-handle`,{label:p(C)(`Handle`),"help-text":p(C)(`How you’ll refer to this site in the templates.`),ref:`handle`,id:`handle`,name:`handle`,"has-feedback-for":_.value.errors?.handle?`error`:``,"onUpdate:modelValue":c[3]||=e=>_.value.handle=e},[x(`div`,W,[_.value.errors?.handle?(i(),a(`ul`,G,[x(`li`,null,e(_.value.errors.handle),1)])):b(``,!0)])],8,U),[[g,_.value.handle]]),x(`craft-input`,{label:p(C)(`Language`),name:`language`,id:`site-language`,"help-text":p(C)(`The language content in this site will use.`),disabled:t.readOnly,"has-feedback-for":_.value.errors?.language?`error`:``},[o(D,{slot:`input`,modelValue:_.value.language,"onUpdate:modelValue":c[4]||=e=>_.value.language=e,options:O.value,"require-option-match":!0},null,8,[`modelValue`,`options`]),x(`div`,q,[x(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:p(C)(`This can be set to an environment variable with a valid language ID ({examples}).`,{examples:`<code>en</code>/<code>en-GB</code>`})},null,8,J)]),x(`div`,Y,[_.value.errors?.language?(i(),a(`ul`,ae,[x(`li`,null,e(_.value.errors.language),1)])):b(``,!0)])],8,K),w.value||!M.value.id?(i(),a(`craft-input`,{key:2,label:p(C)(`Status`),name:`enabled`,id:`enabled`,disabled:t.readOnly,"has-feedback-for":_.value.errors?.enabled?`error`:``},[o(D,{slot:`input`,modelValue:X.value,"onUpdate:modelValue":c[5]||=e=>X.value=e,options:k.value,"require-option-match":!0},{option:r(({active:t,selected:n,option:r})=>[x(`craft-option`,{active:t,checked:n,hint:r.data?.hint},[x(`div`,ce,[x(`craft-indicator`,{variant:r.data?.boolean===`1`?`success`:`empty`},null,8,le),r.label.startsWith(`$`)||r.label.startsWith(`@`)?(i(),a(`code`,ue,e(r.label),1)):(i(),a(`span`,de,e(r.label),1))])],8,se)]),_:1},8,[`modelValue`,`options`]),x(`div`,fe,[M.value.primary?(i(),a(`craft-callout`,pe,e(p(C)(`The primary site cannot be disabled.`)),1)):b(``,!0),x(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:p(C)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`<code>yes</code>/<code>no</code>/<code>true</code>/<code>false</code>/<code>on</code>/<code>off</code>/<code>0</code>/<code>1</code>`})},null,8,me)]),x(`div`,he,[_.value.errors?.enabled?(i(),a(`ul`,ge,[x(`li`,null,e(_.value.errors.enabled),1)])):b(``,!0)])],8,oe)):b(``,!0),(w.value||!M.value.id)&&!M.value.primary?(i(),a(u,{key:3},[M.value.primary?b(``,!0):(i(),a(`craft-switch`,{key:0,label:p(C)(`Make this the primary site`),"help-text":p(C)(`The primary site will be loaded by default on the front end.`),disabled:t.readOnly,checked:_.value.primary,onCheckedChanged:c[6]||=e=>_.value.primary=e.target?.checked},null,40,_e))],64)):b(``,!0),x(`craft-switch`,{label:p(C)(`This site has its own base URL`),id:`has-urls`,name:`hasUrls`,disabled:t.readOnly,checked:_.value.hasUrls,onCheckedChanged:c[7]||=e=>_.value.hasUrls=e.target?.checked},null,40,ve),_.value.hasUrls?(i(),a(`craft-input`,{key:4,label:p(C)(`Base URL`),"help-text":p(C)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:_.value.errors?.baseUrl,disabled:t.readOnly},[o(D,{slot:`input`,modelValue:_.value.baseUrl,"onUpdate:modelValue":c[8]||=e=>_.value.baseUrl=e,options:j.value},null,8,[`modelValue`,`options`]),x(`div`,be,[x(`craft-callout`,xe,[y(e(p(C)(`This can begin with an environment variable or alias.`))+` `,1),x(`a`,Se,e(p(C)(`Learn more`)),1)])])],8,ye)):b(``,!0)],64))}}),Z={key:0,size:`small`,inline:``},Q={key:0,class:`flex gap-1 items-center text-sm`},Ce={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},$={key:0},we=[`loading`],Te={slot:`content`},Ee={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},De={class:`grid gap-3 p-5`},Oe=t({__name:`SettingsSitesEdit`,props:{title:{},crumbs:{},readOnly:{type:Boolean},site:{},groupId:{},flash:{},errors:{},isMultisite:{type:Boolean}},setup(t){let n=t,s=_({siteId:n.site.id??null,group:n.groupId,name:n.site.nameRaw,handle:n.site.handle,language:n.site.languageRaw,enabled:n.site.enabledRaw,hasUrls:n.site.hasUrls,primary:n.site.primary,baseUrl:n.site.baseUrlRaw??``});E(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),l())});function l(){s.clearErrors().submit(j())}let d=f(!1);return(f,h)=>(i(),a(u,null,[x(`form`,{onSubmit:m(l,[`prevent`])},[o(O,{title:t.title,debug:f.$props},{"title-badge":r(()=>[o(T,{variant:t.site.enabled?`success`:`default`},{default:r(()=>[y(e(t.site.enabled?p(C)(`Enabled`):p(C)(`Disabled`)),1)]),_:1},8,[`variant`]),t.site.primary?(i(),a(`craft-callout`,Z,[x(`span`,null,e(p(C)(`Primary`)),1)])):b(``,!0)]),actions:r(()=>[o(w,null,{default:r(()=>[p(s).recentlySuccessful&&t.flash?.success?(i(),a(`div`,Q,[h[2]||=x(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),y(` `+e(t.flash.success),1)])):b(``,!0),p(s).hasErrors?(i(),a(`div`,Ce,[h[3]||=x(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),y(` `+e(p(C)(`Could not save settings`)),1)])):b(``,!0)]),_:1}),t.readOnly?b(``,!0):(i(),a(`craft-button-group`,$,[x(`craft-button`,{type:`submit`,variant:`primary`,loading:p(s).processing},e(p(C)(`Save`)),9,we),x(`craft-action-menu`,null,[h[6]||=x(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[x(`craft-icon`,{name:`chevron-down`})],-1),x(`div`,Te,[x(`craft-action-item`,{onClick:l},[y(e(p(C)(`Save and continue editing`))+` `,1),h[4]||=x(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)]),t.site.id&&!t.site.primary?(i(),a(u,{key:0},[h[5]||=x(`hr`,null,null,-1),x(`craft-action-item`,{onClick:h[0]||=e=>d.value=!0,variant:`danger`},e(p(C)(`Delete site`)),1)],64)):b(``,!0)])])]))]),default:r(()=>[x(`div`,Ee,[t.readOnly?(i(),c(k,{key:0})):b(``,!0),x(`div`,De,[o(X,{"inertia-form":p(s),"read-only":t.readOnly},null,8,[`inertia-form`,`read-only`])])])]),_:1},8,[`title`,`debug`])],32),t.site.primary?b(``,!0):(i(),c(M,{key:0,onClose:h[1]||=e=>d.value=!1,open:d.value,site:n.site},null,8,[`open`,`site`]))],64))}});export{Oe as default}; \ No newline at end of file +import"./Queue-wGK97jCw.js";import{$ as e,E as t,G as n,J as r,L as i,S as a,T as o,Y as s,b as c,c as l,h as u,it as d,lt as f,m as p,mt as m,p as h,pt as ee,s as g,v as _,w as v,x as y,y as b,z as x}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as S}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";import"./Pane.js";import{n as C}from"./useAnnouncer.js";import{n as w}from"./ModalForm.js";import{n as T}from"./dist.js";import"./Modal.js";import{t as E}from"./InputCombobox.js";import{t as D}from"./AppLayout.js";import{t as O}from"./CalloutReadOnly.js";import{t as k}from"./useInputGenerator.js";import{a as A,t as j}from"./DeleteSiteModal.js";var te={key:0,variant:`danger`,icon:`triangle-exclamation`},ne={slot:`title`,class:`tw:font-bold`},re=[`label`,`help-text`,`.modelValue`],ie={slot:`input`},M=[`value`],N={key:0,class:`error-list`,slot:`feedback`},P={key:1,slot:`after`},F={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},I={class:`sr-only`},L=[`label`,`disabled`],R={slot:`after`},z={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},B={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},V={slot:`feedback`},H={key:0,class:`error-list`},U=[`label`,`help-text`,`has-feedback-for`],W={slot:`feedback`},G={key:0,class:`error-list`},K=[`label`,`help-text`,`disabled`,`has-feedback-for`],q={slot:`after`},J=[`innerHTML`],Y={slot:`feedback`},ae={key:0,class:`error-list`},oe=[`label`,`disabled`,`has-feedback-for`],se=[`active`,`checked`,`hint`],ce={class:`inline-flex items-center gap-1`},le=[`variant`],ue={key:0},de={key:1},fe={slot:`after`},pe={key:0,variant:`warning`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},me=[`innerHTML`],he={slot:`feedback`},ge={key:0,class:`error-list`},_e=[`label`,`help-text`,`disabled`,`checked`],ve=[`label`,`disabled`,`checked`],ye=[`label`,`help-text`,`error`,`disabled`],be={slot:`after`},xe={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},Se={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},X=t({__name:`SiteFields`,props:{inertiaForm:{},readOnly:{type:Boolean,default:!1}},setup(t){let c=t,d=l();function p(e){return e.value.startsWith(`$`)||e.value.startsWith(`@`)?{...e,data:{...e.data||{},hint:e.data?.boolean===`1`?S(`Enabled`):S(`Disabled`)}}:e}let g=_(()=>c.inertiaForm),C=_(()=>d.props.isMultisite),w=_(()=>d.props.groupOptions),T=_(()=>d.props.nameSuggestions),D=_(()=>d.props.languageOptions),O=_(()=>d.props.booleanEnvOptions.map(e=>e.type===`optgroup`?{...e,options:e.options.map(p)}:p(e))),A=_(()=>d.props.baseUrlSuggestions),j=_(()=>d.props.site);n(`handle`),n(`baseUrl`);let X=_({get(){return g.value.enabled?`1`:`0`},set(e){g.value.enabled=e}}),Z=k(()=>g.value.name,e=>g.value.handle=ee(e)),Q=k(()=>g.value.name,e=>g.value.baseUrl=m(e,{prefix:`$`,suffix:`_URL`}));return g.value.id&&(Z.stop(),Q.stop()),(n,c)=>(i(),a(u,null,[g.value?.hasErrors?(i(),a(`craft-callout`,te,[b(`div`,ne,e(f(S)(`Could not save settings`)),1),b(`ul`,null,[(i(!0),a(u,null,x(g.value.errors,(t,n)=>(i(),a(`li`,{key:n},e(t),1))),128))])])):y(``,!0),g.value.id?s((i(),a(`input`,{key:1,name:`id`,"onUpdate:modelValue":c[0]||=e=>g.value.id=e,type:`hidden`},null,512)),[[h,g.value.id]]):y(``,!0),b(`craft-select`,{label:f(S)(`Group`),"help-text":f(S)(`Which group should this site belong to?`),name:`group`,id:`group`,".modelValue":g.value.group,onModelValueChanged:c[1]||=e=>g.value.group=e.target?.modelValue},[b(`select`,ie,[(i(!0),a(u,null,x(w.value,t=>(i(),a(`option`,{key:t.value,value:t.value},e(t.label),9,M))),128))]),g.value.errors?.group?(i(),a(`ul`,N,[(i(!0),a(u,null,x(g.value.errors?.group,t=>(i(),a(`li`,null,e(t),1))),256))])):y(``,!0),g.value?.id&&C.value?(i(),a(`div`,P,[b(`craft-callout`,F,[b(`span`,I,e(f(S)(`Warning:`)),1),v(` `+e(f(S)(`Changing this may result in data loss.`)),1)])])):y(``,!0)],40,re),b(`craft-input`,{label:f(S)(`Name`),id:`name`,name:`name`,disabled:t.readOnly},[o(E,{slot:`input`,modelValue:g.value.name,"onUpdate:modelValue":c[2]||=e=>g.value.name=e,options:T.value},null,8,[`modelValue`,`options`]),b(`div`,R,[b(`craft-callout`,z,[v(e(f(S)(`This can begin with an environment variable.`))+` `,1),b(`a`,B,e(f(S)(`Learn more`)),1)])]),b(`div`,V,[g.value.errors?.name?(i(),a(`ul`,H,[b(`li`,null,e(g.value.errors.name),1)])):y(``,!0)])],8,L),s(b(`craft-input-handle`,{label:f(S)(`Handle`),"help-text":f(S)(`How you’ll refer to this site in the templates.`),ref:`handle`,id:`handle`,name:`handle`,"has-feedback-for":g.value.errors?.handle?`error`:``,"onUpdate:modelValue":c[3]||=e=>g.value.handle=e},[b(`div`,W,[g.value.errors?.handle?(i(),a(`ul`,G,[b(`li`,null,e(g.value.errors.handle),1)])):y(``,!0)])],8,U),[[h,g.value.handle]]),b(`craft-input`,{label:f(S)(`Language`),name:`language`,id:`site-language`,"help-text":f(S)(`The language content in this site will use.`),disabled:t.readOnly,"has-feedback-for":g.value.errors?.language?`error`:``},[o(E,{slot:`input`,modelValue:g.value.language,"onUpdate:modelValue":c[4]||=e=>g.value.language=e,options:D.value,"require-option-match":!0},null,8,[`modelValue`,`options`]),b(`div`,q,[b(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:f(S)(`This can be set to an environment variable with a valid language ID ({examples}).`,{examples:`<code>en</code>/<code>en-GB</code>`})},null,8,J)]),b(`div`,Y,[g.value.errors?.language?(i(),a(`ul`,ae,[b(`li`,null,e(g.value.errors.language),1)])):y(``,!0)])],8,K),C.value||!j.value.id?(i(),a(`craft-input`,{key:2,label:f(S)(`Status`),name:`enabled`,id:`enabled`,disabled:t.readOnly,"has-feedback-for":g.value.errors?.enabled?`error`:``},[o(E,{slot:`input`,modelValue:X.value,"onUpdate:modelValue":c[5]||=e=>X.value=e,options:O.value,"require-option-match":!0},{option:r(({active:t,selected:n,option:r})=>[b(`craft-option`,{active:t,checked:n,hint:r.data?.hint},[b(`div`,ce,[b(`craft-indicator`,{variant:r.data?.boolean===`1`?`success`:`empty`},null,8,le),r.label.startsWith(`$`)||r.label.startsWith(`@`)?(i(),a(`code`,ue,e(r.label),1)):(i(),a(`span`,de,e(r.label),1))])],8,se)]),_:1},8,[`modelValue`,`options`]),b(`div`,fe,[j.value.primary?(i(),a(`craft-callout`,pe,e(f(S)(`The primary site cannot be disabled.`)),1)):y(``,!0),b(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:f(S)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`<code>yes</code>/<code>no</code>/<code>true</code>/<code>false</code>/<code>on</code>/<code>off</code>/<code>0</code>/<code>1</code>`})},null,8,me)]),b(`div`,he,[g.value.errors?.enabled?(i(),a(`ul`,ge,[b(`li`,null,e(g.value.errors.enabled),1)])):y(``,!0)])],8,oe)):y(``,!0),(C.value||!j.value.id)&&!j.value.primary?(i(),a(u,{key:3},[j.value.primary?y(``,!0):(i(),a(`craft-switch`,{key:0,label:f(S)(`Make this the primary site`),"help-text":f(S)(`The primary site will be loaded by default on the front end.`),disabled:t.readOnly,checked:g.value.primary,onCheckedChanged:c[6]||=e=>g.value.primary=e.target?.checked},null,40,_e))],64)):y(``,!0),b(`craft-switch`,{label:f(S)(`This site has its own base URL`),id:`has-urls`,name:`hasUrls`,disabled:t.readOnly,checked:g.value.hasUrls,onCheckedChanged:c[7]||=e=>g.value.hasUrls=e.target?.checked},null,40,ve),g.value.hasUrls?(i(),a(`craft-input`,{key:4,label:f(S)(`Base URL`),"help-text":f(S)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:g.value.errors?.baseUrl,disabled:t.readOnly},[o(E,{slot:`input`,modelValue:g.value.baseUrl,"onUpdate:modelValue":c[8]||=e=>g.value.baseUrl=e,options:A.value},null,8,[`modelValue`,`options`]),b(`div`,be,[b(`craft-callout`,xe,[v(e(f(S)(`This can begin with an environment variable or alias.`))+` `,1),b(`a`,Se,e(f(S)(`Learn more`)),1)])])],8,ye)):y(``,!0)],64))}}),Z={key:0,size:`small`,inline:``},Q={key:0,class:`flex gap-1 items-center text-sm`},Ce={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},$={key:0},we=[`loading`],Te={slot:`content`},Ee={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},De={class:`grid gap-3 p-5`},Oe=t({__name:`SettingsSitesEdit`,props:{title:{},crumbs:{},readOnly:{type:Boolean},site:{},groupId:{},flash:{},errors:{},isMultisite:{type:Boolean}},setup(t){let n=t,s=g({siteId:n.site.id??null,group:n.groupId,name:n.site.nameRaw,handle:n.site.handle,language:n.site.languageRaw,enabled:n.site.enabledRaw,hasUrls:n.site.hasUrls,primary:n.site.primary,baseUrl:n.site.baseUrlRaw??``});T(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),l())});function l(){s.clearErrors().submit(A())}let m=d(!1);return(d,h)=>(i(),a(u,null,[b(`form`,{onSubmit:p(l,[`prevent`])},[o(D,{title:t.title,debug:d.$props},{"title-badge":r(()=>[o(w,{variant:t.site.enabled?`success`:`default`},{default:r(()=>[v(e(t.site.enabled?f(S)(`Enabled`):f(S)(`Disabled`)),1)]),_:1},8,[`variant`]),t.site.primary?(i(),a(`craft-callout`,Z,[b(`span`,null,e(f(S)(`Primary`)),1)])):y(``,!0)]),actions:r(()=>[o(C,null,{default:r(()=>[f(s).recentlySuccessful&&t.flash?.success?(i(),a(`div`,Q,[h[2]||=b(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),v(` `+e(t.flash.success),1)])):y(``,!0),f(s).hasErrors?(i(),a(`div`,Ce,[h[3]||=b(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),v(` `+e(f(S)(`Could not save settings`)),1)])):y(``,!0)]),_:1}),t.readOnly?y(``,!0):(i(),a(`craft-button-group`,$,[b(`craft-button`,{type:`submit`,variant:`primary`,loading:f(s).processing},e(f(S)(`Save`)),9,we),b(`craft-action-menu`,null,[h[6]||=b(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[b(`craft-icon`,{name:`chevron-down`})],-1),b(`div`,Te,[b(`craft-action-item`,{onClick:l},[v(e(f(S)(`Save and continue editing`))+` `,1),h[4]||=b(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)]),t.site.id&&!t.site.primary?(i(),a(u,{key:0},[h[5]||=b(`hr`,null,null,-1),b(`craft-action-item`,{onClick:h[0]||=e=>m.value=!0,variant:`danger`},e(f(S)(`Delete site`)),1)],64)):y(``,!0)])])]))]),default:r(()=>[b(`div`,Ee,[t.readOnly?(i(),c(O,{key:0})):y(``,!0),b(`div`,De,[o(X,{"inertia-form":f(s),"read-only":t.readOnly},null,8,[`inertia-form`,`read-only`])])])]),_:1},8,[`title`,`debug`])],32),t.site.primary?y(``,!0):(i(),c(j,{key:0,onClose:h[1]||=e=>m.value=!1,open:m.value,site:n.site},null,8,[`open`,`site`]))],64))}});export{Oe as default}; \ No newline at end of file diff --git a/resources/build/Updater.js b/resources/build/Updater.js index cb0ced99658..497c27e3f8a 100644 --- a/resources/build/Updater.js +++ b/resources/build/Updater.js @@ -1,5 +1,5 @@ -import"./Queue-wGK97jCw.js";import{$ as e,E as t,F as n,K as r,L as i,S as a,T as o,a as s,dt as c,h as l,it as u,lt as d,t as f,v as p,x as m,y as h,z as g}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as _}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";function v(e,t){let n=u({...t}),r=u(!1),i=p(()=>!!n.value.error),a=p(()=>!!n.value.finished);async function o(t){r.value=!0;try{s((await c.post(`/admin/actions/${e}/${t}`,{data:n.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}})).data)}catch(e){d(e)}r.value=!1}function s(e){e.data&&(n.value.data=e.data),n.value={...n.value,status:e.status,error:e.error,errorDetails:e.errorDetails,options:e.options,finished:e.finished,returnUrl:e.returnUrl??n.value.returnUrl,nextAction:e.nextAction},e.nextAction&&o(e.nextAction)}function l(e){e.nextAction&&(n.value.error=void 0,n.value.errorDetails=void 0,n.value.options=void 0,e.status&&(n.value.status=e.status),e.data&&(n.value.data=e.data),o(e.nextAction))}function d(t){let r=t.response?.data?.message||t.message||`Unknown error`,i=t.response?.statusText||`Error`;n.value.error=_(`A fatal error has occurred:`),n.value.errorDetails=`${_(`Status:`)} ${i}\n\n${_(`Response:`)} ${r}`,n.value.options=[{label:_(`Troubleshoot`),url:`https://craftcms.com/knowledge-base/failed-updates`},{label:_(`Send for help`),email:`support@craftcms.com`}],c.post(`/admin/actions/${e}/finish`,{data:n.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}}).catch(()=>{})}function f(e){let t=encodeURIComponent(e.subject||`Craft update failure`),r=`Describe what happened here.`;return n.value.errorDetails&&(r+=` +import{o as e}from"./Queue-wGK97jCw.js";import{$ as t,E as n,F as r,K as i,L as a,S as o,T as s,a as c,h as l,it as u,lt as d,t as f,v as p,x as m,y as h,z as g}from"./_plugin-vue_export-helper.js";import"./lit.js";import"./decorators.js";import{r as _}from"./nav-item-D3exy0bq.js";import"./nav-list-DezDYLKE.js";function v(t,n){let r=u({...n}),i=u(!1),a=p(()=>!!r.value.error),o=p(()=>!!r.value.finished);async function s(n){i.value=!0;try{c((await e.post(`/admin/actions/${t}/${n}`,{data:r.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}})).data)}catch(e){d(e)}i.value=!1}function c(e){e.data&&(r.value.data=e.data),r.value={...r.value,status:e.status,error:e.error,errorDetails:e.errorDetails,options:e.options,finished:e.finished,returnUrl:e.returnUrl??r.value.returnUrl,nextAction:e.nextAction},e.nextAction&&s(e.nextAction)}function l(e){e.nextAction&&(r.value.error=void 0,r.value.errorDetails=void 0,r.value.options=void 0,e.status&&(r.value.status=e.status),e.data&&(r.value.data=e.data),s(e.nextAction))}function d(n){let i=n.response?.data?.message||n.message||`Unknown error`,a=n.response?.statusText||`Error`;r.value.error=_(`A fatal error has occurred:`),r.value.errorDetails=`${_(`Status:`)} ${a}\n\n${_(`Response:`)} ${i}`,r.value.options=[{label:_(`Troubleshoot`),url:`https://craftcms.com/knowledge-base/failed-updates`},{label:_(`Send for help`),email:`support@craftcms.com`}],e.post(`/admin/actions/${t}/finish`,{data:r.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}}).catch(()=>{})}function f(e){let t=encodeURIComponent(e.subject||`Craft update failure`),n=`Describe what happened here.`;return r.value.errorDetails&&(n+=` ----------------------------------------------------------- -`+n.value.errorDetails),`mailto:${e.email}?subject=${t}&body=${encodeURIComponent(r)}`}return{state:n,isLoading:r,hasError:i,isFinished:a,executeAction:o,handleOptionClick:l,getEmailLink:f}}var y={class:`updater`},b={class:`updater-graphic`},x={key:0,visible:!0,class:`spinner`},S={key:1,name:`circle-check`,class:`icon-success`},C={key:2,name:`alert-circle`,class:`icon-error`},w={class:`updater-status`},T=[`innerHTML`],E={key:0,class:`error-details`,tabindex:`0`},D=[`innerHTML`],O=[`innerHTML`],k={key:0,class:`updater-options`},A=[`href`,`target`],j=[`onClick`,`variant`],M=f(t({__name:`Updater`,props:{title:{},initialState:{},actionPrefix:{},returnUrl:{}},setup(t){let c=t,{state:u,isLoading:f,hasError:p,isFinished:_,executeAction:M,handleOptionClick:N,getEmailLink:P}=v(c.actionPrefix,c.initialState);function F(e){return e.replace(/\n{2,}/g,`</p><p>`).replace(/\n/g,`<br>`).replace(/`(.*?)`/g,`<code>$1</code>`)}function I(){setTimeout(()=>{window.location.href=u.value.returnUrl||c.returnUrl||`/admin/dashboard`},750)}function L(e){return!!(e.url||e.email)}function R(e){return e.url?e.url:e.email?P(e):`#`}return n(()=>{c.initialState.nextAction&&M(c.initialState.nextAction)}),r(_,e=>{e&&I()}),(n,r)=>(i(),a(l,null,[o(d(s),{title:t.title},null,8,[`title`]),h(`div`,y,[h(`div`,b,[d(f)&&!d(p)?(i(),a(`craft-spinner`,x)):d(_)?(i(),a(`craft-icon`,S)):d(p)?(i(),a(`craft-icon`,C)):m(``,!0)]),h(`div`,w,[d(u).error?(i(),a(l,{key:0},[h(`p`,{class:`error-message`,innerHTML:F(d(u).error)},null,8,T),d(u).errorDetails?(i(),a(`div`,E,[h(`p`,{innerHTML:F(d(u).errorDetails)},null,8,D)])):m(``,!0)],64)):d(u).status?(i(),a(`p`,{key:1,innerHTML:F(d(u).status)},null,8,O)):m(``,!0)]),d(u).options&&!d(f)?(i(),a(`div`,k,[(i(!0),a(l,null,g(d(u).options,t=>(i(),a(l,{key:t.label},[L(t)?(i(),a(`a`,{key:0,href:R(t),target:t.url?`_blank`:void 0,class:`btn big`},e(t.label),9,A)):(i(),a(`craft-button`,{key:1,type:`button`,onClick:e=>d(N)(t),variant:t.submit?`primary`:`default`,size:`lg`},e(t.label),9,j))],64))),128))])):m(``,!0)])],64))}}),[[`__scopeId`,`data-v-5a0085ac`]]);export{M as default}; \ No newline at end of file +`+r.value.errorDetails),`mailto:${e.email}?subject=${t}&body=${encodeURIComponent(n)}`}return{state:r,isLoading:i,hasError:a,isFinished:o,executeAction:s,handleOptionClick:l,getEmailLink:f}}var y={class:`updater`},b={class:`updater-graphic`},x={key:0,visible:!0,class:`spinner`},S={key:1,name:`circle-check`,class:`icon-success`},C={key:2,name:`alert-circle`,class:`icon-error`},w={class:`updater-status`},T=[`innerHTML`],E={key:0,class:`error-details`,tabindex:`0`},D=[`innerHTML`],O=[`innerHTML`],k={key:0,class:`updater-options`},A=[`href`,`target`],j=[`onClick`,`variant`],M=f(n({__name:`Updater`,props:{title:{},initialState:{},actionPrefix:{},returnUrl:{}},setup(e){let n=e,{state:u,isLoading:f,hasError:p,isFinished:_,executeAction:M,handleOptionClick:N,getEmailLink:P}=v(n.actionPrefix,n.initialState);function F(e){return e.replace(/\n{2,}/g,`</p><p>`).replace(/\n/g,`<br>`).replace(/`(.*?)`/g,`<code>$1</code>`)}function I(){setTimeout(()=>{window.location.href=u.value.returnUrl||n.returnUrl||`/admin/dashboard`},750)}function L(e){return!!(e.url||e.email)}function R(e){return e.url?e.url:e.email?P(e):`#`}return r(()=>{n.initialState.nextAction&&M(n.initialState.nextAction)}),i(_,e=>{e&&I()}),(n,r)=>(a(),o(l,null,[s(d(c),{title:e.title},null,8,[`title`]),h(`div`,y,[h(`div`,b,[d(f)&&!d(p)?(a(),o(`craft-spinner`,x)):d(_)?(a(),o(`craft-icon`,S)):d(p)?(a(),o(`craft-icon`,C)):m(``,!0)]),h(`div`,w,[d(u).error?(a(),o(l,{key:0},[h(`p`,{class:`error-message`,innerHTML:F(d(u).error)},null,8,T),d(u).errorDetails?(a(),o(`div`,E,[h(`p`,{innerHTML:F(d(u).errorDetails)},null,8,D)])):m(``,!0)],64)):d(u).status?(a(),o(`p`,{key:1,innerHTML:F(d(u).status)},null,8,O)):m(``,!0)]),d(u).options&&!d(f)?(a(),o(`div`,k,[(a(!0),o(l,null,g(d(u).options,e=>(a(),o(l,{key:e.label},[L(e)?(a(),o(`a`,{key:0,href:R(e),target:e.url?`_blank`:void 0,class:`btn big`},t(e.label),9,A)):(a(),o(`craft-button`,{key:1,type:`button`,onClick:t=>d(N)(e),variant:e.submit?`primary`:`default`,size:`lg`},t(e.label),9,j))],64))),128))])):m(``,!0)])],64))}}),[[`__scopeId`,`data-v-5a0085ac`]]);export{M as default}; \ No newline at end of file diff --git a/resources/build/_plugin-vue_export-helper.js b/resources/build/_plugin-vue_export-helper.js index e1509faaac1..2e8818823bf 100644 --- a/resources/build/_plugin-vue_export-helper.js +++ b/resources/build/_plugin-vue_export-helper.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bg-BG.js","./bg2.js","./cs-CZ.js","./cs2.js","./de-DE.js","./de2.js","./en-AU.js","./en2.js","./en-GB.js","./en-US.js","./es-ES.js","./es2.js","./fr-FR.js","./fr2.js","./fr-BE.js","./hu-HU.js","./hu2.js","./it-IT.js","./it2.js","./nl-BE.js","./nl2.js","./nl-NL.js","./pl-PL.js","./pl2.js","./ro-RO.js","./ro2.js","./ru-RU.js","./ru2.js","./sk-SK.js","./sk2.js","./tr-TR.js","./tr.js","./uk-UA.js","./uk2.js","./bg-BG2.js","./bg3.js","./cs-CZ2.js","./cs3.js","./de-DE2.js","./de3.js","./en-AU2.js","./en3.js","./en-GB2.js","./en-US2.js","./es-ES2.js","./es3.js","./fr-FR2.js","./fr3.js","./fr-BE2.js","./hu-HU2.js","./hu3.js","./it-IT2.js","./it3.js","./nl-BE2.js","./nl3.js","./nl-NL2.js","./pl-PL2.js","./pl3.js","./ro-RO2.js","./ro3.js","./ru-RU2.js","./ru3.js","./sk-SK2.js","./sk3.js","./uk-UA2.js","./uk3.js"])))=>i.map(i=>d[i]); -import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queue-wGK97jCw.js";import{t as d}from"./decorate-DpHfxayW.js";import{a as f,c as p,d as m,f as h,i as g,n as _,p as v,r as y,t as b}from"./lit.js";import{a as x,i as S,o as C,r as w,t as T}from"./decorators.js";import{a as E,i as D,n as ee,o as te,s as ne}from"./nav-item-D3exy0bq.js";var re=``,ie=``;function ae(e){re=e}function oe(e=``){if(!re){let e=document.querySelector(`[data-webawesome]`);if(e?.hasAttribute(`data-webawesome`)){let t=new URL(e.getAttribute(`data-webawesome`)??``,window.location.href).pathname;ae(t)}else{let e=[...document.getElementsByTagName(`script`)].find(e=>e.src.endsWith(`webawesome.js`)||e.src.endsWith(`webawesome.loader.js`)||e.src.endsWith(`webawesome.ssr-loader.js`));e&&ae(String(e.getAttribute(`src`)).split(`/`).slice(0,-1).join(`/`))}}return re.replace(/\/$/,``)+(e?`/${e.replace(/^\//,``)}`:``)}function se(e){ie=e}function ce(){if(!ie){let e=document.querySelector(`[data-fa-kit-code]`);e&&se(e.getAttribute(`data-fa-kit-code`)||``)}return ie}var le=`7.0.1`;function ue(e,t,n){let r=ce(),i=r.length>0,a=`solid`;return t===`notdog`?(n===`solid`&&(a=`solid`),n===`duo-solid`&&(a=`duo-solid`),`https://ka-p.fontawesome.com/releases/v${le}/svgs/notdog-${a}/${e}.svg?token=${encodeURIComponent(r)}`):t===`chisel`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/chisel-regular/${e}.svg?token=${encodeURIComponent(r)}`:t===`etch`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/etch-solid/${e}.svg?token=${encodeURIComponent(r)}`:t===`jelly`?(n===`regular`&&(a=`regular`),n===`duo-regular`&&(a=`duo-regular`),n===`fill-regular`&&(a=`fill-regular`),`https://ka-p.fontawesome.com/releases/v${le}/svgs/jelly-${a}/${e}.svg?token=${encodeURIComponent(r)}`):t===`slab`?((n===`solid`||n===`regular`)&&(a=`regular`),n===`press-regular`&&(a=`press-regular`),`https://ka-p.fontawesome.com/releases/v${le}/svgs/slab-${a}/${e}.svg?token=${encodeURIComponent(r)}`):t===`thumbprint`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/thumbprint-light/${e}.svg?token=${encodeURIComponent(r)}`:t===`whiteboard`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/whiteboard-semibold/${e}.svg?token=${encodeURIComponent(r)}`:(t===`classic`&&(n===`thin`&&(a=`thin`),n===`light`&&(a=`light`),n===`regular`&&(a=`regular`),n===`solid`&&(a=`solid`)),t===`sharp`&&(n===`thin`&&(a=`sharp-thin`),n===`light`&&(a=`sharp-light`),n===`regular`&&(a=`sharp-regular`),n===`solid`&&(a=`sharp-solid`)),t===`duotone`&&(n===`thin`&&(a=`duotone-thin`),n===`light`&&(a=`duotone-light`),n===`regular`&&(a=`duotone-regular`),n===`solid`&&(a=`duotone`)),t===`sharp-duotone`&&(n===`thin`&&(a=`sharp-duotone-thin`),n===`light`&&(a=`sharp-duotone-light`),n===`regular`&&(a=`sharp-duotone-regular`),n===`solid`&&(a=`sharp-duotone-solid`)),t===`brands`&&(a=`brands`),i?`https://ka-p.fontawesome.com/releases/v${le}/svgs/${a}/${e}.svg?token=${encodeURIComponent(r)}`:`https://ka-f.fontawesome.com/releases/v${le}/svgs/${a}/${e}.svg`)}var de={name:`default`,resolver:(e,t=`classic`,n=`solid`)=>ue(e,t,n),mutator:(e,t)=>{if(t?.family&&!e.hasAttribute(`data-duotone-initialized`)){let{family:n,variant:r}=t;if(n===`duotone`||n===`sharp-duotone`||n===`notdog`&&r===`duo-solid`||n===`jelly`&&r===`duo-regular`||n===`thumbprint`){let n=[...e.querySelectorAll(`path`)],r=n.find(e=>!e.hasAttribute(`opacity`)),i=n.find(e=>e.hasAttribute(`opacity`));if(!r||!i)return;if(r.setAttribute(`data-duotone-primary`,``),i.setAttribute(`data-duotone-secondary`,``),t.swapOpacity&&r&&i){let e=i.getAttribute(`opacity`)||`0.4`;r.style.setProperty(`--path-opacity`,e),i.style.setProperty(`--path-opacity`,`1`)}e.setAttribute(`data-duotone-initialized`,``)}}}},fe=`modulepreload`,pe=function(e,t){return new URL(e,t).href},me={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=pe(t,n),t in me)return;me[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:fe,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};new MutationObserver(e=>{for(let{addedNodes:t}of e)for(let e of t)e.nodeType===Node.ELEMENT_NODE&&he(e)});async function he(e){let t=e instanceof Element?e.tagName.toLowerCase():``,n=t?.startsWith(`wa-`),r=[...e.querySelectorAll(`:not(:defined)`)].map(e=>e.tagName.toLowerCase()).filter(e=>e.startsWith(`wa-`));n&&!customElements.get(t)&&r.push(t);let i=[...new Set(r)],a=await Promise.allSettled(i.map(e=>ge(e)));for(let e of a)e.status===`rejected`&&console.warn(e.reason);await new Promise(requestAnimationFrame),e.dispatchEvent(new CustomEvent(`wa-discovery-complete`,{bubbles:!1,cancelable:!1,composed:!0}))}function ge(e){if(customElements.get(e))return Promise.resolve();let t=e.replace(/^wa-/i,``),n=oe(`components/${t}/${t}.js`);return new Promise((t,r)=>{O(()=>import(n).then(()=>t()),[],import.meta.url).catch(()=>r(Error(`Unable to autoload <${e}> from ${n}`)))})}var _e=new Set,ve=new Map,ye,be=`ltr`,xe=`en`,Se=typeof MutationObserver<`u`&&typeof document<`u`&&document.documentElement!==void 0;if(Se){let e=new MutationObserver(we);be=document.documentElement.dir||`ltr`,xe=document.documentElement.lang||navigator.language,e.observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`,`lang`]})}function Ce(...e){e.map(e=>{let t=e.$code.toLowerCase();ve.has(t)?ve.set(t,Object.assign(Object.assign({},ve.get(t)),e)):ve.set(t,e),ye||=e}),we()}function we(){Se&&(be=document.documentElement.dir||`ltr`,xe=document.documentElement.lang||navigator.language),[..._e.keys()].map(e=>{typeof e.requestUpdate==`function`&&e.requestUpdate()})}var Te=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){_e.add(this.host)}hostDisconnected(){_e.delete(this.host)}dir(){return`${this.host.dir||be}`.toLowerCase()}lang(){return`${this.host.lang||xe}`.toLowerCase()}getTranslationData(e){let t=new Intl.Locale(e.replace(/_/g,`-`)),n=t?.language.toLowerCase(),r=(t?.region)?.toLowerCase()??``;return{locale:t,language:n,region:r,primary:ve.get(`${n}-${r}`),secondary:ve.get(n)}}exists(e,t){let{primary:n,secondary:r}=this.getTranslationData(t.lang??this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[e]||r&&r[e]||t.includeFallback&&ye&&ye[e])}term(e,...t){let{primary:n,secondary:r}=this.getTranslationData(this.lang()),i;if(n&&n[e])i=n[e];else if(r&&r[e])i=r[e];else if(ye&&ye[e])i=ye[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof i==`function`?i(...t):i}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?``:new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,n){return new Intl.RelativeTimeFormat(this.lang(),n).format(e,t)}},Ee={$code:`en`,$name:`English`,$dir:`ltr`,carousel:`Carousel`,clearEntry:`Clear entry`,close:`Close`,copied:`Copied`,copy:`Copy`,currentValue:`Current value`,error:`Error`,goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:`Hide password`,loading:`Loading`,nextSlide:`Next slide`,numOptionsSelected:e=>e===0?`No options selected`:e===1?`1 option selected`:`${e} options selected`,pauseAnimation:`Pause animation`,playAnimation:`Play animation`,previousSlide:`Previous slide`,progress:`Progress`,remove:`Remove`,resize:`Resize`,scrollableRegion:`Scrollable region`,scrollToEnd:`Scroll to end`,scrollToStart:`Scroll to start`,selectAColorFromTheScreen:`Select a color from the screen`,showPassword:`Show password`,slideNum:e=>`Slide ${e}`,toggleColorFormat:`Toggle color format`,zoomIn:`Zoom in`,zoomOut:`Zoom out`};Ce(Ee);var De=Ee,Oe=class extends Te{};Ce(De);function ke(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}var Ae={solid:{check:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"/></svg>`,"chevron-down":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>`,"chevron-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>`,"chevron-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>`,circle:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,eyedropper:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M341.6 29.2l-101.6 101.6-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4 101.6-101.6c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4-26.6 39.9c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4l39.9-26.6 42.4 0c21.2 0 41.6-8.4 56.6-23.4l109.4-109.4-45.3-45.3-109.4 109.4c-3 3-7.1 4.7-11.3 4.7l-36.1 0 0-36.1c0-4.2 1.7-8.3 4.7-11.3l109.4-109.4-45.3-45.3-109.4 109.4z"/></svg>`,"grip-vertical":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"/></svg>`,indeterminate:`<svg part="indeterminate-icon" class="icon" viewBox="0 0 16 16"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round"><g stroke="currentColor" stroke-width="2"><g transform="translate(2.285714 6.857143)"><path d="M10.2857143,1.14285714 L1.14285714,1.14285714"/></g></g></g></svg>`,minus:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/></svg>`,pause:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z"/></svg>`,play:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"/></svg>`,user:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/></svg>`,xmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"/></svg>`},regular:{"circle-question":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256-80c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>`,"circle-xmark":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c-9.4 9.4-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>`,copy:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z"/></svg>`,eye:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z"/></svg>`,"eye-slash":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z"/></svg>`}},je={name:`system`,resolver:(e,t=`classic`,n=`solid`)=>{let r=Ae[n][e]??Ae.regular[e]??Ae.regular[`circle-question`];return r?ke(r):``}},Me=`classic`,Ne=[de,je],Pe=[];function Fe(e){Pe.push(e)}function Ie(e){Pe=Pe.filter(t=>t!==e)}function Le(e){return Ne.find(t=>t.name===e)}function Re(e,t){ze(e),Ne.push({name:e,resolver:t.resolver,mutator:t.mutator,spriteSheet:t.spriteSheet}),Pe.forEach(t=>{t.library===e&&t.setIcon()})}function ze(e){Ne=Ne.filter(t=>t.name!==e)}function Be(){return Me}var Ve=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ue=e=>{throw TypeError(e)},k=(e,t,n,r)=>{for(var i=r>1?void 0:r?He(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Ve(t,n,i),i},We=(e,t,n)=>t.has(e)||Ue(`Cannot `+n),Ge=(e,t,n)=>(We(e,t,`read from private field`),n?n.call(e):t.get(e)),Ke=(e,t,n)=>t.has(e)?Ue(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(We(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Je={alert:`triangle-exclamation`,asc:`arrow-down-short-wide`,asset:`image`,assets:`image`,circleuarr:`circle-arrow-up`,collapse:`down-left-and-up-right-to-center`,condition:`diamond`,darr:`arrow-down`,date:`calendar`,desc:`arrow-down-wide-short`,disabled:`circle-dashed`,done:`circle-check`,downangle:`angle-down`,draft:`scribble`,edit:`pencil`,enabled:`circle`,expand:`up-right-and-down-left-from-center`,external:`arrow-up-right-from-square`,field:`pen-to-square`,help:`circle-question`,home:`house`,info:`circle-info`,insecure:`unlock`,larr:`arrow-left`,layout:`table-layout`,leftangle:`angle-left`,listrtl:`list-flip`,location:`location-dot`,mail:`envelope`,menu:`bars`,move:`grip-dots`,newstamp:`certificate`,paperplane:`paper-plane`,plugin:`plug`,rarr:`arrow-right`,refresh:`arrows-rotate`,remove:`xmark`,rightangle:`angle-right`,rotate:`rotate-left`,routes:`signs-post`,search:`magnifying-glass`,secure:`lock`,settings:`gear`,shareleft:`share-flip`,shuteye:`eye-slash`,"sidebar-left":`sidebar`,"sidebar-right":`sidebar-flip`,"sidebar-start":`sidebar`,"sidebar-end":`sidebar-flip`,structure:`list-tree`,structurertl:`list-tree-flip`,template:`file-code`,time:`clock`,tool:`wrench`,uarr:`arrow-up`,upangle:`angle-up`,view:`eye`,wand:`wand-magic-sparkles`};function Ye(e,t=`classic`,n=`regular`){let r=`solid`,i=n,a=e.endsWith(`.svg`)?e.split(`.svg`)[0]:e;if(e.includes(`/`)){let[t,...n]=e.split(`/`);i=t??i,a=n.join(`/`)}return i===`thin`?r=`thin`:i===`light`?r=`light`:i===`regular`?r=`regular`:i===`solid`&&(r=`solid`),t===`brands`&&(r=`brands`),i===`custom-icons`&&(r=`custom-icons`),a=Je[a]??a,`/vendor/craft/icons/${r}/${a}.svg`}function Xe(){Re(`default`,{resolver:(e,t=`classic`,n=`solid`)=>Ye(e,t,n),mutator:e=>e.setAttribute(`fill`,`currentColor`)})}var Ze=class extends HTMLElement{constructor(...e){super(...e),this.cookieName=null,this.state=`collapsed`,this.expanded=!1,this.handleOpen=()=>{this.trigger?.setAttribute(`aria-expanded`,`true`),this.expanded=!0,this.dispatchEvent(new CustomEvent(`open`)),this.target&&(this.target.dataset.state=`expanded`),this.cookieName&&window.Craft?.setCookie(this.cookieName,`expanded`)},this.handleClose=()=>{this.trigger?.setAttribute(`aria-expanded`,`false`),this.expanded=!1,this.dispatchEvent(new CustomEvent(`close`)),this.target&&(this.target.dataset.state=`collapsed`),this.cookieName&&window.Craft?.setCookie(this.cookieName,`collapsed`)}}get trigger(){return this.querySelector(`button[type="button"]`)}get target(){if(!this.trigger)return console.warn(`No trigger found for disclosure.`),null;let e=this.trigger.getAttribute(`aria-controls`);return e?document.getElementById(e):(console.warn(`No target selector found for disclosure.`),null)}connectedCallback(){if(!this.trigger){console.error(`craft-disclosure elements must include a button`,this);return}if(!this.target){console.error(`No target with id ${this.trigger.getAttribute(`aria-controls`)} found for disclosure. `,this.trigger);return}this.cookieName=this.getAttribute(`cookie-name`),this.state=this.getAttribute(`state`)??`expanded`,this.trigger.setAttribute(`aria-expanded`,this.state===`expanded`?`true`:`false`),this.trigger.addEventListener(`click`,this.toggle.bind(this)),this.state===`expanded`?this.open():this.close()}disconnectedCallback(){this.open(),this.trigger?.removeEventListener(`click`,this.toggle.bind(this))}attributeChangedCallback(e,t,n){e===`state`&&(n===`expanded`?this.handleOpen():this.handleClose())}toggle(){this.expanded?this.close():this.open()}open(){this.setAttribute(`state`,`expanded`)}close(){this.setAttribute(`state`,`collapsed`)}};Ze.observedAttributes=[`state`],customElements.get(`craft-disclosure`)||customElements.define(`craft-disclosure`,Ze);var Qe=h` +import{a as e,c as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,o as l,p as u,r as d,s as f,u as p}from"./Queue-wGK97jCw.js";import{t as m}from"./decorate-DpHfxayW.js";import{a as h,c as g,d as _,f as v,i as y,n as b,p as x,r as S,t as C}from"./lit.js";import{a as w,i as T,o as E,r as D,t as O}from"./decorators.js";import{a as k,i as A,n as ee,o as te,s as ne}from"./nav-item-D3exy0bq.js";var re=``,ie=``;function ae(e){re=e}function oe(e=``){if(!re){let e=document.querySelector(`[data-webawesome]`);if(e?.hasAttribute(`data-webawesome`)){let t=new URL(e.getAttribute(`data-webawesome`)??``,window.location.href).pathname;ae(t)}else{let e=[...document.getElementsByTagName(`script`)].find(e=>e.src.endsWith(`webawesome.js`)||e.src.endsWith(`webawesome.loader.js`)||e.src.endsWith(`webawesome.ssr-loader.js`));e&&ae(String(e.getAttribute(`src`)).split(`/`).slice(0,-1).join(`/`))}}return re.replace(/\/$/,``)+(e?`/${e.replace(/^\//,``)}`:``)}function se(e){ie=e}function ce(){if(!ie){let e=document.querySelector(`[data-fa-kit-code]`);e&&se(e.getAttribute(`data-fa-kit-code`)||``)}return ie}var le=`7.0.1`;function ue(e,t,n){let r=ce(),i=r.length>0,a=`solid`;return t===`notdog`?(n===`solid`&&(a=`solid`),n===`duo-solid`&&(a=`duo-solid`),`https://ka-p.fontawesome.com/releases/v${le}/svgs/notdog-${a}/${e}.svg?token=${encodeURIComponent(r)}`):t===`chisel`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/chisel-regular/${e}.svg?token=${encodeURIComponent(r)}`:t===`etch`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/etch-solid/${e}.svg?token=${encodeURIComponent(r)}`:t===`jelly`?(n===`regular`&&(a=`regular`),n===`duo-regular`&&(a=`duo-regular`),n===`fill-regular`&&(a=`fill-regular`),`https://ka-p.fontawesome.com/releases/v${le}/svgs/jelly-${a}/${e}.svg?token=${encodeURIComponent(r)}`):t===`slab`?((n===`solid`||n===`regular`)&&(a=`regular`),n===`press-regular`&&(a=`press-regular`),`https://ka-p.fontawesome.com/releases/v${le}/svgs/slab-${a}/${e}.svg?token=${encodeURIComponent(r)}`):t===`thumbprint`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/thumbprint-light/${e}.svg?token=${encodeURIComponent(r)}`:t===`whiteboard`?`https://ka-p.fontawesome.com/releases/v${le}/svgs/whiteboard-semibold/${e}.svg?token=${encodeURIComponent(r)}`:(t===`classic`&&(n===`thin`&&(a=`thin`),n===`light`&&(a=`light`),n===`regular`&&(a=`regular`),n===`solid`&&(a=`solid`)),t===`sharp`&&(n===`thin`&&(a=`sharp-thin`),n===`light`&&(a=`sharp-light`),n===`regular`&&(a=`sharp-regular`),n===`solid`&&(a=`sharp-solid`)),t===`duotone`&&(n===`thin`&&(a=`duotone-thin`),n===`light`&&(a=`duotone-light`),n===`regular`&&(a=`duotone-regular`),n===`solid`&&(a=`duotone`)),t===`sharp-duotone`&&(n===`thin`&&(a=`sharp-duotone-thin`),n===`light`&&(a=`sharp-duotone-light`),n===`regular`&&(a=`sharp-duotone-regular`),n===`solid`&&(a=`sharp-duotone-solid`)),t===`brands`&&(a=`brands`),i?`https://ka-p.fontawesome.com/releases/v${le}/svgs/${a}/${e}.svg?token=${encodeURIComponent(r)}`:`https://ka-f.fontawesome.com/releases/v${le}/svgs/${a}/${e}.svg`)}var de={name:`default`,resolver:(e,t=`classic`,n=`solid`)=>ue(e,t,n),mutator:(e,t)=>{if(t?.family&&!e.hasAttribute(`data-duotone-initialized`)){let{family:n,variant:r}=t;if(n===`duotone`||n===`sharp-duotone`||n===`notdog`&&r===`duo-solid`||n===`jelly`&&r===`duo-regular`||n===`thumbprint`){let n=[...e.querySelectorAll(`path`)],r=n.find(e=>!e.hasAttribute(`opacity`)),i=n.find(e=>e.hasAttribute(`opacity`));if(!r||!i)return;if(r.setAttribute(`data-duotone-primary`,``),i.setAttribute(`data-duotone-secondary`,``),t.swapOpacity&&r&&i){let e=i.getAttribute(`opacity`)||`0.4`;r.style.setProperty(`--path-opacity`,e),i.style.setProperty(`--path-opacity`,`1`)}e.setAttribute(`data-duotone-initialized`,``)}}}},fe=`modulepreload`,pe=function(e,t){return new URL(e,t).href},me={},j=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=pe(t,n),t in me)return;me[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:fe,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};new MutationObserver(e=>{for(let{addedNodes:t}of e)for(let e of t)e.nodeType===Node.ELEMENT_NODE&&he(e)});async function he(e){let t=e instanceof Element?e.tagName.toLowerCase():``,n=t?.startsWith(`wa-`),r=[...e.querySelectorAll(`:not(:defined)`)].map(e=>e.tagName.toLowerCase()).filter(e=>e.startsWith(`wa-`));n&&!customElements.get(t)&&r.push(t);let i=[...new Set(r)],a=await Promise.allSettled(i.map(e=>ge(e)));for(let e of a)e.status===`rejected`&&console.warn(e.reason);await new Promise(requestAnimationFrame),e.dispatchEvent(new CustomEvent(`wa-discovery-complete`,{bubbles:!1,cancelable:!1,composed:!0}))}function ge(e){if(customElements.get(e))return Promise.resolve();let t=e.replace(/^wa-/i,``),n=oe(`components/${t}/${t}.js`);return new Promise((t,r)=>{j(()=>import(n).then(()=>t()),[],import.meta.url).catch(()=>r(Error(`Unable to autoload <${e}> from ${n}`)))})}var _e=new Set,ve=new Map,ye,be=`ltr`,xe=`en`,Se=typeof MutationObserver<`u`&&typeof document<`u`&&document.documentElement!==void 0;if(Se){let e=new MutationObserver(we);be=document.documentElement.dir||`ltr`,xe=document.documentElement.lang||navigator.language,e.observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`,`lang`]})}function Ce(...e){e.map(e=>{let t=e.$code.toLowerCase();ve.has(t)?ve.set(t,Object.assign(Object.assign({},ve.get(t)),e)):ve.set(t,e),ye||=e}),we()}function we(){Se&&(be=document.documentElement.dir||`ltr`,xe=document.documentElement.lang||navigator.language),[..._e.keys()].map(e=>{typeof e.requestUpdate==`function`&&e.requestUpdate()})}var Te=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){_e.add(this.host)}hostDisconnected(){_e.delete(this.host)}dir(){return`${this.host.dir||be}`.toLowerCase()}lang(){return`${this.host.lang||xe}`.toLowerCase()}getTranslationData(e){let t=new Intl.Locale(e.replace(/_/g,`-`)),n=t?.language.toLowerCase(),r=(t?.region)?.toLowerCase()??``;return{locale:t,language:n,region:r,primary:ve.get(`${n}-${r}`),secondary:ve.get(n)}}exists(e,t){let{primary:n,secondary:r}=this.getTranslationData(t.lang??this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[e]||r&&r[e]||t.includeFallback&&ye&&ye[e])}term(e,...t){let{primary:n,secondary:r}=this.getTranslationData(this.lang()),i;if(n&&n[e])i=n[e];else if(r&&r[e])i=r[e];else if(ye&&ye[e])i=ye[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof i==`function`?i(...t):i}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?``:new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,n){return new Intl.RelativeTimeFormat(this.lang(),n).format(e,t)}},Ee={$code:`en`,$name:`English`,$dir:`ltr`,carousel:`Carousel`,clearEntry:`Clear entry`,close:`Close`,copied:`Copied`,copy:`Copy`,currentValue:`Current value`,error:`Error`,goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:`Hide password`,loading:`Loading`,nextSlide:`Next slide`,numOptionsSelected:e=>e===0?`No options selected`:e===1?`1 option selected`:`${e} options selected`,pauseAnimation:`Pause animation`,playAnimation:`Play animation`,previousSlide:`Previous slide`,progress:`Progress`,remove:`Remove`,resize:`Resize`,scrollableRegion:`Scrollable region`,scrollToEnd:`Scroll to end`,scrollToStart:`Scroll to start`,selectAColorFromTheScreen:`Select a color from the screen`,showPassword:`Show password`,slideNum:e=>`Slide ${e}`,toggleColorFormat:`Toggle color format`,zoomIn:`Zoom in`,zoomOut:`Zoom out`};Ce(Ee);var De=Ee,Oe=class extends Te{};Ce(De);function ke(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}var Ae={solid:{check:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"/></svg>`,"chevron-down":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>`,"chevron-left":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>`,"chevron-right":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>`,circle:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"/></svg>`,eyedropper:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M341.6 29.2l-101.6 101.6-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4 101.6-101.6c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4-26.6 39.9c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4l39.9-26.6 42.4 0c21.2 0 41.6-8.4 56.6-23.4l109.4-109.4-45.3-45.3-109.4 109.4c-3 3-7.1 4.7-11.3 4.7l-36.1 0 0-36.1c0-4.2 1.7-8.3 4.7-11.3l109.4-109.4-45.3-45.3-109.4 109.4z"/></svg>`,"grip-vertical":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"/></svg>`,indeterminate:`<svg part="indeterminate-icon" class="icon" viewBox="0 0 16 16"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round"><g stroke="currentColor" stroke-width="2"><g transform="translate(2.285714 6.857143)"><path d="M10.2857143,1.14285714 L1.14285714,1.14285714"/></g></g></g></svg>`,minus:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"/></svg>`,pause:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z"/></svg>`,play:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"/></svg>`,user:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"/></svg>`,xmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"/></svg>`},regular:{"circle-question":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256-80c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>`,"circle-xmark":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c-9.4 9.4-9.4 24.6 0 33.9l55 55-55 55c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-55-55 55-55c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55-55-55c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>`,copy:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z"/></svg>`,eye:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z"/></svg>`,"eye-slash":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z"/></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z"/></svg>`}},je={name:`system`,resolver:(e,t=`classic`,n=`solid`)=>{let r=Ae[n][e]??Ae.regular[e]??Ae.regular[`circle-question`];return r?ke(r):``}},Me=`classic`,Ne=[de,je],Pe=[];function Fe(e){Pe.push(e)}function Ie(e){Pe=Pe.filter(t=>t!==e)}function Le(e){return Ne.find(t=>t.name===e)}function Re(e,t){ze(e),Ne.push({name:e,resolver:t.resolver,mutator:t.mutator,spriteSheet:t.spriteSheet}),Pe.forEach(t=>{t.library===e&&t.setIcon()})}function ze(e){Ne=Ne.filter(t=>t.name!==e)}function Be(){return Me}var Ve=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ue=e=>{throw TypeError(e)},M=(e,t,n,r)=>{for(var i=r>1?void 0:r?He(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Ve(t,n,i),i},We=(e,t,n)=>t.has(e)||Ue(`Cannot `+n),Ge=(e,t,n)=>(We(e,t,`read from private field`),n?n.call(e):t.get(e)),Ke=(e,t,n)=>t.has(e)?Ue(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(We(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Je={alert:`triangle-exclamation`,asc:`arrow-down-short-wide`,asset:`image`,assets:`image`,circleuarr:`circle-arrow-up`,collapse:`down-left-and-up-right-to-center`,condition:`diamond`,darr:`arrow-down`,date:`calendar`,desc:`arrow-down-wide-short`,disabled:`circle-dashed`,done:`circle-check`,downangle:`angle-down`,draft:`scribble`,edit:`pencil`,enabled:`circle`,expand:`up-right-and-down-left-from-center`,external:`arrow-up-right-from-square`,field:`pen-to-square`,help:`circle-question`,home:`house`,info:`circle-info`,insecure:`unlock`,larr:`arrow-left`,layout:`table-layout`,leftangle:`angle-left`,listrtl:`list-flip`,location:`location-dot`,mail:`envelope`,menu:`bars`,move:`grip-dots`,newstamp:`certificate`,paperplane:`paper-plane`,plugin:`plug`,rarr:`arrow-right`,refresh:`arrows-rotate`,remove:`xmark`,rightangle:`angle-right`,rotate:`rotate-left`,routes:`signs-post`,search:`magnifying-glass`,secure:`lock`,settings:`gear`,shareleft:`share-flip`,shuteye:`eye-slash`,"sidebar-left":`sidebar`,"sidebar-right":`sidebar-flip`,"sidebar-start":`sidebar`,"sidebar-end":`sidebar-flip`,structure:`list-tree`,structurertl:`list-tree-flip`,template:`file-code`,time:`clock`,tool:`wrench`,uarr:`arrow-up`,upangle:`angle-up`,view:`eye`,wand:`wand-magic-sparkles`};function Ye(e,t=`classic`,n=`regular`){let r=`solid`,i=n,a=e.endsWith(`.svg`)?e.split(`.svg`)[0]:e;if(e.includes(`/`)){let[t,...n]=e.split(`/`);i=t??i,a=n.join(`/`)}return i===`thin`?r=`thin`:i===`light`?r=`light`:i===`regular`?r=`regular`:i===`solid`&&(r=`solid`),t===`brands`&&(r=`brands`),i===`custom-icons`&&(r=`custom-icons`),a=Je[a]??a,`/vendor/craft/icons/${r}/${a}.svg`}function Xe(){Re(`default`,{resolver:(e,t=`classic`,n=`solid`)=>Ye(e,t,n),mutator:e=>e.setAttribute(`fill`,`currentColor`)})}var Ze=class extends HTMLElement{constructor(...e){super(...e),this.cookieName=null,this.state=`collapsed`,this.expanded=!1,this.handleOpen=()=>{this.trigger?.setAttribute(`aria-expanded`,`true`),this.expanded=!0,this.dispatchEvent(new CustomEvent(`open`)),this.target&&(this.target.dataset.state=`expanded`),this.cookieName&&window.Craft?.setCookie(this.cookieName,`expanded`)},this.handleClose=()=>{this.trigger?.setAttribute(`aria-expanded`,`false`),this.expanded=!1,this.dispatchEvent(new CustomEvent(`close`)),this.target&&(this.target.dataset.state=`collapsed`),this.cookieName&&window.Craft?.setCookie(this.cookieName,`collapsed`)}}get trigger(){return this.querySelector(`button[type="button"]`)}get target(){if(!this.trigger)return console.warn(`No trigger found for disclosure.`),null;let e=this.trigger.getAttribute(`aria-controls`);return e?document.getElementById(e):(console.warn(`No target selector found for disclosure.`),null)}connectedCallback(){if(!this.trigger){console.error(`craft-disclosure elements must include a button`,this);return}if(!this.target){console.error(`No target with id ${this.trigger.getAttribute(`aria-controls`)} found for disclosure. `,this.trigger);return}this.cookieName=this.getAttribute(`cookie-name`),this.state=this.getAttribute(`state`)??`expanded`,this.trigger.setAttribute(`aria-expanded`,this.state===`expanded`?`true`:`false`),this.trigger.addEventListener(`click`,this.toggle.bind(this)),this.state===`expanded`?this.open():this.close()}disconnectedCallback(){this.open(),this.trigger?.removeEventListener(`click`,this.toggle.bind(this))}attributeChangedCallback(e,t,n){e===`state`&&(n===`expanded`?this.handleOpen():this.handleClose())}toggle(){this.expanded?this.close():this.open()}open(){this.setAttribute(`state`,`expanded`)}close(){this.setAttribute(`state`,`collapsed`)}};Ze.observedAttributes=[`state`],customElements.get(`craft-disclosure`)||customElements.define(`craft-disclosure`,Ze);var Qe=v` :host { --_size: var(--size, 24px); } @@ -45,15 +45,15 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu border-block-end-color: currentcolor; opacity: 0.8; } -`,$e=class extends b{constructor(...e){super(...e),this.visible=!0}show(){this.visible=!0,this.dispatchEvent(new CustomEvent(`show`))}hide(){this.visible=!1,this.dispatchEvent(new CustomEvent(`hide`))}focus(){this.wrapper?.focus()}render(){return p` +`,$e=class extends C{constructor(...e){super(...e),this.visible=!0}show(){this.visible=!0,this.dispatchEvent(new CustomEvent(`show`))}hide(){this.visible=!1,this.dispatchEvent(new CustomEvent(`hide`))}focus(){this.wrapper?.focus()}render(){return g` <div tabindex="-1" - class="${D({wrapper:!0,hidden:!this.visible})}" + class="${A({wrapper:!0,hidden:!this.visible})}" > <div class="spinner"></div> <span class="message visually-hidden"><slot /></span> </div> - `}};$e.styles=[Qe],d([x({reflect:!0})],$e.prototype,`visible`,void 0),d([w(`.wrapper`)],$e.prototype,`wrapper`,void 0),customElements.get(`craft-spinner`)||customElements.define(`craft-spinner`,$e);var et=class extends Event{constructor(){super(`wa-reposition`,{bubbles:!0,cancelable:!1,composed:!0})}},tt=`:host { + `}};$e.styles=[Qe],m([w({reflect:!0})],$e.prototype,`visible`,void 0),m([D(`.wrapper`)],$e.prototype,`wrapper`,void 0),customElements.get(`craft-spinner`)||customElements.define(`craft-spinner`,$e);var et=class extends Event{constructor(){super(`wa-reposition`,{bubbles:!0,cancelable:!1,composed:!0})}},tt=`:host { box-sizing: border-box !important; } @@ -66,7 +66,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu [hidden] { display: none !important; } -`,nt,rt=class extends b{constructor(){super(),Ke(this,nt,!1),this.initialReflectedProperties=new Map,this.didSSR=!!this.shadowRoot,this.customStates={set:(e,t)=>{if(this.internals?.states)try{t?this.internals.states.add(e):this.internals.states.delete(e)}catch(e){if(String(e).includes(`must start with '--'`))console.error(`Your browser implements an outdated version of CustomStateSet. Consider using a polyfill`);else throw e}},has:e=>{if(!this.internals?.states)return!1;try{return this.internals.states.has(e)}catch{return!1}}};try{this.internals=this.attachInternals()}catch{console.error(`Element internals are not supported in your browser. Consider using a polyfill`)}this.customStates.set(`wa-defined`,!0);let e=this.constructor;for(let[t,n]of e.elementProperties)n.default===`inherit`&&n.initial!==void 0&&typeof t==`string`&&this.customStates.set(`initial-${t}-${n.initial}`,!0)}static get styles(){return[tt,...Array.isArray(this.css)?this.css:this.css?[this.css]:[]].map(e=>typeof e==`string`?v(e):e)}attributeChangedCallback(e,t,n){Ge(this,nt)||(this.constructor.elementProperties.forEach((e,t)=>{e.reflect&&this[t]!=null&&this.initialReflectedProperties.set(t,this[t])}),qe(this,nt,!0)),super.attributeChangedCallback(e,t,n)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((t,n)=>{e.has(n)&&this[n]==null&&(this[n]=t)})}firstUpdated(e){super.firstUpdated(e),this.didSSR&&this.shadowRoot?.querySelectorAll(`slot`).forEach(e=>{e.dispatchEvent(new Event(`slotchange`,{bubbles:!0,composed:!1,cancelable:!1}))})}update(e){try{super.update(e)}catch(e){if(this.didSSR&&!this.hasUpdated){let t=new Event(`lit-hydration-error`,{bubbles:!0,composed:!0,cancelable:!1});t.error=e,this.dispatchEvent(t)}throw e}}relayNativeEvent(e,t){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,{...e,...t}))}};nt=new WeakMap,k([x()],rt.prototype,`dir`,2),k([x()],rt.prototype,`lang`,2),k([x({type:Boolean,reflect:!0,attribute:`did-ssr`})],rt.prototype,`didSSR`,2);var it=Math.min,at=Math.max,ot=Math.round,st=Math.floor,ct=e=>({x:e,y:e}),lt={left:`right`,right:`left`,bottom:`top`,top:`bottom`},ut={start:`end`,end:`start`};function dt(e,t,n){return at(e,it(t,n))}function ft(e,t){return typeof e==`function`?e(t):e}function pt(e){return e.split(`-`)[0]}function mt(e){return e.split(`-`)[1]}function ht(e){return e===`x`?`y`:`x`}function gt(e){return e===`y`?`height`:`width`}var _t=new Set([`top`,`bottom`]);function vt(e){return _t.has(pt(e))?`y`:`x`}function yt(e){return ht(vt(e))}function bt(e,t,n){n===void 0&&(n=!1);let r=mt(e),i=yt(e),a=gt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kt(o)),[o,kt(o)]}function xt(e){let t=kt(e);return[St(e),t,St(t)]}function St(e){return e.replace(/start|end/g,e=>ut[e])}var Ct=[`left`,`right`],wt=[`right`,`left`],Tt=[`top`,`bottom`],Et=[`bottom`,`top`];function Dt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wt:Ct:t?Ct:wt;case`left`:case`right`:return t?Tt:Et;default:return[]}}function Ot(e,t,n,r){let i=mt(e),a=Dt(pt(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(St)))),a}function kt(e){return e.replace(/left|right|bottom|top/g,e=>lt[e])}function At(e){return{top:0,right:0,bottom:0,left:0,...e}}function jt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:At(e)}function Mt(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Nt(e,t,n){let{reference:r,floating:i}=e,a=vt(t),o=yt(t),s=gt(o),c=pt(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(mt(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var Pt=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Nt(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Nt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Ft(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ft(t,e),p=jt(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mt(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var It=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ft(e,t)||{};if(l==null)return{};let d=jt(u),f={x:n,y:r},p=yt(i),m=gt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=it(d[_],T),D=it(d[v],T),ee=E,te=C-h[m]-D,ne=C/2-h[m]/2+w,re=dt(ee,ne,te),ie=!c.arrow&&mt(i)!=null&&ne!==re&&a.reference[m]/2-(ne<ee?E:D)-h[m]/2<0,ae=ie?ne<ee?ne-ee:ne-te:0;return{[p]:f[p]+ae,data:{[p]:re,centerOffset:ne-re-ae,...ie&&{alignmentOffset:ae}},reset:ie}}}),Lt=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ft(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=pt(r),_=vt(o),v=pt(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[kt(o)]:xt(o)),x=p!==`none`;!d&&x&&b.push(...Ot(o,m,p,y));let S=[o,...b],C=await Ft(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=bt(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==vt(t))||T.every(e=>vt(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vt(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},Rt=new Set([`left`,`top`]);async function zt(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=pt(n),s=mt(n),c=vt(n)===`y`,l=Rt.has(o)?-1:1,u=a&&c?-1:1,d=ft(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Bt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await zt(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Vt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ft(e,t),l={x:n,y:r},u=await Ft(t,c),d=vt(pt(i)),f=ht(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=dt(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=dt(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Ht=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=ft(e,t),u=await Ft(t,l),d=pt(i),f=mt(i),p=vt(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=it(h-u[g],v),x=it(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=at(u.left,0),t=at(u.right,0),n=at(u.top,0),r=at(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:at(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:at(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<`u`}function Wt(e){return qt(e)?(e.nodeName||``).toLowerCase():`#document`}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kt(e){return((qt(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qt(e){return Ut()?e instanceof Node||e instanceof Gt(e).Node:!1}function Jt(e){return Ut()?e instanceof Element||e instanceof Gt(e).Element:!1}function Yt(e){return Ut()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function Xt(e){return!Ut()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}var Zt=new Set([`inline`,`contents`]);function Qt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zt.has(i)}var $t=new Set([`table`,`td`,`th`]);function en(e){return $t.has(Wt(e))}var tn=[`:popover-open`,`:modal`];function nn(e){return tn.some(t=>{try{return e.matches(t)}catch{return!1}})}var rn=[`transform`,`translate`,`scale`,`rotate`,`perspective`],an=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],on=[`paint`,`layout`,`strict`,`content`];function sn(e){let t=ln(),n=Jt(e)?fn(e):e;return rn.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||an.some(e=>(n.willChange||``).includes(e))||on.some(e=>(n.contain||``).includes(e))}function cn(e){let t=mn(e);for(;Yt(t)&&!dn(t);){if(sn(t))return t;if(nn(t))return null;t=mn(t)}return null}function ln(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var un=new Set([`html`,`body`,`#document`]);function dn(e){return un.has(Wt(e))}function fn(e){return Gt(e).getComputedStyle(e)}function pn(e){return Jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(Wt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||Kt(e);return Xt(t)?t.host:t}function hn(e){let t=mn(e);return dn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Qt(t)?t:hn(t)}function gn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=hn(e),i=r===e.ownerDocument?.body,a=Gt(r);if(i){let e=_n(a);return t.concat(a,a.visualViewport||[],Qt(r)?r:[],e&&n?gn(e):[])}return t.concat(r,gn(r,[],n))}function _n(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vn(e){let t=fn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Yt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ot(n)!==a||ot(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function yn(e){return Jt(e)?e:e.contextElement}function bn(e){let t=yn(e);if(!Yt(t))return ct(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=vn(t),o=(a?ot(n.width):n.width)/r,s=(a?ot(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var xn=ct(0);function Sn(e){let t=Gt(e);return!ln()||!t.visualViewport?xn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function wn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=yn(e),o=ct(1);t&&(r?Jt(r)&&(o=bn(r)):o=bn(e));let s=Cn(a,n,r)?Sn(a):ct(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Gt(a),t=r&&Jt(r)?Gt(r):r,n=e,i=_n(n);for(;i&&r&&t!==n;){let e=bn(i),t=i.getBoundingClientRect(),r=fn(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Gt(i),i=_n(n)}}return Mt({width:u,height:d,x:c,y:l})}function Tn(e,t){let n=pn(e).scrollLeft;return t?t.left+n:wn(Kt(e)).left+n}function En(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Tn(e,n),y:n.top+t.scrollTop}}function Dn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Kt(r),s=t?nn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ct(1),u=ct(0),d=Yt(r);if((d||!d&&!a)&&((Wt(r)!==`body`||Qt(o))&&(c=pn(r)),Yt(r))){let e=wn(r);l=bn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?En(o,c):ct(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function On(e){return Array.from(e.getClientRects())}function kn(e){let t=Kt(e),n=pn(e),r=e.ownerDocument.body,i=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Tn(e),s=-n.scrollTop;return fn(r).direction===`rtl`&&(o+=at(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var An=25;function jn(e,t){let n=Gt(e),r=Kt(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ln();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Tn(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=An&&(a-=o)}else l<=An&&(a+=l);return{width:a,height:o,x:s,y:c}}var Mn=new Set([`absolute`,`fixed`]);function Nn(e,t){let n=wn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yt(e)?bn(e):ct(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pn(e,t,n){let r;if(t===`viewport`)r=jn(e,n);else if(t===`document`)r=kn(Kt(e));else if(Jt(t))r=Nn(t,n);else{let n=Sn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mt(r)}function Fn(e,t){let n=mn(e);return n===t||!Jt(n)||dn(n)?!1:fn(n).position===`fixed`||Fn(n,t)}function In(e,t){let n=t.get(e);if(n)return n;let r=gn(e,[],!1).filter(e=>Jt(e)&&Wt(e)!==`body`),i=null,a=fn(e).position===`fixed`,o=a?mn(e):e;for(;Jt(o)&&!dn(o);){let t=fn(o),n=sn(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Mn.has(i.position)||Qt(o)&&!n&&Fn(e,o))?r=r.filter(e=>e!==o):i=t,o=mn(o)}return t.set(e,r),r}function Ln(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?nn(t)?[]:In(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Pn(t,n,i);return e.top=at(r.top,e.top),e.right=it(r.right,e.right),e.bottom=it(r.bottom,e.bottom),e.left=at(r.left,e.left),e},Pn(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Rn(e){let{width:t,height:n}=vn(e);return{width:t,height:n}}function zn(e,t,n){let r=Yt(t),i=Kt(t),a=n===`fixed`,o=wn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ct(0);function l(){c.x=Tn(i)}if(r||!r&&!a)if((Wt(t)!==`body`||Qt(i))&&(s=pn(t)),r){let e=wn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?En(i,s):ct(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Bn(e){return fn(e).position===`static`}function Vn(e,t){if(!Yt(e)||fn(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Kt(e)===n&&(n=n.ownerDocument.body),n}function Hn(e,t){let n=Gt(e);if(nn(e))return n;if(!Yt(e)){let t=mn(e);for(;t&&!dn(t);){if(Jt(t)&&!Bn(t))return t;t=mn(t)}return n}let r=Vn(e,t);for(;r&&en(r)&&Bn(r);)r=Vn(r,t);return r&&dn(r)&&Bn(r)&&!sn(r)?n:r||cn(e)||n}var Un=async function(e){let t=this.getOffsetParent||Hn,n=this.getDimensions,r=await n(e.floating);return{reference:zn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wn(e){return fn(e).direction===`rtl`}var Gn={convertOffsetParentRelativeRectToViewportRelativeRect:Dn,getDocumentElement:Kt,getClippingRect:Ln,getOffsetParent:Hn,getElementRects:Un,getClientRects:On,getDimensions:Rn,getScale:bn,isElement:Jt,isRTL:Wn};function Kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qn(e,t){let n=null,r,i=Kt(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=st(d),h=st(i.clientWidth-(u+f)),g=st(i.clientHeight-(d+p)),_=st(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:at(0,it(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Kn(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Jn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=yn(e),u=i||a?[...l?gn(l):[],...gn(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qn(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?wn(e):null;c&&g();function g(){let t=wn(e);h&&!Kn(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yn=Bt,Xn=Vt,Zn=Lt,Qn=Ht,$n=It,er=(e,t,n)=>{let r=new Map,i={platform:Gn,...n},a={...i.platform,_c:r};return Pt(e,t,{...i,platform:a})};function tr(e){return rr(e)}function nr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function rr(e){for(let t=e;t;t=nr(t))if(t instanceof Element&&getComputedStyle(t).display===`none`)return null;for(let t=nr(e);t;t=nr(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!==`contents`&&(e.position!==`static`||sn(e)||t.tagName===`BODY`))return t}return null}var ir=`:host { +`,nt,rt=class extends C{constructor(){super(),Ke(this,nt,!1),this.initialReflectedProperties=new Map,this.didSSR=!!this.shadowRoot,this.customStates={set:(e,t)=>{if(this.internals?.states)try{t?this.internals.states.add(e):this.internals.states.delete(e)}catch(e){if(String(e).includes(`must start with '--'`))console.error(`Your browser implements an outdated version of CustomStateSet. Consider using a polyfill`);else throw e}},has:e=>{if(!this.internals?.states)return!1;try{return this.internals.states.has(e)}catch{return!1}}};try{this.internals=this.attachInternals()}catch{console.error(`Element internals are not supported in your browser. Consider using a polyfill`)}this.customStates.set(`wa-defined`,!0);let e=this.constructor;for(let[t,n]of e.elementProperties)n.default===`inherit`&&n.initial!==void 0&&typeof t==`string`&&this.customStates.set(`initial-${t}-${n.initial}`,!0)}static get styles(){return[tt,...Array.isArray(this.css)?this.css:this.css?[this.css]:[]].map(e=>typeof e==`string`?x(e):e)}attributeChangedCallback(e,t,n){Ge(this,nt)||(this.constructor.elementProperties.forEach((e,t)=>{e.reflect&&this[t]!=null&&this.initialReflectedProperties.set(t,this[t])}),qe(this,nt,!0)),super.attributeChangedCallback(e,t,n)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((t,n)=>{e.has(n)&&this[n]==null&&(this[n]=t)})}firstUpdated(e){super.firstUpdated(e),this.didSSR&&this.shadowRoot?.querySelectorAll(`slot`).forEach(e=>{e.dispatchEvent(new Event(`slotchange`,{bubbles:!0,composed:!1,cancelable:!1}))})}update(e){try{super.update(e)}catch(e){if(this.didSSR&&!this.hasUpdated){let t=new Event(`lit-hydration-error`,{bubbles:!0,composed:!0,cancelable:!1});t.error=e,this.dispatchEvent(t)}throw e}}relayNativeEvent(e,t){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,{...e,...t}))}};nt=new WeakMap,M([w()],rt.prototype,`dir`,2),M([w()],rt.prototype,`lang`,2),M([w({type:Boolean,reflect:!0,attribute:`did-ssr`})],rt.prototype,`didSSR`,2);var it=Math.min,at=Math.max,ot=Math.round,st=Math.floor,ct=e=>({x:e,y:e}),lt={left:`right`,right:`left`,bottom:`top`,top:`bottom`},ut={start:`end`,end:`start`};function dt(e,t,n){return at(e,it(t,n))}function ft(e,t){return typeof e==`function`?e(t):e}function pt(e){return e.split(`-`)[0]}function mt(e){return e.split(`-`)[1]}function ht(e){return e===`x`?`y`:`x`}function gt(e){return e===`y`?`height`:`width`}var _t=new Set([`top`,`bottom`]);function vt(e){return _t.has(pt(e))?`y`:`x`}function yt(e){return ht(vt(e))}function bt(e,t,n){n===void 0&&(n=!1);let r=mt(e),i=yt(e),a=gt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kt(o)),[o,kt(o)]}function xt(e){let t=kt(e);return[St(e),t,St(t)]}function St(e){return e.replace(/start|end/g,e=>ut[e])}var Ct=[`left`,`right`],wt=[`right`,`left`],Tt=[`top`,`bottom`],Et=[`bottom`,`top`];function Dt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wt:Ct:t?Ct:wt;case`left`:case`right`:return t?Tt:Et;default:return[]}}function Ot(e,t,n,r){let i=mt(e),a=Dt(pt(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(St)))),a}function kt(e){return e.replace(/left|right|bottom|top/g,e=>lt[e])}function At(e){return{top:0,right:0,bottom:0,left:0,...e}}function jt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:At(e)}function Mt(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Nt(e,t,n){let{reference:r,floating:i}=e,a=vt(t),o=yt(t),s=gt(o),c=pt(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(mt(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var Pt=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Nt(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Nt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Ft(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ft(t,e),p=jt(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mt(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var It=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ft(e,t)||{};if(l==null)return{};let d=jt(u),f={x:n,y:r},p=yt(i),m=gt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=it(d[_],T),D=it(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,ee=dt(O,A,k),te=!c.arrow&&mt(i)!=null&&A!==ee&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,ne=te?A<O?A-O:A-k:0;return{[p]:f[p]+ne,data:{[p]:ee,centerOffset:A-ee-ne,...te&&{alignmentOffset:ne}},reset:te}}}),Lt=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ft(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=pt(r),_=vt(o),v=pt(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[kt(o)]:xt(o)),x=p!==`none`;!d&&x&&b.push(...Ot(o,m,p,y));let S=[o,...b],C=await Ft(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=bt(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==vt(t))||T.every(e=>vt(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vt(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},Rt=new Set([`left`,`top`]);async function zt(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=pt(n),s=mt(n),c=vt(n)===`y`,l=Rt.has(o)?-1:1,u=a&&c?-1:1,d=ft(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Bt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await zt(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Vt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ft(e,t),l={x:n,y:r},u=await Ft(t,c),d=vt(pt(i)),f=ht(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=dt(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=dt(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Ht=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=ft(e,t),u=await Ft(t,l),d=pt(i),f=mt(i),p=vt(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=it(h-u[g],v),x=it(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=at(u.left,0),t=at(u.right,0),n=at(u.top,0),r=at(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:at(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:at(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<`u`}function Wt(e){return qt(e)?(e.nodeName||``).toLowerCase():`#document`}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kt(e){return((qt(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qt(e){return Ut()?e instanceof Node||e instanceof Gt(e).Node:!1}function Jt(e){return Ut()?e instanceof Element||e instanceof Gt(e).Element:!1}function Yt(e){return Ut()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function Xt(e){return!Ut()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}var Zt=new Set([`inline`,`contents`]);function Qt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Zt.has(i)}var $t=new Set([`table`,`td`,`th`]);function en(e){return $t.has(Wt(e))}var tn=[`:popover-open`,`:modal`];function nn(e){return tn.some(t=>{try{return e.matches(t)}catch{return!1}})}var rn=[`transform`,`translate`,`scale`,`rotate`,`perspective`],an=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],on=[`paint`,`layout`,`strict`,`content`];function sn(e){let t=ln(),n=Jt(e)?fn(e):e;return rn.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||an.some(e=>(n.willChange||``).includes(e))||on.some(e=>(n.contain||``).includes(e))}function cn(e){let t=mn(e);for(;Yt(t)&&!dn(t);){if(sn(t))return t;if(nn(t))return null;t=mn(t)}return null}function ln(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var un=new Set([`html`,`body`,`#document`]);function dn(e){return un.has(Wt(e))}function fn(e){return Gt(e).getComputedStyle(e)}function pn(e){return Jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(Wt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||Kt(e);return Xt(t)?t.host:t}function hn(e){let t=mn(e);return dn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Qt(t)?t:hn(t)}function gn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=hn(e),i=r===e.ownerDocument?.body,a=Gt(r);if(i){let e=_n(a);return t.concat(a,a.visualViewport||[],Qt(r)?r:[],e&&n?gn(e):[])}return t.concat(r,gn(r,[],n))}function _n(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vn(e){let t=fn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Yt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ot(n)!==a||ot(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function yn(e){return Jt(e)?e:e.contextElement}function bn(e){let t=yn(e);if(!Yt(t))return ct(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=vn(t),o=(a?ot(n.width):n.width)/r,s=(a?ot(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var xn=ct(0);function Sn(e){let t=Gt(e);return!ln()||!t.visualViewport?xn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function wn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=yn(e),o=ct(1);t&&(r?Jt(r)&&(o=bn(r)):o=bn(e));let s=Cn(a,n,r)?Sn(a):ct(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Gt(a),t=r&&Jt(r)?Gt(r):r,n=e,i=_n(n);for(;i&&r&&t!==n;){let e=bn(i),t=i.getBoundingClientRect(),r=fn(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Gt(i),i=_n(n)}}return Mt({width:u,height:d,x:c,y:l})}function Tn(e,t){let n=pn(e).scrollLeft;return t?t.left+n:wn(Kt(e)).left+n}function En(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Tn(e,n),y:n.top+t.scrollTop}}function Dn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Kt(r),s=t?nn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ct(1),u=ct(0),d=Yt(r);if((d||!d&&!a)&&((Wt(r)!==`body`||Qt(o))&&(c=pn(r)),Yt(r))){let e=wn(r);l=bn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?En(o,c):ct(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function On(e){return Array.from(e.getClientRects())}function kn(e){let t=Kt(e),n=pn(e),r=e.ownerDocument.body,i=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Tn(e),s=-n.scrollTop;return fn(r).direction===`rtl`&&(o+=at(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var An=25;function jn(e,t){let n=Gt(e),r=Kt(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ln();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Tn(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=An&&(a-=o)}else l<=An&&(a+=l);return{width:a,height:o,x:s,y:c}}var Mn=new Set([`absolute`,`fixed`]);function Nn(e,t){let n=wn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yt(e)?bn(e):ct(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pn(e,t,n){let r;if(t===`viewport`)r=jn(e,n);else if(t===`document`)r=kn(Kt(e));else if(Jt(t))r=Nn(t,n);else{let n=Sn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mt(r)}function Fn(e,t){let n=mn(e);return n===t||!Jt(n)||dn(n)?!1:fn(n).position===`fixed`||Fn(n,t)}function In(e,t){let n=t.get(e);if(n)return n;let r=gn(e,[],!1).filter(e=>Jt(e)&&Wt(e)!==`body`),i=null,a=fn(e).position===`fixed`,o=a?mn(e):e;for(;Jt(o)&&!dn(o);){let t=fn(o),n=sn(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&Mn.has(i.position)||Qt(o)&&!n&&Fn(e,o))?r=r.filter(e=>e!==o):i=t,o=mn(o)}return t.set(e,r),r}function Ln(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?nn(t)?[]:In(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Pn(t,n,i);return e.top=at(r.top,e.top),e.right=it(r.right,e.right),e.bottom=it(r.bottom,e.bottom),e.left=at(r.left,e.left),e},Pn(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Rn(e){let{width:t,height:n}=vn(e);return{width:t,height:n}}function zn(e,t,n){let r=Yt(t),i=Kt(t),a=n===`fixed`,o=wn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ct(0);function l(){c.x=Tn(i)}if(r||!r&&!a)if((Wt(t)!==`body`||Qt(i))&&(s=pn(t)),r){let e=wn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?En(i,s):ct(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Bn(e){return fn(e).position===`static`}function Vn(e,t){if(!Yt(e)||fn(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Kt(e)===n&&(n=n.ownerDocument.body),n}function Hn(e,t){let n=Gt(e);if(nn(e))return n;if(!Yt(e)){let t=mn(e);for(;t&&!dn(t);){if(Jt(t)&&!Bn(t))return t;t=mn(t)}return n}let r=Vn(e,t);for(;r&&en(r)&&Bn(r);)r=Vn(r,t);return r&&dn(r)&&Bn(r)&&!sn(r)?n:r||cn(e)||n}var Un=async function(e){let t=this.getOffsetParent||Hn,n=this.getDimensions,r=await n(e.floating);return{reference:zn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wn(e){return fn(e).direction===`rtl`}var Gn={convertOffsetParentRelativeRectToViewportRelativeRect:Dn,getDocumentElement:Kt,getClippingRect:Ln,getOffsetParent:Hn,getElementRects:Un,getClientRects:On,getDimensions:Rn,getScale:bn,isElement:Jt,isRTL:Wn};function Kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qn(e,t){let n=null,r,i=Kt(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=st(d),h=st(i.clientWidth-(u+f)),g=st(i.clientHeight-(d+p)),_=st(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:at(0,it(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Kn(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Jn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=yn(e),u=i||a?[...l?gn(l):[],...gn(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qn(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?wn(e):null;c&&g();function g(){let t=wn(e);h&&!Kn(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yn=Bt,Xn=Vt,Zn=Lt,Qn=Ht,$n=It,er=(e,t,n)=>{let r=new Map,i={platform:Gn,...n},a={...i.platform,_c:r};return Pt(e,t,{...i,platform:a})};function tr(e){return rr(e)}function nr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function rr(e){for(let t=e;t;t=nr(t))if(t instanceof Element&&getComputedStyle(t).display===`none`)return null;for(let t=nr(e);t;t=nr(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!==`contents`&&(e.position!==`static`||sn(e)||t.tagName===`BODY`))return t}return null}var ir=`:host { --arrow-color: black; --arrow-size: var(--wa-tooltip-arrow-size); --show-duration: 100ms; @@ -187,23 +187,23 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu scale: 1; } } -`;function ar(e){return typeof e==`object`&&!!e&&`getBoundingClientRect`in e&&(`contextElement`in e?e instanceof Element:!0)}var or=globalThis?.HTMLElement?.prototype.hasOwnProperty(`popover`),A=class extends rt{constructor(){super(...arguments),this.localize=new Oe(this),this.active=!1,this.placement=`top`,this.boundary=`viewport`,this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement=`anchor`,this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements=``,this.flipFallbackStrategy=`best-fit`,this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect(),n=this.placement.includes(`top`)||this.placement.includes(`bottom`),r=0,i=0,a=0,o=0,s=0,c=0,l=0,u=0;n?e.top<t.top?(r=e.left,i=e.bottom,a=e.right,o=e.bottom,s=t.left,c=t.top,l=t.right,u=t.top):(r=t.left,i=t.bottom,a=t.right,o=t.bottom,s=e.left,c=e.top,l=e.right,u=e.top):e.left<t.left?(r=e.right,i=e.top,a=t.left,o=t.top,s=e.right,c=e.bottom,l=t.left,u=t.bottom):(r=t.right,i=t.top,a=e.left,o=e.top,s=t.right,c=t.bottom,l=e.left,u=e.bottom),this.style.setProperty(`--hover-bridge-top-left-x`,`${r}px`),this.style.setProperty(`--hover-bridge-top-left-y`,`${i}px`),this.style.setProperty(`--hover-bridge-top-right-x`,`${a}px`),this.style.setProperty(`--hover-bridge-top-right-y`,`${o}px`),this.style.setProperty(`--hover-bridge-bottom-left-x`,`${s}px`),this.style.setProperty(`--hover-bridge-bottom-left-y`,`${c}px`),this.style.setProperty(`--hover-bridge-bottom-right-x`,`${l}px`),this.style.setProperty(`--hover-bridge-bottom-right-y`,`${u}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has(`active`)&&(this.active?this.start():this.stop()),e.has(`anchor`)&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){await this.stop(),this.anchor&&typeof this.anchor==`string`?this.anchorEl=this.getRootNode().getElementById(this.anchor):this.anchor instanceof Element||ar(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector(`[slot="anchor"]`),this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){!this.anchorEl||!this.active||(this.popup.showPopover?.(),this.cleanup=Jn(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(e=>{this.popup.hidePopover?.(),this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute(`data-current-placement`),this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`),requestAnimationFrame(()=>e())):e()})}reposition(){if(!this.active||!this.anchorEl)return;let e=[Yn({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(Qn({apply:({rects:e})=>{let t=this.sync===`width`||this.sync===`both`,n=this.sync===`height`||this.sync===`both`;this.popup.style.width=t?`${e.reference.width}px`:``,this.popup.style.height=n?`${e.reference.height}px`:``}})):(this.popup.style.width=``,this.popup.style.height=``);let t;or&&!ar(this.anchor)&&this.boundary===`scroll`&&(t=gn(this.anchorEl).filter(e=>e instanceof Element)),this.flip&&e.push(Zn({boundary:this.flipBoundary||t,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy===`best-fit`?`bestFit`:`initialPlacement`,padding:this.flipPadding})),this.shift&&e.push(Xn({boundary:this.shiftBoundary||t,padding:this.shiftPadding})),this.autoSize?e.push(Qn({boundary:this.autoSizeBoundary||t,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:t})=>{this.autoSize===`vertical`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-height`,`${t}px`):this.style.removeProperty(`--auto-size-available-height`),this.autoSize===`horizontal`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-width`,`${e}px`):this.style.removeProperty(`--auto-size-available-width`)}})):(this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`)),this.arrow&&e.push($n({element:this.arrowEl,padding:this.arrowPadding}));let n=or?e=>Gn.getOffsetParent(e,tr):Gn.getOffsetParent;er(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:or?`absolute`:`fixed`,platform:{...Gn,getOffsetParent:n}}).then(({x:e,y:t,middlewareData:n,placement:r})=>{let i=this.localize.dir()===`rtl`,a={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[r.split(`-`)[0]];if(this.setAttribute(`data-current-placement`,r),Object.assign(this.popup.style,{left:`${e}px`,top:`${t}px`}),this.arrow){let e=n.arrow.x,t=n.arrow.y,r=``,o=``,s=``,c=``;if(this.arrowPlacement===`start`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;r=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``,o=i?n:``,c=i?``:n}else if(this.arrowPlacement===`end`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;o=i?``:n,c=i?n:``,s=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``}else this.arrowPlacement===`center`?(c=typeof e==`number`?`calc(50% - var(--arrow-size-diagonal))`:``,r=typeof t==`number`?`calc(50% - var(--arrow-size-diagonal))`:``):(c=typeof e==`number`?`${e}px`:``,r=typeof t==`number`?`${t}px`:``);Object.assign(this.arrowEl.style,{top:r,right:o,bottom:s,left:c,[a]:`calc(var(--arrow-size-diagonal) * -1)`})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.dispatchEvent(new et)}render(){return p` +`;function ar(e){return typeof e==`object`&&!!e&&`getBoundingClientRect`in e&&(`contextElement`in e?e instanceof Element:!0)}var or=globalThis?.HTMLElement?.prototype.hasOwnProperty(`popover`),N=class extends rt{constructor(){super(...arguments),this.localize=new Oe(this),this.active=!1,this.placement=`top`,this.boundary=`viewport`,this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement=`anchor`,this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements=``,this.flipFallbackStrategy=`best-fit`,this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let e=this.anchorEl.getBoundingClientRect(),t=this.popup.getBoundingClientRect(),n=this.placement.includes(`top`)||this.placement.includes(`bottom`),r=0,i=0,a=0,o=0,s=0,c=0,l=0,u=0;n?e.top<t.top?(r=e.left,i=e.bottom,a=e.right,o=e.bottom,s=t.left,c=t.top,l=t.right,u=t.top):(r=t.left,i=t.bottom,a=t.right,o=t.bottom,s=e.left,c=e.top,l=e.right,u=e.top):e.left<t.left?(r=e.right,i=e.top,a=t.left,o=t.top,s=e.right,c=e.bottom,l=t.left,u=t.bottom):(r=t.right,i=t.top,a=e.left,o=e.top,s=t.right,c=t.bottom,l=e.left,u=e.bottom),this.style.setProperty(`--hover-bridge-top-left-x`,`${r}px`),this.style.setProperty(`--hover-bridge-top-left-y`,`${i}px`),this.style.setProperty(`--hover-bridge-top-right-x`,`${a}px`),this.style.setProperty(`--hover-bridge-top-right-y`,`${o}px`),this.style.setProperty(`--hover-bridge-bottom-left-x`,`${s}px`),this.style.setProperty(`--hover-bridge-bottom-left-y`,`${c}px`),this.style.setProperty(`--hover-bridge-bottom-right-x`,`${l}px`),this.style.setProperty(`--hover-bridge-bottom-right-y`,`${u}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has(`active`)&&(this.active?this.start():this.stop()),e.has(`anchor`)&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){await this.stop(),this.anchor&&typeof this.anchor==`string`?this.anchorEl=this.getRootNode().getElementById(this.anchor):this.anchor instanceof Element||ar(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector(`[slot="anchor"]`),this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){!this.anchorEl||!this.active||(this.popup.showPopover?.(),this.cleanup=Jn(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(e=>{this.popup.hidePopover?.(),this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute(`data-current-placement`),this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`),requestAnimationFrame(()=>e())):e()})}reposition(){if(!this.active||!this.anchorEl)return;let e=[Yn({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(Qn({apply:({rects:e})=>{let t=this.sync===`width`||this.sync===`both`,n=this.sync===`height`||this.sync===`both`;this.popup.style.width=t?`${e.reference.width}px`:``,this.popup.style.height=n?`${e.reference.height}px`:``}})):(this.popup.style.width=``,this.popup.style.height=``);let t;or&&!ar(this.anchor)&&this.boundary===`scroll`&&(t=gn(this.anchorEl).filter(e=>e instanceof Element)),this.flip&&e.push(Zn({boundary:this.flipBoundary||t,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy===`best-fit`?`bestFit`:`initialPlacement`,padding:this.flipPadding})),this.shift&&e.push(Xn({boundary:this.shiftBoundary||t,padding:this.shiftPadding})),this.autoSize?e.push(Qn({boundary:this.autoSizeBoundary||t,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:t})=>{this.autoSize===`vertical`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-height`,`${t}px`):this.style.removeProperty(`--auto-size-available-height`),this.autoSize===`horizontal`||this.autoSize===`both`?this.style.setProperty(`--auto-size-available-width`,`${e}px`):this.style.removeProperty(`--auto-size-available-width`)}})):(this.style.removeProperty(`--auto-size-available-width`),this.style.removeProperty(`--auto-size-available-height`)),this.arrow&&e.push($n({element:this.arrowEl,padding:this.arrowPadding}));let n=or?e=>Gn.getOffsetParent(e,tr):Gn.getOffsetParent;er(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:or?`absolute`:`fixed`,platform:{...Gn,getOffsetParent:n}}).then(({x:e,y:t,middlewareData:n,placement:r})=>{let i=this.localize.dir()===`rtl`,a={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[r.split(`-`)[0]];if(this.setAttribute(`data-current-placement`,r),Object.assign(this.popup.style,{left:`${e}px`,top:`${t}px`}),this.arrow){let e=n.arrow.x,t=n.arrow.y,r=``,o=``,s=``,c=``;if(this.arrowPlacement===`start`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;r=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``,o=i?n:``,c=i?``:n}else if(this.arrowPlacement===`end`){let n=typeof e==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``;o=i?``:n,c=i?n:``,s=typeof t==`number`?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:``}else this.arrowPlacement===`center`?(c=typeof e==`number`?`calc(50% - var(--arrow-size-diagonal))`:``,r=typeof t==`number`?`calc(50% - var(--arrow-size-diagonal))`:``):(c=typeof e==`number`?`${e}px`:``,r=typeof t==`number`?`${t}px`:``);Object.assign(this.arrowEl.style,{top:r,right:o,bottom:s,left:c,[a]:`calc(var(--arrow-size-diagonal) * -1)`})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.dispatchEvent(new et)}render(){return g` <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot> <span part="hover-bridge" - class=${D({"popup-hover-bridge":!0,"popup-hover-bridge-visible":this.hoverBridge&&this.active})} + class=${A({"popup-hover-bridge":!0,"popup-hover-bridge-visible":this.hoverBridge&&this.active})} ></span> <div popover="manual" part="popup" - class=${D({popup:!0,"popup-active":this.active,"popup-fixed":!or,"popup-has-arrow":this.arrow})} + class=${A({popup:!0,"popup-active":this.active,"popup-fixed":!or,"popup-has-arrow":this.arrow})} > <slot></slot> - ${this.arrow?p`<div part="arrow" class="arrow" role="presentation"></div>`:``} + ${this.arrow?g`<div part="arrow" class="arrow" role="presentation"></div>`:``} </div> - `}};A.css=ir,k([w(`.popup`)],A.prototype,`popup`,2),k([w(`.arrow`)],A.prototype,`arrowEl`,2),k([x()],A.prototype,`anchor`,2),k([x({type:Boolean,reflect:!0})],A.prototype,`active`,2),k([x({reflect:!0})],A.prototype,`placement`,2),k([x()],A.prototype,`boundary`,2),k([x({type:Number})],A.prototype,`distance`,2),k([x({type:Number})],A.prototype,`skidding`,2),k([x({type:Boolean})],A.prototype,`arrow`,2),k([x({attribute:`arrow-placement`})],A.prototype,`arrowPlacement`,2),k([x({attribute:`arrow-padding`,type:Number})],A.prototype,`arrowPadding`,2),k([x({type:Boolean})],A.prototype,`flip`,2),k([x({attribute:`flip-fallback-placements`,converter:{fromAttribute:e=>e.split(` `).map(e=>e.trim()).filter(e=>e!==``),toAttribute:e=>e.join(` `)}})],A.prototype,`flipFallbackPlacements`,2),k([x({attribute:`flip-fallback-strategy`})],A.prototype,`flipFallbackStrategy`,2),k([x({type:Object})],A.prototype,`flipBoundary`,2),k([x({attribute:`flip-padding`,type:Number})],A.prototype,`flipPadding`,2),k([x({type:Boolean})],A.prototype,`shift`,2),k([x({type:Object})],A.prototype,`shiftBoundary`,2),k([x({attribute:`shift-padding`,type:Number})],A.prototype,`shiftPadding`,2),k([x({attribute:`auto-size`})],A.prototype,`autoSize`,2),k([x()],A.prototype,`sync`,2),k([x({type:Object})],A.prototype,`autoSizeBoundary`,2),k([x({attribute:`auto-size-padding`,type:Number})],A.prototype,`autoSizePadding`,2),k([x({attribute:`hover-bridge`,type:Boolean})],A.prototype,`hoverBridge`,2),A=k([C(`wa-popup`)],A);var sr=class extends Event{constructor(){super(`wa-after-hide`,{bubbles:!0,cancelable:!1,composed:!0})}},cr=class extends Event{constructor(){super(`wa-after-show`,{bubbles:!0,cancelable:!1,composed:!0})}},lr=class extends Event{constructor(e){super(`wa-hide`,{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}},ur=class extends Event{constructor(){super(`wa-show`,{bubbles:!0,cancelable:!0,composed:!0})}},dr=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,fr=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=dr[n[e]&63];return t};function pr(e=``){return`${e}${fr()}`}function mr(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}function hr(e,t){return new Promise(n=>{let r=new AbortController,{signal:i}=r;if(e.classList.contains(t))return;e.classList.remove(t),e.classList.add(t);let a=()=>{e.classList.remove(t),n(),r.abort()};e.addEventListener(`animationend`,a,{once:!0,signal:i}),e.addEventListener(`animationcancel`,a,{once:!0,signal:i})})}function gr(e,t){let n={waitUntilFirstUpdate:!1,...t};return(t,r)=>{let{update:i}=t,a=Array.isArray(e)?e:[e];t.update=function(e){a.forEach(t=>{let i=t;if(e.has(i)){let t=e.get(i),a=this[i];t!==a&&(!n.waitUntilFirstUpdate||this.hasUpdated)&&this[r](t,a)}}),i.call(this,e)}}}var _r=`:host { + `}};N.css=ir,M([D(`.popup`)],N.prototype,`popup`,2),M([D(`.arrow`)],N.prototype,`arrowEl`,2),M([w()],N.prototype,`anchor`,2),M([w({type:Boolean,reflect:!0})],N.prototype,`active`,2),M([w({reflect:!0})],N.prototype,`placement`,2),M([w()],N.prototype,`boundary`,2),M([w({type:Number})],N.prototype,`distance`,2),M([w({type:Number})],N.prototype,`skidding`,2),M([w({type:Boolean})],N.prototype,`arrow`,2),M([w({attribute:`arrow-placement`})],N.prototype,`arrowPlacement`,2),M([w({attribute:`arrow-padding`,type:Number})],N.prototype,`arrowPadding`,2),M([w({type:Boolean})],N.prototype,`flip`,2),M([w({attribute:`flip-fallback-placements`,converter:{fromAttribute:e=>e.split(` `).map(e=>e.trim()).filter(e=>e!==``),toAttribute:e=>e.join(` `)}})],N.prototype,`flipFallbackPlacements`,2),M([w({attribute:`flip-fallback-strategy`})],N.prototype,`flipFallbackStrategy`,2),M([w({type:Object})],N.prototype,`flipBoundary`,2),M([w({attribute:`flip-padding`,type:Number})],N.prototype,`flipPadding`,2),M([w({type:Boolean})],N.prototype,`shift`,2),M([w({type:Object})],N.prototype,`shiftBoundary`,2),M([w({attribute:`shift-padding`,type:Number})],N.prototype,`shiftPadding`,2),M([w({attribute:`auto-size`})],N.prototype,`autoSize`,2),M([w()],N.prototype,`sync`,2),M([w({type:Object})],N.prototype,`autoSizeBoundary`,2),M([w({attribute:`auto-size-padding`,type:Number})],N.prototype,`autoSizePadding`,2),M([w({attribute:`hover-bridge`,type:Boolean})],N.prototype,`hoverBridge`,2),N=M([E(`wa-popup`)],N);var sr=class extends Event{constructor(){super(`wa-after-hide`,{bubbles:!0,cancelable:!1,composed:!0})}},cr=class extends Event{constructor(){super(`wa-after-show`,{bubbles:!0,cancelable:!1,composed:!0})}},lr=class extends Event{constructor(e){super(`wa-hide`,{bubbles:!0,cancelable:!0,composed:!0}),this.detail=e}},ur=class extends Event{constructor(){super(`wa-show`,{bubbles:!0,cancelable:!0,composed:!0})}},dr=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,fr=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=dr[n[e]&63];return t};function pr(e=``){return`${e}${fr()}`}function mr(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}function hr(e,t){return new Promise(n=>{let r=new AbortController,{signal:i}=r;if(e.classList.contains(t))return;e.classList.remove(t),e.classList.add(t);let a=()=>{e.classList.remove(t),n(),r.abort()};e.addEventListener(`animationend`,a,{once:!0,signal:i}),e.addEventListener(`animationcancel`,a,{once:!0,signal:i})})}function gr(e,t){let n={waitUntilFirstUpdate:!1,...t};return(t,r)=>{let{update:i}=t,a=Array.isArray(e)?e:[e];t.update=function(e){a.forEach(t=>{let i=t;if(e.has(i)){let t=e.get(i),a=this[i];t!==a&&(!n.waitUntilFirstUpdate||this.hasUpdated)&&this[r](t,a)}}),i.call(this,e)}}}var _r=`:host { --max-width: 30ch; /** These styles are added so we don't interfere in the DOM. */ @@ -259,14 +259,14 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu border-bottom: var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color); border-right: var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color); } -`,vr=class extends rt{constructor(){super(...arguments),this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger=`hover focus`,this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger(`hover`)&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{this.hasTrigger(`hover`)&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),this.hideDelay))}}connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||=pr(`wa-tooltip-`),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}addToAriaLabelledBy(e,t){let n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean);n.includes(t)||(n.push(t),e.setAttribute(`aria-labelledby`,n.join(` `)))}removeFromAriaLabelledBy(e,t){let n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean).filter(e=>e!==t);n.length>0?e.setAttribute(`aria-labelledby`,n.join(` `)):e.removeAttribute(`aria-labelledby`)}async handleOpenChange(){if(this.open){if(this.disabled)return;let e=new ur;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}document.addEventListener(`keydown`,this.handleDocumentKeyDown,{signal:this.eventController.signal}),this.body.hidden=!1,this.popup.active=!0,await hr(this.popup.popup,`show-with-scale`),this.popup.reposition(),this.dispatchEvent(new cr)}else{let e=new lr;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await hr(this.popup.popup,`hide-with-scale`),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new sr)}}handleForChange(){let e=this.getRootNode();if(!e)return;let t=this.for?e.getElementById(this.for):null,n=this.anchor;if(t===n)return;let{signal:r}=this.eventController;t&&(this.addToAriaLabelledBy(t,this.id),t.addEventListener(`blur`,this.handleBlur,{capture:!0,signal:r}),t.addEventListener(`focus`,this.handleFocus,{capture:!0,signal:r}),t.addEventListener(`click`,this.handleClick,{signal:r}),t.addEventListener(`mouseover`,this.handleMouseOver,{signal:r}),t.addEventListener(`mouseout`,this.handleMouseOut,{signal:r})),n&&(this.removeFromAriaLabelledBy(n,this.id),n.removeEventListener(`blur`,this.handleBlur,{capture:!0}),n.removeEventListener(`focus`,this.handleFocus,{capture:!0}),n.removeEventListener(`click`,this.handleClick),n.removeEventListener(`mouseover`,this.handleMouseOver),n.removeEventListener(`mouseout`,this.handleMouseOut)),this.anchor=t}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,mr(this,`wa-after-show`)}async hide(){if(this.open)return this.open=!1,mr(this,`wa-after-hide`)}render(){return p` +`,vr=class extends rt{constructor(){super(...arguments),this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger=`hover focus`,this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger(`hover`)&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{this.hasTrigger(`hover`)&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),this.hideDelay))}}connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||=pr(`wa-tooltip-`),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}addToAriaLabelledBy(e,t){let n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean);n.includes(t)||(n.push(t),e.setAttribute(`aria-labelledby`,n.join(` `)))}removeFromAriaLabelledBy(e,t){let n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean).filter(e=>e!==t);n.length>0?e.setAttribute(`aria-labelledby`,n.join(` `)):e.removeAttribute(`aria-labelledby`)}async handleOpenChange(){if(this.open){if(this.disabled)return;let e=new ur;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}document.addEventListener(`keydown`,this.handleDocumentKeyDown,{signal:this.eventController.signal}),this.body.hidden=!1,this.popup.active=!0,await hr(this.popup.popup,`show-with-scale`),this.popup.reposition(),this.dispatchEvent(new cr)}else{let e=new lr;if(this.dispatchEvent(e),e.defaultPrevented){this.open=!1;return}document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await hr(this.popup.popup,`hide-with-scale`),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new sr)}}handleForChange(){let e=this.getRootNode();if(!e)return;let t=this.for?e.getElementById(this.for):null,n=this.anchor;if(t===n)return;let{signal:r}=this.eventController;t&&(this.addToAriaLabelledBy(t,this.id),t.addEventListener(`blur`,this.handleBlur,{capture:!0,signal:r}),t.addEventListener(`focus`,this.handleFocus,{capture:!0,signal:r}),t.addEventListener(`click`,this.handleClick,{signal:r}),t.addEventListener(`mouseover`,this.handleMouseOver,{signal:r}),t.addEventListener(`mouseout`,this.handleMouseOut,{signal:r})),n&&(this.removeFromAriaLabelledBy(n,this.id),n.removeEventListener(`blur`,this.handleBlur,{capture:!0}),n.removeEventListener(`focus`,this.handleFocus,{capture:!0}),n.removeEventListener(`click`,this.handleClick),n.removeEventListener(`mouseover`,this.handleMouseOver),n.removeEventListener(`mouseout`,this.handleMouseOut)),this.anchor=t}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,mr(this,`wa-after-show`)}async hide(){if(this.open)return this.open=!1,mr(this,`wa-after-hide`)}render(){return g` <wa-popup part="base" exportparts=" popup:base__popup, arrow:base__arrow " - class=${D({tooltip:!0,"tooltip-open":this.open})} + class=${A({tooltip:!0,"tooltip-open":this.open})} placement=${this.placement} distance=${this.distance} skidding=${this.skidding} @@ -280,7 +280,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu <slot></slot> </div> </wa-popup> - `}};vr.css=_r,vr.dependencies={"wa-popup":A},k([w(`slot:not([name])`)],vr.prototype,`defaultSlot`,2),k([w(`.body`)],vr.prototype,`body`,2),k([w(`wa-popup`)],vr.prototype,`popup`,2),k([x()],vr.prototype,`placement`,2),k([x({type:Boolean,reflect:!0})],vr.prototype,`disabled`,2),k([x({type:Number})],vr.prototype,`distance`,2),k([x({type:Boolean,reflect:!0})],vr.prototype,`open`,2),k([x({type:Number})],vr.prototype,`skidding`,2),k([x({attribute:`show-delay`,type:Number})],vr.prototype,`showDelay`,2),k([x({attribute:`hide-delay`,type:Number})],vr.prototype,`hideDelay`,2),k([x()],vr.prototype,`trigger`,2),k([x({attribute:`without-arrow`,type:Boolean,reflect:!0})],vr.prototype,`withoutArrow`,2),k([x()],vr.prototype,`for`,2),k([S()],vr.prototype,`anchor`,2),k([gr(`open`,{waitUntilFirstUpdate:!0})],vr.prototype,`handleOpenChange`,1),k([gr(`for`)],vr.prototype,`handleForChange`,1),k([gr([`distance`,`placement`,`skidding`])],vr.prototype,`handleOptionsChange`,1),k([gr(`disabled`)],vr.prototype,`handleDisabledChange`,1),vr=k([C(`wa-tooltip`)],vr);var yr=class extends vr{static get styles(){return[vr.styles,h` + `}};vr.css=_r,vr.dependencies={"wa-popup":N},M([D(`slot:not([name])`)],vr.prototype,`defaultSlot`,2),M([D(`.body`)],vr.prototype,`body`,2),M([D(`wa-popup`)],vr.prototype,`popup`,2),M([w()],vr.prototype,`placement`,2),M([w({type:Boolean,reflect:!0})],vr.prototype,`disabled`,2),M([w({type:Number})],vr.prototype,`distance`,2),M([w({type:Boolean,reflect:!0})],vr.prototype,`open`,2),M([w({type:Number})],vr.prototype,`skidding`,2),M([w({attribute:`show-delay`,type:Number})],vr.prototype,`showDelay`,2),M([w({attribute:`hide-delay`,type:Number})],vr.prototype,`hideDelay`,2),M([w()],vr.prototype,`trigger`,2),M([w({attribute:`without-arrow`,type:Boolean,reflect:!0})],vr.prototype,`withoutArrow`,2),M([w()],vr.prototype,`for`,2),M([T()],vr.prototype,`anchor`,2),M([gr(`open`,{waitUntilFirstUpdate:!0})],vr.prototype,`handleOpenChange`,1),M([gr(`for`)],vr.prototype,`handleForChange`,1),M([gr([`distance`,`placement`,`skidding`])],vr.prototype,`handleOptionsChange`,1),M([gr(`disabled`)],vr.prototype,`handleDisabledChange`,1),vr=M([E(`wa-tooltip`)],vr);var yr=class extends vr{static get styles(){return[vr.styles,v` wa-popup { --wa-z-index-tooltip: var(--c-tooltip-z-index, 1000); --wa-tooltip-background-color: var( @@ -312,7 +312,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu color: var(--c-tooltip-text, currentColor); box-shadow: var(--c-shadow-md); } - `]}};customElements.get(`c-tooltip`)||customElements.define(`c-tooltip`,yr);var br=h` + `]}};customElements.get(`c-tooltip`)||customElements.define(`c-tooltip`,yr);var br=v` :host { display: inline-block; } @@ -330,7 +330,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu border: none; cursor: pointer; } -`,xr=class extends b{constructor(...e){super(...e),this.isCopying=!1,this.value=``,this.disabled=!1}async copyValue(){if(!(this.isCopying||this.disabled)){this.isCopying=!0;try{await navigator.clipboard.writeText(this.value),this.dispatchEvent(new CustomEvent(`craft-copy`,{bubbles:!0,cancelable:!1,composed:!0,detail:{value:this.value}}))}catch{this.dispatchEvent(new CustomEvent(`craft-error`,{cancelable:!1,composed:!0,bubbles:!0}))}finally{this.isCopying=!1}}}render(){return p` +`,xr=class extends C{constructor(...e){super(...e),this.isCopying=!1,this.value=``,this.disabled=!1}async copyValue(){if(!(this.isCopying||this.disabled)){this.isCopying=!0;try{await navigator.clipboard.writeText(this.value),this.dispatchEvent(new CustomEvent(`craft-copy`,{bubbles:!0,cancelable:!1,composed:!0,detail:{value:this.value}}))}catch{this.dispatchEvent(new CustomEvent(`craft-error`,{cancelable:!1,composed:!0,bubbles:!0}))}finally{this.isCopying=!1}}}render(){return g` <button type="button" @click="${this.copyValue}" @@ -341,7 +341,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu <slot></slot> <sl-visually-hidden>Copy to clipboard</sl-visually-hidden> </button> - `}};xr.styles=[br],d([S()],xr.prototype,`isCopying`,void 0),d([x({type:String})],xr.prototype,`value`,void 0),d([x({type:Boolean})],xr.prototype,`disabled`,void 0),customElements.get(`craft-copy-button`)||customElements.define(`craft-copy-button`,xr);var Sr=h` + `}};xr.styles=[br],m([T()],xr.prototype,`isCopying`,void 0),m([w({type:String})],xr.prototype,`value`,void 0),m([w({type:Boolean})],xr.prototype,`disabled`,void 0),customElements.get(`craft-copy-button`)||customElements.define(`craft-copy-button`,xr);var Sr=v` :host { box-sizing: border-box; } @@ -355,7 +355,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu [hidden] { display: none !important; } -`,Cr=h` +`,Cr=v` :host { --craft-tooltip-font-size: calc(12rem / 16); display: inline-block; @@ -427,12 +427,12 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu width: 100%; height: 100%; } -`,wr={"icon.in":{keyframes:[{scale:.25,opacity:.25},{scale:1,opacity:1}],options:{duration:100}},"icon.out":{keyframes:[{scale:1,opacity:1},{scale:.25,opacity:.25}],options:{duration:100}}},Tr=class extends b{constructor(){super(),this.status=`rest`,this.value=``,this.disabled=!1,this.feedbackDuration=1e3,this.tooltipLabel=`Copy`,this.addEventListener(`craft-copy`,()=>{this.showStatus(`success`)}),this.addEventListener(`craft-error`,()=>{this.showStatus(`error`)})}getId(){return`attribute-${this.value.replace(/([a-z])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase()}`}async showStatus(e){let t=e===`success`?this.successIconEl:this.errorIconEl;this.tooltipLabel=e===`success`?`Copied`:`Copy failed`,await t.animate(wr[`icon.out`].keyframes,wr[`icon.out`].options),this.copyIconEl.hidden=!0,t.hidden=!1,await t.animate(wr[`icon.in`].keyframes,wr[`icon.in`].options),this.status=e,setTimeout(async()=>{await t.animate(wr[`icon.out`].keyframes,wr[`icon.out`].options),t.hidden=!0,this.copyIconEl.hidden=!1,await this.copyIconEl.animate(wr[`icon.in`].keyframes,wr[`icon.in`].options),this.status=`rest`,this.tooltipLabel=`Copy`},this.feedbackDuration)}render(){return p` +`,wr={"icon.in":{keyframes:[{scale:.25,opacity:.25},{scale:1,opacity:1}],options:{duration:100}},"icon.out":{keyframes:[{scale:1,opacity:1},{scale:.25,opacity:.25}],options:{duration:100}}},Tr=class extends C{constructor(){super(),this.status=`rest`,this.value=``,this.disabled=!1,this.feedbackDuration=1e3,this.tooltipLabel=`Copy`,this.addEventListener(`craft-copy`,()=>{this.showStatus(`success`)}),this.addEventListener(`craft-error`,()=>{this.showStatus(`error`)})}getId(){return`attribute-${this.value.replace(/([a-z])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase()}`}async showStatus(e){let t=e===`success`?this.successIconEl:this.errorIconEl;this.tooltipLabel=e===`success`?`Copied`:`Copy failed`,await t.animate(wr[`icon.out`].keyframes,wr[`icon.out`].options),this.copyIconEl.hidden=!0,t.hidden=!1,await t.animate(wr[`icon.in`].keyframes,wr[`icon.in`].options),this.status=e,setTimeout(async()=>{await t.animate(wr[`icon.out`].keyframes,wr[`icon.out`].options),t.hidden=!0,this.copyIconEl.hidden=!1,await this.copyIconEl.animate(wr[`icon.in`].keyframes,wr[`icon.in`].options),this.status=`rest`,this.tooltipLabel=`Copy`},this.feedbackDuration)}render(){return g` <c-tooltip for="${this.getId()}">${this.tooltipLabel}</c-tooltip> <craft-copy-button value="${this.value}" id="${this.getId()}" - class=${D({"copy-attribute":!0,"copy-attribute--success":this.status===`success`,"copy-attribute--error":this.status===`error`})} + class=${A({"copy-attribute":!0,"copy-attribute--success":this.status===`success`,"copy-attribute--error":this.status===`error`})} > ${this.value} @@ -454,8 +454,8 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu <craft-icon name="x"></craft-icon> </slot> </craft-copy-button> - `}};Tr.styles=[Sr,Cr],d([S()],Tr.prototype,`status`,void 0),d([w(`slot[name="copy-icon"]`)],Tr.prototype,`copyIconEl`,void 0),d([w(`slot[name="success-icon"]`)],Tr.prototype,`successIconEl`,void 0),d([w(`slot[name="error-icon"]`)],Tr.prototype,`errorIconEl`,void 0),d([w(`craft-copy-button`)],Tr.prototype,`copyButtonEl`,void 0),d([x({type:String})],Tr.prototype,`value`,void 0),d([x({type:Boolean,reflect:!0})],Tr.prototype,`disabled`,void 0),d([x({attribute:`feedback-duration`,type:Number})],Tr.prototype,`feedbackDuration`,void 0),d([x({reflect:!1})],Tr.prototype,`tooltipLabel`,void 0),customElements.get(`craft-copy-attribute`)||customElements.define(`craft-copy-attribute`,Tr);var Er=new WeakMap;function Dr(e,t){let n=t;for(;n;){if(Er.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}function Or(e){return t=>{if(Dr(e,t))return t;let n=e(t);return Er.set(n,e),n}}var kr=Or(e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this._requestedToBeDisabled=!1,this.__isUserSettingDisabled=!0,this.__restoreDisabledTo=!1,this.disabled=!1}makeRequestToBeDisabled(){this._requestedToBeDisabled===!1&&(this._requestedToBeDisabled=!0,this.__restoreDisabledTo=this.disabled,this.__internalSetDisabled(!0))}retractRequestToBeDisabled(){this._requestedToBeDisabled===!0&&(this._requestedToBeDisabled=!1,this.__internalSetDisabled(this.__restoreDisabledTo))}__internalSetDisabled(e){this.__isUserSettingDisabled=!1,this.disabled=e,this.__isUserSettingDisabled=!0}requestUpdate(e,t,n){super.requestUpdate(e,t,n),e===`disabled`&&(this.__isUserSettingDisabled&&(this.__restoreDisabledTo=this.disabled),this.disabled===!1&&this._requestedToBeDisabled===!0&&this.__internalSetDisabled(!0))}click(){this.disabled||super.click()}}),Ar=Or(e=>class extends kr(e){static get properties(){return{tabIndex:{type:Number,reflect:!0,attribute:`tabindex`}}}constructor(){super(),this.__isUserSettingTabIndex=!0,this.__restoreTabIndexTo=0,this.__internalSetTabIndex(0)}makeRequestToBeDisabled(){super.makeRequestToBeDisabled(),this._requestedToBeDisabled===!1&&this.tabIndex!=null&&(this.__restoreTabIndexTo=this.tabIndex)}retractRequestToBeDisabled(){super.retractRequestToBeDisabled(),this._requestedToBeDisabled===!0&&this.__internalSetTabIndex(this.__restoreTabIndexTo)}static enabledWarnings=super.enabledWarnings?.filter(e=>e!==`change-in-update`)||[];__internalSetTabIndex(e){this.__isUserSettingTabIndex=!1,this.tabIndex=e,this.__isUserSettingTabIndex=!0}requestUpdate(e,t,n){super.requestUpdate(e,t,n),e===`disabled`&&(this.disabled?this.__internalSetTabIndex(-1):this.__internalSetTabIndex(this.__restoreTabIndexTo)),e===`tabIndex`&&(this.__isUserSettingTabIndex&&this.tabIndex!=null&&(this.__restoreTabIndexTo=this.tabIndex),this.tabIndex!==-1&&this._requestedToBeDisabled===!0&&this.__internalSetTabIndex(-1))}firstUpdated(e){super.firstUpdated(e),this.disabled&&this.__internalSetTabIndex(-1)}}),{I:jr}=f,Mr=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Nr=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,Pr=e=>e.strings===void 0,Fr=()=>document.createComment(``),Ir=(e,t,n)=>{let r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(n===void 0)n=new jr(r.insertBefore(Fr(),i),r.insertBefore(Fr(),i),e,e.options);else{let t=n._$AB.nextSibling,a=n._$AM,o=a!==e;if(o){let t;n._$AQ?.(e),n._$AM=e,n._$AP!==void 0&&(t=e._$AU)!==a._$AU&&n._$AP(t)}if(t!==i||o){let e=n._$AA;for(;e!==t;){let t=e.nextSibling;r.insertBefore(e,i),e=t}}}return n},Lr=(e,t,n=e)=>(e._$AI(t,n),e),Rr={},zr=(e,t=Rr)=>e._$AH=t,Br=e=>e._$AH,Vr=e=>{e._$AR(),e._$AA.remove()};function Hr(e){return e instanceof Node?`node`:Nr(e)?`template-result`:!Array.isArray(e)&&typeof e==`object`&&`template`in e?`slot-rerender-object`:null}var Ur=Or(e=>class extends e{get slots(){return{}}constructor(){super(),this.__renderMetaPerSlot=new Map,this.__slotsThatNeedRerender=new Set,this.__slotsProvidedByUserOnFirstConnected=new Set,this.__privateSlots=new Set}connectedCallback(){super.connectedCallback(),this._connectSlotMixin()}__rerenderSlot(e){let t=this.slots[e]();this.__renderTemplateInScopedContext({renderAsDirectHostChild:t.renderAsDirectHostChild,template:t.template,slotName:e}),t.afterRender?.()}update(e){super.update(e);for(let e of this.__slotsThatNeedRerender)this.__rerenderSlot(e)}__renderTemplateInScopedContext({template:e,slotName:t,renderAsDirectHostChild:n}){if(!this.__renderMetaPerSlot.has(t)){let r=!!ShadowRoot.prototype.createElement;this.shadowRoot||console.error(`[SlotMixin] No shadowRoot was found`);let i=(r?this.shadowRoot:document).createElement(`div`),a=document.createComment(`_start_slot_${t}_`),o=document.createComment(`_end_slot_${t}_`);i.appendChild(a),i.appendChild(o);let{creationScope:s,host:c}=this.renderOptions;if(_(e,i,{renderBefore:o,creationScope:s,host:c}),n){let e=Array.from(i.childNodes);this.__appendNodes({nodes:e,renderParent:this,slotName:t})}else i.slot=t,this.appendChild(i);this.__renderMetaPerSlot.set(t,{renderTargetThatRespectsShadowRootScoping:i,renderBefore:o});return}let{renderBefore:r,renderTargetThatRespectsShadowRootScoping:i}=this.__renderMetaPerSlot.get(t),a=n?this:i,{creationScope:o,host:s}=this.renderOptions;_(e,a,{creationScope:o,host:s,renderBefore:r}),n&&r.previousElementSibling&&!r.previousElementSibling.slot&&(r.previousElementSibling.slot=t)}__appendNodes({nodes:e,renderParent:t=this,slotName:n}){for(let r of e)r instanceof Element&&n&&n!==``&&r.setAttribute(`slot`,n),t.appendChild(r)}__initSlots(e){for(let t of e){if(this.__slotsProvidedByUserOnFirstConnected.has(t))continue;let e=this.slots[t]();if(e!==void 0)switch(this.__isConnectedSlotMixin||this.__privateSlots.add(t),Hr(e)){case`template-result`:this.__renderTemplateInScopedContext({template:e,renderAsDirectHostChild:!0,slotName:t});break;case`node`:this.__appendNodes({nodes:[e],renderParent:this,slotName:t});break;case`slot-rerender-object`:this.__slotsThatNeedRerender.add(t),e.firstRenderOnConnected&&this.__rerenderSlot(t);break;default:throw Error(`Slot "${t}" configured inside "get slots()" (in prototype) of ${this.constructor.name} may return these types: TemplateResult | Node | {template:TemplateResult, afterRender?:function} | undefined. - You provided: ${e}`)}}}_connectSlotMixin(){if(this.__isConnectedSlotMixin)return;let e=Object.keys(this.slots);for(let t of e)(t===``?Array.from(this.children).find(e=>!e.hasAttribute(`slot`)):Array.from(this.children).find(e=>e.slot===t))&&this.__slotsProvidedByUserOnFirstConnected.add(t);this.__initSlots(e),this.__isConnectedSlotMixin=!0}_isPrivateSlot(e){return this.__privateSlots.has(e)}});function Wr(e=`google-chrome`){let t=globalThis.navigator,n=!!t.userAgentData&&t.userAgentData.brands.some(e=>e.brand===`Chromium`);if(e===`chromium`)return n;let r=globalThis.navigator?.vendor,i=globalThis.opr!==void 0,a=globalThis.userAgent?.indexOf(`Edge`)>-1,o=globalThis.userAgent?.match(`CriOS`);if(e===`ios`)return o;if(e===`google-chrome`)return n!=null&&r===`Google Inc.`&&i===!1&&a===!1}var Gr={isIE11:/Trident/.test(globalThis.navigator?.userAgent),isChrome:Wr(),isIOSChrome:Wr(`ios`),isChromium:Wr(`chromium`),isFirefox:globalThis.navigator?.userAgent.toLowerCase().indexOf(`firefox`)>-1,isMac:globalThis.navigator?.appVersion?.indexOf(`Mac`)!==-1,isIOS:/iPhone|iPad|iPod/i.test(globalThis.navigator?.userAgent),isMacSafari:globalThis.navigator?.vendor&&globalThis.navigator?.vendor.indexOf(`Apple`)>-1&&globalThis.navigator?.userAgent&&globalThis.navigator?.userAgent.indexOf(`CriOS`)===-1&&globalThis.navigator?.userAgent.indexOf(`FxiOS`)===-1&&globalThis.navigator?.appVersion.indexOf(`Mac`)!==-1};function Kr(e=``){return`${e.length>0?`${e}-`:``}${Math.random().toString(36).substr(2,10)}`}var qr=e=>e.key===` `||e.key===`Enter`,Jr=e=>e.key===` `,Yr=class extends Ar(b){static get properties(){return{active:{type:Boolean,reflect:!0},type:{type:String,reflect:!0}}}render(){return p` <div class="button-content"><slot></slot></div> `}static get styles(){return[h` + `}};Tr.styles=[Sr,Cr],m([T()],Tr.prototype,`status`,void 0),m([D(`slot[name="copy-icon"]`)],Tr.prototype,`copyIconEl`,void 0),m([D(`slot[name="success-icon"]`)],Tr.prototype,`successIconEl`,void 0),m([D(`slot[name="error-icon"]`)],Tr.prototype,`errorIconEl`,void 0),m([D(`craft-copy-button`)],Tr.prototype,`copyButtonEl`,void 0),m([w({type:String})],Tr.prototype,`value`,void 0),m([w({type:Boolean,reflect:!0})],Tr.prototype,`disabled`,void 0),m([w({attribute:`feedback-duration`,type:Number})],Tr.prototype,`feedbackDuration`,void 0),m([w({reflect:!1})],Tr.prototype,`tooltipLabel`,void 0),customElements.get(`craft-copy-attribute`)||customElements.define(`craft-copy-attribute`,Tr);var Er=new WeakMap;function Dr(e,t){let n=t;for(;n;){if(Er.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}function Or(e){return t=>{if(Dr(e,t))return t;let n=e(t);return Er.set(n,e),n}}var kr=Or(e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this._requestedToBeDisabled=!1,this.__isUserSettingDisabled=!0,this.__restoreDisabledTo=!1,this.disabled=!1}makeRequestToBeDisabled(){this._requestedToBeDisabled===!1&&(this._requestedToBeDisabled=!0,this.__restoreDisabledTo=this.disabled,this.__internalSetDisabled(!0))}retractRequestToBeDisabled(){this._requestedToBeDisabled===!0&&(this._requestedToBeDisabled=!1,this.__internalSetDisabled(this.__restoreDisabledTo))}__internalSetDisabled(e){this.__isUserSettingDisabled=!1,this.disabled=e,this.__isUserSettingDisabled=!0}requestUpdate(e,t,n){super.requestUpdate(e,t,n),e===`disabled`&&(this.__isUserSettingDisabled&&(this.__restoreDisabledTo=this.disabled),this.disabled===!1&&this._requestedToBeDisabled===!0&&this.__internalSetDisabled(!0))}click(){this.disabled||super.click()}}),Ar=Or(e=>class extends kr(e){static get properties(){return{tabIndex:{type:Number,reflect:!0,attribute:`tabindex`}}}constructor(){super(),this.__isUserSettingTabIndex=!0,this.__restoreTabIndexTo=0,this.__internalSetTabIndex(0)}makeRequestToBeDisabled(){super.makeRequestToBeDisabled(),this._requestedToBeDisabled===!1&&this.tabIndex!=null&&(this.__restoreTabIndexTo=this.tabIndex)}retractRequestToBeDisabled(){super.retractRequestToBeDisabled(),this._requestedToBeDisabled===!0&&this.__internalSetTabIndex(this.__restoreTabIndexTo)}static enabledWarnings=super.enabledWarnings?.filter(e=>e!==`change-in-update`)||[];__internalSetTabIndex(e){this.__isUserSettingTabIndex=!1,this.tabIndex=e,this.__isUserSettingTabIndex=!0}requestUpdate(e,t,n){super.requestUpdate(e,t,n),e===`disabled`&&(this.disabled?this.__internalSetTabIndex(-1):this.__internalSetTabIndex(this.__restoreTabIndexTo)),e===`tabIndex`&&(this.__isUserSettingTabIndex&&this.tabIndex!=null&&(this.__restoreTabIndexTo=this.tabIndex),this.tabIndex!==-1&&this._requestedToBeDisabled===!0&&this.__internalSetTabIndex(-1))}firstUpdated(e){super.firstUpdated(e),this.disabled&&this.__internalSetTabIndex(-1)}}),{I:jr}=h,Mr=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Nr=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,Pr=e=>e.strings===void 0,Fr=()=>document.createComment(``),Ir=(e,t,n)=>{let r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(n===void 0)n=new jr(r.insertBefore(Fr(),i),r.insertBefore(Fr(),i),e,e.options);else{let t=n._$AB.nextSibling,a=n._$AM,o=a!==e;if(o){let t;n._$AQ?.(e),n._$AM=e,n._$AP!==void 0&&(t=e._$AU)!==a._$AU&&n._$AP(t)}if(t!==i||o){let e=n._$AA;for(;e!==t;){let t=e.nextSibling;r.insertBefore(e,i),e=t}}}return n},Lr=(e,t,n=e)=>(e._$AI(t,n),e),Rr={},zr=(e,t=Rr)=>e._$AH=t,Br=e=>e._$AH,Vr=e=>{e._$AR(),e._$AA.remove()};function Hr(e){return e instanceof Node?`node`:Nr(e)?`template-result`:!Array.isArray(e)&&typeof e==`object`&&`template`in e?`slot-rerender-object`:null}var Ur=Or(e=>class extends e{get slots(){return{}}constructor(){super(),this.__renderMetaPerSlot=new Map,this.__slotsThatNeedRerender=new Set,this.__slotsProvidedByUserOnFirstConnected=new Set,this.__privateSlots=new Set}connectedCallback(){super.connectedCallback(),this._connectSlotMixin()}__rerenderSlot(e){let t=this.slots[e]();this.__renderTemplateInScopedContext({renderAsDirectHostChild:t.renderAsDirectHostChild,template:t.template,slotName:e}),t.afterRender?.()}update(e){super.update(e);for(let e of this.__slotsThatNeedRerender)this.__rerenderSlot(e)}__renderTemplateInScopedContext({template:e,slotName:t,renderAsDirectHostChild:n}){if(!this.__renderMetaPerSlot.has(t)){let r=!!ShadowRoot.prototype.createElement;this.shadowRoot||console.error(`[SlotMixin] No shadowRoot was found`);let i=(r?this.shadowRoot:document).createElement(`div`),a=document.createComment(`_start_slot_${t}_`),o=document.createComment(`_end_slot_${t}_`);i.appendChild(a),i.appendChild(o);let{creationScope:s,host:c}=this.renderOptions;if(b(e,i,{renderBefore:o,creationScope:s,host:c}),n){let e=Array.from(i.childNodes);this.__appendNodes({nodes:e,renderParent:this,slotName:t})}else i.slot=t,this.appendChild(i);this.__renderMetaPerSlot.set(t,{renderTargetThatRespectsShadowRootScoping:i,renderBefore:o});return}let{renderBefore:r,renderTargetThatRespectsShadowRootScoping:i}=this.__renderMetaPerSlot.get(t),a=n?this:i,{creationScope:o,host:s}=this.renderOptions;b(e,a,{creationScope:o,host:s,renderBefore:r}),n&&r.previousElementSibling&&!r.previousElementSibling.slot&&(r.previousElementSibling.slot=t)}__appendNodes({nodes:e,renderParent:t=this,slotName:n}){for(let r of e)r instanceof Element&&n&&n!==``&&r.setAttribute(`slot`,n),t.appendChild(r)}__initSlots(e){for(let t of e){if(this.__slotsProvidedByUserOnFirstConnected.has(t))continue;let e=this.slots[t]();if(e!==void 0)switch(this.__isConnectedSlotMixin||this.__privateSlots.add(t),Hr(e)){case`template-result`:this.__renderTemplateInScopedContext({template:e,renderAsDirectHostChild:!0,slotName:t});break;case`node`:this.__appendNodes({nodes:[e],renderParent:this,slotName:t});break;case`slot-rerender-object`:this.__slotsThatNeedRerender.add(t),e.firstRenderOnConnected&&this.__rerenderSlot(t);break;default:throw Error(`Slot "${t}" configured inside "get slots()" (in prototype) of ${this.constructor.name} may return these types: TemplateResult | Node | {template:TemplateResult, afterRender?:function} | undefined. + You provided: ${e}`)}}}_connectSlotMixin(){if(this.__isConnectedSlotMixin)return;let e=Object.keys(this.slots);for(let t of e)(t===``?Array.from(this.children).find(e=>!e.hasAttribute(`slot`)):Array.from(this.children).find(e=>e.slot===t))&&this.__slotsProvidedByUserOnFirstConnected.add(t);this.__initSlots(e),this.__isConnectedSlotMixin=!0}_isPrivateSlot(e){return this.__privateSlots.has(e)}});function Wr(e=`google-chrome`){let t=globalThis.navigator,n=!!t.userAgentData&&t.userAgentData.brands.some(e=>e.brand===`Chromium`);if(e===`chromium`)return n;let r=globalThis.navigator?.vendor,i=globalThis.opr!==void 0,a=globalThis.userAgent?.indexOf(`Edge`)>-1,o=globalThis.userAgent?.match(`CriOS`);if(e===`ios`)return o;if(e===`google-chrome`)return n!=null&&r===`Google Inc.`&&i===!1&&a===!1}var Gr={isIE11:/Trident/.test(globalThis.navigator?.userAgent),isChrome:Wr(),isIOSChrome:Wr(`ios`),isChromium:Wr(`chromium`),isFirefox:globalThis.navigator?.userAgent.toLowerCase().indexOf(`firefox`)>-1,isMac:globalThis.navigator?.appVersion?.indexOf(`Mac`)!==-1,isIOS:/iPhone|iPad|iPod/i.test(globalThis.navigator?.userAgent),isMacSafari:globalThis.navigator?.vendor&&globalThis.navigator?.vendor.indexOf(`Apple`)>-1&&globalThis.navigator?.userAgent&&globalThis.navigator?.userAgent.indexOf(`CriOS`)===-1&&globalThis.navigator?.userAgent.indexOf(`FxiOS`)===-1&&globalThis.navigator?.appVersion.indexOf(`Mac`)!==-1};function Kr(e=``){return`${e.length>0?`${e}-`:``}${Math.random().toString(36).substr(2,10)}`}var qr=e=>e.key===` `||e.key===`Enter`,Jr=e=>e.key===` `,Yr=class extends Ar(C){static get properties(){return{active:{type:Boolean,reflect:!0},type:{type:String,reflect:!0}}}render(){return g` <div class="button-content"><slot></slot></div> `}static get styles(){return[v` :host { position: relative; display: inline-flex; @@ -542,7 +542,7 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu width: 1px; padding: 0; /* reset default agent styles */ border: 0; /* reset default agent styles */ - `,e}var $r=class extends Xr{get _nativeButtonNode(){return Zr.get(this._form)?.helper||null}constructor(){super(),this.type=`submit`,this.__implicitSubmitHelperButton=null}_setupSubmitAndResetHelperOnConnected(){if(super._setupSubmitAndResetHelperOnConnected(),!this._form||this.type!==`submit`)return;let e=this._form;if(!Zr.get(this._form)){let t=Qr(),n=document.createElement(`div`);n.appendChild(t),Zr.set(this._form,{lionButtons:new Set,helper:t,observer:new MutationObserver(()=>{e.appendChild(n)})}),e.appendChild(n),Zr.get(e)?.observer.observe(n,{childList:!0})}Zr.get(e)?.lionButtons.add(this)}_teardownSubmitAndResetHelperOnDisconnected(){if(super._teardownSubmitAndResetHelperOnDisconnected(),this._form){let e=Zr.get(this._form);e&&(e.lionButtons.delete(this),e.lionButtons.size||(this._form.contains(e.helper)&&e.helper.remove(),Zr.get(this._form)?.observer.disconnect(),Zr.delete(this._form)))}}},ei=h` + `,e}var $r=class extends Xr{get _nativeButtonNode(){return Zr.get(this._form)?.helper||null}constructor(){super(),this.type=`submit`,this.__implicitSubmitHelperButton=null}_setupSubmitAndResetHelperOnConnected(){if(super._setupSubmitAndResetHelperOnConnected(),!this._form||this.type!==`submit`)return;let e=this._form;if(!Zr.get(this._form)){let t=Qr(),n=document.createElement(`div`);n.appendChild(t),Zr.set(this._form,{lionButtons:new Set,helper:t,observer:new MutationObserver(()=>{e.appendChild(n)})}),e.appendChild(n),Zr.get(e)?.observer.observe(n,{childList:!0})}Zr.get(e)?.lionButtons.add(this)}_teardownSubmitAndResetHelperOnDisconnected(){if(super._teardownSubmitAndResetHelperOnDisconnected(),this._form){let e=Zr.get(this._form);e&&(e.lionButtons.delete(this),e.lionButtons.size||(this._form.contains(e.helper)&&e.helper.remove(),Zr.get(this._form)?.observer.disconnect(),Zr.delete(this._form)))}}},ei=v` :host { cursor: pointer; font: inherit; @@ -825,17 +825,17 @@ import{a as e,c as t,d as n,f as r,i,l as a,o,p as s,r as c,s as l,u}from"./Queu transform: translateX(-100%); } } -`,ti=Object.prototype.toString;function ni(e){return typeof e==`function`||ti.call(e)===`[object Function]`}function ri(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var ii=2**53-1;function ai(e){var t=ri(e);return Math.min(Math.max(t,0),ii)}function oi(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(t!==void 0&&!ni(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=ai(r.length),a=ni(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function si(e){"@babel/helpers - typeof";return si=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},si(e)}function ci(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,fi(r.key),r)}}function ui(e,t,n){return t&&li(e.prototype,t),n&&li(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function di(e,t,n){return t=fi(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fi(e){var t=pi(e,`string`);return si(t)==`symbol`?t:t+``}function pi(e,t){if(si(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(si(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mi=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ci(this,e),di(this,`items`,void 0),this.items=t}return ui(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}])}(),hi=typeof Set>`u`?Set:mi;function gi(e){return e.localName??e.tagName.toLowerCase()}var _i={article:`article`,aside:`complementary`,button:`button`,datalist:`listbox`,dd:`definition`,details:`group`,dialog:`dialog`,dt:`term`,fieldset:`group`,figure:`figure`,form:`form`,footer:`contentinfo`,h1:`heading`,h2:`heading`,h3:`heading`,h4:`heading`,h5:`heading`,h6:`heading`,header:`banner`,hr:`separator`,html:`document`,legend:`legend`,li:`listitem`,math:`math`,main:`main`,menu:`list`,nav:`navigation`,ol:`list`,optgroup:`group`,option:`option`,output:`status`,progress:`progressbar`,section:`region`,summary:`button`,table:`table`,tbody:`rowgroup`,textarea:`textbox`,tfoot:`rowgroup`,td:`cell`,th:`columnheader`,thead:`rowgroup`,tr:`row`,ul:`list`},vi={caption:new Set([`aria-label`,`aria-labelledby`]),code:new Set([`aria-label`,`aria-labelledby`]),deletion:new Set([`aria-label`,`aria-labelledby`]),emphasis:new Set([`aria-label`,`aria-labelledby`]),generic:new Set([`aria-label`,`aria-labelledby`,`aria-roledescription`]),insertion:new Set([`aria-label`,`aria-labelledby`]),none:new Set([`aria-label`,`aria-labelledby`]),paragraph:new Set([`aria-label`,`aria-labelledby`]),presentation:new Set([`aria-label`,`aria-labelledby`]),strong:new Set([`aria-label`,`aria-labelledby`]),subscript:new Set([`aria-label`,`aria-labelledby`]),superscript:new Set([`aria-label`,`aria-labelledby`])};function yi(e,t){return[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-description`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`].some(function(n){var r;return e.hasAttribute(n)&&!((r=vi[t])!=null&&r.has(n))})}function bi(e,t){return yi(e,t)}function xi(e){var t=Ci(e);if(t===null||wi.indexOf(t)!==-1){var n=Si(e);if(wi.indexOf(t||``)===-1||bi(e,n||``))return n}return t}function Si(e){var t=_i[gi(e)];if(t!==void 0)return t;switch(gi(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!bi(e,`img`)?`presentation`:`img`;case`input`:var n=e.type;switch(n){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return n;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return e.hasAttribute(`list`)?`combobox`:`textbox`;case`search`:return e.hasAttribute(`list`)?`combobox`:`searchbox`;case`number`:return`spinbutton`;default:return null}case`select`:return e.hasAttribute(`multiple`)||e.size>1?`listbox`:`combobox`}return null}function Ci(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}var wi=[`presentation`,`none`];function Ti(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Ei(e){return Ti(e)&&gi(e)===`caption`}function Di(e){return Ti(e)&&gi(e)===`input`}function Oi(e){return Ti(e)&&gi(e)===`optgroup`}function ki(e){return Ti(e)&&gi(e)===`select`}function Ai(e){return Ti(e)&&gi(e)===`table`}function ji(e){return Ti(e)&&gi(e)===`textarea`}function Mi(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function Ni(e){return Ti(e)&&gi(e)===`fieldset`}function Pi(e){return Ti(e)&&gi(e)===`legend`}function Fi(e){return Ti(e)&&gi(e)===`slot`}function Ii(e){return Ti(e)&&e.ownerSVGElement!==void 0}function Li(e){return Ti(e)&&gi(e)===`svg`}function Ri(e){return Ii(e)&&gi(e)===`title`}function zi(e,t){if(Ti(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function Bi(e,t){return Ti(e)?t.indexOf(xi(e))!==-1:!1}function Vi(e){return e.trim().replace(/\s\s+/g,` `)}function Hi(e,t){if(!Ti(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function Ui(e){return Bi(e,[`button`,`combobox`,`listbox`,`textbox`])||Wi(e,`range`)}function Wi(e,t){if(!Ti(e))return!1;switch(t){case`range`:return Bi(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function Gi(e,t){var n=oi(e.querySelectorAll(t));return zi(e,`aria-owns`).forEach(function(e){n.push.apply(n,oi(e.querySelectorAll(t)))}),n}function Ki(e){return ki(e)?e.selectedOptions||Gi(e,`[selected]`):Gi(e,`[aria-selected="true"]`)}function qi(e){return Bi(e,wi)}function Ji(e){return Ei(e)}function Yi(e){return Bi(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function Xi(e){return!1}function Zi(e){return Di(e)||ji(e)?e.value:e.textContent||``}function Qi(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function $i(e){var t=gi(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function ea(e){if($i(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&Ti(e)){var n=ea(e);n!==null&&(t=n)}}),t}function ta(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?ea(e):e.ownerDocument.getElementById(t)}function na(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return oi(t);if(!$i(e))return null;var n=e.ownerDocument;return oi(n.querySelectorAll(`label`)).filter(function(t){return ta(t)===e})}function ra(e){var t=e.assignedNodes();return t.length===0?oi(e.childNodes):t}function ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new hi,r=typeof Map>`u`?void 0:new Map,i=Mi(e),a=t.compute,o=a===void 0?`name`:a,s=t.computedStyleSupportsPseudoElements,c=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?i.getComputedStyle.bind(i):l,d=t.hidden,f=d===void 0?!1:d,p=function(e,t){if(t!==void 0)throw Error(`use uncachedGetComputedStyle directly for pseudo elements`);if(r===void 0)return u(e);var n=r.get(e);if(n)return n;var i=u(e,t);return r.set(e,i),i};function m(e,t){var n=``;if(Ti(e)&&c&&(n=`${Qi(u(e,`::before`))} ${n}`),(Fi(e)?ra(e):oi(e.childNodes).concat(zi(e,`aria-owns`))).forEach(function(e){var r=v(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(Ti(e)?p(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),Ti(e)&&c){var r=Qi(u(e,`::after`));n=`${n} ${r}`}return n.trim()}function h(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function g(e){return Ti(e)?h(e,`title`):null}function _(e){if(!Ti(e))return null;if(Ni(e)){n.add(e);for(var t=oi(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(Pi(i))return v(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Ai(e)){n.add(e);for(var a=oi(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(Ei(s))return v(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Li(e)){n.add(e);for(var c=oi(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(Ri(u))return u.textContent}return null}else if(gi(e)===`img`||gi(e)===`area`){var d=h(e,`alt`);if(d!==null)return d}else if(Oi(e)){var f=h(e,`label`);if(f!==null)return f}if(Di(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var p=h(e,`value`);if(p!==null)return p;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var g=na(e);if(g!==null&&g.length!==0)return n.add(e),oi(g).map(function(e){return v(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(Di(e)&&e.type===`image`){var _=h(e,`alt`);if(_!==null)return _;var y=h(e,`title`);return y===null?`Submit Query`:y}if(Bi(e,[`button`])){var b=m(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function v(e,t){if(n.has(e))return``;if(!f&&Hi(e,p)&&!t.isReferenced)return n.add(e),``;var r=Ti(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?zi(e,`aria-labelledby`):[];if(o===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return v(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var a=t.recursion&&Ui(e)&&o===`name`;if(!a){var s=(Ti(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&o===`name`)return n.add(e),s;if(!qi(e)){var c=_(e);if(c!==null)return n.add(e),c}}if(Bi(e,[`menu`]))return n.add(e),``;if(a||t.isEmbeddedInLabel||t.isReferenced){if(Bi(e,[`combobox`,`listbox`])){n.add(e);var l=Ki(e);return l.length===0?Di(e)?e.value:``:oi(l).map(function(e){return v(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(Wi(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(Bi(e,[`textbox`]))return n.add(e),Zi(e)}if(Yi(e)||Ti(e)&&t.isReferenced||Ji(e)||Xi(e)){var u=m(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(u!==``)return n.add(e),u}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),m(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var d=g(e);return d===null?(n.add(e),``):(n.add(e),d)}return Vi(v(e,{isEmbeddedInLabel:!1,isReferenced:o===`description`,recursion:!1}))}function aa(e){return Bi(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`none`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aa(e)?``:ia(e,t)}var sa=class extends $r{constructor(...e){super(...e),this.appearance=`accent`,this.variant=`default`,this.size=`medium`,this.loading=!1,this.align=`center`,this._hasAccessibilityError=!1}static get styles(){return[...super.styles,ei]}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;let t=this.querySelectorAll(`craft-icon, craft-spinner`);await Promise.all(Array.from(t).map(e=>e.updateComplete)),this.accessibleName||=oa(this),this._hasAccessibilityError=!this.accessibleName||this.accessibleName.trim()===``}render(){return p` +`,ti=Object.prototype.toString;function ni(e){return typeof e==`function`||ti.call(e)===`[object Function]`}function ri(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var ii=2**53-1;function ai(e){var t=ri(e);return Math.min(Math.max(t,0),ii)}function oi(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(t!==void 0&&!ni(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=ai(r.length),a=ni(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function si(e){"@babel/helpers - typeof";return si=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},si(e)}function ci(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,fi(r.key),r)}}function ui(e,t,n){return t&&li(e.prototype,t),n&&li(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function di(e,t,n){return t=fi(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fi(e){var t=pi(e,`string`);return si(t)==`symbol`?t:t+``}function pi(e,t){if(si(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(si(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mi=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ci(this,e),di(this,`items`,void 0),this.items=t}return ui(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}])}(),hi=typeof Set>`u`?Set:mi;function gi(e){return e.localName??e.tagName.toLowerCase()}var _i={article:`article`,aside:`complementary`,button:`button`,datalist:`listbox`,dd:`definition`,details:`group`,dialog:`dialog`,dt:`term`,fieldset:`group`,figure:`figure`,form:`form`,footer:`contentinfo`,h1:`heading`,h2:`heading`,h3:`heading`,h4:`heading`,h5:`heading`,h6:`heading`,header:`banner`,hr:`separator`,html:`document`,legend:`legend`,li:`listitem`,math:`math`,main:`main`,menu:`list`,nav:`navigation`,ol:`list`,optgroup:`group`,option:`option`,output:`status`,progress:`progressbar`,section:`region`,summary:`button`,table:`table`,tbody:`rowgroup`,textarea:`textbox`,tfoot:`rowgroup`,td:`cell`,th:`columnheader`,thead:`rowgroup`,tr:`row`,ul:`list`},vi={caption:new Set([`aria-label`,`aria-labelledby`]),code:new Set([`aria-label`,`aria-labelledby`]),deletion:new Set([`aria-label`,`aria-labelledby`]),emphasis:new Set([`aria-label`,`aria-labelledby`]),generic:new Set([`aria-label`,`aria-labelledby`,`aria-roledescription`]),insertion:new Set([`aria-label`,`aria-labelledby`]),none:new Set([`aria-label`,`aria-labelledby`]),paragraph:new Set([`aria-label`,`aria-labelledby`]),presentation:new Set([`aria-label`,`aria-labelledby`]),strong:new Set([`aria-label`,`aria-labelledby`]),subscript:new Set([`aria-label`,`aria-labelledby`]),superscript:new Set([`aria-label`,`aria-labelledby`])};function yi(e,t){return[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-description`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`].some(function(n){var r;return e.hasAttribute(n)&&!((r=vi[t])!=null&&r.has(n))})}function bi(e,t){return yi(e,t)}function xi(e){var t=Ci(e);if(t===null||wi.indexOf(t)!==-1){var n=Si(e);if(wi.indexOf(t||``)===-1||bi(e,n||``))return n}return t}function Si(e){var t=_i[gi(e)];if(t!==void 0)return t;switch(gi(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!bi(e,`img`)?`presentation`:`img`;case`input`:var n=e.type;switch(n){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return n;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return e.hasAttribute(`list`)?`combobox`:`textbox`;case`search`:return e.hasAttribute(`list`)?`combobox`:`searchbox`;case`number`:return`spinbutton`;default:return null}case`select`:return e.hasAttribute(`multiple`)||e.size>1?`listbox`:`combobox`}return null}function Ci(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}var wi=[`presentation`,`none`];function Ti(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Ei(e){return Ti(e)&&gi(e)===`caption`}function Di(e){return Ti(e)&&gi(e)===`input`}function Oi(e){return Ti(e)&&gi(e)===`optgroup`}function ki(e){return Ti(e)&&gi(e)===`select`}function Ai(e){return Ti(e)&&gi(e)===`table`}function ji(e){return Ti(e)&&gi(e)===`textarea`}function Mi(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function Ni(e){return Ti(e)&&gi(e)===`fieldset`}function Pi(e){return Ti(e)&&gi(e)===`legend`}function Fi(e){return Ti(e)&&gi(e)===`slot`}function Ii(e){return Ti(e)&&e.ownerSVGElement!==void 0}function Li(e){return Ti(e)&&gi(e)===`svg`}function Ri(e){return Ii(e)&&gi(e)===`title`}function zi(e,t){if(Ti(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function Bi(e,t){return Ti(e)?t.indexOf(xi(e))!==-1:!1}function Vi(e){return e.trim().replace(/\s\s+/g,` `)}function Hi(e,t){if(!Ti(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function Ui(e){return Bi(e,[`button`,`combobox`,`listbox`,`textbox`])||Wi(e,`range`)}function Wi(e,t){if(!Ti(e))return!1;switch(t){case`range`:return Bi(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function Gi(e,t){var n=oi(e.querySelectorAll(t));return zi(e,`aria-owns`).forEach(function(e){n.push.apply(n,oi(e.querySelectorAll(t)))}),n}function Ki(e){return ki(e)?e.selectedOptions||Gi(e,`[selected]`):Gi(e,`[aria-selected="true"]`)}function qi(e){return Bi(e,wi)}function Ji(e){return Ei(e)}function Yi(e){return Bi(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function Xi(e){return!1}function Zi(e){return Di(e)||ji(e)?e.value:e.textContent||``}function Qi(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function $i(e){var t=gi(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function ea(e){if($i(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&Ti(e)){var n=ea(e);n!==null&&(t=n)}}),t}function ta(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?ea(e):e.ownerDocument.getElementById(t)}function na(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return oi(t);if(!$i(e))return null;var n=e.ownerDocument;return oi(n.querySelectorAll(`label`)).filter(function(t){return ta(t)===e})}function ra(e){var t=e.assignedNodes();return t.length===0?oi(e.childNodes):t}function ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new hi,r=typeof Map>`u`?void 0:new Map,i=Mi(e),a=t.compute,o=a===void 0?`name`:a,s=t.computedStyleSupportsPseudoElements,c=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?i.getComputedStyle.bind(i):l,d=t.hidden,f=d===void 0?!1:d,p=function(e,t){if(t!==void 0)throw Error(`use uncachedGetComputedStyle directly for pseudo elements`);if(r===void 0)return u(e);var n=r.get(e);if(n)return n;var i=u(e,t);return r.set(e,i),i};function m(e,t){var n=``;if(Ti(e)&&c&&(n=`${Qi(u(e,`::before`))} ${n}`),(Fi(e)?ra(e):oi(e.childNodes).concat(zi(e,`aria-owns`))).forEach(function(e){var r=v(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(Ti(e)?p(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),Ti(e)&&c){var r=Qi(u(e,`::after`));n=`${n} ${r}`}return n.trim()}function h(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function g(e){return Ti(e)?h(e,`title`):null}function _(e){if(!Ti(e))return null;if(Ni(e)){n.add(e);for(var t=oi(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(Pi(i))return v(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Ai(e)){n.add(e);for(var a=oi(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(Ei(s))return v(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Li(e)){n.add(e);for(var c=oi(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(Ri(u))return u.textContent}return null}else if(gi(e)===`img`||gi(e)===`area`){var d=h(e,`alt`);if(d!==null)return d}else if(Oi(e)){var f=h(e,`label`);if(f!==null)return f}if(Di(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var p=h(e,`value`);if(p!==null)return p;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var g=na(e);if(g!==null&&g.length!==0)return n.add(e),oi(g).map(function(e){return v(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(Di(e)&&e.type===`image`){var _=h(e,`alt`);if(_!==null)return _;var y=h(e,`title`);return y===null?`Submit Query`:y}if(Bi(e,[`button`])){var b=m(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function v(e,t){if(n.has(e))return``;if(!f&&Hi(e,p)&&!t.isReferenced)return n.add(e),``;var r=Ti(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?zi(e,`aria-labelledby`):[];if(o===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return v(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var a=t.recursion&&Ui(e)&&o===`name`;if(!a){var s=(Ti(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&o===`name`)return n.add(e),s;if(!qi(e)){var c=_(e);if(c!==null)return n.add(e),c}}if(Bi(e,[`menu`]))return n.add(e),``;if(a||t.isEmbeddedInLabel||t.isReferenced){if(Bi(e,[`combobox`,`listbox`])){n.add(e);var l=Ki(e);return l.length===0?Di(e)?e.value:``:oi(l).map(function(e){return v(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(Wi(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(Bi(e,[`textbox`]))return n.add(e),Zi(e)}if(Yi(e)||Ti(e)&&t.isReferenced||Ji(e)||Xi(e)){var u=m(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(u!==``)return n.add(e),u}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),m(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var d=g(e);return d===null?(n.add(e),``):(n.add(e),d)}return Vi(v(e,{isEmbeddedInLabel:!1,isReferenced:o===`description`,recursion:!1}))}function aa(e){return Bi(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`none`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aa(e)?``:ia(e,t)}var sa=class extends $r{constructor(...e){super(...e),this.appearance=`accent`,this.variant=`default`,this.size=`medium`,this.loading=!1,this.align=`center`,this._hasAccessibilityError=!1}static get styles(){return[...super.styles,ei]}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;let t=this.querySelectorAll(`craft-icon, craft-spinner`);await Promise.all(Array.from(t).map(e=>e.updateComplete)),this.accessibleName||=oa(this),this._hasAccessibilityError=!this.accessibleName||this.accessibleName.trim()===``}render(){return g` <div - class="${D({"button-content":!0,"button-content--start":this.align===`start`,"button-content--end":this.align===`end`,"a11y-error":this._hasAccessibilityError})}" + class="${A({"button-content":!0,"button-content--start":this.align===`start`,"button-content--end":this.align===`end`,"a11y-error":this._hasAccessibilityError})}" part="content" > <slot name="prefix" class="prefix" part="prefix"></slot> <slot class="label" part="label"></slot> <slot name="suffix" class="suffix" part="suffix"></slot> </div> - ${this.loading?p`<craft-spinner part="spinner"></craft-spinner>`:y} - `}};d([x()],sa.prototype,`accessibleName`,void 0),d([x({reflect:!0})],sa.prototype,`appearance`,void 0),d([x({reflect:!0})],sa.prototype,`variant`,void 0),d([x({reflect:!0})],sa.prototype,`size`,void 0),d([x({reflect:!0,type:Boolean})],sa.prototype,`loading`,void 0),d([x()],sa.prototype,`align`,void 0),d([S()],sa.prototype,`_hasAccessibilityError`,void 0),customElements.get(`craft-button`)||customElements.define(`craft-button`,sa);var ca=class extends Event{constructor(){super(`wa-load`,{bubbles:!0,cancelable:!1,composed:!0})}},la=class extends Event{constructor(){super(`wa-error`,{bubbles:!0,cancelable:!1,composed:!0})}},ua=`:host { + ${this.loading?g`<craft-spinner part="spinner"></craft-spinner>`:S} + `}};m([w()],sa.prototype,`accessibleName`,void 0),m([w({reflect:!0})],sa.prototype,`appearance`,void 0),m([w({reflect:!0})],sa.prototype,`variant`,void 0),m([w({reflect:!0})],sa.prototype,`size`,void 0),m([w({reflect:!0,type:Boolean})],sa.prototype,`loading`,void 0),m([w()],sa.prototype,`align`,void 0),m([T()],sa.prototype,`_hasAccessibilityError`,void 0),customElements.get(`craft-button`)||customElements.define(`craft-button`,sa);var ca=class extends Event{constructor(){super(`wa-load`,{bubbles:!0,cancelable:!1,composed:!0})}},la=class extends Event{constructor(){super(`wa-error`,{bubbles:!0,cancelable:!1,composed:!0})}},ua=`:host { --primary-color: currentColor; --primary-opacity: 1; --secondary-color: currentColor; @@ -876,13 +876,13 @@ svg { opacity: var(--path-opacity, var(--secondary-opacity)); } } -`,da=Symbol(),fa=Symbol(),pa,ma=new Map,ha=class extends rt{constructor(){super(...arguments),this.svg=null,this.autoWidth=!1,this.swapOpacity=!1,this.label=``,this.library=`default`,this.resolveIcon=async(e,t)=>{let n;if(t?.spriteSheet){this.hasUpdated||await this.updateComplete,this.svg=p`<svg part="svg"> +`,da=Symbol(),fa=Symbol(),pa,ma=new Map,ha=class extends rt{constructor(){super(...arguments),this.svg=null,this.autoWidth=!1,this.swapOpacity=!1,this.label=``,this.library=`default`,this.resolveIcon=async(e,t)=>{let n;if(t?.spriteSheet){this.hasUpdated||await this.updateComplete,this.svg=g`<svg part="svg"> <use part="use" href="${e}"></use> - </svg>`,await this.updateComplete;let n=this.shadowRoot.querySelector(`[part='svg']`);return typeof t.mutator==`function`&&t.mutator(n,this),this.svg}try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?da:fa}catch{return fa}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if(t?.tagName?.toLowerCase()!==`svg`)return da;pa||=new DOMParser;let r=pa.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):da}catch{return da}}}connectedCallback(){super.connectedCallback(),Fe(this)}firstUpdated(e){super.firstUpdated(e),this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Ie(this)}getIconSource(){let e=Le(this.library),t=this.family||Be();return this.name&&e?{url:e.resolver(this.name,t,this.variant,this.autoWidth),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){let{url:e,fromLibrary:t}=this.getIconSource(),n=t?Le(this.library):void 0;if(!e){this.svg=null;return}let r=ma.get(e);r||(r=this.resolveIcon(e,n),ma.set(e,r));let i=await r;if(i===fa&&ma.delete(e),e===this.getIconSource().url){if(Nr(i)){this.svg=i;return}switch(i){case fa:case da:this.svg=null,this.dispatchEvent(new la);break;default:this.svg=i.cloneNode(!0),n?.mutator?.(this.svg,this),this.dispatchEvent(new ca)}}}updated(e){super.updated(e);let t=Le(this.library),n=this.shadowRoot?.querySelector(`svg`);n&&t?.mutator?.(n,this)}render(){return this.hasUpdated?this.svg:p`<svg part="svg" fill="currentColor" width="16" height="16"></svg>`}};ha.css=ua,k([S()],ha.prototype,`svg`,2),k([x({reflect:!0})],ha.prototype,`name`,2),k([x({reflect:!0})],ha.prototype,`family`,2),k([x({reflect:!0})],ha.prototype,`variant`,2),k([x({attribute:`auto-width`,type:Boolean,reflect:!0})],ha.prototype,`autoWidth`,2),k([x({attribute:`swap-opacity`,type:Boolean,reflect:!0})],ha.prototype,`swapOpacity`,2),k([x()],ha.prototype,`src`,2),k([x()],ha.prototype,`label`,2),k([x({reflect:!0})],ha.prototype,`library`,2),k([gr(`label`)],ha.prototype,`handleLabelChange`,1),k([gr([`family`,`name`,`library`,`variant`,`src`,`autoWidth`,`swapOpacity`])],ha.prototype,`setIcon`,1),ha=k([C(`wa-icon`)],ha);var ga=class extends ha{static get styles(){return[ha.styles,h` + </svg>`,await this.updateComplete;let n=this.shadowRoot.querySelector(`[part='svg']`);return typeof t.mutator==`function`&&t.mutator(n,this),this.svg}try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?da:fa}catch{return fa}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if(t?.tagName?.toLowerCase()!==`svg`)return da;pa||=new DOMParser;let r=pa.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):da}catch{return da}}}connectedCallback(){super.connectedCallback(),Fe(this)}firstUpdated(e){super.firstUpdated(e),this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),Ie(this)}getIconSource(){let e=Le(this.library),t=this.family||Be();return this.name&&e?{url:e.resolver(this.name,t,this.variant,this.autoWidth),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){let{url:e,fromLibrary:t}=this.getIconSource(),n=t?Le(this.library):void 0;if(!e){this.svg=null;return}let r=ma.get(e);r||(r=this.resolveIcon(e,n),ma.set(e,r));let i=await r;if(i===fa&&ma.delete(e),e===this.getIconSource().url){if(Nr(i)){this.svg=i;return}switch(i){case fa:case da:this.svg=null,this.dispatchEvent(new la);break;default:this.svg=i.cloneNode(!0),n?.mutator?.(this.svg,this),this.dispatchEvent(new ca)}}}updated(e){super.updated(e);let t=Le(this.library),n=this.shadowRoot?.querySelector(`svg`);n&&t?.mutator?.(n,this)}render(){return this.hasUpdated?this.svg:g`<svg part="svg" fill="currentColor" width="16" height="16"></svg>`}};ha.css=ua,M([T()],ha.prototype,`svg`,2),M([w({reflect:!0})],ha.prototype,`name`,2),M([w({reflect:!0})],ha.prototype,`family`,2),M([w({reflect:!0})],ha.prototype,`variant`,2),M([w({attribute:`auto-width`,type:Boolean,reflect:!0})],ha.prototype,`autoWidth`,2),M([w({attribute:`swap-opacity`,type:Boolean,reflect:!0})],ha.prototype,`swapOpacity`,2),M([w()],ha.prototype,`src`,2),M([w()],ha.prototype,`label`,2),M([w({reflect:!0})],ha.prototype,`library`,2),M([gr(`label`)],ha.prototype,`handleLabelChange`,1),M([gr([`family`,`name`,`library`,`variant`,`src`,`autoWidth`,`swapOpacity`])],ha.prototype,`setIcon`,1),ha=M([E(`wa-icon`)],ha);var ga=class extends ha{static get styles(){return[ha.styles,v` :host { font-size: 0.8em; } - `]}};customElements.get(`craft-icon`)||customElements.define(`craft-icon`,ga);var _a=h` + `]}};customElements.get(`craft-icon`)||customElements.define(`craft-icon`,ga);var _a=v` :host { --color-start: red; --color-end: blue; @@ -909,14 +909,14 @@ svg { user-select: none; pointer-events: none; } -`,va=class extends b{constructor(...e){super(...e),this.label=null,this._gradientId=null}connectedCallback(){super.connectedCallback(),this._gradientId=`avatar-gradient-${Math.random().toString(36).slice(2,8)}`}text(){return this.label?this.label.split(` `).map(e=>e.charAt(0).toUpperCase()).join(``):`?`}render(){return p` +`,va=class extends C{constructor(...e){super(...e),this.label=null,this._gradientId=null}connectedCallback(){super.connectedCallback(),this._gradientId=`avatar-gradient-${Math.random().toString(36).slice(2,8)}`}text(){return this.label?this.label.split(` `).map(e=>e.charAt(0).toUpperCase()).join(``):`?`}render(){return g` <span class="avatar"> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" role="img" > - ${this.label?p`<title>${this.label}`:``} + ${this.label?g`${this.label}`:``} - `}};va.styles=[_a],d([x()],va.prototype,`label`,void 0),d([S()],va.prototype,`_gradientId`,void 0),customElements.get(`craft-avatar`)||customElements.define(`craft-avatar`,va);var ya=h` + `}};va.styles=[_a],m([w()],va.prototype,`label`,void 0),m([T()],va.prototype,`_gradientId`,void 0),customElements.get(`craft-avatar`)||customElements.define(`craft-avatar`,va);var ya=v` font: inherit; color: var(--c-input-text, var(--c-text-default)); position: relative; @@ -960,7 +960,7 @@ svg { @media (pointer: none), (pointer: coarse) { font-size: 1rem; } -`,ba=h` +`,ba=v` :host(:not([label-sr-only])) .form-field__group-one { margin-block-end: var(--c-spacing-sm); } @@ -987,7 +987,7 @@ svg { .input-group__after { margin-block-start: var(--c-spacing-sm); } -`,xa=h` +`,xa=v` ${ba} ::slotted([slot='input']) { @@ -1023,13 +1023,13 @@ svg { :host([center]) ::slotted([slot='input']) { text-align: center; } -`,Sa=window,Ca=new WeakMap;function wa(e){Sa.applyFocusVisiblePolyfill&&!Ca.has(e)&&(Sa.applyFocusVisiblePolyfill(e),Ca.set(e,void 0))}var Ta=Or(e=>class extends e{static get properties(){return{focused:{type:Boolean,reflect:!0},focusedVisible:{type:Boolean,reflect:!0,attribute:`focused-visible`},autofocus:{type:Boolean,reflect:!0}}}constructor(){super(),this.focused=!1,this.focusedVisible=!1,this.autofocus=!1}firstUpdated(e){super.firstUpdated(e),this.__registerEventsForFocusMixin(),this.__syncAutofocusToFocusableElement()}disconnectedCallback(){super.disconnectedCallback(),this.__teardownEventsForFocusMixin()}updated(e){super.updated(e),e.has(`autofocus`)&&this.__syncAutofocusToFocusableElement()}__syncAutofocusToFocusableElement(){this._focusableNode&&(this.hasAttribute(`autofocus`)?this._focusableNode.setAttribute(`autofocus`,``):this._focusableNode.removeAttribute(`autofocus`))}focus(){this._focusableNode?.focus()}blur(){this._focusableNode?.blur()}get _focusableNode(){return this._inputNode||document.createElement(`input`)}__onFocus(){if(this.focused=!0,typeof Sa.applyFocusVisiblePolyfill==`function`)this.focusedVisible=this._focusableNode.hasAttribute(`data-focus-visible-added`);else try{this.focusedVisible=this._focusableNode.matches(`:focus-visible`)}catch{this.focusedVisible=!1}}__onBlur(){this.focused=!1,this.focusedVisible=!1}__registerEventsForFocusMixin(){wa(this.getRootNode()),this.__redispatchFocus=e=>{e.stopPropagation(),this.dispatchEvent(new Event(`focus`))},this._focusableNode.addEventListener(`focus`,this.__redispatchFocus),this.__redispatchBlur=e=>{e.stopPropagation(),this.dispatchEvent(new Event(`blur`))},this._focusableNode.addEventListener(`blur`,this.__redispatchBlur),this.__redispatchFocusin=e=>{e.stopPropagation(),this.__onFocus(),this.dispatchEvent(new Event(`focusin`,{bubbles:!0,composed:!0}))},this._focusableNode.addEventListener(`focusin`,this.__redispatchFocusin),this.__redispatchFocusout=e=>{e.stopPropagation(),this.__onBlur(),this.dispatchEvent(new Event(`focusout`,{bubbles:!0,composed:!0}))},this._focusableNode.addEventListener(`focusout`,this.__redispatchFocusout)}__teardownEventsForFocusMixin(){this._focusableNode&&(this._focusableNode?.removeEventListener(`focus`,this.__redispatchFocus),this._focusableNode?.removeEventListener(`blur`,this.__redispatchBlur),this._focusableNode?.removeEventListener(`focusin`,this.__redispatchFocusin),this._focusableNode?.removeEventListener(`focusout`,this.__redispatchFocusout))}});function Ea(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Da=`long`,Oa=`short`,ka=`narrow`,j=`numeric`,Aa=`2-digit`,ja={number:{decimal:{style:`decimal`},integer:{style:`decimal`,maximumFractionDigits:0},currency:{style:`currency`,currency:`USD`},percent:{style:`percent`},default:{style:`decimal`}},date:{short:{month:j,day:j,year:Aa},medium:{month:Oa,day:j,year:j},long:{month:Da,day:j,year:j},full:{month:Da,day:j,year:j,weekday:Da},default:{month:Oa,day:j,year:j}},time:{short:{hour:j,minute:j},medium:{hour:j,minute:j,second:j},long:{hour:j,minute:j,second:j,timeZoneName:Oa},full:{hour:j,minute:j,second:j,timeZoneName:Oa},default:{hour:j,minute:j,second:j}},duration:{default:{hours:{minimumIntegerDigits:1,maximumFractionDigits:0},minutes:{minimumIntegerDigits:2,maximumFractionDigits:0},seconds:{minimumIntegerDigits:2,maximumFractionDigits:3}}},parseNumberPattern:function(e){if(e){var t={},n=e.match(/\b[A-Z]{3}\b/i),r=e.replace(/[^¤]/g,``).length;if(!r&&n&&(r=1),r?(t.style=`currency`,t.currencyDisplay=r===1?`symbol`:r===2?`code`:`name`,t.currency=n?n[0].toUpperCase():`USD`):e.indexOf(`%`)>=0&&(t.style=`percent`),!/[@#0]/.test(e))return t.style?t:void 0;if(t.useGrouping=e.indexOf(`,`)>=0,/E\+?[@#0]+/i.test(e)||e.indexOf(`@`)>=0){var i=e.replace(/E\+?[@#0]+|[^@#0]/gi,``);t.minimumSignificantDigits=Math.min(Math.max(i.replace(/[^@0]/g,``).length,1),21),t.maximumSignificantDigits=Math.min(Math.max(i.length,1),21)}else{for(var a=e.replace(/[^#0.]/g,``).split(`.`),o=a[0],s=o.length-1;o[s]===`0`;)--s;t.minimumIntegerDigits=Math.min(Math.max(o.length-1-s,1),21);var c=a[1]||``;for(s=0;c[s]===`0`;)++s;for(t.minimumFractionDigits=Math.min(Math.max(s,0),20);c[s]===`#`;)++s;t.maximumFractionDigits=Math.min(Math.max(s,0),20)}return t}},parseDatePattern:function(e){if(e){for(var t={},n=0;n0)a=new Intl.PluralRules(t,{type:n});else{var o=Ma(t,Ia);a={select:o&&Ia[o][n]||l}}return function(e,t){return(i[`=`+ +e]||i[a.select(e-r)]||i.other)(t)}}function l(){return`other`}function u(e,t){var n=e[2];return function(e,t){return(n[e]||n.other)(t)}}var d={number:a,ordinal:a,spellout:a,duration:o,date:s,time:s,plural:c,selectordinal:c,select:u};t.types=d});La.toParts,La.types;var Ra=Ea(function(e,t){var n=`{`,r=`}`,i=`,`,a=`#`,o=`<`,s=`>`,c=``,u=`'`,d=`offset:`,f=[`number`,`date`,`time`,`ordinal`,`duration`,`spellout`],p=[`plural`,`select`,`selectordinal`];t=e.exports=function(e,t){return m({pattern:String(e),index:0,tagsType:t&&t.tagsType||null,tokens:t&&t.tokens||null},``)};function m(e,t){var n=e.pattern,i=n.length,a=[],o=e.index,s=h(e,t);for(s&&a.push(s),s&&e.tokens&&e.tokens.push([`text`,n.slice(o,e.index)]);e.index=9&&e<=13||e===32||e===133||e===160||e===6158||e>=8192&&e<=8205||e===8232||e===8233||e===8239||e===8287||e===8288||e===12288||e===65279}function _(e){for(var t=e.pattern,n=t.length,r=e.index;e.index=0)u=[s,l,x(e)];else{var p=e.index,m=x(e);_(e),t[e.index]===n&&(e.index=p,m=w(e,l)),u=[s,l,m]}if(_(e),t[e.index]!==r)throw E(e,r);return e.tokens&&e.tokens.push([`syntax`,r]),++e.index,u}function y(e){var t=e.tagsType;if(!(!t||e.pattern[e.index]!==o)){if(e.pattern.slice(e.index,e.index+c.length)===c)throw E(e,null,`closing tag without matching opening tag`);e.tokens&&e.tokens.push([`syntax`,o]),++e.index;var n=b(e,!0);if(!n)throw E(e,`placeholder id`);if(e.tokens&&e.tokens.push([`id`,n]),_(e),e.pattern.slice(e.index,e.index+l.length)===l)return e.tokens&&e.tokens.push([`syntax`,l]),e.index+=l.length,[n,t];if(e.pattern[e.index]!==s)throw E(e,s);e.tokens&&e.tokens.push([`syntax`,s]),++e.index;var r=m(e,t),i=e.index;if(e.pattern.slice(e.index,e.index+c.length)!==c)throw E(e,c+n+s);e.tokens&&e.tokens.push([`syntax`,c]),e.index+=c.length;var a=b(e,!0);if(a&&e.tokens&&e.tokens.push([`id`,a]),n!==a)throw e.index=i,E(e,c+n+s,c+a+s);if(_(e),e.pattern[e.index]!==s)throw E(e,s);return e.tokens&&e.tokens.push([`syntax`,s]),++e.index,[n,t,{children:r}]}}function b(e,t){for(var c=e.pattern,l=c.length,d=``;e.index=48&&e<=57}function w(e,t){for(var n=e.pattern,i=n.length,a={};e.index=0)throw E(e,null,null,`"other" sub-message must be specified in `+t);return a}function T(e,t){if(e.pattern[e.index]!==n)throw E(e,n+` to start sub-message`);e.tokens&&e.tokens.push([`syntax`,n]),++e.index;var i=m(e,t);if(e.pattern[e.index]!==r)throw E(e,r+` to end sub-message`);return e.tokens&&e.tokens.push([`syntax`,r]),++e.index,i}function E(e,t,n,r){var i=e.pattern,a=i.slice(0,e.index).split(/\r?\n/),o=e.index,s=a.length,c=a.slice(-1)[0].length;return n||=e.index>=i.length?`end of message pattern`:b(e)||i[e.index],r||=D(t,n),r+=` in `+i.replace(/\r?\n/g,` -`),new ee(r,t,n,o,s,c)}function D(e,t){return e?`Expected `+e+` but found `+t:`Unexpected `+t+` found`}function ee(e,t,n,r,i,a){Error.call(this,e),this.name=`SyntaxError`,this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=i,this.column=a}ee.prototype=Object.create(Error.prototype),t.SyntaxError=ee});Ra.SyntaxError;var za=RegExp(`^(`+Object.keys(Ia).join(`|`)+`)\\b`),Ba=new WeakMap;function Va(e,t,n){if(!(this instanceof Va)||Ba.has(this))throw TypeError(`calling MessageFormat constructor without new is invalid`);var r=Ra(e);Ba.set(this,{ast:r,format:La(r,t,n&&n.types),locale:Va.supportedLocalesOf(t)[0]||`en`,locales:t,options:n})}var Ha=Va;Object.defineProperties(Va.prototype,{format:{configurable:!0,get:function(){var e=Ba.get(this);if(!e)throw TypeError(`MessageFormat.prototype.format called on value that's not an object initialized as a MessageFormat`);return e.format}},formatToParts:{configurable:!0,writable:!0,value:function(e){var t=Ba.get(this);if(!t)throw TypeError(`MessageFormat.prototype.formatToParts called on value that's not an object initialized as a MessageFormat`);return(t.toParts||=La.toParts(t.ast,t.locales,t.options&&t.options.types))(e)}},resolvedOptions:{configurable:!0,writable:!0,value:function(){var e=Ba.get(this);if(!e)throw TypeError(`MessageFormat.prototype.resolvedOptions called on value that's not an object initialized as a MessageFormat`);return{locale:e.locale}}}}),typeof Symbol<`u`&&Object.defineProperty(Va.prototype,Symbol.toStringTag,{value:`Object`}),Object.defineProperties(Va,{supportedLocalesOf:{configurable:!0,writable:!0,value:function(e){return[].concat(Intl.NumberFormat.supportedLocalesOf(e),Intl.DateTimeFormat.supportedLocalesOf(e),Intl.PluralRules?Intl.PluralRules.supportedLocalesOf(e):[],[].concat(e||[]).filter(function(e){return za.test(e)})).filter(function(e,t,n){return n.indexOf(e)===t})}}});function Ua(e){return!!(e&&e.default&&typeof e.default==`object`&&Object.keys(e).length===1)}var Wa=globalThis.document?.documentElement,Ga=class extends EventTarget{formatNumberOptions={returnIfNaN:``,postProcessors:new Map};formatDateOptions={postProcessors:new Map};#e=!1;#t=``;#n=null;__storage={};__namespacePatternsMap=new Map;__namespaceLoadersCache={};__namespaceLoaderPromisesCache={};get locale(){return this.#e?this.#t||``:Wa.lang||``}set locale(e){if(this.#r(e),!this.#e){let t=Wa.lang;this._setHtmlLangAttribute(e),this._onLocaleChanged(e,t);return}let t=this.#t;this.#t=e,this.#n===null&&this._setHtmlLangAttribute(e),this._onLocaleChanged(e,t)}get loadingComplete(){return typeof this.__namespaceLoaderPromisesCache[this.locale]==`object`?Promise.all(Object.values(this.__namespaceLoaderPromisesCache[this.locale])):Promise.resolve()}constructor({allowOverridesForExistingNamespaces:e=!1,autoLoadOnLocaleChange:t=!1,showKeyAsFallback:n=!1,fallbackLocale:r=``}={}){super(),this.__allowOverridesForExistingNamespaces=e,this._autoLoadOnLocaleChange=!!t,this._showKeyAsFallback=n,this._fallbackLocale=r;let i=Wa.getAttribute(`data-localize-lang`);this.#e=!!i,this.#e&&(this.locale=i,this._setupTranslationToolSupport()),Wa.lang||=this.locale||`en-GB`,this._setupHtmlLangAttributeObserver()}addData(e,t,n){if(!this.__allowOverridesForExistingNamespaces&&this._isNamespaceInCache(e,t))throw Error(`Namespace "${t}" has been already added for the locale "${e}".`);this.__storage[e]=this.__storage[e]||{},this.__allowOverridesForExistingNamespaces?this.__storage[e][t]={...this.__storage[e][t],...n}:this.__storage[e][t]=n}setupNamespaceLoader(e,t){this.__namespacePatternsMap.set(e,t)}loadNamespaces(e,{locale:t}={}){return Promise.all(e.map(e=>this.loadNamespace(e,{locale:t})))}loadNamespace(e,{locale:t=this.locale}={locale:this.locale}){let n=typeof e==`object`,r=n?Object.keys(e)[0]:e;return this._isNamespaceInCache(t,r)?Promise.resolve():this._getCachedNamespaceLoaderPromise(t,r)||this._loadNamespaceData(t,e,n,r)}msg(e,t,n={}){let r=n.locale?n.locale:this.locale,i=this._getMessageForKeys(e,r);return i?new Ha(i,r).format(t):``}teardown(){this._teardownHtmlLangAttributeObserver()}reset(){this.__storage={},this.__namespacePatternsMap=new Map,this.__namespaceLoadersCache={},this.__namespaceLoaderPromisesCache={}}setDatePostProcessorForLocale({locale:e,postProcessor:t}){this.formatDateOptions?.postProcessors.set(e,t)}setNumberPostProcessorForLocale({locale:e,postProcessor:t}){this.formatNumberOptions?.postProcessors.set(e,t)}_setupTranslationToolSupport(){this.#n=Wa.lang||null}_setHtmlLangAttribute(e){this._teardownHtmlLangAttributeObserver(),Wa.lang=e,this._setupHtmlLangAttributeObserver()}_setupHtmlLangAttributeObserver(){this._htmlLangAttributeObserver||=new MutationObserver(e=>{e.forEach(e=>{this.#e?Wa.lang===`auto`?(this.#n=null,this._setHtmlLangAttribute(this.locale)):this.#n=document.documentElement.lang:this._onLocaleChanged(document.documentElement.lang,e.oldValue||``)})}),this._htmlLangAttributeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`lang`],attributeOldValue:!0})}_teardownHtmlLangAttributeObserver(){this._htmlLangAttributeObserver&&this._htmlLangAttributeObserver.disconnect()}_isNamespaceInCache(e,t){return!!(this.__storage[e]&&this.__storage[e][t])}_getCachedNamespaceLoaderPromise(e,t){return this.__namespaceLoaderPromisesCache[e]?this.__namespaceLoaderPromisesCache[e][t]:null}_loadNamespaceData(e,t,n,r){let i=this._getNamespaceLoader(t,n,r),a=this._getNamespaceLoaderPromise(i,e,r);return this._cacheNamespaceLoaderPromise(e,r,a),a.then(t=>{if(this.__namespaceLoaderPromisesCache[e]&&this.__namespaceLoaderPromisesCache[e][r]===a){let n=Ua(t)?t.default:t;this.addData(e,r,n)}})}_getNamespaceLoader(e,t,n){let r=this.__namespaceLoadersCache[n];if(r||(t?(r=e[n],this.__namespaceLoadersCache[n]=r):(r=this._lookupNamespaceLoader(n),this.__namespaceLoadersCache[n]=r)),!r)throw Error(`Namespace "${n}" was not properly setup.`);return this.__namespaceLoadersCache[n]=r,r}_getNamespaceLoaderPromise(e,t,n,r=this._fallbackLocale){return e(t,n).catch(()=>{let i=this._getLangFromLocale(t);return e(i,n).catch(()=>{if(r)return this._getNamespaceLoaderPromise(e,r,n,``).catch(()=>{let e=this._getLangFromLocale(r);throw Error(`Data for namespace "${n}" and current locale "${t}" or fallback locale "${r}" could not be loaded. Make sure you have data either for locale "${t}" (and/or generic language "${i}") or for fallback "${r}" (and/or "${e}").`)});throw Error(`Data for namespace "${n}" and locale "${t}" could not be loaded. Make sure you have data for locale "${t}" (and/or generic language "${i}").`)})})}_cacheNamespaceLoaderPromise(e,t,n){this.__namespaceLoaderPromisesCache[e]||(this.__namespaceLoaderPromisesCache[e]={}),this.__namespaceLoaderPromisesCache[e][t]=n}_lookupNamespaceLoader(e){for(let[t,n]of this.__namespacePatternsMap){let r=typeof t==`string`&&t===e,i=typeof t==`object`&&t.constructor.name===`RegExp`&&t.test(e);if(r||i)return n}return null}_getLangFromLocale(e){return e.substring(0,2)}_onLocaleChanged(e,t){this.dispatchEvent(new CustomEvent(`__localeChanging`)),e!==t&&(this._autoLoadOnLocaleChange?(this._loadAllMissing(e,t),this.loadingComplete.then(()=>{this.dispatchEvent(new CustomEvent(`localeChanged`,{detail:{newLocale:e,oldLocale:t}}))})):this.dispatchEvent(new CustomEvent(`localeChanged`,{detail:{newLocale:e,oldLocale:t}})))}_loadAllMissing(e,t){let n=this.__storage[t]||{},r=this.__storage[e]||{};Object.keys(n).forEach(t=>{r[t]||this.loadNamespace(t,{locale:e})})}_getMessageForKeys(e,t){if(typeof e==`string`)return this._getMessageForKey(e,t);let n=Array.from(e).reverse(),r,i;for(;n.length;)if(r=n.pop(),i=this._getMessageForKey(r,t),i)return i}_getMessageForKey(e,t){if(!e||e.indexOf(`:`)===-1)throw Error(`Namespace is missing in the key "${e}". The format for keys is "namespace:name".`);let[n,r]=e.split(`:`),i=this.__storage[t],a=i?i[n]:{},o=r.split(`.`).reduce((e,t)=>typeof e==`object`?e[t]:e,a);return String(o||(this._showKeyAsFallback?e:``))}#r(e){if(!e.includes(`-`))throw Error(` +`,Sa=window,Ca=new WeakMap;function wa(e){Sa.applyFocusVisiblePolyfill&&!Ca.has(e)&&(Sa.applyFocusVisiblePolyfill(e),Ca.set(e,void 0))}var Ta=Or(e=>class extends e{static get properties(){return{focused:{type:Boolean,reflect:!0},focusedVisible:{type:Boolean,reflect:!0,attribute:`focused-visible`},autofocus:{type:Boolean,reflect:!0}}}constructor(){super(),this.focused=!1,this.focusedVisible=!1,this.autofocus=!1}firstUpdated(e){super.firstUpdated(e),this.__registerEventsForFocusMixin(),this.__syncAutofocusToFocusableElement()}disconnectedCallback(){super.disconnectedCallback(),this.__teardownEventsForFocusMixin()}updated(e){super.updated(e),e.has(`autofocus`)&&this.__syncAutofocusToFocusableElement()}__syncAutofocusToFocusableElement(){this._focusableNode&&(this.hasAttribute(`autofocus`)?this._focusableNode.setAttribute(`autofocus`,``):this._focusableNode.removeAttribute(`autofocus`))}focus(){this._focusableNode?.focus()}blur(){this._focusableNode?.blur()}get _focusableNode(){return this._inputNode||document.createElement(`input`)}__onFocus(){if(this.focused=!0,typeof Sa.applyFocusVisiblePolyfill==`function`)this.focusedVisible=this._focusableNode.hasAttribute(`data-focus-visible-added`);else try{this.focusedVisible=this._focusableNode.matches(`:focus-visible`)}catch{this.focusedVisible=!1}}__onBlur(){this.focused=!1,this.focusedVisible=!1}__registerEventsForFocusMixin(){wa(this.getRootNode()),this.__redispatchFocus=e=>{e.stopPropagation(),this.dispatchEvent(new Event(`focus`))},this._focusableNode.addEventListener(`focus`,this.__redispatchFocus),this.__redispatchBlur=e=>{e.stopPropagation(),this.dispatchEvent(new Event(`blur`))},this._focusableNode.addEventListener(`blur`,this.__redispatchBlur),this.__redispatchFocusin=e=>{e.stopPropagation(),this.__onFocus(),this.dispatchEvent(new Event(`focusin`,{bubbles:!0,composed:!0}))},this._focusableNode.addEventListener(`focusin`,this.__redispatchFocusin),this.__redispatchFocusout=e=>{e.stopPropagation(),this.__onBlur(),this.dispatchEvent(new Event(`focusout`,{bubbles:!0,composed:!0}))},this._focusableNode.addEventListener(`focusout`,this.__redispatchFocusout)}__teardownEventsForFocusMixin(){this._focusableNode&&(this._focusableNode?.removeEventListener(`focus`,this.__redispatchFocus),this._focusableNode?.removeEventListener(`blur`,this.__redispatchBlur),this._focusableNode?.removeEventListener(`focusin`,this.__redispatchFocusin),this._focusableNode?.removeEventListener(`focusout`,this.__redispatchFocusout))}});function Ea(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Da=`long`,Oa=`short`,ka=`narrow`,P=`numeric`,Aa=`2-digit`,ja={number:{decimal:{style:`decimal`},integer:{style:`decimal`,maximumFractionDigits:0},currency:{style:`currency`,currency:`USD`},percent:{style:`percent`},default:{style:`decimal`}},date:{short:{month:P,day:P,year:Aa},medium:{month:Oa,day:P,year:P},long:{month:Da,day:P,year:P},full:{month:Da,day:P,year:P,weekday:Da},default:{month:Oa,day:P,year:P}},time:{short:{hour:P,minute:P},medium:{hour:P,minute:P,second:P},long:{hour:P,minute:P,second:P,timeZoneName:Oa},full:{hour:P,minute:P,second:P,timeZoneName:Oa},default:{hour:P,minute:P,second:P}},duration:{default:{hours:{minimumIntegerDigits:1,maximumFractionDigits:0},minutes:{minimumIntegerDigits:2,maximumFractionDigits:0},seconds:{minimumIntegerDigits:2,maximumFractionDigits:3}}},parseNumberPattern:function(e){if(e){var t={},n=e.match(/\b[A-Z]{3}\b/i),r=e.replace(/[^¤]/g,``).length;if(!r&&n&&(r=1),r?(t.style=`currency`,t.currencyDisplay=r===1?`symbol`:r===2?`code`:`name`,t.currency=n?n[0].toUpperCase():`USD`):e.indexOf(`%`)>=0&&(t.style=`percent`),!/[@#0]/.test(e))return t.style?t:void 0;if(t.useGrouping=e.indexOf(`,`)>=0,/E\+?[@#0]+/i.test(e)||e.indexOf(`@`)>=0){var i=e.replace(/E\+?[@#0]+|[^@#0]/gi,``);t.minimumSignificantDigits=Math.min(Math.max(i.replace(/[^@0]/g,``).length,1),21),t.maximumSignificantDigits=Math.min(Math.max(i.length,1),21)}else{for(var a=e.replace(/[^#0.]/g,``).split(`.`),o=a[0],s=o.length-1;o[s]===`0`;)--s;t.minimumIntegerDigits=Math.min(Math.max(o.length-1-s,1),21);var c=a[1]||``;for(s=0;c[s]===`0`;)++s;for(t.minimumFractionDigits=Math.min(Math.max(s,0),20);c[s]===`#`;)++s;t.maximumFractionDigits=Math.min(Math.max(s,0),20)}return t}},parseDatePattern:function(e){if(e){for(var t={},n=0;n0)a=new Intl.PluralRules(t,{type:n});else{var o=Ma(t,Ia);a={select:o&&Ia[o][n]||l}}return function(e,t){return(i[`=`+ +e]||i[a.select(e-r)]||i.other)(t)}}function l(){return`other`}function u(e,t){var n=e[2];return function(e,t){return(n[e]||n.other)(t)}}var d={number:a,ordinal:a,spellout:a,duration:o,date:s,time:s,plural:c,selectordinal:c,select:u};t.types=d});La.toParts,La.types;var Ra=Ea(function(e,t){var n=`{`,r=`}`,i=`,`,a=`#`,o=`<`,s=`>`,c=``,u=`'`,d=`offset:`,f=[`number`,`date`,`time`,`ordinal`,`duration`,`spellout`],p=[`plural`,`select`,`selectordinal`];t=e.exports=function(e,t){return m({pattern:String(e),index:0,tagsType:t&&t.tagsType||null,tokens:t&&t.tokens||null},``)};function m(e,t){var n=e.pattern,i=n.length,a=[],o=e.index,s=h(e,t);for(s&&a.push(s),s&&e.tokens&&e.tokens.push([`text`,n.slice(o,e.index)]);e.index=9&&e<=13||e===32||e===133||e===160||e===6158||e>=8192&&e<=8205||e===8232||e===8233||e===8239||e===8287||e===8288||e===12288||e===65279}function _(e){for(var t=e.pattern,n=t.length,r=e.index;e.index=0)u=[s,l,x(e)];else{var p=e.index,m=x(e);_(e),t[e.index]===n&&(e.index=p,m=w(e,l)),u=[s,l,m]}if(_(e),t[e.index]!==r)throw E(e,r);return e.tokens&&e.tokens.push([`syntax`,r]),++e.index,u}function y(e){var t=e.tagsType;if(!(!t||e.pattern[e.index]!==o)){if(e.pattern.slice(e.index,e.index+c.length)===c)throw E(e,null,`closing tag without matching opening tag`);e.tokens&&e.tokens.push([`syntax`,o]),++e.index;var n=b(e,!0);if(!n)throw E(e,`placeholder id`);if(e.tokens&&e.tokens.push([`id`,n]),_(e),e.pattern.slice(e.index,e.index+l.length)===l)return e.tokens&&e.tokens.push([`syntax`,l]),e.index+=l.length,[n,t];if(e.pattern[e.index]!==s)throw E(e,s);e.tokens&&e.tokens.push([`syntax`,s]),++e.index;var r=m(e,t),i=e.index;if(e.pattern.slice(e.index,e.index+c.length)!==c)throw E(e,c+n+s);e.tokens&&e.tokens.push([`syntax`,c]),e.index+=c.length;var a=b(e,!0);if(a&&e.tokens&&e.tokens.push([`id`,a]),n!==a)throw e.index=i,E(e,c+n+s,c+a+s);if(_(e),e.pattern[e.index]!==s)throw E(e,s);return e.tokens&&e.tokens.push([`syntax`,s]),++e.index,[n,t,{children:r}]}}function b(e,t){for(var c=e.pattern,l=c.length,d=``;e.index=48&&e<=57}function w(e,t){for(var n=e.pattern,i=n.length,a={};e.index=0)throw E(e,null,null,`"other" sub-message must be specified in `+t);return a}function T(e,t){if(e.pattern[e.index]!==n)throw E(e,n+` to start sub-message`);e.tokens&&e.tokens.push([`syntax`,n]),++e.index;var i=m(e,t);if(e.pattern[e.index]!==r)throw E(e,r+` to end sub-message`);return e.tokens&&e.tokens.push([`syntax`,r]),++e.index,i}function E(e,t,n,r){var i=e.pattern,a=i.slice(0,e.index).split(/\r?\n/),o=e.index,s=a.length,c=a.slice(-1)[0].length;return n||=e.index>=i.length?`end of message pattern`:b(e)||i[e.index],r||=D(t,n),r+=` in `+i.replace(/\r?\n/g,` +`),new O(r,t,n,o,s,c)}function D(e,t){return e?`Expected `+e+` but found `+t:`Unexpected `+t+` found`}function O(e,t,n,r,i,a){Error.call(this,e),this.name=`SyntaxError`,this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=i,this.column=a}O.prototype=Object.create(Error.prototype),t.SyntaxError=O});Ra.SyntaxError;var za=RegExp(`^(`+Object.keys(Ia).join(`|`)+`)\\b`),Ba=new WeakMap;function Va(e,t,n){if(!(this instanceof Va)||Ba.has(this))throw TypeError(`calling MessageFormat constructor without new is invalid`);var r=Ra(e);Ba.set(this,{ast:r,format:La(r,t,n&&n.types),locale:Va.supportedLocalesOf(t)[0]||`en`,locales:t,options:n})}var Ha=Va;Object.defineProperties(Va.prototype,{format:{configurable:!0,get:function(){var e=Ba.get(this);if(!e)throw TypeError(`MessageFormat.prototype.format called on value that's not an object initialized as a MessageFormat`);return e.format}},formatToParts:{configurable:!0,writable:!0,value:function(e){var t=Ba.get(this);if(!t)throw TypeError(`MessageFormat.prototype.formatToParts called on value that's not an object initialized as a MessageFormat`);return(t.toParts||=La.toParts(t.ast,t.locales,t.options&&t.options.types))(e)}},resolvedOptions:{configurable:!0,writable:!0,value:function(){var e=Ba.get(this);if(!e)throw TypeError(`MessageFormat.prototype.resolvedOptions called on value that's not an object initialized as a MessageFormat`);return{locale:e.locale}}}}),typeof Symbol<`u`&&Object.defineProperty(Va.prototype,Symbol.toStringTag,{value:`Object`}),Object.defineProperties(Va,{supportedLocalesOf:{configurable:!0,writable:!0,value:function(e){return[].concat(Intl.NumberFormat.supportedLocalesOf(e),Intl.DateTimeFormat.supportedLocalesOf(e),Intl.PluralRules?Intl.PluralRules.supportedLocalesOf(e):[],[].concat(e||[]).filter(function(e){return za.test(e)})).filter(function(e,t,n){return n.indexOf(e)===t})}}});function Ua(e){return!!(e&&e.default&&typeof e.default==`object`&&Object.keys(e).length===1)}var Wa=globalThis.document?.documentElement,Ga=class extends EventTarget{formatNumberOptions={returnIfNaN:``,postProcessors:new Map};formatDateOptions={postProcessors:new Map};#e=!1;#t=``;#n=null;__storage={};__namespacePatternsMap=new Map;__namespaceLoadersCache={};__namespaceLoaderPromisesCache={};get locale(){return this.#e?this.#t||``:Wa.lang||``}set locale(e){if(this.#r(e),!this.#e){let t=Wa.lang;this._setHtmlLangAttribute(e),this._onLocaleChanged(e,t);return}let t=this.#t;this.#t=e,this.#n===null&&this._setHtmlLangAttribute(e),this._onLocaleChanged(e,t)}get loadingComplete(){return typeof this.__namespaceLoaderPromisesCache[this.locale]==`object`?Promise.all(Object.values(this.__namespaceLoaderPromisesCache[this.locale])):Promise.resolve()}constructor({allowOverridesForExistingNamespaces:e=!1,autoLoadOnLocaleChange:t=!1,showKeyAsFallback:n=!1,fallbackLocale:r=``}={}){super(),this.__allowOverridesForExistingNamespaces=e,this._autoLoadOnLocaleChange=!!t,this._showKeyAsFallback=n,this._fallbackLocale=r;let i=Wa.getAttribute(`data-localize-lang`);this.#e=!!i,this.#e&&(this.locale=i,this._setupTranslationToolSupport()),Wa.lang||=this.locale||`en-GB`,this._setupHtmlLangAttributeObserver()}addData(e,t,n){if(!this.__allowOverridesForExistingNamespaces&&this._isNamespaceInCache(e,t))throw Error(`Namespace "${t}" has been already added for the locale "${e}".`);this.__storage[e]=this.__storage[e]||{},this.__allowOverridesForExistingNamespaces?this.__storage[e][t]={...this.__storage[e][t],...n}:this.__storage[e][t]=n}setupNamespaceLoader(e,t){this.__namespacePatternsMap.set(e,t)}loadNamespaces(e,{locale:t}={}){return Promise.all(e.map(e=>this.loadNamespace(e,{locale:t})))}loadNamespace(e,{locale:t=this.locale}={locale:this.locale}){let n=typeof e==`object`,r=n?Object.keys(e)[0]:e;return this._isNamespaceInCache(t,r)?Promise.resolve():this._getCachedNamespaceLoaderPromise(t,r)||this._loadNamespaceData(t,e,n,r)}msg(e,t,n={}){let r=n.locale?n.locale:this.locale,i=this._getMessageForKeys(e,r);return i?new Ha(i,r).format(t):``}teardown(){this._teardownHtmlLangAttributeObserver()}reset(){this.__storage={},this.__namespacePatternsMap=new Map,this.__namespaceLoadersCache={},this.__namespaceLoaderPromisesCache={}}setDatePostProcessorForLocale({locale:e,postProcessor:t}){this.formatDateOptions?.postProcessors.set(e,t)}setNumberPostProcessorForLocale({locale:e,postProcessor:t}){this.formatNumberOptions?.postProcessors.set(e,t)}_setupTranslationToolSupport(){this.#n=Wa.lang||null}_setHtmlLangAttribute(e){this._teardownHtmlLangAttributeObserver(),Wa.lang=e,this._setupHtmlLangAttributeObserver()}_setupHtmlLangAttributeObserver(){this._htmlLangAttributeObserver||=new MutationObserver(e=>{e.forEach(e=>{this.#e?Wa.lang===`auto`?(this.#n=null,this._setHtmlLangAttribute(this.locale)):this.#n=document.documentElement.lang:this._onLocaleChanged(document.documentElement.lang,e.oldValue||``)})}),this._htmlLangAttributeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`lang`],attributeOldValue:!0})}_teardownHtmlLangAttributeObserver(){this._htmlLangAttributeObserver&&this._htmlLangAttributeObserver.disconnect()}_isNamespaceInCache(e,t){return!!(this.__storage[e]&&this.__storage[e][t])}_getCachedNamespaceLoaderPromise(e,t){return this.__namespaceLoaderPromisesCache[e]?this.__namespaceLoaderPromisesCache[e][t]:null}_loadNamespaceData(e,t,n,r){let i=this._getNamespaceLoader(t,n,r),a=this._getNamespaceLoaderPromise(i,e,r);return this._cacheNamespaceLoaderPromise(e,r,a),a.then(t=>{if(this.__namespaceLoaderPromisesCache[e]&&this.__namespaceLoaderPromisesCache[e][r]===a){let n=Ua(t)?t.default:t;this.addData(e,r,n)}})}_getNamespaceLoader(e,t,n){let r=this.__namespaceLoadersCache[n];if(r||(t?(r=e[n],this.__namespaceLoadersCache[n]=r):(r=this._lookupNamespaceLoader(n),this.__namespaceLoadersCache[n]=r)),!r)throw Error(`Namespace "${n}" was not properly setup.`);return this.__namespaceLoadersCache[n]=r,r}_getNamespaceLoaderPromise(e,t,n,r=this._fallbackLocale){return e(t,n).catch(()=>{let i=this._getLangFromLocale(t);return e(i,n).catch(()=>{if(r)return this._getNamespaceLoaderPromise(e,r,n,``).catch(()=>{let e=this._getLangFromLocale(r);throw Error(`Data for namespace "${n}" and current locale "${t}" or fallback locale "${r}" could not be loaded. Make sure you have data either for locale "${t}" (and/or generic language "${i}") or for fallback "${r}" (and/or "${e}").`)});throw Error(`Data for namespace "${n}" and locale "${t}" could not be loaded. Make sure you have data for locale "${t}" (and/or generic language "${i}").`)})})}_cacheNamespaceLoaderPromise(e,t,n){this.__namespaceLoaderPromisesCache[e]||(this.__namespaceLoaderPromisesCache[e]={}),this.__namespaceLoaderPromisesCache[e][t]=n}_lookupNamespaceLoader(e){for(let[t,n]of this.__namespacePatternsMap){let r=typeof t==`string`&&t===e,i=typeof t==`object`&&t.constructor.name===`RegExp`&&t.test(e);if(r||i)return n}return null}_getLangFromLocale(e){return e.substring(0,2)}_onLocaleChanged(e,t){this.dispatchEvent(new CustomEvent(`__localeChanging`)),e!==t&&(this._autoLoadOnLocaleChange?(this._loadAllMissing(e,t),this.loadingComplete.then(()=>{this.dispatchEvent(new CustomEvent(`localeChanged`,{detail:{newLocale:e,oldLocale:t}}))})):this.dispatchEvent(new CustomEvent(`localeChanged`,{detail:{newLocale:e,oldLocale:t}})))}_loadAllMissing(e,t){let n=this.__storage[t]||{},r=this.__storage[e]||{};Object.keys(n).forEach(t=>{r[t]||this.loadNamespace(t,{locale:e})})}_getMessageForKeys(e,t){if(typeof e==`string`)return this._getMessageForKey(e,t);let n=Array.from(e).reverse(),r,i;for(;n.length;)if(r=n.pop(),i=this._getMessageForKey(r,t),i)return i}_getMessageForKey(e,t){if(!e||e.indexOf(`:`)===-1)throw Error(`Namespace is missing in the key "${e}". The format for keys is "namespace:name".`);let[n,r]=e.split(`:`),i=this.__storage[t],a=i?i[n]:{},o=r.split(`.`).reduce((e,t)=>typeof e==`object`?e[t]:e,a);return String(o||(this._showKeyAsFallback?e:``))}#r(e){if(!e.includes(`-`))throw Error(` Locale was set to ${e}. Language only locales are not allowed, please use the full language locale e.g. 'en-GB' instead of 'en'. See https://github.com/ing-bank/lion/issues/187 for more information. - `)}get _supportExternalTranslationTools(){return this.#e}set _supportExternalTranslationTools(e){this.#e=e}get _langAttrSetByTranslationTool(){return this.#t}set _langAttrSetByTranslationTool(e){this.#t=e}},Ka=Symbol.for(`lion::SingletonManagerClassStorage`),qa=globalThis||window,Ja=new class{constructor(){this._map=qa[Ka]?qa[Ka]:qa[Ka]=new Map}set(e,t){this.has(e)||this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}};function Ya(){if(Ja.has(`@lion/ui::localize::0.x`))return Ja.get(`@lion/ui::localize::0.x`);let e=new Ga({autoLoadOnLocaleChange:!0,fallbackLocale:`en-GB`});return Ja.set(`@lion/ui::localize::0.x`,e),e}var Xa=(e,t)=>{let n=e._$AN;if(n===void 0)return!1;for(let e of n)e._$AO?.(t,!1),Xa(e,t);return!0},Za=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},Qa=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),to(t)}};function $a(e){this._$AN===void 0?this._$AM=e:(Za(this),this._$AM=e,Qa(this))}function eo(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let e=n;e{e.type==ne.CHILD&&(e._$AP??=eo,e._$AQ??=$a)},no=class extends te{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Qa(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Xa(this,e),Za(this))}setValue(e){if(Pr(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}},ro=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},io=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((e=>this.Z=e))}resume(){this.Z?.(),this.Y=this.Z=void 0}},ao=e=>!Mr(e)&&typeof e.then==`function`,oo=1073741823,so=E(class extends no{constructor(){super(...arguments),this._$Cwt=oo,this._$Cbt=[],this._$CK=new ro(this),this._$CX=new io}render(...e){return e.find((e=>!ao(e)))??g}update(e,t){let n=this._$Cbt,r=n.length;this._$Cbt=t;let i=this._$CK,a=this._$CX;this.isConnected||this.disconnected();for(let e=0;ethis._$Cwt);e++){let o=t[e];if(!ao(o))return this._$Cwt=e,o;e{for(;a.get();)await a.get();let t=i.deref();if(t!==void 0){let n=t._$Cbt.indexOf(o);n>-1&&nclass extends e{static get localizeNamespaces(){return[]}static get waitForLocalizeNamespaces(){return!0}constructor(){super(),this._localizeManager=Ya(),this.__boundLocalizeOnLocaleChanged=(...e)=>{let t=Array.from(e)[0];this.__localizeOnLocaleChanged(t)},this.__boundLocalizeOnLocaleChanging=()=>{this.__localizeOnLocaleChanging()},this.__localizeStartLoadingNamespaces(),this.localizeNamespacesLoaded&&this.localizeNamespacesLoaded.then(()=>{this.__localizeMessageSync=!0})}async scheduleUpdate(){Object.getPrototypeOf(this).constructor.waitForLocalizeNamespaces&&await this.localizeNamespacesLoaded,super.scheduleUpdate()}connectedCallback(){super.connectedCallback(),this.localizeNamespacesLoaded&&this.localizeNamespacesLoaded.then(()=>this.onLocaleReady()),this._localizeManager.addEventListener(`__localeChanging`,this.__boundLocalizeOnLocaleChanging),this._localizeManager.addEventListener(`localeChanged`,this.__boundLocalizeOnLocaleChanged)}disconnectedCallback(){super.disconnectedCallback(),this._localizeManager.removeEventListener(`__localeChanging`,this.__boundLocalizeOnLocaleChanging),this._localizeManager.removeEventListener(`localeChanged`,this.__boundLocalizeOnLocaleChanged)}msgLit(e,t,n){return this.__localizeMessageSync?this._localizeManager.msg(e,t,n):this.localizeNamespacesLoaded?so(this.localizeNamespacesLoaded.then(()=>this._localizeManager.msg(e,t,n)),y):``}__getUniqueNamespaces(){let e=[],t=new Set;return Object.getPrototypeOf(this).constructor.localizeNamespaces.forEach(t.add.bind(t)),t.forEach(t=>{e.push(t)}),e}__localizeStartLoadingNamespaces(){this.localizeNamespacesLoaded=this._localizeManager.loadNamespaces(this.__getUniqueNamespaces())}__localizeOnLocaleChanging(){this.__localizeStartLoadingNamespaces()}__localizeOnLocaleChanged(e){this.onLocaleChanged(e.detail.newLocale,e.detail.oldLocale)}onLocaleReady(){this.onLocaleUpdated()}onLocaleChanged(e,t){this.onLocaleUpdated(),this.requestUpdate()}onLocaleUpdated(){}}),lo=`3.0.0`,uo=window.scopedElementsVersions||(window.scopedElementsVersions=[]);uo.includes(lo)||uo.push(lo);var fo=Or(e=>class extends e{static scopedElements;static get scopedElementsVersion(){return lo}static __registry;get registry(){return this.constructor.__registry}set registry(e){this.constructor.__registry=e}attachShadow(e){let{scopedElements:t}=this.constructor;if(!this.registry||this.registry===this.constructor.__registry&&!Object.prototype.hasOwnProperty.call(this.constructor,`__registry`)){this.registry=new CustomElementRegistry;for(let[e,n]of Object.entries(t??{}))this.registry.define(e,n)}return super.attachShadow({...e,customElements:this.registry,registry:this.registry})}}),po=Or(e=>class extends fo(e){createRenderRoot(){let{shadowRootOptions:e,elementStyles:t}=this.constructor,n=this.attachShadow(e);return this.renderOptions.creationScope=n,m(n,t),this.renderOptions.renderBefore??=n.firstChild,n}});function mo(){return!!(globalThis.ShadowRoot?.prototype.createElement&&globalThis.ShadowRoot?.prototype.importNode)}var ho=Or(e=>class extends po(e){constructor(){super()}createScopedElement(e){return(mo()?this.shadowRoot:document).createElement(e)}defineScopedElement(e,t){let n=this.registry.get(e),r=n&&n!==t;return!mo()&&r&&console.error([`You are trying to re-register the "${e}" custom element with a different class via ScopedElementsMixin.`,`This is only possible with a CustomElementRegistry.`,`Your browser does not support this feature so you will need to load a polyfill for it.`,`Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.`,`e.g. add "