@velocity-astro/cms-admin 0.1.0-beta.4 → 0.1.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-dist/assets/{RichTextEditor-B1fSHY4y.js → RichTextEditor-3V2J98jv.js} +1 -1
- package/app-dist/assets/index-BvWFILf6.css +2 -0
- package/app-dist/assets/{index-DmVwReEd.js → index-XV61GS8z.js} +11 -11
- package/app-dist/index.html +2 -2
- package/dist/fields/BlocksControl.d.ts.map +1 -1
- package/dist/fields/BlocksControl.js +42 -4
- package/dist/fields/BlocksControl.js.map +1 -1
- package/dist/fields/FieldGrid.d.ts +10 -1
- package/dist/fields/FieldGrid.d.ts.map +1 -1
- package/dist/fields/FieldGrid.js +4 -3
- package/dist/fields/FieldGrid.js.map +1 -1
- package/dist/fields/controls.d.ts.map +1 -1
- package/dist/fields/controls.js +30 -3
- package/dist/fields/controls.js.map +1 -1
- package/dist/fields/field-control.d.ts +13 -0
- package/dist/fields/field-control.d.ts.map +1 -1
- package/dist/fields/field-control.js.map +1 -1
- package/dist/fields/page-focus.d.ts +18 -2
- package/dist/fields/page-focus.d.ts.map +1 -1
- package/dist/fields/page-focus.js +18 -2
- package/dist/fields/page-focus.js.map +1 -1
- package/dist/messages/en.d.ts +4 -0
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/en.js +4 -0
- package/dist/messages/en.js.map +1 -1
- package/dist/page-bridge/index.d.ts +7 -0
- package/dist/page-bridge/index.d.ts.map +1 -0
- package/dist/page-bridge/index.js +7 -0
- package/dist/page-bridge/index.js.map +1 -0
- package/dist/page-bridge/preview-bridge.d.ts +32 -0
- package/dist/page-bridge/preview-bridge.d.ts.map +1 -0
- package/dist/page-bridge/preview-bridge.js +463 -0
- package/dist/page-bridge/preview-bridge.js.map +1 -0
- package/dist/screens/EntryEditor/EntryForm.d.ts.map +1 -1
- package/dist/screens/EntryEditor/EntryForm.js +18 -8
- package/dist/screens/EntryEditor/EntryForm.js.map +1 -1
- package/dist/screens/EntryEditor/PagePane.d.ts +19 -1
- package/dist/screens/EntryEditor/PagePane.d.ts.map +1 -1
- package/dist/screens/EntryEditor/PagePane.js +23 -7
- package/dist/screens/EntryEditor/PagePane.js.map +1 -1
- package/package.json +9 -5
- package/app-dist/assets/index-CczBKhBz.css +0 -2
|
@@ -60,21 +60,21 @@ Error generating stack: `+e.message+`
|
|
|
60
60
|
|
|
61
61
|
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=ul,c=!cu.jitless,l=c&&dl.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?kf([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Mf(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!jl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ll(e,r,lu())))}),t)}var Nf=B(`$ZodUnion`,(e,t)=>{kd.init(e,t),Ql(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),Ql(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Ql(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),Ql(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>Xc(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Mf(t,r,e,i)):Mf(o,r,e,i)}});function Pf(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Ff=B(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Nf.init(e,t);let n=e._zod.parse;Ql(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||$c(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=el(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Jc(()=>Pf(t));e._zod.parse=(i,a)=>{let o=i.value;if(!ul(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),If=B(`$ZodIntersection`,(e,t)=>{kd.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Rf(e,t,n)):Rf(e,i,a)}});function Lf(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fl(e)&&fl(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Lf(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Lf(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Rf(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Lf(t.value,n.value);if(!c.valid){if(jl(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var zf=B(`$ZodEnum`,(e,t)=>{kd.init(e,t);let n=Wc(t.entries),r=new Set(n);e._zod.values=r,Ql(e,`pattern`,e=>{let t=Wc(e.def.entries).filter(e=>ml.has(typeof e));return RegExp(t.length?`^(${t.map(e=>hl(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Bf=B(`$ZodLiteral`,(e,t)=>{kd.init(e,t);let n=new Set(t.values);e._zod.values=n,Ql(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?hl(e):e?hl(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Vf=B(`$ZodTransform`,(e,t)=>{kd.init(e,t),e._zod.optin=`optional`,cu.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new su(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new ou;return n.value=i,n}});function Hf(e,t){return e.value=t.issues.length?void 0:t.value,e}var Uf=B(`$ZodOptional`,(e,t)=>{kd.init(e,t),Ql(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,Ql(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),Ql(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Xc(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Hf(e,t)):Hf(e,r)}return t.innerType._zod.run(e,n)}}),Wf=B(`$ZodExactOptional`,(e,t)=>{Uf.init(e,t),Ql(e,`values`,e=>e.def.innerType._zod.values),Ql(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Gf=B(`$ZodNullable`,(e,t)=>{kd.init(e,t),Ql(e,`optin`,e=>e.def.innerType._zod.optin),Ql(e,`optout`,e=>e.def.innerType._zod.optout),Ql(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Xc(t.source)}|null)$`):void 0}),Ql(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Kf=B(`$ZodDefault`,(e,t)=>{kd.init(e,t),e._zod.optin=`defaulted`,Ql(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>qf(e,t)):qf(r,t)}});function qf(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Jf=B(`$ZodPrefault`,(e,t)=>{kd.init(e,t),e._zod.optin=`defaulted`,Ql(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Yf=B(`$ZodNonOptional`,(e,t)=>{kd.init(e,t),Ql(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Xf(t,e)):Xf(i,e)}});function Xf(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Zf(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Ll(e,r,lu()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Qf=B(`$ZodCatch`,(e,t)=>{kd.init(e,t),Ql(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),Ql(e,`optout`,e=>e.def.innerType._zod.optout),Ql(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Zf(e,r,t,n)):Zf(e,r,t,n)}}),$f=B(`$ZodPipe`,(e,t)=>{kd.init(e,t),Ql(e,`values`,e=>e.def.in._zod.values),Ql(e,`optin`,e=>e.def.in._zod.optin),Ql(e,`optout`,e=>e.def.out._zod.optout),Ql(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ep(e,t.in,n)):ep(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ep(e,t.out,n)):ep(r,t.out,n)}});function ep(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var tp=B(`$ZodPreprocess`,(e,t)=>{$f.init(e,t)}),np=B(`$ZodReadonly`,(e,t)=>{kd.init(e,t),Ql(e,`propValues`,e=>e.def.innerType._zod.propValues),Ql(e,`values`,e=>e.def.innerType._zod.values),Ql(e,`optin`,e=>e.def.innerType?._zod?.optin),Ql(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(rp):rp(r)}});function rp(e){return e.memo||(e.value=Object.freeze(e.value)),e}var ip=B(`$ZodLazy`,(e,t)=>{kd.init(e,t),Qc(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),Ql(e,`pattern`,e=>e.innerType?._zod?.pattern),Ql(e,`propValues`,e=>e.innerType?._zod?.propValues),Ql(e,`optin`,e=>e.innerType?._zod?.optin??void 0),Ql(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),ap=B(`$ZodCustom`,(e,t)=>{md.init(e,t),kd.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>op(t,n,r,e));op(i,n,r,e)}});function op(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Hl(e))}}var sp=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},cp=`~memo`,lp=[];function up(e){return typeof e==`object`&&!!e}function dp(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var fp=new WeakMap,pp=0,mp=1,hp=2;function gp(e,t,n){let r=fp.get(e);if(r!==void 0)return r?hp:pp;if(t.has(e))return hp;t.add(e);let i=pp,a=e=>{if(i!==hp&&e?._zod){let r=gp(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=pp;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?mp:o.value?._zod?gp(o.value,t,n):pp;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=el(c);s(e?o(e,!0):mp),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?gp(r,t,!1):mp);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),_p(e,i)}function _p(e,t){return t!==mp&&fp.set(e,t===hp),t}function vp(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var yp,bp=[],xp={alloc(e,t,n){let r=yp;if(!r)return n;yp=void 0;let i={value:n,issues:null};return r.set(t.value,i),bp.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Cp(n,e.value))throw new sp;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=gp(e,new Set,!1);if(i===pp)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===hp||r?n=!0:r=!0}let l=s.value;if(!up(l))return t(s,c);let u=c[cp];u||(u={buckets:new WeakMap,backEdges:void 0},c[cp]=u);let d;i===c?d=a:(d=vp(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...dp(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;yp=d;let p=bp.length,m=t(s,c);yp=void 0;let h=bp.length>p?bp.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?dp(e.issues):lp),e)):(h&&(h.issues=m.issues.length?dp(m.issues):lp),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function Sp(){return xp}function Cp(e,t){let n=e[cp]?.backEdges;return n!==void 0&&up(t)&&n.has(t)}var wp=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Vl(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${vl(e.values[0])}`:`Invalid option: expected one of ${Gc(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Gc(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function Tp(){return{localeError:wp()}}var Ep,Dp=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Op(){return new Dp}(Ep=globalThis).__zod_globalRegistry??(Ep.__zod_globalRegistry=Op());var kp=globalThis.__zod_globalRegistry;function Ap(e){return e.checks&&=[...e.checks],e}function jp(e,t){return new e(Ap({type:`string`,..._l(t)}))}function Mp(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,..._l(t)})}function Np(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,..._l(t)})}function Pp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,..._l(t)})}function Fp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,..._l(t)})}function Ip(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,..._l(t)})}function Lp(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,..._l(t)})}function Rp(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,..._l(t)})}function zp(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,..._l(t)})}function Bp(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,..._l(t)})}function Vp(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,..._l(t)})}function Hp(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,..._l(t)})}function Up(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,..._l(t)})}function Wp(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,..._l(t)})}function Gp(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,..._l(t)})}function Kp(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,..._l(t)})}function qp(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,..._l(t)})}function Jp(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,..._l(t)})}function Yp(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,..._l(t)})}function Xp(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,..._l(t)})}function Zp(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,..._l(t)})}function Qp(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,..._l(t)})}function $p(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,..._l(t)})}function em(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,..._l(t)})}function tm(e,t){return new e({type:`string`,format:`date`,check:`string_format`,..._l(t)})}function nm(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,..._l(t)})}function rm(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,..._l(t)})}function im(e){return new e({type:`unknown`})}function am(e,t){return new e({type:`never`,..._l(t)})}function om(e,t){return new gd({check:`max_length`,..._l(t),maximum:e})}function sm(e,t){return new _d({check:`min_length`,..._l(t),minimum:e})}function cm(e,t){return new vd({check:`length_equals`,..._l(t),length:e})}function lm(e,t){return new bd({check:`string_format`,format:`regex`,..._l(t),pattern:e})}function um(e){return new xd({check:`string_format`,format:`lowercase`,..._l(e)})}function dm(e){return new Sd({check:`string_format`,format:`uppercase`,..._l(e)})}function fm(e,t){return new Cd({check:`string_format`,format:`includes`,..._l(t),includes:e})}function pm(e,t){return new wd({check:`string_format`,format:`starts_with`,..._l(t),prefix:e})}function mm(e,t){return new Td({check:`string_format`,format:`ends_with`,..._l(t),suffix:e})}function hm(e){return new Ed({check:`overwrite`,tx:e})}function gm(e){return hm(t=>t.normalize(e))}function _m(){return hm(e=>e.trim())}function vm(){return hm(e=>e.toLowerCase())}function ym(){return hm(e=>e.toUpperCase())}function bm(){return hm(e=>cl(e))}function xm(e,t,n){return new e({type:`array`,element:t,..._l(n)})}function Sm(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,..._l(n)})}function Cm(e,t){let n=wm(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Hl(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Hl(r))}},e(t.value,t)),t);return n}function wm(e,t){let n=new md({check:`custom`,..._l(t)});return n._zod.check=e,n}function Tm(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&$c(e,t,n[t]);return e}function Em(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??kp,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Dm(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Om(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Om(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Tm(o.schema,c),t.io===`input`&&Rm(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function km(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Am(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${km(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+km(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
62
62
|
|
|
63
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function jm(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;jm(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Mm=new Set([`type`,`properties`,`required`,`additionalProperties`]),Nm=[`oneOf`,`anyOf`];function Pm(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Fm(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Mm.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Pm(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}$c(n,r,e.length===1?e[0]:Fm(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Pm(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Im(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Mm)if(t in e)return;let n=t.filter(e=>Nm.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Fm(t);else{let e=n[0],i=Nm.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Fm([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Tm(e,r))}function Lm(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Tm(i,s),Tm(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())jm(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Im(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Tm(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,$c(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Bm(t,`input`,e.processors),output:Bm(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Rm(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Rm(r.element,n);if(r.type===`set`)return Rm(r.valueType,n);if(r.type===`lazy`)return Rm(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Rm(r.innerType,n);if(r.type===`intersection`)return Rm(r.left,n)||Rm(r.right,n);if(r.type===`record`||r.type===`map`)return Rm(r.keyType,n)||Rm(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Rm(r.in,n)||Rm(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Rm(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Rm(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Rm(e,n))return!0;return!!(r.rest&&Rm(r.rest,n))}return!1}var zm=(e,t={})=>n=>{let r=Em({...n,processors:t});return Om(e,r),Am(r,e),Lm(r,e)},Bm=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Em({...i??{},target:a,io:t,processors:n});return Om(e,o),Am(o,e),Lm(o,e)},Vm=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Hm=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Um=(e,t)=>{Vm(e,`minimum`,t),Hm(e,`maximum`,t)},Wm=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Gm=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},Km=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},qm=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Jm=(e,t)=>Vm(e,`minimum`,t.minimum),Ym=(e,t)=>Hm(e,`maximum`,t.maximum),Xm=e=>(t,n)=>{qm(t,n.format);let[r,i]=e[n.format];Vm(t,`minimum`,r),Hm(t,`maximum`,i)},Zm={greater_than:(e,t)=>Vm(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Hm(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Wm(e,t.value),number_format:Xm(bl),bigint_format:Xm(xl),min_length:Jm,max_length:Ym,length_equals:(e,t)=>Um(e,t.length),min_size:Jm,max_size:Ym,size_equals:(e,t)=>Um(e,t.size),string_format:(e,t)=>{qm(e,t.format),t.pattern&&Gm(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Km(e,t.mime)};function Qm(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Zm[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Vm(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Vm(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Hm(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Hm(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Wm(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Km(t,i.mime);for(let e of i.patterns??[])Gm(t,e);return t}var $m={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},eh=new Map([[ff,td],[mf,nd]]),th=e=>eh.get(e)??e,nh=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Qm(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=$m[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(th);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},rh=(e,t,n,r)=>{n.not={}},ih=(e,t,n,r)=>{let i=e._zod.def,a=Wc(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},ah=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Dm(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Dm(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},oh=(e,t,n,r)=>{Dm(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},sh=(e,t,n,r)=>{Dm(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},ch=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Qm(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Om(a.element,t,{...r,path:[...r.path,`items`]})};function lh(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?lh(t.out):t.type===`catch`?lh(t.innerType):e._zod.optin}var uh=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Dm(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)$c(i.properties,e,Om(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?lh(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Om(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},dh=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Om(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},fh=(e,t,n,r)=>{let i=e._zod.def,a=Om(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Om(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},ph=(e,t,n,r)=>{let i=e._zod.def,a=Om(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},mh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hh=Symbol();function gh(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Dm(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),hh):JSON.parse(o)}var _h=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=gh(i.defaultValue,e,t,n,r);o!==hh&&(n.default=o)},vh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=gh(i.defaultValue,e,t,n,r);o!==hh&&(n._prefault=o)},yh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Dm(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},bh=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Om(o,t,r);let s=t.seen.get(e);s.ref=o},xh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Sh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ch=(e,t,n,r)=>{let i=e._zod.innerType;Om(i,t,r);let a=t.seen.get(e);a.ref=i},wh=new WeakSet([Object.prototype,Error.prototype]);function Th(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Eh=B(`ZodError`,(e,t)=>{hu.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);wh.has(n)||(wh.add(n),Th(n,`format`,e=>t=>vu(e,t)),Th(n,`flatten`,e=>t=>_u(e,t)),Th(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Kc,2)}),Th(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Kc,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Dh=bu(Eh),Oh=xu(Eh),kh=Su(Eh),Ah=wu(Eh),jh=Au(Eh),Mh=ju(Eh),Nh=Mu(Eh),Ph=Nu(Eh),Fh=Pu(Eh),Ih=Fu(Eh),Lh=Iu(Eh),Rh=Lu(Eh);function zh(){cu.localeError||lu(Tp())}function Bh(){cu.memoizer||lu({memoizer:Sp()})}var Vh=B(`ZodType`,(e,t)=>(zh(),kd.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ol(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return gl(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(r_(e,t))},superRefine(e,t){return this.check(i_(e,t))},overwrite(e){return this.check(hm(e))},optional(){return Ig(this)},exactOptional(){return Rg(this)},nullable(){return Bg(this)},nullish(){return Ig(Bg(this))},nonoptional(e){return Kg(this,e)},array(){return bg(this)},or(e){return wg([this,e])},and(e){return Og(this,e)},transform(e){return Xg(this,Pg(e))},default(e){return Hg(this,e)},prefault(e){return Wg(this,e)},catch(e){return Jg(this,e)},pipe(e){return Xg(this,e)},readonly(){return $g(this)},describe(e){let t=this.clone();return kp.add(t,{description:e}),t},meta(...e){if(e.length===0)return kp.get(this);let t=this.clone();return kp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Gl(this,`~standard`,{...Md(this),jsonSchema:{input:Bm(this,`input`),output:Bm(this,`output`)}})},set"~standard"(e){Wl(this,`~standard`,e)},parse:function e(t,n){return Dh(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Oh(this,t,n,{callee:e})},safeParse(e,t){return kh(this,e,t)},async safeParseAsync(e,t){return Ah(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Wl(this,`spa`,e)},validate(e,t){return Du(this,e,t)},validateAsync(e,t){return ku(this,e,t)},encode:function e(t,n){return jh(this,t,n,{callee:e})},decode:function e(t,n){return Mh(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Nh(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Ph(this,t,n,{callee:e})},safeEncode(e,t){return Fh(this,e,t)},safeDecode(e,t){return Ih(this,e,t)},async safeEncodeAsync(e,t){return Lh(this,e,t)},async safeDecodeAsync(e,t){return Rh(this,e,t)},toJSONSchema(e){return zm(this,{})(e)},get description(){return kp.get(this)?.description},get _def(){return this._zod.def}}),Hh=B(`_ZodString`,(e,t)=>{Nd.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nh(e,t,n,r)},Kl({format:e=>Qm(e).format??null,minLength:e=>Qm(e).minimum??null,maxLength:e=>Qm(e).maximum??null},{regex(...e){return this.check(lm(...e))},includes(...e){return this.check(fm(...e))},startsWith(...e){return this.check(pm(...e))},endsWith(...e){return this.check(mm(...e))},min(...e){return this.check(sm(...e))},max(...e){return this.check(om(...e))},length(...e){return this.check(cm(...e))},nonempty(...e){return this.check(sm(1,...e))},lowercase(e){return this.check(um(e))},uppercase(e){return this.check(dm(e))},trim(){return this.check(_m())},normalize(...e){return this.check(gm(...e))},toLowerCase(){return this.check(vm())},toUpperCase(){return this.check(ym())},slugify(){return this.check(bm())}})),Uh=B(`ZodString`,(e,t)=>{Nd.init(e,t),Hh.init(e,t)},{email(e){return this.check(Mp(Xh,e))},url(e){return this.check(Rp($h,e))},jwt(e){return this.check($p(mg,e))},emoji(e){return this.check(zp(eg,e))},guid(e){return this.check(Np(Zh,e))},uuid(e){return this.check(Pp(Qh,e))},uuidv4(e){return this.check(Fp(Qh,e))},uuidv6(e){return this.check(Ip(Qh,e))},uuidv7(e){return this.check(Lp(Qh,e))},nanoid(e){return this.check(Bp(tg,e))},cuid(e){return this.check(Vp(ng,e))},cuid2(e){return this.check(Hp(rg,e))},ulid(e){return this.check(Up(ig,e))},base64(e){return this.check(Xp(dg,e))},base64url(e){return this.check(Zp(fg,e))},xid(e){return this.check(Wp(ag,e))},ksuid(e){return this.check(Gp(og,e))},ipv4(e){return this.check(Kp(sg,e))},ipv6(e){return this.check(qp(cg,e))},cidrv4(e){return this.check(Jp(lg,e))},cidrv6(e){return this.check(Yp(ug,e))},e164(e){return this.check(Qp(pg,e))},datetime(e){return this.check(em(Kh,e))},date(e){return this.check(tm(qh,e))},time(e){return this.check(nm(Jh,e))},duration(e){return this.check(rm(Yh,e))}});function Wh(e){return jp(Uh,e)}var Gh=B(`ZodStringFormat`,(e,t)=>{Pd.init(e,t),Hh.init(e,t)}),Kh=B(`ZodISODateTime`,(e,t)=>{$d.init(e,t),Gh.init(e,t)}),qh=B(`ZodISODate`,(e,t)=>{ef.init(e,t),Gh.init(e,t)}),Jh=B(`ZodISOTime`,(e,t)=>{tf.init(e,t),Gh.init(e,t)}),Yh=B(`ZodISODuration`,(e,t)=>{nf.init(e,t),Gh.init(e,t)}),Xh=B(`ZodEmail`,(e,t)=>{Ld.init(e,t),Gh.init(e,t)}),Zh=B(`ZodGUID`,(e,t)=>{Fd.init(e,t),Gh.init(e,t)}),Qh=B(`ZodUUID`,(e,t)=>{Id.init(e,t),Gh.init(e,t)}),$h=B(`ZodURL`,(e,t)=>{Gd.init(e,t),Gh.init(e,t)}),eg=B(`ZodEmoji`,(e,t)=>{Kd.init(e,t),Gh.init(e,t)}),tg=B(`ZodNanoID`,(e,t)=>{qd.init(e,t),Gh.init(e,t)}),ng=B(`ZodCUID`,(e,t)=>{Jd.init(e,t),Gh.init(e,t)}),rg=B(`ZodCUID2`,(e,t)=>{Yd.init(e,t),Gh.init(e,t)}),ig=B(`ZodULID`,(e,t)=>{Xd.init(e,t),Gh.init(e,t)}),ag=B(`ZodXID`,(e,t)=>{Zd.init(e,t),Gh.init(e,t)}),og=B(`ZodKSUID`,(e,t)=>{Qd.init(e,t),Gh.init(e,t)}),sg=B(`ZodIPv4`,(e,t)=>{rf.init(e,t),Gh.init(e,t)}),cg=B(`ZodIPv6`,(e,t)=>{sf.init(e,t),Gh.init(e,t)}),lg=B(`ZodCIDRv4`,(e,t)=>{cf.init(e,t),Gh.init(e,t)}),ug=B(`ZodCIDRv6`,(e,t)=>{uf.init(e,t),Gh.init(e,t)}),dg=B(`ZodBase64`,(e,t)=>{pf.init(e,t),Gh.init(e,t)}),fg=B(`ZodBase64URL`,(e,t)=>{gf.init(e,t),Gh.init(e,t)}),pg=B(`ZodE164`,(e,t)=>{_f.init(e,t),Gh.init(e,t)}),mg=B(`ZodJWT`,(e,t)=>{yf.init(e,t),Gh.init(e,t)}),hg=B(`ZodUnknown`,(e,t)=>{bf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function gg(){return im(hg)}var _g=B(`ZodNever`,(e,t)=>{xf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rh(e,t,n,r)});function vg(e){return am(_g,e)}var yg=B(`ZodArray`,(e,t)=>{Bh(),Tf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ch(e,t,n,r),e.element=t.element},{min(e,t){return this.check(sm(e,t))},nonempty(e){return this.check(sm(1,e))},max(e,t){return this.check(om(e,t))},length(e,t){return this.check(cm(e,t))},unwrap(){return this.element}});function bg(e,t){return xm(yg,e,t)}var xg=B(`ZodObject`,(e,t)=>{Bh(),jf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uh(e,t,n,r),$l(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Ag(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ol(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ol(this._zod.def,{catchall:gg()}))},loose(){return this.clone(ol(this._zod.def,{catchall:gg()}))},strict(){return this.clone(ol(this._zod.def,{catchall:vg()}))},strip(){return this.clone(ol(this._zod.def,{catchall:void 0}))},extend(e){return Tl(this,e)},safeExtend(e){return Dl(this,e)},merge(e){return Ol(this,e)},pick(e){return Sl(this,e)},omit(e){return wl(this,e)},partial(...e){return kl(Fg,this,e[0])},exactPartial(...e){return kl(Lg,this,e[0],`exactPartial`)},required(...e){return Al(Gg,this,e[0])}});function Sg(e,t){return new xg({type:`object`,shape:e??{},..._l(t)})}var Cg=B(`ZodUnion`,(e,t)=>{Nf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dh(e,t,n,r),e.options=t.options});function wg(e,t){return new Cg({type:`union`,options:e,..._l(t)})}var Tg=B(`ZodDiscriminatedUnion`,(e,t)=>{Cg.init(e,t),Ff.init(e,t)});function Eg(e,t,n){return new Tg({type:`union`,options:t,discriminator:e,..._l(n)})}var Dg=B(`ZodIntersection`,(e,t)=>{If.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fh(e,t,n,r)});function Og(e,t){return new Dg({type:`intersection`,left:e,right:t})}var kg=B(`ZodEnum`,(e,t)=>{zf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ih(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new kg({...t,checks:[],..._l(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new kg({...t,checks:[],..._l(r),entries:i})}});function Ag(e,t){return new kg({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,..._l(t)})}var jg=B(`ZodLiteral`,(e,t)=>{Bf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ah(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Mg(e,t){return new jg({type:`literal`,values:Array.isArray(e)?e:[e],..._l(t)})}var Ng=B(`ZodTransform`,(e,t)=>{Bh(),Vf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sh(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new su(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Hl(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Hl(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Pg(e){return new Ng({type:`transform`,transform:e})}var Fg=B(`ZodOptional`,(e,t)=>{Uf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ig(e){return new Fg({type:`optional`,innerType:e})}var Lg=B(`ZodExactOptional`,(e,t)=>{Wf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Rg(e){return new Lg({type:`optional`,innerType:e})}var zg=B(`ZodNullable`,(e,t)=>{Gf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ph(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Bg(e){return new zg({type:`nullable`,innerType:e})}var Vg=B(`ZodDefault`,(e,t)=>{Kf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_h(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Hg(e,t){return new Vg({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():pl(t)}})}var Ug=B(`ZodPrefault`,(e,t)=>{Jf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Wg(e,t){return new Ug({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():pl(t)}})}var Gg=B(`ZodNonOptional`,(e,t)=>{Yf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Kg(e,t){return new Gg({type:`nonoptional`,innerType:e,..._l(t)})}var qg=B(`ZodCatch`,(e,t)=>{Qf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jg(e,t){return new qg({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:tu(t)})}var Yg=B(`ZodPipe`,(e,t)=>{$f.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bh(e,t,n,r),e.in=t.in,e.out=t.out});function Xg(e,t){return new Yg({type:`pipe`,in:e,out:t})}var Zg=B(`ZodPreprocess`,(e,t)=>{Yg.init(e,t),tp.init(e,t)}),Qg=B(`ZodReadonly`,(e,t)=>{np.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $g(e){return new Qg({type:`readonly`,innerType:e})}var e_=B(`ZodLazy`,(e,t)=>{ip.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ch(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function t_(e){return new e_({type:`lazy`,getter:e})}var n_=B(`ZodCustom`,(e,t)=>{ap.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oh(e,t,n,r)});function r_(e,t={}){return Sm(n_,e,t)}function i_(e,t){return Cm(e,t)}function a_(e,t){return new Zg({type:`pipe`,in:Pg(e),out:t})}function o_(e){return e.deletedAt===void 0}function s_(e){return e.deletedAt!==void 0}function c_(e){return e.published!==void 0&&e.published.revision!==e.revision}function l_(e){return e.filter(e=>e.deletedAt===void 0)}var u_=class extends Vc{code=`unknown_type`},d_=class{noun;#e=new Map;constructor(e){this.noun=e}register(e){if(this.#e.has(e.type))throw new Hc(`A ${this.noun} named "${e.type}" is already registered.`);return this.#e.set(e.type,e),this}has(e){return this.#e.has(e)}get(e){let t=this.#e.get(e);if(!t){let t=[...this.#e.keys()].sort().join(`, `);throw new u_(`There is no ${this.noun} named "${e}". Registered: ${t}.`)}return t}list(){return[...this.#e.values()]}};function f_(e){return/^(?:https?:\/\/|mailto:|tel:)\S+$/i.test(e)?!0:/^(?:\/(?!\/)|#)\S*$/.test(e)}var p_=Eg(`type`,[Sg({type:Mg(`bold`)}),Sg({type:Mg(`italic`)}),Sg({type:Mg(`link`),attrs:Sg({href:Wh().max(2e3).refine(f_,`A link must be a web address, an email address, a phone number or a page of this site.`)})})]),m_=Eg(`type`,[Sg({type:Mg(`text`),text:Wh().min(1),marks:bg(p_).optional()}),Sg({type:Mg(`hardBreak`)})]),h_=t_(()=>Eg(`type`,[Sg({type:Mg(`paragraph`),content:bg(m_).optional()}),Sg({type:Mg(`heading`),attrs:Sg({level:wg([Mg(2),Mg(3)])}),content:bg(m_).optional()}),Sg({type:Mg(`blockquote`),content:bg(h_)}),Sg({type:Mg(`bulletList`),content:bg(g_)}),Sg({type:Mg(`orderedList`),content:bg(g_)})])),g_=Sg({type:Mg(`listItem`),content:bg(h_)}),__=12,v_=e=>{let t=typeof e==`object`&&e?e.content:void 0;return Array.isArray(t)?1+Math.max(0,...t.map(v_)):1};function y_(e){return{type:`doc`,content:(typeof e==`string`?e.split(/\n+/):e).map(e=>e.trim()).filter(e=>e!==``).map(e=>({type:`paragraph`,content:[{type:`text`,text:e}]}))}}var b_=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`);a_(e=>b_(e)?y_(e):e,Sg({type:Mg(`doc`),content:bg(h_)}).refine(e=>v_(e)<=__,`Lists and quotes are nested too deeply.`));var x_=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function S_(e){return e.length<=200&&x_.test(e)}function C_(e){let t=e.split(`/`);return e.length<=200&&t.length<=5&&t.every(e=>x_.test(e))}var w_=`...slug`;function T_(e){return[e.urlPattern,...Object.values(e.localizedUrlPatterns??{})].some(e=>e?.includes(`[${w_}]`)===!0)}var E_=`$slug`,D_=[`resend`],O_=(e,t,n)=>[...n].every((n,r)=>e[t+r]===n.charCodeAt(0)),k_=(e,t)=>(e[t]??0)<<8|(e[t+1]??0),A_=(e,t)=>k_(e,t)*65536+k_(e,t+2),j_=(e,t)=>(e[t]??0)|(e[t+1]??0)<<8,M_=(e,t)=>j_(e,t)|(e[t+2]??0)<<16;function N_(e){return e.length<24||![137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)||!O_(e,12,`IHDR`)?null:{contentType:`image/png`,extension:`png`,width:A_(e,16),height:A_(e,20)}}function P_(e){if(e[0]!==255||e[1]!==216)return null;let t=2;for(;t+9<e.length;){if(e[t]!==255)return null;let n=e[t+1]??0;if(n===255)t+=1;else if(n===1||n>=208&&n<=215)t+=2;else{if(n>=192&&n<=207&&n!==196&&n!==200&&n!==204)return{contentType:`image/jpeg`,extension:`jpg`,width:k_(e,t+7),height:k_(e,t+5)};if(n===218||n===217)return null;t+=2+k_(e,t+2)}}return null}function F_(e){if(e.length<30||!O_(e,0,`RIFF`)||!O_(e,8,`WEBP`))return null;let t=(e,t)=>({contentType:`image/webp`,extension:`webp`,width:e,height:t});if(O_(e,12,`VP8X`))return t(M_(e,24)+1,M_(e,27)+1);if(O_(e,12,`VP8 `))return t(j_(e,26)&16383,j_(e,28)&16383);if(O_(e,12,`VP8L`)&&e[20]===47){let n=j_(e,21)+j_(e,23)*65536;return t((n&16383)+1,(Math.floor(n/16384)&16383)+1)}return null}function I_(e){let t=N_(e)??P_(e)??F_(e);return t&&t.width>0&&t.height>0?t:null}var L_=2560,R_=(e,t,n)=>t===n?e.urlPattern:e.localizedUrlPatterns?.[t];function z_(e,t,n){let r=R_(e,t.locale,n);if(r===void 0)return null;let i=!0,a=r.replace(/\[([^\]]+)\]/g,(n,r)=>{if(r===`...slug`)return C_(t.slug)||(i=!1),t.slug===`index`?``:t.slug;let a=r===`slug`?void 0:l_(e.fields).find(e=>e.key===r),o=r===`slug`?t.slug:a?t.data[a.id]:void 0;return typeof o!=`string`||!/^[A-Za-z0-9][A-Za-z0-9._~-]*$/.test(o)?(i=!1,``):o});return i?`${a.replace(/\/{2,}/g,`/`).replace(/\/+$/,``)}/`:null}function B_(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=B_(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function V_(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=B_(e))&&(r&&(r+=` `),r+=t);return r}var H_=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,U_=V_,W_=(e,t)=>n=>{if(t?.variants==null)return U_(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=H_(t)||H_(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return U_(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},G_={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`},K_=W_(``,{variants:{padding:{0:`p-0`,1:`p-1`,2:`p-2`,3:`p-3`,4:`p-4`,5:`p-5`,6:`p-6`,8:`p-8`,10:`p-10`,12:`p-12`},paddingX:{0:`px-0`,1:`px-1`,2:`px-2`,3:`px-3`,4:`px-4`,5:`px-5`,6:`px-6`,8:`px-8`,10:`px-10`,12:`px-12`},paddingY:{0:`py-0`,1:`py-1`,2:`py-2`,3:`py-3`,4:`py-4`,5:`py-5`,6:`py-6`,8:`py-8`,10:`py-10`,12:`py-12`},surface:{none:``,page:`bg-background`,subtle:`bg-background-secondary`,card:`bg-card`},border:{true:`border border-border`},radius:{none:``,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`},shadow:{none:``,sm:`shadow-sm`,md:`shadow-md`},maxWidth:{none:``,xs:`max-w-sm`,sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},grow:{true:`min-w-0 flex-1`}},defaultVariants:{surface:`none`,radius:`none`,shadow:`none`,maxWidth:`none`}});function q_({as:e=`div`,label:t,children:n,...r}){return(0,S.jsx)(e,{className:K_(r),"aria-label":t,children:n})}var J_=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Y_(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:J_(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var X_=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Z_=e=>{let t=X_(e);return t.charAt(0).toUpperCase()+t.slice(1)},Q_=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$_={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`};function ev(e){return e!=null}function tv(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$_.width,a=e.size??e.height??$_.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Q_(...c):Q_(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$_[`stroke-width`])*Number(e.size??e.width??$_.width)/Number(t.size??t.width??$_.width):t.strokeWidth??$_[`stroke-width`];return[`svg`,{...Object.entries($_).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ev(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ev(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ev(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function nv(e,t={}){return tv(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var rv=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},iv=(0,x.createContext)({}),av=()=>(0,x.useContext)(iv),ov=(0,x.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=av()??{},y=!!c||rv(d),[b,S,C=[]]=nv(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Q_(v,s),hasA11yProp:y,attributes:d});return(0,x.createElement)(b,{ref:f,...S},[...C.map(([e,t])=>(0,x.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function V(e,t=[],n=[]){let r=typeof e==`string`?Y_(e,t,n):e,i=(0,x.forwardRef)(({className:e,...t},n)=>(0,x.createElement)(ov,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Z_(r.name)),i}var sv={name:`archive`,size:24,node:[[`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`}]]};sv.node;var cv=V(sv),lv={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};lv.node;var uv=V(lv),dv={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};dv.node;var fv=V(dv),pv={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};pv.node;var mv=V(pv),hv={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};hv.node;var gv=V(hv),_v={name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]};_v.node;var vv=V(_v),yv={name:`blocks`,size:24,node:[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]};yv.node;var bv=V(yv),xv={name:`building-complex`,size:24,node:[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]],aliases:[`building-2`]};xv.node;var Sv=V(xv),Cv={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};Cv.node;var wv=V(Cv),Tv={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Tv.node;var Ev=V(Tv),Dv={name:`chart-no-axes-column`,size:24,node:[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]],aliases:[`bar-chart-2`]};Dv.node;var Ov=V(Dv),kv={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};kv.node;var Av=V(kv),jv={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};jv.node;var Mv=V(jv),Nv={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Nv.node;var Pv=V(Nv),Fv={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Fv.node;var Iv=V(Fv),Lv={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Lv.node;var Rv=V(Lv),zv={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};zv.node;var Bv=V(zv),Vv={name:`circle-exclamation-point`,size:24,node:[[`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`}]],aliases:[`alert-circle`,`circle-alert`]};Vv.node;var Hv=V(Vv),Uv={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Uv.node;var Wv=V(Uv),Gv={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};Gv.node;var Kv=V(Gv),qv={name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]};qv.node;var Jv=V(qv),Yv={name:`copy`,size:24,node:[[`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`}]]};Yv.node;var Xv=V(Yv),Zv={name:`download`,size:24,node:[[`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`}]]};Zv.node;var Qv=V(Zv),$v={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};$v.node;var ey=V($v),ty={name:`eye-off`,size:24,node:[[`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`}]]};ty.node;var ny=V(ty),ry={name:`eye`,size:24,node:[[`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`}]]};ry.node;var iy=V(ry),ay={name:`file-question-mark`,size:24,node:[[`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:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`file-question`]};ay.node;var oy=V(ay),sy={name:`file-text`,size:24,node:[[`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`}]]};sy.node;var cy=V(sy),ly={name:`file-up`,size:24,node:[[`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:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]};ly.node;var uy=V(ly),dy={name:`gallery-horizontal`,size:24,node:[[`path`,{d:`M2 3v18`,key:`pzttux`}],[`rect`,{width:`12`,height:`18`,x:`6`,y:`3`,rx:`2`,key:`btr8bg`}],[`path`,{d:`M22 3v18`,key:`6jf3v`}]]};dy.node;var fy=V(dy),py={name:`grip-vertical`,size:24,node:[[`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`}]]};py.node;var my=V(py),hy={name:`hand-coins`,size:24,node:[[`path`,{d:`M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17`,key:`geh8rc`}],[`path`,{d:`m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`1fto5m`}],[`path`,{d:`m2 16 6 6`,key:`1pfhp9`}],[`circle`,{cx:`16`,cy:`9`,r:`2.9`,key:`1n0dlu`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]};hy.node;var gy=V(hy),_y={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};_y.node;var vy=V(_y),yy={name:`house`,size:24,node:[[`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`}]],aliases:[`home`]};yy.node;var by=V(yy),xy={name:`image-off`,size:24,node:[[`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`}]]};xy.node;var Sy=V(xy),Cy={name:`image`,size:24,node:[[`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`}]]};Cy.node;var wy=V(Cy),Ty={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};Ty.node;var Ey=V(Ty),Dy={name:`inbox`,size:24,node:[[`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`}]]};Dy.node;var Oy=V(Dy),ky={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ky.node;var Ay=V(ky),jy={name:`key-round`,size:24,node:[[`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`}]]};jy.node;var My=V(jy),Ny={name:`layout-grid`,size:24,node:[[`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`}]]};Ny.node;var Py=V(Ny),Fy={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};Fy.node;var Iy=V(Fy),Ly={name:`layout-template`,size:24,node:[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]};Ly.node;var Ry=V(Ly),zy={name:`letter-h`,size:24,node:[[`path`,{d:`M18 20V4`,key:`o2hl4u`}],[`path`,{d:`M6 12H18`,key:`1fx1vx`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}]],aliases:[`heading`]};zy.node;var By=V(zy),Vy={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Vy.node;var Hy=V(Vy),Uy={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Uy.node;var Wy=V(Uy),Gy={name:`list-plus`,size:24,node:[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]};Gy.node;var Ky=V(Gy),qy={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};qy.node;var Jy=V(qy),Yy={name:`list`,size:24,node:[[`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`}]]};Yy.node;var Xy=V(Yy),Zy={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Zy.node;var Qy=V(Zy),$y={name:`lock`,size:24,node:[[`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`}]]};$y.node;var eb=V($y),tb={name:`log-out`,size:24,node:[[`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`}]]};tb.node;var nb=V(tb),rb={name:`mail`,size:24,node:[[`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`}]]};rb.node;var ib=V(rb),ab={name:`map-pin`,size:24,node:[[`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`}]]};ab.node;var ob=V(ab),sb={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};sb.node;var cb=V(sb),lb={name:`message-circle`,size:24,node:[[`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`}]]};lb.node;var ub=V(lb),db={name:`message-square-quote`,size:24,node:[[`path`,{d:`M14 14a2 2 0 0 0 2-2V8h-2`,key:`1r06pg`}],[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M8 14a2 2 0 0 0 2-2V8H8`,key:`1jzu5j`}]]};db.node;var fb=V(db),pb={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};pb.node;var mb=V(pb),hb={name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]};hb.node;var gb=V(hb),_b={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};_b.node;var vb=V(_b),yb={name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};yb.node;var bb=V(yb),xb={name:`panels-top-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]],aliases:[`layout`]};xb.node;var Sb=V(xb),Cb={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`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`}]],aliases:[`edit-3`]};Cb.node;var wb=V(Cb),Tb={name:`pencil`,size:24,node:[[`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`}]]};Tb.node;var Eb=V(Tb),Db={name:`phone`,size:24,node:[[`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`}]]};Db.node;var Ob=V(Db),kb={name:`play`,size:24,node:[[`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`}]]};kb.node;var Ab=V(kb),jb={name:`plug-zap`,size:24,node:[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]],aliases:[`plug-zap-2`]};jb.node;var Mb=V(jb),Nb={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Nb.node;var Pb=V(Nb),Fb={name:`puzzle`,size:24,node:[[`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`}]]};Fb.node;var Ib=V(Fb),Lb={name:`quote`,size:24,node:[[`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`}]]};Lb.node;var Rb=V(Lb),zb={name:`rotate-ccw-clock`,size:24,node:[[`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`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};zb.node;var Bb=V(zb),Vb={name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]};Vb.node;var Hb=V(Vb),Ub={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};Ub.node;var Wb=V(Ub),Gb={name:`search-x`,size:24,node:[[`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`}]]};Gb.node;var Kb=V(Gb),qb={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};qb.node;var Jb=V(qb),Yb={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};Yb.node;var Xb=V(Yb),Zb={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};Zb.node;var Qb=V(Zb),$b={name:`settings`,size:24,node:[[`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`}]]};$b.node;var ex=V($b),tx={name:`shapes`,size:24,node:[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]};tx.node;var nx=V(tx),rx={name:`shield-check`,size:24,node:[[`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`}]]};rx.node;var ix=V(rx),ax={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};ax.node;var ox=V(ax),sx={name:`star`,size:24,node:[[`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`}]]};sx.node;var cx=V(sx),lx={name:`table`,size:24,node:[[`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`}]]};lx.node;var ux=V(lx),dx={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};dx.node;var fx=V(dx),px={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};px.node;var mx=V(px),hx={name:`trash`,size:24,node:[[`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`}]],aliases:[`trash-2`]};hx.node;var gx=V(hx),_x={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};_x.node;var vx=V(_x),yx={name:`upload`,size:24,node:[[`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`}]]};yx.node;var bx=V(yx),xx={name:`user-plus`,size:24,node:[[`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`}]]};xx.node;var Sx=V(xx),Cx={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};Cx.node;var wx=V(Cx),Tx={name:`user-x`,size:24,node:[[`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:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]};Tx.node;var Ex=V(Tx),Dx={name:`users`,size:24,node:[[`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`}]]};Dx.node;var Ox=V(Dx),kx={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};kx.node;var Ax=V(kx);function jx(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Mx=typeof document<`u`?x.useLayoutEffect:()=>{},Nx={prefix:String(Math.round(Math.random()*1e10)),current:0},Px=x.createContext(Nx),Fx=x.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var Ix=new WeakMap;function Lx(e=!1){let t=(0,x.useContext)(Px),n=(0,x.useRef)(null);if(n.current===null&&!e){let e=x.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=Ix.get(e);n==null?Ix.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,Ix.delete(e))}n.current=++t.current}return n.current}function Rx(e){let t=(0,x.useContext)(Px),n=Lx(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function zx(e){let t=x.useId(),[n]=(0,x.useState)(Wx()),r=n?`react-aria`:`react-aria${Nx.prefix}`;return e||`${r}-${t}`}var Bx=typeof x.useId==`function`?zx:Rx;function Vx(){return!1}function Hx(){return!0}function Ux(e){return()=>{}}function Wx(){return typeof x.useSyncExternalStore==`function`?x.useSyncExternalStore(Ux,Vx,Hx):(0,x.useContext)(Fx)}function Gx(e){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(t),i=(0,x.useRef)(null),a=(0,x.useRef)(()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:r.current===e.value?a.current():n(e.value)});return Mx(()=>{r.current=t,i.current&&a.current()}),[t,(0,x.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var Kx=!!(typeof window<`u`&&window.document&&window.document.createElement),qx=new Map,Jx;typeof FinalizationRegistry<`u`&&(Jx=new FinalizationRegistry(e=>{qx.delete(e)}));var Yx=new WeakMap;function Xx(e){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(null),i=Bx(t),a=(0,x.useRef)(null),o=Yx.get(a);if(Jx&&o!==i&&(o!=null&&Jx.unregister(a),Jx.register(a,i,a),Yx.set(a,i)),Kx){let e=qx.get(i);e&&!e.includes(r)?e.push(r):qx.set(i,[r])}return Mx(()=>{let e=i;return()=>{Jx&&(Jx.unregister(a),Yx.delete(a)),qx.delete(e)}},[i]),(0,x.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function Zx(e,t){if(e===t)return e;let n=qx.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=qx.get(t);return r?(r.forEach(t=>t.current=e),e):t}function Qx(e=[]){let t=Xx(),[n,r]=Gx(t),i=(0,x.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Mx(i,[t,i,...e]),n}function $x(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=eS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():eS(e[n],null)})}}}function eS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function H(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=jx(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=V_(n,i):e===`id`&&n&&i?t.id=Zx(n,i):e===`ref`&&n&&i?t.ref=$x(n,i):t[e]=i===void 0?n:i}}return t}function tS(e){let t=(0,x.useRef)(null),n=(0,x.useRef)(void 0),r=(0,x.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,x.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var nS=Symbol(`default`);function rS({values:e,children:t}){for(let[n,r]of e)t=x.createElement(n.Provider,{value:r},t);return t}function iS(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,x.useMemo)(()=>{let e,l,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,l=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:l||o?{...o,...l}:void 0,children:u??a,"data-rac":``,render:c?e=>c(e,s):void 0}},[t,n,r,i,a,o,s,c])}function aS(e,t){let n=(0,x.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||nS;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function oS(e,t,n){let{ref:r,...i}=aS(n,e.slot)||{},a=tS((0,x.useMemo)(()=>$x(t,r),[t,r])),o=H(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function sS(e=!0){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(!1),i=(0,x.useCallback)(e=>{r.current=!0,n(!!e)},[]);return Mx(()=>{r.current||n(!1)},[]),[i,t]}function cS(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function lS(e,t,n){let{render:r,...i}=t,a=(0,x.useRef)(null),o=(0,x.useMemo)(()=>$x(n,a),[n,a]);Mx(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):x.createElement(e,s)}var uS={},U=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=uS[t];return n||(n=(0,x.forwardRef)(lS.bind(null,t)),uS[t]=n),n}}),dS=`react-aria-clear-focus`,fS=`react-aria-focus`,pS=e=>gS(e)?e.document:_S(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),mS=e=>pS(e)?.defaultView??(typeof window<`u`?window:void 0);function hS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function gS(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function _S(e){return hS(e)&&e.nodeType===9}function vS(e){return hS(e)&&e.nodeType===11&&`host`in e}function yS(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function bS(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var xS=!1;function SS(){return xS}function W(e,t){if(!SS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:vS(n)?n.host:n.parentNode}return!1}var CS=(e=document)=>{if(!SS())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function G(e){if(SS()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function wS(e,t){if(t===null)return[];t??=mS(e);let n=[t];if(!SS()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;vS(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function TS(e){if(!e)return!1;let t=e.getRootNode(),n=mS(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function ES(e){let t=kS(pS(e));t!==e&&(t&&DS(t,e),e&&OS(e,t))}function DS(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function OS(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function kS(e){let t=CS(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}function AS(e){e.focus({preventScroll:!0})}var jS=typeof Element<`u`&&`checkVisibility`in Element.prototype;function MS(e){let t=mS(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=mS(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function NS(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function PS(e,t){return jS?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&MS(e)&&NS(e,t)&&(!e.parentElement||PS(e.parentElement,e))}var FS=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],IS=FS.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;FS.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var LS=FS.join(`:not([hidden]):not([tabindex="-1"]),`);function RS(e,t){return e.matches(IS)&&!BS(e)&&(t?.skipVisibilityCheck||PS(e))}function zS(e){return e.matches(LS)&&PS(e)&&!BS(e)}function BS(e){let t=e;for(;t!=null;){if(t instanceof mS(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function VS(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function HS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function US(e){let t=(0,x.useRef)({isFocused:!1,observer:null});return Mx(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,x.useCallback)(n=>{let r=G(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=VS(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===CS()?null:CS();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var WS=!1;function GS(e){for(;e&&!RS(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=CS(mS(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&vS(n)?n:mS(e),i=t=>t===e||hS(t)&&W(e,t),a=e=>e===t||t!=null&&hS(e)&&W(t,e);WS=!0;let o=!1,s=e=>{(a(G(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(G(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,AS(t),d()))},l=e=>{(i(G(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(G(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,AS(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),WS=!1,o=!1},f=requestAnimationFrame(d);return d}function KS(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function qS(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function JS(e){let t=null;return()=>(t??=e(),t)}var YS=JS(function(){return qS(/^Mac/i)}),XS=JS(function(){return qS(/^iPhone/i)}),ZS=JS(function(){return qS(/^iPad/i)||YS()&&navigator.maxTouchPoints>1}),QS=JS(function(){return XS()||ZS()}),$S=JS(function(){return YS()||QS()}),eC=JS(function(){return KS(/AppleWebKit/i)&&(QS()||!tC())}),tC=JS(function(){return KS(/Chrome|CriOS|CrMo/i)}),nC=JS(function(){return KS(/Android/i)});function rC(e){return e.pointerType===``&&e.isTrusted?!0:nC()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function iC(e){return!nC()&&e.width===0&&e.height===0||nC()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var aC=(0,x.createContext)({isNative:!0,open:dC,useHref:e=>e});function oC(e){let{children:t,navigate:n,useHref:r}=e,i=(0,x.useMemo)(()=>({isNative:!1,open:(e,t,r,i)=>{uC(e,e=>{cC(e,t)?n(r,i):lC(e,t)})},useHref:r||(e=>e)}),[n,r]);return x.createElement(aC.Provider,{value:i},t)}function sC(){return(0,x.useContext)(aC)}function cC(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function lC(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=eC()&&YS()&&!ZS()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});lC.isOpening=n,AS(e),e.dispatchEvent(s),lC.isOpening=!1}lC.isOpening=!1;function uC(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function dC(e,t){uC(e,e=>lC(e,t))}function fC(e){let t=sC().useHref(e.href??``);return{"data-href":e.href?t:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function pC(e){let t=sC().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}function mC(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&cC(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var hC=null,gC=new Set,_C=new Map,vC=!1,yC=!1,bC={Tab:!0,Escape:!0};function xC(e,t){for(let n of gC)n(e,t)}function SC(e){return!(e.metaKey||!YS()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function CC(e){vC=!0,!lC.isOpening&&SC(e)&&(hC=`keyboard`,xC(`keyboard`,e))}function wC(e){hC=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(vC=!0,xC(`pointer`,e))}function TC(e){!lC.isOpening&&rC(e)&&(vC=!0,hC=`virtual`)}function EC(e){if(WS)return;let t=G(e),n=mS(t),r=pS(t);t===n?yC=!0:t!==r&&e.isTrusted&&(!vC&&!yC&&(hC=`virtual`,xC(`virtual`,e)),vC=!1,yC=!1)}function DC(){WS||(vC=!1,yC=!0)}function OC(e){let t=CS(pS(G(e)));queueMicrotask(()=>{CS(pS(G(e)))!==t&&PC(`keyboard`)})}function kC(e){if(typeof window>`u`||typeof document>`u`)return;let t=mS(e),n=pS(e);if(_C.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){vC=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,CC,!0),n.addEventListener(`keyup`,CC,!0),n.addEventListener(`click`,TC,!0),n.addEventListener(`invalid`,OC,!0),t.addEventListener(`focus`,EC,!0),t.addEventListener(`blur`,DC,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,wC,!0),n.addEventListener(`pointermove`,wC,!0),n.addEventListener(`pointerup`,wC,!0)),t.addEventListener(`beforeunload`,()=>{AC(e)},{once:!0}),_C.set(t,{focus:r})}var AC=(e,t)=>{let n=mS(e),r=pS(e);t&&r.removeEventListener(`DOMContentLoaded`,t),_C.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:_C.get(n).focus}),r.removeEventListener(`keydown`,CC,!0),r.removeEventListener(`keyup`,CC,!0),r.removeEventListener(`click`,TC,!0),r.removeEventListener(`invalid`,OC,!0),n.removeEventListener(`focus`,EC,!0),n.removeEventListener(`blur`,DC,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,wC,!0),r.removeEventListener(`pointermove`,wC,!0),r.removeEventListener(`pointerup`,wC,!0)),_C.delete(n))};function jC(e){let t=pS(e),n;return t.readyState===`loading`?(n=()=>{kC(e)},t.addEventListener(`DOMContentLoaded`,n)):kC(e),()=>AC(e,n)}typeof document<`u`&&jC();function MC(){return hC!==`pointer`}function NC(){return hC}function PC(e){hC=e,xC(e,null)}function FC(){kC();let[e,t]=(0,x.useState)(hC);return(0,x.useEffect)(()=>{let e=()=>{t(hC)};return gC.add(e),()=>{gC.delete(e)}},[]),Wx()?null:e}var IC=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function LC(e,t,n){let r=n?G(n):void 0,i=pS(r),a=mS(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=CS(i);return e=e||u instanceof o&&!IC.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!bC[n.key])}function RC(e,t,n){kC(),(0,x.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{LC(!!n?.isTextInput,t,r)&&e(MC())};return gC.add(t),()=>{gC.delete(t)}},t)}function zC(e,t){let n=mS(t),r=pS(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var BC=100,VC=600,HC={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},UC=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function WC(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function GC(e){HC.resizeTimeStamp<=e.timeStamp+50&&(HC.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(HC.resizeTimeout),HC.resizeTimeout=window.setTimeout(KC,150))}function KC(){let e=zC(`viewport`);if(nC()&&e?.includes(`overlays-content`))return;let t=performance.now(),n=WC(),r=t-HC.startTimeStamp,i=HC.screenHeight-n.height,a=HC.screenAngle-n.angle;Math.abs(a)%180&&HC.screenWidth-n.height<BC&&(HC.screenWidth=n.width,HC.screenHeight=n.height,HC.screenAngle=n.angle,i=0),r>VC&&(window.clearTimeout(HC.screenTimeout),HC.screenTimeout=window.setTimeout(()=>{let e=ZC(document.hasFocus()?CS():null),t=WC();Math.abs(HC.screenAngle-t.angle)%180||HC.isOpen&&e||(HC.screenWidth=t.width,HC.screenHeight=t.height,HC.screenAngle=t.angle,HC.isOpen=!1)},VC)),r<=VC&&i>=BC&&(HC.endTimeStamp=t),HC.isOpen=i>=BC}function qC(){let e=WC(),t=HC.screenAngle-e.angle;if(Math.abs(t)%180&&!HC.isOpen){let e=HC.screenWidth;HC.screenWidth=HC.screenHeight,HC.screenHeight=e}HC.isOpen||(HC.screenAngle=e.angle)}function JC(e){let t=ZC(G(e)),n=performance.now(),r=WC(),i=HC.screenHeight-r.height;i<BC&&t&&(HC.screenWidth=r.width,HC.screenHeight=r.height,HC.screenAngle=r.angle,HC.startTimeStamp=n),t&&window.clearTimeout(HC.screenTimeout),i>=BC&&t&&(HC.endTimeStamp=n)}function YC(){let e=WC();yS(window.visualViewport,`resize`,eC()?KC:GC),yS(window.screen.orientation,`change`,qC),yS(window,`focus`,JC,{capture:!0,passive:!0}),HC.screenWidth=e.width,HC.screenHeight=e.height,HC.screenAngle=e.angle}typeof document<`u`&&(document.readyState===`loading`?yS(document,`DOMContentLoaded`,YC):YC());function XC(){let e=zC(`viewport`);return nC()&&e?.includes(`overlays-content`)?!1:HC.isOpen?!0:HC.startTimeStamp?HC.endTimeStamp>=HC.startTimeStamp?!0:performance.now()-HC.startTimeStamp<=VC?HC.endTimeStamp>0||window.navigator.maxTouchPoints>0:!1:window.navigator.maxTouchPoints>0}function ZC(e){if(!(e instanceof Element)||!RS(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!UC.has(e.type);return t||n||r}function QC(e){return YS()?e.metaKey:e.ctrlKey}function $C(){return HC.isOpen}var ew=x.useInsertionEffect??Mx;function tw(e){let t=(0,x.useRef)(null);return ew(()=>{t.current=e},[e]),(0,x.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function nw(e,t,n,r){let i=tw(n),a=n==null;(0,x.useEffect)(()=>{if(!(a||e.current==null))return yS(e.current,t,i,r)},[e,t,r,a])}function rw(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Xx(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}var iw=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),aw=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function ow(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return iw.has(t.script)}let t=e.split(`-`)[0];return aw.has(t)}var sw=Symbol.for(`react-aria.i18n.locale`);function cw(){let e=typeof window<`u`&&window[sw]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:ow(e)?`rtl`:`ltr`}}var lw=cw(),uw=new Set;function dw(){lw=cw();for(let e of uw)e(lw)}function fw(){let e=Wx(),[t,n]=(0,x.useState)(lw);return(0,x.useEffect)(()=>(uw.size===0&&window.addEventListener(`languagechange`,dw),uw.add(n),()=>{uw.delete(n),uw.size===0&&window.removeEventListener(`languagechange`,dw)}),[]),e?{locale:typeof window<`u`&&window[sw]||`en-US`,direction:`ltr`}:t}var pw=x.createContext(null);function mw(){let e=fw();return(0,x.useContext)(pw)||e}var hw=Symbol.for(`react-aria.i18n.locale`),gw=Symbol.for(`react-aria.i18n.strings`),_w=void 0,vw=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=yw(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[hw];if(_w===void 0){let t=window[gw];if(!t)return null;_w={};for(let r in t)_w[r]=new e({[n]:t[r]},n)}let r=_w?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function yw(e,t,n=`en-US`){if(t[e])return t[e];let r=bw(e),i=xw(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function bw(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function xw(e){if(Intl.Locale)return new Intl.Locale(e).script}var Sw=new Map,Cw=new Map,ww=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=Sw.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Sw.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=Cw.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Cw.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},Tw=new WeakMap;function Ew(e){let t=Tw.get(e);return t||(t=new vw(e),Tw.set(e,t)),t}function Dw(e,t){return t&&vw.getGlobalDictionaryForPackage(t)||Ew(e)}function Ow(e,t){let{locale:n}=mw(),r=Dw(e,t);return(0,x.useMemo)(()=>new ww(n,r),[n,r])}var kw=x.useInsertionEffect??x.useLayoutEffect;function Aw(e,t,n){let[r,i]=(0,x.useState)(e||t),a=(0,x.useRef)(r),o=(0,x.useRef)(e!==void 0),s=e!==void 0;(0,x.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;kw(()=>{a.current=c});let[,l]=(0,x.useReducer)(()=>({}),{});return[c,(0,x.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}var jw=(0,x.createContext)(null),Mw=(0,x.createContext)(null),Nw=class{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}},Pw=class extends Nw{filter(e,t,n){let[r,i]=Bw(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},Fw=class extends Nw{static{this.type=`header`}},Iw=class extends Nw{static{this.type=`loader`}},Lw=class extends Pw{static{this.type=`item`}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Rw=class extends Pw{static{this.type=`section`}filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},zw=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=Bw(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Bw(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey==null?null:e.getItem(o.nextKey)}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e==null?a=null:(a=t.getItem(e),a.nextKey=null)}return[i?.key??null,a?.key??null]}var Vw=class{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}},Hw=class e extends Vw{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.parentNode.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},Uw=class extends Vw{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Hw(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof Hw&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Hw?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};function Ww(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,x.useMemo)(()=>void 0,[t]),s=(0,x.useMemo)(()=>new WeakMap,[...a,o]);return(0,x.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=Gw(a)?a:null,o=n?s.get(n):null;if(!o){o=t(a);let c=o.props.id??a?.key??a?.id;r!=null&&o.props.id==null&&c!=null&&(c=r+`:`+c);let l=c??e.length;o=(0,x.cloneElement)(o,i?{key:l,id:c,value:a}:{key:l}),n&&s.set(n,o)}e.push(o)}return e}if(typeof t!=`function`)return t},[t,n,s,r,i])}function Gw(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Kw=new Map,qw=new Set;function Jw(e){return`propertyName`in e}function Yw(e){let t=G(e);if(!Jw(e)||!t)return;let n=Kw.get(t);n||(n=new Set,Kw.set(t,n),t.addEventListener(`transitioncancel`,Xw,{once:!0})),n.add(e.propertyName)}function Xw(e){let t=G(e);if(!Jw(e)||!t)return;let n=Kw.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener(`transitioncancel`,Xw),Kw.delete(t)),Kw.size===0))for(let e of qw)e(!0),qw.delete(e)}function Zw(){yS(document,`transitionrun`,Yw),yS(document,`transitionend`,Xw)}function Qw(){for(let[e]of Kw)`isConnected`in e&&!e.isConnected&&Kw.delete(e)}typeof document<`u`&&(document.readyState===`loading`?yS(document,`DOMContentLoaded`,Zw):Zw());function $w(e){let t=window.requestAnimationFrame(()=>{if(Qw(),Kw.size===0)return e(!1);qw.add(e)});return()=>{window.cancelAnimationFrame(t),qw.delete(e)}}function eT(e){if(!e.isConnected)return;let t=pS(e);if(NC()===`virtual`){let n=CS(t);$w(()=>{let r=CS(t);(r===n||r===t.body)&&e.isConnected&&AS(e)})}else AS(e)}function tT(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,x.useCallback)(e=>{if(G(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=US(a),s=(0,x.useCallback)(e=>{let t=G(e),r=pS(t),a=r?CS(r):CS();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function nT(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var rT=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),iT=[`Alt`,`Control`,`Meta`,`Shift`];function aT(e){let t=new Set;return e.alt&&t.add(`Alt`),e.shift&&t.add(`Shift`),e.ctrl&&t.add(`Control`),e.meta&&t.add(`Meta`),e.mod&&t.add(YS()?`Meta`:`Control`),t}function oT(e){let t=new Set;return e.altKey&&t.add(`Alt`),e.ctrlKey&&t.add(`Control`),e.metaKey&&t.add(`Meta`),e.shiftKey&&t.add(`Shift`),t}function sT(e){return iT.filter(t=>e.has(t))}function cT(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return rT.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function lT(e){return e.toLowerCase()}var uT={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function dT(e){let t=lT(e);return uT[t]??t}function fT(e){let t=sT(aT(e)),n=dT(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function pT(e){let t=sT(oT(e)),n=lT(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function mT(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=cT(n);t.set(fT(e),r)}return e=>{let n=pT(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function hT(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=mT(t),s=nT(e=>{W(e.currentTarget,G(e))?e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r?e.continuePropagation():o(e):e.continuePropagation()}),c=nT(e=>{W(e.currentTarget,G(e))&&(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing),e.continuePropagation()});i=e.onKeyDown?jx(e.onKeyDown,s):s,a=e.onKeyUp?jx(e.onKeyUp,c):c}else i=nT(e.onKeyDown),a=nT(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function gT(e,t){Mx(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var _T=x.createContext(null);function vT(e){let t=(0,x.useContext)(_T)||{};gT(t,e);let{ref:n,...r}=t;return r}var yT=x.forwardRef(function(e,t){let{children:n,...r}=e,i=tS(t),a={...r,ref:i};return x.createElement(_T.Provider,{value:a},n)});function bT(e,t){let{focusProps:n}=tT(e),{keyboardProps:r}=hT(e),i=H(n,r),a=vT(t),o=e.isDisabled?{}:a,s=(0,x.useRef)(e.autoFocus);(0,x.useEffect)(()=>{s.current&&t.current&&eT(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:H({...i,tabIndex:c},o)}}typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var xT=(0,x.createContext)(!1);function ST(e){if((0,x.useContext)(xT))return x.createElement(x.Fragment,null,e.children);let t=x.createElement(xT.Provider,{value:!0},e.children);return x.createElement(`template`,null,t)}function CT(e){let t=(t,n)=>(0,x.useContext)(xT)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,x.forwardRef)(t)}function wT(){return(0,x.useContext)(xT)}var TT=o((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),ET=o(((e,t)=>{t.exports=TT()})),DT=c(g(),1),OT=ET(),kT=(0,x.createContext)(!1),AT=(0,x.createContext)(null);function jT(e){if((0,x.useContext)(AT))return e.content;let{collection:t,document:n}=FT(e.createCollection);return x.createElement(x.Fragment,null,x.createElement(ST,null,x.createElement(AT.Provider,{value:n},e.content)),x.createElement(MT,{render:e.children,collection:t}))}function MT({collection:e,render:t}){return t(e)}function NT(e,t,n){let r=Wx(),i=(0,x.useRef)(r);i.current=r;let a=(0,x.useCallback)(()=>i.current?n():t(),[t,n]);return(0,OT.useSyncExternalStore)(e,a)}var PT=typeof x.useSyncExternalStore==`function`?x.useSyncExternalStore:NT;function FT(e){let[t]=(0,x.useState)(()=>new Uw(e?.()||new zw));return{collection:PT((0,x.useCallback)(e=>t.subscribe(e),[t]),(0,x.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,x.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var IT=(0,x.createContext)(null);function LT(e){return class extends Nw{static{this.type=e}}}function RT(e,t,n,r,i,a){typeof e==`string`&&(e=LT(e));let o=(0,x.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,x.useContext)(IT);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?x.createElement(IT.Provider,{value:o},i):null}return x.createElement(e.type,{ref:o},i)}function zT(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,x.forwardRef)((r,i)=>{let a=(0,x.useContext)(_T);if(!(0,x.useContext)(kT)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return RT(e,r,i,`children`in r?r.children:null,null,e=>x.createElement(_T.Provider,{value:a},x.createElement(n,{node:e})))});return r.displayName=t.name,r}function BT(e,t,n=VT){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,x.forwardRef)((t,i)=>RT(e,t,i,null,n(t),e=>x.createElement(r,{node:e}))??x.createElement(x.Fragment,null));return i.displayName=t.name,i}function VT(e){return Ww({...e,addIdAndValue:!0})}var HT=(0,x.createContext)(null);function UT(e){let t=(0,x.useContext)(HT),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=VT({...e,idScope:r,dependencies:n});return(0,x.useContext)(AT)&&(i=x.createElement(WT,null,i)),t=(0,x.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),x.createElement(HT.Provider,{value:t},i)}function WT({children:e}){let t=(0,x.useContext)(AT),n=(0,x.useMemo)(()=>x.createElement(AT.Provider,{value:null},x.createElement(kT.Provider,{value:!0},e)),[e]);return Wx()?x.createElement(IT.Provider,{value:t},n):(0,DT.createPortal)(n,t)}var GT=(0,x.createContext)(null),KT={CollectionRoot({collection:e,renderDropIndicator:t}){return qT(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return qT(e,t,n)}};function qT(e,t,n){return Ww({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return x.createElement(x.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:x.createElement(x.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,JT(e,t,n))}})}function JT(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r?.type===`item`&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,x.isValidElement)(t)&&s.push((0,x.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var YT=(0,x.createContext)(KT);function XT(e){return(0,x.useMemo)(()=>e==null?null:new Set([e]),[e])}var ZT=new Set([`id`]),QT=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),$T=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),eE=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`,`suppressHydrationWarning`]),tE=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),nE=/^(data-.*)$/;function K(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ZT.has(t)||n&&QT.has(t)||r&&$T.has(t)||i&&eE.has(t)||a&&(tE.has(t)||t.endsWith(`Capture`)&&tE.has(t.slice(0,-7)))||o?.has(t)||nE.test(t))&&(s[t]=e[t]);return s}var rE=`default`,iE=``,aE=new WeakMap;function oE(e){if(QS()&&eC()){if(rE==="default"){let t=pS(e);iE=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}rE=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;aE.set(e,e.style[t]),e.style[t]=`none`}}function sE(e){if(QS()&&eC()){if(rE!==`disabled`)return;rE=`restoring`,setTimeout(()=>{$w(()=>{if(rE===`restoring`){let t=pS(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=iE||``),iE=``,rE=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&aE.has(e)){let t=aE.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),aE.delete(e)}}var cE=new WeakMap;function lE(e){let t=pS(e),n=cE.get(t);return n??=zC(`csp-nonce`,t),n!==void 0&&cE.set(t,n),n}var uE=x.createContext({register:()=>{}});uE.displayName=`PressResponderContext`;function dE(){let e=(0,x.useRef)(new Map),t=(0,x.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,x.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,x.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,x.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function fE(e){let t=(0,x.useContext)(uE);if(t){let{register:n,ref:r,...i}=t;e=H(i,e),n()}return gT(t,e.ref),e}var pE=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}},mE=Symbol(`linkClicked`),hE=`react-aria-pressable-style`,gE=`data-react-aria-pressable`;function _E(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=fE(e),[m,h]=(0,x.useState)(!1),g=(0,x.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=dE(),y=(0,x.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new pE(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),b=(0,x.useCallback)((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new pE(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new pE(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c},[s,i,n,t]),S=tw(b),C=tw((0,x.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new pE(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),w=(0,x.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(bE(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||sE(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,v,b]),T=tw(w);(0,x.useEffect)(()=>{s&&g.current.isPressed&&T({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let E=(0,x.useCallback)(e=>{u&&w(e)},[u,w]),D=(0,x.useCallback)(e=>{s||o?.(e)},[s,o]),O=(0,x.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);HS(n,t),o(VS(n))}},[s,o]),k=(0,x.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(yE(t.nativeEvent,t.currentTarget)&&W(t.currentTarget,G(t))){SE(G(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=y(t,`keyboard`));let i=t.currentTarget;_(pS(t.currentTarget),`keyup`,jx(t=>{yE(t,i)&&!t.repeat&&W(i,G(t))&&e.target&&C(bE(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&YS()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||W(t.currentTarget,G(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!lC.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||rC(t.nativeEvent))){let e=y(t,`virtual`),r=C(t,`virtual`),i=S(t,`virtual`);D(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=C(bE(t.currentTarget,t),r),a=S(bE(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,D(t),T(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&yE(t,e.target)){SE(G(t),t.key)&&t.preventDefault();let n=G(t),r=W(e.target,n);S(bE(e.target,t),`keyboard`,r),r&&O(t,e.target),v(),t.key!==`Enter`&&vE(e.target)&&W(e.target,n)&&!t[mE]&&(t[mE]=!0,lC(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!W(t.currentTarget,G(t)))return;if(iC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||oE(e.target),i=y(t,e.pointerType);let a=G(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),_(pS(t.currentTarget),`pointerup`,n,!1),_(pS(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(W(t.currentTarget,G(t))&&t.button===0){if(l){let n=GS(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{W(t.currentTarget,G(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&C(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(bE(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,S(bE(e.target,t),e.pointerType,!1),E(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(W(e.target,G(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?T(t):(AS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else T(t);e.isOverTarget=!1}},r=e=>{T(e)};t.onDragStart=e=>{W(e.currentTarget,G(e))&&T(e)}}return t},[_,s,l,v,d,E,y,D,O]);return(0,x.useEffect)(()=>{if(!f)return;let e=pS(f.current);if(!e||!e.head||e.getElementById(hE))return;let t=e.createElement(`style`);t.id=hE;let n=lE(e);n&&(t.nonce=n),t.textContent=`
|
|
63
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function jm(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;jm(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Mm=new Set([`type`,`properties`,`required`,`additionalProperties`]),Nm=[`oneOf`,`anyOf`];function Pm(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Fm(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Mm.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Pm(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}$c(n,r,e.length===1?e[0]:Fm(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Pm(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Im(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Mm)if(t in e)return;let n=t.filter(e=>Nm.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Fm(t);else{let e=n[0],i=Nm.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Fm([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Tm(e,r))}function Lm(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Tm(i,s),Tm(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())jm(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Im(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Tm(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,$c(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Bm(t,`input`,e.processors),output:Bm(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Rm(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Rm(r.element,n);if(r.type===`set`)return Rm(r.valueType,n);if(r.type===`lazy`)return Rm(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Rm(r.innerType,n);if(r.type===`intersection`)return Rm(r.left,n)||Rm(r.right,n);if(r.type===`record`||r.type===`map`)return Rm(r.keyType,n)||Rm(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Rm(r.in,n)||Rm(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Rm(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Rm(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Rm(e,n))return!0;return!!(r.rest&&Rm(r.rest,n))}return!1}var zm=(e,t={})=>n=>{let r=Em({...n,processors:t});return Om(e,r),Am(r,e),Lm(r,e)},Bm=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Em({...i??{},target:a,io:t,processors:n});return Om(e,o),Am(o,e),Lm(o,e)},Vm=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Hm=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Um=(e,t)=>{Vm(e,`minimum`,t),Hm(e,`maximum`,t)},Wm=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Gm=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},Km=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},qm=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Jm=(e,t)=>Vm(e,`minimum`,t.minimum),Ym=(e,t)=>Hm(e,`maximum`,t.maximum),Xm=e=>(t,n)=>{qm(t,n.format);let[r,i]=e[n.format];Vm(t,`minimum`,r),Hm(t,`maximum`,i)},Zm={greater_than:(e,t)=>Vm(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Hm(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Wm(e,t.value),number_format:Xm(bl),bigint_format:Xm(xl),min_length:Jm,max_length:Ym,length_equals:(e,t)=>Um(e,t.length),min_size:Jm,max_size:Ym,size_equals:(e,t)=>Um(e,t.size),string_format:(e,t)=>{qm(e,t.format),t.pattern&&Gm(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Km(e,t.mime)};function Qm(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Zm[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Vm(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Vm(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Hm(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Hm(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Wm(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Km(t,i.mime);for(let e of i.patterns??[])Gm(t,e);return t}var $m={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},eh=new Map([[ff,td],[mf,nd]]),th=e=>eh.get(e)??e,nh=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Qm(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=$m[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(th);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},rh=(e,t,n,r)=>{n.not={}},ih=(e,t,n,r)=>{let i=e._zod.def,a=Wc(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},ah=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Dm(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Dm(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},oh=(e,t,n,r)=>{Dm(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},sh=(e,t,n,r)=>{Dm(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},ch=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Qm(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Om(a.element,t,{...r,path:[...r.path,`items`]})};function lh(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?lh(t.out):t.type===`catch`?lh(t.innerType):e._zod.optin}var uh=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Dm(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)$c(i.properties,e,Om(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?lh(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Om(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},dh=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Om(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},fh=(e,t,n,r)=>{let i=e._zod.def,a=Om(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Om(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},ph=(e,t,n,r)=>{let i=e._zod.def,a=Om(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},mh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hh=Symbol();function gh(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Dm(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),hh):JSON.parse(o)}var _h=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=gh(i.defaultValue,e,t,n,r);o!==hh&&(n.default=o)},vh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=gh(i.defaultValue,e,t,n,r);o!==hh&&(n._prefault=o)},yh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Dm(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},bh=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Om(o,t,r);let s=t.seen.get(e);s.ref=o},xh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Sh=(e,t,n,r)=>{let i=e._zod.def;Om(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ch=(e,t,n,r)=>{let i=e._zod.innerType;Om(i,t,r);let a=t.seen.get(e);a.ref=i},wh=new WeakSet([Object.prototype,Error.prototype]);function Th(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Eh=B(`ZodError`,(e,t)=>{hu.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);wh.has(n)||(wh.add(n),Th(n,`format`,e=>t=>vu(e,t)),Th(n,`flatten`,e=>t=>_u(e,t)),Th(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Kc,2)}),Th(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Kc,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Dh=bu(Eh),Oh=xu(Eh),kh=Su(Eh),Ah=wu(Eh),jh=Au(Eh),Mh=ju(Eh),Nh=Mu(Eh),Ph=Nu(Eh),Fh=Pu(Eh),Ih=Fu(Eh),Lh=Iu(Eh),Rh=Lu(Eh);function zh(){cu.localeError||lu(Tp())}function Bh(){cu.memoizer||lu({memoizer:Sp()})}var Vh=B(`ZodType`,(e,t)=>(zh(),kd.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ol(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return gl(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(r_(e,t))},superRefine(e,t){return this.check(i_(e,t))},overwrite(e){return this.check(hm(e))},optional(){return Ig(this)},exactOptional(){return Rg(this)},nullable(){return Bg(this)},nullish(){return Ig(Bg(this))},nonoptional(e){return Kg(this,e)},array(){return bg(this)},or(e){return wg([this,e])},and(e){return Og(this,e)},transform(e){return Xg(this,Pg(e))},default(e){return Hg(this,e)},prefault(e){return Wg(this,e)},catch(e){return Jg(this,e)},pipe(e){return Xg(this,e)},readonly(){return $g(this)},describe(e){let t=this.clone();return kp.add(t,{description:e}),t},meta(...e){if(e.length===0)return kp.get(this);let t=this.clone();return kp.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Gl(this,`~standard`,{...Md(this),jsonSchema:{input:Bm(this,`input`),output:Bm(this,`output`)}})},set"~standard"(e){Wl(this,`~standard`,e)},parse:function e(t,n){return Dh(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Oh(this,t,n,{callee:e})},safeParse(e,t){return kh(this,e,t)},async safeParseAsync(e,t){return Ah(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Wl(this,`spa`,e)},validate(e,t){return Du(this,e,t)},validateAsync(e,t){return ku(this,e,t)},encode:function e(t,n){return jh(this,t,n,{callee:e})},decode:function e(t,n){return Mh(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Nh(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Ph(this,t,n,{callee:e})},safeEncode(e,t){return Fh(this,e,t)},safeDecode(e,t){return Ih(this,e,t)},async safeEncodeAsync(e,t){return Lh(this,e,t)},async safeDecodeAsync(e,t){return Rh(this,e,t)},toJSONSchema(e){return zm(this,{})(e)},get description(){return kp.get(this)?.description},get _def(){return this._zod.def}}),Hh=B(`_ZodString`,(e,t)=>{Nd.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nh(e,t,n,r)},Kl({format:e=>Qm(e).format??null,minLength:e=>Qm(e).minimum??null,maxLength:e=>Qm(e).maximum??null},{regex(...e){return this.check(lm(...e))},includes(...e){return this.check(fm(...e))},startsWith(...e){return this.check(pm(...e))},endsWith(...e){return this.check(mm(...e))},min(...e){return this.check(sm(...e))},max(...e){return this.check(om(...e))},length(...e){return this.check(cm(...e))},nonempty(...e){return this.check(sm(1,...e))},lowercase(e){return this.check(um(e))},uppercase(e){return this.check(dm(e))},trim(){return this.check(_m())},normalize(...e){return this.check(gm(...e))},toLowerCase(){return this.check(vm())},toUpperCase(){return this.check(ym())},slugify(){return this.check(bm())}})),Uh=B(`ZodString`,(e,t)=>{Nd.init(e,t),Hh.init(e,t)},{email(e){return this.check(Mp(Xh,e))},url(e){return this.check(Rp($h,e))},jwt(e){return this.check($p(mg,e))},emoji(e){return this.check(zp(eg,e))},guid(e){return this.check(Np(Zh,e))},uuid(e){return this.check(Pp(Qh,e))},uuidv4(e){return this.check(Fp(Qh,e))},uuidv6(e){return this.check(Ip(Qh,e))},uuidv7(e){return this.check(Lp(Qh,e))},nanoid(e){return this.check(Bp(tg,e))},cuid(e){return this.check(Vp(ng,e))},cuid2(e){return this.check(Hp(rg,e))},ulid(e){return this.check(Up(ig,e))},base64(e){return this.check(Xp(dg,e))},base64url(e){return this.check(Zp(fg,e))},xid(e){return this.check(Wp(ag,e))},ksuid(e){return this.check(Gp(og,e))},ipv4(e){return this.check(Kp(sg,e))},ipv6(e){return this.check(qp(cg,e))},cidrv4(e){return this.check(Jp(lg,e))},cidrv6(e){return this.check(Yp(ug,e))},e164(e){return this.check(Qp(pg,e))},datetime(e){return this.check(em(Kh,e))},date(e){return this.check(tm(qh,e))},time(e){return this.check(nm(Jh,e))},duration(e){return this.check(rm(Yh,e))}});function Wh(e){return jp(Uh,e)}var Gh=B(`ZodStringFormat`,(e,t)=>{Pd.init(e,t),Hh.init(e,t)}),Kh=B(`ZodISODateTime`,(e,t)=>{$d.init(e,t),Gh.init(e,t)}),qh=B(`ZodISODate`,(e,t)=>{ef.init(e,t),Gh.init(e,t)}),Jh=B(`ZodISOTime`,(e,t)=>{tf.init(e,t),Gh.init(e,t)}),Yh=B(`ZodISODuration`,(e,t)=>{nf.init(e,t),Gh.init(e,t)}),Xh=B(`ZodEmail`,(e,t)=>{Ld.init(e,t),Gh.init(e,t)}),Zh=B(`ZodGUID`,(e,t)=>{Fd.init(e,t),Gh.init(e,t)}),Qh=B(`ZodUUID`,(e,t)=>{Id.init(e,t),Gh.init(e,t)}),$h=B(`ZodURL`,(e,t)=>{Gd.init(e,t),Gh.init(e,t)}),eg=B(`ZodEmoji`,(e,t)=>{Kd.init(e,t),Gh.init(e,t)}),tg=B(`ZodNanoID`,(e,t)=>{qd.init(e,t),Gh.init(e,t)}),ng=B(`ZodCUID`,(e,t)=>{Jd.init(e,t),Gh.init(e,t)}),rg=B(`ZodCUID2`,(e,t)=>{Yd.init(e,t),Gh.init(e,t)}),ig=B(`ZodULID`,(e,t)=>{Xd.init(e,t),Gh.init(e,t)}),ag=B(`ZodXID`,(e,t)=>{Zd.init(e,t),Gh.init(e,t)}),og=B(`ZodKSUID`,(e,t)=>{Qd.init(e,t),Gh.init(e,t)}),sg=B(`ZodIPv4`,(e,t)=>{rf.init(e,t),Gh.init(e,t)}),cg=B(`ZodIPv6`,(e,t)=>{sf.init(e,t),Gh.init(e,t)}),lg=B(`ZodCIDRv4`,(e,t)=>{cf.init(e,t),Gh.init(e,t)}),ug=B(`ZodCIDRv6`,(e,t)=>{uf.init(e,t),Gh.init(e,t)}),dg=B(`ZodBase64`,(e,t)=>{pf.init(e,t),Gh.init(e,t)}),fg=B(`ZodBase64URL`,(e,t)=>{gf.init(e,t),Gh.init(e,t)}),pg=B(`ZodE164`,(e,t)=>{_f.init(e,t),Gh.init(e,t)}),mg=B(`ZodJWT`,(e,t)=>{yf.init(e,t),Gh.init(e,t)}),hg=B(`ZodUnknown`,(e,t)=>{bf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function gg(){return im(hg)}var _g=B(`ZodNever`,(e,t)=>{xf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rh(e,t,n,r)});function vg(e){return am(_g,e)}var yg=B(`ZodArray`,(e,t)=>{Bh(),Tf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ch(e,t,n,r),e.element=t.element},{min(e,t){return this.check(sm(e,t))},nonempty(e){return this.check(sm(1,e))},max(e,t){return this.check(om(e,t))},length(e,t){return this.check(cm(e,t))},unwrap(){return this.element}});function bg(e,t){return xm(yg,e,t)}var xg=B(`ZodObject`,(e,t)=>{Bh(),jf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uh(e,t,n,r),$l(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Ag(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ol(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ol(this._zod.def,{catchall:gg()}))},loose(){return this.clone(ol(this._zod.def,{catchall:gg()}))},strict(){return this.clone(ol(this._zod.def,{catchall:vg()}))},strip(){return this.clone(ol(this._zod.def,{catchall:void 0}))},extend(e){return Tl(this,e)},safeExtend(e){return Dl(this,e)},merge(e){return Ol(this,e)},pick(e){return Sl(this,e)},omit(e){return wl(this,e)},partial(...e){return kl(Fg,this,e[0])},exactPartial(...e){return kl(Lg,this,e[0],`exactPartial`)},required(...e){return Al(Gg,this,e[0])}});function Sg(e,t){return new xg({type:`object`,shape:e??{},..._l(t)})}var Cg=B(`ZodUnion`,(e,t)=>{Nf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dh(e,t,n,r),e.options=t.options});function wg(e,t){return new Cg({type:`union`,options:e,..._l(t)})}var Tg=B(`ZodDiscriminatedUnion`,(e,t)=>{Cg.init(e,t),Ff.init(e,t)});function Eg(e,t,n){return new Tg({type:`union`,options:t,discriminator:e,..._l(n)})}var Dg=B(`ZodIntersection`,(e,t)=>{If.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fh(e,t,n,r)});function Og(e,t){return new Dg({type:`intersection`,left:e,right:t})}var kg=B(`ZodEnum`,(e,t)=>{zf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ih(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new kg({...t,checks:[],..._l(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new kg({...t,checks:[],..._l(r),entries:i})}});function Ag(e,t){return new kg({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,..._l(t)})}var jg=B(`ZodLiteral`,(e,t)=>{Bf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ah(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Mg(e,t){return new jg({type:`literal`,values:Array.isArray(e)?e:[e],..._l(t)})}var Ng=B(`ZodTransform`,(e,t)=>{Bh(),Vf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sh(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new su(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Hl(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Hl(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Pg(e){return new Ng({type:`transform`,transform:e})}var Fg=B(`ZodOptional`,(e,t)=>{Uf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ig(e){return new Fg({type:`optional`,innerType:e})}var Lg=B(`ZodExactOptional`,(e,t)=>{Wf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Rg(e){return new Lg({type:`optional`,innerType:e})}var zg=B(`ZodNullable`,(e,t)=>{Gf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ph(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Bg(e){return new zg({type:`nullable`,innerType:e})}var Vg=B(`ZodDefault`,(e,t)=>{Kf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_h(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Hg(e,t){return new Vg({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():pl(t)}})}var Ug=B(`ZodPrefault`,(e,t)=>{Jf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Wg(e,t){return new Ug({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():pl(t)}})}var Gg=B(`ZodNonOptional`,(e,t)=>{Yf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Kg(e,t){return new Gg({type:`nonoptional`,innerType:e,..._l(t)})}var qg=B(`ZodCatch`,(e,t)=>{Qf.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jg(e,t){return new qg({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:tu(t)})}var Yg=B(`ZodPipe`,(e,t)=>{$f.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bh(e,t,n,r),e.in=t.in,e.out=t.out});function Xg(e,t){return new Yg({type:`pipe`,in:e,out:t})}var Zg=B(`ZodPreprocess`,(e,t)=>{Yg.init(e,t),tp.init(e,t)}),Qg=B(`ZodReadonly`,(e,t)=>{np.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xh(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $g(e){return new Qg({type:`readonly`,innerType:e})}var e_=B(`ZodLazy`,(e,t)=>{ip.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ch(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function t_(e){return new e_({type:`lazy`,getter:e})}var n_=B(`ZodCustom`,(e,t)=>{ap.init(e,t),Vh.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oh(e,t,n,r)});function r_(e,t={}){return Sm(n_,e,t)}function i_(e,t){return Cm(e,t)}function a_(e,t){return new Zg({type:`pipe`,in:Pg(e),out:t})}function o_(e){return e.deletedAt===void 0}function s_(e){return e.deletedAt!==void 0}function c_(e){return e.published!==void 0&&e.published.revision!==e.revision}function l_(e){return e.filter(e=>e.deletedAt===void 0)}var u_=class extends Vc{code=`unknown_type`},d_=class{noun;#e=new Map;constructor(e){this.noun=e}register(e){if(this.#e.has(e.type))throw new Hc(`A ${this.noun} named "${e.type}" is already registered.`);return this.#e.set(e.type,e),this}has(e){return this.#e.has(e)}get(e){let t=this.#e.get(e);if(!t){let t=[...this.#e.keys()].sort().join(`, `);throw new u_(`There is no ${this.noun} named "${e}". Registered: ${t}.`)}return t}list(){return[...this.#e.values()]}};function f_(e){return/^(?:https?:\/\/|mailto:|tel:)\S+$/i.test(e)?!0:/^(?:\/(?!\/)|#)\S*$/.test(e)}var p_=Eg(`type`,[Sg({type:Mg(`bold`)}),Sg({type:Mg(`italic`)}),Sg({type:Mg(`link`),attrs:Sg({href:Wh().max(2e3).refine(f_,`A link must be a web address, an email address, a phone number or a page of this site.`)})})]),m_=Eg(`type`,[Sg({type:Mg(`text`),text:Wh().min(1),marks:bg(p_).optional()}),Sg({type:Mg(`hardBreak`)})]),h_=t_(()=>Eg(`type`,[Sg({type:Mg(`paragraph`),content:bg(m_).optional()}),Sg({type:Mg(`heading`),attrs:Sg({level:wg([Mg(2),Mg(3)])}),content:bg(m_).optional()}),Sg({type:Mg(`blockquote`),content:bg(h_)}),Sg({type:Mg(`bulletList`),content:bg(g_)}),Sg({type:Mg(`orderedList`),content:bg(g_)})])),g_=Sg({type:Mg(`listItem`),content:bg(h_)}),__=12,v_=e=>{let t=typeof e==`object`&&e?e.content:void 0;return Array.isArray(t)?1+Math.max(0,...t.map(v_)):1};function y_(e){return{type:`doc`,content:(typeof e==`string`?e.split(/\n+/):e).map(e=>e.trim()).filter(e=>e!==``).map(e=>({type:`paragraph`,content:[{type:`text`,text:e}]}))}}var b_=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`);a_(e=>b_(e)?y_(e):e,Sg({type:Mg(`doc`),content:bg(h_)}).refine(e=>v_(e)<=__,`Lists and quotes are nested too deeply.`));var x_=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function S_(e){return e.length<=200&&x_.test(e)}function C_(e){let t=e.split(`/`);return e.length<=200&&t.length<=5&&t.every(e=>x_.test(e))}var w_=`...slug`;function T_(e){return[e.urlPattern,...Object.values(e.localizedUrlPatterns??{})].some(e=>e?.includes(`[${w_}]`)===!0)}var E_=`$slug`,D_=[`resend`],O_=(e,t,n)=>[...n].every((n,r)=>e[t+r]===n.charCodeAt(0)),k_=(e,t)=>(e[t]??0)<<8|(e[t+1]??0),A_=(e,t)=>k_(e,t)*65536+k_(e,t+2),j_=(e,t)=>(e[t]??0)|(e[t+1]??0)<<8,M_=(e,t)=>j_(e,t)|(e[t+2]??0)<<16;function N_(e){return e.length<24||![137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)||!O_(e,12,`IHDR`)?null:{contentType:`image/png`,extension:`png`,width:A_(e,16),height:A_(e,20)}}function P_(e){if(e[0]!==255||e[1]!==216)return null;let t=2;for(;t+9<e.length;){if(e[t]!==255)return null;let n=e[t+1]??0;if(n===255)t+=1;else if(n===1||n>=208&&n<=215)t+=2;else{if(n>=192&&n<=207&&n!==196&&n!==200&&n!==204)return{contentType:`image/jpeg`,extension:`jpg`,width:k_(e,t+7),height:k_(e,t+5)};if(n===218||n===217)return null;t+=2+k_(e,t+2)}}return null}function F_(e){if(e.length<30||!O_(e,0,`RIFF`)||!O_(e,8,`WEBP`))return null;let t=(e,t)=>({contentType:`image/webp`,extension:`webp`,width:e,height:t});if(O_(e,12,`VP8X`))return t(M_(e,24)+1,M_(e,27)+1);if(O_(e,12,`VP8 `))return t(j_(e,26)&16383,j_(e,28)&16383);if(O_(e,12,`VP8L`)&&e[20]===47){let n=j_(e,21)+j_(e,23)*65536;return t((n&16383)+1,(Math.floor(n/16384)&16383)+1)}return null}function I_(e){let t=N_(e)??P_(e)??F_(e);return t&&t.width>0&&t.height>0?t:null}var L_=2560,R_=(e,t,n)=>t===n?e.urlPattern:e.localizedUrlPatterns?.[t];function z_(e,t,n){let r=R_(e,t.locale,n);if(r===void 0)return null;let i=!0,a=r.replace(/\[([^\]]+)\]/g,(n,r)=>{if(r===`...slug`)return C_(t.slug)||(i=!1),t.slug===`index`?``:t.slug;let a=r===`slug`?void 0:l_(e.fields).find(e=>e.key===r),o=r===`slug`?t.slug:a?t.data[a.id]:void 0;return typeof o!=`string`||!/^[A-Za-z0-9][A-Za-z0-9._~-]*$/.test(o)?(i=!1,``):o});return i?`${a.replace(/\/{2,}/g,`/`).replace(/\/+$/,``)}/`:null}function B_(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=B_(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function V_(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=B_(e))&&(r&&(r+=` `),r+=t);return r}var H_=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,U_=V_,W_=(e,t)=>n=>{if(t?.variants==null)return U_(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=H_(t)||H_(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return U_(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},G_={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`},K_=W_(``,{variants:{padding:{0:`p-0`,1:`p-1`,2:`p-2`,3:`p-3`,4:`p-4`,5:`p-5`,6:`p-6`,8:`p-8`,10:`p-10`,12:`p-12`},paddingX:{0:`px-0`,1:`px-1`,2:`px-2`,3:`px-3`,4:`px-4`,5:`px-5`,6:`px-6`,8:`px-8`,10:`px-10`,12:`px-12`},paddingY:{0:`py-0`,1:`py-1`,2:`py-2`,3:`py-3`,4:`py-4`,5:`py-5`,6:`py-6`,8:`py-8`,10:`py-10`,12:`py-12`},surface:{none:``,page:`bg-background`,subtle:`bg-background-secondary`,card:`bg-card`},border:{true:`border border-border`},radius:{none:``,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`},shadow:{none:``,sm:`shadow-sm`,md:`shadow-md`},maxWidth:{none:``,xs:`max-w-sm`,sm:`max-w-md`,md:`max-w-2xl`,lg:`max-w-4xl`},grow:{true:`min-w-0 flex-1`}},defaultVariants:{surface:`none`,radius:`none`,shadow:`none`,maxWidth:`none`}});function q_({as:e=`div`,label:t,children:n,...r}){return(0,S.jsx)(e,{className:K_(r),"aria-label":t,children:n})}var J_=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Y_(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:J_(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var X_=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Z_=e=>{let t=X_(e);return t.charAt(0).toUpperCase()+t.slice(1)},Q_=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$_={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`};function ev(e){return e!=null}function tv(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$_.width,a=e.size??e.height??$_.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Q_(...c):Q_(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$_[`stroke-width`])*Number(e.size??e.width??$_.width)/Number(t.size??t.width??$_.width):t.strokeWidth??$_[`stroke-width`];return[`svg`,{...Object.entries($_).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ev(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ev(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ev(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function nv(e,t={}){return tv(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var rv=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},iv=(0,x.createContext)({}),av=()=>(0,x.useContext)(iv),ov=(0,x.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=av()??{},y=!!c||rv(d),[b,S,C=[]]=nv(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Q_(v,s),hasA11yProp:y,attributes:d});return(0,x.createElement)(b,{ref:f,...S},[...C.map(([e,t])=>(0,x.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function V(e,t=[],n=[]){let r=typeof e==`string`?Y_(e,t,n):e,i=(0,x.forwardRef)(({className:e,...t},n)=>(0,x.createElement)(ov,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Z_(r.name)),i}var sv={name:`archive`,size:24,node:[[`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`}]]};sv.node;var cv=V(sv),lv={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};lv.node;var uv=V(lv),dv={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};dv.node;var fv=V(dv),pv={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};pv.node;var mv=V(pv),hv={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};hv.node;var gv=V(hv),_v={name:`badge-check`,size:24,node:[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`verified`]};_v.node;var vv=V(_v),yv={name:`blocks`,size:24,node:[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]};yv.node;var bv=V(yv),xv={name:`building-complex`,size:24,node:[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]],aliases:[`building-2`]};xv.node;var Sv=V(xv),Cv={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};Cv.node;var wv=V(Cv),Tv={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Tv.node;var Ev=V(Tv),Dv={name:`chart-no-axes-column`,size:24,node:[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]],aliases:[`bar-chart-2`]};Dv.node;var Ov=V(Dv),kv={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};kv.node;var Av=V(kv),jv={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};jv.node;var Mv=V(jv),Nv={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Nv.node;var Pv=V(Nv),Fv={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Fv.node;var Iv=V(Fv),Lv={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Lv.node;var Rv=V(Lv),zv={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};zv.node;var Bv=V(zv),Vv={name:`circle-exclamation-point`,size:24,node:[[`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`}]],aliases:[`alert-circle`,`circle-alert`]};Vv.node;var Hv=V(Vv),Uv={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Uv.node;var Wv=V(Uv),Gv={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};Gv.node;var Kv=V(Gv),qv={name:`contact`,size:24,node:[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2`,key:`k82dct`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]};qv.node;var Jv=V(qv),Yv={name:`copy`,size:24,node:[[`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`}]]};Yv.node;var Xv=V(Yv),Zv={name:`download`,size:24,node:[[`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`}]]};Zv.node;var Qv=V(Zv),$v={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};$v.node;var ey=V($v),ty={name:`eye-off`,size:24,node:[[`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`}]]};ty.node;var ny=V(ty),ry={name:`eye`,size:24,node:[[`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`}]]};ry.node;var iy=V(ry),ay={name:`file-question-mark`,size:24,node:[[`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:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`file-question`]};ay.node;var oy=V(ay),sy={name:`file-text`,size:24,node:[[`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`}]]};sy.node;var cy=V(sy),ly={name:`file-up`,size:24,node:[[`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:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]};ly.node;var uy=V(ly),dy={name:`gallery-horizontal`,size:24,node:[[`path`,{d:`M2 3v18`,key:`pzttux`}],[`rect`,{width:`12`,height:`18`,x:`6`,y:`3`,rx:`2`,key:`btr8bg`}],[`path`,{d:`M22 3v18`,key:`6jf3v`}]]};dy.node;var fy=V(dy),py={name:`grip-vertical`,size:24,node:[[`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`}]]};py.node;var my=V(py),hy={name:`hand-coins`,size:24,node:[[`path`,{d:`M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17`,key:`geh8rc`}],[`path`,{d:`m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`1fto5m`}],[`path`,{d:`m2 16 6 6`,key:`1pfhp9`}],[`circle`,{cx:`16`,cy:`9`,r:`2.9`,key:`1n0dlu`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]};hy.node;var gy=V(hy),_y={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};_y.node;var vy=V(_y),yy={name:`house`,size:24,node:[[`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`}]],aliases:[`home`]};yy.node;var by=V(yy),xy={name:`image-off`,size:24,node:[[`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`}]]};xy.node;var Sy=V(xy),Cy={name:`image`,size:24,node:[[`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`}]]};Cy.node;var wy=V(Cy),Ty={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};Ty.node;var Ey=V(Ty),Dy={name:`inbox`,size:24,node:[[`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`}]]};Dy.node;var Oy=V(Dy),ky={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ky.node;var Ay=V(ky),jy={name:`key-round`,size:24,node:[[`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`}]]};jy.node;var My=V(jy),Ny={name:`layout-grid`,size:24,node:[[`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`}]]};Ny.node;var Py=V(Ny),Fy={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};Fy.node;var Iy=V(Fy),Ly={name:`layout-template`,size:24,node:[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]};Ly.node;var Ry=V(Ly),zy={name:`letter-h`,size:24,node:[[`path`,{d:`M18 20V4`,key:`o2hl4u`}],[`path`,{d:`M6 12H18`,key:`1fx1vx`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}]],aliases:[`heading`]};zy.node;var By=V(zy),Vy={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Vy.node;var Hy=V(Vy),Uy={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Uy.node;var Wy=V(Uy),Gy={name:`list-plus`,size:24,node:[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]};Gy.node;var Ky=V(Gy),qy={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};qy.node;var Jy=V(qy),Yy={name:`list`,size:24,node:[[`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`}]]};Yy.node;var Xy=V(Yy),Zy={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Zy.node;var Qy=V(Zy),$y={name:`lock`,size:24,node:[[`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`}]]};$y.node;var eb=V($y),tb={name:`log-out`,size:24,node:[[`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`}]]};tb.node;var nb=V(tb),rb={name:`mail`,size:24,node:[[`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`}]]};rb.node;var ib=V(rb),ab={name:`map-pin`,size:24,node:[[`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`}]]};ab.node;var ob=V(ab),sb={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};sb.node;var cb=V(sb),lb={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};lb.node;var ub=V(lb),db={name:`message-circle`,size:24,node:[[`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`}]]};db.node;var fb=V(db),pb={name:`message-square-quote`,size:24,node:[[`path`,{d:`M14 14a2 2 0 0 0 2-2V8h-2`,key:`1r06pg`}],[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M8 14a2 2 0 0 0 2-2V8H8`,key:`1jzu5j`}]]};pb.node;var mb=V(pb),hb={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};hb.node;var gb=V(hb),_b={name:`newspaper`,size:24,node:[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]};_b.node;var vb=V(_b),yb={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};yb.node;var bb=V(yb),xb={name:`panel-left-close`,size:24,node:[[`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`}]],aliases:[`sidebar-close`]};xb.node;var Sb=V(xb),Cb={name:`panel-left-open`,size:24,node:[[`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`}]],aliases:[`sidebar-open`]};Cb.node;var wb=V(Cb),Tb={name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};Tb.node;var Eb=V(Tb),Db={name:`panels-top-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]],aliases:[`layout`]};Db.node;var Ob=V(Db),kb={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`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`}]],aliases:[`edit-3`]};kb.node;var Ab=V(kb),jb={name:`pencil`,size:24,node:[[`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`}]]};jb.node;var Mb=V(jb),Nb={name:`phone`,size:24,node:[[`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`}]]};Nb.node;var Pb=V(Nb),Fb={name:`play`,size:24,node:[[`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`}]]};Fb.node;var Ib=V(Fb),Lb={name:`plug-zap`,size:24,node:[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]],aliases:[`plug-zap-2`]};Lb.node;var Rb=V(Lb),zb={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};zb.node;var Bb=V(zb),Vb={name:`puzzle`,size:24,node:[[`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`}]]};Vb.node;var Hb=V(Vb),Ub={name:`quote`,size:24,node:[[`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`}]]};Ub.node;var Wb=V(Ub),Gb={name:`rotate-ccw-clock`,size:24,node:[[`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`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Gb.node;var Kb=V(Gb),qb={name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]};qb.node;var Jb=V(qb),Yb={name:`rows-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]],aliases:[`panels-top-bottom`]};Yb.node;var Xb=V(Yb),Zb={name:`search-x`,size:24,node:[[`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`}]]};Zb.node;var Qb=V(Zb),$b={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};$b.node;var ex=V($b),tx={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};tx.node;var nx=V(tx),rx={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};rx.node;var ix=V(rx),ax={name:`settings`,size:24,node:[[`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`}]]};ax.node;var ox=V(ax),sx={name:`shapes`,size:24,node:[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]};sx.node;var cx=V(sx),lx={name:`shield-check`,size:24,node:[[`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`}]]};lx.node;var ux=V(lx),dx={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};dx.node;var fx=V(dx),px={name:`star`,size:24,node:[[`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`}]]};px.node;var mx=V(px),hx={name:`table`,size:24,node:[[`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`}]]};hx.node;var gx=V(hx),_x={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};_x.node;var vx=V(_x),yx={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};yx.node;var bx=V(yx),xx={name:`trash`,size:24,node:[[`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`}]],aliases:[`trash-2`]};xx.node;var Sx=V(xx),Cx={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Cx.node;var wx=V(Cx),Tx={name:`upload`,size:24,node:[[`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`}]]};Tx.node;var Ex=V(Tx),Dx={name:`user-plus`,size:24,node:[[`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`}]]};Dx.node;var Ox=V(Dx),kx={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};kx.node;var Ax=V(kx),jx={name:`user-x`,size:24,node:[[`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:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]};jx.node;var Mx=V(jx),Nx={name:`users`,size:24,node:[[`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`}]]};Nx.node;var Px=V(Nx),Fx={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Fx.node;var Ix=V(Fx);function Lx(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Rx=typeof document<`u`?x.useLayoutEffect:()=>{},zx={prefix:String(Math.round(Math.random()*1e10)),current:0},Bx=x.createContext(zx),Vx=x.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var Hx=new WeakMap;function Ux(e=!1){let t=(0,x.useContext)(Bx),n=(0,x.useRef)(null);if(n.current===null&&!e){let e=x.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=Hx.get(e);n==null?Hx.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,Hx.delete(e))}n.current=++t.current}return n.current}function Wx(e){let t=(0,x.useContext)(Bx),n=Ux(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Gx(e){let t=x.useId(),[n]=(0,x.useState)(Xx()),r=n?`react-aria`:`react-aria${zx.prefix}`;return e||`${r}-${t}`}var Kx=typeof x.useId==`function`?Gx:Wx;function qx(){return!1}function Jx(){return!0}function Yx(e){return()=>{}}function Xx(){return typeof x.useSyncExternalStore==`function`?x.useSyncExternalStore(Yx,qx,Jx):(0,x.useContext)(Vx)}function Zx(e){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(t),i=(0,x.useRef)(null),a=(0,x.useRef)(()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:r.current===e.value?a.current():n(e.value)});return Rx(()=>{r.current=t,i.current&&a.current()}),[t,(0,x.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var Qx=!!(typeof window<`u`&&window.document&&window.document.createElement),$x=new Map,eS;typeof FinalizationRegistry<`u`&&(eS=new FinalizationRegistry(e=>{$x.delete(e)}));var tS=new WeakMap;function nS(e){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(null),i=Kx(t),a=(0,x.useRef)(null),o=tS.get(a);if(eS&&o!==i&&(o!=null&&eS.unregister(a),eS.register(a,i,a),tS.set(a,i)),Qx){let e=$x.get(i);e&&!e.includes(r)?e.push(r):$x.set(i,[r])}return Rx(()=>{let e=i;return()=>{eS&&(eS.unregister(a),tS.delete(a)),$x.delete(e)}},[i]),(0,x.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function rS(e,t){if(e===t)return e;let n=$x.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=$x.get(t);return r?(r.forEach(t=>t.current=e),e):t}function iS(e=[]){let t=nS(),[n,r]=Zx(t),i=(0,x.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Rx(i,[t,i,...e]),n}function aS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=oS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():oS(e[n],null)})}}}function oS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function H(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Lx(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=V_(n,i):e===`id`&&n&&i?t.id=rS(n,i):e===`ref`&&n&&i?t.ref=aS(n,i):t[e]=i===void 0?n:i}}return t}function sS(e){let t=(0,x.useRef)(null),n=(0,x.useRef)(void 0),r=(0,x.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,x.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var cS=Symbol(`default`);function lS({values:e,children:t}){for(let[n,r]of e)t=x.createElement(n.Provider,{value:r},t);return t}function uS(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,x.useMemo)(()=>{let e,l,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,l=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:l||o?{...o,...l}:void 0,children:u??a,"data-rac":``,render:c?e=>c(e,s):void 0}},[t,n,r,i,a,o,s,c])}function dS(e,t){let n=(0,x.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||cS;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function fS(e,t,n){let{ref:r,...i}=dS(n,e.slot)||{},a=sS((0,x.useMemo)(()=>aS(t,r),[t,r])),o=H(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function pS(e=!0){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(!1),i=(0,x.useCallback)(e=>{r.current=!0,n(!!e)},[]);return Rx(()=>{r.current||n(!1)},[]),[i,t]}function mS(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function hS(e,t,n){let{render:r,...i}=t,a=(0,x.useRef)(null),o=(0,x.useMemo)(()=>aS(n,a),[n,a]);Rx(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):x.createElement(e,s)}var gS={},U=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=gS[t];return n||(n=(0,x.forwardRef)(hS.bind(null,t)),gS[t]=n),n}}),_S=`react-aria-clear-focus`,vS=`react-aria-focus`,yS=e=>SS(e)?e.document:CS(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),bS=e=>yS(e)?.defaultView??(typeof window<`u`?window:void 0);function xS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function SS(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function CS(e){return xS(e)&&e.nodeType===9}function wS(e){return xS(e)&&e.nodeType===11&&`host`in e}function TS(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function ES(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var DS=!1;function OS(){return DS}function W(e,t){if(!OS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:wS(n)?n.host:n.parentNode}return!1}var kS=(e=document)=>{if(!OS())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function G(e){if(OS()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function AS(e,t){if(t===null)return[];t??=bS(e);let n=[t];if(!OS()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;wS(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function jS(e){if(!e)return!1;let t=e.getRootNode(),n=bS(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function MS(e){let t=FS(yS(e));t!==e&&(t&&NS(t,e),e&&PS(e,t))}function NS(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function PS(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function FS(e){let t=kS(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}function IS(e){e.focus({preventScroll:!0})}var LS=typeof Element<`u`&&`checkVisibility`in Element.prototype;function RS(e){let t=bS(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=bS(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function zS(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function BS(e,t){return LS?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&RS(e)&&zS(e,t)&&(!e.parentElement||BS(e.parentElement,e))}var VS=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],HS=VS.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;VS.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var US=VS.join(`:not([hidden]):not([tabindex="-1"]),`);function WS(e,t){return e.matches(HS)&&!KS(e)&&(t?.skipVisibilityCheck||BS(e))}function GS(e){return e.matches(US)&&BS(e)&&!KS(e)}function KS(e){let t=e;for(;t!=null;){if(t instanceof bS(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function qS(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function JS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function YS(e){let t=(0,x.useRef)({isFocused:!1,observer:null});return Rx(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,x.useCallback)(n=>{let r=G(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=qS(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===kS()?null:kS();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var XS=!1;function ZS(e){for(;e&&!WS(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=kS(bS(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&wS(n)?n:bS(e),i=t=>t===e||xS(t)&&W(e,t),a=e=>e===t||t!=null&&xS(e)&&W(t,e);XS=!0;let o=!1,s=e=>{(a(G(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(G(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,IS(t),d()))},l=e=>{(i(G(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(G(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,IS(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),XS=!1,o=!1},f=requestAnimationFrame(d);return d}function QS(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function $S(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function eC(e){let t=null;return()=>(t??=e(),t)}var tC=eC(function(){return $S(/^Mac/i)}),nC=eC(function(){return $S(/^iPhone/i)}),rC=eC(function(){return $S(/^iPad/i)||tC()&&navigator.maxTouchPoints>1}),iC=eC(function(){return nC()||rC()}),aC=eC(function(){return tC()||iC()}),oC=eC(function(){return QS(/AppleWebKit/i)&&(iC()||!sC())}),sC=eC(function(){return QS(/Chrome|CriOS|CrMo/i)}),cC=eC(function(){return QS(/Android/i)});function lC(e){return e.pointerType===``&&e.isTrusted?!0:cC()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function uC(e){return!cC()&&e.width===0&&e.height===0||cC()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var dC=(0,x.createContext)({isNative:!0,open:_C,useHref:e=>e});function fC(e){let{children:t,navigate:n,useHref:r}=e,i=(0,x.useMemo)(()=>({isNative:!1,open:(e,t,r,i)=>{gC(e,e=>{mC(e,t)?n(r,i):hC(e,t)})},useHref:r||(e=>e)}),[n,r]);return x.createElement(dC.Provider,{value:i},t)}function pC(){return(0,x.useContext)(dC)}function mC(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function hC(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=oC()&&tC()&&!rC()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});hC.isOpening=n,IS(e),e.dispatchEvent(s),hC.isOpening=!1}hC.isOpening=!1;function gC(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function _C(e,t){gC(e,e=>hC(e,t))}function vC(e){let t=pC().useHref(e.href??``);return{"data-href":e.href?t:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function yC(e){let t=pC().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}function bC(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&mC(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var xC=null,SC=new Set,CC=new Map,wC=!1,TC=!1,EC={Tab:!0,Escape:!0};function DC(e,t){for(let n of SC)n(e,t)}function OC(e){return!(e.metaKey||!tC()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function kC(e){wC=!0,!hC.isOpening&&OC(e)&&(xC=`keyboard`,DC(`keyboard`,e))}function AC(e){xC=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(wC=!0,DC(`pointer`,e))}function jC(e){!hC.isOpening&&lC(e)&&(wC=!0,xC=`virtual`)}function MC(e){if(XS)return;let t=G(e),n=bS(t),r=yS(t);t===n?TC=!0:t!==r&&e.isTrusted&&(!wC&&!TC&&(xC=`virtual`,DC(`virtual`,e)),wC=!1,TC=!1)}function NC(){XS||(wC=!1,TC=!0)}function PC(e){let t=kS(yS(G(e)));queueMicrotask(()=>{kS(yS(G(e)))!==t&&BC(`keyboard`)})}function FC(e){if(typeof window>`u`||typeof document>`u`)return;let t=bS(e),n=yS(e);if(CC.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){wC=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,kC,!0),n.addEventListener(`keyup`,kC,!0),n.addEventListener(`click`,jC,!0),n.addEventListener(`invalid`,PC,!0),t.addEventListener(`focus`,MC,!0),t.addEventListener(`blur`,NC,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,AC,!0),n.addEventListener(`pointermove`,AC,!0),n.addEventListener(`pointerup`,AC,!0)),t.addEventListener(`beforeunload`,()=>{IC(e)},{once:!0}),CC.set(t,{focus:r})}var IC=(e,t)=>{let n=bS(e),r=yS(e);t&&r.removeEventListener(`DOMContentLoaded`,t),CC.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:CC.get(n).focus}),r.removeEventListener(`keydown`,kC,!0),r.removeEventListener(`keyup`,kC,!0),r.removeEventListener(`click`,jC,!0),r.removeEventListener(`invalid`,PC,!0),n.removeEventListener(`focus`,MC,!0),n.removeEventListener(`blur`,NC,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,AC,!0),r.removeEventListener(`pointermove`,AC,!0),r.removeEventListener(`pointerup`,AC,!0)),CC.delete(n))};function LC(e){let t=yS(e),n;return t.readyState===`loading`?(n=()=>{FC(e)},t.addEventListener(`DOMContentLoaded`,n)):FC(e),()=>IC(e,n)}typeof document<`u`&&LC();function RC(){return xC!==`pointer`}function zC(){return xC}function BC(e){xC=e,DC(e,null)}function VC(){FC();let[e,t]=(0,x.useState)(xC);return(0,x.useEffect)(()=>{let e=()=>{t(xC)};return SC.add(e),()=>{SC.delete(e)}},[]),Xx()?null:e}var HC=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function UC(e,t,n){let r=n?G(n):void 0,i=yS(r),a=bS(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=kS(i);return e=e||u instanceof o&&!HC.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!EC[n.key])}function WC(e,t,n){FC(),(0,x.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{UC(!!n?.isTextInput,t,r)&&e(RC())};return SC.add(t),()=>{SC.delete(t)}},t)}function GC(e,t){let n=bS(t),r=yS(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var KC=100,qC=600,JC={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},YC=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function XC(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function ZC(e){JC.resizeTimeStamp<=e.timeStamp+50&&(JC.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(JC.resizeTimeout),JC.resizeTimeout=window.setTimeout(QC,150))}function QC(){let e=GC(`viewport`);if(cC()&&e?.includes(`overlays-content`))return;let t=performance.now(),n=XC(),r=t-JC.startTimeStamp,i=JC.screenHeight-n.height,a=JC.screenAngle-n.angle;Math.abs(a)%180&&JC.screenWidth-n.height<KC&&(JC.screenWidth=n.width,JC.screenHeight=n.height,JC.screenAngle=n.angle,i=0),r>qC&&(window.clearTimeout(JC.screenTimeout),JC.screenTimeout=window.setTimeout(()=>{let e=rw(document.hasFocus()?kS():null),t=XC();Math.abs(JC.screenAngle-t.angle)%180||JC.isOpen&&e||(JC.screenWidth=t.width,JC.screenHeight=t.height,JC.screenAngle=t.angle,JC.isOpen=!1)},qC)),r<=qC&&i>=KC&&(JC.endTimeStamp=t),JC.isOpen=i>=KC}function $C(){let e=XC(),t=JC.screenAngle-e.angle;if(Math.abs(t)%180&&!JC.isOpen){let e=JC.screenWidth;JC.screenWidth=JC.screenHeight,JC.screenHeight=e}JC.isOpen||(JC.screenAngle=e.angle)}function ew(e){let t=rw(G(e)),n=performance.now(),r=XC(),i=JC.screenHeight-r.height;i<KC&&t&&(JC.screenWidth=r.width,JC.screenHeight=r.height,JC.screenAngle=r.angle,JC.startTimeStamp=n),t&&window.clearTimeout(JC.screenTimeout),i>=KC&&t&&(JC.endTimeStamp=n)}function tw(){let e=XC();TS(window.visualViewport,`resize`,oC()?QC:ZC),TS(window.screen.orientation,`change`,$C),TS(window,`focus`,ew,{capture:!0,passive:!0}),JC.screenWidth=e.width,JC.screenHeight=e.height,JC.screenAngle=e.angle}typeof document<`u`&&(document.readyState===`loading`?TS(document,`DOMContentLoaded`,tw):tw());function nw(){let e=GC(`viewport`);return cC()&&e?.includes(`overlays-content`)?!1:JC.isOpen?!0:JC.startTimeStamp?JC.endTimeStamp>=JC.startTimeStamp?!0:performance.now()-JC.startTimeStamp<=qC?JC.endTimeStamp>0||window.navigator.maxTouchPoints>0:!1:window.navigator.maxTouchPoints>0}function rw(e){if(!(e instanceof Element)||!WS(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!YC.has(e.type);return t||n||r}function iw(e){return tC()?e.metaKey:e.ctrlKey}function aw(){return JC.isOpen}var ow=x.useInsertionEffect??Rx;function sw(e){let t=(0,x.useRef)(null);return ow(()=>{t.current=e},[e]),(0,x.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function cw(e,t,n,r){let i=sw(n),a=n==null;(0,x.useEffect)(()=>{if(!(a||e.current==null))return TS(e.current,t,i,r)},[e,t,r,a])}function lw(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=nS(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}var uw=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),dw=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function fw(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return uw.has(t.script)}let t=e.split(`-`)[0];return dw.has(t)}var pw=Symbol.for(`react-aria.i18n.locale`);function mw(){let e=typeof window<`u`&&window[pw]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:fw(e)?`rtl`:`ltr`}}var hw=mw(),gw=new Set;function _w(){hw=mw();for(let e of gw)e(hw)}function vw(){let e=Xx(),[t,n]=(0,x.useState)(hw);return(0,x.useEffect)(()=>(gw.size===0&&window.addEventListener(`languagechange`,_w),gw.add(n),()=>{gw.delete(n),gw.size===0&&window.removeEventListener(`languagechange`,_w)}),[]),e?{locale:typeof window<`u`&&window[pw]||`en-US`,direction:`ltr`}:t}var yw=x.createContext(null);function bw(){let e=vw();return(0,x.useContext)(yw)||e}var xw=Symbol.for(`react-aria.i18n.locale`),Sw=Symbol.for(`react-aria.i18n.strings`),Cw=void 0,ww=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=Tw(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[xw];if(Cw===void 0){let t=window[Sw];if(!t)return null;Cw={};for(let r in t)Cw[r]=new e({[n]:t[r]},n)}let r=Cw?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function Tw(e,t,n=`en-US`){if(t[e])return t[e];let r=Ew(e),i=Dw(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function Ew(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function Dw(e){if(Intl.Locale)return new Intl.Locale(e).script}var Ow=new Map,kw=new Map,Aw=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=Ow.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),Ow.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=kw.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),kw.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},jw=new WeakMap;function Mw(e){let t=jw.get(e);return t||(t=new ww(e),jw.set(e,t)),t}function Nw(e,t){return t&&ww.getGlobalDictionaryForPackage(t)||Mw(e)}function Pw(e,t){let{locale:n}=bw(),r=Nw(e,t);return(0,x.useMemo)(()=>new Aw(n,r),[n,r])}var Fw=x.useInsertionEffect??x.useLayoutEffect;function Iw(e,t,n){let[r,i]=(0,x.useState)(e||t),a=(0,x.useRef)(r),o=(0,x.useRef)(e!==void 0),s=e!==void 0;(0,x.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;Fw(()=>{a.current=c});let[,l]=(0,x.useReducer)(()=>({}),{});return[c,(0,x.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}var Lw=(0,x.createContext)(null),Rw=(0,x.createContext)(null),zw=class{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}},Bw=class extends zw{filter(e,t,n){let[r,i]=Kw(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},Vw=class extends zw{static{this.type=`header`}},Hw=class extends zw{static{this.type=`loader`}},Uw=class extends Bw{static{this.type=`item`}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Ww=class extends Bw{static{this.type=`section`}filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},Gw=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=Kw(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Kw(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey==null?null:e.getItem(o.nextKey)}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e==null?a=null:(a=t.getItem(e),a.nextKey=null)}return[i?.key??null,a?.key??null]}var qw=class{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}},Jw=class e extends qw{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.parentNode.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},Yw=class extends qw{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Jw(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof Jw&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Jw?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};function Xw(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,x.useMemo)(()=>void 0,[t]),s=(0,x.useMemo)(()=>new WeakMap,[...a,o]);return(0,x.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=Zw(a)?a:null,o=n?s.get(n):null;if(!o){o=t(a);let c=o.props.id??a?.key??a?.id;r!=null&&o.props.id==null&&c!=null&&(c=r+`:`+c);let l=c??e.length;o=(0,x.cloneElement)(o,i?{key:l,id:c,value:a}:{key:l}),n&&s.set(n,o)}e.push(o)}return e}if(typeof t!=`function`)return t},[t,n,s,r,i])}function Zw(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Qw=new Map,$w=new Set;function eT(e){return`propertyName`in e}function tT(e){let t=G(e);if(!eT(e)||!t)return;let n=Qw.get(t);n||(n=new Set,Qw.set(t,n),t.addEventListener(`transitioncancel`,nT,{once:!0})),n.add(e.propertyName)}function nT(e){let t=G(e);if(!eT(e)||!t)return;let n=Qw.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener(`transitioncancel`,nT),Qw.delete(t)),Qw.size===0))for(let e of $w)e(!0),$w.delete(e)}function rT(){TS(document,`transitionrun`,tT),TS(document,`transitionend`,nT)}function iT(){for(let[e]of Qw)`isConnected`in e&&!e.isConnected&&Qw.delete(e)}typeof document<`u`&&(document.readyState===`loading`?TS(document,`DOMContentLoaded`,rT):rT());function aT(e){let t=window.requestAnimationFrame(()=>{if(iT(),Qw.size===0)return e(!1);$w.add(e)});return()=>{window.cancelAnimationFrame(t),$w.delete(e)}}function oT(e){if(!e.isConnected)return;let t=yS(e);if(zC()===`virtual`){let n=kS(t);aT(()=>{let r=kS(t);(r===n||r===t.body)&&e.isConnected&&IS(e)})}else IS(e)}function sT(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,x.useCallback)(e=>{if(G(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=YS(a),s=(0,x.useCallback)(e=>{let t=G(e),r=yS(t),a=r?kS(r):kS();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function cT(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var lT=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),uT=[`Alt`,`Control`,`Meta`,`Shift`];function dT(e){let t=new Set;return e.alt&&t.add(`Alt`),e.shift&&t.add(`Shift`),e.ctrl&&t.add(`Control`),e.meta&&t.add(`Meta`),e.mod&&t.add(tC()?`Meta`:`Control`),t}function fT(e){let t=new Set;return e.altKey&&t.add(`Alt`),e.ctrlKey&&t.add(`Control`),e.metaKey&&t.add(`Meta`),e.shiftKey&&t.add(`Shift`),t}function pT(e){return uT.filter(t=>e.has(t))}function mT(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return lT.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function hT(e){return e.toLowerCase()}var gT={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function _T(e){let t=hT(e);return gT[t]??t}function vT(e){let t=pT(dT(e)),n=_T(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function yT(e){let t=pT(fT(e)),n=hT(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function bT(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=mT(n);t.set(vT(e),r)}return e=>{let n=yT(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function xT(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=bT(t),s=cT(e=>{W(e.currentTarget,G(e))?e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r?e.continuePropagation():o(e):e.continuePropagation()}),c=cT(e=>{W(e.currentTarget,G(e))&&(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing),e.continuePropagation()});i=e.onKeyDown?Lx(e.onKeyDown,s):s,a=e.onKeyUp?Lx(e.onKeyUp,c):c}else i=cT(e.onKeyDown),a=cT(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function ST(e,t){Rx(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var CT=x.createContext(null);function wT(e){let t=(0,x.useContext)(CT)||{};ST(t,e);let{ref:n,...r}=t;return r}var TT=x.forwardRef(function(e,t){let{children:n,...r}=e,i=sS(t),a={...r,ref:i};return x.createElement(CT.Provider,{value:a},n)});function ET(e,t){let{focusProps:n}=sT(e),{keyboardProps:r}=xT(e),i=H(n,r),a=wT(t),o=e.isDisabled?{}:a,s=(0,x.useRef)(e.autoFocus);(0,x.useEffect)(()=>{s.current&&t.current&&oT(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:H({...i,tabIndex:c},o)}}typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var DT=(0,x.createContext)(!1);function OT(e){if((0,x.useContext)(DT))return x.createElement(x.Fragment,null,e.children);let t=x.createElement(DT.Provider,{value:!0},e.children);return x.createElement(`template`,null,t)}function kT(e){let t=(t,n)=>(0,x.useContext)(DT)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,x.forwardRef)(t)}function AT(){return(0,x.useContext)(DT)}var jT=o((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),MT=o(((e,t)=>{t.exports=jT()})),NT=c(g(),1),PT=MT(),FT=(0,x.createContext)(!1),IT=(0,x.createContext)(null);function LT(e){if((0,x.useContext)(IT))return e.content;let{collection:t,document:n}=VT(e.createCollection);return x.createElement(x.Fragment,null,x.createElement(OT,null,x.createElement(IT.Provider,{value:n},e.content)),x.createElement(RT,{render:e.children,collection:t}))}function RT({collection:e,render:t}){return t(e)}function zT(e,t,n){let r=Xx(),i=(0,x.useRef)(r);i.current=r;let a=(0,x.useCallback)(()=>i.current?n():t(),[t,n]);return(0,PT.useSyncExternalStore)(e,a)}var BT=typeof x.useSyncExternalStore==`function`?x.useSyncExternalStore:zT;function VT(e){let[t]=(0,x.useState)(()=>new Yw(e?.()||new Gw));return{collection:BT((0,x.useCallback)(e=>t.subscribe(e),[t]),(0,x.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,x.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var HT=(0,x.createContext)(null);function UT(e){return class extends zw{static{this.type=e}}}function WT(e,t,n,r,i,a){typeof e==`string`&&(e=UT(e));let o=(0,x.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,x.useContext)(HT);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?x.createElement(HT.Provider,{value:o},i):null}return x.createElement(e.type,{ref:o},i)}function GT(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,x.forwardRef)((r,i)=>{let a=(0,x.useContext)(CT);if(!(0,x.useContext)(FT)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return WT(e,r,i,`children`in r?r.children:null,null,e=>x.createElement(CT.Provider,{value:a},x.createElement(n,{node:e})))});return r.displayName=t.name,r}function KT(e,t,n=qT){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,x.forwardRef)((t,i)=>WT(e,t,i,null,n(t),e=>x.createElement(r,{node:e}))??x.createElement(x.Fragment,null));return i.displayName=t.name,i}function qT(e){return Xw({...e,addIdAndValue:!0})}var JT=(0,x.createContext)(null);function YT(e){let t=(0,x.useContext)(JT),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=qT({...e,idScope:r,dependencies:n});return(0,x.useContext)(IT)&&(i=x.createElement(XT,null,i)),t=(0,x.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),x.createElement(JT.Provider,{value:t},i)}function XT({children:e}){let t=(0,x.useContext)(IT),n=(0,x.useMemo)(()=>x.createElement(IT.Provider,{value:null},x.createElement(FT.Provider,{value:!0},e)),[e]);return Xx()?x.createElement(HT.Provider,{value:t},n):(0,NT.createPortal)(n,t)}var ZT=(0,x.createContext)(null),QT={CollectionRoot({collection:e,renderDropIndicator:t}){return $T(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return $T(e,t,n)}};function $T(e,t,n){return Xw({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return x.createElement(x.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:x.createElement(x.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,eE(e,t,n))}})}function eE(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r?.type===`item`&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,x.isValidElement)(t)&&s.push((0,x.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var tE=(0,x.createContext)(QT);function nE(e){return(0,x.useMemo)(()=>e==null?null:new Set([e]),[e])}var rE=new Set([`id`]),iE=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),aE=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),oE=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`,`suppressHydrationWarning`]),sE=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),cE=/^(data-.*)$/;function K(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(rE.has(t)||n&&iE.has(t)||r&&aE.has(t)||i&&oE.has(t)||a&&(sE.has(t)||t.endsWith(`Capture`)&&sE.has(t.slice(0,-7)))||o?.has(t)||cE.test(t))&&(s[t]=e[t]);return s}var lE=`default`,uE=``,dE=new WeakMap;function fE(e){if(iC()&&oC()){if(lE==="default"){let t=yS(e);uE=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}lE=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;dE.set(e,e.style[t]),e.style[t]=`none`}}function pE(e){if(iC()&&oC()){if(lE!==`disabled`)return;lE=`restoring`,setTimeout(()=>{aT(()=>{if(lE===`restoring`){let t=yS(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=uE||``),uE=``,lE=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dE.has(e)){let t=dE.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),dE.delete(e)}}var mE=new WeakMap;function hE(e){let t=yS(e),n=mE.get(t);return n??=GC(`csp-nonce`,t),n!==void 0&&mE.set(t,n),n}var gE=x.createContext({register:()=>{}});gE.displayName=`PressResponderContext`;function _E(){let e=(0,x.useRef)(new Map),t=(0,x.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,x.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,x.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,x.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function vE(e){let t=(0,x.useContext)(gE);if(t){let{register:n,ref:r,...i}=t;e=H(i,e),n()}return ST(t,e.ref),e}var yE=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}},bE=Symbol(`linkClicked`),xE=`react-aria-pressable-style`,SE=`data-react-aria-pressable`;function CE(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=vE(e),[m,h]=(0,x.useState)(!1),g=(0,x.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=_E(),y=(0,x.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new yE(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),b=(0,x.useCallback)((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new yE(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new yE(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c},[s,i,n,t]),S=sw(b),C=sw((0,x.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new yE(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),w=(0,x.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(EE(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||pE(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,v,b]),T=sw(w);(0,x.useEffect)(()=>{s&&g.current.isPressed&&T({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let E=(0,x.useCallback)(e=>{u&&w(e)},[u,w]),D=(0,x.useCallback)(e=>{s||o?.(e)},[s,o]),O=(0,x.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);JS(n,t),o(qS(n))}},[s,o]),k=(0,x.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(TE(t.nativeEvent,t.currentTarget)&&W(t.currentTarget,G(t))){OE(G(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=y(t,`keyboard`));let i=t.currentTarget;_(yS(t.currentTarget),`keyup`,Lx(t=>{TE(t,i)&&!t.repeat&&W(i,G(t))&&e.target&&C(EE(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&tC()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||W(t.currentTarget,G(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!hC.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||lC(t.nativeEvent))){let e=y(t,`virtual`),r=C(t,`virtual`),i=S(t,`virtual`);D(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=C(EE(t.currentTarget,t),r),a=S(EE(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,D(t),T(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&TE(t,e.target)){OE(G(t),t.key)&&t.preventDefault();let n=G(t),r=W(e.target,n);S(EE(e.target,t),`keyboard`,r),r&&O(t,e.target),v(),t.key!==`Enter`&&wE(e.target)&&W(e.target,n)&&!t[bE]&&(t[bE]=!0,hC(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!W(t.currentTarget,G(t)))return;if(uC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||fE(e.target),i=y(t,e.pointerType);let a=G(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),_(yS(t.currentTarget),`pointerup`,n,!1),_(yS(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(W(t.currentTarget,G(t))&&t.button===0){if(l){let n=ZS(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{W(t.currentTarget,G(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&C(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(EE(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,S(EE(e.target,t),e.pointerType,!1),E(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(W(e.target,G(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?T(t):(IS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else T(t);e.isOverTarget=!1}},r=e=>{T(e)};t.onDragStart=e=>{W(e.currentTarget,G(e))&&T(e)}}return t},[_,s,l,v,d,E,y,D,O]);return(0,x.useEffect)(()=>{if(!f)return;let e=yS(f.current);if(!e||!e.head||e.getElementById(xE))return;let t=e.createElement(`style`);t.id=xE;let n=hE(e);n&&(t.nonce=n),t.textContent=`
|
|
64
64
|
@layer {
|
|
65
|
-
[${
|
|
65
|
+
[${SE}] {
|
|
66
66
|
touch-action: pan-x pan-y pinch-zoom;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
`.trim(),e.head.prepend(t)},[f]),(0,x.useEffect)(()=>{let e=g.current;return()=>{d||sE(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:H(p,k,{[gE]:!0})}}function vE(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function yE(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof mS(i).HTMLInputElement&&!wE(i,n)||i instanceof mS(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&vE(i))&&n!==`Enter`)}function bE(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function xE(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!vE(e)}function SE(e,t){return YS()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!wE(e,t):xE(e)}var CE=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function wE(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:CE.has(e.type)}function TE(e,t){let{elementType:n=`a`,onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,...l}=e,u={};n!==`a`&&(u={role:`link`,tabIndex:c?void 0:0});let{focusableProps:d}=bT(e,t),{pressProps:f,isPressed:p}=_E({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,ref:t}),m=K(l,{labelable:!0}),h=H(d,f),g=sC();return{isPressed:p,linkProps:H(m,pC(e),{...h,...u,"aria-disabled":c||void 0,"aria-current":e[`aria-current`],onClick:t=>{f.onClick?.(t),mC(t,g,e.href,e.routerOptions)}})}}function EE(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,x.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=dE(),c=(0,x.useCallback)(e=>{W(e.currentTarget,G(e))&&a.current.isFocusWithin&&!W(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=US(c),u=(0,x.useCallback)(e=>{if(!W(e.currentTarget,G(e)))return;let t=G(e),n=pS(t),s=CS(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=G(e);if(a.current.isFocusWithin&&!W(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});HS(e,t);let i=VS(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function DE(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,x.useRef)({isFocused:!1,isFocusVisible:t||MC()}),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,x.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,x.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=MC(),o(e),l()},[l]);RC(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=tT({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=EE({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var OE=!1,kE=0;function AE(){OE=!0,setTimeout(()=>{OE=!1},500)}function jE(e){e.pointerType===`touch`&&AE()}function ME(){let e=pS(null);if(e!==void 0)return kE===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,jE),kE++,()=>{kE--,kE>0||typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,jE)}}function NE(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,x.useState)(!1),s=(0,x.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,x.useEffect)(ME,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=dE(),{hoverProps:u,triggerHoverEnd:d}=(0,x.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!W(e.currentTarget,G(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(pS(G(e)),`pointerover`,e=>{s.isHovered&&s.target&&!W(s.target,G(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{OE&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&W(e.currentTarget,G(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,x.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var PE=(0,x.createContext)(null),FE=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,PE);let n=e.href&&!e.isDisabled?`a`:`span`,{linkProps:r,isPressed:i}=TE({...e,elementType:n},t),a=U[n],{hoverProps:o,isHovered:s}=NE(e),{focusProps:c,isFocused:l,isFocusVisible:u}=DE(),d=iS({...e,defaultClassName:`react-aria-Link`,values:{isCurrent:!!e[`aria-current`],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:s,isFocused:l,isFocusVisible:u}}),f=K(e,{global:!0});return delete f.onClick,x.createElement(a,{ref:t,slot:e.slot||void 0,...H(f,d,r,o,c),"data-focused":l||void 0,"data-hovered":s||void 0,"data-pressed":i||void 0,"data-focus-visible":u||void 0,"data-current":!!e[`aria-current`]||void 0,"data-disabled":e.isDisabled||void 0},d.children)}),IE=(0,x.createContext)({}),LE=CT(function(e,t){[e,t]=oS(e,t,IE);let{elementType:n=`label`,...r}=e,i=U[n];return x.createElement(i,{className:`react-aria-Label`,...r,ref:t})});function RE(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=Xx(t);let o=Xx(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=rw({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}var zE=new Map,BE=!1;try{BE=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var VE=class{constructor(e,t={}){this.numberFormatter=HE(e,t),this.options=t}format(e){let t=``;return t=!BE&&this.options.signDisplay!=null?UE(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!BE&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),e}};function HE(e,t={}){let{numberingSystem:n}=t;n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`);let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(zE.has(r))return zE.get(r);let i=new Intl.NumberFormat(e,t);return zE.set(r,i),i}function UE(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}var WE=RegExp(`^.*\\(.*\\).*$`),GE=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],KE=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return JE(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return JE(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return JE(this.locale,this.options,e).options.numberingSystem}},qE=new Map;function JE(e,t,n){let r=YE(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of GE)if(i!==r.options.numberingSystem){let r=YE(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function YE(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``),r=qE.get(n);return r||(r=new XE(e,t),qE.set(n,r)),r}var XE=class{constructor(e,t={}){this.locale=e,t.roundingIncrement!==1&&t.roundingIncrement!=null&&(t.maximumFractionDigits==null&&t.minimumFractionDigits==null?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):t.maximumFractionDigits==null?t.maximumFractionDigits=t.minimumFractionDigits:t.minimumFractionDigits??=t.maximumFractionDigits),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=$E(e,this.formatter,this.options,t),this.options.style===`percent`&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new KE(this.locale,e).parse(new VE(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&WE.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=eD(e,`,`,this.symbols.decimal),e=eD(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=eD(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=eD(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=eD(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=eD(e,` `,this.symbols.group),e=eD(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=eD(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},ZE=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),QE=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $E(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=QE.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:QE[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;u||r?.signDisplay!==`exceptZero`&&r?.signDisplay!==`always`||(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!ZE.has(e.type)).map(e=>tD(e.value)),m=s.flatMap(e=>e.filter(e=>!ZE.has(e.type)).map(e=>tD(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function eD(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function tD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function nD(e={}){let{locale:t}=mw();return(0,x.useMemo)(()=>new VE(t,e),[t,e])}function rD(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function iD(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf(`e-`);if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let e=i.indexOf(`.`);e>=0&&(r=i.length-e)}if(r>0){let e=10**r;n=Math.round(n*e)/e}return n}function aD(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=iD(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(iD(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(iD((n-t)/r,r))*r),a=iD(a,r),a}var oD=(0,x.createContext)(null),sD=7e3,cD=null;function lD(e,t=`assertive`,n=sD){cD?cD.announce(e,t,n):(cD=new dD,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?cD.announce(e,t,n):setTimeout(()=>{cD?.isAttached()&&cD?.announce(e,t,n)},100))}function uD(e){cD&&cD.clear(e)}var dD=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=sD){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function fD(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=_E({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=bT(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=H(y,_,K(e,{labelable:!0}));return{isPressed:v,buttonProps:H(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var pD=(0,x.createContext)({}),mD=CT(function(e,t){[e,t]=oS(e,t,pD);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=fD(e,t);i=gD(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=DE(e),{hoverProps:l,isHovered:u}=NE({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=iS({...e,values:d,defaultClassName:`react-aria-Button`}),p=Xx(i.id),m=Xx(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,x.useRef)(r);(0,x.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&lD(e,`assertive`),g.current=r},[r,s,h,p]);let _=K(e,{global:!0});return delete _.onClick,x.createElement(U.button,{...H(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},x.createElement(oD.Provider,{value:{id:m}},f.children))}),hD=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function gD(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!hD.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var _D=(0,x.createContext)({}),vD=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,_D);let{children:n,level:r=3,className:i,...a}=e,o=U[`h${r}`];return x.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),yD=(0,x.createContext)({}),bD=CT(function(e,t){[e,t]=oS(e,t,yD);let{elementType:n=`span`,...r}=e,i=U[n];return x.createElement(i,{className:`react-aria-Text`,...r,ref:t})});function xD(e,t){let n=(0,x.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function SD(e,t){return e-t*Math.floor(e/t)}var CD=1721426;function wD(e,t,n,r){t=ED(e,t);let i=t-1,a=-2;return n<=2?a=0:TD(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function TD(e){return e%4==0&&(e%100!=0||e%400==0)}function ED(e,t){return e===`BC`?1-t:t}function DD(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var OD={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]},kD=class{fromJulianDay(e){let t=e,n=t-CD,r=Math.floor(n/146097),i=SD(n,146097),a=Math.floor(i/36524),o=SD(i,36524),s=Math.floor(o/1461),c=SD(o,1461),l=Math.floor(c/365),[u,d]=DD(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-wD(u,d,1,1),p=2;t<wD(u,d,3,1)?p=0:TD(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new LO(u,d,m,t-wD(u,d,m,1)+1)}toJulianDay(e){return wD(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return OD[TD(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return TD(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function AD(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function jD(e){return YD(Date.now(),e)}function MD(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ND(e,t){return PD(e)-PD(t)}function PD(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var FD=null,ID=!1;function LD(){return FD??=new Intl.DateTimeFormat().resolvedOptions().timeZone,FD}function RD(){return ID}function zD(e){return e=QD(e,new kD),BD(ED(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function BD(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function VD(e,t){if(t===`UTC`)return 0;if(e>0&&t===LD()&&!RD())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=UD(e,t);return BD(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var HD=new Map;function UD(e,t){let n=HD.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`}),HD.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var WD=864e5;function GD(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>KD(e,t,n))}function KD(e,t,n){let r=UD(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function qD(e,t,n=`compatible`){let r=ZD(e);if(t===`UTC`)return zD(r);if(t===LD()&&n===`compatible`&&!RD()){r=QD(r,new kD);let e=new Date,t=ED(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=zD(r),a=VD(i-WD,t),o=VD(i+WD,t),s=GD(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function JD(e,t,n=`compatible`){return new Date(qD(e,t,n))}function YD(e,t){let n=VD(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new zO(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function XD(e){return new LO(e.calendar,e.era,e.year,e.month,e.day)}function ZD(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new RO(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function QD(e,t){if(AD(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,lO(r),r}function $D(e,t,n){return e instanceof zO?e.timeZone===t?e:tO(e,t):YD(qD(e,t,n),t)}function eO(e){let t=zD(e)-e.offset;return new Date(t)}function tO(e,t){return QD(YD(zD(e)-e.offset,t),e.calendar)}function nO(e){return tO(e,LD())}var rO=36e5;function iO(e,t){let n=e.copy(),r=`hour`in n?_O(n,t):0;aO(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,oO(n),cO(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,sO(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let e=n.calendar.isInverseEra?.(n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function aO(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function oO(e){for(;e.month<1;)aO(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,aO(e,1)}function sO(e){for(;e.day<1;)e.month--,oO(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,oO(e)}function cO(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 lO(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),cO(e)}function uO(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function dO(e,t){return iO(e,uO(t))}function fO(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),lO(n),n}function pO(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),hO(n),n}function mO(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=gO(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=gO(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=gO(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=gO(e.hour,24),t}function hO(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 gO(e,t){let n=e%t;return n<0&&(n+=t),n}function _O(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,mO(e)}function vO(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=bO(a,n,0,t.length-1,r?.round),i.era=t[a],lO(i);break}case`year`:i.calendar.isInverseEra?.(i)&&(n=-n),i.year=bO(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=bO(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=bO(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),lO(i),i}function yO(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=bO(t,n,a,o,r?.round);break}case`minute`:i.minute=bO(e.minute,n,0,59,r?.round);break;case`second`:i.second=bO(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=bO(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function bO(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function xO(e,t){let n;return n=t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0?qD(iO(ZD(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):zD(e)-e.offset,n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5,QD(YD(n,e.timeZone),e.calendar)}function SO(e,t){return xO(e,uO(t))}function CO(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=ZD(e),o=QD(pO(a,{hour:t}),new kD),s=[qD(o,e.timeZone,`earlier`),qD(o,e.timeZone,`later`)].filter(t=>YD(t,e.timeZone).day===o.day)[0],c=QD(pO(a,{hour:i}),new kD),l=[qD(c,e.timeZone,`earlier`),qD(c,e.timeZone,`later`)].filter(t=>YD(t,e.timeZone).day===c.day).pop(),u=zD(e)-e.offset,d=Math.floor(u/rO),f=u%rO;return u=bO(d,n,Math.floor(s/rO),Math.floor(l/rO),r?.round)*rO+f,QD(YD(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return yO(e,t,n,r);case`era`:case`year`:case`month`:case`day`:return QD(YD(qD(vO(ZD(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error(`Unsupported field `+t)}}function wO(e,t,n){let r=ZD(e),i=pO(fO(r,t),t);return i.compare(r)===0?e:QD(YD(qD(i,e.timeZone,n),e.timeZone),e.calendar)}var TO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,EO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,DO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function OO(e){let t=e.match(TO);if(!t)throw DO.test(e)?Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):Error(`Invalid ISO 8601 date string: `+e);let n=new LO(AO(t[1],0,9999),AO(t[2],1,12),1);return n.day=AO(t[3],1,n.calendar.getDaysInMonth(n)),n}function kO(e){let t=e.match(EO);if(!t)throw DO.test(e)?Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):Error(`Invalid ISO 8601 date time string: `+e);let n=AO(t[1],-9999,9999),r=new RO(n<1?`BC`:`AD`,n<1?-n+1:n,AO(t[2],1,12),1,t[4]?AO(t[4],0,23):0,t[5]?AO(t[5],0,59):0,t[6]?AO(t[6],0,59):0,t[7]?AO(t[7],0,1/0)*1e3:0);return r.day=AO(t[3],0,r.calendar.getDaysInMonth(r)),r}function AO(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function jO(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 MO(e){let t=QD(e,new kD),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function NO(e){return`${MO(e)}T${jO(e)}`}function PO(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`;return i!==0&&(a+=`:${String(i).padStart(2,`0`)}`),a}function FO(e){return`${NO(e)}${PO(e.offset)}[${e.timeZone}]`}function IO(e){let t=typeof e[0]==`object`?e.shift():new kD,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var LO=class e{constructor(...e){let[t,n,r,i,a]=IO(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,lO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return iO(this,e)}subtract(e){return dO(this,e)}set(e){return fO(this,e)}cycle(e,t,n){return vO(this,e,t,n)}toDate(e){return JD(this,e)}toString(){return MO(this)}compare(e){return MD(this,e)}},RO=class e{constructor(...e){let[t,n,r,i,a]=IO(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,lO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return iO(this,e)}subtract(e){return dO(this,e)}set(e){return fO(pO(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return vO(this,e,t,n);default:return yO(this,e,t,n)}}toDate(e,t){return JD(this,e,t)}toString(){return NO(this)}compare(e){let t=MD(this,e);return t===0?ND(this,ZD(e)):t}},zO=class e{constructor(...e){let[t,n,r,i,a]=IO(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,lO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return xO(this,e)}subtract(e){return SO(this,e)}set(e,t){return wO(this,e,t)}cycle(e,t,n){return CO(this,e,t,n)}toDate(){return eO(this)}toString(){return FO(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-$D(e,this.timeZone).toDate().getTime()}},BO=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],VO=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],HO=[1867,1911,1925,1988,2018],UO=[`meiji`,`taisho`,`showa`,`heisei`,`reiwa`];function WO(e){let t=BO.findIndex(([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r);return t===-1?BO.length-1:t===0?0:t-1}function GO(e){let t=HO[UO.indexOf(e.era)];if(!t)throw Error(`Unknown era: `+e.era);return new LO(e.year+t,e.month,e.day)}var KO=class extends kD{fromJulianDay(e){let t=super.fromJulianDay(e),n=WO(t);return new LO(this,UO[n],t.year-HO[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(GO(e))}balanceDate(e){let t=GO(e),n=WO(t);UO[n]!==e.era&&(e.era=UO[n],e.year=t.year-HO[n]),this.constrainDate(e)}constrainDate(e){let t=UO.indexOf(e.era),n=VO[t];if(n!=null){let[r,i,a]=n,o=r-HO[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(e.year===1&&t>=0){let[,n,r]=BO[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return UO}getYearsInEra(e){let t=UO.indexOf(e.era),n=BO[t],r=BO[t+1];if(r==null)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(GO(e))}getMinimumMonthInYear(e){let t=qO(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=qO(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier=`japanese`}};function qO(e){if(e.year===1)return BO[UO.indexOf(e.era)]}var JO=-543,YO=class extends kD{fromJulianDay(e){let t=super.fromJulianDay(e),n=ED(t.era,t.year);return new LO(this,n-JO,t.month,t.day)}toJulianDay(e){return super.toJulianDay(XO(e))}getEras(){return[`BE`]}getDaysInMonth(e){return super.getDaysInMonth(XO(e))}balanceDate(){}constructor(...e){super(...e),this.identifier=`buddhist`}};function XO(e){let[t,n]=DD(e.year+JO);return new LO(t,n,e.month,e.day)}var ZO=1911;function QO(e){return e.era===`minguo`?e.year+ZO:1-e.year+ZO}function $O(e){let t=e-ZO;return t>0?[`minguo`,t]:[`before_minguo`,1-t]}var ek=class extends kD{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=$O(ED(t.era,t.year));return new LO(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(tk(e))}getEras(){return[`before_minguo`,`minguo`]}balanceDate(e){let[t,n]=$O(QO(e));e.era=t,e.year=n}isInverseEra(e){return e.era===`before_minguo`}getDaysInMonth(e){return super.getDaysInMonth(tk(e))}getYearsInEra(e){return e.era===`before_minguo`?9999:8088}constructor(...e){super(...e),this.identifier=`roc`}};function tk(e){let[t,n]=DD(QO(e));return new LO(t,n,e.month,e.day)}var nk=1948320,rk=[0,31,62,93,124,155,186,216,246,276,306,336],ik=class{fromJulianDay(e){let t=e-nk,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=Math.floor(r<216?r/31:(r-6)/30),a=r-rk[i]+1;return new LO(this,n,i+1,a)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=rk[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||SD(25*e.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return[`AP`]}getYearsInEra(){return 9377}constructor(){this.identifier=`persian`}},ak=78,ok=80,sk=class extends kD{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-ak,r=e-wD(t.era,t.year,1,1),i;r<ok?(n--,i=TD(t.year-1)?31:30,r+=i+155+90+10):(i=TD(t.year)?31:30,r-=ok);let a,o;if(r<i)a=1,o=r+1;else{let e=r-i;e<155?(a=Math.floor(e/31)+2,o=e%31+1):(e-=155,a=Math.floor(e/30)+7,o=e%30+1)}return new LO(this,n,a,o)}toJulianDay(e){let[t,n]=DD(e.year+ak),r,i;return TD(n)?(r=31,i=wD(t,n,3,21)):(r=30,i=wD(t,n,3,22)),e.month===1?i+e.day-1:(i+=r+Math.min(e.month-2,5)*31,e.month>=8&&(i+=(e.month-7)*30),i+=e.day-1,i)}getDaysInMonth(e){return e.month===1&&TD(e.year+ak)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return[`saka`]}balanceDate(){}constructor(...e){super(...e),this.identifier=`indian`}},ck=1948440,lk=1948439,uk=1300,dk=1600,fk=460322;function pk(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function mk(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+pk(t,r,1,1)))/29.5)+1);return new LO(e,r,i,n-pk(t,r,i,1)+1)}function hk(e){return(14+11*e)%30<11}var gk=class{fromJulianDay(e){return mk(this,ck,e)}toJulianDay(e){return pk(ck,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&hk(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return hk(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return[`AH`]}constructor(){this.identifier=`islamic-civil`}},_k=class extends gk{fromJulianDay(e){return mk(this,lk,e)}toJulianDay(e){return pk(lk,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier=`islamic-tbla`}},vk=`qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=`,yk,bk;function xk(e){return fk+bk[e-uk]}function Sk(e,t){let n=e-uk,r=1<<11-(t-1);return(yk[n]&r)===0?29:30}function Ck(e,t){let n=xk(e);for(let r=1;r<t;r++)n+=Sk(e,r);return n}function wk(e){return bk[e+1-uk]-bk[e-uk]}var Tk=class extends gk{constructor(){if(super(),this.identifier=`islamic-umalqura`,yk||=new Uint16Array(Uint8Array.from(atob(vk),e=>e.charCodeAt(0)).buffer),!bk){bk=new Uint32Array(301);let e=0;for(let t=uk;t<=dk;t++){bk[t-uk]=e;for(let n=1;n<=12;n++)e+=Sk(t,n)}}}fromJulianDay(e){let t=e-ck,n=xk(uk),r=xk(dk);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){e++,r=t-xk(e)+1;let i=wk(e);if(r===i){n=12;break}if(r<i){let t=Sk(e,n);for(n=1;r>t;)r-=t,n++,t=Sk(e,n);break}}return new LO(this,e,n,t-Ck(e,n)+1)}}toJulianDay(e){return e.year<uk||e.year>dk?super.toJulianDay(e):ck+Ck(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<uk||e.year>dk?super.getDaysInMonth(e):Sk(e.year,e.month)}getDaysInYear(e){return e.year<uk||e.year>dk?super.getDaysInYear(e):wk(e.year)}},Ek=347997,Dk=25920,Ok=765433;function kk(e){return SD(e*7+1,19)<7}function Ak(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return SD(3*(r+1),7)<3&&(r+=1),r}function jk(e){let t=Ak(e-1),n=Ak(e);return Ak(e+1)-n===356?2:+(n-t===382)}function Mk(e){return Ak(e)+jk(e)}function Nk(e){return Mk(e+1)-Mk(e)}function Pk(e){let t=Nk(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Fk(e,t){if(t>=6&&!kk(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Pk(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?kk(e)?30:0:30}var Ik=class{fromJulianDay(e){let t=e-Ek,n=t*Dk/Ok,r=Math.floor((19*n+234)/235)+1,i=Mk(r),a=Math.floor(t-i);for(;a<1;)r--,i=Mk(r),a=Math.floor(t-i);let o=1,s=0;for(;s<a;)s+=Fk(r,o),o++;o--,s-=Fk(r,o);let c=a-s;return new LO(this,r,o,c)}toJulianDay(e){let t=Mk(e.year);for(let n=1;n<e.month;n++)t+=Fk(e.year,n);return t+e.day+Ek}getDaysInMonth(e){return Fk(e.year,e.month)}getMonthsInYear(e){return kk(e.year)?13:12}getDaysInYear(e){return Nk(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return[`AM`]}balanceYearMonth(e,t){t.year!==e.year&&(kk(t.year)&&!kk(e.year)&&t.month>6?e.month--:!kk(t.year)&&kk(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier=`hebrew`}},Lk=1723856,Rk=1824665,zk=5500;function Bk(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Vk(e,t){let n=Math.floor(4*(t-e)/1461);t>=Bk(e,n+1,1,1)&&n++;let r=1+Math.floor((t-Bk(e,n,1,1))/30),i=t+1-Bk(e,n,r,1);return[n,r,i]}function Hk(e){return Math.floor(e%4/3)}function Uk(e,t){return t%13==0?Hk(e)+5:30}var Wk=class{fromJulianDay(e){let[t,n,r]=Vk(Lk,e),i=`AM`;return t<=0&&(i=`AA`,t+=zk),new LO(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`AA`&&(t-=zk),Bk(Lk,t,e.month,e.day)}getDaysInMonth(e){return Uk(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Hk(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return e.era===`AA`?9999:9991}getEras(){return[`AA`,`AM`]}constructor(){this.identifier=`ethiopic`}},Gk=class extends Wk{fromJulianDay(e){let[t,n,r]=Vk(Lk,e);return t+=zk,new LO(this,`AA`,t,n,r)}getEras(){return[`AA`]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier=`ethioaa`}},Kk=class extends Wk{fromJulianDay(e){let[t,n,r]=Vk(Rk,e),i=`CE`;return t<=0&&(i=`BCE`,t=1-t),new LO(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Bk(Rk,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Uk(t,e.month)}isInverseEra(e){return e.era===`BCE`}balanceDate(e){e.year<=0&&(e.era=e.era===`BCE`?`CE`:`BCE`,e.year=1-e.year)}getEras(){return[`BCE`,`CE`]}getYearsInEra(e){return e.era===`BCE`?9999:9715}constructor(...e){super(...e),this.identifier=`coptic`}};function qk(e){switch(e){case`buddhist`:return new YO;case`ethiopic`:return new Wk;case`ethioaa`:return new Gk;case`coptic`:return new Kk;case`hebrew`:return new Ik;case`indian`:return new sk;case`islamic-civil`:return new gk;case`islamic-tbla`:return new _k;case`islamic-umalqura`:return new Tk;case`japanese`:return new KO;case`persian`:return new ik;case`roc`:return new ek;default:return new kD}}var Jk=new Map,Yk=class{constructor(e,t={}){this.formatter=Zk(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return tA()&&(this.resolvedHourCycle||=nA(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}},Xk={true:{ja:`h11`},false:{}};function Zk(e,t={}){if(typeof t.hour12==`boolean`&&$k()){t={...t};let n=Xk[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(Jk.has(n))return Jk.get(n);let r=new Intl.DateTimeFormat(e,t);return Jk.set(n,r),r}var Qk=null;function $k(){return Qk??=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1}).format(new Date(2020,2,3,0))===`24`,Qk}var eA=null;function tA(){return eA??=new Intl.DateTimeFormat(`fr`,{hour:`numeric`,hour12:!1}).resolvedOptions().hourCycle===`h12`,eA}function nA(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,``),e+=(e.includes(`-u-`)?``:`-u`)+`-nu-latn`;let n=Zk(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}function rA(e){e=xD(e??{},iA);let{locale:t}=mw();return(0,x.useMemo)(()=>new Yk(t,e),[t,e])}function iA(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function aA(e,t){let n=(0,x.useRef)(!0),r=(0,x.useRef)(null),i=tw(e);(0,x.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,x.useEffect)(()=>{let e=r.current;n.current?n.current=!1:(!e||t.some((t,n)=>!Object.is(t,e[n])))&&i(),r.current=t},t)}function oA(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function sA(e,t){let n=e;for(oA(n,t)&&(n=n.parentElement);n&&!oA(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function cA(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(oA(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function lA(e,t,n={}){e!==t&&uA(e,t,t.getBoundingClientRect(),n)}function uA(e,t,n,r={}){let{block:i=`nearest`,inline:a=`nearest`}=r,o=e.scrollTop,s=e.scrollLeft,c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,O=parseFloat(u.borderRightWidth)||0,k=n.top-_,A=n.bottom+v,j=n.left-y,M=n.right+b,ee=e===d?0:D+O,N=e===d?0:T+E,P=e===d?0:e.offsetWidth-e.clientWidth-ee,te=e===d?0:e.offsetHeight-e.clientHeight-N,F=p+(f?0:T)+x,ne=m-(f?0:E)-S-te,re=h+(f?0:D)+C,ie=g-(f?0:O)-w;QS()&&eC()||u.direction===`ltr`?ie-=P:u.direction===`rtl`&&(re+=P);let ae=k<F||A>ne,oe=j<re||M>ie;if(ae&&i===`start`)o+=k-F;else if(ae&&i===`center`)o+=(k+A)/2-(F+ne)/2;else if(ae&&i===`end`)o+=A-ne;else if(ae&&i===`nearest`){let e=k-F,t=A-ne;o+=Math.abs(e)<=Math.abs(t)?e:t}if(oe&&a===`start`)s+=j-re;else if(oe&&a===`center`)s+=(j+M)/2-(re+ie)/2;else if(oe&&a===`end`)s+=M-ie;else if(oe&&a===`nearest`){let e=j-re,t=M-ie;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function dA(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=cA(e,!0);for(let t of i)lA(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?cA(n,!0):[];for(let e of i)lA(e,n,{block:`center`,inline:`center`});for(let t of cA(e,!0))lA(t,e)}}}}var fA=0,pA=new Map;function mA(e){let[t,n]=(0,x.useState)();return Mx(()=>{if(!e)return;let t=pA.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${fA++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},pA.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),pA.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var hA={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function gA(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,x.useState)(!1),{focusWithinProps:a}=EE({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,x.useMemo)(()=>r?t:t?{...hA,...t}:hA,[r]);return{visuallyHiddenProps:{...a,style:o}}}function _A(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=gA(e);return x.createElement(n,H(a,o),t)}var vA=(0,x.createContext)(null),yA=(0,x.forwardRef)(function(e,t){return(0,x.useContext)(vA)?.isInvalid?x.createElement(bA,{...e,ref:t}):null}),bA=(0,x.forwardRef)((e,t)=>{let n=(0,x.useContext)(vA),{elementType:r,...i}=e,a=K(i,{global:!0}),o=iS({...i,defaultClassName:`react-aria-FieldError`,defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(` `),values:n});return o.children==null?null:x.createElement(bD,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),xA={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},SA={...xA,customError:!0,valid:!1},CA={isInvalid:!1,validationDetails:xA,validationErrors:[]},wA=(0,x.createContext)({}),TA=`__reactAriaFormValidationState`;function EA(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[TA];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return DA(e)}function DA(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s=`aria`}=e;n&&(t||=n===`invalid`);let c=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:SA},l=(0,x.useMemo)(()=>!o||i==null?null:AA(kA(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,x.useContext)(wA),d=(0,x.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>OA(u[e])):OA(u[r]):[],[u,r]),[f,p]=(0,x.useState)(u),[m,h]=(0,x.useState)(!1);u!==f&&(p(u),h(!1));let g=(0,x.useMemo)(()=>AA(m?[]:d),[m,d]),_=(0,x.useRef)(CA),[v,y]=(0,x.useState)(CA),b=(0,x.useRef)(CA),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;jA(e,b.current)||(b.current=e,y(e))},[C,w]=(0,x.useState)(!1);return(0,x.useEffect)(S),{realtimeValidation:c||g||l||a||CA,displayValidation:s===`native`?c||g||v:c||g||l||a||v,updateValidation(e){s===`aria`&&!jA(v,e)?y(e):_.current=e},resetValidation(){let e=CA;jA(e,b.current)||(b.current=e,y(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function OA(e){return e?Array.isArray(e)?e:[e]:[]}function kA(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return OA(n)}return[]}function AA(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:SA}:null}function jA(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}var MA=(0,x.createContext)(null),NA=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,MA);let{validationErrors:n,validationBehavior:r=`native`,children:i,className:a,...o}=e;return x.createElement(U.form,{noValidate:r!==`native`,...o,ref:t,className:a||`react-aria-Form`},x.createElement(MA.Provider,{value:{...e,validationBehavior:r}},x.createElement(wA.Provider,{value:n??{}},i)))}),PA=new WeakMap;function FA(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=RE(e),s=Qx([!!t,!!n,r,i]),c=Qx([!!t,!!n,r,i]);return o=H(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}function IA(e,t,n){let r=tw(e=>{n&&!e.defaultPrevented&&n(t)});(0,x.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function LA(e,t,n){let{validationBehavior:r,focus:i}=e;Mx(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(zA(n.current))}});let a=(0,x.useRef)(!1),o=tw(()=>{a.current||t.resetValidation()}),s=tw(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&BA(r)===n.current&&(i?i():n.current?.focus(),PC(`keyboard`)),e.preventDefault()}),c=tw(()=>{t.commitValidation()});(0,x.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&G(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function RA(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function zA(e){return{isInvalid:!e.validity.valid,validationDetails:RA(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function BA(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}function VA(e=!0){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(!1),i=(0,x.useCallback)(e=>{r.current=!0,n(!!e)},[]);return Mx(()=>{r.current||n(!1)},[]),[i,t]}function HA(e=!0){let t=Xx(),[n,r]=VA(e);return{id:r?t:void 0,ref:n}}function UA(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,form:s,children:c,isRequired:l,validationBehavior:u=`aria`,"aria-label":d,"aria-labelledby":f,"aria-describedby":p,onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:v,onClick:y}=e,b=EA({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=b.displayValidation;LA(e,b,n);let T=e=>{e.stopPropagation(),t.setSelected(G(e).checked)},{pressProps:E,isPressed:D}=_E({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:v,onClick:y,isDisabled:r}),[O,k]=(0,x.useState)(!1),{pressProps:A}=_E({onPressStart(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(m?.(e),g?.(!0),k(!0))},onPressEnd(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(h?.(e),g?.(!1),k(!1))},onPressUp(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():v?.(e)},onClick:y,onPress(r){if(r.pointerType===`keyboard`||r.pointerType===`virtual`){r.continuePropagation();return}_?.(r),t.toggle(),n.current?.focus();let{[TA]:i}=e,{commitValidation:a}=i||b;a()},isDisabled:r||i}),{focusableProps:j}=bT(e,n),M=H(E,j),ee=K(e,{labelable:!0});IA(n,t.defaultSelected,t.setSelected);let N=HA(),P=HA();return{labelProps:H(A,{onClick:e=>e.preventDefault()}),inputProps:H(ee,{checked:t.isSelected,"aria-required":l&&u===`aria`||void 0,required:l&&u===`native`,"aria-invalid":S||e.validationState===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-controls":e[`aria-controls`],"aria-readonly":i||void 0,"aria-describedby":[N.id,P.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:N,errorMessageProps:P,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function WA(e,t,n){let{labelProps:r,inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}=UA(e,t,n),{isIndeterminate:m}=e;return(0,x.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:H(r,(0,x.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}}function GA(e={}){let{isReadOnly:t}=e,[n,r]=Aw(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=(0,x.useState)(n);function a(e){t||r(e)}function o(){t||r(!n)}return{isSelected:n,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:o}}function KA(e,t,n){let r=GA({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:i,form:a,descriptionId:o,errorMessageId:s,validationBehavior:c}=PA.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=EA({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,x.useRef)(CA),d=()=>{t.setInvalid(e.value,l.isInvalid?l:u.current)};(0,x.useEffect)(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:l,p=c===`native`?t.displayValidation:f,m=WA({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[TA]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){u.current=e,d()}}},r,n);return{...m,inputProps:{...m.inputProps,"aria-describedby":[m.inputProps[`aria-describedby`],t.isInvalid?s:null,o].filter(Boolean).join(` `)||void 0}}}var qA=(0,x.createContext)(null),JA=(0,x.createContext)(null),YA=(0,x.createContext)(null),XA=(0,x.createContext)(null);function ZA(e,t){let{validationBehavior:n}=aS(MA)||{},r=e.validationBehavior??n??`native`,i=(0,x.useContext)(YA),a=tS((0,x.useMemo)(()=>$x(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...cS(e),children:typeof e.children==`function`||e.children,value:e.value,validationBehavior:r};return[i?KA(o,i,a):WA(o,GA(e),a),a]}var QA=(0,x.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=oS(r,t,qA);let[i,a]=ZA(e,n);return x.createElement(XA.Provider,{value:{...i,inputRef:a,defaultClassName:`react-aria-Checkbox`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}},x.createElement($A,{...e,ref:t}))}),$A=(0,x.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isIndeterminate:d,isRequired:f}=(0,x.useContext)(XA),{isFocused:p,isFocusVisible:m,focusProps:h}=DE(),g=a||o,{hoverProps:_,isHovered:v}=NE({...e,isDisabled:g}),y=iS({...e,defaultClassName:u,values:{isSelected:i,isIndeterminate:d||!1,isPressed:s,isHovered:v,isFocused:p,isFocusVisible:m,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:f||!1}}),b=K(e,{global:!0});return delete b.id,delete b.onClick,x.createElement(U.label,{...H(b,n,_,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":f||void 0},x.createElement(_A,{elementType:`span`},x.createElement(`input`,{...H(r,h),ref:l})),y.children)}),ej=(0,x.createContext)({}),tj=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,ej);let{isDisabled:n,isInvalid:r,isReadOnly:i,onHoverStart:a,onHoverChange:o,onHoverEnd:s,...c}=e;n??=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`,r??=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`;let{hoverProps:l,isHovered:u}=NE({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=DE({within:!0}),m=iS({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return x.createElement(U.div,{...H(c,p,l),...m,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},m.children)}),nj=(0,x.createContext)({}),rj=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},ij=CT(function(e,t){[e,t]=oS(e,t,nj);let{hoverProps:n,isHovered:r}=NE({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=DE({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=iS({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return x.createElement(U.input,{...H(rj(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});function aj(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=Aw(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=bT(e,t),d=EA({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:v}=FA({...e,isInvalid:f,errorMessage:e.errorMessage||p}),y=K(e,{labelable:!0}),b={type:o,pattern:e.pattern},[S]=(0,x.useState)(c);return IA(t,e.defaultValue??S,l),LA(e,d,t),{labelProps:h,inputProps:H(y,n===`input`?b:void 0,{disabled:r,readOnly:a,required:i&&s===`native`,"aria-required":i&&s===`aria`||void 0,"aria-invalid":f||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-activedescendant":e[`aria-activedescendant`],"aria-autocomplete":e[`aria-autocomplete`],"aria-haspopup":e[`aria-haspopup`],"aria-controls":e[`aria-controls`],value:c,onChange:e=>l(G(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...g}),descriptionProps:_,errorMessageProps:v,isInvalid:f,validationErrors:p,validationDetails:m}}function oj(){return typeof window<`u`&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges==`function`}function sj(e,t,n){let r=tw(e=>{let r=n.current;if(!r)return;let i=null;switch(e.inputType){case`historyUndo`:case`historyRedo`:return;case`insertLineBreak`:return;case`deleteContent`:case`deleteByCut`:case`deleteByDrag`:i=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentForward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentBackward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteSoftLineBackward`:case`deleteHardLineBackward`:i=r.value.slice(r.selectionStart);break;default:e.data!=null&&(i=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}i!=null&&t.validate(i)||e.preventDefault()});(0,x.useEffect)(()=>{if(!oj()||!n.current)return;let e=n.current;return e.addEventListener(`beforeinput`,r,!1),()=>{e.removeEventListener(`beforeinput`,r,!1)}},[n]);let i=oj()?null:e=>{let n=G(e).value.slice(0,G(e).selectionStart)+e.data+G(e).value.slice(G(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:c,...l}=aj(e,n),u=(0,x.useRef)(null);return{inputProps:H(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=u.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:c,...l}}function cj(e,t){let{onScroll:n,isDisabled:r}=e,i=(0,x.useCallback)(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);nw(t,`wheel`,r?void 0:i)}var lj={};lj={Empty:`فارغ`};var uj={};uj={Empty:`Изпразни`};var dj={};dj={Empty:`Prázdné`};var fj={};fj={Empty:`Tom`};var pj={};pj={Empty:`Leer`};var mj={};mj={Empty:`Άδειο`};var hj={};hj={Empty:`Empty`};var gj={};gj={Empty:`Vacío`};var _j={};_j={Empty:`Tühjenda`};var vj={};vj={Empty:`Tyhjä`};var yj={};yj={Empty:`Vide`};var bj={};bj={Empty:`ריק`};var xj={};xj={Empty:`Prazno`};var Sj={};Sj={Empty:`Üres`};var Cj={};Cj={Empty:`Vuoto`};var wj={};wj={Empty:`空`};var Tj={};Tj={Empty:`비어 있음`};var Ej={};Ej={Empty:`Tuščias`};var Dj={};Dj={Empty:`Tukšs`};var Oj={};Oj={Empty:`Tom`};var kj={};kj={Empty:`Leeg`};var Aj={};Aj={Empty:`Pusty`};var jj={};jj={Empty:`Vazio`};var Mj={};Mj={Empty:`Vazio`};var Nj={};Nj={Empty:`Gol`};var Pj={};Pj={Empty:`Не заполнено`};var Fj={};Fj={Empty:`Prázdne`};var Ij={};Ij={Empty:`Prazen`};var Lj={};Lj={Empty:`Prazno`};var Rj={};Rj={Empty:`Tomt`};var zj={};zj={Empty:`Boş`};var Bj={};Bj={Empty:`Пусто`};var Vj={};Vj={Empty:`空`};var Hj={};Hj={Empty:`空白`};var Uj={};Uj={"ar-AE":lj,"bg-BG":uj,"cs-CZ":dj,"da-DK":fj,"de-DE":pj,"el-GR":mj,"en-US":hj,"es-ES":gj,"et-EE":_j,"fi-FI":vj,"fr-FR":yj,"he-IL":bj,"hr-HR":xj,"hu-HU":Sj,"it-IT":Cj,"ja-JP":wj,"ko-KR":Tj,"lt-LT":Ej,"lv-LV":Dj,"nb-NO":Oj,"nl-NL":kj,"pl-PL":Aj,"pt-BR":jj,"pt-PT":Mj,"ro-RO":Nj,"ru-RU":Pj,"sk-SK":Fj,"sl-SI":Ij,"sr-SP":Lj,"sv-SE":Rj,"tr-TR":zj,"uk-UA":Bj,"zh-CN":Vj,"zh-TW":Hj};function Wj(e){return e&&e.__esModule?e.default:e}var Gj=()=>{};function Kj(e){let t=(0,x.useRef)(void 0),{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:c,onIncrement:l,onIncrementPage:u,onDecrement:d,onDecrementPage:f,onDecrementToMin:p,onIncrementToMax:m}=e,h=Ow(Wj(Uj),`@react-aria/spinbutton`),g=(0,x.useRef)(!1),_=(0,x.useCallback)(()=>{clearTimeout(t.current),g.current=!1},[]),v=tw(()=>{_()});(0,x.useEffect)(()=>()=>v(),[]);let{keyboardProps:y}=hT({isDisabled:o||s,shortcuts:{PageUp:()=>{if(u)u();else if(l)l();else return!1},ArrowUp:()=>{if(l)l();else return!1},PageDown:()=>{if(f)f();else if(d)d();else return!1},ArrowDown:()=>{if(d)d();else return!1},Home:()=>{if(p)p();else return!1},End:()=>{if(m)m();else return!1}},allowRepeats:!0}),b=(0,x.useRef)(!1),S=()=>{b.current=!0},C=()=>{b.current=!1},w=r===``?h.format(`Empty`):(r||`${n}`).replace(`-`,`−`);(0,x.useEffect)(()=>{b.current&&(uD(`assertive`),lD(w,`assertive`))},[w]);let T=(0,x.useCallback)(()=>{_()},[_]),E=tw(l??Gj),D=tw(d??Gj),O=tw(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(E(),k(60))}),k=tw(e=>{v(),g.current=!0,t.current=window.setTimeout(O,e)}),A=tw(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(D(),j(60))}),j=tw(e=>{v(),g.current=!0,t.current=window.setTimeout(A,e)}),M=e=>{e.preventDefault()},{addGlobalListener:ee,removeAllGlobalListeners:N}=dE(),P=(0,x.useRef)(!1),[te,F]=(0,x.useState)(null);(0,x.useEffect)(()=>{te===`touch`?k(600):te?k(400):te||v()},[te]);let[ne,re]=(0,x.useState)(null);return(0,x.useEffect)(()=>{ne===`touch`?j(600):ne?j(400):ne||v()},[ne]),{spinButtonProps:{role:`spinbutton`,"aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":c||void 0,...y,onFocus:S,onBlur:C},incrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(ee(window,`pointercancel`,T,{capture:!0}),P.current=!1,F(`touch`)):(l?.(),F(`mouse`)),ee(window,`contextmenu`,M)},onPressUp:e=>{_(),e.pointerType===`touch`&&(P.current=!0),N(),F(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&P.current&&l?.(),P.current=!1,F(null)},onFocus:S,onBlur:C},decrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(ee(window,`pointercancel`,T,{capture:!0}),P.current=!1,re(`touch`)):(d?.(),re(`mouse`))},onPressUp:e=>{_(),e.pointerType===`touch`&&(P.current=!0),N(),re(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&P.current&&d?.(),P.current=!1,re(null)},onFocus:S,onBlur:C}}}var qj={};qj={decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`حقل رقمي`};var Jj={};Jj={decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`Номер на полето`};var Yj={};Yj={decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`Číselné pole`};var Xj={};Xj={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:`Talfelt`};var Zj={};Zj={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:`Nummernfeld`};var Qj={};Qj={decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`Πεδίο αριθμού`};var $j={};$j={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:`Number field`};var eM={};eM={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var tM={};tM={decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri väli`};var nM={};nM={decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokenttä`};var rM={};rM={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:`Champ de nombre`};var iM={};iM={decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`שדה מספר`};var aM={};aM={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var oM={};oM={decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Számmező`};var sM={};sM={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:`Campo numero`};var cM={};cM={decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`数値フィールド`};var lM={};lM={decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`번호 필드`};var uM={};uM={decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:`Numerio laukas`};var dM={};dM={decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skaitļu lauks`};var fM={};fM={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:`Tallfelt`};var pM={};pM={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:`Getalveld`};var mM={};mM={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:`Pole numeru`};var hM={};hM={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var gM={};gM={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo numérico`};var _M={};_M={decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`Câmp numeric`};var vM={};vM={decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`Числовое поле`};var yM={};yM={decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`Číselné pole`};var bM={};bM={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`Številčno polje`};var xM={};xM={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var SM={};SM={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerfält`};var CM={};CM={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Sayı alanı`};var wM={};wM={decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`Поле номера`};var TM={};TM={decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`数字字段`};var EM={};EM={decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`數字欄位`};var DM={};DM={"ar-AE":qj,"bg-BG":Jj,"cs-CZ":Yj,"da-DK":Xj,"de-DE":Zj,"el-GR":Qj,"en-US":$j,"es-ES":eM,"et-EE":tM,"fi-FI":nM,"fr-FR":rM,"he-IL":iM,"hr-HR":aM,"hu-HU":oM,"it-IT":sM,"ja-JP":cM,"ko-KR":lM,"lt-LT":uM,"lv-LV":dM,"nb-NO":fM,"nl-NL":pM,"pl-PL":mM,"pt-BR":hM,"pt-PT":gM,"ro-RO":_M,"ru-RU":vM,"sk-SK":yM,"sl-SI":bM,"sr-SP":xM,"sv-SE":SM,"tr-TR":CM,"uk-UA":wM,"zh-CN":TM,"zh-TW":EM};function OM(e){return e&&e.__esModule?e.default:e}function kM(e,t,n){let{id:r,decrementAriaLabel:i,incrementAriaLabel:a,isDisabled:o,isReadOnly:s,isRequired:c,minValue:l,maxValue:u,autoFocus:d,label:f,formatOptions:p,onBlur:m=()=>{},onFocus:h,onFocusChange:g,onKeyDown:_,onKeyUp:v,description:y,errorMessage:b,isWheelDisabled:S,...C}=e,{increment:w,incrementToMax:T,decrement:E,decrementToMin:D,numberValue:O,inputValue:k,commit:A,commitValidation:j}=t,M=Ow(OM(DM),`@react-aria/numberfield`),ee=(0,x.useCallback)(()=>{let e=n.current?.value??``;(0,DT.flushSync)(()=>{A()}),n.current?.value!==e&&lD(n.current?.value??``,`assertive`)},[A,n]),N=Xx(r),{focusProps:P}=tT({onBlur(){ee()}}),te=nD(p),F=(0,x.useMemo)(()=>te.resolvedOptions(),[te]),ne=nD({...p,currencySign:void 0}),{spinButtonProps:re,incrementButtonProps:ie,decrementButtonProps:ae}=Kj({isDisabled:o,isReadOnly:s,isRequired:c,maxValue:u,minValue:l,onIncrement:w,onIncrementToMax:T,onDecrement:E,onDecrementToMin:D,value:O,textValue:(0,x.useMemo)(()=>isNaN(O)?``:ne.format(O),[ne,O])}),[oe,se]=(0,x.useState)(!1),{focusWithinProps:ce}=EE({isDisabled:o,onFocusWithinChange:se});cj({onScroll:(0,x.useCallback)(e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?w():e.deltaY<0&&E())},[E,w]),isDisabled:S||o||s||!oe},n);let le=(F.maximumFractionDigits??0)>0,ue=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,de=`numeric`;XS()?ue?de=`text`:le&&(de=`decimal`):nC()&&(ue?de=`numeric`:le&&(de=`decimal`));let fe=e=>{t.validate(e)&&t.setInputValue(e)},pe=t=>{e.onPaste?.(t);let n=G(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),A(t.clipboardData?.getData?.(`text/plain`)?.trim()??``))},me=K(e),{keyboardProps:I}=hT({isDisabled:o||s,shortcuts:{Enter:()=>((0,DT.flushSync)(()=>{A()}),j(),{shouldPreventDefault:!1})},onKeyDown:_,onKeyUp:v}),{isInvalid:he,validationErrors:ge,validationDetails:_e}=t.displayValidation,{labelProps:ve,inputProps:ye,descriptionProps:be,errorMessageProps:xe}=sj({...C,...me,name:void 0,form:void 0,label:f,autoFocus:d,isDisabled:o,isReadOnly:s,isRequired:c,validate:void 0,[TA]:t,value:k,defaultValue:`!`,autoComplete:`off`,"aria-label":e[`aria-label`]||void 0,"aria-labelledby":e[`aria-labelledby`]||void 0,id:N,type:`text`,inputMode:de,onChange:fe,onBlur:m,onFocus:h,onFocusChange:g,onPaste:pe,description:y,errorMessage:b},t,n),Se=H(I,ye);IA(n,t.defaultNumberValue,t.setNumberValue),jM(t,e.validationBehavior,e.commitBehavior,n,t.minValue,t.maxValue,e.step,t.numberValue);let Ce=H(re,P,Se,{role:null,"aria-roledescription":QS()?null:M.format(`numberField`),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:`off`,spellCheck:`false`});e.validationBehavior===`native`&&(Ce[`aria-required`]=void 0);let we=e=>{CS()!==n.current&&(e.pointerType===`mouse`?n.current?.focus():e.target.focus())},Te=e[`aria-label`]||(typeof e.label==`string`?e.label:``),Ee;Te||(Ee=e.label==null?e[`aria-labelledby`]:ve.id);let De=Xx(),Oe=Xx(),ke=H(ie,{"aria-label":a||M.format(`increase`,{fieldLabel:Te}).trim(),id:Ee&&!a?De:null,"aria-labelledby":Ee&&!a?`${De} ${Ee}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:we}),Ae=H(ae,{"aria-label":i||M.format(`decrease`,{fieldLabel:Te}).trim(),id:Ee&&!i?Oe:null,"aria-labelledby":Ee&&!i?`${Oe} ${Ee}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:we});return{groupProps:{...ce,role:`group`,"aria-disabled":o,"aria-invalid":he?`true`:void 0},labelProps:ve,inputProps:Ce,incrementButtonProps:ke,decrementButtonProps:Ae,errorMessageProps:xe,descriptionProps:be,isInvalid:he,validationErrors:ge,validationDetails:_e}}var AM=null;function jM(e,t,n,r,i,a,o,s){Mx(()=>{let c=r.current;if(n!==`validate`||e.realtimeValidation.isInvalid||!c||c.disabled||(!AM&&typeof document<`u`&&(AM=document.createElement(`input`),AM.type=`number`),!AM))return;AM.min=i!=null&&!isNaN(i)?String(i):``,AM.max=a!=null&&!isNaN(a)?String(a):``,AM.step=o!=null&&!isNaN(o)?String(o):``,AM.value=s!=null&&!isNaN(s)?String(s):``;let l=c.validity.valid&&AM.validity.valid,u=c.validationMessage||AM.validationMessage,d={isInvalid:!l,validationErrors:u?[u]:[],validationDetails:{badInput:c.validity.badInput,customError:c.validity.customError,patternMismatch:c.validity.patternMismatch,rangeOverflow:AM.validity.rangeOverflow,rangeUnderflow:AM.validity.rangeUnderflow,stepMismatch:AM.validity.stepMismatch,tooLong:c.validity.tooLong,tooShort:c.validity.tooShort,typeMismatch:c.validity.typeMismatch,valueMissing:c.validity.valueMissing,valid:l}};e.updateValidation(d),t===`native`&&!AM.validity.valid&&c.setCustomValidity(AM.validationMessage)})}function MM(e){let{minValue:t,maxValue:n,step:r,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:c,isDisabled:l,isReadOnly:u,commitBehavior:d=`snap`}=e;a===null&&(a=NaN);let f=(0,x.useCallback)(e=>r===void 0||isNaN(r)?rD(e,t,n):aD(e,t,n,r),[r,t,n]);a!==void 0&&!isNaN(a)&&d===`snap`&&(a=f(a)),!isNaN(o)&&d===`snap`&&(o=f(o));let[p,m]=Aw(a,isNaN(o)?NaN:o,s),[h]=(0,x.useState)(p),[g,_]=(0,x.useState)(()=>isNaN(p)?``:new VE(c,i).format(p)),v=(0,x.useMemo)(()=>new KE(c,i),[c,i]),y=(0,x.useMemo)(()=>v.getNumberingSystem(g),[v,g]),b=(0,x.useMemo)(()=>new VE(c,{...i,numberingSystem:y}),[c,i,y]),S=(0,x.useMemo)(()=>b.resolvedOptions(),[b]),C=(0,x.useCallback)(e=>isNaN(e)||e===null?``:b.format(e),[b]),w=EA({...e,value:p}),T=r!==void 0&&!isNaN(r)?r:1;S.style===`percent`&&(r===void 0||isNaN(r))&&(T=.01);let[E,D]=(0,x.useState)(p),[O,k]=(0,x.useState)(c),[A,j]=(0,x.useState)(i);Object.is(p,E)&&c===O&&NM(i,A)||(_(C(p)),D(p),k(c),j(i));let M=(0,x.useMemo)(()=>v.parse(g),[v,g]),ee=e=>{let t=e===void 0?g:e,n=M;if(e!==void 0&&(n=v.parse(t)),!t.length){m(NaN),_(a===void 0?``:C(p));return}if(isNaN(n)){_(C(p));return}let r=d===`snap`?f(n):n;r=v.parse(C(r));let i=r!==p;m(r),_(C(a===void 0?r:p)),i&&w.commitValidation()},N=(e,r=0)=>{let i=M;if(isNaN(i))return aD(isNaN(r)?0:r,t,n,T);{let r=aD(i,t,n,T);return e===`+`&&r>i||e===`-`&&r<i?r:aD(PM(e,i,T),t,n,T)}},P=()=>{let e=N(`+`,t);e===p&&_(C(e)),m(e),w.commitValidation()},te=()=>{let e=N(`-`,n);e===p&&_(C(e)),m(e),w.commitValidation()},F=()=>{n!=null&&(m(aD(n,t,n,T)),w.commitValidation())},ne=()=>{t!=null&&(m(t),w.commitValidation())},re=(0,x.useMemo)(()=>!l&&!u&&(isNaN(M)||n===void 0||isNaN(n)||aD(M,t,n,T)>M||PM(`+`,M,T)<=n),[l,u,t,n,T,M]),ie=(0,x.useMemo)(()=>!l&&!u&&(isNaN(M)||t===void 0||isNaN(t)||aD(M,t,n,T)<M||PM(`-`,M,T)>=t),[l,u,t,n,T,M]),ae=e=>v.isValidPartialNumber(e,t,n);return{...w,validate:ae,increment:P,incrementToMax:F,decrement:te,decrementToMin:ne,canIncrement:re,canDecrement:ie,minValue:t,maxValue:n,numberValue:M,defaultNumberValue:isNaN(o)?h:o,setNumberValue:m,setInputValue:_,inputValue:g,commit:ee}}function NM(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function PM(e,t,n){let r=e===`+`?t+n:t-n;if(t%1!=0||n%1!=0){let i=t.toString().split(`.`),a=n.toString().split(`.`),o=i[1]&&i[1].length||0,s=a[1]&&a[1].length||0,c=10**Math.max(o,s);t=Math.round(t*c),n=Math.round(n*c),r=e===`+`?t+n:t-n,r/=c}return r}var FM={};FM={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var IM={};IM={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var LM={};LM={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var RM={};RM={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var zM={};zM={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var BM={};BM={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var VM={};VM={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var HM={};HM={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var UM={};UM={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var WM={};WM={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var GM={};GM={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var KM={};KM={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var qM={};qM={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var JM={};JM={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var YM={};YM={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var XM={};XM={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var ZM={};ZM={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var QM={};QM={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var $M={};$M={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var eN={};eN={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var tN={};tN={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var nN={};nN={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var rN={};rN={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var iN={};iN={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var aN={};aN={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var oN={};oN={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var sN={};sN={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var cN={};cN={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var lN={};lN={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var uN={};uN={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var dN={};dN={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var fN={};fN={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var pN={};pN={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var mN={};mN={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var hN={};hN={"ar-AE":FM,"bg-BG":IM,"cs-CZ":LM,"da-DK":RM,"de-DE":zM,"el-GR":BM,"en-US":VM,"es-ES":HM,"et-EE":UM,"fi-FI":WM,"fr-FR":GM,"he-IL":KM,"hr-HR":qM,"hu-HU":JM,"it-IT":YM,"ja-JP":XM,"ko-KR":ZM,"lt-LT":QM,"lv-LV":$M,"nb-NO":eN,"nl-NL":tN,"pl-PL":nN,"pt-BR":rN,"pt-PT":iN,"ro-RO":aN,"ru-RU":oN,"sk-SK":sN,"sl-SI":cN,"sr-SP":lN,"sv-SE":uN,"tr-TR":dN,"uk-UA":fN,"zh-CN":pN,"zh-TW":mN};var gN=(0,x.createContext)({}),_N=(0,x.createContext)(null),vN=(0,x.forwardRef)(function(e,t){let{render:n}=(0,x.useContext)(_N);return x.createElement(x.Fragment,null,n(e,t))});function yN(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=(0,x.useCallback)(e=>{if(r||t?.isDropTarget(e))return n?n(e):x.createElement(vN,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function bN(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`)e=n.collection.getKeyAfter(e);else{if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}}i=e??t??i}return(0,x.useMemo)(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var xN=(0,x.createContext)({}),SN=zT(Fw,function(e,t){return[e,t]=oS(e,t,xN),x.createElement(U.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),CN=(0,x.createContext)(null);function wN(e){let t=(0,x.useRef)({});return x.createElement(CN.Provider,{value:t},e.children)}var TN=(0,x.createContext)({isSelected:!1});function EN(e){let t=K(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var DN=(0,x.createContext)({}),ON=zT(class extends Nw{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},function(e,t){[e,t]=oS(e,t,DN);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let l=U[c],{separatorProps:u}=EN({...s,elementType:n,orientation:r}),d=K(e,{global:!0});return x.createElement(l,{render:e.render,...H(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),kN=new WeakMap;function AN(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function jN(e,t){let n=kN.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${AN(t)}`}var MN=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!W(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return W(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function NN(e,t,n,r){return SS()?new MN(e,t,n,r):e.createTreeWalker(t,n,r)}var PN=x.createContext(null),FN=`react-aria-focus-scope-restore`,IN=null;function LN(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=(0,x.useRef)([]),{parentNode:c}=(0,x.useContext)(PN)||{},l=(0,x.useMemo)(()=>new sP({scopeRef:s}),[s]);Mx(()=>{let e=c||cP.root;if(cP.getTreeNode(e.scopeRef)&&IN&&!JN(IN,e.scopeRef)){let t=cP.getTreeNode(IN);t&&(e=t)}e.addChild(l),cP.addNode(l)},[l,c]),Mx(()=>{let e=cP.getTreeNode(s);e&&(e.contain=!!n)},[n]),Mx(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(FN,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(FN,n)}},[t]),$N(s,r,n),UN(s,n),tP(s,r,n),QN(s,i),(0,x.useEffect)(()=>{let e=CS(pS(s.current?s.current[0]:void 0)),t=null;if(GN(e,s.current)){for(let n of cP.traverse())n.scopeRef&&GN(e,n.scopeRef.current)&&(t=n);t===cP.getTreeNode(s)&&(IN=t.scopeRef)}},[s]),Mx(()=>()=>{let e=cP.getTreeNode(s)?.parent?.scopeRef??null;s!==IN&&!JN(s,IN)||e&&!cP.getTreeNode(e)||(IN=e),cP.removeTreeNode(s)},[s]);let u=(0,x.useMemo)(()=>RN(s),[]),d=(0,x.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return x.createElement(PN.Provider,{value:d},x.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,x.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function RN(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||CS(pS(n[0]??void 0)),c=n[0].previousElementSibling,l=rP(zN(n),{tabbable:i,accept:o},n);l.currentNode=GN(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&YN(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||CS(pS(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=rP(zN(n),{tabbable:i,accept:o},n);l.currentNode=GN(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&YN(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=rP(zN(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&YN(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=rP(zN(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&YN(o,!0),o}}}function zN(e){return e[0].parentElement}function BN(e){let t=cP.getTreeNode(IN);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function VN(e){if(!e.form)return Array.from(pS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=mS(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function HN(e){if(e.checked)return!0;let t=VN(e);return t.length>0&&!t.some(e=>e.checked)}function UN(e,t){let n=(0,x.useRef)(void 0),r=(0,x.useRef)(void 0);Mx(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=pS(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!BN(e)||t.isComposing)return;let n=CS(a),r=e.current;if(!r||!GN(n,r))return;let i=rP(zN(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(YN(o,!0),o instanceof mS(o).HTMLInputElement&&o.select())},s=t=>{(!IN||JN(IN,e))&&GN(G(t),e.current)?(IN=e,n.current=G(t)):BN(e)&&!KN(G(t),e)?n.current?YN(n.current):IN&&IN.current&&ZN(IN.current):BN(e)&&(n.current=G(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=NC(),i=(r===`virtual`||r===null)&&nC()&&tC(),o=CS(a);if(!i&&o&&BN(e)&&!KN(o,e)){IN=e;let r=G(t);r&&r.isConnected?(n.current=r,YN(n.current)):IN.current&&ZN(IN.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),Mx(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function WN(e){return KN(e)}function GN(e,t){return!e||!t?!1:t.some(t=>W(t,e))}function KN(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of cP.traverse(cP.getTreeNode(t)))if(n&&GN(e,n.current))return!0;return!1}function qN(e){return KN(e,IN)}function JN(e,t){let n=cP.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function YN(e,t=!1){if(e!=null&&!t)try{eT(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function XN(e,t=!0){let n=e[0].previousElementSibling,r=zN(e),i=rP(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=zN(e),i=rP(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function ZN(e,t=!0){YN(XN(e,t))}function QN(e,t){let n=x.useRef(t);(0,x.useEffect)(()=>{n.current&&(IN=e,!GN(CS(pS(e.current?e.current[0]:void 0)),IN.current)&&e.current&&ZN(e.current)),n.current=!1},[e])}function $N(e,t,n){Mx(()=>{if(t||n)return;let r=e.current,i=pS(r?r[0]:void 0),a=t=>{let n=G(t);GN(n,e.current)?IN=e:WN(n)||(IN=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function eP(e){let t=cP.getTreeNode(IN);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function tP(e,t,n){let r=(0,x.useRef)(typeof document<`u`?CS(pS(e.current?e.current[0]:void 0)):null);Mx(()=>{let r=e.current,i=pS(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!IN||JN(IN,e))&&GN(CS(i),e.current)&&(IN=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),Mx(()=>{let r=pS(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!BN(e)||t.isComposing)return;let n=r.activeElement;if(!KN(n,e)||!eP(e))return;let i=cP.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=rP(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==r.body||(a=void 0,i.nodeToRestore=void 0),(!s||!KN(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(KN(s,e));t.preventDefault(),t.stopPropagation(),s?YN(s,!0):WN(a)?YN(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),Mx(()=>{let n=pS(e.current?e.current[0]:void 0);if(!t)return;let i=cP.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=cP.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=CS(n);if(t&&i&&(a&&KN(a,e)||a===n.body&&eP(e))){let t=cP.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){nP(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&cP.getTreeNode(n.scopeRef)){let e=XN(n.scopeRef.current,!0);if(e){nP(e);return}}n=n.parent}}})}}},[e,t])}function nP(e){e.dispatchEvent(new CustomEvent(FN,{bubbles:!0,cancelable:!0}))&&YN(e)}function rP(e,t,n){let r=t?.tabbable?zS:RS,i=pS(e?.nodeType===Node.ELEMENT_NODE?e:null),a=NN(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return W(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!HN(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||GN(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function iP(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||CS(pS(r)),l=rP(r,{tabbable:a,accept:s});W(r,c)&&(l.currentNode=c);let u=l.nextNode();return!u&&o&&(l.currentNode=r,u=l.nextNode()),u&&YN(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||CS(pS(r)),l=rP(r,{tabbable:a,accept:s});if(W(r,c))l.currentNode=c;else{let e=aP(l);return e&&YN(e,!0),e??null}let u=l.previousNode();if(!u&&o){l.currentNode=r;let e=aP(l);if(!e)return null;u=e}return u&&YN(u,!0),u??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=rP(r,{tabbable:i,accept:a}).nextNode();return o&&YN(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=aP(rP(r,{tabbable:i,accept:a}));return o&&YN(o,!0),o??null}}}function aP(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var oP=class e{constructor(){this.fastMap=new Map,this.root=new sP({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new sP({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&GN(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},sP=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},cP=new oP;function lP(e){return $S()?e.altKey:e.ctrlKey}function uP(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var dP=new WeakMap;function fP(e){let t=Xx();return dP.set(e,t),t}function pP(e){return dP.get(e)}var mP=1e3;function hP(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,x.useRef)({search:``,timeout:void 0});return(0,x.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},mP)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=gP(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!W(e.currentTarget,G(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.stopPropagation();else{i.current.search=``,clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},mP)}}:void 0}}}function gP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function _P(e,t){let n=(0,x.useRef)(!0),r=(0,x.useRef)(null);Mx(()=>(n.current=!0,()=>{n.current=!1}),[]),Mx(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function vP(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,scrollRef:p=r,linkBehavior:m=`action`,UNSTABLE_focusOnEntry:h}=e,{direction:g}=mw(),_=sC(),v=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!lP(e)){(0,DT.flushSync)(()=>{t.setFocusedKey(n,i)});let a=uP(r,n),o=t.getItemProps(n);if(a){_.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}if(l&&!lP(e)){t.replaceSelection(n);return}}return!1},y=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},b=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},S=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,QC(e));if(t.setFocusedKey(r),r!=null){if(QC(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},C=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`first`:`last`);return}}return!1},w=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`last`:`first`);return}}return!1},T=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,QC(e));if(t.setFocusedKey(r),r!=null){if(QC(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},E=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return v(e,r)}return!1},D=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return v(e,r)}return!1},O=()=>{if(t.selectionMode===`multiple`&&s!==!0)t.selectAll();else return!1},k=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0)t.clearSelection();else return!1},A=()=>{if(!f&&r.current){let e=rP(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=CS();t&&(!TS(t)||i&&!zS(i))&&AS(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},j=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(e,t)=>({[YS()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[YS()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:ee}=hT({shortcuts:{...M(`ArrowDown`,y),...M(`ArrowUp`,b),...M(`ArrowLeft`,C),...M(`ArrowRight`,w),...M(`PageDown`,E),...M(`PageUp`,D)},allowRepeats:!0}),{keyboardProps:N}=hT({shortcuts:{...M(`Home`,S),...M(`End`,T),"Mod+A":O,Escape:k,Tab:A,"Tab+Shift":j}}),P=(0,x.useRef)({top:0,left:0});nw(p,`scroll`,()=>{P.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let te=e=>{if(t.isFocused){W(e.currentTarget,G(e))||t.setFocused(!1);return}if(!W(e.currentTarget,G(e)))return;let i=NC();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))};if(h&&(i===`keyboard`||i===`virtual`))a(h===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=P.current.top,p.current.scrollLeft=P.current.left);if(t.focusedKey!=null&&p.current){let e=uP(r,t.focusedKey);e instanceof HTMLElement&&(!TS(e)&&!d&&AS(e),(i===`keyboard`||h&&i===`virtual`)&&dA(e,{containingElement:r.current}))}},F=e=>{W(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},ne=(0,x.useRef)(!1);nw(r,fS,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(ne.current=!0)}:void 0);let re=n.getFirstKey?.()??null;_P(()=>{if(ne.current){if(re==null){let e=CS();ES(r.current),OS(e,null),t.collection.size>0&&(ne.current=!1)}else t.setFocusedKey(re),ne.current=!1}},[re,t.collection.size]),_P(()=>{t.collection.size>0&&(ne.current=!1)},[t.focusedKey]),nw(r,dS,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let ie=(0,x.useRef)(i),ae=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(ie.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&l&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!d&&r.current&&eT(r.current),t.collection.size>0&&(ie.current=!1,ae.current=!0)}});let oe=(0,x.useRef)(t.focusedKey),se=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==oe.current||ae.current)&&p.current&&r.current){let e=NC(),n=uP(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||ae.current)&&(se.current&&cancelAnimationFrame(se.current),se.current=requestAnimationFrame(()=>{p.current&&(lA(p.current,n),e!==`virtual`&&dA(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&oe.current!=null&&r.current&&eT(r.current),oe.current=t.focusedKey,ae.current=!1}),(0,x.useEffect)(()=>()=>{se.current&&cancelAnimationFrame(se.current)},[]),nw(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let ce={...H(N,ee),onFocus:te,onBlur:F,onMouseDown(e){p.current===G(e)&&e.preventDefault()}},{typeSelectProps:le}=hP({keyboardDelegate:n,selectionManager:t});u||(ce=H(le,ce));let ue;d||(ue=t.focusedKey==null?0:-1);let de=fP(t.collection);return{collectionProps:H(ce,{tabIndex:ue,"data-collection":de})}}var yP=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:uP(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},bP=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new yP(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new yP(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=uP(this.ref,e);if(t!=null){let e=uP(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=uP(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!oA(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!oA(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},xP=new Map;function SP(e){let{locale:t}=mw(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(xP.has(n))return xP.get(n);let r=new Intl.Collator(t,e);return xP.set(n,r),r}function CP(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=SP({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,x.useMemo)(()=>a||new bP({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=vP({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function wP(e,t,n){let r=K(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=CP({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=EE({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Xx(e.id);kN.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=RE({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:H(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...H(d,s)})}}var TP=500;function EP(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=TP,accessibilityDescription:s}=e,c=(0,x.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=dE(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=_E({isDisabled:t,onPressStart(e){if(e.continuePropagation(),d(e)){r&&r({...e,type:`longpressstart`}),c.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),l(e.target,`click`,e=>e.preventDefault(),{once:!0}),pS(e.target).activeElement!==e.target&&AS(e.target),a&&a({...e,type:`longpress`}),c.current=void 0},o),e.pointerType===`touch`&&l(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=mS(e.target);l(t,`pointerup`,()=>{setTimeout(()=>{u()},100)},{once:!0})}},onPressEnd(e){c.current&&clearTimeout(c.current),i&&d(e)&&i({...e,type:`longpressend`})}});return{longPressProps:H(f,mA(a&&!t?s:void 0))}}function DP(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=sC();t=Xx(t);let p=e=>{if(e.pointerType===`keyboard`&&lP(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(QC(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,x.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?ES(i.current):s?s():CS()!==i.current&&i.current&&eT(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){G(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,x.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),S=y&&v&&n.selectionBehavior===`replace`,C=b||S,w=(0,x.useRef)(null),T=C&&v,E=(0,x.useRef)(!1),D=(0,x.useRef)(!1),O=n.getItemProps(r),k=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),_&&i.current&&f.open(i.current,e,O.href,O.routerOptions)},A={ref:i};a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||kP(e.key))&&p(e)},u?(A.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},A.onPress=b?k:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):A.onPress=e=>{if(b||S&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!OP(e.key))return;k(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,D.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||kP(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&OP(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):v&&p(e))});let j=pP(n.collection);if(m[`data-collection`]=j,m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=H(A,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])O[e]&&(A[e]=jx(A[e],O[e]));let{pressProps:M,isPressed:ee}=_E(A),N=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:P}=EP({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{w.current===`touch`&&E.current&&e.preventDefault()},F=d!==`none`&&n.isLink(r)?e=>{lC.isOpening||e.preventDefault()}:void 0,ne=H(m,v||b||o&&!c?M:{},T?P:{},{onDoubleClick:N,onDragStartCapture:te,onClick:F,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),re=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==j;t=t.parentElement}return zS(e)},ie=ne.onPointerDown;ne.onPointerDown=e=>{let t=G(e);t&&t!==i.current&&re(t)?e.stopPropagation():ie?.(e)};let ae=ne.onMouseDown;return ne.onMouseDown=e=>{let t=G(e);t&&t!==i.current&&re(t)?e.stopPropagation():ae?.(e)},{itemProps:ne,isPressed:ee,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:C}}function OP(e){return e===`Enter`}function kP(e){return e===` `}function AP(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function jP(e){return MP(e,0)}function MP(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function NP(e){let t;for(let n of e)t=n;return t}function PP(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...FP(e,t),t],i=[...FP(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function FP(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var IP=new WeakMap;function LP(e){let t=IP.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(AP(i,e)):i.type===`item`&&n++};return r(e),IP.set(e,n),n}function RP(e,t,n){let{key:r}=e,i=kN.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),o=e.isSelected??t.selectionManager.isSelected(r),s=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,c=e.shouldFocusOnHover??i?.shouldFocusOnHover,l=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,u=e.isVirtualized??i?.isVirtualized,d=Qx(),f=Qx(),p={role:`option`,"aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:o,"aria-label":e[`aria-label`],"aria-labelledby":d,"aria-describedby":f},m=t.collection.getItem(r);if(u){let e=Number(m?.index);p[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,p[`aria-setsize`]=LP(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=jN(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=DP({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:u,shouldUseVirtualFocus:l,isDisabled:a,onAction:h||m?.props?.onAction?jx(m?.props?.onAction,h):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:g}),{hoverProps:S}=NE({isDisabled:a||!c,onHoverStart(){MC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=K(m?.props);delete C.id;let w=pC(m?.props);return{optionProps:{...p,...H(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&MC(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function zP(e){let{heading:t,"aria-label":n}=e,r=Xx();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function BP(e){let t=x.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var VP=class{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},HP=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function UP(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function WP(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,x.useRef)(!1),[,s]=(0,x.useState)(!1),c=(0,x.useRef)(null),l=(0,x.useRef)(null),[,u]=(0,x.useState)(null),[d,f]=Aw((0,x.useMemo)(()=>GP(e.selectedKeys),[e.selectedKeys]),(0,x.useMemo)(()=>GP(e.defaultSelectedKeys,new HP),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,x.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,x.useRef)(i);return(0,x.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!UP(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function GP(e,t){return e?e===`all`?`all`:new HP(e):t}var KP=class e{constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&PP(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&PP(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new HP([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new HP(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?PP(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new HP(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&n.size===0||this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new HP([t],t,t):new HP;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new HP;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],n=r=>{for(;r!=null;){if(this.canSelectItemIn(r,e)){let i=e.getItem(r);i?.type===`item`&&t.push(r),i?.hasChildNodes&&(this.allowsCellSelection||i.type!==`item`)&&n(jP(AP(i,e))?.key??null)}r=e.getKeyAfter(r)}};return n(e.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new HP)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!==`selection`}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}},qP=class{build(e,t){return this.context=t,JP(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(x.isValidElement(t)&&t.type===x.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];x.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(x.isValidElement(e.element)&&e.element.type===x.Fragment){let i=[];x.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(x.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:YP(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${XP(t.type)}> in <${XP(r?.type??`unknown parent type`)}>. Only <${XP(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type===`item`),index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:JP(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function JP(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function YP(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function XP(e){return e[0].toUpperCase()+e.slice(1)}function ZP(e,t,n){let r=(0,x.useMemo)(()=>new qP,[]),{children:i,items:a,collection:o}=e;return(0,x.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function QP(e){let{filter:t,layoutDelegate:n}=e,r=WP(e),i=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=ZP(e,(0,x.useCallback)(e=>t?new VP(t(e)):new VP(e),[t]),(0,x.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,x.useMemo)(()=>new KP(a,r,{layoutDelegate:n}),[a,r,n]);return eF(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function $P(e,t){let n=(0,x.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return eF(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function eF(e,t){let n=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function tF(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=(0,x.useRef)(null),s=tw(e=>{for(let t of e)t.isIntersecting&&r&&r()});Mx(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(s,{root:sA(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}var nF=(0,x.createContext)(null),rF=(0,x.createContext)(null),iF=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,nF);let n=(0,x.useContext)(rF);return n?x.createElement(oF,{state:n,props:e,listBoxRef:t}):x.createElement(jT,{content:x.createElement(UT,e)},n=>x.createElement(aF,{props:e,listBoxRef:t,collection:n}))});function aF({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,x.useContext)(YT),i=QP({...e,layoutDelegate:r});return x.createElement(oF,{state:i,props:e,listBoxRef:t})}function oF({state:e,props:t,listBoxRef:n}){[t,n]=oS(t,n,jw);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=$P(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=mw(),{disabledBehavior:p,disabledKeys:m}=l,h=SP({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:v,CollectionRoot:y}=(0,x.useContext)(YT),b=(0,x.useMemo)(()=>t.keyboardDelegate||new bP({collection:c,collator:h,ref:n,disabledKeys:m,disabledBehavior:p,layout:i,orientation:a,direction:f,layoutDelegate:_}),[c,h,n,p,m,a,f,t.keyboardDelegate,i,_]),{listBoxProps:S}=wP({...t,shouldSelectOnPressUp:u||t.shouldSelectOnPressUp,keyboardDelegate:b,isVirtualized:g},s,n);(0,x.useRef)(u),(0,x.useRef)(d),(0,x.useEffect)(()=>{},[u,d]);let C,w,T,E=!1,D=null,O=(0,x.useRef)(null);if(u&&r){C=r.useDraggableCollectionState({collection:c,selectionManager:l,preview:r.renderDragPreview?O:void 0}),r.useDraggableCollection({},C,n);let e=r.DragPreview;D=r.renderDragPreview?x.createElement(e,{ref:O},r.renderDragPreview):null}if(d&&r){w=r.useDroppableCollectionState({collection:c,selectionManager:l});let e=r.dropTargetDelegate||v||new r.ListDropTargetDelegate(c,n,{orientation:a,layout:i,direction:f});T=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:e},w,n),E=w.isDropTarget({type:`root`})}let{focusProps:k,isFocused:A,isFocusVisible:j}=DE(),M=s.collection.size===0,ee={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},N=iS({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:ee}),P=null;M&&t.renderEmptyState&&(P=x.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(ee)));let te=K(t,{global:!0});return x.createElement(LN,null,x.createElement(U.div,{...H(te,N,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},x.createElement(rS,{values:[[nF,t],[rF,s],[gN,{dragAndDropHooks:r,dragState:C,dropState:w}],[DN,{elementType:`div`}],[_N,{render:uF}],[GT,{name:`ListBoxSection`,render:sF}]]},x.createElement(wN,null,x.createElement(y,{collection:c,scrollRef:n,persistedKeys:bN(l,r,w),renderDropIndicator:yN(r,w)}))),P,D))}function sF(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,x.useContext)(rF),{dragAndDropHooks:a,dropState:o}=(0,x.useContext)(gN),{CollectionBranch:s}=(0,x.useContext)(YT),[c,l]=sS(),{headingProps:u,groupProps:d}=zP({heading:l,"aria-label":e[`aria-label`]??void 0}),f=iS({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=K(e,{global:!0});return delete p.id,x.createElement(U.section,{...H(p,f,d),ref:t},x.createElement(xN.Provider,{value:{...u,ref:c}},x.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:yN(a,o)})))}var cF=BT(Rw,sF),lF=zT(Lw,function(e,t,n){let r=tS(t),i=(0,x.useContext)(rF),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,x.useContext)(gN),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=RP({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=NE({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=hT(e),{focusProps:g}=tT(e),_=null;o&&a&&(_=a.useDraggableItem({key:n.key,hasAction:f.hasAction},o));let v=null;s&&a&&(v=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},s,r));let y=o&&o.isDragging(n.key),b=iS({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...f,isHovered:m,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:y,isDropTarget:v?.isDropTarget}});(0,x.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?U.a:U.div,C=K(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),x.createElement(S,{...H(C,b,l,p,h,g,_?.dragProps,v?.dropProps),ref:r,"data-allows-dragging":!!o||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},x.createElement(rS,{values:[[yD,{slots:{[nS]:u,label:u,description:d}}],[TN,{isSelected:f.isSelected}]]},b.children))});function uF(e,t){t=tS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(gN),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:x.createElement(fF,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function dF(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=iS({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return x.createElement(x.Fragment,null,x.createElement(U.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var fF=(0,x.forwardRef)(dF);zT(Iw,function(e,t,n){let r=(0,x.useContext)(rF),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,x.useRef)(null);tF((0,x.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=iS({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:BP(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&x.createElement(x.Fragment,null,x.createElement(U.div,{...H(K(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});var pF=(0,x.createContext)({placement:`bottom`}),mF=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function hF(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var gF=new WeakMap,_F=[];function vF(e,t){let n=mS(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&mF,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(SS()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;vS(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(W(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=NN(pS(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=gF.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),gF.set(e,t+1))};_F.length&&_F[_F.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>W(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&hF(e)?o.add(e):e instanceof Element&&d(e);if(SS()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(SS())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>W(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&hF(e)?o.add(e):e instanceof Element&&d(e);if(SS()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return _F.push(h),()=>{if(p.disconnect(),SS())for(let e of m)e.disconnect();for(let e of s){let t=gF.get(e);t!=null&&(t===1?(l(e,!1),gF.delete(e)):gF.set(e,t-1))}h===_F[_F.length-1]?(_F.pop(),_F.length&&_F[_F.length-1].observe()):_F.splice(_F.indexOf(h),1)}}function yF(e){let t=_F[_F.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var bF={top:`top`,bottom:`top`,left:`left`,right:`left`},xF={top:`bottom`,bottom:`top`,left:`right`,right:`left`},SF={top:`left`,left:`top`},CF={top:`height`,left:`width`},wF={width:`totalWidth`,height:`totalHeight`},TF={},EF=()=>typeof document<`u`?window.visualViewport:null;function DF(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c={},l=(t?.scale??1)>1;if(e.tagName===`BODY`||e.tagName===`HTML`){let l=document.documentElement;i=l.clientWidth,a=l.clientHeight,n=t?.width??i,r=t?.height??a,c.top=l.scrollTop||e.scrollTop,c.left=l.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(c.top??0)),s=Math.max(0,t.pageLeft-(c.left??0)))}else({width:n,height:r,top:o,left:s}=RF(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return eC()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&l&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:c,top:o,left:s}}function OF(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function kF(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[CF[e]],l=o[e]+r.scroll[bF[e]]+a,u=o[e]+r.scroll[bF[e]]+c-a,d=t-s+r.scroll[bF[e]]+o[e]-r[bF[e]],f=t-s+n+r.scroll[bF[e]]+o[e]-r[bF[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function AF(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function jF(e){if(TF[e])return TF[e];let[t,n]=e.split(` `),r=bF[t]||`right`,i=SF[r];bF[n]||(n=`center`);let a=CF[r],o=CF[i];return TF[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},TF[e]}function MF(e,t,n,r,i,a,o,s,c,l,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:g}=r,_={};_[m]=e[m]??0,f===`center`?_[m]+=((e[g]??0)-(n[g]??0))/2:f!==m&&(_[m]+=(e[g]??0)-(n[g]??0)),_[m]+=a;let v=e[m]-n[g]+c+l,y=e[m]+e[g]-c-l;if(_[m]=rD(_[m],v,y),d===p){let t=s?u[h]:u[wF[h]];_[xF[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function NF(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[wF.height]-(e.bottom??0)-o:e.top)-(c.scroll.top??0),f=l?n.top:0,p={top:Math.max(t.top+f,(u?.offsetTop??t.top)+f),bottom:Math.min(t.top+t.height+f,(u?.offsetTop??0)+(u?.height??0))};return s===`top`?Math.max(0,d+o-p.top-((i.top??0)+(i.bottom??0)+a)):Math.max(0,p.bottom-d-((i.top??0)+(i.bottom??0)+a))}function PF(e,t,n,r,i,a,o,s){let{placement:c,axis:l,size:u}=a;return c===l?Math.max(0,n[l]-(o.scroll[l]??0)-(e[l]+(s?t[l]:0))-(r[l]??0)-r[xF[l]]-i):Math.max(0,e[u]+e[l]+(s?t[l]:0)-n[l]-n[u]+(o.scroll[l]??0)-(r[l]??0)-r[xF[l]]-i)}function FF(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=jF(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=MF(t,s,n,v,u,d,l,f,m,h,c),T=u,E=PF(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=jF(`${xF[S]} ${C}`),r=MF(t,s,n,e,u,d,l,f,m,h,c);PF(s,l,t,i,a+u,e,c,g)>E&&(v=e,w=r,T=u)}let D=`bottom`;v.axis===`top`?v.placement===`top`?D=`top`:v.placement===`bottom`&&(D=`bottom`):v.crossAxis===`top`&&(v.crossPlacement===`top`?D=`bottom`:v.crossPlacement===`bottom`&&(D=`top`));let O=kF(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=NF(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=MF(t,s,n,v,T,d,l,f,m,h,c),O=kF(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[bF[b]],M=j+.5*t[x],ee=m/2+h,N=bF[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),P=n[x]-N-m/2-h;A[b]=rD(rD(M,t[b]+m/2-(w[b]+i[bF[b]]),t[b]+t[x]-m/2-(w[b]+i[bF[b]])),ee,P),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let te=S===`left`||S===`top`?n[y]:0,F={x:S===`top`||S===`bottom`?j:te,y:S===`left`||S===`right`?j:te};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:F}}function IF(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0,targetRect:p}=e,m=EF(),h=r instanceof HTMLElement?BF(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?RF(n,!1,p):zF(n,h,!1,p);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let b=RF(r,!0),x=AF(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=OF(i),C=DF(s,m),w=DF(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=LF(h,!1);T={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}else T=(s.tagName===`BODY`||s.tagName===`HTML`)&&g?{top:0,left:0,width:0,height:0}:zF(s,h,!1);let E=W(s,h);return FF(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function LF(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function RF(e,t,n){let{top:r,left:i,width:a,height:o}=n||LF(e,t),{scrollTop:s,scrollLeft:c,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:i+c-u,width:a,height:o}}function zF(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||LF(e,n);else{a=RF(e,n,r);let i=RF(t,n),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function BF(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!VF(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!VF(t);)t=t.parentElement;return t||document.documentElement}function VF(e){let t=window.getComputedStyle(e);return t.transform!==`none`||/transform|perspective/.test(t.willChange)||t.filter!==`none`||t.contain===`paint`||`backdropFilter`in t&&t.backdropFilter!==`none`||`WebkitBackdropFilter`in t&&t.WebkitBackdropFilter!==`none`}var HF=new WeakMap;function UF(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,x.useEffect)(()=>!n||r===null?void 0:yS(wS(t.current),`scroll`,e=>{let n=G(e);if(!t.current||n instanceof Node&&!W(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||HF.get(t.current);i&&i()},!0),[n,r,t])}function WF(){return window.ResizeObserver!==void 0}function GF(e){let{ref:t,box:n,onResize:r}=e,i=tw(r);(0,x.useEffect)(()=>{let e=t?.current;if(e){if(WF()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}var KF=typeof document<`u`?window.visualViewport:null;function qF(e){let{direction:t}=mw(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s=`bottom`,containerPadding:c=12,shouldFlip:l=!0,boundaryElement:u=typeof document<`u`?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:_=0,getTargetRect:v}=e,[y,b]=(0,x.useState)(null),S=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],C=(0,x.useRef)(KF?.scale);(0,x.useEffect)(()=>{m&&(C.current=KF?.scale)},[m]);let w=(0,x.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||KF?.scale!==C.current)return;let e=null;if(o.current&&TS(o.current)){let t=CS()?.getBoundingClientRect(),n=o.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let h=i.current;!g&&i.current&&(h.style.top=`0px`,h.style.bottom=``,h.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let y=IF({placement:YF(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:c,shouldFlip:l,boundaryElement:u,offset:d,crossOffset:f,maxHeight:g,arrowSize:n??(a?.current?LF(a.current,!0).width:0),arrowBoundaryOffset:_,targetRect:v?.(r.current)});if(!y.position)return;h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(y.position).forEach(e=>h.style[e]=y.position[e]+`px`),h.style.maxHeight=y.maxHeight==null?``:y.maxHeight+`px`;let x=CS();if(e&&x&&o.current){let t=x.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}b(y)},S);Mx(w,S),JF(w),GF({ref:i,onResize:w}),GF({ref:r,onResize:w});let T=(0,x.useRef)(!1);Mx(()=>{let e,t=()=>{T.current=!0,clearTimeout(e),e=setTimeout(()=>{T.current=!1},500),w()},n=()=>{T.current&&t()};KF?.addEventListener(`resize`,t),KF?.addEventListener(`scroll`,n);let r=yS(wS(window),`scroll`,n);return()=>{KF?.removeEventListener(`resize`,t),KF?.removeEventListener(`scroll`,n),r()}},[w]);let E=(0,x.useCallback)(()=>{T.current||h?.()},[h,T]);return UF({triggerRef:r,isOpen:m,onClose:h&&E}),{overlayProps:{style:{position:y?`absolute`:`fixed`,top:y?void 0:0,left:y?void 0:0,zIndex:1e5,...y?.position,maxHeight:y?.maxHeight??`100vh`}},placement:y?.placement??null,triggerAnchorPoint:y?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:y?.arrowOffsetLeft,top:y?.arrowOffsetTop}},updatePosition:w}}function JF(e){Mx(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function YF(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}function XF(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=tw(e=>{n&&ZF(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=tw(e=>{n&&n(e)});(0,x.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=pS(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&ZF(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}},[t,r])}function ZF(e,t){if(e.button>0)return!1;let n=G(e);if(n){let e=n.ownerDocument;if(!e||!W(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var QF=[];function $F(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=(0,x.useRef)(void 0);(0,x.useEffect)(()=>{if(i&&!QF.includes(t))return QF.push(t),()=>{let e=QF.indexOf(t);e>=0&&QF.splice(e,1)}},[i,t]);let l=()=>{QF[QF.length-1]===t&&n&&n()},u=e=>{let n=QF[QF.length-1];c.current=n,(!s||s(G(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(G(e)))&&(QF[QF.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=hT({shortcuts:{Escape:()=>{if(!o)l();else return!1}}});XF({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=EE({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!qN(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var eI=200,tI=50,nI=600,rI=new WeakMap,iI=new Set,aI=new Set;function oI(e,t){let n=$C();if(e!==n||t.aborted)for(let e of aI)e(n),aI.delete(e);if(!e&&n&&eC()&&!t.aborted)window.clearInterval(rI.get(window)),rI.set(window,sI(eI));else{if(e!==n||t.aborted)for(let e of iI)e(n),iI.delete(e);(aI.size+iI.size<=0||t.aborted)&&(window.clearInterval(rI.get(window)),rI.delete(window))}}function sI(e=nI){return window.setInterval(oI,tI,$C(),AbortSignal.timeout(e))}function cI(e){if(!XC())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=ZC(document.hasFocus()?CS():null);if($C()===t||$C()&&!t)return e(t);aI.add(e),rI.has(window)||rI.set(window,sI())})});return()=>{window.cancelAnimationFrame(t),aI.delete(e)}}function lI(e){if(!XC())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=ZC(document.hasFocus()?CS():null);if($C()===t)return e(t);iI.add(e),rI.has(window)||rI.set(window,sI())})});return()=>{window.cancelAnimationFrame(t),iI.delete(e)}}var uI=typeof document<`u`&&window.visualViewport,dI=0,fI;function pI(e={}){let{isDisabled:t,UNSTABLE_overrideFocus:n}=e;Mx(()=>{if(!t)return dI++,dI===1&&(fI=QS()&&eC()?hI():mI(n)),()=>{dI--,dI===0&&fI()}},[t,n])}function mI(e){let t=window.innerWidth-document.documentElement.clientWidth;return jx(t>0&&(`scrollbarGutter`in document.documentElement.style?bS(document.documentElement,`scrollbar-gutter`,`stable`):bS(document.documentElement,`padding-right`,`${t}px`)),bS(document.documentElement,`overflow`,`hidden`),e&&_I(),e&&XC()&&gI())}function hI(){let e=bS(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=G(e);t=oA(r,!0)?r:sA(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},i=document.createElement(`style`),a=lE();a&&(i.nonce=a),i.textContent=`@layer {
|
|
69
|
+
`.trim(),e.head.prepend(t)},[f]),(0,x.useEffect)(()=>{let e=g.current;return()=>{d||pE(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:H(p,k,{[SE]:!0})}}function wE(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function TE(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof bS(i).HTMLInputElement&&!AE(i,n)||i instanceof bS(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&wE(i))&&n!==`Enter`)}function EE(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function DE(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!wE(e)}function OE(e,t){return tC()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!AE(e,t):DE(e)}var kE=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function AE(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:kE.has(e.type)}function jE(e,t){let{elementType:n=`a`,onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,...l}=e,u={};n!==`a`&&(u={role:`link`,tabIndex:c?void 0:0});let{focusableProps:d}=ET(e,t),{pressProps:f,isPressed:p}=CE({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,ref:t}),m=K(l,{labelable:!0}),h=H(d,f),g=pC();return{isPressed:p,linkProps:H(m,yC(e),{...h,...u,"aria-disabled":c||void 0,"aria-current":e[`aria-current`],onClick:t=>{f.onClick?.(t),bC(t,g,e.href,e.routerOptions)}})}}function ME(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,x.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=_E(),c=(0,x.useCallback)(e=>{W(e.currentTarget,G(e))&&a.current.isFocusWithin&&!W(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=YS(c),u=(0,x.useCallback)(e=>{if(!W(e.currentTarget,G(e)))return;let t=G(e),n=yS(t),s=kS(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=G(e);if(a.current.isFocusWithin&&!W(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});JS(e,t);let i=qS(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function NE(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,x.useRef)({isFocused:!1,isFocusVisible:t||RC()}),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,x.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,x.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=RC(),o(e),l()},[l]);WC(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=sT({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=ME({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var PE=!1,FE=0;function IE(){PE=!0,setTimeout(()=>{PE=!1},500)}function LE(e){e.pointerType===`touch`&&IE()}function RE(){let e=yS(null);if(e!==void 0)return FE===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,LE),FE++,()=>{FE--,FE>0||typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,LE)}}function zE(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,x.useState)(!1),s=(0,x.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,x.useEffect)(RE,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=_E(),{hoverProps:u,triggerHoverEnd:d}=(0,x.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!W(e.currentTarget,G(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(yS(G(e)),`pointerover`,e=>{s.isHovered&&s.target&&!W(s.target,G(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{PE&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&W(e.currentTarget,G(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,x.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var BE=(0,x.createContext)(null),VE=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,BE);let n=e.href&&!e.isDisabled?`a`:`span`,{linkProps:r,isPressed:i}=jE({...e,elementType:n},t),a=U[n],{hoverProps:o,isHovered:s}=zE(e),{focusProps:c,isFocused:l,isFocusVisible:u}=NE(),d=uS({...e,defaultClassName:`react-aria-Link`,values:{isCurrent:!!e[`aria-current`],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:s,isFocused:l,isFocusVisible:u}}),f=K(e,{global:!0});return delete f.onClick,x.createElement(a,{ref:t,slot:e.slot||void 0,...H(f,d,r,o,c),"data-focused":l||void 0,"data-hovered":s||void 0,"data-pressed":i||void 0,"data-focus-visible":u||void 0,"data-current":!!e[`aria-current`]||void 0,"data-disabled":e.isDisabled||void 0},d.children)}),HE=(0,x.createContext)({}),UE=kT(function(e,t){[e,t]=fS(e,t,HE);let{elementType:n=`label`,...r}=e,i=U[n];return x.createElement(i,{className:`react-aria-Label`,...r,ref:t})});function WE(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=nS(t);let o=nS(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=lw({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}var GE=new Map,KE=!1;try{KE=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var qE=class{constructor(e,t={}){this.numberFormatter=JE(e,t),this.options=t}format(e){let t=``;return t=!KE&&this.options.signDisplay!=null?YE(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!KE&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),e}};function JE(e,t={}){let{numberingSystem:n}=t;n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`);let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(GE.has(r))return GE.get(r);let i=new Intl.NumberFormat(e,t);return GE.set(r,i),i}function YE(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}var XE=RegExp(`^.*\\(.*\\).*$`),ZE=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],QE=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return eD(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return eD(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return eD(this.locale,this.options,e).options.numberingSystem}},$E=new Map;function eD(e,t,n){let r=tD(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of ZE)if(i!==r.options.numberingSystem){let r=tD(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function tD(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``),r=$E.get(n);return r||(r=new nD(e,t),$E.set(n,r)),r}var nD=class{constructor(e,t={}){this.locale=e,t.roundingIncrement!==1&&t.roundingIncrement!=null&&(t.maximumFractionDigits==null&&t.minimumFractionDigits==null?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):t.maximumFractionDigits==null?t.maximumFractionDigits=t.minimumFractionDigits:t.minimumFractionDigits??=t.maximumFractionDigits),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=aD(e,this.formatter,this.options,t),this.options.style===`percent`&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new QE(this.locale,e).parse(new qE(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&XE.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=oD(e,`,`,this.symbols.decimal),e=oD(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=oD(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=oD(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=oD(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=oD(e,` `,this.symbols.group),e=oD(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=oD(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},rD=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),iD=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function aD(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=iD.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:iD[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;u||r?.signDisplay!==`exceptZero`&&r?.signDisplay!==`always`||(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!rD.has(e.type)).map(e=>sD(e.value)),m=s.flatMap(e=>e.filter(e=>!rD.has(e.type)).map(e=>sD(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function oD(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function sD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function cD(e={}){let{locale:t}=bw();return(0,x.useMemo)(()=>new qE(t,e),[t,e])}function lD(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function uD(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf(`e-`);if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let e=i.indexOf(`.`);e>=0&&(r=i.length-e)}if(r>0){let e=10**r;n=Math.round(n*e)/e}return n}function dD(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=uD(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(uD(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(uD((n-t)/r,r))*r),a=uD(a,r),a}var fD=(0,x.createContext)(null),pD=7e3,mD=null;function hD(e,t=`assertive`,n=pD){mD?mD.announce(e,t,n):(mD=new _D,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?mD.announce(e,t,n):setTimeout(()=>{mD?.isAttached()&&mD?.announce(e,t,n)},100))}function gD(e){mD&&mD.clear(e)}var _D=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=pD){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function vD(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=CE({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=ET(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=H(y,_,K(e,{labelable:!0}));return{isPressed:v,buttonProps:H(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var yD=(0,x.createContext)({}),bD=kT(function(e,t){[e,t]=fS(e,t,yD);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=vD(e,t);i=SD(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=NE(e),{hoverProps:l,isHovered:u}=zE({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=uS({...e,values:d,defaultClassName:`react-aria-Button`}),p=nS(i.id),m=nS(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,x.useRef)(r);(0,x.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&hD(e,`assertive`),g.current=r},[r,s,h,p]);let _=K(e,{global:!0});return delete _.onClick,x.createElement(U.button,{...H(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},x.createElement(fD.Provider,{value:{id:m}},f.children))}),xD=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function SD(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!xD.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var CD=(0,x.createContext)({}),wD=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,CD);let{children:n,level:r=3,className:i,...a}=e,o=U[`h${r}`];return x.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),TD=(0,x.createContext)({}),ED=kT(function(e,t){[e,t]=fS(e,t,TD);let{elementType:n=`span`,...r}=e,i=U[n];return x.createElement(i,{className:`react-aria-Text`,...r,ref:t})});function DD(e,t){let n=(0,x.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function OD(e,t){return e-t*Math.floor(e/t)}var kD=1721426;function AD(e,t,n,r){t=MD(e,t);let i=t-1,a=-2;return n<=2?a=0:jD(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function jD(e){return e%4==0&&(e%100!=0||e%400==0)}function MD(e,t){return e===`BC`?1-t:t}function ND(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var PD={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]},FD=class{fromJulianDay(e){let t=e,n=t-kD,r=Math.floor(n/146097),i=OD(n,146097),a=Math.floor(i/36524),o=OD(i,36524),s=Math.floor(o/1461),c=OD(o,1461),l=Math.floor(c/365),[u,d]=ND(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-AD(u,d,1,1),p=2;t<AD(u,d,3,1)?p=0:jD(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new UO(u,d,m,t-AD(u,d,m,1)+1)}toJulianDay(e){return AD(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return PD[jD(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return jD(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function ID(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function LD(e){return tO(Date.now(),e)}function RD(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function zD(e,t){return BD(e)-BD(t)}function BD(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var VD=null,HD=!1;function UD(){return VD??=new Intl.DateTimeFormat().resolvedOptions().timeZone,VD}function WD(){return HD}function GD(e){return e=iO(e,new FD),KD(MD(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function KD(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function qD(e,t){if(t===`UTC`)return 0;if(e>0&&t===UD()&&!WD())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=YD(e,t);return KD(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var JD=new Map;function YD(e,t){let n=JD.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`}),JD.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var XD=864e5;function ZD(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>QD(e,t,n))}function QD(e,t,n){let r=YD(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function $D(e,t,n=`compatible`){let r=rO(e);if(t===`UTC`)return GD(r);if(t===UD()&&n===`compatible`&&!WD()){r=iO(r,new FD);let e=new Date,t=MD(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=GD(r),a=qD(i-XD,t),o=qD(i+XD,t),s=ZD(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function eO(e,t,n=`compatible`){return new Date($D(e,t,n))}function tO(e,t){let n=qD(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new GO(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function nO(e){return new UO(e.calendar,e.era,e.year,e.month,e.day)}function rO(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new WO(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function iO(e,t){if(ID(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,hO(r),r}function aO(e,t,n){return e instanceof GO?e.timeZone===t?e:sO(e,t):tO($D(e,t,n),t)}function oO(e){let t=GD(e)-e.offset;return new Date(t)}function sO(e,t){return iO(tO(GD(e)-e.offset,t),e.calendar)}function cO(e){return sO(e,UD())}var lO=36e5;function uO(e,t){let n=e.copy(),r=`hour`in n?CO(n,t):0;dO(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,fO(n),mO(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,pO(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let e=n.calendar.isInverseEra?.(n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function dO(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function fO(e){for(;e.month<1;)dO(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,dO(e,1)}function pO(e){for(;e.day<1;)e.month--,fO(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,fO(e)}function mO(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 hO(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),mO(e)}function gO(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function _O(e,t){return uO(e,gO(t))}function vO(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),hO(n),n}function yO(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),xO(n),n}function bO(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=SO(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=SO(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=SO(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=SO(e.hour,24),t}function xO(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 SO(e,t){let n=e%t;return n<0&&(n+=t),n}function CO(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,bO(e)}function wO(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=EO(a,n,0,t.length-1,r?.round),i.era=t[a],hO(i);break}case`year`:i.calendar.isInverseEra?.(i)&&(n=-n),i.year=EO(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=EO(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=EO(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),hO(i),i}function TO(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=EO(t,n,a,o,r?.round);break}case`minute`:i.minute=EO(e.minute,n,0,59,r?.round);break;case`second`:i.second=EO(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=EO(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function EO(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function DO(e,t){let n;return n=t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0?$D(uO(rO(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):GD(e)-e.offset,n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5,iO(tO(n,e.timeZone),e.calendar)}function OO(e,t){return DO(e,gO(t))}function kO(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=rO(e),o=iO(yO(a,{hour:t}),new FD),s=[$D(o,e.timeZone,`earlier`),$D(o,e.timeZone,`later`)].filter(t=>tO(t,e.timeZone).day===o.day)[0],c=iO(yO(a,{hour:i}),new FD),l=[$D(c,e.timeZone,`earlier`),$D(c,e.timeZone,`later`)].filter(t=>tO(t,e.timeZone).day===c.day).pop(),u=GD(e)-e.offset,d=Math.floor(u/lO),f=u%lO;return u=EO(d,n,Math.floor(s/lO),Math.floor(l/lO),r?.round)*lO+f,iO(tO(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return TO(e,t,n,r);case`era`:case`year`:case`month`:case`day`:return iO(tO($D(wO(rO(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error(`Unsupported field `+t)}}function AO(e,t,n){let r=rO(e),i=yO(vO(r,t),t);return i.compare(r)===0?e:iO(tO($D(i,e.timeZone,n),e.timeZone),e.calendar)}var jO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,MO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,NO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function PO(e){let t=e.match(jO);if(!t)throw NO.test(e)?Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):Error(`Invalid ISO 8601 date string: `+e);let n=new UO(IO(t[1],0,9999),IO(t[2],1,12),1);return n.day=IO(t[3],1,n.calendar.getDaysInMonth(n)),n}function FO(e){let t=e.match(MO);if(!t)throw NO.test(e)?Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):Error(`Invalid ISO 8601 date time string: `+e);let n=IO(t[1],-9999,9999),r=new WO(n<1?`BC`:`AD`,n<1?-n+1:n,IO(t[2],1,12),1,t[4]?IO(t[4],0,23):0,t[5]?IO(t[5],0,59):0,t[6]?IO(t[6],0,59):0,t[7]?IO(t[7],0,1/0)*1e3:0);return r.day=IO(t[3],0,r.calendar.getDaysInMonth(r)),r}function IO(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function LO(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 RO(e){let t=iO(e,new FD),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function zO(e){return`${RO(e)}T${LO(e)}`}function BO(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`;return i!==0&&(a+=`:${String(i).padStart(2,`0`)}`),a}function VO(e){return`${zO(e)}${BO(e.offset)}[${e.timeZone}]`}function HO(e){let t=typeof e[0]==`object`?e.shift():new FD,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var UO=class e{constructor(...e){let[t,n,r,i,a]=HO(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,hO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return uO(this,e)}subtract(e){return _O(this,e)}set(e){return vO(this,e)}cycle(e,t,n){return wO(this,e,t,n)}toDate(e){return eO(this,e)}toString(){return RO(this)}compare(e){return RD(this,e)}},WO=class e{constructor(...e){let[t,n,r,i,a]=HO(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,hO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return uO(this,e)}subtract(e){return _O(this,e)}set(e){return vO(yO(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return wO(this,e,t,n);default:return TO(this,e,t,n)}}toDate(e,t){return eO(this,e,t)}toString(){return zO(this)}compare(e){let t=RD(this,e);return t===0?zD(this,rO(e)):t}},GO=class e{constructor(...e){let[t,n,r,i,a]=HO(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,hO(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return DO(this,e)}subtract(e){return OO(this,e)}set(e,t){return AO(this,e,t)}cycle(e,t,n){return kO(this,e,t,n)}toDate(){return oO(this)}toString(){return VO(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-aO(e,this.timeZone).toDate().getTime()}},KO=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],qO=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],JO=[1867,1911,1925,1988,2018],YO=[`meiji`,`taisho`,`showa`,`heisei`,`reiwa`];function XO(e){let t=KO.findIndex(([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r);return t===-1?KO.length-1:t===0?0:t-1}function ZO(e){let t=JO[YO.indexOf(e.era)];if(!t)throw Error(`Unknown era: `+e.era);return new UO(e.year+t,e.month,e.day)}var QO=class extends FD{fromJulianDay(e){let t=super.fromJulianDay(e),n=XO(t);return new UO(this,YO[n],t.year-JO[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(ZO(e))}balanceDate(e){let t=ZO(e),n=XO(t);YO[n]!==e.era&&(e.era=YO[n],e.year=t.year-JO[n]),this.constrainDate(e)}constrainDate(e){let t=YO.indexOf(e.era),n=qO[t];if(n!=null){let[r,i,a]=n,o=r-JO[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(e.year===1&&t>=0){let[,n,r]=KO[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return YO}getYearsInEra(e){let t=YO.indexOf(e.era),n=KO[t],r=KO[t+1];if(r==null)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(ZO(e))}getMinimumMonthInYear(e){let t=$O(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=$O(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier=`japanese`}};function $O(e){if(e.year===1)return KO[YO.indexOf(e.era)]}var ek=-543,tk=class extends FD{fromJulianDay(e){let t=super.fromJulianDay(e),n=MD(t.era,t.year);return new UO(this,n-ek,t.month,t.day)}toJulianDay(e){return super.toJulianDay(nk(e))}getEras(){return[`BE`]}getDaysInMonth(e){return super.getDaysInMonth(nk(e))}balanceDate(){}constructor(...e){super(...e),this.identifier=`buddhist`}};function nk(e){let[t,n]=ND(e.year+ek);return new UO(t,n,e.month,e.day)}var rk=1911;function ik(e){return e.era===`minguo`?e.year+rk:1-e.year+rk}function ak(e){let t=e-rk;return t>0?[`minguo`,t]:[`before_minguo`,1-t]}var ok=class extends FD{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=ak(MD(t.era,t.year));return new UO(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(sk(e))}getEras(){return[`before_minguo`,`minguo`]}balanceDate(e){let[t,n]=ak(ik(e));e.era=t,e.year=n}isInverseEra(e){return e.era===`before_minguo`}getDaysInMonth(e){return super.getDaysInMonth(sk(e))}getYearsInEra(e){return e.era===`before_minguo`?9999:8088}constructor(...e){super(...e),this.identifier=`roc`}};function sk(e){let[t,n]=ND(ik(e));return new UO(t,n,e.month,e.day)}var ck=1948320,lk=[0,31,62,93,124,155,186,216,246,276,306,336],uk=class{fromJulianDay(e){let t=e-ck,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),i=Math.floor(r<216?r/31:(r-6)/30),a=r-lk[i]+1;return new UO(this,n,i+1,a)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=lk[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||OD(25*e.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return[`AP`]}getYearsInEra(){return 9377}constructor(){this.identifier=`persian`}},dk=78,fk=80,pk=class extends FD{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-dk,r=e-AD(t.era,t.year,1,1),i;r<fk?(n--,i=jD(t.year-1)?31:30,r+=i+155+90+10):(i=jD(t.year)?31:30,r-=fk);let a,o;if(r<i)a=1,o=r+1;else{let e=r-i;e<155?(a=Math.floor(e/31)+2,o=e%31+1):(e-=155,a=Math.floor(e/30)+7,o=e%30+1)}return new UO(this,n,a,o)}toJulianDay(e){let[t,n]=ND(e.year+dk),r,i;return jD(n)?(r=31,i=AD(t,n,3,21)):(r=30,i=AD(t,n,3,22)),e.month===1?i+e.day-1:(i+=r+Math.min(e.month-2,5)*31,e.month>=8&&(i+=(e.month-7)*30),i+=e.day-1,i)}getDaysInMonth(e){return e.month===1&&jD(e.year+dk)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return[`saka`]}balanceDate(){}constructor(...e){super(...e),this.identifier=`indian`}},mk=1948440,hk=1948439,gk=1300,_k=1600,vk=460322;function yk(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function bk(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+yk(t,r,1,1)))/29.5)+1);return new UO(e,r,i,n-yk(t,r,i,1)+1)}function xk(e){return(14+11*e)%30<11}var Sk=class{fromJulianDay(e){return bk(this,mk,e)}toJulianDay(e){return yk(mk,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&xk(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return xk(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return[`AH`]}constructor(){this.identifier=`islamic-civil`}},Ck=class extends Sk{fromJulianDay(e){return bk(this,hk,e)}toJulianDay(e){return yk(hk,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier=`islamic-tbla`}},wk=`qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=`,Tk,Ek;function Dk(e){return vk+Ek[e-gk]}function Ok(e,t){let n=e-gk,r=1<<11-(t-1);return(Tk[n]&r)===0?29:30}function kk(e,t){let n=Dk(e);for(let r=1;r<t;r++)n+=Ok(e,r);return n}function Ak(e){return Ek[e+1-gk]-Ek[e-gk]}var jk=class extends Sk{constructor(){if(super(),this.identifier=`islamic-umalqura`,Tk||=new Uint16Array(Uint8Array.from(atob(wk),e=>e.charCodeAt(0)).buffer),!Ek){Ek=new Uint32Array(301);let e=0;for(let t=gk;t<=_k;t++){Ek[t-gk]=e;for(let n=1;n<=12;n++)e+=Ok(t,n)}}}fromJulianDay(e){let t=e-mk,n=Dk(gk),r=Dk(_k);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){e++,r=t-Dk(e)+1;let i=Ak(e);if(r===i){n=12;break}if(r<i){let t=Ok(e,n);for(n=1;r>t;)r-=t,n++,t=Ok(e,n);break}}return new UO(this,e,n,t-kk(e,n)+1)}}toJulianDay(e){return e.year<gk||e.year>_k?super.toJulianDay(e):mk+kk(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<gk||e.year>_k?super.getDaysInMonth(e):Ok(e.year,e.month)}getDaysInYear(e){return e.year<gk||e.year>_k?super.getDaysInYear(e):Ak(e.year)}},Mk=347997,Nk=25920,Pk=765433;function Fk(e){return OD(e*7+1,19)<7}function Ik(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return OD(3*(r+1),7)<3&&(r+=1),r}function Lk(e){let t=Ik(e-1),n=Ik(e);return Ik(e+1)-n===356?2:+(n-t===382)}function Rk(e){return Ik(e)+Lk(e)}function zk(e){return Rk(e+1)-Rk(e)}function Bk(e){let t=zk(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Vk(e,t){if(t>=6&&!Fk(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Bk(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Fk(e)?30:0:30}var Hk=class{fromJulianDay(e){let t=e-Mk,n=t*Nk/Pk,r=Math.floor((19*n+234)/235)+1,i=Rk(r),a=Math.floor(t-i);for(;a<1;)r--,i=Rk(r),a=Math.floor(t-i);let o=1,s=0;for(;s<a;)s+=Vk(r,o),o++;o--,s-=Vk(r,o);let c=a-s;return new UO(this,r,o,c)}toJulianDay(e){let t=Rk(e.year);for(let n=1;n<e.month;n++)t+=Vk(e.year,n);return t+e.day+Mk}getDaysInMonth(e){return Vk(e.year,e.month)}getMonthsInYear(e){return Fk(e.year)?13:12}getDaysInYear(e){return zk(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return[`AM`]}balanceYearMonth(e,t){t.year!==e.year&&(Fk(t.year)&&!Fk(e.year)&&t.month>6?e.month--:!Fk(t.year)&&Fk(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier=`hebrew`}},Uk=1723856,Wk=1824665,Gk=5500;function Kk(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function qk(e,t){let n=Math.floor(4*(t-e)/1461);t>=Kk(e,n+1,1,1)&&n++;let r=1+Math.floor((t-Kk(e,n,1,1))/30),i=t+1-Kk(e,n,r,1);return[n,r,i]}function Jk(e){return Math.floor(e%4/3)}function Yk(e,t){return t%13==0?Jk(e)+5:30}var Xk=class{fromJulianDay(e){let[t,n,r]=qk(Uk,e),i=`AM`;return t<=0&&(i=`AA`,t+=Gk),new UO(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`AA`&&(t-=Gk),Kk(Uk,t,e.month,e.day)}getDaysInMonth(e){return Yk(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Jk(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return e.era===`AA`?9999:9991}getEras(){return[`AA`,`AM`]}constructor(){this.identifier=`ethiopic`}},Zk=class extends Xk{fromJulianDay(e){let[t,n,r]=qk(Uk,e);return t+=Gk,new UO(this,`AA`,t,n,r)}getEras(){return[`AA`]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier=`ethioaa`}},Qk=class extends Xk{fromJulianDay(e){let[t,n,r]=qk(Wk,e),i=`CE`;return t<=0&&(i=`BCE`,t=1-t),new UO(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Kk(Wk,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Yk(t,e.month)}isInverseEra(e){return e.era===`BCE`}balanceDate(e){e.year<=0&&(e.era=e.era===`BCE`?`CE`:`BCE`,e.year=1-e.year)}getEras(){return[`BCE`,`CE`]}getYearsInEra(e){return e.era===`BCE`?9999:9715}constructor(...e){super(...e),this.identifier=`coptic`}};function $k(e){switch(e){case`buddhist`:return new tk;case`ethiopic`:return new Xk;case`ethioaa`:return new Zk;case`coptic`:return new Qk;case`hebrew`:return new Hk;case`indian`:return new pk;case`islamic-civil`:return new Sk;case`islamic-tbla`:return new Ck;case`islamic-umalqura`:return new jk;case`japanese`:return new QO;case`persian`:return new uk;case`roc`:return new ok;default:return new FD}}var eA=new Map,tA=class{constructor(e,t={}){this.formatter=rA(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return sA()&&(this.resolvedHourCycle||=cA(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}},nA={true:{ja:`h11`},false:{}};function rA(e,t={}){if(typeof t.hour12==`boolean`&&aA()){t={...t};let n=nA[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(eA.has(n))return eA.get(n);let r=new Intl.DateTimeFormat(e,t);return eA.set(n,r),r}var iA=null;function aA(){return iA??=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1}).format(new Date(2020,2,3,0))===`24`,iA}var oA=null;function sA(){return oA??=new Intl.DateTimeFormat(`fr`,{hour:`numeric`,hour12:!1}).resolvedOptions().hourCycle===`h12`,oA}function cA(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,``),e+=(e.includes(`-u-`)?``:`-u`)+`-nu-latn`;let n=rA(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}function lA(e){e=DD(e??{},uA);let{locale:t}=bw();return(0,x.useMemo)(()=>new tA(t,e),[t,e])}function uA(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function dA(e,t){let n=(0,x.useRef)(!0),r=(0,x.useRef)(null),i=sw(e);(0,x.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,x.useEffect)(()=>{let e=r.current;n.current?n.current=!1:(!e||t.some((t,n)=>!Object.is(t,e[n])))&&i(),r.current=t},t)}function fA(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function pA(e,t){let n=e;for(fA(n,t)&&(n=n.parentElement);n&&!fA(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function mA(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(fA(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function hA(e,t,n={}){e!==t&&gA(e,t,t.getBoundingClientRect(),n)}function gA(e,t,n,r={}){let{block:i=`nearest`,inline:a=`nearest`}=r,o=e.scrollTop,s=e.scrollLeft,c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,O=parseFloat(u.borderRightWidth)||0,k=n.top-_,A=n.bottom+v,j=n.left-y,M=n.right+b,ee=e===d?0:D+O,N=e===d?0:T+E,P=e===d?0:e.offsetWidth-e.clientWidth-ee,te=e===d?0:e.offsetHeight-e.clientHeight-N,F=p+(f?0:T)+x,ne=m-(f?0:E)-S-te,re=h+(f?0:D)+C,ie=g-(f?0:O)-w;iC()&&oC()||u.direction===`ltr`?ie-=P:u.direction===`rtl`&&(re+=P);let ae=k<F||A>ne,oe=j<re||M>ie;if(ae&&i===`start`)o+=k-F;else if(ae&&i===`center`)o+=(k+A)/2-(F+ne)/2;else if(ae&&i===`end`)o+=A-ne;else if(ae&&i===`nearest`){let e=k-F,t=A-ne;o+=Math.abs(e)<=Math.abs(t)?e:t}if(oe&&a===`start`)s+=j-re;else if(oe&&a===`center`)s+=(j+M)/2-(re+ie)/2;else if(oe&&a===`end`)s+=M-ie;else if(oe&&a===`nearest`){let e=j-re,t=M-ie;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function _A(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=mA(e,!0);for(let t of i)hA(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?mA(n,!0):[];for(let e of i)hA(e,n,{block:`center`,inline:`center`});for(let t of mA(e,!0))hA(t,e)}}}}var vA=0,yA=new Map;function bA(e){let[t,n]=(0,x.useState)();return Rx(()=>{if(!e)return;let t=yA.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${vA++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},yA.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),yA.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var xA={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function SA(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,x.useState)(!1),{focusWithinProps:a}=ME({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,x.useMemo)(()=>r?t:t?{...xA,...t}:xA,[r]);return{visuallyHiddenProps:{...a,style:o}}}function CA(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=SA(e);return x.createElement(n,H(a,o),t)}var wA=(0,x.createContext)(null),TA=(0,x.forwardRef)(function(e,t){return(0,x.useContext)(wA)?.isInvalid?x.createElement(EA,{...e,ref:t}):null}),EA=(0,x.forwardRef)((e,t)=>{let n=(0,x.useContext)(wA),{elementType:r,...i}=e,a=K(i,{global:!0}),o=uS({...i,defaultClassName:`react-aria-FieldError`,defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(` `),values:n});return o.children==null?null:x.createElement(ED,{slot:`errorMessage`,elementType:r,...a,...o,ref:t})}),DA={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},OA={...DA,customError:!0,valid:!1},kA={isInvalid:!1,validationDetails:DA,validationErrors:[]},AA=(0,x.createContext)({}),jA=`__reactAriaFormValidationState`;function MA(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[jA];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return NA(e)}function NA(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s=`aria`}=e;n&&(t||=n===`invalid`);let c=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:OA},l=(0,x.useMemo)(()=>!o||i==null?null:IA(FA(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,x.useContext)(AA),d=(0,x.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>PA(u[e])):PA(u[r]):[],[u,r]),[f,p]=(0,x.useState)(u),[m,h]=(0,x.useState)(!1);u!==f&&(p(u),h(!1));let g=(0,x.useMemo)(()=>IA(m?[]:d),[m,d]),_=(0,x.useRef)(kA),[v,y]=(0,x.useState)(kA),b=(0,x.useRef)(kA),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;LA(e,b.current)||(b.current=e,y(e))},[C,w]=(0,x.useState)(!1);return(0,x.useEffect)(S),{realtimeValidation:c||g||l||a||kA,displayValidation:s===`native`?c||g||v:c||g||l||a||v,updateValidation(e){s===`aria`&&!LA(v,e)?y(e):_.current=e},resetValidation(){let e=kA;LA(e,b.current)||(b.current=e,y(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function PA(e){return e?Array.isArray(e)?e:[e]:[]}function FA(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return PA(n)}return[]}function IA(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:OA}:null}function LA(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}var RA=(0,x.createContext)(null),zA=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,RA);let{validationErrors:n,validationBehavior:r=`native`,children:i,className:a,...o}=e;return x.createElement(U.form,{noValidate:r!==`native`,...o,ref:t,className:a||`react-aria-Form`},x.createElement(RA.Provider,{value:{...e,validationBehavior:r}},x.createElement(AA.Provider,{value:n??{}},i)))}),BA=new WeakMap;function VA(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=WE(e),s=iS([!!t,!!n,r,i]),c=iS([!!t,!!n,r,i]);return o=H(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}function HA(e,t,n){let r=sw(e=>{n&&!e.defaultPrevented&&n(t)});(0,x.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function UA(e,t,n){let{validationBehavior:r,focus:i}=e;Rx(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(GA(n.current))}});let a=(0,x.useRef)(!1),o=sw(()=>{a.current||t.resetValidation()}),s=sw(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&KA(r)===n.current&&(i?i():n.current?.focus(),BC(`keyboard`)),e.preventDefault()}),c=sw(()=>{t.commitValidation()});(0,x.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&G(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function WA(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function GA(e){return{isInvalid:!e.validity.valid,validationDetails:WA(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function KA(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}function qA(e=!0){let[t,n]=(0,x.useState)(e),r=(0,x.useRef)(!1),i=(0,x.useCallback)(e=>{r.current=!0,n(!!e)},[]);return Rx(()=>{r.current||n(!1)},[]),[i,t]}function JA(e=!0){let t=nS(),[n,r]=qA(e);return{id:r?t:void 0,ref:n}}function YA(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,form:s,children:c,isRequired:l,validationBehavior:u=`aria`,"aria-label":d,"aria-labelledby":f,"aria-describedby":p,onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:v,onClick:y}=e,b=MA({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=b.displayValidation;UA(e,b,n);let T=e=>{e.stopPropagation(),t.setSelected(G(e).checked)},{pressProps:E,isPressed:D}=CE({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:v,onClick:y,isDisabled:r}),[O,k]=(0,x.useState)(!1),{pressProps:A}=CE({onPressStart(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(m?.(e),g?.(!0),k(!0))},onPressEnd(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(h?.(e),g?.(!1),k(!1))},onPressUp(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():v?.(e)},onClick:y,onPress(r){if(r.pointerType===`keyboard`||r.pointerType===`virtual`){r.continuePropagation();return}_?.(r),t.toggle(),n.current?.focus();let{[jA]:i}=e,{commitValidation:a}=i||b;a()},isDisabled:r||i}),{focusableProps:j}=ET(e,n),M=H(E,j),ee=K(e,{labelable:!0});HA(n,t.defaultSelected,t.setSelected);let N=JA(),P=JA();return{labelProps:H(A,{onClick:e=>e.preventDefault()}),inputProps:H(ee,{checked:t.isSelected,"aria-required":l&&u===`aria`||void 0,required:l&&u===`native`,"aria-invalid":S||e.validationState===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-controls":e[`aria-controls`],"aria-readonly":i||void 0,"aria-describedby":[N.id,P.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...M}),descriptionProps:N,errorMessageProps:P,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function XA(e,t,n){let{labelProps:r,inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}=YA(e,t,n),{isIndeterminate:m}=e;return(0,x.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:H(r,(0,x.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}}function ZA(e={}){let{isReadOnly:t}=e,[n,r]=Iw(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=(0,x.useState)(n);function a(e){t||r(e)}function o(){t||r(!n)}return{isSelected:n,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:o}}function QA(e,t,n){let r=ZA({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:i,form:a,descriptionId:o,errorMessageId:s,validationBehavior:c}=BA.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=MA({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,x.useRef)(kA),d=()=>{t.setInvalid(e.value,l.isInvalid?l:u.current)};(0,x.useEffect)(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:l,p=c===`native`?t.displayValidation:f,m=XA({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[jA]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){u.current=e,d()}}},r,n);return{...m,inputProps:{...m.inputProps,"aria-describedby":[m.inputProps[`aria-describedby`],t.isInvalid?s:null,o].filter(Boolean).join(` `)||void 0}}}var $A=(0,x.createContext)(null),ej=(0,x.createContext)(null),tj=(0,x.createContext)(null),nj=(0,x.createContext)(null);function rj(e,t){let{validationBehavior:n}=dS(RA)||{},r=e.validationBehavior??n??`native`,i=(0,x.useContext)(tj),a=sS((0,x.useMemo)(()=>aS(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...mS(e),children:typeof e.children==`function`||e.children,value:e.value,validationBehavior:r};return[i?QA(o,i,a):XA(o,ZA(e),a),a]}var ij=(0,x.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=fS(r,t,$A);let[i,a]=rj(e,n);return x.createElement(nj.Provider,{value:{...i,inputRef:a,defaultClassName:`react-aria-Checkbox`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}},x.createElement(aj,{...e,ref:t}))}),aj=(0,x.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isIndeterminate:d,isRequired:f}=(0,x.useContext)(nj),{isFocused:p,isFocusVisible:m,focusProps:h}=NE(),g=a||o,{hoverProps:_,isHovered:v}=zE({...e,isDisabled:g}),y=uS({...e,defaultClassName:u,values:{isSelected:i,isIndeterminate:d||!1,isPressed:s,isHovered:v,isFocused:p,isFocusVisible:m,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:f||!1}}),b=K(e,{global:!0});return delete b.id,delete b.onClick,x.createElement(U.label,{...H(b,n,_,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":f||void 0},x.createElement(CA,{elementType:`span`},x.createElement(`input`,{...H(r,h),ref:l})),y.children)}),oj=(0,x.createContext)({}),sj=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,oj);let{isDisabled:n,isInvalid:r,isReadOnly:i,onHoverStart:a,onHoverChange:o,onHoverEnd:s,...c}=e;n??=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`,r??=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`;let{hoverProps:l,isHovered:u}=zE({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=NE({within:!0}),m=uS({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return x.createElement(U.div,{...H(c,p,l),...m,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},m.children)}),cj=(0,x.createContext)({}),lj=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},uj=kT(function(e,t){[e,t]=fS(e,t,cj);let{hoverProps:n,isHovered:r}=zE({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=NE({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=uS({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return x.createElement(U.input,{...H(lj(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});function dj(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=Iw(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=ET(e,t),d=MA({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:v}=VA({...e,isInvalid:f,errorMessage:e.errorMessage||p}),y=K(e,{labelable:!0}),b={type:o,pattern:e.pattern},[S]=(0,x.useState)(c);return HA(t,e.defaultValue??S,l),UA(e,d,t),{labelProps:h,inputProps:H(y,n===`input`?b:void 0,{disabled:r,readOnly:a,required:i&&s===`native`,"aria-required":i&&s===`aria`||void 0,"aria-invalid":f||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-activedescendant":e[`aria-activedescendant`],"aria-autocomplete":e[`aria-autocomplete`],"aria-haspopup":e[`aria-haspopup`],"aria-controls":e[`aria-controls`],value:c,onChange:e=>l(G(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...g}),descriptionProps:_,errorMessageProps:v,isInvalid:f,validationErrors:p,validationDetails:m}}function fj(){return typeof window<`u`&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges==`function`}function pj(e,t,n){let r=sw(e=>{let r=n.current;if(!r)return;let i=null;switch(e.inputType){case`historyUndo`:case`historyRedo`:return;case`insertLineBreak`:return;case`deleteContent`:case`deleteByCut`:case`deleteByDrag`:i=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentForward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentBackward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteSoftLineBackward`:case`deleteHardLineBackward`:i=r.value.slice(r.selectionStart);break;default:e.data!=null&&(i=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd))}i!=null&&t.validate(i)||e.preventDefault()});(0,x.useEffect)(()=>{if(!fj()||!n.current)return;let e=n.current;return e.addEventListener(`beforeinput`,r,!1),()=>{e.removeEventListener(`beforeinput`,r,!1)}},[n]);let i=fj()?null:e=>{let n=G(e).value.slice(0,G(e).selectionStart)+e.data+G(e).value.slice(G(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:c,...l}=dj(e,n),u=(0,x.useRef)(null);return{inputProps:H(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=u.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:c,...l}}function mj(e,t){let{onScroll:n,isDisabled:r}=e,i=(0,x.useCallback)(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);cw(t,`wheel`,r?void 0:i)}var hj={};hj={Empty:`فارغ`};var gj={};gj={Empty:`Изпразни`};var _j={};_j={Empty:`Prázdné`};var vj={};vj={Empty:`Tom`};var yj={};yj={Empty:`Leer`};var bj={};bj={Empty:`Άδειο`};var xj={};xj={Empty:`Empty`};var Sj={};Sj={Empty:`Vacío`};var Cj={};Cj={Empty:`Tühjenda`};var wj={};wj={Empty:`Tyhjä`};var Tj={};Tj={Empty:`Vide`};var Ej={};Ej={Empty:`ריק`};var Dj={};Dj={Empty:`Prazno`};var Oj={};Oj={Empty:`Üres`};var kj={};kj={Empty:`Vuoto`};var Aj={};Aj={Empty:`空`};var jj={};jj={Empty:`비어 있음`};var Mj={};Mj={Empty:`Tuščias`};var Nj={};Nj={Empty:`Tukšs`};var Pj={};Pj={Empty:`Tom`};var Fj={};Fj={Empty:`Leeg`};var Ij={};Ij={Empty:`Pusty`};var Lj={};Lj={Empty:`Vazio`};var Rj={};Rj={Empty:`Vazio`};var zj={};zj={Empty:`Gol`};var Bj={};Bj={Empty:`Не заполнено`};var Vj={};Vj={Empty:`Prázdne`};var Hj={};Hj={Empty:`Prazen`};var Uj={};Uj={Empty:`Prazno`};var Wj={};Wj={Empty:`Tomt`};var Gj={};Gj={Empty:`Boş`};var Kj={};Kj={Empty:`Пусто`};var qj={};qj={Empty:`空`};var Jj={};Jj={Empty:`空白`};var Yj={};Yj={"ar-AE":hj,"bg-BG":gj,"cs-CZ":_j,"da-DK":vj,"de-DE":yj,"el-GR":bj,"en-US":xj,"es-ES":Sj,"et-EE":Cj,"fi-FI":wj,"fr-FR":Tj,"he-IL":Ej,"hr-HR":Dj,"hu-HU":Oj,"it-IT":kj,"ja-JP":Aj,"ko-KR":jj,"lt-LT":Mj,"lv-LV":Nj,"nb-NO":Pj,"nl-NL":Fj,"pl-PL":Ij,"pt-BR":Lj,"pt-PT":Rj,"ro-RO":zj,"ru-RU":Bj,"sk-SK":Vj,"sl-SI":Hj,"sr-SP":Uj,"sv-SE":Wj,"tr-TR":Gj,"uk-UA":Kj,"zh-CN":qj,"zh-TW":Jj};function Xj(e){return e&&e.__esModule?e.default:e}var Zj=()=>{};function Qj(e){let t=(0,x.useRef)(void 0),{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:c,onIncrement:l,onIncrementPage:u,onDecrement:d,onDecrementPage:f,onDecrementToMin:p,onIncrementToMax:m}=e,h=Pw(Xj(Yj),`@react-aria/spinbutton`),g=(0,x.useRef)(!1),_=(0,x.useCallback)(()=>{clearTimeout(t.current),g.current=!1},[]),v=sw(()=>{_()});(0,x.useEffect)(()=>()=>v(),[]);let{keyboardProps:y}=xT({isDisabled:o||s,shortcuts:{PageUp:()=>{if(u)u();else if(l)l();else return!1},ArrowUp:()=>{if(l)l();else return!1},PageDown:()=>{if(f)f();else if(d)d();else return!1},ArrowDown:()=>{if(d)d();else return!1},Home:()=>{if(p)p();else return!1},End:()=>{if(m)m();else return!1}},allowRepeats:!0}),b=(0,x.useRef)(!1),S=()=>{b.current=!0},C=()=>{b.current=!1},w=r===``?h.format(`Empty`):(r||`${n}`).replace(`-`,`−`);(0,x.useEffect)(()=>{b.current&&(gD(`assertive`),hD(w,`assertive`))},[w]);let T=(0,x.useCallback)(()=>{_()},[_]),E=sw(l??Zj),D=sw(d??Zj),O=sw(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(E(),k(60))}),k=sw(e=>{v(),g.current=!0,t.current=window.setTimeout(O,e)}),A=sw(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(D(),j(60))}),j=sw(e=>{v(),g.current=!0,t.current=window.setTimeout(A,e)}),M=e=>{e.preventDefault()},{addGlobalListener:ee,removeAllGlobalListeners:N}=_E(),P=(0,x.useRef)(!1),[te,F]=(0,x.useState)(null);(0,x.useEffect)(()=>{te===`touch`?k(600):te?k(400):te||v()},[te]);let[ne,re]=(0,x.useState)(null);return(0,x.useEffect)(()=>{ne===`touch`?j(600):ne?j(400):ne||v()},[ne]),{spinButtonProps:{role:`spinbutton`,"aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":c||void 0,...y,onFocus:S,onBlur:C},incrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(ee(window,`pointercancel`,T,{capture:!0}),P.current=!1,F(`touch`)):(l?.(),F(`mouse`)),ee(window,`contextmenu`,M)},onPressUp:e=>{_(),e.pointerType===`touch`&&(P.current=!0),N(),F(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&P.current&&l?.(),P.current=!1,F(null)},onFocus:S,onBlur:C},decrementButtonProps:{onPressStart:e=>{_(),e.pointerType===`touch`?(ee(window,`pointercancel`,T,{capture:!0}),P.current=!1,re(`touch`)):(d?.(),re(`mouse`))},onPressUp:e=>{_(),e.pointerType===`touch`&&(P.current=!0),N(),re(null)},onPressEnd:e=>{_(),e.pointerType===`touch`&&!g.current&&P.current&&d?.(),P.current=!1,re(null)},onFocus:S,onBlur:C}}}var $j={};$j={decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`حقل رقمي`};var eM={};eM={decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`Номер на полето`};var tM={};tM={decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`Číselné pole`};var nM={};nM={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:`Talfelt`};var rM={};rM={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:`Nummernfeld`};var iM={};iM={decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`Πεδίο αριθμού`};var aM={};aM={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:`Number field`};var oM={};oM={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var sM={};sM={decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri väli`};var cM={};cM={decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokenttä`};var lM={};lM={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:`Champ de nombre`};var uM={};uM={decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`שדה מספר`};var dM={};dM={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var fM={};fM={decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Számmező`};var pM={};pM={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:`Campo numero`};var mM={};mM={decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`数値フィールド`};var hM={};hM={decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`번호 필드`};var gM={};gM={decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:`Numerio laukas`};var _M={};_M={decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skaitļu lauks`};var vM={};vM={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:`Tallfelt`};var yM={};yM={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:`Getalveld`};var bM={};bM={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:`Pole numeru`};var xM={};xM={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var SM={};SM={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo numérico`};var CM={};CM={decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`Câmp numeric`};var wM={};wM={decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`Числовое поле`};var TM={};TM={decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`Číselné pole`};var EM={};EM={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`Številčno polje`};var DM={};DM={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var OM={};OM={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerfält`};var kM={};kM={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Sayı alanı`};var AM={};AM={decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`Поле номера`};var jM={};jM={decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`数字字段`};var MM={};MM={decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`數字欄位`};var NM={};NM={"ar-AE":$j,"bg-BG":eM,"cs-CZ":tM,"da-DK":nM,"de-DE":rM,"el-GR":iM,"en-US":aM,"es-ES":oM,"et-EE":sM,"fi-FI":cM,"fr-FR":lM,"he-IL":uM,"hr-HR":dM,"hu-HU":fM,"it-IT":pM,"ja-JP":mM,"ko-KR":hM,"lt-LT":gM,"lv-LV":_M,"nb-NO":vM,"nl-NL":yM,"pl-PL":bM,"pt-BR":xM,"pt-PT":SM,"ro-RO":CM,"ru-RU":wM,"sk-SK":TM,"sl-SI":EM,"sr-SP":DM,"sv-SE":OM,"tr-TR":kM,"uk-UA":AM,"zh-CN":jM,"zh-TW":MM};function PM(e){return e&&e.__esModule?e.default:e}function FM(e,t,n){let{id:r,decrementAriaLabel:i,incrementAriaLabel:a,isDisabled:o,isReadOnly:s,isRequired:c,minValue:l,maxValue:u,autoFocus:d,label:f,formatOptions:p,onBlur:m=()=>{},onFocus:h,onFocusChange:g,onKeyDown:_,onKeyUp:v,description:y,errorMessage:b,isWheelDisabled:S,...C}=e,{increment:w,incrementToMax:T,decrement:E,decrementToMin:D,numberValue:O,inputValue:k,commit:A,commitValidation:j}=t,M=Pw(PM(NM),`@react-aria/numberfield`),ee=(0,x.useCallback)(()=>{let e=n.current?.value??``;(0,NT.flushSync)(()=>{A()}),n.current?.value!==e&&hD(n.current?.value??``,`assertive`)},[A,n]),N=nS(r),{focusProps:P}=sT({onBlur(){ee()}}),te=cD(p),F=(0,x.useMemo)(()=>te.resolvedOptions(),[te]),ne=cD({...p,currencySign:void 0}),{spinButtonProps:re,incrementButtonProps:ie,decrementButtonProps:ae}=Qj({isDisabled:o,isReadOnly:s,isRequired:c,maxValue:u,minValue:l,onIncrement:w,onIncrementToMax:T,onDecrement:E,onDecrementToMin:D,value:O,textValue:(0,x.useMemo)(()=>isNaN(O)?``:ne.format(O),[ne,O])}),[oe,se]=(0,x.useState)(!1),{focusWithinProps:ce}=ME({isDisabled:o,onFocusWithinChange:se});mj({onScroll:(0,x.useCallback)(e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?w():e.deltaY<0&&E())},[E,w]),isDisabled:S||o||s||!oe},n);let le=(F.maximumFractionDigits??0)>0,ue=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,de=`numeric`;nC()?ue?de=`text`:le&&(de=`decimal`):cC()&&(ue?de=`numeric`:le&&(de=`decimal`));let fe=e=>{t.validate(e)&&t.setInputValue(e)},pe=t=>{e.onPaste?.(t);let n=G(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),A(t.clipboardData?.getData?.(`text/plain`)?.trim()??``))},me=K(e),{keyboardProps:I}=xT({isDisabled:o||s,shortcuts:{Enter:()=>((0,NT.flushSync)(()=>{A()}),j(),{shouldPreventDefault:!1})},onKeyDown:_,onKeyUp:v}),{isInvalid:he,validationErrors:ge,validationDetails:_e}=t.displayValidation,{labelProps:ve,inputProps:ye,descriptionProps:be,errorMessageProps:xe}=pj({...C,...me,name:void 0,form:void 0,label:f,autoFocus:d,isDisabled:o,isReadOnly:s,isRequired:c,validate:void 0,[jA]:t,value:k,defaultValue:`!`,autoComplete:`off`,"aria-label":e[`aria-label`]||void 0,"aria-labelledby":e[`aria-labelledby`]||void 0,id:N,type:`text`,inputMode:de,onChange:fe,onBlur:m,onFocus:h,onFocusChange:g,onPaste:pe,description:y,errorMessage:b},t,n),Se=H(I,ye);HA(n,t.defaultNumberValue,t.setNumberValue),LM(t,e.validationBehavior,e.commitBehavior,n,t.minValue,t.maxValue,e.step,t.numberValue);let Ce=H(re,P,Se,{role:null,"aria-roledescription":iC()?null:M.format(`numberField`),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:`off`,spellCheck:`false`});e.validationBehavior===`native`&&(Ce[`aria-required`]=void 0);let we=e=>{kS()!==n.current&&(e.pointerType===`mouse`?n.current?.focus():e.target.focus())},Te=e[`aria-label`]||(typeof e.label==`string`?e.label:``),Ee;Te||(Ee=e.label==null?e[`aria-labelledby`]:ve.id);let De=nS(),Oe=nS(),ke=H(ie,{"aria-label":a||M.format(`increase`,{fieldLabel:Te}).trim(),id:Ee&&!a?De:null,"aria-labelledby":Ee&&!a?`${De} ${Ee}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:we}),Ae=H(ae,{"aria-label":i||M.format(`decrease`,{fieldLabel:Te}).trim(),id:Ee&&!i?Oe:null,"aria-labelledby":Ee&&!i?`${Oe} ${Ee}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:we});return{groupProps:{...ce,role:`group`,"aria-disabled":o,"aria-invalid":he?`true`:void 0},labelProps:ve,inputProps:Ce,incrementButtonProps:ke,decrementButtonProps:Ae,errorMessageProps:xe,descriptionProps:be,isInvalid:he,validationErrors:ge,validationDetails:_e}}var IM=null;function LM(e,t,n,r,i,a,o,s){Rx(()=>{let c=r.current;if(n!==`validate`||e.realtimeValidation.isInvalid||!c||c.disabled||(!IM&&typeof document<`u`&&(IM=document.createElement(`input`),IM.type=`number`),!IM))return;IM.min=i!=null&&!isNaN(i)?String(i):``,IM.max=a!=null&&!isNaN(a)?String(a):``,IM.step=o!=null&&!isNaN(o)?String(o):``,IM.value=s!=null&&!isNaN(s)?String(s):``;let l=c.validity.valid&&IM.validity.valid,u=c.validationMessage||IM.validationMessage,d={isInvalid:!l,validationErrors:u?[u]:[],validationDetails:{badInput:c.validity.badInput,customError:c.validity.customError,patternMismatch:c.validity.patternMismatch,rangeOverflow:IM.validity.rangeOverflow,rangeUnderflow:IM.validity.rangeUnderflow,stepMismatch:IM.validity.stepMismatch,tooLong:c.validity.tooLong,tooShort:c.validity.tooShort,typeMismatch:c.validity.typeMismatch,valueMissing:c.validity.valueMissing,valid:l}};e.updateValidation(d),t===`native`&&!IM.validity.valid&&c.setCustomValidity(IM.validationMessage)})}function RM(e){let{minValue:t,maxValue:n,step:r,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:c,isDisabled:l,isReadOnly:u,commitBehavior:d=`snap`}=e;a===null&&(a=NaN);let f=(0,x.useCallback)(e=>r===void 0||isNaN(r)?lD(e,t,n):dD(e,t,n,r),[r,t,n]);a!==void 0&&!isNaN(a)&&d===`snap`&&(a=f(a)),!isNaN(o)&&d===`snap`&&(o=f(o));let[p,m]=Iw(a,isNaN(o)?NaN:o,s),[h]=(0,x.useState)(p),[g,_]=(0,x.useState)(()=>isNaN(p)?``:new qE(c,i).format(p)),v=(0,x.useMemo)(()=>new QE(c,i),[c,i]),y=(0,x.useMemo)(()=>v.getNumberingSystem(g),[v,g]),b=(0,x.useMemo)(()=>new qE(c,{...i,numberingSystem:y}),[c,i,y]),S=(0,x.useMemo)(()=>b.resolvedOptions(),[b]),C=(0,x.useCallback)(e=>isNaN(e)||e===null?``:b.format(e),[b]),w=MA({...e,value:p}),T=r!==void 0&&!isNaN(r)?r:1;S.style===`percent`&&(r===void 0||isNaN(r))&&(T=.01);let[E,D]=(0,x.useState)(p),[O,k]=(0,x.useState)(c),[A,j]=(0,x.useState)(i);Object.is(p,E)&&c===O&&zM(i,A)||(_(C(p)),D(p),k(c),j(i));let M=(0,x.useMemo)(()=>v.parse(g),[v,g]),ee=e=>{let t=e===void 0?g:e,n=M;if(e!==void 0&&(n=v.parse(t)),!t.length){m(NaN),_(a===void 0?``:C(p));return}if(isNaN(n)){_(C(p));return}let r=d===`snap`?f(n):n;r=v.parse(C(r));let i=r!==p;m(r),_(C(a===void 0?r:p)),i&&w.commitValidation()},N=(e,r=0)=>{let i=M;if(isNaN(i))return dD(isNaN(r)?0:r,t,n,T);{let r=dD(i,t,n,T);return e===`+`&&r>i||e===`-`&&r<i?r:dD(BM(e,i,T),t,n,T)}},P=()=>{let e=N(`+`,t);e===p&&_(C(e)),m(e),w.commitValidation()},te=()=>{let e=N(`-`,n);e===p&&_(C(e)),m(e),w.commitValidation()},F=()=>{n!=null&&(m(dD(n,t,n,T)),w.commitValidation())},ne=()=>{t!=null&&(m(t),w.commitValidation())},re=(0,x.useMemo)(()=>!l&&!u&&(isNaN(M)||n===void 0||isNaN(n)||dD(M,t,n,T)>M||BM(`+`,M,T)<=n),[l,u,t,n,T,M]),ie=(0,x.useMemo)(()=>!l&&!u&&(isNaN(M)||t===void 0||isNaN(t)||dD(M,t,n,T)<M||BM(`-`,M,T)>=t),[l,u,t,n,T,M]),ae=e=>v.isValidPartialNumber(e,t,n);return{...w,validate:ae,increment:P,incrementToMax:F,decrement:te,decrementToMin:ne,canIncrement:re,canDecrement:ie,minValue:t,maxValue:n,numberValue:M,defaultNumberValue:isNaN(o)?h:o,setNumberValue:m,setInputValue:_,inputValue:g,commit:ee}}function zM(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function BM(e,t,n){let r=e===`+`?t+n:t-n;if(t%1!=0||n%1!=0){let i=t.toString().split(`.`),a=n.toString().split(`.`),o=i[1]&&i[1].length||0,s=a[1]&&a[1].length||0,c=10**Math.max(o,s);t=Math.round(t*c),n=Math.round(n*c),r=e===`+`?t+n:t-n,r/=c}return r}var VM={};VM={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var HM={};HM={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var UM={};UM={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var WM={};WM={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var GM={};GM={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var KM={};KM={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var qM={};qM={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var JM={};JM={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var YM={};YM={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var XM={};XM={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var ZM={};ZM={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var QM={};QM={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var $M={};$M={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var eN={};eN={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var tN={};tN={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var nN={};nN={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var rN={};rN={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var iN={};iN={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var aN={};aN={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var oN={};oN={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var sN={};sN={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var cN={};cN={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var lN={};lN={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var uN={};uN={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var dN={};dN={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var fN={};fN={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var pN={};pN={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var mN={};mN={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var hN={};hN={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var gN={};gN={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var _N={};_N={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var vN={};vN={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var yN={};yN={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var bN={};bN={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var xN={};xN={"ar-AE":VM,"bg-BG":HM,"cs-CZ":UM,"da-DK":WM,"de-DE":GM,"el-GR":KM,"en-US":qM,"es-ES":JM,"et-EE":YM,"fi-FI":XM,"fr-FR":ZM,"he-IL":QM,"hr-HR":$M,"hu-HU":eN,"it-IT":tN,"ja-JP":nN,"ko-KR":rN,"lt-LT":iN,"lv-LV":aN,"nb-NO":oN,"nl-NL":sN,"pl-PL":cN,"pt-BR":lN,"pt-PT":uN,"ro-RO":dN,"ru-RU":fN,"sk-SK":pN,"sl-SI":mN,"sr-SP":hN,"sv-SE":gN,"tr-TR":_N,"uk-UA":vN,"zh-CN":yN,"zh-TW":bN};var SN=(0,x.createContext)({}),CN=(0,x.createContext)(null),wN=(0,x.forwardRef)(function(e,t){let{render:n}=(0,x.useContext)(CN);return x.createElement(x.Fragment,null,n(e,t))});function TN(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=(0,x.useCallback)(e=>{if(r||t?.isDropTarget(e))return n?n(e):x.createElement(wN,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function EN(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`)e=n.collection.getKeyAfter(e);else{if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}}i=e??t??i}return(0,x.useMemo)(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var DN=(0,x.createContext)({}),ON=GT(Vw,function(e,t){return[e,t]=fS(e,t,DN),x.createElement(U.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),kN=(0,x.createContext)(null);function AN(e){let t=(0,x.useRef)({});return x.createElement(kN.Provider,{value:t},e.children)}var jN=(0,x.createContext)({isSelected:!1});function MN(e){let t=K(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var NN=(0,x.createContext)({}),PN=GT(class extends zw{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},function(e,t){[e,t]=fS(e,t,NN);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let l=U[c],{separatorProps:u}=MN({...s,elementType:n,orientation:r}),d=K(e,{global:!0});return x.createElement(l,{render:e.render,...H(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),FN=new WeakMap;function IN(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function LN(e,t){let n=FN.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${IN(t)}`}var RN=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!W(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return W(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function zN(e,t,n,r){return OS()?new RN(e,t,n,r):e.createTreeWalker(t,n,r)}var BN=x.createContext(null),VN=`react-aria-focus-scope-restore`,HN=null;function UN(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=(0,x.useRef)([]),{parentNode:c}=(0,x.useContext)(BN)||{},l=(0,x.useMemo)(()=>new pP({scopeRef:s}),[s]);Rx(()=>{let e=c||mP.root;if(mP.getTreeNode(e.scopeRef)&&HN&&!eP(HN,e.scopeRef)){let t=mP.getTreeNode(HN);t&&(e=t)}e.addChild(l),mP.addNode(l)},[l,c]),Rx(()=>{let e=mP.getTreeNode(s);e&&(e.contain=!!n)},[n]),Rx(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(VN,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(VN,n)}},[t]),aP(s,r,n),YN(s,n),sP(s,r,n),iP(s,i),(0,x.useEffect)(()=>{let e=kS(yS(s.current?s.current[0]:void 0)),t=null;if(ZN(e,s.current)){for(let n of mP.traverse())n.scopeRef&&ZN(e,n.scopeRef.current)&&(t=n);t===mP.getTreeNode(s)&&(HN=t.scopeRef)}},[s]),Rx(()=>()=>{let e=mP.getTreeNode(s)?.parent?.scopeRef??null;s!==HN&&!eP(s,HN)||e&&!mP.getTreeNode(e)||(HN=e),mP.removeTreeNode(s)},[s]);let u=(0,x.useMemo)(()=>WN(s),[]),d=(0,x.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return x.createElement(BN.Provider,{value:d},x.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,x.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function WN(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||kS(yS(n[0]??void 0)),c=n[0].previousElementSibling,l=lP(GN(n),{tabbable:i,accept:o},n);l.currentNode=ZN(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&tP(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||kS(yS(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=lP(GN(n),{tabbable:i,accept:o},n);l.currentNode=ZN(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&tP(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=lP(GN(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&tP(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=lP(GN(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&tP(o,!0),o}}}function GN(e){return e[0].parentElement}function KN(e){let t=mP.getTreeNode(HN);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function qN(e){if(!e.form)return Array.from(yS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=bS(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function JN(e){if(e.checked)return!0;let t=qN(e);return t.length>0&&!t.some(e=>e.checked)}function YN(e,t){let n=(0,x.useRef)(void 0),r=(0,x.useRef)(void 0);Rx(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=yS(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!KN(e)||t.isComposing)return;let n=kS(a),r=e.current;if(!r||!ZN(n,r))return;let i=lP(GN(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(tP(o,!0),o instanceof bS(o).HTMLInputElement&&o.select())},s=t=>{(!HN||eP(HN,e))&&ZN(G(t),e.current)?(HN=e,n.current=G(t)):KN(e)&&!QN(G(t),e)?n.current?tP(n.current):HN&&HN.current&&rP(HN.current):KN(e)&&(n.current=G(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=zC(),i=(r===`virtual`||r===null)&&cC()&&sC(),o=kS(a);if(!i&&o&&KN(e)&&!QN(o,e)){HN=e;let r=G(t);r&&r.isConnected?(n.current=r,tP(n.current)):HN.current&&rP(HN.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),Rx(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function XN(e){return QN(e)}function ZN(e,t){return!e||!t?!1:t.some(t=>W(t,e))}function QN(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of mP.traverse(mP.getTreeNode(t)))if(n&&ZN(e,n.current))return!0;return!1}function $N(e){return QN(e,HN)}function eP(e,t){let n=mP.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function tP(e,t=!1){if(e!=null&&!t)try{oT(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function nP(e,t=!0){let n=e[0].previousElementSibling,r=GN(e),i=lP(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=GN(e),i=lP(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function rP(e,t=!0){tP(nP(e,t))}function iP(e,t){let n=x.useRef(t);(0,x.useEffect)(()=>{n.current&&(HN=e,!ZN(kS(yS(e.current?e.current[0]:void 0)),HN.current)&&e.current&&rP(e.current)),n.current=!1},[e])}function aP(e,t,n){Rx(()=>{if(t||n)return;let r=e.current,i=yS(r?r[0]:void 0),a=t=>{let n=G(t);ZN(n,e.current)?HN=e:XN(n)||(HN=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function oP(e){let t=mP.getTreeNode(HN);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function sP(e,t,n){let r=(0,x.useRef)(typeof document<`u`?kS(yS(e.current?e.current[0]:void 0)):null);Rx(()=>{let r=e.current,i=yS(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!HN||eP(HN,e))&&ZN(kS(i),e.current)&&(HN=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),Rx(()=>{let r=yS(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!KN(e)||t.isComposing)return;let n=r.activeElement;if(!QN(n,e)||!oP(e))return;let i=mP.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=lP(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==r.body||(a=void 0,i.nodeToRestore=void 0),(!s||!QN(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(QN(s,e));t.preventDefault(),t.stopPropagation(),s?tP(s,!0):XN(a)?tP(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),Rx(()=>{let n=yS(e.current?e.current[0]:void 0);if(!t)return;let i=mP.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=mP.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=kS(n);if(t&&i&&(a&&QN(a,e)||a===n.body&&oP(e))){let t=mP.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){cP(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&mP.getTreeNode(n.scopeRef)){let e=nP(n.scopeRef.current,!0);if(e){cP(e);return}}n=n.parent}}})}}},[e,t])}function cP(e){e.dispatchEvent(new CustomEvent(VN,{bubbles:!0,cancelable:!0}))&&tP(e)}function lP(e,t,n){let r=t?.tabbable?GS:WS,i=yS(e?.nodeType===Node.ELEMENT_NODE?e:null),a=zN(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return W(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!JN(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||ZN(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function uP(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||kS(yS(r)),l=lP(r,{tabbable:a,accept:s});W(r,c)&&(l.currentNode=c);let u=l.nextNode();return!u&&o&&(l.currentNode=r,u=l.nextNode()),u&&tP(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,c=i||kS(yS(r)),l=lP(r,{tabbable:a,accept:s});if(W(r,c))l.currentNode=c;else{let e=dP(l);return e&&tP(e,!0),e??null}let u=l.previousNode();if(!u&&o){l.currentNode=r;let e=dP(l);if(!e)return null;u=e}return u&&tP(u,!0),u??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=lP(r,{tabbable:i,accept:a}).nextNode();return o&&tP(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=dP(lP(r,{tabbable:i,accept:a}));return o&&tP(o,!0),o??null}}}function dP(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var fP=class e{constructor(){this.fastMap=new Map,this.root=new pP({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new pP({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ZN(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},pP=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},mP=new fP;function hP(e){return aC()?e.altKey:e.ctrlKey}function gP(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var _P=new WeakMap;function vP(e){let t=nS();return _P.set(e,t),t}function yP(e){return _P.get(e)}var bP=1e3;function xP(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,x.useRef)({search:``,timeout:void 0});return(0,x.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},bP)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=SP(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!W(e.currentTarget,G(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.stopPropagation();else{i.current.search=``,clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},bP)}}:void 0}}}function SP(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function CP(e,t){let n=(0,x.useRef)(!0),r=(0,x.useRef)(null);Rx(()=>(n.current=!0,()=>{n.current=!1}),[]),Rx(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function wP(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,scrollRef:p=r,linkBehavior:m=`action`,UNSTABLE_focusOnEntry:h}=e,{direction:g}=bw(),_=pC(),v=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!hP(e)){(0,NT.flushSync)(()=>{t.setFocusedKey(n,i)});let a=gP(r,n),o=t.getItemProps(n);if(a){_.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}if(l&&!hP(e)){t.replaceSelection(n);return}}return!1},y=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},b=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},S=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,iw(e));if(t.setFocusedKey(r),r!=null){if(iw(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},C=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`first`:`last`);return}}return!1},w=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`last`:`first`);return}}return!1},T=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,iw(e));if(t.setFocusedKey(r),r!=null){if(iw(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},E=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return v(e,r)}return!1},D=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return v(e,r)}return!1},O=()=>{if(t.selectionMode===`multiple`&&s!==!0)t.selectAll();else return!1},k=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0)t.clearSelection();else return!1},A=()=>{if(!f&&r.current){let e=lP(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=kS();t&&(!jS(t)||i&&!GS(i))&&IS(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},j=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(e,t)=>({[tC()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[tC()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:ee}=xT({shortcuts:{...M(`ArrowDown`,y),...M(`ArrowUp`,b),...M(`ArrowLeft`,C),...M(`ArrowRight`,w),...M(`PageDown`,E),...M(`PageUp`,D)},allowRepeats:!0}),{keyboardProps:N}=xT({shortcuts:{...M(`Home`,S),...M(`End`,T),"Mod+A":O,Escape:k,Tab:A,"Tab+Shift":j}}),P=(0,x.useRef)({top:0,left:0});cw(p,`scroll`,()=>{P.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let te=e=>{if(t.isFocused){W(e.currentTarget,G(e))||t.setFocused(!1);return}if(!W(e.currentTarget,G(e)))return;let i=zC();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))};if(h&&(i===`keyboard`||i===`virtual`))a(h===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=P.current.top,p.current.scrollLeft=P.current.left);if(t.focusedKey!=null&&p.current){let e=gP(r,t.focusedKey);e instanceof HTMLElement&&(!jS(e)&&!d&&IS(e),(i===`keyboard`||h&&i===`virtual`)&&_A(e,{containingElement:r.current}))}},F=e=>{W(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},ne=(0,x.useRef)(!1);cw(r,vS,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(ne.current=!0)}:void 0);let re=n.getFirstKey?.()??null;CP(()=>{if(ne.current){if(re==null){let e=kS();MS(r.current),PS(e,null),t.collection.size>0&&(ne.current=!1)}else t.setFocusedKey(re),ne.current=!1}},[re,t.collection.size]),CP(()=>{t.collection.size>0&&(ne.current=!1)},[t.focusedKey]),cw(r,_S,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let ie=(0,x.useRef)(i),ae=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(ie.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&l&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!d&&r.current&&oT(r.current),t.collection.size>0&&(ie.current=!1,ae.current=!0)}});let oe=(0,x.useRef)(t.focusedKey),se=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==oe.current||ae.current)&&p.current&&r.current){let e=zC(),n=gP(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||ae.current)&&(se.current&&cancelAnimationFrame(se.current),se.current=requestAnimationFrame(()=>{p.current&&(hA(p.current,n),e!==`virtual`&&_A(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&oe.current!=null&&r.current&&oT(r.current),oe.current=t.focusedKey,ae.current=!1}),(0,x.useEffect)(()=>()=>{se.current&&cancelAnimationFrame(se.current)},[]),cw(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let ce={...H(N,ee),onFocus:te,onBlur:F,onMouseDown(e){p.current===G(e)&&e.preventDefault()}},{typeSelectProps:le}=xP({keyboardDelegate:n,selectionManager:t});u||(ce=H(le,ce));let ue;d||(ue=t.focusedKey==null?0:-1);let de=vP(t.collection);return{collectionProps:H(ce,{tabIndex:ue,"data-collection":de})}}var TP=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:gP(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},EP=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new TP(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new TP(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=gP(this.ref,e);if(t!=null){let e=gP(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=gP(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!fA(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!fA(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},DP=new Map;function OP(e){let{locale:t}=bw(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(DP.has(n))return DP.get(n);let r=new Intl.Collator(t,e);return DP.set(n,r),r}function kP(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=OP({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,x.useMemo)(()=>a||new EP({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=wP({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function AP(e,t,n){let r=K(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=kP({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=ME({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=nS(e.id);FN.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=WE({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:H(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...H(d,s)})}}var jP=500;function MP(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=jP,accessibilityDescription:s}=e,c=(0,x.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=_E(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=CE({isDisabled:t,onPressStart(e){if(e.continuePropagation(),d(e)){r&&r({...e,type:`longpressstart`}),c.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),l(e.target,`click`,e=>e.preventDefault(),{once:!0}),yS(e.target).activeElement!==e.target&&IS(e.target),a&&a({...e,type:`longpress`}),c.current=void 0},o),e.pointerType===`touch`&&l(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=bS(e.target);l(t,`pointerup`,()=>{setTimeout(()=>{u()},100)},{once:!0})}},onPressEnd(e){c.current&&clearTimeout(c.current),i&&d(e)&&i({...e,type:`longpressend`})}});return{longPressProps:H(f,bA(a&&!t?s:void 0))}}function NP(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=pC();t=nS(t);let p=e=>{if(e.pointerType===`keyboard`&&hP(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(iw(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,x.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?MS(i.current):s?s():kS()!==i.current&&i.current&&oT(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){G(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,x.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),S=y&&v&&n.selectionBehavior===`replace`,C=b||S,w=(0,x.useRef)(null),T=C&&v,E=(0,x.useRef)(!1),D=(0,x.useRef)(!1),O=n.getItemProps(r),k=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),_&&i.current&&f.open(i.current,e,O.href,O.routerOptions)},A={ref:i};a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||FP(e.key))&&p(e)},u?(A.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},A.onPress=b?k:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):A.onPress=e=>{if(b||S&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!PP(e.key))return;k(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,D.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||FP(e.key)))&&p(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&PP(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):v&&p(e))});let j=yP(n.collection);if(m[`data-collection`]=j,m[`data-key`]=r,A.preventFocusOnPress=o,o&&(A=H(A,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])O[e]&&(A[e]=Lx(A[e],O[e]));let{pressProps:M,isPressed:ee}=CE(A),N=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:P}=MP({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),te=e=>{w.current===`touch`&&E.current&&e.preventDefault()},F=d!==`none`&&n.isLink(r)?e=>{hC.isOpening||e.preventDefault()}:void 0,ne=H(m,v||b||o&&!c?M:{},T?P:{},{onDoubleClick:N,onDragStartCapture:te,onClick:F,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),re=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==j;t=t.parentElement}return GS(e)},ie=ne.onPointerDown;ne.onPointerDown=e=>{let t=G(e);t&&t!==i.current&&re(t)?e.stopPropagation():ie?.(e)};let ae=ne.onMouseDown;return ne.onMouseDown=e=>{let t=G(e);t&&t!==i.current&&re(t)?e.stopPropagation():ae?.(e)},{itemProps:ne,isPressed:ee,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:C}}function PP(e){return e===`Enter`}function FP(e){return e===` `}function IP(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function LP(e){return RP(e,0)}function RP(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function zP(e){let t;for(let n of e)t=n;return t}function BP(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...VP(e,t),t],i=[...VP(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function VP(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var HP=new WeakMap;function UP(e){let t=HP.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(IP(i,e)):i.type===`item`&&n++};return r(e),HP.set(e,n),n}function WP(e,t,n){let{key:r}=e,i=FN.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),o=e.isSelected??t.selectionManager.isSelected(r),s=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,c=e.shouldFocusOnHover??i?.shouldFocusOnHover,l=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,u=e.isVirtualized??i?.isVirtualized,d=iS(),f=iS(),p={role:`option`,"aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:o,"aria-label":e[`aria-label`],"aria-labelledby":d,"aria-describedby":f},m=t.collection.getItem(r);if(u){let e=Number(m?.index);p[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,p[`aria-setsize`]=UP(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=LN(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=NP({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:u,shouldUseVirtualFocus:l,isDisabled:a,onAction:h||m?.props?.onAction?Lx(m?.props?.onAction,h):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:g}),{hoverProps:S}=zE({isDisabled:a||!c,onHoverStart(){RC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=K(m?.props);delete C.id;let w=yC(m?.props);return{optionProps:{...p,...H(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&RC(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function GP(e){let{heading:t,"aria-label":n}=e,r=nS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function KP(e){let t=x.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var qP=class{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},JP=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function YP(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function XP(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,x.useRef)(!1),[,s]=(0,x.useState)(!1),c=(0,x.useRef)(null),l=(0,x.useRef)(null),[,u]=(0,x.useState)(null),[d,f]=Iw((0,x.useMemo)(()=>ZP(e.selectedKeys),[e.selectedKeys]),(0,x.useMemo)(()=>ZP(e.defaultSelectedKeys,new JP),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,x.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,x.useRef)(i);return(0,x.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!YP(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function ZP(e,t){return e?e===`all`?`all`:new JP(e):t}var QP=class e{constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&BP(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&BP(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new JP([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new JP(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?BP(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new JP(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&n.size===0||this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new JP([t],t,t):new JP;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new JP;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],n=r=>{for(;r!=null;){if(this.canSelectItemIn(r,e)){let i=e.getItem(r);i?.type===`item`&&t.push(r),i?.hasChildNodes&&(this.allowsCellSelection||i.type!==`item`)&&n(LP(IP(i,e))?.key??null)}r=e.getKeyAfter(r)}};return n(e.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new JP)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!==`selection`}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}},$P=class{build(e,t){return this.context=t,eF(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(x.isValidElement(t)&&t.type===x.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];x.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(x.isValidElement(e.element)&&e.element.type===x.Fragment){let i=[];x.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(x.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:tF(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${nF(t.type)}> in <${nF(r?.type??`unknown parent type`)}>. Only <${nF(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type===`item`),index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:eF(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function eF(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function tF(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function nF(e){return e[0].toUpperCase()+e.slice(1)}function rF(e,t,n){let r=(0,x.useMemo)(()=>new $P,[]),{children:i,items:a,collection:o}=e;return(0,x.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function iF(e){let{filter:t,layoutDelegate:n}=e,r=XP(e),i=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=rF(e,(0,x.useCallback)(e=>t?new qP(t(e)):new qP(e),[t]),(0,x.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,x.useMemo)(()=>new QP(a,r,{layoutDelegate:n}),[a,r,n]);return oF(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function aF(e,t){let n=(0,x.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return oF(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function oF(e,t){let n=(0,x.useRef)(null);(0,x.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function sF(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=(0,x.useRef)(null),s=sw(e=>{for(let t of e)t.isIntersecting&&r&&r()});Rx(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(s,{root:pA(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}var cF=(0,x.createContext)(null),lF=(0,x.createContext)(null),uF=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,cF);let n=(0,x.useContext)(lF);return n?x.createElement(fF,{state:n,props:e,listBoxRef:t}):x.createElement(LT,{content:x.createElement(YT,e)},n=>x.createElement(dF,{props:e,listBoxRef:t,collection:n}))});function dF({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,x.useContext)(tE),i=iF({...e,layoutDelegate:r});return x.createElement(fF,{state:i,props:e,listBoxRef:t})}function fF({state:e,props:t,listBoxRef:n}){[t,n]=fS(t,n,Lw);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=aF(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=bw(),{disabledBehavior:p,disabledKeys:m}=l,h=OP({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:v,CollectionRoot:y}=(0,x.useContext)(tE),b=(0,x.useMemo)(()=>t.keyboardDelegate||new EP({collection:c,collator:h,ref:n,disabledKeys:m,disabledBehavior:p,layout:i,orientation:a,direction:f,layoutDelegate:_}),[c,h,n,p,m,a,f,t.keyboardDelegate,i,_]),{listBoxProps:S}=AP({...t,shouldSelectOnPressUp:u||t.shouldSelectOnPressUp,keyboardDelegate:b,isVirtualized:g},s,n);(0,x.useRef)(u),(0,x.useRef)(d),(0,x.useEffect)(()=>{},[u,d]);let C,w,T,E=!1,D=null,O=(0,x.useRef)(null);if(u&&r){C=r.useDraggableCollectionState({collection:c,selectionManager:l,preview:r.renderDragPreview?O:void 0}),r.useDraggableCollection({},C,n);let e=r.DragPreview;D=r.renderDragPreview?x.createElement(e,{ref:O},r.renderDragPreview):null}if(d&&r){w=r.useDroppableCollectionState({collection:c,selectionManager:l});let e=r.dropTargetDelegate||v||new r.ListDropTargetDelegate(c,n,{orientation:a,layout:i,direction:f});T=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:e},w,n),E=w.isDropTarget({type:`root`})}let{focusProps:k,isFocused:A,isFocusVisible:j}=NE(),M=s.collection.size===0,ee={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},N=uS({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:ee}),P=null;M&&t.renderEmptyState&&(P=x.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(ee)));let te=K(t,{global:!0});return x.createElement(UN,null,x.createElement(U.div,{...H(te,N,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},x.createElement(lS,{values:[[cF,t],[lF,s],[SN,{dragAndDropHooks:r,dragState:C,dropState:w}],[NN,{elementType:`div`}],[CN,{render:gF}],[ZT,{name:`ListBoxSection`,render:pF}]]},x.createElement(AN,null,x.createElement(y,{collection:c,scrollRef:n,persistedKeys:EN(l,r,w),renderDropIndicator:TN(r,w)}))),P,D))}function pF(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,x.useContext)(lF),{dragAndDropHooks:a,dropState:o}=(0,x.useContext)(SN),{CollectionBranch:s}=(0,x.useContext)(tE),[c,l]=pS(),{headingProps:u,groupProps:d}=GP({heading:l,"aria-label":e[`aria-label`]??void 0}),f=uS({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=K(e,{global:!0});return delete p.id,x.createElement(U.section,{...H(p,f,d),ref:t},x.createElement(DN.Provider,{value:{...u,ref:c}},x.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:TN(a,o)})))}var mF=KT(Ww,pF),hF=GT(Uw,function(e,t,n){let r=sS(t),i=(0,x.useContext)(lF),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,x.useContext)(SN),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=WP({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=zE({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=xT(e),{focusProps:g}=sT(e),_=null;o&&a&&(_=a.useDraggableItem({key:n.key,hasAction:f.hasAction},o));let v=null;s&&a&&(v=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},s,r));let y=o&&o.isDragging(n.key),b=uS({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...f,isHovered:m,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:y,isDropTarget:v?.isDropTarget}});(0,x.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?U.a:U.div,C=K(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),x.createElement(S,{...H(C,b,l,p,h,g,_?.dragProps,v?.dropProps),ref:r,"data-allows-dragging":!!o||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},x.createElement(lS,{values:[[TD,{slots:{[cS]:u,label:u,description:d}}],[jN,{isSelected:f.isSelected}]]},b.children))});function gF(e,t){t=sS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(SN),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:x.createElement(vF,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function _F(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=uS({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return x.createElement(x.Fragment,null,x.createElement(U.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var vF=(0,x.forwardRef)(_F);GT(Hw,function(e,t,n){let r=(0,x.useContext)(lF),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,x.useRef)(null);sF((0,x.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=uS({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:KP(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&x.createElement(x.Fragment,null,x.createElement(U.div,{...H(K(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});var yF=(0,x.createContext)({placement:`bottom`}),bF=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function xF(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var SF=new WeakMap,CF=[];function wF(e,t){let n=bS(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&bF,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(OS()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;wS(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(W(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=zN(yS(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=SF.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),SF.set(e,t+1))};CF.length&&CF[CF.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>W(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&xF(e)?o.add(e):e instanceof Element&&d(e);if(OS()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(OS())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>W(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&xF(e)?o.add(e):e instanceof Element&&d(e);if(OS()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return CF.push(h),()=>{if(p.disconnect(),OS())for(let e of m)e.disconnect();for(let e of s){let t=SF.get(e);t!=null&&(t===1?(l(e,!1),SF.delete(e)):SF.set(e,t-1))}h===CF[CF.length-1]?(CF.pop(),CF.length&&CF[CF.length-1].observe()):CF.splice(CF.indexOf(h),1)}}function TF(e){let t=CF[CF.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var EF={top:`top`,bottom:`top`,left:`left`,right:`left`},DF={top:`bottom`,bottom:`top`,left:`right`,right:`left`},OF={top:`left`,left:`top`},kF={top:`height`,left:`width`},AF={width:`totalWidth`,height:`totalHeight`},jF={},MF=()=>typeof document<`u`?window.visualViewport:null;function NF(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c={},l=(t?.scale??1)>1;if(e.tagName===`BODY`||e.tagName===`HTML`){let l=document.documentElement;i=l.clientWidth,a=l.clientHeight,n=t?.width??i,r=t?.height??a,c.top=l.scrollTop||e.scrollTop,c.left=l.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(c.top??0)),s=Math.max(0,t.pageLeft-(c.left??0)))}else({width:n,height:r,top:o,left:s}=WF(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return oC()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&l&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:c,top:o,left:s}}function PF(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function FF(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[kF[e]],l=o[e]+r.scroll[EF[e]]+a,u=o[e]+r.scroll[EF[e]]+c-a,d=t-s+r.scroll[EF[e]]+o[e]-r[EF[e]],f=t-s+n+r.scroll[EF[e]]+o[e]-r[EF[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function IF(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function LF(e){if(jF[e])return jF[e];let[t,n]=e.split(` `),r=EF[t]||`right`,i=OF[r];EF[n]||(n=`center`);let a=kF[r],o=kF[i];return jF[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},jF[e]}function RF(e,t,n,r,i,a,o,s,c,l,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:g}=r,_={};_[m]=e[m]??0,f===`center`?_[m]+=((e[g]??0)-(n[g]??0))/2:f!==m&&(_[m]+=(e[g]??0)-(n[g]??0)),_[m]+=a;let v=e[m]-n[g]+c+l,y=e[m]+e[g]-c-l;if(_[m]=lD(_[m],v,y),d===p){let t=s?u[h]:u[AF[h]];_[DF[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function zF(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[AF.height]-(e.bottom??0)-o:e.top)-(c.scroll.top??0),f=l?n.top:0,p={top:Math.max(t.top+f,(u?.offsetTop??t.top)+f),bottom:Math.min(t.top+t.height+f,(u?.offsetTop??0)+(u?.height??0))};return s===`top`?Math.max(0,d+o-p.top-((i.top??0)+(i.bottom??0)+a)):Math.max(0,p.bottom-d-((i.top??0)+(i.bottom??0)+a))}function BF(e,t,n,r,i,a,o,s){let{placement:c,axis:l,size:u}=a;return c===l?Math.max(0,n[l]-(o.scroll[l]??0)-(e[l]+(s?t[l]:0))-(r[l]??0)-r[DF[l]]-i):Math.max(0,e[u]+e[l]+(s?t[l]:0)-n[l]-n[u]+(o.scroll[l]??0)-(r[l]??0)-r[DF[l]]-i)}function VF(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=LF(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=RF(t,s,n,v,u,d,l,f,m,h,c),T=u,E=BF(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=LF(`${DF[S]} ${C}`),r=RF(t,s,n,e,u,d,l,f,m,h,c);BF(s,l,t,i,a+u,e,c,g)>E&&(v=e,w=r,T=u)}let D=`bottom`;v.axis===`top`?v.placement===`top`?D=`top`:v.placement===`bottom`&&(D=`bottom`):v.crossAxis===`top`&&(v.crossPlacement===`top`?D=`bottom`:v.crossPlacement===`bottom`&&(D=`top`));let O=FF(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=zF(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=RF(t,s,n,v,T,d,l,f,m,h,c),O=FF(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[EF[b]],M=j+.5*t[x],ee=m/2+h,N=EF[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),P=n[x]-N-m/2-h;A[b]=lD(lD(M,t[b]+m/2-(w[b]+i[EF[b]]),t[b]+t[x]-m/2-(w[b]+i[EF[b]])),ee,P),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let te=S===`left`||S===`top`?n[y]:0,F={x:S===`top`||S===`bottom`?j:te,y:S===`left`||S===`right`?j:te};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:F}}function HF(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0,targetRect:p}=e,m=MF(),h=r instanceof HTMLElement?KF(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?WF(n,!1,p):GF(n,h,!1,p);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let b=WF(r,!0),x=IF(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=PF(i),C=NF(s,m),w=NF(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=UF(h,!1);T={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}else T=(s.tagName===`BODY`||s.tagName===`HTML`)&&g?{top:0,left:0,width:0,height:0}:GF(s,h,!1);let E=W(s,h);return VF(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function UF(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function WF(e,t,n){let{top:r,left:i,width:a,height:o}=n||UF(e,t),{scrollTop:s,scrollLeft:c,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:i+c-u,width:a,height:o}}function GF(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||UF(e,n);else{a=WF(e,n,r);let i=WF(t,n),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function KF(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!qF(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!qF(t);)t=t.parentElement;return t||document.documentElement}function qF(e){let t=window.getComputedStyle(e);return t.transform!==`none`||/transform|perspective/.test(t.willChange)||t.filter!==`none`||t.contain===`paint`||`backdropFilter`in t&&t.backdropFilter!==`none`||`WebkitBackdropFilter`in t&&t.WebkitBackdropFilter!==`none`}var JF=new WeakMap;function YF(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,x.useEffect)(()=>!n||r===null?void 0:TS(AS(t.current),`scroll`,e=>{let n=G(e);if(!t.current||n instanceof Node&&!W(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||JF.get(t.current);i&&i()},!0),[n,r,t])}function XF(){return window.ResizeObserver!==void 0}function ZF(e){let{ref:t,box:n,onResize:r}=e,i=sw(r);(0,x.useEffect)(()=>{let e=t?.current;if(e){if(XF()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}var QF=typeof document<`u`?window.visualViewport:null;function $F(e){let{direction:t}=bw(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s=`bottom`,containerPadding:c=12,shouldFlip:l=!0,boundaryElement:u=typeof document<`u`?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:_=0,getTargetRect:v}=e,[y,b]=(0,x.useState)(null),S=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],C=(0,x.useRef)(QF?.scale);(0,x.useEffect)(()=>{m&&(C.current=QF?.scale)},[m]);let w=(0,x.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||QF?.scale!==C.current)return;let e=null;if(o.current&&jS(o.current)){let t=kS()?.getBoundingClientRect(),n=o.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let h=i.current;!g&&i.current&&(h.style.top=`0px`,h.style.bottom=``,h.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let y=HF({placement:tI(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:c,shouldFlip:l,boundaryElement:u,offset:d,crossOffset:f,maxHeight:g,arrowSize:n??(a?.current?UF(a.current,!0).width:0),arrowBoundaryOffset:_,targetRect:v?.(r.current)});if(!y.position)return;h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(y.position).forEach(e=>h.style[e]=y.position[e]+`px`),h.style.maxHeight=y.maxHeight==null?``:y.maxHeight+`px`;let x=kS();if(e&&x&&o.current){let t=x.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}b(y)},S);Rx(w,S),eI(w),ZF({ref:i,onResize:w}),ZF({ref:r,onResize:w});let T=(0,x.useRef)(!1);Rx(()=>{let e,t=()=>{T.current=!0,clearTimeout(e),e=setTimeout(()=>{T.current=!1},500),w()},n=()=>{T.current&&t()};QF?.addEventListener(`resize`,t),QF?.addEventListener(`scroll`,n);let r=TS(AS(window),`scroll`,n);return()=>{QF?.removeEventListener(`resize`,t),QF?.removeEventListener(`scroll`,n),r()}},[w]);let E=(0,x.useCallback)(()=>{T.current||h?.()},[h,T]);return YF({triggerRef:r,isOpen:m,onClose:h&&E}),{overlayProps:{style:{position:y?`absolute`:`fixed`,top:y?void 0:0,left:y?void 0:0,zIndex:1e5,...y?.position,maxHeight:y?.maxHeight??`100vh`}},placement:y?.placement??null,triggerAnchorPoint:y?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:y?.arrowOffsetLeft,top:y?.arrowOffsetTop}},updatePosition:w}}function eI(e){Rx(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function tI(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}function nI(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=sw(e=>{n&&rI(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=sw(e=>{n&&n(e)});(0,x.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=yS(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&rI(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}},[t,r])}function rI(e,t){if(e.button>0)return!1;let n=G(e);if(n){let e=n.ownerDocument;if(!e||!W(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var iI=[];function aI(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=(0,x.useRef)(void 0);(0,x.useEffect)(()=>{if(i&&!iI.includes(t))return iI.push(t),()=>{let e=iI.indexOf(t);e>=0&&iI.splice(e,1)}},[i,t]);let l=()=>{iI[iI.length-1]===t&&n&&n()},u=e=>{let n=iI[iI.length-1];c.current=n,(!s||s(G(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(G(e)))&&(iI[iI.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=xT({shortcuts:{Escape:()=>{if(!o)l();else return!1}}});nI({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=ME({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!$N(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var oI=200,sI=50,cI=600,lI=new WeakMap,uI=new Set,dI=new Set;function fI(e,t){let n=aw();if(e!==n||t.aborted)for(let e of dI)e(n),dI.delete(e);if(!e&&n&&oC()&&!t.aborted)window.clearInterval(lI.get(window)),lI.set(window,pI(oI));else{if(e!==n||t.aborted)for(let e of uI)e(n),uI.delete(e);(dI.size+uI.size<=0||t.aborted)&&(window.clearInterval(lI.get(window)),lI.delete(window))}}function pI(e=cI){return window.setInterval(fI,sI,aw(),AbortSignal.timeout(e))}function mI(e){if(!nw())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=rw(document.hasFocus()?kS():null);if(aw()===t||aw()&&!t)return e(t);dI.add(e),lI.has(window)||lI.set(window,pI())})});return()=>{window.cancelAnimationFrame(t),dI.delete(e)}}function hI(e){if(!nw())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=rw(document.hasFocus()?kS():null);if(aw()===t)return e(t);uI.add(e),lI.has(window)||lI.set(window,pI())})});return()=>{window.cancelAnimationFrame(t),uI.delete(e)}}var gI=typeof document<`u`&&window.visualViewport,_I=0,vI;function yI(e={}){let{isDisabled:t,UNSTABLE_overrideFocus:n}=e;Rx(()=>{if(!t)return _I++,_I===1&&(vI=iC()&&oC()?xI():bI(n)),()=>{_I--,_I===0&&vI()}},[t,n])}function bI(e){let t=window.innerWidth-document.documentElement.clientWidth;return Lx(t>0&&(`scrollbarGutter`in document.documentElement.style?ES(document.documentElement,`scrollbar-gutter`,`stable`):ES(document.documentElement,`padding-right`,`${t}px`)),ES(document.documentElement,`overflow`,`hidden`),e&&CI(),e&&nw()&&SI())}function xI(){let e=ES(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=G(e);t=fA(r,!0)?r:pA(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},i=document.createElement(`style`),a=hE();a&&(i.nonce=a),i.textContent=`@layer {
|
|
70
70
|
* {
|
|
71
71
|
overscroll-behavior: contain;
|
|
72
72
|
}
|
|
73
|
-
}`,document.head.prepend(i);let o=e=>{e.touches.length===2||n||(!t||t===document.documentElement||t===document.body||t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth)&&e.preventDefault()},s=_I(),c=jx(yS(document,`touchstart`,r,{passive:!1,capture:!0}),yS(document,`touchmove`,o,{passive:!1,capture:!0}),gI());return()=>{e(),c(),i.remove(),s()}}function gI(){return yS(document,`blur`,e=>{let t=G(e),n=e.relatedTarget;n&&ZC(n)?n.focus():n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},!0)}function _I(){let e=HTMLElement.prototype.focus;return Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(t){if(e.call(this,{...t,preventScroll:!0}),!t||!t.preventScroll){let e=()=>{CS()===this&&vI(this)};cI(t=>t?e():lI(()=>e()))}}}),()=>{Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:e})}}function vI(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t&&n.isConnected;){let e=sA(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;uI&&(n=Math.min(n,uI.offsetTop+uI.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function yI(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=$F({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=qF({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null,getTargetRect:c.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});pI({isDisabled:a||!t.isOpen}),(0,x.useEffect)(()=>{if(t.isOpen&&r.current)return a?yF(i?.current??r.current):vF([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=EE(e);return{popoverProps:H(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var bI={};bI={dismiss:`تجاهل`};var xI={};xI={dismiss:`Отхвърляне`};var SI={};SI={dismiss:`Odstranit`};var CI={};CI={dismiss:`Luk`};var wI={};wI={dismiss:`Schließen`};var TI={};TI={dismiss:`Απόρριψη`};var EI={};EI={dismiss:`Dismiss`};var DI={};DI={dismiss:`Descartar`};var OI={};OI={dismiss:`Lõpeta`};var kI={};kI={dismiss:`Hylkää`};var AI={};AI={dismiss:`Rejeter`};var jI={};jI={dismiss:`התעלם`};var MI={};MI={dismiss:`Odbaci`};var NI={};NI={dismiss:`Elutasítás`};var PI={};PI={dismiss:`Ignora`};var FI={};FI={dismiss:`閉じる`};var II={};II={dismiss:`무시`};var LI={};LI={dismiss:`Atmesti`};var RI={};RI={dismiss:`Nerādīt`};var zI={};zI={dismiss:`Lukk`};var BI={};BI={dismiss:`Negeren`};var VI={};VI={dismiss:`Zignoruj`};var HI={};HI={dismiss:`Descartar`};var UI={};UI={dismiss:`Dispensar`};var WI={};WI={dismiss:`Revocare`};var GI={};GI={dismiss:`Пропустить`};var KI={};KI={dismiss:`Zrušiť`};var qI={};qI={dismiss:`Opusti`};var JI={};JI={dismiss:`Odbaci`};var YI={};YI={dismiss:`Avvisa`};var XI={};XI={dismiss:`Kapat`};var ZI={};ZI={dismiss:`Скасувати`};var QI={};QI={dismiss:`取消`};var $I={};$I={dismiss:`關閉`};var eL={};eL={"ar-AE":bI,"bg-BG":xI,"cs-CZ":SI,"da-DK":CI,"de-DE":wI,"el-GR":TI,"en-US":EI,"es-ES":DI,"et-EE":OI,"fi-FI":kI,"fr-FR":AI,"he-IL":jI,"hr-HR":MI,"hu-HU":NI,"it-IT":PI,"ja-JP":FI,"ko-KR":II,"lt-LT":LI,"lv-LV":RI,"nb-NO":zI,"nl-NL":BI,"pl-PL":VI,"pt-BR":HI,"pt-PT":UI,"ro-RO":WI,"ru-RU":GI,"sk-SK":KI,"sl-SI":qI,"sr-SP":JI,"sv-SE":YI,"tr-TR":XI,"uk-UA":ZI,"zh-CN":QI,"zh-TW":$I};function tL(e){return e&&e.__esModule?e.default:e}function nL(e){let{onDismiss:t,...n}=e,r=rw(n,Ow(tL(eL),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return x.createElement(_A,null,x.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var rL=x.forwardRef(({children:e,...t},n)=>{let r=(0,x.useRef)(!1),i=(0,x.useContext)(uE),a=H(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=tS(n||i?.ref),gT(i,a.ref),(0,x.useEffect)(()=>{r.current||=!0},[]),x.createElement(uE.Provider,{value:a},e)});function iL({children:e}){let t=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(uE.Provider,{value:t},e)}var aL=(0,x.createContext)({});function oL(){return(0,x.useContext)(aL)??{}}var sL=x.createContext(null);function cL(e){let t=Wx(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=oL();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=x.createElement(LN,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=x.createElement(sL.Provider,{value:o},x.createElement(iL,null,x.createElement(_T.Provider,{value:null},c))),DT.createPortal(c,n)}function lL(){let e=(0,x.useContext)(sL)?.setContain;Mx(()=>{e?.(!0)},[e])}function uL(e){let[t,n]=Aw(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,x.useState)(null);return{isOpen:t,setOpen:n,open:(0,x.useCallback)(()=>{n(!0)},[n]),close:(0,x.useCallback)(()=>{n(!1)},[n]),toggle:(0,x.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}function dL(e,t=!0,n){let[r,i]=(0,x.useState)(!0),a=r&&t;return Mx(()=>{if(!t&&e.current)return jx(bS(e.current,`opacity`,`0`),bS(e.current,`clip`,`rect(0 0 0 0)`),bS(e.current,`clip-path`,`inset(50%)`),bS(e.current,`mask-image`,`linear-gradient(#0000, #0000)`))},[e,t]),Mx(()=>{if(a&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),pL(e,a,n,(0,x.useCallback)(()=>i(!1),[])),a}function fL(e,t,n){let[r,i]=(0,x.useState)(t?`open`:`closed`);switch(r){case`open`:t||i(`exiting`);break;case`closed`:case`exiting`:t&&i(`open`)}let a=r===`exiting`;return pL(e,a,n,(0,x.useCallback)(()=>{i(e=>e===`exiting`?`closed`:e)},[])),a}function pL(e,t,n,r){let i=(0,x.useRef)(null),a=tw(n);Mx(()=>{if(t&&e.current&&i.current!==t){if(i.current=t,!(`getAnimations`in e.current)){r();return}let n=a?.(e.current),o=e.current.getAnimations().filter(e=>(typeof DocumentTimeline>`u`||e.timeline instanceof DocumentTimeline)&&e.playState===`running`);if(o.length===0&&!n){r();return}Promise.all([n,...o.map(e=>e.finished)]).then(()=>{(0,DT.flushSync)(()=>{r()})}).catch(()=>{})}i.current=t},[e,t,r])}var mL=(0,x.createContext)(null),hL=(0,x.createContext)(null),gL=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,mL);let n=(0,x.useContext)(ER),r=uL(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=fL(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=wT(),{direction:c}=mw();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,t)}return i&&!i.isOpen&&!o?null:x.createElement(_L,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function _L({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=(0,x.useContext)(hL),c=s&&i.trigger===`SubmenuTrigger`,[l,u]=(0,x.useState)(!1),{popoverProps:d,underlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=yI({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),g=i.popoverRef,_=dL(g,!!m&&l),v=i.isEntering||!i.shouldSkipAnimation&&_||!1,y=iS({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:m,isEntering:v,isExiting:t}}),b=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[S,C]=(0,x.useState)(i.trigger===`PreviewTrigger`);Mx(()=>{g.current&&C(b&&!g.current.querySelector(`[role=dialog]`))},[g,b]),(0,x.useEffect)(()=>{S&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||NC()!==`pointer`)&&g.current&&!TS(g.current)&&eT(g.current)},[S,g,i.trigger]);let w=(0,x.useMemo)(()=>{let e=y.children;for(let t of[mL,...r??[]])e=x.createElement(t.Provider,{value:null},e);return e},[y.children,r]),[T,E]=(0,x.useState)(null),D=(0,x.useCallback)(()=>{i.triggerRef.current&&E(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);Mx(D,[D]),GF({ref:y.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:D});let O={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...y.style,"--trigger-width":y.style?.[`--trigger-width`]||T};Mx(()=>cI(()=>u(!0)),[]);let k=x.createElement(U.div,{...H(K(i,{global:!0}),d),...y,id:S?i.id:void 0,role:S?`dialog`:void 0,tabIndex:S?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:g,slot:i.slot||void 0,style:O,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":v||void 0,"data-exiting":t||void 0},!i.isNonModal&&x.createElement(nL,{onDismiss:e.close}),x.createElement(pF.Provider,{value:{...p,placement:m,ref:a}},w),x.createElement(nL,{onDismiss:e.close}));return c?x.createElement(cL,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},k):x.createElement(cL,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&x.createElement(`div`,{"data-testid":`underlay`,...f,style:{position:`fixed`,inset:0}}),x.createElement(`div`,{ref:o,style:{display:`contents`}},x.createElement(hL.Provider,{value:o},k)))}var vL=(0,x.createContext)({}),yL={};yL={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var bL={};bL={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var xL={};xL={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var SL={};SL={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var CL={};CL={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var wL={};wL={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var TL={};TL={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var EL={};EL={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var DL={};DL={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var OL={};OL={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var kL={};kL={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var AL={};AL={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var jL={};jL={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var ML={};ML={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var NL={};NL={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var PL={};PL={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var FL={};FL={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var IL={};IL={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var LL={};LL={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var RL={};RL={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var zL={};zL={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var BL={};BL={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var VL={};VL={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var HL={};HL={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var UL={};UL={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var WL={};WL={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var GL={};GL={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var KL={};KL={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var qL={};qL={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var JL={};JL={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var YL={};YL={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var XL={};XL={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var ZL={};ZL={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var QL={};QL={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var $L={};$L={"ar-AE":yL,"bg-BG":bL,"cs-CZ":xL,"da-DK":SL,"de-DE":CL,"el-GR":wL,"en-US":TL,"es-ES":EL,"et-EE":DL,"fi-FI":OL,"fr-FR":kL,"he-IL":AL,"hr-HR":jL,"hu-HU":ML,"it-IT":NL,"ja-JP":PL,"ko-KR":FL,"lt-LT":IL,"lv-LV":LL,"nb-NO":RL,"nl-NL":zL,"pl-PL":BL,"pt-BR":VL,"pt-PT":HL,"ro-RO":UL,"ru-RU":WL,"sk-SK":GL,"sl-SI":KL,"sr-SP":qL,"sv-SE":JL,"tr-TR":YL,"uk-UA":XL,"zh-CN":ZL,"zh-TW":QL};function eR(e){let{onContextMenu:t}=e,n=(0,x.useRef)(!1),{longPressProps:r}=EP({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:H(QS()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(YS()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function tR(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,x.useEffect)(()=>{n&&n.current&&HF.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=Xx();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function nR(e){return e&&e.__esModule?e.default:e}function rR(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=Xx(),{triggerProps:s,overlayProps:c}=tR({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=hT({isDisabled:i,shortcuts:{Enter:e=>l(a!==`longPress`,e,`first`)," ":e=>l(a!==`longPress`,e,`first`),ArrowDown:e=>l(a!==`longPress`,e,`first`),ArrowUp:e=>l(a!==`longPress`,e,`last`),"Alt+Enter":e=>l(a===`longPress`,e,`first`),"Alt+ ":e=>l(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>l(!0,e,`first`),"Alt+ArrowUp":e=>l(!0,e,`last`)}}),d=Ow(nR($L),`@react-aria/menu`),{longPressProps:f}=EP({isDisabled:i||a!==`longPress`,accessibilityDescription:d.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),p={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(AS(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(AS(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=eR({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,x.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&G(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let h;if(a===`press`)h={...p,...u};else if(a===`longPress`)h={...f,...u};else if(a===`contextMenu`){h=m;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=s;s=r}return{menuTriggerProps:{...s,...h,id:o},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var iR=new WeakMap;function aR(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=K(e,{labelable:!0}),{listProps:c}=CP({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return iR.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:H(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{(t.key!==`Escape`||e.shouldUseVirtualFocus)&&c.onKeyDown?.(t)}})}}function oR(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:o,isVirtualized:s,"aria-haspopup":c,onPressStart:l,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onClick:m,onHoverStart:h,onHoverChange:g,onHoverEnd:_,onKeyDown:v,onKeyUp:y,onFocus:b,onFocusChange:S,onBlur:C,selectionManager:w=t.selectionManager}=e,T=!!c,E=T&&e[`aria-expanded`]===`true`,D=e.isDisabled??w.isDisabled(i),O=e.isSelected??w.isSelected(i),k=iR.get(t),A=t.collection.getItem(i),j=e.onClose||k.onClose,M=sC(),ee=()=>{if(!T&&(A?.props?.onAction?A.props.onAction():e.onAction&&e.onAction(i),k.onAction)){let e=k.onAction;e(i,A?.value)}},N=`menuitem`;T||(w.selectionMode===`single`?N=`menuitemradio`:w.selectionMode===`multiple`&&(N=`menuitemcheckbox`));let P=Qx(),te=Qx(),F=Qx(),ne={id:r,"aria-disabled":D||void 0,role:N,"aria-label":e[`aria-label`],"aria-labelledby":P,"aria-describedby":[e[`aria-describedby`],te,F].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":c,"aria-expanded":e[`aria-expanded`]};if(w.selectionMode!==`none`&&!T&&(ne[`aria-checked`]=O),s){let e=Number(A?.index);ne[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,ne[`aria-setsize`]=LP(t.collection)}let re=(0,x.useRef)(!1),ie=e=>{f?.(e),re.current=e},ae=(0,x.useRef)(null),oe=e=>{e.pointerType!==`keyboard`&&(ae.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(re.current||e.target.click()),u?.(e)},se=e=>{m?.(e),ee(),mC(e,M,A.props.href,A?.props.routerOptions);let t=ae.current?.pointerType===`keyboard`?ae.current?.key===`Enter`||w.selectionMode===`none`||w.isLink(i):w.selectionMode!==`multiple`||w.isLink(i);t=o??a??t,j&&!T&&t&&j(),ae.current=null},{itemProps:ce,isFocused:le}=DP({id:r,selectionManager:w,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:ue,isPressed:de}=_E({onPressStart:l,onPress:d,onPressUp:oe,onPressChange:ie,onPressEnd:p,isDisabled:D}),{hoverProps:fe}=NE({isDisabled:D,onHoverStart(e){!MC()&&!(E&&c)&&(w.setFocused(!0),w.setFocusedKey(i)),h?.(e)},onHoverChange:g,onHoverEnd:_}),{keyboardProps:pe}=hT({shortcuts:{" ":e=>{ae.current={pointerType:`keyboard`,key:` `},G(e).click(),PC(`keyboard`)},Enter:e=>{ae.current={pointerType:`keyboard`,key:`Enter`};let t=G(e);if(t.tagName!==`A`)t.click(),PC(`keyboard`);else return PC(`keyboard`),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:v,onKeyUp:y}),{focusableProps:me}=bT({onBlur:C,onFocus:b,onFocusChange:S},n),I=K(A?.props);delete I.id;let he=pC(A?.props);return{menuItemProps:{...ne,...H(I,he,T?{onFocus:ce.onFocus,"data-collection":ce[`data-collection`],"data-key":ce[`data-key`]}:ce,ue,fe,pe,me,k.shouldUseVirtualFocus||T?{onMouseDown:e=>e.preventDefault()}:void 0,D?void 0:{onClick:se}),tabIndex:ce.tabIndex!=null&&E&&!k.shouldUseVirtualFocus?-1:ce.tabIndex},labelProps:{id:P},descriptionProps:{id:te},keyboardShortcutProps:{id:F},isFocused:le,isFocusVisible:le&&w.isFocused&&MC()&&!E,isSelected:O,isPressed:de,isDisabled:D}}function sR(e){let{heading:t,"aria-label":n}=e,r=Xx();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function cR(e){let t=uL(e),[n,r]=(0,x.useState)(null),[i,a]=(0,x.useState)([]),o=()=>{a([]),t.close()},s=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},c=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:s,closeSubmenu:c}}var lR=class{constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function uR(e){let{onExpandedChange:t}=e,[n,r]=Aw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=WP(e),a=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=ZP(e,(0,x.useCallback)(e=>new lR(e,{expandedKeys:n}),[n]),null);return(0,x.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(dR(n,e))},setExpandedKeys:r,selectionManager:new KP(o,i)}}function dR(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var fR=(0,x.createContext)(null),pR=(0,x.createContext)(null),mR=(0,x.createContext)(null),hR=(0,x.createContext)(null);function gR(e){let t=cR(e),n=(0,x.useRef)(null),{menuTriggerProps:r,menuProps:i}=rR({...e,type:`menu`},t,n),a=(0,x.useRef)(null);return wT()?null:x.createElement(rS,{values:[[fR,{...i,ref:a}],[ER,t],[mR,t],[mL,{trigger:`MenuTrigger`,triggerRef:n,scrollRef:a,placement:`bottom start`,"aria-labelledby":i[`aria-labelledby`],offset:e.trigger===`contextMenu`?0:void 0}]]},x.createElement(rL,{...r,ref:n,isPressed:t.isOpen},e.children))}var _R=(0,x.createContext)(null);(class extends Nw{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}});var vR=(0,x.forwardRef)(function(e,t){return[e,t]=oS(e,t,fR),x.createElement(jT,{content:x.createElement(UT,e)},n=>x.createElement(yR,{props:e,collection:n,menuRef:t}))});function yR({props:e,collection:t,menuRef:n}){[e,n]=oS(e,n,jw);let{filter:r,...i}=e,a=(0,x.useMemo)(()=>r?t.filter(r):t,[t,r]),o=uR({...e,collection:a,children:void 0}),s=(0,x.useContext)(mR),{isVirtualized:c,CollectionRoot:l}=(0,x.useContext)(YT),{menuProps:u}=aR({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=iS({...e,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=x.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=K(e,{global:!0});return x.createElement(LN,null,x.createElement(U.div,{...H(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},x.createElement(rS,{values:[[pR,o],[DN,{elementType:`div`}],[GT,{name:`MenuSection`,render:xR}],[_R,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[SR,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[jw,null],[Mw,null],[hR,o.selectionManager],[mR,s??cR({})]]},x.createElement(wN,null,x.createElement(l,{collection:o.collection,persistedKeys:XT(o.selectionManager.focusedKey),scrollRef:n}))),f))}var bR=class extends KP{constructor(e,t){super(e.collection,t),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function xR(e,t,n,r=`react-aria-MenuSection`){let i=(0,x.useContext)(pR),{CollectionBranch:a}=(0,x.useContext)(YT),[o,s]=sS(),{headingProps:c,groupProps:l}=sR({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=iS({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,x.useContext)(hR),f=WP(e),p=e.selectionMode==null?d:new bR(d,f),m=aS(SR)?.shouldCloseOnSelect,h=K(e,{global:!0});return delete h.id,x.createElement(U.section,{...H(h,u,l),ref:t},x.createElement(rS,{values:[[xN,{...c,ref:o}],[hR,p],[SR,{shouldCloseOnSelect:e.shouldCloseOnSelect??m}]]},x.createElement(a,{collection:i.collection,parent:n})))}var SR=(0,x.createContext)(null),CR=zT(Lw,function(e,t,n){[e,t]=oS(e,t,SR);let r=aS(SR)?.id,i=(0,x.useContext)(pR),a=tS(t),o=(0,x.useContext)(hR),{isVirtualized:s}=(0,x.useContext)(YT),{menuItemProps:c,labelProps:l,descriptionProps:u,keyboardShortcutProps:d,...f}=oR({...e,id:r,key:n.key,selectionManager:o,isVirtualized:s},i,a),{hoverProps:p,isHovered:m}=NE({isDisabled:f.isDisabled}),h=iS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),g=e.href?U.a:U.div,_=K(e,{global:!0});return delete _.id,delete _.onClick,x.createElement(g,{...H(_,h,c,p),ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},x.createElement(rS,{values:[[yD,{slots:{[nS]:l,label:l,description:u}}],[vL,d],[TN,{isSelected:f.isSelected}]]},h.children))});zT(Iw,function(e,t,n){let r=(0,x.useContext)(pR),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,x.useRef)(null);tF((0,x.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=iS({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:BP(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&x.createElement(x.Fragment,null,x.createElement(U.div,{...H(K(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function wR(e,t){let{role:n=`dialog`,isEntering:r}=e,i=Qx();i=e[`aria-label`]?void 0:i;let a=Qx();a=n===`alertdialog`&&!e[`aria-describedby`]?a:void 0;let o=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(!r&&t.current&&!TS(t.current)){eT(t.current);let e=setTimeout(()=>{(CS()===t.current||CS()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),eT(t.current)),o.current=!1)},500);return()=>{clearTimeout(e)}}},[t,r]),lL(),(0,x.useRef)(!1),(0,x.useEffect)(()=>{});let s=e[`aria-describedby`]??a;return{dialogProps:{...K(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??i,"aria-describedby":s,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:i},contentProps:{id:a}}}var TR=(0,x.createContext)(null),ER=(0,x.createContext)(null);function DR(e){let t=cR(e),n=(0,x.useRef)(null),{triggerProps:r,overlayProps:i}=tR({type:`dialog`},t,n);return r.id=Xx(),i[`aria-labelledby`]=r.id,wT()?null:x.createElement(rS,{values:[[ER,t],[mR,t],[TR,i],[mL,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},x.createElement(rL,{...r,ref:n,isPressed:t.isOpen},e.children))}var OR=(0,x.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=oS(e,t,TR);let{dialogProps:r,titleProps:i,contentProps:a}=wR({...e,"aria-labelledby":n},t),o=(0,x.useContext)(ER);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=iS({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=K(e,{global:!0});return x.createElement(U.section,{...H(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},x.createElement(rS,{values:[[_D,{slots:{[nS]:{},title:{...i,level:2}}}],[yD,{slots:{[nS]:{},description:a}}],[pD,{slots:{[nS]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});function kR(e){let t=SP({usage:`search`,...e}),n=(0,x.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(0,n.length),n)===0),[t]),r=(0,x.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(-n.length),n)===0),[t]),i=(0,x.useCallback)((e,n)=>{if(n.length===0)return!0;e=e.normalize(`NFC`),n=n.normalize(`NFC`);let r=0,i=n.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(t.compare(n,a)===0)return!0}return!1},[t]);return(0,x.useMemo)(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function AR(e={}){let{locale:t}=mw();return(0,x.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}var jR=[`day`,`month`,`year`],MR={hour:1,minute:2,second:3};function NR(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=gA({style:{position:`fixed`,top:0,left:0}}),o=60;t.granularity===`second`?o=1:t.granularity===`hour`&&(o=3600);let s=``;t.value&&(s=t.granularity===`day`?XD(t.value).toString():ZD(`timeZone`in t.value?nO(t.value):t.value).toString());let c=t.granularity===`day`?`date`:`datetime-local`,l=[`hour`,`minute`,`second`],u=0;return l.includes(t.granularity)&&(u=MR[t.granularity],l=l.slice(0,u)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:c,form:``,name:i,step:o,value:s,onChange:e=>{let n=G(e).value.toString();if(n)try{let e=kO(n);if(t.granularity===`day`&&(e=OO(n)),`setSegment`in t)for(let n in e)jR.includes(n)&&t.setSegment(n,e[n]),l.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}function PR(e){let{state:t}=e,{containerProps:n,inputProps:r}=NR({...e},t);return x.createElement(`div`,{...n,"data-testid":`hidden-dateinput-container`},x.createElement(`input`,r))}var FR={};FR={calendar:`التقويم`,day:`يوم`,dayPeriod:`ص/م`,endDate:`تاريخ الانتهاء`,era:`العصر`,hour:`الساعات`,minute:`الدقائق`,month:`الشهر`,second:`الثواني`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:`تاريخ البدء`,timeZoneName:`التوقيت`,weekday:`اليوم`,year:`السنة`};var IR={};IR={calendar:`Календар`,day:`ден`,dayPeriod:`пр.об./сл.об.`,endDate:`Крайна дата`,era:`ера`,hour:`час`,minute:`минута`,month:`месец`,second:`секунда`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:`Начална дата`,timeZoneName:`часова зона`,weekday:`ден от седмицата`,year:`година`};var LR={};LR={calendar:`Kalendář`,day:`den`,dayPeriod:`část dne`,endDate:`Konečné datum`,era:`letopočet`,hour:`hodina`,minute:`minuta`,month:`měsíc`,second:`sekunda`,selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:`Počáteční datum`,timeZoneName:`časové pásmo`,weekday:`den v týdnu`,year:`rok`};var RR={};RR={calendar:`Kalender`,day:`dag`,dayPeriod:`AM/PM`,endDate:`Slutdato`,era:`æra`,hour:`time`,minute:`minut`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidszone`,weekday:`ugedag`,year:`år`};var zR={};zR={calendar:`Kalender`,day:`Tag`,dayPeriod:`Tageshälfte`,endDate:`Enddatum`,era:`Epoche`,hour:`Stunde`,minute:`Minute`,month:`Monat`,second:`Sekunde`,selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:`Startdatum`,timeZoneName:`Zeitzone`,weekday:`Wochentag`,year:`Jahr`};var BR={};BR={calendar:`Ημερολόγιο`,day:`ημέρα`,dayPeriod:`π.μ./μ.μ.`,endDate:`Ημερομηνία λήξης`,era:`περίοδος`,hour:`ώρα`,minute:`λεπτό`,month:`μήνας`,second:`δευτερόλεπτο`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:`Ημερομηνία έναρξης`,timeZoneName:`ζώνη ώρας`,weekday:`καθημερινή`,year:`έτος`};var VR={};VR={era:`era`,year:`year`,month:`month`,day:`day`,hour:`hour`,minute:`minute`,second:`second`,dayPeriod:`AM/PM`,calendar:`Calendar`,startDate:`Start Date`,endDate:`End Date`,weekday:`day of the week`,timeZoneName:`time zone`,selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var HR={};HR={calendar:`Calendario`,day:`día`,dayPeriod:`a.\xA0m./p.\xA0m.`,endDate:`Fecha final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mes`,second:`segundo`,selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:`Fecha de inicio`,timeZoneName:`zona horaria`,weekday:`día de la semana`,year:`año`};var UR={};UR={calendar:`Kalender`,day:`päev`,dayPeriod:`enne/pärast lõunat`,endDate:`Lõppkuupäev`,era:`ajastu`,hour:`tund`,minute:`minut`,month:`kuu`,second:`sekund`,selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:`Alguskuupäev`,timeZoneName:`ajavöönd`,weekday:`nädalapäev`,year:`aasta`};var WR={};WR={calendar:`Kalenteri`,day:`päivä`,dayPeriod:`vuorokaudenaika`,endDate:`Päättymispäivä`,era:`aikakausi`,hour:`tunti`,minute:`minuutti`,month:`kuukausi`,second:`sekunti`,selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:`Alkamispäivä`,timeZoneName:`aikavyöhyke`,weekday:`viikonpäivä`,year:`vuosi`};var GR={};GR={calendar:`Calendrier`,day:`jour`,dayPeriod:`cadran`,endDate:`Date de fin`,era:`ère`,hour:`heure`,minute:`minute`,month:`mois`,second:`seconde`,selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:`Date de début`,timeZoneName:`fuseau horaire`,weekday:`jour de la semaine`,year:`année`};var KR={};KR={calendar:`לוח שנה`,day:`יום`,dayPeriod:`לפנה״צ/אחה״צ`,endDate:`תאריך סיום`,era:`תקופה`,hour:`שעה`,minute:`דקה`,month:`חודש`,second:`שנייה`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:`תאריך התחלה`,timeZoneName:`אזור זמן`,weekday:`יום בשבוע`,year:`שנה`};var qR={};qR={calendar:`Kalendar`,day:`dan`,dayPeriod:`AM/PM`,endDate:`Datum završetka`,era:`era`,hour:`sat`,minute:`minuta`,month:`mjesec`,second:`sekunda`,selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`vremenska zona`,weekday:`dan u tjednu`,year:`godina`};var JR={};JR={calendar:`Naptár`,day:`nap`,dayPeriod:`napszak`,endDate:`Befejező dátum`,era:`éra`,hour:`óra`,minute:`perc`,month:`hónap`,second:`másodperc`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:`Kezdő dátum`,timeZoneName:`időzóna`,weekday:`hét napja`,year:`év`};var YR={};YR={calendar:`Calendario`,day:`giorno`,dayPeriod:`AM/PM`,endDate:`Data finale`,era:`era`,hour:`ora`,minute:`minuto`,month:`mese`,second:`secondo`,selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:`Data iniziale`,timeZoneName:`fuso orario`,weekday:`giorno della settimana`,year:`anno`};var XR={};XR={calendar:`カレンダー`,day:`日`,dayPeriod:`午前/午後`,endDate:`終了日`,era:`時代`,hour:`時`,minute:`分`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:`開始日`,timeZoneName:`タイムゾーン`,weekday:`曜日`,year:`年`};var ZR={};ZR={calendar:`달력`,day:`일`,dayPeriod:`오전/오후`,endDate:`종료일`,era:`연호`,hour:`시`,minute:`분`,month:`월`,second:`초`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:`시작일`,timeZoneName:`시간대`,weekday:`요일`,year:`년`};var QR={};QR={calendar:`Kalendorius`,day:`diena`,dayPeriod:`iki pietų / po pietų`,endDate:`Pabaigos data`,era:`era`,hour:`valanda`,minute:`minutė`,month:`mėnuo`,second:`sekundė`,selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:`Pradžios data`,timeZoneName:`laiko juosta`,weekday:`savaitės diena`,year:`metai`};var $R={};$R={calendar:`Kalendārs`,day:`diena`,dayPeriod:`priekšpusdienā/pēcpusdienā`,endDate:`Beigu datums`,era:`ēra`,hour:`stundas`,minute:`minūtes`,month:`mēnesis`,second:`sekundes`,selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:`Sākuma datums`,timeZoneName:`laika josla`,weekday:`nedēļas diena`,year:`gads`};var ez={};ez={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Sluttdato`,era:`tidsalder`,hour:`time`,minute:`minutt`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidssone`,weekday:`ukedag`,year:`år`};var tz={};tz={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Einddatum`,era:`tijdperk`,hour:`uur`,minute:`minuut`,month:`maand`,second:`seconde`,selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tijdzone`,weekday:`dag van de week`,year:`jaar`};var nz={};nz={calendar:`Kalendarz`,day:`dzień`,dayPeriod:`rano / po południu / wieczorem`,endDate:`Data końcowa`,era:`era`,hour:`godzina`,minute:`minuta`,month:`miesiąc`,second:`sekunda`,selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:`Data początkowa`,timeZoneName:`strefa czasowa`,weekday:`dzień tygodnia`,year:`rok`};var rz={};rz={calendar:`Calendário`,day:`dia`,dayPeriod:`AM/PM`,endDate:`Data final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data inicial`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var iz={};iz={calendar:`Calendário`,day:`dia`,dayPeriod:`am/pm`,endDate:`Data de Término`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data de Início`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var az={};az={calendar:`Calendar`,day:`zi`,dayPeriod:`a.m/p.m.`,endDate:`Dată final`,era:`eră`,hour:`oră`,minute:`minut`,month:`lună`,second:`secundă`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:`Dată început`,timeZoneName:`fus orar`,weekday:`ziua din săptămână`,year:`an`};var oz={};oz={calendar:`Календарь`,day:`день`,dayPeriod:`AM/PM`,endDate:`Дата окончания`,era:`эра`,hour:`час`,minute:`минута`,month:`месяц`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:`Дата начала`,timeZoneName:`часовой пояс`,weekday:`день недели`,year:`год`};var sz={};sz={calendar:`Kalendár`,day:`deň`,dayPeriod:`AM/PM`,endDate:`Dátum ukončenia`,era:`letopočet`,hour:`hodina`,minute:`minúta`,month:`mesiac`,second:`sekunda`,selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:`Dátum začatia`,timeZoneName:`časové pásmo`,weekday:`deň týždňa`,year:`rok`};var cz={};cz={calendar:`Koledar`,day:`dan`,dayPeriod:`dop/pop`,endDate:`Datum konca`,era:`doba`,hour:`ura`,minute:`minuta`,month:`mesec`,second:`sekunda`,selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:`Datum začetka`,timeZoneName:`časovni pas`,weekday:`dan v tednu`,year:`leto`};var lz={};lz={calendar:`Kalendar`,day:`дан`,dayPeriod:`пре подне/по подне`,endDate:`Datum završetka`,era:`ера`,hour:`сат`,minute:`минут`,month:`месец`,second:`секунд`,selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`временска зона`,weekday:`дан у недељи`,year:`година`};var uz={};uz={calendar:`Kalender`,day:`dag`,dayPeriod:`fm/em`,endDate:`Slutdatum`,era:`era`,hour:`timme`,minute:`minut`,month:`månad`,second:`sekund`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tidszon`,weekday:`veckodag`,year:`år`};var dz={};dz={calendar:`Takvim`,day:`gün`,dayPeriod:`ÖÖ/ÖS`,endDate:`Bitiş Tarihi`,era:`çağ`,hour:`saat`,minute:`dakika`,month:`ay`,second:`saniye`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Başlangıç Tarihi`,timeZoneName:`saat dilimi`,weekday:`haftanın günü`,year:`yıl`};var fz={};fz={calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`};var pz={};pz={calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var mz={};mz={calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var hz={};hz={"ar-AE":FR,"bg-BG":IR,"cs-CZ":LR,"da-DK":RR,"de-DE":zR,"el-GR":BR,"en-US":VR,"es-ES":HR,"et-EE":UR,"fi-FI":WR,"fr-FR":GR,"he-IL":KR,"hr-HR":qR,"hu-HU":JR,"it-IT":YR,"ja-JP":XR,"ko-KR":ZR,"lt-LT":QR,"lv-LV":$R,"nb-NO":ez,"nl-NL":tz,"pl-PL":nz,"pt-BR":rz,"pt-PT":iz,"ro-RO":az,"ru-RU":oz,"sk-SK":sz,"sl-SI":cz,"sr-SP":lz,"sv-SE":uz,"tr-TR":dz,"uk-UA":fz,"zh-CN":pz,"zh-TW":mz};function gz(e,t,n){let{direction:r}=mw(),i=(0,x.useMemo)(()=>iP(t),[t]),{keyboardProps:a}=hT({shortcuts:{"Alt+ArrowDown":()=>{if(`setOpen`in e)e.setOpen(!0);else return!1},"Alt+ArrowUp":()=>{if(`setOpen`in e)e.setOpen(!0);else return!1},ArrowLeft:e=>{if(n)return!1;if(r===`rtl`){if(t.current){let n=G(e),r=_z(t.current,n.getBoundingClientRect().left,-1);if(r){r.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:e=>{if(n)return!1;if(r===`rtl`){if(t.current){let n=G(e),r=_z(t.current,n.getBoundingClientRect().left,1);if(r){r.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),o=()=>{if(!t.current)return;let e=window.event?G(window.event):null,n=rP(t.current,{tabbable:!0});if(e&&=(n.currentNode=e,n.previousNode()),!e){let t;do t=n.lastChild(),t&&(e=t);while(t)}for(;e?.hasAttribute(`data-placeholder`);){let t=n.previousNode();if(t&&t.hasAttribute(`data-placeholder`))e=t;else break}e&&e.focus()},{pressProps:s}=_E({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){e.pointerType===`mouse`&&o()},onPress(e){(e.pointerType===`touch`||e.pointerType===`pen`)&&o()}});return H(s,a)}function _z(e,t,n){let r=rP(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<o&&(a=i,o=s),i=r.nextNode()}return a}function vz(e){return e&&e.__esModule?e.default:e}var yz=new WeakMap,bz=`__reactAriaDateFieldRole`,xz=`__reactAriaDateFieldFocusManager`;function Sz(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:s,descriptionProps:c,errorMessageProps:l}=FA({...e,labelElementType:`span`,isInvalid:r,errorMessage:e.errorMessage||i}),u=(0,x.useRef)(null),{focusWithinProps:d}=EE({...e,onFocusWithin(n){u.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==u.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),f=Ow(vz(hz),`@react-aria/datepicker`),p=t.maxGranularity===`hour`?`selectedTimeDescription`:`selectedDateDescription`,m=t.maxGranularity===`hour`?`time`:`date`,h=mA(t.value?f.format(p,{[m]:t.formatValue({month:`long`})}):``),g=e.__reactAriaDateFieldRole===`presentation`?s[`aria-describedby`]:[h[`aria-describedby`],s[`aria-describedby`]].filter(Boolean).join(` `)||void 0,_=e[xz],v=(0,x.useMemo)(()=>_||iP(n),[_,n]),y=gz(t,n,e[bz]===`presentation`);yz.set(t,{ariaLabel:e[`aria-label`],ariaLabelledBy:[o.id,e[`aria-labelledby`]].filter(Boolean).join(` `)||void 0,ariaDescribedBy:g,focusManager:v});let b=(0,x.useRef)(e.autoFocus),S;S=e.__reactAriaDateFieldRole===`presentation`?{role:`presentation`}:H(s,{role:`group`,"aria-disabled":e.isDisabled||void 0,"aria-describedby":g}),(0,x.useEffect)(()=>{b.current&&v.focusFirst(),b.current=!1},[v]),IA(e.inputRef,t.defaultValue,t.setValue),LA({...e,focus(){v.focusFirst()}},t,e.inputRef);let C={type:`hidden`,name:e.name,form:e.form,value:t.value?.toString()||``,disabled:e.isDisabled};e.validationBehavior===`native`&&(C.type=`text`,C.hidden=!0,C.required=e.isRequired,C.onChange=()=>{});let w=K(e);return{labelProps:{...o,onClick:()=>{v.focusFirst()}},fieldProps:H(w,S,y,d,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:`isolate`}}),inputProps:C,descriptionProps:c,errorMessageProps:l,isInvalid:r,validationErrors:i,validationDetails:a}}function Cz(e){return e&&e.__esModule?e.default:e}function wz(){let{locale:e}=mw(),t=Dw(Cz(hz),`@react-aria/datepicker`);return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(e,{type:`dateTimeField`})}catch{return new Tz(e,t)}},[e,t])}var Tz=class{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}};function Ez(e,t,n){let r=(0,x.useRef)(``),{locale:i,direction:a}=mw(),o=wz(),{ariaLabel:s,ariaLabelledBy:c,ariaDescribedBy:l,focusManager:u}=yz.get(t),d=e.isPlaceholder?``:e.text,f=(0,x.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=rA({month:`long`,timeZone:f.timeZone}),m=rA({hour:`numeric`,hour12:f.hour12,timeZone:f.timeZone});if(e.type===`month`&&!e.isPlaceholder){let e=p.format(t.dateValue);d=e===d?e:`${d} \u{2013} ${e}`}else e.type===`hour`&&!e.isPlaceholder&&(d=m.format(t.dateValue));let{spinButtonProps:h}=Kj({value:e.value??void 0,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current=``,t.increment(e.type)},onDecrement:()=>{r.current=``,t.decrement(e.type)},onIncrementPage:()=>{r.current=``,t.incrementPage(e.type)},onDecrementPage:()=>{r.current=``,t.decrementPage(e.type)},onIncrementToMax:()=>{r.current=``,t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current=``,t.decrementToMin(e.type)}}),g=(0,x.useMemo)(()=>new KE(i,{maximumFractionDigits:0}),[i]),_=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let n=e.text.slice(0,-1),i=g.parse(n);n=i===0?``:n,n.length===0||i===0?t.clearSegment(e.type):t.setSegment(e.type,i),r.current=n}else(e.type===`dayPeriod`||e.type===`era`)&&t.clearSegment(e.type)},{keyboardProps:v}=hT({shortcuts:{Backspace:()=>{_()},Delete:()=>{_()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:y}=kR({sensitivity:`base`}),b=rA({hour:`numeric`,hour12:!0}),S=(0,x.useMemo)(()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),C=(0,x.useMemo)(()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),w=rA({year:`numeric`,era:`narrow`,timeZone:`UTC`}),T=(0,x.useMemo)(()=>{if(e.type!==`era`)return[];let n=QD(new LO(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate(`UTC`);return{era:e,formatted:w.formatToParts(t).find(e=>e.type===`era`)?.value??e}}),i=Dz(r.map(e=>e.formatted));if(i)for(let e of r)e.formatted=e.formatted.slice(i);return r},[w,t.calendar,e.type]),E=n=>{if(t.isDisabled||t.isReadOnly)return;let i=r.current+n;switch(e.type){case`dayPeriod`:if(y(S,n))t.setSegment(`dayPeriod`,0);else if(y(C,n))t.setSegment(`dayPeriod`,1);else break;u.focusNext();break;case`era`:{let e=T.find(e=>y(e.formatted,n));e&&(t.setSegment(`era`,e.era),u.focusNext());break}case`day`:case`hour`:case`minute`:case`second`:case`month`:case`year`:{if(!g.isValidPartialNumber(i))return;let a=g.parse(i),o=a;if(e.maxValue!==void 0&&a>e.maxValue&&(o=g.parse(n)),isNaN(a))return;t.setSegment(e.type,o),e.maxValue!==void 0&&(Number(a+`0`)>e.maxValue||i.length>=String(e.maxValue).length)?(r.current=``,u.focusNext()):r.current=i;break}}},D=()=>{r.current=``,n.current&&dA(n.current,{containingElement:sA(n.current)}),window.getSelection()?.collapse(n.current)};nw((0,x.useRef)(typeof document<`u`?document:null),`selectionchange`,()=>{let e=window.getSelection();e?.anchorNode&&W(n.current,e?.anchorNode)&&CS()===n.current&&e.collapse(n.current)});let O=(0,x.useRef)(``);nw(n,`beforeinput`,r=>{if(n.current)switch(r.preventDefault(),r.inputType){case`deleteContentBackward`:case`deleteContentForward`:g.isValidPartialNumber(e.text)&&!t.isReadOnly&&_();break;case`insertCompositionText`:O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:r.data!=null&&E(r.data)}}),nw(n,`input`,e=>{let{inputType:t,data:r}=e;t===`insertCompositionText`&&(n.current&&(n.current.textContent=O.current),r!=null&&(y(S,r)||y(C,r))&&E(r))}),Mx(()=>{let e=n.current;return()=>{CS()===e&&(u.focusPrevious()||u.focusNext())}},[n,u]);let k=QS()||e.type===`timeZoneName`?{role:`textbox`,"aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e!==(0,x.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])&&!t.isInvalid&&(l=void 0);let A=Xx(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,M=rw({"aria-label":`${e.type===`literal`?``:o.of(e.type)}${s?`, ${s}`:``}${c?`, `:``}`,"aria-labelledby":c});if(e.type===`literal`)return{segmentProps:{"aria-hidden":!0}};let ee={caretColor:`transparent`};if(a===`rtl`){ee.unicodeBidi=`embed`;let t=f[e.type];(t===`numeric`||t===`2-digit`)&&(ee.direction=`ltr`)}return{segmentProps:H(h,M,{id:A,...k,...v,"aria-invalid":t.isInvalid?`true`:void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?`true`:void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?`false`:void 0,autoCorrect:j?`off`:void 0,enterKeyHint:j?`next`:void 0,inputMode:t.isDisabled||e.type===`dayPeriod`||e.type===`era`||!j?void 0:`numeric`,tabIndex:t.isDisabled?void 0:0,onFocus:D,style:ee,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}function Dz(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}var Oz={};Oz={rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:`تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.`,rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:`البيانات المحددة غير متاحة.`};var kz={};kz={rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:`Началната дата трябва да е преди крайната.`,rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:`Избраната дата не е налична.`};var Az={};Az={rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:`Datum zahájení musí předcházet datu ukončení.`,rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:`Vybrané datum není k dispozici.`};var jz={};jz={rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen skal være før slutdatoen.`,rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:`Den valgte dato er ikke tilgængelig.`};var Mz={};Mz={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:`Das Startdatum muss vor dem Enddatum liegen.`,rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:`Das ausgewählte Datum ist nicht verfügbar.`};var Nz={};Nz={rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:`Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.`,rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:`Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη.`};var Pz={};Pz={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:`Start date must be before end date.`,unavailableDate:`Selected date unavailable.`};var Fz={};Fz={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:`La fecha de inicio debe ser anterior a la fecha de finalización.`,rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:`Fecha seleccionada no disponible.`};var Iz={};Iz={rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:`Alguskuupäev peab olema enne lõppkuupäeva.`,rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:`Valitud kuupäev pole saadaval.`};var Lz={};Lz={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:`Aloituspäivän on oltava ennen lopetuspäivää.`,rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:`Valittu päivämäärä ei ole käytettävissä.`};var Rz={};Rz={rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:`La date de début doit être antérieure à la date de fin.`,rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:`La date sélectionnée n’est pas disponible.`};var zz={};zz={rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:`תאריך ההתחלה חייב להיות לפני תאריך הסיום.`,rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:`התאריך הנבחר אינו זמין.`};var Bz={};Bz={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:`Datum početka mora biti prije datuma završetka.`,rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:`Odabrani datum nije dostupan.`};var Vz={};Vz={rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:`A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.`,rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:`A kiválasztott dátum nem érhető el.`};var Hz={};Hz={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:`La data di inizio deve essere antecedente alla data di fine.`,rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:`Data selezionata non disponibile.`};var Uz={};Uz={rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:`開始日は終了日より前にする必要があります。`,rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:`選択した日付は使用できません。`};var Wz={};Wz={rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:`시작일은 종료일 이전이어야 합니다.`,rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:`선택한 날짜를 사용할 수 없습니다.`};var Gz={};Gz={rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:`Pradžios data turi būti ankstesnė nei pabaigos data.`,rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:`Pasirinkta data nepasiekiama.`};var Kz={};Kz={rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:`Sākuma datumam ir jābūt pirms beigu datuma.`,rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:`Atlasītais datums nav pieejams.`};var qz={};qz={rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen må være før sluttdatoen.`,rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:`Valgt dato utilgjengelig.`};var Jz={};Jz={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:`De startdatum moet voor de einddatum liggen.`,rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:`Geselecteerde datum niet beschikbaar.`};var Yz={};Yz={rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:`Data rozpoczęcia musi być wcześniejsza niż data zakończenia.`,rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:`Wybrana data jest niedostępna.`};var Xz={};Xz={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:`A data inicial deve ser anterior à data final.`,rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var Zz={};Zz={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:`A data de início deve ser anterior à data de fim.`,rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var Qz={};Qz={rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:`Data de început trebuie să fie anterioară datei de sfârșit.`,rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:`Data selectată nu este disponibilă.`};var $z={};$z={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:`Дата начала должна предшествовать дате окончания.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Выбранная дата недоступна.`};var eB={};eB={rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:`Dátum začiatku musí byť skorší ako dátum konca.`,rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:`Vybratý dátum je nedostupný.`};var tB={};tB={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:`Začetni datum mora biti pred končnim datumom.`,rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:`Izbrani datum ni na voljo.`};var nB={};nB={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:`Datum početka mora biti pre datuma završetka.`,rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:`Izabrani datum nije dostupan.`};var rB={};rB={rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet måste vara före slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet är inte tillgängligt.`};var iB={};iB={rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:`Başlangıç tarihi bitiş tarihinden önce olmalıdır.`,rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:`Seçilen tarih kullanılamıyor.`};var aB={};aB={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:`Дата початку має передувати даті завершення.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Вибрана дата недоступна.`};var oB={};oB={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:`开始日期必须早于结束日期。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:`所选日期不可用。`};var sB={};sB={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:`開始日期必須在結束日期之前。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:`所選日期無法使用。`};var cB={};cB={"ar-AE":Oz,"bg-BG":kz,"cs-CZ":Az,"da-DK":jz,"de-DE":Mz,"el-GR":Nz,"en-US":Pz,"es-ES":Fz,"et-EE":Iz,"fi-FI":Lz,"fr-FR":Rz,"he-IL":zz,"hr-HR":Bz,"hu-HU":Vz,"it-IT":Hz,"ja-JP":Uz,"ko-KR":Wz,"lt-LT":Gz,"lv-LV":Kz,"nb-NO":qz,"nl-NL":Jz,"pl-PL":Yz,"pt-BR":Xz,"pt-PT":Zz,"ro-RO":Qz,"ru-RU":$z,"sk-SK":eB,"sl-SI":tB,"sr-SP":nB,"sv-SE":rB,"tr-TR":iB,"uk-UA":aB,"zh-CN":oB,"zh-TW":sB};function lB(e){return e&&e.__esModule?e.default:e}var uB=new vw(lB(cB));function dB(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return e}function fB(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&r?.(e)||!1,c=a||o||s,l=[];if(c){let e=dB(),r=new ww(e,vw.getGlobalDictionaryForPackage(`@react-stately/datepicker`)||uB),c=new Yk(e,hB({},i)),u=c.resolvedOptions().timeZone;o&&t!=null&&l.push(r.format(`rangeUnderflow`,{minValue:c.format(t.toDate(u))})),a&&n!=null&&l.push(r.format(`rangeOverflow`,{maxValue:c.format(n.toDate(u))})),s&&l.push(r.format(`unavailableDate`))}return{isInvalid:c,validationErrors:l,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}var pB={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`},mB={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`};function hB(e,t){e={...t.shouldForceLeadingZeros?mB:pB,...e};let n=t.granularity||`minute`,r=Object.keys(e),i=r.indexOf(t.maxGranularity??`year`);i<0&&(i=0);let a=r.indexOf(n);if(a<0&&(a=2),i>a)throw Error(`maxGranularity must be greater than granularity`);let o=r.slice(i,a+1).reduce((t,n)=>(t[n]=e[n],t),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||`UTC`,(n===`hour`||n===`minute`||n===`second`)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName=`short`),t.showEra&&i===0&&(o.era=`short`),o}function gB(e,t){if(e===null)return null;if(e)return QD(e,t)}function _B(e,t,n,r){if(e)return gB(e,n);let i=QD(jD(r??LD()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t===`year`||t===`month`||t===`day`?XD(i):r?i:ZD(i)}function vB(e,t){let n=e&&`timeZone`in e?e.timeZone:void 0,r=e&&`minute`in e?`minute`:`day`;if(e&&t&&!(t in e))throw Error(`Invalid granularity `+t+` for value `+e.toString());let[i,a]=(0,x.useState)([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||=e?r:i[0];let o=e?n:i[1];return[t,o]}var yB=new vw({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`},is:{year:`áááá`,month:`mm`,day:`dd`},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`},nb:{year:`åååå`,month:`mm`,day:`dd`},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:`дд`},"sr-Latn":{year:`gggg`,month:`mm`,day:`dd`},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:`日`}},`en`);function bB(e,t,n){return e===`era`||e===`dayPeriod`?t:e===`year`||e===`month`||e===`day`?yB.getStringForLocale(e,n):`––`}var xB=class e{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset=`offset`in(n??{})?n.offset:null,this.hour!=null){let[e,n]=CB(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let t=new e(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(e){return e.every(e=>this[e]!=null)}validate(e,t){return t.every(t=>{if((t===`hour`||t===`dayPeriod`)&&`hour`in e){let[t,n]=CB(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>this[e]===null)}set(e,t,n){let r=this.copy();return r[e]=t,e===`hour`&&r.dayPeriod==null&&`hour`in n&&(r.dayPeriod=CB(n.hour,this.hourCycle)[0]),e===`year`&&r.era==null&&(r.era=n.era),e!==`second`&&e!==`literal`&&e!==`timeZoneName`&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,e===`year`&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let i=this.copy();if(i[e]==null&&e!==`dayPeriod`&&e!==`era`){if(e===`hour`&&`hour`in n){let[e,t]=CB(n.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=n[e];return e===`year`&&i.era==null&&(i.era=n.era),i}switch(e){case`era`:{let e=this.calendar.getEras(),n=e.indexOf(i.era);n=SB(n,t,0,e.length-1),i.era=e[n];break}case`year`:{let r=new LO(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);r=r.cycle(e,t,{round:e===`year`}),i.era=r.era,i.year=r.year;break}case`month`:i.month=SB(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case`day`:i.day=SB(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case`hour`:{let e=r.some(e=>[`year`,`month`,`day`].includes(e));if(`timeZone`in n&&(!e||i.year!=null&&i.month!=null&&i.day!=null)){let e=this.toValue(n);e=e.cycle(`hour`,t,{hourCycle:this.hourCycle===`h12`?12:24,round:!1});let[r,a]=CB(e.hour,this.hourCycle);i.hour=a,i.dayPeriod=r,i.offset=e.offset}else{let e=i.hour??0,r=this.getSegmentLimits(`hour`);i.hour=SB(e,t,r.minValue,r.maxValue),i.dayPeriod==null&&`hour`in n&&(i.dayPeriod=CB(n.hour,this.hourCycle)[0])}break}case`dayPeriod`:i.dayPeriod=SB(i.dayPeriod??0,t,0,1);break;case`minute`:i.minute=SB(i.minute??0,t,0,59,!0);break;case`second`:i.second=SB(i.second??0,t,0,59,!0)}return i}toValue(e){if(`hour`in e){let t=this.hour;t==null?(this.hourCycle===`h12`||this.hourCycle===`h11`)&&(t=this.dayPeriod===1?12:0):t=wB(t,this.dayPeriod??0,this.hourCycle);let n=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return`offset`in n&&this.offset!=null&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day})}getSegmentLimits(e){switch(e){case`era`:{let e=this.calendar.getEras();return{value:this.era==null?e.length-1:e.indexOf(this.era),minValue:0,maxValue:e.length-1}}case`year`:return{value:this.year,minValue:1,maxValue:9999};case`month`:return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case`day`:return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case`dayPeriod`:return{value:this.dayPeriod,minValue:0,maxValue:1};case`hour`:{let e=0,t=23;return this.hourCycle===`h12`?(e=1,t=12):this.hourCycle===`h11`&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case`minute`:return{value:this.minute,minValue:0,maxValue:59};case`second`:return{value:this.second,minValue:0,maxValue:59}}}};function SB(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function CB(e,t){let n=+(e>=12);switch(t){case`h11`:e>=12&&(e-=12);break;case`h12`:e===0?e=12:e>12&&(e-=12);break;case`h23`:n=null;break;case`h24`:e+=1,n=null}return[n,e]}function wB(e,t,n){switch(n){case`h11`:t===1&&(e+=12);break;case`h12`:e===12&&(e=0),t===1&&(e+=12);break;case`h24`:--e}return e}var TB={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},EB={year:5,month:2,day:7,hour:2,minute:15,second:15},DB={dayperiod:`dayPeriod`,relatedYear:`year`,yearName:`literal`,unknown:`literal`};function OB(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:c,isDateUnavailable:l}=e,u=e.value||e.defaultValue||e.placeholderValue||null,[d,f]=vB(u,e.granularity),p=f||`UTC`;if(u&&!(d in u))throw Error(`Invalid granularity `+d+` for value `+u.toString());let[m,h]=(0,x.useMemo)(()=>{let r=new Yk(t,{dateStyle:`short`,timeStyle:`short`,hour12:e.hourCycle==null?void 0:e.hourCycle===12}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[g,_]=Aw(e.value,e.defaultValue??null,e.onChange),[v]=(0,x.useState)(g),y=(0,x.useMemo)(()=>gB(g,m)??null,[g,m]),[b,S]=(0,x.useState)(()=>new xB(m,h,y)),C=m.identifier===`gregory`&&b.era===`BC`,w=(0,x.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??`year`,timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:C,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,C]),T=(0,x.useMemo)(()=>hB({},w),[w]),E=(0,x.useMemo)(()=>new Yk(t,T),[t,T]),D=(0,x.useMemo)(()=>E.resolvedOptions(),[E]),O=(0,x.useMemo)(()=>_B(e.placeholderValue,d,m,f),[e.placeholderValue,d,m,f]),k=(0,x.useMemo)(()=>{let t=h===`h11`||h===`h12`,n=[`era`,`year`,`month`,`day`,`hour`,...t?[`dayPeriod`]:[],`minute`,`second`],r=n.indexOf(e.maxGranularity||`era`),i=n.indexOf(d===`hour`&&t?`dayPeriod`:d);return n.slice(r,i+1)},[e.maxGranularity,d,h]),[A,j]=(0,x.useState)(y),[M,ee]=(0,x.useState)(m),[N,P]=(0,x.useState)(h);y===A&&h===N&&AD(m,M)||(b=new xB(m,h,y),j(y),ee(m),P(h),S(b));let te=t=>{if(!(e.isDisabled||e.isReadOnly)){if(t==null||t instanceof xB&&t.isCleared(k))S(new xB(m,h,y)),_(null);else if(!(t instanceof xB))t=QD(t,u?.calendar||new kD),S(new xB(m,h,y)),_(t);else{if(t.isComplete(k)){let e=t.toValue(y??O);if(t.validate(e,k)){let t=QD(e,u?.calendar||new kD);if(!g||t.compare(g)!==0){S(new xB(m,h,y)),_(t);return}}}S(t)}}},F=(0,x.useMemo)(()=>b.toValue(y??O).toDate(p),[b,p,y,O]),ne=(0,x.useMemo)(()=>kB(F,b,E,D,m,t,d),[F,E,D,b,m,t,d]),re=(e,t)=>{te(b.cycle(e,t,O,k))},ie=(0,x.useMemo)(()=>fB(g,s,c,l,w),[g,s,c,l,w]),ae=EA({...e,value:g,builtinValidation:ie}),oe=ae.displayValidation.isInvalid,se=e.validationState||(oe?`invalid`:null);return{...ae,value:y,defaultValue:e.defaultValue??v,dateValue:F,calendar:m,setValue:te,segments:ne,dateFormatter:E,validationState:se,isInvalid:oe,granularity:d,maxGranularity:e.maxGranularity??`year`,isDisabled:i,isReadOnly:a,isRequired:o,increment(e){re(e,1)},decrement(e){re(e,-1)},incrementPage(e){re(e,EB[e]||1)},decrementPage(e){re(e,-(EB[e]||1))},incrementToMax(e){let t=e===`hour`&&h===`h12`?11:b.getSegmentLimits(e).maxValue;te(b.set(e,t,O))},decrementToMin(e){let t=e===`hour`&&h===`h12`?12:b.getSegmentLimits(e).minValue;te(b.set(e,t,O))},setSegment(e,t){te(b.set(e,t,O))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&b.isComplete(k)){let e=QD(b.toValue(y??O),u?.calendar||new kD);g&&e.compare(g)===0||_(e),S(new xB(m,h,y))}},clearSegment(e){let t=b;e!==`timeZoneName`&&e!==`literal`&&(t=b.clear(e)),te(t)},formatValue(e){if(!y)return``;let n=hB(e,w);return new Yk(t,n).format(F)},getDateFormatter(e,t){return new Yk(e,hB({},{...w,...t}))}}}function kB(e,t,n,r,i,a,o){let s=[`hour`,`minute`,`second`],c=n.formatToParts(e),l=new VE(a,{useGrouping:!1}),u=new VE(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of c)if(e.type===`year`||e.type===`month`||e.type===`day`||e.type===`hour`){let n=t[e.type]??0;e.value=r[e.type]===`2-digit`?u.format(n):l.format(n)}let d=[];for(let e of c){let n=DB[e.type]||e.type,r=TB[n];n===`era`&&i.getEras().length===1&&(r=!1);let c=TB[n]&&t[e.type]==null,l=TB[n]?bB(n,e.value,a):null,u={type:n,text:c?l:e.value,...t.getSegmentLimits(n),isPlaceholder:c,placeholder:l,isEditable:r};n===`hour`?(d.push({type:`literal`,text:``,isPlaceholder:!1,placeholder:``,isEditable:!1}),d.push(u),n===o&&d.push({type:`literal`,text:``,isPlaceholder:!1,placeholder:``,isEditable:!1})):s.includes(n)&&n===o?(d.push(u),d.push({type:`literal`,text:``,isPlaceholder:!1,placeholder:``,isEditable:!1})):d.push(u)}return d}var AB=(0,x.createContext)(null),jB=(0,x.createContext)(null),MB=(0,x.createContext)(null),NB=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,AB);let{validationBehavior:n}=aS(MA)||{},r=e.validationBehavior??n??`native`,{locale:i}=mw(),a=OB({...e,locale:i,createCalendar:qk,validationBehavior:r}),o=(0,x.useRef)(null),[s,c]=sS(!e[`aria-label`]&&!e[`aria-labelledby`]),l=(0,x.useRef)(null),{labelProps:u,fieldProps:d,inputProps:f,descriptionProps:p,errorMessageProps:m,...h}=Sz({...cS(e),label:c,inputRef:l,validationBehavior:r},a,o),g=iS({...cS(e),values:{state:a,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:e.isRequired||!1},defaultClassName:`react-aria-DateField`}),_=K(e,{global:!0});return delete _.id,x.createElement(rS,{values:[[jB,a],[ej,{...d,ref:o,isInvalid:a.isInvalid,isDisabled:a.isDisabled}],[nj,{...f,ref:l}],[IE,{...u,ref:s,elementType:`span`}],[yD,{slots:{description:p,errorMessage:m}}],[vA,h]]},x.createElement(U.div,{..._,...g,ref:t,slot:e.slot||void 0,"data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":e.isRequired||void 0}),x.createElement(PR,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),PB=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(jB),r=(0,x.useContext)(MB);return n||r?x.createElement(IB,{...e,ref:t}):x.createElement(FB,{...e,ref:t})}),FB=(0,x.forwardRef)((e,t)=>{let[n,r]=oS({slot:e.slot},t,AB),{locale:i}=mw(),a=OB({...n,locale:i,createCalendar:qk}),o=(0,x.useRef)(null),{fieldProps:s,inputProps:c}=Sz({...n,inputRef:o},a,r);return x.createElement(rS,{values:[[jB,a],[nj,{...c,ref:o}],[ej,{...s,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},x.createElement(IB,e))}),IB=(0,x.forwardRef)((e,t)=>{let{className:n,children:r}=e,i=(0,x.useContext)(jB),a=(0,x.useContext)(MB),o=i??a;return x.createElement(x.Fragment,null,x.createElement(tj,{...e,ref:t,slot:e.slot||void 0,className:n??`react-aria-DateInput`,isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((e,t)=>(0,x.cloneElement)(r(e),{key:t}))),x.createElement(ij,{className:``}))}),LB=(0,x.forwardRef)(function({segment:e,...t},n){let r=(0,x.useContext)(jB),i=(0,x.useContext)(MB),a=r??i,o=tS(n),{segmentProps:s}=Ez(e,a,o),{focusProps:c,isFocused:l,isFocusVisible:u}=DE(),{hoverProps:d,isHovered:f}=NE({...t,isDisabled:a.isDisabled||e.type===`literal`}),p=iS({...t,values:{...e,isReadOnly:a.isReadOnly,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:f,isFocused:l,isFocusVisible:u},defaultChildren:e.text,defaultClassName:`react-aria-DateSegment`});return x.createElement(U.span,{...H(K(t,{global:!0}),s,c,d),...p,style:s.style,ref:o,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":a.isReadOnly||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":f||void 0,"data-focused":l||void 0,"data-focus-visible":u||void 0})});function RB(e,t,n){let{isDisabled:r}=e,i=Xx(),a=Xx(),o=Wx(),s=(0,x.useRef)(null);nw(n,`beforematch`,(0,x.useCallback)(()=>{s.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute(`hidden`,`until-found`)}),(0,DT.flushSync)(()=>{t.toggle()})},[n,t]));let c=(0,x.useRef)(null);return Mx(()=>{if(s.current&&cancelAnimationFrame(s.current),n.current&&!o){let e=n.current;c.current==null||typeof e.getAnimations!=`function`?t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)):(e.setAttribute(`hidden`,`until-found`),e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`)):t.isExpanded!==c.current&&(t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)}).catch(()=>{})):(e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),window.getComputedStyle(e).height,e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute(`hidden`,`until-found`)).catch(()=>{}))),c.current=t.isExpanded}},[r,n,t.isExpanded,o]),(0,x.useEffect)(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:i,"aria-expanded":t.isExpanded,"aria-controls":a,onPress:e=>{!r&&e.pointerType!==`keyboard`&&t.toggle()},isDisabled:r,onPressStart(e){e.pointerType===`keyboard`&&!r&&t.toggle()}},panelProps:{id:a,role:`group`,"aria-labelledby":i,"aria-hidden":!t.isExpanded,hidden:o?!t.isExpanded:void 0}}}function zB(e){let[t,n]=Aw(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);return{isExpanded:t,setExpanded:n,expand:(0,x.useCallback)(()=>{n(!0)},[n]),collapse:(0,x.useCallback)(()=>{n(!1)},[n]),toggle:(0,x.useCallback)(()=>{n(!t)},[n,t])}}var BB=(0,x.createContext)(null),VB=(0,x.createContext)(null),HB=(0,x.createContext)(null),UB=(0,x.createContext)(null),WB=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,VB);let n=(0,x.useContext)(BB),{id:r,...i}=e,a=Xx();r||=a;let o=n?n.expandedKeys.has(r):e.isExpanded,s=zB({...e,isExpanded:o,onExpandedChange(t){n&&n.toggleKey(r),e.onExpandedChange?.(t)}}),c=x.useRef(null),l=e.isDisabled||n?.isDisabled||!1,{buttonProps:u,panelProps:d}=RB({...e,isExpanded:o,isDisabled:l},s,c),{isFocusVisible:f,focusProps:p}=DE({within:!0}),m=iS({...e,id:void 0,defaultClassName:`react-aria-Disclosure`,values:{isExpanded:s.isExpanded,isDisabled:l,isFocusVisibleWithin:f,state:s}}),h=K(i,{global:!0});return x.createElement(rS,{values:[[pD,{slots:{[nS]:{},trigger:u}}],[UB,{panelProps:d,panelRef:c}],[HB,s]]},x.createElement(U.div,{...H(h,m,p),ref:t,"data-expanded":s.isExpanded||void 0,"data-disabled":l||void 0,"data-focus-visible-within":f||void 0},m.children))}),GB=(0,x.forwardRef)(function(e,t){let{role:n=`group`}=e,{panelProps:r,panelRef:i}=(0,x.useContext)(UB),{isFocusVisible:a,focusProps:o}=DE({within:!0}),s=iS({...e,defaultClassName:`react-aria-DisclosurePanel`,values:{isFocusVisibleWithin:a}}),c=K(e,{global:!0,labelable:!0});return x.createElement(U.div,{...H(c,s,r,o),ref:$x(t,i),role:n,"data-focus-visible-within":a||void 0},x.createElement(rS,{values:[[pD,null]]},e.children))}),KB=function(e){return e[e.none=0]=`none`,e[e.cancel=0]=`cancel`,e[e.move=1]=`move`,e[e.copy=2]=`copy`,e[e.link=4]=`link`,e[e.all=7]=`all`,e}({}),qB={...KB,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},JB=ZB(qB);JB[7]=`all`;var YB={none:`cancel`,link:`link`,copy:`copy`,move:`move`},XB=ZB(YB);function ZB(e){let t={};for(let n in e)t[e[n]]=n;return t}var QB=new Set([`text/plain`,`text/uri-list`,`text/html`]),$B=`application/vnd.react-aria.items+json`,eV=`application/octet-stream`,tV=Symbol();function nV(e){let t=new Set;for(let n of e)for(let e of Object.keys(n))t.add(e);return t}function rV(e){return e||=`virtual`,e===`pointer`&&(e=`virtual`),e===`virtual`&&typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(pointer: coarse)`).matches&&(e=`touch`),e}function iV(){return rV(FC())}function aV(){return rV(NC())}function oV(e,t){let n=new Map,r=!1,i=[];for(let e of t){let t=Object.keys(e);t.length>1&&(r=!0);let a={};for(let i of t){let t=n.get(i);t?r=!0:(t=[],n.set(i,t));let o=e[i];a[i]=o,t.push(o)}i.push(a)}for(let[t,r]of n)if(QB.has(t)){let n=r.join(`
|
|
74
|
-
`);e.items.add(n,t)}else e.items.add(r[0],t);if(r){let t=JSON.stringify(i);e.items.add(t,$B)}}var sV=class{constructor(e){this.types=new Set;let t=!1;for(let n of e.items)n.type!==`application/vnd.react-aria.items+json`&&(n.kind===`file`&&(t=!0),n.type?this.types.add(n.type):this.types.add(eV));this.includesUnknownTypes=!t&&e.types.includes(`Files`)}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===tV&&this.types.has(`application/octet-stream`)||e===`*/*`)return!0;if(typeof e==`string`){if(e.endsWith(`/*`)){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}};function cV(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(`application/vnd.react-aria.items+json`))try{let r=e.getData($B),i=JSON.parse(r);for(let e of i)t.push({kind:`text`,types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])});n=!0}catch{}if(!n){let n=new Map;for(let r of e.items)if(r.kind===`string`)n.set(r.type||`application/octet-stream`,e.getData(r.type));else if(r.kind===`file`){if(typeof r.webkitGetAsEntry==`function`){let e=r.webkitGetAsEntry();if(!e)continue;e.isFile?t.push(uV(r.getAsFile())):e.isDirectory&&t.push(dV(e))}else t.push(uV(r.getAsFile()))}n.size>0&&t.push({kind:`text`,types:new Set(n.keys()),getText:e=>Promise.resolve(n.get(e))})}return t}function lV(e){return typeof e.text==`function`?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function uV(e){if(!e)throw Error(`No file provided`);return{kind:`file`,type:e.type||`application/octet-stream`,name:e.name,getText:()=>lV(e),getFile:()=>Promise.resolve(e)}}function dV(e){return{kind:`directory`,name:e.name,getEntries:()=>fV(e)}}async function*fV(e){let t=e.createReader(),n;do{n=await new Promise((e,n)=>{t.readEntries(e,n)});for(let e of n)e.isFile?yield uV(await pV(e)):e.isDirectory&&(yield dV(e))}while(n.length>0)}function pV(e){return new Promise((t,n)=>e.file(t,n))}function mV(e){return e.kind===`text`}var hV={draggingKeys:new Set};function gV(e){hV=e}var _V;function vV(e){_V=e}var yV=KB.none;function bV(e){yV=e}var xV=new Map,SV=new Map,CV=null,wV=new Set;function TV(e){return xV.set(e.element,e),CV?.updateValidDropTargets(),()=>{xV.delete(e.element),CV?.updateValidDropTargets()}}function EV(e,t){if(CV)throw Error(`Cannot begin dragging while already dragging`);CV=new MV(e,t),requestAnimationFrame(()=>{CV&&(CV.setup(),aV()===`keyboard`&&CV.next())});for(let e of wV)e()}function DV(){let[e,t]=(0,x.useState)(CV);return(0,x.useEffect)(()=>{let e=()=>t(CV);return wV.add(e),()=>{wV.delete(e)}},[]),e}function OV(){CV=null;for(let e of wV)e()}var kV=[`pointerdown`,`pointermove`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`,`pointerup`,`mousedown`,`mousemove`,`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`mouseup`,`touchstart`,`touchmove`,`touchend`,`focusin`,`focusout`],AV=[`pointerup`,`mouseup`,`touchend`],jV={keyboard:`dragStartedKeyboard`,touch:`dragStartedTouch`,virtual:`dragStartedVirtual`},MV=class{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener(`keydown`,this.onKeyDown,!0),document.addEventListener(`keyup`,this.onKeyUp,!0),window.addEventListener(`focus`,this.onFocus,!0),window.addEventListener(`blur`,this.onBlur,!0),document.addEventListener(`click`,this.onClick,!0),document.addEventListener(`pointerdown`,this.onPointerDown,!0);for(let e of kV)document.addEventListener(e,this.cancelEvent,!0);this.mutationObserver=new MutationObserver(()=>this.updateValidDropTargets()),this.updateValidDropTargets(),lD(this.stringFormatter.format(jV[aV()]))}teardown(){document.removeEventListener(`keydown`,this.onKeyDown,!0),document.removeEventListener(`keyup`,this.onKeyUp,!0),window.removeEventListener(`focus`,this.onFocus,!0),window.removeEventListener(`blur`,this.onBlur,!0),document.removeEventListener(`click`,this.onClick,!0),document.removeEventListener(`pointerdown`,this.onPointerDown,!0);for(let e of kV)document.removeEventListener(e,this.cancelEvent,!0);this.mutationObserver?.disconnect(),this.restoreAriaHidden?.()}onKeyDown(e){this.cancelEvent(e),e.key===`Escape`?this.cancel():(e.key===`Tab`&&!(e.metaKey||e.altKey||e.ctrlKey)&&(e.shiftKey?this.previous():this.next()),typeof this.currentDropTarget?.onKeyDown==`function`&&this.currentDropTarget.onKeyDown(e,this.dragTarget))}onKeyUp(e){this.cancelEvent(e),e.key===`Enter`&&(e.altKey||W(this.getCurrentActivateButton(),G(e))?this.activate(this.currentDropTarget,this.currentDropItem):this.drop())}getCurrentActivateButton(){return this.currentDropItem?.activateButtonRef?.current??this.currentDropTarget?.activateButtonRef?.current??null}onFocus(e){let t=this.getCurrentActivateButton(),n=G(e);if(n===t){this.cancelEvent(e);return}if(n!==this.dragTarget.element&&this.cancelEvent(e),!(n instanceof HTMLElement)||n===this.dragTarget.element)return;let r=this.validDropTargets.find(e=>e.element===n)||this.validDropTargets.find(e=>W(e.element,n));if(!r){this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus();return}let i=SV.get(n);r&&this.setCurrentDropTarget(r,i)}onBlur(e){let t=this.getCurrentActivateButton();t&&e.relatedTarget===t?this.cancelEvent(e):(G(e)!==this.dragTarget.element&&this.cancelEvent(e),e.relatedTarget&&e.relatedTarget instanceof HTMLElement||(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus()))}onClick(e){if(this.cancelEvent(e),rC(e)||this.isVirtualClick){let t=SV.values(),n=G(e),r=[...t].find(e=>e.element===n||W(e.activateButtonRef?.current,n)),i=this.validDropTargets.find(e=>W(e.element,n));if(W(r?.activateButtonRef?.current??i?.activateButtonRef?.current,n)&&i){this.activate(i,r);return}if(G(e)===this.dragTarget.element){this.cancel();return}i&&(this.setCurrentDropTarget(i,r),this.drop(r))}}onPointerDown(e){this.cancelEvent(e),this.isVirtualClick=iC(e)}cancelEvent(e){let t=G(e);(e.type!==`focusin`&&e.type!==`focusout`||t!==this.dragTarget?.element&&t!==this.getCurrentActivateButton())&&(AV.includes(e.type)||e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=NV(this.dragTarget),this.validDropTargets.length>0){let e=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(e),...this.validDropTargets.slice(0,e)]}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let e=nV(this.dragTarget.items),t=[...SV.values()].filter(t=>typeof t.getDropOperation!=`function`||t.getDropOperation(e,this.dragTarget.allowedDropOperations)!==`cancel`),n=this.validDropTargets.filter(e=>!t.some(t=>W(e.element,t.element)));this.restoreAriaHidden=vF([this.dragTarget.element,...t.flatMap(e=>e.activateButtonRef?.current?[e.element,e.activateButtonRef?.current]:[e.element]),...n.flatMap(e=>e.activateButtonRef?.current?[e.element,e.activateButtonRef?.current]:[e.element])],{shouldUseInert:!0}),this.mutationObserver.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:[`aria-hidden`,`inert`]})}next(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[0]);return}let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[0]):e===this.validDropTargets.length-1?this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e+1])}previous(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):e===0?this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e-1])}findNearestDropTarget(){let e=this.dragTarget.element.getBoundingClientRect(),t=1/0,n=-1,r=-1;for(let i=0;i<this.validDropTargets.length;i++){let a=this.validDropTargets[i];r<0&&W(a.element,this.dragTarget.element)&&(r=i);let o=a.element.getBoundingClientRect(),s=o.left-e.left,c=o.top-e.top,l=s*s+c*c;l<t&&(t=l,n=i)}return r>=0?r:n}setCurrentDropTarget(e,t){if(e!==this.currentDropTarget){if(this.currentDropTarget&&typeof this.currentDropTarget.onDropExit==`function`){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:`dropexit`,x:e.left+e.width/2,y:e.top+e.height/2})}if(this.currentDropTarget=e,e){if(typeof e.onDropEnter==`function`){let t=e.element.getBoundingClientRect();e.onDropEnter({type:`dropenter`,x:t.left+t.width/2,y:t.top+t.height/2},this.dragTarget)}t||e?.element.focus()}}if(t!=null&&t!==this.currentDropItem&&(this.currentDropTarget&&typeof this.currentDropTarget.onDropTargetEnter==`function`&&this.currentDropTarget.onDropTargetEnter(t.target),t.element.focus(),this.currentDropItem=t,!this.initialFocused)){let e=t?.element.getAttribute(`aria-label`);e&&lD(e,`polite`),this.initialFocused=!0}}end(){if(this.teardown(),OV(),typeof this.dragTarget.onDragEnd==`function`){let e=(this.currentDropTarget&&this.dropOperation!==`cancel`?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:`dragend`,x:e.x+e.width/2,y:e.y+e.height/2,dropOperation:this.dropOperation||`cancel`})}this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&CS()?.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})),this.setCurrentDropTarget(null)}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)||this.dragTarget.element.focus(),CS()?.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})),lD(this.stringFormatter.format(`dropCanceled`))}drop(e){if(!this.currentDropTarget)this.cancel();else{if(typeof e?.getDropOperation==`function`){let t=nV(this.dragTarget.items);this.dropOperation=e.getDropOperation(t,this.dragTarget.allowedDropOperations)}else if(typeof this.currentDropTarget.getDropOperation==`function`){let e=nV(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(e,this.dragTarget.allowedDropOperations)}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if(typeof this.currentDropTarget.onDrop==`function`){let t=this.dragTarget.items.map(e=>({kind:`text`,types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])})),n=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:`drop`,x:n.left+n.width/2,y:n.top+n.height/2,items:t,dropOperation:this.dropOperation},e?.target??null)}this.end(),lD(this.stringFormatter.format(`dropComplete`))}}activate(e,t){if(e&&typeof e.onDropActivate==`function`){let n=t?.target??null,r=e.element.getBoundingClientRect();e.onDropActivate({type:`dropactivate`,x:r.left+r.width/2,y:r.top+r.height/2},n)}}};function NV(e){let t=nV(e.items);return[...xV.values()].filter(n=>n.element.closest(`[aria-hidden="true"], [inert]`)?!1:typeof n.getDropOperation!=`function`||n.getDropOperation(t,e.allowedDropOperations)!==`cancel`)}var PV={};PV={dragDescriptionKeyboard:`اضغط Enter لبدء السحب.`,dragDescriptionKeyboardAlt:`اضغط على Alt + Enter لبدء السحب.`,dragDescriptionLongPress:`اضغط باستمرار لبدء السحب.`,dragDescriptionTouch:`اضغط مرتين لبدء السحب.`,dragDescriptionVirtual:`انقر لبدء السحب.`,dragItem:e=>`\u{627}\u{633}\u{62D}\u{628} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{627}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{627}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}\u{629}`})}`,dragSelectedKeyboard:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Enter \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} \u{645}\u{641}\u{62A}\u{627}\u{62D}\u{64A} Alt + Enter \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragSelectedLongPress:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{628}\u{627}\u{633}\u{62A}\u{645}\u{631}\u{627}\u{631} \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragStartedKeyboard:`بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.`,dragStartedTouch:`بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.`,dragStartedVirtual:`بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.`,dropCanceled:`تم إلغاء الإفلات.`,dropComplete:`اكتمل الإفلات.`,dropDescriptionKeyboard:`اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.`,dropDescriptionTouch:`اضغط مرتين للإفلات.`,dropDescriptionVirtual:`انقر للإفلات.`,dropIndicator:`مؤشر الإفلات`,dropOnItem:e=>`\u{625}\u{641}\u{644}\u{627}\u{62A} ${e.itemText}`,dropOnRoot:`الإفلات`,endDragKeyboard:`السحب. اضغط Enter لإلغاء السحب.`,endDragTouch:`السحب. اضغط مرتين لإلغاء السحب.`,endDragVirtual:`السحب. انقر لإلغاء السحب.`,insertAfter:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{628}\u{639}\u{62F} ${e.itemText}`,insertBefore:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{642}\u{628}\u{644} ${e.itemText}`,insertBetween:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{628}\u{64A}\u{646} ${e.beforeItemText} \u{648} ${e.afterItemText}`};var FV={};FV={dragDescriptionKeyboard:`Натиснете „Enter“, за да започнете да плъзгате.`,dragDescriptionKeyboardAlt:`Натиснете Alt + Enter, за да започнете да плъзгате.`,dragDescriptionLongPress:`Натиснете продължително, за да започнете да плъзгате.`,dragDescriptionTouch:`Натиснете двукратно, за да започнете да плъзгате.`,dragDescriptionVirtual:`Щракнете, за да започнете да плъзгате.`,dragItem:e=>`\u{41F}\u{43B}\u{44A}\u{437}\u{43D}\u{438} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{43B}\u{44A}\u{437}\u{43D}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Enter, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt \u{438} Enter, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragSelectedLongPress:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E}, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragStartedKeyboard:`Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.`,dragStartedTouch:`Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.`,dragStartedVirtual:`Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.`,dropCanceled:`Пускането е отменено.`,dropComplete:`Пускането е завършено.`,dropDescriptionKeyboard:`Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.`,dropDescriptionTouch:`Натиснете двукратно за пускане.`,dropDescriptionVirtual:`Щракнете за пускане.`,dropIndicator:`индикатор за пускане`,dropOnItem:e=>`\u{41F}\u{443}\u{441}\u{43D}\u{438} \u{432}\u{44A}\u{440}\u{445}\u{443} ${e.itemText}`,dropOnRoot:`Пусни върху`,endDragKeyboard:`Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.`,endDragTouch:`Плъзгане. Натиснете двукратно за отмяна на плъзгането.`,endDragVirtual:`Плъзгане. Щракнете за отмяна.`,insertAfter:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{441}\u{43B}\u{435}\u{434} ${e.itemText}`,insertBefore:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{43F}\u{440}\u{435}\u{434}\u{438} ${e.itemText}`,insertBetween:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{43C}\u{435}\u{436}\u{434}\u{443} ${e.beforeItemText} \u{438} ${e.afterItemText}`};var IV={};IV={dragDescriptionKeyboard:`Stisknutím klávesy Enter začnete s přetahováním.`,dragDescriptionKeyboardAlt:`Stisknutím Alt + Enter zahájíte přetahování.`,dragDescriptionLongPress:`Dlouhým stisknutím zahájíte přetahování.`,dragDescriptionTouch:`Poklepáním začnete s přetahováním.`,dragDescriptionVirtual:`Kliknutím začnete s přetahováním.`,dragItem:e=>`P\u{159}et\xe1hnout ${e.itemText}`,dragSelectedItems:(e,t)=>`P\u{159}et\xe1hnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,few:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`,other:()=>`${t.number(e.count)} vybran\xfdch polo\u{17E}ek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknut\xedm kl\xe1vesy Enter p\u{159}et\xe1hn\u{11B}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknut\xedm Alt + Enter p\u{159}et\xe1hn\u{11B}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouh\xfdm stisknut\xedm p\u{159}et\xe1hnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragStartedKeyboard:`Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.`,dragStartedTouch:`Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.`,dragStartedVirtual:`Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.`,dropCanceled:`Přetažení bylo zrušeno.`,dropComplete:`Přetažení bylo dokončeno.`,dropDescriptionKeyboard:`Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.`,dropDescriptionTouch:`Poklepáním přetažení dokončete.`,dropDescriptionVirtual:`Kliknutím objekt přetáhněte.`,dropIndicator:`indikátor přetažení`,dropOnItem:e=>`P\u{159}et\xe1hnout na ${e.itemText}`,dropOnRoot:`Přetáhnout na`,endDragKeyboard:`Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.`,endDragTouch:`Probíhá přetahování. Poklepáním přetažení zrušíte.`,endDragVirtual:`Probíhá přetahování. Kliknutím přetažení zrušíte.`,insertAfter:e=>`Vlo\u{17E}it za ${e.itemText}`,insertBefore:e=>`Vlo\u{17E}it p\u{159}ed ${e.itemText}`,insertBetween:e=>`Vlo\u{17E}it mezi ${e.beforeItemText} a ${e.afterItemText}`};var LV={};LV={dragDescriptionKeyboard:`Tryk på Enter for at starte med at trække.`,dragDescriptionKeyboardAlt:`Tryk på Alt + Enter for at starte med at trække.`,dragDescriptionLongPress:`Tryk længe for at starte med at trække.`,dragDescriptionTouch:`Dobbelttryk for at starte med at trække.`,dragDescriptionVirtual:`Klik for at starte med at trække.`,dragItem:e=>`Tr\xe6k ${e.itemText}`,dragSelectedItems:(e,t)=>`Tr\xe6k ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk p\xe5 Enter for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk p\xe5 Alt + Enter for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk l\xe6nge for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:`Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.`,dragStartedTouch:`Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.`,dragStartedVirtual:`Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.`,dropCanceled:`Slip annulleret.`,dropComplete:`Slip fuldført.`,dropDescriptionKeyboard:`Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.`,dropDescriptionTouch:`Dobbelttryk for at slippe.`,dropDescriptionVirtual:`Klik for at slippe.`,dropIndicator:`slip-indikator`,dropOnItem:e=>`Slip p\xe5 ${e.itemText}`,dropOnRoot:`Slip på`,endDragKeyboard:`Trækning. Tryk på enter for at annullere træk.`,endDragTouch:`Trækning. Dobbelttryk for at annullere træk.`,endDragVirtual:`Trækning. Klik for at annullere trækning.`,insertAfter:e=>`Inds\xe6t efter ${e.itemText}`,insertBefore:e=>`Inds\xe6t f\xf8r ${e.itemText}`,insertBetween:e=>`Inds\xe6t mellem ${e.beforeItemText} og ${e.afterItemText}`};var RV={};RV={dragDescriptionKeyboard:`Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.`,dragDescriptionKeyboardAlt:`Alt + Eingabe drücken, um den Ziehvorgang zu starten.`,dragDescriptionLongPress:`Lang drücken, um mit dem Ziehen zu beginnen.`,dragDescriptionTouch:`Tippen Sie doppelt, um den Ziehvorgang zu starten.`,dragDescriptionVirtual:`Zum Starten des Ziehvorgangs klicken.`,dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Objekt`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragStartedKeyboard:`Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.`,dragStartedTouch:`Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.`,dragStartedVirtual:`Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.`,dropCanceled:`Ablegen abgebrochen.`,dropComplete:`Ablegen abgeschlossen.`,dropDescriptionKeyboard:`Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.`,dropDescriptionTouch:`Tippen Sie doppelt, um das Objekt abzulegen.`,dropDescriptionVirtual:`Zum Ablegen klicken.`,dropIndicator:`Ablegeanzeiger`,dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:`Ablegen auf`,endDragKeyboard:`Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.`,endDragTouch:`Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.`,endDragVirtual:`Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.`,insertAfter:e=>`Nach ${e.itemText} einf\xfcgen`,insertBefore:e=>`Vor ${e.itemText} einf\xfcgen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einf\xfcgen`};var zV={};zV={dragDescriptionKeyboard:`Πατήστε Enter για έναρξη της μεταφοράς.`,dragDescriptionKeyboardAlt:`Πατήστε Alt + Enter για έναρξη της μεταφοράς.`,dragDescriptionLongPress:`Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.`,dragDescriptionTouch:`Πατήστε δύο φορές για έναρξη της μεταφοράς.`,dragDescriptionVirtual:`Κάντε κλικ για να ξεκινήσετε τη μεταφορά.`,dragItem:e=>`\u{39C}\u{3B5}\u{3C4}\u{3B1}\u{3C6}\u{3BF}\u{3C1}\u{3AC} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{39C}\u{3B5}\u{3C4}\u{3B1}\u{3C6}\u{3BF}\u{3C1}\u{3AC} \u{3C3}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}`,dragSelectedKeyboard:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Enter \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + Enter \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragSelectedLongPress:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragStartedKeyboard:`Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.`,dragStartedTouch:`Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.`,dragStartedVirtual:`Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.`,dropCanceled:`Η απόθεση ακυρώθηκε.`,dropComplete:`Η απόθεση ολοκληρώθηκε.`,dropDescriptionKeyboard:`Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.`,dropDescriptionTouch:`Πατήστε δύο φορές για απόθεση.`,dropDescriptionVirtual:`Κάντε κλικ για απόθεση.`,dropIndicator:`δείκτης απόθεσης`,dropOnItem:e=>`\u{391}\u{3C0}\u{3CC}\u{3B8}\u{3B5}\u{3C3}\u{3B7} \u{3C3}\u{3B5} ${e.itemText}`,dropOnRoot:`Απόθεση σε`,endDragKeyboard:`Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.`,endDragTouch:`Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.`,endDragVirtual:`Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.`,insertAfter:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3AC} \u{3B1}\u{3C0}\u{3CC} ${e.itemText}`,insertBefore:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3C0}\u{3C1}\u{3B9}\u{3BD} \u{3B1}\u{3C0}\u{3CC} ${e.itemText}`,insertBetween:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3BE}\u{3CD} ${e.beforeItemText} \u{3BA}\u{3B1}\u{3B9} ${e.afterItemText}`};var BV={};BV={dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:`Press Enter to start dragging.`,dragDescriptionKeyboardAlt:`Press Alt + Enter to start dragging.`,dragDescriptionTouch:`Double tap to start dragging.`,dragDescriptionVirtual:`Click to start dragging.`,dragDescriptionLongPress:`Long press to start dragging.`,dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:`Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.`,dragStartedTouch:`Started dragging. Navigate to a drop target, then double tap to drop.`,dragStartedVirtual:`Started dragging. Navigate to a drop target, then click or press Enter to drop.`,endDragKeyboard:`Dragging. Press Enter to cancel drag.`,endDragTouch:`Dragging. Double tap to cancel drag.`,endDragVirtual:`Dragging. Click to cancel drag.`,dropDescriptionKeyboard:`Press Enter to drop. Press Escape to cancel drag.`,dropDescriptionTouch:`Double tap to drop.`,dropDescriptionVirtual:`Click to drop.`,dropCanceled:`Drop canceled.`,dropComplete:`Drop complete.`,dropIndicator:`drop indicator`,dropOnRoot:`Drop on`,dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`};var VV={};VV={dragDescriptionKeyboard:`Pulse Intro para empezar a arrastrar.`,dragDescriptionKeyboardAlt:`Pulse Intro para empezar a arrastrar.`,dragDescriptionLongPress:`Mantenga pulsado para comenzar a arrastrar.`,dragDescriptionTouch:`Pulse dos veces para iniciar el arrastre.`,dragDescriptionVirtual:`Haga clic para iniciar el arrastre.`,dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:`Se ha empezado a arrastrar. Pulse el tabulador para ir al destino donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.`,dragStartedTouch:`Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuación, pulse dos veces para soltar.`,dragStartedVirtual:`Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.`,dropCanceled:`Se ha cancelado la colocación.`,dropComplete:`Colocación finalizada.`,dropDescriptionKeyboard:`Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.`,dropDescriptionTouch:`Pulse dos veces para soltar.`,dropDescriptionVirtual:`Haga clic para soltar.`,dropIndicator:`indicador de colocación`,dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:`Soltar en`,endDragKeyboard:`Arrastrando. Pulse Intro para cancelar el arrastre.`,endDragTouch:`Arrastrando. Pulse dos veces para cancelar el arrastre.`,endDragVirtual:`Arrastrando. Haga clic para cancelar el arrastre.`,insertAfter:e=>`Insertar despu\xe9s de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`};var HV={};HV={dragDescriptionKeyboard:`Lohistamise alustamiseks vajutage klahvi Enter.`,dragDescriptionKeyboardAlt:`Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.`,dragDescriptionLongPress:`Vajutage pikalt lohistamise alustamiseks.`,dragDescriptionTouch:`Topeltpuudutage lohistamise alustamiseks.`,dragDescriptionVirtual:`Klõpsake lohistamise alustamiseks.`,dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksust`,other:()=>`${t.number(e.count)} valitud \xfcksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} lohistamiseks.`,dragStartedKeyboard:`Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.`,dragStartedTouch:`Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.`,dragStartedVirtual:`Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.`,dropCanceled:`Lohistamisest loobuti.`,dropComplete:`Lohistamine on tehtud.`,dropDescriptionKeyboard:`Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.`,dropDescriptionTouch:`Kukutamiseks topeltpuudutage.`,dropDescriptionVirtual:`Kukutamiseks klõpsake.`,dropIndicator:`lohistamise indikaator`,dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:`Kukuta asukohta`,endDragKeyboard:`Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.`,endDragTouch:`Lohistamine. Lohistamisest loobumiseks topeltpuudutage.`,endDragVirtual:`Lohistamine. Lohistamisest loobumiseks klõpsake.`,insertAfter:e=>`Sisesta ${e.itemText} j\xe4rele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`};var UV={};UV={dragDescriptionKeyboard:`Aloita vetäminen painamalla Enter-näppäintä.`,dragDescriptionKeyboardAlt:`Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.`,dragDescriptionLongPress:`Aloita vetäminen pitämällä painettuna.`,dragDescriptionTouch:`Aloita vetäminen kaksoisnapauttamalla.`,dragDescriptionVirtual:`Aloita vetäminen napsauttamalla.`,dragItem:e=>`Ved\xe4 kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Ved\xe4 ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Ved\xe4 painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ved\xe4 painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Ved\xe4 pit\xe4m\xe4ll\xe4 painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:`Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.`,dragStartedTouch:`Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.`,dragStartedVirtual:`Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.`,dropCanceled:`Pudotus peruutettu.`,dropComplete:`Pudotus suoritettu.`,dropDescriptionKeyboard:`Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.`,dropDescriptionTouch:`Pudota kaksoisnapauttamalla.`,dropDescriptionVirtual:`Pudota napsauttamalla.`,dropIndicator:`pudotuksen ilmaisin`,dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:`Pudota kohteeseen`,endDragKeyboard:`Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.`,endDragTouch:`Vedetään. Peruuta vetäminen kaksoisnapauttamalla.`,endDragVirtual:`Vedetään. Peruuta vetäminen napsauttamalla.`,insertAfter:e=>`Lis\xe4\xe4 kohteen ${e.itemText} j\xe4lkeen`,insertBefore:e=>`Lis\xe4\xe4 ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lis\xe4\xe4 kohteiden ${e.beforeItemText} ja ${e.afterItemText} v\xe4liin`};var WV={};WV={dragDescriptionKeyboard:`Appuyez sur Entrée pour commencer le déplacement.`,dragDescriptionKeyboardAlt:`Appuyez sur Alt\xA0+\xA0Entrée pour commencer à faire glisser.`,dragDescriptionLongPress:`Appuyez de manière prolongée pour commencer à faire glisser.`,dragDescriptionTouch:`Touchez deux fois pour commencer le déplacement.`,dragDescriptionVirtual:`Cliquez pour commencer le déplacement.`,dragItem:e=>`D\xe9placer ${e.itemText}`,dragSelectedItems:(e,t)=>`D\xe9placer ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entr\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt\xa0+\xa0Entr\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de mani\xe8re prolong\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragStartedKeyboard:`Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.`,dragStartedTouch:`Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.`,dragStartedVirtual:`Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.`,dropCanceled:`Dépôt annulé.`,dropComplete:`Dépôt terminé.`,dropDescriptionKeyboard:`Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.`,dropDescriptionTouch:`Touchez deux fois pour déposer.`,dropDescriptionVirtual:`Cliquez pour déposer.`,dropIndicator:`indicateur de dépôt`,dropOnItem:e=>`D\xe9poser sur ${e.itemText}`,dropOnRoot:`Déposer sur`,endDragKeyboard:`Déplacement. Appuyez sur Entrée pour annuler le déplacement.`,endDragTouch:`Déplacement. Touchez deux fois pour annuler le déplacement.`,endDragVirtual:`Déplacement. Cliquez pour annuler le déplacement.`,insertAfter:e=>`Ins\xe9rer apr\xe8s ${e.itemText}`,insertBefore:e=>`Ins\xe9rer avant ${e.itemText}`,insertBetween:e=>`Ins\xe9rer entre ${e.beforeItemText} et ${e.afterItemText}`};var GV={};GV={dragDescriptionKeyboard:`הקש על Enter כדי להתחיל לגרור.`,dragDescriptionKeyboardAlt:`הקש Alt + Enter כדי להתחיל לגרור.`,dragDescriptionLongPress:`לחץ לחיצה ארוכה כדי להתחיל לגרור.`,dragDescriptionTouch:`הקש פעמיים כדי להתחיל בגרירה.`,dragDescriptionVirtual:`לחץ כדי להתחיל לגרור.`,dragItem:e=>`\u{5D2}\u{5E8}\u{5D5}\u{5E8} \u{5D0}\u{5EA} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E0}\u{5D1}\u{5D7}\u{5E8} ${t.number(e.count)}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}`,dragSelectedKeyboard:(e,t)=>`\u{5D4}\u{5E7}\u{5E9} \u{5E2}\u{5DC} Enter \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{5D4}\u{5E7}\u{5E9} Alt + Enter \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragSelectedLongPress:(e,t)=>`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragStartedKeyboard:`התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.`,dragStartedTouch:`התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.`,dragStartedVirtual:`התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.`,dropCanceled:`השחרור בוטל.`,dropComplete:`השחרור הושלם.`,dropDescriptionKeyboard:`הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.`,dropDescriptionTouch:`הקש פעמיים כדי לשחרר.`,dropDescriptionVirtual:`לחץ כדי לשחרר.`,dropIndicator:`מחוון שחרור`,dropOnItem:e=>`\u{5E9}\u{5D7}\u{5E8}\u{5E8} \u{5E2}\u{5DC} ${e.itemText}`,dropOnRoot:`שחרר על`,endDragKeyboard:`גורר. הקש על Enter כדי לבטל את הגרירה.`,endDragTouch:`גורר. הקש פעמיים כדי לבטל את הגרירה.`,endDragVirtual:`גורר. לחץ כדי לבטל את הגרירה.`,insertAfter:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5D0}\u{5D7}\u{5E8}\u{5D9} ${e.itemText}`,insertBefore:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5DC}\u{5E4}\u{5E0}\u{5D9} ${e.itemText}`,insertBetween:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5D1}\u{5D9}\u{5DF} ${e.beforeItemText} \u{5DC}\u{5D1}\u{5D9}\u{5DF} ${e.afterItemText}`};var KV={};KV={dragDescriptionKeyboard:`Pritisnite Enter da biste počeli povlačiti.`,dragDescriptionKeyboardAlt:`Pritisnite Alt + Enter za početak povlačenja.`,dragDescriptionLongPress:`Dugo pritisnite za početak povlačenja.`,dragDescriptionTouch:`Dvaput dodirnite da biste počeli povlačiti.`,dragDescriptionVirtual:`Kliknite da biste počeli povlačiti.`,dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:`Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.`,dragStartedTouch:`Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.`,dragStartedVirtual:`Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.`,dropCanceled:`Povlačenje je prekinuto.`,dropComplete:`Ispuštanje je dovršeno.`,dropDescriptionKeyboard:`Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.`,dropDescriptionTouch:`Dvaput dodirnite da biste ispustili stavku.`,dropDescriptionVirtual:`Kliknite da biste ispustili stavku.`,dropIndicator:`pokazatelj ispuštanja`,dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:`Ispustite na`,endDragKeyboard:`Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.`,endDragTouch:`Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.`,endDragVirtual:`Povlačenje. Kliknite da biste prekinuli povlačenje.`,insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite izme\u{111}u stavki ${e.beforeItemText} i ${e.afterItemText}`};var qV={};qV={dragDescriptionKeyboard:`Nyomja le az Enter billentyűt a húzás megkezdéséhez.`,dragDescriptionKeyboardAlt:`Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.`,dragDescriptionLongPress:`Hosszan nyomja meg a húzás elindításához.`,dragDescriptionTouch:`Koppintson duplán a húzás megkezdéséhez.`,dragDescriptionVirtual:`Kattintson a húzás megkezdéséhez.`,dragItem:e=>`${e.itemText} h\xfaz\xe1sa`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1sa`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billenty\u{171}ket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragStartedKeyboard:`Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.`,dragStartedTouch:`Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.`,dragStartedVirtual:`Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.`,dropCanceled:`Elengedés megszakítva.`,dropComplete:`Elengedés teljesítve.`,dropDescriptionKeyboard:`Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.`,dropDescriptionTouch:`Koppintson duplán az elengedéshez.`,dropDescriptionVirtual:`Kattintson az elengedéshez.`,dropIndicator:`elengedésjelző`,dropOnItem:e=>`Elenged\xe9s erre: ${e.itemText}`,dropOnRoot:`Elengedés erre:`,endDragKeyboard:`Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.`,endDragTouch:`Húzás folyamatban. Koppintson duplán a húzás megszakításához.`,endDragVirtual:`Húzás folyamatban. Kattintson a húzás megszakításához.`,insertAfter:e=>`Besz\xfar\xe1s ${e.itemText} ut\xe1n`,insertBefore:e=>`Besz\xfar\xe1s ${e.itemText} el\xe9`,insertBetween:e=>`Besz\xfar\xe1s ${e.beforeItemText} \xe9s ${e.afterItemText} k\xf6z\xe9`};var JV={};JV={dragDescriptionKeyboard:`Premi Invio per iniziare a trascinare.`,dragDescriptionKeyboardAlt:`Premi Alt + Invio per iniziare a trascinare.`,dragDescriptionLongPress:`Premi a lungo per iniziare a trascinare.`,dragDescriptionTouch:`Tocca due volte per iniziare a trascinare.`,dragDescriptionVirtual:`Fai clic per iniziare a trascinare.`,dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:`Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.`,dragStartedTouch:`Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.`,dragStartedVirtual:`Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.`,dropCanceled:`Rilascio annullato.`,dropComplete:`Rilascio completato.`,dropDescriptionKeyboard:`Premi Invio per rilasciare. Premi Esc per annullare.`,dropDescriptionTouch:`Tocca due volte per rilasciare.`,dropDescriptionVirtual:`Fai clic per rilasciare.`,dropIndicator:`indicatore di rilascio`,dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:`Rilascia su`,endDragKeyboard:`Trascinamento. Premi Invio per annullare.`,endDragTouch:`Trascinamento. Tocca due volte per annullare.`,endDragVirtual:`Trascinamento. Fai clic per annullare.`,insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`};var YV={};YV={dragDescriptionKeyboard:`Enter キーを押してドラッグを開始してください。`,dragDescriptionKeyboardAlt:`Alt+Enter キーを押してドラッグを開始します。`,dragDescriptionLongPress:`長押ししてドラッグを開始します。`,dragDescriptionTouch:`ダブルタップしてドラッグを開始します。`,dragDescriptionVirtual:`クリックしてドラッグを開始します。`,dragItem:e=>`${e.itemText} \u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{9078}\u{629E}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{9078}\u{629E}\u{9805}\u{76EE}`})} \u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}`,dragSelectedKeyboard:(e,t)=>`Enter \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{9577}\u{62BC}\u{3057}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragStartedKeyboard:`ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。`,dragStartedTouch:`ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。`,dragStartedVirtual:`ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。`,dropCanceled:`ドロップがキャンセルされました。`,dropComplete:`ドロップが完了しました。`,dropDescriptionKeyboard:`Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。`,dropDescriptionTouch:`ダブルタップしてドロップします。`,dropDescriptionVirtual:`クリックしてドロップします。`,dropIndicator:`ドロップインジケーター`,dropOnItem:e=>`${e.itemText} \u{306B}\u{30C9}\u{30ED}\u{30C3}\u{30D7}`,dropOnRoot:`ドロップ場所`,endDragKeyboard:`ドラッグしています。Enter キーを押してドラッグをキャンセルします。`,endDragTouch:`ドラッグしています。ダブルタップしてドラッグをキャンセルします。`,endDragVirtual:`ドラッグしています。クリックしてドラッグをキャンセルします。`,insertAfter:e=>`${e.itemText} \u{306E}\u{5F8C}\u{306B}\u{633F}\u{5165}`,insertBefore:e=>`${e.itemText} \u{306E}\u{524D}\u{306B}\u{633F}\u{5165}`,insertBetween:e=>`${e.beforeItemText} \u{3068} ${e.afterItemText} \u{306E}\u{9593}\u{306B}\u{633F}\u{5165}`};var XV={};XV={dragDescriptionKeyboard:`드래그를 시작하려면 Enter를 누르세요.`,dragDescriptionKeyboardAlt:`드래그를 시작하려면 Alt + Enter를 누르십시오.`,dragDescriptionLongPress:`드래그를 시작하려면 길게 누르십시오.`,dragDescriptionTouch:`드래그를 시작하려면 더블 탭하세요.`,dragDescriptionVirtual:`드래그를 시작하려면 클릭하세요.`,dragItem:e=>`${e.itemText} \u{B4DC}\u{B798}\u{ADF8}`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})} \u{B4DC}\u{B798}\u{ADF8}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} Enter\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} Alt + Enter\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} \u{AE38}\u{AC8C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragStartedKeyboard:`드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.`,dragStartedTouch:`드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.`,dragStartedVirtual:`드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.`,dropCanceled:`드롭이 취소되었습니다.`,dropComplete:`드롭이 완료되었습니다.`,dropDescriptionKeyboard:`드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.`,dropDescriptionTouch:`더블 탭하여 드롭하세요.`,dropDescriptionVirtual:`드롭하려면 클릭하세요.`,dropIndicator:`드롭 표시기`,dropOnItem:e=>`${e.itemText}\u{C5D0} \u{B4DC}\u{B86D}`,dropOnRoot:`드롭 대상`,endDragKeyboard:`드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.`,endDragTouch:`드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.`,endDragVirtual:`드래그 중입니다. 드래그를 취소하려면 클릭하세요.`,insertAfter:e=>`${e.itemText} \u{C774}\u{D6C4}\u{C5D0} \u{C0BD}\u{C785}`,insertBefore:e=>`${e.itemText} \u{C774}\u{C804}\u{C5D0} \u{C0BD}\u{C785}`,insertBetween:e=>`${e.beforeItemText} \u{BC0F} ${e.afterItemText} \u{C0AC}\u{C774}\u{C5D0} \u{C0BD}\u{C785}`};var ZV={};ZV={dragDescriptionKeyboard:`Paspauskite „Enter“, kad pradėtumėte vilkti.`,dragDescriptionKeyboardAlt:`Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.`,dragDescriptionLongPress:`Palaikykite nuspaudę, kad pradėtumėte vilkti.`,dragDescriptionTouch:`Palieskite dukart, kad pradėtumėte vilkti.`,dragDescriptionVirtual:`Spustelėkite, kad pradėtumėte vilkti.`,dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite \u{201E}Enter\u{201C}, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite \u{201E}Alt + Enter\u{201C}, kad nuvilktum\u{117}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaud\u{119} palaikykite, kad nuvilktum\u{117}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:`Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.`,dragStartedTouch:`Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.`,dragStartedVirtual:`Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.`,dropCanceled:`Numetimas atšauktas.`,dropComplete:`Numesta.`,dropDescriptionKeyboard:`Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.`,dropDescriptionTouch:`Palieskite dukart, kad numestumėte.`,dropDescriptionVirtual:`Spustelėkite, kad numestumėte.`,dropIndicator:`numetimo indikatorius`,dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:`Numesti ant`,endDragKeyboard:`Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.`,endDragTouch:`Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.`,endDragVirtual:`Velkama. Spustelėkite, kad atšauktumėte vilkimą.`,insertAfter:e=>`\u{12E}terpti po ${e.itemText}`,insertBefore:e=>`\u{12E}terpti prie\u{161} ${e.itemText}`,insertBetween:e=>`\u{12E}terpti tarp ${e.beforeItemText} ir ${e.afterItemText}`};var QV={};QV={dragDescriptionKeyboard:`Nospiediet Enter, lai sāktu vilkšanu.`,dragDescriptionKeyboardAlt:`Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.`,dragDescriptionLongPress:`Turiet nospiestu, lai sāktu vilkšanu.`,dragDescriptionTouch:`Veiciet dubultskārienu, lai sāktu vilkšanu.`,dragDescriptionVirtual:`Noklikšķiniet, lai sāktu vilkšanu.`,dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet tausti\u{146}u Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet tausti\u{146}u kombin\u{101}ciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragStartedKeyboard:`Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.`,dragStartedTouch:`Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.`,dragStartedVirtual:`Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.`,dropCanceled:`Nomešana atcelta.`,dropComplete:`Nomešana pabeigta.`,dropDescriptionKeyboard:`Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.`,dropDescriptionTouch:`Veiciet dubultskārienu, lai nomestu.`,dropDescriptionVirtual:`Noklikšķiniet, lai nomestu.`,dropIndicator:`nomešanas indikators`,dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:`Nometiet uz`,endDragKeyboard:`Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.`,endDragTouch:`Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.`,endDragVirtual:`Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.`,insertAfter:e=>`Ievietojiet p\u{113}c ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`};var $V={};$V={dragDescriptionKeyboard:`Trykk på Enter for å begynne å dra.`,dragDescriptionKeyboardAlt:`Trykk på Alt + Enter for å begynne å dra.`,dragDescriptionLongPress:`Trykk lenge for å begynne å dra.`,dragDescriptionTouch:`Dobbelttrykk for å begynne å dra.`,dragDescriptionVirtual:`Klikk for å begynne å dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk p\xe5 Alt + Enter for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:`Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.`,dragStartedTouch:`Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.`,dragStartedVirtual:`Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.`,dropCanceled:`Avbrøt slipping.`,dropComplete:`Slippingen er fullført.`,dropDescriptionKeyboard:`Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.`,dropDescriptionTouch:`Dobbelttrykk for å slippe.`,dropDescriptionVirtual:`Klikk for å slippe.`,dropIndicator:`slippeindikator`,dropOnItem:e=>`Slipp p\xe5 ${e.itemText}`,dropOnRoot:`Slipp på`,endDragKeyboard:`Drar. Trykk på Enter hvis du vil avbryte.`,endDragTouch:`Drar. Dobbelttrykk hvis du vil avbryte.`,endDragVirtual:`Drar. Klikk hvis du vil avbryte.`,insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn f\xf8r ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`};var eH={};eH={dragDescriptionKeyboard:`Druk op Enter om te slepen.`,dragDescriptionKeyboardAlt:`Druk op Alt + Enter om te slepen.`,dragDescriptionLongPress:`Houd lang ingedrukt om te slepen.`,dragDescriptionTouch:`Dubbeltik om te slepen.`,dragDescriptionVirtual:`Klik om met slepen te starten.`,dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:`Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.`,dragStartedTouch:`Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.`,dragStartedVirtual:`Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.`,dropCanceled:`Neerzetten geannuleerd.`,dropComplete:`Neerzetten voltooid.`,dropDescriptionKeyboard:`Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.`,dropDescriptionTouch:`Dubbeltik om neer te zetten.`,dropDescriptionVirtual:`Klik om neer te zetten.`,dropIndicator:`aanwijzer voor neerzetten`,dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:`Neerzetten op`,endDragKeyboard:`Bezig met slepen. Druk op Enter om te annuleren.`,endDragTouch:`Bezig met slepen. Dubbeltik om te annuleren.`,endDragVirtual:`Bezig met slepen. Klik om te annuleren.`,insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen v\xf3\xf3r ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`};var tH={};tH={dragDescriptionKeyboard:`Naciśnij Enter, aby rozpocząć przeciąganie.`,dragDescriptionKeyboardAlt:`Naciśnij Alt + Enter, aby rozpocząć przeciąganie.`,dragDescriptionLongPress:`Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.`,dragDescriptionTouch:`Dotknij dwukrotnie, aby rozpocząć przeciąganie.`,dragDescriptionVirtual:`Kliknij, aby rozpocząć przeciąganie.`,dragItem:e=>`Przeci\u{105}gnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeci\u{105}gnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych element\xf3w`})}`,dragSelectedKeyboard:(e,t)=>`Naci\u{15B}nij Enter, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naci\u{15B}nij Alt + Enter, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragSelectedLongPress:(e,t)=>`Naci\u{15B}nij i przytrzymaj, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragStartedKeyboard:`Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.`,dragStartedTouch:`Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F`,dragStartedVirtual:`Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.`,dropCanceled:`Anulowano upuszczenie.`,dropComplete:`Zakończono upuszczanie.`,dropDescriptionKeyboard:`Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.`,dropDescriptionTouch:`Dotknij dwukrotnie, aby upuścić.`,dropDescriptionVirtual:`Kliknij, aby upuścić.`,dropIndicator:`wskaźnik upuszczenia`,dropOnItem:e=>`Upu\u{15B}\u{107} na ${e.itemText}`,dropOnRoot:`Upuść`,endDragKeyboard:`Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.`,endDragTouch:`Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.`,endDragVirtual:`Przeciąganie. Kliknij, aby anulować przeciąganie.`,insertAfter:e=>`Umie\u{15B}\u{107} za ${e.itemText}`,insertBefore:e=>`Umie\u{15B}\u{107} przed ${e.itemText}`,insertBetween:e=>`Umie\u{15B}\u{107} mi\u{119}dzy ${e.beforeItemText} i ${e.afterItemText}`};var nH={};nH={dragDescriptionKeyboard:`Pressione Enter para começar a arrastar.`,dragDescriptionKeyboardAlt:`Pressione Alt + Enter para começar a arrastar.`,dragDescriptionLongPress:`Pressione e segure para começar a arrastar.`,dragDescriptionTouch:`Toque duas vezes para começar a arrastar.`,dragDescriptionVirtual:`Clique para começar a arrastar.`,dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:`Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.`,dragStartedTouch:`Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.`,dragStartedVirtual:`Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.`,dropCanceled:`Liberação cancelada.`,dropComplete:`Liberação concluída.`,dropDescriptionKeyboard:`Pressione Enter para soltar. Pressione Escape para cancelar.`,dropDescriptionTouch:`Toque duas vezes para soltar.`,dropDescriptionVirtual:`Clique para soltar.`,dropIndicator:`indicador de liberação`,dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:`Soltar`,endDragKeyboard:`Arrastando. Pressione Enter para cancelar.`,endDragTouch:`Arrastando. Toque duas vezes para cancelar.`,endDragVirtual:`Arrastando. Clique para cancelar.`,insertAfter:e=>`Inserir ap\xf3s ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var rH={};rH={dragDescriptionKeyboard:`Prima Enter para iniciar o arrasto.`,dragDescriptionKeyboardAlt:`Prima Alt + Enter para iniciar o arrasto.`,dragDescriptionLongPress:`Prima longamente para começar a arrastar.`,dragDescriptionTouch:`Faça duplo toque para começar a arrastar.`,dragDescriptionVirtual:`Clique para iniciar o arrasto.`,dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:`Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.`,dragStartedTouch:`Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.`,dragStartedVirtual:`Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.`,dropCanceled:`Largar cancelado.`,dropComplete:`Largar completo.`,dropDescriptionKeyboard:`Prima Enter para largar. Prima Escape para cancelar o arrasto.`,dropDescriptionTouch:`Faça duplo toque para largar.`,dropDescriptionVirtual:`Clique para largar.`,dropIndicator:`Indicador de largar`,dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:`Largar em`,endDragKeyboard:`A arrastar. Prima Enter para cancelar o arrasto.`,endDragTouch:`A arrastar. Faça duplo toque para cancelar o arrasto.`,endDragVirtual:`A arrastar. Clique para cancelar o arrasto.`,insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var iH={};iH={dragDescriptionKeyboard:`Apăsați pe Enter pentru a începe glisarea.`,dragDescriptionKeyboardAlt:`Apăsați pe Alt + Enter pentru a începe glisarea.`,dragDescriptionLongPress:`Apăsați lung pentru a începe glisarea.`,dragDescriptionTouch:`Atingeți de două ori pentru a începe să glisați.`,dragDescriptionVirtual:`Faceți clic pentru a începe glisarea.`,dragItem:e=>`Glisa\u{21B}i ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisa\u{21B}i ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Ap\u{103}sa\u{21B}i pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ap\u{103}sa\u{21B}i pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Ap\u{103}sa\u{21B}i lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:`A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.`,dragStartedTouch:`A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.`,dragStartedVirtual:`A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.`,dropCanceled:`Fixare anulată.`,dropComplete:`Fixare finalizată.`,dropDescriptionKeyboard:`Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.`,dropDescriptionTouch:`Atingeți de două ori pentru a fixa.`,dropDescriptionVirtual:`Faceți clic pentru a fixa.`,dropIndicator:`indicator de fixare`,dropOnItem:e=>`Fixa\u{21B}i pe ${e.itemText}`,dropOnRoot:`Fixare pe`,endDragKeyboard:`Se glisează. Apăsați pe Enter pentru a anula glisarea.`,endDragTouch:`Se glisează. Atingeți de două ori pentru a anula glisarea.`,endDragVirtual:`Se glisează. Faceți clic pentru a anula glisarea.`,insertAfter:e=>`Insera\u{21B}i dup\u{103} ${e.itemText}`,insertBefore:e=>`Insera\u{21B}i \xeenainte de ${e.itemText}`,insertBetween:e=>`Insera\u{21B}i \xeentre ${e.beforeItemText} \u{219}i ${e.afterItemText}`};var aH={};aH={dragDescriptionKeyboard:`Нажмите клавишу Enter для начала перетаскивания.`,dragDescriptionKeyboardAlt:`Нажмите Alt + Enter, чтобы начать перетаскивать.`,dragDescriptionLongPress:`Нажмите и удерживайте, чтобы начать перетаскивать.`,dragDescriptionTouch:`Дважды нажмите для начала перетаскивания.`,dragDescriptionVirtual:`Щелкните для начала перетаскивания.`,dragItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Enter \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + Enter \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragSelectedLongPress:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragStartedKeyboard:`Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.`,dragStartedTouch:`Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.`,dragStartedVirtual:`Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.`,dropCanceled:`Перетаскивание отменено.`,dropComplete:`Перетаскивание завершено.`,dropDescriptionKeyboard:`Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.`,dropDescriptionTouch:`Дважды нажмите, чтобы применить перетаскивание.`,dropDescriptionVirtual:`Щелкните, чтобы применить перетаскивание.`,dropIndicator:`индикатор перетаскивания`,dropOnItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} \u{43D}\u{430} ${e.itemText}`,dropOnRoot:`Перетащить на`,endDragKeyboard:`Перетаскивание. Нажмите клавишу Enter для отмены.`,endDragTouch:`Перетаскивание. Дважды нажмите для отмены.`,endDragVirtual:`Перетаскивание. Щелкните для отмены.`,insertAfter:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43F}\u{43E}\u{441}\u{43B}\u{435} ${e.itemText}`,insertBefore:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43F}\u{435}\u{440}\u{435}\u{434} ${e.itemText}`,insertBetween:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43C}\u{435}\u{436}\u{434}\u{443} ${e.beforeItemText} \u{438} ${e.afterItemText}`};var oH={};oH={dragDescriptionKeyboard:`Stlačením klávesu Enter začnete presúvanie.`,dragDescriptionKeyboardAlt:`Stlačením klávesov Alt + Enter začnete presúvanie.`,dragDescriptionLongPress:`Dlhým stlačením začnete presúvanie.`,dragDescriptionTouch:`Dvojitým kliknutím začnete presúvanie.`,dragDescriptionVirtual:`Kliknutím začnete presúvanie.`,dragItem:e=>`Presun\xfa\u{165} polo\u{17E}ku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presun\xfa\u{165} ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xe9 polo\u{17E}ky`})}`,dragSelectedKeyboard:(e,t)=>`Stla\u{10D}en\xedm kl\xe1vesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stla\u{10D}en\xedm kl\xe1vesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragSelectedLongPress:(e,t)=>`Dlh\xfdm stla\u{10D}en\xedm presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragStartedKeyboard:`Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.`,dragStartedTouch:`Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.`,dragStartedVirtual:`Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.`,dropCanceled:`Umiestnenie zrušené.`,dropComplete:`Umiestnenie dokončené.`,dropDescriptionKeyboard:`Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.`,dropDescriptionTouch:`Dvojitým kliknutím umiestnite položku.`,dropDescriptionVirtual:`Kliknutím umiestnite položku.`,dropIndicator:`indikátor umiestnenia`,dropOnItem:e=>`Umiestni\u{165} na polo\u{17E}ku ${e.itemText}`,dropOnRoot:`Umiestniť na`,endDragKeyboard:`Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.`,endDragTouch:`Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.`,endDragVirtual:`Prebieha presúvanie.`,insertAfter:e=>`Vlo\u{17E}i\u{165} za polo\u{17E}ku ${e.itemText}`,insertBefore:e=>`Vlo\u{17E}i\u{165} pred polo\u{17E}ku ${e.itemText}`,insertBetween:e=>`Vlo\u{17E}i\u{165} medzi polo\u{17E}ky ${e.beforeItemText} a ${e.afterItemText}`};var sH={};sH={dragDescriptionKeyboard:`Pritisnite tipko Enter za začetek vlečenja.`,dragDescriptionKeyboardAlt:`Pritisnite tipki Alt + Enter za začetek vlečenja.`,dragDescriptionLongPress:`Pritisnite in zadržite za začetek vlečenja.`,dragDescriptionTouch:`Dvotapnite za začetek vlečenja.`,dragDescriptionVirtual:`Kliknite za začetek vlečenja.`,dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadr\u{17E}ite, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:`Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.`,dragStartedTouch:`Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.`,dragStartedVirtual:`Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.`,dropCanceled:`Spust je preklican.`,dropComplete:`Spust je končan.`,dropDescriptionKeyboard:`Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.`,dropDescriptionTouch:`Dvotapnite, da spustite.`,dropDescriptionVirtual:`Kliknite, da spustite.`,dropIndicator:`indikator spusta`,dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:`Spusti na mesto`,endDragKeyboard:`Vlečenje. Pritisnite tipko Enter za preklic vlečenja.`,endDragTouch:`Vlečenje. Dvotapnite za preklic vlečenja.`,endDragVirtual:`Vlečenje. Kliknite, da prekličete vlečenje.`,insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`};var cH={};cH={dragDescriptionKeyboard:`Pritisnite Enter da biste započeli prevlačenje.`,dragDescriptionKeyboardAlt:`Pritisnite Alt + Enter da biste započeli prevlačenje.`,dragDescriptionLongPress:`Pritisnite dugo da biste započeli prevlačenje.`,dragDescriptionTouch:`Dvaput dodirnite da biste započeli prevlačenje.`,dragDescriptionVirtual:`Kliknite da biste započeli prevlačenje.`,dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:`Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.`,dragStartedTouch:`Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.`,dragStartedVirtual:`Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.`,dropCanceled:`Otpuštanje je otkazano.`,dropComplete:`Prevlačenje je završeno.`,dropDescriptionKeyboard:`Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.`,dropDescriptionTouch:`Dvaput dodirnite za otpuštanje.`,dropDescriptionVirtual:`Kliknite za otpuštanje.`,dropIndicator:`Indikator otpuštanja`,dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:`Otpusti na`,endDragKeyboard:`Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.`,endDragTouch:`Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.`,endDragVirtual:`Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.`,insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite izme\u{111}u ${e.beforeItemText} i ${e.afterItemText}`};var lH={};lH={dragDescriptionKeyboard:`Tryck på enter för att börja dra.`,dragDescriptionKeyboardAlt:`Tryck på Alt + Retur för att börja dra.`,dragDescriptionLongPress:`Tryck länge för att börja dra.`,dragDescriptionTouch:`Dubbeltryck för att börja dra.`,dragDescriptionVirtual:`Klicka för att börja dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck p\xe5 Retur f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck p\xe5 Alt + Retur f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck l\xe4nge f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:`Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.`,dragStartedTouch:`Börja dra. Navigera till ett mål och dubbeltryck för att släppa.`,dragStartedVirtual:`Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.`,dropCanceled:`Släppåtgärd avbröts.`,dropComplete:`Släppåtgärd klar.`,dropDescriptionKeyboard:`Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.`,dropDescriptionTouch:`Dubbeltryck för att släppa.`,dropDescriptionVirtual:`Klicka för att släppa.`,dropIndicator:`släppindikator`,dropOnItem:e=>`Sl\xe4pp p\xe5 ${e.itemText}`,dropOnRoot:`Släpp på`,endDragKeyboard:`Drar. Tryck på enter för att avbryta dragåtgärd.`,endDragTouch:`Drar. Dubbeltryck för att avbryta dragåtgärd.`,endDragVirtual:`Drar. Klicka för att avbryta dragåtgärd.`,insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xf6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`};var uH={};uH={dragDescriptionKeyboard:`Sürüklemeyi başlatmak için Enter'a basın.`,dragDescriptionKeyboardAlt:`Sürüklemeyi başlatmak için Alt + Enter'a basın.`,dragDescriptionLongPress:`Sürüklemeye başlamak için uzun basın.`,dragDescriptionTouch:`Sürüklemeyi başlatmak için çift tıklayın.`,dragDescriptionVirtual:`Sürüklemeyi başlatmak için tıklayın.`,dragItem:e=>`${e.itemText}\u{2019}i s\xfcr\xfckle`,dragSelectedItems:(e,t)=>`S\xfcr\xfckle ${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ili \xf6ge`,other:()=>`${t.number(e.count)} se\xe7ili \xf6ge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in Enter'a bas\u{131}n.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in Alt + Enter tu\u{15F}una bas\u{131}n.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in uzun bas\u{131}n.`,dragStartedKeyboard:`Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.`,dragStartedTouch:`Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.`,dragStartedVirtual:`Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.`,dropCanceled:`Bırakma iptal edildi.`,dropComplete:`Bırakma tamamlandı.`,dropDescriptionKeyboard:`Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.`,dropDescriptionTouch:`Bırakmak için çift tıklayın.`,dropDescriptionVirtual:`Bırakmak için tıklayın.`,dropIndicator:`bırakma göstergesi`,dropOnItem:e=>`${e.itemText} \xfczerine b\u{131}rak`,dropOnRoot:`Bırakın`,endDragKeyboard:`Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.`,endDragTouch:`Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.`,endDragVirtual:`Sürükleme. Sürüklemeyi iptal etmek için tıklayın.`,insertAfter:e=>`${e.itemText}\u{2019}den sonra gir`,insertBefore:e=>`${e.itemText}\u{2019}den \xf6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} aras\u{131}na gir`};var dH={};dH={dragDescriptionKeyboard:`Натисніть Enter, щоб почати перетягування.`,dragDescriptionKeyboardAlt:`Натисніть Alt + Enter, щоб почати перетягування.`,dragDescriptionLongPress:`Натисніть і утримуйте, щоб почати перетягування.`,dragDescriptionTouch:`Натисніть двічі, щоб почати перетягування.`,dragDescriptionVirtual:`Натисніть, щоб почати перетягування.`,dragItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{456}\u{442}\u{44C} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Alt + Enter, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragSelectedLongPress:(e,t)=>`\u{423}\u{442}\u{440}\u{438}\u{43C}\u{443}\u{439}\u{442}\u{435}, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragStartedKeyboard:`Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.`,dragStartedTouch:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.`,dragStartedVirtual:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.`,dropCanceled:`Перетягування скасовано.`,dropComplete:`Перетягування завершено.`,dropDescriptionKeyboard:`Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.`,dropDescriptionTouch:`Натисніть двічі, щоб перетягнути.`,dropDescriptionVirtual:`Натисніть, щоб перетягнути.`,dropIndicator:`індикатор перетягування`,dropOnItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} \u{43D}\u{430} ${e.itemText}`,dropOnRoot:`Перетягнути на`,endDragKeyboard:`Триває перетягування. Натисніть Enter, щоб скасувати перетягування.`,endDragTouch:`Триває перетягування. Натисніть двічі, щоб скасувати перетягування.`,endDragVirtual:`Триває перетягування. Натисніть, щоб скасувати перетягування.`,insertAfter:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43F}\u{456}\u{441}\u{43B}\u{44F} ${e.itemText}`,insertBefore:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43F}\u{435}\u{440}\u{435}\u{434} ${e.itemText}`,insertBetween:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43C}\u{456}\u{436} ${e.beforeItemText} \u{456} ${e.afterItemText}`};var fH={};fH={dragDescriptionKeyboard:`按 Enter 开始拖动。`,dragDescriptionKeyboardAlt:`按 Alt + Enter 开始拖动。`,dragDescriptionLongPress:`长按以开始拖动。`,dragDescriptionTouch:`双击开始拖动。`,dragDescriptionVirtual:`单击开始拖动。`,dragItem:e=>`\u{62D6}\u{52A8} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9009}\u{4E2D}\u{9879}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9009}\u{4E2D}\u{9879}\u{76EE}`})}`,dragSelectedKeyboard:(e,t)=>`\u{6309} Enter \u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`\u{6309} Alt + Enter \u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{957F}\u{6309}\u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragStartedKeyboard:`已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。`,dragStartedTouch:`已开始拖动。导航到放置目标,然后双击放置。`,dragStartedVirtual:`已开始拖动。导航到放置目标,然后单击或按 Enter 放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 放置。按 Escape 取消拖动。`,dropDescriptionTouch:`双击放置。`,dropDescriptionVirtual:`单击放置。`,dropIndicator:`放置标记`,dropOnItem:e=>`\u{653E}\u{7F6E}\u{4E8E} ${e.itemText}`,dropOnRoot:`放置于`,endDragKeyboard:`正在拖动。按 Enter 取消拖动。`,endDragTouch:`正在拖动。双击取消拖动。`,endDragVirtual:`正在拖动。单击取消拖动。`,insertAfter:e=>`\u{63D2}\u{5165}\u{5230} ${e.itemText} \u{4E4B}\u{540E}`,insertBefore:e=>`\u{63D2}\u{5165}\u{5230} ${e.itemText} \u{4E4B}\u{524D}`,insertBetween:e=>`\u{63D2}\u{5165}\u{5230} ${e.beforeItemText} \u{548C} ${e.afterItemText} \u{4E4B}\u{95F4}`};var pH={};pH={dragDescriptionKeyboard:`按 Enter 鍵以開始拖曳。`,dragDescriptionKeyboardAlt:`按 Alt+Enter 鍵以開始拖曳。`,dragDescriptionLongPress:`長按以開始拖曳。`,dragDescriptionTouch:`輕點兩下以開始拖曳。`,dragDescriptionVirtual:`按一下滑鼠以開始拖曳。`,dragItem:e=>`\u{62D6}\u{66F3}\u{300C}${e.itemText}\u{300D}`,dragSelectedItems:(e,t)=>`\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}`,dragSelectedKeyboard:(e,t)=>`\u{6309} Enter \u{9375}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`\u{6309} Alt+Enter \u{9375}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{9577}\u{6309}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragStartedKeyboard:`已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。`,dragStartedTouch:`已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。`,dragStartedVirtual:`已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。`,dropDescriptionTouch:`輕點兩下以放置。`,dropDescriptionVirtual:`按一下滑鼠以放置。`,dropIndicator:`放置指示器`,dropOnItem:e=>`\u{653E}\u{7F6E}\u{5728}\u{300C}${e.itemText}\u{300D}\u{4E0A}`,dropOnRoot:`放置在`,endDragKeyboard:`拖曳中。按 Enter 鍵以取消拖曳。`,endDragTouch:`拖曳中。輕點兩下以取消拖曳。`,endDragVirtual:`拖曳中。按一下滑鼠以取消拖曳。`,insertAfter:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.itemText}\u{300D}\u{4E4B}\u{5F8C}`,insertBefore:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.itemText}\u{300D}\u{4E4B}\u{524D}`,insertBetween:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.beforeItemText}\u{300D}\u{548C}\u{300C}${e.afterItemText}\u{300D}\u{4E4B}\u{9593}`};var mH={};mH={"ar-AE":PV,"bg-BG":FV,"cs-CZ":IV,"da-DK":LV,"de-DE":RV,"el-GR":zV,"en-US":BV,"es-ES":VV,"et-EE":HV,"fi-FI":UV,"fr-FR":WV,"he-IL":GV,"hr-HR":KV,"hu-HU":qV,"it-IT":JV,"ja-JP":YV,"ko-KR":XV,"lt-LT":ZV,"lv-LV":QV,"nb-NO":$V,"nl-NL":eH,"pl-PL":tH,"pt-BR":nH,"pt-PT":rH,"ro-RO":iH,"ru-RU":aH,"sk-SK":oH,"sl-SI":sH,"sr-SP":cH,"sv-SE":lH,"tr-TR":uH,"uk-UA":dH,"zh-CN":fH,"zh-TW":pH};function hH(e){return e&&e.__esModule?e.default:e}var gH={keyboard:`dropDescriptionKeyboard`,touch:`dropDescriptionTouch`,virtual:`dropDescriptionVirtual`};function _H(){let e=Ow(hH(mH),`@react-aria/dnd`),t=iV();return{dropProps:{...mA(DV()?e.format(gH[t]):``),onClick:()=>{}}}}var vH=800;function yH(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=(0,x.useState)(!1),a=(0,x.useRef)({x:0,y:0,dragOverElements:new Set,dropEffect:`none`,allowedOperations:KB.all,dropActivateTimer:void 0}).current,o=t=>{if(i(!0),typeof e.onDropEnter==`function`){let n=t.currentTarget.getBoundingClientRect();e.onDropEnter({type:`dropenter`,x:t.clientX-n.x,y:t.clientY-n.y})}},s=t=>{if(i(!1),typeof e.onDropExit==`function`){let n=t.currentTarget.getBoundingClientRect();e.onDropExit({type:`dropexit`,x:t.clientX-n.x,y:t.clientY-n.y})}},c=t=>{t.preventDefault(),t.stopPropagation();let n=bH(t);if(t.clientX===a.x&&t.clientY===a.y&&n===a.allowedOperations){t.dataTransfer.dropEffect=a.dropEffect;return}a.x=t.clientX,a.y=t.clientY;let r=a.dropEffect;if(n!==a.allowedOperations){let r=xH(n),i=r[0];if(typeof e.getDropOperation==`function`){let a=new sV(t.dataTransfer);i=SH(n,e.getDropOperation(a,r))}a.dropEffect=XB[i]||`none`}if(typeof e.getDropOperationForPoint==`function`){let r=new sV(t.dataTransfer),i=t.currentTarget.getBoundingClientRect(),o=SH(n,e.getDropOperationForPoint(r,xH(n),a.x-i.x,a.y-i.y));a.dropEffect=XB[o]||`none`}if(a.allowedOperations=n,t.dataTransfer.dropEffect=a.dropEffect,a.dropEffect===`none`&&r!==`none`?s(t):a.dropEffect!==`none`&&r===`none`&&o(t),typeof e.onDropMove==`function`&&a.dropEffect!==`none`){let n=t.currentTarget.getBoundingClientRect();e.onDropMove({type:`dropmove`,x:a.x-n.x,y:a.y-n.y})}if(clearTimeout(a.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate==`function`&&a.dropEffect!==`none`){let n=e.onDropActivate,r=t.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout(()=>{n({type:`dropactivate`,x:a.x-r.x,y:a.y-r.y})},vH)}},l=t=>{if(t.preventDefault(),t.stopPropagation(),a.dragOverElements.add(G(t)),a.dragOverElements.size>1)return;let n=bH(t),r=xH(n),i=r[0];if(typeof e.getDropOperation==`function`){let a=new sV(t.dataTransfer);i=SH(n,e.getDropOperation(a,r))}if(typeof e.getDropOperationForPoint==`function`){let a=new sV(t.dataTransfer),o=t.currentTarget.getBoundingClientRect();i=SH(n,e.getDropOperationForPoint(a,r,t.clientX-o.x,t.clientY-o.y))}a.x=t.clientX,a.y=t.clientY,a.allowedOperations=n,a.dropEffect=XB[i]||`none`,t.dataTransfer.dropEffect=a.dropEffect,i!==`cancel`&&o(t)},u=e=>{e.preventDefault(),e.stopPropagation();let t=G(e);if(a.dragOverElements.delete(t),t===e.currentTarget)for(let t of a.dragOverElements)W(e.currentTarget,t)||a.dragOverElements.delete(t);a.dragOverElements.size>0||(a.dropEffect!==`none`&&s(e),clearTimeout(a.dropActivateTimer))},d=t=>{if(t.preventDefault(),t.stopPropagation(),vV(a.dropEffect),typeof e.onDrop==`function`){let n=YB[a.dropEffect],r=cV(t.dataTransfer),i=t.currentTarget.getBoundingClientRect(),o={type:`drop`,x:t.clientX-i.x,y:t.clientY-i.y,items:r,dropOperation:n};e.onDrop(o)}let n={...hV};a.dragOverElements.clear(),s(t),clearTimeout(a.dropActivateTimer),n.draggingCollectionRef==null?vV(void 0):gV(n)},f=tw(t=>{typeof e.onDropEnter==`function`&&e.onDropEnter(t)}),p=tw(t=>{typeof e.onDropExit==`function`&&e.onDropExit(t)}),m=tw(t=>{typeof e.onDropActivate==`function`&&e.onDropActivate(t)}),h=tw(t=>{typeof e.onDrop==`function`&&e.onDrop(t)}),g=tw((t,n)=>e.getDropOperation?e.getDropOperation(t,n):n[0]),{ref:_}=e;Mx(()=>{if(!n&&_.current)return TV({element:_.current,getDropOperation:g,onDropEnter(e){i(!0),f(e)},onDropExit(e){i(!1),p(e)},onDrop:h,onDropActivate:m})},[n,_]);let{dropProps:v}=_H();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&v,onDragEnter:l,onDragOver:c,onDragLeave:u,onDrop:d},dropButtonProps:{...t&&v},isDropTarget:r}}function bH(e){let t=qB[e.dataTransfer.effectAllowed];yV&&(t&=yV);let n=KB.none;return YS()?(e.altKey&&(n|=KB.copy),e.ctrlKey&&!ZS()&&(n|=KB.link),e.metaKey&&(n|=KB.move)):(e.altKey&&(n|=KB.link),e.shiftKey&&(n|=KB.move),e.ctrlKey&&(n|=KB.copy)),n?t&n:t}function xH(e){let t=[];return e&KB.move&&t.push(`move`),e&KB.copy&&t.push(`copy`),e&KB.link&&t.push(`link`),t}function SH(e,t){return e&KB[t]?t:`cancel`}var CH=(0,x.forwardRef)(function(e,t){let{onSelect:n,acceptedFileTypes:r,allowsMultiple:i,defaultCamera:a,children:o,acceptDirectory:s,...c}=e,l=tS(t),u=K(c,{global:!0});return x.createElement(x.Fragment,null,x.createElement(rL,{onPress:()=>{l.current?.value&&(l.current.value=``),l.current?.click()}},o),x.createElement(ij,{...u,className:``,type:`file`,ref:l,onClick:e=>e.stopPropagation(),style:{display:`none`},accept:r?.toString(),onChange:e=>n?.(G(e).files),capture:a,multiple:i,webkitdirectory:s?``:void 0}))}),wH=new WeakMap;function TH(e,t){let{id:n}=wH.get(e)??{};if(!n)throw Error(`Unknown list`);return`${n}-${EH(t)}`}function EH(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}var DH={};DH={deselectedItem:e=>`${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,longPressToSelect:`اضغط مطولًا للدخول إلى وضع التحديد.`,select:`تحديد`,selectedAll:`جميع العناصر المحددة.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`لم يتم تحديد عناصر`,one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`})}.`,selectedItem:e=>`${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`};var OH={};OH={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,longPressToSelect:`Натиснете и задръжте за да влезете в избирателен режим.`,select:`Изберете`,selectedAll:`Всички елементи са избрани.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Няма избрани елементи`,one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,selectedItem:e=>`${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`};var kH={};kH={deselectedItem:e=>`Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,longPressToSelect:`Dlouhým stisknutím přejdete do režimu výběru.`,select:`Vybrat`,selectedAll:`Vybrány všechny položky.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nevybrány žádné položky`,one:()=>`Vybr\xe1na ${t.number(e.count)} polo\u{17E}ka`,other:()=>`Vybr\xe1no ${t.number(e.count)} polo\u{17E}ek`})}.`,selectedItem:e=>`Vybr\xe1na polo\u{17E}ka ${e.item}.`};var AH={};AH={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:`Lav et langt tryk for at aktivere valgtilstand.`,select:`Vælg`,selectedAll:`Alle elementer valgt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ingen elementer valgt`,one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var jH={};jH={deselectedItem:e=>`${e.item} nicht ausgew\xe4hlt.`,longPressToSelect:`Gedrückt halten, um Auswahlmodus zu öffnen.`,select:`Auswählen`,selectedAll:`Alle Elemente ausgewählt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Keine Elemente ausgewählt`,one:()=>`${t.number(e.count)} Element ausgew\xe4hlt`,other:()=>`${t.number(e.count)} Elemente ausgew\xe4hlt`})}.`,selectedItem:e=>`${e.item} ausgew\xe4hlt.`};var MH={};MH={deselectedItem:e=>`\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,longPressToSelect:`Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.`,select:`Επιλογή`,selectedAll:`Επιλέχθηκαν όλα τα στοιχεία.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Δεν επιλέχθηκαν στοιχεία`,one:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,selectedItem:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`};var NH={};NH={deselectedItem:e=>`${e.item} not selected.`,select:`Select`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`No items selected`,one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:`All items selected.`,selectedItem:e=>`${e.item} selected.`,longPressToSelect:`Long press to enter selection mode.`};var PH={};PH={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:`Mantenga pulsado para abrir el modo de selección.`,select:`Seleccionar`,selectedAll:`Todos los elementos seleccionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ningún elemento seleccionado`,one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var FH={};FH={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:`Valikurežiimi sisenemiseks vajutage pikalt.`,select:`Vali`,selectedAll:`Kõik üksused valitud.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Üksusi pole valitud`,one:()=>`${t.number(e.count)} \xfcksus valitud`,other:()=>`${t.number(e.count)} \xfcksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var IH={};IH={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:`Siirry valintatilaan painamalla pitkään.`,select:`Valitse`,selectedAll:`Kaikki kohteet valittu.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ei yhtään kohdetta valittu`,one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var LH={};LH={deselectedItem:e=>`${e.item} non s\xe9lectionn\xe9.`,longPressToSelect:`Appuyez de manière prolongée pour passer en mode de sélection.`,select:`Sélectionner`,selectedAll:`Tous les éléments sélectionnés.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Aucun élément sélectionné`,one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,selectedItem:e=>`${e.item} s\xe9lectionn\xe9.`};var RH={};RH={deselectedItem:e=>`${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,longPressToSelect:`הקשה ארוכה לכניסה למצב בחירה.`,select:`בחר`,selectedAll:`כל הפריטים נבחרו.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`לא נבחרו פריטים`,one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} ${t.number(e.count)} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,selectedItem:e=>`${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`};var zH={};zH={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:`Dugo pritisnite za ulazak u način odabira.`,select:`Odaberite`,selectedAll:`Odabrane su sve stavke.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nije odabrana nijedna stavka`,one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var BH={};BH={deselectedItem:e=>`${e.item} nincs kijel\xf6lve.`,longPressToSelect:`Nyomja hosszan a kijelöléshez.`,select:`Kijelölés`,selectedAll:`Az összes elem kijelölve.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Egy elem sincs kijelölve`,one:()=>`${t.number(e.count)} elem kijel\xf6lve`,other:()=>`${t.number(e.count)} elem kijel\xf6lve`})}.`,selectedItem:e=>`${e.item} kijel\xf6lve.`};var VH={};VH={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:`Premi a lungo per passare alla modalità di selezione.`,select:`Seleziona`,selectedAll:`Tutti gli elementi selezionati.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nessun elemento selezionato`,one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var HH={};HH={deselectedItem:e=>`${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,longPressToSelect:`長押しして選択モードを開きます。`,select:`選択`,selectedAll:`すべての項目を選択しました。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`項目が選択されていません`,one:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`,other:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`})}\u{3002}`,selectedItem:e=>`${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`};var UH={};UH={deselectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,longPressToSelect:`선택 모드로 들어가려면 길게 누르십시오.`,select:`선택`,selectedAll:`모든 항목이 선택되었습니다.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`선택된 항목이 없습니다`,one:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`})}.`,selectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`};var WH={};WH={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:`Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.`,select:`Pasirinkti`,selectedAll:`Pasirinkti visi elementai.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nepasirinktas nė vienas elementas`,one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta element\u{173}: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var GH={};GH={deselectedItem:e=>`Vienums ${e.item} nav atlas\u{12B}ts.`,longPressToSelect:`Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.`,select:`Atlasīt`,selectedAll:`Atlasīti visi vienumi.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nav atlasīts neviens vienums`,one:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlas\u{12B}ts vienums ${e.item}.`};var KH={};KH={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:`Bruk et langt trykk for å gå inn i valgmodus.`,select:`Velg`,selectedAll:`Alle elementer er valgt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ingen elementer er valgt`,one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var qH={};qH={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:`Druk lang om de selectiemodus te openen.`,select:`Selecteren`,selectedAll:`Alle items geselecteerd.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Geen items geselecteerd`,one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var JH={};JH={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:`Naciśnij i przytrzymaj, aby wejść do trybu wyboru.`,select:`Zaznacz`,selectedAll:`Wszystkie zaznaczone elementy.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nie zaznaczono żadnych elementów`,one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych element\xf3w`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var YH={};YH={deselectedItem:e=>`${e.item} n\xe3o selecionado.`,longPressToSelect:`Mantenha pressionado para entrar no modo de seleção.`,select:`Selecionar`,selectedAll:`Todos os itens selecionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nenhum item selecionado`,one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var XH={};XH={deselectedItem:e=>`${e.item} n\xe3o selecionado.`,longPressToSelect:`Prima continuamente para entrar no modo de seleção.`,select:`Selecionar`,selectedAll:`Todos os itens selecionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nenhum item selecionado`,one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var ZH={};ZH={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:`Apăsați lung pentru a intra în modul de selectare.`,select:`Selectare`,selectedAll:`Toate elementele selectate.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Niciun element selectat`,one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var QH={};QH={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:`Нажмите и удерживайте для входа в режим выбора.`,select:`Выбрать`,selectedAll:`Выбраны все элементы.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Нет выбранных элементов`,one:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}`,other:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`};var $H={};$H={deselectedItem:e=>`Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,longPressToSelect:`Dlhším stlačením prejdite do režimu výberu.`,select:`Vybrať`,selectedAll:`Všetky vybraté položky.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Žiadne vybraté položky`,one:()=>`${t.number(e.count)} vybrat\xe1 polo\u{17E}ka`,other:()=>`Po\u{10D}et vybrat\xfdch polo\u{17E}iek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybrat\xe9 polo\u{17E}ky: ${e.item}.`};var eU={};eU={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:`Za izbirni način pritisnite in dlje časa držite.`,select:`Izberite`,selectedAll:`Vsi elementi so izbrani.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Noben element ni izbran`,one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var tU={};tU={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:`Dugo pritisnite za ulazak u režim biranja.`,select:`Izaberite`,selectedAll:`Izabrane su sve stavke.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nije izabrana nijedna stavka`,one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var nU={};nU={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:`Tryck länge när du vill öppna väljarläge.`,select:`Markera`,selectedAll:`Alla markerade objekt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Inga markerade objekt`,one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var rU={};rU={deselectedItem:e=>`${e.item} se\xe7ilmedi.`,longPressToSelect:`Seçim moduna girmek için uzun basın.`,select:`Seç`,selectedAll:`Tüm ögeler seçildi.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Hiçbir öge seçilmedi`,one:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`,other:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`})}.`,selectedItem:e=>`${e.item} se\xe7ildi.`};var iU={};iU={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:`Виконайте довге натиснення, щоб перейти в режим вибору.`,select:`Вибрати`,selectedAll:`Усі елементи вибрано.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Жодних елементів не вибрано`,one:()=>`${t.number(e.count)} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,other:()=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{456}\u{432}: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`};var aU={};aU={deselectedItem:e=>`\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,longPressToSelect:`长按以进入选择模式。`,select:`选择`,selectedAll:`已选择所有项目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未选择项目`,one:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`,other:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`};var oU={};oU={deselectedItem:e=>`\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,longPressToSelect:`長按以進入選擇模式。`,select:`選取`,selectedAll:`已選取所有項目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未選取任何項目`,one:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`,other:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`};var sU={};sU={"ar-AE":DH,"bg-BG":OH,"cs-CZ":kH,"da-DK":AH,"de-DE":jH,"el-GR":MH,"en-US":NH,"es-ES":PH,"et-EE":FH,"fi-FI":IH,"fr-FR":LH,"he-IL":RH,"hr-HR":zH,"hu-HU":BH,"it-IT":VH,"ja-JP":HH,"ko-KR":UH,"lt-LT":WH,"lv-LV":GH,"nb-NO":KH,"nl-NL":qH,"pl-PL":JH,"pt-BR":YH,"pt-PT":XH,"ro-RO":ZH,"ru-RU":QH,"sk-SK":$H,"sl-SI":eU,"sr-SP":tU,"sv-SE":nU,"tr-TR":rU,"uk-UA":iU,"zh-CN":aU,"zh-TW":oU};function cU(e){return e&&e.__esModule?e.default:e}function lU(e,t){let{getRowText:n=e=>t.collection.getTextValue?.(e)??t.collection.getItem(e)?.textValue}=e,r=Ow(cU(sU),`@react-aria/grid`),i=t.selectionManager.rawSelection,a=(0,x.useRef)(i),o=(0,x.useCallback)(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let e=uU(i,a.current),o=uU(a.current,i),s=t.selectionManager.selectionBehavior===`replace`,c=[];if(t.selectionManager.selectedKeys.size===1&&s){let e=t.selectionManager.selectedKeys.keys().next().value;if(e!=null&&t.collection.getItem(e)){let t=n(e);t&&c.push(r.format(`selectedItem`,{item:t}))}}else if(e.size===1&&o.size===0){let t=e.keys().next().value;if(t!=null){let e=n(t);e&&c.push(r.format(`selectedItem`,{item:e}))}}else if(o.size===1&&e.size===0){let e=o.keys().next().value;if(e!=null&&t.collection.getItem(e)){let t=n(e);t&&c.push(r.format(`deselectedItem`,{item:t}))}}t.selectionManager.selectionMode===`multiple`&&(c.length===0||i===`all`||i.size>1||a.current===`all`||a.current?.size>1)&&c.push(i===`all`?r.format(`selectedAll`):r.format(`selectedCount`,{count:i.size})),c.length>0&&lD(c.join(` `)),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);aA(()=>{if(t.selectionManager.isFocused)o();else{let e=requestAnimationFrame(o);return()=>cancelAnimationFrame(e)}},[i,t.selectionManager.isFocused])}function uU(e,t){let n=new Set;if(e===`all`||t===`all`)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function dU(e,t){let n=t?.isDisabled,[r,i]=(0,x.useState)(!1);return Mx(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=rP(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}function fU(e){return e&&e.__esModule?e.default:e}function pU(e){let t=Ow(fU(sU),`@react-aria/grid`),n=FC(),r=(n===`pointer`||n===`virtual`||n==null)&&typeof window<`u`&&`ontouchstart`in window;return mA((0,x.useMemo)(()=>{let n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,a;return r&&(a=t.format(`longPressToSelect`)),i===`replace`&&n!==`none`&&e.hasItemActions?a:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]))}function mU(e,t,n){let{isVirtualized:r,keyboardDelegate:i,layoutDelegate:a,onAction:o,disallowTypeAhead:s,linkBehavior:c=`action`,keyboardNavigationBehavior:l=`arrow`,escapeKeyBehavior:u=`clearSelection`,shouldSelectOnPressUp:d}=e;!e[`aria-label`]&&!e[`aria-labelledby`]&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let{listProps:f}=CP({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:a,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior===`replace`,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:c,disallowTypeAhead:s,autoFocus:e.autoFocus,escapeKeyBehavior:u,UNSTABLE_focusOnEntry:e.UNSTABLE_focusOnEntry}),p=Xx(e.id);wH.set(t,{id:p,onAction:o,linkBehavior:c,keyboardNavigationBehavior:l,shouldSelectOnPressUp:d});let m=pU({selectionManager:t.selectionManager,hasItemActions:!!o}),h=dU(n,{isDisabled:t.collection.size!==0}),g=H(K(e,{labelable:!0}),{role:`grid`,id:p,"aria-multiselectable":t.selectionManager.selectionMode===`multiple`?`true`:void 0},t.collection.size===0?{tabIndex:h?-1:0}:f,m);return r&&(g[`aria-rowcount`]=t.collection.size,g[`aria-colcount`]=1),lU({},t),{gridProps:g}}var hU={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function gU(e,t,n){let{node:r,isVirtualized:i,focusMode:a=`row`,allowsArrowNavigation:o}=e,{direction:s}=mw(),{onAction:c,linkBehavior:l,keyboardNavigationBehavior:u,shouldSelectOnPressUp:d}=wH.get(t),f=Qx(),p=(0,x.useRef)(null),m=()=>{if(n.current!==null){if(a===`child`){if(TS(n.current)&&n.current!==CS(pS(n.current)))return;let e=rP(n.current,{tabbable:!0}).firstChild();if(e){eT(e),dA(e,{containingElement:sA(e)});return}}(p.current!=null&&r.key!==p.current||!TS(n.current))&&eT(n.current)}},h={},g=e.hasChildItems,_=t.selectionManager.isLink(r.key);if(r!=null&&`expandedKeys`in t){let e=t.collection.getChildren?.(r.key);g||=[...e??[]].length>1,c==null&&!_&&t.selectionManager.selectionMode===`none`&&g&&(c=()=>t.toggleKey(r.key));let n=g?t.expandedKeys.has(r.key):void 0,i=1,a=r.index;if(r.level>=0&&r?.parentKey!=null){let e=t.collection.getItem(r.parentKey);if(e){let n=yU(e,t.collection);i=[...n].filter(e=>e.type===`item`).length,a>0&&n[0].type!==`item`&&--a}}else i=[...t.collection].filter(e=>e.level===0&&e.type===`item`).length;h={"aria-expanded":n,"aria-level":r.level+1,"aria-posinset":a+1,"aria-setsize":i}}let{itemProps:v,...y}=DP({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:e.shouldSelectOnPressUp||d,onAction:c||r.props?.onAction?jx(r.props?.onAction,c?()=>c(r.key):void 0):void 0,focus:m,linkBehavior:l}),b=e=>{let i=CS(pS(n.current));if(!W(e.currentTarget,G(e))||!n.current||!i)return;let a=rP(n.current);if(a.currentNode=i,!_U(e,t,r,g,s,i,n.current,o))switch(e.key){case`ArrowLeft`:if(u===`arrow`){let t=s===`rtl`?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),eT(t),dA(t,{containingElement:sA(n.current)});else if(e.preventDefault(),e.stopPropagation(),s===`rtl`)eT(n.current),dA(n.current,{containingElement:sA(n.current)});else{a.currentNode=n.current;let e=vU(a);e&&(eT(e),dA(e,{containingElement:sA(n.current)}))}}break;case`ArrowRight`:if(u===`arrow`){let t=s===`rtl`?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),eT(t),dA(t,{containingElement:sA(n.current)});else if(e.preventDefault(),e.stopPropagation(),s===`ltr`)eT(n.current),dA(n.current,{containingElement:sA(n.current)});else{a.currentNode=n.current;let e=vU(a);e&&(eT(e),dA(e,{containingElement:sA(n.current)}))}}break;case`ArrowUp`:case`ArrowDown`:!e.altKey&&W(n.current,G(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},S=e=>{p.current=r.key,G(e)===n.current?a===`child`&&e.relatedTarget&&W(n.current,e.relatedTarget)||requestAnimationFrame(()=>{a===`child`&&CS(pS(n.current))===n.current&&m()}):MC()||t.selectionManager.setFocusedKey(r.key)},C=e=>{let i=CS(pS(n.current));if(W(e.currentTarget,G(e))&&n.current&&i){if(u===`tab`){if(G(e)!==n.current&&e.key!==`Tab`){e.stopPropagation();return}if(_U(e,t,r,g,s,i,n.current,o))return}if(e.key===`Tab`&&u===`tab`){let t=rP(n.current,{tabbable:!0});t.currentNode=i,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}},w=fC(r.props),T=H(v,y.hasAction?w:{},{role:`row`,onKeyDownCapture:u===`arrow`||o?b:void 0,onFocus:S,"aria-label":r[`aria-label`]||r.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(r.key)?t.selectionManager.isSelected(r.key):void 0,"aria-disabled":t.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":f&&(r[`aria-label`]||r.textValue)?`${TH(t,r.key)} ${f}`:void 0,id:TH(t,r.key)});a===`child`&&o&&u===`tab`&&(T.tabIndex=-1);let E=T.onKeyDown;if(T.onKeyDown=e=>{C(e),e.isPropagationStopped()||E?.(e)},i){let{collection:e}=t;T[`aria-rowindex`]=[...e].find(e=>e.type===`section`)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!==`section`).findIndex(e=>e===r.key)+1:r.index+1}let D={role:`gridcell`,"aria-colindex":1};return{rowProps:{...H(T,h)},gridCellProps:D,descriptionProps:{id:f},...y}}function _U(e,t,n,r,i,a,o,s){if(!(`expandedKeys`in t)||!s&&a!==o)return!1;if(e.key===hU.expand[i]&&t.selectionManager.focusedKey===n.key&&r&&!t.expandedKeys.has(n.key))return t.toggleKey(n.key),e.stopPropagation(),!0;if(e.key===hU.collapse[i]&&t.selectionManager.focusedKey===n.key){if(r&&t.expandedKeys.has(n.key))return t.toggleKey(n.key),e.stopPropagation(),!0;if(!t.expandedKeys.has(n.key)&&n.parentKey&&t.collection.getItem(n.parentKey)?.type===`item`)return t.selectionManager.setFocusedKey(n.parentKey),e.stopPropagation(),!0}return!1}function vU(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function yU(e,t){let n=t.getChildren?.(e.key),r=n?Array.from(n):[],i=r.length>0?r[0]:null,a=[];for(;i;)a.push(i),i=i.nextKey==null?null:t.getItem(i.nextKey);return a}function bU(e){return e&&e.__esModule?e.default:e}function xU(e,t){let{key:n}=e,r=t.selectionManager,i=Xx(),a=!t.selectionManager.canSelectItem(n),o=t.selectionManager.isSelected(n);return{checkboxProps:{id:i,"aria-label":Ow(bU(sU),`@react-aria/grid`).format(`select`),isSelected:o,isDisabled:a,onChange:()=>r.toggleSelection(n)}}}function SU(e,t){let{key:n}=e,{checkboxProps:r}=xU(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${TH(t,n)}`}}}var CU=(0,x.createContext)(null),wU=(0,x.forwardRef)(function(e,t){return[e,t]=oS(e,t,CU),x.createElement(jT,{content:x.createElement(UT,e)},n=>x.createElement(TU,{props:e,collection:n,gridListRef:t}))});function TU({props:e,collection:t,gridListRef:n}){[e,n]=oS(e,n,jw);let{shouldUseVirtualFocus:r,filter:i,disallowTypeAhead:a,UNSTABLE_focusOnEntry:o,...s}=e,{dragAndDropHooks:c,keyboardNavigationBehavior:l=`arrow`,layout:u=`stack`,orientation:d=`vertical`}=e,{CollectionRoot:f,isVirtualized:p,layoutDelegate:m,dropTargetDelegate:h}=(0,x.useContext)(YT),g=$P(QP({...s,collection:t,children:void 0,layoutDelegate:m}),i),_=SP({usage:`search`,sensitivity:`base`}),{disabledBehavior:v,disabledKeys:y}=g.selectionManager,{direction:b}=mw(),S=(0,x.useMemo)(()=>new bP({collection:g.collection,collator:_,ref:n,disabledKeys:y,disabledBehavior:v,layoutDelegate:m,layout:u,orientation:d,direction:b}),[g.collection,n,u,d,y,v,m,_,b]),{gridProps:C}=mU({...s,keyboardDelegate:S,keyboardNavigationBehavior:u===`grid`?`tab`:l,isVirtualized:p,shouldSelectOnPressUp:e.shouldSelectOnPressUp,disallowTypeAhead:a,UNSTABLE_focusOnEntry:o},g,n),w=g.selectionManager,T=!!c?.useDraggableCollectionState,E=!!c?.useDroppableCollectionState;(0,x.useRef)(T),(0,x.useRef)(E),(0,x.useEffect)(()=>{},[T,E]);let D,O,k,A=!1,j=null,M=(0,x.useRef)(null);if(T&&c){D=c.useDraggableCollectionState({collection:g.collection,selectionManager:w,preview:c.renderDragPreview?M:void 0}),c.useDraggableCollection({},D,n);let e=c.DragPreview;j=c.renderDragPreview?x.createElement(e,{ref:M},c.renderDragPreview):null}if(E&&c){O=c.useDroppableCollectionState({collection:g.collection,selectionManager:w});let e=c.dropTargetDelegate||h||new c.ListDropTargetDelegate(t,n,{layout:u,direction:b,orientation:d});k=c.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:e},O,n),A=O.isDropTarget({type:`root`})}let{focusProps:ee,isFocused:N,isFocusVisible:P}=DE(),te=g.collection.size===0,F={isDropTarget:A,orientation:d,isEmpty:te,isFocused:N,isFocusVisible:P,layout:u,state:g},ne=iS({...e,children:void 0,defaultClassName:`react-aria-GridList`,values:F}),re=null;if(te&&e.renderEmptyState){let t=e.renderEmptyState(F);re=x.createElement(`div`,{role:`row`,"aria-rowindex":1,style:{display:`contents`}},x.createElement(`div`,{role:`gridcell`,style:{display:`contents`}},t))}let ie=K(e,{global:!0});return x.createElement(LN,null,x.createElement(U.div,{...H(ie,ne,C,ee,k?.collectionProps,null),ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":A||void 0,"data-empty":te||void 0,"data-focused":N||void 0,"data-focus-visible":P||void 0,"data-layout":u,"data-orientation":d},x.createElement(rS,{values:[[rF,g],[gN,{dragAndDropHooks:c,dragState:D,dropState:O}],[_N,{render:DU}]]},E&&x.createElement(AU,null),x.createElement(wN,null,x.createElement(f,{collection:g.collection,scrollRef:n,persistedKeys:bN(w,c,O),renderDropIndicator:yN(c,O)}))),re,j))}var EU=zT(Lw,function(e,t,n){let r=(0,x.useContext)(rF),{dragAndDropHooks:i,dragState:a,dropState:o}=(0,x.useContext)(gN),s=tS(t),{isVirtualized:c}=(0,x.useContext)(YT),l=a&&!(a.isDisabled||a.selectionManager.isDisabled(n.key)),{rowProps:u,gridCellProps:d,descriptionProps:f,...p}=gU({node:n,shouldSelectOnPressUp:!!a,isVirtualized:c,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},r,s),{hoverProps:m,isHovered:h}=NE({isDisabled:!p.allowsSelection&&!p.hasAction&&!l,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{isFocusVisible:g,focusProps:_}=DE(),{isFocusVisible:v,focusProps:y}=DE({within:!0}),{checkboxProps:b}=SU({key:n.key},r),S=r.selectionManager.disabledBehavior===`all`&&p.isDisabled?{isDisabled:!0}:{},C=null;a&&i&&(C=i.useDraggableItem({key:n.key,hasDragButton:!0},a));let w=null,T=(0,x.useRef)(null),{visuallyHiddenProps:E}=gA();o&&i&&(w=i.useDropIndicator({target:{type:`item`,key:n.key,dropPosition:`on`}},o,T));let D=a&&a.isDragging(n.key),O=iS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-GridListItem`,values:{...p,isHovered:h,isFocusVisible:g,isFocusVisibleWithin:v,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:D,isDropTarget:w?.isDropTarget,id:n.key,state:r}}),k=(0,x.useRef)(null);(0,x.useEffect)(()=>{a&&!k.current&&console.warn(`Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.`)},[]),(0,x.useEffect)(()=>{n.textValue},[n.textValue]);let A=K(e,{global:!0});return delete A.id,delete A.onClick,x.createElement(x.Fragment,null,w&&!w.isHidden&&x.createElement(`div`,{role:`row`,style:{position:`absolute`}},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{role:`button`,...E,...w?.dropIndicatorProps,ref:T}))),x.createElement(U.div,{...H(A,O,u,_,y,m,C?.dragProps),ref:s,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":g||void 0,"data-focus-visible-within":v||void 0,"data-pressed":p.isPressed||void 0,"data-allows-dragging":!!a||void 0,"data-dragging":D||void 0,"data-drop-target":w?.isDropTarget||void 0,"data-selection-mode":r.selectionManager.selectionMode===`none`?void 0:r.selectionManager.selectionMode},x.createElement(`div`,{...d,style:{display:`contents`}},x.createElement(rS,{values:[[qA,{slots:{[nS]:{},selection:b}}],[JA,{slots:{[nS]:{},selection:b}}],[pD,{slots:{[nS]:S,drag:{...C?.dragButtonProps,ref:k,style:{pointerEvents:`none`}}}}],[yD,{slots:{[nS]:{},description:f}}],[YT,KT],[rF,null],[jw,null],[Mw,null],[TN,{isSelected:p.isSelected}]]},O.children))))});function DU(e,t){t=tS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(gN),i=(0,x.useRef)(null),{dropIndicatorProps:a,isHidden:o,isDropTarget:s}=n.useDropIndicator(e,r,i);return o?null:x.createElement(kU,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,ref:t})}function OU(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,...a}=e,{visuallyHiddenProps:o}=gA(),s=iS({...a,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return x.createElement(U.div,{...s,role:`row`,ref:t,"data-drop-target":r||void 0},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{...o,role:`button`,...n,ref:i}),s.children))}var kU=(0,x.forwardRef)(OU);function AU(){let{dragAndDropHooks:e,dropState:t}=(0,x.useContext)(gN),n=(0,x.useRef)(null),{dropIndicatorProps:r}=e.useDropIndicator({target:{type:`root`}},t,n),i=t.isDropTarget({type:`root`}),{visuallyHiddenProps:a}=gA();return!i&&r[`aria-hidden`]?null:x.createElement(`div`,{role:`row`,"aria-hidden":r[`aria-hidden`],style:{position:`absolute`}},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{role:`button`,...a,...r,ref:n})))}zT(Iw,function(e,t,n){let r=(0,x.useContext)(rF),{isVirtualized:i}=(0,x.useContext)(YT),{isLoading:a,onLoadMore:o,scrollOffset:s,...c}=e,l=(0,x.useRef)(null);tF((0,x.useMemo)(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:l,scrollOffset:s}),[o,s,l,r?.collection]),l);let u=iS({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:BP(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:l,style:{position:`absolute`,height:1,width:1}})),a&&u.children&&x.createElement(U.div,{...u,...K(e,{global:!0}),role:`row`,ref:t},x.createElement(`div`,{"aria-colindex":i?1:void 0,role:`gridcell`},u.children)))});var jU=1500,MU=500,NU={},PU=0,FU=!1,IU=null,LU=null;function RU(e={}){let{delay:t=jU,closeDelay:n=MU}=e,{isOpen:r,open:i,close:a}=uL(e),[o,s]=(0,x.useState)(!1),c=(0,x.useMemo)(()=>`${++PU}`,[]),l=(0,x.useRef)(null),u=(0,x.useRef)(a),d=()=>{NU[c]=m},f=()=>{for(let e in NU)e!==c&&(NU[e](!0,!0),delete NU[e])},p=e=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),s(!!e),FU=!0,i(),IU&&=(clearTimeout(IU),null),LU&&=(clearTimeout(LU),null)},m=(e,t)=>{s(!!t),e||n<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||=setTimeout(()=>{l.current=null,u.current()},n),IU&&=(clearTimeout(IU),null),FU&&(LU&&clearTimeout(LU),LU=setTimeout(()=>{delete NU[c],LU=null,FU=!1},Math.max(MU,n)))},h=()=>{f(),d(),!r&&!FU?(IU&&clearTimeout(IU),IU=setTimeout(()=>{IU=null,FU=!0,p(!1)},t)):r||p(!0)};return(0,x.useEffect)(()=>{u.current=a},[a]),(0,x.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),NU[c]&&delete NU[c]},[c]),{isOpen:r,shouldSkipAnimation:o,open:e=>{!e&&t>0&&!l.current?h():p(FU)},close:m}}function zU(e,t,n){let{overlayProps:r,underlayProps:i}=$F({...e,isOpen:t.isOpen,onClose:t.close},n);pI({isDisabled:!t.isOpen,UNSTABLE_overrideFocus:e.UNSTABLE_overrideFocus}),lL();let{isEntering:a}=e;return(0,x.useEffect)(()=>{if(t.isOpen&&n.current)return a?yF(n.current):vF([n.current],{shouldUseInert:!0})},[t.isOpen,a,n]),{modalProps:H(r),underlayProps:i}}var BU=typeof document<`u`&&window.visualViewport;function VU(){let e=Wx(),t=(0,x.useRef)(null),[n,r]=(0,x.useState)(()=>e?{width:0,height:0}:HU());return(0,x.useEffect)(()=>{let e=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},n=()=>{BU&&BU.scale>1||e(HU())},i=n=>{BU&&BU.scale>1||ZC(G(n))&&(t.current=cI(t=>{t||e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(HU()),QS()&&eC()&&window.addEventListener(`blur`,i,!0),BU?BU.addEventListener(`resize`,n):window.addEventListener(`resize`,n),()=>{t.current?.(),QS()&&eC()&&window.removeEventListener(`blur`,i,!0),BU?BU.removeEventListener(`resize`,n):window.removeEventListener(`resize`,n)}},[]),n}function HU(){return{width:BU?Math.min(BU.width*BU.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:BU?BU.height*BU.scale:document.documentElement.clientHeight}}var UU=(0,x.createContext)(null),WU=(0,x.createContext)(null),GU=(0,x.forwardRef)(function(e,t){if((0,x.useContext)(WU))return x.createElement(XU,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,children:s,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d,...f}=e;return x.createElement(qU,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},x.createElement(XU,{...f,modalRef:t},s))});function KU(e,t){[e,t]=oS(e,t,UU);let n=(0,x.useContext)(ER),r=uL(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=tS(t),o=(0,x.useRef)(null),s=fL(a,i.isOpen,e.onExit),c=(0,x.useRef)(null),l=fL(o,i.isOpen,e=>c.current?.(e)),u=s||l||e.isExiting||!1,d=Wx();return!i.isOpen&&!u||d?null:x.createElement(JU,{...e,state:i,isExiting:u,overlayRef:a,modalRef:o,onExitRef:c})}var qU=(0,x.forwardRef)(KU);function JU({UNSTABLE_portalContainer:e,UNSTABLE_deferUntilEntered:t,...n}){let r=n.modalRef,{state:i}=n,[a,o]=(0,x.useState)(!1),s=dL(n.overlayRef,a,n.onEnter)||n.isEntering||!1,c=!!t&&(!a||s),{modalProps:l,underlayProps:u}=zU({...n,isEntering:c},i,r),d=(0,x.useContext)(TR),f=t?YU(d,{isEntering:c}):d,p=iS({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:s,isExiting:n.isExiting,state:i}}),m=VU(),h,g;if(typeof document<`u`){let e=oA(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;h=e.scrollWidth-t,g=e.scrollHeight-n}let _={...p.style,"--visual-viewport-width":m.width+`px`,"--visual-viewport-height":m.height+`px`,"--page-width":h===void 0?void 0:h+`px`,"--page-height":g===void 0?void 0:g+`px`};return Mx(()=>cI(()=>o(!0)),[]),x.createElement(cL,{isExiting:n.isExiting,portalContainer:e},x.createElement(U.div,{...H(K(n,{global:!0}),u),...p,style:_,ref:n.overlayRef,"data-entering":s||void 0,"data-exiting":n.isExiting||void 0},x.createElement(rS,{values:[[WU,{modalProps:l,modalRef:r,isExiting:n.isExiting,onExitRef:n.onExitRef,isOpen:a,isDismissable:n.isDismissable}],[ER,i],[TR,f]]},p.children)))}function YU(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}function XU(e){let{modalProps:t,modalRef:n,isExiting:r,onExitRef:i,isDismissable:a,isOpen:o}=(0,x.useContext)(WU),s=(0,x.useContext)(ER),c=tS((0,x.useMemo)(()=>$x(e.modalRef,n),[e.modalRef,n])),l=dL(c,o,e.onEnter),u=iS({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:l,isExiting:r,state:s}});return Mx(()=>{i&&(i.current=e.onExit)}),x.createElement(U.div,{...H(K(e,{global:!0}),t),...u,ref:c,"data-entering":l||void 0,"data-exiting":r||void 0},a&&x.createElement(nL,{onDismiss:s.close}),u.children)}var ZU=(0,x.createContext)(null),QU=(0,x.createContext)(null),$U=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,ZU);let{validationBehavior:n}=aS(MA)||{},r=e.validationBehavior??n??`native`,{locale:i}=mw(),a=MM({...e,locale:i,validationBehavior:r}),o=(0,x.useRef)(null),[s,c]=sS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:l,groupProps:u,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:m,errorMessageProps:h,...g}=kM({...cS(e),label:c,validationBehavior:r},a,o),_=iS({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:g.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:`react-aria-NumberField`}),v=K(e,{global:!0});return delete v.id,x.createElement(rS,{values:[[QU,a],[ej,u],[nj,{...d,ref:o}],[IE,{...l,ref:s}],[pD,{slots:{increment:f,decrement:p}}],[yD,{slots:{description:m,errorMessage:h}}],[vA,g]]},x.createElement(U.div,{...v,..._,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":g.isInvalid||void 0}),e.name&&x.createElement(`input`,{type:`hidden`,name:e.name,form:e.form,value:isNaN(a.numberValue)?``:a.numberValue,disabled:e.isDisabled||void 0}))}),eW={};eW={"Clear search":`مسح البحث`};var tW={};tW={"Clear search":`Изчистване на търсене`};var nW={};nW={"Clear search":`Vymazat hledání`};var rW={};rW={"Clear search":`Ryd søgning`};var iW={};iW={"Clear search":`Suche zurücksetzen`};var aW={};aW={"Clear search":`Απαλοιφή αναζήτησης`};var oW={};oW={"Clear search":`Clear search`};var sW={};sW={"Clear search":`Borrar búsqueda`};var cW={};cW={"Clear search":`Tühjenda otsing`};var lW={};lW={"Clear search":`Tyhjennä haku`};var uW={};uW={"Clear search":`Effacer la recherche`};var dW={};dW={"Clear search":`נקה חיפוש`};var fW={};fW={"Clear search":`Obriši pretragu`};var pW={};pW={"Clear search":`Keresés törlése`};var mW={};mW={"Clear search":`Cancella ricerca`};var hW={};hW={"Clear search":`検索をクリア`};var gW={};gW={"Clear search":`검색 지우기`};var _W={};_W={"Clear search":`Išvalyti iešką`};var vW={};vW={"Clear search":`Notīrīt meklēšanu`};var yW={};yW={"Clear search":`Tøm søk`};var bW={};bW={"Clear search":`Zoekactie wissen`};var xW={};xW={"Clear search":`Wyczyść zawartość wyszukiwania`};var SW={};SW={"Clear search":`Limpar pesquisa`};var CW={};CW={"Clear search":`Limpar pesquisa`};var wW={};wW={"Clear search":`Ştergeţi căutarea`};var TW={};TW={"Clear search":`Очистить поиск`};var EW={};EW={"Clear search":`Vymazať vyhľadávanie`};var DW={};DW={"Clear search":`Počisti iskanje`};var OW={};OW={"Clear search":`Obriši pretragu`};var kW={};kW={"Clear search":`Rensa sökning`};var AW={};AW={"Clear search":`Aramayı temizle`};var jW={};jW={"Clear search":`Очистити пошук`};var MW={};MW={"Clear search":`清除搜索`};var NW={};NW={"Clear search":`清除搜尋條件`};var PW={};PW={"ar-AE":eW,"bg-BG":tW,"cs-CZ":nW,"da-DK":rW,"de-DE":iW,"el-GR":aW,"en-US":oW,"es-ES":sW,"et-EE":cW,"fi-FI":lW,"fr-FR":uW,"he-IL":dW,"hr-HR":fW,"hu-HU":pW,"it-IT":mW,"ja-JP":hW,"ko-KR":gW,"lt-LT":_W,"lv-LV":vW,"nb-NO":yW,"nl-NL":bW,"pl-PL":xW,"pt-BR":SW,"pt-PT":CW,"ro-RO":wW,"ru-RU":TW,"sk-SK":EW,"sl-SI":DW,"sr-SP":OW,"sv-SE":kW,"tr-TR":AW,"uk-UA":jW,"zh-CN":MW,"zh-TW":NW};function FW(e){return e&&e.__esModule?e.default:e}function IW(e,t,n){let r=Ow(FW(PW),`@react-aria/searchfield`),{isDisabled:i,isReadOnly:a,onSubmit:o,onClear:s,type:c=`search`}=e,{keyboardProps:l}=hT({isDisabled:i||a,shortcuts:{Enter:()=>{if(o)o(t.value);else return!1},Escape:()=>{if(t.value===``&&(!n.current||n.current.value===``))return!1;t.setValue(``),s?.()}}}),u=()=>{t.setValue(``),s&&s()},d=()=>{n.current?.focus()},{labelProps:f,inputProps:p,descriptionProps:m,errorMessageProps:h,...g}=aj({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:c},n);return{labelProps:f,inputProps:H(l,{...p,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format(`Clear search`),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:u,onPressStart:d},descriptionProps:m,errorMessageProps:h,...g}}function LW(e){let[t,n]=Aw(RW(e.value),RW(e.defaultValue)||``,e.onChange);return{value:t,setValue:n}}function RW(e){if(e!=null)return e.toString()}var zW=(0,x.createContext)(null),BW=CT(function(e,t){[e,t]=oS(e,t,zW);let{validationBehavior:n}=aS(MA)||{},r=e.validationBehavior??n??`native`,i=(0,x.useRef)(null);[e,i]=oS(e,i,Mw);let[a,o]=sS(!e[`aria-label`]&&!e[`aria-labelledby`]),s=LW({...e,validationBehavior:r}),{labelProps:c,inputProps:l,clearButtonProps:u,descriptionProps:d,errorMessageProps:f,...p}=IW({...cS(e),label:o,validationBehavior:r},s,i),m=iS({...e,values:{isEmpty:s.value===``,isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:s},defaultClassName:`react-aria-SearchField`}),h=K(e,{global:!0});return delete h.id,x.createElement(U.div,{...h,...m,ref:t,slot:e.slot||void 0,"data-empty":s.value===``||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(rS,{values:[[IE,{...c,ref:a}],[nj,{...l,ref:i}],[pD,u],[yD,{slots:{description:d,errorMessage:f}}],[ej,{isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[vA,p]]},m.children))}),VW=new WeakMap;function HW(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=SP({usage:`search`,sensitivity:`base`}),u=(0,x.useMemo)(()=>r||new bP(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=rR({isDisabled:i,type:`listbox`},t,n),{keyboardProps:p}=hT({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:m}=hP({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:_}=t.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:S}=FA({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});t.selectionManager.selectionMode===`multiple`&&(m={});let C=K(e,{labelable:!0}),w=H(m,d,y),T=Xx();return VW.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...v,onClick:()=>{e.isDisabled||(n.current?.focus(),PC(`keyboard`))}},triggerProps:H(C,{...w,isDisabled:i,onKeyDown:jx(w.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[T,w[`aria-labelledby`],w[`aria-label`]&&!w[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{W(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[y[`aria-labelledby`],w[`aria-label`]&&!y[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `)},descriptionProps:b,errorMessageProps:S,isInvalid:h,validationErrors:g,validationDetails:_,hiddenSelectProps:{isDisabled:i,name:o,label:e.label,state:t,triggerRef:n,form:s}}}function UW(e,t,n){let r=VW.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=gA({style:{position:`fixed`,top:0,left:0}});IA(e.selectRef,t.defaultValue,t.setValue),LA({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,x.useCallback)(e=>{let t=G(e);t.multiple?d(Array.from(t.selectedOptions,e=>e.value)):d(e.currentTarget.value)},[d]);return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{style:{display:`none`}},selectProps:{tabIndex:-1,autoComplete:i,disabled:s,multiple:t.selectionManager.selectionMode===`multiple`,required:c===`native`&&l,name:a,form:o,value:t.value??``,onChange:f,onInput:f}}}function WW(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:o}=e,s=(0,x.useRef)(null),c=(0,x.useRef)(null),{containerProps:l,selectProps:u}=UW({...e,selectRef:t.collection.size<=300?s:c},t,n),d=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return x.createElement(`div`,{...l,"data-testid":`hidden-select-container`},x.createElement(`label`,null,r,x.createElement(`select`,{...u,ref:s},x.createElement(`option`,{value:``,label:`\xA0`},`\xA0`),[...t.collection.getKeys()].map(e=>{let n=t.collection.getItem(e);if(n&&n.type===`item`)return x.createElement(`option`,{key:n.key,value:n.key},n.textValue)}),t.collection.size===0&&i&&d.map((e,t)=>x.createElement(`option`,{key:t,value:e??``})))));if(i){let{validationBehavior:e}=VW.get(t)||{};d.length===0&&(d=[null]);let n=d.map((t,n)=>{let r={type:`hidden`,autoComplete:u.autoComplete,name:i,form:a,disabled:o,value:t??``};return e===`native`?x.createElement(`input`,{key:n,...r,ref:n===0?c:null,style:{display:`none`},type:`text`,required:n===0&&u.required,onChange:()=>{}}):x.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return x.createElement(x.Fragment,null,n)}return null}function GW(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=uL(e),[i,a]=(0,x.useState)(null),o=(0,x.useMemo)(()=>e.defaultValue===void 0?t===`single`?e.defaultSelectedKey??null:[]:e.defaultValue,[e.defaultValue,e.defaultSelectedKey,t]),[s,c]=Aw((0,x.useMemo)(()=>e.value===void 0?t===`single`?e.selectedKey:void 0:e.value,[e.value,e.selectedKey,t]),o,e.onChange),l=t===`single`&&Array.isArray(s)?s[0]:s,u=n=>{if(t===`single`){let t=Array.isArray(n)?n[0]??null:n;c(t),t!==l&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(n)?e=n:n!=null&&(e=[n]),c(e)}},d=QP({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,x.useMemo)(()=>KW(l),[l]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;u(t)}else u([...e]);n&&r.close(),m.commitValidation()}}}),f=d.selectionManager.firstSelectedKey,p=(0,x.useMemo)(()=>[...d.selectionManager.selectedKeys].map(e=>d.collection.getItem(e)).filter(e=>e!=null),[d.selectionManager.selectedKeys,d.collection]),m=EA({...e,value:Array.isArray(l)&&l.length===0?null:l}),[h,g]=(0,x.useState)(!1),[_]=(0,x.useState)(l);return{...m,...d,...r,value:l,defaultValue:o??_,setValue:u,selectedKey:f,setSelectedKey:u,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode===`single`?_:null),focusStrategy:i,open(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.open())},toggle(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.toggle())},isFocused:h,setFocused:g}}function KW(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function qW(e){return e&&e.__esModule?e.default:e}var JW=(0,x.createContext)(null),YW=(0,x.createContext)(null),XW=CT(function(e,t){[e,t]=oS(e,t,JW);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,o=(0,x.useMemo)(()=>typeof n==`function`?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,i,a]);return x.createElement(jT,{content:o},n=>x.createElement(QW,{props:e,collection:n,selectRef:t}))}),ZW=[IE,pD,yD];function QW({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=aS(MA)||{},i=e.validationBehavior??r??`native`,a=GW({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=DE({within:!0}),c=(0,x.useRef)(null),[l,u]=sS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...v}=HW({...cS(e),label:u,validationBehavior:i},a,c),y=(0,x.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:o,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,o,e.isDisabled,v.isInvalid,e.isRequired]),b=iS({...e,values:y,defaultClassName:`react-aria-Select`}),S=K(e,{global:!0});delete S.id;let C=(0,x.useRef)(null);return x.createElement(rS,{values:[[JW,e],[YW,a],[$W,p],[IE,{...d,ref:l,elementType:`span`}],[pD,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[ER,a],[mL,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:ZW}],[nF,{...m,ref:C}],[rF,a],[yD,{slots:{description:h,errorMessage:g}}],[vA,v]]},x.createElement(U.div,{...H(S,b,s),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":o||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0,"data-required":e.isRequired||void 0},b.children,x.createElement(WW,{..._,autoComplete:e.autoComplete})))}var $W=(0,x.createContext)(null),eG=CT(function(e,t){[e,t]=oS(e,t,$W);let n=(0,x.useContext)(YW),{placeholder:r}=aS(JW),i=n.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),a=AR(),o=(0,x.useMemo)(()=>n.selectedItems.map(e=>e?.textValue),[n.selectedItems]),s=n.selectionManager.selectionMode,c=(0,x.useMemo)(()=>s===`single`?o[0]??``:a.format(o),[s,a,o]),l=(0,x.useMemo)(()=>{if(s===`single`)return i[0];let e=a.formatToParts(o);if(e.length===0)return null;let t=0;return e.map(e=>e.type===`element`?x.createElement(x.Fragment,{key:t},i[t++]):e.value)},[s,a,o,i]),u=Ow(qW(hN),`react-aria-components`),d=iS({...e,defaultChildren:l??r??u.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,x.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:c,isPlaceholder:n.selectedItems.length===0,state:n}}),f=K(e,{global:!0});return x.createElement(U.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},x.createElement(yD.Provider,{value:void 0},d.children))});function tG(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=UA(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}for(var nG=(0,x.createContext)(null),rG=(0,x.createContext)(null),iG=(0,x.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=oS(r,t,nG);let i=tS((0,x.useMemo)(()=>$x(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),a=GA(e),o=tG({...cS(e),children:typeof e.children==`function`||e.children},a,i);return x.createElement(rS,{values:[[rG,a],[aG,{...o,inputRef:i,defaultClassName:`react-aria-Switch`}]]},x.createElement(oG,{...e,ref:t}))}),aG=(0,x.createContext)(null),oG=(0,x.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isRequired:d}=(0,x.useContext)(aG),{isFocused:f,isFocusVisible:p,focusProps:m}=DE(),h=a||o,g=(0,x.useContext)(rG),{hoverProps:_,isHovered:v}=NE({...e,isDisabled:h}),y=iS({...e,defaultClassName:u,values:{isSelected:i,isPressed:s,isHovered:v,isFocused:f,isFocusVisible:p,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:d||!1,state:g}}),b=K(e,{global:!0});return delete b.id,delete b.onClick,x.createElement(U.label,{...H(b,n,_,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":d||void 0},x.createElement(_A,{elementType:`span`},x.createElement(`input`,{...H(r,m),ref:l})),y.children)}),sG=10,cG=5,lG=class{setup(e,t,n){this.delegate=e,this.state=t,this.direction=n}getDropTargetFromPoint(e,t,n){let r=this.delegate.getDropTargetFromPoint(e,t,n);return!r||r.type===`root`?r:this.resolveDropTarget(r,e,t,n)}resolveDropTarget(e,t,n,r){let i=this.pointerTracking,a=n-i.lastY,o=t-i.lastX,s=i.yDirection,c=i.xDirection;if(Math.abs(a)>cG&&(s=a>0?`down`:`up`,i.yDirection=s,i.lastY=n),Math.abs(o)>sG&&(c=o>0?`right`:`left`,i.xDirection=c,i.lastX=t),e.dropPosition===`before`){let t=this.state.collection.getKeyBefore(e.key);for(;t!=null;){let e=this.state.collection.getItem(t);if(e?.type===`item`)break;t=e?.parentKey??null}if(t!=null){let n={type:`item`,key:t,dropPosition:`after`};r(n)&&(e=n)}}let l=this.getPotentialTargets(e,r);if(l.length===0)return{type:`root`};let u;return l.length>1?u=this.selectTarget(l,e,t,n,s,c):(u=l[0],i.boundaryContext=null),u}getPotentialTargets(e,t){if(e.dropPosition===`on`)return[e];let n=e,r=this.state.collection,i=r.getItem(n.key);for(;i&&i?.type!==`item`&&i.nextKey!=null;)n.key=i.nextKey,i=r.getItem(i.nextKey);let a=[n];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&r.getChildren&&n.dropPosition===`after`){let e=i.firstChildKey==null?null:r.getItem(i.firstChildKey);for(;e&&e.type!==`item`;)e=e.nextKey==null?null:r.getItem(e.nextKey);if(e?.type===`item`){let n={type:`item`,key:e.key,dropPosition:`before`};return t(n)?[n]:[]}}if(i?.nextKey!=null)return[e];let o=i?.parentKey,s=[];for(;o!=null;){let e=r.getItem(o),n=e?.nextKey==null?null:r.getItem(e.nextKey);if(!n||n.parentKey!==o){if(e?.type===`item`){let e={type:`item`,key:o,dropPosition:`after`};t(e)&&s.push(e)}if(n)break}o=e?.parentKey}if(s.length>0&&a.push(...s),a.length===1){let e=r.getKeyAfter(n.key),a=e==null?null:r.getItem(e);if(e!=null&&a&&i&&a.level!=null&&i.level!=null&&a.level>i.level){let n={type:`item`,key:e,dropPosition:`before`};if(t(n))return[n]}}return a.filter(t)}selectTarget(e,t,n,r,i,a){if(e.length<2)return e[0];let o=this.pointerTracking,s=this.state.collection.getItem(t.key)?.parentKey;if(s==null)return e[0];o.boundaryContext&&o.boundaryContext.parentKey===s||(o.boundaryContext={parentKey:s,preferredTargetIndex:o.yDirection===`up`?e.length-1:0,lastSwitchY:r,lastSwitchX:n});let c=o.boundaryContext,l=Math.abs(n-c.lastSwitchX);if(Math.abs(r-c.lastSwitchY)>cG&&i){let t=c.preferredTargetIndex||0;i===`down`&&t===0?c.preferredTargetIndex=e.length-1:i===`up`&&t===e.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(l>sG&&a){let t=c.preferredTargetIndex||0;a===`left`?this.direction===`ltr`?t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n):t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):a===`right`&&(this.direction===`ltr`?t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n)),o.yDirection=null}return e[Math.max(0,Math.min(c.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction=`ltr`,this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}},uG=class{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=r=>{let i=this.keyMap.get(r.key);e.visitNode&&(r=e.visitNode(r)),this.keyMap.set(r.key,r);let a=new Set,o=null,s=!1;if(r.type===`item`){for(let e of r.childNodes)if(e.props?.colSpan!==void 0){s=!0;break}}for(let e of r.childNodes)e.type===`cell`&&s&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=o?(o.colIndex??o.index)+(o.colSpan??1):e.index),e.type===`cell`&&e.parentKey==null&&(e.parentKey=r.key),a.add(e.key),o?(o.nextKey=e.key,e.prevKey=o.key):e.prevKey=null,t(e),o=e;if(o&&(o.nextKey=null),i)for(let e of i.childNodes)a.has(e.key)||n(e)},n=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&n(t)},r=null;for(let[n,i]of e.items.entries()){let e={...i,level:i.level??0,key:i.key??`row-`+n,type:i.type??`row`,value:i.value??null,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:i.rendered,textValue:i.textValue??``,index:i.index??n};r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,this.rows.push(e),t(e),r=e}r&&(r.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},dG=`row-header-column-`+Math.random().toString(36).slice(2),fG=`row-header-column-`+Math.random().toString(36).slice(2);dG===fG;)fG=`row-header-column-`+Math.random().toString(36).slice(2);function pG(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let i of t){let t=i.parentKey,a=[i];for(;t!=null;){let n=e.get(t);if(!n)break;if(r.has(n)){n.colSpan??=0,n.colSpan++,n.colspan=n.colSpan;let{column:e,index:t}=r.get(n);if(t>a.length)break;for(let n=t;n<a.length;n++)e.splice(n,0,null);for(let t=a.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colSpan=1,n.colspan=1,a.push(n),r.set(n,{column:a,index:a.length-1});t=n.parentKey}n.push(a),i.index=n.length-1}let i=Math.max(...n.map(e=>e.length)),a=Array(i).fill(0).map(()=>[]),o=0;for(let e of n){let t=i-1;for(let n of e){if(n){let e=a[t],r=e.reduce((e,t)=>e+(t.colSpan??1),0);if(r<o){let i={type:`placeholder`,key:`placeholder-`+n.key,colspan:o-r,colSpan:o-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:``};e.length>0&&(e[e.length-1].nextKey=i.key,i.prevKey=e[e.length-1].key),e.push(i)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=o,e.push(n)}t--}o++}let s=0;for(let e of a){let n=e.reduce((e,t)=>e+(t.colSpan??1),0);if(n<t.length){let r={type:`placeholder`,key:`placeholder-`+e[e.length-1].key,colSpan:t.length-n,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:``,prevKey:e[e.length-1].key};e.push(r)}s++}return a.map((e,t)=>({type:`headerrow`,key:`headerrow-`+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:``}))}var mG=class extends uG{constructor(e,t,n){let r=new Set,i=null,a=[];if(n?.showSelectionCheckboxes){let e={type:`column`,key:dG,value:null,textValue:``,level:0,index:+!!n?.showDragButtons,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(e)}if(n?.showDragButtons){let e={type:`column`,key:fG,value:null,textValue:``,level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(e)}let o=[],s=new Map,c=e=>{switch(e.type){case`body`:i=e;break;case`column`:s.set(e.key,e),e.hasChildNodes||(a.push(e),e.props.isRowHeader&&r.add(e.key));break;case`item`:o.push(e);return}for(let t of e.childNodes)c(t)};for(let t of e)c(t);let l=pG(s,a);if(l.forEach((e,t)=>o.splice(t,0,e)),super({columnCount:a.length,items:o,visitNode:e=>(e.column=a[e.index],e)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=r,this.body=i,this.headerRows=l,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0){let e=this.columns.find(e=>!e.props?.isDragButtonCell&&!e.props?.isSelectionCell);e&&this.rowHeaderColumnKeys.add(e.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return jP(this.body.childNodes)?.key??null}getLastKey(){return NP(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let t=this.getItem(e);return t?.type===`item`?[...t.childNodes].filter(e=>e.type===`cell`):super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys;if(n){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(n.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===n.size)break}return e.join(` `)}return``}};function hG(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||WP(e),i=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(e,r)=>{if(n===`cell`&&e!=null){let n=t.getItem(e);if(n?.type===`item`){let i=AP(n,t);e=r===`last`?NP(i)?.key??null:jP(i)?.key??null}}a(e,r)};let o=(0,x.useMemo)(()=>new KP(t,r),[t,r]),s=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(r.focusedKey!=null&&s.current&&!t.getItem(r.focusedKey)){let e=s.current.getItem(r.focusedKey),n=e?.parentKey!=null&&(e.type===`cell`||e.type===`rowheader`||e.type===`column`)?s.current.getItem(e.parentKey):e;if(!n){r.setFocusedKey(null);return}let i=s.current.rows,a=t.rows,c=i.length-a.length,l=Math.min(c>1?Math.max(n.index-c+1,0):n.index,a.length-1),u=null;for(let e=Math.max(0,l);e<a.length;e++)if(!o.isDisabled(a[e].key)&&a[e].type!==`headerrow`){u=a[e];break}if(u===null){for(let e=l-1;e>=0;e--)if(!o.isDisabled(a[e].key)&&a[e].type!==`headerrow`){u=a[e];break}}if(u){let i=u.hasChildNodes?[...AP(u,t)]:[],a=u.hasChildNodes&&n!==e&&e&&e.index<i.length?i[e.index].key:u.key;r.setFocusedKey(a)}else r.setFocusedKey(null)}s.current=t},[t,o,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:o}}var gG={ascending:`descending`,descending:`ascending`};function _G(e){let[t,n]=(0,x.useState)(!1),{selectionMode:r=`none`,showSelectionCheckboxes:i,showDragButtons:a,treeColumn:o=null}=e,s=(0,x.useMemo)(()=>({showSelectionCheckboxes:i&&r!==`none`,showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),c=ZP(e,(0,x.useCallback)(e=>new mG(e,null,s),[s]),s),{disabledKeys:l,selectionManager:u}=hG({...e,collection:c,disabledBehavior:e.disabledBehavior||`selection`}),[d,f]=Aw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:c,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:c.size===0||t,setKeyboardNavigationDisabled:n,sort(t,n){e.onSortChange?.({column:t,direction:n??(e.sortDescriptor?.column===t?gG[e.sortDescriptor.direction]:`ascending`)})},expandedKeys:d,toggleKey(e){f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},treeColumn:o}}function vG(e,t){let n=(0,x.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}var yG=class{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||`all`,this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw Error(`Either a layout or a ref must be specified.`);this.layoutDelegate=e.layoutDelegate||(e.layout?new bG(e.layout):new yP(e.ref)),this.focusMode=e.focusMode??`row`}isCell(e){return e.type===`cell`}isRow(e){return e.type===`row`||e.type===`item`}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findPreviousKey(e,t,n=!1){let r=e==null?this.collection.getLastKey():this.collection.getKeyBefore(e);for(;r!=null;){let e=this.collection.getItem(r);if(!e)return null;if((n||!this.isDisabled(e))&&(!t||t(e)))return r;r=this.collection.getKeyBefore(r)}return null}findNextKey(e,t,n=!1){let r=e==null?this.collection.getFirstKey():this.collection.getKeyAfter(e);for(;r!=null;){let e=this.collection.getItem(r);if(!e)return null;if((n||!this.isDisabled(e))&&(!t||t(e)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let n=this.collection.getItem(e);if(!n)return null;let r=0;for(let e of AP(n,this.collection)){if(e.colSpan&&e.colSpan+r>t||(e.colSpan&&(r=r+e.colSpan-1),r===t))return e.key??null;r++}return null}getKeyBelow(e,t){let n=e,r=this.collection.getItem(n);if(!r||(this.isCell(r)&&(n=r.parentKey??null),n==null))return null;if(n=this.findNextKey(n,e=>e.type===`item`,t?.includeDisabled),n!=null){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,e)}if(this.focusMode===`row`)return n}return null}getKeyAbove(e,t){let n=e,r=this.collection.getItem(n);if(!r||(this.isCell(r)&&(n=r.parentKey??null),n==null))return null;if(n=this.findPreviousKey(n,e=>e.type===`item`,t?.includeDisabled),n!=null){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,e)}if(this.focusMode===`row`)return n}return null}getKeyRightOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=AP(t,this.collection);return(this.direction===`rtl`?NP(e)?.key:jP(e)?.key)??null}if(this.isCell(t)&&t.parentKey!=null){let n=this.collection.getItem(t.parentKey);if(!n)return null;let r=AP(n,this.collection),i=(this.direction===`rtl`?MP(r,t.index-1):MP(r,t.index+1))??null;return i?i.key??null:this.focusMode===`row`?t.parentKey??null:(this.direction===`rtl`?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=AP(t,this.collection);return(this.direction===`rtl`?jP(e)?.key:NP(e)?.key)??null}if(this.isCell(t)&&t.parentKey!=null){let n=this.collection.getItem(t.parentKey);if(!n)return null;let r=AP(n,this.collection),i=(this.direction===`rtl`?MP(r,t.index+1):MP(r,t.index-1))??null;return i?i.key??null:this.focusMode===`row`?t.parentKey??null:(this.direction===`rtl`?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){let n=e??null,r;if(n!=null){if(r=this.collection.getItem(n),!r)return null;if(this.isCell(r)&&!t&&r.parentKey!=null){let e=this.collection.getItem(r.parentKey);return e?jP(AP(e,this.collection))?.key??null:null}}if(n=this.findNextKey(void 0,e=>e.type===`item`),n!=null&&(r&&this.isCell(r)&&t||this.focusMode===`cell`)){let e=this.collection.getItem(n);if(!e)return null;n=jP(AP(e,this.collection))?.key??null}return n}getLastKey(e,t){let n=e??null,r;if(n!=null){if(r=this.collection.getItem(n),!r)return null;if(this.isCell(r)&&!t&&r.parentKey!=null){let e=this.collection.getItem(r.parentKey);return e?NP(AP(e,this.collection))?.key??null:null}}if(n=this.findPreviousKey(void 0,e=>e.type===`item`),n!=null&&(r&&this.isCell(r)&&t||this.focusMode===`cell`)){let e=this.collection.getItem(n);if(!e)return null;n=NP(AP(e,this.collection))?.key??null}return n}getKeyPageAbove(e){let t=e,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>r&&t!=null&&(t=this.getKeyAbove(t)??null,t!=null);)n=this.layoutDelegate.getItemRect(t);return t}getKeyPageBelow(e){let t=e,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=this.layoutDelegate.getVisibleRect().height,i=Math.min(this.layoutDelegate.getContentSize().height,n.y+r);for(;n&&n.y+n.height<i;){let e=this.getKeyBelow(t);if(e==null)break;n=this.layoutDelegate.getItemRect(e),t=e}return t}getKeyForSearch(e,t){let n=t??null;if(!this.collator)return null;let r=this.collection;if(n=t??this.getFirstKey(),n==null)return null;let i=r.getItem(n);if(!i)return null;i.type===`cell`&&(n=i.parentKey??null);let a=!1;for(;n!=null;){let t=r.getItem(n);if(!t)return null;if(t.textValue){let n=t.textValue.slice(0,e.length);if(this.collator.compare(n,e)===0)return this.isRow(t)&&this.focusMode===`cell`?jP(AP(t,this.collection))?.key??null:t.key}n=this.findNextKey(n,e=>e.type===`item`),n==null&&!a&&(n=this.getFirstKey(),a=!0)}return null}},bG=class{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}},xG=new WeakMap;function SG(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:o,scrollRef:s,getRowText:c,onRowAction:l,onCellAction:u,escapeKeyBehavior:d=`clearSelection`,shouldSelectOnPressUp:f,keyboardNavigationBehavior:p=`arrow`}=e,{selectionManager:m}=t;!e[`aria-label`]&&!e[`aria-labelledby`]&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let h=SP({usage:`search`,sensitivity:`base`}),{direction:g}=mw(),_=t.selectionManager.disabledBehavior,v=(0,x.useMemo)(()=>a||new yG({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:_,ref:n,direction:g,collator:h,focusMode:o}),[a,t.collection,t.disabledKeys,_,n,g,h,o]),{collectionProps:y}=vP({ref:n,selectionManager:m,keyboardDelegate:v,isVirtualized:r,scrollRef:s,disallowTypeAhead:i,escapeKeyBehavior:d}),b=Xx(e.id);xG.set(t,{keyboardDelegate:v,actions:{onRowAction:l,onCellAction:u},shouldSelectOnPressUp:f,keyboardNavigationBehavior:p});let S=pU({selectionManager:m,hasItemActions:!!(l||u)}),C=K(e,{labelable:!0}),w=(0,x.useCallback)(e=>{m.isFocused?W(e.currentTarget,G(e))||m.setFocused(!1):W(e.currentTarget,G(e))&&m.setFocused(!0)},[m]),T=(0,x.useMemo)(()=>({onBlur:y.onBlur,onFocus:w}),[w,y.onBlur]),E=dU(n,{isDisabled:t.collection.size!==0}),D=H(C,{role:`grid`,id:b,"aria-multiselectable":m.selectionMode===`multiple`?`true`:void 0},t.isKeyboardNavigationDisabled?T:y,t.collection.size===0&&{tabIndex:E?-1:0}||void 0,S);return r&&(D[`aria-rowcount`]=t.collection.size,D[`aria-colcount`]=t.collection.columnCount),lU({getRowText:c},t),{gridProps:D}}var CG=new WeakMap;function wG(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function TG(e,t){let n=CG.get(e);if(!n)throw Error(`Unknown grid`);return`${n}-${wG(t)}`}function EG(e,t,n){let r=CG.get(e);if(!r)throw Error(`Unknown grid`);return`${r}-${wG(t)}-${wG(n)}`}function DG(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>EG(e,t,n)).join(` `)}var OG={};OG={ascending:`تصاعدي`,ascendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,collapse:`طي`,columnSize:e=>`${e.value} \u{628}\u{627}\u{644}\u{628}\u{643}\u{633}\u{644}`,descending:`تنازلي`,descendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{646}\u{627}\u{632}\u{644}\u{64A}`,expand:`تمديد`,resizerDescription:`اضغط على مفتاح Enter لبدء تغيير الحجم`,select:`تحديد`,selectAll:`تحديد الكل`,sortable:`عمود قابل للترتيب`};var kG={};kG={ascending:`възходящ`,ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,collapse:`Свиване`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}\u{435}\u{43B}\u{430}`,descending:`низходящ`,descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432} \u{43D}\u{438}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,expand:`Разширяване`,resizerDescription:`Натиснете „Enter“, за да започнете да преоразмерявате`,select:`Изберете`,selectAll:`Изберете всичко`,sortable:`сортираща колона`};var AG={};AG={ascending:`vzestupně`,ascendingSort:e=>`\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,collapse:`Sbalit`,columnSize:e=>`${e.value} pixel\u{16F}`,descending:`sestupně`,descendingSort:e=>`\u{159}azeno sestupn\u{11B} podle sloupce ${e.columnName}`,expand:`Roztáhnout`,resizerDescription:`Stisknutím klávesy Enter začnete měnit velikost`,select:`Vybrat`,selectAll:`Vybrat vše`,sortable:`sloupec s možností řazení`};var jG={};jG={ascending:`stigende`,ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,collapse:`Skjul`,columnSize:e=>`${e.value} pixels`,descending:`faldende`,descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende r\xe6kkef\xf8lge`,expand:`Udvid`,resizerDescription:`Tryk på Enter for at ændre størrelse`,select:`Vælg`,selectAll:`Vælg alle`,sortable:`sorterbar kolonne`};var MG={};MG={ascending:`aufsteigend`,ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:`Reduzieren`,columnSize:e=>`${e.value} Pixel`,descending:`absteigend`,descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:`Erweitern`,resizerDescription:`Eingabetaste zum Starten der Größenänderung drücken`,select:`Auswählen`,selectAll:`Alles auswählen`,sortable:`sortierbare Spalte`};var NG={};NG={ascending:`αύξουσα`,ascendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,collapse:`Σύμπτυξη`,columnSize:e=>`${e.value} pixel`,descending:`φθίνουσα`,descendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3C6}\u{3B8}\u{3AF}\u{3BD}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,expand:`Ανάπτυξη`,resizerDescription:`Πατήστε Enter για έναρξη της αλλαγής μεγέθους`,select:`Επιλογή`,selectAll:`Επιλογή όλων`,sortable:`Στήλη διαλογής`};var PG={};PG={select:`Select`,selectAll:`Select All`,sortable:`sortable column`,ascending:`ascending`,descending:`descending`,ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:`Press Enter to start resizing`,expand:`Expand`,collapse:`Collapse`};var FG={};FG={ascending:`ascendente`,ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:`Contraer`,columnSize:e=>`${e.value} p\xedxeles`,descending:`descendente`,descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:`Ampliar`,resizerDescription:`Pulse Intro para empezar a redimensionar`,select:`Seleccionar`,selectAll:`Seleccionar todos`,sortable:`columna ordenable`};var IG={};IG={ascending:`tõusev järjestus`,ascendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,collapse:`Ahenda`,columnSize:e=>`${e.value} pikslit`,descending:`laskuv järjestus`,descendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} laskuvas j\xe4rjestuses`,expand:`Laienda`,resizerDescription:`Suuruse muutmise alustamiseks vajutage klahvi Enter`,select:`Vali`,selectAll:`Vali kõik`,sortable:`sorditav veerg`};var LG={};LG={ascending:`nouseva`,ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,collapse:`Pienennä`,columnSize:e=>`${e.value} pikseli\xe4`,descending:`laskeva`,descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa j\xe4rjestyksess\xe4`,expand:`Laajenna`,resizerDescription:`Aloita koon muutos painamalla Enter-näppäintä`,select:`Valitse`,selectAll:`Valitse kaikki`,sortable:`lajiteltava sarake`};var RG={};RG={ascending:`croissant`,ascendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,collapse:`Réduire`,columnSize:e=>`${e.value}\xa0pixels`,descending:`décroissant`,descendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre d\xe9croissant`,expand:`Développer`,resizerDescription:`Appuyez sur Entrée pour commencer le redimensionnement.`,select:`Sélectionner`,selectAll:`Sélectionner tout`,sortable:`colonne triable`};var zG={};zG={ascending:`עולה`,ascendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,collapse:`כווץ`,columnSize:e=>`${e.value} \u{5E4}\u{5D9}\u{5E7}\u{5E1}\u{5DC}\u{5D9}\u{5DD}`,descending:`יורד`,descendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5D9}\u{5D5}\u{5E8}\u{5D3}`,expand:`הרחב`,resizerDescription:`הקש Enter כדי לשנות את הגודל`,select:`בחר`,selectAll:`בחר הכול`,sortable:`עמודה שניתן למיין`};var BG={};BG={ascending:`rastući`,ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,collapse:`Sažmi`,columnSize:e=>`${e.value} piksela`,descending:`padajući`,descendingSort:e=>`razvrstano po stupcima ${e.columnName} padaju\u{107}im redoslijedom`,expand:`Proširi`,resizerDescription:`Pritisnite Enter da biste započeli promenu veličine`,select:`Odaberite`,selectAll:`Odaberite sve`,sortable:`stupac koji se može razvrstati`};var VG={};VG={ascending:`növekvő`,ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,collapse:`Összecsukás`,columnSize:e=>`${e.value} k\xe9ppont`,descending:`csökkenő`,descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, cs\xf6kken\u{151} sorrendben`,expand:`Kibontás`,resizerDescription:`Nyomja le az Enter billentyűt az átméretezés megkezdéséhez`,select:`Kijelölés`,selectAll:`Összes kijelölése`,sortable:`rendezendő oszlop`};var HG={};HG={ascending:`crescente`,ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:`Comprimi`,columnSize:e=>`${e.value} pixel`,descending:`decrescente`,descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:`Espandi`,resizerDescription:`Premi Invio per iniziare a ridimensionare`,select:`Seleziona`,selectAll:`Seleziona tutto`,sortable:`colonna ordinabile`};var UG={};UG={ascending:`昇順`,ascendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,collapse:`折りたたむ`,columnSize:e=>`${e.value} \u{30D4}\u{30AF}\u{30BB}\u{30EB}`,descending:`降順`,descendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{964D}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,expand:`展開`,resizerDescription:`Enter キーを押してサイズ変更を開始`,select:`選択`,selectAll:`すべて選択`,sortable:`並べ替え可能な列`};var WG={};WG={ascending:`오름차순`,ascendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,collapse:`접기`,columnSize:e=>`${e.value} \u{D53D}\u{C140}`,descending:`내림차순`,descendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{B0B4}\u{B9BC}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,expand:`펼치기`,resizerDescription:`크기 조정을 시작하려면 Enter를 누르세요.`,select:`선택`,selectAll:`모두 선택`,sortable:`정렬 가능한 열`};var GG={};GG={ascending:`didėjančia tvarka`,ascendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,collapse:`Sutraukti`,columnSize:e=>`${e.value} piks.`,descending:`mažėjančia tvarka`,descendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,expand:`Išskleisti`,resizerDescription:`Paspauskite „Enter“, kad pradėtumėte keisti dydį`,select:`Pasirinkti`,selectAll:`Pasirinkti viską`,sortable:`rikiuojamas stulpelis`};var KG={};KG={ascending:`augošā secībā`,ascendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,collapse:`Sakļaut`,columnSize:e=>`${e.value} pikse\u{13C}i`,descending:`dilstošā secībā`,descendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,expand:`Izvērst`,resizerDescription:`Nospiediet Enter, lai sāktu izmēru mainīšanu`,select:`Atlasīt`,selectAll:`Atlasīt visu`,sortable:`kārtojamā kolonna`};var qG={};qG={ascending:`stigende`,ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,collapse:`Skjul`,columnSize:e=>`${e.value} piksler`,descending:`synkende`,descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkef\xf8lge`,expand:`Utvid`,resizerDescription:`Trykk på Enter for å starte størrelsesendring`,select:`Velg`,selectAll:`Velg alle`,sortable:`kolonne som kan sorteres`};var JG={};JG={ascending:`oplopend`,ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:`Samenvouwen`,columnSize:e=>`${e.value} pixels`,descending:`aflopend`,descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:`Uitvouwen`,resizerDescription:`Druk op Enter om het formaat te wijzigen`,select:`Selecteren`,selectAll:`Alles selecteren`,sortable:`sorteerbare kolom`};var YG={};YG={ascending:`rosnąco`,ascendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,collapse:`Zwiń`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:`malejąco`,descendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku malej\u{105}cym`,expand:`Rozwiń`,resizerDescription:`Naciśnij Enter, aby rozpocząć zmienianie rozmiaru`,select:`Zaznacz`,selectAll:`Zaznacz wszystko`,sortable:`kolumna z możliwością sortowania`};var XG={};XG={ascending:`crescente`,ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:`Recolher`,columnSize:e=>`${e.value} pixels`,descending:`decrescente`,descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:`Expandir`,resizerDescription:`Pressione Enter para começar a redimensionar`,select:`Selecionar`,selectAll:`Selecionar tudo`,sortable:`coluna classificável`};var ZG={};ZG={ascending:`ascendente`,ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:`Colapsar`,columnSize:e=>`${e.value} pixels`,descending:`descendente`,descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:`Expandir`,resizerDescription:`Prima Enter para iniciar o redimensionamento`,select:`Selecionar`,selectAll:`Selecionar tudo`,sortable:`Coluna ordenável`};var QG={};QG={ascending:`crescătoare`,ascendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,collapse:`Restrângeți`,columnSize:e=>`${e.value} pixeli`,descending:`descrescătoare`,descendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine descresc\u{103}toare`,expand:`Extindeți`,resizerDescription:`Apăsați pe Enter pentru a începe redimensionarea`,select:`Selectare`,selectAll:`Selectare totală`,sortable:`coloană sortabilă`};var $G={};$G={ascending:`возрастание`,ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,collapse:`Свернуть`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}.`,descending:`убывание`,descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{443}\u{431}\u{44B}\u{432}\u{430}\u{43D}\u{438}\u{44F}`,expand:`Развернуть`,resizerDescription:`Нажмите клавишу Enter для начала изменения размеров`,select:`Выбрать`,selectAll:`Выбрать все`,sortable:`сортируемый столбец`};var eK={};eK={ascending:`vzostupne`,ascendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,collapse:`Zbaliť`,columnSize:e=>`Po\u{10D}et pixelov: ${e.value}`,descending:`zostupne`,descendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,expand:`Rozbaliť`,resizerDescription:`Stlačením klávesu Enter začnete zmenu veľkosti`,select:`Vybrať`,selectAll:`Vybrať všetko`,sortable:`zoraditeľný stĺpec`};var tK={};tK={ascending:`naraščajoče`,ascendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,collapse:`Strni`,columnSize:e=>`${e.value} slikovnih pik`,descending:`padajoče`,descendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v padajo\u{10D}em vrstnem redu`,expand:`Razširi`,resizerDescription:`Pritisnite tipko Enter da začnete spreminjati velikost`,select:`Izberite`,selectAll:`Izberite vse`,sortable:`razvrstljivi stolpec`};var nK={};nK={ascending:`rastući`,ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,collapse:`Skupi`,columnSize:e=>`${e.value} piksela`,descending:`padajući`,descendingSort:e=>`sortirano po kolonama ${e.columnName} padaju\u{107}im redosledom`,expand:`Proširi`,resizerDescription:`Pritisnite Enter da biste započeli promenu veličine`,select:`Izaberite`,selectAll:`Izaberite sve`,sortable:`kolona koja se može sortirati`};var rK={};rK={ascending:`stigande`,ascendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,collapse:`Dölj`,columnSize:e=>`${e.value} pixlar`,descending:`fallande`,descendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i fallande ordning`,expand:`Expandera`,resizerDescription:`Tryck på Retur för att börja ändra storlek`,select:`Markera`,selectAll:`Markera allt`,sortable:`sorterbar kolumn`};var iK={};iK={ascending:`artan sırada`,ascendingSort:e=>`${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,collapse:`Daralt`,columnSize:e=>`${e.value} piksel`,descending:`azalan sırada`,descendingSort:e=>`${e.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,expand:`Genişlet`,resizerDescription:`Yeniden boyutlandırmak için Enter'a basın`,select:`Seç`,selectAll:`Tümünü Seç`,sortable:`Sıralanabilir sütun`};var aK={};aK={ascending:`висхідний`,ascendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,collapse:`Згорнути`,columnSize:e=>`${e.value} \u{43F}\u{456}\u{43A}\u{441}.`,descending:`низхідний`,descendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,expand:`Розгорнути`,resizerDescription:`Натисніть Enter, щоб почати зміну розміру`,select:`Вибрати`,selectAll:`Вибрати все`,sortable:`сортувальний стовпець`};var oK={};oK={ascending:`升序`,ascendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,collapse:`折叠`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:`降序`,descendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{964D}\u{5E8F}\u{6392}\u{5E8F}`,expand:`扩展`,resizerDescription:`按 Enter 开始调整大小。`,select:`选择`,selectAll:`全选`,sortable:`可排序的列`};var sK={};sK={ascending:`遞增`,ascendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,collapse:`收合`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:`遞減`,descendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{6E1B}\u{6392}\u{5E8F}`,expand:`展開`,resizerDescription:`按 Enter 鍵以開始調整大小`,select:`選取`,selectAll:`全選`,sortable:`可排序的欄`};var cK={};cK={"ar-AE":OG,"bg-BG":kG,"cs-CZ":AG,"da-DK":jG,"de-DE":MG,"el-GR":NG,"en-US":PG,"es-ES":FG,"et-EE":IG,"fi-FI":LG,"fr-FR":RG,"he-IL":zG,"hr-HR":BG,"hu-HU":VG,"it-IT":HG,"ja-JP":UG,"ko-KR":WG,"lt-LT":GG,"lv-LV":KG,"nb-NO":qG,"nl-NL":JG,"pl-PL":YG,"pt-BR":XG,"pt-PT":ZG,"ro-RO":QG,"ru-RU":$G,"sk-SK":eK,"sl-SI":tK,"sr-SP":nK,"sv-SE":rK,"tr-TR":iK,"uk-UA":aK,"zh-CN":oK,"zh-TW":sK};var lK=class extends yG{isCell(e){return e.type===`cell`||e.type===`rowheader`||e.type===`column`}getKeyBelow(e,t){let n=this.collection.getItem(e);if(!n)return null;if(n.type===`column`){let e=jP(AP(n,this.collection));if(e)return e.key;let t=this.getFirstKey();return t==null||!this.collection.getItem(t)?null:super.getKeyForItemInRowByIndex(t,n.index)}return super.getKeyBelow(e,t)}getKeyAbove(e,t){let n=this.collection.getItem(e);if(!n)return null;if(n.type===`column`){let e=n.parentKey==null?null:this.collection.getItem(n.parentKey);return e&&e.type===`column`?e.key:null}let r=super.getKeyAbove(e,t),i=r==null?null:this.collection.getItem(r);return i&&i.type!==`headerrow`?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,e=>e.type===`column`);if(t!=null)return t;let n=this.collection.headerRows[e.level];for(let e of AP(n,this.collection))if(e.type===`column`)return e.key;return null}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,e=>e.type===`column`);if(t!=null)return t;let n=this.collection.headerRows[e.level],r=[...AP(n,this.collection)];for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.type===`column`)return t.key}return null}getKeyRightOf(e){let t=this.collection.getItem(e);return t?t.type===`column`?this.direction===`rtl`?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e):null}getKeyLeftOf(e){let t=this.collection.getItem(e);return t?t.type===`column`?this.direction===`rtl`?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e):null}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t??this.getFirstKey();if(r==null)return null;let i=n.getItem(r);i?.type===`cell`&&(r=i.parentKey??null);let a=!1;for(;r!=null;){let o=n.getItem(r);if(!o)return null;if(o.textValue){let t=o.textValue.slice(0,e.length);if(this.collator.compare(t,e)===0)return o.key}for(let r of AP(o,this.collection)){let a=n.columns[r.index];if(n.rowHeaderColumnKeys.has(a.key)&&r.textValue){let a=r.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return(t==null?i:n.getItem(t))?.type===`cell`?r.key:o.key}}r=this.getKeyBelow(r),r==null&&!a&&(r=this.getFirstKey(),a=!0)}return null}};function uK(e){return e&&e.__esModule?e.default:e}function dK(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:o}=e,s=SP({usage:`search`,sensitivity:`base`}),{direction:c}=mw(),l=t.selectionManager.disabledBehavior,u=(0,x.useMemo)(()=>r||new lK({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:l,ref:n,direction:c,collator:s,layoutDelegate:a,layout:o}),[r,t.collection,t.disabledKeys,l,n,c,s,a,o]),d=Xx(e.id);CG.set(t,d);let{gridProps:f}=SG({...e,id:d,keyboardDelegate:u},t,n);i&&(f[`aria-rowcount`]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(f.role=`treegrid`);let{column:p,direction:m}=t.sortDescriptor||{},h=Ow(uK(cK),`@react-aria/table`),g=(0,x.useMemo)(()=>{let e=t.collection.columns.find(e=>e.key===p)?.textValue??``;return m&&p?h.format(`${m}Sort`,{columnName:e}):void 0},[m,p,t.collection.columns]),_=mA(g);return aA(()=>{g&&lD(g,`assertive`,500)},[g]),{gridProps:H(f,_,{"aria-describedby":[_[`aria-describedby`],f[`aria-describedby`]].filter(Boolean).join(` `)})}}function fK(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:o,shouldSelectOnPressUp:s,onAction:c}=e,{direction:l}=mw(),{keyboardDelegate:u,actions:{onCellAction:d},keyboardNavigationBehavior:f}=xG.get(t),p=a??(f===`tab`?`cell`:`child`),m=(0,x.useRef)(null),h=(0,x.useRef)(null),g=()=>{if(n.current){let e=rP(n.current);if(p===`child`){let i=CS(pS(n.current));if(TS(n.current)&&n.current!==i)return;let a=pS(n.current);if(!i||i===a.body||i===n.current){let e=h.current;if(e&&m.current===r.key&&W(n.current,e)){eT(e);return}}let o=t.selectionManager.childFocusStrategy===`last`?pK(e):e.firstChild();if(o){eT(o);return}}(m.current!=null&&r.key!==m.current||!TS(n.current))&&eT(n.current)}},{itemProps:_,isPressed:v}=DP({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:s,onAction:d?()=>d(r.key):c,isDisabled:t.collection.size===0}),y=H(_,{role:`gridcell`,onKeyDownCapture:f!==`tab`||o?e=>{let i=CS(pS(n.current));if(!W(e.currentTarget,G(e))||t.isKeyboardNavigationDisabled||!n.current||!i)return;let a=rP(n.current);switch(a.currentNode=i,e.key){case`ArrowLeft`:{let t=l===`rtl`?a.nextNode():a.previousNode();if(p===`child`&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)eT(t),dA(t,{containingElement:sA(n.current)});else{if(u.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}p===`cell`&&l===`rtl`?(eT(n.current),dA(n.current,{containingElement:sA(n.current)})):(a.currentNode=n.current,t=l===`rtl`?a.firstChild():pK(a),t&&(eT(t),dA(t,{containingElement:sA(n.current)})))}break}case`ArrowRight`:{let t=l===`rtl`?a.previousNode():a.nextNode();if(p===`child`&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)eT(t),dA(t,{containingElement:sA(n.current)});else{if(u.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}p===`cell`&&l===`ltr`?(eT(n.current),dA(n.current,{containingElement:sA(n.current)})):(a.currentNode=n.current,t=l===`rtl`?pK(a):a.firstChild(),t&&(eT(t),dA(t,{containingElement:sA(n.current)})))}break}case`ArrowUp`:case`ArrowDown`:!e.altKey&&W(n.current,G(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onKeyDown:f===`tab`?e=>{let r=CS(pS(n.current));if(W(e.currentTarget,G(e))&&!t.isKeyboardNavigationDisabled&&n.current&&r){if(f===`tab`&&G(e)!==n.current&&e.key!==`Tab`)e.stopPropagation();else if(e.key===`Tab`&&f===`tab`){let t=rP(n.current,{tabbable:!0});t.currentNode=r,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}}:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex==null?void 0:r.colIndex+1,colSpan:i?void 0:r.colSpan,onFocus:e=>{if(m.current=r.key,G(e)!==n.current){let i=G(e);n.current&&W(n.current,i)&&(h.current=i),MC()||t.selectionManager.setFocusedKey(r.key)}else p===`child`&&e.relatedTarget&&W(n.current,e.relatedTarget)||requestAnimationFrame(()=>{p===`child`&&CS(pS(n.current))===n.current&&g()})},...p===`child`&&f===`tab`?{tabIndex:-1}:{}});return i&&(y[`aria-colindex`]=(r.colIndex??r.index)+1),s&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=e=>{let t=e.currentTarget,n=t.getAttribute(`tabindex`);t.removeAttribute(`tabindex`),requestAnimationFrame(()=>{n!=null&&t.setAttribute(`tabindex`,n)})}),{gridCellProps:y,isPressed:v}}function pK(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function mK(e){return e&&e.__esModule?e.default:e}function hK(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=fK({focusMode:`child`,...e},t,n),o=r.props.isSelectionCell&&t.selectionManager.selectionMode===`single`,{pressProps:s,isPressed:c}=_E({isDisabled:!i||o,onPress(){t.sort(r.key)},ref:n}),{focusableProps:l}=bT({},n),u,d=t.sortDescriptor?.column===r.key,f=t.sortDescriptor?.direction;r.props.allowsSorting&&!nC()&&(u=d?f:`none`);let p=Ow(mK(cK),`@react-aria/table`),m;i&&(m=`${p.format(`sortable`)}`,d&&f&&nC()&&(m=`${m}, ${p.format(f)}`));let h=mA(m),g=t.collection.size===0;return(0,x.useEffect)(()=>{g&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[g,t.selectionManager,r.key]),{columnHeaderProps:{...H(l,a,s,h,g?{tabIndex:-1}:null),role:`columnheader`,id:TG(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":u},isPressed:c}}function gK(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:o}=e,{actions:s,shouldSelectOnPressUp:c}=xG.get(t),l=s.onRowAction?()=>s.onRowAction?.(r.key):o,{itemProps:u,...d}=DP({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:c||a,onAction:l||r?.props?.onAction?jx(r?.props?.onAction,l):void 0,isDisabled:t.collection.size===0}),f=t.selectionManager.isSelected(r.key),p={role:`row`,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:f,"aria-disabled":d.isDisabled||void 0,...u};return i&&(p[`aria-rowindex`]=r.index+1),{rowProps:p,...d}}function _K(e){return e&&e.__esModule?e.default:e}var vK={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function yK(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...o}=gK(e,t,n),{direction:s}=mw();i&&t.treeColumn==null?a[`aria-rowindex`]=r.index+1+t.collection.headerRows.length:delete a[`aria-rowindex`];let c=t.treeColumn!=null&&(t.expandedKeys===`all`||t.expandedKeys.has(r.key)),l=Ow(_K(cK),`@react-aria/table`),u=rw({"aria-label":c?l.format(`collapse`):l.format(`expand`),"aria-labelledby":DG(t,r.key)}),d={},f={};if(t.treeColumn!=null){let e=t.collection.getItem(r.key);if(e!=null){let n=bK(t.collection,r),i=e.props?.hasChildRows||e.props?.UNSTABLE_childItems||n?.type!==`cell`,a=t.collection.getItem(r.parentKey),c=a.type===`tablebody`||a.type===`body`,l=bK(t.collection,a);for(;l&&l.type!==`item`&&l.prevKey!=null;)l=t.collection.getItem(l.prevKey);d={onKeyDown:n=>{n.key===vK.expand[s]&&t.selectionManager.focusedKey===e.key&&i&&t.expandedKeys!==`all`&&!t.expandedKeys.has(e.key)?(t.toggleKey(e.key),n.stopPropagation()):n.key===vK.collapse[s]&&t.selectionManager.focusedKey===e.key&&(t.expandedKeys===`all`?t.expandedKeys===`all`&&(t.toggleKey(e.key),n.stopPropagation()):i&&t.expandedKeys.has(e.key)?(t.toggleKey(e.key),n.stopPropagation()):!t.expandedKeys.has(e.key)&&e.parentKey!=null&&e.level>0&&(t.selectionManager.setFocusedKey(e.parentKey),n.stopPropagation()))},"aria-expanded":i?t.expandedKeys===`all`||t.expandedKeys.has(r.key):void 0,"aria-level":e.level+1,"aria-posinset":e.index-(c?0:t.collection.columnCount)+1,"aria-setsize":l.index-(c?0:t.collection.columnCount)+1},f={isDisabled:o.isDisabled,onPress:()=>{o.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...u}}}let p=fC(r.props),m=o.hasAction?p:{};return{rowProps:{...H(a,d,m),"aria-labelledby":DG(t,r.key)},expandButtonProps:f,...o}}function bK(e,t){return`lastChildKey`in t?t.lastChildKey==null?null:e.getItem(t.lastChildKey):Array.from(t.childNodes).findLast(e=>e.parentKey===t.key)}function xK(e,t,n){let{node:r,isVirtualized:i}=e,a={role:`row`};return i&&t.treeColumn==null&&(a[`aria-rowindex`]=r.index+1),{rowProps:a}}function SK(e,t,n){let{gridCellProps:r,isPressed:i}=fK(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role=`rowheader`,r.id=EG(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function CK(e){return e&&e.__esModule?e.default:e}function wK(e,t){let{key:n}=e,{checkboxProps:r}=xU(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${DG(t,n)}`}}}function TK(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":Ow(CK(cK),`@react-aria/table`).format(r===`single`?`select`:`selectAll`),isSelected:n,isDisabled:r!==`multiple`||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type===`loader`,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function EK(){return{rowGroupProps:{role:`rowgroup`}}}function DK(){return EK()}var OK=class extends zw{withExpandedKeys(e){let t=this.clone();return t.expandedKeys=e,t.frozen=this.frozen,t.rows=Array.from(t.getRows()),t}addNode(e){super.addNode(e),this.columnsDirty||=e.type===`column`,e.type===`tableheader`&&(this.head=e)}getRows(){let e=[];for(let t of this)(t.type===`tablebody`||t.type===`tablefooter`)&&e.push(...this.getChildren(t.key));return e}get body(){for(let e of this)if(e.type===`tablebody`)return e;return new qK(-2)}commit(e,t,n=!1){this.updateColumns(n),this.firstKey=e,this.lastKey=t,this.rows=[];for(let e of this.getRows()){let t=e.lastChildKey;if(t!=null){let e=this.getItem(t);for(;e&&e.type!==`cell`;)e=e.prevKey==null?null:this.getItem(e.prevKey);if(e){let t=(e.colIndex??e.index)+(e.colSpan??1);if(t!==this.columns.length&&!n)throw Error(`Cell count must match column count. Found ${t} cells and ${this.columns.length} columns.`)}}this.rows.push(e)}super.commit(e,t,n)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,n=e=>{e.type===`column`&&(t.set(e.key,e),e.hasChildNodes||(e.index=this.columns.length,this.columns.push(e),e.props.isRowHeader&&this.rowHeaderColumnKeys.add(e.key)));for(let t of this.getChildren(e.key))n(t)};for(let e of this.getChildren(this.head.key))n(e);if(this.headerRows=pG(t,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw Error(`A table must have at least one Column with the isRowHeader prop set to true`)}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let t=this.getItem(e);t&&(yield t),e=t?.nextKey??null}}getFirstKey(){for(let e of this)if(e.type===`tablebody`)return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let t=this.getItem(e);for(;t?.lastChildKey!=null&&(t.type!==`item`||this.expandedKeys.has(t.key));)t=this.getItem(t.lastChildKey);return t?.key}getKeyAfter(e){let t=this.getItem(e);if(t?.type===`column`)return t.nextKey??null;if(!t)return null;if(t.type===`item`&&t.firstChildKey!=null&&this.expandedKeys.has(t.key)){let e=this.getItem(t.firstChildKey);for(;e;){if(e.type===`item`)return e.key;e=e.nextKey==null?null:this.getItem(e.nextKey)}}return super.getKeyAfter(e)}getKeyBefore(e){let t=this.getItem(e);if(t?.type===`column`)return t.prevKey??null;if(!t)return null;let n=null;if(t.prevKey!=null){for(t=this.getItem(t.prevKey);t&&(t.type!==`item`||this.expandedKeys.has(t.key))&&t.lastChildKey!=null;)t=this.getItem(t.lastChildKey);n=t?.key??null}return n??=t.parentKey,n!=null&&this.getItem(n)?.type===`tableheader`?null:n}getChildren(e){let t=this.getItem(e);if(!t){for(let t of this.headerRows)if(t.key===e)return t.childNodes}let n=this;return t?.type===`tablebody`||t?.type===`tablefooter`?{*[Symbol.iterator](){let e=t.firstChildKey,r=e==null?null:n.getItem(e);for(;r;){yield r;let e=n.getKeyAfter(r.key);if(r=e==null?null:n.getItem(e),r&&r.parentKey===t.parentKey)break}}}:{*[Symbol.iterator](){let t=n.getItem(e),r=t?.firstChildKey==null?null:n.getItem(t.firstChildKey);for(;r&&(yield r,r=r.nextKey==null?null:n.getItem(r.nextKey),t?.type!==`item`||r?.type===`cell`););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys,r=[];for(let t of this.getChildren(e)){let e=this.columns[t.index];if(n.has(e.key)&&t.textValue&&r.push(t.textValue),r.length===n.size)break}return r.join(` `)}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new RK(-1),this.columnsDirty=!0,this.expandedKeys=new Set}},kK=(0,x.createContext)(null),AK=(0,x.createContext)(null),jK=(0,x.createContext)(null),MK=(0,x.createContext)(null),NK=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,AK);let n=WP(e),{selectionBehavior:r,selectionMode:i,disallowEmptySelection:a}=n,o=!!e.dragAndDropHooks?.useDraggableCollectionState,s=(0,x.useMemo)(()=>({selectionBehavior:i===`none`?null:r,selectionMode:i,disallowEmptySelection:a,allowsDragging:o}),[r,i,a,o]),c=x.createElement(LK.Provider,{value:s},x.createElement(UT,e));return x.createElement(jT,{content:c,createCollection:()=>new OK},r=>x.createElement(IK,{props:e,forwardedRef:t,selectionState:n,collection:r}))}),PK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.table,{...e,ref:t})}),FK={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function IK({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=oS(e,t,jw);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:o,...s}=e,c=(0,x.useContext)(kK);t=tS((0,x.useMemo)(()=>$x(t,c?.tableRef),[t,c?.tableRef]));let[l,u]=Aw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=(0,x.useMemo)(()=>r.withExpandedKeys(l),[r,l]);let d=_G({...s,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:l,onExpandedChange:u}),f=vG(d,o),{isVirtualized:p,layoutDelegate:m,dropTargetDelegate:h,CollectionRoot:g}=(0,x.useContext)(YT),{dragAndDropHooks:_}=e,{gridProps:v}=dK({...s,layoutDelegate:m,isVirtualized:p},f,t),y=f.selectionManager,b=!!_?.useDraggableCollectionState,S=!!_?.useDroppableCollectionState;(0,x.useRef)(b),(0,x.useRef)(S),(0,x.useEffect)(()=>{},[b,S]);let C,w,T,E=!1,D=null,O=(0,x.useRef)(null),{direction:k}=mw(),[A]=(0,x.useState)(()=>new lG);if(b&&_){C=_.useDraggableCollectionState({collection:f.collection,selectionManager:y,preview:_.renderDragPreview?O:void 0}),_.useDraggableCollection({},C,t);let e=_.DragPreview;D=_.renderDragPreview?x.createElement(e,{ref:O},_.renderDragPreview):null}if(S&&_){w=_.useDroppableCollectionState({collection:f.collection,selectionManager:y});let e=new bP({collection:f.collection,disabledKeys:y.disabledKeys,disabledBehavior:y.disabledBehavior,ref:t,layoutDelegate:m}),n=_.dropTargetDelegate||h||new _.ListDropTargetDelegate(r.rows,t);A.setup(n,d,k),T=_.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:A,onDropActivate:e=>{if(e.target.type===`item`){let t=e.target.key,n=d.collection.getItem(t),r=l.has(t);n&&n.hasChildNodes&&(!r||_?.isVirtualDragging?.())&&d.toggleKey(t)}},onKeyDown:e=>{let t=w?.target;if(t&&t.type===`item`&&t.dropPosition===`on`){let n=d.collection.getItem(t.key);(e.key===FK.expand[k]&&n?.hasChildNodes&&!d.expandedKeys.has(t.key)||e.key===FK.collapse[k]&&n?.hasChildNodes&&d.expandedKeys.has(t.key))&&d.toggleKey(t.key)}}},w,t),E=w.isDropTarget({type:`root`})}let{focusProps:j,isFocused:M,isFocusVisible:ee}=DE(),N=iS({...e,children:void 0,defaultClassName:`react-aria-Table`,values:{isDropTarget:E,isFocused:M,isFocusVisible:ee,state:f}}),P=!(!b||C?.isDisabled),te=N.style,F=null;c&&(F=c.useTableColumnResizeState({tableWidth:c.tableWidth},f),p||(te={...te,tableLayout:`fixed`,width:`min-content`}));let ne=K(e,{global:!0});return x.createElement(rS,{values:[[jK,f],[MK,F],[gN,{dragAndDropHooks:_,dragState:C,dropState:w}],[_N,{render:rq}],[jw,null],[Mw,null]]},x.createElement(LN,null,x.createElement(PK,{...H(ne,N,v,j,T?.collectionProps),style:te,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":P||void 0,"data-drop-target":E||void 0,"data-focused":M||void 0,"data-focus-visible":ee||void 0},x.createElement(wN,null,x.createElement(g,{collection:f.collection,scrollRef:c?.scrollRef??t,persistedKeys:bN(y,_,w)})))),D)}var LK=(0,x.createContext)(null),RK=class extends Nw{static{this.type=`tableheader`}},zK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.thead,{...e,ref:t})}),BK=BT(RK,(e,t)=>{let n=(0,x.useContext)(jK).collection,r=Ww({items:n.headerRows,children:(0,x.useCallback)(e=>{switch(e.type){case`headerrow`:return x.createElement(HK,{item:e});default:throw Error(`Unsupported node type in TableHeader: `+e.type)}},[])}),{rowGroupProps:i}=DK(),{hoverProps:a,isHovered:o}=NE({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),s=iS({...e,children:void 0,defaultClassName:`react-aria-TableHeader`,values:{isHovered:o}});return x.createElement(zK,{...H(K(e,{global:!0}),i,a),...s,ref:t,"data-hovered":o||void 0},r)},e=>x.createElement(UT,{dependencies:e.dependencies,items:e.columns},e.children)),VK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(`div`,{...e,ref:t}):x.createElement(`tr`,{...e,ref:t})});function HK({item:e}){let t=(0,x.useRef)(null),n=(0,x.useContext)(jK),{isVirtualized:r,CollectionBranch:i}=(0,x.useContext)(YT),{rowProps:a}=xK({node:e,isVirtualized:r},n,t),{checkboxProps:o}=TK(n);return x.createElement(VK,{...a,ref:t},x.createElement(rS,{values:[[qA,{slots:{selection:o}}],[JA,{slots:{selection:o}}]]},x.createElement(i,{collection:n.collection,parent:e})))}var UK=class extends Nw{static{this.type=`column`}},WK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.th,{...e,ref:t})}),GK=zT(UK,(e,t,n)=>{let r=tS(t),i=(0,x.useContext)(jK),{isVirtualized:a}=(0,x.useContext)(YT),{columnHeaderProps:o,isPressed:s}=hK({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:c,isFocusVisible:l,focusProps:u}=DE(),d=(0,x.useContext)(MK),f=!1;d&&(f=d.resizingColumn===n.key);let{hoverProps:p,isHovered:m}=NE({isDisabled:!e.allowsSorting}),h=iS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Column`,values:{isHovered:m,isPressed:s,isFocused:c,isFocusVisible:l,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:f,startResize:()=>{if(d)d.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw Error(`Wrap your <Table> in a <ResizableTableContainer> to enable column resizing`)},sort:e=>{i.sort(n.key,e)}}}),g=h.style;d&&(g={...g,width:d.getColumnWidth(n.key)});let _=K(e,{global:!0});return delete _.id,x.createElement(WK,{...H(_,o,u,p),...h,style:g,ref:r,"data-hovered":m||void 0,"data-pressed":s||void 0,"data-focused":c||void 0,"data-focus-visible":l||void 0,"data-resizing":f||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},x.createElement(rS,{values:[[KK,{column:n,triggerRef:r}],[YT,KT]]},h.children))}),KK=(0,x.createContext)(null),qK=class extends Pw{static{this.type=`tablebody`}},JK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.tbody,{...e,ref:t})}),YK=BT(qK,(e,t,n)=>{let r=(0,x.useContext)(jK),{isVirtualized:i}=(0,x.useContext)(YT),a=r.collection,{CollectionBranch:o}=(0,x.useContext)(YT),{dragAndDropHooks:s,dropState:c}=(0,x.useContext)(gN),l=!!s?.useDroppableCollectionState&&!c?.isDisabled,u=l&&!!c&&(c.isDropTarget({type:`root`})??!1),d=a.size===0,f={isDropTarget:u,isEmpty:d},p=iS({...e,id:void 0,children:void 0,defaultClassName:`react-aria-TableBody`,values:f}),m,h=a.columnCount;if(d&&e.renderEmptyState&&r){let t={},n={},r={};i?(n[`aria-colspan`]=h,r={display:`contents`}):n.colSpan=h,m=x.createElement(QK,{role:`row`,...t,style:r},x.createElement(tq,{role:`rowheader`,...n,style:r},e.renderEmptyState(f)))}let{rowGroupProps:g}=DK(),_=K(e,{global:!0});return x.createElement(JK,{...H(_,p,g),ref:t,"data-empty":d||void 0},l&&x.createElement(cq,null),x.createElement(o,{collection:a,parent:n,renderDropIndicator:yN(s,c)}),m)});(class extends Pw{static{this.type=`tablefooter`}});var XK=(0,x.createContext)({isFocusVisibleWithinRow:!1}),ZK=class extends Nw{static{this.type=`item`}filter(e,t,n){let r=e.getChildren(this.key);for(let i of r)if(n(i.textValue,i)){let n=this.clone();return t.addDescendants(n,e),n}return null}},QK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.tr,{...e,ref:t})}),$K=BT(ZK,(e,t,n)=>{let r=tS(t),i=(0,x.useContext)(jK),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,x.useContext)(gN),{isVirtualized:c,CollectionBranch:l}=(0,x.useContext)(YT),u=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{rowProps:d,expandButtonProps:f,...p}=yK({node:n,shouldSelectOnPressUp:!!o,isVirtualized:c},i,r),{isFocused:m,isFocusVisible:h,focusProps:g}=DE(),{isFocusVisible:_,focusProps:v}=DE({within:!0}),{hoverProps:y,isHovered:b}=NE({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:S}=wK({key:n.key},i),C;o&&a&&(C=a.useDraggableItem({key:n.key,hasDragButton:!0},o));let w,T=(0,x.useRef)(null),{visuallyHiddenProps:E}=gA();s&&a&&(w=a.useDropIndicator({target:{type:`item`,key:n.key,dropPosition:`on`}},s,T));let D=(0,x.useRef)(null);(0,x.useEffect)(()=>{o&&D.current},[]);let O=o&&o.isDragging(n.key),{children:k,...A}=e,j=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!==`cell`,M=j&&i.expandedKeys.has(n.key),ee=iS({...A,id:void 0,defaultClassName:`react-aria-Row`,defaultStyle:{"--table-row-level":n.level+1},values:{...p,state:i,isHovered:b,isFocused:m,isFocusVisible:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:O,isDropTarget:w?.isDropTarget,isFocusVisibleWithin:_,id:n.key,hasChildItems:j,isExpanded:M,level:n.level+1}}),N=K(e,{global:!0});return delete N.id,delete N.onClick,x.createElement(x.Fragment,null,w&&!w.isHidden&&x.createElement(QK,{role:`row`,style:{height:0}},x.createElement(tq,{role:`gridcell`,colSpan:i.collection.columnCount,style:{padding:0}},x.createElement(`div`,{role:`button`,...E,...w.dropIndicatorProps,ref:T}))),x.createElement(QK,{...H(N,ee,d,g,y,C?.dragProps,v),ref:r,"data-disabled":p.isDisabled||void 0,"data-selected":p.isSelected||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":h||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":O||void 0,"data-drop-target":w?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":_||void 0,"data-expanded":M||void 0,"data-has-child-items":j||void 0,"data-level":n.level+1},x.createElement(rS,{values:[[qA,{slots:{[nS]:{},selection:S}}],[JA,{slots:{[nS]:{},selection:S}}],[pD,{slots:{[nS]:{},chevron:f,drag:{...C?.dragButtonProps,ref:D,style:{pointerEvents:`none`}}}}],[TN,{isSelected:p.isSelected}],[XK,{isFocusVisibleWithinRow:_}]]},x.createElement(l,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children==`function`)throw Error(`No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.`);let t=[e.value].concat(e.dependencies);return x.createElement(UT,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),eq=class extends Nw{static{this.type=`cell`}},tq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.td,{...e,ref:t})}),nq=zT(eq,(e,t,n)=>{let r=tS(t),i=(0,x.useContext)(jK),{dragState:a}=(0,x.useContext)(gN),{isVirtualized:o}=(0,x.useContext)(YT);n.column=i.collection.columns[n.index];let{gridCellProps:s,isPressed:c}=SK({node:n,shouldSelectOnPressUp:!!a,isVirtualized:o,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:l,isFocusVisible:u,focusProps:d}=DE(),{hoverProps:f,isHovered:p}=NE({}),{isFocusVisibleWithinRow:m}=(0,x.useContext)(XK),h=n.parentKey!=null&&i.selectionManager.isSelected(n.parentKey),g=n.colIndex||n.index,_=i.collection.getItem(n.parentKey),v=_.props.hasChildItems||i.collection.getItem(_.lastChildKey)?.type!==`cell`,y=v&&i.expandedKeys.has(n.parentKey),b=i.selectionManager.isDisabled(n.parentKey),S=iS({...e,id:void 0,defaultClassName:`react-aria-Cell`,values:{isFocused:l,isFocusVisible:u,isFocusVisibleWithinRow:m,isPressed:c,isHovered:p,isSelected:h,id:n.key,columnIndex:g,hasChildItems:v,isExpanded:y,isDisabled:b,level:_.level+1,isTreeColumn:n.column.key===i.treeColumn}}),C=K(e,{global:!0});return delete C.id,x.createElement(tq,{...H(C,S,s,d,f),ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,"data-focus-visible-within-row":m||void 0,"data-pressed":c||void 0,"data-selected":h||void 0,"data-column-index":g,"data-expanded":y||void 0,"data-has-child-items":v||void 0,"data-level":_.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":b||void 0},x.createElement(YT.Provider,{value:KT},S.children))});function rq(e,t){t=tS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(gN),i=(0,x.useRef)(null),{dropIndicatorProps:a,isHidden:o,isDropTarget:s}=n.useDropIndicator(e,r,i);if(o)return null;let c=r&&e.target.type===`item`?(r.collection.getItem(e.target.key)?.level||0)+1:1;return x.createElement(sq,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,level:c,ref:t})}var iq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.tr,{...e,ref:t})}),aq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(YT);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.td,{...e,ref:t})});function oq(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...o}=e,s=(0,x.useContext)(jK),{visuallyHiddenProps:c}=gA(),l=iS({...o,defaultClassName:`react-aria-DropIndicator`,defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return x.createElement(iq,{...K(e,{global:!0}),...l,role:`row`,ref:t,"data-drop-target":r||void 0,"aria-level":a},x.createElement(aq,{role:`gridcell`,colSpan:s.collection.columnCount,style:{padding:0}},x.createElement(`div`,{...c,role:`button`,...n,ref:i}),l.children))}var sq=(0,x.forwardRef)(oq);function cq(){let e=(0,x.useContext)(jK),{dragAndDropHooks:t,dropState:n}=(0,x.useContext)(gN),r=(0,x.useRef)(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:`root`}},n,r),a=n.isDropTarget({type:`root`}),{visuallyHiddenProps:o}=gA();return!a&&i[`aria-hidden`]?null:x.createElement(QK,{role:`row`,"aria-hidden":i[`aria-hidden`],style:{height:0}},x.createElement(tq,{role:`gridcell`,colSpan:e.collection.columnCount,style:{padding:0}},x.createElement(`div`,{role:`button`,...o,...i,ref:r})))}zT(Iw,function(e,t,n){let r=(0,x.useContext)(jK),{isVirtualized:i}=(0,x.useContext)(YT),{isLoading:a,onLoadMore:o,scrollOffset:s,...c}=e,l=r.collection.columns.length,u=(0,x.useRef)(null);tF((0,x.useMemo)(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:u,scrollOffset:s}),[o,s,r?.collection]),u);let d=iS({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,defaultStyle:{"--table-row-level":n.level+1},values:void 0}),f={},p={},m={};return i?(p[`aria-colspan`]=l,m={display:`contents`}):p.colSpan=l,x.createElement(x.Fragment,null,x.createElement(QK,{style:{height:0},inert:BP(!0)},x.createElement(tq,{style:{padding:0,border:0}},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:u,style:{position:`relative`,height:1,width:1}}))),a&&d.children&&x.createElement(QK,{...H(K(e,{global:!0}),f),...d,role:`row`,ref:t,"aria-level":n.level+1,"data-level":n.level+1},x.createElement(tq,{role:`rowheader`,...p,style:m},d.children)))});var lq=new WeakMap;function uq(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${lq.get(e)}-${n}-${t}`):``}function dq(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),u=t.collection.getItem(r),{itemProps:d,isPressed:f}=DP({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=uq(t,r,`tab`),m=uq(t,r,`tabpanel`),{tabIndex:h}=d,g=K(u?.props,{labelable:!0});delete g.id;let _=pC(u?.props),{focusableProps:v}=bT({...u?.props,isDisabled:l},n);return{tabProps:H(g,v,_,d,{id:p,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?m:void 0,tabIndex:l?void 0:h,role:`tab`}),isSelected:c,isDisabled:l,isPressed:f}}function fq(e,t,n){let r=dU(n)?void 0:0,i=uq(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:H(rw({...e,id:i,"aria-labelledby":uq(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var pq=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function mq(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=mw(),{collectionProps:l}=vP({ref:n,selectionManager:o,keyboardDelegate:(0,x.useMemo)(()=>new pq(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=Xx();return lq.set(t,u),{tabListProps:{...H(l,rw({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function hq(e){let[t,n]=Aw(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,x.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=QP({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function gq(e){let t=hq({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??_q(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,x.useRef)(i);return(0,x.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=_q(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function _q(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var vq=(0,x.createContext)(null),yq=(0,x.createContext)(null),bq=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,vq);let{children:n,orientation:r=`horizontal`}=e;return n=(0,x.useMemo)(()=>typeof n==`function`?n({orientation:r,defaultChildren:null}):n,[n,r]),x.createElement(jT,{content:n},n=>x.createElement(xq,{props:e,collection:n,tabsRef:t}))});function xq({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=gq({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=DE({within:!0}),c=(0,x.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=iS({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=K(e,{global:!0});return x.createElement(U.div,{...H(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},x.createElement(rS,{values:[[vq,e],[yq,i]]},l.children))}var Sq=(0,x.forwardRef)(function(e,t){return(0,x.useContext)(yq)?x.createElement(Cq,{props:e,forwardedRef:t}):x.createElement(UT,e)});function Cq({props:e,forwardedRef:t}){let n=(0,x.useContext)(yq),{CollectionRoot:r}=(0,x.useContext)(YT),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=aS(vq),o=tS(t),{tabListProps:s}=mq({...e,orientation:i,keyboardActivation:a},n,o),c=iS({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=K(e,{global:!0});return delete l.id,x.createElement(U.div,{...H(l,c,s),ref:o,"data-orientation":i||void 0},x.createElement(wN,null,x.createElement(r,{collection:n.collection,persistedKeys:XT(n.selectionManager.focusedKey)})))}var wq=zT(class extends Nw{static{this.type=`item`}},(e,t,n)=>{let r=(0,x.useContext)(yq),i=tS(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=dq({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=DE(),{hoverProps:f,isHovered:p}=NE({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=iS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:d,isPressed:c,isHovered:p}}),h=n.props.href?U.a:U.div,g=K(e,{global:!0});return delete g.id,delete g.onClick,x.createElement(h,{...H(g,m,a,l,f),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},x.createElement(TN.Provider,{value:{isSelected:o}},m.children))}),Tq=CT(function(e,t){let n=(0,x.useContext)(yq),r=tS(t),i=n.selectedKey===e.id,[a,o]=(0,x.useState)(n.selectedKey==null?null:i);a==null&&n.selectedKey!=null?o(i):!i&&a&&o(!1);let s=fL(r,i);return!i&&!e.shouldForceMount&&!s?null:x.createElement(Eq,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function Eq(e){let t=(0,x.useContext)(yq),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=fq(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=DE(),d=t.selectedKey===e.id,f=dL(r)&&!i,p=iS({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:BP(!d),isEntering:f,isExiting:a,state:t}}),m=K(o,{global:!0});delete m.id;let h=d?H(m,s,c,p):H(m,p);return x.createElement(U.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:BP(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},x.createElement(rS,{values:[[vq,null],[yq,null]]},x.createElement(YT.Provider,{value:KT},p.children)))}var Dq=(0,x.createContext)({}),Oq=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},kq=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,Dq);let{hoverProps:n,isHovered:r}=NE(e),{isFocused:i,isFocusVisible:a,focusProps:o}=DE({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=iS({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-TextArea`});return x.createElement(U.textarea,{...H(Oq(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),Aq=(0,x.createContext)(null),jq=CT(function(e,t){[e,t]=oS(e,t,Aq);let{validationBehavior:n}=aS(MA)||{},r=e.validationBehavior??n??`native`,i=(0,x.useRef)(null);[e,i]=oS(e,i,Mw);let[a,o]=sS(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,x.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=aj({...cS(e),inputElementType:s,label:o,validationBehavior:r},i),m=(0,x.useCallback)(e=>{i.current=e,e&&c(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),h=iS({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),g=K(e,{global:!0});return delete g.id,x.createElement(U.div,{...g,...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(rS,{values:[[IE,{...l,ref:a}],[nj,{...u,ref:m}],[Dq,{...u,ref:m}],[ej,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[yD,{slots:{description:d,errorMessage:f}}],[vA,p]]},h.children))}),Mq={};Mq={close:`إغلاق`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}`,other:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`})}.`};var Nq={};Nq={close:`Затвори`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`})}.`};var Pq={};Pq={close:`Zavřít`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1men\xed`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var Fq={};Fq={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var Iq={};Iq={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var Lq={};Lq={close:`Κλείσιμο`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3AF}\u{3B7}\u{3C3}\u{3B7}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`})}.`};var Rq={};Rq={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var zq={};zq={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var Bq={};Bq={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var Vq={};Vq={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var Hq={};Hq={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var Uq={};Uq={close:`סגור`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D4}`,other:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`})}.`};var Wq={};Wq={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var Gq={};Gq={close:`Bezárás`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`,other:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`})}.`};var Kq={};Kq={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var qq={};qq={close:`閉じる`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`})}\u{3002}`};var Jq={};Jq={close:`닫기`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`})}.`};var Yq={};Yq={close:`Uždaryti`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u{161}imas`,other:()=>`${t.number(e.count)} prane\u{161}imai`})}.`};var Xq={};Xq={close:`Aizvērt`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u{146}ojums`,other:()=>`${t.number(e.count)} pazi\u{146}ojumi`})}.`};var Zq={};Zq={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var Qq={};Qq={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var $q={};$q={close:`Zamknij`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u{144}`,other:()=>`${t.number(e.count)} powiadomienia`})}.`};var eJ={};eJ={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var tJ={};tJ={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var nJ={};nJ={close:`Închideţi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u{103}ri`})}.`};var rJ={};rJ={close:`Закрыть`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`})}.`};var iJ={};iJ={close:`Zatvoriť`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1menie`,few:()=>`${t.number(e.count)} ozn\xe1menia`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var aJ={};aJ={close:`Zapri`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`};var oJ={};oJ={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u{161}tenje`,other:()=>`${t.number(e.count)} obave\u{161}tenja`})}.`};var sJ={};sJ={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var cJ={};cJ={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var lJ={};lJ={close:`Закрити`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`,other:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`})}.`};var uJ={};uJ={close:`关闭`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`})}\u{3002}`};var dJ={};dJ={close:`關閉`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`})}\u{3002}`};var fJ={};fJ={"ar-AE":Mq,"bg-BG":Nq,"cs-CZ":Pq,"da-DK":Fq,"de-DE":Iq,"el-GR":Lq,"en-US":Rq,"es-ES":zq,"et-EE":Bq,"fi-FI":Vq,"fr-FR":Hq,"he-IL":Uq,"hr-HR":Wq,"hu-HU":Gq,"it-IT":Kq,"ja-JP":qq,"ko-KR":Jq,"lt-LT":Yq,"lv-LV":Xq,"nb-NO":Zq,"nl-NL":Qq,"pl-PL":$q,"pt-BR":eJ,"pt-PT":tJ,"ro-RO":nJ,"ru-RU":rJ,"sk-SK":iJ,"sl-SI":aJ,"sr-SP":oJ,"sv-SE":sJ,"tr-TR":cJ,"uk-UA":lJ,"zh-CN":uJ,"zh-TW":dJ};function pJ(e){return e&&e.__esModule?e.default:e}function mJ(e,t,n){let{key:r,timer:i,timeout:a}=e.toast;(0,x.useEffect)(()=>{if(i!=null&&a!=null)return i.reset(a),()=>{i.pause()}},[i,a]);let o=Xx(),s=Qx(),c=Ow(pJ(fJ),`@react-aria/toast`),[l,u]=(0,x.useState)(!1);return Mx(()=>{u(!0)},[]),{toastProps:{...K(e,{labelable:!0}),role:`alertdialog`,"aria-modal":`false`,"aria-labelledby":e[`aria-labelledby`]||o,"aria-describedby":e[`aria-describedby`]||s,tabIndex:0},contentProps:{role:`alert`,"aria-atomic":`true`,"aria-hidden":l?void 0:`true`},titleProps:{id:o},descriptionProps:{id:s},closeButtonProps:{"aria-label":c.format(`close`),onPress:()=>t.close(r)}}}var hJ=1,gJ=Symbol.for(`react-aria-landmark-manager`);function _J(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function vJ(){if(typeof document>`u`)return null;let e=document[gJ];return e&&e.version>=hJ?e:(document[gJ]=new bJ,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[gJ])}function yJ(){return(0,OT.useSyncExternalStore)(_J,vJ,vJ)}var bJ=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=hJ,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}setupIfNeeded(){this.isListening||=(document.addEventListener(`keydown`,this.f6Handler,{capture:!0}),document.addEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.addEventListener(`focusout`,this.focusoutHandler,{capture:!0}),!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener(`keydown`,this.f6Handler,{capture:!0}),document.removeEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.removeEventListener(`focusout`,this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){this.landmarks.find(t=>t.ref.current===e)?.focus?.(t)}getLandmarksByRole(e){return new Set(this.landmarks.filter(t=>t.role===e))}getLandmarkByRole(e){return this.landmarks.find(t=>t.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(t=>t.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(e=>e.role===`main`).length,this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let t=0,n=this.landmarks.length-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[r].ref.current);i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?t=r+1:n=r-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex(t=>t.ref===e.ref);t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(t=>t.ref!==e),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);t.size>1&&[...t].filter(e=>!e.label).length}closestLandmark(e){let t=new Map(this.landmarks.map(e=>[e.ref.current,e])),n=e;for(;n&&!t.has(n)&&n!==document.body&&n.parentElement;)n=n.parentElement;return t.get(n)}getNextLandmark(e,{backward:t}){let n=this.closestLandmark(e),r=t?this.landmarks.length-1:0;n&&(r=this.landmarks.indexOf(n)+(t?-1:1));let i=()=>{if(r<0){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`backward`},bubbles:!0,cancelable:!0})))return!0;r=this.landmarks.length-1}else if(r>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`forward`},bubbles:!0,cancelable:!0})))return!0;r=0}return r<0||r>=this.landmarks.length};if(i())return;let a=r;for(;this.landmarks[r].ref.current?.closest(`[aria-hidden=true]`);){if(r+=t?-1:1,i())return;if(r===a)break}return this.landmarks[r]}f6Handler(e){e.key===`F6`&&(e.altKey?this.focusMain():this.navigate(G(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole(`main`);return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,`forward`),!0):!1}navigate(e,t){let n=this.getNextLandmark(e,{backward:t});if(!n)return!1;if(n.lastFocused){let e=n.lastFocused;if(W(document.body,e))return e.focus(),!0}return n.ref.current&&n.ref.current.isConnected?(this.focusLandmark(n.ref.current,t?`backward`:`forward`),!0):!1}focusinHandler(e){let t=this.closestLandmark(G(e));t&&t.ref.current!==G(e)&&this.updateLandmark({ref:t.ref,lastFocused:G(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=G(e),n=e.relatedTarget;if(!n||n===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,n){let r=n?.from||document.activeElement;return e.navigate(r,t===`backward`)},focusNext(t){let n=t?.from||document.activeElement;return e.navigate(n,!1)},focusPrevious(t){let n=t?.from||document.activeElement;return e.navigate(n,!0)},focusMain(){return e.focusMain()},dispose(){e&&=(e.refCount--,e.teardownIfNeeded(),null)}}}registerLandmark(e){return this.landmarks.find(t=>t.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function xJ(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=yJ(),s=r||i,[c,l]=(0,x.useState)(!1),u=(0,x.useCallback)(()=>{l(!0)},[l]),d=(0,x.useCallback)(()=>{l(!1)},[l]);return Mx(()=>{if(o)return o.registerLandmark({ref:t,label:s,role:n,focus:a||u,blur:d})},[o,s,t,n,a,u,d]),(0,x.useEffect)(()=>{c&&t.current?.focus()},[c,t]),{landmarkProps:{role:n,tabIndex:c?-1:void 0,"aria-label":r,"aria-labelledby":i}}}function SJ(e){return e&&e.__esModule?e.default:e}function CJ(e,t,n){let r=Ow(SJ(fJ),`@react-aria/toast`),{landmarkProps:i}=xJ({role:`region`,"aria-label":e[`aria-label`]||r.format(`notifications`,{count:t.visibleToasts.length})},n),a=(0,x.useRef)(!1),o=(0,x.useRef)(!1),s=(0,x.useCallback)(()=>{a.current||o.current?t.pauseAll():t.resumeAll()},[t]),{hoverProps:c}=NE({onHoverStart:()=>{a.current=!0,s()},onHoverEnd:()=>{a.current=!1,s()}}),l=(0,x.useRef)([]),u=(0,x.useRef)(t.visibleToasts),d=(0,x.useRef)(null);Mx(()=>{if(d.current===-1||t.visibleToasts.length===0||!n.current){l.current=[],u.current=t.visibleToasts;return}if(l.current=[...n.current.querySelectorAll(`[role="alertdialog"]`)],u.current.length===t.visibleToasts.length&&t.visibleToasts.every((e,t)=>e.key===u.current[t].key)){u.current=t.visibleToasts;return}let e=u.current.map((e,n)=>({...e,i:n,isRemoved:!t.visibleToasts.some(t=>e.key===t.key)})),r=e.findIndex(e=>e.i===d.current&&e.isRemoved);if(r>-1){if(NC()===`pointer`&&f.current?.isConnected)AS(f.current);else{let t=0,n,i;for(;t<=r;)e[t].isRemoved||(i=Math.max(0,t-1)),t++;for(;t<e.length;){if(!e[t].isRemoved){n=t-1;break}t++}i===void 0&&n===void 0&&(i=0),i>=0&&i<l.current.length?AS(l.current[i]):n>=0&&n<l.current.length&&AS(l.current[n])}}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,x.useRef)(null),{focusWithinProps:p}=EE({onFocusWithin:e=>{o.current=!0,f.current=e.relatedTarget,s()},onBlurWithin:()=>{o.current=!1,f.current=null,s()}});return(0,x.useEffect)(()=>{t.visibleToasts.length===0&&f.current?.isConnected&&(NC()===`pointer`?AS(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,x.useEffect)(()=>()=>{f.current?.isConnected&&(NC()===`pointer`?AS(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:H(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=G(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function wJ(e){let t=(0,x.useCallback)(t=>e.subscribe(t),[e]),n=(0,x.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,OT.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var TJ=class{constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[],this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate}runWithWrapUpdate(e,t){this.wrapUpdate?this.wrapUpdate(e,t):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,t={}){let n=`_`+Math.random().toString(36).slice(2),r={...t,content:e,key:n,timer:t.timeout?new EJ(()=>this.close(n),t.timeout):void 0};return this.queue.unshift(r),this.updateVisibleToasts(`add`),n}close(e){let t=this.queue.findIndex(t=>t.key===e);t>=0&&(this.queue[t].onClose?.(),this.queue.splice(t,1)),this.updateVisibleToasts(`remove`)}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let e of this.subscriptions)e()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts(`clear`)}},EJ=class{constructor(e,t){this.startTime=null,this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}},DJ=(0,x.createContext)(null),OJ=(0,x.forwardRef)(function(e,t){let n=Wx(),r=wJ(e.queue),i=tS(t),{regionProps:a}=CJ(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=DE(),{hoverProps:l,isHovered:u}=NE({}),d=iS({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=mw(),p,{getContainer:m}=oL();n||(p=document.body,m&&(p=m()));let h=K(e,{global:!0}),g=x.createElement(DJ.Provider,{value:r},x.createElement(U.div,{...H(h,d,a,o,l),dir:f,ref:i,"data-hovered":u||void 0,"data-focused":s||void 0,"data-focus-visible":c||void 0},typeof e.children==`function`?x.createElement(kJ,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,DT.createPortal)(g,p):null}),kJ=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(DJ),{hoverProps:r,isHovered:i}=NE({}),a=iS({...e,children:void 0,defaultClassName:`react-aria-ToastList`,values:{visibleToasts:n.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:i}});return x.createElement(U.ol,{...r,...a,ref:t},n.visibleToasts.map(t=>x.createElement(`li`,{key:t.key,style:{display:`contents`}},e.children({toast:t}))))}),AJ=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(DJ),r=tS(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=mJ(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=DE(),f=iS({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=K(e,{global:!0});return x.createElement(U.div,{...H(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},x.createElement(rS,{values:[[jJ,a],[yD,{slots:{[nS]:{},title:o,description:s}}],[pD,{slots:{[nS]:{},close:c}}]]},f.children))}),jJ=(0,x.createContext)({}),MJ=(0,x.forwardRef)(function(e,t){return[e,t]=oS(e,t,jJ),x.createElement(U.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)});function NJ(e,t,n){let{isSelected:r}=t,{isPressed:i,buttonProps:a}=fD({...e,onPress:jx(t.toggle,e.onPress)},n);return{isPressed:i,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:H(a,{"aria-pressed":r})}}function PJ(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,x.useState)(!1);Mx(()=>{o(!!(t.current&&t.current.parentElement?.closest(`[role="toolbar"]`)))});let{direction:s}=mw(),c=s===`rtl`&&i===`horizontal`,l=iP(t),u=e=>{if(W(e.currentTarget,G(e))){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){d.current=CS(),e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,x.useRef)(null),f=e=>{!W(e.currentTarget,e.relatedTarget)&&!d.current&&(d.current=G(e))},p=e=>{d.current&&!W(e.currentTarget,e.relatedTarget)&&W(t.current,G(e))&&(d.current?.focus(),d.current=null)};return{toolbarProps:{...K(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function FJ(e,t,n){let{isDisabled:r}=e,{toolbarProps:i}=PJ(e,n);return{groupProps:{...i,role:t.selectionMode===`single`?`radiogroup`:i.role,"aria-disabled":r}}}function IJ(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(n){t.setSelected(e.id,n)},toggle(){t.toggleKey(e.id)}},{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}=NJ({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode===`single`&&(s.role=`radio`,s[`aria-checked`]=r.isSelected,delete s[`aria-pressed`]),{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}}function LJ(e){let{selectionMode:t=`single`,disallowEmptySelection:n,isDisabled:r=!1}=e,[i,a]=Aw((0,x.useMemo)(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),(0,x.useMemo)(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:i,setSelectedKeys:a,toggleKey(e){let r;t===`multiple`?(r=new Set(i),r.has(e)&&(!n||r.size>1)?r.delete(e):r.add(e)):r=new Set(i.has(e)&&!n?[]:[e]),a(r)},setSelected(e,t){t!==i.has(e)&&this.toggleKey(e)}}}var RJ=(0,x.createContext)({}),zJ=(0,x.createContext)(null),BJ=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,RJ);let n=LJ(e),{groupProps:r}=FJ(e,n,t),i=iS({...e,values:{orientation:e.orientation||`horizontal`,isDisabled:n.isDisabled,state:n},defaultClassName:`react-aria-ToggleButtonGroup`}),a=K(e,{global:!0});return x.createElement(U.div,{...H(a,i,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`horizontal`,"data-disabled":e.isDisabled||void 0},x.createElement(zJ.Provider,{value:n},x.createElement(wN,null,i.children)))}),VJ=(0,x.createContext)({}),HJ=(0,x.forwardRef)(function(e,t){[e,t]=oS(e,t,VJ);let n=(0,x.useContext)(zJ),r=GA(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(t){n.setSelected(e.id,t)}}:e),{buttonProps:i,isPressed:a,isSelected:o,isDisabled:s}=n&&e.id!=null?IJ({...e,id:e.id},n,t):NJ({...e,id:e.id==null?void 0:String(e.id)},r,t),{focusProps:c,isFocused:l,isFocusVisible:u}=DE(e),{hoverProps:d,isHovered:f}=NE({...e,isDisabled:s}),p=iS({...e,id:void 0,values:{isHovered:f,isPressed:a,isFocused:l,isSelected:r.isSelected,isFocusVisible:u,isDisabled:s,state:r},defaultClassName:`react-aria-ToggleButton`}),m=K(e,{global:!0});return delete m.id,delete m.onClick,x.createElement(U.button,{...H(m,p,i,c,d),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-disabled":s||void 0,"data-pressed":a||void 0,"data-selected":o||void 0,"data-hovered":f||void 0,"data-focus-visible":u||void 0},x.createElement(TN.Provider,{value:{isSelected:o}},p.children))}),UJ=x.createContext(null);function WJ(e){let{children:t}=e,n=(0,x.useContext)(UJ),[r,i]=(0,x.useState)(0),a=(0,x.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return x.createElement(UJ.Provider,{value:a},t)}function GJ(){let e=(0,x.useContext)(UJ);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function KJ(e){let{modalProviderProps:t}=GJ();return x.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function qJ(e){return x.createElement(WJ,null,x.createElement(KJ,e))}function JJ(e){let t=Wx(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=oL();if(!e.portalContainer&&i&&(n=i()),x.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=x.createElement(qJ,r);return DT.createPortal(a,n)}function YJ(e,t){let n=K(e,{labelable:!0}),{hoverProps:r}=NE({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:H(n,r,{role:`tooltip`})}}function XJ(e,t,n){let{isDisabled:r,trigger:i,shouldCloseOnPress:a=!0}=e,o=Xx(),s=(0,x.useRef)(!1),c=(0,x.useRef)(!1),l=()=>{(s.current||c.current)&&t.open(c.current)},u=e=>{!s.current&&!c.current&&t.close(e)};(0,x.useEffect)(()=>{let e=e=>{n&&n.current&&e.key===`Escape`&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[n,t]);let d=()=>{i!==`focus`&&(NC()===`pointer`?s.current=!0:s.current=!1,l())},f=()=>{i!==`focus`&&(c.current=!1,s.current=!1,u())},p=()=>{a&&(c.current=!1,s.current=!1,u(!0))},m=()=>{MC()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=NE({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=bT({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...H(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var ZJ=(0,x.createContext)(null),QJ=(0,x.createContext)(null);function $J(e){let t=RU(e),n=(0,x.useRef)(null),{triggerProps:r,tooltipProps:i}=XJ(e,t,n);return x.createElement(rS,{values:[[ZJ,t],[QJ,{...i,triggerRef:n}]]},x.createElement(yT,{...r,ref:n},e.children))}var eY=(0,x.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=oS(t,n,QJ);let r=(0,x.useContext)(ZJ),i=RU(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=fL(n,a.isOpen),s=t.isExiting||!a.shouldSkipAnimation&&o||!1;return!a.isOpen&&!s?null:x.createElement(JJ,{portalContainer:e},x.createElement(tY,{...t,tooltipRef:n,isExiting:s}))});function tY(e){let t=(0,x.useContext)(ZJ),n=(0,x.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=qF({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=dL(e.tooltipRef,!!a),c=e.isEntering||!t.shouldSkipAnimation&&s||!1,l=iS({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:c,isExiting:e.isExiting,state:t}});e=H(e,r);let{tooltipProps:u}=YJ(e,t),d=K(e,{global:!0});return x.createElement(U.div,{...H(d,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...l.style},"data-placement":a??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},x.createElement(pF.Provider,{value:{...i,placement:a,ref:n}},l.children))}function nY(e){return e&&e.__esModule?e.default:e}var rY={keyboard:{start:`dragDescriptionKeyboard`,end:`endDragKeyboard`},touch:{start:`dragDescriptionTouch`,end:`endDragTouch`},virtual:{start:`dragDescriptionVirtual`,end:`endDragVirtual`}};function iY(e){let{hasDragButton:t,isDisabled:n}=e,r=Ow(nY(mH),`@react-aria/dnd`),i=(0,x.useRef)({options:e,x:0,y:0}).current;i.options=e;let a=(0,x.useRef)(null),[o,s]=(0,x.useState)(!1),c=e=>{a.current=e,s(!!e)},{addGlobalListener:l,removeAllGlobalListeners:u}=dE(),d=(0,x.useRef)(null),f=t=>{if(t.defaultPrevented)return;if(t.stopPropagation(),d.current===`virtual`){t.preventDefault(),g(G(t)),d.current=null;return}typeof e.onDragStart==`function`&&e.onDragStart({type:`dragstart`,x:t.clientX,y:t.clientY});let n=e.getItems();t.dataTransfer.clearData?.(),oV(t.dataTransfer,n);let r=KB.all;if(typeof e.getAllowedDropOperations==`function`){let t=e.getAllowedDropOperations();r=KB.none;for(let e of t)r|=KB[e]||KB.none}bV(r);let a=JB[r]||`none`;t.dataTransfer.effectAllowed=a===`cancel`?`none`:a,typeof e.preview?.current==`function`&&e.preview.current(n,(e,n,r)=>{if(!e)return;let i=e.getBoundingClientRect(),a=t.currentTarget.getBoundingClientRect(),o=t.clientX-a.x,s=t.clientY-a.y;(o>i.width||s>i.height)&&(o=i.width/2,s=i.height/2);let c=o,l=s;typeof n==`number`&&typeof r==`number`&&(c=n,l=r),c=Math.max(0,Math.min(c,i.width)),l=Math.max(0,Math.min(l,i.height));let u=2*Math.round(i.height/2);e.style.height=`${u}px`,t.dataTransfer.setDragImage(e,c,l)}),l(window,`drop`,e=>{e.preventDefault(),e.stopPropagation(),console.warn(`Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.`)},{once:!0}),i.x=t.clientX,i.y=t.clientY;let o=G(t);requestAnimationFrame(()=>{c(o)})},p=t=>{t.stopPropagation(),(t.clientX!==i.x||t.clientY!==i.y)&&(typeof e.onDragMove==`function`&&e.onDragMove({type:`dragmove`,x:t.clientX,y:t.clientY}),i.x=t.clientX,i.y=t.clientY)},m=t=>{if(t.stopPropagation(),typeof e.onDragEnd==`function`){let n={type:`dragend`,x:t.clientX,y:t.clientY,dropOperation:YB[t.dataTransfer.dropEffect]};_V&&(n.dropOperation=YB[_V]),e.onDragEnd(n)}c(null),u(),bV(KB.none),vV(void 0)};(0,x.useEffect)(()=>()=>{if(a.current&&(!a.current.isConnected||parseInt(x.version,10)<17)){if(typeof i.options.onDragEnd==`function`){let e={type:`dragend`,x:0,y:0,dropOperation:YB[_V||`none`]};i.options.onDragEnd(e)}c(null),bV(KB.none),vV(void 0)}},[i]);let h=e=>{(e.pointerType===`keyboard`||e.pointerType===`virtual`)&&g(e.target)},g=e=>{if(typeof i.options.onDragStart==`function`){let t=e.getBoundingClientRect();i.options.onDragStart({type:`dragstart`,x:t.x+t.width/2,y:t.y+t.height/2})}EV({element:e,items:i.options.getItems(),allowedDropOperations:typeof i.options.getAllowedDropOperations==`function`?i.options.getAllowedDropOperations():[`move`,`copy`,`link`],onDragEnd(e){c(null),typeof i.options.onDragEnd==`function`&&i.options.onDragEnd(e)}},r),c(e)},_=iV(),v=o?rY[_].end:rY[_].start,y=mA(r.format(v)),b={};return t||(b={...y,onPointerDown(e){if(d.current=iC(e.nativeEvent)?`virtual`:e.pointerType,e.width<1&&e.height<1&&QS()&&eC())d.current=`virtual`;else{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,i=t.width/2,a=t.height/2;Math.abs(n-i)<=.5&&Math.abs(r-a)<=.5?d.current=`virtual`:d.current=e.pointerType}},onKeyDownCapture(e){G(e)===e.currentTarget&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation())},onKeyUpCapture(e){G(e)===e.currentTarget&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),g(G(e)))},onClick(e){(rC(e.nativeEvent)||d.current===`virtual`)&&(e.preventDefault(),e.stopPropagation(),g(G(e)))}}),n?{dragProps:{draggable:`false`},dragButtonProps:{},isDragging:!1}:{dragProps:{...b,draggable:`true`,onDragStart:f,onDrag:p,onDragEnd:m},dragButtonProps:{...y,onPress:h},isDragging:o}}var aY=W_([`inline-flex shrink-0 cursor-default items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap`,`motion-press`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:opacity-50`,`data-pending:opacity-70`],{variants:{variant:{primary:`bg-primary text-primary-foreground data-hovered:bg-primary-hover data-pressed:bg-primary-hover`,secondary:`border border-border bg-secondary text-secondary-foreground data-hovered:border-border-strong data-hovered:bg-secondary-hover data-pressed:bg-secondary-hover`,ghost:`text-foreground-secondary data-hovered:bg-secondary data-hovered:text-foreground data-pressed:bg-secondary-hover`,danger:`bg-destructive text-destructive-foreground data-hovered:opacity-90 data-pressed:opacity-90`},size:{sm:`h-8 px-3 text-sm`,md:`h-10 px-4 text-base`},fullWidth:{true:`w-full`}},defaultVariants:{variant:`primary`,size:`md`}}),oY={sm:14,md:16};function q({children:e,icon:t,onPress:n,type:r=`button`,isDisabled:i=!1,isPending:a=!1,autoFocus:o=!1,size:s,...c}){let l=a?Qy:t;return(0,S.jsxs)(mD,{className:aY({size:s,...c}),type:r,isDisabled:i,isPending:a,autoFocus:o,...n&&{onPress:n},children:[l&&(0,S.jsx)(l,{"aria-hidden":!0,size:oY[s??`md`],...a&&{className:`animate-spin`}}),e]})}var sY=`flex min-w-0 flex-col rounded-xl border border-border bg-card`;function cY({title:e,description:t,actions:n,footer:r,children:i}){let a=(0,x.useId)();return(0,S.jsxs)(`section`,{className:sY,...e!==void 0&&{"aria-labelledby":a},children:[e!==void 0&&(0,S.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-b border-border px-6 py-4`,children:[(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,S.jsx)(`h2`,{id:a,className:`font-display text-lg font-semibold text-foreground`,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:`text-sm text-foreground-muted`,children:t})]}),n!==void 0&&(0,S.jsx)(`div`,{className:`flex shrink-0 items-center gap-3`,children:n})]}),i!==void 0&&(0,S.jsx)(`div`,{className:`flex flex-1 flex-col gap-5 p-6`,children:i}),r!==void 0&&(0,S.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 border-t border-border px-6 py-3`,children:r})]})}var lY=`group inline-flex cursor-default items-center gap-2 text-base text-foreground data-disabled:text-foreground-muted`,uY=`flex size-4 shrink-0 items-center justify-center rounded-sm border border-input-border bg-input text-primary-foreground transition-colors motion-fast group-data-hovered:border-border-strong group-data-selected:border-primary group-data-selected:bg-primary group-data-indeterminate:border-primary group-data-indeterminate:bg-primary group-data-focus-visible:ring-2 group-data-focus-visible:ring-ring group-data-focus-visible:ring-offset-2 group-data-focus-visible:ring-offset-background group-data-disabled:opacity-50`;function dY({label:e,isSelected:t,defaultSelected:n,onChange:r,isIndeterminate:i=!1,isDisabled:a=!1,name:o,value:s}){return(0,S.jsx)(QA,{className:lY,isIndeterminate:i,isDisabled:a,...t!==void 0&&{isSelected:t},...n!==void 0&&{defaultSelected:n},...r&&{onChange:r},...o!==void 0&&{name:o},...s!==void 0&&{value:s},children:t=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:uY,children:t.isIndeterminate?(0,S.jsx)(mb,{"aria-hidden":!0,size:12}):t.isSelected&&(0,S.jsx)(Av,{"aria-hidden":!0,size:12})}),e]})})}var fY=`text-sm font-medium text-foreground`,pY=`sr-only`,mY=`text-destructive`,hY=`text-sm text-foreground-muted`,gY=`motion-rise text-sm text-destructive`,_Y=`w-full rounded-md border border-input-border bg-input px-3 text-base text-foreground transition-colors motion-fast outline-none data-hovered:border-border-strong data-focused:border-input-focus data-focused:ring-1 data-focused:ring-input-focus data-focus-visible:border-input-focus data-focus-visible:ring-1 data-focus-visible:ring-input-focus data-invalid:border-destructive data-invalid:data-focused:ring-destructive data-disabled:bg-background-secondary data-disabled:text-foreground-muted`,vY=`${_Y} h-10`,yY=`layer-overlay motion-float overflow-auto rounded-md border border-border bg-background-elevated p-1 shadow-lg outline-none`,bY=`flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-none data-focused:bg-secondary data-hovered:bg-secondary data-disabled:text-foreground-subtle`,xY=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`sm`}}),SY=`${vY} flex items-center tabular-nums data-focus-within:border-input-focus data-focus-within:ring-1 data-focus-within:ring-input-focus`,CY=`rounded-sm px-0.5 outline-none data-placeholder:text-foreground-subtle data-focused:bg-primary data-focused:text-primary-foreground`;function wY(e){if(e===null)return null;try{return OO(e)}catch{return null}}function TY({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,isRequired:c=!1,isDisabled:l=!1,isReadOnly:u=!1,width:d}){let f=a===void 0?null:wY(a);return(0,S.jsxs)(NB,{className:xY({width:d}),isRequired:c,isDisabled:l,isReadOnly:u,isInvalid:r!==void 0,...i!==void 0&&{value:wY(i)},...f&&{defaultValue:f},...o&&{onChange:e=>o(e?e.toString():null)},...s!==void 0&&{name:s},children:[(0,S.jsxs)(LE,{className:t?pY:fY,children:[e,c&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(PB,{className:SY,children:e=>(0,S.jsx)(LB,{segment:e,className:CY})}),n!==void 0&&(0,S.jsx)(bD,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(yA,{className:gY,children:r})]})}var EY=`layer-toast motion-float rounded-md bg-foreground px-2 py-1 text-xs font-medium text-background shadow-md`;function DY({content:e,children:t,placement:n=`top`}){return(0,S.jsxs)($J,{delay:500,children:[t,(0,S.jsx)(eY,{className:EY,placement:n,offset:6,children:e})]})}var OY=W_([`inline-flex shrink-0 cursor-default items-center justify-center rounded-md`,`motion-press`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:opacity-50`],{variants:{variant:{ghost:`text-foreground-secondary data-hovered:bg-secondary data-hovered:text-foreground data-pressed:bg-secondary-hover`,secondary:`border border-border bg-secondary text-secondary-foreground data-hovered:border-border-strong data-hovered:bg-secondary-hover data-pressed:bg-secondary-hover`},size:{sm:`size-8`,md:`size-10`}},defaultVariants:{variant:`ghost`,size:`md`}}),kY={sm:16,md:18};function AY({label:e,icon:t,onPress:n,isDisabled:r=!1,size:i,variant:a}){return(0,S.jsx)(DY,{content:e,children:(0,S.jsx)(mD,{className:OY({size:i,variant:a}),"aria-label":e,isDisabled:r,...n&&{onPress:n},children:(0,S.jsx)(t,{"aria-hidden":!0,size:kY[i??`md`]})})})}var jY=W_(`fixed inset-0 layer-overlay flex bg-scrim motion-scrim`,{variants:{placement:{center:`items-center justify-center p-4`,side:`justify-end`}},defaultVariants:{placement:`center`}}),MY=W_(`flex w-full flex-col overflow-hidden border-border bg-background-elevated shadow-xl outline-none`,{variants:{placement:{center:`max-h-full rounded-lg border motion-pop`,side:`h-full border-l motion-sheet`},size:{sm:`max-w-sm`,md:`max-w-lg`,lg:`max-w-2xl`}},defaultVariants:{placement:`center`,size:`md`}}),NY=W_(`flex min-h-0 flex-col outline-none`,{variants:{placement:{center:``,side:`h-full`}},defaultVariants:{placement:`center`}}),PY=`flex items-start justify-between gap-4 px-6 pt-5 pb-2`,FY=`pt-1 text-lg font-semibold tracking-tight text-foreground`,IY=`min-h-0 flex-1 overflow-auto px-6 py-2 text-base text-foreground-secondary`;function LY({isOpen:e,onOpenChange:t,onClosed:n,title:r,children:i,footer:a,closeLabel:o,role:s=`dialog`,size:c,placement:l}){let u=(0,x.useRef)({isOpen:e,onClosed:n});(0,x.useEffect)(()=>{u.current={isOpen:e,onClosed:n}});let d=(0,x.useCallback)(()=>()=>{u.current.isOpen||u.current.onClosed?.()},[]);return(0,S.jsx)(qU,{ref:d,className:jY({placement:l}),isOpen:e,onOpenChange:t,isDismissable:s===`dialog`,children:(0,S.jsx)(GU,{className:MY({size:c,placement:l}),children:(0,S.jsx)(OR,{className:NY({placement:l}),role:s,children:({close:e})=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`div`,{className:PY,children:[(0,S.jsx)(vD,{slot:`title`,className:FY,children:r}),o!==void 0&&(0,S.jsx)(AY,{label:o,icon:Ax,size:`sm`,onPress:e})]}),(0,S.jsx)(`div`,{className:IY,children:i}),a!==void 0&&(0,S.jsx)(`div`,{className:`flex items-center justify-end gap-2 px-6 pt-4 pb-5`,children:a})]})})})})}var RY=W_(`flex min-w-0 flex-col gap-4`,{variants:{frame:{box:`rounded-md border border-border p-4`,none:``}},defaultVariants:{frame:`box`}}),zY=W_(``,{variants:{hidden:{false:`${fY} px-1`,true:`sr-only`}},defaultVariants:{hidden:!1}}),BY=hY;function VY({legend:e,description:t,isLegendHidden:n=!1,children:r}){return(0,S.jsxs)(`fieldset`,{className:RY({frame:n?`none`:`box`}),children:[(0,S.jsx)(`legend`,{className:zY({hidden:n}),children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:BY,children:t}),r]})}var HY={image:[`image/jpeg`,`image/png`,`image/webp`],csv:[`text/csv`,`.csv`]};function UY({children:e,icon:t,accept:n,onSelect:r,isPending:i=!1,variant:a=`secondary`,size:o=`md`}){return(0,S.jsx)(CH,{acceptedFileTypes:[...HY[n]],onSelect:e=>{let t=e?.[0];t&&r(t)},children:(0,S.jsx)(q,{variant:a,size:o,isPending:i,...t&&{icon:t},children:e})})}var WY=W_(`flex flex-col`,{variants:{gap:G_},defaultVariants:{gap:4}});function GY({onSubmit:e,label:t,children:n,gap:r}){return(0,S.jsx)(NA,{className:WY({gap:r}),validationBehavior:`aria`,...t!==void 0&&{"aria-label":t},onSubmit:t=>{t.preventDefault(),e()},children:n})}var KY=W_(`grid`,{variants:{gap:G_,columns:{1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`}},defaultVariants:{gap:4,columns:2}});function qY({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:KY(n),children:t})}var JY=W_(`text-foreground tracking-tight`,{variants:{size:{sm:`text-base font-semibold`,md:`text-lg font-semibold`,lg:`text-xl font-semibold`,xl:`text-2xl font-semibold`,display:`font-display text-3xl font-bold`}}}),YY={1:`display`,2:`lg`,3:`md`,4:`sm`},XY={1:`h1`,2:`h2`,3:`h3`,4:`h4`};function ZY({level:e,size:t,children:n}){let r=XY[e];return(0,S.jsx)(r,{className:JY({size:t??YY[e]}),children:n})}var QY=W_(`flex flex-row`,{variants:{gap:G_,align:{start:`items-start`,center:`items-center`,end:`items-end`,baseline:`items-baseline`,stretch:`items-stretch`},justify:{start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`},wrap:{true:`flex-wrap`}},defaultVariants:{gap:2,align:`center`,justify:`start`}});function $Y({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:QY(n),children:t})}var eX=W_([`rounded-sm underline underline-offset-2 transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:no-underline data-disabled:opacity-50`],{variants:{tone:{default:`text-foreground decoration-border-strong data-hovered:decoration-current`,muted:`text-foreground-secondary decoration-border data-hovered:text-foreground data-hovered:decoration-current`}},defaultVariants:{tone:`default`}});function tX({href:e,children:t,opensInNewTab:n=!1,isDisabled:r=!1,tone:i}){return(0,S.jsx)(FE,{className:eX({tone:i}),href:e,isDisabled:r,...n&&{target:`_blank`,rel:`noopener noreferrer`},children:t})}var nX=W_(`shrink-0`,{variants:{size:{sm:`h-5 w-5`,md:`h-6 w-6`,lg:`h-8 w-8`}},defaultVariants:{size:`md`}}),rX=`fill-brand-fill`,iX=`fill-foreground`;function aX({label:e,size:t}){return(0,S.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 90 101`,className:nX({size:t}),children:[(0,S.jsx)(`path`,{className:rX,d:`M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z`}),(0,S.jsx)(`path`,{className:iX,d:`M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z`}),(0,S.jsx)(`path`,{className:iX,d:`M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z`})]})}var oX=`${yY} min-w-40`,sX=`outline-none`,cX=W_(bY,{variants:{tone:{default:`text-foreground`,danger:`text-destructive`}},defaultVariants:{tone:`default`}});function lX({trigger:e,actions:t,onAction:n,placement:r=`bottom end`}){return(0,S.jsxs)(gR,{children:[e,(0,S.jsx)(gL,{className:oX,placement:r,children:(0,S.jsx)(vR,{className:sX,onAction:e=>n(String(e)),disabledKeys:t.filter(e=>e.isDisabled).map(e=>e.id),children:t.map(({id:e,label:t,icon:n,tone:r})=>(0,S.jsxs)(CR,{id:e,className:cX({tone:r}),textValue:t,children:[n&&(0,S.jsx)(n,{"aria-hidden":!0,size:16}),t]},e))})})]})}var uX=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`sm`}}),dX=`${vY} tabular-nums placeholder:text-foreground-subtle`;function fX({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,minValue:s,maxValue:c,isInteger:l=!1,name:u,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,width:m}){return(0,S.jsxs)($U,{className:uX({width:m}),isRequired:d,isDisabled:f,isReadOnly:p,isInvalid:r!==void 0,formatOptions:l?{maximumFractionDigits:0}:{maximumFractionDigits:6},...i!==void 0&&{value:i??NaN},...a!==void 0&&{defaultValue:a},...o&&{onChange:e=>o(Number.isNaN(e)?null:e)},...s!==void 0&&{minValue:s},...c!==void 0&&{maxValue:c},...u!==void 0&&{name:u},children:[(0,S.jsxs)(LE,{className:t?pY:fY,children:[e,d&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(ij,{className:dX}),n!==void 0&&(0,S.jsx)(bD,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(yA,{className:gY,children:r})]})}var pX=`group relative flex w-full items-center`,mX=`pointer-events-none absolute left-3 text-foreground-muted`,hX=`h-10 w-full rounded-lg border border-border-strong bg-background pr-9 pl-9 text-base text-foreground placeholder:text-foreground-subtle outline-none transition-colors motion-fast data-hovered:border-foreground-subtle data-focused:border-ring data-focused:ring-2 data-focused:ring-ring`,gX=`absolute right-2 flex h-6 w-6 items-center justify-center rounded-sm text-foreground-muted outline-none data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring group-data-empty:hidden`;function _X({label:e,placeholder:t,value:n,onChange:r,clearLabel:i}){return(0,S.jsxs)(BW,{"aria-label":e,className:pX,value:n,onChange:r,children:[(0,S.jsx)(Jb,{"aria-hidden":!0,size:16,className:mX}),(0,S.jsx)(ij,{className:hX,...t!==void 0&&{placeholder:t}}),(0,S.jsx)(mD,{"aria-label":i,className:gX,children:(0,S.jsx)(Ax,{"aria-hidden":!0,size:16})})]})}var vX=`inline-flex flex-wrap gap-1`,yX=`inline-flex h-8 cursor-default items-center rounded-md px-3 text-sm font-medium text-foreground-secondary transition-colors motion-fast outline-none data-hovered:text-foreground data-selected:bg-background-tertiary data-selected:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle`;function bX({label:e,options:t,selected:n,onChange:r}){return(0,S.jsx)(BJ,{"aria-label":e,className:vX,selectionMode:`single`,disallowEmptySelection:!0,selectedKeys:[n],onSelectionChange:e=>{let[t]=e;t!==void 0&&String(t)!==n&&r(String(t))},children:t.map(e=>(0,S.jsx)(HJ,{id:e.id,className:yX,isDisabled:e.isDisabled??!1,children:e.label},e.id))})}var xX=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),SX=`${vY} flex cursor-default items-center justify-between gap-2 text-left`,CX=`min-w-0 flex-1 truncate data-placeholder:text-foreground-subtle`,wX=`shrink-0 text-foreground-muted`,TX=`${yY} max-h-72 min-w-(--trigger-width)`,EX=`outline-none`,DX=`${bY} justify-between text-foreground`;function OX({label:e,isLabelHidden:t=!1,options:n,value:r,defaultValue:i,onChange:a,placeholder:o,description:s,errorMessage:c,isRequired:l=!1,isDisabled:u=!1,name:d,width:f}){return(0,S.jsxs)(XW,{className:xX({width:f}),isRequired:l,isDisabled:u,isInvalid:c!==void 0,...r!==void 0&&{value:r},...i!==void 0&&{defaultValue:i},...a&&{onChange:e=>e!==null&&a(String(e))},...o!==void 0&&{placeholder:o},...d!==void 0&&{name:d},children:[(0,S.jsxs)(LE,{className:t?pY:fY,children:[e,l&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsxs)(mD,{className:SX,children:[(0,S.jsx)(eG,{className:CX}),(0,S.jsx)(Mv,{"aria-hidden":!0,size:16,className:wX})]}),s!==void 0&&(0,S.jsx)(bD,{slot:`description`,className:`text-sm text-foreground-muted`,children:s}),(0,S.jsx)(yA,{className:gY,children:c}),(0,S.jsx)(gL,{className:TX,children:(0,S.jsx)(iF,{className:EX,children:n.map(e=>(0,S.jsx)(lF,{id:e.id,className:DX,textValue:e.label,children:t=>(0,S.jsxs)(S.Fragment,{children:[e.label,t.isSelected&&(0,S.jsx)(Av,{"aria-hidden":!0,size:16,className:`shrink-0 text-foreground-secondary`})]})},e.id))})})]})}var kX=W_(`motion-skeleton block shrink-0 bg-background-tertiary`,{variants:{shape:{text:`h-4 rounded-sm`,title:`h-8 rounded-md`,control:`h-10 rounded-md`,block:`h-32 rounded-lg`,square:`size-10 rounded-md`},width:{full:`w-full`,"3/4":`w-3/4`,"1/2":`w-1/2`,"1/3":`w-1/3`,"1/4":`w-1/4`,sm:`w-24`,xs:`w-16`}},compoundVariants:[{shape:`square`,className:`w-10`}],defaultVariants:{shape:`text`,width:`full`}}),AX=`contents`,jX=`sr-only`;function MX({shape:e,width:t}){return(0,S.jsx)(`span`,{"aria-hidden":!0,className:kX({shape:e,width:e===`square`?null:t})})}function NX({label:e,children:t}){return(0,S.jsxs)(`div`,{role:`status`,className:AX,children:[(0,S.jsx)(`span`,{className:jX,children:e}),t]})}var PX=W_(`inline-flex items-center gap-2 text-foreground-secondary`,{variants:{size:{sm:`text-sm`,md:`text-base`}},defaultVariants:{size:`md`}}),FX=`animate-spin`,IX=`sr-only`,LX={sm:16,md:20};function RX({label:e,showLabel:t=!1,size:n}){return(0,S.jsxs)(`span`,{role:`status`,className:PX({size:n}),children:[(0,S.jsx)(Qy,{"aria-hidden":!0,size:LX[n??`md`],className:FX}),(0,S.jsx)(`span`,{className:t?void 0:IX,children:e})]})}var zX=W_(`flex flex-col`,{variants:{gap:G_,align:{stretch:`items-stretch`,start:`items-start`,center:`items-center`,end:`items-end`},fill:{true:`min-h-full`}},defaultVariants:{gap:4,align:`stretch`}});function J({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:zX(n),children:t})}var BX=`flex flex-col gap-1 rounded-xl border border-border bg-card px-5 py-4`,VX=`text-sm font-medium text-foreground-muted`,HX=`font-display text-3xl font-bold text-foreground`;function UX({label:e,value:t,detail:n}){return(0,S.jsxs)(`div`,{role:`group`,"aria-label":e,className:BX,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:VX,children:e}),(0,S.jsx)(`span`,{className:HX,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:n})]})}var WX=`group inline-flex cursor-default items-center gap-2 text-base text-foreground data-disabled:text-foreground-muted`,GX=`flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent bg-border-strong p-0.5 transition-colors motion-base group-data-selected:bg-primary group-data-focus-visible:ring-2 group-data-focus-visible:ring-ring group-data-focus-visible:ring-offset-2 group-data-focus-visible:ring-offset-background group-data-disabled:opacity-50`,KX=`size-3.5 rounded-full bg-background shadow-sm transition-transform motion-base group-data-selected:translate-x-4`,qX=`sr-only`;function JX({label:e,isLabelHidden:t=!1,isSelected:n,defaultSelected:r,onChange:i,isDisabled:a=!1,name:o}){return(0,S.jsxs)(iG,{className:WX,isDisabled:a,...n!==void 0&&{isSelected:n},...r!==void 0&&{defaultSelected:r},...i&&{onChange:i},...o!==void 0&&{name:o},children:[(0,S.jsx)(`span`,{className:GX,children:(0,S.jsx)(`span`,{className:KX})}),t?(0,S.jsx)(`span`,{className:qX,children:e}):e]})}var YX=`overflow-x-auto rounded-xl border border-border bg-card`,XX=`w-full border-separate border-spacing-0 text-left text-base outline-none`,ZX={start:`text-left`,end:`text-right`},QX=W_([`border-b border-border px-4 py-2.5 text-xs font-semibold whitespace-nowrap text-foreground-muted`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,`data-allows-sorting:cursor-default data-hovered:text-foreground`],{variants:{align:ZX},defaultVariants:{align:`start`}}),$X=`inline-flex items-center gap-1`,eZ=`group outline-none transition-colors motion-fast data-hovered:bg-background-secondary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset data-href:cursor-default data-action:cursor-default`,tZ=W_(`border-b border-border px-4 py-3 align-middle text-foreground outline-none group-last:border-b-0 data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,{variants:{align:ZX},defaultVariants:{align:`start`}}),nZ=`px-4 py-12 text-center text-foreground-muted`;function rZ({label:e,columns:t,rows:n,onRowAction:r,sort:i,onSortChange:a,empty:o}){return(0,S.jsx)(`div`,{className:YX,children:(0,S.jsxs)(NK,{"aria-label":e,className:XX,...i&&{sortDescriptor:i},...a&&{onSortChange:e=>a({column:String(e.column),direction:e.direction})},...r&&{onRowAction:e=>r(String(e))},children:[(0,S.jsx)(BK,{children:t.map((e,t)=>(0,S.jsx)(GK,{id:e.id,className:QX({align:e.align}),isRowHeader:t===0,allowsSorting:e.isSortable??!1,textValue:e.label,children:t=>(0,S.jsxs)(`span`,{className:$X,children:[e.label,t.sortDirection===`ascending`&&(0,S.jsx)(gv,{"aria-hidden":!0,size:14}),t.sortDirection===`descending`&&(0,S.jsx)(uv,{"aria-hidden":!0,size:14})]})},e.id))}),(0,S.jsx)(YK,{renderEmptyState:()=>(0,S.jsx)(`div`,{className:nZ,children:o}),children:n.map(e=>(0,S.jsx)($K,{id:e.id,className:eZ,children:t.map(t=>(0,S.jsx)(nq,{className:tZ({align:t.align}),children:e.cells[t.id]},t.id))},e.id))})]})})}var iZ=`flex flex-col gap-4`,aZ=`flex gap-1 border-b border-border`,oZ=`-mb-px cursor-default border-b-2 border-transparent px-3 py-2 text-base font-medium text-foreground-secondary transition-colors motion-fast outline-none data-hovered:text-foreground data-selected:border-primary data-selected:text-foreground data-focus-visible:rounded-sm data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle`,sZ=`outline-none data-focus-visible:rounded-sm data-focus-visible:ring-2 data-focus-visible:ring-ring`;function cZ({label:e,tabs:t,selected:n,defaultSelected:r,onChange:i}){return(0,S.jsxs)(bq,{className:iZ,...n!==void 0&&{selectedKey:n},...r!==void 0&&{defaultSelectedKey:r},...i&&{onSelectionChange:e=>i(String(e))},children:[(0,S.jsx)(Sq,{"aria-label":e,className:aZ,children:t.map(e=>(0,S.jsx)(wq,{id:e.id,className:oZ,isDisabled:e.isDisabled??!1,children:e.label},e.id))}),t.map(e=>(0,S.jsx)(Tq,{id:e.id,className:sZ,children:e.content},e.id))]})}var lZ=W_(`inline-flex h-6 items-center gap-1 rounded-md px-2 text-xs font-medium whitespace-nowrap`,{variants:{tone:{neutral:`bg-secondary text-secondary-foreground`,success:`bg-success-light text-success-foreground`,warning:`bg-warning-light text-warning-foreground`,danger:`bg-error-light text-error-foreground`,info:`bg-info-light text-info-foreground`}},defaultVariants:{tone:`neutral`}});function uZ({icon:e,children:t,...n}){return(0,S.jsxs)(`span`,{className:lZ(n),children:[e&&(0,S.jsx)(e,{"aria-hidden":!0,size:12}),t]})}var dZ=W_(``,{variants:{size:{xs:`text-xs`,sm:`text-sm`,base:`text-base`,lg:`text-lg`},tone:{default:`text-foreground`,secondary:`text-foreground-secondary`,muted:`text-foreground-muted`,danger:`text-destructive`,success:`text-success-foreground`},weight:{regular:`font-normal`,medium:`font-medium`,semibold:`font-semibold`},truncate:{true:`truncate`},mono:{true:`font-mono`}},defaultVariants:{size:`base`,tone:`default`,weight:`regular`}});function Y({as:e=`p`,children:t,...n}){return(0,S.jsx)(e,{className:dZ(n),children:t})}var fZ=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),pZ=`${vY} placeholder:text-foreground-subtle`;function mZ({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,type:c=`text`,placeholder:l,autoComplete:u,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,autoFocus:m=!1,width:h}){return(0,S.jsxs)(jq,{className:fZ({width:h}),type:c,isRequired:d,isDisabled:f,isReadOnly:p,isInvalid:r!==void 0,autoFocus:m,...i!==void 0&&{value:i},...a!==void 0&&{defaultValue:a},...o&&{onChange:o},...s!==void 0&&{name:s},...u!==void 0&&{autoComplete:u},children:[(0,S.jsxs)(LE,{className:t?pY:fY,children:[e,d&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(ij,{className:pZ,...l!==void 0&&{placeholder:l}}),n!==void 0&&(0,S.jsx)(bD,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(yA,{className:gY,children:r})]})}var hZ=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`}},defaultVariants:{width:`full`}}),gZ=`${_Y} min-h-20 resize-y py-2 placeholder:text-foreground-subtle`;function _Z({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,placeholder:c,rows:l=4,isRequired:u=!1,isDisabled:d=!1,isReadOnly:f=!1,width:p}){return(0,S.jsxs)(jq,{className:hZ({width:p}),isRequired:u,isDisabled:d,isReadOnly:f,isInvalid:r!==void 0,...i!==void 0&&{value:i},...a!==void 0&&{defaultValue:a},...o&&{onChange:o},...s!==void 0&&{name:s},children:[(0,S.jsxs)(LE,{className:t?pY:fY,children:[e,u&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(kq,{className:gZ,rows:l,...c!==void 0&&{placeholder:c}}),n!==void 0&&(0,S.jsx)(bD,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(yA,{className:gY,children:r})]})}var vZ={size:{sm:`h-8 w-8`,md:`h-10 w-14`,lg:`h-14 w-20`,full:`aspect-video w-full`},shape:{rounded:`rounded-md`,circle:`rounded-full`}},yZ={size:`md`,shape:`rounded`},bZ=W_(`shrink-0 border border-border bg-background-secondary object-cover`,{variants:vZ,defaultVariants:yZ}),xZ=W_(`flex shrink-0 items-center justify-center border border-dashed border-border-strong bg-background-secondary`,{variants:vZ,defaultVariants:yZ}),SZ=`size-4 text-foreground-subtle`;function CZ({src:e,size:t,shape:n}){return e===void 0?(0,S.jsx)(`span`,{"aria-hidden":`true`,className:xZ({size:t,shape:n}),children:(0,S.jsx)(Sy,{className:SZ})}):(0,S.jsx)(`img`,{src:e,alt:``,loading:`lazy`,className:bZ({size:t,shape:n})})}var wZ=`fixed bottom-4 right-4 layer-toast w-full max-w-sm outline-none`,TZ=`toast-stack`,EZ=`flex items-start gap-3 rounded-lg border border-border bg-background-elevated p-3 shadow-lg outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring`,DZ=W_(`mt-0.5 shrink-0`,{variants:{tone:{neutral:`text-foreground-secondary`,success:`text-success`,danger:`text-destructive`}},defaultVariants:{tone:`neutral`}}),OZ=`flex min-w-0 flex-1 flex-col gap-0.5 pt-0.5`,kZ=`text-sm font-medium text-foreground`,AZ=6e3,jZ={neutral:Ay,success:Bv,danger:Hv},MZ=new TJ({maxVisibleToasts:4});function X(e){let t=MZ.add(e,e.tone===`danger`?{}:{timeout:AZ});return()=>MZ.close(t)}function NZ(){MZ.clear()}function PZ({label:e,closeLabel:t}){return(0,S.jsx)(OJ,{queue:MZ,"aria-label":e,className:wZ,children:(0,S.jsx)(kJ,{className:TZ,children:({toast:e})=>{let n=e.content.tone??`neutral`,r=jZ[n];return(0,S.jsxs)(AJ,{toast:e,className:EZ,children:[(0,S.jsx)(r,{"aria-hidden":!0,size:18,className:DZ({tone:n})}),(0,S.jsxs)(MJ,{className:OZ,children:[(0,S.jsx)(bD,{slot:`title`,className:kZ,children:e.content.title}),e.content.description!==void 0&&(0,S.jsx)(bD,{slot:`description`,className:`text-sm text-foreground-secondary`,children:e.content.description})]}),(0,S.jsx)(AY,{label:t,icon:Ax,size:`sm`,onPress:()=>MZ.close(e.key)})]})}})})}var FZ=`flex h-dvh overflow-hidden bg-background-secondary text-foreground`,IZ=`sr-only layer-toast rounded-md bg-primary px-4 py-2 text-base font-medium text-primary-foreground focus:not-sr-only focus:fixed focus:top-2 focus:left-2`,LZ=`flex w-60 shrink-0 flex-col px-3 py-5`,RZ=`flex items-center gap-2.5 px-2.5 pb-4`,zZ=`min-w-0`,BZ=`truncate text-base font-bold text-foreground`,VZ=`flex-1 overflow-auto`,HZ=`flex flex-col gap-0.5`,UZ=W_([`flex min-h-9 items-center gap-2.5 rounded-md px-2.5 text-base transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring`],{variants:{isCurrent:{true:`bg-card font-semibold text-foreground shadow-sm ring-1 ring-border`,false:`font-medium text-foreground-secondary data-hovered:bg-background-tertiary data-hovered:text-foreground`}},defaultVariants:{isCurrent:!1}}),WZ=`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-foreground-muted transition-colors motion-fast outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring`,GZ=`relative my-2 mr-2 min-w-0 flex-1 overflow-auto rounded-2xl border border-border bg-background shadow-sm outline-none`,KZ=`main`,qZ=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``);function JZ({logo:e,siteName:t,siteDetail:n,navLabel:r,nav:i,skipLabel:a,account:o,children:s}){return(0,S.jsxs)(`div`,{className:FZ,children:[(0,S.jsx)(`a`,{className:IZ,href:`#${KZ}`,children:a}),(0,S.jsxs)(`aside`,{className:LZ,children:[(0,S.jsxs)(`div`,{className:RZ,children:[e,(0,S.jsxs)(`div`,{className:zZ,children:[(0,S.jsx)(`div`,{className:BZ,children:t}),n!==void 0&&(0,S.jsx)(`div`,{className:`truncate text-xs text-foreground-muted`,children:n})]})]}),(0,S.jsx)(`nav`,{"aria-label":r,className:VZ,children:i.map(e=>(0,S.jsxs)(`div`,{role:`group`,...e.label!==void 0&&{"aria-label":e.label},children:[e.label!==void 0&&(0,S.jsx)(`div`,{"aria-hidden":!0,className:`px-2.5 pt-4 pb-1.5 text-xs font-semibold tracking-widest text-foreground-muted uppercase`,children:e.label}),(0,S.jsx)(`ul`,{className:HZ,children:e.items.map(({id:e,label:t,href:n,icon:r,isCurrent:i=!1})=>(0,S.jsx)(`li`,{children:(0,S.jsxs)(FE,{className:UZ({isCurrent:i}),href:n,...i&&{"aria-current":`page`},children:[r&&(0,S.jsx)(r,{"aria-hidden":!0,size:16}),t]})},e))})]},e.id))}),o!==void 0&&(0,S.jsx)(`div`,{className:`border-t border-border pt-3`,children:(0,S.jsx)(lX,{placement:`top start`,actions:o.actions,onAction:o.onAction,trigger:(0,S.jsxs)(mD,{className:WZ,children:[(0,S.jsx)(`span`,{className:`sr-only`,children:o.label}),(0,S.jsx)(`span`,{"aria-hidden":!0,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground`,children:qZ(o.name)}),(0,S.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,S.jsx)(`span`,{className:`truncate text-sm font-semibold text-foreground`,children:o.name}),o.detail!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-xs text-foreground-muted`,children:o.detail})]}),(0,S.jsx)(Rv,{"aria-hidden":!0,size:14})]})})})]}),(0,S.jsx)(`main`,{id:KZ,tabIndex:-1,className:GZ,children:s})]})}var YZ=`flex min-h-dvh items-center justify-center bg-background-secondary p-4 text-foreground`,XZ=`flex w-full max-w-sm flex-col gap-6 rounded-lg border border-border bg-background p-8 shadow-sm`,ZZ=`flex items-center`,QZ=`flex flex-col gap-1`;function $Z({brand:e,title:t,description:n,children:r,footer:i}){return(0,S.jsx)(`main`,{className:YZ,children:(0,S.jsxs)(`div`,{className:XZ,children:[(0,S.jsx)(`div`,{className:ZZ,children:e}),(0,S.jsxs)(`div`,{className:QZ,children:[(0,S.jsx)(ZY,{level:1,size:`lg`,children:t}),n!==void 0&&(0,S.jsx)(Y,{tone:`secondary`,children:n})]}),r,i!==void 0&&(0,S.jsx)(`div`,{className:`border-t border-border pt-4`,children:i})]})})}var eQ={default:`primary`,danger:`danger`};function tQ({isOpen:e,onOpenChange:t,title:n,children:r,confirmLabel:i,cancelLabel:a,onConfirm:o,tone:s=`default`,isPending:c=!1}){return(0,S.jsx)(LY,{isOpen:e,onOpenChange:t,title:n,role:`alertdialog`,size:`sm`,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:()=>t(!1),isDisabled:c,autoFocus:!0,children:a}),(0,S.jsx)(q,{variant:eQ[s],onPress:o,isPending:c,children:i})]}),children:r})}var nQ=`motion-rise flex flex-col items-center gap-4 px-6 py-12 text-center`,rQ=`flex max-w-sm flex-col gap-1`;function iQ({title:e,description:t,icon:n,action:r,level:i=2}){return(0,S.jsxs)(`div`,{className:nQ,children:[n&&(0,S.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-full bg-secondary text-foreground-secondary`,children:(0,S.jsx)(n,{"aria-hidden":!0,size:24})}),(0,S.jsxs)(`div`,{className:rQ,children:[(0,S.jsx)(ZY,{level:i,size:`md`,children:e}),t!==void 0&&(0,S.jsx)(Y,{tone:`secondary`,children:t})]}),r]})}var aQ=`flex items-start justify-between gap-6`;function oQ({title:e,description:t,actions:n}){return(0,S.jsxs)(`header`,{className:aQ,children:[(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(ZY,{level:1,children:e}),t!==void 0&&(0,S.jsx)(Y,{tone:`secondary`,children:t})]}),n!==void 0&&(0,S.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:n})]})}var sQ=`flex min-w-0 flex-col gap-2`,cQ=fY,lQ=hY,uQ=gY,dQ=`flex flex-col gap-2`,fQ=`flex items-start gap-1`,pQ=`min-w-0 flex-1`,mQ=`flex h-10 shrink-0 items-center`,hQ=`rounded-md border border-dashed border-border px-3 py-4 text-sm text-foreground-muted`,gQ=`flex`;function _Q({label:e,description:t,errorMessage:n,items:r,emptyText:i,addLabel:a,onAdd:o,onRemove:s,onMove:c,removeLabel:l,moveUpLabel:u,moveDownLabel:d,isFull:f=!1}){let p=(0,x.useId)();return(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":p,className:sQ,children:[(0,S.jsx)(`span`,{id:p,className:cQ,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:lQ,children:t}),r.length===0?(0,S.jsx)(`p`,{className:hQ,children:i}):(0,S.jsx)(`ol`,{className:dQ,children:r.map((e,t)=>(0,S.jsxs)(`li`,{className:fQ,children:[(0,S.jsx)(`div`,{className:pQ,children:e.content}),(0,S.jsxs)(`div`,{className:mQ,children:[(0,S.jsx)(AY,{size:`sm`,icon:gv,label:u(t+1),isDisabled:t===0,onPress:()=>c(t,t-1)}),(0,S.jsx)(AY,{size:`sm`,icon:uv,label:d(t+1),isDisabled:t===r.length-1,onPress:()=>c(t,t+1)}),(0,S.jsx)(AY,{size:`sm`,icon:gx,label:l(t+1),onPress:()=>s(t)})]})]},e.id))}),n!==void 0&&(0,S.jsx)(`p`,{className:uQ,children:n}),(0,S.jsx)(`div`,{className:gQ,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Pb,isDisabled:f,onPress:o,children:a})})]})}var vQ=`sticky top-0 layer-sticky flex flex-wrap items-center gap-4 rounded-t-2xl border-b border-border bg-background px-6 py-3`,yQ=`inline-flex h-8 shrink-0 items-center gap-1.5 rounded-md border border-border-strong bg-background pr-3 pl-2 text-sm font-medium text-foreground transition-colors motion-fast outline-none data-hovered:bg-background-secondary data-focus-visible:ring-2 data-focus-visible:ring-ring`,bQ=`flex min-w-0 flex-1 flex-col gap-0.5`,xQ=`flex min-w-0 items-center gap-2`,SQ=`flex shrink-0 items-center gap-2`;function CQ({label:e,back:t,title:n,status:r,actions:i}){return(0,S.jsxs)(`div`,{role:`region`,"aria-label":e,className:vQ,children:[t!==void 0&&(0,S.jsxs)(FE,{href:t.href,className:yQ,children:[(0,S.jsx)(Pv,{"aria-hidden":!0,size:16}),t.label]}),(0,S.jsxs)(`div`,{className:bQ,children:[n!==void 0&&(0,S.jsx)(`h1`,{className:`truncate text-lg font-semibold text-foreground`,children:n}),(0,S.jsx)(`div`,{className:xQ,"aria-live":`polite`,children:r})]}),(0,S.jsx)(`div`,{className:SQ,children:i})]})}var wQ=`flex min-w-0 flex-col gap-1.5`,TQ=W_(``,{variants:{isLabelHidden:{true:pY,false:fY}},defaultVariants:{isLabelHidden:!1}}),EQ=mY,DQ=hY,OQ=gY,kQ=`flex min-w-0 items-center gap-3`,AQ=`h-14 w-20 shrink-0 rounded-md border border-border bg-background-secondary object-cover`,jQ=`flex h-14 w-20 shrink-0 items-center justify-center rounded-md border border-dashed border-border-strong bg-background-secondary`,MQ=`size-5 text-foreground-subtle`,NQ=`min-w-0 flex-1 truncate text-sm text-foreground-secondary`,PQ=`grid grid-cols-2 gap-3 py-2 outline-none sm:grid-cols-3`,FQ=`flex cursor-default flex-col gap-1.5 rounded-md border border-border bg-card p-1.5 outline-none transition-colors motion-fast data-hovered:border-border-strong data-focus-visible:ring-2 data-focus-visible:ring-input-focus data-selected:border-input-focus data-selected:ring-1 data-selected:ring-input-focus`,IQ=`aspect-video w-full rounded-sm bg-background-secondary object-cover`,LQ=`truncate px-0.5 text-sm text-foreground`,RQ=`py-6 text-center text-sm text-foreground-muted`,zQ=[`image/jpeg`,`image/png`,`image/webp`];function BQ({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,isRequired:i=!1,value:a,images:o,onChange:s,chooseLabel:c,changeLabel:l,noneText:u,dialogTitle:d,closeLabel:f,emptyText:p,onUpload:m,uploadLabel:h,uploadHint:g,uploadError:_}){let v=(0,x.useId)(),[y,b]=(0,x.useState)(!1),[C,w]=(0,x.useState)(!1),T=async e=>{if(e&&m){w(!0);try{await m(e),b(!1)}catch{}finally{w(!1)}}},E=o.find(e=>e.name===a);return(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":v,className:wQ,children:[(0,S.jsxs)(`span`,{id:v,className:TQ({isLabelHidden:t}),children:[e,i&&(0,S.jsx)(`span`,{"aria-hidden":`true`,className:EQ,children:` *`})]}),(0,S.jsxs)(`div`,{className:kQ,children:[E?(0,S.jsx)(`img`,{src:E.url,alt:``,loading:`lazy`,className:AQ}):(0,S.jsx)(`span`,{className:jQ,children:(0,S.jsx)(Sy,{"aria-hidden":`true`,className:MQ})}),(0,S.jsx)(`span`,{className:NQ,children:a??u}),(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>b(!0),children:a===null?c:l})]}),n!==void 0&&(0,S.jsx)(`p`,{className:DQ,children:n}),r!==void 0&&(0,S.jsx)(`p`,{className:OQ,children:r}),(0,S.jsxs)(LY,{isOpen:y,onOpenChange:b,title:d,closeLabel:f,size:`lg`,children:[m&&h!==void 0&&(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-3 pt-2`,children:[(0,S.jsx)(CH,{acceptedFileTypes:zQ,onSelect:e=>void T(e?.[0]),children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:bx,isPending:C,children:h})}),_===void 0?g!==void 0&&(0,S.jsx)(`p`,{className:`min-w-0 text-sm text-foreground-muted`,children:g}):(0,S.jsx)(`p`,{role:`alert`,className:`min-w-0 text-sm text-destructive`,children:_})]}),(0,S.jsx)(iF,{"aria-label":d,layout:`grid`,selectionMode:`single`,autoFocus:!0,selectedKeys:a===null?[]:[a],onSelectionChange:e=>{let[t]=e===`all`?[]:[...e];typeof t==`string`&&s(t),b(!1)},renderEmptyState:()=>(0,S.jsx)(`p`,{className:RQ,children:p}),className:PQ,children:o.map(e=>(0,S.jsxs)(lF,{id:e.name,textValue:e.name,className:FQ,children:[(0,S.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:IQ}),(0,S.jsx)(`span`,{className:LQ,children:e.name})]},e.name))})]})]})}var VQ=`mx-auto flex w-full max-w-7xl flex-col gap-6 xl:flex-row xl:items-start`,HQ=`flex min-w-0 flex-1 flex-col gap-6`,UQ=`flex w-full shrink-0 flex-col gap-6 xl:sticky xl:top-24 xl:w-80`;function WQ({asideLabel:e,children:t,aside:n}){return(0,S.jsxs)(`div`,{className:VQ,children:[(0,S.jsx)(`div`,{className:HQ,children:t}),(0,S.jsx)(`aside`,{"aria-label":e,className:UQ,children:n})]})}var GQ=`grid grid-cols-2 gap-4 outline-none sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5`,KQ=`motion-press flex cursor-default flex-col gap-2 rounded-lg border border-border bg-card p-2 outline-none data-hovered:border-border-strong data-hovered:shadow-sm data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,qQ=`aspect-video w-full rounded-md bg-background-secondary object-cover`,JQ=`flex min-w-0 flex-col px-1 pb-1`,YQ=`truncate text-sm font-medium text-foreground`,XQ=`col-span-full py-10 text-center text-sm text-foreground-muted`;function ZQ({label:e,items:t,onAction:n,emptyText:r}){return(0,S.jsx)(wU,{"aria-label":e,layout:`grid`,onAction:e=>n(String(e)),renderEmptyState:()=>(0,S.jsx)(`p`,{className:XQ,children:r}),className:GQ,children:t.map(e=>(0,S.jsxs)(EU,{id:e.id,textValue:e.name,className:KQ,children:[(0,S.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:qQ}),(0,S.jsxs)(`span`,{className:JQ,children:[(0,S.jsx)(`span`,{className:YQ,children:e.name}),e.note!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:e.note})]})]},e.id))})}var QQ=`flex flex-col gap-4 pb-4 outline-none`,$Q=`py-6 text-center text-sm text-foreground-muted`,e$=`flex flex-col gap-1`,t$=`px-2 pb-1 text-xs font-medium tracking-wide text-foreground-muted uppercase`,n$=`flex cursor-default items-center gap-3 rounded-md px-2 py-2 outline-none transition-colors motion-fast data-hovered:bg-secondary data-focused:bg-secondary data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,r$=`flex min-w-0 flex-col`,i$=`text-sm font-medium text-foreground`;function a$({isOpen:e,onOpenChange:t,onClosed:n,title:r,closeLabel:i,groups:a,onChoose:o,emptyText:s}){let c=a.filter(e=>e.options.length>0);return(0,S.jsx)(LY,{isOpen:e,onOpenChange:t,...n!==void 0&&{onClosed:n},title:r,closeLabel:i,size:`md`,children:c.length===0?(0,S.jsx)(`p`,{className:$Q,children:s}):(0,S.jsx)(iF,{"aria-label":r,autoFocus:`first`,selectionMode:`none`,className:QQ,onAction:e=>{o(String(e)),t(!1)},children:c.map(e=>(0,S.jsxs)(cF,{id:`group:${e.id}`,className:e$,children:[(0,S.jsx)(SN,{className:t$,children:e.label}),e.options.map(({id:e,label:t,description:n,icon:r})=>(0,S.jsxs)(lF,{id:e,textValue:n===void 0?t:`${t} ${n}`,className:n$,children:[r&&(0,S.jsx)(`span`,{className:`grid size-9 shrink-0 place-items-center rounded-md bg-secondary text-secondary-foreground`,children:(0,S.jsx)(r,{"aria-hidden":!0,size:18})}),(0,S.jsxs)(`span`,{className:r$,children:[(0,S.jsx)(`span`,{className:i$,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`text-sm text-foreground-secondary`,children:n})]})]},e))]},e.id))})})}var o$=`flex min-w-0 items-start gap-3 overflow-x-auto pb-2`,s$=W_(`flex min-w-48 flex-1 basis-0 flex-col gap-2 rounded-lg border bg-background-secondary p-2 transition-colors motion-fast`,{variants:{state:{default:`border-border`,target:`border-ring ring-2 ring-ring`}},defaultVariants:{state:`default`}}),c$=`flex items-center justify-between gap-2 px-1 pt-1`,l$=`flex min-w-0 items-center gap-2 text-sm font-semibold text-foreground`,u$=`truncate`,d$=`shrink-0 text-sm text-foreground-muted`,f$=W_(`size-2 shrink-0 rounded-full`,{variants:{tone:{neutral:`bg-foreground-subtle`,success:`bg-success`,danger:`bg-destructive`}},defaultVariants:{tone:`neutral`}}),p$=`flex flex-col gap-2`,m$=`rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted`,h$=W_(`motion-rise flex min-w-0 items-start gap-1 rounded-md border border-border bg-card p-1 shadow-sm`,{variants:{state:{default:``,dragging:`opacity-50`}},defaultVariants:{state:`default`}}),g$=`flex min-w-0 flex-1 cursor-grab flex-col gap-1 rounded-sm px-2 py-1 text-left outline-none transition-colors motion-fast data-hovered:bg-secondary data-pressed:cursor-grabbing data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,_$=`truncate text-sm font-medium text-foreground`,v$=`application/x-velocity-cms-board-card`;function y$({label:e,columns:t,emptyText:n,onOpen:r,onMove:i,moveLabel:a}){let o=new Map(t.flatMap(e=>e.items.map(t=>[t.id,e.id]))),s=(e,t)=>{o.get(e)!==t&&i(e,t)};return(0,S.jsx)(`div`,{role:`group`,"aria-label":e,className:o$,children:t.map(e=>(0,S.jsx)(b$,{column:e,columns:t,emptyText:n,onOpen:r,onMove:s,moveLabel:a},e.id))})}function b$({column:e,columns:t,emptyText:n,onOpen:r,onMove:i,moveLabel:a}){let o=(0,x.useId)(),s=(0,x.useRef)(null),[c,l]=(0,x.useState)(!1),{dropProps:u}=yH({ref:s,getDropOperation:e=>e.has(v$)?`move`:`cancel`,onDropEnter:()=>l(!0),onDropExit:()=>l(!1),onDrop:t=>{l(!1);let[n]=t.items.filter(mV);n?.getText(v$).then(t=>i(t,e.id))}}),d=t.filter(t=>t.id!==e.id).map(e=>({id:e.id,label:e.title}));return(0,S.jsxs)(`section`,{ref:s,"aria-labelledby":o,className:s$({state:c?`target`:`default`}),...u,children:[(0,S.jsxs)(`div`,{className:c$,children:[(0,S.jsxs)(`h3`,{id:o,className:l$,children:[(0,S.jsx)(`span`,{className:f$({tone:e.tone})}),(0,S.jsx)(`span`,{className:u$,children:e.title})]}),(0,S.jsx)(`span`,{className:d$,children:e.count})]}),e.items.length===0?(0,S.jsx)(`p`,{className:m$,children:n}):(0,S.jsx)(`ul`,{className:p$,children:e.items.map(e=>(0,S.jsx)(x$,{item:e,elsewhere:d,onOpen:r,onMove:i,moveLabel:a},e.id))}),e.more!==void 0&&(0,S.jsx)(`p`,{className:`px-1 text-sm text-foreground-muted`,children:e.more})]})}function x$({item:e,elsewhere:t,onOpen:n,onMove:r,moveLabel:i}){let{dragProps:a,isDragging:o}=iY({getItems:()=>[{[v$]:e.id}],getAllowedDropOperations:()=>[`move`]});return(0,S.jsxs)(`li`,{className:h$({state:o?`dragging`:`default`}),...a,children:[(0,S.jsxs)(mD,{className:g$,onPress:()=>n(e.id),children:[(0,S.jsx)(`span`,{className:_$,children:e.title}),e.detail!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:e.detail}),e.notes!==void 0&&e.notes.length>0&&(0,S.jsx)(`span`,{className:`flex flex-wrap items-center gap-1 pt-1`,children:e.notes.map(e=>(0,S.jsx)(uZ,{tone:e.tone??`neutral`,children:e.text},e.text))})]}),t.length>0&&(0,S.jsx)(lX,{trigger:(0,S.jsx)(AY,{size:`sm`,icon:fv,label:i(e.title)}),actions:t,onAction:t=>r(e.id,t)})]})}var S$=`flex min-w-0 flex-col gap-2`,C$=fY,w$=hY,T$=gY,E$=`flex flex-col gap-2`,D$=`rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted`,O$=`flex`,k$=W_(`motion-rise min-w-0 rounded-lg border bg-card`,{variants:{state:{default:`border-border`,problem:`border-destructive`,dragging:`border-border opacity-50`,target:`border-ring ring-2 ring-ring`}},defaultVariants:{state:`default`}}),A$=`flex items-center gap-1 py-1 pr-2 pl-1`,j$=`grid h-8 w-6 shrink-0 cursor-grab place-items-center rounded-md text-foreground-subtle outline-none transition-colors motion-fast data-hovered:bg-secondary data-hovered:text-foreground data-pressed:cursor-grabbing data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,M$=`min-w-0 flex-1`,N$=`flex w-full min-w-0 cursor-default items-center gap-3 rounded-md px-2 py-2 text-left outline-none transition-colors motion-fast data-hovered:bg-secondary data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,P$=`shrink-0 text-foreground-muted`,F$=W_(`grid size-8 shrink-0 place-items-center rounded-md`,{variants:{tone:{default:`bg-secondary text-secondary-foreground`,quiet:`bg-background-secondary text-foreground-subtle`}},defaultVariants:{tone:`default`}}),I$=`flex min-w-0 flex-1 flex-col`,L$=W_(`truncate text-sm font-medium`,{variants:{tone:{default:`text-foreground`,quiet:`text-foreground-muted`}},defaultVariants:{tone:`default`}}),R$=`flex shrink-0 items-center`,z$=`border-t border-border p-4`;function B$({label:e,description:t,errorMessage:n,items:r,openIds:i,onOpenChange:a,emptyText:o,addLabel:s,onAdd:c,isFull:l=!1,onMove:u,onAction:d,moveUpLabel:f,moveDownLabel:p,moreLabel:m,dragLabel:h,revealId:g}){let _=(0,x.useId)(),v=r.map(e=>e.id),y=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(g===void 0)return;let e=[...y.current?.children??[]].find(e=>e instanceof HTMLElement&&e.dataset.section===g);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`})},[g]),(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":_,className:S$,children:[(0,S.jsx)(`span`,{id:_,className:C$,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:w$,children:t}),r.length===0?(0,S.jsx)(`p`,{className:D$,children:o}):(0,S.jsx)(`ol`,{ref:y,className:E$,children:r.map((e,t)=>(0,S.jsx)(H$,{item:e,index:t,ids:v,isOpen:i.includes(e.id),onOpenChange:a,onMove:u,onAction:d,moveUpLabel:f,moveDownLabel:p,moreLabel:m,dragLabel:h},e.id))}),n!==void 0&&(0,S.jsx)(`p`,{className:T$,children:n}),(0,S.jsx)(`div`,{className:O$,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Pb,isDisabled:l,onPress:c,children:s})})]})}var V$=`application/x-velocity-cms-section`;function H$({item:e,index:t,ids:n,isOpen:r,onOpenChange:i,onMove:a,onAction:o,moveUpLabel:s,moveDownLabel:c,moreLabel:l,dragLabel:u}){let{id:d,title:f,summary:p,icon:m,tag:h,problem:g,content:_,actions:v}=e,y=(0,x.useRef)(null),[b,C]=(0,x.useState)(null),{dragProps:w,dragButtonProps:T,isDragging:E}=iY({hasDragButton:!0,getItems:()=>[{[V$]:d}],getAllowedDropOperations:()=>[`move`]}),{dropProps:D}=yH({ref:y,getDropOperation:e=>e.has(V$)?`move`:`cancel`,onDropEnter:()=>C(e=>e??`here`),onDropMove:e=>C(e.y<(y.current?.offsetHeight??0)/2?`before`:`after`),onDropExit:()=>C(null),onDrop:e=>{let r=b;C(null);let[i]=e.items.filter(mV);i?.getText(V$).then(e=>{let i=n.indexOf(e);if(i===-1)return;let o=r===`before`?t:r===`after`||i<t?t+1:t,s=i<o?o-1:o;s!==i&&a(i,s)})}}),O=h===void 0?`default`:`quiet`,k=r?Mv:Iv;return(0,S.jsxs)(`li`,{ref:y,"data-section":d,...D,children:[b===`before`&&(0,S.jsx)(`div`,{className:`my-1 h-0.5 rounded-full bg-ring`}),(0,S.jsxs)(WB,{className:k$({state:g===void 0?b===`here`?`target`:E?`dragging`:`default`:`problem`}),isExpanded:r,onExpandedChange:e=>i(d,e),children:[(0,S.jsxs)(`div`,{className:A$,...w,children:[(0,S.jsx)(mD,{...T,"aria-label":u(t+1),className:j$,children:(0,S.jsx)(my,{"aria-hidden":!0,size:16})}),(0,S.jsx)(vD,{level:3,className:M$,children:(0,S.jsxs)(mD,{slot:`trigger`,className:N$,children:[(0,S.jsx)(k,{"aria-hidden":!0,size:16,className:P$}),m&&(0,S.jsx)(`span`,{className:F$({tone:O}),children:(0,S.jsx)(m,{"aria-hidden":!0,size:16})}),(0,S.jsxs)(`span`,{className:I$,children:[(0,S.jsx)(`span`,{className:L$({tone:O}),children:f}),p!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:p})]}),h!==void 0&&(0,S.jsx)(uZ,{children:h})]})}),(0,S.jsxs)(`div`,{className:R$,children:[(0,S.jsx)(AY,{size:`sm`,icon:gv,label:s(t+1),isDisabled:t===0,onPress:()=>a(t,t-1)}),(0,S.jsx)(AY,{size:`sm`,icon:uv,label:c(t+1),isDisabled:t===n.length-1,onPress:()=>a(t,t+1)}),(0,S.jsx)(lX,{trigger:(0,S.jsx)(AY,{size:`sm`,icon:ey,label:l(t+1)}),actions:v,onAction:e=>o(d,e)})]})]}),g!==void 0&&!r&&(0,S.jsx)(`p`,{className:`px-4 pb-3 text-sm text-destructive`,children:g}),(0,S.jsx)(GB,{children:(0,S.jsx)(`div`,{className:z$,children:_})})]}),b===`after`&&(0,S.jsx)(`div`,{className:`my-1 h-0.5 rounded-full bg-ring`})]})}var U$=`flex h-full min-h-0 flex-col overflow-hidden rounded-lg border border-border bg-background-secondary`,W$=`flex min-h-0 flex-1 justify-center`,G$=`m-auto max-w-sm px-6 text-center text-sm text-foreground-muted`,K$=W_(`h-full w-full bg-background transition-all motion-base`,{variants:{width:{phone:`max-w-sm border-x border-border`,tablet:`max-w-3xl border-x border-border`,full:``}},defaultVariants:{width:`full`}}),q$=500,J$=`velocity-cms`;function Y$({label:e,address:t,draft:n,note:r,toolbar:i,emptyText:a,onSectionPress:o,shownSectionId:s,width:c}){let l=`preview-${(0,x.useId)().replaceAll(`:`,``)}`,u=(0,x.useRef)(null),d=(0,x.useRef)(null),f=(0,x.useRef)(!1),p=(0,x.useRef)({onSectionPress:o,shownSectionId:s});(0,x.useEffect)(()=>{p.current={onSectionPress:o,shownSectionId:s}}),(0,x.useEffect)(()=>{if(t===void 0)return;let e=()=>{f.current=!0,u.current?.submit()};if(!f.current){e();return}let n=setTimeout(e,q$);return()=>clearTimeout(n)},[t,n]);let m=e=>{e!==void 0&&d.current?.contentWindow?.postMessage({source:J$,type:`show`,id:e},window.location.origin)};return(0,x.useEffect)(()=>{let e=e=>{if(e.origin!==window.location.origin||e.source!==d.current?.contentWindow)return;let t=e.data;t?.source===J$&&(t.type===`section`&&typeof t.id==`string`&&p.current.onSectionPress?.(t.id),t.type===`ready`&&m(p.current.shownSectionId))};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,x.useEffect)(()=>m(s),[s]),(0,S.jsxs)(`div`,{className:U$,children:[(r!==void 0||i!==void 0)&&(0,S.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-border bg-background px-3 py-2`,children:[(0,S.jsx)(`span`,{className:`min-w-0 truncate text-sm text-foreground-muted`,children:r}),i]}),(0,S.jsx)(`div`,{className:W$,children:t===void 0?(0,S.jsx)(`p`,{className:G$,children:a}):(0,S.jsxs)(S.Fragment,{children:[(0,DT.createPortal)((0,S.jsx)(`form`,{ref:u,method:`post`,action:t,target:l,hidden:!0,children:(0,S.jsx)(`input`,{type:`hidden`,name:`draft`,value:n,readOnly:!0})}),document.body),(0,S.jsx)(`iframe`,{ref:d,name:l,title:e,className:K$({width:c})})]})})]})}var X$=`flex w-full flex-col gap-6 xl:flex-row xl:items-start`,Z$=`flex min-w-0 flex-col gap-6 xl:w-lg xl:shrink-0`,Q$=`pane-tall min-w-0 xl:sticky xl:top-24 xl:flex-1`;function $$({paneLabel:e,children:t,pane:n}){return(0,S.jsxs)(`div`,{className:X$,children:[(0,S.jsx)(`div`,{className:Z$,children:t}),(0,S.jsx)(`section`,{"aria-label":e,className:Q$,children:n})]})}function e1({navigate:e,children:t}){return(0,S.jsx)(oC,{navigate:e,children:t})}var t1=.86,n1=(e,t)=>`${e.replace(/\.[^.]*$/,``)}.${t}`;function r1(e,t,n){let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(e.width*t)),r.height=Math.max(1,Math.round(e.height*t));let i=r.getContext(`2d`);return i?(n===`image/jpeg`&&(i.fillStyle=`#fff`,i.fillRect(0,0,r.width,r.height)),i.drawImage(e,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,n,t1))):Promise.resolve(null)}async function i1(e,t){let n=new Uint8Array(await e.arrayBuffer()),r={fileName:e.name,bytes:n},i=I_(n);if(i!==null&&Math.max(i.width,i.height)<=2560&&n.length<=t||typeof createImageBitmap!=`function`)return r;let a=await createImageBitmap(e).catch(()=>null);if(!a)return r;try{let t=Math.min(1,L_/Math.max(a.width,a.height)),n=i?.contentType===`image/png`?`image/png`:`image/jpeg`,o=await r1(a,t,n);return o?{fileName:n1(e.name,n===`image/png`?`png`:`jpg`),bytes:new Uint8Array(await o.arrayBuffer())}:r}finally{a.close()}}var a1=e=>e.thumbnail??e.url;function Z(e,t){return e[t]??e[t.split(`-`)[0]??t]??Object.values(e)[0]??``}function o1(e,t){try{return new Intl.DisplayNames(t,{type:`language`}).of(e)??e}catch{return e}}function s1(e,t){let n=e.titlePath??l_(e.fields).filter(e=>e.type===`text`).slice(0,1).map(e=>e.id),r=t;for(let e of n)r=typeof r==`object`&&r?r[e]:void 0;return typeof r==`string`&&r.trim()!==``?r:null}function c1(e,t,n){let r=e.fields,i=t,a;for(let e of n){if(a=r.find(t=>t.id===e&&t.deletedAt===void 0),!a)return null;i=typeof i==`object`&&i?i[e]:void 0,r=Array.isArray(a.options.fields)?a.options.fields:[]}return a?{field:a,value:i}:null}function l1(e,t){let n=e.list?.imagePath?c1(e,t,e.list.imagePath):null,r=Array.isArray(n?.value)?n.value[0]:n?.value;return typeof r==`string`&&r!==``?r:null}function u1(e){return e.publishAt===void 0?c_(e)?`unpublishedChanges`:e.status:`scheduled`}function d1(e,t,n){let{[t]:r,...i}=e;return n===void 0?i:{...i,[t]:n}}function f1(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null||Array.isArray(e)!==Array.isArray(t))return!1;let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>e in r&&f1(n[e],r[e]))}function p1(e,t){let n=t.split(`-`)[0]??t,r=new Map;for(let t of e)r.set(t.translationGroup,[...r.get(t.translationGroup)??[],t]);return[...r.values()].map(e=>{let r=e.find(e=>e.locale===t)??e.find(e=>e.locale.split(`-`)[0]===n)??e[0];if(!r)throw Error(`A group of translations has no entries.`);return{primary:r,versions:[r,...e.filter(e=>e!==r)]}})}function m1(e,t){let n=e.localizedUrlPatterns?.[t.locale]??e.urlPattern;return n===void 0?null:z_({urlPattern:n,fields:e.fields},t,t.locale)}var h1={app:{product:`Velocity`,contentGroup:`Content`,home:`Home`,skipToContent:`Skip to content`,mainNavigation:`Main`,notifications:`Notifications`,dismiss:`Dismiss`,loading:`Loading`,accountMenu:`Account`,signOut:`Sign out`,signedOut:`Signed out`,notSignedOut:`Not signed out`,sessionEnded:`You were signed out`,sessionEndedDescription:`Your session ended. Sign in again to continue.`,siteGroup:`Site`,people:`People`,settings:`Settings`,media:`Media`,trash:`Trash`,forms:`Forms`,contacts:`Contacts`,deals:`Deals`,plugins:`Manage plugins`,pluginsGroup:`Plugins`,types:`Content types`,passkeys:`Passkeys`,passkeyTitle:`Add a passkey`,passkeyDescription:`A passkey signs you in with your fingerprint, face or screen lock, with no email to wait for. Add one on each device you use, and remove one when you stop using its device.`,passkeyColumnName:`Passkey`,passkeyColumnAdded:`Added`,passkeyColumnActions:`Remove`,passkeyNone:`You have no passkeys yet.`,passkeyUnnamed:`Passkey with no name`,passkeyAddedUnknown:`Not known`,passkeyRemove:e=>`Remove ${e}`,passkeyRemoved:e=>`${e} removed`,passkeyRemovedDescription:`It can no longer sign you in. You can still use a sign-in link.`,passkeyNotRemoved:`The passkey was not removed`,passkeyDone:`Done`,passkeyName:`Name for this passkey`,passkeyNameHelp:`So you can tell your passkeys apart, such as "Work laptop".`,passkeyDefaultName:`This device`,passkeyAdd:`Add passkey`,passkeyAdded:`Passkey added`,passkeyAddedDescription:`Next time, choose "Sign in with a passkey".`,passkeyNotAdded:`No passkey was added`,somethingWentWrong:`Something went wrong`,tryAgain:`Try again`},signIn:{title:`Sign in`,description:`Use a passkey, or get a sign-in link by email. There is no password to remember.`,email:`Email`,emailMissing:`Enter your email address.`,emailInvalid:`Enter an email address, such as name@example.com.`,sendLink:`Email me a sign-in link`,usePasskey:`Sign in with a passkey`,linkSentTitle:`Check your email`,linkSent:e=>`If ${e} belongs to someone on this site, a sign-in link is on its way. It works once and expires in 10 minutes.`,useAnotherEmail:`Use a different email`,linkFailed:`That sign-in link has expired or was already used. Ask for a new one below.`,signedIn:e=>`Signed in as ${e}`,passkeyFailed:`The passkey did not work. Try again, or use a sign-in link instead.`},contentList:{description:e=>e===1?`1 entry`:`${e} entries`,columnTitle:`Title`,columnStatus:`Status`,columnLanguages:`Languages`,filter:`Show`,filterAll:`All`,filterPublished:`Published`,filterDrafts:`Drafts`,filterChanged:`Unpublished changes`,search:e=>`Search ${e.toLowerCase()}`,searchPlaceholder:`Search by title or address`,clearSearch:`Clear search`,noMatchesTitle:`Nothing matches`,noMatchesDescription:`Try another word, or show all entries.`,columnUpdated:`Updated`,untitled:`Untitled`,newEntry:`New entry`,emptyTitle:e=>`No ${e.toLowerCase()} yet`,emptyDescription:`Entries appear on the site as soon as they are published.`,noTypesTitle:`No content types yet`,noTypesDescription:`A content type describes one kind of content, such as listings or blog posts.`,typeNotFoundTitle:`This content type does not exist`,typeNotFoundDescription:`It may have been renamed or removed.`},schedule:{title:`Schedule`,close:`Close`,help:`What is saved when the time comes goes on the site, so you can keep working on it until then.`,saveFirst:`Save what you have typed first: what goes out is what is saved.`,current:e=>`Set to go on the site ${e}.`,missed:e=>`This did not go on the site at its time. ${e}`,day:`Day`,dayMissing:`Choose a day.`,time:`Time`,zone:e=>`Times are in your time zone, ${e.replaceAll(`_`,` `)}.`,confirm:`Schedule`,change:`Change the time`,cancel:`Cancel`,remove:`Take off the schedule`,set:`Scheduled`,setDescription:e=>`It goes on the site ${e}.`,notSet:`Not scheduled`,removed:`Taken off the schedule`,notRemoved:`Still scheduled`},history:{title:`History`,close:`Close`,help:`Every save, the latest first. Bringing a version back makes a new save: nothing is lost, and the site changes only when you publish.`,saveFirst:`Save or undo what you have typed before bringing a version back.`,current:`Now`,onSite:`On the site`,when:(e,t)=>t?`${e}, by ${t}`:e,first:`First saved`,changed:e=>`Changed ${e.join(`, `)}`,published:`Published`,unpublished:`Taken off the site`,saved:`Saved`,bringBack:`Bring back this version`,broughtBack:e=>`Version from ${e} brought back`,broughtBackDescription:`It is the working version now. Publish it to put it on the site.`,notBroughtBack:`Not brought back`},editor:{back:e=>`All ${e.toLowerCase()}`,newTitle:`New entry`,form:`Entry`,slug:`Slug`,slugDescription:e=>`The page's address on the site: ${e}`,slugAsIdentifier:`A short name other entries link to. It is not shown on the site, and stays the same in every language.`,slugMissing:`Enter a slug. It is the last part of the page's address.`,slugInvalid:`Use lowercase letters, numbers and hyphens, such as lake-house.`,slugPathDescription:e=>`The page's address on the site: ${e}. Put a slash between the parts to place it under another page, such as services/roofing. The slug index is the page at the top.`,slugHomeDescription:e=>`The page's address on the site: ${e}. The page whose slug is index is the one at the top.`,slugPathInvalid:`Use lowercase letters, numbers and hyphens, with a slash between the parts of a longer address, such as services/roofing.`,choose:`Choose one`,linkMissing:e=>`${e} (not found)`,formMissing:`A form that is no longer here`,formLoading:`Loading…`,formClosed:e=>`${e} (closed)`,noForms:`This site has no forms yet. Make one under Forms.`,linkNotLoaded:`The list to choose from could not be loaded. Reload the page to try again.`,linkAddressChoice:`Another address`,linkAddress:`Address`,linkAddressHelp:`A whole address such as https://example.com, or a path on this site such as /contact/.`,linkWhich:e=>`Which of ${e}`,linkGone:`No longer on the site`,linkLoading:`Loading…`,listEmpty:`Nothing here yet`,listAdd:`Add`,listItem:(e,t)=>`${e} ${t}`,listRemove:(e,t)=>`Remove ${e} ${t}`,listMoveUp:(e,t)=>`Move ${e} ${t} up`,listMoveDown:(e,t)=>`Move ${e} ${t} down`,listMore:(e,t)=>`More for ${e} ${t}`,listDrag:(e,t)=>`Drag ${e} ${t}`,listDuplicate:`Duplicate`,listRemoveRow:`Remove`,listProblems:e=>e===1?`1 thing to fix in here.`:`${e} things to fix in here.`,pagePane:`The page`,pageFrame:e=>`${e}, as it would look`,pageNote:`The form as it is now, saved or not.`,pageWidth:`Width`,pagePhone:`Phone`,pageTablet:`Tablet`,pageDesktop:`Desktop`,pageNotYet:`Save the page once to see it here.`,pageLoading:`Getting the page…`,pageNotShown:e=>`The page cannot be shown here. ${e}`,sectionsEmpty:`No sections yet. Add the first one to start the page.`,sectionAdd:`Add section`,sectionPickerTitle:`Add a section`,sectionPickerEmpty:`This site has no kinds of section to add yet. They come with its template.`,sectionOtherGroup:`Other`,sectionMoveUp:(e,t)=>`Move section ${t}, ${e}, up`,sectionMoveDown:(e,t)=>`Move section ${t}, ${e}, down`,sectionMore:(e,t)=>`More for section ${t}, ${e}`,sectionDrag:(e,t)=>`Drag section ${t}, ${e}`,sectionDuplicate:`Duplicate`,sectionHide:`Hide from the site`,sectionShow:`Show on the site`,sectionRemove:`Remove`,sectionHidden:`Hidden`,sectionRetired:`No longer used`,sectionRetiredNote:`The site's template no longer has this kind of section, so it is left off the site. Its content is kept in case the kind comes back.`,sectionUnknown:`Unknown section`,sectionNoFields:`This section has nothing to fill in.`,sectionProblems:e=>e===1?`1 thing to fix in this section.`:`${e} things to fix in this section.`,sectionRemoveTitle:e=>`Remove this ${e.toLowerCase()} section?`,sectionRemoveDescription:`What was written in it goes with it. Nothing changes on the site until you publish.`,sectionRemoveConfirm:`Remove section`,imageChoose:`Choose an image`,imageChange:`Change`,imageNone:`No image chosen`,imageMissing:`This image is no longer on the site. Choose another.`,imagesEmpty:`This site has no images to choose from yet.`,imagesLoading:`Loading the images…`,imagesNotLoaded:`The images could not be loaded. Reload the page to try again.`,imageUpload:`Upload an image`,imageUploadHint:e=>`JPEG, PNG or WebP, up to ${e} MB. Larger photos are made smaller first.`,imageNotRead:`The file could not be read. Choose it again.`,close:`Close`,richText:{toolbar:`Formatting`,bold:`Bold`,italic:`Italic`,heading:`Heading`,subheading:`Subheading`,bulletList:`Bulleted list`,numberedList:`Numbered list`,quote:`Quote`,link:`Link`,linkAddress:`Link address`,linkHelp:`A web address, or a page of this site such as /contact/.`,linkApply:`Apply`,linkRemove:`Remove link`},otherFields:`Other details`,addressSection:`Address on the site`,identifierSection:`Identifier`,aside:`Publishing details`,unsupportedField:`This kind of field cannot be edited here yet. Its content is kept as it is.`,saveBar:`Save and publish`,language:`Language`,saveDraft:`Save draft`,publish:`Publish`,publishChanges:`Publish changes`,unpublish:`Unpublish`,more:`More actions`,trash:`Move to trash`,trashTitle:`Move this to the trash?`,trashDescription:`It leaves the lists and can be restored from the trash whenever you need it. Changes you have not saved are not kept.`,trashDescriptionPublished:`Visitors will no longer find it, and links to it will stop working. It can be restored from the trash as a draft. Changes you have not saved are not kept.`,schedule:`Schedule`,scheduleChange:`Change the schedule`,goesOut:e=>`Goes on the site ${e}`,missedSchedule:`Missed its time`,history:`History`,duplicate:`Duplicate`,duplicated:e=>`${e} duplicated`,duplicatedDescription:`This is the copy, as a draft. It holds what was last saved.`,notDuplicated:`Not duplicated`,trashed:e=>`${e} moved to the trash`,trashedDescription:`Restore it from Trash, under Site, whenever you need it.`,notTrashed:`Not moved to the trash`,inTrashTitle:`This is in the trash`,inTrashDescription:`Restore it to open it and change it again.`,openTrash:`Open the trash`,preview:`Preview`,imageUploaded:`Image uploaded`,imageUploadedDescription:`It is chosen for this field. Save the entry to keep it.`,notPreviewed:`No preview`,notSavedYet:`Not saved yet`,unsavedChanges:`Unsaved changes`,saved:e=>`Saved ${e}`,draftSaved:`Draft saved`,draftSavedDescription:`Visitors do not see it until you publish.`,published:`Published`,publishedDescription:`Visitors can see it now.`,unpublished:`Unpublished`,unpublishedDescription:`It is off the site. Its content is kept as a draft.`,notSaved:`Not saved`,notPublished:`Not published`,notUnpublished:`Not unpublished`,fieldsNeedAttention:e=>e===1?`1 field needs attention.`:`${e} fields need attention.`,leaveTitle:`Leave without saving?`,leaveDescription:`What you changed here has not been saved. If you leave now, it is lost.`,leave:`Leave without saving`,keepEditing:`Keep editing`,unpublishTitle:`Take this off the site?`,unpublishDescription:`Visitors will no longer find it, and links to it will stop working. Its content is kept as a draft.`,cancel:`Cancel`,notFoundTitle:`This entry does not exist`,notFoundDescription:`It may have been deleted.`},trash:{title:`Trash`,description:`What was moved here is off the site and out of the lists. Restore anything you still need.`,columnName:`Name`,columnType:`Kind`,columnMoved:`Moved here`,columnActions:`Actions`,detail:(e,t)=>`${e} · ${t}`,typeArchived:`An archived content type`,restore:e=>`Restore ${e}`,restored:e=>`${e} restored`,restoredDescription:`It is back as a draft. Publish it to put it on the site again.`,notRestored:`Not restored`,delete:e=>`Delete ${e} for good`,deleteTitle:e=>`Delete ${e} for good?`,deleteDescription:`Its content and its history are removed and cannot be brought back.`,deleteConfirm:`Delete for good`,deleted:e=>`${e} deleted for good`,notDeleted:`Not deleted`,emptyTitle:`The trash is empty`,emptyDescription:`An entry you move to the trash waits here until you restore it or delete it for good.`},contactImport:{button:`Import`,title:`Import contacts`,lead:`Bring in contacts from a spreadsheet saved as a CSV file. Its first row should be the headings, and one column must hold email addresses. People you already have are never overwritten: they only gain what they lack.`,chooseFile:`Choose a CSV file`,emptyFile:`This file has no rows under its headings. Choose a CSV file with a row of headings and at least one row of contacts.`,tooManyRows:e=>`This file has more than ${e} rows. Split it into smaller files and import each.`,matchLead:e=>`${e} ${e===1?`row`:`rows`} found. Say what each column holds.`,column:e=>`Column "${e}"`,example:e=>`For example: ${e}`,skip:`Leave it out`,emailNeeded:`Say which column holds the email addresses. A contact needs one.`,bringIn:e=>`Import ${e} ${e===1?`row`:`rows`}`,done:e=>`${e} ${e===1?`contact`:`contacts`} added`,failed:`The import stopped`,added:e=>`${e} ${e===1?`contact was`:`contacts were`} added.`,filled:e=>`${e} you already had gained details they lacked.`,unchanged:e=>`${e} you already had were left as they are.`,leftOut:e=>`${e} ${e===1?`row was`:`rows were`} left out:`,rowProblem:(e,t)=>`Row ${e}: ${t}`,andMore:e=>`And ${e} more.`,close:`Done`},contacts:{title:`Contacts`,description:`Everyone who wrote to you through a form, and the people you added yourself.`,newContact:`New contact`,newContactTitle:`New contact`,search:`Search contacts`,searchPlaceholder:`Search by name, email or phone`,clearSearch:`Clear search`,columnName:`Name`,columnPhone:`Phone`,columnSource:`First came from`,columnAdded:`Added`,noName:`No name yet`,addedByHand:`Added by hand`,fromForm:e=>`${e} form`,fromFormOn:(e,t)=>`${e} form on ${t}`,aFormNowGone:`A form that is no longer here`,count:e=>e===1?`1 contact`:`${e} contacts`,emptyTitle:`No contacts yet`,emptyDescription:`When someone sends a form that asks for their email, they appear here. You can also add a contact yourself.`,nothingFoundTitle:`Nobody matches`,nothingFoundDescription:e=>`No contact has "${e}" in their name, email or phone.`,name:`Name`,email:`Email`,phone:`Phone`,emailNeeded:`Give the contact an email address.`,create:`Add contact`,created:e=>`${e} added`,notCreated:`The contact was not added`,backToContacts:`All contacts`,notFoundTitle:`No such contact`,notFoundDescription:`This contact was erased, or the address is wrong.`,noAccess:`Contacts are for owners and editors.`,edit:`Edit details`,editTitle:e=>`Edit ${e}`,save:`Save details`,saved:e=>`${e} saved`,notSaved:`The details were not saved`,details:`Details`,detailsLabel:`About this contact`,firstCameFrom:`First came from`,added:`Added`,notGiven:`Not given`,timeline:`Timeline`,timelineHelp:`What they sent you and what your team noted, newest first.`,timelineEmpty:`Nothing yet. Notes you add and forms they send will be listed here.`,sent:e=>`Sent the ${e} form`,sentUnknown:`Sent a form that is no longer here`,fromPage:e=>`From ${e}`,noteLabel:`Note`,movedLabel:`Moved`,movedFromTo:(e,t,n)=>`From ${e} to ${t}${n===void 0?``:`, by ${n}`}`,stageGone:`a stage that was removed`,note:`Add a note`,notePlaceholder:`Called back, wants a tour on Saturday`,noteHelp:`Only your team sees notes.`,addNote:`Add note`,noteAdded:`Note added`,noteNotAdded:`The note was not added`,deleteNote:`Delete note`,noteDeleted:`Note deleted`,noteNotDeleted:`The note was not deleted`,export:`Export`,exported:`File downloaded`,exportedDescription:`The file holds personal details. Keep it somewhere safe.`,notExported:`The file could not be made`,erase:`Erase`,eraseTitle:e=>`Erase ${e}?`,eraseDescription:`This deletes the contact, your notes about them and everything they sent through every form, for good. Use it when someone asks you to remove their details.`,eraseConfirm:`Erase for good`,erased:(e,t)=>t===0?`${e} erased`:t===1?`${e} erased, with 1 submission`:`${e} erased, with ${t} submissions`,notErased:`The contact was not erased`,view:`View`,viewList:`List`,viewBoard:`Board`,columnStage:`Stage`,columnOwner:`Looked after by`,columnFollowUp:`Follow up`,filterStage:`Stage`,allStages:`All stages`,filterOwner:`Looked after by`,everyone:`Everyone`,mine:`Me`,nobody:`Nobody`,someoneWhoLeft:`Someone who left`,nothingMatchesTitle:`Nobody matches`,nothingMatchesDescription:`No contact fits what you chose. Change the stage or who looks after them.`,stages:{new:`New`,contacted:`Contacted`,qualified:`Qualified`,won:`Won`,lost:`Lost`},board:`Pipeline`,boardEmpty:`Nobody here`,boardMore:e=>`${e} more, in the list`,move:e=>`Move ${e}`,moved:(e,t)=>`${e} moved to ${t}`,notMoved:`The contact was not moved`,work:`Follow-up`,workLabel:`Stage, owner and follow-up`,stage:`Stage`,owner:`Looked after by`,followUp:`Follow up on`,followUpHelp:`It shows on your Home screen when the day comes.`,stageSaved:e=>`Moved to ${e}`,ownerSaved:e=>`Now looked after by ${e}`,ownerCleared:`Nobody looks after this contact now`,followUpSaved:e=>`Follow-up set for ${e}`,followUpCleared:`Follow-up cleared`,notChanged:`The contact was not changed`,due:{overdue:`Overdue`,today:`Due today`},editStages:`Edit stages`,editStagesTitle:`Stages`,stagesHelp:`The steps a contact moves through, in order. New contacts start in the first.`,stagesRemoveNote:`Contacts in a stage you remove move to the first stage.`,stagesEmpty:`No stages. Add one.`,addStage:`Add stage`,stageName:`Name`,stageKind:`Counts as`,stageKinds:{open:`Open`,won:`Won`,lost:`Lost`},removeStage:e=>`Remove stage ${e}`,moveStageUp:e=>`Move stage ${e} up`,moveStageDown:e=>`Move stage ${e} down`,saveStages:`Save stages`,stagesSaved:`Stages saved`,stagesNotSaved:`The stages were not saved`,stageChance:`Chance, %`,pipelineSettings:`Deals and new contacts`,currency:`Currency`,currencyHelp:`Three letters, such as USD or EUR. Deal values are shown in it.`,assignTo:`Give new contacts to`,assignToHelp:`A contact made by a form goes to whichever of these people looks after the fewest. Tick nobody to leave new contacts unassigned.`},deals:{title:`Deals`,description:`What your contacts may buy, by stage, and what it is likely to bring in.`,noAccess:`Deals are for owners and editors.`,open:`Open`,openDetail:`Worth of every deal still in play`,forecast:`Forecast`,forecastDetail:`Open deals, each counted by its stage's chance`,won:`Won`,wonDetail:`Worth of the deals you won`,board:`Deals by stage`,boardEmpty:`No deals here`,boardMore:e=>`${e} more`,emptyTitle:`No deals yet`,emptyDescription:`Add a deal from a contact's page, with what it is worth. It then moves through your stages here.`,toContacts:`Go to contacts`,move:e=>`Move ${e}`,moved:(e,t)=>`${e} moved to ${t}`,notMoved:`The deal was not moved`,cardTitle:`Deals`,cardEmpty:`No deals with this contact yet.`,add:`Add deal`,addTitle:`New deal`,editTitle:e=>`Edit ${e}`,columnTitle:`Deal`,columnStage:`Stage`,columnValue:`Worth`,columnClose:`Expected`,name:`What it is about`,namePlaceholder:`Sale of 18 Alder Court`,nameNeeded:`Say what the deal is about.`,value:e=>`Worth, in ${e}`,stage:`Stage`,owner:`Looked after by`,closeOn:`Expected to close on`,create:`Add deal`,save:`Save deal`,created:e=>`${e} added`,saved:e=>`${e} saved`,notSaved:`The deal was not saved`,delete:`Delete deal`,deleted:e=>`${e} deleted`,notDeleted:`The deal was not deleted`,closes:e=>`Closes ${e}`,about:`On the site, it is about`,aboutNothing:`Nothing on the site`,aboutWhich:e=>`Which of ${e}`,aboutWhichOne:`Which one`,aboutGone:`No longer on the site`,aboutLoading:`Loading…`,entryCardEmpty:`No deals about this yet. Add one from a contact's page and choose this as what it is about.`,entryDeals:`Deals about this`},forms:{title:`Forms`,description:`The forms on your site, and what visitors sent through them.`,newForm:`New form`,newFormTitle:`New form`,formName:`Name`,formNameHelp:`What the form is called here and in the emails about it, such as Contact us.`,formKey:`Key`,formKeyHelp:`The name the site's pages use for it. Lowercase letters, numbers and hyphens.`,nameNeeded:`Give the form a name.`,keyNeeded:`Give the form a key.`,create:`Create form`,created:e=>`${e} created`,createdDescription:`Add the fields a visitor fills in.`,notCreated:`Not created`,columnName:`Name`,columnFields:`Fields`,columnNew:`New`,columnStatus:`Status`,columnActions:`Actions`,columnTrashed:`Moved here`,fieldCount:e=>e===1?`1 field`:`${e} fields`,newCount:e=>`${e} new`,noneNew:`None`,open:`Open`,closed:`Closed`,emptyTitle:`No forms yet`,emptyDescription:`A form collects what visitors send: a question, a request for a tour, a sign-up. Start with a contact form.`,trashedTitle:`Forms in the trash`,trashedHelp:`A form here takes no more submissions. What it was sent is kept until the form is deleted for good.`,restore:e=>`Restore ${e}`,restored:e=>`${e} restored`,notRestored:`Not restored`,delete:e=>`Delete ${e} for good`,deleteTitle:e=>`Delete ${e} for good?`,deleteDescription:`The form and everything visitors sent through it are removed and cannot be brought back.`,deleteConfirm:`Delete for good`,deleted:e=>`${e} deleted for good`,notDeleted:`Not deleted`,forget:`Forget a person`,forgetTitle:`Forget a person`,forgetHelp:`Deletes everything this person sent, through every form, for good. Use it when someone asks you to remove their details.`,forgetEmail:`Their email address`,forgetEmailNeeded:`Give the email address of the person to forget.`,forgetConfirm:`Delete what they sent`,forgotten:e=>e===0?`Nothing was found from that address`:e===1?`1 submission deleted`:`${e} submissions deleted`,notForgotten:`Not deleted`,notFoundTitle:`This form is not here`,notFoundDescription:`It may have been moved to the trash or deleted.`,backToForms:`All forms`,detail:(e,t)=>`Key: ${e} · ${t}`,tabs:`Parts of this form`,tabSubmissions:`Submissions`,tabFields:`Fields`,settings:`Settings`,trash:`Move to trash`,trashTitle:e=>`Move ${e} to the trash?`,trashDescription:`It takes no more submissions and leaves any page that shows it. What it was sent is kept, and the form can be restored.`,trashConfirm:`Move to trash`,trashed:e=>`${e} moved to the trash`,notTrashed:`Not moved`,statusFilter:`Which submissions to show`,statuses:{new:`New`,handled:`Handled`,spam:`Spam`},statusWithCount:(e,t)=>`${e} (${t})`,export:`Export as CSV`,exported:`Export saved`,exportedDescription:`The file holds personal details. Keep it somewhere safe.`,notExported:`Not exported`,columnFrom:`From`,columnSummary:`What they wrote`,columnReceived:`Received`,submissionsOf:e=>`Submissions of ${e}`,unknownSender:`No name given`,emptyNewTitle:`Nothing new`,emptyNewDescription:`What visitors send through this form arrives here.`,emptyHandledTitle:`Nothing handled yet`,emptyHandledDescription:`Mark a submission as handled once you have answered it.`,emptySpamTitle:`No spam`,emptySpamDescription:`Submissions that look automated are kept here, so a real one is never lost.`,noAccess:`Only owners and editors can read what visitors sent.`,submissionTitle:e=>`From ${e}`,received:e=>`Received ${e}`,sentFrom:e=>`Sent from ${e}`,handledAt:e=>`Handled ${e}`,yes:`Yes`,removedField:e=>`${e} (removed field)`,markHandled:`Mark as handled`,markNew:`Mark as new`,markSpam:`Mark as spam`,notSpam:`Not spam`,marked:{new:`Marked as new`,handled:`Marked as handled`,spam:`Marked as spam`},notMarked:`Not changed`,deleteSubmission:`Delete`,deleteSubmissionTitle:`Delete this submission?`,deleteSubmissionDescription:`It is removed for good and cannot be brought back.`,submissionDeleted:`Submission deleted`,submissionNotDeleted:`Not deleted`,addField:`Add field`,addFieldTitle:`Add a field`,editFieldTitle:e=>`Change ${e}`,fieldsOf:e=>`Fields of ${e}`,columnField:`Field`,columnKind:`Kind`,columnRules:`Rules`,required:`Required`,holds:{name:`Sender's name`,email:`Sender's email`,phone:`Sender's phone`},noFieldsTitle:`No fields yet`,noFieldsDescription:`Add what a visitor fills in: their name, their email, a message.`,fieldName:`Label`,fieldNameHelp:`What the visitor reads above the field.`,fieldKey:`Key`,fieldKeyHelp:`The name the site's pages and exports use for it.`,fieldHelp:`Help text`,fieldHelpHelp:`A short note shown with the field.`,fieldKind:`Kind`,fieldKindIs:e=>`Kind: ${e}. A different kind is a new field.`,fieldRequired:`A visitor must fill this in`,fieldNameNeeded:`Give the field a label.`,fieldKeyNeeded:`Give the field a key.`,fieldAdd:`Add field`,fieldSave:`Save field`,fieldAdded:e=>`${e} added`,fieldSaved:e=>`${e} saved`,fieldNotSaved:`Not saved`,moveUp:e=>`Move ${e} up`,moveDown:e=>`Move ${e} down`,edit:e=>`Change ${e}`,remove:e=>`Remove ${e}`,removeTitle:e=>`Remove ${e}?`,removeDescription:`Visitors are no longer asked for it. What was already sent under it is kept and still exported.`,removeConfirm:`Remove field`,removed:e=>`${e} removed`,notRemoved:`Not removed`,notMoved:`Not moved`,settingsTitle:e=>`Settings of ${e}`,isOpen:`Taking submissions`,isOpenHelp:`Switched off, the form leaves the site and what is sent to it is refused.`,notify:`Who is emailed`,notifyHelp:`One email address on each line. Each is told when the form is sent. Leave empty to tell nobody.`,senderName:`Field with the sender's name`,senderEmail:`Field with the sender's email`,senderPhone:`Field with the sender's phone`,senderHelp:`So a submission can be tied to a person, and a reply goes to them.`,noField:`None`,success:`Thank-you message`,successHelp:`What a visitor reads after sending. Left empty, the site's own words are used.`,submitLabel:`Button label`,submitLabelHelp:`Left empty, the site's own word is used.`,fills:e=>`Field that fills a contact's "${e}"`,fillsHelp:`The answer is kept on the sender's contact, in a field you added to contacts. It never replaces what is already there.`,startsDeal:`Start a deal about the page it was sent from`,startsDealHelp:`When this form is sent from the page of something deals can be about, such as a listing, the sender gets a deal about it. Turn that on for a kind of content in its settings.`,retention:`Days to keep submissions`,retentionHelp:`Older ones are deleted. Leave empty to keep them until someone deletes them.`,save:`Save settings`,saved:`Settings saved`,notSaved:`Not saved`},media:{title:`Media`,description:e=>e===1?`1 image`:`${e} images`,upload:`Upload an image`,uploadHint:e=>`JPEG, PNG or WebP, up to ${e} MB.`,uploaded:e=>`${e} was uploaded`,uploadedDescription:`Choose it in any image field.`,notUploaded:`The image was not uploaded`,notRead:`The file could not be read. Choose it again.`,search:`Search images`,searchPlaceholder:`Search by name`,clearSearch:`Clear search`,grid:`Images`,emptyTitle:`No images yet`,emptyDescription:`Images you upload here can be chosen in any image field.`,emptyNoUploads:`This site has nowhere to keep uploads yet. Images in the site's image folder appear here.`,noMatches:`No images match your search.`,fromSite:`Comes with the site`,dimensions:(e,t)=>`${e} × ${t}`,detailName:`Name`,detailNameHelp:`What an image field stores, and what the site's pages look it up by.`,detailSize:`Size`,detailFile:`File`,detailUploaded:`Uploaded`,fromSiteHelp:`It is part of the site's own files, so it is changed there and can't be removed here.`,kilobytes:e=>`${e} KB`,megabytes:e=>`${e} MB`,close:`Close`,remove:`Remove image`,removeTitle:e=>`Remove ${e}?`,removeDescription:`The file is deleted for good. An entry that shows this image will show nothing in its place until another is chosen.`,removed:e=>`${e} was removed`,notRemoved:`The image was not removed`},customFields:{button:`Custom fields`,close:`Close`,nameHelp:`What the team reads above the field.`,removeDescription:`The field is no longer shown or exported. What was filled in under it is kept.`,contact:{name:`Contacts`,title:`Custom fields for contacts`,help:`What you keep about each contact beyond their name, email and phone, such as a membership type or a budget.`,emptyDescription:`Add what you want to know about each contact. It shows on every contact, ready to fill in.`},deal:{name:`Deals`,title:`Custom fields for deals`,help:`What you keep about each deal beyond its name, value and stage, such as a product or a number of seats.`,emptyDescription:`Add what you want to know about each deal. It shows in every deal, ready to fill in.`}},plugins:{title:`Plugins`,description:`What you can add to this site. Activate a plugin to switch it on, and switch it off again at any time.`,may:e=>`May ${e.map(e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`).join(`, `)}`,version:e=>`Version ${e}`,states:{on:`Active`,off:`Available`,failed:`Could not start`,unsupported:`Needs another version`,invalid:`Left out`},active:e=>`${e} is active`,activated:e=>`${e} is active`,activatedDescription:`It is running on the whole site now.`,deactivated:e=>`${e} was switched off`,deactivatedDescription:`Its settings are kept for when you activate it again.`,notActivated:e=>`${e} could not start`,notSwitched:`The plugin was not switched`,settings:`Settings`,settingsTitle:e=>`${e} settings`,settingsSave:`Save settings`,settingsSaved:e=>`${e} settings saved`,settingsNotSaved:`The settings were not saved`,secretsTitle:`Keys and passwords`,secretsHelp:`Each is saved by itself, sealed, and never shown again.`,secretSaved:`Saved. It is not shown again.`,secretSave:e=>`Save ${e}`,secretReplace:e=>`Replace ${e}`,secretRemove:e=>`Remove ${e}`,secretKeep:`Keep the saved one`,secretWasSaved:e=>`${e} saved`,secretWasRemoved:e=>`${e} removed`,secretNotSaved:e=>`${e} was not saved`,activity:`Activity`,activityTitle:e=>`${e} activity`,activityHelp:`What this plugin was asked to send or do. Something that fails is tried again for about a day before it is given up on.`,activityEmptyTitle:`Nothing yet`,activityEmptyDescription:`What this plugin sends or does will be listed here as it happens.`,activityClose:`Close`,taskWhat:`What`,taskState:`State`,taskWhen:`Asked`,taskActions:`Try again`,taskStates:{waiting:`Waiting`,done:`Done`,failed:`Gave up`},taskTries:e=>e===1?`Tried once`:`Tried ${e} times`,taskNext:e=>`Next try ${e}`,taskNextSoon:`Next try within a minute`,taskRetry:e=>`Try ${e} again`,taskRetried:`It worked this time`,taskRetriedWaiting:`It failed again`,taskNotRetried:`It could not be tried again`,hasFailed:`Has failed`,failedAt:(e,t,n,r)=>`Failed ${e===1?`once`:`${e} times`} since the site started, last ${n} on "${t}": ${r}`,mayNothing:`Change nothing`,permissions:{"schema:write":`Change content types`,"entry:read":`Read content`,"entry:write":`Write drafts`,"entry:publish":`Publish`,"entry:delete":`Delete for good`,"form:write":`Change forms`,"submission:read":`Read what visitors send through forms`,"submission:manage":`Handle and delete what visitors send`,"contact:read":`Read contacts`,"contact:manage":`Change and erase contacts`,"user:manage":`Manage people`,"plugin:manage":`Manage plugins`,"settings:manage":`Change the site's settings`},adds:e=>`Adds ${e.join(`, `)}.`,addsScreen:e=>`the "${e}" screen in the sidebar`,addsPanel:e=>`the "${e}" panel on entries`,addsFieldTypes:e=>e===1?`a kind of field`:`${e} kinds of field`,addsChecks:e=>e===1?`a check before publishing`:`${e} checks before publishing`,addsPageHead:`titles and descriptions for search engines on the site's pages`,addsTasks:`deliveries that are tried again when they fail`,open:e=>`Open ${e}`,editorFailed:e=>`Its part of the editor could not be loaded: ${e}`,screenMissingTitle:`This screen is not here`,screenMissingDescription:`The plugin that added it may have been switched off. An owner can activate it again under Plugins.`,emptyTitle:`No plugins yet`,emptyDescription:`Plugins that are available for this site will be listed here, ready to activate.`},settings:{title:`Settings`,description:`What this site is and what it needs to run, set up here instead of on the server.`,tabsLabel:`Parts of the settings`,areas:{general:`General`,email:`Email`,storage:`Storage`,forms:`Forms and spam`},namesSite:e=>`${e} is also what this editor and the site's emails call the site, once it is published.`,ownersTitle:`Settings are for owners`,ownersDescription:`An owner of this site sets up its email, storage and forms here. Ask one if something needs changing.`,general:{title:`Site name`,description:`What this site is called in the editor, in the emails it sends and when someone adds a passkey.`,states:{server:`Set on the server`,code:`Set in the site's code`,host:`Set by your host`},fixed:e=>`Your host names this site: ${e}. Change it where you manage the site with your host.`,name:`Site name`,nameHelp:`Leave this empty to use the name the site's code gives.`,nameHelpWithDefault:e=>`Leave this empty to use the name the site's code gives: ${e}.`,save:`Save site name`,saved:`Site name saved`,savedDescription:`Emails use it from now on. The editor shows it once you reload the page.`,notSaved:`Site name not saved`},email:{title:`Email`,description:`Sign-in links, invitations and notices from forms are sent this way.`,states:{sending:`Sending`,off:`Not set up`,server:`Set on the server`,code:`Set in the site's code`,host:`Handled by your host`},offHelp:`Until this is set up, nobody is emailed: sign-in links are printed in the server's log, and notices from forms are not sent.`,fixed:{server:`This site's email is set up on the server, with the VELOCITY_CMS_RESEND_API_KEY and VELOCITY_CMS_EMAIL_FROM settings. They win over anything saved here. To set email up in the editor instead, remove both from the server.`,code:`This site sends email with a mailer of its own, named in its Astro config. It wins over anything saved here. To set email up in the editor instead, take the mailer out of the config.`,host:`Your host sends this site's email, so there is nothing to set up here.`},provider:`Email service`,providers:{resend:`Resend`},providerHelp:`Make an account with the service, verify your domain there, then create an API key.`,providerLinks:{resend:`https://resend.com/api-keys`},providerLink:e=>`Open your API keys at ${e}`,key:`API key`,keyHelp:`It is kept encrypted and never shown again once it is saved.`,keySaved:`A key is saved. It is kept encrypted and is not shown again.`,keyReplace:`Replace the key`,keyKeep:`Keep the saved key`,from:`Sender`,fromHelp:`The address your emails come from, on the domain you verified. Add a name if you like: Lakeshore Realty <hello@lakeshore.example>.`,save:`Save email settings`,saved:`Email settings saved`,savedDescription:`Email is now sent through these settings. Send a test to see it arrive.`,notSaved:`Email settings not saved`,test:`Send a test email`,testHelp:e=>`A test goes to you, at ${e}, and to nobody else.`,testAfterSave:`Save your changes before sending a test.`,testSent:`Test email sent`,testSentDescription:e=>`Look for it at ${e}. It can take a minute, and it may land in spam the first time.`,testNotSent:`Test email not sent`,stop:`Stop sending email`,stopTitle:`Stop sending email?`,stopDescription:`The saved API key is removed. Sign-in links will be printed in the server's log instead of emailed, so people can sign in only with a passkey or with help from whoever runs the server. Notices from forms stop too.`,stopConfirm:`Remove the key`,stopped:`Email is no longer sent`,stoppedDescription:`The API key was removed. Paste a new one to send email again.`},storage:{title:`Uploads`,description:`Where the images people upload in the editor are kept.`,states:{bucket:`Kept in your bucket`,folder:`Kept on the server's disk`,none:`No uploads yet`,server:`Set on the server`,code:`Set in the site's code`,host:`Handled by your host`},keepingHelp:{bucket:`Uploads are kept in the bucket below, which stays private: the site reads from it and serves the images itself.`,folder:`Uploads are kept in a folder on the server's disk. That suits a server of your own. On a host with no lasting disk, such as Vercel or Netlify, name a bucket here so uploads are not lost on the next deploy.`,none:`This site has nowhere to keep uploads, so people can only choose from the images it came with. Name a bucket here to take uploads.`},fixed:{server:`This site's uploads are set up on the server, with the VELOCITY_CMS_S3_ settings. They win over anything saved here. To choose the bucket in the editor instead, remove them from the server.`,code:`This site's code decides where uploads are kept, so there is nothing to set up here.`,host:`Your host keeps this site's uploads, so there is nothing to set up here.`},endpoint:`Service address`,endpointHelp:`Any service that speaks the S3 protocol. Cloudflare R2: https://<account id>.r2.cloudflarestorage.com. Amazon S3: https://s3.<region>.amazonaws.com.`,bucket:`Bucket name`,region:`Region`,regionHelp:`Leave this empty for Cloudflare R2. For Amazon S3, give the region the bucket is in, such as eu-west-1.`,accessKeyId:`Access key ID`,accessKeyIdHelp:`From a key that may read, write and delete in this bucket, and nothing else.`,secret:`Secret access key`,secretHelp:`It is kept encrypted and never shown again once it is saved.`,secretSaved:`A secret key is saved. It is kept encrypted and is not shown again.`,secretReplace:`Replace the secret key`,secretKeep:`Keep the saved secret key`,save:`Save storage settings`,saved:`Storage settings saved`,savedDescription:`New uploads go to this bucket. Test it to see that the keys work.`,notSaved:`Storage settings not saved`,test:`Test the bucket`,testAfterSave:`Save your changes before testing the bucket.`,testWorked:`The bucket works`,testWorkedDescription:`A small file was kept there, read back and removed.`,testFailed:`The bucket could not be used`,moveHelp:`Images uploaded so far are not moved. Ones on the server's disk keep showing from there; ones in another bucket need copying to the new one.`,stop:`Stop using this bucket`,stopTitle:`Stop using this bucket?`,stopDescription:`The saved secret key is removed. Images kept in the bucket stop showing on the site until it is connected again, and new uploads go to the server's disk, if it has one.`,stopConfirm:`Remove the secret key`,stopped:`The bucket is no longer used`,stoppedDescription:`The secret key was removed. Paste one to use the bucket again.`},forms:{title:`Spam check`,description:`Ask whoever sends a form to pass Cloudflare Turnstile, a check that they are a person. Most people never see it.`,states:{checking:`Checking senders`,off:`No spam check`},help:{checking:`Every form on the site shows the check. What is sent without passing it is kept under Spam, never lost. Someone whose browser runs no scripts cannot pass, so look at Spam now and then.`,off:`Forms already catch simple bots with a hidden field and a timer. To add Turnstile, make a widget for this site's domain in the Cloudflare dashboard, under Turnstile, and paste its two keys here. It is free.`},siteKey:`Site key`,siteKeyHelp:`The public one. It is part of every page that has a form.`,secret:`Secret key`,secretHelp:`It is kept encrypted and never shown again once it is saved.`,secretSaved:`A secret key is saved. It is kept encrypted and is not shown again.`,secretReplace:`Replace the secret key`,secretKeep:`Keep the saved secret key`,save:`Save spam check`,saved:`Spam check saved`,savedDescription:`Forms now show the check. Check the keys to see that Cloudflare knows them.`,notSaved:`Spam check not saved`,test:`Check the keys`,testAfterSave:`Save your changes before checking the keys.`,testHelp:`Checking asks Cloudflare whether it knows the secret key. To see the site key work, open a page with a form.`,testWorked:`Cloudflare knows the secret key`,testWorkedDescription:`Open a page with a form to see the check appear.`,testFailed:`The keys could not be checked`,stop:`Stop checking`,stopTitle:`Stop checking senders?`,stopDescription:`Both keys are removed and forms no longer show the check. The hidden field, the timer and the limit below still stand.`,stopConfirm:`Remove the keys`,stopped:`Senders are no longer checked`,stoppedDescription:`Both keys were removed. Paste them again to bring the check back.`,limitTitle:`Limit`,limitDescription:`How much one visitor can send before the forms ask them to wait.`,limit:`Messages from one address in ten minutes`,limitHelp:e=>`From 1 to ${e}. The CMS comes with 8. Raise it for an office where many people share one connection.`,limitSave:`Save limit`,limitSaved:`Limit saved`,limitSavedDescription:e=>e===1?`Forms take 1 message from one address in ten minutes.`:`Forms take ${e} messages from one address in ten minutes.`,limitNotSaved:`Limit not saved`}},people:{title:`People`,description:`Everyone who can sign in to this site, and what each may do.`,invite:`Invite someone`,columnName:`Name`,columnRole:`Role`,columnActions:`Remove`,you:`You`,invitedTag:`Invited`,invitedHelp:`Has not signed in yet.`,roles:{owner:`Owner`,editor:`Editor`,author:`Author`},roleMeans:{owner:`Owners can do everything, including inviting and removing people.`,editor:`Editors write and publish content.`,author:`Authors write drafts. Someone else publishes them.`},roleOf:e=>`Role of ${e}`,roleChanged:(e,t)=>`${e}'s role is now ${t}`,roleNotChanged:`The role was not changed`,remove:e=>`Remove ${e}`,removeTitle:e=>`Remove ${e}?`,removeDescription:`They are signed out everywhere at once and can no longer sign in. What they wrote stays.`,removeConfirm:`Remove`,removed:e=>`${e} was removed`,notRemoved:`Not removed`,inviteTitle:`Invite someone`,name:`Name`,email:`Email`,emailHelp:`They sign in with a link sent to this address. There is no password.`,role:`Role`,inviteSend:`Send invitation`,invited:e=>`${e} was invited`,invitedDescription:e=>`An invitation is on its way to ${e}.`},builder:{title:`Content types`,description:`The kinds of content this site has, and the fields each one is made of.`,newType:`New content type`,columnName:`Name`,columnFields:`Fields`,columnAddress:`Address`,noAddress:`No page of its own`,fieldCount:e=>e===1?`1 field`:`${e} fields`,emptyTitle:`No content types yet`,emptyDescription:`A content type is one kind of thing the site shows, such as news, team members or testimonials.`,newTypeTitle:`New content type`,typeName:`Name`,typeNameHelp:`What its entries are, in the plural: "Testimonials".`,typeKey:`Key`,typeKeyHelp:`What the site's code calls it. It cannot be changed later.`,archive:`Archive`,archiveTitle:e=>`Archive ${e}?`,archiveDescription:`It leaves the editor, and its pages leave the site. Its fields and entries are kept, so you can restore it later from Content types.`,archiveConfirm:`Archive content type`,archived:e=>`${e} was archived`,archivedDescription:`Restore it from the list of archived content types.`,notArchived:`The content type was not archived`,archivedTitle:`Archived`,archivedHelp:`Out of the editor and off the site, with everything kept.`,archivedTypes:`Archived content types`,columnArchived:`Archived`,restoreType:e=>`Restore ${e}`,typeRestored:e=>`${e} was restored`,typeRestoredDescription:`It is back in the editor, and its published entries are back on the site.`,typeNotRestored:`The content type was not restored`,typeKind:`Kind`,kindCollection:`Many entries`,kindSingle:`One page`,kindCollectionHelp:`A collection, such as news posts or listings. It has a list, and each entry can have a page of its own.`,kindSingleHelp:`A single page, such as the home page or the contact page. It has one entry in each language.`,typeNameHelpSingle:`What the page is: "About".`,typeAddressSingle:`Address of the page`,typeAddressHelpSingle:`Where the page lives on the site, such as /about. Leave empty when it is only shown as part of other pages.`,typeAddress:`Address of its pages`,typeAddressHelp:`Where one entry lives on the site, such as /news/[slug]. Write [...slug] where pages may sit under other pages, as in /services/roofing. Leave empty when entries have no page of their own.`,typeCreate:`Create content type`,typeCreated:e=>`${e} was created`,typeCreatedDescription:`Add its fields next.`,typeNotCreated:`The content type was not created`,settings:`Settings`,settingsTitle:e=>`Settings for ${e}`,settingsSave:`Save settings`,settingsSaved:`Settings saved`,settingsNotSaved:`The settings were not saved`,keyIs:e=>`Key: ${e}`,viewEntries:`View entries`,notFoundTitle:`This content type does not exist`,notFoundDescription:`Check the address, or choose a content type from the list.`,backToTypes:`All content types`,backTo:e=>`Back to ${e}`,insideOf:(e,t)=>`The fields each ${e} of ${t} is made of.`,fieldsInside:e=>`Fields inside ${e}`,holdsFields:e=>e===1?`Holds 1 field`:`Holds ${e} fields`,sections:`Sections`,sectionsTitle:`Sections`,sectionsDescription:`The headings the editor groups this type's fields under. Removing a section removes no field: its fields move after the others.`,sectionsEmpty:`No sections. Every field is shown in one list.`,sectionAdd:`Add section`,sectionName:e=>`Name of section ${e}`,sectionAside:e=>`Show section ${e} beside the content`,sectionAsideLabel:`Beside the content`,sectionRemove:e=>`Remove section ${e}`,sectionMoveUp:e=>`Move section ${e} up`,sectionMoveDown:e=>`Move section ${e} down`,sectionsSave:`Save sections`,sectionsSaved:`Sections saved`,sectionsNotSaved:`The sections were not saved`,sectionNameNeeded:`Give every section a name.`,titleField:`Entries are called by`,titleFieldHelp:`The field whose value names an entry in lists.`,titleAutomatic:`The first text field`,listImage:`Picture in lists`,listImageHelp:`An image field shown before each entry's name.`,listImageNone:`No picture`,listColumns:`Columns in lists`,listColumnsHelp:`Fields that get a column each in the list of entries.`,crm:`Deals`,forDeals:`Deals can be about these`,forDealsHelp:`A deal can then name one of these entries as what it is about, and each entry lists the deals about it.`,fields:`Fields`,fieldsOf:e=>`Fields in ${e}`,otherFields:`Other fields`,otherFieldsDescription:`Shown after the sections.`,noFieldsTitle:`No fields yet`,noFieldsDescription:`Fields are what someone fills in for each entry: a title, a photo, a date.`,noFieldsHere:`No fields here yet.`,addField:`Add field`,columnField:`Field`,columnKind:`Kind`,columnRules:`Rules`,columnActions:`Actions`,required:`Required`,sameInEveryLanguage:`Same in every language`,moveUp:e=>`Move ${e} up`,moveDown:e=>`Move ${e} down`,edit:e=>`Edit ${e}`,remove:e=>`Remove ${e}`,notMoved:`The field was not moved`,addFieldTitle:`Add a field`,editFieldTitle:e=>`Edit ${e}`,kind:`Kind of field`,kindIs:e=>`Kind: ${e}. A field keeps its kind, so its content stays readable.`,fieldName:`Name`,fieldNameHelp:`What the editor calls this field.`,fieldKey:`Key`,fieldKeyHelp:`What the site's code calls it.`,fieldKeyHelpEdit:`What the site's code calls it. Pages that read this field need the new key if you change it. The content stays.`,fieldHelp:`Help text`,fieldHelpHelp:`A sentence under the field on what to put in it. Optional.`,fieldRequired:`Must be filled in before publishing`,fieldTranslated:`Each language has its own value`,section:`Section`,sectionHelp:`Where the editor shows this field.`,noSection:`After the sections`,fieldAdd:`Add field`,fieldSave:`Save field`,fieldAdded:e=>`${e} was added`,fieldNotAdded:`The field was not added`,fieldSaved:e=>`${e} was saved`,fieldNotSaved:`The field was not saved`,nameNeeded:`Give the field a name.`,typeNameNeeded:`Give the content type a name.`,keyNeeded:`Give it a key: lowercase letters and numbers, starting with a letter.`,settingsElsewhere:`This kind of field has settings that cannot be changed here yet. They are kept as they are.`,removeTitle:e=>`Remove ${e}?`,removeDescription:`The field disappears from the editor and the site. Its content is kept, so you can restore the field later.`,removeConfirm:`Remove field`,removed:e=>`${e} was removed`,notRemoved:`The field was not removed`,removedFields:`Removed fields`,removedFieldsDescription:`Their content is kept. Restore one to bring it back as it was.`,restore:`Restore`,restoreField:e=>`Restore ${e}`,restored:e=>`${e} was restored`,notRestored:`The field was not restored`,kinds:{text:{name:`Text`,description:`A line or a few paragraphs of plain words.`},richtext:{name:`Formatted text`,description:`Text with headings, lists, bold and links.`},number:{name:`Number`,description:`A price, a count, a measurement.`},boolean:{name:`Yes or no`,description:`A switch that is on or off.`},date:{name:`Date`,description:`A day on the calendar.`},url:{name:`Web address`,description:`A link to a page anywhere.`},email:{name:`Email address`,description:`An address to write to, such as an agent's.`},phone:{name:`Phone number`,description:`A number to call, as you would write it.`},select:{name:`Choice`,description:`One option from a list you write.`},image:{name:`Image`,description:`One of the site's images, or a new upload.`},reference:{name:`Link to an entry`,description:`An entry of another content type, such as a listing's agent.`},link:{name:`Link`,description:`A page of this site, or an address anywhere. For menus and buttons.`},form:{name:`Form`,description:`One of the site's forms, for a section that shows it.`},list:{name:`List`,description:`Several of the same thing, in order: photos, features.`},group:{name:`Group`,description:`Several fields kept together, such as an address.`},blocks:{name:`Sections`,description:`The sections of a page, in order, each one a block the site's template provides.`}},textMultiline:`Several lines`,textMaxLength:`Longest text allowed`,textMaxLengthHelp:`In characters. Leave empty for no limit.`,numberMin:`Smallest number allowed`,numberMax:`Largest number allowed`,numberInteger:`Whole numbers only`,choices:`Options`,choicesHelp:`One per line. Entries store the option exactly as written here.`,choicesNeeded:`Write at least one option.`,referenceTo:`Links to entries of`,referenceNeeded:`Choose which content type it links to.`,listOf:`Each item is`,listOfHelp:`What the list holds. It cannot be changed once the field exists.`,listOfNeeded:`Choose what each item is.`},home:{greeting:{morning:e=>`Good morning, ${e}`,afternoon:e=>`Good afternoon, ${e}`,evening:e=>`Good evening, ${e}`},description:e=>`Here is where ${e} stands.`,published:`Published`,publishedDetail:`On the site now`,drafts:`Drafts`,draftsDetail:`Not on the site yet`,changed:`Unpublished changes`,changedDetail:`Saved, waiting to be published`,addTitle:`Add new`,recentTitle:`Recent changes`,recentEmpty:`Nothing has been written yet`,recentEmptyDescription:`Entries appear here as soon as someone saves one.`,columnType:`Type`,followUpsTitle:`Follow-ups`,followUpsHelp:`Contacts you look after that are due today or overdue.`,followUpsMore:e=>e===1?`1 more in Contacts`:`${e} more in Contacts`,allContacts:`All contacts`},status:{draft:`Draft`,scheduled:`Scheduled`,published:`Published`,unpublishedChanges:`Unpublished changes`}},g1=(0,x.createContext)({messages:h1,locale:`en`});function _1({messages:e=h1,locale:t=`en`,children:n}){return(0,S.jsx)(g1,{value:{messages:e,locale:t},children:n})}function Q(){return(0,x.useContext)(g1).messages}function v1(){return(0,x.useContext)(g1).locale}function y1(){return new d_(`field control`)}var b1=(0,x.createContext)(null);function x1({controls:e,children:t}){return(0,S.jsx)(b1,{value:e,children:t})}function S1(){let e=(0,x.useContext)(b1);if(!e)throw Error(`useFieldControls() was called outside <AdminApp>. Render the screen inside it.`);return e}function C1(e){let[t,n]=(0,x.useState)(!0);return{close:()=>n(!1),dialog:{isOpen:t,onOpenChange:n,onClosed:e}}}function w1(e){let[t,n]=(0,x.useState)(e);return e!==null&&e!==t&&n(e),e??t}var T1={"align-left":mx,"badge-check":vv,blocks:bv,"building-2":Sv,"calendar-days":Ev,"chart-no-axes-column":Ov,"circle-help":Wv,"columns-2":Kv,contact:Jv,"gallery-horizontal":fy,hash:vy,heading:By,house:by,image:wy,images:Ey,"layout-grid":Py,"layout-list":Iy,"layout-template":Ry,list:Xy,"list-checks":Hy,mail:ib,"map-pin":ob,megaphone:cb,"message-circle":ub,"message-square-quote":fb,newspaper:gb,"panel-top":bb,phone:Ob,play:Ab,quote:Rb,"rows-3":Wb,sparkles:ox,star:cx,table:ux,tag:fx,text:mx,type:vx,users:Ox};function E1(e){return(e===void 0?void 0:T1[e])??bv}function D1({field:e,value:t,onChange:n,path:r,problems:i,isLabelHidden:a=!1}){let o=Q(),s=v1(),c=S1(),l=Qo(),u=Z(e.label,s),d=l.data?.find(t=>t.type===e.type)?.editor;if(d===void 0||!c.has(d))return(0,S.jsx)(VY,{legend:u,description:o.editor.unsupportedField});let{Component:f}=c.get(d),p=e.help?Z(e.help,s):void 0;return(0,S.jsx)(f,{field:e,label:u,help:p,isLabelHidden:a,value:t,onChange:n,path:r,problem:i.get(r),problems:i})}function O1({fields:e,values:t,onChange:n,pathOf:r,problems:i,perRow:a=3}){let o=S1(),s=Qo(),c=e=>{let t=s.data?.find(t=>t.type===e.type)?.editor;return t!==void 0&&o.has(t)&&o.get(t).width===`compact`},l=[];for(let t of e){let e=l.at(-1),[n]=e??[];e&&n&&c(t)&&c(n)&&e.length<a?e.push(t):l.push([t])}let u=e=>(0,S.jsx)(D1,{field:e,value:t[e.id],onChange:t=>n(e,t),path:r(e),problems:i},e.id);return(0,S.jsx)(J,{gap:5,children:l.map(e=>{let[t]=e;return t?c(t)&&a>1?(0,S.jsx)(qY,{columns:a,gap:4,children:e.map(u)},t.id):u(t):null})})}function k1(){let e=S1(),t=Qo();return n=>{let r=t.data?.find(e=>e.type===n)?.editor;return r!==void 0&&e.has(r)?e.get(r):void 0}}function A1({field:e,value:t}){let n=k1()(e.type);return t==null||t===``?null:n?.Summary?(0,S.jsx)(n.Summary,{field:e,value:t}):typeof t!=`string`&&typeof t!=`number`?null:(0,S.jsx)(Y,{size:`sm`,children:String(t)})}var j1=(0,x.createContext)(null);function M1({children:e}){let[t,n]=(0,x.useState)(void 0),[r,i]=(0,x.useState)(void 0),a=(0,x.useMemo)(()=>({pressed:t,press:e=>n(t=>({id:e,at:(t?.at??0)+1})),opened:r,open:i}),[t,r]);return(0,S.jsx)(j1,{value:a,children:e})}function N1(){return(0,x.useContext)(j1)}var P1=e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.block==`string`;function F1(e,t,n){for(let r of l_(e.fields)){let e=t.data[r.id];if(typeof e==`string`&&e.trim()!==``&&n(r))return e}}function I1({field:e,label:t,help:n,value:r,onChange:i,path:a,problem:o,problems:s}){let c=Q(),l=v1(),u=Array.isArray(e.options.blocks)?e.options.blocks:[],d=Array.isArray(r)?r.filter(P1):[],f=typeof e.options.max==`number`?e.options.max:void 0,[p,m]=(0,x.useState)([]),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)(null),y=k1(),b=N1(),C=b?.pressed,w=e=>i(e.length===0?void 0:e),T=e=>{m(t=>t.includes(e)?t:[...t,e]),b?.open(e)};(0,x.useEffect)(()=>{C&&m(e=>e.includes(C.id)?e:[...e,C.id])},[C]);let E=e=>{w(d.filter(t=>t.id!==e)),m(t=>t.filter(t=>t!==e))},D=e=>e?Z(e.label,l):c.editor.sectionUnknown,O=(e,t)=>{let n=d.findIndex(t=>t.id===e),r=d[n];if(r){if(t===`duplicate`){let e={...r,id:crypto.randomUUID(),data:structuredClone(r.data)};w([...d.slice(0,n+1),e,...d.slice(n+1)]),T(e.id)}else t===`hide`?w(d.map(t=>t.id===e?{...t,hidden:!0}:t)):t===`show`?w(d.map(t=>t.id===e?{id:t.id,block:t.block,data:t.data}:t)):t===`remove`&&(Object.keys(r.data).length===0?E(e):v(e))}},k=new Map;for(let e of u){if(e.retiredAt!==void 0)continue;let t=e.group??c.editor.sectionOtherGroup,n=k.get(t)??[];n.push({id:e.id,label:Z(e.label,l),icon:E1(e.icon),...e.description!==void 0&&{description:Z(e.description,l)}}),k.set(t,n)}let A=[...k].map(([e,t])=>({id:e,label:e,options:t})),j=w1(_===null?null:d.find(e=>e.id===_)??null);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(B$,{label:t,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o},emptyText:c.editor.sectionsEmpty,addLabel:c.editor.sectionAdd,onAdd:()=>g(!0),isFull:f!==void 0&&d.length>=f,openIds:p,revealId:C?.id,onOpenChange:(e,t)=>{t?T(e):m(t=>t.filter(t=>t!==e))},onMove:(e,t)=>{let n=[...d],[r]=n.splice(e,1);r&&n.splice(t,0,r),w(n)},onAction:O,moveUpLabel:e=>c.editor.sectionMoveUp(D(L1(u,d[e-1])),e),moveDownLabel:e=>c.editor.sectionMoveDown(D(L1(u,d[e-1])),e),moreLabel:e=>c.editor.sectionMore(D(L1(u,d[e-1])),e),dragLabel:e=>c.editor.sectionDrag(D(L1(u,d[e-1])),e),items:d.map((e,t)=>{let n=L1(u,e),r=n===void 0||n.retiredAt!==void 0,i=n?l_(n.fields):[],o=`${a}.${t}.`,l=[...s.keys()].filter(e=>e.startsWith(o)).length,p=n?F1(n,e,e=>y(e.type)?.width!==`compact`):void 0,m=e.hidden===!0;return{id:e.id,title:D(n),icon:E1(n?.icon),...p!==void 0&&{summary:p},...r?{tag:c.editor.sectionRetired}:m&&{tag:c.editor.sectionHidden},...l>0&&{problem:c.editor.sectionProblems(l)},actions:[...r?[]:[{id:`duplicate`,label:c.editor.sectionDuplicate,icon:Xv,isDisabled:f!==void 0&&d.length>=f},m?{id:`show`,label:c.editor.sectionShow,icon:iy}:{id:`hide`,label:c.editor.sectionHide,icon:ny}],{id:`remove`,label:c.editor.sectionRemove,icon:gx,tone:`danger`}],content:r?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:c.editor.sectionRetiredNote}):i.length===0?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:c.editor.sectionNoFields}):(0,S.jsx)(O1,{fields:i,values:e.data,onChange:(t,n)=>w(d.map(r=>r.id===e.id?{...r,data:d1(r.data,t.id,n)}:r)),pathOf:e=>`${o}${e.key}`,problems:s})}})}),(0,S.jsx)(a$,{isOpen:h,onOpenChange:g,title:c.editor.sectionPickerTitle,closeLabel:c.editor.close,emptyText:c.editor.sectionPickerEmpty,groups:A,onChoose:e=>{let t={id:crypto.randomUUID(),block:e,data:{}};w([...d,t]),T(t.id)}}),(0,S.jsx)(tQ,{isOpen:_!==null,onOpenChange:e=>{e||v(null)},title:c.editor.sectionRemoveTitle(D(L1(u,j??void 0))),confirmLabel:c.editor.sectionRemoveConfirm,cancelLabel:c.editor.cancel,tone:`danger`,onConfirm:()=>{_!==null&&E(_),v(null)},children:c.editor.sectionRemoveDescription})]})}function L1(e,t){return t?e.find(e=>e.id===t.block):void 0}var R1=200,z1=`:address`,B1=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function V1({type:e,chosen:t,onChange:n,problem:r}){let i=Q(),a=v1(),o=Xo({type:e.key,limit:R1}),s=p1(o.data?.items??[],a).map(({primary:t})=>({id:t.translationGroup,label:s1(e,t.data)??t.slug})).sort((e,t)=>e.label.localeCompare(t.label,a)),c=t!==void 0&&!s.some(e=>e.id===t),l=r??(o.isError?i.editor.linkNotLoaded:void 0);return(0,S.jsx)(OX,{label:i.editor.linkWhich(Z(e.label,a)),options:c?[{id:t,label:o.isSuccess?i.editor.linkGone:i.editor.linkLoading},...s]:s,placeholder:i.editor.choose,onChange:n,isRequired:!0,...t!==void 0&&{value:t},...l!==void 0&&{errorMessage:l}})}function H1({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,path:o,problem:s,problems:c}){let l=Q(),u=v1(),d=Io(),f=Array.isArray(e.options.to)?e.options.to:void 0,p=(d.data??[]).filter(e=>o_(e)&&e.urlPattern!==void 0&&(f===void 0||f.includes(e.key))),m=B1(i)?i:void 0,h=m?.kind===`address`?z1:typeof m?.type==`string`?m.type:void 0,[g,_]=(0,x.useState)(h),v=h??g,y=p.find(e=>e.key===v),b=c.get(`${o}.href`)??c.get(`${o}.entry`)??c.get(`${o}.type`)??c.get(`${o}.kind`)??s,C=[...p.map(e=>({id:e.key,label:Z(e.label,u)})),{id:z1,label:l.editor.linkAddressChoice}],w=v===void 0||C.some(e=>e.id===v);return(0,S.jsxs)(qY,{columns:2,gap:4,children:[(0,S.jsx)(OX,{label:t,isLabelHidden:r,options:w||v===void 0?C:[{id:v,label:d.isSuccess?l.editor.linkMissing(v):v},...C],placeholder:l.editor.choose,isRequired:e.required,onChange:e=>{e!==v&&(_(e),a(void 0))},...v!==void 0&&{value:v},...n!==void 0&&{description:n},...v===void 0&&b!==void 0&&{errorMessage:b}}),v===z1&&(0,S.jsx)(mZ,{label:l.editor.linkAddress,description:l.editor.linkAddressHelp,value:typeof m?.href==`string`?m.href:``,onChange:e=>a(e.trim()===``?void 0:{kind:`address`,href:e.trim()}),isRequired:!0,...b!==void 0&&{errorMessage:b}}),y!==void 0&&(0,S.jsx)(V1,{type:y,chosen:typeof m?.entry==`string`?m.entry:void 0,onChange:e=>a({kind:`entry`,type:y.key,entry:e}),problem:b})]})}var U1=`modulepreload`,W1=function(e,t){return new URL(e,t).href},G1={},K1=function(e){return e.pathname.endsWith(`.css`)},q1=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},J1=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=W1(t,n);let r=s(t),i=K1(r);return q1(G1,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:U1,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Y1(e,t){let n=e.options[t];return typeof n==`number`?n:void 0}function X1({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s={label:t,isLabelHidden:r,...n!==void 0&&{description:n},value:typeof i==`string`?i:``,onChange:e=>a(e===``?void 0:e),isRequired:e.required,...o!==void 0&&{errorMessage:o}};return e.options.multiline===!0?(0,S.jsx)(_Z,{...s}):(0,S.jsx)(mZ,{...s})}var Z1=e=>function({field:t,label:n,help:r,isLabelHidden:i=!1,value:a,onChange:o,problem:s}){return(0,S.jsx)(mZ,{type:e,label:n,isLabelHidden:i,value:typeof a==`string`?a:``,onChange:e=>o(e===``?void 0:e),isRequired:t.required,...r!==void 0&&{description:r},...s!==void 0&&{errorMessage:s}})},Q1=Z1(`url`),$1=Z1(`email`),e0=Z1(`tel`);function t0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Y1(e,`min`),c=Y1(e,`max`);return(0,S.jsx)(fX,{label:t,isLabelHidden:r,value:typeof i==`number`?i:null,onChange:e=>a(e??void 0),width:`full`,isInteger:e.options.integer===!0,isRequired:e.required,...s!==void 0&&{minValue:s},...c!==void 0&&{maxValue:c},...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function n0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){return(0,S.jsx)(TY,{width:`full`,label:t,isLabelHidden:r,value:typeof i==`string`?i:null,onChange:e=>a(e??void 0),isRequired:e.required,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function r0({label:e,value:t,onChange:n}){return(0,S.jsx)(JX,{label:e,isSelected:t===!0,onChange:n})}function i0({value:e}){let t=v1();return(0,S.jsx)(Y,{size:`sm`,children:typeof e==`number`?new Intl.NumberFormat(t).format(e):String(e)})}function a0(e,t,n){let r=(e.options.labels??{})[t];return r?Z(r,n):t}function o0({field:e,value:t}){let n=v1();return(0,S.jsx)(Y,{size:`sm`,children:a0(e,String(t),n)})}function s0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=v1(),l=Array.isArray(e.options.choices)?e.options.choices.filter(e=>typeof e==`string`):[];return(0,S.jsx)(OX,{label:t,isLabelHidden:r,...n!==void 0&&{description:n},options:l.map(t=>({id:t,label:a0(e,t,c)})),placeholder:s.editor.choose,onChange:a,isRequired:e.required,...typeof i==`string`&&{value:i},...o!==void 0&&{errorMessage:o}})}var c0=200;function l0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=v1(),l=typeof e.options.to==`string`?e.options.to:``,u=Io(),d=Xo({type:l,limit:c0}),f=u.data?.find(e=>e.key===l),p=f?p1(d.data?.items??[],c).map(({primary:e})=>({id:e.slug,label:s1(f,e.data)??e.slug})):[],m=p.filter((e,t)=>p.findIndex(t=>t.id===e.id)===t).sort((e,t)=>e.label.localeCompare(t.label,c)),h=typeof i==`string`?i:void 0,g=h!==void 0&&!m.some(e=>e.id===h),_=o??(d.isError?s.editor.linkNotLoaded:void 0);return(0,S.jsx)(OX,{label:t,isLabelHidden:r,options:g?[{id:h,label:d.isSuccess?s.editor.linkMissing(h):h},...m]:m,placeholder:s.editor.choose,onChange:a,isRequired:e.required,...h!==void 0&&{value:h},...n!==void 0&&{description:n},..._!==void 0&&{errorMessage:_}})}function u0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=v1(),l=vs(),u=(l.data??[]).map(e=>({id:e.id,label:e.open?Z(e.label,c):s.editor.formClosed(Z(e.label,c))})).sort((e,t)=>e.label.localeCompare(t.label,c)),d=typeof i==`string`?i:void 0,f=d!==void 0&&!u.some(e=>e.id===d),p=o??(l.isError?s.editor.linkNotLoaded:void 0),m=(l.isSuccess&&u.length===0?s.editor.noForms:void 0)??n;return(0,S.jsx)(OX,{label:t,isLabelHidden:r,options:f?[{id:d,label:l.isSuccess?s.editor.formMissing:s.editor.formLoading},...u]:u,placeholder:s.editor.choose,onChange:a,isRequired:e.required,...d!==void 0&&{value:d},...m!==void 0&&{description:m},...p!==void 0&&{errorMessage:p}})}var d0=e=>String(Math.round(e/1e5)/10);function f0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=$o(),l=es().data??null,u=ns(),[d,f]=(0,x.useState)(!1),p=async e=>{f(!1),u.reset();let t=await i1(e,l?.maxBytes??0).catch(()=>null);if(!t)throw f(!0),Error(s.editor.imageNotRead);a((await u.mutateAsync(t)).name),X({title:s.editor.imageUploaded,description:s.editor.imageUploadedDescription,tone:`success`})},m=d?s.editor.imageNotRead:u.error?.message,h=typeof i==`string`&&i!==``?i:null,g=h!==null&&c.isSuccess&&!c.data.some(e=>e.name===h),_=o??(c.isError?s.editor.imagesNotLoaded:g?s.editor.imageMissing:void 0);return(0,S.jsx)(BQ,{label:t,isLabelHidden:r,value:h,images:(c.data??[]).map(e=>({...e,url:a1(e)})),onChange:a,isRequired:e.required,chooseLabel:s.editor.imageChoose,changeLabel:s.editor.imageChange,noneText:s.editor.imageNone,dialogTitle:s.editor.imageChoose,closeLabel:s.editor.close,emptyText:c.isPending?s.editor.imagesLoading:s.editor.imagesEmpty,...l&&{onUpload:p,uploadLabel:s.editor.imageUpload,uploadHint:s.editor.imageUploadHint(d0(l.maxBytes))},...m!==void 0&&{uploadError:m},...n!==void 0&&{description:n},..._!==void 0&&{errorMessage:_}})}var p0=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`),m0=(0,x.lazy)(async()=>({default:(await J1(async()=>{let{RichTextEditor:e}=await import(`./RichTextEditor-B1fSHY4y.js`);return{RichTextEditor:e}},[],import.meta.url)).RichTextEditor}));function h0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=p0(i)?y_(i):typeof i==`object`&&i?i:null;return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(NX,{label:s.app.loading,children:(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(MX,{width:`sm`}),(0,S.jsx)(MX,{shape:`block`})]})}),children:(0,S.jsx)(m0,{label:t,isLabelHidden:r,value:c,onChange:e=>a(e??void 0),isRequired:e.required,words:s.editor.richText,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})})}function g0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,path:o,problem:s,problems:c}){let l=Array.isArray(e.options.fields)?l_(e.options.fields):[],u=typeof i==`object`&&i?i:{};return(0,S.jsxs)(VY,{legend:t,isLegendHidden:r,...n!==void 0&&{description:n},children:[s!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`danger`,children:s}),(0,S.jsx)(O1,{fields:l,values:u,onChange:(e,t)=>{let n=d1(u,e.id,t);a(Object.keys(n).length===0?void 0:n)},pathOf:e=>`${o}.${e.key}`,problems:c})]})}var _0=e=>e!=null,v0=(e,t)=>({id:`stored-${t}`,value:e});function y0(e,t){let n=Array.isArray(e.options.fields)?l_(e.options.fields):[],r=typeof t==`object`&&t?t:{};for(let e of n){let t=r[e.id];if(typeof t==`string`&&t.trim()!==``)return t}}function b0({field:e,label:t,help:n,value:r,onChange:i,path:a,problem:o,problems:s}){let c=Q(),l=Array.isArray(r)?r:[],[u,d]=(0,x.useState)(()=>l.map(v0)),f=f1(u.map(e=>e.value).filter(_0),l)?u:l.map(v0),[p,m]=(0,x.useState)([]),h=e.options.of??{type:`text`},g=typeof e.options.max==`number`?e.options.max:void 0,_=e=>{d(e);let t=e.map(e=>e.value).filter(_0);i(t.length===0?void 0:t)},v=k1()(h.type)?.titleOf,y=n=>({id:`${e.id}.${n}`,key:String(n),type:h.type,label:{[x0]:c.editor.listItem(t,n+1)},translated:e.translated,required:!1,options:h.options??{}}),b=(e,t)=>{let n=[...f],[r]=n.splice(e,1);r&&n.splice(t,0,r),_(n)},C=(e,t)=>(0,S.jsx)(D1,{field:y(t),value:e.value,onChange:t=>_(f.map(n=>n.id===e.id?{...n,value:t}:n)),path:`${a}.${t}`,problems:s,isLabelHidden:!0}),w={label:t,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o},emptyText:c.editor.listEmpty,addLabel:c.editor.listAdd,isFull:g!==void 0&&f.length>=g,onMove:b,moveUpLabel:e=>c.editor.listMoveUp(t,e),moveDownLabel:e=>c.editor.listMoveDown(t,e)},T=()=>{let e={id:crypto.randomUUID(),value:void 0};_([...f,e]),m(t=>[...t,e.id])};return v?(0,S.jsx)(B$,{...w,onAdd:T,openIds:p,onOpenChange:(e,t)=>m(n=>t?[...n,e]:n.filter(t=>t!==e)),moreLabel:e=>c.editor.listMore(t,e),dragLabel:e=>c.editor.listDrag(t,e),onAction:(e,t)=>{let n=f.findIndex(t=>t.id===e),r=f[n];r&&(t===`remove`?_(f.filter(t=>t.id!==e)):t===`duplicate`&&_([...f.slice(0,n+1),{id:crypto.randomUUID(),value:structuredClone(r.value)},...f.slice(n+1)]))},items:f.map((e,n)=>{let r=`${a}.${n}`,i=[...s.keys()].filter(e=>e===r||e.startsWith(`${r}.`)).length;return{id:e.id,title:v(y(n),e.value)??c.editor.listItem(t,n+1),...i>0&&{problem:c.editor.listProblems(i)},actions:[{id:`duplicate`,label:c.editor.listDuplicate,icon:Xv,isDisabled:w.isFull},{id:`remove`,label:c.editor.listRemoveRow,icon:gx,tone:`danger`}],content:C(e,n)}})}):(0,S.jsx)(_Q,{...w,onAdd:T,removeLabel:e=>c.editor.listRemove(t,e),onRemove:e=>_(f.filter((t,n)=>n!==e)),items:f.map((e,t)=>({id:e.id,content:C(e,t)}))})}var x0=`en`;function S0(){return y1().register({type:`text-input`,Component:X1}).register({type:`url-input`,Component:Q1}).register({type:`email-input`,Component:$1}).register({type:`phone-input`,Component:e0}).register({type:`number-input`,Component:t0,width:`compact`,Summary:i0,summaryAlign:`end`}).register({type:`date-picker`,Component:n0,width:`compact`}).register({type:`switch`,Component:r0}).register({type:`select`,Component:s0,width:`compact`,Summary:o0}).register({type:`reference`,Component:l0,width:`compact`}).register({type:`form-picker`,Component:u0,width:`compact`}).register({type:`link`,Component:H1}).register({type:`image`,Component:f0}).register({type:`rich-text`,Component:h0}).register({type:`group`,Component:g0,titleOf:y0}).register({type:`list`,Component:b0}).register({type:`blocks`,Component:I1,showsPage:!0})}var C0=[`general`,`email`,`storage`,`forms`],$={home:`/`,signIn:`/sign-in`,people:`/people`,media:`/media`,trash:`/trash`,forms:`/forms`,form:e=>`/forms/${encodeURIComponent(e)}`,contacts:`/contacts`,contact:e=>`/contacts/${encodeURIComponent(e)}`,deals:`/deals`,plugins:`/plugins`,pluginScreen:(e,t)=>`/plugins/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,settings:(e=C0[0])=>`/settings/${e}`,settingsPage:e=>`/settings/page/${encodeURIComponent(e)}`,types:`/types`,type:(e,t=[])=>`/types/${encodeURIComponent(e)}${t.length>0?`?${new URLSearchParams(t.map(e=>[`in`,e]))}`:``}`,contentList:e=>`/content/${encodeURIComponent(e)}`,entry:(e,t)=>`/content/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,newEntry:e=>`/content/${encodeURIComponent(e)}/new`},w0={Box:q_,Button:q,Card:cY,Checkbox:dY,ConfirmDialog:tQ,DateField:TY,Dialog:LY,EmptyState:iQ,Fieldset:VY,Form:GY,Grid:qY,Heading:ZY,Inline:$Y,Link:tX,NumberField:fX,PageHeader:oQ,SearchField:_X,Segmented:bX,Select:OX,Skeleton:MX,SkeletonGroup:NX,Spinner:RX,Split:WQ,Stack:J,Stat:UX,Switch:JX,Table:rZ,Tabs:cZ,Tag:uZ,Text:Y,TextArea:_Z,TextField:mZ,Tooltip:DY,toast:X};function T0(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;return e=>import(new URL(`${t}/plugins/${encodeURIComponent(e)}.js`,location.origin).href)}var E0=/^[a-z][a-z0-9-]{0,39}$/,D0=e=>e instanceof Error?e.message:String(e),O0=class{#e={screens:[],panels:[],problems:new Map,settled:new Set};#t=new Set;#n=new Set;subscribe=e=>(this.#n.add(e),()=>void this.#n.delete(e));snapshot=()=>this.#e;#r(e){this.#e={...this.#e,...e};for(let e of this.#n)e()}follow(e,t){let n=new Set(e),r=[...this.#t].filter(e=>!n.has(e));if(r.length>0){for(let e of r)this.#t.delete(e);this.#r({screens:this.#e.screens.filter(e=>n.has(e.plugin)),panels:this.#e.panels.filter(e=>n.has(e.plugin)),problems:new Map([...this.#e.problems].filter(([e])=>n.has(e))),settled:new Set([...this.#e.settled].filter(e=>n.has(e)))})}for(let n of e)this.#t.has(n)||(this.#t.add(n),this.#i(n,t))}async#i(e,{loader:t,client:n,controls:r}){let i=[],a=[],o=(e,t)=>{if(typeof t!=`string`||!E0.test(t))throw Error(`A ${e} needs an id of lower-case letters, digits and dashes, and "${String(t)}" is not one.`)},s={name:e,React:x,ui:w0,client:{get:(t,r)=>n.callPlugin(e,`GET`,t,r?{query:r}:{}),post:(t,r)=>n.callPlugin(e,`POST`,t,{body:r}),put:(t,r)=>n.callPlugin(e,`PUT`,t,{body:r}),delete:(t,r)=>n.callPlugin(e,`DELETE`,t,{body:r})},links:{entry:(e,t)=>$.entry(e,t)},register:{control:e=>void(r.has(e.type)||r.register(e)),screen:t=>{o(`screen`,t.id),i.push({...t,plugin:e})},entryPanel:t=>{o(`panel`,t.id),a.push({...t,plugin:e})}}},c=null;try{let n=await t(e);if(typeof n.default!=`function`)throw Error(`Its editor file has no default export to run.`);n.default(s)}catch(e){c=D0(e)}this.#t.has(e)&&this.#r({...c===null&&{screens:[...this.#e.screens,...i],panels:[...this.#e.panels,...a]},...c!==null&&{problems:new Map([...this.#e.problems,[e,c]])},settled:new Set([...this.#e.settled,e])})}},k0=(0,x.createContext)(null);function A0({extensions:e,loader:t,children:n}){return(0,S.jsx)(k0,{value:{extensions:e,loader:t},children:n})}function j0(){let e=(0,x.useContext)(k0);if(!e)throw Error(`Plugin extensions were asked for outside <AdminApp>. Render the screen inside it.`);return e}function M0(){let{extensions:e}=j0();return(0,x.useSyncExternalStore)(e.subscribe,e.snapshot,e.snapshot)}function N0(e){let{extensions:t,loader:n}=j0(),r=R(),i=S1(),a=Dc(e),{settled:o}=M0(),s=a.data?.map(e=>e.name),c=s?.join(`,`);return(0,x.useEffect)(()=>{c!==void 0&&t.follow(c===``?[]:c.split(`,`),{loader:n,client:r,controls:i})},[c,t,n,r,i]),!e||a.isError?!0:s!==void 0&&s.every(e=>o.has(e))}var P0=[0,1,2,3,4];function F0(){return(0,S.jsx)(cY,{children:(0,S.jsx)(J,{gap:5,children:P0.map(e=>(0,S.jsxs)($Y,{gap:6,children:[(0,S.jsx)(q_,{grow:!0,children:(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(MX,{width:e%2==0?`1/3`:`1/4`}),(0,S.jsx)(MX,{width:`xs`})]})}),(0,S.jsx)(MX,{width:`sm`}),(0,S.jsx)(MX,{width:`sm`})]},e))})})}function I0(){return(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(MX,{shape:`title`,width:`1/4`}),(0,S.jsx)(MX,{width:`1/3`})]})}var L0={table:()=>(0,S.jsx)(F0,{}),page:()=>(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(I0,{}),(0,S.jsx)(F0,{})]})}),summary:()=>(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(qY,{columns:3,gap:4,children:[0,1,2].map(e=>(0,S.jsx)(cY,{children:(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(MX,{width:`1/2`}),(0,S.jsx)(MX,{shape:`title`,width:`1/4`}),(0,S.jsx)(MX,{width:`3/4`})]})},e))}),(0,S.jsx)(F0,{})]}),form:()=>(0,S.jsx)(q_,{paddingX:12,paddingY:8,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(I0,{}),(0,S.jsx)(cY,{children:(0,S.jsxs)(J,{gap:5,children:[[0,1,2].map(e=>(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(MX,{width:`sm`}),(0,S.jsx)(MX,{shape:`control`})]},e)),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(MX,{width:`sm`}),(0,S.jsx)(MX,{shape:`block`})]})]})})]})})};function R0({label:e,shape:t=`page`}){let n=Q(),r=e??n.app.loading;return t===`spinner`?(0,S.jsx)(q_,{padding:8,children:(0,S.jsx)(RX,{label:r,showLabel:!0})}):(0,S.jsx)(NX,{label:r,children:L0[t]()})}function z0({error:e,onRetry:t}){let n=Q();return(0,S.jsx)(iQ,{icon:Hv,title:n.app.somethingWentWrong,description:e.message,action:(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:n.app.tryAgain})})}function B0(){let e=Zi();return(0,x.useCallback)((t,n)=>void e(t,{viewTransition:!0,...n}),[e])}function V0(){let e=Q().contacts.stages;return t=>t===void 0?``:t.label??e[t.id]??t.id}var H0={open:`neutral`,won:`success`,lost:`danger`};function U0(){let e=new Date,t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function W0(){let e=Q(),t=v1(),n=U0();return r=>r<n?{text:e.contacts.due.overdue,tone:`danger`}:r===n?{text:e.contacts.due.today,tone:`warning`}:{text:G0(r,t),tone:`neutral`}}function G0(e,t){let n=new Date(`${e}T00:00:00`);return Number.isNaN(n.getTime())?e:new Intl.DateTimeFormat(t,{day:`numeric`,month:`short`,year:`numeric`}).format(n)}function K0(e){let t=Q();return n=>n===void 0?``:e?.find(e=>e.id===n)?.name??(e===void 0?``:t.contacts.someoneWhoLeft)}function q0(e){let t=v1();return n=>{try{return new Intl.NumberFormat(t,{style:`currency`,currency:e??`USD`,maximumFractionDigits:0}).format(n)}catch{return`${new Intl.NumberFormat(t).format(n)} ${e??``}`.trim()}}}var J0=new Map;function Y0(e,t){let n=ic(),[r,i]=(0,x.useState)({}),[a,o]=(0,x.useState)(J0);return{fields:l_(n.data?.[e]??[]),values:{...t,...r},problems:a,change:(e,t)=>i(n=>({...n,[e]:t})),toSend:()=>Object.keys(r).length===0?{}:{data:Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t??null]))},refused:e=>{let t=e instanceof No?e.issues.filter(e=>e.path[0]===`data`):[];o(new Map(t.map(e=>[e.path.slice(1).join(`.`),e.message])))}}}function X0({custom:e}){return(0,S.jsx)(S.Fragment,{children:e.fields.map(t=>(0,S.jsx)(D1,{field:t,value:e.values[t.id],onChange:n=>e.change(t.id,n),path:t.key,problems:e.problems},t.id))})}function Z0(e,t,n){let r=URL.createObjectURL(new Blob([t],{type:n})),i=document.createElement(`a`);i.href=r,i.download=e,i.click(),URL.revokeObjectURL(r)}var Q0=[[`year`,31536e6],[`month`,2592e6],[`day`,864e5],[`hour`,36e5],[`minute`,6e4]];function $0(e,t,n=new Date){let r=new Intl.RelativeTimeFormat(t,{numeric:`auto`}),i=new Date(e).getTime()-n.getTime();for(let[e,t]of Q0)if(Math.abs(i)>=t)return r.format(Math.round(i/t),e);return r.format(0,`second`)}function e2(e){let t=Q(),n=v1();return r=>{if(!r.source)return t.contacts.addedByHand;let i=e?.find(e=>e.id===r.source?.formId);if(!i)return e===void 0?``:t.contacts.aFormNowGone;let a=Z(i.label,n);return r.source.page===void 0?t.contacts.fromForm(a):t.contacts.fromFormOn(a,r.source.page)}}function t2(e,t){return e==null?``:e===!0?t:typeof e==`string`?e:typeof e==`number`?String(e):JSON.stringify(e)}var n2=200,r2=`:nothing`;function i2(){let e=v1(),t=Io(),n=(t.data??[]).filter(e=>o_(e)&&e.forDeals===!0),r=Zo(n.map(e=>({type:e.key,limit:n2}))),i=new Map;return n.forEach((t,n)=>{i.set(t.id,p1(r[n]?.data?.items??[],e).map(({primary:e})=>({id:e.translationGroup,label:s1(t,e.data)??e.slug})).sort((t,n)=>t.label.localeCompare(n.label,e)))}),{types:n,entriesOf:e=>i.get(e)??[],nameOf:e=>e===void 0?void 0:i.get(e.typeId)?.find(t=>t.id===e.entry)?.label,isLoaded:t.isSuccess&&r.every(e=>e.isSuccess)}}function a2({subjects:e,about:t,onChange:n,problem:r}){let i=Q(),a=v1(),[o,s]=(0,x.useState)(t?.typeId??r2),c=t?.typeId??o;if(e.types.length===0&&t===void 0)return null;let l=[{id:r2,label:i.deals.aboutNothing},...e.types.map(e=>({id:e.id,label:Z(e.label,a)}))],u=e.types.find(e=>e.id===c),d=c===r2?[]:e.entriesOf(c),f=l.some(e=>e.id===c),p=t===void 0||d.some(e=>e.id===t.entry),m=e.isLoaded?i.deals.aboutGone:i.deals.aboutLoading;return(0,S.jsxs)(qY,{columns:2,gap:3,children:[(0,S.jsx)(OX,{label:i.deals.about,options:f?l:[...l,{id:c,label:m}],value:c,onChange:e=>{e!==c&&(s(e),n(void 0))},...c===r2&&r!==void 0&&{errorMessage:r}}),c!==r2&&(0,S.jsx)(OX,{label:u?i.deals.aboutWhich(Z(u.label,a)):i.deals.aboutWhichOne,options:p||t===void 0?d:[{id:t.entry,label:m},...d],placeholder:i.editor.choose,onChange:e=>n({typeId:c,entry:e},d.find(t=>t.id===e)?.label),...t!==void 0&&{value:t.entry},...r!==void 0&&{errorMessage:r}})]})}var o2=`nobody`,s2={},c2=e=>e instanceof Error?e.message:String(e);function l2({deal:e,contact:t,pipeline:n,team:r,onClose:i}){let{close:a,dialog:o}=C1(i),s=Q(),c=V0(),l=Hs(),u=Us(),d=Ws(),[f,p]=(0,x.useState)(e?.title??``),[m,h]=(0,x.useState)(e?.about),g=i2(),[_,v]=(0,x.useState)(e?.value??null),[y,b]=(0,x.useState)(e?.stage??n.stages[0]?.id??``),[C,w]=(0,x.useState)(e?e.ownerId??o2:t.ownerId??o2),[T,E]=(0,x.useState)(e?.closeOn??null),[D,O]=(0,x.useState)(s2),k=Y0(`deal`,e?.data),A=n.currency??`USD`,j=e=>{e instanceof No&&O(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),k.refused(e),X({title:s.deals.notSaved,description:c2(e),tone:`danger`})},M=()=>{if(f.trim()===``)return O({title:s.deals.nameNeeded});O(s2);let n=_??0;e?u.mutate({id:e.id,changes:{title:f,about:m??null,value:n,stage:y,ownerId:C===o2?null:C,closeOn:T,...k.toSend(),expectedRevision:e.revision}},{onSuccess:e=>{X({title:s.deals.saved(e.title),tone:`success`}),a()},onError:j}):l.mutate({contactId:t.id,title:f,...m&&{about:m},value:n,stage:y,...C!==o2&&{ownerId:C},...T!==null&&{closeOn:T},...k.toSend()},{onSuccess:e=>{X({title:s.deals.created(e.title),tone:`success`}),a()},onError:j})},ee=e?s.deals.editTitle(e.title):s.deals.addTitle,N=[{id:o2,label:s.contacts.nobody},...r.map(e=>({id:e.id,label:e.name})),...C!==o2&&!r.some(e=>e.id===C)?[{id:C,label:s.contacts.someoneWhoLeft}]:[]];return(0,S.jsx)(LY,{...o,title:ee,closeLabel:s.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[e&&(0,S.jsx)(q,{variant:`ghost`,icon:gx,isPending:d.isPending,onPress:()=>d.mutate(e.id,{onSuccess:()=>{X({title:s.deals.deleted(e.title),tone:`success`}),a()},onError:e=>X({title:s.deals.notDeleted,description:c2(e),tone:`danger`})}),children:s.deals.delete}),(0,S.jsx)(q,{variant:`secondary`,onPress:a,children:s.editor.cancel}),(0,S.jsx)(q,{isPending:l.isPending||u.isPending,onPress:M,children:e?s.deals.save:s.deals.create})]}),children:(0,S.jsxs)(GY,{label:ee,gap:4,onSubmit:M,children:[(0,S.jsx)(mZ,{label:s.deals.name,placeholder:s.deals.namePlaceholder,value:f,onChange:p,isRequired:!0,autoFocus:!0,autoComplete:`off`,...D.title!==void 0&&{errorMessage:D.title}}),(0,S.jsx)(a2,{subjects:g,about:m,problem:D.about,onChange:(e,t)=>{h(e),t!==void 0&&f.trim()===``&&p(t)}}),(0,S.jsxs)(qY,{columns:2,gap:3,children:[(0,S.jsx)(fX,{label:s.deals.value(A),value:_,onChange:v,minValue:0,isInteger:!0,...D.value!==void 0&&{errorMessage:D.value}}),(0,S.jsx)(OX,{label:s.deals.stage,options:n.stages.map(e=>({id:e.id,label:c(e)})),value:y,onChange:b,...D.stage!==void 0&&{errorMessage:D.stage}}),(0,S.jsx)(OX,{label:s.deals.owner,options:N,value:C,onChange:w,...D.ownerId!==void 0&&{errorMessage:D.ownerId}}),(0,S.jsx)(TY,{label:s.deals.closeOn,value:T,onChange:E,...D.closeOn!==void 0&&{errorMessage:D.closeOn}})]}),(0,S.jsx)(X0,{custom:k})]})})}function u2({contact:e}){let t=Q(),n=v1(),r=Rs({contactId:e.id,limit:200}),i=nc(),a=oc(),o=V0(),s=q0(i.data?.currency),[c,l]=(0,x.useState)(null),u=[{id:`title`,label:t.deals.columnTitle},{id:`stage`,label:t.deals.columnStage},{id:`close`,label:t.deals.columnClose},{id:`value`,label:t.deals.columnValue,align:`end`}],d=(r.data?.items??[]).map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage);return{id:e.id,cells:{title:(0,S.jsx)(Y,{weight:`semibold`,children:e.title}),stage:t?(0,S.jsx)(uZ,{tone:H0[t.kind],children:o(t)}):``,close:(0,S.jsx)(Y,{tone:`secondary`,children:e.closeOn===void 0?``:G0(e.closeOn,n)}),value:(0,S.jsx)(Y,{weight:`semibold`,children:s(e.value)})}}});return(0,S.jsxs)(cY,{title:t.deals.cardTitle,children:[(0,S.jsxs)(J,{gap:4,children:[r.isPending&&(0,S.jsx)(R0,{shape:`table`}),r.isError&&(0,S.jsx)(z0,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:t.deals.cardEmpty}),r.isSuccess&&d.length>0&&(0,S.jsx)(rZ,{label:t.deals.cardTitle,columns:u,rows:d,onRowAction:e=>l(r.data.items.find(t=>t.id===e)??null)}),(0,S.jsx)($Y,{children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Pb,isDisabled:!i.isSuccess,onPress:()=>l(`new`),children:t.deals.add})})]}),c!==null&&i.data&&(0,S.jsx)(l2,{...c!==`new`&&{deal:c},contact:e,pipeline:i.data,team:a.data??[],onClose:()=>l(null)})]})}var d2=`nobody`,f2=`2000-01-01`,p2=e=>e instanceof Error?e.message:String(e);function m2({contact:e}){let t=Q(),n=v1(),r=nc(),i=oc(),a=pc(),o=V0(),[s,c]=(0,x.useState)(e.followUpAt??null),l=(n,r)=>a.mutate({id:e.id,changes:{...n,expectedRevision:e.revision}},{onSuccess:()=>X({title:r,tone:`success`}),onError:e=>X({title:t.contacts.notChanged,description:p2(e),tone:`danger`})}),u=r.data?.stages??[],d=i.data??[],f=[{id:d2,label:t.contacts.nobody},...d.map(e=>({id:e.id,label:e.name})),...e.ownerId!==void 0&&i.isSuccess&&!d.some(t=>t.id===e.ownerId)?[{id:e.ownerId,label:t.contacts.someoneWhoLeft}]:[]];return(0,S.jsx)(cY,{title:t.contacts.work,children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(OX,{label:t.contacts.stage,options:u.map(e=>({id:e.id,label:o(e)})),value:e.stage,isDisabled:a.isPending||!r.isSuccess,onChange:n=>n!==e.stage&&l({stage:n},t.contacts.stageSaved(o(u.find(e=>e.id===n))))}),(0,S.jsx)(OX,{label:t.contacts.owner,options:f,value:e.ownerId??d2,isDisabled:a.isPending||!i.isSuccess,onChange:n=>{n!==(e.ownerId??d2)&&(n===d2?l({ownerId:null},t.contacts.ownerCleared):l({ownerId:n},t.contacts.ownerSaved(d.find(e=>e.id===n)?.name??``)))}}),(0,S.jsx)(TY,{label:t.contacts.followUp,description:t.contacts.followUpHelp,value:s,isDisabled:a.isPending,onChange:r=>{c(r),r!==(e.followUpAt??null)&&(r===null?l({followUpAt:null},t.contacts.followUpCleared):r>=f2&&l({followUpAt:r},t.contacts.followUpSaved(G0(r,n))))}})]})})}var h2={},g2={},_2=e=>e instanceof Error?e.message:String(e);function v2(){let{contactId:e=``}=ta(),t=Q(),n=Fo();return n.data===null||n.data===void 0||n.data.role===`author`?(0,S.jsx)(iQ,{icon:Jv,title:t.contacts.title,description:t.contacts.noAccess}):(0,S.jsx)(y2,{id:e},e)}function y2({id:e}){let t=Q(),n=sc(e);return n.isPending?(0,S.jsx)(R0,{}):n.isError?n.error instanceof No&&n.error.code===`not_found`?(0,S.jsx)(iQ,{icon:Jv,title:t.contacts.notFoundTitle,description:t.contacts.notFoundDescription,action:(0,S.jsx)(tX,{href:$.contacts,children:t.contacts.backToContacts})}):(0,S.jsx)(z0,{error:n.error,onRetry:()=>void n.refetch()}):(0,S.jsx)(b2,{contact:n.data})}function b2({contact:e}){let t=Q(),n=v1(),r=B0(),i=e2(vs().data),a=_c(),o=mc(),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(!1),d=e.name??e.email,f=ic(),p=e.data??g2,m=[[t.contacts.email,e.email],[t.contacts.phone,e.phone??t.contacts.notGiven],...l_(f.data?.contact??[]).map(e=>[Z(e.label,n),t2(p[e.id],t.forms.yes)||t.contacts.notGiven]),[t.contacts.firstCameFrom,i(e)],[t.contacts.added,$0(e.createdAt,n)]];return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(tX,{href:$.contacts,children:t.contacts.backToContacts}),(0,S.jsx)(oQ,{title:d,...e.name!==void 0&&{description:e.email},actions:(0,S.jsxs)($Y,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:Ex,onPress:()=>u(!0),children:t.contacts.erase}),(0,S.jsx)(q,{variant:`secondary`,icon:Qv,isPending:a.isPending,onPress:()=>a.mutate(e.id,{onSuccess:n=>{Z0(`contact-${e.email}.json`,n,`application/json;charset=utf-8`),X({title:t.contacts.exported,description:t.contacts.exportedDescription,tone:`success`})},onError:e=>X({title:t.contacts.notExported,description:_2(e),tone:`danger`})}),children:t.contacts.export}),(0,S.jsx)(q,{icon:Eb,onPress:()=>c(!0),children:t.contacts.edit})]})})]}),(0,S.jsx)(WQ,{asideLabel:t.contacts.detailsLabel,aside:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(m2,{contact:e}),(0,S.jsx)(cY,{title:t.contacts.details,children:(0,S.jsx)(J,{gap:4,children:m.map(([e,t])=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{size:`sm`,weight:`semibold`,tone:`secondary`,children:e}),(0,S.jsx)(Y,{children:t})]},e))})})]}),children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(u2,{contact:e}),(0,S.jsx)(x2,{contact:e})]})})]}),s&&(0,S.jsx)(S2,{contact:e,onClose:()=>c(!1)}),(0,S.jsx)(tQ,{isOpen:l,onOpenChange:u,title:t.contacts.eraseTitle(d),confirmLabel:t.contacts.eraseConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:o.isPending,onConfirm:()=>o.mutate(e.id,{onSuccess:e=>{X({title:t.contacts.erased(d,e),tone:`success`}),r($.contacts)},onError:e=>{X({title:t.contacts.notErased,description:_2(e),tone:`danger`}),u(!1)}}),children:t.contacts.eraseDescription})]})}function x2({contact:e}){let t=Q(),n=v1(),r=cc(e.id),i=hc(),a=gc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(null),u=nc(),d=oc(),f=V0(),p=e=>f((u.data?.stages??[]).find(t=>t.id===e))||t.contacts.stageGone,m=()=>{l(null),i.mutate({id:e.id,text:o},{onSuccess:()=>{s(``),X({title:t.contacts.noteAdded,tone:`success`})},onError:e=>{e instanceof No&&e.code===`validation_failed`&&l(e.issues[0]?.message??e.message),X({title:t.contacts.noteNotAdded,description:_2(e),tone:`danger`})}})},h=e=>e.split(`
|
|
75
|
-
`).map((e,t)=>(0,S.jsx)(Y,{children:e},t)),g=r=>r.kind===`stage`?(0,S.jsxs)(J,{gap:1,children:[(0,S.jsxs)(
|
|
76
|
-
`).map(e=>e.trim()).filter(Boolean))];function
|
|
77
|
-
`));return(0,S.jsx)(_Z,{label:r.builder.choices,description:r.builder.choicesHelp,rows:5,isRequired:!0,value:i,onChange:n=>{a(n),t({...e,choices:D2(n)})},...n!==void 0&&{errorMessage:n}})}function k2({options:e,onChange:t,problem:n}){let r=Q(),i=v1(),a=Io();return(0,S.jsx)(OX,{label:r.builder.referenceTo,isRequired:!0,options:(a.data??[]).map(e=>({id:e.key,label:Z(e.label,i)})),...typeof e.to==`string`&&e.to!==``&&{value:e.to},onChange:n=>t({...e,to:n}),...n!==void 0&&{errorMessage:n}})}function A2({options:e,onChange:t,isExisting:n,problem:r}){let i=Q(),a=e.of,o=j2.list().filter(e=>e.canBeListed===!0||e.type===a?.type);return(0,S.jsx)(OX,{label:i.builder.listOf,description:i.builder.listOfHelp,isRequired:!0,isDisabled:n,options:o.map(e=>({id:e.type,label:i.builder.kinds[e.type]?.name??e.type})),...a?.type!==void 0&&{value:a.type},onChange:n=>t({...e,of:{type:n,options:j2.get(n).initial}}),...r!==void 0&&{errorMessage:r}})}var j2=new d_(`field settings`).register({type:`text`,initial:{},Component:T2,canBeListed:!0}).register({type:`richtext`,initial:{},canBeListed:!0}).register({type:`number`,initial:{},Component:E2,canBeListed:!0}).register({type:`boolean`,initial:{}}).register({type:`date`,initial:{},canBeListed:!0}).register({type:`url`,initial:{},canBeListed:!0}).register({type:`email`,initial:{},canBeListed:!0}).register({type:`phone`,initial:{},canBeListed:!0}).register({type:`select`,initial:{choices:[]},Component:O2,problem:(e,t)=>(e.choices??[]).length===0?t.builder.choicesNeeded:void 0}).register({type:`image`,initial:{},canBeListed:!0}).register({type:`reference`,initial:{},Component:k2,problem:(e,t)=>typeof e.to==`string`&&e.to!==``?void 0:t.builder.referenceNeeded}).register({type:`link`,initial:{},canBeListed:!0}).register({type:`form`,initial:{}}).register({type:`group`,initial:{fields:[]},canBeListed:!0,inner:e=>Array.isArray(e.fields)?e.fields:[]}).register({type:`list`,initial:{},Component:A2,inner:e=>{let t=e.of;return t?.type!==void 0&&j2.has(t.type)?j2.get(t.type).inner?.(t.options??{})??null:null},problem:(e,t)=>typeof e.of?.type==`string`?void 0:t.builder.listOfNeeded});function M2(e){return j2.has(e.type)?j2.get(e.type).inner?.(e.options)??null:null}function N2(e){return e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean)}var P2=e=>{let[t=``,...n]=e,r=t.replace(/^[0-9]+/,``);return r===``?n.length>0?P2(n):[]:[r,...n]};function F2(e){return P2(N2(e)).map((e,t)=>t===0?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(``)}function I2(e){return P2(N2(e)).join(`-`)}function L2(e){return{id:e.id,key:e.key,type:e.type,label:e.label,...e.help!==void 0&&{help:e.help},required:e.required,options:e.options}}function R2(e,t,n){let r=e.findIndex(e=>e.id===t),i=r+n;if(r<0||i<0||i>=e.length)return[...e];let a=[...e],[o]=a.splice(r,1);return o&&a.splice(i,0,o),a}var z2={},B2=e=>e instanceof Error?e.message:String(e);function V2({set:e,field:t,onClose:n}){let{close:r,dialog:i}=C1(n),a=Q(),o=v1(),s=o.split(`-`)[0]??o,c=Qo(),[l,u]=(0,x.useState)(t?.type??`text`),[d,f]=(0,x.useState)(t?Z(t.label,o):``),[p,m]=(0,x.useState)(t?.key??null),[h,g]=(0,x.useState)(t?.help?Z(t.help,o):``),[_,v]=(0,x.useState)(t?.required??!1),[y,b]=(0,x.useState)(t?.options??j2.get(`text`).initial),[C,w]=(0,x.useState)(z2),T=p??F2(d),E=j2.has(l)?j2.get(l):null,D=e=>a.builder.kinds[e]?.name??e,O=(c.data??[]).filter(e=>e.takesSubmissions&&j2.has(e.type)).map(e=>({id:e.type,label:D(e.type)})),k=()=>{let n={...d.trim()===``&&{label:a.forms.fieldNameNeeded},...T===``&&{key:a.forms.fieldKeyNeeded},...E?.problem?.(y,a)!==void 0&&{options:E.problem(y,a)}};if(w(n),Object.keys(n).length>0)return;let i=h.trim(),{help:o,...c}=t?L2(t):{key:T,type:l,label:{}},u={...c,key:T,label:{...t?.label,[s]:d.trim()},...i!==``&&{help:{...t?.help,[s]:i}},required:e.canRequire&&_,options:y},f=e.fields.map(L2);e.save(t?f.map(e=>e.id===t.id?u:e):[...f,u],{onSuccess:()=>{X({title:t?a.forms.fieldSaved(d.trim()):a.forms.fieldAdded(d.trim()),tone:`success`}),r()},onError:e=>{w({[e instanceof No&&e.code===`conflict`?`key`:`options`]:B2(e)}),X({title:a.forms.fieldNotSaved,description:B2(e),tone:`danger`})}})},A=t?a.forms.editFieldTitle(Z(t.label,o)):a.forms.addFieldTitle;return(0,S.jsx)(LY,{...i,placement:`side`,title:A,closeLabel:a.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:r,children:a.editor.cancel}),(0,S.jsx)(q,{isPending:e.isPending,onPress:k,children:t?a.forms.fieldSave:a.forms.fieldAdd})]}),children:(0,S.jsxs)(GY,{label:A,gap:4,onSubmit:k,children:[t?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:a.forms.fieldKindIs(D(l))}):(0,S.jsx)(OX,{label:a.forms.fieldKind,options:O,value:l,description:a.builder.kinds[l]?.description??``,onChange:e=>{u(e),b(j2.get(e).initial),w(z2)}}),(0,S.jsx)(mZ,{label:a.forms.fieldName,description:e.words.nameHelp,value:d,onChange:f,isRequired:!0,autoFocus:!0,autoComplete:`off`,...C.label!==void 0&&{errorMessage:C.label}}),(0,S.jsx)(mZ,{label:a.forms.fieldKey,description:a.forms.fieldKeyHelp,value:T,onChange:m,isRequired:!0,autoComplete:`off`,...C.key!==void 0&&{errorMessage:C.key}}),(0,S.jsx)(mZ,{label:a.forms.fieldHelp,description:a.forms.fieldHelpHelp,value:h,onChange:g,autoComplete:`off`}),E?.Component&&(0,S.jsx)(E.Component,{options:y,onChange:b,isExisting:t!==void 0,problem:C.options}),!E?.Component&&C.options!==void 0&&(0,S.jsx)(Y,{tone:`danger`,children:C.options}),e.canRequire&&(0,S.jsx)(dY,{label:a.forms.fieldRequired,isSelected:_,onChange:v})]})})}var H2=e=>e instanceof Error?e.message:String(e);function U2({set:e,mayChange:t}){let n=Q(),r=v1(),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),u=w1(c),{fields:d}=e,f=d.map(L2),p=e=>Z(e.label,r),m=(t,r)=>e.save(R2(f,t.id,r),{onError:e=>X({title:n.forms.notMoved,description:H2(e),tone:`danger`})}),h=[{id:`field`,label:n.forms.columnField},{id:`kind`,label:n.forms.columnKind},{id:`rules`,label:n.forms.columnRules},...t?[{id:`actions`,label:n.forms.columnActions,align:`end`}]:[]],g=d.map((t,r)=>({id:t.id,cells:{field:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:p(t)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.key})]}),kind:(0,S.jsx)(uZ,{children:n.builder.kinds[t.type]?.name??t.type}),rules:(0,S.jsxs)($Y,{gap:2,children:[t.required&&(0,S.jsx)(uZ,{tone:`info`,children:n.forms.required}),e.tagsOf?.(t)]}),actions:(0,S.jsxs)($Y,{gap:1,justify:`end`,children:[(0,S.jsx)(AY,{size:`sm`,label:n.forms.moveUp(p(t)),icon:gv,isDisabled:r===0||e.isPending,onPress:()=>m(t,-1)}),(0,S.jsx)(AY,{size:`sm`,label:n.forms.moveDown(p(t)),icon:uv,isDisabled:r===d.length-1||e.isPending,onPress:()=>m(t,1)}),(0,S.jsx)(AY,{size:`sm`,label:n.forms.edit(p(t)),icon:Eb,onPress:()=>s(t)}),(0,S.jsx)(AY,{size:`sm`,label:n.forms.remove(p(t)),icon:gx,onPress:()=>l(t)})]})}})),_=(0,S.jsx)(q,{icon:Pb,onPress:()=>a(!0),children:n.forms.addField});return(0,S.jsxs)(J,{gap:4,children:[d.length===0&&(0,S.jsx)(iQ,{icon:Ky,title:n.forms.noFieldsTitle,description:e.words.emptyDescription,...t&&{action:_}}),d.length>0&&(0,S.jsxs)(S.Fragment,{children:[t&&(0,S.jsx)($Y,{justify:`end`,children:_}),(0,S.jsx)(rZ,{label:n.forms.fieldsOf(e.name),columns:h,rows:g})]}),i&&(0,S.jsx)(V2,{set:e,onClose:()=>a(!1)}),o&&(0,S.jsx)(V2,{set:e,field:o,onClose:()=>s(null)}),(0,S.jsx)(tQ,{isOpen:c!==null,onOpenChange:e=>!e&&l(null),title:n.forms.removeTitle(u?p(u):``),confirmLabel:n.forms.removeConfirm,cancelLabel:n.editor.cancel,tone:`danger`,isPending:e.isPending,onConfirm:()=>{c&&e.save(f.filter(e=>e.id!==c.id),{onSuccess:()=>X({title:n.forms.removed(p(c)),tone:`success`}),onError:e=>X({title:n.forms.notRemoved,description:H2(e),tone:`danger`}),onSettled:()=>l(null)})},children:e.words.removeDescription})]})}function W2({of:e,onClose:t}){let{close:n,dialog:r}=C1(t),i=Q(),a=ic(),o=ac(),s=i.customFields[e],c=a.data?{name:s.name,fields:l_(a.data[e]),isPending:o.isPending,save:(t,n)=>o.mutate({[e]:t,expectedRevision:a.data.revision},n),canRequire:!1,words:{emptyDescription:s.emptyDescription,nameHelp:i.customFields.nameHelp,removeDescription:i.customFields.removeDescription}}:null;return(0,S.jsx)(LY,{...r,title:s.title,closeLabel:i.app.dismiss,size:`lg`,footer:(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.customFields.close}),children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{tone:`secondary`,children:s.help}),a.isPending&&(0,S.jsx)(R0,{shape:`table`}),a.isError&&(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()}),c&&(0,S.jsx)(U2,{set:c,mayChange:!0})]})})}var G2=50,K2=e=>e instanceof Error?e.message:String(e);function q2(){let e=Q(),t=Fo(),n=nc(),[r,i]=(0,x.useState)(!1);return t.data===null||t.data===void 0||t.data.role===`author`?(0,S.jsx)(iQ,{icon:gy,title:e.deals.title,description:e.deals.noAccess}):(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.deals.title,description:e.deals.description,actions:(0,S.jsx)(q,{variant:`secondary`,icon:Ky,onPress:()=>i(!0),children:e.customFields.button})}),n.isPending&&(0,S.jsx)(R0,{shape:`summary`}),n.isError&&(0,S.jsx)(z0,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&(0,S.jsx)(J2,{pipeline:n.data})]}),r&&(0,S.jsx)(W2,{of:`deal`,onClose:()=>i(!1)})]})}function J2({pipeline:e}){let t=Q(),n=v1(),r=V0(),i=q0(e.currency),a=Bs(),o=oc(),s=Fs({limit:200}),c=zs(e.stages.map(e=>({stage:e.id,limit:G2}))),l=i2(),u=Us(),[d,f]=(0,x.useState)(null),p=c.find(e=>e.isError);if(p)return(0,S.jsx)(z0,{error:p.error,onRetry:()=>void p.refetch()});if(a.isError)return(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()});if(a.isPending||c.some(e=>e.isPending))return(0,S.jsx)(R0,{shape:`summary`});let m=a.data;if(m.stages.reduce((e,t)=>e+t.count,0)===0)return(0,S.jsx)(iQ,{icon:gy,title:t.deals.emptyTitle,description:t.deals.emptyDescription,action:(0,S.jsx)(tX,{href:$.contacts,children:t.deals.toContacts})});let h=new Map((s.data?.items??[]).map(e=>[e.id,e.name??e.email])),g=u.isPending&&u.variables.changes.stage!==void 0?{id:u.variables.id,stage:u.variables.changes.stage}:void 0,_=c.flatMap(e=>e.data?.items??[]),v=new Map(_.map(e=>[e.id,e])),y=e.stages.map((e,a)=>{let o=c[a]?.data?.items??[],s=g?o.filter(e=>e.id!==g.id):o,u=g&&g.stage===e.id?v.get(g.id):void 0,d=u?[u,...s]:s,f=m.stages.find(t=>t.stage===e.id),p=f?.count??0;return{id:e.id,title:r(e),count:i(f?.value??0),tone:H0[e.kind],items:d.map(r=>{let a=h.get(r.contactId),o=l.nameOf(r.about);return{id:r.id,title:r.title,...a!==void 0&&{detail:a},notes:[{text:i(r.value)},...o!==void 0&&o!==r.title?[{text:o}]:[],...r.closeOn!==void 0&&e.kind===`open`?[{text:t.deals.closes(G0(r.closeOn,n))}]:[]]}}),...p>o.length&&{more:t.deals.boardMore(p-o.length)}}});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(qY,{columns:3,gap:4,children:[(0,S.jsx)(UX,{label:t.deals.open,value:i(m.open),detail:t.deals.openDetail}),(0,S.jsx)(UX,{label:t.deals.forecast,value:i(m.weighted),detail:t.deals.forecastDetail}),(0,S.jsx)(UX,{label:t.deals.won,value:i(m.won),detail:t.deals.wonDetail})]}),(0,S.jsx)(y$,{label:t.deals.board,columns:y,emptyText:t.deals.boardEmpty,onOpen:e=>f(v.get(e)??null),moveLabel:t.deals.move,onMove:(n,i)=>{let a=v.get(n);a&&!u.isPending&&u.mutate({id:n,changes:{stage:i,expectedRevision:a.revision}},{onSuccess:()=>X({title:t.deals.moved(a.title,r(e.stages.find(e=>e.id===i))),tone:`success`}),onError:e=>X({title:t.deals.notMoved,description:K2(e),tone:`danger`})})}}),d&&(0,S.jsx)(l2,{deal:d,contact:{id:d.contactId},pipeline:e,team:o.data??[],onClose:()=>f(null)})]})}var Y2=5e3;function X2(e){let t=e.replace(/^\uFEFF/,``),n=t.split(/\r?\n/,1)[0]??``,r=e=>n.split(e).length-1,i=[`,`,`;`,` `].reduce((e,t)=>r(t)>r(e)?t:e,`,`),a=[],o=[],s=``,c=!1,l=()=>{o.push(s.trim()),s=``},u=()=>{l(),o.some(e=>e!==``)&&a.push(o),o=[]};for(let e=0;e<t.length;e+=1){let n=t[e];c?n===`"`?t[e+1]===`"`?(s+=`"`,e+=1):c=!1:s+=n:n===`"`&&s.trim()===``?(s=``,c=!0):n===i?l():n===`
|
|
78
|
-
`?u():n!==`\r`&&(s+=n)}return u(),a}var Z2=`:none`,Q2=`:name`,$2=`:email`,e4=`:phone`,t4=20,n4=e=>e instanceof Error?e.message:String(e);function r4({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=v1(),a=l_(ic().data?.contact??[]),o=fc(),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)([]),[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(null),h=[{id:Z2,label:r.contactImport.skip},{id:$2,label:r.contacts.email},{id:Q2,label:r.contacts.name},{id:e4,label:r.contacts.phone},...a.map(e=>({id:e.id,label:Z(e.label,i)}))],g=e=>{let t=new Set;return e.map(e=>{let n=e.trim().toLowerCase(),r=a.find(e=>e.key.toLowerCase()===n||Z(e.label,i).toLowerCase()===n),o=r?r.id:/mail/.test(n)?$2:/phone|mobile|tel/.test(n)?e4:/name/.test(n)?Q2:Z2;return o===Z2||t.has(o)?Z2:(t.add(o),o)})},_=async e=>{f(null);let[t,...n]=X2(await e.text());if(!t||n.length===0)return f(r.contactImport.emptyFile);if(n.length>5e3)return f(r.contactImport.tooManyRows(Y2));c({headers:t,rows:n}),u(g(t))},v=(e,t)=>u(l.map((n,r)=>r===e?t:n===t&&t!==Z2?Z2:n)),y=()=>{if(!s)return;if(!l.includes($2))return f(r.contactImport.emailNeeded);f(null);let e=s.rows.map(e=>{let t=t=>{let n=e[l.indexOf(t)]?.trim();return n===void 0||n===``?void 0:n},n=t(Q2),r=t(e4),i=Object.fromEntries(a.flatMap(e=>t(e.id)===void 0?[]:[[e.id,t(e.id)??``]]));return{email:t($2)??``,...n!==void 0&&{name:n},...r!==void 0&&{phone:r},...Object.keys(i).length>0&&{data:i}}});o.mutate(e,{onSuccess:e=>{m(e),X({title:r.contactImport.done(e.added),tone:`success`})},onError:e=>X({title:r.contactImport.failed,description:n4(e),tone:`danger`})})};return(0,S.jsx)(LY,{...n,title:r.contactImport.title,closeLabel:r.app.dismiss,footer:p?(0,S.jsx)(q,{onPress:t,children:r.contactImport.close}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),s&&(0,S.jsx)(q,{isPending:o.isPending,onPress:y,children:r.contactImport.bringIn(s.rows.length)})]}),children:(0,S.jsxs)(J,{gap:4,children:[!s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.lead}),(0,S.jsx)(UY,{accept:`csv`,icon:uy,onSelect:e=>void _(e),children:r.contactImport.chooseFile})]}),s&&!p&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.matchLead(s.rows.length)}),s.headers.map((e,t)=>(0,S.jsx)(OX,{label:r.contactImport.column(e===``?String(t+1):e),...s.rows[0]?.[t]!==void 0&&s.rows[0][t]!==``&&{description:r.contactImport.example(s.rows[0][t]??``)},options:h,value:l[t]??Z2,onChange:e=>v(t,e)},t))]}),d!==null&&!p&&(0,S.jsx)(Y,{tone:`danger`,children:d}),p&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{weight:`semibold`,children:r.contactImport.added(p.added)}),p.filled>0&&(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.filled(p.filled)}),p.unchanged>0&&(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.unchanged(p.unchanged)}),p.problems.length>0&&(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{tone:`danger`,children:r.contactImport.leftOut(p.problems.length)}),p.problems.slice(0,t4).map(e=>(0,S.jsx)(Y,{size:`sm`,tone:`secondary`,children:r.contactImport.rowProblem(e.row+2,e.message)},e.row)),p.problems.length>t4&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.contactImport.andMore(p.problems.length-t4)})]})]})]})})}var i4=50,a4=e=>e instanceof Error?e.message:String(e);function o4({pipeline:e,team:t,filter:n}){let r=Q(),i=v1(),a=B0(),o=V0(),s=K0(t),c=W0(),l=Is(e.stages.map(e=>({...n,stage:e.id,limit:i4}))),u=Ls(),d=l.find(e=>e.isError);if(d)return(0,S.jsx)(z0,{error:d.error,onRetry:()=>void d.refetch()});if(l.some(e=>e.isPending))return(0,S.jsx)(R0,{shape:`summary`});let f=u.isPending?u.variables:void 0,p=new Map,m=e.stages.map((e,t)=>{let n=l[t]?.data??{items:[],total:0},a=n.items,u=n.total;if(f){let t=a.some(e=>e.id===f.contact.id);e.id===f.stage&&!t?(a=[{...f.contact,stage:e.id},...a],u+=1):e.id!==f.stage&&t&&(a=a.filter(e=>e.id!==f.contact.id),--u)}for(let e of a)p.set(e.id,e);return{id:e.id,title:o(e),count:new Intl.NumberFormat(i).format(u),tone:H0[e.kind],items:a.map(e=>({id:e.id,title:e.name??e.email,...e.name!==void 0&&{detail:e.email},notes:[...e.ownerId!==void 0&&s(e.ownerId)!==``?[{text:s(e.ownerId)}]:[],...e.followUpAt===void 0?[]:[c(e.followUpAt)]]})),...u>a.length&&{more:r.contacts.boardMore(u-a.length)}}});return(0,S.jsx)(y$,{label:r.contacts.board,columns:m,emptyText:r.contacts.boardEmpty,onOpen:e=>a($.contact(e)),moveLabel:r.contacts.move,onMove:(t,n)=>{let i=p.get(t);i&&!u.isPending&&u.mutate({contact:i,stage:n},{onSuccess:()=>X({title:r.contacts.moved(i.name??i.email,o(e.stages.find(e=>e.id===n))),tone:`success`}),onError:e=>X({title:r.contacts.notMoved,description:a4(e),tone:`danger`})})}})}var s4=[`open`,`won`,`lost`],c4=12,l4=e=>e instanceof Error?e.message:String(e);function u4({pipeline:e,team:t,onClose:n}){let{close:r,dialog:i}=C1(n),a=Q(),o=rc(),s=(0,x.useRef)(0),c=a.contacts.stages,[l,u]=(0,x.useState)(()=>e.stages.map(e=>({row:e.id,id:e.id,label:e.label??``,kind:e.kind,chance:e.chance??50}))),[d,f]=(0,x.useState)(e.currency??`USD`),[p,m]=(0,x.useState)(e.assignTo??[]),[h,g]=(0,x.useState)({}),_=(e,t)=>u(l.map(n=>n.row===e?{...n,...t}:n)),v=()=>{g({}),o.mutate({stages:l.map(({id:e,label:t,kind:n,chance:r})=>({...e!==void 0&&{id:e},label:t,kind:n,...n===`open`&&r!==null&&{chance:r}})),currency:d,assignTo:p.filter(e=>t.some(t=>t.id===e)),expectedRevision:e.revision},{onSuccess:()=>{X({title:a.contacts.stagesSaved,tone:`success`}),r()},onError:e=>{e instanceof No&&g(Object.fromEntries(e.issues.map(e=>[e.path.join(`.`),e.message]))),X({title:a.contacts.stagesNotSaved,description:l4(e),tone:`danger`})}})};return(0,S.jsx)(LY,{...i,title:a.contacts.editStagesTitle,closeLabel:a.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:r,children:a.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:v,children:a.contacts.saveStages})]}),children:(0,S.jsxs)(GY,{label:a.contacts.editStagesTitle,gap:4,onSubmit:v,children:[(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{tone:`secondary`,children:a.contacts.stagesHelp}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:a.contacts.stagesRemoveNote})]}),(0,S.jsx)(_Q,{label:a.contacts.editStagesTitle,...h.stages!==void 0&&{errorMessage:h.stages},items:l.map((e,t)=>({id:e.row,content:(0,S.jsxs)(qY,{columns:3,gap:3,children:[(0,S.jsx)(mZ,{label:a.contacts.stageName,value:e.label,onChange:t=>_(e.row,{label:t}),autoComplete:`off`,...e.id!==void 0&&c[e.id]!==void 0&&{placeholder:c[e.id]},...h[`stages.${t}.label`]!==void 0&&{errorMessage:h[`stages.${t}.label`]}}),(0,S.jsx)(OX,{label:a.contacts.stageKind,options:s4.map(e=>({id:e,label:a.contacts.stageKinds[e]})),value:e.kind,onChange:t=>_(e.row,{kind:s4.find(e=>e===t)??`open`}),...h[`stages.${t}.kind`]!==void 0&&{errorMessage:h[`stages.${t}.kind`]}}),e.kind===`open`&&(0,S.jsx)(fX,{label:a.contacts.stageChance,value:e.chance,onChange:t=>_(e.row,{chance:t}),minValue:0,maxValue:100,isInteger:!0,...h[`stages.${t}.chance`]!==void 0&&{errorMessage:h[`stages.${t}.chance`]}})]})})),emptyText:a.contacts.stagesEmpty,addLabel:a.contacts.addStage,isFull:l.length>=c4,onAdd:()=>{s.current+=1,u([...l,{row:`added-${s.current}`,label:``,kind:`open`,chance:50}])},onRemove:e=>u(l.filter((t,n)=>n!==e)),onMove:(e,t)=>{let n=[...l],[r]=n.splice(e,1);r&&n.splice(t,0,r),u(n)},removeLabel:a.contacts.removeStage,moveUpLabel:a.contacts.moveStageUp,moveDownLabel:a.contacts.moveStageDown}),(0,S.jsx)(VY,{legend:a.contacts.pipelineSettings,children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(mZ,{label:a.contacts.currency,description:a.contacts.currencyHelp,value:d,onChange:f,autoComplete:`off`,...h.currency!==void 0&&{errorMessage:h.currency}}),t.length>0&&(0,S.jsx)(VY,{legend:a.contacts.assignTo,description:a.contacts.assignToHelp,children:(0,S.jsx)(J,{gap:2,children:t.map(e=>(0,S.jsx)(dY,{label:e.name,isSelected:p.includes(e.id),onChange:t=>m(t?[...p,e.id]:p.filter(t=>t!==e.id))},e.id))})})]})})]})})}var d4=`all`,f4=`mine`,p4=`nobody`,m4={},h4=e=>e instanceof Error?e.message:String(e);function g4(){let e=Q(),t=Fo();return t.data===null||t.data===void 0||t.data.role===`author`?(0,S.jsx)(iQ,{icon:Jv,title:e.contacts.title,description:e.contacts.noAccess}):(0,S.jsx)(_4,{})}function _4(){let e=Q(),t=v1(),n=B0(),[r,i]=(0,x.useState)(``),a=(0,x.useDeferredValue)(r.trim()),o=Fo(),[s,c]=wo(),l=s.get(`view`)===`board`?`board`:`list`,[u,d]=(0,x.useState)(d4),[f,p]=(0,x.useState)(d4),m=f===d4?void 0:f===p4?null:f===f4?o.data?.id:f,h={...a!==``&&{search:a},...m!==void 0&&{ownerId:m}},g=Fs({limit:200,...h,...u!==d4&&{stage:u}}),_=vs(),v=nc(),y=oc(),b=e2(_.data),C=V0(),w=K0(y.data),T=W0(),[E,D]=(0,x.useState)(!1),[O,k]=(0,x.useState)(!1),[A,j]=(0,x.useState)(!1),[M,ee]=(0,x.useState)(!1),N=v.data?.stages??[],P=u!==d4||f!==d4,te=[{id:`name`,label:e.contacts.columnName},{id:`stage`,label:e.contacts.columnStage},{id:`owner`,label:e.contacts.columnOwner},{id:`followUp`,label:e.contacts.columnFollowUp},{id:`source`,label:e.contacts.columnSource},{id:`added`,label:e.contacts.columnAdded,align:`end`}],F=(g.data?.items??[]).map(e=>{let n=N.find(t=>t.id===e.stage),r=e.followUpAt===void 0?void 0:T(e.followUpAt);return{id:e.id,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:e.name??e.email}),e.name!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.email})]}),stage:n?(0,S.jsx)(uZ,{tone:H0[n.kind],children:C(n)}):``,owner:(0,S.jsx)(Y,{tone:`secondary`,children:w(e.ownerId)}),followUp:r?r.tone===`neutral`?(0,S.jsx)(Y,{tone:`secondary`,children:r.text}):(0,S.jsx)(uZ,{tone:r.tone,children:r.text}):``,source:(0,S.jsx)(Y,{size:`sm`,tone:`secondary`,children:b(e)}),added:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:$0(e.createdAt,t)})}}}),ne=(0,S.jsx)(q,{icon:Pb,onPress:()=>D(!0),children:e.contacts.newContact}),re=g.isSuccess&&F.length===0;return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.contacts.title,description:e.contacts.description,actions:(0,S.jsxs)($Y,{gap:2,children:[(0,S.jsx)(bX,{label:e.contacts.view,options:[{id:`list`,label:e.contacts.viewList},{id:`board`,label:e.contacts.viewBoard}],selected:l,onChange:e=>c(e===`board`?{view:`board`}:{},{replace:!0})}),(0,S.jsx)(q,{variant:`secondary`,icon:Ky,onPress:()=>j(!0),children:e.customFields.button}),(0,S.jsx)(q,{variant:`secondary`,icon:uy,onPress:()=>ee(!0),children:e.contactImport.button}),ne]})}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(_X,{label:e.contacts.search,placeholder:e.contacts.searchPlaceholder,value:r,onChange:i,clearLabel:e.contacts.clearSearch}),(0,S.jsxs)($Y,{gap:3,align:`end`,justify:`between`,children:[(0,S.jsxs)($Y,{gap:3,align:`end`,children:[l===`list`&&(0,S.jsx)(OX,{label:e.contacts.filterStage,width:`sm`,options:[{id:d4,label:e.contacts.allStages},...N.map(e=>({id:e.id,label:C(e)}))],value:u,onChange:d}),(0,S.jsx)(OX,{label:e.contacts.filterOwner,width:`sm`,options:[{id:d4,label:e.contacts.everyone},{id:f4,label:e.contacts.mine},{id:p4,label:e.contacts.nobody},...(y.data??[]).filter(e=>e.id!==o.data?.id).map(e=>({id:e.id,label:e.name}))],value:f,onChange:p})]}),l===`board`&&v.isSuccess&&(0,S.jsx)(q,{variant:`secondary`,icon:Qb,onPress:()=>k(!0),children:e.contacts.editStages})]}),l===`list`&&g.isSuccess&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.contacts.count(g.data.total)})]}),l===`board`&&v.isPending&&(0,S.jsx)(R0,{shape:`summary`}),l===`board`&&v.isError&&(0,S.jsx)(z0,{error:v.error,onRetry:()=>void v.refetch()}),l===`board`&&v.isSuccess&&(0,S.jsx)(o4,{pipeline:v.data,team:y.data,filter:h}),l===`list`&&(0,S.jsxs)(S.Fragment,{children:[g.isPending&&(0,S.jsx)(R0,{shape:`table`}),g.isError&&(0,S.jsx)(z0,{error:g.error,onRetry:()=>void g.refetch()}),re&&a===``&&P&&(0,S.jsx)(iQ,{icon:Wy,title:e.contacts.nothingMatchesTitle,description:e.contacts.nothingMatchesDescription}),re&&a===``&&!P&&(0,S.jsx)(iQ,{icon:Jv,title:e.contacts.emptyTitle,description:e.contacts.emptyDescription,action:ne}),re&&a!==``&&(0,S.jsx)(iQ,{icon:Kb,title:e.contacts.nothingFoundTitle,description:e.contacts.nothingFoundDescription(a)}),g.isSuccess&&F.length>0&&(0,S.jsx)(rZ,{label:e.contacts.title,columns:te,rows:F,onRowAction:e=>n($.contact(e))})]})]}),M&&(0,S.jsx)(r4,{onClose:()=>ee(!1)}),A&&(0,S.jsx)(W2,{of:`contact`,onClose:()=>j(!1)}),O&&v.data&&(0,S.jsx)(u4,{pipeline:v.data,team:y.data??[],onClose:()=>k(!1)}),E&&(0,S.jsx)(v4,{onClose:()=>D(!1)})]})}function v4({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=B0(),a=uc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(``),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(m4),m=()=>{if(c.trim()===``)return p({email:r.contacts.emailNeeded});p(m4),a.mutate({email:c,...o.trim()!==``&&{name:o},...u.trim()!==``&&{phone:u}},{onSuccess:e=>{X({title:r.contacts.created(e.name??e.email),tone:`success`}),t(),i($.contact(e.id))},onError:e=>{e instanceof No&&p(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),X({title:r.contacts.notCreated,description:h4(e),tone:`danger`})}})};return(0,S.jsx)(LY,{...n,title:r.contacts.newContactTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:a.isPending,onPress:m,children:r.contacts.create})]}),children:(0,S.jsxs)(GY,{label:r.contacts.newContactTitle,gap:4,onSubmit:m,children:[(0,S.jsx)(mZ,{label:r.contacts.name,value:o,onChange:s,autoFocus:!0,autoComplete:`off`,...f.name!==void 0&&{errorMessage:f.name}}),(0,S.jsx)(mZ,{label:r.contacts.email,type:`email`,value:c,onChange:l,isRequired:!0,autoComplete:`off`,...f.email!==void 0&&{errorMessage:f.email}}),(0,S.jsx)(mZ,{label:r.contacts.phone,type:`tel`,value:u,onChange:d,autoComplete:`off`,...f.phone!==void 0&&{errorMessage:f.phone}})]})})}function y4(e){let t=new Map(l_(e.fields).map(e=>[e.id,e])),n=(e.sections??[]).map(e=>({key:e.key,fields:e.fieldIds.flatMap(e=>t.get(e)??[])})),r=new Set(n.flatMap(e=>e.fields.map(e=>e.id)));return[...n,{key:``,fields:[...t.values()].filter(e=>!r.has(e.id))}]}function b4(e,t){return e.sections?.find(e=>e.fieldIds.includes(t))?.key??``}function x4(e){return{order:e.flatMap(e=>e.ids),sections:Object.fromEntries(e.filter(e=>e.key!==``).map(e=>[e.key,e.ids]))}}function S4(e,t,n){return x4(y4(e).map(e=>{let r=e.fields.map(e=>e.id),i=r.indexOf(t),a=i+n;return i===-1||a<0||a>=r.length||r.splice(a,0,...r.splice(i,1)),{key:e.key,ids:r}}))}function C4(e,t,n){return x4(y4(e).map(e=>{let r=e.fields.map(e=>e.id).filter(e=>e!==t);return{key:e.key,ids:e.key===n?[...r,t]:r}}))}function w4(e,t,n,r){let i=l_([...e]).map(e=>e.id),a=i.indexOf(t),o=a+n;return a!==-1&&o>=0&&o<i.length&&i.splice(o,0,...i.splice(a,1)),{order:i,within:r}}var T4={},E4=e=>e instanceof Error?e.message:String(e);function D4({type:e,field:t,within:n,onClose:r}){let{close:i,dialog:a}=C1(r),o=Q(),s=v1(),c=s.split(`-`)[0]??s,l=Qo(),u=Wo(),d=Go(),[f,p]=(0,x.useState)(t?.type??`text`),[m,h]=(0,x.useState)(t?Z(t.label,s):``),[g,_]=(0,x.useState)(t?.key??null),[v,y]=(0,x.useState)(t?.help?Z(t.help,s):``),[b,C]=(0,x.useState)(t?.required??!1),[w,T]=(0,x.useState)(t?.translated??!0),E=n.length>0,[D,O]=(0,x.useState)(t?b4(e,t.id):e.sections?.[0]?.key??``),[k,A]=(0,x.useState)(t?.options??j2.get(`text`).initial),[j,M]=(0,x.useState)(T4),ee=g??F2(m),N=j2.has(f)?j2.get(f):null,P=e=>o.builder.kinds[e]?.name??e,te=(l.data??[]).filter(e=>j2.has(e.type)).map(e=>({id:e.type,label:P(e.type)})),F=[...(e.sections??[]).map(e=>({id:e.key,label:Z(e.label,s)})),{id:``,label:o.builder.noSection}],ne=u.isPending||d.isPending,re=e=>t=>{let n=(t instanceof No?t.issues:[]).map(e=>String(e.path[0]??``)).find(e=>e===`key`||e===`label`);M({[n??(t instanceof No&&t.code===`conflict`?`key`:`options`)]:E4(t)}),X({title:e,description:E4(t),tone:`danger`})},ie=()=>{let r={...m.trim()===``&&{label:o.builder.nameNeeded},...ee===``&&{key:o.builder.keyNeeded},...N?.problem?.(k,o)!==void 0&&{options:N.problem(k,o)}};if(M(r),Object.keys(r).length>0)return;let a=v.trim();t?d.mutate({typeId:e.id,fieldId:t.id,within:n,changes:{key:ee,label:{...t.label,[c]:m.trim()},help:a===``?null:{...t.help,[c]:a},required:b,translated:w,options:k},...!E&&D!==b4(e,t.id)&&{arrangement:C4(e,t.id,D)}},{onSuccess:()=>{X({title:o.builder.fieldSaved(m.trim()),tone:`success`}),i()},onError:re(o.builder.fieldNotSaved)}):u.mutate({typeId:e.id,within:n,field:{key:ee,type:f,label:{[c]:m.trim()},...a!==``&&{help:{[c]:a}},required:b,translated:w,options:k,...!E&&D!==``&&{section:D}}},{onSuccess:()=>{X({title:o.builder.fieldAdded(m.trim()),tone:`success`}),i()},onError:re(o.builder.fieldNotAdded)})},ae=t?o.builder.editFieldTitle(Z(t.label,s)):o.builder.addFieldTitle;return(0,S.jsx)(LY,{...a,placement:`side`,title:ae,closeLabel:o.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:i,children:o.editor.cancel}),(0,S.jsx)(q,{isPending:ne,onPress:ie,children:t?o.builder.fieldSave:o.builder.fieldAdd})]}),children:(0,S.jsxs)(GY,{label:ae,gap:4,onSubmit:ie,children:[t?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.builder.kindIs(P(f))}):(0,S.jsx)(OX,{label:o.builder.kind,options:te,value:f,description:o.builder.kinds[f]?.description??``,onChange:e=>{p(e),A(j2.get(e).initial),M(T4)}}),(0,S.jsx)(mZ,{label:o.builder.fieldName,description:o.builder.fieldNameHelp,value:m,onChange:h,isRequired:!0,autoFocus:!0,autoComplete:`off`,...j.label!==void 0&&{errorMessage:j.label}}),(0,S.jsx)(mZ,{label:o.builder.fieldKey,description:t?o.builder.fieldKeyHelpEdit:o.builder.fieldKeyHelp,value:ee,onChange:_,isRequired:!0,autoComplete:`off`,...j.key!==void 0&&{errorMessage:j.key}}),(0,S.jsx)(mZ,{label:o.builder.fieldHelp,description:o.builder.fieldHelpHelp,value:v,onChange:y,autoComplete:`off`}),N?.Component&&(0,S.jsx)(N.Component,{options:k,onChange:A,isExisting:t!==void 0,problem:j.options}),!N?.Component&&j.options!==void 0&&(0,S.jsx)(Y,{tone:`danger`,children:j.options}),t&&!N&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.builder.settingsElsewhere}),(0,S.jsx)(dY,{label:o.builder.fieldRequired,isSelected:b,onChange:C}),(0,S.jsx)(dY,{label:o.builder.fieldTranslated,isSelected:w,onChange:T}),!E&&F.length>1&&(0,S.jsx)(OX,{label:o.builder.section,description:o.builder.sectionHelp,options:F,value:D,onChange:O})]})})}var O4=e=>e instanceof Error?e.message:String(e);function k4(e,t){let n=I2(e)||`section`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}-${e}`;return r}function A4({type:e,onClose:t}){let{close:n,dialog:r}=C1(t),i=Q(),a=v1(),o=a.split(`-`)[0]??a,s=Jo(),[c,l]=(0,x.useState)(()=>(e.sections??[]).map(e=>({id:e.key,section:e,name:Z(e.label,a),aside:e.aside===!0}))),[u,d]=(0,x.useState)(0),[f,p]=(0,x.useState)(null),m=(e,t)=>l(n=>n.map(n=>n.id===e?{...n,...t}:n)),h=()=>{if(c.some(e=>e.name.trim()===``))return p(i.builder.sectionNameNeeded);p(null);let t=new Set(c.flatMap(e=>e.section?.key??[])),r=c.map(e=>{let n=e.section?.key??k4(e.name,t);return t.add(n),{key:n,label:{...e.section?.label,[o]:e.name.trim()},fieldIds:e.section?.fieldIds??[],...e.aside&&{aside:!0}}});s.mutate({typeId:e.id,sections:r},{onSuccess:()=>{X({title:i.builder.sectionsSaved,tone:`success`}),n()},onError:e=>{p(O4(e)),X({title:i.builder.sectionsNotSaved,description:O4(e),tone:`danger`})}})};return(0,S.jsx)(LY,{...r,placement:`side`,title:i.builder.sectionsTitle,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:s.isPending,onPress:h,children:i.builder.sectionsSave})]}),children:(0,S.jsxs)(GY,{label:i.builder.sectionsTitle,gap:4,onSubmit:h,children:[(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:i.builder.sectionsDescription}),(0,S.jsx)(_Q,{label:i.builder.sections,items:c.map((e,t)=>({id:e.id,content:(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(mZ,{label:i.builder.sectionName(t+1),isLabelHidden:!0,value:e.name,onChange:t=>m(e.id,{name:t}),autoComplete:`off`}),(0,S.jsx)(dY,{label:i.builder.sectionAsideLabel,isSelected:e.aside,onChange:t=>m(e.id,{aside:t})})]})})),emptyText:i.builder.sectionsEmpty,addLabel:i.builder.sectionAdd,onAdd:()=>{l(e=>[...e,{id:`new-${u}`,section:null,name:``,aside:!1}]),d(u+1)},onRemove:e=>l(t=>t.filter((t,n)=>n!==e)),onMove:(e,t)=>l(n=>{let r=[...n];return r.splice(t,0,...r.splice(e,1)),r}),removeLabel:i.builder.sectionRemove,moveUpLabel:i.builder.sectionMoveUp,moveDownLabel:i.builder.sectionMoveDown,...f!==null&&{errorMessage:f}})]})})}var j4=``,M4=e=>e instanceof Error?e.message:String(e),N4=e=>e.join(`/`);function P4({type:e,onClose:t}){let{close:n,dialog:r}=C1(t),i=Q(),a=v1(),o=Uo(),s=Qo(),[c,l]=(0,x.useState)(Z(e.label,a)),[u,d]=(0,x.useState)(e.urlPattern??``),[f,p]=(0,x.useState)(e.titlePath?N4(e.titlePath):j4),[m,h]=(0,x.useState)(e.list?.imagePath?N4(e.list.imagePath):j4),[g,_]=(0,x.useState)((e.list?.fieldPaths??[]).map(N4)),[v,y]=(0,x.useState)(e.forDeals===!0),[b,C]=(0,x.useState)({}),w=l_([...e.fields]),T=t=>{let n=[],r=e.fields;for(let e of t){let i=r.find(t=>t.id===e);if(!i)return N4(t);n.push(Z(i.label,a)),r=M2(i)??[]}return n.join(`, `)},E=(e,t=w)=>[...new Set([...t.map(e=>e.id),...e.filter(e=>e!==j4)])].map(e=>({id:e,label:T(e.split(`/`))})),D=new Map((s.data??[]).map(e=>[e.type,e.editor])),O=w.filter(e=>D.get(e.type)===`image`),k=()=>{if(c.trim()===``)return C({label:i.builder.typeNameNeeded});C({}),o.mutate({id:e.id,changes:{label:{...e.label,[a.split(`-`)[0]??a]:c.trim()},urlPattern:u.trim()===``?null:u.trim(),titlePath:f===j4?null:f.split(`/`),list:m===j4&&g.length===0?null:{...m!==j4&&{imagePath:m.split(`/`)},...g.length>0&&{fieldPaths:g.map(e=>e.split(`/`))}},forDeals:v}},{onSuccess:()=>{X({title:i.builder.settingsSaved,tone:`success`}),n()},onError:e=>{let t=e instanceof No?e.issues:[];C({[String(t[0]?.path[0]??`urlPattern`)]:M4(e)}),X({title:i.builder.settingsNotSaved,description:M4(e),tone:`danger`})}})},A=i.builder.settingsTitle(Z(e.label,a));return(0,S.jsx)(LY,{...r,placement:`side`,title:A,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:k,children:i.builder.settingsSave})]}),children:(0,S.jsxs)(GY,{label:A,gap:4,onSubmit:k,children:[(0,S.jsx)(mZ,{label:i.builder.typeName,value:c,onChange:l,isRequired:!0,autoFocus:!0,autoComplete:`off`,...b.label!==void 0&&{errorMessage:b.label}}),(0,S.jsx)(mZ,{label:i.builder.typeAddress,description:i.builder.typeAddressHelp,value:u,onChange:d,autoComplete:`off`,...b.urlPattern!==void 0&&{errorMessage:b.urlPattern}}),(0,S.jsx)(OX,{label:i.builder.titleField,description:i.builder.titleFieldHelp,options:[{id:j4,label:i.builder.titleAutomatic},...E([f])],value:f,onChange:p,...b.fields!==void 0&&{errorMessage:b.fields}}),(0,S.jsx)(OX,{label:i.builder.listImage,description:i.builder.listImageHelp,options:[{id:j4,label:i.builder.listImageNone},...E([m],O)],value:m,onChange:h}),(0,S.jsx)(VY,{legend:i.builder.listColumns,description:i.builder.listColumnsHelp,children:E(g).map(e=>(0,S.jsx)(dY,{label:e.label,isSelected:g.includes(e.id),onChange:t=>_(n=>t?[...n,e.id]:n.filter(t=>t!==e.id))},e.id))}),(0,S.jsx)(VY,{legend:i.builder.crm,description:i.builder.forDealsHelp,children:(0,S.jsx)(dY,{label:i.builder.forDeals,isSelected:v,onChange:y})})]})})}var F4=e=>e instanceof Error?e.message:String(e);function I4(){let{typeKey:e=``}=ta(),[t]=wo(),n=Q(),r=Io();if(r.isPending)return(0,S.jsx)(R0,{});if(r.isError)return(0,S.jsx)(z0,{error:r.error,onRetry:()=>void r.refetch()});let i=r.data.find(t=>t.key===e);if(!i)return(0,S.jsx)(iQ,{icon:nx,title:n.builder.notFoundTitle,description:n.builder.notFoundDescription,action:(0,S.jsx)(tX,{href:$.types,children:n.builder.backToTypes})});let a=[],o=i.fields;for(let e of t.getAll(`in`)){let t=o.find(t=>t.id===e&&t.deletedAt===void 0),r=t?M2(t):null;if(!t||!r)return(0,S.jsx)(iQ,{icon:nx,title:n.builder.notFoundTitle,description:n.builder.notFoundDescription,action:(0,S.jsx)(tX,{href:$.type(i.key),children:n.builder.backTo(i.key)})});a.push(t),o=r}return(0,S.jsx)(L4,{type:i,holders:a,fields:o},a.map(e=>e.id).join(`/`))}function L4({type:e,holders:t,fields:n}){let r=Q(),i=v1(),a=Yo(),o=Ko(),s=qo(),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),m=Vo(),[h,g]=(0,x.useState)(!1),_=B0(),v=t.map(e=>e.id),y=t.at(-1),[b,C]=(0,x.useState)(null),[w,T]=(0,x.useState)(null),E=w1(w),D=Z(e.label,i),O=y?[{key:``,fields:n.filter(e=>e.deletedAt===void 0)}]:y4(e),k=O.length>1,A=n.filter(e=>e.deletedAt!==void 0),j=O.some(e=>e.fields.length>0),M=e=>Z(e.label,i),ee=(t,i)=>a.mutate({typeId:e.id,arrangement:y?w4(n,t.id,i,v):S4(e,t.id,i)},{onError:e=>X({title:r.builder.notMoved,description:F4(e),tone:`danger`})}),N=[{id:`field`,label:r.builder.columnField},{id:`kind`,label:r.builder.columnKind},{id:`rules`,label:r.builder.columnRules},{id:`actions`,label:r.builder.columnActions,align:`end`}],P=e=>{let t=M2(e);return(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:M(e)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t?`${e.key} · ${r.builder.holdsFields(t.filter(e=>e.deletedAt===void 0).length)}`:e.key})]})},te=e=>(0,S.jsx)(uZ,{children:r.builder.kinds[e.type]?.name??e.type}),F=t=>t.map((n,i)=>({id:n.id,cells:{field:P(n),kind:te(n),rules:(0,S.jsxs)($Y,{gap:2,children:[n.required&&(0,S.jsx)(uZ,{tone:`info`,children:r.builder.required}),!n.translated&&(0,S.jsx)(uZ,{children:r.builder.sameInEveryLanguage})]}),actions:(0,S.jsxs)($Y,{gap:1,justify:`end`,children:[M2(n)&&(0,S.jsx)(AY,{size:`sm`,label:r.builder.fieldsInside(M(n)),icon:Jy,onPress:()=>_($.type(e.key,[...v,n.id]))}),(0,S.jsx)(AY,{size:`sm`,label:r.builder.moveUp(M(n)),icon:gv,isDisabled:i===0||a.isPending,onPress:()=>ee(n,-1)}),(0,S.jsx)(AY,{size:`sm`,label:r.builder.moveDown(M(n)),icon:uv,isDisabled:i===t.length-1||a.isPending,onPress:()=>ee(n,1)}),(0,S.jsx)(AY,{size:`sm`,label:r.builder.edit(M(n)),icon:Eb,onPress:()=>C(n)}),(0,S.jsx)(AY,{size:`sm`,label:r.builder.remove(M(n)),icon:gx,onPress:()=>T(n)})]})}})),ne=(0,S.jsx)(q,{icon:Pb,onPress:()=>l(!0),children:r.builder.addField});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:8,children:[y?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(tX,{href:$.type(e.key,v.slice(0,-1)),children:r.builder.backTo(t.length>1?M(t.at(-2)):D)}),(0,S.jsx)(oQ,{title:M(y),description:r.builder.insideOf(M(y),D),actions:ne})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(tX,{href:$.types,children:r.builder.backToTypes}),(0,S.jsx)(oQ,{title:D,description:[r.builder.keyIs(e.key),e.urlPattern??r.builder.noAddress].join(` · `),actions:(0,S.jsxs)($Y,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:cv,onPress:()=>g(!0),children:r.builder.archive}),(0,S.jsx)(q,{variant:`secondary`,icon:Qb,onPress:()=>d(!0),children:r.builder.settings}),(0,S.jsx)(q,{variant:`secondary`,icon:Iy,onPress:()=>p(!0),children:r.builder.sections}),ne]})}),(0,S.jsx)(tX,{href:$.contentList(e.key),children:r.builder.viewEntries})]}),!j&&(0,S.jsx)(iQ,{icon:Ky,title:r.builder.noFieldsTitle,description:r.builder.noFieldsDescription,action:ne}),j&&O.map(t=>{let n=e.sections?.find(e=>e.key===t.key),a=n?Z(n.label,i):r.builder.otherFields;return k?t.key===``&&t.fields.length===0?null:(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(ZY,{level:2,size:`md`,children:a}),!n&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.builder.otherFieldsDescription})]}),(0,S.jsx)(rZ,{label:r.builder.fieldsOf(a),columns:N,rows:F(t.fields),empty:r.builder.noFieldsHere})]},t.key):(0,S.jsx)(rZ,{label:r.builder.fields,columns:N,rows:F(t.fields)},t.key)}),A.length>0&&(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(ZY,{level:2,size:`md`,children:r.builder.removedFields}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.builder.removedFieldsDescription})]}),(0,S.jsx)(rZ,{label:r.builder.removedFields,columns:N.filter(e=>e.id!==`rules`),rows:A.map(t=>({id:t.id,cells:{field:P(t),kind:te(t),actions:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isDisabled:s.isPending,onPress:()=>s.mutate({typeId:e.id,fieldId:t.id,within:v},{onSuccess:()=>X({title:r.builder.restored(M(t)),tone:`success`}),onError:e=>X({title:r.builder.notRestored,description:F4(e),tone:`danger`})}),children:r.builder.restoreField(M(t))})}}))})]})]}),c&&(0,S.jsx)(D4,{type:e,within:v,onClose:()=>l(!1)}),b&&(0,S.jsx)(D4,{type:e,field:b,within:v,onClose:()=>C(null)}),f&&(0,S.jsx)(A4,{type:e,onClose:()=>p(!1)}),u&&(0,S.jsx)(P4,{type:e,onClose:()=>d(!1)}),(0,S.jsx)(tQ,{isOpen:w!==null,onOpenChange:e=>!e&&T(null),title:r.builder.removeTitle(E?M(E):``),confirmLabel:r.builder.removeConfirm,cancelLabel:r.editor.cancel,tone:`danger`,isPending:o.isPending,onConfirm:()=>{w&&o.mutate({typeId:e.id,fieldId:w.id,within:v},{onSuccess:()=>X({title:r.builder.removed(M(w)),tone:`success`}),onError:e=>X({title:r.builder.notRemoved,description:F4(e),tone:`danger`}),onSettled:()=>T(null)})},children:r.builder.removeDescription}),(0,S.jsx)(tQ,{isOpen:h,onOpenChange:g,title:r.builder.archiveTitle(D),confirmLabel:r.builder.archiveConfirm,cancelLabel:r.editor.cancel,tone:`danger`,isPending:m.isPending,onConfirm:()=>m.mutate(e.id,{onSuccess:()=>{X({title:r.builder.archived(D),description:r.builder.archivedDescription,tone:`success`}),_($.types)},onError:e=>{X({title:r.builder.notArchived,description:F4(e),tone:`danger`}),g(!1)}}),children:r.builder.archiveDescription})]})}var R4={},z4=e=>e instanceof Error?e.message:String(e);function B4(){let e=Q(),t=v1(),n=B0(),r=Io(),[i,a]=(0,x.useState)(!1),o=zo(),s=Ho(),c=[{id:`name`,label:e.builder.columnName},{id:`archived`,label:e.builder.columnArchived},{id:`actions`,label:e.builder.columnActions,align:`end`}],l=(o.data??[]).map(n=>{let r=Z(n.label,t);return{id:n.key,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:r}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.key})]}),archived:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.deletedAt===void 0?``:$0(n.deletedAt,t)}),actions:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:s.isPending&&s.variables===n.id,onPress:()=>s.mutate(n.id,{onSuccess:()=>X({title:e.builder.typeRestored(r),description:e.builder.typeRestoredDescription,tone:`success`}),onError:t=>X({title:e.builder.typeNotRestored,description:z4(t),tone:`danger`})}),children:e.builder.restoreType(r)})}}}),u=[{id:`name`,label:e.builder.columnName},{id:`kind`,label:e.builder.columnKind},{id:`fields`,label:e.builder.columnFields},{id:`address`,label:e.builder.columnAddress}],d=(r.data??[]).map(n=>({id:n.key,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:Z(n.label,t)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.key})]}),kind:n.kind===`single`?e.builder.kindSingle:e.builder.kindCollection,fields:e.builder.fieldCount(l_(n.fields).length),address:n.urlPattern??(0,S.jsx)(Y,{tone:`muted`,children:e.builder.noAddress})}})),f=(0,S.jsx)(q,{icon:Pb,onPress:()=>a(!0),children:e.builder.newType});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.builder.title,description:e.builder.description,actions:f}),r.isPending&&(0,S.jsx)(R0,{shape:`table`}),r.isError&&(0,S.jsx)(z0,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(iQ,{icon:nx,title:e.builder.emptyTitle,description:e.builder.emptyDescription,action:f}),r.isSuccess&&d.length>0&&(0,S.jsx)(rZ,{label:e.builder.title,columns:u,rows:d,onRowAction:e=>n($.type(e))}),o.isError&&(0,S.jsx)(z0,{error:o.error,onRetry:()=>void o.refetch()}),o.isSuccess&&l.length>0&&(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(ZY,{level:2,size:`md`,children:e.builder.archivedTitle}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.builder.archivedHelp})]}),(0,S.jsx)(rZ,{label:e.builder.archivedTypes,columns:c,rows:l})]})]}),i&&(0,S.jsx)(V4,{onClose:()=>a(!1)})]})}function V4({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=v1(),a=B0(),o=Ro(),[s,c]=(0,x.useState)(`collection`),l=s===`single`,[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(null),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(R4),v=f??I2(u),y=()=>{let e={...u.trim()===``&&{label:r.builder.typeNameNeeded},...v===``&&{key:r.builder.keyNeeded}};_(e),Object.keys(e).length>0||o.mutate({key:v,kind:s,label:{[i.split(`-`)[0]??i]:u.trim()},...m.trim()!==``&&{urlPattern:m.trim()}},{onSuccess:e=>{X({title:r.builder.typeCreated(u.trim()),description:r.builder.typeCreatedDescription,tone:`success`}),t(),a($.type(e.key))},onError:e=>{let t=e instanceof No?e.issues:[];_(t.length>0?Object.fromEntries(t.map(t=>[String(t.path[0]??`key`),e.message])):{key:z4(e)}),X({title:r.builder.typeNotCreated,description:z4(e),tone:`danger`})}})};return(0,S.jsx)(LY,{...n,title:r.builder.newTypeTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:y,children:r.builder.typeCreate})]}),children:(0,S.jsxs)(GY,{label:r.builder.newTypeTitle,gap:4,onSubmit:y,children:[(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(bX,{label:r.builder.typeKind,selected:s,onChange:e=>c(e),options:[{id:`collection`,label:r.builder.kindCollection},{id:`single`,label:r.builder.kindSingle}]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:l?r.builder.kindSingleHelp:r.builder.kindCollectionHelp})]}),(0,S.jsx)(mZ,{label:r.builder.typeName,description:l?r.builder.typeNameHelpSingle:r.builder.typeNameHelp,value:u,onChange:d,isRequired:!0,autoFocus:!0,autoComplete:`off`,...g.label!==void 0&&{errorMessage:g.label}}),(0,S.jsx)(mZ,{label:r.builder.typeKey,description:r.builder.typeKeyHelp,value:v,onChange:p,isRequired:!0,autoComplete:`off`,...g.key!==void 0&&{errorMessage:g.key}}),(0,S.jsx)(mZ,{label:l?r.builder.typeAddressSingle:r.builder.typeAddress,description:l?r.builder.typeAddressHelpSingle:r.builder.typeAddressHelp,value:m,onChange:h,autoComplete:`off`,...g.urlPattern!==void 0&&{errorMessage:g.urlPattern}})]})})}var H4={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},U4={all:()=>!0,published:e=>e===`published`||e===`unpublishedChanges`,drafts:e=>e===`draft`,changed:e=>e===`unpublishedChanges`},W4=e=>e===void 0?{}:{src:e},G4=200;function K4(){let e=Q(),t=v1(),n=B0(),{typeKey:r=``}=ta(),i=Io(),a=Xo({type:r,limit:G4}),o=$o(),s=k1(),[c,l]=(0,x.useState)(`all`),[u,d]=(0,x.useState)(``);if(i.isPending)return(0,S.jsx)(R0,{});if(i.isError)return(0,S.jsx)(z0,{error:i.error,onRetry:()=>void i.refetch()});let f=i.data.find(e=>e.key===r);if(!f)return(0,S.jsx)(iQ,{icon:oy,title:e.contentList.typeNotFoundTitle,description:e.contentList.typeNotFoundDescription});let p=Z(f.label,t),m=p1(a.data?.items??[],t),h=m.some(e=>e.versions.length>1)||new Set(m.map(e=>e.primary.locale)).size>1;if(f.kind===`single`){if(f.inSettings===!0)return(0,S.jsx)(Qa,{to:$.settingsPage(f.key),replace:!0});if(a.isPending)return(0,S.jsx)(R0,{shape:`form`});if(a.isError)return(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()});let e=m[0]?.primary;return(0,S.jsx)(Qa,{to:e?$.entry(f.key,e.id):$.newEntry(f.key),replace:!0})}let g=u.trim().toLowerCase(),_=m.filter(({primary:e,versions:t})=>U4[c](u1(e))?g===``||t.some(e=>`${s1(f,e.data)??``} ${e.slug}`.toLowerCase().includes(g)):!1),v=(f.list?.fieldPaths??[]).flatMap((e,t)=>{let n=c1(f,{},e);return n?[{id:`field-${t}`,path:e,field:n.field}]:[]}),y=f.list?.imagePath!==void 0,b=new Map((o.data??[]).map(e=>[e.name,a1(e)])),C=[{id:`title`,label:e.contentList.columnTitle},...v.map(({id:e,field:n})=>({id:e,label:Z(n.label,t),align:s(n.type)?.summaryAlign??`start`})),{id:`status`,label:e.contentList.columnStatus},...h?[{id:`languages`,label:e.contentList.columnLanguages}]:[],{id:`updated`,label:e.contentList.columnUpdated}],w=_.map(({primary:n,versions:r})=>{let i=u1(n),a=r.reduce((e,t)=>t.updatedAt>e?t.updatedAt:e,n.updatedAt);return{id:n.id,cells:{title:(0,S.jsxs)($Y,{gap:3,children:[y&&(0,S.jsx)(CZ,{...W4(b.get(l1(f,n.data)??``))}),(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:s1(f,n.data)??e.contentList.untitled}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,mono:!0,children:m1(f,n)??n.slug})]})]}),...Object.fromEntries(v.map(({id:e,path:t,field:r})=>[e,(0,S.jsx)(A1,{field:r,value:c1(f,n.data,t)?.value},e)])),status:(0,S.jsx)(uZ,{tone:H4[i],children:e.status[i]}),...h&&{languages:(0,S.jsx)($Y,{gap:1,children:r.map(e=>(0,S.jsx)(uZ,{children:e.locale.toUpperCase()},e.id))})},updated:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:$0(a,t)})}}}),T=(0,S.jsx)(q,{icon:Pb,onPress:()=>n($.newEntry(f.key)),children:e.contentList.newEntry});return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:p,actions:T,...a.data&&{description:e.contentList.description(m.length)}}),a.isPending&&(0,S.jsx)(R0,{shape:`table`}),a.isError&&(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&m.length===0&&(0,S.jsx)(iQ,{icon:Oy,title:e.contentList.emptyTitle(p),description:e.contentList.emptyDescription}),a.isSuccess&&m.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)($Y,{justify:`between`,gap:4,wrap:!0,children:[(0,S.jsx)(bX,{label:e.contentList.filter,selected:c,onChange:e=>l(e),options:[{id:`all`,label:e.contentList.filterAll},{id:`published`,label:e.contentList.filterPublished},{id:`drafts`,label:e.contentList.filterDrafts},{id:`changed`,label:e.contentList.filterChanged}]}),(0,S.jsx)(q_,{maxWidth:`xs`,grow:!0,children:(0,S.jsx)(_X,{label:e.contentList.search(p),placeholder:e.contentList.searchPlaceholder,clearLabel:e.contentList.clearSearch,value:u,onChange:d})})]}),w.length===0?(0,S.jsx)(iQ,{icon:Kb,title:e.contentList.noMatchesTitle,description:e.contentList.noMatchesDescription}):(0,S.jsx)(rZ,{label:p,columns:C,rows:w,onRowAction:e=>n($.entry(f.key,e))})]})]})})}var q4=(e,t)=>JSON.stringify(e??null)===JSON.stringify(t??null);function J4({type:e,entry:t,hasChanges:n,onReverted:r,onClose:i}){let a=Q(),o=v1(),s=ps(t.id),c=oc(),l=ms(),{close:u,dialog:d}=C1(i),f=l_(e.fields),p=s.data??[],m=(e,t)=>{if(!t)return a.history.first;let n=f.filter(n=>!q4(e.data[n.id],t.data[n.id])).map(e=>Z(e.label,o));return n.length>0?a.history.changed(n):e.status===t.status?e.status===`published`?a.history.published:a.history.saved:e.status===`published`?a.history.published:a.history.unpublished},h=e=>{let n=$0(e.createdAt,o);l.mutate({id:t.id,revision:e.revision,expectedRevision:t.revision},{onSuccess:e=>{X({title:a.history.broughtBack(n),description:a.history.broughtBackDescription,tone:`success`}),r(e),u()},onError:e=>X({title:a.history.notBroughtBack,description:e.message,tone:`danger`})})};return(0,S.jsx)(LY,{...d,placement:`side`,title:a.history.title,closeLabel:a.history.close,children:s.isPending?(0,S.jsx)(R0,{shape:`summary`}):s.isError?(0,S.jsx)(z0,{error:s.error,onRetry:()=>void s.refetch()}):(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(Y,{tone:`muted`,children:n?a.history.saveFirst:a.history.help}),p.map((e,r)=>{let i=(c.data??[]).find(t=>t.id===e.actorId)?.name,s=e.revision===t.revision;return(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)($Y,{gap:2,children:[s&&(0,S.jsx)(uZ,{tone:`info`,children:a.history.current}),t.published?.revision===e.revision&&(0,S.jsx)(uZ,{tone:`success`,children:a.history.onSite}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:a.history.when($0(e.createdAt,o),i)})]}),(0,S.jsx)(Y,{children:m(e,p[r+1])}),!s&&!q4(e.data,t.data)&&(0,S.jsx)($Y,{children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isDisabled:n||l.isPending,isPending:l.isPending&&l.variables?.revision===e.revision,onPress:()=>h(e),children:a.history.bringBack})})]},e.revision)})]})})}var Y4=e=>String(e).padStart(2,`0`),X4=e=>`${e.getFullYear()}-${Y4(e.getMonth()+1)}-${Y4(e.getDate())}`,Z4=Array.from({length:48},(e,t)=>`${Y4(Math.floor(t/2))}:${t%2==0?`00`:`30`}`);function Q4(e,t){return new Intl.DateTimeFormat(t,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e))}function $4({entry:e,hasChanges:t,onClose:n}){let r=Q(),i=v1(),a=ds(),o=fs(),{close:s,dialog:c}=C1(n),[l]=(0,x.useState)(()=>{if(e.publishAt!==void 0)return new Date(e.publishAt);let t=new Date;return t.setDate(t.getDate()+1),t.setHours(9,0,0,0),t}),[u,d]=(0,x.useState)(X4(l)),[f,p]=(0,x.useState)(`${Y4(l.getHours())}:${l.getMinutes()<30?`00`:`30`}`),[m,h]=(0,x.useState)(null),g=a.isPending||o.isPending,_=e=>new Intl.DateTimeFormat(i,{timeStyle:`short`}).format(new Date(`2000-01-01T${e}:00`)),v=()=>{if(u===null){h(r.schedule.dayMissing);return}h(null);let t=new Date(`${u}T${f}:00`).toISOString();a.mutate({id:e.id,at:t,expectedRevision:e.revision},{onSuccess:e=>{X({title:r.schedule.set,description:r.schedule.setDescription(Q4(e.publishAt??t,i)),tone:`success`}),s()},onError:e=>{let t=e instanceof No?e.issues.find(e=>e.path[0]===`publishAt`):void 0;t?h(t.message):X({title:r.schedule.notSet,description:e.message,tone:`danger`})}})},y=()=>o.mutate(e.id,{onSuccess:()=>{X({title:r.schedule.removed,tone:`success`}),s()},onError:e=>X({title:r.schedule.notRemoved,description:e.message,tone:`danger`})});return(0,S.jsx)(LY,{...c,title:r.schedule.title,closeLabel:r.schedule.close,footer:(0,S.jsxs)(S.Fragment,{children:[e.publishAt!==void 0&&(0,S.jsx)(q,{variant:`ghost`,isDisabled:g,isPending:o.isPending,onPress:y,children:r.schedule.remove}),(0,S.jsx)(q,{variant:`secondary`,isDisabled:g,onPress:s,children:r.schedule.cancel}),(0,S.jsx)(q,{isDisabled:g||t,isPending:a.isPending,onPress:v,children:e.publishAt===void 0?r.schedule.confirm:r.schedule.change})]}),children:(0,S.jsxs)(J,{gap:4,children:[e.publishProblem!==void 0&&(0,S.jsx)(Y,{tone:`danger`,children:r.schedule.missed(e.publishProblem)}),e.publishAt!==void 0&&(0,S.jsx)(Y,{children:r.schedule.current(Q4(e.publishAt,i))}),(0,S.jsx)(Y,{tone:`muted`,children:t?r.schedule.saveFirst:r.schedule.help}),(0,S.jsxs)($Y,{gap:3,align:`start`,children:[(0,S.jsx)(TY,{label:r.schedule.day,value:u,onChange:d,isRequired:!0,...m!==null&&{errorMessage:m}}),(0,S.jsx)(OX,{label:r.schedule.time,value:f,onChange:p,options:Z4.map(e=>({id:e,label:_(e)}))})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.schedule.zone(Intl.DateTimeFormat().resolvedOptions().timeZone)})]})})}var e3=e=>e.startsWith(`/`)&&!e.startsWith(`//`);function t3(){let e=window.open(``,`_blank`);return{show:t=>{if(!e3(t)){e?.close();return}let n=new URL(t,window.location.origin).href;e?e.location.href=n:window.location.assign(n)},close:()=>e?.close()}}function n3(e){return e.normalize(`NFKD`).replace(/\p{M}/gu,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function r3(e){let t=va(({currentLocation:t,nextLocation:n})=>e&&t.pathname!==n.pathname);return(0,x.useEffect)(()=>{if(!e)return;let t=e=>e.preventDefault();return window.addEventListener(`beforeunload`,t),()=>window.removeEventListener(`beforeunload`,t)},[e]),(0,x.useEffect)(()=>{t.state===`blocked`&&!e&&t.proceed()},[t,e]),{isAsking:t.state===`blocked`,leave:()=>t.proceed?.(),stay:()=>t.reset?.()}}var i3=class extends x.Component{state={error:null};static getDerivedStateFromError(e){return{error:e instanceof Error?e:Error(String(e))}}render(){return this.state.error===null?this.props.children:(0,S.jsx)(z0,{error:this.state.error,onRetry:()=>this.setState({error:null})})}};function a3({type:e,entry:t}){let n=Fo(),r=n.data!==null&&n.data!==void 0&&n.data.role!==`author`;return e.forDeals!==!0||t===null||!r?null:(0,S.jsx)(o3,{typeId:e.id,entry:t.translationGroup})}function o3({typeId:e,entry:t}){let n=Q(),r=Rs({about:{typeId:e,entry:t},limit:200}),i=nc(),a=oc(),o=V0(),s=q0(i.data?.currency),[c,l]=(0,x.useState)(null),u=[{id:`title`,label:n.deals.columnTitle},{id:`value`,label:n.deals.columnValue,align:`end`}],d=(r.data?.items??[]).map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage);return{id:e.id,cells:{title:(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{weight:`semibold`,children:e.title}),t&&(0,S.jsx)(uZ,{tone:H0[t.kind],children:o(t)})]}),value:(0,S.jsx)(Y,{weight:`semibold`,children:s(e.value)})}}});return(0,S.jsxs)(cY,{title:n.deals.entryDeals,children:[r.isPending&&(0,S.jsx)(R0,{shape:`table`}),r.isError&&(0,S.jsx)(z0,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:n.deals.entryCardEmpty}),r.isSuccess&&d.length>0&&(0,S.jsx)(rZ,{label:n.deals.entryDeals,columns:u,rows:d,onRowAction:e=>l(r.data.items.find(t=>t.id===e)??null)}),c!==null&&i.data&&(0,S.jsx)(l2,{deal:c,contact:{id:c.contactId},pipeline:i.data,team:a.data??[],onClose:()=>l(null)})]})}var s3=[`phone`,`tablet`,`full`];function c3({entry:e,data:t,title:n}){let r=Q(),i=N1(),a=bc(e?.id,e?.revision),[o,s]=(0,x.useState)(`full`),c={phone:r.editor.pagePhone,tablet:r.editor.pageTablet,full:r.editor.pageDesktop},l=e===null?r.editor.pageNotYet:a.error?r.editor.pageNotShown(a.error.message):r.editor.pageLoading;return(0,S.jsx)(Y$,{label:r.editor.pageFrame(n),...e!==null&&a.data&&{address:a.data.path},draft:e===null?``:JSON.stringify({id:e.id,data:t}),width:o,note:r.editor.pageNote,toolbar:(0,S.jsx)(bX,{label:r.editor.pageWidth,selected:o,onChange:e=>s(s3.find(t=>t===e)??`full`),options:s3.map(e=>({id:e,label:c[e]}))}),emptyText:l,...i&&{onSectionPress:i.press},...i?.opened!==void 0&&{shownSectionId:i.opened}})}var l3={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},u3=new Map;function d3({type:e,entry:t,onCreated:n,versions:r=[],onSwitch:i,onTrashed:a,embedded:o=!1}){let s=Q(),c=v1(),l=as(),u=os(),d=ss(),f=cs(),p=hs(),m=us(),h=vc(),g=Fo(),[_,v]=(0,x.useState)(t?.data??{}),[y,b]=(0,x.useState)(null),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(u3),[D,O]=(0,x.useState)(null),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(!1),[ee,N]=(0,x.useState)(!1),[P,te]=(0,x.useState)(!1),F=Z(e.label,c),ne=s1(e,_),re=e.kind===`single`,ie=y??t?.slug??(re?e.key:n3(ne??``)),ae=T_(e),oe=ae?C_(ie):S_(ie),se=t===null||ie!==t.slug||!f1(_,t.data),ce=t?u1(t):`draft`,le=r3((t===null?y!==null||Object.keys(_).length>0:se)&&D===null);function ue(e,t){let n=t instanceof No?t.issues:[],r=n.find(e=>e.path[0]===E_);r&&w(r.message),E(new Map(n.map(e=>[e.path.join(`.`),e.message]))),X({title:e,description:n.length>0?s.editor.fieldsNeedAttention(n.length):t instanceof Error?t.message:String(t),tone:`danger`})}async function de(){if(t===null){let t=await l.mutateAsync({type:e.key,slug:ie,data:_});return n(t),t}return se?u.mutateAsync({id:t.id,changes:{slug:ie,data:_,expectedRevision:t.revision}}):t}async function fe(e){if(!oe){w(ie===``?s.editor.slugMissing:ae?s.editor.slugPathInvalid:s.editor.slugInvalid);return}O(e),E(u3);let t;try{t=await de(),v(t.data),b(null)}catch(e){ue(s.editor.notSaved,e),O(null);return}if(e===`save`)X({title:s.editor.draftSaved,description:s.editor.draftSavedDescription,tone:`success`});else try{await d.mutateAsync({id:t.id,expectedRevision:t.revision}),X({title:s.editor.published,description:s.editor.publishedDescription,tone:`success`})}catch(e){ue(s.editor.notPublished,e)}O(null)}async function pe(){if(!oe){w(ie===``?s.editor.slugMissing:ae?s.editor.slugPathInvalid:s.editor.slugInvalid);return}let e=t3();O(`preview`),E(u3);try{let t=await de();v(t.data),b(null);try{e.show((await h.mutateAsync(t.id)).path)}catch(t){e.close(),ue(s.editor.notPreviewed,t)}}catch(t){e.close(),ue(s.editor.notSaved,t)}O(null)}async function me(e){O(`unpublish`);try{await f.mutateAsync(e),X({title:s.editor.unpublished,description:s.editor.unpublishedDescription})}catch(e){ue(s.editor.notUnpublished,e)}A(!1),O(null)}async function I(e){O(`trash`);try{await p.mutateAsync(e),X({title:s.editor.trashed(ne??s.contentList.untitled),description:s.editor.trashedDescription}),a?.()}catch(e){ue(s.editor.notTrashed,e),M(!1),O(null)}}async function he(e){O(`duplicate`);try{let t=await m.mutateAsync(e);X({title:s.editor.duplicated(ne??s.contentList.untitled),description:s.editor.duplicatedDescription,tone:`success`}),i?.(t.id)}catch(e){ue(s.editor.notDuplicated,e)}O(null)}let ge=D!==null,_e=[...t?.status===`published`?[{id:`unpublish`,label:s.editor.unpublish,icon:ny}]:[],...t!==null&&g.data?.role!==`author`?[{id:`schedule`,label:t.publishAt===void 0?s.editor.schedule:s.editor.scheduleChange,icon:wv}]:[],...t===null?[]:[{id:`history`,label:s.editor.history,icon:Bb}],...t!==null&&!re?[{id:`duplicate`,label:s.editor.duplicate,icon:Xv}]:[],...t!==null&&!re?[{id:`trash`,label:s.editor.trash,icon:gx,tone:`danger`}]:[]],ve=ae?`[...slug]`:`[slug]`,ye=e.urlPattern?.includes(ve)?e.urlPattern:void 0,be=e=>ae&&ie===`index`?s.editor.slugHomeDescription(e.replace(ve,``)):(ae?s.editor.slugPathDescription:s.editor.slugDescription)(e.replace(ve,ie===``?`…`:ie)),xe=e.urlPattern!==void 0||Object.keys(e.localizedUrlPatterns??{}).length>0,Se=(e,t)=>{v(n=>d1(n,e.id,t)),E(t=>new Map([...t].filter(([t])=>t!==e.key&&!t.startsWith(`${e.key}.`))))},Ce=l_(e.fields),we=new Set((e.sections??[]).flatMap(e=>e.fieldIds)),Te=Ce.filter(e=>!we.has(e.id)),Ee=[...(e.sections??[]).map(e=>({key:e.key,title:Z(e.label,c),aside:e.aside===!0,fields:e.fieldIds.flatMap(e=>Ce.filter(t=>t.id===e))})),...Te.length>0?[{key:`$rest`,...e.sections?.length&&{title:s.editor.otherFields},aside:!1,fields:Te}]:[]],De=k1(),Oe=xe&&Ce.some(e=>De(e.type)?.showsPage===!0),ke=M0().panels.filter(t=>t.types===void 0||t.types.includes(e.key)).map(n=>(0,S.jsx)(cY,{title:n.title,children:(0,S.jsx)(i3,{children:(0,S.jsx)(n.Component,{type:e,entry:t,data:_})})},`${n.plugin}/${n.id}`)),Ae=e.forDeals===!0&&t!==null&&g.data!==null&&g.data!==void 0&&g.data.role!==`author`,je=Ae?(0,S.jsx)(a3,{type:e,entry:t}):null,Me=t===null?s.editor.notSavedYet:se?s.editor.unsavedChanges:t.publishAt===void 0?s.editor.saved($0(t.updatedAt,c)):s.editor.goesOut(Q4(t.publishAt,c)),Ne=e=>(0,S.jsx)(cY,{...e.title!==void 0&&{title:e.title},children:(0,S.jsx)(O1,{fields:e.fields,values:_,onChange:Se,pathOf:e=>e.key,problems:T,...e.aside&&{perRow:1}})},e.key),Pe=e=>Ne({...e,aside:!0});return(0,S.jsxs)(J,{gap:0,fill:!0,children:[(0,S.jsx)(CQ,{label:s.editor.saveBar,...!re&&{back:{href:$.contentList(e.key),label:F}},title:re?F:ne??(t?s.contentList.untitled:s.editor.newTitle),status:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(uZ,{tone:l3[ce],children:s.status[ce]}),t?.publishProblem!==void 0&&(0,S.jsx)(uZ,{tone:`danger`,children:s.editor.missedSchedule}),(0,S.jsx)(Y,{as:`span`,size:`sm`,tone:`muted`,children:Me})]}),actions:(0,S.jsxs)(S.Fragment,{children:[t!==null&&r.length>1&&(0,S.jsx)(bX,{label:s.editor.language,selected:t.id,onChange:e=>i?.(e),options:r.map(e=>({id:e.id,label:o1(e.locale,c),isDisabled:e.id!==t.id&&ge}))}),_e.length>0&&(0,S.jsx)(lX,{trigger:(0,S.jsx)(AY,{label:s.editor.more,icon:ey,isDisabled:ge}),actions:_e,onAction:e=>e===`schedule`?te(!0):e===`history`?N(!0):e===`trash`?M(!0):e===`duplicate`&&t?void he(t.id):A(!0)}),xe&&(0,S.jsx)(q,{variant:`ghost`,isDisabled:ge,isPending:D===`preview`,onPress:()=>void pe(),children:s.editor.preview}),(0,S.jsx)(q,{variant:`secondary`,isDisabled:ge||!se,isPending:D===`save`,onPress:()=>void fe(`save`),children:s.editor.saveDraft}),(0,S.jsx)(q,{isDisabled:ge||ce===`published`&&!se,isPending:D===`publish`,onPress:()=>void fe(`publish`),children:t?.status===`published`?s.editor.publishChanges:s.editor.publish})]})}),(0,S.jsx)(q_,{paddingX:o?0:12,paddingY:8,grow:!0,children:(0,S.jsx)(GY,{label:s.editor.form,gap:5,onSubmit:()=>void fe(`save`),children:Oe?(0,S.jsx)(M1,{children:(0,S.jsxs)($$,{paneLabel:s.editor.pagePane,pane:(0,S.jsx)(c3,{entry:t,data:_,title:ne??F}),children:[Ee.filter(e=>!e.aside).map(Pe),!re&&(0,S.jsx)(cY,{title:ye===void 0?s.editor.identifierSection:s.editor.addressSection,children:(0,S.jsx)(mZ,{label:s.editor.slug,value:ie,onChange:e=>{b(e),w(null)},isRequired:!0,description:ye===void 0?s.editor.slugAsIdentifier:be(ye),...C!==null&&{errorMessage:C}})}),je,Ee.filter(e=>e.aside).map(Ne),ke]})}):re&&ke.length===0&&!Ae&&!Ee.some(e=>e.aside)?(0,S.jsx)(J,{gap:6,children:Ee.map(Ne)}):(0,S.jsx)(WQ,{asideLabel:s.editor.aside,aside:(0,S.jsxs)(S.Fragment,{children:[!re&&(0,S.jsx)(cY,{title:ye===void 0?s.editor.identifierSection:s.editor.addressSection,children:(0,S.jsx)(mZ,{label:s.editor.slug,value:ie,onChange:e=>{b(e),w(null)},isRequired:!0,description:ye===void 0?s.editor.slugAsIdentifier:be(ye),...C!==null&&{errorMessage:C}})}),je,Ee.filter(e=>e.aside).map(Ne),ke]}),children:Ee.filter(e=>!e.aside).map(Ne)})})}),P&&t!==null&&(0,S.jsx)($4,{entry:t,hasChanges:se,onClose:()=>te(!1)}),ee&&t!==null&&(0,S.jsx)(J4,{type:e,entry:t,hasChanges:se,onReverted:e=>{v(e.data),E(u3)},onClose:()=>N(!1)}),(0,S.jsx)(tQ,{isOpen:le.isAsking,onOpenChange:e=>{e||le.stay()},title:s.editor.leaveTitle,confirmLabel:s.editor.leave,cancelLabel:s.editor.keepEditing,tone:`danger`,onConfirm:le.leave,children:s.editor.leaveDescription}),t!==null&&(0,S.jsx)(tQ,{isOpen:k,onOpenChange:A,title:s.editor.unpublishTitle,confirmLabel:s.editor.unpublish,cancelLabel:s.editor.cancel,tone:`danger`,isPending:D===`unpublish`,onConfirm:()=>void me(t.id),children:s.editor.unpublishDescription}),t!==null&&(0,S.jsx)(tQ,{isOpen:j,onOpenChange:M,title:s.editor.trashTitle,confirmLabel:s.editor.trash,cancelLabel:s.editor.cancel,tone:`danger`,isPending:D===`trash`,onConfirm:()=>void I(t.id),children:t.status===`published`?s.editor.trashDescriptionPublished:s.editor.trashDescription})]})}function f3(){let e=Q(),t=v1(),n=B0(),{typeKey:r=``,entryId:i=`new`}=ta(),a=i===`new`,o=Io(),s=Qo(),c=rs(a?null:i),l=Xo({type:r,limit:200}),[u,d]=(0,x.useState)(null);if(o.isPending||s.isPending)return(0,S.jsx)(R0,{shape:`form`});if(o.isError)return(0,S.jsx)(z0,{error:o.error,onRetry:()=>void o.refetch()});if(s.isError)return(0,S.jsx)(z0,{error:s.error,onRetry:()=>void s.refetch()});let f=o.data.find(e=>e.key===r);if(!f)return(0,S.jsx)(iQ,{icon:oy,title:e.contentList.typeNotFoundTitle,description:e.contentList.typeNotFoundDescription});if(f.inSettings===!0)return(0,S.jsx)(Qa,{to:$.settingsPage(f.key),replace:!0});let p=(0,S.jsx)(iQ,{icon:oy,title:e.editor.notFoundTitle,description:e.editor.notFoundDescription,action:(0,S.jsx)(tX,{href:$.contentList(f.key),children:e.editor.back(Z(f.label,t))})});if(!a){if(c.isPending)return(0,S.jsx)(R0,{shape:`form`});if(c.isError)return c.error instanceof No&&c.error.code===`not_found`?p:(0,S.jsx)(z0,{error:c.error,onRetry:()=>void c.refetch()});if(c.data.typeId!==f.id)return p;if(s_(c.data))return(0,S.jsx)(iQ,{icon:gx,title:e.editor.inTrashTitle,description:e.editor.inTrashDescription,action:(0,S.jsx)(tX,{href:$.trash,children:e.editor.openTrash})})}return(0,S.jsx)(d3,{type:f,entry:a?null:c.data??null,versions:a||!c.data?[]:(l.data?.items??[]).filter(e=>e.translationGroup===c.data.translationGroup).sort((e,t)=>e.locale.localeCompare(t.locale)),onSwitch:e=>n($.entry(f.key,e)),onTrashed:()=>n($.contentList(f.key)),onCreated:e=>{d(e.id),n($.entry(f.key,e.id),{replace:!0,viewTransition:!1})}},i===u?`new`:i)}var p3=[`name`,`email`,`phone`];function m3({form:e,mayChange:t}){let n=Q(),r=v1(),i=Cs(),a={name:Z(e.label,r),fields:l_(e.fields),isPending:i.isPending,save:(t,n)=>i.mutate({id:e.id,changes:{fields:t,expectedRevision:e.revision}},n),canRequire:!0,tagsOf:t=>p3.filter(n=>e.contact?.[n]===t.id).map(e=>(0,S.jsx)(uZ,{children:n.forms.holds[e]},e)),words:{emptyDescription:n.forms.noFieldsDescription,nameHelp:n.forms.fieldNameHelp,removeDescription:n.forms.removeDescription}};return(0,S.jsx)(U2,{set:a,mayChange:t})}var h3={},g3=`:none`,_3=e=>e instanceof Error?e.message:String(e);function v3({form:e,onClose:t}){let{close:n,dialog:r}=C1(t),i=Q(),a=v1(),o=a.split(`-`)[0]??a,s=Cs(),c=l_(e.fields),l=e=>c.find(t=>t.id===e)?.key??g3,[u,d]=(0,x.useState)(Z(e.label,a)),[f,p]=(0,x.useState)(e.open),[m,h]=(0,x.useState)(e.notify.join(`
|
|
79
|
-
`)),[g,_]=(0,x.useState)(l(e.contact?.name)),[v,y]=(0,x.useState)(l(e.contact?.email)),[b,C]=(0,x.useState)(l(e.contact?.phone)),[w,T]=(0,x.useState)(e.success?Z(e.success,a):``),[E,D]=(0,x.useState)(e.submitLabel?Z(e.submitLabel,a):``),[O,k]=(0,x.useState)(e.retentionDays??null),[A,j]=(0,x.useState)(e.startsDeal===!0),M=l_(ic().data?.contact??[]),[ee,N]=(0,x.useState)(()=>Object.fromEntries(Object.entries(e.fills??{}).map(([e,t])=>[t,l(e)]))),[P,te]=(0,x.useState)(
|
|
80
|
-
`).map((e,t)=>(0,S.jsx)(Y,{children:e},t))]},e.id))]})}),(0,S.jsx)(tQ,{isOpen:u,onOpenChange:d,title:o.forms.deleteSubmissionTitle,confirmLabel:o.forms.deleteSubmission,cancelLabel:o.editor.cancel,tone:`danger`,isPending:l.isPending,onConfirm:()=>l.mutate(t.id,{onSuccess:()=>{X({title:o.forms.submissionDeleted,tone:`success`}),d(!1),i()},onError:e=>{X({title:o.forms.submissionNotDeleted,description:b3(e),tone:`danger`}),d(!1)}}),children:o.forms.deleteSubmissionDescription})]})}var C3=e=>e instanceof Error?e.message:String(e);function w3(){let{formId:e=``}=ta(),t=Q(),n=vs();if(n.isPending)return(0,S.jsx)(R0,{});if(n.isError)return(0,S.jsx)(z0,{error:n.error,onRetry:()=>void n.refetch()});let r=n.data.find(t=>t.id===e);return r?(0,S.jsx)(T3,{form:r},r.id):(0,S.jsx)(iQ,{icon:Oy,title:t.forms.notFoundTitle,description:t.forms.notFoundDescription,action:(0,S.jsx)(tX,{href:$.forms,children:t.forms.backToForms})})}function T3({form:e}){let t=Q(),n=v1(),r=B0(),i=Fo(),a=ws(),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(!1),u=Z(e.label,n),d=i.data!==null&&i.data!==void 0&&i.data.role!==`author`,[f,p]=(0,x.useState)(e.fields.length===0||!d?`fields`:`submissions`);return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(tX,{href:$.forms,children:t.forms.backToForms}),(0,S.jsx)(oQ,{title:u,description:t.forms.detail(e.key,e.open?t.forms.open:t.forms.closed),actions:d&&(0,S.jsxs)($Y,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:gx,onPress:()=>l(!0),children:t.forms.trash}),(0,S.jsx)(q,{variant:`secondary`,icon:Qb,onPress:()=>s(!0),children:t.forms.settings})]})})]}),(0,S.jsx)(cZ,{label:t.forms.tabs,selected:f,onChange:p,tabs:[{id:`submissions`,label:t.forms.tabSubmissions,content:d?(0,S.jsx)(x3,{form:e}):(0,S.jsx)(Y,{tone:`muted`,children:t.forms.noAccess})},{id:`fields`,label:t.forms.tabFields,content:(0,S.jsx)(m3,{form:e,mayChange:d})}]})]}),o&&(0,S.jsx)(v3,{form:e,onClose:()=>s(!1)}),(0,S.jsx)(tQ,{isOpen:c,onOpenChange:l,title:t.forms.trashTitle(u),confirmLabel:t.forms.trashConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:a.isPending,onConfirm:()=>a.mutate(e.id,{onSuccess:()=>{X({title:t.forms.trashed(u),tone:`success`}),r($.forms)},onError:e=>{X({title:t.forms.notTrashed,description:C3(e),tone:`danger`}),l(!1)}}),children:t.forms.trashDescription})]})}var E3={},D3=e=>e instanceof Error?e.message:String(e);function O3(){let e=Q(),t=v1(),n=B0(),r=vs(),i=Fo(),a=i.data!==null&&i.data!==void 0&&i.data.role!==`author`,o=ys(a),s=ks((r.data??[]).map(e=>e.id),a),c=Ts(),l=Es(),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(null),g=w1(m),_=e=>Z(e.label,t),v=[{id:`name`,label:e.forms.columnName},{id:`fields`,label:e.forms.columnFields},{id:`fresh`,label:e.forms.columnNew},{id:`status`,label:e.forms.columnStatus}],y=e=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:_(e)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.key})]}),b=(r.data??[]).map((t,n)=>{let r=s[n]?.data?.new;return{id:t.id,cells:{name:y(t),fields:e.forms.fieldCount(l_(t.fields).length),fresh:r===void 0?``:r>0?(0,S.jsx)(uZ,{tone:`info`,children:e.forms.newCount(r)}):(0,S.jsx)(Y,{tone:`muted`,children:e.forms.noneNew}),status:t.open?(0,S.jsx)(uZ,{tone:`success`,children:e.forms.open}):(0,S.jsx)(uZ,{children:e.forms.closed})}}}),C=[{id:`name`,label:e.forms.columnName},{id:`moved`,label:e.forms.columnTrashed},{id:`actions`,label:e.forms.columnActions,align:`end`}],w=(o.data??[]).map(n=>({id:n.id,cells:{name:y(n),moved:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.deletedAt===void 0?``:$0(n.deletedAt,t)}),actions:(0,S.jsxs)($Y,{gap:2,justify:`end`,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:c.isPending&&c.variables===n.id,onPress:()=>c.mutate(n.id,{onSuccess:()=>X({title:e.forms.restored(_(n)),tone:`success`}),onError:t=>X({title:e.forms.notRestored,description:D3(t),tone:`danger`})}),children:e.forms.restore(_(n))}),(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>h(n),children:e.forms.delete(_(n))})]})}})),T=(0,S.jsx)(q,{icon:Pb,onPress:()=>d(!0),children:e.forms.newForm});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.forms.title,description:e.forms.description,actions:a&&(0,S.jsxs)($Y,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:Ex,onPress:()=>p(!0),children:e.forms.forget}),T]})}),r.isPending&&(0,S.jsx)(R0,{shape:`table`}),r.isError&&(0,S.jsx)(z0,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&b.length===0&&(0,S.jsx)(iQ,{icon:Oy,title:e.forms.emptyTitle,description:e.forms.emptyDescription,...a&&{action:T}}),r.isSuccess&&b.length>0&&(0,S.jsx)(rZ,{label:e.forms.title,columns:v,rows:b,onRowAction:e=>n($.form(e))}),o.isError&&(0,S.jsx)(z0,{error:o.error,onRetry:()=>void o.refetch()}),o.isSuccess&&w.length>0&&(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(ZY,{level:2,size:`md`,children:e.forms.trashedTitle}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.forms.trashedHelp})]}),(0,S.jsx)(rZ,{label:e.forms.trashedTitle,columns:C,rows:w})]})]}),u&&(0,S.jsx)(k3,{onClose:()=>d(!1)}),f&&(0,S.jsx)(A3,{onClose:()=>p(!1)}),(0,S.jsx)(tQ,{isOpen:m!==null,onOpenChange:e=>!e&&h(null),title:e.forms.deleteTitle(g?_(g):``),confirmLabel:e.forms.deleteConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:l.isPending,onConfirm:()=>{m&&l.mutate(m.id,{onSuccess:()=>X({title:e.forms.deleted(_(m)),tone:`success`}),onError:t=>X({title:e.forms.notDeleted,description:D3(t),tone:`danger`}),onSettled:()=>h(null)})},children:e.forms.deleteDescription})]})}function k3({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=v1(),a=B0(),o=Ss(),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(null),[d,f]=(0,x.useState)(E3),p=l??I2(s),m=()=>{let e={...s.trim()===``&&{label:r.forms.nameNeeded},...p===``&&{key:r.forms.keyNeeded}};f(e),Object.keys(e).length>0||o.mutate({key:p,label:{[i.split(`-`)[0]??i]:s.trim()}},{onSuccess:e=>{X({title:r.forms.created(s.trim()),description:r.forms.createdDescription,tone:`success`}),t(),a($.form(e.id))},onError:e=>{f({key:D3(e)}),X({title:r.forms.notCreated,description:D3(e),tone:`danger`})}})};return(0,S.jsx)(LY,{...n,title:r.forms.newFormTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:m,children:r.forms.create})]}),children:(0,S.jsxs)(GY,{label:r.forms.newFormTitle,gap:4,onSubmit:m,children:[(0,S.jsx)(mZ,{label:r.forms.formName,description:r.forms.formNameHelp,value:s,onChange:c,isRequired:!0,autoFocus:!0,autoComplete:`off`,...d.label!==void 0&&{errorMessage:d.label}}),(0,S.jsx)(mZ,{label:r.forms.formKey,description:r.forms.formKeyHelp,value:p,onChange:u,isRequired:!0,autoComplete:`off`,...d.key!==void 0&&{errorMessage:d.key}})]})})}function A3({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=Ps(),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(null),l=()=>{if(a.trim()===``)return c(r.forms.forgetEmailNeeded);c(null),i.mutate(a,{onSuccess:e=>{X({title:r.forms.forgotten(e),...e>0&&{tone:`success`}}),t()},onError:e=>{e instanceof No&&e.code===`validation_failed`&&c(e.message),X({title:r.forms.notForgotten,description:D3(e),tone:`danger`})}})};return(0,S.jsx)(LY,{...n,title:r.forms.forgetTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{variant:`danger`,isPending:i.isPending,onPress:l,children:r.forms.forgetConfirm})]}),children:(0,S.jsxs)(GY,{label:r.forms.forgetTitle,gap:4,onSubmit:l,children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.forms.forgetHelp}),(0,S.jsx)(mZ,{label:r.forms.forgetEmail,type:`email`,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`off`,...s!==null&&{errorMessage:s}})]})})}function j3(e=new Date){let t=e.getHours();return t>=5&&t<12?`morning`:t>=12&&t<18?`afternoon`:`evening`}var M3=5;function N3({userId:e}){let t=Q(),n=B0(),r=Fs({ownerId:e,followUpBy:U0(),limit:M3}),i=nc(),a=V0(),o=W0();if(!r.isSuccess||r.data.total===0)return null;let s=[{id:`name`,label:t.contacts.columnName},{id:`stage`,label:t.contacts.columnStage},{id:`due`,label:t.contacts.columnFollowUp,align:`end`}],c=r.data.items.map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage),n=o(e.followUpAt??``);return{id:e.id,cells:{name:(0,S.jsx)(Y,{weight:`semibold`,children:e.name??e.email}),stage:t?(0,S.jsx)(uZ,{tone:H0[t.kind],children:a(t)}):``,due:(0,S.jsx)(uZ,{tone:n.tone,children:n.text})}}}),l=r.data.total-r.data.items.length;return(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(ZY,{level:2,children:t.home.followUpsTitle}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.home.followUpsHelp})]}),(0,S.jsx)(rZ,{label:t.home.followUpsTitle,columns:s,rows:c,onRowAction:e=>n($.contact(e))}),(0,S.jsxs)($Y,{gap:2,children:[l>0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.home.followUpsMore(l)}),(0,S.jsx)(tX,{href:$.contacts,children:t.home.allContacts})]})]})}var P3={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},F3=200,I3=8;function L3({siteName:e}){let t=Q(),n=v1(),r=B0(),i=Fo(),a=Io(),o=Zo((a.data??[]).map(e=>({type:e.key,limit:F3})));if(a.isPending)return(0,S.jsx)(R0,{});if(a.isError)return(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()});if(a.data.length===0)return(0,S.jsx)(iQ,{icon:nx,title:t.contentList.noTypesTitle,description:t.contentList.noTypesDescription});let s=o.find(e=>e.isError),c=o.some(e=>e.isPending),l=a.data.flatMap((e,t)=>p1(o[t]?.data?.items??[],n).map(({primary:t,versions:n})=>({type:e,entry:t,updatedAt:n.reduce((e,t)=>t.updatedAt>e?t.updatedAt:e,t.updatedAt)}))),u=e=>new Intl.NumberFormat(n).format(l.filter(({entry:t})=>e(u1(t))).length),d=[...l].sort((e,t)=>e.updatedAt<t.updatedAt?1:e.updatedAt>t.updatedAt?-1:0).slice(0,I3),f=[{id:`title`,label:t.contentList.columnTitle},{id:`type`,label:t.home.columnType},{id:`status`,label:t.contentList.columnStatus},{id:`updated`,label:t.contentList.columnUpdated}],p=d.map(({type:e,entry:r,updatedAt:i})=>{let a=u1(r);return{id:r.id,cells:{title:(0,S.jsx)(Y,{weight:`semibold`,children:s1(e,r.data)??t.contentList.untitled}),type:(0,S.jsx)(Y,{tone:`secondary`,children:Z(e.label,n)}),status:(0,S.jsx)(uZ,{tone:P3[a],children:t.status[a]}),updated:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:$0(i,n)})}}}),m=new Map(d.map(({type:e,entry:t})=>[t.id,e.key]));return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:8,children:[(0,S.jsx)(oQ,{title:i.data?t.home.greeting[j3()](i.data.name):t.app.home,description:t.home.description(e)}),s&&(0,S.jsx)(z0,{error:s.error,onRetry:()=>void s.refetch()}),!s&&c&&(0,S.jsx)(R0,{shape:`summary`}),!s&&!c&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(qY,{columns:3,gap:4,children:[(0,S.jsx)(UX,{label:t.home.published,value:u(e=>e===`published`||e===`unpublishedChanges`),detail:t.home.publishedDetail}),(0,S.jsx)(UX,{label:t.home.drafts,value:u(e=>e===`draft`),detail:t.home.draftsDetail}),(0,S.jsx)(UX,{label:t.home.changed,value:u(e=>e===`unpublishedChanges`),detail:t.home.changedDetail})]}),(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(ZY,{level:2,children:t.home.addTitle}),(0,S.jsx)($Y,{gap:2,wrap:!0,children:a.data.filter(e=>e.kind!==`single`).map(e=>(0,S.jsx)(q,{variant:`secondary`,icon:Pb,onPress:()=>r($.newEntry(e.key)),children:Z(e.label,n)},e.id))})]}),i.data&&i.data.role!==`author`&&(0,S.jsx)(N3,{userId:i.data.id}),(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(ZY,{level:2,children:t.home.recentTitle}),p.length===0?(0,S.jsx)(iQ,{icon:Oy,title:t.home.recentEmpty,description:t.home.recentEmptyDescription}):(0,S.jsx)(rZ,{label:t.home.recentTitle,columns:f,rows:p,onRowAction:e=>r($.entry(m.get(e)??``,e))})]})]})]})})}var R3=e=>e instanceof Error?e.message:String(e),z3=e=>e.toFixed(1).replace(/\.0$/,``);function B3(){let e=Q(),t=$o(),n=es().data??null,r=ns(),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(null),c=t.data??[],l=i.trim().toLowerCase(),u=l===``?c:c.filter(e=>e.name.toLowerCase().includes(l)),d=w1(c.find(e=>e.name===o)??null),f=t=>t.uploadedAt===void 0?e.media.fromSite:t.width!==void 0&&t.height!==void 0?e.media.dimensions(t.width,t.height):void 0,p=async t=>{let i=await i1(t,n?.maxBytes??0).catch(()=>null);i?r.mutate(i,{onSuccess:t=>X({title:e.media.uploaded(t.name),description:e.media.uploadedDescription,tone:`success`}),onError:t=>X({title:e.media.notUploaded,description:R3(t),tone:`danger`})}):X({title:e.media.notUploaded,description:e.media.notRead,tone:`danger`})},m=t=>n&&(0,S.jsx)(UY,{accept:`image`,icon:bx,variant:t,isPending:r.isPending,onSelect:e=>void p(e),children:e.media.upload});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.media.title,actions:m(`primary`),...t.isSuccess&&{description:[e.media.description(c.length),...n?[e.media.uploadHint(z3(n.maxBytes/1e6))]:[]].join(` · `)}}),t.isPending&&(0,S.jsx)(R0,{shape:`table`}),t.isError&&(0,S.jsx)(z0,{error:t.error,onRetry:()=>void t.refetch()}),t.isSuccess&&c.length===0&&(0,S.jsx)(iQ,{icon:Ey,title:e.media.emptyTitle,description:n?e.media.emptyDescription:e.media.emptyNoUploads,action:m(`secondary`)}),t.isSuccess&&c.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q_,{maxWidth:`xs`,children:(0,S.jsx)(_X,{label:e.media.search,placeholder:e.media.searchPlaceholder,clearLabel:e.media.clearSearch,value:i,onChange:a})}),(0,S.jsx)(ZQ,{label:e.media.grid,items:u.map(e=>{let t=f(e);return{id:e.name,name:e.name,url:a1(e),...t!==void 0&&{note:t}}}),onAction:s,emptyText:e.media.noMatches})]})]}),o!==null&&d&&(0,S.jsx)(V3,{image:d,onClose:()=>s(null)},o)]})}function V3({image:e,onClose:t}){let n=Q(),r=v1(),i=Fo(),a=ts(),{close:o,dialog:s}=C1(t),[c,l]=(0,x.useState)(!1),u=e,d=u.uploadedAt!==void 0&&i.data!==null&&i.data!==void 0&&i.data.role!==`author`,f=u.size===void 0?void 0:u.size>=1e6?n.media.megabytes(z3(u.size/1e6)):n.media.kilobytes(z3(u.size/1e3)),p=(e,t,n)=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e}),(0,S.jsx)(Y,{children:t}),n!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n})]});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(LY,{...s,placement:`side`,title:u.name,closeLabel:n.app.dismiss,footer:(0,S.jsxs)($Y,{gap:2,children:[d&&(0,S.jsx)(q,{variant:`danger`,icon:gx,onPress:()=>l(!0),children:n.media.remove}),(0,S.jsx)(q,{variant:`secondary`,onPress:o,children:n.media.close})]}),children:(0,S.jsxs)(J,{gap:5,children:[(0,S.jsx)(CZ,{src:u.url,size:`full`}),p(n.media.detailName,u.name,n.media.detailNameHelp),u.width!==void 0&&u.height!==void 0&&p(n.media.detailSize,n.media.dimensions(u.width,u.height)),f!==void 0&&p(n.media.detailFile,f),u.uploadedAt===void 0?p(n.media.fromSite,n.media.fromSiteHelp):p(n.media.detailUploaded,$0(u.uploadedAt,r))]})}),(0,S.jsx)(tQ,{isOpen:c,onOpenChange:l,title:n.media.removeTitle(u.name),confirmLabel:n.media.remove,cancelLabel:n.editor.cancel,tone:`danger`,isPending:a.isPending,onConfirm:()=>a.mutate(u.name,{onSuccess:()=>{X({title:n.media.removed(u.name),tone:`success`}),l(!1),o()},onError:e=>{X({title:n.media.notRemoved,description:R3(e),tone:`danger`}),l(!1)}}),children:n.media.removeDescription})]})}function H3(){let e=Q(),{pluginName:t=``,screenId:n=``}=ta(),{screens:r}=M0(),i=r.find(e=>e.plugin===t&&e.id===n);return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:i?(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:i.label,...i.description!==void 0&&{description:i.description}}),(0,S.jsx)(i3,{children:(0,S.jsx)(i.Component,{})},`${i.plugin}/${i.id}`)]}):(0,S.jsx)(iQ,{icon:oy,title:e.plugins.screenMissingTitle,description:e.plugins.screenMissingDescription})})}var U3={waiting:`warning`,done:`success`,failed:`danger`},W3=9e4,G3=e=>e instanceof Error?e.message:String(e);function K3({plugin:e,onClose:t}){let{close:n,dialog:r}=C1(t),i=Q(),a=v1(),o=Z(e.label,a),s=Mc(e.name,!0),c=Nc(e.name),l=e=>c.mutate(e.id,{onSuccess:e=>e.status===`done`?X({title:i.plugins.taskRetried,tone:`success`}):X({title:i.plugins.taskRetriedWaiting,...e.lastError!==void 0&&{description:e.lastError},tone:`danger`}),onError:e=>X({title:i.plugins.taskNotRetried,description:G3(e),tone:`danger`})}),u=e=>Date.parse(e)-Date.now()<W3?i.plugins.taskNextSoon:i.plugins.taskNext($0(e,a)),d=[{id:`what`,label:i.plugins.taskWhat},{id:`state`,label:i.plugins.taskState},{id:`when`,label:i.plugins.taskWhen},{id:`actions`,label:i.plugins.taskActions,align:`end`}],f=(s.data??[]).map(e=>{let t=e.label??e.kind;return{id:e.id,cells:{what:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:t}),e.status!==`done`&&e.lastError!==void 0&&(0,S.jsx)(Y,{size:`sm`,children:e.lastError})]}),state:(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(uZ,{tone:U3[e.status],children:i.plugins.taskStates[e.status]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.status===`waiting`&&e.nextAt!==void 0?`${i.plugins.taskTries(e.attempts)}. ${u(e.nextAt)}`:i.plugins.taskTries(e.attempts)})]}),when:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:$0(e.createdAt,a)}),actions:e.canRetry?(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Hb,isPending:c.isPending&&c.variables===e.id,onPress:()=>l(e),children:i.plugins.taskRetry(t)}):null}}});return(0,S.jsx)(LY,{...r,title:i.plugins.activityTitle(o),closeLabel:i.app.dismiss,size:`lg`,footer:(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.plugins.activityClose}),children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{tone:`secondary`,children:i.plugins.activityHelp}),s.isPending&&(0,S.jsx)(R0,{shape:`table`}),s.isError&&(0,S.jsx)(z0,{error:s.error,onRetry:()=>void s.refetch()}),s.isSuccess&&f.length===0&&(0,S.jsx)(iQ,{icon:Bb,title:i.plugins.activityEmptyTitle,description:i.plugins.activityEmptyDescription}),s.isSuccess&&f.length>0&&(0,S.jsx)(rZ,{label:i.plugins.activityTitle(o),columns:d,rows:f})]})})}var q3=e=>e instanceof Error?e.message:String(e);function J3({plugin:e,secret:t}){let n=Q(),r=v1(),i=Z(t.label,r),a=jc(e),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(null),f=e=>{d(null),a.mutate({key:t.key,value:e},{onSuccess:()=>{s(``),l(!1),X({title:e===null?n.plugins.secretWasRemoved(i):n.plugins.secretWasSaved(i),tone:`success`})},onError:e=>{let r=e instanceof No?e.issues.find(e=>e.path.join(`.`)===t.key):void 0;d(r?.message??q3(e)),X({title:n.plugins.secretNotSaved(i),description:q3(e),tone:`danger`})}})};return t.isSet&&!c?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:i}),t.help!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:Z(t.help,r)}),(0,S.jsx)(Y,{tone:`secondary`,children:n.plugins.secretSaved}),(0,S.jsxs)($Y,{gap:3,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>l(!0),children:n.plugins.secretReplace(i)}),(0,S.jsx)(q,{variant:`ghost`,size:`sm`,isPending:a.isPending,onPress:()=>f(null),children:n.plugins.secretRemove(i)})]})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(mZ,{label:i,type:`password`,autoComplete:`off`,value:o,onChange:s,...t.help!==void 0&&{description:Z(t.help,r)},...u!==null&&{errorMessage:u}}),(0,S.jsxs)($Y,{gap:3,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:a.isPending,isDisabled:o.trim()===``,onPress:()=>f(o),children:n.plugins.secretSave(i)}),t.isSet&&(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>l(!1),children:n.plugins.secretKeep})]})]})}function Y3({plugin:e,secrets:t}){let n=Q();return(0,S.jsx)(VY,{legend:n.plugins.secretsTitle,description:n.plugins.secretsHelp,children:(0,S.jsx)(J,{gap:4,children:t.map(t=>(0,S.jsx)(J3,{plugin:e,secret:t},t.key))})})}var X3=new Map;function Z3({plugin:e,onClose:t}){let{close:n,dialog:r}=C1(t),i=Q(),a=v1(),o=Z(e.label,a),s=kc(e.name),c=Ac(e.name),[l,u]=(0,x.useState)({}),[d,f]=(0,x.useState)(X3),[p,m]=(0,x.useState)(null),h={...s.data?.values,...l},g=()=>{f(X3),m(null),c.mutate(Object.fromEntries(Object.entries(h).filter(([,e])=>e!==void 0)),{onSuccess:()=>{X({title:i.plugins.settingsSaved(o),tone:`success`}),n()},onError:e=>{let t=e instanceof No?e.issues:[];f(new Map(t.map(e=>[e.path.join(`.`),e.message]))),t.length===0&&m(e instanceof Error?e.message:String(e))}})};return(0,S.jsxs)(LY,{...r,title:i.plugins.settingsTitle(o),closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:c.isPending,isDisabled:!s.isSuccess,onPress:g,children:i.plugins.settingsSave})]}),children:[s.isPending&&(0,S.jsx)(R0,{shape:`form`}),s.isError&&(0,S.jsx)(z0,{error:s.error,onRetry:()=>void s.refetch()}),s.isSuccess&&(0,S.jsxs)(GY,{label:i.plugins.settingsTitle(o),gap:4,onSubmit:g,children:[p!==null&&(0,S.jsx)(Y,{tone:`danger`,children:`${i.plugins.settingsNotSaved}. ${p}`}),s.data.fields.map(e=>(0,S.jsx)(D1,{field:e,value:h[e.id],onChange:t=>u(n=>({...n,[e.id]:t})),path:e.key,problems:d},e.id)),s.data.secrets.length>0&&(0,S.jsx)(Y3,{plugin:e.name,secrets:s.data.secrets})]})]})}var Q3={on:`success`,off:`neutral`,failed:`danger`,unsupported:`warning`,invalid:`danger`},$3=new Set([`on`,`off`,`failed`]),e6=e=>e instanceof Error?e.message:String(e);function t6(){let e=Q(),t=v1(),n=Ec(),r=Oc(),i=B0(),a=M0(),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),u=(n,i)=>{let a=Z(n.label,t);r.mutate({name:n.name,enabled:i},{onSuccess:t=>{if(!i)return X({title:e.plugins.deactivated(a),description:e.plugins.deactivatedDescription});if(t.status!==`on`)return X({title:e.plugins.notActivated(a),...t.problem!==void 0&&{description:t.problem},tone:`danger`});X({title:e.plugins.activated(a),description:e.plugins.activatedDescription,tone:`success`})},onError:t=>X({title:e.plugins.notSwitched,description:e6(t),tone:`danger`})})},d=n=>n.problem??(n.lastFault?e.plugins.failedAt(n.faults,n.lastFault.where,$0(n.lastFault.at,t),n.lastFault.message):null),f=(n.data??[]).map(n=>{let o=d(n),c=Z(n.label,t),f=a.screens.filter(e=>e.plugin===n.name),p=[...f.map(t=>e.plugins.addsScreen(t.label)),...a.panels.filter(e=>e.plugin===n.name).map(t=>e.plugins.addsPanel(t.title)),...n.adds.fieldTypes.length>0?[e.plugins.addsFieldTypes(n.adds.fieldTypes.length)]:[],...n.adds.checks>0?[e.plugins.addsChecks(n.adds.checks)]:[],...n.adds.pageHead?[e.plugins.addsPageHead]:[],...n.adds.tasks.length>0?[e.plugins.addsTasks]:[]],m=a.problems.get(n.name),h=n.permissions.length===0?[e.plugins.mayNothing]:n.permissions.map(t=>e.plugins.permissions[t]),g=n.status===`on`,_=f.length>0||n.adds.tasks.length>0||n.hasSettings;return(0,S.jsx)(cY,{title:c,description:n.description?Z(n.description,t):n.name,actions:(0,S.jsxs)(S.Fragment,{children:[g&&n.faults>0&&(0,S.jsx)(uZ,{tone:`warning`,children:e.plugins.hasFailed}),(0,S.jsx)(uZ,{tone:Q3[n.status],children:e.plugins.states[n.status]}),$3.has(n.status)&&(0,S.jsx)(JX,{label:e.plugins.active(c),isLabelHidden:!0,isSelected:g,isDisabled:r.isPending,onChange:e=>u(n,e)})]}),..._&&{footer:(0,S.jsxs)(S.Fragment,{children:[n.hasSettings&&(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Qb,onPress:()=>s(n),children:e.plugins.settings}),n.adds.tasks.length>0&&(0,S.jsx)(q,{variant:`ghost`,size:`sm`,icon:Bb,onPress:()=>l(n),children:e.plugins.activity}),f.map(t=>(0,S.jsx)(q,{variant:`ghost`,size:`sm`,icon:mv,onPress:()=>i($.pluginScreen(t.plugin,t.id)),children:e.plugins.open(t.label)},t.id))]})},children:(0,S.jsxs)(J,{gap:2,children:[o!==null&&(0,S.jsx)(Y,{size:`sm`,children:o}),m!==void 0&&(0,S.jsx)(Y,{size:`sm`,children:e.plugins.editorFailed(m)}),g&&p.length>0&&(0,S.jsx)(Y,{size:`sm`,children:e.plugins.adds(p)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:[...n.version===void 0?[]:[e.plugins.version(n.version)],e.plugins.may(h)].join(` · `)})]})},n.name)});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.plugins.title,description:e.plugins.description}),n.isPending&&(0,S.jsx)(R0,{shape:`summary`}),n.isError&&(0,S.jsx)(z0,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&f.length===0&&(0,S.jsx)(iQ,{icon:Ib,title:e.plugins.emptyTitle,description:e.plugins.emptyDescription}),n.isSuccess&&f.length>0&&(0,S.jsx)(qY,{columns:2,gap:4,children:f})]}),o&&(0,S.jsx)(Z3,{plugin:o,onClose:()=>s(null)},o.name),c&&(0,S.jsx)(K3,{plugin:c,onClose:()=>l(null)},c.name)]})}var n6={},r6=e=>e instanceof Error?e.message:String(e);function i6(){let e=Q(),t=Fo(),n=xc(),r=wc(),i=Tc(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(null),l=w1(s),u=Uc.map(t=>({id:t,label:e.people.roles[t]})),d=t.data?.id,f=[{id:`name`,label:e.people.columnName},{id:`role`,label:e.people.columnRole},{id:`actions`,label:e.people.columnActions,align:`end`}],p=(n.data??[]).map(t=>({id:t.id,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsxs)($Y,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:t.name}),t.id===d&&(0,S.jsx)(uZ,{children:e.people.you}),t.hasSignedIn===!1&&(0,S.jsx)(uZ,{tone:`warning`,children:e.people.invitedTag})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.hasSignedIn===!1?`${t.email} · ${e.people.invitedHelp}`:t.email})]}),role:(0,S.jsx)(OX,{label:e.people.roleOf(t.name),isLabelHidden:!0,options:u,value:t.role,isDisabled:t.id===d||r.isPending,onChange:n=>r.mutate({id:t.id,role:n},{onSuccess:t=>X({title:e.people.roleChanged(t.name,e.people.roles[t.role]),tone:`success`}),onError:t=>X({title:e.people.roleNotChanged,description:r6(t),tone:`danger`})})}),actions:(0,S.jsx)(AY,{label:e.people.remove(t.name),icon:gx,isDisabled:t.id===d,onPress:()=>c(t)})}}));return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.people.title,description:e.people.description,actions:(0,S.jsx)(q,{icon:Sx,onPress:()=>o(!0),children:e.people.invite})}),n.isPending&&(0,S.jsx)(R0,{shape:`table`}),n.isError&&(0,S.jsx)(z0,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&(0,S.jsx)(rZ,{label:e.people.title,columns:f,rows:p}),(0,S.jsx)(J,{gap:1,children:Uc.map(t=>(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.people.roleMeans[t]},t))})]}),a&&(0,S.jsx)(a6,{onClose:()=>o(!1)}),(0,S.jsx)(tQ,{isOpen:s!==null,onOpenChange:e=>!e&&c(null),title:e.people.removeTitle(l?.name??``),confirmLabel:e.people.removeConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:()=>{s&&i.mutate(s.id,{onSuccess:()=>X({title:e.people.removed(s.name),tone:`success`}),onError:t=>X({title:e.people.notRemoved,description:r6(t),tone:`danger`}),onSettled:()=>c(null)})},children:e.people.removeDescription})]})}function a6({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=Cc(),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(`editor`),[d,f]=(0,x.useState)(n6),p=()=>{f(n6),i.mutate({name:a,email:s,role:l},{onSuccess:e=>{X({title:r.people.invited(e.name),description:r.people.invitedDescription(e.email),tone:`success`}),t()},onError:e=>{let t=e instanceof No?e.issues:[];f(t.length>0?Object.fromEntries(t.map(e=>[e.path[0]??`email`,e.message])):{email:r6(e)})}})};return(0,S.jsx)(LY,{...n,title:r.people.inviteTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:i.isPending,onPress:p,children:r.people.inviteSend})]}),children:(0,S.jsxs)(GY,{label:r.people.inviteTitle,gap:4,onSubmit:p,children:[(0,S.jsx)(mZ,{label:r.people.name,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`off`,...d.name!==void 0&&{errorMessage:d.name}}),(0,S.jsx)(mZ,{label:r.people.email,type:`email`,value:s,onChange:c,isRequired:!0,autoComplete:`off`,description:r.people.emailHelp,...d.email!==void 0&&{errorMessage:d.email}}),(0,S.jsx)(OX,{label:r.people.role,options:Uc.map(e=>({id:e,label:r.people.roles[e]})),value:l,onChange:e=>u(e),description:r.people.roleMeans[l],...d.role!==void 0&&{errorMessage:d.role}})]})})}var o6={},s6=e=>e instanceof Error?e.message:String(e);function c6(){let e=Gs();return e.isPending?(0,S.jsx)(R0,{shape:`form`}):e.isError?(0,S.jsx)(z0,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsx)(l6,{settings:e.data})})}function l6({settings:e}){let t=Q(),n=t.settings.email,r=Fo(),i=Ks(),a=qs(),[o,s]=(0,x.useState)(e.provider),[c,l]=(0,x.useState)(e.from),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(!1),[g,_]=(0,x.useState)(o6),v=!e.hasKey||f,y=c.trim()!==e.from||o!==e.provider||v&&u.trim()!==``,b=r.data?.email??``,C=()=>{_(o6),i.mutate({provider:o,from:c,...v&&u.trim()!==``&&{apiKey:u},expectedRevision:e.revision},{onSuccess:t=>{d(``),p(!1),l(t.from),X({title:n.saved,...t.sending&&!e.sending&&{description:n.savedDescription},tone:`success`})},onError:e=>{let t=e instanceof No?e.issues:[];_(Object.fromEntries(t.map(e=>[String(e.path[0]??`from`),e.message]))),X({title:n.notSaved,description:s6(e),tone:`danger`})}})},w=()=>a.mutate(void 0,{onSuccess:()=>X({title:n.testSent,description:n.testSentDescription(b),tone:`success`}),onError:e=>X({title:n.testNotSent,description:s6(e),tone:`danger`})}),T=()=>i.mutate({from:e.from,apiKey:null,expectedRevision:e.revision},{onSuccess:()=>{d(``),p(!1),X({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>X({title:n.notSaved,description:s6(e),tone:`danger`}),onSettled:()=>h(!1)}),E=(0,S.jsx)(q,{variant:`secondary`,icon:Xb,isPending:a.isPending,isDisabled:!e.canTest||y,onPress:w,children:n.test}),D=e.fixedBy===void 0?e.sending?(0,S.jsx)(uZ,{tone:`success`,children:n.states.sending}):(0,S.jsx)(uZ,{tone:`warning`,children:n.states.off}):(0,S.jsx)(uZ,{tone:`info`,children:n.states[e.fixedBy]});return e.fixedBy===void 0?(0,S.jsxs)(cY,{title:n.title,description:n.description,actions:D,children:[(0,S.jsxs)(GY,{onSubmit:C,children:[!e.sending&&(0,S.jsx)(Y,{tone:`secondary`,children:n.offHelp}),(0,S.jsx)(OX,{label:n.provider,options:D_.map(e=>({id:e,label:n.providers[e]})),value:o,onChange:e=>s(e),description:n.providerHelp,...g.provider!==void 0&&{errorMessage:g.provider}}),(0,S.jsx)(tX,{href:n.providerLinks[o],opensInNewTab:!0,children:n.providerLink(n.providers[o])}),v?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(mZ,{label:n.key,type:`password`,autoComplete:`off`,value:u,onChange:d,description:n.keyHelp,...g.apiKey!==void 0&&{errorMessage:g.apiKey}}),e.hasKey&&(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{d(``),p(!1)},children:n.keyKeep})})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:n.key}),(0,S.jsx)(Y,{tone:`secondary`,children:n.keySaved}),(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>p(!0),children:n.keyReplace})})]}),(0,S.jsx)(mZ,{label:n.from,value:c,onChange:l,autoComplete:`off`,description:n.fromHelp,...g.from!==void 0&&{errorMessage:g.from}}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)($Y,{gap:3,children:[(0,S.jsx)(q,{type:`submit`,isPending:i.isPending&&!m,isDisabled:!y,children:n.save}),E,e.hasKey&&(0,S.jsx)(q,{variant:`ghost`,onPress:()=>h(!0),children:n.stop})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.canTest&&y?n.testAfterSave:n.testHelp(b)})]})]}),(0,S.jsx)(tQ,{isOpen:m,onOpenChange:e=>!e&&h(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:T,children:n.stopDescription})]}):(0,S.jsx)(cY,{title:n.title,description:n.description,actions:D,children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{children:n.fixed[e.fixedBy]}),e.canTest&&(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)($Y,{gap:3,children:E}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.testHelp(b)})]})]})})}var u6={},d6=e=>e instanceof Error?e.message:String(e),f6=e=>Object.fromEntries((e instanceof No?e.issues:[]).map(e=>[String(e.path[0]??`siteKey`),e.message]));function p6(){let e=Xs();return e.isPending?(0,S.jsx)(R0,{shape:`form`}):e.isError?(0,S.jsx)(z0,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(m6,{settings:e.data}),(0,S.jsx)(h6,{settings:e.data})]})})}function m6({settings:e}){let t=Q(),n=t.settings.forms,r=Zs(),i=Qs(),[a,o]=(0,x.useState)(e.siteKey),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(u6),h=!e.hasSecret||l,g=a.trim()!==e.siteKey||h&&s.trim()!==``,_=e=>p[e]===void 0?{}:{errorMessage:p[e]},v=()=>{m(u6),r.mutate({siteKey:a,...h&&s.trim()!==``&&{secretKey:s},postsPerAddress:e.postsPerAddress,expectedRevision:e.revision},{onSuccess:e=>{c(``),u(!1),o(e.siteKey),X({title:n.saved,...e.checking&&{description:n.savedDescription},tone:`success`})},onError:e=>{m(f6(e)),X({title:n.notSaved,description:d6(e),tone:`danger`})}})},y=()=>i.mutate(void 0,{onSuccess:()=>X({title:n.testWorked,description:n.testWorkedDescription,tone:`success`}),onError:e=>X({title:n.testFailed,description:d6(e),tone:`danger`})}),b=()=>r.mutate({siteKey:``,secretKey:null,postsPerAddress:e.postsPerAddress,expectedRevision:e.revision},{onSuccess:()=>{o(``),c(``),u(!1),X({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>X({title:n.notSaved,description:d6(e),tone:`danger`}),onSettled:()=>f(!1)});return(0,S.jsxs)(cY,{title:n.title,description:n.description,actions:(0,S.jsx)(uZ,{tone:e.checking?`success`:`neutral`,children:e.checking?n.states.checking:n.states.off}),children:[(0,S.jsxs)(GY,{onSubmit:v,children:[(0,S.jsx)(Y,{tone:`secondary`,children:e.checking?n.help.checking:n.help.off}),(0,S.jsx)(mZ,{label:n.siteKey,autoComplete:`off`,value:a,onChange:o,description:n.siteKeyHelp,..._(`siteKey`)}),h?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(mZ,{label:n.secret,type:`password`,autoComplete:`off`,value:s,onChange:c,description:n.secretHelp,..._(`secretKey`)}),e.hasSecret&&(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{c(``),u(!1)},children:n.secretKeep})})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:n.secret}),(0,S.jsx)(Y,{tone:`secondary`,children:n.secretSaved}),(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>u(!0),children:n.secretReplace})})]}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)($Y,{gap:3,children:[(0,S.jsx)(q,{type:`submit`,isPending:r.isPending&&!d,isDisabled:!g,children:n.save}),(0,S.jsx)(q,{variant:`secondary`,icon:ix,isPending:i.isPending,isDisabled:!e.checking||g,onPress:y,children:n.test}),e.hasSecret&&(0,S.jsx)(q,{variant:`ghost`,onPress:()=>f(!0),children:n.stop})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.checking&&g?n.testAfterSave:n.testHelp})]})]}),(0,S.jsx)(tQ,{isOpen:d,onOpenChange:e=>!e&&f(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:r.isPending,onConfirm:b,children:n.stopDescription})]})}function h6({settings:e}){let t=Q().settings.forms,n=Zs(),[r,i]=(0,x.useState)(e.postsPerAddress),[a,o]=(0,x.useState)(void 0);return(0,S.jsx)(cY,{title:t.limitTitle,description:t.limitDescription,children:(0,S.jsxs)(GY,{onSubmit:()=>{o(void 0),n.mutate({siteKey:e.siteKey,postsPerAddress:r??0,expectedRevision:e.revision},{onSuccess:e=>{i(e.postsPerAddress),X({title:t.limitSaved,description:t.limitSavedDescription(e.postsPerAddress),tone:`success`})},onError:e=>{o(f6(e).postsPerAddress),X({title:t.limitNotSaved,description:d6(e),tone:`danger`})}})},children:[(0,S.jsx)(fX,{label:t.limit,value:r,onChange:i,isInteger:!0,minValue:1,maxValue:100,description:t.limitHelp(100),...a!==void 0&&{errorMessage:a}}),(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{type:`submit`,isPending:n.isPending,isDisabled:r===e.postsPerAddress,children:t.limitSave})})]})})}var g6=e=>e instanceof Error?e.message:String(e);function _6(){let e=Js();return e.isPending?(0,S.jsx)(R0,{shape:`form`}):e.isError?(0,S.jsx)(z0,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsx)(v6,{settings:e.data})})}function v6({settings:e}){let t=Q().settings.general,n=Ys(),[r,i]=(0,x.useState)(e.siteName),[a,o]=(0,x.useState)(null);return e.fixedBy===void 0?(0,S.jsx)(cY,{title:t.title,description:t.description,children:(0,S.jsxs)(GY,{onSubmit:()=>{o(null),n.mutate({siteName:r,expectedRevision:e.revision},{onSuccess:e=>{i(e.siteName),X({title:t.saved,description:t.savedDescription,tone:`success`})},onError:e=>{let n=e instanceof No?e.issues.find(e=>e.path[0]===`siteName`):void 0;o(n?.message??g6(e)),X({title:t.notSaved,description:g6(e),tone:`danger`})}})},children:[(0,S.jsx)(mZ,{label:t.name,value:r,onChange:i,autoComplete:`off`,placeholder:e.defaultSiteName,description:e.defaultSiteName===``?t.nameHelp:t.nameHelpWithDefault(e.defaultSiteName),...a!==null&&{errorMessage:a}}),(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{type:`submit`,isPending:n.isPending,isDisabled:r.trim()===e.siteName,children:t.save})})]})}):(0,S.jsx)(cY,{title:t.title,description:t.description,actions:(0,S.jsx)(uZ,{tone:`info`,children:t.states[e.fixedBy]}),children:(0,S.jsx)(Y,{children:t.fixed(e.defaultSiteName)})})}var y6=`new`;function b6({type:e}){let t=Q(),n=v1(),r=Qo(),i=Xo({type:e.key,limit:200}),[a,o]=(0,x.useState)(null),[s,c]=(0,x.useState)(null),l=[...i.data?.items??[]].sort((e,t)=>e.locale.localeCompare(t.locale)),u=l.find(e=>e.id===a)??l[0],d=a??u?.id??null,f=rs(d);if(i.isPending||r.isPending||d!==null&&f.isPending)return(0,S.jsx)(R0,{shape:`form`});if(i.isError)return(0,S.jsx)(z0,{error:i.error,onRetry:()=>void i.refetch()});if(r.isError)return(0,S.jsx)(z0,{error:r.error,onRetry:()=>void r.refetch()});if(d!==null&&f.isError)return(0,S.jsx)(z0,{error:f.error,onRetry:()=>void f.refetch()});let p=e.siteNamePath&&c1(e,{},e.siteNamePath)?.field;return(0,S.jsxs)(J,{gap:2,children:[p&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.settings.namesSite(Z(p.label,n))}),(0,S.jsx)(d3,{embedded:!0,type:e,entry:d===null?null:f.data??null,versions:l,onSwitch:o,onCreated:e=>{c(e.id),o(e.id)}},d===null||d===s?y6:d)]})}var x6={},S6=e=>e instanceof Error?e.message:String(e);function C6(){let e=$s();return e.isPending?(0,S.jsx)(R0,{shape:`form`}):e.isError?(0,S.jsx)(z0,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsx)(w6,{settings:e.data})})}function w6({settings:e}){let t=Q(),n=t.settings.storage,r=ec(),i=tc(),[a,o]=(0,x.useState)(e.endpoint),[s,c]=(0,x.useState)(e.bucket),[l,u]=(0,x.useState)(e.region),[d,f]=(0,x.useState)(e.accessKeyId),[p,m]=(0,x.useState)(``),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)(!1),[y,b]=(0,x.useState)(x6),C=!e.hasSecret||h,w=a.trim()!==e.endpoint||s.trim()!==e.bucket||l.trim()!==e.region||d.trim()!==e.accessKeyId||C&&p.trim()!==``,T=e=>y[e]===void 0?{}:{errorMessage:y[e]},E=()=>{b(x6),r.mutate({endpoint:a,bucket:s,region:l,accessKeyId:d,...C&&p.trim()!==``&&{secretAccessKey:p},expectedRevision:e.revision},{onSuccess:e=>{m(``),g(!1),o(e.endpoint),c(e.bucket),u(e.region),f(e.accessKeyId),X({title:n.saved,...e.hasSecret&&{description:n.savedDescription},tone:`success`})},onError:e=>{let t=e instanceof No?e.issues:[];b(Object.fromEntries(t.map(e=>[String(e.path[0]??`endpoint`),e.message]))),X({title:n.notSaved,description:S6(e),tone:`danger`})}})},D=()=>i.mutate(void 0,{onSuccess:()=>X({title:n.testWorked,description:n.testWorkedDescription,tone:`success`}),onError:e=>X({title:n.testFailed,description:S6(e),tone:`danger`})}),O=()=>r.mutate({endpoint:e.endpoint,bucket:e.bucket,region:e.region,accessKeyId:e.accessKeyId,secretAccessKey:null,expectedRevision:e.revision},{onSuccess:()=>{m(``),g(!1),X({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>X({title:n.notSaved,description:S6(e),tone:`danger`}),onSettled:()=>v(!1)}),k=e.fixedBy===void 0?(0,S.jsx)(uZ,{tone:e.keeping===`bucket`?`success`:e.keeping===`folder`?`neutral`:`warning`,children:n.states[e.keeping]}):(0,S.jsx)(uZ,{tone:`info`,children:n.states[e.fixedBy]});return e.fixedBy===void 0?(0,S.jsxs)(cY,{title:n.title,description:n.description,actions:k,children:[(0,S.jsxs)(GY,{onSubmit:E,children:[(0,S.jsx)(Y,{tone:`secondary`,children:n.keepingHelp[e.keeping]}),(0,S.jsx)(mZ,{label:n.endpoint,type:`url`,autoComplete:`off`,value:a,onChange:o,description:n.endpointHelp,...T(`endpoint`)}),(0,S.jsx)(mZ,{label:n.bucket,autoComplete:`off`,value:s,onChange:c,...T(`bucket`)}),(0,S.jsx)(mZ,{label:n.region,autoComplete:`off`,value:l,onChange:u,description:n.regionHelp,...T(`region`)}),(0,S.jsx)(mZ,{label:n.accessKeyId,autoComplete:`off`,value:d,onChange:f,description:n.accessKeyIdHelp,...T(`accessKeyId`)}),C?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(mZ,{label:n.secret,type:`password`,autoComplete:`off`,value:p,onChange:m,description:n.secretHelp,...T(`secretAccessKey`)}),e.hasSecret&&(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{m(``),g(!1)},children:n.secretKeep})})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:n.secret}),(0,S.jsx)(Y,{tone:`secondary`,children:n.secretSaved}),(0,S.jsx)($Y,{gap:3,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>g(!0),children:n.secretReplace})})]}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)($Y,{gap:3,children:[(0,S.jsx)(q,{type:`submit`,isPending:r.isPending&&!_,isDisabled:!w,children:n.save}),(0,S.jsx)(q,{variant:`secondary`,icon:Mb,isPending:i.isPending,isDisabled:!e.hasSecret||w,onPress:D,children:n.test}),e.hasSecret&&(0,S.jsx)(q,{variant:`ghost`,onPress:()=>v(!0),children:n.stop})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.hasSecret&&w?n.testAfterSave:n.moveHelp})]})]}),(0,S.jsx)(tQ,{isOpen:_,onOpenChange:e=>!e&&v(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:r.isPending,onConfirm:O,children:n.stopDescription})]}):(0,S.jsx)(cY,{title:n.title,description:n.description,actions:k,children:(0,S.jsx)(Y,{children:n.fixed[e.fixedBy]})})}var T6=`page:`;function E6(){let e=Q(),t=v1(),n=B0(),{area:r,typeKey:i}=ta(),a=Io(),o=Fo();if(a.isPending)return(0,S.jsx)(R0,{shape:`form`});if(a.isError)return(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()});let s=a.data.filter(e=>e.inSettings===!0),c=s.some(e=>e.siteNamePath!==void 0),l={general:(0,S.jsx)(_6,{}),email:(0,S.jsx)(c6,{}),storage:(0,S.jsx)(C6,{}),forms:(0,S.jsx)(p6,{})},u=[...s.map(e=>({id:`${T6}${e.key}`,label:Z(e.label,t),content:(0,S.jsx)(b6,{type:e}),href:$.settingsPage(e.key)})),...o.data?.role===`owner`?C0.filter(e=>e!==`general`||!c).map(t=>({id:t,label:e.settings.areas[t],content:l[t],href:$.settings(t)})):[]],d=i===void 0?r:`${T6}${i}`,f=u.find(e=>e.id===d)??u[0];return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.settings.title,description:e.settings.description}),f===void 0&&(0,S.jsx)(iQ,{icon:eb,title:e.settings.ownersTitle,description:e.settings.ownersDescription}),f!==void 0&&(0,S.jsx)(cZ,{label:e.settings.tabsLabel,selected:f.id,onChange:e=>{let t=u.find(t=>t.id===e);t&&n(t.href)},tabs:u.map(({id:e,label:t,content:n})=>({id:e,label:t,content:n}))})]})})}var D6=e=>e instanceof Error?e.message:String(e);function O6(){let e=Q(),t=v1(),n=B0(),r=Fo(),i=Io(),a=ls(),o=gs(),s=_s(),[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(!1),f=r.data!==null&&r.data!==void 0&&r.data.role!==`author`,p=e=>i.data?.find(t=>t.id===e.typeId),m=t=>{let n=p(t);return(n&&s1(n,t.data))??e.contentList.untitled},h=[{id:`name`,label:e.trash.columnName},{id:`type`,label:e.trash.columnType},{id:`moved`,label:e.trash.columnMoved},{id:`actions`,label:e.trash.columnActions,align:`end`}],g=(a.data?.items??[]).map(r=>{let i=p(r),a=m(r);return{id:r.id,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:a}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.trash.detail(r.slug,o1(r.locale,t))})]}),type:i?Z(i.label,t):(0,S.jsx)(Y,{tone:`muted`,children:e.trash.typeArchived}),moved:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.deletedAt===void 0?``:$0(r.deletedAt,t)}),actions:(0,S.jsxs)($Y,{gap:2,justify:`end`,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:o.isPending&&o.variables===r.id,onPress:()=>o.mutate(r.id,{onSuccess:()=>{X({title:e.trash.restored(a),description:e.trash.restoredDescription,tone:`success`}),i&&n($.entry(i.key,r.id))},onError:t=>X({title:e.trash.notRestored,description:D6(t),tone:`danger`})}),children:e.trash.restore(a)}),f&&(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{l({id:r.id,name:a}),d(!0)},children:e.trash.delete(a)})]})}}});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(oQ,{title:e.trash.title,description:e.trash.description}),(a.isPending||i.isPending)&&(0,S.jsx)(R0,{shape:`table`}),a.isError&&(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()}),i.isError&&(0,S.jsx)(z0,{error:i.error,onRetry:()=>void i.refetch()}),a.isSuccess&&i.isSuccess&&g.length===0&&(0,S.jsx)(iQ,{icon:gx,title:e.trash.emptyTitle,description:e.trash.emptyDescription}),a.isSuccess&&i.isSuccess&&g.length>0&&(0,S.jsx)(rZ,{label:e.trash.title,columns:h,rows:g})]}),c!==null&&(0,S.jsx)(tQ,{isOpen:u,onOpenChange:d,title:e.trash.deleteTitle(c.name),confirmLabel:e.trash.deleteConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:s.isPending,onConfirm:()=>s.mutate(c.id,{onSuccess:()=>{X({title:e.trash.deleted(c.name),tone:`success`}),d(!1)},onError:t=>{X({title:e.trash.notDeleted,description:D6(t),tone:`danger`}),d(!1)}}),children:e.trash.deleteDescription})]})}var k6=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,A6=`link`;function j6({siteName:e}){let t=Q(),n=B0(),r=Fo(),i=Rc(),a=zc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(),[u]=wo(),d=u.has(A6)||u.has(`error`);if(r.data)return(0,S.jsx)(Qa,{to:$.home,replace:!0});let f=(0,S.jsxs)($Y,{gap:2,align:`center`,children:[(0,S.jsx)(aX,{label:t.app.product}),(0,S.jsx)(Y,{weight:`semibold`,children:e})]});if(i.isSuccess)return(0,S.jsx)($Z,{brand:f,title:t.signIn.linkSentTitle,description:t.signIn.linkSent(i.variables),children:(0,S.jsx)(q,{variant:`secondary`,fullWidth:!0,onPress:()=>i.reset(),children:t.signIn.useAnotherEmail})});let p=()=>{let e=o.trim();if(e===``)return l(t.signIn.emailMissing);if(!k6.test(e))return l(t.signIn.emailInvalid);l(void 0),i.mutate(e)},m=i.error?.message??(a.isError?t.signIn.passkeyFailed:d?t.signIn.linkFailed:void 0);return(0,S.jsx)($Z,{brand:f,title:t.signIn.title,description:t.signIn.description,children:(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(GY,{onSubmit:p,label:t.signIn.title,children:[(0,S.jsx)(mZ,{label:t.signIn.email,type:`email`,name:`email`,autoComplete:`email webauthn`,value:o,onChange:e=>{s(e),l(void 0)},...c!==void 0&&{errorMessage:c}}),(0,S.jsx)(q,{type:`submit`,fullWidth:!0,isPending:i.isPending,children:t.signIn.sendLink})]}),(0,S.jsx)(q,{variant:`secondary`,icon:My,fullWidth:!0,isPending:a.isPending,onPress:()=>a.mutate(void 0,{onSuccess:e=>{n($.home),X({title:t.signIn.signedIn(e.name),tone:`success`})}}),children:t.signIn.usePasskey}),m!==void 0&&(0,S.jsx)(Y,{tone:`danger`,size:`sm`,children:m})]})})}var M6={listings:Sv,properties:Sv,agents:wx,team:wx,people:wx,authors:wx,neighborhoods:ob,locations:ob,reviews:ub,testimonials:ub,posts:wb,blog:wb,pages:Sb,products:vb,events:Ev,faqs:Wv,categories:fx},N6=e=>M6[e.toLowerCase()]??cy,P6=e=>e instanceof Error?e.message:String(e);function F6({onClose:e}){let{close:t,dialog:n}=C1(e),r=Q(),i=v1(),a=Pc(),o=Ic(),s=Lc(),[c,l]=(0,x.useState)(r.app.passkeyDefaultName),[u,d]=(0,x.useState)(null),f=()=>{d(null),o.mutate(c.trim()===``?r.app.passkeyDefaultName:c.trim(),{onSuccess:()=>X({title:r.app.passkeyAdded,description:r.app.passkeyAddedDescription,tone:`success`}),onError:e=>d(P6(e))})},p=[{id:`name`,label:r.app.passkeyColumnName},{id:`added`,label:r.app.passkeyColumnAdded},{id:`actions`,label:r.app.passkeyColumnActions,align:`end`}],m=(a.data??[]).map(e=>{let t=e.name===``?r.app.passkeyUnnamed:e.name;return{id:e.id,cells:{name:(0,S.jsx)(Y,{weight:`semibold`,children:t}),added:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.createdAt===void 0?r.app.passkeyAddedUnknown:$0(e.createdAt,i)}),actions:(0,S.jsx)(AY,{label:r.app.passkeyRemove(t),icon:gx,isDisabled:s.isPending,onPress:()=>s.mutate(e.id,{onSuccess:()=>X({title:r.app.passkeyRemoved(t),description:r.app.passkeyRemovedDescription,tone:`success`}),onError:e=>X({title:r.app.passkeyNotRemoved,description:P6(e),tone:`danger`})})})}}});return(0,S.jsx)(LY,{...n,title:r.app.passkeys,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.app.passkeyDone}),(0,S.jsx)(q,{isPending:o.isPending,onPress:f,children:r.app.passkeyAdd})]}),children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.app.passkeyDescription}),a.isPending&&(0,S.jsx)(R0,{shape:`table`}),a.isError&&(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&m.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:r.app.passkeyNone}),a.isSuccess&&m.length>0&&(0,S.jsx)(rZ,{label:r.app.passkeys,columns:p,rows:m}),(0,S.jsx)(GY,{label:r.app.passkeyTitle,onSubmit:f,children:(0,S.jsx)(mZ,{label:r.app.passkeyName,description:r.app.passkeyNameHelp,value:c,onChange:l,autoFocus:!0,...u!==null&&{errorMessage:`${r.app.passkeyNotAdded}. ${u}`}})})]})})}function I6({siteName:e}){let t=Q(),n=v1(),r=Yi(),i=B0(),a=Fo(),o=Io(),s=Bc(),[c,l]=(0,x.useState)(!1),u=(0,x.useRef)(!1),d=(0,x.useRef)(!1),f=a.data!==null&&a.data!==void 0;(0,x.useEffect)(()=>{u.current&&a.data===null&&!d.current&&X({title:t.app.sessionEnded,description:t.app.sessionEndedDescription}),u.current=f},[f,a.data,t]);let p=N0(f),{screens:m}=M0();if(a.isPending||f&&!p)return(0,S.jsx)(R0,{shape:`spinner`});if(a.isError)return(0,S.jsx)(z0,{error:a.error,onRetry:()=>void a.refetch()});if(a.data===null)return(0,S.jsx)(Qa,{to:$.signIn,replace:!0});let h=(o.data??[]).filter(e=>e.inSettings===!0),g=(o.data??[]).filter(e=>e.inSettings!==!0).map(e=>{let t=$.contentList(e.key);return{id:e.id,label:Z(e.label,n),href:t,icon:N6(e.key),isCurrent:r.pathname===t||r.pathname.startsWith(`${t}/`)}}),_=[...m.map(e=>{let t=$.pluginScreen(e.plugin,e.id);return{id:`plugin:${e.plugin}:${e.id}`,label:e.label,href:t,icon:bv,isCurrent:r.pathname===t}}),...a.data.role===`owner`?[{id:`plugins`,label:t.app.plugins,href:$.plugins,icon:Ib,isCurrent:r.pathname===$.plugins}]:[]];return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(JZ,{logo:(0,S.jsx)(aX,{label:t.app.product}),siteName:e,navLabel:t.app.mainNavigation,skipLabel:t.app.skipToContent,nav:[{id:`top`,items:[{id:`home`,label:t.app.home,href:$.home,icon:by,isCurrent:r.pathname===$.home}]},{id:`content`,label:t.app.contentGroup,items:g},{id:`site`,label:t.app.siteGroup,items:[{id:`media`,label:t.app.media,href:$.media,icon:Ey,isCurrent:r.pathname===$.media},...a.data.role===`owner`||a.data.role===`editor`?[{id:`forms`,label:t.app.forms,href:$.forms,icon:Oy,isCurrent:r.pathname===$.forms||r.pathname.startsWith(`${$.forms}/`)},{id:`contacts`,label:t.app.contacts,href:$.contacts,icon:Jv,isCurrent:r.pathname===$.contacts||r.pathname.startsWith(`${$.contacts}/`)},{id:`deals`,label:t.app.deals,href:$.deals,icon:gy,isCurrent:r.pathname===$.deals}]:[],...a.data.role===`owner`?[{id:`types`,label:t.app.types,href:$.types,icon:nx,isCurrent:r.pathname===$.types||r.pathname.startsWith(`${$.types}/`)},{id:`people`,label:t.app.people,href:$.people,icon:Ox,isCurrent:r.pathname===$.people}]:[],...a.data.role===`owner`||h.length>0?[{id:`settings`,label:t.app.settings,href:`/settings`,icon:ex,isCurrent:r.pathname.startsWith(`/settings`)}]:[],{id:`trash`,label:t.app.trash,href:$.trash,icon:gx,isCurrent:r.pathname===$.trash}]},..._.length>0?[{id:`plugins`,label:t.app.pluginsGroup,items:_}]:[]],account:{name:a.data.name,detail:a.data.email,label:t.app.accountMenu,actions:[{id:`passkey`,label:t.app.passkeys,icon:My},{id:`sign-out`,label:t.app.signOut,icon:nb}],onAction:e=>{if(e===`passkey`)return l(!0);d.current=!0,s.mutate(void 0,{onSuccess:()=>{NZ(),i($.signIn),X({title:t.app.signedOut})},onError:e=>{d.current=!1,X({title:t.app.notSignedOut,description:e instanceof Error?e.message:String(e),tone:`danger`})}})}},children:(0,S.jsx)($a,{})}),c&&(0,S.jsx)(F6,{onClose:()=>l(!1)})]})}function L6(){let e=B0(),t=Q();return(0,S.jsxs)(e1,{navigate:t=>e(t),children:[(0,S.jsx)($a,{}),(0,S.jsx)(PZ,{label:t.app.notifications,closeLabel:t.app.dismiss})]})}function R6(e){return[{element:(0,S.jsx)(L6,{}),children:[{path:`sign-in`,element:(0,S.jsx)(j6,{siteName:e})},{element:(0,S.jsx)(I6,{siteName:e}),children:[{index:!0,element:(0,S.jsx)(L3,{siteName:e})},{path:`people`,element:(0,S.jsx)(i6,{})},{path:`media`,element:(0,S.jsx)(B3,{})},{path:`trash`,element:(0,S.jsx)(O6,{})},{path:`forms`,element:(0,S.jsx)(O3,{})},{path:`forms/:formId`,element:(0,S.jsx)(w3,{})},{path:`contacts`,element:(0,S.jsx)(g4,{})},{path:`contacts/:contactId`,element:(0,S.jsx)(v2,{})},{path:`deals`,element:(0,S.jsx)(q2,{})},{path:`plugins`,element:(0,S.jsx)(t6,{})},{path:`plugins/:pluginName/:screenId`,element:(0,S.jsx)(H3,{})},{path:`settings`,element:(0,S.jsx)(E6,{})},{path:`settings/:area`,element:(0,S.jsx)(E6,{})},{path:`settings/page/:typeKey`,element:(0,S.jsx)(E6,{})},{path:`types`,element:(0,S.jsx)(B4,{})},{path:`types/:typeKey`,element:(0,S.jsx)(I4,{})},{path:`content/:typeKey`,element:(0,S.jsx)(K4,{})},{path:`content/:typeKey/:entryId`,element:(0,S.jsx)(f3,{})}]}]}]}function z6({client:e,siteName:t,basePath:n=`/admin`,messages:r,locale:i,fieldControls:a,pluginEditors:o,initialPath:s}){let[c]=(0,x.useState)(()=>a??S0()),[l]=(0,x.useState)(()=>new O0),[u]=(0,x.useState)(()=>o??T0(n)),[d]=(0,x.useState)(Po),[f]=(0,x.useState)(()=>{let e=R6(t);return s===void 0?_o(e,{basename:n}):Ga(e,{initialEntries:[s]})});return(0,S.jsx)(T,{client:d,children:(0,S.jsx)(Mo,{client:e,children:(0,S.jsx)(_1,{...r&&{messages:r},...i!==void 0&&{locale:i},children:(0,S.jsx)(x1,{controls:c,children:(0,S.jsx)(A0,{extensions:l,loader:u,children:(0,S.jsx)(Ja,{router:f})})})})})})}var B6=new Set([`validation_failed`,`conflict`,`not_found`,`forbidden`,`unauthenticated`]),V6=class{#e;#t;#n;constructor(e){this.#e=e.auth,this.#t=(e.baseUrl??`/api/cms`).replace(/\/+$/,``),this.#n=e.fetch??((e,t)=>globalThis.fetch(e,t))}async getSession(){return(await this.#r(`/session`)).user}requestSignInLink(e){return this.#e.requestSignInLink(e)}async signInWithPasskey(){await this.#e.signInWithPasskey();let e=await this.getSession();if(!e)throw Error(`The passkey was accepted, but no session was started. Try again.`);return e}signOut(){return this.#e.signOut()}async listContentTypes(){return(await this.#r(`/content-types`)).items}async listArchivedContentTypes(){return(await this.#r(`/content-types/archived`)).items}archiveContentType(e){return this.#i(`DELETE`,`/content-types/${encodeURIComponent(e)}`,{})}restoreContentType(e){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/restore`,{})}createContentType(e){return this.#i(`POST`,`/content-types`,e)}updateContentType(e,t){return this.#i(`PATCH`,`/content-types/${encodeURIComponent(e)}`,t)}addField(e,t,n){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/fields${H6(n)}`,t)}changeField(e,t,n,r){return this.#i(`PATCH`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}${H6(r)}`,n)}removeField(e,t,n){return this.#i(`DELETE`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}${H6(n)}`,{})}restoreField(e,t,n){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}/restore${H6(n)}`,{})}arrangeFields(e,t){return this.#i(`PUT`,`/content-types/${encodeURIComponent(e)}/fields`,t)}setSections(e,t){return this.#i(`PUT`,`/content-types/${encodeURIComponent(e)}/sections`,{sections:t})}async listFieldTypes(){return(await this.#r(`/field-types`)).items}listImages(){return this.#r(`/images`)}uploadImage(e){let t=I_(e.bytes)?.contentType??`image/jpeg`;return this.#a(`/images?${new URLSearchParams({name:e.fileName})}`,{method:`POST`,headers:{accept:`application/json`,"content-type":t},body:e.bytes})}async removeImage(e){await this.#i(`DELETE`,`/images/${encodeURIComponent(e)}`,{})}listEntries(e){let t=new URLSearchParams({type:e.type});return e.locale!==void 0&&t.set(`locale`,e.locale),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/entries?${t}`)}getEntry(e){return this.#r(`/entries/${encodeURIComponent(e)}`)}createEntry(e){return this.#i(`POST`,`/entries`,e)}updateEntry(e,t){return this.#i(`PATCH`,`/entries/${encodeURIComponent(e)}`,t)}publishEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/publish`,{expectedRevision:t})}unpublishEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/unpublish`,{})}duplicateEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/duplicate`,{})}scheduleEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/schedule`,t)}unscheduleEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/unschedule`,{})}async entryHistory(e){return(await this.#r(`/entries/${encodeURIComponent(e)}/history`)).items}revertEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/revert`,t)}trashEntry(e){return this.#i(`DELETE`,`/entries/${encodeURIComponent(e)}`,{})}restoreEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/restore`,{})}listTrash(e={}){let t=new URLSearchParams;return e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/trash?${t}`)}async deleteEntry(e){await this.#i(`DELETE`,`/trash/${encodeURIComponent(e)}`,{})}async listForms(){return(await this.#r(`/forms`)).items}createForm(e){return this.#i(`POST`,`/forms`,e)}updateForm(e,t){return this.#i(`PATCH`,`/forms/${encodeURIComponent(e)}`,t)}trashForm(e){return this.#i(`DELETE`,`/forms/${encodeURIComponent(e)}`,{})}restoreForm(e){return this.#i(`POST`,`/forms/${encodeURIComponent(e)}/restore`,{})}async listTrashedForms(){return(await this.#r(`/forms/trash`)).items}async deleteForm(e){await this.#i(`DELETE`,`/forms/trash/${encodeURIComponent(e)}`,{})}listSubmissions(e){let t=new URLSearchParams;return e.status!==void 0&&t.set(`status`,e.status),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/forms/${encodeURIComponent(e.formId)}/submissions?${t}`)}countSubmissions(e){return this.#r(`/forms/${encodeURIComponent(e)}/submission-counts`)}markSubmission(e,t){return this.#i(`PATCH`,`/submissions/${encodeURIComponent(e)}`,{status:t})}async deleteSubmission(e){await this.#i(`DELETE`,`/submissions/${encodeURIComponent(e)}`,{})}async exportSubmissions(e){return(await this.#r(`/forms/${encodeURIComponent(e)}/export`)).csv}async forgetSender(e){return(await this.#i(`POST`,`/submissions/forget`,{email:e})).removed}listContacts(e={}){let t=new URLSearchParams;return e.search!==void 0&&e.search!==``&&t.set(`search`,e.search),e.stage!==void 0&&t.set(`stage`,e.stage),e.ownerId!==void 0&&t.set(`owner`,e.ownerId??`none`),e.followUpBy!==void 0&&t.set(`due`,e.followUpBy),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/contacts?${t}`)}listDeals(e={}){let t=new URLSearchParams;return e.about!==void 0&&(t.set(`aboutType`,e.about.typeId),t.set(`aboutEntry`,e.about.entry)),e.contactId!==void 0&&t.set(`contact`,e.contactId),e.stage!==void 0&&t.set(`stage`,e.stage),e.ownerId!==void 0&&t.set(`owner`,e.ownerId??`none`),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/deals?${t}`)}createDeal(e){return this.#i(`POST`,`/deals`,e)}updateDeal(e,t){return this.#i(`PATCH`,`/deals/${encodeURIComponent(e)}`,t)}async deleteDeal(e){await this.#i(`DELETE`,`/deals/${encodeURIComponent(e)}`,{})}getForecast(){return this.#r(`/deals/forecast`)}getEmailSettings(){return this.#r(`/settings/email`)}saveEmailSettings(e){return this.#i(`PUT`,`/settings/email`,e)}async sendTestEmail(){await this.#i(`POST`,`/settings/email/test`,{})}getGeneralSettings(){return this.#r(`/settings/general`)}saveGeneralSettings(e){return this.#i(`PUT`,`/settings/general`,e)}getFormsSettings(){return this.#r(`/settings/forms`)}saveFormsSettings(e){return this.#i(`PUT`,`/settings/forms`,e)}async testFormsSettings(){await this.#i(`POST`,`/settings/forms/test`,{})}getStorageSettings(){return this.#r(`/settings/storage`)}saveStorageSettings(e){return this.#i(`PUT`,`/settings/storage`,e)}async testStorage(){await this.#i(`POST`,`/settings/storage/test`,{})}getPipeline(){return this.#r(`/pipeline`)}savePipeline(e){return this.#i(`PUT`,`/pipeline`,e)}getCustomFields(){return this.#r(`/custom-fields`)}saveCustomFields(e){return this.#i(`PUT`,`/custom-fields`,e)}async listTeam(){return(await this.#r(`/team`)).items}getContact(e){return this.#r(`/contacts/${encodeURIComponent(e)}`)}createContact(e){return this.#i(`POST`,`/contacts`,e)}importContacts(e){return this.#i(`POST`,`/contacts/import`,{rows:e})}updateContact(e,t){return this.#i(`PATCH`,`/contacts/${encodeURIComponent(e)}`,t)}async eraseContact(e){return(await this.#i(`DELETE`,`/contacts/${encodeURIComponent(e)}`,{})).removed}async contactTimeline(e){return(await this.#r(`/contacts/${encodeURIComponent(e)}/timeline`)).items}addContactNote(e,t){return this.#i(`POST`,`/contacts/${encodeURIComponent(e)}/notes`,{text:t})}async deleteContactNote(e,t){await this.#i(`DELETE`,`/contacts/${encodeURIComponent(e)}/notes/${encodeURIComponent(t)}`,{})}async exportContact(e){return(await this.#r(`/contacts/${encodeURIComponent(e)}/export`)).file}previewEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/preview`,{})}async listPeople(){return(await this.#r(`/people`)).items}invitePerson(e){return this.#i(`POST`,`/people`,e)}changePersonRole(e,t){return this.#i(`PATCH`,`/people/${encodeURIComponent(e)}`,{role:t})}async removePerson(e){await this.#i(`DELETE`,`/people/${encodeURIComponent(e)}`,{})}addPasskey(e){return this.#e.registerPasskey(e)}async listPlugins(){return(await this.#r(`/plugins`)).items}async listPluginEditors(){return(await this.#r(`/plugin-editors`)).items}callPlugin(e,t,n,r={}){let i=new URLSearchParams(r.query).toString(),a=`/plugins/${encodeURIComponent(e)}${n}${i===``?``:`?${i}`}`;return t===`GET`?this.#r(a):this.#i(t,a,r.body??{})}setPluginEnabled(e,t){return this.#i(`PATCH`,`/plugins/${encodeURIComponent(e)}`,{enabled:t})}getPluginSettings(e){return this.#r(`/plugin-settings/${encodeURIComponent(e)}`)}savePluginSettings(e,t){return this.#i(`PUT`,`/plugin-settings/${encodeURIComponent(e)}`,{values:t})}setPluginSecret(e,t,n){return this.#i(`PUT`,`/plugin-secrets/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{value:n})}async listPluginTasks(e){return(await this.#r(`/plugin-tasks/${encodeURIComponent(e)}`)).items}retryPluginTask(e,t){return this.#i(`POST`,`/plugin-tasks/${encodeURIComponent(e)}/${encodeURIComponent(t)}/retry`,{})}listPasskeys(){return this.#e.listPasskeys()}removePasskey(e){return this.#e.removePasskey(e)}#r(e){return this.#a(e,{headers:{accept:`application/json`}})}#i(e,t,n){return this.#a(t,{method:e,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify(n)})}async#a(e,t){let n;try{n=await this.#n(`${this.#t}${e}`,{...t,credentials:`same-origin`})}catch{throw Error(`The server could not be reached. Check your connection and try again.`)}let r=await n.json().catch(()=>null);if(n.ok)return r;throw U6(r,n.status)}};function H6(e=[]){return e.length>0?`?${new URLSearchParams(e.map(e=>[`within`,e]))}`:``}function U6(e,t){let n=typeof e==`object`&&e&&`error`in e?e.error:null;return new No(typeof n?.message==`string`?n.message:`The server answered with an error (${t}). Try again in a moment.`,typeof n?.code==`string`&&B6.has(n.code)?n.code:`unknown`,Array.isArray(n?.issues)?n.issues:[])}var W6=`velocity-cms-config`,G6=[`siteName`,`adminPath`,`apiPath`,`authPath`];function K6(e){let t;try{t=JSON.parse(e??``)}catch{t=null}let n=typeof t==`object`&&t?t:{},r=G6.filter(e=>typeof n[e]!=`string`||n[e]===``);if(r.length>0)throw Error(`The editor was opened without its settings (${r.join(`, `)}). It must be served by the Velocity CMS integration, not opened as a file.`);return Object.fromEntries(G6.map(e=>[e,n[e]]))}var q6=K6(document.getElementById(W6)?.textContent);document.title=q6.siteName;var J6=matchMedia(`(prefers-color-scheme: dark)`),Y6=()=>document.documentElement.classList.toggle(`dark`,J6.matches);J6.addEventListener(`change`,Y6),Y6();var X6=new V6({baseUrl:q6.apiPath,auth:u({basePath:q6.authPath,adminPath:q6.adminPath})});(0,Ao.createRoot)(document.getElementById(`root`)).render((0,S.jsx)(x.StrictMode,{children:(0,S.jsx)(z6,{client:X6,siteName:q6.siteName,basePath:q6.adminPath})}));export{c as A,Xy as C,g as D,b as E,f as O,H as S,W_ as T,K as _,pY as a,iS as b,yY as c,PJ as d,DR as f,tj as g,ON as h,gY as i,o as k,q as l,gL as m,DY as n,fY as o,OR as p,hY as r,mY as s,mZ as t,HJ as u,ET as v,V as w,U as x,oS as y};
|
|
73
|
+
}`,document.head.prepend(i);let o=e=>{e.touches.length===2||n||(!t||t===document.documentElement||t===document.body||t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth)&&e.preventDefault()},s=CI(),c=Lx(TS(document,`touchstart`,r,{passive:!1,capture:!0}),TS(document,`touchmove`,o,{passive:!1,capture:!0}),SI());return()=>{e(),c(),i.remove(),s()}}function SI(){return TS(document,`blur`,e=>{let t=G(e),n=e.relatedTarget;n&&rw(n)?n.focus():n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},!0)}function CI(){let e=HTMLElement.prototype.focus;return Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(t){if(e.call(this,{...t,preventScroll:!0}),!t||!t.preventScroll){let e=()=>{kS()===this&&wI(this)};mI(t=>t?e():hI(()=>e()))}}}),()=>{Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:e})}}function wI(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t&&n.isConnected;){let e=pA(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;gI&&(n=Math.min(n,gI.offsetTop+gI.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function TI(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=aI({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=$F({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null,getTargetRect:c.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});yI({isDisabled:a||!t.isOpen}),(0,x.useEffect)(()=>{if(t.isOpen&&r.current)return a?TF(i?.current??r.current):wF([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=ME(e);return{popoverProps:H(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var EI={};EI={dismiss:`تجاهل`};var DI={};DI={dismiss:`Отхвърляне`};var OI={};OI={dismiss:`Odstranit`};var kI={};kI={dismiss:`Luk`};var AI={};AI={dismiss:`Schließen`};var jI={};jI={dismiss:`Απόρριψη`};var MI={};MI={dismiss:`Dismiss`};var NI={};NI={dismiss:`Descartar`};var PI={};PI={dismiss:`Lõpeta`};var FI={};FI={dismiss:`Hylkää`};var II={};II={dismiss:`Rejeter`};var LI={};LI={dismiss:`התעלם`};var RI={};RI={dismiss:`Odbaci`};var zI={};zI={dismiss:`Elutasítás`};var BI={};BI={dismiss:`Ignora`};var VI={};VI={dismiss:`閉じる`};var HI={};HI={dismiss:`무시`};var UI={};UI={dismiss:`Atmesti`};var WI={};WI={dismiss:`Nerādīt`};var GI={};GI={dismiss:`Lukk`};var KI={};KI={dismiss:`Negeren`};var qI={};qI={dismiss:`Zignoruj`};var JI={};JI={dismiss:`Descartar`};var YI={};YI={dismiss:`Dispensar`};var XI={};XI={dismiss:`Revocare`};var ZI={};ZI={dismiss:`Пропустить`};var QI={};QI={dismiss:`Zrušiť`};var $I={};$I={dismiss:`Opusti`};var eL={};eL={dismiss:`Odbaci`};var tL={};tL={dismiss:`Avvisa`};var nL={};nL={dismiss:`Kapat`};var rL={};rL={dismiss:`Скасувати`};var iL={};iL={dismiss:`取消`};var aL={};aL={dismiss:`關閉`};var oL={};oL={"ar-AE":EI,"bg-BG":DI,"cs-CZ":OI,"da-DK":kI,"de-DE":AI,"el-GR":jI,"en-US":MI,"es-ES":NI,"et-EE":PI,"fi-FI":FI,"fr-FR":II,"he-IL":LI,"hr-HR":RI,"hu-HU":zI,"it-IT":BI,"ja-JP":VI,"ko-KR":HI,"lt-LT":UI,"lv-LV":WI,"nb-NO":GI,"nl-NL":KI,"pl-PL":qI,"pt-BR":JI,"pt-PT":YI,"ro-RO":XI,"ru-RU":ZI,"sk-SK":QI,"sl-SI":$I,"sr-SP":eL,"sv-SE":tL,"tr-TR":nL,"uk-UA":rL,"zh-CN":iL,"zh-TW":aL};function sL(e){return e&&e.__esModule?e.default:e}function cL(e){let{onDismiss:t,...n}=e,r=lw(n,Pw(sL(oL),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return x.createElement(CA,null,x.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var lL=x.forwardRef(({children:e,...t},n)=>{let r=(0,x.useRef)(!1),i=(0,x.useContext)(gE),a=H(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=sS(n||i?.ref),ST(i,a.ref),(0,x.useEffect)(()=>{r.current||=!0},[]),x.createElement(gE.Provider,{value:a},e)});function uL({children:e}){let t=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(gE.Provider,{value:t},e)}var dL=(0,x.createContext)({});function fL(){return(0,x.useContext)(dL)??{}}var pL=x.createContext(null);function mL(e){let t=Xx(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=fL();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=x.createElement(UN,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=x.createElement(pL.Provider,{value:o},x.createElement(uL,null,x.createElement(CT.Provider,{value:null},c))),NT.createPortal(c,n)}function hL(){let e=(0,x.useContext)(pL)?.setContain;Rx(()=>{e?.(!0)},[e])}function gL(e){let[t,n]=Iw(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,x.useState)(null);return{isOpen:t,setOpen:n,open:(0,x.useCallback)(()=>{n(!0)},[n]),close:(0,x.useCallback)(()=>{n(!1)},[n]),toggle:(0,x.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}function _L(e,t=!0,n){let[r,i]=(0,x.useState)(!0),a=r&&t;return Rx(()=>{if(!t&&e.current)return Lx(ES(e.current,`opacity`,`0`),ES(e.current,`clip`,`rect(0 0 0 0)`),ES(e.current,`clip-path`,`inset(50%)`),ES(e.current,`mask-image`,`linear-gradient(#0000, #0000)`))},[e,t]),Rx(()=>{if(a&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),yL(e,a,n,(0,x.useCallback)(()=>i(!1),[])),a}function vL(e,t,n){let[r,i]=(0,x.useState)(t?`open`:`closed`);switch(r){case`open`:t||i(`exiting`);break;case`closed`:case`exiting`:t&&i(`open`)}let a=r===`exiting`;return yL(e,a,n,(0,x.useCallback)(()=>{i(e=>e===`exiting`?`closed`:e)},[])),a}function yL(e,t,n,r){let i=(0,x.useRef)(null),a=sw(n);Rx(()=>{if(t&&e.current&&i.current!==t){if(i.current=t,!(`getAnimations`in e.current)){r();return}let n=a?.(e.current),o=e.current.getAnimations().filter(e=>(typeof DocumentTimeline>`u`||e.timeline instanceof DocumentTimeline)&&e.playState===`running`);if(o.length===0&&!n){r();return}Promise.all([n,...o.map(e=>e.finished)]).then(()=>{(0,NT.flushSync)(()=>{r()})}).catch(()=>{})}i.current=t},[e,t,r])}var bL=(0,x.createContext)(null),xL=(0,x.createContext)(null),SL=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,bL);let n=(0,x.useContext)(MR),r=gL(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=vL(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=AT(),{direction:c}=bw();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,t)}return i&&!i.isOpen&&!o?null:x.createElement(CL,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function CL({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,x.useRef)(null),o=(0,x.useRef)(null),s=(0,x.useContext)(xL),c=s&&i.trigger===`SubmenuTrigger`,[l,u]=(0,x.useState)(!1),{popoverProps:d,underlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=TI({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),g=i.popoverRef,_=_L(g,!!m&&l),v=i.isEntering||!i.shouldSkipAnimation&&_||!1,y=uS({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:m,isEntering:v,isExiting:t}}),b=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[S,C]=(0,x.useState)(i.trigger===`PreviewTrigger`);Rx(()=>{g.current&&C(b&&!g.current.querySelector(`[role=dialog]`))},[g,b]),(0,x.useEffect)(()=>{S&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||zC()!==`pointer`)&&g.current&&!jS(g.current)&&oT(g.current)},[S,g,i.trigger]);let w=(0,x.useMemo)(()=>{let e=y.children;for(let t of[bL,...r??[]])e=x.createElement(t.Provider,{value:null},e);return e},[y.children,r]),[T,E]=(0,x.useState)(null),D=(0,x.useCallback)(()=>{i.triggerRef.current&&E(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);Rx(D,[D]),ZF({ref:y.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:D});let O={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...y.style,"--trigger-width":y.style?.[`--trigger-width`]||T};Rx(()=>mI(()=>u(!0)),[]);let k=x.createElement(U.div,{...H(K(i,{global:!0}),d),...y,id:S?i.id:void 0,role:S?`dialog`:void 0,tabIndex:S?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:g,slot:i.slot||void 0,style:O,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":v||void 0,"data-exiting":t||void 0},!i.isNonModal&&x.createElement(cL,{onDismiss:e.close}),x.createElement(yF.Provider,{value:{...p,placement:m,ref:a}},w),x.createElement(cL,{onDismiss:e.close}));return c?x.createElement(mL,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},k):x.createElement(mL,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&x.createElement(`div`,{"data-testid":`underlay`,...f,style:{position:`fixed`,inset:0}}),x.createElement(`div`,{ref:o,style:{display:`contents`}},x.createElement(xL.Provider,{value:o},k)))}var wL=(0,x.createContext)({}),TL={};TL={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var EL={};EL={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var DL={};DL={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var OL={};OL={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var kL={};kL={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var AL={};AL={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var jL={};jL={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var ML={};ML={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var NL={};NL={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var PL={};PL={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var FL={};FL={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var IL={};IL={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var LL={};LL={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var RL={};RL={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var zL={};zL={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var BL={};BL={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var VL={};VL={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var HL={};HL={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var UL={};UL={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var WL={};WL={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var GL={};GL={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var KL={};KL={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var qL={};qL={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var JL={};JL={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var YL={};YL={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var XL={};XL={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var ZL={};ZL={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var QL={};QL={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var $L={};$L={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var eR={};eR={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var tR={};tR={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var nR={};nR={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var rR={};rR={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var iR={};iR={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var aR={};aR={"ar-AE":TL,"bg-BG":EL,"cs-CZ":DL,"da-DK":OL,"de-DE":kL,"el-GR":AL,"en-US":jL,"es-ES":ML,"et-EE":NL,"fi-FI":PL,"fr-FR":FL,"he-IL":IL,"hr-HR":LL,"hu-HU":RL,"it-IT":zL,"ja-JP":BL,"ko-KR":VL,"lt-LT":HL,"lv-LV":UL,"nb-NO":WL,"nl-NL":GL,"pl-PL":KL,"pt-BR":qL,"pt-PT":JL,"ro-RO":YL,"ru-RU":XL,"sk-SK":ZL,"sl-SI":QL,"sr-SP":$L,"sv-SE":eR,"tr-TR":tR,"uk-UA":nR,"zh-CN":rR,"zh-TW":iR};function oR(e){let{onContextMenu:t}=e,n=(0,x.useRef)(!1),{longPressProps:r}=MP({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:H(iC()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(tC()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function sR(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,x.useEffect)(()=>{n&&n.current&&JF.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=nS();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function cR(e){return e&&e.__esModule?e.default:e}function lR(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=nS(),{triggerProps:s,overlayProps:c}=sR({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=xT({isDisabled:i,shortcuts:{Enter:e=>l(a!==`longPress`,e,`first`)," ":e=>l(a!==`longPress`,e,`first`),ArrowDown:e=>l(a!==`longPress`,e,`first`),ArrowUp:e=>l(a!==`longPress`,e,`last`),"Alt+Enter":e=>l(a===`longPress`,e,`first`),"Alt+ ":e=>l(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>l(!0,e,`first`),"Alt+ArrowUp":e=>l(!0,e,`last`)}}),d=Pw(cR(aR),`@react-aria/menu`),{longPressProps:f}=MP({isDisabled:i||a!==`longPress`,accessibilityDescription:d.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),p={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(IS(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(IS(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=oR({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,x.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&G(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let h;if(a===`press`)h={...p,...u};else if(a===`longPress`)h={...f,...u};else if(a===`contextMenu`){h=m;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=s;s=r}return{menuTriggerProps:{...s,...h,id:o},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var uR=new WeakMap;function dR(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=K(e,{labelable:!0}),{listProps:c}=kP({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return uR.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:H(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{(t.key!==`Escape`||e.shouldUseVirtualFocus)&&c.onKeyDown?.(t)}})}}function fR(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:o,isVirtualized:s,"aria-haspopup":c,onPressStart:l,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onClick:m,onHoverStart:h,onHoverChange:g,onHoverEnd:_,onKeyDown:v,onKeyUp:y,onFocus:b,onFocusChange:S,onBlur:C,selectionManager:w=t.selectionManager}=e,T=!!c,E=T&&e[`aria-expanded`]===`true`,D=e.isDisabled??w.isDisabled(i),O=e.isSelected??w.isSelected(i),k=uR.get(t),A=t.collection.getItem(i),j=e.onClose||k.onClose,M=pC(),ee=()=>{if(!T&&(A?.props?.onAction?A.props.onAction():e.onAction&&e.onAction(i),k.onAction)){let e=k.onAction;e(i,A?.value)}},N=`menuitem`;T||(w.selectionMode===`single`?N=`menuitemradio`:w.selectionMode===`multiple`&&(N=`menuitemcheckbox`));let P=iS(),te=iS(),F=iS(),ne={id:r,"aria-disabled":D||void 0,role:N,"aria-label":e[`aria-label`],"aria-labelledby":P,"aria-describedby":[e[`aria-describedby`],te,F].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":c,"aria-expanded":e[`aria-expanded`]};if(w.selectionMode!==`none`&&!T&&(ne[`aria-checked`]=O),s){let e=Number(A?.index);ne[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,ne[`aria-setsize`]=UP(t.collection)}let re=(0,x.useRef)(!1),ie=e=>{f?.(e),re.current=e},ae=(0,x.useRef)(null),oe=e=>{e.pointerType!==`keyboard`&&(ae.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(re.current||e.target.click()),u?.(e)},se=e=>{m?.(e),ee(),bC(e,M,A.props.href,A?.props.routerOptions);let t=ae.current?.pointerType===`keyboard`?ae.current?.key===`Enter`||w.selectionMode===`none`||w.isLink(i):w.selectionMode!==`multiple`||w.isLink(i);t=o??a??t,j&&!T&&t&&j(),ae.current=null},{itemProps:ce,isFocused:le}=NP({id:r,selectionManager:w,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:ue,isPressed:de}=CE({onPressStart:l,onPress:d,onPressUp:oe,onPressChange:ie,onPressEnd:p,isDisabled:D}),{hoverProps:fe}=zE({isDisabled:D,onHoverStart(e){!RC()&&!(E&&c)&&(w.setFocused(!0),w.setFocusedKey(i)),h?.(e)},onHoverChange:g,onHoverEnd:_}),{keyboardProps:pe}=xT({shortcuts:{" ":e=>{ae.current={pointerType:`keyboard`,key:` `},G(e).click(),BC(`keyboard`)},Enter:e=>{ae.current={pointerType:`keyboard`,key:`Enter`};let t=G(e);if(t.tagName!==`A`)t.click(),BC(`keyboard`);else return BC(`keyboard`),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:v,onKeyUp:y}),{focusableProps:me}=ET({onBlur:C,onFocus:b,onFocusChange:S},n),I=K(A?.props);delete I.id;let he=yC(A?.props);return{menuItemProps:{...ne,...H(I,he,T?{onFocus:ce.onFocus,"data-collection":ce[`data-collection`],"data-key":ce[`data-key`]}:ce,ue,fe,pe,me,k.shouldUseVirtualFocus||T?{onMouseDown:e=>e.preventDefault()}:void 0,D?void 0:{onClick:se}),tabIndex:ce.tabIndex!=null&&E&&!k.shouldUseVirtualFocus?-1:ce.tabIndex},labelProps:{id:P},descriptionProps:{id:te},keyboardShortcutProps:{id:F},isFocused:le,isFocusVisible:le&&w.isFocused&&RC()&&!E,isSelected:O,isPressed:de,isDisabled:D}}function pR(e){let{heading:t,"aria-label":n}=e,r=nS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function mR(e){let t=gL(e),[n,r]=(0,x.useState)(null),[i,a]=(0,x.useState)([]),o=()=>{a([]),t.close()},s=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},c=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:s,closeSubmenu:c}}var hR=class{constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function gR(e){let{onExpandedChange:t}=e,[n,r]=Iw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=XP(e),a=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=rF(e,(0,x.useCallback)(e=>new hR(e,{expandedKeys:n}),[n]),null);return(0,x.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(_R(n,e))},setExpandedKeys:r,selectionManager:new QP(o,i)}}function _R(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var vR=(0,x.createContext)(null),yR=(0,x.createContext)(null),bR=(0,x.createContext)(null),xR=(0,x.createContext)(null);function SR(e){let t=mR(e),n=(0,x.useRef)(null),{menuTriggerProps:r,menuProps:i}=lR({...e,type:`menu`},t,n),a=(0,x.useRef)(null);return AT()?null:x.createElement(lS,{values:[[vR,{...i,ref:a}],[MR,t],[bR,t],[bL,{trigger:`MenuTrigger`,triggerRef:n,scrollRef:a,placement:`bottom start`,"aria-labelledby":i[`aria-labelledby`],offset:e.trigger===`contextMenu`?0:void 0}]]},x.createElement(lL,{...r,ref:n,isPressed:t.isOpen},e.children))}var CR=(0,x.createContext)(null);(class extends zw{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}});var wR=(0,x.forwardRef)(function(e,t){return[e,t]=fS(e,t,vR),x.createElement(LT,{content:x.createElement(YT,e)},n=>x.createElement(TR,{props:e,collection:n,menuRef:t}))});function TR({props:e,collection:t,menuRef:n}){[e,n]=fS(e,n,Lw);let{filter:r,...i}=e,a=(0,x.useMemo)(()=>r?t.filter(r):t,[t,r]),o=gR({...e,collection:a,children:void 0}),s=(0,x.useContext)(bR),{isVirtualized:c,CollectionRoot:l}=(0,x.useContext)(tE),{menuProps:u}=dR({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=uS({...e,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=x.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=K(e,{global:!0});return x.createElement(UN,null,x.createElement(U.div,{...H(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},x.createElement(lS,{values:[[yR,o],[NN,{elementType:`div`}],[ZT,{name:`MenuSection`,render:DR}],[CR,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[OR,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Lw,null],[Rw,null],[xR,o.selectionManager],[bR,s??mR({})]]},x.createElement(AN,null,x.createElement(l,{collection:o.collection,persistedKeys:nE(o.selectionManager.focusedKey),scrollRef:n}))),f))}var ER=class extends QP{constructor(e,t){super(e.collection,t),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function DR(e,t,n,r=`react-aria-MenuSection`){let i=(0,x.useContext)(yR),{CollectionBranch:a}=(0,x.useContext)(tE),[o,s]=pS(),{headingProps:c,groupProps:l}=pR({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=uS({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,x.useContext)(xR),f=XP(e),p=e.selectionMode==null?d:new ER(d,f),m=dS(OR)?.shouldCloseOnSelect,h=K(e,{global:!0});return delete h.id,x.createElement(U.section,{...H(h,u,l),ref:t},x.createElement(lS,{values:[[DN,{...c,ref:o}],[xR,p],[OR,{shouldCloseOnSelect:e.shouldCloseOnSelect??m}]]},x.createElement(a,{collection:i.collection,parent:n})))}var OR=(0,x.createContext)(null),kR=GT(Uw,function(e,t,n){[e,t]=fS(e,t,OR);let r=dS(OR)?.id,i=(0,x.useContext)(yR),a=sS(t),o=(0,x.useContext)(xR),{isVirtualized:s}=(0,x.useContext)(tE),{menuItemProps:c,labelProps:l,descriptionProps:u,keyboardShortcutProps:d,...f}=fR({...e,id:r,key:n.key,selectionManager:o,isVirtualized:s},i,a),{hoverProps:p,isHovered:m}=zE({isDisabled:f.isDisabled}),h=uS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),g=e.href?U.a:U.div,_=K(e,{global:!0});return delete _.id,delete _.onClick,x.createElement(g,{...H(_,h,c,p),ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},x.createElement(lS,{values:[[TD,{slots:{[cS]:l,label:l,description:u}}],[wL,d],[jN,{isSelected:f.isSelected}]]},h.children))});GT(Hw,function(e,t,n){let r=(0,x.useContext)(yR),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,x.useRef)(null);sF((0,x.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=uS({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:KP(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&x.createElement(x.Fragment,null,x.createElement(U.div,{...H(K(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function AR(e,t){let{role:n=`dialog`,isEntering:r}=e,i=iS();i=e[`aria-label`]?void 0:i;let a=iS();a=n===`alertdialog`&&!e[`aria-describedby`]?a:void 0;let o=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(!r&&t.current&&!jS(t.current)){oT(t.current);let e=setTimeout(()=>{(kS()===t.current||kS()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),oT(t.current)),o.current=!1)},500);return()=>{clearTimeout(e)}}},[t,r]),hL(),(0,x.useRef)(!1),(0,x.useEffect)(()=>{});let s=e[`aria-describedby`]??a;return{dialogProps:{...K(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??i,"aria-describedby":s,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:i},contentProps:{id:a}}}var jR=(0,x.createContext)(null),MR=(0,x.createContext)(null);function NR(e){let t=mR(e),n=(0,x.useRef)(null),{triggerProps:r,overlayProps:i}=sR({type:`dialog`},t,n);return r.id=nS(),i[`aria-labelledby`]=r.id,AT()?null:x.createElement(lS,{values:[[MR,t],[bR,t],[jR,i],[bL,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},x.createElement(lL,{...r,ref:n,isPressed:t.isOpen},e.children))}var PR=(0,x.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=fS(e,t,jR);let{dialogProps:r,titleProps:i,contentProps:a}=AR({...e,"aria-labelledby":n},t),o=(0,x.useContext)(MR);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=uS({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=K(e,{global:!0});return x.createElement(U.section,{...H(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},x.createElement(lS,{values:[[CD,{slots:{[cS]:{},title:{...i,level:2}}}],[TD,{slots:{[cS]:{},description:a}}],[yD,{slots:{[cS]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});function FR(e){let t=OP({usage:`search`,...e}),n=(0,x.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(0,n.length),n)===0),[t]),r=(0,x.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(-n.length),n)===0),[t]),i=(0,x.useCallback)((e,n)=>{if(n.length===0)return!0;e=e.normalize(`NFC`),n=n.normalize(`NFC`);let r=0,i=n.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(t.compare(n,a)===0)return!0}return!1},[t]);return(0,x.useMemo)(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function IR(e={}){let{locale:t}=bw();return(0,x.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}var LR=[`day`,`month`,`year`],RR={hour:1,minute:2,second:3};function zR(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=SA({style:{position:`fixed`,top:0,left:0}}),o=60;t.granularity===`second`?o=1:t.granularity===`hour`&&(o=3600);let s=``;t.value&&(s=t.granularity===`day`?nO(t.value).toString():rO(`timeZone`in t.value?cO(t.value):t.value).toString());let c=t.granularity===`day`?`date`:`datetime-local`,l=[`hour`,`minute`,`second`],u=0;return l.includes(t.granularity)&&(u=RR[t.granularity],l=l.slice(0,u)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:c,form:``,name:i,step:o,value:s,onChange:e=>{let n=G(e).value.toString();if(n)try{let e=FO(n);if(t.granularity===`day`&&(e=PO(n)),`setSegment`in t)for(let n in e)LR.includes(n)&&t.setSegment(n,e[n]),l.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}function BR(e){let{state:t}=e,{containerProps:n,inputProps:r}=zR({...e},t);return x.createElement(`div`,{...n,"data-testid":`hidden-dateinput-container`},x.createElement(`input`,r))}var VR={};VR={calendar:`التقويم`,day:`يوم`,dayPeriod:`ص/م`,endDate:`تاريخ الانتهاء`,era:`العصر`,hour:`الساعات`,minute:`الدقائق`,month:`الشهر`,second:`الثواني`,selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:`تاريخ البدء`,timeZoneName:`التوقيت`,weekday:`اليوم`,year:`السنة`};var HR={};HR={calendar:`Календар`,day:`ден`,dayPeriod:`пр.об./сл.об.`,endDate:`Крайна дата`,era:`ера`,hour:`час`,minute:`минута`,month:`месец`,second:`секунда`,selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:`Начална дата`,timeZoneName:`часова зона`,weekday:`ден от седмицата`,year:`година`};var UR={};UR={calendar:`Kalendář`,day:`den`,dayPeriod:`část dne`,endDate:`Konečné datum`,era:`letopočet`,hour:`hodina`,minute:`minuta`,month:`měsíc`,second:`sekunda`,selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:`Počáteční datum`,timeZoneName:`časové pásmo`,weekday:`den v týdnu`,year:`rok`};var WR={};WR={calendar:`Kalender`,day:`dag`,dayPeriod:`AM/PM`,endDate:`Slutdato`,era:`æra`,hour:`time`,minute:`minut`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidszone`,weekday:`ugedag`,year:`år`};var GR={};GR={calendar:`Kalender`,day:`Tag`,dayPeriod:`Tageshälfte`,endDate:`Enddatum`,era:`Epoche`,hour:`Stunde`,minute:`Minute`,month:`Monat`,second:`Sekunde`,selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:`Startdatum`,timeZoneName:`Zeitzone`,weekday:`Wochentag`,year:`Jahr`};var KR={};KR={calendar:`Ημερολόγιο`,day:`ημέρα`,dayPeriod:`π.μ./μ.μ.`,endDate:`Ημερομηνία λήξης`,era:`περίοδος`,hour:`ώρα`,minute:`λεπτό`,month:`μήνας`,second:`δευτερόλεπτο`,selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:`Ημερομηνία έναρξης`,timeZoneName:`ζώνη ώρας`,weekday:`καθημερινή`,year:`έτος`};var qR={};qR={era:`era`,year:`year`,month:`month`,day:`day`,hour:`hour`,minute:`minute`,second:`second`,dayPeriod:`AM/PM`,calendar:`Calendar`,startDate:`Start Date`,endDate:`End Date`,weekday:`day of the week`,timeZoneName:`time zone`,selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var JR={};JR={calendar:`Calendario`,day:`día`,dayPeriod:`a.\xA0m./p.\xA0m.`,endDate:`Fecha final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mes`,second:`segundo`,selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:`Fecha de inicio`,timeZoneName:`zona horaria`,weekday:`día de la semana`,year:`año`};var YR={};YR={calendar:`Kalender`,day:`päev`,dayPeriod:`enne/pärast lõunat`,endDate:`Lõppkuupäev`,era:`ajastu`,hour:`tund`,minute:`minut`,month:`kuu`,second:`sekund`,selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:`Alguskuupäev`,timeZoneName:`ajavöönd`,weekday:`nädalapäev`,year:`aasta`};var XR={};XR={calendar:`Kalenteri`,day:`päivä`,dayPeriod:`vuorokaudenaika`,endDate:`Päättymispäivä`,era:`aikakausi`,hour:`tunti`,minute:`minuutti`,month:`kuukausi`,second:`sekunti`,selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:`Alkamispäivä`,timeZoneName:`aikavyöhyke`,weekday:`viikonpäivä`,year:`vuosi`};var ZR={};ZR={calendar:`Calendrier`,day:`jour`,dayPeriod:`cadran`,endDate:`Date de fin`,era:`ère`,hour:`heure`,minute:`minute`,month:`mois`,second:`seconde`,selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:`Date de début`,timeZoneName:`fuseau horaire`,weekday:`jour de la semaine`,year:`année`};var QR={};QR={calendar:`לוח שנה`,day:`יום`,dayPeriod:`לפנה״צ/אחה״צ`,endDate:`תאריך סיום`,era:`תקופה`,hour:`שעה`,minute:`דקה`,month:`חודש`,second:`שנייה`,selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:`תאריך התחלה`,timeZoneName:`אזור זמן`,weekday:`יום בשבוע`,year:`שנה`};var $R={};$R={calendar:`Kalendar`,day:`dan`,dayPeriod:`AM/PM`,endDate:`Datum završetka`,era:`era`,hour:`sat`,minute:`minuta`,month:`mjesec`,second:`sekunda`,selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`vremenska zona`,weekday:`dan u tjednu`,year:`godina`};var ez={};ez={calendar:`Naptár`,day:`nap`,dayPeriod:`napszak`,endDate:`Befejező dátum`,era:`éra`,hour:`óra`,minute:`perc`,month:`hónap`,second:`másodperc`,selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:`Kezdő dátum`,timeZoneName:`időzóna`,weekday:`hét napja`,year:`év`};var tz={};tz={calendar:`Calendario`,day:`giorno`,dayPeriod:`AM/PM`,endDate:`Data finale`,era:`era`,hour:`ora`,minute:`minuto`,month:`mese`,second:`secondo`,selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:`Data iniziale`,timeZoneName:`fuso orario`,weekday:`giorno della settimana`,year:`anno`};var nz={};nz={calendar:`カレンダー`,day:`日`,dayPeriod:`午前/午後`,endDate:`終了日`,era:`時代`,hour:`時`,minute:`分`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:`開始日`,timeZoneName:`タイムゾーン`,weekday:`曜日`,year:`年`};var rz={};rz={calendar:`달력`,day:`일`,dayPeriod:`오전/오후`,endDate:`종료일`,era:`연호`,hour:`시`,minute:`분`,month:`월`,second:`초`,selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:`시작일`,timeZoneName:`시간대`,weekday:`요일`,year:`년`};var iz={};iz={calendar:`Kalendorius`,day:`diena`,dayPeriod:`iki pietų / po pietų`,endDate:`Pabaigos data`,era:`era`,hour:`valanda`,minute:`minutė`,month:`mėnuo`,second:`sekundė`,selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:`Pradžios data`,timeZoneName:`laiko juosta`,weekday:`savaitės diena`,year:`metai`};var az={};az={calendar:`Kalendārs`,day:`diena`,dayPeriod:`priekšpusdienā/pēcpusdienā`,endDate:`Beigu datums`,era:`ēra`,hour:`stundas`,minute:`minūtes`,month:`mēnesis`,second:`sekundes`,selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:`Sākuma datums`,timeZoneName:`laika josla`,weekday:`nedēļas diena`,year:`gads`};var oz={};oz={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Sluttdato`,era:`tidsalder`,hour:`time`,minute:`minutt`,month:`måned`,second:`sekund`,selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:`Startdato`,timeZoneName:`tidssone`,weekday:`ukedag`,year:`år`};var sz={};sz={calendar:`Kalender`,day:`dag`,dayPeriod:`a.m./p.m.`,endDate:`Einddatum`,era:`tijdperk`,hour:`uur`,minute:`minuut`,month:`maand`,second:`seconde`,selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tijdzone`,weekday:`dag van de week`,year:`jaar`};var cz={};cz={calendar:`Kalendarz`,day:`dzień`,dayPeriod:`rano / po południu / wieczorem`,endDate:`Data końcowa`,era:`era`,hour:`godzina`,minute:`minuta`,month:`miesiąc`,second:`sekunda`,selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:`Data początkowa`,timeZoneName:`strefa czasowa`,weekday:`dzień tygodnia`,year:`rok`};var lz={};lz={calendar:`Calendário`,day:`dia`,dayPeriod:`AM/PM`,endDate:`Data final`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data inicial`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var uz={};uz={calendar:`Calendário`,day:`dia`,dayPeriod:`am/pm`,endDate:`Data de Término`,era:`era`,hour:`hora`,minute:`minuto`,month:`mês`,second:`segundo`,selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:`Data de Início`,timeZoneName:`fuso horário`,weekday:`dia da semana`,year:`ano`};var dz={};dz={calendar:`Calendar`,day:`zi`,dayPeriod:`a.m/p.m.`,endDate:`Dată final`,era:`eră`,hour:`oră`,minute:`minut`,month:`lună`,second:`secundă`,selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:`Dată început`,timeZoneName:`fus orar`,weekday:`ziua din săptămână`,year:`an`};var fz={};fz={calendar:`Календарь`,day:`день`,dayPeriod:`AM/PM`,endDate:`Дата окончания`,era:`эра`,hour:`час`,minute:`минута`,month:`месяц`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:`Дата начала`,timeZoneName:`часовой пояс`,weekday:`день недели`,year:`год`};var pz={};pz={calendar:`Kalendár`,day:`deň`,dayPeriod:`AM/PM`,endDate:`Dátum ukončenia`,era:`letopočet`,hour:`hodina`,minute:`minúta`,month:`mesiac`,second:`sekunda`,selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:`Dátum začatia`,timeZoneName:`časové pásmo`,weekday:`deň týždňa`,year:`rok`};var mz={};mz={calendar:`Koledar`,day:`dan`,dayPeriod:`dop/pop`,endDate:`Datum konca`,era:`doba`,hour:`ura`,minute:`minuta`,month:`mesec`,second:`sekunda`,selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:`Datum začetka`,timeZoneName:`časovni pas`,weekday:`dan v tednu`,year:`leto`};var hz={};hz={calendar:`Kalendar`,day:`дан`,dayPeriod:`пре подне/по подне`,endDate:`Datum završetka`,era:`ера`,hour:`сат`,minute:`минут`,month:`месец`,second:`секунд`,selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:`Datum početka`,timeZoneName:`временска зона`,weekday:`дан у недељи`,year:`година`};var gz={};gz={calendar:`Kalender`,day:`dag`,dayPeriod:`fm/em`,endDate:`Slutdatum`,era:`era`,hour:`timme`,minute:`minut`,month:`månad`,second:`sekund`,selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:`Startdatum`,timeZoneName:`tidszon`,weekday:`veckodag`,year:`år`};var _z={};_z={calendar:`Takvim`,day:`gün`,dayPeriod:`ÖÖ/ÖS`,endDate:`Bitiş Tarihi`,era:`çağ`,hour:`saat`,minute:`dakika`,month:`ay`,second:`saniye`,selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:`Başlangıç Tarihi`,timeZoneName:`saat dilimi`,weekday:`haftanın günü`,year:`yıl`};var vz={};vz={calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`};var yz={};yz={calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var bz={};bz={calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`};var xz={};xz={"ar-AE":VR,"bg-BG":HR,"cs-CZ":UR,"da-DK":WR,"de-DE":GR,"el-GR":KR,"en-US":qR,"es-ES":JR,"et-EE":YR,"fi-FI":XR,"fr-FR":ZR,"he-IL":QR,"hr-HR":$R,"hu-HU":ez,"it-IT":tz,"ja-JP":nz,"ko-KR":rz,"lt-LT":iz,"lv-LV":az,"nb-NO":oz,"nl-NL":sz,"pl-PL":cz,"pt-BR":lz,"pt-PT":uz,"ro-RO":dz,"ru-RU":fz,"sk-SK":pz,"sl-SI":mz,"sr-SP":hz,"sv-SE":gz,"tr-TR":_z,"uk-UA":vz,"zh-CN":yz,"zh-TW":bz};function Sz(e,t,n){let{direction:r}=bw(),i=(0,x.useMemo)(()=>uP(t),[t]),{keyboardProps:a}=xT({shortcuts:{"Alt+ArrowDown":()=>{if(`setOpen`in e)e.setOpen(!0);else return!1},"Alt+ArrowUp":()=>{if(`setOpen`in e)e.setOpen(!0);else return!1},ArrowLeft:e=>{if(n)return!1;if(r===`rtl`){if(t.current){let n=G(e),r=Cz(t.current,n.getBoundingClientRect().left,-1);if(r){r.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:e=>{if(n)return!1;if(r===`rtl`){if(t.current){let n=G(e),r=Cz(t.current,n.getBoundingClientRect().left,1);if(r){r.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),o=()=>{if(!t.current)return;let e=window.event?G(window.event):null,n=lP(t.current,{tabbable:!0});if(e&&=(n.currentNode=e,n.previousNode()),!e){let t;do t=n.lastChild(),t&&(e=t);while(t)}for(;e?.hasAttribute(`data-placeholder`);){let t=n.previousNode();if(t&&t.hasAttribute(`data-placeholder`))e=t;else break}e&&e.focus()},{pressProps:s}=CE({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){e.pointerType===`mouse`&&o()},onPress(e){(e.pointerType===`touch`||e.pointerType===`pen`)&&o()}});return H(s,a)}function Cz(e,t,n){let r=lP(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===n&&s<o&&(a=i,o=s),i=r.nextNode()}return a}function wz(e){return e&&e.__esModule?e.default:e}var Tz=new WeakMap,Ez=`__reactAriaDateFieldRole`,Dz=`__reactAriaDateFieldFocusManager`;function Oz(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:s,descriptionProps:c,errorMessageProps:l}=VA({...e,labelElementType:`span`,isInvalid:r,errorMessage:e.errorMessage||i}),u=(0,x.useRef)(null),{focusWithinProps:d}=ME({...e,onFocusWithin(n){u.current=t.value,e.onFocus?.(n)},onBlurWithin:n=>{t.confirmPlaceholder(),t.value!==u.current&&t.commitValidation(),e.onBlur?.(n)},onFocusWithinChange:e.onFocusChange}),f=Pw(wz(xz),`@react-aria/datepicker`),p=t.maxGranularity===`hour`?`selectedTimeDescription`:`selectedDateDescription`,m=t.maxGranularity===`hour`?`time`:`date`,h=bA(t.value?f.format(p,{[m]:t.formatValue({month:`long`})}):``),g=e.__reactAriaDateFieldRole===`presentation`?s[`aria-describedby`]:[h[`aria-describedby`],s[`aria-describedby`]].filter(Boolean).join(` `)||void 0,_=e[Dz],v=(0,x.useMemo)(()=>_||uP(n),[_,n]),y=Sz(t,n,e[Ez]===`presentation`);Tz.set(t,{ariaLabel:e[`aria-label`],ariaLabelledBy:[o.id,e[`aria-labelledby`]].filter(Boolean).join(` `)||void 0,ariaDescribedBy:g,focusManager:v});let b=(0,x.useRef)(e.autoFocus),S;S=e.__reactAriaDateFieldRole===`presentation`?{role:`presentation`}:H(s,{role:`group`,"aria-disabled":e.isDisabled||void 0,"aria-describedby":g}),(0,x.useEffect)(()=>{b.current&&v.focusFirst(),b.current=!1},[v]),HA(e.inputRef,t.defaultValue,t.setValue),UA({...e,focus(){v.focusFirst()}},t,e.inputRef);let C={type:`hidden`,name:e.name,form:e.form,value:t.value?.toString()||``,disabled:e.isDisabled};e.validationBehavior===`native`&&(C.type=`text`,C.hidden=!0,C.required=e.isRequired,C.onChange=()=>{});let w=K(e);return{labelProps:{...o,onClick:()=>{v.focusFirst()}},fieldProps:H(w,S,y,d,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:`isolate`}}),inputProps:C,descriptionProps:c,errorMessageProps:l,isInvalid:r,validationErrors:i,validationDetails:a}}function kz(e){return e&&e.__esModule?e.default:e}function Az(){let{locale:e}=bw(),t=Nw(kz(xz),`@react-aria/datepicker`);return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(e,{type:`dateTimeField`})}catch{return new jz(e,t)}},[e,t])}var jz=class{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}};function Mz(e,t,n){let r=(0,x.useRef)(``),{locale:i,direction:a}=bw(),o=Az(),{ariaLabel:s,ariaLabelledBy:c,ariaDescribedBy:l,focusManager:u}=Tz.get(t),d=e.isPlaceholder?``:e.text,f=(0,x.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=lA({month:`long`,timeZone:f.timeZone}),m=lA({hour:`numeric`,hour12:f.hour12,timeZone:f.timeZone});if(e.type===`month`&&!e.isPlaceholder){let e=p.format(t.dateValue);d=e===d?e:`${d} \u{2013} ${e}`}else e.type===`hour`&&!e.isPlaceholder&&(d=m.format(t.dateValue));let{spinButtonProps:h}=Qj({value:e.value??void 0,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current=``,t.increment(e.type)},onDecrement:()=>{r.current=``,t.decrement(e.type)},onIncrementPage:()=>{r.current=``,t.incrementPage(e.type)},onDecrementPage:()=>{r.current=``,t.decrementPage(e.type)},onIncrementToMax:()=>{r.current=``,t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current=``,t.decrementToMin(e.type)}}),g=(0,x.useMemo)(()=>new QE(i,{maximumFractionDigits:0}),[i]),_=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let n=e.text.slice(0,-1),i=g.parse(n);n=i===0?``:n,n.length===0||i===0?t.clearSegment(e.type):t.setSegment(e.type,i),r.current=n}else(e.type===`dayPeriod`||e.type===`era`)&&t.clearSegment(e.type)},{keyboardProps:v}=xT({shortcuts:{Backspace:()=>{_()},Delete:()=>{_()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:y}=FR({sensitivity:`base`}),b=lA({hour:`numeric`,hour12:!0}),S=(0,x.useMemo)(()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),C=(0,x.useMemo)(()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find(e=>e.type===`dayPeriod`).value},[b]),w=lA({year:`numeric`,era:`narrow`,timeZone:`UTC`}),T=(0,x.useMemo)(()=>{if(e.type!==`era`)return[];let n=iO(new UO(1,1,1),t.calendar),r=t.calendar.getEras().map(e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate(`UTC`);return{era:e,formatted:w.formatToParts(t).find(e=>e.type===`era`)?.value??e}}),i=Nz(r.map(e=>e.formatted));if(i)for(let e of r)e.formatted=e.formatted.slice(i);return r},[w,t.calendar,e.type]),E=n=>{if(t.isDisabled||t.isReadOnly)return;let i=r.current+n;switch(e.type){case`dayPeriod`:if(y(S,n))t.setSegment(`dayPeriod`,0);else if(y(C,n))t.setSegment(`dayPeriod`,1);else break;u.focusNext();break;case`era`:{let e=T.find(e=>y(e.formatted,n));e&&(t.setSegment(`era`,e.era),u.focusNext());break}case`day`:case`hour`:case`minute`:case`second`:case`month`:case`year`:{if(!g.isValidPartialNumber(i))return;let a=g.parse(i),o=a;if(e.maxValue!==void 0&&a>e.maxValue&&(o=g.parse(n)),isNaN(a))return;t.setSegment(e.type,o),e.maxValue!==void 0&&(Number(a+`0`)>e.maxValue||i.length>=String(e.maxValue).length)?(r.current=``,u.focusNext()):r.current=i;break}}},D=()=>{r.current=``,n.current&&_A(n.current,{containingElement:pA(n.current)}),window.getSelection()?.collapse(n.current)};cw((0,x.useRef)(typeof document<`u`?document:null),`selectionchange`,()=>{let e=window.getSelection();e?.anchorNode&&W(n.current,e?.anchorNode)&&kS()===n.current&&e.collapse(n.current)});let O=(0,x.useRef)(``);cw(n,`beforeinput`,r=>{if(n.current)switch(r.preventDefault(),r.inputType){case`deleteContentBackward`:case`deleteContentForward`:g.isValidPartialNumber(e.text)&&!t.isReadOnly&&_();break;case`insertCompositionText`:O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:r.data!=null&&E(r.data)}}),cw(n,`input`,e=>{let{inputType:t,data:r}=e;t===`insertCompositionText`&&(n.current&&(n.current.textContent=O.current),r!=null&&(y(S,r)||y(C,r))&&E(r))}),Rx(()=>{let e=n.current;return()=>{kS()===e&&(u.focusPrevious()||u.focusNext())}},[n,u]);let k=iC()||e.type===`timeZoneName`?{role:`textbox`,"aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e!==(0,x.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])&&!t.isInvalid&&(l=void 0);let A=nS(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,M=lw({"aria-label":`${e.type===`literal`?``:o.of(e.type)}${s?`, ${s}`:``}${c?`, `:``}`,"aria-labelledby":c});if(e.type===`literal`)return{segmentProps:{"aria-hidden":!0}};let ee={caretColor:`transparent`};if(a===`rtl`){ee.unicodeBidi=`embed`;let t=f[e.type];(t===`numeric`||t===`2-digit`)&&(ee.direction=`ltr`)}return{segmentProps:H(h,M,{id:A,...k,...v,"aria-invalid":t.isInvalid?`true`:void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?`true`:void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?`false`:void 0,autoCorrect:j?`off`:void 0,enterKeyHint:j?`next`:void 0,inputMode:t.isDisabled||e.type===`dayPeriod`||e.type===`era`||!j?void 0:`numeric`,tabIndex:t.isDisabled?void 0:0,onFocus:D,style:ee,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}function Nz(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}var Pz={};Pz={rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:`تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.`,rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:`البيانات المحددة غير متاحة.`};var Fz={};Fz={rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:`Началната дата трябва да е преди крайната.`,rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:`Избраната дата не е налична.`};var Iz={};Iz={rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:`Datum zahájení musí předcházet datu ukončení.`,rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:`Vybrané datum není k dispozici.`};var Lz={};Lz={rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen skal være før slutdatoen.`,rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:`Den valgte dato er ikke tilgængelig.`};var Rz={};Rz={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:`Das Startdatum muss vor dem Enddatum liegen.`,rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:`Das ausgewählte Datum ist nicht verfügbar.`};var zz={};zz={rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:`Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.`,rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:`Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη.`};var Bz={};Bz={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:`Start date must be before end date.`,unavailableDate:`Selected date unavailable.`};var Vz={};Vz={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:`La fecha de inicio debe ser anterior a la fecha de finalización.`,rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:`Fecha seleccionada no disponible.`};var Hz={};Hz={rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:`Alguskuupäev peab olema enne lõppkuupäeva.`,rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:`Valitud kuupäev pole saadaval.`};var Uz={};Uz={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:`Aloituspäivän on oltava ennen lopetuspäivää.`,rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:`Valittu päivämäärä ei ole käytettävissä.`};var Wz={};Wz={rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:`La date de début doit être antérieure à la date de fin.`,rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:`La date sélectionnée n’est pas disponible.`};var Gz={};Gz={rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:`תאריך ההתחלה חייב להיות לפני תאריך הסיום.`,rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:`התאריך הנבחר אינו זמין.`};var Kz={};Kz={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:`Datum početka mora biti prije datuma završetka.`,rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:`Odabrani datum nije dostupan.`};var qz={};qz={rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:`A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.`,rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:`A kiválasztott dátum nem érhető el.`};var Jz={};Jz={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:`La data di inizio deve essere antecedente alla data di fine.`,rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:`Data selezionata non disponibile.`};var Yz={};Yz={rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:`開始日は終了日より前にする必要があります。`,rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:`選択した日付は使用できません。`};var Xz={};Xz={rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:`시작일은 종료일 이전이어야 합니다.`,rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:`선택한 날짜를 사용할 수 없습니다.`};var Zz={};Zz={rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:`Pradžios data turi būti ankstesnė nei pabaigos data.`,rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:`Pasirinkta data nepasiekiama.`};var Qz={};Qz={rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:`Sākuma datumam ir jābūt pirms beigu datuma.`,rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:`Atlasītais datums nav pieejams.`};var $z={};$z={rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:`Startdatoen må være før sluttdatoen.`,rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:`Valgt dato utilgjengelig.`};var eB={};eB={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:`De startdatum moet voor de einddatum liggen.`,rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:`Geselecteerde datum niet beschikbaar.`};var tB={};tB={rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:`Data rozpoczęcia musi być wcześniejsza niż data zakończenia.`,rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:`Wybrana data jest niedostępna.`};var nB={};nB={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:`A data inicial deve ser anterior à data final.`,rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var rB={};rB={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:`A data de início deve ser anterior à data de fim.`,rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:`Data selecionada indisponível.`};var iB={};iB={rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:`Data de început trebuie să fie anterioară datei de sfârșit.`,rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:`Data selectată nu este disponibilă.`};var aB={};aB={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:`Дата начала должна предшествовать дате окончания.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Выбранная дата недоступна.`};var oB={};oB={rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:`Dátum začiatku musí byť skorší ako dátum konca.`,rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:`Vybratý dátum je nedostupný.`};var sB={};sB={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:`Začetni datum mora biti pred končnim datumom.`,rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:`Izbrani datum ni na voljo.`};var cB={};cB={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:`Datum početka mora biti pre datuma završetka.`,rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:`Izabrani datum nije dostupan.`};var lB={};lB={rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:`Startdatumet måste vara före slutdatumet.`,rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:`Det valda datumet är inte tillgängligt.`};var uB={};uB={rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:`Başlangıç tarihi bitiş tarihinden önce olmalıdır.`,rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:`Seçilen tarih kullanılamıyor.`};var dB={};dB={rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:`Дата початку має передувати даті завершення.`,rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:`Вибрана дата недоступна.`};var fB={};fB={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:`开始日期必须早于结束日期。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:`所选日期不可用。`};var pB={};pB={rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:`開始日期必須在結束日期之前。`,rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:`所選日期無法使用。`};var mB={};mB={"ar-AE":Pz,"bg-BG":Fz,"cs-CZ":Iz,"da-DK":Lz,"de-DE":Rz,"el-GR":zz,"en-US":Bz,"es-ES":Vz,"et-EE":Hz,"fi-FI":Uz,"fr-FR":Wz,"he-IL":Gz,"hr-HR":Kz,"hu-HU":qz,"it-IT":Jz,"ja-JP":Yz,"ko-KR":Xz,"lt-LT":Zz,"lv-LV":Qz,"nb-NO":$z,"nl-NL":eB,"pl-PL":tB,"pt-BR":nB,"pt-PT":rB,"ro-RO":iB,"ru-RU":aB,"sk-SK":oB,"sl-SI":sB,"sr-SP":cB,"sv-SE":lB,"tr-TR":uB,"uk-UA":dB,"zh-CN":fB,"zh-TW":pB};function hB(e){return e&&e.__esModule?e.default:e}var gB=new ww(hB(mB));function _B(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return e}function vB(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&r?.(e)||!1,c=a||o||s,l=[];if(c){let e=_B(),r=new Aw(e,ww.getGlobalDictionaryForPackage(`@react-stately/datepicker`)||gB),c=new tA(e,xB({},i)),u=c.resolvedOptions().timeZone;o&&t!=null&&l.push(r.format(`rangeUnderflow`,{minValue:c.format(t.toDate(u))})),a&&n!=null&&l.push(r.format(`rangeOverflow`,{maxValue:c.format(n.toDate(u))})),s&&l.push(r.format(`unavailableDate`))}return{isInvalid:c,validationErrors:l,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}var yB={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`},bB={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`};function xB(e,t){e={...t.shouldForceLeadingZeros?bB:yB,...e};let n=t.granularity||`minute`,r=Object.keys(e),i=r.indexOf(t.maxGranularity??`year`);i<0&&(i=0);let a=r.indexOf(n);if(a<0&&(a=2),i>a)throw Error(`maxGranularity must be greater than granularity`);let o=r.slice(i,a+1).reduce((t,n)=>(t[n]=e[n],t),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||`UTC`,(n===`hour`||n===`minute`||n===`second`)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName=`short`),t.showEra&&i===0&&(o.era=`short`),o}function SB(e,t){if(e===null)return null;if(e)return iO(e,t)}function CB(e,t,n,r){if(e)return SB(e,n);let i=iO(LD(r??UD()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t===`year`||t===`month`||t===`day`?nO(i):r?i:rO(i)}function wB(e,t){let n=e&&`timeZone`in e?e.timeZone:void 0,r=e&&`minute`in e?`minute`:`day`;if(e&&t&&!(t in e))throw Error(`Invalid granularity `+t+` for value `+e.toString());let[i,a]=(0,x.useState)([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||=e?r:i[0];let o=e?n:i[1];return[t,o]}var TB=new ww({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`},is:{year:`áááá`,month:`mm`,day:`dd`},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`},nb:{year:`åååå`,month:`mm`,day:`dd`},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:`дд`},"sr-Latn":{year:`gggg`,month:`mm`,day:`dd`},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:`日`}},`en`);function EB(e,t,n){return e===`era`||e===`dayPeriod`?t:e===`year`||e===`month`||e===`day`?TB.getStringForLocale(e,n):`––`}var DB=class e{constructor(e,t,n){if(this.era=n?.era??null,this.calendar=e,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset=`offset`in(n??{})?n.offset:null,this.hour!=null){let[e,n]=kB(this.hour,t);this.dayPeriod=e,this.hour=n}}copy(){let t=new e(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(e){return e.every(e=>this[e]!=null)}validate(e,t){return t.every(t=>{if((t===`hour`||t===`dayPeriod`)&&`hour`in e){let[t,n]=kB(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===n}return this[t]===e[t]})}isCleared(e){return e.every(e=>this[e]===null)}set(e,t,n){let r=this.copy();return r[e]=t,e===`hour`&&r.dayPeriod==null&&`hour`in n&&(r.dayPeriod=kB(n.hour,this.hourCycle)[0]),e===`year`&&r.era==null&&(r.era=n.era),e!==`second`&&e!==`literal`&&e!==`timeZoneName`&&(r.offset=null),r}clear(e){let t=this.copy();return t[e]=null,e===`year`&&(t.era=null),t.offset=null,t}cycle(e,t,n,r){let i=this.copy();if(i[e]==null&&e!==`dayPeriod`&&e!==`era`){if(e===`hour`&&`hour`in n){let[e,t]=kB(n.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=n[e];return e===`year`&&i.era==null&&(i.era=n.era),i}switch(e){case`era`:{let e=this.calendar.getEras(),n=e.indexOf(i.era);n=OB(n,t,0,e.length-1),i.era=e[n];break}case`year`:{let r=new UO(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);r=r.cycle(e,t,{round:e===`year`}),i.era=r.era,i.year=r.year;break}case`month`:i.month=OB(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case`day`:i.day=OB(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case`hour`:{let e=r.some(e=>[`year`,`month`,`day`].includes(e));if(`timeZone`in n&&(!e||i.year!=null&&i.month!=null&&i.day!=null)){let e=this.toValue(n);e=e.cycle(`hour`,t,{hourCycle:this.hourCycle===`h12`?12:24,round:!1});let[r,a]=kB(e.hour,this.hourCycle);i.hour=a,i.dayPeriod=r,i.offset=e.offset}else{let e=i.hour??0,r=this.getSegmentLimits(`hour`);i.hour=OB(e,t,r.minValue,r.maxValue),i.dayPeriod==null&&`hour`in n&&(i.dayPeriod=kB(n.hour,this.hourCycle)[0])}break}case`dayPeriod`:i.dayPeriod=OB(i.dayPeriod??0,t,0,1);break;case`minute`:i.minute=OB(i.minute??0,t,0,59,!0);break;case`second`:i.second=OB(i.second??0,t,0,59,!0)}return i}toValue(e){if(`hour`in e){let t=this.hour;t==null?(this.hourCycle===`h12`||this.hourCycle===`h11`)&&(t=this.dayPeriod===1?12:0):t=AB(t,this.dayPeriod??0,this.hourCycle);let n=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return`offset`in n&&this.offset!=null&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day})}getSegmentLimits(e){switch(e){case`era`:{let e=this.calendar.getEras();return{value:this.era==null?e.length-1:e.indexOf(this.era),minValue:0,maxValue:e.length-1}}case`year`:return{value:this.year,minValue:1,maxValue:9999};case`month`:return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case`day`:return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case`dayPeriod`:return{value:this.dayPeriod,minValue:0,maxValue:1};case`hour`:{let e=0,t=23;return this.hourCycle===`h12`?(e=1,t=12):this.hourCycle===`h11`&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case`minute`:return{value:this.minute,minValue:0,maxValue:59};case`second`:return{value:this.second,minValue:0,maxValue:59}}}};function OB(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function kB(e,t){let n=+(e>=12);switch(t){case`h11`:e>=12&&(e-=12);break;case`h12`:e===0?e=12:e>12&&(e-=12);break;case`h23`:n=null;break;case`h24`:e+=1,n=null}return[n,e]}function AB(e,t,n){switch(n){case`h11`:t===1&&(e+=12);break;case`h12`:e===12&&(e=0),t===1&&(e+=12);break;case`h24`:--e}return e}var jB={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},MB={year:5,month:2,day:7,hour:2,minute:15,second:15},NB={dayperiod:`dayPeriod`,relatedYear:`year`,yearName:`literal`,unknown:`literal`};function PB(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:c,isDateUnavailable:l}=e,u=e.value||e.defaultValue||e.placeholderValue||null,[d,f]=wB(u,e.granularity),p=f||`UTC`;if(u&&!(d in u))throw Error(`Invalid granularity `+d+` for value `+u.toString());let[m,h]=(0,x.useMemo)(()=>{let r=new tA(t,{dateStyle:`short`,timeStyle:`short`,hour12:e.hourCycle==null?void 0:e.hourCycle===12}).resolvedOptions();return[n(r.calendar),r.hourCycle]},[t,e.hourCycle,n]),[g,_]=Iw(e.value,e.defaultValue??null,e.onChange),[v]=(0,x.useState)(g),y=(0,x.useMemo)(()=>SB(g,m)??null,[g,m]),[b,S]=(0,x.useState)(()=>new DB(m,h,y)),C=m.identifier===`gregory`&&b.era===`BC`,w=(0,x.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??`year`,timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:C,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,C]),T=(0,x.useMemo)(()=>xB({},w),[w]),E=(0,x.useMemo)(()=>new tA(t,T),[t,T]),D=(0,x.useMemo)(()=>E.resolvedOptions(),[E]),O=(0,x.useMemo)(()=>CB(e.placeholderValue,d,m,f),[e.placeholderValue,d,m,f]),k=(0,x.useMemo)(()=>{let t=h===`h11`||h===`h12`,n=[`era`,`year`,`month`,`day`,`hour`,...t?[`dayPeriod`]:[],`minute`,`second`],r=n.indexOf(e.maxGranularity||`era`),i=n.indexOf(d===`hour`&&t?`dayPeriod`:d);return n.slice(r,i+1)},[e.maxGranularity,d,h]),[A,j]=(0,x.useState)(y),[M,ee]=(0,x.useState)(m),[N,P]=(0,x.useState)(h);y===A&&h===N&&ID(m,M)||(b=new DB(m,h,y),j(y),ee(m),P(h),S(b));let te=t=>{if(!(e.isDisabled||e.isReadOnly)){if(t==null||t instanceof DB&&t.isCleared(k))S(new DB(m,h,y)),_(null);else if(!(t instanceof DB))t=iO(t,u?.calendar||new FD),S(new DB(m,h,y)),_(t);else{if(t.isComplete(k)){let e=t.toValue(y??O);if(t.validate(e,k)){let t=iO(e,u?.calendar||new FD);if(!g||t.compare(g)!==0){S(new DB(m,h,y)),_(t);return}}}S(t)}}},F=(0,x.useMemo)(()=>b.toValue(y??O).toDate(p),[b,p,y,O]),ne=(0,x.useMemo)(()=>FB(F,b,E,D,m,t,d),[F,E,D,b,m,t,d]),re=(e,t)=>{te(b.cycle(e,t,O,k))},ie=(0,x.useMemo)(()=>vB(g,s,c,l,w),[g,s,c,l,w]),ae=MA({...e,value:g,builtinValidation:ie}),oe=ae.displayValidation.isInvalid,se=e.validationState||(oe?`invalid`:null);return{...ae,value:y,defaultValue:e.defaultValue??v,dateValue:F,calendar:m,setValue:te,segments:ne,dateFormatter:E,validationState:se,isInvalid:oe,granularity:d,maxGranularity:e.maxGranularity??`year`,isDisabled:i,isReadOnly:a,isRequired:o,increment(e){re(e,1)},decrement(e){re(e,-1)},incrementPage(e){re(e,MB[e]||1)},decrementPage(e){re(e,-(MB[e]||1))},incrementToMax(e){let t=e===`hour`&&h===`h12`?11:b.getSegmentLimits(e).maxValue;te(b.set(e,t,O))},decrementToMin(e){let t=e===`hour`&&h===`h12`?12:b.getSegmentLimits(e).minValue;te(b.set(e,t,O))},setSegment(e,t){te(b.set(e,t,O))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&b.isComplete(k)){let e=iO(b.toValue(y??O),u?.calendar||new FD);g&&e.compare(g)===0||_(e),S(new DB(m,h,y))}},clearSegment(e){let t=b;e!==`timeZoneName`&&e!==`literal`&&(t=b.clear(e)),te(t)},formatValue(e){if(!y)return``;let n=xB(e,w);return new tA(t,n).format(F)},getDateFormatter(e,t){return new tA(e,xB({},{...w,...t}))}}}function FB(e,t,n,r,i,a,o){let s=[`hour`,`minute`,`second`],c=n.formatToParts(e),l=new qE(a,{useGrouping:!1}),u=new qE(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of c)if(e.type===`year`||e.type===`month`||e.type===`day`||e.type===`hour`){let n=t[e.type]??0;e.value=r[e.type]===`2-digit`?u.format(n):l.format(n)}let d=[];for(let e of c){let n=NB[e.type]||e.type,r=jB[n];n===`era`&&i.getEras().length===1&&(r=!1);let c=jB[n]&&t[e.type]==null,l=jB[n]?EB(n,e.value,a):null,u={type:n,text:c?l:e.value,...t.getSegmentLimits(n),isPlaceholder:c,placeholder:l,isEditable:r};n===`hour`?(d.push({type:`literal`,text:``,isPlaceholder:!1,placeholder:``,isEditable:!1}),d.push(u),n===o&&d.push({type:`literal`,text:``,isPlaceholder:!1,placeholder:``,isEditable:!1})):s.includes(n)&&n===o?(d.push(u),d.push({type:`literal`,text:``,isPlaceholder:!1,placeholder:``,isEditable:!1})):d.push(u)}return d}var IB=(0,x.createContext)(null),LB=(0,x.createContext)(null),RB=(0,x.createContext)(null),zB=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,IB);let{validationBehavior:n}=dS(RA)||{},r=e.validationBehavior??n??`native`,{locale:i}=bw(),a=PB({...e,locale:i,createCalendar:$k,validationBehavior:r}),o=(0,x.useRef)(null),[s,c]=pS(!e[`aria-label`]&&!e[`aria-labelledby`]),l=(0,x.useRef)(null),{labelProps:u,fieldProps:d,inputProps:f,descriptionProps:p,errorMessageProps:m,...h}=Oz({...mS(e),label:c,inputRef:l,validationBehavior:r},a,o),g=uS({...mS(e),values:{state:a,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:e.isRequired||!1},defaultClassName:`react-aria-DateField`}),_=K(e,{global:!0});return delete _.id,x.createElement(lS,{values:[[LB,a],[oj,{...d,ref:o,isInvalid:a.isInvalid,isDisabled:a.isDisabled}],[cj,{...f,ref:l}],[HE,{...u,ref:s,elementType:`span`}],[TD,{slots:{description:p,errorMessage:m}}],[wA,h]]},x.createElement(U.div,{..._,...g,ref:t,slot:e.slot||void 0,"data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":e.isRequired||void 0}),x.createElement(BR,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:a}))}),BB=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(LB),r=(0,x.useContext)(RB);return n||r?x.createElement(HB,{...e,ref:t}):x.createElement(VB,{...e,ref:t})}),VB=(0,x.forwardRef)((e,t)=>{let[n,r]=fS({slot:e.slot},t,IB),{locale:i}=bw(),a=PB({...n,locale:i,createCalendar:$k}),o=(0,x.useRef)(null),{fieldProps:s,inputProps:c}=Oz({...n,inputRef:o},a,r);return x.createElement(lS,{values:[[LB,a],[cj,{...c,ref:o}],[oj,{...s,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},x.createElement(HB,e))}),HB=(0,x.forwardRef)((e,t)=>{let{className:n,children:r}=e,i=(0,x.useContext)(LB),a=(0,x.useContext)(RB),o=i??a;return x.createElement(x.Fragment,null,x.createElement(sj,{...e,ref:t,slot:e.slot||void 0,className:n??`react-aria-DateInput`,isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((e,t)=>(0,x.cloneElement)(r(e),{key:t}))),x.createElement(uj,{className:``}))}),UB=(0,x.forwardRef)(function({segment:e,...t},n){let r=(0,x.useContext)(LB),i=(0,x.useContext)(RB),a=r??i,o=sS(n),{segmentProps:s}=Mz(e,a,o),{focusProps:c,isFocused:l,isFocusVisible:u}=NE(),{hoverProps:d,isHovered:f}=zE({...t,isDisabled:a.isDisabled||e.type===`literal`}),p=uS({...t,values:{...e,isReadOnly:a.isReadOnly,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:f,isFocused:l,isFocusVisible:u},defaultChildren:e.text,defaultClassName:`react-aria-DateSegment`});return x.createElement(U.span,{...H(K(t,{global:!0}),s,c,d),...p,style:s.style,ref:o,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":a.isReadOnly||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":f||void 0,"data-focused":l||void 0,"data-focus-visible":u||void 0})});function WB(e,t,n){let{isDisabled:r}=e,i=nS(),a=nS(),o=Xx(),s=(0,x.useRef)(null);cw(n,`beforematch`,(0,x.useCallback)(()=>{s.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute(`hidden`,`until-found`)}),(0,NT.flushSync)(()=>{t.toggle()})},[n,t]));let c=(0,x.useRef)(null);return Rx(()=>{if(s.current&&cancelAnimationFrame(s.current),n.current&&!o){let e=n.current;c.current==null||typeof e.getAnimations!=`function`?t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)):(e.setAttribute(`hidden`,`until-found`),e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`)):t.isExpanded!==c.current&&(t.isExpanded?(e.removeAttribute(`hidden`),e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty(`--disclosure-panel-width`,`auto`),e.style.setProperty(`--disclosure-panel-height`,`auto`)}).catch(()=>{})):(e.style.setProperty(`--disclosure-panel-width`,e.scrollWidth+`px`),e.style.setProperty(`--disclosure-panel-height`,e.scrollHeight+`px`),window.getComputedStyle(e).height,e.style.setProperty(`--disclosure-panel-width`,`0px`),e.style.setProperty(`--disclosure-panel-height`,`0px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute(`hidden`,`until-found`)).catch(()=>{}))),c.current=t.isExpanded}},[r,n,t.isExpanded,o]),(0,x.useEffect)(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:i,"aria-expanded":t.isExpanded,"aria-controls":a,onPress:e=>{!r&&e.pointerType!==`keyboard`&&t.toggle()},isDisabled:r,onPressStart(e){e.pointerType===`keyboard`&&!r&&t.toggle()}},panelProps:{id:a,role:`group`,"aria-labelledby":i,"aria-hidden":!t.isExpanded,hidden:o?!t.isExpanded:void 0}}}function GB(e){let[t,n]=Iw(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);return{isExpanded:t,setExpanded:n,expand:(0,x.useCallback)(()=>{n(!0)},[n]),collapse:(0,x.useCallback)(()=>{n(!1)},[n]),toggle:(0,x.useCallback)(()=>{n(!t)},[n,t])}}var KB=(0,x.createContext)(null),qB=(0,x.createContext)(null),JB=(0,x.createContext)(null),YB=(0,x.createContext)(null),XB=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,qB);let n=(0,x.useContext)(KB),{id:r,...i}=e,a=nS();r||=a;let o=n?n.expandedKeys.has(r):e.isExpanded,s=GB({...e,isExpanded:o,onExpandedChange(t){n&&n.toggleKey(r),e.onExpandedChange?.(t)}}),c=x.useRef(null),l=e.isDisabled||n?.isDisabled||!1,{buttonProps:u,panelProps:d}=WB({...e,isExpanded:o,isDisabled:l},s,c),{isFocusVisible:f,focusProps:p}=NE({within:!0}),m=uS({...e,id:void 0,defaultClassName:`react-aria-Disclosure`,values:{isExpanded:s.isExpanded,isDisabled:l,isFocusVisibleWithin:f,state:s}}),h=K(i,{global:!0});return x.createElement(lS,{values:[[yD,{slots:{[cS]:{},trigger:u}}],[YB,{panelProps:d,panelRef:c}],[JB,s]]},x.createElement(U.div,{...H(h,m,p),ref:t,"data-expanded":s.isExpanded||void 0,"data-disabled":l||void 0,"data-focus-visible-within":f||void 0},m.children))}),ZB=(0,x.forwardRef)(function(e,t){let{role:n=`group`}=e,{panelProps:r,panelRef:i}=(0,x.useContext)(YB),{isFocusVisible:a,focusProps:o}=NE({within:!0}),s=uS({...e,defaultClassName:`react-aria-DisclosurePanel`,values:{isFocusVisibleWithin:a}}),c=K(e,{global:!0,labelable:!0});return x.createElement(U.div,{...H(c,s,r,o),ref:aS(t,i),role:n,"data-focus-visible-within":a||void 0},x.createElement(lS,{values:[[yD,null]]},e.children))}),QB=function(e){return e[e.none=0]=`none`,e[e.cancel=0]=`cancel`,e[e.move=1]=`move`,e[e.copy=2]=`copy`,e[e.link=4]=`link`,e[e.all=7]=`all`,e}({}),$B={...QB,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},eV=rV($B);eV[7]=`all`;var tV={none:`cancel`,link:`link`,copy:`copy`,move:`move`},nV=rV(tV);function rV(e){let t={};for(let n in e)t[e[n]]=n;return t}var iV=new Set([`text/plain`,`text/uri-list`,`text/html`]),aV=`application/vnd.react-aria.items+json`,oV=`application/octet-stream`,sV=Symbol();function cV(e){let t=new Set;for(let n of e)for(let e of Object.keys(n))t.add(e);return t}function lV(e){return e||=`virtual`,e===`pointer`&&(e=`virtual`),e===`virtual`&&typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(pointer: coarse)`).matches&&(e=`touch`),e}function uV(){return lV(VC())}function dV(){return lV(zC())}function fV(e,t){let n=new Map,r=!1,i=[];for(let e of t){let t=Object.keys(e);t.length>1&&(r=!0);let a={};for(let i of t){let t=n.get(i);t?r=!0:(t=[],n.set(i,t));let o=e[i];a[i]=o,t.push(o)}i.push(a)}for(let[t,r]of n)if(iV.has(t)){let n=r.join(`
|
|
74
|
+
`);e.items.add(n,t)}else e.items.add(r[0],t);if(r){let t=JSON.stringify(i);e.items.add(t,aV)}}var pV=class{constructor(e){this.types=new Set;let t=!1;for(let n of e.items)n.type!==`application/vnd.react-aria.items+json`&&(n.kind===`file`&&(t=!0),n.type?this.types.add(n.type):this.types.add(oV));this.includesUnknownTypes=!t&&e.types.includes(`Files`)}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===sV&&this.types.has(`application/octet-stream`)||e===`*/*`)return!0;if(typeof e==`string`){if(e.endsWith(`/*`)){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}};function mV(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(`application/vnd.react-aria.items+json`))try{let r=e.getData(aV),i=JSON.parse(r);for(let e of i)t.push({kind:`text`,types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])});n=!0}catch{}if(!n){let n=new Map;for(let r of e.items)if(r.kind===`string`)n.set(r.type||`application/octet-stream`,e.getData(r.type));else if(r.kind===`file`){if(typeof r.webkitGetAsEntry==`function`){let e=r.webkitGetAsEntry();if(!e)continue;e.isFile?t.push(gV(r.getAsFile())):e.isDirectory&&t.push(_V(e))}else t.push(gV(r.getAsFile()))}n.size>0&&t.push({kind:`text`,types:new Set(n.keys()),getText:e=>Promise.resolve(n.get(e))})}return t}function hV(e){return typeof e.text==`function`?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function gV(e){if(!e)throw Error(`No file provided`);return{kind:`file`,type:e.type||`application/octet-stream`,name:e.name,getText:()=>hV(e),getFile:()=>Promise.resolve(e)}}function _V(e){return{kind:`directory`,name:e.name,getEntries:()=>vV(e)}}async function*vV(e){let t=e.createReader(),n;do{n=await new Promise((e,n)=>{t.readEntries(e,n)});for(let e of n)e.isFile?yield gV(await yV(e)):e.isDirectory&&(yield _V(e))}while(n.length>0)}function yV(e){return new Promise((t,n)=>e.file(t,n))}function bV(e){return e.kind===`text`}var xV={draggingKeys:new Set};function SV(e){xV=e}var CV;function wV(e){CV=e}var TV=QB.none;function EV(e){TV=e}var DV=new Map,OV=new Map,kV=null,AV=new Set;function jV(e){return DV.set(e.element,e),kV?.updateValidDropTargets(),()=>{DV.delete(e.element),kV?.updateValidDropTargets()}}function MV(e,t){if(kV)throw Error(`Cannot begin dragging while already dragging`);kV=new RV(e,t),requestAnimationFrame(()=>{kV&&(kV.setup(),dV()===`keyboard`&&kV.next())});for(let e of AV)e()}function NV(){let[e,t]=(0,x.useState)(kV);return(0,x.useEffect)(()=>{let e=()=>t(kV);return AV.add(e),()=>{AV.delete(e)}},[]),e}function PV(){kV=null;for(let e of AV)e()}var FV=[`pointerdown`,`pointermove`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`,`pointerup`,`mousedown`,`mousemove`,`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`mouseup`,`touchstart`,`touchmove`,`touchend`,`focusin`,`focusout`],IV=[`pointerup`,`mouseup`,`touchend`],LV={keyboard:`dragStartedKeyboard`,touch:`dragStartedTouch`,virtual:`dragStartedVirtual`},RV=class{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener(`keydown`,this.onKeyDown,!0),document.addEventListener(`keyup`,this.onKeyUp,!0),window.addEventListener(`focus`,this.onFocus,!0),window.addEventListener(`blur`,this.onBlur,!0),document.addEventListener(`click`,this.onClick,!0),document.addEventListener(`pointerdown`,this.onPointerDown,!0);for(let e of FV)document.addEventListener(e,this.cancelEvent,!0);this.mutationObserver=new MutationObserver(()=>this.updateValidDropTargets()),this.updateValidDropTargets(),hD(this.stringFormatter.format(LV[dV()]))}teardown(){document.removeEventListener(`keydown`,this.onKeyDown,!0),document.removeEventListener(`keyup`,this.onKeyUp,!0),window.removeEventListener(`focus`,this.onFocus,!0),window.removeEventListener(`blur`,this.onBlur,!0),document.removeEventListener(`click`,this.onClick,!0),document.removeEventListener(`pointerdown`,this.onPointerDown,!0);for(let e of FV)document.removeEventListener(e,this.cancelEvent,!0);this.mutationObserver?.disconnect(),this.restoreAriaHidden?.()}onKeyDown(e){this.cancelEvent(e),e.key===`Escape`?this.cancel():(e.key===`Tab`&&!(e.metaKey||e.altKey||e.ctrlKey)&&(e.shiftKey?this.previous():this.next()),typeof this.currentDropTarget?.onKeyDown==`function`&&this.currentDropTarget.onKeyDown(e,this.dragTarget))}onKeyUp(e){this.cancelEvent(e),e.key===`Enter`&&(e.altKey||W(this.getCurrentActivateButton(),G(e))?this.activate(this.currentDropTarget,this.currentDropItem):this.drop())}getCurrentActivateButton(){return this.currentDropItem?.activateButtonRef?.current??this.currentDropTarget?.activateButtonRef?.current??null}onFocus(e){let t=this.getCurrentActivateButton(),n=G(e);if(n===t){this.cancelEvent(e);return}if(n!==this.dragTarget.element&&this.cancelEvent(e),!(n instanceof HTMLElement)||n===this.dragTarget.element)return;let r=this.validDropTargets.find(e=>e.element===n)||this.validDropTargets.find(e=>W(e.element,n));if(!r){this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus();return}let i=OV.get(n);r&&this.setCurrentDropTarget(r,i)}onBlur(e){let t=this.getCurrentActivateButton();t&&e.relatedTarget===t?this.cancelEvent(e):(G(e)!==this.dragTarget.element&&this.cancelEvent(e),e.relatedTarget&&e.relatedTarget instanceof HTMLElement||(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus()))}onClick(e){if(this.cancelEvent(e),lC(e)||this.isVirtualClick){let t=OV.values(),n=G(e),r=[...t].find(e=>e.element===n||W(e.activateButtonRef?.current,n)),i=this.validDropTargets.find(e=>W(e.element,n));if(W(r?.activateButtonRef?.current??i?.activateButtonRef?.current,n)&&i){this.activate(i,r);return}if(G(e)===this.dragTarget.element){this.cancel();return}i&&(this.setCurrentDropTarget(i,r),this.drop(r))}}onPointerDown(e){this.cancelEvent(e),this.isVirtualClick=uC(e)}cancelEvent(e){let t=G(e);(e.type!==`focusin`&&e.type!==`focusout`||t!==this.dragTarget?.element&&t!==this.getCurrentActivateButton())&&(IV.includes(e.type)||e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=zV(this.dragTarget),this.validDropTargets.length>0){let e=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(e),...this.validDropTargets.slice(0,e)]}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let e=cV(this.dragTarget.items),t=[...OV.values()].filter(t=>typeof t.getDropOperation!=`function`||t.getDropOperation(e,this.dragTarget.allowedDropOperations)!==`cancel`),n=this.validDropTargets.filter(e=>!t.some(t=>W(e.element,t.element)));this.restoreAriaHidden=wF([this.dragTarget.element,...t.flatMap(e=>e.activateButtonRef?.current?[e.element,e.activateButtonRef?.current]:[e.element]),...n.flatMap(e=>e.activateButtonRef?.current?[e.element,e.activateButtonRef?.current]:[e.element])],{shouldUseInert:!0}),this.mutationObserver.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:[`aria-hidden`,`inert`]})}next(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[0]);return}let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[0]):e===this.validDropTargets.length-1?this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e+1])}previous(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):e===0?this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e-1])}findNearestDropTarget(){let e=this.dragTarget.element.getBoundingClientRect(),t=1/0,n=-1,r=-1;for(let i=0;i<this.validDropTargets.length;i++){let a=this.validDropTargets[i];r<0&&W(a.element,this.dragTarget.element)&&(r=i);let o=a.element.getBoundingClientRect(),s=o.left-e.left,c=o.top-e.top,l=s*s+c*c;l<t&&(t=l,n=i)}return r>=0?r:n}setCurrentDropTarget(e,t){if(e!==this.currentDropTarget){if(this.currentDropTarget&&typeof this.currentDropTarget.onDropExit==`function`){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:`dropexit`,x:e.left+e.width/2,y:e.top+e.height/2})}if(this.currentDropTarget=e,e){if(typeof e.onDropEnter==`function`){let t=e.element.getBoundingClientRect();e.onDropEnter({type:`dropenter`,x:t.left+t.width/2,y:t.top+t.height/2},this.dragTarget)}t||e?.element.focus()}}if(t!=null&&t!==this.currentDropItem&&(this.currentDropTarget&&typeof this.currentDropTarget.onDropTargetEnter==`function`&&this.currentDropTarget.onDropTargetEnter(t.target),t.element.focus(),this.currentDropItem=t,!this.initialFocused)){let e=t?.element.getAttribute(`aria-label`);e&&hD(e,`polite`),this.initialFocused=!0}}end(){if(this.teardown(),PV(),typeof this.dragTarget.onDragEnd==`function`){let e=(this.currentDropTarget&&this.dropOperation!==`cancel`?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:`dragend`,x:e.x+e.width/2,y:e.y+e.height/2,dropOperation:this.dropOperation||`cancel`})}this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&kS()?.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})),this.setCurrentDropTarget(null)}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest(`[aria-hidden="true"], [inert]`)||this.dragTarget.element.focus(),kS()?.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})),hD(this.stringFormatter.format(`dropCanceled`))}drop(e){if(!this.currentDropTarget)this.cancel();else{if(typeof e?.getDropOperation==`function`){let t=cV(this.dragTarget.items);this.dropOperation=e.getDropOperation(t,this.dragTarget.allowedDropOperations)}else if(typeof this.currentDropTarget.getDropOperation==`function`){let e=cV(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(e,this.dragTarget.allowedDropOperations)}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if(typeof this.currentDropTarget.onDrop==`function`){let t=this.dragTarget.items.map(e=>({kind:`text`,types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])})),n=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:`drop`,x:n.left+n.width/2,y:n.top+n.height/2,items:t,dropOperation:this.dropOperation},e?.target??null)}this.end(),hD(this.stringFormatter.format(`dropComplete`))}}activate(e,t){if(e&&typeof e.onDropActivate==`function`){let n=t?.target??null,r=e.element.getBoundingClientRect();e.onDropActivate({type:`dropactivate`,x:r.left+r.width/2,y:r.top+r.height/2},n)}}};function zV(e){let t=cV(e.items);return[...DV.values()].filter(n=>n.element.closest(`[aria-hidden="true"], [inert]`)?!1:typeof n.getDropOperation!=`function`||n.getDropOperation(t,e.allowedDropOperations)!==`cancel`)}var BV={};BV={dragDescriptionKeyboard:`اضغط Enter لبدء السحب.`,dragDescriptionKeyboardAlt:`اضغط على Alt + Enter لبدء السحب.`,dragDescriptionLongPress:`اضغط باستمرار لبدء السحب.`,dragDescriptionTouch:`اضغط مرتين لبدء السحب.`,dragDescriptionVirtual:`انقر لبدء السحب.`,dragItem:e=>`\u{627}\u{633}\u{62D}\u{628} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{627}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{627}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}\u{629}`})}`,dragSelectedKeyboard:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Enter \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} \u{645}\u{641}\u{62A}\u{627}\u{62D}\u{64A} Alt + Enter \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragSelectedLongPress:(e,t)=>`\u{627}\u{636}\u{63A}\u{637} \u{628}\u{627}\u{633}\u{62A}\u{645}\u{631}\u{627}\u{631} \u{644}\u{644}\u{633}\u{62D}\u{628} ${t.plural(e.count,{one:`عدد العناصر المختارة`,other:`عدد العناصر المختارة`})}.`,dragStartedKeyboard:`بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.`,dragStartedTouch:`بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.`,dragStartedVirtual:`بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.`,dropCanceled:`تم إلغاء الإفلات.`,dropComplete:`اكتمل الإفلات.`,dropDescriptionKeyboard:`اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.`,dropDescriptionTouch:`اضغط مرتين للإفلات.`,dropDescriptionVirtual:`انقر للإفلات.`,dropIndicator:`مؤشر الإفلات`,dropOnItem:e=>`\u{625}\u{641}\u{644}\u{627}\u{62A} ${e.itemText}`,dropOnRoot:`الإفلات`,endDragKeyboard:`السحب. اضغط Enter لإلغاء السحب.`,endDragTouch:`السحب. اضغط مرتين لإلغاء السحب.`,endDragVirtual:`السحب. انقر لإلغاء السحب.`,insertAfter:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{628}\u{639}\u{62F} ${e.itemText}`,insertBefore:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{642}\u{628}\u{644} ${e.itemText}`,insertBetween:e=>`\u{623}\u{62F}\u{62E}\u{644} \u{628}\u{64A}\u{646} ${e.beforeItemText} \u{648} ${e.afterItemText}`};var VV={};VV={dragDescriptionKeyboard:`Натиснете „Enter“, за да започнете да плъзгате.`,dragDescriptionKeyboardAlt:`Натиснете Alt + Enter, за да започнете да плъзгате.`,dragDescriptionLongPress:`Натиснете продължително, за да започнете да плъзгате.`,dragDescriptionTouch:`Натиснете двукратно, за да започнете да плъзгате.`,dragDescriptionVirtual:`Щракнете, за да започнете да плъзгате.`,dragItem:e=>`\u{41F}\u{43B}\u{44A}\u{437}\u{43D}\u{438} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{43B}\u{44A}\u{437}\u{43D}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Enter, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt \u{438} Enter, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragSelectedLongPress:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E}, \u{437}\u{430} \u{434}\u{430} \u{43F}\u{43B}\u{44A}\u{437}\u{43D}\u{435}\u{442}\u{435} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,dragStartedKeyboard:`Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.`,dragStartedTouch:`Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.`,dragStartedVirtual:`Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.`,dropCanceled:`Пускането е отменено.`,dropComplete:`Пускането е завършено.`,dropDescriptionKeyboard:`Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.`,dropDescriptionTouch:`Натиснете двукратно за пускане.`,dropDescriptionVirtual:`Щракнете за пускане.`,dropIndicator:`индикатор за пускане`,dropOnItem:e=>`\u{41F}\u{443}\u{441}\u{43D}\u{438} \u{432}\u{44A}\u{440}\u{445}\u{443} ${e.itemText}`,dropOnRoot:`Пусни върху`,endDragKeyboard:`Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.`,endDragTouch:`Плъзгане. Натиснете двукратно за отмяна на плъзгането.`,endDragVirtual:`Плъзгане. Щракнете за отмяна.`,insertAfter:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{441}\u{43B}\u{435}\u{434} ${e.itemText}`,insertBefore:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{43F}\u{440}\u{435}\u{434}\u{438} ${e.itemText}`,insertBetween:e=>`\u{412}\u{43C}\u{44A}\u{43A}\u{43D}\u{438} \u{43C}\u{435}\u{436}\u{434}\u{443} ${e.beforeItemText} \u{438} ${e.afterItemText}`};var HV={};HV={dragDescriptionKeyboard:`Stisknutím klávesy Enter začnete s přetahováním.`,dragDescriptionKeyboardAlt:`Stisknutím Alt + Enter zahájíte přetahování.`,dragDescriptionLongPress:`Dlouhým stisknutím zahájíte přetahování.`,dragDescriptionTouch:`Poklepáním začnete s přetahováním.`,dragDescriptionVirtual:`Kliknutím začnete s přetahováním.`,dragItem:e=>`P\u{159}et\xe1hnout ${e.itemText}`,dragSelectedItems:(e,t)=>`P\u{159}et\xe1hnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,few:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`,other:()=>`${t.number(e.count)} vybran\xfdch polo\u{17E}ek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknut\xedm kl\xe1vesy Enter p\u{159}et\xe1hn\u{11B}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknut\xedm Alt + Enter p\u{159}et\xe1hn\u{11B}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouh\xfdm stisknut\xedm p\u{159}et\xe1hnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybran\xe9 polo\u{17E}ky`})}.`,dragStartedKeyboard:`Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.`,dragStartedTouch:`Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.`,dragStartedVirtual:`Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.`,dropCanceled:`Přetažení bylo zrušeno.`,dropComplete:`Přetažení bylo dokončeno.`,dropDescriptionKeyboard:`Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.`,dropDescriptionTouch:`Poklepáním přetažení dokončete.`,dropDescriptionVirtual:`Kliknutím objekt přetáhněte.`,dropIndicator:`indikátor přetažení`,dropOnItem:e=>`P\u{159}et\xe1hnout na ${e.itemText}`,dropOnRoot:`Přetáhnout na`,endDragKeyboard:`Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.`,endDragTouch:`Probíhá přetahování. Poklepáním přetažení zrušíte.`,endDragVirtual:`Probíhá přetahování. Kliknutím přetažení zrušíte.`,insertAfter:e=>`Vlo\u{17E}it za ${e.itemText}`,insertBefore:e=>`Vlo\u{17E}it p\u{159}ed ${e.itemText}`,insertBetween:e=>`Vlo\u{17E}it mezi ${e.beforeItemText} a ${e.afterItemText}`};var UV={};UV={dragDescriptionKeyboard:`Tryk på Enter for at starte med at trække.`,dragDescriptionKeyboardAlt:`Tryk på Alt + Enter for at starte med at trække.`,dragDescriptionLongPress:`Tryk længe for at starte med at trække.`,dragDescriptionTouch:`Dobbelttryk for at starte med at trække.`,dragDescriptionVirtual:`Klik for at starte med at trække.`,dragItem:e=>`Tr\xe6k ${e.itemText}`,dragSelectedItems:(e,t)=>`Tr\xe6k ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk p\xe5 Enter for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk p\xe5 Alt + Enter for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk l\xe6nge for at tr\xe6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:`Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.`,dragStartedTouch:`Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.`,dragStartedVirtual:`Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.`,dropCanceled:`Slip annulleret.`,dropComplete:`Slip fuldført.`,dropDescriptionKeyboard:`Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.`,dropDescriptionTouch:`Dobbelttryk for at slippe.`,dropDescriptionVirtual:`Klik for at slippe.`,dropIndicator:`slip-indikator`,dropOnItem:e=>`Slip p\xe5 ${e.itemText}`,dropOnRoot:`Slip på`,endDragKeyboard:`Trækning. Tryk på enter for at annullere træk.`,endDragTouch:`Trækning. Dobbelttryk for at annullere træk.`,endDragVirtual:`Trækning. Klik for at annullere trækning.`,insertAfter:e=>`Inds\xe6t efter ${e.itemText}`,insertBefore:e=>`Inds\xe6t f\xf8r ${e.itemText}`,insertBetween:e=>`Inds\xe6t mellem ${e.beforeItemText} og ${e.afterItemText}`};var WV={};WV={dragDescriptionKeyboard:`Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.`,dragDescriptionKeyboardAlt:`Alt + Eingabe drücken, um den Ziehvorgang zu starten.`,dragDescriptionLongPress:`Lang drücken, um mit dem Ziehen zu beginnen.`,dragDescriptionTouch:`Tippen Sie doppelt, um den Ziehvorgang zu starten.`,dragDescriptionVirtual:`Zum Starten des Ziehvorgangs klicken.`,dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Objekt`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang dr\xfccken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xe4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xe4hlte Elemente`})} zu ziehen.`,dragStartedKeyboard:`Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.`,dragStartedTouch:`Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.`,dragStartedVirtual:`Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.`,dropCanceled:`Ablegen abgebrochen.`,dropComplete:`Ablegen abgeschlossen.`,dropDescriptionKeyboard:`Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.`,dropDescriptionTouch:`Tippen Sie doppelt, um das Objekt abzulegen.`,dropDescriptionVirtual:`Zum Ablegen klicken.`,dropIndicator:`Ablegeanzeiger`,dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:`Ablegen auf`,endDragKeyboard:`Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.`,endDragTouch:`Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.`,endDragVirtual:`Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.`,insertAfter:e=>`Nach ${e.itemText} einf\xfcgen`,insertBefore:e=>`Vor ${e.itemText} einf\xfcgen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einf\xfcgen`};var GV={};GV={dragDescriptionKeyboard:`Πατήστε Enter για έναρξη της μεταφοράς.`,dragDescriptionKeyboardAlt:`Πατήστε Alt + Enter για έναρξη της μεταφοράς.`,dragDescriptionLongPress:`Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.`,dragDescriptionTouch:`Πατήστε δύο φορές για έναρξη της μεταφοράς.`,dragDescriptionVirtual:`Κάντε κλικ για να ξεκινήσετε τη μεταφορά.`,dragItem:e=>`\u{39C}\u{3B5}\u{3C4}\u{3B1}\u{3C6}\u{3BF}\u{3C1}\u{3AC} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{39C}\u{3B5}\u{3C4}\u{3B1}\u{3C6}\u{3BF}\u{3C1}\u{3AC} \u{3C3}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}`,dragSelectedKeyboard:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Enter \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + Enter \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragSelectedLongPress:(e,t)=>`\u{3A0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3C3}\u{3CD}\u{3C1}\u{3B5}\u{3C4}\u{3B5} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,dragStartedKeyboard:`Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.`,dragStartedTouch:`Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.`,dragStartedVirtual:`Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.`,dropCanceled:`Η απόθεση ακυρώθηκε.`,dropComplete:`Η απόθεση ολοκληρώθηκε.`,dropDescriptionKeyboard:`Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.`,dropDescriptionTouch:`Πατήστε δύο φορές για απόθεση.`,dropDescriptionVirtual:`Κάντε κλικ για απόθεση.`,dropIndicator:`δείκτης απόθεσης`,dropOnItem:e=>`\u{391}\u{3C0}\u{3CC}\u{3B8}\u{3B5}\u{3C3}\u{3B7} \u{3C3}\u{3B5} ${e.itemText}`,dropOnRoot:`Απόθεση σε`,endDragKeyboard:`Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.`,endDragTouch:`Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.`,endDragVirtual:`Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.`,insertAfter:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3AC} \u{3B1}\u{3C0}\u{3CC} ${e.itemText}`,insertBefore:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3C0}\u{3C1}\u{3B9}\u{3BD} \u{3B1}\u{3C0}\u{3CC} ${e.itemText}`,insertBetween:e=>`\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3C9}\u{3B3}\u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3BE}\u{3CD} ${e.beforeItemText} \u{3BA}\u{3B1}\u{3B9} ${e.afterItemText}`};var KV={};KV={dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:`Press Enter to start dragging.`,dragDescriptionKeyboardAlt:`Press Alt + Enter to start dragging.`,dragDescriptionTouch:`Double tap to start dragging.`,dragDescriptionVirtual:`Click to start dragging.`,dragDescriptionLongPress:`Long press to start dragging.`,dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:`Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.`,dragStartedTouch:`Started dragging. Navigate to a drop target, then double tap to drop.`,dragStartedVirtual:`Started dragging. Navigate to a drop target, then click or press Enter to drop.`,endDragKeyboard:`Dragging. Press Enter to cancel drag.`,endDragTouch:`Dragging. Double tap to cancel drag.`,endDragVirtual:`Dragging. Click to cancel drag.`,dropDescriptionKeyboard:`Press Enter to drop. Press Escape to cancel drag.`,dropDescriptionTouch:`Double tap to drop.`,dropDescriptionVirtual:`Click to drop.`,dropCanceled:`Drop canceled.`,dropComplete:`Drop complete.`,dropIndicator:`drop indicator`,dropOnRoot:`Drop on`,dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`};var qV={};qV={dragDescriptionKeyboard:`Pulse Intro para empezar a arrastrar.`,dragDescriptionKeyboardAlt:`Pulse Intro para empezar a arrastrar.`,dragDescriptionLongPress:`Mantenga pulsado para comenzar a arrastrar.`,dragDescriptionTouch:`Pulse dos veces para iniciar el arrastre.`,dragDescriptionVirtual:`Haga clic para iniciar el arrastre.`,dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:`Se ha empezado a arrastrar. Pulse el tabulador para ir al destino donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.`,dragStartedTouch:`Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuación, pulse dos veces para soltar.`,dragStartedVirtual:`Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.`,dropCanceled:`Se ha cancelado la colocación.`,dropComplete:`Colocación finalizada.`,dropDescriptionKeyboard:`Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.`,dropDescriptionTouch:`Pulse dos veces para soltar.`,dropDescriptionVirtual:`Haga clic para soltar.`,dropIndicator:`indicador de colocación`,dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:`Soltar en`,endDragKeyboard:`Arrastrando. Pulse Intro para cancelar el arrastre.`,endDragTouch:`Arrastrando. Pulse dos veces para cancelar el arrastre.`,endDragVirtual:`Arrastrando. Haga clic para cancelar el arrastre.`,insertAfter:e=>`Insertar despu\xe9s de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`};var JV={};JV={dragDescriptionKeyboard:`Lohistamise alustamiseks vajutage klahvi Enter.`,dragDescriptionKeyboardAlt:`Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.`,dragDescriptionLongPress:`Vajutage pikalt lohistamise alustamiseks.`,dragDescriptionTouch:`Topeltpuudutage lohistamise alustamiseks.`,dragDescriptionVirtual:`Klõpsake lohistamise alustamiseks.`,dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksust`,other:()=>`${t.number(e.count)} valitud \xfcksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xfcksuse`,other:()=>`${t.number(e.count)} valitud \xfcksuse`})} lohistamiseks.`,dragStartedKeyboard:`Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.`,dragStartedTouch:`Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.`,dragStartedVirtual:`Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.`,dropCanceled:`Lohistamisest loobuti.`,dropComplete:`Lohistamine on tehtud.`,dropDescriptionKeyboard:`Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.`,dropDescriptionTouch:`Kukutamiseks topeltpuudutage.`,dropDescriptionVirtual:`Kukutamiseks klõpsake.`,dropIndicator:`lohistamise indikaator`,dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:`Kukuta asukohta`,endDragKeyboard:`Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.`,endDragTouch:`Lohistamine. Lohistamisest loobumiseks topeltpuudutage.`,endDragVirtual:`Lohistamine. Lohistamisest loobumiseks klõpsake.`,insertAfter:e=>`Sisesta ${e.itemText} j\xe4rele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`};var YV={};YV={dragDescriptionKeyboard:`Aloita vetäminen painamalla Enter-näppäintä.`,dragDescriptionKeyboardAlt:`Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.`,dragDescriptionLongPress:`Aloita vetäminen pitämällä painettuna.`,dragDescriptionTouch:`Aloita vetäminen kaksoisnapauttamalla.`,dragDescriptionVirtual:`Aloita vetäminen napsauttamalla.`,dragItem:e=>`Ved\xe4 kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Ved\xe4 ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Ved\xe4 painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ved\xe4 painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Ved\xe4 pit\xe4m\xe4ll\xe4 painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:`Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.`,dragStartedTouch:`Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.`,dragStartedVirtual:`Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.`,dropCanceled:`Pudotus peruutettu.`,dropComplete:`Pudotus suoritettu.`,dropDescriptionKeyboard:`Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.`,dropDescriptionTouch:`Pudota kaksoisnapauttamalla.`,dropDescriptionVirtual:`Pudota napsauttamalla.`,dropIndicator:`pudotuksen ilmaisin`,dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:`Pudota kohteeseen`,endDragKeyboard:`Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.`,endDragTouch:`Vedetään. Peruuta vetäminen kaksoisnapauttamalla.`,endDragVirtual:`Vedetään. Peruuta vetäminen napsauttamalla.`,insertAfter:e=>`Lis\xe4\xe4 kohteen ${e.itemText} j\xe4lkeen`,insertBefore:e=>`Lis\xe4\xe4 ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lis\xe4\xe4 kohteiden ${e.beforeItemText} ja ${e.afterItemText} v\xe4liin`};var XV={};XV={dragDescriptionKeyboard:`Appuyez sur Entrée pour commencer le déplacement.`,dragDescriptionKeyboardAlt:`Appuyez sur Alt\xA0+\xA0Entrée pour commencer à faire glisser.`,dragDescriptionLongPress:`Appuyez de manière prolongée pour commencer à faire glisser.`,dragDescriptionTouch:`Touchez deux fois pour commencer le déplacement.`,dragDescriptionVirtual:`Cliquez pour commencer le déplacement.`,dragItem:e=>`D\xe9placer ${e.itemText}`,dragSelectedItems:(e,t)=>`D\xe9placer ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entr\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt\xa0+\xa0Entr\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de mani\xe8re prolong\xe9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,dragStartedKeyboard:`Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.`,dragStartedTouch:`Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.`,dragStartedVirtual:`Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.`,dropCanceled:`Dépôt annulé.`,dropComplete:`Dépôt terminé.`,dropDescriptionKeyboard:`Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.`,dropDescriptionTouch:`Touchez deux fois pour déposer.`,dropDescriptionVirtual:`Cliquez pour déposer.`,dropIndicator:`indicateur de dépôt`,dropOnItem:e=>`D\xe9poser sur ${e.itemText}`,dropOnRoot:`Déposer sur`,endDragKeyboard:`Déplacement. Appuyez sur Entrée pour annuler le déplacement.`,endDragTouch:`Déplacement. Touchez deux fois pour annuler le déplacement.`,endDragVirtual:`Déplacement. Cliquez pour annuler le déplacement.`,insertAfter:e=>`Ins\xe9rer apr\xe8s ${e.itemText}`,insertBefore:e=>`Ins\xe9rer avant ${e.itemText}`,insertBetween:e=>`Ins\xe9rer entre ${e.beforeItemText} et ${e.afterItemText}`};var ZV={};ZV={dragDescriptionKeyboard:`הקש על Enter כדי להתחיל לגרור.`,dragDescriptionKeyboardAlt:`הקש Alt + Enter כדי להתחיל לגרור.`,dragDescriptionLongPress:`לחץ לחיצה ארוכה כדי להתחיל לגרור.`,dragDescriptionTouch:`הקש פעמיים כדי להתחיל בגרירה.`,dragDescriptionVirtual:`לחץ כדי להתחיל לגרור.`,dragItem:e=>`\u{5D2}\u{5E8}\u{5D5}\u{5E8} \u{5D0}\u{5EA} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E0}\u{5D1}\u{5D7}\u{5E8} ${t.number(e.count)}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}`,dragSelectedKeyboard:(e,t)=>`\u{5D4}\u{5E7}\u{5E9} \u{5E2}\u{5DC} Enter \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{5D4}\u{5E7}\u{5E9} Alt + Enter \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragSelectedLongPress:(e,t)=>`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5D2}\u{5E8}\u{5D5}\u{5E8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E9}\u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,dragStartedKeyboard:`התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.`,dragStartedTouch:`התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.`,dragStartedVirtual:`התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.`,dropCanceled:`השחרור בוטל.`,dropComplete:`השחרור הושלם.`,dropDescriptionKeyboard:`הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.`,dropDescriptionTouch:`הקש פעמיים כדי לשחרר.`,dropDescriptionVirtual:`לחץ כדי לשחרר.`,dropIndicator:`מחוון שחרור`,dropOnItem:e=>`\u{5E9}\u{5D7}\u{5E8}\u{5E8} \u{5E2}\u{5DC} ${e.itemText}`,dropOnRoot:`שחרר על`,endDragKeyboard:`גורר. הקש על Enter כדי לבטל את הגרירה.`,endDragTouch:`גורר. הקש פעמיים כדי לבטל את הגרירה.`,endDragVirtual:`גורר. לחץ כדי לבטל את הגרירה.`,insertAfter:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5D0}\u{5D7}\u{5E8}\u{5D9} ${e.itemText}`,insertBefore:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5DC}\u{5E4}\u{5E0}\u{5D9} ${e.itemText}`,insertBetween:e=>`\u{5D4}\u{5D5}\u{5E1}\u{5E3} \u{5D1}\u{5D9}\u{5DF} ${e.beforeItemText} \u{5DC}\u{5D1}\u{5D9}\u{5DF} ${e.afterItemText}`};var QV={};QV={dragDescriptionKeyboard:`Pritisnite Enter da biste počeli povlačiti.`,dragDescriptionKeyboardAlt:`Pritisnite Alt + Enter za početak povlačenja.`,dragDescriptionLongPress:`Dugo pritisnite za početak povlačenja.`,dragDescriptionTouch:`Dvaput dodirnite da biste počeli povlačiti.`,dragDescriptionVirtual:`Kliknite da biste počeli povlačiti.`,dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povla\u{10D}enje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:`Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.`,dragStartedTouch:`Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.`,dragStartedVirtual:`Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.`,dropCanceled:`Povlačenje je prekinuto.`,dropComplete:`Ispuštanje je dovršeno.`,dropDescriptionKeyboard:`Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.`,dropDescriptionTouch:`Dvaput dodirnite da biste ispustili stavku.`,dropDescriptionVirtual:`Kliknite da biste ispustili stavku.`,dropIndicator:`pokazatelj ispuštanja`,dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:`Ispustite na`,endDragKeyboard:`Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.`,endDragTouch:`Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.`,endDragVirtual:`Povlačenje. Kliknite da biste prekinuli povlačenje.`,insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite izme\u{111}u stavki ${e.beforeItemText} i ${e.afterItemText}`};var $V={};$V={dragDescriptionKeyboard:`Nyomja le az Enter billentyűt a húzás megkezdéséhez.`,dragDescriptionKeyboardAlt:`Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.`,dragDescriptionLongPress:`Hosszan nyomja meg a húzás elindításához.`,dragDescriptionTouch:`Koppintson duplán a húzás megkezdéséhez.`,dragDescriptionVirtual:`Kattintson a húzás megkezdéséhez.`,dragItem:e=>`${e.itemText} h\xfaz\xe1sa`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1sa`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billenty\u{171}ket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xf6lt elem`,other:()=>`${t.number(e.count)} kijel\xf6lt elem`})} h\xfaz\xe1s\xe1hoz.`,dragStartedKeyboard:`Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.`,dragStartedTouch:`Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.`,dragStartedVirtual:`Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.`,dropCanceled:`Elengedés megszakítva.`,dropComplete:`Elengedés teljesítve.`,dropDescriptionKeyboard:`Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.`,dropDescriptionTouch:`Koppintson duplán az elengedéshez.`,dropDescriptionVirtual:`Kattintson az elengedéshez.`,dropIndicator:`elengedésjelző`,dropOnItem:e=>`Elenged\xe9s erre: ${e.itemText}`,dropOnRoot:`Elengedés erre:`,endDragKeyboard:`Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.`,endDragTouch:`Húzás folyamatban. Koppintson duplán a húzás megszakításához.`,endDragVirtual:`Húzás folyamatban. Kattintson a húzás megszakításához.`,insertAfter:e=>`Besz\xfar\xe1s ${e.itemText} ut\xe1n`,insertBefore:e=>`Besz\xfar\xe1s ${e.itemText} el\xe9`,insertBetween:e=>`Besz\xfar\xe1s ${e.beforeItemText} \xe9s ${e.afterItemText} k\xf6z\xe9`};var eH={};eH={dragDescriptionKeyboard:`Premi Invio per iniziare a trascinare.`,dragDescriptionKeyboardAlt:`Premi Alt + Invio per iniziare a trascinare.`,dragDescriptionLongPress:`Premi a lungo per iniziare a trascinare.`,dragDescriptionTouch:`Tocca due volte per iniziare a trascinare.`,dragDescriptionVirtual:`Fai clic per iniziare a trascinare.`,dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:`Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.`,dragStartedTouch:`Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.`,dragStartedVirtual:`Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.`,dropCanceled:`Rilascio annullato.`,dropComplete:`Rilascio completato.`,dropDescriptionKeyboard:`Premi Invio per rilasciare. Premi Esc per annullare.`,dropDescriptionTouch:`Tocca due volte per rilasciare.`,dropDescriptionVirtual:`Fai clic per rilasciare.`,dropIndicator:`indicatore di rilascio`,dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:`Rilascia su`,endDragKeyboard:`Trascinamento. Premi Invio per annullare.`,endDragTouch:`Trascinamento. Tocca due volte per annullare.`,endDragVirtual:`Trascinamento. Fai clic per annullare.`,insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`};var tH={};tH={dragDescriptionKeyboard:`Enter キーを押してドラッグを開始してください。`,dragDescriptionKeyboardAlt:`Alt+Enter キーを押してドラッグを開始します。`,dragDescriptionLongPress:`長押ししてドラッグを開始します。`,dragDescriptionTouch:`ダブルタップしてドラッグを開始します。`,dragDescriptionVirtual:`クリックしてドラッグを開始します。`,dragItem:e=>`${e.itemText} \u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{9078}\u{629E}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{9078}\u{629E}\u{9805}\u{76EE}`})} \u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}`,dragSelectedKeyboard:(e,t)=>`Enter \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter \u{30AD}\u{30FC}\u{3092}\u{62BC}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{9577}\u{62BC}\u{3057}\u{3057}\u{3066}\u{3001}${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9078}\u{629E}\u{3057}\u{305F}\u{9805}\u{76EE}`})}\u{3092}\u{30C9}\u{30E9}\u{30C3}\u{30B0}\u{3057}\u{307E}\u{3059}\u{3002}`,dragStartedKeyboard:`ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。`,dragStartedTouch:`ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。`,dragStartedVirtual:`ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。`,dropCanceled:`ドロップがキャンセルされました。`,dropComplete:`ドロップが完了しました。`,dropDescriptionKeyboard:`Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。`,dropDescriptionTouch:`ダブルタップしてドロップします。`,dropDescriptionVirtual:`クリックしてドロップします。`,dropIndicator:`ドロップインジケーター`,dropOnItem:e=>`${e.itemText} \u{306B}\u{30C9}\u{30ED}\u{30C3}\u{30D7}`,dropOnRoot:`ドロップ場所`,endDragKeyboard:`ドラッグしています。Enter キーを押してドラッグをキャンセルします。`,endDragTouch:`ドラッグしています。ダブルタップしてドラッグをキャンセルします。`,endDragVirtual:`ドラッグしています。クリックしてドラッグをキャンセルします。`,insertAfter:e=>`${e.itemText} \u{306E}\u{5F8C}\u{306B}\u{633F}\u{5165}`,insertBefore:e=>`${e.itemText} \u{306E}\u{524D}\u{306B}\u{633F}\u{5165}`,insertBetween:e=>`${e.beforeItemText} \u{3068} ${e.afterItemText} \u{306E}\u{9593}\u{306B}\u{633F}\u{5165}`};var nH={};nH={dragDescriptionKeyboard:`드래그를 시작하려면 Enter를 누르세요.`,dragDescriptionKeyboardAlt:`드래그를 시작하려면 Alt + Enter를 누르십시오.`,dragDescriptionLongPress:`드래그를 시작하려면 길게 누르십시오.`,dragDescriptionTouch:`드래그를 시작하려면 더블 탭하세요.`,dragDescriptionVirtual:`드래그를 시작하려면 클릭하세요.`,dragItem:e=>`${e.itemText} \u{B4DC}\u{B798}\u{ADF8}`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})} \u{B4DC}\u{B798}\u{ADF8}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} Enter\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} Alt + Enter\u{B97C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C120}\u{D0DD} \u{D56D}\u{BAA9}`})}\u{C744} \u{B4DC}\u{B798}\u{ADF8}\u{D558}\u{B824}\u{BA74} \u{AE38}\u{AC8C} \u{B204}\u{B974}\u{C2ED}\u{C2DC}\u{C624}.`,dragStartedKeyboard:`드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.`,dragStartedTouch:`드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.`,dragStartedVirtual:`드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.`,dropCanceled:`드롭이 취소되었습니다.`,dropComplete:`드롭이 완료되었습니다.`,dropDescriptionKeyboard:`드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.`,dropDescriptionTouch:`더블 탭하여 드롭하세요.`,dropDescriptionVirtual:`드롭하려면 클릭하세요.`,dropIndicator:`드롭 표시기`,dropOnItem:e=>`${e.itemText}\u{C5D0} \u{B4DC}\u{B86D}`,dropOnRoot:`드롭 대상`,endDragKeyboard:`드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.`,endDragTouch:`드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.`,endDragVirtual:`드래그 중입니다. 드래그를 취소하려면 클릭하세요.`,insertAfter:e=>`${e.itemText} \u{C774}\u{D6C4}\u{C5D0} \u{C0BD}\u{C785}`,insertBefore:e=>`${e.itemText} \u{C774}\u{C804}\u{C5D0} \u{C0BD}\u{C785}`,insertBetween:e=>`${e.beforeItemText} \u{BC0F} ${e.afterItemText} \u{C0AC}\u{C774}\u{C5D0} \u{C0BD}\u{C785}`};var rH={};rH={dragDescriptionKeyboard:`Paspauskite „Enter“, kad pradėtumėte vilkti.`,dragDescriptionKeyboardAlt:`Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.`,dragDescriptionLongPress:`Palaikykite nuspaudę, kad pradėtumėte vilkti.`,dragDescriptionTouch:`Palieskite dukart, kad pradėtumėte vilkti.`,dragDescriptionVirtual:`Spustelėkite, kad pradėtumėte vilkti.`,dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite \u{201E}Enter\u{201C}, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite \u{201E}Alt + Enter\u{201C}, kad nuvilktum\u{117}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaud\u{119} palaikykite, kad nuvilktum\u{117}te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u{105} element\u{105}`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:`Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.`,dragStartedTouch:`Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.`,dragStartedVirtual:`Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.`,dropCanceled:`Numetimas atšauktas.`,dropComplete:`Numesta.`,dropDescriptionKeyboard:`Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.`,dropDescriptionTouch:`Palieskite dukart, kad numestumėte.`,dropDescriptionVirtual:`Spustelėkite, kad numestumėte.`,dropIndicator:`numetimo indikatorius`,dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:`Numesti ant`,endDragKeyboard:`Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.`,endDragTouch:`Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.`,endDragVirtual:`Velkama. Spustelėkite, kad atšauktumėte vilkimą.`,insertAfter:e=>`\u{12E}terpti po ${e.itemText}`,insertBefore:e=>`\u{12E}terpti prie\u{161} ${e.itemText}`,insertBetween:e=>`\u{12E}terpti tarp ${e.beforeItemText} ir ${e.afterItemText}`};var iH={};iH={dragDescriptionKeyboard:`Nospiediet Enter, lai sāktu vilkšanu.`,dragDescriptionKeyboardAlt:`Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.`,dragDescriptionLongPress:`Turiet nospiestu, lai sāktu vilkšanu.`,dragDescriptionTouch:`Veiciet dubultskārienu, lai sāktu vilkšanu.`,dragDescriptionVirtual:`Noklikšķiniet, lai sāktu vilkšanu.`,dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet tausti\u{146}u Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet tausti\u{146}u kombin\u{101}ciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u{12B}to vienumu`,other:()=>`${t.number(e.count)} atlas\u{12B}tos vienumus`})}.`,dragStartedKeyboard:`Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.`,dragStartedTouch:`Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.`,dragStartedVirtual:`Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.`,dropCanceled:`Nomešana atcelta.`,dropComplete:`Nomešana pabeigta.`,dropDescriptionKeyboard:`Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.`,dropDescriptionTouch:`Veiciet dubultskārienu, lai nomestu.`,dropDescriptionVirtual:`Noklikšķiniet, lai nomestu.`,dropIndicator:`nomešanas indikators`,dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:`Nometiet uz`,endDragKeyboard:`Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.`,endDragTouch:`Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.`,endDragVirtual:`Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.`,insertAfter:e=>`Ievietojiet p\u{113}c ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`};var aH={};aH={dragDescriptionKeyboard:`Trykk på Enter for å begynne å dra.`,dragDescriptionKeyboardAlt:`Trykk på Alt + Enter for å begynne å dra.`,dragDescriptionLongPress:`Trykk lenge for å begynne å dra.`,dragDescriptionTouch:`Dobbelttrykk for å begynne å dra.`,dragDescriptionVirtual:`Klikk for å begynne å dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk p\xe5 Alt + Enter for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for \xe5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:`Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.`,dragStartedTouch:`Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.`,dragStartedVirtual:`Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.`,dropCanceled:`Avbrøt slipping.`,dropComplete:`Slippingen er fullført.`,dropDescriptionKeyboard:`Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.`,dropDescriptionTouch:`Dobbelttrykk for å slippe.`,dropDescriptionVirtual:`Klikk for å slippe.`,dropIndicator:`slippeindikator`,dropOnItem:e=>`Slipp p\xe5 ${e.itemText}`,dropOnRoot:`Slipp på`,endDragKeyboard:`Drar. Trykk på Enter hvis du vil avbryte.`,endDragTouch:`Drar. Dobbelttrykk hvis du vil avbryte.`,endDragVirtual:`Drar. Klikk hvis du vil avbryte.`,insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn f\xf8r ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`};var oH={};oH={dragDescriptionKeyboard:`Druk op Enter om te slepen.`,dragDescriptionKeyboardAlt:`Druk op Alt + Enter om te slepen.`,dragDescriptionLongPress:`Houd lang ingedrukt om te slepen.`,dragDescriptionTouch:`Dubbeltik om te slepen.`,dragDescriptionVirtual:`Klik om met slepen te starten.`,dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:`Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.`,dragStartedTouch:`Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.`,dragStartedVirtual:`Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.`,dropCanceled:`Neerzetten geannuleerd.`,dropComplete:`Neerzetten voltooid.`,dropDescriptionKeyboard:`Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.`,dropDescriptionTouch:`Dubbeltik om neer te zetten.`,dropDescriptionVirtual:`Klik om neer te zetten.`,dropIndicator:`aanwijzer voor neerzetten`,dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:`Neerzetten op`,endDragKeyboard:`Bezig met slepen. Druk op Enter om te annuleren.`,endDragTouch:`Bezig met slepen. Dubbeltik om te annuleren.`,endDragVirtual:`Bezig met slepen. Klik om te annuleren.`,insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen v\xf3\xf3r ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`};var sH={};sH={dragDescriptionKeyboard:`Naciśnij Enter, aby rozpocząć przeciąganie.`,dragDescriptionKeyboardAlt:`Naciśnij Alt + Enter, aby rozpocząć przeciąganie.`,dragDescriptionLongPress:`Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.`,dragDescriptionTouch:`Dotknij dwukrotnie, aby rozpocząć przeciąganie.`,dragDescriptionVirtual:`Kliknij, aby rozpocząć przeciąganie.`,dragItem:e=>`Przeci\u{105}gnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeci\u{105}gnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych element\xf3w`})}`,dragSelectedKeyboard:(e,t)=>`Naci\u{15B}nij Enter, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naci\u{15B}nij Alt + Enter, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragSelectedLongPress:(e,t)=>`Naci\u{15B}nij i przytrzymaj, aby przeci\u{105}gn\u{105}\u{107} ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xf3w)`})}.`,dragStartedKeyboard:`Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.`,dragStartedTouch:`Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F`,dragStartedVirtual:`Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.`,dropCanceled:`Anulowano upuszczenie.`,dropComplete:`Zakończono upuszczanie.`,dropDescriptionKeyboard:`Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.`,dropDescriptionTouch:`Dotknij dwukrotnie, aby upuścić.`,dropDescriptionVirtual:`Kliknij, aby upuścić.`,dropIndicator:`wskaźnik upuszczenia`,dropOnItem:e=>`Upu\u{15B}\u{107} na ${e.itemText}`,dropOnRoot:`Upuść`,endDragKeyboard:`Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.`,endDragTouch:`Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.`,endDragVirtual:`Przeciąganie. Kliknij, aby anulować przeciąganie.`,insertAfter:e=>`Umie\u{15B}\u{107} za ${e.itemText}`,insertBefore:e=>`Umie\u{15B}\u{107} przed ${e.itemText}`,insertBetween:e=>`Umie\u{15B}\u{107} mi\u{119}dzy ${e.beforeItemText} i ${e.afterItemText}`};var cH={};cH={dragDescriptionKeyboard:`Pressione Enter para começar a arrastar.`,dragDescriptionKeyboardAlt:`Pressione Alt + Enter para começar a arrastar.`,dragDescriptionLongPress:`Pressione e segure para começar a arrastar.`,dragDescriptionTouch:`Toque duas vezes para começar a arrastar.`,dragDescriptionVirtual:`Clique para começar a arrastar.`,dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:`Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.`,dragStartedTouch:`Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.`,dragStartedVirtual:`Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.`,dropCanceled:`Liberação cancelada.`,dropComplete:`Liberação concluída.`,dropDescriptionKeyboard:`Pressione Enter para soltar. Pressione Escape para cancelar.`,dropDescriptionTouch:`Toque duas vezes para soltar.`,dropDescriptionVirtual:`Clique para soltar.`,dropIndicator:`indicador de liberação`,dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:`Soltar`,endDragKeyboard:`Arrastando. Pressione Enter para cancelar.`,endDragTouch:`Arrastando. Toque duas vezes para cancelar.`,endDragVirtual:`Arrastando. Clique para cancelar.`,insertAfter:e=>`Inserir ap\xf3s ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var lH={};lH={dragDescriptionKeyboard:`Prima Enter para iniciar o arrasto.`,dragDescriptionKeyboardAlt:`Prima Alt + Enter para iniciar o arrasto.`,dragDescriptionLongPress:`Prima longamente para começar a arrastar.`,dragDescriptionTouch:`Faça duplo toque para começar a arrastar.`,dragDescriptionVirtual:`Clique para iniciar o arrasto.`,dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:`Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.`,dragStartedTouch:`Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.`,dragStartedVirtual:`Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.`,dropCanceled:`Largar cancelado.`,dropComplete:`Largar completo.`,dropDescriptionKeyboard:`Prima Enter para largar. Prima Escape para cancelar o arrasto.`,dropDescriptionTouch:`Faça duplo toque para largar.`,dropDescriptionVirtual:`Clique para largar.`,dropIndicator:`Indicador de largar`,dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:`Largar em`,endDragKeyboard:`A arrastar. Prima Enter para cancelar o arrasto.`,endDragTouch:`A arrastar. Faça duplo toque para cancelar o arrasto.`,endDragVirtual:`A arrastar. Clique para cancelar o arrasto.`,insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var uH={};uH={dragDescriptionKeyboard:`Apăsați pe Enter pentru a începe glisarea.`,dragDescriptionKeyboardAlt:`Apăsați pe Alt + Enter pentru a începe glisarea.`,dragDescriptionLongPress:`Apăsați lung pentru a începe glisarea.`,dragDescriptionTouch:`Atingeți de două ori pentru a începe să glisați.`,dragDescriptionVirtual:`Faceți clic pentru a începe glisarea.`,dragItem:e=>`Glisa\u{21B}i ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisa\u{21B}i ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Ap\u{103}sa\u{21B}i pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ap\u{103}sa\u{21B}i pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Ap\u{103}sa\u{21B}i lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:`A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.`,dragStartedTouch:`A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.`,dragStartedVirtual:`A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.`,dropCanceled:`Fixare anulată.`,dropComplete:`Fixare finalizată.`,dropDescriptionKeyboard:`Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.`,dropDescriptionTouch:`Atingeți de două ori pentru a fixa.`,dropDescriptionVirtual:`Faceți clic pentru a fixa.`,dropIndicator:`indicator de fixare`,dropOnItem:e=>`Fixa\u{21B}i pe ${e.itemText}`,dropOnRoot:`Fixare pe`,endDragKeyboard:`Se glisează. Apăsați pe Enter pentru a anula glisarea.`,endDragTouch:`Se glisează. Atingeți de două ori pentru a anula glisarea.`,endDragVirtual:`Se glisează. Faceți clic pentru a anula glisarea.`,insertAfter:e=>`Insera\u{21B}i dup\u{103} ${e.itemText}`,insertBefore:e=>`Insera\u{21B}i \xeenainte de ${e.itemText}`,insertBetween:e=>`Insera\u{21B}i \xeentre ${e.beforeItemText} \u{219}i ${e.afterItemText}`};var dH={};dH={dragDescriptionKeyboard:`Нажмите клавишу Enter для начала перетаскивания.`,dragDescriptionKeyboardAlt:`Нажмите Alt + Enter, чтобы начать перетаскивать.`,dragDescriptionLongPress:`Нажмите и удерживайте, чтобы начать перетаскивать.`,dragDescriptionTouch:`Дважды нажмите для начала перетаскивания.`,dragDescriptionVirtual:`Щелкните для начала перетаскивания.`,dragItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Enter \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + Enter \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragSelectedLongPress:(e,t)=>`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{434}\u{43B}\u{44F} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{441}\u{43A}\u{438}\u{432}\u{430}\u{43D}\u{438}\u{44F} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{433}\u{43E} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{430}`,other:()=>`${t.number(e.count)} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{445} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432}`})}.`,dragStartedKeyboard:`Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.`,dragStartedTouch:`Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.`,dragStartedVirtual:`Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.`,dropCanceled:`Перетаскивание отменено.`,dropComplete:`Перетаскивание завершено.`,dropDescriptionKeyboard:`Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.`,dropDescriptionTouch:`Дважды нажмите, чтобы применить перетаскивание.`,dropDescriptionVirtual:`Щелкните, чтобы применить перетаскивание.`,dropIndicator:`индикатор перетаскивания`,dropOnItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{430}\u{449}\u{438}\u{442}\u{44C} \u{43D}\u{430} ${e.itemText}`,dropOnRoot:`Перетащить на`,endDragKeyboard:`Перетаскивание. Нажмите клавишу Enter для отмены.`,endDragTouch:`Перетаскивание. Дважды нажмите для отмены.`,endDragVirtual:`Перетаскивание. Щелкните для отмены.`,insertAfter:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43F}\u{43E}\u{441}\u{43B}\u{435} ${e.itemText}`,insertBefore:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43F}\u{435}\u{440}\u{435}\u{434} ${e.itemText}`,insertBetween:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{44C} \u{43C}\u{435}\u{436}\u{434}\u{443} ${e.beforeItemText} \u{438} ${e.afterItemText}`};var fH={};fH={dragDescriptionKeyboard:`Stlačením klávesu Enter začnete presúvanie.`,dragDescriptionKeyboardAlt:`Stlačením klávesov Alt + Enter začnete presúvanie.`,dragDescriptionLongPress:`Dlhým stlačením začnete presúvanie.`,dragDescriptionTouch:`Dvojitým kliknutím začnete presúvanie.`,dragDescriptionVirtual:`Kliknutím začnete presúvanie.`,dragItem:e=>`Presun\xfa\u{165} polo\u{17E}ku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presun\xfa\u{165} ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xe9 polo\u{17E}ky`})}`,dragSelectedKeyboard:(e,t)=>`Stla\u{10D}en\xedm kl\xe1vesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stla\u{10D}en\xedm kl\xe1vesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragSelectedLongPress:(e,t)=>`Dlh\xfdm stla\u{10D}en\xedm presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xfa polo\u{17E}ku`,other:()=>`${t.number(e.count)} vybrat\xfdch polo\u{17E}iek`})}.`,dragStartedKeyboard:`Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.`,dragStartedTouch:`Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.`,dragStartedVirtual:`Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.`,dropCanceled:`Umiestnenie zrušené.`,dropComplete:`Umiestnenie dokončené.`,dropDescriptionKeyboard:`Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.`,dropDescriptionTouch:`Dvojitým kliknutím umiestnite položku.`,dropDescriptionVirtual:`Kliknutím umiestnite položku.`,dropIndicator:`indikátor umiestnenia`,dropOnItem:e=>`Umiestni\u{165} na polo\u{17E}ku ${e.itemText}`,dropOnRoot:`Umiestniť na`,endDragKeyboard:`Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.`,endDragTouch:`Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.`,endDragVirtual:`Prebieha presúvanie.`,insertAfter:e=>`Vlo\u{17E}i\u{165} za polo\u{17E}ku ${e.itemText}`,insertBefore:e=>`Vlo\u{17E}i\u{165} pred polo\u{17E}ku ${e.itemText}`,insertBetween:e=>`Vlo\u{17E}i\u{165} medzi polo\u{17E}ky ${e.beforeItemText} a ${e.afterItemText}`};var pH={};pH={dragDescriptionKeyboard:`Pritisnite tipko Enter za začetek vlečenja.`,dragDescriptionKeyboardAlt:`Pritisnite tipki Alt + Enter za začetek vlečenja.`,dragDescriptionLongPress:`Pritisnite in zadržite za začetek vlečenja.`,dragDescriptionTouch:`Dvotapnite za začetek vlečenja.`,dragDescriptionVirtual:`Kliknite za začetek vlečenja.`,dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadr\u{17E}ite, da povle\u{10D}ete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:`Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.`,dragStartedTouch:`Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.`,dragStartedVirtual:`Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.`,dropCanceled:`Spust je preklican.`,dropComplete:`Spust je končan.`,dropDescriptionKeyboard:`Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.`,dropDescriptionTouch:`Dvotapnite, da spustite.`,dropDescriptionVirtual:`Kliknite, da spustite.`,dropIndicator:`indikator spusta`,dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:`Spusti na mesto`,endDragKeyboard:`Vlečenje. Pritisnite tipko Enter za preklic vlečenja.`,endDragTouch:`Vlečenje. Dvotapnite za preklic vlečenja.`,endDragVirtual:`Vlečenje. Kliknite, da prekličete vlečenje.`,insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`};var mH={};mH={dragDescriptionKeyboard:`Pritisnite Enter da biste započeli prevlačenje.`,dragDescriptionKeyboardAlt:`Pritisnite Alt + Enter da biste započeli prevlačenje.`,dragDescriptionLongPress:`Pritisnite dugo da biste započeli prevlačenje.`,dragDescriptionTouch:`Dvaput dodirnite da biste započeli prevlačenje.`,dragDescriptionVirtual:`Kliknite da biste započeli prevlačenje.`,dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:`Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.`,dragStartedTouch:`Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.`,dragStartedVirtual:`Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.`,dropCanceled:`Otpuštanje je otkazano.`,dropComplete:`Prevlačenje je završeno.`,dropDescriptionKeyboard:`Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.`,dropDescriptionTouch:`Dvaput dodirnite za otpuštanje.`,dropDescriptionVirtual:`Kliknite za otpuštanje.`,dropIndicator:`Indikator otpuštanja`,dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:`Otpusti na`,endDragKeyboard:`Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.`,endDragTouch:`Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.`,endDragVirtual:`Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.`,insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite izme\u{111}u ${e.beforeItemText} i ${e.afterItemText}`};var hH={};hH={dragDescriptionKeyboard:`Tryck på enter för att börja dra.`,dragDescriptionKeyboardAlt:`Tryck på Alt + Retur för att börja dra.`,dragDescriptionLongPress:`Tryck länge för att börja dra.`,dragDescriptionTouch:`Dubbeltryck för att börja dra.`,dragDescriptionVirtual:`Klicka för att börja dra.`,dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck p\xe5 Retur f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck p\xe5 Alt + Retur f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck l\xe4nge f\xf6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:`Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.`,dragStartedTouch:`Börja dra. Navigera till ett mål och dubbeltryck för att släppa.`,dragStartedVirtual:`Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.`,dropCanceled:`Släppåtgärd avbröts.`,dropComplete:`Släppåtgärd klar.`,dropDescriptionKeyboard:`Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.`,dropDescriptionTouch:`Dubbeltryck för att släppa.`,dropDescriptionVirtual:`Klicka för att släppa.`,dropIndicator:`släppindikator`,dropOnItem:e=>`Sl\xe4pp p\xe5 ${e.itemText}`,dropOnRoot:`Släpp på`,endDragKeyboard:`Drar. Tryck på enter för att avbryta dragåtgärd.`,endDragTouch:`Drar. Dubbeltryck för att avbryta dragåtgärd.`,endDragVirtual:`Drar. Klicka för att avbryta dragåtgärd.`,insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xf6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`};var gH={};gH={dragDescriptionKeyboard:`Sürüklemeyi başlatmak için Enter'a basın.`,dragDescriptionKeyboardAlt:`Sürüklemeyi başlatmak için Alt + Enter'a basın.`,dragDescriptionLongPress:`Sürüklemeye başlamak için uzun basın.`,dragDescriptionTouch:`Sürüklemeyi başlatmak için çift tıklayın.`,dragDescriptionVirtual:`Sürüklemeyi başlatmak için tıklayın.`,dragItem:e=>`${e.itemText}\u{2019}i s\xfcr\xfckle`,dragSelectedItems:(e,t)=>`S\xfcr\xfckle ${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ili \xf6ge`,other:()=>`${t.number(e.count)} se\xe7ili \xf6ge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in Enter'a bas\u{131}n.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in Alt + Enter tu\u{15F}una bas\u{131}n.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`,other:()=>`${t.number(e.count)} se\xe7ilmi\u{15F} \xf6\u{11F}e`})} \xf6\u{11F}esini s\xfcr\xfcklemek i\xe7in uzun bas\u{131}n.`,dragStartedKeyboard:`Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.`,dragStartedTouch:`Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.`,dragStartedVirtual:`Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.`,dropCanceled:`Bırakma iptal edildi.`,dropComplete:`Bırakma tamamlandı.`,dropDescriptionKeyboard:`Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.`,dropDescriptionTouch:`Bırakmak için çift tıklayın.`,dropDescriptionVirtual:`Bırakmak için tıklayın.`,dropIndicator:`bırakma göstergesi`,dropOnItem:e=>`${e.itemText} \xfczerine b\u{131}rak`,dropOnRoot:`Bırakın`,endDragKeyboard:`Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.`,endDragTouch:`Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.`,endDragVirtual:`Sürükleme. Sürüklemeyi iptal etmek için tıklayın.`,insertAfter:e=>`${e.itemText}\u{2019}den sonra gir`,insertBefore:e=>`${e.itemText}\u{2019}den \xf6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} aras\u{131}na gir`};var _H={};_H={dragDescriptionKeyboard:`Натисніть Enter, щоб почати перетягування.`,dragDescriptionKeyboardAlt:`Натисніть Alt + Enter, щоб почати перетягування.`,dragDescriptionLongPress:`Натисніть і утримуйте, щоб почати перетягування.`,dragDescriptionTouch:`Натисніть двічі, щоб почати перетягування.`,dragDescriptionVirtual:`Натисніть, щоб почати перетягування.`,dragItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{456}\u{442}\u{44C} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}`})}`,dragSelectedKeyboard:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Alt + Enter, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragSelectedLongPress:(e,t)=>`\u{423}\u{442}\u{440}\u{438}\u{43C}\u{443}\u{439}\u{442}\u{435}, \u{449}\u{43E}\u{431} \u{43F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{445} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}(-\u{456}\u{432})`})}.`,dragStartedKeyboard:`Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.`,dragStartedTouch:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.`,dragStartedVirtual:`Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.`,dropCanceled:`Перетягування скасовано.`,dropComplete:`Перетягування завершено.`,dropDescriptionKeyboard:`Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.`,dropDescriptionTouch:`Натисніть двічі, щоб перетягнути.`,dropDescriptionVirtual:`Натисніть, щоб перетягнути.`,dropIndicator:`індикатор перетягування`,dropOnItem:e=>`\u{41F}\u{435}\u{440}\u{435}\u{442}\u{44F}\u{433}\u{43D}\u{443}\u{442}\u{438} \u{43D}\u{430} ${e.itemText}`,dropOnRoot:`Перетягнути на`,endDragKeyboard:`Триває перетягування. Натисніть Enter, щоб скасувати перетягування.`,endDragTouch:`Триває перетягування. Натисніть двічі, щоб скасувати перетягування.`,endDragVirtual:`Триває перетягування. Натисніть, щоб скасувати перетягування.`,insertAfter:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43F}\u{456}\u{441}\u{43B}\u{44F} ${e.itemText}`,insertBefore:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43F}\u{435}\u{440}\u{435}\u{434} ${e.itemText}`,insertBetween:e=>`\u{412}\u{441}\u{442}\u{430}\u{432}\u{438}\u{442}\u{438} \u{43C}\u{456}\u{436} ${e.beforeItemText} \u{456} ${e.afterItemText}`};var vH={};vH={dragDescriptionKeyboard:`按 Enter 开始拖动。`,dragDescriptionKeyboardAlt:`按 Alt + Enter 开始拖动。`,dragDescriptionLongPress:`长按以开始拖动。`,dragDescriptionTouch:`双击开始拖动。`,dragDescriptionVirtual:`单击开始拖动。`,dragItem:e=>`\u{62D6}\u{52A8} ${e.itemText}`,dragSelectedItems:(e,t)=>`\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{9009}\u{4E2D}\u{9879}\u{76EE}`,other:()=>`${t.number(e.count)} \u{9009}\u{4E2D}\u{9879}\u{76EE}`})}`,dragSelectedKeyboard:(e,t)=>`\u{6309} Enter \u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`\u{6309} Alt + Enter \u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{957F}\u{6309}\u{4EE5}\u{62D6}\u{52A8} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{9009}\u{5B9A}\u{9879}`})}\u{3002}`,dragStartedKeyboard:`已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。`,dragStartedTouch:`已开始拖动。导航到放置目标,然后双击放置。`,dragStartedVirtual:`已开始拖动。导航到放置目标,然后单击或按 Enter 放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 放置。按 Escape 取消拖动。`,dropDescriptionTouch:`双击放置。`,dropDescriptionVirtual:`单击放置。`,dropIndicator:`放置标记`,dropOnItem:e=>`\u{653E}\u{7F6E}\u{4E8E} ${e.itemText}`,dropOnRoot:`放置于`,endDragKeyboard:`正在拖动。按 Enter 取消拖动。`,endDragTouch:`正在拖动。双击取消拖动。`,endDragVirtual:`正在拖动。单击取消拖动。`,insertAfter:e=>`\u{63D2}\u{5165}\u{5230} ${e.itemText} \u{4E4B}\u{540E}`,insertBefore:e=>`\u{63D2}\u{5165}\u{5230} ${e.itemText} \u{4E4B}\u{524D}`,insertBetween:e=>`\u{63D2}\u{5165}\u{5230} ${e.beforeItemText} \u{548C} ${e.afterItemText} \u{4E4B}\u{95F4}`};var yH={};yH={dragDescriptionKeyboard:`按 Enter 鍵以開始拖曳。`,dragDescriptionKeyboardAlt:`按 Alt+Enter 鍵以開始拖曳。`,dragDescriptionLongPress:`長按以開始拖曳。`,dragDescriptionTouch:`輕點兩下以開始拖曳。`,dragDescriptionVirtual:`按一下滑鼠以開始拖曳。`,dragItem:e=>`\u{62D6}\u{66F3}\u{300C}${e.itemText}\u{300D}`,dragSelectedItems:(e,t)=>`\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}`,dragSelectedKeyboard:(e,t)=>`\u{6309} Enter \u{9375}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragSelectedKeyboardAlt:(e,t)=>`\u{6309} Alt+Enter \u{9375}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragSelectedLongPress:(e,t)=>`\u{9577}\u{6309}\u{4EE5}\u{62D6}\u{66F3} ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`,other:()=>`${t.number(e.count)} \u{500B}\u{9078}\u{5B9A}\u{9805}\u{76EE}`})}\u{3002}`,dragStartedKeyboard:`已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。`,dragStartedTouch:`已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。`,dragStartedVirtual:`已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。`,dropCanceled:`放置已取消。`,dropComplete:`放置已完成。`,dropDescriptionKeyboard:`按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。`,dropDescriptionTouch:`輕點兩下以放置。`,dropDescriptionVirtual:`按一下滑鼠以放置。`,dropIndicator:`放置指示器`,dropOnItem:e=>`\u{653E}\u{7F6E}\u{5728}\u{300C}${e.itemText}\u{300D}\u{4E0A}`,dropOnRoot:`放置在`,endDragKeyboard:`拖曳中。按 Enter 鍵以取消拖曳。`,endDragTouch:`拖曳中。輕點兩下以取消拖曳。`,endDragVirtual:`拖曳中。按一下滑鼠以取消拖曳。`,insertAfter:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.itemText}\u{300D}\u{4E4B}\u{5F8C}`,insertBefore:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.itemText}\u{300D}\u{4E4B}\u{524D}`,insertBetween:e=>`\u{63D2}\u{5165}\u{81F3}\u{300C}${e.beforeItemText}\u{300D}\u{548C}\u{300C}${e.afterItemText}\u{300D}\u{4E4B}\u{9593}`};var bH={};bH={"ar-AE":BV,"bg-BG":VV,"cs-CZ":HV,"da-DK":UV,"de-DE":WV,"el-GR":GV,"en-US":KV,"es-ES":qV,"et-EE":JV,"fi-FI":YV,"fr-FR":XV,"he-IL":ZV,"hr-HR":QV,"hu-HU":$V,"it-IT":eH,"ja-JP":tH,"ko-KR":nH,"lt-LT":rH,"lv-LV":iH,"nb-NO":aH,"nl-NL":oH,"pl-PL":sH,"pt-BR":cH,"pt-PT":lH,"ro-RO":uH,"ru-RU":dH,"sk-SK":fH,"sl-SI":pH,"sr-SP":mH,"sv-SE":hH,"tr-TR":gH,"uk-UA":_H,"zh-CN":vH,"zh-TW":yH};function xH(e){return e&&e.__esModule?e.default:e}var SH={keyboard:`dropDescriptionKeyboard`,touch:`dropDescriptionTouch`,virtual:`dropDescriptionVirtual`};function CH(){let e=Pw(xH(bH),`@react-aria/dnd`),t=uV();return{dropProps:{...bA(NV()?e.format(SH[t]):``),onClick:()=>{}}}}var wH=800;function TH(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=(0,x.useState)(!1),a=(0,x.useRef)({x:0,y:0,dragOverElements:new Set,dropEffect:`none`,allowedOperations:QB.all,dropActivateTimer:void 0}).current,o=t=>{if(i(!0),typeof e.onDropEnter==`function`){let n=t.currentTarget.getBoundingClientRect();e.onDropEnter({type:`dropenter`,x:t.clientX-n.x,y:t.clientY-n.y})}},s=t=>{if(i(!1),typeof e.onDropExit==`function`){let n=t.currentTarget.getBoundingClientRect();e.onDropExit({type:`dropexit`,x:t.clientX-n.x,y:t.clientY-n.y})}},c=t=>{t.preventDefault(),t.stopPropagation();let n=EH(t);if(t.clientX===a.x&&t.clientY===a.y&&n===a.allowedOperations){t.dataTransfer.dropEffect=a.dropEffect;return}a.x=t.clientX,a.y=t.clientY;let r=a.dropEffect;if(n!==a.allowedOperations){let r=DH(n),i=r[0];if(typeof e.getDropOperation==`function`){let a=new pV(t.dataTransfer);i=OH(n,e.getDropOperation(a,r))}a.dropEffect=nV[i]||`none`}if(typeof e.getDropOperationForPoint==`function`){let r=new pV(t.dataTransfer),i=t.currentTarget.getBoundingClientRect(),o=OH(n,e.getDropOperationForPoint(r,DH(n),a.x-i.x,a.y-i.y));a.dropEffect=nV[o]||`none`}if(a.allowedOperations=n,t.dataTransfer.dropEffect=a.dropEffect,a.dropEffect===`none`&&r!==`none`?s(t):a.dropEffect!==`none`&&r===`none`&&o(t),typeof e.onDropMove==`function`&&a.dropEffect!==`none`){let n=t.currentTarget.getBoundingClientRect();e.onDropMove({type:`dropmove`,x:a.x-n.x,y:a.y-n.y})}if(clearTimeout(a.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate==`function`&&a.dropEffect!==`none`){let n=e.onDropActivate,r=t.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout(()=>{n({type:`dropactivate`,x:a.x-r.x,y:a.y-r.y})},wH)}},l=t=>{if(t.preventDefault(),t.stopPropagation(),a.dragOverElements.add(G(t)),a.dragOverElements.size>1)return;let n=EH(t),r=DH(n),i=r[0];if(typeof e.getDropOperation==`function`){let a=new pV(t.dataTransfer);i=OH(n,e.getDropOperation(a,r))}if(typeof e.getDropOperationForPoint==`function`){let a=new pV(t.dataTransfer),o=t.currentTarget.getBoundingClientRect();i=OH(n,e.getDropOperationForPoint(a,r,t.clientX-o.x,t.clientY-o.y))}a.x=t.clientX,a.y=t.clientY,a.allowedOperations=n,a.dropEffect=nV[i]||`none`,t.dataTransfer.dropEffect=a.dropEffect,i!==`cancel`&&o(t)},u=e=>{e.preventDefault(),e.stopPropagation();let t=G(e);if(a.dragOverElements.delete(t),t===e.currentTarget)for(let t of a.dragOverElements)W(e.currentTarget,t)||a.dragOverElements.delete(t);a.dragOverElements.size>0||(a.dropEffect!==`none`&&s(e),clearTimeout(a.dropActivateTimer))},d=t=>{if(t.preventDefault(),t.stopPropagation(),wV(a.dropEffect),typeof e.onDrop==`function`){let n=tV[a.dropEffect],r=mV(t.dataTransfer),i=t.currentTarget.getBoundingClientRect(),o={type:`drop`,x:t.clientX-i.x,y:t.clientY-i.y,items:r,dropOperation:n};e.onDrop(o)}let n={...xV};a.dragOverElements.clear(),s(t),clearTimeout(a.dropActivateTimer),n.draggingCollectionRef==null?wV(void 0):SV(n)},f=sw(t=>{typeof e.onDropEnter==`function`&&e.onDropEnter(t)}),p=sw(t=>{typeof e.onDropExit==`function`&&e.onDropExit(t)}),m=sw(t=>{typeof e.onDropActivate==`function`&&e.onDropActivate(t)}),h=sw(t=>{typeof e.onDrop==`function`&&e.onDrop(t)}),g=sw((t,n)=>e.getDropOperation?e.getDropOperation(t,n):n[0]),{ref:_}=e;Rx(()=>{if(!n&&_.current)return jV({element:_.current,getDropOperation:g,onDropEnter(e){i(!0),f(e)},onDropExit(e){i(!1),p(e)},onDrop:h,onDropActivate:m})},[n,_]);let{dropProps:v}=CH();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&v,onDragEnter:l,onDragOver:c,onDragLeave:u,onDrop:d},dropButtonProps:{...t&&v},isDropTarget:r}}function EH(e){let t=$B[e.dataTransfer.effectAllowed];TV&&(t&=TV);let n=QB.none;return tC()?(e.altKey&&(n|=QB.copy),e.ctrlKey&&!rC()&&(n|=QB.link),e.metaKey&&(n|=QB.move)):(e.altKey&&(n|=QB.link),e.shiftKey&&(n|=QB.move),e.ctrlKey&&(n|=QB.copy)),n?t&n:t}function DH(e){let t=[];return e&QB.move&&t.push(`move`),e&QB.copy&&t.push(`copy`),e&QB.link&&t.push(`link`),t}function OH(e,t){return e&QB[t]?t:`cancel`}var kH=(0,x.forwardRef)(function(e,t){let{onSelect:n,acceptedFileTypes:r,allowsMultiple:i,defaultCamera:a,children:o,acceptDirectory:s,...c}=e,l=sS(t),u=K(c,{global:!0});return x.createElement(x.Fragment,null,x.createElement(lL,{onPress:()=>{l.current?.value&&(l.current.value=``),l.current?.click()}},o),x.createElement(uj,{...u,className:``,type:`file`,ref:l,onClick:e=>e.stopPropagation(),style:{display:`none`},accept:r?.toString(),onChange:e=>n?.(G(e).files),capture:a,multiple:i,webkitdirectory:s?``:void 0}))}),AH=new WeakMap;function jH(e,t){let{id:n}=AH.get(e)??{};if(!n)throw Error(`Unknown list`);return`${n}-${MH(t)}`}function MH(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}var NH={};NH={deselectedItem:e=>`${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,longPressToSelect:`اضغط مطولًا للدخول إلى وضع التحديد.`,select:`تحديد`,selectedAll:`جميع العناصر المحددة.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`لم يتم تحديد عناصر`,one:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`,other:()=>`${t.number(e.count)} \u{639}\u{646}\u{635}\u{631} \u{645}\u{62D}\u{62F}\u{62F}`})}.`,selectedItem:e=>`${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`};var PH={};PH={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,longPressToSelect:`Натиснете и задръжте за да влезете в избирателен режим.`,select:`Изберете`,selectedAll:`Всички елементи са избрани.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Няма избрани елементи`,one:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{438}`})}.`,selectedItem:e=>`${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`};var FH={};FH={deselectedItem:e=>`Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,longPressToSelect:`Dlouhým stisknutím přejdete do režimu výběru.`,select:`Vybrat`,selectedAll:`Vybrány všechny položky.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nevybrány žádné položky`,one:()=>`Vybr\xe1na ${t.number(e.count)} polo\u{17E}ka`,other:()=>`Vybr\xe1no ${t.number(e.count)} polo\u{17E}ek`})}.`,selectedItem:e=>`Vybr\xe1na polo\u{17E}ka ${e.item}.`};var IH={};IH={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:`Lav et langt tryk for at aktivere valgtilstand.`,select:`Vælg`,selectedAll:`Alle elementer valgt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ingen elementer valgt`,one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var LH={};LH={deselectedItem:e=>`${e.item} nicht ausgew\xe4hlt.`,longPressToSelect:`Gedrückt halten, um Auswahlmodus zu öffnen.`,select:`Auswählen`,selectedAll:`Alle Elemente ausgewählt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Keine Elemente ausgewählt`,one:()=>`${t.number(e.count)} Element ausgew\xe4hlt`,other:()=>`${t.number(e.count)} Elemente ausgew\xe4hlt`})}.`,selectedItem:e=>`${e.item} ausgew\xe4hlt.`};var RH={};RH={deselectedItem:e=>`\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,longPressToSelect:`Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.`,select:`Επιλογή`,selectedAll:`Επιλέχθηκαν όλα τα στοιχεία.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Δεν επιλέχθηκαν στοιχεία`,one:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF}`,other:()=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B1}\u{3BD} ${t.number(e.count)} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3B1}`})}.`,selectedItem:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`};var zH={};zH={deselectedItem:e=>`${e.item} not selected.`,select:`Select`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`No items selected`,one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:`All items selected.`,selectedItem:e=>`${e.item} selected.`,longPressToSelect:`Long press to enter selection mode.`};var BH={};BH={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:`Mantenga pulsado para abrir el modo de selección.`,select:`Seleccionar`,selectedAll:`Todos los elementos seleccionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ningún elemento seleccionado`,one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var VH={};VH={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:`Valikurežiimi sisenemiseks vajutage pikalt.`,select:`Vali`,selectedAll:`Kõik üksused valitud.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Üksusi pole valitud`,one:()=>`${t.number(e.count)} \xfcksus valitud`,other:()=>`${t.number(e.count)} \xfcksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var HH={};HH={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:`Siirry valintatilaan painamalla pitkään.`,select:`Valitse`,selectedAll:`Kaikki kohteet valittu.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ei yhtään kohdetta valittu`,one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var UH={};UH={deselectedItem:e=>`${e.item} non s\xe9lectionn\xe9.`,longPressToSelect:`Appuyez de manière prolongée pour passer en mode de sélection.`,select:`Sélectionner`,selectedAll:`Tous les éléments sélectionnés.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Aucun élément sélectionné`,one:()=>`${t.number(e.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,other:()=>`${t.number(e.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`})}.`,selectedItem:e=>`${e.item} s\xe9lectionn\xe9.`};var WH={};WH={deselectedItem:e=>`${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,longPressToSelect:`הקשה ארוכה לכניסה למצב בחירה.`,select:`בחר`,selectedAll:`כל הפריטים נבחרו.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`לא נבחרו פריטים`,one:()=>`\u{5E4}\u{5E8}\u{5D9}\u{5D8} ${t.number(e.count)} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,other:()=>`${t.number(e.count)} \u{5E4}\u{5E8}\u{5D9}\u{5D8}\u{5D9}\u{5DD} \u{5E0}\u{5D1}\u{5D7}\u{5E8}\u{5D5}`})}.`,selectedItem:e=>`${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`};var GH={};GH={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:`Dugo pritisnite za ulazak u način odabira.`,select:`Odaberite`,selectedAll:`Odabrane su sve stavke.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nije odabrana nijedna stavka`,one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var KH={};KH={deselectedItem:e=>`${e.item} nincs kijel\xf6lve.`,longPressToSelect:`Nyomja hosszan a kijelöléshez.`,select:`Kijelölés`,selectedAll:`Az összes elem kijelölve.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Egy elem sincs kijelölve`,one:()=>`${t.number(e.count)} elem kijel\xf6lve`,other:()=>`${t.number(e.count)} elem kijel\xf6lve`})}.`,selectedItem:e=>`${e.item} kijel\xf6lve.`};var qH={};qH={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:`Premi a lungo per passare alla modalità di selezione.`,select:`Seleziona`,selectedAll:`Tutti gli elementi selezionati.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nessun elemento selezionato`,one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var JH={};JH={deselectedItem:e=>`${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,longPressToSelect:`長押しして選択モードを開きます。`,select:`選択`,selectedAll:`すべての項目を選択しました。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`項目が選択されていません`,one:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`,other:()=>`${t.number(e.count)} \u{9805}\u{76EE}\u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}`})}\u{3002}`,selectedItem:e=>`${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`};var YH={};YH={deselectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,longPressToSelect:`선택 모드로 들어가려면 길게 누르십시오.`,select:`선택`,selectedAll:`모든 항목이 선택되었습니다.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`선택된 항목이 없습니다`,one:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{D56D}\u{BAA9}\u{C774} \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}`})}.`,selectedItem:e=>`${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`};var XH={};XH={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:`Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.`,select:`Pasirinkti`,selectedAll:`Pasirinkti visi elementai.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nepasirinktas nė vienas elementas`,one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta element\u{173}: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var ZH={};ZH={deselectedItem:e=>`Vienums ${e.item} nav atlas\u{12B}ts.`,longPressToSelect:`Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.`,select:`Atlasīt`,selectedAll:`Atlasīti visi vienumi.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nav atlasīts neviens vienums`,one:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlas\u{12B}to vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlas\u{12B}ts vienums ${e.item}.`};var QH={};QH={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:`Bruk et langt trykk for å gå inn i valgmodus.`,select:`Velg`,selectedAll:`Alle elementer er valgt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Ingen elementer er valgt`,one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var $H={};$H={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:`Druk lang om de selectiemodus te openen.`,select:`Selecteren`,selectedAll:`Alle items geselecteerd.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Geen items geselecteerd`,one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var eU={};eU={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:`Naciśnij i przytrzymaj, aby wejść do trybu wyboru.`,select:`Zaznacz`,selectedAll:`Wszystkie zaznaczone elementy.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nie zaznaczono żadnych elementów`,one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych element\xf3w`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var tU={};tU={deselectedItem:e=>`${e.item} n\xe3o selecionado.`,longPressToSelect:`Mantenha pressionado para entrar no modo de seleção.`,select:`Selecionar`,selectedAll:`Todos os itens selecionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nenhum item selecionado`,one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var nU={};nU={deselectedItem:e=>`${e.item} n\xe3o selecionado.`,longPressToSelect:`Prima continuamente para entrar no modo de seleção.`,select:`Selecionar`,selectedAll:`Todos os itens selecionados.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nenhum item selecionado`,one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var rU={};rU={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:`Apăsați lung pentru a intra în modul de selectare.`,select:`Selectare`,selectedAll:`Toate elementele selectate.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Niciun element selectat`,one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var iU={};iU={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:`Нажмите и удерживайте для входа в режим выбора.`,select:`Выбрать`,selectedAll:`Выбраны все элементы.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Нет выбранных элементов`,one:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}`,other:()=>`${t.number(e.count)} \u{44D}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{43E}\u{432} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`};var aU={};aU={deselectedItem:e=>`Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,longPressToSelect:`Dlhším stlačením prejdite do režimu výberu.`,select:`Vybrať`,selectedAll:`Všetky vybraté položky.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Žiadne vybraté položky`,one:()=>`${t.number(e.count)} vybrat\xe1 polo\u{17E}ka`,other:()=>`Po\u{10D}et vybrat\xfdch polo\u{17E}iek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybrat\xe9 polo\u{17E}ky: ${e.item}.`};var oU={};oU={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:`Za izbirni način pritisnite in dlje časa držite.`,select:`Izberite`,selectedAll:`Vsi elementi so izbrani.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Noben element ni izbran`,one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var sU={};sU={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:`Dugo pritisnite za ulazak u režim biranja.`,select:`Izaberite`,selectedAll:`Izabrane su sve stavke.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Nije izabrana nijedna stavka`,one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var cU={};cU={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:`Tryck länge när du vill öppna väljarläge.`,select:`Markera`,selectedAll:`Alla markerade objekt.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Inga markerade objekt`,one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var lU={};lU={deselectedItem:e=>`${e.item} se\xe7ilmedi.`,longPressToSelect:`Seçim moduna girmek için uzun basın.`,select:`Seç`,selectedAll:`Tüm ögeler seçildi.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Hiçbir öge seçilmedi`,one:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`,other:()=>`${t.number(e.count)} \xf6ge se\xe7ildi`})}.`,selectedItem:e=>`${e.item} se\xe7ildi.`};var uU={};uU={deselectedItem:e=>`${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,longPressToSelect:`Виконайте довге натиснення, щоб перейти в режим вибору.`,select:`Вибрати`,selectedAll:`Усі елементи вибрано.`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`Жодних елементів не вибрано`,one:()=>`${t.number(e.count)} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,other:()=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435}\u{43B}\u{435}\u{43C}\u{435}\u{43D}\u{442}\u{456}\u{432}: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`};var dU={};dU={deselectedItem:e=>`\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,longPressToSelect:`长按以进入选择模式。`,select:`选择`,selectedAll:`已选择所有项目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未选择项目`,one:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`,other:()=>`\u{5DF2}\u{9009}\u{62E9} ${t.number(e.count)} \u{4E2A}\u{9879}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`};var fU={};fU={deselectedItem:e=>`\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,longPressToSelect:`長按以進入選擇模式。`,select:`選取`,selectedAll:`已選取所有項目。`,selectedCount:(e,t)=>`${t.plural(e.count,{"=0":`未選取任何項目`,one:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`,other:()=>`\u{5DF2}\u{9078}\u{53D6} ${t.number(e.count)} \u{500B}\u{9805}\u{76EE}`})}\u{3002}`,selectedItem:e=>`\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`};var pU={};pU={"ar-AE":NH,"bg-BG":PH,"cs-CZ":FH,"da-DK":IH,"de-DE":LH,"el-GR":RH,"en-US":zH,"es-ES":BH,"et-EE":VH,"fi-FI":HH,"fr-FR":UH,"he-IL":WH,"hr-HR":GH,"hu-HU":KH,"it-IT":qH,"ja-JP":JH,"ko-KR":YH,"lt-LT":XH,"lv-LV":ZH,"nb-NO":QH,"nl-NL":$H,"pl-PL":eU,"pt-BR":tU,"pt-PT":nU,"ro-RO":rU,"ru-RU":iU,"sk-SK":aU,"sl-SI":oU,"sr-SP":sU,"sv-SE":cU,"tr-TR":lU,"uk-UA":uU,"zh-CN":dU,"zh-TW":fU};function mU(e){return e&&e.__esModule?e.default:e}function hU(e,t){let{getRowText:n=e=>t.collection.getTextValue?.(e)??t.collection.getItem(e)?.textValue}=e,r=Pw(mU(pU),`@react-aria/grid`),i=t.selectionManager.rawSelection,a=(0,x.useRef)(i),o=(0,x.useCallback)(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let e=gU(i,a.current),o=gU(a.current,i),s=t.selectionManager.selectionBehavior===`replace`,c=[];if(t.selectionManager.selectedKeys.size===1&&s){let e=t.selectionManager.selectedKeys.keys().next().value;if(e!=null&&t.collection.getItem(e)){let t=n(e);t&&c.push(r.format(`selectedItem`,{item:t}))}}else if(e.size===1&&o.size===0){let t=e.keys().next().value;if(t!=null){let e=n(t);e&&c.push(r.format(`selectedItem`,{item:e}))}}else if(o.size===1&&e.size===0){let e=o.keys().next().value;if(e!=null&&t.collection.getItem(e)){let t=n(e);t&&c.push(r.format(`deselectedItem`,{item:t}))}}t.selectionManager.selectionMode===`multiple`&&(c.length===0||i===`all`||i.size>1||a.current===`all`||a.current?.size>1)&&c.push(i===`all`?r.format(`selectedAll`):r.format(`selectedCount`,{count:i.size})),c.length>0&&hD(c.join(` `)),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);dA(()=>{if(t.selectionManager.isFocused)o();else{let e=requestAnimationFrame(o);return()=>cancelAnimationFrame(e)}},[i,t.selectionManager.isFocused])}function gU(e,t){let n=new Set;if(e===`all`||t===`all`)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function _U(e,t){let n=t?.isDisabled,[r,i]=(0,x.useState)(!1);return Rx(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=lP(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}function vU(e){return e&&e.__esModule?e.default:e}function yU(e){let t=Pw(vU(pU),`@react-aria/grid`),n=VC(),r=(n===`pointer`||n===`virtual`||n==null)&&typeof window<`u`&&`ontouchstart`in window;return bA((0,x.useMemo)(()=>{let n=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior,a;return r&&(a=t.format(`longPressToSelect`)),i===`replace`&&n!==`none`&&e.hasItemActions?a:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]))}function bU(e,t,n){let{isVirtualized:r,keyboardDelegate:i,layoutDelegate:a,onAction:o,disallowTypeAhead:s,linkBehavior:c=`action`,keyboardNavigationBehavior:l=`arrow`,escapeKeyBehavior:u=`clearSelection`,shouldSelectOnPressUp:d}=e;!e[`aria-label`]&&!e[`aria-labelledby`]&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let{listProps:f}=kP({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:a,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior===`replace`,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:c,disallowTypeAhead:s,autoFocus:e.autoFocus,escapeKeyBehavior:u,UNSTABLE_focusOnEntry:e.UNSTABLE_focusOnEntry}),p=nS(e.id);AH.set(t,{id:p,onAction:o,linkBehavior:c,keyboardNavigationBehavior:l,shouldSelectOnPressUp:d});let m=yU({selectionManager:t.selectionManager,hasItemActions:!!o}),h=_U(n,{isDisabled:t.collection.size!==0}),g=H(K(e,{labelable:!0}),{role:`grid`,id:p,"aria-multiselectable":t.selectionManager.selectionMode===`multiple`?`true`:void 0},t.collection.size===0?{tabIndex:h?-1:0}:f,m);return r&&(g[`aria-rowcount`]=t.collection.size,g[`aria-colcount`]=1),hU({},t),{gridProps:g}}var xU={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function SU(e,t,n){let{node:r,isVirtualized:i,focusMode:a=`row`,allowsArrowNavigation:o}=e,{direction:s}=bw(),{onAction:c,linkBehavior:l,keyboardNavigationBehavior:u,shouldSelectOnPressUp:d}=AH.get(t),f=iS(),p=(0,x.useRef)(null),m=()=>{if(n.current!==null){if(a===`child`){if(jS(n.current)&&n.current!==kS(yS(n.current)))return;let e=lP(n.current,{tabbable:!0}).firstChild();if(e){oT(e),_A(e,{containingElement:pA(e)});return}}(p.current!=null&&r.key!==p.current||!jS(n.current))&&oT(n.current)}},h={},g=e.hasChildItems,_=t.selectionManager.isLink(r.key);if(r!=null&&`expandedKeys`in t){let e=t.collection.getChildren?.(r.key);g||=[...e??[]].length>1,c==null&&!_&&t.selectionManager.selectionMode===`none`&&g&&(c=()=>t.toggleKey(r.key));let n=g?t.expandedKeys.has(r.key):void 0,i=1,a=r.index;if(r.level>=0&&r?.parentKey!=null){let e=t.collection.getItem(r.parentKey);if(e){let n=TU(e,t.collection);i=[...n].filter(e=>e.type===`item`).length,a>0&&n[0].type!==`item`&&--a}}else i=[...t.collection].filter(e=>e.level===0&&e.type===`item`).length;h={"aria-expanded":n,"aria-level":r.level+1,"aria-posinset":a+1,"aria-setsize":i}}let{itemProps:v,...y}=NP({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:e.shouldSelectOnPressUp||d,onAction:c||r.props?.onAction?Lx(r.props?.onAction,c?()=>c(r.key):void 0):void 0,focus:m,linkBehavior:l}),b=e=>{let i=kS(yS(n.current));if(!W(e.currentTarget,G(e))||!n.current||!i)return;let a=lP(n.current);if(a.currentNode=i,!CU(e,t,r,g,s,i,n.current,o))switch(e.key){case`ArrowLeft`:if(u===`arrow`){let t=s===`rtl`?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),oT(t),_A(t,{containingElement:pA(n.current)});else if(e.preventDefault(),e.stopPropagation(),s===`rtl`)oT(n.current),_A(n.current,{containingElement:pA(n.current)});else{a.currentNode=n.current;let e=wU(a);e&&(oT(e),_A(e,{containingElement:pA(n.current)}))}}break;case`ArrowRight`:if(u===`arrow`){let t=s===`rtl`?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),oT(t),_A(t,{containingElement:pA(n.current)});else if(e.preventDefault(),e.stopPropagation(),s===`ltr`)oT(n.current),_A(n.current,{containingElement:pA(n.current)});else{a.currentNode=n.current;let e=wU(a);e&&(oT(e),_A(e,{containingElement:pA(n.current)}))}}break;case`ArrowUp`:case`ArrowDown`:!e.altKey&&W(n.current,G(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},S=e=>{p.current=r.key,G(e)===n.current?a===`child`&&e.relatedTarget&&W(n.current,e.relatedTarget)||requestAnimationFrame(()=>{a===`child`&&kS(yS(n.current))===n.current&&m()}):RC()||t.selectionManager.setFocusedKey(r.key)},C=e=>{let i=kS(yS(n.current));if(W(e.currentTarget,G(e))&&n.current&&i){if(u===`tab`){if(G(e)!==n.current&&e.key!==`Tab`){e.stopPropagation();return}if(CU(e,t,r,g,s,i,n.current,o))return}if(e.key===`Tab`&&u===`tab`){let t=lP(n.current,{tabbable:!0});t.currentNode=i,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}},w=vC(r.props),T=H(v,y.hasAction?w:{},{role:`row`,onKeyDownCapture:u===`arrow`||o?b:void 0,onFocus:S,"aria-label":r[`aria-label`]||r.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(r.key)?t.selectionManager.isSelected(r.key):void 0,"aria-disabled":t.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":f&&(r[`aria-label`]||r.textValue)?`${jH(t,r.key)} ${f}`:void 0,id:jH(t,r.key)});a===`child`&&o&&u===`tab`&&(T.tabIndex=-1);let E=T.onKeyDown;if(T.onKeyDown=e=>{C(e),e.isPropagationStopped()||E?.(e)},i){let{collection:e}=t;T[`aria-rowindex`]=[...e].find(e=>e.type===`section`)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!==`section`).findIndex(e=>e===r.key)+1:r.index+1}let D={role:`gridcell`,"aria-colindex":1};return{rowProps:{...H(T,h)},gridCellProps:D,descriptionProps:{id:f},...y}}function CU(e,t,n,r,i,a,o,s){if(!(`expandedKeys`in t)||!s&&a!==o)return!1;if(e.key===xU.expand[i]&&t.selectionManager.focusedKey===n.key&&r&&!t.expandedKeys.has(n.key))return t.toggleKey(n.key),e.stopPropagation(),!0;if(e.key===xU.collapse[i]&&t.selectionManager.focusedKey===n.key){if(r&&t.expandedKeys.has(n.key))return t.toggleKey(n.key),e.stopPropagation(),!0;if(!t.expandedKeys.has(n.key)&&n.parentKey&&t.collection.getItem(n.parentKey)?.type===`item`)return t.selectionManager.setFocusedKey(n.parentKey),e.stopPropagation(),!0}return!1}function wU(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function TU(e,t){let n=t.getChildren?.(e.key),r=n?Array.from(n):[],i=r.length>0?r[0]:null,a=[];for(;i;)a.push(i),i=i.nextKey==null?null:t.getItem(i.nextKey);return a}function EU(e){return e&&e.__esModule?e.default:e}function DU(e,t){let{key:n}=e,r=t.selectionManager,i=nS(),a=!t.selectionManager.canSelectItem(n),o=t.selectionManager.isSelected(n);return{checkboxProps:{id:i,"aria-label":Pw(EU(pU),`@react-aria/grid`).format(`select`),isSelected:o,isDisabled:a,onChange:()=>r.toggleSelection(n)}}}function OU(e,t){let{key:n}=e,{checkboxProps:r}=DU(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${jH(t,n)}`}}}var kU=(0,x.createContext)(null),AU=(0,x.forwardRef)(function(e,t){return[e,t]=fS(e,t,kU),x.createElement(LT,{content:x.createElement(YT,e)},n=>x.createElement(jU,{props:e,collection:n,gridListRef:t}))});function jU({props:e,collection:t,gridListRef:n}){[e,n]=fS(e,n,Lw);let{shouldUseVirtualFocus:r,filter:i,disallowTypeAhead:a,UNSTABLE_focusOnEntry:o,...s}=e,{dragAndDropHooks:c,keyboardNavigationBehavior:l=`arrow`,layout:u=`stack`,orientation:d=`vertical`}=e,{CollectionRoot:f,isVirtualized:p,layoutDelegate:m,dropTargetDelegate:h}=(0,x.useContext)(tE),g=aF(iF({...s,collection:t,children:void 0,layoutDelegate:m}),i),_=OP({usage:`search`,sensitivity:`base`}),{disabledBehavior:v,disabledKeys:y}=g.selectionManager,{direction:b}=bw(),S=(0,x.useMemo)(()=>new EP({collection:g.collection,collator:_,ref:n,disabledKeys:y,disabledBehavior:v,layoutDelegate:m,layout:u,orientation:d,direction:b}),[g.collection,n,u,d,y,v,m,_,b]),{gridProps:C}=bU({...s,keyboardDelegate:S,keyboardNavigationBehavior:u===`grid`?`tab`:l,isVirtualized:p,shouldSelectOnPressUp:e.shouldSelectOnPressUp,disallowTypeAhead:a,UNSTABLE_focusOnEntry:o},g,n),w=g.selectionManager,T=!!c?.useDraggableCollectionState,E=!!c?.useDroppableCollectionState;(0,x.useRef)(T),(0,x.useRef)(E),(0,x.useEffect)(()=>{},[T,E]);let D,O,k,A=!1,j=null,M=(0,x.useRef)(null);if(T&&c){D=c.useDraggableCollectionState({collection:g.collection,selectionManager:w,preview:c.renderDragPreview?M:void 0}),c.useDraggableCollection({},D,n);let e=c.DragPreview;j=c.renderDragPreview?x.createElement(e,{ref:M},c.renderDragPreview):null}if(E&&c){O=c.useDroppableCollectionState({collection:g.collection,selectionManager:w});let e=c.dropTargetDelegate||h||new c.ListDropTargetDelegate(t,n,{layout:u,direction:b,orientation:d});k=c.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:e},O,n),A=O.isDropTarget({type:`root`})}let{focusProps:ee,isFocused:N,isFocusVisible:P}=NE(),te=g.collection.size===0,F={isDropTarget:A,orientation:d,isEmpty:te,isFocused:N,isFocusVisible:P,layout:u,state:g},ne=uS({...e,children:void 0,defaultClassName:`react-aria-GridList`,values:F}),re=null;if(te&&e.renderEmptyState){let t=e.renderEmptyState(F);re=x.createElement(`div`,{role:`row`,"aria-rowindex":1,style:{display:`contents`}},x.createElement(`div`,{role:`gridcell`,style:{display:`contents`}},t))}let ie=K(e,{global:!0});return x.createElement(UN,null,x.createElement(U.div,{...H(ie,ne,C,ee,k?.collectionProps,null),ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":A||void 0,"data-empty":te||void 0,"data-focused":N||void 0,"data-focus-visible":P||void 0,"data-layout":u,"data-orientation":d},x.createElement(lS,{values:[[lF,g],[SN,{dragAndDropHooks:c,dragState:D,dropState:O}],[CN,{render:NU}]]},E&&x.createElement(IU,null),x.createElement(AN,null,x.createElement(f,{collection:g.collection,scrollRef:n,persistedKeys:EN(w,c,O),renderDropIndicator:TN(c,O)}))),re,j))}var MU=GT(Uw,function(e,t,n){let r=(0,x.useContext)(lF),{dragAndDropHooks:i,dragState:a,dropState:o}=(0,x.useContext)(SN),s=sS(t),{isVirtualized:c}=(0,x.useContext)(tE),l=a&&!(a.isDisabled||a.selectionManager.isDisabled(n.key)),{rowProps:u,gridCellProps:d,descriptionProps:f,...p}=SU({node:n,shouldSelectOnPressUp:!!a,isVirtualized:c,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},r,s),{hoverProps:m,isHovered:h}=zE({isDisabled:!p.allowsSelection&&!p.hasAction&&!l,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{isFocusVisible:g,focusProps:_}=NE(),{isFocusVisible:v,focusProps:y}=NE({within:!0}),{checkboxProps:b}=OU({key:n.key},r),S=r.selectionManager.disabledBehavior===`all`&&p.isDisabled?{isDisabled:!0}:{},C=null;a&&i&&(C=i.useDraggableItem({key:n.key,hasDragButton:!0},a));let w=null,T=(0,x.useRef)(null),{visuallyHiddenProps:E}=SA();o&&i&&(w=i.useDropIndicator({target:{type:`item`,key:n.key,dropPosition:`on`}},o,T));let D=a&&a.isDragging(n.key),O=uS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-GridListItem`,values:{...p,isHovered:h,isFocusVisible:g,isFocusVisibleWithin:v,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:D,isDropTarget:w?.isDropTarget,id:n.key,state:r}}),k=(0,x.useRef)(null);(0,x.useEffect)(()=>{a&&!k.current&&console.warn(`Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.`)},[]),(0,x.useEffect)(()=>{n.textValue},[n.textValue]);let A=K(e,{global:!0});return delete A.id,delete A.onClick,x.createElement(x.Fragment,null,w&&!w.isHidden&&x.createElement(`div`,{role:`row`,style:{position:`absolute`}},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{role:`button`,...E,...w?.dropIndicatorProps,ref:T}))),x.createElement(U.div,{...H(A,O,u,_,y,m,C?.dragProps),ref:s,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":g||void 0,"data-focus-visible-within":v||void 0,"data-pressed":p.isPressed||void 0,"data-allows-dragging":!!a||void 0,"data-dragging":D||void 0,"data-drop-target":w?.isDropTarget||void 0,"data-selection-mode":r.selectionManager.selectionMode===`none`?void 0:r.selectionManager.selectionMode},x.createElement(`div`,{...d,style:{display:`contents`}},x.createElement(lS,{values:[[$A,{slots:{[cS]:{},selection:b}}],[ej,{slots:{[cS]:{},selection:b}}],[yD,{slots:{[cS]:S,drag:{...C?.dragButtonProps,ref:k,style:{pointerEvents:`none`}}}}],[TD,{slots:{[cS]:{},description:f}}],[tE,QT],[lF,null],[Lw,null],[Rw,null],[jN,{isSelected:p.isSelected}]]},O.children))))});function NU(e,t){t=sS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(SN),i=(0,x.useRef)(null),{dropIndicatorProps:a,isHidden:o,isDropTarget:s}=n.useDropIndicator(e,r,i);return o?null:x.createElement(FU,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,ref:t})}function PU(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,...a}=e,{visuallyHiddenProps:o}=SA(),s=uS({...a,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return x.createElement(U.div,{...s,role:`row`,ref:t,"data-drop-target":r||void 0},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{...o,role:`button`,...n,ref:i}),s.children))}var FU=(0,x.forwardRef)(PU);function IU(){let{dragAndDropHooks:e,dropState:t}=(0,x.useContext)(SN),n=(0,x.useRef)(null),{dropIndicatorProps:r}=e.useDropIndicator({target:{type:`root`}},t,n),i=t.isDropTarget({type:`root`}),{visuallyHiddenProps:a}=SA();return!i&&r[`aria-hidden`]?null:x.createElement(`div`,{role:`row`,"aria-hidden":r[`aria-hidden`],style:{position:`absolute`}},x.createElement(`div`,{role:`gridcell`},x.createElement(`div`,{role:`button`,...a,...r,ref:n})))}GT(Hw,function(e,t,n){let r=(0,x.useContext)(lF),{isVirtualized:i}=(0,x.useContext)(tE),{isLoading:a,onLoadMore:o,scrollOffset:s,...c}=e,l=(0,x.useRef)(null);sF((0,x.useMemo)(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:l,scrollOffset:s}),[o,s,l,r?.collection]),l);let u=uS({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,values:void 0});return x.createElement(x.Fragment,null,x.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:KP(!0)},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:l,style:{position:`absolute`,height:1,width:1}})),a&&u.children&&x.createElement(U.div,{...u,...K(e,{global:!0}),role:`row`,ref:t},x.createElement(`div`,{"aria-colindex":i?1:void 0,role:`gridcell`},u.children)))});var LU=1500,RU=500,zU={},BU=0,VU=!1,HU=null,UU=null;function WU(e={}){let{delay:t=LU,closeDelay:n=RU}=e,{isOpen:r,open:i,close:a}=gL(e),[o,s]=(0,x.useState)(!1),c=(0,x.useMemo)(()=>`${++BU}`,[]),l=(0,x.useRef)(null),u=(0,x.useRef)(a),d=()=>{zU[c]=m},f=()=>{for(let e in zU)e!==c&&(zU[e](!0,!0),delete zU[e])},p=e=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),s(!!e),VU=!0,i(),HU&&=(clearTimeout(HU),null),UU&&=(clearTimeout(UU),null)},m=(e,t)=>{s(!!t),e||n<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||=setTimeout(()=>{l.current=null,u.current()},n),HU&&=(clearTimeout(HU),null),VU&&(UU&&clearTimeout(UU),UU=setTimeout(()=>{delete zU[c],UU=null,VU=!1},Math.max(RU,n)))},h=()=>{f(),d(),!r&&!VU?(HU&&clearTimeout(HU),HU=setTimeout(()=>{HU=null,VU=!0,p(!1)},t)):r||p(!0)};return(0,x.useEffect)(()=>{u.current=a},[a]),(0,x.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),zU[c]&&delete zU[c]},[c]),{isOpen:r,shouldSkipAnimation:o,open:e=>{!e&&t>0&&!l.current?h():p(VU)},close:m}}function GU(e,t,n){let{overlayProps:r,underlayProps:i}=aI({...e,isOpen:t.isOpen,onClose:t.close},n);yI({isDisabled:!t.isOpen,UNSTABLE_overrideFocus:e.UNSTABLE_overrideFocus}),hL();let{isEntering:a}=e;return(0,x.useEffect)(()=>{if(t.isOpen&&n.current)return a?TF(n.current):wF([n.current],{shouldUseInert:!0})},[t.isOpen,a,n]),{modalProps:H(r),underlayProps:i}}var KU=typeof document<`u`&&window.visualViewport;function qU(){let e=Xx(),t=(0,x.useRef)(null),[n,r]=(0,x.useState)(()=>e?{width:0,height:0}:JU());return(0,x.useEffect)(()=>{let e=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},n=()=>{KU&&KU.scale>1||e(JU())},i=n=>{KU&&KU.scale>1||rw(G(n))&&(t.current=mI(t=>{t||e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(JU()),iC()&&oC()&&window.addEventListener(`blur`,i,!0),KU?KU.addEventListener(`resize`,n):window.addEventListener(`resize`,n),()=>{t.current?.(),iC()&&oC()&&window.removeEventListener(`blur`,i,!0),KU?KU.removeEventListener(`resize`,n):window.removeEventListener(`resize`,n)}},[]),n}function JU(){return{width:KU?Math.min(KU.width*KU.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:KU?KU.height*KU.scale:document.documentElement.clientHeight}}var YU=(0,x.createContext)(null),XU=(0,x.createContext)(null),ZU=(0,x.forwardRef)(function(e,t){if((0,x.useContext)(XU))return x.createElement(nW,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,children:s,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d,...f}=e;return x.createElement($U,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},x.createElement(nW,{...f,modalRef:t},s))});function QU(e,t){[e,t]=fS(e,t,YU);let n=(0,x.useContext)(MR),r=gL(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=sS(t),o=(0,x.useRef)(null),s=vL(a,i.isOpen,e.onExit),c=(0,x.useRef)(null),l=vL(o,i.isOpen,e=>c.current?.(e)),u=s||l||e.isExiting||!1,d=Xx();return!i.isOpen&&!u||d?null:x.createElement(eW,{...e,state:i,isExiting:u,overlayRef:a,modalRef:o,onExitRef:c})}var $U=(0,x.forwardRef)(QU);function eW({UNSTABLE_portalContainer:e,UNSTABLE_deferUntilEntered:t,...n}){let r=n.modalRef,{state:i}=n,[a,o]=(0,x.useState)(!1),s=_L(n.overlayRef,a,n.onEnter)||n.isEntering||!1,c=!!t&&(!a||s),{modalProps:l,underlayProps:u}=GU({...n,isEntering:c},i,r),d=(0,x.useContext)(jR),f=t?tW(d,{isEntering:c}):d,p=uS({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:s,isExiting:n.isExiting,state:i}}),m=qU(),h,g;if(typeof document<`u`){let e=fA(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;h=e.scrollWidth-t,g=e.scrollHeight-n}let _={...p.style,"--visual-viewport-width":m.width+`px`,"--visual-viewport-height":m.height+`px`,"--page-width":h===void 0?void 0:h+`px`,"--page-height":g===void 0?void 0:g+`px`};return Rx(()=>mI(()=>o(!0)),[]),x.createElement(mL,{isExiting:n.isExiting,portalContainer:e},x.createElement(U.div,{...H(K(n,{global:!0}),u),...p,style:_,ref:n.overlayRef,"data-entering":s||void 0,"data-exiting":n.isExiting||void 0},x.createElement(lS,{values:[[XU,{modalProps:l,modalRef:r,isExiting:n.isExiting,onExitRef:n.onExitRef,isOpen:a,isDismissable:n.isDismissable}],[MR,i],[jR,f]]},p.children)))}function tW(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}function nW(e){let{modalProps:t,modalRef:n,isExiting:r,onExitRef:i,isDismissable:a,isOpen:o}=(0,x.useContext)(XU),s=(0,x.useContext)(MR),c=sS((0,x.useMemo)(()=>aS(e.modalRef,n),[e.modalRef,n])),l=_L(c,o,e.onEnter),u=uS({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:l,isExiting:r,state:s}});return Rx(()=>{i&&(i.current=e.onExit)}),x.createElement(U.div,{...H(K(e,{global:!0}),t),...u,ref:c,"data-entering":l||void 0,"data-exiting":r||void 0},a&&x.createElement(cL,{onDismiss:s.close}),u.children)}var rW=(0,x.createContext)(null),iW=(0,x.createContext)(null),aW=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,rW);let{validationBehavior:n}=dS(RA)||{},r=e.validationBehavior??n??`native`,{locale:i}=bw(),a=RM({...e,locale:i,validationBehavior:r}),o=(0,x.useRef)(null),[s,c]=pS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:l,groupProps:u,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:m,errorMessageProps:h,...g}=FM({...mS(e),label:c,validationBehavior:r},a,o),_=uS({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:g.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:`react-aria-NumberField`}),v=K(e,{global:!0});return delete v.id,x.createElement(lS,{values:[[iW,a],[oj,u],[cj,{...d,ref:o}],[HE,{...l,ref:s}],[yD,{slots:{increment:f,decrement:p}}],[TD,{slots:{description:m,errorMessage:h}}],[wA,g]]},x.createElement(U.div,{...v,..._,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":g.isInvalid||void 0}),e.name&&x.createElement(`input`,{type:`hidden`,name:e.name,form:e.form,value:isNaN(a.numberValue)?``:a.numberValue,disabled:e.isDisabled||void 0}))}),oW={};oW={"Clear search":`مسح البحث`};var sW={};sW={"Clear search":`Изчистване на търсене`};var cW={};cW={"Clear search":`Vymazat hledání`};var lW={};lW={"Clear search":`Ryd søgning`};var uW={};uW={"Clear search":`Suche zurücksetzen`};var dW={};dW={"Clear search":`Απαλοιφή αναζήτησης`};var fW={};fW={"Clear search":`Clear search`};var pW={};pW={"Clear search":`Borrar búsqueda`};var mW={};mW={"Clear search":`Tühjenda otsing`};var hW={};hW={"Clear search":`Tyhjennä haku`};var gW={};gW={"Clear search":`Effacer la recherche`};var _W={};_W={"Clear search":`נקה חיפוש`};var vW={};vW={"Clear search":`Obriši pretragu`};var yW={};yW={"Clear search":`Keresés törlése`};var bW={};bW={"Clear search":`Cancella ricerca`};var xW={};xW={"Clear search":`検索をクリア`};var SW={};SW={"Clear search":`검색 지우기`};var CW={};CW={"Clear search":`Išvalyti iešką`};var wW={};wW={"Clear search":`Notīrīt meklēšanu`};var TW={};TW={"Clear search":`Tøm søk`};var EW={};EW={"Clear search":`Zoekactie wissen`};var DW={};DW={"Clear search":`Wyczyść zawartość wyszukiwania`};var OW={};OW={"Clear search":`Limpar pesquisa`};var kW={};kW={"Clear search":`Limpar pesquisa`};var AW={};AW={"Clear search":`Ştergeţi căutarea`};var jW={};jW={"Clear search":`Очистить поиск`};var MW={};MW={"Clear search":`Vymazať vyhľadávanie`};var NW={};NW={"Clear search":`Počisti iskanje`};var PW={};PW={"Clear search":`Obriši pretragu`};var FW={};FW={"Clear search":`Rensa sökning`};var IW={};IW={"Clear search":`Aramayı temizle`};var LW={};LW={"Clear search":`Очистити пошук`};var RW={};RW={"Clear search":`清除搜索`};var zW={};zW={"Clear search":`清除搜尋條件`};var BW={};BW={"ar-AE":oW,"bg-BG":sW,"cs-CZ":cW,"da-DK":lW,"de-DE":uW,"el-GR":dW,"en-US":fW,"es-ES":pW,"et-EE":mW,"fi-FI":hW,"fr-FR":gW,"he-IL":_W,"hr-HR":vW,"hu-HU":yW,"it-IT":bW,"ja-JP":xW,"ko-KR":SW,"lt-LT":CW,"lv-LV":wW,"nb-NO":TW,"nl-NL":EW,"pl-PL":DW,"pt-BR":OW,"pt-PT":kW,"ro-RO":AW,"ru-RU":jW,"sk-SK":MW,"sl-SI":NW,"sr-SP":PW,"sv-SE":FW,"tr-TR":IW,"uk-UA":LW,"zh-CN":RW,"zh-TW":zW};function VW(e){return e&&e.__esModule?e.default:e}function HW(e,t,n){let r=Pw(VW(BW),`@react-aria/searchfield`),{isDisabled:i,isReadOnly:a,onSubmit:o,onClear:s,type:c=`search`}=e,{keyboardProps:l}=xT({isDisabled:i||a,shortcuts:{Enter:()=>{if(o)o(t.value);else return!1},Escape:()=>{if(t.value===``&&(!n.current||n.current.value===``))return!1;t.setValue(``),s?.()}}}),u=()=>{t.setValue(``),s&&s()},d=()=>{n.current?.focus()},{labelProps:f,inputProps:p,descriptionProps:m,errorMessageProps:h,...g}=dj({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:c},n);return{labelProps:f,inputProps:H(l,{...p,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format(`Clear search`),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:u,onPressStart:d},descriptionProps:m,errorMessageProps:h,...g}}function UW(e){let[t,n]=Iw(WW(e.value),WW(e.defaultValue)||``,e.onChange);return{value:t,setValue:n}}function WW(e){if(e!=null)return e.toString()}var GW=(0,x.createContext)(null),KW=kT(function(e,t){[e,t]=fS(e,t,GW);let{validationBehavior:n}=dS(RA)||{},r=e.validationBehavior??n??`native`,i=(0,x.useRef)(null);[e,i]=fS(e,i,Rw);let[a,o]=pS(!e[`aria-label`]&&!e[`aria-labelledby`]),s=UW({...e,validationBehavior:r}),{labelProps:c,inputProps:l,clearButtonProps:u,descriptionProps:d,errorMessageProps:f,...p}=HW({...mS(e),label:o,validationBehavior:r},s,i),m=uS({...e,values:{isEmpty:s.value===``,isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:s},defaultClassName:`react-aria-SearchField`}),h=K(e,{global:!0});return delete h.id,x.createElement(U.div,{...h,...m,ref:t,slot:e.slot||void 0,"data-empty":s.value===``||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(lS,{values:[[HE,{...c,ref:a}],[cj,{...l,ref:i}],[yD,u],[TD,{slots:{description:d,errorMessage:f}}],[oj,{isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[wA,p]]},m.children))}),qW=new WeakMap;function JW(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=OP({usage:`search`,sensitivity:`base`}),u=(0,x.useMemo)(()=>r||new EP(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=lR({isDisabled:i,type:`listbox`},t,n),{keyboardProps:p}=xT({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:m}=xP({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:_}=t.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:S}=VA({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});t.selectionManager.selectionMode===`multiple`&&(m={});let C=K(e,{labelable:!0}),w=H(m,d,y),T=nS();return qW.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...v,onClick:()=>{e.isDisabled||(n.current?.focus(),BC(`keyboard`))}},triggerProps:H(C,{...w,isDisabled:i,onKeyDown:Lx(w.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[T,w[`aria-labelledby`],w[`aria-label`]&&!w[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{W(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[y[`aria-labelledby`],w[`aria-label`]&&!y[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `)},descriptionProps:b,errorMessageProps:S,isInvalid:h,validationErrors:g,validationDetails:_,hiddenSelectProps:{isDisabled:i,name:o,label:e.label,state:t,triggerRef:n,form:s}}}function YW(e,t,n){let r=qW.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=SA({style:{position:`fixed`,top:0,left:0}});HA(e.selectRef,t.defaultValue,t.setValue),UA({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,x.useCallback)(e=>{let t=G(e);t.multiple?d(Array.from(t.selectedOptions,e=>e.value)):d(e.currentTarget.value)},[d]);return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{style:{display:`none`}},selectProps:{tabIndex:-1,autoComplete:i,disabled:s,multiple:t.selectionManager.selectionMode===`multiple`,required:c===`native`&&l,name:a,form:o,value:t.value??``,onChange:f,onInput:f}}}function XW(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:o}=e,s=(0,x.useRef)(null),c=(0,x.useRef)(null),{containerProps:l,selectProps:u}=YW({...e,selectRef:t.collection.size<=300?s:c},t,n),d=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return x.createElement(`div`,{...l,"data-testid":`hidden-select-container`},x.createElement(`label`,null,r,x.createElement(`select`,{...u,ref:s},x.createElement(`option`,{value:``,label:`\xA0`},`\xA0`),[...t.collection.getKeys()].map(e=>{let n=t.collection.getItem(e);if(n&&n.type===`item`)return x.createElement(`option`,{key:n.key,value:n.key},n.textValue)}),t.collection.size===0&&i&&d.map((e,t)=>x.createElement(`option`,{key:t,value:e??``})))));if(i){let{validationBehavior:e}=qW.get(t)||{};d.length===0&&(d=[null]);let n=d.map((t,n)=>{let r={type:`hidden`,autoComplete:u.autoComplete,name:i,form:a,disabled:o,value:t??``};return e===`native`?x.createElement(`input`,{key:n,...r,ref:n===0?c:null,style:{display:`none`},type:`text`,required:n===0&&u.required,onChange:()=>{}}):x.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return x.createElement(x.Fragment,null,n)}return null}function ZW(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=gL(e),[i,a]=(0,x.useState)(null),o=(0,x.useMemo)(()=>e.defaultValue===void 0?t===`single`?e.defaultSelectedKey??null:[]:e.defaultValue,[e.defaultValue,e.defaultSelectedKey,t]),[s,c]=Iw((0,x.useMemo)(()=>e.value===void 0?t===`single`?e.selectedKey:void 0:e.value,[e.value,e.selectedKey,t]),o,e.onChange),l=t===`single`&&Array.isArray(s)?s[0]:s,u=n=>{if(t===`single`){let t=Array.isArray(n)?n[0]??null:n;c(t),t!==l&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(n)?e=n:n!=null&&(e=[n]),c(e)}},d=iF({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,x.useMemo)(()=>QW(l),[l]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;u(t)}else u([...e]);n&&r.close(),m.commitValidation()}}}),f=d.selectionManager.firstSelectedKey,p=(0,x.useMemo)(()=>[...d.selectionManager.selectedKeys].map(e=>d.collection.getItem(e)).filter(e=>e!=null),[d.selectionManager.selectedKeys,d.collection]),m=MA({...e,value:Array.isArray(l)&&l.length===0?null:l}),[h,g]=(0,x.useState)(!1),[_]=(0,x.useState)(l);return{...m,...d,...r,value:l,defaultValue:o??_,setValue:u,selectedKey:f,setSelectedKey:u,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode===`single`?_:null),focusStrategy:i,open(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.open())},toggle(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.toggle())},isFocused:h,setFocused:g}}function QW(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function $W(e){return e&&e.__esModule?e.default:e}var eG=(0,x.createContext)(null),tG=(0,x.createContext)(null),nG=kT(function(e,t){[e,t]=fS(e,t,eG);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,o=(0,x.useMemo)(()=>typeof n==`function`?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,i,a]);return x.createElement(LT,{content:o},n=>x.createElement(iG,{props:e,collection:n,selectRef:t}))}),rG=[HE,yD,TD];function iG({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=dS(RA)||{},i=e.validationBehavior??r??`native`,a=ZW({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=NE({within:!0}),c=(0,x.useRef)(null),[l,u]=pS(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...v}=JW({...mS(e),label:u,validationBehavior:i},a,c),y=(0,x.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:o,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,o,e.isDisabled,v.isInvalid,e.isRequired]),b=uS({...e,values:y,defaultClassName:`react-aria-Select`}),S=K(e,{global:!0});delete S.id;let C=(0,x.useRef)(null);return x.createElement(lS,{values:[[eG,e],[tG,a],[aG,p],[HE,{...d,ref:l,elementType:`span`}],[yD,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[MR,a],[bL,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:rG}],[cF,{...m,ref:C}],[lF,a],[TD,{slots:{description:h,errorMessage:g}}],[wA,v]]},x.createElement(U.div,{...H(S,b,s),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":o||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0,"data-required":e.isRequired||void 0},b.children,x.createElement(XW,{..._,autoComplete:e.autoComplete})))}var aG=(0,x.createContext)(null),oG=kT(function(e,t){[e,t]=fS(e,t,aG);let n=(0,x.useContext)(tG),{placeholder:r}=dS(eG),i=n.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),a=IR(),o=(0,x.useMemo)(()=>n.selectedItems.map(e=>e?.textValue),[n.selectedItems]),s=n.selectionManager.selectionMode,c=(0,x.useMemo)(()=>s===`single`?o[0]??``:a.format(o),[s,a,o]),l=(0,x.useMemo)(()=>{if(s===`single`)return i[0];let e=a.formatToParts(o);if(e.length===0)return null;let t=0;return e.map(e=>e.type===`element`?x.createElement(x.Fragment,{key:t},i[t++]):e.value)},[s,a,o,i]),u=Pw($W(xN),`react-aria-components`),d=uS({...e,defaultChildren:l??r??u.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,x.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:c,isPlaceholder:n.selectedItems.length===0,state:n}}),f=K(e,{global:!0});return x.createElement(U.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},x.createElement(TD.Provider,{value:void 0},d.children))});function sG(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,...o}=YA(e,t,n);return{labelProps:r,inputProps:{...i,role:`switch`,checked:a},isSelected:a,...o}}for(var cG=(0,x.createContext)(null),lG=(0,x.createContext)(null),uG=(0,x.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=fS(r,t,cG);let i=sS((0,x.useMemo)(()=>aS(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),a=ZA(e),o=sG({...mS(e),children:typeof e.children==`function`||e.children},a,i);return x.createElement(lS,{values:[[lG,a],[dG,{...o,inputRef:i,defaultClassName:`react-aria-Switch`}]]},x.createElement(fG,{...e,ref:t}))}),dG=(0,x.createContext)(null),fG=(0,x.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isRequired:d}=(0,x.useContext)(dG),{isFocused:f,isFocusVisible:p,focusProps:m}=NE(),h=a||o,g=(0,x.useContext)(lG),{hoverProps:_,isHovered:v}=zE({...e,isDisabled:h}),y=uS({...e,defaultClassName:u,values:{isSelected:i,isPressed:s,isHovered:v,isFocused:f,isFocusVisible:p,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:d||!1,state:g}}),b=K(e,{global:!0});return delete b.id,delete b.onClick,x.createElement(U.label,{...H(b,n,_,y),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-pressed":s||void 0,"data-hovered":v||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":d||void 0},x.createElement(CA,{elementType:`span`},x.createElement(`input`,{...H(r,m),ref:l})),y.children)}),pG=10,mG=5,hG=class{setup(e,t,n){this.delegate=e,this.state=t,this.direction=n}getDropTargetFromPoint(e,t,n){let r=this.delegate.getDropTargetFromPoint(e,t,n);return!r||r.type===`root`?r:this.resolveDropTarget(r,e,t,n)}resolveDropTarget(e,t,n,r){let i=this.pointerTracking,a=n-i.lastY,o=t-i.lastX,s=i.yDirection,c=i.xDirection;if(Math.abs(a)>mG&&(s=a>0?`down`:`up`,i.yDirection=s,i.lastY=n),Math.abs(o)>pG&&(c=o>0?`right`:`left`,i.xDirection=c,i.lastX=t),e.dropPosition===`before`){let t=this.state.collection.getKeyBefore(e.key);for(;t!=null;){let e=this.state.collection.getItem(t);if(e?.type===`item`)break;t=e?.parentKey??null}if(t!=null){let n={type:`item`,key:t,dropPosition:`after`};r(n)&&(e=n)}}let l=this.getPotentialTargets(e,r);if(l.length===0)return{type:`root`};let u;return l.length>1?u=this.selectTarget(l,e,t,n,s,c):(u=l[0],i.boundaryContext=null),u}getPotentialTargets(e,t){if(e.dropPosition===`on`)return[e];let n=e,r=this.state.collection,i=r.getItem(n.key);for(;i&&i?.type!==`item`&&i.nextKey!=null;)n.key=i.nextKey,i=r.getItem(i.nextKey);let a=[n];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&r.getChildren&&n.dropPosition===`after`){let e=i.firstChildKey==null?null:r.getItem(i.firstChildKey);for(;e&&e.type!==`item`;)e=e.nextKey==null?null:r.getItem(e.nextKey);if(e?.type===`item`){let n={type:`item`,key:e.key,dropPosition:`before`};return t(n)?[n]:[]}}if(i?.nextKey!=null)return[e];let o=i?.parentKey,s=[];for(;o!=null;){let e=r.getItem(o),n=e?.nextKey==null?null:r.getItem(e.nextKey);if(!n||n.parentKey!==o){if(e?.type===`item`){let e={type:`item`,key:o,dropPosition:`after`};t(e)&&s.push(e)}if(n)break}o=e?.parentKey}if(s.length>0&&a.push(...s),a.length===1){let e=r.getKeyAfter(n.key),a=e==null?null:r.getItem(e);if(e!=null&&a&&i&&a.level!=null&&i.level!=null&&a.level>i.level){let n={type:`item`,key:e,dropPosition:`before`};if(t(n))return[n]}}return a.filter(t)}selectTarget(e,t,n,r,i,a){if(e.length<2)return e[0];let o=this.pointerTracking,s=this.state.collection.getItem(t.key)?.parentKey;if(s==null)return e[0];o.boundaryContext&&o.boundaryContext.parentKey===s||(o.boundaryContext={parentKey:s,preferredTargetIndex:o.yDirection===`up`?e.length-1:0,lastSwitchY:r,lastSwitchX:n});let c=o.boundaryContext,l=Math.abs(n-c.lastSwitchX);if(Math.abs(r-c.lastSwitchY)>mG&&i){let t=c.preferredTargetIndex||0;i===`down`&&t===0?c.preferredTargetIndex=e.length-1:i===`up`&&t===e.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(l>pG&&a){let t=c.preferredTargetIndex||0;a===`left`?this.direction===`ltr`?t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n):t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):a===`right`&&(this.direction===`ltr`?t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n)),o.yDirection=null}return e[Math.max(0,Math.min(c.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction=`ltr`,this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}},gG=class{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=r=>{let i=this.keyMap.get(r.key);e.visitNode&&(r=e.visitNode(r)),this.keyMap.set(r.key,r);let a=new Set,o=null,s=!1;if(r.type===`item`){for(let e of r.childNodes)if(e.props?.colSpan!==void 0){s=!0;break}}for(let e of r.childNodes)e.type===`cell`&&s&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=o?(o.colIndex??o.index)+(o.colSpan??1):e.index),e.type===`cell`&&e.parentKey==null&&(e.parentKey=r.key),a.add(e.key),o?(o.nextKey=e.key,e.prevKey=o.key):e.prevKey=null,t(e),o=e;if(o&&(o.nextKey=null),i)for(let e of i.childNodes)a.has(e.key)||n(e)},n=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&n(t)},r=null;for(let[n,i]of e.items.entries()){let e={...i,level:i.level??0,key:i.key??`row-`+n,type:i.type??`row`,value:i.value??null,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:i.rendered,textValue:i.textValue??``,index:i.index??n};r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,this.rows.push(e),t(e),r=e}r&&(r.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},_G=`row-header-column-`+Math.random().toString(36).slice(2),vG=`row-header-column-`+Math.random().toString(36).slice(2);_G===vG;)vG=`row-header-column-`+Math.random().toString(36).slice(2);function yG(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let i of t){let t=i.parentKey,a=[i];for(;t!=null;){let n=e.get(t);if(!n)break;if(r.has(n)){n.colSpan??=0,n.colSpan++,n.colspan=n.colSpan;let{column:e,index:t}=r.get(n);if(t>a.length)break;for(let n=t;n<a.length;n++)e.splice(n,0,null);for(let t=a.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colSpan=1,n.colspan=1,a.push(n),r.set(n,{column:a,index:a.length-1});t=n.parentKey}n.push(a),i.index=n.length-1}let i=Math.max(...n.map(e=>e.length)),a=Array(i).fill(0).map(()=>[]),o=0;for(let e of n){let t=i-1;for(let n of e){if(n){let e=a[t],r=e.reduce((e,t)=>e+(t.colSpan??1),0);if(r<o){let i={type:`placeholder`,key:`placeholder-`+n.key,colspan:o-r,colSpan:o-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:``};e.length>0&&(e[e.length-1].nextKey=i.key,i.prevKey=e[e.length-1].key),e.push(i)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=o,e.push(n)}t--}o++}let s=0;for(let e of a){let n=e.reduce((e,t)=>e+(t.colSpan??1),0);if(n<t.length){let r={type:`placeholder`,key:`placeholder-`+e[e.length-1].key,colSpan:t.length-n,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:``,prevKey:e[e.length-1].key};e.push(r)}s++}return a.map((e,t)=>({type:`headerrow`,key:`headerrow-`+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:``}))}var bG=class extends gG{constructor(e,t,n){let r=new Set,i=null,a=[];if(n?.showSelectionCheckboxes){let e={type:`column`,key:_G,value:null,textValue:``,level:0,index:+!!n?.showDragButtons,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};a.unshift(e)}if(n?.showDragButtons){let e={type:`column`,key:vG,value:null,textValue:``,level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};a.unshift(e)}let o=[],s=new Map,c=e=>{switch(e.type){case`body`:i=e;break;case`column`:s.set(e.key,e),e.hasChildNodes||(a.push(e),e.props.isRowHeader&&r.add(e.key));break;case`item`:o.push(e);return}for(let t of e.childNodes)c(t)};for(let t of e)c(t);let l=yG(s,a);if(l.forEach((e,t)=>o.splice(t,0,e)),super({columnCount:a.length,items:o,visitNode:e=>(e.column=a[e.index],e)}),this._size=0,this.columns=a,this.rowHeaderColumnKeys=r,this.body=i,this.headerRows=l,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0){let e=this.columns.find(e=>!e.props?.isDragButtonCell&&!e.props?.isSelectionCell);e&&this.rowHeaderColumnKeys.add(e.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return LP(this.body.childNodes)?.key??null}getLastKey(){return zP(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let t=this.getItem(e);return t?.type===`item`?[...t.childNodes].filter(e=>e.type===`cell`):super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys;if(n){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(n.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===n.size)break}return e.join(` `)}return``}};function xG(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||XP(e),i=(0,x.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(e,r)=>{if(n===`cell`&&e!=null){let n=t.getItem(e);if(n?.type===`item`){let i=IP(n,t);e=r===`last`?zP(i)?.key??null:LP(i)?.key??null}}a(e,r)};let o=(0,x.useMemo)(()=>new QP(t,r),[t,r]),s=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(r.focusedKey!=null&&s.current&&!t.getItem(r.focusedKey)){let e=s.current.getItem(r.focusedKey),n=e?.parentKey!=null&&(e.type===`cell`||e.type===`rowheader`||e.type===`column`)?s.current.getItem(e.parentKey):e;if(!n){r.setFocusedKey(null);return}let i=s.current.rows,a=t.rows,c=i.length-a.length,l=Math.min(c>1?Math.max(n.index-c+1,0):n.index,a.length-1),u=null;for(let e=Math.max(0,l);e<a.length;e++)if(!o.isDisabled(a[e].key)&&a[e].type!==`headerrow`){u=a[e];break}if(u===null){for(let e=l-1;e>=0;e--)if(!o.isDisabled(a[e].key)&&a[e].type!==`headerrow`){u=a[e];break}}if(u){let i=u.hasChildNodes?[...IP(u,t)]:[],a=u.hasChildNodes&&n!==e&&e&&e.index<i.length?i[e.index].key:u.key;r.setFocusedKey(a)}else r.setFocusedKey(null)}s.current=t},[t,o,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:o}}var SG={ascending:`descending`,descending:`ascending`};function CG(e){let[t,n]=(0,x.useState)(!1),{selectionMode:r=`none`,showSelectionCheckboxes:i,showDragButtons:a,treeColumn:o=null}=e,s=(0,x.useMemo)(()=>({showSelectionCheckboxes:i&&r!==`none`,showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),c=rF(e,(0,x.useCallback)(e=>new bG(e,null,s),[s]),s),{disabledKeys:l,selectionManager:u}=xG({...e,collection:c,disabledBehavior:e.disabledBehavior||`selection`}),[d,f]=Iw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:c,disabledKeys:l,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:c.size===0||t,setKeyboardNavigationDisabled:n,sort(t,n){e.onSortChange?.({column:t,direction:n??(e.sortDescriptor?.column===t?SG[e.sortDescriptor.direction]:`ascending`)})},expandedKeys:d,toggleKey(e){f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},treeColumn:o}}function wG(e,t){let n=(0,x.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}var TG=class{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||`all`,this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw Error(`Either a layout or a ref must be specified.`);this.layoutDelegate=e.layoutDelegate||(e.layout?new EG(e.layout):new TP(e.ref)),this.focusMode=e.focusMode??`row`}isCell(e){return e.type===`cell`}isRow(e){return e.type===`row`||e.type===`item`}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findPreviousKey(e,t,n=!1){let r=e==null?this.collection.getLastKey():this.collection.getKeyBefore(e);for(;r!=null;){let e=this.collection.getItem(r);if(!e)return null;if((n||!this.isDisabled(e))&&(!t||t(e)))return r;r=this.collection.getKeyBefore(r)}return null}findNextKey(e,t,n=!1){let r=e==null?this.collection.getFirstKey():this.collection.getKeyAfter(e);for(;r!=null;){let e=this.collection.getItem(r);if(!e)return null;if((n||!this.isDisabled(e))&&(!t||t(e)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let n=this.collection.getItem(e);if(!n)return null;let r=0;for(let e of IP(n,this.collection)){if(e.colSpan&&e.colSpan+r>t||(e.colSpan&&(r=r+e.colSpan-1),r===t))return e.key??null;r++}return null}getKeyBelow(e,t){let n=e,r=this.collection.getItem(n);if(!r||(this.isCell(r)&&(n=r.parentKey??null),n==null))return null;if(n=this.findNextKey(n,e=>e.type===`item`,t?.includeDisabled),n!=null){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,e)}if(this.focusMode===`row`)return n}return null}getKeyAbove(e,t){let n=e,r=this.collection.getItem(n);if(!r||(this.isCell(r)&&(n=r.parentKey??null),n==null))return null;if(n=this.findPreviousKey(n,e=>e.type===`item`,t?.includeDisabled),n!=null){if(this.isCell(r)){let e=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(n,e)}if(this.focusMode===`row`)return n}return null}getKeyRightOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=IP(t,this.collection);return(this.direction===`rtl`?zP(e)?.key:LP(e)?.key)??null}if(this.isCell(t)&&t.parentKey!=null){let n=this.collection.getItem(t.parentKey);if(!n)return null;let r=IP(n,this.collection),i=(this.direction===`rtl`?RP(r,t.index-1):RP(r,t.index+1))??null;return i?i.key??null:this.focusMode===`row`?t.parentKey??null:(this.direction===`rtl`?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=IP(t,this.collection);return(this.direction===`rtl`?LP(e)?.key:zP(e)?.key)??null}if(this.isCell(t)&&t.parentKey!=null){let n=this.collection.getItem(t.parentKey);if(!n)return null;let r=IP(n,this.collection),i=(this.direction===`rtl`?RP(r,t.index+1):RP(r,t.index-1))??null;return i?i.key??null:this.focusMode===`row`?t.parentKey??null:(this.direction===`rtl`?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){let n=e??null,r;if(n!=null){if(r=this.collection.getItem(n),!r)return null;if(this.isCell(r)&&!t&&r.parentKey!=null){let e=this.collection.getItem(r.parentKey);return e?LP(IP(e,this.collection))?.key??null:null}}if(n=this.findNextKey(void 0,e=>e.type===`item`),n!=null&&(r&&this.isCell(r)&&t||this.focusMode===`cell`)){let e=this.collection.getItem(n);if(!e)return null;n=LP(IP(e,this.collection))?.key??null}return n}getLastKey(e,t){let n=e??null,r;if(n!=null){if(r=this.collection.getItem(n),!r)return null;if(this.isCell(r)&&!t&&r.parentKey!=null){let e=this.collection.getItem(r.parentKey);return e?zP(IP(e,this.collection))?.key??null:null}}if(n=this.findPreviousKey(void 0,e=>e.type===`item`),n!=null&&(r&&this.isCell(r)&&t||this.focusMode===`cell`)){let e=this.collection.getItem(n);if(!e)return null;n=zP(IP(e,this.collection))?.key??null}return n}getKeyPageAbove(e){let t=e,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>r&&t!=null&&(t=this.getKeyAbove(t)??null,t!=null);)n=this.layoutDelegate.getItemRect(t);return t}getKeyPageBelow(e){let t=e,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let r=this.layoutDelegate.getVisibleRect().height,i=Math.min(this.layoutDelegate.getContentSize().height,n.y+r);for(;n&&n.y+n.height<i;){let e=this.getKeyBelow(t);if(e==null)break;n=this.layoutDelegate.getItemRect(e),t=e}return t}getKeyForSearch(e,t){let n=t??null;if(!this.collator)return null;let r=this.collection;if(n=t??this.getFirstKey(),n==null)return null;let i=r.getItem(n);if(!i)return null;i.type===`cell`&&(n=i.parentKey??null);let a=!1;for(;n!=null;){let t=r.getItem(n);if(!t)return null;if(t.textValue){let n=t.textValue.slice(0,e.length);if(this.collator.compare(n,e)===0)return this.isRow(t)&&this.focusMode===`cell`?LP(IP(t,this.collection))?.key??null:t.key}n=this.findNextKey(n,e=>e.type===`item`),n==null&&!a&&(n=this.getFirstKey(),a=!0)}return null}},EG=class{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}},DG=new WeakMap;function OG(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:o,scrollRef:s,getRowText:c,onRowAction:l,onCellAction:u,escapeKeyBehavior:d=`clearSelection`,shouldSelectOnPressUp:f,keyboardNavigationBehavior:p=`arrow`}=e,{selectionManager:m}=t;!e[`aria-label`]&&!e[`aria-labelledby`]&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let h=OP({usage:`search`,sensitivity:`base`}),{direction:g}=bw(),_=t.selectionManager.disabledBehavior,v=(0,x.useMemo)(()=>a||new TG({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:_,ref:n,direction:g,collator:h,focusMode:o}),[a,t.collection,t.disabledKeys,_,n,g,h,o]),{collectionProps:y}=wP({ref:n,selectionManager:m,keyboardDelegate:v,isVirtualized:r,scrollRef:s,disallowTypeAhead:i,escapeKeyBehavior:d}),b=nS(e.id);DG.set(t,{keyboardDelegate:v,actions:{onRowAction:l,onCellAction:u},shouldSelectOnPressUp:f,keyboardNavigationBehavior:p});let S=yU({selectionManager:m,hasItemActions:!!(l||u)}),C=K(e,{labelable:!0}),w=(0,x.useCallback)(e=>{m.isFocused?W(e.currentTarget,G(e))||m.setFocused(!1):W(e.currentTarget,G(e))&&m.setFocused(!0)},[m]),T=(0,x.useMemo)(()=>({onBlur:y.onBlur,onFocus:w}),[w,y.onBlur]),E=_U(n,{isDisabled:t.collection.size!==0}),D=H(C,{role:`grid`,id:b,"aria-multiselectable":m.selectionMode===`multiple`?`true`:void 0},t.isKeyboardNavigationDisabled?T:y,t.collection.size===0&&{tabIndex:E?-1:0}||void 0,S);return r&&(D[`aria-rowcount`]=t.collection.size,D[`aria-colcount`]=t.collection.columnCount),hU({getRowText:c},t),{gridProps:D}}var kG=new WeakMap;function AG(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function jG(e,t){let n=kG.get(e);if(!n)throw Error(`Unknown grid`);return`${n}-${AG(t)}`}function MG(e,t,n){let r=kG.get(e);if(!r)throw Error(`Unknown grid`);return`${r}-${AG(t)}-${AG(n)}`}function NG(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>MG(e,t,n)).join(` `)}var PG={};PG={ascending:`تصاعدي`,ascendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,collapse:`طي`,columnSize:e=>`${e.value} \u{628}\u{627}\u{644}\u{628}\u{643}\u{633}\u{644}`,descending:`تنازلي`,descendingSort:e=>`\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{646}\u{627}\u{632}\u{644}\u{64A}`,expand:`تمديد`,resizerDescription:`اضغط على مفتاح Enter لبدء تغيير الحجم`,select:`تحديد`,selectAll:`تحديد الكل`,sortable:`عمود قابل للترتيب`};var FG={};FG={ascending:`възходящ`,ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,collapse:`Свиване`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}\u{435}\u{43B}\u{430}`,descending:`низходящ`,descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432} \u{43D}\u{438}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,expand:`Разширяване`,resizerDescription:`Натиснете „Enter“, за да започнете да преоразмерявате`,select:`Изберете`,selectAll:`Изберете всичко`,sortable:`сортираща колона`};var IG={};IG={ascending:`vzestupně`,ascendingSort:e=>`\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,collapse:`Sbalit`,columnSize:e=>`${e.value} pixel\u{16F}`,descending:`sestupně`,descendingSort:e=>`\u{159}azeno sestupn\u{11B} podle sloupce ${e.columnName}`,expand:`Roztáhnout`,resizerDescription:`Stisknutím klávesy Enter začnete měnit velikost`,select:`Vybrat`,selectAll:`Vybrat vše`,sortable:`sloupec s možností řazení`};var LG={};LG={ascending:`stigende`,ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,collapse:`Skjul`,columnSize:e=>`${e.value} pixels`,descending:`faldende`,descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende r\xe6kkef\xf8lge`,expand:`Udvid`,resizerDescription:`Tryk på Enter for at ændre størrelse`,select:`Vælg`,selectAll:`Vælg alle`,sortable:`sorterbar kolonne`};var RG={};RG={ascending:`aufsteigend`,ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:`Reduzieren`,columnSize:e=>`${e.value} Pixel`,descending:`absteigend`,descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:`Erweitern`,resizerDescription:`Eingabetaste zum Starten der Größenänderung drücken`,select:`Auswählen`,selectAll:`Alles auswählen`,sortable:`sortierbare Spalte`};var zG={};zG={ascending:`αύξουσα`,ascendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,collapse:`Σύμπτυξη`,columnSize:e=>`${e.value} pixel`,descending:`φθίνουσα`,descendingSort:e=>`\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3C6}\u{3B8}\u{3AF}\u{3BD}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,expand:`Ανάπτυξη`,resizerDescription:`Πατήστε Enter για έναρξη της αλλαγής μεγέθους`,select:`Επιλογή`,selectAll:`Επιλογή όλων`,sortable:`Στήλη διαλογής`};var BG={};BG={select:`Select`,selectAll:`Select All`,sortable:`sortable column`,ascending:`ascending`,descending:`descending`,ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:`Press Enter to start resizing`,expand:`Expand`,collapse:`Collapse`};var VG={};VG={ascending:`ascendente`,ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:`Contraer`,columnSize:e=>`${e.value} p\xedxeles`,descending:`descendente`,descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:`Ampliar`,resizerDescription:`Pulse Intro para empezar a redimensionar`,select:`Seleccionar`,selectAll:`Seleccionar todos`,sortable:`columna ordenable`};var HG={};HG={ascending:`tõusev järjestus`,ascendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,collapse:`Ahenda`,columnSize:e=>`${e.value} pikslit`,descending:`laskuv järjestus`,descendingSort:e=>`sorditud veeru j\xe4rgi ${e.columnName} laskuvas j\xe4rjestuses`,expand:`Laienda`,resizerDescription:`Suuruse muutmise alustamiseks vajutage klahvi Enter`,select:`Vali`,selectAll:`Vali kõik`,sortable:`sorditav veerg`};var UG={};UG={ascending:`nouseva`,ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,collapse:`Pienennä`,columnSize:e=>`${e.value} pikseli\xe4`,descending:`laskeva`,descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa j\xe4rjestyksess\xe4`,expand:`Laajenna`,resizerDescription:`Aloita koon muutos painamalla Enter-näppäintä`,select:`Valitse`,selectAll:`Valitse kaikki`,sortable:`lajiteltava sarake`};var WG={};WG={ascending:`croissant`,ascendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,collapse:`Réduire`,columnSize:e=>`${e.value}\xa0pixels`,descending:`décroissant`,descendingSort:e=>`tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre d\xe9croissant`,expand:`Développer`,resizerDescription:`Appuyez sur Entrée pour commencer le redimensionnement.`,select:`Sélectionner`,selectAll:`Sélectionner tout`,sortable:`colonne triable`};var GG={};GG={ascending:`עולה`,ascendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,collapse:`כווץ`,columnSize:e=>`${e.value} \u{5E4}\u{5D9}\u{5E7}\u{5E1}\u{5DC}\u{5D9}\u{5DD}`,descending:`יורד`,descendingSort:e=>`\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5D9}\u{5D5}\u{5E8}\u{5D3}`,expand:`הרחב`,resizerDescription:`הקש Enter כדי לשנות את הגודל`,select:`בחר`,selectAll:`בחר הכול`,sortable:`עמודה שניתן למיין`};var KG={};KG={ascending:`rastući`,ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,collapse:`Sažmi`,columnSize:e=>`${e.value} piksela`,descending:`padajući`,descendingSort:e=>`razvrstano po stupcima ${e.columnName} padaju\u{107}im redoslijedom`,expand:`Proširi`,resizerDescription:`Pritisnite Enter da biste započeli promenu veličine`,select:`Odaberite`,selectAll:`Odaberite sve`,sortable:`stupac koji se može razvrstati`};var qG={};qG={ascending:`növekvő`,ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,collapse:`Összecsukás`,columnSize:e=>`${e.value} k\xe9ppont`,descending:`csökkenő`,descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, cs\xf6kken\u{151} sorrendben`,expand:`Kibontás`,resizerDescription:`Nyomja le az Enter billentyűt az átméretezés megkezdéséhez`,select:`Kijelölés`,selectAll:`Összes kijelölése`,sortable:`rendezendő oszlop`};var JG={};JG={ascending:`crescente`,ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:`Comprimi`,columnSize:e=>`${e.value} pixel`,descending:`decrescente`,descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:`Espandi`,resizerDescription:`Premi Invio per iniziare a ridimensionare`,select:`Seleziona`,selectAll:`Seleziona tutto`,sortable:`colonna ordinabile`};var YG={};YG={ascending:`昇順`,ascendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,collapse:`折りたたむ`,columnSize:e=>`${e.value} \u{30D4}\u{30AF}\u{30BB}\u{30EB}`,descending:`降順`,descendingSort:e=>`\u{5217} ${e.columnName} \u{3092}\u{964D}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,expand:`展開`,resizerDescription:`Enter キーを押してサイズ変更を開始`,select:`選択`,selectAll:`すべて選択`,sortable:`並べ替え可能な列`};var XG={};XG={ascending:`오름차순`,ascendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,collapse:`접기`,columnSize:e=>`${e.value} \u{D53D}\u{C140}`,descending:`내림차순`,descendingSort:e=>`${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{B0B4}\u{B9BC}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,expand:`펼치기`,resizerDescription:`크기 조정을 시작하려면 Enter를 누르세요.`,select:`선택`,selectAll:`모두 선택`,sortable:`정렬 가능한 열`};var ZG={};ZG={ascending:`didėjančia tvarka`,ascendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,collapse:`Sutraukti`,columnSize:e=>`${e.value} piks.`,descending:`mažėjančia tvarka`,descendingSort:e=>`surikiuota pagal stulpel\u{12F} ${e.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,expand:`Išskleisti`,resizerDescription:`Paspauskite „Enter“, kad pradėtumėte keisti dydį`,select:`Pasirinkti`,selectAll:`Pasirinkti viską`,sortable:`rikiuojamas stulpelis`};var QG={};QG={ascending:`augošā secībā`,ascendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,collapse:`Sakļaut`,columnSize:e=>`${e.value} pikse\u{13C}i`,descending:`dilstošā secībā`,descendingSort:e=>`k\u{101}rtots p\u{113}c kolonnas ${e.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,expand:`Izvērst`,resizerDescription:`Nospiediet Enter, lai sāktu izmēru mainīšanu`,select:`Atlasīt`,selectAll:`Atlasīt visu`,sortable:`kārtojamā kolonna`};var $G={};$G={ascending:`stigende`,ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,collapse:`Skjul`,columnSize:e=>`${e.value} piksler`,descending:`synkende`,descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkef\xf8lge`,expand:`Utvid`,resizerDescription:`Trykk på Enter for å starte størrelsesendring`,select:`Velg`,selectAll:`Velg alle`,sortable:`kolonne som kan sorteres`};var eK={};eK={ascending:`oplopend`,ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:`Samenvouwen`,columnSize:e=>`${e.value} pixels`,descending:`aflopend`,descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:`Uitvouwen`,resizerDescription:`Druk op Enter om het formaat te wijzigen`,select:`Selecteren`,selectAll:`Alles selecteren`,sortable:`sorteerbare kolom`};var tK={};tK={ascending:`rosnąco`,ascendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,collapse:`Zwiń`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:`malejąco`,descendingSort:e=>`posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku malej\u{105}cym`,expand:`Rozwiń`,resizerDescription:`Naciśnij Enter, aby rozpocząć zmienianie rozmiaru`,select:`Zaznacz`,selectAll:`Zaznacz wszystko`,sortable:`kolumna z możliwością sortowania`};var nK={};nK={ascending:`crescente`,ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:`Recolher`,columnSize:e=>`${e.value} pixels`,descending:`decrescente`,descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:`Expandir`,resizerDescription:`Pressione Enter para começar a redimensionar`,select:`Selecionar`,selectAll:`Selecionar tudo`,sortable:`coluna classificável`};var rK={};rK={ascending:`ascendente`,ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:`Colapsar`,columnSize:e=>`${e.value} pixels`,descending:`descendente`,descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:`Expandir`,resizerDescription:`Prima Enter para iniciar o redimensionamento`,select:`Selecionar`,selectAll:`Selecionar tudo`,sortable:`Coluna ordenável`};var iK={};iK={ascending:`crescătoare`,ascendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,collapse:`Restrângeți`,columnSize:e=>`${e.value} pixeli`,descending:`descrescătoare`,descendingSort:e=>`sortate dup\u{103} coloana ${e.columnName} \xeen ordine descresc\u{103}toare`,expand:`Extindeți`,resizerDescription:`Apăsați pe Enter pentru a începe redimensionarea`,select:`Selectare`,selectAll:`Selectare totală`,sortable:`coloană sortabilă`};var aK={};aK={ascending:`возрастание`,ascendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,collapse:`Свернуть`,columnSize:e=>`${e.value} \u{43F}\u{438}\u{43A}\u{441}.`,descending:`убывание`,descendingSort:e=>`\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{443}\u{431}\u{44B}\u{432}\u{430}\u{43D}\u{438}\u{44F}`,expand:`Развернуть`,resizerDescription:`Нажмите клавишу Enter для начала изменения размеров`,select:`Выбрать`,selectAll:`Выбрать все`,sortable:`сортируемый столбец`};var oK={};oK={ascending:`vzostupne`,ascendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,collapse:`Zbaliť`,columnSize:e=>`Po\u{10D}et pixelov: ${e.value}`,descending:`zostupne`,descendingSort:e=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,expand:`Rozbaliť`,resizerDescription:`Stlačením klávesu Enter začnete zmenu veľkosti`,select:`Vybrať`,selectAll:`Vybrať všetko`,sortable:`zoraditeľný stĺpec`};var sK={};sK={ascending:`naraščajoče`,ascendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,collapse:`Strni`,columnSize:e=>`${e.value} slikovnih pik`,descending:`padajoče`,descendingSort:e=>`razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v padajo\u{10D}em vrstnem redu`,expand:`Razširi`,resizerDescription:`Pritisnite tipko Enter da začnete spreminjati velikost`,select:`Izberite`,selectAll:`Izberite vse`,sortable:`razvrstljivi stolpec`};var cK={};cK={ascending:`rastući`,ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,collapse:`Skupi`,columnSize:e=>`${e.value} piksela`,descending:`padajući`,descendingSort:e=>`sortirano po kolonama ${e.columnName} padaju\u{107}im redosledom`,expand:`Proširi`,resizerDescription:`Pritisnite Enter da biste započeli promenu veličine`,select:`Izaberite`,selectAll:`Izaberite sve`,sortable:`kolona koja se može sortirati`};var lK={};lK={ascending:`stigande`,ascendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,collapse:`Dölj`,columnSize:e=>`${e.value} pixlar`,descending:`fallande`,descendingSort:e=>`sorterat p\xe5 kolumn ${e.columnName} i fallande ordning`,expand:`Expandera`,resizerDescription:`Tryck på Retur för att börja ändra storlek`,select:`Markera`,selectAll:`Markera allt`,sortable:`sorterbar kolumn`};var uK={};uK={ascending:`artan sırada`,ascendingSort:e=>`${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,collapse:`Daralt`,columnSize:e=>`${e.value} piksel`,descending:`azalan sırada`,descendingSort:e=>`${e.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,expand:`Genişlet`,resizerDescription:`Yeniden boyutlandırmak için Enter'a basın`,select:`Seç`,selectAll:`Tümünü Seç`,sortable:`Sıralanabilir sütun`};var dK={};dK={ascending:`висхідний`,ascendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,collapse:`Згорнути`,columnSize:e=>`${e.value} \u{43F}\u{456}\u{43A}\u{441}.`,descending:`низхідний`,descendingSort:e=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,expand:`Розгорнути`,resizerDescription:`Натисніть Enter, щоб почати зміну розміру`,select:`Вибрати`,selectAll:`Вибрати все`,sortable:`сортувальний стовпець`};var fK={};fK={ascending:`升序`,ascendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,collapse:`折叠`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:`降序`,descendingSort:e=>`\u{6309}\u{5217} ${e.columnName} \u{964D}\u{5E8F}\u{6392}\u{5E8F}`,expand:`扩展`,resizerDescription:`按 Enter 开始调整大小。`,select:`选择`,selectAll:`全选`,sortable:`可排序的列`};var pK={};pK={ascending:`遞增`,ascendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,collapse:`收合`,columnSize:e=>`${e.value} \u{50CF}\u{7D20}`,descending:`遞減`,descendingSort:e=>`\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{6E1B}\u{6392}\u{5E8F}`,expand:`展開`,resizerDescription:`按 Enter 鍵以開始調整大小`,select:`選取`,selectAll:`全選`,sortable:`可排序的欄`};var mK={};mK={"ar-AE":PG,"bg-BG":FG,"cs-CZ":IG,"da-DK":LG,"de-DE":RG,"el-GR":zG,"en-US":BG,"es-ES":VG,"et-EE":HG,"fi-FI":UG,"fr-FR":WG,"he-IL":GG,"hr-HR":KG,"hu-HU":qG,"it-IT":JG,"ja-JP":YG,"ko-KR":XG,"lt-LT":ZG,"lv-LV":QG,"nb-NO":$G,"nl-NL":eK,"pl-PL":tK,"pt-BR":nK,"pt-PT":rK,"ro-RO":iK,"ru-RU":aK,"sk-SK":oK,"sl-SI":sK,"sr-SP":cK,"sv-SE":lK,"tr-TR":uK,"uk-UA":dK,"zh-CN":fK,"zh-TW":pK};var hK=class extends TG{isCell(e){return e.type===`cell`||e.type===`rowheader`||e.type===`column`}getKeyBelow(e,t){let n=this.collection.getItem(e);if(!n)return null;if(n.type===`column`){let e=LP(IP(n,this.collection));if(e)return e.key;let t=this.getFirstKey();return t==null||!this.collection.getItem(t)?null:super.getKeyForItemInRowByIndex(t,n.index)}return super.getKeyBelow(e,t)}getKeyAbove(e,t){let n=this.collection.getItem(e);if(!n)return null;if(n.type===`column`){let e=n.parentKey==null?null:this.collection.getItem(n.parentKey);return e&&e.type===`column`?e.key:null}let r=super.getKeyAbove(e,t),i=r==null?null:this.collection.getItem(r);return i&&i.type!==`headerrow`?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,e=>e.type===`column`);if(t!=null)return t;let n=this.collection.headerRows[e.level];for(let e of IP(n,this.collection))if(e.type===`column`)return e.key;return null}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,e=>e.type===`column`);if(t!=null)return t;let n=this.collection.headerRows[e.level],r=[...IP(n,this.collection)];for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.type===`column`)return t.key}return null}getKeyRightOf(e){let t=this.collection.getItem(e);return t?t.type===`column`?this.direction===`rtl`?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e):null}getKeyLeftOf(e){let t=this.collection.getItem(e);return t?t.type===`column`?this.direction===`rtl`?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e):null}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t??this.getFirstKey();if(r==null)return null;let i=n.getItem(r);i?.type===`cell`&&(r=i.parentKey??null);let a=!1;for(;r!=null;){let o=n.getItem(r);if(!o)return null;if(o.textValue){let t=o.textValue.slice(0,e.length);if(this.collator.compare(t,e)===0)return o.key}for(let r of IP(o,this.collection)){let a=n.columns[r.index];if(n.rowHeaderColumnKeys.has(a.key)&&r.textValue){let a=r.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return(t==null?i:n.getItem(t))?.type===`cell`?r.key:o.key}}r=this.getKeyBelow(r),r==null&&!a&&(r=this.getFirstKey(),a=!0)}return null}};function gK(e){return e&&e.__esModule?e.default:e}function _K(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:o}=e,s=OP({usage:`search`,sensitivity:`base`}),{direction:c}=bw(),l=t.selectionManager.disabledBehavior,u=(0,x.useMemo)(()=>r||new hK({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:l,ref:n,direction:c,collator:s,layoutDelegate:a,layout:o}),[r,t.collection,t.disabledKeys,l,n,c,s,a,o]),d=nS(e.id);kG.set(t,d);let{gridProps:f}=OG({...e,id:d,keyboardDelegate:u},t,n);i&&(f[`aria-rowcount`]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(f.role=`treegrid`);let{column:p,direction:m}=t.sortDescriptor||{},h=Pw(gK(mK),`@react-aria/table`),g=(0,x.useMemo)(()=>{let e=t.collection.columns.find(e=>e.key===p)?.textValue??``;return m&&p?h.format(`${m}Sort`,{columnName:e}):void 0},[m,p,t.collection.columns]),_=bA(g);return dA(()=>{g&&hD(g,`assertive`,500)},[g]),{gridProps:H(f,_,{"aria-describedby":[_[`aria-describedby`],f[`aria-describedby`]].filter(Boolean).join(` `)})}}function vK(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:o,shouldSelectOnPressUp:s,onAction:c}=e,{direction:l}=bw(),{keyboardDelegate:u,actions:{onCellAction:d},keyboardNavigationBehavior:f}=DG.get(t),p=a??(f===`tab`?`cell`:`child`),m=(0,x.useRef)(null),h=(0,x.useRef)(null),g=()=>{if(n.current){let e=lP(n.current);if(p===`child`){let i=kS(yS(n.current));if(jS(n.current)&&n.current!==i)return;let a=yS(n.current);if(!i||i===a.body||i===n.current){let e=h.current;if(e&&m.current===r.key&&W(n.current,e)){oT(e);return}}let o=t.selectionManager.childFocusStrategy===`last`?yK(e):e.firstChild();if(o){oT(o);return}}(m.current!=null&&r.key!==m.current||!jS(n.current))&&oT(n.current)}},{itemProps:_,isPressed:v}=NP({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:s,onAction:d?()=>d(r.key):c,isDisabled:t.collection.size===0}),y=H(_,{role:`gridcell`,onKeyDownCapture:f!==`tab`||o?e=>{let i=kS(yS(n.current));if(!W(e.currentTarget,G(e))||t.isKeyboardNavigationDisabled||!n.current||!i)return;let a=lP(n.current);switch(a.currentNode=i,e.key){case`ArrowLeft`:{let t=l===`rtl`?a.nextNode():a.previousNode();if(p===`child`&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)oT(t),_A(t,{containingElement:pA(n.current)});else{if(u.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}p===`cell`&&l===`rtl`?(oT(n.current),_A(n.current,{containingElement:pA(n.current)})):(a.currentNode=n.current,t=l===`rtl`?a.firstChild():yK(a),t&&(oT(t),_A(t,{containingElement:pA(n.current)})))}break}case`ArrowRight`:{let t=l===`rtl`?a.previousNode():a.nextNode();if(p===`child`&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)oT(t),_A(t,{containingElement:pA(n.current)});else{if(u.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}p===`cell`&&l===`ltr`?(oT(n.current),_A(n.current,{containingElement:pA(n.current)})):(a.currentNode=n.current,t=l===`rtl`?yK(a):a.firstChild(),t&&(oT(t),_A(t,{containingElement:pA(n.current)})))}break}case`ArrowUp`:case`ArrowDown`:!e.altKey&&W(n.current,G(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onKeyDown:f===`tab`?e=>{let r=kS(yS(n.current));if(W(e.currentTarget,G(e))&&!t.isKeyboardNavigationDisabled&&n.current&&r){if(f===`tab`&&G(e)!==n.current&&e.key!==`Tab`)e.stopPropagation();else if(e.key===`Tab`&&f===`tab`){let t=lP(n.current,{tabbable:!0});t.currentNode=r,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}}:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex==null?void 0:r.colIndex+1,colSpan:i?void 0:r.colSpan,onFocus:e=>{if(m.current=r.key,G(e)!==n.current){let i=G(e);n.current&&W(n.current,i)&&(h.current=i),RC()||t.selectionManager.setFocusedKey(r.key)}else p===`child`&&e.relatedTarget&&W(n.current,e.relatedTarget)||requestAnimationFrame(()=>{p===`child`&&kS(yS(n.current))===n.current&&g()})},...p===`child`&&f===`tab`?{tabIndex:-1}:{}});return i&&(y[`aria-colindex`]=(r.colIndex??r.index)+1),s&&y.tabIndex!=null&&y.onPointerDown==null&&(y.onPointerDown=e=>{let t=e.currentTarget,n=t.getAttribute(`tabindex`);t.removeAttribute(`tabindex`),requestAnimationFrame(()=>{n!=null&&t.setAttribute(`tabindex`,n)})}),{gridCellProps:y,isPressed:v}}function yK(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function bK(e){return e&&e.__esModule?e.default:e}function xK(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=vK({focusMode:`child`,...e},t,n),o=r.props.isSelectionCell&&t.selectionManager.selectionMode===`single`,{pressProps:s,isPressed:c}=CE({isDisabled:!i||o,onPress(){t.sort(r.key)},ref:n}),{focusableProps:l}=ET({},n),u,d=t.sortDescriptor?.column===r.key,f=t.sortDescriptor?.direction;r.props.allowsSorting&&!cC()&&(u=d?f:`none`);let p=Pw(bK(mK),`@react-aria/table`),m;i&&(m=`${p.format(`sortable`)}`,d&&f&&cC()&&(m=`${m}, ${p.format(f)}`));let h=bA(m),g=t.collection.size===0;return(0,x.useEffect)(()=>{g&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[g,t.selectionManager,r.key]),{columnHeaderProps:{...H(l,a,s,h,g?{tabIndex:-1}:null),role:`columnheader`,id:jG(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":u},isPressed:c}}function SK(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:o}=e,{actions:s,shouldSelectOnPressUp:c}=DG.get(t),l=s.onRowAction?()=>s.onRowAction?.(r.key):o,{itemProps:u,...d}=NP({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:c||a,onAction:l||r?.props?.onAction?Lx(r?.props?.onAction,l):void 0,isDisabled:t.collection.size===0}),f=t.selectionManager.isSelected(r.key),p={role:`row`,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:f,"aria-disabled":d.isDisabled||void 0,...u};return i&&(p[`aria-rowindex`]=r.index+1),{rowProps:p,...d}}function CK(e){return e&&e.__esModule?e.default:e}var wK={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function TK(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...o}=SK(e,t,n),{direction:s}=bw();i&&t.treeColumn==null?a[`aria-rowindex`]=r.index+1+t.collection.headerRows.length:delete a[`aria-rowindex`];let c=t.treeColumn!=null&&(t.expandedKeys===`all`||t.expandedKeys.has(r.key)),l=Pw(CK(mK),`@react-aria/table`),u=lw({"aria-label":c?l.format(`collapse`):l.format(`expand`),"aria-labelledby":NG(t,r.key)}),d={},f={};if(t.treeColumn!=null){let e=t.collection.getItem(r.key);if(e!=null){let n=EK(t.collection,r),i=e.props?.hasChildRows||e.props?.UNSTABLE_childItems||n?.type!==`cell`,a=t.collection.getItem(r.parentKey),c=a.type===`tablebody`||a.type===`body`,l=EK(t.collection,a);for(;l&&l.type!==`item`&&l.prevKey!=null;)l=t.collection.getItem(l.prevKey);d={onKeyDown:n=>{n.key===wK.expand[s]&&t.selectionManager.focusedKey===e.key&&i&&t.expandedKeys!==`all`&&!t.expandedKeys.has(e.key)?(t.toggleKey(e.key),n.stopPropagation()):n.key===wK.collapse[s]&&t.selectionManager.focusedKey===e.key&&(t.expandedKeys===`all`?t.expandedKeys===`all`&&(t.toggleKey(e.key),n.stopPropagation()):i&&t.expandedKeys.has(e.key)?(t.toggleKey(e.key),n.stopPropagation()):!t.expandedKeys.has(e.key)&&e.parentKey!=null&&e.level>0&&(t.selectionManager.setFocusedKey(e.parentKey),n.stopPropagation()))},"aria-expanded":i?t.expandedKeys===`all`||t.expandedKeys.has(r.key):void 0,"aria-level":e.level+1,"aria-posinset":e.index-(c?0:t.collection.columnCount)+1,"aria-setsize":l.index-(c?0:t.collection.columnCount)+1},f={isDisabled:o.isDisabled,onPress:()=>{o.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...u}}}let p=vC(r.props),m=o.hasAction?p:{};return{rowProps:{...H(a,d,m),"aria-labelledby":NG(t,r.key)},expandButtonProps:f,...o}}function EK(e,t){return`lastChildKey`in t?t.lastChildKey==null?null:e.getItem(t.lastChildKey):Array.from(t.childNodes).findLast(e=>e.parentKey===t.key)}function DK(e,t,n){let{node:r,isVirtualized:i}=e,a={role:`row`};return i&&t.treeColumn==null&&(a[`aria-rowindex`]=r.index+1),{rowProps:a}}function OK(e,t,n){let{gridCellProps:r,isPressed:i}=vK(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role=`rowheader`,r.id=MG(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function kK(e){return e&&e.__esModule?e.default:e}function AK(e,t){let{key:n}=e,{checkboxProps:r}=DU(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${NG(t,n)}`}}}function jK(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":Pw(kK(mK),`@react-aria/table`).format(r===`single`?`select`:`selectAll`),isSelected:n,isDisabled:r!==`multiple`||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type===`loader`,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function MK(){return{rowGroupProps:{role:`rowgroup`}}}function NK(){return MK()}var PK=class extends Gw{withExpandedKeys(e){let t=this.clone();return t.expandedKeys=e,t.frozen=this.frozen,t.rows=Array.from(t.getRows()),t}addNode(e){super.addNode(e),this.columnsDirty||=e.type===`column`,e.type===`tableheader`&&(this.head=e)}getRows(){let e=[];for(let t of this)(t.type===`tablebody`||t.type===`tablefooter`)&&e.push(...this.getChildren(t.key));return e}get body(){for(let e of this)if(e.type===`tablebody`)return e;return new $K(-2)}commit(e,t,n=!1){this.updateColumns(n),this.firstKey=e,this.lastKey=t,this.rows=[];for(let e of this.getRows()){let t=e.lastChildKey;if(t!=null){let e=this.getItem(t);for(;e&&e.type!==`cell`;)e=e.prevKey==null?null:this.getItem(e.prevKey);if(e){let t=(e.colIndex??e.index)+(e.colSpan??1);if(t!==this.columns.length&&!n)throw Error(`Cell count must match column count. Found ${t} cells and ${this.columns.length} columns.`)}}this.rows.push(e)}super.commit(e,t,n)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,n=e=>{e.type===`column`&&(t.set(e.key,e),e.hasChildNodes||(e.index=this.columns.length,this.columns.push(e),e.props.isRowHeader&&this.rowHeaderColumnKeys.add(e.key)));for(let t of this.getChildren(e.key))n(t)};for(let e of this.getChildren(this.head.key))n(e);if(this.headerRows=yG(t,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw Error(`A table must have at least one Column with the isRowHeader prop set to true`)}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let t=this.getItem(e);t&&(yield t),e=t?.nextKey??null}}getFirstKey(){for(let e of this)if(e.type===`tablebody`)return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let t=this.getItem(e);for(;t?.lastChildKey!=null&&(t.type!==`item`||this.expandedKeys.has(t.key));)t=this.getItem(t.lastChildKey);return t?.key}getKeyAfter(e){let t=this.getItem(e);if(t?.type===`column`)return t.nextKey??null;if(!t)return null;if(t.type===`item`&&t.firstChildKey!=null&&this.expandedKeys.has(t.key)){let e=this.getItem(t.firstChildKey);for(;e;){if(e.type===`item`)return e.key;e=e.nextKey==null?null:this.getItem(e.nextKey)}}return super.getKeyAfter(e)}getKeyBefore(e){let t=this.getItem(e);if(t?.type===`column`)return t.prevKey??null;if(!t)return null;let n=null;if(t.prevKey!=null){for(t=this.getItem(t.prevKey);t&&(t.type!==`item`||this.expandedKeys.has(t.key))&&t.lastChildKey!=null;)t=this.getItem(t.lastChildKey);n=t?.key??null}return n??=t.parentKey,n!=null&&this.getItem(n)?.type===`tableheader`?null:n}getChildren(e){let t=this.getItem(e);if(!t){for(let t of this.headerRows)if(t.key===e)return t.childNodes}let n=this;return t?.type===`tablebody`||t?.type===`tablefooter`?{*[Symbol.iterator](){let e=t.firstChildKey,r=e==null?null:n.getItem(e);for(;r;){yield r;let e=n.getKeyAfter(r.key);if(r=e==null?null:n.getItem(e),r&&r.parentKey===t.parentKey)break}}}:{*[Symbol.iterator](){let t=n.getItem(e),r=t?.firstChildKey==null?null:n.getItem(t.firstChildKey);for(;r&&(yield r,r=r.nextKey==null?null:n.getItem(r.nextKey),t?.type!==`item`||r?.type===`cell`););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys,r=[];for(let t of this.getChildren(e)){let e=this.columns[t.index];if(n.has(e.key)&&t.textValue&&r.push(t.textValue),r.length===n.size)break}return r.join(` `)}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new WK(-1),this.columnsDirty=!0,this.expandedKeys=new Set}},FK=(0,x.createContext)(null),IK=(0,x.createContext)(null),LK=(0,x.createContext)(null),RK=(0,x.createContext)(null),zK=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,IK);let n=XP(e),{selectionBehavior:r,selectionMode:i,disallowEmptySelection:a}=n,o=!!e.dragAndDropHooks?.useDraggableCollectionState,s=(0,x.useMemo)(()=>({selectionBehavior:i===`none`?null:r,selectionMode:i,disallowEmptySelection:a,allowsDragging:o}),[r,i,a,o]),c=x.createElement(UK.Provider,{value:s},x.createElement(YT,e));return x.createElement(LT,{content:c,createCollection:()=>new PK},r=>x.createElement(HK,{props:e,forwardedRef:t,selectionState:n,collection:r}))}),BK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.table,{...e,ref:t})}),VK={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function HK({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=fS(e,t,Lw);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:o,...s}=e,c=(0,x.useContext)(FK);t=sS((0,x.useMemo)(()=>aS(t,c?.tableRef),[t,c?.tableRef]));let[l,u]=Iw(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=(0,x.useMemo)(()=>r.withExpandedKeys(l),[r,l]);let d=CG({...s,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:l,onExpandedChange:u}),f=wG(d,o),{isVirtualized:p,layoutDelegate:m,dropTargetDelegate:h,CollectionRoot:g}=(0,x.useContext)(tE),{dragAndDropHooks:_}=e,{gridProps:v}=_K({...s,layoutDelegate:m,isVirtualized:p},f,t),y=f.selectionManager,b=!!_?.useDraggableCollectionState,S=!!_?.useDroppableCollectionState;(0,x.useRef)(b),(0,x.useRef)(S),(0,x.useEffect)(()=>{},[b,S]);let C,w,T,E=!1,D=null,O=(0,x.useRef)(null),{direction:k}=bw(),[A]=(0,x.useState)(()=>new hG);if(b&&_){C=_.useDraggableCollectionState({collection:f.collection,selectionManager:y,preview:_.renderDragPreview?O:void 0}),_.useDraggableCollection({},C,t);let e=_.DragPreview;D=_.renderDragPreview?x.createElement(e,{ref:O},_.renderDragPreview):null}if(S&&_){w=_.useDroppableCollectionState({collection:f.collection,selectionManager:y});let e=new EP({collection:f.collection,disabledKeys:y.disabledKeys,disabledBehavior:y.disabledBehavior,ref:t,layoutDelegate:m}),n=_.dropTargetDelegate||h||new _.ListDropTargetDelegate(r.rows,t);A.setup(n,d,k),T=_.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:A,onDropActivate:e=>{if(e.target.type===`item`){let t=e.target.key,n=d.collection.getItem(t),r=l.has(t);n&&n.hasChildNodes&&(!r||_?.isVirtualDragging?.())&&d.toggleKey(t)}},onKeyDown:e=>{let t=w?.target;if(t&&t.type===`item`&&t.dropPosition===`on`){let n=d.collection.getItem(t.key);(e.key===VK.expand[k]&&n?.hasChildNodes&&!d.expandedKeys.has(t.key)||e.key===VK.collapse[k]&&n?.hasChildNodes&&d.expandedKeys.has(t.key))&&d.toggleKey(t.key)}}},w,t),E=w.isDropTarget({type:`root`})}let{focusProps:j,isFocused:M,isFocusVisible:ee}=NE(),N=uS({...e,children:void 0,defaultClassName:`react-aria-Table`,values:{isDropTarget:E,isFocused:M,isFocusVisible:ee,state:f}}),P=!(!b||C?.isDisabled),te=N.style,F=null;c&&(F=c.useTableColumnResizeState({tableWidth:c.tableWidth},f),p||(te={...te,tableLayout:`fixed`,width:`min-content`}));let ne=K(e,{global:!0});return x.createElement(lS,{values:[[LK,f],[RK,F],[SN,{dragAndDropHooks:_,dragState:C,dropState:w}],[CN,{render:lq}],[Lw,null],[Rw,null]]},x.createElement(UN,null,x.createElement(BK,{...H(ne,N,v,j,T?.collectionProps),style:te,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":P||void 0,"data-drop-target":E||void 0,"data-focused":M||void 0,"data-focus-visible":ee||void 0},x.createElement(AN,null,x.createElement(g,{collection:f.collection,scrollRef:c?.scrollRef??t,persistedKeys:EN(y,_,w)})))),D)}var UK=(0,x.createContext)(null),WK=class extends zw{static{this.type=`tableheader`}},GK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.thead,{...e,ref:t})}),KK=KT(WK,(e,t)=>{let n=(0,x.useContext)(LK).collection,r=Xw({items:n.headerRows,children:(0,x.useCallback)(e=>{switch(e.type){case`headerrow`:return x.createElement(JK,{item:e});default:throw Error(`Unsupported node type in TableHeader: `+e.type)}},[])}),{rowGroupProps:i}=NK(),{hoverProps:a,isHovered:o}=zE({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),s=uS({...e,children:void 0,defaultClassName:`react-aria-TableHeader`,values:{isHovered:o}});return x.createElement(GK,{...H(K(e,{global:!0}),i,a),...s,ref:t,"data-hovered":o||void 0},r)},e=>x.createElement(YT,{dependencies:e.dependencies,items:e.columns},e.children)),qK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(`div`,{...e,ref:t}):x.createElement(`tr`,{...e,ref:t})});function JK({item:e}){let t=(0,x.useRef)(null),n=(0,x.useContext)(LK),{isVirtualized:r,CollectionBranch:i}=(0,x.useContext)(tE),{rowProps:a}=DK({node:e,isVirtualized:r},n,t),{checkboxProps:o}=jK(n);return x.createElement(qK,{...a,ref:t},x.createElement(lS,{values:[[$A,{slots:{selection:o}}],[ej,{slots:{selection:o}}]]},x.createElement(i,{collection:n.collection,parent:e})))}var YK=class extends zw{static{this.type=`column`}},XK=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.th,{...e,ref:t})}),ZK=GT(YK,(e,t,n)=>{let r=sS(t),i=(0,x.useContext)(LK),{isVirtualized:a}=(0,x.useContext)(tE),{columnHeaderProps:o,isPressed:s}=xK({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:c,isFocusVisible:l,focusProps:u}=NE(),d=(0,x.useContext)(RK),f=!1;d&&(f=d.resizingColumn===n.key);let{hoverProps:p,isHovered:m}=zE({isDisabled:!e.allowsSorting}),h=uS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Column`,values:{isHovered:m,isPressed:s,isFocused:c,isFocusVisible:l,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:f,startResize:()=>{if(d)d.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw Error(`Wrap your <Table> in a <ResizableTableContainer> to enable column resizing`)},sort:e=>{i.sort(n.key,e)}}}),g=h.style;d&&(g={...g,width:d.getColumnWidth(n.key)});let _=K(e,{global:!0});return delete _.id,x.createElement(XK,{...H(_,o,u,p),...h,style:g,ref:r,"data-hovered":m||void 0,"data-pressed":s||void 0,"data-focused":c||void 0,"data-focus-visible":l||void 0,"data-resizing":f||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},x.createElement(lS,{values:[[QK,{column:n,triggerRef:r}],[tE,QT]]},h.children))}),QK=(0,x.createContext)(null),$K=class extends Bw{static{this.type=`tablebody`}},eq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.tbody,{...e,ref:t})}),tq=KT($K,(e,t,n)=>{let r=(0,x.useContext)(LK),{isVirtualized:i}=(0,x.useContext)(tE),a=r.collection,{CollectionBranch:o}=(0,x.useContext)(tE),{dragAndDropHooks:s,dropState:c}=(0,x.useContext)(SN),l=!!s?.useDroppableCollectionState&&!c?.isDisabled,u=l&&!!c&&(c.isDropTarget({type:`root`})??!1),d=a.size===0,f={isDropTarget:u,isEmpty:d},p=uS({...e,id:void 0,children:void 0,defaultClassName:`react-aria-TableBody`,values:f}),m,h=a.columnCount;if(d&&e.renderEmptyState&&r){let t={},n={},r={};i?(n[`aria-colspan`]=h,r={display:`contents`}):n.colSpan=h,m=x.createElement(iq,{role:`row`,...t,style:r},x.createElement(sq,{role:`rowheader`,...n,style:r},e.renderEmptyState(f)))}let{rowGroupProps:g}=NK(),_=K(e,{global:!0});return x.createElement(eq,{...H(_,p,g),ref:t,"data-empty":d||void 0},l&&x.createElement(mq,null),x.createElement(o,{collection:a,parent:n,renderDropIndicator:TN(s,c)}),m)});(class extends Bw{static{this.type=`tablefooter`}});var nq=(0,x.createContext)({isFocusVisibleWithinRow:!1}),rq=class extends zw{static{this.type=`item`}filter(e,t,n){let r=e.getChildren(this.key);for(let i of r)if(n(i.textValue,i)){let n=this.clone();return t.addDescendants(n,e),n}return null}},iq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.tr,{...e,ref:t})}),aq=KT(rq,(e,t,n)=>{let r=sS(t),i=(0,x.useContext)(LK),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,x.useContext)(SN),{isVirtualized:c,CollectionBranch:l}=(0,x.useContext)(tE),u=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{rowProps:d,expandButtonProps:f,...p}=TK({node:n,shouldSelectOnPressUp:!!o,isVirtualized:c},i,r),{isFocused:m,isFocusVisible:h,focusProps:g}=NE(),{isFocusVisible:_,focusProps:v}=NE({within:!0}),{hoverProps:y,isHovered:b}=zE({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:S}=AK({key:n.key},i),C;o&&a&&(C=a.useDraggableItem({key:n.key,hasDragButton:!0},o));let w,T=(0,x.useRef)(null),{visuallyHiddenProps:E}=SA();s&&a&&(w=a.useDropIndicator({target:{type:`item`,key:n.key,dropPosition:`on`}},s,T));let D=(0,x.useRef)(null);(0,x.useEffect)(()=>{o&&D.current},[]);let O=o&&o.isDragging(n.key),{children:k,...A}=e,j=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!==`cell`,M=j&&i.expandedKeys.has(n.key),ee=uS({...A,id:void 0,defaultClassName:`react-aria-Row`,defaultStyle:{"--table-row-level":n.level+1},values:{...p,state:i,isHovered:b,isFocused:m,isFocusVisible:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:O,isDropTarget:w?.isDropTarget,isFocusVisibleWithin:_,id:n.key,hasChildItems:j,isExpanded:M,level:n.level+1}}),N=K(e,{global:!0});return delete N.id,delete N.onClick,x.createElement(x.Fragment,null,w&&!w.isHidden&&x.createElement(iq,{role:`row`,style:{height:0}},x.createElement(sq,{role:`gridcell`,colSpan:i.collection.columnCount,style:{padding:0}},x.createElement(`div`,{role:`button`,...E,...w.dropIndicatorProps,ref:T}))),x.createElement(iq,{...H(N,ee,d,g,y,C?.dragProps,v),ref:r,"data-disabled":p.isDisabled||void 0,"data-selected":p.isSelected||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":h||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":O||void 0,"data-drop-target":w?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":_||void 0,"data-expanded":M||void 0,"data-has-child-items":j||void 0,"data-level":n.level+1},x.createElement(lS,{values:[[$A,{slots:{[cS]:{},selection:S}}],[ej,{slots:{[cS]:{},selection:S}}],[yD,{slots:{[cS]:{},chevron:f,drag:{...C?.dragButtonProps,ref:D,style:{pointerEvents:`none`}}}}],[jN,{isSelected:p.isSelected}],[nq,{isFocusVisibleWithinRow:_}]]},x.createElement(l,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children==`function`)throw Error(`No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.`);let t=[e.value].concat(e.dependencies);return x.createElement(YT,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),oq=class extends zw{static{this.type=`cell`}},sq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.td,{...e,ref:t})}),cq=GT(oq,(e,t,n)=>{let r=sS(t),i=(0,x.useContext)(LK),{dragState:a}=(0,x.useContext)(SN),{isVirtualized:o}=(0,x.useContext)(tE);n.column=i.collection.columns[n.index];let{gridCellProps:s,isPressed:c}=OK({node:n,shouldSelectOnPressUp:!!a,isVirtualized:o,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:l,isFocusVisible:u,focusProps:d}=NE(),{hoverProps:f,isHovered:p}=zE({}),{isFocusVisibleWithinRow:m}=(0,x.useContext)(nq),h=n.parentKey!=null&&i.selectionManager.isSelected(n.parentKey),g=n.colIndex||n.index,_=i.collection.getItem(n.parentKey),v=_.props.hasChildItems||i.collection.getItem(_.lastChildKey)?.type!==`cell`,y=v&&i.expandedKeys.has(n.parentKey),b=i.selectionManager.isDisabled(n.parentKey),S=uS({...e,id:void 0,defaultClassName:`react-aria-Cell`,values:{isFocused:l,isFocusVisible:u,isFocusVisibleWithinRow:m,isPressed:c,isHovered:p,isSelected:h,id:n.key,columnIndex:g,hasChildItems:v,isExpanded:y,isDisabled:b,level:_.level+1,isTreeColumn:n.column.key===i.treeColumn}}),C=K(e,{global:!0});return delete C.id,x.createElement(sq,{...H(C,S,s,d,f),ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,"data-focus-visible-within-row":m||void 0,"data-pressed":c||void 0,"data-selected":h||void 0,"data-column-index":g,"data-expanded":y||void 0,"data-has-child-items":v||void 0,"data-level":_.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":b||void 0},x.createElement(tE.Provider,{value:QT},S.children))});function lq(e,t){t=sS(t);let{dragAndDropHooks:n,dropState:r}=(0,x.useContext)(SN),i=(0,x.useRef)(null),{dropIndicatorProps:a,isHidden:o,isDropTarget:s}=n.useDropIndicator(e,r,i);if(o)return null;let c=r&&e.target.type===`item`?(r.collection.getItem(e.target.key)?.level||0)+1:1;return x.createElement(pq,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,level:c,ref:t})}var uq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.tr,{...e,ref:t})}),dq=(0,x.forwardRef)(function(e,t){let{isVirtualized:n}=(0,x.useContext)(tE);return n?x.createElement(U.div,{...e,ref:t}):x.createElement(U.td,{...e,ref:t})});function fq(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...o}=e,s=(0,x.useContext)(LK),{visuallyHiddenProps:c}=SA(),l=uS({...o,defaultClassName:`react-aria-DropIndicator`,defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return x.createElement(uq,{...K(e,{global:!0}),...l,role:`row`,ref:t,"data-drop-target":r||void 0,"aria-level":a},x.createElement(dq,{role:`gridcell`,colSpan:s.collection.columnCount,style:{padding:0}},x.createElement(`div`,{...c,role:`button`,...n,ref:i}),l.children))}var pq=(0,x.forwardRef)(fq);function mq(){let e=(0,x.useContext)(LK),{dragAndDropHooks:t,dropState:n}=(0,x.useContext)(SN),r=(0,x.useRef)(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:`root`}},n,r),a=n.isDropTarget({type:`root`}),{visuallyHiddenProps:o}=SA();return!a&&i[`aria-hidden`]?null:x.createElement(iq,{role:`row`,"aria-hidden":i[`aria-hidden`],style:{height:0}},x.createElement(sq,{role:`gridcell`,colSpan:e.collection.columnCount,style:{padding:0}},x.createElement(`div`,{role:`button`,...o,...i,ref:r})))}GT(Hw,function(e,t,n){let r=(0,x.useContext)(LK),{isVirtualized:i}=(0,x.useContext)(tE),{isLoading:a,onLoadMore:o,scrollOffset:s,...c}=e,l=r.collection.columns.length,u=(0,x.useRef)(null);sF((0,x.useMemo)(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:u,scrollOffset:s}),[o,s,r?.collection]),u);let d=uS({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,defaultStyle:{"--table-row-level":n.level+1},values:void 0}),f={},p={},m={};return i?(p[`aria-colspan`]=l,m={display:`contents`}):p.colSpan=l,x.createElement(x.Fragment,null,x.createElement(iq,{style:{height:0},inert:KP(!0)},x.createElement(sq,{style:{padding:0,border:0}},x.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:u,style:{position:`relative`,height:1,width:1}}))),a&&d.children&&x.createElement(iq,{...H(K(e,{global:!0}),f),...d,role:`row`,ref:t,"aria-level":n.level+1,"data-level":n.level+1},x.createElement(sq,{role:`rowheader`,...p,style:m},d.children)))});var hq=new WeakMap;function gq(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${hq.get(e)}-${n}-${t}`):``}function _q(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),u=t.collection.getItem(r),{itemProps:d,isPressed:f}=NP({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=gq(t,r,`tab`),m=gq(t,r,`tabpanel`),{tabIndex:h}=d,g=K(u?.props,{labelable:!0});delete g.id;let _=yC(u?.props),{focusableProps:v}=ET({...u?.props,isDisabled:l},n);return{tabProps:H(g,v,_,d,{id:p,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?m:void 0,tabIndex:l?void 0:h,role:`tab`}),isSelected:c,isDisabled:l,isPressed:f}}function vq(e,t,n){let r=_U(n)?void 0:0,i=gq(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:H(lw({...e,id:i,"aria-labelledby":gq(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var yq=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function bq(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=bw(),{collectionProps:l}=wP({ref:n,selectionManager:o,keyboardDelegate:(0,x.useMemo)(()=>new yq(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=nS();return hq.set(t,u),{tabListProps:{...H(l,lw({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function xq(e){let[t,n]=Iw(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,x.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=iF({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function Sq(e){let t=xq({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??Cq(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,x.useRef)(i);return(0,x.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=Cq(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function Cq(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var wq=(0,x.createContext)(null),Tq=(0,x.createContext)(null),Eq=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,wq);let{children:n,orientation:r=`horizontal`}=e;return n=(0,x.useMemo)(()=>typeof n==`function`?n({orientation:r,defaultChildren:null}):n,[n,r]),x.createElement(LT,{content:n},n=>x.createElement(Dq,{props:e,collection:n,tabsRef:t}))});function Dq({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=Sq({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=NE({within:!0}),c=(0,x.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=uS({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=K(e,{global:!0});return x.createElement(U.div,{...H(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},x.createElement(lS,{values:[[wq,e],[Tq,i]]},l.children))}var Oq=(0,x.forwardRef)(function(e,t){return(0,x.useContext)(Tq)?x.createElement(kq,{props:e,forwardedRef:t}):x.createElement(YT,e)});function kq({props:e,forwardedRef:t}){let n=(0,x.useContext)(Tq),{CollectionRoot:r}=(0,x.useContext)(tE),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=dS(wq),o=sS(t),{tabListProps:s}=bq({...e,orientation:i,keyboardActivation:a},n,o),c=uS({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=K(e,{global:!0});return delete l.id,x.createElement(U.div,{...H(l,c,s),ref:o,"data-orientation":i||void 0},x.createElement(AN,null,x.createElement(r,{collection:n.collection,persistedKeys:nE(n.selectionManager.focusedKey)})))}var Aq=GT(class extends zw{static{this.type=`item`}},(e,t,n)=>{let r=(0,x.useContext)(Tq),i=sS(t),{tabProps:a,isSelected:o,isDisabled:s,isPressed:c}=_q({key:n.key,...e},r,i),{focusProps:l,isFocused:u,isFocusVisible:d}=NE(),{hoverProps:f,isHovered:p}=zE({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=uS({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:o,isDisabled:s,isFocused:u,isFocusVisible:d,isPressed:c,isHovered:p}}),h=n.props.href?U.a:U.div,g=K(e,{global:!0});return delete g.id,delete g.onClick,x.createElement(h,{...H(g,m,a,l,f),ref:i,"data-selected":o||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0,"data-hovered":p||void 0},x.createElement(jN.Provider,{value:{isSelected:o}},m.children))}),jq=kT(function(e,t){let n=(0,x.useContext)(Tq),r=sS(t),i=n.selectedKey===e.id,[a,o]=(0,x.useState)(n.selectedKey==null?null:i);a==null&&n.selectedKey!=null?o(i):!i&&a&&o(!1);let s=vL(r,i);return!i&&!e.shouldForceMount&&!s?null:x.createElement(Mq,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:s})});function Mq(e){let t=(0,x.useContext)(Tq),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...o}=e,{tabPanelProps:s}=vq(e,t,r),{focusProps:c,isFocused:l,isFocusVisible:u}=NE(),d=t.selectedKey===e.id,f=_L(r)&&!i,p=uS({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:l,isFocusVisible:u,isInert:KP(!d),isEntering:f,isExiting:a,state:t}}),m=K(o,{global:!0});delete m.id;let h=d?H(m,s,c,p):H(m,p);return x.createElement(U.div,{...h,ref:r,"data-focused":l||void 0,"data-focus-visible":u||void 0,inert:KP(!d||e.inert),"data-inert":d?void 0:`true`,"data-entering":f||void 0,"data-exiting":a||void 0},x.createElement(lS,{values:[[wq,null],[Tq,null]]},x.createElement(tE.Provider,{value:QT},p.children)))}var Nq=(0,x.createContext)({}),Pq=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},Fq=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,Nq);let{hoverProps:n,isHovered:r}=zE(e),{isFocused:i,isFocusVisible:a,focusProps:o}=NE({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=uS({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-TextArea`});return x.createElement(U.textarea,{...H(Pq(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),Iq=(0,x.createContext)(null),Lq=kT(function(e,t){[e,t]=fS(e,t,Iq);let{validationBehavior:n}=dS(RA)||{},r=e.validationBehavior??n??`native`,i=(0,x.useRef)(null);[e,i]=fS(e,i,Rw);let[a,o]=pS(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,x.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=dj({...mS(e),inputElementType:s,label:o,validationBehavior:r},i),m=(0,x.useCallback)(e=>{i.current=e,e&&c(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),h=uS({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),g=K(e,{global:!0});return delete g.id,x.createElement(U.div,{...g,...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},x.createElement(lS,{values:[[HE,{...l,ref:a}],[cj,{...u,ref:m}],[Nq,{...u,ref:m}],[oj,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[TD,{slots:{description:d,errorMessage:f}}],[wA,p]]},h.children))}),Rq={};Rq={close:`إغلاق`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}`,other:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`})}.`};var zq={};zq={close:`Затвори`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`})}.`};var Bq={};Bq={close:`Zavřít`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1men\xed`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var Vq={};Vq={close:`Luk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`};var Hq={};Hq={close:`Schließen`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`};var Uq={};Uq={close:`Κλείσιμο`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3AF}\u{3B7}\u{3C3}\u{3B7}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`})}.`};var Wq={};Wq={close:`Close`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var Gq={};Gq={close:`Cerrar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`};var Kq={};Kq={close:`Sule`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`};var qq={};qq={close:`Sulje`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`};var Jq={};Jq={close:`Fermer`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`};var Yq={};Yq={close:`סגור`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D4}`,other:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`})}.`};var Xq={};Xq={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`};var Zq={};Zq={close:`Bezárás`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`,other:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`})}.`};var Qq={};Qq={close:`Chiudi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`};var $q={};$q={close:`閉じる`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`})}\u{3002}`};var eJ={};eJ={close:`닫기`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`})}.`};var tJ={};tJ={close:`Uždaryti`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u{161}imas`,other:()=>`${t.number(e.count)} prane\u{161}imai`})}.`};var nJ={};nJ={close:`Aizvērt`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u{146}ojums`,other:()=>`${t.number(e.count)} pazi\u{146}ojumi`})}.`};var rJ={};rJ={close:`Lukk`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`};var iJ={};iJ={close:`Sluiten`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`};var aJ={};aJ={close:`Zamknij`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u{144}`,other:()=>`${t.number(e.count)} powiadomienia`})}.`};var oJ={};oJ={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var sJ={};sJ={close:`Fechar`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`};var cJ={};cJ={close:`Închideţi`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u{103}ri`})}.`};var lJ={};lJ={close:`Закрыть`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`})}.`};var uJ={};uJ={close:`Zatvoriť`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1menie`,few:()=>`${t.number(e.count)} ozn\xe1menia`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`};var dJ={};dJ={close:`Zapri`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`};var fJ={};fJ={close:`Zatvori`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u{161}tenje`,other:()=>`${t.number(e.count)} obave\u{161}tenja`})}.`};var pJ={};pJ={close:`Stäng`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`};var mJ={};mJ={close:`Kapat`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`};var hJ={};hJ={close:`Закрити`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`,other:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`})}.`};var gJ={};gJ={close:`关闭`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`})}\u{3002}`};var _J={};_J={close:`關閉`,notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`})}\u{3002}`};var vJ={};vJ={"ar-AE":Rq,"bg-BG":zq,"cs-CZ":Bq,"da-DK":Vq,"de-DE":Hq,"el-GR":Uq,"en-US":Wq,"es-ES":Gq,"et-EE":Kq,"fi-FI":qq,"fr-FR":Jq,"he-IL":Yq,"hr-HR":Xq,"hu-HU":Zq,"it-IT":Qq,"ja-JP":$q,"ko-KR":eJ,"lt-LT":tJ,"lv-LV":nJ,"nb-NO":rJ,"nl-NL":iJ,"pl-PL":aJ,"pt-BR":oJ,"pt-PT":sJ,"ro-RO":cJ,"ru-RU":lJ,"sk-SK":uJ,"sl-SI":dJ,"sr-SP":fJ,"sv-SE":pJ,"tr-TR":mJ,"uk-UA":hJ,"zh-CN":gJ,"zh-TW":_J};function yJ(e){return e&&e.__esModule?e.default:e}function bJ(e,t,n){let{key:r,timer:i,timeout:a}=e.toast;(0,x.useEffect)(()=>{if(i!=null&&a!=null)return i.reset(a),()=>{i.pause()}},[i,a]);let o=nS(),s=iS(),c=Pw(yJ(vJ),`@react-aria/toast`),[l,u]=(0,x.useState)(!1);return Rx(()=>{u(!0)},[]),{toastProps:{...K(e,{labelable:!0}),role:`alertdialog`,"aria-modal":`false`,"aria-labelledby":e[`aria-labelledby`]||o,"aria-describedby":e[`aria-describedby`]||s,tabIndex:0},contentProps:{role:`alert`,"aria-atomic":`true`,"aria-hidden":l?void 0:`true`},titleProps:{id:o},descriptionProps:{id:s},closeButtonProps:{"aria-label":c.format(`close`),onPress:()=>t.close(r)}}}var xJ=1,SJ=Symbol.for(`react-aria-landmark-manager`);function CJ(e){return document.addEventListener(`react-aria-landmark-manager-change`,e),()=>document.removeEventListener(`react-aria-landmark-manager-change`,e)}function wJ(){if(typeof document>`u`)return null;let e=document[SJ];return e&&e.version>=xJ?e:(document[SJ]=new EJ,document.dispatchEvent(new CustomEvent(`react-aria-landmark-manager-change`)),document[SJ])}function TJ(){return(0,PT.useSyncExternalStore)(CJ,wJ,wJ)}var EJ=class{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=xJ,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}setupIfNeeded(){this.isListening||=(document.addEventListener(`keydown`,this.f6Handler,{capture:!0}),document.addEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.addEventListener(`focusout`,this.focusoutHandler,{capture:!0}),!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener(`keydown`,this.f6Handler,{capture:!0}),document.removeEventListener(`focusin`,this.focusinHandler,{capture:!0}),document.removeEventListener(`focusout`,this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){this.landmarks.find(t=>t.ref.current===e)?.focus?.(t)}getLandmarksByRole(e){return new Set(this.landmarks.filter(t=>t.role===e))}getLandmarkByRole(e){return this.landmarks.find(t=>t.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(t=>t.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(e=>e.role===`main`).length,this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let t=0,n=this.landmarks.length-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[r].ref.current);i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?t=r+1:n=r-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex(t=>t.ref===e.ref);t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(t=>t.ref!==e),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);t.size>1&&[...t].filter(e=>!e.label).length}closestLandmark(e){let t=new Map(this.landmarks.map(e=>[e.ref.current,e])),n=e;for(;n&&!t.has(n)&&n!==document.body&&n.parentElement;)n=n.parentElement;return t.get(n)}getNextLandmark(e,{backward:t}){let n=this.closestLandmark(e),r=t?this.landmarks.length-1:0;n&&(r=this.landmarks.indexOf(n)+(t?-1:1));let i=()=>{if(r<0){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`backward`},bubbles:!0,cancelable:!0})))return!0;r=this.landmarks.length-1}else if(r>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent(`react-aria-landmark-navigation`,{detail:{direction:`forward`},bubbles:!0,cancelable:!0})))return!0;r=0}return r<0||r>=this.landmarks.length};if(i())return;let a=r;for(;this.landmarks[r].ref.current?.closest(`[aria-hidden=true]`);){if(r+=t?-1:1,i())return;if(r===a)break}return this.landmarks[r]}f6Handler(e){e.key===`F6`&&(e.altKey?this.focusMain():this.navigate(G(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole(`main`);return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,`forward`),!0):!1}navigate(e,t){let n=this.getNextLandmark(e,{backward:t});if(!n)return!1;if(n.lastFocused){let e=n.lastFocused;if(W(document.body,e))return e.focus(),!0}return n.ref.current&&n.ref.current.isConnected?(this.focusLandmark(n.ref.current,t?`backward`:`forward`),!0):!1}focusinHandler(e){let t=this.closestLandmark(G(e));t&&t.ref.current!==G(e)&&this.updateLandmark({ref:t.ref,lastFocused:G(e)});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=G(e),n=e.relatedTarget;if(!n||n===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,n){let r=n?.from||document.activeElement;return e.navigate(r,t===`backward`)},focusNext(t){let n=t?.from||document.activeElement;return e.navigate(n,!1)},focusPrevious(t){let n=t?.from||document.activeElement;return e.navigate(n,!0)},focusMain(){return e.focusMain()},dispose(){e&&=(e.refCount--,e.teardownIfNeeded(),null)}}}registerLandmark(e){return this.landmarks.find(t=>t.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function DJ(e,t){let{role:n,"aria-label":r,"aria-labelledby":i,focus:a}=e,o=TJ(),s=r||i,[c,l]=(0,x.useState)(!1),u=(0,x.useCallback)(()=>{l(!0)},[l]),d=(0,x.useCallback)(()=>{l(!1)},[l]);return Rx(()=>{if(o)return o.registerLandmark({ref:t,label:s,role:n,focus:a||u,blur:d})},[o,s,t,n,a,u,d]),(0,x.useEffect)(()=>{c&&t.current?.focus()},[c,t]),{landmarkProps:{role:n,tabIndex:c?-1:void 0,"aria-label":r,"aria-labelledby":i}}}function OJ(e){return e&&e.__esModule?e.default:e}function kJ(e,t,n){let r=Pw(OJ(vJ),`@react-aria/toast`),{landmarkProps:i}=DJ({role:`region`,"aria-label":e[`aria-label`]||r.format(`notifications`,{count:t.visibleToasts.length})},n),a=(0,x.useRef)(!1),o=(0,x.useRef)(!1),s=(0,x.useCallback)(()=>{a.current||o.current?t.pauseAll():t.resumeAll()},[t]),{hoverProps:c}=zE({onHoverStart:()=>{a.current=!0,s()},onHoverEnd:()=>{a.current=!1,s()}}),l=(0,x.useRef)([]),u=(0,x.useRef)(t.visibleToasts),d=(0,x.useRef)(null);Rx(()=>{if(d.current===-1||t.visibleToasts.length===0||!n.current){l.current=[],u.current=t.visibleToasts;return}if(l.current=[...n.current.querySelectorAll(`[role="alertdialog"]`)],u.current.length===t.visibleToasts.length&&t.visibleToasts.every((e,t)=>e.key===u.current[t].key)){u.current=t.visibleToasts;return}let e=u.current.map((e,n)=>({...e,i:n,isRemoved:!t.visibleToasts.some(t=>e.key===t.key)})),r=e.findIndex(e=>e.i===d.current&&e.isRemoved);if(r>-1){if(zC()===`pointer`&&f.current?.isConnected)IS(f.current);else{let t=0,n,i;for(;t<=r;)e[t].isRemoved||(i=Math.max(0,t-1)),t++;for(;t<e.length;){if(!e[t].isRemoved){n=t-1;break}t++}i===void 0&&n===void 0&&(i=0),i>=0&&i<l.current.length?IS(l.current[i]):n>=0&&n<l.current.length&&IS(l.current[n])}}u.current=t.visibleToasts},[t.visibleToasts,n]);let f=(0,x.useRef)(null),{focusWithinProps:p}=ME({onFocusWithin:e=>{o.current=!0,f.current=e.relatedTarget,s()},onBlurWithin:()=>{o.current=!1,f.current=null,s()}});return(0,x.useEffect)(()=>{t.visibleToasts.length===0&&f.current?.isConnected&&(zC()===`pointer`?IS(f.current):f.current.focus(),f.current=null)},[n,t.visibleToasts.length]),(0,x.useEffect)(()=>()=>{f.current?.isConnected&&(zC()===`pointer`?IS(f.current):f.current.focus(),f.current=null)},[n]),{regionProps:H(i,c,p,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=G(e).closest(`[role="alertdialog"]`);d.current=l.current.findIndex(e=>e===t)},onBlur:()=>{d.current=-1}})}}function AJ(e){let t=(0,x.useCallback)(t=>e.subscribe(t),[e]),n=(0,x.useCallback)(()=>e.visibleToasts,[e]);return{visibleToasts:(0,PT.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var jJ=class{constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[],this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate}runWithWrapUpdate(e,t){this.wrapUpdate?this.wrapUpdate(e,t):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,t={}){let n=`_`+Math.random().toString(36).slice(2),r={...t,content:e,key:n,timer:t.timeout?new MJ(()=>this.close(n),t.timeout):void 0};return this.queue.unshift(r),this.updateVisibleToasts(`add`),n}close(e){let t=this.queue.findIndex(t=>t.key===e);t>=0&&(this.queue[t].onClose?.(),this.queue.splice(t,1)),this.updateVisibleToasts(`remove`)}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let e of this.subscriptions)e()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts(`clear`)}},MJ=class{constructor(e,t){this.startTime=null,this.remaining=t,this.callback=e}reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}},NJ=(0,x.createContext)(null),PJ=(0,x.forwardRef)(function(e,t){let n=Xx(),r=AJ(e.queue),i=sS(t),{regionProps:a}=kJ(e,r,i),{focusProps:o,isFocused:s,isFocusVisible:c}=NE(),{hoverProps:l,isHovered:u}=zE({}),d=uS({...e,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:r.visibleToasts,isHovered:u,isFocused:s,isFocusVisible:c}}),{direction:f}=bw(),p,{getContainer:m}=fL();n||(p=document.body,m&&(p=m()));let h=K(e,{global:!0}),g=x.createElement(NJ.Provider,{value:r},x.createElement(U.div,{...H(h,d,a,o,l),dir:f,ref:i,"data-hovered":u||void 0,"data-focused":s||void 0,"data-focus-visible":c||void 0},typeof e.children==`function`?x.createElement(FJ,{...e,render:void 0,className:void 0,style:{display:`contents`}},e.children):e.children));return r.visibleToasts.length>0&&p?(0,NT.createPortal)(g,p):null}),FJ=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(NJ),{hoverProps:r,isHovered:i}=zE({}),a=uS({...e,children:void 0,defaultClassName:`react-aria-ToastList`,values:{visibleToasts:n.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:i}});return x.createElement(U.ol,{...r,...a,ref:t},n.visibleToasts.map(t=>x.createElement(`li`,{key:t.key,style:{display:`contents`}},e.children({toast:t}))))}),IJ=(0,x.forwardRef)(function(e,t){let n=(0,x.useContext)(NJ),r=sS(t),{toastProps:i,contentProps:a,titleProps:o,descriptionProps:s,closeButtonProps:c}=bJ(e,n,r),{focusProps:l,isFocused:u,isFocusVisible:d}=NE(),f=uS({...e,defaultClassName:`react-aria-Toast`,values:{toast:e.toast,isFocused:u,isFocusVisible:d}}),p=K(e,{global:!0});return x.createElement(U.div,{...H(p,f,i,l),ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0},x.createElement(lS,{values:[[LJ,a],[TD,{slots:{[cS]:{},title:o,description:s}}],[yD,{slots:{[cS]:{},close:c}}]]},f.children))}),LJ=(0,x.createContext)({}),RJ=(0,x.forwardRef)(function(e,t){return[e,t]=fS(e,t,LJ),x.createElement(U.div,{render:e.render,className:`react-aria-ToastContent`,...e,ref:t},e.children)});function zJ(e,t,n){let{isSelected:r}=t,{isPressed:i,buttonProps:a}=vD({...e,onPress:Lx(t.toggle,e.onPress)},n);return{isPressed:i,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:H(a,{"aria-pressed":r})}}function BJ(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,x.useState)(!1);Rx(()=>{o(!!(t.current&&t.current.parentElement?.closest(`[role="toolbar"]`)))});let{direction:s}=bw(),c=s===`rtl`&&i===`horizontal`,l=uP(t),u=e=>{if(W(e.currentTarget,G(e))){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){d.current=kS(),e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,x.useRef)(null),f=e=>{!W(e.currentTarget,e.relatedTarget)&&!d.current&&(d.current=G(e))},p=e=>{d.current&&!W(e.currentTarget,e.relatedTarget)&&W(t.current,G(e))&&(d.current?.focus(),d.current=null)};return{toolbarProps:{...K(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function VJ(e,t,n){let{isDisabled:r}=e,{toolbarProps:i}=BJ(e,n);return{groupProps:{...i,role:t.selectionMode===`single`?`radiogroup`:i.role,"aria-disabled":r}}}function HJ(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(n){t.setSelected(e.id,n)},toggle(){t.toggleKey(e.id)}},{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}=zJ({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode===`single`&&(s.role=`radio`,s[`aria-checked`]=r.isSelected,delete s[`aria-pressed`]),{isPressed:i,isSelected:a,isDisabled:o,buttonProps:s}}function UJ(e){let{selectionMode:t=`single`,disallowEmptySelection:n,isDisabled:r=!1}=e,[i,a]=Iw((0,x.useMemo)(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),(0,x.useMemo)(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:i,setSelectedKeys:a,toggleKey(e){let r;t===`multiple`?(r=new Set(i),r.has(e)&&(!n||r.size>1)?r.delete(e):r.add(e)):r=new Set(i.has(e)&&!n?[]:[e]),a(r)},setSelected(e,t){t!==i.has(e)&&this.toggleKey(e)}}}var WJ=(0,x.createContext)({}),GJ=(0,x.createContext)(null),KJ=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,WJ);let n=UJ(e),{groupProps:r}=VJ(e,n,t),i=uS({...e,values:{orientation:e.orientation||`horizontal`,isDisabled:n.isDisabled,state:n},defaultClassName:`react-aria-ToggleButtonGroup`}),a=K(e,{global:!0});return x.createElement(U.div,{...H(a,i,r),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`horizontal`,"data-disabled":e.isDisabled||void 0},x.createElement(GJ.Provider,{value:n},x.createElement(AN,null,i.children)))}),qJ=(0,x.createContext)({}),JJ=(0,x.forwardRef)(function(e,t){[e,t]=fS(e,t,qJ);let n=(0,x.useContext)(GJ),r=ZA(n&&e.id!=null?{isSelected:n.selectedKeys.has(e.id),onChange(t){n.setSelected(e.id,t)}}:e),{buttonProps:i,isPressed:a,isSelected:o,isDisabled:s}=n&&e.id!=null?HJ({...e,id:e.id},n,t):zJ({...e,id:e.id==null?void 0:String(e.id)},r,t),{focusProps:c,isFocused:l,isFocusVisible:u}=NE(e),{hoverProps:d,isHovered:f}=zE({...e,isDisabled:s}),p=uS({...e,id:void 0,values:{isHovered:f,isPressed:a,isFocused:l,isSelected:r.isSelected,isFocusVisible:u,isDisabled:s,state:r},defaultClassName:`react-aria-ToggleButton`}),m=K(e,{global:!0});return delete m.id,delete m.onClick,x.createElement(U.button,{...H(m,p,i,c,d),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-disabled":s||void 0,"data-pressed":a||void 0,"data-selected":o||void 0,"data-hovered":f||void 0,"data-focus-visible":u||void 0},x.createElement(jN.Provider,{value:{isSelected:o}},p.children))}),YJ=x.createContext(null);function XJ(e){let{children:t}=e,n=(0,x.useContext)(YJ),[r,i]=(0,x.useState)(0),a=(0,x.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return x.createElement(YJ.Provider,{value:a},t)}function ZJ(){let e=(0,x.useContext)(YJ);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function QJ(e){let{modalProviderProps:t}=ZJ();return x.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function $J(e){return x.createElement(XJ,null,x.createElement(QJ,e))}function eY(e){let t=Xx(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=fL();if(!e.portalContainer&&i&&(n=i()),x.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=x.createElement($J,r);return NT.createPortal(a,n)}function tY(e,t){let n=K(e,{labelable:!0}),{hoverProps:r}=zE({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:H(n,r,{role:`tooltip`})}}function nY(e,t,n){let{isDisabled:r,trigger:i,shouldCloseOnPress:a=!0}=e,o=nS(),s=(0,x.useRef)(!1),c=(0,x.useRef)(!1),l=()=>{(s.current||c.current)&&t.open(c.current)},u=e=>{!s.current&&!c.current&&t.close(e)};(0,x.useEffect)(()=>{let e=e=>{n&&n.current&&e.key===`Escape`&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[n,t]);let d=()=>{i!==`focus`&&(zC()===`pointer`?s.current=!0:s.current=!1,l())},f=()=>{i!==`focus`&&(c.current=!1,s.current=!1,u())},p=()=>{a&&(c.current=!1,s.current=!1,u(!0))},m=()=>{RC()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=zE({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=ET({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...H(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var rY=(0,x.createContext)(null),iY=(0,x.createContext)(null);function aY(e){let t=WU(e),n=(0,x.useRef)(null),{triggerProps:r,tooltipProps:i}=nY(e,t,n);return x.createElement(lS,{values:[[rY,t],[iY,{...i,triggerRef:n}]]},x.createElement(TT,{...r,ref:n},e.children))}var oY=(0,x.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=fS(t,n,iY);let r=(0,x.useContext)(rY),i=WU(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=vL(n,a.isOpen),s=t.isExiting||!a.shouldSkipAnimation&&o||!1;return!a.isOpen&&!s?null:x.createElement(eY,{portalContainer:e},x.createElement(sY,{...t,tooltipRef:n,isExiting:s}))});function sY(e){let t=(0,x.useContext)(rY),n=(0,x.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=$F({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=_L(e.tooltipRef,!!a),c=e.isEntering||!t.shouldSkipAnimation&&s||!1,l=uS({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:c,isExiting:e.isExiting,state:t}});e=H(e,r);let{tooltipProps:u}=tY(e,t),d=K(e,{global:!0});return x.createElement(U.div,{...H(d,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...l.style},"data-placement":a??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},x.createElement(yF.Provider,{value:{...i,placement:a,ref:n}},l.children))}function cY(e){return e&&e.__esModule?e.default:e}var lY={keyboard:{start:`dragDescriptionKeyboard`,end:`endDragKeyboard`},touch:{start:`dragDescriptionTouch`,end:`endDragTouch`},virtual:{start:`dragDescriptionVirtual`,end:`endDragVirtual`}};function uY(e){let{hasDragButton:t,isDisabled:n}=e,r=Pw(cY(bH),`@react-aria/dnd`),i=(0,x.useRef)({options:e,x:0,y:0}).current;i.options=e;let a=(0,x.useRef)(null),[o,s]=(0,x.useState)(!1),c=e=>{a.current=e,s(!!e)},{addGlobalListener:l,removeAllGlobalListeners:u}=_E(),d=(0,x.useRef)(null),f=t=>{if(t.defaultPrevented)return;if(t.stopPropagation(),d.current===`virtual`){t.preventDefault(),g(G(t)),d.current=null;return}typeof e.onDragStart==`function`&&e.onDragStart({type:`dragstart`,x:t.clientX,y:t.clientY});let n=e.getItems();t.dataTransfer.clearData?.(),fV(t.dataTransfer,n);let r=QB.all;if(typeof e.getAllowedDropOperations==`function`){let t=e.getAllowedDropOperations();r=QB.none;for(let e of t)r|=QB[e]||QB.none}EV(r);let a=eV[r]||`none`;t.dataTransfer.effectAllowed=a===`cancel`?`none`:a,typeof e.preview?.current==`function`&&e.preview.current(n,(e,n,r)=>{if(!e)return;let i=e.getBoundingClientRect(),a=t.currentTarget.getBoundingClientRect(),o=t.clientX-a.x,s=t.clientY-a.y;(o>i.width||s>i.height)&&(o=i.width/2,s=i.height/2);let c=o,l=s;typeof n==`number`&&typeof r==`number`&&(c=n,l=r),c=Math.max(0,Math.min(c,i.width)),l=Math.max(0,Math.min(l,i.height));let u=2*Math.round(i.height/2);e.style.height=`${u}px`,t.dataTransfer.setDragImage(e,c,l)}),l(window,`drop`,e=>{e.preventDefault(),e.stopPropagation(),console.warn(`Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.`)},{once:!0}),i.x=t.clientX,i.y=t.clientY;let o=G(t);requestAnimationFrame(()=>{c(o)})},p=t=>{t.stopPropagation(),(t.clientX!==i.x||t.clientY!==i.y)&&(typeof e.onDragMove==`function`&&e.onDragMove({type:`dragmove`,x:t.clientX,y:t.clientY}),i.x=t.clientX,i.y=t.clientY)},m=t=>{if(t.stopPropagation(),typeof e.onDragEnd==`function`){let n={type:`dragend`,x:t.clientX,y:t.clientY,dropOperation:tV[t.dataTransfer.dropEffect]};CV&&(n.dropOperation=tV[CV]),e.onDragEnd(n)}c(null),u(),EV(QB.none),wV(void 0)};(0,x.useEffect)(()=>()=>{if(a.current&&(!a.current.isConnected||parseInt(x.version,10)<17)){if(typeof i.options.onDragEnd==`function`){let e={type:`dragend`,x:0,y:0,dropOperation:tV[CV||`none`]};i.options.onDragEnd(e)}c(null),EV(QB.none),wV(void 0)}},[i]);let h=e=>{(e.pointerType===`keyboard`||e.pointerType===`virtual`)&&g(e.target)},g=e=>{if(typeof i.options.onDragStart==`function`){let t=e.getBoundingClientRect();i.options.onDragStart({type:`dragstart`,x:t.x+t.width/2,y:t.y+t.height/2})}MV({element:e,items:i.options.getItems(),allowedDropOperations:typeof i.options.getAllowedDropOperations==`function`?i.options.getAllowedDropOperations():[`move`,`copy`,`link`],onDragEnd(e){c(null),typeof i.options.onDragEnd==`function`&&i.options.onDragEnd(e)}},r),c(e)},_=uV(),v=o?lY[_].end:lY[_].start,y=bA(r.format(v)),b={};return t||(b={...y,onPointerDown(e){if(d.current=uC(e.nativeEvent)?`virtual`:e.pointerType,e.width<1&&e.height<1&&iC()&&oC())d.current=`virtual`;else{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,i=t.width/2,a=t.height/2;Math.abs(n-i)<=.5&&Math.abs(r-a)<=.5?d.current=`virtual`:d.current=e.pointerType}},onKeyDownCapture(e){G(e)===e.currentTarget&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation())},onKeyUpCapture(e){G(e)===e.currentTarget&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),g(G(e)))},onClick(e){(lC(e.nativeEvent)||d.current===`virtual`)&&(e.preventDefault(),e.stopPropagation(),g(G(e)))}}),n?{dragProps:{draggable:`false`},dragButtonProps:{},isDragging:!1}:{dragProps:{...b,draggable:`true`,onDragStart:f,onDrag:p,onDragEnd:m},dragButtonProps:{...y,onPress:h},isDragging:o}}var dY=W_([`inline-flex shrink-0 cursor-default items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap`,`motion-press`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:opacity-50`,`data-pending:opacity-70`],{variants:{variant:{primary:`bg-primary text-primary-foreground data-hovered:bg-primary-hover data-pressed:bg-primary-hover`,secondary:`border border-border bg-secondary text-secondary-foreground data-hovered:border-border-strong data-hovered:bg-secondary-hover data-pressed:bg-secondary-hover`,ghost:`text-foreground-secondary data-hovered:bg-secondary data-hovered:text-foreground data-pressed:bg-secondary-hover`,danger:`bg-destructive text-destructive-foreground data-hovered:opacity-90 data-pressed:opacity-90`},size:{sm:`h-8 px-3 text-sm`,md:`h-10 px-4 text-base`},fullWidth:{true:`w-full`}},defaultVariants:{variant:`primary`,size:`md`}}),fY={sm:14,md:16};function q({children:e,icon:t,onPress:n,type:r=`button`,isDisabled:i=!1,isPending:a=!1,autoFocus:o=!1,size:s,...c}){let l=a?Qy:t;return(0,S.jsxs)(bD,{className:dY({size:s,...c}),type:r,isDisabled:i,isPending:a,autoFocus:o,...n&&{onPress:n},children:[l&&(0,S.jsx)(l,{"aria-hidden":!0,size:fY[s??`md`],...a&&{className:`animate-spin`}}),e]})}var pY=`flex min-w-0 flex-col rounded-xl border border-border bg-card`;function mY({title:e,description:t,actions:n,footer:r,children:i}){let a=(0,x.useId)();return(0,S.jsxs)(`section`,{className:pY,...e!==void 0&&{"aria-labelledby":a},children:[e!==void 0&&(0,S.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-b border-border px-6 py-4`,children:[(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,S.jsx)(`h2`,{id:a,className:`font-display text-lg font-semibold text-foreground`,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:`text-sm text-foreground-muted`,children:t})]}),n!==void 0&&(0,S.jsx)(`div`,{className:`flex shrink-0 items-center gap-3`,children:n})]}),i!==void 0&&(0,S.jsx)(`div`,{className:`flex flex-1 flex-col gap-5 p-6`,children:i}),r!==void 0&&(0,S.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 border-t border-border px-6 py-3`,children:r})]})}var hY=`group inline-flex cursor-default items-center gap-2 text-base text-foreground data-disabled:text-foreground-muted`,gY=`flex size-4 shrink-0 items-center justify-center rounded-sm border border-input-border bg-input text-primary-foreground transition-colors motion-fast group-data-hovered:border-border-strong group-data-selected:border-primary group-data-selected:bg-primary group-data-indeterminate:border-primary group-data-indeterminate:bg-primary group-data-focus-visible:ring-2 group-data-focus-visible:ring-ring group-data-focus-visible:ring-offset-2 group-data-focus-visible:ring-offset-background group-data-disabled:opacity-50`;function _Y({label:e,isSelected:t,defaultSelected:n,onChange:r,isIndeterminate:i=!1,isDisabled:a=!1,name:o,value:s}){return(0,S.jsx)(ij,{className:hY,isIndeterminate:i,isDisabled:a,...t!==void 0&&{isSelected:t},...n!==void 0&&{defaultSelected:n},...r&&{onChange:r},...o!==void 0&&{name:o},...s!==void 0&&{value:s},children:t=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`span`,{className:gY,children:t.isIndeterminate?(0,S.jsx)(gb,{"aria-hidden":!0,size:12}):t.isSelected&&(0,S.jsx)(Av,{"aria-hidden":!0,size:12})}),e]})})}var vY=`text-sm font-medium text-foreground`,yY=`sr-only`,bY=`text-destructive`,xY=`text-sm text-foreground-muted`,SY=`motion-rise text-sm text-destructive`,CY=`w-full rounded-md border border-input-border bg-input px-3 text-base text-foreground transition-colors motion-fast outline-none data-hovered:border-border-strong data-focused:border-input-focus data-focused:ring-1 data-focused:ring-input-focus data-focus-visible:border-input-focus data-focus-visible:ring-1 data-focus-visible:ring-input-focus data-invalid:border-destructive data-invalid:data-focused:ring-destructive data-disabled:bg-background-secondary data-disabled:text-foreground-muted`,wY=`${CY} h-10`,TY=`layer-overlay motion-float overflow-auto rounded-md border border-border bg-background-elevated p-1 shadow-lg outline-none`,EY=`flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-none data-focused:bg-secondary data-hovered:bg-secondary data-disabled:text-foreground-subtle`,DY=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`sm`}}),OY=`${wY} flex items-center tabular-nums data-focus-within:border-input-focus data-focus-within:ring-1 data-focus-within:ring-input-focus`,kY=`rounded-sm px-0.5 outline-none data-placeholder:text-foreground-subtle data-focused:bg-primary data-focused:text-primary-foreground`;function AY(e){if(e===null)return null;try{return PO(e)}catch{return null}}function jY({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,isRequired:c=!1,isDisabled:l=!1,isReadOnly:u=!1,width:d}){let f=a===void 0?null:AY(a);return(0,S.jsxs)(zB,{className:DY({width:d}),isRequired:c,isDisabled:l,isReadOnly:u,isInvalid:r!==void 0,...i!==void 0&&{value:AY(i)},...f&&{defaultValue:f},...o&&{onChange:e=>o(e?e.toString():null)},...s!==void 0&&{name:s},children:[(0,S.jsxs)(UE,{className:t?yY:vY,children:[e,c&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(BB,{className:OY,children:e=>(0,S.jsx)(UB,{segment:e,className:kY})}),n!==void 0&&(0,S.jsx)(ED,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(TA,{className:SY,children:r})]})}var MY=`layer-toast motion-float rounded-md bg-foreground px-2 py-1 text-xs font-medium text-background shadow-md`;function NY({content:e,children:t,placement:n=`top`}){return(0,S.jsxs)(aY,{delay:500,children:[t,(0,S.jsx)(oY,{className:MY,placement:n,offset:6,children:e})]})}var PY=W_([`inline-flex shrink-0 cursor-default items-center justify-center rounded-md`,`motion-press`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:opacity-50`],{variants:{variant:{ghost:`text-foreground-secondary data-hovered:bg-secondary data-hovered:text-foreground data-pressed:bg-secondary-hover`,secondary:`border border-border bg-secondary text-secondary-foreground data-hovered:border-border-strong data-hovered:bg-secondary-hover data-pressed:bg-secondary-hover`},size:{sm:`size-8`,md:`size-10`}},defaultVariants:{variant:`ghost`,size:`md`}}),FY={sm:16,md:18};function IY({label:e,icon:t,onPress:n,isDisabled:r=!1,size:i,variant:a}){return(0,S.jsx)(NY,{content:e,children:(0,S.jsx)(bD,{className:PY({size:i,variant:a}),"aria-label":e,isDisabled:r,...n&&{onPress:n},children:(0,S.jsx)(t,{"aria-hidden":!0,size:FY[i??`md`]})})})}var LY=W_(`fixed inset-0 layer-overlay flex bg-scrim motion-scrim`,{variants:{placement:{center:`items-center justify-center p-4`,side:`justify-end`}},defaultVariants:{placement:`center`}}),RY=W_(`flex w-full flex-col overflow-hidden border-border bg-background-elevated shadow-xl outline-none`,{variants:{placement:{center:`max-h-full rounded-lg border motion-pop`,side:`h-full border-l motion-sheet`},size:{sm:`max-w-sm`,md:`max-w-lg`,lg:`max-w-2xl`}},defaultVariants:{placement:`center`,size:`md`}}),zY=W_(`flex min-h-0 flex-col outline-none`,{variants:{placement:{center:``,side:`h-full`}},defaultVariants:{placement:`center`}}),BY=`flex items-start justify-between gap-4 px-6 pt-5 pb-2`,VY=`pt-1 text-lg font-semibold tracking-tight text-foreground`,HY=`min-h-0 flex-1 overflow-auto px-6 py-2 text-base text-foreground-secondary`;function UY({isOpen:e,onOpenChange:t,onClosed:n,title:r,children:i,footer:a,closeLabel:o,role:s=`dialog`,size:c,placement:l}){let u=(0,x.useRef)({isOpen:e,onClosed:n});(0,x.useEffect)(()=>{u.current={isOpen:e,onClosed:n}});let d=(0,x.useCallback)(()=>()=>{u.current.isOpen||u.current.onClosed?.()},[]);return(0,S.jsx)($U,{ref:d,className:LY({placement:l}),isOpen:e,onOpenChange:t,isDismissable:s===`dialog`,children:(0,S.jsx)(ZU,{className:RY({size:c,placement:l}),children:(0,S.jsx)(PR,{className:zY({placement:l}),role:s,children:({close:e})=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`div`,{className:BY,children:[(0,S.jsx)(wD,{slot:`title`,className:VY,children:r}),o!==void 0&&(0,S.jsx)(IY,{label:o,icon:Ix,size:`sm`,onPress:e})]}),(0,S.jsx)(`div`,{className:HY,children:i}),a!==void 0&&(0,S.jsx)(`div`,{className:`flex items-center justify-end gap-2 px-6 pt-4 pb-5`,children:a})]})})})})}var WY=W_(`flex min-w-0 flex-col gap-4`,{variants:{frame:{box:`rounded-md border border-border p-4`,none:``}},defaultVariants:{frame:`box`}}),GY=W_(``,{variants:{hidden:{false:`${vY} px-1`,true:`sr-only`}},defaultVariants:{hidden:!1}}),KY=xY;function qY({legend:e,description:t,isLegendHidden:n=!1,children:r}){return(0,S.jsxs)(`fieldset`,{className:WY({frame:n?`none`:`box`}),children:[(0,S.jsx)(`legend`,{className:GY({hidden:n}),children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:KY,children:t}),r]})}var JY={image:[`image/jpeg`,`image/png`,`image/webp`],csv:[`text/csv`,`.csv`]};function YY({children:e,icon:t,accept:n,onSelect:r,isPending:i=!1,variant:a=`secondary`,size:o=`md`}){return(0,S.jsx)(kH,{acceptedFileTypes:[...JY[n]],onSelect:e=>{let t=e?.[0];t&&r(t)},children:(0,S.jsx)(q,{variant:a,size:o,isPending:i,...t&&{icon:t},children:e})})}var XY=W_(`flex flex-col`,{variants:{gap:G_},defaultVariants:{gap:4}});function ZY({onSubmit:e,label:t,children:n,gap:r}){return(0,S.jsx)(zA,{className:XY({gap:r}),validationBehavior:`aria`,...t!==void 0&&{"aria-label":t},onSubmit:t=>{t.preventDefault(),e()},children:n})}var QY=W_(`grid`,{variants:{gap:G_,columns:{1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`}},defaultVariants:{gap:4,columns:2}});function $Y({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:QY(n),children:t})}var eX=W_(`text-foreground tracking-tight`,{variants:{size:{sm:`text-base font-semibold`,md:`text-lg font-semibold`,lg:`text-xl font-semibold`,xl:`text-2xl font-semibold`,display:`font-display text-3xl font-bold`}}}),tX={1:`display`,2:`lg`,3:`md`,4:`sm`},nX={1:`h1`,2:`h2`,3:`h3`,4:`h4`};function rX({level:e,size:t,children:n}){let r=nX[e];return(0,S.jsx)(r,{className:eX({size:t??tX[e]}),children:n})}var iX=W_(`flex flex-row`,{variants:{gap:G_,align:{start:`items-start`,center:`items-center`,end:`items-end`,baseline:`items-baseline`,stretch:`items-stretch`},justify:{start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`},wrap:{true:`flex-wrap`}},defaultVariants:{gap:2,align:`center`,justify:`start`}});function aX({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:iX(n),children:t})}var oX=W_([`rounded-sm underline underline-offset-2 transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-offset-2 data-focus-visible:ring-offset-background`,`data-disabled:no-underline data-disabled:opacity-50`],{variants:{tone:{default:`text-foreground decoration-border-strong data-hovered:decoration-current`,muted:`text-foreground-secondary decoration-border data-hovered:text-foreground data-hovered:decoration-current`}},defaultVariants:{tone:`default`}});function sX({href:e,children:t,opensInNewTab:n=!1,isDisabled:r=!1,tone:i}){return(0,S.jsx)(VE,{className:oX({tone:i}),href:e,isDisabled:r,...n&&{target:`_blank`,rel:`noopener noreferrer`},children:t})}var cX=W_(`shrink-0`,{variants:{size:{sm:`h-5 w-5`,md:`h-6 w-6`,lg:`h-8 w-8`}},defaultVariants:{size:`md`}}),lX=`fill-brand-fill`,uX=`fill-foreground`;function dX({label:e,size:t}){return(0,S.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 90 101`,className:cX({size:t}),children:[(0,S.jsx)(`path`,{className:lX,d:`M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z`}),(0,S.jsx)(`path`,{className:uX,d:`M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z`}),(0,S.jsx)(`path`,{className:uX,d:`M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z`})]})}var fX=`${TY} min-w-40`,pX=`outline-none`,mX=W_(EY,{variants:{tone:{default:`text-foreground`,danger:`text-destructive`}},defaultVariants:{tone:`default`}});function hX({trigger:e,actions:t,onAction:n,placement:r=`bottom end`}){return(0,S.jsxs)(SR,{children:[e,(0,S.jsx)(SL,{className:fX,placement:r,children:(0,S.jsx)(wR,{className:pX,onAction:e=>n(String(e)),disabledKeys:t.filter(e=>e.isDisabled).map(e=>e.id),children:t.map(({id:e,label:t,icon:n,tone:r})=>(0,S.jsxs)(kR,{id:e,className:mX({tone:r}),textValue:t,children:[n&&(0,S.jsx)(n,{"aria-hidden":!0,size:16}),t]},e))})})]})}var gX=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`sm`}}),_X=`${wY} tabular-nums placeholder:text-foreground-subtle`;function vX({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,minValue:s,maxValue:c,isInteger:l=!1,name:u,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,width:m}){return(0,S.jsxs)(aW,{className:gX({width:m}),isRequired:d,isDisabled:f,isReadOnly:p,isInvalid:r!==void 0,formatOptions:l?{maximumFractionDigits:0}:{maximumFractionDigits:6},...i!==void 0&&{value:i??NaN},...a!==void 0&&{defaultValue:a},...o&&{onChange:e=>o(Number.isNaN(e)?null:e)},...s!==void 0&&{minValue:s},...c!==void 0&&{maxValue:c},...u!==void 0&&{name:u},children:[(0,S.jsxs)(UE,{className:t?yY:vY,children:[e,d&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(uj,{className:_X}),n!==void 0&&(0,S.jsx)(ED,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(TA,{className:SY,children:r})]})}var yX=`group relative flex w-full items-center`,bX=`pointer-events-none absolute left-3 text-foreground-muted`,xX=`h-10 w-full rounded-lg border border-border-strong bg-background pr-9 pl-9 text-base text-foreground placeholder:text-foreground-subtle outline-none transition-colors motion-fast data-hovered:border-foreground-subtle data-focused:border-ring data-focused:ring-2 data-focused:ring-ring`,SX=`absolute right-2 flex h-6 w-6 items-center justify-center rounded-sm text-foreground-muted outline-none data-hovered:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring group-data-empty:hidden`;function CX({label:e,placeholder:t,value:n,onChange:r,clearLabel:i}){return(0,S.jsxs)(KW,{"aria-label":e,className:yX,value:n,onChange:r,children:[(0,S.jsx)(ex,{"aria-hidden":!0,size:16,className:bX}),(0,S.jsx)(uj,{className:xX,...t!==void 0&&{placeholder:t}}),(0,S.jsx)(bD,{"aria-label":i,className:SX,children:(0,S.jsx)(Ix,{"aria-hidden":!0,size:16})})]})}var wX=`inline-flex flex-wrap gap-1`,TX=`inline-flex h-8 cursor-default items-center rounded-md px-3 text-sm font-medium text-foreground-secondary transition-colors motion-fast outline-none data-hovered:text-foreground data-selected:bg-background-tertiary data-selected:text-foreground data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle`;function EX({label:e,options:t,selected:n,onChange:r}){return(0,S.jsx)(KJ,{"aria-label":e,className:wX,selectionMode:`single`,disallowEmptySelection:!0,selectedKeys:[n],onSelectionChange:e=>{let[t]=e;t!==void 0&&String(t)!==n&&r(String(t))},children:t.map(e=>(0,S.jsx)(JJ,{id:e.id,className:TX,isDisabled:e.isDisabled??!1,children:e.label},e.id))})}var DX=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),OX=`${wY} flex cursor-default items-center justify-between gap-2 text-left`,kX=`min-w-0 flex-1 truncate data-placeholder:text-foreground-subtle`,AX=`shrink-0 text-foreground-muted`,jX=`${TY} max-h-72 min-w-(--trigger-width)`,MX=`outline-none`,NX=`${EY} justify-between text-foreground`;function PX({label:e,isLabelHidden:t=!1,options:n,value:r,defaultValue:i,onChange:a,placeholder:o,description:s,errorMessage:c,isRequired:l=!1,isDisabled:u=!1,name:d,width:f}){return(0,S.jsxs)(nG,{className:DX({width:f}),isRequired:l,isDisabled:u,isInvalid:c!==void 0,...r!==void 0&&{value:r},...i!==void 0&&{defaultValue:i},...a&&{onChange:e=>e!==null&&a(String(e))},...o!==void 0&&{placeholder:o},...d!==void 0&&{name:d},children:[(0,S.jsxs)(UE,{className:t?yY:vY,children:[e,l&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsxs)(bD,{className:OX,children:[(0,S.jsx)(oG,{className:kX}),(0,S.jsx)(Mv,{"aria-hidden":!0,size:16,className:AX})]}),s!==void 0&&(0,S.jsx)(ED,{slot:`description`,className:`text-sm text-foreground-muted`,children:s}),(0,S.jsx)(TA,{className:SY,children:c}),(0,S.jsx)(SL,{className:jX,children:(0,S.jsx)(uF,{className:MX,children:n.map(e=>(0,S.jsx)(hF,{id:e.id,className:NX,textValue:e.label,children:t=>(0,S.jsxs)(S.Fragment,{children:[e.label,t.isSelected&&(0,S.jsx)(Av,{"aria-hidden":!0,size:16,className:`shrink-0 text-foreground-secondary`})]})},e.id))})})]})}var FX=W_(`motion-skeleton block shrink-0 bg-background-tertiary`,{variants:{shape:{text:`h-4 rounded-sm`,title:`h-8 rounded-md`,control:`h-10 rounded-md`,block:`h-32 rounded-lg`,square:`size-10 rounded-md`},width:{full:`w-full`,"3/4":`w-3/4`,"1/2":`w-1/2`,"1/3":`w-1/3`,"1/4":`w-1/4`,sm:`w-24`,xs:`w-16`}},compoundVariants:[{shape:`square`,className:`w-10`}],defaultVariants:{shape:`text`,width:`full`}}),IX=`contents`,LX=`sr-only`;function RX({shape:e,width:t}){return(0,S.jsx)(`span`,{"aria-hidden":!0,className:FX({shape:e,width:e===`square`?null:t})})}function zX({label:e,children:t}){return(0,S.jsxs)(`div`,{role:`status`,className:IX,children:[(0,S.jsx)(`span`,{className:LX,children:e}),t]})}var BX=W_(`inline-flex items-center gap-2 text-foreground-secondary`,{variants:{size:{sm:`text-sm`,md:`text-base`}},defaultVariants:{size:`md`}}),VX=`animate-spin`,HX=`sr-only`,UX={sm:16,md:20};function WX({label:e,showLabel:t=!1,size:n}){return(0,S.jsxs)(`span`,{role:`status`,className:BX({size:n}),children:[(0,S.jsx)(Qy,{"aria-hidden":!0,size:UX[n??`md`],className:VX}),(0,S.jsx)(`span`,{className:t?void 0:HX,children:e})]})}var GX=W_(`min-w-0 rounded-md ring-offset-4 ring-offset-background transition-shadow motion-base`,{variants:{lit:{true:`ring-2 ring-ring`,false:`ring-0 ring-transparent`}},defaultVariants:{lit:!1}}),KX=1600;function qX({at:e,children:t}){let n=(0,x.useRef)(null),[r,i]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(e===void 0){i(!1);return}typeof n.current?.scrollIntoView==`function`&&n.current.scrollIntoView({block:`nearest`}),i(!0);let t=setTimeout(()=>i(!1),KX);return()=>clearTimeout(t)},[e]),(0,S.jsx)(`div`,{ref:n,className:GX({lit:r}),...r&&{"data-lit":``},children:t})}var JX=W_(`flex flex-col`,{variants:{gap:G_,align:{stretch:`items-stretch`,start:`items-start`,center:`items-center`,end:`items-end`},fill:{true:`min-h-full`}},defaultVariants:{gap:4,align:`stretch`}});function J({as:e=`div`,children:t,...n}){return(0,S.jsx)(e,{className:JX(n),children:t})}var YX=`flex flex-col gap-1 rounded-xl border border-border bg-card px-5 py-4`,XX=`text-sm font-medium text-foreground-muted`,ZX=`font-display text-3xl font-bold text-foreground`;function QX({label:e,value:t,detail:n}){return(0,S.jsxs)(`div`,{role:`group`,"aria-label":e,className:YX,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:XX,children:e}),(0,S.jsx)(`span`,{className:ZX,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`text-sm text-foreground-muted`,children:n})]})}var $X=`group inline-flex cursor-default items-center gap-2 text-base text-foreground data-disabled:text-foreground-muted`,eZ=`flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent bg-border-strong p-0.5 transition-colors motion-base group-data-selected:bg-primary group-data-focus-visible:ring-2 group-data-focus-visible:ring-ring group-data-focus-visible:ring-offset-2 group-data-focus-visible:ring-offset-background group-data-disabled:opacity-50`,tZ=`size-3.5 rounded-full bg-background shadow-sm transition-transform motion-base group-data-selected:translate-x-4`,nZ=`sr-only`;function rZ({label:e,isLabelHidden:t=!1,isSelected:n,defaultSelected:r,onChange:i,isDisabled:a=!1,name:o}){return(0,S.jsxs)(uG,{className:$X,isDisabled:a,...n!==void 0&&{isSelected:n},...r!==void 0&&{defaultSelected:r},...i&&{onChange:i},...o!==void 0&&{name:o},children:[(0,S.jsx)(`span`,{className:eZ,children:(0,S.jsx)(`span`,{className:tZ})}),t?(0,S.jsx)(`span`,{className:nZ,children:e}):e]})}var iZ=`overflow-x-auto rounded-xl border border-border bg-card`,aZ=`w-full border-separate border-spacing-0 text-left text-base outline-none`,oZ={start:`text-left`,end:`text-right`},sZ=W_([`border-b border-border px-4 py-2.5 text-xs font-semibold whitespace-nowrap text-foreground-muted`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,`data-allows-sorting:cursor-default data-hovered:text-foreground`],{variants:{align:oZ},defaultVariants:{align:`start`}}),cZ=`inline-flex items-center gap-1`,lZ=`group outline-none transition-colors motion-fast data-hovered:bg-background-secondary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset data-href:cursor-default data-action:cursor-default`,uZ=W_(`border-b border-border px-4 py-3 align-middle text-foreground outline-none group-last:border-b-0 data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset`,{variants:{align:oZ},defaultVariants:{align:`start`}}),dZ=`px-4 py-12 text-center text-foreground-muted`;function fZ({label:e,columns:t,rows:n,onRowAction:r,sort:i,onSortChange:a,empty:o}){return(0,S.jsx)(`div`,{className:iZ,children:(0,S.jsxs)(zK,{"aria-label":e,className:aZ,...i&&{sortDescriptor:i},...a&&{onSortChange:e=>a({column:String(e.column),direction:e.direction})},...r&&{onRowAction:e=>r(String(e))},children:[(0,S.jsx)(KK,{children:t.map((e,t)=>(0,S.jsx)(ZK,{id:e.id,className:sZ({align:e.align}),isRowHeader:t===0,allowsSorting:e.isSortable??!1,textValue:e.label,children:t=>(0,S.jsxs)(`span`,{className:cZ,children:[e.label,t.sortDirection===`ascending`&&(0,S.jsx)(gv,{"aria-hidden":!0,size:14}),t.sortDirection===`descending`&&(0,S.jsx)(uv,{"aria-hidden":!0,size:14})]})},e.id))}),(0,S.jsx)(tq,{renderEmptyState:()=>(0,S.jsx)(`div`,{className:dZ,children:o}),children:n.map(e=>(0,S.jsx)(aq,{id:e.id,className:lZ,children:t.map(t=>(0,S.jsx)(cq,{className:uZ({align:t.align}),children:e.cells[t.id]},t.id))},e.id))})]})})}var pZ=`flex flex-col gap-4`,mZ=`flex gap-1 border-b border-border`,hZ=`-mb-px cursor-default border-b-2 border-transparent px-3 py-2 text-base font-medium text-foreground-secondary transition-colors motion-fast outline-none data-hovered:text-foreground data-selected:border-primary data-selected:text-foreground data-focus-visible:rounded-sm data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle`,gZ=`outline-none data-focus-visible:rounded-sm data-focus-visible:ring-2 data-focus-visible:ring-ring`;function _Z({label:e,tabs:t,selected:n,defaultSelected:r,onChange:i}){return(0,S.jsxs)(Eq,{className:pZ,...n!==void 0&&{selectedKey:n},...r!==void 0&&{defaultSelectedKey:r},...i&&{onSelectionChange:e=>i(String(e))},children:[(0,S.jsx)(Oq,{"aria-label":e,className:mZ,children:t.map(e=>(0,S.jsx)(Aq,{id:e.id,className:hZ,isDisabled:e.isDisabled??!1,children:e.label},e.id))}),t.map(e=>(0,S.jsx)(jq,{id:e.id,className:gZ,children:e.content},e.id))]})}var vZ=W_(`inline-flex h-6 items-center gap-1 rounded-md px-2 text-xs font-medium whitespace-nowrap`,{variants:{tone:{neutral:`bg-secondary text-secondary-foreground`,success:`bg-success-light text-success-foreground`,warning:`bg-warning-light text-warning-foreground`,danger:`bg-error-light text-error-foreground`,info:`bg-info-light text-info-foreground`}},defaultVariants:{tone:`neutral`}});function yZ({icon:e,children:t,...n}){return(0,S.jsxs)(`span`,{className:vZ(n),children:[e&&(0,S.jsx)(e,{"aria-hidden":!0,size:12}),t]})}var bZ=W_(``,{variants:{size:{xs:`text-xs`,sm:`text-sm`,base:`text-base`,lg:`text-lg`},tone:{default:`text-foreground`,secondary:`text-foreground-secondary`,muted:`text-foreground-muted`,danger:`text-destructive`,success:`text-success-foreground`},weight:{regular:`font-normal`,medium:`font-medium`,semibold:`font-semibold`},truncate:{true:`truncate`},mono:{true:`font-mono`}},defaultVariants:{size:`base`,tone:`default`,weight:`regular`}});function Y({as:e=`p`,children:t,...n}){return(0,S.jsx)(e,{className:bZ(n),children:t})}var xZ=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`,sm:`w-48`}},defaultVariants:{width:`full`}}),SZ=`${wY} placeholder:text-foreground-subtle`;function CZ({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,type:c=`text`,placeholder:l,autoComplete:u,isRequired:d=!1,isDisabled:f=!1,isReadOnly:p=!1,autoFocus:m=!1,width:h}){return(0,S.jsxs)(Lq,{className:xZ({width:h}),type:c,isRequired:d,isDisabled:f,isReadOnly:p,isInvalid:r!==void 0,autoFocus:m,...i!==void 0&&{value:i},...a!==void 0&&{defaultValue:a},...o&&{onChange:o},...s!==void 0&&{name:s},...u!==void 0&&{autoComplete:u},children:[(0,S.jsxs)(UE,{className:t?yY:vY,children:[e,d&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(uj,{className:SZ,...l!==void 0&&{placeholder:l}}),n!==void 0&&(0,S.jsx)(ED,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(TA,{className:SY,children:r})]})}var wZ=W_(`flex flex-col gap-1.5`,{variants:{width:{full:`w-full`,md:`w-80`}},defaultVariants:{width:`full`}}),TZ=`${CY} min-h-20 resize-y py-2 placeholder:text-foreground-subtle`;function EZ({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,value:i,defaultValue:a,onChange:o,name:s,placeholder:c,rows:l=4,isRequired:u=!1,isDisabled:d=!1,isReadOnly:f=!1,width:p}){return(0,S.jsxs)(Lq,{className:wZ({width:p}),isRequired:u,isDisabled:d,isReadOnly:f,isInvalid:r!==void 0,...i!==void 0&&{value:i},...a!==void 0&&{defaultValue:a},...o&&{onChange:o},...s!==void 0&&{name:s},children:[(0,S.jsxs)(UE,{className:t?yY:vY,children:[e,u&&(0,S.jsx)(`span`,{"aria-hidden":!0,className:`text-destructive`,children:` *`})]}),(0,S.jsx)(Fq,{className:TZ,rows:l,...c!==void 0&&{placeholder:c}}),n!==void 0&&(0,S.jsx)(ED,{slot:`description`,className:`text-sm text-foreground-muted`,children:n}),(0,S.jsx)(TA,{className:SY,children:r})]})}var DZ={size:{sm:`h-8 w-8`,md:`h-10 w-14`,lg:`h-14 w-20`,full:`aspect-video w-full`},shape:{rounded:`rounded-md`,circle:`rounded-full`}},OZ={size:`md`,shape:`rounded`},kZ=W_(`shrink-0 border border-border bg-background-secondary object-cover`,{variants:DZ,defaultVariants:OZ}),AZ=W_(`flex shrink-0 items-center justify-center border border-dashed border-border-strong bg-background-secondary`,{variants:DZ,defaultVariants:OZ}),jZ=`size-4 text-foreground-subtle`;function MZ({src:e,size:t,shape:n}){return e===void 0?(0,S.jsx)(`span`,{"aria-hidden":`true`,className:AZ({size:t,shape:n}),children:(0,S.jsx)(Sy,{className:jZ})}):(0,S.jsx)(`img`,{src:e,alt:``,loading:`lazy`,className:kZ({size:t,shape:n})})}var NZ=`fixed bottom-4 right-4 layer-toast w-full max-w-sm outline-none`,PZ=`toast-stack`,FZ=`flex items-start gap-3 rounded-lg border border-border bg-background-elevated p-3 shadow-lg outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring`,IZ=W_(`mt-0.5 shrink-0`,{variants:{tone:{neutral:`text-foreground-secondary`,success:`text-success`,danger:`text-destructive`}},defaultVariants:{tone:`neutral`}}),LZ=`flex min-w-0 flex-1 flex-col gap-0.5 pt-0.5`,RZ=`text-sm font-medium text-foreground`,zZ=6e3,BZ={neutral:Ay,success:Bv,danger:Hv},VZ=new jJ({maxVisibleToasts:4});function X(e){let t=VZ.add(e,e.tone===`danger`?{}:{timeout:zZ});return()=>VZ.close(t)}function HZ(){VZ.clear()}function UZ({label:e,closeLabel:t}){return(0,S.jsx)(PJ,{queue:VZ,"aria-label":e,className:NZ,children:(0,S.jsx)(FJ,{className:PZ,children:({toast:e})=>{let n=e.content.tone??`neutral`,r=BZ[n];return(0,S.jsxs)(IJ,{toast:e,className:FZ,children:[(0,S.jsx)(r,{"aria-hidden":!0,size:18,className:IZ({tone:n})}),(0,S.jsxs)(RJ,{className:LZ,children:[(0,S.jsx)(ED,{slot:`title`,className:RZ,children:e.content.title}),e.content.description!==void 0&&(0,S.jsx)(ED,{slot:`description`,className:`text-sm text-foreground-secondary`,children:e.content.description})]}),(0,S.jsx)(IY,{label:t,icon:Ix,size:`sm`,onPress:()=>VZ.close(e.key)})]})}})})}var WZ=`flex h-dvh overflow-hidden bg-background-secondary text-foreground`,GZ=`sr-only layer-toast rounded-md bg-primary px-4 py-2 text-base font-medium text-primary-foreground focus:not-sr-only focus:fixed focus:top-2 focus:left-2`,KZ=`flex w-60 shrink-0 flex-col px-3 py-5`,qZ=`flex items-center gap-2.5 px-2.5 pb-4`,JZ=`min-w-0`,YZ=`truncate text-base font-bold text-foreground`,XZ=`flex-1 overflow-auto`,ZZ=`flex flex-col gap-0.5`,QZ=W_([`flex min-h-9 items-center gap-2.5 rounded-md px-2.5 text-base transition-colors motion-fast`,`outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring`],{variants:{isCurrent:{true:`bg-card font-semibold text-foreground shadow-sm ring-1 ring-border`,false:`font-medium text-foreground-secondary data-hovered:bg-background-tertiary data-hovered:text-foreground`}},defaultVariants:{isCurrent:!1}}),$Z=`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-foreground-muted transition-colors motion-fast outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring`,eQ=`relative my-2 mr-2 min-w-0 flex-1 overflow-auto rounded-2xl border border-border bg-background shadow-sm outline-none`,tQ=`main`,nQ=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``);function rQ({logo:e,siteName:t,siteDetail:n,navLabel:r,nav:i,skipLabel:a,account:o,children:s}){return(0,S.jsxs)(`div`,{className:WZ,children:[(0,S.jsx)(`a`,{className:GZ,href:`#${tQ}`,children:a}),(0,S.jsxs)(`aside`,{className:KZ,children:[(0,S.jsxs)(`div`,{className:qZ,children:[e,(0,S.jsxs)(`div`,{className:JZ,children:[(0,S.jsx)(`div`,{className:YZ,children:t}),n!==void 0&&(0,S.jsx)(`div`,{className:`truncate text-xs text-foreground-muted`,children:n})]})]}),(0,S.jsx)(`nav`,{"aria-label":r,className:XZ,children:i.map(e=>(0,S.jsxs)(`div`,{role:`group`,...e.label!==void 0&&{"aria-label":e.label},children:[e.label!==void 0&&(0,S.jsx)(`div`,{"aria-hidden":!0,className:`px-2.5 pt-4 pb-1.5 text-xs font-semibold tracking-widest text-foreground-muted uppercase`,children:e.label}),(0,S.jsx)(`ul`,{className:ZZ,children:e.items.map(({id:e,label:t,href:n,icon:r,isCurrent:i=!1})=>(0,S.jsx)(`li`,{children:(0,S.jsxs)(VE,{className:QZ({isCurrent:i}),href:n,...i&&{"aria-current":`page`},children:[r&&(0,S.jsx)(r,{"aria-hidden":!0,size:16}),t]})},e))})]},e.id))}),o!==void 0&&(0,S.jsx)(`div`,{className:`border-t border-border pt-3`,children:(0,S.jsx)(hX,{placement:`top start`,actions:o.actions,onAction:o.onAction,trigger:(0,S.jsxs)(bD,{className:$Z,children:[(0,S.jsx)(`span`,{className:`sr-only`,children:o.label}),(0,S.jsx)(`span`,{"aria-hidden":!0,className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground`,children:nQ(o.name)}),(0,S.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,S.jsx)(`span`,{className:`truncate text-sm font-semibold text-foreground`,children:o.name}),o.detail!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-xs text-foreground-muted`,children:o.detail})]}),(0,S.jsx)(Rv,{"aria-hidden":!0,size:14})]})})})]}),(0,S.jsx)(`main`,{id:tQ,tabIndex:-1,className:eQ,children:s})]})}var iQ=`flex min-h-dvh items-center justify-center bg-background-secondary p-4 text-foreground`,aQ=`flex w-full max-w-sm flex-col gap-6 rounded-lg border border-border bg-background p-8 shadow-sm`,oQ=`flex items-center`,sQ=`flex flex-col gap-1`;function cQ({brand:e,title:t,description:n,children:r,footer:i}){return(0,S.jsx)(`main`,{className:iQ,children:(0,S.jsxs)(`div`,{className:aQ,children:[(0,S.jsx)(`div`,{className:oQ,children:e}),(0,S.jsxs)(`div`,{className:sQ,children:[(0,S.jsx)(rX,{level:1,size:`lg`,children:t}),n!==void 0&&(0,S.jsx)(Y,{tone:`secondary`,children:n})]}),r,i!==void 0&&(0,S.jsx)(`div`,{className:`border-t border-border pt-4`,children:i})]})})}var lQ={default:`primary`,danger:`danger`};function uQ({isOpen:e,onOpenChange:t,title:n,children:r,confirmLabel:i,cancelLabel:a,onConfirm:o,tone:s=`default`,isPending:c=!1}){return(0,S.jsx)(UY,{isOpen:e,onOpenChange:t,title:n,role:`alertdialog`,size:`sm`,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:()=>t(!1),isDisabled:c,autoFocus:!0,children:a}),(0,S.jsx)(q,{variant:lQ[s],onPress:o,isPending:c,children:i})]}),children:r})}var dQ=`motion-rise flex flex-col items-center gap-4 px-6 py-12 text-center`,fQ=`flex max-w-sm flex-col gap-1`;function pQ({title:e,description:t,icon:n,action:r,level:i=2}){return(0,S.jsxs)(`div`,{className:dQ,children:[n&&(0,S.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-full bg-secondary text-foreground-secondary`,children:(0,S.jsx)(n,{"aria-hidden":!0,size:24})}),(0,S.jsxs)(`div`,{className:fQ,children:[(0,S.jsx)(rX,{level:i,size:`md`,children:e}),t!==void 0&&(0,S.jsx)(Y,{tone:`secondary`,children:t})]}),r]})}var mQ=`flex items-start justify-between gap-6`;function hQ({title:e,description:t,actions:n}){return(0,S.jsxs)(`header`,{className:mQ,children:[(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(rX,{level:1,children:e}),t!==void 0&&(0,S.jsx)(Y,{tone:`secondary`,children:t})]}),n!==void 0&&(0,S.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:n})]})}var gQ=`flex min-w-0 flex-col gap-2`,_Q=vY,vQ=xY,yQ=SY,bQ=`flex flex-col gap-2`,xQ=`flex items-start gap-1`,SQ=`min-w-0 flex-1`,CQ=`flex h-10 shrink-0 items-center`,wQ=`rounded-md border border-dashed border-border px-3 py-4 text-sm text-foreground-muted`,TQ=`flex`;function EQ({label:e,description:t,errorMessage:n,items:r,emptyText:i,addLabel:a,onAdd:o,onRemove:s,onMove:c,removeLabel:l,moveUpLabel:u,moveDownLabel:d,isFull:f=!1}){let p=(0,x.useId)();return(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":p,className:gQ,children:[(0,S.jsx)(`span`,{id:p,className:_Q,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:vQ,children:t}),r.length===0?(0,S.jsx)(`p`,{className:wQ,children:i}):(0,S.jsx)(`ol`,{className:bQ,children:r.map((e,t)=>(0,S.jsxs)(`li`,{className:xQ,children:[(0,S.jsx)(`div`,{className:SQ,children:e.content}),(0,S.jsxs)(`div`,{className:CQ,children:[(0,S.jsx)(IY,{size:`sm`,icon:gv,label:u(t+1),isDisabled:t===0,onPress:()=>c(t,t-1)}),(0,S.jsx)(IY,{size:`sm`,icon:uv,label:d(t+1),isDisabled:t===r.length-1,onPress:()=>c(t,t+1)}),(0,S.jsx)(IY,{size:`sm`,icon:Sx,label:l(t+1),onPress:()=>s(t)})]})]},e.id))}),n!==void 0&&(0,S.jsx)(`p`,{className:yQ,children:n}),(0,S.jsx)(`div`,{className:TQ,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Bb,isDisabled:f,onPress:o,children:a})})]})}var DQ=W_(`flex flex-wrap items-center gap-4 border-b border-border bg-background py-3`,{variants:{across:{screen:`sticky top-0 layer-sticky rounded-t-2xl px-6`,window:`shrink-0 px-4`}},defaultVariants:{across:`screen`}}),OQ=`inline-flex h-8 shrink-0 items-center gap-1.5 rounded-md border border-border-strong bg-background pr-3 pl-2 text-sm font-medium text-foreground transition-colors motion-fast outline-none data-hovered:bg-background-secondary data-focus-visible:ring-2 data-focus-visible:ring-ring`,kQ=`flex min-w-0 flex-1 flex-col gap-0.5`,AQ=`flex min-w-0 items-center gap-2`,jQ=`flex shrink-0 items-center gap-2`;function MQ({label:e,back:t,title:n,status:r,actions:i,across:a=`screen`}){return(0,S.jsxs)(`div`,{role:`region`,"aria-label":e,className:DQ({across:a}),children:[t?.href!==void 0&&(0,S.jsxs)(VE,{href:t.href,className:OQ,children:[(0,S.jsx)(Pv,{"aria-hidden":!0,size:16}),t.label]}),t!==void 0&&t.href===void 0&&(0,S.jsxs)(bD,{className:OQ,...t.onPress&&{onPress:t.onPress},children:[(0,S.jsx)(Pv,{"aria-hidden":!0,size:16}),t.label]}),(0,S.jsxs)(`div`,{className:kQ,children:[n!==void 0&&(0,S.jsx)(`h1`,{className:`truncate text-lg font-semibold text-foreground`,children:n}),(0,S.jsx)(`div`,{className:AQ,"aria-live":`polite`,children:r})]}),(0,S.jsx)(`div`,{className:jQ,children:i})]})}var NQ=`flex min-w-0 flex-col gap-1.5`,PQ=W_(``,{variants:{isLabelHidden:{true:yY,false:vY}},defaultVariants:{isLabelHidden:!1}}),FQ=bY,IQ=xY,LQ=SY,RQ=`flex min-w-0 items-center gap-3`,zQ=`h-14 w-20 shrink-0 rounded-md border border-border bg-background-secondary object-cover`,BQ=`flex h-14 w-20 shrink-0 items-center justify-center rounded-md border border-dashed border-border-strong bg-background-secondary`,VQ=`size-5 text-foreground-subtle`,HQ=`min-w-0 flex-1 truncate text-sm text-foreground-secondary`,UQ=`grid grid-cols-2 gap-3 py-2 outline-none sm:grid-cols-3`,WQ=`flex cursor-default flex-col gap-1.5 rounded-md border border-border bg-card p-1.5 outline-none transition-colors motion-fast data-hovered:border-border-strong data-focus-visible:ring-2 data-focus-visible:ring-input-focus data-selected:border-input-focus data-selected:ring-1 data-selected:ring-input-focus`,GQ=`aspect-video w-full rounded-sm bg-background-secondary object-cover`,KQ=`truncate px-0.5 text-sm text-foreground`,qQ=`py-6 text-center text-sm text-foreground-muted`,JQ=[`image/jpeg`,`image/png`,`image/webp`];function YQ({label:e,isLabelHidden:t=!1,description:n,errorMessage:r,isRequired:i=!1,value:a,images:o,onChange:s,chooseLabel:c,changeLabel:l,noneText:u,dialogTitle:d,closeLabel:f,emptyText:p,onUpload:m,uploadLabel:h,uploadHint:g,uploadError:_}){let v=(0,x.useId)(),[y,b]=(0,x.useState)(!1),[C,w]=(0,x.useState)(!1),T=async e=>{if(e&&m){w(!0);try{await m(e),b(!1)}catch{}finally{w(!1)}}},E=o.find(e=>e.name===a);return(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":v,className:NQ,children:[(0,S.jsxs)(`span`,{id:v,className:PQ({isLabelHidden:t}),children:[e,i&&(0,S.jsx)(`span`,{"aria-hidden":`true`,className:FQ,children:` *`})]}),(0,S.jsxs)(`div`,{className:RQ,children:[E?(0,S.jsx)(`img`,{src:E.url,alt:``,loading:`lazy`,className:zQ}):(0,S.jsx)(`span`,{className:BQ,children:(0,S.jsx)(Sy,{"aria-hidden":`true`,className:VQ})}),(0,S.jsx)(`span`,{className:HQ,children:a??u}),(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>b(!0),children:a===null?c:l})]}),n!==void 0&&(0,S.jsx)(`p`,{className:IQ,children:n}),r!==void 0&&(0,S.jsx)(`p`,{className:LQ,children:r}),(0,S.jsxs)(UY,{isOpen:y,onOpenChange:b,title:d,closeLabel:f,size:`lg`,children:[m&&h!==void 0&&(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-3 pt-2`,children:[(0,S.jsx)(kH,{acceptedFileTypes:JQ,onSelect:e=>void T(e?.[0]),children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Ex,isPending:C,children:h})}),_===void 0?g!==void 0&&(0,S.jsx)(`p`,{className:`min-w-0 text-sm text-foreground-muted`,children:g}):(0,S.jsx)(`p`,{role:`alert`,className:`min-w-0 text-sm text-destructive`,children:_})]}),(0,S.jsx)(uF,{"aria-label":d,layout:`grid`,selectionMode:`single`,autoFocus:!0,selectedKeys:a===null?[]:[a],onSelectionChange:e=>{let[t]=e===`all`?[]:[...e];typeof t==`string`&&s(t),b(!1)},renderEmptyState:()=>(0,S.jsx)(`p`,{className:qQ,children:p}),className:UQ,children:o.map(e=>(0,S.jsxs)(hF,{id:e.name,textValue:e.name,className:WQ,children:[(0,S.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:GQ}),(0,S.jsx)(`span`,{className:KQ,children:e.name})]},e.name))})]})]})}var XQ=`mx-auto flex w-full max-w-7xl flex-col gap-6 xl:flex-row xl:items-start`,ZQ=`flex min-w-0 flex-1 flex-col gap-6`,QQ=`flex w-full shrink-0 flex-col gap-6 xl:sticky xl:top-24 xl:w-80`;function $Q({asideLabel:e,children:t,aside:n}){return(0,S.jsxs)(`div`,{className:XQ,children:[(0,S.jsx)(`div`,{className:ZQ,children:t}),(0,S.jsx)(`aside`,{"aria-label":e,className:QQ,children:n})]})}var e$=`grid grid-cols-2 gap-4 outline-none sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5`,t$=`motion-press flex cursor-default flex-col gap-2 rounded-lg border border-border bg-card p-2 outline-none data-hovered:border-border-strong data-hovered:shadow-sm data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,n$=`aspect-video w-full rounded-md bg-background-secondary object-cover`,r$=`flex min-w-0 flex-col px-1 pb-1`,i$=`truncate text-sm font-medium text-foreground`,a$=`col-span-full py-10 text-center text-sm text-foreground-muted`;function o$({label:e,items:t,onAction:n,emptyText:r}){return(0,S.jsx)(AU,{"aria-label":e,layout:`grid`,onAction:e=>n(String(e)),renderEmptyState:()=>(0,S.jsx)(`p`,{className:a$,children:r}),className:e$,children:t.map(e=>(0,S.jsxs)(MU,{id:e.id,textValue:e.name,className:t$,children:[(0,S.jsx)(`img`,{src:e.url,alt:``,loading:`lazy`,className:n$}),(0,S.jsxs)(`span`,{className:r$,children:[(0,S.jsx)(`span`,{className:i$,children:e.name}),e.note!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:e.note})]})]},e.id))})}var s$=`flex flex-col gap-4 pb-4 outline-none`,c$=`py-6 text-center text-sm text-foreground-muted`,l$=`flex flex-col gap-1`,u$=`px-2 pb-1 text-xs font-medium tracking-wide text-foreground-muted uppercase`,d$=`flex cursor-default items-center gap-3 rounded-md px-2 py-2 outline-none transition-colors motion-fast data-hovered:bg-secondary data-focused:bg-secondary data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,f$=`flex min-w-0 flex-col`,p$=`text-sm font-medium text-foreground`;function m$({isOpen:e,onOpenChange:t,onClosed:n,title:r,closeLabel:i,groups:a,onChoose:o,emptyText:s}){let c=a.filter(e=>e.options.length>0);return(0,S.jsx)(UY,{isOpen:e,onOpenChange:t,...n!==void 0&&{onClosed:n},title:r,closeLabel:i,size:`md`,children:c.length===0?(0,S.jsx)(`p`,{className:c$,children:s}):(0,S.jsx)(uF,{"aria-label":r,autoFocus:`first`,selectionMode:`none`,className:s$,onAction:e=>{o(String(e)),t(!1)},children:c.map(e=>(0,S.jsxs)(mF,{id:`group:${e.id}`,className:l$,children:[(0,S.jsx)(ON,{className:u$,children:e.label}),e.options.map(({id:e,label:t,description:n,icon:r})=>(0,S.jsxs)(hF,{id:e,textValue:n===void 0?t:`${t} ${n}`,className:d$,children:[r&&(0,S.jsx)(`span`,{className:`grid size-9 shrink-0 place-items-center rounded-md bg-secondary text-secondary-foreground`,children:(0,S.jsx)(r,{"aria-hidden":!0,size:18})}),(0,S.jsxs)(`span`,{className:f$,children:[(0,S.jsx)(`span`,{className:p$,children:t}),n!==void 0&&(0,S.jsx)(`span`,{className:`text-sm text-foreground-secondary`,children:n})]})]},e))]},e.id))})})}var h$=`flex min-w-0 items-start gap-3 overflow-x-auto pb-2`,g$=W_(`flex min-w-48 flex-1 basis-0 flex-col gap-2 rounded-lg border bg-background-secondary p-2 transition-colors motion-fast`,{variants:{state:{default:`border-border`,target:`border-ring ring-2 ring-ring`}},defaultVariants:{state:`default`}}),_$=`flex items-center justify-between gap-2 px-1 pt-1`,v$=`flex min-w-0 items-center gap-2 text-sm font-semibold text-foreground`,y$=`truncate`,b$=`shrink-0 text-sm text-foreground-muted`,x$=W_(`size-2 shrink-0 rounded-full`,{variants:{tone:{neutral:`bg-foreground-subtle`,success:`bg-success`,danger:`bg-destructive`}},defaultVariants:{tone:`neutral`}}),S$=`flex flex-col gap-2`,C$=`rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted`,w$=W_(`motion-rise flex min-w-0 items-start gap-1 rounded-md border border-border bg-card p-1 shadow-sm`,{variants:{state:{default:``,dragging:`opacity-50`}},defaultVariants:{state:`default`}}),T$=`flex min-w-0 flex-1 cursor-grab flex-col gap-1 rounded-sm px-2 py-1 text-left outline-none transition-colors motion-fast data-hovered:bg-secondary data-pressed:cursor-grabbing data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,E$=`truncate text-sm font-medium text-foreground`,D$=`application/x-velocity-cms-board-card`;function O$({label:e,columns:t,emptyText:n,onOpen:r,onMove:i,moveLabel:a}){let o=new Map(t.flatMap(e=>e.items.map(t=>[t.id,e.id]))),s=(e,t)=>{o.get(e)!==t&&i(e,t)};return(0,S.jsx)(`div`,{role:`group`,"aria-label":e,className:h$,children:t.map(e=>(0,S.jsx)(k$,{column:e,columns:t,emptyText:n,onOpen:r,onMove:s,moveLabel:a},e.id))})}function k$({column:e,columns:t,emptyText:n,onOpen:r,onMove:i,moveLabel:a}){let o=(0,x.useId)(),s=(0,x.useRef)(null),[c,l]=(0,x.useState)(!1),{dropProps:u}=TH({ref:s,getDropOperation:e=>e.has(D$)?`move`:`cancel`,onDropEnter:()=>l(!0),onDropExit:()=>l(!1),onDrop:t=>{l(!1);let[n]=t.items.filter(bV);n?.getText(D$).then(t=>i(t,e.id))}}),d=t.filter(t=>t.id!==e.id).map(e=>({id:e.id,label:e.title}));return(0,S.jsxs)(`section`,{ref:s,"aria-labelledby":o,className:g$({state:c?`target`:`default`}),...u,children:[(0,S.jsxs)(`div`,{className:_$,children:[(0,S.jsxs)(`h3`,{id:o,className:v$,children:[(0,S.jsx)(`span`,{className:x$({tone:e.tone})}),(0,S.jsx)(`span`,{className:y$,children:e.title})]}),(0,S.jsx)(`span`,{className:b$,children:e.count})]}),e.items.length===0?(0,S.jsx)(`p`,{className:C$,children:n}):(0,S.jsx)(`ul`,{className:S$,children:e.items.map(e=>(0,S.jsx)(A$,{item:e,elsewhere:d,onOpen:r,onMove:i,moveLabel:a},e.id))}),e.more!==void 0&&(0,S.jsx)(`p`,{className:`px-1 text-sm text-foreground-muted`,children:e.more})]})}function A$({item:e,elsewhere:t,onOpen:n,onMove:r,moveLabel:i}){let{dragProps:a,isDragging:o}=uY({getItems:()=>[{[D$]:e.id}],getAllowedDropOperations:()=>[`move`]});return(0,S.jsxs)(`li`,{className:w$({state:o?`dragging`:`default`}),...a,children:[(0,S.jsxs)(bD,{className:T$,onPress:()=>n(e.id),children:[(0,S.jsx)(`span`,{className:E$,children:e.title}),e.detail!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:e.detail}),e.notes!==void 0&&e.notes.length>0&&(0,S.jsx)(`span`,{className:`flex flex-wrap items-center gap-1 pt-1`,children:e.notes.map(e=>(0,S.jsx)(yZ,{tone:e.tone??`neutral`,children:e.text},e.text))})]}),t.length>0&&(0,S.jsx)(hX,{trigger:(0,S.jsx)(IY,{size:`sm`,icon:fv,label:i(e.title)}),actions:t,onAction:t=>r(e.id,t)})]})}var j$=`flex min-w-0 flex-col gap-2`,M$=vY,N$=xY,P$=SY,F$=`flex flex-col gap-2`,I$=`rounded-md border border-dashed border-border px-3 py-6 text-center text-sm text-foreground-muted`,L$=`flex`,R$=W_(`motion-rise min-w-0 rounded-lg border bg-card`,{variants:{state:{default:`border-border`,problem:`border-destructive`,dragging:`border-border opacity-50`,target:`border-ring ring-2 ring-ring`}},defaultVariants:{state:`default`}}),z$=`flex items-center gap-1 py-1 pr-2 pl-1`,B$=`grid h-8 w-6 shrink-0 cursor-grab place-items-center rounded-md text-foreground-subtle outline-none transition-colors motion-fast data-hovered:bg-secondary data-hovered:text-foreground data-pressed:cursor-grabbing data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,V$=`min-w-0 flex-1`,H$=`flex w-full min-w-0 cursor-default items-center gap-3 rounded-md px-2 py-2 text-left outline-none transition-colors motion-fast data-hovered:bg-secondary data-focus-visible:ring-2 data-focus-visible:ring-input-focus`,U$=`shrink-0 text-foreground-muted`,W$=W_(`grid size-8 shrink-0 place-items-center rounded-md`,{variants:{tone:{default:`bg-secondary text-secondary-foreground`,quiet:`bg-background-secondary text-foreground-subtle`}},defaultVariants:{tone:`default`}}),G$=`flex min-w-0 flex-1 flex-col`,K$=W_(`truncate text-sm font-medium`,{variants:{tone:{default:`text-foreground`,quiet:`text-foreground-muted`}},defaultVariants:{tone:`default`}}),q$=`flex shrink-0 items-center`,J$=`border-t border-border p-4`;function Y$({label:e,description:t,errorMessage:n,items:r,openIds:i,onOpenChange:a,emptyText:o,addLabel:s,onAdd:c,isFull:l=!1,onMove:u,onAction:d,moveUpLabel:f,moveDownLabel:p,moreLabel:m,dragLabel:h,revealId:g}){let _=(0,x.useId)(),v=r.map(e=>e.id),y=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(g===void 0)return;let e=[...y.current?.children??[]].find(e=>e instanceof HTMLElement&&e.dataset.section===g);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`})},[g]),(0,S.jsxs)(`div`,{role:`group`,"aria-labelledby":_,className:j$,children:[(0,S.jsx)(`span`,{id:_,className:M$,children:e}),t!==void 0&&(0,S.jsx)(`p`,{className:N$,children:t}),r.length===0?(0,S.jsx)(`p`,{className:I$,children:o}):(0,S.jsx)(`ol`,{ref:y,className:F$,children:r.map((e,t)=>(0,S.jsx)(Z$,{item:e,index:t,ids:v,isOpen:i.includes(e.id),onOpenChange:a,onMove:u,onAction:d,moveUpLabel:f,moveDownLabel:p,moreLabel:m,dragLabel:h},e.id))}),n!==void 0&&(0,S.jsx)(`p`,{className:P$,children:n}),(0,S.jsx)(`div`,{className:L$,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Bb,isDisabled:l,onPress:c,children:s})})]})}var X$=`application/x-velocity-cms-section`;function Z$({item:e,index:t,ids:n,isOpen:r,onOpenChange:i,onMove:a,onAction:o,moveUpLabel:s,moveDownLabel:c,moreLabel:l,dragLabel:u}){let{id:d,title:f,summary:p,icon:m,tag:h,problem:g,content:_,actions:v}=e,y=(0,x.useRef)(null),[b,C]=(0,x.useState)(null),{dragProps:w,dragButtonProps:T,isDragging:E}=uY({hasDragButton:!0,getItems:()=>[{[X$]:d}],getAllowedDropOperations:()=>[`move`]}),{dropProps:D}=TH({ref:y,getDropOperation:e=>e.has(X$)?`move`:`cancel`,onDropEnter:()=>C(e=>e??`here`),onDropMove:e=>C(e.y<(y.current?.offsetHeight??0)/2?`before`:`after`),onDropExit:()=>C(null),onDrop:e=>{let r=b;C(null);let[i]=e.items.filter(bV);i?.getText(X$).then(e=>{let i=n.indexOf(e);if(i===-1)return;let o=r===`before`?t:r===`after`||i<t?t+1:t,s=i<o?o-1:o;s!==i&&a(i,s)})}}),O=h===void 0?`default`:`quiet`,k=r?Mv:Iv;return(0,S.jsxs)(`li`,{ref:y,"data-section":d,...D,children:[b===`before`&&(0,S.jsx)(`div`,{className:`my-1 h-0.5 rounded-full bg-ring`}),(0,S.jsxs)(XB,{className:R$({state:g===void 0?b===`here`?`target`:E?`dragging`:`default`:`problem`}),isExpanded:r,onExpandedChange:e=>i(d,e),children:[(0,S.jsxs)(`div`,{className:z$,...w,children:[(0,S.jsx)(bD,{...T,"aria-label":u(t+1),className:B$,children:(0,S.jsx)(my,{"aria-hidden":!0,size:16})}),(0,S.jsx)(wD,{level:3,className:V$,children:(0,S.jsxs)(bD,{slot:`trigger`,className:H$,children:[(0,S.jsx)(k,{"aria-hidden":!0,size:16,className:U$}),m&&(0,S.jsx)(`span`,{className:W$({tone:O}),children:(0,S.jsx)(m,{"aria-hidden":!0,size:16})}),(0,S.jsxs)(`span`,{className:G$,children:[(0,S.jsx)(`span`,{className:K$({tone:O}),children:f}),p!==void 0&&(0,S.jsx)(`span`,{className:`truncate text-sm text-foreground-muted`,children:p})]}),h!==void 0&&(0,S.jsx)(yZ,{children:h})]})}),(0,S.jsxs)(`div`,{className:q$,children:[(0,S.jsx)(IY,{size:`sm`,icon:gv,label:s(t+1),isDisabled:t===0,onPress:()=>a(t,t-1)}),(0,S.jsx)(IY,{size:`sm`,icon:uv,label:c(t+1),isDisabled:t===n.length-1,onPress:()=>a(t,t+1)}),(0,S.jsx)(hX,{trigger:(0,S.jsx)(IY,{size:`sm`,icon:ey,label:l(t+1)}),actions:v,onAction:e=>o(d,e)})]})]}),g!==void 0&&!r&&(0,S.jsx)(`p`,{className:`px-4 pb-3 text-sm text-destructive`,children:g}),(0,S.jsx)(ZB,{children:(0,S.jsx)(`div`,{className:J$,children:_})})]}),b===`after`&&(0,S.jsx)(`div`,{className:`my-1 h-0.5 rounded-full bg-ring`})]})}var Q$=W_(`flex h-full min-h-0 flex-col overflow-hidden bg-background-secondary`,{variants:{isBare:{true:``,false:`rounded-lg border border-border`}},defaultVariants:{isBare:!1}}),$$=`flex min-h-0 flex-1 justify-center`,e1=`m-auto max-w-sm px-6 text-center text-sm text-foreground-muted`,t1=W_(`h-full w-full bg-background transition-all motion-base`,{variants:{width:{phone:`max-w-sm border-x border-border`,tablet:`max-w-3xl border-x border-border`,full:``}},defaultVariants:{width:`full`}}),n1=500,r1=`velocity-cms`,i1=250;function a1({label:e,address:t,draft:n,note:r,toolbar:i,emptyText:a,onSectionPress:o,shownSectionId:s,typable:c,onWords:l,isBare:u=!1,width:d}){let f=`preview-${(0,x.useId)().replaceAll(`:`,``)}`,p=(0,x.useRef)(null),m=(0,x.useRef)(null),h=(0,x.useRef)(!1),g=c===void 0?void 0:JSON.stringify(c),_=(0,x.useRef)({onSectionPress:o,shownSectionId:s,onWords:l,places:g});(0,x.useEffect)(()=>{_.current={onSectionPress:o,shownSectionId:s,onWords:l,places:g}});let v=(0,x.useRef)(0),y=(0,x.useRef)(!1);(0,x.useEffect)(()=>{if(t===void 0)return;let e=()=>{h.current=!0,y.current=!1,p.current?.submit()};if(!h.current){e();return}if(Date.now()-v.current<i1&&!y.current)return;y.current=!0;let n=setTimeout(e,n1);return()=>clearTimeout(n)},[t,n]);let b=e=>{e!==void 0&&m.current?.contentWindow?.postMessage({source:r1,type:`show`,id:e},window.location.origin)},C=e=>{e!==void 0&&m.current?.contentWindow?.postMessage({source:r1,type:`typable`,places:JSON.parse(e)},window.location.origin)};return(0,x.useEffect)(()=>{let e=e=>{if(e.origin!==window.location.origin||e.source!==m.current?.contentWindow)return;let t=e.data;t?.source===r1&&(t.type===`section`&&typeof t.id==`string`&&(typeof t.field==`string`?_.current.onSectionPress?.(t.id,t.field):_.current.onSectionPress?.(t.id)),t.type===`words`&&typeof t.id==`string`&&typeof t.field==`string`&&typeof t.words==`string`&&(v.current=Date.now(),_.current.onWords?.(t.id,t.field,t.words)),t.type===`ready`&&(C(_.current.places),b(_.current.shownSectionId)))};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,x.useEffect)(()=>b(s),[s]),(0,x.useEffect)(()=>C(g),[g]),(0,S.jsxs)(`div`,{className:Q$({isBare:u}),children:[(r!==void 0||i!==void 0)&&(0,S.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-border bg-background px-3 py-2`,children:[(0,S.jsx)(`span`,{className:`min-w-0 truncate text-sm text-foreground-muted`,children:r}),i]}),(0,S.jsx)(`div`,{className:$$,children:t===void 0?(0,S.jsx)(`p`,{className:e1,children:a}):(0,S.jsxs)(S.Fragment,{children:[(0,NT.createPortal)((0,S.jsx)(`form`,{ref:p,method:`post`,action:t,target:f,hidden:!0,children:(0,S.jsx)(`input`,{type:`hidden`,name:`draft`,value:n,readOnly:!0})}),document.body),(0,S.jsx)(`iframe`,{ref:m,name:f,title:e,className:t1({width:d})})]})})]})}var o1=W_(``,{variants:{view:{beside:`w-full`,whole:`fixed inset-0 layer-overlay flex flex-col bg-background-secondary`}},defaultVariants:{view:`beside`}}),s1=W_(`flex`,{variants:{view:{beside:`w-full flex-col gap-6 xl:flex-row xl:items-start`,whole:`min-h-0 flex-1`}},defaultVariants:{view:`beside`}}),c1=W_(`flex min-w-0 flex-col gap-6`,{variants:{view:{beside:`xl:w-lg xl:shrink-0`,whole:`w-lg max-w-full shrink-0 overflow-auto border-r border-border bg-background p-4 transition-all motion-slide`},isAway:{true:``,false:``}},compoundVariants:[{view:`whole`,isAway:!0,class:`-ml-128 invisible`}],defaultVariants:{view:`beside`,isAway:!1}}),l1=W_(`min-w-0`,{variants:{view:{beside:`pane-tall xl:sticky xl:top-24 xl:flex-1`,whole:`min-h-0 flex-1`}},defaultVariants:{view:`beside`}});function u1({paneLabel:e,children:t,pane:n,bar:r,isFormAway:i=!1,view:a=`beside`}){let o=a===`whole`;return(0,S.jsx)(UN,{contain:o,children:(0,S.jsxs)(`div`,{className:o1({view:a}),children:[o&&r,(0,S.jsxs)(`div`,{className:s1({view:a}),children:[(0,S.jsx)(`div`,{className:c1({view:a,isAway:o&&i}),children:t}),(0,S.jsx)(`section`,{"aria-label":e,className:l1({view:a}),children:n})]})]})})}function d1({navigate:e,children:t}){return(0,S.jsx)(fC,{navigate:e,children:t})}var f1=.86,p1=(e,t)=>`${e.replace(/\.[^.]*$/,``)}.${t}`;function m1(e,t,n){let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(e.width*t)),r.height=Math.max(1,Math.round(e.height*t));let i=r.getContext(`2d`);return i?(n===`image/jpeg`&&(i.fillStyle=`#fff`,i.fillRect(0,0,r.width,r.height)),i.drawImage(e,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,n,f1))):Promise.resolve(null)}async function h1(e,t){let n=new Uint8Array(await e.arrayBuffer()),r={fileName:e.name,bytes:n},i=I_(n);if(i!==null&&Math.max(i.width,i.height)<=2560&&n.length<=t||typeof createImageBitmap!=`function`)return r;let a=await createImageBitmap(e).catch(()=>null);if(!a)return r;try{let t=Math.min(1,L_/Math.max(a.width,a.height)),n=i?.contentType===`image/png`?`image/png`:`image/jpeg`,o=await m1(a,t,n);return o?{fileName:p1(e.name,n===`image/png`?`png`:`jpg`),bytes:new Uint8Array(await o.arrayBuffer())}:r}finally{a.close()}}var g1=e=>e.thumbnail??e.url;function Z(e,t){return e[t]??e[t.split(`-`)[0]??t]??Object.values(e)[0]??``}function _1(e,t){try{return new Intl.DisplayNames(t,{type:`language`}).of(e)??e}catch{return e}}function v1(e,t){let n=e.titlePath??l_(e.fields).filter(e=>e.type===`text`).slice(0,1).map(e=>e.id),r=t;for(let e of n)r=typeof r==`object`&&r?r[e]:void 0;return typeof r==`string`&&r.trim()!==``?r:null}function y1(e,t,n){let r=e.fields,i=t,a;for(let e of n){if(a=r.find(t=>t.id===e&&t.deletedAt===void 0),!a)return null;i=typeof i==`object`&&i?i[e]:void 0,r=Array.isArray(a.options.fields)?a.options.fields:[]}return a?{field:a,value:i}:null}function b1(e,t){let n=e.list?.imagePath?y1(e,t,e.list.imagePath):null,r=Array.isArray(n?.value)?n.value[0]:n?.value;return typeof r==`string`&&r!==``?r:null}function x1(e){return e.publishAt===void 0?c_(e)?`unpublishedChanges`:e.status:`scheduled`}function S1(e,t,n){let{[t]:r,...i}=e;return n===void 0?i:{...i,[t]:n}}function C1(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null||Array.isArray(e)!==Array.isArray(t))return!1;let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>e in r&&C1(n[e],r[e]))}function w1(e,t){let n=t.split(`-`)[0]??t,r=new Map;for(let t of e)r.set(t.translationGroup,[...r.get(t.translationGroup)??[],t]);return[...r.values()].map(e=>{let r=e.find(e=>e.locale===t)??e.find(e=>e.locale.split(`-`)[0]===n)??e[0];if(!r)throw Error(`A group of translations has no entries.`);return{primary:r,versions:[r,...e.filter(e=>e!==r)]}})}function T1(e,t){let n=e.localizedUrlPatterns?.[t.locale]??e.urlPattern;return n===void 0?null:z_({urlPattern:n,fields:e.fields},t,t.locale)}var E1={app:{product:`Velocity`,contentGroup:`Content`,home:`Home`,skipToContent:`Skip to content`,mainNavigation:`Main`,notifications:`Notifications`,dismiss:`Dismiss`,loading:`Loading`,accountMenu:`Account`,signOut:`Sign out`,signedOut:`Signed out`,notSignedOut:`Not signed out`,sessionEnded:`You were signed out`,sessionEndedDescription:`Your session ended. Sign in again to continue.`,siteGroup:`Site`,people:`People`,settings:`Settings`,media:`Media`,trash:`Trash`,forms:`Forms`,contacts:`Contacts`,deals:`Deals`,plugins:`Manage plugins`,pluginsGroup:`Plugins`,types:`Content types`,passkeys:`Passkeys`,passkeyTitle:`Add a passkey`,passkeyDescription:`A passkey signs you in with your fingerprint, face or screen lock, with no email to wait for. Add one on each device you use, and remove one when you stop using its device.`,passkeyColumnName:`Passkey`,passkeyColumnAdded:`Added`,passkeyColumnActions:`Remove`,passkeyNone:`You have no passkeys yet.`,passkeyUnnamed:`Passkey with no name`,passkeyAddedUnknown:`Not known`,passkeyRemove:e=>`Remove ${e}`,passkeyRemoved:e=>`${e} removed`,passkeyRemovedDescription:`It can no longer sign you in. You can still use a sign-in link.`,passkeyNotRemoved:`The passkey was not removed`,passkeyDone:`Done`,passkeyName:`Name for this passkey`,passkeyNameHelp:`So you can tell your passkeys apart, such as "Work laptop".`,passkeyDefaultName:`This device`,passkeyAdd:`Add passkey`,passkeyAdded:`Passkey added`,passkeyAddedDescription:`Next time, choose "Sign in with a passkey".`,passkeyNotAdded:`No passkey was added`,somethingWentWrong:`Something went wrong`,tryAgain:`Try again`},signIn:{title:`Sign in`,description:`Use a passkey, or get a sign-in link by email. There is no password to remember.`,email:`Email`,emailMissing:`Enter your email address.`,emailInvalid:`Enter an email address, such as name@example.com.`,sendLink:`Email me a sign-in link`,usePasskey:`Sign in with a passkey`,linkSentTitle:`Check your email`,linkSent:e=>`If ${e} belongs to someone on this site, a sign-in link is on its way. It works once and expires in 10 minutes.`,useAnotherEmail:`Use a different email`,linkFailed:`That sign-in link has expired or was already used. Ask for a new one below.`,signedIn:e=>`Signed in as ${e}`,passkeyFailed:`The passkey did not work. Try again, or use a sign-in link instead.`},contentList:{description:e=>e===1?`1 entry`:`${e} entries`,columnTitle:`Title`,columnStatus:`Status`,columnLanguages:`Languages`,filter:`Show`,filterAll:`All`,filterPublished:`Published`,filterDrafts:`Drafts`,filterChanged:`Unpublished changes`,search:e=>`Search ${e.toLowerCase()}`,searchPlaceholder:`Search by title or address`,clearSearch:`Clear search`,noMatchesTitle:`Nothing matches`,noMatchesDescription:`Try another word, or show all entries.`,columnUpdated:`Updated`,untitled:`Untitled`,newEntry:`New entry`,emptyTitle:e=>`No ${e.toLowerCase()} yet`,emptyDescription:`Entries appear on the site as soon as they are published.`,noTypesTitle:`No content types yet`,noTypesDescription:`A content type describes one kind of content, such as listings or blog posts.`,typeNotFoundTitle:`This content type does not exist`,typeNotFoundDescription:`It may have been renamed or removed.`},schedule:{title:`Schedule`,close:`Close`,help:`What is saved when the time comes goes on the site, so you can keep working on it until then.`,saveFirst:`Save what you have typed first: what goes out is what is saved.`,current:e=>`Set to go on the site ${e}.`,missed:e=>`This did not go on the site at its time. ${e}`,day:`Day`,dayMissing:`Choose a day.`,time:`Time`,zone:e=>`Times are in your time zone, ${e.replaceAll(`_`,` `)}.`,confirm:`Schedule`,change:`Change the time`,cancel:`Cancel`,remove:`Take off the schedule`,set:`Scheduled`,setDescription:e=>`It goes on the site ${e}.`,notSet:`Not scheduled`,removed:`Taken off the schedule`,notRemoved:`Still scheduled`},history:{title:`History`,close:`Close`,help:`Every save, the latest first. Bringing a version back makes a new save: nothing is lost, and the site changes only when you publish.`,saveFirst:`Save or undo what you have typed before bringing a version back.`,current:`Now`,onSite:`On the site`,when:(e,t)=>t?`${e}, by ${t}`:e,first:`First saved`,changed:e=>`Changed ${e.join(`, `)}`,published:`Published`,unpublished:`Taken off the site`,saved:`Saved`,bringBack:`Bring back this version`,broughtBack:e=>`Version from ${e} brought back`,broughtBackDescription:`It is the working version now. Publish it to put it on the site.`,notBroughtBack:`Not brought back`},editor:{back:e=>`All ${e.toLowerCase()}`,newTitle:`New entry`,form:`Entry`,slug:`Slug`,slugDescription:e=>`The page's address on the site: ${e}`,slugAsIdentifier:`A short name other entries link to. It is not shown on the site, and stays the same in every language.`,slugMissing:`Enter a slug. It is the last part of the page's address.`,slugInvalid:`Use lowercase letters, numbers and hyphens, such as lake-house.`,slugPathDescription:e=>`The page's address on the site: ${e}. Put a slash between the parts to place it under another page, such as services/roofing. The slug index is the page at the top.`,slugHomeDescription:e=>`The page's address on the site: ${e}. The page whose slug is index is the one at the top.`,slugPathInvalid:`Use lowercase letters, numbers and hyphens, with a slash between the parts of a longer address, such as services/roofing.`,choose:`Choose one`,linkMissing:e=>`${e} (not found)`,formMissing:`A form that is no longer here`,formLoading:`Loading…`,formClosed:e=>`${e} (closed)`,noForms:`This site has no forms yet. Make one under Forms.`,linkNotLoaded:`The list to choose from could not be loaded. Reload the page to try again.`,linkAddressChoice:`Another address`,linkAddress:`Address`,linkAddressHelp:`A whole address such as https://example.com, or a path on this site such as /contact/.`,linkWhich:e=>`Which of ${e}`,linkGone:`No longer on the site`,linkLoading:`Loading…`,listEmpty:`Nothing here yet`,listAdd:`Add`,listItem:(e,t)=>`${e} ${t}`,listRemove:(e,t)=>`Remove ${e} ${t}`,listMoveUp:(e,t)=>`Move ${e} ${t} up`,listMoveDown:(e,t)=>`Move ${e} ${t} down`,listMore:(e,t)=>`More for ${e} ${t}`,listDrag:(e,t)=>`Drag ${e} ${t}`,listDuplicate:`Duplicate`,listRemoveRow:`Remove`,listProblems:e=>e===1?`1 thing to fix in here.`:`${e} things to fix in here.`,pagePane:`The page`,pageFrame:e=>`${e}, as it would look`,pageNote:`The form as it is now, saved or not.`,pageWidth:`Width`,pagePhone:`Phone`,pageTablet:`Tablet`,pageDesktop:`Desktop`,visualOpen:`Visual editor`,visualClose:`Back to the form`,visualShowForm:`Show the form`,visualHideForm:`Hide the form`,pageNotYet:`Save the page once to see it here.`,pageLoading:`Getting the page…`,pageNotShown:e=>`The page cannot be shown here. ${e}`,sectionsEmpty:`No sections yet. Add the first one to start the page.`,sectionAdd:`Add section`,sectionPickerTitle:`Add a section`,sectionPickerEmpty:`This site has no kinds of section to add yet. They come with its template.`,sectionOtherGroup:`Other`,sectionMoveUp:(e,t)=>`Move section ${t}, ${e}, up`,sectionMoveDown:(e,t)=>`Move section ${t}, ${e}, down`,sectionMore:(e,t)=>`More for section ${t}, ${e}`,sectionDrag:(e,t)=>`Drag section ${t}, ${e}`,sectionDuplicate:`Duplicate`,sectionHide:`Hide from the site`,sectionShow:`Show on the site`,sectionRemove:`Remove`,sectionHidden:`Hidden`,sectionRetired:`No longer used`,sectionRetiredNote:`The site's template no longer has this kind of section, so it is left off the site. Its content is kept in case the kind comes back.`,sectionUnknown:`Unknown section`,sectionNoFields:`This section has nothing to fill in.`,sectionProblems:e=>e===1?`1 thing to fix in this section.`:`${e} things to fix in this section.`,sectionRemoveTitle:e=>`Remove this ${e.toLowerCase()} section?`,sectionRemoveDescription:`What was written in it goes with it. Nothing changes on the site until you publish.`,sectionRemoveConfirm:`Remove section`,imageChoose:`Choose an image`,imageChange:`Change`,imageNone:`No image chosen`,imageMissing:`This image is no longer on the site. Choose another.`,imagesEmpty:`This site has no images to choose from yet.`,imagesLoading:`Loading the images…`,imagesNotLoaded:`The images could not be loaded. Reload the page to try again.`,imageUpload:`Upload an image`,imageUploadHint:e=>`JPEG, PNG or WebP, up to ${e} MB. Larger photos are made smaller first.`,imageNotRead:`The file could not be read. Choose it again.`,close:`Close`,richText:{toolbar:`Formatting`,bold:`Bold`,italic:`Italic`,heading:`Heading`,subheading:`Subheading`,bulletList:`Bulleted list`,numberedList:`Numbered list`,quote:`Quote`,link:`Link`,linkAddress:`Link address`,linkHelp:`A web address, or a page of this site such as /contact/.`,linkApply:`Apply`,linkRemove:`Remove link`},otherFields:`Other details`,addressSection:`Address on the site`,identifierSection:`Identifier`,aside:`Publishing details`,unsupportedField:`This kind of field cannot be edited here yet. Its content is kept as it is.`,saveBar:`Save and publish`,language:`Language`,saveDraft:`Save draft`,publish:`Publish`,publishChanges:`Publish changes`,unpublish:`Unpublish`,more:`More actions`,trash:`Move to trash`,trashTitle:`Move this to the trash?`,trashDescription:`It leaves the lists and can be restored from the trash whenever you need it. Changes you have not saved are not kept.`,trashDescriptionPublished:`Visitors will no longer find it, and links to it will stop working. It can be restored from the trash as a draft. Changes you have not saved are not kept.`,schedule:`Schedule`,scheduleChange:`Change the schedule`,goesOut:e=>`Goes on the site ${e}`,missedSchedule:`Missed its time`,history:`History`,duplicate:`Duplicate`,duplicated:e=>`${e} duplicated`,duplicatedDescription:`This is the copy, as a draft. It holds what was last saved.`,notDuplicated:`Not duplicated`,trashed:e=>`${e} moved to the trash`,trashedDescription:`Restore it from Trash, under Site, whenever you need it.`,notTrashed:`Not moved to the trash`,inTrashTitle:`This is in the trash`,inTrashDescription:`Restore it to open it and change it again.`,openTrash:`Open the trash`,preview:`Preview`,imageUploaded:`Image uploaded`,imageUploadedDescription:`It is chosen for this field. Save the entry to keep it.`,notPreviewed:`No preview`,notSavedYet:`Not saved yet`,unsavedChanges:`Unsaved changes`,saved:e=>`Saved ${e}`,draftSaved:`Draft saved`,draftSavedDescription:`Visitors do not see it until you publish.`,published:`Published`,publishedDescription:`Visitors can see it now.`,unpublished:`Unpublished`,unpublishedDescription:`It is off the site. Its content is kept as a draft.`,notSaved:`Not saved`,notPublished:`Not published`,notUnpublished:`Not unpublished`,fieldsNeedAttention:e=>e===1?`1 field needs attention.`:`${e} fields need attention.`,leaveTitle:`Leave without saving?`,leaveDescription:`What you changed here has not been saved. If you leave now, it is lost.`,leave:`Leave without saving`,keepEditing:`Keep editing`,unpublishTitle:`Take this off the site?`,unpublishDescription:`Visitors will no longer find it, and links to it will stop working. Its content is kept as a draft.`,cancel:`Cancel`,notFoundTitle:`This entry does not exist`,notFoundDescription:`It may have been deleted.`},trash:{title:`Trash`,description:`What was moved here is off the site and out of the lists. Restore anything you still need.`,columnName:`Name`,columnType:`Kind`,columnMoved:`Moved here`,columnActions:`Actions`,detail:(e,t)=>`${e} · ${t}`,typeArchived:`An archived content type`,restore:e=>`Restore ${e}`,restored:e=>`${e} restored`,restoredDescription:`It is back as a draft. Publish it to put it on the site again.`,notRestored:`Not restored`,delete:e=>`Delete ${e} for good`,deleteTitle:e=>`Delete ${e} for good?`,deleteDescription:`Its content and its history are removed and cannot be brought back.`,deleteConfirm:`Delete for good`,deleted:e=>`${e} deleted for good`,notDeleted:`Not deleted`,emptyTitle:`The trash is empty`,emptyDescription:`An entry you move to the trash waits here until you restore it or delete it for good.`},contactImport:{button:`Import`,title:`Import contacts`,lead:`Bring in contacts from a spreadsheet saved as a CSV file. Its first row should be the headings, and one column must hold email addresses. People you already have are never overwritten: they only gain what they lack.`,chooseFile:`Choose a CSV file`,emptyFile:`This file has no rows under its headings. Choose a CSV file with a row of headings and at least one row of contacts.`,tooManyRows:e=>`This file has more than ${e} rows. Split it into smaller files and import each.`,matchLead:e=>`${e} ${e===1?`row`:`rows`} found. Say what each column holds.`,column:e=>`Column "${e}"`,example:e=>`For example: ${e}`,skip:`Leave it out`,emailNeeded:`Say which column holds the email addresses. A contact needs one.`,bringIn:e=>`Import ${e} ${e===1?`row`:`rows`}`,done:e=>`${e} ${e===1?`contact`:`contacts`} added`,failed:`The import stopped`,added:e=>`${e} ${e===1?`contact was`:`contacts were`} added.`,filled:e=>`${e} you already had gained details they lacked.`,unchanged:e=>`${e} you already had were left as they are.`,leftOut:e=>`${e} ${e===1?`row was`:`rows were`} left out:`,rowProblem:(e,t)=>`Row ${e}: ${t}`,andMore:e=>`And ${e} more.`,close:`Done`},contacts:{title:`Contacts`,description:`Everyone who wrote to you through a form, and the people you added yourself.`,newContact:`New contact`,newContactTitle:`New contact`,search:`Search contacts`,searchPlaceholder:`Search by name, email or phone`,clearSearch:`Clear search`,columnName:`Name`,columnPhone:`Phone`,columnSource:`First came from`,columnAdded:`Added`,noName:`No name yet`,addedByHand:`Added by hand`,fromForm:e=>`${e} form`,fromFormOn:(e,t)=>`${e} form on ${t}`,aFormNowGone:`A form that is no longer here`,count:e=>e===1?`1 contact`:`${e} contacts`,emptyTitle:`No contacts yet`,emptyDescription:`When someone sends a form that asks for their email, they appear here. You can also add a contact yourself.`,nothingFoundTitle:`Nobody matches`,nothingFoundDescription:e=>`No contact has "${e}" in their name, email or phone.`,name:`Name`,email:`Email`,phone:`Phone`,emailNeeded:`Give the contact an email address.`,create:`Add contact`,created:e=>`${e} added`,notCreated:`The contact was not added`,backToContacts:`All contacts`,notFoundTitle:`No such contact`,notFoundDescription:`This contact was erased, or the address is wrong.`,noAccess:`Contacts are for owners and editors.`,edit:`Edit details`,editTitle:e=>`Edit ${e}`,save:`Save details`,saved:e=>`${e} saved`,notSaved:`The details were not saved`,details:`Details`,detailsLabel:`About this contact`,firstCameFrom:`First came from`,added:`Added`,notGiven:`Not given`,timeline:`Timeline`,timelineHelp:`What they sent you and what your team noted, newest first.`,timelineEmpty:`Nothing yet. Notes you add and forms they send will be listed here.`,sent:e=>`Sent the ${e} form`,sentUnknown:`Sent a form that is no longer here`,fromPage:e=>`From ${e}`,noteLabel:`Note`,movedLabel:`Moved`,movedFromTo:(e,t,n)=>`From ${e} to ${t}${n===void 0?``:`, by ${n}`}`,stageGone:`a stage that was removed`,note:`Add a note`,notePlaceholder:`Called back, wants a tour on Saturday`,noteHelp:`Only your team sees notes.`,addNote:`Add note`,noteAdded:`Note added`,noteNotAdded:`The note was not added`,deleteNote:`Delete note`,noteDeleted:`Note deleted`,noteNotDeleted:`The note was not deleted`,export:`Export`,exported:`File downloaded`,exportedDescription:`The file holds personal details. Keep it somewhere safe.`,notExported:`The file could not be made`,erase:`Erase`,eraseTitle:e=>`Erase ${e}?`,eraseDescription:`This deletes the contact, your notes about them and everything they sent through every form, for good. Use it when someone asks you to remove their details.`,eraseConfirm:`Erase for good`,erased:(e,t)=>t===0?`${e} erased`:t===1?`${e} erased, with 1 submission`:`${e} erased, with ${t} submissions`,notErased:`The contact was not erased`,view:`View`,viewList:`List`,viewBoard:`Board`,columnStage:`Stage`,columnOwner:`Looked after by`,columnFollowUp:`Follow up`,filterStage:`Stage`,allStages:`All stages`,filterOwner:`Looked after by`,everyone:`Everyone`,mine:`Me`,nobody:`Nobody`,someoneWhoLeft:`Someone who left`,nothingMatchesTitle:`Nobody matches`,nothingMatchesDescription:`No contact fits what you chose. Change the stage or who looks after them.`,stages:{new:`New`,contacted:`Contacted`,qualified:`Qualified`,won:`Won`,lost:`Lost`},board:`Pipeline`,boardEmpty:`Nobody here`,boardMore:e=>`${e} more, in the list`,move:e=>`Move ${e}`,moved:(e,t)=>`${e} moved to ${t}`,notMoved:`The contact was not moved`,work:`Follow-up`,workLabel:`Stage, owner and follow-up`,stage:`Stage`,owner:`Looked after by`,followUp:`Follow up on`,followUpHelp:`It shows on your Home screen when the day comes.`,stageSaved:e=>`Moved to ${e}`,ownerSaved:e=>`Now looked after by ${e}`,ownerCleared:`Nobody looks after this contact now`,followUpSaved:e=>`Follow-up set for ${e}`,followUpCleared:`Follow-up cleared`,notChanged:`The contact was not changed`,due:{overdue:`Overdue`,today:`Due today`},editStages:`Edit stages`,editStagesTitle:`Stages`,stagesHelp:`The steps a contact moves through, in order. New contacts start in the first.`,stagesRemoveNote:`Contacts in a stage you remove move to the first stage.`,stagesEmpty:`No stages. Add one.`,addStage:`Add stage`,stageName:`Name`,stageKind:`Counts as`,stageKinds:{open:`Open`,won:`Won`,lost:`Lost`},removeStage:e=>`Remove stage ${e}`,moveStageUp:e=>`Move stage ${e} up`,moveStageDown:e=>`Move stage ${e} down`,saveStages:`Save stages`,stagesSaved:`Stages saved`,stagesNotSaved:`The stages were not saved`,stageChance:`Chance, %`,pipelineSettings:`Deals and new contacts`,currency:`Currency`,currencyHelp:`Three letters, such as USD or EUR. Deal values are shown in it.`,assignTo:`Give new contacts to`,assignToHelp:`A contact made by a form goes to whichever of these people looks after the fewest. Tick nobody to leave new contacts unassigned.`},deals:{title:`Deals`,description:`What your contacts may buy, by stage, and what it is likely to bring in.`,noAccess:`Deals are for owners and editors.`,open:`Open`,openDetail:`Worth of every deal still in play`,forecast:`Forecast`,forecastDetail:`Open deals, each counted by its stage's chance`,won:`Won`,wonDetail:`Worth of the deals you won`,board:`Deals by stage`,boardEmpty:`No deals here`,boardMore:e=>`${e} more`,emptyTitle:`No deals yet`,emptyDescription:`Add a deal from a contact's page, with what it is worth. It then moves through your stages here.`,toContacts:`Go to contacts`,move:e=>`Move ${e}`,moved:(e,t)=>`${e} moved to ${t}`,notMoved:`The deal was not moved`,cardTitle:`Deals`,cardEmpty:`No deals with this contact yet.`,add:`Add deal`,addTitle:`New deal`,editTitle:e=>`Edit ${e}`,columnTitle:`Deal`,columnStage:`Stage`,columnValue:`Worth`,columnClose:`Expected`,name:`What it is about`,namePlaceholder:`Sale of 18 Alder Court`,nameNeeded:`Say what the deal is about.`,value:e=>`Worth, in ${e}`,stage:`Stage`,owner:`Looked after by`,closeOn:`Expected to close on`,create:`Add deal`,save:`Save deal`,created:e=>`${e} added`,saved:e=>`${e} saved`,notSaved:`The deal was not saved`,delete:`Delete deal`,deleted:e=>`${e} deleted`,notDeleted:`The deal was not deleted`,closes:e=>`Closes ${e}`,about:`On the site, it is about`,aboutNothing:`Nothing on the site`,aboutWhich:e=>`Which of ${e}`,aboutWhichOne:`Which one`,aboutGone:`No longer on the site`,aboutLoading:`Loading…`,entryCardEmpty:`No deals about this yet. Add one from a contact's page and choose this as what it is about.`,entryDeals:`Deals about this`},forms:{title:`Forms`,description:`The forms on your site, and what visitors sent through them.`,newForm:`New form`,newFormTitle:`New form`,formName:`Name`,formNameHelp:`What the form is called here and in the emails about it, such as Contact us.`,formKey:`Key`,formKeyHelp:`The name the site's pages use for it. Lowercase letters, numbers and hyphens.`,nameNeeded:`Give the form a name.`,keyNeeded:`Give the form a key.`,create:`Create form`,created:e=>`${e} created`,createdDescription:`Add the fields a visitor fills in.`,notCreated:`Not created`,columnName:`Name`,columnFields:`Fields`,columnNew:`New`,columnStatus:`Status`,columnActions:`Actions`,columnTrashed:`Moved here`,fieldCount:e=>e===1?`1 field`:`${e} fields`,newCount:e=>`${e} new`,noneNew:`None`,open:`Open`,closed:`Closed`,emptyTitle:`No forms yet`,emptyDescription:`A form collects what visitors send: a question, a request for a tour, a sign-up. Start with a contact form.`,trashedTitle:`Forms in the trash`,trashedHelp:`A form here takes no more submissions. What it was sent is kept until the form is deleted for good.`,restore:e=>`Restore ${e}`,restored:e=>`${e} restored`,notRestored:`Not restored`,delete:e=>`Delete ${e} for good`,deleteTitle:e=>`Delete ${e} for good?`,deleteDescription:`The form and everything visitors sent through it are removed and cannot be brought back.`,deleteConfirm:`Delete for good`,deleted:e=>`${e} deleted for good`,notDeleted:`Not deleted`,forget:`Forget a person`,forgetTitle:`Forget a person`,forgetHelp:`Deletes everything this person sent, through every form, for good. Use it when someone asks you to remove their details.`,forgetEmail:`Their email address`,forgetEmailNeeded:`Give the email address of the person to forget.`,forgetConfirm:`Delete what they sent`,forgotten:e=>e===0?`Nothing was found from that address`:e===1?`1 submission deleted`:`${e} submissions deleted`,notForgotten:`Not deleted`,notFoundTitle:`This form is not here`,notFoundDescription:`It may have been moved to the trash or deleted.`,backToForms:`All forms`,detail:(e,t)=>`Key: ${e} · ${t}`,tabs:`Parts of this form`,tabSubmissions:`Submissions`,tabFields:`Fields`,settings:`Settings`,trash:`Move to trash`,trashTitle:e=>`Move ${e} to the trash?`,trashDescription:`It takes no more submissions and leaves any page that shows it. What it was sent is kept, and the form can be restored.`,trashConfirm:`Move to trash`,trashed:e=>`${e} moved to the trash`,notTrashed:`Not moved`,statusFilter:`Which submissions to show`,statuses:{new:`New`,handled:`Handled`,spam:`Spam`},statusWithCount:(e,t)=>`${e} (${t})`,export:`Export as CSV`,exported:`Export saved`,exportedDescription:`The file holds personal details. Keep it somewhere safe.`,notExported:`Not exported`,columnFrom:`From`,columnSummary:`What they wrote`,columnReceived:`Received`,submissionsOf:e=>`Submissions of ${e}`,unknownSender:`No name given`,emptyNewTitle:`Nothing new`,emptyNewDescription:`What visitors send through this form arrives here.`,emptyHandledTitle:`Nothing handled yet`,emptyHandledDescription:`Mark a submission as handled once you have answered it.`,emptySpamTitle:`No spam`,emptySpamDescription:`Submissions that look automated are kept here, so a real one is never lost.`,noAccess:`Only owners and editors can read what visitors sent.`,submissionTitle:e=>`From ${e}`,received:e=>`Received ${e}`,sentFrom:e=>`Sent from ${e}`,handledAt:e=>`Handled ${e}`,yes:`Yes`,removedField:e=>`${e} (removed field)`,markHandled:`Mark as handled`,markNew:`Mark as new`,markSpam:`Mark as spam`,notSpam:`Not spam`,marked:{new:`Marked as new`,handled:`Marked as handled`,spam:`Marked as spam`},notMarked:`Not changed`,deleteSubmission:`Delete`,deleteSubmissionTitle:`Delete this submission?`,deleteSubmissionDescription:`It is removed for good and cannot be brought back.`,submissionDeleted:`Submission deleted`,submissionNotDeleted:`Not deleted`,addField:`Add field`,addFieldTitle:`Add a field`,editFieldTitle:e=>`Change ${e}`,fieldsOf:e=>`Fields of ${e}`,columnField:`Field`,columnKind:`Kind`,columnRules:`Rules`,required:`Required`,holds:{name:`Sender's name`,email:`Sender's email`,phone:`Sender's phone`},noFieldsTitle:`No fields yet`,noFieldsDescription:`Add what a visitor fills in: their name, their email, a message.`,fieldName:`Label`,fieldNameHelp:`What the visitor reads above the field.`,fieldKey:`Key`,fieldKeyHelp:`The name the site's pages and exports use for it.`,fieldHelp:`Help text`,fieldHelpHelp:`A short note shown with the field.`,fieldKind:`Kind`,fieldKindIs:e=>`Kind: ${e}. A different kind is a new field.`,fieldRequired:`A visitor must fill this in`,fieldNameNeeded:`Give the field a label.`,fieldKeyNeeded:`Give the field a key.`,fieldAdd:`Add field`,fieldSave:`Save field`,fieldAdded:e=>`${e} added`,fieldSaved:e=>`${e} saved`,fieldNotSaved:`Not saved`,moveUp:e=>`Move ${e} up`,moveDown:e=>`Move ${e} down`,edit:e=>`Change ${e}`,remove:e=>`Remove ${e}`,removeTitle:e=>`Remove ${e}?`,removeDescription:`Visitors are no longer asked for it. What was already sent under it is kept and still exported.`,removeConfirm:`Remove field`,removed:e=>`${e} removed`,notRemoved:`Not removed`,notMoved:`Not moved`,settingsTitle:e=>`Settings of ${e}`,isOpen:`Taking submissions`,isOpenHelp:`Switched off, the form leaves the site and what is sent to it is refused.`,notify:`Who is emailed`,notifyHelp:`One email address on each line. Each is told when the form is sent. Leave empty to tell nobody.`,senderName:`Field with the sender's name`,senderEmail:`Field with the sender's email`,senderPhone:`Field with the sender's phone`,senderHelp:`So a submission can be tied to a person, and a reply goes to them.`,noField:`None`,success:`Thank-you message`,successHelp:`What a visitor reads after sending. Left empty, the site's own words are used.`,submitLabel:`Button label`,submitLabelHelp:`Left empty, the site's own word is used.`,fills:e=>`Field that fills a contact's "${e}"`,fillsHelp:`The answer is kept on the sender's contact, in a field you added to contacts. It never replaces what is already there.`,startsDeal:`Start a deal about the page it was sent from`,startsDealHelp:`When this form is sent from the page of something deals can be about, such as a listing, the sender gets a deal about it. Turn that on for a kind of content in its settings.`,retention:`Days to keep submissions`,retentionHelp:`Older ones are deleted. Leave empty to keep them until someone deletes them.`,save:`Save settings`,saved:`Settings saved`,notSaved:`Not saved`},media:{title:`Media`,description:e=>e===1?`1 image`:`${e} images`,upload:`Upload an image`,uploadHint:e=>`JPEG, PNG or WebP, up to ${e} MB.`,uploaded:e=>`${e} was uploaded`,uploadedDescription:`Choose it in any image field.`,notUploaded:`The image was not uploaded`,notRead:`The file could not be read. Choose it again.`,search:`Search images`,searchPlaceholder:`Search by name`,clearSearch:`Clear search`,grid:`Images`,emptyTitle:`No images yet`,emptyDescription:`Images you upload here can be chosen in any image field.`,emptyNoUploads:`This site has nowhere to keep uploads yet. Images in the site's image folder appear here.`,noMatches:`No images match your search.`,fromSite:`Comes with the site`,dimensions:(e,t)=>`${e} × ${t}`,detailName:`Name`,detailNameHelp:`What an image field stores, and what the site's pages look it up by.`,detailSize:`Size`,detailFile:`File`,detailUploaded:`Uploaded`,fromSiteHelp:`It is part of the site's own files, so it is changed there and can't be removed here.`,kilobytes:e=>`${e} KB`,megabytes:e=>`${e} MB`,close:`Close`,remove:`Remove image`,removeTitle:e=>`Remove ${e}?`,removeDescription:`The file is deleted for good. An entry that shows this image will show nothing in its place until another is chosen.`,removed:e=>`${e} was removed`,notRemoved:`The image was not removed`},customFields:{button:`Custom fields`,close:`Close`,nameHelp:`What the team reads above the field.`,removeDescription:`The field is no longer shown or exported. What was filled in under it is kept.`,contact:{name:`Contacts`,title:`Custom fields for contacts`,help:`What you keep about each contact beyond their name, email and phone, such as a membership type or a budget.`,emptyDescription:`Add what you want to know about each contact. It shows on every contact, ready to fill in.`},deal:{name:`Deals`,title:`Custom fields for deals`,help:`What you keep about each deal beyond its name, value and stage, such as a product or a number of seats.`,emptyDescription:`Add what you want to know about each deal. It shows in every deal, ready to fill in.`}},plugins:{title:`Plugins`,description:`What you can add to this site. Activate a plugin to switch it on, and switch it off again at any time.`,may:e=>`May ${e.map(e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`).join(`, `)}`,version:e=>`Version ${e}`,states:{on:`Active`,off:`Available`,failed:`Could not start`,unsupported:`Needs another version`,invalid:`Left out`},active:e=>`${e} is active`,activated:e=>`${e} is active`,activatedDescription:`It is running on the whole site now.`,deactivated:e=>`${e} was switched off`,deactivatedDescription:`Its settings are kept for when you activate it again.`,notActivated:e=>`${e} could not start`,notSwitched:`The plugin was not switched`,settings:`Settings`,settingsTitle:e=>`${e} settings`,settingsSave:`Save settings`,settingsSaved:e=>`${e} settings saved`,settingsNotSaved:`The settings were not saved`,secretsTitle:`Keys and passwords`,secretsHelp:`Each is saved by itself, sealed, and never shown again.`,secretSaved:`Saved. It is not shown again.`,secretSave:e=>`Save ${e}`,secretReplace:e=>`Replace ${e}`,secretRemove:e=>`Remove ${e}`,secretKeep:`Keep the saved one`,secretWasSaved:e=>`${e} saved`,secretWasRemoved:e=>`${e} removed`,secretNotSaved:e=>`${e} was not saved`,activity:`Activity`,activityTitle:e=>`${e} activity`,activityHelp:`What this plugin was asked to send or do. Something that fails is tried again for about a day before it is given up on.`,activityEmptyTitle:`Nothing yet`,activityEmptyDescription:`What this plugin sends or does will be listed here as it happens.`,activityClose:`Close`,taskWhat:`What`,taskState:`State`,taskWhen:`Asked`,taskActions:`Try again`,taskStates:{waiting:`Waiting`,done:`Done`,failed:`Gave up`},taskTries:e=>e===1?`Tried once`:`Tried ${e} times`,taskNext:e=>`Next try ${e}`,taskNextSoon:`Next try within a minute`,taskRetry:e=>`Try ${e} again`,taskRetried:`It worked this time`,taskRetriedWaiting:`It failed again`,taskNotRetried:`It could not be tried again`,hasFailed:`Has failed`,failedAt:(e,t,n,r)=>`Failed ${e===1?`once`:`${e} times`} since the site started, last ${n} on "${t}": ${r}`,mayNothing:`Change nothing`,permissions:{"schema:write":`Change content types`,"entry:read":`Read content`,"entry:write":`Write drafts`,"entry:publish":`Publish`,"entry:delete":`Delete for good`,"form:write":`Change forms`,"submission:read":`Read what visitors send through forms`,"submission:manage":`Handle and delete what visitors send`,"contact:read":`Read contacts`,"contact:manage":`Change and erase contacts`,"user:manage":`Manage people`,"plugin:manage":`Manage plugins`,"settings:manage":`Change the site's settings`},adds:e=>`Adds ${e.join(`, `)}.`,addsScreen:e=>`the "${e}" screen in the sidebar`,addsPanel:e=>`the "${e}" panel on entries`,addsFieldTypes:e=>e===1?`a kind of field`:`${e} kinds of field`,addsChecks:e=>e===1?`a check before publishing`:`${e} checks before publishing`,addsPageHead:`titles and descriptions for search engines on the site's pages`,addsTasks:`deliveries that are tried again when they fail`,open:e=>`Open ${e}`,editorFailed:e=>`Its part of the editor could not be loaded: ${e}`,screenMissingTitle:`This screen is not here`,screenMissingDescription:`The plugin that added it may have been switched off. An owner can activate it again under Plugins.`,emptyTitle:`No plugins yet`,emptyDescription:`Plugins that are available for this site will be listed here, ready to activate.`},settings:{title:`Settings`,description:`What this site is and what it needs to run, set up here instead of on the server.`,tabsLabel:`Parts of the settings`,areas:{general:`General`,email:`Email`,storage:`Storage`,forms:`Forms and spam`},namesSite:e=>`${e} is also what this editor and the site's emails call the site, once it is published.`,ownersTitle:`Settings are for owners`,ownersDescription:`An owner of this site sets up its email, storage and forms here. Ask one if something needs changing.`,general:{title:`Site name`,description:`What this site is called in the editor, in the emails it sends and when someone adds a passkey.`,states:{server:`Set on the server`,code:`Set in the site's code`,host:`Set by your host`},fixed:e=>`Your host names this site: ${e}. Change it where you manage the site with your host.`,name:`Site name`,nameHelp:`Leave this empty to use the name the site's code gives.`,nameHelpWithDefault:e=>`Leave this empty to use the name the site's code gives: ${e}.`,save:`Save site name`,saved:`Site name saved`,savedDescription:`Emails use it from now on. The editor shows it once you reload the page.`,notSaved:`Site name not saved`},email:{title:`Email`,description:`Sign-in links, invitations and notices from forms are sent this way.`,states:{sending:`Sending`,off:`Not set up`,server:`Set on the server`,code:`Set in the site's code`,host:`Handled by your host`},offHelp:`Until this is set up, nobody is emailed: sign-in links are printed in the server's log, and notices from forms are not sent.`,fixed:{server:`This site's email is set up on the server, with the VELOCITY_CMS_RESEND_API_KEY and VELOCITY_CMS_EMAIL_FROM settings. They win over anything saved here. To set email up in the editor instead, remove both from the server.`,code:`This site sends email with a mailer of its own, named in its Astro config. It wins over anything saved here. To set email up in the editor instead, take the mailer out of the config.`,host:`Your host sends this site's email, so there is nothing to set up here.`},provider:`Email service`,providers:{resend:`Resend`},providerHelp:`Make an account with the service, verify your domain there, then create an API key.`,providerLinks:{resend:`https://resend.com/api-keys`},providerLink:e=>`Open your API keys at ${e}`,key:`API key`,keyHelp:`It is kept encrypted and never shown again once it is saved.`,keySaved:`A key is saved. It is kept encrypted and is not shown again.`,keyReplace:`Replace the key`,keyKeep:`Keep the saved key`,from:`Sender`,fromHelp:`The address your emails come from, on the domain you verified. Add a name if you like: Lakeshore Realty <hello@lakeshore.example>.`,save:`Save email settings`,saved:`Email settings saved`,savedDescription:`Email is now sent through these settings. Send a test to see it arrive.`,notSaved:`Email settings not saved`,test:`Send a test email`,testHelp:e=>`A test goes to you, at ${e}, and to nobody else.`,testAfterSave:`Save your changes before sending a test.`,testSent:`Test email sent`,testSentDescription:e=>`Look for it at ${e}. It can take a minute, and it may land in spam the first time.`,testNotSent:`Test email not sent`,stop:`Stop sending email`,stopTitle:`Stop sending email?`,stopDescription:`The saved API key is removed. Sign-in links will be printed in the server's log instead of emailed, so people can sign in only with a passkey or with help from whoever runs the server. Notices from forms stop too.`,stopConfirm:`Remove the key`,stopped:`Email is no longer sent`,stoppedDescription:`The API key was removed. Paste a new one to send email again.`},storage:{title:`Uploads`,description:`Where the images people upload in the editor are kept.`,states:{bucket:`Kept in your bucket`,folder:`Kept on the server's disk`,none:`No uploads yet`,server:`Set on the server`,code:`Set in the site's code`,host:`Handled by your host`},keepingHelp:{bucket:`Uploads are kept in the bucket below, which stays private: the site reads from it and serves the images itself.`,folder:`Uploads are kept in a folder on the server's disk. That suits a server of your own. On a host with no lasting disk, such as Vercel or Netlify, name a bucket here so uploads are not lost on the next deploy.`,none:`This site has nowhere to keep uploads, so people can only choose from the images it came with. Name a bucket here to take uploads.`},fixed:{server:`This site's uploads are set up on the server, with the VELOCITY_CMS_S3_ settings. They win over anything saved here. To choose the bucket in the editor instead, remove them from the server.`,code:`This site's code decides where uploads are kept, so there is nothing to set up here.`,host:`Your host keeps this site's uploads, so there is nothing to set up here.`},endpoint:`Service address`,endpointHelp:`Any service that speaks the S3 protocol. Cloudflare R2: https://<account id>.r2.cloudflarestorage.com. Amazon S3: https://s3.<region>.amazonaws.com.`,bucket:`Bucket name`,region:`Region`,regionHelp:`Leave this empty for Cloudflare R2. For Amazon S3, give the region the bucket is in, such as eu-west-1.`,accessKeyId:`Access key ID`,accessKeyIdHelp:`From a key that may read, write and delete in this bucket, and nothing else.`,secret:`Secret access key`,secretHelp:`It is kept encrypted and never shown again once it is saved.`,secretSaved:`A secret key is saved. It is kept encrypted and is not shown again.`,secretReplace:`Replace the secret key`,secretKeep:`Keep the saved secret key`,save:`Save storage settings`,saved:`Storage settings saved`,savedDescription:`New uploads go to this bucket. Test it to see that the keys work.`,notSaved:`Storage settings not saved`,test:`Test the bucket`,testAfterSave:`Save your changes before testing the bucket.`,testWorked:`The bucket works`,testWorkedDescription:`A small file was kept there, read back and removed.`,testFailed:`The bucket could not be used`,moveHelp:`Images uploaded so far are not moved. Ones on the server's disk keep showing from there; ones in another bucket need copying to the new one.`,stop:`Stop using this bucket`,stopTitle:`Stop using this bucket?`,stopDescription:`The saved secret key is removed. Images kept in the bucket stop showing on the site until it is connected again, and new uploads go to the server's disk, if it has one.`,stopConfirm:`Remove the secret key`,stopped:`The bucket is no longer used`,stoppedDescription:`The secret key was removed. Paste one to use the bucket again.`},forms:{title:`Spam check`,description:`Ask whoever sends a form to pass Cloudflare Turnstile, a check that they are a person. Most people never see it.`,states:{checking:`Checking senders`,off:`No spam check`},help:{checking:`Every form on the site shows the check. What is sent without passing it is kept under Spam, never lost. Someone whose browser runs no scripts cannot pass, so look at Spam now and then.`,off:`Forms already catch simple bots with a hidden field and a timer. To add Turnstile, make a widget for this site's domain in the Cloudflare dashboard, under Turnstile, and paste its two keys here. It is free.`},siteKey:`Site key`,siteKeyHelp:`The public one. It is part of every page that has a form.`,secret:`Secret key`,secretHelp:`It is kept encrypted and never shown again once it is saved.`,secretSaved:`A secret key is saved. It is kept encrypted and is not shown again.`,secretReplace:`Replace the secret key`,secretKeep:`Keep the saved secret key`,save:`Save spam check`,saved:`Spam check saved`,savedDescription:`Forms now show the check. Check the keys to see that Cloudflare knows them.`,notSaved:`Spam check not saved`,test:`Check the keys`,testAfterSave:`Save your changes before checking the keys.`,testHelp:`Checking asks Cloudflare whether it knows the secret key. To see the site key work, open a page with a form.`,testWorked:`Cloudflare knows the secret key`,testWorkedDescription:`Open a page with a form to see the check appear.`,testFailed:`The keys could not be checked`,stop:`Stop checking`,stopTitle:`Stop checking senders?`,stopDescription:`Both keys are removed and forms no longer show the check. The hidden field, the timer and the limit below still stand.`,stopConfirm:`Remove the keys`,stopped:`Senders are no longer checked`,stoppedDescription:`Both keys were removed. Paste them again to bring the check back.`,limitTitle:`Limit`,limitDescription:`How much one visitor can send before the forms ask them to wait.`,limit:`Messages from one address in ten minutes`,limitHelp:e=>`From 1 to ${e}. The CMS comes with 8. Raise it for an office where many people share one connection.`,limitSave:`Save limit`,limitSaved:`Limit saved`,limitSavedDescription:e=>e===1?`Forms take 1 message from one address in ten minutes.`:`Forms take ${e} messages from one address in ten minutes.`,limitNotSaved:`Limit not saved`}},people:{title:`People`,description:`Everyone who can sign in to this site, and what each may do.`,invite:`Invite someone`,columnName:`Name`,columnRole:`Role`,columnActions:`Remove`,you:`You`,invitedTag:`Invited`,invitedHelp:`Has not signed in yet.`,roles:{owner:`Owner`,editor:`Editor`,author:`Author`},roleMeans:{owner:`Owners can do everything, including inviting and removing people.`,editor:`Editors write and publish content.`,author:`Authors write drafts. Someone else publishes them.`},roleOf:e=>`Role of ${e}`,roleChanged:(e,t)=>`${e}'s role is now ${t}`,roleNotChanged:`The role was not changed`,remove:e=>`Remove ${e}`,removeTitle:e=>`Remove ${e}?`,removeDescription:`They are signed out everywhere at once and can no longer sign in. What they wrote stays.`,removeConfirm:`Remove`,removed:e=>`${e} was removed`,notRemoved:`Not removed`,inviteTitle:`Invite someone`,name:`Name`,email:`Email`,emailHelp:`They sign in with a link sent to this address. There is no password.`,role:`Role`,inviteSend:`Send invitation`,invited:e=>`${e} was invited`,invitedDescription:e=>`An invitation is on its way to ${e}.`},builder:{title:`Content types`,description:`The kinds of content this site has, and the fields each one is made of.`,newType:`New content type`,columnName:`Name`,columnFields:`Fields`,columnAddress:`Address`,noAddress:`No page of its own`,fieldCount:e=>e===1?`1 field`:`${e} fields`,emptyTitle:`No content types yet`,emptyDescription:`A content type is one kind of thing the site shows, such as news, team members or testimonials.`,newTypeTitle:`New content type`,typeName:`Name`,typeNameHelp:`What its entries are, in the plural: "Testimonials".`,typeKey:`Key`,typeKeyHelp:`What the site's code calls it. It cannot be changed later.`,archive:`Archive`,archiveTitle:e=>`Archive ${e}?`,archiveDescription:`It leaves the editor, and its pages leave the site. Its fields and entries are kept, so you can restore it later from Content types.`,archiveConfirm:`Archive content type`,archived:e=>`${e} was archived`,archivedDescription:`Restore it from the list of archived content types.`,notArchived:`The content type was not archived`,archivedTitle:`Archived`,archivedHelp:`Out of the editor and off the site, with everything kept.`,archivedTypes:`Archived content types`,columnArchived:`Archived`,restoreType:e=>`Restore ${e}`,typeRestored:e=>`${e} was restored`,typeRestoredDescription:`It is back in the editor, and its published entries are back on the site.`,typeNotRestored:`The content type was not restored`,typeKind:`Kind`,kindCollection:`Many entries`,kindSingle:`One page`,kindCollectionHelp:`A collection, such as news posts or listings. It has a list, and each entry can have a page of its own.`,kindSingleHelp:`A single page, such as the home page or the contact page. It has one entry in each language.`,typeNameHelpSingle:`What the page is: "About".`,typeAddressSingle:`Address of the page`,typeAddressHelpSingle:`Where the page lives on the site, such as /about. Leave empty when it is only shown as part of other pages.`,typeAddress:`Address of its pages`,typeAddressHelp:`Where one entry lives on the site, such as /news/[slug]. Write [...slug] where pages may sit under other pages, as in /services/roofing. Leave empty when entries have no page of their own.`,typeCreate:`Create content type`,typeCreated:e=>`${e} was created`,typeCreatedDescription:`Add its fields next.`,typeNotCreated:`The content type was not created`,settings:`Settings`,settingsTitle:e=>`Settings for ${e}`,settingsSave:`Save settings`,settingsSaved:`Settings saved`,settingsNotSaved:`The settings were not saved`,keyIs:e=>`Key: ${e}`,viewEntries:`View entries`,notFoundTitle:`This content type does not exist`,notFoundDescription:`Check the address, or choose a content type from the list.`,backToTypes:`All content types`,backTo:e=>`Back to ${e}`,insideOf:(e,t)=>`The fields each ${e} of ${t} is made of.`,fieldsInside:e=>`Fields inside ${e}`,holdsFields:e=>e===1?`Holds 1 field`:`Holds ${e} fields`,sections:`Sections`,sectionsTitle:`Sections`,sectionsDescription:`The headings the editor groups this type's fields under. Removing a section removes no field: its fields move after the others.`,sectionsEmpty:`No sections. Every field is shown in one list.`,sectionAdd:`Add section`,sectionName:e=>`Name of section ${e}`,sectionAside:e=>`Show section ${e} beside the content`,sectionAsideLabel:`Beside the content`,sectionRemove:e=>`Remove section ${e}`,sectionMoveUp:e=>`Move section ${e} up`,sectionMoveDown:e=>`Move section ${e} down`,sectionsSave:`Save sections`,sectionsSaved:`Sections saved`,sectionsNotSaved:`The sections were not saved`,sectionNameNeeded:`Give every section a name.`,titleField:`Entries are called by`,titleFieldHelp:`The field whose value names an entry in lists.`,titleAutomatic:`The first text field`,listImage:`Picture in lists`,listImageHelp:`An image field shown before each entry's name.`,listImageNone:`No picture`,listColumns:`Columns in lists`,listColumnsHelp:`Fields that get a column each in the list of entries.`,crm:`Deals`,forDeals:`Deals can be about these`,forDealsHelp:`A deal can then name one of these entries as what it is about, and each entry lists the deals about it.`,fields:`Fields`,fieldsOf:e=>`Fields in ${e}`,otherFields:`Other fields`,otherFieldsDescription:`Shown after the sections.`,noFieldsTitle:`No fields yet`,noFieldsDescription:`Fields are what someone fills in for each entry: a title, a photo, a date.`,noFieldsHere:`No fields here yet.`,addField:`Add field`,columnField:`Field`,columnKind:`Kind`,columnRules:`Rules`,columnActions:`Actions`,required:`Required`,sameInEveryLanguage:`Same in every language`,moveUp:e=>`Move ${e} up`,moveDown:e=>`Move ${e} down`,edit:e=>`Edit ${e}`,remove:e=>`Remove ${e}`,notMoved:`The field was not moved`,addFieldTitle:`Add a field`,editFieldTitle:e=>`Edit ${e}`,kind:`Kind of field`,kindIs:e=>`Kind: ${e}. A field keeps its kind, so its content stays readable.`,fieldName:`Name`,fieldNameHelp:`What the editor calls this field.`,fieldKey:`Key`,fieldKeyHelp:`What the site's code calls it.`,fieldKeyHelpEdit:`What the site's code calls it. Pages that read this field need the new key if you change it. The content stays.`,fieldHelp:`Help text`,fieldHelpHelp:`A sentence under the field on what to put in it. Optional.`,fieldRequired:`Must be filled in before publishing`,fieldTranslated:`Each language has its own value`,section:`Section`,sectionHelp:`Where the editor shows this field.`,noSection:`After the sections`,fieldAdd:`Add field`,fieldSave:`Save field`,fieldAdded:e=>`${e} was added`,fieldNotAdded:`The field was not added`,fieldSaved:e=>`${e} was saved`,fieldNotSaved:`The field was not saved`,nameNeeded:`Give the field a name.`,typeNameNeeded:`Give the content type a name.`,keyNeeded:`Give it a key: lowercase letters and numbers, starting with a letter.`,settingsElsewhere:`This kind of field has settings that cannot be changed here yet. They are kept as they are.`,removeTitle:e=>`Remove ${e}?`,removeDescription:`The field disappears from the editor and the site. Its content is kept, so you can restore the field later.`,removeConfirm:`Remove field`,removed:e=>`${e} was removed`,notRemoved:`The field was not removed`,removedFields:`Removed fields`,removedFieldsDescription:`Their content is kept. Restore one to bring it back as it was.`,restore:`Restore`,restoreField:e=>`Restore ${e}`,restored:e=>`${e} was restored`,notRestored:`The field was not restored`,kinds:{text:{name:`Text`,description:`A line or a few paragraphs of plain words.`},richtext:{name:`Formatted text`,description:`Text with headings, lists, bold and links.`},number:{name:`Number`,description:`A price, a count, a measurement.`},boolean:{name:`Yes or no`,description:`A switch that is on or off.`},date:{name:`Date`,description:`A day on the calendar.`},url:{name:`Web address`,description:`A link to a page anywhere.`},email:{name:`Email address`,description:`An address to write to, such as an agent's.`},phone:{name:`Phone number`,description:`A number to call, as you would write it.`},select:{name:`Choice`,description:`One option from a list you write.`},image:{name:`Image`,description:`One of the site's images, or a new upload.`},reference:{name:`Link to an entry`,description:`An entry of another content type, such as a listing's agent.`},link:{name:`Link`,description:`A page of this site, or an address anywhere. For menus and buttons.`},form:{name:`Form`,description:`One of the site's forms, for a section that shows it.`},list:{name:`List`,description:`Several of the same thing, in order: photos, features.`},group:{name:`Group`,description:`Several fields kept together, such as an address.`},blocks:{name:`Sections`,description:`The sections of a page, in order, each one a block the site's template provides.`}},textMultiline:`Several lines`,textMaxLength:`Longest text allowed`,textMaxLengthHelp:`In characters. Leave empty for no limit.`,numberMin:`Smallest number allowed`,numberMax:`Largest number allowed`,numberInteger:`Whole numbers only`,choices:`Options`,choicesHelp:`One per line. Entries store the option exactly as written here.`,choicesNeeded:`Write at least one option.`,referenceTo:`Links to entries of`,referenceNeeded:`Choose which content type it links to.`,listOf:`Each item is`,listOfHelp:`What the list holds. It cannot be changed once the field exists.`,listOfNeeded:`Choose what each item is.`},home:{greeting:{morning:e=>`Good morning, ${e}`,afternoon:e=>`Good afternoon, ${e}`,evening:e=>`Good evening, ${e}`},description:e=>`Here is where ${e} stands.`,published:`Published`,publishedDetail:`On the site now`,drafts:`Drafts`,draftsDetail:`Not on the site yet`,changed:`Unpublished changes`,changedDetail:`Saved, waiting to be published`,addTitle:`Add new`,recentTitle:`Recent changes`,recentEmpty:`Nothing has been written yet`,recentEmptyDescription:`Entries appear here as soon as someone saves one.`,columnType:`Type`,followUpsTitle:`Follow-ups`,followUpsHelp:`Contacts you look after that are due today or overdue.`,followUpsMore:e=>e===1?`1 more in Contacts`:`${e} more in Contacts`,allContacts:`All contacts`},status:{draft:`Draft`,scheduled:`Scheduled`,published:`Published`,unpublishedChanges:`Unpublished changes`}},D1=(0,x.createContext)({messages:E1,locale:`en`});function O1({messages:e=E1,locale:t=`en`,children:n}){return(0,S.jsx)(D1,{value:{messages:e,locale:t},children:n})}function Q(){return(0,x.useContext)(D1).messages}function k1(){return(0,x.useContext)(D1).locale}function A1(){return new d_(`field control`)}var j1=(0,x.createContext)(null);function M1({controls:e,children:t}){return(0,S.jsx)(j1,{value:e,children:t})}function N1(){let e=(0,x.useContext)(j1);if(!e)throw Error(`useFieldControls() was called outside <AdminApp>. Render the screen inside it.`);return e}function P1(e){let[t,n]=(0,x.useState)(!0);return{close:()=>n(!1),dialog:{isOpen:t,onOpenChange:n,onClosed:e}}}function F1(e){let[t,n]=(0,x.useState)(e);return e!==null&&e!==t&&n(e),e??t}var I1={"align-left":bx,"badge-check":vv,blocks:bv,"building-2":Sv,"calendar-days":Ev,"chart-no-axes-column":Ov,"circle-help":Wv,"columns-2":Kv,contact:Jv,"gallery-horizontal":fy,hash:vy,heading:By,house:by,image:wy,images:Ey,"layout-grid":Py,"layout-list":Iy,"layout-template":Ry,list:Xy,"list-checks":Hy,mail:ib,"map-pin":ob,megaphone:ub,"message-circle":fb,"message-square-quote":mb,newspaper:vb,"panel-top":Eb,phone:Pb,play:Ib,quote:Wb,"rows-3":Xb,sparkles:fx,star:mx,table:gx,tag:vx,text:bx,type:wx,users:Px};function L1(e){return(e===void 0?void 0:I1[e])??bv}function R1({field:e,value:t,onChange:n,path:r,problems:i,isLabelHidden:a=!1}){let o=Q(),s=k1(),c=N1(),l=Qo(),u=Z(e.label,s),d=l.data?.find(t=>t.type===e.type)?.editor;if(d===void 0||!c.has(d))return(0,S.jsx)(qY,{legend:u,description:o.editor.unsupportedField});let{Component:f}=c.get(d),p=e.help?Z(e.help,s):void 0;return(0,S.jsx)(f,{field:e,label:u,help:p,isLabelHidden:a,value:t,onChange:n,path:r,problem:i.get(r),problems:i})}function z1({fields:e,values:t,onChange:n,pathOf:r,problems:i,perRow:a=3,spotlight:o}){let s=N1(),c=Qo(),l=e=>{let t=c.data?.find(t=>t.type===e.type)?.editor;return t!==void 0&&s.has(t)&&s.get(t).width===`compact`},u=[];for(let t of e){let e=u.at(-1),[n]=e??[];e&&n&&l(t)&&l(n)&&e.length<a?e.push(t):u.push([t])}let d=e=>(0,S.jsx)(R1,{field:e,value:t[e.id],onChange:t=>n(e,t),path:r(e),problems:i},e.id),f=e=>o===void 0?d(e):(0,S.jsx)(qX,{at:o.key===e.key?o.at:void 0,children:d(e)},e.id);return(0,S.jsx)(J,{gap:5,children:u.map(e=>{let[t]=e;return t?l(t)&&a>1?(0,S.jsx)($Y,{columns:a,gap:4,children:e.map(f)},t.id):f(t):null})})}function B1(){let e=N1(),t=Qo();return n=>{let r=t.data?.find(e=>e.type===n)?.editor;return r!==void 0&&e.has(r)?e.get(r):void 0}}function V1({field:e,value:t}){let n=B1()(e.type);return t==null||t===``?null:n?.Summary?(0,S.jsx)(n.Summary,{field:e,value:t}):typeof t!=`string`&&typeof t!=`number`?null:(0,S.jsx)(Y,{size:`sm`,children:String(t)})}var H1={},U1=(0,x.createContext)(null);function W1({children:e}){let[t,n]=(0,x.useState)(void 0),[r,i]=(0,x.useState)(void 0),[a,o]=(0,x.useState)(H1),s=(0,x.useRef)(new Set),c=(0,x.useMemo)(()=>({pressed:t,press:(e,t)=>n(n=>({id:e,...t!==void 0&&{field:t},at:(n?.at??0)+1})),opened:r,open:i,typable:a,setTypable:e=>o(t=>JSON.stringify(t)===JSON.stringify(e)?t:e),typed:(e,t,n)=>s.current.forEach(r=>r(e,t,n)),onTyped:e=>(s.current.add(e),()=>void s.current.delete(e))}),[t,r,a]);return(0,S.jsx)(U1,{value:c,children:e})}function G1(){return(0,x.useContext)(U1)}var K1=e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.block==`string`;function q1(e,t,n){for(let r of l_(e.fields)){let e=t.data[r.id];if(typeof e==`string`&&e.trim()!==``&&n(r))return e}}function J1({field:e,label:t,help:n,value:r,onChange:i,path:a,problem:o,problems:s}){let c=Q(),l=k1(),u=Array.isArray(e.options.blocks)?e.options.blocks:[],d=Array.isArray(r)?r.filter(K1):[],f=typeof e.options.max==`number`?e.options.max:void 0,[p,m]=(0,x.useState)([]),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)(null),[y,b]=(0,x.useState)(null),C=B1(),w=G1(),T=w?.pressed,E=e=>i(e.length===0?void 0:e),D=e=>{m(t=>t.includes(e)?t:[...t,e]),w?.open(e)};(0,x.useEffect)(()=>{if(!T)return;m(e=>e.includes(T.id)?e:[...e,T.id]);let[e]=T.field?.split(`.`)??[];b(e===void 0?null:{section:T.id,key:e,at:T.at})},[T]);let O=e=>{let t=Y1(u,e);return!t||t.retiredAt!==void 0?[]:l_(t.fields).flatMap(t=>(C(t.type)?.words?.(t,e.data[t.id],C)??[]).map(({place:n,put:r})=>({place:n===``?t.key:`${t.key}.${n}`,put:n=>S1(e.data,t.id,r(n))})))},k=Object.fromEntries(d.map(e=>[e.id,O(e).map(({place:e})=>e)])),A=JSON.stringify(k),j=w?.setTypable;(0,x.useEffect)(()=>j?.(JSON.parse(A)),[j,A]);let M=(0,x.useRef)({sections:d,wordsOf:O,change:E});(0,x.useEffect)(()=>{M.current={sections:d,wordsOf:O,change:E}});let ee=w?.onTyped;(0,x.useEffect)(()=>ee?.((e,t,n)=>{let r=M.current,i=r.sections.find(t=>t.id===e),a=i&&r.wordsOf(i).find(e=>e.place===t);if(!i||!a)return;let o=r.sections.map(t=>t.id===e?{...t,data:a.put(n)}:t);M.current={...r,sections:o},r.change(o)}),[ee]);let N=e=>{E(d.filter(t=>t.id!==e)),m(t=>t.filter(t=>t!==e))},P=e=>e?Z(e.label,l):c.editor.sectionUnknown,te=(e,t)=>{let n=d.findIndex(t=>t.id===e),r=d[n];if(r){if(t===`duplicate`){let e={...r,id:crypto.randomUUID(),data:structuredClone(r.data)};E([...d.slice(0,n+1),e,...d.slice(n+1)]),D(e.id)}else t===`hide`?E(d.map(t=>t.id===e?{...t,hidden:!0}:t)):t===`show`?E(d.map(t=>t.id===e?{id:t.id,block:t.block,data:t.data}:t)):t===`remove`&&(Object.keys(r.data).length===0?N(e):v(e))}},F=new Map;for(let e of u){if(e.retiredAt!==void 0)continue;let t=e.group??c.editor.sectionOtherGroup,n=F.get(t)??[];n.push({id:e.id,label:Z(e.label,l),icon:L1(e.icon),...e.description!==void 0&&{description:Z(e.description,l)}}),F.set(t,n)}let ne=[...F].map(([e,t])=>({id:e,label:e,options:t})),re=F1(_===null?null:d.find(e=>e.id===_)??null);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y$,{label:t,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o},emptyText:c.editor.sectionsEmpty,addLabel:c.editor.sectionAdd,onAdd:()=>g(!0),isFull:f!==void 0&&d.length>=f,openIds:p,revealId:T?.id,onOpenChange:(e,t)=>{b(null),t?D(e):m(t=>t.filter(t=>t!==e))},onMove:(e,t)=>{let n=[...d],[r]=n.splice(e,1);r&&n.splice(t,0,r),E(n)},onAction:te,moveUpLabel:e=>c.editor.sectionMoveUp(P(Y1(u,d[e-1])),e),moveDownLabel:e=>c.editor.sectionMoveDown(P(Y1(u,d[e-1])),e),moreLabel:e=>c.editor.sectionMore(P(Y1(u,d[e-1])),e),dragLabel:e=>c.editor.sectionDrag(P(Y1(u,d[e-1])),e),items:d.map((e,t)=>{let n=Y1(u,e),r=n===void 0||n.retiredAt!==void 0,i=n?l_(n.fields):[],o=`${a}.${t}.`,l=[...s.keys()].filter(e=>e.startsWith(o)).length,p=n?q1(n,e,e=>C(e.type)?.width!==`compact`):void 0,m=e.hidden===!0;return{id:e.id,title:P(n),icon:L1(n?.icon),...p!==void 0&&{summary:p},...r?{tag:c.editor.sectionRetired}:m&&{tag:c.editor.sectionHidden},...l>0&&{problem:c.editor.sectionProblems(l)},actions:[...r?[]:[{id:`duplicate`,label:c.editor.sectionDuplicate,icon:Xv,isDisabled:f!==void 0&&d.length>=f},m?{id:`show`,label:c.editor.sectionShow,icon:iy}:{id:`hide`,label:c.editor.sectionHide,icon:ny}],{id:`remove`,label:c.editor.sectionRemove,icon:Sx,tone:`danger`}],content:r?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:c.editor.sectionRetiredNote}):i.length===0?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:c.editor.sectionNoFields}):(0,S.jsx)(z1,{fields:i,values:e.data,onChange:(t,n)=>E(d.map(r=>r.id===e.id?{...r,data:S1(r.data,t.id,n)}:r)),pathOf:e=>`${o}${e.key}`,problems:s,spotlight:y?.section===e.id?y:{}})}})}),(0,S.jsx)(m$,{isOpen:h,onOpenChange:g,title:c.editor.sectionPickerTitle,closeLabel:c.editor.close,emptyText:c.editor.sectionPickerEmpty,groups:ne,onChoose:e=>{let t={id:crypto.randomUUID(),block:e,data:{}};E([...d,t]),D(t.id)}}),(0,S.jsx)(uQ,{isOpen:_!==null,onOpenChange:e=>{e||v(null)},title:c.editor.sectionRemoveTitle(P(Y1(u,re??void 0))),confirmLabel:c.editor.sectionRemoveConfirm,cancelLabel:c.editor.cancel,tone:`danger`,onConfirm:()=>{_!==null&&N(_),v(null)},children:c.editor.sectionRemoveDescription})]})}function Y1(e,t){return t?e.find(e=>e.id===t.block):void 0}var X1=200,Z1=`:address`,Q1=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function $1({type:e,chosen:t,onChange:n,problem:r}){let i=Q(),a=k1(),o=Xo({type:e.key,limit:X1}),s=w1(o.data?.items??[],a).map(({primary:t})=>({id:t.translationGroup,label:v1(e,t.data)??t.slug})).sort((e,t)=>e.label.localeCompare(t.label,a)),c=t!==void 0&&!s.some(e=>e.id===t),l=r??(o.isError?i.editor.linkNotLoaded:void 0);return(0,S.jsx)(PX,{label:i.editor.linkWhich(Z(e.label,a)),options:c?[{id:t,label:o.isSuccess?i.editor.linkGone:i.editor.linkLoading},...s]:s,placeholder:i.editor.choose,onChange:n,isRequired:!0,...t!==void 0&&{value:t},...l!==void 0&&{errorMessage:l}})}function e0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,path:o,problem:s,problems:c}){let l=Q(),u=k1(),d=Io(),f=Array.isArray(e.options.to)?e.options.to:void 0,p=(d.data??[]).filter(e=>o_(e)&&e.urlPattern!==void 0&&(f===void 0||f.includes(e.key))),m=Q1(i)?i:void 0,h=m?.kind===`address`?Z1:typeof m?.type==`string`?m.type:void 0,[g,_]=(0,x.useState)(h),v=h??g,y=p.find(e=>e.key===v),b=c.get(`${o}.href`)??c.get(`${o}.entry`)??c.get(`${o}.type`)??c.get(`${o}.kind`)??s,C=[...p.map(e=>({id:e.key,label:Z(e.label,u)})),{id:Z1,label:l.editor.linkAddressChoice}],w=v===void 0||C.some(e=>e.id===v);return(0,S.jsxs)($Y,{columns:2,gap:4,children:[(0,S.jsx)(PX,{label:t,isLabelHidden:r,options:w||v===void 0?C:[{id:v,label:d.isSuccess?l.editor.linkMissing(v):v},...C],placeholder:l.editor.choose,isRequired:e.required,onChange:e=>{e!==v&&(_(e),a(void 0))},...v!==void 0&&{value:v},...n!==void 0&&{description:n},...v===void 0&&b!==void 0&&{errorMessage:b}}),v===Z1&&(0,S.jsx)(CZ,{label:l.editor.linkAddress,description:l.editor.linkAddressHelp,value:typeof m?.href==`string`?m.href:``,onChange:e=>a(e.trim()===``?void 0:{kind:`address`,href:e.trim()}),isRequired:!0,...b!==void 0&&{errorMessage:b}}),y!==void 0&&(0,S.jsx)($1,{type:y,chosen:typeof m?.entry==`string`?m.entry:void 0,onChange:e=>a({kind:`entry`,type:y.key,entry:e}),problem:b})]})}var t0=`modulepreload`,n0=function(e,t){return new URL(e,t).href},r0={},i0=function(e){return e.pathname.endsWith(`.css`)},a0=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},o0=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=n0(t,n);let r=s(t),i=i0(r);return a0(r0,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:t0,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function s0(e,t){let n=e.options[t];return typeof n==`number`?n:void 0}function c0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s={label:t,isLabelHidden:r,...n!==void 0&&{description:n},value:typeof i==`string`?i:``,onChange:e=>a(e===``?void 0:e),isRequired:e.required,...o!==void 0&&{errorMessage:o}};return e.options.multiline===!0?(0,S.jsx)(EZ,{...s}):(0,S.jsx)(CZ,{...s})}var l0=e=>function({field:t,label:n,help:r,isLabelHidden:i=!1,value:a,onChange:o,problem:s}){return(0,S.jsx)(CZ,{type:e,label:n,isLabelHidden:i,value:typeof a==`string`?a:``,onChange:e=>o(e===``?void 0:e),isRequired:t.required,...r!==void 0&&{description:r},...s!==void 0&&{errorMessage:s}})},u0=l0(`url`),d0=l0(`email`),f0=l0(`tel`);function p0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=s0(e,`min`),c=s0(e,`max`);return(0,S.jsx)(vX,{label:t,isLabelHidden:r,value:typeof i==`number`?i:null,onChange:e=>a(e??void 0),width:`full`,isInteger:e.options.integer===!0,isRequired:e.required,...s!==void 0&&{minValue:s},...c!==void 0&&{maxValue:c},...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function m0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){return(0,S.jsx)(jY,{width:`full`,label:t,isLabelHidden:r,value:typeof i==`string`?i:null,onChange:e=>a(e??void 0),isRequired:e.required,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})}function h0({label:e,value:t,onChange:n}){return(0,S.jsx)(rZ,{label:e,isSelected:t===!0,onChange:n})}function g0({value:e}){let t=k1();return(0,S.jsx)(Y,{size:`sm`,children:typeof e==`number`?new Intl.NumberFormat(t).format(e):String(e)})}function _0(e,t,n){let r=(e.options.labels??{})[t];return r?Z(r,n):t}function v0({field:e,value:t}){let n=k1();return(0,S.jsx)(Y,{size:`sm`,children:_0(e,String(t),n)})}function y0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=k1(),l=Array.isArray(e.options.choices)?e.options.choices.filter(e=>typeof e==`string`):[];return(0,S.jsx)(PX,{label:t,isLabelHidden:r,...n!==void 0&&{description:n},options:l.map(t=>({id:t,label:_0(e,t,c)})),placeholder:s.editor.choose,onChange:a,isRequired:e.required,...typeof i==`string`&&{value:i},...o!==void 0&&{errorMessage:o}})}var b0=200;function x0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=k1(),l=typeof e.options.to==`string`?e.options.to:``,u=Io(),d=Xo({type:l,limit:b0}),f=u.data?.find(e=>e.key===l),p=f?w1(d.data?.items??[],c).map(({primary:e})=>({id:e.slug,label:v1(f,e.data)??e.slug})):[],m=p.filter((e,t)=>p.findIndex(t=>t.id===e.id)===t).sort((e,t)=>e.label.localeCompare(t.label,c)),h=typeof i==`string`?i:void 0,g=h!==void 0&&!m.some(e=>e.id===h),_=o??(d.isError?s.editor.linkNotLoaded:void 0);return(0,S.jsx)(PX,{label:t,isLabelHidden:r,options:g?[{id:h,label:d.isSuccess?s.editor.linkMissing(h):h},...m]:m,placeholder:s.editor.choose,onChange:a,isRequired:e.required,...h!==void 0&&{value:h},...n!==void 0&&{description:n},..._!==void 0&&{errorMessage:_}})}function S0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=k1(),l=vs(),u=(l.data??[]).map(e=>({id:e.id,label:e.open?Z(e.label,c):s.editor.formClosed(Z(e.label,c))})).sort((e,t)=>e.label.localeCompare(t.label,c)),d=typeof i==`string`?i:void 0,f=d!==void 0&&!u.some(e=>e.id===d),p=o??(l.isError?s.editor.linkNotLoaded:void 0),m=(l.isSuccess&&u.length===0?s.editor.noForms:void 0)??n;return(0,S.jsx)(PX,{label:t,isLabelHidden:r,options:f?[{id:d,label:l.isSuccess?s.editor.formMissing:s.editor.formLoading},...u]:u,placeholder:s.editor.choose,onChange:a,isRequired:e.required,...d!==void 0&&{value:d},...m!==void 0&&{description:m},...p!==void 0&&{errorMessage:p}})}var C0=e=>String(Math.round(e/1e5)/10);function w0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=$o(),l=es().data??null,u=ns(),[d,f]=(0,x.useState)(!1),p=async e=>{f(!1),u.reset();let t=await h1(e,l?.maxBytes??0).catch(()=>null);if(!t)throw f(!0),Error(s.editor.imageNotRead);a((await u.mutateAsync(t)).name),X({title:s.editor.imageUploaded,description:s.editor.imageUploadedDescription,tone:`success`})},m=d?s.editor.imageNotRead:u.error?.message,h=typeof i==`string`&&i!==``?i:null,g=h!==null&&c.isSuccess&&!c.data.some(e=>e.name===h),_=o??(c.isError?s.editor.imagesNotLoaded:g?s.editor.imageMissing:void 0);return(0,S.jsx)(YQ,{label:t,isLabelHidden:r,value:h,images:(c.data??[]).map(e=>({...e,url:g1(e)})),onChange:a,isRequired:e.required,chooseLabel:s.editor.imageChoose,changeLabel:s.editor.imageChange,noneText:s.editor.imageNone,dialogTitle:s.editor.imageChoose,closeLabel:s.editor.close,emptyText:c.isPending?s.editor.imagesLoading:s.editor.imagesEmpty,...l&&{onUpload:p,uploadLabel:s.editor.imageUpload,uploadHint:s.editor.imageUploadHint(C0(l.maxBytes))},...m!==void 0&&{uploadError:m},...n!==void 0&&{description:n},..._!==void 0&&{errorMessage:_}})}var T0=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`),E0=(0,x.lazy)(async()=>({default:(await o0(async()=>{let{RichTextEditor:e}=await import(`./RichTextEditor-3V2J98jv.js`);return{RichTextEditor:e}},[],import.meta.url)).RichTextEditor}));function D0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,problem:o}){let s=Q(),c=T0(i)?y_(i):typeof i==`object`&&i?i:null;return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(zX,{label:s.app.loading,children:(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(RX,{width:`sm`}),(0,S.jsx)(RX,{shape:`block`})]})}),children:(0,S.jsx)(E0,{label:t,isLabelHidden:r,value:c,onChange:e=>a(e??void 0),isRequired:e.required,words:s.editor.richText,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o}})})}function O0({field:e,label:t,help:n,isLabelHidden:r=!1,value:i,onChange:a,path:o,problem:s,problems:c}){let l=Array.isArray(e.options.fields)?l_(e.options.fields):[],u=typeof i==`object`&&i?i:{};return(0,S.jsxs)(qY,{legend:t,isLegendHidden:r,...n!==void 0&&{description:n},children:[s!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`danger`,children:s}),(0,S.jsx)(z1,{fields:l,values:u,onChange:(e,t)=>{let n=S1(u,e.id,t);a(Object.keys(n).length===0?void 0:n)},pathOf:e=>`${o}.${e.key}`,problems:c})]})}var k0=e=>e!=null,A0=(e,t)=>t===``?e:`${e}.${t}`,j0=(e,t)=>t==null||typeof t==`string`?[{place:``,put:e=>e===``?void 0:e}]:[];function M0(e,t,n){let r=Array.isArray(e.options.fields)?l_(e.options.fields):[],i=typeof t==`object`&&t?t:{};return r.flatMap(e=>(n(e.type)?.words?.(e,i[e.id],n)??[]).map(({place:t,put:n})=>({place:A0(e.key,t),put:t=>{let r=S1(i,e.id,n(t));return Object.keys(r).length===0?void 0:r}})))}function N0(e,t,n){let r=Array.isArray(t)?t:[],i=e.options.of??{type:`text`},a=n(i.type)?.words;return a?r.flatMap((t,o)=>a({...e,id:`${e.id}.${o}`,key:String(o),type:i.type,required:!1,options:i.options??{}},t,n).map(({place:e,put:t})=>({place:A0(String(o),e),put:e=>r.map((n,r)=>r===o?t(e)??(typeof n==`string`?``:{}):n)}))):[]}var P0=(e,t)=>({id:`stored-${t}`,value:e});function F0(e,t){let n=Array.isArray(e.options.fields)?l_(e.options.fields):[],r=typeof t==`object`&&t?t:{};for(let e of n){let t=r[e.id];if(typeof t==`string`&&t.trim()!==``)return t}}function I0({field:e,label:t,help:n,value:r,onChange:i,path:a,problem:o,problems:s}){let c=Q(),l=Array.isArray(r)?r:[],[u,d]=(0,x.useState)(()=>l.map(P0)),f=C1(u.map(e=>e.value).filter(k0),l)?u:l.map(P0),[p,m]=(0,x.useState)([]),h=e.options.of??{type:`text`},g=typeof e.options.max==`number`?e.options.max:void 0,_=e=>{d(e);let t=e.map(e=>e.value).filter(k0);i(t.length===0?void 0:t)},v=B1()(h.type)?.titleOf,y=n=>({id:`${e.id}.${n}`,key:String(n),type:h.type,label:{[L0]:c.editor.listItem(t,n+1)},translated:e.translated,required:!1,options:h.options??{}}),b=(e,t)=>{let n=[...f],[r]=n.splice(e,1);r&&n.splice(t,0,r),_(n)},C=(e,t)=>(0,S.jsx)(R1,{field:y(t),value:e.value,onChange:t=>_(f.map(n=>n.id===e.id?{...n,value:t}:n)),path:`${a}.${t}`,problems:s,isLabelHidden:!0}),w={label:t,...n!==void 0&&{description:n},...o!==void 0&&{errorMessage:o},emptyText:c.editor.listEmpty,addLabel:c.editor.listAdd,isFull:g!==void 0&&f.length>=g,onMove:b,moveUpLabel:e=>c.editor.listMoveUp(t,e),moveDownLabel:e=>c.editor.listMoveDown(t,e)},T=()=>{let e={id:crypto.randomUUID(),value:void 0};_([...f,e]),m(t=>[...t,e.id])};return v?(0,S.jsx)(Y$,{...w,onAdd:T,openIds:p,onOpenChange:(e,t)=>m(n=>t?[...n,e]:n.filter(t=>t!==e)),moreLabel:e=>c.editor.listMore(t,e),dragLabel:e=>c.editor.listDrag(t,e),onAction:(e,t)=>{let n=f.findIndex(t=>t.id===e),r=f[n];r&&(t===`remove`?_(f.filter(t=>t.id!==e)):t===`duplicate`&&_([...f.slice(0,n+1),{id:crypto.randomUUID(),value:structuredClone(r.value)},...f.slice(n+1)]))},items:f.map((e,n)=>{let r=`${a}.${n}`,i=[...s.keys()].filter(e=>e===r||e.startsWith(`${r}.`)).length;return{id:e.id,title:v(y(n),e.value)??c.editor.listItem(t,n+1),...i>0&&{problem:c.editor.listProblems(i)},actions:[{id:`duplicate`,label:c.editor.listDuplicate,icon:Xv,isDisabled:w.isFull},{id:`remove`,label:c.editor.listRemoveRow,icon:Sx,tone:`danger`}],content:C(e,n)}})}):(0,S.jsx)(EQ,{...w,onAdd:T,removeLabel:e=>c.editor.listRemove(t,e),onRemove:e=>_(f.filter((t,n)=>n!==e)),items:f.map((e,t)=>({id:e.id,content:C(e,t)}))})}var L0=`en`;function R0(){return A1().register({type:`text-input`,Component:c0,words:j0}).register({type:`url-input`,Component:u0}).register({type:`email-input`,Component:d0}).register({type:`phone-input`,Component:f0}).register({type:`number-input`,Component:p0,width:`compact`,Summary:g0,summaryAlign:`end`}).register({type:`date-picker`,Component:m0,width:`compact`}).register({type:`switch`,Component:h0}).register({type:`select`,Component:y0,width:`compact`,Summary:v0}).register({type:`reference`,Component:x0,width:`compact`}).register({type:`form-picker`,Component:S0,width:`compact`}).register({type:`link`,Component:e0}).register({type:`image`,Component:w0}).register({type:`rich-text`,Component:D0}).register({type:`group`,Component:O0,titleOf:F0,words:M0}).register({type:`list`,Component:I0,words:N0}).register({type:`blocks`,Component:J1,showsPage:!0})}var z0=[`general`,`email`,`storage`,`forms`],$={home:`/`,signIn:`/sign-in`,people:`/people`,media:`/media`,trash:`/trash`,forms:`/forms`,form:e=>`/forms/${encodeURIComponent(e)}`,contacts:`/contacts`,contact:e=>`/contacts/${encodeURIComponent(e)}`,deals:`/deals`,plugins:`/plugins`,pluginScreen:(e,t)=>`/plugins/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,settings:(e=z0[0])=>`/settings/${e}`,settingsPage:e=>`/settings/page/${encodeURIComponent(e)}`,types:`/types`,type:(e,t=[])=>`/types/${encodeURIComponent(e)}${t.length>0?`?${new URLSearchParams(t.map(e=>[`in`,e]))}`:``}`,contentList:e=>`/content/${encodeURIComponent(e)}`,entry:(e,t)=>`/content/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,newEntry:e=>`/content/${encodeURIComponent(e)}/new`},B0={Box:q_,Button:q,Card:mY,Checkbox:_Y,ConfirmDialog:uQ,DateField:jY,Dialog:UY,EmptyState:pQ,Fieldset:qY,Form:ZY,Grid:$Y,Heading:rX,Inline:aX,Link:sX,NumberField:vX,PageHeader:hQ,SearchField:CX,Segmented:EX,Select:PX,Skeleton:RX,SkeletonGroup:zX,Spinner:WX,Split:$Q,Stack:J,Stat:QX,Switch:rZ,Table:fZ,Tabs:_Z,Tag:yZ,Text:Y,TextArea:EZ,TextField:CZ,Tooltip:NY,toast:X};function V0(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;return e=>import(new URL(`${t}/plugins/${encodeURIComponent(e)}.js`,location.origin).href)}var H0=/^[a-z][a-z0-9-]{0,39}$/,U0=e=>e instanceof Error?e.message:String(e),W0=class{#e={screens:[],panels:[],problems:new Map,settled:new Set};#t=new Set;#n=new Set;subscribe=e=>(this.#n.add(e),()=>void this.#n.delete(e));snapshot=()=>this.#e;#r(e){this.#e={...this.#e,...e};for(let e of this.#n)e()}follow(e,t){let n=new Set(e),r=[...this.#t].filter(e=>!n.has(e));if(r.length>0){for(let e of r)this.#t.delete(e);this.#r({screens:this.#e.screens.filter(e=>n.has(e.plugin)),panels:this.#e.panels.filter(e=>n.has(e.plugin)),problems:new Map([...this.#e.problems].filter(([e])=>n.has(e))),settled:new Set([...this.#e.settled].filter(e=>n.has(e)))})}for(let n of e)this.#t.has(n)||(this.#t.add(n),this.#i(n,t))}async#i(e,{loader:t,client:n,controls:r}){let i=[],a=[],o=(e,t)=>{if(typeof t!=`string`||!H0.test(t))throw Error(`A ${e} needs an id of lower-case letters, digits and dashes, and "${String(t)}" is not one.`)},s={name:e,React:x,ui:B0,client:{get:(t,r)=>n.callPlugin(e,`GET`,t,r?{query:r}:{}),post:(t,r)=>n.callPlugin(e,`POST`,t,{body:r}),put:(t,r)=>n.callPlugin(e,`PUT`,t,{body:r}),delete:(t,r)=>n.callPlugin(e,`DELETE`,t,{body:r})},links:{entry:(e,t)=>$.entry(e,t)},register:{control:e=>void(r.has(e.type)||r.register(e)),screen:t=>{o(`screen`,t.id),i.push({...t,plugin:e})},entryPanel:t=>{o(`panel`,t.id),a.push({...t,plugin:e})}}},c=null;try{let n=await t(e);if(typeof n.default!=`function`)throw Error(`Its editor file has no default export to run.`);n.default(s)}catch(e){c=U0(e)}this.#t.has(e)&&this.#r({...c===null&&{screens:[...this.#e.screens,...i],panels:[...this.#e.panels,...a]},...c!==null&&{problems:new Map([...this.#e.problems,[e,c]])},settled:new Set([...this.#e.settled,e])})}},G0=(0,x.createContext)(null);function K0({extensions:e,loader:t,children:n}){return(0,S.jsx)(G0,{value:{extensions:e,loader:t},children:n})}function q0(){let e=(0,x.useContext)(G0);if(!e)throw Error(`Plugin extensions were asked for outside <AdminApp>. Render the screen inside it.`);return e}function J0(){let{extensions:e}=q0();return(0,x.useSyncExternalStore)(e.subscribe,e.snapshot,e.snapshot)}function Y0(e){let{extensions:t,loader:n}=q0(),r=R(),i=N1(),a=Dc(e),{settled:o}=J0(),s=a.data?.map(e=>e.name),c=s?.join(`,`);return(0,x.useEffect)(()=>{c!==void 0&&t.follow(c===``?[]:c.split(`,`),{loader:n,client:r,controls:i})},[c,t,n,r,i]),!e||a.isError?!0:s!==void 0&&s.every(e=>o.has(e))}var X0=[0,1,2,3,4];function Z0(){return(0,S.jsx)(mY,{children:(0,S.jsx)(J,{gap:5,children:X0.map(e=>(0,S.jsxs)(aX,{gap:6,children:[(0,S.jsx)(q_,{grow:!0,children:(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(RX,{width:e%2==0?`1/3`:`1/4`}),(0,S.jsx)(RX,{width:`xs`})]})}),(0,S.jsx)(RX,{width:`sm`}),(0,S.jsx)(RX,{width:`sm`})]},e))})})}function Q0(){return(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(RX,{shape:`title`,width:`1/4`}),(0,S.jsx)(RX,{width:`1/3`})]})}var $0={table:()=>(0,S.jsx)(Z0,{}),page:()=>(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(Q0,{}),(0,S.jsx)(Z0,{})]})}),summary:()=>(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)($Y,{columns:3,gap:4,children:[0,1,2].map(e=>(0,S.jsx)(mY,{children:(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(RX,{width:`1/2`}),(0,S.jsx)(RX,{shape:`title`,width:`1/4`}),(0,S.jsx)(RX,{width:`3/4`})]})},e))}),(0,S.jsx)(Z0,{})]}),form:()=>(0,S.jsx)(q_,{paddingX:12,paddingY:8,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(Q0,{}),(0,S.jsx)(mY,{children:(0,S.jsxs)(J,{gap:5,children:[[0,1,2].map(e=>(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(RX,{width:`sm`}),(0,S.jsx)(RX,{shape:`control`})]},e)),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(RX,{width:`sm`}),(0,S.jsx)(RX,{shape:`block`})]})]})})]})})};function e2({label:e,shape:t=`page`}){let n=Q(),r=e??n.app.loading;return t===`spinner`?(0,S.jsx)(q_,{padding:8,children:(0,S.jsx)(WX,{label:r,showLabel:!0})}):(0,S.jsx)(zX,{label:r,children:$0[t]()})}function t2({error:e,onRetry:t}){let n=Q();return(0,S.jsx)(pQ,{icon:Hv,title:n.app.somethingWentWrong,description:e.message,action:(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:n.app.tryAgain})})}function n2(){let e=Zi();return(0,x.useCallback)((t,n)=>void e(t,{viewTransition:!0,...n}),[e])}function r2(){let e=Q().contacts.stages;return t=>t===void 0?``:t.label??e[t.id]??t.id}var i2={open:`neutral`,won:`success`,lost:`danger`};function a2(){let e=new Date,t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function o2(){let e=Q(),t=k1(),n=a2();return r=>r<n?{text:e.contacts.due.overdue,tone:`danger`}:r===n?{text:e.contacts.due.today,tone:`warning`}:{text:s2(r,t),tone:`neutral`}}function s2(e,t){let n=new Date(`${e}T00:00:00`);return Number.isNaN(n.getTime())?e:new Intl.DateTimeFormat(t,{day:`numeric`,month:`short`,year:`numeric`}).format(n)}function c2(e){let t=Q();return n=>n===void 0?``:e?.find(e=>e.id===n)?.name??(e===void 0?``:t.contacts.someoneWhoLeft)}function l2(e){let t=k1();return n=>{try{return new Intl.NumberFormat(t,{style:`currency`,currency:e??`USD`,maximumFractionDigits:0}).format(n)}catch{return`${new Intl.NumberFormat(t).format(n)} ${e??``}`.trim()}}}var u2=new Map;function d2(e,t){let n=ic(),[r,i]=(0,x.useState)({}),[a,o]=(0,x.useState)(u2);return{fields:l_(n.data?.[e]??[]),values:{...t,...r},problems:a,change:(e,t)=>i(n=>({...n,[e]:t})),toSend:()=>Object.keys(r).length===0?{}:{data:Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t??null]))},refused:e=>{let t=e instanceof No?e.issues.filter(e=>e.path[0]===`data`):[];o(new Map(t.map(e=>[e.path.slice(1).join(`.`),e.message])))}}}function f2({custom:e}){return(0,S.jsx)(S.Fragment,{children:e.fields.map(t=>(0,S.jsx)(R1,{field:t,value:e.values[t.id],onChange:n=>e.change(t.id,n),path:t.key,problems:e.problems},t.id))})}function p2(e,t,n){let r=URL.createObjectURL(new Blob([t],{type:n})),i=document.createElement(`a`);i.href=r,i.download=e,i.click(),URL.revokeObjectURL(r)}var m2=[[`year`,31536e6],[`month`,2592e6],[`day`,864e5],[`hour`,36e5],[`minute`,6e4]];function h2(e,t,n=new Date){let r=new Intl.RelativeTimeFormat(t,{numeric:`auto`}),i=new Date(e).getTime()-n.getTime();for(let[e,t]of m2)if(Math.abs(i)>=t)return r.format(Math.round(i/t),e);return r.format(0,`second`)}function g2(e){let t=Q(),n=k1();return r=>{if(!r.source)return t.contacts.addedByHand;let i=e?.find(e=>e.id===r.source?.formId);if(!i)return e===void 0?``:t.contacts.aFormNowGone;let a=Z(i.label,n);return r.source.page===void 0?t.contacts.fromForm(a):t.contacts.fromFormOn(a,r.source.page)}}function _2(e,t){return e==null?``:e===!0?t:typeof e==`string`?e:typeof e==`number`?String(e):JSON.stringify(e)}var v2=200,y2=`:nothing`;function b2(){let e=k1(),t=Io(),n=(t.data??[]).filter(e=>o_(e)&&e.forDeals===!0),r=Zo(n.map(e=>({type:e.key,limit:v2}))),i=new Map;return n.forEach((t,n)=>{i.set(t.id,w1(r[n]?.data?.items??[],e).map(({primary:e})=>({id:e.translationGroup,label:v1(t,e.data)??e.slug})).sort((t,n)=>t.label.localeCompare(n.label,e)))}),{types:n,entriesOf:e=>i.get(e)??[],nameOf:e=>e===void 0?void 0:i.get(e.typeId)?.find(t=>t.id===e.entry)?.label,isLoaded:t.isSuccess&&r.every(e=>e.isSuccess)}}function x2({subjects:e,about:t,onChange:n,problem:r}){let i=Q(),a=k1(),[o,s]=(0,x.useState)(t?.typeId??y2),c=t?.typeId??o;if(e.types.length===0&&t===void 0)return null;let l=[{id:y2,label:i.deals.aboutNothing},...e.types.map(e=>({id:e.id,label:Z(e.label,a)}))],u=e.types.find(e=>e.id===c),d=c===y2?[]:e.entriesOf(c),f=l.some(e=>e.id===c),p=t===void 0||d.some(e=>e.id===t.entry),m=e.isLoaded?i.deals.aboutGone:i.deals.aboutLoading;return(0,S.jsxs)($Y,{columns:2,gap:3,children:[(0,S.jsx)(PX,{label:i.deals.about,options:f?l:[...l,{id:c,label:m}],value:c,onChange:e=>{e!==c&&(s(e),n(void 0))},...c===y2&&r!==void 0&&{errorMessage:r}}),c!==y2&&(0,S.jsx)(PX,{label:u?i.deals.aboutWhich(Z(u.label,a)):i.deals.aboutWhichOne,options:p||t===void 0?d:[{id:t.entry,label:m},...d],placeholder:i.editor.choose,onChange:e=>n({typeId:c,entry:e},d.find(t=>t.id===e)?.label),...t!==void 0&&{value:t.entry},...r!==void 0&&{errorMessage:r}})]})}var S2=`nobody`,C2={},w2=e=>e instanceof Error?e.message:String(e);function T2({deal:e,contact:t,pipeline:n,team:r,onClose:i}){let{close:a,dialog:o}=P1(i),s=Q(),c=r2(),l=Hs(),u=Us(),d=Ws(),[f,p]=(0,x.useState)(e?.title??``),[m,h]=(0,x.useState)(e?.about),g=b2(),[_,v]=(0,x.useState)(e?.value??null),[y,b]=(0,x.useState)(e?.stage??n.stages[0]?.id??``),[C,w]=(0,x.useState)(e?e.ownerId??S2:t.ownerId??S2),[T,E]=(0,x.useState)(e?.closeOn??null),[D,O]=(0,x.useState)(C2),k=d2(`deal`,e?.data),A=n.currency??`USD`,j=e=>{e instanceof No&&O(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),k.refused(e),X({title:s.deals.notSaved,description:w2(e),tone:`danger`})},M=()=>{if(f.trim()===``)return O({title:s.deals.nameNeeded});O(C2);let n=_??0;e?u.mutate({id:e.id,changes:{title:f,about:m??null,value:n,stage:y,ownerId:C===S2?null:C,closeOn:T,...k.toSend(),expectedRevision:e.revision}},{onSuccess:e=>{X({title:s.deals.saved(e.title),tone:`success`}),a()},onError:j}):l.mutate({contactId:t.id,title:f,...m&&{about:m},value:n,stage:y,...C!==S2&&{ownerId:C},...T!==null&&{closeOn:T},...k.toSend()},{onSuccess:e=>{X({title:s.deals.created(e.title),tone:`success`}),a()},onError:j})},ee=e?s.deals.editTitle(e.title):s.deals.addTitle,N=[{id:S2,label:s.contacts.nobody},...r.map(e=>({id:e.id,label:e.name})),...C!==S2&&!r.some(e=>e.id===C)?[{id:C,label:s.contacts.someoneWhoLeft}]:[]];return(0,S.jsx)(UY,{...o,title:ee,closeLabel:s.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[e&&(0,S.jsx)(q,{variant:`ghost`,icon:Sx,isPending:d.isPending,onPress:()=>d.mutate(e.id,{onSuccess:()=>{X({title:s.deals.deleted(e.title),tone:`success`}),a()},onError:e=>X({title:s.deals.notDeleted,description:w2(e),tone:`danger`})}),children:s.deals.delete}),(0,S.jsx)(q,{variant:`secondary`,onPress:a,children:s.editor.cancel}),(0,S.jsx)(q,{isPending:l.isPending||u.isPending,onPress:M,children:e?s.deals.save:s.deals.create})]}),children:(0,S.jsxs)(ZY,{label:ee,gap:4,onSubmit:M,children:[(0,S.jsx)(CZ,{label:s.deals.name,placeholder:s.deals.namePlaceholder,value:f,onChange:p,isRequired:!0,autoFocus:!0,autoComplete:`off`,...D.title!==void 0&&{errorMessage:D.title}}),(0,S.jsx)(x2,{subjects:g,about:m,problem:D.about,onChange:(e,t)=>{h(e),t!==void 0&&f.trim()===``&&p(t)}}),(0,S.jsxs)($Y,{columns:2,gap:3,children:[(0,S.jsx)(vX,{label:s.deals.value(A),value:_,onChange:v,minValue:0,isInteger:!0,...D.value!==void 0&&{errorMessage:D.value}}),(0,S.jsx)(PX,{label:s.deals.stage,options:n.stages.map(e=>({id:e.id,label:c(e)})),value:y,onChange:b,...D.stage!==void 0&&{errorMessage:D.stage}}),(0,S.jsx)(PX,{label:s.deals.owner,options:N,value:C,onChange:w,...D.ownerId!==void 0&&{errorMessage:D.ownerId}}),(0,S.jsx)(jY,{label:s.deals.closeOn,value:T,onChange:E,...D.closeOn!==void 0&&{errorMessage:D.closeOn}})]}),(0,S.jsx)(f2,{custom:k})]})})}function E2({contact:e}){let t=Q(),n=k1(),r=Rs({contactId:e.id,limit:200}),i=nc(),a=oc(),o=r2(),s=l2(i.data?.currency),[c,l]=(0,x.useState)(null),u=[{id:`title`,label:t.deals.columnTitle},{id:`stage`,label:t.deals.columnStage},{id:`close`,label:t.deals.columnClose},{id:`value`,label:t.deals.columnValue,align:`end`}],d=(r.data?.items??[]).map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage);return{id:e.id,cells:{title:(0,S.jsx)(Y,{weight:`semibold`,children:e.title}),stage:t?(0,S.jsx)(yZ,{tone:i2[t.kind],children:o(t)}):``,close:(0,S.jsx)(Y,{tone:`secondary`,children:e.closeOn===void 0?``:s2(e.closeOn,n)}),value:(0,S.jsx)(Y,{weight:`semibold`,children:s(e.value)})}}});return(0,S.jsxs)(mY,{title:t.deals.cardTitle,children:[(0,S.jsxs)(J,{gap:4,children:[r.isPending&&(0,S.jsx)(e2,{shape:`table`}),r.isError&&(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:t.deals.cardEmpty}),r.isSuccess&&d.length>0&&(0,S.jsx)(fZ,{label:t.deals.cardTitle,columns:u,rows:d,onRowAction:e=>l(r.data.items.find(t=>t.id===e)??null)}),(0,S.jsx)(aX,{children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Bb,isDisabled:!i.isSuccess,onPress:()=>l(`new`),children:t.deals.add})})]}),c!==null&&i.data&&(0,S.jsx)(T2,{...c!==`new`&&{deal:c},contact:e,pipeline:i.data,team:a.data??[],onClose:()=>l(null)})]})}var D2=`nobody`,O2=`2000-01-01`,k2=e=>e instanceof Error?e.message:String(e);function A2({contact:e}){let t=Q(),n=k1(),r=nc(),i=oc(),a=pc(),o=r2(),[s,c]=(0,x.useState)(e.followUpAt??null),l=(n,r)=>a.mutate({id:e.id,changes:{...n,expectedRevision:e.revision}},{onSuccess:()=>X({title:r,tone:`success`}),onError:e=>X({title:t.contacts.notChanged,description:k2(e),tone:`danger`})}),u=r.data?.stages??[],d=i.data??[],f=[{id:D2,label:t.contacts.nobody},...d.map(e=>({id:e.id,label:e.name})),...e.ownerId!==void 0&&i.isSuccess&&!d.some(t=>t.id===e.ownerId)?[{id:e.ownerId,label:t.contacts.someoneWhoLeft}]:[]];return(0,S.jsx)(mY,{title:t.contacts.work,children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(PX,{label:t.contacts.stage,options:u.map(e=>({id:e.id,label:o(e)})),value:e.stage,isDisabled:a.isPending||!r.isSuccess,onChange:n=>n!==e.stage&&l({stage:n},t.contacts.stageSaved(o(u.find(e=>e.id===n))))}),(0,S.jsx)(PX,{label:t.contacts.owner,options:f,value:e.ownerId??D2,isDisabled:a.isPending||!i.isSuccess,onChange:n=>{n!==(e.ownerId??D2)&&(n===D2?l({ownerId:null},t.contacts.ownerCleared):l({ownerId:n},t.contacts.ownerSaved(d.find(e=>e.id===n)?.name??``)))}}),(0,S.jsx)(jY,{label:t.contacts.followUp,description:t.contacts.followUpHelp,value:s,isDisabled:a.isPending,onChange:r=>{c(r),r!==(e.followUpAt??null)&&(r===null?l({followUpAt:null},t.contacts.followUpCleared):r>=O2&&l({followUpAt:r},t.contacts.followUpSaved(s2(r,n))))}})]})})}var j2={},M2={},N2=e=>e instanceof Error?e.message:String(e);function P2(){let{contactId:e=``}=ta(),t=Q(),n=Fo();return n.data===null||n.data===void 0||n.data.role===`author`?(0,S.jsx)(pQ,{icon:Jv,title:t.contacts.title,description:t.contacts.noAccess}):(0,S.jsx)(F2,{id:e},e)}function F2({id:e}){let t=Q(),n=sc(e);return n.isPending?(0,S.jsx)(e2,{}):n.isError?n.error instanceof No&&n.error.code===`not_found`?(0,S.jsx)(pQ,{icon:Jv,title:t.contacts.notFoundTitle,description:t.contacts.notFoundDescription,action:(0,S.jsx)(sX,{href:$.contacts,children:t.contacts.backToContacts})}):(0,S.jsx)(t2,{error:n.error,onRetry:()=>void n.refetch()}):(0,S.jsx)(I2,{contact:n.data})}function I2({contact:e}){let t=Q(),n=k1(),r=n2(),i=g2(vs().data),a=_c(),o=mc(),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(!1),d=e.name??e.email,f=ic(),p=e.data??M2,m=[[t.contacts.email,e.email],[t.contacts.phone,e.phone??t.contacts.notGiven],...l_(f.data?.contact??[]).map(e=>[Z(e.label,n),_2(p[e.id],t.forms.yes)||t.contacts.notGiven]),[t.contacts.firstCameFrom,i(e)],[t.contacts.added,h2(e.createdAt,n)]];return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(sX,{href:$.contacts,children:t.contacts.backToContacts}),(0,S.jsx)(hQ,{title:d,...e.name!==void 0&&{description:e.email},actions:(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:Mx,onPress:()=>u(!0),children:t.contacts.erase}),(0,S.jsx)(q,{variant:`secondary`,icon:Qv,isPending:a.isPending,onPress:()=>a.mutate(e.id,{onSuccess:n=>{p2(`contact-${e.email}.json`,n,`application/json;charset=utf-8`),X({title:t.contacts.exported,description:t.contacts.exportedDescription,tone:`success`})},onError:e=>X({title:t.contacts.notExported,description:N2(e),tone:`danger`})}),children:t.contacts.export}),(0,S.jsx)(q,{icon:Mb,onPress:()=>c(!0),children:t.contacts.edit})]})})]}),(0,S.jsx)($Q,{asideLabel:t.contacts.detailsLabel,aside:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(A2,{contact:e}),(0,S.jsx)(mY,{title:t.contacts.details,children:(0,S.jsx)(J,{gap:4,children:m.map(([e,t])=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{size:`sm`,weight:`semibold`,tone:`secondary`,children:e}),(0,S.jsx)(Y,{children:t})]},e))})})]}),children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(E2,{contact:e}),(0,S.jsx)(L2,{contact:e})]})})]}),s&&(0,S.jsx)(R2,{contact:e,onClose:()=>c(!1)}),(0,S.jsx)(uQ,{isOpen:l,onOpenChange:u,title:t.contacts.eraseTitle(d),confirmLabel:t.contacts.eraseConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:o.isPending,onConfirm:()=>o.mutate(e.id,{onSuccess:e=>{X({title:t.contacts.erased(d,e),tone:`success`}),r($.contacts)},onError:e=>{X({title:t.contacts.notErased,description:N2(e),tone:`danger`}),u(!1)}}),children:t.contacts.eraseDescription})]})}function L2({contact:e}){let t=Q(),n=k1(),r=cc(e.id),i=hc(),a=gc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(null),u=nc(),d=oc(),f=r2(),p=e=>f((u.data?.stages??[]).find(t=>t.id===e))||t.contacts.stageGone,m=()=>{l(null),i.mutate({id:e.id,text:o},{onSuccess:()=>{s(``),X({title:t.contacts.noteAdded,tone:`success`})},onError:e=>{e instanceof No&&e.code===`validation_failed`&&l(e.issues[0]?.message??e.message),X({title:t.contacts.noteNotAdded,description:N2(e),tone:`danger`})}})},h=e=>e.split(`
|
|
75
|
+
`).map((e,t)=>(0,S.jsx)(Y,{children:e},t)),g=r=>r.kind===`stage`?(0,S.jsxs)(J,{gap:1,children:[(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(yZ,{children:t.contacts.movedLabel}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(r.at,n)})]}),(0,S.jsx)(Y,{children:t.contacts.movedFromTo(p(r.from),p(r.to),(d.data??[]).find(e=>e.id===r.by)?.name)})]},r.id):r.kind===`note`?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)(aX,{gap:2,justify:`between`,children:[(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(yZ,{children:t.contacts.noteLabel}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(r.at,n)})]}),(0,S.jsx)(q,{variant:`ghost`,size:`sm`,isPending:a.isPending&&a.variables.noteId===r.note.id,onPress:()=>a.mutate({id:e.id,noteId:r.note.id},{onSuccess:()=>X({title:t.contacts.noteDeleted,tone:`success`}),onError:e=>X({title:t.contacts.noteNotDeleted,description:N2(e),tone:`danger`})}),children:t.contacts.deleteNote})]}),(0,S.jsx)(J,{gap:0,children:h(r.note.text)})]},r.note.id):(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(yZ,{tone:`info`,children:r.formLabel?t.contacts.sent(Z(r.formLabel,n)):t.contacts.sentUnknown}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(r.at,n)})]}),r.submission.page!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.contacts.fromPage(r.submission.page)})]}),r.answers.map(e=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{size:`sm`,weight:`semibold`,tone:`secondary`,children:Z(e.label,n)}),h(_2(e.value,t.forms.yes))]},e.key))]},r.submission.id);return(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(mY,{title:t.contacts.note,children:(0,S.jsxs)(ZY,{label:t.contacts.note,gap:3,onSubmit:m,children:[(0,S.jsx)(EZ,{label:t.contacts.note,isLabelHidden:!0,description:t.contacts.noteHelp,placeholder:t.contacts.notePlaceholder,value:o,onChange:s,...c!==null&&{errorMessage:c}}),(0,S.jsx)(aX,{justify:`end`,children:(0,S.jsx)(q,{variant:`secondary`,isPending:i.isPending,isDisabled:o.trim()===``,onPress:m,children:t.contacts.addNote})})]})}),(0,S.jsxs)(mY,{title:t.contacts.timeline,description:t.contacts.timelineHelp,children:[r.isPending&&(0,S.jsx)(e2,{shape:`summary`}),r.isError&&(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&r.data.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:t.contacts.timelineEmpty}),r.isSuccess&&r.data.length>0&&(0,S.jsx)(J,{gap:6,children:r.data.map(g)})]})]})}function R2({contact:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=pc(),[o,s]=(0,x.useState)(e.name??``),[c,l]=(0,x.useState)(e.email),[u,d]=(0,x.useState)(e.phone??``),[f,p]=(0,x.useState)(j2),m=d2(`contact`,e.data),h=()=>{if(c.trim()===``)return p({email:i.contacts.emailNeeded});p(j2),a.mutate({id:e.id,changes:{email:c,name:o.trim()===``?null:o,phone:u.trim()===``?null:u,...m.toSend(),expectedRevision:e.revision}},{onSuccess:e=>{X({title:i.contacts.saved(e.name??e.email),tone:`success`}),n()},onError:e=>{e instanceof No&&p(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),m.refused(e),X({title:i.contacts.notSaved,description:N2(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...r,title:i.contacts.editTitle(e.name??e.email),closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:a.isPending,onPress:h,children:i.contacts.save})]}),children:(0,S.jsxs)(ZY,{label:i.contacts.editTitle(e.name??e.email),gap:4,onSubmit:h,children:[(0,S.jsx)(CZ,{label:i.contacts.name,value:o,onChange:s,autoFocus:!0,autoComplete:`off`,...f.name!==void 0&&{errorMessage:f.name}}),(0,S.jsx)(CZ,{label:i.contacts.email,type:`email`,value:c,onChange:l,isRequired:!0,autoComplete:`off`,...f.email!==void 0&&{errorMessage:f.email}}),(0,S.jsx)(CZ,{label:i.contacts.phone,type:`tel`,value:u,onChange:d,autoComplete:`off`,...f.phone!==void 0&&{errorMessage:f.phone}}),(0,S.jsx)(f2,{custom:m})]})})}var z2=e=>typeof e==`number`?e:null,B2=(e,t,n)=>{let{[t]:r,...i}=e;return n==null?i:{...i,[t]:n}};function V2({options:e,onChange:t}){let n=Q();return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(_Y,{label:n.builder.textMultiline,isSelected:e.multiline===!0,onChange:n=>t(B2(e,`multiline`,n))}),(0,S.jsx)(vX,{label:n.builder.textMaxLength,description:n.builder.textMaxLengthHelp,value:z2(e.maxLength),minValue:1,isInteger:!0,onChange:n=>t(B2(e,`maxLength`,n))})]})}function H2({options:e,onChange:t}){let n=Q();return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(vX,{label:n.builder.numberMin,value:z2(e.min),onChange:n=>t(B2(e,`min`,n))}),(0,S.jsx)(vX,{label:n.builder.numberMax,value:z2(e.max),onChange:n=>t(B2(e,`max`,n))}),(0,S.jsx)(_Y,{label:n.builder.numberInteger,isSelected:e.integer===!0,onChange:n=>t(B2(e,`integer`,n))})]})}var U2=e=>[...new Set(e.split(`
|
|
76
|
+
`).map(e=>e.trim()).filter(Boolean))];function W2({options:e,onChange:t,problem:n}){let r=Q(),[i,a]=(0,x.useState)(()=>(e.choices??[]).join(`
|
|
77
|
+
`));return(0,S.jsx)(EZ,{label:r.builder.choices,description:r.builder.choicesHelp,rows:5,isRequired:!0,value:i,onChange:n=>{a(n),t({...e,choices:U2(n)})},...n!==void 0&&{errorMessage:n}})}function G2({options:e,onChange:t,problem:n}){let r=Q(),i=k1(),a=Io();return(0,S.jsx)(PX,{label:r.builder.referenceTo,isRequired:!0,options:(a.data??[]).map(e=>({id:e.key,label:Z(e.label,i)})),...typeof e.to==`string`&&e.to!==``&&{value:e.to},onChange:n=>t({...e,to:n}),...n!==void 0&&{errorMessage:n}})}function K2({options:e,onChange:t,isExisting:n,problem:r}){let i=Q(),a=e.of,o=q2.list().filter(e=>e.canBeListed===!0||e.type===a?.type);return(0,S.jsx)(PX,{label:i.builder.listOf,description:i.builder.listOfHelp,isRequired:!0,isDisabled:n,options:o.map(e=>({id:e.type,label:i.builder.kinds[e.type]?.name??e.type})),...a?.type!==void 0&&{value:a.type},onChange:n=>t({...e,of:{type:n,options:q2.get(n).initial}}),...r!==void 0&&{errorMessage:r}})}var q2=new d_(`field settings`).register({type:`text`,initial:{},Component:V2,canBeListed:!0}).register({type:`richtext`,initial:{},canBeListed:!0}).register({type:`number`,initial:{},Component:H2,canBeListed:!0}).register({type:`boolean`,initial:{}}).register({type:`date`,initial:{},canBeListed:!0}).register({type:`url`,initial:{},canBeListed:!0}).register({type:`email`,initial:{},canBeListed:!0}).register({type:`phone`,initial:{},canBeListed:!0}).register({type:`select`,initial:{choices:[]},Component:W2,problem:(e,t)=>(e.choices??[]).length===0?t.builder.choicesNeeded:void 0}).register({type:`image`,initial:{},canBeListed:!0}).register({type:`reference`,initial:{},Component:G2,problem:(e,t)=>typeof e.to==`string`&&e.to!==``?void 0:t.builder.referenceNeeded}).register({type:`link`,initial:{},canBeListed:!0}).register({type:`form`,initial:{}}).register({type:`group`,initial:{fields:[]},canBeListed:!0,inner:e=>Array.isArray(e.fields)?e.fields:[]}).register({type:`list`,initial:{},Component:K2,inner:e=>{let t=e.of;return t?.type!==void 0&&q2.has(t.type)?q2.get(t.type).inner?.(t.options??{})??null:null},problem:(e,t)=>typeof e.of?.type==`string`?void 0:t.builder.listOfNeeded});function J2(e){return q2.has(e.type)?q2.get(e.type).inner?.(e.options)??null:null}function Y2(e){return e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean)}var X2=e=>{let[t=``,...n]=e,r=t.replace(/^[0-9]+/,``);return r===``?n.length>0?X2(n):[]:[r,...n]};function Z2(e){return X2(Y2(e)).map((e,t)=>t===0?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(``)}function Q2(e){return X2(Y2(e)).join(`-`)}function $2(e){return{id:e.id,key:e.key,type:e.type,label:e.label,...e.help!==void 0&&{help:e.help},required:e.required,options:e.options}}function e4(e,t,n){let r=e.findIndex(e=>e.id===t),i=r+n;if(r<0||i<0||i>=e.length)return[...e];let a=[...e],[o]=a.splice(r,1);return o&&a.splice(i,0,o),a}var t4={},n4=e=>e instanceof Error?e.message:String(e);function r4({set:e,field:t,onClose:n}){let{close:r,dialog:i}=P1(n),a=Q(),o=k1(),s=o.split(`-`)[0]??o,c=Qo(),[l,u]=(0,x.useState)(t?.type??`text`),[d,f]=(0,x.useState)(t?Z(t.label,o):``),[p,m]=(0,x.useState)(t?.key??null),[h,g]=(0,x.useState)(t?.help?Z(t.help,o):``),[_,v]=(0,x.useState)(t?.required??!1),[y,b]=(0,x.useState)(t?.options??q2.get(`text`).initial),[C,w]=(0,x.useState)(t4),T=p??Z2(d),E=q2.has(l)?q2.get(l):null,D=e=>a.builder.kinds[e]?.name??e,O=(c.data??[]).filter(e=>e.takesSubmissions&&q2.has(e.type)).map(e=>({id:e.type,label:D(e.type)})),k=()=>{let n={...d.trim()===``&&{label:a.forms.fieldNameNeeded},...T===``&&{key:a.forms.fieldKeyNeeded},...E?.problem?.(y,a)!==void 0&&{options:E.problem(y,a)}};if(w(n),Object.keys(n).length>0)return;let i=h.trim(),{help:o,...c}=t?$2(t):{key:T,type:l,label:{}},u={...c,key:T,label:{...t?.label,[s]:d.trim()},...i!==``&&{help:{...t?.help,[s]:i}},required:e.canRequire&&_,options:y},f=e.fields.map($2);e.save(t?f.map(e=>e.id===t.id?u:e):[...f,u],{onSuccess:()=>{X({title:t?a.forms.fieldSaved(d.trim()):a.forms.fieldAdded(d.trim()),tone:`success`}),r()},onError:e=>{w({[e instanceof No&&e.code===`conflict`?`key`:`options`]:n4(e)}),X({title:a.forms.fieldNotSaved,description:n4(e),tone:`danger`})}})},A=t?a.forms.editFieldTitle(Z(t.label,o)):a.forms.addFieldTitle;return(0,S.jsx)(UY,{...i,placement:`side`,title:A,closeLabel:a.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:r,children:a.editor.cancel}),(0,S.jsx)(q,{isPending:e.isPending,onPress:k,children:t?a.forms.fieldSave:a.forms.fieldAdd})]}),children:(0,S.jsxs)(ZY,{label:A,gap:4,onSubmit:k,children:[t?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:a.forms.fieldKindIs(D(l))}):(0,S.jsx)(PX,{label:a.forms.fieldKind,options:O,value:l,description:a.builder.kinds[l]?.description??``,onChange:e=>{u(e),b(q2.get(e).initial),w(t4)}}),(0,S.jsx)(CZ,{label:a.forms.fieldName,description:e.words.nameHelp,value:d,onChange:f,isRequired:!0,autoFocus:!0,autoComplete:`off`,...C.label!==void 0&&{errorMessage:C.label}}),(0,S.jsx)(CZ,{label:a.forms.fieldKey,description:a.forms.fieldKeyHelp,value:T,onChange:m,isRequired:!0,autoComplete:`off`,...C.key!==void 0&&{errorMessage:C.key}}),(0,S.jsx)(CZ,{label:a.forms.fieldHelp,description:a.forms.fieldHelpHelp,value:h,onChange:g,autoComplete:`off`}),E?.Component&&(0,S.jsx)(E.Component,{options:y,onChange:b,isExisting:t!==void 0,problem:C.options}),!E?.Component&&C.options!==void 0&&(0,S.jsx)(Y,{tone:`danger`,children:C.options}),e.canRequire&&(0,S.jsx)(_Y,{label:a.forms.fieldRequired,isSelected:_,onChange:v})]})})}var i4=e=>e instanceof Error?e.message:String(e);function a4({set:e,mayChange:t}){let n=Q(),r=k1(),[i,a]=(0,x.useState)(!1),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),u=F1(c),{fields:d}=e,f=d.map($2),p=e=>Z(e.label,r),m=(t,r)=>e.save(e4(f,t.id,r),{onError:e=>X({title:n.forms.notMoved,description:i4(e),tone:`danger`})}),h=[{id:`field`,label:n.forms.columnField},{id:`kind`,label:n.forms.columnKind},{id:`rules`,label:n.forms.columnRules},...t?[{id:`actions`,label:n.forms.columnActions,align:`end`}]:[]],g=d.map((t,r)=>({id:t.id,cells:{field:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:p(t)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.key})]}),kind:(0,S.jsx)(yZ,{children:n.builder.kinds[t.type]?.name??t.type}),rules:(0,S.jsxs)(aX,{gap:2,children:[t.required&&(0,S.jsx)(yZ,{tone:`info`,children:n.forms.required}),e.tagsOf?.(t)]}),actions:(0,S.jsxs)(aX,{gap:1,justify:`end`,children:[(0,S.jsx)(IY,{size:`sm`,label:n.forms.moveUp(p(t)),icon:gv,isDisabled:r===0||e.isPending,onPress:()=>m(t,-1)}),(0,S.jsx)(IY,{size:`sm`,label:n.forms.moveDown(p(t)),icon:uv,isDisabled:r===d.length-1||e.isPending,onPress:()=>m(t,1)}),(0,S.jsx)(IY,{size:`sm`,label:n.forms.edit(p(t)),icon:Mb,onPress:()=>s(t)}),(0,S.jsx)(IY,{size:`sm`,label:n.forms.remove(p(t)),icon:Sx,onPress:()=>l(t)})]})}})),_=(0,S.jsx)(q,{icon:Bb,onPress:()=>a(!0),children:n.forms.addField});return(0,S.jsxs)(J,{gap:4,children:[d.length===0&&(0,S.jsx)(pQ,{icon:Ky,title:n.forms.noFieldsTitle,description:e.words.emptyDescription,...t&&{action:_}}),d.length>0&&(0,S.jsxs)(S.Fragment,{children:[t&&(0,S.jsx)(aX,{justify:`end`,children:_}),(0,S.jsx)(fZ,{label:n.forms.fieldsOf(e.name),columns:h,rows:g})]}),i&&(0,S.jsx)(r4,{set:e,onClose:()=>a(!1)}),o&&(0,S.jsx)(r4,{set:e,field:o,onClose:()=>s(null)}),(0,S.jsx)(uQ,{isOpen:c!==null,onOpenChange:e=>!e&&l(null),title:n.forms.removeTitle(u?p(u):``),confirmLabel:n.forms.removeConfirm,cancelLabel:n.editor.cancel,tone:`danger`,isPending:e.isPending,onConfirm:()=>{c&&e.save(f.filter(e=>e.id!==c.id),{onSuccess:()=>X({title:n.forms.removed(p(c)),tone:`success`}),onError:e=>X({title:n.forms.notRemoved,description:i4(e),tone:`danger`}),onSettled:()=>l(null)})},children:e.words.removeDescription})]})}function o4({of:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=ic(),o=ac(),s=i.customFields[e],c=a.data?{name:s.name,fields:l_(a.data[e]),isPending:o.isPending,save:(t,n)=>o.mutate({[e]:t,expectedRevision:a.data.revision},n),canRequire:!1,words:{emptyDescription:s.emptyDescription,nameHelp:i.customFields.nameHelp,removeDescription:i.customFields.removeDescription}}:null;return(0,S.jsx)(UY,{...r,title:s.title,closeLabel:i.app.dismiss,size:`lg`,footer:(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.customFields.close}),children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{tone:`secondary`,children:s.help}),a.isPending&&(0,S.jsx)(e2,{shape:`table`}),a.isError&&(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()}),c&&(0,S.jsx)(a4,{set:c,mayChange:!0})]})})}var s4=50,c4=e=>e instanceof Error?e.message:String(e);function l4(){let e=Q(),t=Fo(),n=nc(),[r,i]=(0,x.useState)(!1);return t.data===null||t.data===void 0||t.data.role===`author`?(0,S.jsx)(pQ,{icon:gy,title:e.deals.title,description:e.deals.noAccess}):(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.deals.title,description:e.deals.description,actions:(0,S.jsx)(q,{variant:`secondary`,icon:Ky,onPress:()=>i(!0),children:e.customFields.button})}),n.isPending&&(0,S.jsx)(e2,{shape:`summary`}),n.isError&&(0,S.jsx)(t2,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&(0,S.jsx)(u4,{pipeline:n.data})]}),r&&(0,S.jsx)(o4,{of:`deal`,onClose:()=>i(!1)})]})}function u4({pipeline:e}){let t=Q(),n=k1(),r=r2(),i=l2(e.currency),a=Bs(),o=oc(),s=Fs({limit:200}),c=zs(e.stages.map(e=>({stage:e.id,limit:s4}))),l=b2(),u=Us(),[d,f]=(0,x.useState)(null),p=c.find(e=>e.isError);if(p)return(0,S.jsx)(t2,{error:p.error,onRetry:()=>void p.refetch()});if(a.isError)return(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()});if(a.isPending||c.some(e=>e.isPending))return(0,S.jsx)(e2,{shape:`summary`});let m=a.data;if(m.stages.reduce((e,t)=>e+t.count,0)===0)return(0,S.jsx)(pQ,{icon:gy,title:t.deals.emptyTitle,description:t.deals.emptyDescription,action:(0,S.jsx)(sX,{href:$.contacts,children:t.deals.toContacts})});let h=new Map((s.data?.items??[]).map(e=>[e.id,e.name??e.email])),g=u.isPending&&u.variables.changes.stage!==void 0?{id:u.variables.id,stage:u.variables.changes.stage}:void 0,_=c.flatMap(e=>e.data?.items??[]),v=new Map(_.map(e=>[e.id,e])),y=e.stages.map((e,a)=>{let o=c[a]?.data?.items??[],s=g?o.filter(e=>e.id!==g.id):o,u=g&&g.stage===e.id?v.get(g.id):void 0,d=u?[u,...s]:s,f=m.stages.find(t=>t.stage===e.id),p=f?.count??0;return{id:e.id,title:r(e),count:i(f?.value??0),tone:i2[e.kind],items:d.map(r=>{let a=h.get(r.contactId),o=l.nameOf(r.about);return{id:r.id,title:r.title,...a!==void 0&&{detail:a},notes:[{text:i(r.value)},...o!==void 0&&o!==r.title?[{text:o}]:[],...r.closeOn!==void 0&&e.kind===`open`?[{text:t.deals.closes(s2(r.closeOn,n))}]:[]]}}),...p>o.length&&{more:t.deals.boardMore(p-o.length)}}});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)($Y,{columns:3,gap:4,children:[(0,S.jsx)(QX,{label:t.deals.open,value:i(m.open),detail:t.deals.openDetail}),(0,S.jsx)(QX,{label:t.deals.forecast,value:i(m.weighted),detail:t.deals.forecastDetail}),(0,S.jsx)(QX,{label:t.deals.won,value:i(m.won),detail:t.deals.wonDetail})]}),(0,S.jsx)(O$,{label:t.deals.board,columns:y,emptyText:t.deals.boardEmpty,onOpen:e=>f(v.get(e)??null),moveLabel:t.deals.move,onMove:(n,i)=>{let a=v.get(n);a&&!u.isPending&&u.mutate({id:n,changes:{stage:i,expectedRevision:a.revision}},{onSuccess:()=>X({title:t.deals.moved(a.title,r(e.stages.find(e=>e.id===i))),tone:`success`}),onError:e=>X({title:t.deals.notMoved,description:c4(e),tone:`danger`})})}}),d&&(0,S.jsx)(T2,{deal:d,contact:{id:d.contactId},pipeline:e,team:o.data??[],onClose:()=>f(null)})]})}var d4=5e3;function f4(e){let t=e.replace(/^\uFEFF/,``),n=t.split(/\r?\n/,1)[0]??``,r=e=>n.split(e).length-1,i=[`,`,`;`,` `].reduce((e,t)=>r(t)>r(e)?t:e,`,`),a=[],o=[],s=``,c=!1,l=()=>{o.push(s.trim()),s=``},u=()=>{l(),o.some(e=>e!==``)&&a.push(o),o=[]};for(let e=0;e<t.length;e+=1){let n=t[e];c?n===`"`?t[e+1]===`"`?(s+=`"`,e+=1):c=!1:s+=n:n===`"`&&s.trim()===``?(s=``,c=!0):n===i?l():n===`
|
|
78
|
+
`?u():n!==`\r`&&(s+=n)}return u(),a}var p4=`:none`,m4=`:name`,h4=`:email`,g4=`:phone`,_4=20,v4=e=>e instanceof Error?e.message:String(e);function y4({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=k1(),a=l_(ic().data?.contact??[]),o=fc(),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)([]),[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(null),h=[{id:p4,label:r.contactImport.skip},{id:h4,label:r.contacts.email},{id:m4,label:r.contacts.name},{id:g4,label:r.contacts.phone},...a.map(e=>({id:e.id,label:Z(e.label,i)}))],g=e=>{let t=new Set;return e.map(e=>{let n=e.trim().toLowerCase(),r=a.find(e=>e.key.toLowerCase()===n||Z(e.label,i).toLowerCase()===n),o=r?r.id:/mail/.test(n)?h4:/phone|mobile|tel/.test(n)?g4:/name/.test(n)?m4:p4;return o===p4||t.has(o)?p4:(t.add(o),o)})},_=async e=>{f(null);let[t,...n]=f4(await e.text());if(!t||n.length===0)return f(r.contactImport.emptyFile);if(n.length>5e3)return f(r.contactImport.tooManyRows(d4));c({headers:t,rows:n}),u(g(t))},v=(e,t)=>u(l.map((n,r)=>r===e?t:n===t&&t!==p4?p4:n)),y=()=>{if(!s)return;if(!l.includes(h4))return f(r.contactImport.emailNeeded);f(null);let e=s.rows.map(e=>{let t=t=>{let n=e[l.indexOf(t)]?.trim();return n===void 0||n===``?void 0:n},n=t(m4),r=t(g4),i=Object.fromEntries(a.flatMap(e=>t(e.id)===void 0?[]:[[e.id,t(e.id)??``]]));return{email:t(h4)??``,...n!==void 0&&{name:n},...r!==void 0&&{phone:r},...Object.keys(i).length>0&&{data:i}}});o.mutate(e,{onSuccess:e=>{m(e),X({title:r.contactImport.done(e.added),tone:`success`})},onError:e=>X({title:r.contactImport.failed,description:v4(e),tone:`danger`})})};return(0,S.jsx)(UY,{...n,title:r.contactImport.title,closeLabel:r.app.dismiss,footer:p?(0,S.jsx)(q,{onPress:t,children:r.contactImport.close}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),s&&(0,S.jsx)(q,{isPending:o.isPending,onPress:y,children:r.contactImport.bringIn(s.rows.length)})]}),children:(0,S.jsxs)(J,{gap:4,children:[!s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.lead}),(0,S.jsx)(YY,{accept:`csv`,icon:uy,onSelect:e=>void _(e),children:r.contactImport.chooseFile})]}),s&&!p&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.matchLead(s.rows.length)}),s.headers.map((e,t)=>(0,S.jsx)(PX,{label:r.contactImport.column(e===``?String(t+1):e),...s.rows[0]?.[t]!==void 0&&s.rows[0][t]!==``&&{description:r.contactImport.example(s.rows[0][t]??``)},options:h,value:l[t]??p4,onChange:e=>v(t,e)},t))]}),d!==null&&!p&&(0,S.jsx)(Y,{tone:`danger`,children:d}),p&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{weight:`semibold`,children:r.contactImport.added(p.added)}),p.filled>0&&(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.filled(p.filled)}),p.unchanged>0&&(0,S.jsx)(Y,{tone:`secondary`,children:r.contactImport.unchanged(p.unchanged)}),p.problems.length>0&&(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{tone:`danger`,children:r.contactImport.leftOut(p.problems.length)}),p.problems.slice(0,_4).map(e=>(0,S.jsx)(Y,{size:`sm`,tone:`secondary`,children:r.contactImport.rowProblem(e.row+2,e.message)},e.row)),p.problems.length>_4&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.contactImport.andMore(p.problems.length-_4)})]})]})]})})}var b4=50,x4=e=>e instanceof Error?e.message:String(e);function S4({pipeline:e,team:t,filter:n}){let r=Q(),i=k1(),a=n2(),o=r2(),s=c2(t),c=o2(),l=Is(e.stages.map(e=>({...n,stage:e.id,limit:b4}))),u=Ls(),d=l.find(e=>e.isError);if(d)return(0,S.jsx)(t2,{error:d.error,onRetry:()=>void d.refetch()});if(l.some(e=>e.isPending))return(0,S.jsx)(e2,{shape:`summary`});let f=u.isPending?u.variables:void 0,p=new Map,m=e.stages.map((e,t)=>{let n=l[t]?.data??{items:[],total:0},a=n.items,u=n.total;if(f){let t=a.some(e=>e.id===f.contact.id);e.id===f.stage&&!t?(a=[{...f.contact,stage:e.id},...a],u+=1):e.id!==f.stage&&t&&(a=a.filter(e=>e.id!==f.contact.id),--u)}for(let e of a)p.set(e.id,e);return{id:e.id,title:o(e),count:new Intl.NumberFormat(i).format(u),tone:i2[e.kind],items:a.map(e=>({id:e.id,title:e.name??e.email,...e.name!==void 0&&{detail:e.email},notes:[...e.ownerId!==void 0&&s(e.ownerId)!==``?[{text:s(e.ownerId)}]:[],...e.followUpAt===void 0?[]:[c(e.followUpAt)]]})),...u>a.length&&{more:r.contacts.boardMore(u-a.length)}}});return(0,S.jsx)(O$,{label:r.contacts.board,columns:m,emptyText:r.contacts.boardEmpty,onOpen:e=>a($.contact(e)),moveLabel:r.contacts.move,onMove:(t,n)=>{let i=p.get(t);i&&!u.isPending&&u.mutate({contact:i,stage:n},{onSuccess:()=>X({title:r.contacts.moved(i.name??i.email,o(e.stages.find(e=>e.id===n))),tone:`success`}),onError:e=>X({title:r.contacts.notMoved,description:x4(e),tone:`danger`})})}})}var C4=[`open`,`won`,`lost`],w4=12,T4=e=>e instanceof Error?e.message:String(e);function E4({pipeline:e,team:t,onClose:n}){let{close:r,dialog:i}=P1(n),a=Q(),o=rc(),s=(0,x.useRef)(0),c=a.contacts.stages,[l,u]=(0,x.useState)(()=>e.stages.map(e=>({row:e.id,id:e.id,label:e.label??``,kind:e.kind,chance:e.chance??50}))),[d,f]=(0,x.useState)(e.currency??`USD`),[p,m]=(0,x.useState)(e.assignTo??[]),[h,g]=(0,x.useState)({}),_=(e,t)=>u(l.map(n=>n.row===e?{...n,...t}:n)),v=()=>{g({}),o.mutate({stages:l.map(({id:e,label:t,kind:n,chance:r})=>({...e!==void 0&&{id:e},label:t,kind:n,...n===`open`&&r!==null&&{chance:r}})),currency:d,assignTo:p.filter(e=>t.some(t=>t.id===e)),expectedRevision:e.revision},{onSuccess:()=>{X({title:a.contacts.stagesSaved,tone:`success`}),r()},onError:e=>{e instanceof No&&g(Object.fromEntries(e.issues.map(e=>[e.path.join(`.`),e.message]))),X({title:a.contacts.stagesNotSaved,description:T4(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...i,title:a.contacts.editStagesTitle,closeLabel:a.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:r,children:a.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:v,children:a.contacts.saveStages})]}),children:(0,S.jsxs)(ZY,{label:a.contacts.editStagesTitle,gap:4,onSubmit:v,children:[(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{tone:`secondary`,children:a.contacts.stagesHelp}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:a.contacts.stagesRemoveNote})]}),(0,S.jsx)(EQ,{label:a.contacts.editStagesTitle,...h.stages!==void 0&&{errorMessage:h.stages},items:l.map((e,t)=>({id:e.row,content:(0,S.jsxs)($Y,{columns:3,gap:3,children:[(0,S.jsx)(CZ,{label:a.contacts.stageName,value:e.label,onChange:t=>_(e.row,{label:t}),autoComplete:`off`,...e.id!==void 0&&c[e.id]!==void 0&&{placeholder:c[e.id]},...h[`stages.${t}.label`]!==void 0&&{errorMessage:h[`stages.${t}.label`]}}),(0,S.jsx)(PX,{label:a.contacts.stageKind,options:C4.map(e=>({id:e,label:a.contacts.stageKinds[e]})),value:e.kind,onChange:t=>_(e.row,{kind:C4.find(e=>e===t)??`open`}),...h[`stages.${t}.kind`]!==void 0&&{errorMessage:h[`stages.${t}.kind`]}}),e.kind===`open`&&(0,S.jsx)(vX,{label:a.contacts.stageChance,value:e.chance,onChange:t=>_(e.row,{chance:t}),minValue:0,maxValue:100,isInteger:!0,...h[`stages.${t}.chance`]!==void 0&&{errorMessage:h[`stages.${t}.chance`]}})]})})),emptyText:a.contacts.stagesEmpty,addLabel:a.contacts.addStage,isFull:l.length>=w4,onAdd:()=>{s.current+=1,u([...l,{row:`added-${s.current}`,label:``,kind:`open`,chance:50}])},onRemove:e=>u(l.filter((t,n)=>n!==e)),onMove:(e,t)=>{let n=[...l],[r]=n.splice(e,1);r&&n.splice(t,0,r),u(n)},removeLabel:a.contacts.removeStage,moveUpLabel:a.contacts.moveStageUp,moveDownLabel:a.contacts.moveStageDown}),(0,S.jsx)(qY,{legend:a.contacts.pipelineSettings,children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(CZ,{label:a.contacts.currency,description:a.contacts.currencyHelp,value:d,onChange:f,autoComplete:`off`,...h.currency!==void 0&&{errorMessage:h.currency}}),t.length>0&&(0,S.jsx)(qY,{legend:a.contacts.assignTo,description:a.contacts.assignToHelp,children:(0,S.jsx)(J,{gap:2,children:t.map(e=>(0,S.jsx)(_Y,{label:e.name,isSelected:p.includes(e.id),onChange:t=>m(t?[...p,e.id]:p.filter(t=>t!==e.id))},e.id))})})]})})]})})}var D4=`all`,O4=`mine`,k4=`nobody`,A4={},j4=e=>e instanceof Error?e.message:String(e);function M4(){let e=Q(),t=Fo();return t.data===null||t.data===void 0||t.data.role===`author`?(0,S.jsx)(pQ,{icon:Jv,title:e.contacts.title,description:e.contacts.noAccess}):(0,S.jsx)(N4,{})}function N4(){let e=Q(),t=k1(),n=n2(),[r,i]=(0,x.useState)(``),a=(0,x.useDeferredValue)(r.trim()),o=Fo(),[s,c]=wo(),l=s.get(`view`)===`board`?`board`:`list`,[u,d]=(0,x.useState)(D4),[f,p]=(0,x.useState)(D4),m=f===D4?void 0:f===k4?null:f===O4?o.data?.id:f,h={...a!==``&&{search:a},...m!==void 0&&{ownerId:m}},g=Fs({limit:200,...h,...u!==D4&&{stage:u}}),_=vs(),v=nc(),y=oc(),b=g2(_.data),C=r2(),w=c2(y.data),T=o2(),[E,D]=(0,x.useState)(!1),[O,k]=(0,x.useState)(!1),[A,j]=(0,x.useState)(!1),[M,ee]=(0,x.useState)(!1),N=v.data?.stages??[],P=u!==D4||f!==D4,te=[{id:`name`,label:e.contacts.columnName},{id:`stage`,label:e.contacts.columnStage},{id:`owner`,label:e.contacts.columnOwner},{id:`followUp`,label:e.contacts.columnFollowUp},{id:`source`,label:e.contacts.columnSource},{id:`added`,label:e.contacts.columnAdded,align:`end`}],F=(g.data?.items??[]).map(e=>{let n=N.find(t=>t.id===e.stage),r=e.followUpAt===void 0?void 0:T(e.followUpAt);return{id:e.id,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:e.name??e.email}),e.name!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.email})]}),stage:n?(0,S.jsx)(yZ,{tone:i2[n.kind],children:C(n)}):``,owner:(0,S.jsx)(Y,{tone:`secondary`,children:w(e.ownerId)}),followUp:r?r.tone===`neutral`?(0,S.jsx)(Y,{tone:`secondary`,children:r.text}):(0,S.jsx)(yZ,{tone:r.tone,children:r.text}):``,source:(0,S.jsx)(Y,{size:`sm`,tone:`secondary`,children:b(e)}),added:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(e.createdAt,t)})}}}),ne=(0,S.jsx)(q,{icon:Bb,onPress:()=>D(!0),children:e.contacts.newContact}),re=g.isSuccess&&F.length===0;return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.contacts.title,description:e.contacts.description,actions:(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(EX,{label:e.contacts.view,options:[{id:`list`,label:e.contacts.viewList},{id:`board`,label:e.contacts.viewBoard}],selected:l,onChange:e=>c(e===`board`?{view:`board`}:{},{replace:!0})}),(0,S.jsx)(q,{variant:`secondary`,icon:Ky,onPress:()=>j(!0),children:e.customFields.button}),(0,S.jsx)(q,{variant:`secondary`,icon:uy,onPress:()=>ee(!0),children:e.contactImport.button}),ne]})}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(CX,{label:e.contacts.search,placeholder:e.contacts.searchPlaceholder,value:r,onChange:i,clearLabel:e.contacts.clearSearch}),(0,S.jsxs)(aX,{gap:3,align:`end`,justify:`between`,children:[(0,S.jsxs)(aX,{gap:3,align:`end`,children:[l===`list`&&(0,S.jsx)(PX,{label:e.contacts.filterStage,width:`sm`,options:[{id:D4,label:e.contacts.allStages},...N.map(e=>({id:e.id,label:C(e)}))],value:u,onChange:d}),(0,S.jsx)(PX,{label:e.contacts.filterOwner,width:`sm`,options:[{id:D4,label:e.contacts.everyone},{id:O4,label:e.contacts.mine},{id:k4,label:e.contacts.nobody},...(y.data??[]).filter(e=>e.id!==o.data?.id).map(e=>({id:e.id,label:e.name}))],value:f,onChange:p})]}),l===`board`&&v.isSuccess&&(0,S.jsx)(q,{variant:`secondary`,icon:ix,onPress:()=>k(!0),children:e.contacts.editStages})]}),l===`list`&&g.isSuccess&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.contacts.count(g.data.total)})]}),l===`board`&&v.isPending&&(0,S.jsx)(e2,{shape:`summary`}),l===`board`&&v.isError&&(0,S.jsx)(t2,{error:v.error,onRetry:()=>void v.refetch()}),l===`board`&&v.isSuccess&&(0,S.jsx)(S4,{pipeline:v.data,team:y.data,filter:h}),l===`list`&&(0,S.jsxs)(S.Fragment,{children:[g.isPending&&(0,S.jsx)(e2,{shape:`table`}),g.isError&&(0,S.jsx)(t2,{error:g.error,onRetry:()=>void g.refetch()}),re&&a===``&&P&&(0,S.jsx)(pQ,{icon:Wy,title:e.contacts.nothingMatchesTitle,description:e.contacts.nothingMatchesDescription}),re&&a===``&&!P&&(0,S.jsx)(pQ,{icon:Jv,title:e.contacts.emptyTitle,description:e.contacts.emptyDescription,action:ne}),re&&a!==``&&(0,S.jsx)(pQ,{icon:Qb,title:e.contacts.nothingFoundTitle,description:e.contacts.nothingFoundDescription(a)}),g.isSuccess&&F.length>0&&(0,S.jsx)(fZ,{label:e.contacts.title,columns:te,rows:F,onRowAction:e=>n($.contact(e))})]})]}),M&&(0,S.jsx)(y4,{onClose:()=>ee(!1)}),A&&(0,S.jsx)(o4,{of:`contact`,onClose:()=>j(!1)}),O&&v.data&&(0,S.jsx)(E4,{pipeline:v.data,team:y.data??[],onClose:()=>k(!1)}),E&&(0,S.jsx)(P4,{onClose:()=>D(!1)})]})}function P4({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=n2(),a=uc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(``),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(A4),m=()=>{if(c.trim()===``)return p({email:r.contacts.emailNeeded});p(A4),a.mutate({email:c,...o.trim()!==``&&{name:o},...u.trim()!==``&&{phone:u}},{onSuccess:e=>{X({title:r.contacts.created(e.name??e.email),tone:`success`}),t(),i($.contact(e.id))},onError:e=>{e instanceof No&&p(Object.fromEntries(e.issues.map(e=>[String(e.path[0]),e.message]))),X({title:r.contacts.notCreated,description:j4(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...n,title:r.contacts.newContactTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:a.isPending,onPress:m,children:r.contacts.create})]}),children:(0,S.jsxs)(ZY,{label:r.contacts.newContactTitle,gap:4,onSubmit:m,children:[(0,S.jsx)(CZ,{label:r.contacts.name,value:o,onChange:s,autoFocus:!0,autoComplete:`off`,...f.name!==void 0&&{errorMessage:f.name}}),(0,S.jsx)(CZ,{label:r.contacts.email,type:`email`,value:c,onChange:l,isRequired:!0,autoComplete:`off`,...f.email!==void 0&&{errorMessage:f.email}}),(0,S.jsx)(CZ,{label:r.contacts.phone,type:`tel`,value:u,onChange:d,autoComplete:`off`,...f.phone!==void 0&&{errorMessage:f.phone}})]})})}function F4(e){let t=new Map(l_(e.fields).map(e=>[e.id,e])),n=(e.sections??[]).map(e=>({key:e.key,fields:e.fieldIds.flatMap(e=>t.get(e)??[])})),r=new Set(n.flatMap(e=>e.fields.map(e=>e.id)));return[...n,{key:``,fields:[...t.values()].filter(e=>!r.has(e.id))}]}function I4(e,t){return e.sections?.find(e=>e.fieldIds.includes(t))?.key??``}function L4(e){return{order:e.flatMap(e=>e.ids),sections:Object.fromEntries(e.filter(e=>e.key!==``).map(e=>[e.key,e.ids]))}}function R4(e,t,n){return L4(F4(e).map(e=>{let r=e.fields.map(e=>e.id),i=r.indexOf(t),a=i+n;return i===-1||a<0||a>=r.length||r.splice(a,0,...r.splice(i,1)),{key:e.key,ids:r}}))}function z4(e,t,n){return L4(F4(e).map(e=>{let r=e.fields.map(e=>e.id).filter(e=>e!==t);return{key:e.key,ids:e.key===n?[...r,t]:r}}))}function B4(e,t,n,r){let i=l_([...e]).map(e=>e.id),a=i.indexOf(t),o=a+n;return a!==-1&&o>=0&&o<i.length&&i.splice(o,0,...i.splice(a,1)),{order:i,within:r}}var V4={},H4=e=>e instanceof Error?e.message:String(e);function U4({type:e,field:t,within:n,onClose:r}){let{close:i,dialog:a}=P1(r),o=Q(),s=k1(),c=s.split(`-`)[0]??s,l=Qo(),u=Wo(),d=Go(),[f,p]=(0,x.useState)(t?.type??`text`),[m,h]=(0,x.useState)(t?Z(t.label,s):``),[g,_]=(0,x.useState)(t?.key??null),[v,y]=(0,x.useState)(t?.help?Z(t.help,s):``),[b,C]=(0,x.useState)(t?.required??!1),[w,T]=(0,x.useState)(t?.translated??!0),E=n.length>0,[D,O]=(0,x.useState)(t?I4(e,t.id):e.sections?.[0]?.key??``),[k,A]=(0,x.useState)(t?.options??q2.get(`text`).initial),[j,M]=(0,x.useState)(V4),ee=g??Z2(m),N=q2.has(f)?q2.get(f):null,P=e=>o.builder.kinds[e]?.name??e,te=(l.data??[]).filter(e=>q2.has(e.type)).map(e=>({id:e.type,label:P(e.type)})),F=[...(e.sections??[]).map(e=>({id:e.key,label:Z(e.label,s)})),{id:``,label:o.builder.noSection}],ne=u.isPending||d.isPending,re=e=>t=>{let n=(t instanceof No?t.issues:[]).map(e=>String(e.path[0]??``)).find(e=>e===`key`||e===`label`);M({[n??(t instanceof No&&t.code===`conflict`?`key`:`options`)]:H4(t)}),X({title:e,description:H4(t),tone:`danger`})},ie=()=>{let r={...m.trim()===``&&{label:o.builder.nameNeeded},...ee===``&&{key:o.builder.keyNeeded},...N?.problem?.(k,o)!==void 0&&{options:N.problem(k,o)}};if(M(r),Object.keys(r).length>0)return;let a=v.trim();t?d.mutate({typeId:e.id,fieldId:t.id,within:n,changes:{key:ee,label:{...t.label,[c]:m.trim()},help:a===``?null:{...t.help,[c]:a},required:b,translated:w,options:k},...!E&&D!==I4(e,t.id)&&{arrangement:z4(e,t.id,D)}},{onSuccess:()=>{X({title:o.builder.fieldSaved(m.trim()),tone:`success`}),i()},onError:re(o.builder.fieldNotSaved)}):u.mutate({typeId:e.id,within:n,field:{key:ee,type:f,label:{[c]:m.trim()},...a!==``&&{help:{[c]:a}},required:b,translated:w,options:k,...!E&&D!==``&&{section:D}}},{onSuccess:()=>{X({title:o.builder.fieldAdded(m.trim()),tone:`success`}),i()},onError:re(o.builder.fieldNotAdded)})},ae=t?o.builder.editFieldTitle(Z(t.label,s)):o.builder.addFieldTitle;return(0,S.jsx)(UY,{...a,placement:`side`,title:ae,closeLabel:o.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:i,children:o.editor.cancel}),(0,S.jsx)(q,{isPending:ne,onPress:ie,children:t?o.builder.fieldSave:o.builder.fieldAdd})]}),children:(0,S.jsxs)(ZY,{label:ae,gap:4,onSubmit:ie,children:[t?(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.builder.kindIs(P(f))}):(0,S.jsx)(PX,{label:o.builder.kind,options:te,value:f,description:o.builder.kinds[f]?.description??``,onChange:e=>{p(e),A(q2.get(e).initial),M(V4)}}),(0,S.jsx)(CZ,{label:o.builder.fieldName,description:o.builder.fieldNameHelp,value:m,onChange:h,isRequired:!0,autoFocus:!0,autoComplete:`off`,...j.label!==void 0&&{errorMessage:j.label}}),(0,S.jsx)(CZ,{label:o.builder.fieldKey,description:t?o.builder.fieldKeyHelpEdit:o.builder.fieldKeyHelp,value:ee,onChange:_,isRequired:!0,autoComplete:`off`,...j.key!==void 0&&{errorMessage:j.key}}),(0,S.jsx)(CZ,{label:o.builder.fieldHelp,description:o.builder.fieldHelpHelp,value:v,onChange:y,autoComplete:`off`}),N?.Component&&(0,S.jsx)(N.Component,{options:k,onChange:A,isExisting:t!==void 0,problem:j.options}),!N?.Component&&j.options!==void 0&&(0,S.jsx)(Y,{tone:`danger`,children:j.options}),t&&!N&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.builder.settingsElsewhere}),(0,S.jsx)(_Y,{label:o.builder.fieldRequired,isSelected:b,onChange:C}),(0,S.jsx)(_Y,{label:o.builder.fieldTranslated,isSelected:w,onChange:T}),!E&&F.length>1&&(0,S.jsx)(PX,{label:o.builder.section,description:o.builder.sectionHelp,options:F,value:D,onChange:O})]})})}var W4=e=>e instanceof Error?e.message:String(e);function G4(e,t){let n=Q2(e)||`section`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}-${e}`;return r}function K4({type:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=k1(),o=a.split(`-`)[0]??a,s=Jo(),[c,l]=(0,x.useState)(()=>(e.sections??[]).map(e=>({id:e.key,section:e,name:Z(e.label,a),aside:e.aside===!0}))),[u,d]=(0,x.useState)(0),[f,p]=(0,x.useState)(null),m=(e,t)=>l(n=>n.map(n=>n.id===e?{...n,...t}:n)),h=()=>{if(c.some(e=>e.name.trim()===``))return p(i.builder.sectionNameNeeded);p(null);let t=new Set(c.flatMap(e=>e.section?.key??[])),r=c.map(e=>{let n=e.section?.key??G4(e.name,t);return t.add(n),{key:n,label:{...e.section?.label,[o]:e.name.trim()},fieldIds:e.section?.fieldIds??[],...e.aside&&{aside:!0}}});s.mutate({typeId:e.id,sections:r},{onSuccess:()=>{X({title:i.builder.sectionsSaved,tone:`success`}),n()},onError:e=>{p(W4(e)),X({title:i.builder.sectionsNotSaved,description:W4(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...r,placement:`side`,title:i.builder.sectionsTitle,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:s.isPending,onPress:h,children:i.builder.sectionsSave})]}),children:(0,S.jsxs)(ZY,{label:i.builder.sectionsTitle,gap:4,onSubmit:h,children:[(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:i.builder.sectionsDescription}),(0,S.jsx)(EQ,{label:i.builder.sections,items:c.map((e,t)=>({id:e.id,content:(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(CZ,{label:i.builder.sectionName(t+1),isLabelHidden:!0,value:e.name,onChange:t=>m(e.id,{name:t}),autoComplete:`off`}),(0,S.jsx)(_Y,{label:i.builder.sectionAsideLabel,isSelected:e.aside,onChange:t=>m(e.id,{aside:t})})]})})),emptyText:i.builder.sectionsEmpty,addLabel:i.builder.sectionAdd,onAdd:()=>{l(e=>[...e,{id:`new-${u}`,section:null,name:``,aside:!1}]),d(u+1)},onRemove:e=>l(t=>t.filter((t,n)=>n!==e)),onMove:(e,t)=>l(n=>{let r=[...n];return r.splice(t,0,...r.splice(e,1)),r}),removeLabel:i.builder.sectionRemove,moveUpLabel:i.builder.sectionMoveUp,moveDownLabel:i.builder.sectionMoveDown,...f!==null&&{errorMessage:f}})]})})}var q4=``,J4=e=>e instanceof Error?e.message:String(e),Y4=e=>e.join(`/`);function X4({type:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=k1(),o=Uo(),s=Qo(),[c,l]=(0,x.useState)(Z(e.label,a)),[u,d]=(0,x.useState)(e.urlPattern??``),[f,p]=(0,x.useState)(e.titlePath?Y4(e.titlePath):q4),[m,h]=(0,x.useState)(e.list?.imagePath?Y4(e.list.imagePath):q4),[g,_]=(0,x.useState)((e.list?.fieldPaths??[]).map(Y4)),[v,y]=(0,x.useState)(e.forDeals===!0),[b,C]=(0,x.useState)({}),w=l_([...e.fields]),T=t=>{let n=[],r=e.fields;for(let e of t){let i=r.find(t=>t.id===e);if(!i)return Y4(t);n.push(Z(i.label,a)),r=J2(i)??[]}return n.join(`, `)},E=(e,t=w)=>[...new Set([...t.map(e=>e.id),...e.filter(e=>e!==q4)])].map(e=>({id:e,label:T(e.split(`/`))})),D=new Map((s.data??[]).map(e=>[e.type,e.editor])),O=w.filter(e=>D.get(e.type)===`image`),k=()=>{if(c.trim()===``)return C({label:i.builder.typeNameNeeded});C({}),o.mutate({id:e.id,changes:{label:{...e.label,[a.split(`-`)[0]??a]:c.trim()},urlPattern:u.trim()===``?null:u.trim(),titlePath:f===q4?null:f.split(`/`),list:m===q4&&g.length===0?null:{...m!==q4&&{imagePath:m.split(`/`)},...g.length>0&&{fieldPaths:g.map(e=>e.split(`/`))}},forDeals:v}},{onSuccess:()=>{X({title:i.builder.settingsSaved,tone:`success`}),n()},onError:e=>{let t=e instanceof No?e.issues:[];C({[String(t[0]?.path[0]??`urlPattern`)]:J4(e)}),X({title:i.builder.settingsNotSaved,description:J4(e),tone:`danger`})}})},A=i.builder.settingsTitle(Z(e.label,a));return(0,S.jsx)(UY,{...r,placement:`side`,title:A,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:k,children:i.builder.settingsSave})]}),children:(0,S.jsxs)(ZY,{label:A,gap:4,onSubmit:k,children:[(0,S.jsx)(CZ,{label:i.builder.typeName,value:c,onChange:l,isRequired:!0,autoFocus:!0,autoComplete:`off`,...b.label!==void 0&&{errorMessage:b.label}}),(0,S.jsx)(CZ,{label:i.builder.typeAddress,description:i.builder.typeAddressHelp,value:u,onChange:d,autoComplete:`off`,...b.urlPattern!==void 0&&{errorMessage:b.urlPattern}}),(0,S.jsx)(PX,{label:i.builder.titleField,description:i.builder.titleFieldHelp,options:[{id:q4,label:i.builder.titleAutomatic},...E([f])],value:f,onChange:p,...b.fields!==void 0&&{errorMessage:b.fields}}),(0,S.jsx)(PX,{label:i.builder.listImage,description:i.builder.listImageHelp,options:[{id:q4,label:i.builder.listImageNone},...E([m],O)],value:m,onChange:h}),(0,S.jsx)(qY,{legend:i.builder.listColumns,description:i.builder.listColumnsHelp,children:E(g).map(e=>(0,S.jsx)(_Y,{label:e.label,isSelected:g.includes(e.id),onChange:t=>_(n=>t?[...n,e.id]:n.filter(t=>t!==e.id))},e.id))}),(0,S.jsx)(qY,{legend:i.builder.crm,description:i.builder.forDealsHelp,children:(0,S.jsx)(_Y,{label:i.builder.forDeals,isSelected:v,onChange:y})})]})})}var Z4=e=>e instanceof Error?e.message:String(e);function Q4(){let{typeKey:e=``}=ta(),[t]=wo(),n=Q(),r=Io();if(r.isPending)return(0,S.jsx)(e2,{});if(r.isError)return(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()});let i=r.data.find(t=>t.key===e);if(!i)return(0,S.jsx)(pQ,{icon:cx,title:n.builder.notFoundTitle,description:n.builder.notFoundDescription,action:(0,S.jsx)(sX,{href:$.types,children:n.builder.backToTypes})});let a=[],o=i.fields;for(let e of t.getAll(`in`)){let t=o.find(t=>t.id===e&&t.deletedAt===void 0),r=t?J2(t):null;if(!t||!r)return(0,S.jsx)(pQ,{icon:cx,title:n.builder.notFoundTitle,description:n.builder.notFoundDescription,action:(0,S.jsx)(sX,{href:$.type(i.key),children:n.builder.backTo(i.key)})});a.push(t),o=r}return(0,S.jsx)($4,{type:i,holders:a,fields:o},a.map(e=>e.id).join(`/`))}function $4({type:e,holders:t,fields:n}){let r=Q(),i=k1(),a=Yo(),o=Ko(),s=qo(),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),m=Vo(),[h,g]=(0,x.useState)(!1),_=n2(),v=t.map(e=>e.id),y=t.at(-1),[b,C]=(0,x.useState)(null),[w,T]=(0,x.useState)(null),E=F1(w),D=Z(e.label,i),O=y?[{key:``,fields:n.filter(e=>e.deletedAt===void 0)}]:F4(e),k=O.length>1,A=n.filter(e=>e.deletedAt!==void 0),j=O.some(e=>e.fields.length>0),M=e=>Z(e.label,i),ee=(t,i)=>a.mutate({typeId:e.id,arrangement:y?B4(n,t.id,i,v):R4(e,t.id,i)},{onError:e=>X({title:r.builder.notMoved,description:Z4(e),tone:`danger`})}),N=[{id:`field`,label:r.builder.columnField},{id:`kind`,label:r.builder.columnKind},{id:`rules`,label:r.builder.columnRules},{id:`actions`,label:r.builder.columnActions,align:`end`}],P=e=>{let t=J2(e);return(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:M(e)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t?`${e.key} · ${r.builder.holdsFields(t.filter(e=>e.deletedAt===void 0).length)}`:e.key})]})},te=e=>(0,S.jsx)(yZ,{children:r.builder.kinds[e.type]?.name??e.type}),F=t=>t.map((n,i)=>({id:n.id,cells:{field:P(n),kind:te(n),rules:(0,S.jsxs)(aX,{gap:2,children:[n.required&&(0,S.jsx)(yZ,{tone:`info`,children:r.builder.required}),!n.translated&&(0,S.jsx)(yZ,{children:r.builder.sameInEveryLanguage})]}),actions:(0,S.jsxs)(aX,{gap:1,justify:`end`,children:[J2(n)&&(0,S.jsx)(IY,{size:`sm`,label:r.builder.fieldsInside(M(n)),icon:Jy,onPress:()=>_($.type(e.key,[...v,n.id]))}),(0,S.jsx)(IY,{size:`sm`,label:r.builder.moveUp(M(n)),icon:gv,isDisabled:i===0||a.isPending,onPress:()=>ee(n,-1)}),(0,S.jsx)(IY,{size:`sm`,label:r.builder.moveDown(M(n)),icon:uv,isDisabled:i===t.length-1||a.isPending,onPress:()=>ee(n,1)}),(0,S.jsx)(IY,{size:`sm`,label:r.builder.edit(M(n)),icon:Mb,onPress:()=>C(n)}),(0,S.jsx)(IY,{size:`sm`,label:r.builder.remove(M(n)),icon:Sx,onPress:()=>T(n)})]})}})),ne=(0,S.jsx)(q,{icon:Bb,onPress:()=>l(!0),children:r.builder.addField});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:8,children:[y?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(sX,{href:$.type(e.key,v.slice(0,-1)),children:r.builder.backTo(t.length>1?M(t.at(-2)):D)}),(0,S.jsx)(hQ,{title:M(y),description:r.builder.insideOf(M(y),D),actions:ne})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(sX,{href:$.types,children:r.builder.backToTypes}),(0,S.jsx)(hQ,{title:D,description:[r.builder.keyIs(e.key),e.urlPattern??r.builder.noAddress].join(` · `),actions:(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:cv,onPress:()=>g(!0),children:r.builder.archive}),(0,S.jsx)(q,{variant:`secondary`,icon:ix,onPress:()=>d(!0),children:r.builder.settings}),(0,S.jsx)(q,{variant:`secondary`,icon:Iy,onPress:()=>p(!0),children:r.builder.sections}),ne]})}),(0,S.jsx)(sX,{href:$.contentList(e.key),children:r.builder.viewEntries})]}),!j&&(0,S.jsx)(pQ,{icon:Ky,title:r.builder.noFieldsTitle,description:r.builder.noFieldsDescription,action:ne}),j&&O.map(t=>{let n=e.sections?.find(e=>e.key===t.key),a=n?Z(n.label,i):r.builder.otherFields;return k?t.key===``&&t.fields.length===0?null:(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(rX,{level:2,size:`md`,children:a}),!n&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.builder.otherFieldsDescription})]}),(0,S.jsx)(fZ,{label:r.builder.fieldsOf(a),columns:N,rows:F(t.fields),empty:r.builder.noFieldsHere})]},t.key):(0,S.jsx)(fZ,{label:r.builder.fields,columns:N,rows:F(t.fields)},t.key)}),A.length>0&&(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(rX,{level:2,size:`md`,children:r.builder.removedFields}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.builder.removedFieldsDescription})]}),(0,S.jsx)(fZ,{label:r.builder.removedFields,columns:N.filter(e=>e.id!==`rules`),rows:A.map(t=>({id:t.id,cells:{field:P(t),kind:te(t),actions:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isDisabled:s.isPending,onPress:()=>s.mutate({typeId:e.id,fieldId:t.id,within:v},{onSuccess:()=>X({title:r.builder.restored(M(t)),tone:`success`}),onError:e=>X({title:r.builder.notRestored,description:Z4(e),tone:`danger`})}),children:r.builder.restoreField(M(t))})}}))})]})]}),c&&(0,S.jsx)(U4,{type:e,within:v,onClose:()=>l(!1)}),b&&(0,S.jsx)(U4,{type:e,field:b,within:v,onClose:()=>C(null)}),f&&(0,S.jsx)(K4,{type:e,onClose:()=>p(!1)}),u&&(0,S.jsx)(X4,{type:e,onClose:()=>d(!1)}),(0,S.jsx)(uQ,{isOpen:w!==null,onOpenChange:e=>!e&&T(null),title:r.builder.removeTitle(E?M(E):``),confirmLabel:r.builder.removeConfirm,cancelLabel:r.editor.cancel,tone:`danger`,isPending:o.isPending,onConfirm:()=>{w&&o.mutate({typeId:e.id,fieldId:w.id,within:v},{onSuccess:()=>X({title:r.builder.removed(M(w)),tone:`success`}),onError:e=>X({title:r.builder.notRemoved,description:Z4(e),tone:`danger`}),onSettled:()=>T(null)})},children:r.builder.removeDescription}),(0,S.jsx)(uQ,{isOpen:h,onOpenChange:g,title:r.builder.archiveTitle(D),confirmLabel:r.builder.archiveConfirm,cancelLabel:r.editor.cancel,tone:`danger`,isPending:m.isPending,onConfirm:()=>m.mutate(e.id,{onSuccess:()=>{X({title:r.builder.archived(D),description:r.builder.archivedDescription,tone:`success`}),_($.types)},onError:e=>{X({title:r.builder.notArchived,description:Z4(e),tone:`danger`}),g(!1)}}),children:r.builder.archiveDescription})]})}var e3={},t3=e=>e instanceof Error?e.message:String(e);function n3(){let e=Q(),t=k1(),n=n2(),r=Io(),[i,a]=(0,x.useState)(!1),o=zo(),s=Ho(),c=[{id:`name`,label:e.builder.columnName},{id:`archived`,label:e.builder.columnArchived},{id:`actions`,label:e.builder.columnActions,align:`end`}],l=(o.data??[]).map(n=>{let r=Z(n.label,t);return{id:n.key,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:r}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.key})]}),archived:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.deletedAt===void 0?``:h2(n.deletedAt,t)}),actions:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:s.isPending&&s.variables===n.id,onPress:()=>s.mutate(n.id,{onSuccess:()=>X({title:e.builder.typeRestored(r),description:e.builder.typeRestoredDescription,tone:`success`}),onError:t=>X({title:e.builder.typeNotRestored,description:t3(t),tone:`danger`})}),children:e.builder.restoreType(r)})}}}),u=[{id:`name`,label:e.builder.columnName},{id:`kind`,label:e.builder.columnKind},{id:`fields`,label:e.builder.columnFields},{id:`address`,label:e.builder.columnAddress}],d=(r.data??[]).map(n=>({id:n.key,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:Z(n.label,t)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.key})]}),kind:n.kind===`single`?e.builder.kindSingle:e.builder.kindCollection,fields:e.builder.fieldCount(l_(n.fields).length),address:n.urlPattern??(0,S.jsx)(Y,{tone:`muted`,children:e.builder.noAddress})}})),f=(0,S.jsx)(q,{icon:Bb,onPress:()=>a(!0),children:e.builder.newType});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.builder.title,description:e.builder.description,actions:f}),r.isPending&&(0,S.jsx)(e2,{shape:`table`}),r.isError&&(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(pQ,{icon:cx,title:e.builder.emptyTitle,description:e.builder.emptyDescription,action:f}),r.isSuccess&&d.length>0&&(0,S.jsx)(fZ,{label:e.builder.title,columns:u,rows:d,onRowAction:e=>n($.type(e))}),o.isError&&(0,S.jsx)(t2,{error:o.error,onRetry:()=>void o.refetch()}),o.isSuccess&&l.length>0&&(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(rX,{level:2,size:`md`,children:e.builder.archivedTitle}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.builder.archivedHelp})]}),(0,S.jsx)(fZ,{label:e.builder.archivedTypes,columns:c,rows:l})]})]}),i&&(0,S.jsx)(r3,{onClose:()=>a(!1)})]})}function r3({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=k1(),a=n2(),o=Ro(),[s,c]=(0,x.useState)(`collection`),l=s===`single`,[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(null),[m,h]=(0,x.useState)(``),[g,_]=(0,x.useState)(e3),v=f??Q2(u),y=()=>{let e={...u.trim()===``&&{label:r.builder.typeNameNeeded},...v===``&&{key:r.builder.keyNeeded}};_(e),Object.keys(e).length>0||o.mutate({key:v,kind:s,label:{[i.split(`-`)[0]??i]:u.trim()},...m.trim()!==``&&{urlPattern:m.trim()}},{onSuccess:e=>{X({title:r.builder.typeCreated(u.trim()),description:r.builder.typeCreatedDescription,tone:`success`}),t(),a($.type(e.key))},onError:e=>{let t=e instanceof No?e.issues:[];_(t.length>0?Object.fromEntries(t.map(t=>[String(t.path[0]??`key`),e.message])):{key:t3(e)}),X({title:r.builder.typeNotCreated,description:t3(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...n,title:r.builder.newTypeTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:y,children:r.builder.typeCreate})]}),children:(0,S.jsxs)(ZY,{label:r.builder.newTypeTitle,gap:4,onSubmit:y,children:[(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(EX,{label:r.builder.typeKind,selected:s,onChange:e=>c(e),options:[{id:`collection`,label:r.builder.kindCollection},{id:`single`,label:r.builder.kindSingle}]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:l?r.builder.kindSingleHelp:r.builder.kindCollectionHelp})]}),(0,S.jsx)(CZ,{label:r.builder.typeName,description:l?r.builder.typeNameHelpSingle:r.builder.typeNameHelp,value:u,onChange:d,isRequired:!0,autoFocus:!0,autoComplete:`off`,...g.label!==void 0&&{errorMessage:g.label}}),(0,S.jsx)(CZ,{label:r.builder.typeKey,description:r.builder.typeKeyHelp,value:v,onChange:p,isRequired:!0,autoComplete:`off`,...g.key!==void 0&&{errorMessage:g.key}}),(0,S.jsx)(CZ,{label:l?r.builder.typeAddressSingle:r.builder.typeAddress,description:l?r.builder.typeAddressHelpSingle:r.builder.typeAddressHelp,value:m,onChange:h,autoComplete:`off`,...g.urlPattern!==void 0&&{errorMessage:g.urlPattern}})]})})}var i3={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},a3={all:()=>!0,published:e=>e===`published`||e===`unpublishedChanges`,drafts:e=>e===`draft`,changed:e=>e===`unpublishedChanges`},o3=e=>e===void 0?{}:{src:e},s3=200;function c3(){let e=Q(),t=k1(),n=n2(),{typeKey:r=``}=ta(),i=Io(),a=Xo({type:r,limit:s3}),o=$o(),s=B1(),[c,l]=(0,x.useState)(`all`),[u,d]=(0,x.useState)(``);if(i.isPending)return(0,S.jsx)(e2,{});if(i.isError)return(0,S.jsx)(t2,{error:i.error,onRetry:()=>void i.refetch()});let f=i.data.find(e=>e.key===r);if(!f)return(0,S.jsx)(pQ,{icon:oy,title:e.contentList.typeNotFoundTitle,description:e.contentList.typeNotFoundDescription});let p=Z(f.label,t),m=w1(a.data?.items??[],t),h=m.some(e=>e.versions.length>1)||new Set(m.map(e=>e.primary.locale)).size>1;if(f.kind===`single`){if(f.inSettings===!0)return(0,S.jsx)(Qa,{to:$.settingsPage(f.key),replace:!0});if(a.isPending)return(0,S.jsx)(e2,{shape:`form`});if(a.isError)return(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()});let e=m[0]?.primary;return(0,S.jsx)(Qa,{to:e?$.entry(f.key,e.id):$.newEntry(f.key),replace:!0})}let g=u.trim().toLowerCase(),_=m.filter(({primary:e,versions:t})=>a3[c](x1(e))?g===``||t.some(e=>`${v1(f,e.data)??``} ${e.slug}`.toLowerCase().includes(g)):!1),v=(f.list?.fieldPaths??[]).flatMap((e,t)=>{let n=y1(f,{},e);return n?[{id:`field-${t}`,path:e,field:n.field}]:[]}),y=f.list?.imagePath!==void 0,b=new Map((o.data??[]).map(e=>[e.name,g1(e)])),C=[{id:`title`,label:e.contentList.columnTitle},...v.map(({id:e,field:n})=>({id:e,label:Z(n.label,t),align:s(n.type)?.summaryAlign??`start`})),{id:`status`,label:e.contentList.columnStatus},...h?[{id:`languages`,label:e.contentList.columnLanguages}]:[],{id:`updated`,label:e.contentList.columnUpdated}],w=_.map(({primary:n,versions:r})=>{let i=x1(n),a=r.reduce((e,t)=>t.updatedAt>e?t.updatedAt:e,n.updatedAt);return{id:n.id,cells:{title:(0,S.jsxs)(aX,{gap:3,children:[y&&(0,S.jsx)(MZ,{...o3(b.get(b1(f,n.data)??``))}),(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:v1(f,n.data)??e.contentList.untitled}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,mono:!0,children:T1(f,n)??n.slug})]})]}),...Object.fromEntries(v.map(({id:e,path:t,field:r})=>[e,(0,S.jsx)(V1,{field:r,value:y1(f,n.data,t)?.value},e)])),status:(0,S.jsx)(yZ,{tone:i3[i],children:e.status[i]}),...h&&{languages:(0,S.jsx)(aX,{gap:1,children:r.map(e=>(0,S.jsx)(yZ,{children:e.locale.toUpperCase()},e.id))})},updated:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(a,t)})}}}),T=(0,S.jsx)(q,{icon:Bb,onPress:()=>n($.newEntry(f.key)),children:e.contentList.newEntry});return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:p,actions:T,...a.data&&{description:e.contentList.description(m.length)}}),a.isPending&&(0,S.jsx)(e2,{shape:`table`}),a.isError&&(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&m.length===0&&(0,S.jsx)(pQ,{icon:Oy,title:e.contentList.emptyTitle(p),description:e.contentList.emptyDescription}),a.isSuccess&&m.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(aX,{justify:`between`,gap:4,wrap:!0,children:[(0,S.jsx)(EX,{label:e.contentList.filter,selected:c,onChange:e=>l(e),options:[{id:`all`,label:e.contentList.filterAll},{id:`published`,label:e.contentList.filterPublished},{id:`drafts`,label:e.contentList.filterDrafts},{id:`changed`,label:e.contentList.filterChanged}]}),(0,S.jsx)(q_,{maxWidth:`xs`,grow:!0,children:(0,S.jsx)(CX,{label:e.contentList.search(p),placeholder:e.contentList.searchPlaceholder,clearLabel:e.contentList.clearSearch,value:u,onChange:d})})]}),w.length===0?(0,S.jsx)(pQ,{icon:Qb,title:e.contentList.noMatchesTitle,description:e.contentList.noMatchesDescription}):(0,S.jsx)(fZ,{label:p,columns:C,rows:w,onRowAction:e=>n($.entry(f.key,e))})]})]})})}var l3=(e,t)=>JSON.stringify(e??null)===JSON.stringify(t??null);function u3({type:e,entry:t,hasChanges:n,onReverted:r,onClose:i}){let a=Q(),o=k1(),s=ps(t.id),c=oc(),l=ms(),{close:u,dialog:d}=P1(i),f=l_(e.fields),p=s.data??[],m=(e,t)=>{if(!t)return a.history.first;let n=f.filter(n=>!l3(e.data[n.id],t.data[n.id])).map(e=>Z(e.label,o));return n.length>0?a.history.changed(n):e.status===t.status?e.status===`published`?a.history.published:a.history.saved:e.status===`published`?a.history.published:a.history.unpublished},h=e=>{let n=h2(e.createdAt,o);l.mutate({id:t.id,revision:e.revision,expectedRevision:t.revision},{onSuccess:e=>{X({title:a.history.broughtBack(n),description:a.history.broughtBackDescription,tone:`success`}),r(e),u()},onError:e=>X({title:a.history.notBroughtBack,description:e.message,tone:`danger`})})};return(0,S.jsx)(UY,{...d,placement:`side`,title:a.history.title,closeLabel:a.history.close,children:s.isPending?(0,S.jsx)(e2,{shape:`summary`}):s.isError?(0,S.jsx)(t2,{error:s.error,onRetry:()=>void s.refetch()}):(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(Y,{tone:`muted`,children:n?a.history.saveFirst:a.history.help}),p.map((e,r)=>{let i=(c.data??[]).find(t=>t.id===e.actorId)?.name,s=e.revision===t.revision;return(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)(aX,{gap:2,children:[s&&(0,S.jsx)(yZ,{tone:`info`,children:a.history.current}),t.published?.revision===e.revision&&(0,S.jsx)(yZ,{tone:`success`,children:a.history.onSite}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:a.history.when(h2(e.createdAt,o),i)})]}),(0,S.jsx)(Y,{children:m(e,p[r+1])}),!s&&!l3(e.data,t.data)&&(0,S.jsx)(aX,{children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isDisabled:n||l.isPending,isPending:l.isPending&&l.variables?.revision===e.revision,onPress:()=>h(e),children:a.history.bringBack})})]},e.revision)})]})})}var d3=e=>String(e).padStart(2,`0`),f3=e=>`${e.getFullYear()}-${d3(e.getMonth()+1)}-${d3(e.getDate())}`,p3=Array.from({length:48},(e,t)=>`${d3(Math.floor(t/2))}:${t%2==0?`00`:`30`}`);function m3(e,t){return new Intl.DateTimeFormat(t,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e))}function h3({entry:e,hasChanges:t,onClose:n}){let r=Q(),i=k1(),a=ds(),o=fs(),{close:s,dialog:c}=P1(n),[l]=(0,x.useState)(()=>{if(e.publishAt!==void 0)return new Date(e.publishAt);let t=new Date;return t.setDate(t.getDate()+1),t.setHours(9,0,0,0),t}),[u,d]=(0,x.useState)(f3(l)),[f,p]=(0,x.useState)(`${d3(l.getHours())}:${l.getMinutes()<30?`00`:`30`}`),[m,h]=(0,x.useState)(null),g=a.isPending||o.isPending,_=e=>new Intl.DateTimeFormat(i,{timeStyle:`short`}).format(new Date(`2000-01-01T${e}:00`)),v=()=>{if(u===null){h(r.schedule.dayMissing);return}h(null);let t=new Date(`${u}T${f}:00`).toISOString();a.mutate({id:e.id,at:t,expectedRevision:e.revision},{onSuccess:e=>{X({title:r.schedule.set,description:r.schedule.setDescription(m3(e.publishAt??t,i)),tone:`success`}),s()},onError:e=>{let t=e instanceof No?e.issues.find(e=>e.path[0]===`publishAt`):void 0;t?h(t.message):X({title:r.schedule.notSet,description:e.message,tone:`danger`})}})},y=()=>o.mutate(e.id,{onSuccess:()=>{X({title:r.schedule.removed,tone:`success`}),s()},onError:e=>X({title:r.schedule.notRemoved,description:e.message,tone:`danger`})});return(0,S.jsx)(UY,{...c,title:r.schedule.title,closeLabel:r.schedule.close,footer:(0,S.jsxs)(S.Fragment,{children:[e.publishAt!==void 0&&(0,S.jsx)(q,{variant:`ghost`,isDisabled:g,isPending:o.isPending,onPress:y,children:r.schedule.remove}),(0,S.jsx)(q,{variant:`secondary`,isDisabled:g,onPress:s,children:r.schedule.cancel}),(0,S.jsx)(q,{isDisabled:g||t,isPending:a.isPending,onPress:v,children:e.publishAt===void 0?r.schedule.confirm:r.schedule.change})]}),children:(0,S.jsxs)(J,{gap:4,children:[e.publishProblem!==void 0&&(0,S.jsx)(Y,{tone:`danger`,children:r.schedule.missed(e.publishProblem)}),e.publishAt!==void 0&&(0,S.jsx)(Y,{children:r.schedule.current(m3(e.publishAt,i))}),(0,S.jsx)(Y,{tone:`muted`,children:t?r.schedule.saveFirst:r.schedule.help}),(0,S.jsxs)(aX,{gap:3,align:`start`,children:[(0,S.jsx)(jY,{label:r.schedule.day,value:u,onChange:d,isRequired:!0,...m!==null&&{errorMessage:m}}),(0,S.jsx)(PX,{label:r.schedule.time,value:f,onChange:p,options:p3.map(e=>({id:e,label:_(e)}))})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.schedule.zone(Intl.DateTimeFormat().resolvedOptions().timeZone)})]})})}var g3=e=>e.startsWith(`/`)&&!e.startsWith(`//`);function _3(){let e=window.open(``,`_blank`);return{show:t=>{if(!g3(t)){e?.close();return}let n=new URL(t,window.location.origin).href;e?e.location.href=n:window.location.assign(n)},close:()=>e?.close()}}function v3(e){return e.normalize(`NFKD`).replace(/\p{M}/gu,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function y3(e){let t=va(({currentLocation:t,nextLocation:n})=>e&&t.pathname!==n.pathname);return(0,x.useEffect)(()=>{if(!e)return;let t=e=>e.preventDefault();return window.addEventListener(`beforeunload`,t),()=>window.removeEventListener(`beforeunload`,t)},[e]),(0,x.useEffect)(()=>{t.state===`blocked`&&!e&&t.proceed()},[t,e]),{isAsking:t.state===`blocked`,leave:()=>t.proceed?.(),stay:()=>t.reset?.()}}var b3=class extends x.Component{state={error:null};static getDerivedStateFromError(e){return{error:e instanceof Error?e:Error(String(e))}}render(){return this.state.error===null?this.props.children:(0,S.jsx)(t2,{error:this.state.error,onRetry:()=>this.setState({error:null})})}};function x3({type:e,entry:t}){let n=Fo(),r=n.data!==null&&n.data!==void 0&&n.data.role!==`author`;return e.forDeals!==!0||t===null||!r?null:(0,S.jsx)(S3,{typeId:e.id,entry:t.translationGroup})}function S3({typeId:e,entry:t}){let n=Q(),r=Rs({about:{typeId:e,entry:t},limit:200}),i=nc(),a=oc(),o=r2(),s=l2(i.data?.currency),[c,l]=(0,x.useState)(null),u=[{id:`title`,label:n.deals.columnTitle},{id:`value`,label:n.deals.columnValue,align:`end`}],d=(r.data?.items??[]).map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage);return{id:e.id,cells:{title:(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{weight:`semibold`,children:e.title}),t&&(0,S.jsx)(yZ,{tone:i2[t.kind],children:o(t)})]}),value:(0,S.jsx)(Y,{weight:`semibold`,children:s(e.value)})}}});return(0,S.jsxs)(mY,{title:n.deals.entryDeals,children:[r.isPending&&(0,S.jsx)(e2,{shape:`table`}),r.isError&&(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&d.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:n.deals.entryCardEmpty}),r.isSuccess&&d.length>0&&(0,S.jsx)(fZ,{label:n.deals.entryDeals,columns:u,rows:d,onRowAction:e=>l(r.data.items.find(t=>t.id===e)??null)}),c!==null&&i.data&&(0,S.jsx)(T2,{deal:c,contact:{id:c.contactId},pipeline:i.data,team:a.data??[],onClose:()=>l(null)})]})}var C3=[`phone`,`tablet`,`full`];function w3({width:e,onChange:t}){let n=Q(),r={phone:n.editor.pagePhone,tablet:n.editor.pageTablet,full:n.editor.pageDesktop};return(0,S.jsx)(EX,{label:n.editor.pageWidth,selected:e,onChange:e=>t(C3.find(t=>t===e)??`full`),options:C3.map(e=>({id:e,label:r[e]}))})}function T3({entry:e,data:t,title:n,width:r,onWidthChange:i,isWhole:a,onWhole:o,onFormWanted:s}){let c=Q(),l=G1(),u=bc(e?.id,e?.revision),d=e===null?c.editor.pageNotYet:u.error?c.editor.pageNotShown(u.error.message):c.editor.pageLoading;return(0,S.jsx)(a1,{label:c.editor.pageFrame(n),...e!==null&&u.data&&{address:u.data.path},draft:e===null?``:JSON.stringify({id:e.id,data:t}),width:r,isBare:a,...!a&&{note:c.editor.pageNote,toolbar:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(w3,{width:r,onChange:i}),(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:cb,isDisabled:e===null,onPress:o,children:c.editor.visualOpen})]})},emptyText:d,...l&&{onSectionPress:(e,t)=>{l.press(e,t),(t===void 0||l.typable[e]?.includes(t)!==!0)&&s()},typable:l.typable,onWords:l.typed},...l?.opened!==void 0&&{shownSectionId:l.opened}})}var E3={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},D3=new Map;function O3({type:e,entry:t,onCreated:n,versions:r=[],onSwitch:i,onTrashed:a,embedded:o=!1}){let s=Q(),c=k1(),l=as(),u=os(),d=ss(),f=cs(),p=hs(),m=us(),h=vc(),g=Fo(),[_,v]=(0,x.useState)(t?.data??{}),[y,b]=(0,x.useState)(null),[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(D3),[D,O]=(0,x.useState)(null),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(!1),[ee,N]=(0,x.useState)(!1),[P,te]=(0,x.useState)(!1),[F,ne]=(0,x.useState)(!1),[re,ie]=(0,x.useState)(!0),[ae,oe]=(0,x.useState)(`full`),se=Z(e.label,c),ce=v1(e,_),le=e.kind===`single`,ue=y??t?.slug??(le?e.key:v3(ce??``)),de=T_(e),fe=de?C_(ue):S_(ue),pe=t===null||ue!==t.slug||!C1(_,t.data),me=t?x1(t):`draft`,I=y3((t===null?y!==null||Object.keys(_).length>0:pe)&&D===null);function he(e,t){let n=t instanceof No?t.issues:[],r=n.find(e=>e.path[0]===E_);r&&w(r.message),E(new Map(n.map(e=>[e.path.join(`.`),e.message]))),X({title:e,description:n.length>0?s.editor.fieldsNeedAttention(n.length):t instanceof Error?t.message:String(t),tone:`danger`})}async function ge(){if(t===null){let t=await l.mutateAsync({type:e.key,slug:ue,data:_});return n(t),t}return pe?u.mutateAsync({id:t.id,changes:{slug:ue,data:_,expectedRevision:t.revision}}):t}async function _e(e){if(!fe){w(ue===``?s.editor.slugMissing:de?s.editor.slugPathInvalid:s.editor.slugInvalid);return}O(e),E(D3);let t;try{t=await ge(),v(t.data),b(null)}catch(e){he(s.editor.notSaved,e),O(null);return}if(e===`save`)X({title:s.editor.draftSaved,description:s.editor.draftSavedDescription,tone:`success`});else try{await d.mutateAsync({id:t.id,expectedRevision:t.revision}),X({title:s.editor.published,description:s.editor.publishedDescription,tone:`success`})}catch(e){he(s.editor.notPublished,e)}O(null)}async function ve(){if(!fe){w(ue===``?s.editor.slugMissing:de?s.editor.slugPathInvalid:s.editor.slugInvalid);return}let e=_3();O(`preview`),E(D3);try{let t=await ge();v(t.data),b(null);try{e.show((await h.mutateAsync(t.id)).path)}catch(t){e.close(),he(s.editor.notPreviewed,t)}}catch(t){e.close(),he(s.editor.notSaved,t)}O(null)}async function ye(e){O(`unpublish`);try{await f.mutateAsync(e),X({title:s.editor.unpublished,description:s.editor.unpublishedDescription})}catch(e){he(s.editor.notUnpublished,e)}A(!1),O(null)}async function be(e){O(`trash`);try{await p.mutateAsync(e),X({title:s.editor.trashed(ce??s.contentList.untitled),description:s.editor.trashedDescription}),a?.()}catch(e){he(s.editor.notTrashed,e),M(!1),O(null)}}async function xe(e){O(`duplicate`);try{let t=await m.mutateAsync(e);X({title:s.editor.duplicated(ce??s.contentList.untitled),description:s.editor.duplicatedDescription,tone:`success`}),i?.(t.id)}catch(e){he(s.editor.notDuplicated,e)}O(null)}let Se=D!==null,Ce=[...t?.status===`published`?[{id:`unpublish`,label:s.editor.unpublish,icon:ny}]:[],...t!==null&&g.data?.role!==`author`?[{id:`schedule`,label:t.publishAt===void 0?s.editor.schedule:s.editor.scheduleChange,icon:wv}]:[],...t===null?[]:[{id:`history`,label:s.editor.history,icon:Kb}],...t!==null&&!le?[{id:`duplicate`,label:s.editor.duplicate,icon:Xv}]:[],...t!==null&&!le?[{id:`trash`,label:s.editor.trash,icon:Sx,tone:`danger`}]:[]],we=de?`[...slug]`:`[slug]`,Te=e.urlPattern?.includes(we)?e.urlPattern:void 0,Ee=e=>de&&ue===`index`?s.editor.slugHomeDescription(e.replace(we,``)):(de?s.editor.slugPathDescription:s.editor.slugDescription)(e.replace(we,ue===``?`…`:ue)),De=e.urlPattern!==void 0||Object.keys(e.localizedUrlPatterns??{}).length>0,Oe=(e,t)=>{v(n=>S1(n,e.id,t)),E(t=>new Map([...t].filter(([t])=>t!==e.key&&!t.startsWith(`${e.key}.`))))},ke=l_(e.fields),Ae=new Set((e.sections??[]).flatMap(e=>e.fieldIds)),je=ke.filter(e=>!Ae.has(e.id)),Me=[...(e.sections??[]).map(e=>({key:e.key,title:Z(e.label,c),aside:e.aside===!0,fields:e.fieldIds.flatMap(e=>ke.filter(t=>t.id===e))})),...je.length>0?[{key:`$rest`,...e.sections?.length&&{title:s.editor.otherFields},aside:!1,fields:je}]:[]],Ne=B1(),Pe=De&&ke.some(e=>Ne(e.type)?.showsPage===!0),Fe=J0().panels.filter(t=>t.types===void 0||t.types.includes(e.key)).map(n=>(0,S.jsx)(mY,{title:n.title,children:(0,S.jsx)(b3,{children:(0,S.jsx)(n.Component,{type:e,entry:t,data:_})})},`${n.plugin}/${n.id}`)),Ie=e.forDeals===!0&&t!==null&&g.data!==null&&g.data!==void 0&&g.data.role!==`author`,Le=Ie?(0,S.jsx)(x3,{type:e,entry:t}):null,Re=t===null?s.editor.notSavedYet:pe?s.editor.unsavedChanges:t.publishAt===void 0?s.editor.saved(h2(t.updatedAt,c)):s.editor.goesOut(m3(t.publishAt,c)),ze=e=>(0,S.jsx)(mY,{...e.title!==void 0&&{title:e.title},children:(0,S.jsx)(z1,{fields:e.fields,values:_,onChange:Oe,pathOf:e=>e.key,problems:T,...e.aside&&{perRow:1}})},e.key),Be=e=>ze({...e,aside:!0}),Ve=le?se:ce??(t?s.contentList.untitled:s.editor.newTitle),He=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(yZ,{tone:E3[me],children:s.status[me]}),t?.publishProblem!==void 0&&(0,S.jsx)(yZ,{tone:`danger`,children:s.editor.missedSchedule}),(0,S.jsx)(Y,{as:`span`,size:`sm`,tone:`muted`,children:Re})]}),Ue=(0,S.jsxs)(S.Fragment,{children:[t!==null&&r.length>1&&(0,S.jsx)(EX,{label:s.editor.language,selected:t.id,onChange:e=>i?.(e),options:r.map(e=>({id:e.id,label:_1(e.locale,c),isDisabled:e.id!==t.id&&Se}))}),Ce.length>0&&(0,S.jsx)(hX,{trigger:(0,S.jsx)(IY,{label:s.editor.more,icon:ey,isDisabled:Se}),actions:Ce,onAction:e=>e===`schedule`?te(!0):e===`history`?N(!0):e===`trash`?M(!0):e===`duplicate`&&t?void xe(t.id):A(!0)}),De&&(0,S.jsx)(q,{variant:`ghost`,isDisabled:Se,isPending:D===`preview`,onPress:()=>void ve(),children:s.editor.preview}),(0,S.jsx)(q,{variant:`secondary`,isDisabled:Se||!pe,isPending:D===`save`,onPress:()=>void _e(`save`),children:s.editor.saveDraft}),(0,S.jsx)(q,{isDisabled:Se||me===`published`&&!pe,isPending:D===`publish`,onPress:()=>void _e(`publish`),children:t?.status===`published`?s.editor.publishChanges:s.editor.publish})]});return(0,S.jsxs)(J,{gap:0,fill:!0,children:[!(Pe&&F)&&(0,S.jsx)(MQ,{label:s.editor.saveBar,...!le&&{back:{href:$.contentList(e.key),label:se}},title:Ve,status:He,actions:Ue}),(0,S.jsx)(q_,{paddingX:o?0:12,paddingY:8,grow:!0,children:(0,S.jsx)(ZY,{label:s.editor.form,gap:5,onSubmit:()=>void _e(`save`),children:Pe?(0,S.jsx)(W1,{children:(0,S.jsxs)(u1,{paneLabel:s.editor.pagePane,view:F?`whole`:`beside`,isFormAway:re,bar:(0,S.jsx)(MQ,{across:`window`,label:s.editor.saveBar,back:{label:s.editor.visualClose,onPress:()=>ne(!1)},title:Ve,status:He,actions:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(IY,{label:re?s.editor.visualShowForm:s.editor.visualHideForm,icon:re?wb:Sb,onPress:()=>ie(!re)}),(0,S.jsx)(w3,{width:ae,onChange:oe}),Ue]})}),pane:(0,S.jsx)(T3,{entry:t,data:_,title:ce??se,width:ae,onWidthChange:oe,isWhole:F,onWhole:()=>{ie(!0),ne(!0)},onFormWanted:()=>ie(!1)}),children:[Me.filter(e=>!e.aside).map(Be),!le&&(0,S.jsx)(mY,{title:Te===void 0?s.editor.identifierSection:s.editor.addressSection,children:(0,S.jsx)(CZ,{label:s.editor.slug,value:ue,onChange:e=>{b(e),w(null)},isRequired:!0,description:Te===void 0?s.editor.slugAsIdentifier:Ee(Te),...C!==null&&{errorMessage:C}})}),Le,Me.filter(e=>e.aside).map(ze),Fe]})}):le&&Fe.length===0&&!Ie&&!Me.some(e=>e.aside)?(0,S.jsx)(J,{gap:6,children:Me.map(ze)}):(0,S.jsx)($Q,{asideLabel:s.editor.aside,aside:(0,S.jsxs)(S.Fragment,{children:[!le&&(0,S.jsx)(mY,{title:Te===void 0?s.editor.identifierSection:s.editor.addressSection,children:(0,S.jsx)(CZ,{label:s.editor.slug,value:ue,onChange:e=>{b(e),w(null)},isRequired:!0,description:Te===void 0?s.editor.slugAsIdentifier:Ee(Te),...C!==null&&{errorMessage:C}})}),Le,Me.filter(e=>e.aside).map(ze),Fe]}),children:Me.filter(e=>!e.aside).map(ze)})})}),P&&t!==null&&(0,S.jsx)(h3,{entry:t,hasChanges:pe,onClose:()=>te(!1)}),ee&&t!==null&&(0,S.jsx)(u3,{type:e,entry:t,hasChanges:pe,onReverted:e=>{v(e.data),E(D3)},onClose:()=>N(!1)}),(0,S.jsx)(uQ,{isOpen:I.isAsking,onOpenChange:e=>{e||I.stay()},title:s.editor.leaveTitle,confirmLabel:s.editor.leave,cancelLabel:s.editor.keepEditing,tone:`danger`,onConfirm:I.leave,children:s.editor.leaveDescription}),t!==null&&(0,S.jsx)(uQ,{isOpen:k,onOpenChange:A,title:s.editor.unpublishTitle,confirmLabel:s.editor.unpublish,cancelLabel:s.editor.cancel,tone:`danger`,isPending:D===`unpublish`,onConfirm:()=>void ye(t.id),children:s.editor.unpublishDescription}),t!==null&&(0,S.jsx)(uQ,{isOpen:j,onOpenChange:M,title:s.editor.trashTitle,confirmLabel:s.editor.trash,cancelLabel:s.editor.cancel,tone:`danger`,isPending:D===`trash`,onConfirm:()=>void be(t.id),children:t.status===`published`?s.editor.trashDescriptionPublished:s.editor.trashDescription})]})}function k3(){let e=Q(),t=k1(),n=n2(),{typeKey:r=``,entryId:i=`new`}=ta(),a=i===`new`,o=Io(),s=Qo(),c=rs(a?null:i),l=Xo({type:r,limit:200}),[u,d]=(0,x.useState)(null);if(o.isPending||s.isPending)return(0,S.jsx)(e2,{shape:`form`});if(o.isError)return(0,S.jsx)(t2,{error:o.error,onRetry:()=>void o.refetch()});if(s.isError)return(0,S.jsx)(t2,{error:s.error,onRetry:()=>void s.refetch()});let f=o.data.find(e=>e.key===r);if(!f)return(0,S.jsx)(pQ,{icon:oy,title:e.contentList.typeNotFoundTitle,description:e.contentList.typeNotFoundDescription});if(f.inSettings===!0)return(0,S.jsx)(Qa,{to:$.settingsPage(f.key),replace:!0});let p=(0,S.jsx)(pQ,{icon:oy,title:e.editor.notFoundTitle,description:e.editor.notFoundDescription,action:(0,S.jsx)(sX,{href:$.contentList(f.key),children:e.editor.back(Z(f.label,t))})});if(!a){if(c.isPending)return(0,S.jsx)(e2,{shape:`form`});if(c.isError)return c.error instanceof No&&c.error.code===`not_found`?p:(0,S.jsx)(t2,{error:c.error,onRetry:()=>void c.refetch()});if(c.data.typeId!==f.id)return p;if(s_(c.data))return(0,S.jsx)(pQ,{icon:Sx,title:e.editor.inTrashTitle,description:e.editor.inTrashDescription,action:(0,S.jsx)(sX,{href:$.trash,children:e.editor.openTrash})})}return(0,S.jsx)(O3,{type:f,entry:a?null:c.data??null,versions:a||!c.data?[]:(l.data?.items??[]).filter(e=>e.translationGroup===c.data.translationGroup).sort((e,t)=>e.locale.localeCompare(t.locale)),onSwitch:e=>n($.entry(f.key,e)),onTrashed:()=>n($.contentList(f.key)),onCreated:e=>{d(e.id),n($.entry(f.key,e.id),{replace:!0,viewTransition:!1})}},i===u?`new`:i)}var A3=[`name`,`email`,`phone`];function j3({form:e,mayChange:t}){let n=Q(),r=k1(),i=Cs(),a={name:Z(e.label,r),fields:l_(e.fields),isPending:i.isPending,save:(t,n)=>i.mutate({id:e.id,changes:{fields:t,expectedRevision:e.revision}},n),canRequire:!0,tagsOf:t=>A3.filter(n=>e.contact?.[n]===t.id).map(e=>(0,S.jsx)(yZ,{children:n.forms.holds[e]},e)),words:{emptyDescription:n.forms.noFieldsDescription,nameHelp:n.forms.fieldNameHelp,removeDescription:n.forms.removeDescription}};return(0,S.jsx)(a4,{set:a,mayChange:t})}var M3={},N3=`:none`,P3=e=>e instanceof Error?e.message:String(e);function F3({form:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=k1(),o=a.split(`-`)[0]??a,s=Cs(),c=l_(e.fields),l=e=>c.find(t=>t.id===e)?.key??N3,[u,d]=(0,x.useState)(Z(e.label,a)),[f,p]=(0,x.useState)(e.open),[m,h]=(0,x.useState)(e.notify.join(`
|
|
79
|
+
`)),[g,_]=(0,x.useState)(l(e.contact?.name)),[v,y]=(0,x.useState)(l(e.contact?.email)),[b,C]=(0,x.useState)(l(e.contact?.phone)),[w,T]=(0,x.useState)(e.success?Z(e.success,a):``),[E,D]=(0,x.useState)(e.submitLabel?Z(e.submitLabel,a):``),[O,k]=(0,x.useState)(e.retentionDays??null),[A,j]=(0,x.useState)(e.startsDeal===!0),M=l_(ic().data?.contact??[]),[ee,N]=(0,x.useState)(()=>Object.fromEntries(Object.entries(e.fills??{}).map(([e,t])=>[t,l(e)]))),[P,te]=(0,x.useState)(M3),F=e=>[{id:N3,label:i.forms.noField},...c.filter(t=>t.type===e).map(e=>({id:e.key,label:Z(e.label,a)}))],ne=(e,t)=>e.trim()===``?null:{...t,[o]:e.trim()},re=()=>{if(u.trim()===``)return te({label:i.forms.nameNeeded});te(M3),s.mutate({id:e.id,changes:{label:{...e.label,[o]:u.trim()},open:f,notify:m.split(/[\n,;]+/),contact:{...g!==N3&&{name:g},...v!==N3&&{email:v},...b!==N3&&{phone:b}},success:ne(w,e.success),submitLabel:ne(E,e.submitLabel),retentionDays:O,fills:Object.fromEntries(Object.entries(ee).flatMap(([e,t])=>t===N3?[]:[[t,e]])),startsDeal:A,expectedRevision:e.revision}},{onSuccess:()=>{X({title:i.forms.saved,tone:`success`}),n()},onError:e=>{let t=e instanceof No?String(e.issues[0]?.path[0]??``):``;t!==``&&te({[t]:P3(e)}),X({title:i.forms.notSaved,description:P3(e),tone:`danger`})}})},ie=i.forms.settingsTitle(Z(e.label,a));return(0,S.jsx)(UY,{...r,placement:`side`,title:ie,closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:s.isPending,onPress:re,children:i.forms.save})]}),children:(0,S.jsxs)(ZY,{label:ie,gap:4,onSubmit:re,children:[(0,S.jsx)(CZ,{label:i.forms.formName,value:u,onChange:d,isRequired:!0,autoComplete:`off`,...P.label!==void 0&&{errorMessage:P.label}}),(0,S.jsx)(rZ,{label:i.forms.isOpen,isSelected:f,onChange:p}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:i.forms.isOpenHelp}),(0,S.jsx)(EZ,{label:i.forms.notify,description:i.forms.notifyHelp,value:m,onChange:h,rows:3,...P.notify!==void 0&&{errorMessage:P.notify}}),(0,S.jsx)(PX,{label:i.forms.senderEmail,description:i.forms.senderHelp,options:F(`email`),value:v,onChange:y}),(0,S.jsx)(PX,{label:i.forms.senderName,options:F(`text`),value:g,onChange:_}),(0,S.jsx)(PX,{label:i.forms.senderPhone,options:F(`phone`),value:b,onChange:C}),M.map((e,t)=>(0,S.jsx)(PX,{label:i.forms.fills(Z(e.label,a)),...t===0&&{description:i.forms.fillsHelp},options:F(e.type),value:ee[e.id]??N3,onChange:t=>N({...ee,[e.id]:t})},e.id)),(0,S.jsx)(rZ,{label:i.forms.startsDeal,isSelected:A,onChange:j}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:i.forms.startsDealHelp}),(0,S.jsx)(CZ,{label:i.forms.success,description:i.forms.successHelp,value:w,onChange:T,autoComplete:`off`}),(0,S.jsx)(CZ,{label:i.forms.submitLabel,description:i.forms.submitLabelHelp,value:E,onChange:D,autoComplete:`off`}),(0,S.jsx)(vX,{label:i.forms.retention,description:i.forms.retentionHelp,value:O,onChange:k,minValue:1,isInteger:!0,...P.retentionDays!==void 0&&{errorMessage:P.retentionDays}})]})})}var I3=[`new`,`handled`,`spam`],L3=e=>e instanceof Error?e.message:String(e);function R3({form:e}){let t=Q(),n=k1(),[r,i]=(0,x.useState)(`new`),a=Ds({formId:e.id,status:r,limit:200}),o=Os(e.id),s=Ns(),[c,l]=(0,x.useState)(null),u=Z(e.label,n),d=a.data?.items.find(e=>e.id===c),f=(e,n)=>n===void 0?``:_2(e.data[n],t.forms.yes),p=n=>f(n,e.contact?.name)||n.email||t.forms.unknownSender,m=n=>Object.entries(n.data).filter(([t])=>t!==e.contact?.name&&t!==e.contact?.email&&t!==e.contact?.phone).map(([,e])=>_2(e,t.forms.yes)).sort((e,t)=>t.length-e.length)[0]??``,h=[{id:`from`,label:t.forms.columnFrom},{id:`summary`,label:t.forms.columnSummary},{id:`received`,label:t.forms.columnReceived,align:`end`}],g=(a.data?.items??[]).map(e=>{let t=p(e);return{id:e.id,cells:{from:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:t}),e.email!==void 0&&e.email!==t&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.email})]}),summary:(0,S.jsx)(Y,{tone:`secondary`,truncate:!0,children:m(e).slice(0,120)}),received:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(e.createdAt,n)})}}}),_={new:[t.forms.emptyNewTitle,t.forms.emptyNewDescription],handled:[t.forms.emptyHandledTitle,t.forms.emptyHandledDescription],spam:[t.forms.emptySpamTitle,t.forms.emptySpamDescription]}[r];return(0,S.jsxs)(J,{gap:4,children:[(0,S.jsxs)(aX,{gap:4,justify:`between`,children:[(0,S.jsx)(EX,{label:t.forms.statusFilter,selected:r,onChange:e=>i(e),options:I3.map(e=>({id:e,label:o.data?t.forms.statusWithCount(t.forms.statuses[e],o.data[e]):t.forms.statuses[e]}))}),(0,S.jsx)(q,{variant:`secondary`,icon:Qv,isPending:s.isPending,onPress:()=>s.mutate(e.id,{onSuccess:n=>{p2(`${e.key}-submissions.csv`,n,`text/csv;charset=utf-8`),X({title:t.forms.exported,description:t.forms.exportedDescription,tone:`success`})},onError:e=>X({title:t.forms.notExported,description:L3(e),tone:`danger`})}),children:t.forms.export})]}),a.isPending&&(0,S.jsx)(e2,{shape:`table`}),a.isError&&(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&g.length===0&&(0,S.jsx)(pQ,{icon:Oy,title:_[0]??``,description:_[1]??``}),a.isSuccess&&g.length>0&&(0,S.jsx)(fZ,{label:t.forms.submissionsOf(u),columns:h,rows:g,onRowAction:l}),d&&(0,S.jsx)(z3,{form:e,submission:d,sender:p(d),onClose:()=>l(null)},d.id)]})}function z3({form:e,submission:t,sender:n,onClose:r}){let{close:i,dialog:a}=P1(r),o=Q(),s=k1(),c=js(),l=Ms(),[u,d]=(0,x.useState)(!1),f=e.fields.flatMap(e=>{let n=t.data[e.id];if(n===void 0)return[];let r=e.deletedAt===void 0?Z(e.label,s):o.forms.removedField(e.key);return[{id:e.id,label:r,value:_2(n,o.forms.yes)}]}),p=e=>c.mutate({id:t.id,status:e},{onSuccess:()=>{X({title:o.forms.marked[e],tone:`success`}),i()},onError:e=>X({title:o.forms.notMarked,description:L3(e),tone:`danger`})}),m=c.isPending||l.isPending;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(UY,{...a,placement:`side`,title:o.forms.submissionTitle(n),closeLabel:o.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`ghost`,isDisabled:m,onPress:()=>d(!0),children:o.forms.deleteSubmission}),t.status===`spam`?(0,S.jsx)(q,{variant:`secondary`,isDisabled:m,onPress:()=>p(`new`),children:o.forms.notSpam}):(0,S.jsx)(q,{variant:`secondary`,isDisabled:m,onPress:()=>p(`spam`),children:o.forms.markSpam}),t.status===`new`&&(0,S.jsx)(q,{isPending:c.isPending,onPress:()=>p(`handled`),children:o.forms.markHandled}),t.status===`handled`&&(0,S.jsx)(q,{isPending:c.isPending,onPress:()=>p(`new`),children:o.forms.markNew})]}),children:(0,S.jsxs)(J,{gap:5,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.forms.received(h2(t.createdAt,s))}),t.page!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.forms.sentFrom(t.page)}),t.handledAt!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:o.forms.handledAt(h2(t.handledAt,s))})]}),f.map(e=>(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(Y,{size:`sm`,weight:`semibold`,tone:`secondary`,children:e.label}),e.value.split(`
|
|
80
|
+
`).map((e,t)=>(0,S.jsx)(Y,{children:e},t))]},e.id))]})}),(0,S.jsx)(uQ,{isOpen:u,onOpenChange:d,title:o.forms.deleteSubmissionTitle,confirmLabel:o.forms.deleteSubmission,cancelLabel:o.editor.cancel,tone:`danger`,isPending:l.isPending,onConfirm:()=>l.mutate(t.id,{onSuccess:()=>{X({title:o.forms.submissionDeleted,tone:`success`}),d(!1),i()},onError:e=>{X({title:o.forms.submissionNotDeleted,description:L3(e),tone:`danger`}),d(!1)}}),children:o.forms.deleteSubmissionDescription})]})}var B3=e=>e instanceof Error?e.message:String(e);function V3(){let{formId:e=``}=ta(),t=Q(),n=vs();if(n.isPending)return(0,S.jsx)(e2,{});if(n.isError)return(0,S.jsx)(t2,{error:n.error,onRetry:()=>void n.refetch()});let r=n.data.find(t=>t.id===e);return r?(0,S.jsx)(H3,{form:r},r.id):(0,S.jsx)(pQ,{icon:Oy,title:t.forms.notFoundTitle,description:t.forms.notFoundDescription,action:(0,S.jsx)(sX,{href:$.forms,children:t.forms.backToForms})})}function H3({form:e}){let t=Q(),n=k1(),r=n2(),i=Fo(),a=ws(),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(!1),u=Z(e.label,n),d=i.data!==null&&i.data!==void 0&&i.data.role!==`author`,[f,p]=(0,x.useState)(e.fields.length===0||!d?`fields`:`submissions`);return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(sX,{href:$.forms,children:t.forms.backToForms}),(0,S.jsx)(hQ,{title:u,description:t.forms.detail(e.key,e.open?t.forms.open:t.forms.closed),actions:d&&(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:Sx,onPress:()=>l(!0),children:t.forms.trash}),(0,S.jsx)(q,{variant:`secondary`,icon:ix,onPress:()=>s(!0),children:t.forms.settings})]})})]}),(0,S.jsx)(_Z,{label:t.forms.tabs,selected:f,onChange:p,tabs:[{id:`submissions`,label:t.forms.tabSubmissions,content:d?(0,S.jsx)(R3,{form:e}):(0,S.jsx)(Y,{tone:`muted`,children:t.forms.noAccess})},{id:`fields`,label:t.forms.tabFields,content:(0,S.jsx)(j3,{form:e,mayChange:d})}]})]}),o&&(0,S.jsx)(F3,{form:e,onClose:()=>s(!1)}),(0,S.jsx)(uQ,{isOpen:c,onOpenChange:l,title:t.forms.trashTitle(u),confirmLabel:t.forms.trashConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:a.isPending,onConfirm:()=>a.mutate(e.id,{onSuccess:()=>{X({title:t.forms.trashed(u),tone:`success`}),r($.forms)},onError:e=>{X({title:t.forms.notTrashed,description:B3(e),tone:`danger`}),l(!1)}}),children:t.forms.trashDescription})]})}var U3={},W3=e=>e instanceof Error?e.message:String(e);function G3(){let e=Q(),t=k1(),n=n2(),r=vs(),i=Fo(),a=i.data!==null&&i.data!==void 0&&i.data.role!==`author`,o=ys(a),s=ks((r.data??[]).map(e=>e.id),a),c=Ts(),l=Es(),[u,d]=(0,x.useState)(!1),[f,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(null),g=F1(m),_=e=>Z(e.label,t),v=[{id:`name`,label:e.forms.columnName},{id:`fields`,label:e.forms.columnFields},{id:`fresh`,label:e.forms.columnNew},{id:`status`,label:e.forms.columnStatus}],y=e=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:_(e)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.key})]}),b=(r.data??[]).map((t,n)=>{let r=s[n]?.data?.new;return{id:t.id,cells:{name:y(t),fields:e.forms.fieldCount(l_(t.fields).length),fresh:r===void 0?``:r>0?(0,S.jsx)(yZ,{tone:`info`,children:e.forms.newCount(r)}):(0,S.jsx)(Y,{tone:`muted`,children:e.forms.noneNew}),status:t.open?(0,S.jsx)(yZ,{tone:`success`,children:e.forms.open}):(0,S.jsx)(yZ,{children:e.forms.closed})}}}),C=[{id:`name`,label:e.forms.columnName},{id:`moved`,label:e.forms.columnTrashed},{id:`actions`,label:e.forms.columnActions,align:`end`}],w=(o.data??[]).map(n=>({id:n.id,cells:{name:y(n),moved:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.deletedAt===void 0?``:h2(n.deletedAt,t)}),actions:(0,S.jsxs)(aX,{gap:2,justify:`end`,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:c.isPending&&c.variables===n.id,onPress:()=>c.mutate(n.id,{onSuccess:()=>X({title:e.forms.restored(_(n)),tone:`success`}),onError:t=>X({title:e.forms.notRestored,description:W3(t),tone:`danger`})}),children:e.forms.restore(_(n))}),(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>h(n),children:e.forms.delete(_(n))})]})}})),T=(0,S.jsx)(q,{icon:Bb,onPress:()=>d(!0),children:e.forms.newForm});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.forms.title,description:e.forms.description,actions:a&&(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(q,{variant:`ghost`,icon:Mx,onPress:()=>p(!0),children:e.forms.forget}),T]})}),r.isPending&&(0,S.jsx)(e2,{shape:`table`}),r.isError&&(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()}),r.isSuccess&&b.length===0&&(0,S.jsx)(pQ,{icon:Oy,title:e.forms.emptyTitle,description:e.forms.emptyDescription,...a&&{action:T}}),r.isSuccess&&b.length>0&&(0,S.jsx)(fZ,{label:e.forms.title,columns:v,rows:b,onRowAction:e=>n($.form(e))}),o.isError&&(0,S.jsx)(t2,{error:o.error,onRetry:()=>void o.refetch()}),o.isSuccess&&w.length>0&&(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(rX,{level:2,size:`md`,children:e.forms.trashedTitle}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.forms.trashedHelp})]}),(0,S.jsx)(fZ,{label:e.forms.trashedTitle,columns:C,rows:w})]})]}),u&&(0,S.jsx)(K3,{onClose:()=>d(!1)}),f&&(0,S.jsx)(q3,{onClose:()=>p(!1)}),(0,S.jsx)(uQ,{isOpen:m!==null,onOpenChange:e=>!e&&h(null),title:e.forms.deleteTitle(g?_(g):``),confirmLabel:e.forms.deleteConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:l.isPending,onConfirm:()=>{m&&l.mutate(m.id,{onSuccess:()=>X({title:e.forms.deleted(_(m)),tone:`success`}),onError:t=>X({title:e.forms.notDeleted,description:W3(t),tone:`danger`}),onSettled:()=>h(null)})},children:e.forms.deleteDescription})]})}function K3({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=k1(),a=n2(),o=Ss(),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(null),[d,f]=(0,x.useState)(U3),p=l??Q2(s),m=()=>{let e={...s.trim()===``&&{label:r.forms.nameNeeded},...p===``&&{key:r.forms.keyNeeded}};f(e),Object.keys(e).length>0||o.mutate({key:p,label:{[i.split(`-`)[0]??i]:s.trim()}},{onSuccess:e=>{X({title:r.forms.created(s.trim()),description:r.forms.createdDescription,tone:`success`}),t(),a($.form(e.id))},onError:e=>{f({key:W3(e)}),X({title:r.forms.notCreated,description:W3(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...n,title:r.forms.newFormTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:o.isPending,onPress:m,children:r.forms.create})]}),children:(0,S.jsxs)(ZY,{label:r.forms.newFormTitle,gap:4,onSubmit:m,children:[(0,S.jsx)(CZ,{label:r.forms.formName,description:r.forms.formNameHelp,value:s,onChange:c,isRequired:!0,autoFocus:!0,autoComplete:`off`,...d.label!==void 0&&{errorMessage:d.label}}),(0,S.jsx)(CZ,{label:r.forms.formKey,description:r.forms.formKeyHelp,value:p,onChange:u,isRequired:!0,autoComplete:`off`,...d.key!==void 0&&{errorMessage:d.key}})]})})}function q3({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=Ps(),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(null),l=()=>{if(a.trim()===``)return c(r.forms.forgetEmailNeeded);c(null),i.mutate(a,{onSuccess:e=>{X({title:r.forms.forgotten(e),...e>0&&{tone:`success`}}),t()},onError:e=>{e instanceof No&&e.code===`validation_failed`&&c(e.message),X({title:r.forms.notForgotten,description:W3(e),tone:`danger`})}})};return(0,S.jsx)(UY,{...n,title:r.forms.forgetTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{variant:`danger`,isPending:i.isPending,onPress:l,children:r.forms.forgetConfirm})]}),children:(0,S.jsxs)(ZY,{label:r.forms.forgetTitle,gap:4,onSubmit:l,children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.forms.forgetHelp}),(0,S.jsx)(CZ,{label:r.forms.forgetEmail,type:`email`,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`off`,...s!==null&&{errorMessage:s}})]})})}function J3(e=new Date){let t=e.getHours();return t>=5&&t<12?`morning`:t>=12&&t<18?`afternoon`:`evening`}var Y3=5;function X3({userId:e}){let t=Q(),n=n2(),r=Fs({ownerId:e,followUpBy:a2(),limit:Y3}),i=nc(),a=r2(),o=o2();if(!r.isSuccess||r.data.total===0)return null;let s=[{id:`name`,label:t.contacts.columnName},{id:`stage`,label:t.contacts.columnStage},{id:`due`,label:t.contacts.columnFollowUp,align:`end`}],c=r.data.items.map(e=>{let t=i.data?.stages.find(t=>t.id===e.stage),n=o(e.followUpAt??``);return{id:e.id,cells:{name:(0,S.jsx)(Y,{weight:`semibold`,children:e.name??e.email}),stage:t?(0,S.jsx)(yZ,{tone:i2[t.kind],children:a(t)}):``,due:(0,S.jsx)(yZ,{tone:n.tone,children:n.text})}}}),l=r.data.total-r.data.items.length;return(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(rX,{level:2,children:t.home.followUpsTitle}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.home.followUpsHelp})]}),(0,S.jsx)(fZ,{label:t.home.followUpsTitle,columns:s,rows:c,onRowAction:e=>n($.contact(e))}),(0,S.jsxs)(aX,{gap:2,children:[l>0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.home.followUpsMore(l)}),(0,S.jsx)(sX,{href:$.contacts,children:t.home.allContacts})]})]})}var Z3={draft:`neutral`,scheduled:`info`,published:`success`,unpublishedChanges:`warning`},Q3=200,$3=8;function e6({siteName:e}){let t=Q(),n=k1(),r=n2(),i=Fo(),a=Io(),o=Zo((a.data??[]).map(e=>({type:e.key,limit:Q3})));if(a.isPending)return(0,S.jsx)(e2,{});if(a.isError)return(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()});if(a.data.length===0)return(0,S.jsx)(pQ,{icon:cx,title:t.contentList.noTypesTitle,description:t.contentList.noTypesDescription});let s=o.find(e=>e.isError),c=o.some(e=>e.isPending),l=a.data.flatMap((e,t)=>w1(o[t]?.data?.items??[],n).map(({primary:t,versions:n})=>({type:e,entry:t,updatedAt:n.reduce((e,t)=>t.updatedAt>e?t.updatedAt:e,t.updatedAt)}))),u=e=>new Intl.NumberFormat(n).format(l.filter(({entry:t})=>e(x1(t))).length),d=[...l].sort((e,t)=>e.updatedAt<t.updatedAt?1:e.updatedAt>t.updatedAt?-1:0).slice(0,$3),f=[{id:`title`,label:t.contentList.columnTitle},{id:`type`,label:t.home.columnType},{id:`status`,label:t.contentList.columnStatus},{id:`updated`,label:t.contentList.columnUpdated}],p=d.map(({type:e,entry:r,updatedAt:i})=>{let a=x1(r);return{id:r.id,cells:{title:(0,S.jsx)(Y,{weight:`semibold`,children:v1(e,r.data)??t.contentList.untitled}),type:(0,S.jsx)(Y,{tone:`secondary`,children:Z(e.label,n)}),status:(0,S.jsx)(yZ,{tone:Z3[a],children:t.status[a]}),updated:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(i,n)})}}}),m=new Map(d.map(({type:e,entry:t})=>[t.id,e.key]));return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:8,children:[(0,S.jsx)(hQ,{title:i.data?t.home.greeting[J3()](i.data.name):t.app.home,description:t.home.description(e)}),s&&(0,S.jsx)(t2,{error:s.error,onRetry:()=>void s.refetch()}),!s&&c&&(0,S.jsx)(e2,{shape:`summary`}),!s&&!c&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)($Y,{columns:3,gap:4,children:[(0,S.jsx)(QX,{label:t.home.published,value:u(e=>e===`published`||e===`unpublishedChanges`),detail:t.home.publishedDetail}),(0,S.jsx)(QX,{label:t.home.drafts,value:u(e=>e===`draft`),detail:t.home.draftsDetail}),(0,S.jsx)(QX,{label:t.home.changed,value:u(e=>e===`unpublishedChanges`),detail:t.home.changedDetail})]}),(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(rX,{level:2,children:t.home.addTitle}),(0,S.jsx)(aX,{gap:2,wrap:!0,children:a.data.filter(e=>e.kind!==`single`).map(e=>(0,S.jsx)(q,{variant:`secondary`,icon:Bb,onPress:()=>r($.newEntry(e.key)),children:Z(e.label,n)},e.id))})]}),i.data&&i.data.role!==`author`&&(0,S.jsx)(X3,{userId:i.data.id}),(0,S.jsxs)(J,{gap:3,children:[(0,S.jsx)(rX,{level:2,children:t.home.recentTitle}),p.length===0?(0,S.jsx)(pQ,{icon:Oy,title:t.home.recentEmpty,description:t.home.recentEmptyDescription}):(0,S.jsx)(fZ,{label:t.home.recentTitle,columns:f,rows:p,onRowAction:e=>r($.entry(m.get(e)??``,e))})]})]})]})})}var t6=e=>e instanceof Error?e.message:String(e),n6=e=>e.toFixed(1).replace(/\.0$/,``);function r6(){let e=Q(),t=$o(),n=es().data??null,r=ns(),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(null),c=t.data??[],l=i.trim().toLowerCase(),u=l===``?c:c.filter(e=>e.name.toLowerCase().includes(l)),d=F1(c.find(e=>e.name===o)??null),f=t=>t.uploadedAt===void 0?e.media.fromSite:t.width!==void 0&&t.height!==void 0?e.media.dimensions(t.width,t.height):void 0,p=async t=>{let i=await h1(t,n?.maxBytes??0).catch(()=>null);i?r.mutate(i,{onSuccess:t=>X({title:e.media.uploaded(t.name),description:e.media.uploadedDescription,tone:`success`}),onError:t=>X({title:e.media.notUploaded,description:t6(t),tone:`danger`})}):X({title:e.media.notUploaded,description:e.media.notRead,tone:`danger`})},m=t=>n&&(0,S.jsx)(YY,{accept:`image`,icon:Ex,variant:t,isPending:r.isPending,onSelect:e=>void p(e),children:e.media.upload});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.media.title,actions:m(`primary`),...t.isSuccess&&{description:[e.media.description(c.length),...n?[e.media.uploadHint(n6(n.maxBytes/1e6))]:[]].join(` · `)}}),t.isPending&&(0,S.jsx)(e2,{shape:`table`}),t.isError&&(0,S.jsx)(t2,{error:t.error,onRetry:()=>void t.refetch()}),t.isSuccess&&c.length===0&&(0,S.jsx)(pQ,{icon:Ey,title:e.media.emptyTitle,description:n?e.media.emptyDescription:e.media.emptyNoUploads,action:m(`secondary`)}),t.isSuccess&&c.length>0&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q_,{maxWidth:`xs`,children:(0,S.jsx)(CX,{label:e.media.search,placeholder:e.media.searchPlaceholder,clearLabel:e.media.clearSearch,value:i,onChange:a})}),(0,S.jsx)(o$,{label:e.media.grid,items:u.map(e=>{let t=f(e);return{id:e.name,name:e.name,url:g1(e),...t!==void 0&&{note:t}}}),onAction:s,emptyText:e.media.noMatches})]})]}),o!==null&&d&&(0,S.jsx)(i6,{image:d,onClose:()=>s(null)},o)]})}function i6({image:e,onClose:t}){let n=Q(),r=k1(),i=Fo(),a=ts(),{close:o,dialog:s}=P1(t),[c,l]=(0,x.useState)(!1),u=e,d=u.uploadedAt!==void 0&&i.data!==null&&i.data!==void 0&&i.data.role!==`author`,f=u.size===void 0?void 0:u.size>=1e6?n.media.megabytes(n6(u.size/1e6)):n.media.kilobytes(n6(u.size/1e3)),p=(e,t,n)=>(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e}),(0,S.jsx)(Y,{children:t}),n!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n})]});return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(UY,{...s,placement:`side`,title:u.name,closeLabel:n.app.dismiss,footer:(0,S.jsxs)(aX,{gap:2,children:[d&&(0,S.jsx)(q,{variant:`danger`,icon:Sx,onPress:()=>l(!0),children:n.media.remove}),(0,S.jsx)(q,{variant:`secondary`,onPress:o,children:n.media.close})]}),children:(0,S.jsxs)(J,{gap:5,children:[(0,S.jsx)(MZ,{src:u.url,size:`full`}),p(n.media.detailName,u.name,n.media.detailNameHelp),u.width!==void 0&&u.height!==void 0&&p(n.media.detailSize,n.media.dimensions(u.width,u.height)),f!==void 0&&p(n.media.detailFile,f),u.uploadedAt===void 0?p(n.media.fromSite,n.media.fromSiteHelp):p(n.media.detailUploaded,h2(u.uploadedAt,r))]})}),(0,S.jsx)(uQ,{isOpen:c,onOpenChange:l,title:n.media.removeTitle(u.name),confirmLabel:n.media.remove,cancelLabel:n.editor.cancel,tone:`danger`,isPending:a.isPending,onConfirm:()=>a.mutate(u.name,{onSuccess:()=>{X({title:n.media.removed(u.name),tone:`success`}),l(!1),o()},onError:e=>{X({title:n.media.notRemoved,description:t6(e),tone:`danger`}),l(!1)}}),children:n.media.removeDescription})]})}function a6(){let e=Q(),{pluginName:t=``,screenId:n=``}=ta(),{screens:r}=J0(),i=r.find(e=>e.plugin===t&&e.id===n);return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:i?(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:i.label,...i.description!==void 0&&{description:i.description}}),(0,S.jsx)(b3,{children:(0,S.jsx)(i.Component,{})},`${i.plugin}/${i.id}`)]}):(0,S.jsx)(pQ,{icon:oy,title:e.plugins.screenMissingTitle,description:e.plugins.screenMissingDescription})})}var o6={waiting:`warning`,done:`success`,failed:`danger`},s6=9e4,c6=e=>e instanceof Error?e.message:String(e);function l6({plugin:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=k1(),o=Z(e.label,a),s=Mc(e.name,!0),c=Nc(e.name),l=e=>c.mutate(e.id,{onSuccess:e=>e.status===`done`?X({title:i.plugins.taskRetried,tone:`success`}):X({title:i.plugins.taskRetriedWaiting,...e.lastError!==void 0&&{description:e.lastError},tone:`danger`}),onError:e=>X({title:i.plugins.taskNotRetried,description:c6(e),tone:`danger`})}),u=e=>Date.parse(e)-Date.now()<s6?i.plugins.taskNextSoon:i.plugins.taskNext(h2(e,a)),d=[{id:`what`,label:i.plugins.taskWhat},{id:`state`,label:i.plugins.taskState},{id:`when`,label:i.plugins.taskWhen},{id:`actions`,label:i.plugins.taskActions,align:`end`}],f=(s.data??[]).map(e=>{let t=e.label??e.kind;return{id:e.id,cells:{what:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:t}),e.status!==`done`&&e.lastError!==void 0&&(0,S.jsx)(Y,{size:`sm`,children:e.lastError})]}),state:(0,S.jsxs)(J,{gap:1,children:[(0,S.jsx)(yZ,{tone:o6[e.status],children:i.plugins.taskStates[e.status]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.status===`waiting`&&e.nextAt!==void 0?`${i.plugins.taskTries(e.attempts)}. ${u(e.nextAt)}`:i.plugins.taskTries(e.attempts)})]}),when:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:h2(e.createdAt,a)}),actions:e.canRetry?(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:Jb,isPending:c.isPending&&c.variables===e.id,onPress:()=>l(e),children:i.plugins.taskRetry(t)}):null}}});return(0,S.jsx)(UY,{...r,title:i.plugins.activityTitle(o),closeLabel:i.app.dismiss,size:`lg`,footer:(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.plugins.activityClose}),children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{tone:`secondary`,children:i.plugins.activityHelp}),s.isPending&&(0,S.jsx)(e2,{shape:`table`}),s.isError&&(0,S.jsx)(t2,{error:s.error,onRetry:()=>void s.refetch()}),s.isSuccess&&f.length===0&&(0,S.jsx)(pQ,{icon:Kb,title:i.plugins.activityEmptyTitle,description:i.plugins.activityEmptyDescription}),s.isSuccess&&f.length>0&&(0,S.jsx)(fZ,{label:i.plugins.activityTitle(o),columns:d,rows:f})]})})}var u6=e=>e instanceof Error?e.message:String(e);function d6({plugin:e,secret:t}){let n=Q(),r=k1(),i=Z(t.label,r),a=jc(e),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(!1),[u,d]=(0,x.useState)(null),f=e=>{d(null),a.mutate({key:t.key,value:e},{onSuccess:()=>{s(``),l(!1),X({title:e===null?n.plugins.secretWasRemoved(i):n.plugins.secretWasSaved(i),tone:`success`})},onError:e=>{let r=e instanceof No?e.issues.find(e=>e.path.join(`.`)===t.key):void 0;d(r?.message??u6(e)),X({title:n.plugins.secretNotSaved(i),description:u6(e),tone:`danger`})}})};return t.isSet&&!c?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:i}),t.help!==void 0&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:Z(t.help,r)}),(0,S.jsx)(Y,{tone:`secondary`,children:n.plugins.secretSaved}),(0,S.jsxs)(aX,{gap:3,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>l(!0),children:n.plugins.secretReplace(i)}),(0,S.jsx)(q,{variant:`ghost`,size:`sm`,isPending:a.isPending,onPress:()=>f(null),children:n.plugins.secretRemove(i)})]})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(CZ,{label:i,type:`password`,autoComplete:`off`,value:o,onChange:s,...t.help!==void 0&&{description:Z(t.help,r)},...u!==null&&{errorMessage:u}}),(0,S.jsxs)(aX,{gap:3,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:a.isPending,isDisabled:o.trim()===``,onPress:()=>f(o),children:n.plugins.secretSave(i)}),t.isSet&&(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>l(!1),children:n.plugins.secretKeep})]})]})}function f6({plugin:e,secrets:t}){let n=Q();return(0,S.jsx)(qY,{legend:n.plugins.secretsTitle,description:n.plugins.secretsHelp,children:(0,S.jsx)(J,{gap:4,children:t.map(t=>(0,S.jsx)(d6,{plugin:e,secret:t},t.key))})})}var p6=new Map;function m6({plugin:e,onClose:t}){let{close:n,dialog:r}=P1(t),i=Q(),a=k1(),o=Z(e.label,a),s=kc(e.name),c=Ac(e.name),[l,u]=(0,x.useState)({}),[d,f]=(0,x.useState)(p6),[p,m]=(0,x.useState)(null),h={...s.data?.values,...l},g=()=>{f(p6),m(null),c.mutate(Object.fromEntries(Object.entries(h).filter(([,e])=>e!==void 0)),{onSuccess:()=>{X({title:i.plugins.settingsSaved(o),tone:`success`}),n()},onError:e=>{let t=e instanceof No?e.issues:[];f(new Map(t.map(e=>[e.path.join(`.`),e.message]))),t.length===0&&m(e instanceof Error?e.message:String(e))}})};return(0,S.jsxs)(UY,{...r,title:i.plugins.settingsTitle(o),closeLabel:i.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:n,children:i.editor.cancel}),(0,S.jsx)(q,{isPending:c.isPending,isDisabled:!s.isSuccess,onPress:g,children:i.plugins.settingsSave})]}),children:[s.isPending&&(0,S.jsx)(e2,{shape:`form`}),s.isError&&(0,S.jsx)(t2,{error:s.error,onRetry:()=>void s.refetch()}),s.isSuccess&&(0,S.jsxs)(ZY,{label:i.plugins.settingsTitle(o),gap:4,onSubmit:g,children:[p!==null&&(0,S.jsx)(Y,{tone:`danger`,children:`${i.plugins.settingsNotSaved}. ${p}`}),s.data.fields.map(e=>(0,S.jsx)(R1,{field:e,value:h[e.id],onChange:t=>u(n=>({...n,[e.id]:t})),path:e.key,problems:d},e.id)),s.data.secrets.length>0&&(0,S.jsx)(f6,{plugin:e.name,secrets:s.data.secrets})]})]})}var h6={on:`success`,off:`neutral`,failed:`danger`,unsupported:`warning`,invalid:`danger`},g6=new Set([`on`,`off`,`failed`]),_6=e=>e instanceof Error?e.message:String(e);function v6(){let e=Q(),t=k1(),n=Ec(),r=Oc(),i=n2(),a=J0(),[o,s]=(0,x.useState)(null),[c,l]=(0,x.useState)(null),u=(n,i)=>{let a=Z(n.label,t);r.mutate({name:n.name,enabled:i},{onSuccess:t=>{if(!i)return X({title:e.plugins.deactivated(a),description:e.plugins.deactivatedDescription});if(t.status!==`on`)return X({title:e.plugins.notActivated(a),...t.problem!==void 0&&{description:t.problem},tone:`danger`});X({title:e.plugins.activated(a),description:e.plugins.activatedDescription,tone:`success`})},onError:t=>X({title:e.plugins.notSwitched,description:_6(t),tone:`danger`})})},d=n=>n.problem??(n.lastFault?e.plugins.failedAt(n.faults,n.lastFault.where,h2(n.lastFault.at,t),n.lastFault.message):null),f=(n.data??[]).map(n=>{let o=d(n),c=Z(n.label,t),f=a.screens.filter(e=>e.plugin===n.name),p=[...f.map(t=>e.plugins.addsScreen(t.label)),...a.panels.filter(e=>e.plugin===n.name).map(t=>e.plugins.addsPanel(t.title)),...n.adds.fieldTypes.length>0?[e.plugins.addsFieldTypes(n.adds.fieldTypes.length)]:[],...n.adds.checks>0?[e.plugins.addsChecks(n.adds.checks)]:[],...n.adds.pageHead?[e.plugins.addsPageHead]:[],...n.adds.tasks.length>0?[e.plugins.addsTasks]:[]],m=a.problems.get(n.name),h=n.permissions.length===0?[e.plugins.mayNothing]:n.permissions.map(t=>e.plugins.permissions[t]),g=n.status===`on`,_=f.length>0||n.adds.tasks.length>0||n.hasSettings;return(0,S.jsx)(mY,{title:c,description:n.description?Z(n.description,t):n.name,actions:(0,S.jsxs)(S.Fragment,{children:[g&&n.faults>0&&(0,S.jsx)(yZ,{tone:`warning`,children:e.plugins.hasFailed}),(0,S.jsx)(yZ,{tone:h6[n.status],children:e.plugins.states[n.status]}),g6.has(n.status)&&(0,S.jsx)(rZ,{label:e.plugins.active(c),isLabelHidden:!0,isSelected:g,isDisabled:r.isPending,onChange:e=>u(n,e)})]}),..._&&{footer:(0,S.jsxs)(S.Fragment,{children:[n.hasSettings&&(0,S.jsx)(q,{variant:`secondary`,size:`sm`,icon:ix,onPress:()=>s(n),children:e.plugins.settings}),n.adds.tasks.length>0&&(0,S.jsx)(q,{variant:`ghost`,size:`sm`,icon:Kb,onPress:()=>l(n),children:e.plugins.activity}),f.map(t=>(0,S.jsx)(q,{variant:`ghost`,size:`sm`,icon:mv,onPress:()=>i($.pluginScreen(t.plugin,t.id)),children:e.plugins.open(t.label)},t.id))]})},children:(0,S.jsxs)(J,{gap:2,children:[o!==null&&(0,S.jsx)(Y,{size:`sm`,children:o}),m!==void 0&&(0,S.jsx)(Y,{size:`sm`,children:e.plugins.editorFailed(m)}),g&&p.length>0&&(0,S.jsx)(Y,{size:`sm`,children:e.plugins.adds(p)}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:[...n.version===void 0?[]:[e.plugins.version(n.version)],e.plugins.may(h)].join(` · `)})]})},n.name)});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.plugins.title,description:e.plugins.description}),n.isPending&&(0,S.jsx)(e2,{shape:`summary`}),n.isError&&(0,S.jsx)(t2,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&f.length===0&&(0,S.jsx)(pQ,{icon:Hb,title:e.plugins.emptyTitle,description:e.plugins.emptyDescription}),n.isSuccess&&f.length>0&&(0,S.jsx)($Y,{columns:2,gap:4,children:f})]}),o&&(0,S.jsx)(m6,{plugin:o,onClose:()=>s(null)},o.name),c&&(0,S.jsx)(l6,{plugin:c,onClose:()=>l(null)},c.name)]})}var y6={},b6=e=>e instanceof Error?e.message:String(e);function x6(){let e=Q(),t=Fo(),n=xc(),r=wc(),i=Tc(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(null),l=F1(s),u=Uc.map(t=>({id:t,label:e.people.roles[t]})),d=t.data?.id,f=[{id:`name`,label:e.people.columnName},{id:`role`,label:e.people.columnRole},{id:`actions`,label:e.people.columnActions,align:`end`}],p=(n.data??[]).map(t=>({id:t.id,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsxs)(aX,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:t.name}),t.id===d&&(0,S.jsx)(yZ,{children:e.people.you}),t.hasSignedIn===!1&&(0,S.jsx)(yZ,{tone:`warning`,children:e.people.invitedTag})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.hasSignedIn===!1?`${t.email} · ${e.people.invitedHelp}`:t.email})]}),role:(0,S.jsx)(PX,{label:e.people.roleOf(t.name),isLabelHidden:!0,options:u,value:t.role,isDisabled:t.id===d||r.isPending,onChange:n=>r.mutate({id:t.id,role:n},{onSuccess:t=>X({title:e.people.roleChanged(t.name,e.people.roles[t.role]),tone:`success`}),onError:t=>X({title:e.people.roleNotChanged,description:b6(t),tone:`danger`})})}),actions:(0,S.jsx)(IY,{label:e.people.remove(t.name),icon:Sx,isDisabled:t.id===d,onPress:()=>c(t)})}}));return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.people.title,description:e.people.description,actions:(0,S.jsx)(q,{icon:Ox,onPress:()=>o(!0),children:e.people.invite})}),n.isPending&&(0,S.jsx)(e2,{shape:`table`}),n.isError&&(0,S.jsx)(t2,{error:n.error,onRetry:()=>void n.refetch()}),n.isSuccess&&(0,S.jsx)(fZ,{label:e.people.title,columns:f,rows:p}),(0,S.jsx)(J,{gap:1,children:Uc.map(t=>(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.people.roleMeans[t]},t))})]}),a&&(0,S.jsx)(S6,{onClose:()=>o(!1)}),(0,S.jsx)(uQ,{isOpen:s!==null,onOpenChange:e=>!e&&c(null),title:e.people.removeTitle(l?.name??``),confirmLabel:e.people.removeConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:()=>{s&&i.mutate(s.id,{onSuccess:()=>X({title:e.people.removed(s.name),tone:`success`}),onError:t=>X({title:e.people.notRemoved,description:b6(t),tone:`danger`}),onSettled:()=>c(null)})},children:e.people.removeDescription})]})}function S6({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=Cc(),[a,o]=(0,x.useState)(``),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(`editor`),[d,f]=(0,x.useState)(y6),p=()=>{f(y6),i.mutate({name:a,email:s,role:l},{onSuccess:e=>{X({title:r.people.invited(e.name),description:r.people.invitedDescription(e.email),tone:`success`}),t()},onError:e=>{let t=e instanceof No?e.issues:[];f(t.length>0?Object.fromEntries(t.map(e=>[e.path[0]??`email`,e.message])):{email:b6(e)})}})};return(0,S.jsx)(UY,{...n,title:r.people.inviteTitle,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.editor.cancel}),(0,S.jsx)(q,{isPending:i.isPending,onPress:p,children:r.people.inviteSend})]}),children:(0,S.jsxs)(ZY,{label:r.people.inviteTitle,gap:4,onSubmit:p,children:[(0,S.jsx)(CZ,{label:r.people.name,value:a,onChange:o,isRequired:!0,autoFocus:!0,autoComplete:`off`,...d.name!==void 0&&{errorMessage:d.name}}),(0,S.jsx)(CZ,{label:r.people.email,type:`email`,value:s,onChange:c,isRequired:!0,autoComplete:`off`,description:r.people.emailHelp,...d.email!==void 0&&{errorMessage:d.email}}),(0,S.jsx)(PX,{label:r.people.role,options:Uc.map(e=>({id:e,label:r.people.roles[e]})),value:l,onChange:e=>u(e),description:r.people.roleMeans[l],...d.role!==void 0&&{errorMessage:d.role}})]})})}var C6={},w6=e=>e instanceof Error?e.message:String(e);function T6(){let e=Gs();return e.isPending?(0,S.jsx)(e2,{shape:`form`}):e.isError?(0,S.jsx)(t2,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsx)(E6,{settings:e.data})})}function E6({settings:e}){let t=Q(),n=t.settings.email,r=Fo(),i=Ks(),a=qs(),[o,s]=(0,x.useState)(e.provider),[c,l]=(0,x.useState)(e.from),[u,d]=(0,x.useState)(``),[f,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(!1),[g,_]=(0,x.useState)(C6),v=!e.hasKey||f,y=c.trim()!==e.from||o!==e.provider||v&&u.trim()!==``,b=r.data?.email??``,C=()=>{_(C6),i.mutate({provider:o,from:c,...v&&u.trim()!==``&&{apiKey:u},expectedRevision:e.revision},{onSuccess:t=>{d(``),p(!1),l(t.from),X({title:n.saved,...t.sending&&!e.sending&&{description:n.savedDescription},tone:`success`})},onError:e=>{let t=e instanceof No?e.issues:[];_(Object.fromEntries(t.map(e=>[String(e.path[0]??`from`),e.message]))),X({title:n.notSaved,description:w6(e),tone:`danger`})}})},w=()=>a.mutate(void 0,{onSuccess:()=>X({title:n.testSent,description:n.testSentDescription(b),tone:`success`}),onError:e=>X({title:n.testNotSent,description:w6(e),tone:`danger`})}),T=()=>i.mutate({from:e.from,apiKey:null,expectedRevision:e.revision},{onSuccess:()=>{d(``),p(!1),X({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>X({title:n.notSaved,description:w6(e),tone:`danger`}),onSettled:()=>h(!1)}),E=(0,S.jsx)(q,{variant:`secondary`,icon:nx,isPending:a.isPending,isDisabled:!e.canTest||y,onPress:w,children:n.test}),D=e.fixedBy===void 0?e.sending?(0,S.jsx)(yZ,{tone:`success`,children:n.states.sending}):(0,S.jsx)(yZ,{tone:`warning`,children:n.states.off}):(0,S.jsx)(yZ,{tone:`info`,children:n.states[e.fixedBy]});return e.fixedBy===void 0?(0,S.jsxs)(mY,{title:n.title,description:n.description,actions:D,children:[(0,S.jsxs)(ZY,{onSubmit:C,children:[!e.sending&&(0,S.jsx)(Y,{tone:`secondary`,children:n.offHelp}),(0,S.jsx)(PX,{label:n.provider,options:D_.map(e=>({id:e,label:n.providers[e]})),value:o,onChange:e=>s(e),description:n.providerHelp,...g.provider!==void 0&&{errorMessage:g.provider}}),(0,S.jsx)(sX,{href:n.providerLinks[o],opensInNewTab:!0,children:n.providerLink(n.providers[o])}),v?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(CZ,{label:n.key,type:`password`,autoComplete:`off`,value:u,onChange:d,description:n.keyHelp,...g.apiKey!==void 0&&{errorMessage:g.apiKey}}),e.hasKey&&(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{d(``),p(!1)},children:n.keyKeep})})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:n.key}),(0,S.jsx)(Y,{tone:`secondary`,children:n.keySaved}),(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>p(!0),children:n.keyReplace})})]}),(0,S.jsx)(CZ,{label:n.from,value:c,onChange:l,autoComplete:`off`,description:n.fromHelp,...g.from!==void 0&&{errorMessage:g.from}}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)(aX,{gap:3,children:[(0,S.jsx)(q,{type:`submit`,isPending:i.isPending&&!m,isDisabled:!y,children:n.save}),E,e.hasKey&&(0,S.jsx)(q,{variant:`ghost`,onPress:()=>h(!0),children:n.stop})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.canTest&&y?n.testAfterSave:n.testHelp(b)})]})]}),(0,S.jsx)(uQ,{isOpen:m,onOpenChange:e=>!e&&h(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:i.isPending,onConfirm:T,children:n.stopDescription})]}):(0,S.jsx)(mY,{title:n.title,description:n.description,actions:D,children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{children:n.fixed[e.fixedBy]}),e.canTest&&(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(aX,{gap:3,children:E}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:n.testHelp(b)})]})]})})}var D6={},O6=e=>e instanceof Error?e.message:String(e),k6=e=>Object.fromEntries((e instanceof No?e.issues:[]).map(e=>[String(e.path[0]??`siteKey`),e.message]));function A6(){let e=Xs();return e.isPending?(0,S.jsx)(e2,{shape:`form`}):e.isError?(0,S.jsx)(t2,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(j6,{settings:e.data}),(0,S.jsx)(M6,{settings:e.data})]})})}function j6({settings:e}){let t=Q(),n=t.settings.forms,r=Zs(),i=Qs(),[a,o]=(0,x.useState)(e.siteKey),[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(D6),h=!e.hasSecret||l,g=a.trim()!==e.siteKey||h&&s.trim()!==``,_=e=>p[e]===void 0?{}:{errorMessage:p[e]},v=()=>{m(D6),r.mutate({siteKey:a,...h&&s.trim()!==``&&{secretKey:s},postsPerAddress:e.postsPerAddress,expectedRevision:e.revision},{onSuccess:e=>{c(``),u(!1),o(e.siteKey),X({title:n.saved,...e.checking&&{description:n.savedDescription},tone:`success`})},onError:e=>{m(k6(e)),X({title:n.notSaved,description:O6(e),tone:`danger`})}})},y=()=>i.mutate(void 0,{onSuccess:()=>X({title:n.testWorked,description:n.testWorkedDescription,tone:`success`}),onError:e=>X({title:n.testFailed,description:O6(e),tone:`danger`})}),b=()=>r.mutate({siteKey:``,secretKey:null,postsPerAddress:e.postsPerAddress,expectedRevision:e.revision},{onSuccess:()=>{o(``),c(``),u(!1),X({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>X({title:n.notSaved,description:O6(e),tone:`danger`}),onSettled:()=>f(!1)});return(0,S.jsxs)(mY,{title:n.title,description:n.description,actions:(0,S.jsx)(yZ,{tone:e.checking?`success`:`neutral`,children:e.checking?n.states.checking:n.states.off}),children:[(0,S.jsxs)(ZY,{onSubmit:v,children:[(0,S.jsx)(Y,{tone:`secondary`,children:e.checking?n.help.checking:n.help.off}),(0,S.jsx)(CZ,{label:n.siteKey,autoComplete:`off`,value:a,onChange:o,description:n.siteKeyHelp,..._(`siteKey`)}),h?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(CZ,{label:n.secret,type:`password`,autoComplete:`off`,value:s,onChange:c,description:n.secretHelp,..._(`secretKey`)}),e.hasSecret&&(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{c(``),u(!1)},children:n.secretKeep})})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:n.secret}),(0,S.jsx)(Y,{tone:`secondary`,children:n.secretSaved}),(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>u(!0),children:n.secretReplace})})]}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)(aX,{gap:3,children:[(0,S.jsx)(q,{type:`submit`,isPending:r.isPending&&!d,isDisabled:!g,children:n.save}),(0,S.jsx)(q,{variant:`secondary`,icon:ux,isPending:i.isPending,isDisabled:!e.checking||g,onPress:y,children:n.test}),e.hasSecret&&(0,S.jsx)(q,{variant:`ghost`,onPress:()=>f(!0),children:n.stop})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.checking&&g?n.testAfterSave:n.testHelp})]})]}),(0,S.jsx)(uQ,{isOpen:d,onOpenChange:e=>!e&&f(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:r.isPending,onConfirm:b,children:n.stopDescription})]})}function M6({settings:e}){let t=Q().settings.forms,n=Zs(),[r,i]=(0,x.useState)(e.postsPerAddress),[a,o]=(0,x.useState)(void 0);return(0,S.jsx)(mY,{title:t.limitTitle,description:t.limitDescription,children:(0,S.jsxs)(ZY,{onSubmit:()=>{o(void 0),n.mutate({siteKey:e.siteKey,postsPerAddress:r??0,expectedRevision:e.revision},{onSuccess:e=>{i(e.postsPerAddress),X({title:t.limitSaved,description:t.limitSavedDescription(e.postsPerAddress),tone:`success`})},onError:e=>{o(k6(e).postsPerAddress),X({title:t.limitNotSaved,description:O6(e),tone:`danger`})}})},children:[(0,S.jsx)(vX,{label:t.limit,value:r,onChange:i,isInteger:!0,minValue:1,maxValue:100,description:t.limitHelp(100),...a!==void 0&&{errorMessage:a}}),(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{type:`submit`,isPending:n.isPending,isDisabled:r===e.postsPerAddress,children:t.limitSave})})]})})}var N6=e=>e instanceof Error?e.message:String(e);function P6(){let e=Js();return e.isPending?(0,S.jsx)(e2,{shape:`form`}):e.isError?(0,S.jsx)(t2,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsx)(F6,{settings:e.data})})}function F6({settings:e}){let t=Q().settings.general,n=Ys(),[r,i]=(0,x.useState)(e.siteName),[a,o]=(0,x.useState)(null);return e.fixedBy===void 0?(0,S.jsx)(mY,{title:t.title,description:t.description,children:(0,S.jsxs)(ZY,{onSubmit:()=>{o(null),n.mutate({siteName:r,expectedRevision:e.revision},{onSuccess:e=>{i(e.siteName),X({title:t.saved,description:t.savedDescription,tone:`success`})},onError:e=>{let n=e instanceof No?e.issues.find(e=>e.path[0]===`siteName`):void 0;o(n?.message??N6(e)),X({title:t.notSaved,description:N6(e),tone:`danger`})}})},children:[(0,S.jsx)(CZ,{label:t.name,value:r,onChange:i,autoComplete:`off`,placeholder:e.defaultSiteName,description:e.defaultSiteName===``?t.nameHelp:t.nameHelpWithDefault(e.defaultSiteName),...a!==null&&{errorMessage:a}}),(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{type:`submit`,isPending:n.isPending,isDisabled:r.trim()===e.siteName,children:t.save})})]})}):(0,S.jsx)(mY,{title:t.title,description:t.description,actions:(0,S.jsx)(yZ,{tone:`info`,children:t.states[e.fixedBy]}),children:(0,S.jsx)(Y,{children:t.fixed(e.defaultSiteName)})})}var I6=`new`;function L6({type:e}){let t=Q(),n=k1(),r=Qo(),i=Xo({type:e.key,limit:200}),[a,o]=(0,x.useState)(null),[s,c]=(0,x.useState)(null),l=[...i.data?.items??[]].sort((e,t)=>e.locale.localeCompare(t.locale)),u=l.find(e=>e.id===a)??l[0],d=a??u?.id??null,f=rs(d);if(i.isPending||r.isPending||d!==null&&f.isPending)return(0,S.jsx)(e2,{shape:`form`});if(i.isError)return(0,S.jsx)(t2,{error:i.error,onRetry:()=>void i.refetch()});if(r.isError)return(0,S.jsx)(t2,{error:r.error,onRetry:()=>void r.refetch()});if(d!==null&&f.isError)return(0,S.jsx)(t2,{error:f.error,onRetry:()=>void f.refetch()});let p=e.siteNamePath&&y1(e,{},e.siteNamePath)?.field;return(0,S.jsxs)(J,{gap:2,children:[p&&(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:t.settings.namesSite(Z(p.label,n))}),(0,S.jsx)(O3,{embedded:!0,type:e,entry:d===null?null:f.data??null,versions:l,onSwitch:o,onCreated:e=>{c(e.id),o(e.id)}},d===null||d===s?I6:d)]})}var R6={},z6=e=>e instanceof Error?e.message:String(e);function B6(){let e=$s();return e.isPending?(0,S.jsx)(e2,{shape:`form`}):e.isError?(0,S.jsx)(t2,{error:e.error,onRetry:()=>void e.refetch()}):(0,S.jsx)(q_,{maxWidth:`lg`,children:(0,S.jsx)(V6,{settings:e.data})})}function V6({settings:e}){let t=Q(),n=t.settings.storage,r=ec(),i=tc(),[a,o]=(0,x.useState)(e.endpoint),[s,c]=(0,x.useState)(e.bucket),[l,u]=(0,x.useState)(e.region),[d,f]=(0,x.useState)(e.accessKeyId),[p,m]=(0,x.useState)(``),[h,g]=(0,x.useState)(!1),[_,v]=(0,x.useState)(!1),[y,b]=(0,x.useState)(R6),C=!e.hasSecret||h,w=a.trim()!==e.endpoint||s.trim()!==e.bucket||l.trim()!==e.region||d.trim()!==e.accessKeyId||C&&p.trim()!==``,T=e=>y[e]===void 0?{}:{errorMessage:y[e]},E=()=>{b(R6),r.mutate({endpoint:a,bucket:s,region:l,accessKeyId:d,...C&&p.trim()!==``&&{secretAccessKey:p},expectedRevision:e.revision},{onSuccess:e=>{m(``),g(!1),o(e.endpoint),c(e.bucket),u(e.region),f(e.accessKeyId),X({title:n.saved,...e.hasSecret&&{description:n.savedDescription},tone:`success`})},onError:e=>{let t=e instanceof No?e.issues:[];b(Object.fromEntries(t.map(e=>[String(e.path[0]??`endpoint`),e.message]))),X({title:n.notSaved,description:z6(e),tone:`danger`})}})},D=()=>i.mutate(void 0,{onSuccess:()=>X({title:n.testWorked,description:n.testWorkedDescription,tone:`success`}),onError:e=>X({title:n.testFailed,description:z6(e),tone:`danger`})}),O=()=>r.mutate({endpoint:e.endpoint,bucket:e.bucket,region:e.region,accessKeyId:e.accessKeyId,secretAccessKey:null,expectedRevision:e.revision},{onSuccess:()=>{m(``),g(!1),X({title:n.stopped,description:n.stoppedDescription,tone:`success`})},onError:e=>X({title:n.notSaved,description:z6(e),tone:`danger`}),onSettled:()=>v(!1)}),k=e.fixedBy===void 0?(0,S.jsx)(yZ,{tone:e.keeping===`bucket`?`success`:e.keeping===`folder`?`neutral`:`warning`,children:n.states[e.keeping]}):(0,S.jsx)(yZ,{tone:`info`,children:n.states[e.fixedBy]});return e.fixedBy===void 0?(0,S.jsxs)(mY,{title:n.title,description:n.description,actions:k,children:[(0,S.jsxs)(ZY,{onSubmit:E,children:[(0,S.jsx)(Y,{tone:`secondary`,children:n.keepingHelp[e.keeping]}),(0,S.jsx)(CZ,{label:n.endpoint,type:`url`,autoComplete:`off`,value:a,onChange:o,description:n.endpointHelp,...T(`endpoint`)}),(0,S.jsx)(CZ,{label:n.bucket,autoComplete:`off`,value:s,onChange:c,...T(`bucket`)}),(0,S.jsx)(CZ,{label:n.region,autoComplete:`off`,value:l,onChange:u,description:n.regionHelp,...T(`region`)}),(0,S.jsx)(CZ,{label:n.accessKeyId,autoComplete:`off`,value:d,onChange:f,description:n.accessKeyIdHelp,...T(`accessKeyId`)}),C?(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(CZ,{label:n.secret,type:`password`,autoComplete:`off`,value:p,onChange:m,description:n.secretHelp,...T(`secretAccessKey`)}),e.hasSecret&&(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{m(``),g(!1)},children:n.secretKeep})})]}):(0,S.jsxs)(J,{gap:2,children:[(0,S.jsx)(Y,{weight:`semibold`,children:n.secret}),(0,S.jsx)(Y,{tone:`secondary`,children:n.secretSaved}),(0,S.jsx)(aX,{gap:3,children:(0,S.jsx)(q,{variant:`secondary`,size:`sm`,onPress:()=>g(!0),children:n.secretReplace})})]}),(0,S.jsxs)(J,{gap:2,children:[(0,S.jsxs)(aX,{gap:3,children:[(0,S.jsx)(q,{type:`submit`,isPending:r.isPending&&!_,isDisabled:!w,children:n.save}),(0,S.jsx)(q,{variant:`secondary`,icon:Rb,isPending:i.isPending,isDisabled:!e.hasSecret||w,onPress:D,children:n.test}),e.hasSecret&&(0,S.jsx)(q,{variant:`ghost`,onPress:()=>v(!0),children:n.stop})]}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.hasSecret&&w?n.testAfterSave:n.moveHelp})]})]}),(0,S.jsx)(uQ,{isOpen:_,onOpenChange:e=>!e&&v(!1),title:n.stopTitle,confirmLabel:n.stopConfirm,cancelLabel:t.editor.cancel,tone:`danger`,isPending:r.isPending,onConfirm:O,children:n.stopDescription})]}):(0,S.jsx)(mY,{title:n.title,description:n.description,actions:k,children:(0,S.jsx)(Y,{children:n.fixed[e.fixedBy]})})}var H6=`page:`;function U6(){let e=Q(),t=k1(),n=n2(),{area:r,typeKey:i}=ta(),a=Io(),o=Fo();if(a.isPending)return(0,S.jsx)(e2,{shape:`form`});if(a.isError)return(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()});let s=a.data.filter(e=>e.inSettings===!0),c=s.some(e=>e.siteNamePath!==void 0),l={general:(0,S.jsx)(P6,{}),email:(0,S.jsx)(T6,{}),storage:(0,S.jsx)(B6,{}),forms:(0,S.jsx)(A6,{})},u=[...s.map(e=>({id:`${H6}${e.key}`,label:Z(e.label,t),content:(0,S.jsx)(L6,{type:e}),href:$.settingsPage(e.key)})),...o.data?.role===`owner`?z0.filter(e=>e!==`general`||!c).map(t=>({id:t,label:e.settings.areas[t],content:l[t],href:$.settings(t)})):[]],d=i===void 0?r:`${H6}${i}`,f=u.find(e=>e.id===d)??u[0];return(0,S.jsx)(q_,{paddingX:12,paddingY:10,children:(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.settings.title,description:e.settings.description}),f===void 0&&(0,S.jsx)(pQ,{icon:eb,title:e.settings.ownersTitle,description:e.settings.ownersDescription}),f!==void 0&&(0,S.jsx)(_Z,{label:e.settings.tabsLabel,selected:f.id,onChange:e=>{let t=u.find(t=>t.id===e);t&&n(t.href)},tabs:u.map(({id:e,label:t,content:n})=>({id:e,label:t,content:n}))})]})})}var W6=e=>e instanceof Error?e.message:String(e);function G6(){let e=Q(),t=k1(),n=n2(),r=Fo(),i=Io(),a=ls(),o=gs(),s=_s(),[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(!1),f=r.data!==null&&r.data!==void 0&&r.data.role!==`author`,p=e=>i.data?.find(t=>t.id===e.typeId),m=t=>{let n=p(t);return(n&&v1(n,t.data))??e.contentList.untitled},h=[{id:`name`,label:e.trash.columnName},{id:`type`,label:e.trash.columnType},{id:`moved`,label:e.trash.columnMoved},{id:`actions`,label:e.trash.columnActions,align:`end`}],g=(a.data?.items??[]).map(r=>{let i=p(r),a=m(r);return{id:r.id,cells:{name:(0,S.jsxs)(J,{gap:0,children:[(0,S.jsx)(Y,{weight:`semibold`,children:a}),(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.trash.detail(r.slug,_1(r.locale,t))})]}),type:i?Z(i.label,t):(0,S.jsx)(Y,{tone:`muted`,children:e.trash.typeArchived}),moved:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:r.deletedAt===void 0?``:h2(r.deletedAt,t)}),actions:(0,S.jsxs)(aX,{gap:2,justify:`end`,children:[(0,S.jsx)(q,{variant:`secondary`,size:`sm`,isPending:o.isPending&&o.variables===r.id,onPress:()=>o.mutate(r.id,{onSuccess:()=>{X({title:e.trash.restored(a),description:e.trash.restoredDescription,tone:`success`}),i&&n($.entry(i.key,r.id))},onError:t=>X({title:e.trash.notRestored,description:W6(t),tone:`danger`})}),children:e.trash.restore(a)}),f&&(0,S.jsx)(q,{variant:`ghost`,size:`sm`,onPress:()=>{l({id:r.id,name:a}),d(!0)},children:e.trash.delete(a)})]})}}});return(0,S.jsxs)(q_,{paddingX:12,paddingY:10,children:[(0,S.jsxs)(J,{gap:6,children:[(0,S.jsx)(hQ,{title:e.trash.title,description:e.trash.description}),(a.isPending||i.isPending)&&(0,S.jsx)(e2,{shape:`table`}),a.isError&&(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()}),i.isError&&(0,S.jsx)(t2,{error:i.error,onRetry:()=>void i.refetch()}),a.isSuccess&&i.isSuccess&&g.length===0&&(0,S.jsx)(pQ,{icon:Sx,title:e.trash.emptyTitle,description:e.trash.emptyDescription}),a.isSuccess&&i.isSuccess&&g.length>0&&(0,S.jsx)(fZ,{label:e.trash.title,columns:h,rows:g})]}),c!==null&&(0,S.jsx)(uQ,{isOpen:u,onOpenChange:d,title:e.trash.deleteTitle(c.name),confirmLabel:e.trash.deleteConfirm,cancelLabel:e.editor.cancel,tone:`danger`,isPending:s.isPending,onConfirm:()=>s.mutate(c.id,{onSuccess:()=>{X({title:e.trash.deleted(c.name),tone:`success`}),d(!1)},onError:t=>{X({title:e.trash.notDeleted,description:W6(t),tone:`danger`}),d(!1)}}),children:e.trash.deleteDescription})]})}var K6=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,q6=`link`;function J6({siteName:e}){let t=Q(),n=n2(),r=Fo(),i=Rc(),a=zc(),[o,s]=(0,x.useState)(``),[c,l]=(0,x.useState)(),[u]=wo(),d=u.has(q6)||u.has(`error`);if(r.data)return(0,S.jsx)(Qa,{to:$.home,replace:!0});let f=(0,S.jsxs)(aX,{gap:2,align:`center`,children:[(0,S.jsx)(dX,{label:t.app.product}),(0,S.jsx)(Y,{weight:`semibold`,children:e})]});if(i.isSuccess)return(0,S.jsx)(cQ,{brand:f,title:t.signIn.linkSentTitle,description:t.signIn.linkSent(i.variables),children:(0,S.jsx)(q,{variant:`secondary`,fullWidth:!0,onPress:()=>i.reset(),children:t.signIn.useAnotherEmail})});let p=()=>{let e=o.trim();if(e===``)return l(t.signIn.emailMissing);if(!K6.test(e))return l(t.signIn.emailInvalid);l(void 0),i.mutate(e)},m=i.error?.message??(a.isError?t.signIn.passkeyFailed:d?t.signIn.linkFailed:void 0);return(0,S.jsx)(cQ,{brand:f,title:t.signIn.title,description:t.signIn.description,children:(0,S.jsxs)(J,{gap:3,children:[(0,S.jsxs)(ZY,{onSubmit:p,label:t.signIn.title,children:[(0,S.jsx)(CZ,{label:t.signIn.email,type:`email`,name:`email`,autoComplete:`email webauthn`,value:o,onChange:e=>{s(e),l(void 0)},...c!==void 0&&{errorMessage:c}}),(0,S.jsx)(q,{type:`submit`,fullWidth:!0,isPending:i.isPending,children:t.signIn.sendLink})]}),(0,S.jsx)(q,{variant:`secondary`,icon:My,fullWidth:!0,isPending:a.isPending,onPress:()=>a.mutate(void 0,{onSuccess:e=>{n($.home),X({title:t.signIn.signedIn(e.name),tone:`success`})}}),children:t.signIn.usePasskey}),m!==void 0&&(0,S.jsx)(Y,{tone:`danger`,size:`sm`,children:m})]})})}var Y6={listings:Sv,properties:Sv,agents:Ax,team:Ax,people:Ax,authors:Ax,neighborhoods:ob,locations:ob,reviews:fb,testimonials:fb,posts:Ab,blog:Ab,pages:Ob,products:bb,events:Ev,faqs:Wv,categories:vx},X6=e=>Y6[e.toLowerCase()]??cy,Z6=e=>e instanceof Error?e.message:String(e);function Q6({onClose:e}){let{close:t,dialog:n}=P1(e),r=Q(),i=k1(),a=Pc(),o=Ic(),s=Lc(),[c,l]=(0,x.useState)(r.app.passkeyDefaultName),[u,d]=(0,x.useState)(null),f=()=>{d(null),o.mutate(c.trim()===``?r.app.passkeyDefaultName:c.trim(),{onSuccess:()=>X({title:r.app.passkeyAdded,description:r.app.passkeyAddedDescription,tone:`success`}),onError:e=>d(Z6(e))})},p=[{id:`name`,label:r.app.passkeyColumnName},{id:`added`,label:r.app.passkeyColumnAdded},{id:`actions`,label:r.app.passkeyColumnActions,align:`end`}],m=(a.data??[]).map(e=>{let t=e.name===``?r.app.passkeyUnnamed:e.name;return{id:e.id,cells:{name:(0,S.jsx)(Y,{weight:`semibold`,children:t}),added:(0,S.jsx)(Y,{size:`sm`,tone:`muted`,children:e.createdAt===void 0?r.app.passkeyAddedUnknown:h2(e.createdAt,i)}),actions:(0,S.jsx)(IY,{label:r.app.passkeyRemove(t),icon:Sx,isDisabled:s.isPending,onPress:()=>s.mutate(e.id,{onSuccess:()=>X({title:r.app.passkeyRemoved(t),description:r.app.passkeyRemovedDescription,tone:`success`}),onError:e=>X({title:r.app.passkeyNotRemoved,description:Z6(e),tone:`danger`})})})}}});return(0,S.jsx)(UY,{...n,title:r.app.passkeys,closeLabel:r.app.dismiss,footer:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(q,{variant:`secondary`,onPress:t,children:r.app.passkeyDone}),(0,S.jsx)(q,{isPending:o.isPending,onPress:f,children:r.app.passkeyAdd})]}),children:(0,S.jsxs)(J,{gap:4,children:[(0,S.jsx)(Y,{tone:`secondary`,children:r.app.passkeyDescription}),a.isPending&&(0,S.jsx)(e2,{shape:`table`}),a.isError&&(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()}),a.isSuccess&&m.length===0&&(0,S.jsx)(Y,{tone:`muted`,children:r.app.passkeyNone}),a.isSuccess&&m.length>0&&(0,S.jsx)(fZ,{label:r.app.passkeys,columns:p,rows:m}),(0,S.jsx)(ZY,{label:r.app.passkeyTitle,onSubmit:f,children:(0,S.jsx)(CZ,{label:r.app.passkeyName,description:r.app.passkeyNameHelp,value:c,onChange:l,autoFocus:!0,...u!==null&&{errorMessage:`${r.app.passkeyNotAdded}. ${u}`}})})]})})}function $6({siteName:e}){let t=Q(),n=k1(),r=Yi(),i=n2(),a=Fo(),o=Io(),s=Bc(),[c,l]=(0,x.useState)(!1),u=(0,x.useRef)(!1),d=(0,x.useRef)(!1),f=a.data!==null&&a.data!==void 0;(0,x.useEffect)(()=>{u.current&&a.data===null&&!d.current&&X({title:t.app.sessionEnded,description:t.app.sessionEndedDescription}),u.current=f},[f,a.data,t]);let p=Y0(f),{screens:m}=J0();if(a.isPending||f&&!p)return(0,S.jsx)(e2,{shape:`spinner`});if(a.isError)return(0,S.jsx)(t2,{error:a.error,onRetry:()=>void a.refetch()});if(a.data===null)return(0,S.jsx)(Qa,{to:$.signIn,replace:!0});let h=(o.data??[]).filter(e=>e.inSettings===!0),g=(o.data??[]).filter(e=>e.inSettings!==!0).map(e=>{let t=$.contentList(e.key);return{id:e.id,label:Z(e.label,n),href:t,icon:X6(e.key),isCurrent:r.pathname===t||r.pathname.startsWith(`${t}/`)}}),_=[...m.map(e=>{let t=$.pluginScreen(e.plugin,e.id);return{id:`plugin:${e.plugin}:${e.id}`,label:e.label,href:t,icon:bv,isCurrent:r.pathname===t}}),...a.data.role===`owner`?[{id:`plugins`,label:t.app.plugins,href:$.plugins,icon:Hb,isCurrent:r.pathname===$.plugins}]:[]];return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(rQ,{logo:(0,S.jsx)(dX,{label:t.app.product}),siteName:e,navLabel:t.app.mainNavigation,skipLabel:t.app.skipToContent,nav:[{id:`top`,items:[{id:`home`,label:t.app.home,href:$.home,icon:by,isCurrent:r.pathname===$.home}]},{id:`content`,label:t.app.contentGroup,items:g},{id:`site`,label:t.app.siteGroup,items:[{id:`media`,label:t.app.media,href:$.media,icon:Ey,isCurrent:r.pathname===$.media},...a.data.role===`owner`||a.data.role===`editor`?[{id:`forms`,label:t.app.forms,href:$.forms,icon:Oy,isCurrent:r.pathname===$.forms||r.pathname.startsWith(`${$.forms}/`)},{id:`contacts`,label:t.app.contacts,href:$.contacts,icon:Jv,isCurrent:r.pathname===$.contacts||r.pathname.startsWith(`${$.contacts}/`)},{id:`deals`,label:t.app.deals,href:$.deals,icon:gy,isCurrent:r.pathname===$.deals}]:[],...a.data.role===`owner`?[{id:`types`,label:t.app.types,href:$.types,icon:cx,isCurrent:r.pathname===$.types||r.pathname.startsWith(`${$.types}/`)},{id:`people`,label:t.app.people,href:$.people,icon:Px,isCurrent:r.pathname===$.people}]:[],...a.data.role===`owner`||h.length>0?[{id:`settings`,label:t.app.settings,href:`/settings`,icon:ox,isCurrent:r.pathname.startsWith(`/settings`)}]:[],{id:`trash`,label:t.app.trash,href:$.trash,icon:Sx,isCurrent:r.pathname===$.trash}]},..._.length>0?[{id:`plugins`,label:t.app.pluginsGroup,items:_}]:[]],account:{name:a.data.name,detail:a.data.email,label:t.app.accountMenu,actions:[{id:`passkey`,label:t.app.passkeys,icon:My},{id:`sign-out`,label:t.app.signOut,icon:nb}],onAction:e=>{if(e===`passkey`)return l(!0);d.current=!0,s.mutate(void 0,{onSuccess:()=>{HZ(),i($.signIn),X({title:t.app.signedOut})},onError:e=>{d.current=!1,X({title:t.app.notSignedOut,description:e instanceof Error?e.message:String(e),tone:`danger`})}})}},children:(0,S.jsx)($a,{})}),c&&(0,S.jsx)(Q6,{onClose:()=>l(!1)})]})}function e8(){let e=n2(),t=Q();return(0,S.jsxs)(d1,{navigate:t=>e(t),children:[(0,S.jsx)($a,{}),(0,S.jsx)(UZ,{label:t.app.notifications,closeLabel:t.app.dismiss})]})}function t8(e){return[{element:(0,S.jsx)(e8,{}),children:[{path:`sign-in`,element:(0,S.jsx)(J6,{siteName:e})},{element:(0,S.jsx)($6,{siteName:e}),children:[{index:!0,element:(0,S.jsx)(e6,{siteName:e})},{path:`people`,element:(0,S.jsx)(x6,{})},{path:`media`,element:(0,S.jsx)(r6,{})},{path:`trash`,element:(0,S.jsx)(G6,{})},{path:`forms`,element:(0,S.jsx)(G3,{})},{path:`forms/:formId`,element:(0,S.jsx)(V3,{})},{path:`contacts`,element:(0,S.jsx)(M4,{})},{path:`contacts/:contactId`,element:(0,S.jsx)(P2,{})},{path:`deals`,element:(0,S.jsx)(l4,{})},{path:`plugins`,element:(0,S.jsx)(v6,{})},{path:`plugins/:pluginName/:screenId`,element:(0,S.jsx)(a6,{})},{path:`settings`,element:(0,S.jsx)(U6,{})},{path:`settings/:area`,element:(0,S.jsx)(U6,{})},{path:`settings/page/:typeKey`,element:(0,S.jsx)(U6,{})},{path:`types`,element:(0,S.jsx)(n3,{})},{path:`types/:typeKey`,element:(0,S.jsx)(Q4,{})},{path:`content/:typeKey`,element:(0,S.jsx)(c3,{})},{path:`content/:typeKey/:entryId`,element:(0,S.jsx)(k3,{})}]}]}]}function n8({client:e,siteName:t,basePath:n=`/admin`,messages:r,locale:i,fieldControls:a,pluginEditors:o,initialPath:s}){let[c]=(0,x.useState)(()=>a??R0()),[l]=(0,x.useState)(()=>new W0),[u]=(0,x.useState)(()=>o??V0(n)),[d]=(0,x.useState)(Po),[f]=(0,x.useState)(()=>{let e=t8(t);return s===void 0?_o(e,{basename:n}):Ga(e,{initialEntries:[s]})});return(0,S.jsx)(T,{client:d,children:(0,S.jsx)(Mo,{client:e,children:(0,S.jsx)(O1,{...r&&{messages:r},...i!==void 0&&{locale:i},children:(0,S.jsx)(M1,{controls:c,children:(0,S.jsx)(K0,{extensions:l,loader:u,children:(0,S.jsx)(Ja,{router:f})})})})})})}var r8=new Set([`validation_failed`,`conflict`,`not_found`,`forbidden`,`unauthenticated`]),i8=class{#e;#t;#n;constructor(e){this.#e=e.auth,this.#t=(e.baseUrl??`/api/cms`).replace(/\/+$/,``),this.#n=e.fetch??((e,t)=>globalThis.fetch(e,t))}async getSession(){return(await this.#r(`/session`)).user}requestSignInLink(e){return this.#e.requestSignInLink(e)}async signInWithPasskey(){await this.#e.signInWithPasskey();let e=await this.getSession();if(!e)throw Error(`The passkey was accepted, but no session was started. Try again.`);return e}signOut(){return this.#e.signOut()}async listContentTypes(){return(await this.#r(`/content-types`)).items}async listArchivedContentTypes(){return(await this.#r(`/content-types/archived`)).items}archiveContentType(e){return this.#i(`DELETE`,`/content-types/${encodeURIComponent(e)}`,{})}restoreContentType(e){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/restore`,{})}createContentType(e){return this.#i(`POST`,`/content-types`,e)}updateContentType(e,t){return this.#i(`PATCH`,`/content-types/${encodeURIComponent(e)}`,t)}addField(e,t,n){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/fields${a8(n)}`,t)}changeField(e,t,n,r){return this.#i(`PATCH`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}${a8(r)}`,n)}removeField(e,t,n){return this.#i(`DELETE`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}${a8(n)}`,{})}restoreField(e,t,n){return this.#i(`POST`,`/content-types/${encodeURIComponent(e)}/fields/${encodeURIComponent(t)}/restore${a8(n)}`,{})}arrangeFields(e,t){return this.#i(`PUT`,`/content-types/${encodeURIComponent(e)}/fields`,t)}setSections(e,t){return this.#i(`PUT`,`/content-types/${encodeURIComponent(e)}/sections`,{sections:t})}async listFieldTypes(){return(await this.#r(`/field-types`)).items}listImages(){return this.#r(`/images`)}uploadImage(e){let t=I_(e.bytes)?.contentType??`image/jpeg`;return this.#a(`/images?${new URLSearchParams({name:e.fileName})}`,{method:`POST`,headers:{accept:`application/json`,"content-type":t},body:e.bytes})}async removeImage(e){await this.#i(`DELETE`,`/images/${encodeURIComponent(e)}`,{})}listEntries(e){let t=new URLSearchParams({type:e.type});return e.locale!==void 0&&t.set(`locale`,e.locale),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/entries?${t}`)}getEntry(e){return this.#r(`/entries/${encodeURIComponent(e)}`)}createEntry(e){return this.#i(`POST`,`/entries`,e)}updateEntry(e,t){return this.#i(`PATCH`,`/entries/${encodeURIComponent(e)}`,t)}publishEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/publish`,{expectedRevision:t})}unpublishEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/unpublish`,{})}duplicateEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/duplicate`,{})}scheduleEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/schedule`,t)}unscheduleEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/unschedule`,{})}async entryHistory(e){return(await this.#r(`/entries/${encodeURIComponent(e)}/history`)).items}revertEntry(e,t){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/revert`,t)}trashEntry(e){return this.#i(`DELETE`,`/entries/${encodeURIComponent(e)}`,{})}restoreEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/restore`,{})}listTrash(e={}){let t=new URLSearchParams;return e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/trash?${t}`)}async deleteEntry(e){await this.#i(`DELETE`,`/trash/${encodeURIComponent(e)}`,{})}async listForms(){return(await this.#r(`/forms`)).items}createForm(e){return this.#i(`POST`,`/forms`,e)}updateForm(e,t){return this.#i(`PATCH`,`/forms/${encodeURIComponent(e)}`,t)}trashForm(e){return this.#i(`DELETE`,`/forms/${encodeURIComponent(e)}`,{})}restoreForm(e){return this.#i(`POST`,`/forms/${encodeURIComponent(e)}/restore`,{})}async listTrashedForms(){return(await this.#r(`/forms/trash`)).items}async deleteForm(e){await this.#i(`DELETE`,`/forms/trash/${encodeURIComponent(e)}`,{})}listSubmissions(e){let t=new URLSearchParams;return e.status!==void 0&&t.set(`status`,e.status),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/forms/${encodeURIComponent(e.formId)}/submissions?${t}`)}countSubmissions(e){return this.#r(`/forms/${encodeURIComponent(e)}/submission-counts`)}markSubmission(e,t){return this.#i(`PATCH`,`/submissions/${encodeURIComponent(e)}`,{status:t})}async deleteSubmission(e){await this.#i(`DELETE`,`/submissions/${encodeURIComponent(e)}`,{})}async exportSubmissions(e){return(await this.#r(`/forms/${encodeURIComponent(e)}/export`)).csv}async forgetSender(e){return(await this.#i(`POST`,`/submissions/forget`,{email:e})).removed}listContacts(e={}){let t=new URLSearchParams;return e.search!==void 0&&e.search!==``&&t.set(`search`,e.search),e.stage!==void 0&&t.set(`stage`,e.stage),e.ownerId!==void 0&&t.set(`owner`,e.ownerId??`none`),e.followUpBy!==void 0&&t.set(`due`,e.followUpBy),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/contacts?${t}`)}listDeals(e={}){let t=new URLSearchParams;return e.about!==void 0&&(t.set(`aboutType`,e.about.typeId),t.set(`aboutEntry`,e.about.entry)),e.contactId!==void 0&&t.set(`contact`,e.contactId),e.stage!==void 0&&t.set(`stage`,e.stage),e.ownerId!==void 0&&t.set(`owner`,e.ownerId??`none`),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.offset!==void 0&&t.set(`offset`,String(e.offset)),this.#r(`/deals?${t}`)}createDeal(e){return this.#i(`POST`,`/deals`,e)}updateDeal(e,t){return this.#i(`PATCH`,`/deals/${encodeURIComponent(e)}`,t)}async deleteDeal(e){await this.#i(`DELETE`,`/deals/${encodeURIComponent(e)}`,{})}getForecast(){return this.#r(`/deals/forecast`)}getEmailSettings(){return this.#r(`/settings/email`)}saveEmailSettings(e){return this.#i(`PUT`,`/settings/email`,e)}async sendTestEmail(){await this.#i(`POST`,`/settings/email/test`,{})}getGeneralSettings(){return this.#r(`/settings/general`)}saveGeneralSettings(e){return this.#i(`PUT`,`/settings/general`,e)}getFormsSettings(){return this.#r(`/settings/forms`)}saveFormsSettings(e){return this.#i(`PUT`,`/settings/forms`,e)}async testFormsSettings(){await this.#i(`POST`,`/settings/forms/test`,{})}getStorageSettings(){return this.#r(`/settings/storage`)}saveStorageSettings(e){return this.#i(`PUT`,`/settings/storage`,e)}async testStorage(){await this.#i(`POST`,`/settings/storage/test`,{})}getPipeline(){return this.#r(`/pipeline`)}savePipeline(e){return this.#i(`PUT`,`/pipeline`,e)}getCustomFields(){return this.#r(`/custom-fields`)}saveCustomFields(e){return this.#i(`PUT`,`/custom-fields`,e)}async listTeam(){return(await this.#r(`/team`)).items}getContact(e){return this.#r(`/contacts/${encodeURIComponent(e)}`)}createContact(e){return this.#i(`POST`,`/contacts`,e)}importContacts(e){return this.#i(`POST`,`/contacts/import`,{rows:e})}updateContact(e,t){return this.#i(`PATCH`,`/contacts/${encodeURIComponent(e)}`,t)}async eraseContact(e){return(await this.#i(`DELETE`,`/contacts/${encodeURIComponent(e)}`,{})).removed}async contactTimeline(e){return(await this.#r(`/contacts/${encodeURIComponent(e)}/timeline`)).items}addContactNote(e,t){return this.#i(`POST`,`/contacts/${encodeURIComponent(e)}/notes`,{text:t})}async deleteContactNote(e,t){await this.#i(`DELETE`,`/contacts/${encodeURIComponent(e)}/notes/${encodeURIComponent(t)}`,{})}async exportContact(e){return(await this.#r(`/contacts/${encodeURIComponent(e)}/export`)).file}previewEntry(e){return this.#i(`POST`,`/entries/${encodeURIComponent(e)}/preview`,{})}async listPeople(){return(await this.#r(`/people`)).items}invitePerson(e){return this.#i(`POST`,`/people`,e)}changePersonRole(e,t){return this.#i(`PATCH`,`/people/${encodeURIComponent(e)}`,{role:t})}async removePerson(e){await this.#i(`DELETE`,`/people/${encodeURIComponent(e)}`,{})}addPasskey(e){return this.#e.registerPasskey(e)}async listPlugins(){return(await this.#r(`/plugins`)).items}async listPluginEditors(){return(await this.#r(`/plugin-editors`)).items}callPlugin(e,t,n,r={}){let i=new URLSearchParams(r.query).toString(),a=`/plugins/${encodeURIComponent(e)}${n}${i===``?``:`?${i}`}`;return t===`GET`?this.#r(a):this.#i(t,a,r.body??{})}setPluginEnabled(e,t){return this.#i(`PATCH`,`/plugins/${encodeURIComponent(e)}`,{enabled:t})}getPluginSettings(e){return this.#r(`/plugin-settings/${encodeURIComponent(e)}`)}savePluginSettings(e,t){return this.#i(`PUT`,`/plugin-settings/${encodeURIComponent(e)}`,{values:t})}setPluginSecret(e,t,n){return this.#i(`PUT`,`/plugin-secrets/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{value:n})}async listPluginTasks(e){return(await this.#r(`/plugin-tasks/${encodeURIComponent(e)}`)).items}retryPluginTask(e,t){return this.#i(`POST`,`/plugin-tasks/${encodeURIComponent(e)}/${encodeURIComponent(t)}/retry`,{})}listPasskeys(){return this.#e.listPasskeys()}removePasskey(e){return this.#e.removePasskey(e)}#r(e){return this.#a(e,{headers:{accept:`application/json`}})}#i(e,t,n){return this.#a(t,{method:e,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify(n)})}async#a(e,t){let n;try{n=await this.#n(`${this.#t}${e}`,{...t,credentials:`same-origin`})}catch{throw Error(`The server could not be reached. Check your connection and try again.`)}let r=await n.json().catch(()=>null);if(n.ok)return r;throw o8(r,n.status)}};function a8(e=[]){return e.length>0?`?${new URLSearchParams(e.map(e=>[`within`,e]))}`:``}function o8(e,t){let n=typeof e==`object`&&e&&`error`in e?e.error:null;return new No(typeof n?.message==`string`?n.message:`The server answered with an error (${t}). Try again in a moment.`,typeof n?.code==`string`&&r8.has(n.code)?n.code:`unknown`,Array.isArray(n?.issues)?n.issues:[])}var s8=`velocity-cms-config`,c8=[`siteName`,`adminPath`,`apiPath`,`authPath`];function l8(e){let t;try{t=JSON.parse(e??``)}catch{t=null}let n=typeof t==`object`&&t?t:{},r=c8.filter(e=>typeof n[e]!=`string`||n[e]===``);if(r.length>0)throw Error(`The editor was opened without its settings (${r.join(`, `)}). It must be served by the Velocity CMS integration, not opened as a file.`);return Object.fromEntries(c8.map(e=>[e,n[e]]))}var u8=l8(document.getElementById(s8)?.textContent);document.title=u8.siteName;var d8=matchMedia(`(prefers-color-scheme: dark)`),f8=()=>document.documentElement.classList.toggle(`dark`,d8.matches);d8.addEventListener(`change`,f8),f8();var p8=new i8({baseUrl:u8.apiPath,auth:u({basePath:u8.authPath,adminPath:u8.adminPath})});(0,Ao.createRoot)(document.getElementById(`root`)).render((0,S.jsx)(x.StrictMode,{children:(0,S.jsx)(n8,{client:p8,siteName:u8.siteName,basePath:u8.adminPath})}));export{c as A,Xy as C,g as D,b as E,f as O,H as S,W_ as T,K as _,yY as a,uS as b,TY as c,BJ as d,NR as f,sj as g,PN as h,SY as i,o as k,q as l,SL as m,NY as n,vY as o,PR as p,xY as r,bY as s,CZ as t,JJ as u,MT as v,V as w,U as x,fS as y};
|