diff --git a/modules/boardwalk/dist/assets/editor-DjIW-4Gn.js b/modules/boardwalk/dist/assets/editor-Bd7FUlHB.js similarity index 99% rename from modules/boardwalk/dist/assets/editor-DjIW-4Gn.js rename to modules/boardwalk/dist/assets/editor-Bd7FUlHB.js index 1edaa960..bf5afa3b 100644 --- a/modules/boardwalk/dist/assets/editor-DjIW-4Gn.js +++ b/modules/boardwalk/dist/assets/editor-Bd7FUlHB.js @@ -1,4 +1,4 @@ -import{k as du,b as fu}from"./index-Vcq4gwWv.js";import{L as hu,i as pu}from"./index-DDDXRADK.js";var Bs=Object.defineProperty,mu=(n,e)=>{let t={};for(var r in n)Bs(t,r,{get:n[r],enumerable:!0});return Bs(t,Symbol.toStringTag,{value:"Module"}),t};function Q(n){this.content=n}Q.prototype={constructor:Q,find:function(n){for(var e=0;e>1}};Q.from=function(n){if(n instanceof Q)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Q(e)};function bl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)t++;return a&&a0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d=56320&&n<57344}function wl(n){return n>=55296&&n<56320}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;re&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);se)for(let s=0,o=0;oe&&((ot)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Dn(t+1,s):Dn(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let i=0;ithis.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;tr.type.rank-i.type.rank),t}};B.none=[];class pn extends Error{}class w{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Ml(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new w(r,this.openStart,this.openEnd)}removeBetween(e,t){return new w(Cl(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return w.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new w(k.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new w(e,r,i)}}w.empty=new w(k.empty,0,0);function Cl(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(Cl(s.content,e-i-1,t-i-1)))}function Ml(n,e,t,r,i,s){let{index:o,offset:l}=n.findIndex(e),a=n.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=Ml(a.content,e-l-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,a);return c&&n.replaceChild(o,a.copy(c))}function gu(n,e,t){if(t.openStart>n.depth)throw new pn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new pn("Inconsistent open depths");return Tl(n,e,t,0)}function Tl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function en(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(ht(n.nodeAfter,r),s++));for(let l=s;li&&Mi(n,e,i+1),o=r.depth>i&&Mi(t,r,i+1),l=[];return en(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(El(s,o),ht(pt(s,vl(n,e,t,r,i+1)),l)):(s&&ht(pt(s,Yn(n,e,i+1)),l),en(e,t,i,l),o&&ht(pt(o,Yn(t,r,i+1)),l)),en(r,null,i,l),new k(l)}function Yn(n,e,t){let r=[];if(en(null,n,t,r),n.depth>t){let i=Mi(n,e,t+1);ht(pt(i,Yn(n,e,t+1)),r)}return en(e,null,t,r),new k(r)}function yu(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class mn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Xn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new mn(t,r,s)}static resolveCached(e,t){let r=zs.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Al(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;at.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};mt.prototype.text=void 0;class Qn extends mt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Al(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Qn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Qn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Al(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function $s(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class kt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Su(e,t);if(r.next==null)return kt.empty;let i=Ol(r);r.next&&r.err("Unexpected trailing text");let s=Au(vu(i));return Ou(s,r),s}matchType(e){for(let t=0;tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+e.indexOf(r.next[o].next);return s}).join(` +import{k as du,b as fu}from"./index-Vcq4gwWv.js";import{L as hu,i as pu}from"./index-C4FC7bPJ.js";var Bs=Object.defineProperty,mu=(n,e)=>{let t={};for(var r in n)Bs(t,r,{get:n[r],enumerable:!0});return Bs(t,Symbol.toStringTag,{value:"Module"}),t};function Q(n){this.content=n}Q.prototype={constructor:Q,find:function(n){for(var e=0;e>1}};Q.from=function(n){if(n instanceof Q)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Q(e)};function bl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)t++;return a&&a0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d=56320&&n<57344}function wl(n){return n>=55296&&n<56320}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;re&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);se)for(let s=0,o=0;oe&&((ot)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Dn(t+1,s):Dn(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let i=0;ithis.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;tr.type.rank-i.type.rank),t}};B.none=[];class pn extends Error{}class w{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Ml(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new w(r,this.openStart,this.openEnd)}removeBetween(e,t){return new w(Cl(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return w.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new w(k.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new w(e,r,i)}}w.empty=new w(k.empty,0,0);function Cl(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(Cl(s.content,e-i-1,t-i-1)))}function Ml(n,e,t,r,i,s){let{index:o,offset:l}=n.findIndex(e),a=n.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=Ml(a.content,e-l-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,a);return c&&n.replaceChild(o,a.copy(c))}function gu(n,e,t){if(t.openStart>n.depth)throw new pn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new pn("Inconsistent open depths");return Tl(n,e,t,0)}function Tl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function en(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(ht(n.nodeAfter,r),s++));for(let l=s;li&&Mi(n,e,i+1),o=r.depth>i&&Mi(t,r,i+1),l=[];return en(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(El(s,o),ht(pt(s,vl(n,e,t,r,i+1)),l)):(s&&ht(pt(s,Yn(n,e,i+1)),l),en(e,t,i,l),o&&ht(pt(o,Yn(t,r,i+1)),l)),en(r,null,i,l),new k(l)}function Yn(n,e,t){let r=[];if(en(null,n,t,r),n.depth>t){let i=Mi(n,e,t+1);ht(pt(i,Yn(n,e,t+1)),r)}return en(e,null,t,r),new k(r)}function yu(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class mn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Xn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new mn(t,r,s)}static resolveCached(e,t){let r=zs.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Al(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;at.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};mt.prototype.text=void 0;class Qn extends mt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Al(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Qn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Qn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Al(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function $s(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class kt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Su(e,t);if(r.next==null)return kt.empty;let i=Ol(r);r.next&&r.err("Unexpected trailing text");let s=Au(vu(i));return Ou(s,r),s}matchType(e){for(let t=0;tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+e.indexOf(r.next[o].next);return s}).join(` `)}}kt.empty=new kt(!0);class Su{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Ol(n){let e=[];do e.push(wu(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function wu(n){let e=[];do e.push(Cu(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Cu(n){let e=Eu(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Mu(n,e);else break;return e}function Fs(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Mu(n,e){let t=Fs(n),r=t;return n.eat(",")&&(n.next!="}"?r=Fs(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Tu(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function Eu(n){if(n.eat("(")){let e=Ol(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Tu(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function vu(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=s(o.exprs[a],l);if(a==o.exprs.length-1)return c;i(c,l=t())}else if(o.type=="star"){let a=t();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c{n[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u{c||i.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new kt(r.indexOf(n.length-1)>-1);for(let o=0;o-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Il(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new mt(this,this.computeAttrs(e),k.from(t),B.setFrom(r))}createChecked(e=null,t,r){return t=k.from(t),this.checkContent(t),new mt(this,this.computeAttrs(e),t,B.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=k.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(k.empty,!0);return s?new mt(this,e,t.append(s),B.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;tr[s]=new Ll(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Nu(n,e,t){let r=t.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}class Du{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Nu(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Br{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=Rl(e,i.attrs),this.excluded=null;let s=Dl(this.attrs);this.instance=s?new B(this,s):null}create(e=null){return!e&&this.instance?this.instance:new B(this,Il(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Br(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t-1}}class Pl{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=Q.from(e.nodes),t.marks=Q.from(e.marks||{}),this.nodes=Hs.compile(this.spec.nodes,this),this.marks=Br.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=kt.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?js(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:js(this,o.split(" "))}this.nodeFromJSON=i=>mt.fromJSON(this,i),this.markFromJSON=i=>B.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Hs){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Qn(r,r.defaultAttrs,e,B.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function js(n,e){let t=[];for(let r=0;r-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Iu(n){return n.tag!=null}function Ru(n){return n.style!=null}class Ye{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(Iu(i))this.tags.push(i);else if(Ru(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new Ks(this,t,!1);return r.addAll(e,B.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Ks(this,t,!0);return r.addAll(e,B.none,t.from,t.to),w.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o{r(o=_s(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=_s(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ye(e,Ye.schemaRules(e)))}}const Bl={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Lu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},zl={ol:!0,ul:!0},gn=1,Ei=2,tn=4;function Ws(n,e,t){return e!=null?(e?gn:0)|(e==="full"?Ei:0):n&&n.whitespace=="pre"?gn|Ei:t&~tn}class In{constructor(e,t,r,i,s,o){this.type=e,this.attrs=t,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=B.none,this.match=s||(o&tn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(k.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&gn)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=k.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Bl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ks{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=t.topNode,s,o=Ws(null,t.preserveWhitespace,0)|(r?tn:0);i?s=new In(i.type,i.attrs,B.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new In(null,null,B.none,!0,null,o):s=new In(e.schema.topNodeType,null,B.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,i=this.top,s=i.options&Ei?"full":this.localPreserveWS||(i.options&gn)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,` `);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a!a.clearMark(c)):t=t.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return t}addElementByRule(e,t,r,i){let s,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,t.attrs||null,r,t.preserveWhitespace);a&&(s=!0,r=a)}else{let a=this.parser.schema.marks[t.mark];r=r.concat(a.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,t,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,t);this.findAtPoint(e,s)}findPlace(e,t,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,s=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o(o.type?o.type.allowsMarkType(c.type):Us(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new In(e,t,a,i,null,l)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=gn)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function Pu(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&zl.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Bu(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function _s(n){let e={};for(let t in n)e[t]=n[t];return e}function Us(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=l=>{s.push(l);for(let a=0;a{if(s.length||o.marks.length){let l=0,a=0;for(;l=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&Kn(Rn(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return typeof t=="string"?{dom:e.createTextNode(t)}:Kn(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ct(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=qs(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return qs(e.marks)}}function qs(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Rn(n){return n.document||window.document}const Js=new WeakMap;function zu(n){let e=Js.get(n);return e===void 0&&Js.set(n,e=$u(n)),e}function $u(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(t=i.slice(0,o),i=i.slice(o+1));let l,a=t?n.createElementNS(t,i):n.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;du)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(n.createTextNode(f));else{let{dom:h,contentDOM:p}=Kn(n,f,t,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const $l=65535,Fl=Math.pow(2,16);function Fu(n,e){return n+e*Fl}function Gs(n){return n&$l}function Vu(n){return(n-(n&$l))/Fl}const Vl=1,Hl=2,_n=4,jl=8;class vi{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&jl)>0}get deletedBefore(){return(this.delInfo&(Vl|_n))>0}get deletedAfter(){return(this.delInfo&(Hl|_n))>0}get deletedAcross(){return(this.delInfo&_n)>0}}class ue{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&ue.empty)return ue.empty}recover(e){let t=0,r=Gs(e);if(!this.inverted)for(let i=0;ie)break;let c=this.ranges[l+s],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:t:t,h=a+i+(f<0?0:u);if(r)return h;let p=e==(t<0?a:d)?null:Fu(l/3,e-a),m=0;return c&&(m|=e==a?Hl:e==d?Vl:_n,(t<0?e!=a:e!=d)&&(m|=jl)),new vi(h,m,p)}i+=u-c}return r?e+i:new vi(e+i,0,null)}touches(e,t){let r=0,i=Gs(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;le)break;let c=this.ranges[l+s],u=a+c;if(e<=u&&l==i*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i=0;t--){let i=e.getMirror(t);this.appendMap(e._maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new yn;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;rs&&a!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return K.fromReplace(e,this.from,this.to,s)}invert(){return new we(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Je(t.pos,r.pos,this.mark)}merge(e){return e instanceof Je&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Je(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Je(t.from,t.to,e.markFromJSON(t.mark))}}ie.jsonID("addMark",Je);class we extends ie{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new w(ts(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return K.fromReplace(e,this.from,this.to,r)}invert(){return new Je(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new we(t.pos,r.pos,this.mark)}merge(e){return e instanceof we&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new we(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new we(t.from,t.to,e.markFromJSON(t.mark))}}ie.jsonID("removeMark",we);class Ge extends ie{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return K.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return K.fromReplace(e,this.pos,this.pos+1,new w(k.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;ir.pos?null:new G(t.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new G(t.from,t.to,t.gapFrom,t.gapTo,w.fromJSON(e,t.slice),t.insert,!!t.structure)}}ie.jsonID("replaceAround",G);function Ai(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Hu(n,e,t,r){let i=[],s=[],o,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let m=0;mn.step(a)),s.forEach(a=>n.step(a))}function ju(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof Br){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,t);for(let u=0;un.step(new we(o.from,o.to,o.style)))}function ns(n,e,t,r=t.contentMatch,i=!0){let s=n.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a=0;a--)n.step(o[a])}function Wu(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Kt(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,i=0,s=0;;--r){let o=n.$from.node(r),l=n.$from.index(r)+i,a=n.$to.indexAfter(r)-s;if(rt;p--)m||r.index(p)>0?(m=!0,u=k.from(r.node(p).copy(u)),d++):a--;let f=k.empty,h=0;for(let p=s,m=!1;p>t;p--)m||i.after(p+1)=0;o--){if(r.size){let l=t[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new G(i,s,i,s,new w(r,0,0),t.length,!0))}function Ju(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{let a=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,a)&&Gu(n.doc,n.mapping.slice(s).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Kl(n,o,l,s),ns(n,n.mapping.slice(s).map(l,1),r,void 0,c===null);let u=n.mapping.slice(s),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return n.step(new G(d,f,d+1,f-1,new w(k.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&Wl(n,o,l,s),!1}})}function Wl(n,e,t,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let a=n.mapping.slice(r).map(t+1+s+o.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Kl(n,e,t,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+s);n.replaceWith(o,o+1,e.type.schema.text(` diff --git a/modules/boardwalk/dist/assets/index-C4FC7bPJ.js b/modules/boardwalk/dist/assets/index-C4FC7bPJ.js new file mode 100644 index 00000000..0263d768 --- /dev/null +++ b/modules/boardwalk/dist/assets/index-C4FC7bPJ.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./editor-Bd7FUlHB.js","./index-Vcq4gwWv.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();function Ud(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const kt={},ql=[],ca=()=>{},Vh=()=>!1,Ki=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wi=e=>e.startsWith("onUpdate:"),Ft=Object.assign,Hd=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y_=Object.prototype.hasOwnProperty,gt=(e,t)=>y_.call(e,t),Je=Array.isArray,Ll=e=>hs(e)==="[object Map]",zh=e=>hs(e)==="[object Set]",Ip=e=>hs(e)==="[object Date]",tt=e=>typeof e=="function",St=e=>typeof e=="string",wn=e=>typeof e=="symbol",ht=e=>e!==null&&typeof e=="object",jh=e=>(ht(e)||tt(e))&&tt(e.then)&&tt(e.catch),Uh=Object.prototype.toString,hs=e=>Uh.call(e),g_=e=>hs(e).slice(8,-1),Hh=e=>hs(e)==="[object Object]",Gi=e=>St(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lo=Ud(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},b_=/-\w/g,Zt=Yi(e=>e.replace(b_,t=>t.slice(1).toUpperCase())),__=/\B([A-Z])/g,Cr=Yi(e=>e.replace(__,"-$1").toLowerCase()),Ji=Yi(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=Yi(e=>e?`on${Ji(e)}`:""),oa=(e,t)=>!Object.is(e,t),li=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},Kd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},x_=e=>{const t=St(e)?Number(e):NaN;return isNaN(t)?e:t};let Rp;const Zi=()=>Rp||(Rp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function un(e){if(Je(e)){const t={};for(let n=0;n{if(n){const a=n.split(w_);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function he(e){let t="";if(St(e))t=e;else if(Je(e))for(let n=0;n!!(e&&e.__v_isRef===!0),$=e=>St(e)?e:e==null?"":Je(e)||ht(e)&&(e.toString===Uh||!tt(e.toString))?Gh(e)?$(e.value):JSON.stringify(e,Yh,2):String(e),Yh=(e,t)=>Gh(t)?Yh(e,t.value):Ll(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,r],l)=>(n[Hu(a,l)+" =>"]=r,n),{})}:zh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hu(n))}:wn(t)?Hu(t):ht(t)&&!Je(t)&&!Hh(t)?String(t):t,Hu=(e,t="")=>{var n;return wn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let jt;class Jh{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&jt&&(jt.active?(this.parent=jt,this.index=(jt.scopes||(jt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(jt===this)jt=this.prevScope;else{let t=jt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(Fo){let t=Fo;for(Fo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Bo;){let t=Bo;for(Bo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function ny(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ay(e){let t,n=e.depsTail,a=n;for(;a;){const r=a.prevDep;a.version===-1?(a===n&&(n=r),Zd(a),T_(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=r}e.deps=t,e.depsTail=n}function Yc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ry(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ry(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zo)||(e.globalVersion=Zo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Yc(e))))return;e.flags|=2;const t=e.dep,n=$t,a=Nn;$t=e,Nn=!0;try{ny(e);const r=e.fn(e._value);(t.version===0||oa(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{$t=n,Nn=a,ay(e),e.flags&=-3}}function Zd(e,t=!1){const{dep:n,prevSub:a,nextSub:r}=e;if(a&&(a.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Zd(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function T_(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Nn=!0;const ly=[];function Ia(){ly.push(Nn),Nn=!1}function Ra(){const e=ly.pop();Nn=e===void 0?!0:e}function qp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$t;$t=void 0;try{t()}finally{$t=n}}}let Zo=0,D_=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Xi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$t||!Nn||$t===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$t)n=this.activeLink=new D_($t,this),$t.deps?(n.prevDep=$t.depsTail,$t.depsTail.nextDep=n,$t.depsTail=n):$t.deps=$t.depsTail=n,oy(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=$t.depsTail,n.nextDep=void 0,$t.depsTail.nextDep=n,$t.depsTail=n,$t.deps===n&&($t.deps=a)}return n}trigger(t){this.version++,Zo++,this.notify(t)}notify(t){Yd();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Jd()}}}function oy(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)oy(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const pi=new WeakMap,Jr=Symbol(""),Jc=Symbol(""),Xo=Symbol("");function tn(e,t,n){if(Nn&&$t){let a=pi.get(e);a||pi.set(e,a=new Map);let r=a.get(n);r||(a.set(n,r=new Xi),r.map=a,r.key=n),r.track()}}function Ca(e,t,n,a,r,l){const o=pi.get(e);if(!o){Zo++;return}const i=u=>{u&&u.trigger()};if(Yd(),t==="clear")o.forEach(i);else{const u=Je(e),d=u&&Gi(n);if(u&&n==="length"){const c=Number(a);o.forEach((f,m)=>{(m==="length"||m===Xo||!wn(m)&&m>=c)&&i(f)})}else switch((n!==void 0||o.has(void 0))&&i(o.get(n)),d&&i(o.get(Xo)),t){case"add":u?d&&i(o.get("length")):(i(o.get(Jr)),Ll(e)&&i(o.get(Jc)));break;case"delete":u||(i(o.get(Jr)),Ll(e)&&i(o.get(Jc)));break;case"set":Ll(e)&&i(o.get(Jr));break}}Jd()}function O_(e,t){const n=pi.get(e);return n&&n.get(t)}function yl(e){const t=pt(e);return t===e?t:(tn(t,"iterate",Xo),kn(e)?t:t.map(Vn))}function Qi(e){return tn(e=pt(e),"iterate",Xo),e}function ra(e,t){return qa(e)?Gl(Zr(e)?Vn(t):t):Vn(t)}const M_={__proto__:null,[Symbol.iterator](){return Wu(this,Symbol.iterator,e=>ra(this,e))},concat(...e){return yl(this).concat(...e.map(t=>Je(t)?yl(t):t))},entries(){return Wu(this,"entries",e=>(e[1]=ra(this,e[1]),e))},every(e,t){return _a(this,"every",e,t,void 0,arguments)},filter(e,t){return _a(this,"filter",e,t,n=>n.map(a=>ra(this,a)),arguments)},find(e,t){return _a(this,"find",e,t,n=>ra(this,n),arguments)},findIndex(e,t){return _a(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return _a(this,"findLast",e,t,n=>ra(this,n),arguments)},findLastIndex(e,t){return _a(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return _a(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gu(this,"includes",e)},indexOf(...e){return Gu(this,"indexOf",e)},join(e){return yl(this).join(e)},lastIndexOf(...e){return Gu(this,"lastIndexOf",e)},map(e,t){return _a(this,"map",e,t,void 0,arguments)},pop(){return ho(this,"pop")},push(...e){return ho(this,"push",e)},reduce(e,...t){return Lp(this,"reduce",e,t)},reduceRight(e,...t){return Lp(this,"reduceRight",e,t)},shift(){return ho(this,"shift")},some(e,t){return _a(this,"some",e,t,void 0,arguments)},splice(...e){return ho(this,"splice",e)},toReversed(){return yl(this).toReversed()},toSorted(e){return yl(this).toSorted(e)},toSpliced(...e){return yl(this).toSpliced(...e)},unshift(...e){return ho(this,"unshift",e)},values(){return Wu(this,"values",e=>ra(this,e))}};function Wu(e,t,n){const a=Qi(e),r=a[t]();return a!==e&&!kn(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.done||(l.value=n(l.value)),l}),r}const P_=Array.prototype;function _a(e,t,n,a,r,l){const o=Qi(e),i=o!==e&&!kn(e),u=o[t];if(u!==P_[t]){const f=u.apply(e,l);return i?Vn(f):f}let d=n;o!==e&&(i?d=function(f,m){return n.call(this,ra(e,f),m,e)}:n.length>2&&(d=function(f,m){return n.call(this,f,m,e)}));const c=u.call(o,d,a);return i&&r?r(c):c}function Lp(e,t,n,a){const r=Qi(e),l=r!==e&&!kn(e);let o=n,i=!1;r!==e&&(l?(i=a.length===0,o=function(d,c,f){return i&&(i=!1,d=ra(e,d)),n.call(this,d,ra(e,c),f,e)}):n.length>3&&(o=function(d,c,f){return n.call(this,d,c,f,e)}));const u=r[t](o,...a);return i?ra(e,u):u}function Gu(e,t,n){const a=pt(e);tn(a,"iterate",Xo);const r=a[t](...n);return(r===-1||r===!1)&&nu(n[0])?(n[0]=pt(n[0]),a[t](...n)):r}function ho(e,t,n=[]){Ia(),Yd();const a=pt(e)[t].apply(e,n);return Jd(),Ra(),a}const I_=Ud("__proto__,__v_isRef,__isVue"),sy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wn));function R_(e){wn(e)||(e=String(e));const t=pt(this);return tn(t,"has",e),t.hasOwnProperty(e)}class iy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(r?l?vy:py:l?fy:dy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const o=Je(t);if(!r){let u;if(o&&(u=M_[n]))return u;if(n==="hasOwnProperty")return R_}const i=Reflect.get(t,n,Ot(t)?t:a);if((wn(n)?sy.has(n):I_(n))||(r||tn(t,"get",n),l))return i;if(Ot(i)){const u=o&&Gi(n)?i:i.value;return r&&ht(u)?Ct(u):u}return ht(i)?r?Ct(i):Fn(i):i}}class uy extends iy{constructor(t=!1){super(!1,t)}set(t,n,a,r){let l=t[n];const o=Je(t)&&Gi(n);if(!this._isShallow){const d=qa(l);if(!kn(a)&&!qa(a)&&(l=pt(l),a=pt(a)),!o&&Ot(l)&&!Ot(a))return d||(l.value=a),!0}const i=o?Number(n)e,qs=e=>Reflect.getPrototypeOf(e);function F_(e,t,n){return function(...a){const r=this.__v_raw,l=pt(r),o=Ll(l),i=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=r[e](...a),c=n?Zc:t?Gl:Vn;return!t&&tn(l,"iterate",u?Jc:Jr),Ft(Object.create(d),{next(){const{value:f,done:m}=d.next();return m?{value:f,done:m}:{value:i?[c(f[0]),c(f[1])]:c(f),done:m}}})}}function Ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function V_(e,t){const n={get(r){const l=this.__v_raw,o=pt(l),i=pt(r);e||(oa(r,i)&&tn(o,"get",r),tn(o,"get",i));const{has:u}=qs(o),d=t?Zc:e?Gl:Vn;if(u.call(o,r))return d(l.get(r));if(u.call(o,i))return d(l.get(i));l!==o&&l.get(r)},get size(){const r=this.__v_raw;return!e&&tn(pt(r),"iterate",Jr),r.size},has(r){const l=this.__v_raw,o=pt(l),i=pt(r);return e||(oa(r,i)&&tn(o,"has",r),tn(o,"has",i)),r===i?l.has(r):l.has(r)||l.has(i)},forEach(r,l){const o=this,i=o.__v_raw,u=pt(i),d=t?Zc:e?Gl:Vn;return!e&&tn(u,"iterate",Jr),i.forEach((c,f)=>r.call(l,d(c),d(f),o))}};return Ft(n,e?{add:Ls("add"),set:Ls("set"),delete:Ls("delete"),clear:Ls("clear")}:{add(r){const l=pt(this),o=qs(l),i=pt(r),u=!t&&!kn(r)&&!qa(r)?i:r;return o.has.call(l,u)||oa(r,u)&&o.has.call(l,r)||oa(i,u)&&o.has.call(l,i)||(l.add(u),Ca(l,"add",u,u)),this},set(r,l){!t&&!kn(l)&&!qa(l)&&(l=pt(l));const o=pt(this),{has:i,get:u}=qs(o);let d=i.call(o,r);d||(r=pt(r),d=i.call(o,r));const c=u.call(o,r);return o.set(r,l),d?oa(l,c)&&Ca(o,"set",r,l):Ca(o,"add",r,l),this},delete(r){const l=pt(this),{has:o,get:i}=qs(l);let u=o.call(l,r);u||(r=pt(r),u=o.call(l,r)),i&&i.call(l,r);const d=l.delete(r);return u&&Ca(l,"delete",r,void 0),d},clear(){const r=pt(this),l=r.size!==0,o=r.clear();return l&&Ca(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=F_(r,e,t)}),n}function eu(e,t){const n=V_(e,t);return(a,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?a:Reflect.get(gt(n,r)&&r in a?n:a,r,l)}const z_={get:eu(!1,!1)},j_={get:eu(!1,!0)},U_={get:eu(!0,!1)},H_={get:eu(!0,!0)},dy=new WeakMap,fy=new WeakMap,py=new WeakMap,vy=new WeakMap;function K_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fn(e){return qa(e)?e:tu(e,!1,q_,z_,dy)}function my(e){return tu(e,!1,N_,j_,fy)}function Ct(e){return tu(e,!0,L_,U_,py)}function gl(e){return tu(e,!0,B_,H_,vy)}function tu(e,t,n,a,r){if(!ht(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=r.get(e);if(l)return l;const o=K_(g_(e));if(o===0)return e;const i=new Proxy(e,o===2?a:n);return r.set(e,i),i}function Zr(e){return qa(e)?Zr(e.__v_raw):!!(e&&e.__v_isReactive)}function qa(e){return!!(e&&e.__v_isReadonly)}function kn(e){return!!(e&&e.__v_isShallow)}function nu(e){return e?!!e.__v_raw:!1}function pt(e){const t=e&&e.__v_raw;return t?pt(t):e}function vi(e){return!gt(e,"__v_skip")&&Object.isExtensible(e)&&Kh(e,"__v_skip",!0),e}const Vn=e=>ht(e)?Fn(e):e,Gl=e=>ht(e)?Ct(e):e;function Ot(e){return e?e.__v_isRef===!0:!1}function T(e){return hy(e,!1)}function rl(e){return hy(e,!0)}function hy(e,t){return Ot(e)?e:new W_(e,t)}class W_{constructor(t,n){this.dep=new Xi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pt(t),this._value=n?t:Vn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||kn(t)||qa(t);t=a?t:pt(t),oa(t,n)&&(this._rawValue=t,this._value=a?t:Vn(t),this.dep.trigger())}}function G_(e){e.dep&&e.dep.trigger()}function s(e){return Ot(e)?e.value:e}function cn(e){return tt(e)?e():s(e)}const Y_={get:(e,t,n)=>t==="__v_raw"?e:s(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const r=e[t];return Ot(r)&&!Ot(n)?(r.value=n,!0):Reflect.set(e,t,n,a)}};function yy(e){return Zr(e)?e:new Proxy(e,Y_)}class J_{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Xi,{get:a,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=a,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Z_(e){return new J_(e)}function Ht(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=gy(e,n);return t}class X_{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=wn(n)?n:String(n),this._raw=pt(t);let r=!0,l=t;if(!Je(t)||wn(this._key)||!Gi(this._key))do r=!nu(l)||kn(l);while(r&&(l=l.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=s(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ot(this._raw[this._key])){const n=this._object[this._key];if(Ot(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return O_(this._raw,this._key)}}class Q_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ex(e,t,n){return Ot(e)?e:tt(e)?new Q_(e):ht(e)&&arguments.length>1?gy(e,t,n):T(e)}function gy(e,t,n){return new X_(e,t,n)}class tx{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&$t!==this)return ty(this,!0),!0}get value(){const t=this.dep.track();return ry(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function nx(e,t,n=!1){let a,r;return tt(e)?a=e:(a=e.get,r=e.set),new tx(a,r,n)}const Ns={},mi=new WeakMap;let jr;function ax(e,t=!1,n=jr){if(n){let a=mi.get(n);a||mi.set(n,a=[]),a.push(e)}}function rx(e,t,n=kt){const{immediate:a,deep:r,once:l,scheduler:o,augmentJob:i,call:u}=n,d=O=>r?O:kn(O)||r===!1||r===0?Sa(O,1):Sa(O);let c,f,m,v,h=!1,w=!1;if(Ot(e)?(f=()=>e.value,h=kn(e)):Zr(e)?(f=()=>d(e),h=!0):Je(e)?(w=!0,h=e.some(O=>Zr(O)||kn(O)),f=()=>e.map(O=>{if(Ot(O))return O.value;if(Zr(O))return d(O);if(tt(O))return u?u(O,2):O()})):tt(e)?t?f=u?()=>u(e,2):e:f=()=>{if(m){Ia();try{m()}finally{Ra()}}const O=jr;jr=c;try{return u?u(e,3,[v]):e(v)}finally{jr=O}}:f=ca,t&&r){const O=f,A=r===!0?1/0:r;f=()=>Sa(O(),A)}const S=Gd(),_=()=>{c.stop(),S&&S.active&&Hd(S.effects,c)};if(l&&t){const O=t;t=(...A)=>{O(...A),_()}}let D=w?new Array(e.length).fill(Ns):Ns;const B=O=>{if(!(!(c.flags&1)||!c.dirty&&!O))if(t){const A=c.run();if(r||h||(w?A.some((I,q)=>oa(I,D[q])):oa(A,D))){m&&m();const I=jr;jr=c;try{const q=[A,D===Ns?void 0:w&&D[0]===Ns?[]:D,v];D=A,u?u(t,3,q):t(...q)}finally{jr=I}}}else c.run()};return i&&i(B),c=new Qh(f),c.scheduler=o?()=>o(B,!1):B,v=O=>ax(O,!1,c),m=c.onStop=()=>{const O=mi.get(c);if(O){if(u)u(O,4);else for(const A of O)A();mi.delete(c)}},t?a?B(!0):D=c.run():o?o(B.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Sa(e,t=1/0,n){if(t<=0||!ht(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ot(e))Sa(e.value,t,n);else if(Je(e))for(let a=0;a{Sa(a,t,n)});else if(Hh(e)){for(const a in e)Sa(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Sa(e[a],t,n)}return e}function ys(e,t,n,a){try{return a?e(...a):e()}catch(r){au(r,t,n)}}function Pn(e,t,n,a){if(tt(e)){const r=ys(e,t,n,a);return r&&jh(r)&&r.catch(l=>{au(l,t,n)}),r}if(Je(e)){const r=[];for(let l=0;l>>1,r=sn[a],l=Qo(r);l=Qo(n)?sn.push(e):sn.splice(ox(t),0,e),e.flags|=1,_y()}}function _y(){hi||(hi=by.then(ky))}function sx(e){Je(e)?Nl.push(...e):ar&&e.id===-1?ar.splice(Sl+1,0,e):e.flags&1||(Nl.push(e),e.flags|=1),_y()}function Np(e,t,n=na+1){for(;nQo(n)-Qo(a));if(Nl.length=0,ar){ar.push(...t);return}for(ar=t,Sl=0;Sle.id==null?e.flags&2?-1:1/0:e.id;function ky(e){try{for(na=0;na{a._d&&_i(-1);const l=yi(t);let o;try{o=e(...r)}finally{yi(l),a._d&&_i(1)}return o};return a._n=!0,a._c=!0,a._d=!0,a}function zn(e,t){if(Jt===null)return e;const n=iu(Jt),a=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&tt(t)?t.call(a&&a.proxy):t}}const ix=Symbol.for("v-scx"),ux=()=>it(ix);function $n(e,t){return ru(e,null,t)}function $y(e,t){return ru(e,null,{flush:"post"})}function Fe(e,t,n){return ru(e,t,n)}function ru(e,t,n=kt){const{immediate:a,deep:r,flush:l,once:o}=n,i=Ft({},n),u=t&&a||!t&&l!=="post";let d;if(as){if(l==="sync"){const v=ux();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!u){const v=()=>{};return v.stop=ca,v.resume=ca,v.pause=ca,v}}const c=nn;i.call=(v,h,w)=>Pn(v,c,h,w);let f=!1;l==="post"?i.scheduler=v=>{ln(v,c&&c.suspense)}:l!=="sync"&&(f=!0,i.scheduler=(v,h)=>{h?v():Xd(v)}),i.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const m=rx(e,t,i);return as&&(d?d.push(m):u&&m()),m}function cx(e,t,n){const a=this.proxy,r=St(e)?e.includes(".")?Cy(a,e):()=>a[e]:e.bind(a,a);let l;tt(t)?l=t:(l=t.handler,n=t);const o=gs(this),i=ru(r,l.bind(a),n);return o(),i}function Cy(e,t){const n=t.split(".");return()=>{let a=e;for(let r=0;re.__isTeleport,Kr=e=>e&&(e.disabled||e.disabled===""),fx=e=>e&&(e.defer||e.defer===""),Bp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Xc=(e,t)=>{const n=e&&e.to;return St(n)?t?t(n):null:n},px={name:"Teleport",__isTeleport:!0,process(e,t,n,a,r,l,o,i,u,d){const{mc:c,pc:f,pbc:m,o:{insert:v,querySelector:h,createText:w,createComment:S,parentNode:_}}=d,D=Kr(t.props);let{dynamicChildren:B}=t;const O=(q,U,C)=>{q.shapeFlag&16&&c(q.children,U,C,r,l,o,i,u)},A=(q=t)=>{const U=Kr(q.props),C=q.target=Xc(q.props,h),P=Qc(C,q,w,v);C&&(o!=="svg"&&Bp(C)?o="svg":o!=="mathml"&&Fp(C)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(C),U||(O(q,C,P),Oo(q,!1)))},I=q=>{const U=()=>{if(er.get(q)===U){if(er.delete(q),Kr(q.props)){const C=_(q.el)||n;O(q,C,q.anchor),Oo(q,!0)}A(q)}};er.set(q,U),ln(U,l)};if(e==null){const q=t.el=w(""),U=t.anchor=w("");if(v(q,n,a),v(U,n,a),fx(t.props)||l&&l.pendingBranch){I(t);return}D&&(O(t,n,U),Oo(t,!0)),A()}else{t.el=e.el;const q=t.anchor=e.anchor,U=er.get(e);if(U){U.flags|=8,er.delete(e),I(t);return}t.targetStart=e.targetStart;const C=t.target=e.target,P=t.targetAnchor=e.targetAnchor,z=Kr(e.props),E=z?n:C,L=z?q:P;if(o==="svg"||Bp(C)?o="svg":(o==="mathml"||Fp(C))&&(o="mathml"),B?(m(e.dynamicChildren,B,E,r,l,o,i),nf(e,t,!0)):u||f(e,t,E,L,r,l,o,i,!1),D)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Bs(t,n,q,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=Xc(t.props,h);G&&Bs(t,G,null,d,0)}else z&&Bs(t,C,P,d,1);Oo(t,D)}},remove(e,t,n,{um:a,o:{remove:r}},l){const{shapeFlag:o,children:i,anchor:u,targetStart:d,targetAnchor:c,target:f,props:m}=e,v=l||!Kr(m),h=er.get(e);if(h&&(h.flags|=8,er.delete(e)),f&&(r(d),r(c)),l&&r(u),!h&&o&16)for(let w=0;w{e.isMounted=!0}),Et(()=>{e.isUnmounting=!0}),e}const En=[Function,Array],yx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:En,onEnter:En,onAfterEnter:En,onEnterCancelled:En,onBeforeLeave:En,onLeave:En,onAfterLeave:En,onLeaveCancelled:En,onBeforeAppear:En,onAppear:En,onAfterAppear:En,onAppearCancelled:En};function gx(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function ed(e,t,n,a,r){const{appear:l,mode:o,persisted:i=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:m,onLeave:v,onAfterLeave:h,onLeaveCancelled:w,onBeforeAppear:S,onAppear:_,onAfterAppear:D,onAppearCancelled:B}=t,O=String(e.key),A=gx(n,e),I=(C,P)=>{C&&Pn(C,a,9,P)},q=(C,P)=>{const z=P[1];I(C,P),Je(C)?C.every(E=>E.length<=1)&&z():C.length<=1&&z()},U={mode:o,persisted:i,beforeEnter(C){let P=u;if(!n.isMounted)if(l)P=S||u;else return;C[aa]&&C[aa](!0);const z=A[O];z&&El(e,z)&&z.el[aa]&&z.el[aa](),I(P,[C])},enter(C){if(A[O]===e)return;let P=d,z=c,E=f;if(!n.isMounted)if(l)P=_||d,z=D||c,E=B||f;else return;let L=!1;C[yo]=W=>{L||(L=!0,W?I(E,[C]):I(z,[C]),U.delayedLeave&&U.delayedLeave(),C[yo]=void 0)};const G=C[yo].bind(null,!1);P?q(P,[C,G]):G()},leave(C,P){const z=String(e.key);if(C[yo]&&C[yo](!0),n.isUnmounting)return P();I(m,[C]);let E=!1;C[aa]=G=>{E||(E=!0,P(),G?I(w,[C]):I(h,[C]),C[aa]=void 0,A[z]===e&&delete A[z])};const L=C[aa].bind(null,!1);A[z]=e,v?q(v,[C,L]):L()},clone(C){return ed(C,t,n,a)}};return U}function es(e,t){e.shapeFlag&6&&e.component?(e.transition=t,es(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ey(e,t=!1,n){let a=[],r=0;for(let l=0;l1)for(let l=0;lVo(w,t&&(Je(t)?t[S]:t),n,a,r));return}if(Bl(a)&&!r){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Vo(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?iu(a.component):a.el,o=r?null:l,{i,r:u}=e,d=t&&t.r,c=i.refs===kt?i.refs={}:i.refs,f=i.setupState,m=pt(f),v=f===kt?Vh:w=>Vp(c,w)?!1:gt(m,w),h=(w,S)=>!(S&&Vp(c,S));if(d!=null&&d!==u){if(zp(t),St(d))c[d]=null,v(d)&&(f[d]=null);else if(Ot(d)){const w=t;h(d,w.k)&&(d.value=null),w.k&&(c[w.k]=null)}}if(tt(u))ys(u,i,12,[o,c]);else{const w=St(u),S=Ot(u);if(w||S){const _=()=>{if(e.f){const D=w?v(u)?f[u]:c[u]:h()||!e.k?u.value:c[e.k];if(r)Je(D)&&Hd(D,l);else if(Je(D))D.includes(l)||D.push(l);else if(w)c[u]=[l],v(u)&&(f[u]=c[u]);else{const B=[l];h(u,e.k)&&(u.value=B),e.k&&(c[e.k]=B)}}else w?(c[u]=o,v(u)&&(f[u]=o)):S&&(h(u,e.k)&&(u.value=o),e.k&&(c[e.k]=o))};if(o){const D=()=>{_(),gi.delete(e)};D.id=-1,gi.set(e,D),ln(D,n)}else zp(e),_()}}}function zp(e){const t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}Zi().requestIdleCallback;Zi().cancelIdleCallback;const Bl=e=>!!e.type.__asyncLoader,Dy=e=>e.type.__isKeepAlive;function Oy(e,t){Py(e,"a",t)}function My(e,t){Py(e,"da",t)}function Py(e,t,n=nn){const a=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(lu(t,a,n),n){let r=n.parent;for(;r&&r.parent;)Dy(r.parent.vnode)&&bx(a,t,n,r),r=r.parent}}function bx(e,t,n,a){const r=lu(t,e,a,!0);Va(()=>{Hd(a[t],r)},n)}function lu(e,t,n=nn,a=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...o)=>{Ia();const i=gs(n),u=Pn(t,n,e,o);return i(),Ra(),u});return a?r.unshift(l):r.push(l),l}}const Fa=e=>(t,n=nn)=>{(!as||e==="sp")&&lu(e,(...a)=>t(...a),n)},Iy=Fa("bm"),wt=Fa("m"),_x=Fa("bu"),Qd=Fa("u"),Et=Fa("bum"),Va=Fa("um"),xx=Fa("sp"),kx=Fa("rtg"),wx=Fa("rtc");function $x(e,t=nn){lu("ec",e,t)}const Ry="components";function Cx(e,t){return Ly(Ry,e,!0,t)||e}const qy=Symbol.for("v-ndc");function Kt(e){return St(e)?Ly(Ry,e,!1)||e:e||qy}function Ly(e,t,n=!0,a=!1){const r=Jt||nn;if(r){const l=r.type;{const i=sk(l,!1);if(i&&(i===t||i===Zt(t)||i===Ji(Zt(t))))return l}const o=jp(r[e]||l[e],t)||jp(r.appContext[e],t);return!o&&a?l:o}}function jp(e,t){return e&&(e[t]||e[Zt(t)]||e[Ji(Zt(t))])}function Me(e,t,n,a){let r;const l=n,o=Je(e);if(o||St(e)){const i=o&&Zr(e);let u=!1,d=!1;i&&(u=!kn(e),d=qa(e),e=Qi(e)),r=new Array(e.length);for(let c=0,f=e.length;ct(i,u,void 0,l));else{const i=Object.keys(e);r=new Array(i.length);for(let u=0,d=i.length;u0;return t!=="default"&&(n.name=t),p(),j(pe,null,[N("slot",n,a&&a())],d?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),p();const o=l&&Ny(l(n)),i=n.key||o&&o.key,u=j(pe,{key:(i&&!wn(i)?i:`_${t}`)+(!o&&a?"_fb":"")},o||(a?a():[]),o&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function Ny(e){return e.some(t=>ns(t)?!(t.type===jn||t.type===pe&&!Ny(t.children)):!0)?e:null}function By(e,t){const n={};for(const a in e)n[No(a)]=e[a];return n}const td=e=>e?lg(e)?iu(e):td(e.parent):null,zo=Ft(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>td(e.parent),$root:e=>td(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zy(e),$forceUpdate:e=>e.f||(e.f=()=>{Xd(e.update)}),$nextTick:e=>e.n||(e.n=We.bind(e.proxy)),$watch:e=>cx.bind(e)}),Yu=(e,t)=>e!==kt&&!e.__isScriptSetup&>(e,t),Sx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:r,props:l,accessCache:o,type:i,appContext:u}=e;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return a[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(Yu(a,t))return o[t]=1,a[t];if(r!==kt&>(r,t))return o[t]=2,r[t];if(gt(l,t))return o[t]=3,l[t];if(n!==kt&>(n,t))return o[t]=4,n[t];ad&&(o[t]=0)}}const d=zo[t];let c,f;if(d)return t==="$attrs"&&tn(e.attrs,"get",""),d(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==kt&>(n,t))return o[t]=4,n[t];if(f=u.config.globalProperties,gt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:r,ctx:l}=e;return Yu(r,t)?(r[t]=n,!0):a!==kt&>(a,t)?(a[t]=n,!0):gt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:r,props:l,type:o}},i){let u;return!!(n[i]||e!==kt&&i[0]!=="$"&>(e,i)||Yu(t,i)||gt(l,i)||gt(a,i)||gt(zo,i)||gt(r.config.globalProperties,i)||(u=o.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:gt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nd(e){return Je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Fy(e,t){const n=nd(e);for(const a in t){if(a.startsWith("__skip"))continue;let r=n[a];r?Je(r)||tt(r)?r=n[a]={type:r,default:t[a]}:r.default=t[a]:r===null&&(r=n[a]={default:t[a]}),r&&t[`__skip_${a}`]&&(r.skipFactory=!0)}return n}let ad=!0;function Ex(e){const t=zy(e),n=e.proxy,a=e.ctx;ad=!1,t.beforeCreate&&Up(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:o,watch:i,provide:u,inject:d,created:c,beforeMount:f,mounted:m,beforeUpdate:v,updated:h,activated:w,deactivated:S,beforeDestroy:_,beforeUnmount:D,destroyed:B,unmounted:O,render:A,renderTracked:I,renderTriggered:q,errorCaptured:U,serverPrefetch:C,expose:P,inheritAttrs:z,components:E,directives:L,filters:G}=t;if(d&&Ax(d,a,null),o)for(const re in o){const le=o[re];tt(le)&&(a[re]=le.bind(n))}if(r){const re=r.call(n,n);ht(re)&&(e.data=Fn(re))}if(ad=!0,l)for(const re in l){const le=l[re],ge=tt(le)?le.bind(n,n):tt(le.get)?le.get.bind(n,n):ca,ye=!tt(le)&&tt(le.set)?le.set.bind(n):ca,ve=b({get:ge,set:ye});Object.defineProperty(a,re,{enumerable:!0,configurable:!0,get:()=>ve.value,set:oe=>ve.value=oe})}if(i)for(const re in i)Vy(i[re],a,n,re);if(u){const re=tt(u)?u.call(n):u;Reflect.ownKeys(re).forEach(le=>{vt(le,re[le])})}c&&Up(c,e,"c");function H(re,le){Je(le)?le.forEach(ge=>re(ge.bind(n))):le&&re(le.bind(n))}if(H(Iy,f),H(wt,m),H(_x,v),H(Qd,h),H(Oy,w),H(My,S),H($x,U),H(wx,I),H(kx,q),H(Et,D),H(Va,O),H(xx,C),Je(P))if(P.length){const re=e.exposed||(e.exposed={});P.forEach(le=>{Object.defineProperty(re,le,{get:()=>n[le],set:ge=>n[le]=ge,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===ca&&(e.render=A),z!=null&&(e.inheritAttrs=z),E&&(e.components=E),L&&(e.directives=L),C&&Ty(e)}function Ax(e,t,n=ca){Je(e)&&(e=rd(e));for(const a in e){const r=e[a];let l;ht(r)?"default"in r?l=it(r.from||a,r.default,!0):l=it(r.from||a):l=it(r),Ot(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[a]=l}}function Up(e,t,n){Pn(Je(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vy(e,t,n,a){let r=a.includes(".")?Cy(n,a):()=>n[a];if(St(e)){const l=t[e];tt(l)&&Fe(r,l)}else if(tt(e))Fe(r,e.bind(n));else if(ht(e))if(Je(e))e.forEach(l=>Vy(l,t,n,a));else{const l=tt(e.handler)?e.handler.bind(n):t[e.handler];tt(l)&&Fe(r,l,e)}}function zy(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,i=l.get(t);let u;return i?u=i:!r.length&&!n&&!a?u=t:(u={},r.length&&r.forEach(d=>bi(u,d,o,!0)),bi(u,t,o)),ht(t)&&l.set(t,u),u}function bi(e,t,n,a=!1){const{mixins:r,extends:l}=t;l&&bi(e,l,n,!0),r&&r.forEach(o=>bi(e,o,n,!0));for(const o in t)if(!(a&&o==="expose")){const i=Tx[o]||n&&n[o];e[o]=i?i(e[o],t[o]):t[o]}return e}const Tx={data:Hp,props:Kp,emits:Kp,methods:Mo,computed:Mo,beforeCreate:rn,created:rn,beforeMount:rn,mounted:rn,beforeUpdate:rn,updated:rn,beforeDestroy:rn,beforeUnmount:rn,destroyed:rn,unmounted:rn,activated:rn,deactivated:rn,errorCaptured:rn,serverPrefetch:rn,components:Mo,directives:Mo,watch:Ox,provide:Hp,inject:Dx};function Hp(e,t){return t?e?function(){return Ft(tt(e)?e.call(this,this):e,tt(t)?t.call(this,this):t)}:t:e}function Dx(e,t){return Mo(rd(e),rd(t))}function rd(e){if(Je(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zt(t)}Modifiers`]||e[`${Cr(t)}Modifiers`];function Rx(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||kt;let r=n;const l=t.startsWith("update:"),o=l&&Ix(a,t.slice(7));o&&(o.trim&&(r=n.map(c=>St(c)?c.trim():c)),o.number&&(r=n.map(Kd)));let i,u=a[i=No(t)]||a[i=No(Zt(t))];!u&&l&&(u=a[i=No(Cr(t))]),u&&Pn(u,e,6,r);const d=a[i+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Pn(d,e,6,r)}}const qx=new WeakMap;function Uy(e,t,n=!1){const a=n?qx:t.emitsCache,r=a.get(e);if(r!==void 0)return r;const l=e.emits;let o={},i=!1;if(!tt(e)){const u=d=>{const c=Uy(d,t,!0);c&&(i=!0,Ft(o,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!i?(ht(e)&&a.set(e,null),null):(Je(l)?l.forEach(u=>o[u]=null):Ft(o,l),ht(e)&&a.set(e,o),o)}function ou(e,t){return!e||!Ki(t)?!1:(t=t.slice(2).replace(/Once$/,""),gt(e,t[0].toLowerCase()+t.slice(1))||gt(e,Cr(t))||gt(e,t))}function Wp(e){const{type:t,vnode:n,proxy:a,withProxy:r,propsOptions:[l],slots:o,attrs:i,emit:u,render:d,renderCache:c,props:f,data:m,setupState:v,ctx:h,inheritAttrs:w}=e,S=yi(e);let _,D;try{if(n.shapeFlag&4){const O=r||a,A=O;_=la(d.call(A,O,c,f,v,m,h)),D=i}else{const O=t;_=la(O.length>1?O(f,{attrs:i,slots:o,emit:u}):O(f,null)),D=t.props?i:Lx(i)}}catch(O){jo.length=0,au(O,e,1),_=N(jn)}let B=_;if(D&&w!==!1){const O=Object.keys(D),{shapeFlag:A}=B;O.length&&A&7&&(l&&O.some(Wi)&&(D=Nx(D,l)),B=fr(B,D,!1,!0))}return n.dirs&&(B=fr(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&es(B,n.transition),_=B,yi(S),_}const Lx=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ki(n))&&((t||(t={}))[n]=e[n]);return t},Nx=(e,t)=>{const n={};for(const a in e)(!Wi(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function Bx(e,t,n){const{props:a,children:r,component:l}=e,{props:o,children:i,patchFlag:u}=t,d=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?Gp(a,o,d):!!o;if(u&8){const c=t.dynamicProps;for(let f=0;fObject.create(Ky),Gy=e=>Object.getPrototypeOf(e)===Ky;function Vx(e,t,n,a=!1){const r={},l=Wy();e.propsDefaults=Object.create(null),Yy(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=a?r:my(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function zx(e,t,n,a){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,i=pt(r),[u]=e.propsOptions;let d=!1;if((a||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[m,v]=Jy(f,t,!0);Ft(o,m),v&&i.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!l&&!u)return ht(e)&&a.set(e,ql),ql;if(Je(l))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",tf=e=>Je(e)?e.map(la):[la(e)],Ux=(e,t,n)=>{if(t._n)return t;const a=F((...r)=>tf(t(...r)),n);return a._c=!1,a},Zy=(e,t,n)=>{const a=e._ctx;for(const r in e){if(ef(r))continue;const l=e[r];if(tt(l))t[r]=Ux(r,l,a);else if(l!=null){const o=tf(l);t[r]=()=>o}}},Xy=(e,t)=>{const n=tf(t);e.slots.default=()=>n},Qy=(e,t,n)=>{for(const a in t)(n||!ef(a))&&(e[a]=t[a])},Hx=(e,t,n)=>{const a=e.slots=Wy();if(e.vnode.shapeFlag&32){const r=t._;r?(Qy(a,t,n),n&&Kh(a,"_",r,!0)):Zy(t,a)}else t&&Xy(e,t)},Kx=(e,t,n)=>{const{vnode:a,slots:r}=e;let l=!0,o=kt;if(a.shapeFlag&32){const i=t._;i?n&&i===1?l=!1:Qy(r,t,n):(l=!t.$stable,Zy(t,r)),o=t}else t&&(Xy(e,t),o={default:1});if(l)for(const i in r)!ef(i)&&o[i]==null&&delete r[i]},ln=Zx;function Wx(e){return Gx(e)}function Gx(e,t){const n=Zi();n.__VUE__=!0;const{insert:a,remove:r,patchProp:l,createElement:o,createText:i,createComment:u,setText:d,setElementText:c,parentNode:f,nextSibling:m,setScopeId:v=ca,insertStaticContent:h}=e,w=(x,M,R,se=null,ee=null,ce=null,Ce=void 0,$e=null,Te=!!M.dynamicChildren)=>{if(x===M)return;x&&!El(x,M)&&(se=Y(x),oe(x,ee,ce,!0),x=null),M.patchFlag===-2&&(Te=!1,M.dynamicChildren=null);const{type:ue,ref:Se,shapeFlag:xe}=M;switch(ue){case su:S(x,M,R,se);break;case jn:_(x,M,R,se);break;case Zu:x==null&&D(M,R,se,Ce);break;case pe:E(x,M,R,se,ee,ce,Ce,$e,Te);break;default:xe&1?A(x,M,R,se,ee,ce,Ce,$e,Te):xe&6?L(x,M,R,se,ee,ce,Ce,$e,Te):(xe&64||xe&128)&&ue.process(x,M,R,se,ee,ce,Ce,$e,Te,Q)}Se!=null&&ee?Vo(Se,x&&x.ref,ce,M||x,!M):Se==null&&x&&x.ref!=null&&Vo(x.ref,null,ce,x,!0)},S=(x,M,R,se)=>{if(x==null)a(M.el=i(M.children),R,se);else{const ee=M.el=x.el;M.children!==x.children&&d(ee,M.children)}},_=(x,M,R,se)=>{x==null?a(M.el=u(M.children||""),R,se):M.el=x.el},D=(x,M,R,se)=>{[x.el,x.anchor]=h(x.children,M,R,se,x.el,x.anchor)},B=({el:x,anchor:M},R,se)=>{let ee;for(;x&&x!==M;)ee=m(x),a(x,R,se),x=ee;a(M,R,se)},O=({el:x,anchor:M})=>{let R;for(;x&&x!==M;)R=m(x),r(x),x=R;r(M)},A=(x,M,R,se,ee,ce,Ce,$e,Te)=>{if(M.type==="svg"?Ce="svg":M.type==="math"&&(Ce="mathml"),x==null)I(M,R,se,ee,ce,Ce,$e,Te);else{const ue=x.el&&x.el._isVueCE?x.el:null;try{ue&&ue._beginPatch(),C(x,M,ee,ce,Ce,$e,Te)}finally{ue&&ue._endPatch()}}},I=(x,M,R,se,ee,ce,Ce,$e)=>{let Te,ue;const{props:Se,shapeFlag:xe,transition:qe,dirs:Be}=x;if(Te=x.el=o(x.type,ce,Se&&Se.is,Se),xe&8?c(Te,x.children):xe&16&&U(x.children,Te,null,se,ee,Ju(x,ce),Ce,$e),Be&&Nr(x,null,se,"created"),q(Te,x,x.scopeId,Ce,se),Se){for(const nt in Se)nt!=="value"&&!Lo(nt)&&l(Te,nt,null,Se[nt],ce,se);"value"in Se&&l(Te,"value",null,Se.value,ce),(ue=Se.onVnodeBeforeMount)&&Qn(ue,se,x)}Be&&Nr(x,null,se,"beforeMount");const Ye=Yx(ee,qe);Ye&&qe.beforeEnter(Te),a(Te,M,R),((ue=Se&&Se.onVnodeMounted)||Ye||Be)&&ln(()=>{ue&&Qn(ue,se,x),Ye&&qe.enter(Te),Be&&Nr(x,null,se,"mounted")},ee)},q=(x,M,R,se,ee)=>{if(R&&v(x,R),se)for(let ce=0;ce{for(let ue=Te;ue{const $e=M.el=x.el;let{patchFlag:Te,dynamicChildren:ue,dirs:Se}=M;Te|=x.patchFlag&16;const xe=x.props||kt,qe=M.props||kt;let Be;if(R&&Br(R,!1),(Be=qe.onVnodeBeforeUpdate)&&Qn(Be,R,M,x),Se&&Nr(M,x,R,"beforeUpdate"),R&&Br(R,!0),(xe.innerHTML&&qe.innerHTML==null||xe.textContent&&qe.textContent==null)&&c($e,""),ue?P(x.dynamicChildren,ue,$e,R,se,Ju(M,ee),ce):Ce||le(x,M,$e,null,R,se,Ju(M,ee),ce,!1),Te>0){if(Te&16)z($e,xe,qe,R,ee);else if(Te&2&&xe.class!==qe.class&&l($e,"class",null,qe.class,ee),Te&4&&l($e,"style",xe.style,qe.style,ee),Te&8){const Ye=M.dynamicProps;for(let nt=0;nt{Be&&Qn(Be,R,M,x),Se&&Nr(M,x,R,"updated")},se)},P=(x,M,R,se,ee,ce,Ce)=>{for(let $e=0;$e{if(M!==R){if(M!==kt)for(const ce in M)!Lo(ce)&&!(ce in R)&&l(x,ce,M[ce],null,ee,se);for(const ce in R){if(Lo(ce))continue;const Ce=R[ce],$e=M[ce];Ce!==$e&&ce!=="value"&&l(x,ce,$e,Ce,ee,se)}"value"in R&&l(x,"value",M.value,R.value,ee)}},E=(x,M,R,se,ee,ce,Ce,$e,Te)=>{const ue=M.el=x?x.el:i(""),Se=M.anchor=x?x.anchor:i("");let{patchFlag:xe,dynamicChildren:qe,slotScopeIds:Be}=M;Be&&($e=$e?$e.concat(Be):Be),x==null?(a(ue,R,se),a(Se,R,se),U(M.children||[],R,Se,ee,ce,Ce,$e,Te)):xe>0&&xe&64&&qe&&x.dynamicChildren&&x.dynamicChildren.length===qe.length?(P(x.dynamicChildren,qe,R,ee,ce,Ce,$e),(M.key!=null||ee&&M===ee.subTree)&&nf(x,M,!0)):le(x,M,R,Se,ee,ce,Ce,$e,Te)},L=(x,M,R,se,ee,ce,Ce,$e,Te)=>{M.slotScopeIds=$e,x==null?M.shapeFlag&512?ee.ctx.activate(M,R,se,Ce,Te):G(M,R,se,ee,ce,Ce,Te):W(x,M,Te)},G=(x,M,R,se,ee,ce,Ce)=>{const $e=x.component=nk(x,se,ee);if(Dy(x)&&($e.ctx.renderer=Q),ak($e,!1,Ce),$e.asyncDep){if(ee&&ee.registerDep($e,H,Ce),!x.el){const Te=$e.subTree=N(jn);_(null,Te,M,R),x.placeholder=Te.el}}else H($e,x,M,R,ee,ce,Ce)},W=(x,M,R)=>{const se=M.component=x.component;if(Bx(x,M,R))if(se.asyncDep&&!se.asyncResolved){re(se,M,R);return}else se.next=M,se.update();else M.el=x.el,se.vnode=M},H=(x,M,R,se,ee,ce,Ce)=>{const $e=()=>{if(x.isMounted){let{next:xe,bu:qe,u:Be,parent:Ye,vnode:nt}=x;{const Pt=eg(x);if(Pt){xe&&(xe.el=nt.el,re(x,xe,Ce)),Pt.asyncDep.then(()=>{ln(()=>{x.isUnmounted||ue()},ee)});return}}let Xe=xe,st;Br(x,!1),xe?(xe.el=nt.el,re(x,xe,Ce)):xe=nt,qe&&li(qe),(st=xe.props&&xe.props.onVnodeBeforeUpdate)&&Qn(st,Ye,xe,nt),Br(x,!0);const lt=Wp(x),At=x.subTree;x.subTree=lt,w(At,lt,f(At.el),Y(At),x,ee,ce),xe.el=lt.el,Xe===null&&Fx(x,lt.el),Be&&ln(Be,ee),(st=xe.props&&xe.props.onVnodeUpdated)&&ln(()=>Qn(st,Ye,xe,nt),ee)}else{let xe;const{el:qe,props:Be}=M,{bm:Ye,m:nt,parent:Xe,root:st,type:lt}=x,At=Bl(M);Br(x,!1),Ye&&li(Ye),!At&&(xe=Be&&Be.onVnodeBeforeMount)&&Qn(xe,Xe,M),Br(x,!0);{st.ce&&st.ce._hasShadowRoot()&&st.ce._injectChildStyle(lt,x.parent?x.parent.type:void 0);const Pt=x.subTree=Wp(x);w(null,Pt,R,se,x,ee,ce),M.el=Pt.el}if(nt&&ln(nt,ee),!At&&(xe=Be&&Be.onVnodeMounted)){const Pt=M;ln(()=>Qn(xe,Xe,Pt),ee)}(M.shapeFlag&256||Xe&&Bl(Xe.vnode)&&Xe.vnode.shapeFlag&256)&&x.a&&ln(x.a,ee),x.isMounted=!0,M=R=se=null}};x.scope.on();const Te=x.effect=new Qh($e);x.scope.off();const ue=x.update=Te.run.bind(Te),Se=x.job=Te.runIfDirty.bind(Te);Se.i=x,Se.id=x.uid,Te.scheduler=()=>Xd(Se),Br(x,!0),ue()},re=(x,M,R)=>{M.component=x;const se=x.vnode.props;x.vnode=M,x.next=null,zx(x,M.props,se,R),Kx(x,M.children,R),Ia(),Np(x),Ra()},le=(x,M,R,se,ee,ce,Ce,$e,Te=!1)=>{const ue=x&&x.children,Se=x?x.shapeFlag:0,xe=M.children,{patchFlag:qe,shapeFlag:Be}=M;if(qe>0){if(qe&128){ye(ue,xe,R,se,ee,ce,Ce,$e,Te);return}else if(qe&256){ge(ue,xe,R,se,ee,ce,Ce,$e,Te);return}}Be&8?(Se&16&&me(ue,ee,ce),xe!==ue&&c(R,xe)):Se&16?Be&16?ye(ue,xe,R,se,ee,ce,Ce,$e,Te):me(ue,ee,ce,!0):(Se&8&&c(R,""),Be&16&&U(xe,R,se,ee,ce,Ce,$e,Te))},ge=(x,M,R,se,ee,ce,Ce,$e,Te)=>{x=x||ql,M=M||ql;const ue=x.length,Se=M.length,xe=Math.min(ue,Se);let qe;for(qe=0;qeSe?me(x,ee,ce,!0,!1,xe):U(M,R,se,ee,ce,Ce,$e,Te,xe)},ye=(x,M,R,se,ee,ce,Ce,$e,Te)=>{let ue=0;const Se=M.length;let xe=x.length-1,qe=Se-1;for(;ue<=xe&&ue<=qe;){const Be=x[ue],Ye=M[ue]=Te?$a(M[ue]):la(M[ue]);if(El(Be,Ye))w(Be,Ye,R,null,ee,ce,Ce,$e,Te);else break;ue++}for(;ue<=xe&&ue<=qe;){const Be=x[xe],Ye=M[qe]=Te?$a(M[qe]):la(M[qe]);if(El(Be,Ye))w(Be,Ye,R,null,ee,ce,Ce,$e,Te);else break;xe--,qe--}if(ue>xe){if(ue<=qe){const Be=qe+1,Ye=Beqe)for(;ue<=xe;)oe(x[ue],ee,ce,!0),ue++;else{const Be=ue,Ye=ue,nt=new Map;for(ue=Ye;ue<=qe;ue++){const Ve=M[ue]=Te?$a(M[ue]):la(M[ue]);Ve.key!=null&&nt.set(Ve.key,ue)}let Xe,st=0;const lt=qe-Ye+1;let At=!1,Pt=0;const Wt=new Array(lt);for(ue=0;ue=lt){oe(Ve,ee,ce,!0);continue}let He;if(Ve.key!=null)He=nt.get(Ve.key);else for(Xe=Ye;Xe<=qe;Xe++)if(Wt[Xe-Ye]===0&&El(Ve,M[Xe])){He=Xe;break}He===void 0?oe(Ve,ee,ce,!0):(Wt[He-Ye]=ue+1,He>=Pt?Pt=He:At=!0,w(Ve,M[He],R,null,ee,ce,Ce,$e,Te),st++)}const ze=At?Jx(Wt):ql;for(Xe=ze.length-1,ue=lt-1;ue>=0;ue--){const Ve=Ye+ue,He=M[Ve],Tt=M[Ve+1],Jn=Ve+1{const{el:ce,type:Ce,transition:$e,children:Te,shapeFlag:ue}=x;if(ue&6){ve(x.component.subTree,M,R,se);return}if(ue&128){x.suspense.move(M,R,se);return}if(ue&64){Ce.move(x,M,R,Q);return}if(Ce===pe){a(ce,M,R);for(let xe=0;xe$e.enter(ce),ee));else{const{leave:xe,delayLeave:qe,afterLeave:Be}=$e,Ye=()=>{x.ctx.isUnmounted?r(ce):a(ce,M,R)},nt=()=>{const Xe=ce._isLeaving||!!ce[aa];ce._isLeaving&&ce[aa](!0),$e.persisted&&!Xe?Ye():xe(ce,()=>{Ye(),Be&&Be()})};qe?qe(ce,Ye,nt):nt()}else a(ce,M,R)},oe=(x,M,R,se=!1,ee=!1)=>{const{type:ce,props:Ce,ref:$e,children:Te,dynamicChildren:ue,shapeFlag:Se,patchFlag:xe,dirs:qe,cacheIndex:Be,memo:Ye}=x;if(xe===-2&&(ee=!1),$e!=null&&(Ia(),Vo($e,null,R,x,!0),Ra()),Be!=null&&(M.renderCache[Be]=void 0),Se&256){M.ctx.deactivate(x);return}const nt=Se&1&&qe,Xe=!Bl(x);let st;if(Xe&&(st=Ce&&Ce.onVnodeBeforeUnmount)&&Qn(st,M,x),Se&6)we(x.component,R,se);else{if(Se&128){x.suspense.unmount(R,se);return}nt&&Nr(x,null,M,"beforeUnmount"),Se&64?x.type.remove(x,M,R,Q,se):ue&&!ue.hasOnce&&(ce!==pe||xe>0&&xe&64)?me(ue,M,R,!1,!0):(ce===pe&&xe&384||!ee&&Se&16)&&me(Te,M,R),se&&fe(x)}const lt=Ye!=null&&Be==null;(Xe&&(st=Ce&&Ce.onVnodeUnmounted)||nt||lt)&&ln(()=>{st&&Qn(st,M,x),nt&&Nr(x,null,M,"unmounted"),lt&&(x.el=null)},R)},fe=x=>{const{type:M,el:R,anchor:se,transition:ee}=x;if(M===pe){K(R,se);return}if(M===Zu){O(x);return}const ce=()=>{r(R),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(x.shapeFlag&1&&ee&&!ee.persisted){const{leave:Ce,delayLeave:$e}=ee,Te=()=>Ce(R,ce);$e?$e(x.el,ce,Te):Te()}else ce()},K=(x,M)=>{let R;for(;x!==M;)R=m(x),r(x),x=R;r(M)},we=(x,M,R)=>{const{bum:se,scope:ee,job:ce,subTree:Ce,um:$e,m:Te,a:ue}=x;Jp(Te),Jp(ue),se&&li(se),ee.stop(),ce&&(ce.flags|=8,oe(Ce,x,M,R)),$e&&ln($e,M),ln(()=>{x.isUnmounted=!0},M)},me=(x,M,R,se=!1,ee=!1,ce=0)=>{for(let Ce=ce;Ce{if(x.shapeFlag&6)return Y(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const M=m(x.anchor||x.el),R=M&&M[Sy];return R?m(R):M};let de=!1;const J=(x,M,R)=>{let se;x==null?M._vnode&&(oe(M._vnode,null,null,!0),se=M._vnode.component):w(M._vnode||null,x,M,null,null,null,R),M._vnode=x,de||(de=!0,Np(se),xy(),de=!1)},Q={p:w,um:oe,m:ve,r:fe,mt:G,mc:U,pc:le,pbc:P,n:Y,o:e};return{render:J,hydrate:void 0,createApp:Px(J)}}function Ju({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Br({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nf(e,t,n=!1){const a=e.children,r=t.children;if(Je(a)&&Je(r))for(let l=0;l>1,e[n[i]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,o=n[l-1];l-- >0;)n[l]=o,o=t[o];return n}function eg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:eg(t)}function Jp(e){if(e)for(let t=0;te.__isSuspense;function Zx(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):sx(e)}const pe=Symbol.for("v-fgt"),su=Symbol.for("v-txt"),jn=Symbol.for("v-cmt"),Zu=Symbol.for("v-stc"),jo=[];let _n=null;function p(e=!1){jo.push(_n=e?null:[])}function Xx(){jo.pop(),_n=jo[jo.length-1]||null}let ts=1;function _i(e,t=!1){ts+=e,e<0&&_n&&t&&(_n.hasOnce=!0)}function ag(e){return e.dynamicChildren=ts>0?_n||ql:null,Xx(),ts>0&&_n&&_n.push(e),e}function g(e,t,n,a,r,l){return ag(k(e,t,n,a,r,l,!0))}function j(e,t,n,a,r){return ag(N(e,t,n,a,r,!0))}function ns(e){return e?e.__v_isVNode===!0:!1}function El(e,t){return e.type===t.type&&e.key===t.key}const rg=({key:e})=>e??null,oi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?St(e)||Ot(e)||tt(e)?{i:Jt,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,a=0,r=null,l=e===pe?0:1,o=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rg(t),ref:t&&oi(t),scopeId:wy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Jt};return i?(af(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=St(n)?8:16),ts>0&&!o&&_n&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&_n.push(u),u}const N=Qx;function Qx(e,t=null,n=null,a=0,r=null,l=!1){if((!e||e===qy)&&(e=jn),ns(e)){const i=fr(e,t,!0);return n&&af(i,n),ts>0&&!l&&_n&&(i.shapeFlag&6?_n[_n.indexOf(e)]=i:_n.push(i)),i.patchFlag=-2,i}if(ik(e)&&(e=e.__vccOpts),t){t=ut(t);let{class:i,style:u}=t;i&&!St(i)&&(t.class=he(i)),ht(u)&&(nu(u)&&!Je(u)&&(u=Ft({},u)),t.style=un(u))}const o=St(e)?1:ng(e)?128:dx(e)?64:ht(e)?4:tt(e)?2:0;return k(e,t,n,a,r,o,l,!0)}function ut(e){return e?nu(e)||Gy(e)?Ft({},e):e:null}function fr(e,t,n=!1,a=!1){const{props:r,ref:l,patchFlag:o,children:i,transition:u}=e,d=t?je(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&rg(d),ref:t&&t.ref?n&&l?Je(l)?l.concat(oi(t)):[l,oi(t)]:oi(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fr(e.ssContent),ssFallback:e.ssFallback&&fr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&es(c,u.clone(c)),c}function _e(e=" ",t=0){return N(su,null,e,t)}function Z(e="",t=!1){return t?(p(),j(jn,null,e)):N(jn,null,e)}function la(e){return e==null||typeof e=="boolean"?N(jn):Je(e)?N(pe,null,e.slice()):ns(e)?$a(e):N(su,null,String(e))}function $a(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fr(e)}function af(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(a&65){const r=t.default;r&&(r._c&&(r._d=!1),af(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Gy(t)?t._ctx=Jt:r===3&&Jt&&(Jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else tt(t)?(t={default:t,_ctx:Jt},n=32):(t=String(t),a&64?(n=16,t=[_e(t)]):n=8);e.children=t,e.shapeFlag|=n}function je(...e){const t={};for(let n=0;nnn||Jt;let xi,od;{const e=Zi(),t=(n,a)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(a),l=>{r.length>1?r.forEach(o=>o(l)):r[0](l)}};xi=t("__VUE_INSTANCE_SETTERS__",n=>nn=n),od=t("__VUE_SSR_SETTERS__",n=>as=n)}const gs=e=>{const t=nn;return xi(e),e.scope.on(),()=>{e.scope.off(),xi(t)}},Zp=()=>{nn&&nn.scope.off(),xi(null)};function lg(e){return e.vnode.shapeFlag&4}let as=!1;function ak(e,t=!1,n=!1){t&&od(t);const{props:a,children:r}=e.vnode,l=lg(e);Vx(e,a,l,t),Hx(e,r,n||t);const o=l?rk(e,t):void 0;return t&&od(!1),o}function rk(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Sx);const{setup:a}=n;if(a){Ia();const r=e.setupContext=a.length>1?ok(e):null,l=gs(e),o=ys(a,e,0,[e.props,r]),i=jh(o);if(Ra(),l(),(i||e.sp)&&!Bl(e)&&Ty(e),i){if(o.then(Zp,Zp),t)return o.then(u=>{Xp(e,u)}).catch(u=>{au(u,e,0)});e.asyncDep=o}else Xp(e,o)}else og(e)}function Xp(e,t,n){tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ht(t)&&(e.setupState=yy(t)),og(e)}function og(e,t,n){const a=e.type;e.render||(e.render=a.render||ca);{const r=gs(e);Ia();try{Ex(e)}finally{Ra(),r()}}}const lk={get(e,t){return tn(e,"get",""),e[t]}};function ok(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,lk),slots:e.slots,emit:e.emit,expose:t}}function iu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yy(vi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zo)return zo[n](e)},has(t,n){return n in t||n in zo}})):e.proxy}function sk(e,t=!0){return tt(e)?e.displayName||e.name:e.name||t&&e.__name}function ik(e){return tt(e)&&"__vccOpts"in e}const b=(e,t)=>nx(e,t,as);function Mn(e,t,n){try{_i(-1);const a=arguments.length;return a===2?ht(t)&&!Je(t)?ns(t)?N(e,null,[t]):N(e,t):N(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&ns(n)&&(n=[n]),N(e,t,n))}finally{_i(1)}}const uk="3.5.35";let sd;const Qp=typeof window<"u"&&window.trustedTypes;if(Qp)try{sd=Qp.createPolicy("vue",{createHTML:e=>e})}catch{}const sg=sd?e=>sd.createHTML(e):e=>e,ck="http://www.w3.org/2000/svg",dk="http://www.w3.org/1998/Math/MathML",ka=typeof document<"u"?document:null,ev=ka&&ka.createElement("template"),fk={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const r=t==="svg"?ka.createElementNS(ck,e):t==="mathml"?ka.createElementNS(dk,e):n?ka.createElement(e,{is:n}):ka.createElement(e);return e==="select"&&a&&a.multiple!=null&&r.setAttribute("multiple",a.multiple),r},createText:e=>ka.createTextNode(e),createComment:e=>ka.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ka.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,r,l){const o=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===l||!(r=r.nextSibling)););else{ev.innerHTML=sg(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const i=ev.content;if(a==="svg"||a==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ya="transition",go="animation",Yl=Symbol("_vtc"),ig={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pk=Ft({},yx,ig),Fr=(e,t=[])=>{Je(e)?e.forEach(n=>n(...t)):e&&e(...t)},tv=e=>e?Je(e)?e.some(t=>t.length>1):e.length>1:!1;function vk(e){const t={};for(const E in e)E in ig||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:a,duration:r,enterFromClass:l=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:d=o,appearToClass:c=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,h=mk(r),w=h&&h[0],S=h&&h[1],{onBeforeEnter:_,onEnter:D,onEnterCancelled:B,onLeave:O,onLeaveCancelled:A,onBeforeAppear:I=_,onAppear:q=D,onAppearCancelled:U=B}=t,C=(E,L,G,W)=>{E._enterCancelled=W,tr(E,L?c:i),tr(E,L?d:o),G&&G()},P=(E,L)=>{E._isLeaving=!1,tr(E,f),tr(E,v),tr(E,m),L&&L()},z=E=>(L,G)=>{const W=E?q:D,H=()=>C(L,E,G);Fr(W,[L,H]),nv(()=>{tr(L,E?u:l),ta(L,E?c:i),tv(W)||av(L,a,w,H)})};return Ft(t,{onBeforeEnter(E){Fr(_,[E]),ta(E,l),ta(E,o)},onBeforeAppear(E){Fr(I,[E]),ta(E,u),ta(E,d)},onEnter:z(!1),onAppear:z(!0),onLeave(E,L){E._isLeaving=!0;const G=()=>P(E,L);ta(E,f),E._enterCancelled?(ta(E,m),id(E)):(id(E),ta(E,m)),nv(()=>{E._isLeaving&&(tr(E,f),ta(E,v),tv(O)||av(E,a,S,G))}),Fr(O,[E,G])},onEnterCancelled(E){C(E,!1,void 0,!0),Fr(B,[E])},onAppearCancelled(E){C(E,!0,void 0,!0),Fr(U,[E])},onLeaveCancelled(E){P(E),Fr(A,[E])}})}function mk(e){if(e==null)return null;if(ht(e))return[Xu(e.enter),Xu(e.leave)];{const t=Xu(e);return[t,t]}}function Xu(e){return x_(e)}function ta(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Yl]||(e[Yl]=new Set)).add(t)}function tr(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Yl];n&&(n.delete(t),n.size||(e[Yl]=void 0))}function nv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hk=0;function av(e,t,n,a){const r=e._endId=++hk,l=()=>{r===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:o,timeout:i,propCount:u}=ug(e,t);if(!o)return a();const d=o+"end";let c=0;const f=()=>{e.removeEventListener(d,m),l()},m=v=>{v.target===e&&++c>=u&&f()};setTimeout(()=>{c(n[h]||"").split(", "),r=a(`${Ya}Delay`),l=a(`${Ya}Duration`),o=rv(r,l),i=a(`${go}Delay`),u=a(`${go}Duration`),d=rv(i,u);let c=null,f=0,m=0;t===Ya?o>0&&(c=Ya,f=o,m=l.length):t===go?d>0&&(c=go,f=d,m=u.length):(f=Math.max(o,d),c=f>0?o>d?Ya:go:null,m=c?c===Ya?l.length:u.length:0);const v=c===Ya&&/\b(?:transform|all)(?:,|$)/.test(a(`${Ya}Property`).toString());return{type:c,timeout:f,propCount:m,hasTransform:v}}function rv(e,t){for(;e.lengthlv(n)+lv(e[a])))}function lv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function id(e){return(e?e.ownerDocument:document).body.offsetHeight}function yk(e,t,n){const a=e[Yl];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ki=Symbol("_vod"),cg=Symbol("_vsh"),wi={name:"show",beforeMount(e,{value:t},{transition:n}){e[ki]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),bo(e,!0),a.enter(e)):a.leave(e,()=>{bo(e,!1)}):bo(e,t))},beforeUnmount(e,{value:t}){bo(e,t)}};function bo(e,t){e.style.display=t?e[ki]:"none",e[cg]=!t}const gk=Symbol(""),bk=/(?:^|;)\s*display\s*:/;function _k(e,t,n){const a=e.style,r=St(n);let l=!1;if(n&&!r){if(t)if(St(t))for(const o of t.split(";")){const i=o.slice(0,o.indexOf(":")).trim();n[i]==null&&Po(a,i,"")}else for(const o in t)n[o]==null&&Po(a,o,"");for(const o in n){o==="display"&&(l=!0);const i=n[o];i!=null?kk(e,o,!St(t)&&t?t[o]:void 0,i)||Po(a,o,i):Po(a,o,"")}}else if(r){if(t!==n){const o=a[gk];o&&(n+=";"+o),a.cssText=n,l=bk.test(n)}}else t&&e.removeAttribute("style");ki in e&&(e[ki]=l?a.display:"",e[cg]&&(a.display="none"))}const ov=/\s*!important$/;function Po(e,t,n){if(Je(n))n.forEach(a=>Po(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=xk(e,t);ov.test(n)?e.setProperty(Cr(a),n.replace(ov,""),"important"):e[a]=n}}const sv=["Webkit","Moz","ms"],Qu={};function xk(e,t){const n=Qu[t];if(n)return n;let a=Zt(t);if(a!=="filter"&&a in e)return Qu[t]=a;a=Ji(a);for(let r=0;rec||(Sk.then(()=>ec=0),ec=Date.now());function Ak(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;const r=n.value;if(Je(r)){const l=a.stopImmediatePropagation;a.stopImmediatePropagation=()=>{l.call(a),a._stopped=!0};const o=r.slice(),i=[a];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Tk=(e,t,n,a,r,l)=>{const o=r==="svg";t==="class"?yk(e,a,o):t==="style"?_k(e,n,a):Ki(t)?Wi(t)||$k(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dk(e,t,a,o))?(cv(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&uv(e,t,a,o,l,t!=="value")):e._isVueCE&&(Ok(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!St(a)))?cv(e,Zt(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),uv(e,t,a,o))};function Dk(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&pv(t)&&tt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return pv(t)&&St(n)?!1:t in e}function Ok(e,t){const n=e._def.props;if(!n)return!1;const a=Zt(t);return Array.isArray(n)?n.some(r=>Zt(r)===a):Object.keys(n).some(r=>Zt(r)===a)}const dg=new WeakMap,fg=new WeakMap,$i=Symbol("_moveCb"),vv=Symbol("_enterCb"),Mk=e=>(delete e.props.mode,e),Pk=Mk({name:"TransitionGroup",props:Ft({},pk,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ma(),a=hx();let r,l;return Qd(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Nk(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(Rk),r.forEach(qk);const i=r.filter(Lk);id(n.vnode.el),i.forEach(u=>{const d=u.el,c=d.style;ta(d,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=d[$i]=m=>{m&&m.target!==d||(!m||m.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",f),d[$i]=null,tr(d,o))};d.addEventListener("transitionend",f)}),r=[]}),()=>{const o=pt(e),i=vk(o);let u=o.tag||pe;if(r=[],l)for(let d=0;d{i.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(i=>i&&a.classList.add(i)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:o}=ug(a);return l.removeChild(a),o}const mv=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?n=>li(t,n):t};function Bk(e){e.target.composing=!0}function hv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tc=Symbol("_assign");function yv(e,t,n){return t&&(e=e.trim()),n&&(e=Kd(e)),e}const Xr={created(e,{modifiers:{lazy:t,trim:n,number:a}},r){e[tc]=mv(r);const l=a||r.props&&r.props.type==="number";Al(e,t?"change":"input",o=>{o.target.composing||e[tc](yv(e.value,n,l))}),(n||l)&&Al(e,"change",()=>{e.value=yv(e.value,n,l)}),t||(Al(e,"compositionstart",Bk),Al(e,"compositionend",hv),Al(e,"change",hv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:r,number:l}},o){if(e[tc]=mv(o),e.composing)return;const i=(l||e.type==="number")&&!/^0\d/.test(e.value)?Kd(e.value):e.value,u=t??"";if(i===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(a&&t===n||r&&e.value.trim()===u)||(e.value=u)}},Fk=["ctrl","shift","alt","meta"],Vk={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Fk.some(n=>e[`${n}Key`]&&!t.includes(n))},mt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=((r,...l)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=(r=>{if(!("key"in r))return;const l=Cr(r.key);if(t.some(o=>o===l||zk[o]===l))return e(r)}))},jk=Ft({patchProp:Tk},fk);let gv;function Uk(){return gv||(gv=Wx(jk))}const Hk=((...e)=>{const t=Uk().createApp(...e),{mount:n}=t;return t.mount=a=>{const r=Wk(a);if(!r)return;const l=t._component;!tt(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Kk(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Kk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wk(e){return St(e)?document.querySelector(e):e}const Tl=typeof document<"u";function vg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Gk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&vg(e.default)}const yt=Object.assign;function nc(e,t){const n={};for(const a in t){const r=t[a];n[a]=Un(r)?r.map(e):e(r)}return n}const Uo=()=>{},Un=Array.isArray;function bv(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const mg=Symbol("");function Jl(e,t){return yt(new Error,{type:e,[mg]:!0},t)}function xa(e,t){return e instanceof Error&&mg in e&&(t==null||!!(e.type&t))}const rf=Symbol(""),_v=Symbol(""),uu=Symbol(""),lf=Symbol(""),ud=Symbol("");function Sr(){return it(uu)}function Rn(e){return it(lf)}const hg=/#/g,Yk=/&/g,Jk=/\//g,Zk=/=/g,Xk=/\?/g,yg=/\+/g,Qk=/%5B/g,ew=/%5D/g,gg=/%5E/g,tw=/%60/g,bg=/%7B/g,nw=/%7C/g,_g=/%7D/g,aw=/%20/g;function of(e){return e==null?"":encodeURI(""+e).replace(nw,"|").replace(Qk,"[").replace(ew,"]")}function rw(e){return of(e).replace(bg,"{").replace(_g,"}").replace(gg,"^")}function cd(e){return of(e).replace(yg,"%2B").replace(aw,"+").replace(hg,"%23").replace(Yk,"%26").replace(tw,"`").replace(bg,"{").replace(_g,"}").replace(gg,"^")}function lw(e){return cd(e).replace(Zk,"%3D")}function ow(e){return of(e).replace(hg,"%23").replace(Xk,"%3F")}function sw(e){return ow(e).replace(Jk,"%2F")}function Ci(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const iw=/\/$/,uw=e=>e.replace(iw,"");function ac(e,t,n="/"){let a,r={},l="",o="";const i=t.indexOf("#");let u=t.indexOf("?");return u=i>=0&&u>i?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,i>0?i:t.length),r=e(l.slice(1))),i>=0&&(a=a||t.slice(0,i),o=t.slice(i,t.length)),a=pw(a??t,n),{fullPath:a+l+o,path:a,query:r,hash:Ci(o)}}function cw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function xv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dw(e,t,n){const a=t.matched.length-1,r=n.matched.length-1;return a>-1&&a===r&&Zl(t.matched[a],n.matched[r])&&xg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!fw(e[n],t[n]))return!1;return!0}function fw(e,t){return Un(e)?kv(e,t):Un(t)?kv(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function kv(e,t){return Un(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function pw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let l=n.length-1,o,i;for(o=0;o1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(o).join("/")}const Ja={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function vw(e){if(!e)if(Tl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uw(e)}const mw=/^[^#]+#/;function hw(e,t){return e.replace(mw,"#")+t}function yw(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const cu=()=>({left:window.scrollX,top:window.scrollY});function gw(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=yw(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function wv(e,t){return(history.state?history.state.position-t:-1)+e}const dd=new Map;function bw(e,t){dd.set(e,t)}function _w(e){const t=dd.get(e);return dd.delete(e),t}function xw(e){return typeof e=="string"||e&&typeof e=="object"}function kg(e){return typeof e=="string"||typeof e=="symbol"}function kw(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ar&&cd(r)):[a&&cd(a)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ww(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=Un(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return t}function _o(){let e=[];function t(a){return e.push(a),()=>{const r=e.indexOf(a);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wg(e,t,n){const a=e.value;if(!a)return;let r=a;const l=()=>{r[t].delete(n)};Va(l),My(l),Oy(()=>{const o=e.value;o&&(r=o),r[t].add(n)}),r[t].add(n)}function $g(e){wg(it(rf,{}),"leaveGuards",e)}function $w(e){wg(it(rf,{}),"updateGuards",e)}function rr(e,t,n,a,r,l=o=>o()){const o=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((i,u)=>{const d=m=>{m===!1?u(Jl(4,{from:n,to:t})):m instanceof Error?u(m):xw(m)?u(Jl(2,{from:t,to:m})):(o&&a.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),i())},c=l(()=>e.call(a&&a.instances[r],t,n,d));let f=Promise.resolve(c);e.length<3&&(f=f.then(d)),f.catch(m=>u(m))})}function rc(e,t,n,a,r=l=>l()){const l=[];for(const o of e)for(const i in o.components){let u=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(vg(u)){const d=(u.__vccOpts||u)[t];d&&l.push(rr(d,n,a,o,i,r))}else{let d=u();l.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${i}" at "${o.path}"`);const f=Gk(c)?c.default:c;o.mods[i]=c,o.components[i]=f;const m=(f.__vccOpts||f)[t];return m&&rr(m,n,a,o,i,r)()}))}}return l}function Cw(e,t){const n=[],a=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let o=0;oZl(d,i))?a.push(i):n.push(i));const u=e.matched[o];u&&(t.matched.find(d=>Zl(d,u))||r.push(u))}return[n,a,r]}let Sw=()=>location.protocol+"//"+location.host;function Cg(e,t){const{pathname:n,search:a,hash:r}=t,l=e.indexOf("#");if(l>-1){let o=r.includes(e.slice(l))?e.slice(l).length:1,i=r.slice(o);return i[0]!=="/"&&(i="/"+i),xv(i,"")}return xv(n,e)+a+r}function Ew(e,t,n,a){let r=[],l=[],o=null;const i=({state:m})=>{const v=Cg(e,location),h=n.value,w=t.value;let S=0;if(m){if(n.value=v,t.value=m,o&&o===h){o=null;return}S=w?m.position-w.position:0}else a(v);r.forEach(_=>{_(n.value,h,{delta:S,type:"pop",direction:S?S>0?"forward":"back":""})})};function u(){o=n.value}function d(m){r.push(m);const v=()=>{const h=r.indexOf(m);h>-1&&r.splice(h,1)};return l.push(v),v}function c(){if(document.visibilityState==="hidden"){const{history:m}=window;if(!m.state)return;m.replaceState(yt({},m.state,{scroll:cu()}),"")}}function f(){for(const m of l)m();l=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:u,listen:d,destroy:f}}function Cv(e,t,n,a=!1,r=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:r?cu():null}}function Aw(e){const{history:t,location:n}=window,a={value:Cg(e,n)},r={value:t.state};r.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,d,c){const f=e.indexOf("#"),m=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:Sw()+e+u;try{t[c?"replaceState":"pushState"](d,"",m),r.value=d}catch(v){console.error(v),n[c?"replace":"assign"](m)}}function o(u,d){l(u,yt({},t.state,Cv(r.value.back,u,r.value.forward,!0),d,{position:r.value.position}),!0),a.value=u}function i(u,d){const c=yt({},r.value,t.state,{forward:u,scroll:cu()});l(c.current,c,!0),l(u,yt({},Cv(a.value,u,null),{position:c.position+1},d),!1),a.value=u}return{location:a,state:r,push:i,replace:o}}function Tw(e){e=vw(e);const t=Aw(e),n=Ew(e,t.state,t.location,t.replace);function a(l,o=!0){o||n.pauseListeners(),history.go(l)}const r=yt({location:"",base:e,go:a,createHref:hw.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}const Dw={type:0,value:""},Ow=/[a-zA-Z0-9_]/;function Mw(e){if(!e)return[[]];if(e==="/")return[[Dw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,a=n;const r=[];let l;function o(){l&&r.push(l),l=[]}let i=0,u,d="",c="";function f(){d&&(n===0?l.push({type:0,value:d}):n===1||n===2||n===3?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:d,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function m(){d+=u}for(;it.length?t.length===1&&t[0]===80?1:-1:0}function Sg(e,t){let n=0;const a=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Lw={strict:!1,end:!0,sensitive:!1};function Nw(e,t,n){const a=Rw(Mw(e.path),n),r=yt(a,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Bw(e,t){const n=[],a=new Map;t=bv(Lw,t);function r(f){return a.get(f)}function l(f,m,v){const h=!v,w=Tv(f);w.aliasOf=v&&v.record;const S=bv(t,f),_=[w];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const A of O)_.push(Tv(yt({},w,{components:v?v.record.components:w.components,path:A,aliasOf:v?v.record:w})))}let D,B;for(const O of _){const{path:A}=O;if(m&&A[0]!=="/"){const I=m.record.path,q=I[I.length-1]==="/"?"":"/";O.path=m.record.path+(A&&q+A)}if(D=Nw(O,m,S),v?v.alias.push(D):(B=B||D,B!==D&&B.alias.push(D),h&&f.name&&!Dv(D)&&o(f.name)),Eg(D)&&u(D),w.children){const I=w.children;for(let q=0;q{o(B)}:Uo}function o(f){if(kg(f)){const m=a.get(f);m&&(a.delete(f),n.splice(n.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=n.indexOf(f);m>-1&&(n.splice(m,1),f.record.name&&a.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function i(){return n}function u(f){const m=zw(f,n);n.splice(m,0,f),f.record.name&&!Dv(f)&&a.set(f.record.name,f)}function d(f,m){let v,h={},w,S;if("name"in f&&f.name){if(v=a.get(f.name),!v)throw Jl(1,{location:f});S=v.record.name,h=yt(Av(m.params,v.keys.filter(B=>!B.optional).concat(v.parent?v.parent.keys.filter(B=>B.optional):[]).map(B=>B.name)),f.params&&Av(f.params,v.keys.map(B=>B.name))),w=v.stringify(h)}else if(f.path!=null)w=f.path,v=n.find(B=>B.re.test(w)),v&&(h=v.parse(w),S=v.record.name,v.keys.forEach(B=>{B.optional&&!h[B.name]&&delete h[B.name]}));else{if(v=m.name?a.get(m.name):n.find(B=>B.re.test(m.path)),!v)throw Jl(1,{location:f,currentLocation:m});S=v.record.name,h=yt({},m.params,f.params),w=v.stringify(h)}const _=[];let D=v;for(;D;)_.unshift(D.record),D=D.parent;return{name:S,path:w,params:h,matched:_,meta:Vw(_)}}e.forEach(f=>l(f));function c(){n.length=0,a.clear()}return{addRoute:l,resolve:d,removeRoute:o,clearRoutes:c,getRoutes:i,getRecordMatcher:r}}function Av(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function Tv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Fw(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Fw(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function Dv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vw(e){return e.reduce((t,n)=>yt(t,n.meta),{})}function zw(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;Sg(e,t[l])<0?a=l:n=l+1}const r=jw(e);return r&&(a=t.lastIndexOf(r,a-1)),a}function jw(e){let t=e;for(;t=t.parent;)if(Eg(t)&&Sg(e,t)===0)return t}function Eg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ov(e){const t=it(uu),n=it(lf),a=b(()=>{const u=s(e.to);return t.resolve(u)}),r=b(()=>{const{matched:u}=a.value,{length:d}=u,c=u[d-1],f=n.matched;if(!c||!f.length)return-1;const m=f.findIndex(Zl.bind(null,c));if(m>-1)return m;const v=Mv(u[d-2]);return d>1&&Mv(c)===v&&f[f.length-1].path!==v?f.findIndex(Zl.bind(null,u[d-2])):m}),l=b(()=>r.value>-1&&Kw(n.params,a.value.params)),o=b(()=>r.value>-1&&r.value===n.matched.length-1&&xg(n.params,a.value.params));function i(u={}){if(Hw(u)){const d=t[s(e.replace)?"replace":"push"](s(e.to)).catch(Uo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:a,href:b(()=>a.value.href),isActive:l,isExactActive:o,navigate:i}}function Uw(e){return e.length===1?e[0]:e}const Hn=ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ov,setup(e,{slots:t}){const n=Fn(Ov(e)),{options:a}=it(uu),r=b(()=>({[Pv(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[Pv(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Uw(t.default(n));return e.custom?l:Mn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}});function Hw(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Kw(e,t){for(const n in t){const a=t[n],r=e[n];if(typeof a=="string"){if(a!==r)return!1}else if(!Un(r)||r.length!==a.length||a.some((l,o)=>l.valueOf()!==r[o].valueOf()))return!1}return!0}function Mv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pv=(e,t,n)=>e??t??n,Ww=ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=it(ud),r=b(()=>e.route||a.value),l=it(_v,0),o=b(()=>{let d=s(l);const{matched:c}=r.value;let f;for(;(f=c[d])&&!f.components;)d++;return d}),i=b(()=>r.value.matched[o.value]);vt(_v,b(()=>o.value+1)),vt(rf,i),vt(ud,r);const u=T();return Fe(()=>[u.value,i.value,e.name],([d,c,f],[m,v,h])=>{c&&(c.instances[f]=d,v&&v!==c&&d&&d===m&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),d&&c&&(!v||!Zl(c,v)||!m)&&(c.enterCallbacks[f]||[]).forEach(w=>w(d))},{flush:"post"}),()=>{const d=r.value,c=e.name,f=i.value,m=f&&f.components[c];if(!m)return Iv(n.default,{Component:m,route:d});const v=f.props[c],h=v?v===!0?d.params:typeof v=="function"?v(d):v:null,S=Mn(m,yt({},h,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:u}));return Iv(n.default,{Component:S,route:d})||S}}});function Iv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fd=Ww;function Gw(e){const t=Bw(e.routes,e),n=e.parseQuery||kw,a=e.stringifyQuery||$v,r=e.history,l=_o(),o=_o(),i=_o(),u=rl(Ja);let d=Ja;Tl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=nc.bind(null,Y=>""+Y),f=nc.bind(null,sw),m=nc.bind(null,Ci);function v(Y,de){let J,Q;return kg(Y)?(J=t.getRecordMatcher(Y),Q=de):Q=Y,t.addRoute(Q,J)}function h(Y){const de=t.getRecordMatcher(Y);de&&t.removeRoute(de)}function w(){return t.getRoutes().map(Y=>Y.record)}function S(Y){return!!t.getRecordMatcher(Y)}function _(Y,de){if(de=yt({},de||u.value),typeof Y=="string"){const R=ac(n,Y,de.path),se=t.resolve({path:R.path},de),ee=r.createHref(R.fullPath);return yt(R,se,{params:m(se.params),redirectedFrom:void 0,href:ee})}let J;if(Y.path!=null)J=yt({},Y,{path:ac(n,Y.path,de.path).path});else{const R=yt({},Y.params);for(const se in R)R[se]==null&&delete R[se];J=yt({},Y,{params:f(R)}),de.params=f(de.params)}const Q=t.resolve(J,de),te=Y.hash||"";Q.params=c(m(Q.params));const x=cw(a,yt({},Y,{hash:rw(te),path:Q.path})),M=r.createHref(x);return yt({fullPath:x,hash:te,query:a===$v?ww(Y.query):Y.query||{}},Q,{redirectedFrom:void 0,href:M})}function D(Y){return typeof Y=="string"?ac(n,Y,u.value.path):yt({},Y)}function B(Y,de){if(d!==Y)return Jl(8,{from:de,to:Y})}function O(Y){return q(Y)}function A(Y){return O(yt(D(Y),{replace:!0}))}function I(Y,de){const J=Y.matched[Y.matched.length-1];if(J&&J.redirect){const{redirect:Q}=J;let te=typeof Q=="function"?Q(Y,de):Q;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=D(te):{path:te},te.params={}),yt({query:Y.query,hash:Y.hash,params:te.path!=null?{}:Y.params},te)}}function q(Y,de){const J=d=_(Y),Q=u.value,te=Y.state,x=Y.force,M=Y.replace===!0,R=I(J,Q);if(R)return q(yt(D(R),{state:typeof R=="object"?yt({},te,R.state):te,force:x,replace:M}),de||J);const se=J;se.redirectedFrom=de;let ee;return!x&&dw(a,Q,J)&&(ee=Jl(16,{to:se,from:Q}),ve(Q,Q,!0,!1)),(ee?Promise.resolve(ee):P(se,Q)).catch(ce=>xa(ce)?xa(ce,2)?ce:ye(ce):le(ce,se,Q)).then(ce=>{if(ce){if(xa(ce,2))return q(yt({replace:M},D(ce.to),{state:typeof ce.to=="object"?yt({},te,ce.to.state):te,force:x}),de||se)}else ce=E(se,Q,!0,M,te);return z(se,Q,ce),ce})}function U(Y,de){const J=B(Y,de);return J?Promise.reject(J):Promise.resolve()}function C(Y){const de=K.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(Y):Y()}function P(Y,de){let J;const[Q,te,x]=Cw(Y,de);J=rc(Q.reverse(),"beforeRouteLeave",Y,de);for(const R of Q)R.leaveGuards.forEach(se=>{J.push(rr(se,Y,de))});const M=U.bind(null,Y,de);return J.push(M),me(J).then(()=>{J=[];for(const R of l.list())J.push(rr(R,Y,de));return J.push(M),me(J)}).then(()=>{J=rc(te,"beforeRouteUpdate",Y,de);for(const R of te)R.updateGuards.forEach(se=>{J.push(rr(se,Y,de))});return J.push(M),me(J)}).then(()=>{J=[];for(const R of x)if(R.beforeEnter)if(Un(R.beforeEnter))for(const se of R.beforeEnter)J.push(rr(se,Y,de));else J.push(rr(R.beforeEnter,Y,de));return J.push(M),me(J)}).then(()=>(Y.matched.forEach(R=>R.enterCallbacks={}),J=rc(x,"beforeRouteEnter",Y,de,C),J.push(M),me(J))).then(()=>{J=[];for(const R of o.list())J.push(rr(R,Y,de));return J.push(M),me(J)}).catch(R=>xa(R,8)?R:Promise.reject(R))}function z(Y,de,J){i.list().forEach(Q=>C(()=>Q(Y,de,J)))}function E(Y,de,J,Q,te){const x=B(Y,de);if(x)return x;const M=de===Ja,R=Tl?history.state:{};J&&(Q||M?r.replace(Y.fullPath,yt({scroll:M&&R&&R.scroll},te)):r.push(Y.fullPath,te)),u.value=Y,ve(Y,de,J,M),ye()}let L;function G(){L||(L=r.listen((Y,de,J)=>{if(!we.listening)return;const Q=_(Y),te=I(Q,we.currentRoute.value);if(te){q(yt(te,{replace:!0,force:!0}),Q).catch(Uo);return}d=Q;const x=u.value;Tl&&bw(wv(x.fullPath,J.delta),cu()),P(Q,x).catch(M=>xa(M,12)?M:xa(M,2)?(q(yt(D(M.to),{force:!0}),Q).then(R=>{xa(R,20)&&!J.delta&&J.type==="pop"&&r.go(-1,!1)}).catch(Uo),Promise.reject()):(J.delta&&r.go(-J.delta,!1),le(M,Q,x))).then(M=>{M=M||E(Q,x,!1),M&&(J.delta&&!xa(M,8)?r.go(-J.delta,!1):J.type==="pop"&&xa(M,20)&&r.go(-1,!1)),z(Q,x,M)}).catch(Uo)}))}let W=_o(),H=_o(),re;function le(Y,de,J){ye(Y);const Q=H.list();return Q.length?Q.forEach(te=>te(Y,de,J)):console.error(Y),Promise.reject(Y)}function ge(){return re&&u.value!==Ja?Promise.resolve():new Promise((Y,de)=>{W.add([Y,de])})}function ye(Y){return re||(re=!Y,G(),W.list().forEach(([de,J])=>Y?J(Y):de()),W.reset()),Y}function ve(Y,de,J,Q){const{scrollBehavior:te}=e;if(!Tl||!te)return Promise.resolve();const x=!J&&_w(wv(Y.fullPath,0))||(Q||!J)&&history.state&&history.state.scroll||null;return We().then(()=>te(Y,de,x)).then(M=>M&&gw(M)).catch(M=>le(M,Y,de))}const oe=Y=>r.go(Y);let fe;const K=new Set,we={currentRoute:u,listening:!0,addRoute:v,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:w,resolve:_,options:e,push:O,replace:A,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:l.add,beforeResolve:o.add,afterEach:i.add,onError:H.add,isReady:ge,install(Y){Y.component("RouterLink",Hn),Y.component("RouterView",fd),Y.config.globalProperties.$router=we,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>s(u)}),Tl&&!fe&&u.value===Ja&&(fe=!0,O(r.location).catch(Q=>{}));const de={};for(const Q in Ja)Object.defineProperty(de,Q,{get:()=>u.value[Q],enumerable:!0});Y.provide(uu,we),Y.provide(lf,my(de)),Y.provide(ud,u);const J=Y.unmount;K.add(Y),Y.unmount=function(){K.delete(Y),K.size<1&&(d=Ja,L&&L(),L=null,u.value=Ja,fe=!1,re=!1),J()}}};function me(Y){return Y.reduce((de,J)=>de.then(()=>C(J)),Promise.resolve())}return we}const Yw=/^[A-Za-z0-9_-]+$/;function du(e){const t=e.split(".");if(t.length!==3||!t.every(l=>Yw.test(l)))return null;const[n,a,r]=t;return{vendor:n,plugin:a,controller:r}}function Kn(e){const t=du(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function bs(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function no(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return du(n)?n:null}function Rv(e){const t=du(e);return t?`${t.vendor}.${t.plugin}`:null}const Jw=/\{[^{}]+\}/g,Zw=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function Xw(){return Math.random().toString(36).slice(2,11)}function Qw(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:a=globalThis.fetch,querySerializer:r,bodySerializer:l,pathSerializer:o,headers:i,requestInitExt:u=void 0,...d}={...e};u=Zw()?u:void 0,t=Nv(t);const c=[];async function f(m,v){const{baseUrl:h,fetch:w=a,Request:S=n,headers:_,params:D={},parseAs:B="json",querySerializer:O,bodySerializer:A=l??t2,pathSerializer:I,body:q,middleware:U=[],...C}=v||{};let P=t;h&&(P=Nv(h)??t);let z=typeof r=="function"?r:qv(r);O&&(z=typeof O=="function"?O:qv({...typeof r=="object"?r:{},...O}));const E=I||o||e2,L=q===void 0?void 0:A(q,Lv(i,_,D.header)),G=Lv(L===void 0||L instanceof FormData?{}:{"Content-Type":"application/json"},i,_,D.header),W=[...c,...U],H={redirect:"follow",...d,...C,body:L,headers:G};let re,le,ge=new S(n2(m,{baseUrl:P,params:D,querySerializer:z,pathSerializer:E}),H),ye;for(const fe in C)fe in ge||(ge[fe]=C[fe]);if(W.length){re=Xw(),le=Object.freeze({baseUrl:P,fetch:w,parseAs:B,querySerializer:z,bodySerializer:A,pathSerializer:E});for(const fe of W)if(fe&&typeof fe=="object"&&typeof fe.onRequest=="function"){const K=await fe.onRequest({request:ge,schemaPath:m,params:D,options:le,id:re});if(K)if(K instanceof S)ge=K;else if(K instanceof Response){ye=K;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!ye){try{ye=await w(ge,u)}catch(fe){let K=fe;if(W.length)for(let we=W.length-1;we>=0;we--){const me=W[we];if(me&&typeof me=="object"&&typeof me.onError=="function"){const Y=await me.onError({request:ge,error:K,schemaPath:m,params:D,options:le,id:re});if(Y){if(Y instanceof Response){K=void 0,ye=Y;break}if(Y instanceof Error){K=Y;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(K)throw K}if(W.length)for(let fe=W.length-1;fe>=0;fe--){const K=W[fe];if(K&&typeof K=="object"&&typeof K.onResponse=="function"){const we=await K.onResponse({request:ge,response:ye,schemaPath:m,params:D,options:le,id:re});if(we){if(!(we instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");ye=we}}}}const ve=ye.headers.get("Content-Length");if(ye.status===204||ge.method==="HEAD"||ve==="0"&&!ye.headers.get("Transfer-Encoding")?.includes("chunked"))return ye.ok?{data:void 0,response:ye}:{error:void 0,response:ye};if(ye.ok)return{data:await(async()=>{if(B==="stream")return ye.body;if(B==="json"&&!ve){const K=await ye.text();return K?JSON.parse(K):void 0}return await ye[B]()})(),response:ye};let oe=await ye.text();try{oe=JSON.parse(oe)}catch{}return{error:oe,response:ye}}return{request(m,v,h){return f(v,{...h,method:m.toUpperCase()})},GET(m,v){return f(m,{...v,method:"GET"})},PUT(m,v){return f(m,{...v,method:"PUT"})},POST(m,v){return f(m,{...v,method:"POST"})},DELETE(m,v){return f(m,{...v,method:"DELETE"})},OPTIONS(m,v){return f(m,{...v,method:"OPTIONS"})},HEAD(m,v){return f(m,{...v,method:"HEAD"})},PATCH(m,v){return f(m,{...v,method:"PATCH"})},TRACE(m,v){return f(m,{...v,method:"TRACE"})},use(...m){for(const v of m)if(v){if(typeof v!="object"||!("onRequest"in v||"onResponse"in v||"onError"in v))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");c.push(v)}},eject(...m){for(const v of m){const h=c.indexOf(v);h!==-1&&c.splice(h,1)}}}}function fu(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function Ag(e,t,n){if(!t||typeof t!="object")return"";const a=[],r={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const i in t)a.push(i,n.allowReserved===!0?t[i]:encodeURIComponent(t[i]));const o=a.join(",");switch(n.style){case"form":return`${e}=${o}`;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return o}}for(const o in t){const i=n.style==="deepObject"?`${e}[${o}]`:o;a.push(fu(i,t[o],n))}const l=a.join(r);return n.style==="label"||n.style==="matrix"?`${r}${l}`:l}function Tg(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const l={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",o=(n.allowReserved===!0?t:t.map(i=>encodeURIComponent(i))).join(l);switch(n.style){case"simple":return o;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return`${e}=${o}`}}const a={simple:",",label:".",matrix:";"}[n.style]||"&",r=[];for(const l of t)n.style==="simple"||n.style==="label"?r.push(n.allowReserved===!0?l:encodeURIComponent(l)):r.push(fu(e,l,n));return n.style==="label"||n.style==="matrix"?`${a}${r.join(a)}`:r.join(a)}function qv(e){return function(n){const a=[];if(n&&typeof n=="object")for(const r in n){const l=n[r];if(l!=null){if(Array.isArray(l)){if(l.length===0)continue;a.push(Tg(r,l,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof l=="object"){a.push(Ag(r,l,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}a.push(fu(r,l,e))}}return a.join("&")}}function e2(e,t){let n=e;for(const a of e.match(Jw)??[]){let r=a.substring(1,a.length-1),l=!1,o="simple";if(r.endsWith("*")&&(l=!0,r=r.substring(0,r.length-1)),r.startsWith(".")?(o="label",r=r.substring(1)):r.startsWith(";")&&(o="matrix",r=r.substring(1)),!t||t[r]===void 0||t[r]===null)continue;const i=t[r];if(Array.isArray(i)){n=n.replace(a,Tg(r,i,{style:o,explode:l}));continue}if(typeof i=="object"){n=n.replace(a,Ag(r,i,{style:o,explode:l}));continue}if(o==="matrix"){n=n.replace(a,`;${fu(r,i)}`);continue}n=n.replace(a,o==="label"?`.${encodeURIComponent(i)}`:encodeURIComponent(i))}return n}function t2(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function n2(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let a=t.querySerializer(t.params.query??{});return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n}function Lv(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const a=n instanceof Headers?n.entries():Object.entries(n);for(const[r,l]of a)if(l===null)t.delete(r);else if(Array.isArray(l))for(const o of l)t.append(r,o);else l!==void 0&&t.set(r,l)}return t}function Nv(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Bv="/backend",a2="__SUMMER_ADMIN_BASE__",r2="__SUMMER_ADMIN_BUILD__",l2=/^[0-9a-f]{6,64}$/;function o2(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===a2||!t.startsWith("/"))return Bv;const n=t.replace(/\/+$/,"");return n===""?Bv:n}function s2(e=document){const t=e.querySelector('meta[name="summer-admin-build"]')?.content.trim()??"";return t===r2||!l2.test(t)?"":t}const Fv=o2(),ll={base:Fv,api:`${Fv}/api/v1`,build:s2()},Dg="XMLHttpRequest";let Si=null,Og=null,xo=null;const lc=new WeakMap;function i2(e){Si=e}function u2(){Si?.()}function c2(e){Og=e}function d2(e){return new URL(e.url,"http://local").pathname}function Vv(e){const t=d2(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function sf(){return xo||(xo=(async()=>{try{const{data:e,response:t}=await Re.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return Og?.(typeof n=="number"?n:null),!0}catch{return!1}finally{xo=null}})(),xo)}const f2={onRequest({request:e}){return e.headers.set("X-Requested-With",Dg),Vv(e)||lc.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||Vv(e))return t;const n=lc.get(e);if(lc.delete(e),!n||!await sf())return Si?.(),t;const a=await globalThis.fetch(n);return a.status===401&&Si?.(),a}},Re=Qw({baseUrl:ll.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Re.use(f2);const uf=T({}),cf=T(typeof document>"u"?"pl":document.documentElement.lang||"pl"),Wn=Ct(cf),Mg=T([]),p2=Ct(Mg);function v2(e,t){uf.value=e,t&&(cf.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function Pg(e){const{data:t,response:n}=await Re.GET("/lang",e?{params:{query:{locale:e}}}:{});!n.ok||!t||(Mg.value=Array.isArray(t.meta.locales)?[...t.meta.locales]:[],v2(t.data,t.meta.locale))}function zv(e){const t=e.codePointAt(0);if(t===void 0)return e;const n=String.fromCodePoint(t);return n.toUpperCase()+e.slice(n.length)}function pd(e,t={}){if(e==="")return e;const n=[];for(const[r,l]of Object.entries(t)){const o=r.replace(/^:/,"");if(o==="")continue;const i=String(l);n.push([`:${zv(o)}`,zv(i)]),n.push([`:${o.toUpperCase()}`,i.toUpperCase()]),n.push([`:${o}`,i])}n.sort((r,l)=>l[0].length-r[0].length);let a=e;for(const[r,l]of n)a=a.split(r).join(l);return a}const jv=new Map;function m2(e,t=cf.value){let n=jv.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}jv.set(t,n)}return n?n.select(e):"other"}function Ge(e,t,n={}){if(!e)return"";if(t===void 0)return pd(e.other??"",n);const a=e[m2(t)]??e.other??"";return pd(a,{count:t,...n})}function y(e,t={}){const n=uf.value[e]?.other;return n===void 0?e:pd(n,t)}function Qr(e,t,n={}){const a=uf.value[e];return a?Ge(a,t,n):e}const df=T(""),Io=Ct(df);function ff(e){df.value=e}function pf(){df.value=""}const Ei=T([]);async function Ig(){const{data:e,response:t}=await Re.GET("/navigation");return Ei.value=t.ok&&e?e.data:[],Ei.value}function h2(e){Ei.value=e}const Ai=b(()=>Ei.value.filter(e=>e.sideMenu.length>0).map((e,t)=>({entry:e,index:t})).sort((e,t)=>e.entry.order-t.entry.order||e.index-t.index).map(({entry:e})=>e));function vf(e){for(const t of e.sideMenu){const n=Kn(t.controller);if(n)return n}return Kn(e.controller)}function _s(e,t){const n=`${e}.${t}`;return Ai.value.find(a=>Rv(a.controller)===n||a.sideMenu.some(r=>Rv(r.controller)===n))??null}function y2(){for(const e of Ai.value){const t=vf(e);if(t)return t}return null}const pr=T([]),g2=b(()=>pr.value.length>0);async function Rg(){const{data:e,response:t}=await Re.GET("/settings");return pr.value=t.ok&&e?e.data:[],pr.value}function b2(e){pr.value=e}function rs(e){return pr.value.find(t=>t.code===e)??null}function mf(e){return e.path?e.path:e.controller?Kn(e.controller)??"/settings":`/settings/${encodeURIComponent(e.code)}`}function pu(e){return e?pr.value.find(t=>t.controller!==""&&t.controller===e)??null:null}function qg(e){return pr.value.find(t=>!!t.path&&t.path===e)??null}const vd=b(()=>{const e=pr.value.map((n,a)=>({entry:n,index:a})).sort((n,a)=>n.entry.order-a.entry.order||n.index-a.index).map(({entry:n})=>n),t=[];for(const n of e){let a=t.find(r=>r.category===n.category);a||(a={category:n.category,entries:[]},t.push(a)),a.entries.push(n)}return t});function oc(e){if(!e)return null;const t=vd.value.find(n=>n.category===e.category);return!t||t.entries.length<2?null:{category:t.category,current:e,entries:t.entries}}const Uv="SummerCMS";function _2(e){if(e.name==="login")return y("backend::lang.auth.title");if(e.name==="settings")return y("backend::lang.settings.title");if(e.name==="account")return y("backend::lang.myaccount.menu_label");if(e.name==="plugins")return y("backend::lang.plugins.title");if(e.name==="settings-form")return rs(String(e.params.code??""))?.label??String(e.params.code??"");if(e.name==="home")return y("backend::lang.nav.empty");if(e.name==="not-found")return y("backend::lang.page.not_found");const t=_s(String(e.params.vendor??""),String(e.params.plugin??"")),n=no(e.path),r=t?.sideMenu.find(l=>l.controller===n)?.label??t?.label??pu(n)?.label??"";return(e.name==="create"||e.name==="record"||e.name==="preview")&&Io.value||r}function x2(e){const t=_2(e).trim();return t===""?Uv:`${t} | ${Uv}`}const Hv=e=>e==="";const k2=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();const Kv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const w2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());const $2=e=>{const t=w2(e);return t.charAt(0).toUpperCase()+t.slice(1)};var bl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const C2=Symbol("lucide-icons");function S2(){return it(C2,{})}const E2=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":a,strokeWidth:r,"stroke-width":l,size:o,color:i,...u},{slots:d})=>{const{size:c,color:f,strokeWidth:m=2,absoluteStrokeWidth:v=!1,class:h=""}=S2(),w=b(()=>{const S=Hv(n)||Hv(a)||n===!0||a===!0||v===!0,_=r||l||m||bl["stroke-width"];return S?Number(_)*24/Number(o??c??bl.width):_});return Mn("svg",{...bl,...u,width:o??c??bl.width,height:o??c??bl.height,stroke:i??f??bl.stroke,"stroke-width":w.value,class:k2("lucide",h,...e?[`lucide-${Kv($2(e))}-icon`,`lucide-${Kv(e)}`]:["lucide-icon"])},[...t.map(S=>Mn(...S)),...d.default?[d.default()]:[]])};const be=(e,t)=>(n,{slots:a,attrs:r})=>Mn(E2,{...r,...n,iconNode:t,name:e},a.default?{default:a.default}:void 0);const A2=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],T2=be("archive",A2);const D2=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Lg=be("arrow-down",D2);const O2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xs=be("arrow-left",O2);const M2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],P2=be("arrow-right",M2);const I2=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Ng=be("arrow-up-down",I2);const R2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Bg=be("arrow-up-right",R2);const q2=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Fg=be("arrow-up",q2);const L2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],N2=be("ban",L2);const B2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],F2=be("bell",B2);const V2=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],z2=be("bold",V2);const j2=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],U2=be("book",j2);const H2=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],K2=be("bookmark",H2);const W2=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],G2=be("box",W2);const Y2=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],J2=be("briefcase",Y2);const Z2=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],X2=be("building",Z2);const Q2=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Vg=be("calendar",Q2);const e$=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],t$=be("camera",e$);const n$=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["circle",{cx:"8",cy:"10",r:"2",key:"1xl4ub"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"10",r:"2",key:"r14t7q"}],["path",{d:"m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3",key:"l01ucn"}]],a$=be("cassette-tape",n$);const r$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]],l$=be("chart-bar",r$);const o$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],In=be("check",o$);const s$=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vr=be("chevron-down",s$);const i$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vu=be("chevron-left",i$);const u$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ks=be("chevron-right",u$);const c$=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],zg=be("chevron-up",c$);const d$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_t=be("circle-alert",d$);const f$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],p$=be("circle-arrow-up",f$);const v$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],m$=be("circle-check",v$);const h$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],y$=be("circle-question-mark",h$);const g$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],b$=be("circle",g$);const _$=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],x$=be("clipboard-list",_$);const k$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],md=be("clock",k$);const w$=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],$$=be("cloud",w$);const C$=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],jg=be("code",C$);const S$=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ti=be("copy",S$);const E$=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],A$=be("credit-card",E$);const T$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],D$=be("database",T$);const O$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]],M$=be("disc-3",O$);const P$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],I$=be("disc",P$);const R$=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],hd=be("download",R$);const q$=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ug=be("external-link",q$);const L$=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],N$=be("eye-off",L$);const B$=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],F$=be("eye",B$);const V$=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Il=be("file-text",V$);const z$=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],j$=be("file",z$);const U$=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],H$=be("files",U$);const K$=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],W$=be("flag",K$);const G$=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Y$=be("folder",G$);const J$=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Z$=be("funnel",J$);const X$=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Q$=be("gauge",X$);const eC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],tC=be("globe",eC);const nC=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],aC=be("graduation-cap",nC);const rC=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Di=be("grip-vertical",rC);const lC=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]],oC=be("heading-3",lC);const sC=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],iC=be("heart",sC);const uC=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],cC=be("house",uC);const dC=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]],Wv=be("image-off",dC);const fC=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],Hg=be("image-plus",fC);const pC=[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],vC=be("image-up",pC);const mC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Kg=be("image",mC);const hC=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],yC=be("inbox",hC);const gC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ol=be("info",gC);const bC=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],_C=be("italic",bC);const xC=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],kC=be("key-round",xC);const wC=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],$C=be("key",wC);const CC=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],SC=be("languages",CC);const EC=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],AC=be("layout-grid",EC);const TC=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],DC=be("leaf",TC);const OC=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],MC=be("library",OC);const PC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],IC=be("life-buoy",PC);const RC=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Wg=be("link",RC);const qC=[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]],LC=be("list-indent-decrease",qC);const NC=[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]],BC=be("list-indent-increase",NC);const FC=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Gg=be("list-ordered",FC);const VC=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Yg=be("list",VC);const zC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vl=be("loader-circle",zC);const jC=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],or=be("lock",jC);const UC=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Jg=be("log-out",UC);const HC=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],KC=be("mail",HC);const WC=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],GC=be("map-pin",WC);const YC=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],JC=be("message-circle",YC);const ZC=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],XC=be("mic-vocal",ZC);const QC=[["path",{d:"M5 12h14",key:"1ays0h"}]],Zg=be("minus",QC);const eS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],tS=be("moon",eS);const nS=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],aS=be("network",nS);const rS=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],lS=be("palette",rS);const oS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],hf=be("panel-left-close",oS);const sS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Xg=be("panel-left-open",sS);const iS=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],uS=be("paperclip",iS);const cS=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],dS=be("pause",cS);const fS=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Ho=be("pencil",fS);const pS=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],vS=be("phone",pS);const mS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],hS=be("play",mS);const yS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ws=be("plus",yS);const gS=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Qg=be("puzzle",gS);const bS=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],_S=be("quote",bS);const xS=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],kS=be("redo-2",xS);const wS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],$S=be("refresh-cw",wS);const CS=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],si=be("rotate-ccw",CS);const SS=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],eb=be("search-x",SS);const ES=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ao=be("search",ES);const AS=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],TS=be("send",AS);const DS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],tb=be("settings",DS);const OS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],MS=be("shield-check",OS);const PS=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],IS=be("shopping-cart",PS);const RS=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],qS=be("sliders-horizontal",RS);const LS=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],nb=be("star",LS);const NS=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]],BS=be("sun-moon",NS);const FS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],mu=be("sun",FS);const VS=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],zS=be("table",VS);const jS=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],US=be("tags",jS);const HS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Er=be("trash-2",HS);const KS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Oi=be("triangle-alert",KS);const WS=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],GS=be("trophy",WS);const YS=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],JS=be("underline",YS);const ZS=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],ab=be("undo-2",ZS);const XS=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],QS=be("unlink",XS);const e3=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Ko=be("upload",e3);const t3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],rb=be("user-minus",t3);const n3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],lb=be("user-plus",n3);const a3=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],r3=be("user-round",a3);const l3=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],o3=be("user",l3);const s3=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],i3=be("users-round",s3);const u3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],c3=be("users",u3);const d3=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],f3=be("wand-sparkles",d3);const p3=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],v3=be("wrench",p3);const m3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xt=be("x",m3),Gv={archive:T2,"arrow-down":Lg,"arrow-left":xs,"arrow-right":P2,"arrow-up":Fg,"arrow-up-right":Bg,bell:F2,book:U2,bookmark:K2,box:G2,briefcase:J2,building:X2,calendar:Vg,camera:t$,"cassette-tape":a$,"chart-bar":l$,check:In,"chevron-down":vr,"chevron-left":vu,"chevron-right":ks,circle:b$,"circle-alert":_t,"circle-check":m$,"circle-question-mark":y$,"clipboard-list":x$,clock:md,cloud:$$,code:jg,copy:Ti,"credit-card":A$,database:D$,disc:I$,"disc-3":M$,download:hd,"external-link":Ug,file:j$,"file-text":Il,files:H$,flag:W$,folder:Y$,funnel:Z$,gauge:Q$,globe:tC,"graduation-cap":aC,heart:iC,house:cC,image:Kg,inbox:yC,info:ol,key:$C,languages:SC,"layout-grid":AC,leaf:DC,library:MC,"life-buoy":IC,link:Wg,list:Yg,"list-ordered":Gg,lock:or,"log-out":Jg,mail:KC,"map-pin":GC,"message-circle":JC,"mic-vocal":XC,minus:Zg,network:aS,palette:lS,"panel-left-close":hf,"panel-left-open":Xg,paperclip:uS,pause:dS,pencil:Ho,phone:vS,play:hS,plus:ws,puzzle:Qg,"refresh-cw":$S,search:ao,"search-x":eb,settings:tb,"shield-check":MS,"shopping-cart":IS,star:nb,sun:mu,table:zS,tags:US,"trash-2":Er,"triangle-alert":Oi,trophy:GS,upload:Ko,user:o3,"user-minus":rb,"user-plus":lb,users:c3,"users-round":i3,"wand-sparkles":f3,wrench:v3,x:Xt},h3={"icon-archive":"archive","icon-bar-chart":"chart-bar","icon-bell":"bell","icon-book":"book","icon-bookmark":"bookmark","icon-briefcase":"briefcase","icon-building":"building","icon-calendar":"calendar","icon-camera":"camera","icon-check":"check","icon-check-circle":"circle-check","icon-circle":"circle","icon-clock":"clock","icon-clock-o":"clock","icon-cloud":"cloud","icon-code":"code","icon-cog":"settings","icon-cogs":"settings","icon-comment":"message-circle","icon-comments":"message-circle","icon-comments-o":"message-circle","icon-copy":"copy","icon-credit-card":"credit-card","icon-cube":"box","icon-dashboard":"gauge","icon-database":"database","icon-download":"download","icon-edit":"pencil","icon-envelope":"mail","icon-envelope-o":"mail","icon-exclamation-triangle":"triangle-alert","icon-external-link":"external-link","icon-file":"file","icon-file-o":"file","icon-file-text":"file-text","icon-file-text-o":"file-text","icon-files-o":"files","icon-filter":"funnel","icon-flag":"flag","icon-folder":"folder","icon-folder-o":"folder","icon-globe":"globe","icon-graduation-cap":"graduation-cap","icon-group":"users","icon-heart":"heart","icon-home":"house","icon-inbox":"inbox","icon-info-circle":"info","icon-key":"key","icon-language":"languages","icon-leaf":"leaf","icon-life-ring":"life-buoy","icon-link":"link","icon-list":"list","icon-list-alt":"clipboard-list","icon-list-ol":"list-ordered","icon-list-ul":"list","icon-lock":"lock","icon-magic":"wand-sparkles","icon-map-marker":"map-pin","icon-minus":"minus","icon-paperclip":"paperclip","icon-pause":"pause","icon-pencil":"pencil","icon-phone":"phone","icon-photo":"image","icon-picture-o":"image","icon-play":"play","icon-plus":"plus","icon-question":"circle-question-mark","icon-question-circle":"circle-question-mark","icon-refresh":"refresh-cw","icon-search":"search","icon-shopping-cart":"shopping-cart","icon-sign-out":"log-out","icon-sitemap":"network","icon-star":"star","icon-table":"table","icon-tachometer":"gauge","icon-tags":"tags","icon-th":"layout-grid","icon-th-large":"layout-grid","icon-times":"x","icon-trash":"trash-2","icon-trash-o":"trash-2","icon-trophy":"trophy","icon-upload":"upload","icon-user":"user","icon-users":"users","icon-warning":"triangle-alert","icon-wrench":"wrench"},Yv=mu;function sc(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function $s(e){if(!e)return Yv;const t=e.trim();return sc(Gv,t)??sc(Gv,sc(h3,t)??"")??Yv}const y3="(prefers-color-scheme: dark)",ii=["system","light","dark"];function ob(e){return typeof e=="string"&&ii.includes(e)}function g3(e=window,t="system"){const n=e.document.documentElement;if(t!=="system")return n.classList.toggle("dark",t==="dark"),()=>{};if(typeof e.matchMedia!="function")return n.classList.remove("dark"),()=>{};const a=e.matchMedia(y3),r=o=>{n.classList.toggle("dark",o)};r(a.matches);const l=o=>r(o.matches);return a.addEventListener("change",l),()=>a.removeEventListener("change",l)}const b3=4e3,ls=T([]),yd=new Map;let _3=1;const x3=Ct(ls);function Ie(e,t="success"){const n=_3++;return ls.value=[{id:n,text:e,tone:t},...ls.value],yd.set(n,setTimeout(()=>sb(n),b3)),n}function sb(e){const t=yd.get(e);t!==void 0&&(clearTimeout(t),yd.delete(e)),ls.value=ls.value.filter(n=>n.id!==e)}const ib="summer-admin.theme",yf="summer-admin.locale",k3=/^[A-Za-z]{2,8}(?:[-_][A-Za-z0-9]{1,8})?$/,Xl=T("system");let Jv=()=>{};const Zv=Ct(Xl),Mi=T(""),w3=Ct(Mi);function Pi(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function gf(e,t){try{t===null?Pi()?.removeItem(e):Pi()?.setItem(e,t)}catch{}}function gd(e){gf(ib,e==="system"?null:e)}function $3(){try{const e=Pi()?.getItem(ib);return ob(e)?e:"system"}catch{return"system"}}function C3(){try{const e=Pi()?.getItem(yf)??"";return e.length<=16&&k3.test(e)?e:""}catch{return""}}const ub={reload(){window.location.reload()}};function Ii(e){Jv(),Xl.value=e,Jv=typeof window>"u"?()=>{}:g3(window,e)}function S3(e){const t=ii.indexOf(e);return ii[(t+1)%ii.length]??"system"}async function E3(e){const t=Xl.value;Ii(e),gd(e);let n=!1;try{const{response:a}=await Re.PUT("/account/preferences",{body:{theme:e}});n=a.ok}catch{n=!1}n||(Xl.value===e&&(Ii(t),gd(t)),Ie(y("backend::lang.myaccount.preferences_failed"),"danger"))}function Xv(){return E3(S3(Xl.value))}async function A3(e){const t=e?.preferences;t&&(ob(t.theme)&&(t.theme!==Xl.value&&Ii(t.theme),gd(t.theme)),typeof t.locale=="string"&&(Mi.value=t.locale,t.locale!==""&&t.locale!==Wn.value&&await Pg(t.locale).catch(()=>{}),gf(yf,t.locale===""?null:t.locale)))}async function T3(e){if(e===Mi.value)return;let t=!1;try{const{response:n}=await Re.PUT("/account/preferences",{body:{locale:e}});t=n.ok}catch{t=!1}if(!t){Ie(y("backend::lang.myaccount.preferences_failed"),"danger");return}Mi.value=e,gf(yf,e===""?null:e),ub.reload()}const cb="summer-admin.sidebar",D3="(max-width: 1099px)",hu=T(!1),Wo=T(!1),O3=b(()=>Wo.value||hu.value);function db(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function M3(){try{return db()?.getItem(cb)==="true"}catch{return!1}}function bf(e){hu.value=e;try{db()?.setItem(cb,e?"true":"false")}catch{}}function P3(){if(hu.value=M3(),typeof window>"u"||typeof window.matchMedia!="function")return Wo.value=!1,()=>{};const e=window.matchMedia(D3);Wo.value=e.matches;const t=n=>{Wo.value=n.matches};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function fb(){return{collapsed:O3,narrow:Ct(Wo),manual:Ct(hu),setCollapsed:bf,watchViewport:P3}}const I3=["id","aria-label"],R3={class:"px-2.5 pt-1 pb-2 text-[14px] font-bold","aria-hidden":"true"},q3=ae({__name:"SectionFlyout",props:{entry:{},id:{}},emits:["escape","leave","navigate"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=Rn(),o=T(null),i=b(()=>no(l.path)),u=b(()=>a.entry.sideMenu.flatMap(v=>{const h=Kn(v.controller);return h?[{item:v,to:h,icon:$s(v.icon),current:i.value===v.controller}]:[]}));function d(){return[...o.value?.querySelectorAll('[role="menuitem"]')??[]]}async function c(){await We(),d()[0]?.focus()}function f(v){return!!v&&!!o.value?.contains(v)}function m(v){const h=d(),w=h.indexOf(document.activeElement);switch(v.key){case"ArrowDown":v.preventDefault(),h[(w+1)%h.length]?.focus();break;case"ArrowUp":v.preventDefault(),h[(w-1+h.length)%h.length]?.focus();break;case"Home":v.preventDefault(),h[0]?.focus();break;case"End":v.preventDefault(),h[h.length-1]?.focus();break;case"Escape":v.preventDefault(),r("escape");break;case"Tab":r("leave");break}}return t({focusFirst:c,contains:f}),(v,h)=>(p(),g("div",{id:e.id,ref_key:"root",ref:o,role:"menu","data-section-flyout":"","aria-label":e.entry.label,class:"fixed top-3 left-[calc(var(--spacing-rail)+8px)] z-40 flex w-[230px] flex-col gap-0.5 rounded-[14px] border border-border bg-surface p-2 text-text shadow-pop",onKeydown:m},[k("span",R3,$(e.entry.label),1),(p(!0),g(pe,null,Me(u.value,w=>(p(),j(s(Hn),{key:w.item.code,to:w.to,role:"menuitem",tabindex:"-1","aria-current":w.current?"page":void 0,class:he([w.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-[38px] items-center gap-3 rounded-tab px-2.5 no-underline transition-colors duration-150 ease-out"]),onClick:h[0]||(h[0]=S=>r("navigate"))},{default:F(()=>[(p(),j(Kt(w.icon),{size:18,"aria-hidden":"true"})),k("span",null,$(w.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],40,I3))}}),L3=["aria-label"],N3=["aria-label","title"],B3={class:"max-w-full [overflow-wrap:anywhere]"},F3=["aria-label","title"],V3={class:"max-w-full [overflow-wrap:anywhere]"},z3=200,j3=ae({__name:"PluginRail",setup(e){const t=Rn(),{collapsed:n,narrow:a,setCollapsed:r}=fb(),l={system:{icon:BS,key:"backend::lang.nav.theme_system"},light:{icon:mu,key:"backend::lang.nav.theme_light"},dark:{icon:tS,key:"backend::lang.nav.theme_dark"}},o=b(()=>l[Zv.value].icon),i=b(()=>y("backend::lang.nav.theme",{mode:y(l[Zv.value].key)})),u=b(()=>_s(String(t.params.vendor??""),String(t.params.plugin??""))),d=b(()=>t.path==="/settings"||t.path.startsWith("/settings/")||qg(t.path)!==null||u.value===null&&pu(no(t.path))!==null),c=b(()=>Ai.value.map(z=>({entry:z,to:vf(z)??"/",icon:$s(z.icon),current:u.value?.code===z.code}))),f=T(null),m=T(null),v=b(()=>Ai.value.find(z=>z.code===f.value)??null),h=new Map;let w=null,S=!1;function _(z){return`section-flyout-${z}`}function D(z,E){const L=E?.$el;L instanceof HTMLElement?h.set(z,L):h.delete(z)}function B(){w!==null&&(clearTimeout(w),w=null)}function O(){B(),f.value=null}function A(){B(),w=setTimeout(()=>{w=null;const z=document.activeElement,E=f.value;E!==null&&(h.get(E)===z||m.value?.contains(z))||(f.value=null)},z3)}function I(z){n.value&&(B(),f.value=z)}function q(z){S||I(z)}async function U(z,E){n.value&&(z.key==="Enter"||z.key==="ArrowDown"?(z.preventDefault(),I(E),await We(),await m.value?.focusFirst()):z.key==="Escape"&&f.value!==null&&(z.preventDefault(),O()))}function C(){const z=f.value;O(),z!==null&&(S=!0,h.get(z)?.focus(),S=!1)}function P(){r(!1),We(()=>document.querySelector("[data-sidebar-collapse]")?.focus())}return Fe(n,z=>{z||O()}),Et(B),(z,E)=>(p(),g("nav",{"aria-label":s(y)("backend::lang.nav.plugins"),class:"sticky top-0 flex h-screen w-rail shrink-0 flex-col items-center gap-1.5 self-start overflow-y-auto border-r border-side-border bg-side pt-3.5 pb-3"},[k("button",{type:"button","data-theme-toggle":"","aria-label":i.value,title:i.value,class:"mb-3.5 flex size-10 shrink-0 items-center justify-center rounded-inner bg-accent-soft transition-colors duration-150 ease-out hover:bg-side-hover",onClick:E[0]||(E[0]=(...L)=>s(Xv)&&s(Xv)(...L))},[(p(),j(Kt(o.value),{size:22,class:"text-accent","aria-hidden":"true"}))],8,N3),(p(!0),g(pe,null,Me(c.value,L=>(p(),j(s(Hn),{key:L.entry.code,ref_for:!0,ref:G=>D(L.entry.code,G),to:L.to,"data-rail-item":L.entry.code,"aria-current":L.current?"page":void 0,"aria-haspopup":s(n)?"menu":void 0,"aria-expanded":s(n)?f.value===L.entry.code?"true":"false":void 0,"aria-controls":s(n)&&f.value===L.entry.code?_(L.entry.code):void 0,class:he([L.current?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[92px] flex-col items-center gap-1 rounded-inner px-1 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline transition-colors duration-150 ease-out"]),onMouseenter:G=>I(L.entry.code),onMouseleave:A,onFocus:G=>q(L.entry.code),onBlur:A,onKeydown:G=>U(G,L.entry.code)},{default:F(()=>[(p(),j(Kt(L.icon),{size:20,"aria-hidden":"true"})),k("span",B3,$(L.entry.label),1)]),_:2},1032,["to","data-rail-item","aria-current","aria-haspopup","aria-expanded","aria-controls","class","onMouseenter","onFocus","onKeydown"]))),128)),s(n)&&v.value?(p(),j(q3,{key:0,id:_(v.value.code),ref_key:"flyout",ref:m,entry:v.value,onMouseenter:B,onMouseleave:A,onFocusin:B,onFocusout:A,onEscape:C,onLeave:A,onNavigate:O},null,8,["id","entry"])):Z("",!0),E[1]||(E[1]=k("span",{class:"flex-1","aria-hidden":"true"},null,-1)),s(n)&&!s(a)?(p(),g("button",{key:1,type:"button","data-sidebar-expand":"","aria-label":s(y)("backend::lang.nav.expand"),title:s(y)("backend::lang.nav.expand"),class:"mb-1 flex size-10 items-center justify-center rounded-inner text-side-text transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:P},[N(s(Xg),{size:20,"aria-hidden":"true"})],8,F3)):Z("",!0),s(g2)?(p(),j(s(Hn),{key:2,to:"/settings","data-rail-settings":"","aria-current":d.value?"page":void 0,class:he([d.value?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[92px] flex-col items-center gap-1 rounded-inner px-1 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline transition-colors duration-150 ease-out"])},{default:F(()=>[N(s(tb),{size:20,"aria-hidden":"true"}),k("span",V3,$(s(y)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):Z("",!0)],8,L3))}}),U3=["aria-label"],H3={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},K3={class:"truncate text-[16px] font-bold"},W3=["aria-label","title"],G3=ae({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=Rn(),a=b(()=>no(n.path)),r=b(()=>t.entry.sideMenu.flatMap(o=>{const i=Kn(o.controller);return i?[{item:o,to:i,icon:$s(o.icon),current:a.value===o.controller}]:[]}));function l(){bf(!0),We(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(o,i)=>(p(),g("aside",{"aria-label":s(y)("backend::lang.nav.sections"),class:"sticky top-0 flex h-screen w-panel shrink-0 flex-col gap-0.5 self-start overflow-y-auto border-r border-border bg-surface px-3 py-3.5"},[k("div",H3,[k("span",K3,$(e.entry.label),1),k("button",{type:"button","data-sidebar-collapse":"","aria-label":s(y)("backend::lang.nav.collapse"),title:s(y)("backend::lang.nav.collapse"),class:"flex size-[30px] shrink-0 items-center justify-center rounded-tab text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",onClick:l},[N(s(hf),{size:18,"aria-hidden":"true"})],8,W3)]),(p(!0),g(pe,null,Me(r.value,u=>(p(),j(s(Hn),{key:u.item.code,to:u.to,"aria-current":u.current?"page":void 0,class:he([u.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline transition-colors duration-150 ease-out"])},{default:F(()=>[(p(),j(Kt(u.icon),{size:18,"aria-hidden":"true"})),k("span",null,$(u.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,U3))}}),Y3=["aria-label"],J3={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},Z3={class:"truncate text-[16px] font-bold"},X3=["aria-label","title"],Q3=ae({__name:"SettingsPanel",props:{section:{}},setup(e){function t(){bf(!0),We(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(n,a)=>(p(),g("aside",{"data-settings-panel":"","aria-label":s(y)("backend::lang.nav.sections"),class:"sticky top-0 flex h-screen w-panel shrink-0 flex-col gap-0.5 self-start overflow-y-auto border-r border-border bg-surface px-3 py-3.5"},[k("div",J3,[k("span",Z3,$(e.section.category||s(y)("backend::lang.nav.settings")),1),k("button",{type:"button","data-sidebar-collapse":"","aria-label":s(y)("backend::lang.nav.collapse"),title:s(y)("backend::lang.nav.collapse"),class:"flex size-[30px] shrink-0 items-center justify-center rounded-tab text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",onClick:t},[N(s(hf),{size:18,"aria-hidden":"true"})],8,X3)]),(p(!0),g(pe,null,Me(e.section.entries,r=>(p(),j(s(Hn),{key:r.code,to:s(mf)(r),"data-settings-panel-item":r.code,"aria-current":r.code===e.section.current.code?"page":void 0,class:he([r.code===e.section.current.code?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline transition-colors duration-150 ease-out"])},{default:F(()=>[(p(),j(Kt(s($s)(r.icon)),{size:18,"aria-hidden":"true"})),k("span",null,$(r.label),1)]),_:2},1032,["to","data-settings-panel-item","aria-current","class"]))),128))],8,Y3))}}),eE=["aria-label"],tE={class:"flex min-w-0 items-center gap-2"},nE=["aria-current"],aE=ae({__name:"Breadcrumbs",setup(e){const t=Rn(),n=b(()=>{if(t.name==="account")return[{label:y("backend::lang.myaccount.menu_label")}];if(t.name==="plugins")return[{label:y("backend::lang.nav.settings"),to:"/settings"},{label:y("backend::lang.plugins.title")}];if(t.name==="settings"||t.name==="settings-form"){const i=[{label:y("backend::lang.nav.settings"),to:"/settings"}],u=t.name==="settings-form"?rs(String(t.params.code??"")):null;return u&&i.push({label:u.label}),i}const a=_s(String(t.params.vendor??""),String(t.params.plugin??"")),r=no(t.path);if(!a){const i=pu(r);if(!i)return[];const u=[{label:y("backend::lang.nav.settings"),to:"/settings"},{label:i.label,to:mf(i)}];return(t.name==="record"||t.name==="create")&&Io.value!==""&&u.push({label:Io.value}),u}const l=[{label:a.label,to:vf(a)??void 0}],o=a.sideMenu.find(i=>i.controller===r)??null;return o&&l.push({label:o.label,to:Kn(o.controller)??void 0}),(t.name==="record"||t.name==="create")&&Io.value!==""&&l.push({label:Io.value}),l});return(a,r)=>(p(),g("nav",{"aria-label":s(y)("backend::lang.nav.breadcrumbs"),class:"min-w-0"},[k("ol",tE,[(p(!0),g(pe,null,Me(n.value,(l,o)=>(p(),g("li",{key:o,"data-crumb":"",class:"flex min-w-0 items-center gap-2"},[o>0?(p(),j(s(ks),{key:0,size:14,class:"shrink-0 text-muted","aria-hidden":"true"})):Z("",!0),o===n.value.length-1||!l.to?(p(),g("span",{key:1,"aria-current":o===n.value.length-1?"page":void 0,class:he([o===n.value.length-1?"font-semibold text-text":"text-muted","truncate"])},$(l.label),11,nE)):(p(),j(s(Hn),{key:2,to:l.to,class:"truncate text-muted no-underline transition-colors duration-150 ease-out hover:text-text"},{default:F(()=>[_e($(l.label),1)]),_:2},1032,["to"]))]))),128))])],8,eE))}});function Qv(e){return typeof e=="string"?`'${e}'`:new lE().serialize(e)}const rE=" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz",Fs=(function(){const e=new Uint8Array(128);for(let t=0;t<69;t++)e[rE.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function ic(e,t){if(e===t)return 0;const n=Math.min(e.length,t.length);let a=0;for(let r=0;ro?-1:1)}return e.length!==t.length?e.lengththis.compare(o[0],i[0]));let l=`${n}{`;for(let o=0;othis.compare(a,r)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function os(e,t){return e===t||Qv(e)===Qv(t)}function Vs(e,t){let n=e;const a=t.toString(),r=a.indexOf("."),l=r>=0?a.length-r:0;if(l>0){const o=10**l;n=Math.round(n*o)/o}return n}function uc(e,t,n,a){t=Number(t),n=Number(n);const r=(e-(Number.isNaN(t)?0:t))%a;let l=Vs(Math.abs(r)*2>=a?e+Math.sign(r)*(a-Math.abs(r)):e-r,a);return Number.isNaN(t)?!Number.isNaN(n)&&l>n&&(l=Math.floor(Vs(n/a,a))*a):ln&&(l=t+Math.floor(Vs((n-t)/a,a))*a),l=Vs(l,a),l}function Dt(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,a=Symbol(n);return[o=>{const i=it(a,o);if(i||i===null)return i;throw new Error(`Injection \`${a.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(vt(a,o),o)]}function Gt(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function _f(e,t,n){const a=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),a.dispatchEvent(r)}function xn(e){return e==null}function em(e,t){return xn(e)?!1:Array.isArray(e)?e.some(n=>os(n,t)):os(e,t)}function oE(e,t){var n;const a=rl();return $n(()=>{a.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),Ct(a)}function pb(e,t){return Gd()?(Xh(e,t),!0):!1}function sE(e){let t=!1,n;const a=Zh(!0);return((...r)=>(t||(n=a.run(()=>e(...r)),t=!0),n))}const za=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const iE=e=>typeof e<"u",uE=Object.prototype.toString,cE=e=>uE.call(e)==="[object Object]",tm=dE();function dE(){var e,t,n;return za&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function cc(e){return Array.isArray(e)?e:[e]}function fE(e){return ma()}function vb(e){if(!za)return e;let t=0,n,a;const r=()=>{t-=1,a&&t<=0&&(a.stop(),n=void 0,a=void 0)};return((...l)=>(t+=1,a||(a=Zh(!0),n=a.run(()=>e(...l))),pb(r),n))}function pE(e){return Fn(Ot(e)?new Proxy({},{get(t,n,a){return s(Reflect.get(e.value,n,a))},set(t,n,a){return Ot(e.value[n])&&!Ot(a)?e.value[n].value=a:e.value[n]=a,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function vE(e){return pE(b(e))}function xf(e,...t){const n=t.flat(),a=n[0];return vE(()=>Object.fromEntries(typeof a=="function"?Object.entries(Ht(e)).filter(([r,l])=>!a(cn(l),r)):Object.entries(Ht(e)).filter(r=>!n.includes(r[0]))))}function mE(e,t=1e4){return Z_((n,a)=>{let r=cn(e),l;const o=()=>setTimeout(()=>{r=cn(e),a()},cn(t));return pb(()=>{clearTimeout(l)}),{get(){return n(),r},set(i){r=i,a(),clearTimeout(l),l=o()}}})}function hE(e,t){fE()&&Et(e,t)}function yE(e,t,n){return Fe(e,t,{...n,immediate:!0})}const kf=za?window:void 0;function sl(e){var t;const n=cn(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ql(...e){const t=(a,r,l,o)=>(a.addEventListener(r,l,o),()=>a.removeEventListener(r,l,o)),n=b(()=>{const a=cc(cn(e[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return yE(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(l=>sl(l)))!==null&&a!==void 0?a:[kf].filter(l=>l!=null),cc(cn(n.value?e[1]:e[0])),cc(s(n.value?e[2]:e[1])),cn(n.value?e[3]:e[2])]},([a,r,l,o],i,u)=>{if(!a?.length||!r?.length||!l?.length)return;const d=cE(o)?{...o}:o,c=a.flatMap(f=>r.flatMap(m=>l.map(v=>t(f,m,v,d))));u(()=>{c.forEach(f=>f())})},{flush:"post"})}function gE(){const e=rl(!1),t=ma();return t&&wt(()=>{e.value=!0},t),e}function bE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function _E(...e){let t,n,a={};e.length===3?(t=e[0],n=e[1],a=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],a=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=kf,eventName:l="keydown",passive:o=!1,dedupe:i=!1}=a,u=bE(t);return Ql(r,l,c=>{c.repeat&&cn(i)||u(c)&&n(c)},o)}function xE(e){return JSON.parse(JSON.stringify(e))}function qt(e,t,n,a={}){var r,l;const{clone:o=!1,passive:i=!1,eventName:u,deep:d=!1,defaultValue:c,shouldEmit:f}=a,m=ma(),v=n||m?.emit||(m==null||(r=m.$emit)===null||r===void 0?void 0:r.bind(m))||(m==null||(l=m.proxy)===null||l===void 0||(l=l.$emit)===null||l===void 0?void 0:l.bind(m?.proxy));let h=u;t||(t="modelValue"),h=h||`update:${t.toString()}`;const w=D=>o?typeof o=="function"?o(D):xE(D):D,S=()=>iE(e[t])?w(e[t]):c,_=D=>{f?f(D)&&v(h,D):v(h,D)};if(i){const D=T(S());let B=!1;return Fe(()=>e[t],O=>{B||(B=!0,D.value=w(O),We(()=>B=!1))}),Fe(D,O=>{!B&&(O!==e[t]||d)&&_(O)},{deep:d}),D}else return b({get(){return S()},set(D){_(D)}})}function wf(e){return e?e.flatMap(t=>t.type===pe?wf(t.children):[t]):[]}const kE=["INPUT","TEXTAREA"];function nm(e,t,n,a={}){if(!t||a.enableIgnoredElement&&kE.includes(t.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:l="[data-reka-collection-item]",itemsArray:o=[],loop:i=!0,dir:u="ltr",preventScroll:d=!0,focus:c=!1}=a,[f,m,v,h,w,S]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],_=v||h,D=f||m;if(!w&&!S&&(!_&&!D||r==="vertical"&&D||r==="horizontal"&&_))return null;const B=n?Array.from(n.querySelectorAll(l)):o;if(!B.length)return null;d&&e.preventDefault();let O=null;return D||_?O=mb(B,t,{goForward:_?h:u==="ltr"?f:m,loop:i}):w?O=B.at(0)||null:S&&(O=B.at(-1)||null),c&&O?.focus(),O}function mb(e,t,n,a=e.includes(t)?e.length:e.length+1){if(--a===0)return null;const r=e.indexOf(t);let l;if(r===-1?l=n.goForward?0:e.length-1:l=n.goForward?r+1:r-1,!n.loop&&(l<0||l>=e.length))return null;const o=(l+e.length)%e.length,i=e[o];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?mb(e,i,n,a):i:null}const[yu]=Dt("ConfigProvider");function dc(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function bd(e,t,n=".",a){if(!dc(t))return bd(e,{},n,a);const r={...t};for(const l of Object.keys(e)){if(l==="__proto__"||l==="constructor")continue;const o=e[l];o!=null&&(a&&a(r,l,o,n)||(Array.isArray(o)&&Array.isArray(r[l])?r[l]=[...o,...r[l]]:dc(o)&&dc(r[l])?r[l]=bd(o,r[l],(n?`${n}.`:"")+l.toString(),a):r[l]=o))}return r}function wE(e){return(...t)=>t.reduce((n,a)=>bd(n,a,"",e),{})}const hb=wE(),$E=vb(()=>{const e=T(new Map),t=T(),n=b(()=>{for(const o of e.value.values())if(o)return!0;return!1}),a=yu({scrollBody:T(!0)});let r=null;const l=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",tm&&r?.(),t.value=void 0};return Fe(n,(o,i)=>{if(!za)return;if(!o){i&&l();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},c=a.scrollBody?.value?typeof a.scrollBody.value=="object"?hb({padding:a.scrollBody.value.padding===!0?u:a.scrollBody.value.padding,margin:a.scrollBody.value.margin===!0?u:a.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),tm&&(r=Ql(document,"touchmove",f=>CE(f),{passive:!1})),We(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function $f(e){const t=Math.random().toString(36).substring(2,7),n=$E();n.value.set(t,e??!1);const a=b({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return hE(()=>{n.value.delete(t)}),a}function yb(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function zl(e,t){return e-t*Math.floor(e/t)}const gb=1721426;function Gr(e,t,n,a){t=Cs(e,t);let r=t-1,l=-2;return n<=2?l=0:sr(t)&&(l=-1),gb-1+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*n-362)/12+l+a)}function sr(e){return e%4===0&&(e%100!==0||e%400===0)}function Cs(e,t){return e==="BC"?1-t:t}function gu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const SE={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Gn{fromJulianDay(t){let n=t,a=n-gb,r=Math.floor(a/146097),l=zl(a,146097),o=Math.floor(l/36524),i=zl(l,36524),u=Math.floor(i/1461),d=zl(i,1461),c=Math.floor(d/365),f=r*400+o*100+u*4+c+(o!==4&&c!==4?1:0),[m,v]=gu(f),h=n-Gr(m,v,1,1),w=2;n0&&t===Yn()&&!xb())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:a,day:r,hour:l,minute:o,second:i}=wb(e,t);return kb(n,a,r,l,o,i,0)-Math.floor(e/1e3)*1e3}const sm=new Map;function wb(e,t){let n=sm.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),sm.set(t,n));let a=n.formatToParts(new Date(e)),r={};for(let l of a)l.type!=="literal"&&(r[l.type]=l.value);return{year:r.era==="BC"||r.era==="B"?-r.year+1:+r.year,month:+r.month,day:+r.day,hour:r.hour==="24"?0:+r.hour,minute:+r.minute,second:+r.second}}const im=864e5;function IE(e,t,n,a){return(n===a?[n]:[n,a]).filter(l=>RE(e,t,l))}function RE(e,t,n){let a=wb(n,t);return e.year===a.year&&e.month===a.month&&e.day===a.day&&e.hour===a.hour&&e.minute===a.minute&&e.second===a.second}function Ea(e,t,n="compatible"){let a=fa(e);if(t==="UTC")return eo(a);if(t===Yn()&&n==="compatible"&&!xb()){a=pn(a,new Gn);let u=new Date,d=Cs(a.era,a.year);return u.setFullYear(d,a.month-1,a.day),u.setHours(a.hour,a.minute,a.second,a.millisecond),u.getTime()}let r=eo(a),l=xd(r-im,t),o=xd(r+im,t),i=IE(a,t,r-l,r-o);if(i.length===1)return i[0];if(i.length>1)switch(n){case"compatible":case"earlier":return i[0];case"later":return i[i.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(r-l,r-o);case"compatible":case"later":return Math.max(r-l,r-o);case"reject":throw new RangeError("No such absolute time found")}}function $b(e,t,n="compatible"){return new Date(Ea(e,t,n))}function Aa(e,t){let n=xd(e,t),a=new Date(e+n),r=a.getUTCFullYear(),l=a.getUTCMonth()+1,o=a.getUTCDate(),i=a.getUTCHours(),u=a.getUTCMinutes(),d=a.getUTCSeconds(),c=a.getUTCMilliseconds();return new La(r<1?"BC":"AD",r<1?-r+1:r,l,o,t,n,i,u,d,c)}function qE(e){return new bt(e.calendar,e.era,e.year,e.month,e.day)}function fa(e,t){let n=0,a=0,r=0,l=0;if("timeZone"in e)({hour:n,minute:a,second:r,millisecond:l}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:r,millisecond:l}=t),new hr(e.calendar,e.era,e.year,e.month,e.day,n,a,r,l)}function pn(e,t){if(Sf(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),a=e.copy();return a.calendar=t,a.era=n.era,a.year=n.year,a.month=n.month,a.day=n.day,el(a),a}function Ef(e,t,n){if(e instanceof La)return e.timeZone===t?e:_u(e,t);let a=Ea(e,t,n);return Aa(a,t)}function LE(e){let t=eo(e)-e.offset;return new Date(t)}function _u(e,t){let n=eo(e)-e.offset;return pn(Aa(n,t),e.calendar)}const ko=36e5;function xu(e,t){let n=e.copy(),a="hour"in n?Ab(n,t):0;kd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,wd(n),Cb(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=a,NE(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let r=n.calendar.getYearsInEra(n);if(n.year>r){let o=n.calendar.isInverseEra?.(n);n.year=r,n.month=o?1:n.calendar.getMonthsInYear(n),n.day=o?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function kd(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function wd(e){for(;e.month<1;)kd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,kd(e,1)}function NE(e){for(;e.day<1;)e.month--,wd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,wd(e)}function Cb(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function el(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Cb(e)}function Af(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Sb(e,t){return xu(e,Af(t))}function Tf(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),el(n),n}function ss(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Eb(n),n}function BE(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=zs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=zs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=zs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=zs(e.hour,24),t}function Eb(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function zs(e,t){let n=e%t;return n<0&&(n+=t),n}function Ab(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,BE(e)}function Tb(e,t){let n=e.copy();return Ab(n,t),n}function FE(e,t){return Tb(e,Af(t))}function Df(e,t,n,a){let r=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),o=l.indexOf(e.era);if(o<0)throw new Error("Invalid era: "+e.era);o=Ta(o,n,0,l.length-1,a?.round),r.era=l[o],el(r);break}case"year":r.calendar.isInverseEra?.(r)&&(n=-n),r.year=Ta(e.year,n,-1/0,9999,a?.round),r.year===-1/0&&(r.year=1),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e);break;case"month":r.month=Ta(e.month,n,1,e.calendar.getMonthsInYear(e),a?.round);break;case"day":r.day=Ta(e.day,n,1,e.calendar.getDaysInMonth(e),a?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(r),el(r),r}function Of(e,t,n,a){let r=e.copy();switch(t){case"hour":{let l=e.hour,o=0,i=23;if(a?.hourCycle===12){let u=l>=12;o=u?12:0,i=u?23:11}r.hour=Ta(l,n,o,i,a?.round);break}case"minute":r.minute=Ta(e.minute,n,0,59,a?.round);break;case"second":r.second=Ta(e.second,n,0,59,a?.round);break;case"millisecond":r.millisecond=Ta(e.millisecond,n,0,999,a?.round);break;default:throw new Error("Unsupported field "+t)}return r}function Ta(e,t,n,a,r=!1){if(r){e+=Math.sign(t),e0?e=Math.ceil(e/l)*l:e=Math.floor(e/l)*l,e>a&&(e=n)}else e+=t,ea&&(e=n+(e-a-1));return e}function Db(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let r=xu(fa(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ea(r,e.timeZone)}else n=eo(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let a=Aa(n,e.timeZone);return pn(a,e.calendar)}function VE(e,t){return Db(e,Af(t))}function zE(e,t,n,a){switch(t){case"hour":{let r=0,l=23;if(a?.hourCycle===12){let h=e.hour>=12;r=h?12:0,l=h?23:11}let o=fa(e),i=pn(ss(o,{hour:r}),new Gn),u=[Ea(i,e.timeZone,"earlier"),Ea(i,e.timeZone,"later")].filter(h=>Aa(h,e.timeZone).day===i.day)[0],d=pn(ss(o,{hour:l}),new Gn),c=[Ea(d,e.timeZone,"earlier"),Ea(d,e.timeZone,"later")].filter(h=>Aa(h,e.timeZone).day===d.day).pop(),f=eo(e)-e.offset,m=Math.floor(f/ko),v=f%ko;return f=Ta(m,n,Math.floor(u/ko),Math.floor(c/ko),a?.round)*ko+v,pn(Aa(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Of(e,t,n,a);case"era":case"year":case"month":case"day":{let r=Df(fa(e),t,n,a),l=Ea(r,e.timeZone);return pn(Aa(l,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function jE(e,t,n){let a=fa(e),r=ss(Tf(a,t),t);if(r.compare(a)===0)return e;let l=Ea(r,e.timeZone,n);return pn(Aa(l,e.timeZone),e.calendar)}const UE=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,HE=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Ob=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function KE(e){let t=e.match(UE);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new sa(en(t[1],0,23),t[2]?en(t[2],0,59):0,t[3]?en(t[3],0,59):0,t[4]?en(t[4],0,1/0)*1e3:0)}function Mb(e){let t=e.match(HE);if(!t)throw Ob.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new bt(en(t[1],0,9999),en(t[2],1,12),1);return n.day=en(t[3],1,n.calendar.getDaysInMonth(n)),n}function um(e,t){let n=e.match(Ob);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let a=en(n[1],-9999,9999),r=a<1?"BC":"AD",l=new La(r,a<1?-a+1:a,en(n[2],1,12),1,t,0,n[4]?en(n[4],0,23):0,n[5]?en(n[5],0,59):0,n[6]?en(n[6],0,59):0,n[7]?en(n[7],0,1/0)*1e3:0);return l.day=en(n[3],0,l.calendar.getDaysInMonth(l)),n[8]&&(l.offset=en(n[8],-23,23)*36e5+en(n[9]??"0",0,59)*6e4),_u(l,t)}function en(e,t,n){let a=Number(e);if(an)throw new RangeError(`Value out of range: ${t} <= ${a} <= ${n}`);return a}function Pb(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Ib(e){let t=pn(e,new Gn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Rb(e){return`${Ib(e)}T${Pb(e)}`}function WE(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4),r=Math.floor(e%36e5%6e4/1e3),l=`${t}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`;return r!==0&&(l+=`:${String(r).padStart(2,"0")}`),l}function GE(e){return`${Rb(e)}${WE(e.offset)}[${e.timeZone}]`}function Mf(e){let t=typeof e[0]=="object"?e.shift():new Gn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let a=e.shift(),r=e.shift(),l=e.shift();return[t,n,a,r,l]}class bt{#e;constructor(...t){let[n,a,r,l,o]=Mf(t);this.calendar=n,this.era=a,this.year=r,this.month=l,this.day=o,el(this)}copy(){return this.era?new bt(this.calendar,this.era,this.year,this.month,this.day):new bt(this.calendar,this.year,this.month,this.day)}add(t){return xu(this,t)}subtract(t){return Sb(this,t)}set(t){return Tf(this,t)}cycle(t,n,a){return Df(this,t,n,a)}toDate(t){return $b(this,t)}toString(){return Ib(this)}compare(t){return bb(this,t)}}class sa{#e;constructor(t=0,n=0,a=0,r=0){this.hour=t,this.minute=n,this.second=a,this.millisecond=r,Eb(this)}copy(){return new sa(this.hour,this.minute,this.second,this.millisecond)}add(t){return Tb(this,t)}subtract(t){return FE(this,t)}set(t){return ss(this,t)}cycle(t,n,a){return Of(this,t,n,a)}toString(){return Pb(this)}compare(t){return _b(this,t)}}class hr{#e;constructor(...t){let[n,a,r,l,o]=Mf(t);this.calendar=n,this.era=a,this.year=r,this.month=l,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,el(this)}copy(){return this.era?new hr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new hr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return xu(this,t)}subtract(t){return Sb(this,t)}set(t){return Tf(ss(this,t),t)}cycle(t,n,a){switch(t){case"era":case"year":case"month":case"day":return Df(this,t,n,a);default:return Of(this,t,n,a)}}toDate(t,n){return $b(this,t,n)}toString(){return Rb(this)}compare(t){let n=bb(this,t);return n===0?_b(this,fa(t)):n}}class La{#e;constructor(...t){let[n,a,r,l,o]=Mf(t),i=t.shift(),u=t.shift();this.calendar=n,this.era=a,this.year=r,this.month=l,this.day=o,this.timeZone=i,this.offset=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,el(this)}copy(){return this.era?new La(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new La(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Db(this,t)}subtract(t){return VE(this,t)}set(t,n){return jE(this,t,n)}cycle(t,n,a){return zE(this,t,n,a)}toDate(){return LE(this)}toString(){return GE(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Ef(t,this.timeZone).toDate().getTime()}}const Ul=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],YE=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ui=[1867,1911,1925,1988,2018],lr=["meiji","taisho","showa","heisei","reiwa"];function cm(e){const t=Ul.findIndex(([n,a,r])=>e.year=0){let[,r,l]=Ul[n];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(l,t.day))}}getEras(){return lr}getYearsInEra(t){let n=lr.indexOf(t.era),a=Ul[n],r=Ul[n+1];if(r==null)return 9999-a[0]+1;let l=r[0]-a[0];return(t.month0?["minguo",t]:["before_minguo",1-t]}class XE extends Gn{fromJulianDay(t){let n=super.fromJulianDay(t),a=Cs(n.era,n.year),[r,l]=pm(a);return new bt(this,r,l,n.month,n.day)}toJulianDay(t){return super.toJulianDay(vm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,a]=pm(Lb(t));t.era=n,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(vm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ri}constructor(...t){super(...t),this.identifier="roc"}}function vm(e){let[t,n]=gu(Lb(e));return new bt(t,n,e.month,e.day)}const mm=1948320,hm=[0,31,62,93,124,155,186,216,246,276,306,336];class QE{fromJulianDay(t){let n=t-mm,a=1+Math.floor((33*n+3)/12053),r=365*(a-1)+Math.floor((8*a+21)/33),l=n-r,o=l<216?Math.floor(l/31):Math.floor((l-6)/30),i=l-hm[o]+1;return new bt(this,a,o+1,i)}toJulianDay(t){let n=mm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=hm[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||zl(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const mc=78,ym=80;class eA extends Gn{fromJulianDay(t){let n=super.fromJulianDay(t),a=n.year-mc,r=t-Gr(n.era,n.year,1,1),l;r=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&sr(t.year+mc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const qi=1948440,gm=1948439,Tn=1300,_l=1600,tA=460322;function Li(e,t,n,a){return a+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Nb(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),r=Math.min(12,Math.ceil((n-(29+Li(t,a,1,1)))/29.5)+1),l=n-Li(t,a,r,1)+1;return new bt(e,a,r,l)}function bm(e){return(14+11*e)%30<11}class Pf{fromJulianDay(t){return Nb(this,qi,t)}toJulianDay(t){return Li(qi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&bm(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return bm(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class nA extends Pf{fromJulianDay(t){return Nb(this,gm,t)}toJulianDay(t){return Li(gm,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const aA="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let $d,Hl;function ci(e){return tA+Hl[e-Tn]}function Ro(e,t){let n=e-Tn,a=1<<11-(t-1);return($d[n]&a)===0?29:30}function _m(e,t){let n=ci(e);for(let a=1;at.charCodeAt(0)).buffer)),!Hl){Hl=new Uint32Array(_l-Tn+1);let t=0;for(let n=Tn;n<=_l;n++){Hl[n-Tn]=t;for(let a=1;a<=12;a++)t+=Ro(n,a)}}}fromJulianDay(t){let n=t-qi,a=ci(Tn),r=ci(_l);if(nr)return super.fromJulianDay(t);{let l=Tn-1,o=1,i=1;for(;i>0;){l++,i=n-ci(l)+1;let u=xm(l);if(i===u){o=12;break}else if(id;)i-=d,o++,d=Ro(l,o);break}}return new bt(this,l,o,n-_m(l,o)+1)}}toJulianDay(t){return t.year_l?super.toJulianDay(t):qi+_m(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year_l?super.getDaysInMonth(t):Ro(t.year,t.month)}getDaysInYear(t){return t.year_l?super.getDaysInYear(t):xm(t.year)}}const km=347997,Bb=1080,Fb=24*Bb,lA=29,oA=12*Bb+793,sA=lA*Fb+oA;function Wr(e){return zl(e*7+1,19)<7}function di(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=t*29+Math.floor(n/25920);return zl(3*(a+1),7)<3&&(a+=1),a}function iA(e){let t=di(e-1),n=di(e);return di(e+1)-n===356?2:n-t===382?1:0}function Go(e){return di(e)+iA(e)}function Vb(e){return Go(e+1)-Go(e)}function uA(e){let t=Vb(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function js(e,t){if(t>=6&&!Wr(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=uA(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Wr(e)?30:0:30}class cA{fromJulianDay(t){let n=t-km,a=n*Fb/sA,r=Math.floor((19*a+234)/235)+1,l=Go(r),o=Math.floor(n-l);for(;o<1;)r--,l=Go(r),o=Math.floor(n-l);let i=1,u=0;for(;u6?t.month--:!Wr(n.year)&&Wr(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Cd=1723856,wm=1824665,Sd=5500;function Yo(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function If(e,t){let n=Math.floor(4*(t-e)/1461);t>=Yo(e,n+1,1,1)&&n++;let a=1+Math.floor((t-Yo(e,n,1,1))/30),r=t+1-Yo(e,n,a,1);return[n,a,r]}function zb(e){return Math.floor(e%4/3)}function jb(e,t){return t%13!==0?30:zb(e)+5}class Rf{fromJulianDay(t){let[n,a,r]=If(Cd,t),l="AM";return n<=0&&(l="AA",n+=Sd),new bt(this,l,n,a,r)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Sd),Yo(Cd,n,t.month,t.day)}getDaysInMonth(t){return jb(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+zb(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class dA extends Rf{fromJulianDay(t){let[n,a,r]=If(Cd,t);return n+=Sd,new bt(this,"AA",n,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class fA extends Rf{fromJulianDay(t){let[n,a,r]=If(wm,t),l="CE";return n<=0&&(l="BCE",n=1-n),new bt(this,l,n,a,r)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Yo(wm,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),jb(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function pA(e){switch(e){case"buddhist":return new ZE;case"ethiopic":return new Rf;case"ethioaa":return new dA;case"coptic":return new fA;case"hebrew":return new cA;case"indian":return new eA;case"islamic-civil":return new Pf;case"islamic-tbla":return new nA;case"islamic-umalqura":return new rA;case"japanese":return new JE;case"persian":return new QE;case"roc":return new XE;default:return new Gn}}let hc=new Map;class Ln{constructor(t,n={}){this.formatter=Ub(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n= start date");let a=this.formatter.formatToParts(t),r=this.formatter.formatToParts(n);return[...a.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return hA()&&(this.resolvedHourCycle||(this.resolvedHourCycle=yA(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const vA={true:{ja:"h11"},false:{}};function Ub(e,t={}){if(typeof t.hour12=="boolean"&&mA()){t={...t};let r=vA[String(t.hour12)][e.split("-")[0]],l=t.hour12?"h12":"h23";t.hourCycle=r??l,delete t.hour12}let n=e+(t?Object.entries(t).sort((r,l)=>r[0]l.type==="hour").value,10),r=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(l=>l.type==="hour").value,10);if(a===0&&r===23)return"h23";if(a===24&&r===23)return"h24";if(a===0&&r===11)return"h11";if(a===12&&r===11)return"h12";throw new Error("Unexpected hour cycle result")}function Dn(e,t=Yn()){return is(e)?e.toDate():e.toDate(t)}function gA(e){return e instanceof hr}function is(e){return e instanceof La}function Ed(e){return gA(e)||is(e)}function dr(e){if(e instanceof Date){const t=e.getFullYear(),n=e.getMonth()+1;return new Date(t,n,0).getDate()}else return e.set({day:100}).day}function ir(e,t){return e.compare(t)<0}function bc(e,t){return e.compare(t)>0}function bA(e,t,n){const a=bu(e,n,"sun");return t>a?e.subtract({days:a+7-t}):t===a?e:e.subtract({days:a-t})}function _A(e,t,n){const a=bu(e,n,"sun"),r=t===0?6:t-1;return a===r?e:a>r?e.add({days:7-a+r}):e.add({days:r-a})}function qf(e){const{defaultValue:t,defaultPlaceholder:n,granularity:a="day",locale:r="en"}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(n)return n.copy();const l=new Date,o=l.getFullYear(),i=l.getMonth()+1,u=l.getDate(),d=["hour","minute","second"],c=new Ln(r),f=pA(c.resolvedOptions().calendar);return d.includes(a??"day")?pn(new hr(o,i,u,0,0,0),f):pn(new bt(o,i,u),f)}function xA(e){const{defaultValue:t,defaultPlaceholder:n}=e;return t?t.copy():n?n.copy():new sa(0,0,0)}function kA(e,t){const n=[];for(let a=0;at.set({day:_+1})),i=_d(t),u=lm(t),d=bA(i,n,r),c=_A(u,n,r),f=$m(d.subtract({days:1}),i),m=$m(u,c.add({days:1})),v=f.length+o.length+m.length;if(a&&v<42){const S=42-v;let _=m.at(-1);_||(_=lm(t));const D=Array.from({length:S},(B,O)=>{const A=O+1;return _.add({days:A})});m.push(...D)}const h=f.concat(o,m),w=kA(h,7);return{value:t,cells:h,rows:w}}function Vr(e){const{numberOfMonths:t,dateObj:n,...a}=e,r=[];if(!t||t===1)return r.push(xc({...a,dateObj:n})),r;r.push(xc({...a,dateObj:n}));for(let l=1;l({label:u(Dn(S.set({month:D}))),value:D}))}function c(S,_={}){return new Ln(n.value,{...t,year:"numeric",..._}).format(S)}function f(S,_){return is(S)?new Ln(n.value,{...t,..._,timeZone:S.timeZone}).formatToParts(Dn(S)):new Ln(n.value,{...t,..._}).formatToParts(Dn(S))}function m(S,_="narrow"){return new Ln(n.value,{...t,weekday:_}).format(S)}function v(S){const D=new Ln(n.value,{...t,hour:"numeric",minute:"numeric"}).formatToParts(S).find(B=>B.type==="dayPeriod")?.value;return D==="PM"||D==="pm"||D==="p.m."?"PM":"AM"}const h={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function w(S,_,D={}){const B={...h,...D},A=f(S,B).find(I=>I.type===_);return A?A.value:""}return{setLocale:r,getLocale:a,fullMonth:u,fullYear:c,fullMonthAndYear:i,toParts:f,custom:l,part:w,dayPeriod:v,selectedDate:o,dayOfWeek:m,getMonths:d}}function ha(e){const t=yu({dir:T("ltr")});return b(()=>e?.value||t.dir?.value||"ltr")}function il(e){const t=ma(),n=t?.type.emits,a={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(r=>{a[No(Zt(r))]=(...l)=>e(r,...l)}),a}let kc=0;function Yb(){$n(e=>{if(!za)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Cm()),document.body.insertAdjacentElement("beforeend",t[1]??Cm()),kc++,e(()=>{kc===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),kc--})})}function Cm(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Nf(e){return b(()=>cn(e)?!!sl(e)?.closest("form"):!0)}function Ze(){const e=ma(),t=T(),n=b(()=>a());Qd(()=>{n.value!==a()&&G_(t)});function a(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:sl(t)}const r=Object.assign({},e.exposed),l={};for(const i in e.props)Object.defineProperty(l,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(l,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(l,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=l;function o(i){if(t.value=i,!!i&&(Object.defineProperty(l,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),!(i instanceof Element)&&!Object.hasOwn(i,"$el"))){const u=i.$.exposed,d=Object.assign({},l);for(const c in u)Object.defineProperty(d,c,{enumerable:!0,configurable:!0,get:()=>u[c]});e.exposed=d}}return{forwardRef:o,currentRef:t,currentElement:n}}function ku(e){const t=ma(),n=Object.keys(t?.type.props??{}).reduce((r,l)=>{const o=(t?.type.props[l]).default;return o!==void 0&&(r[l]=o),r},{}),a=ex(e);return b(()=>{const r={},l=t?.vnode.props??{};return Object.keys(l).forEach(o=>{r[Zt(o)]=l[o]}),Object.keys({...n,...r}).reduce((o,i)=>(a.value[i]!==void 0&&(o[i]=a.value[i]),o),{})})}function ya(e,t){const n=ku(e),a=t?il(t):{};return b(()=>({...n.value,...a}))}var CA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xl=new WeakMap,Us=new WeakMap,Hs={},wc=0,Jb=function(e){return e&&(e.host||Jb(e.parentNode))},SA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Jb(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EA=function(e,t,n,a){var r=SA(t,Array.isArray(e)?e:[e]);Hs[n]||(Hs[n]=new WeakMap);var l=Hs[n],o=[],i=new Set,u=new Set(r),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};r.forEach(d);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(i.has(m))c(m);else try{var v=m.getAttribute(a),h=v!==null&&v!=="false",w=(xl.get(m)||0)+1,S=(l.get(m)||0)+1;xl.set(m,w),l.set(m,S),o.push(m),w===1&&h&&Us.set(m,!0),S===1&&m.setAttribute(n,"true"),h||m.setAttribute(a,"true")}catch(_){console.error("aria-hidden: cannot operate on ",m,_)}})};return c(t),i.clear(),wc++,function(){o.forEach(function(f){var m=xl.get(f)-1,v=l.get(f)-1;xl.set(f,m),l.set(f,v),m||(Us.has(f)||f.removeAttribute(a),Us.delete(f)),v||f.removeAttribute(n)}),wc--,wc||(xl=new WeakMap,xl=new WeakMap,Us=new WeakMap,Hs={})}},AA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=CA(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),EA(a,r,n,"aria-hidden")):function(){return null}};function Bf(e){let t;Fe(()=>sl(e),n=>{let a=!1;try{a=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!a?t=AA(n):t&&t()}),Va(()=>{t&&t()})}function Na(e,t="reka"){let n;const a=yu({useId:void 0});return a.useId?n=a.useId():n=Ay?.(),t?`${t}-${n}`:n}function ro(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}function wu(e){const t=yu({locale:T("en")});return b(()=>e?.value||t.locale?.value||"en")}function TA(e){const t=T(),n=b(()=>t.value?.width??0),a=b(()=>t.value?.height??0);return wt(()=>{const r=sl(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let u,d;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;u=f.inlineSize,d=f.blockSize}else u=r.offsetWidth,d=r.offsetHeight;t.value={width:u,height:d}});return l.observe(r,{box:"border-box"}),()=>l.unobserve(r)}else t.value=void 0}),{width:n,height:a}}function DA(e,t){const n=T(e);function a(l){return t[n.value][l]??n.value}return{state:n,dispatch:l=>{n.value=a(l)}}}function OA(e){const t=mE("",1e3);return{search:t,handleTypeaheadSearch:(r,l)=>{t.value=t.value+r;{const o=Gt(),i=l.map(m=>({...m,textValue:m.value?.textValue??m.ref.textContent?.trim()??""})),u=i.find(m=>m.ref===o),d=i.map(m=>m.textValue),c=PA(d,t.value,u?.textValue),f=i.find(m=>m.textValue===c);return f&&f.ref.focus(),f?.ref}},resetTypeahead:()=>{t.value=""}}}function MA(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function PA(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let o=MA(e,Math.max(l,0));r.length===1&&(o=o.filter(d=>d!==n));const u=o.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function IA(e,t){const n=T({}),a=T("none"),r=T(e),l=e.value?"mounted":"unmounted";let o;const i=t.value?.ownerDocument.defaultView??kf,{state:u,dispatch:d}=DA(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=S=>{if(za){const _=new CustomEvent(S,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(_)}};Fe(e,async(S,_)=>{const D=_!==S;if(await We(),D){const B=a.value,O=Ks(t.value);S?(d("MOUNT"),c("enter"),O==="none"&&c("after-enter")):O==="none"||O==="undefined"||n.value?.display==="none"?(d("UNMOUNT"),c("leave"),c("after-leave")):_&&B!==O?(d("ANIMATION_OUT"),c("leave")):(d("UNMOUNT"),c("after-leave"))}},{immediate:!0});const f=S=>{const _=Ks(t.value),D=_.includes(CSS.escape(S.animationName)),B=u.value==="mounted"?"enter":"leave";if(S.target===t.value&&D&&(c(`after-${B}`),d("ANIMATION_END"),!r.value)){const O=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=i?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=O)})}S.target===t.value&&_==="none"&&d("ANIMATION_END")},m=S=>{S.target===t.value&&(a.value=Ks(t.value))},v=Fe(t,(S,_)=>{S?(n.value=getComputedStyle(S),S.addEventListener("animationstart",m),S.addEventListener("animationcancel",f),S.addEventListener("animationend",f)):(d("ANIMATION_END"),o!==void 0&&i?.clearTimeout(o),_?.removeEventListener("animationstart",m),_?.removeEventListener("animationcancel",f),_?.removeEventListener("animationend",f))},{immediate:!0}),h=Fe(u,()=>{const S=Ks(t.value);a.value=u.value==="mounted"?S:"none"});return Va(()=>{v(),h()}),{isPresent:b(()=>["mounted","unmountSuspended"].includes(u.value))}}function Ks(e){return e&&getComputedStyle(e).animationName||"none"}var ul=ae({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:a,forceMount:r}=Ht(e),l=T(),{isPresent:o}=IA(a,l);n({present:o});let i=t.default({present:o.value});i=wf(i||[]);const u=ma();if(i&&i?.length>1){const d=u?.parent?.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(c=>` - ${c}`).join(` +`)].join(` +`))}return()=>r.value||a.value||o.value?Mn(t.default({present:o.value})[0],{ref:d=>{const c=sl(d);return typeof c?.hasAttribute>"u"||(c?.hasAttribute("data-reka-popper-content-wrapper")?l.value=c.firstElementChild:l.value=c),c}}):null}});const Ad=ae({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const a=wf(n.default()),r=a.findIndex(u=>u.type!==jn);if(r===-1)return a;const l=a[r];delete l.props?.ref;const o=l.props?je(t,l.props):t,i=fr({...l,props:{}},o);return a.length===1?i:(a[r]=i,a)}}}),RA=["area","img","input"],Qe=ae({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const a=e.asChild?"template":e.as;return typeof a=="string"&&RA.includes(a)?()=>Mn(a,t):a!=="template"?()=>Mn(e.as,t,{default:n.default}):()=>Mn(Ad,t,{default:n.default})}});function tl(){const e=T(),t=b(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:sl(e));return{primitiveElement:e,currentElement:t}}const[ja,qA]=Dt("DialogRoot");var LA=ae({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=qt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=T(),o=T(),{modal:i}=Ht(n);return qA({open:r,modal:i,openModal:()=>{r.value=!0},onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:l,contentElement:o}),(u,d)=>ke(u.$slots,"default",{open:s(r),close:()=>r.value=!1})}}),Ar=LA,NA=ae({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ze();const n=ja();return(a,r)=>(p(),j(s(Qe),je(t,{type:a.as==="button"?"button":void 0,onClick:r[0]||(r[0]=l=>s(n).onOpenChange(!1))}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["type"]))}}),yr=NA;const BA="dismissableLayer.pointerDownOutside",FA="dismissableLayer.focusOutside";function Zb(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),a=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(a===n||r.indexOf(a){});return $n(o=>{if(!za||!cn(n))return;const i=async d=>{const c=d.target;if(!(!t?.value||!c)){if(Zb(t.value,c)){r.value=!1;return}if(d.target&&!r.value){let m=function(){_f(BA,e,f)};const f={originalEvent:d};d.pointerType==="touch"?(a.removeEventListener("click",l.value),l.value=m,a.addEventListener("click",l.value,{once:!0})):m()}else a.removeEventListener("click",l.value);r.value=!1}},u=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);o(()=>{window.clearTimeout(u),a.removeEventListener("pointerdown",i),a.removeEventListener("click",l.value)})}),{onPointerDownCapture:()=>{cn(n)&&(r.value=!0)}}}function zA(e,t,n=!0){const a=t?.value?.ownerDocument??globalThis?.document,r=T(!1);return $n(l=>{if(!za||!cn(n))return;const o=async i=>{if(!t?.value)return;await We(),await We();const u=i.target;!t.value||!u||Zb(t.value,u)||i.target&&!r.value&&_f(FA,e,{originalEvent:i})};a.addEventListener("focusin",o),l(()=>a.removeEventListener("focusin",o))}),{onFocusCapture:()=>{cn(n)&&(r.value=!0)},onBlurCapture:()=>{cn(n)&&(r.value=!1)}}}const yn=Fn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var jA=ae({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=Ze(),o=b(()=>l.value?.ownerDocument??globalThis.document),i=b(()=>yn.layersRoot),u=b(()=>l.value?Array.from(i.value).indexOf(l.value):-1),d=b(()=>yn.layersWithOutsidePointerEventsDisabled.size>0),c=b(()=>{const v=Array.from(i.value),[h]=[...yn.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(h);return u.value>=w}),f=VA(async v=>{const h=[...yn.branches].some(w=>w?.contains(v.target));!c.value||h||(a("pointerDownOutside",v),a("interactOutside",v),await We(),v.defaultPrevented||a("dismiss"))},l),m=zA(v=>{[...yn.branches].some(w=>w?.contains(v.target))||(a("focusOutside",v),a("interactOutside",v),v.defaultPrevented||a("dismiss"))},l);return _E("Escape",v=>{u.value===i.value.size-1&&(a("escapeKeyDown",v),v.defaultPrevented||a("dismiss"))}),Fe([l,()=>n.disableOutsidePointerEvents],([v,h],w,S)=>{v&&(h&&(yn.layersWithOutsidePointerEventsDisabled.size===0&&(yn.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),yn.layersWithOutsidePointerEventsDisabled.add(v),S(()=>{yn.layersWithOutsidePointerEventsDisabled.delete(v),yn.layersWithOutsidePointerEventsDisabled.size===0&&!xn(yn.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=yn.originalBodyPointerEvents)})),i.value.add(v))},{immediate:!0}),$n(v=>{v(()=>{l.value&&(i.value.delete(l.value),yn.layersWithOutsidePointerEventsDisabled.delete(l.value))})}),(v,h)=>(p(),j(s(Qe),{ref:s(r),"as-child":v.asChild,as:v.as,"data-dismissable-layer":"",style:un({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:s(m).onFocusCapture,onBlurCapture:s(m).onBlurCapture,onPointerdownCapture:s(f).onPointerDownCapture},{default:F(()=>[ke(v.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ff=jA;const UA=sE(()=>T([]));function HA(){const e=UA();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Sm(e.value,t),e.value.unshift(t)},remove(t){e.value=Sm(e.value,t),e.value[0]?.resume()}}}function Sm(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}const $c="focusScope.autoFocusOnMount",Cc="focusScope.autoFocusOnUnmount",Em={bubbles:!1,cancelable:!0};function KA(e,{select:t=!1}={}){const n=Gt();for(const a of e)if(nr(a,{select:t}),Gt()!==n)return!0}function WA(e){const t=Xb(e),n=Am(t,e),a=Am(t.reverse(),e);return[n,a]}function Xb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Am(e,t){for(const n of e)if(!GA(n,{upTo:t}))return n}function GA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function YA(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const n=Gt();e.focus({preventScroll:!0}),e!==n&&YA(e)&&t&&e.select()}}var JA=ae({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,a=t,{currentRef:r,currentElement:l}=Ze(),o=T(null),i=HA(),u=Fn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});$n(c=>{if(!za)return;const f=l.value;if(!n.trapped)return;function m(S){if(u.paused||!f)return;const _=S.target;f.contains(_)?o.value=_:nr(o.value,{select:!0})}function v(S){if(u.paused||!f)return;const _=S.relatedTarget;_!==null&&(f.contains(_)||nr(o.value,{select:!0}))}function h(S){const _=o.value;if(_===null||!S.some(O=>O.removedNodes.length>0))return;f.contains(_)||nr(f)}document.addEventListener("focusin",m),document.addEventListener("focusout",v);const w=new MutationObserver(h);f&&w.observe(f,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),w.disconnect()})}),$n(async c=>{const f=l.value;if(await We(),!f)return;i.add(u);const m=Gt();if(!f.contains(m)){const h=new CustomEvent($c,Em);f.addEventListener($c,w=>a("mountAutoFocus",w)),f.dispatchEvent(h),h.defaultPrevented||(KA(Xb(f),{select:!0}),Gt()===m&&nr(f))}c(()=>{f.removeEventListener($c,S=>a("mountAutoFocus",S));const h=new CustomEvent(Cc,Em),w=S=>{a("unmountAutoFocus",S)};f.addEventListener(Cc,w),f.dispatchEvent(h),f.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{h.defaultPrevented||nr(m??document.body,{select:!0}),f.removeEventListener(Cc,w),i.remove(u),f.removeAttribute("data-focus-scope-unmounting")},0)})});function d(c){if(!n.loop&&!n.trapped||u.paused)return;const f=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,m=Gt();if(f&&m){const v=c.currentTarget,[h,w]=WA(v);h&&w?!c.shiftKey&&m===w?(c.preventDefault(),n.loop&&nr(h,{select:!0})):c.shiftKey&&m===h&&(c.preventDefault(),n.loop&&nr(w,{select:!0})):m===v&&c.preventDefault()}}return(c,f)=>(p(),j(s(Qe),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:F(()=>[ke(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),Vf=JA;const ZA="menu.itemSelect",Td=["Enter"," "],XA=["ArrowDown","PageUp","Home"],Qb=["ArrowUp","PageDown","End"],QA=[...XA,...Qb];[...Td],[...Td];function e1(e){return e?"open":"closed"}function t1(e){return e==="indeterminate"}function n1(e){return t1(e)?"indeterminate":e?"checked":"unchecked"}function e4(e){const t=Gt();for(const n of e)if(n===t||(n.focus(),Gt()!==t))return}function t4(e,t){const{x:n,y:a}=e;let r=!1;for(let l=0,o=t.length-1;la!=c>a&&n<(d-i)*(a-u)/(c-u)+i&&(r=!r)}return r}function n4(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return t4(n,t)}function Ni(e){return e.pointerType==="mouse"}var a4=ae({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=ja(),{forwardRef:l,currentElement:o}=Ze();return r.titleId||=Na(void 0,"reka-dialog-title"),r.descriptionId||=Na(void 0,"reka-dialog-description"),wt(()=>{r.contentElement=o,Gt()!==document.body&&(r.triggerElement.value=Gt())}),(i,u)=>(p(),j(s(Vf),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>a("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>a("closeAutoFocus",d))},{default:F(()=>[N(s(Ff),je({id:s(r).contentId,ref:s(l),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":s(r).descriptionId,"aria-labelledby":s(r).titleId,"data-state":s(e1)(s(r).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=d=>s(r).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=d=>a("escapeKeyDown",d)),onFocusOutside:u[2]||(u[2]=d=>a("focusOutside",d)),onInteractOutside:u[3]||(u[3]=d=>a("interactOutside",d)),onPointerDownOutside:u[4]||(u[4]=d=>a("pointerDownOutside",d))}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),a1=a4,r4=ae({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=ja(),l=il(a),{forwardRef:o,currentElement:i}=Ze();return Bf(i),(u,d)=>(p(),j(a1,je({...n,...s(l)},{ref:s(o),"trap-focus":s(r).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:d[0]||(d[0]=c=>{c.defaultPrevented||(c.preventDefault(),s(r).triggerElement.value?.focus())}),onPointerDownOutside:d[1]||(d[1]=c=>{const f=c.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0;(f.button===2||m)&&c.preventDefault()}),onFocusOutside:d[2]||(d[2]=c=>{c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),l4=r4,o4=ae({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=il(t);Ze();const l=ja(),o=T(!1),i=T(!1);return(u,d)=>(p(),j(a1,je({...n,...s(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{c.defaultPrevented||(o.value||s(l).triggerElement.value?.focus(),c.preventDefault()),o.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=c=>{c.defaultPrevented||(o.value=!0,c.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const f=c.target;s(l).triggerElement.value?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&i.value&&c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16))}}),s4=o4,i4=ae({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=ja(),l=il(a),{forwardRef:o}=Ze();return(i,u)=>(p(),j(s(ul),{present:i.forceMount||s(r).open.value},{default:F(()=>[s(r).modal.value?(p(),j(l4,je({key:0,ref:s(o)},{...n,...s(l),...i.$attrs}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16)):(p(),j(s4,je({key:1,ref:s(o)},{...n,...s(l),...i.$attrs}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Tr=i4,u4=ae({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ze();const n=ja();return(a,r)=>(p(),j(s(Qe),je(t,{id:s(n).descriptionId}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["id"]))}}),gr=u4,c4=ae({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ja();return $f(!0),Ze(),(n,a)=>(p(),j(s(Qe),{as:n.as,"as-child":n.asChild,"data-state":s(t).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:a[0]||(a[0]=mt(()=>{},["left","self","prevent"]))},{default:F(()=>[ke(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),d4=c4,f4=ae({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ja(),{forwardRef:n}=Ze();return(a,r)=>s(t)?.modal.value?(p(),j(s(ul),{key:0,present:a.forceMount||s(t).open.value},{default:F(()=>[N(d4,je(a.$attrs,{ref:s(n),as:a.as,"as-child":a.asChild}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Z("v-if",!0)}}),Dr=f4,p4=ae({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=gE();return(n,a)=>s(t)||n.forceMount?(p(),j(mx,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[ke(n.$slots,"default")],8,["to","disabled","defer"])):Z("v-if",!0)}}),$u=p4,v4=ae({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s($u),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),cl=v4,m4=ae({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=ja();return Ze(),(a,r)=>(p(),j(s(Qe),je(t,{id:s(n).titleId}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["id"]))}}),Or=m4;const[h4,y4]=Dt("AlertDialogContent");var g4=ae({__name:"AlertDialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=il(t);Ze();const l=T();return y4({onCancelElementChange:o=>{l.value=o}}),(o,i)=>(p(),j(s(Tr),je({...n,...s(r)},{role:"alertdialog",onPointerDownOutside:i[0]||(i[0]=mt(()=>{},["prevent"])),onInteractOutside:i[1]||(i[1]=mt(()=>{},["prevent"])),onOpenAutoFocus:i[2]||(i[2]=()=>{We(()=>{l.value?.focus({preventScroll:!0})})})}),{default:F(()=>[ke(o.$slots,"default")]),_:3},16))}}),b4=g4,_4=ae({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=h4(),{forwardRef:a,currentElement:r}=Ze();return wt(()=>{n.onCancelElementChange(r.value)}),(l,o)=>(p(),j(s(yr),je(t,{ref:s(a)}),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),x4=_4,k4=ae({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return Ze(),(n,a)=>(p(),j(s(gr),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),w4=k4,$4=ae({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ze(),(n,a)=>(p(),j(s(Dr),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),C4=$4,S4=ae({__name:"AlertDialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s($u),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),E4=S4,A4=ae({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const r=ya(e,t);return Ze(),(l,o)=>(p(),j(s(Ar),je(s(r),{modal:!0}),{default:F(i=>[ke(l.$slots,"default",ot(ut(i)))]),_:3},16))}}),T4=A4,D4=ae({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return Ze(),(n,a)=>(p(),j(s(Or),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),O4=D4;const Tm="data-reka-collection-item";function zf(e={}){const{key:t="",isProvider:n=!1}=e,a=`${t}CollectionProvider`;let r;n?(r={collectionRef:T(),itemMap:T(new Map)},vt(a,r)):r=it(a);const l=(c=!1)=>{const f=r.collectionRef.value;if(!f)return[];const m=Array.from(f.querySelectorAll(`[${Tm}]`)),h=Array.from(r.itemMap.value.values()).sort((w,S)=>m.indexOf(w.ref)-m.indexOf(S.ref));return c?h:h.filter(w=>w.ref.dataset.disabled!=="")},o=ae({name:"CollectionSlot",inheritAttrs:!1,setup(c,{slots:f,attrs:m}){const{primitiveElement:v,currentElement:h}=tl();return Fe(h,()=>{r.collectionRef.value=h.value}),()=>Mn(Ad,{ref:v,...m},f)}}),i=ae({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(c,{slots:f,attrs:m}){const{primitiveElement:v,currentElement:h}=tl();return $n(w=>{if(h.value){const S=vi(h.value);r.itemMap.value.set(S,{ref:h.value,value:c.value}),w(()=>r.itemMap.value.delete(S))}}),()=>Mn(Ad,{...m,[Tm]:"",ref:v},f)}}),u=b(()=>Array.from(r.itemMap.value.values())),d=b(()=>r.itemMap.value.size);return{getItems:l,reactiveItems:u,itemMapSize:d,CollectionSlot:o,CollectionItem:i}}var M4=ae({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(p(),j(s(Qe),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:F(()=>[ke(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),jf=M4,P4=ae({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:n,currentElement:a}=tl(),r=b(()=>t.checked??t.value);return Fe(r,(l,o)=>{if(!a.value)return;const i=a.value,u=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(u,"value").set;if(c&&l!==o){const f=new Event("input",{bubbles:!0}),m=new Event("change",{bubbles:!0});c.call(i,l),i.dispatchEvent(f),i.dispatchEvent(m)}}),(l,o)=>(p(),j(jf,je({ref_key:"primitiveElement",ref:n},{...t,...l.$attrs},{as:"input"}),null,16))}}),Dm=P4,I4=ae({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,n=b(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),a=b(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((r,l)=>typeof r=="object"?Object.entries(r).map(([o,i])=>({name:`${t.name}[${l}][${o}]`,value:i})):{name:`${t.name}[${l}]`,value:r}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([r,l])=>({name:`${t.name}[${r}]`,value:l})):[]);return(r,l)=>(p(),g(pe,null,[Z(" We render single input if it's required "),n.value?(p(),j(Dm,je({key:r.name},{...t,...r.$attrs},{name:r.name,value:r.value}),null,16,["name","value"])):(p(!0),g(pe,{key:1},Me(a.value,o=>(p(),j(Dm,je({key:o.name},{ref_for:!0},{...t,...r.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),Uf=I4;const R4="rovingFocusGroup.onEntryFocus",q4={bubbles:!1,cancelable:!0},L4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function B4(e,t,n){const a=N4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return L4[a]}function r1(e,t=!1){const n=Gt();for(const a of e)if(a===n||(a.focus({preventScroll:t}),Gt()!==n))return}function F4(e,t){return e.map((n,a)=>e[(t+a)%e.length])}const[l1,V4]=Dt("PopperRoot");var z4=ae({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=T();return V4({anchor:t,onAnchorChange:n=>t.value=n}),(n,a)=>ke(n.$slots,"default")}}),o1=z4,j4=ae({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:a}=Ze(),r=l1();return $y(()=>{r.onAnchorChange(t.reference??a.value)}),(l,o)=>(p(),j(s(Qe),{ref:s(n),as:l.as,"as-child":l.asChild},{default:F(()=>[ke(l.$slots,"default")]),_:3},8,["as","as-child"]))}}),Hf=j4;function U4(e){return e!==null}function H4(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:a,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,u=o?0:e.arrowHeight,[d,c]=Dd(n),f={start:"0%",center:"50%",end:"100%"}[c],m=(r.arrow?.x??0)+i/2,v=(r.arrow?.y??0)+u/2;let h="",w="";return d==="bottom"?(h=o?f:`${m}px`,w=`${-u}px`):d==="top"?(h=o?f:`${m}px`,w=`${a.floating.height+u}px`):d==="right"?(h=`${-u}px`,w=o?f:`${v}px`):d==="left"&&(h=`${a.floating.width+u}px`,w=o?f:`${v}px`),{data:{x:h,y:w}}}}}function Dd(e){const[t,n="center"]=e.split("-");return[t,n]}const K4=["top","right","bottom","left"],br=Math.min,Oa=Math.max,Bi=Math.round,Ws=Math.floor,Ma=e=>({x:e,y:e}),W4={left:"right",right:"left",bottom:"top",top:"bottom"};function s1(e,t,n){return Oa(e,br(t,n))}function Ba(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function Kf(e){return e==="x"?"y":"x"}function Wf(e){return e==="y"?"height":"width"}function ia(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Gf(e){return Kf(ia(e))}function G4(e,t,n){n===void 0&&(n=!1);const a=lo(e),r=Gf(e),l=Wf(r);let o=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=Fi(o)),[o,Fi(o)]}function Y4(e){const t=Fi(e);return[Od(e),t,Od(t)]}function Od(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Om=["left","right"],Mm=["right","left"],J4=["top","bottom"],Z4=["bottom","top"];function X4(e,t,n){switch(e){case"top":case"bottom":return n?t?Mm:Om:t?Om:Mm;case"left":case"right":return t?J4:Z4;default:return[]}}function Q4(e,t,n,a){const r=lo(e);let l=X4(_r(e),n==="start",a);return r&&(l=l.map(o=>o+"-"+r),t&&(l=l.concat(l.map(Od)))),l}function Fi(e){const t=_r(e);return W4[t]+e.slice(t.length)}function eT(e){var t,n,a,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(r=e.left)!=null?r:0}}function i1(e){return typeof e!="number"?eT(e):{top:e,right:e,bottom:e,left:e}}function Vi(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function Pm(e,t,n){let{reference:a,floating:r}=e;const l=ia(t),o=Gf(t),i=Wf(o),u=_r(t),d=l==="y",c=a.x+a.width/2-r.width/2,f=a.y+a.height/2-r.height/2,m=a[i]/2-r[i]/2;let v;switch(u){case"top":v={x:c,y:a.y-r.height};break;case"bottom":v={x:c,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:f};break;case"left":v={x:a.x-r.width,y:f};break;default:v={x:a.x,y:a.y}}const h=lo(t);return h&&(v[o]+=m*(h==="end"?1:-1)*(n&&d?-1:1)),v}async function tT(e,t){var n;t===void 0&&(t={});const{x:a,y:r,platform:l,rects:o,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=Ba(t,e),h=i1(v),S=i[m?f==="floating"?"reference":"floating":f],_=Vi(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:d,rootBoundary:c,strategy:u})),D=f==="floating"?{x:a,y:r,width:o.floating.width,height:o.floating.height}:o.reference,B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),O=await(l.isElement==null?void 0:l.isElement(B))&&await(l.getScale==null?void 0:l.getScale(B))||{x:1,y:1},A=Vi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:D,offsetParent:B,strategy:u}):D);return{top:(_.top-A.top+h.top)/O.y,bottom:(A.bottom-_.bottom+h.bottom)/O.y,left:(_.left-A.left+h.left)/O.x,right:(A.right-_.right+h.right)/O.x}}const nT=50,aT=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:l=[],platform:o}=n,i=o.detectOverflow?o:{...o,detectOverflow:tT},u=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=Pm(d,a,u),m=a,v=0;const h={};for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:l,platform:o,elements:i,middlewareData:u}=t,{element:d,padding:c=0}=Ba(e,t)||{};if(d==null)return{};const f=i1(c),m={x:n,y:a},v=Gf(r),h=Wf(v),w=await o.getDimensions(d),S=v==="y",_=S?"top":"left",D=S?"bottom":"right",B=S?"clientHeight":"clientWidth",O=l.reference[h]+l.reference[v]-m[v]-l.floating[h],A=m[v]-l.reference[v],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let q=I?I[B]:0;(!q||!await(o.isElement==null?void 0:o.isElement(I)))&&(q=i.floating[B]||l.floating[h]);const U=O/2-A/2,C=q/2-w[h]/2-1,P=br(f[_],C),z=br(f[D],C),E=q-w[h]-z,L=q/2-w[h]/2+U,G=s1(P,L,E),W=!u.arrow&&lo(r)!=null&&L!==G&&l.reference[h]/2-(LG<=0)){var z,E;const G=(((z=l.flip)==null?void 0:z.index)||0)+1,W=q[G];if(W&&(!(f==="alignment"?D!==ia(W):!1)||P.every(le=>ia(le.placement)===D?le.overflows[0]>0:!0)))return{data:{index:G,overflows:P},reset:{placement:W}};let H=(E=P.filter(re=>re.overflows[0]<=0).sort((re,le)=>re.overflows[1]-le.overflows[1])[0])==null?void 0:E.placement;if(!H)switch(v){case"bestFit":{var L;const re=(L=P.filter(le=>{if(I){const ge=ia(le.placement);return ge===D||ge==="y"}return!0}).map(le=>[le.placement,le.overflows.filter(ge=>ge>0).reduce((ge,ye)=>ge+ye,0)]).sort((le,ge)=>le[1]-ge[1])[0])==null?void 0:L[0];re&&(H=re);break}case"initialPlacement":H=i;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function Im(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rm(e){return K4.some(t=>e[t]>=0)}const oT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:r="referenceHidden",...l}=Ba(e,t);switch(r){case"referenceHidden":{const o=await a.detectOverflow(t,{...l,elementContext:"reference"}),i=Im(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Rm(i)}}}case"escaped":{const o=await a.detectOverflow(t,{...l,altBoundary:!0}),i=Im(o,n.floating);return{data:{escapedOffsets:i,escaped:Rm(i)}}}default:return{}}}}},u1=new Set(["left","top"]);async function sT(e,t){const{placement:n,platform:a,elements:r}=e,l=await(a.isRTL==null?void 0:a.isRTL(r.floating)),o=_r(n),i=lo(n),u=ia(n)==="y",d=u1.has(o)?-1:1,c=l&&u?-1:1,f=Ba(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof h=="number"&&(v=i==="end"?h*-1:h),u?{x:v*c,y:m*d}:{x:m*d,y:v*c}}const iT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:l,placement:o,middlewareData:i}=t,u=await sT(t,e);return o===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:r+u.x,y:l+u.y,data:{...u,placement:o}}}}},uT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r,platform:l}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:u={fn:D=>{let{x:B,y:O}=D;return{x:B,y:O}}},...d}=Ba(e,t),c={x:n,y:a},f=await l.detectOverflow(t,d),m=ia(r),v=Kf(m);let h=c[v],w=c[m];const S=(D,B)=>s1(B+f[D==="y"?"top":"left"],B,B-f[D==="y"?"bottom":"right"]);o&&(h=S(v,h)),i&&(w=S(m,w));const _=u.fn({...t,[v]:h,[m]:w});return{..._,data:{x:_.x-n,y:_.y-a,enabled:{[v]:o,[m]:i}}}}}},cT=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;const{x:r,y:l,placement:o,rects:i,middlewareData:u}=t,{offset:d=0,mainAxis:c=!0,crossAxis:f=!0}=Ba(e,t),m={x:r,y:l},v=ia(o),h=Kf(v);let w=m[h],S=m[v];const _=Ba(d,t),D=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:(n=_.mainAxis)!=null?n:0,crossAxis:(a=_.crossAxis)!=null?a:0};if(c){const A=h==="y"?"height":"width",I=i.reference[h]-i.floating[A]+D.mainAxis,q=i.reference[h]+i.reference[A]-D.mainAxis;wq&&(w=q)}if(f){var B,O;const A=h==="y"?"width":"height",I=u1.has(_r(o)),q=i.reference[v]-i.floating[A]+(I&&((B=u.offset)==null?void 0:B[v])||0)+(I?0:D.crossAxis),U=i.reference[v]+i.reference[A]+(I?0:((O=u.offset)==null?void 0:O[v])||0)-(I?D.crossAxis:0);SU&&(S=U)}return{[h]:w,[v]:S}}}},dT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:a,platform:r,elements:l}=t,{apply:o=()=>{},...i}=Ba(e,t),u=await r.detectOverflow(t,i),d=_r(n),c=lo(n),f=ia(n)==="y",{width:m,height:v}=a.floating;let h,w;d==="top"||d==="bottom"?(h=d,w=c===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(w=d,h=c==="end"?"top":"bottom");const S=v-u.top-u.bottom,_=m-u.left-u.right,D=br(v-u[h],S),B=br(m-u[w],_),O=t.middlewareData.shift,A=!O;let I=D,q=B;O!=null&&O.enabled.x&&(q=_),O!=null&&O.enabled.y&&(I=S),A&&!c&&(f?q=m-2*Oa(u.left,u.right):I=v-2*Oa(u.top,u.bottom)),await o({...t,availableWidth:q,availableHeight:I});const U=await r.getDimensions(l.floating);return m!==U.width||v!==U.height?{reset:{rects:!0}}:{}}}};function Cu(){return typeof window<"u"}function dl(e){return Yf(e)?(e.nodeName||"").toLowerCase():"#document"}function mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ua(e){var t;return(t=(Yf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yf(e){return Cu()?e instanceof Node||e instanceof mn(e).Node:!1}function pa(e){return Cu()?e instanceof Element||e instanceof mn(e).Element:!1}function Mr(e){return Cu()?e instanceof HTMLElement||e instanceof mn(e).HTMLElement:!1}function qm(e){return!Cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mn(e).ShadowRoot}function Su(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=va(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function fT(e){return/^(table|td|th)$/.test(dl(e))}function Eu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const pT=/transform|translate|scale|rotate|perspective|filter/,vT=/paint|layout|strict|content/,zr=e=>!!e&&e!=="none";let Sc;function Jf(e){const t=pa(e)?va(e):e;return zr(t.transform)||zr(t.translate)||zr(t.scale)||zr(t.rotate)||zr(t.perspective)||!Zf()&&(zr(t.backdropFilter)||zr(t.filter))||pT.test(t.willChange||"")||vT.test(t.contain||"")}function mT(e){let t=nl(e);for(;Mr(t)&&!cs(t);){if(Jf(t))return t;if(Eu(t))return null;t=nl(t)}return null}function Zf(){return Sc==null&&(Sc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sc}function cs(e){return/^(html|body|#document)$/.test(dl(e))}function va(e){return mn(e).getComputedStyle(e)}function Au(e){return pa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nl(e){if(dl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qm(e)&&e.host||Ua(e);return qm(t)?t.host:t}function c1(e){const t=nl(e);return cs(t)?(e.ownerDocument||e).body:Mr(t)&&Su(t)?t:c1(t)}function ds(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=c1(e),l=r===((a=e.ownerDocument)==null?void 0:a.body),o=mn(r);if(l){const i=Md(o);return t.concat(o,o.visualViewport||[],Su(r)?r:[],i&&n?ds(i):[])}else return t.concat(r,ds(r,[],n))}function Md(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function d1(e){const t=va(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=Mr(e),l=r?e.offsetWidth:n,o=r?e.offsetHeight:a,i=Bi(n)!==l||Bi(a)!==o;return i&&(n=l,a=o),{width:n,height:a,$:i}}function Xf(e){return pa(e)?e:e.contextElement}function Kl(e){const t=Xf(e);if(!Mr(t))return Ma(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:l}=d1(t);let o=(l?Bi(n.width):n.width)/a,i=(l?Bi(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const hT=Ma(0);function f1(e){const t=mn(e);return!Zf()||!t.visualViewport?hT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yT(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===mn(e)}function al(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),l=Xf(e);let o=Ma(1);t&&(a?pa(a)&&(o=Kl(a)):o=Kl(e));const i=yT(l,n,a)?f1(l):Ma(0);let u=(r.left+i.x)/o.x,d=(r.top+i.y)/o.y,c=r.width/o.x,f=r.height/o.y;if(l&&a){const m=mn(l),v=pa(a)?mn(a):a;let h=m,w=Md(h);for(;w&&v!==h;){const S=Kl(w),_=w.getBoundingClientRect(),D=va(w),B=_.left+(w.clientLeft+parseFloat(D.paddingLeft))*S.x,O=_.top+(w.clientTop+parseFloat(D.paddingTop))*S.y;u*=S.x,d*=S.y,c*=S.x,f*=S.y,u+=B,d+=O,h=mn(w),w=Md(h)}}return Vi({width:c,height:f,x:u,y:d})}function Tu(e,t){const n=Au(e).scrollLeft;return t?t.left+n:al(Ua(e)).left+n}function p1(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-Tu(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function gT(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const l=r==="fixed",o=Ua(a),i=t?Eu(t.floating):!1;if(a===o||i&&l)return n;let u={scrollLeft:0,scrollTop:0},d=Ma(1);const c=Ma(0),f=Mr(a);if((f||!l)&&((dl(a)!=="body"||Su(o))&&(u=Au(a)),f)){const v=al(a);d=Kl(a),c.x=v.x+a.clientLeft,c.y=v.y+a.clientTop}const m=o&&!f&&!l?p1(o,u):Ma(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+c.x+m.x,y:n.y*d.y-u.scrollTop*d.y+c.y+m.y}}function bT(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _T(e){const t=Au(e),n=e.ownerDocument.body,a=Oa(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Oa(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+Tu(e);const o=-t.scrollTop;return va(n).direction==="rtl"&&(l+=Oa(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:l,y:o}}const xT=25;function kT(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",r=mn(e),l=Ua(e),o=r.visualViewport;let i=l.clientWidth,u=l.clientHeight,d=0,c=0;if(o){const m=!Zf()||t==="fixed";a?m||(d=-o.offsetLeft,c=-o.offsetTop):(i=o.width,u=o.height,m&&(d=o.offsetLeft,c=o.offsetTop))}if(Tu(l)<=0){const m=l.ownerDocument,v=m.body,h=getComputedStyle(v),w=m.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,S=Math.abs(l.clientWidth-v.clientWidth-w),_=getComputedStyle(l).scrollbarGutter==="stable both-edges"?S/2:S;_<=xT&&(i-=_)}return{width:i,height:u,x:d,y:c}}function wT(e,t){const n=al(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,l=Kl(e),o=e.clientWidth*l.x,i=e.clientHeight*l.y,u=r*l.x,d=a*l.y;return{width:o,height:i,x:u,y:d}}function Lm(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=kT(e,n,t);else if(t==="document")a=_T(Ua(e));else if(pa(t))a=wT(t,n);else{const r=f1(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Vi(a)}function $T(e,t){const n=t.get(e);if(n)return n;let a=ds(e,[],!1).filter(i=>pa(i)&&dl(i)!=="body"),r=null;const l=va(e).position==="fixed";let o=l?nl(e):e;for(;pa(o)&&!cs(o);){const i=va(o),u=Jf(o),d=r?r.position:l?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&i.position==="static")?a=a.filter(f=>f!==o):r=i,o=nl(o)}return t.set(e,a),a}function CT(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const o=[...n==="clippingAncestors"?Eu(t)?[]:$T(t,this._c):[].concat(n),a],i=Lm(t,o[0],r);let u=i.top,d=i.right,c=i.bottom,f=i.left;for(let m=1;m{i(!1,1e-7)},1e3)}q=!1}try{a=new IntersectionObserver(U,{...I,root:l.ownerDocument})}catch{a=new IntersectionObserver(U,I)}a.observe(e)}const u=mn(e),d=()=>i(n);return u.addEventListener("resize",d),i(!0),()=>{u.removeEventListener("resize",d),o()}}function MT(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,d=Xf(e),c=r||l?[...d?ds(d):[],...t?ds(t):[]]:[];c.forEach(_=>{r&&_.addEventListener("scroll",n),l&&_.addEventListener("resize",n)});const f=d&&i?OT(d,n,l):null;let m=-1,v=null;o&&(v=new ResizeObserver(_=>{let[D]=_;D&&D.target===d&&v&&t&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var B;(B=v)==null||B.observe(t)})),n()}),d&&!u&&v.observe(d),t&&v.observe(t));let h,w=u?al(e):null;u&&S();function S(){const _=al(e);w&&!m1(w,_)&&n(),w=_,h=requestAnimationFrame(S)}return n(),()=>{var _;c.forEach(D=>{r&&D.removeEventListener("scroll",n),l&&D.removeEventListener("resize",n)}),f?.(),(_=v)==null||_.disconnect(),v=null,u&&cancelAnimationFrame(h)}}const PT=iT,IT=uT,Bm=lT,RT=dT,qT=oT,LT=rT,NT=cT,BT=(e,t,n)=>{const a=new Map,r=n??{},l={...DT,...r.platform,_c:a};return aT(e,t,{...r,platform:l})};function FT(e){return e!=null&&typeof e=="object"&&"$el"in e}function Pd(e){if(FT(e)){const t=e.$el;return Yf(t)&&dl(t)==="#comment"?null:t}return e}function Dl(e){return typeof e=="function"?e():s(e)}function VT(e){return{name:"arrow",options:e,fn(t){const n=Pd(Dl(e.element));return n==null?{}:LT({element:n,padding:e.padding}).fn(t)}}}function h1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fm(e,t){const n=h1(e);return Math.round(t*n)/n}function zT(e,t,n){n===void 0&&(n={});const a=n.whileElementsMounted,r=b(()=>{var q;return(q=Dl(n.open))!=null?q:!0}),l=b(()=>Dl(n.middleware)),o=b(()=>{var q;return(q=Dl(n.placement))!=null?q:"bottom"}),i=b(()=>{var q;return(q=Dl(n.strategy))!=null?q:"absolute"}),u=b(()=>{var q;return(q=Dl(n.transform))!=null?q:!0}),d=b(()=>Pd(e.value)),c=b(()=>Pd(t.value)),f=T(0),m=T(0),v=T(i.value),h=T(o.value),w=rl({}),S=T(!1),_=b(()=>{const q={position:v.value,left:"0",top:"0"};if(!c.value)return q;const U=Fm(c.value,f.value),C=Fm(c.value,m.value);return u.value?{...q,transform:"translate("+U+"px, "+C+"px)",...h1(c.value)>=1.5&&{willChange:"transform"}}:{position:v.value,left:U+"px",top:C+"px"}});let D;function B(){if(d.value==null||c.value==null)return;const q=r.value;BT(d.value,c.value,{middleware:l.value,placement:o.value,strategy:i.value}).then(U=>{f.value=U.x,m.value=U.y,v.value=U.strategy,h.value=U.placement,w.value=U.middlewareData,S.value=q!==!1})}function O(){typeof D=="function"&&(D(),D=void 0)}function A(){if(O(),a===void 0){B();return}if(d.value!=null&&c.value!=null){D=a(d.value,c.value,B);return}}function I(){r.value||(S.value=!1)}return Fe([l,o,i,r],B,{flush:"sync"}),Fe([d,c],A,{flush:"sync"}),Fe(r,I,{flush:"sync"}),Gd()&&Xh(O),{x:gl(f),y:gl(m),strategy:gl(v),placement:gl(h),middlewareData:gl(w),isPositioned:gl(S),floatingStyles:_,update:B}}const y1={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[HH,jT]=Dt("PopperContent");var UT=ae({inheritAttrs:!1,__name:"PopperContent",props:Fy({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...y1}),emits:["placed"],setup(e,{emit:t}){const n=e,a=t,r=l1(),{forwardRef:l,currentElement:o}=Ze(),i=T(),u=T(),{width:d,height:c}=TA(u),f=b(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=b(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),v=b(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=b(()=>({padding:m.value,boundary:v.value.filter(U4),altBoundary:v.value.length>0})),w=b(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),S=oE(()=>[PT({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Bm({...h.value,...w.value}),n.avoidCollisions&&IT({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?NT():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Bm({...h.value,...w.value}),RT({...h.value,apply:({elements:E,rects:L,availableWidth:G,availableHeight:W})=>{const{width:H,height:re}=L.reference,le=E.floating.style;le.setProperty("--reka-popper-available-width",`${G}px`),le.setProperty("--reka-popper-available-height",`${W}px`),le.setProperty("--reka-popper-anchor-width",`${H}px`),le.setProperty("--reka-popper-anchor-height",`${re}px`)}}),u.value&&VT({element:u.value,padding:n.arrowPadding}),H4({arrowWidth:d.value,arrowHeight:c.value}),n.hideWhenDetached&&qT({strategy:"referenceHidden",...h.value})]),_=b(()=>n.reference??r.anchor.value),{floatingStyles:D,placement:B,isPositioned:O,middlewareData:A}=zT(_,i,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...E)=>MT(...E,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:S}),I=b(()=>Dd(B.value)[0]),q=b(()=>Dd(B.value)[1]);$y(()=>{O.value&&a("placed")});const U=b(()=>{const E=A.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&E}),C=T("");$n(()=>{o.value&&(C.value=window.getComputedStyle(o.value).zIndex)});const P=b(()=>A.value.arrow?.x??0),z=b(()=>A.value.arrow?.y??0);return jT({placedSide:I,onArrowChange:E=>u.value=E,arrowX:P,arrowY:z,shouldHideArrow:U}),(E,L)=>(p(),g("div",{ref_key:"floatingRef",ref:i,"data-reka-popper-content-wrapper":"",style:un({...s(D),transform:s(O)?s(D).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:C.value,"--reka-popper-transform-origin":[s(A).transformOrigin?.x,s(A).transformOrigin?.y].join(" "),...s(A).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[N(s(Qe),je({ref:s(l)},E.$attrs,{"as-child":n.asChild,as:E.as,"data-side":I.value,"data-align":q.value,style:{animation:s(O)?void 0:"none"}}),{default:F(()=>[ke(E.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),g1=UT;const Qf=["day","month","year"],ep=["hour","minute","second","dayPeriod"],b1=[...Qf,...ep];function HT(e){return Qf.includes(e)}function _1(e){return b1.includes(e)}const KT=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],WT=["year","month","day"],Ac={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}};function GT(e){if(Vm(e))return Ac[e];{const t=XT(e);return Vm(t)?Ac[t]:Ac.en}}function Tc(e,t,n){return YT(e)?GT(n)[e]:ZT(e)?t:JT(e)?"––":""}function Vm(e){return KT.includes(e)}function YT(e){return WT.includes(e)}function JT(e){return e==="hour"||e==="minute"||e==="second"}function ZT(e){return e==="era"||e==="dayPeriod"}function XT(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const QT=["hour","minute","second"];function Id(e){return Object.fromEntries(ep.map(t=>t==="dayPeriod"?[t,e.formatter.dayPeriod(Dn(e.value))]:[t,e.value[t]]))}function zm(e){const{formatter:t}=e,n=Qf.map(a=>[a,e.value[a]]);if("hour"in e.value){const a=Id({value:e.value,formatter:t});return{...Object.fromEntries(n),...a}}return Object.fromEntries(n)}function e5(e){return Object.fromEntries(ep.map(t=>t==="dayPeriod"?[t,"AM"]:[t,null]).filter(([t])=>!(t==="literal"||t===null||e==="minute"&&t==="second"||e==="hour"&&(t==="second"||t==="minute"))))}function t5(e){const t=b1.map(n=>n==="dayPeriod"?[n,"AM"]:[n,null]).filter(([n])=>n==="literal"||n===null||e==="minute"&&n==="second"||e==="hour"&&(n==="second"||n==="minute")?!1:e==="day"?!QT.includes(n)&&n!=="dayPeriod":!0);return Object.fromEntries(t)}function n5(e){const{segmentValues:t,formatter:n,locale:a}=e;function r(o){if("hour"in t){const i=t[o];return i!==null?o==="day"?n.part(e.dateRef.set({[o]:i,month:t.month??1}),o,{hourCycle:us(e.hourCycle)}):n.part(e.dateRef.set({[o]:i}),o,{hourCycle:us(e.hourCycle)}):Tc(o,"",a.value)}else{if(HT(o)){const i=t[o];return i!==null?o==="day"?n.part(e.dateRef.set({[o]:i,month:t.month??1}),o):n.part(e.dateRef.set({[o]:i}),o):Tc(o,"",a.value)}return""}}return Object.keys(t).reduce((o,i)=>{if(!_1(i))return o;if("hour"in t&&i==="dayPeriod"){const u=t[i];u!==null?o[i]=u:o[i]=Tc(i,"AM",a.value)}else o[i]=r(i);return o},{})}function a5(e){const{granularity:t,formatter:n,contentObj:a,hideTimeZone:r,hourCycle:l,isTimeValue:o}=e;return n.toParts(e.dateRef,wA(t,l,o)).map(d=>["literal","timeZoneName",null].includes(d.type)||!_1(d.type)?{part:d.type,value:d.value}:{part:d.type,value:a[d.type]}).filter(d=>!(d.part===null||d.value===null||d.part==="timeZoneName"&&(!is(e.dateRef)||r)||(!is(e.dateRef)||r)&&d.part==="literal"&&["[","]"].includes(d.value.trim())))}function x1(e){const t=n5(e),n=a5({contentObj:t,...e});return{obj:t,arr:n}}function wa(e){const t=ro();return e===t.ARROW_RIGHT||e===t.ARROW_LEFT}function Ur(e){return!Number.isNaN(Number.parseInt(e))}function Za(e){const t=ro();return!!([t.ENTER,t.ARROW_UP,t.ARROW_DOWN,t.ARROW_LEFT,t.ARROW_RIGHT,t.BACKSPACE,t.SPACE,"a","A","p","P"].includes(e)||Ur(e))}function jm(e){return Array.from(e.querySelectorAll("[data-reka-date-field-segment]")).filter(t=>t.getAttribute("data-reka-date-field-segment")!=="literal")}function Um(e){return Array.from(e.querySelectorAll("[data-reka-time-field-segment]")).filter(t=>t.getAttribute("data-reka-time-field-segment")!=="literal")}const r5=/^\d$/;function Pr(e){return{role:"spinbutton",contenteditable:!0,tabindex:e.disabled?void 0:0,spellcheck:!1,inputmode:"numeric",autocorrect:"off",enterkeyhint:"next",style:"caret-color: transparent;"}}function l5(e){const{segmentValues:t,placeholder:n}=e,a=t.day===null,r={};t.day&&(r.day=t.day),t.month&&(r.month=t.month);const l=Object.keys(r).length>0?n.set(r):n,o=l.day,i=1,u=dr(l),d=a?"Empty":`${o}`;return{...Pr(e),"aria-label":"day,","aria-valuemin":i,"aria-valuemax":u,"aria-valuenow":o,"aria-valuetext":d,"data-placeholder":a?"":void 0}}function o5(e){const{segmentValues:t,placeholder:n,formatter:a}=e,r=t.month===null,l=t.month?n.set({month:t.month}):n,o=l.month,i=1,u=12,d=r?"Empty":`${o} - ${a.fullMonth(Dn(l))}`;return{...Pr(e),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":i,"aria-valuemax":u,"aria-valuenow":o,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function s5(e){const{segmentValues:t,placeholder:n}=e,a=t.year===null,r=t.year?n.set({year:t.year}):n,l=1,o=9999,i=r.year,u=a?"Empty":`${i}`;return{...Pr(e),"aria-label":"year, ","aria-valuemin":l,"aria-valuemax":o,"aria-valuenow":i,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function i5(e){const{segmentValues:t,hourCycle:n,placeholder:a}=e;if(!("hour"in t)||!("hour"in a))return{};const r=t.hour===null,l=t.hour?a.set({hour:t.hour}):a,o=n===12?1:0,i=n===12?12:23,u=l.hour,d=r?"Empty":`${u} ${t.dayPeriod??""}`;return{...Pr(e),"aria-label":"hour, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":u,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function u5(e){const{segmentValues:t,placeholder:n}=e;if(!("minute"in t)||!("minute"in n))return{};const a=t.minute===null,l=(t.minute?n.set({minute:t.minute}):n).minute,o=0,i=59,u=a?"Empty":`${l}`;return{...Pr(e),"aria-label":"minute, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function c5(e){const{segmentValues:t,placeholder:n}=e;if(!("second"in t)||!("second"in n))return{};const a=t.second===null,l=(t.second?n.set({second:t.second}):n).second,o=0,i=59,u=a?"Empty":`${l}`;return{...Pr(e),"aria-label":"second, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function d5(e){const{segmentValues:t}=e;if(!("dayPeriod"in t))return{};const n=0,a=12,r=t.hour?t.hour>12?t.hour-12:t.hour:0,l=t.dayPeriod??"AM";return{...Pr(e),inputmode:"text","aria-label":"AM/PM","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":r,"aria-valuetext":l}}function f5(e){return{"aria-hidden":!0,"data-segment":"literal"}}function p5(e){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:e.disabled?void 0:0,style:"caret-color: transparent;"}}function v5(e){const{segmentValues:t,placeholder:n}=e,a=0,r=0,l=0,o="era"in t?t.era:n.era;return{...Pr(e),"aria-label":"era","aria-valuemin":a,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":o}}const m5={day:{attrs:l5},month:{attrs:o5},year:{attrs:s5},hour:{attrs:i5},minute:{attrs:u5},second:{attrs:c5},dayPeriod:{attrs:d5},literal:{attrs:f5},timeZoneName:{attrs:p5},era:{attrs:v5}};function k1(e){const t=ro();function n({e:C,part:P,dateRef:z,prevValue:E}){const L=e.step.value[P]??1,G=C.key===t.ARROW_UP?L:-L,W=0,H=59;if(E===null)return G>0?W:H;const re=[P,G];return z.set({[P]:E}).cycle(...re)[P]}function a(C){if(e.hasLeftFocus.value=!1,C===null)return C;const P=C.toString();return P.length===1?(e.modelValue.value=void 0,null):Number.parseInt(P.slice(0,-1))}function r({e:C,part:P,dateRef:z,prevValue:E}){const L=e.step.value[P]??1,G=C.key===t.ARROW_UP?L:-L;if(E===null)return z[P];if(P==="hour"&&"hour"in z){const H=[P,G];return z.set({[P]:E}).cycle(...H)[P]}const W=[P,G];return P==="day"?z.set({[P]:E,month:e.segmentValues.value.month??1}).cycle(...W)[P]:z.set({[P]:E}).cycle(...W)[P]}function l(C,P,z){let E=!1;const L=Math.floor(C/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,z=null),z===null)return P===0?(e.lastKeyZero.value=!0,{value:null,moveToNext:E}):((e.lastKeyZero.value||P>L)&&(E=!0),e.lastKeyZero.value=!1,{value:P,moveToNext:E});const G=z.toString().length,W=Number.parseInt(z.toString()+P.toString());return G===2||W>C?((P>L||W>C)&&(E=!0),{value:P,moveToNext:E}):(E=!0,{value:W,moveToNext:E})}function o(C,P){let E=!1;const L=Math.floor(59/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,P=null),P===null)return C===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:E}):((e.lastKeyZero.value||C>L)&&(E=!0),e.lastKeyZero.value=!1,{value:C,moveToNext:E});const G=P.toString().length,W=Number.parseInt(P.toString()+C.toString());return G===2||W>59?(C>L&&(E=!0),{value:C,moveToNext:E}):(E=!0,{value:W,moveToNext:E})}function i(C,P,z){let E=!1;const L=Math.floor(C/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,z=null),z===null)return P===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:E}):((e.lastKeyZero.value||P>L)&&(E=!0),e.lastKeyZero.value=!1,{value:P,moveToNext:E});const G=z.toString().length,W=Number.parseInt(z.toString()+P.toString());return G===2||W>C?(P>L&&(E=!0),{value:P,moveToNext:E}):(E=!0,{value:W,moveToNext:E})}function u(C,P){let z=!1;if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,P=null),P===null)return{value:C===0?1:C,moveToNext:z};const E=P.toString()+C.toString();return E.length>4?{value:C===0?1:C,moveToNext:z}:(E.length===4&&(z=!0),{value:Number.parseInt(E),moveToNext:z})}const d=b(()=>m5[e.part]?.attrs({disabled:e.disabled.value,placeholder:e.placeholder.value,hourCycle:e.hourCycle,segmentValues:e.segmentValues.value,formatter:e.formatter})??{});function c(C){if(!Za(C.key)||wa(C.key))return;const P=e.segmentValues.value.day;if(C.key===t.ARROW_DOWN||C.key===t.ARROW_UP){e.segmentValues.value.day=r({e:C,part:"day",dateRef:e.placeholder.value,prevValue:P});return}if(Ur(C.key)){const z=Number.parseInt(C.key),E=e.segmentValues.value.month,L=E?dr(e.placeholder.value.set({month:E})):31,{value:G,moveToNext:W}=l(L,z,P);e.segmentValues.value.day=G,W&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.day=a(P))}function f(C){if(!Za(C.key)||wa(C.key))return;const P=e.segmentValues.value.month;if(C.key===t.ARROW_DOWN||C.key===t.ARROW_UP){e.segmentValues.value.month=r({e:C,part:"month",dateRef:e.placeholder.value,prevValue:P});return}if(Ur(C.key)){const z=Number.parseInt(C.key),{value:E,moveToNext:L}=l(12,z,P);e.segmentValues.value.month=E,L&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.month=a(P))}function m(C){if(!Za(C.key)||wa(C.key))return;const P=e.segmentValues.value.year;if(C.key===t.ARROW_DOWN||C.key===t.ARROW_UP){e.segmentValues.value.year=r({e:C,part:"year",dateRef:e.placeholder.value,prevValue:P});return}if(Ur(C.key)){const z=Number.parseInt(C.key),{value:E,moveToNext:L}=u(z,P);e.segmentValues.value.year=E,L&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.year=a(P))}function v(C){const P=new Ln(C,{hour:"numeric"}).resolvedOptions().hourCycle;return P==="h11"||P==="h12"}function h(C){const P=e.placeholder.value;if(!Za(C.key)||wa(C.key)||!("hour"in P)||!("hour"in e.segmentValues.value))return;const z=e.segmentValues.value.hour;if(C.key===t.ARROW_UP||C.key===t.ARROW_DOWN){const E=r({e:C,part:"hour",dateRef:e.placeholder.value,prevValue:z});e.segmentValues.value.hour=E,"dayPeriod"in e.segmentValues.value&&E!==null&&(e.segmentValues.value.dayPeriod=E>=12?"PM":"AM");return}if(Ur(C.key)){const E=Number.parseInt(C.key),L=e.hourCycle!==void 0?e.hourCycle===12:v(e.formatter.getLocale()),G=L?12:24;let W=z;L&&z!==null&&(W=z%12===0?0:z>12?z-12:z);const{value:H,moveToNext:re}=i(G,E,W);let le=H;if(L&&H!==null){const ge=e.segmentValues.value.dayPeriod||"AM";H===12?le=ge==="AM"?0:12:le=ge==="PM"?H+12:H}e.segmentValues.value.hour=le,re&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.hour=a(z))}function w(C){const P=e.placeholder.value;if(!Za(C.key)||wa(C.key)||!("minute"in P)||!("minute"in e.segmentValues.value))return;const z=e.segmentValues.value.minute;if((C.key===t.ARROW_UP||C.key===t.ARROW_DOWN)&&(e.segmentValues.value.minute=n({e:C,part:"minute",dateRef:e.placeholder.value,prevValue:z})),Ur(C.key)){const E=Number.parseInt(C.key),{value:L,moveToNext:G}=o(E,z);e.segmentValues.value.minute=L,G&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.minute=a(z))}function S(C){const P=e.placeholder.value;if(!Za(C.key)||wa(C.key)||!("second"in P)||!("second"in e.segmentValues.value))return;const z=e.segmentValues.value.second;if((C.key===t.ARROW_UP||C.key===t.ARROW_DOWN)&&(e.segmentValues.value.second=n({e:C,part:"second",dateRef:e.placeholder.value,prevValue:z})),Ur(C.key)){const E=Number.parseInt(C.key),{value:L,moveToNext:G}=o(E,z);e.segmentValues.value.second=L,G&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.second=a(z))}function _(C){if(!((!Za(C.key)||wa(C.key))&&C.key!=="a"&&C.key!=="p"||!("hour"in e.placeholder.value)||!("dayPeriod"in e.segmentValues.value))){if(C.key===t.ARROW_UP||C.key===t.ARROW_DOWN){if(e.segmentValues.value.dayPeriod==="AM"){e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12;return}e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}if(["a","A"].includes(C.key)&&e.segmentValues.value.dayPeriod!=="AM"){e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}["p","P"].includes(C.key)&&e.segmentValues.value.dayPeriod!=="PM"&&(e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12)}}function D(C){e.disabled.value&&C.preventDefault()}function B(C){if(C.isComposing||C.key==="Process")return;const P=e.disabled.value,z=e.readonly.value;if(P||z)return;if(C.key!==t.TAB&&C.preventDefault(),{day:c,month:f,year:m,hour:h,minute:w,second:S,dayPeriod:_,timeZoneName:()=>{}}[e.part](C),![t.ARROW_LEFT,t.ARROW_RIGHT].includes(C.key)&&C.key!==t.TAB&&C.key!==t.SHIFT&&Za(C.key)&&Object.values(e.segmentValues.value).every(L=>L!==null)){const L={...e.segmentValues.value},G=e.placeholder.value.set(L);e.modelValue.value=G.copy()}}function O(){if(e.stepSnapping?.value&&(e.part==="hour"&&"hour"in e.segmentValues.value&&e.segmentValues.value.hour!==null&&e.step.value.hour&&e.step.value.hour>1?(e.segmentValues.value.hour=uc(e.segmentValues.value.hour,0,23,e.step.value.hour),"dayPeriod"in e.segmentValues.value&&(e.segmentValues.value.hour<12?e.segmentValues.value.dayPeriod="AM":e.segmentValues.value.hour&&(e.segmentValues.value.dayPeriod="PM"))):e.part==="minute"&&"minute"in e.segmentValues.value&&e.segmentValues.value.minute!==null&&e.step.value.minute&&e.step.value.minute>1?e.segmentValues.value.minute=uc(e.segmentValues.value.minute,0,59,e.step.value.minute):e.part==="second"&&"second"in e.segmentValues.value&&e.segmentValues.value.second!==null&&e.step.value.second&&e.step.value.second>1&&(e.segmentValues.value.second=uc(e.segmentValues.value.second,0,59,e.step.value.second)),Object.values(e.segmentValues.value).every(C=>C!==null))){const C=e.placeholder.value.set({...e.segmentValues.value});e.modelValue.value=C.copy()}}let A=null;function I(C){C.isComposing||C.preventDefault()}function q(C){const P=C.target;A=Array.from(P.childNodes,z=>({node:z,value:z.nodeValue}))}function U(C){const P=C.target,z=A;if(A=null,z){for(const{node:L,value:G}of z)L.nodeValue=G;P.replaceChildren(...z.map(L=>L.node))}const E=C.data;if(E)for(const L of E){if(!r5.test(L))continue;const G=Gt();if(!(G instanceof HTMLElement))break;G.dispatchEvent(new KeyboardEvent("keydown",{key:L,bubbles:!0,cancelable:!0}))}}return{handleSegmentClick:D,handleSegmentKeydown:B,handleSegmentBeforeInput:I,handleSegmentCompositionStart:q,handleSegmentCompositionEnd:U,handleSegmentFocusOut:O,attributes:d}}function h5(e){function t(l){return Array.isArray(e.date.value)?e.date.value.some(o=>mr(o,l)):e.date.value?mr(e.date.value,l):!1}const n=b(()=>{if(Array.isArray(e.date.value)){if(!e.date.value.length)return!1;for(const l of e.date.value)if(e.isDateDisabled?.(l)||e.isDateUnavailable?.(l))return!0}else{if(!e.date.value)return!1;if(e.isDateDisabled?.(e.date.value)||e.isDateUnavailable?.(e.date.value))return!0}return!1}),a=b(()=>Array.isArray(e.date.value)?e.date.value.length>0:!!e.date.value),r=b(()=>Array.isArray(e.date.value)?e.date.value.length?e.date.value.some(l=>e.isDateDisabled?.(l)):!1:e.date.value?!!e.isDateDisabled?.(e.date.value):!1);return{isDateSelected:t,isInvalid:n,hasSelectedDate:a,isSelectedDateDisabled:r}}function y5(e,t){const n=t(e),a=n.compare(e),r={};return a>=7&&(r.day=1),a>=dr(e)&&(r.month=1),n.set({...r})}function g5(e,t){const n=t(e),a=e.compare(n),r={};return a>=7&&(r.day=35),a>=dr(e)&&(r.month=13),n.set({...r})}function b5(e,t){return t(e)}function _5(e,t){return t(e)}function x5(e){const t=Lf(e.locale.value),n=b(()=>{const _={calendar:e.placeholder.value.calendar.identifier};return e.placeholder.value.calendar.identifier==="gregory"&&e.placeholder.value.era==="BC"&&(_.era="short"),_}),a=T(Vr({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})),r=b(()=>a.value.map(_=>_.value));function l(_){return!r.value.some(D=>am(_,D))}const o=_=>{if(!e.maxValue.value||!a.value.length)return!1;if(e.disabled.value)return!0;const D=a.value.at(-1).value;if(!_&&!e.nextPage.value){const O=D.add({months:1}).set({day:1});return bc(O,e.maxValue.value)}const B=y5(D,_||e.nextPage.value);return bc(B,e.maxValue.value)},i=_=>{if(!e.minValue.value||!a.value.length)return!1;if(e.disabled.value)return!0;const D=a.value[0].value;if(!_&&!e.prevPage.value){const O=D.subtract({months:1}).set({day:35});return ir(O,e.minValue.value)}const B=g5(D,_||e.prevPage.value);return ir(B,e.minValue.value)};function u(_){return!!(e.isDateDisabled?.(_)||e.disabled.value||e.maxValue.value&&bc(_,e.maxValue.value)||e.minValue.value&&ir(_,e.minValue.value))}const d=_=>!!e.isDateUnavailable?.(_),c=b(()=>a.value.length?a.value[0].rows[0].map(_=>t.dayOfWeek(Dn(_),e.weekdayFormat.value)):[]),f=_=>{const D=a.value[0].value;if(!_&&!e.nextPage.value){const I=D.add({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),q=Vr({dateObj:I,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=q,e.placeholder.value=q[0].value.set({day:1});return}const B=b5(D,_||e.nextPage.value),O=Vr({dateObj:B,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=O;const A={};if(!_){const I=O[0].value.compare(D);I>=dr(D)&&(A.day=1),I>=365&&(A.month=1)}e.placeholder.value=O[0].value.set({...A})},m=_=>{const D=a.value[0].value;if(!_&&!e.prevPage.value){const I=D.subtract({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),q=Vr({dateObj:I,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=q,e.placeholder.value=q[0].value.set({day:1});return}const B=_5(D,_||e.prevPage.value),O=Vr({dateObj:B,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=O;const A={};if(!_){const I=D.compare(O[0].value);I>=dr(D)&&(A.day=1),I>=365&&(A.month=1)}e.placeholder.value=O[0].value.set({...A})};Fe(e.placeholder,_=>{r.value.some(D=>am(D,_))||(a.value=Vr({dateObj:_,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value}))}),Fe([e.locale,e.weekStartsOn,e.fixedWeeks,e.numberOfMonths],()=>{a.value=Vr({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})});const v=b(()=>{if(!a.value.length)return"";if(e.locale.value!==t.getLocale()&&t.setLocale(e.locale.value),a.value.length===1){const U=a.value[0].value;return`${t.fullMonthAndYear(Dn(U),n.value)}`}const _=Dn(a.value[0].value),D=Dn(a.value.at(-1).value),B=t.fullMonth(_,n.value),O=t.fullMonth(D,n.value),A=t.fullYear(_,n.value),I=t.fullYear(D,n.value);return A===I?`${B} - ${O} ${I}`:`${B} ${A} - ${O} ${I}`}),h=b(()=>`${e.calendarLabel.value??"Event Date"}, ${v.value}`),w=b(()=>!(u(e.placeholder.value)||d(e.placeholder.value)||l(e.placeholder.value))),S=b(()=>{for(const _ of a.value){if(e.minValue.value&&ir(_.value,e.minValue.value))continue;const D=dr(_.value),B=e.minValue.value&&Cf(e.minValue.value,_.value)?e.minValue.value.day:1;for(let O=B;O<=D;O++){const A=_.value.set({day:O});if(!(u(A)||d(A)))return A}}});return{isDateDisabled:u,isDateUnavailable:d,isNextButtonDisabled:o,isPrevButtonDisabled:i,grid:a,weekdays:c,visibleView:r,isOutsideVisibleView:l,formatter:t,nextPage:f,prevPage:m,headingValue:v,fullCalendarLabel:h,isPlaceholderFocusable:w,firstFocusableDate:S}}const k5={style:{border:"0px",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute","white-space":"nowrap",width:"1px"}},w5={role:"heading","aria-level":"2"},[oo,$5]=Dt("CalendarRoot");var C5=ae({__name:"CalendarRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},pagedNavigation:{type:Boolean,required:!1,default:!1},preventDeselect:{type:Boolean,required:!1,default:!1},weekStartsOn:{type:Number,required:!1},weekdayFormat:{type:String,required:!1,default:"narrow"},calendarLabel:{type:String,required:!1},fixedWeeks:{type:Boolean,required:!1,default:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},numberOfMonths:{type:Number,required:!1,default:1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},initialFocus:{type:Boolean,required:!1,default:!1},isDateDisabled:{type:Function,required:!1,default:void 0},isDateUnavailable:{type:Function,required:!1,default:void 0},dir:{type:String,required:!1},nextPage:{type:Function,required:!1},prevPage:{type:Function,required:!1},modelValue:{type:null,required:!1},multiple:{type:Boolean,required:!1,default:!1},disableDaysOutsideCurrentView:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},emits:["update:modelValue","update:placeholder"],setup(e,{emit:t}){const n=e,a=t,{disabled:r,readonly:l,initialFocus:o,pagedNavigation:i,weekdayFormat:u,fixedWeeks:d,multiple:c,minValue:f,maxValue:m,numberOfMonths:v,preventDeselect:h,isDateDisabled:w,isDateUnavailable:S,calendarLabel:_,defaultValue:D,nextPage:B,prevPage:O,dir:A,locale:I,disableDaysOutsideCurrentView:q}=Ht(n),{primitiveElement:U,currentElement:C}=tl(),P=wu(I),z=ha(A),E=b(()=>n.weekStartsOn??Gb(P.value)),L=qt(n,"modelValue",a,{defaultValue:D.value,passive:n.modelValue===void 0}),G=qf({defaultPlaceholder:n.placeholder,defaultValue:L.value,locale:n.locale}),W=qt(n,"placeholder",a,{defaultValue:n.defaultPlaceholder??G.copy(),passive:n.placeholder===void 0});function H(ee){W.value=ee.copy()}const{fullCalendarLabel:re,headingValue:le,isDateDisabled:ge,isDateUnavailable:ye,isNextButtonDisabled:ve,isPrevButtonDisabled:oe,weekdays:fe,isOutsideVisibleView:K,nextPage:we,prevPage:me,formatter:Y,grid:de,isPlaceholderFocusable:J,firstFocusableDate:Q}=x5({locale:P,placeholder:W,weekStartsOn:E,fixedWeeks:d,numberOfMonths:v,minValue:f,maxValue:m,disabled:r,weekdayFormat:u,pagedNavigation:i,isDateDisabled:w.value,isDateUnavailable:S.value,calendarLabel:_,nextPage:B,prevPage:O}),{isInvalid:te,isDateSelected:x,hasSelectedDate:M,isSelectedDateDisabled:R}=h5({date:L,isDateDisabled:ge,isDateUnavailable:ye});Fe(L,ee=>{if(Array.isArray(ee)&&ee.length){const ce=ee.at(-1);ce&&!jl(W.value,ce)&&H(ce)}else!Array.isArray(ee)&&ee&&!jl(W.value,ee)&&H(ee)});function se(ee){if(c.value){if(!L.value)L.value=[ee.copy()];else if(Array.isArray(L.value)){if(L.value.findIndex(Ce=>mr(Ce,ee))===-1)L.value=[...L.value,ee];else if(!h.value){const Ce=L.value.filter($e=>!mr($e,ee));if(!Ce.length){W.value=ee.copy(),L.value=void 0;return}L.value=Ce.map($e=>$e.copy())}}}else{if(!L.value){L.value=ee.copy();return}!h.value&&jl(L.value,ee)?(W.value=ee.copy(),L.value=void 0):L.value=ee.copy()}}return wt(()=>{o.value&&Kb(C.value)}),$5({isDateUnavailable:ye,dir:z,isDateDisabled:ge,locale:P,formatter:Y,modelValue:L,placeholder:W,disabled:r,initialFocus:o,pagedNavigation:i,grid:de,weekDays:fe,weekStartsOn:E,weekdayFormat:u,fixedWeeks:d,multiple:c,numberOfMonths:v,readonly:l,preventDeselect:h,fullCalendarLabel:re,headingValue:le,isInvalid:te,isDateSelected:x,isNextButtonDisabled:ve,isPrevButtonDisabled:oe,isOutsideVisibleView:K,nextPage:we,prevPage:me,parentElement:C,onPlaceholderChange:H,onDateChange:se,disableDaysOutsideCurrentView:q,minValue:f,maxValue:m,isPlaceholderFocusable:J,firstFocusableDate:Q,hasSelectedDate:M,isSelectedDateDisabled:R}),(ee,ce)=>(p(),j(s(Qe),{ref_key:"primitiveElement",ref:U,as:ee.as,"as-child":ee.asChild,"aria-label":s(re),"data-readonly":s(l)?"":void 0,"data-disabled":s(r)?"":void 0,"data-invalid":s(te)?"":void 0,dir:s(z)},{default:F(()=>[ke(ee.$slots,"default",{date:s(W),grid:s(de),weekDays:s(fe),weekStartsOn:E.value,locale:s(P),fixedWeeks:s(d),modelValue:s(L)}),k("div",k5,[k("div",w5,$(s(re)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),S5=C5,E5=ae({__name:"CalendarCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"td"}},setup(e){const t=oo();return(n,a)=>(p(),j(s(Qe),{as:n.as,"as-child":n.asChild,role:"gridcell","aria-selected":s(t).isDateSelected(n.date)?!0:void 0,"aria-disabled":s(t).isDateDisabled(n.date)||s(t).isDateUnavailable?.(n.date)||s(t).disableDaysOutsideCurrentView.value,"data-disabled":s(t).isDateDisabled(n.date)||s(t).disableDaysOutsideCurrentView.value?"":void 0},{default:F(()=>[ke(n.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"]))}}),A5=E5,T5=ae({__name:"CalendarCellTrigger",props:{day:{type:null,required:!0},month:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=ro(),a=oo(),{primitiveElement:r}=tl(),l=b(()=>t.day.day.toLocaleString(a.locale.value)),o=b(()=>a.formatter.custom(Dn(t.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),i=b(()=>a.isDateUnavailable?.(t.day)??!1),u=b(()=>AE(t.day,Yn())),d=b(()=>!Cf(t.day,t.month)),c=b(()=>a.isOutsideVisibleView(t.day)),f=b(()=>a.isDateDisabled(t.day)||a.disableDaysOutsideCurrentView.value&&d.value),m=b(()=>d.value||f.value?!1:!a.disabled.value&&a.isPlaceholderFocusable.value&&mr(t.day,a.placeholder.value)?!0:(!a.hasSelectedDate.value||a.isSelectedDateDisabled.value)&&!a.isPlaceholderFocusable.value?a.firstFocusableDate.value&&mr(t.day,a.firstFocusableDate.value):!1),v=b(()=>a.isDateSelected(t.day));function h(_){a.readonly.value||a.isDateDisabled(_)||a.isDateUnavailable?.(_)||a.onDateChange(_)}function w(){f.value||h(t.day)}function S(_){if(f.value)return;_.preventDefault(),_.stopPropagation();const D=a.parentElement.value,B=7,O=a.dir.value==="rtl"?-1:1;switch(_.code){case n.ARROW_RIGHT:A(t.day,O);break;case n.ARROW_LEFT:A(t.day,-O);break;case n.ARROW_UP:A(t.day,-B);break;case n.ARROW_DOWN:A(t.day,B);break;case n.ENTER:case n.SPACE_CODE:h(t.day)}function A(I,q){const U=I.add({days:q});if(a.minValue.value&&U.compare(a.minValue.value)<0||a.maxValue.value&&U.compare(a.maxValue.value)>0)return;const C=D.querySelector(`[data-value='${U.toString()}']:not([data-outside-view])`);if(!C){if(q>0){if(a.isNextButtonDisabled())return;a.nextPage()}else{if(a.isPrevButtonDisabled())return;a.prevPage()}We(()=>{A(I,q)});return}if(C&&C.hasAttribute("data-disabled"))return A(U,q);a.onPlaceholderChange(U),C?.focus()}}return(_,D)=>(p(),j(s(Qe),{ref_key:"primitiveElement",ref:r,as:t.as,"as-child":t.asChild,role:"button","aria-label":o.value,"data-reka-calendar-cell-trigger":"","aria-disabled":f.value||i.value?!0:void 0,"data-selected":v.value?!0:void 0,"data-value":_.day.toString(),"data-disabled":f.value?"":void 0,"data-unavailable":i.value?"":void 0,"data-today":u.value?"":void 0,"data-outside-view":d.value?"":void 0,"data-outside-visible-view":c.value?"":void 0,"data-focused":m.value?"":void 0,tabindex:m.value?0:d.value||f.value?void 0:-1,onClick:w,onKeydown:[da(S,["up","down","left","right","space","enter"]),D[0]||(D[0]=da(mt(()=>{},["prevent"]),["enter"]))]},{default:F(()=>[ke(_.$slots,"default",{dayValue:l.value,disabled:f.value,today:u.value,selected:v.value,outsideView:d.value,outsideVisibleView:c.value,unavailable:i.value},()=>[_e($(l.value),1)])]),_:3},8,["as","as-child","aria-label","aria-disabled","data-selected","data-value","data-disabled","data-unavailable","data-today","data-outside-view","data-outside-visible-view","data-focused","tabindex"]))}}),D5=T5,O5=ae({__name:"CalendarGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"table"}},setup(e){const t=e,n=oo(),a=b(()=>n.disabled.value?!0:void 0),r=b(()=>n.readonly.value?!0:void 0);return(l,o)=>(p(),j(s(Qe),je(t,{tabindex:"-1",role:"application","aria-readonly":r.value,"aria-disabled":a.value,"data-readonly":r.value&&"","data-disabled":a.value&&""}),{default:F(()=>[ke(l.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),M5=O5,P5=ae({__name:"CalendarGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tbody"}},setup(e){const t=e;return(n,a)=>(p(),j(s(Qe),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),I5=P5,R5=ae({__name:"CalendarGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"thead"}},setup(e){const t=e;return(n,a)=>(p(),j(s(Qe),je(t,{"aria-hidden":"true"}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),q5=R5,L5=ae({__name:"CalendarGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tr"}},setup(e){const t=e;return(n,a)=>(p(),j(s(Qe),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),N5=L5,B5=ae({__name:"CalendarHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"th"}},setup(e){const t=e;return(n,a)=>(p(),j(s(Qe),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),F5=B5,V5=ae({__name:"CalendarHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e;return(n,a)=>(p(),j(s(Qe),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),z5=V5,j5=ae({__name:"CalendarHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=oo();return(a,r)=>(p(),j(s(Qe),je(t,{"data-disabled":s(n).disabled.value?"":void 0}),{default:F(()=>[ke(a.$slots,"default",{headingValue:s(n).headingValue.value},()=>[_e($(s(n).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),U5=j5,H5=ae({__name:"CalendarNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=b(()=>a.disabled.value||a.isNextButtonDisabled(t.nextPage)),a=oo();function r(){n.value||a.nextPage(t.nextPage)}return(l,o)=>(p(),j(s(Qe),{as:t.as,"as-child":t.asChild,"aria-label":"Next page",type:t.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:r},{default:F(()=>[ke(l.$slots,"default",{disabled:n.value},()=>[o[0]||(o[0]=_e(" Next page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),K5=H5,W5=ae({__name:"CalendarPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=b(()=>a.disabled.value||a.isPrevButtonDisabled(t.prevPage)),a=oo();function r(){n.value||a.prevPage(t.prevPage)}return(l,o)=>(p(),j(s(Qe),{"aria-label":"Previous page",as:t.as,"as-child":t.asChild,type:t.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:r},{default:F(()=>[ke(l.$slots,"default",{disabled:n.value},()=>[o[0]||(o[0]=_e(" Prev page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),G5=W5;const[Y5,J5]=Dt("RovingFocusGroup");var Z5=ae({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const a=e,r=n,{loop:l,orientation:o,dir:i}=Ht(a),u=ha(i),d=qt(a,"currentTabStopId",r,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),c=T(!1),f=T(!1),m=T(0),{getItems:v,CollectionSlot:h}=zf({isProvider:!0});function w(_){const D=!f.value;if(_.currentTarget&&_.target===_.currentTarget&&D&&!c.value){const B=new CustomEvent(R4,q4);if(_.currentTarget.dispatchEvent(B),r("entryFocus",B),!B.defaultPrevented){const O=v().map(C=>C.ref).filter(C=>C.dataset.disabled!==""),A=O.find(C=>C.getAttribute("data-active")===""),I=O.find(C=>C.getAttribute("data-highlighted")===""),q=O.find(C=>C.id===d.value),U=[A,I,q,...O].filter(Boolean);r1(U,a.preventScrollOnEntryFocus)}}f.value=!1}function S(){setTimeout(()=>{f.value=!1},1)}return t({getItems:v}),J5({loop:l,dir:u,orientation:o,currentTabStopId:d,onItemFocus:_=>{d.value=_},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{m.value++},onFocusableItemRemove:()=>{m.value--}}),(_,D)=>(p(),j(s(h),null,{default:F(()=>[N(s(Qe),{tabindex:c.value||m.value===0?-1:0,"data-orientation":s(o),as:_.as,"as-child":_.asChild,dir:s(u),style:{outline:"none"},onMousedown:D[0]||(D[0]=B=>f.value=!0),onMouseup:S,onFocus:w,onBlur:D[1]||(D[1]=B=>c.value=!1)},{default:F(()=>[ke(_.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Du=Z5,X5=ae({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Y5(),a=Na(),r=b(()=>t.tabStopId||a),l=b(()=>n.currentTabStopId.value===r.value),{getItems:o,CollectionItem:i}=zf();wt(()=>{t.focusable&&n.onFocusableItemAdd()}),Va(()=>{t.focusable&&n.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){n.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const c=B4(d,n.orientation.value,n.dir.value);if(c!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!t.allowShiftKey&&d.shiftKey)return;d.preventDefault();let f=[...o().map(m=>m.ref).filter(m=>m.dataset.disabled!=="")];if(c==="last")f.reverse();else if(c==="prev"||c==="next"){c==="prev"&&f.reverse();const m=f.indexOf(d.currentTarget);f=n.loop.value?F4(f,m+1):f.slice(m+1)}We(()=>r1(f))}}return(d,c)=>(p(),j(s(i),null,{default:F(()=>[N(s(Qe),{tabindex:l.value?0:-1,"data-orientation":s(n).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:c[0]||(c[0]=f=>{d.focusable?s(n).onItemFocus(r.value):f.preventDefault()}),onFocus:c[1]||(c[1]=f=>s(n).onItemFocus(r.value)),onKeydown:u},{default:F(()=>[ke(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Ou=X5;const[Q5]=Dt("CheckboxGroupRoot");function tp(e){return e==="indeterminate"}function w1(e){return tp(e)?"indeterminate":e?"checked":"unchecked"}const[eD,tD]=Dt("CheckboxRoot");var nD=ae({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:"on"},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=Ze(),o=Q5(null),i=qt(n,"modelValue",a,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),u=b(()=>o?.disabled.value||n.disabled),d=b(()=>os(i.value,n.trueValue)),c=b(()=>xn(o?.modelValue.value)?i.value==="indeterminate"?"indeterminate":d.value:em(o.modelValue.value,n.value));function f(){if(xn(o?.modelValue.value))i.value==="indeterminate"?i.value=n.trueValue:i.value=d.value?n.falseValue:n.trueValue;else{const h=[...o.modelValue.value||[]];if(em(h,n.value)){const w=h.findIndex(S=>os(S,n.value));h.splice(w,1)}else h.push(n.value);o.modelValue.value=h}}const m=Nf(l),v=b(()=>n.id&&l.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return tD({disabled:u,state:c}),(h,w)=>(p(),j(Kt(s(o)?.rovingFocus.value?s(Ou):s(Qe)),je(h.$attrs,{id:h.id,ref:s(r),role:"checkbox","as-child":h.asChild,as:h.as,type:h.as==="button"?"button":void 0,"aria-checked":s(tp)(c.value)?"mixed":c.value,"aria-required":h.required,"aria-label":h.$attrs["aria-label"]||v.value,"data-state":s(w1)(c.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:s(o)?.rovingFocus.value?!u.value:void 0,onKeydown:da(mt(()=>{},["prevent"]),["enter"]),onClick:f}),{default:F(()=>[ke(h.$slots,"default",{modelValue:s(i),state:c.value}),s(m)&&h.name&&!s(o)?(p(),j(s(Uf),{key:0,type:"checkbox",checked:!!c.value,name:h.name,value:h.value,disabled:u.value,required:h.required},null,8,["checked","name","value","disabled","required"])):Z("v-if",!0)]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"]))}}),aD=nD,rD=ae({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const{forwardRef:t}=Ze(),n=eD();return(a,r)=>(p(),j(s(ul),{present:a.forceMount||s(tp)(s(n).state.value)||s(n).state.value===!0},{default:F(()=>[N(s(Qe),je({ref:s(t),"data-state":s(w1)(s(n).state.value),"data-disabled":s(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":a.asChild,as:a.as},a.$attrs),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),lD=rD,oD=ae({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(Hf),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),sD=oD;function iD(){const e=T(!1);return wt(()=>{Ql("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),Ql(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const uD=vb(iD),[Mu,cD]=Dt(["MenuRoot","MenuSub"],"MenuContext"),[np,dD]=Dt("MenuRoot");var fD=ae({__name:"MenuRoot",props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,a=t,{modal:r,dir:l}=Ht(n),o=ha(l),i=qt(n,"open",a),u=T(),d=uD();return cD({open:i,onOpenChange:c=>{i.value=c},content:u,onContentChange:c=>{u.value=c}}),dD({onClose:()=>{i.value=!1},isUsingKeyboardRef:d,dir:o,modal:r}),(c,f)=>(p(),j(s(o1),null,{default:F(()=>[ke(c.$slots,"default")]),_:3}))}}),pD=fD;const[$1,vD]=Dt("MenuContent");var mD=ae({__name:"MenuContentImpl",props:Fy({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...y1}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,a=t,r=Mu(),l=np(),{trapFocus:o,disableOutsidePointerEvents:i,loop:u}=Ht(n);Yb(),$f(i.value);const d=T(""),c=T(0),f=T(0),m=T(null),v=T("right"),h=T(0),w=T(null),S=T(),{forwardRef:_,currentElement:D}=Ze(),{handleTypeaheadSearch:B}=OA(),O=T();function A(W){const H=nm(W,O.value||Gt(),D.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});H&&(O.value=H,H.scrollIntoView({block:"nearest"}))}function I(){O.value&&O.value.click()}const q=T(),U=T();Fe(O,W=>{U.value&&(W===void 0||W!==U.value.trigger.value)&&(U.value.onOpenChange(!1),U.value=void 0)}),Fe(D,W=>{r.onContentChange(W)}),Va(()=>{window.clearTimeout(c.value)});function C(W){return v.value===m.value?.side&&n4(W,m.value?.area)}async function P(W){a("openAutoFocus",W),!W.defaultPrevented&&(W.preventDefault(),D.value?.focus({preventScroll:!0}))}function z(W){if(W.defaultPrevented)return;const H=W.target,re=H.closest("[data-reka-menu-content]")===W.currentTarget,le=["input","textarea"].includes(H.tagName.toLowerCase()),ge=W.ctrlKey||W.altKey||W.metaKey,ye=W.key.length===1,ve=nm(W,Gt(),D.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(ve)return ve?.focus();if(W.code==="Space")return;const oe=S.value?.getItems()??[];if(re&&(W.key==="Tab"&&W.preventDefault(),!ge&&ye&&!le&&B(W.key,oe)),W.target!==D.value||!QA.includes(W.key))return;W.preventDefault();const fe=[...oe.map(K=>K.ref)];Qb.includes(W.key)&&fe.reverse(),e4(fe)}function E(W){W?.currentTarget?.contains?.(W.target)||(window.clearTimeout(c.value),d.value="")}function L(W){if(!Ni(W))return;const H=W.target,re=h.value!==W.clientX;if(W?.currentTarget?.contains(H)&&re){const le=W.clientX>h.value?"right":"left";v.value=le,h.value=W.clientX}}function G(W){Ni(W)&&q.value&&q.value.focus()}return vD({onItemEnter:W=>!!C(W),onItemLeave:W=>C(W)?!0:(["INPUT","TEXTAREA"].includes(Gt()?.tagName||"")||D.value?.focus(),w.value=null,!1),onTriggerLeave:W=>!!C(W),searchRef:d,highlightedElement:O,onKeydownNavigation:A,onKeydownEnter:I,filterElement:q,onFilterElementChange:W=>{q.value=W},activeSubmenuContext:U,pointerGraceTimerRef:f,onPointerGraceIntentChange:W=>{m.value=W}}),(W,H)=>(p(),j(s(Vf),{"as-child":"",trapped:s(o),onMountAutoFocus:P,onUnmountAutoFocus:H[7]||(H[7]=re=>a("closeAutoFocus",re))},{default:F(()=>[N(s(Ff),{"as-child":"","disable-outside-pointer-events":s(i),onEscapeKeyDown:H[2]||(H[2]=re=>a("escapeKeyDown",re)),onPointerDownOutside:H[3]||(H[3]=re=>a("pointerDownOutside",re)),onFocusOutside:H[4]||(H[4]=re=>a("focusOutside",re)),onInteractOutside:H[5]||(H[5]=re=>a("interactOutside",re)),onDismiss:H[6]||(H[6]=re=>a("dismiss"))},{default:F(()=>[N(s(Du),{ref_key:"rovingFocusGroupRef",ref:S,"current-tab-stop-id":w.value,"onUpdate:currentTabStopId":H[0]||(H[0]=re=>w.value=re),"as-child":"",orientation:"vertical",dir:s(l).dir.value,loop:s(u),onEntryFocus:H[1]||(H[1]=re=>{a("entryFocus",re),s(l).isUsingKeyboardRef.value||re.preventDefault()})},{default:F(()=>[N(s(g1),{ref:s(_),role:"menu",as:W.as,"as-child":W.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":s(e1)(s(r).open.value),dir:s(l).dir.value,side:W.side,"side-offset":W.sideOffset,align:W.align,"align-offset":W.alignOffset,"avoid-collisions":W.avoidCollisions,"collision-boundary":W.collisionBoundary,"collision-padding":W.collisionPadding,"arrow-padding":W.arrowPadding,"prioritize-position":W.prioritizePosition,"position-strategy":W.positionStrategy,"update-position-strategy":W.updatePositionStrategy,sticky:W.sticky,"hide-when-detached":W.hideWhenDetached,reference:W.reference,onKeydown:z,onBlur:E,onPointermove:L,onPointerenter:G},{default:F(()=>[ke(W.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","position-strategy","update-position-strategy","sticky","hide-when-detached","reference"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),C1=mD,hD=ae({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=$1(),{forwardRef:a,currentElement:r}=Ze(),{CollectionItem:l}=zf(),o=T(!1),i=b(()=>o.value||r.value!=null&&n.highlightedElement.value===r.value);async function u(c){if(!(c.defaultPrevented||!Ni(c))){if(t.disabled)n.onItemLeave(c);else if(!n.onItemEnter(c)){const m=c.currentTarget;n.highlightedElement.value=m,["INPUT","TEXTAREA"].includes(Gt()?.tagName||"")||m.focus({preventScroll:!0})}}}async function d(c){if(await We(),c.defaultPrevented||!Ni(c)||n.highlightedElement.value!==r.value)return;!n.onItemLeave(c)&&n.highlightedElement.value===r.value&&(n.highlightedElement.value=void 0)}return(c,f)=>(p(),j(s(l),{value:{textValue:c.textValue}},{default:F(()=>[N(s(Qe),je({ref:s(a),role:"menuitem",tabindex:"-1"},c.$attrs,{as:c.as,"as-child":c.asChild,"aria-disabled":c.disabled||void 0,"data-disabled":c.disabled?"":void 0,"data-highlighted":i.value?"":void 0,onPointermove:u,onPointerleave:d,onFocus:f[0]||(f[0]=async m=>{await We(),!(m.defaultPrevented||c.disabled)&&(o.value=!0,s(n).highlightedElement.value=m.currentTarget)}),onBlur:f[1]||(f[1]=async m=>{await We(),!m.defaultPrevented&&(o.value=!1)})}),{default:F(()=>[ke(c.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),yD=hD,gD=ae({__name:"MenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=Ze(),o=np(),i=$1(),u=T(!1);async function d(){const c=l.value;if(!n.disabled&&c){const f=new CustomEvent(ZA,{bubbles:!0,cancelable:!0});a("select",f),await We(),f.defaultPrevented?u.value=!1:o.onClose()}}return(c,f)=>(p(),j(yD,je(n,{ref:s(r),onClick:d,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async m=>{await We(),!m.defaultPrevented&&(u.value||m.currentTarget?.click())}),onKeydown:f[2]||(f[2]=async m=>{const v=s(i).searchRef.value!=="";c.disabled||v&&m.key===" "||s(Td).includes(m.key)&&(m.currentTarget?.click(),m.preventDefault())})}),{default:F(()=>[ke(c.$slots,"default")]),_:3},16))}}),S1=gD;const[bD,_D]=Dt(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext");var xD=ae({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=bD({modelValue:T(!1)});return(n,a)=>(p(),j(s(ul),{present:n.forceMount||s(t1)(s(t).modelValue.value)||s(t).modelValue.value===!0},{default:F(()=>[N(s(Qe),{as:n.as,"as-child":n.asChild,"data-state":s(n1)(s(t).modelValue.value)},{default:F(()=>[ke(n.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),kD=xD,wD=ae({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=ya(n,a),l=Mu(),{forwardRef:o,currentElement:i}=Ze();return Bf(i),(u,d)=>(p(),j(C1,je(s(r),{ref:s(o),"trap-focus":s(l).open.value,"disable-outside-pointer-events":s(l).open.value,"disable-outside-scroll":!0,onDismiss:d[0]||(d[0]=c=>s(l).onOpenChange(!1)),onFocusOutside:d[1]||(d[1]=mt(c=>a("focusOutside",c),["prevent"]))}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),$D=wD,CD=ae({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=ya(e,t),l=Mu();return(o,i)=>(p(),j(C1,je(s(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:i[0]||(i[0]=u=>s(l).onOpenChange(!1))}),{default:F(()=>[ke(o.$slots,"default")]),_:3},16))}}),SD=CD,ED=ae({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=ya(e,t),l=Mu(),o=np();return(i,u)=>(p(),j(s(ul),{present:i.forceMount||s(l).open.value},{default:F(()=>[s(o).modal.value?(p(),j($D,ot(je({key:0},{...i.$attrs,...s(r)})),{default:F(()=>[ke(i.$slots,"default")]),_:3},16)):(p(),j(SD,ot(je({key:1},{...i.$attrs,...s(r)})),{default:F(()=>[ke(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),AD=ED;const[TD,DD]=Dt("MenuGroup");var OD=ae({__name:"MenuGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Na(void 0,"reka-menu-group");return DD({id:n}),(a,r)=>(p(),j(s(Qe),je({role:"group"},t,{"aria-labelledby":s(n)}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),MD=OD,PD=ae({__name:"MenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=TD({id:""});return(a,r)=>(p(),j(s(Qe),je(t,{id:s(n).id||void 0}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["id"]))}}),ID=PD,RD=ae({__name:"MenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s($u),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),qD=RD;const[LD,ND]=Dt("MenuRadioGroup");var BD=ae({__name:"MenuRadioGroup",props:{modelValue:{type:null,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=xf(n,["modelValue"]),l=ku(r),o=qt(n,"modelValue",a);return ND({modelValue:o,onValueChange:i=>{o.value=i}}),(i,u)=>(p(),j(MD,ot(ut(s(l))),{default:F(()=>[ke(i.$slots,"default",{modelValue:s(o)})]),_:3},16))}}),FD=BD,VD=ae({__name:"MenuRadioItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,a=t,r=xf(n,["value"]),l=ku(r),{value:o}=Ht(n),i=LD(),u=b(()=>i.modelValue.value===o?.value);return _D({modelValue:u}),(d,c)=>(p(),j(S1,je({role:"menuitemradio"},s(l),{"aria-checked":u.value,"data-state":s(n1)(u.value),onSelect:c[0]||(c[0]=async f=>{a("select",f),s(i).onValueChange(s(o))})}),{default:F(()=>[ke(d.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),zD=VD,jD=ae({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(Qe),je(t,{role:"separator","aria-orientation":"horizontal"}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),UD=jD;const[HD,KD]=Dt("DateFieldRoot");var WD=ae({inheritAttrs:!1,__name:"DateFieldRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},modelValue:{type:null,required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},isDateUnavailable:{type:Function,required:!1,default:void 0},id:{type:String,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:n}){const a=e,r=n,{disabled:l,readonly:o,isDateUnavailable:i,granularity:u,defaultValue:d,dir:c,locale:f}=Ht(a),m=wu(f),v=ha(c),h=Lf(m.value,{hourCycle:us(a.hourCycle)}),{primitiveElement:w,currentElement:S}=tl(),_=T(new Set);wt(()=>{jm(S.value).forEach(K=>_.value.add(K))});const D=qt(a,"modelValue",r,{defaultValue:d.value,passive:a.modelValue===void 0}),B=qf({defaultPlaceholder:a.placeholder,granularity:u.value,defaultValue:D.value,locale:a.locale}),O=qt(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??B.copy(),passive:a.placeholder===void 0}),A=b(()=>Hb(a)),I=b(()=>a.granularity?Ed(O.value)?a.granularity:"day":Ed(O.value)?"minute":"day"),q=b(()=>D.value?!!(i.value?.(D.value)||a.minValue&&ir(D.value,a.minValue)||a.maxValue&&ir(a.maxValue,D.value)):!1),U=t5(I.value),C=T(D.value?{...zm({value:D.value,formatter:h})}:{...U}),P=b(()=>x1({granularity:I.value,dateRef:O.value,formatter:h,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:C.value,locale:m})),z=b(()=>P.value.arr),E=b(()=>z.value.filter(({part:K})=>K!=="literal"));Fe(m,K=>{h.getLocale()!==K&&(h.setLocale(K),We(()=>{_.value.clear(),jm(S.value).forEach(we=>_.value.add(we))}))}),Fe(D,K=>{!xn(K)&&O.value.compare(K)!==0&&(O.value=K.copy())}),Fe([D,m],([K])=>{xn(K)?Object.values(C.value).every(we=>we!==null)&&xn(K)&&(C.value={...U}):C.value={...zm({value:K,formatter:h})}});const L=T(null),G=b(()=>Array.from(_.value).findIndex(K=>K.getAttribute("data-reka-date-field-segment")===L.value?.getAttribute("data-reka-date-field-segment"))),W=b(()=>{const K=v.value==="rtl"?-1:1;return(K<0?G.value<0:G.value>_.value.size-1)?null:Array.from(_.value)[G.value+K]}),H=b(()=>{const K=v.value==="rtl"?-1:1;return(K>0?G.value<0:G.value>_.value.size-1)?null:Array.from(_.value)[G.value-K]}),re=b(()=>Wb(I.value)),le=b(()=>_c(D.value,I.value)),ge=b(()=>a.maxValue?_c(a.maxValue,I.value):void 0),ye=b(()=>a.minValue?_c(a.minValue,I.value):void 0),ve=ro();function oe(K){K.isComposing||wa(K.key)&&(K.key===ve.ARROW_LEFT&&H.value?.focus(),K.key===ve.ARROW_RIGHT&&W.value?.focus())}function fe(K){L.value=K}return KD({isDateUnavailable:i.value,locale:m,modelValue:D,placeholder:O,disabled:l,formatter:h,hourCycle:a.hourCycle,step:A,readonly:o,segmentValues:C,isInvalid:q,segmentContents:E,elements:_,setFocusedElement:fe,focusNext(){W.value?.focus()}}),t({setFocusedElement:fe}),(K,we)=>(p(),j(s(Qe),je(K.$attrs,{ref_key:"primitiveElement",ref:w,role:"group","aria-disabled":s(l)?!0:void 0,"data-disabled":s(l)?"":void 0,"data-readonly":s(o)?"":void 0,"data-invalid":q.value?"":void 0,dir:s(v),onKeydown:da(oe,["left","right"])}),{default:F(()=>[ke(K.$slots,"default",{modelValue:s(D),segments:z.value,isInvalid:q.value}),N(s(jf),{id:K.id,as:"input",type:re.value,feature:"focusable",tabindex:"-1",value:le.value,name:K.name,disabled:s(l),required:K.required,max:ge.value,min:ye.value,onFocus:we[0]||(we[0]=me=>Array.from(_.value)?.[0]?.focus())},null,8,["id","type","value","name","disabled","required","max","min"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),GD=WD,YD=ae({__name:"DateFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=HD(),a=T(!0),r=T(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:u,handleSegmentCompositionEnd:d,attributes:c}=k1({hasLeftFocus:a,lastKeyZero:r,placeholder:n.placeholder,hourCycle:n.hourCycle,step:n.step,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),f=b(()=>n.disabled.value),m=b(()=>n.readonly.value),v=b(()=>n.isInvalid.value);return(h,w)=>(p(),j(s(Qe),je({as:h.as,"as-child":h.asChild},s(c),{contenteditable:f.value||m.value?!1:h.part!=="literal","data-reka-date-field-segment":h.part,"aria-disabled":f.value?!0:void 0,"aria-readonly":m.value?!0:void 0,"data-disabled":f.value?"":void 0,"data-invalid":v.value?"":void 0,"aria-invalid":v.value?!0:void 0},By(h.part!=="literal"?{mousedown:s(l),keydown:s(o),beforeinput:s(i),compositionstart:s(u),compositionend:s(d),focusout:()=>{a.value=!0},focusin:S=>{s(n).setFocusedElement(S.target)}}:{})),{default:F(()=>[ke(h.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),JD=YD;const[so,ZD]=Dt("PopoverRoot");var XD=ae({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,a=t,{modal:r}=Ht(n),l=qt(n,"open",a,{defaultValue:n.defaultOpen,passive:n.open===void 0});return ZD({contentId:"",triggerId:"",modal:r,open:l,onOpenChange:u=>{l.value=u},onOpenToggle:()=>{l.value=!l.value},triggerElement:T(),hasCustomAnchor:T(!1)}),(u,d)=>(p(),j(s(o1),null,{default:F(()=>[ke(u.$slots,"default",{open:s(l),close:()=>l.value=!1})]),_:3}))}}),E1=XD,QD=ae({__name:"PopoverAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;Ze();const n=so();return Iy(()=>{n.hasCustomAnchor.value=!0}),Va(()=>{n.hasCustomAnchor.value=!1}),(a,r)=>(p(),j(s(Hf),ot(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),eO=QD;const[ap,tO]=Dt("DatePickerRoot");var nO=ae({inheritAttrs:!1,__name:"DatePickerRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},modelValue:{type:null,required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},isDateUnavailable:{type:Function,required:!1,default:void 0},id:{type:String,required:!1},dir:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1},isDateDisabled:{type:Function,required:!1,default:void 0},pagedNavigation:{type:Boolean,required:!1,default:!1},weekStartsOn:{type:Number,required:!1},weekdayFormat:{type:String,required:!1,default:"narrow"},fixedWeeks:{type:Boolean,required:!1,default:!1},numberOfMonths:{type:Number,required:!1,default:1},preventDeselect:{type:Boolean,required:!1,default:!1},closeOnSelect:{type:Boolean,required:!1,default:!1}},emits:["update:open","update:modelValue","update:placeholder"],setup(e,{emit:t}){const n=e,a=t,{locale:r,disabled:l,readonly:o,pagedNavigation:i,weekdayFormat:u,fixedWeeks:d,numberOfMonths:c,preventDeselect:f,isDateDisabled:m,isDateUnavailable:v,defaultOpen:h,modal:w,id:S,name:_,required:D,minValue:B,maxValue:O,granularity:A,hideTimeZone:I,hourCycle:q,defaultValue:U,dir:C,step:P,closeOnSelect:z}=Ht(n),E=ha(C),L=wu(r),G=b(()=>n.weekStartsOn??Gb(L.value)),W=qt(n,"modelValue",a,{defaultValue:U.value,passive:n.modelValue===void 0}),H=b(()=>qf({defaultPlaceholder:n.placeholder,granularity:n.granularity,defaultValue:W.value,locale:L.value})),re=qt(n,"placeholder",a,{defaultValue:n.defaultPlaceholder??H.value.copy(),passive:n.placeholder===void 0}),le=qt(n,"open",a,{defaultValue:h.value,passive:n.open===void 0}),ge=T();function ye(ve){return"hour"in ve?ve.set({hour:0,minute:0,second:0,millisecond:0}):ve}return Fe(W,ve=>{ve&&ve.compare(re.value)!==0?re.value=ve.copy():!ve&&"hour"in re.value&&(re.value=ye(re.value)),z.value&&(le.value=!1)}),tO({isDateUnavailable:v.value,isDateDisabled:m.value,locale:L,disabled:l,pagedNavigation:i,weekStartsOn:G,weekdayFormat:u,fixedWeeks:d,numberOfMonths:c,readonly:o,preventDeselect:f,modelValue:W,placeholder:re,defaultOpen:h,modal:w,open:le,id:S,name:_,required:D,minValue:B,maxValue:O,granularity:A,hideTimeZone:I,hourCycle:q,dateFieldRef:ge,dir:E,step:P,onDateChange(ve){ve?W.value&&!f.value&&ve&&W.value.compare(ve)===0?W.value=void 0:W.value=ve.copy():W.value=void 0},onPlaceholderChange(ve){re.value=ve.copy()},closeOnSelect:z}),(ve,oe)=>(p(),j(s(E1),{open:s(le),"onUpdate:open":oe[0]||(oe[0]=fe=>Ot(le)?le.value=fe:null),"default-open":s(h),modal:s(w)},{default:F(()=>[ke(ve.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),aO=nO,rO=ae({__name:"DatePickerCalendar",setup(e){const t=ap();return(n,a)=>(p(),j(s(S5),je({isDateDisabled:s(t).isDateDisabled,isDateUnavailable:s(t).isDateUnavailable,minValue:s(t).minValue.value,maxValue:s(t).maxValue.value,locale:s(t).locale.value,disabled:s(t).disabled.value,pagedNavigation:s(t).pagedNavigation.value,weekStartsOn:s(t).weekStartsOn.value,weekdayFormat:s(t).weekdayFormat.value,fixedWeeks:s(t).fixedWeeks.value,numberOfMonths:s(t).numberOfMonths.value,readonly:s(t).readonly.value,preventDeselect:s(t).preventDeselect.value,dir:s(t).dir.value},{"model-value":s(t).modelValue.value,placeholder:s(t).placeholder.value,multiple:!1,"onUpdate:modelValue":a[0]||(a[0]=r=>{r&&s(t).modelValue.value&&s(jl)(r,s(t).modelValue.value)||s(t).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{s(jl)(r,s(t).placeholder.value)||s(t).onPlaceholderChange(r)})}),{default:F(({weekDays:r,grid:l,date:o,weekStartsOn:i,locale:u,fixedWeeks:d})=>[ke(n.$slots,"default",{date:o,grid:l,weekDays:r,weekStartsOn:i,locale:u,fixedWeeks:d})]),_:3},16,["model-value","placeholder"]))}}),lO=rO,oO=ae({__name:"DatePickerCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(A5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),sO=oO,iO=ae({__name:"DatePickerCellTrigger",props:{day:{type:null,required:!0},month:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(D5),ot(ut(t)),{default:F(r=>[ke(n.$slots,"default",ot(ut(r)))]),_:3},16))}}),uO=iO,cO=ae({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=ku(xf(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:l}=Ze(),o=so();return Yb(),(i,u)=>(p(),j(s(Vf),{"as-child":"",loop:"",trapped:i.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>a("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>a("closeAutoFocus",d))},{default:F(()=>[N(s(Ff),{"as-child":"","disable-outside-pointer-events":i.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=d=>a("pointerDownOutside",d)),onInteractOutside:u[1]||(u[1]=d=>a("interactOutside",d)),onEscapeKeyDown:u[2]||(u[2]=d=>a("escapeKeyDown",d)),onFocusOutside:u[3]||(u[3]=d=>a("focusOutside",d)),onDismiss:u[4]||(u[4]=d=>s(o).onOpenChange(!1))},{default:F(()=>[N(s(g1),je(s(r),{id:s(o).contentId,ref:s(l),"data-state":s(o).open.value?"open":"closed","aria-labelledby":s(o).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),A1=cO,dO=ae({__name:"PopoverContentModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=so(),l=T(!1);$f(!0);const o=ya(n,a),{forwardRef:i,currentElement:u}=Ze();return Bf(u),(d,c)=>(p(),j(A1,je(s(o),{ref:s(i),"trap-focus":s(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=mt(f=>{a("closeAutoFocus",f),l.value||s(r).triggerElement.value?.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=f=>{a("pointerDownOutside",f);const m=f.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,h=m.button===2||v;l.value=h}),onFocusOutside:c[2]||(c[2]=mt(()=>{},["prevent"]))}),{default:F(()=>[ke(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),fO=dO,pO=ae({__name:"PopoverContentNonModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=so(),l=T(!1),o=T(!1),i=ya(n,a);return(u,d)=>(p(),j(A1,je(s(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{a("closeAutoFocus",c),c.defaultPrevented||(l.value||s(r).triggerElement.value?.focus(),c.preventDefault()),l.value=!1,o.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{a("interactOutside",c),c.defaultPrevented||(l.value=!0,c.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const f=c.target;s(r).triggerElement.value?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.value&&c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16))}}),vO=pO,mO=ae({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=so(),l=ya(n,a),{forwardRef:o}=Ze();return r.contentId||=Na(void 0,"reka-popover-content"),(i,u)=>(p(),j(s(ul),{present:i.forceMount||s(r).open.value},{default:F(()=>[s(r).modal.value?(p(),j(fO,je({key:0},s(l),{ref:s(o)}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16)):(p(),j(vO,je({key:1},s(l),{ref:s(o)}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),T1=mO,hO=ae({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s($u),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),D1=hO,yO=ae({__name:"DatePickerContent",props:{portal:{type:Object,required:!1},forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>({...n,portal:void 0})),l=ya(r,a);return(o,i)=>(p(),j(s(D1),ot(ut(o.portal)),{default:F(()=>[N(s(T1),je({...s(l),...o.$attrs},{onOpenAutoFocus:i[0]||(i[0]=u=>{a("openAutoFocus",u),!u.defaultPrevented&&u.target&&(s(Kb)(u.target),u.preventDefault())})}),{default:F(()=>[ke(o.$slots,"default")]),_:3},16)]),_:3},16))}}),gO=yO,bO=ae({__name:"DatePickerField",setup(e){const t=ap();return(n,a)=>(p(),j(s(GD),je({ref:s(t).dateFieldRef,"model-value":s(t).modelValue.value,placeholder:s(t).placeholder.value},{id:s(t).id.value,name:s(t).name.value,disabled:s(t).disabled.value,minValue:s(t).minValue.value,maxValue:s(t).maxValue.value,readonly:s(t).readonly.value,hourCycle:s(t).hourCycle.value,granularity:s(t).granularity.value,hideTimeZone:s(t).hideTimeZone.value,locale:s(t).locale.value,isDateUnavailable:s(t).isDateUnavailable,required:s(t).required.value,dir:s(t).dir.value,step:s(t).step.value},{"onUpdate:modelValue":a[0]||(a[0]=r=>{r&&s(t).modelValue.value&&r.compare(s(t).modelValue.value)===0||s(t).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{r.compare(s(t).placeholder.value)!==0&&s(t).onPlaceholderChange(r)})}),{default:F(({segments:r,modelValue:l})=>[ke(n.$slots,"default",{segments:r,modelValue:l})]),_:3},16,["model-value","placeholder"]))}}),_O=bO,xO=ae({__name:"DatePickerGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(M5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),kO=xO,wO=ae({__name:"DatePickerGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(I5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),$O=wO,CO=ae({__name:"DatePickerGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(q5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),SO=CO,EO=ae({__name:"DatePickerGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(N5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),Hm=EO,AO=ae({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(F5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),TO=AO,DO=ae({__name:"DatePickerHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(z5),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),OO=DO,MO=ae({__name:"DatePickerHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(U5),ot(ut(t)),{default:F(({headingValue:r})=>[ke(n.$slots,"default",{headingValue:r},()=>[_e($(r),1)])]),_:3},16))}}),PO=MO,IO=ae({__name:"DatePickerInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(JD),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),RO=IO,qO=ae({__name:"DatePickerNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(K5),ot(ut(t)),{default:F(r=>[ke(n.$slots,"default",ot(ut(r)))]),_:3},16))}}),LO=qO,NO=ae({__name:"DatePickerPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(G5),ot(ut(t)),{default:F(r=>[ke(n.$slots,"default",ot(ut(r)))]),_:3},16))}}),BO=NO,FO=ae({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=so(),{forwardRef:a,currentElement:r}=Ze();return n.triggerId||=Na(void 0,"reka-popover-trigger"),wt(()=>{n.triggerElement.value=r.value}),(l,o)=>(p(),j(Kt(s(n).hasCustomAnchor.value?s(Qe):s(Hf)),{"as-child":""},{default:F(()=>[N(s(Qe),{id:s(n).triggerId,ref:s(a),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":s(n).open.value,"aria-controls":s(n).contentId,"data-state":s(n).open.value?"open":"closed",as:l.as,"as-child":t.asChild,onClick:s(n).onOpenToggle},{default:F(()=>[ke(l.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),VO=FO,zO=ae({__name:"DatePickerTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=ap();return(a,r)=>(p(),j(s(VO),je({"data-reka-date-field-segment":"trigger"},t,{disabled:s(n).disabled.value,onFocusin:r[0]||(r[0]=l=>{s(n).dateFieldRef.value?.setFocusedElement(l.target)})}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["disabled"]))}}),jO=zO;const[O1,UO]=Dt("DropdownMenuRoot");var HO=ae({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,a=t;Ze();const r=qt(n,"open",a,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=T(),{modal:o,dir:i}=Ht(n),u=ha(i);return UO({open:r,onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:l,contentId:"",modal:o,dir:u}),(d,c)=>(p(),j(s(pD),{open:s(r),"onUpdate:open":c[0]||(c[0]=f=>Ot(r)?r.value=f:null),dir:s(u),modal:s(o)},{default:F(()=>[ke(d.$slots,"default",{open:s(r)})]),_:3},8,["open","dir","modal"]))}}),M1=HO,KO=ae({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const r=ya(e,t);Ze();const l=O1(),o=T(!1);function i(u){u.defaultPrevented||(o.value||setTimeout(()=>{l.triggerElement.value?.focus()},0),o.value=!1,u.preventDefault())}return l.contentId||=Na(void 0,"reka-dropdown-menu-content"),(u,d)=>(p(),j(s(AD),je(s(r),{id:s(l).contentId,"aria-labelledby":s(l)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:i,onInteractOutside:d[0]||(d[0]=c=>{if(c.defaultPrevented)return;const f=c.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,v=f.button===2||m;(!s(l).modal.value||v)&&(o.value=!0),s(l).triggerElement.value?.contains(c.target)&&c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),P1=KO,WO=ae({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,r=il(t);return Ze(),(l,o)=>(p(),j(s(S1),ot(ut({...n,...s(r)})),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),Rd=WO,GO=ae({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ze(),(n,a)=>(p(),j(s(kD),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),YO=GO,JO=ae({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ze(),(n,a)=>(p(),j(s(ID),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),ZO=JO,XO=ae({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,a)=>(p(),j(s(qD),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),I1=XO,QO=ae({__name:"DropdownMenuRadioGroup",props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=il(t);return Ze(),(l,o)=>(p(),j(s(FD),ot(ut({...n,...s(r)})),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),eM=QO,tM=ae({__name:"DropdownMenuRadioItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=ya(e,t);return Ze(),(l,o)=>(p(),j(s(zD),ot(ut(s(r))),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),nM=tM,aM=ae({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ze(),(n,a)=>(p(),j(s(UD),ot(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),Km=aM,rM=ae({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=O1(),{forwardRef:a,currentElement:r}=Ze();return wt(()=>{n.triggerElement=r}),n.triggerId||=Na(void 0,"reka-dropdown-menu-trigger"),(l,o)=>(p(),j(s(sD),{"as-child":""},{default:F(()=>[N(s(Qe),{id:s(n).triggerId,ref:s(a),type:l.as==="button"?"button":void 0,"as-child":t.asChild,as:l.as,"aria-haspopup":"menu","aria-expanded":s(n).open.value,"aria-controls":s(n).open.value?s(n).contentId:void 0,"data-disabled":l.disabled?"":void 0,disabled:l.disabled,"data-state":s(n).open.value?"open":"closed",onClick:o[0]||(o[0]=async i=>{!l.disabled&&i.button===0&&i.ctrlKey===!1&&(s(n)?.onOpenToggle(),await We(),s(n).open.value&&i.preventDefault())}),onKeydown:o[1]||(o[1]=da(i=>{l.disabled||(["Enter"," "].includes(i.key)&&s(n).onOpenToggle(),i.key==="ArrowDown"&&s(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:F(()=>[ke(l.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),R1=rM;const fs=100,[lM,oM]=Dt("ProgressRoot"),zi=e=>typeof e=="number";function sM(e,t){return xn(e)||zi(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${fs} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`),null)}function iM(e){return zi(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${fs}\`.`),fs)}var uM=ae({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:fs},getValueLabel:{type:Function,required:!1,default:(e,t)=>zi(e)?`${Math.round(e/t*fs)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,a=t;Ze();const r=qt(n,"modelValue",a,{passive:n.modelValue===void 0}),l=qt(n,"max",a,{passive:n.max===void 0});Fe(()=>r.value,async i=>{const u=sM(i,n.max);u!==i&&(await We(),r.value=u)},{immediate:!0}),Fe(()=>n.max,i=>{const u=iM(n.max);u!==i&&(l.value=u)},{immediate:!0});const o=b(()=>xn(r.value)?"indeterminate":r.value===l.value?"complete":"loading");return oM({modelValue:r,max:l,progressState:o}),(i,u)=>(p(),j(s(Qe),{"as-child":i.asChild,as:i.as,"aria-valuemax":s(l),"aria-valuemin":0,"aria-valuenow":zi(s(r))?s(r):void 0,"aria-valuetext":i.getValueText?.(s(r),s(l)),"aria-label":i.getValueLabel(s(r),s(l)),role:"progressbar","data-state":o.value,"data-value":s(r)??void 0,"data-max":s(l)},{default:F(()=>[ke(i.$slots,"default",{modelValue:s(r)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),Dc=uM,cM=ae({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=lM();return Ze(),(a,r)=>(p(),j(s(Qe),je(t,{"data-state":s(n).progressState.value,"data-value":s(n).modelValue?.value??void 0,"data-max":s(n).max.value}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),Oc=cM;const dM="radio.select";function fM(e,t,n){_f(dM,n,{originalEvent:e,value:t})}var pM=ae({__name:"Radio",props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},checked:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:checked","select"],setup(e,{emit:t}){const n=e,a=t,r=qt(n,"checked",a,{passive:n.checked===void 0}),{value:l}=Ht(n),{forwardRef:o,currentElement:i}=Ze(),u=Nf(i),d=b(()=>n.id&&i.value?document.querySelector(`[for="${n.id}"]`)?.innerText??n.value:void 0);function c(f){n.disabled||fM(f,n.value,m=>{a("select",m),!m?.defaultPrevented&&(r.value=!0,u.value&&m.stopPropagation())})}return(f,m)=>(p(),j(s(Qe),je(f.$attrs,{id:f.id,ref:s(o),role:"radio",type:f.as==="button"?"button":void 0,as:f.as,"aria-checked":s(r),"aria-label":d.value,"as-child":f.asChild,disabled:f.disabled?"":void 0,"data-state":s(r)?"checked":"unchecked","data-disabled":f.disabled?"":void 0,value:s(l),required:f.required,name:f.name,onClick:mt(c,["stop"])}),{default:F(()=>[ke(f.$slots,"default",{checked:s(r)}),s(u)&&f.name?(p(),j(s(Uf),{key:0,type:"radio",tabindex:"-1",value:s(l),checked:!!s(r),name:f.name,disabled:f.disabled,required:f.required},null,8,["value","checked","name","disabled","required"])):Z("v-if",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),vM=pM;const[mM,hM]=Dt("RadioGroupRoot");var yM=ae({__name:"RadioGroupRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=Ze(),o=qt(n,"modelValue",a,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:i,loop:u,orientation:d,name:c,required:f,dir:m}=Ht(n),v=ha(m),h=Nf(l);return hM({modelValue:o,changeModelValue:w=>{o.value=w},disabled:i,loop:u,orientation:d,name:c?.value,required:f}),(w,S)=>(p(),j(s(Du),{"as-child":"",orientation:s(d),dir:s(v),loop:s(u)},{default:F(()=>[N(s(Qe),{ref:s(r),role:"radiogroup","data-disabled":s(i)?"":void 0,"as-child":w.asChild,as:w.as,"aria-orientation":s(d),"aria-required":s(f),dir:s(v)},{default:F(()=>[ke(w.$slots,"default",{modelValue:s(o)}),s(h)&&s(c)?(p(),j(s(Uf),{key:0,required:s(f),disabled:s(i),value:s(o),name:s(c)},null,8,["required","disabled","value","name"])):Z("v-if",!0)]),_:3},8,["data-disabled","as-child","as","aria-orientation","aria-required","dir"])]),_:3},8,["orientation","dir","loop"]))}}),q1=yM;const[KH,gM]=Dt("RadioGroupItem");var bM=ae({inheritAttrs:!1,__name:"RadioGroupItem",props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,a=t,{forwardRef:r,currentElement:l}=Ze(),o=mM(),i=b(()=>o.disabled.value||n.disabled),u=b(()=>o.required.value||n.required),d=b(()=>os(o.modelValue?.value,n.value));gM({disabled:i,checked:d});const c=T(!1),f=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];Ql("keydown",v=>{f.includes(v.key)&&(c.value=!0)}),Ql("keyup",()=>{c.value=!1});function m(){setTimeout(()=>{c.value&&l.value?.click()},0)}return(v,h)=>(p(),j(s(Ou),{checked:d.value,disabled:i.value,"as-child":"",focusable:!i.value,active:d.value},{default:F(()=>[N(vM,je({...v.$attrs,...n},{ref:s(r),checked:d.value,required:u.value,disabled:i.value,"onUpdate:checked":h[0]||(h[0]=w=>s(o).changeModelValue(v.value)),onSelect:h[1]||(h[1]=w=>a("select",w)),onKeydown:h[2]||(h[2]=da(mt(()=>{},["prevent"]),["enter"])),onFocus:m}),{default:F(()=>[ke(v.$slots,"default",{checked:d.value,required:u.value,disabled:i.value})]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),L1=bM,_M=ae({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function a(i){return n.includes(i)}const r=b(()=>a(t.orientation)?t.orientation:"horizontal"),l=b(()=>r.value==="vertical"?t.orientation:void 0),o=b(()=>t.decorative?{role:"none"}:{"aria-orientation":l.value,role:"separator"});return(i,u)=>(p(),j(s(Qe),je({as:i.as,"as-child":i.asChild,"data-orientation":r.value},o.value),{default:F(()=>[ke(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),xM=_M;const[rp,kM]=Dt("TabsRoot");var wM=ae({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,{orientation:r,unmountOnHide:l,dir:o}=Ht(n),i=ha(o);Ze();const u=qt(n,"modelValue",a,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),d=T(),c=rl(new Set);return kM({modelValue:u,changeModelValue:f=>{u.value=f},orientation:r,dir:i,unmountOnHide:l,activationMode:n.activationMode,baseId:Na(void 0,"reka-tabs"),tabsList:d,contentIds:c,registerContent:f=>{c.value=new Set([...c.value,f])},unregisterContent:f=>{const m=new Set(c.value);m.delete(f),c.value=m}}),(f,m)=>(p(),j(s(Qe),{dir:s(i),"data-orientation":s(r),"as-child":f.asChild,as:f.as},{default:F(()=>[ke(f.$slots,"default",{modelValue:s(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),$M=wM;function N1(e,t){return`${e}-trigger-${t}`}function B1(e,t){return`${e}-content-${t}`}var CM=ae({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=Ze(),a=rp(),r=b(()=>N1(a.baseId,t.value)),l=b(()=>B1(a.baseId,t.value)),o=b(()=>t.value===a.modelValue.value),i=T(o.value);return wt(()=>{a.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),Et(()=>{a.unregisterContent(t.value)}),(u,d)=>(p(),j(s(ul),{present:u.forceMount||o.value,"force-mount":""},{default:F(({present:c})=>[N(s(Qe),{id:l.value,ref:s(n),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":o.value?"active":"inactive","data-orientation":s(a).orientation.value,"aria-labelledby":r.value,hidden:!c,tabindex:"0",style:un({animationDuration:i.value?"0s":void 0})},{default:F(()=>[!s(a).unmountOnHide.value||c?ke(u.$slots,"default",{key:0}):Z("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Wm=CM,SM=ae({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=Ht(t),{forwardRef:a,currentElement:r}=Ze(),l=rp();return l.tabsList=r,(o,i)=>(p(),j(s(Du),{"as-child":"",orientation:s(l).orientation.value,dir:s(l).dir.value,loop:s(n)},{default:F(()=>[N(s(Qe),{ref:s(a),role:"tablist","as-child":o.asChild,as:o.as,"aria-orientation":s(l).orientation.value},{default:F(()=>[ke(o.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),EM=SM,AM=ae({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=Ze(),a=rp(),r=b(()=>N1(a.baseId,t.value)),l=b(()=>a.contentIds.value.has(t.value)?B1(a.baseId,t.value):void 0),o=b(()=>t.value===a.modelValue.value);return(i,u)=>(p(),j(s(Ou),{"as-child":"",focusable:!i.disabled,active:o.value},{default:F(()=>[N(s(Qe),{id:r.value,ref:s(n),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":o.value?"true":"false","aria-controls":l.value,"data-state":o.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":s(a).orientation.value,onMousedown:u[0]||(u[0]=mt(d=>{!i.disabled&&d.ctrlKey===!1?s(a).changeModelValue(i.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=da(d=>s(a).changeModelValue(i.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=s(a).activationMode!=="manual";!o.value&&!i.disabled&&d&&s(a).changeModelValue(i.value)})},{default:F(()=>[ke(i.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),Gm=AM;const[TM,DM]=Dt("TimeFieldRoot");function Gs(e,t=Ss(Yn())){return e&&"day"in e?e:fa(t,e)}var OM=ae({inheritAttrs:!1,__name:"TimeFieldRoot",props:{defaultValue:{type:Object,required:!1,default:void 0},defaultPlaceholder:{type:Object,required:!1},placeholder:{type:Object,required:!1,default:void 0},modelValue:{type:[Object,null],required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},stepSnapping:{type:Boolean,required:!1,default:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:Object,required:!1},minValue:{type:Object,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:n}){const a=e,r=n,{disabled:l,readonly:o,granularity:i,defaultValue:u,minValue:d,maxValue:c,stepSnapping:f,dir:m,locale:v}=Ht(a),h=wu(v),w=ha(m),S=Lf(h.value,{hourCycle:us(a.hourCycle)}),{primitiveElement:_,currentElement:D}=tl(),B=T(new Set),O=b(()=>Hb(a)),A=b(()=>d.value?Gs(d.value):void 0),I=b(()=>c.value?Gs(c.value):void 0);wt(()=>{Um(D.value).forEach(me=>B.value.add(me))});const q=qt(a,"modelValue",r,{defaultValue:u.value,passive:a.modelValue===void 0}),U=b({get(){return xn(q.value)?q.value:Gs(q.value)},set(me){return me?q.value=q.value&&"day"in q.value?me:new sa(me.hour,me.minute,me.second,q.value?.millisecond):q.value=me,me}}),C=xA({defaultPlaceholder:a.placeholder,defaultValue:q.value}),P=qt(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??C.copy(),passive:a.placeholder===void 0}),z=b({get(){return Gs(P.value)},set(me){return me&&(P.value="day"in P.value?me.copy():new sa(me.hour,me.minute,me.second,P.value?.millisecond)),me}}),E=b(()=>i.value?i.value:"minute"),L=b(()=>q.value?!!(A.value&&ir(U.value,A.value)||I.value&&ir(I.value,U.value)):!1),G=e5(E.value),W=T(q.value?{...Id({value:U.value,formatter:S})}:{...G}),H=b(()=>x1({granularity:E.value,dateRef:z.value,formatter:S,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:W.value,locale:h,isTimeValue:!0})),re=b(()=>{const me=H.value.arr;return a.hourCycle===12?me.map(Y=>{if(Y.part==="hour"&&"hour"in W.value){const de=W.value.hour;if(de!==null){const J=de===0?12:de>12?de-12:de;return{...Y,value:J.toString()}}}return Y}):me}),le=b(()=>re.value.filter(({part:me})=>me!=="literal"));Fe(h,me=>{S.getLocale()!==me&&(S.setLocale(me),We(()=>{B.value.clear(),Um(D.value).forEach(Y=>B.value.add(Y))}))}),Fe(U,me=>{!xn(me)&&(!jl(z.value,me)||z.value.compare(me)!==0)&&(P.value=me.copy())}),Fe([U,h],([me])=>{xn(me)?Object.values(W.value).every(Y=>Y!==null)&&xn(me)&&(W.value={...G}):W.value={...Id({value:me,formatter:S})}});const ge=T(null),ye=b(()=>Array.from(B.value).findIndex(me=>me.getAttribute("data-reka-time-field-segment")===ge.value?.getAttribute("data-reka-time-field-segment"))),ve=b(()=>{const me=w.value==="rtl"?-1:1;return(me<0?ye.value<0:ye.value>B.value.size-1)?null:Array.from(B.value)[ye.value+me]}),oe=b(()=>{const me=w.value==="rtl"?-1:1;return(me>0?ye.value<0:ye.value>B.value.size-1)?null:Array.from(B.value)[ye.value-me]}),fe=ro();function K(me){me.isComposing||wa(me.key)&&(me.key===fe.ARROW_LEFT&&oe.value?.focus(),me.key===fe.ARROW_RIGHT&&ve.value?.focus())}function we(me){ge.value=me}return DM({locale:h,modelValue:U,placeholder:z,disabled:l,formatter:S,hourCycle:a.hourCycle,step:O,stepSnapping:f,readonly:o,segmentValues:W,isInvalid:L,segmentContents:le,elements:B,setFocusedElement:we,focusNext(){ve.value?.focus()}}),t({setFocusedElement:we}),(me,Y)=>(p(),j(s(Qe),je(me.$attrs,{ref_key:"primitiveElement",ref:_,role:"group","aria-disabled":s(l)?!0:void 0,"data-disabled":s(l)?"":void 0,"data-readonly":s(o)?"":void 0,"data-invalid":L.value?"":void 0,dir:s(w),onKeydown:da(K,["left","right"])}),{default:F(()=>[ke(me.$slots,"default",{modelValue:s(q),segments:re.value,isInvalid:L.value}),N(s(jf),{id:me.id,as:"input",feature:"focusable",tabindex:"-1",value:s(q)?s(q).toString():"",name:me.name,disabled:s(l),required:me.required,onFocus:Y[0]||(Y[0]=de=>Array.from(B.value)?.[0]?.focus())},null,8,["id","value","name","disabled","required"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),Ym=OM,MM=ae({__name:"TimeFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=TM(),a=T(!0),r=T(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:u,handleSegmentCompositionEnd:d,handleSegmentFocusOut:c,attributes:f}=k1({hasLeftFocus:a,lastKeyZero:r,placeholder:n.placeholder,hourCycle:n.hourCycle,step:n.step,stepSnapping:n.stepSnapping,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),m=b(()=>n.disabled.value),v=b(()=>n.readonly.value),h=b(()=>n.isInvalid.value);return(w,S)=>(p(),j(s(Qe),je({as:w.as,"as-child":w.asChild},s(f),{contenteditable:m.value||v.value?!1:w.part!=="literal","data-reka-time-field-segment":w.part,"aria-disabled":m.value?!0:void 0,"aria-readonly":v.value?!0:void 0,"data-disabled":m.value?"":void 0,"data-invalid":h.value?"":void 0,"aria-invalid":h.value?!0:void 0},By(w.part!=="literal"?{mousedown:s(l),keydown:s(o),beforeinput:s(i),compositionstart:s(u),compositionend:s(d),focusout:()=>{a.value=!0,s(c)()},focusin:_=>{s(n).setFocusedElement(_.target)}}:{})),{default:F(()=>[ke(w.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-time-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),Jm=MM,PM=ae({__name:"ToolbarButton",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=Ze();return(a,r)=>(p(),j(s(Ou),{"as-child":"",focusable:!a.disabled},{default:F(()=>[N(s(Qe),je({ref:s(n),type:a.as==="button"?"button":void 0},t),{default:F(()=>[ke(a.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),wo=PM;const[IM,RM]=Dt("ToolbarRoot");var qM=ae({__name:"ToolbarRoot",props:{orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},loop:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{orientation:n,dir:a}=Ht(t),r=ha(a),{forwardRef:l}=Ze();return RM({orientation:n,dir:r}),(o,i)=>(p(),j(s(Du),{"as-child":"",orientation:s(n),dir:s(r),loop:o.loop},{default:F(()=>[N(s(Qe),{ref:s(l),role:"toolbar","aria-orientation":s(n),"as-child":o.asChild,as:o.as},{default:F(()=>[ke(o.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),LM=qM,NM=ae({__name:"ToolbarSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=IM();return Ze(),(a,r)=>(p(),j(xM,{orientation:s(n).orientation.value,"as-child":t.asChild,as:a.as},{default:F(()=>[ke(a.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),Mc=NM;const BM=/^filter\[(.+)\]$/,FM=/^[1-9]\d*$/;function kl(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function Zm(e){return FM.test(e)?Number(e):void 0}function F1(e){const t={},n=kl(e.search).trim();n!==""&&(t.search=n);const a=kl(e.sort).trim();if(a!==""){t.sort=a;const i=kl(e.dir);t.dir=i==="desc"?"desc":"asc"}const r=Zm(kl(e.page));r!==void 0&&(t.page=r);const l=Zm(kl(e.per_page));l!==void 0&&(t.per_page=l);const o={};for(const i of Object.keys(e).sort()){const u=BM.exec(i)?.[1],d=kl(e[i]);u&&d!==""&&(o[u]=d)}return Object.keys(o).length>0&&(t.filter=o),t}function ji(e){const t={};e.search&&(t.search=e.search),e.sort&&(t.sort=e.sort,t.dir=e.dir==="desc"?"desc":"asc"),e.page!==void 0&&e.page>1&&(t.page=String(e.page)),e.per_page!==void 0&&(t.per_page=String(e.per_page));for(const n of Object.keys(e.filter??{}).sort()){const a=e.filter?.[n];a!==void 0&&a!==""&&(t[`filter[${n}]`]=a)}return t}function Rl(e){return JSON.stringify(ji(e))}const V1="summer-admin.list:",VM=Rl({});let qd=null;function Pu(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function z1(e){return`${V1}${e}:`}function j1(e){return qd===null?null:z1(qd)+e}function Ld(e){try{Pu()?.removeItem(e)}catch{}}function Xm(e){const t=Pu();if(t)try{const n=[];for(let a=0;a!0);return}const n=z1(t);Xm(a=>!a.startsWith(n))}function zM(e){const t=j1(e);if(t===null)return{};let n=null;try{n=Pu()?.getItem(t)??null}catch{return{}}if(n===null)return{};let a;try{a=JSON.parse(n)}catch{return Ld(t),{}}return typeof a!="object"||a===null||Array.isArray(a)||Object.getPrototypeOf(a)!==Object.prototype||!Object.values(a).every(r=>typeof r=="string")?(Ld(t),{}):F1(a)}function Ys(e,t){const n=j1(e);if(n!==null){if(Rl(t)===VM){Ld(n);return}try{Pu()?.setItem(n,JSON.stringify(ji(t)))}catch{}}}const Yr=T(null),U1=T(null);let Jo=null;function H1(e){K1(),U1.value=e,!(e===null||e<=0)&&(Jo=setTimeout(()=>{Jo=null,sf()},e*800))}function K1(){Jo!==null&&(clearTimeout(Jo),Jo=null)}c2(H1);const on=Ct(Yr);async function jM(e,t){const{data:n,response:a}=await Re.POST("/auth/login",{body:{login:e,password:t}});return!a.ok||!n?!1:(H1(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function W1(){const{data:e,response:t}=await Re.GET("/auth/me");return Yr.value=t.ok&&e?e.data:null,lp(Yr.value?.id??null),await A3(Yr.value),Yr.value}function G1(e){if(!e)return"";const t=[e.first_name,e.last_name].map(n=>n.trim()).filter(Boolean);return t.length>0?t.slice(0,2).map(n=>n.charAt(0).toUpperCase()).join(""):e.login.slice(0,2).toUpperCase()}function Pc(e){Yr.value=e,lp(e.id)}function Y1(){K1(),Yr.value=null,U1.value=null,lp(null)}function UM(e){Y1();const t=e.currentRoute.value;t.name!=="login"&&e.push({name:"login",query:{redirect:t.fullPath}}).catch(()=>{})}async function HM(e){try{await Re.POST("/auth/logout")}catch{}finally{Y1(),h2([]),b2([])}e&&await e.replace({name:"login"}).catch(()=>{})}const KM=["src"],WM={key:1,class:"flex size-[34px] shrink-0 items-center justify-center rounded-full bg-accent text-[13px] font-bold text-on-accent","aria-hidden":"true","data-user-initials":""},GM={class:"flex flex-col leading-tight max-[1099px]:hidden","data-user-identity":""},YM={class:"font-semibold"},JM={key:0,class:"text-[12px] text-muted","data-user-role":""},ZM={class:"flex items-center gap-3 px-2 py-2"},XM=["src"],QM={key:1,class:"flex size-10 shrink-0 items-center justify-center rounded-full bg-accent text-[14px] font-bold text-on-accent","aria-hidden":"true"},e8={class:"flex min-w-0 flex-col leading-tight"},t8={class:"truncate font-bold"},n8={class:"truncate text-[13px] text-muted"},a8={class:"flex size-[18px] items-center justify-center"},r8=ae({__name:"UserMenu",setup(e){const t=Sr(),n=b(()=>{const m=on.value;if(!m)return"";const v=`${m.first_name} ${m.last_name}`.trim();return v===""?m.login:v}),a=b(()=>G1(on.value)),r=b(()=>on.value?.avatar?.thumb_url||on.value?.avatar?.url||""),l=b(()=>on.value?.role?.name??""),o=b(()=>w3.value||Wn.value);function i(m){try{const v=new Intl.DisplayNames([m],{type:"language"}).of(m);if(v&&v!==m)return v.charAt(0).toLocaleUpperCase(m)+v.slice(1)}catch{}return m.toUpperCase()}const u=b(()=>p2.value.map(m=>({code:m,name:i(m)})));function d(m){typeof m=="string"&&m!==""&&T3(m)}async function c(){await t.push({name:"account"}).catch(()=>{})}async function f(){await HM(t)}return(m,v)=>(p(),j(s(M1),{modal:!1},{default:F(()=>[N(s(R1),{"data-user-menu":"",disabled:!s(on),"aria-label":`${s(y)("backend::lang.nav.user_menu")}: ${n.value}`,class:"flex h-input items-center gap-2.5 rounded-inner px-2 text-left transition-colors duration-150 ease-out hover:bg-hover"},{default:F(()=>[r.value?(p(),g("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-[34px] shrink-0 rounded-full object-cover"},null,8,KM)):(p(),g("span",WM,$(a.value),1)),k("span",GM,[k("span",YM,$(n.value),1),l.value?(p(),g("span",JM,$(l.value),1)):Z("",!0)]),N(s(vr),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled","aria-label"]),N(s(I1),null,{default:F(()=>[N(s(P1),{"data-user-menu-content":"",align:"end","side-offset":8,class:"z-50 flex w-[280px] flex-col rounded-[14px] border border-border bg-surface p-2 text-text shadow-menu"},{default:F(()=>[k("div",ZM,[r.value?(p(),g("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-10 shrink-0 rounded-full object-cover"},null,8,XM)):(p(),g("span",QM,$(a.value),1)),k("span",e8,[k("span",t8,$(n.value),1),k("span",n8,$(s(on)?.email),1)])]),N(s(Rd),{"data-action":"account",class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:c},{default:F(()=>[N(s(r3),{size:18,"aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.myaccount.menu_label")),1)]),_:1}),u.value.length>1?(p(),g(pe,{key:0},[N(s(Km),{class:"my-1 h-px bg-border"}),N(s(ZO),{class:"px-3 pt-1 pb-1 text-[12px] font-semibold text-muted","data-language-label":""},{default:F(()=>[_e($(s(y)("backend::lang.nav.language")),1)]),_:1}),N(s(eM),{"model-value":o.value,"onUpdate:modelValue":d},{default:F(()=>[(p(!0),g(pe,null,Me(u.value,h=>(p(),j(s(nM),{key:h.code,value:h.code,"data-locale-option":h.code,lang:h.code,class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover"},{default:F(()=>[k("span",a8,[N(s(YO),null,{default:F(()=>[N(s(In),{size:18,"aria-hidden":"true"})]),_:1})]),k("span",null,$(h.name),1)]),_:2},1032,["value","data-locale-option","lang"]))),128))]),_:1},8,["model-value"])],64)):Z("",!0),N(s(Km),{class:"my-1 h-px bg-border"}),N(s(Rd),{"data-action":"logout",class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:f},{default:F(()=>[N(s(Jg),{size:18,"aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.auth.logout")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}}),l8=["role","data-tone"],o8={class:"font-medium"},s8=["aria-label","onClick"],i8=ae({__name:"Toast",setup(e){return(t,n)=>(p(),j(Ik,{tag:"div",name:"toast",class:"pointer-events-none fixed inset-x-0 bottom-[88px] z-50 flex flex-col items-center gap-2 px-4"},{default:F(()=>[(p(!0),g(pe,null,Me(s(x3),a=>(p(),g("div",{key:a.id,role:a.tone==="danger"?"alert":"status","data-tone":a.tone,class:"pointer-events-auto flex max-w-[560px] items-center gap-3 rounded-[14px] bg-[#1d2740] py-3 pr-2.5 pl-3.5 text-white shadow-toast"},[k("span",{class:he([a.tone==="danger"?"bg-[#f58a8a] text-[#1d2740]":"bg-accent text-on-accent","flex size-[26px] shrink-0 items-center justify-center rounded-full"]),"aria-hidden":"true"},[a.tone==="danger"?(p(),j(s(_t),{key:0,size:16})):(p(),j(s(In),{key:1,size:16}))],2),k("span",o8,$(a.text),1),k("button",{type:"button","aria-label":s(y)("backend::lang.form.close"),class:"flex size-8 items-center justify-center rounded-pager text-[#c3cbda] transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:r=>s(sb)(a.id)},[N(s(Xt),{size:16,"aria-hidden":"true"})],8,s8)],8,l8))),128))]),_:1}))}}),u8=[{combo:"mod+s",labelKey:"backend::lang.form.save"},{combo:"mod+enter",labelKey:"backend::lang.form.save_and_close"},{combo:"mod+shift+s",labelKey:"backend::lang.form.create_and_new"},{combo:"escape",labelKey:"backend::lang.shortcuts.leave"},{combo:"/",labelKey:"backend::lang.shortcuts.search"},{combo:"?",labelKey:"backend::lang.shortcuts.help"}],c8=new Set(["mod+s","mod+enter","mod+shift+s"]);function op(e){const t=typeof navigator>"u"?"":navigator.platform||"";return/mac|iphone|ipad|ipod/i.test(t)}function d8(e){if(/^[a-z]$/i.test(e.key))return e.key.toLowerCase();const t=/^Key([A-Z])$/.exec(e.code??"");return t?t[1].toLowerCase():""}function J1(e){if(e.isComposing)return null;if(e.ctrlKey||e.metaKey)return e.altKey?null:e.key==="Enter"?e.shiftKey?null:"mod+enter":d8(e)==="s"?e.shiftKey?"mod+shift+s":"mod+s":null;if(e.altKey)return null;switch(e.key){case"Escape":return"escape";case"/":return"/";case"?":return"?";default:return null}}function f8(e){if(!e||typeof e.closest!="function")return!1;const t=e;return t.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"])')!==null?!0:t.tagName.includes("-")&&t.closest('form, [role="form"]')!==null}function p8(e){return(typeof e.composedPath=="function"?e.composedPath():[])[0]??e.target}function Z1(e,t=op()){switch(e){case"mod+s":return t?["⌘","S"]:["Ctrl","S"];case"mod+enter":return t?["⌘","↩"]:["Ctrl","Enter"];case"mod+shift+s":return t?["⇧","⌘","S"]:["Ctrl","Shift","S"];case"escape":return["Esc"];default:return[e]}}function v8(e,t=op()){return Z1(e,t).join(t?"":"+")}function Bn(e,t,n=op()){return y("backend::lang.shortcuts.hint",{label:e,keys:v8(t,n)})}const Qm={"mod+s":"Control+S Meta+S","mod+enter":"Control+Enter Meta+Enter","mod+shift+s":"Control+Shift+S Meta+Shift+S",escape:"Escape","/":"/","?":"?"};function Iu(e){return e.split(/\s+/).filter(t=>t in Qm).map(t=>Qm[t]).join(" ")}function X1(e=document){return Array.from(e.querySelectorAll('[role="dialog"][aria-modal="true"], [role="alertdialog"]')).filter(n=>n.getAttribute("data-state")!=="closed").at(-1)??e}function sp(e,t){return t.querySelector(`[data-hotkey~="${e}"]`)}function m8(e=document){const t=X1(e);return u8.filter(n=>n.combo==="?"||sp(n.combo,t)!==null)}const ip=T(null),eh=Ct(ip);function h8(){ip.value=m8()}function Q1(){ip.value=null}function e0(e){return e.disabled===!0||e.getAttribute("aria-disabled")==="true"}function th(e){const t=J1(e);if(!t||!c8.has(t))return;t==="mod+s"&&e.preventDefault();const n=e.target?.ownerDocument??document,a=sp(t,X1(n));if(!a||(e.preventDefault(),e.stopPropagation(),e.repeat||e0(a)))return;const r=nh(n),l=r instanceof HTMLElement&&r!==a&&r!==n.body?r:null;l&&(a.focus({preventScroll:!0}),nh(n)===l&&l.blur()),a.click();const o=n.activeElement;l?.isConnected&&(o===a||o===n.body||o===null)&&l.focus({preventScroll:!0})}function nh(e=document){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function ah(e){const t=J1(e);if(t!=="escape"&&t!=="/"&&t!=="?"||e.defaultPrevented||f8(p8(e)))return;const n=e.target?.ownerDocument??document;if(n.querySelector("[data-dismissable-layer]"))return;if(t==="?"){e.preventDefault(),h8();return}const a=sp(t,n);!a||e0(a)||(e.preventDefault(),a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement?(a.focus(),a.select()):a.click())}let Js=0;function y8(){Js===0&&(window.addEventListener("keydown",th,!0),window.addEventListener("keydown",ah)),Js++;let e=!1;return()=>{e||(e=!0,Js--,Js===0&&(window.removeEventListener("keydown",th,!0),window.removeEventListener("keydown",ah)))}}const g8={class:"flex items-start gap-3"},b8={class:"flex min-w-0 flex-1 flex-col gap-1"},_8={class:"flex flex-col gap-2.5"},x8=["data-shortcut"],k8={class:"flex shrink-0 items-center gap-1"},w8={class:"text-right text-muted"},$8=ae({__name:"ShortcutHelpDialog",setup(e){function t(n){n||Q1()}return(n,a)=>(p(),j(s(Ar),{open:s(eh)!==null,"onUpdate:open":t},{default:F(()=>[N(s(cl),null,{default:F(()=>[N(s(Dr),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),N(s(Tr),{"data-shortcut-help":"","data-dialog-content":"","aria-modal":"true",class:"fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100vh-32px)] w-[calc(100%-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-modal bg-surface p-6 text-text shadow-pop"},{default:F(()=>[k("div",g8,[k("div",b8,[N(s(Or),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[_e($(s(y)("backend::lang.shortcuts.title")),1)]),_:1}),N(s(gr),{class:"text-muted"},{default:F(()=>[_e($(s(y)("backend::lang.shortcuts.description")),1)]),_:1})]),N(s(yr),{"data-action":"close","aria-label":s(y)("backend::lang.form.close"),class:"flex size-[34px] shrink-0 items-center justify-center rounded-tab bg-subtle text-muted hover:bg-hover hover:text-text"},{default:F(()=>[N(s(Xt),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),k("dl",_8,[(p(!0),g(pe,null,Me(s(eh)??[],r=>(p(),g("div",{key:r.combo,"data-shortcut":r.combo,class:"flex items-center justify-between gap-4"},[k("dt",k8,[(p(!0),g(pe,null,Me(s(Z1)(r.combo),l=>(p(),g("kbd",{key:l,class:"inline-flex min-w-6 items-center justify-center rounded-pager border border-border bg-subtle px-1.5 font-mono text-[13px]"},$(l),1))),128))]),k("dd",w8,$(s(y)(r.labelKey)),1)],8,x8))),128))])]),_:1})]),_:1})]),_:1},8,["open"]))}}),C8={class:"flex min-w-0 flex-1 flex-col"},S8={class:"flex h-header shrink-0 items-center justify-between gap-4 border-b border-border bg-surface pr-6 pl-8"},E8={class:"flex shrink-0 items-center gap-1"},A8=["title","aria-label"],T8={class:"min-w-0 flex-1 px-8 py-7"},D8=ae({__name:"AppShell",setup(e){const t=Rn(),{collapsed:n,watchViewport:a}=fb(),r=a();Et(r);const l=y8();Et(()=>{l(),Q1()});const o=`${window.location.origin}/`,i=b(()=>_s(String(t.params.vendor??""),String(t.params.plugin??""))),u=b(()=>i.value?null:t.name==="settings-form"?oc(rs(String(t.params.code??""))):t.name==="plugins"?oc(qg(t.path)):oc(pu(no(t.path)))),d=b(()=>(i.value||u.value)&&!n.value?"calc(var(--spacing-rail) + var(--spacing-panel))":"var(--spacing-rail)");return(c,f)=>(p(),g("div",{class:"flex min-h-screen bg-bg text-text",style:un({"--shell-offset":d.value})},[N(j3),i.value&&!s(n)?(p(),j(G3,{key:0,entry:i.value},null,8,["entry"])):u.value&&!s(n)?(p(),j(Q3,{key:1,section:u.value},null,8,["section"])):Z("",!0),k("div",C8,[k("header",S8,[N(aE),k("div",E8,[k("a",{"data-view-site":"",href:o,target:"_blank",rel:"noopener noreferrer",title:s(y)("backend::lang.nav.view_site"),"aria-label":s(y)("backend::lang.nav.view_site"),class:"flex size-input items-center justify-center rounded-inner text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text"},[N(s(Ug),{class:"size-[18px]","aria-hidden":"true"})],8,A8),N(r8)])]),k("main",T8,[ke(c.$slots,"default")])]),N(i8),N($8)],4))}}),O8=300*1e3,M8=30*1e3;function P8(e,t){return e!==""&&t!==""&&e!==t}async function I8(){try{const e=await globalThis.fetch(`${ll.base}/build.json`,{cache:"no-store",credentials:"same-origin"});if(!e.ok)return"";const t=await e.json();if(typeof t!="object"||t===null)return"";const n=t.build;return typeof n=="string"?n:""}catch{return""}}const up=T(!1);let t0="",n0="";const R8=Ct(up);function q8(e,t=ll.build){P8(t,e)&&e!==n0&&(t0=e,up.value=!0)}function L8(){n0=t0,up.value=!1}function N8(e={}){const t=e.booted??ll.build;if(t==="")return()=>{};const n=e.check??I8,a=e.interval??O8,r=e.minGap??M8,l=e.win??window,o=e.doc??document,i=e.now??Date.now;let u=!1,d=Number.NEGATIVE_INFINITY;const c=async()=>{if(!(o.visibilityState==="hidden"||u||i()-d{c().catch(()=>{})};o.addEventListener("visibilitychange",f),l.addEventListener("focus",f);const m=l.setInterval(f,a);return()=>{o.removeEventListener("visibilitychange",f),l.removeEventListener("focus",f),l.clearInterval(m)}}const B8={key:0,"data-update-banner":"",role:"status","aria-live":"polite",class:"fixed right-4 bottom-[88px] z-50 flex max-w-[420px] items-center gap-3 rounded-[14px] bg-[#1d2740] py-3 pr-2.5 pl-3.5 text-white shadow-toast"},F8={class:"font-medium"},V8=["aria-label"],z8=ae({__name:"UpdateBanner",setup(e){return(t,n)=>s(R8)?(p(),g("div",B8,[k("span",F8,$(s(y)("backend::lang.version.available")),1),k("button",{type:"button","data-update-reload":"",class:"shrink-0 rounded-pager bg-accent px-3 py-1.5 font-medium text-on-accent transition-opacity duration-150 ease-out hover:opacity-90",onClick:n[0]||(n[0]=a=>s(ub).reload())},$(s(y)("backend::lang.version.reload")),1),k("button",{type:"button","data-update-close":"","aria-label":s(y)("backend::lang.form.close"),class:"flex size-8 shrink-0 items-center justify-center rounded-pager text-[#c3cbda] transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:n[1]||(n[1]=a=>s(L8)())},[N(s(Xt),{size:16,"aria-hidden":"true"})],8,V8)])):Z("",!0)}}),a0=T(0),j8=Ct(a0);function U8(){a0.value++}const H8=ae({__name:"App",setup(e){const t=Rn(),n=b(()=>t.meta.shell===!0);return $n(()=>{document.title=x2(t)}),(a,r)=>(p(),g(pe,null,[n.value?(p(),j(D8,{key:0},{default:F(()=>[N(s(fd),null,{default:F(({Component:l,route:o})=>[(p(),j(Kt(l),{key:`${o.path}#${s(j8)}`}))]),_:1})]),_:1})):(p(),j(s(fd),{key:1})),N(z8)],64))}}),K8="data-summer-controller",r0="*",Ic=new Map,Nd=new Map;let l0="";function o0(){return`${ll.base}/assets/`}function s0(e){if(!e.startsWith(o0())||e.includes("\\"))return!1;for(const n of e){const a=n.codePointAt(0)??0;if(a<=32||a===127)return!1}return!(e.split(/[?#]/,1)[0]??"").split("/").some(n=>{const a=n.toLowerCase().replaceAll("%2e",".");return a==="."||a===".."})}function i0(e){if(!s0(e))return Promise.reject(new Error(`plugin script outside ${o0()}: ${e}`));const t=Ic.get(e);if(t)return t;const n=new Promise((a,r)=>{const l=document.createElement("script");l.type="module",l.addEventListener("load",()=>a(),{once:!0}),l.addEventListener("error",()=>{Ic.delete(e),l.remove(),r(new Error(`plugin script failed to load: ${e}`))},{once:!0}),l.src=e,document.head.appendChild(l)});return Ic.set(e,n),n}function u0(e,t){for(const n of t){const a=`${e} +${n}`;if(!s0(n)||Nd.has(a))continue;const r=document.createElement("link");r.rel="stylesheet",r.setAttribute(K8,e),r.disabled=!c0(e),r.href=n,Nd.set(a,{owner:e,link:r}),document.head.appendChild(r)}}function W8(e){l0=e;for(const{owner:t,link:n}of Nd.values())n.disabled=!c0(t)}function c0(e){return e===r0||e===l0}function G8(e){u0(r0,e)}async function cp(e,t){u0(e,t?.styles??[]);const n=t?.scripts??[],a=await Promise.allSettled(n.map(r=>i0(r)));return n.filter((r,l)=>a[l]?.status==="rejected")}const d0=new Map;async function f0(){let e=[];try{const{data:t,response:n}=await Re.GET("/field-types");e=n.ok&&t?t.data:[]}catch{return[]}for(const t of e){G8(t.styles??[]);const n=t.scripts??[];d0.set(t.element,Promise.allSettled(n.map(a=>i0(a))).then(a=>n.filter((r,l)=>a[l]?.status==="rejected")))}return e}function Y8(e){return d0.get(e)??Promise.resolve([])}const J8={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},Z8={class:"flex w-full max-w-[400px] flex-col gap-6"},X8={class:"flex items-center justify-center gap-3"},Q8={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},e6={class:"text-[22px] font-bold tracking-[-0.02em]"},t6={class:"flex flex-col gap-1.5"},n6={class:"font-semibold"},a6={class:"flex flex-col gap-1.5"},r6={class:"font-semibold"},l6=["aria-invalid"],o6={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},s6=["disabled"],i6=ae({__name:"LoginView",setup(e){const t=Rn(),n=Sr(),a=T(""),r=T(""),l=T(!1),o=T(!1);async function i(){if(!o.value){o.value=!0,l.value=!1;try{if(!await jM(a.value.trim(),r.value)||!await W1()){l.value=!0;return}r.value="",await Promise.all([Ig(),Rg().catch(()=>[]),f0()]),await n.replace(r_(t.query.redirect)??"/")}finally{o.value=!1}}}return(u,d)=>(p(),g("main",J8,[k("div",Z8,[k("div",X8,[k("span",Q8,[N(s(mu),{size:20,class:"text-accent","aria-hidden":"true"})]),d[2]||(d[2]=k("span",{class:"text-[18px] font-bold text-white"},[_e("Summer"),k("span",{class:"text-accent"},"CMS")],-1))]),k("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:mt(i,["prevent"])},[k("h1",e6,$(s(y)("backend::lang.auth.title")),1),k("label",t6,[k("span",n6,$(s(y)("backend::lang.auth.login")),1),zn(k("input",{"onUpdate:modelValue":d[0]||(d[0]=c=>a.value=c),name:"login",type:"text",autocomplete:"username",required:"",class:"h-input rounded-control border border-[#d2d8e2] bg-white px-3.5"},null,512),[[Xr,a.value]])]),k("label",a6,[k("span",r6,$(s(y)("backend::lang.auth.password")),1),zn(k("input",{"onUpdate:modelValue":d[1]||(d[1]=c=>r.value=c),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":l.value?"true":void 0,class:he([l.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,l6),[[Xr,r.value]])]),l.value?(p(),g("div",o6,[N(s(_t),{size:18,"aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.auth.invalid")),1)])):Z("",!0),k("button",{type:"submit",disabled:o.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},$(s(y)("backend::lang.auth.submit")),9,s6)],32)])]))}}),rh=/^\d+$/;function p0(e,t,n){const a=du(t),r=Kn(t);if(!a||!r)return"/";const o=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(c=>c!==""),i=[a.vendor,a.plugin,a.controller];if(!i.every((c,f)=>o[f]?.toLowerCase()===c.toLowerCase()))return r;const d=o.slice(i.length);if(d.length===0)return r;if(d.length===1&&d[0]==="create")return`${r}/create`;if(d.length===2&&d[0]==="update"){const c=d[1]===":id"?String(n??""):d[1]??"";return rh.test(c)?`${r}/${c}`:r}if(d.length===2&&d[0]==="preview"){const c=d[1]===":id"?String(n??""):d[1]??"";return rh.test(c)?`${r}/${c}/preview`:r}return r}const lh=/^[0-9]+$/;function u6(e,t){const n=e.replace(/[\s ]/g,"");if(n==="")return{value:null,error:null};let a=n,r=!1;a.startsWith("-")&&(r=!0,a=a.slice(1));const l=a.match(/[.,]/g)??[];if(l.length>1)return{value:null,error:"invalid"};const[o,i=""]=a.split(/[.,]/);if(!lh.test(o??"")||l.length===1&&!lh.test(i))return{value:null,error:"invalid"};if(i.replace(/0+$/,"").length>t)return{value:null,error:"too_precise"};const u=i===""?o:`${o}.${i}`;return{value:`${r?"-":""}${u}`,error:null}}function c6(e){const[t,n]=e.split(".");if(n===void 0||n.length<=2)return e;let a=n.length;for(;a>2&&n.charAt(a-1)==="0";)a-=1;return`${t}.${n.slice(0,a)}`}function d6(e){return new Intl.NumberFormat(e).formatToParts(1.1).find(n=>n.type==="decimal")?.value??"."}function v0(e,t,n,a=4){const r={minimumFractionDigits:2,maximumFractionDigits:Math.max(2,a)},l=t===""?{style:"decimal",...r}:{style:"currency",currency:t,currencyDisplay:"code",...r};let o;try{o=new Intl.NumberFormat(n,l)}catch{return`${new Intl.NumberFormat(n,{style:"decimal",...r}).format(e)} ${t}`.trim()}return o.format(e)}const f6={key:0,"data-switch":"true",class:"inline-flex h-6 items-center gap-1 rounded-pill bg-ok-bg px-2.5 text-[12px] font-semibold text-ok-text"},p6={key:1,"data-switch":"false",class:"inline-flex h-6 items-center rounded-pill border border-border-strong px-2.5 text-[12px] font-semibold text-muted"},v6={key:1,class:"text-muted","data-empty":""},m6={key:2,class:"text-[13px] text-muted tabular-nums"},h6={key:3,"data-money":"",class:"tabular-nums whitespace-nowrap"},wl=ae({__name:"CellValue",props:{column:{},value:{},row:{}},setup(e){const t=e;function n(v){return v==null||v===""}function a(v){return n(v)?"":Array.isArray(v)?v.map(a).filter(h=>h!=="").join(", "):typeof v=="boolean"?y(v?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof v=="object"?"":String(v)}function r(v){return String(v).padStart(2,"0")}function l(v){if(typeof v!="string"&&typeof v!="number")return"";const h=new Date(v);return Number.isNaN(h.getTime())?String(v):`${h.getFullYear()}-${r(h.getMonth()+1)}-${r(h.getDate())} ${r(h.getHours())}:${r(h.getMinutes())}`}function o(v){if(typeof v!="string")return"";const h=/^\d{4}-\d{2}-\d{2}/.exec(v.trim());return h?h[0]:v.trim()}function i(v){if(typeof v!="string")return"";const h=/(\d{2}):(\d{2})/.exec(v);return h?`${h[1]}:${h[2]}`:v.trim()}function u(v){return typeof v=="string"?v!==""&&v!=="0"&&v.toLowerCase()!=="false":!!v}function d(){if(t.column.currencyFrom){const v=t.row?.[t.column.currencyFrom];return typeof v=="string"?v.trim():""}return t.column.currency??""}function c(v){return typeof v!="string"||v.trim()===""?"":v0(v.trim(),d(),Wn.value,4)}const f=b(()=>t.column.type==="switch"?"switch":t.column.type==="money"?"money":t.column.type==="datetime"?"datetime":t.column.type==="date"?"date":t.column.type==="time"?"time":"text"),m=b(()=>{switch(f.value){case"datetime":return l(t.value);case"date":return o(t.value);case"time":return i(t.value);case"money":return c(t.value);default:return a(t.value)}});return(v,h)=>f.value==="switch"&&!n(e.value)?(p(),g(pe,{key:0},[u(e.value)?(p(),g("span",f6,[N(s(Bg),{size:14,"aria-hidden":"true"}),_e($(s(y)("backend::lang.list.column_switch_true")),1)])):(p(),g("span",p6,$(s(y)("backend::lang.list.column_switch_false")),1))],64)):m.value===""?(p(),g("span",v6,"—")):f.value==="datetime"||f.value==="date"||f.value==="time"?(p(),g("span",m6,$(m.value),1)):f.value==="money"?(p(),g("span",h6,$(m.value),1)):(p(),g(pe,{key:4},[_e($(m.value),1)],64))}}),y6={key:0,class:"flex shrink-0 gap-2"},g6=["data-row-state"],b6=ae({__name:"RowStateBadges",props:{states:{},labels:{}},setup(e){const t=e,n={deleted:"border border-border-strong text-muted",negative:"bg-danger-soft text-danger",disabled:"bg-subtle text-muted",customized:"border border-border-strong text-text",outdated:"bg-sel text-text"},a=["deleted","negative","disabled","customized","outdated"],r=b(()=>a.filter(l=>t.states.includes(l)));return(l,o)=>r.value.length>0?(p(),g("span",y6,[(p(!0),g(pe,null,Me(r.value,i=>(p(),g("span",{key:i,"data-row-state":i,class:he([n[i],"inline-flex h-6 shrink-0 items-center rounded-pill px-2.5 text-[12px] font-semibold whitespace-nowrap"])},$(e.labels[i]??i),11,g6))),128))])):Z("",!0)}}),_6={class:"overflow-x-auto"},x6={class:"sticky top-0 z-10"},k6={class:"h-row-head border-y border-border bg-subtle"},w6={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},$6=["aria-checked","aria-label","disabled"],C6=["aria-sort"],S6=["data-sort","onClick"],E6={key:1,class:"w-[56px] pr-5"},A6=["aria-busy"],T6={key:0,class:"pl-5"},D6={key:1,class:"pr-5"},O6={key:1},M6=["colspan"],P6={class:"text-muted"},I6=["aria-selected","data-row-states","onClick"],R6={key:0,"data-select":"",class:"pl-5"},q6=["aria-checked","aria-label","onClick"],L6={key:0,class:"flex items-center gap-3"},N6={"data-avatar":"",class:"flex size-[30px] shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold text-text","aria-hidden":"true"},B6=["onClick"],F6={key:1,class:"flex items-center gap-2"},V6={key:1,"data-trailing":"",class:"w-[56px] pr-5"},m0=ae({__name:"DataTable",props:{columns:{},rows:{},loading:{type:Boolean,default:!1},rowLink:{type:Function,default:void 0},selectable:{type:Boolean,default:!1},selected:{default:()=>[]},sortable:{type:Boolean,default:!1},sort:{default:null},variant:{default:"list"},openable:{type:Boolean,default:!1},trailing:{type:Boolean,default:!1},rowStates:{default:()=>({})},stateLabels:{default:()=>({})}},emits:["update:selected","sort","open"],setup(e,{emit:t}){const n=e,a=t,r=Sr();function l(G){const W=G.id;return typeof W=="number"||typeof W=="string"?W:null}function o(G,W){const H=l(G);return H===null?`row-${W}`:String(H)}function i(G){return n.rowLink?n.rowLink(G):null}function u(G,W){if(G.target?.closest("a, button, input, label, select"))return;if(n.openable){const le=G.currentTarget?.querySelector("[data-row-open]")??null;a("open",W,le);return}const re=i(W);re&&r.push(re)}const d=b(()=>n.rows.map(l).filter(G=>G!==null)),c=b(()=>new Set(n.selected.map(String))),f=b(()=>{const G=d.value,W=G.filter(H=>c.value.has(String(H))).length;return W===0?"false":W===G.length?"true":"mixed"});function m(G){const W=l(G);return W!==null&&c.value.has(String(W))}function v(){a("update:selected",f.value==="true"?[]:[...d.value])}function h(G){const W=l(G);W!==null&&(c.value.has(String(W))?a("update:selected",n.selected.filter(H=>String(H)!==String(W))):a("update:selected",[...n.selected,W]))}function w(G){if(n.sort?.column===G.key)return n.sort.dir==="desc"?"descending":"ascending"}function S(G){return n.sortable&&G.sortable}const _=b(()=>n.variant==="relation"),D=b(()=>_.value?"h-[56px]":"h-row"),B=b(()=>_.value?3:8);function O(G){return(typeof G=="string"||typeof G=="number"?String(G):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(H=>H.charAt(0).toUpperCase()).join("")}const A=["deleted","negative","disabled","customized","outdated"];function I(G){const W=l(G),H=W===null?void 0:n.rowStates[String(W)];return Array.isArray(H)?A.filter(re=>H.includes(re)):[]}function q(G,W,H=[]){const re=H.includes("deleted")||H.includes("disabled"),le=U(G);return W===0?[re?"font-semibold text-muted":"font-semibold",le].filter(Boolean).join(" "):[re||_.value||G.relation?"text-muted":"",le].filter(Boolean).join(" ")}function U(G){return G.type==="money"?"text-right":""}function C(G){return["min-w-0 truncate",G.includes("deleted")?"line-through":"no-underline",G.includes("negative")?"text-danger":G.includes("deleted")||G.includes("disabled")?"text-muted":"text-text"]}const P=b(()=>n.columns.filter(G=>!G.invisible)),z=b(()=>Math.max(P.value.length+(n.selectable?1:0)+(n.trailing?1:0),1));function E(G,W){a("open",W,G.currentTarget)}const L=["w-3/5","w-2/5","w-1/2","w-3/4","w-1/3","w-2/3","w-1/2","w-2/5"];return(G,W)=>(p(),g("div",_6,[k("table",{class:he([_.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[k("thead",x6,[k("tr",k6,[e.selectable?(p(),g("th",w6,[k("button",{type:"button",role:"checkbox","aria-checked":f.value,"aria-label":s(y)("backend::lang.list.select_all"),disabled:e.loading||d.value.length===0,class:he([f.value==="false"?"border-border-strong bg-surface":"border-primary bg-primary text-on-primary","flex size-[18px] items-center justify-center rounded-checkbox border disabled:opacity-60"]),onClick:v},[f.value==="mixed"?(p(),j(s(Zg),{key:0,size:14,"aria-hidden":"true"})):f.value==="true"?(p(),j(s(In),{key:1,size:14,"aria-hidden":"true"})):Z("",!0)],10,$6)])):Z("",!0),(p(!0),g(pe,null,Me(P.value,H=>(p(),g("th",{key:H.key,scope:"col","aria-sort":S(H)?w(H)??"none":void 0,class:he([[w(H)?"text-text":"text-muted",U(H)],"px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[S(H)?(p(),g("button",{key:0,type:"button","data-sort":H.key,class:"inline-flex items-center gap-1 font-semibold",onClick:re=>a("sort",H.key)},[_e($(H.label)+" ",1),w(H)==="ascending"?(p(),j(s(Fg),{key:0,size:14,"aria-hidden":"true"})):w(H)==="descending"?(p(),j(s(Lg),{key:1,size:14,"aria-hidden":"true"})):Z("",!0)],8,S6)):(p(),g(pe,{key:1},[_e($(H.label),1)],64))],10,C6))),128)),e.trailing?(p(),g("td",E6)):Z("",!0)])]),k("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(p(!0),g(pe,{key:0},Me(B.value,H=>(p(),g("tr",{key:`skeleton-${H}`,"data-skeleton":"",class:he([D.value,"border-b border-border"])},[e.selectable?(p(),g("td",T6,[...W[0]||(W[0]=[k("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):Z("",!0),(p(!0),g(pe,null,Me(P.value,re=>(p(),g("td",{key:re.key,class:"px-3.5 first:pl-5 last:pr-5"},[k("span",{class:he([L[(H-1)%L.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128)),e.trailing?(p(),g("td",D6)):Z("",!0)],2))),128)):e.rows.length===0?(p(),g("tr",O6,[k("td",{colspan:z.value,class:"px-5 py-20 text-center"},[ke(G.$slots,"empty",{},()=>[k("span",P6,$(s(y)("backend::lang.list.no_records")),1)])],8,M6)])):(p(!0),g(pe,{key:2},Me(e.rows,(H,re)=>(p(),g("tr",{key:o(H,re),class:he([[D.value,m(H)?"bg-sel":i(H)||e.openable?"hover:bg-hover":"",i(H)||e.openable?"cursor-pointer":""],"border-b border-border transition-colors duration-150 ease-out"]),"aria-selected":e.selectable?m(H)?"true":"false":void 0,"data-row-states":I(H).length>0?I(H).join(" "):void 0,onClick:le=>u(le,H)},[e.selectable?(p(),g("td",R6,[k("button",{type:"button",role:"checkbox","aria-checked":m(H)?"true":"false","aria-label":s(y)("backend::lang.list.select_row"),class:he([m(H)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:le=>h(H)},[m(H)?(p(),j(s(In),{key:0,size:14,"aria-hidden":"true"})):Z("",!0)],10,q6)])):Z("",!0),(p(!0),g(pe,null,Me(P.value,(le,ge)=>(p(),g("td",{key:le.key,class:he([q(le,ge,I(H)),"px-3.5 first:pl-5 last:pr-5"])},[_.value&&ge===0?(p(),g("span",L6,[k("span",N6,$(O(H[le.key])),1),e.openable?(p(),g("button",{key:0,type:"button","data-row-open":"",class:"min-w-0 truncate text-left font-semibold text-text",onClick:ye=>E(ye,H)},[N(wl,{column:le,value:H[le.key],row:H},null,8,["column","value","row"])],8,B6)):(p(),j(wl,{key:1,column:le,value:H[le.key],row:H},null,8,["column","value","row"]))])):ge===0&&I(H).length>0?(p(),g("span",F6,[i(H)?(p(),j(s(Hn),{key:0,to:i(H),class:he(C(I(H)))},{default:F(()=>[N(wl,{column:le,value:H[le.key],row:H},null,8,["column","value","row"])]),_:2},1032,["to","class"])):(p(),g("span",{key:1,class:he(C(I(H)))},[N(wl,{column:le,value:H[le.key],row:H},null,8,["column","value","row"])],2)),N(b6,{states:I(H),labels:e.stateLabels},null,8,["states","labels"])])):ge===0&&i(H)?(p(),j(s(Hn),{key:2,to:i(H),class:"text-text no-underline"},{default:F(()=>[N(wl,{column:le,value:H[le.key],row:H},null,8,["column","value","row"])]),_:2},1032,["to"])):(p(),j(wl,{key:3,column:le,value:H[le.key],row:H},null,8,["column","value","row"]))],2))),128)),e.trailing?(p(),g("td",V6,[ke(G.$slots,"trailing",{row:H})])):Z("",!0)],10,I6))),128))],8,A6)],2)]))}}),z6=["aria-label"],j6={key:0,class:"flex flex-col gap-1 text-[13px]"},U6={class:"font-semibold text-muted"},H6=["data-filter","value","onChange"],K6=["value"],W6={key:1,class:"flex flex-col gap-1 text-[13px]"},G6={class:"mb-1 font-semibold text-muted"},Y6={class:"flex items-center gap-2"},J6=["data-filter","aria-label","value","onChange"],Z6=["data-filter","aria-label","value","onChange"],X6={key:2,class:"flex flex-col gap-1 text-[13px]"},Q6={class:"font-semibold text-muted"},eP=["data-filter","value","onChange"],tP=["value"],$o="",Zs="h-button rounded-control border border-border-strong bg-surface px-3 text-text",nP=ae({__name:"FilterBar",props:{filters:{},values:{},source:{}},emits:["update"],setup(e,{emit:t}){const n=e,a=t;function r(f){if(f.options&&f.options.length>0)return f.options.map(v=>({value:JSON.stringify(v.value),label:v.label}));const m=[];return f.trueValue!==void 0&&m.push({value:JSON.stringify(f.trueValue),label:y("backend::lang.list.column_switch_true")}),f.falseValue!==void 0&&m.push({value:JSON.stringify(f.falseValue),label:y("backend::lang.list.column_switch_false")}),m}const l=T({});async function o(f){const{data:m}=await Re.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...n.source,scope:f.name}}});l.value={...l.value,[f.name]:m?.data??[]}}wt(()=>{for(const f of n.filters)f.type==="scope"&&o(f)});const i=Fn({});function u(){for(const f of n.filters){if(f.type!=="daterange")continue;const[m="",v=""]=(n.values[f.name]??"").split(".."),h=i[f.name];(!h||n.values[f.name]!==void 0||h.from!==""&&h.to!=="")&&(i[f.name]={from:m,to:v})}}Fe(()=>n.values,u,{immediate:!0,deep:!0});function d(f,m,v){const h={...i[f.name]??{from:"",to:""},[m]:v};i[f.name]=h,h.from!==""&&h.to!==""?a("update",f.name,`${h.from}..${h.to}`):(h.from===""&&h.to===""||n.values[f.name]!==void 0)&&a("update",f.name,null)}function c(f,m){a("update",f.name,m===$o?null:m)}return(f,m)=>(p(),g("div",{role:"group","aria-label":s(y)("backend::lang.list.filters"),"data-filter-bar":"",class:"flex flex-wrap items-end gap-4 border-t border-border px-5 py-3.5"},[(p(!0),g(pe,null,Me(e.filters,v=>(p(),g(pe,{key:v.name},[v.type==="switch"?(p(),g("label",j6,[k("span",U6,$(v.label||v.name),1),k("select",{"data-filter":v.name,value:e.values[v.name]??$o,class:he(Zs),onChange:h=>c(v,h.target.value)},[k("option",{value:$o},$(s(y)("backend::lang.list.filter_all")),1),(p(!0),g(pe,null,Me(r(v),h=>(p(),g("option",{key:h.value,value:h.value},$(h.label),9,K6))),128))],40,H6)])):v.type==="daterange"?(p(),g("fieldset",W6,[k("legend",G6,$(v.label||v.name),1),k("div",Y6,[k("input",{type:"date","data-filter":`${v.name}-from`,"aria-label":s(y)("backend::lang.list.filter_from"),value:i[v.name]?.from??"",class:he(Zs),onChange:h=>d(v,"from",h.target.value)},null,40,J6),m[0]||(m[0]=k("span",{"aria-hidden":"true"},"–",-1)),k("input",{type:"date","data-filter":`${v.name}-to`,"aria-label":s(y)("backend::lang.list.filter_to"),value:i[v.name]?.to??"",class:he(Zs),onChange:h=>d(v,"to",h.target.value)},null,40,Z6)])])):v.type==="scope"?(p(),g("label",X6,[k("span",Q6,$(v.label||v.name),1),(p(),g("select",{key:`${v.name}-${l.value[v.name]?.length??-1}`,"data-filter":v.name,value:e.values[v.name]??$o,class:he(Zs),onChange:h=>c(v,h.target.value)},[k("option",{value:$o},$(s(y)("backend::lang.list.filter_all")),1),(p(!0),g(pe,null,Me(l.value[v.name]??[],h=>(p(),g("option",{key:h.value,value:h.value},$(h.label),9,tP))),128))],40,eP))])):Z("",!0)],64))),128))],8,z6))}}),aP=["type","disabled","data-hotkey","aria-keyshortcuts"],Ue=ae({__name:"Button",props:{variant:{default:"outline"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},icon:{default:void 0},to:{default:void 0},hotkey:{default:void 0}},setup(e){const t=e,n={primary:"bg-primary text-on-primary hover:opacity-90",outline:"border border-border-strong bg-surface text-text hover:bg-hover",ghost:"text-muted hover:bg-hover hover:text-text",danger:"border border-danger bg-surface text-danger hover:bg-danger-soft"},a=b(()=>t.hotkey?Iu(t.hotkey):void 0),r=b(()=>["inline-flex shrink-0 items-center justify-center gap-2 rounded-control px-4 font-semibold whitespace-nowrap no-underline transition-colors duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-60",t.size==="sm"?"h-[38px]":"h-button",n[t.variant]]);return(l,o)=>e.to!==void 0?(p(),j(s(Hn),{key:0,to:e.to,class:he(r.value),"data-hotkey":e.hotkey,"aria-keyshortcuts":a.value},{default:F(()=>[e.icon?(p(),j(Kt(e.icon),{key:0,size:16,"aria-hidden":"true"})):Z("",!0),ke(l.$slots,"default")]),_:3},8,["to","class","data-hotkey","aria-keyshortcuts"])):(p(),g("button",{key:1,type:e.type,disabled:e.disabled,class:he(r.value),"data-hotkey":e.hotkey,"aria-keyshortcuts":a.value},[e.icon?(p(),j(Kt(e.icon),{key:0,size:16,"aria-hidden":"true"})):Z("",!0),ke(l.$slots,"default")],10,aP))}}),rP=ae({__name:"BulkActionsMenu",props:{actions:{},disabled:{type:Boolean}},emits:["select"],setup(e,{expose:t,emit:n}){const a=n,r=T(null);function l(){const o=r.value?.$el;o instanceof HTMLElement&&o.focus()}return t({focus:l}),(o,i)=>(p(),j(s(M1),{modal:!1},{default:F(()=>[N(s(R1),{"as-child":"",disabled:e.disabled},{default:F(()=>[N(Ue,{ref_key:"trigger",ref:r,variant:"outline",size:"md","data-action":"bulk-actions",disabled:e.disabled},{default:F(()=>[_e($(s(y)("backend::lang.list.bulk_actions"))+" ",1),N(s(vr),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled"])]),_:1},8,["disabled"]),N(s(I1),null,{default:F(()=>[N(s(P1),{"data-bulk-menu":"",align:"end","side-offset":8,class:"z-50 flex w-[240px] max-w-[320px] flex-col rounded-[14px] border border-border bg-surface p-2 text-text shadow-menu"},{default:F(()=>[(p(!0),g(pe,null,Me(e.actions,u=>(p(),j(s(Rd),{key:u.name,"data-bulk-action":u.name,class:"flex min-h-10 cursor-pointer items-center rounded-control px-3 py-2 outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:d=>a("select",u.name)},{default:F(()=>[_e($(u.label),1)]),_:2},1032,["data-bulk-action","onSelect"]))),128))]),_:1})]),_:1})]),_:1}))}}),lP={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},oP={key:0,class:"relative block w-[320px] max-w-full"},sP={class:"sr-only"},iP=["value","placeholder"],uP={key:1},cP={class:"flex flex-wrap items-center justify-end gap-2.5"},dP={key:0,"data-selected-pill":"",class:"inline-flex h-8 items-center gap-1.5 rounded-pill bg-sel px-3 text-[13px] font-semibold"},fP=ae({__name:"ListToolbar",props:{showSearch:{type:Boolean},search:{},searchPrompt:{},buttons:{},selectedCount:{},selectedLabel:{},deleteLabel:{},actions:{default:()=>[]},busyAction:{default:null},bulkActions:{default:()=>[]},bulkBusy:{type:Boolean,default:!1}},emits:["update:search","delete","action","bulk"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=b(()=>new Map(a.actions.map(u=>[u.name,u.label]))),o=T(null);function i(){o.value?.focus()}return t({focusBulk:i}),(u,d)=>(p(),g("div",lP,[e.showSearch?(p(),g("label",oP,[k("span",sP,$(s(y)("backend::lang.list.search")),1),N(s(ao),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),k("input",{type:"search","data-list-search":"","data-hotkey":"/","aria-keyshortcuts":"/",value:e.search,placeholder:e.searchPrompt,class:"h-button w-full rounded-control border border-transparent bg-subtle pr-3.5 pl-10",onInput:d[0]||(d[0]=c=>r("update:search",c.target.value))},null,40,iP)])):(p(),g("span",uP)),k("div",cP,[e.selectedCount>0?(p(),g("span",dP,[N(s(In),{size:14,"aria-hidden":"true"}),_e($(e.selectedLabel),1)])):Z("",!0),e.bulkActions.length>0?(p(),j(rP,{key:1,ref_key:"bulkMenu",ref:o,actions:e.bulkActions,disabled:e.selectedCount===0||e.bulkBusy,onSelect:d[1]||(d[1]=c=>r("bulk",c))},null,8,["actions","disabled"])):Z("",!0),(p(!0),g(pe,null,Me(e.buttons,c=>(p(),g(pe,{key:c},[c==="delete"?(p(),j(Ue,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:s(Er),disabled:e.selectedCount===0,onClick:d[2]||(d[2]=f=>r("delete"))},{default:F(()=>[_e($(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):l.value.has(c)?(p(),j(Ue,{key:1,variant:"outline",size:"md","data-action":c,disabled:e.busyAction===c,"aria-busy":e.busyAction===c?"true":void 0,onClick:f=>r("action",c)},{default:F(()=>[_e($(l.value.get(c)),1)]),_:2},1032,["data-action","disabled","aria-busy","onClick"])):Z("",!0)],64))),128))])]))}}),pP={class:"flex flex-wrap items-center gap-x-6 gap-y-3 border-t border-border px-5 py-3.5 text-[13px] text-muted"},vP={"data-range":""},mP={key:0,class:"flex items-center gap-2"},hP=["value"],yP=["value"],gP=["aria-label"],bP=["disabled"],_P={key:0,"aria-hidden":"true",class:"px-1"},xP=["data-page","aria-current","onClick"],kP=["disabled"],Rc="inline-flex h-pager min-w-pager items-center justify-center gap-1 rounded-pager border border-border px-2.5 text-[13px] text-text disabled:cursor-not-allowed disabled:opacity-60 hover:bg-hover",h0=ae({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>n.meta?.total??0),l=b(()=>n.meta?.page??1),o=b(()=>Math.max(n.meta?.last_page??1,1)),i=b(()=>{const c=n.meta;if(!c||c.total===0)return Qr("backend::lang.list.results",0);const f=(c.page-1)*c.per_page+1,m=Math.min(c.page*c.per_page,c.total);return y("backend::lang.list.pagination_range",{from:f,to:m,total:c.total})}),u=b(()=>{const c=o.value,f=l.value,m=new Set([1,c,f-1,f,f+1].filter(w=>w>=1&&w<=c));f<=3&&[2,3].forEach(w=>w<=c&&m.add(w)),f>=c-2&&[c-1,c-2].forEach(w=>w>=1&&m.add(w));const v=[...m].sort((w,S)=>w-S),h=[];return v.forEach((w,S)=>{const _=v[S-1];_!==void 0&&w-_>1&&h.push(null),h.push(w)}),h});function d(c){const f=Number(c.target.value);Number.isFinite(f)&&f>0&&a("perPage",f)}return(c,f)=>(p(),g("footer",pP,[k("span",vP,$(e.loading?s(y)("backend::lang.list.loading"):i.value),1),e.perPageOptions.length>1?(p(),g("label",mP,[k("span",null,$(s(y)("backend::lang.list.records_per_page")),1),k("select",{"data-per-page":"",value:String(e.perPage),class:"h-pager rounded-pager border border-border-strong bg-surface px-2 text-text",onChange:d},[(p(!0),g(pe,null,Me(e.perPageOptions,m=>(p(),g("option",{key:m,value:String(m)},$(m),9,yP))),128))],40,hP)])):Z("",!0),!e.loading&&r.value>0?(p(),g("nav",{key:1,"aria-label":s(y)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[k("button",{type:"button","data-page":"prev",class:he(Rc),disabled:l.value<=1,onClick:f[0]||(f[0]=m=>a("page",l.value-1))},[N(s(vu),{size:14,"aria-hidden":"true"}),_e($(s(y)("backend::lang.list.prev_page")),1)],8,bP),(p(!0),g(pe,null,Me(u.value,(m,v)=>(p(),g(pe,{key:m??`gap-${v}`},[m===null?(p(),g("span",_P,"…")):(p(),g("button",{key:1,type:"button","data-page":m,"aria-current":m===l.value?"page":void 0,class:he([Rc,m===l.value?"border-transparent bg-sel font-bold":""]),onClick:h=>m!==l.value&&a("page",m)},$(m),11,xP))],64))),128)),k("button",{type:"button","data-page":"next",class:he(Rc),disabled:l.value>=o.value,onClick:f[1]||(f[1]=m=>a("page",l.value+1))},[_e($(s(y)("backend::lang.list.next_page")),1),N(s(ks),{size:14,"aria-hidden":"true"})],8,kP)],8,gP)):Z("",!0)]))}}),wP={role:"alert","data-extension-failure":"",class:"flex min-h-input items-center rounded-control border-[1.5px] border-dashed border-border-strong bg-subtle px-3.5 py-2.5 text-[13px] text-muted"},$P={class:"flex min-w-0 items-start gap-2.5"},CP={class:"min-w-0 [overflow-wrap:anywhere]"},Ru=ae({__name:"ExtensionFailure",props:{text:{}},setup(e){return(t,n)=>(p(),g("div",wP,[k("span",$P,[N(s(_t),{size:16,class:"mt-0.5 shrink-0 text-danger","aria-hidden":"true"}),k("span",CP,$(e.text),1)])]))}}),SP=new Set(["div","span","p","strong","em","b","i","u","s","small","mark","code","pre","br","hr","ul","ol","li","dl","dt","dd","h2","h3","h4","h5","h6","table","thead","tbody","tfoot","tr","th","td","caption","section","header","footer","figure","figcaption","blockquote","q","abbr","time","data","meter","progress","sup","sub","a","img"]),EP=new Set(["script","style","template","iframe","object","embed","noscript","textarea","title","xmp","svg","math","form","input","button","select","link","meta","base"]),AP=32,TP=2e3,DP=new Set(["class","title","lang","dir","role"]),OP={a:new Set(["href"]),img:new Set(["src","alt","width","height"]),td:new Set(["colspan","rowspan","scope"]),th:new Set(["colspan","rowspan","scope"]),time:new Set(["datetime"]),data:new Set(["value"]),meter:new Set(["value","min","max","low","high","optimum"]),progress:new Set(["value","max"])},MP=/^(aria|data)-[a-z0-9_-]+$/;function PP(e,t){if(e==="")return!1;for(const n of e){const a=n.codePointAt(0)??0;if(a<=32||a===127)return!1}return e.startsWith("#")?t:e.startsWith("/")?e.length===1||e[1]!=="/"&&e[1]!=="\\":!1}function IP(e,t,n){return DP.has(t)||OP[e]?.has(t)===!0||MP.test(t)?e==="a"&&t==="href"||e==="img"&&t==="src"?PP(n,e==="a"):!0:!1}function RP(e,t){const n={};for(const[a,r]of Object.entries(t??{})){const l=a.toLowerCase();typeof r=="string"&&IP(e,l,r)&&(n[l]=r)}return n}function Bd(e,t,n){const a=[];for(const r of e??[]){if(n.left<=0)break;if(r.tag===void 0||r.tag===""){typeof r.text=="string"&&r.text!==""&&(n.left-=1,a.push(r.text));continue}const l=r.tag.toLowerCase();if(EP.has(l))continue;if(!SP.has(l)){a.push(...Bd(r.children,t,n));continue}if(t+1>AP)continue;n.left-=1;const o=Bd(r.children,t+1,n);a.push(Mn(l,RP(l,r.attrs),o.length>0?o:void 0))}return a}function qP(e){return Bd(e,0,{left:TP})}const LP={key:1,"data-partial-loading":"","aria-busy":"true"},NP=["data-partial","aria-busy"],dp=ae({__name:"PartialHost",props:{source:{},name:{},recordId:{default:null},variant:{},reloadKey:{default:0},hint:{type:Boolean,default:!1}},setup(e){const t=e,n=T(null),a=T(!1),r=T(!1);let l=0;const o=u=>qP(u.nodes);o.props=["nodes"];async function i(){const u=++l;r.value=!0;let d=null;try{d=(await Re.GET("/{vendor}/{plugin}/{controller}/partials/{name}",{params:{path:{...t.source,name:t.name},query:t.recordId!=null?{id:t.recordId}:void 0}})).data?.data.nodes??null}catch{d=null}u===l&&(r.value=!1,a.value=d===null,n.value=d)}return Fe(()=>t.reloadKey,()=>{i()}),i(),(u,d)=>a.value?(p(),j(Ru,{key:0,"data-partial-failed":"",text:s(y)("backend::lang.extension.partial_failed")},null,8,["text"])):n.value===null?(p(),g("div",LP,[k("div",{"data-partial-skeleton":"",class:he([e.hint?"h-[68px] w-full rounded-inner":e.variant==="header"?"h-[80px] w-full rounded-card":"h-[44px] w-full rounded-control","bg-skel"]),"aria-hidden":"true"},null,2)])):n.value.length>0?(p(),g("div",{key:2,class:"summer-partial","data-partial":e.variant,"aria-busy":r.value?"true":void 0},[N(o,{nodes:n.value},null,8,["nodes"])],8,NP)):Z("",!0)}}),BP={key:0,class:"flex flex-col gap-1.5","data-confirm-prompt":""},FP=["for"],VP=["id","maxlength","placeholder","aria-describedby","disabled","value","onKeydown"],zP=["id"],jP={class:"flex gap-2.5"},UP=["disabled","aria-busy"],Ir=ae({__name:"ConfirmDialog",props:{open:{type:Boolean},message:{},title:{default:void 0},confirmLabel:{default:void 0},cancelLabel:{default:void 0},danger:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},prompt:{default:null},value:{default:""}},emits:["update:open","update:value","confirm","cancel"],setup(e,{emit:t}){const n=e,a=t,r=`confirm-${Ay()}`,l=T(null),o=b(()=>!!n.prompt&&n.value.trim()==="");function i(c){!c&&n.busy||(a("update:open",c),c||a("cancel"))}function u(){n.busy||o.value||(a("confirm"),a("update:open",!1))}function d(c){a("update:value",c.target.value)}return Fe(()=>n.open&&!!n.prompt,async c=>{c&&(await We(),l.value?.focus())}),(c,f)=>(p(),j(s(T4),{open:e.open,"onUpdate:open":i},{default:F(()=>[N(s(E4),null,{default:F(()=>[N(s(C4),{class:"pointer-events-auto fixed inset-0 z-[80] bg-overlay"}),N(s(b4),{"data-confirm-dialog":"",class:"pointer-events-auto fixed top-1/2 left-1/2 z-[90] flex w-[calc(100%-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-modal bg-surface p-6 text-text shadow-pop"},{default:F(()=>[N(s(O4),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[_e($(e.title??s(y)("backend::lang.form.confirm")),1)]),_:1}),N(s(w4),{class:"text-muted [overflow-wrap:anywhere]"},{default:F(()=>[_e($(e.message),1)]),_:1}),e.prompt?(p(),g("div",BP,[k("label",{for:`${r}-value`,class:"text-[13px] font-semibold"},$(e.prompt.label),9,FP),k("input",{id:`${r}-value`,ref_key:"promptInput",ref:l,type:"text",autocomplete:"off",maxlength:e.prompt.maxLength,placeholder:e.prompt.placeholder,"aria-describedby":e.prompt.comment?`${r}-comment`:void 0,disabled:e.busy,value:e.value,class:"h-control w-full rounded-control border border-border-strong bg-surface px-3 text-text outline-none focus:border-primary disabled:cursor-not-allowed disabled:opacity-60",onInput:d,onKeydown:da(mt(u,["prevent"]),["enter"])},null,40,VP),e.prompt.comment?(p(),g("p",{key:0,id:`${r}-comment`,class:"text-[13px] text-muted"},$(e.prompt.comment),9,zP)):Z("",!0)])):Z("",!0),k("div",jP,[N(s(x4),{"data-action":"cancel",disabled:e.busy,class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover disabled:cursor-not-allowed disabled:opacity-60"},{default:F(()=>[_e($(e.cancelLabel??s(y)("backend::lang.form.cancel")),1)]),_:1},8,["disabled"]),k("button",{type:"button","data-action":"confirm",disabled:e.busy||o.value,"aria-busy":e.busy?"true":void 0,class:he([e.danger?"bg-danger text-white":"bg-primary text-on-primary","inline-flex h-button flex-1 items-center justify-center gap-2 rounded-control font-semibold hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60"]),onClick:mt(u,["prevent"])},[e.busy?(p(),j(s(Vl),{key:0,size:16,class:"animate-spin","aria-hidden":"true"})):Z("",!0),_e(" "+$(e.confirmLabel??s(y)("backend::lang.form.confirm")),1)],10,UP)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function Rr(){const e=T(null),t=T(!1),n=T("");let a=null,r=null;function l(c){const f=a;a=null,r=null,e.value=null,f?.(c)}function o(c,f){return l(!1),n.value="",e.value=c,r=f??null,new Promise(m=>{a=m})}async function i(){if(t.value||e.value?.prompt&&n.value.trim()==="")return;const c=r;if(c){t.value=!0;try{await c()}finally{t.value=!1}}l(!0)}function u(){t.value||l(!1)}function d(c){n.value=c}return{request:e,busy:t,value:n,ask:o,confirm:i,cancel:u,setValue:d}}const HP={class:"flex flex-col gap-5"},KP={class:"flex flex-wrap items-end justify-between gap-4"},WP={class:"flex flex-col"},GP={class:"text-[26px] font-bold tracking-[-0.02em]"},YP={key:0,"data-record-count":"",class:"text-muted"},JP={key:0,class:"flex items-center gap-2.5"},ZP={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},XP={key:2,"data-list-failed":"",class:"flex flex-wrap items-center justify-between gap-3 border-t border-border px-5 py-4"},QP={role:"alert",class:"text-danger"},eI={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},tI={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},nI={class:"text-[17px] font-bold"},aI={class:"max-w-[420px] text-muted"},rI={key:1,"data-empty-list":"",class:"text-muted"},lI=300,oI=ae({__name:"ListView",setup(e){const t=Rn(),n=Sr(),a={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},r=bs(a),l=Kn(r)??"/",o=T(null),i=T([]),u=T(null),d=T(!0),c=T(!1),f=T(!1),m=b(()=>c.value||f.value),v=T([]),h=T(!1),w=T(0),S=Rr(),_=b(()=>F1(t.query)),D=T(_.value.search??""),B=b(()=>o.value?.messages),O=b(()=>o.value?.title?o.value.title:_s(a.vendor,a.plugin)?.sideMenu.find(Se=>Se.controller===r)?.label??r),A=b(()=>u.value?Ge(B.value?.recordCount,u.value.total):""),I=b(()=>o.value?.toolbarButtons??[]),q=b(()=>I.value.filter(ue=>ue==="create")),U=b(()=>{const ue=o.value?.reorder;if(!ue)return null;const Se=ue.partition?.column,xe=Se?o.value?.filters.find(Be=>Be.column===Se||Be.name===Se):void 0,qe=xe?_.value.filter?.[xe.name]:void 0;return{path:`${l}/reorder`,query:qe!==void 0&&qe!==""?{partition:String(qe)}:{}}}),C=b(()=>o.value?.toolbarActions??[]),P=b(()=>I.value.filter(ue=>ue==="delete"||C.value.some(Se=>Se.name===ue))),z=T(null),E=b(()=>u.value?.row_states??{}),L=b(()=>({deleted:Ge(B.value?.rowStateDeleted),negative:Ge(B.value?.rowStateNegative),disabled:Ge(B.value?.rowStateDisabled),customized:Ge(B.value?.rowStateCustomized),outdated:Ge(B.value?.rowStateOutdated)})),G=b(()=>(o.value?.bulkActions??[]).filter(ue=>ue.name!=="delete")),W=T(!1),H=T(null),re=b(()=>{const ue=o.value?.perPageOptions??[];return ue.length>0?ue:[o.value?.recordsPerPage||20]}),le=b(()=>_.value.per_page??u.value?.per_page??o.value?.recordsPerPage??20),ge=b(()=>_.value.sort?{column:_.value.sort,dir:_.value.dir==="desc"?"desc":"asc"}:null);function ye(ue){const Se=o.value?.recordUrl,xe=ue.id;return!Se||typeof xe!="number"&&typeof xe!="string"?null:p0(Se,r,xe)}function ve(ue){Ys(r,ue),n.replace({path:t.path,query:ji(ue)})}const oe=Rl({}),fe=b(()=>Rl(_.value)!==oe);let K=0,we=null;function me(){ve({})}async function Y(ue=!1){const Se=++K;d.value=!0,f.value=!1;let xe=null;try{xe=await J()}catch{xe=null}if(Se!==K)return;if(!xe?.data&&ue){Ys(r,{}),n.replace({path:t.path,query:{}});return}if(!xe?.data&&xe?.response?.status===404&&await de(Se))return;if(i.value=xe?.data?.data??[],u.value=xe?.data?.meta??null,f.value=!xe?.data,d.value=!1,xe?.response?.status===422){Ys(r,{});return}const qe=u.value?.last_page??0;qe>=1&&(u.value?.page??0)>qe&&ve({..._.value,page:qe})}async function de(ue){try{const{data:Se}=await Re.GET("/{vendor}/{plugin}/{controller}/singleton",{params:{path:a}});return ue!==K?!0:Se?(await n.replace(`${l}/${Se.data.id}`),!0):!1}catch{return!1}}function J(){return Re.GET("/{vendor}/{plugin}/{controller}",{params:{path:a,query:_.value}})}async function Q(){const ue=await Re.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:a}});o.value=ue.data?.data??null,c.value=!o.value,o.value&&cp(r,o.value.assets)}Q(),Fe(()=>Rl(_.value),ue=>{if(ue===oe){const xe=zM(r),qe=Rl(xe);if(qe!==oe){we=qe,n.replace({path:t.path,query:ji(xe)});return}}const Se=we!==null&&we===ue;we=null,Ys(r,_.value),v.value=[],D.value=_.value.search??"",Y(Se)},{immediate:!0});let te=null;function x(ue){D.value=ue,te!==null&&clearTimeout(te),te=setTimeout(()=>{te=null;const Se=ue.trim();ve({..._.value,search:Se===""?void 0:Se,page:void 0})},lI)}Et(()=>{te!==null&&clearTimeout(te)});function M(){D.value="",ve({..._.value,search:void 0,page:void 0})}function R(ue){const Se=ge.value;Se?.column!==ue?ve({..._.value,sort:ue,dir:"asc",page:void 0}):Se.dir==="asc"?ve({..._.value,sort:ue,dir:"desc",page:void 0}):ve({..._.value,sort:void 0,dir:void 0,page:void 0})}function se(ue){ve({..._.value,page:ue})}function ee(ue){ve({..._.value,per_page:ue,page:void 0})}function ce(ue,Se){const xe={..._.value.filter??{}};Se===null?delete xe[ue]:xe[ue]=Se,ve({..._.value,filter:xe,page:void 0})}async function Ce(){const ue=v.value.map(Number).filter(xe=>Number.isInteger(xe)&&xe>0);if(!(ue.length===0||h.value||!await S.ask({message:Ge(B.value?.deleteConfirm,ue.length),confirmLabel:y("backend::lang.form.delete"),danger:!0}))){h.value=!0;try{const xe=await Re.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:a},body:{ids:ue}});if(xe.data){Ie(Ge(B.value?.deleted,xe.data.data.deleted)),v.value=[],await Y(),w.value+=1;return}Ie(xe.error?.error.message||y("backend::lang.list.delete_failed"),"danger")}catch{Ie(y("backend::lang.list.delete_failed"),"danger")}finally{h.value=!1}}}async function $e(ue){const Se=G.value.find(lt=>lt.name===ue),xe=v.value.map(Number).filter(lt=>Number.isInteger(lt)&<>0);if(!Se||xe.length===0||W.value)return;const qe=Se.label??ue;let Be=0,Ye=null,nt="";const Xe=await S.ask({message:Se.confirm||Qr("backend::lang.list.bulk_confirm",xe.length,{action:qe}),confirmLabel:qe,danger:!1},async()=>{W.value=!0;try{const lt=await Re.POST("/{vendor}/{plugin}/{controller}/bulk/{action}",{params:{path:{...a,action:ue}},body:{ids:xe}});Be=lt.response.status,Ye=lt.data?.data??null,nt=lt.error?.error.message??""}catch{Be=0}finally{W.value=!1}});if(await new Promise(lt=>setTimeout(lt,0)),H.value?.focusBulk(),!Xe)return;const st=Ye;if(st){Ie(st.message||Qr("backend::lang.list.bulk_done",st.affected)),v.value=[],await Y(),w.value+=1;return}if(Be===409){Ie(y("backend::lang.list.bulk_stale"),"danger"),v.value=[],await Y();return}if(Be===403){Ie(nt||y("backend::lang.list.action_forbidden"),"danger");return}Ie(nt||y("backend::lang.extension.action_failed"),"danger")}async function Te(ue){if(z.value===null){z.value=ue;try{const Se=await Re.POST("/{vendor}/{plugin}/{controller}/toolbar/{action}",{params:{path:{...a,action:ue}},body:{}});if(Se.data){Se.data.data.message&&Ie(Se.data.data.message),await Y(),w.value+=1;return}Ie(Se.error?.error.message||y("backend::lang.extension.action_failed"),"danger")}catch{Ie(y("backend::lang.extension.action_failed"),"danger")}finally{z.value=null}}}return(ue,Se)=>(p(),g("section",HP,[k("header",KP,[k("div",WP,[k("h1",GP,$(O.value),1),A.value?(p(),g("p",YP,$(A.value),1)):Z("",!0)]),q.value.length>0||U.value?(p(),g("div",JP,[U.value?(p(),j(Ue,{key:0,"data-action":"reorder",variant:"outline",icon:s(Ng),to:U.value},{default:F(()=>[_e($(s(y)("backend::lang.messages.list.reorder")),1)]),_:1},8,["icon","to"])):Z("",!0),(p(!0),g(pe,null,Me(q.value,xe=>(p(),j(Ue,{key:xe,"data-action":"create",variant:"primary",icon:s(ws),to:`${s(l)}/create`},{default:F(()=>[_e($(s(Ge)(B.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):Z("",!0)]),o.value?.headerPartial?(p(),j(dp,{key:0,variant:"header",source:a,name:o.value.headerPartial,"reload-key":w.value},null,8,["name","reload-key"])):Z("",!0),k("div",ZP,[o.value?(p(),j(fP,{key:0,ref_key:"toolbar",ref:H,"show-search":o.value.showSearch,search:D.value,"search-prompt":s(Ge)(B.value?.searchPrompt),buttons:P.value,"selected-count":v.value.length,"selected-label":s(Ge)(B.value?.selected,v.value.length),"delete-label":s(Ge)(B.value?.deleteSelected,v.value.length),actions:C.value,"busy-action":z.value,"bulk-actions":G.value,"bulk-busy":W.value,"onUpdate:search":x,onDelete:Ce,onAction:Te,onBulk:$e},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label","actions","busy-action","bulk-actions","bulk-busy"])):Z("",!0),o.value&&o.value.filters.length>0?(p(),j(nP,{key:1,filters:o.value.filters,values:_.value.filter??{},source:a,onUpdate:ce},null,8,["filters","values"])):Z("",!0),m.value&&!d.value?(p(),g("div",XP,[k("p",QP,$(s(y)("backend::lang.list.load_failed")),1),f.value&&fe.value?(p(),j(Ue,{key:0,"data-action":"reset-list",onClick:me},{default:F(()=>[_e($(s(y)("backend::lang.list.reset_list")),1)]),_:1})):Z("",!0)])):(p(),j(m0,{key:3,columns:o.value?.columns??[],rows:i.value,loading:d.value||!o.value,"row-link":ye,selectable:o.value?.showCheckboxes??!1,selected:v.value,sortable:o.value?.showSorting??!1,sort:ge.value,"row-states":E.value,"state-labels":L.value,"onUpdate:selected":Se[0]||(Se[0]=xe=>v.value=xe),onSort:R},{empty:F(()=>[_.value.search?(p(),g("div",eI,[k("span",tI,[N(s(eb),{size:24,"aria-hidden":"true"})]),k("p",nI,$(s(Ge)(B.value?.emptySearch,void 0,{term:_.value.search})),1),k("p",aI,$(s(Ge)(B.value?.emptySearchHint,void 0,{term:_.value.search})),1),N(Ue,{"data-action":"clear-search",onClick:M},{default:F(()=>[_e($(s(y)("backend::lang.list.clear_search")),1)]),_:1})])):(p(),g("p",rI,$(s(Ge)(B.value?.empty)||o.value?.noRecordsMessage||s(y)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort","row-states","state-labels"])),N(h0,{meta:u.value,loading:d.value||!o.value,"per-page-options":re.value,"per-page":le.value,onPage:se,onPerPage:ee},null,8,["meta","loading","per-page-options","per-page"])]),N(Ir,{open:s(S).request.value!==null,message:s(S).request.value?.message??"","confirm-label":s(S).request.value?.confirmLabel,danger:s(S).request.value?.danger,busy:s(S).busy.value,onConfirm:s(S).confirm,onCancel:s(S).cancel},null,8,["open","message","confirm-label","danger","busy","onConfirm","onCancel"])]))}}),xr="X-Session-Key",y0="X-Child-Session-Key",sI=32;function ps(){const e=new Uint8Array(sI);globalThis.crypto.getRandomValues(e);let t="";for(const n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const iI="X-Upload-Id";async function ur(e){try{const t=await e();return{data:t.data?t.data.data:null,status:t.response.status,error:t.error?.error??null}}catch{return{data:null,status:0,error:null}}}async function Ui(e){try{const t=await e();return t.response.ok&&t.data instanceof Blob?t.data:null}catch{return null}}function Da(e){return encodeURIComponent(String(e))}function g0(e){return`${ll.api}/${Da(e.vendor)}/${Da(e.plugin)}/${Da(e.controller)}`}function uI(e){try{return e===""?null:JSON.parse(e)}catch{return null}}function fp(e){if(!e)return"";for(const t of Object.values(e.details??{})){const n=Array.isArray(t)?t.find(a=>typeof a=="string"&&a!==""):t;if(typeof n=="string"&&n!=="")return n}return e.message??""}function cI(e,t){const n=t;if((e===200||e===201)&&n?.data)return{ok:!0,item:n.data};const a=fp(n?.error);return e===413?{ok:!1,reason:"too_large",status:e,message:a}:e===422?{ok:!1,reason:"invalid",status:e,message:a}:e===0?{ok:!1,reason:"network",status:e,message:a}:{ok:!1,reason:"failed",status:e,message:a}}function b0(e,t,n,a,r){let l=null,o=!1;const i=()=>new Promise(d=>{const c=new XMLHttpRequest;l=c,c.open("POST",e),c.setRequestHeader("X-Requested-With",Dg),c.setRequestHeader("Accept","application/json");for(const[m,v]of Object.entries(n))c.setRequestHeader(m,v);r&&c.setRequestHeader(iI,r),c.upload.onprogress=m=>{m.lengthComputable&&a?.(m.loaded,m.total)},c.onload=()=>d({status:c.status,body:uI(c.responseText)}),c.onerror=()=>d("network"),c.ontimeout=()=>d("network"),c.onabort=()=>d("aborted");const f=new FormData;f.append("file_data",t,t.name),c.send(f)});return{promise:(async()=>{let d=await i();return typeof d=="object"&&d.status===401&&!o&&(await sf()&&(d=o?"aborted":await i()),typeof d=="object"&&d.status===401&&u2()),d==="aborted"||o?{ok:!1,reason:"aborted",status:0,message:""}:d==="network"?{ok:!1,reason:"network",status:0,message:""}:cI(d.status,d.body)})(),abort(){o=!0,l?.abort()}}}function _0(e,t,n,a){const r={...e,id:t,field:n},l={[xr]:a},o=`${g0(e)}/${Da(t)}/files/${Da(n)}`;return{list:()=>ur(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}",{params:{path:r,header:l}})),upload:(i,u,d)=>b0(o,i,{...l},u,d),update:(i,u)=>ur(()=>Re.PUT("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l},body:u})),remove:i=>ur(()=>Re.DELETE("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l}})),reorder:i=>ur(()=>Re.POST("/{vendor}/{plugin}/{controller}/{id}/files/{field}/reorder",{params:{path:r,header:l},body:{ids:i}})),download:i=>Ui(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/download",{params:{path:{...r,file:i},header:l},parseAs:"blob"})),thumb:i=>Ui(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/thumb",{params:{path:{...r,file:i},header:l},parseAs:"blob"}))}}function dI(e,t,n,a,r,l,o){const i={...e,id:t,name:n,child:a,field:r},u={[xr]:l,[y0]:o},d=`${g0(e)}/${Da(t)}/relations/${Da(n)}/records/${Da(a)}/files/${Da(r)}`;return{list:()=>ur(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}",{params:{path:i,header:u}})),upload:(c,f,m)=>b0(d,c,{...u},f,m),update:(c,f)=>ur(()=>Re.PUT("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:c},header:u},body:f})),remove:c=>ur(()=>Re.DELETE("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:c},header:u}})),reorder:c=>ur(()=>Re.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/reorder",{params:{path:i,header:u},body:{ids:c}})),download:c=>Ui(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/download",{params:{path:{...i,file:c},header:u},parseAs:"blob"})),thumb:c=>Ui(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/thumb",{params:{path:{...i,file:c},header:u},parseAs:"blob"}))}}const fI=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function qr(e){const t={};for(const[n,a]of Object.entries(e.attributes??{})){const r=n.toLowerCase();!fI.has(r)||a===null||a===!1||(t[r]=a)}return t}function Lt(e){return["w-full rounded-control border bg-surface px-3.5 text-text transition-colors duration-150 ease-out",e?"border-danger":"border-border-strong"].join(" ")}function qu(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function x0(e,t){return typeof e=="number"?t?1:0:t}function k0(e,t,n){const a={};if(t===null||typeof t!="object"||Array.isArray(t))return a;const r=t;for(const l of e.permissionOptions??[]){if(n?.has(l.code))continue;const o=Number(r[l.code]);(o===1||e.mode==="radio"&&o===-1)&&(a[l.code]=o)}return a}const pI=new Set(["mltext","mltextarea","mlmarkdown"]);function vI(e){return e!==void 0&&pI.has(e)}function kr(e){return e?vI(e.type)||!!e.element&&e.translatable===!0:!1}const vs="summer:ml-locale";function mI(e){typeof window>"u"||e===""||window.dispatchEvent(new CustomEvent(vs,{detail:e}))}function ua(e){const t={};if(e===null||typeof e!="object"||Array.isArray(e))return t;for(const[n,a]of Object.entries(e))typeof a=="string"&&(t[n]=a);return t}const hI={class:"flex min-w-0 flex-col"},yI=["for"],gI={key:0,class:"text-danger","aria-hidden":"true"},bI=["id"],_I=["id","name","checked","aria-invalid","aria-describedby"],xI=ae({__name:"CheckboxField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>qu(n.modelValue));function l(o){a("update:modelValue",x0(n.modelValue,o.target.checked))}return(o,i)=>(p(),g("div",{class:he([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[k("div",hI,[k("label",{for:e.controlId,class:"font-semibold"},[_e($(e.field.label||e.field.name),1),e.field.required?(p(),g("span",gI," *")):Z("",!0)],8,yI),e.field.comment?(p(),g("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},$(e.field.comment),9,bI)):Z("",!0)]),k("input",{id:e.controlId,type:"checkbox",name:e.field.name,checked:r.value,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"size-5 shrink-0 rounded-[6px] accent-primary",onChange:l},null,40,_I)],2))}});function kI(e){return e==="date"||e==="time"?e:"datetime"}function fn(e,t=2){return String(e).padStart(t,"0")}const wI=/(Z|[+-]\d{2}:?\d{2})$/i;function $I(e,t,n=!1){if(typeof t!="string"||t.trim()==="")return null;const a=t.trim();try{if(e==="date")return Mb(a.slice(0,10));if(e==="time"){const l=/(\d{2}:\d{2}(:\d{2})?)/.exec(a.includes("T")?a.slice(a.indexOf("T")):a);return l?KE(l[1]):null}const r=wI.test(a)?a.replace(" ","T"):`${a.replace(" ","T")}Z`;return n?fa(um(r,"UTC")):um(r,Yn())}catch{return null}}function qc(e){return`${fn(e.year,4)}-${fn(e.month)}-${fn(e.day)}`}function Lc(e){return`${fn(e.hour)}:${fn(e.minute)}:${fn(e.second)}`}function oh(e,t,n=!1){if(!t)return null;if(e==="time")return"hour"in t?Lc(t):null;if(!("year"in t))return null;if(e==="date")return qc(t);if(n){const l=t instanceof La?fa(t):t,o="hour"in l?Lc(l):"00:00:00";return`${qc(l)}T${o}Z`}const a=t instanceof La?t:Ef(t instanceof bt?fa(t):t,Yn()),r=_u(a,"UTC");return`${qc(r)}T${Lc(r)}Z`}const CI={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm",time:"HH:mm"},SI=/\[([^\]]*)\]|YYYY|YY|MMMM|MMM|MM|M|dddd|ddd|DD|D|HH|H|hh|h|mm|ss|A|a/g;function EI(e){return"year"in e?new bt(e.year,e.month,e.day):null}function Nc(e,t,n,a){return new Ln(e,{...n,timeZone:"UTC"}).formatToParts(t.toDate("UTC")).find(l=>l.type===a)?.value??""}function AI(e,t,n,a){if(!e)return"";const r=n||CI[t],l=EI(e),o="hour"in e?e:null,i=/D/.test(r.replace(/\[[^\]]*\]/g,""));return r.replace(SI,(u,d)=>{if(d!==void 0)return d;switch(u){case"YYYY":return l?fn(l.year,4):"";case"YY":return l?fn(l.year%100):"";case"MMMM":case"MMM":{if(!l)return"";const c=u==="MMMM"?"long":"short";return i?Nc(a,l,{day:"numeric",month:c},"month"):Nc(a,l,{month:c},"month")}case"MM":return l?fn(l.month):"";case"M":return l?String(l.month):"";case"dddd":case"ddd":return l?Nc(a,l,{weekday:u==="dddd"?"long":"short"},"weekday"):"";case"DD":return l?fn(l.day):"";case"D":return l?String(l.day):"";case"HH":return o?fn(o.hour):"";case"H":return o?String(o.hour):"";case"hh":return o?fn(o.hour%12||12):"";case"h":return o?String(o.hour%12||12):"";case"mm":return o?fn(o.minute):"";case"ss":return o?fn(o.second):"";case"A":return o?o.hour<12?"AM":"PM":"";case"a":return o?o.hour<12?"am":"pm":"";default:return u}})}const TI=new bt(2026,10,4);function DI(e,t){if(typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=6)return t;try{return(7-bu(TI,e))%7}catch{return 1}}function sh(e){if(e)try{return Mb(e.slice(0,10))}catch{return}}function OI(e,t=Ss(Yn())){const n=sh(e.minDate),a=sh(e.maxDate);if(n||a)return{min:n,max:a};const r=e.yearRange??[];return r.length===1&&typeof r[0]=="number"?{min:new bt(t.year-r[0],1,1),max:new bt(t.year+r[0],12,31)}:r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"?{min:new bt(r[0],1,1),max:new bt(r[1],12,31)}:{}}function Fd(e,t,n,a){if(!e||t==="time")return;if(t==="date")return e;const r=new hr(e.year,e.month,e.day,a?23:0,a?59:0,a?59:0);return n?r:_u(Ef(r,"UTC"),Yn())}function MI(e,t){const n=Ss(Yn());return Fd(n,e==="time"?"datetime":e,t,!1)??n}const PI=["id","aria-describedby"],II={key:0},RI={key:1,class:"text-muted","data-empty":""},qI=["aria-label"],LI={class:"flex size-8 shrink-0 items-center justify-center text-muted","aria-hidden":"true"},NI=["data-mode"],BI=["aria-label"],FI={key:0,"data-datepicker-time":"",class:"mt-3 flex items-center gap-2 border-t border-border pt-3"},Co="flex size-8 shrink-0 items-center justify-center rounded-pager text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",VI=ae({__name:"DatepickerField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>kI(n.field.mode)),l=b(()=>r.value==="datetime"&&!!n.field.ignoreTimezone),o=b(()=>Wn.value||"pl"),i=b(()=>{const oe=n.field.attributes?.readonly;return!!n.field.readOnly||oe!=null&&oe!==!1}),u=b(()=>$I(r.value,n.modelValue,l.value)),d=b(()=>r.value==="time"?null:u.value),c=b(()=>r.value==="time"?u.value:null),f=b(()=>OI(n.field)),m=b(()=>Fd(f.value.min,r.value,l.value,!1)),v=b(()=>Fd(f.value.max,r.value,l.value,!0)),h=MI(r.value,l.value),w=b(()=>DI(o.value,n.field.firstDay)),S=b(()=>n.field.twelveHour?12:24),_=b(()=>r.value==="date"?"day":"minute"),D=b(()=>AI(u.value,r.value,n.field.displayFormat,o.value)),B=b(()=>!n.field.required&&u.value!==null&&!i.value),O=b(()=>{const oe=d.value;return oe?!!m.value&&oe.compare(m.value)<0||!!v.value&&oe.compare(v.value)>0:!1}),A=new Set(["day","month","year","hour","minute","second"]),I=T(null),q=T(!1);function U(){const oe=I.value;if(!oe){q.value=!1;return}const fe=Array.from(oe.querySelectorAll("[data-reka-date-field-segment], [data-reka-time-field-segment]")).filter(we=>A.has(we.dataset.rekaDateFieldSegment??we.dataset.rekaTimeFieldSegment??"")),K=fe.filter(we=>!we.hasAttribute("data-placeholder")).length;q.value=K>0&&K!!n.invalid||O.value||q.value),z=b(()=>oh(r.value,u.value,l.value));function E(oe){const fe=oh(r.value,oe??null,l.value);C(),!(fe===z.value&&(fe!==null||n.modelValue===null))&&a("update:modelValue",fe)}function L(oe){if(!oe||r.value!=="datetime"){E(oe);return}const fe=d.value,K=H.value,we=!fe||fe.year!==oe.year||fe.month!==oe.month||fe.day!==oe.day,me=!("hour"in oe)||oe.hour!==K.hour||oe.minute!==K.minute;we&&me&&(oe=re(oe,K)),W.value=oe,E(oe)}function G(){a("update:modelValue",null),C()}const W=T(null);Fe(d,oe=>{W.value=oe},{immediate:!0});const H=b(()=>{const oe=W.value??d.value;return oe&&"hour"in oe?new sa(oe.hour,oe.minute):new sa(0,0)});function re(oe,fe){return"hour"in oe?oe.set({hour:fe.hour,minute:fe.minute,second:0,millisecond:0}):new hr(oe.year,oe.month,oe.day,fe.hour,fe.minute)}function le(oe){if(!oe)return;const fe=oe instanceof sa?oe:new sa(oe.hour,oe.minute),K=W.value??d.value??h,we=re(K,fe);W.value=we,E(we)}function ge(oe){return oe.charAt(0).toLocaleUpperCase(o.value)+oe.slice(1)}const ye=b(()=>[Lt(P.value),"h-input flex min-w-0 items-center gap-1 pl-3.5 pr-1.5","focus-within:border-primary focus-within:shadow-[0_0_0_3px_var(--c-ring)]","has-[[data-invalid]]:border-danger"]);function ve(oe){return oe==="literal"?"text-muted":oe==="timeZoneName"?"ml-2 min-w-0 truncate text-[13px] text-muted":"rounded-[4px] px-0.5 tabular-nums outline-none focus:bg-sel focus:text-text focus-visible:outline-none data-[placeholder]:text-placeholder focus:data-[placeholder]:text-text"}return(oe,fe)=>i.value?(p(),g("p",{key:0,id:e.controlId,"data-datepicker-readonly":"","aria-describedby":e.describedBy||void 0,class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 tabular-nums"},[D.value!==""?(p(),g("span",II,$(D.value),1)):(p(),g("span",RI,"—"))],8,PI)):r.value==="time"?(p(),g("div",{key:1,ref_key:"container",ref:I,"data-datepicker":"","data-mode":"time",class:he(ye.value),onKeyup:C,onFocusout:C},[N(s(Ym),{id:e.controlId,"model-value":c.value,locale:o.value,"hour-cycle":S.value,granularity:"minute",name:e.field.name,required:e.field.required||void 0,"aria-invalid":P.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center","onUpdate:modelValue":E},{default:F(({segments:K})=>[(p(!0),g(pe,null,Me(K,we=>(p(),j(s(Jm),{key:we.part,part:we.part,class:he(ve(we.part))},{default:F(()=>[_e($(we.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["id","model-value","locale","hour-cycle","name","required","aria-invalid","aria-describedby"]),B.value?(p(),g("button",{key:0,type:"button","data-action":"clear","aria-label":s(y)("backend::lang.datepicker.clear"),class:he(Co),onClick:G},[N(s(Xt),{size:16,"aria-hidden":"true"})],8,qI)):Z("",!0),k("span",LI,[N(s(md),{size:16})])],34)):(p(),j(s(aO),{key:2,id:e.controlId,"model-value":d.value,"default-placeholder":d.value??s(h),locale:o.value,granularity:_.value,"hour-cycle":S.value,"hide-time-zone":r.value!=="datetime"||l.value,"min-value":m.value,"max-value":v.value,"week-starts-on":w.value,name:e.field.name,required:e.field.required||void 0,"close-on-select":r.value==="date","prevent-deselect":"","onUpdate:modelValue":L},{default:F(()=>[k("div",{ref_key:"container",ref:I,"data-datepicker":"","data-mode":r.value,class:he(ye.value),onKeyup:C,onFocusout:C},[N(s(_O),{"aria-invalid":P.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center overflow-hidden"},{default:F(({segments:K})=>[(p(!0),g(pe,null,Me(K,we=>(p(),j(s(RO),{key:we.part,part:we.part,class:he(ve(we.part))},{default:F(()=>[_e($(we.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["aria-invalid","aria-describedby"]),B.value?(p(),g("button",{key:0,type:"button","data-action":"clear","aria-label":s(y)("backend::lang.datepicker.clear"),class:he(Co),onClick:G},[N(s(Xt),{size:16,"aria-hidden":"true"})],8,BI)):Z("",!0),N(s(jO),{"data-action":"open-calendar","aria-label":s(y)("backend::lang.datepicker.open_calendar"),class:he(Co)},{default:F(()=>[N(s(Vg),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])],42,NI),N(s(gO),{"data-datepicker-calendar":"","side-offset":4,align:"end",class:"z-50 w-[284px] rounded-inner border border-border bg-surface p-4 text-text shadow-menu"},{default:F(()=>[N(s(lO),null,{default:F(({weekDays:K,grid:we})=>[N(s(OO),{class:"flex h-9 items-center justify-between"},{default:F(()=>[N(s(BO),{"aria-label":s(y)("backend::lang.datepicker.prev_month"),class:he(Co)},{default:F(()=>[N(s(vu),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"]),N(s(PO),{class:"font-semibold"},{default:F(({headingValue:me})=>[_e($(ge(me)),1)]),_:1}),N(s(LO),{"aria-label":s(y)("backend::lang.datepicker.next_month"),class:he(Co)},{default:F(()=>[N(s(ks),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),_:1}),(p(!0),g(pe,null,Me(we,me=>(p(),j(s(kO),{key:me.value.toString(),class:"mt-2 w-full border-collapse select-none"},{default:F(()=>[N(s(SO),null,{default:F(()=>[N(s(Hm),{class:"flex"},{default:F(()=>[(p(!0),g(pe,null,Me(K,Y=>(p(),j(s(TO),{key:Y,class:"flex h-9 w-9 items-center justify-center text-[13px] font-normal text-muted"},{default:F(()=>[_e($(Y),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024),N(s($O),null,{default:F(()=>[(p(!0),g(pe,null,Me(me.rows,(Y,de)=>(p(),j(s(Hm),{key:`week-${de}`,class:"flex"},{default:F(()=>[(p(!0),g(pe,null,Me(Y,J=>(p(),j(s(sO),{key:J.toString(),date:J,class:"p-0"},{default:F(()=>[N(s(uO),{day:J,month:me.value,class:"flex size-9 items-center justify-center rounded-pager tabular-nums text-text transition-colors duration-150 ease-out hover:bg-hover data-[outside-view]:text-placeholder data-[today]:font-semibold data-[today]:shadow-[inset_0_0_0_1px_var(--c-border-strong)] data-[selected]:bg-primary data-[selected]:font-semibold data-[selected]:text-on-primary data-[disabled]:cursor-not-allowed data-[disabled]:text-placeholder data-[disabled]:opacity-40 data-[disabled]:hover:bg-transparent data-[unavailable]:cursor-not-allowed data-[unavailable]:opacity-40"},null,8,["day","month"])]),_:2},1032,["date"]))),128))]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1}),r.value==="datetime"?(p(),g("div",FI,[N(s(md),{size:16,class:"shrink-0 text-muted","aria-hidden":"true"}),N(s(Ym),{"model-value":H.value,locale:o.value,"hour-cycle":S.value,granularity:"minute","hide-time-zone":"",class:"flex min-w-0 items-center","onUpdate:modelValue":le},{default:F(({segments:K})=>[(p(!0),g(pe,null,Me(K,we=>(p(),j(s(Jm),{key:we.part,part:we.part,class:he(ve(we.part))},{default:F(()=>[_e($(we.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["model-value","locale","hour-cycle"])])):Z("",!0)]),_:1})]),_:1},8,["id","model-value","default-placeholder","locale","granularity","hour-cycle","hide-time-zone","min-value","max-value","week-starts-on","name","required","close-on-select"]))}}),Es=Symbol("summer.form.values"),pp=Symbol("summer.form.patch"),Lu=Symbol("summer.form.locale"),w0=Symbol("summer.form.partialReload"),Hi=Symbol("summer.form.enabledLocales"),$0=Symbol("summer.form.assets");function vp(){const e=T(0);return{activeUploads:e,beginUpload(){e.value++;let t=!1;return()=>{t||(t=!0,e.value>0&&e.value--)}}}}const io=Symbol("summer.form.session"),C0=Symbol("summer.settings.secrets"),mp=Symbol("summer.form.permissionLocks"),hp=Symbol("summer.form.triggerNotes"),ih="summer-action",zI="summer-result",uh="summer-change",ch="summer-upload",jI="summer-upload-result",S0=5e3,yp=Symbol("summer.form.feedback"),As=Symbol("summer.form.fieldScope"),gp=Symbol("summer.form.rememberLabel"),E0=Symbol("summer.form.dependentCache"),UI=["data-dependent"],HI={class:"relative"},KI=["id","name","value","disabled","required","aria-required","aria-invalid","aria-busy","aria-describedby"],WI={key:0,value:"state",class:"text-muted"},GI=["value"],YI=["id"],JI={key:1,class:"flex flex-wrap items-center gap-2"},ZI=["id"],Xs="empty",Qs="placeholder",XI=ae({__name:"DropdownField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=" ".repeat(4),l=it(As,null),o=it(yp,null),i=it(E0,null)??new Map,u=b(()=>n.field.dependsOn??""),d=b(()=>u.value!==""),c=T("waiting"),f=T([]),m=b(()=>{const H=l?.values.value[u.value];return H==null||H===""||typeof H=="object"?null:String(H)}),v=b(()=>l?.fields.value.find(H=>H.name===u.value)),h=b(()=>v.value?.label||u.value),w=b(()=>(v.value?.options??[]).find(re=>_(re.value,m.value))?.label??m.value??""),S=b(()=>d.value?f.value:n.field.options??[]);function _(H,re){return H==null||re===null||re===void 0?H===re||H==null&&re==null:String(H)===String(re)}function D(){return n.modelValue!==null&&n.modelValue!==void 0&&n.modelValue!==""}function B(){D()&&(a("update:modelValue",null),o?.announce(y("backend::lang.form.dependent_cleared",{field:n.field.label||n.field.name})))}function O(H,re){if(!H.applies){f.value=[],c.value="unused",re&&B();return}f.value=H.options.map(le=>({value:le.value,label:r.repeat(Math.max(0,le.depth))+le.label})),c.value=f.value.length>0?"ready":"empty",re&&D()&&!f.value.some(le=>_(le.value,n.modelValue))&&B()}let A=0,I=!1;async function q(H){const re=++A,le=m.value;if(le===null){f.value=[],c.value="waiting",H&&B();return}const ge=l?.path(n.field.name)??n.field.name,ye=`${ge}\0${le}`,ve=i.get(ye);if(ve){O(ve,H);return}if(!n.source){I=H,c.value="failed";return}c.value="loading";try{const{data:oe}=await Re.GET("/{vendor}/{plugin}/{controller}/fields/{field}/dependent-options",{params:{path:{...n.source,field:ge},query:{[`values[${u.value}]`]:le}}});if(re!==A)return;if(!oe){I=H,c.value="failed";return}i.set(ye,oe.data),O(oe.data,H)}catch{re===A&&(I=H,c.value="failed")}}function U(){q(I)}Fe(m,(H,re)=>{d.value&&H!==re&&q(!0)}),wt(()=>{d.value&&q(!1)}),Et(()=>{A++});const C=b(()=>{const H=S.value.findIndex(re=>_(re.value,n.modelValue));return H>=0?String(H):n.field.emptyOption!==void 0&&!D()?Xs:Qs}),P=b(()=>{switch(c.value){case"waiting":return y("backend::lang.form.dependent_waiting",{field:h.value});case"loading":return y("backend::lang.form.loading_options");case"unused":return y("backend::lang.form.dependent_not_used");case"empty":return y("backend::lang.form.dependent_empty",{type:w.value});case"failed":return y("backend::lang.form.dependent_failed");default:return""}}),z=b(()=>d.value&&c.value!=="ready"),E=b(()=>z.value||C.value===Xs||C.value===Qs),L=b(()=>`${n.controlId}-dependent`),G=b(()=>[n.describedBy??"",d.value&&(c.value==="empty"||c.value==="failed")?L.value:""].filter(Boolean).join(" "));function W(H){const re=H.target.value;if(re===Xs){a("update:modelValue",null);return}const le=S.value[Number(re)];le&&a("update:modelValue",le.value)}return(H,re)=>(p(),g("div",{class:"flex flex-col gap-1.5","data-dependent":d.value?c.value:void 0},[k("div",HI,[k("select",{id:e.controlId,name:e.field.name,value:z.value?"state":C.value,disabled:z.value||void 0,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-busy":d.value&&c.value==="loading"?"true":void 0,"aria-describedby":G.value||void 0,class:he([[s(Lt)(e.invalid),E.value?"text-muted":""],"h-input appearance-none pr-10 disabled:cursor-not-allowed"]),onChange:W},[z.value?(p(),g("option",WI,$(P.value),1)):(p(),g(pe,{key:1},[e.field.emptyOption!==void 0?(p(),g("option",{key:0,value:Xs,class:"text-muted"},$(e.field.emptyOption),1)):Z("",!0),C.value===Qs?(p(),g("option",{key:1,value:Qs,disabled:""},$(s(y)("backend::lang.form.select_placeholder")),1)):Z("",!0),(p(!0),g(pe,null,Me(S.value,(le,ge)=>(p(),g("option",{key:ge,value:String(ge),class:"text-text"},$(le.label),9,GI))),128))],64))],42,KI),N(s(vr),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]),d.value&&c.value==="empty"?(p(),g("p",{key:0,id:L.value,"data-dependent-hint":"",class:"text-[13px] text-muted"},$(P.value),9,YI)):d.value&&c.value==="failed"?(p(),g("div",JI,[k("p",{id:L.value,role:"alert",class:"flex items-center gap-1.5 text-[13px] text-danger"},[N(s(_t),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.form.dependent_failed")),1)],8,ZI),N(Ue,{variant:"ghost",size:"sm",icon:s(si),"data-action":"dependent-retry",onClick:U},{default:F(()=>[_e($(s(y)("backend::lang.form.dependent_retry")),1)]),_:1},8,["icon"])])):Z("",!0)],8,UI))}}),QI={class:"flex items-start gap-3"},eR={class:"flex min-w-0 flex-1 flex-col gap-1"},tR={key:0,class:"flex items-center gap-4"},nR=["src"],aR={key:1,class:"flex size-16 shrink-0 items-center justify-center rounded-inner bg-subtle","aria-hidden":"true"},rR=["title"],lR={class:"flex flex-col gap-1.5"},oR=["for"],sR=["id","disabled","aria-invalid","aria-describedby"],iR=["id"],uR={class:"flex flex-col gap-1.5"},cR=["for"],dR=["id","disabled","aria-invalid","aria-describedby"],fR=["id"],pR={class:"flex gap-2.5"},vR=["disabled"],mR=["aria-keyshortcuts","title","disabled"],hR=ae({__name:"FileCaptionModal",props:{open:{type:Boolean},file:{},routes:{},preview:{},idPrefix:{}},emits:["update:open","saved","closed"],setup(e,{emit:t}){const n=e,a=t,r=T(""),l=T(""),o=T({}),i=T(!1),u=Rr();function d(S){const _={};for(const[D,B]of Object.entries(S??{})){const O=(Array.isArray(B)?B:[B]).filter(A=>typeof A=="string"&&A!=="");O.length>0&&(_[D]=O)}return _}const c=b(()=>`${n.idPrefix}-caption-title`),f=b(()=>`${n.idPrefix}-caption-description`),m=b(()=>!!n.file&&(r.value!==n.file.title||l.value!==n.file.description));Fe(()=>n.open,S=>{S&&n.file&&(r.value=n.file.title??"",l.value=n.file.description??"",o.value={},i.value=!1)},{immediate:!0});async function v(S){if(S){a("update:open",!0);return}i.value||m.value&&!await u.ask({message:y("backend::lang.form.unsaved_confirm"),confirmLabel:y("backend::lang.form.discard"),danger:!0})||a("update:open",!1)}async function h(){if(!(i.value||!n.file||!n.routes)){i.value=!0;try{const S=await n.routes.update(n.file.id,{title:r.value,description:l.value});if(S.data){o.value={},a("saved",S.data),a("update:open",!1),Ie(y("backend::lang.fileupload.details_saved"));return}if(S.status===422){o.value=d(S.error?.details),Object.keys(o.value).length===0&&(o.value={title:[fp(S.error)||y("backend::lang.form.error_generic")]});return}Ie(S.error?.message||y("backend::lang.form.error_generic"),"danger")}finally{i.value=!1}}}function w(S){S.preventDefault(),a("closed")}return(S,_)=>(p(),g(pe,null,[N(s(Ar),{open:e.open,"onUpdate:open":v},{default:F(()=>[N(s(cl),null,{default:F(()=>[N(s(Dr),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),N(s(Tr),{"data-caption-modal":"","data-dialog-content":"","aria-modal":"true",class:"fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100vh-32px)] w-[calc(100%-32px)] max-w-[560px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-modal bg-surface p-6 text-text shadow-pop",onCloseAutoFocus:w},{default:F(()=>[k("div",QI,[k("div",eR,[N(s(Or),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.attachment")),1)]),_:1}),N(s(gr),{class:"text-muted"},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.help")),1)]),_:1})]),N(s(yr),{"data-action":"close","aria-label":s(y)("backend::lang.form.close"),disabled:i.value,class:"flex size-[34px] shrink-0 items-center justify-center rounded-tab bg-subtle text-muted hover:bg-hover hover:text-text"},{default:F(()=>[N(s(Xt),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label","disabled"])]),e.file?(p(),g("div",tR,[e.preview?(p(),g("img",{key:0,src:e.preview,alt:"",class:"size-16 shrink-0 rounded-inner object-cover"},null,8,nR)):(p(),g("span",aR,[N(s(Il),{size:16,class:"text-muted"})])),k("span",{class:"min-w-0 truncate text-[13px] text-muted",title:e.file.file_name},$(e.file.file_name),9,rR)])):Z("",!0),k("form",{class:"flex flex-col gap-4",novalidate:"",onSubmit:mt(h,["prevent"])},[k("div",lR,[k("label",{for:c.value,class:"font-semibold"},$(s(y)("backend::lang.fileupload.title_label")),9,oR),zn(k("input",{id:c.value,"onUpdate:modelValue":_[0]||(_[0]=D=>r.value=D),type:"text","data-caption-title":"",disabled:i.value,"aria-invalid":o.value.title?"true":void 0,"aria-describedby":o.value.title?`${c.value}-error`:void 0,class:he([s(Lt)(!!o.value.title),"h-input"])},null,10,sR),[[Xr,r.value]]),o.value.title?(p(),g("p",{key:0,id:`${c.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[N(s(_t),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(o.value.title.join(" ")),1)],8,iR)):Z("",!0)]),k("div",uR,[k("label",{for:f.value,class:"font-semibold"},$(s(y)("backend::lang.fileupload.description_label")),9,cR),zn(k("textarea",{id:f.value,"onUpdate:modelValue":_[1]||(_[1]=D=>l.value=D),rows:"3","data-caption-description":"",disabled:i.value,"aria-invalid":o.value.description?"true":void 0,"aria-describedby":o.value.description?`${f.value}-error`:void 0,class:he([s(Lt)(!!o.value.description),"min-h-input resize-y py-2.5"])},null,10,dR),[[Xr,l.value]]),o.value.description?(p(),g("p",{key:0,id:`${f.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[N(s(_t),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(o.value.description.join(" ")),1)],8,fR)):Z("",!0)]),k("div",pR,[k("button",{type:"button","data-action":"cancel",disabled:i.value,class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover disabled:cursor-not-allowed disabled:opacity-60",onClick:_[2]||(_[2]=D=>v(!1))},$(s(y)("backend::lang.form.cancel")),9,vR),k("button",{type:"submit","data-action":"save-caption","data-hotkey":"mod+s mod+enter","aria-keyshortcuts":s(Iu)("mod+s mod+enter"),title:s(Bn)(s(y)("backend::lang.fileupload.details_submit"),"mod+s"),disabled:i.value,class:"inline-flex h-button flex-1 items-center justify-center rounded-control bg-primary font-semibold text-on-primary hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60"},$(i.value?s(y)("backend::lang.form.saving"):s(y)("backend::lang.fileupload.details_submit")),9,mR)])],32)]),_:1})]),_:1})]),_:1},8,["open"]),N(Ir,{open:s(u).request.value!==null,message:s(u).request.value?.message??"","confirm-label":s(u).request.value?.confirmLabel,danger:s(u).request.value?.danger,onConfirm:s(u).confirm,onCancel:s(u).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])],64))}}),yR=["id","data-field-name","aria-labelledby","aria-describedby","aria-busy"],gR={key:0,"data-fileupload-loading":"",class:"h-[112px] rounded-control bg-skel","aria-hidden":"true"},bR={key:1,role:"alert","data-fileupload-failed":"",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},_R={key:0,"data-fileupload-empty":"",class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 text-muted"},xR={key:1,"data-fileupload-grid":"",class:"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-4"},kR=["data-file-item","data-state","onDragover","onDrop"],wR={class:"relative flex aspect-square items-center justify-center bg-subtle"},$R=["href","aria-label"],CR=["src","alt","onError"],SR=["aria-label","onClick"],ER=["src","alt"],AR={key:2,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},TR=["data-handle","aria-label","onKeydown","onDragstart"],DR={key:5,class:"absolute top-2 right-2 flex gap-1"},OR=["data-caption","aria-label","onClick"],MR=["aria-label","onClick"],PR=["aria-label","onClick"],IR={class:"flex flex-col gap-1 p-2"},RR=["title"],qR={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},LR={key:0},NR={key:1},BR={key:2},FR={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},VR={key:1,"data-file-error":"",class:"text-[13px] text-danger"},zR={class:"sr-only"},jR={key:2,"data-fileupload-single":"",class:"flex flex-col gap-2"},UR=["data-file-item","data-state"],HR=["src","alt","onError"],KR={key:3,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},WR={class:"flex min-w-0 flex-1 flex-col gap-1"},GR=["title"],YR={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},JR={key:0},ZR={key:1},XR={key:2},QR={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},eq={key:1,"data-file-error":"",class:"text-[13px] text-danger"},tq={class:"sr-only"},nq={key:2,class:"mt-1 flex flex-wrap gap-2"},aq={key:3,"data-fileupload-rows":"",class:"flex flex-col gap-2"},rq=["data-file-item","data-state","onDragover","onDrop"],lq={class:"flex items-center gap-3"},oq=["data-handle","aria-label","onKeydown","onDragstart"],sq={class:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-pager bg-subtle"},iq=["src","onError"],uq={class:"flex min-w-0 flex-1 flex-col leading-tight"},cq=["title"],dq=["title"],fq=["title"],pq={class:"flex shrink-0 items-center gap-2 text-[13px] text-muted tabular-nums"},vq={key:0},mq={key:1},hq={key:2},yq={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},gq={class:"flex shrink-0 items-center gap-1"},bq=["href","aria-label"],_q=["aria-label","onClick"],xq=["data-caption","aria-label","onClick"],kq=["aria-label","onClick"],wq=["aria-label","onClick"],$q={key:1,"data-file-error":"",class:"text-[13px] text-danger"},Cq={class:"sr-only"},Sq=["aria-describedby"],Eq={class:"flex size-10 items-center justify-center rounded-full bg-surface","aria-hidden":"true"},Aq={class:"text-text"},Tq={key:0,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},Dq={key:5,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},Oq={key:6,role:"alert","data-fileupload-too-many":"",class:"flex items-center gap-1.5 text-[13px] text-danger"},Mq=["accept","multiple"],Pq={class:"sr-only","aria-live":"polite","data-fileupload-live":""},Iq=1<<20,Rq=400,Bc="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:text-text",qq="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:bg-danger-soft hover:text-danger",$l="inline-flex size-8 shrink-0 items-center justify-center rounded-pager text-muted hover:bg-hover hover:text-text",Lq=ae({__name:"FileuploadField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=it(io,null),a=["jpg","jpeg","png","gif","webp"],r=["image/jpeg","image/png","image/gif","image/webp"];let l=1;const o=T([]),i=T("loading"),u=T(!1),d=T(0),c=T(""),f=T(null),m=T(null),v=T(null),h=T(null),w=T(null),S=T(!1),_=T({}),D=T(new Set),B=T(new Set),O=new Set,A=[],I=n?n.routes(t.field.name):null;let q=null,U=null,C=!1,P=null,z=0,E=!1;const L=b(()=>{const X=t.field.attributes?.readonly;return!!t.field.readOnly||X!=null&&X!==!1}),G=b(()=>t.field.multiple===!0),W=b(()=>t.field.mode==="image"),H=b(()=>G.value?t.field.maxFiles:1),re=b(()=>(n?.recordId??0)!==0),le=b(()=>o.value.filter(X=>X.state!=="failed")),ge=b(()=>{if(G.value)return o.value;const X=le.value,De=X[X.length-1];return o.value.filter(ne=>ne.state==="failed"||ne===De)}),ye=b(()=>ge.value.filter(X=>X.state!=="failed").length),ve=b(()=>L.value||i.value!=="ready"?!1:G.value?H.value===void 0||H.value===null||le.value.lengthG.value&&!L.value&&typeof H.value=="number"&&le.value.length>=H.value),fe=b(()=>t.field.fileTypes?.length?t.field.fileTypes.map(X=>X.toLowerCase()):W.value&&!t.field.mimeTypes?.length?a:null),K=b(()=>(t.field.fileTypes?.length?t.field.fileTypes:t.field.mimeTypes??[]).join(", ")),we=b(()=>{const X=[];for(const De of t.field.fileTypes??[])X.push(`.${De.toLowerCase()}`);for(const De of t.field.mimeTypes??[])X.push(De.includes("/")?De:`.${De.toLowerCase()}`);return X.length===0&&W.value&&X.push(...r),X.length>0?X.join(","):void 0}),me=b(()=>t.field.prompt||y(G.value?"backend::lang.fileupload.default_prompt_many":"backend::lang.fileupload.default_prompt"));function Y(X,De){return new Intl.NumberFormat(Wn.value,{minimumFractionDigits:De,maximumFractionDigits:De}).format(X)}function de(X){const De=["B","kB","MB","GB"];let ne=X,Le=0;for(;ne>=1e3&&Le{const X=t.field.maxFilesize;return typeof X=="number"?`${new Intl.NumberFormat(Wn.value).format(X)} MB`:""}),Q=b(()=>{const X=[];return K.value!==""&&X.push(y("backend::lang.fileupload.limits_types",{types:K.value})),J.value!==""&&X.push(y("backend::lang.fileupload.limits_size",{size:J.value})),G.value&&typeof H.value=="number"&&X.push(y("backend::lang.fileupload.limits_count",{current:le.value.length,max:H.value})),X.join(" · ")});function te(X){const De=X.lastIndexOf(".");return De<0?"":X.slice(De+1).toLowerCase()}function x(X){const De=t.field.mimeTypes??[];if(De.length===0||X.type==="")return!0;const ne=X.type.toLowerCase(),Le=te(X.name);return De.some(at=>{const It=at.toLowerCase();return It.includes("/")?It.endsWith("/*")?ne.startsWith(It.slice(0,-1)):ne===It:It===Le})}function M(X){const De=fe.value;if(De&&!De.includes(te(X.name)))return y("backend::lang.fileupload.wrong_type",{name:X.name,types:De.join(", ")});if(!x(X))return y("backend::lang.fileupload.wrong_type",{name:X.name,types:K.value});const ne=t.field.maxFilesize;return typeof ne=="number"&&X.size>Math.ceil(ne*Iq)?y("backend::lang.fileupload.too_large",{name:X.name,size:J.value}):""}function R(X){return Fn({uid:l++,name:X.file_name,size:X.file_size,state:"done",progress:100,error:"",retryable:!1,file:X,source:null,handle:null,uploadId:""})}function se(){return globalThis.crypto?.randomUUID?.()??`u${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}function ee(X,De){return Fn({uid:l++,name:X.name,size:X.size,state:De===""?"queued":"failed",progress:0,error:De,retryable:!1,file:null,source:vi(X),handle:null,uploadId:se()})}function ce(X){return o.value.find(De=>De.uid===X)}async function Ce(X){if(!I){i.value="failed";return}X&&(i.value="loading");const De=await I.list();if(E)return;if(!De.data){X&&(i.value="failed");return}const ne=o.value.filter(Le=>Le.state!=="done");for(const Le of o.value)Le.state==="done"&&ba(Le.uid);o.value=[...De.data.map(R),...ne],i.value="ready"}function $e(){L.value||f.value?.click()}function Te(X){if(X.length===0||L.value)return;if(d.value=0,!G.value)for(const at of[...o.value])at.state!=="failed"&&(at.state!=="done"||at.file?.pending)&&st(at);let De=G.value?typeof H.value=="number"?Math.max(H.value-le.value.length,0):Number.POSITIVE_INFINITY:1,ne=0;const Le=[];for(const at of X.slice(0,G.value?X.length:1)){const It=M(at);if(It===""&&De<=0){ne++;continue}It===""&&De--,Le.push(ee(at,It))}o.value=[...o.value,...Le],d.value=ne,Be()}function ue(X){const De=X.target;Te(Array.from(De.files??[])),De.value=""}function Se(X){return v.value===null&&Array.from(X.dataTransfer?.types??[]).includes("Files")}function xe(X){Se(X)&&(X.preventDefault(),u.value=!0)}function qe(X){Se(X)&&(X.preventDefault(),u.value=!1,Te(Array.from(X.dataTransfer?.files??[])))}function Be(){if(!I||o.value.some(De=>De.state==="uploading"))return;const X=o.value.find(De=>De.state==="queued");X&&Ye(X)}async function Ye(X){if(!I||!X.source)return;X.state="uploading",X.progress=0,X.error="",X.retryable=!1;const De=new Set(o.value.filter(Le=>Le.file).map(Le=>Le.file.id)),ne=n?.beginUpload();try{const Le=I.upload(X.source,(Zn,Wa)=>{X.progress=Wa>0?Math.min(100,Math.round(Zn/Wa*100)):0},X.uploadId||void 0);X.handle=vi(Le);const at=await Le.promise;X.handle=null;const It=!!ce(X.uid);if(at.ok)!It||E?I.remove(at.item.id):(X.state="done",X.progress=100,X.file=at.item,X.name=at.item.file_name,X.size=at.item.file_size,n?.markDirty());else if(at.reason==="aborted"||at.reason==="network"){const Zn=await nt(De);if(at.reason==="aborted"){for(const Wa of Zn)I.remove(Wa.id);o.value=o.value.filter(Wa=>Wa.uid!==X.uid),ba(X.uid)}else It&&Zn[0]&&Zn.length===1?(X.state="done",X.progress=100,X.file=Zn[0],X.name=Zn[0].file_name,X.size=Zn[0].file_size,n?.markDirty()):(X.state="failed",X.error=y("backend::lang.fileupload.upload_failed"),X.retryable=!0)}else if(It)switch(X.state="failed",at.reason){case"too_large":X.error=J.value?y("backend::lang.fileupload.too_large",{name:X.name,size:J.value}):at.message||y("backend::lang.fileupload.upload_failed");break;case"invalid":X.error=at.message||y("backend::lang.fileupload.upload_failed");break;default:X.error=at.message||y("backend::lang.fileupload.upload_failed"),X.retryable=at.status>=500}}finally{ne?.(),E||Be()}}async function nt(X){if(!I)return[];const De=await I.list();return De.data?De.data.filter(ne=>ne.pending&&!X.has(ne.id)):[]}function Xe(X){X.state!=="failed"||!X.source||(X.state="queued",X.error="",X.retryable=!1,Be())}async function st(X){const De=o.value.findIndex(Le=>Le.uid===X.uid);if(De<0)return;switch(o.value=o.value.filter(Le=>Le.uid!==X.uid),ba(X.uid),X.state){case"uploading":X.handle?.abort(),n?.markDirty(),Be();return;case"queued":case"failed":return}if(!I||!X.file)return;n?.markDirty();const ne=await I.remove(X.file.id);if(!ne.data&&!E){const Le=[...o.value];Le.splice(Math.min(De,Le.length),0,X),o.value=Le,Ie(ne.error?.message||y("backend::lang.form.error_generic"),"danger")}}function lt(){return o.value.map(X=>X.uid)}function At(X){const De=new Map(o.value.map(at=>[at.uid,at])),ne=X.map(at=>De.get(at)).filter(at=>!!at),Le=o.value.filter(at=>!X.includes(at.uid));o.value=[...ne,...Le]}function Pt(){q!==null&&clearTimeout(q),q=setTimeout(()=>{q=null,ze()},Rq)}function Wt(){return o.value.filter(X=>X.state==="done"&&X.file).map(X=>X.file.id)}async function ze(){if(!I)return;const X=Wt();if(C){P=X;return}const De=U;U=null;const ne=++z;C=!0;try{const Le=await I.reorder(X);if(P)return;!Le.data&&!E&&ne===z&&(De&&At(De),Ie(y("backend::lang.fileupload.reorder_failed"),"danger"))}finally{C=!1,P&&(P=null,ze())}}function Ve(X,De){const ne=o.value.findIndex(It=>It.uid===X);if(ne<0||De<0||De>=o.value.length||De===ne)return!1;U===null&&(U=lt());const Le=[...o.value],[at]=Le.splice(ne,1);return Le.splice(De,0,at),o.value=Le,c.value=y("backend::lang.fileupload.moved",{name:at.name,position:De+1,total:Le.length}),Pt(),!0}async function He(X,De){const ne=o.value.findIndex(at=>at.uid===De.uid);let Le;switch(X.key){case"ArrowUp":case"ArrowLeft":Le=ne-1;break;case"ArrowDown":case"ArrowRight":Le=ne+1;break;default:return}X.preventDefault(),Ve(De.uid,Le)&&(await We(),m.value?.querySelector(`[data-handle="${De.uid}"]`)?.focus())}function Tt(X,De){v.value=De.uid,X.dataTransfer&&(X.dataTransfer.effectAllowed="move",X.dataTransfer.setData("text/plain",De.name))}function Jn(X,De){v.value!==null&&(X.preventDefault(),h.value=De.uid)}function Ha(X,De){v.value!==null&&(X.preventDefault(),Ve(v.value,o.value.findIndex(ne=>ne.uid===De.uid)),ga())}function ga(){v.value=null,h.value=null}function qn(X){const De=X.file?.content_type??X.source?.type??"";return r.includes(De.toLowerCase())}function zt(X){return!X.file||!qn(X)||D.value.has(X.uid)?null:!t.field.protected&&!B.value.has(X.uid)?X.file.thumb_url||X.file.url||null:_.value[X.uid]??null}function Ka(){return typeof URL.revokeObjectURL=="function"}function ba(X){const De=_.value[X];if(De!==void 0){Ka()&&URL.revokeObjectURL(De);const ne={..._.value};delete ne[X],_.value=ne}if(O.delete(X),B.value.has(X)){const ne=new Set(B.value);ne.delete(X),B.value=ne}}async function Ae(X){if(!I||!X.file||O.has(X.uid)||typeof URL.createObjectURL!="function")return;O.add(X.uid);const De=await I.thumb(X.file.id);if(!(E||!ce(X.uid)||!O.has(X.uid))){if(!De){D.value=new Set([...D.value,X.uid]);return}_.value={..._.value,[X.uid]:URL.createObjectURL(De)}}}Fe(()=>o.value.map(X=>`${X.uid}:${X.state}`).join(","),()=>{if(t.field.protected)for(const X of o.value)X.state==="done"&&qn(X)&&Ae(X)});function Ne(X){if(!t.field.protected&&!B.value.has(X.uid)&&(B.value=new Set([...B.value,X.uid]),I&&typeof URL.createObjectURL=="function")){Ae(X);return}D.value=new Set([...D.value,X.uid])}async function et(X,De){if(!I||!X.file||typeof URL.createObjectURL!="function")return;const ne=await I.download(X.file.id);if(!ne){Ie(y("backend::lang.form.error_generic"),"danger");return}const Le=URL.createObjectURL(ne);A.push(Le);const at=document.createElement("a");at.href=Le,at.rel="noopener",De?at.download=X.file.file_name:at.target="_blank",at.click()}function rt(X){return t.field.useCaption&&X.file?.title?X.file.title:X.name}function Nt(X){return re.value&&!!X.file?.pending}const xt=b(()=>w.value===null?void 0:ce(w.value));function Cn(X){w.value=X.uid,S.value=!0}function fo(X){const De=xt.value;De&&(De.file=X)}function po(){const X=w.value;w.value=null,X!==null&&m.value?.querySelector(`[data-caption="${X}"]`)?.focus()}const vo=b(()=>{const X=t.field.thumbOptions?.mode;return X==="fit"||X==="auto"?"object-contain":"object-cover"});return wt(()=>{Ce(!0)}),n&&Fe(n.revision,()=>{Ce(!1)}),Et(()=>{E=!0,q!==null&&(clearTimeout(q),q=null);for(const X of o.value)X.handle?.abort();if(Ka()){for(const X of Object.values(_.value))URL.revokeObjectURL(X);for(const X of A)URL.revokeObjectURL(X)}}),(X,De)=>(p(),g("div",{id:e.controlId,ref_key:"root",ref:m,role:"group","data-fileupload":"","data-field-name":e.field.name,"aria-labelledby":e.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0,"aria-busy":i.value==="loading"?"true":void 0,class:"flex min-w-0 flex-col gap-4"},[i.value==="loading"?(p(),g("span",gR)):i.value==="failed"?(p(),g("p",bR,$(s(y)("backend::lang.fileupload.load_failed")),1)):(p(),g(pe,{key:2},[L.value&&ge.value.length===0?(p(),g("p",_R,$(s(y)("backend::lang.fileupload.empty")),1)):W.value&&G.value&&ge.value.length>0?(p(),g("ul",xR,[(p(!0),g(pe,null,Me(ge.value,ne=>(p(),g("li",{key:ne.uid,"data-file-item":ne.uid,"data-state":ne.state,class:he([[ne.state==="failed"?"border-danger":"border-border",v.value===ne.uid?"opacity-50":"",h.value===ne.uid&&v.value!==ne.uid?"border-2 border-dashed border-primary bg-sel":""],"relative overflow-hidden rounded-inner border bg-surface"]),onDragover:Le=>Jn(Le,ne),onDrop:Le=>Ha(Le,ne)},[k("div",wR,[ne.state==="uploading"?(p(),j(s(Vl),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):ne.state==="failed"?(p(),j(s(_t),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):ne.state==="done"?(p(),g(pe,{key:2},[zt(ne)&&!e.field.protected&&ne.file?.url?(p(),g("a",{key:0,href:ne.file.url,target:"_blank",rel:"noopener",class:"block size-full","aria-label":s(y)("backend::lang.fileupload.open_preview",{name:ne.name})},[k("img",{src:zt(ne)??void 0,alt:rt(ne),class:he([vo.value,"size-full"]),onError:Le=>Ne(ne)},null,42,CR)],8,$R)):zt(ne)?(p(),g("button",{key:1,type:"button",class:"block size-full","aria-label":s(y)("backend::lang.fileupload.open_preview",{name:ne.name}),onClick:Le=>et(ne,!1)},[k("img",{src:zt(ne)??void 0,alt:rt(ne),class:he([vo.value,"size-full"])},null,10,ER)],8,SR)):D.value.has(ne.uid)?(p(),g("span",AR,[N(s(Wv),{size:20,"aria-hidden":"true"}),_e(" "+$(s(y)("backend::lang.fileupload.preview_unavailable")),1)])):(p(),j(s(Il),{key:3,size:20,class:"text-muted","aria-hidden":"true"}))],64)):(p(),j(s(Il),{key:3,size:20,class:"text-muted","aria-hidden":"true"})),!L.value&&ne.state==="done"?(p(),g("button",{key:4,type:"button",draggable:"true","data-handle":ne.uid,"aria-label":s(y)("backend::lang.fileupload.move",{name:ne.name}),class:he([Bc,"absolute top-2 left-2 cursor-grab"]),onKeydown:Le=>He(Le,ne),onDragstart:Le=>Tt(Le,ne),onDragend:ga},[N(s(Di),{size:16,"aria-hidden":"true"})],40,TR)):Z("",!0),L.value?Z("",!0):(p(),g("div",DR,[e.field.useCaption&&ne.state==="done"?(p(),g("button",{key:0,type:"button","data-caption":ne.uid,"aria-label":s(y)("backend::lang.fileupload.edit_details",{name:ne.name}),class:he(Bc),onClick:Le=>Cn(ne)},[N(s(Ho),{size:16,"aria-hidden":"true"})],8,OR)):Z("",!0),ne.state==="failed"&&ne.retryable?(p(),g("button",{key:1,type:"button","data-action":"retry","aria-label":s(y)("backend::lang.fileupload.retry"),class:he(Bc),onClick:Le=>Xe(ne)},[N(s(si),{size:16,"aria-hidden":"true"})],8,MR)):Z("",!0),k("button",{type:"button","data-action":"remove-file","aria-label":ne.state==="uploading"||ne.state==="queued"?s(y)("backend::lang.fileupload.cancel_upload",{name:ne.name}):s(y)("backend::lang.form.remove_item",{name:ne.name}),class:he(qq),onClick:Le=>st(ne)},[N(s(Xt),{size:16,"aria-hidden":"true"})],8,PR)]))]),k("div",IR,[k("span",{class:"truncate text-[13px]",title:rt(ne)},$(rt(ne)),9,RR),k("span",qR,[ne.state==="queued"?(p(),g("span",LR,$(s(y)("backend::lang.fileupload.queued")),1)):ne.state==="uploading"?(p(),g("span",NR,$(s(y)("backend::lang.fileupload.uploading",{percent:ne.progress})),1)):(p(),g("span",BR,$(de(ne.size)),1)),Nt(ne)?(p(),g("span",FR,$(s(y)("backend::lang.fileupload.unsaved")),1)):Z("",!0)]),ne.state==="uploading"?(p(),j(s(Dc),{key:0,"model-value":ne.progress,max:100,"aria-label":s(y)("backend::lang.fileupload.uploading",{percent:ne.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[N(s(Oc),{class:"h-full bg-primary",style:un({width:`${ne.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):Z("",!0),ne.state==="failed"?(p(),g("p",VR,[k("span",zR,$(s(y)("backend::lang.fileupload.upload_error"))+": ",1),_e($(ne.error),1)])):Z("",!0)])],42,kR))),128))])):W.value&&!G.value&&ge.value.length>0?(p(),g("div",jR,[(p(!0),g(pe,null,Me(ge.value,ne=>(p(),g("div",{key:ne.uid,"data-file-item":ne.uid,"data-state":ne.state,class:"flex items-start gap-4"},[k("div",{class:he([ne.state==="failed"?"border-danger":"border-border","flex size-40 shrink-0 items-center justify-center overflow-hidden rounded-inner border bg-subtle"])},[ne.state==="uploading"?(p(),j(s(Vl),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):ne.state==="failed"?(p(),j(s(_t),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):zt(ne)?(p(),g("img",{key:2,src:zt(ne)??void 0,alt:rt(ne),class:he([vo.value,"size-full"]),onError:Le=>Ne(ne)},null,42,HR)):D.value.has(ne.uid)?(p(),g("span",KR,[N(s(Wv),{size:20,"aria-hidden":"true"}),_e(" "+$(s(y)("backend::lang.fileupload.preview_unavailable")),1)])):(p(),j(s(Il),{key:4,size:20,class:"text-muted","aria-hidden":"true"}))],2),k("div",WR,[k("span",{class:"truncate font-semibold",title:rt(ne)},$(rt(ne)),9,GR),k("span",YR,[ne.state==="queued"?(p(),g("span",JR,$(s(y)("backend::lang.fileupload.queued")),1)):ne.state==="uploading"?(p(),g("span",ZR,$(s(y)("backend::lang.fileupload.uploading",{percent:ne.progress})),1)):(p(),g("span",XR,$(de(ne.size)),1)),Nt(ne)?(p(),g("span",QR,$(s(y)("backend::lang.fileupload.unsaved")),1)):Z("",!0)]),ne.state==="uploading"?(p(),j(s(Dc),{key:0,"model-value":ne.progress,max:100,"aria-label":s(y)("backend::lang.fileupload.uploading",{percent:ne.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[N(s(Oc),{class:"h-full bg-primary",style:un({width:`${ne.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):Z("",!0),ne.state==="failed"?(p(),g("p",eq,[k("span",tq,$(s(y)("backend::lang.fileupload.upload_error"))+": ",1),_e($(ne.error),1)])):Z("",!0),L.value?Z("",!0):(p(),g("div",nq,[ne.state!=="failed"?(p(),j(Ue,{key:0,size:"sm",variant:"outline","data-action":"replace-file",icon:s(Ko),onClick:$e},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):Z("",!0),ne.state==="failed"&&ne.retryable?(p(),j(Ue,{key:1,size:"sm",variant:"outline","data-action":"retry",icon:s(si),onClick:Le=>Xe(ne)},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.retry")),1)]),_:1},8,["icon","onClick"])):Z("",!0),e.field.useCaption&&ne.state==="done"?(p(),j(Ue,{key:2,size:"sm",variant:"outline","data-caption":ne.uid,icon:s(Ho),onClick:Le=>Cn(ne)},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.details_submit")),1)]),_:1},8,["data-caption","icon","onClick"])):Z("",!0),N(Ue,{size:"sm",variant:"danger","data-action":"remove-file",icon:s(Xt),onClick:Le=>st(ne)},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.remove_file")),1)]),_:1},8,["icon","onClick"])]))])],8,UR))),128))])):ge.value.length>0?(p(),g("ul",aq,[(p(!0),g(pe,null,Me(ge.value,ne=>(p(),g("li",{key:ne.uid,"data-file-item":ne.uid,"data-state":ne.state,class:he([[ne.state==="failed"?"border-danger":"border-border",v.value===ne.uid?"opacity-50":"",h.value===ne.uid&&v.value!==ne.uid?"border-2 border-dashed border-primary bg-sel":""],"flex min-h-14 flex-col justify-center gap-1 rounded-inner border bg-surface px-3 py-2"]),onDragover:Le=>Jn(Le,ne),onDrop:Le=>Ha(Le,ne)},[k("div",lq,[G.value&&!L.value&&ne.state==="done"?(p(),g("button",{key:0,type:"button",draggable:"true","data-handle":ne.uid,"aria-label":s(y)("backend::lang.fileupload.move",{name:ne.name}),class:he([$l,"cursor-grab"]),onKeydown:Le=>He(Le,ne),onDragstart:Le=>Tt(Le,ne),onDragend:ga},[N(s(Di),{size:16,"aria-hidden":"true"})],40,oq)):Z("",!0),k("span",sq,[ne.state==="uploading"?(p(),j(s(Vl),{key:0,size:16,class:"animate-spin text-muted","aria-hidden":"true"})):ne.state==="failed"?(p(),j(s(_t),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):zt(ne)?(p(),g("img",{key:2,src:zt(ne)??void 0,alt:"",class:"size-8 object-cover",onError:Le=>Ne(ne)},null,40,iq)):(p(),j(s(Il),{key:3,size:16,class:"text-muted","aria-hidden":"true"}))]),k("span",uq,[e.field.useCaption&&ne.file?.title?(p(),g(pe,{key:0},[k("span",{class:"truncate font-semibold",title:ne.file.title},$(ne.file.title),9,cq),k("span",{class:"truncate text-[13px] text-muted",title:ne.name},$(ne.name),9,dq)],64)):(p(),g("span",{key:1,class:"truncate",title:ne.name},$(ne.name),9,fq))]),k("span",pq,[ne.state==="queued"?(p(),g("span",vq,$(s(y)("backend::lang.fileupload.queued")),1)):ne.state==="uploading"?(p(),g("span",mq,$(s(y)("backend::lang.fileupload.uploading",{percent:ne.progress})),1)):(p(),g("span",hq,$(de(ne.size)),1)),Nt(ne)?(p(),g("span",yq,$(s(y)("backend::lang.fileupload.unsaved")),1)):Z("",!0)]),!G.value&&!L.value&&ne.state!=="failed"?(p(),j(Ue,{key:1,size:"sm",variant:"outline","data-action":"replace-file",icon:s(Ko),onClick:$e},{default:F(()=>[_e($(s(y)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):Z("",!0),k("span",gq,[ne.state==="done"&&ne.file?(p(),g(pe,{key:0},[!e.field.protected&&ne.file.url?(p(),g("a",{key:0,href:ne.file.url,download:"",target:"_blank",rel:"noopener","aria-label":s(y)("backend::lang.fileupload.download",{name:ne.name}),class:he($l)},[N(s(hd),{size:16,"aria-hidden":"true"})],8,bq)):e.field.protected?(p(),g("button",{key:1,type:"button","data-action":"download","aria-label":s(y)("backend::lang.fileupload.download",{name:ne.name}),class:he($l),onClick:Le=>et(ne,!0)},[N(s(hd),{size:16,"aria-hidden":"true"})],8,_q)):Z("",!0),e.field.useCaption&&!L.value?(p(),g("button",{key:2,type:"button","data-caption":ne.uid,"aria-label":s(y)("backend::lang.fileupload.edit_details",{name:ne.name}),class:he($l),onClick:Le=>Cn(ne)},[N(s(Ho),{size:16,"aria-hidden":"true"})],8,xq)):Z("",!0)],64)):Z("",!0),ne.state==="failed"&&ne.retryable?(p(),g("button",{key:1,type:"button","data-action":"retry","aria-label":s(y)("backend::lang.fileupload.retry"),class:he($l),onClick:Le=>Xe(ne)},[N(s(si),{size:16,"aria-hidden":"true"})],8,kq)):Z("",!0),L.value?Z("",!0):(p(),g("button",{key:2,type:"button","data-action":"remove-file","aria-label":ne.state==="uploading"||ne.state==="queued"?s(y)("backend::lang.fileupload.cancel_upload",{name:ne.name}):s(y)("backend::lang.form.remove_item",{name:ne.name}),class:he([$l,"hover:bg-danger-soft hover:text-danger"]),onClick:Le=>st(ne)},[N(s(Xt),{size:16,"aria-hidden":"true"})],8,wq))])]),ne.state==="uploading"?(p(),j(s(Dc),{key:0,"model-value":ne.progress,max:100,"aria-label":s(y)("backend::lang.fileupload.uploading",{percent:ne.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[N(s(Oc),{class:"h-full bg-primary",style:un({width:`${ne.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):Z("",!0),ne.state==="failed"?(p(),g("p",$q,[k("span",Cq,$(s(y)("backend::lang.fileupload.upload_error"))+": ",1),_e($(ne.error),1)])):Z("",!0)],42,rq))),128))])):Z("",!0),ve.value?(p(),g("button",{key:4,type:"button","data-fileupload-dropzone":"","aria-describedby":e.describedBy||void 0,class:he([[u.value?"border-solid border-primary bg-sel":e.invalid?"border-dashed border-danger bg-subtle":"border-dashed border-border-strong bg-subtle"],"flex min-h-[112px] w-full flex-col items-center justify-center gap-2 rounded-control border-[1.5px] px-4 py-6 text-center transition-colors duration-150 ease-out hover:bg-hover"]),onClick:$e,onDragover:xe,onDragleave:De[0]||(De[0]=ne=>u.value=!1),onDrop:qe},[k("span",Eq,[N(s(Ko),{size:20,class:"text-muted"})]),k("span",Aq,$(me.value),1),Q.value!==""?(p(),g("span",Tq,$(Q.value),1)):Z("",!0)],42,Sq)):oe.value&&Q.value!==""?(p(),g("p",Dq,$(Q.value),1)):Z("",!0),d.value>0?(p(),g("p",Oq,[N(s(_t),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(s(Qr)("backend::lang.fileupload.too_many",d.value,{max:H.value??0})),1)])):Z("",!0)],64)),k("input",{ref_key:"input",ref:f,type:"file",hidden:"",tabindex:"-1","data-fileupload-input":"",accept:we.value,multiple:G.value||void 0,onChange:ue},null,40,Mq),k("p",Pq,$(c.value),1),e.field.useCaption?(p(),j(hR,{key:3,open:S.value,"onUpdate:open":De[1]||(De[1]=ne=>S.value=ne),file:xt.value?.file??null,routes:s(I),preview:xt.value?zt(xt.value):null,"id-prefix":e.controlId,onSaved:fo,onClosed:po},null,8,["open","file","routes","preview","id-prefix"])):Z("",!0)],8,yR))}}),Nq=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Bq=ae({__name:"NumberField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),l=b(()=>qr(n.field));function o(i){const u=i.target.value.trim();if(u===""){a("update:modelValue",null);return}const d=Number(u);a("update:modelValue",Number.isFinite(d)?d:null)}return(i,u)=>(p(),g("input",je({id:e.controlId},l.value,{name:e.field.name,type:"number",inputmode:"decimal",value:r.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[s(Lt)(e.invalid),"h-input tabular-nums"],onInput:o}),null,16,Nq))}}),Fq=["id","aria-labelledby","aria-describedby"],Vq=ae({__name:"PartialField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=it(w0,T(0));return(a,r)=>(p(),g("div",{id:e.controlId,role:"group","data-partial-field":"","aria-labelledby":t.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0},[e.source?(p(),j(dp,{key:0,variant:"field",source:e.source,name:t.field.path||t.field.name,"record-id":e.recordId??null,"reload-key":s(n)},null,8,["source","name","record-id","reload-key"])):(p(),j(Ru,{key:1,"data-partial-failed":"",text:s(y)("backend::lang.extension.partial_failed")},null,8,["text"]))],8,Fq))}}),zq={class:"flex min-w-0 flex-col gap-1.5"},jq={class:"relative"},Uq=["id","name","type","value","placeholder","disabled","required","aria-required","aria-invalid","aria-describedby"],Hq=["aria-pressed","aria-label","disabled"],Kq=["id","data-secret-state","role"],Wq={key:3},Gq=ae({__name:"PasswordField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=T(!1),l=b(()=>typeof n.modelValue=="string"?n.modelValue:""),o=b(()=>qr(n.field)),i=it(io,null);i&&Fe(i.revision,()=>{r.value=!1});const u=it(C0,null),d=b(()=>u?.value[n.field.name]??""),c=b(()=>d.value!==""),f=b(()=>d.value==="stored"&&n.modelValue===null),m=b(()=>`${n.controlId}-secret`),v=b(()=>[n.describedBy??"",c.value?m.value:""].filter(Boolean).join(" ")),h=b(()=>{if(d.value==="stored"&&!f.value)return y("backend::lang.secret.placeholder_stored");const _=o.value.placeholder;return typeof _=="string"?_:void 0});function w(){r.value=!1,a("update:modelValue",null)}function S(){a("update:modelValue","")}return(_,D)=>(p(),g("div",zq,[k("div",jq,[k("input",je({id:e.controlId,autocomplete:"new-password",spellcheck:"false"},o.value,{name:e.field.name,type:r.value?"text":"password",value:f.value?"":l.value,placeholder:h.value,disabled:f.value||void 0,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":v.value||void 0,class:[s(Lt)(e.invalid),"h-input pr-12"],onInput:D[0]||(D[0]=B=>a("update:modelValue",B.target.value))}),null,16,Uq),k("button",{type:"button","data-password-toggle":"","aria-pressed":r.value?"true":"false","aria-label":s(y)(r.value?"backend::lang.form.hide_password":"backend::lang.form.show_password"),disabled:f.value||void 0,class:"absolute top-1/2 right-1.5 flex size-8 -translate-y-1/2 items-center justify-center rounded-pager text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text disabled:opacity-60",onClick:D[1]||(D[1]=B=>r.value=!r.value)},[(p(),j(Kt(r.value?s(N$):s(F$)),{size:16,"aria-hidden":"true"}))],8,Hq)]),c.value?(p(),g("p",{key:0,id:m.value,"data-secret-state":f.value?"clearing":d.value,role:f.value?"status":void 0,class:he([f.value?"text-danger":"text-muted","flex flex-wrap items-center gap-2 text-[13px]"])},[f.value?(p(),g(pe,{key:0},[N(s(_t),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.secret.clear_pending")),1),N(Ue,{variant:"ghost",size:"sm",icon:s(ab),"data-action":"secret-undo",onClick:S},{default:F(()=>[_e($(s(y)("backend::lang.secret.undo")),1)]),_:1},8,["icon"])],64)):d.value==="stored"?(p(),g(pe,{key:1},[N(s(or),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.secret.stored")),1),N(Ue,{variant:"ghost",size:"sm",icon:s(Er),"data-action":"secret-clear",onClick:w},{default:F(()=>[_e($(s(y)("backend::lang.secret.clear")),1)]),_:1},8,["icon"])],64)):d.value==="env"?(p(),g(pe,{key:2},[N(s(ol),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(s(y)("backend::lang.secret.env")),1)],64)):(p(),g("span",Wq,$(s(y)("backend::lang.secret.empty")),1))],10,Kq)):Z("",!0)]))}}),Yq=["aria-labelledby","data-ml-field"],Jq={class:"flex flex-wrap items-center gap-2"},Zq=["value","aria-label"],Xq=["value"],Nu=ae({__name:"MLField",props:{inner:{},innerType:{},mlType:{},contentLocale:{type:Boolean},field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>ua(n.modelValue)),l=it(Hi,null),o=b(()=>{const _=l?.value;return _&&_.length>0?[..._]:[]}),i=T(o.value[0]??"en"),u=b(()=>`${n.controlId}-label`),d=b(()=>`${n.controlId}-editor`),c=b(()=>r.value[i.value]??""),f=b(()=>({...n.field,type:n.innerType})),m=b(()=>n.contentLocale?{contentLocale:i.value}:{});function v(_){_&&(i.value=_)}function h(_){const D=_.target.value;v(D),mI(D)}function w(_){a("update:modelValue",{...r.value,[i.value]:_})}function S(_){const D=_.detail;typeof D=="string"&&D!==""&&v(D)}return wt(()=>{window.addEventListener(vs,S)}),Va(()=>{window.removeEventListener(vs,S)}),(_,D)=>(p(),g("div",{class:"flex flex-col gap-1.5",role:"group","aria-labelledby":u.value,"data-ml-field":e.mlType},[k("div",Jq,[k("select",{"data-ml-locale":"",class:"rounded-control border border-border-strong bg-surface px-2 py-1 text-[13px]",value:i.value,"aria-label":`Locale for ${e.field.label||e.field.name}`,onChange:h},[(p(!0),g(pe,null,Me(o.value,B=>(p(),g("option",{key:B,value:B},$(B),9,Xq))),128))],40,Zq)]),(p(),j(Kt(e.inner),je({field:f.value,"model-value":c.value,"control-id":d.value,invalid:e.invalid,"described-by":e.describedBy,source:e.source,"record-id":e.recordId},m.value,{"onUpdate:modelValue":w}),null,16,["field","model-value","control-id","invalid","described-by","source","record-id"]))],8,Yq))}}),Qq=["id","aria-labelledby","aria-describedby","aria-busy"],eL={key:0,"data-plugin-field-skeleton":"",class:"h-[42px] w-full rounded-control bg-skel","aria-hidden":"true"},A0=ae({__name:"PluginField",props:{contentLocale:{},field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=it(Lu,null),l=T("loading"),o=T(null);let i=null,u=!1;const d=b(()=>r?.value||Wn.value),c=b(()=>JSON.stringify(n.field.typeOptions??{})),f=b(()=>n.field.readOnly===!0);function m(A,I){if(Object.is(A,I))return!0;if(A===null||I===null||typeof A!="object"||typeof I!="object")return!1;try{return JSON.stringify(A)===JSON.stringify(I)}catch{return!1}}function v(A,I){m(A.value,I)||(A.value=I)}function h(A,I,q){q?A.setAttribute(I,""):A.removeAttribute(I)}function w(A){A.setAttribute("field-name",n.field.name),A.setAttribute("record-id",n.recordId==null?"":String(n.recordId)),A.setAttribute("locale",n.contentLocale??""),A.setAttribute("ui-locale",d.value),A.setAttribute("options",c.value),h(A,"disabled",f.value),h(A,"invalid",n.invalid===!0)}function S(A){let I;return{promise:new Promise((U,C)=>{I=setTimeout(()=>C(new Error("field type element was not defined in time")),A)}),cancel:()=>clearTimeout(I)}}async function _(A){const I=await Y8(A);if(customElements.get(A))return;if(I.length>0)throw new Error(`plugin script failed: ${I.join(", ")}`);const q=S(S0);try{await Promise.race([customElements.whenDefined(A),q.promise])}finally{q.cancel()}}async function D(A){const I=i,q=A.detail;if(!I||q===null||typeof q!="object")return;const{id:U,file:C}=q,P=G=>{!u&&i===I&&I.dispatchEvent(new CustomEvent(jI,{detail:{id:U,...G}}))},z=()=>y("backend::lang.fileupload.upload_failed"),E=n.source;if(!(C instanceof Blob)||!E){P({error:z()});return}const L=C instanceof File&&C.name!==""?C.name:"upload";try{const G=await Re.POST("/{vendor}/{plugin}/{controller}/{id}/fields/{field}/upload",{params:{path:{...E,id:n.recordId??0,field:n.field.name}},body:{file:""},bodySerializer:()=>{const H=new FormData;return H.append("file",C,L),H}});if(G.data){P({url:G.data.data.url});return}const W=G.response.status===422?fp(G.error?.error):"";P({error:W||z()})}catch{P({error:z()})}}function B(A){D(A)}function O(A){const I=A.detail;I!==null&&typeof I=="object"&&Object.hasOwn(I,"value")&&a("update:modelValue",I.value)}return wt(async()=>{const A=n.field.element??"";try{if(A==="")throw new Error("plugin field without an element");if(await _(A),u||!o.value)return;const I=document.createElement(A);w(I),v(I,n.modelValue),I.addEventListener(uh,O),I.addEventListener(ch,B),o.value.append(I),i=I,l.value="ready"}catch{u||(l.value="failed")}}),Fe(()=>[n.recordId,n.invalid,n.contentLocale,f.value,d.value,c.value],()=>{i&&w(i)}),Fe(()=>n.modelValue,A=>{i&&v(i,A)},{deep:!0}),Et(()=>{u=!0,i?.removeEventListener(uh,O),i?.removeEventListener(ch,B),i=null}),(A,I)=>l.value==="failed"?(p(),j(Ru,{key:0,id:e.controlId,"data-plugin-field-failed":"","aria-describedby":e.describedBy||void 0,text:s(y)("backend::lang.extension.widget_failed")},null,8,["id","aria-describedby","text"])):(p(),g("div",{key:1,id:e.controlId,role:"group","data-plugin-field":"","aria-labelledby":e.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0,"aria-busy":l.value==="loading"?"true":void 0,class:"flex min-h-input min-w-0 flex-col"},[l.value==="loading"?(p(),g("span",eL)):Z("",!0),k("div",{ref_key:"mountPoint",ref:o,class:"contents"},null,512)],8,Qq))}}),tL=ae({__name:"MLPluginField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t;return(r,l)=>(p(),j(Nu,je(n,{inner:A0,"inner-type":e.field.type,"ml-type":e.field.type,"content-locale":"","onUpdate:modelValue":l[0]||(l[0]=o=>a("update:modelValue",o))}),null,16,["inner-type","ml-type"]))}}),nL=["id"],aL=["id","aria-labelledby","aria-label","aria-describedby","data-mode"],rL=["aria-labelledby"],lL=["id"],oL={class:"min-w-0 [overflow-wrap:anywhere]"},sL={key:0,class:"shrink-0 text-[12px] font-semibold text-muted","aria-hidden":"true"},iL=["data-permission","data-locked","data-locked-by"],uL={class:"flex min-w-0 flex-col"},cL=["id"],dL=["id"],fL=ae({__name:"PermissionEditorField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=it(mp,null),l=b(()=>{const O=new Map;for(const A of r?.value[n.field.name]??[])O.set(A.code,A);return O}),o=b(()=>n.field.permissionOptions??[]),i=b(()=>n.field.mode==="radio"),u=b(()=>!!n.field.readOnly||!!qr(n.field).readonly),d=b(()=>k0(n.field,n.modelValue)),c=b(()=>{const O=[],A=[];for(const I of o.value){if(!I.tab){A.push(I);continue}let q=O.find(U=>U.label===I.tab);q||(q={key:`tab:${I.tab}`,label:I.tab,options:[]},O.push(q)),q.options.push(I)}return A.length>0&&O.push({key:"other",label:y("backend::lang.permissioneditor.other"),options:A}),O}),f=[{value:"1",label:"backend::lang.permissioneditor.allow",checked:"data-[state=checked]:bg-ok-bg data-[state=checked]:text-ok-text"},{value:"0",label:"backend::lang.permissioneditor.inherit",checked:"data-[state=checked]:bg-surface data-[state=checked]:text-text data-[state=checked]:shadow-tab"},{value:"-1",label:"backend::lang.permissioneditor.deny",checked:"data-[state=checked]:bg-danger-soft data-[state=checked]:text-danger"}],m=b(()=>`${n.controlId}-label`);function v(O,A){return`${n.controlId}-${O}-${A}`}function h(O){return l.value.get(O.code)}function w(O){return u.value||!!O.locked||h(O)!==void 0}function S(O){return(!!O.locked||h(O)!==void 0)&&!u.value}function _(O){return h(O)?.note||y("backend::lang.permissioneditor.locked")}function D(O){const A=h(O);return A?A.value===1||i.value&&A.value===-1?A.value:0:d.value[O.code]??0}function B(O,A){if(w(O))return;const I={...d.value};A===1||i.value&&A===-1?I[O.code]=A:delete I[O.code],a("update:modelValue",I)}return(O,A)=>o.value.length===0?(p(),g("div",{key:0,id:e.controlId,"data-permission-empty":"",class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 text-muted"},$(s(y)("backend::lang.permissioneditor.empty")),9,nL)):(p(),g("div",{key:1,id:e.controlId,role:"group","aria-labelledby":e.field.label?m.value:void 0,"aria-label":e.field.label?void 0:e.field.name,"aria-describedby":e.describedBy||void 0,class:he([e.invalid?"border-danger":"border-border","overflow-hidden rounded-inner border"]),"data-permission-editor":"","data-mode":i.value?"radio":"checkbox"},[(p(!0),g(pe,null,Me(c.value,(I,q)=>(p(),g("div",{key:I.key,role:"group","aria-labelledby":`${e.controlId}-section-${q}`,"data-permission-section":""},[k("h3",{id:`${e.controlId}-section-${q}`,class:he([q>0?"border-t border-border":"","flex h-row-head items-center justify-between gap-4 bg-subtle px-4 font-semibold"])},[k("span",oL,$(I.label),1),i.value?Z("",!0):(p(),g("span",sL,$(s(y)("backend::lang.permissioneditor.allow")),1))],10,lL),(p(!0),g(pe,null,Me(I.options,(U,C)=>(p(),g("div",{key:U.code,"data-permission":U.code,"data-locked":S(U)?"":void 0,"data-locked-by":S(U)&&h(U)?"record":void 0,class:"flex min-h-[56px] items-center justify-between gap-x-4 gap-y-2 border-t border-border px-4 py-3 max-sm:flex-col max-sm:items-start"},[k("div",uL,[(p(),j(Kt(i.value?"span":"label"),{id:`${v(q,C)}-label`,for:i.value?void 0:v(q,C),class:"[overflow-wrap:anywhere]"},{default:F(()=>[_e($(U.label||U.code)+" ",1),S(U)?(p(),j(s(or),{key:0,size:14,class:"ml-1 inline-block align-[-2px] text-muted","aria-hidden":"true"})):Z("",!0)]),_:2},1032,["id","for"])),S(U)?(p(),g("p",{key:0,id:`${v(q,C)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]","data-permission-locked":""},$(_(U)),9,cL)):U.comment?(p(),g("p",{key:1,id:`${v(q,C)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]"},$(U.comment),9,dL)):Z("",!0)]),i.value?(p(),j(s(q1),{key:0,orientation:"horizontal","model-value":String(D(U)),disabled:w(U),"aria-disabled":w(U)?"true":void 0,"aria-labelledby":`${v(q,C)}-label`,"aria-describedby":S(U)||U.comment?`${v(q,C)}-note`:void 0,class:"inline-flex shrink-0 gap-1 rounded-inner border border-border bg-subtle p-1","onUpdate:modelValue":P=>B(U,Number(P))},{default:F(()=>[(p(),g(pe,null,Me(f,P=>N(s(L1),{key:P.value,value:P.value,"data-segment":P.value,class:he([P.checked,"inline-flex h-pager items-center rounded-tab px-4 text-[13px] whitespace-nowrap text-muted transition-colors duration-150 ease-out hover:text-text disabled:cursor-not-allowed disabled:hover:text-muted data-[state=checked]:text-[14px] data-[state=checked]:font-semibold"])},{default:F(()=>[_e($(s(y)(P.label)),1)]),_:2},1032,["value","data-segment","class"])),64))]),_:1},8,["model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"])):(p(),j(s(aD),{key:1,id:v(q,C),"model-value":D(U)===1,disabled:w(U),"aria-disabled":w(U)?"true":void 0,"aria-labelledby":`${v(q,C)}-label`,"aria-describedby":S(U)||U.comment?`${v(q,C)}-note`:void 0,class:"flex size-[18px] shrink-0 items-center justify-center rounded-checkbox border border-border-strong bg-surface disabled:cursor-not-allowed disabled:opacity-60 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-on-primary","onUpdate:modelValue":P=>B(U,P===!0?1:0)},{default:F(()=>[N(s(lD),null,{default:F(()=>[N(s(In),{size:14,"aria-hidden":"true"})]),_:1})]),_:1},8,["id","model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"]))],8,iL))),128))],8,rL))),128))],10,aL))}}),pL=ae({__name:"FieldRenderer",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>K0(n.field));return(l,o)=>(p(),j(Kt(r.value),{field:e.field,"model-value":e.modelValue,"control-id":e.controlId,invalid:e.invalid,"described-by":e.describedBy,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":o[0]||(o[0]=i=>a("update:modelValue",i))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]))}}),vL=["data-field"],mL=["id"],hL={key:0,class:"text-danger","aria-hidden":"true"},yL=["id","for"],gL={key:0,class:"text-danger","aria-hidden":"true"},bL=["id"],_L=["id"],xL=["id"],kL=["id"],wL=ae({__name:"FormField",props:{field:{},modelValue:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=b(()=>`${n.idPrefix??"field"}-${n.field.name}`),l=b(()=>r.value),o=b(()=>`${r.value}-comment`),i=b(()=>`${r.value}-error`),u=b(()=>`${r.value}-notice`),d=b(()=>`${r.value}-trigger`),c=it(As,null),f=it(hp,null),m=b(()=>f?.value[c?c.path(n.field.name):n.field.name]??""),v=b(()=>(n.errors?.length??0)>0),h=b(()=>(n.notices?.length??0)>0),w=b(()=>QV(n.field.type)),S=b(()=>e7(n.field.type)||Fu(n.field)),_=b(()=>!w.value&&!!n.field.comment),D=b(()=>[m.value!==""?d.value:"",_.value||w.value&&n.field.comment?o.value:"",v.value?i.value:"",h.value?u.value:""].filter(Boolean).join(" "));return(B,O)=>(p(),g("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[S.value&&e.field.label?(p(),g("span",{key:0,id:`${l.value}-label`,class:"font-semibold"},[_e($(e.field.label),1),e.field.required?(p(),g("span",hL," *")):Z("",!0)],8,mL)):!w.value&&!S.value?(p(),g("label",{key:1,id:`${l.value}-label`,for:l.value,class:"font-semibold"},[_e($(e.field.label||e.field.name),1),e.field.required?(p(),g("span",gL," *")):Z("",!0)],8,yL)):Z("",!0),m.value!==""?(p(),g("p",{key:2,id:d.value,"data-trigger-note":"",class:"flex items-center gap-2 text-[13px] text-muted"},[N(s(ol),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(m.value),1)],8,bL)):Z("",!0),N(pL,{field:e.field,"model-value":e.modelValue,"control-id":l.value,invalid:v.value,"described-by":D.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":O[0]||(O[0]=A=>a("update:modelValue",A))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),_.value?(p(),g("p",{key:3,id:o.value,class:"text-[13px] text-muted"},$(e.field.comment),9,_L)):Z("",!0),h.value?(p(),g("div",{key:4,id:u.value,role:"status","data-field-notice":"",class:"summer-callout summer-callout--warning text-[13px]!"},[(p(!0),g(pe,null,Me(e.notices,(A,I)=>(p(),g("p",{key:I,class:"summer-callout__text"},$(A),1))),128))],8,xL)):Z("",!0),v.value?(p(),g("div",{key:5,id:i.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(p(!0),g(pe,null,Me(e.errors,(A,I)=>(p(),g("p",{key:I,class:"flex items-center gap-1.5"},[N(s(_t),{size:14,class:"shrink-0","aria-hidden":"true"}),k("span",null,$(A),1)]))),128))],8,kL)):Z("",!0)],8,vL))}}),$L={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},uo=ae({__name:"FormGrid",props:{fields:{},values:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{},scopePath:{}},emits:["update"],setup(e,{emit:t}){const n=e,a=t;vt(As,{fields:b(()=>n.fields),values:b(()=>n.values),path:l=>n.scopePath?`${n.scopePath}.${l}`:l});function r(l){if(l.type===fl)return"col-span-full";switch(l.span){case"left":return"min-[600px]:col-start-1";case"right":return"min-[600px]:col-start-2";case"auto":case"row":return"";default:return"col-span-full"}}return(l,o)=>(p(),g("div",$L,[(p(!0),g(pe,null,Me(e.fields,i=>(p(),j(wL,{key:i.name,class:he(r(i)),field:i,"model-value":e.values[i.name],errors:e.errors[i.name],notices:e.notices?.[i.name],labels:e.labels?.[i.name],source:e.source,"record-id":e.recordId,"id-prefix":e.idPrefix,"onUpdate:modelValue":u=>a("update",i.name,u)},null,8,["class","field","model-value","errors","notices","labels","source","record-id","id-prefix","onUpdate:modelValue"]))),128))]))}}),CL=["data-preview-field"],SL=["id"],EL={class:"m-0 min-w-0"},AL={key:0,"data-switch":"true",class:"inline-flex h-6 items-center rounded-pill bg-ok-bg px-2.5 text-[12px] font-semibold text-ok-text"},TL={key:1,"data-switch":"false",class:"inline-flex h-6 items-center rounded-pill border border-border-strong px-2.5 text-[12px] font-semibold text-muted"},DL={class:"flex size-[22px] shrink-0 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},OL={class:"font-semibold"},ML={key:0,class:"px-2 text-muted","data-empty":""},PL={key:0},IL={key:1,class:"text-muted","data-empty":""},RL={key:0},qL={key:1,class:"text-muted","data-empty":""},Fc="flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 [overflow-wrap:anywhere]",T0=ae({__name:"PreviewField",props:{field:{},value:{},labels:{},source:{},recordId:{},idPrefix:{}},setup(e){const t=e,n=new Set(["datepicker","fileupload","partial","permissioneditor","richeditor","repeater","money","taglist"]),a=b(()=>`${t.idPrefix??"preview"}-${t.field.name}`),r=b(()=>`${a.value}-label`),l=b(()=>{const v=t.field.type;return n.has(v)||Fu(t.field)?"control":v==="checkbox"||v==="switch"?"toggle":v==="relation"?t.field.multiple?"chips":"relation":v==="textarea"?"textarea":"text"}),o=b(()=>({...t.field,readOnly:!0})),i=b(()=>K0(t.field));function u(v){return v==null||v===""}const d=b(()=>{const v=t.value;if(u(v)||typeof v=="object")return"";if(t.field.type==="dropdown"){const h=(t.field.options??[]).find(w=>String(w.value)===String(v));return h?h.label:String(v)}return String(v)}),c=b(()=>t.labels?.[0]?.label??""),f=b(()=>Array.isArray(t.value)?t.labels??[]:[]);function m(v){return v.trim().split(/\s+/).filter(Boolean).slice(0,2).map(w=>w.charAt(0).toUpperCase()).join("")}return(v,h)=>(p(),g("div",{class:"flex min-w-0 flex-col gap-1.5","data-preview-field":e.field.name},[k("dt",{id:r.value,class:"font-semibold"},$(e.field.label||e.field.name),9,SL),k("dd",EL,[l.value==="control"?(p(),j(Kt(i.value),{key:0,field:o.value,"model-value":e.value,"control-id":a.value,labels:e.labels,source:e.source,"record-id":e.recordId},null,8,["field","model-value","control-id","labels","source","record-id"])):l.value==="toggle"?(p(),g(pe,{key:1},[s(qu)(e.value)?(p(),g("span",AL,$(s(y)("backend::lang.list.column_switch_true")),1)):(p(),g("span",TL,$(s(y)("backend::lang.list.column_switch_false")),1))],64)):l.value==="chips"?(p(),g("div",{key:2,"data-preview-value":"",class:he([Fc,"flex-wrap gap-1.5 p-1.5"])},[(p(!0),g(pe,null,Me(f.value,w=>(p(),g("span",{key:String(w.value),"data-chip":"",class:"inline-flex min-h-[30px] items-center gap-1.5 rounded-pill bg-surface pr-3 pl-1"},[k("span",DL,$(m(w.label)),1),k("span",OL,$(w.label),1)]))),128)),f.value.length===0?(p(),g("span",ML,$(s(y)("backend::lang.list.empty_value")),1)):Z("",!0)])):l.value==="relation"?(p(),g("div",{key:3,"data-preview-value":"",class:he(Fc)},[c.value!==""?(p(),g("span",PL,$(c.value),1)):(p(),g("span",IL,$(e.field.emptyOption||s(y)("backend::lang.list.empty_value")),1))])):(p(),g("div",{key:4,"data-preview-value":"",class:he([Fc,l.value==="textarea"?"items-start! py-3 whitespace-pre-wrap":""])},[d.value!==""?(p(),g("span",RL,$(d.value),1)):(p(),g("span",qL,$(s(y)("backend::lang.list.empty_value")),1))],2))])],8,CL))}}),D0=new Set(["p","br","strong","b","em","i","u","s","h3","ul","ol","li","blockquote","a","div","span"]);function O0(e){const t=document.createElement("template");return t.innerHTML=e,t.content}function LL(e){if(e==="")return[];const t=new Set;for(const n of Array.from(O0(e).querySelectorAll("*")))t.add(n.localName.toLowerCase());return[...t]}function dh(e){return LL(e).some(t=>!D0.has(t))}const NL=["aria-labelledby","aria-describedby","data-repeater"],BL={key:0,"data-repeater-empty":"",class:"flex flex-col items-center gap-2 rounded-inner border border-dashed border-border-strong px-6 py-8 text-center"},FL={class:"font-semibold"},VL={key:0,class:"max-w-[420px] text-[13px] text-muted"},zL={key:0,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel"},jL=["data-repeater-row","data-repeater-key","onDragover"],UL=["data-repeater-handle","aria-label","onKeydown","onDragstart"],HL={class:"text-[13px] text-muted tabular-nums"},KL=["title"],WL={key:1,"data-repeater-errors":"",class:"inline-flex h-6 items-center rounded-pill bg-danger-soft px-2.5 text-[13px] font-semibold text-danger"},GL={key:2,class:"flex gap-1"},YL=["aria-label","disabled","onClick"],JL=["aria-label","disabled","onClick"],ZL=["aria-label","aria-expanded","aria-controls","onClick"],XL=["aria-label","disabled","onClick"],QL=["id"],eN={key:0,class:"m-0 grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},tN={key:2,class:"flex flex-wrap items-center gap-4"},nN={key:0,"data-repeater-count":"",class:"text-[13px] text-muted tabular-nums"},So="inline-flex size-8 shrink-0 items-center justify-center rounded-pager text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text disabled:cursor-not-allowed disabled:opacity-40",aN=ae({__name:"RepeaterField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=it(yp,null),l=b(()=>n.field.form?.fields??[]),o=b(()=>!!n.field.readOnly),i=b(()=>Array.isArray(n.modelValue)?n.modelValue.map(J=>J!==null&&typeof J=="object"&&!Array.isArray(J)?J:{}):[]),u=b(()=>typeof n.field.maxItems=="number"?n.field.maxItems:null),d=b(()=>typeof n.field.minItems=="number"?n.field.minItems:0),c=b(()=>n.field.prompt||y("backend::lang.repeater.add")),f=b(()=>`${n.controlId}-label`);let m=0;const v=T([]),h=T(new Set);let w;function S(){return m+=1,`r${m}`}Fe(()=>n.modelValue,J=>{J===w&&v.value.length===i.value.length||v.value.length!==i.value.length&&(v.value=i.value.map(()=>S()),h.value=new Set)},{immediate:!0});function _(J,Q){v.value=Q,w=J,a("update:modelValue",J)}function D(J){return J==null||J===""||J===!1||Array.isArray(J)&&J.length===0}function B(){const J={};for(const Q of l.value)Q.default!==void 0?J[Q.name]=Q.default:Q.type==="checkbox"||Q.type==="switch"?J[Q.name]=!1:J[Q.name]=null;return J}function O(J){return l.value.some(Q=>{const te=J[Q.name];return D(te)?!1:Q.default===void 0||String(Q.default)!==String(te)})}function A(J){return(O0(J).textContent??"").replace(/\s+/g," ").trim()}function I(J){const Q=i.value[J]??{},te=l.value.find(R=>R.name===n.field.titleFrom),x=te?Q[te.name]:void 0;let M="";return te&&!D(x)&&typeof x!="object"&&(te.type==="dropdown"?M=(te.options??[]).find(R=>String(R.value)===String(x))?.label??String(x):te.type==="richeditor"?M=A(String(x)):M=String(x).trim()),M!==""?M:y("backend::lang.repeater.untitled",{n:J+1})}function q(J,Q){const te=`${n.field.name}.${Q}.`,x={};for(const[M,R]of Object.entries(J??{}))M.startsWith(te)&&M.length>te.length&&(x[M.slice(te.length)]=R);return x}const U=b(()=>i.value.map((J,Q)=>q(r?.errors.value,Q))),C=b(()=>i.value.map((J,Q)=>q(r?.notices.value,Q))),P=J=>Object.keys(U.value[J]??{}).length;Fe(U,J=>{const Q=J.flatMap((te,x)=>Object.keys(te).length>0?[v.value[x]]:[]);if(Q.length>0){const te=new Set(h.value);for(const x of Q)te.delete(x);h.value=te}});function z(J){return o.value||!h.value.has(J)}function E(J,Q){const te=new Set(h.value);Q?te.delete(J):te.add(J),h.value=te}const L=b(()=>v.value.some(J=>!h.value.has(J)));function G(){h.value=L.value?new Set(v.value):new Set}const W=T(null),H=T(null);function re(J){return W.value?.querySelector(`[data-repeater-handle="${J}"]`)??null}function le(J,Q,te){const x=i.value.map((M,R)=>R===J?{...M,[Q]:te}:M);_(x,[...v.value]),r?.clearError(`${n.field.name}.${J}.${Q}`)}async function ge(){if(o.value||u.value!==null&&i.value.length>=u.value)return;const J=S();_([...i.value,B()],[...v.value,J]),await We(),W.value?.querySelector(`[data-repeater-key="${J}"]`)?.querySelector('[data-repeater-body] input, [data-repeater-body] select, [data-repeater-body] textarea, [data-repeater-body] [contenteditable="true"]')?.focus()}async function ye(J){const Q=i.value[J];if(!Q||o.value||i.value.length<=d.value)return;if(O(Q)&&r){const R=I(J);if(!await r.confirm({message:y("backend::lang.repeater.remove_confirm",{title:R}),confirmLabel:y("backend::lang.repeater.remove"),danger:!0}))return}const te=v.value.filter((R,se)=>se!==J);_(i.value.filter((R,se)=>se!==J),te),await We();const x=te[J]??te[J-1],M=x?re(x):null;M?M.focus():H.value?.$el.focus()}async function ve(J,Q){const te=i.value.length;if(o.value||J===Q||J<0||Q<0||J>=te||Q>=te)return;const x=[...i.value],M=[...v.value],[R]=x.splice(J,1),[se]=M.splice(J,1);x.splice(Q,0,R),M.splice(Q,0,se),_(x,M),await We(),re(se)?.focus(),r?.announce(y("backend::lang.repeater.moved",{title:I(Q),position:Q+1,total:te}))}function oe(J,Q){(J.key==="ArrowUp"||J.key==="ArrowDown")&&(J.preventDefault(),ve(Q,J.key==="ArrowUp"?Q-1:Q+1))}const fe=T(null),K=T(null);function we(J,Q){fe.value=Q,K.value=null,J.dataTransfer?.setData("text/plain",v.value[Q]??""),J.dataTransfer&&(J.dataTransfer.effectAllowed="move")}function me(J,Q){if(fe.value===null)return;J.preventDefault();const x=J.currentTarget.getBoundingClientRect();K.value=J.clientY>x.top+x.height/2?Q+1:Q}function Y(J){if(fe.value===null||K.value===null)return;J.preventDefault();const Q=fe.value,te=K.value>Q?K.value-1:K.value;de(),ve(Q,te)}function de(){fe.value=null,K.value=null}return(J,Q)=>(p(),g("div",{ref_key:"root",ref:W,role:"group","aria-labelledby":f.value,"aria-describedby":e.describedBy||void 0,"data-repeater":e.field.name,class:"flex flex-col gap-4"},[i.value.length===0?(p(),g("div",BL,[k("p",FL,$(s(y)("backend::lang.repeater.empty")),1),o.value?Z("",!0):(p(),g("p",VL,$(s(y)("backend::lang.repeater.empty_hint",{prompt:c.value})),1))])):Z("",!0),(p(!0),g(pe,null,Me(i.value,(te,x)=>(p(),g(pe,{key:v.value[x]},[fe.value!==null&&K.value===x&&K.value!==fe.value&&K.value!==fe.value+1?(p(),g("div",zL)):Z("",!0),k("div",{"data-repeater-row":x,"data-repeater-key":v.value[x],class:he([[P(x)>0?"border-danger":"border-border",fe.value===x?"opacity-50":""],"rounded-inner border bg-surface"]),onDragover:M=>me(M,x),onDrop:Y},[k("div",{class:he([z(v.value[x])?"rounded-t-inner border-b border-border":"rounded-inner","flex min-h-12 items-center gap-2 bg-subtle px-2"])},[o.value?Z("",!0):(p(),g("button",{key:0,type:"button",draggable:"true","data-repeater-handle":v.value[x],"aria-label":s(y)("backend::lang.repeater.move",{title:I(x)}),class:he([So,"cursor-grab"]),onKeydown:M=>oe(M,x),onDragstart:M=>we(M,x),onDragend:de},[N(s(Di),{size:16,"aria-hidden":"true"})],40,UL)),k("span",HL,$(x+1)+".",1),k("span",{"data-repeater-title":"",class:"min-w-0 flex-1 truncate font-semibold",title:I(x)},$(I(x)),9,KL),P(x)>0?(p(),g("span",WL,$(s(Qr)("backend::lang.form.tab_errors",P(x))),1)):Z("",!0),o.value?Z("",!0):(p(),g("div",GL,[k("button",{type:"button","data-action":"repeater-up","aria-label":s(y)("backend::lang.repeater.move_up",{title:I(x)}),disabled:x===0,class:he(So),onClick:M=>ve(x,x-1)},[N(s(zg),{size:16,"aria-hidden":"true"})],8,YL),k("button",{type:"button","data-action":"repeater-down","aria-label":s(y)("backend::lang.repeater.move_down",{title:I(x)}),disabled:x===i.value.length-1,class:he(So),onClick:M=>ve(x,x+1)},[N(s(vr),{size:16,"aria-hidden":"true"})],8,JL),k("button",{type:"button","data-action":"repeater-toggle","aria-label":s(y)(z(v.value[x])?"backend::lang.repeater.collapse":"backend::lang.repeater.expand",{title:I(x)}),"aria-expanded":z(v.value[x])?"true":"false","aria-controls":`${e.controlId}-${v.value[x]}-body`,class:he(So),onClick:M=>E(v.value[x],!z(v.value[x]))},[N(s(vr),{size:16,class:he([z(v.value[x])?"rotate-180":"","transition-transform duration-150"]),"aria-hidden":"true"},null,8,["class"])],8,ZL),k("button",{type:"button","data-action":"repeater-remove","aria-label":s(y)("backend::lang.repeater.remove_named",{title:I(x)}),disabled:i.value.length<=d.value,class:he([So,"hover:bg-danger-soft hover:text-danger"]),onClick:M=>ye(x)},[N(s(Er),{size:16,"aria-hidden":"true"})],8,XL)]))],2),z(v.value[x])?(p(),g("div",{key:0,id:`${e.controlId}-${v.value[x]}-body`,"data-repeater-body":"",class:"p-4"},[o.value?(p(),g("dl",eN,[(p(!0),g(pe,null,Me(l.value,M=>(p(),j(T0,{key:M.name,class:he(M.span==="left"?"min-[600px]:col-start-1":M.span==="right"?"min-[600px]:col-start-2":"col-span-full"),field:{...M,readOnly:!0},value:te[M.name],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${v.value[x]}`},null,8,["class","field","value","source","record-id","id-prefix"]))),128))])):(p(),j(uo,{key:1,fields:l.value,values:te,errors:U.value[x]??{},notices:C.value[x],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${v.value[x]}`,"scope-path":e.field.name,onUpdate:(M,R)=>le(x,M,R)},null,8,["fields","values","errors","notices","source","record-id","id-prefix","scope-path","onUpdate"]))],8,QL)):Z("",!0)],42,jL)],64))),128)),fe.value!==null&&K.value===i.value.length&&K.value!==fe.value+1?(p(),g("div",{key:1,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel",onDragover:Q[0]||(Q[0]=mt(()=>{},["prevent"])),onDrop:Y},null,32)):Z("",!0),o.value?Z("",!0):(p(),g("div",tN,[N(Ue,{ref_key:"addButton",ref:H,variant:"outline",size:"sm",icon:s(ws),"data-action":"repeater-add",disabled:u.value!==null&&i.value.length>=u.value,onClick:ge},{default:F(()=>[_e($(c.value),1)]),_:1},8,["icon","disabled"]),u.value!==null?(p(),g("span",nN,$(s(y)("backend::lang.repeater.count",{current:i.value.length,max:u.value})),1)):Z("",!0),i.value.length>1?(p(),j(Ue,{key:1,variant:"ghost",size:"sm",class:"ml-auto","data-action":"repeater-toggle-all",onClick:G},{default:F(()=>[_e($(s(y)(L.value?"backend::lang.repeater.collapse_all":"backend::lang.repeater.expand_all")),1)]),_:1})):Z("",!0)]))],8,NL))}}),rN="modulepreload",lN=function(e,t){return new URL(e,t).href},fh={},M0=function(t,n,a){let r=Promise.resolve();if(n&&n.length>0){let d=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),u=i?.nonce||i?.getAttribute("nonce");r=d(n.map(c=>{if(c=lN(c,a),c in fh)return;fh[c]=!0;const f=c.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(a)for(let h=o.length-1;h>=0;h--){const w=o[h];if(w.href===c&&(!f||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":rN,f||(v.as="script"),v.crossOrigin="",v.href=c,u&&v.setAttribute("nonce",u),document.head.appendChild(v),f)return new Promise((h,w)=>{v.addEventListener("load",h),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${c}`)))})}))}function l(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&l(i.reason);return t().catch(l)})};function ph(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n2?a-2:0),l=2;l1?n-1:0),r=1;r"u"?null:Vt(BigInt.prototype.toString),bh=typeof Symbol>"u"?null:Vt(Symbol.prototype.toString),dn=Vt(Object.prototype.hasOwnProperty),To=Vt(Object.prototype.toString),Qt=Vt(RegExp.prototype.test),Xa=bN(TypeError);function Vt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r2&&arguments[2]!==void 0?arguments[2]:qo;if(vh&&vh(e,null),!Wl(t))return e;let a=t.length;for(;a--;){let r=t[a];if(typeof r=="string"){const l=n(r);l!==r&&(dN(t)||(t[a]=l),r=l)}e[r]=!0}return e}function _N(e){for(let t=0;t/g),EN=Yt(/\${[\w\W]*/g),AN=Yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),TN=Yt(/^aria-[\-\w]+$/),$h=Yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DN=Yt(/^(?:\w+script|data):/i),ON=Yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),MN=Yt(/^html$/i),PN=Yt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ch=Yt(/<[/\w!]/g),Sh=Yt(/<[/\w]/g),IN=Yt(/<\/no(script|embed|frames)/i),RN=Yt(/\/>/i),gn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},R0=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],qN=Ut(ft({},R0)),LN=(function(){const e={};return Hr(R0,t=>{e[t]=Yt(new RegExp("])","i"))}),Ut(e)})(),NN=function(){return typeof window>"u"?null:window},BN=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(a=n.getAttribute(r));const l="dompurify"+(a?"#"+a:"");try{return t.createPolicy(l,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},Eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qa=function(t,n,a,r){return dn(t,n)&&Wl(t[n])?ft(r.base?bn(r.base):{},t[n],r.transform):a},Kc=function(t,n,a){const r=dn(t,n)?t[n]:void 0;return r&&typeof r=="object"?bn(r):a()};function q0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NN();const t=Oe=>q0(Oe);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==gn.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const a=n,r=a.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,o=e.Node,i=e.Element,u=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,c=e.trustedTypes,f=i.prototype,m=An(f,"cloneNode"),v=An(f,"remove"),h=An(f,"removeAttributeNode"),w=An(f,"nextSibling"),S=An(f,"childNodes"),_=An(f,"parentNode"),D=An(f,"shadowRoot"),B=An(f,"attributes"),O=o&&o.prototype?An(o.prototype,"nodeType"):null,A=o&&o.prototype?An(o.prototype,"nodeName"):null,I=o&&o.prototype?An(o.prototype,"ownerDocument"):null,q=function(V){return O?O(V):V.nodeType},U=function(V){return A?A(V):V.nodeName};if(typeof l=="function"){const Oe=n.createElement("template");Oe.content&&Oe.content.ownerDocument&&(n=Oe.content.ownerDocument)}let C,P="",z,E=!1,L=0;const G=function(){if(L>0)throw Xa('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},W=function(V){G(),L++;try{return C.createHTML(V)}finally{L--}},H=function(V){G(),L++;try{return C.createScriptURL(V)}finally{L--}},re=function(){return E||(z=BN(c,r),E=!0),z},le=n,ge=le.implementation,ye=le.createNodeIterator,ve=le.createDocumentFragment,oe=le.getElementsByTagName,fe=a.importNode;let K=Eh();t.isSupported=typeof P0=="function"&&typeof _=="function"&&ge&&ge.createHTMLDocument!==void 0;const we=CN,me=SN,Y=EN,de=AN,J=TN,Q=DN,te=ON,x=PN;let M=$h,R=null;const se=ft({},[..._h,...zc,...jc,...Uc,...xh]);let ee=null;const ce=ft({},[...kh,...Hc,...wh,...ei]);let Ce=Object.seal(Ol(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$e=null,Te=null;const ue=Object.seal(Ol(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Se=!0,xe=!0,qe=!1,Be=!0,Ye=!1,nt=!0,Xe=!1,st=!1,lt=null,At=null,Pt=!1,Wt=!1,ze=!1,Ve=!1,He=!0,Tt=!1;const Jn="user-content-";let Ha=!0,ga=!1,qn={},zt=null;const Ka=ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ba=null;const Ae=ft({},["audio","video","img","source","image","track"]);let Ne=null;const et=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Nt="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let Cn=xt,fo=!1,po=null;const vo=ft({},[rt,Nt,xt],Vc),X=Ut(["mi","mo","mn","ms","mtext"]);let De=ft({},X);const ne=Ut(["annotation-xml"]);let Le=ft({},ne);const at=ft({},["title","style","font","a","script"]);let It=null;const Zn=["application/xhtml+xml","text/html"],Wa="text/html";let Rt=null,pl=null;const l_=n.createElement("form"),xp=function(V){return V instanceof RegExp||V instanceof Function},Vu=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pl&&pl===V)return;(!V||typeof V!="object")&&(V={}),V=bn(V),It=Zn.indexOf(V.PARSER_MEDIA_TYPE)===-1?Wa:V.PARSER_MEDIA_TYPE,Rt=It==="application/xhtml+xml"?Vc:qo,R=Qa(V,"ALLOWED_TAGS",se,{transform:Rt}),ee=Qa(V,"ALLOWED_ATTR",ce,{transform:Rt}),po=Qa(V,"ALLOWED_NAMESPACES",vo,{transform:Vc}),Ne=Qa(V,"ADD_URI_SAFE_ATTR",et,{transform:Rt,base:et}),ba=Qa(V,"ADD_DATA_URI_TAGS",Ae,{transform:Rt,base:Ae}),zt=Qa(V,"FORBID_CONTENTS",Ka,{transform:Rt}),$e=Qa(V,"FORBID_TAGS",bn({}),{transform:Rt}),Te=Qa(V,"FORBID_ATTR",bn({}),{transform:Rt}),qn=dn(V,"USE_PROFILES")?V.USE_PROFILES&&typeof V.USE_PROFILES=="object"?bn(V.USE_PROFILES):V.USE_PROFILES:!1,Se=V.ALLOW_ARIA_ATTR!==!1,xe=V.ALLOW_DATA_ATTR!==!1,qe=V.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=V.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ye=V.SAFE_FOR_TEMPLATES||!1,nt=V.SAFE_FOR_XML!==!1,Xe=V.WHOLE_DOCUMENT||!1,Wt=V.RETURN_DOM||!1,ze=V.RETURN_DOM_FRAGMENT||!1,Ve=V.RETURN_TRUSTED_TYPE||!1,Pt=V.FORCE_BODY||!1,He=V.SANITIZE_DOM!==!1,Tt=V.SANITIZE_NAMED_PROPS||!1,Ha=V.KEEP_CONTENT!==!1,ga=V.IN_PLACE||!1,M=kN(V.ALLOWED_URI_REGEXP)?V.ALLOWED_URI_REGEXP:$h,Cn=typeof V.NAMESPACE=="string"?V.NAMESPACE:xt,De=Kc(V,"MATHML_TEXT_INTEGRATION_POINTS",()=>ft({},X)),Le=Kc(V,"HTML_INTEGRATION_POINTS",()=>ft({},ne));const ie=Kc(V,"CUSTOM_ELEMENT_HANDLING",()=>Ol(null));if(Ce=Ol(null),dn(ie,"tagNameCheck")&&xp(ie.tagNameCheck)&&(Ce.tagNameCheck=ie.tagNameCheck),dn(ie,"attributeNameCheck")&&xp(ie.attributeNameCheck)&&(Ce.attributeNameCheck=ie.attributeNameCheck),dn(ie,"allowCustomizedBuiltInElements")&&typeof ie.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=ie.allowCustomizedBuiltInElements),Yt(Ce),Ye&&(xe=!1),ze&&(Wt=!0),qn&&(R=ft({},xh),ee=Ol(null),qn.html===!0&&(ft(R,_h),ft(ee,kh)),qn.svg===!0&&(ft(R,zc),ft(ee,Hc),ft(ee,ei)),qn.svgFilters===!0&&(ft(R,jc),ft(ee,Hc),ft(ee,ei)),qn.mathMl===!0&&(ft(R,Uc),ft(ee,wh),ft(ee,ei))),ue.tagCheck=null,ue.attributeCheck=null,dn(V,"ADD_TAGS")&&(typeof V.ADD_TAGS=="function"?ue.tagCheck=V.ADD_TAGS:Wl(V.ADD_TAGS)&&(R===se&&(R=bn(R)),ft(R,V.ADD_TAGS,Rt))),dn(V,"ADD_ATTR")&&(typeof V.ADD_ATTR=="function"?ue.attributeCheck=V.ADD_ATTR:Wl(V.ADD_ATTR)&&(ee===ce&&(ee=bn(ee)),ft(ee,V.ADD_ATTR,Rt))),dn(V,"ADD_FORBID_CONTENTS")&&Wl(V.ADD_FORBID_CONTENTS)&&(zt===Ka&&(zt=bn(zt)),ft(zt,V.ADD_FORBID_CONTENTS,Rt)),Ha&&(R["#text"]=!0),Xe&&ft(R,["html","head","body"]),R.table&&(ft(R,["tbody"]),delete $e.tbody),V.TRUSTED_TYPES_POLICY){if(typeof V.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof V.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ee=C;C=V.TRUSTED_TYPES_POLICY;try{P=W("")}catch(Pe){throw C=Ee,Pe}}else V.TRUSTED_TYPES_POLICY===null?(C=void 0,P=""):(C===void 0&&(C=re()),C&&typeof P=="string"&&(P=W("")));Ut&&Ut(V),pl=V},kp=ft({},[...zc,...jc,...wN]),wp=ft({},[...Uc,...$N]),o_=function(V,ie,Ee){return ie.namespaceURI===xt?V==="svg":ie.namespaceURI===rt?V==="svg"&&(Ee==="annotation-xml"||De[Ee]):!!kp[V]},s_=function(V,ie,Ee){return ie.namespaceURI===xt?V==="math":ie.namespaceURI===Nt?V==="math"&&Le[Ee]:!!wp[V]},i_=function(V,ie,Ee){return ie.namespaceURI===Nt&&!Le[Ee]||ie.namespaceURI===rt&&!De[Ee]?!1:!wp[V]&&(at[V]||!kp[V])},u_=function(V){let ie=_(V);(!ie||!ie.tagName)&&(ie={namespaceURI:Cn,tagName:"template"});const Ee=qo(V.tagName),Pe=qo(ie.tagName);return po[V.namespaceURI]?V.namespaceURI===Nt?o_(Ee,ie,Pe):V.namespaceURI===rt?s_(Ee,ie,Pe):V.namespaceURI===xt?i_(Ee,ie,Pe):!!(It==="application/xhtml+xml"&&po[V.namespaceURI]):!1},Ga=function(V){Eo(t.removed,{element:V});try{_(V).removeChild(V)}catch{if(v(V),!_(V))throw Xa("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$p=function(V,ie,Ee){try{h(V,ie)}catch{try{V.removeAttribute(Ee)}catch{}}},Ds=function(V){Os(V);const ie=S(V);if(ie){const Pe=[];Hr(ie,Ke=>{Eo(Pe,Ke)}),Hr(Pe,Ke=>{try{v(Ke)}catch{}})}const Ee=B(V);if(Ee)for(let Pe=Ee.length-1;Pe>=0;--Pe){const Ke=Ee[Pe],ct=Ke&&Ke.name;typeof ct=="string"&&$p(V,Ke,ct)}},Lr=function(V,ie,Ee){if(!Ee)try{Ee=ie.getAttributeNode(V)}catch{Ee=null}Eo(t.removed,{attribute:Ee||null,from:ie});try{Ee?h(ie,Ee):ie.removeAttribute(V)}catch{try{ie.removeAttribute(V)}catch{}}if(V==="is")if(Wt||ze)try{Ga(ie)}catch{}else try{ie.setAttribute(V,"")}catch{}},c_=function(V){const ie=B(V);if(ie)for(let Ee=ie.length-1;Ee>=0;--Ee){const Pe=ie[Ee],Ke=Pe&&Pe.name;typeof Ke!="string"||ee[Rt(Ke)]||$p(V,Pe,Ke)}},Os=function(V){const ie=[V];for(;ie.length>0;){const Ee=ie.pop();q(Ee)===gn.element&&c_(Ee);const Pe=S(Ee);if(Pe)for(let Ke=Pe.length-1;Ke>=0;--Ke)ie.push(Pe[Ke])}},Cp=function(V,ie){return nt?V==="patchsrc"?!0:V==="for"&&ie!=="label"&&ie!=="output":!1},d_=function(V){if(!nt)return;const ie=[V];for(;ie.length>0;){const Ee=ie.pop(),Pe=q(Ee);if(Pe===gn.processingInstruction||Pe===gn.comment&&Qt(Sh,Ee.data)){try{v(Ee)}catch{}continue}if(Pe===gn.element){const ct=Ee,dt=Rt(U(Ee));try{ct.hasAttribute&&ct.hasAttribute("patchsrc")&&ct.removeAttribute("patchsrc"),ct.hasAttribute&&ct.hasAttribute("for")&&Cp("for",dt)&&ct.removeAttribute("for")}catch{}}const Ke=S(Ee);if(Ke)for(let ct=Ke.length-1;ct>=0;--ct)ie.push(Ke[ct])}},Sp=function(V){let ie=null,Ee=null;if(Pt)V=""+V;else{const ct=hh(V,/^[\r\n\t ]+/);Ee=ct&&ct[0]}It==="application/xhtml+xml"&&Cn===xt&&(V=''+V+"");const Pe=C?W(V):V;if(Cn===xt)try{ie=new d().parseFromString(Pe,It)}catch{}if(!ie||!ie.documentElement){ie=ge.createDocument(Cn,"template",null);try{ie.documentElement.innerHTML=fo?P:Pe}catch{}}const Ke=ie.body||ie.documentElement;return V&&Ee&&Ke.insertBefore(n.createTextNode(Ee),Ke.childNodes[0]||null),Cn===xt?oe.call(ie,Xe?"html":"body")[0]:Xe?ie.documentElement:Ke},Ep=function(V){const ie=I?I(V):V.ownerDocument;return ye.call(ie||V,V,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ms=function(V){return V=Ao(V,we," "),V=Ao(V,me," "),V=Ao(V,Y," "),V},zu=function(V){var ie;V.normalize();const Ee=I?I(V):V.ownerDocument,Pe=ye.call(Ee||V,V,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ke=Pe.nextNode();for(;Ke;)Ke.data=Ms(Ke.data),Ke=Pe.nextNode();const ct=(ie=V.querySelectorAll)===null||ie===void 0?void 0:ie.call(V,"template");ct&&Hr(ct,dt=>{vl(dt.content)&&zu(dt.content)})},Ps=function(V){const ie=A?A(V):null;return typeof ie!="string"||Rt(ie)!=="form"?!1:typeof V.nodeName!="string"||typeof V.textContent!="string"||typeof V.removeChild!="function"||V.attributes!==B(V)||typeof V.removeAttribute!="function"||typeof V.removeAttributeNode!="function"||typeof V.getAttributeNode!="function"||typeof V.setAttribute!="function"||typeof V.namespaceURI!="string"||typeof V.insertBefore!="function"||typeof V.hasChildNodes!="function"||V.nodeType!==O(V)||V.childNodes!==S(V)},vl=function(V){if(!O||typeof V!="object"||V===null)return!1;try{return O(V)===gn.documentFragment}catch{return!1}},mo=function(V){if(!O||typeof V!="object"||V===null)return!1;try{return typeof O(V)=="number"}catch{return!1}};function Xn(Oe,V,ie){Oe.length!==0&&Hr(Oe,Ee=>{Ee.call(t,V,ie,pl)})}const f_=function(V,ie){return!!(nt&&V.hasChildNodes()&&!mo(V.firstElementChild)&&Qt(Ch,V.textContent)&&Qt(Ch,V.innerHTML)||nt&&V.namespaceURI===xt&&qN[ie]&&(mo(V.firstElementChild)||typeof V.textContent=="string"&&Qt(LN[ie],V.textContent))||V.nodeType===gn.processingInstruction||nt&&V.nodeType===gn.comment&&Qt(Sh,V.data))},Is=function(V,ie){if(V instanceof RegExp)return Qt(V,ie);if(V instanceof Function){for(var Ee=arguments.length,Pe=new Array(Ee>2?Ee-2:0),Ke=2;Ke=0;--dt){const Mt=V===Ee?m(Ke[dt],!0):Ke[dt];Pe.insertBefore(Mt,w(V))}}}return Ga(V),!0},Ap=function(V,ie,Ee,Pe){return V.length===0?ie:ie===Ee||ie===Pe?bn(ie):ie},ml=function(V,ie){return V===ie||_(V)!==null?!1:(ga&&Os(V),!0)},Tp=function(V,ie){if(Xn(K.beforeSanitizeElements,V,null),ml(V,ie))return!0;if(Ps(V))return Ga(V),!0;const Ee=Rt(U(V));if(R=Ap(K.uponSanitizeElement,R,se,lt),Xn(K.uponSanitizeElement,V,{tagName:Ee,allowedTags:R}),ml(V,ie))return!0;if(f_(V,Ee))return Ga(V),!0;if($e[Ee]||!(ue.tagCheck instanceof Function&&ue.tagCheck(Ee))&&!R[Ee]){const Pe=p_(V,Ee,ie);return Pe===!1&&(Xn(K.afterSanitizeElements,V,null),ml(V,ie))?!0:Pe}if(q(V)===gn.element&&!u_(V)||(Ee==="noscript"||Ee==="noembed"||Ee==="noframes")&&Qt(IN,V.innerHTML))return Ga(V),!0;if(Ye&&V.nodeType===gn.text){const Pe=Ms(V.textContent);V.textContent!==Pe&&(Eo(t.removed,{element:V.cloneNode()}),V.textContent=Pe)}return Xn(K.afterSanitizeElements,V,null),ml(V,ie)},Dp=function(V,ie,Ee){if(Te[ie]||Cp(ie,V)||He&&(ie==="id"||ie==="name")&&(Ee in n||Ee in l_))return!1;const Pe=ee[ie]||ue.attributeCheck instanceof Function&&ue.attributeCheck(ie,V);return xe&&Qt(de,ie)||Se&&Qt(J,ie)?!0:Pe?Ne[ie]||Qt(M,Ao(Ee,te,""))||(ie==="src"||ie==="xlink:href"||ie==="href")&&V!=="script"&&yh(Ee,"data:")===0&&ba[V]||qe&&!Qt(Q,Ao(Ee,te,""))?!0:!Ee:Op(V)&&Is(Ce.tagNameCheck,V)&&Is(Ce.attributeNameCheck,ie,V)||ie==="is"&&Ce.allowCustomizedBuiltInElements&&Is(Ce.tagNameCheck,Ee)},v_=ft({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Op=function(V){return!v_[qo(V)]&&Qt(x,V)},m_=function(V,ie,Ee,Pe){if(C&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!Ee)switch(c.getAttributeType(V,ie)){case"TrustedHTML":return W(Pe);case"TrustedScriptURL":return H(Pe)}return Pe},h_=function(V,ie,Ee,Pe){try{return Ee?V.setAttributeNS(Ee,ie,Pe):V.setAttribute(ie,Pe),Ps(V)?(Ga(V),!1):!0}catch{return Lr(ie,V),!1}},Mp=function(V,ie){if(Xn(K.beforeSanitizeAttributes,V,null),ml(V,ie))return;const Ee=V.attributes;if(!Ee||Ps(V))return;ee=Ap(K.uponSanitizeAttribute,ee,ce,At);const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ke=Ee.length;const ct=Rt(V.nodeName);for(;Ke--;){const dt=Ee[Ke],Mt=dt.name,Sn=dt.namespaceURI,hn=dt.value,hl=Rt(Mt),Uu=hn;let an=Mt==="value"?Uu:hN(Uu),Pp=!1;if(Pe.attrName=hl,Pe.attrValue=an,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Xn(K.uponSanitizeAttribute,V,Pe),an=Pe.attrValue,Tt&&(hl==="id"||hl==="name")&&yh(an,Jn)!==0&&(Lr(Mt,V,dt),an=Jn+an,Pp=!0),nt&&Qt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,an)){Lr(Mt,V,dt);continue}if(hl==="attributename"&&hh(an,"href")){Lr(Mt,V,dt);continue}if(!Pe.forceKeepAttr){if(!Pe.keepAttr){Lr(Mt,V,dt);continue}if(!Be&&Qt(RN,an)){Lr(Mt,V,dt);continue}if(Ye&&(an=Ms(an)),!Dp(ct,hl,an)){Lr(Mt,V,dt);continue}an=m_(ct,hl,Sn,an),an!==Uu&&h_(V,Mt,Sn,an)&&Pp&&mh(t.removed)}}Xn(K.afterSanitizeAttributes,V,null),ml(V,ie)},Rs=function(V){let ie=null;const Ee=Ep(V);for(Xn(K.beforeSanitizeShadowDOM,V,null);ie=Ee.nextNode();)if(Xn(K.uponSanitizeShadowNode,ie,null),Tp(ie,V),Mp(ie,V),vl(ie.content)&&Rs(ie.content),q(ie)===gn.element){const Pe=D(ie);vl(Pe)&&(ju(Pe),Rs(Pe))}Xn(K.afterSanitizeShadowDOM,V,null)},ju=function(V){const ie=[{node:V,shadow:null}];for(;ie.length>0;){const Ee=ie.pop();if(Ee.shadow){Rs(Ee.shadow);continue}const Pe=Ee.node,Ke=q(Pe)===gn.element,ct=S(Pe);if(ct)for(let dt=ct.length-1;dt>=0;--dt)ie.push({node:ct[dt],shadow:null});if(Ke){const dt=A?A(Pe):null;if(typeof dt=="string"&&Rt(dt)==="template"){const Mt=Pe.content;vl(Mt)&&ie.push({node:Mt,shadow:null})}}if(Ke){const dt=D(Pe);vl(dt)&&ie.push({node:null,shadow:dt},{node:dt,shadow:null})}}};return t.sanitize=function(Oe){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=null,Ee=null,Pe=null,Ke=null;if(fo=!Oe,fo&&(Oe=""),typeof Oe!="string"&&!mo(Oe)&&(Oe=xN(Oe),typeof Oe!="string"))throw Xa("dirty is not a string, aborting");if(!t.isSupported)return Oe;st?(R=lt,ee=At):Vu(V),(K.uponSanitizeElement.length>0||K.uponSanitizeAttribute.length>0)&&(R=bn(R)),K.uponSanitizeAttribute.length>0&&(ee=bn(ee)),t.removed=[];const ct=ga&&typeof Oe!="string"&&mo(Oe);if(ct){d_(Oe);const Sn=U(Oe);if(typeof Sn=="string"){const hn=Rt(Sn);if(!R[hn]||$e[hn])throw Ds(Oe),Xa("root node is forbidden and cannot be sanitized in-place")}if(Ps(Oe))throw Ds(Oe),Xa("root node is clobbered and cannot be sanitized in-place");try{ju(Oe)}catch(hn){throw Ds(Oe),hn}}else if(mo(Oe))ie=Sp(""),Ee=ie.ownerDocument.importNode(Oe,!0),Ee.nodeType===gn.element&&Ee.nodeName==="BODY"||Ee.nodeName==="HTML"?ie=Ee:ie.appendChild(Ee),ju(ie);else{if(!Wt&&!Ye&&!Xe&&Oe.indexOf("<")===-1)return C&&Ve?W(Oe):Oe;if(ie=Sp(Oe),!ie)return Wt?null:Ve?P:""}ie&&Pt&&Ga(ie.firstChild);const dt=ct?Oe:ie;try{const Sn=Ep(dt);for(;Pe=Sn.nextNode();)Tp(Pe,dt),Mp(Pe,dt),vl(Pe.content)&&Rs(Pe.content)}catch(Sn){throw ct&&(Ds(Oe),Hr(t.removed,hn=>{hn.element&&Os(hn.element)})),Sn}if(ct){let Sn=!1;if(Hr(t.removed,hn=>{hn.element&&(hn.element===Oe&&(Sn=!0),Os(hn.element))}),Sn)throw Xa("a node selected for removal could not be safely returned; refusing to sanitize in place");return Ye&&zu(Oe),Oe}if(Wt){if(Ye&&zu(ie),ze)for(Ke=ve.call(ie.ownerDocument);ie.firstChild;)Ke.appendChild(ie.firstChild);else Ke=ie;return(ee.shadowroot||ee.shadowrootmode)&&(Ke=fe.call(a,Ke,!0)),Ke}let Mt=Xe?ie.outerHTML:ie.innerHTML;return Xe&&R["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&Qt(MN,ie.ownerDocument.doctype.name)&&(Mt=" +`+Mt),Ye&&(Mt=Ms(Mt)),C&&Ve?W(Mt):Mt},t.setConfig=function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vu(Oe),st=!0,lt=R,At=ee},t.clearConfig=function(){pl=null,st=!1,lt=null,At=null,C=z,P=""},t.isValidAttribute=function(Oe,V,ie){pl||Vu({});const Ee=Rt(Oe),Pe=Rt(V);return Dp(Ee,Pe,ie)},t.addHook=function(Oe,V){typeof V=="function"&&dn(K,Oe)&&Eo(K[Oe],V)},t.removeHook=function(Oe,V){if(dn(K,Oe)){if(V!==void 0){const ie=vN(K[Oe],V);return ie===-1?void 0:mN(K[Oe],ie,1)[0]}return mh(K[Oe])}},t.removeHooks=function(Oe){dn(K,Oe)&&(K[Oe]=[])},t.removeAllHooks=function(){K=Eh()},t}var FN=q0();const VN=["http","https","mailto","tel"],zN=/[\x00-\x20\x7f]+/g,jN=/^([a-z][a-z0-9+.-]*):/i;function L0(e){if(e==null)return!1;const t=e.replace(zN,"");if(t==="")return!1;const n=jN.exec(t);if(n)return VN.includes(n[1].toLowerCase());try{return new URL(t,"https://admin.invalid/"),!0}catch{return!1}}const UN=["script","style","template","noscript","iframe","frame","frameset","object","embed","applet","svg","math","title","head","meta","link","base"],N0=Object.freeze({ALLOWED_TAGS:[...D0],ALLOWED_ATTR:["href"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1,ADD_FORBID_CONTENTS:[...UN],KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),HN='

a +