diff --git a/modules/boardwalk/dist/assets/editor-lelm3tpS.js b/modules/boardwalk/dist/assets/editor-DOwNKalZ.js similarity index 99% rename from modules/boardwalk/dist/assets/editor-lelm3tpS.js rename to modules/boardwalk/dist/assets/editor-DOwNKalZ.js index 71260a41..426643c8 100644 --- a/modules/boardwalk/dist/assets/editor-lelm3tpS.js +++ b/modules/boardwalk/dist/assets/editor-DOwNKalZ.js @@ -1,4 +1,4 @@ -import{L as mu,i as gu}from"./index-CoBJlG5O.js";var Vs=Object.defineProperty,yu=(n,e)=>{let t={};for(var r in n)Vs(t,r,{get:n[r],enumerable:!0});return Vs(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 Cl(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 El(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?Rn(t+1,s):Rn(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 gn 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=Al(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(vl(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 vl(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(vl(s.content,e-i-1,t-i-1)))}function Al(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=Al(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 ku(n,e,t){if(t.openStart>n.depth)throw new gn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new gn("Inconsistent open depths");return Ol(n,e,t,0)}function Ol(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 nn(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&&(mt(n.nodeAfter,r),s++));for(let l=s;li&&Ai(n,e,i+1),o=r.depth>i&&Ai(t,r,i+1),l=[];return nn(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(Nl(s,o),mt(gt(s,Dl(n,e,t,r,i+1)),l)):(s&&mt(gt(s,Qn(n,e,i+1)),l),nn(e,t,i,l),o&&mt(gt(o,Qn(t,r,i+1)),l)),nn(r,null,i,l),new k(l)}function Qn(n,e,t){let r=[];if(nn(null,n,t,r),n.depth>t){let i=Ai(n,e,t+1);mt(gt(i,Qn(n,e,t+1)),r)}return nn(e,null,t,r),new k(r)}function bu(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 yn{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 Zn(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 yn(t,r,s)}static resolveCached(e,t){let r=Hs.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()+")"),Il(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)}};yt.prototype.text=void 0;class er extends yt{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):Il(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 er(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new er(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 Il(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function js(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 xt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Cu(e,t);if(r.next==null)return xt.empty;let i=Rl(r);r.next&&r.err("Unexpected trailing text");let s=Nu(Ou(i));return Du(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{L as mu,i as gu}from"./index-CGlcvAra.js";var Vs=Object.defineProperty,yu=(n,e)=>{let t={};for(var r in n)Vs(t,r,{get:n[r],enumerable:!0});return Vs(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 Cl(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 El(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?Rn(t+1,s):Rn(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 gn 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=Al(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(vl(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 vl(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(vl(s.content,e-i-1,t-i-1)))}function Al(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=Al(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 ku(n,e,t){if(t.openStart>n.depth)throw new gn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new gn("Inconsistent open depths");return Ol(n,e,t,0)}function Ol(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 nn(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&&(mt(n.nodeAfter,r),s++));for(let l=s;li&&Ai(n,e,i+1),o=r.depth>i&&Ai(t,r,i+1),l=[];return nn(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(Nl(s,o),mt(gt(s,Dl(n,e,t,r,i+1)),l)):(s&&mt(gt(s,Qn(n,e,i+1)),l),nn(e,t,i,l),o&&mt(gt(o,Qn(t,r,i+1)),l)),nn(r,null,i,l),new k(l)}function Qn(n,e,t){let r=[];if(nn(null,n,t,r),n.depth>t){let i=Ai(n,e,t+1);mt(gt(i,Qn(n,e,t+1)),r)}return nn(e,null,t,r),new k(r)}function bu(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 yn{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 Zn(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 yn(t,r,s)}static resolveCached(e,t){let r=Hs.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()+")"),Il(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)}};yt.prototype.text=void 0;class er extends yt{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):Il(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 er(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new er(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 Il(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function js(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 xt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Cu(e,t);if(r.next==null)return xt.empty;let i=Rl(r);r.next&&r.err("Unexpected trailing text");let s=Nu(Ou(i));return Du(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(` `)}}xt.empty=new xt(!0);class Cu{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 Rl(n){let e=[];do e.push(Mu(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Mu(n){let e=[];do e.push(Tu(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Tu(n){let e=Au(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=Eu(n,e);else break;return e}function Ws(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Eu(n,e){let t=Ws(n),r=t;return n.eat(",")&&(n.next!="}"?r=Ws(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function vu(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 Au(n){if(n.eat("(")){let e=Rl(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=vu(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 Ou(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 xt(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:Bl(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new yt(this,this.computeAttrs(e),k.from(t),B.setFrom(r))}createChecked(e=null,t,r){return t=k.from(t),this.checkContent(t),new yt(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 yt(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 $l(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 Iu(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 Ru{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Iu(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Fr{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=zl(e,i.attrs),this.excluded=null;let s=Pl(this.attrs);this.instance=s?new B(this,s):null}create(e=null){return!e&&this.instance?this.instance:new B(this,Bl(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Fr(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t-1}}class Fl{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=Us.compile(this.spec.nodes,this),this.marks=Fr.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]=xt.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?_s(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==""?[]:_s(this,o.split(" "))}this.nodeFromJSON=i=>yt.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 Us){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 er(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 _s(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 Lu(n){return n.tag!=null}function Pu(n){return n.style!=null}class Xe{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(Lu(i))this.tags.push(i);else if(Pu(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 Js(this,t,!1);return r.addAll(e,B.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Js(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=Gs(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=Gs(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Xe(e,Xe.schemaRules(e)))}}const Vl={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},Bu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Hl={ol:!0,ul:!0},kn=1,Ni=2,rn=4;function qs(n,e,t){return e!=null?(e?kn:0)|(e==="full"?Ni:0):n&&n.whitespace=="pre"?kn|Ni:t&~rn}class Ln{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&rn?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&kn)){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&&!Vl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Js{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=qs(null,t.preserveWhitespace,0)|(r?rn:0);i?s=new Ln(i.type,i.attrs,B.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new Ln(null,null,B.none,!0,null,o):s=new Ln(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&Ni?"full":this.localPreserveWS||(i.options&kn)>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):Ys(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Ln(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|=kn)}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 zu(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Hl.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function $u(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Gs(n){let e={};for(let t in n)e[t]=n[t];return e}function Ys(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&&_n(Pn(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return typeof t=="string"?{dom:e.createTextNode(t)}:_n(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Tt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Xs(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Xs(e.marks)}}function Xs(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Pn(n){return n.document||window.document}const Qs=new WeakMap;function Fu(n){let e=Qs.get(n);return e===void 0&&Qs.set(n,e=Vu(n)),e}function Vu(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}=_n(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 jl=65535,Wl=Math.pow(2,16);function Hu(n,e){return n+e*Wl}function Zs(n){return n&jl}function ju(n){return(n-(n&jl))/Wl}const Kl=1,Ul=2,qn=4,_l=8;class Di{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&_l)>0}get deletedBefore(){return(this.delInfo&(Kl|qn))>0}get deletedAfter(){return(this.delInfo&(Ul|qn))>0}get deletedAcross(){return(this.delInfo&qn)>0}}class de{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&de.empty)return de.empty}recover(e){let t=0,r=Zs(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:Hu(l/3,e-a),m=0;return c&&(m|=e==a?Ul:e==d?Kl:qn,(t<0?e!=a:e!=d)&&(m|=_l)),new Di(h,m,p)}i+=u-c}return r?e+i:new Di(e+i,0,null)}touches(e,t){let r=0,i=Zs(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 bn;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 Ce(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 Ge(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ge&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ge(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 Ge(t.from,t.to,e.markFromJSON(t.mark))}}se.jsonID("addMark",Ge);class Ce extends se{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(ss(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 Ge(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 Ce(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ce&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ce(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 Ce(t.from,t.to,e.markFromJSON(t.mark))}}se.jsonID("removeMark",Ce);class Ye extends se{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)}}se.jsonID("replaceAround",G);function Ii(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 Wu(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 Ku(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 Fr){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 Ce(o.from,o.to,o.style)))}function ls(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 Uu(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function _t(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 Yu(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)&&Xu(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&&Jl(n,o,l,s),ls(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&&ql(n,o,l,s),!1}})}function ql(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 Jl(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-CGlcvAra.js b/modules/boardwalk/dist/assets/index-CGlcvAra.js new file mode 100644 index 00000000..8d510e93 --- /dev/null +++ b/modules/boardwalk/dist/assets/index-CGlcvAra.js @@ -0,0 +1,11 @@ +(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 zd(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const bt={},Tl=[],oa=()=>{},Bh=()=>!1,Hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ki=e=>e.startsWith("onUpdate:"),It=Object.assign,jd=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u_=Object.prototype.hasOwnProperty,vt=(e,t)=>u_.call(e,t),We=Array.isArray,Dl=e=>ms(e)==="[object Map]",Fh=e=>ms(e)==="[object Set]",Pp=e=>ms(e)==="[object Date]",et=e=>typeof e=="function",kt=e=>typeof e=="string",xn=e=>typeof e=="symbol",pt=e=>e!==null&&typeof e=="object",Vh=e=>(pt(e)||et(e))&&et(e.then)&&et(e.catch),zh=Object.prototype.toString,ms=e=>zh.call(e),c_=e=>ms(e).slice(8,-1),jh=e=>ms(e)==="[object Object]",Wi=e=>kt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qo=zd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},d_=/-\w/g,Wt=Gi(e=>e.replace(d_,t=>t.slice(1).toUpperCase())),f_=/\B([A-Z])/g,br=Gi(e=>e.replace(f_,"-$1").toLowerCase()),Yi=Gi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Lo=Gi(e=>e?`on${Yi(e)}`:""),na=(e,t)=>!Object.is(e,t),ai=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},Ud=e=>{const t=parseFloat(e);return isNaN(t)?e:t},p_=e=>{const t=kt(e)?Number(e):NaN;return isNaN(t)?e:t};let Ip;const Ji=()=>Ip||(Ip=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bn(e){if(We(e)){const t={};for(let n=0;n{if(n){const a=n.split(v_);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function ve(e){let t="";if(kt(e))t=e;else if(We(e))for(let n=0;n!!(e&&e.__v_isRef===!0),$=e=>kt(e)?e:e==null?"":We(e)||pt(e)&&(e.toString===zh||!et(e.toString))?Kh(e)?$(e.value):JSON.stringify(e,Wh,2):String(e),Wh=(e,t)=>Kh(t)?Wh(e,t.value):Dl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,r],l)=>(n[ju(a,l)+" =>"]=r,n),{})}:Fh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ju(n))}:xn(t)?ju(t):pt(t)&&!We(t)&&!jh(t)?String(t):t,ju=(e,t="")=>{var n;return xn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Nt;class Gh{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&&Nt&&(Nt.active?(this.parent=Nt,this.index=(Nt.scopes||(Nt.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(Nt===this)Nt=this.prevScope;else{let t=Nt;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(Bo){let t=Bo;for(Bo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;No;){let t=No;for(No=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 ey(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ty(e){let t,n=e.depsTail,a=n;for(;a;){const r=a.prevDep;a.version===-1?(a===n&&(n=r),Yd(a),x_(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=r}e.deps=t,e.depsTail=n}function Wc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ny(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ny(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yo)||(e.globalVersion=Yo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wc(e))))return;e.flags|=2;const t=e.dep,n=_t,a=Rn;_t=e,Rn=!0;try{ey(e);const r=e.fn(e._value);(t.version===0||na(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{_t=n,Rn=a,ty(e),e.flags&=-3}}function Yd(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)Yd(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function x_(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Rn=!0;const ay=[];function Da(){ay.push(Rn),Rn=!1}function Oa(){const e=ay.pop();Rn=e===void 0?!0:e}function Rp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_t;_t=void 0;try{t()}finally{_t=n}}}let Yo=0,k_=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 Zi{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||!Rn||_t===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_t)n=this.activeLink=new k_(_t,this),_t.deps?(n.prevDep=_t.depsTail,_t.depsTail.nextDep=n,_t.depsTail=n):_t.deps=_t.depsTail=n,ry(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++,Yo++,this.notify(t)}notify(t){Wd();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Gd()}}}function ry(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)ry(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const fi=new WeakMap,Fr=Symbol(""),Gc=Symbol(""),Jo=Symbol("");function Zt(e,t,n){if(Rn&&_t){let a=fi.get(e);a||fi.set(e,a=new Map);let r=a.get(n);r||(a.set(n,r=new Zi),r.map=a,r.key=n),r.track()}}function xa(e,t,n,a,r,l){const o=fi.get(e);if(!o){Yo++;return}const i=u=>{u&&u.trigger()};if(Wd(),t==="clear")o.forEach(i);else{const u=We(e),d=u&&Wi(n);if(u&&n==="length"){const c=Number(a);o.forEach((f,v)=>{(v==="length"||v===Jo||!xn(v)&&v>=c)&&i(f)})}else switch((n!==void 0||o.has(void 0))&&i(o.get(n)),d&&i(o.get(Jo)),t){case"add":u?d&&i(o.get("length")):(i(o.get(Fr)),Dl(e)&&i(o.get(Gc)));break;case"delete":u||(i(o.get(Fr)),Dl(e)&&i(o.get(Gc)));break;case"set":Dl(e)&&i(o.get(Fr));break}}Gd()}function w_(e,t){const n=fi.get(e);return n&&n.get(t)}function cl(e){const t=dt(e);return t===e?t:(Zt(t,"iterate",Jo),_n(e)?t:t.map(Nn))}function Xi(e){return Zt(e=dt(e),"iterate",Jo),e}function ea(e,t){return Ma(e)?Vl(Vr(e)?Nn(t):t):Nn(t)}const $_={__proto__:null,[Symbol.iterator](){return Hu(this,Symbol.iterator,e=>ea(this,e))},concat(...e){return cl(this).concat(...e.map(t=>We(t)?cl(t):t))},entries(){return Hu(this,"entries",e=>(e[1]=ea(this,e[1]),e))},every(e,t){return ha(this,"every",e,t,void 0,arguments)},filter(e,t){return ha(this,"filter",e,t,n=>n.map(a=>ea(this,a)),arguments)},find(e,t){return ha(this,"find",e,t,n=>ea(this,n),arguments)},findIndex(e,t){return ha(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ha(this,"findLast",e,t,n=>ea(this,n),arguments)},findLastIndex(e,t){return ha(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ha(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ku(this,"includes",e)},indexOf(...e){return Ku(this,"indexOf",e)},join(e){return cl(this).join(e)},lastIndexOf(...e){return Ku(this,"lastIndexOf",e)},map(e,t){return ha(this,"map",e,t,void 0,arguments)},pop(){return vo(this,"pop")},push(...e){return vo(this,"push",e)},reduce(e,...t){return qp(this,"reduce",e,t)},reduceRight(e,...t){return qp(this,"reduceRight",e,t)},shift(){return vo(this,"shift")},some(e,t){return ha(this,"some",e,t,void 0,arguments)},splice(...e){return vo(this,"splice",e)},toReversed(){return cl(this).toReversed()},toSorted(e){return cl(this).toSorted(e)},toSpliced(...e){return cl(this).toSpliced(...e)},unshift(...e){return vo(this,"unshift",e)},values(){return Hu(this,"values",e=>ea(this,e))}};function Hu(e,t,n){const a=Xi(e),r=a[t]();return a!==e&&!_n(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.done||(l.value=n(l.value)),l}),r}const C_=Array.prototype;function ha(e,t,n,a,r,l){const o=Xi(e),i=o!==e&&!_n(e),u=o[t];if(u!==C_[t]){const f=u.apply(e,l);return i?Nn(f):f}let d=n;o!==e&&(i?d=function(f,v){return n.call(this,ea(e,f),v,e)}:n.length>2&&(d=function(f,v){return n.call(this,f,v,e)}));const c=u.call(o,d,a);return i&&r?r(c):c}function qp(e,t,n,a){const r=Xi(e),l=r!==e&&!_n(e);let o=n,i=!1;r!==e&&(l?(i=a.length===0,o=function(d,c,f){return i&&(i=!1,d=ea(e,d)),n.call(this,d,ea(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?ea(e,u):u}function Ku(e,t,n){const a=dt(e);Zt(a,"iterate",Jo);const r=a[t](...n);return(r===-1||r===!1)&&tu(n[0])?(n[0]=dt(n[0]),a[t](...n)):r}function vo(e,t,n=[]){Da(),Wd();const a=dt(e)[t].apply(e,n);return Gd(),Oa(),a}const S_=zd("__proto__,__v_isRef,__isVue"),ly=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xn));function E_(e){xn(e)||(e=String(e));const t=dt(this);return Zt(t,"has",e),t.hasOwnProperty(e)}class oy{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?fy:dy:l?cy:uy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const o=We(t);if(!r){let u;if(o&&(u=$_[n]))return u;if(n==="hasOwnProperty")return E_}const i=Reflect.get(t,n,Ct(t)?t:a);if((xn(n)?ly.has(n):S_(n))||(r||Zt(t,"get",n),l))return i;if(Ct(i)){const u=o&&Wi(n)?i:i.value;return r&&pt(u)?xt(u):u}return pt(i)?r?xt(i):Ln(i):i}}class sy extends oy{constructor(t=!1){super(!1,t)}set(t,n,a,r){let l=t[n];const o=We(t)&&Wi(n);if(!this._isShallow){const d=Ma(l);if(!_n(a)&&!Ma(a)&&(l=dt(l),a=dt(a)),!o&&Ct(l)&&!Ct(a))return d||(l.value=a),!0}const i=o?Number(n)e,Is=e=>Reflect.getPrototypeOf(e);function M_(e,t,n){return function(...a){const r=this.__v_raw,l=dt(r),o=Dl(l),i=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=r[e](...a),c=n?Yc:t?Vl:Nn;return!t&&Zt(l,"iterate",u?Gc:Fr),It(Object.create(d),{next(){const{value:f,done:v}=d.next();return v?{value:f,done:v}:{value:i?[c(f[0]),c(f[1])]:c(f),done:v}}})}}function Rs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function P_(e,t){const n={get(r){const l=this.__v_raw,o=dt(l),i=dt(r);e||(na(r,i)&&Zt(o,"get",r),Zt(o,"get",i));const{has:u}=Is(o),d=t?Yc:e?Vl:Nn;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&&Zt(dt(r),"iterate",Fr),r.size},has(r){const l=this.__v_raw,o=dt(l),i=dt(r);return e||(na(r,i)&&Zt(o,"has",r),Zt(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=dt(i),d=t?Yc:e?Vl:Nn;return!e&&Zt(u,"iterate",Fr),i.forEach((c,f)=>r.call(l,d(c),d(f),o))}};return It(n,e?{add:Rs("add"),set:Rs("set"),delete:Rs("delete"),clear:Rs("clear")}:{add(r){const l=dt(this),o=Is(l),i=dt(r),u=!t&&!_n(r)&&!Ma(r)?i:r;return o.has.call(l,u)||na(r,u)&&o.has.call(l,r)||na(i,u)&&o.has.call(l,i)||(l.add(u),xa(l,"add",u,u)),this},set(r,l){!t&&!_n(l)&&!Ma(l)&&(l=dt(l));const o=dt(this),{has:i,get:u}=Is(o);let d=i.call(o,r);d||(r=dt(r),d=i.call(o,r));const c=u.call(o,r);return o.set(r,l),d?na(l,c)&&xa(o,"set",r,l):xa(o,"add",r,l),this},delete(r){const l=dt(this),{has:o,get:i}=Is(l);let u=o.call(l,r);u||(r=dt(r),u=o.call(l,r)),i&&i.call(l,r);const d=l.delete(r);return u&&xa(l,"delete",r,void 0),d},clear(){const r=dt(this),l=r.size!==0,o=r.clear();return l&&xa(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=M_(r,e,t)}),n}function Qi(e,t){const n=P_(e,t);return(a,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?a:Reflect.get(vt(n,r)&&r in a?n:a,r,l)}const I_={get:Qi(!1,!1)},R_={get:Qi(!1,!0)},q_={get:Qi(!0,!1)},L_={get:Qi(!0,!0)},uy=new WeakMap,cy=new WeakMap,dy=new WeakMap,fy=new WeakMap;function N_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ln(e){return Ma(e)?e:eu(e,!1,A_,I_,uy)}function py(e){return eu(e,!1,D_,R_,cy)}function xt(e){return eu(e,!0,T_,q_,dy)}function dl(e){return eu(e,!0,O_,L_,fy)}function eu(e,t,n,a,r){if(!pt(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=N_(c_(e));if(o===0)return e;const i=new Proxy(e,o===2?a:n);return r.set(e,i),i}function Vr(e){return Ma(e)?Vr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ma(e){return!!(e&&e.__v_isReadonly)}function _n(e){return!!(e&&e.__v_isShallow)}function tu(e){return e?!!e.__v_raw:!1}function dt(e){const t=e&&e.__v_raw;return t?dt(t):e}function pi(e){return!vt(e,"__v_skip")&&Object.isExtensible(e)&&Uh(e,"__v_skip",!0),e}const Nn=e=>pt(e)?Ln(e):e,Vl=e=>pt(e)?xt(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function M(e){return my(e,!1)}function Jl(e){return my(e,!0)}function my(e,t){return Ct(e)?e:new B_(e,t)}class B_{constructor(t,n){this.dep=new Zi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:dt(t),this._value=n?t:Nn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||_n(t)||Ma(t);t=a?t:dt(t),na(t,n)&&(this._rawValue=t,this._value=a?t:Nn(t),this.dep.trigger())}}function F_(e){e.dep&&e.dep.trigger()}function s(e){return Ct(e)?e.value:e}function ln(e){return et(e)?e():s(e)}const V_={get:(e,t,n)=>t==="__v_raw"?e:s(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const r=e[t];return Ct(r)&&!Ct(n)?(r.value=n,!0):Reflect.set(e,t,n,a)}};function vy(e){return Vr(e)?e:new Proxy(e,V_)}class z_{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zi,{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 j_(e){return new z_(e)}function Vt(e){const t=We(e)?new Array(e.length):{};for(const n in e)t[n]=hy(e,n);return t}class U_{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=xn(n)?n:String(n),this._raw=dt(t);let r=!0,l=t;if(!We(t)||xn(this._key)||!Wi(this._key))do r=!tu(l)||_n(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&&Ct(this._raw[this._key])){const n=this._object[this._key];if(Ct(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return w_(this._raw,this._key)}}class H_{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 K_(e,t,n){return Ct(e)?e:et(e)?new H_(e):pt(e)&&arguments.length>1?hy(e,t,n):M(e)}function hy(e,t,n){return new U_(e,t,n)}class W_{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yo-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 Qh(this,!0),!0}get value(){const t=this.dep.track();return ny(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function G_(e,t,n=!1){let a,r;return et(e)?a=e:(a=e.get,r=e.set),new W_(a,r,n)}const qs={},mi=new WeakMap;let Pr;function Y_(e,t=!1,n=Pr){if(n){let a=mi.get(n);a||mi.set(n,a=[]),a.push(e)}}function J_(e,t,n=bt){const{immediate:a,deep:r,once:l,scheduler:o,augmentJob:i,call:u}=n,d=D=>r?D:_n(D)||r===!1||r===0?ka(D,1):ka(D);let c,f,v,p,h=!1,k=!1;if(Ct(e)?(f=()=>e.value,h=_n(e)):Vr(e)?(f=()=>d(e),h=!0):We(e)?(k=!0,h=e.some(D=>Vr(D)||_n(D)),f=()=>e.map(D=>{if(Ct(D))return D.value;if(Vr(D))return d(D);if(et(D))return u?u(D,2):D()})):et(e)?t?f=u?()=>u(e,2):e:f=()=>{if(v){Da();try{v()}finally{Oa()}}const D=Pr;Pr=c;try{return u?u(e,3,[p]):e(p)}finally{Pr=D}}:f=oa,t&&r){const D=f,A=r===!0?1/0:r;f=()=>ka(D(),A)}const S=Kd(),x=()=>{c.stop(),S&&S.active&&jd(S.effects,c)};if(l&&t){const D=t;t=(...A)=>{D(...A),x()}}let E=k?new Array(e.length).fill(qs):qs;const L=D=>{if(!(!(c.flags&1)||!c.dirty&&!D))if(t){const A=c.run();if(r||h||(k?A.some((R,F)=>na(R,E[F])):na(A,E))){v&&v();const R=Pr;Pr=c;try{const F=[A,E===qs?void 0:k&&E[0]===qs?[]:E,p];E=A,u?u(t,3,F):t(...F)}finally{Pr=R}}}else c.run()};return i&&i(L),c=new Zh(f),c.scheduler=o?()=>o(L,!1):L,p=D=>Y_(D,!1,c),v=c.onStop=()=>{const D=mi.get(c);if(D){if(u)u(D,4);else for(const A of D)A();mi.delete(c)}},t?a?L(!0):E=c.run():o?o(L.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function ka(e,t=1/0,n){if(t<=0||!pt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ct(e))ka(e.value,t,n);else if(We(e))for(let a=0;a{ka(a,t,n)});else if(jh(e)){for(const a in e)ka(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&ka(e[a],t,n)}return e}function vs(e,t,n,a){try{return a?e(...a):e()}catch(r){nu(r,t,n)}}function On(e,t,n,a){if(et(e)){const r=vs(e,t,n,a);return r&&Vh(r)&&r.catch(l=>{nu(l,t,n)}),r}if(We(e)){const r=[];for(let l=0;l>>1,r=rn[a],l=Zo(r);l=Zo(n)?rn.push(e):rn.splice(X_(t),0,e),e.flags|=1,gy()}}function gy(){vi||(vi=yy.then(_y))}function Q_(e){We(e)?Ol.push(...e):Xa&&e.id===-1?Xa.splice(bl+1,0,e):e.flags&1||(Ol.push(e),e.flags|=1),gy()}function Lp(e,t,n=Xn+1){for(;nZo(n)-Zo(a));if(Ol.length=0,Xa){Xa.push(...t);return}for(Xa=t,bl=0;ble.id==null?e.flags&2?-1:1/0:e.id;function _y(e){try{for(Xn=0;Xn{a._d&&bi(-1);const l=hi(t);let o;try{o=e(...r)}finally{hi(l),a._d&&bi(1)}return o};return a._n=!0,a._c=!0,a._d=!0,a}function sa(e,t){if(Kt===null)return e;const n=su(Kt),a=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&et(t)?t.call(a&&a.proxy):t}}const ex=Symbol.for("v-scx"),tx=()=>it(ex);function kn(e,t){return au(e,null,t)}function ky(e,t){return au(e,null,{flush:"post"})}function Ve(e,t,n){return au(e,t,n)}function au(e,t,n=bt){const{immediate:a,deep:r,flush:l,once:o}=n,i=It({},n),u=t&&a||!t&&l!=="post";let d;if(ts){if(l==="sync"){const p=tx();d=p.__watcherHandles||(p.__watcherHandles=[])}else if(!u){const p=()=>{};return p.stop=oa,p.resume=oa,p.pause=oa,p}}const c=Xt;i.call=(p,h,k)=>On(p,c,h,k);let f=!1;l==="post"?i.scheduler=p=>{an(p,c&&c.suspense)}:l!=="sync"&&(f=!0,i.scheduler=(p,h)=>{h?p():Jd(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const v=J_(e,t,i);return ts&&(d?d.push(v):u&&v()),v}function nx(e,t,n){const a=this.proxy,r=kt(e)?e.includes(".")?wy(a,e):()=>a[e]:e.bind(a,a);let l;et(t)?l=t:(l=t.handler,n=t);const o=hs(this),i=au(r,l.bind(a),n);return o(),i}function wy(e,t){const n=t.split(".");return()=>{let a=e;for(let r=0;re.__isTeleport,qr=e=>e&&(e.disabled||e.disabled===""),rx=e=>e&&(e.defer||e.defer===""),Np=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Bp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Jc=(e,t)=>{const n=e&&e.to;return kt(n)?t?t(n):null:n},lx={name:"Teleport",__isTeleport:!0,process(e,t,n,a,r,l,o,i,u,d){const{mc:c,pc:f,pbc:v,o:{insert:p,querySelector:h,createText:k,createComment:S,parentNode:x}}=d,E=qr(t.props);let{dynamicChildren:L}=t;const D=(F,W,C)=>{F.shapeFlag&16&&c(F.children,W,C,r,l,o,i,u)},A=(F=t)=>{const W=qr(F.props),C=F.target=Jc(F.props,h),I=Zc(C,F,k,p);C&&(o!=="svg"&&Np(C)?o="svg":o!=="mathml"&&Bp(C)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(C),W||(D(F,C,I),Do(F,!1)))},R=F=>{const W=()=>{if(Ya.get(F)===W){if(Ya.delete(F),qr(F.props)){const C=x(F.el)||n;D(F,C,F.anchor),Do(F,!0)}A(F)}};Ya.set(F,W),an(W,l)};if(e==null){const F=t.el=k(""),W=t.anchor=k("");if(p(F,n,a),p(W,n,a),rx(t.props)||l&&l.pendingBranch){R(t);return}E&&(D(t,n,W),Do(t,!0)),A()}else{t.el=e.el;const F=t.anchor=e.anchor,W=Ya.get(e);if(W){W.flags|=8,Ya.delete(e),R(t);return}t.targetStart=e.targetStart;const C=t.target=e.target,I=t.targetAnchor=e.targetAnchor,z=qr(e.props),O=z?n:C,B=z?F:I;if(o==="svg"||Np(C)?o="svg":(o==="mathml"||Bp(C))&&(o="mathml"),L?(v(e.dynamicChildren,L,O,r,l,o,i),ef(e,t,!0)):u||f(e,t,O,B,r,l,o,i,!1),E)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ls(t,n,F,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const J=t.target=Jc(t.props,h);J&&Ls(t,J,null,d,0)}else z&&Ls(t,C,I,d,1);Do(t,E)}},remove(e,t,n,{um:a,o:{remove:r}},l){const{shapeFlag:o,children:i,anchor:u,targetStart:d,targetAnchor:c,target:f,props:v}=e,p=l||!qr(v),h=Ya.get(e);if(h&&(h.flags|=8,Ya.delete(e)),f&&(r(d),r(c)),l&&r(u),!h&&o&16)for(let k=0;k{e.isMounted=!0}),St(()=>{e.isUnmounting=!0}),e}const Cn=[Function,Array],ux={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cn,onEnter:Cn,onAfterEnter:Cn,onEnterCancelled:Cn,onBeforeLeave:Cn,onLeave:Cn,onAfterLeave:Cn,onLeaveCancelled:Cn,onBeforeAppear:Cn,onAppear:Cn,onAfterAppear:Cn,onAppearCancelled:Cn};function cx(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 Xc(e,t,n,a,r){const{appear:l,mode:o,persisted:i=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:v,onLeave:p,onAfterLeave:h,onLeaveCancelled:k,onBeforeAppear:S,onAppear:x,onAfterAppear:E,onAppearCancelled:L}=t,D=String(e.key),A=cx(n,e),R=(C,I)=>{C&&On(C,a,9,I)},F=(C,I)=>{const z=I[1];R(C,I),We(C)?C.every(O=>O.length<=1)&&z():C.length<=1&&z()},W={mode:o,persisted:i,beforeEnter(C){let I=u;if(!n.isMounted)if(l)I=S||u;else return;C[Qn]&&C[Qn](!0);const z=A[D];z&&_l(e,z)&&z.el[Qn]&&z.el[Qn](),R(I,[C])},enter(C){if(A[D]===e)return;let I=d,z=c,O=f;if(!n.isMounted)if(l)I=x||d,z=E||c,O=L||f;else return;let B=!1;C[ho]=K=>{B||(B=!0,K?R(O,[C]):R(z,[C]),W.delayedLeave&&W.delayedLeave(),C[ho]=void 0)};const J=C[ho].bind(null,!1);I?F(I,[C,J]):J()},leave(C,I){const z=String(e.key);if(C[ho]&&C[ho](!0),n.isUnmounting)return I();R(v,[C]);let O=!1;C[Qn]=J=>{O||(O=!0,I(),J?R(k,[C]):R(h,[C]),C[Qn]=void 0,A[z]===e&&delete A[z])};const B=C[Qn].bind(null,!1);A[z]=e,p?F(p,[C,B]):B()},clone(C){return Xc(C,t,n,a)}};return W}function Xo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Xo(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 Cy(e,t=!1,n){let a=[],r=0;for(let l=0;l1)for(let l=0;lFo(k,t&&(We(t)?t[S]:t),n,a,r));return}if(Ml(a)&&!r){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Fo(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?su(a.component):a.el,o=r?null:l,{i,r:u}=e,d=t&&t.r,c=i.refs===bt?i.refs={}:i.refs,f=i.setupState,v=dt(f),p=f===bt?Bh:k=>Fp(c,k)?!1:vt(v,k),h=(k,S)=>!(S&&Fp(c,S));if(d!=null&&d!==u){if(Vp(t),kt(d))c[d]=null,p(d)&&(f[d]=null);else if(Ct(d)){const k=t;h(d,k.k)&&(d.value=null),k.k&&(c[k.k]=null)}}if(et(u))vs(u,i,12,[o,c]);else{const k=kt(u),S=Ct(u);if(k||S){const x=()=>{if(e.f){const E=k?p(u)?f[u]:c[u]:h()||!e.k?u.value:c[e.k];if(r)We(E)&&jd(E,l);else if(We(E))E.includes(l)||E.push(l);else if(k)c[u]=[l],p(u)&&(f[u]=c[u]);else{const L=[l];h(u,e.k)&&(u.value=L),e.k&&(c[e.k]=L)}}else k?(c[u]=o,p(u)&&(f[u]=o)):S&&(h(u,e.k)&&(u.value=o),e.k&&(c[e.k]=o))};if(o){const E=()=>{x(),yi.delete(e)};E.id=-1,yi.set(e,E),an(E,n)}else Vp(e),x()}}}function Vp(e){const t=yi.get(e);t&&(t.flags|=8,yi.delete(e))}Ji().requestIdleCallback;Ji().cancelIdleCallback;const Ml=e=>!!e.type.__asyncLoader,Ay=e=>e.type.__isKeepAlive;function Ty(e,t){Oy(e,"a",t)}function Dy(e,t){Oy(e,"da",t)}function Oy(e,t,n=Xt){const a=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ru(t,a,n),n){let r=n.parent;for(;r&&r.parent;)Ay(r.parent.vnode)&&dx(a,t,n,r),r=r.parent}}function dx(e,t,n,a){const r=ru(t,e,a,!0);La(()=>{jd(a[t],r)},n)}function ru(e,t,n=Xt,a=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...o)=>{Da();const i=hs(n),u=On(t,n,e,o);return i(),Oa(),u});return a?r.unshift(l):r.push(l),l}}const qa=e=>(t,n=Xt)=>{(!ts||e==="sp")&&ru(e,(...a)=>t(...a),n)},My=qa("bm"),wt=qa("m"),fx=qa("bu"),Zd=qa("u"),St=qa("bum"),La=qa("um"),px=qa("sp"),mx=qa("rtg"),vx=qa("rtc");function hx(e,t=Xt){ru("ec",e,t)}const Py="components";function yx(e,t){return Ry(Py,e,!0,t)||e}const Iy=Symbol.for("v-ndc");function zt(e){return kt(e)?Ry(Py,e,!1)||e:e||Iy}function Ry(e,t,n=!0,a=!1){const r=Kt||Xt;if(r){const l=r.type;{const i=Qx(l,!1);if(i&&(i===t||i===Wt(t)||i===Yi(Wt(t))))return l}const o=zp(r[e]||l[e],t)||zp(r.appContext[e],t);return!o&&a?l:o}}function zp(e,t){return e&&(e[t]||e[Wt(t)]||e[Yi(Wt(t))])}function Ie(e,t,n,a){let r;const l=n,o=We(e);if(o||kt(e)){const i=o&&Vr(e);let u=!1,d=!1;i&&(u=!_n(e),d=Ma(e),e=Xi(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),m(),j(pe,null,[N("slot",n,a&&a())],d?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),m();const o=l&&qy(l(n)),i=n.key||o&&o.key,u=j(pe,{key:(i&&!xn(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 qy(e){return e.some(t=>es(t)?!(t.type===Bn||t.type===pe&&!qy(t.children)):!0)?e:null}function Ly(e,t){const n={};for(const a in e)n[Lo(a)]=e[a];return n}const Qc=e=>e?ag(e)?su(e):Qc(e.parent):null,Vo=It(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=>Qc(e.parent),$root:e=>Qc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fy(e),$forceUpdate:e=>e.f||(e.f=()=>{Jd(e.update)}),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>nx.bind(e)}),Wu=(e,t)=>e!==bt&&!e.__isScriptSetup&&vt(e,t),gx={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 v=o[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(Wu(a,t))return o[t]=1,a[t];if(r!==bt&&vt(r,t))return o[t]=2,r[t];if(vt(l,t))return o[t]=3,l[t];if(n!==bt&&vt(n,t))return o[t]=4,n[t];td&&(o[t]=0)}}const d=Vo[t];let c,f;if(d)return t==="$attrs"&&Zt(e.attrs,"get",""),d(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==bt&&vt(n,t))return o[t]=4,n[t];if(f=u.config.globalProperties,vt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:r,ctx:l}=e;return Wu(r,t)?(r[t]=n,!0):a!==bt&&vt(a,t)?(a[t]=n,!0):vt(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!==bt&&i[0]!=="$"&&vt(e,i)||Wu(t,i)||vt(l,i)||vt(a,i)||vt(Vo,i)||vt(r.config.globalProperties,i)||(u=o.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:vt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ed(e){return We(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ny(e,t){const n=ed(e);for(const a in t){if(a.startsWith("__skip"))continue;let r=n[a];r?We(r)||et(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 td=!0;function bx(e){const t=Fy(e),n=e.proxy,a=e.ctx;td=!1,t.beforeCreate&&jp(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:o,watch:i,provide:u,inject:d,created:c,beforeMount:f,mounted:v,beforeUpdate:p,updated:h,activated:k,deactivated:S,beforeDestroy:x,beforeUnmount:E,destroyed:L,unmounted:D,render:A,renderTracked:R,renderTriggered:F,errorCaptured:W,serverPrefetch:C,expose:I,inheritAttrs:z,components:O,directives:B,filters:J}=t;if(d&&_x(d,a,null),o)for(const le in o){const ue=o[le];et(ue)&&(a[le]=ue.bind(n))}if(r){const le=r.call(n,n);pt(le)&&(e.data=Ln(le))}if(td=!0,l)for(const le in l){const ue=l[le],we=et(ue)?ue.bind(n,n):et(ue.get)?ue.get.bind(n,n):oa,Oe=!et(ue)&&et(ue.set)?ue.set.bind(n):oa,Ae=_({get:we,set:Oe});Object.defineProperty(a,le,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:ie=>Ae.value=ie})}if(i)for(const le in i)By(i[le],a,n,le);if(u){const le=et(u)?u.call(n):u;Reflect.ownKeys(le).forEach(ue=>{ht(ue,le[ue])})}c&&jp(c,e,"c");function H(le,ue){We(ue)?ue.forEach(we=>le(we.bind(n))):ue&&le(ue.bind(n))}if(H(My,f),H(wt,v),H(fx,p),H(Zd,h),H(Ty,k),H(Dy,S),H(hx,W),H(vx,R),H(mx,F),H(St,E),H(La,D),H(px,C),We(I))if(I.length){const le=e.exposed||(e.exposed={});I.forEach(ue=>{Object.defineProperty(le,ue,{get:()=>n[ue],set:we=>n[ue]=we,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===oa&&(e.render=A),z!=null&&(e.inheritAttrs=z),O&&(e.components=O),B&&(e.directives=B),C&&Ey(e)}function _x(e,t,n=oa){We(e)&&(e=nd(e));for(const a in e){const r=e[a];let l;pt(r)?"default"in r?l=it(r.from||a,r.default,!0):l=it(r.from||a):l=it(r),Ct(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[a]=l}}function jp(e,t,n){On(We(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function By(e,t,n,a){let r=a.includes(".")?wy(n,a):()=>n[a];if(kt(e)){const l=t[e];et(l)&&Ve(r,l)}else if(et(e))Ve(r,e.bind(n));else if(pt(e))if(We(e))e.forEach(l=>By(l,t,n,a));else{const l=et(e.handler)?e.handler.bind(n):t[e.handler];et(l)&&Ve(r,l,e)}}function Fy(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=>gi(u,d,o,!0)),gi(u,t,o)),pt(t)&&l.set(t,u),u}function gi(e,t,n,a=!1){const{mixins:r,extends:l}=t;l&&gi(e,l,n,!0),r&&r.forEach(o=>gi(e,o,n,!0));for(const o in t)if(!(a&&o==="expose")){const i=xx[o]||n&&n[o];e[o]=i?i(e[o],t[o]):t[o]}return e}const xx={data:Up,props:Hp,emits:Hp,methods:Oo,computed:Oo,beforeCreate:nn,created:nn,beforeMount:nn,mounted:nn,beforeUpdate:nn,updated:nn,beforeDestroy:nn,beforeUnmount:nn,destroyed:nn,unmounted:nn,activated:nn,deactivated:nn,errorCaptured:nn,serverPrefetch:nn,components:Oo,directives:Oo,watch:wx,provide:Up,inject:kx};function Up(e,t){return t?e?function(){return It(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function kx(e,t){return Oo(nd(e),nd(t))}function nd(e){if(We(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Wt(t)}Modifiers`]||e[`${br(t)}Modifiers`];function Ex(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||bt;let r=n;const l=t.startsWith("update:"),o=l&&Sx(a,t.slice(7));o&&(o.trim&&(r=n.map(c=>kt(c)?c.trim():c)),o.number&&(r=n.map(Ud)));let i,u=a[i=Lo(t)]||a[i=Lo(Wt(t))];!u&&l&&(u=a[i=Lo(br(t))]),u&&On(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,On(d,e,6,r)}}const Ax=new WeakMap;function zy(e,t,n=!1){const a=n?Ax:t.emitsCache,r=a.get(e);if(r!==void 0)return r;const l=e.emits;let o={},i=!1;if(!et(e)){const u=d=>{const c=zy(d,t,!0);c&&(i=!0,It(o,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!i?(pt(e)&&a.set(e,null),null):(We(l)?l.forEach(u=>o[u]=null):It(o,l),pt(e)&&a.set(e,o),o)}function lu(e,t){return!e||!Hi(t)?!1:(t=t.slice(2).replace(/Once$/,""),vt(e,t[0].toLowerCase()+t.slice(1))||vt(e,br(t))||vt(e,t))}function Kp(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:v,setupState:p,ctx:h,inheritAttrs:k}=e,S=hi(e);let x,E;try{if(n.shapeFlag&4){const D=r||a,A=D;x=ta(d.call(A,D,c,f,p,v,h)),E=i}else{const D=t;x=ta(D.length>1?D(f,{attrs:i,slots:o,emit:u}):D(f,null)),E=t.props?i:Tx(i)}}catch(D){zo.length=0,nu(D,e,1),x=N(Bn)}let L=x;if(E&&k!==!1){const D=Object.keys(E),{shapeFlag:A}=L;D.length&&A&7&&(l&&D.some(Ki)&&(E=Dx(E,l)),L=sr(L,E,!1,!0))}return n.dirs&&(L=sr(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&Xo(L,n.transition),x=L,hi(S),x}const Tx=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hi(n))&&((t||(t={}))[n]=e[n]);return t},Dx=(e,t)=>{const n={};for(const a in e)(!Ki(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function Ox(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?Wp(a,o,d):!!o;if(u&8){const c=t.dynamicProps;for(let f=0;fObject.create(Uy),Ky=e=>Object.getPrototypeOf(e)===Uy;function Px(e,t,n,a=!1){const r={},l=Hy();e.propsDefaults=Object.create(null),Wy(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=a?r:py(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Ix(e,t,n,a){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,i=dt(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[v,p]=Gy(f,t,!0);It(o,v),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!l&&!u)return pt(e)&&a.set(e,Tl),Tl;if(We(l))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Qd=e=>We(e)?e.map(ta):[ta(e)],qx=(e,t,n)=>{if(t._n)return t;const a=q((...r)=>Qd(t(...r)),n);return a._c=!1,a},Yy=(e,t,n)=>{const a=e._ctx;for(const r in e){if(Xd(r))continue;const l=e[r];if(et(l))t[r]=qx(r,l,a);else if(l!=null){const o=Qd(l);t[r]=()=>o}}},Jy=(e,t)=>{const n=Qd(t);e.slots.default=()=>n},Zy=(e,t,n)=>{for(const a in t)(n||!Xd(a))&&(e[a]=t[a])},Lx=(e,t,n)=>{const a=e.slots=Hy();if(e.vnode.shapeFlag&32){const r=t._;r?(Zy(a,t,n),n&&Uh(a,"_",r,!0)):Yy(t,a)}else t&&Jy(e,t)},Nx=(e,t,n)=>{const{vnode:a,slots:r}=e;let l=!0,o=bt;if(a.shapeFlag&32){const i=t._;i?n&&i===1?l=!1:Zy(r,t,n):(l=!t.$stable,Yy(t,r)),o=t}else t&&(Jy(e,t),o={default:1});if(l)for(const i in r)!Xd(i)&&o[i]==null&&delete r[i]},an=jx;function Bx(e){return Fx(e)}function Fx(e,t){const n=Ji();n.__VUE__=!0;const{insert:a,remove:r,patchProp:l,createElement:o,createText:i,createComment:u,setText:d,setElementText:c,parentNode:f,nextSibling:v,setScopeId:p=oa,insertStaticContent:h}=e,k=(b,T,P,re=null,ee=null,ce=null,Ee=void 0,Ce=null,Te=!!T.dynamicChildren)=>{if(b===T)return;b&&!_l(b,T)&&(re=Y(b),ie(b,ee,ce,!0),b=null),T.patchFlag===-2&&(Te=!1,T.dynamicChildren=null);const{type:oe,ref:$e,shapeFlag:ye}=T;switch(oe){case ou:S(b,T,P,re);break;case Bn:x(b,T,P,re);break;case Yu:b==null&&E(T,P,re,Ee);break;case pe:O(b,T,P,re,ee,ce,Ee,Ce,Te);break;default:ye&1?A(b,T,P,re,ee,ce,Ee,Ce,Te):ye&6?B(b,T,P,re,ee,ce,Ee,Ce,Te):(ye&64||ye&128)&&oe.process(b,T,P,re,ee,ce,Ee,Ce,Te,X)}$e!=null&&ee?Fo($e,b&&b.ref,ce,T||b,!T):$e==null&&b&&b.ref!=null&&Fo(b.ref,null,ce,b,!0)},S=(b,T,P,re)=>{if(b==null)a(T.el=i(T.children),P,re);else{const ee=T.el=b.el;T.children!==b.children&&d(ee,T.children)}},x=(b,T,P,re)=>{b==null?a(T.el=u(T.children||""),P,re):T.el=b.el},E=(b,T,P,re)=>{[b.el,b.anchor]=h(b.children,T,P,re,b.el,b.anchor)},L=({el:b,anchor:T},P,re)=>{let ee;for(;b&&b!==T;)ee=v(b),a(b,P,re),b=ee;a(T,P,re)},D=({el:b,anchor:T})=>{let P;for(;b&&b!==T;)P=v(b),r(b),b=P;r(T)},A=(b,T,P,re,ee,ce,Ee,Ce,Te)=>{if(T.type==="svg"?Ee="svg":T.type==="math"&&(Ee="mathml"),b==null)R(T,P,re,ee,ce,Ee,Ce,Te);else{const oe=b.el&&b.el._isVueCE?b.el:null;try{oe&&oe._beginPatch(),C(b,T,ee,ce,Ee,Ce,Te)}finally{oe&&oe._endPatch()}}},R=(b,T,P,re,ee,ce,Ee,Ce)=>{let Te,oe;const{props:$e,shapeFlag:ye,transition:qe,dirs:Be}=b;if(Te=b.el=o(b.type,ce,$e&&$e.is,$e),ye&8?c(Te,b.children):ye&16&&W(b.children,Te,null,re,ee,Gu(b,ce),Ee,Ce),Be&&Ar(b,null,re,"created"),F(Te,b,b.scopeId,Ee,re),$e){for(const Ze in $e)Ze!=="value"&&!qo(Ze)&&l(Te,Ze,null,$e[Ze],ce,re);"value"in $e&&l(Te,"value",null,$e.value,ce),(oe=$e.onVnodeBeforeMount)&&Yn(oe,re,b)}Be&&Ar(b,null,re,"beforeMount");const He=Vx(ee,qe);He&&qe.beforeEnter(Te),a(Te,T,P),((oe=$e&&$e.onVnodeMounted)||He||Be)&&an(()=>{oe&&Yn(oe,re,b),He&&qe.enter(Te),Be&&Ar(b,null,re,"mounted")},ee)},F=(b,T,P,re,ee)=>{if(P&&p(b,P),re)for(let ce=0;ce{for(let oe=Te;oe{const Ce=T.el=b.el;let{patchFlag:Te,dynamicChildren:oe,dirs:$e}=T;Te|=b.patchFlag&16;const ye=b.props||bt,qe=T.props||bt;let Be;if(P&&Tr(P,!1),(Be=qe.onVnodeBeforeUpdate)&&Yn(Be,P,T,b),$e&&Ar(T,b,P,"beforeUpdate"),P&&Tr(P,!0),(ye.innerHTML&&qe.innerHTML==null||ye.textContent&&qe.textContent==null)&&c(Ce,""),oe?I(b.dynamicChildren,oe,Ce,P,re,Gu(T,ee),ce):Ee||ue(b,T,Ce,null,P,re,Gu(T,ee),ce,!1),Te>0){if(Te&16)z(Ce,ye,qe,P,ee);else if(Te&2&&ye.class!==qe.class&&l(Ce,"class",null,qe.class,ee),Te&4&&l(Ce,"style",ye.style,qe.style,ee),Te&8){const He=T.dynamicProps;for(let Ze=0;Ze{Be&&Yn(Be,P,T,b),$e&&Ar(T,b,P,"updated")},re)},I=(b,T,P,re,ee,ce,Ee)=>{for(let Ce=0;Ce{if(T!==P){if(T!==bt)for(const ce in T)!qo(ce)&&!(ce in P)&&l(b,ce,T[ce],null,ee,re);for(const ce in P){if(qo(ce))continue;const Ee=P[ce],Ce=T[ce];Ee!==Ce&&ce!=="value"&&l(b,ce,Ce,Ee,ee,re)}"value"in P&&l(b,"value",T.value,P.value,ee)}},O=(b,T,P,re,ee,ce,Ee,Ce,Te)=>{const oe=T.el=b?b.el:i(""),$e=T.anchor=b?b.anchor:i("");let{patchFlag:ye,dynamicChildren:qe,slotScopeIds:Be}=T;Be&&(Ce=Ce?Ce.concat(Be):Be),b==null?(a(oe,P,re),a($e,P,re),W(T.children||[],P,$e,ee,ce,Ee,Ce,Te)):ye>0&&ye&64&&qe&&b.dynamicChildren&&b.dynamicChildren.length===qe.length?(I(b.dynamicChildren,qe,P,ee,ce,Ee,Ce),(T.key!=null||ee&&T===ee.subTree)&&ef(b,T,!0)):ue(b,T,P,$e,ee,ce,Ee,Ce,Te)},B=(b,T,P,re,ee,ce,Ee,Ce,Te)=>{T.slotScopeIds=Ce,b==null?T.shapeFlag&512?ee.ctx.activate(T,P,re,Ee,Te):J(T,P,re,ee,ce,Ee,Te):K(b,T,Te)},J=(b,T,P,re,ee,ce,Ee)=>{const Ce=b.component=Gx(b,re,ee);if(Ay(b)&&(Ce.ctx.renderer=X),Yx(Ce,!1,Ee),Ce.asyncDep){if(ee&&ee.registerDep(Ce,H,Ee),!b.el){const Te=Ce.subTree=N(Bn);x(null,Te,T,P),b.placeholder=Te.el}}else H(Ce,b,T,P,ee,ce,Ee)},K=(b,T,P)=>{const re=T.component=b.component;if(Ox(b,T,P))if(re.asyncDep&&!re.asyncResolved){le(re,T,P);return}else re.next=T,re.update();else T.el=b.el,re.vnode=T},H=(b,T,P,re,ee,ce,Ee)=>{const Ce=()=>{if(b.isMounted){let{next:ye,bu:qe,u:Be,parent:He,vnode:Ze}=b;{const Tt=Xy(b);if(Tt){ye&&(ye.el=Ze.el,le(b,ye,Ee)),Tt.asyncDep.then(()=>{an(()=>{b.isUnmounted||oe()},ee)});return}}let Xe=ye,ot;Tr(b,!1),ye?(ye.el=Ze.el,le(b,ye,Ee)):ye=Ze,qe&&ai(qe),(ot=ye.props&&ye.props.onVnodeBeforeUpdate)&&Yn(ot,He,ye,Ze),Tr(b,!0);const at=Kp(b),Et=b.subTree;b.subTree=at,k(Et,at,f(Et.el),Y(Et),b,ee,ce),ye.el=at.el,Xe===null&&Mx(b,at.el),Be&&an(Be,ee),(ot=ye.props&&ye.props.onVnodeUpdated)&&an(()=>Yn(ot,He,ye,Ze),ee)}else{let ye;const{el:qe,props:Be}=T,{bm:He,m:Ze,parent:Xe,root:ot,type:at}=b,Et=Ml(T);Tr(b,!1),He&&ai(He),!Et&&(ye=Be&&Be.onVnodeBeforeMount)&&Yn(ye,Xe,T),Tr(b,!0);{ot.ce&&ot.ce._hasShadowRoot()&&ot.ce._injectChildStyle(at,b.parent?b.parent.type:void 0);const Tt=b.subTree=Kp(b);k(null,Tt,P,re,b,ee,ce),T.el=Tt.el}if(Ze&&an(Ze,ee),!Et&&(ye=Be&&Be.onVnodeMounted)){const Tt=T;an(()=>Yn(ye,Xe,Tt),ee)}(T.shapeFlag&256||Xe&&Ml(Xe.vnode)&&Xe.vnode.shapeFlag&256)&&b.a&&an(b.a,ee),b.isMounted=!0,T=P=re=null}};b.scope.on();const Te=b.effect=new Zh(Ce);b.scope.off();const oe=b.update=Te.run.bind(Te),$e=b.job=Te.runIfDirty.bind(Te);$e.i=b,$e.id=b.uid,Te.scheduler=()=>Jd($e),Tr(b,!0),oe()},le=(b,T,P)=>{T.component=b;const re=b.vnode.props;b.vnode=T,b.next=null,Ix(b,T.props,re,P),Nx(b,T.children,P),Da(),Lp(b),Oa()},ue=(b,T,P,re,ee,ce,Ee,Ce,Te=!1)=>{const oe=b&&b.children,$e=b?b.shapeFlag:0,ye=T.children,{patchFlag:qe,shapeFlag:Be}=T;if(qe>0){if(qe&128){Oe(oe,ye,P,re,ee,ce,Ee,Ce,Te);return}else if(qe&256){we(oe,ye,P,re,ee,ce,Ee,Ce,Te);return}}Be&8?($e&16&&me(oe,ee,ce),ye!==oe&&c(P,ye)):$e&16?Be&16?Oe(oe,ye,P,re,ee,ce,Ee,Ce,Te):me(oe,ee,ce,!0):($e&8&&c(P,""),Be&16&&W(ye,P,re,ee,ce,Ee,Ce,Te))},we=(b,T,P,re,ee,ce,Ee,Ce,Te)=>{b=b||Tl,T=T||Tl;const oe=b.length,$e=T.length,ye=Math.min(oe,$e);let qe;for(qe=0;qe$e?me(b,ee,ce,!0,!1,ye):W(T,P,re,ee,ce,Ee,Ce,Te,ye)},Oe=(b,T,P,re,ee,ce,Ee,Ce,Te)=>{let oe=0;const $e=T.length;let ye=b.length-1,qe=$e-1;for(;oe<=ye&&oe<=qe;){const Be=b[oe],He=T[oe]=Te?_a(T[oe]):ta(T[oe]);if(_l(Be,He))k(Be,He,P,null,ee,ce,Ee,Ce,Te);else break;oe++}for(;oe<=ye&&oe<=qe;){const Be=b[ye],He=T[qe]=Te?_a(T[qe]):ta(T[qe]);if(_l(Be,He))k(Be,He,P,null,ee,ce,Ee,Ce,Te);else break;ye--,qe--}if(oe>ye){if(oe<=qe){const Be=qe+1,He=Be<$e?T[Be].el:re;for(;oe<=qe;)k(null,T[oe]=Te?_a(T[oe]):ta(T[oe]),P,He,ee,ce,Ee,Ce,Te),oe++}}else if(oe>qe)for(;oe<=ye;)ie(b[oe],ee,ce,!0),oe++;else{const Be=oe,He=oe,Ze=new Map;for(oe=He;oe<=qe;oe++){const de=T[oe]=Te?_a(T[oe]):ta(T[oe]);de.key!=null&&Ze.set(de.key,oe)}let Xe,ot=0;const at=qe-He+1;let Et=!1,Tt=0;const qt=new Array(at);for(oe=0;oe=at){ie(de,ee,ce,!0);continue}let be;if(de.key!=null)be=Ze.get(de.key);else for(Xe=He;Xe<=qe;Xe++)if(qt[Xe-He]===0&&_l(de,T[Xe])){be=Xe;break}be===void 0?ie(de,ee,ce,!0):(qt[be-He]=oe+1,be>=Tt?Tt=be:Et=!0,k(de,T[be],P,null,ee,ce,Ee,Ce,Te),ot++)}const Fe=Et?zx(qt):Tl;for(Xe=Fe.length-1,oe=at-1;oe>=0;oe--){const de=He+oe,be=T[de],je=T[de+1],rt=de+1<$e?je.el||Qy(je):re;qt[oe]===0?k(null,be,P,rt,ee,ce,Ee,Ce,Te):Et&&(Xe<0||oe!==Fe[Xe]?Ae(be,P,rt,2):Xe--)}}},Ae=(b,T,P,re,ee=null)=>{const{el:ce,type:Ee,transition:Ce,children:Te,shapeFlag:oe}=b;if(oe&6){Ae(b.component.subTree,T,P,re);return}if(oe&128){b.suspense.move(T,P,re);return}if(oe&64){Ee.move(b,T,P,X);return}if(Ee===pe){a(ce,T,P);for(let ye=0;yeCe.enter(ce),ee));else{const{leave:ye,delayLeave:qe,afterLeave:Be}=Ce,He=()=>{b.ctx.isUnmounted?r(ce):a(ce,T,P)},Ze=()=>{const Xe=ce._isLeaving||!!ce[Qn];ce._isLeaving&&ce[Qn](!0),Ce.persisted&&!Xe?He():ye(ce,()=>{He(),Be&&Be()})};qe?qe(ce,He,Ze):Ze()}else a(ce,T,P)},ie=(b,T,P,re=!1,ee=!1)=>{const{type:ce,props:Ee,ref:Ce,children:Te,dynamicChildren:oe,shapeFlag:$e,patchFlag:ye,dirs:qe,cacheIndex:Be,memo:He}=b;if(ye===-2&&(ee=!1),Ce!=null&&(Da(),Fo(Ce,null,P,b,!0),Oa()),Be!=null&&(T.renderCache[Be]=void 0),$e&256){T.ctx.deactivate(b);return}const Ze=$e&1&&qe,Xe=!Ml(b);let ot;if(Xe&&(ot=Ee&&Ee.onVnodeBeforeUnmount)&&Yn(ot,T,b),$e&6)ke(b.component,P,re);else{if($e&128){b.suspense.unmount(P,re);return}Ze&&Ar(b,null,T,"beforeUnmount"),$e&64?b.type.remove(b,T,P,X,re):oe&&!oe.hasOnce&&(ce!==pe||ye>0&&ye&64)?me(oe,T,P,!1,!0):(ce===pe&&ye&384||!ee&&$e&16)&&me(Te,T,P),re&&xe(b)}const at=He!=null&&Be==null;(Xe&&(ot=Ee&&Ee.onVnodeUnmounted)||Ze||at)&&an(()=>{ot&&Yn(ot,T,b),Ze&&Ar(b,null,T,"unmounted"),at&&(b.el=null)},P)},xe=b=>{const{type:T,el:P,anchor:re,transition:ee}=b;if(T===pe){U(P,re);return}if(T===Yu){D(b);return}const ce=()=>{r(P),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(b.shapeFlag&1&&ee&&!ee.persisted){const{leave:Ee,delayLeave:Ce}=ee,Te=()=>Ee(P,ce);Ce?Ce(b.el,ce,Te):Te()}else ce()},U=(b,T)=>{let P;for(;b!==T;)P=v(b),r(b),b=P;r(T)},ke=(b,T,P)=>{const{bum:re,scope:ee,job:ce,subTree:Ee,um:Ce,m:Te,a:oe}=b;Yp(Te),Yp(oe),re&&ai(re),ee.stop(),ce&&(ce.flags|=8,ie(Ee,b,T,P)),Ce&&an(Ce,T),an(()=>{b.isUnmounted=!0},T)},me=(b,T,P,re=!1,ee=!1,ce=0)=>{for(let Ee=ce;Ee{if(b.shapeFlag&6)return Y(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const T=v(b.anchor||b.el),P=T&&T[$y];return P?v(P):T};let fe=!1;const G=(b,T,P)=>{let re;b==null?T._vnode&&(ie(T._vnode,null,null,!0),re=T._vnode.component):k(T._vnode||null,b,T,null,null,null,P),T._vnode=b,fe||(fe=!0,Lp(re),by(),fe=!1)},X={p:k,um:ie,m:Ae,r:xe,mt:J,mc:W,pc:ue,pbc:I,n:Y,o:e};return{render:G,hydrate:void 0,createApp:Cx(G)}}function Gu({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 Tr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ef(e,t,n=!1){const a=e.children,r=t.children;if(We(a)&&We(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 Xy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xy(t)}function Yp(e){if(e)for(let t=0;te.__isSuspense;function jx(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):Q_(e)}const pe=Symbol.for("v-fgt"),ou=Symbol.for("v-txt"),Bn=Symbol.for("v-cmt"),Yu=Symbol.for("v-stc"),zo=[];let yn=null;function m(e=!1){zo.push(yn=e?null:[])}function Ux(){zo.pop(),yn=zo[zo.length-1]||null}let Qo=1;function bi(e,t=!1){Qo+=e,e<0&&yn&&t&&(yn.hasOnce=!0)}function tg(e){return e.dynamicChildren=Qo>0?yn||Tl:null,Ux(),Qo>0&&yn&&yn.push(e),e}function y(e,t,n,a,r,l){return tg(w(e,t,n,a,r,l,!0))}function j(e,t,n,a,r){return tg(N(e,t,n,a,r,!0))}function es(e){return e?e.__v_isVNode===!0:!1}function _l(e,t){return e.type===t.type&&e.key===t.key}const ng=({key:e})=>e??null,ri=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?kt(e)||Ct(e)||et(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);function w(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&&ng(t),ref:t&&ri(t),scopeId:xy,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:Kt};return i?(tf(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=kt(n)?8:16),Qo>0&&!o&&yn&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&yn.push(u),u}const N=Hx;function Hx(e,t=null,n=null,a=0,r=null,l=!1){if((!e||e===Iy)&&(e=Bn),es(e)){const i=sr(e,t,!0);return n&&tf(i,n),Qo>0&&!l&&yn&&(i.shapeFlag&6?yn[yn.indexOf(e)]=i:yn.push(i)),i.patchFlag=-2,i}if(ek(e)&&(e=e.__vccOpts),t){t=lt(t);let{class:i,style:u}=t;i&&!kt(i)&&(t.class=ve(i)),pt(u)&&(tu(u)&&!We(u)&&(u=It({},u)),t.style=bn(u))}const o=kt(e)?1:eg(e)?128:ax(e)?64:pt(e)?4:et(e)?2:0;return w(e,t,n,a,r,o,l,!0)}function lt(e){return e?tu(e)||Ky(e)?It({},e):e:null}function sr(e,t,n=!1,a=!1){const{props:r,ref:l,patchFlag:o,children:i,transition:u}=e,d=t?ze(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ng(d),ref:t&&t.ref?n&&l?We(l)?l.concat(ri(t)):[l,ri(t)]:ri(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&&sr(e.ssContent),ssFallback:e.ssFallback&&sr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Xo(c,u.clone(c)),c}function _e(e=" ",t=0){return N(ou,null,e,t)}function Q(e="",t=!1){return t?(m(),j(Bn,null,e)):N(Bn,null,e)}function ta(e){return e==null||typeof e=="boolean"?N(Bn):We(e)?N(pe,null,e.slice()):es(e)?_a(e):N(ou,null,String(e))}function _a(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sr(e)}function tf(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(We(t))n=16;else if(typeof t=="object")if(a&65){const r=t.default;r&&(r._c&&(r._d=!1),tf(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ky(t)?t._ctx=Kt:r===3&&Kt&&(Kt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),a&64?(n=16,t=[_e(t)]):n=8);e.children=t,e.shapeFlag|=n}function ze(...e){const t={};for(let n=0;nXt||Kt;let _i,rd;{const e=Ji(),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)}};_i=t("__VUE_INSTANCE_SETTERS__",n=>Xt=n),rd=t("__VUE_SSR_SETTERS__",n=>ts=n)}const hs=e=>{const t=Xt;return _i(e),e.scope.on(),()=>{e.scope.off(),_i(t)}},Jp=()=>{Xt&&Xt.scope.off(),_i(null)};function ag(e){return e.vnode.shapeFlag&4}let ts=!1;function Yx(e,t=!1,n=!1){t&&rd(t);const{props:a,children:r}=e.vnode,l=ag(e);Px(e,a,l,t),Lx(e,r,n||t);const o=l?Jx(e,t):void 0;return t&&rd(!1),o}function Jx(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gx);const{setup:a}=n;if(a){Da();const r=e.setupContext=a.length>1?Xx(e):null,l=hs(e),o=vs(a,e,0,[e.props,r]),i=Vh(o);if(Oa(),l(),(i||e.sp)&&!Ml(e)&&Ey(e),i){if(o.then(Jp,Jp),t)return o.then(u=>{Zp(e,u)}).catch(u=>{nu(u,e,0)});e.asyncDep=o}else Zp(e,o)}else rg(e)}function Zp(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pt(t)&&(e.setupState=vy(t)),rg(e)}function rg(e,t,n){const a=e.type;e.render||(e.render=a.render||oa);{const r=hs(e);Da();try{bx(e)}finally{Oa(),r()}}}const Zx={get(e,t){return Zt(e,"get",""),e[t]}};function Xx(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zx),slots:e.slots,emit:e.emit,expose:t}}function su(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vy(pi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vo)return Vo[n](e)},has(t,n){return n in t||n in Vo}})):e.proxy}function Qx(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function ek(e){return et(e)&&"__vccOpts"in e}const _=(e,t)=>G_(e,t,ts);function Dn(e,t,n){try{bi(-1);const a=arguments.length;return a===2?pt(t)&&!We(t)?es(t)?N(e,null,[t]):N(e,t):N(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&es(n)&&(n=[n]),N(e,t,n))}finally{bi(1)}}const tk="3.5.35";let ld;const Xp=typeof window<"u"&&window.trustedTypes;if(Xp)try{ld=Xp.createPolicy("vue",{createHTML:e=>e})}catch{}const lg=ld?e=>ld.createHTML(e):e=>e,nk="http://www.w3.org/2000/svg",ak="http://www.w3.org/1998/Math/MathML",ga=typeof document<"u"?document:null,Qp=ga&&ga.createElement("template"),rk={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"?ga.createElementNS(nk,e):t==="mathml"?ga.createElementNS(ak,e):n?ga.createElement(e,{is:n}):ga.createElement(e);return e==="select"&&a&&a.multiple!=null&&r.setAttribute("multiple",a.multiple),r},createText:e=>ga.createTextNode(e),createComment:e=>ga.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ga.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{Qp.innerHTML=lg(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const i=Qp.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]}},Ua="transition",yo="animation",zl=Symbol("_vtc"),og={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},lk=It({},ux,og),Dr=(e,t=[])=>{We(e)?e.forEach(n=>n(...t)):e&&e(...t)},em=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function ok(e){const t={};for(const O in e)O in og||(t[O]=e[O]);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:v=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=sk(r),k=h&&h[0],S=h&&h[1],{onBeforeEnter:x,onEnter:E,onEnterCancelled:L,onLeave:D,onLeaveCancelled:A,onBeforeAppear:R=x,onAppear:F=E,onAppearCancelled:W=L}=t,C=(O,B,J,K)=>{O._enterCancelled=K,Ja(O,B?c:i),Ja(O,B?d:o),J&&J()},I=(O,B)=>{O._isLeaving=!1,Ja(O,f),Ja(O,p),Ja(O,v),B&&B()},z=O=>(B,J)=>{const K=O?F:E,H=()=>C(B,O,J);Dr(K,[B,H]),tm(()=>{Ja(B,O?u:l),Zn(B,O?c:i),em(K)||nm(B,a,k,H)})};return It(t,{onBeforeEnter(O){Dr(x,[O]),Zn(O,l),Zn(O,o)},onBeforeAppear(O){Dr(R,[O]),Zn(O,u),Zn(O,d)},onEnter:z(!1),onAppear:z(!0),onLeave(O,B){O._isLeaving=!0;const J=()=>I(O,B);Zn(O,f),O._enterCancelled?(Zn(O,v),od(O)):(od(O),Zn(O,v)),tm(()=>{O._isLeaving&&(Ja(O,f),Zn(O,p),em(D)||nm(O,a,S,J))}),Dr(D,[O,J])},onEnterCancelled(O){C(O,!1,void 0,!0),Dr(L,[O])},onAppearCancelled(O){C(O,!0,void 0,!0),Dr(W,[O])},onLeaveCancelled(O){I(O),Dr(A,[O])}})}function sk(e){if(e==null)return null;if(pt(e))return[Ju(e.enter),Ju(e.leave)];{const t=Ju(e);return[t,t]}}function Ju(e){return p_(e)}function Zn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[zl]||(e[zl]=new Set)).add(t)}function Ja(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[zl];n&&(n.delete(t),n.size||(e[zl]=void 0))}function tm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ik=0;function nm(e,t,n,a){const r=e._endId=++ik,l=()=>{r===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:o,timeout:i,propCount:u}=sg(e,t);if(!o)return a();const d=o+"end";let c=0;const f=()=>{e.removeEventListener(d,v),l()},v=p=>{p.target===e&&++c>=u&&f()};setTimeout(()=>{c(n[h]||"").split(", "),r=a(`${Ua}Delay`),l=a(`${Ua}Duration`),o=am(r,l),i=a(`${yo}Delay`),u=a(`${yo}Duration`),d=am(i,u);let c=null,f=0,v=0;t===Ua?o>0&&(c=Ua,f=o,v=l.length):t===yo?d>0&&(c=yo,f=d,v=u.length):(f=Math.max(o,d),c=f>0?o>d?Ua:yo:null,v=c?c===Ua?l.length:u.length:0);const p=c===Ua&&/\b(?:transform|all)(?:,|$)/.test(a(`${Ua}Property`).toString());return{type:c,timeout:f,propCount:v,hasTransform:p}}function am(e,t){for(;e.lengthrm(n)+rm(e[a])))}function rm(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function od(e){return(e?e.ownerDocument:document).body.offsetHeight}function uk(e,t,n){const a=e[zl];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xi=Symbol("_vod"),ig=Symbol("_vsh"),ki={name:"show",beforeMount(e,{value:t},{transition:n}){e[xi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):go(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),go(e,!0),a.enter(e)):a.leave(e,()=>{go(e,!1)}):go(e,t))},beforeUnmount(e,{value:t}){go(e,t)}};function go(e,t){e.style.display=t?e[xi]:"none",e[ig]=!t}const ck=Symbol(""),dk=/(?:^|;)\s*display\s*:/;function fk(e,t,n){const a=e.style,r=kt(n);let l=!1;if(n&&!r){if(t)if(kt(t))for(const o of t.split(";")){const i=o.slice(0,o.indexOf(":")).trim();n[i]==null&&Mo(a,i,"")}else for(const o in t)n[o]==null&&Mo(a,o,"");for(const o in n){o==="display"&&(l=!0);const i=n[o];i!=null?mk(e,o,!kt(t)&&t?t[o]:void 0,i)||Mo(a,o,i):Mo(a,o,"")}}else if(r){if(t!==n){const o=a[ck];o&&(n+=";"+o),a.cssText=n,l=dk.test(n)}}else t&&e.removeAttribute("style");xi in e&&(e[xi]=l?a.display:"",e[ig]&&(a.display="none"))}const lm=/\s*!important$/;function Mo(e,t,n){if(We(n))n.forEach(a=>Mo(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=pk(e,t);lm.test(n)?e.setProperty(br(a),n.replace(lm,""),"important"):e[a]=n}}const om=["Webkit","Moz","ms"],Zu={};function pk(e,t){const n=Zu[t];if(n)return n;let a=Wt(t);if(a!=="filter"&&a in e)return Zu[t]=a;a=Yi(a);for(let r=0;rXu||(gk.then(()=>Xu=0),Xu=Date.now());function _k(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;const r=n.value;if(We(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,xk=(e,t,n,a,r,l)=>{const o=r==="svg";t==="class"?uk(e,a,o):t==="style"?fk(e,n,a):Hi(t)?Ki(t)||hk(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kk(e,t,a,o))?(um(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&im(e,t,a,o,l,t!=="value")):e._isVueCE&&(wk(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!kt(a)))?um(e,Wt(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),im(e,t,a,o))};function kk(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&fm(t)&&et(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 fm(t)&&kt(n)?!1:t in e}function wk(e,t){const n=e._def.props;if(!n)return!1;const a=Wt(t);return Array.isArray(n)?n.some(r=>Wt(r)===a):Object.keys(n).some(r=>Wt(r)===a)}const ug=new WeakMap,cg=new WeakMap,wi=Symbol("_moveCb"),pm=Symbol("_enterCb"),$k=e=>(delete e.props.mode,e),Ck=$k({name:"TransitionGroup",props:It({},lk,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pa(),a=ix();let r,l;return Zd(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Dk(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(Ek),r.forEach(Ak);const i=r.filter(Tk);od(n.vnode.el),i.forEach(u=>{const d=u.el,c=d.style;Zn(d,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=d[wi]=v=>{v&&v.target!==d||(!v||v.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",f),d[wi]=null,Ja(d,o))};d.addEventListener("transitionend",f)}),r=[]}),()=>{const o=dt(e),i=ok(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}=sg(a);return l.removeChild(a),o}const mm=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?n=>ai(t,n):t};function Ok(e){e.target.composing=!0}function vm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qu=Symbol("_assign");function hm(e,t,n){return t&&(e=e.trim()),n&&(e=Ud(e)),e}const jl={created(e,{modifiers:{lazy:t,trim:n,number:a}},r){e[Qu]=mm(r);const l=a||r.props&&r.props.type==="number";xl(e,t?"change":"input",o=>{o.target.composing||e[Qu](hm(e.value,n,l))}),(n||l)&&xl(e,"change",()=>{e.value=hm(e.value,n,l)}),t||(xl(e,"compositionstart",Ok),xl(e,"compositionend",vm),xl(e,"change",vm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:r,number:l}},o){if(e[Qu]=mm(o),e.composing)return;const i=(l||e.type==="number")&&!/^0\d/.test(e.value)?Ud(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)}},Mk=["ctrl","shift","alt","meta"],Pk={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)=>Mk.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(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=br(r.key);if(t.some(o=>o===l||Ik[o]===l))return e(r)}))},Rk=It({patchProp:xk},rk);let ym;function qk(){return ym||(ym=Bx(Rk))}const Lk=((...e)=>{const t=qk().createApp(...e),{mount:n}=t;return t.mount=a=>{const r=Bk(a);if(!r)return;const l=t._component;!et(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Nk(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Nk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Bk(e){return kt(e)?document.querySelector(e):e}const kl=typeof document<"u";function fg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fg(e.default)}const mt=Object.assign;function ec(e,t){const n={};for(const a in t){const r=t[a];n[a]=Fn(r)?r.map(e):e(r)}return n}const jo=()=>{},Fn=Array.isArray;function gm(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const pg=Symbol("");function Ul(e,t){return mt(new Error,{type:e,[pg]:!0},t)}function ya(e,t){return e instanceof Error&&pg in e&&(t==null||!!(e.type&t))}const nf=Symbol(""),bm=Symbol(""),iu=Symbol(""),af=Symbol(""),sd=Symbol("");function _r(){return it(iu)}function Mn(e){return it(af)}const mg=/#/g,Vk=/&/g,zk=/\//g,jk=/=/g,Uk=/\?/g,vg=/\+/g,Hk=/%5B/g,Kk=/%5D/g,hg=/%5E/g,Wk=/%60/g,yg=/%7B/g,Gk=/%7C/g,gg=/%7D/g,Yk=/%20/g;function rf(e){return e==null?"":encodeURI(""+e).replace(Gk,"|").replace(Hk,"[").replace(Kk,"]")}function Jk(e){return rf(e).replace(yg,"{").replace(gg,"}").replace(hg,"^")}function id(e){return rf(e).replace(vg,"%2B").replace(Yk,"+").replace(mg,"%23").replace(Vk,"%26").replace(Wk,"`").replace(yg,"{").replace(gg,"}").replace(hg,"^")}function Zk(e){return id(e).replace(jk,"%3D")}function Xk(e){return rf(e).replace(mg,"%23").replace(Uk,"%3F")}function Qk(e){return Xk(e).replace(zk,"%2F")}function $i(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ew=/\/$/,tw=e=>e.replace(ew,"");function tc(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=lw(a??t,n),{fullPath:a+l+o,path:a,query:r,hash:$i(o)}}function nw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _m(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function aw(e,t,n){const a=t.matched.length-1,r=n.matched.length-1;return a>-1&&a===r&&Hl(t.matched[a],n.matched[r])&&bg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rw(e[n],t[n]))return!1;return!0}function rw(e,t){return Fn(e)?xm(e,t):Fn(t)?xm(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function xm(e,t){return Fn(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function lw(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 Ha={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function ow(e){if(!e)if(kl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),tw(e)}const sw=/^[^#]+#/;function iw(e,t){return e.replace(sw,"#")+t}function uw(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 uu=()=>({left:window.scrollX,top:window.scrollY});function cw(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=uw(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 km(e,t){return(history.state?history.state.position-t:-1)+e}const ud=new Map;function dw(e,t){ud.set(e,t)}function fw(e){const t=ud.get(e);return ud.delete(e),t}function pw(e){return typeof e=="string"||e&&typeof e=="object"}function _g(e){return typeof e=="string"||typeof e=="symbol"}function mw(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ar&&id(r)):[a&&id(a)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function vw(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=Fn(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return t}function bo(){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 xg(e,t,n){const a=e.value;if(!a)return;let r=a;const l=()=>{r[t].delete(n)};La(l),Dy(l),Ty(()=>{const o=e.value;o&&(r=o),r[t].add(n)}),r[t].add(n)}function kg(e){xg(it(nf,{}),"leaveGuards",e)}function hw(e){xg(it(nf,{}),"updateGuards",e)}function Qa(e,t,n,a,r,l=o=>o()){const o=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((i,u)=>{const d=v=>{v===!1?u(Ul(4,{from:n,to:t})):v instanceof Error?u(v):pw(v)?u(Ul(2,{from:t,to:v})):(o&&a.enterCallbacks[r]===o&&typeof v=="function"&&o.push(v),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(v=>u(v))})}function nc(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(fg(u)){const d=(u.__vccOpts||u)[t];d&&l.push(Qa(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=Fk(c)?c.default:c;o.mods[i]=c,o.components[i]=f;const v=(f.__vccOpts||f)[t];return v&&Qa(v,n,a,o,i,r)()}))}}return l}function yw(e,t){const n=[],a=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let o=0;oHl(d,i))?a.push(i):n.push(i));const u=e.matched[o];u&&(t.matched.find(d=>Hl(d,u))||r.push(u))}return[n,a,r]}let gw=()=>location.protocol+"//"+location.host;function wg(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),_m(i,"")}return _m(n,e)+a+r}function bw(e,t,n,a){let r=[],l=[],o=null;const i=({state:v})=>{const p=wg(e,location),h=n.value,k=t.value;let S=0;if(v){if(n.value=p,t.value=v,o&&o===h){o=null;return}S=k?v.position-k.position:0}else a(p);r.forEach(x=>{x(n.value,h,{delta:S,type:"pop",direction:S?S>0?"forward":"back":""})})};function u(){o=n.value}function d(v){r.push(v);const p=()=>{const h=r.indexOf(v);h>-1&&r.splice(h,1)};return l.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:v}=window;if(!v.state)return;v.replaceState(mt({},v.state,{scroll:uu()}),"")}}function f(){for(const v of l)v();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 $m(e,t,n,a=!1,r=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:r?uu():null}}function _w(e){const{history:t,location:n}=window,a={value:wg(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("#"),v=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:gw()+e+u;try{t[c?"replaceState":"pushState"](d,"",v),r.value=d}catch(p){console.error(p),n[c?"replace":"assign"](v)}}function o(u,d){l(u,mt({},t.state,$m(r.value.back,u,r.value.forward,!0),d,{position:r.value.position}),!0),a.value=u}function i(u,d){const c=mt({},r.value,t.state,{forward:u,scroll:uu()});l(c.current,c,!0),l(u,mt({},$m(a.value,u,null),{position:c.position+1},d),!1),a.value=u}return{location:a,state:r,push:i,replace:o}}function xw(e){e=ow(e);const t=_w(e),n=bw(e,t.state,t.location,t.replace);function a(l,o=!0){o||n.pauseListeners(),history.go(l)}const r=mt({location:"",base:e,go:a,createHref:iw.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 kw={type:0,value:""},ww=/[a-zA-Z0-9_]/;function $w(e){if(!e)return[[]];if(e==="/")return[[kw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${d}": ${p}`)}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 v(){d+=u}for(;it.length?t.length===1&&t[0]===80?1:-1:0}function $g(e,t){let n=0;const a=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Tw={strict:!1,end:!0,sensitive:!1};function Dw(e,t,n){const a=Ew($w(e.path),n),r=mt(a,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ow(e,t){const n=[],a=new Map;t=gm(Tw,t);function r(f){return a.get(f)}function l(f,v,p){const h=!p,k=Am(f);k.aliasOf=p&&p.record;const S=gm(t,f),x=[k];if("alias"in f){const D=typeof f.alias=="string"?[f.alias]:f.alias;for(const A of D)x.push(Am(mt({},k,{components:p?p.record.components:k.components,path:A,aliasOf:p?p.record:k})))}let E,L;for(const D of x){const{path:A}=D;if(v&&A[0]!=="/"){const R=v.record.path,F=R[R.length-1]==="/"?"":"/";D.path=v.record.path+(A&&F+A)}if(E=Dw(D,v,S),p?p.alias.push(E):(L=L||E,L!==E&&L.alias.push(E),h&&f.name&&!Tm(E)&&o(f.name)),Cg(E)&&u(E),k.children){const R=k.children;for(let F=0;F{o(L)}:jo}function o(f){if(_g(f)){const v=a.get(f);v&&(a.delete(f),n.splice(n.indexOf(v),1),v.children.forEach(o),v.alias.forEach(o))}else{const v=n.indexOf(f);v>-1&&(n.splice(v,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 v=Iw(f,n);n.splice(v,0,f),f.record.name&&!Tm(f)&&a.set(f.record.name,f)}function d(f,v){let p,h={},k,S;if("name"in f&&f.name){if(p=a.get(f.name),!p)throw Ul(1,{location:f});S=p.record.name,h=mt(Em(v.params,p.keys.filter(L=>!L.optional).concat(p.parent?p.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),f.params&&Em(f.params,p.keys.map(L=>L.name))),k=p.stringify(h)}else if(f.path!=null)k=f.path,p=n.find(L=>L.re.test(k)),p&&(h=p.parse(k),S=p.record.name,p.keys.forEach(L=>{L.optional&&!h[L.name]&&delete h[L.name]}));else{if(p=v.name?a.get(v.name):n.find(L=>L.re.test(v.path)),!p)throw Ul(1,{location:f,currentLocation:v});S=p.record.name,h=mt({},v.params,f.params),k=p.stringify(h)}const x=[];let E=p;for(;E;)x.unshift(E.record),E=E.parent;return{name:S,path:k,params:h,matched:x,meta:Pw(x)}}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 Em(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function Am(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Mw(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 Mw(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 Tm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pw(e){return e.reduce((t,n)=>mt(t,n.meta),{})}function Iw(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;$g(e,t[l])<0?a=l:n=l+1}const r=Rw(e);return r&&(a=t.lastIndexOf(r,a-1)),a}function Rw(e){let t=e;for(;t=t.parent;)if(Cg(t)&&$g(e,t)===0)return t}function Cg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Dm(e){const t=it(iu),n=it(af),a=_(()=>{const u=s(e.to);return t.resolve(u)}),r=_(()=>{const{matched:u}=a.value,{length:d}=u,c=u[d-1],f=n.matched;if(!c||!f.length)return-1;const v=f.findIndex(Hl.bind(null,c));if(v>-1)return v;const p=Om(u[d-2]);return d>1&&Om(c)===p&&f[f.length-1].path!==p?f.findIndex(Hl.bind(null,u[d-2])):v}),l=_(()=>r.value>-1&&Nw(n.params,a.value.params)),o=_(()=>r.value>-1&&r.value===n.matched.length-1&&bg(n.params,a.value.params));function i(u={}){if(Lw(u)){const d=t[s(e.replace)?"replace":"push"](s(e.to)).catch(jo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:a,href:_(()=>a.value.href),isActive:l,isExactActive:o,navigate:i}}function qw(e){return e.length===1?e[0]:e}const Vn=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:Dm,setup(e,{slots:t}){const n=Ln(Dm(e)),{options:a}=it(iu),r=_(()=>({[Mm(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[Mm(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&qw(t.default(n));return e.custom?l:Dn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}});function Lw(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 Nw(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(!Fn(r)||r.length!==a.length||a.some((l,o)=>l.valueOf()!==r[o].valueOf()))return!1}return!0}function Om(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Mm=(e,t,n)=>e??t??n,Bw=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(sd),r=_(()=>e.route||a.value),l=it(bm,0),o=_(()=>{let d=s(l);const{matched:c}=r.value;let f;for(;(f=c[d])&&!f.components;)d++;return d}),i=_(()=>r.value.matched[o.value]);ht(bm,_(()=>o.value+1)),ht(nf,i),ht(sd,r);const u=M();return Ve(()=>[u.value,i.value,e.name],([d,c,f],[v,p,h])=>{c&&(c.instances[f]=d,p&&p!==c&&d&&d===v&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),d&&c&&(!p||!Hl(c,p)||!v)&&(c.enterCallbacks[f]||[]).forEach(k=>k(d))},{flush:"post"}),()=>{const d=r.value,c=e.name,f=i.value,v=f&&f.components[c];if(!v)return Pm(n.default,{Component:v,route:d});const p=f.props[c],h=p?p===!0?d.params:typeof p=="function"?p(d):p:null,S=Dn(v,mt({},h,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:u}));return Pm(n.default,{Component:S,route:d})||S}}});function Pm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const cd=Bw;function Fw(e){const t=Ow(e.routes,e),n=e.parseQuery||mw,a=e.stringifyQuery||wm,r=e.history,l=bo(),o=bo(),i=bo(),u=Jl(Ha);let d=Ha;kl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=ec.bind(null,Y=>""+Y),f=ec.bind(null,Qk),v=ec.bind(null,$i);function p(Y,fe){let G,X;return _g(Y)?(G=t.getRecordMatcher(Y),X=fe):X=Y,t.addRoute(X,G)}function h(Y){const fe=t.getRecordMatcher(Y);fe&&t.removeRoute(fe)}function k(){return t.getRoutes().map(Y=>Y.record)}function S(Y){return!!t.getRecordMatcher(Y)}function x(Y,fe){if(fe=mt({},fe||u.value),typeof Y=="string"){const P=tc(n,Y,fe.path),re=t.resolve({path:P.path},fe),ee=r.createHref(P.fullPath);return mt(P,re,{params:v(re.params),redirectedFrom:void 0,href:ee})}let G;if(Y.path!=null)G=mt({},Y,{path:tc(n,Y.path,fe.path).path});else{const P=mt({},Y.params);for(const re in P)P[re]==null&&delete P[re];G=mt({},Y,{params:f(P)}),fe.params=f(fe.params)}const X=t.resolve(G,fe),te=Y.hash||"";X.params=c(v(X.params));const b=nw(a,mt({},Y,{hash:Jk(te),path:X.path})),T=r.createHref(b);return mt({fullPath:b,hash:te,query:a===wm?vw(Y.query):Y.query||{}},X,{redirectedFrom:void 0,href:T})}function E(Y){return typeof Y=="string"?tc(n,Y,u.value.path):mt({},Y)}function L(Y,fe){if(d!==Y)return Ul(8,{from:fe,to:Y})}function D(Y){return F(Y)}function A(Y){return D(mt(E(Y),{replace:!0}))}function R(Y,fe){const G=Y.matched[Y.matched.length-1];if(G&&G.redirect){const{redirect:X}=G;let te=typeof X=="function"?X(Y,fe):X;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=E(te):{path:te},te.params={}),mt({query:Y.query,hash:Y.hash,params:te.path!=null?{}:Y.params},te)}}function F(Y,fe){const G=d=x(Y),X=u.value,te=Y.state,b=Y.force,T=Y.replace===!0,P=R(G,X);if(P)return F(mt(E(P),{state:typeof P=="object"?mt({},te,P.state):te,force:b,replace:T}),fe||G);const re=G;re.redirectedFrom=fe;let ee;return!b&&aw(a,X,G)&&(ee=Ul(16,{to:re,from:X}),Ae(X,X,!0,!1)),(ee?Promise.resolve(ee):I(re,X)).catch(ce=>ya(ce)?ya(ce,2)?ce:Oe(ce):ue(ce,re,X)).then(ce=>{if(ce){if(ya(ce,2))return F(mt({replace:T},E(ce.to),{state:typeof ce.to=="object"?mt({},te,ce.to.state):te,force:b}),fe||re)}else ce=O(re,X,!0,T,te);return z(re,X,ce),ce})}function W(Y,fe){const G=L(Y,fe);return G?Promise.reject(G):Promise.resolve()}function C(Y){const fe=U.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(Y):Y()}function I(Y,fe){let G;const[X,te,b]=yw(Y,fe);G=nc(X.reverse(),"beforeRouteLeave",Y,fe);for(const P of X)P.leaveGuards.forEach(re=>{G.push(Qa(re,Y,fe))});const T=W.bind(null,Y,fe);return G.push(T),me(G).then(()=>{G=[];for(const P of l.list())G.push(Qa(P,Y,fe));return G.push(T),me(G)}).then(()=>{G=nc(te,"beforeRouteUpdate",Y,fe);for(const P of te)P.updateGuards.forEach(re=>{G.push(Qa(re,Y,fe))});return G.push(T),me(G)}).then(()=>{G=[];for(const P of b)if(P.beforeEnter)if(Fn(P.beforeEnter))for(const re of P.beforeEnter)G.push(Qa(re,Y,fe));else G.push(Qa(P.beforeEnter,Y,fe));return G.push(T),me(G)}).then(()=>(Y.matched.forEach(P=>P.enterCallbacks={}),G=nc(b,"beforeRouteEnter",Y,fe,C),G.push(T),me(G))).then(()=>{G=[];for(const P of o.list())G.push(Qa(P,Y,fe));return G.push(T),me(G)}).catch(P=>ya(P,8)?P:Promise.reject(P))}function z(Y,fe,G){i.list().forEach(X=>C(()=>X(Y,fe,G)))}function O(Y,fe,G,X,te){const b=L(Y,fe);if(b)return b;const T=fe===Ha,P=kl?history.state:{};G&&(X||T?r.replace(Y.fullPath,mt({scroll:T&&P&&P.scroll},te)):r.push(Y.fullPath,te)),u.value=Y,Ae(Y,fe,G,T),Oe()}let B;function J(){B||(B=r.listen((Y,fe,G)=>{if(!ke.listening)return;const X=x(Y),te=R(X,ke.currentRoute.value);if(te){F(mt(te,{replace:!0,force:!0}),X).catch(jo);return}d=X;const b=u.value;kl&&dw(km(b.fullPath,G.delta),uu()),I(X,b).catch(T=>ya(T,12)?T:ya(T,2)?(F(mt(E(T.to),{force:!0}),X).then(P=>{ya(P,20)&&!G.delta&&G.type==="pop"&&r.go(-1,!1)}).catch(jo),Promise.reject()):(G.delta&&r.go(-G.delta,!1),ue(T,X,b))).then(T=>{T=T||O(X,b,!1),T&&(G.delta&&!ya(T,8)?r.go(-G.delta,!1):G.type==="pop"&&ya(T,20)&&r.go(-1,!1)),z(X,b,T)}).catch(jo)}))}let K=bo(),H=bo(),le;function ue(Y,fe,G){Oe(Y);const X=H.list();return X.length?X.forEach(te=>te(Y,fe,G)):console.error(Y),Promise.reject(Y)}function we(){return le&&u.value!==Ha?Promise.resolve():new Promise((Y,fe)=>{K.add([Y,fe])})}function Oe(Y){return le||(le=!Y,J(),K.list().forEach(([fe,G])=>Y?G(Y):fe()),K.reset()),Y}function Ae(Y,fe,G,X){const{scrollBehavior:te}=e;if(!kl||!te)return Promise.resolve();const b=!G&&fw(km(Y.fullPath,0))||(X||!G)&&history.state&&history.state.scroll||null;return Je().then(()=>te(Y,fe,b)).then(T=>T&&cw(T)).catch(T=>ue(T,Y,fe))}const ie=Y=>r.go(Y);let xe;const U=new Set,ke={currentRoute:u,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:k,resolve:x,options:e,push:D,replace:A,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:l.add,beforeResolve:o.add,afterEach:i.add,onError:H.add,isReady:we,install(Y){Y.component("RouterLink",Vn),Y.component("RouterView",cd),Y.config.globalProperties.$router=ke,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>s(u)}),kl&&!xe&&u.value===Ha&&(xe=!0,D(r.location).catch(X=>{}));const fe={};for(const X in Ha)Object.defineProperty(fe,X,{get:()=>u.value[X],enumerable:!0});Y.provide(iu,ke),Y.provide(af,py(fe)),Y.provide(sd,u);const G=Y.unmount;U.add(Y),Y.unmount=function(){U.delete(Y),U.size<1&&(d=Ha,B&&B(),B=null,u.value=Ha,xe=!1,le=!1),G()}}};function me(Y){return Y.reduce((fe,G)=>fe.then(()=>C(G)),Promise.resolve())}return ke}const Vw=/^[A-Za-z0-9_-]+$/;function cu(e){const t=e.split(".");if(t.length!==3||!t.every(l=>Vw.test(l)))return null;const[n,a,r]=t;return{vendor:n,plugin:a,controller:r}}function zn(e){const t=cu(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function ys(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function Zl(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return cu(n)?n:null}function Im(e){const t=cu(e);return t?`${t.vendor}.${t.plugin}`:null}const zw=/\{[^{}]+\}/g,jw=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function Uw(){return Math.random().toString(36).slice(2,11)}function Hw(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=jw()?u:void 0,t=Lm(t);const c=[];async function f(v,p){const{baseUrl:h,fetch:k=a,Request:S=n,headers:x,params:E={},parseAs:L="json",querySerializer:D,bodySerializer:A=l??Ww,pathSerializer:R,body:F,middleware:W=[],...C}=p||{};let I=t;h&&(I=Lm(h)??t);let z=typeof r=="function"?r:Rm(r);D&&(z=typeof D=="function"?D:Rm({...typeof r=="object"?r:{},...D}));const O=R||o||Kw,B=F===void 0?void 0:A(F,qm(i,x,E.header)),J=qm(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},i,x,E.header),K=[...c,...W],H={redirect:"follow",...d,...C,body:B,headers:J};let le,ue,we=new S(Gw(v,{baseUrl:I,params:E,querySerializer:z,pathSerializer:O}),H),Oe;for(const xe in C)xe in we||(we[xe]=C[xe]);if(K.length){le=Uw(),ue=Object.freeze({baseUrl:I,fetch:k,parseAs:L,querySerializer:z,bodySerializer:A,pathSerializer:O});for(const xe of K)if(xe&&typeof xe=="object"&&typeof xe.onRequest=="function"){const U=await xe.onRequest({request:we,schemaPath:v,params:E,options:ue,id:le});if(U)if(U instanceof S)we=U;else if(U instanceof Response){Oe=U;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Oe){try{Oe=await k(we,u)}catch(xe){let U=xe;if(K.length)for(let ke=K.length-1;ke>=0;ke--){const me=K[ke];if(me&&typeof me=="object"&&typeof me.onError=="function"){const Y=await me.onError({request:we,error:U,schemaPath:v,params:E,options:ue,id:le});if(Y){if(Y instanceof Response){U=void 0,Oe=Y;break}if(Y instanceof Error){U=Y;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(U)throw U}if(K.length)for(let xe=K.length-1;xe>=0;xe--){const U=K[xe];if(U&&typeof U=="object"&&typeof U.onResponse=="function"){const ke=await U.onResponse({request:we,response:Oe,schemaPath:v,params:E,options:ue,id:le});if(ke){if(!(ke instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Oe=ke}}}}const Ae=Oe.headers.get("Content-Length");if(Oe.status===204||we.method==="HEAD"||Ae==="0"&&!Oe.headers.get("Transfer-Encoding")?.includes("chunked"))return Oe.ok?{data:void 0,response:Oe}:{error:void 0,response:Oe};if(Oe.ok)return{data:await(async()=>{if(L==="stream")return Oe.body;if(L==="json"&&!Ae){const U=await Oe.text();return U?JSON.parse(U):void 0}return await Oe[L]()})(),response:Oe};let ie=await Oe.text();try{ie=JSON.parse(ie)}catch{}return{error:ie,response:Oe}}return{request(v,p,h){return f(p,{...h,method:v.toUpperCase()})},GET(v,p){return f(v,{...p,method:"GET"})},PUT(v,p){return f(v,{...p,method:"PUT"})},POST(v,p){return f(v,{...p,method:"POST"})},DELETE(v,p){return f(v,{...p,method:"DELETE"})},OPTIONS(v,p){return f(v,{...p,method:"OPTIONS"})},HEAD(v,p){return f(v,{...p,method:"HEAD"})},PATCH(v,p){return f(v,{...p,method:"PATCH"})},TRACE(v,p){return f(v,{...p,method:"TRACE"})},use(...v){for(const p of v)if(p){if(typeof p!="object"||!("onRequest"in p||"onResponse"in p||"onError"in p))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");c.push(p)}},eject(...v){for(const p of v){const h=c.indexOf(p);h!==-1&&c.splice(h,1)}}}}function du(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 Sg(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(du(i,t[o],n))}const l=a.join(r);return n.style==="label"||n.style==="matrix"?`${r}${l}`:l}function Eg(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(du(e,l,n));return n.style==="label"||n.style==="matrix"?`${a}${r.join(a)}`:r.join(a)}function Rm(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(Eg(r,l,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof l=="object"){a.push(Sg(r,l,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}a.push(du(r,l,e))}}return a.join("&")}}function Kw(e,t){let n=e;for(const a of e.match(zw)??[]){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,Eg(r,i,{style:o,explode:l}));continue}if(typeof i=="object"){n=n.replace(a,Sg(r,i,{style:o,explode:l}));continue}if(o==="matrix"){n=n.replace(a,`;${du(r,i)}`);continue}n=n.replace(a,o==="label"?`.${encodeURIComponent(i)}`:encodeURIComponent(i))}return n}function Ww(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 Gw(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 qm(...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 Lm(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Nm="/backend",Yw="__SUMMER_ADMIN_BASE__",Jw="__SUMMER_ADMIN_BUILD__",Zw=/^[0-9a-f]{6,64}$/;function Xw(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===Yw||!t.startsWith("/"))return Nm;const n=t.replace(/\/+$/,"");return n===""?Nm:n}function Qw(e=document){const t=e.querySelector('meta[name="summer-admin-build"]')?.content.trim()??"";return t===Jw||!Zw.test(t)?"":t}const Bm=Xw(),Gr={base:Bm,api:`${Bm}/api/v1`,build:Qw()},Ag="XMLHttpRequest";let Ci=null,Tg=null,_o=null;const ac=new WeakMap;function e2(e){Ci=e}function t2(){Ci?.()}function n2(e){Tg=e}function a2(e){return new URL(e.url,"http://local").pathname}function Fm(e){const t=a2(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function lf(){return _o||(_o=(async()=>{try{const{data:e,response:t}=await Ne.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return Tg?.(typeof n=="number"?n:null),!0}catch{return!1}finally{_o=null}})(),_o)}const r2={onRequest({request:e}){return e.headers.set("X-Requested-With",Ag),Fm(e)||ac.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||Fm(e))return t;const n=ac.get(e);if(ac.delete(e),!n||!await lf())return Ci?.(),t;const a=await globalThis.fetch(n);return a.status===401&&Ci?.(),a}},Ne=Hw({baseUrl:Gr.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Ne.use(r2);const of=M({}),sf=M(typeof document>"u"?"pl":document.documentElement.lang||"pl"),ua=xt(sf),Dg=M([]),l2=xt(Dg);function o2(e,t){of.value=e,t&&(sf.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function Og(e){const{data:t,response:n}=await Ne.GET("/lang",e?{params:{query:{locale:e}}}:{});!n.ok||!t||(Dg.value=Array.isArray(t.meta.locales)?[...t.meta.locales]:[],o2(t.data,t.meta.locale))}function Vm(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 dd(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([`:${Vm(o)}`,Vm(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 zm=new Map;function s2(e,t=sf.value){let n=zm.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}zm.set(t,n)}return n?n.select(e):"other"}function Ge(e,t,n={}){if(!e)return"";if(t===void 0)return dd(e.other??"",n);const a=e[s2(t)]??e.other??"";return dd(a,{count:t,...n})}function g(e,t={}){const n=of.value[e]?.other;return n===void 0?e:dd(n,t)}function zr(e,t,n={}){const a=of.value[e];return a?Ge(a,t,n):e}const uf=M(""),Po=xt(uf);function cf(e){uf.value=e}function df(){uf.value=""}const Si=M([]);async function Mg(){const{data:e,response:t}=await Ne.GET("/navigation");return Si.value=t.ok&&e?e.data:[],Si.value}function i2(e){Si.value=e}const Ei=_(()=>Si.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 ff(e){for(const t of e.sideMenu){const n=zn(t.controller);if(n)return n}return zn(e.controller)}function gs(e,t){const n=`${e}.${t}`;return Ei.value.find(a=>Im(a.controller)===n||a.sideMenu.some(r=>Im(r.controller)===n))??null}function u2(){for(const e of Ei.value){const t=ff(e);if(t)return t}return null}const ir=M([]),c2=_(()=>ir.value.length>0);async function Pg(){const{data:e,response:t}=await Ne.GET("/settings");return ir.value=t.ok&&e?e.data:[],ir.value}function d2(e){ir.value=e}function ns(e){return ir.value.find(t=>t.code===e)??null}function pf(e){return e.path?e.path:e.controller?zn(e.controller)??"/settings":`/settings/${encodeURIComponent(e.code)}`}function fu(e){return e?ir.value.find(t=>t.controller!==""&&t.controller===e)??null:null}function Ig(e){return ir.value.find(t=>!!t.path&&t.path===e)??null}const fd=_(()=>{const e=ir.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 rc(e){if(!e)return null;const t=fd.value.find(n=>n.category===e.category);return!t||t.entries.length<2?null:{category:t.category,current:e,entries:t.entries}}const jm="SummerCMS";function f2(e){if(e.name==="login")return g("backend::lang.auth.title");if(e.name==="settings")return g("backend::lang.settings.title");if(e.name==="account")return g("backend::lang.myaccount.menu_label");if(e.name==="plugins")return g("backend::lang.plugins.title");if(e.name==="settings-form")return ns(String(e.params.code??""))?.label??String(e.params.code??"");if(e.name==="home")return g("backend::lang.nav.empty");if(e.name==="not-found")return g("backend::lang.page.not_found");const t=gs(String(e.params.vendor??""),String(e.params.plugin??"")),n=Zl(e.path),r=t?.sideMenu.find(l=>l.controller===n)?.label??t?.label??fu(n)?.label??"";return(e.name==="create"||e.name==="record"||e.name==="preview")&&Po.value||r}function p2(e){const t=f2(e).trim();return t===""?jm:`${t} | ${jm}`}const Um=e=>e==="";const m2=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();const Hm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const v2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());const h2=e=>{const t=v2(e);return t.charAt(0).toUpperCase()+t.slice(1)};var fl={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 y2=Symbol("lucide-icons");function g2(){return it(y2,{})}const b2=({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:v=2,absoluteStrokeWidth:p=!1,class:h=""}=g2(),k=_(()=>{const S=Um(n)||Um(a)||n===!0||a===!0||p===!0,x=r||l||v||fl["stroke-width"];return S?Number(x)*24/Number(o??c??fl.width):x});return Dn("svg",{...fl,...u,width:o??c??fl.width,height:o??c??fl.height,stroke:i??f??fl.stroke,"stroke-width":k.value,class:m2("lucide",h,...e?[`lucide-${Hm(h2(e))}-icon`,`lucide-${Hm(e)}`]:["lucide-icon"])},[...t.map(S=>Dn(...S)),...d.default?[d.default()]:[]])};const he=(e,t)=>(n,{slots:a,attrs:r})=>Dn(b2,{...r,...n,iconNode:t,name:e},a.default?{default:a.default}:void 0);const _2=[["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"}]],x2=he("archive",_2);const k2=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Rg=he("arrow-down",k2);const w2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],bs=he("arrow-left",w2);const $2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],C2=he("arrow-right",$2);const S2=[["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"}]],qg=he("arrow-up-down",S2);const E2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Lg=he("arrow-up-right",E2);const A2=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Ng=he("arrow-up",A2);const T2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],D2=he("ban",T2);const O2=[["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"}]],M2=he("bell",O2);const P2=[["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"}]],I2=he("bold",P2);const R2=[["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"}]],q2=he("book",R2);const L2=[["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"}]],N2=he("bookmark",L2);const B2=[["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"}]],F2=he("box",B2);const V2=[["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"}]],z2=he("briefcase",V2);const j2=[["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"}]],U2=he("building",j2);const H2=[["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"}]],Bg=he("calendar",H2);const K2=[["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"}]],W2=he("camera",K2);const G2=[["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"}]],Y2=he("cassette-tape",G2);const J2=[["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"}]],Z2=he("chart-bar",J2);const X2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jn=he("check",X2);const Q2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ur=he("chevron-down",Q2);const e$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],pu=he("chevron-left",e$);const t$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_s=he("chevron-right",t$);const n$=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Fg=he("chevron-up",n$);const a$=[["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"}]],gt=he("circle-alert",a$);const r$=[["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"}]],l$=he("circle-arrow-up",r$);const o$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],s$=he("circle-check",o$);const i$=[["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"}]],u$=he("circle-question-mark",i$);const c$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],d$=he("circle",c$);const f$=[["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"}]],p$=he("clipboard-list",f$);const m$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],pd=he("clock",m$);const v$=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],h$=he("cloud",v$);const y$=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Vg=he("code",y$);const g$=[["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"}]],Ai=he("copy",g$);const b$=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],_$=he("credit-card",b$);const x$=[["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"}]],k$=he("database",x$);const w$=[["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"}]],$$=he("disc-3",w$);const C$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],S$=he("disc",C$);const E$=[["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"}]],md=he("download",E$);const A$=[["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"}]],zg=he("external-link",A$);const T$=[["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"}]],D$=he("eye-off",T$);const O$=[["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"}]],M$=he("eye",O$);const P$=[["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"}]],El=he("file-text",P$);const I$=[["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"}]],R$=he("file",I$);const q$=[["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"}]],L$=he("files",q$);const N$=[["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"}]],B$=he("flag",N$);const F$=[["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"}]],V$=he("folder",F$);const z$=[["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"}]],j$=he("funnel",z$);const U$=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],H$=he("gauge",U$);const K$=[["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"}]],W$=he("globe",K$);const G$=[["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"}]],Y$=he("graduation-cap",G$);const J$=[["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"}]],Ti=he("grip-vertical",J$);const Z$=[["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"}]],X$=he("heading-3",Z$);const Q$=[["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"}]],eC=he("heart",Q$);const tC=[["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"}]],nC=he("house",tC);const aC=[["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"}]],Km=he("image-off",aC);const rC=[["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"}]],lC=he("image-up",rC);const oC=[["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"}]],sC=he("image",oC);const iC=[["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"}]],uC=he("inbox",iC);const cC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Xl=he("info",cC);const dC=[["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"}]],fC=he("italic",dC);const pC=[["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"}]],mC=he("key-round",pC);const vC=[["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"}]],hC=he("key",vC);const yC=[["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"}]],gC=he("languages",yC);const bC=[["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"}]],_C=he("layout-grid",bC);const xC=[["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"}]],kC=he("leaf",xC);const wC=[["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"}]],$C=he("library",wC);const CC=[["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"}]],SC=he("life-buoy",CC);const EC=[["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"}]],jg=he("link",EC);const AC=[["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"}]],TC=he("list-indent-decrease",AC);const DC=[["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"}]],OC=he("list-indent-increase",DC);const MC=[["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"}]],Ug=he("list-ordered",MC);const PC=[["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"}]],Hg=he("list",PC);const IC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Il=he("loader-circle",IC);const RC=[["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"}]],tr=he("lock",RC);const qC=[["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"}]],Kg=he("log-out",qC);const LC=[["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"}]],NC=he("mail",LC);const BC=[["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"}]],FC=he("map-pin",BC);const VC=[["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"}]],zC=he("message-circle",VC);const jC=[["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"}]],UC=he("mic-vocal",jC);const HC=[["path",{d:"M5 12h14",key:"1ays0h"}]],Wg=he("minus",HC);const KC=[["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"}]],WC=he("moon",KC);const GC=[["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"}]],YC=he("network",GC);const JC=[["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"}]],ZC=he("palette",JC);const XC=[["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"}]],mf=he("panel-left-close",XC);const QC=[["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"}]],Gg=he("panel-left-open",QC);const eS=[["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"}]],tS=he("paperclip",eS);const nS=[["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"}]],aS=he("pause",nS);const rS=[["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"}]],Uo=he("pencil",rS);const lS=[["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"}]],oS=he("phone",lS);const sS=[["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"}]],iS=he("play",sS);const uS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],xs=he("plus",uS);const cS=[["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"}]],Yg=he("puzzle",cS);const dS=[["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"}]],fS=he("quote",dS);const pS=[["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"}]],mS=he("redo-2",pS);const vS=[["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"}]],hS=he("refresh-cw",vS);const yS=[["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"}]],li=he("rotate-ccw",yS);const gS=[["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"}]],Jg=he("search-x",gS);const bS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ks=he("search",bS);const _S=[["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"}]],Zg=he("settings",_S);const xS=[["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"}]],kS=he("shield-check",xS);const wS=[["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"}]],$S=he("shopping-cart",wS);const CS=[["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"}]],SS=he("sliders-horizontal",CS);const ES=[["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"}]],Xg=he("star",ES);const AS=[["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"}]],TS=he("sun-moon",AS);const DS=[["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=he("sun",DS);const OS=[["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"}]],MS=he("table",OS);const PS=[["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"}]],IS=he("tags",PS);const RS=[["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"}]],xr=he("trash-2",RS);const qS=[["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"}]],Di=he("triangle-alert",qS);const LS=[["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"}]],NS=he("trophy",LS);const BS=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],FS=he("underline",BS);const VS=[["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"}]],Qg=he("undo-2",VS);const zS=[["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"}]],jS=he("unlink",zS);const US=[["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"}]],oi=he("upload",US);const HS=[["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"}]],eb=he("user-minus",HS);const KS=[["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"}]],tb=he("user-plus",KS);const WS=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],GS=he("user-round",WS);const YS=[["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"}]],JS=he("user",YS);const ZS=[["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"}]],XS=he("users-round",ZS);const QS=[["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"}]],e3=he("users",QS);const t3=[["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"}]],n3=he("wand-sparkles",t3);const a3=[["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"}]],r3=he("wrench",a3);const l3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qt=he("x",l3),Wm={archive:x2,"arrow-down":Rg,"arrow-left":bs,"arrow-right":C2,"arrow-up":Ng,"arrow-up-right":Lg,bell:M2,book:q2,bookmark:N2,box:F2,briefcase:z2,building:U2,calendar:Bg,camera:W2,"cassette-tape":Y2,"chart-bar":Z2,check:jn,"chevron-down":ur,"chevron-left":pu,"chevron-right":_s,circle:d$,"circle-alert":gt,"circle-check":s$,"circle-question-mark":u$,"clipboard-list":p$,clock:pd,cloud:h$,code:Vg,copy:Ai,"credit-card":_$,database:k$,disc:S$,"disc-3":$$,download:md,"external-link":zg,file:R$,"file-text":El,files:L$,flag:B$,folder:V$,funnel:j$,gauge:H$,globe:W$,"graduation-cap":Y$,heart:eC,house:nC,image:sC,inbox:uC,info:Xl,key:hC,languages:gC,"layout-grid":_C,leaf:kC,library:$C,"life-buoy":SC,link:jg,list:Hg,"list-ordered":Ug,lock:tr,"log-out":Kg,mail:NC,"map-pin":FC,"message-circle":zC,"mic-vocal":UC,minus:Wg,network:YC,palette:ZC,"panel-left-close":mf,"panel-left-open":Gg,paperclip:tS,pause:aS,pencil:Uo,phone:oS,play:iS,plus:xs,puzzle:Yg,"refresh-cw":hS,search:ks,"search-x":Jg,settings:Zg,"shield-check":kS,"shopping-cart":$S,star:Xg,sun:mu,table:MS,tags:IS,"trash-2":xr,"triangle-alert":Di,trophy:NS,upload:oi,user:JS,"user-minus":eb,"user-plus":tb,users:e3,"users-round":XS,"wand-sparkles":n3,wrench:r3,x:Qt},o3={"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"},Gm=mu;function lc(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function ws(e){if(!e)return Gm;const t=e.trim();return lc(Wm,t)??lc(Wm,lc(o3,t)??"")??Gm}const s3="(prefers-color-scheme: dark)",si=["system","light","dark"];function nb(e){return typeof e=="string"&&si.includes(e)}function i3(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(s3),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 u3=4e3,as=M([]),vd=new Map;let c3=1;const d3=xt(as);function Le(e,t="success"){const n=c3++;return as.value=[{id:n,text:e,tone:t},...as.value],vd.set(n,setTimeout(()=>ab(n),u3)),n}function ab(e){const t=vd.get(e);t!==void 0&&(clearTimeout(t),vd.delete(e)),as.value=as.value.filter(n=>n.id!==e)}const rb="summer-admin.theme",vf="summer-admin.locale",f3=/^[A-Za-z]{2,8}(?:[-_][A-Za-z0-9]{1,8})?$/,Kl=M("system");let Ym=()=>{};const Jm=xt(Kl),Oi=M(""),p3=xt(Oi);function Mi(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function hf(e,t){try{t===null?Mi()?.removeItem(e):Mi()?.setItem(e,t)}catch{}}function hd(e){hf(rb,e==="system"?null:e)}function m3(){try{const e=Mi()?.getItem(rb);return nb(e)?e:"system"}catch{return"system"}}function v3(){try{const e=Mi()?.getItem(vf)??"";return e.length<=16&&f3.test(e)?e:""}catch{return""}}const lb={reload(){window.location.reload()}};function Pi(e){Ym(),Kl.value=e,Ym=typeof window>"u"?()=>{}:i3(window,e)}function h3(e){const t=si.indexOf(e);return si[(t+1)%si.length]??"system"}async function y3(e){const t=Kl.value;Pi(e),hd(e);let n=!1;try{const{response:a}=await Ne.PUT("/account/preferences",{body:{theme:e}});n=a.ok}catch{n=!1}n||(Kl.value===e&&(Pi(t),hd(t)),Le(g("backend::lang.myaccount.preferences_failed"),"danger"))}function Zm(){return y3(h3(Kl.value))}async function g3(e){const t=e?.preferences;t&&(nb(t.theme)&&(t.theme!==Kl.value&&Pi(t.theme),hd(t.theme)),typeof t.locale=="string"&&(Oi.value=t.locale,t.locale!==""&&t.locale!==ua.value&&await Og(t.locale).catch(()=>{}),hf(vf,t.locale===""?null:t.locale)))}async function b3(e){if(e===Oi.value)return;let t=!1;try{const{response:n}=await Ne.PUT("/account/preferences",{body:{locale:e}});t=n.ok}catch{t=!1}if(!t){Le(g("backend::lang.myaccount.preferences_failed"),"danger");return}Oi.value=e,hf(vf,e===""?null:e),lb.reload()}const ob="summer-admin.sidebar",_3="(max-width: 1099px)",vu=M(!1),Ho=M(!1),x3=_(()=>Ho.value||vu.value);function sb(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function k3(){try{return sb()?.getItem(ob)==="true"}catch{return!1}}function yf(e){vu.value=e;try{sb()?.setItem(ob,e?"true":"false")}catch{}}function w3(){if(vu.value=k3(),typeof window>"u"||typeof window.matchMedia!="function")return Ho.value=!1,()=>{};const e=window.matchMedia(_3);Ho.value=e.matches;const t=n=>{Ho.value=n.matches};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function ib(){return{collapsed:x3,narrow:xt(Ho),manual:xt(vu),setCollapsed:yf,watchViewport:w3}}const $3=["id","aria-label"],C3={class:"px-2.5 pt-1 pb-2 text-[14px] font-bold","aria-hidden":"true"},S3=ae({__name:"SectionFlyout",props:{entry:{},id:{}},emits:["escape","leave","navigate"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=Mn(),o=M(null),i=_(()=>Zl(l.path)),u=_(()=>a.entry.sideMenu.flatMap(p=>{const h=zn(p.controller);return h?[{item:p,to:h,icon:ws(p.icon),current:i.value===p.controller}]:[]}));function d(){return[...o.value?.querySelectorAll('[role="menuitem"]')??[]]}async function c(){await Je(),d()[0]?.focus()}function f(p){return!!p&&!!o.value?.contains(p)}function v(p){const h=d(),k=h.indexOf(document.activeElement);switch(p.key){case"ArrowDown":p.preventDefault(),h[(k+1)%h.length]?.focus();break;case"ArrowUp":p.preventDefault(),h[(k-1+h.length)%h.length]?.focus();break;case"Home":p.preventDefault(),h[0]?.focus();break;case"End":p.preventDefault(),h[h.length-1]?.focus();break;case"Escape":p.preventDefault(),r("escape");break;case"Tab":r("leave");break}}return t({focusFirst:c,contains:f}),(p,h)=>(m(),y("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:v},[w("span",C3,$(e.entry.label),1),(m(!0),y(pe,null,Ie(u.value,k=>(m(),j(s(Vn),{key:k.item.code,to:k.to,role:"menuitem",tabindex:"-1","aria-current":k.current?"page":void 0,class:ve([k.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:q(()=>[(m(),j(zt(k.icon),{size:18,"aria-hidden":"true"})),w("span",null,$(k.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],40,$3))}}),E3=["aria-label"],A3=["aria-label","title"],T3={class:"max-w-full [overflow-wrap:anywhere]"},D3=["aria-label","title"],O3={class:"max-w-full [overflow-wrap:anywhere]"},M3=200,P3=ae({__name:"PluginRail",setup(e){const t=Mn(),{collapsed:n,narrow:a,setCollapsed:r}=ib(),l={system:{icon:TS,key:"backend::lang.nav.theme_system"},light:{icon:mu,key:"backend::lang.nav.theme_light"},dark:{icon:WC,key:"backend::lang.nav.theme_dark"}},o=_(()=>l[Jm.value].icon),i=_(()=>g("backend::lang.nav.theme",{mode:g(l[Jm.value].key)})),u=_(()=>gs(String(t.params.vendor??""),String(t.params.plugin??""))),d=_(()=>t.path==="/settings"||t.path.startsWith("/settings/")||Ig(t.path)!==null||u.value===null&&fu(Zl(t.path))!==null),c=_(()=>Ei.value.map(z=>({entry:z,to:ff(z)??"/",icon:ws(z.icon),current:u.value?.code===z.code}))),f=M(null),v=M(null),p=_(()=>Ei.value.find(z=>z.code===f.value)??null),h=new Map;let k=null,S=!1;function x(z){return`section-flyout-${z}`}function E(z,O){const B=O?.$el;B instanceof HTMLElement?h.set(z,B):h.delete(z)}function L(){k!==null&&(clearTimeout(k),k=null)}function D(){L(),f.value=null}function A(){L(),k=setTimeout(()=>{k=null;const z=document.activeElement,O=f.value;O!==null&&(h.get(O)===z||v.value?.contains(z))||(f.value=null)},M3)}function R(z){n.value&&(L(),f.value=z)}function F(z){S||R(z)}async function W(z,O){n.value&&(z.key==="Enter"||z.key==="ArrowDown"?(z.preventDefault(),R(O),await Je(),await v.value?.focusFirst()):z.key==="Escape"&&f.value!==null&&(z.preventDefault(),D()))}function C(){const z=f.value;D(),z!==null&&(S=!0,h.get(z)?.focus(),S=!1)}function I(){r(!1),Je(()=>document.querySelector("[data-sidebar-collapse]")?.focus())}return Ve(n,z=>{z||D()}),St(L),(z,O)=>(m(),y("nav",{"aria-label":s(g)("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"},[w("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:O[0]||(O[0]=(...B)=>s(Zm)&&s(Zm)(...B))},[(m(),j(zt(o.value),{size:22,class:"text-accent","aria-hidden":"true"}))],8,A3),(m(!0),y(pe,null,Ie(c.value,B=>(m(),j(s(Vn),{key:B.entry.code,ref_for:!0,ref:J=>E(B.entry.code,J),to:B.to,"data-rail-item":B.entry.code,"aria-current":B.current?"page":void 0,"aria-haspopup":s(n)?"menu":void 0,"aria-expanded":s(n)?f.value===B.entry.code?"true":"false":void 0,"aria-controls":s(n)&&f.value===B.entry.code?x(B.entry.code):void 0,class:ve([B.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:J=>R(B.entry.code),onMouseleave:A,onFocus:J=>F(B.entry.code),onBlur:A,onKeydown:J=>W(J,B.entry.code)},{default:q(()=>[(m(),j(zt(B.icon),{size:20,"aria-hidden":"true"})),w("span",T3,$(B.entry.label),1)]),_:2},1032,["to","data-rail-item","aria-current","aria-haspopup","aria-expanded","aria-controls","class","onMouseenter","onFocus","onKeydown"]))),128)),s(n)&&p.value?(m(),j(S3,{key:0,id:x(p.value.code),ref_key:"flyout",ref:v,entry:p.value,onMouseenter:L,onMouseleave:A,onFocusin:L,onFocusout:A,onEscape:C,onLeave:A,onNavigate:D},null,8,["id","entry"])):Q("",!0),O[1]||(O[1]=w("span",{class:"flex-1","aria-hidden":"true"},null,-1)),s(n)&&!s(a)?(m(),y("button",{key:1,type:"button","data-sidebar-expand":"","aria-label":s(g)("backend::lang.nav.expand"),title:s(g)("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:I},[N(s(Gg),{size:20,"aria-hidden":"true"})],8,D3)):Q("",!0),s(c2)?(m(),j(s(Vn),{key:2,to:"/settings","data-rail-settings":"","aria-current":d.value?"page":void 0,class:ve([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:q(()=>[N(s(Zg),{size:20,"aria-hidden":"true"}),w("span",O3,$(s(g)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):Q("",!0)],8,E3))}}),I3=["aria-label"],R3={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},q3={class:"truncate text-[16px] font-bold"},L3=["aria-label","title"],N3=ae({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=Mn(),a=_(()=>Zl(n.path)),r=_(()=>t.entry.sideMenu.flatMap(o=>{const i=zn(o.controller);return i?[{item:o,to:i,icon:ws(o.icon),current:a.value===o.controller}]:[]}));function l(){yf(!0),Je(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(o,i)=>(m(),y("aside",{"aria-label":s(g)("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"},[w("div",R3,[w("span",q3,$(e.entry.label),1),w("button",{type:"button","data-sidebar-collapse":"","aria-label":s(g)("backend::lang.nav.collapse"),title:s(g)("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(mf),{size:18,"aria-hidden":"true"})],8,L3)]),(m(!0),y(pe,null,Ie(r.value,u=>(m(),j(s(Vn),{key:u.item.code,to:u.to,"aria-current":u.current?"page":void 0,class:ve([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:q(()=>[(m(),j(zt(u.icon),{size:18,"aria-hidden":"true"})),w("span",null,$(u.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,I3))}}),B3=["aria-label"],F3={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},V3={class:"truncate text-[16px] font-bold"},z3=["aria-label","title"],j3=ae({__name:"SettingsPanel",props:{section:{}},setup(e){function t(){yf(!0),Je(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(n,a)=>(m(),y("aside",{"data-settings-panel":"","aria-label":s(g)("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"},[w("div",F3,[w("span",V3,$(e.section.category||s(g)("backend::lang.nav.settings")),1),w("button",{type:"button","data-sidebar-collapse":"","aria-label":s(g)("backend::lang.nav.collapse"),title:s(g)("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(mf),{size:18,"aria-hidden":"true"})],8,z3)]),(m(!0),y(pe,null,Ie(e.section.entries,r=>(m(),j(s(Vn),{key:r.code,to:s(pf)(r),"data-settings-panel-item":r.code,"aria-current":r.code===e.section.current.code?"page":void 0,class:ve([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:q(()=>[(m(),j(zt(s(ws)(r.icon)),{size:18,"aria-hidden":"true"})),w("span",null,$(r.label),1)]),_:2},1032,["to","data-settings-panel-item","aria-current","class"]))),128))],8,B3))}}),U3=["aria-label"],H3={class:"flex min-w-0 items-center gap-2"},K3=["aria-current"],W3=ae({__name:"Breadcrumbs",setup(e){const t=Mn(),n=_(()=>{if(t.name==="account")return[{label:g("backend::lang.myaccount.menu_label")}];if(t.name==="plugins")return[{label:g("backend::lang.nav.settings"),to:"/settings"},{label:g("backend::lang.plugins.title")}];if(t.name==="settings"||t.name==="settings-form"){const i=[{label:g("backend::lang.nav.settings"),to:"/settings"}],u=t.name==="settings-form"?ns(String(t.params.code??"")):null;return u&&i.push({label:u.label}),i}const a=gs(String(t.params.vendor??""),String(t.params.plugin??"")),r=Zl(t.path);if(!a){const i=fu(r);if(!i)return[];const u=[{label:g("backend::lang.nav.settings"),to:"/settings"},{label:i.label,to:pf(i)}];return(t.name==="record"||t.name==="create")&&Po.value!==""&&u.push({label:Po.value}),u}const l=[{label:a.label,to:ff(a)??void 0}],o=a.sideMenu.find(i=>i.controller===r)??null;return o&&l.push({label:o.label,to:zn(o.controller)??void 0}),(t.name==="record"||t.name==="create")&&Po.value!==""&&l.push({label:Po.value}),l});return(a,r)=>(m(),y("nav",{"aria-label":s(g)("backend::lang.nav.breadcrumbs"),class:"min-w-0"},[w("ol",H3,[(m(!0),y(pe,null,Ie(n.value,(l,o)=>(m(),y("li",{key:o,"data-crumb":"",class:"flex min-w-0 items-center gap-2"},[o>0?(m(),j(s(_s),{key:0,size:14,class:"shrink-0 text-muted","aria-hidden":"true"})):Q("",!0),o===n.value.length-1||!l.to?(m(),y("span",{key:1,"aria-current":o===n.value.length-1?"page":void 0,class:ve([o===n.value.length-1?"font-semibold text-text":"text-muted","truncate"])},$(l.label),11,K3)):(m(),j(s(Vn),{key:2,to:l.to,class:"truncate text-muted no-underline transition-colors duration-150 ease-out hover:text-text"},{default:q(()=>[_e($(l.label),1)]),_:2},1032,["to"]))]))),128))])],8,U3))}});function Xm(e){return typeof e=="string"?`'${e}'`:new Y3().serialize(e)}const G3=" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz",Ns=(function(){const e=new Uint8Array(128);for(let t=0;t<69;t++)e[G3.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function oc(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 rs(e,t){return e===t||Xm(e)===Xm(t)}function Bs(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 sc(e,t,n,a){t=Number(t),n=Number(n);const r=(e-(Number.isNaN(t)?0:t))%a;let l=Bs(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(Bs(n/a,a))*a):ln&&(l=t+Math.floor(Bs((n-t)/a,a))*a),l=Bs(l,a),l}function $t(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=>(ht(a,o),o)]}function Ut(){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 gf(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 gn(e){return e==null}function Qm(e,t){return gn(e)?!1:Array.isArray(e)?e.some(n=>rs(n,t)):rs(e,t)}function J3(e,t){var n;const a=Jl();return kn(()=>{a.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),xt(a)}function ub(e,t){return Kd()?(Jh(e,t),!0):!1}function Z3(e){let t=!1,n;const a=Yh(!0);return((...r)=>(t||(n=a.run(()=>e(...r)),t=!0),n))}const Na=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const X3=e=>typeof e<"u",Q3=Object.prototype.toString,eE=e=>Q3.call(e)==="[object Object]",ev=tE();function tE(){var e,t,n;return Na&&!!(!((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 ic(e){return Array.isArray(e)?e:[e]}function nE(e){return pa()}function cb(e){if(!Na)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=Yh(!0),n=a.run(()=>e(...l))),ub(r),n))}function aE(e){return Ln(Ct(e)?new Proxy({},{get(t,n,a){return s(Reflect.get(e.value,n,a))},set(t,n,a){return Ct(e.value[n])&&!Ct(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 rE(e){return aE(_(e))}function bf(e,...t){const n=t.flat(),a=n[0];return rE(()=>Object.fromEntries(typeof a=="function"?Object.entries(Vt(e)).filter(([r,l])=>!a(ln(l),r)):Object.entries(Vt(e)).filter(r=>!n.includes(r[0]))))}function lE(e,t=1e4){return j_((n,a)=>{let r=ln(e),l;const o=()=>setTimeout(()=>{r=ln(e),a()},ln(t));return ub(()=>{clearTimeout(l)}),{get(){return n(),r},set(i){r=i,a(),clearTimeout(l),l=o()}}})}function oE(e,t){nE()&&St(e,t)}function sE(e,t,n){return Ve(e,t,{...n,immediate:!0})}const _f=Na?window:void 0;function Yr(e){var t;const n=ln(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Wl(...e){const t=(a,r,l,o)=>(a.addEventListener(r,l,o),()=>a.removeEventListener(r,l,o)),n=_(()=>{const a=ic(ln(e[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return sE(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(l=>Yr(l)))!==null&&a!==void 0?a:[_f].filter(l=>l!=null),ic(ln(n.value?e[1]:e[0])),ic(s(n.value?e[2]:e[1])),ln(n.value?e[3]:e[2])]},([a,r,l,o],i,u)=>{if(!a?.length||!r?.length||!l?.length)return;const d=eE(o)?{...o}:o,c=a.flatMap(f=>r.flatMap(v=>l.map(p=>t(f,v,p,d))));u(()=>{c.forEach(f=>f())})},{flush:"post"})}function iE(){const e=Jl(!1),t=pa();return t&&wt(()=>{e.value=!0},t),e}function uE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function cE(...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=_f,eventName:l="keydown",passive:o=!1,dedupe:i=!1}=a,u=uE(t);return Wl(r,l,c=>{c.repeat&&ln(i)||u(c)&&n(c)},o)}function dE(e){return JSON.parse(JSON.stringify(e))}function Mt(e,t,n,a={}){var r,l;const{clone:o=!1,passive:i=!1,eventName:u,deep:d=!1,defaultValue:c,shouldEmit:f}=a,v=pa(),p=n||v?.emit||(v==null||(r=v.$emit)===null||r===void 0?void 0:r.bind(v))||(v==null||(l=v.proxy)===null||l===void 0||(l=l.$emit)===null||l===void 0?void 0:l.bind(v?.proxy));let h=u;t||(t="modelValue"),h=h||`update:${t.toString()}`;const k=E=>o?typeof o=="function"?o(E):dE(E):E,S=()=>X3(e[t])?k(e[t]):c,x=E=>{f?f(E)&&p(h,E):p(h,E)};if(i){const E=M(S());let L=!1;return Ve(()=>e[t],D=>{L||(L=!0,E.value=k(D),Je(()=>L=!1))}),Ve(E,D=>{!L&&(D!==e[t]||d)&&x(D)},{deep:d}),E}else return _({get(){return S()},set(E){x(E)}})}function xf(e){return e?e.flatMap(t=>t.type===pe?xf(t.children):[t]):[]}const fE=["INPUT","TEXTAREA"];function tv(e,t,n,a={}){if(!t||a.enableIgnoredElement&&fE.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,v,p,h,k,S]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],x=p||h,E=f||v;if(!k&&!S&&(!x&&!E||r==="vertical"&&E||r==="horizontal"&&x))return null;const L=n?Array.from(n.querySelectorAll(l)):o;if(!L.length)return null;d&&e.preventDefault();let D=null;return E||x?D=db(L,t,{goForward:x?h:u==="ltr"?f:v,loop:i}):k?D=L.at(0)||null:S&&(D=L.at(-1)||null),c&&D?.focus(),D}function db(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"?db(e,i,n,a):i:null}const[hu]=$t("ConfigProvider");function uc(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 yd(e,t,n=".",a){if(!uc(t))return yd(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]]:uc(o)&&uc(r[l])?r[l]=yd(o,r[l],(n?`${n}.`:"")+l.toString(),a):r[l]=o))}return r}function pE(e){return(...t)=>t.reduce((n,a)=>yd(n,a,"",e),{})}const fb=pE(),mE=cb(()=>{const e=M(new Map),t=M(),n=_(()=>{for(const o of e.value.values())if(o)return!0;return!1}),a=hu({scrollBody:M(!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??"",ev&&r?.(),t.value=void 0};return Ve(n,(o,i)=>{if(!Na)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"?fb({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"),ev&&(r=Wl(document,"touchmove",f=>vE(f),{passive:!1})),Je(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function kf(e){const t=Math.random().toString(36).substring(2,7),n=mE();n.value.set(t,e??!1);const a=_({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return oE(()=>{n.value.delete(t)}),a}function pb(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 Rl(e,t){return e-t*Math.floor(e/t)}const mb=1721426;function Nr(e,t,n,a){t=$s(e,t);let r=t-1,l=-2;return n<=2?l=0:nr(t)&&(l=-1),mb-1+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*n-362)/12+l+a)}function nr(e){return e%4===0&&(e%100!==0||e%400===0)}function $s(e,t){return e==="BC"?1-t:t}function yu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const hE={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 Un{fromJulianDay(t){let n=t,a=n-mb,r=Math.floor(a/146097),l=Rl(a,146097),o=Math.floor(l/36524),i=Rl(l,36524),u=Math.floor(i/1461),d=Rl(i,1461),c=Math.floor(d/365),f=r*400+o*100+u*4+c+(o!==4&&c!==4?1:0),[v,p]=yu(f),h=n-Nr(v,p,1,1),k=2;n0&&t===Hn()&&!yb())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:a,day:r,hour:l,minute:o,second:i}=bb(e,t);return gb(n,a,r,l,o,i,0)-Math.floor(e/1e3)*1e3}const ov=new Map;function bb(e,t){let n=ov.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"}),ov.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 sv=864e5;function $E(e,t,n,a){return(n===a?[n]:[n,a]).filter(l=>CE(e,t,l))}function CE(e,t,n){let a=bb(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 wa(e,t,n="compatible"){let a=ca(e);if(t==="UTC")return Gl(a);if(t===Hn()&&n==="compatible"&&!yb()){a=cn(a,new Un);let u=new Date,d=$s(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=Gl(a),l=bd(r-sv,t),o=bd(r+sv,t),i=$E(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(wa(e,t,n))}function $a(e,t){let n=bd(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 Pa(r<1?"BC":"AD",r<1?-r+1:r,l,o,t,n,i,u,d,c)}function SE(e){return new yt(e.calendar,e.era,e.year,e.month,e.day)}function ca(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 dr(e.calendar,e.era,e.year,e.month,e.day,n,a,r,l)}function cn(e,t){if($f(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,jr(a),a}function Cf(e,t,n){if(e instanceof Pa)return e.timeZone===t?e:bu(e,t);let a=wa(e,t,n);return $a(a,t)}function EE(e){let t=Gl(e)-e.offset;return new Date(t)}function bu(e,t){let n=Gl(e)-e.offset;return cn($a(n,t),e.calendar)}const xo=36e5;function _u(e,t){let n=e.copy(),a="hour"in n?$b(n,t):0;_d(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,xd(n),xb(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=a,AE(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 _d(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function xd(e){for(;e.month<1;)_d(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,_d(e,1)}function AE(e){for(;e.day<1;)e.month--,xd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,xd(e)}function xb(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 jr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),xb(e)}function Sf(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function kb(e,t){return _u(e,Sf(t))}function Ef(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),jr(n),n}function ls(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),wb(n),n}function TE(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Fs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Fs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Fs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Fs(e.hour,24),t}function wb(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 Fs(e,t){let n=e%t;return n<0&&(n+=t),n}function $b(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,TE(e)}function Cb(e,t){let n=e.copy();return $b(n,t),n}function DE(e,t){return Cb(e,Sf(t))}function Af(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=Ca(o,n,0,l.length-1,a?.round),r.era=l[o],jr(r);break}case"year":r.calendar.isInverseEra?.(r)&&(n=-n),r.year=Ca(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=Ca(e.month,n,1,e.calendar.getMonthsInYear(e),a?.round);break;case"day":r.day=Ca(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),jr(r),r}function Tf(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=Ca(l,n,o,i,a?.round);break}case"minute":r.minute=Ca(e.minute,n,0,59,a?.round);break;case"second":r.second=Ca(e.second,n,0,59,a?.round);break;case"millisecond":r.millisecond=Ca(e.millisecond,n,0,999,a?.round);break;default:throw new Error("Unsupported field "+t)}return r}function Ca(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 Sb(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=_u(ca(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=wa(r,e.timeZone)}else n=Gl(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let a=$a(n,e.timeZone);return cn(a,e.calendar)}function OE(e,t){return Sb(e,Sf(t))}function ME(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=ca(e),i=cn(ls(o,{hour:r}),new Un),u=[wa(i,e.timeZone,"earlier"),wa(i,e.timeZone,"later")].filter(h=>$a(h,e.timeZone).day===i.day)[0],d=cn(ls(o,{hour:l}),new Un),c=[wa(d,e.timeZone,"earlier"),wa(d,e.timeZone,"later")].filter(h=>$a(h,e.timeZone).day===d.day).pop(),f=Gl(e)-e.offset,v=Math.floor(f/xo),p=f%xo;return f=Ca(v,n,Math.floor(u/xo),Math.floor(c/xo),a?.round)*xo+p,cn($a(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Tf(e,t,n,a);case"era":case"year":case"month":case"day":{let r=Af(ca(e),t,n,a),l=wa(r,e.timeZone);return cn($a(l,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function PE(e,t,n){let a=ca(e),r=ls(Ef(a,t),t);if(r.compare(a)===0)return e;let l=wa(r,e.timeZone,n);return cn($a(l,e.timeZone),e.calendar)}const IE=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,RE=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Eb=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function qE(e){let t=e.match(IE);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new aa(Jt(t[1],0,23),t[2]?Jt(t[2],0,59):0,t[3]?Jt(t[3],0,59):0,t[4]?Jt(t[4],0,1/0)*1e3:0)}function Ab(e){let t=e.match(RE);if(!t)throw Eb.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new yt(Jt(t[1],0,9999),Jt(t[2],1,12),1);return n.day=Jt(t[3],1,n.calendar.getDaysInMonth(n)),n}function iv(e,t){let n=e.match(Eb);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let a=Jt(n[1],-9999,9999),r=a<1?"BC":"AD",l=new Pa(r,a<1?-a+1:a,Jt(n[2],1,12),1,t,0,n[4]?Jt(n[4],0,23):0,n[5]?Jt(n[5],0,59):0,n[6]?Jt(n[6],0,59):0,n[7]?Jt(n[7],0,1/0)*1e3:0);return l.day=Jt(n[3],0,l.calendar.getDaysInMonth(l)),n[8]&&(l.offset=Jt(n[8],-23,23)*36e5+Jt(n[9]??"0",0,59)*6e4),bu(l,t)}function Jt(e,t,n){let a=Number(e);if(an)throw new RangeError(`Value out of range: ${t} <= ${a} <= ${n}`);return a}function Tb(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 Db(e){let t=cn(e,new Un),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 Ob(e){return`${Db(e)}T${Tb(e)}`}function LE(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 NE(e){return`${Ob(e)}${LE(e.offset)}[${e.timeZone}]`}function Df(e){let t=typeof e[0]=="object"?e.shift():new Un,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 yt{#e;constructor(...t){let[n,a,r,l,o]=Df(t);this.calendar=n,this.era=a,this.year=r,this.month=l,this.day=o,jr(this)}copy(){return this.era?new yt(this.calendar,this.era,this.year,this.month,this.day):new yt(this.calendar,this.year,this.month,this.day)}add(t){return _u(this,t)}subtract(t){return kb(this,t)}set(t){return Ef(this,t)}cycle(t,n,a){return Af(this,t,n,a)}toDate(t){return _b(this,t)}toString(){return Db(this)}compare(t){return vb(this,t)}}class aa{#e;constructor(t=0,n=0,a=0,r=0){this.hour=t,this.minute=n,this.second=a,this.millisecond=r,wb(this)}copy(){return new aa(this.hour,this.minute,this.second,this.millisecond)}add(t){return Cb(this,t)}subtract(t){return DE(this,t)}set(t){return ls(this,t)}cycle(t,n,a){return Tf(this,t,n,a)}toString(){return Tb(this)}compare(t){return hb(this,t)}}class dr{#e;constructor(...t){let[n,a,r,l,o]=Df(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,jr(this)}copy(){return this.era?new dr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new dr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return _u(this,t)}subtract(t){return kb(this,t)}set(t){return Ef(ls(this,t),t)}cycle(t,n,a){switch(t){case"era":case"year":case"month":case"day":return Af(this,t,n,a);default:return Tf(this,t,n,a)}}toDate(t,n){return _b(this,t,n)}toString(){return Ob(this)}compare(t){let n=vb(this,t);return n===0?hb(this,ca(t)):n}}class Pa{#e;constructor(...t){let[n,a,r,l,o]=Df(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,jr(this)}copy(){return this.era?new Pa(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Pa(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Sb(this,t)}subtract(t){return OE(this,t)}set(t,n){return PE(this,t,n)}cycle(t,n,a){return ME(this,t,n,a)}toDate(){return EE(this)}toString(){return NE(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Cf(t,this.timeZone).toDate().getTime()}}const Ll=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],BE=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ii=[1867,1911,1925,1988,2018],er=["meiji","taisho","showa","heisei","reiwa"];function uv(e){const t=Ll.findIndex(([n,a,r])=>e.year=0){let[,r,l]=Ll[n];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(l,t.day))}}getEras(){return er}getYearsInEra(t){let n=er.indexOf(t.era),a=Ll[n],r=Ll[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 zE extends Un{fromJulianDay(t){let n=super.fromJulianDay(t),a=$s(n.era,n.year),[r,l]=fv(a);return new yt(this,r,l,n.month,n.day)}toJulianDay(t){return super.toJulianDay(pv(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,a]=fv(Pb(t));t.era=n,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(pv(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ii}constructor(...t){super(...t),this.identifier="roc"}}function pv(e){let[t,n]=yu(Pb(e));return new yt(t,n,e.month,e.day)}const mv=1948320,vv=[0,31,62,93,124,155,186,216,246,276,306,336];class jE{fromJulianDay(t){let n=t-mv,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-vv[o]+1;return new yt(this,a,o+1,i)}toJulianDay(t){let n=mv-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=vv[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Rl(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 pc=78,hv=80;class UE extends Un{fromJulianDay(t){let n=super.fromJulianDay(t),a=n.year-pc,r=t-Nr(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&&nr(t.year+pc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Ri=1948440,yv=1948439,En=1300,pl=1600,HE=460322;function qi(e,t,n,a){return a+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ib(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),r=Math.min(12,Math.ceil((n-(29+qi(t,a,1,1)))/29.5)+1),l=n-qi(t,a,r,1)+1;return new yt(e,a,r,l)}function gv(e){return(14+11*e)%30<11}class Of{fromJulianDay(t){return Ib(this,Ri,t)}toJulianDay(t){return qi(Ri,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&gv(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return gv(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class KE extends Of{fromJulianDay(t){return Ib(this,yv,t)}toJulianDay(t){return qi(yv,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const WE="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let kd,Nl;function ui(e){return HE+Nl[e-En]}function Io(e,t){let n=e-En,a=1<<11-(t-1);return(kd[n]&a)===0?29:30}function bv(e,t){let n=ui(e);for(let a=1;at.charCodeAt(0)).buffer)),!Nl){Nl=new Uint32Array(pl-En+1);let t=0;for(let n=En;n<=pl;n++){Nl[n-En]=t;for(let a=1;a<=12;a++)t+=Io(n,a)}}}fromJulianDay(t){let n=t-Ri,a=ui(En),r=ui(pl);if(nr)return super.fromJulianDay(t);{let l=En-1,o=1,i=1;for(;i>0;){l++,i=n-ui(l)+1;let u=_v(l);if(i===u){o=12;break}else if(id;)i-=d,o++,d=Io(l,o);break}}return new yt(this,l,o,n-bv(l,o)+1)}}toJulianDay(t){return t.yearpl?super.toJulianDay(t):Ri+bv(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.yearpl?super.getDaysInMonth(t):Io(t.year,t.month)}getDaysInYear(t){return t.yearpl?super.getDaysInYear(t):_v(t.year)}}const xv=347997,Rb=1080,qb=24*Rb,YE=29,JE=12*Rb+793,ZE=YE*qb+JE;function Lr(e){return Rl(e*7+1,19)<7}function ci(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=t*29+Math.floor(n/25920);return Rl(3*(a+1),7)<3&&(a+=1),a}function XE(e){let t=ci(e-1),n=ci(e);return ci(e+1)-n===356?2:n-t===382?1:0}function Ko(e){return ci(e)+XE(e)}function Lb(e){return Ko(e+1)-Ko(e)}function QE(e){let t=Lb(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Vs(e,t){if(t>=6&&!Lr(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=QE(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Lr(e)?30:0:30}class eA{fromJulianDay(t){let n=t-xv,a=n*qb/ZE,r=Math.floor((19*a+234)/235)+1,l=Ko(r),o=Math.floor(n-l);for(;o<1;)r--,l=Ko(r),o=Math.floor(n-l);let i=1,u=0;for(;u6?t.month--:!Lr(n.year)&&Lr(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const wd=1723856,kv=1824665,$d=5500;function Wo(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function Mf(e,t){let n=Math.floor(4*(t-e)/1461);t>=Wo(e,n+1,1,1)&&n++;let a=1+Math.floor((t-Wo(e,n,1,1))/30),r=t+1-Wo(e,n,a,1);return[n,a,r]}function Nb(e){return Math.floor(e%4/3)}function Bb(e,t){return t%13!==0?30:Nb(e)+5}class Pf{fromJulianDay(t){let[n,a,r]=Mf(wd,t),l="AM";return n<=0&&(l="AA",n+=$d),new yt(this,l,n,a,r)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=$d),Wo(wd,n,t.month,t.day)}getDaysInMonth(t){return Bb(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Nb(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 tA extends Pf{fromJulianDay(t){let[n,a,r]=Mf(wd,t);return n+=$d,new yt(this,"AA",n,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class nA extends Pf{fromJulianDay(t){let[n,a,r]=Mf(kv,t),l="CE";return n<=0&&(l="BCE",n=1-n),new yt(this,l,n,a,r)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Wo(kv,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Bb(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 aA(e){switch(e){case"buddhist":return new VE;case"ethiopic":return new Pf;case"ethioaa":return new tA;case"coptic":return new nA;case"hebrew":return new eA;case"indian":return new UE;case"islamic-civil":return new Of;case"islamic-tbla":return new KE;case"islamic-umalqura":return new GE;case"japanese":return new FE;case"persian":return new jE;case"roc":return new zE;default:return new Un}}let mc=new Map;class In{constructor(t,n={}){this.formatter=Fb(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 oA()&&(this.resolvedHourCycle||(this.resolvedHourCycle=sA(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 rA={true:{ja:"h11"},false:{}};function Fb(e,t={}){if(typeof t.hour12=="boolean"&&lA()){t={...t};let r=rA[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 An(e,t=Hn()){return os(e)?e.toDate():e.toDate(t)}function iA(e){return e instanceof dr}function os(e){return e instanceof Pa}function Cd(e){return iA(e)||os(e)}function or(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 ar(e,t){return e.compare(t)<0}function yc(e,t){return e.compare(t)>0}function uA(e,t,n){const a=gu(e,n,"sun");return t>a?e.subtract({days:a+7-t}):t===a?e:e.subtract({days:a-t})}function cA(e,t,n){const a=gu(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 If(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 In(r),f=aA(c.resolvedOptions().calendar);return d.includes(a??"day")?cn(new dr(o,i,u,0,0,0),f):cn(new yt(o,i,u),f)}function dA(e){const{defaultValue:t,defaultPlaceholder:n}=e;return t?t.copy():n?n.copy():new aa(0,0,0)}function fA(e,t){const n=[];for(let a=0;at.set({day:x+1})),i=gd(t),u=rv(t),d=uA(i,n,r),c=cA(u,n,r),f=wv(d.subtract({days:1}),i),v=wv(u,c.add({days:1})),p=f.length+o.length+v.length;if(a&&p<42){const S=42-p;let x=v.at(-1);x||(x=rv(t));const E=Array.from({length:S},(L,D)=>{const A=D+1;return x.add({days:A})});v.push(...E)}const h=f.concat(o,v),k=fA(h,7);return{value:t,cells:h,rows:k}}function Or(e){const{numberOfMonths:t,dateObj:n,...a}=e,r=[];if(!t||t===1)return r.push(bc({...a,dateObj:n})),r;r.push(bc({...a,dateObj:n}));for(let l=1;l({label:u(An(S.set({month:E}))),value:E}))}function c(S,x={}){return new In(n.value,{...t,year:"numeric",...x}).format(S)}function f(S,x){return os(S)?new In(n.value,{...t,...x,timeZone:S.timeZone}).formatToParts(An(S)):new In(n.value,{...t,...x}).formatToParts(An(S))}function v(S,x="narrow"){return new In(n.value,{...t,weekday:x}).format(S)}function p(S){const E=new In(n.value,{...t,hour:"numeric",minute:"numeric"}).formatToParts(S).find(L=>L.type==="dayPeriod")?.value;return E==="PM"||E==="pm"||E==="p.m."?"PM":"AM"}const h={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function k(S,x,E={}){const L={...h,...E},A=f(S,L).find(R=>R.type===x);return A?A.value:""}return{setLocale:r,getLocale:a,fullMonth:u,fullYear:c,fullMonthAndYear:i,toParts:f,custom:l,part:k,dayPeriod:p,selectedDate:o,dayOfWeek:v,getMonths:d}}function ma(e){const t=hu({dir:M("ltr")});return _(()=>e?.value||t.dir?.value||"ltr")}function Jr(e){const t=pa(),n=t?.type.emits,a={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(r=>{a[Lo(Wt(r))]=(...l)=>e(r,...l)}),a}let _c=0;function Hb(){kn(e=>{if(!Na)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??$v()),document.body.insertAdjacentElement("beforeend",t[1]??$v()),_c++,e(()=>{_c===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),_c--})})}function $v(){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 qf(e){return _(()=>ln(e)?!!Yr(e)?.closest("form"):!0)}function Ye(){const e=pa(),t=M(),n=_(()=>a());Zd(()=>{n.value!==a()&&F_(t)});function a(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Yr(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 xu(e){const t=pa(),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=K_(e);return _(()=>{const r={},l=t?.vnode.props??{};return Object.keys(l).forEach(o=>{r[Wt(o)]=l[o]}),Object.keys({...n,...r}).reduce((o,i)=>(a.value[i]!==void 0&&(o[i]=a.value[i]),o),{})})}function va(e,t){const n=xu(e),a=t?Jr(t):{};return _(()=>({...n.value,...a}))}var vA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ml=new WeakMap,zs=new WeakMap,js={},xc=0,Kb=function(e){return e&&(e.host||Kb(e.parentNode))},hA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Kb(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})},yA=function(e,t,n,a){var r=hA(t,Array.isArray(e)?e:[e]);js[n]||(js[n]=new WeakMap);var l=js[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(v){if(i.has(v))c(v);else try{var p=v.getAttribute(a),h=p!==null&&p!=="false",k=(ml.get(v)||0)+1,S=(l.get(v)||0)+1;ml.set(v,k),l.set(v,S),o.push(v),k===1&&h&&zs.set(v,!0),S===1&&v.setAttribute(n,"true"),h||v.setAttribute(a,"true")}catch(x){console.error("aria-hidden: cannot operate on ",v,x)}})};return c(t),i.clear(),xc++,function(){o.forEach(function(f){var v=ml.get(f)-1,p=l.get(f)-1;ml.set(f,v),l.set(f,p),v||(zs.has(f)||f.removeAttribute(a),zs.delete(f)),p||f.removeAttribute(n)}),xc--,xc||(ml=new WeakMap,ml=new WeakMap,zs=new WeakMap,js={})}},gA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=vA(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),yA(a,r,n,"aria-hidden")):function(){return null}};function Lf(e){let t;Ve(()=>Yr(e),n=>{let a=!1;try{a=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!a?t=gA(n):t&&t()}),La(()=>{t&&t()})}function Ia(e,t="reka"){let n;const a=hu({useId:void 0});return a.useId?n=a.useId():n=Sy?.(),t?`${t}-${n}`:n}function Ql(){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 ku(e){const t=hu({locale:M("en")});return _(()=>e?.value||t.locale?.value||"en")}function bA(e){const t=M(),n=_(()=>t.value?.width??0),a=_(()=>t.value?.height??0);return wt(()=>{const r=Yr(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 _A(e,t){const n=M(e);function a(l){return t[n.value][l]??n.value}return{state:n,dispatch:l=>{n.value=a(l)}}}function xA(e){const t=lE("",1e3);return{search:t,handleTypeaheadSearch:(r,l)=>{t.value=t.value+r;{const o=Ut(),i=l.map(v=>({...v,textValue:v.value?.textValue??v.ref.textContent?.trim()??""})),u=i.find(v=>v.ref===o),d=i.map(v=>v.textValue),c=wA(d,t.value,u?.textValue),f=i.find(v=>v.textValue===c);return f&&f.ref.focus(),f?.ref}},resetTypeahead:()=>{t.value=""}}}function kA(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function wA(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=kA(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 $A(e,t){const n=M({}),a=M("none"),r=M(e),l=e.value?"mounted":"unmounted";let o;const i=t.value?.ownerDocument.defaultView??_f,{state:u,dispatch:d}=_A(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=S=>{if(Na){const x=new CustomEvent(S,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(x)}};Ve(e,async(S,x)=>{const E=x!==S;if(await Je(),E){const L=a.value,D=Us(t.value);S?(d("MOUNT"),c("enter"),D==="none"&&c("after-enter")):D==="none"||D==="undefined"||n.value?.display==="none"?(d("UNMOUNT"),c("leave"),c("after-leave")):x&&L!==D?(d("ANIMATION_OUT"),c("leave")):(d("UNMOUNT"),c("after-leave"))}},{immediate:!0});const f=S=>{const x=Us(t.value),E=x.includes(CSS.escape(S.animationName)),L=u.value==="mounted"?"enter":"leave";if(S.target===t.value&&E&&(c(`after-${L}`),d("ANIMATION_END"),!r.value)){const D=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=i?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=D)})}S.target===t.value&&x==="none"&&d("ANIMATION_END")},v=S=>{S.target===t.value&&(a.value=Us(t.value))},p=Ve(t,(S,x)=>{S?(n.value=getComputedStyle(S),S.addEventListener("animationstart",v),S.addEventListener("animationcancel",f),S.addEventListener("animationend",f)):(d("ANIMATION_END"),o!==void 0&&i?.clearTimeout(o),x?.removeEventListener("animationstart",v),x?.removeEventListener("animationcancel",f),x?.removeEventListener("animationend",f))},{immediate:!0}),h=Ve(u,()=>{const S=Us(t.value);a.value=u.value==="mounted"?S:"none"});return La(()=>{p(),h()}),{isPresent:_(()=>["mounted","unmountSuspended"].includes(u.value))}}function Us(e){return e&&getComputedStyle(e).animationName||"none"}var Zr=ae({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:a,forceMount:r}=Vt(e),l=M(),{isPresent:o}=$A(a,l);n({present:o});let i=t.default({present:o.value});i=xf(i||[]);const u=pa();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?Dn(t.default({present:o.value})[0],{ref:d=>{const c=Yr(d);return typeof c?.hasAttribute>"u"||(c?.hasAttribute("data-reka-popper-content-wrapper")?l.value=c.firstElementChild:l.value=c),c}}):null}});const Sd=ae({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const a=xf(n.default()),r=a.findIndex(u=>u.type!==Bn);if(r===-1)return a;const l=a[r];delete l.props?.ref;const o=l.props?ze(t,l.props):t,i=sr({...l,props:{}},o);return a.length===1?i:(a[r]=i,a)}}}),CA=["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"&&CA.includes(a)?()=>Dn(a,t):a!=="template"?()=>Dn(e.as,t,{default:n.default}):()=>Dn(Sd,t,{default:n.default})}});function Ur(){const e=M(),t=_(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Yr(e));return{primitiveElement:e,currentElement:t}}const[Ba,SA]=$t("DialogRoot");var EA=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=Mt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=M(),o=M(),{modal:i}=Vt(n);return SA({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)=>ge(u.$slots,"default",{open:s(r),close:()=>r.value=!1})}}),Xr=EA,AA=ae({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ye();const n=Ba();return(a,r)=>(m(),j(s(Qe),ze(t,{type:a.as==="button"?"button":void 0,onClick:r[0]||(r[0]=l=>s(n).onOpenChange(!1))}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["type"]))}}),Hr=AA;const TA="dismissableLayer.pointerDownOutside",DA="dismissableLayer.focusOutside";function Wb(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 kn(o=>{if(!Na||!ln(n))return;const i=async d=>{const c=d.target;if(!(!t?.value||!c)){if(Wb(t.value,c)){r.value=!1;return}if(d.target&&!r.value){let v=function(){gf(TA,e,f)};const f={originalEvent:d};d.pointerType==="touch"?(a.removeEventListener("click",l.value),l.value=v,a.addEventListener("click",l.value,{once:!0})):v()}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:()=>{ln(n)&&(r.value=!0)}}}function MA(e,t,n=!0){const a=t?.value?.ownerDocument??globalThis?.document,r=M(!1);return kn(l=>{if(!Na||!ln(n))return;const o=async i=>{if(!t?.value)return;await Je(),await Je();const u=i.target;!t.value||!u||Wb(t.value,u)||i.target&&!r.value&&gf(DA,e,{originalEvent:i})};a.addEventListener("focusin",o),l(()=>a.removeEventListener("focusin",o))}),{onFocusCapture:()=>{ln(n)&&(r.value=!0)},onBlurCapture:()=>{ln(n)&&(r.value=!1)}}}const mn=Ln({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var PA=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}=Ye(),o=_(()=>l.value?.ownerDocument??globalThis.document),i=_(()=>mn.layersRoot),u=_(()=>l.value?Array.from(i.value).indexOf(l.value):-1),d=_(()=>mn.layersWithOutsidePointerEventsDisabled.size>0),c=_(()=>{const p=Array.from(i.value),[h]=[...mn.layersWithOutsidePointerEventsDisabled].slice(-1),k=p.indexOf(h);return u.value>=k}),f=OA(async p=>{const h=[...mn.branches].some(k=>k?.contains(p.target));!c.value||h||(a("pointerDownOutside",p),a("interactOutside",p),await Je(),p.defaultPrevented||a("dismiss"))},l),v=MA(p=>{[...mn.branches].some(k=>k?.contains(p.target))||(a("focusOutside",p),a("interactOutside",p),p.defaultPrevented||a("dismiss"))},l);return cE("Escape",p=>{u.value===i.value.size-1&&(a("escapeKeyDown",p),p.defaultPrevented||a("dismiss"))}),Ve([l,()=>n.disableOutsidePointerEvents],([p,h],k,S)=>{p&&(h&&(mn.layersWithOutsidePointerEventsDisabled.size===0&&(mn.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),mn.layersWithOutsidePointerEventsDisabled.add(p),S(()=>{mn.layersWithOutsidePointerEventsDisabled.delete(p),mn.layersWithOutsidePointerEventsDisabled.size===0&&!gn(mn.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=mn.originalBodyPointerEvents)})),i.value.add(p))},{immediate:!0}),kn(p=>{p(()=>{l.value&&(i.value.delete(l.value),mn.layersWithOutsidePointerEventsDisabled.delete(l.value))})}),(p,h)=>(m(),j(s(Qe),{ref:s(r),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:bn({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:s(v).onFocusCapture,onBlurCapture:s(v).onBlurCapture,onPointerdownCapture:s(f).onPointerDownCapture},{default:q(()=>[ge(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Nf=PA;const IA=Z3(()=>M([]));function RA(){const e=IA();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Cv(e.value,t),e.value.unshift(t)},remove(t){e.value=Cv(e.value,t),e.value[0]?.resume()}}}function Cv(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}const kc="focusScope.autoFocusOnMount",wc="focusScope.autoFocusOnUnmount",Sv={bubbles:!1,cancelable:!0};function qA(e,{select:t=!1}={}){const n=Ut();for(const a of e)if(Za(a,{select:t}),Ut()!==n)return!0}function LA(e){const t=Gb(e),n=Ev(t,e),a=Ev(t.reverse(),e);return[n,a]}function Gb(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 Ev(e,t){for(const n of e)if(!NA(n,{upTo:t}))return n}function NA(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 BA(e){return e instanceof HTMLInputElement&&"select"in e}function Za(e,{select:t=!1}={}){if(e&&e.focus){const n=Ut();e.focus({preventScroll:!0}),e!==n&&BA(e)&&t&&e.select()}}var FA=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}=Ye(),o=M(null),i=RA(),u=Ln({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});kn(c=>{if(!Na)return;const f=l.value;if(!n.trapped)return;function v(S){if(u.paused||!f)return;const x=S.target;f.contains(x)?o.value=x:Za(o.value,{select:!0})}function p(S){if(u.paused||!f)return;const x=S.relatedTarget;x!==null&&(f.contains(x)||Za(o.value,{select:!0}))}function h(S){const x=o.value;if(x===null||!S.some(D=>D.removedNodes.length>0))return;f.contains(x)||Za(f)}document.addEventListener("focusin",v),document.addEventListener("focusout",p);const k=new MutationObserver(h);f&&k.observe(f,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",p),k.disconnect()})}),kn(async c=>{const f=l.value;if(await Je(),!f)return;i.add(u);const v=Ut();if(!f.contains(v)){const h=new CustomEvent(kc,Sv);f.addEventListener(kc,k=>a("mountAutoFocus",k)),f.dispatchEvent(h),h.defaultPrevented||(qA(Gb(f),{select:!0}),Ut()===v&&Za(f))}c(()=>{f.removeEventListener(kc,S=>a("mountAutoFocus",S));const h=new CustomEvent(wc,Sv),k=S=>{a("unmountAutoFocus",S)};f.addEventListener(wc,k),f.dispatchEvent(h),f.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{h.defaultPrevented||Za(v??document.body,{select:!0}),f.removeEventListener(wc,k),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,v=Ut();if(f&&v){const p=c.currentTarget,[h,k]=LA(p);h&&k?!c.shiftKey&&v===k?(c.preventDefault(),n.loop&&Za(h,{select:!0})):c.shiftKey&&v===h&&(c.preventDefault(),n.loop&&Za(k,{select:!0})):v===p&&c.preventDefault()}}return(c,f)=>(m(),j(s(Qe),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:q(()=>[ge(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),Bf=FA;const VA="menu.itemSelect",Ed=["Enter"," "],zA=["ArrowDown","PageUp","Home"],Yb=["ArrowUp","PageDown","End"],jA=[...zA,...Yb];[...Ed],[...Ed];function Jb(e){return e?"open":"closed"}function Zb(e){return e==="indeterminate"}function Xb(e){return Zb(e)?"indeterminate":e?"checked":"unchecked"}function UA(e){const t=Ut();for(const n of e)if(n===t||(n.focus(),Ut()!==t))return}function HA(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 KA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return HA(n,t)}function Li(e){return e.pointerType==="mouse"}var WA=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=Ba(),{forwardRef:l,currentElement:o}=Ye();return r.titleId||=Ia(void 0,"reka-dialog-title"),r.descriptionId||=Ia(void 0,"reka-dialog-description"),wt(()=>{r.contentElement=o,Ut()!==document.body&&(r.triggerElement.value=Ut())}),(i,u)=>(m(),j(s(Bf),{"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:q(()=>[N(s(Nf),ze({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(Jb)(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:q(()=>[ge(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Qb=WA,GA=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=Ba(),l=Jr(a),{forwardRef:o,currentElement:i}=Ye();return Lf(i),(u,d)=>(m(),j(Qb,ze({...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,v=f.button===0&&f.ctrlKey===!0;(f.button===2||v)&&c.preventDefault()}),onFocusOutside:d[2]||(d[2]=c=>{c.preventDefault()})}),{default:q(()=>[ge(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),YA=GA,JA=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=Jr(t);Ye();const l=Ba(),o=M(!1),i=M(!1);return(u,d)=>(m(),j(Qb,ze({...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:q(()=>[ge(u.$slots,"default")]),_:3},16))}}),ZA=JA,XA=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=Ba(),l=Jr(a),{forwardRef:o}=Ye();return(i,u)=>(m(),j(s(Zr),{present:i.forceMount||s(r).open.value},{default:q(()=>[s(r).modal.value?(m(),j(YA,ze({key:0,ref:s(o)},{...n,...s(l),...i.$attrs}),{default:q(()=>[ge(i.$slots,"default")]),_:3},16)):(m(),j(ZA,ze({key:1,ref:s(o)},{...n,...s(l),...i.$attrs}),{default:q(()=>[ge(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qr=XA,QA=ae({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ye();const n=Ba();return(a,r)=>(m(),j(s(Qe),ze(t,{id:s(n).descriptionId}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["id"]))}}),fr=QA,e4=ae({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Ba();return kf(!0),Ye(),(n,a)=>(m(),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]=ft(()=>{},["left","self","prevent"]))},{default:q(()=>[ge(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),t4=e4,n4=ae({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Ba(),{forwardRef:n}=Ye();return(a,r)=>s(t)?.modal.value?(m(),j(s(Zr),{key:0,present:a.forceMount||s(t).open.value},{default:q(()=>[N(t4,ze(a.$attrs,{ref:s(n),as:a.as,"as-child":a.asChild}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Q("v-if",!0)}}),el=n4,a4=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=iE();return(n,a)=>s(t)||n.forceMount?(m(),j(sx,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[ge(n.$slots,"default")],8,["to","disabled","defer"])):Q("v-if",!0)}}),wu=a4,r4=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)=>(m(),j(s(wu),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),eo=r4,l4=ae({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=Ba();return Ye(),(a,r)=>(m(),j(s(Qe),ze(t,{id:s(n).titleId}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["id"]))}}),tl=l4;const[o4,s4]=$t("AlertDialogContent");var i4=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=Jr(t);Ye();const l=M();return s4({onCancelElementChange:o=>{l.value=o}}),(o,i)=>(m(),j(s(Qr),ze({...n,...s(r)},{role:"alertdialog",onPointerDownOutside:i[0]||(i[0]=ft(()=>{},["prevent"])),onInteractOutside:i[1]||(i[1]=ft(()=>{},["prevent"])),onOpenAutoFocus:i[2]||(i[2]=()=>{Je(()=>{l.value?.focus({preventScroll:!0})})})}),{default:q(()=>[ge(o.$slots,"default")]),_:3},16))}}),u4=i4,c4=ae({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=o4(),{forwardRef:a,currentElement:r}=Ye();return wt(()=>{n.onCancelElementChange(r.value)}),(l,o)=>(m(),j(s(Hr),ze(t,{ref:s(a)}),{default:q(()=>[ge(l.$slots,"default")]),_:3},16))}}),d4=c4,f4=ae({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return Ye(),(n,a)=>(m(),j(s(fr),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),p4=f4,m4=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 Ye(),(n,a)=>(m(),j(s(el),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),v4=m4,h4=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)=>(m(),j(s(wu),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),y4=h4,g4=ae({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const r=va(e,t);return Ye(),(l,o)=>(m(),j(s(Xr),ze(s(r),{modal:!0}),{default:q(i=>[ge(l.$slots,"default",nt(lt(i)))]),_:3},16))}}),b4=g4,_4=ae({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return Ye(),(n,a)=>(m(),j(s(tl),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),x4=_4;const Av="data-reka-collection-item";function Ff(e={}){const{key:t="",isProvider:n=!1}=e,a=`${t}CollectionProvider`;let r;n?(r={collectionRef:M(),itemMap:M(new Map)},ht(a,r)):r=it(a);const l=(c=!1)=>{const f=r.collectionRef.value;if(!f)return[];const v=Array.from(f.querySelectorAll(`[${Av}]`)),h=Array.from(r.itemMap.value.values()).sort((k,S)=>v.indexOf(k.ref)-v.indexOf(S.ref));return c?h:h.filter(k=>k.ref.dataset.disabled!=="")},o=ae({name:"CollectionSlot",inheritAttrs:!1,setup(c,{slots:f,attrs:v}){const{primitiveElement:p,currentElement:h}=Ur();return Ve(h,()=>{r.collectionRef.value=h.value}),()=>Dn(Sd,{ref:p,...v},f)}}),i=ae({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(c,{slots:f,attrs:v}){const{primitiveElement:p,currentElement:h}=Ur();return kn(k=>{if(h.value){const S=pi(h.value);r.itemMap.value.set(S,{ref:h.value,value:c.value}),k(()=>r.itemMap.value.delete(S))}}),()=>Dn(Sd,{...v,[Av]:"",ref:p},f)}}),u=_(()=>Array.from(r.itemMap.value.values())),d=_(()=>r.itemMap.value.size);return{getItems:l,reactiveItems:u,itemMapSize:d,CollectionSlot:o,CollectionItem:i}}var k4=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)=>(m(),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:q(()=>[ge(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Vf=k4,w4=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}=Ur(),r=_(()=>t.checked??t.value);return Ve(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}),v=new Event("change",{bubbles:!0});c.call(i,l),i.dispatchEvent(f),i.dispatchEvent(v)}}),(l,o)=>(m(),j(Vf,ze({ref_key:"primitiveElement",ref:n},{...t,...l.$attrs},{as:"input"}),null,16))}}),Tv=w4,$4=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=_(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),a=_(()=>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)=>(m(),y(pe,null,[Q(" We render single input if it's required "),n.value?(m(),j(Tv,ze({key:r.name},{...t,...r.$attrs},{name:r.name,value:r.value}),null,16,["name","value"])):(m(!0),y(pe,{key:1},Ie(a.value,o=>(m(),j(Tv,ze({key:o.name},{ref_for:!0},{...t,...r.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),zf=$4;const C4="rovingFocusGroup.onEntryFocus",S4={bubbles:!1,cancelable:!0},E4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function T4(e,t,n){const a=A4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return E4[a]}function e1(e,t=!1){const n=Ut();for(const a of e)if(a===n||(a.focus({preventScroll:t}),Ut()!==n))return}function D4(e,t){return e.map((n,a)=>e[(t+a)%e.length])}const[t1,O4]=$t("PopperRoot");var M4=ae({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=M();return O4({anchor:t,onAnchorChange:n=>t.value=n}),(n,a)=>ge(n.$slots,"default")}}),n1=M4,P4=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}=Ye(),r=t1();return ky(()=>{r.onAnchorChange(t.reference??a.value)}),(l,o)=>(m(),j(s(Qe),{ref:s(n),as:l.as,"as-child":l.asChild},{default:q(()=>[ge(l.$slots,"default")]),_:3},8,["as","as-child"]))}}),jf=P4;function I4(e){return e!==null}function R4(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]=Ad(n),f={start:"0%",center:"50%",end:"100%"}[c],v=(r.arrow?.x??0)+i/2,p=(r.arrow?.y??0)+u/2;let h="",k="";return d==="bottom"?(h=o?f:`${v}px`,k=`${-u}px`):d==="top"?(h=o?f:`${v}px`,k=`${a.floating.height+u}px`):d==="right"?(h=`${-u}px`,k=o?f:`${p}px`):d==="left"&&(h=`${a.floating.width+u}px`,k=o?f:`${p}px`),{data:{x:h,y:k}}}}}function Ad(e){const[t,n="center"]=e.split("-");return[t,n]}const q4=["top","right","bottom","left"],pr=Math.min,Ea=Math.max,Ni=Math.round,Hs=Math.floor,Aa=e=>({x:e,y:e}),L4={left:"right",right:"left",bottom:"top",top:"bottom"};function a1(e,t,n){return Ea(e,pr(t,n))}function Ra(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function to(e){return e.split("-")[1]}function Uf(e){return e==="x"?"y":"x"}function Hf(e){return e==="y"?"height":"width"}function ra(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Kf(e){return Uf(ra(e))}function N4(e,t,n){n===void 0&&(n=!1);const a=to(e),r=Kf(e),l=Hf(r);let o=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=Bi(o)),[o,Bi(o)]}function B4(e){const t=Bi(e);return[Td(e),t,Td(t)]}function Td(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dv=["left","right"],Ov=["right","left"],F4=["top","bottom"],V4=["bottom","top"];function z4(e,t,n){switch(e){case"top":case"bottom":return n?t?Ov:Dv:t?Dv:Ov;case"left":case"right":return t?F4:V4;default:return[]}}function j4(e,t,n,a){const r=to(e);let l=z4(mr(e),n==="start",a);return r&&(l=l.map(o=>o+"-"+r),t&&(l=l.concat(l.map(Td)))),l}function Bi(e){const t=mr(e);return L4[t]+e.slice(t.length)}function U4(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 r1(e){return typeof e!="number"?U4(e):{top:e,right:e,bottom:e,left:e}}function Fi(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 Mv(e,t,n){let{reference:a,floating:r}=e;const l=ra(t),o=Kf(t),i=Hf(o),u=mr(t),d=l==="y",c=a.x+a.width/2-r.width/2,f=a.y+a.height/2-r.height/2,v=a[i]/2-r[i]/2;let p;switch(u){case"top":p={x:c,y:a.y-r.height};break;case"bottom":p={x:c,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:f};break;case"left":p={x:a.x-r.width,y:f};break;default:p={x:a.x,y:a.y}}const h=to(t);return h&&(p[o]+=v*(h==="end"?1:-1)*(n&&d?-1:1)),p}async function H4(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:v=!1,padding:p=0}=Ra(t,e),h=r1(p),S=i[v?f==="floating"?"reference":"floating":f],x=Fi(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})),E=f==="floating"?{x:a,y:r,width:o.floating.width,height:o.floating.height}:o.reference,L=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),D=await(l.isElement==null?void 0:l.isElement(L))&&await(l.getScale==null?void 0:l.getScale(L))||{x:1,y:1},A=Fi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:E,offsetParent:L,strategy:u}):E);return{top:(x.top-A.top+h.top)/D.y,bottom:(A.bottom-x.bottom+h.bottom)/D.y,left:(x.left-A.left+h.left)/D.x,right:(A.right-x.right+h.right)/D.x}}const K4=50,W4=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:l=[],platform:o}=n,i=o.detectOverflow?o:{...o,detectOverflow:H4},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}=Mv(d,a,u),v=a,p=0;const h={};for(let k=0;k({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}=Ra(e,t)||{};if(d==null)return{};const f=r1(c),v={x:n,y:a},p=Kf(r),h=Hf(p),k=await o.getDimensions(d),S=p==="y",x=S?"top":"left",E=S?"bottom":"right",L=S?"clientHeight":"clientWidth",D=l.reference[h]+l.reference[p]-v[p]-l.floating[h],A=v[p]-l.reference[p],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let F=R?R[L]:0;(!F||!await(o.isElement==null?void 0:o.isElement(R)))&&(F=i.floating[L]||l.floating[h]);const W=D/2-A/2,C=F/2-k[h]/2-1,I=pr(f[x],C),z=pr(f[E],C),O=F-k[h]-z,B=F/2-k[h]/2+W,J=a1(I,B,O),K=!u.arrow&&to(r)!=null&&B!==J&&l.reference[h]/2-(BJ<=0)){var z,O;const J=(((z=l.flip)==null?void 0:z.index)||0)+1,K=F[J];if(K&&(!(f==="alignment"?E!==ra(K):!1)||I.every(ue=>ra(ue.placement)===E?ue.overflows[0]>0:!0)))return{data:{index:J,overflows:I},reset:{placement:K}};let H=(O=I.filter(le=>le.overflows[0]<=0).sort((le,ue)=>le.overflows[1]-ue.overflows[1])[0])==null?void 0:O.placement;if(!H)switch(p){case"bestFit":{var B;const le=(B=I.filter(ue=>{if(R){const we=ra(ue.placement);return we===E||we==="y"}return!0}).map(ue=>[ue.placement,ue.overflows.filter(we=>we>0).reduce((we,Oe)=>we+Oe,0)]).sort((ue,we)=>ue[1]-we[1])[0])==null?void 0:B[0];le&&(H=le);break}case"initialPlacement":H=i;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function Pv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Iv(e){return q4.some(t=>e[t]>=0)}const J4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:r="referenceHidden",...l}=Ra(e,t);switch(r){case"referenceHidden":{const o=await a.detectOverflow(t,{...l,elementContext:"reference"}),i=Pv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Iv(i)}}}case"escaped":{const o=await a.detectOverflow(t,{...l,altBoundary:!0}),i=Pv(o,n.floating);return{data:{escapedOffsets:i,escaped:Iv(i)}}}default:return{}}}}},l1=new Set(["left","top"]);async function Z4(e,t){const{placement:n,platform:a,elements:r}=e,l=await(a.isRTL==null?void 0:a.isRTL(r.floating)),o=mr(n),i=to(n),u=ra(n)==="y",d=l1.has(o)?-1:1,c=l&&u?-1:1,f=Ra(t,e);let{mainAxis:v,crossAxis:p,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"&&(p=i==="end"?h*-1:h),u?{x:p*c,y:v*d}:{x:v*d,y:p*c}}const X4=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 Z4(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}}}}},Q4=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:E=>{let{x:L,y:D}=E;return{x:L,y:D}}},...d}=Ra(e,t),c={x:n,y:a},f=await l.detectOverflow(t,d),v=ra(r),p=Uf(v);let h=c[p],k=c[v];const S=(E,L)=>a1(L+f[E==="y"?"top":"left"],L,L-f[E==="y"?"bottom":"right"]);o&&(h=S(p,h)),i&&(k=S(v,k));const x=u.fn({...t,[p]:h,[v]:k});return{...x,data:{x:x.x-n,y:x.y-a,enabled:{[p]:o,[v]:i}}}}}},eT=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}=Ra(e,t),v={x:r,y:l},p=ra(o),h=Uf(p);let k=v[h],S=v[p];const x=Ra(d,t),E=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:(n=x.mainAxis)!=null?n:0,crossAxis:(a=x.crossAxis)!=null?a:0};if(c){const A=h==="y"?"height":"width",R=i.reference[h]-i.floating[A]+E.mainAxis,F=i.reference[h]+i.reference[A]-E.mainAxis;kF&&(k=F)}if(f){var L,D;const A=h==="y"?"width":"height",R=l1.has(mr(o)),F=i.reference[p]-i.floating[A]+(R&&((L=u.offset)==null?void 0:L[p])||0)+(R?0:E.crossAxis),W=i.reference[p]+i.reference[A]+(R?0:((D=u.offset)==null?void 0:D[p])||0)-(R?E.crossAxis:0);SW&&(S=W)}return{[h]:k,[p]:S}}}},tT=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}=Ra(e,t),u=await r.detectOverflow(t,i),d=mr(n),c=to(n),f=ra(n)==="y",{width:v,height:p}=a.floating;let h,k;d==="top"||d==="bottom"?(h=d,k=c===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(k=d,h=c==="end"?"top":"bottom");const S=p-u.top-u.bottom,x=v-u.left-u.right,E=pr(p-u[h],S),L=pr(v-u[k],x),D=t.middlewareData.shift,A=!D;let R=E,F=L;D!=null&&D.enabled.x&&(F=x),D!=null&&D.enabled.y&&(R=S),A&&!c&&(f?F=v-2*Ea(u.left,u.right):R=p-2*Ea(u.top,u.bottom)),await o({...t,availableWidth:F,availableHeight:R});const W=await r.getDimensions(l.floating);return v!==W.width||p!==W.height?{reset:{rects:!0}}:{}}}};function $u(){return typeof window<"u"}function nl(e){return Wf(e)?(e.nodeName||"").toLowerCase():"#document"}function fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fa(e){var t;return(t=(Wf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wf(e){return $u()?e instanceof Node||e instanceof fn(e).Node:!1}function da(e){return $u()?e instanceof Element||e instanceof fn(e).Element:!1}function kr(e){return $u()?e instanceof HTMLElement||e instanceof fn(e).HTMLElement:!1}function Rv(e){return!$u()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fn(e).ShadowRoot}function Cu(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=fa(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function nT(e){return/^(table|td|th)$/.test(nl(e))}function Su(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const aT=/transform|translate|scale|rotate|perspective|filter/,rT=/paint|layout|strict|content/,Mr=e=>!!e&&e!=="none";let $c;function Gf(e){const t=da(e)?fa(e):e;return Mr(t.transform)||Mr(t.translate)||Mr(t.scale)||Mr(t.rotate)||Mr(t.perspective)||!Yf()&&(Mr(t.backdropFilter)||Mr(t.filter))||aT.test(t.willChange||"")||rT.test(t.contain||"")}function lT(e){let t=Kr(e);for(;kr(t)&&!is(t);){if(Gf(t))return t;if(Su(t))return null;t=Kr(t)}return null}function Yf(){return $c==null&&($c=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$c}function is(e){return/^(html|body|#document)$/.test(nl(e))}function fa(e){return fn(e).getComputedStyle(e)}function Eu(e){return da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kr(e){if(nl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rv(e)&&e.host||Fa(e);return Rv(t)?t.host:t}function o1(e){const t=Kr(e);return is(t)?(e.ownerDocument||e).body:kr(t)&&Cu(t)?t:o1(t)}function us(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=o1(e),l=r===((a=e.ownerDocument)==null?void 0:a.body),o=fn(r);if(l){const i=Dd(o);return t.concat(o,o.visualViewport||[],Cu(r)?r:[],i&&n?us(i):[])}else return t.concat(r,us(r,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function s1(e){const t=fa(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=kr(e),l=r?e.offsetWidth:n,o=r?e.offsetHeight:a,i=Ni(n)!==l||Ni(a)!==o;return i&&(n=l,a=o),{width:n,height:a,$:i}}function Jf(e){return da(e)?e:e.contextElement}function Bl(e){const t=Jf(e);if(!kr(t))return Aa(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:l}=s1(t);let o=(l?Ni(n.width):n.width)/a,i=(l?Ni(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const oT=Aa(0);function i1(e){const t=fn(e);return!Yf()||!t.visualViewport?oT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sT(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===fn(e)}function Wr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),l=Jf(e);let o=Aa(1);t&&(a?da(a)&&(o=Bl(a)):o=Bl(e));const i=sT(l,n,a)?i1(l):Aa(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 v=fn(l),p=da(a)?fn(a):a;let h=v,k=Dd(h);for(;k&&p!==h;){const S=Bl(k),x=k.getBoundingClientRect(),E=fa(k),L=x.left+(k.clientLeft+parseFloat(E.paddingLeft))*S.x,D=x.top+(k.clientTop+parseFloat(E.paddingTop))*S.y;u*=S.x,d*=S.y,c*=S.x,f*=S.y,u+=L,d+=D,h=fn(k),k=Dd(h)}}return Fi({width:c,height:f,x:u,y:d})}function Au(e,t){const n=Eu(e).scrollLeft;return t?t.left+n:Wr(Fa(e)).left+n}function u1(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-Au(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function iT(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const l=r==="fixed",o=Fa(a),i=t?Su(t.floating):!1;if(a===o||i&&l)return n;let u={scrollLeft:0,scrollTop:0},d=Aa(1);const c=Aa(0),f=kr(a);if((f||!l)&&((nl(a)!=="body"||Cu(o))&&(u=Eu(a)),f)){const p=Wr(a);d=Bl(a),c.x=p.x+a.clientLeft,c.y=p.y+a.clientTop}const v=o&&!f&&!l?u1(o,u):Aa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+c.x+v.x,y:n.y*d.y-u.scrollTop*d.y+c.y+v.y}}function uT(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function cT(e){const t=Eu(e),n=e.ownerDocument.body,a=Ea(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Ea(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+Au(e);const o=-t.scrollTop;return fa(n).direction==="rtl"&&(l+=Ea(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:l,y:o}}const dT=25;function fT(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",r=fn(e),l=Fa(e),o=r.visualViewport;let i=l.clientWidth,u=l.clientHeight,d=0,c=0;if(o){const v=!Yf()||t==="fixed";a?v||(d=-o.offsetLeft,c=-o.offsetTop):(i=o.width,u=o.height,v&&(d=o.offsetLeft,c=o.offsetTop))}if(Au(l)<=0){const v=l.ownerDocument,p=v.body,h=getComputedStyle(p),k=v.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,S=Math.abs(l.clientWidth-p.clientWidth-k),x=getComputedStyle(l).scrollbarGutter==="stable both-edges"?S/2:S;x<=dT&&(i-=x)}return{width:i,height:u,x:d,y:c}}function pT(e,t){const n=Wr(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,l=Bl(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 qv(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=fT(e,n,t);else if(t==="document")a=cT(Fa(e));else if(da(t))a=pT(t,n);else{const r=i1(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Fi(a)}function mT(e,t){const n=t.get(e);if(n)return n;let a=us(e,[],!1).filter(i=>da(i)&&nl(i)!=="body"),r=null;const l=fa(e).position==="fixed";let o=l?Kr(e):e;for(;da(o)&&!is(o);){const i=fa(o),u=Gf(o),d=r?r.position:l?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&i.position==="static")?a=a.filter(f=>f!==o):r=i,o=Kr(o)}return t.set(e,a),a}function vT(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const o=[...n==="clippingAncestors"?Su(t)?[]:mT(t,this._c):[].concat(n),a],i=qv(t,o[0],r);let u=i.top,d=i.right,c=i.bottom,f=i.left;for(let v=1;v{i(!1,1e-7)},1e3)}F=!1}try{a=new IntersectionObserver(W,{...R,root:l.ownerDocument})}catch{a=new IntersectionObserver(W,R)}a.observe(e)}const u=fn(e),d=()=>i(n);return u.addEventListener("resize",d),i(!0),()=>{u.removeEventListener("resize",d),o()}}function kT(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=Jf(e),c=r||l?[...d?us(d):[],...t?us(t):[]]:[];c.forEach(x=>{r&&x.addEventListener("scroll",n),l&&x.addEventListener("resize",n)});const f=d&&i?xT(d,n,l):null;let v=-1,p=null;o&&(p=new ResizeObserver(x=>{let[E]=x;E&&E.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var L;(L=p)==null||L.observe(t)})),n()}),d&&!u&&p.observe(d),t&&p.observe(t));let h,k=u?Wr(e):null;u&&S();function S(){const x=Wr(e);k&&!d1(k,x)&&n(),k=x,h=requestAnimationFrame(S)}return n(),()=>{var x;c.forEach(E=>{r&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),f?.(),(x=p)==null||x.disconnect(),p=null,u&&cancelAnimationFrame(h)}}const wT=X4,$T=Q4,Nv=Y4,CT=tT,ST=J4,ET=G4,AT=eT,TT=(e,t,n)=>{const a=new Map,r=n??{},l={..._T,...r.platform,_c:a};return W4(e,t,{...r,platform:l})};function DT(e){return e!=null&&typeof e=="object"&&"$el"in e}function Od(e){if(DT(e)){const t=e.$el;return Wf(t)&&nl(t)==="#comment"?null:t}return e}function wl(e){return typeof e=="function"?e():s(e)}function OT(e){return{name:"arrow",options:e,fn(t){const n=Od(wl(e.element));return n==null?{}:ET({element:n,padding:e.padding}).fn(t)}}}function f1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bv(e,t){const n=f1(e);return Math.round(t*n)/n}function MT(e,t,n){n===void 0&&(n={});const a=n.whileElementsMounted,r=_(()=>{var F;return(F=wl(n.open))!=null?F:!0}),l=_(()=>wl(n.middleware)),o=_(()=>{var F;return(F=wl(n.placement))!=null?F:"bottom"}),i=_(()=>{var F;return(F=wl(n.strategy))!=null?F:"absolute"}),u=_(()=>{var F;return(F=wl(n.transform))!=null?F:!0}),d=_(()=>Od(e.value)),c=_(()=>Od(t.value)),f=M(0),v=M(0),p=M(i.value),h=M(o.value),k=Jl({}),S=M(!1),x=_(()=>{const F={position:p.value,left:"0",top:"0"};if(!c.value)return F;const W=Bv(c.value,f.value),C=Bv(c.value,v.value);return u.value?{...F,transform:"translate("+W+"px, "+C+"px)",...f1(c.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:W+"px",top:C+"px"}});let E;function L(){if(d.value==null||c.value==null)return;const F=r.value;TT(d.value,c.value,{middleware:l.value,placement:o.value,strategy:i.value}).then(W=>{f.value=W.x,v.value=W.y,p.value=W.strategy,h.value=W.placement,k.value=W.middlewareData,S.value=F!==!1})}function D(){typeof E=="function"&&(E(),E=void 0)}function A(){if(D(),a===void 0){L();return}if(d.value!=null&&c.value!=null){E=a(d.value,c.value,L);return}}function R(){r.value||(S.value=!1)}return Ve([l,o,i,r],L,{flush:"sync"}),Ve([d,c],A,{flush:"sync"}),Ve(r,R,{flush:"sync"}),Kd()&&Jh(D),{x:dl(f),y:dl(v),strategy:dl(p),placement:dl(h),middlewareData:dl(k),isPositioned:dl(S),floatingStyles:x,update:L}}const p1={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},[CU,PT]=$t("PopperContent");var IT=ae({inheritAttrs:!1,__name:"PopperContent",props:Ny({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}},{...p1}),emits:["placed"],setup(e,{emit:t}){const n=e,a=t,r=t1(),{forwardRef:l,currentElement:o}=Ye(),i=M(),u=M(),{width:d,height:c}=bA(u),f=_(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),v=_(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=_(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=_(()=>({padding:v.value,boundary:p.value.filter(I4),altBoundary:p.value.length>0})),k=_(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),S=J3(()=>[wT({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Nv({...h.value,...k.value}),n.avoidCollisions&&$T({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?AT():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Nv({...h.value,...k.value}),CT({...h.value,apply:({elements:O,rects:B,availableWidth:J,availableHeight:K})=>{const{width:H,height:le}=B.reference,ue=O.floating.style;ue.setProperty("--reka-popper-available-width",`${J}px`),ue.setProperty("--reka-popper-available-height",`${K}px`),ue.setProperty("--reka-popper-anchor-width",`${H}px`),ue.setProperty("--reka-popper-anchor-height",`${le}px`)}}),u.value&&OT({element:u.value,padding:n.arrowPadding}),R4({arrowWidth:d.value,arrowHeight:c.value}),n.hideWhenDetached&&ST({strategy:"referenceHidden",...h.value})]),x=_(()=>n.reference??r.anchor.value),{floatingStyles:E,placement:L,isPositioned:D,middlewareData:A}=MT(x,i,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...O)=>kT(...O,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:S}),R=_(()=>Ad(L.value)[0]),F=_(()=>Ad(L.value)[1]);ky(()=>{D.value&&a("placed")});const W=_(()=>{const O=A.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&O}),C=M("");kn(()=>{o.value&&(C.value=window.getComputedStyle(o.value).zIndex)});const I=_(()=>A.value.arrow?.x??0),z=_(()=>A.value.arrow?.y??0);return PT({placedSide:R,onArrowChange:O=>u.value=O,arrowX:I,arrowY:z,shouldHideArrow:W}),(O,B)=>(m(),y("div",{ref_key:"floatingRef",ref:i,"data-reka-popper-content-wrapper":"",style:bn({...s(E),transform:s(D)?s(E).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),ze({ref:s(l)},O.$attrs,{"as-child":n.asChild,as:O.as,"data-side":R.value,"data-align":F.value,style:{animation:s(D)?void 0:"none"}}),{default:q(()=>[ge(O.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),m1=IT;const Zf=["day","month","year"],Xf=["hour","minute","second","dayPeriod"],v1=[...Zf,...Xf];function RT(e){return Zf.includes(e)}function h1(e){return v1.includes(e)}const qT=["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"],LT=["year","month","day"],Sc={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 NT(e){if(Fv(e))return Sc[e];{const t=zT(e);return Fv(t)?Sc[t]:Sc.en}}function Ec(e,t,n){return BT(e)?NT(n)[e]:VT(e)?t:FT(e)?"––":""}function Fv(e){return qT.includes(e)}function BT(e){return LT.includes(e)}function FT(e){return e==="hour"||e==="minute"||e==="second"}function VT(e){return e==="era"||e==="dayPeriod"}function zT(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const jT=["hour","minute","second"];function Md(e){return Object.fromEntries(Xf.map(t=>t==="dayPeriod"?[t,e.formatter.dayPeriod(An(e.value))]:[t,e.value[t]]))}function Vv(e){const{formatter:t}=e,n=Zf.map(a=>[a,e.value[a]]);if("hour"in e.value){const a=Md({value:e.value,formatter:t});return{...Object.fromEntries(n),...a}}return Object.fromEntries(n)}function UT(e){return Object.fromEntries(Xf.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 HT(e){const t=v1.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"?!jT.includes(n)&&n!=="dayPeriod":!0);return Object.fromEntries(t)}function KT(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:ss(e.hourCycle)}):n.part(e.dateRef.set({[o]:i}),o,{hourCycle:ss(e.hourCycle)}):Ec(o,"",a.value)}else{if(RT(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):Ec(o,"",a.value)}return""}}return Object.keys(t).reduce((o,i)=>{if(!h1(i))return o;if("hour"in t&&i==="dayPeriod"){const u=t[i];u!==null?o[i]=u:o[i]=Ec(i,"AM",a.value)}else o[i]=r(i);return o},{})}function WT(e){const{granularity:t,formatter:n,contentObj:a,hideTimeZone:r,hourCycle:l,isTimeValue:o}=e;return n.toParts(e.dateRef,pA(t,l,o)).map(d=>["literal","timeZoneName",null].includes(d.type)||!h1(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"&&(!os(e.dateRef)||r)||(!os(e.dateRef)||r)&&d.part==="literal"&&["[","]"].includes(d.value.trim())))}function y1(e){const t=KT(e),n=WT({contentObj:t,...e});return{obj:t,arr:n}}function ba(e){const t=Ql();return e===t.ARROW_RIGHT||e===t.ARROW_LEFT}function Ir(e){return!Number.isNaN(Number.parseInt(e))}function Ka(e){const t=Ql();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)||Ir(e))}function zv(e){return Array.from(e.querySelectorAll("[data-reka-date-field-segment]")).filter(t=>t.getAttribute("data-reka-date-field-segment")!=="literal")}function jv(e){return Array.from(e.querySelectorAll("[data-reka-time-field-segment]")).filter(t=>t.getAttribute("data-reka-time-field-segment")!=="literal")}const GT=/^\d$/;function wr(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 YT(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=or(l),d=a?"Empty":`${o}`;return{...wr(e),"aria-label":"day,","aria-valuemin":i,"aria-valuemax":u,"aria-valuenow":o,"aria-valuetext":d,"data-placeholder":a?"":void 0}}function JT(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(An(l))}`;return{...wr(e),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":i,"aria-valuemax":u,"aria-valuenow":o,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function ZT(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{...wr(e),"aria-label":"year, ","aria-valuemin":l,"aria-valuemax":o,"aria-valuenow":i,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function XT(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{...wr(e),"aria-label":"hour, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":u,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function QT(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{...wr(e),"aria-label":"minute, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function eD(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{...wr(e),"aria-label":"second, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function tD(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{...wr(e),inputmode:"text","aria-label":"AM/PM","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":r,"aria-valuetext":l}}function nD(e){return{"aria-hidden":!0,"data-segment":"literal"}}function aD(e){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:e.disabled?void 0:0,style:"caret-color: transparent;"}}function rD(e){const{segmentValues:t,placeholder:n}=e,a=0,r=0,l=0,o="era"in t?t.era:n.era;return{...wr(e),"aria-label":"era","aria-valuemin":a,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":o}}const lD={day:{attrs:YT},month:{attrs:JT},year:{attrs:ZT},hour:{attrs:XT},minute:{attrs:QT},second:{attrs:eD},dayPeriod:{attrs:tD},literal:{attrs:nD},timeZoneName:{attrs:aD},era:{attrs:rD}};function g1(e){const t=Ql();function n({e:C,part:I,dateRef:z,prevValue:O}){const B=e.step.value[I]??1,J=C.key===t.ARROW_UP?B:-B,K=0,H=59;if(O===null)return J>0?K:H;const le=[I,J];return z.set({[I]:O}).cycle(...le)[I]}function a(C){if(e.hasLeftFocus.value=!1,C===null)return C;const I=C.toString();return I.length===1?(e.modelValue.value=void 0,null):Number.parseInt(I.slice(0,-1))}function r({e:C,part:I,dateRef:z,prevValue:O}){const B=e.step.value[I]??1,J=C.key===t.ARROW_UP?B:-B;if(O===null)return z[I];if(I==="hour"&&"hour"in z){const H=[I,J];return z.set({[I]:O}).cycle(...H)[I]}const K=[I,J];return I==="day"?z.set({[I]:O,month:e.segmentValues.value.month??1}).cycle(...K)[I]:z.set({[I]:O}).cycle(...K)[I]}function l(C,I,z){let O=!1;const B=Math.floor(C/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,z=null),z===null)return I===0?(e.lastKeyZero.value=!0,{value:null,moveToNext:O}):((e.lastKeyZero.value||I>B)&&(O=!0),e.lastKeyZero.value=!1,{value:I,moveToNext:O});const J=z.toString().length,K=Number.parseInt(z.toString()+I.toString());return J===2||K>C?((I>B||K>C)&&(O=!0),{value:I,moveToNext:O}):(O=!0,{value:K,moveToNext:O})}function o(C,I){let O=!1;const B=Math.floor(59/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,I=null),I===null)return C===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:O}):((e.lastKeyZero.value||C>B)&&(O=!0),e.lastKeyZero.value=!1,{value:C,moveToNext:O});const J=I.toString().length,K=Number.parseInt(I.toString()+C.toString());return J===2||K>59?(C>B&&(O=!0),{value:C,moveToNext:O}):(O=!0,{value:K,moveToNext:O})}function i(C,I,z){let O=!1;const B=Math.floor(C/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,z=null),z===null)return I===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:O}):((e.lastKeyZero.value||I>B)&&(O=!0),e.lastKeyZero.value=!1,{value:I,moveToNext:O});const J=z.toString().length,K=Number.parseInt(z.toString()+I.toString());return J===2||K>C?(I>B&&(O=!0),{value:I,moveToNext:O}):(O=!0,{value:K,moveToNext:O})}function u(C,I){let z=!1;if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,I=null),I===null)return{value:C===0?1:C,moveToNext:z};const O=I.toString()+C.toString();return O.length>4?{value:C===0?1:C,moveToNext:z}:(O.length===4&&(z=!0),{value:Number.parseInt(O),moveToNext:z})}const d=_(()=>lD[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(!Ka(C.key)||ba(C.key))return;const I=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:I});return}if(Ir(C.key)){const z=Number.parseInt(C.key),O=e.segmentValues.value.month,B=O?or(e.placeholder.value.set({month:O})):31,{value:J,moveToNext:K}=l(B,z,I);e.segmentValues.value.day=J,K&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.day=a(I))}function f(C){if(!Ka(C.key)||ba(C.key))return;const I=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:I});return}if(Ir(C.key)){const z=Number.parseInt(C.key),{value:O,moveToNext:B}=l(12,z,I);e.segmentValues.value.month=O,B&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.month=a(I))}function v(C){if(!Ka(C.key)||ba(C.key))return;const I=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:I});return}if(Ir(C.key)){const z=Number.parseInt(C.key),{value:O,moveToNext:B}=u(z,I);e.segmentValues.value.year=O,B&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.year=a(I))}function p(C){const I=new In(C,{hour:"numeric"}).resolvedOptions().hourCycle;return I==="h11"||I==="h12"}function h(C){const I=e.placeholder.value;if(!Ka(C.key)||ba(C.key)||!("hour"in I)||!("hour"in e.segmentValues.value))return;const z=e.segmentValues.value.hour;if(C.key===t.ARROW_UP||C.key===t.ARROW_DOWN){const O=r({e:C,part:"hour",dateRef:e.placeholder.value,prevValue:z});e.segmentValues.value.hour=O,"dayPeriod"in e.segmentValues.value&&O!==null&&(e.segmentValues.value.dayPeriod=O>=12?"PM":"AM");return}if(Ir(C.key)){const O=Number.parseInt(C.key),B=e.hourCycle!==void 0?e.hourCycle===12:p(e.formatter.getLocale()),J=B?12:24;let K=z;B&&z!==null&&(K=z%12===0?0:z>12?z-12:z);const{value:H,moveToNext:le}=i(J,O,K);let ue=H;if(B&&H!==null){const we=e.segmentValues.value.dayPeriod||"AM";H===12?ue=we==="AM"?0:12:ue=we==="PM"?H+12:H}e.segmentValues.value.hour=ue,le&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.hour=a(z))}function k(C){const I=e.placeholder.value;if(!Ka(C.key)||ba(C.key)||!("minute"in I)||!("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})),Ir(C.key)){const O=Number.parseInt(C.key),{value:B,moveToNext:J}=o(O,z);e.segmentValues.value.minute=B,J&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.minute=a(z))}function S(C){const I=e.placeholder.value;if(!Ka(C.key)||ba(C.key)||!("second"in I)||!("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})),Ir(C.key)){const O=Number.parseInt(C.key),{value:B,moveToNext:J}=o(O,z);e.segmentValues.value.second=B,J&&e.focusNext()}C.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.second=a(z))}function x(C){if(!((!Ka(C.key)||ba(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 E(C){e.disabled.value&&C.preventDefault()}function L(C){if(C.isComposing||C.key==="Process")return;const I=e.disabled.value,z=e.readonly.value;if(I||z)return;if(C.key!==t.TAB&&C.preventDefault(),{day:c,month:f,year:v,hour:h,minute:k,second:S,dayPeriod:x,timeZoneName:()=>{}}[e.part](C),![t.ARROW_LEFT,t.ARROW_RIGHT].includes(C.key)&&C.key!==t.TAB&&C.key!==t.SHIFT&&Ka(C.key)&&Object.values(e.segmentValues.value).every(B=>B!==null)){const B={...e.segmentValues.value},J=e.placeholder.value.set(B);e.modelValue.value=J.copy()}}function D(){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=sc(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=sc(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=sc(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 R(C){C.isComposing||C.preventDefault()}function F(C){const I=C.target;A=Array.from(I.childNodes,z=>({node:z,value:z.nodeValue}))}function W(C){const I=C.target,z=A;if(A=null,z){for(const{node:B,value:J}of z)B.nodeValue=J;I.replaceChildren(...z.map(B=>B.node))}const O=C.data;if(O)for(const B of O){if(!GT.test(B))continue;const J=Ut();if(!(J instanceof HTMLElement))break;J.dispatchEvent(new KeyboardEvent("keydown",{key:B,bubbles:!0,cancelable:!0}))}}return{handleSegmentClick:E,handleSegmentKeydown:L,handleSegmentBeforeInput:R,handleSegmentCompositionStart:F,handleSegmentCompositionEnd:W,handleSegmentFocusOut:D,attributes:d}}function oD(e){function t(l){return Array.isArray(e.date.value)?e.date.value.some(o=>cr(o,l)):e.date.value?cr(e.date.value,l):!1}const n=_(()=>{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=_(()=>Array.isArray(e.date.value)?e.date.value.length>0:!!e.date.value),r=_(()=>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 sD(e,t){const n=t(e),a=n.compare(e),r={};return a>=7&&(r.day=1),a>=or(e)&&(r.month=1),n.set({...r})}function iD(e,t){const n=t(e),a=e.compare(n),r={};return a>=7&&(r.day=35),a>=or(e)&&(r.month=13),n.set({...r})}function uD(e,t){return t(e)}function cD(e,t){return t(e)}function dD(e){const t=Rf(e.locale.value),n=_(()=>{const x={calendar:e.placeholder.value.calendar.identifier};return e.placeholder.value.calendar.identifier==="gregory"&&e.placeholder.value.era==="BC"&&(x.era="short"),x}),a=M(Or({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})),r=_(()=>a.value.map(x=>x.value));function l(x){return!r.value.some(E=>nv(x,E))}const o=x=>{if(!e.maxValue.value||!a.value.length)return!1;if(e.disabled.value)return!0;const E=a.value.at(-1).value;if(!x&&!e.nextPage.value){const D=E.add({months:1}).set({day:1});return yc(D,e.maxValue.value)}const L=sD(E,x||e.nextPage.value);return yc(L,e.maxValue.value)},i=x=>{if(!e.minValue.value||!a.value.length)return!1;if(e.disabled.value)return!0;const E=a.value[0].value;if(!x&&!e.prevPage.value){const D=E.subtract({months:1}).set({day:35});return ar(D,e.minValue.value)}const L=iD(E,x||e.prevPage.value);return ar(L,e.minValue.value)};function u(x){return!!(e.isDateDisabled?.(x)||e.disabled.value||e.maxValue.value&&yc(x,e.maxValue.value)||e.minValue.value&&ar(x,e.minValue.value))}const d=x=>!!e.isDateUnavailable?.(x),c=_(()=>a.value.length?a.value[0].rows[0].map(x=>t.dayOfWeek(An(x),e.weekdayFormat.value)):[]),f=x=>{const E=a.value[0].value;if(!x&&!e.nextPage.value){const R=E.add({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),F=Or({dateObj:R,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=F,e.placeholder.value=F[0].value.set({day:1});return}const L=uD(E,x||e.nextPage.value),D=Or({dateObj:L,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=D;const A={};if(!x){const R=D[0].value.compare(E);R>=or(E)&&(A.day=1),R>=365&&(A.month=1)}e.placeholder.value=D[0].value.set({...A})},v=x=>{const E=a.value[0].value;if(!x&&!e.prevPage.value){const R=E.subtract({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),F=Or({dateObj:R,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=F,e.placeholder.value=F[0].value.set({day:1});return}const L=cD(E,x||e.prevPage.value),D=Or({dateObj:L,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=D;const A={};if(!x){const R=E.compare(D[0].value);R>=or(E)&&(A.day=1),R>=365&&(A.month=1)}e.placeholder.value=D[0].value.set({...A})};Ve(e.placeholder,x=>{r.value.some(E=>nv(E,x))||(a.value=Or({dateObj:x,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value}))}),Ve([e.locale,e.weekStartsOn,e.fixedWeeks,e.numberOfMonths],()=>{a.value=Or({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})});const p=_(()=>{if(!a.value.length)return"";if(e.locale.value!==t.getLocale()&&t.setLocale(e.locale.value),a.value.length===1){const W=a.value[0].value;return`${t.fullMonthAndYear(An(W),n.value)}`}const x=An(a.value[0].value),E=An(a.value.at(-1).value),L=t.fullMonth(x,n.value),D=t.fullMonth(E,n.value),A=t.fullYear(x,n.value),R=t.fullYear(E,n.value);return A===R?`${L} - ${D} ${R}`:`${L} ${A} - ${D} ${R}`}),h=_(()=>`${e.calendarLabel.value??"Event Date"}, ${p.value}`),k=_(()=>!(u(e.placeholder.value)||d(e.placeholder.value)||l(e.placeholder.value))),S=_(()=>{for(const x of a.value){if(e.minValue.value&&ar(x.value,e.minValue.value))continue;const E=or(x.value),L=e.minValue.value&&wf(e.minValue.value,x.value)?e.minValue.value.day:1;for(let D=L;D<=E;D++){const A=x.value.set({day:D});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:v,headingValue:p,fullCalendarLabel:h,isPlaceholderFocusable:k,firstFocusableDate:S}}const fD={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"}},pD={role:"heading","aria-level":"2"},[no,mD]=$t("CalendarRoot");var vD=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:v,numberOfMonths:p,preventDeselect:h,isDateDisabled:k,isDateUnavailable:S,calendarLabel:x,defaultValue:E,nextPage:L,prevPage:D,dir:A,locale:R,disableDaysOutsideCurrentView:F}=Vt(n),{primitiveElement:W,currentElement:C}=Ur(),I=ku(R),z=ma(A),O=_(()=>n.weekStartsOn??Ub(I.value)),B=Mt(n,"modelValue",a,{defaultValue:E.value,passive:n.modelValue===void 0}),J=If({defaultPlaceholder:n.placeholder,defaultValue:B.value,locale:n.locale}),K=Mt(n,"placeholder",a,{defaultValue:n.defaultPlaceholder??J.copy(),passive:n.placeholder===void 0});function H(ee){K.value=ee.copy()}const{fullCalendarLabel:le,headingValue:ue,isDateDisabled:we,isDateUnavailable:Oe,isNextButtonDisabled:Ae,isPrevButtonDisabled:ie,weekdays:xe,isOutsideVisibleView:U,nextPage:ke,prevPage:me,formatter:Y,grid:fe,isPlaceholderFocusable:G,firstFocusableDate:X}=dD({locale:I,placeholder:K,weekStartsOn:O,fixedWeeks:d,numberOfMonths:p,minValue:f,maxValue:v,disabled:r,weekdayFormat:u,pagedNavigation:i,isDateDisabled:k.value,isDateUnavailable:S.value,calendarLabel:x,nextPage:L,prevPage:D}),{isInvalid:te,isDateSelected:b,hasSelectedDate:T,isSelectedDateDisabled:P}=oD({date:B,isDateDisabled:we,isDateUnavailable:Oe});Ve(B,ee=>{if(Array.isArray(ee)&&ee.length){const ce=ee.at(-1);ce&&!ql(K.value,ce)&&H(ce)}else!Array.isArray(ee)&&ee&&!ql(K.value,ee)&&H(ee)});function re(ee){if(c.value){if(!B.value)B.value=[ee.copy()];else if(Array.isArray(B.value)){if(B.value.findIndex(Ee=>cr(Ee,ee))===-1)B.value=[...B.value,ee];else if(!h.value){const Ee=B.value.filter(Ce=>!cr(Ce,ee));if(!Ee.length){K.value=ee.copy(),B.value=void 0;return}B.value=Ee.map(Ce=>Ce.copy())}}}else{if(!B.value){B.value=ee.copy();return}!h.value&&ql(B.value,ee)?(K.value=ee.copy(),B.value=void 0):B.value=ee.copy()}}return wt(()=>{o.value&&zb(C.value)}),mD({isDateUnavailable:Oe,dir:z,isDateDisabled:we,locale:I,formatter:Y,modelValue:B,placeholder:K,disabled:r,initialFocus:o,pagedNavigation:i,grid:fe,weekDays:xe,weekStartsOn:O,weekdayFormat:u,fixedWeeks:d,multiple:c,numberOfMonths:p,readonly:l,preventDeselect:h,fullCalendarLabel:le,headingValue:ue,isInvalid:te,isDateSelected:b,isNextButtonDisabled:Ae,isPrevButtonDisabled:ie,isOutsideVisibleView:U,nextPage:ke,prevPage:me,parentElement:C,onPlaceholderChange:H,onDateChange:re,disableDaysOutsideCurrentView:F,minValue:f,maxValue:v,isPlaceholderFocusable:G,firstFocusableDate:X,hasSelectedDate:T,isSelectedDateDisabled:P}),(ee,ce)=>(m(),j(s(Qe),{ref_key:"primitiveElement",ref:W,as:ee.as,"as-child":ee.asChild,"aria-label":s(le),"data-readonly":s(l)?"":void 0,"data-disabled":s(r)?"":void 0,"data-invalid":s(te)?"":void 0,dir:s(z)},{default:q(()=>[ge(ee.$slots,"default",{date:s(K),grid:s(fe),weekDays:s(xe),weekStartsOn:O.value,locale:s(I),fixedWeeks:s(d),modelValue:s(B)}),w("div",fD,[w("div",pD,$(s(le)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),hD=vD,yD=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=no();return(n,a)=>(m(),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:q(()=>[ge(n.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"]))}}),gD=yD,bD=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=Ql(),a=no(),{primitiveElement:r}=Ur(),l=_(()=>t.day.day.toLocaleString(a.locale.value)),o=_(()=>a.formatter.custom(An(t.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),i=_(()=>a.isDateUnavailable?.(t.day)??!1),u=_(()=>gE(t.day,Hn())),d=_(()=>!wf(t.day,t.month)),c=_(()=>a.isOutsideVisibleView(t.day)),f=_(()=>a.isDateDisabled(t.day)||a.disableDaysOutsideCurrentView.value&&d.value),v=_(()=>d.value||f.value?!1:!a.disabled.value&&a.isPlaceholderFocusable.value&&cr(t.day,a.placeholder.value)?!0:(!a.hasSelectedDate.value||a.isSelectedDateDisabled.value)&&!a.isPlaceholderFocusable.value?a.firstFocusableDate.value&&cr(t.day,a.firstFocusableDate.value):!1),p=_(()=>a.isDateSelected(t.day));function h(x){a.readonly.value||a.isDateDisabled(x)||a.isDateUnavailable?.(x)||a.onDateChange(x)}function k(){f.value||h(t.day)}function S(x){if(f.value)return;x.preventDefault(),x.stopPropagation();const E=a.parentElement.value,L=7,D=a.dir.value==="rtl"?-1:1;switch(x.code){case n.ARROW_RIGHT:A(t.day,D);break;case n.ARROW_LEFT:A(t.day,-D);break;case n.ARROW_UP:A(t.day,-L);break;case n.ARROW_DOWN:A(t.day,L);break;case n.ENTER:case n.SPACE_CODE:h(t.day)}function A(R,F){const W=R.add({days:F});if(a.minValue.value&&W.compare(a.minValue.value)<0||a.maxValue.value&&W.compare(a.maxValue.value)>0)return;const C=E.querySelector(`[data-value='${W.toString()}']:not([data-outside-view])`);if(!C){if(F>0){if(a.isNextButtonDisabled())return;a.nextPage()}else{if(a.isPrevButtonDisabled())return;a.prevPage()}Je(()=>{A(R,F)});return}if(C&&C.hasAttribute("data-disabled"))return A(W,F);a.onPlaceholderChange(W),C?.focus()}}return(x,E)=>(m(),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":p.value?!0:void 0,"data-value":x.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":v.value?"":void 0,tabindex:v.value?0:d.value||f.value?void 0:-1,onClick:k,onKeydown:[ia(S,["up","down","left","right","space","enter"]),E[0]||(E[0]=ia(ft(()=>{},["prevent"]),["enter"]))]},{default:q(()=>[ge(x.$slots,"default",{dayValue:l.value,disabled:f.value,today:u.value,selected:p.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"]))}}),_D=bD,xD=ae({__name:"CalendarGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"table"}},setup(e){const t=e,n=no(),a=_(()=>n.disabled.value?!0:void 0),r=_(()=>n.readonly.value?!0:void 0);return(l,o)=>(m(),j(s(Qe),ze(t,{tabindex:"-1",role:"application","aria-readonly":r.value,"aria-disabled":a.value,"data-readonly":r.value&&"","data-disabled":a.value&&""}),{default:q(()=>[ge(l.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),kD=xD,wD=ae({__name:"CalendarGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tbody"}},setup(e){const t=e;return(n,a)=>(m(),j(s(Qe),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),$D=wD,CD=ae({__name:"CalendarGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"thead"}},setup(e){const t=e;return(n,a)=>(m(),j(s(Qe),ze(t,{"aria-hidden":"true"}),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),SD=CD,ED=ae({__name:"CalendarGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tr"}},setup(e){const t=e;return(n,a)=>(m(),j(s(Qe),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),AD=ED,TD=ae({__name:"CalendarHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"th"}},setup(e){const t=e;return(n,a)=>(m(),j(s(Qe),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),DD=TD,OD=ae({__name:"CalendarHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e;return(n,a)=>(m(),j(s(Qe),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),MD=OD,PD=ae({__name:"CalendarHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=no();return(a,r)=>(m(),j(s(Qe),ze(t,{"data-disabled":s(n).disabled.value?"":void 0}),{default:q(()=>[ge(a.$slots,"default",{headingValue:s(n).headingValue.value},()=>[_e($(s(n).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),ID=PD,RD=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=_(()=>a.disabled.value||a.isNextButtonDisabled(t.nextPage)),a=no();function r(){n.value||a.nextPage(t.nextPage)}return(l,o)=>(m(),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:q(()=>[ge(l.$slots,"default",{disabled:n.value},()=>[o[0]||(o[0]=_e(" Next page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),qD=RD,LD=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=_(()=>a.disabled.value||a.isPrevButtonDisabled(t.prevPage)),a=no();function r(){n.value||a.prevPage(t.prevPage)}return(l,o)=>(m(),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:q(()=>[ge(l.$slots,"default",{disabled:n.value},()=>[o[0]||(o[0]=_e(" Prev page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),ND=LD;const[BD,FD]=$t("RovingFocusGroup");var VD=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}=Vt(a),u=ma(i),d=Mt(a,"currentTabStopId",r,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),c=M(!1),f=M(!1),v=M(0),{getItems:p,CollectionSlot:h}=Ff({isProvider:!0});function k(x){const E=!f.value;if(x.currentTarget&&x.target===x.currentTarget&&E&&!c.value){const L=new CustomEvent(C4,S4);if(x.currentTarget.dispatchEvent(L),r("entryFocus",L),!L.defaultPrevented){const D=p().map(C=>C.ref).filter(C=>C.dataset.disabled!==""),A=D.find(C=>C.getAttribute("data-active")===""),R=D.find(C=>C.getAttribute("data-highlighted")===""),F=D.find(C=>C.id===d.value),W=[A,R,F,...D].filter(Boolean);e1(W,a.preventScrollOnEntryFocus)}}f.value=!1}function S(){setTimeout(()=>{f.value=!1},1)}return t({getItems:p}),FD({loop:l,dir:u,orientation:o,currentTabStopId:d,onItemFocus:x=>{d.value=x},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{v.value++},onFocusableItemRemove:()=>{v.value--}}),(x,E)=>(m(),j(s(h),null,{default:q(()=>[N(s(Qe),{tabindex:c.value||v.value===0?-1:0,"data-orientation":s(o),as:x.as,"as-child":x.asChild,dir:s(u),style:{outline:"none"},onMousedown:E[0]||(E[0]=L=>f.value=!0),onMouseup:S,onFocus:k,onBlur:E[1]||(E[1]=L=>c.value=!1)},{default:q(()=>[ge(x.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Tu=VD,zD=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=BD(),a=Ia(),r=_(()=>t.tabStopId||a),l=_(()=>n.currentTabStopId.value===r.value),{getItems:o,CollectionItem:i}=Ff();wt(()=>{t.focusable&&n.onFocusableItemAdd()}),La(()=>{t.focusable&&n.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){n.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const c=T4(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(v=>v.ref).filter(v=>v.dataset.disabled!=="")];if(c==="last")f.reverse();else if(c==="prev"||c==="next"){c==="prev"&&f.reverse();const v=f.indexOf(d.currentTarget);f=n.loop.value?D4(f,v+1):f.slice(v+1)}Je(()=>e1(f))}}return(d,c)=>(m(),j(s(i),null,{default:q(()=>[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:q(()=>[ge(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Du=zD;const[jD]=$t("CheckboxGroupRoot");function Qf(e){return e==="indeterminate"}function b1(e){return Qf(e)?"indeterminate":e?"checked":"unchecked"}const[UD,HD]=$t("CheckboxRoot");var KD=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}=Ye(),o=jD(null),i=Mt(n,"modelValue",a,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),u=_(()=>o?.disabled.value||n.disabled),d=_(()=>rs(i.value,n.trueValue)),c=_(()=>gn(o?.modelValue.value)?i.value==="indeterminate"?"indeterminate":d.value:Qm(o.modelValue.value,n.value));function f(){if(gn(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(Qm(h,n.value)){const k=h.findIndex(S=>rs(S,n.value));h.splice(k,1)}else h.push(n.value);o.modelValue.value=h}}const v=qf(l),p=_(()=>n.id&&l.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return HD({disabled:u,state:c}),(h,k)=>(m(),j(zt(s(o)?.rovingFocus.value?s(Du):s(Qe)),ze(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(Qf)(c.value)?"mixed":c.value,"aria-required":h.required,"aria-label":h.$attrs["aria-label"]||p.value,"data-state":s(b1)(c.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:s(o)?.rovingFocus.value?!u.value:void 0,onKeydown:ia(ft(()=>{},["prevent"]),["enter"]),onClick:f}),{default:q(()=>[ge(h.$slots,"default",{modelValue:s(i),state:c.value}),s(v)&&h.name&&!s(o)?(m(),j(s(zf),{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"])):Q("v-if",!0)]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"]))}}),WD=KD,GD=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}=Ye(),n=UD();return(a,r)=>(m(),j(s(Zr),{present:a.forceMount||s(Qf)(s(n).state.value)||s(n).state.value===!0},{default:q(()=>[N(s(Qe),ze({ref:s(t),"data-state":s(b1)(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:q(()=>[ge(a.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),YD=GD,JD=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)=>(m(),j(s(jf),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),ZD=JD;function XD(){const e=M(!1);return wt(()=>{Wl("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),Wl(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const QD=cb(XD),[Ou,eO]=$t(["MenuRoot","MenuSub"],"MenuContext"),[ep,tO]=$t("MenuRoot");var nO=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}=Vt(n),o=ma(l),i=Mt(n,"open",a),u=M(),d=QD();return eO({open:i,onOpenChange:c=>{i.value=c},content:u,onContentChange:c=>{u.value=c}}),tO({onClose:()=>{i.value=!1},isUsingKeyboardRef:d,dir:o,modal:r}),(c,f)=>(m(),j(s(n1),null,{default:q(()=>[ge(c.$slots,"default")]),_:3}))}}),aO=nO;const[_1,rO]=$t("MenuContent");var lO=ae({__name:"MenuContentImpl",props:Ny({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}},{...p1}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,a=t,r=Ou(),l=ep(),{trapFocus:o,disableOutsidePointerEvents:i,loop:u}=Vt(n);Hb(),kf(i.value);const d=M(""),c=M(0),f=M(0),v=M(null),p=M("right"),h=M(0),k=M(null),S=M(),{forwardRef:x,currentElement:E}=Ye(),{handleTypeaheadSearch:L}=xA(),D=M();function A(K){const H=tv(K,D.value||Ut(),E.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});H&&(D.value=H,H.scrollIntoView({block:"nearest"}))}function R(){D.value&&D.value.click()}const F=M(),W=M();Ve(D,K=>{W.value&&(K===void 0||K!==W.value.trigger.value)&&(W.value.onOpenChange(!1),W.value=void 0)}),Ve(E,K=>{r.onContentChange(K)}),La(()=>{window.clearTimeout(c.value)});function C(K){return p.value===v.value?.side&&KA(K,v.value?.area)}async function I(K){a("openAutoFocus",K),!K.defaultPrevented&&(K.preventDefault(),E.value?.focus({preventScroll:!0}))}function z(K){if(K.defaultPrevented)return;const H=K.target,le=H.closest("[data-reka-menu-content]")===K.currentTarget,ue=["input","textarea"].includes(H.tagName.toLowerCase()),we=K.ctrlKey||K.altKey||K.metaKey,Oe=K.key.length===1,Ae=tv(K,Ut(),E.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(Ae)return Ae?.focus();if(K.code==="Space")return;const ie=S.value?.getItems()??[];if(le&&(K.key==="Tab"&&K.preventDefault(),!we&&Oe&&!ue&&L(K.key,ie)),K.target!==E.value||!jA.includes(K.key))return;K.preventDefault();const xe=[...ie.map(U=>U.ref)];Yb.includes(K.key)&&xe.reverse(),UA(xe)}function O(K){K?.currentTarget?.contains?.(K.target)||(window.clearTimeout(c.value),d.value="")}function B(K){if(!Li(K))return;const H=K.target,le=h.value!==K.clientX;if(K?.currentTarget?.contains(H)&&le){const ue=K.clientX>h.value?"right":"left";p.value=ue,h.value=K.clientX}}function J(K){Li(K)&&F.value&&F.value.focus()}return rO({onItemEnter:K=>!!C(K),onItemLeave:K=>C(K)?!0:(["INPUT","TEXTAREA"].includes(Ut()?.tagName||"")||E.value?.focus(),k.value=null,!1),onTriggerLeave:K=>!!C(K),searchRef:d,highlightedElement:D,onKeydownNavigation:A,onKeydownEnter:R,filterElement:F,onFilterElementChange:K=>{F.value=K},activeSubmenuContext:W,pointerGraceTimerRef:f,onPointerGraceIntentChange:K=>{v.value=K}}),(K,H)=>(m(),j(s(Bf),{"as-child":"",trapped:s(o),onMountAutoFocus:I,onUnmountAutoFocus:H[7]||(H[7]=le=>a("closeAutoFocus",le))},{default:q(()=>[N(s(Nf),{"as-child":"","disable-outside-pointer-events":s(i),onEscapeKeyDown:H[2]||(H[2]=le=>a("escapeKeyDown",le)),onPointerDownOutside:H[3]||(H[3]=le=>a("pointerDownOutside",le)),onFocusOutside:H[4]||(H[4]=le=>a("focusOutside",le)),onInteractOutside:H[5]||(H[5]=le=>a("interactOutside",le)),onDismiss:H[6]||(H[6]=le=>a("dismiss"))},{default:q(()=>[N(s(Tu),{ref_key:"rovingFocusGroupRef",ref:S,"current-tab-stop-id":k.value,"onUpdate:currentTabStopId":H[0]||(H[0]=le=>k.value=le),"as-child":"",orientation:"vertical",dir:s(l).dir.value,loop:s(u),onEntryFocus:H[1]||(H[1]=le=>{a("entryFocus",le),s(l).isUsingKeyboardRef.value||le.preventDefault()})},{default:q(()=>[N(s(m1),{ref:s(x),role:"menu",as:K.as,"as-child":K.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":s(Jb)(s(r).open.value),dir:s(l).dir.value,side:K.side,"side-offset":K.sideOffset,align:K.align,"align-offset":K.alignOffset,"avoid-collisions":K.avoidCollisions,"collision-boundary":K.collisionBoundary,"collision-padding":K.collisionPadding,"arrow-padding":K.arrowPadding,"prioritize-position":K.prioritizePosition,"position-strategy":K.positionStrategy,"update-position-strategy":K.updatePositionStrategy,sticky:K.sticky,"hide-when-detached":K.hideWhenDetached,reference:K.reference,onKeydown:z,onBlur:O,onPointermove:B,onPointerenter:J},{default:q(()=>[ge(K.$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"]))}}),x1=lO,oO=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}=Ye(),{CollectionItem:l}=Ff(),o=M(!1),i=_(()=>o.value||r.value!=null&&n.highlightedElement.value===r.value);async function u(c){if(!(c.defaultPrevented||!Li(c))){if(t.disabled)n.onItemLeave(c);else if(!n.onItemEnter(c)){const v=c.currentTarget;n.highlightedElement.value=v,["INPUT","TEXTAREA"].includes(Ut()?.tagName||"")||v.focus({preventScroll:!0})}}}async function d(c){if(await Je(),c.defaultPrevented||!Li(c)||n.highlightedElement.value!==r.value)return;!n.onItemLeave(c)&&n.highlightedElement.value===r.value&&(n.highlightedElement.value=void 0)}return(c,f)=>(m(),j(s(l),{value:{textValue:c.textValue}},{default:q(()=>[N(s(Qe),ze({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 v=>{await Je(),!(v.defaultPrevented||c.disabled)&&(o.value=!0,s(n).highlightedElement.value=v.currentTarget)}),onBlur:f[1]||(f[1]=async v=>{await Je(),!v.defaultPrevented&&(o.value=!1)})}),{default:q(()=>[ge(c.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),sO=oO,iO=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}=Ye(),o=ep(),i=_1(),u=M(!1);async function d(){const c=l.value;if(!n.disabled&&c){const f=new CustomEvent(VA,{bubbles:!0,cancelable:!0});a("select",f),await Je(),f.defaultPrevented?u.value=!1:o.onClose()}}return(c,f)=>(m(),j(sO,ze(n,{ref:s(r),onClick:d,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async v=>{await Je(),!v.defaultPrevented&&(u.value||v.currentTarget?.click())}),onKeydown:f[2]||(f[2]=async v=>{const p=s(i).searchRef.value!=="";c.disabled||p&&v.key===" "||s(Ed).includes(v.key)&&(v.currentTarget?.click(),v.preventDefault())})}),{default:q(()=>[ge(c.$slots,"default")]),_:3},16))}}),k1=iO;const[uO,cO]=$t(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext");var dO=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=uO({modelValue:M(!1)});return(n,a)=>(m(),j(s(Zr),{present:n.forceMount||s(Zb)(s(t).modelValue.value)||s(t).modelValue.value===!0},{default:q(()=>[N(s(Qe),{as:n.as,"as-child":n.asChild,"data-state":s(Xb)(s(t).modelValue.value)},{default:q(()=>[ge(n.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),fO=dO,pO=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=va(n,a),l=Ou(),{forwardRef:o,currentElement:i}=Ye();return Lf(i),(u,d)=>(m(),j(x1,ze(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]=ft(c=>a("focusOutside",c),["prevent"]))}),{default:q(()=>[ge(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),mO=pO,vO=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=va(e,t),l=Ou();return(o,i)=>(m(),j(x1,ze(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:q(()=>[ge(o.$slots,"default")]),_:3},16))}}),hO=vO,yO=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=va(e,t),l=Ou(),o=ep();return(i,u)=>(m(),j(s(Zr),{present:i.forceMount||s(l).open.value},{default:q(()=>[s(o).modal.value?(m(),j(mO,nt(ze({key:0},{...i.$attrs,...s(r)})),{default:q(()=>[ge(i.$slots,"default")]),_:3},16)):(m(),j(hO,nt(ze({key:1},{...i.$attrs,...s(r)})),{default:q(()=>[ge(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),gO=yO;const[bO,_O]=$t("MenuGroup");var xO=ae({__name:"MenuGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Ia(void 0,"reka-menu-group");return _O({id:n}),(a,r)=>(m(),j(s(Qe),ze({role:"group"},t,{"aria-labelledby":s(n)}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),kO=xO,wO=ae({__name:"MenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=bO({id:""});return(a,r)=>(m(),j(s(Qe),ze(t,{id:s(n).id||void 0}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["id"]))}}),$O=wO,CO=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)=>(m(),j(s(wu),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),SO=CO;const[EO,AO]=$t("MenuRadioGroup");var TO=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=bf(n,["modelValue"]),l=xu(r),o=Mt(n,"modelValue",a);return AO({modelValue:o,onValueChange:i=>{o.value=i}}),(i,u)=>(m(),j(kO,nt(lt(s(l))),{default:q(()=>[ge(i.$slots,"default",{modelValue:s(o)})]),_:3},16))}}),DO=TO,OO=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=bf(n,["value"]),l=xu(r),{value:o}=Vt(n),i=EO(),u=_(()=>i.modelValue.value===o?.value);return cO({modelValue:u}),(d,c)=>(m(),j(k1,ze({role:"menuitemradio"},s(l),{"aria-checked":u.value,"data-state":s(Xb)(u.value),onSelect:c[0]||(c[0]=async f=>{a("select",f),s(i).onValueChange(s(o))})}),{default:q(()=>[ge(d.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),MO=OO,PO=ae({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(Qe),ze(t,{role:"separator","aria-orientation":"horizontal"}),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),IO=PO;const[RO,qO]=$t("DateFieldRoot");var LO=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}=Vt(a),v=ku(f),p=ma(c),h=Rf(v.value,{hourCycle:ss(a.hourCycle)}),{primitiveElement:k,currentElement:S}=Ur(),x=M(new Set);wt(()=>{zv(S.value).forEach(U=>x.value.add(U))});const E=Mt(a,"modelValue",r,{defaultValue:d.value,passive:a.modelValue===void 0}),L=If({defaultPlaceholder:a.placeholder,granularity:u.value,defaultValue:E.value,locale:a.locale}),D=Mt(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??L.copy(),passive:a.placeholder===void 0}),A=_(()=>Vb(a)),R=_(()=>a.granularity?Cd(D.value)?a.granularity:"day":Cd(D.value)?"minute":"day"),F=_(()=>E.value?!!(i.value?.(E.value)||a.minValue&&ar(E.value,a.minValue)||a.maxValue&&ar(a.maxValue,E.value)):!1),W=HT(R.value),C=M(E.value?{...Vv({value:E.value,formatter:h})}:{...W}),I=_(()=>y1({granularity:R.value,dateRef:D.value,formatter:h,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:C.value,locale:v})),z=_(()=>I.value.arr),O=_(()=>z.value.filter(({part:U})=>U!=="literal"));Ve(v,U=>{h.getLocale()!==U&&(h.setLocale(U),Je(()=>{x.value.clear(),zv(S.value).forEach(ke=>x.value.add(ke))}))}),Ve(E,U=>{!gn(U)&&D.value.compare(U)!==0&&(D.value=U.copy())}),Ve([E,v],([U])=>{gn(U)?Object.values(C.value).every(ke=>ke!==null)&&gn(U)&&(C.value={...W}):C.value={...Vv({value:U,formatter:h})}});const B=M(null),J=_(()=>Array.from(x.value).findIndex(U=>U.getAttribute("data-reka-date-field-segment")===B.value?.getAttribute("data-reka-date-field-segment"))),K=_(()=>{const U=p.value==="rtl"?-1:1;return(U<0?J.value<0:J.value>x.value.size-1)?null:Array.from(x.value)[J.value+U]}),H=_(()=>{const U=p.value==="rtl"?-1:1;return(U>0?J.value<0:J.value>x.value.size-1)?null:Array.from(x.value)[J.value-U]}),le=_(()=>jb(R.value)),ue=_(()=>gc(E.value,R.value)),we=_(()=>a.maxValue?gc(a.maxValue,R.value):void 0),Oe=_(()=>a.minValue?gc(a.minValue,R.value):void 0),Ae=Ql();function ie(U){U.isComposing||ba(U.key)&&(U.key===Ae.ARROW_LEFT&&H.value?.focus(),U.key===Ae.ARROW_RIGHT&&K.value?.focus())}function xe(U){B.value=U}return qO({isDateUnavailable:i.value,locale:v,modelValue:E,placeholder:D,disabled:l,formatter:h,hourCycle:a.hourCycle,step:A,readonly:o,segmentValues:C,isInvalid:F,segmentContents:O,elements:x,setFocusedElement:xe,focusNext(){K.value?.focus()}}),t({setFocusedElement:xe}),(U,ke)=>(m(),j(s(Qe),ze(U.$attrs,{ref_key:"primitiveElement",ref:k,role:"group","aria-disabled":s(l)?!0:void 0,"data-disabled":s(l)?"":void 0,"data-readonly":s(o)?"":void 0,"data-invalid":F.value?"":void 0,dir:s(p),onKeydown:ia(ie,["left","right"])}),{default:q(()=>[ge(U.$slots,"default",{modelValue:s(E),segments:z.value,isInvalid:F.value}),N(s(Vf),{id:U.id,as:"input",type:le.value,feature:"focusable",tabindex:"-1",value:ue.value,name:U.name,disabled:s(l),required:U.required,max:we.value,min:Oe.value,onFocus:ke[0]||(ke[0]=me=>Array.from(x.value)?.[0]?.focus())},null,8,["id","type","value","name","disabled","required","max","min"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),NO=LO,BO=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=RO(),a=M(!0),r=M(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:u,handleSegmentCompositionEnd:d,attributes:c}=g1({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=_(()=>n.disabled.value),v=_(()=>n.readonly.value),p=_(()=>n.isInvalid.value);return(h,k)=>(m(),j(s(Qe),ze({as:h.as,"as-child":h.asChild},s(c),{contenteditable:f.value||v.value?!1:h.part!=="literal","data-reka-date-field-segment":h.part,"aria-disabled":f.value?!0:void 0,"aria-readonly":v.value?!0:void 0,"data-disabled":f.value?"":void 0,"data-invalid":p.value?"":void 0,"aria-invalid":p.value?!0:void 0},Ly(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:q(()=>[ge(h.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),FO=BO;const[ao,VO]=$t("PopoverRoot");var zO=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}=Vt(n),l=Mt(n,"open",a,{defaultValue:n.defaultOpen,passive:n.open===void 0});return VO({contentId:"",triggerId:"",modal:r,open:l,onOpenChange:u=>{l.value=u},onOpenToggle:()=>{l.value=!l.value},triggerElement:M(),hasCustomAnchor:M(!1)}),(u,d)=>(m(),j(s(n1),null,{default:q(()=>[ge(u.$slots,"default",{open:s(l),close:()=>l.value=!1})]),_:3}))}}),w1=zO,jO=ae({__name:"PopoverAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;Ye();const n=ao();return My(()=>{n.hasCustomAnchor.value=!0}),La(()=>{n.hasCustomAnchor.value=!1}),(a,r)=>(m(),j(s(jf),nt(lt(t)),{default:q(()=>[ge(a.$slots,"default")]),_:3},16))}}),UO=jO;const[tp,HO]=$t("DatePickerRoot");var KO=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:v,isDateUnavailable:p,defaultOpen:h,modal:k,id:S,name:x,required:E,minValue:L,maxValue:D,granularity:A,hideTimeZone:R,hourCycle:F,defaultValue:W,dir:C,step:I,closeOnSelect:z}=Vt(n),O=ma(C),B=ku(r),J=_(()=>n.weekStartsOn??Ub(B.value)),K=Mt(n,"modelValue",a,{defaultValue:W.value,passive:n.modelValue===void 0}),H=_(()=>If({defaultPlaceholder:n.placeholder,granularity:n.granularity,defaultValue:K.value,locale:B.value})),le=Mt(n,"placeholder",a,{defaultValue:n.defaultPlaceholder??H.value.copy(),passive:n.placeholder===void 0}),ue=Mt(n,"open",a,{defaultValue:h.value,passive:n.open===void 0}),we=M();function Oe(Ae){return"hour"in Ae?Ae.set({hour:0,minute:0,second:0,millisecond:0}):Ae}return Ve(K,Ae=>{Ae&&Ae.compare(le.value)!==0?le.value=Ae.copy():!Ae&&"hour"in le.value&&(le.value=Oe(le.value)),z.value&&(ue.value=!1)}),HO({isDateUnavailable:p.value,isDateDisabled:v.value,locale:B,disabled:l,pagedNavigation:i,weekStartsOn:J,weekdayFormat:u,fixedWeeks:d,numberOfMonths:c,readonly:o,preventDeselect:f,modelValue:K,placeholder:le,defaultOpen:h,modal:k,open:ue,id:S,name:x,required:E,minValue:L,maxValue:D,granularity:A,hideTimeZone:R,hourCycle:F,dateFieldRef:we,dir:O,step:I,onDateChange(Ae){Ae?K.value&&!f.value&&Ae&&K.value.compare(Ae)===0?K.value=void 0:K.value=Ae.copy():K.value=void 0},onPlaceholderChange(Ae){le.value=Ae.copy()},closeOnSelect:z}),(Ae,ie)=>(m(),j(s(w1),{open:s(ue),"onUpdate:open":ie[0]||(ie[0]=xe=>Ct(ue)?ue.value=xe:null),"default-open":s(h),modal:s(k)},{default:q(()=>[ge(Ae.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),WO=KO,GO=ae({__name:"DatePickerCalendar",setup(e){const t=tp();return(n,a)=>(m(),j(s(hD),ze({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(ql)(r,s(t).modelValue.value)||s(t).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{s(ql)(r,s(t).placeholder.value)||s(t).onPlaceholderChange(r)})}),{default:q(({weekDays:r,grid:l,date:o,weekStartsOn:i,locale:u,fixedWeeks:d})=>[ge(n.$slots,"default",{date:o,grid:l,weekDays:r,weekStartsOn:i,locale:u,fixedWeeks:d})]),_:3},16,["model-value","placeholder"]))}}),YO=GO,JO=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)=>(m(),j(s(gD),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),ZO=JO,XO=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)=>(m(),j(s(_D),nt(lt(t)),{default:q(r=>[ge(n.$slots,"default",nt(lt(r)))]),_:3},16))}}),QO=XO,eM=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=xu(bf(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:l}=Ye(),o=ao();return Hb(),(i,u)=>(m(),j(s(Bf),{"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:q(()=>[N(s(Nf),{"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:q(()=>[N(s(m1),ze(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:q(()=>[ge(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),$1=eM,tM=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=ao(),l=M(!1);kf(!0);const o=va(n,a),{forwardRef:i,currentElement:u}=Ye();return Lf(u),(d,c)=>(m(),j($1,ze(s(o),{ref:s(i),"trap-focus":s(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=ft(f=>{a("closeAutoFocus",f),l.value||s(r).triggerElement.value?.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=f=>{a("pointerDownOutside",f);const v=f.detail.originalEvent,p=v.button===0&&v.ctrlKey===!0,h=v.button===2||p;l.value=h}),onFocusOutside:c[2]||(c[2]=ft(()=>{},["prevent"]))}),{default:q(()=>[ge(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),nM=tM,aM=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=ao(),l=M(!1),o=M(!1),i=va(n,a);return(u,d)=>(m(),j($1,ze(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:q(()=>[ge(u.$slots,"default")]),_:3},16))}}),rM=aM,lM=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=ao(),l=va(n,a),{forwardRef:o}=Ye();return r.contentId||=Ia(void 0,"reka-popover-content"),(i,u)=>(m(),j(s(Zr),{present:i.forceMount||s(r).open.value},{default:q(()=>[s(r).modal.value?(m(),j(nM,ze({key:0},s(l),{ref:s(o)}),{default:q(()=>[ge(i.$slots,"default")]),_:3},16)):(m(),j(rM,ze({key:1},s(l),{ref:s(o)}),{default:q(()=>[ge(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),C1=lM,oM=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)=>(m(),j(s(wu),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),S1=oM,sM=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=_(()=>({...n,portal:void 0})),l=va(r,a);return(o,i)=>(m(),j(s(S1),nt(lt(o.portal)),{default:q(()=>[N(s(C1),ze({...s(l),...o.$attrs},{onOpenAutoFocus:i[0]||(i[0]=u=>{a("openAutoFocus",u),!u.defaultPrevented&&u.target&&(s(zb)(u.target),u.preventDefault())})}),{default:q(()=>[ge(o.$slots,"default")]),_:3},16)]),_:3},16))}}),iM=sM,uM=ae({__name:"DatePickerField",setup(e){const t=tp();return(n,a)=>(m(),j(s(NO),ze({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:q(({segments:r,modelValue:l})=>[ge(n.$slots,"default",{segments:r,modelValue:l})]),_:3},16,["model-value","placeholder"]))}}),cM=uM,dM=ae({__name:"DatePickerGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(kD),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),fM=dM,pM=ae({__name:"DatePickerGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s($D),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),mM=pM,vM=ae({__name:"DatePickerGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(SD),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),hM=vM,yM=ae({__name:"DatePickerGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(AD),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),Uv=yM,gM=ae({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(DD),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),bM=gM,_M=ae({__name:"DatePickerHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(MD),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),xM=_M,kM=ae({__name:"DatePickerHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(m(),j(s(ID),nt(lt(t)),{default:q(({headingValue:r})=>[ge(n.$slots,"default",{headingValue:r},()=>[_e($(r),1)])]),_:3},16))}}),wM=kM,$M=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)=>(m(),j(s(FO),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),CM=$M,SM=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)=>(m(),j(s(qD),nt(lt(t)),{default:q(r=>[ge(n.$slots,"default",nt(lt(r)))]),_:3},16))}}),EM=SM,AM=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)=>(m(),j(s(ND),nt(lt(t)),{default:q(r=>[ge(n.$slots,"default",nt(lt(r)))]),_:3},16))}}),TM=AM,DM=ae({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=ao(),{forwardRef:a,currentElement:r}=Ye();return n.triggerId||=Ia(void 0,"reka-popover-trigger"),wt(()=>{n.triggerElement.value=r.value}),(l,o)=>(m(),j(zt(s(n).hasCustomAnchor.value?s(Qe):s(jf)),{"as-child":""},{default:q(()=>[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:q(()=>[ge(l.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),OM=DM,MM=ae({__name:"DatePickerTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=tp();return(a,r)=>(m(),j(s(OM),ze({"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:q(()=>[ge(a.$slots,"default")]),_:3},16,["disabled"]))}}),PM=MM;const[E1,IM]=$t("DropdownMenuRoot");var RM=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;Ye();const r=Mt(n,"open",a,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=M(),{modal:o,dir:i}=Vt(n),u=ma(i);return IM({open:r,onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:l,contentId:"",modal:o,dir:u}),(d,c)=>(m(),j(s(aO),{open:s(r),"onUpdate:open":c[0]||(c[0]=f=>Ct(r)?r.value=f:null),dir:s(u),modal:s(o)},{default:q(()=>[ge(d.$slots,"default",{open:s(r)})]),_:3},8,["open","dir","modal"]))}}),A1=RM,qM=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=va(e,t);Ye();const l=E1(),o=M(!1);function i(u){u.defaultPrevented||(o.value||setTimeout(()=>{l.triggerElement.value?.focus()},0),o.value=!1,u.preventDefault())}return l.contentId||=Ia(void 0,"reka-dropdown-menu-content"),(u,d)=>(m(),j(s(gO),ze(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,v=f.button===0&&f.ctrlKey===!0,p=f.button===2||v;(!s(l).modal.value||p)&&(o.value=!0),s(l).triggerElement.value?.contains(c.target)&&c.preventDefault()})}),{default:q(()=>[ge(u.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),T1=qM,LM=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=Jr(t);return Ye(),(l,o)=>(m(),j(s(k1),nt(lt({...n,...s(r)})),{default:q(()=>[ge(l.$slots,"default")]),_:3},16))}}),Pd=LM,NM=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 Ye(),(n,a)=>(m(),j(s(fO),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),BM=NM,FM=ae({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ye(),(n,a)=>(m(),j(s($O),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),VM=FM,zM=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)=>(m(),j(s(SO),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),D1=zM,jM=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=Jr(t);return Ye(),(l,o)=>(m(),j(s(DO),nt(lt({...n,...s(r)})),{default:q(()=>[ge(l.$slots,"default")]),_:3},16))}}),UM=jM,HM=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=va(e,t);return Ye(),(l,o)=>(m(),j(s(MO),nt(lt(s(r))),{default:q(()=>[ge(l.$slots,"default")]),_:3},16))}}),KM=HM,WM=ae({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ye(),(n,a)=>(m(),j(s(IO),nt(lt(t)),{default:q(()=>[ge(n.$slots,"default")]),_:3},16))}}),Hv=WM,GM=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=E1(),{forwardRef:a,currentElement:r}=Ye();return wt(()=>{n.triggerElement=r}),n.triggerId||=Ia(void 0,"reka-dropdown-menu-trigger"),(l,o)=>(m(),j(s(ZD),{"as-child":""},{default:q(()=>[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 Je(),s(n).open.value&&i.preventDefault())}),onKeydown:o[1]||(o[1]=ia(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:q(()=>[ge(l.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),O1=GM;const cs=100,[YM,JM]=$t("ProgressRoot"),Vi=e=>typeof e=="number";function ZM(e,t){return gn(e)||Vi(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 ${cs} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`),null)}function XM(e){return Vi(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 \`${cs}\`.`),cs)}var QM=ae({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:cs},getValueLabel:{type:Function,required:!1,default:(e,t)=>Vi(e)?`${Math.round(e/t*cs)}%`: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;Ye();const r=Mt(n,"modelValue",a,{passive:n.modelValue===void 0}),l=Mt(n,"max",a,{passive:n.max===void 0});Ve(()=>r.value,async i=>{const u=ZM(i,n.max);u!==i&&(await Je(),r.value=u)},{immediate:!0}),Ve(()=>n.max,i=>{const u=XM(n.max);u!==i&&(l.value=u)},{immediate:!0});const o=_(()=>gn(r.value)?"indeterminate":r.value===l.value?"complete":"loading");return JM({modelValue:r,max:l,progressState:o}),(i,u)=>(m(),j(s(Qe),{"as-child":i.asChild,as:i.as,"aria-valuemax":s(l),"aria-valuemin":0,"aria-valuenow":Vi(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:q(()=>[ge(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"]))}}),Ac=QM,e5=ae({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=YM();return Ye(),(a,r)=>(m(),j(s(Qe),ze(t,{"data-state":s(n).progressState.value,"data-value":s(n).modelValue?.value??void 0,"data-max":s(n).max.value}),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),Tc=e5;const t5="radio.select";function n5(e,t,n){gf(t5,n,{originalEvent:e,value:t})}var a5=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=Mt(n,"checked",a,{passive:n.checked===void 0}),{value:l}=Vt(n),{forwardRef:o,currentElement:i}=Ye(),u=qf(i),d=_(()=>n.id&&i.value?document.querySelector(`[for="${n.id}"]`)?.innerText??n.value:void 0);function c(f){n.disabled||n5(f,n.value,v=>{a("select",v),!v?.defaultPrevented&&(r.value=!0,u.value&&v.stopPropagation())})}return(f,v)=>(m(),j(s(Qe),ze(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:ft(c,["stop"])}),{default:q(()=>[ge(f.$slots,"default",{checked:s(r)}),s(u)&&f.name?(m(),j(s(zf),{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"])):Q("v-if",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),r5=a5;const[l5,o5]=$t("RadioGroupRoot");var s5=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}=Ye(),o=Mt(n,"modelValue",a,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:i,loop:u,orientation:d,name:c,required:f,dir:v}=Vt(n),p=ma(v),h=qf(l);return o5({modelValue:o,changeModelValue:k=>{o.value=k},disabled:i,loop:u,orientation:d,name:c?.value,required:f}),(k,S)=>(m(),j(s(Tu),{"as-child":"",orientation:s(d),dir:s(p),loop:s(u)},{default:q(()=>[N(s(Qe),{ref:s(r),role:"radiogroup","data-disabled":s(i)?"":void 0,"as-child":k.asChild,as:k.as,"aria-orientation":s(d),"aria-required":s(f),dir:s(p)},{default:q(()=>[ge(k.$slots,"default",{modelValue:s(o)}),s(h)&&s(c)?(m(),j(s(zf),{key:0,required:s(f),disabled:s(i),value:s(o),name:s(c)},null,8,["required","disabled","value","name"])):Q("v-if",!0)]),_:3},8,["data-disabled","as-child","as","aria-orientation","aria-required","dir"])]),_:3},8,["orientation","dir","loop"]))}}),M1=s5;const[SU,i5]=$t("RadioGroupItem");var u5=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}=Ye(),o=l5(),i=_(()=>o.disabled.value||n.disabled),u=_(()=>o.required.value||n.required),d=_(()=>rs(o.modelValue?.value,n.value));i5({disabled:i,checked:d});const c=M(!1),f=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];Wl("keydown",p=>{f.includes(p.key)&&(c.value=!0)}),Wl("keyup",()=>{c.value=!1});function v(){setTimeout(()=>{c.value&&l.value?.click()},0)}return(p,h)=>(m(),j(s(Du),{checked:d.value,disabled:i.value,"as-child":"",focusable:!i.value,active:d.value},{default:q(()=>[N(r5,ze({...p.$attrs,...n},{ref:s(r),checked:d.value,required:u.value,disabled:i.value,"onUpdate:checked":h[0]||(h[0]=k=>s(o).changeModelValue(p.value)),onSelect:h[1]||(h[1]=k=>a("select",k)),onKeydown:h[2]||(h[2]=ia(ft(()=>{},["prevent"]),["enter"])),onFocus:v}),{default:q(()=>[ge(p.$slots,"default",{checked:d.value,required:u.value,disabled:i.value})]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),P1=u5,c5=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=_(()=>a(t.orientation)?t.orientation:"horizontal"),l=_(()=>r.value==="vertical"?t.orientation:void 0),o=_(()=>t.decorative?{role:"none"}:{"aria-orientation":l.value,role:"separator"});return(i,u)=>(m(),j(s(Qe),ze({as:i.as,"as-child":i.asChild,"data-orientation":r.value},o.value),{default:q(()=>[ge(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),d5=c5;const[np,f5]=$t("TabsRoot");var p5=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}=Vt(n),i=ma(o);Ye();const u=Mt(n,"modelValue",a,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),d=M(),c=Jl(new Set);return f5({modelValue:u,changeModelValue:f=>{u.value=f},orientation:r,dir:i,unmountOnHide:l,activationMode:n.activationMode,baseId:Ia(void 0,"reka-tabs"),tabsList:d,contentIds:c,registerContent:f=>{c.value=new Set([...c.value,f])},unregisterContent:f=>{const v=new Set(c.value);v.delete(f),c.value=v}}),(f,v)=>(m(),j(s(Qe),{dir:s(i),"data-orientation":s(r),"as-child":f.asChild,as:f.as},{default:q(()=>[ge(f.$slots,"default",{modelValue:s(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),m5=p5;function I1(e,t){return`${e}-trigger-${t}`}function R1(e,t){return`${e}-content-${t}`}var v5=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}=Ye(),a=np(),r=_(()=>I1(a.baseId,t.value)),l=_(()=>R1(a.baseId,t.value)),o=_(()=>t.value===a.modelValue.value),i=M(o.value);return wt(()=>{a.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),St(()=>{a.unregisterContent(t.value)}),(u,d)=>(m(),j(s(Zr),{present:u.forceMount||o.value,"force-mount":""},{default:q(({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:bn({animationDuration:i.value?"0s":void 0})},{default:q(()=>[!s(a).unmountOnHide.value||c?ge(u.$slots,"default",{key:0}):Q("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Kv=v5,h5=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}=Vt(t),{forwardRef:a,currentElement:r}=Ye(),l=np();return l.tabsList=r,(o,i)=>(m(),j(s(Tu),{"as-child":"",orientation:s(l).orientation.value,dir:s(l).dir.value,loop:s(n)},{default:q(()=>[N(s(Qe),{ref:s(a),role:"tablist","as-child":o.asChild,as:o.as,"aria-orientation":s(l).orientation.value},{default:q(()=>[ge(o.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),y5=h5,g5=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}=Ye(),a=np(),r=_(()=>I1(a.baseId,t.value)),l=_(()=>a.contentIds.value.has(t.value)?R1(a.baseId,t.value):void 0),o=_(()=>t.value===a.modelValue.value);return(i,u)=>(m(),j(s(Du),{"as-child":"",focusable:!i.disabled,active:o.value},{default:q(()=>[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]=ft(d=>{!i.disabled&&d.ctrlKey===!1?s(a).changeModelValue(i.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=ia(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:q(()=>[ge(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"]))}}),Wv=g5;const[b5,_5]=$t("TimeFieldRoot");function Ks(e,t=Cs(Hn())){return e&&"day"in e?e:ca(t,e)}var x5=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:v,locale:p}=Vt(a),h=ku(p),k=ma(v),S=Rf(h.value,{hourCycle:ss(a.hourCycle)}),{primitiveElement:x,currentElement:E}=Ur(),L=M(new Set),D=_(()=>Vb(a)),A=_(()=>d.value?Ks(d.value):void 0),R=_(()=>c.value?Ks(c.value):void 0);wt(()=>{jv(E.value).forEach(me=>L.value.add(me))});const F=Mt(a,"modelValue",r,{defaultValue:u.value,passive:a.modelValue===void 0}),W=_({get(){return gn(F.value)?F.value:Ks(F.value)},set(me){return me?F.value=F.value&&"day"in F.value?me:new aa(me.hour,me.minute,me.second,F.value?.millisecond):F.value=me,me}}),C=dA({defaultPlaceholder:a.placeholder,defaultValue:F.value}),I=Mt(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??C.copy(),passive:a.placeholder===void 0}),z=_({get(){return Ks(I.value)},set(me){return me&&(I.value="day"in I.value?me.copy():new aa(me.hour,me.minute,me.second,I.value?.millisecond)),me}}),O=_(()=>i.value?i.value:"minute"),B=_(()=>F.value?!!(A.value&&ar(W.value,A.value)||R.value&&ar(R.value,W.value)):!1),J=UT(O.value),K=M(F.value?{...Md({value:W.value,formatter:S})}:{...J}),H=_(()=>y1({granularity:O.value,dateRef:z.value,formatter:S,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:K.value,locale:h,isTimeValue:!0})),le=_(()=>{const me=H.value.arr;return a.hourCycle===12?me.map(Y=>{if(Y.part==="hour"&&"hour"in K.value){const fe=K.value.hour;if(fe!==null){const G=fe===0?12:fe>12?fe-12:fe;return{...Y,value:G.toString()}}}return Y}):me}),ue=_(()=>le.value.filter(({part:me})=>me!=="literal"));Ve(h,me=>{S.getLocale()!==me&&(S.setLocale(me),Je(()=>{L.value.clear(),jv(E.value).forEach(Y=>L.value.add(Y))}))}),Ve(W,me=>{!gn(me)&&(!ql(z.value,me)||z.value.compare(me)!==0)&&(I.value=me.copy())}),Ve([W,h],([me])=>{gn(me)?Object.values(K.value).every(Y=>Y!==null)&&gn(me)&&(K.value={...J}):K.value={...Md({value:me,formatter:S})}});const we=M(null),Oe=_(()=>Array.from(L.value).findIndex(me=>me.getAttribute("data-reka-time-field-segment")===we.value?.getAttribute("data-reka-time-field-segment"))),Ae=_(()=>{const me=k.value==="rtl"?-1:1;return(me<0?Oe.value<0:Oe.value>L.value.size-1)?null:Array.from(L.value)[Oe.value+me]}),ie=_(()=>{const me=k.value==="rtl"?-1:1;return(me>0?Oe.value<0:Oe.value>L.value.size-1)?null:Array.from(L.value)[Oe.value-me]}),xe=Ql();function U(me){me.isComposing||ba(me.key)&&(me.key===xe.ARROW_LEFT&&ie.value?.focus(),me.key===xe.ARROW_RIGHT&&Ae.value?.focus())}function ke(me){we.value=me}return _5({locale:h,modelValue:W,placeholder:z,disabled:l,formatter:S,hourCycle:a.hourCycle,step:D,stepSnapping:f,readonly:o,segmentValues:K,isInvalid:B,segmentContents:ue,elements:L,setFocusedElement:ke,focusNext(){Ae.value?.focus()}}),t({setFocusedElement:ke}),(me,Y)=>(m(),j(s(Qe),ze(me.$attrs,{ref_key:"primitiveElement",ref:x,role:"group","aria-disabled":s(l)?!0:void 0,"data-disabled":s(l)?"":void 0,"data-readonly":s(o)?"":void 0,"data-invalid":B.value?"":void 0,dir:s(k),onKeydown:ia(U,["left","right"])}),{default:q(()=>[ge(me.$slots,"default",{modelValue:s(F),segments:le.value,isInvalid:B.value}),N(s(Vf),{id:me.id,as:"input",feature:"focusable",tabindex:"-1",value:s(F)?s(F).toString():"",name:me.name,disabled:s(l),required:me.required,onFocus:Y[0]||(Y[0]=fe=>Array.from(L.value)?.[0]?.focus())},null,8,["id","value","name","disabled","required"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),Gv=x5,k5=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=b5(),a=M(!0),r=M(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:u,handleSegmentCompositionEnd:d,handleSegmentFocusOut:c,attributes:f}=g1({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}),v=_(()=>n.disabled.value),p=_(()=>n.readonly.value),h=_(()=>n.isInvalid.value);return(k,S)=>(m(),j(s(Qe),ze({as:k.as,"as-child":k.asChild},s(f),{contenteditable:v.value||p.value?!1:k.part!=="literal","data-reka-time-field-segment":k.part,"aria-disabled":v.value?!0:void 0,"aria-readonly":p.value?!0:void 0,"data-disabled":v.value?"":void 0,"data-invalid":h.value?"":void 0,"aria-invalid":h.value?!0:void 0},Ly(k.part!=="literal"?{mousedown:s(l),keydown:s(o),beforeinput:s(i),compositionstart:s(u),compositionend:s(d),focusout:()=>{a.value=!0,s(c)()},focusin:x=>{s(n).setFocusedElement(x.target)}}:{})),{default:q(()=>[ge(k.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-time-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),Yv=k5,w5=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}=Ye();return(a,r)=>(m(),j(s(Du),{"as-child":"",focusable:!a.disabled},{default:q(()=>[N(s(Qe),ze({ref:s(n),type:a.as==="button"?"button":void 0},t),{default:q(()=>[ge(a.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),ko=w5;const[$5,C5]=$t("ToolbarRoot");var S5=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}=Vt(t),r=ma(a),{forwardRef:l}=Ye();return C5({orientation:n,dir:r}),(o,i)=>(m(),j(s(Tu),{"as-child":"",orientation:s(n),dir:s(r),loop:o.loop},{default:q(()=>[N(s(Qe),{ref:s(l),role:"toolbar","aria-orientation":s(n),"as-child":o.asChild,as:o.as},{default:q(()=>[ge(o.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),E5=S5,A5=ae({__name:"ToolbarSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=$5();return Ye(),(a,r)=>(m(),j(d5,{orientation:s(n).orientation.value,"as-child":t.asChild,as:a.as},{default:q(()=>[ge(a.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),Dc=A5;const T5=/^filter\[(.+)\]$/,D5=/^[1-9]\d*$/;function vl(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function Jv(e){return D5.test(e)?Number(e):void 0}function q1(e){const t={},n=vl(e.search).trim();n!==""&&(t.search=n);const a=vl(e.sort).trim();if(a!==""){t.sort=a;const i=vl(e.dir);t.dir=i==="desc"?"desc":"asc"}const r=Jv(vl(e.page));r!==void 0&&(t.page=r);const l=Jv(vl(e.per_page));l!==void 0&&(t.per_page=l);const o={};for(const i of Object.keys(e).sort()){const u=T5.exec(i)?.[1],d=vl(e[i]);u&&d!==""&&(o[u]=d)}return Object.keys(o).length>0&&(t.filter=o),t}function zi(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 Al(e){return JSON.stringify(zi(e))}const L1="summer-admin.list:",O5=Al({});let Id=null;function Mu(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function N1(e){return`${L1}${e}:`}function B1(e){return Id===null?null:N1(Id)+e}function Rd(e){try{Mu()?.removeItem(e)}catch{}}function Zv(e){const t=Mu();if(t)try{const n=[];for(let a=0;a!0);return}const n=N1(t);Zv(a=>!a.startsWith(n))}function M5(e){const t=B1(e);if(t===null)return{};let n=null;try{n=Mu()?.getItem(t)??null}catch{return{}}if(n===null)return{};let a;try{a=JSON.parse(n)}catch{return Rd(t),{}}return typeof a!="object"||a===null||Array.isArray(a)||Object.getPrototypeOf(a)!==Object.prototype||!Object.values(a).every(r=>typeof r=="string")?(Rd(t),{}):q1(a)}function Ws(e,t){const n=B1(e);if(n!==null){if(Al(t)===O5){Rd(n);return}try{Mu()?.setItem(n,JSON.stringify(zi(t)))}catch{}}}const Br=M(null),F1=M(null);let Go=null;function V1(e){z1(),F1.value=e,!(e===null||e<=0)&&(Go=setTimeout(()=>{Go=null,lf()},e*800))}function z1(){Go!==null&&(clearTimeout(Go),Go=null)}n2(V1);const un=xt(Br);async function P5(e,t){const{data:n,response:a}=await Ne.POST("/auth/login",{body:{login:e,password:t}});return!a.ok||!n?!1:(V1(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function j1(){const{data:e,response:t}=await Ne.GET("/auth/me");return Br.value=t.ok&&e?e.data:null,ap(Br.value?.id??null),await g3(Br.value),Br.value}function U1(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 Oc(e){Br.value=e,ap(e.id)}function H1(){z1(),Br.value=null,F1.value=null,ap(null)}function I5(e){H1();const t=e.currentRoute.value;t.name!=="login"&&e.push({name:"login",query:{redirect:t.fullPath}}).catch(()=>{})}async function R5(e){try{await Ne.POST("/auth/logout")}catch{}finally{H1(),i2([]),d2([])}e&&await e.replace({name:"login"}).catch(()=>{})}const q5=["src"],L5={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":""},N5={class:"flex flex-col leading-tight max-[1099px]:hidden","data-user-identity":""},B5={class:"font-semibold"},F5={key:0,class:"text-[12px] text-muted","data-user-role":""},V5={class:"flex items-center gap-3 px-2 py-2"},z5=["src"],j5={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"},U5={class:"flex min-w-0 flex-col leading-tight"},H5={class:"truncate font-bold"},K5={class:"truncate text-[13px] text-muted"},W5={class:"flex size-[18px] items-center justify-center"},G5=ae({__name:"UserMenu",setup(e){const t=_r(),n=_(()=>{const v=un.value;if(!v)return"";const p=`${v.first_name} ${v.last_name}`.trim();return p===""?v.login:p}),a=_(()=>U1(un.value)),r=_(()=>un.value?.avatar?.thumb_url||un.value?.avatar?.url||""),l=_(()=>un.value?.role?.name??""),o=_(()=>p3.value||ua.value);function i(v){try{const p=new Intl.DisplayNames([v],{type:"language"}).of(v);if(p&&p!==v)return p.charAt(0).toLocaleUpperCase(v)+p.slice(1)}catch{}return v.toUpperCase()}const u=_(()=>l2.value.map(v=>({code:v,name:i(v)})));function d(v){typeof v=="string"&&v!==""&&b3(v)}async function c(){await t.push({name:"account"}).catch(()=>{})}async function f(){await R5(t)}return(v,p)=>(m(),j(s(A1),{modal:!1},{default:q(()=>[N(s(O1),{"data-user-menu":"",disabled:!s(un),"aria-label":`${s(g)("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:q(()=>[r.value?(m(),y("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-[34px] shrink-0 rounded-full object-cover"},null,8,q5)):(m(),y("span",L5,$(a.value),1)),w("span",N5,[w("span",B5,$(n.value),1),l.value?(m(),y("span",F5,$(l.value),1)):Q("",!0)]),N(s(ur),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled","aria-label"]),N(s(D1),null,{default:q(()=>[N(s(T1),{"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:q(()=>[w("div",V5,[r.value?(m(),y("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-10 shrink-0 rounded-full object-cover"},null,8,z5)):(m(),y("span",j5,$(a.value),1)),w("span",U5,[w("span",H5,$(n.value),1),w("span",K5,$(s(un)?.email),1)])]),N(s(Pd),{"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:q(()=>[N(s(GS),{size:18,"aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.myaccount.menu_label")),1)]),_:1}),u.value.length>1?(m(),y(pe,{key:0},[N(s(Hv),{class:"my-1 h-px bg-border"}),N(s(VM),{class:"px-3 pt-1 pb-1 text-[12px] font-semibold text-muted","data-language-label":""},{default:q(()=>[_e($(s(g)("backend::lang.nav.language")),1)]),_:1}),N(s(UM),{"model-value":o.value,"onUpdate:modelValue":d},{default:q(()=>[(m(!0),y(pe,null,Ie(u.value,h=>(m(),j(s(KM),{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:q(()=>[w("span",W5,[N(s(BM),null,{default:q(()=>[N(s(jn),{size:18,"aria-hidden":"true"})]),_:1})]),w("span",null,$(h.name),1)]),_:2},1032,["value","data-locale-option","lang"]))),128))]),_:1},8,["model-value"])],64)):Q("",!0),N(s(Hv),{class:"my-1 h-px bg-border"}),N(s(Pd),{"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:q(()=>[N(s(Kg),{size:18,"aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.auth.logout")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}}),Y5=["role","data-tone"],J5={class:"font-medium"},Z5=["aria-label","onClick"],X5=ae({__name:"Toast",setup(e){return(t,n)=>(m(),j(Sk,{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:q(()=>[(m(!0),y(pe,null,Ie(s(d3),a=>(m(),y("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"},[w("span",{class:ve([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"?(m(),j(s(gt),{key:0,size:16})):(m(),j(s(jn),{key:1,size:16}))],2),w("span",J5,$(a.text),1),w("button",{type:"button","aria-label":s(g)("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(ab)(a.id)},[N(s(Qt),{size:16,"aria-hidden":"true"})],8,Z5)],8,Y5))),128))]),_:1}))}}),Q5=[{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"}],e8=new Set(["mod+s","mod+enter","mod+shift+s"]);function rp(e){const t=typeof navigator>"u"?"":navigator.platform||"";return/mac|iphone|ipad|ipod/i.test(t)}function t8(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 K1(e){if(e.isComposing)return null;if(e.ctrlKey||e.metaKey)return e.altKey?null:e.key==="Enter"?e.shiftKey?null:"mod+enter":t8(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 n8(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 a8(e){return(typeof e.composedPath=="function"?e.composedPath():[])[0]??e.target}function W1(e,t=rp()){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 r8(e,t=rp()){return W1(e,t).join(t?"":"+")}function qn(e,t,n=rp()){return g("backend::lang.shortcuts.hint",{label:e,keys:r8(t,n)})}const Xv={"mod+s":"Control+S Meta+S","mod+enter":"Control+Enter Meta+Enter","mod+shift+s":"Control+Shift+S Meta+Shift+S",escape:"Escape","/":"/","?":"?"};function Pu(e){return e.split(/\s+/).filter(t=>t in Xv).map(t=>Xv[t]).join(" ")}function G1(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 lp(e,t){return t.querySelector(`[data-hotkey~="${e}"]`)}function l8(e=document){const t=G1(e);return Q5.filter(n=>n.combo==="?"||lp(n.combo,t)!==null)}const op=M(null),Qv=xt(op);function o8(){op.value=l8()}function Y1(){op.value=null}function J1(e){return e.disabled===!0||e.getAttribute("aria-disabled")==="true"}function eh(e){const t=K1(e);if(!t||!e8.has(t))return;t==="mod+s"&&e.preventDefault();const n=e.target?.ownerDocument??document,a=lp(t,G1(n));if(!a||(e.preventDefault(),e.stopPropagation(),e.repeat||J1(a)))return;const r=th(n),l=r instanceof HTMLElement&&r!==a&&r!==n.body?r:null;l&&(a.focus({preventScroll:!0}),th(n)===l&&l.blur()),a.click();const o=n.activeElement;l?.isConnected&&(o===a||o===n.body||o===null)&&l.focus({preventScroll:!0})}function th(e=document){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function nh(e){const t=K1(e);if(t!=="escape"&&t!=="/"&&t!=="?"||e.defaultPrevented||n8(a8(e)))return;const n=e.target?.ownerDocument??document;if(n.querySelector("[data-dismissable-layer]"))return;if(t==="?"){e.preventDefault(),o8();return}const a=lp(t,n);!a||J1(a)||(e.preventDefault(),a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement?(a.focus(),a.select()):a.click())}let Gs=0;function s8(){Gs===0&&(window.addEventListener("keydown",eh,!0),window.addEventListener("keydown",nh)),Gs++;let e=!1;return()=>{e||(e=!0,Gs--,Gs===0&&(window.removeEventListener("keydown",eh,!0),window.removeEventListener("keydown",nh)))}}const i8={class:"flex items-start gap-3"},u8={class:"flex min-w-0 flex-1 flex-col gap-1"},c8={class:"flex flex-col gap-2.5"},d8=["data-shortcut"],f8={class:"flex shrink-0 items-center gap-1"},p8={class:"text-right text-muted"},m8=ae({__name:"ShortcutHelpDialog",setup(e){function t(n){n||Y1()}return(n,a)=>(m(),j(s(Xr),{open:s(Qv)!==null,"onUpdate:open":t},{default:q(()=>[N(s(eo),null,{default:q(()=>[N(s(el),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),N(s(Qr),{"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:q(()=>[w("div",i8,[w("div",u8,[N(s(tl),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:q(()=>[_e($(s(g)("backend::lang.shortcuts.title")),1)]),_:1}),N(s(fr),{class:"text-muted"},{default:q(()=>[_e($(s(g)("backend::lang.shortcuts.description")),1)]),_:1})]),N(s(Hr),{"data-action":"close","aria-label":s(g)("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:q(()=>[N(s(Qt),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),w("dl",c8,[(m(!0),y(pe,null,Ie(s(Qv)??[],r=>(m(),y("div",{key:r.combo,"data-shortcut":r.combo,class:"flex items-center justify-between gap-4"},[w("dt",f8,[(m(!0),y(pe,null,Ie(s(W1)(r.combo),l=>(m(),y("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))]),w("dd",p8,$(s(g)(r.labelKey)),1)],8,d8))),128))])]),_:1})]),_:1})]),_:1},8,["open"]))}}),v8={class:"flex min-w-0 flex-1 flex-col"},h8={class:"flex h-header shrink-0 items-center justify-between gap-4 border-b border-border bg-surface pr-6 pl-8"},y8={class:"flex shrink-0 items-center gap-1"},g8=["title","aria-label"],b8={class:"min-w-0 flex-1 px-8 py-7"},_8=ae({__name:"AppShell",setup(e){const t=Mn(),{collapsed:n,watchViewport:a}=ib(),r=a();St(r);const l=s8();St(()=>{l(),Y1()});const o=`${window.location.origin}/`,i=_(()=>gs(String(t.params.vendor??""),String(t.params.plugin??""))),u=_(()=>i.value?null:t.name==="settings-form"?rc(ns(String(t.params.code??""))):t.name==="plugins"?rc(Ig(t.path)):rc(fu(Zl(t.path)))),d=_(()=>(i.value||u.value)&&!n.value?"calc(var(--spacing-rail) + var(--spacing-panel))":"var(--spacing-rail)");return(c,f)=>(m(),y("div",{class:"flex min-h-screen bg-bg text-text",style:bn({"--shell-offset":d.value})},[N(P3),i.value&&!s(n)?(m(),j(N3,{key:0,entry:i.value},null,8,["entry"])):u.value&&!s(n)?(m(),j(j3,{key:1,section:u.value},null,8,["section"])):Q("",!0),w("div",v8,[w("header",h8,[N(W3),w("div",y8,[w("a",{"data-view-site":"",href:o,target:"_blank",rel:"noopener noreferrer",title:s(g)("backend::lang.nav.view_site"),"aria-label":s(g)("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(zg),{class:"size-[18px]","aria-hidden":"true"})],8,g8),N(G5)])]),w("main",b8,[ge(c.$slots,"default")])]),N(X5),N(m8)],4))}}),x8=300*1e3,k8=30*1e3;function w8(e,t){return e!==""&&t!==""&&e!==t}async function $8(){try{const e=await globalThis.fetch(`${Gr.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 sp=M(!1);let Z1="",X1="";const C8=xt(sp);function S8(e,t=Gr.build){w8(t,e)&&e!==X1&&(Z1=e,sp.value=!0)}function E8(){X1=Z1,sp.value=!1}function A8(e={}){const t=e.booted??Gr.build;if(t==="")return()=>{};const n=e.check??$8,a=e.interval??x8,r=e.minGap??k8,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 v=l.setInterval(f,a);return()=>{o.removeEventListener("visibilitychange",f),l.removeEventListener("focus",f),l.clearInterval(v)}}const T8={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"},D8={class:"font-medium"},O8=["aria-label"],M8=ae({__name:"UpdateBanner",setup(e){return(t,n)=>s(C8)?(m(),y("div",T8,[w("span",D8,$(s(g)("backend::lang.version.available")),1),w("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(lb).reload())},$(s(g)("backend::lang.version.reload")),1),w("button",{type:"button","data-update-close":"","aria-label":s(g)("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(E8)())},[N(s(Qt),{size:16,"aria-hidden":"true"})],8,O8)])):Q("",!0)}}),Q1=M(0),P8=xt(Q1);function I8(){Q1.value++}const R8=ae({__name:"App",setup(e){const t=Mn(),n=_(()=>t.meta.shell===!0);return kn(()=>{document.title=p2(t)}),(a,r)=>(m(),y(pe,null,[n.value?(m(),j(_8,{key:0},{default:q(()=>[N(s(cd),null,{default:q(({Component:l,route:o})=>[(m(),j(zt(l),{key:`${o.path}#${s(P8)}`}))]),_:1})]),_:1})):(m(),j(s(cd),{key:1})),N(M8)],64))}}),q8="data-summer-controller",e0="*",Mc=new Map,qd=new Map;let t0="";function n0(){return`${Gr.base}/assets/`}function a0(e){if(!e.startsWith(n0())||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 r0(e){if(!a0(e))return Promise.reject(new Error(`plugin script outside ${n0()}: ${e}`));const t=Mc.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",()=>{Mc.delete(e),l.remove(),r(new Error(`plugin script failed to load: ${e}`))},{once:!0}),l.src=e,document.head.appendChild(l)});return Mc.set(e,n),n}function l0(e,t){for(const n of t){const a=`${e} +${n}`;if(!a0(n)||qd.has(a))continue;const r=document.createElement("link");r.rel="stylesheet",r.setAttribute(q8,e),r.disabled=!o0(e),r.href=n,qd.set(a,{owner:e,link:r}),document.head.appendChild(r)}}function L8(e){t0=e;for(const{owner:t,link:n}of qd.values())n.disabled=!o0(t)}function o0(e){return e===e0||e===t0}function N8(e){l0(e0,e)}async function ip(e,t){l0(e,t?.styles??[]);const n=t?.scripts??[],a=await Promise.allSettled(n.map(r=>r0(r)));return n.filter((r,l)=>a[l]?.status==="rejected")}const s0=new Map;async function i0(){let e=[];try{const{data:t,response:n}=await Ne.GET("/field-types");e=n.ok&&t?t.data:[]}catch{return[]}for(const t of e){N8(t.styles??[]);const n=t.scripts??[];s0.set(t.element,Promise.allSettled(n.map(a=>r0(a))).then(a=>n.filter((r,l)=>a[l]?.status==="rejected")))}return e}function B8(e){return s0.get(e)??Promise.resolve([])}const F8={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},V8={class:"flex w-full max-w-[400px] flex-col gap-6"},z8={class:"flex items-center justify-center gap-3"},j8={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},U8={class:"text-[22px] font-bold tracking-[-0.02em]"},H8={class:"flex flex-col gap-1.5"},K8={class:"font-semibold"},W8={class:"flex flex-col gap-1.5"},G8={class:"font-semibold"},Y8=["aria-invalid"],J8={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},Z8=["disabled"],X8=ae({__name:"LoginView",setup(e){const t=Mn(),n=_r(),a=M(""),r=M(""),l=M(!1),o=M(!1);async function i(){if(!o.value){o.value=!0,l.value=!1;try{if(!await P5(a.value.trim(),r.value)||!await j1()){l.value=!0;return}r.value="",await Promise.all([Mg(),Pg().catch(()=>[]),i0()]),await n.replace(J0(t.query.redirect)??"/")}finally{o.value=!1}}}return(u,d)=>(m(),y("main",F8,[w("div",V8,[w("div",z8,[w("span",j8,[N(s(mu),{size:20,class:"text-accent","aria-hidden":"true"})]),d[2]||(d[2]=w("span",{class:"text-[18px] font-bold text-white"},[_e("Summer"),w("span",{class:"text-accent"},"CMS")],-1))]),w("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:ft(i,["prevent"])},[w("h1",U8,$(s(g)("backend::lang.auth.title")),1),w("label",H8,[w("span",K8,$(s(g)("backend::lang.auth.login")),1),sa(w("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),[[jl,a.value]])]),w("label",W8,[w("span",G8,$(s(g)("backend::lang.auth.password")),1),sa(w("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:ve([l.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,Y8),[[jl,r.value]])]),l.value?(m(),y("div",J8,[N(s(gt),{size:18,"aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.auth.invalid")),1)])):Q("",!0),w("button",{type:"submit",disabled:o.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},$(s(g)("backend::lang.auth.submit")),9,Z8)],32)])]))}}),ah=/^\d+$/;function u0(e,t,n){const a=cu(t),r=zn(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 ah.test(c)?`${r}/${c}`:r}if(d.length===2&&d[0]==="preview"){const c=d[1]===":id"?String(n??""):d[1]??"";return ah.test(c)?`${r}/${c}/preview`:r}return r}const rh=/^[0-9]+$/;function Q8(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(!rh.test(o??"")||l.length===1&&!rh.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 e6(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 t6(e){return new Intl.NumberFormat(e).formatToParts(1.1).find(n=>n.type==="decimal")?.value??"."}function c0(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 n6={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"},a6={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"},r6={key:1,class:"text-muted","data-empty":""},l6={key:2,class:"text-[13px] text-muted tabular-nums"},o6={key:3,"data-money":"",class:"tabular-nums whitespace-nowrap"},hl=ae({__name:"CellValue",props:{column:{},value:{},row:{}},setup(e){const t=e;function n(p){return p==null||p===""}function a(p){return n(p)?"":Array.isArray(p)?p.map(a).filter(h=>h!=="").join(", "):typeof p=="boolean"?g(p?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof p=="object"?"":String(p)}function r(p){return String(p).padStart(2,"0")}function l(p){if(typeof p!="string"&&typeof p!="number")return"";const h=new Date(p);return Number.isNaN(h.getTime())?String(p):`${h.getFullYear()}-${r(h.getMonth()+1)}-${r(h.getDate())} ${r(h.getHours())}:${r(h.getMinutes())}`}function o(p){if(typeof p!="string")return"";const h=/^\d{4}-\d{2}-\d{2}/.exec(p.trim());return h?h[0]:p.trim()}function i(p){if(typeof p!="string")return"";const h=/(\d{2}):(\d{2})/.exec(p);return h?`${h[1]}:${h[2]}`:p.trim()}function u(p){return typeof p=="string"?p!==""&&p!=="0"&&p.toLowerCase()!=="false":!!p}function d(){if(t.column.currencyFrom){const p=t.row?.[t.column.currencyFrom];return typeof p=="string"?p.trim():""}return t.column.currency??""}function c(p){return typeof p!="string"||p.trim()===""?"":c0(p.trim(),d(),ua.value,4)}const f=_(()=>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"),v=_(()=>{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(p,h)=>f.value==="switch"&&!n(e.value)?(m(),y(pe,{key:0},[u(e.value)?(m(),y("span",n6,[N(s(Lg),{size:14,"aria-hidden":"true"}),_e($(s(g)("backend::lang.list.column_switch_true")),1)])):(m(),y("span",a6,$(s(g)("backend::lang.list.column_switch_false")),1))],64)):v.value===""?(m(),y("span",r6,"—")):f.value==="datetime"||f.value==="date"||f.value==="time"?(m(),y("span",l6,$(v.value),1)):f.value==="money"?(m(),y("span",o6,$(v.value),1)):(m(),y(pe,{key:4},[_e($(v.value),1)],64))}}),s6={key:0,class:"flex shrink-0 gap-2"},i6=["data-row-state"],u6=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"},a=["deleted","negative","disabled"],r=_(()=>a.filter(l=>t.states.includes(l)));return(l,o)=>r.value.length>0?(m(),y("span",s6,[(m(!0),y(pe,null,Ie(r.value,i=>(m(),y("span",{key:i,"data-row-state":i,class:ve([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,i6))),128))])):Q("",!0)}}),c6={class:"overflow-x-auto"},d6={class:"sticky top-0 z-10"},f6={class:"h-row-head border-y border-border bg-subtle"},p6={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},m6=["aria-checked","aria-label","disabled"],v6=["aria-sort"],h6=["data-sort","onClick"],y6={key:1,class:"w-[56px] pr-5"},g6=["aria-busy"],b6={key:0,class:"pl-5"},_6={key:1,class:"pr-5"},x6={key:1},k6=["colspan"],w6={class:"text-muted"},$6=["aria-selected","data-row-states","onClick"],C6={key:0,"data-select":"",class:"pl-5"},S6=["aria-checked","aria-label","onClick"],E6={key:0,class:"flex items-center gap-3"},A6={"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"},T6=["onClick"],D6={key:1,class:"flex items-center gap-2"},O6={key:1,"data-trailing":"",class:"w-[56px] pr-5"},d0=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=_r();function l(J){const K=J.id;return typeof K=="number"||typeof K=="string"?K:null}function o(J,K){const H=l(J);return H===null?`row-${K}`:String(H)}function i(J){return n.rowLink?n.rowLink(J):null}function u(J,K){if(J.target?.closest("a, button, input, label, select"))return;if(n.openable){const ue=J.currentTarget?.querySelector("[data-row-open]")??null;a("open",K,ue);return}const le=i(K);le&&r.push(le)}const d=_(()=>n.rows.map(l).filter(J=>J!==null)),c=_(()=>new Set(n.selected.map(String))),f=_(()=>{const J=d.value,K=J.filter(H=>c.value.has(String(H))).length;return K===0?"false":K===J.length?"true":"mixed"});function v(J){const K=l(J);return K!==null&&c.value.has(String(K))}function p(){a("update:selected",f.value==="true"?[]:[...d.value])}function h(J){const K=l(J);K!==null&&(c.value.has(String(K))?a("update:selected",n.selected.filter(H=>String(H)!==String(K))):a("update:selected",[...n.selected,K]))}function k(J){if(n.sort?.column===J.key)return n.sort.dir==="desc"?"descending":"ascending"}function S(J){return n.sortable&&J.sortable}const x=_(()=>n.variant==="relation"),E=_(()=>x.value?"h-[56px]":"h-row"),L=_(()=>x.value?3:8);function D(J){return(typeof J=="string"||typeof J=="number"?String(J):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(H=>H.charAt(0).toUpperCase()).join("")}const A=["deleted","negative","disabled"];function R(J){const K=l(J),H=K===null?void 0:n.rowStates[String(K)];return Array.isArray(H)?A.filter(le=>H.includes(le)):[]}function F(J,K,H=[]){const le=H.includes("deleted")||H.includes("disabled"),ue=W(J);return K===0?[le?"font-semibold text-muted":"font-semibold",ue].filter(Boolean).join(" "):[le||x.value||J.relation?"text-muted":"",ue].filter(Boolean).join(" ")}function W(J){return J.type==="money"?"text-right":""}function C(J){return["min-w-0 truncate",J.includes("deleted")?"line-through":"no-underline",J.includes("negative")?"text-danger":J.includes("deleted")||J.includes("disabled")?"text-muted":"text-text"]}const I=_(()=>n.columns.filter(J=>!J.invisible)),z=_(()=>Math.max(I.value.length+(n.selectable?1:0)+(n.trailing?1:0),1));function O(J,K){a("open",K,J.currentTarget)}const B=["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(J,K)=>(m(),y("div",c6,[w("table",{class:ve([x.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[w("thead",d6,[w("tr",f6,[e.selectable?(m(),y("th",p6,[w("button",{type:"button",role:"checkbox","aria-checked":f.value,"aria-label":s(g)("backend::lang.list.select_all"),disabled:e.loading||d.value.length===0,class:ve([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:p},[f.value==="mixed"?(m(),j(s(Wg),{key:0,size:14,"aria-hidden":"true"})):f.value==="true"?(m(),j(s(jn),{key:1,size:14,"aria-hidden":"true"})):Q("",!0)],10,m6)])):Q("",!0),(m(!0),y(pe,null,Ie(I.value,H=>(m(),y("th",{key:H.key,scope:"col","aria-sort":S(H)?k(H)??"none":void 0,class:ve([[k(H)?"text-text":"text-muted",W(H)],"px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[S(H)?(m(),y("button",{key:0,type:"button","data-sort":H.key,class:"inline-flex items-center gap-1 font-semibold",onClick:le=>a("sort",H.key)},[_e($(H.label)+" ",1),k(H)==="ascending"?(m(),j(s(Ng),{key:0,size:14,"aria-hidden":"true"})):k(H)==="descending"?(m(),j(s(Rg),{key:1,size:14,"aria-hidden":"true"})):Q("",!0)],8,h6)):(m(),y(pe,{key:1},[_e($(H.label),1)],64))],10,v6))),128)),e.trailing?(m(),y("td",y6)):Q("",!0)])]),w("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(m(!0),y(pe,{key:0},Ie(L.value,H=>(m(),y("tr",{key:`skeleton-${H}`,"data-skeleton":"",class:ve([E.value,"border-b border-border"])},[e.selectable?(m(),y("td",b6,[...K[0]||(K[0]=[w("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):Q("",!0),(m(!0),y(pe,null,Ie(I.value,le=>(m(),y("td",{key:le.key,class:"px-3.5 first:pl-5 last:pr-5"},[w("span",{class:ve([B[(H-1)%B.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128)),e.trailing?(m(),y("td",_6)):Q("",!0)],2))),128)):e.rows.length===0?(m(),y("tr",x6,[w("td",{colspan:z.value,class:"px-5 py-20 text-center"},[ge(J.$slots,"empty",{},()=>[w("span",w6,$(s(g)("backend::lang.list.no_records")),1)])],8,k6)])):(m(!0),y(pe,{key:2},Ie(e.rows,(H,le)=>(m(),y("tr",{key:o(H,le),class:ve([[E.value,v(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?v(H)?"true":"false":void 0,"data-row-states":R(H).length>0?R(H).join(" "):void 0,onClick:ue=>u(ue,H)},[e.selectable?(m(),y("td",C6,[w("button",{type:"button",role:"checkbox","aria-checked":v(H)?"true":"false","aria-label":s(g)("backend::lang.list.select_row"),class:ve([v(H)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:ue=>h(H)},[v(H)?(m(),j(s(jn),{key:0,size:14,"aria-hidden":"true"})):Q("",!0)],10,S6)])):Q("",!0),(m(!0),y(pe,null,Ie(I.value,(ue,we)=>(m(),y("td",{key:ue.key,class:ve([F(ue,we,R(H)),"px-3.5 first:pl-5 last:pr-5"])},[x.value&&we===0?(m(),y("span",E6,[w("span",A6,$(D(H[ue.key])),1),e.openable?(m(),y("button",{key:0,type:"button","data-row-open":"",class:"min-w-0 truncate text-left font-semibold text-text",onClick:Oe=>O(Oe,H)},[N(hl,{column:ue,value:H[ue.key],row:H},null,8,["column","value","row"])],8,T6)):(m(),j(hl,{key:1,column:ue,value:H[ue.key],row:H},null,8,["column","value","row"]))])):we===0&&R(H).length>0?(m(),y("span",D6,[i(H)?(m(),j(s(Vn),{key:0,to:i(H),class:ve(C(R(H)))},{default:q(()=>[N(hl,{column:ue,value:H[ue.key],row:H},null,8,["column","value","row"])]),_:2},1032,["to","class"])):(m(),y("span",{key:1,class:ve(C(R(H)))},[N(hl,{column:ue,value:H[ue.key],row:H},null,8,["column","value","row"])],2)),N(u6,{states:R(H),labels:e.stateLabels},null,8,["states","labels"])])):we===0&&i(H)?(m(),j(s(Vn),{key:2,to:i(H),class:"text-text no-underline"},{default:q(()=>[N(hl,{column:ue,value:H[ue.key],row:H},null,8,["column","value","row"])]),_:2},1032,["to"])):(m(),j(hl,{key:3,column:ue,value:H[ue.key],row:H},null,8,["column","value","row"]))],2))),128)),e.trailing?(m(),y("td",O6,[ge(J.$slots,"trailing",{row:H})])):Q("",!0)],10,$6))),128))],8,g6)],2)]))}}),M6=["aria-label"],P6={key:0,class:"flex flex-col gap-1 text-[13px]"},I6={class:"font-semibold text-muted"},R6=["data-filter","value","onChange"],q6=["value"],L6={key:1,class:"flex flex-col gap-1 text-[13px]"},N6={class:"mb-1 font-semibold text-muted"},B6={class:"flex items-center gap-2"},F6=["data-filter","aria-label","value","onChange"],V6=["data-filter","aria-label","value","onChange"],z6={key:2,class:"flex flex-col gap-1 text-[13px]"},j6={class:"font-semibold text-muted"},U6=["data-filter","value","onChange"],H6=["value"],wo="",Ys="h-button rounded-control border border-border-strong bg-surface px-3 text-text",K6=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(p=>({value:JSON.stringify(p.value),label:p.label}));const v=[];return f.trueValue!==void 0&&v.push({value:JSON.stringify(f.trueValue),label:g("backend::lang.list.column_switch_true")}),f.falseValue!==void 0&&v.push({value:JSON.stringify(f.falseValue),label:g("backend::lang.list.column_switch_false")}),v}const l=M({});async function o(f){const{data:v}=await Ne.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...n.source,scope:f.name}}});l.value={...l.value,[f.name]:v?.data??[]}}wt(()=>{for(const f of n.filters)f.type==="scope"&&o(f)});const i=Ln({});function u(){for(const f of n.filters){if(f.type!=="daterange")continue;const[v="",p=""]=(n.values[f.name]??"").split(".."),h=i[f.name];(!h||n.values[f.name]!==void 0||h.from!==""&&h.to!=="")&&(i[f.name]={from:v,to:p})}}Ve(()=>n.values,u,{immediate:!0,deep:!0});function d(f,v,p){const h={...i[f.name]??{from:"",to:""},[v]:p};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,v){a("update",f.name,v===wo?null:v)}return(f,v)=>(m(),y("div",{role:"group","aria-label":s(g)("backend::lang.list.filters"),"data-filter-bar":"",class:"flex flex-wrap items-end gap-4 border-t border-border px-5 py-3.5"},[(m(!0),y(pe,null,Ie(e.filters,p=>(m(),y(pe,{key:p.name},[p.type==="switch"?(m(),y("label",P6,[w("span",I6,$(p.label||p.name),1),w("select",{"data-filter":p.name,value:e.values[p.name]??wo,class:ve(Ys),onChange:h=>c(p,h.target.value)},[w("option",{value:wo},$(s(g)("backend::lang.list.filter_all")),1),(m(!0),y(pe,null,Ie(r(p),h=>(m(),y("option",{key:h.value,value:h.value},$(h.label),9,q6))),128))],40,R6)])):p.type==="daterange"?(m(),y("fieldset",L6,[w("legend",N6,$(p.label||p.name),1),w("div",B6,[w("input",{type:"date","data-filter":`${p.name}-from`,"aria-label":s(g)("backend::lang.list.filter_from"),value:i[p.name]?.from??"",class:ve(Ys),onChange:h=>d(p,"from",h.target.value)},null,40,F6),v[0]||(v[0]=w("span",{"aria-hidden":"true"},"–",-1)),w("input",{type:"date","data-filter":`${p.name}-to`,"aria-label":s(g)("backend::lang.list.filter_to"),value:i[p.name]?.to??"",class:ve(Ys),onChange:h=>d(p,"to",h.target.value)},null,40,V6)])])):p.type==="scope"?(m(),y("label",z6,[w("span",j6,$(p.label||p.name),1),(m(),y("select",{key:`${p.name}-${l.value[p.name]?.length??-1}`,"data-filter":p.name,value:e.values[p.name]??wo,class:ve(Ys),onChange:h=>c(p,h.target.value)},[w("option",{value:wo},$(s(g)("backend::lang.list.filter_all")),1),(m(!0),y(pe,null,Ie(l.value[p.name]??[],h=>(m(),y("option",{key:h.value,value:h.value},$(h.label),9,H6))),128))],40,U6))])):Q("",!0)],64))),128))],8,M6))}}),W6=["type","disabled","data-hotkey","aria-keyshortcuts"],Ke=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=_(()=>t.hotkey?Pu(t.hotkey):void 0),r=_(()=>["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?(m(),j(s(Vn),{key:0,to:e.to,class:ve(r.value),"data-hotkey":e.hotkey,"aria-keyshortcuts":a.value},{default:q(()=>[e.icon?(m(),j(zt(e.icon),{key:0,size:16,"aria-hidden":"true"})):Q("",!0),ge(l.$slots,"default")]),_:3},8,["to","class","data-hotkey","aria-keyshortcuts"])):(m(),y("button",{key:1,type:e.type,disabled:e.disabled,class:ve(r.value),"data-hotkey":e.hotkey,"aria-keyshortcuts":a.value},[e.icon?(m(),j(zt(e.icon),{key:0,size:16,"aria-hidden":"true"})):Q("",!0),ge(l.$slots,"default")],10,W6))}}),G6=ae({__name:"BulkActionsMenu",props:{actions:{},disabled:{type:Boolean}},emits:["select"],setup(e,{expose:t,emit:n}){const a=n,r=M(null);function l(){const o=r.value?.$el;o instanceof HTMLElement&&o.focus()}return t({focus:l}),(o,i)=>(m(),j(s(A1),{modal:!1},{default:q(()=>[N(s(O1),{"as-child":"",disabled:e.disabled},{default:q(()=>[N(Ke,{ref_key:"trigger",ref:r,variant:"outline",size:"md","data-action":"bulk-actions",disabled:e.disabled},{default:q(()=>[_e($(s(g)("backend::lang.list.bulk_actions"))+" ",1),N(s(ur),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled"])]),_:1},8,["disabled"]),N(s(D1),null,{default:q(()=>[N(s(T1),{"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:q(()=>[(m(!0),y(pe,null,Ie(e.actions,u=>(m(),j(s(Pd),{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:q(()=>[_e($(u.label),1)]),_:2},1032,["data-bulk-action","onSelect"]))),128))]),_:1})]),_:1})]),_:1}))}}),Y6={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},J6={key:0,class:"relative block w-[320px] max-w-full"},Z6={class:"sr-only"},X6=["value","placeholder"],Q6={key:1},eP={class:"flex flex-wrap items-center justify-end gap-2.5"},tP={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"},nP=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=_(()=>new Map(a.actions.map(u=>[u.name,u.label]))),o=M(null);function i(){o.value?.focus()}return t({focusBulk:i}),(u,d)=>(m(),y("div",Y6,[e.showSearch?(m(),y("label",J6,[w("span",Z6,$(s(g)("backend::lang.list.search")),1),N(s(ks),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),w("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,X6)])):(m(),y("span",Q6)),w("div",eP,[e.selectedCount>0?(m(),y("span",tP,[N(s(jn),{size:14,"aria-hidden":"true"}),_e($(e.selectedLabel),1)])):Q("",!0),e.bulkActions.length>0?(m(),j(G6,{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"])):Q("",!0),(m(!0),y(pe,null,Ie(e.buttons,c=>(m(),y(pe,{key:c},[c==="delete"?(m(),j(Ke,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:s(xr),disabled:e.selectedCount===0,onClick:d[2]||(d[2]=f=>r("delete"))},{default:q(()=>[_e($(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):l.value.has(c)?(m(),j(Ke,{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:q(()=>[_e($(l.value.get(c)),1)]),_:2},1032,["data-action","disabled","aria-busy","onClick"])):Q("",!0)],64))),128))])]))}}),aP={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"},rP={"data-range":""},lP={key:0,class:"flex items-center gap-2"},oP=["value"],sP=["value"],iP=["aria-label"],uP=["disabled"],cP={key:0,"aria-hidden":"true",class:"px-1"},dP=["data-page","aria-current","onClick"],fP=["disabled"],Pc="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",f0=ae({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>n.meta?.total??0),l=_(()=>n.meta?.page??1),o=_(()=>Math.max(n.meta?.last_page??1,1)),i=_(()=>{const c=n.meta;if(!c||c.total===0)return zr("backend::lang.list.results",0);const f=(c.page-1)*c.per_page+1,v=Math.min(c.page*c.per_page,c.total);return g("backend::lang.list.pagination_range",{from:f,to:v,total:c.total})}),u=_(()=>{const c=o.value,f=l.value,v=new Set([1,c,f-1,f,f+1].filter(k=>k>=1&&k<=c));f<=3&&[2,3].forEach(k=>k<=c&&v.add(k)),f>=c-2&&[c-1,c-2].forEach(k=>k>=1&&v.add(k));const p=[...v].sort((k,S)=>k-S),h=[];return p.forEach((k,S)=>{const x=p[S-1];x!==void 0&&k-x>1&&h.push(null),h.push(k)}),h});function d(c){const f=Number(c.target.value);Number.isFinite(f)&&f>0&&a("perPage",f)}return(c,f)=>(m(),y("footer",aP,[w("span",rP,$(e.loading?s(g)("backend::lang.list.loading"):i.value),1),e.perPageOptions.length>1?(m(),y("label",lP,[w("span",null,$(s(g)("backend::lang.list.records_per_page")),1),w("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},[(m(!0),y(pe,null,Ie(e.perPageOptions,v=>(m(),y("option",{key:v,value:String(v)},$(v),9,sP))),128))],40,oP)])):Q("",!0),!e.loading&&r.value>0?(m(),y("nav",{key:1,"aria-label":s(g)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[w("button",{type:"button","data-page":"prev",class:ve(Pc),disabled:l.value<=1,onClick:f[0]||(f[0]=v=>a("page",l.value-1))},[N(s(pu),{size:14,"aria-hidden":"true"}),_e($(s(g)("backend::lang.list.prev_page")),1)],8,uP),(m(!0),y(pe,null,Ie(u.value,(v,p)=>(m(),y(pe,{key:v??`gap-${p}`},[v===null?(m(),y("span",cP,"…")):(m(),y("button",{key:1,type:"button","data-page":v,"aria-current":v===l.value?"page":void 0,class:ve([Pc,v===l.value?"border-transparent bg-sel font-bold":""]),onClick:h=>v!==l.value&&a("page",v)},$(v),11,dP))],64))),128)),w("button",{type:"button","data-page":"next",class:ve(Pc),disabled:l.value>=o.value,onClick:f[1]||(f[1]=v=>a("page",l.value+1))},[_e($(s(g)("backend::lang.list.next_page")),1),N(s(_s),{size:14,"aria-hidden":"true"})],8,fP)],8,iP)):Q("",!0)]))}}),pP={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"},mP={class:"flex min-w-0 items-start gap-2.5"},vP={class:"min-w-0 [overflow-wrap:anywhere]"},Iu=ae({__name:"ExtensionFailure",props:{text:{}},setup(e){return(t,n)=>(m(),y("div",pP,[w("span",mP,[N(s(gt),{size:16,class:"mt-0.5 shrink-0 text-danger","aria-hidden":"true"}),w("span",vP,$(e.text),1)])]))}}),hP=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"]),yP=new Set(["script","style","template","iframe","object","embed","noscript","textarea","title","xmp","svg","math","form","input","button","select","link","meta","base"]),gP=32,bP=2e3,_P=new Set(["class","title","lang","dir","role"]),xP={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"])},kP=/^(aria|data)-[a-z0-9_-]+$/;function wP(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 $P(e,t,n){return _P.has(t)||xP[e]?.has(t)===!0||kP.test(t)?e==="a"&&t==="href"||e==="img"&&t==="src"?wP(n,e==="a"):!0:!1}function CP(e,t){const n={};for(const[a,r]of Object.entries(t??{})){const l=a.toLowerCase();typeof r=="string"&&$P(e,l,r)&&(n[l]=r)}return n}function Ld(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(yP.has(l))continue;if(!hP.has(l)){a.push(...Ld(r.children,t,n));continue}if(t+1>gP)continue;n.left-=1;const o=Ld(r.children,t+1,n);a.push(Dn(l,CP(l,r.attrs),o.length>0?o:void 0))}return a}function SP(e){return Ld(e,0,{left:bP})}const EP={key:1,"data-partial-loading":"","aria-busy":"true"},AP=["data-partial","aria-busy"],up=ae({__name:"PartialHost",props:{source:{},name:{},recordId:{default:null},variant:{},reloadKey:{default:0},hint:{type:Boolean,default:!1}},setup(e){const t=e,n=M(null),a=M(!1),r=M(!1);let l=0;const o=u=>SP(u.nodes);o.props=["nodes"];async function i(){const u=++l;r.value=!0;let d=null;try{d=(await Ne.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 Ve(()=>t.reloadKey,()=>{i()}),i(),(u,d)=>a.value?(m(),j(Iu,{key:0,"data-partial-failed":"",text:s(g)("backend::lang.extension.partial_failed")},null,8,["text"])):n.value===null?(m(),y("div",EP,[w("div",{"data-partial-skeleton":"",class:ve([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?(m(),y("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,AP)):Q("",!0)}}),TP={key:0,class:"flex flex-col gap-1.5","data-confirm-prompt":""},DP=["for"],OP=["id","maxlength","placeholder","aria-describedby","disabled","value","onKeydown"],MP=["id"],PP={class:"flex gap-2.5"},IP=["disabled","aria-busy"],$r=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-${Sy()}`,l=M(null),o=_(()=>!!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 Ve(()=>n.open&&!!n.prompt,async c=>{c&&(await Je(),l.value?.focus())}),(c,f)=>(m(),j(s(b4),{open:e.open,"onUpdate:open":i},{default:q(()=>[N(s(y4),null,{default:q(()=>[N(s(v4),{class:"pointer-events-auto fixed inset-0 z-[80] bg-overlay"}),N(s(u4),{"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:q(()=>[N(s(x4),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:q(()=>[_e($(e.title??s(g)("backend::lang.form.confirm")),1)]),_:1}),N(s(p4),{class:"text-muted [overflow-wrap:anywhere]"},{default:q(()=>[_e($(e.message),1)]),_:1}),e.prompt?(m(),y("div",TP,[w("label",{for:`${r}-value`,class:"text-[13px] font-semibold"},$(e.prompt.label),9,DP),w("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:ia(ft(u,["prevent"]),["enter"])},null,40,OP),e.prompt.comment?(m(),y("p",{key:0,id:`${r}-comment`,class:"text-[13px] text-muted"},$(e.prompt.comment),9,MP)):Q("",!0)])):Q("",!0),w("div",PP,[N(s(d4),{"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:q(()=>[_e($(e.cancelLabel??s(g)("backend::lang.form.cancel")),1)]),_:1},8,["disabled"]),w("button",{type:"button","data-action":"confirm",disabled:e.busy||o.value,"aria-busy":e.busy?"true":void 0,class:ve([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:ft(u,["prevent"])},[e.busy?(m(),j(s(Il),{key:0,size:16,class:"animate-spin","aria-hidden":"true"})):Q("",!0),_e(" "+$(e.confirmLabel??s(g)("backend::lang.form.confirm")),1)],10,IP)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function Cr(){const e=M(null),t=M(!1),n=M("");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(v=>{a=v})}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 RP={class:"flex flex-col gap-5"},qP={class:"flex flex-wrap items-end justify-between gap-4"},LP={class:"flex flex-col"},NP={class:"text-[26px] font-bold tracking-[-0.02em]"},BP={key:0,"data-record-count":"",class:"text-muted"},FP={key:0,class:"flex items-center gap-2.5"},VP={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},zP={key:2,"data-list-failed":"",class:"flex flex-wrap items-center justify-between gap-3 border-t border-border px-5 py-4"},jP={role:"alert",class:"text-danger"},UP={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},HP={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},KP={class:"text-[17px] font-bold"},WP={class:"max-w-[420px] text-muted"},GP={key:1,"data-empty-list":"",class:"text-muted"},YP=300,JP=ae({__name:"ListView",setup(e){const t=Mn(),n=_r(),a={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},r=ys(a),l=zn(r)??"/",o=M(null),i=M([]),u=M(null),d=M(!0),c=M(!1),f=M(!1),v=_(()=>c.value||f.value),p=M([]),h=M(!1),k=M(0),S=Cr(),x=_(()=>q1(t.query)),E=M(x.value.search??""),L=_(()=>o.value?.messages),D=_(()=>o.value?.title?o.value.title:gs(a.vendor,a.plugin)?.sideMenu.find($e=>$e.controller===r)?.label??r),A=_(()=>u.value?Ge(L.value?.recordCount,u.value.total):""),R=_(()=>o.value?.toolbarButtons??[]),F=_(()=>R.value.filter(oe=>oe==="create")),W=_(()=>{const oe=o.value?.reorder;if(!oe)return null;const $e=oe.partition?.column,ye=$e?o.value?.filters.find(Be=>Be.column===$e||Be.name===$e):void 0,qe=ye?x.value.filter?.[ye.name]:void 0;return{path:`${l}/reorder`,query:qe!==void 0&&qe!==""?{partition:String(qe)}:{}}}),C=_(()=>o.value?.toolbarActions??[]),I=_(()=>R.value.filter(oe=>oe==="delete"||C.value.some($e=>$e.name===oe))),z=M(null),O=_(()=>u.value?.row_states??{}),B=_(()=>({deleted:Ge(L.value?.rowStateDeleted),negative:Ge(L.value?.rowStateNegative),disabled:Ge(L.value?.rowStateDisabled)})),J=_(()=>(o.value?.bulkActions??[]).filter(oe=>oe.name!=="delete")),K=M(!1),H=M(null),le=_(()=>{const oe=o.value?.perPageOptions??[];return oe.length>0?oe:[o.value?.recordsPerPage||20]}),ue=_(()=>x.value.per_page??u.value?.per_page??o.value?.recordsPerPage??20),we=_(()=>x.value.sort?{column:x.value.sort,dir:x.value.dir==="desc"?"desc":"asc"}:null);function Oe(oe){const $e=o.value?.recordUrl,ye=oe.id;return!$e||typeof ye!="number"&&typeof ye!="string"?null:u0($e,r,ye)}function Ae(oe){Ws(r,oe),n.replace({path:t.path,query:zi(oe)})}const ie=Al({}),xe=_(()=>Al(x.value)!==ie);let U=0,ke=null;function me(){Ae({})}async function Y(oe=!1){const $e=++U;d.value=!0,f.value=!1;let ye=null;try{ye=await G()}catch{ye=null}if($e!==U)return;if(!ye?.data&&oe){Ws(r,{}),n.replace({path:t.path,query:{}});return}if(!ye?.data&&ye?.response?.status===404&&await fe($e))return;if(i.value=ye?.data?.data??[],u.value=ye?.data?.meta??null,f.value=!ye?.data,d.value=!1,ye?.response?.status===422){Ws(r,{});return}const qe=u.value?.last_page??0;qe>=1&&(u.value?.page??0)>qe&&Ae({...x.value,page:qe})}async function fe(oe){try{const{data:$e}=await Ne.GET("/{vendor}/{plugin}/{controller}/singleton",{params:{path:a}});return oe!==U?!0:$e?(await n.replace(`${l}/${$e.data.id}`),!0):!1}catch{return!1}}function G(){return Ne.GET("/{vendor}/{plugin}/{controller}",{params:{path:a,query:x.value}})}async function X(){const oe=await Ne.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:a}});o.value=oe.data?.data??null,c.value=!o.value,o.value&&ip(r,o.value.assets)}X(),Ve(()=>Al(x.value),oe=>{if(oe===ie){const ye=M5(r),qe=Al(ye);if(qe!==ie){ke=qe,n.replace({path:t.path,query:zi(ye)});return}}const $e=ke!==null&&ke===oe;ke=null,Ws(r,x.value),p.value=[],E.value=x.value.search??"",Y($e)},{immediate:!0});let te=null;function b(oe){E.value=oe,te!==null&&clearTimeout(te),te=setTimeout(()=>{te=null;const $e=oe.trim();Ae({...x.value,search:$e===""?void 0:$e,page:void 0})},YP)}St(()=>{te!==null&&clearTimeout(te)});function T(){E.value="",Ae({...x.value,search:void 0,page:void 0})}function P(oe){const $e=we.value;$e?.column!==oe?Ae({...x.value,sort:oe,dir:"asc",page:void 0}):$e.dir==="asc"?Ae({...x.value,sort:oe,dir:"desc",page:void 0}):Ae({...x.value,sort:void 0,dir:void 0,page:void 0})}function re(oe){Ae({...x.value,page:oe})}function ee(oe){Ae({...x.value,per_page:oe,page:void 0})}function ce(oe,$e){const ye={...x.value.filter??{}};$e===null?delete ye[oe]:ye[oe]=$e,Ae({...x.value,filter:ye,page:void 0})}async function Ee(){const oe=p.value.map(Number).filter(ye=>Number.isInteger(ye)&&ye>0);if(!(oe.length===0||h.value||!await S.ask({message:Ge(L.value?.deleteConfirm,oe.length),confirmLabel:g("backend::lang.form.delete"),danger:!0}))){h.value=!0;try{const ye=await Ne.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:a},body:{ids:oe}});if(ye.data){Le(Ge(L.value?.deleted,ye.data.data.deleted)),p.value=[],await Y(),k.value+=1;return}Le(ye.error?.error.message||g("backend::lang.list.delete_failed"),"danger")}catch{Le(g("backend::lang.list.delete_failed"),"danger")}finally{h.value=!1}}}async function Ce(oe){const $e=J.value.find(at=>at.name===oe),ye=p.value.map(Number).filter(at=>Number.isInteger(at)&&at>0);if(!$e||ye.length===0||K.value)return;const qe=$e.label??oe;let Be=0,He=null,Ze="";const Xe=await S.ask({message:$e.confirm||zr("backend::lang.list.bulk_confirm",ye.length,{action:qe}),confirmLabel:qe,danger:!1},async()=>{K.value=!0;try{const at=await Ne.POST("/{vendor}/{plugin}/{controller}/bulk/{action}",{params:{path:{...a,action:oe}},body:{ids:ye}});Be=at.response.status,He=at.data?.data??null,Ze=at.error?.error.message??""}catch{Be=0}finally{K.value=!1}});if(await new Promise(at=>setTimeout(at,0)),H.value?.focusBulk(),!Xe)return;const ot=He;if(ot){Le(ot.message||zr("backend::lang.list.bulk_done",ot.affected)),p.value=[],await Y(),k.value+=1;return}if(Be===409){Le(g("backend::lang.list.bulk_stale"),"danger"),p.value=[],await Y();return}if(Be===403){Le(Ze||g("backend::lang.list.action_forbidden"),"danger");return}Le(Ze||g("backend::lang.extension.action_failed"),"danger")}async function Te(oe){if(z.value===null){z.value=oe;try{const $e=await Ne.POST("/{vendor}/{plugin}/{controller}/toolbar/{action}",{params:{path:{...a,action:oe}},body:{}});if($e.data){$e.data.data.message&&Le($e.data.data.message),await Y(),k.value+=1;return}Le($e.error?.error.message||g("backend::lang.extension.action_failed"),"danger")}catch{Le(g("backend::lang.extension.action_failed"),"danger")}finally{z.value=null}}}return(oe,$e)=>(m(),y("section",RP,[w("header",qP,[w("div",LP,[w("h1",NP,$(D.value),1),A.value?(m(),y("p",BP,$(A.value),1)):Q("",!0)]),F.value.length>0||W.value?(m(),y("div",FP,[W.value?(m(),j(Ke,{key:0,"data-action":"reorder",variant:"outline",icon:s(qg),to:W.value},{default:q(()=>[_e($(s(g)("backend::lang.messages.list.reorder")),1)]),_:1},8,["icon","to"])):Q("",!0),(m(!0),y(pe,null,Ie(F.value,ye=>(m(),j(Ke,{key:ye,"data-action":"create",variant:"primary",icon:s(xs),to:`${s(l)}/create`},{default:q(()=>[_e($(s(Ge)(L.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):Q("",!0)]),o.value?.headerPartial?(m(),j(up,{key:0,variant:"header",source:a,name:o.value.headerPartial,"reload-key":k.value},null,8,["name","reload-key"])):Q("",!0),w("div",VP,[o.value?(m(),j(nP,{key:0,ref_key:"toolbar",ref:H,"show-search":o.value.showSearch,search:E.value,"search-prompt":s(Ge)(L.value?.searchPrompt),buttons:I.value,"selected-count":p.value.length,"selected-label":s(Ge)(L.value?.selected,p.value.length),"delete-label":s(Ge)(L.value?.deleteSelected,p.value.length),actions:C.value,"busy-action":z.value,"bulk-actions":J.value,"bulk-busy":K.value,"onUpdate:search":b,onDelete:Ee,onAction:Te,onBulk:Ce},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label","actions","busy-action","bulk-actions","bulk-busy"])):Q("",!0),o.value&&o.value.filters.length>0?(m(),j(K6,{key:1,filters:o.value.filters,values:x.value.filter??{},source:a,onUpdate:ce},null,8,["filters","values"])):Q("",!0),v.value&&!d.value?(m(),y("div",zP,[w("p",jP,$(s(g)("backend::lang.list.load_failed")),1),f.value&&xe.value?(m(),j(Ke,{key:0,"data-action":"reset-list",onClick:me},{default:q(()=>[_e($(s(g)("backend::lang.list.reset_list")),1)]),_:1})):Q("",!0)])):(m(),j(d0,{key:3,columns:o.value?.columns??[],rows:i.value,loading:d.value||!o.value,"row-link":Oe,selectable:o.value?.showCheckboxes??!1,selected:p.value,sortable:o.value?.showSorting??!1,sort:we.value,"row-states":O.value,"state-labels":B.value,"onUpdate:selected":$e[0]||($e[0]=ye=>p.value=ye),onSort:P},{empty:q(()=>[x.value.search?(m(),y("div",UP,[w("span",HP,[N(s(Jg),{size:24,"aria-hidden":"true"})]),w("p",KP,$(s(Ge)(L.value?.emptySearch,void 0,{term:x.value.search})),1),w("p",WP,$(s(Ge)(L.value?.emptySearchHint,void 0,{term:x.value.search})),1),N(Ke,{"data-action":"clear-search",onClick:T},{default:q(()=>[_e($(s(g)("backend::lang.list.clear_search")),1)]),_:1})])):(m(),y("p",GP,$(s(Ge)(L.value?.empty)||o.value?.noRecordsMessage||s(g)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort","row-states","state-labels"])),N(f0,{meta:u.value,loading:d.value||!o.value,"per-page-options":le.value,"per-page":ue.value,onPage:re,onPerPage:ee},null,8,["meta","loading","per-page-options","per-page"])]),N($r,{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"])]))}}),vr="X-Session-Key",p0="X-Child-Session-Key",ZP=32;function ds(){const e=new Uint8Array(ZP);globalThis.crypto.getRandomValues(e);let t="";for(const n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const XP="X-Upload-Id";async function rr(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 ji(e){try{const t=await e();return t.response.ok&&t.data instanceof Blob?t.data:null}catch{return null}}function Sa(e){return encodeURIComponent(String(e))}function m0(e){return`${Gr.api}/${Sa(e.vendor)}/${Sa(e.plugin)}/${Sa(e.controller)}`}function QP(e){try{return e===""?null:JSON.parse(e)}catch{return null}}function cp(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 eI(e,t){const n=t;if((e===200||e===201)&&n?.data)return{ok:!0,item:n.data};const a=cp(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 v0(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",Ag),c.setRequestHeader("Accept","application/json");for(const[v,p]of Object.entries(n))c.setRequestHeader(v,p);r&&c.setRequestHeader(XP,r),c.upload.onprogress=v=>{v.lengthComputable&&a?.(v.loaded,v.total)},c.onload=()=>d({status:c.status,body:QP(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 lf()&&(d=o?"aborted":await i()),typeof d=="object"&&d.status===401&&t2()),d==="aborted"||o?{ok:!1,reason:"aborted",status:0,message:""}:d==="network"?{ok:!1,reason:"network",status:0,message:""}:eI(d.status,d.body)})(),abort(){o=!0,l?.abort()}}}function h0(e,t,n,a){const r={...e,id:t,field:n},l={[vr]:a},o=`${m0(e)}/${Sa(t)}/files/${Sa(n)}`;return{list:()=>rr(()=>Ne.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}",{params:{path:r,header:l}})),upload:(i,u,d)=>v0(o,i,{...l},u,d),update:(i,u)=>rr(()=>Ne.PUT("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l},body:u})),remove:i=>rr(()=>Ne.DELETE("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l}})),reorder:i=>rr(()=>Ne.POST("/{vendor}/{plugin}/{controller}/{id}/files/{field}/reorder",{params:{path:r,header:l},body:{ids:i}})),download:i=>ji(()=>Ne.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/download",{params:{path:{...r,file:i},header:l},parseAs:"blob"})),thumb:i=>ji(()=>Ne.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/thumb",{params:{path:{...r,file:i},header:l},parseAs:"blob"}))}}function tI(e,t,n,a,r,l,o){const i={...e,id:t,name:n,child:a,field:r},u={[vr]:l,[p0]:o},d=`${m0(e)}/${Sa(t)}/relations/${Sa(n)}/records/${Sa(a)}/files/${Sa(r)}`;return{list:()=>rr(()=>Ne.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}",{params:{path:i,header:u}})),upload:(c,f,v)=>v0(d,c,{...u},f,v),update:(c,f)=>rr(()=>Ne.PUT("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:c},header:u},body:f})),remove:c=>rr(()=>Ne.DELETE("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:c},header:u}})),reorder:c=>rr(()=>Ne.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/reorder",{params:{path:i,header:u},body:{ids:c}})),download:c=>ji(()=>Ne.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/download",{params:{path:{...i,file:c},header:u},parseAs:"blob"})),thumb:c=>ji(()=>Ne.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/thumb",{params:{path:{...i,file:c},header:u},parseAs:"blob"}))}}const nI=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function Sr(e){const t={};for(const[n,a]of Object.entries(e.attributes??{})){const r=n.toLowerCase();!nI.has(r)||a===null||a===!1||(t[r]=a)}return t}function Ft(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 Ru(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function y0(e,t){return typeof e=="number"?t?1:0:t}function g0(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 aI=new Set(["mltext","mltextarea","mlmarkdown"]);function rI(e){return e!==void 0&&aI.has(e)}function hr(e){return e?rI(e.type)||!!e.element&&e.translatable===!0:!1}const fs="summer:ml-locale";function lI(e){typeof window>"u"||e===""||window.dispatchEvent(new CustomEvent(fs,{detail:e}))}function la(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 oI={class:"flex min-w-0 flex-col"},sI=["for"],iI={key:0,class:"text-danger","aria-hidden":"true"},uI=["id"],cI=["id","name","checked","aria-invalid","aria-describedby"],dI=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=_(()=>Ru(n.modelValue));function l(o){a("update:modelValue",y0(n.modelValue,o.target.checked))}return(o,i)=>(m(),y("div",{class:ve([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[w("div",oI,[w("label",{for:e.controlId,class:"font-semibold"},[_e($(e.field.label||e.field.name),1),e.field.required?(m(),y("span",iI," *")):Q("",!0)],8,sI),e.field.comment?(m(),y("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},$(e.field.comment),9,uI)):Q("",!0)]),w("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,cI)],2))}});function fI(e){return e==="date"||e==="time"?e:"datetime"}function sn(e,t=2){return String(e).padStart(t,"0")}const pI=/(Z|[+-]\d{2}:?\d{2})$/i;function mI(e,t,n=!1){if(typeof t!="string"||t.trim()==="")return null;const a=t.trim();try{if(e==="date")return Ab(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?qE(l[1]):null}const r=pI.test(a)?a.replace(" ","T"):`${a.replace(" ","T")}Z`;return n?ca(iv(r,"UTC")):iv(r,Hn())}catch{return null}}function Ic(e){return`${sn(e.year,4)}-${sn(e.month)}-${sn(e.day)}`}function Rc(e){return`${sn(e.hour)}:${sn(e.minute)}:${sn(e.second)}`}function lh(e,t,n=!1){if(!t)return null;if(e==="time")return"hour"in t?Rc(t):null;if(!("year"in t))return null;if(e==="date")return Ic(t);if(n){const l=t instanceof Pa?ca(t):t,o="hour"in l?Rc(l):"00:00:00";return`${Ic(l)}T${o}Z`}const a=t instanceof Pa?t:Cf(t instanceof yt?ca(t):t,Hn()),r=bu(a,"UTC");return`${Ic(r)}T${Rc(r)}Z`}const vI={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm",time:"HH:mm"},hI=/\[([^\]]*)\]|YYYY|YY|MMMM|MMM|MM|M|dddd|ddd|DD|D|HH|H|hh|h|mm|ss|A|a/g;function yI(e){return"year"in e?new yt(e.year,e.month,e.day):null}function qc(e,t,n,a){return new In(e,{...n,timeZone:"UTC"}).formatToParts(t.toDate("UTC")).find(l=>l.type===a)?.value??""}function gI(e,t,n,a){if(!e)return"";const r=n||vI[t],l=yI(e),o="hour"in e?e:null,i=/D/.test(r.replace(/\[[^\]]*\]/g,""));return r.replace(hI,(u,d)=>{if(d!==void 0)return d;switch(u){case"YYYY":return l?sn(l.year,4):"";case"YY":return l?sn(l.year%100):"";case"MMMM":case"MMM":{if(!l)return"";const c=u==="MMMM"?"long":"short";return i?qc(a,l,{day:"numeric",month:c},"month"):qc(a,l,{month:c},"month")}case"MM":return l?sn(l.month):"";case"M":return l?String(l.month):"";case"dddd":case"ddd":return l?qc(a,l,{weekday:u==="dddd"?"long":"short"},"weekday"):"";case"DD":return l?sn(l.day):"";case"D":return l?String(l.day):"";case"HH":return o?sn(o.hour):"";case"H":return o?String(o.hour):"";case"hh":return o?sn(o.hour%12||12):"";case"h":return o?String(o.hour%12||12):"";case"mm":return o?sn(o.minute):"";case"ss":return o?sn(o.second):"";case"A":return o?o.hour<12?"AM":"PM":"";case"a":return o?o.hour<12?"am":"pm":"";default:return u}})}const bI=new yt(2026,10,4);function _I(e,t){if(typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=6)return t;try{return(7-gu(bI,e))%7}catch{return 1}}function oh(e){if(e)try{return Ab(e.slice(0,10))}catch{return}}function xI(e,t=Cs(Hn())){const n=oh(e.minDate),a=oh(e.maxDate);if(n||a)return{min:n,max:a};const r=e.yearRange??[];return r.length===1&&typeof r[0]=="number"?{min:new yt(t.year-r[0],1,1),max:new yt(t.year+r[0],12,31)}:r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"?{min:new yt(r[0],1,1),max:new yt(r[1],12,31)}:{}}function Nd(e,t,n,a){if(!e||t==="time")return;if(t==="date")return e;const r=new dr(e.year,e.month,e.day,a?23:0,a?59:0,a?59:0);return n?r:bu(Cf(r,"UTC"),Hn())}function kI(e,t){const n=Cs(Hn());return Nd(n,e==="time"?"datetime":e,t,!1)??n}const wI=["id","aria-describedby"],$I={key:0},CI={key:1,class:"text-muted","data-empty":""},SI=["aria-label"],EI={class:"flex size-8 shrink-0 items-center justify-center text-muted","aria-hidden":"true"},AI=["data-mode"],TI=["aria-label"],DI={key:0,"data-datepicker-time":"",class:"mt-3 flex items-center gap-2 border-t border-border pt-3"},$o="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",OI=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=_(()=>fI(n.field.mode)),l=_(()=>r.value==="datetime"&&!!n.field.ignoreTimezone),o=_(()=>ua.value||"pl"),i=_(()=>{const ie=n.field.attributes?.readonly;return!!n.field.readOnly||ie!=null&&ie!==!1}),u=_(()=>mI(r.value,n.modelValue,l.value)),d=_(()=>r.value==="time"?null:u.value),c=_(()=>r.value==="time"?u.value:null),f=_(()=>xI(n.field)),v=_(()=>Nd(f.value.min,r.value,l.value,!1)),p=_(()=>Nd(f.value.max,r.value,l.value,!0)),h=kI(r.value,l.value),k=_(()=>_I(o.value,n.field.firstDay)),S=_(()=>n.field.twelveHour?12:24),x=_(()=>r.value==="date"?"day":"minute"),E=_(()=>gI(u.value,r.value,n.field.displayFormat,o.value)),L=_(()=>!n.field.required&&u.value!==null&&!i.value),D=_(()=>{const ie=d.value;return ie?!!v.value&&ie.compare(v.value)<0||!!p.value&&ie.compare(p.value)>0:!1}),A=new Set(["day","month","year","hour","minute","second"]),R=M(null),F=M(!1);function W(){const ie=R.value;if(!ie){F.value=!1;return}const xe=Array.from(ie.querySelectorAll("[data-reka-date-field-segment], [data-reka-time-field-segment]")).filter(ke=>A.has(ke.dataset.rekaDateFieldSegment??ke.dataset.rekaTimeFieldSegment??"")),U=xe.filter(ke=>!ke.hasAttribute("data-placeholder")).length;F.value=U>0&&U!!n.invalid||D.value||F.value),z=_(()=>lh(r.value,u.value,l.value));function O(ie){const xe=lh(r.value,ie??null,l.value);C(),!(xe===z.value&&(xe!==null||n.modelValue===null))&&a("update:modelValue",xe)}function B(ie){if(!ie||r.value!=="datetime"){O(ie);return}const xe=d.value,U=H.value,ke=!xe||xe.year!==ie.year||xe.month!==ie.month||xe.day!==ie.day,me=!("hour"in ie)||ie.hour!==U.hour||ie.minute!==U.minute;ke&&me&&(ie=le(ie,U)),K.value=ie,O(ie)}function J(){a("update:modelValue",null),C()}const K=M(null);Ve(d,ie=>{K.value=ie},{immediate:!0});const H=_(()=>{const ie=K.value??d.value;return ie&&"hour"in ie?new aa(ie.hour,ie.minute):new aa(0,0)});function le(ie,xe){return"hour"in ie?ie.set({hour:xe.hour,minute:xe.minute,second:0,millisecond:0}):new dr(ie.year,ie.month,ie.day,xe.hour,xe.minute)}function ue(ie){if(!ie)return;const xe=ie instanceof aa?ie:new aa(ie.hour,ie.minute),U=K.value??d.value??h,ke=le(U,xe);K.value=ke,O(ke)}function we(ie){return ie.charAt(0).toLocaleUpperCase(o.value)+ie.slice(1)}const Oe=_(()=>[Ft(I.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 Ae(ie){return ie==="literal"?"text-muted":ie==="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(ie,xe)=>i.value?(m(),y("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"},[E.value!==""?(m(),y("span",$I,$(E.value),1)):(m(),y("span",CI,"—"))],8,wI)):r.value==="time"?(m(),y("div",{key:1,ref_key:"container",ref:R,"data-datepicker":"","data-mode":"time",class:ve(Oe.value),onKeyup:C,onFocusout:C},[N(s(Gv),{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":I.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center","onUpdate:modelValue":O},{default:q(({segments:U})=>[(m(!0),y(pe,null,Ie(U,ke=>(m(),j(s(Yv),{key:ke.part,part:ke.part,class:ve(Ae(ke.part))},{default:q(()=>[_e($(ke.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["id","model-value","locale","hour-cycle","name","required","aria-invalid","aria-describedby"]),L.value?(m(),y("button",{key:0,type:"button","data-action":"clear","aria-label":s(g)("backend::lang.datepicker.clear"),class:ve($o),onClick:J},[N(s(Qt),{size:16,"aria-hidden":"true"})],8,SI)):Q("",!0),w("span",EI,[N(s(pd),{size:16})])],34)):(m(),j(s(WO),{key:2,id:e.controlId,"model-value":d.value,"default-placeholder":s(h),locale:o.value,granularity:x.value,"hour-cycle":S.value,"hide-time-zone":r.value!=="datetime"||l.value,"min-value":v.value,"max-value":p.value,"week-starts-on":k.value,name:e.field.name,required:e.field.required||void 0,"close-on-select":r.value==="date","prevent-deselect":"","onUpdate:modelValue":B},{default:q(()=>[w("div",{ref_key:"container",ref:R,"data-datepicker":"","data-mode":r.value,class:ve(Oe.value),onKeyup:C,onFocusout:C},[N(s(cM),{"aria-invalid":I.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center overflow-hidden"},{default:q(({segments:U})=>[(m(!0),y(pe,null,Ie(U,ke=>(m(),j(s(CM),{key:ke.part,part:ke.part,class:ve(Ae(ke.part))},{default:q(()=>[_e($(ke.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["aria-invalid","aria-describedby"]),L.value?(m(),y("button",{key:0,type:"button","data-action":"clear","aria-label":s(g)("backend::lang.datepicker.clear"),class:ve($o),onClick:J},[N(s(Qt),{size:16,"aria-hidden":"true"})],8,TI)):Q("",!0),N(s(PM),{"data-action":"open-calendar","aria-label":s(g)("backend::lang.datepicker.open_calendar"),class:ve($o)},{default:q(()=>[N(s(Bg),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])],42,AI),N(s(iM),{"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:q(()=>[N(s(YO),null,{default:q(({weekDays:U,grid:ke})=>[N(s(xM),{class:"flex h-9 items-center justify-between"},{default:q(()=>[N(s(TM),{"aria-label":s(g)("backend::lang.datepicker.prev_month"),class:ve($o)},{default:q(()=>[N(s(pu),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"]),N(s(wM),{class:"font-semibold"},{default:q(({headingValue:me})=>[_e($(we(me)),1)]),_:1}),N(s(EM),{"aria-label":s(g)("backend::lang.datepicker.next_month"),class:ve($o)},{default:q(()=>[N(s(_s),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),_:1}),(m(!0),y(pe,null,Ie(ke,me=>(m(),j(s(fM),{key:me.value.toString(),class:"mt-2 w-full border-collapse select-none"},{default:q(()=>[N(s(hM),null,{default:q(()=>[N(s(Uv),{class:"flex"},{default:q(()=>[(m(!0),y(pe,null,Ie(U,Y=>(m(),j(s(bM),{key:Y,class:"flex h-9 w-9 items-center justify-center text-[13px] font-normal text-muted"},{default:q(()=>[_e($(Y),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024),N(s(mM),null,{default:q(()=>[(m(!0),y(pe,null,Ie(me.rows,(Y,fe)=>(m(),j(s(Uv),{key:`week-${fe}`,class:"flex"},{default:q(()=>[(m(!0),y(pe,null,Ie(Y,G=>(m(),j(s(ZO),{key:G.toString(),date:G,class:"p-0"},{default:q(()=>[N(s(QO),{day:G,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"?(m(),y("div",DI,[N(s(pd),{size:16,class:"shrink-0 text-muted","aria-hidden":"true"}),N(s(Gv),{"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":ue},{default:q(({segments:U})=>[(m(!0),y(pe,null,Ie(U,ke=>(m(),j(s(Yv),{key:ke.part,part:ke.part,class:ve(Ae(ke.part))},{default:q(()=>[_e($(ke.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["model-value","locale","hour-cycle"])])):Q("",!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"]))}}),dp=Symbol("summer.form.values"),fp=Symbol("summer.form.patch"),pp=Symbol("summer.form.locale"),Ui=Symbol("summer.form.enabledLocales"),b0=Symbol("summer.form.assets");function mp(){const e=M(0);return{activeUploads:e,beginUpload(){e.value++;let t=!1;return()=>{t||(t=!0,e.value>0&&e.value--)}}}}const ro=Symbol("summer.form.session"),_0=Symbol("summer.settings.secrets"),vp=Symbol("summer.form.permissionLocks"),hp=Symbol("summer.form.triggerNotes"),sh="summer-action",MI="summer-result",ih="summer-change",uh="summer-upload",PI="summer-upload-result",x0=5e3,yp=Symbol("summer.form.feedback"),Ss=Symbol("summer.form.fieldScope"),gp=Symbol("summer.form.rememberLabel"),k0=Symbol("summer.form.dependentCache"),II=["data-dependent"],RI={class:"relative"},qI=["id","name","value","disabled","required","aria-required","aria-invalid","aria-busy","aria-describedby"],LI={key:0,value:"state",class:"text-muted"},NI=["value"],BI=["id"],FI={key:1,class:"flex flex-wrap items-center gap-2"},VI=["id"],Js="empty",Zs="placeholder",zI=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(Ss,null),o=it(yp,null),i=it(k0,null)??new Map,u=_(()=>n.field.dependsOn??""),d=_(()=>u.value!==""),c=M("waiting"),f=M([]),v=_(()=>{const H=l?.values.value[u.value];return H==null||H===""||typeof H=="object"?null:String(H)}),p=_(()=>l?.fields.value.find(H=>H.name===u.value)),h=_(()=>p.value?.label||u.value),k=_(()=>(p.value?.options??[]).find(le=>x(le.value,v.value))?.label??v.value??""),S=_(()=>d.value?f.value:n.field.options??[]);function x(H,le){return H==null||le===null||le===void 0?H===le||H==null&&le==null:String(H)===String(le)}function E(){return n.modelValue!==null&&n.modelValue!==void 0&&n.modelValue!==""}function L(){E()&&(a("update:modelValue",null),o?.announce(g("backend::lang.form.dependent_cleared",{field:n.field.label||n.field.name})))}function D(H,le){if(!H.applies){f.value=[],c.value="unused",le&&L();return}f.value=H.options.map(ue=>({value:ue.value,label:r.repeat(Math.max(0,ue.depth))+ue.label})),c.value=f.value.length>0?"ready":"empty",le&&E()&&!f.value.some(ue=>x(ue.value,n.modelValue))&&L()}let A=0,R=!1;async function F(H){const le=++A,ue=v.value;if(ue===null){f.value=[],c.value="waiting",H&&L();return}const we=l?.path(n.field.name)??n.field.name,Oe=`${we}\0${ue}`,Ae=i.get(Oe);if(Ae){D(Ae,H);return}if(!n.source){R=H,c.value="failed";return}c.value="loading";try{const{data:ie}=await Ne.GET("/{vendor}/{plugin}/{controller}/fields/{field}/dependent-options",{params:{path:{...n.source,field:we},query:{[`values[${u.value}]`]:ue}}});if(le!==A)return;if(!ie){R=H,c.value="failed";return}i.set(Oe,ie.data),D(ie.data,H)}catch{le===A&&(R=H,c.value="failed")}}function W(){F(R)}Ve(v,(H,le)=>{d.value&&H!==le&&F(!0)}),wt(()=>{d.value&&F(!1)}),St(()=>{A++});const C=_(()=>{const H=S.value.findIndex(le=>x(le.value,n.modelValue));return H>=0?String(H):n.field.emptyOption!==void 0&&!E()?Js:Zs}),I=_(()=>{switch(c.value){case"waiting":return g("backend::lang.form.dependent_waiting",{field:h.value});case"loading":return g("backend::lang.form.loading_options");case"unused":return g("backend::lang.form.dependent_not_used");case"empty":return g("backend::lang.form.dependent_empty",{type:k.value});case"failed":return g("backend::lang.form.dependent_failed");default:return""}}),z=_(()=>d.value&&c.value!=="ready"),O=_(()=>z.value||C.value===Js||C.value===Zs),B=_(()=>`${n.controlId}-dependent`),J=_(()=>[n.describedBy??"",d.value&&(c.value==="empty"||c.value==="failed")?B.value:""].filter(Boolean).join(" "));function K(H){const le=H.target.value;if(le===Js){a("update:modelValue",null);return}const ue=S.value[Number(le)];ue&&a("update:modelValue",ue.value)}return(H,le)=>(m(),y("div",{class:"flex flex-col gap-1.5","data-dependent":d.value?c.value:void 0},[w("div",RI,[w("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":J.value||void 0,class:ve([[s(Ft)(e.invalid),O.value?"text-muted":""],"h-input appearance-none pr-10 disabled:cursor-not-allowed"]),onChange:K},[z.value?(m(),y("option",LI,$(I.value),1)):(m(),y(pe,{key:1},[e.field.emptyOption!==void 0?(m(),y("option",{key:0,value:Js,class:"text-muted"},$(e.field.emptyOption),1)):Q("",!0),C.value===Zs?(m(),y("option",{key:1,value:Zs,disabled:""},$(s(g)("backend::lang.form.select_placeholder")),1)):Q("",!0),(m(!0),y(pe,null,Ie(S.value,(ue,we)=>(m(),y("option",{key:we,value:String(we),class:"text-text"},$(ue.label),9,NI))),128))],64))],42,qI),N(s(ur),{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"?(m(),y("p",{key:0,id:B.value,"data-dependent-hint":"",class:"text-[13px] text-muted"},$(I.value),9,BI)):d.value&&c.value==="failed"?(m(),y("div",FI,[w("p",{id:B.value,role:"alert",class:"flex items-center gap-1.5 text-[13px] text-danger"},[N(s(gt),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.form.dependent_failed")),1)],8,VI),N(Ke,{variant:"ghost",size:"sm",icon:s(li),"data-action":"dependent-retry",onClick:W},{default:q(()=>[_e($(s(g)("backend::lang.form.dependent_retry")),1)]),_:1},8,["icon"])])):Q("",!0)],8,II))}}),jI={class:"flex items-start gap-3"},UI={class:"flex min-w-0 flex-1 flex-col gap-1"},HI={key:0,class:"flex items-center gap-4"},KI=["src"],WI={key:1,class:"flex size-16 shrink-0 items-center justify-center rounded-inner bg-subtle","aria-hidden":"true"},GI=["title"],YI={class:"flex flex-col gap-1.5"},JI=["for"],ZI=["id","disabled","aria-invalid","aria-describedby"],XI=["id"],QI={class:"flex flex-col gap-1.5"},eR=["for"],tR=["id","disabled","aria-invalid","aria-describedby"],nR=["id"],aR={class:"flex gap-2.5"},rR=["disabled"],lR=["aria-keyshortcuts","title","disabled"],oR=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=M(""),l=M(""),o=M({}),i=M(!1),u=Cr();function d(S){const x={};for(const[E,L]of Object.entries(S??{})){const D=(Array.isArray(L)?L:[L]).filter(A=>typeof A=="string"&&A!=="");D.length>0&&(x[E]=D)}return x}const c=_(()=>`${n.idPrefix}-caption-title`),f=_(()=>`${n.idPrefix}-caption-description`),v=_(()=>!!n.file&&(r.value!==n.file.title||l.value!==n.file.description));Ve(()=>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 p(S){if(S){a("update:open",!0);return}i.value||v.value&&!await u.ask({message:g("backend::lang.form.unsaved_confirm"),confirmLabel:g("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),Le(g("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:[cp(S.error)||g("backend::lang.form.error_generic")]});return}Le(S.error?.message||g("backend::lang.form.error_generic"),"danger")}finally{i.value=!1}}}function k(S){S.preventDefault(),a("closed")}return(S,x)=>(m(),y(pe,null,[N(s(Xr),{open:e.open,"onUpdate:open":p},{default:q(()=>[N(s(eo),null,{default:q(()=>[N(s(el),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),N(s(Qr),{"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:k},{default:q(()=>[w("div",jI,[w("div",UI,[N(s(tl),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.attachment")),1)]),_:1}),N(s(fr),{class:"text-muted"},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.help")),1)]),_:1})]),N(s(Hr),{"data-action":"close","aria-label":s(g)("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:q(()=>[N(s(Qt),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label","disabled"])]),e.file?(m(),y("div",HI,[e.preview?(m(),y("img",{key:0,src:e.preview,alt:"",class:"size-16 shrink-0 rounded-inner object-cover"},null,8,KI)):(m(),y("span",WI,[N(s(El),{size:16,class:"text-muted"})])),w("span",{class:"min-w-0 truncate text-[13px] text-muted",title:e.file.file_name},$(e.file.file_name),9,GI)])):Q("",!0),w("form",{class:"flex flex-col gap-4",novalidate:"",onSubmit:ft(h,["prevent"])},[w("div",YI,[w("label",{for:c.value,class:"font-semibold"},$(s(g)("backend::lang.fileupload.title_label")),9,JI),sa(w("input",{id:c.value,"onUpdate:modelValue":x[0]||(x[0]=E=>r.value=E),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:ve([s(Ft)(!!o.value.title),"h-input"])},null,10,ZI),[[jl,r.value]]),o.value.title?(m(),y("p",{key:0,id:`${c.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[N(s(gt),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(o.value.title.join(" ")),1)],8,XI)):Q("",!0)]),w("div",QI,[w("label",{for:f.value,class:"font-semibold"},$(s(g)("backend::lang.fileupload.description_label")),9,eR),sa(w("textarea",{id:f.value,"onUpdate:modelValue":x[1]||(x[1]=E=>l.value=E),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:ve([s(Ft)(!!o.value.description),"min-h-input resize-y py-2.5"])},null,10,tR),[[jl,l.value]]),o.value.description?(m(),y("p",{key:0,id:`${f.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[N(s(gt),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(o.value.description.join(" ")),1)],8,nR)):Q("",!0)]),w("div",aR,[w("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:x[2]||(x[2]=E=>p(!1))},$(s(g)("backend::lang.form.cancel")),9,rR),w("button",{type:"submit","data-action":"save-caption","data-hotkey":"mod+s mod+enter","aria-keyshortcuts":s(Pu)("mod+s mod+enter"),title:s(qn)(s(g)("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(g)("backend::lang.form.saving"):s(g)("backend::lang.fileupload.details_submit")),9,lR)])],32)]),_:1})]),_:1})]),_:1},8,["open"]),N($r,{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))}}),sR=["id","data-field-name","aria-labelledby","aria-describedby","aria-busy"],iR={key:0,"data-fileupload-loading":"",class:"h-[112px] rounded-control bg-skel","aria-hidden":"true"},uR={key:1,role:"alert","data-fileupload-failed":"",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},cR={key:0,"data-fileupload-empty":"",class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 text-muted"},dR={key:1,"data-fileupload-grid":"",class:"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-4"},fR=["data-file-item","data-state","onDragover","onDrop"],pR={class:"relative flex aspect-square items-center justify-center bg-subtle"},mR=["href","aria-label"],vR=["src","alt","onError"],hR=["aria-label","onClick"],yR=["src","alt"],gR={key:2,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},bR=["data-handle","aria-label","onKeydown","onDragstart"],_R={key:5,class:"absolute top-2 right-2 flex gap-1"},xR=["data-caption","aria-label","onClick"],kR=["aria-label","onClick"],wR=["aria-label","onClick"],$R={class:"flex flex-col gap-1 p-2"},CR=["title"],SR={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},ER={key:0},AR={key:1},TR={key:2},DR={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},OR={key:1,"data-file-error":"",class:"text-[13px] text-danger"},MR={class:"sr-only"},PR={key:2,"data-fileupload-single":"",class:"flex flex-col gap-2"},IR=["data-file-item","data-state"],RR=["src","alt","onError"],qR={key:3,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},LR={class:"flex min-w-0 flex-1 flex-col gap-1"},NR=["title"],BR={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},FR={key:0},VR={key:1},zR={key:2},jR={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},UR={key:1,"data-file-error":"",class:"text-[13px] text-danger"},HR={class:"sr-only"},KR={key:2,class:"mt-1 flex flex-wrap gap-2"},WR={key:3,"data-fileupload-rows":"",class:"flex flex-col gap-2"},GR=["data-file-item","data-state","onDragover","onDrop"],YR={class:"flex items-center gap-3"},JR=["data-handle","aria-label","onKeydown","onDragstart"],ZR={class:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-pager bg-subtle"},XR=["src","onError"],QR={class:"flex min-w-0 flex-1 flex-col leading-tight"},eq=["title"],tq=["title"],nq=["title"],aq={class:"flex shrink-0 items-center gap-2 text-[13px] text-muted tabular-nums"},rq={key:0},lq={key:1},oq={key:2},sq={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},iq={class:"flex shrink-0 items-center gap-1"},uq=["href","aria-label"],cq=["aria-label","onClick"],dq=["data-caption","aria-label","onClick"],fq=["aria-label","onClick"],pq=["aria-label","onClick"],mq={key:1,"data-file-error":"",class:"text-[13px] text-danger"},vq={class:"sr-only"},hq=["aria-describedby"],yq={class:"flex size-10 items-center justify-center rounded-full bg-surface","aria-hidden":"true"},gq={class:"text-text"},bq={key:0,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},_q={key:5,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},xq={key:6,role:"alert","data-fileupload-too-many":"",class:"flex items-center gap-1.5 text-[13px] text-danger"},kq=["accept","multiple"],wq={class:"sr-only","aria-live":"polite","data-fileupload-live":""},$q=1<<20,Cq=400,Lc="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:text-text",Sq="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:bg-danger-soft hover:text-danger",yl="inline-flex size-8 shrink-0 items-center justify-center rounded-pager text-muted hover:bg-hover hover:text-text",Eq=ae({__name:"FileuploadField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=it(ro,null),a=["jpg","jpeg","png","gif","webp"],r=["image/jpeg","image/png","image/gif","image/webp"];let l=1;const o=M([]),i=M("loading"),u=M(!1),d=M(0),c=M(""),f=M(null),v=M(null),p=M(null),h=M(null),k=M(null),S=M(!1),x=M({}),E=M(new Set),L=M(new Set),D=new Set,A=[],R=n?n.routes(t.field.name):null;let F=null,W=null,C=!1,I=null,z=0,O=!1;const B=_(()=>{const Z=t.field.attributes?.readonly;return!!t.field.readOnly||Z!=null&&Z!==!1}),J=_(()=>t.field.multiple===!0),K=_(()=>t.field.mode==="image"),H=_(()=>J.value?t.field.maxFiles:1),le=_(()=>(n?.recordId??0)!==0),ue=_(()=>o.value.filter(Z=>Z.state!=="failed")),we=_(()=>{if(J.value)return o.value;const Z=ue.value,De=Z[Z.length-1];return o.value.filter(ne=>ne.state==="failed"||ne===De)}),Oe=_(()=>we.value.filter(Z=>Z.state!=="failed").length),Ae=_(()=>B.value||i.value!=="ready"?!1:J.value?H.value===void 0||H.value===null||ue.value.lengthJ.value&&!B.value&&typeof H.value=="number"&&ue.value.length>=H.value),xe=_(()=>t.field.fileTypes?.length?t.field.fileTypes.map(Z=>Z.toLowerCase()):K.value&&!t.field.mimeTypes?.length?a:null),U=_(()=>(t.field.fileTypes?.length?t.field.fileTypes:t.field.mimeTypes??[]).join(", ")),ke=_(()=>{const Z=[];for(const De of t.field.fileTypes??[])Z.push(`.${De.toLowerCase()}`);for(const De of t.field.mimeTypes??[])Z.push(De.includes("/")?De:`.${De.toLowerCase()}`);return Z.length===0&&K.value&&Z.push(...r),Z.length>0?Z.join(","):void 0}),me=_(()=>t.field.prompt||g(J.value?"backend::lang.fileupload.default_prompt_many":"backend::lang.fileupload.default_prompt"));function Y(Z,De){return new Intl.NumberFormat(ua.value,{minimumFractionDigits:De,maximumFractionDigits:De}).format(Z)}function fe(Z){const De=["B","kB","MB","GB"];let ne=Z,Re=0;for(;ne>=1e3&&Re{const Z=t.field.maxFilesize;return typeof Z=="number"?`${new Intl.NumberFormat(ua.value).format(Z)} MB`:""}),X=_(()=>{const Z=[];return U.value!==""&&Z.push(g("backend::lang.fileupload.limits_types",{types:U.value})),G.value!==""&&Z.push(g("backend::lang.fileupload.limits_size",{size:G.value})),J.value&&typeof H.value=="number"&&Z.push(g("backend::lang.fileupload.limits_count",{current:ue.value.length,max:H.value})),Z.join(" · ")});function te(Z){const De=Z.lastIndexOf(".");return De<0?"":Z.slice(De+1).toLowerCase()}function b(Z){const De=t.field.mimeTypes??[];if(De.length===0||Z.type==="")return!0;const ne=Z.type.toLowerCase(),Re=te(Z.name);return De.some(tt=>{const Dt=tt.toLowerCase();return Dt.includes("/")?Dt.endsWith("/*")?ne.startsWith(Dt.slice(0,-1)):ne===Dt:Dt===Re})}function T(Z){const De=xe.value;if(De&&!De.includes(te(Z.name)))return g("backend::lang.fileupload.wrong_type",{name:Z.name,types:De.join(", ")});if(!b(Z))return g("backend::lang.fileupload.wrong_type",{name:Z.name,types:U.value});const ne=t.field.maxFilesize;return typeof ne=="number"&&Z.size>Math.ceil(ne*$q)?g("backend::lang.fileupload.too_large",{name:Z.name,size:G.value}):""}function P(Z){return Ln({uid:l++,name:Z.file_name,size:Z.file_size,state:"done",progress:100,error:"",retryable:!1,file:Z,source:null,handle:null,uploadId:""})}function re(){return globalThis.crypto?.randomUUID?.()??`u${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}function ee(Z,De){return Ln({uid:l++,name:Z.name,size:Z.size,state:De===""?"queued":"failed",progress:0,error:De,retryable:!1,file:null,source:pi(Z),handle:null,uploadId:re()})}function ce(Z){return o.value.find(De=>De.uid===Z)}async function Ee(Z){if(!R){i.value="failed";return}Z&&(i.value="loading");const De=await R.list();if(O)return;if(!De.data){Z&&(i.value="failed");return}const ne=o.value.filter(Re=>Re.state!=="done");for(const Re of o.value)Re.state==="done"&&rl(Re.uid);o.value=[...De.data.map(P),...ne],i.value="ready"}function Ce(){B.value||f.value?.click()}function Te(Z){if(Z.length===0||B.value)return;if(d.value=0,!J.value)for(const tt of[...o.value])tt.state!=="failed"&&(tt.state!=="done"||tt.file?.pending)&&ot(tt);let De=J.value?typeof H.value=="number"?Math.max(H.value-ue.value.length,0):Number.POSITIVE_INFINITY:1,ne=0;const Re=[];for(const tt of Z.slice(0,J.value?Z.length:1)){const Dt=T(tt);if(Dt===""&&De<=0){ne++;continue}Dt===""&&De--,Re.push(ee(tt,Dt))}o.value=[...o.value,...Re],d.value=ne,Be()}function oe(Z){const De=Z.target;Te(Array.from(De.files??[])),De.value=""}function $e(Z){return p.value===null&&Array.from(Z.dataTransfer?.types??[]).includes("Files")}function ye(Z){$e(Z)&&(Z.preventDefault(),u.value=!0)}function qe(Z){$e(Z)&&(Z.preventDefault(),u.value=!1,Te(Array.from(Z.dataTransfer?.files??[])))}function Be(){if(!R||o.value.some(De=>De.state==="uploading"))return;const Z=o.value.find(De=>De.state==="queued");Z&&He(Z)}async function He(Z){if(!R||!Z.source)return;Z.state="uploading",Z.progress=0,Z.error="",Z.retryable=!1;const De=new Set(o.value.filter(Re=>Re.file).map(Re=>Re.file.id)),ne=n?.beginUpload();try{const Re=R.upload(Z.source,(Wn,za)=>{Z.progress=za>0?Math.min(100,Math.round(Wn/za*100)):0},Z.uploadId||void 0);Z.handle=pi(Re);const tt=await Re.promise;Z.handle=null;const Dt=!!ce(Z.uid);if(tt.ok)!Dt||O?R.remove(tt.item.id):(Z.state="done",Z.progress=100,Z.file=tt.item,Z.name=tt.item.file_name,Z.size=tt.item.file_size,n?.markDirty());else if(tt.reason==="aborted"||tt.reason==="network"){const Wn=await Ze(De);if(tt.reason==="aborted"){for(const za of Wn)R.remove(za.id);o.value=o.value.filter(za=>za.uid!==Z.uid),rl(Z.uid)}else Dt&&Wn[0]&&Wn.length===1?(Z.state="done",Z.progress=100,Z.file=Wn[0],Z.name=Wn[0].file_name,Z.size=Wn[0].file_size,n?.markDirty()):(Z.state="failed",Z.error=g("backend::lang.fileupload.upload_failed"),Z.retryable=!0)}else if(Dt)switch(Z.state="failed",tt.reason){case"too_large":Z.error=G.value?g("backend::lang.fileupload.too_large",{name:Z.name,size:G.value}):tt.message||g("backend::lang.fileupload.upload_failed");break;case"invalid":Z.error=tt.message||g("backend::lang.fileupload.upload_failed");break;default:Z.error=tt.message||g("backend::lang.fileupload.upload_failed"),Z.retryable=tt.status>=500}}finally{ne?.(),O||Be()}}async function Ze(Z){if(!R)return[];const De=await R.list();return De.data?De.data.filter(ne=>ne.pending&&!Z.has(ne.id)):[]}function Xe(Z){Z.state!=="failed"||!Z.source||(Z.state="queued",Z.error="",Z.retryable=!1,Be())}async function ot(Z){const De=o.value.findIndex(Re=>Re.uid===Z.uid);if(De<0)return;switch(o.value=o.value.filter(Re=>Re.uid!==Z.uid),rl(Z.uid),Z.state){case"uploading":Z.handle?.abort(),n?.markDirty(),Be();return;case"queued":case"failed":return}if(!R||!Z.file)return;n?.markDirty();const ne=await R.remove(Z.file.id);if(!ne.data&&!O){const Re=[...o.value];Re.splice(Math.min(De,Re.length),0,Z),o.value=Re,Le(ne.error?.message||g("backend::lang.form.error_generic"),"danger")}}function at(){return o.value.map(Z=>Z.uid)}function Et(Z){const De=new Map(o.value.map(tt=>[tt.uid,tt])),ne=Z.map(tt=>De.get(tt)).filter(tt=>!!tt),Re=o.value.filter(tt=>!Z.includes(tt.uid));o.value=[...ne,...Re]}function Tt(){F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,Fe()},Cq)}function qt(){return o.value.filter(Z=>Z.state==="done"&&Z.file).map(Z=>Z.file.id)}async function Fe(){if(!R)return;const Z=qt();if(C){I=Z;return}const De=W;W=null;const ne=++z;C=!0;try{const Re=await R.reorder(Z);if(I)return;!Re.data&&!O&&ne===z&&(De&&Et(De),Le(g("backend::lang.fileupload.reorder_failed"),"danger"))}finally{C=!1,I&&(I=null,Fe())}}function de(Z,De){const ne=o.value.findIndex(Dt=>Dt.uid===Z);if(ne<0||De<0||De>=o.value.length||De===ne)return!1;W===null&&(W=at());const Re=[...o.value],[tt]=Re.splice(ne,1);return Re.splice(De,0,tt),o.value=Re,c.value=g("backend::lang.fileupload.moved",{name:tt.name,position:De+1,total:Re.length}),Tt(),!0}async function be(Z,De){const ne=o.value.findIndex(tt=>tt.uid===De.uid);let Re;switch(Z.key){case"ArrowUp":case"ArrowLeft":Re=ne-1;break;case"ArrowDown":case"ArrowRight":Re=ne+1;break;default:return}Z.preventDefault(),de(De.uid,Re)&&(await Je(),v.value?.querySelector(`[data-handle="${De.uid}"]`)?.focus())}function je(Z,De){p.value=De.uid,Z.dataTransfer&&(Z.dataTransfer.effectAllowed="move",Z.dataTransfer.setData("text/plain",De.name))}function rt(Z,De){p.value!==null&&(Z.preventDefault(),h.value=De.uid)}function jt(Z,De){p.value!==null&&(Z.preventDefault(),de(p.value,o.value.findIndex(ne=>ne.uid===De.uid)),Lt())}function Lt(){p.value=null,h.value=null}function Pn(Z){const De=Z.file?.content_type??Z.source?.type??"";return r.includes(De.toLowerCase())}function Gt(Z){return!Z.file||!Pn(Z)||E.value.has(Z.uid)?null:!t.field.protected&&!L.value.has(Z.uid)?Z.file.thumb_url||Z.file.url||null:x.value[Z.uid]??null}function so(){return typeof URL.revokeObjectURL=="function"}function rl(Z){const De=x.value[Z];if(De!==void 0){so()&&URL.revokeObjectURL(De);const ne={...x.value};delete ne[Z],x.value=ne}if(D.delete(Z),L.value.has(Z)){const ne=new Set(L.value);ne.delete(Z),L.value=ne}}async function io(Z){if(!R||!Z.file||D.has(Z.uid)||typeof URL.createObjectURL!="function")return;D.add(Z.uid);const De=await R.thumb(Z.file.id);if(!(O||!ce(Z.uid)||!D.has(Z.uid))){if(!De){E.value=new Set([...E.value,Z.uid]);return}x.value={...x.value,[Z.uid]:URL.createObjectURL(De)}}}Ve(()=>o.value.map(Z=>`${Z.uid}:${Z.state}`).join(","),()=>{if(t.field.protected)for(const Z of o.value)Z.state==="done"&&Pn(Z)&&io(Z)});function ll(Z){if(!t.field.protected&&!L.value.has(Z.uid)&&(L.value=new Set([...L.value,Z.uid]),R&&typeof URL.createObjectURL=="function")){io(Z);return}E.value=new Set([...E.value,Z.uid])}async function uo(Z,De){if(!R||!Z.file||typeof URL.createObjectURL!="function")return;const ne=await R.download(Z.file.id);if(!ne){Le(g("backend::lang.form.error_generic"),"danger");return}const Re=URL.createObjectURL(ne);A.push(Re);const tt=document.createElement("a");tt.href=Re,tt.rel="noopener",De?tt.download=Z.file.file_name:tt.target="_blank",tt.click()}function wn(Z){return t.field.useCaption&&Z.file?.title?Z.file.title:Z.name}function Va(Z){return le.value&&!!Z.file?.pending}const en=_(()=>k.value===null?void 0:ce(k.value));function Kn(Z){k.value=Z.uid,S.value=!0}function co(Z){const De=en.value;De&&(De.file=Z)}function fo(){const Z=k.value;k.value=null,Z!==null&&v.value?.querySelector(`[data-caption="${Z}"]`)?.focus()}const po=_(()=>{const Z=t.field.thumbOptions?.mode;return Z==="fit"||Z==="auto"?"object-contain":"object-cover"});return wt(()=>{Ee(!0)}),n&&Ve(n.revision,()=>{Ee(!1)}),St(()=>{O=!0,F!==null&&(clearTimeout(F),F=null);for(const Z of o.value)Z.handle?.abort();if(so()){for(const Z of Object.values(x.value))URL.revokeObjectURL(Z);for(const Z of A)URL.revokeObjectURL(Z)}}),(Z,De)=>(m(),y("div",{id:e.controlId,ref_key:"root",ref:v,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"?(m(),y("span",iR)):i.value==="failed"?(m(),y("p",uR,$(s(g)("backend::lang.fileupload.load_failed")),1)):(m(),y(pe,{key:2},[B.value&&we.value.length===0?(m(),y("p",cR,$(s(g)("backend::lang.fileupload.empty")),1)):K.value&&J.value&&we.value.length>0?(m(),y("ul",dR,[(m(!0),y(pe,null,Ie(we.value,ne=>(m(),y("li",{key:ne.uid,"data-file-item":ne.uid,"data-state":ne.state,class:ve([[ne.state==="failed"?"border-danger":"border-border",p.value===ne.uid?"opacity-50":"",h.value===ne.uid&&p.value!==ne.uid?"border-2 border-dashed border-primary bg-sel":""],"relative overflow-hidden rounded-inner border bg-surface"]),onDragover:Re=>rt(Re,ne),onDrop:Re=>jt(Re,ne)},[w("div",pR,[ne.state==="uploading"?(m(),j(s(Il),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):ne.state==="failed"?(m(),j(s(gt),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):ne.state==="done"?(m(),y(pe,{key:2},[Gt(ne)&&!e.field.protected&&ne.file?.url?(m(),y("a",{key:0,href:ne.file.url,target:"_blank",rel:"noopener",class:"block size-full","aria-label":s(g)("backend::lang.fileupload.open_preview",{name:ne.name})},[w("img",{src:Gt(ne)??void 0,alt:wn(ne),class:ve([po.value,"size-full"]),onError:Re=>ll(ne)},null,42,vR)],8,mR)):Gt(ne)?(m(),y("button",{key:1,type:"button",class:"block size-full","aria-label":s(g)("backend::lang.fileupload.open_preview",{name:ne.name}),onClick:Re=>uo(ne,!1)},[w("img",{src:Gt(ne)??void 0,alt:wn(ne),class:ve([po.value,"size-full"])},null,10,yR)],8,hR)):E.value.has(ne.uid)?(m(),y("span",gR,[N(s(Km),{size:20,"aria-hidden":"true"}),_e(" "+$(s(g)("backend::lang.fileupload.preview_unavailable")),1)])):(m(),j(s(El),{key:3,size:20,class:"text-muted","aria-hidden":"true"}))],64)):(m(),j(s(El),{key:3,size:20,class:"text-muted","aria-hidden":"true"})),!B.value&&ne.state==="done"?(m(),y("button",{key:4,type:"button",draggable:"true","data-handle":ne.uid,"aria-label":s(g)("backend::lang.fileupload.move",{name:ne.name}),class:ve([Lc,"absolute top-2 left-2 cursor-grab"]),onKeydown:Re=>be(Re,ne),onDragstart:Re=>je(Re,ne),onDragend:Lt},[N(s(Ti),{size:16,"aria-hidden":"true"})],40,bR)):Q("",!0),B.value?Q("",!0):(m(),y("div",_R,[e.field.useCaption&&ne.state==="done"?(m(),y("button",{key:0,type:"button","data-caption":ne.uid,"aria-label":s(g)("backend::lang.fileupload.edit_details",{name:ne.name}),class:ve(Lc),onClick:Re=>Kn(ne)},[N(s(Uo),{size:16,"aria-hidden":"true"})],8,xR)):Q("",!0),ne.state==="failed"&&ne.retryable?(m(),y("button",{key:1,type:"button","data-action":"retry","aria-label":s(g)("backend::lang.fileupload.retry"),class:ve(Lc),onClick:Re=>Xe(ne)},[N(s(li),{size:16,"aria-hidden":"true"})],8,kR)):Q("",!0),w("button",{type:"button","data-action":"remove-file","aria-label":ne.state==="uploading"||ne.state==="queued"?s(g)("backend::lang.fileupload.cancel_upload",{name:ne.name}):s(g)("backend::lang.form.remove_item",{name:ne.name}),class:ve(Sq),onClick:Re=>ot(ne)},[N(s(Qt),{size:16,"aria-hidden":"true"})],8,wR)]))]),w("div",$R,[w("span",{class:"truncate text-[13px]",title:wn(ne)},$(wn(ne)),9,CR),w("span",SR,[ne.state==="queued"?(m(),y("span",ER,$(s(g)("backend::lang.fileupload.queued")),1)):ne.state==="uploading"?(m(),y("span",AR,$(s(g)("backend::lang.fileupload.uploading",{percent:ne.progress})),1)):(m(),y("span",TR,$(fe(ne.size)),1)),Va(ne)?(m(),y("span",DR,$(s(g)("backend::lang.fileupload.unsaved")),1)):Q("",!0)]),ne.state==="uploading"?(m(),j(s(Ac),{key:0,"model-value":ne.progress,max:100,"aria-label":s(g)("backend::lang.fileupload.uploading",{percent:ne.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:q(()=>[N(s(Tc),{class:"h-full bg-primary",style:bn({width:`${ne.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):Q("",!0),ne.state==="failed"?(m(),y("p",OR,[w("span",MR,$(s(g)("backend::lang.fileupload.upload_error"))+": ",1),_e($(ne.error),1)])):Q("",!0)])],42,fR))),128))])):K.value&&!J.value&&we.value.length>0?(m(),y("div",PR,[(m(!0),y(pe,null,Ie(we.value,ne=>(m(),y("div",{key:ne.uid,"data-file-item":ne.uid,"data-state":ne.state,class:"flex items-start gap-4"},[w("div",{class:ve([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"?(m(),j(s(Il),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):ne.state==="failed"?(m(),j(s(gt),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):Gt(ne)?(m(),y("img",{key:2,src:Gt(ne)??void 0,alt:wn(ne),class:ve([po.value,"size-full"]),onError:Re=>ll(ne)},null,42,RR)):E.value.has(ne.uid)?(m(),y("span",qR,[N(s(Km),{size:20,"aria-hidden":"true"}),_e(" "+$(s(g)("backend::lang.fileupload.preview_unavailable")),1)])):(m(),j(s(El),{key:4,size:20,class:"text-muted","aria-hidden":"true"}))],2),w("div",LR,[w("span",{class:"truncate font-semibold",title:wn(ne)},$(wn(ne)),9,NR),w("span",BR,[ne.state==="queued"?(m(),y("span",FR,$(s(g)("backend::lang.fileupload.queued")),1)):ne.state==="uploading"?(m(),y("span",VR,$(s(g)("backend::lang.fileupload.uploading",{percent:ne.progress})),1)):(m(),y("span",zR,$(fe(ne.size)),1)),Va(ne)?(m(),y("span",jR,$(s(g)("backend::lang.fileupload.unsaved")),1)):Q("",!0)]),ne.state==="uploading"?(m(),j(s(Ac),{key:0,"model-value":ne.progress,max:100,"aria-label":s(g)("backend::lang.fileupload.uploading",{percent:ne.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:q(()=>[N(s(Tc),{class:"h-full bg-primary",style:bn({width:`${ne.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):Q("",!0),ne.state==="failed"?(m(),y("p",UR,[w("span",HR,$(s(g)("backend::lang.fileupload.upload_error"))+": ",1),_e($(ne.error),1)])):Q("",!0),B.value?Q("",!0):(m(),y("div",KR,[ne.state!=="failed"?(m(),j(Ke,{key:0,size:"sm",variant:"outline","data-action":"replace-file",icon:s(oi),onClick:Ce},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):Q("",!0),ne.state==="failed"&&ne.retryable?(m(),j(Ke,{key:1,size:"sm",variant:"outline","data-action":"retry",icon:s(li),onClick:Re=>Xe(ne)},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.retry")),1)]),_:1},8,["icon","onClick"])):Q("",!0),e.field.useCaption&&ne.state==="done"?(m(),j(Ke,{key:2,size:"sm",variant:"outline","data-caption":ne.uid,icon:s(Uo),onClick:Re=>Kn(ne)},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.details_submit")),1)]),_:1},8,["data-caption","icon","onClick"])):Q("",!0),N(Ke,{size:"sm",variant:"danger","data-action":"remove-file",icon:s(Qt),onClick:Re=>ot(ne)},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.remove_file")),1)]),_:1},8,["icon","onClick"])]))])],8,IR))),128))])):we.value.length>0?(m(),y("ul",WR,[(m(!0),y(pe,null,Ie(we.value,ne=>(m(),y("li",{key:ne.uid,"data-file-item":ne.uid,"data-state":ne.state,class:ve([[ne.state==="failed"?"border-danger":"border-border",p.value===ne.uid?"opacity-50":"",h.value===ne.uid&&p.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:Re=>rt(Re,ne),onDrop:Re=>jt(Re,ne)},[w("div",YR,[J.value&&!B.value&&ne.state==="done"?(m(),y("button",{key:0,type:"button",draggable:"true","data-handle":ne.uid,"aria-label":s(g)("backend::lang.fileupload.move",{name:ne.name}),class:ve([yl,"cursor-grab"]),onKeydown:Re=>be(Re,ne),onDragstart:Re=>je(Re,ne),onDragend:Lt},[N(s(Ti),{size:16,"aria-hidden":"true"})],40,JR)):Q("",!0),w("span",ZR,[ne.state==="uploading"?(m(),j(s(Il),{key:0,size:16,class:"animate-spin text-muted","aria-hidden":"true"})):ne.state==="failed"?(m(),j(s(gt),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):Gt(ne)?(m(),y("img",{key:2,src:Gt(ne)??void 0,alt:"",class:"size-8 object-cover",onError:Re=>ll(ne)},null,40,XR)):(m(),j(s(El),{key:3,size:16,class:"text-muted","aria-hidden":"true"}))]),w("span",QR,[e.field.useCaption&&ne.file?.title?(m(),y(pe,{key:0},[w("span",{class:"truncate font-semibold",title:ne.file.title},$(ne.file.title),9,eq),w("span",{class:"truncate text-[13px] text-muted",title:ne.name},$(ne.name),9,tq)],64)):(m(),y("span",{key:1,class:"truncate",title:ne.name},$(ne.name),9,nq))]),w("span",aq,[ne.state==="queued"?(m(),y("span",rq,$(s(g)("backend::lang.fileupload.queued")),1)):ne.state==="uploading"?(m(),y("span",lq,$(s(g)("backend::lang.fileupload.uploading",{percent:ne.progress})),1)):(m(),y("span",oq,$(fe(ne.size)),1)),Va(ne)?(m(),y("span",sq,$(s(g)("backend::lang.fileupload.unsaved")),1)):Q("",!0)]),!J.value&&!B.value&&ne.state!=="failed"?(m(),j(Ke,{key:1,size:"sm",variant:"outline","data-action":"replace-file",icon:s(oi),onClick:Ce},{default:q(()=>[_e($(s(g)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):Q("",!0),w("span",iq,[ne.state==="done"&&ne.file?(m(),y(pe,{key:0},[!e.field.protected&&ne.file.url?(m(),y("a",{key:0,href:ne.file.url,download:"",target:"_blank",rel:"noopener","aria-label":s(g)("backend::lang.fileupload.download",{name:ne.name}),class:ve(yl)},[N(s(md),{size:16,"aria-hidden":"true"})],8,uq)):e.field.protected?(m(),y("button",{key:1,type:"button","data-action":"download","aria-label":s(g)("backend::lang.fileupload.download",{name:ne.name}),class:ve(yl),onClick:Re=>uo(ne,!0)},[N(s(md),{size:16,"aria-hidden":"true"})],8,cq)):Q("",!0),e.field.useCaption&&!B.value?(m(),y("button",{key:2,type:"button","data-caption":ne.uid,"aria-label":s(g)("backend::lang.fileupload.edit_details",{name:ne.name}),class:ve(yl),onClick:Re=>Kn(ne)},[N(s(Uo),{size:16,"aria-hidden":"true"})],8,dq)):Q("",!0)],64)):Q("",!0),ne.state==="failed"&&ne.retryable?(m(),y("button",{key:1,type:"button","data-action":"retry","aria-label":s(g)("backend::lang.fileupload.retry"),class:ve(yl),onClick:Re=>Xe(ne)},[N(s(li),{size:16,"aria-hidden":"true"})],8,fq)):Q("",!0),B.value?Q("",!0):(m(),y("button",{key:2,type:"button","data-action":"remove-file","aria-label":ne.state==="uploading"||ne.state==="queued"?s(g)("backend::lang.fileupload.cancel_upload",{name:ne.name}):s(g)("backend::lang.form.remove_item",{name:ne.name}),class:ve([yl,"hover:bg-danger-soft hover:text-danger"]),onClick:Re=>ot(ne)},[N(s(Qt),{size:16,"aria-hidden":"true"})],8,pq))])]),ne.state==="uploading"?(m(),j(s(Ac),{key:0,"model-value":ne.progress,max:100,"aria-label":s(g)("backend::lang.fileupload.uploading",{percent:ne.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:q(()=>[N(s(Tc),{class:"h-full bg-primary",style:bn({width:`${ne.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):Q("",!0),ne.state==="failed"?(m(),y("p",mq,[w("span",vq,$(s(g)("backend::lang.fileupload.upload_error"))+": ",1),_e($(ne.error),1)])):Q("",!0)],42,GR))),128))])):Q("",!0),Ae.value?(m(),y("button",{key:4,type:"button","data-fileupload-dropzone":"","aria-describedby":e.describedBy||void 0,class:ve([[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:Ce,onDragover:ye,onDragleave:De[0]||(De[0]=ne=>u.value=!1),onDrop:qe},[w("span",yq,[N(s(oi),{size:20,class:"text-muted"})]),w("span",gq,$(me.value),1),X.value!==""?(m(),y("span",bq,$(X.value),1)):Q("",!0)],42,hq)):ie.value&&X.value!==""?(m(),y("p",_q,$(X.value),1)):Q("",!0),d.value>0?(m(),y("p",xq,[N(s(gt),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(s(zr)("backend::lang.fileupload.too_many",d.value,{max:H.value??0})),1)])):Q("",!0)],64)),w("input",{ref_key:"input",ref:f,type:"file",hidden:"",tabindex:"-1","data-fileupload-input":"",accept:ke.value,multiple:J.value||void 0,onChange:oe},null,40,kq),w("p",wq,$(c.value),1),e.field.useCaption?(m(),j(oR,{key:3,open:S.value,"onUpdate:open":De[1]||(De[1]=ne=>S.value=ne),file:en.value?.file??null,routes:s(R),preview:en.value?Gt(en.value):null,"id-prefix":e.controlId,onSaved:co,onClosed:fo},null,8,["open","file","routes","preview","id-prefix"])):Q("",!0)],8,sR))}}),Aq=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Tq=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=_(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),l=_(()=>Sr(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)=>(m(),y("input",ze({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(Ft)(e.invalid),"h-input tabular-nums"],onInput:o}),null,16,Aq))}}),Dq=["id","aria-labelledby","aria-describedby"],Oq=ae({__name:"PartialField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e;return(n,a)=>(m(),y("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?(m(),j(up,{key:0,variant:"field",source:e.source,name:t.field.path||t.field.name,"record-id":e.recordId??null},null,8,["source","name","record-id"])):(m(),j(Iu,{key:1,"data-partial-failed":"",text:s(g)("backend::lang.extension.partial_failed")},null,8,["text"]))],8,Dq))}}),Mq={class:"flex min-w-0 flex-col gap-1.5"},Pq={class:"relative"},Iq=["id","name","type","value","placeholder","disabled","required","aria-required","aria-invalid","aria-describedby"],Rq=["aria-pressed","aria-label","disabled"],qq=["id","data-secret-state","role"],Lq={key:3},Nq=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=M(!1),l=_(()=>typeof n.modelValue=="string"?n.modelValue:""),o=_(()=>Sr(n.field)),i=it(ro,null);i&&Ve(i.revision,()=>{r.value=!1});const u=it(_0,null),d=_(()=>u?.value[n.field.name]??""),c=_(()=>d.value!==""),f=_(()=>d.value==="stored"&&n.modelValue===null),v=_(()=>`${n.controlId}-secret`),p=_(()=>[n.describedBy??"",c.value?v.value:""].filter(Boolean).join(" ")),h=_(()=>{if(d.value==="stored"&&!f.value)return g("backend::lang.secret.placeholder_stored");const x=o.value.placeholder;return typeof x=="string"?x:void 0});function k(){r.value=!1,a("update:modelValue",null)}function S(){a("update:modelValue","")}return(x,E)=>(m(),y("div",Mq,[w("div",Pq,[w("input",ze({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":p.value||void 0,class:[s(Ft)(e.invalid),"h-input pr-12"],onInput:E[0]||(E[0]=L=>a("update:modelValue",L.target.value))}),null,16,Iq),w("button",{type:"button","data-password-toggle":"","aria-pressed":r.value?"true":"false","aria-label":s(g)(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:E[1]||(E[1]=L=>r.value=!r.value)},[(m(),j(zt(r.value?s(D$):s(M$)),{size:16,"aria-hidden":"true"}))],8,Rq)]),c.value?(m(),y("p",{key:0,id:v.value,"data-secret-state":f.value?"clearing":d.value,role:f.value?"status":void 0,class:ve([f.value?"text-danger":"text-muted","flex flex-wrap items-center gap-2 text-[13px]"])},[f.value?(m(),y(pe,{key:0},[N(s(gt),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.secret.clear_pending")),1),N(Ke,{variant:"ghost",size:"sm",icon:s(Qg),"data-action":"secret-undo",onClick:S},{default:q(()=>[_e($(s(g)("backend::lang.secret.undo")),1)]),_:1},8,["icon"])],64)):d.value==="stored"?(m(),y(pe,{key:1},[N(s(tr),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.secret.stored")),1),N(Ke,{variant:"ghost",size:"sm",icon:s(xr),"data-action":"secret-clear",onClick:k},{default:q(()=>[_e($(s(g)("backend::lang.secret.clear")),1)]),_:1},8,["icon"])],64)):d.value==="env"?(m(),y(pe,{key:2},[N(s(Xl),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(s(g)("backend::lang.secret.env")),1)],64)):(m(),y("span",Lq,$(s(g)("backend::lang.secret.empty")),1))],10,qq)):Q("",!0)]))}}),Bq=["aria-labelledby","data-ml-field"],Fq={class:"flex flex-wrap items-center gap-2"},Vq=["value","aria-label"],zq=["value"],qu=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=_(()=>la(n.modelValue)),l=it(Ui,null),o=_(()=>{const x=l?.value;return x&&x.length>0?[...x]:[]}),i=M(o.value[0]??"en"),u=_(()=>`${n.controlId}-label`),d=_(()=>`${n.controlId}-editor`),c=_(()=>r.value[i.value]??""),f=_(()=>({...n.field,type:n.innerType})),v=_(()=>n.contentLocale?{contentLocale:i.value}:{});function p(x){x&&(i.value=x)}function h(x){const E=x.target.value;p(E),lI(E)}function k(x){a("update:modelValue",{...r.value,[i.value]:x})}function S(x){const E=x.detail;typeof E=="string"&&E!==""&&p(E)}return wt(()=>{window.addEventListener(fs,S)}),La(()=>{window.removeEventListener(fs,S)}),(x,E)=>(m(),y("div",{class:"flex flex-col gap-1.5",role:"group","aria-labelledby":u.value,"data-ml-field":e.mlType},[w("div",Fq,[w("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},[(m(!0),y(pe,null,Ie(o.value,L=>(m(),y("option",{key:L,value:L},$(L),9,zq))),128))],40,Vq)]),(m(),j(zt(e.inner),ze({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},v.value,{"onUpdate:modelValue":k}),null,16,["field","model-value","control-id","invalid","described-by","source","record-id"]))],8,Bq))}}),jq=["id","aria-labelledby","aria-describedby","aria-busy"],Uq={key:0,"data-plugin-field-skeleton":"",class:"h-[42px] w-full rounded-control bg-skel","aria-hidden":"true"},w0=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(pp,null),l=M("loading"),o=M(null);let i=null,u=!1;const d=_(()=>r?.value||ua.value),c=_(()=>JSON.stringify(n.field.typeOptions??{})),f=_(()=>n.field.readOnly===!0);function v(A,R){if(Object.is(A,R))return!0;if(A===null||R===null||typeof A!="object"||typeof R!="object")return!1;try{return JSON.stringify(A)===JSON.stringify(R)}catch{return!1}}function p(A,R){v(A.value,R)||(A.value=R)}function h(A,R,F){F?A.setAttribute(R,""):A.removeAttribute(R)}function k(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 R;return{promise:new Promise((W,C)=>{R=setTimeout(()=>C(new Error("field type element was not defined in time")),A)}),cancel:()=>clearTimeout(R)}}async function x(A){const R=await B8(A);if(customElements.get(A))return;if(R.length>0)throw new Error(`plugin script failed: ${R.join(", ")}`);const F=S(x0);try{await Promise.race([customElements.whenDefined(A),F.promise])}finally{F.cancel()}}async function E(A){const R=i,F=A.detail;if(!R||F===null||typeof F!="object")return;const{id:W,file:C}=F,I=J=>{!u&&i===R&&R.dispatchEvent(new CustomEvent(PI,{detail:{id:W,...J}}))},z=()=>g("backend::lang.fileupload.upload_failed"),O=n.source;if(!(C instanceof Blob)||!O){I({error:z()});return}const B=C instanceof File&&C.name!==""?C.name:"upload";try{const J=await Ne.POST("/{vendor}/{plugin}/{controller}/{id}/fields/{field}/upload",{params:{path:{...O,id:n.recordId??0,field:n.field.name}},body:{file:""},bodySerializer:()=>{const H=new FormData;return H.append("file",C,B),H}});if(J.data){I({url:J.data.data.url});return}const K=J.response.status===422?cp(J.error?.error):"";I({error:K||z()})}catch{I({error:z()})}}function L(A){E(A)}function D(A){const R=A.detail;R!==null&&typeof R=="object"&&Object.hasOwn(R,"value")&&a("update:modelValue",R.value)}return wt(async()=>{const A=n.field.element??"";try{if(A==="")throw new Error("plugin field without an element");if(await x(A),u||!o.value)return;const R=document.createElement(A);k(R),p(R,n.modelValue),R.addEventListener(ih,D),R.addEventListener(uh,L),o.value.append(R),i=R,l.value="ready"}catch{u||(l.value="failed")}}),Ve(()=>[n.recordId,n.invalid,n.contentLocale,f.value,d.value,c.value],()=>{i&&k(i)}),Ve(()=>n.modelValue,A=>{i&&p(i,A)},{deep:!0}),St(()=>{u=!0,i?.removeEventListener(ih,D),i?.removeEventListener(uh,L),i=null}),(A,R)=>l.value==="failed"?(m(),j(Iu,{key:0,id:e.controlId,"data-plugin-field-failed":"","aria-describedby":e.describedBy||void 0,text:s(g)("backend::lang.extension.widget_failed")},null,8,["id","aria-describedby","text"])):(m(),y("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"?(m(),y("span",Uq)):Q("",!0),w("div",{ref_key:"mountPoint",ref:o,class:"contents"},null,512)],8,jq))}}),Hq=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)=>(m(),j(qu,ze(n,{inner:w0,"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"]))}}),Kq=["id"],Wq=["id","aria-labelledby","aria-label","aria-describedby","data-mode"],Gq=["aria-labelledby"],Yq=["id"],Jq={class:"min-w-0 [overflow-wrap:anywhere]"},Zq={key:0,class:"shrink-0 text-[12px] font-semibold text-muted","aria-hidden":"true"},Xq=["data-permission","data-locked","data-locked-by"],Qq={class:"flex min-w-0 flex-col"},eL=["id"],tL=["id"],nL=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(vp,null),l=_(()=>{const D=new Map;for(const A of r?.value[n.field.name]??[])D.set(A.code,A);return D}),o=_(()=>n.field.permissionOptions??[]),i=_(()=>n.field.mode==="radio"),u=_(()=>!!n.field.readOnly||!!Sr(n.field).readonly),d=_(()=>g0(n.field,n.modelValue)),c=_(()=>{const D=[],A=[];for(const R of o.value){if(!R.tab){A.push(R);continue}let F=D.find(W=>W.label===R.tab);F||(F={key:`tab:${R.tab}`,label:R.tab,options:[]},D.push(F)),F.options.push(R)}return A.length>0&&D.push({key:"other",label:g("backend::lang.permissioneditor.other"),options:A}),D}),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"}],v=_(()=>`${n.controlId}-label`);function p(D,A){return`${n.controlId}-${D}-${A}`}function h(D){return l.value.get(D.code)}function k(D){return u.value||!!D.locked||h(D)!==void 0}function S(D){return(!!D.locked||h(D)!==void 0)&&!u.value}function x(D){return h(D)?.note||g("backend::lang.permissioneditor.locked")}function E(D){const A=h(D);return A?A.value===1||i.value&&A.value===-1?A.value:0:d.value[D.code]??0}function L(D,A){if(k(D))return;const R={...d.value};A===1||i.value&&A===-1?R[D.code]=A:delete R[D.code],a("update:modelValue",R)}return(D,A)=>o.value.length===0?(m(),y("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(g)("backend::lang.permissioneditor.empty")),9,Kq)):(m(),y("div",{key:1,id:e.controlId,role:"group","aria-labelledby":e.field.label?v.value:void 0,"aria-label":e.field.label?void 0:e.field.name,"aria-describedby":e.describedBy||void 0,class:ve([e.invalid?"border-danger":"border-border","overflow-hidden rounded-inner border"]),"data-permission-editor":"","data-mode":i.value?"radio":"checkbox"},[(m(!0),y(pe,null,Ie(c.value,(R,F)=>(m(),y("div",{key:R.key,role:"group","aria-labelledby":`${e.controlId}-section-${F}`,"data-permission-section":""},[w("h3",{id:`${e.controlId}-section-${F}`,class:ve([F>0?"border-t border-border":"","flex h-row-head items-center justify-between gap-4 bg-subtle px-4 font-semibold"])},[w("span",Jq,$(R.label),1),i.value?Q("",!0):(m(),y("span",Zq,$(s(g)("backend::lang.permissioneditor.allow")),1))],10,Yq),(m(!0),y(pe,null,Ie(R.options,(W,C)=>(m(),y("div",{key:W.code,"data-permission":W.code,"data-locked":S(W)?"":void 0,"data-locked-by":S(W)&&h(W)?"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"},[w("div",Qq,[(m(),j(zt(i.value?"span":"label"),{id:`${p(F,C)}-label`,for:i.value?void 0:p(F,C),class:"[overflow-wrap:anywhere]"},{default:q(()=>[_e($(W.label||W.code)+" ",1),S(W)?(m(),j(s(tr),{key:0,size:14,class:"ml-1 inline-block align-[-2px] text-muted","aria-hidden":"true"})):Q("",!0)]),_:2},1032,["id","for"])),S(W)?(m(),y("p",{key:0,id:`${p(F,C)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]","data-permission-locked":""},$(x(W)),9,eL)):W.comment?(m(),y("p",{key:1,id:`${p(F,C)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]"},$(W.comment),9,tL)):Q("",!0)]),i.value?(m(),j(s(M1),{key:0,orientation:"horizontal","model-value":String(E(W)),disabled:k(W),"aria-disabled":k(W)?"true":void 0,"aria-labelledby":`${p(F,C)}-label`,"aria-describedby":S(W)||W.comment?`${p(F,C)}-note`:void 0,class:"inline-flex shrink-0 gap-1 rounded-inner border border-border bg-subtle p-1","onUpdate:modelValue":I=>L(W,Number(I))},{default:q(()=>[(m(),y(pe,null,Ie(f,I=>N(s(P1),{key:I.value,value:I.value,"data-segment":I.value,class:ve([I.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:q(()=>[_e($(s(g)(I.label)),1)]),_:2},1032,["value","data-segment","class"])),64))]),_:1},8,["model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"])):(m(),j(s(WD),{key:1,id:p(F,C),"model-value":E(W)===1,disabled:k(W),"aria-disabled":k(W)?"true":void 0,"aria-labelledby":`${p(F,C)}-label`,"aria-describedby":S(W)||W.comment?`${p(F,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":I=>L(W,I===!0?1:0)},{default:q(()=>[N(s(YD),null,{default:q(()=>[N(s(jn),{size:14,"aria-hidden":"true"})]),_:1})]),_:1},8,["id","model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"]))],8,Xq))),128))],8,Gq))),128))],10,Wq))}}),aL=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=_(()=>B0(n.field));return(l,o)=>(m(),j(zt(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"]))}}),rL=["data-field"],lL=["id"],oL={key:0,class:"text-danger","aria-hidden":"true"},sL=["id","for"],iL={key:0,class:"text-danger","aria-hidden":"true"},uL=["id"],cL=["id"],dL=["id"],fL=["id"],pL=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=_(()=>`${n.idPrefix??"field"}-${n.field.name}`),l=_(()=>r.value),o=_(()=>`${r.value}-comment`),i=_(()=>`${r.value}-error`),u=_(()=>`${r.value}-notice`),d=_(()=>`${r.value}-trigger`),c=it(Ss,null),f=it(hp,null),v=_(()=>f?.value[c?c.path(n.field.name):n.field.name]??""),p=_(()=>(n.errors?.length??0)>0),h=_(()=>(n.notices?.length??0)>0),k=_(()=>PF(n.field.type)),S=_(()=>IF(n.field.type)||Nu(n.field)),x=_(()=>!k.value&&!!n.field.comment),E=_(()=>[v.value!==""?d.value:"",x.value||k.value&&n.field.comment?o.value:"",p.value?i.value:"",h.value?u.value:""].filter(Boolean).join(" "));return(L,D)=>(m(),y("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[S.value&&e.field.label?(m(),y("span",{key:0,id:`${l.value}-label`,class:"font-semibold"},[_e($(e.field.label),1),e.field.required?(m(),y("span",oL," *")):Q("",!0)],8,lL)):!k.value&&!S.value?(m(),y("label",{key:1,id:`${l.value}-label`,for:l.value,class:"font-semibold"},[_e($(e.field.label||e.field.name),1),e.field.required?(m(),y("span",iL," *")):Q("",!0)],8,sL)):Q("",!0),v.value!==""?(m(),y("p",{key:2,id:d.value,"data-trigger-note":"",class:"flex items-center gap-2 text-[13px] text-muted"},[N(s(Xl),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(v.value),1)],8,uL)):Q("",!0),N(aL,{field:e.field,"model-value":e.modelValue,"control-id":l.value,invalid:p.value,"described-by":E.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":D[0]||(D[0]=A=>a("update:modelValue",A))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),x.value?(m(),y("p",{key:3,id:o.value,class:"text-[13px] text-muted"},$(e.field.comment),9,cL)):Q("",!0),h.value?(m(),y("div",{key:4,id:u.value,role:"status","data-field-notice":"",class:"summer-callout summer-callout--warning text-[13px]!"},[(m(!0),y(pe,null,Ie(e.notices,(A,R)=>(m(),y("p",{key:R,class:"summer-callout__text"},$(A),1))),128))],8,dL)):Q("",!0),p.value?(m(),y("div",{key:5,id:i.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(m(!0),y(pe,null,Ie(e.errors,(A,R)=>(m(),y("p",{key:R,class:"flex items-center gap-1.5"},[N(s(gt),{size:14,class:"shrink-0","aria-hidden":"true"}),w("span",null,$(A),1)]))),128))],8,fL)):Q("",!0)],8,rL))}}),mL={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},lo=ae({__name:"FormGrid",props:{fields:{},values:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{},scopePath:{}},emits:["update"],setup(e,{emit:t}){const n=e,a=t;ht(Ss,{fields:_(()=>n.fields),values:_(()=>n.values),path:l=>n.scopePath?`${n.scopePath}.${l}`:l});function r(l){if(l.type===al)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)=>(m(),y("div",mL,[(m(!0),y(pe,null,Ie(e.fields,i=>(m(),j(pL,{key:i.name,class:ve(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))]))}}),vL=["data-preview-field"],hL=["id"],yL={class:"m-0 min-w-0"},gL={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"},bL={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"},_L={class:"flex size-[22px] shrink-0 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},xL={class:"font-semibold"},kL={key:0,class:"px-2 text-muted","data-empty":""},wL={key:0},$L={key:1,class:"text-muted","data-empty":""},CL={key:0},SL={key:1,class:"text-muted","data-empty":""},Nc="flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 [overflow-wrap:anywhere]",$0=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=_(()=>`${t.idPrefix??"preview"}-${t.field.name}`),r=_(()=>`${a.value}-label`),l=_(()=>{const p=t.field.type;return n.has(p)||Nu(t.field)?"control":p==="checkbox"||p==="switch"?"toggle":p==="relation"?t.field.multiple?"chips":"relation":p==="textarea"?"textarea":"text"}),o=_(()=>({...t.field,readOnly:!0})),i=_(()=>B0(t.field));function u(p){return p==null||p===""}const d=_(()=>{const p=t.value;if(u(p)||typeof p=="object")return"";if(t.field.type==="dropdown"){const h=(t.field.options??[]).find(k=>String(k.value)===String(p));return h?h.label:String(p)}return String(p)}),c=_(()=>t.labels?.[0]?.label??""),f=_(()=>Array.isArray(t.value)?t.labels??[]:[]);function v(p){return p.trim().split(/\s+/).filter(Boolean).slice(0,2).map(k=>k.charAt(0).toUpperCase()).join("")}return(p,h)=>(m(),y("div",{class:"flex min-w-0 flex-col gap-1.5","data-preview-field":e.field.name},[w("dt",{id:r.value,class:"font-semibold"},$(e.field.label||e.field.name),9,hL),w("dd",yL,[l.value==="control"?(m(),j(zt(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"?(m(),y(pe,{key:1},[s(Ru)(e.value)?(m(),y("span",gL,$(s(g)("backend::lang.list.column_switch_true")),1)):(m(),y("span",bL,$(s(g)("backend::lang.list.column_switch_false")),1))],64)):l.value==="chips"?(m(),y("div",{key:2,"data-preview-value":"",class:ve([Nc,"flex-wrap gap-1.5 p-1.5"])},[(m(!0),y(pe,null,Ie(f.value,k=>(m(),y("span",{key:String(k.value),"data-chip":"",class:"inline-flex min-h-[30px] items-center gap-1.5 rounded-pill bg-surface pr-3 pl-1"},[w("span",_L,$(v(k.label)),1),w("span",xL,$(k.label),1)]))),128)),f.value.length===0?(m(),y("span",kL,$(s(g)("backend::lang.list.empty_value")),1)):Q("",!0)])):l.value==="relation"?(m(),y("div",{key:3,"data-preview-value":"",class:ve(Nc)},[c.value!==""?(m(),y("span",wL,$(c.value),1)):(m(),y("span",$L,$(e.field.emptyOption||s(g)("backend::lang.list.empty_value")),1))])):(m(),y("div",{key:4,"data-preview-value":"",class:ve([Nc,l.value==="textarea"?"items-start! py-3 whitespace-pre-wrap":""])},[d.value!==""?(m(),y("span",CL,$(d.value),1)):(m(),y("span",SL,$(s(g)("backend::lang.list.empty_value")),1))],2))])],8,vL))}}),C0=new Set(["p","br","strong","b","em","i","u","s","h3","ul","ol","li","blockquote","a","div","span"]);function S0(e){const t=document.createElement("template");return t.innerHTML=e,t.content}function EL(e){if(e==="")return[];const t=new Set;for(const n of Array.from(S0(e).querySelectorAll("*")))t.add(n.localName.toLowerCase());return[...t]}function ch(e){return EL(e).some(t=>!C0.has(t))}const AL=["aria-labelledby","aria-describedby","data-repeater"],TL={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"},DL={class:"font-semibold"},OL={key:0,class:"max-w-[420px] text-[13px] text-muted"},ML={key:0,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel"},PL=["data-repeater-row","data-repeater-key","onDragover"],IL=["data-repeater-handle","aria-label","onKeydown","onDragstart"],RL={class:"text-[13px] text-muted tabular-nums"},qL=["title"],LL={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"},NL={key:2,class:"flex gap-1"},BL=["aria-label","disabled","onClick"],FL=["aria-label","disabled","onClick"],VL=["aria-label","aria-expanded","aria-controls","onClick"],zL=["aria-label","disabled","onClick"],jL=["id"],UL={key:0,class:"m-0 grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},HL={key:2,class:"flex flex-wrap items-center gap-4"},KL={key:0,"data-repeater-count":"",class:"text-[13px] text-muted tabular-nums"},Co="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",WL=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=_(()=>n.field.form?.fields??[]),o=_(()=>!!n.field.readOnly),i=_(()=>Array.isArray(n.modelValue)?n.modelValue.map(G=>G!==null&&typeof G=="object"&&!Array.isArray(G)?G:{}):[]),u=_(()=>typeof n.field.maxItems=="number"?n.field.maxItems:null),d=_(()=>typeof n.field.minItems=="number"?n.field.minItems:0),c=_(()=>n.field.prompt||g("backend::lang.repeater.add")),f=_(()=>`${n.controlId}-label`);let v=0;const p=M([]),h=M(new Set);let k;function S(){return v+=1,`r${v}`}Ve(()=>n.modelValue,G=>{G===k&&p.value.length===i.value.length||p.value.length!==i.value.length&&(p.value=i.value.map(()=>S()),h.value=new Set)},{immediate:!0});function x(G,X){p.value=X,k=G,a("update:modelValue",G)}function E(G){return G==null||G===""||G===!1||Array.isArray(G)&&G.length===0}function L(){const G={};for(const X of l.value)X.default!==void 0?G[X.name]=X.default:X.type==="checkbox"||X.type==="switch"?G[X.name]=!1:G[X.name]=null;return G}function D(G){return l.value.some(X=>{const te=G[X.name];return E(te)?!1:X.default===void 0||String(X.default)!==String(te)})}function A(G){return(S0(G).textContent??"").replace(/\s+/g," ").trim()}function R(G){const X=i.value[G]??{},te=l.value.find(P=>P.name===n.field.titleFrom),b=te?X[te.name]:void 0;let T="";return te&&!E(b)&&typeof b!="object"&&(te.type==="dropdown"?T=(te.options??[]).find(P=>String(P.value)===String(b))?.label??String(b):te.type==="richeditor"?T=A(String(b)):T=String(b).trim()),T!==""?T:g("backend::lang.repeater.untitled",{n:G+1})}function F(G,X){const te=`${n.field.name}.${X}.`,b={};for(const[T,P]of Object.entries(G??{}))T.startsWith(te)&&T.length>te.length&&(b[T.slice(te.length)]=P);return b}const W=_(()=>i.value.map((G,X)=>F(r?.errors.value,X))),C=_(()=>i.value.map((G,X)=>F(r?.notices.value,X))),I=G=>Object.keys(W.value[G]??{}).length;Ve(W,G=>{const X=G.flatMap((te,b)=>Object.keys(te).length>0?[p.value[b]]:[]);if(X.length>0){const te=new Set(h.value);for(const b of X)te.delete(b);h.value=te}});function z(G){return o.value||!h.value.has(G)}function O(G,X){const te=new Set(h.value);X?te.delete(G):te.add(G),h.value=te}const B=_(()=>p.value.some(G=>!h.value.has(G)));function J(){h.value=B.value?new Set(p.value):new Set}const K=M(null),H=M(null);function le(G){return K.value?.querySelector(`[data-repeater-handle="${G}"]`)??null}function ue(G,X,te){const b=i.value.map((T,P)=>P===G?{...T,[X]:te}:T);x(b,[...p.value]),r?.clearError(`${n.field.name}.${G}.${X}`)}async function we(){if(o.value||u.value!==null&&i.value.length>=u.value)return;const G=S();x([...i.value,L()],[...p.value,G]),await Je(),K.value?.querySelector(`[data-repeater-key="${G}"]`)?.querySelector('[data-repeater-body] input, [data-repeater-body] select, [data-repeater-body] textarea, [data-repeater-body] [contenteditable="true"]')?.focus()}async function Oe(G){const X=i.value[G];if(!X||o.value||i.value.length<=d.value)return;if(D(X)&&r){const P=R(G);if(!await r.confirm({message:g("backend::lang.repeater.remove_confirm",{title:P}),confirmLabel:g("backend::lang.repeater.remove"),danger:!0}))return}const te=p.value.filter((P,re)=>re!==G);x(i.value.filter((P,re)=>re!==G),te),await Je();const b=te[G]??te[G-1],T=b?le(b):null;T?T.focus():H.value?.$el.focus()}async function Ae(G,X){const te=i.value.length;if(o.value||G===X||G<0||X<0||G>=te||X>=te)return;const b=[...i.value],T=[...p.value],[P]=b.splice(G,1),[re]=T.splice(G,1);b.splice(X,0,P),T.splice(X,0,re),x(b,T),await Je(),le(re)?.focus(),r?.announce(g("backend::lang.repeater.moved",{title:R(X),position:X+1,total:te}))}function ie(G,X){(G.key==="ArrowUp"||G.key==="ArrowDown")&&(G.preventDefault(),Ae(X,G.key==="ArrowUp"?X-1:X+1))}const xe=M(null),U=M(null);function ke(G,X){xe.value=X,U.value=null,G.dataTransfer?.setData("text/plain",p.value[X]??""),G.dataTransfer&&(G.dataTransfer.effectAllowed="move")}function me(G,X){if(xe.value===null)return;G.preventDefault();const b=G.currentTarget.getBoundingClientRect();U.value=G.clientY>b.top+b.height/2?X+1:X}function Y(G){if(xe.value===null||U.value===null)return;G.preventDefault();const X=xe.value,te=U.value>X?U.value-1:U.value;fe(),Ae(X,te)}function fe(){xe.value=null,U.value=null}return(G,X)=>(m(),y("div",{ref_key:"root",ref:K,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?(m(),y("div",TL,[w("p",DL,$(s(g)("backend::lang.repeater.empty")),1),o.value?Q("",!0):(m(),y("p",OL,$(s(g)("backend::lang.repeater.empty_hint",{prompt:c.value})),1))])):Q("",!0),(m(!0),y(pe,null,Ie(i.value,(te,b)=>(m(),y(pe,{key:p.value[b]},[xe.value!==null&&U.value===b&&U.value!==xe.value&&U.value!==xe.value+1?(m(),y("div",ML)):Q("",!0),w("div",{"data-repeater-row":b,"data-repeater-key":p.value[b],class:ve([[I(b)>0?"border-danger":"border-border",xe.value===b?"opacity-50":""],"rounded-inner border bg-surface"]),onDragover:T=>me(T,b),onDrop:Y},[w("div",{class:ve([z(p.value[b])?"rounded-t-inner border-b border-border":"rounded-inner","flex min-h-12 items-center gap-2 bg-subtle px-2"])},[o.value?Q("",!0):(m(),y("button",{key:0,type:"button",draggable:"true","data-repeater-handle":p.value[b],"aria-label":s(g)("backend::lang.repeater.move",{title:R(b)}),class:ve([Co,"cursor-grab"]),onKeydown:T=>ie(T,b),onDragstart:T=>ke(T,b),onDragend:fe},[N(s(Ti),{size:16,"aria-hidden":"true"})],40,IL)),w("span",RL,$(b+1)+".",1),w("span",{"data-repeater-title":"",class:"min-w-0 flex-1 truncate font-semibold",title:R(b)},$(R(b)),9,qL),I(b)>0?(m(),y("span",LL,$(s(zr)("backend::lang.form.tab_errors",I(b))),1)):Q("",!0),o.value?Q("",!0):(m(),y("div",NL,[w("button",{type:"button","data-action":"repeater-up","aria-label":s(g)("backend::lang.repeater.move_up",{title:R(b)}),disabled:b===0,class:ve(Co),onClick:T=>Ae(b,b-1)},[N(s(Fg),{size:16,"aria-hidden":"true"})],8,BL),w("button",{type:"button","data-action":"repeater-down","aria-label":s(g)("backend::lang.repeater.move_down",{title:R(b)}),disabled:b===i.value.length-1,class:ve(Co),onClick:T=>Ae(b,b+1)},[N(s(ur),{size:16,"aria-hidden":"true"})],8,FL),w("button",{type:"button","data-action":"repeater-toggle","aria-label":s(g)(z(p.value[b])?"backend::lang.repeater.collapse":"backend::lang.repeater.expand",{title:R(b)}),"aria-expanded":z(p.value[b])?"true":"false","aria-controls":`${e.controlId}-${p.value[b]}-body`,class:ve(Co),onClick:T=>O(p.value[b],!z(p.value[b]))},[N(s(ur),{size:16,class:ve([z(p.value[b])?"rotate-180":"","transition-transform duration-150"]),"aria-hidden":"true"},null,8,["class"])],8,VL),w("button",{type:"button","data-action":"repeater-remove","aria-label":s(g)("backend::lang.repeater.remove_named",{title:R(b)}),disabled:i.value.length<=d.value,class:ve([Co,"hover:bg-danger-soft hover:text-danger"]),onClick:T=>Oe(b)},[N(s(xr),{size:16,"aria-hidden":"true"})],8,zL)]))],2),z(p.value[b])?(m(),y("div",{key:0,id:`${e.controlId}-${p.value[b]}-body`,"data-repeater-body":"",class:"p-4"},[o.value?(m(),y("dl",UL,[(m(!0),y(pe,null,Ie(l.value,T=>(m(),j($0,{key:T.name,class:ve(T.span==="left"?"min-[600px]:col-start-1":T.span==="right"?"min-[600px]:col-start-2":"col-span-full"),field:{...T,readOnly:!0},value:te[T.name],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${p.value[b]}`},null,8,["class","field","value","source","record-id","id-prefix"]))),128))])):(m(),j(lo,{key:1,fields:l.value,values:te,errors:W.value[b]??{},notices:C.value[b],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${p.value[b]}`,"scope-path":e.field.name,onUpdate:(T,P)=>ue(b,T,P)},null,8,["fields","values","errors","notices","source","record-id","id-prefix","scope-path","onUpdate"]))],8,jL)):Q("",!0)],42,PL)],64))),128)),xe.value!==null&&U.value===i.value.length&&U.value!==xe.value+1?(m(),y("div",{key:1,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel",onDragover:X[0]||(X[0]=ft(()=>{},["prevent"])),onDrop:Y},null,32)):Q("",!0),o.value?Q("",!0):(m(),y("div",HL,[N(Ke,{ref_key:"addButton",ref:H,variant:"outline",size:"sm",icon:s(xs),"data-action":"repeater-add",disabled:u.value!==null&&i.value.length>=u.value,onClick:we},{default:q(()=>[_e($(c.value),1)]),_:1},8,["icon","disabled"]),u.value!==null?(m(),y("span",KL,$(s(g)("backend::lang.repeater.count",{current:i.value.length,max:u.value})),1)):Q("",!0),i.value.length>1?(m(),j(Ke,{key:1,variant:"ghost",size:"sm",class:"ml-auto","data-action":"repeater-toggle-all",onClick:J},{default:q(()=>[_e($(s(g)(B.value?"backend::lang.repeater.collapse_all":"backend::lang.repeater.expand_all")),1)]),_:1})):Q("",!0)]))],8,AL))}}),GL="modulepreload",YL=function(e,t){return new URL(e,t).href},dh={},JL=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(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};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=YL(c,a),c in dh)return;dh[c]=!0;const f=c.endsWith(".css"),v=f?'[rel="stylesheet"]':"";if(a)for(let h=o.length-1;h>=0;h--){const k=o[h];if(k.href===c&&(!f||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${v}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":GL,f||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),f)return new Promise((h,k)=>{p.addEventListener("load",h),p.addEventListener("error",()=>k(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 fh(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:Rt(BigInt.prototype.toString),gh=typeof Symbol>"u"?null:Rt(Symbol.prototype.toString),on=Rt(Object.prototype.hasOwnProperty),Ao=Rt(Object.prototype.toString),Yt=Rt(RegExp.prototype.test),Wa=cN(TypeError);function Rt(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]:Ro;if(ph&&ph(e,null),!Fl(t))return e;let a=t.length;for(;a--;){let r=t[a];if(typeof r=="string"){const l=n(r);l!==r&&(nN(t)||(t[a]=l),r=l)}e[r]=!0}return e}function dN(e){for(let t=0;t/g),gN=Ht(/\${[\w\W]*/g),bN=Ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),_N=Ht(/^aria-[\-\w]+$/),wh=Ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xN=Ht(/^(?:\w+script|data):/i),kN=Ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wN=Ht(/^html$/i),$N=Ht(/^[a-z][.\w]*(-[.\w]+)+$/i),$h=Ht(/<[/\w!]/g),Ch=Ht(/<[/\w]/g),CN=Ht(/<\/no(script|embed|frames)/i),SN=Ht(/\/>/i),vn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},T0=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],EN=Bt(ct({},T0)),AN=(function(){const e={};return Rr(T0,t=>{e[t]=Ht(new RegExp("])","i"))}),Bt(e)})(),TN=function(){return typeof window>"u"?null:window},DN=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}},Sh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ga=function(t,n,a,r){return on(t,n)&&Fl(t[n])?ct(r.base?hn(r.base):{},t[n],r.transform):a},Uc=function(t,n,a){const r=on(t,n)?t[n]:void 0;return r&&typeof r=="object"?hn(r):a()};function D0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TN();const t=Me=>D0(Me);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==vn.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,v=Sn(f,"cloneNode"),p=Sn(f,"remove"),h=Sn(f,"removeAttributeNode"),k=Sn(f,"nextSibling"),S=Sn(f,"childNodes"),x=Sn(f,"parentNode"),E=Sn(f,"shadowRoot"),L=Sn(f,"attributes"),D=o&&o.prototype?Sn(o.prototype,"nodeType"):null,A=o&&o.prototype?Sn(o.prototype,"nodeName"):null,R=o&&o.prototype?Sn(o.prototype,"ownerDocument"):null,F=function(V){return D?D(V):V.nodeType},W=function(V){return A?A(V):V.nodeName};if(typeof l=="function"){const Me=n.createElement("template");Me.content&&Me.content.ownerDocument&&(n=Me.content.ownerDocument)}let C,I="",z,O=!1,B=0;const J=function(){if(B>0)throw Wa('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.')},K=function(V){J(),B++;try{return C.createHTML(V)}finally{B--}},H=function(V){J(),B++;try{return C.createScriptURL(V)}finally{B--}},le=function(){return O||(z=DN(c,r),O=!0),z},ue=n,we=ue.implementation,Oe=ue.createNodeIterator,Ae=ue.createDocumentFragment,ie=ue.getElementsByTagName,xe=a.importNode;let U=Sh();t.isSupported=typeof E0=="function"&&typeof x=="function"&&we&&we.createHTMLDocument!==void 0;const ke=hN,me=yN,Y=gN,fe=bN,G=_N,X=xN,te=kN,b=$N;let T=wh,P=null;const re=ct({},[...bh,...Fc,...Vc,...zc,..._h]);let ee=null;const ce=ct({},[...xh,...jc,...kh,...Xs]);let Ee=Object.seal($l(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}})),Ce=null,Te=null;const oe=Object.seal($l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,ye=!0,qe=!1,Be=!0,He=!1,Ze=!0,Xe=!1,ot=!1,at=null,Et=null,Tt=!1,qt=!1,Fe=!1,de=!1,be=!0,je=!1;const rt="user-content-";let jt=!0,Lt=!1,Pn={},Gt=null;const so=ct({},["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 rl=null;const io=ct({},["audio","video","img","source","image","track"]);let ll=null;const uo=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Va="http://www.w3.org/2000/svg",en="http://www.w3.org/1999/xhtml";let Kn=en,co=!1,fo=null;const po=ct({},[wn,Va,en],Bc),Z=Bt(["mi","mo","mn","ms","mtext"]);let De=ct({},Z);const ne=Bt(["annotation-xml"]);let Re=ct({},ne);const tt=ct({},["title","style","font","a","script"]);let Dt=null;const Wn=["application/xhtml+xml","text/html"],za="text/html";let Ot=null,ol=null;const Z0=n.createElement("form"),_p=function(V){return V instanceof RegExp||V instanceof Function},Bu=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ol&&ol===V)return;(!V||typeof V!="object")&&(V={}),V=hn(V),Dt=Wn.indexOf(V.PARSER_MEDIA_TYPE)===-1?za:V.PARSER_MEDIA_TYPE,Ot=Dt==="application/xhtml+xml"?Bc:Ro,P=Ga(V,"ALLOWED_TAGS",re,{transform:Ot}),ee=Ga(V,"ALLOWED_ATTR",ce,{transform:Ot}),fo=Ga(V,"ALLOWED_NAMESPACES",po,{transform:Bc}),ll=Ga(V,"ADD_URI_SAFE_ATTR",uo,{transform:Ot,base:uo}),rl=Ga(V,"ADD_DATA_URI_TAGS",io,{transform:Ot,base:io}),Gt=Ga(V,"FORBID_CONTENTS",so,{transform:Ot}),Ce=Ga(V,"FORBID_TAGS",hn({}),{transform:Ot}),Te=Ga(V,"FORBID_ATTR",hn({}),{transform:Ot}),Pn=on(V,"USE_PROFILES")?V.USE_PROFILES&&typeof V.USE_PROFILES=="object"?hn(V.USE_PROFILES):V.USE_PROFILES:!1,$e=V.ALLOW_ARIA_ATTR!==!1,ye=V.ALLOW_DATA_ATTR!==!1,qe=V.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=V.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=V.SAFE_FOR_TEMPLATES||!1,Ze=V.SAFE_FOR_XML!==!1,Xe=V.WHOLE_DOCUMENT||!1,qt=V.RETURN_DOM||!1,Fe=V.RETURN_DOM_FRAGMENT||!1,de=V.RETURN_TRUSTED_TYPE||!1,Tt=V.FORCE_BODY||!1,be=V.SANITIZE_DOM!==!1,je=V.SANITIZE_NAMED_PROPS||!1,jt=V.KEEP_CONTENT!==!1,Lt=V.IN_PLACE||!1,T=pN(V.ALLOWED_URI_REGEXP)?V.ALLOWED_URI_REGEXP:wh,Kn=typeof V.NAMESPACE=="string"?V.NAMESPACE:en,De=Uc(V,"MATHML_TEXT_INTEGRATION_POINTS",()=>ct({},Z)),Re=Uc(V,"HTML_INTEGRATION_POINTS",()=>ct({},ne));const se=Uc(V,"CUSTOM_ELEMENT_HANDLING",()=>$l(null));if(Ee=$l(null),on(se,"tagNameCheck")&&_p(se.tagNameCheck)&&(Ee.tagNameCheck=se.tagNameCheck),on(se,"attributeNameCheck")&&_p(se.attributeNameCheck)&&(Ee.attributeNameCheck=se.attributeNameCheck),on(se,"allowCustomizedBuiltInElements")&&typeof se.allowCustomizedBuiltInElements=="boolean"&&(Ee.allowCustomizedBuiltInElements=se.allowCustomizedBuiltInElements),Ht(Ee),He&&(ye=!1),Fe&&(qt=!0),Pn&&(P=ct({},_h),ee=$l(null),Pn.html===!0&&(ct(P,bh),ct(ee,xh)),Pn.svg===!0&&(ct(P,Fc),ct(ee,jc),ct(ee,Xs)),Pn.svgFilters===!0&&(ct(P,Vc),ct(ee,jc),ct(ee,Xs)),Pn.mathMl===!0&&(ct(P,zc),ct(ee,kh),ct(ee,Xs))),oe.tagCheck=null,oe.attributeCheck=null,on(V,"ADD_TAGS")&&(typeof V.ADD_TAGS=="function"?oe.tagCheck=V.ADD_TAGS:Fl(V.ADD_TAGS)&&(P===re&&(P=hn(P)),ct(P,V.ADD_TAGS,Ot))),on(V,"ADD_ATTR")&&(typeof V.ADD_ATTR=="function"?oe.attributeCheck=V.ADD_ATTR:Fl(V.ADD_ATTR)&&(ee===ce&&(ee=hn(ee)),ct(ee,V.ADD_ATTR,Ot))),on(V,"ADD_FORBID_CONTENTS")&&Fl(V.ADD_FORBID_CONTENTS)&&(Gt===so&&(Gt=hn(Gt)),ct(Gt,V.ADD_FORBID_CONTENTS,Ot)),jt&&(P["#text"]=!0),Xe&&ct(P,["html","head","body"]),P.table&&(ct(P,["tbody"]),delete Ce.tbody),V.TRUSTED_TYPES_POLICY){if(typeof V.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof V.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Se=C;C=V.TRUSTED_TYPES_POLICY;try{I=K("")}catch(Pe){throw C=Se,Pe}}else V.TRUSTED_TYPES_POLICY===null?(C=void 0,I=""):(C===void 0&&(C=le()),C&&typeof I=="string"&&(I=K("")));Bt&&Bt(V),ol=V},xp=ct({},[...Fc,...Vc,...mN]),kp=ct({},[...zc,...vN]),X0=function(V,se,Se){return se.namespaceURI===en?V==="svg":se.namespaceURI===wn?V==="svg"&&(Se==="annotation-xml"||De[Se]):!!xp[V]},Q0=function(V,se,Se){return se.namespaceURI===en?V==="math":se.namespaceURI===Va?V==="math"&&Re[Se]:!!kp[V]},e_=function(V,se,Se){return se.namespaceURI===Va&&!Re[Se]||se.namespaceURI===wn&&!De[Se]?!1:!kp[V]&&(tt[V]||!xp[V])},t_=function(V){let se=x(V);(!se||!se.tagName)&&(se={namespaceURI:Kn,tagName:"template"});const Se=Ro(V.tagName),Pe=Ro(se.tagName);return fo[V.namespaceURI]?V.namespaceURI===Va?X0(Se,se,Pe):V.namespaceURI===wn?Q0(Se,se,Pe):V.namespaceURI===en?e_(Se,se,Pe):!!(Dt==="application/xhtml+xml"&&fo[V.namespaceURI]):!1},ja=function(V){So(t.removed,{element:V});try{x(V).removeChild(V)}catch{if(p(V),!x(V))throw Wa("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},wp=function(V,se,Se){try{h(V,se)}catch{try{V.removeAttribute(Se)}catch{}}},As=function(V){Ts(V);const se=S(V);if(se){const Pe=[];Rr(se,Ue=>{So(Pe,Ue)}),Rr(Pe,Ue=>{try{p(Ue)}catch{}})}const Se=L(V);if(Se)for(let Pe=Se.length-1;Pe>=0;--Pe){const Ue=Se[Pe],st=Ue&&Ue.name;typeof st=="string"&&wp(V,Ue,st)}},Er=function(V,se,Se){if(!Se)try{Se=se.getAttributeNode(V)}catch{Se=null}So(t.removed,{attribute:Se||null,from:se});try{Se?h(se,Se):se.removeAttribute(V)}catch{try{se.removeAttribute(V)}catch{}}if(V==="is")if(qt||Fe)try{ja(se)}catch{}else try{se.setAttribute(V,"")}catch{}},n_=function(V){const se=L(V);if(se)for(let Se=se.length-1;Se>=0;--Se){const Pe=se[Se],Ue=Pe&&Pe.name;typeof Ue!="string"||ee[Ot(Ue)]||wp(V,Pe,Ue)}},Ts=function(V){const se=[V];for(;se.length>0;){const Se=se.pop();F(Se)===vn.element&&n_(Se);const Pe=S(Se);if(Pe)for(let Ue=Pe.length-1;Ue>=0;--Ue)se.push(Pe[Ue])}},$p=function(V,se){return Ze?V==="patchsrc"?!0:V==="for"&&se!=="label"&&se!=="output":!1},a_=function(V){if(!Ze)return;const se=[V];for(;se.length>0;){const Se=se.pop(),Pe=F(Se);if(Pe===vn.processingInstruction||Pe===vn.comment&&Yt(Ch,Se.data)){try{p(Se)}catch{}continue}if(Pe===vn.element){const st=Se,ut=Ot(W(Se));try{st.hasAttribute&&st.hasAttribute("patchsrc")&&st.removeAttribute("patchsrc"),st.hasAttribute&&st.hasAttribute("for")&&$p("for",ut)&&st.removeAttribute("for")}catch{}}const Ue=S(Se);if(Ue)for(let st=Ue.length-1;st>=0;--st)se.push(Ue[st])}},Cp=function(V){let se=null,Se=null;if(Tt)V=""+V;else{const st=vh(V,/^[\r\n\t ]+/);Se=st&&st[0]}Dt==="application/xhtml+xml"&&Kn===en&&(V=''+V+"");const Pe=C?K(V):V;if(Kn===en)try{se=new d().parseFromString(Pe,Dt)}catch{}if(!se||!se.documentElement){se=we.createDocument(Kn,"template",null);try{se.documentElement.innerHTML=co?I:Pe}catch{}}const Ue=se.body||se.documentElement;return V&&Se&&Ue.insertBefore(n.createTextNode(Se),Ue.childNodes[0]||null),Kn===en?ie.call(se,Xe?"html":"body")[0]:Xe?se.documentElement:Ue},Sp=function(V){const se=R?R(V):V.ownerDocument;return Oe.call(se||V,V,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ds=function(V){return V=Eo(V,ke," "),V=Eo(V,me," "),V=Eo(V,Y," "),V},Fu=function(V){var se;V.normalize();const Se=R?R(V):V.ownerDocument,Pe=Oe.call(Se||V,V,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ue=Pe.nextNode();for(;Ue;)Ue.data=Ds(Ue.data),Ue=Pe.nextNode();const st=(se=V.querySelectorAll)===null||se===void 0?void 0:se.call(V,"template");st&&Rr(st,ut=>{sl(ut.content)&&Fu(ut.content)})},Os=function(V){const se=A?A(V):null;return typeof se!="string"||Ot(se)!=="form"?!1:typeof V.nodeName!="string"||typeof V.textContent!="string"||typeof V.removeChild!="function"||V.attributes!==L(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!==D(V)||V.childNodes!==S(V)},sl=function(V){if(!D||typeof V!="object"||V===null)return!1;try{return D(V)===vn.documentFragment}catch{return!1}},mo=function(V){if(!D||typeof V!="object"||V===null)return!1;try{return typeof D(V)=="number"}catch{return!1}};function Gn(Me,V,se){Me.length!==0&&Rr(Me,Se=>{Se.call(t,V,se,ol)})}const r_=function(V,se){return!!(Ze&&V.hasChildNodes()&&!mo(V.firstElementChild)&&Yt($h,V.textContent)&&Yt($h,V.innerHTML)||Ze&&V.namespaceURI===en&&EN[se]&&(mo(V.firstElementChild)||typeof V.textContent=="string"&&Yt(AN[se],V.textContent))||V.nodeType===vn.processingInstruction||Ze&&V.nodeType===vn.comment&&Yt(Ch,V.data))},Ms=function(V,se){if(V instanceof RegExp)return Yt(V,se);if(V instanceof Function){for(var Se=arguments.length,Pe=new Array(Se>2?Se-2:0),Ue=2;Ue=0;--ut){const At=V===Se?v(Ue[ut],!0):Ue[ut];Pe.insertBefore(At,k(V))}}}return ja(V),!0},Ep=function(V,se,Se,Pe){return V.length===0?se:se===Se||se===Pe?hn(se):se},il=function(V,se){return V===se||x(V)!==null?!1:(Lt&&Ts(V),!0)},Ap=function(V,se){if(Gn(U.beforeSanitizeElements,V,null),il(V,se))return!0;if(Os(V))return ja(V),!0;const Se=Ot(W(V));if(P=Ep(U.uponSanitizeElement,P,re,at),Gn(U.uponSanitizeElement,V,{tagName:Se,allowedTags:P}),il(V,se))return!0;if(r_(V,Se))return ja(V),!0;if(Ce[Se]||!(oe.tagCheck instanceof Function&&oe.tagCheck(Se))&&!P[Se]){const Pe=l_(V,Se,se);return Pe===!1&&(Gn(U.afterSanitizeElements,V,null),il(V,se))?!0:Pe}if(F(V)===vn.element&&!t_(V)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&Yt(CN,V.innerHTML))return ja(V),!0;if(He&&V.nodeType===vn.text){const Pe=Ds(V.textContent);V.textContent!==Pe&&(So(t.removed,{element:V.cloneNode()}),V.textContent=Pe)}return Gn(U.afterSanitizeElements,V,null),il(V,se)},Tp=function(V,se,Se){if(Te[se]||$p(se,V)||be&&(se==="id"||se==="name")&&(Se in n||Se in Z0))return!1;const Pe=ee[se]||oe.attributeCheck instanceof Function&&oe.attributeCheck(se,V);return ye&&Yt(fe,se)||$e&&Yt(G,se)?!0:Pe?ll[se]||Yt(T,Eo(Se,te,""))||(se==="src"||se==="xlink:href"||se==="href")&&V!=="script"&&hh(Se,"data:")===0&&rl[V]||qe&&!Yt(X,Eo(Se,te,""))?!0:!Se:Dp(V)&&Ms(Ee.tagNameCheck,V)&&Ms(Ee.attributeNameCheck,se,V)||se==="is"&&Ee.allowCustomizedBuiltInElements&&Ms(Ee.tagNameCheck,Se)},o_=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Dp=function(V){return!o_[Ro(V)]&&Yt(b,V)},s_=function(V,se,Se,Pe){if(C&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!Se)switch(c.getAttributeType(V,se)){case"TrustedHTML":return K(Pe);case"TrustedScriptURL":return H(Pe)}return Pe},i_=function(V,se,Se,Pe){try{return Se?V.setAttributeNS(Se,se,Pe):V.setAttribute(se,Pe),Os(V)?(ja(V),!1):!0}catch{return Er(se,V),!1}},Op=function(V,se){if(Gn(U.beforeSanitizeAttributes,V,null),il(V,se))return;const Se=V.attributes;if(!Se||Os(V))return;ee=Ep(U.uponSanitizeAttribute,ee,ce,Et);const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ue=Se.length;const st=Ot(V.nodeName);for(;Ue--;){const ut=Se[Ue],At=ut.name,$n=ut.namespaceURI,pn=ut.value,ul=Ot(At),zu=pn;let tn=At==="value"?zu:sN(zu),Mp=!1;if(Pe.attrName=ul,Pe.attrValue=tn,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Gn(U.uponSanitizeAttribute,V,Pe),tn=Pe.attrValue,je&&(ul==="id"||ul==="name")&&hh(tn,rt)!==0&&(Er(At,V,ut),tn=rt+tn,Mp=!0),Ze&&Yt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tn)){Er(At,V,ut);continue}if(ul==="attributename"&&vh(tn,"href")){Er(At,V,ut);continue}if(!Pe.forceKeepAttr){if(!Pe.keepAttr){Er(At,V,ut);continue}if(!Be&&Yt(SN,tn)){Er(At,V,ut);continue}if(He&&(tn=Ds(tn)),!Tp(st,ul,tn)){Er(At,V,ut);continue}tn=s_(st,ul,$n,tn),tn!==zu&&i_(V,At,$n,tn)&&Mp&&mh(t.removed)}}Gn(U.afterSanitizeAttributes,V,null),il(V,se)},Ps=function(V){let se=null;const Se=Sp(V);for(Gn(U.beforeSanitizeShadowDOM,V,null);se=Se.nextNode();)if(Gn(U.uponSanitizeShadowNode,se,null),Ap(se,V),Op(se,V),sl(se.content)&&Ps(se.content),F(se)===vn.element){const Pe=E(se);sl(Pe)&&(Vu(Pe),Ps(Pe))}Gn(U.afterSanitizeShadowDOM,V,null)},Vu=function(V){const se=[{node:V,shadow:null}];for(;se.length>0;){const Se=se.pop();if(Se.shadow){Ps(Se.shadow);continue}const Pe=Se.node,Ue=F(Pe)===vn.element,st=S(Pe);if(st)for(let ut=st.length-1;ut>=0;--ut)se.push({node:st[ut],shadow:null});if(Ue){const ut=A?A(Pe):null;if(typeof ut=="string"&&Ot(ut)==="template"){const At=Pe.content;sl(At)&&se.push({node:At,shadow:null})}}if(Ue){const ut=E(Pe);sl(ut)&&se.push({node:null,shadow:ut},{node:ut,shadow:null})}}};return t.sanitize=function(Me){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=null,Se=null,Pe=null,Ue=null;if(co=!Me,co&&(Me=""),typeof Me!="string"&&!mo(Me)&&(Me=fN(Me),typeof Me!="string"))throw Wa("dirty is not a string, aborting");if(!t.isSupported)return Me;ot?(P=at,ee=Et):Bu(V),(U.uponSanitizeElement.length>0||U.uponSanitizeAttribute.length>0)&&(P=hn(P)),U.uponSanitizeAttribute.length>0&&(ee=hn(ee)),t.removed=[];const st=Lt&&typeof Me!="string"&&mo(Me);if(st){a_(Me);const $n=W(Me);if(typeof $n=="string"){const pn=Ot($n);if(!P[pn]||Ce[pn])throw As(Me),Wa("root node is forbidden and cannot be sanitized in-place")}if(Os(Me))throw As(Me),Wa("root node is clobbered and cannot be sanitized in-place");try{Vu(Me)}catch(pn){throw As(Me),pn}}else if(mo(Me))se=Cp(""),Se=se.ownerDocument.importNode(Me,!0),Se.nodeType===vn.element&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?se=Se:se.appendChild(Se),Vu(se);else{if(!qt&&!He&&!Xe&&Me.indexOf("<")===-1)return C&&de?K(Me):Me;if(se=Cp(Me),!se)return qt?null:de?I:""}se&&Tt&&ja(se.firstChild);const ut=st?Me:se;try{const $n=Sp(ut);for(;Pe=$n.nextNode();)Ap(Pe,ut),Op(Pe,ut),sl(Pe.content)&&Ps(Pe.content)}catch($n){throw st&&(As(Me),Rr(t.removed,pn=>{pn.element&&Ts(pn.element)})),$n}if(st){let $n=!1;if(Rr(t.removed,pn=>{pn.element&&(pn.element===Me&&($n=!0),Ts(pn.element))}),$n)throw Wa("a node selected for removal could not be safely returned; refusing to sanitize in place");return He&&Fu(Me),Me}if(qt){if(He&&Fu(se),Fe)for(Ue=Ae.call(se.ownerDocument);se.firstChild;)Ue.appendChild(se.firstChild);else Ue=se;return(ee.shadowroot||ee.shadowrootmode)&&(Ue=xe.call(a,Ue,!0)),Ue}let At=Xe?se.outerHTML:se.innerHTML;return Xe&&P["!doctype"]&&se.ownerDocument&&se.ownerDocument.doctype&&se.ownerDocument.doctype.name&&Yt(wN,se.ownerDocument.doctype.name)&&(At=" +`+At),He&&(At=Ds(At)),C&&de?K(At):At},t.setConfig=function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bu(Me),ot=!0,at=P,Et=ee},t.clearConfig=function(){ol=null,ot=!1,at=null,Et=null,C=z,I=""},t.isValidAttribute=function(Me,V,se){ol||Bu({});const Se=Ot(Me),Pe=Ot(V);return Tp(Se,Pe,se)},t.addHook=function(Me,V){typeof V=="function"&&on(U,Me)&&So(U[Me],V)},t.removeHook=function(Me,V){if(on(U,Me)){if(V!==void 0){const se=lN(U[Me],V);return se===-1?void 0:oN(U[Me],se,1)[0]}return mh(U[Me])}},t.removeHooks=function(Me){on(U,Me)&&(U[Me]=[])},t.removeAllHooks=function(){U=Sh()},t}var ON=D0();const MN=["http","https","mailto","tel"],PN=/[\x00-\x20\x7f]+/g,IN=/^([a-z][a-z0-9+.-]*):/i;function O0(e){if(e==null)return!1;const t=e.replace(PN,"");if(t==="")return!1;const n=IN.exec(t);if(n)return MN.includes(n[1].toLowerCase());try{return new URL(t,"https://admin.invalid/"),!0}catch{return!1}}const RN=["script","style","template","noscript","iframe","frame","frameset","object","embed","applet","svg","math","title","head","meta","link","base"],M0=Object.freeze({ALLOWED_TAGS:[...C0],ALLOWED_ATTR:["href"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1,ADD_FORBID_CONTENTS:[...RN],KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),qN='

a - + +